@camstack/addon-smtp-nodemailer 1.2.111 → 1.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/smtp.addon.js +180 -6
- package/dist/smtp.addon.mjs +180 -6
- package/package.json +1 -1
package/dist/smtp.addon.js
CHANGED
|
@@ -5397,7 +5397,7 @@ var ZodIssueCode = {
|
|
|
5397
5397
|
var ZodFirstPartyTypeKind;
|
|
5398
5398
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5399
5399
|
//#endregion
|
|
5400
|
-
//#region ../types/dist/sleep-
|
|
5400
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5401
5401
|
/**
|
|
5402
5402
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5403
5403
|
* window to float samples (D455).
|
|
@@ -11842,6 +11842,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11842
11842
|
});
|
|
11843
11843
|
var RtpSourceSchema = object({
|
|
11844
11844
|
url: string(),
|
|
11845
|
+
/**
|
|
11846
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11847
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11848
|
+
*
|
|
11849
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11850
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11851
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11852
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11853
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11854
|
+
* because its own copy of the rule was a release behind.
|
|
11855
|
+
*
|
|
11856
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11857
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11858
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11859
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11860
|
+
* sentry counterpart.
|
|
11861
|
+
*/
|
|
11862
|
+
sentryUrl: string().nullable().optional(),
|
|
11845
11863
|
videoCodec: _enum(["H264", "H265"]),
|
|
11846
11864
|
audioCodec: string(),
|
|
11847
11865
|
resolution: object({
|
|
@@ -27197,6 +27215,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27197
27215
|
lastChangedAt: number()
|
|
27198
27216
|
});
|
|
27199
27217
|
/**
|
|
27218
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27219
|
+
* page.
|
|
27220
|
+
*
|
|
27221
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27222
|
+
*
|
|
27223
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27224
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27225
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27226
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27227
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27228
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27229
|
+
* not on it "falls off silently".
|
|
27230
|
+
*
|
|
27231
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27232
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27233
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27234
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27235
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27236
|
+
* all use it): the framework emits the structural section and the widget
|
|
27237
|
+
* self-persists through the cap's own mutations.
|
|
27238
|
+
*
|
|
27239
|
+
* ## Why one addon may implement it
|
|
27240
|
+
*
|
|
27241
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27242
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27243
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27244
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27245
|
+
* reached only by a caller that already knew the addon id.
|
|
27246
|
+
*
|
|
27247
|
+
* ## The tab
|
|
27248
|
+
*
|
|
27249
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27250
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27251
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27252
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27253
|
+
* next to "PTZ").
|
|
27254
|
+
*/
|
|
27255
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27256
|
+
var GridNormalizedRectSchema = object({
|
|
27257
|
+
x: number().min(0).max(1),
|
|
27258
|
+
y: number().min(0).max(1),
|
|
27259
|
+
width: number().gt(0).max(1),
|
|
27260
|
+
height: number().gt(0).max(1)
|
|
27261
|
+
});
|
|
27262
|
+
/**
|
|
27263
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27264
|
+
*
|
|
27265
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27266
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27267
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27268
|
+
* which is the class of bug nobody files.
|
|
27269
|
+
*/
|
|
27270
|
+
var GridLayoutCellSchema = object({
|
|
27271
|
+
deviceId: number().int().positive(),
|
|
27272
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27273
|
+
source: GridNormalizedRectSchema,
|
|
27274
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27275
|
+
cell: GridNormalizedRectSchema
|
|
27276
|
+
});
|
|
27277
|
+
/**
|
|
27278
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27279
|
+
*
|
|
27280
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27281
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27282
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27283
|
+
* low" is, and it is the one an operator can act on.
|
|
27284
|
+
*/
|
|
27285
|
+
var GridProfileOfferSchema = object({
|
|
27286
|
+
profile: _enum([
|
|
27287
|
+
"high",
|
|
27288
|
+
"mid",
|
|
27289
|
+
"low"
|
|
27290
|
+
]),
|
|
27291
|
+
offered: boolean(),
|
|
27292
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27293
|
+
missingSources: array(number().int().positive())
|
|
27294
|
+
});
|
|
27295
|
+
var GridLayoutViewSchema = object({
|
|
27296
|
+
/** The persisted grid row this camera was declared from. */
|
|
27297
|
+
instanceId: string(),
|
|
27298
|
+
deviceId: number().int().nonnegative(),
|
|
27299
|
+
name: string(),
|
|
27300
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27301
|
+
width: number().int(),
|
|
27302
|
+
height: number().int(),
|
|
27303
|
+
fps: number().int(),
|
|
27304
|
+
cells: array(GridLayoutCellSchema),
|
|
27305
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27306
|
+
profiles: array(GridProfileOfferSchema)
|
|
27307
|
+
});
|
|
27308
|
+
var GridLayoutPatchSchema = object({
|
|
27309
|
+
deviceId: number().int().nonnegative(),
|
|
27310
|
+
name: string().min(1).max(160).optional(),
|
|
27311
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27312
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27313
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27314
|
+
/**
|
|
27315
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27316
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27317
|
+
* for.
|
|
27318
|
+
*/
|
|
27319
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27320
|
+
});
|
|
27321
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27322
|
+
kind: "mutation",
|
|
27323
|
+
auth: "admin"
|
|
27324
|
+
});
|
|
27325
|
+
/**
|
|
27200
27326
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27201
27327
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27202
27328
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -28896,6 +29022,26 @@ var PtzHomePresetSchema = object({
|
|
|
28896
29022
|
"none"
|
|
28897
29023
|
])
|
|
28898
29024
|
});
|
|
29025
|
+
/**
|
|
29026
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29027
|
+
* after how long.
|
|
29028
|
+
*
|
|
29029
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29030
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29031
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29032
|
+
* can disagree.
|
|
29033
|
+
*
|
|
29034
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29035
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29036
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29037
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29038
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29039
|
+
* return at all.
|
|
29040
|
+
*/
|
|
29041
|
+
var PtzHomeReturnSchema = object({
|
|
29042
|
+
enabled: boolean(),
|
|
29043
|
+
seconds: number().int()
|
|
29044
|
+
});
|
|
28899
29045
|
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({
|
|
28900
29046
|
deviceId: number(),
|
|
28901
29047
|
presetId: string()
|
|
@@ -28921,8 +29067,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
28921
29067
|
}), method(object({ deviceId: number() }), _void(), {
|
|
28922
29068
|
kind: "mutation",
|
|
28923
29069
|
auth: "admin"
|
|
28924
|
-
}), method(object({ deviceId: number() }),
|
|
29070
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
28925
29071
|
deviceId: number(),
|
|
29072
|
+
enabled: boolean(),
|
|
28926
29073
|
seconds: number().int().min(0).max(3600)
|
|
28927
29074
|
}), _void(), {
|
|
28928
29075
|
kind: "mutation",
|
|
@@ -32204,6 +32351,18 @@ Object.freeze({
|
|
|
32204
32351
|
addonId: null,
|
|
32205
32352
|
access: "view"
|
|
32206
32353
|
},
|
|
32354
|
+
"cameraGridLayout.getLayout": {
|
|
32355
|
+
capName: "camera-grid-layout",
|
|
32356
|
+
capScope: "device",
|
|
32357
|
+
addonId: null,
|
|
32358
|
+
access: "view"
|
|
32359
|
+
},
|
|
32360
|
+
"cameraGridLayout.saveLayout": {
|
|
32361
|
+
capName: "camera-grid-layout",
|
|
32362
|
+
capScope: "device",
|
|
32363
|
+
addonId: null,
|
|
32364
|
+
access: "create"
|
|
32365
|
+
},
|
|
32207
32366
|
"cameraStreams.getBrokerStreams": {
|
|
32208
32367
|
capName: "camera-streams",
|
|
32209
32368
|
capScope: "device",
|
|
@@ -35954,7 +36113,7 @@ Object.freeze({
|
|
|
35954
36113
|
addonId: null,
|
|
35955
36114
|
access: "view"
|
|
35956
36115
|
},
|
|
35957
|
-
"ptz.
|
|
36116
|
+
"ptz.getHomeReturn": {
|
|
35958
36117
|
capName: "ptz",
|
|
35959
36118
|
capScope: "device",
|
|
35960
36119
|
addonId: null,
|
|
@@ -36014,7 +36173,7 @@ Object.freeze({
|
|
|
36014
36173
|
addonId: null,
|
|
36015
36174
|
access: "create"
|
|
36016
36175
|
},
|
|
36017
|
-
"ptz.
|
|
36176
|
+
"ptz.setHomeReturn": {
|
|
36018
36177
|
capName: "ptz",
|
|
36019
36178
|
capScope: "device",
|
|
36020
36179
|
addonId: null,
|
|
@@ -37903,6 +38062,21 @@ Object.freeze({
|
|
|
37903
38062
|
form: "single",
|
|
37904
38063
|
optional: false
|
|
37905
38064
|
}],
|
|
38065
|
+
"cameraGridLayout.getLayout": [{
|
|
38066
|
+
name: "deviceId",
|
|
38067
|
+
form: "single",
|
|
38068
|
+
optional: false
|
|
38069
|
+
}],
|
|
38070
|
+
"cameraGridLayout.saveLayout": [{
|
|
38071
|
+
name: "cells",
|
|
38072
|
+
form: "object-array",
|
|
38073
|
+
optional: false,
|
|
38074
|
+
itemField: "deviceId"
|
|
38075
|
+
}, {
|
|
38076
|
+
name: "deviceId",
|
|
38077
|
+
form: "single",
|
|
38078
|
+
optional: false
|
|
38079
|
+
}],
|
|
37906
38080
|
"cameraStreams.getBrokerStreams": [{
|
|
37907
38081
|
name: "deviceId",
|
|
37908
38082
|
form: "single",
|
|
@@ -39203,7 +39377,7 @@ Object.freeze({
|
|
|
39203
39377
|
form: "single",
|
|
39204
39378
|
optional: false
|
|
39205
39379
|
}],
|
|
39206
|
-
"ptz.
|
|
39380
|
+
"ptz.getHomeReturn": [{
|
|
39207
39381
|
name: "deviceId",
|
|
39208
39382
|
form: "single",
|
|
39209
39383
|
optional: false
|
|
@@ -39253,7 +39427,7 @@ Object.freeze({
|
|
|
39253
39427
|
form: "single",
|
|
39254
39428
|
optional: false
|
|
39255
39429
|
}],
|
|
39256
|
-
"ptz.
|
|
39430
|
+
"ptz.setHomeReturn": [{
|
|
39257
39431
|
name: "deviceId",
|
|
39258
39432
|
form: "single",
|
|
39259
39433
|
optional: false
|
package/dist/smtp.addon.mjs
CHANGED
|
@@ -5395,7 +5395,7 @@ var ZodIssueCode = {
|
|
|
5395
5395
|
var ZodFirstPartyTypeKind;
|
|
5396
5396
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5397
5397
|
//#endregion
|
|
5398
|
-
//#region ../types/dist/sleep-
|
|
5398
|
+
//#region ../types/dist/sleep-Bs3xPtSh.mjs
|
|
5399
5399
|
/**
|
|
5400
5400
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5401
5401
|
* window to float samples (D455).
|
|
@@ -11840,6 +11840,24 @@ var GetStreamWithCodecInputSchema = object({
|
|
|
11840
11840
|
});
|
|
11841
11841
|
var RtpSourceSchema = object({
|
|
11842
11842
|
url: string(),
|
|
11843
|
+
/**
|
|
11844
|
+
* The SENTRY counterpart of {@link url} — the dial that asks for the stream
|
|
11845
|
+
* WITHOUT asking for the camera — or `null` when this camera offers none.
|
|
11846
|
+
*
|
|
11847
|
+
* The broker answers it because the broker is the only thing that can:
|
|
11848
|
+
* eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
|
|
11849
|
+
* cap), asked of facts only the broker holds. A consumer re-deriving it from
|
|
11850
|
+
* cap bindings would be a second authority, and two authorities on the same
|
|
11851
|
+
* question is how a composite camera ends up dialling a sleeping camera
|
|
11852
|
+
* because its own copy of the rule was a release behind.
|
|
11853
|
+
*
|
|
11854
|
+
* `null` is a real answer and is never a live url in disguise: a consumer
|
|
11855
|
+
* that silently fell back to {@link url} would perform exactly the wake this
|
|
11856
|
+
* field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
|
|
11857
|
+
* transcode hands back an egress the broker is feeding itself, which has no
|
|
11858
|
+
* sentry counterpart.
|
|
11859
|
+
*/
|
|
11860
|
+
sentryUrl: string().nullable().optional(),
|
|
11843
11861
|
videoCodec: _enum(["H264", "H265"]),
|
|
11844
11862
|
audioCodec: string(),
|
|
11845
11863
|
resolution: object({
|
|
@@ -27195,6 +27213,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
27195
27213
|
lastChangedAt: number()
|
|
27196
27214
|
});
|
|
27197
27215
|
/**
|
|
27216
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
27217
|
+
* page.
|
|
27218
|
+
*
|
|
27219
|
+
* ## Why this is a capability and not an addon settings schema
|
|
27220
|
+
*
|
|
27221
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
27222
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
27223
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
27224
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
27225
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
27226
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
27227
|
+
* not on it "falls off silently".
|
|
27228
|
+
*
|
|
27229
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
27230
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
27231
|
+
* beside PTZ and motion zones on the camera itself — which is exactly where the
|
|
27232
|
+
* framework already puts a widget, when the widget is declared on a CAPABILITY.
|
|
27233
|
+
* `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
|
|
27234
|
+
* all use it): the framework emits the structural section and the widget
|
|
27235
|
+
* self-persists through the cap's own mutations.
|
|
27236
|
+
*
|
|
27237
|
+
* ## Why one addon may implement it
|
|
27238
|
+
*
|
|
27239
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
27240
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
27241
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
27242
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
27243
|
+
* reached only by a caller that already knew the addon id.
|
|
27244
|
+
*
|
|
27245
|
+
* ## The tab
|
|
27246
|
+
*
|
|
27247
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
27248
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
27249
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
27250
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
27251
|
+
* next to "PTZ").
|
|
27252
|
+
*/
|
|
27253
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
27254
|
+
var GridNormalizedRectSchema = object({
|
|
27255
|
+
x: number().min(0).max(1),
|
|
27256
|
+
y: number().min(0).max(1),
|
|
27257
|
+
width: number().gt(0).max(1),
|
|
27258
|
+
height: number().gt(0).max(1)
|
|
27259
|
+
});
|
|
27260
|
+
/**
|
|
27261
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
27262
|
+
*
|
|
27263
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
27264
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
27265
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
27266
|
+
* which is the class of bug nobody files.
|
|
27267
|
+
*/
|
|
27268
|
+
var GridLayoutCellSchema = object({
|
|
27269
|
+
deviceId: number().int().positive(),
|
|
27270
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
27271
|
+
source: GridNormalizedRectSchema,
|
|
27272
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
27273
|
+
cell: GridNormalizedRectSchema
|
|
27274
|
+
});
|
|
27275
|
+
/**
|
|
27276
|
+
* Which profiles this grid can actually compose, and why not.
|
|
27277
|
+
*
|
|
27278
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
27279
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
27280
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
27281
|
+
* low" is, and it is the one an operator can act on.
|
|
27282
|
+
*/
|
|
27283
|
+
var GridProfileOfferSchema = object({
|
|
27284
|
+
profile: _enum([
|
|
27285
|
+
"high",
|
|
27286
|
+
"mid",
|
|
27287
|
+
"low"
|
|
27288
|
+
]),
|
|
27289
|
+
offered: boolean(),
|
|
27290
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
27291
|
+
missingSources: array(number().int().positive())
|
|
27292
|
+
});
|
|
27293
|
+
var GridLayoutViewSchema = object({
|
|
27294
|
+
/** The persisted grid row this camera was declared from. */
|
|
27295
|
+
instanceId: string(),
|
|
27296
|
+
deviceId: number().int().nonnegative(),
|
|
27297
|
+
name: string(),
|
|
27298
|
+
/** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
|
|
27299
|
+
width: number().int(),
|
|
27300
|
+
height: number().int(),
|
|
27301
|
+
fps: number().int(),
|
|
27302
|
+
cells: array(GridLayoutCellSchema),
|
|
27303
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
27304
|
+
profiles: array(GridProfileOfferSchema)
|
|
27305
|
+
});
|
|
27306
|
+
var GridLayoutPatchSchema = object({
|
|
27307
|
+
deviceId: number().int().nonnegative(),
|
|
27308
|
+
name: string().min(1).max(160).optional(),
|
|
27309
|
+
width: number().int().min(160).max(7680).optional(),
|
|
27310
|
+
height: number().int().min(120).max(4320).optional(),
|
|
27311
|
+
fps: number().int().min(1).max(60).optional(),
|
|
27312
|
+
/**
|
|
27313
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
27314
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
27315
|
+
* for.
|
|
27316
|
+
*/
|
|
27317
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
27318
|
+
});
|
|
27319
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
27320
|
+
kind: "mutation",
|
|
27321
|
+
auth: "admin"
|
|
27322
|
+
});
|
|
27323
|
+
/**
|
|
27198
27324
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
27199
27325
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
27200
27326
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -28894,6 +29020,26 @@ var PtzHomePresetSchema = object({
|
|
|
28894
29020
|
"none"
|
|
28895
29021
|
])
|
|
28896
29022
|
});
|
|
29023
|
+
/**
|
|
29024
|
+
* The camera's own idle-return behaviour: whether it goes home by itself, and
|
|
29025
|
+
* after how long.
|
|
29026
|
+
*
|
|
29027
|
+
* ONE shape, not two scalars, because on the camera they are ONE fact —
|
|
29028
|
+
* Reolink's guard point carries `benable` and `timeout` in the same element,
|
|
29029
|
+
* written by the same command. Reading them apart means two round-trips that
|
|
29030
|
+
* can disagree.
|
|
29031
|
+
*
|
|
29032
|
+
* `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
|
|
29033
|
+
* the behaviour switched off, which is exactly what the vendor app leaves when
|
|
29034
|
+
* you turn the guard point off without clearing it. The first version of this
|
|
29035
|
+
* cap reported only the delay, so that state was invisible — a camera could be
|
|
29036
|
+
* configured to return after 68 seconds with no way to say whether it should
|
|
29037
|
+
* return at all.
|
|
29038
|
+
*/
|
|
29039
|
+
var PtzHomeReturnSchema = object({
|
|
29040
|
+
enabled: boolean(),
|
|
29041
|
+
seconds: number().int()
|
|
29042
|
+
});
|
|
28897
29043
|
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({
|
|
28898
29044
|
deviceId: number(),
|
|
28899
29045
|
presetId: string()
|
|
@@ -28919,8 +29065,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
28919
29065
|
}), method(object({ deviceId: number() }), _void(), {
|
|
28920
29066
|
kind: "mutation",
|
|
28921
29067
|
auth: "admin"
|
|
28922
|
-
}), method(object({ deviceId: number() }),
|
|
29068
|
+
}), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
|
|
28923
29069
|
deviceId: number(),
|
|
29070
|
+
enabled: boolean(),
|
|
28924
29071
|
seconds: number().int().min(0).max(3600)
|
|
28925
29072
|
}), _void(), {
|
|
28926
29073
|
kind: "mutation",
|
|
@@ -32202,6 +32349,18 @@ Object.freeze({
|
|
|
32202
32349
|
addonId: null,
|
|
32203
32350
|
access: "view"
|
|
32204
32351
|
},
|
|
32352
|
+
"cameraGridLayout.getLayout": {
|
|
32353
|
+
capName: "camera-grid-layout",
|
|
32354
|
+
capScope: "device",
|
|
32355
|
+
addonId: null,
|
|
32356
|
+
access: "view"
|
|
32357
|
+
},
|
|
32358
|
+
"cameraGridLayout.saveLayout": {
|
|
32359
|
+
capName: "camera-grid-layout",
|
|
32360
|
+
capScope: "device",
|
|
32361
|
+
addonId: null,
|
|
32362
|
+
access: "create"
|
|
32363
|
+
},
|
|
32205
32364
|
"cameraStreams.getBrokerStreams": {
|
|
32206
32365
|
capName: "camera-streams",
|
|
32207
32366
|
capScope: "device",
|
|
@@ -35952,7 +36111,7 @@ Object.freeze({
|
|
|
35952
36111
|
addonId: null,
|
|
35953
36112
|
access: "view"
|
|
35954
36113
|
},
|
|
35955
|
-
"ptz.
|
|
36114
|
+
"ptz.getHomeReturn": {
|
|
35956
36115
|
capName: "ptz",
|
|
35957
36116
|
capScope: "device",
|
|
35958
36117
|
addonId: null,
|
|
@@ -36012,7 +36171,7 @@ Object.freeze({
|
|
|
36012
36171
|
addonId: null,
|
|
36013
36172
|
access: "create"
|
|
36014
36173
|
},
|
|
36015
|
-
"ptz.
|
|
36174
|
+
"ptz.setHomeReturn": {
|
|
36016
36175
|
capName: "ptz",
|
|
36017
36176
|
capScope: "device",
|
|
36018
36177
|
addonId: null,
|
|
@@ -37901,6 +38060,21 @@ Object.freeze({
|
|
|
37901
38060
|
form: "single",
|
|
37902
38061
|
optional: false
|
|
37903
38062
|
}],
|
|
38063
|
+
"cameraGridLayout.getLayout": [{
|
|
38064
|
+
name: "deviceId",
|
|
38065
|
+
form: "single",
|
|
38066
|
+
optional: false
|
|
38067
|
+
}],
|
|
38068
|
+
"cameraGridLayout.saveLayout": [{
|
|
38069
|
+
name: "cells",
|
|
38070
|
+
form: "object-array",
|
|
38071
|
+
optional: false,
|
|
38072
|
+
itemField: "deviceId"
|
|
38073
|
+
}, {
|
|
38074
|
+
name: "deviceId",
|
|
38075
|
+
form: "single",
|
|
38076
|
+
optional: false
|
|
38077
|
+
}],
|
|
37904
38078
|
"cameraStreams.getBrokerStreams": [{
|
|
37905
38079
|
name: "deviceId",
|
|
37906
38080
|
form: "single",
|
|
@@ -39201,7 +39375,7 @@ Object.freeze({
|
|
|
39201
39375
|
form: "single",
|
|
39202
39376
|
optional: false
|
|
39203
39377
|
}],
|
|
39204
|
-
"ptz.
|
|
39378
|
+
"ptz.getHomeReturn": [{
|
|
39205
39379
|
name: "deviceId",
|
|
39206
39380
|
form: "single",
|
|
39207
39381
|
optional: false
|
|
@@ -39251,7 +39425,7 @@ Object.freeze({
|
|
|
39251
39425
|
form: "single",
|
|
39252
39426
|
optional: false
|
|
39253
39427
|
}],
|
|
39254
|
-
"ptz.
|
|
39428
|
+
"ptz.setHomeReturn": [{
|
|
39255
39429
|
name: "deviceId",
|
|
39256
39430
|
form: "single",
|
|
39257
39431
|
optional: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-smtp-nodemailer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.113",
|
|
4
4
|
"description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|