@camstack/addon-smtp-nodemailer 1.2.101 → 1.2.103
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 +316 -10
- package/dist/smtp.addon.mjs +316 -10
- 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-BDR76Ykr.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).
|
|
@@ -17855,6 +17855,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17855
17855
|
settings: NcAlarmSettingsSchema,
|
|
17856
17856
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17857
17857
|
});
|
|
17858
|
+
/**
|
|
17859
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17860
|
+
*
|
|
17861
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
17862
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
17863
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
17864
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
17865
|
+
* a different thing from never having been told, and only the envelope
|
|
17866
|
+
* (`rulesLoaded`) can tell those apart.
|
|
17867
|
+
*/
|
|
17868
|
+
var NcClipRetentionAskSchema = object({
|
|
17869
|
+
/**
|
|
17870
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
17871
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
17872
|
+
* asking everywhere.
|
|
17873
|
+
*/
|
|
17874
|
+
deviceId: number().int().nonnegative().optional(),
|
|
17875
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
17876
|
+
* needs nothing produces no ask at all. */
|
|
17877
|
+
seconds: number().min(0).max(60),
|
|
17878
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
17879
|
+
* assigned, which is what the cut defaults to. */
|
|
17880
|
+
profile: CamProfileSchema.optional(),
|
|
17881
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
17882
|
+
ruleId: string(),
|
|
17883
|
+
ruleName: string(),
|
|
17884
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
17885
|
+
reason: _enum(["window", "occupancy"])
|
|
17886
|
+
});
|
|
17887
|
+
/**
|
|
17888
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
17889
|
+
*
|
|
17890
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
17891
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
17892
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
17893
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
17894
|
+
* footage this mechanism exists to keep.
|
|
17895
|
+
*/
|
|
17896
|
+
var NcClipRetentionPlanSchema = object({
|
|
17897
|
+
rulesLoaded: boolean(),
|
|
17898
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
17899
|
+
});
|
|
17858
17900
|
method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
|
|
17859
17901
|
kind: "mutation",
|
|
17860
17902
|
auth: "admin",
|
|
@@ -17875,7 +17917,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
17875
17917
|
}), object({ success: literal(true) }), {
|
|
17876
17918
|
kind: "mutation",
|
|
17877
17919
|
auth: "admin"
|
|
17878
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17920
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17879
17921
|
deviceId: number().int(),
|
|
17880
17922
|
muted: boolean()
|
|
17881
17923
|
}), object({ success: literal(true) }), {
|
|
@@ -19020,13 +19062,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19020
19062
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19021
19063
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19022
19064
|
*
|
|
19065
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19066
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19067
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19068
|
+
* detector.
|
|
19069
|
+
*
|
|
19070
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19071
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19072
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19073
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19074
|
+
* could not name.
|
|
19075
|
+
*
|
|
19023
19076
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19024
19077
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19025
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19026
|
-
* check silently readmits every source added after it was
|
|
19078
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19079
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19080
|
+
* written.
|
|
19027
19081
|
*/
|
|
19028
19082
|
var TrackSourceSchema = _enum([
|
|
19029
19083
|
"pipeline",
|
|
19084
|
+
"onboard",
|
|
19030
19085
|
"sensor",
|
|
19031
19086
|
"audio"
|
|
19032
19087
|
]);
|
|
@@ -20409,6 +20464,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20409
20464
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20410
20465
|
framesMatched: number().int()
|
|
20411
20466
|
})).readonly() });
|
|
20467
|
+
/**
|
|
20468
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20469
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20470
|
+
* is an alias of this, not a second list.
|
|
20471
|
+
*/
|
|
20472
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20473
|
+
"motion",
|
|
20474
|
+
"audio-dbfs",
|
|
20475
|
+
"battery",
|
|
20476
|
+
"occupancy"
|
|
20477
|
+
]);
|
|
20478
|
+
/**
|
|
20479
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20480
|
+
*
|
|
20481
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20482
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20483
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20484
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20485
|
+
*/
|
|
20486
|
+
var LtsBucketSchema = object({
|
|
20487
|
+
scope: string(),
|
|
20488
|
+
bucketStart: number().int(),
|
|
20489
|
+
samples: number().int().nonnegative(),
|
|
20490
|
+
sum: number(),
|
|
20491
|
+
min: number(),
|
|
20492
|
+
max: number()
|
|
20493
|
+
});
|
|
20412
20494
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20413
20495
|
deviceId: number(),
|
|
20414
20496
|
trackId: string()
|
|
@@ -20455,6 +20537,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20455
20537
|
kinds: array(string()).optional(),
|
|
20456
20538
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20457
20539
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20540
|
+
deviceId: number(),
|
|
20541
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20542
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20543
|
+
scope: string().optional(),
|
|
20544
|
+
from: number(),
|
|
20545
|
+
to: number(),
|
|
20546
|
+
limit: number().int().positive().optional()
|
|
20547
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20458
20548
|
deviceId: number(),
|
|
20459
20549
|
since: number(),
|
|
20460
20550
|
until: number(),
|
|
@@ -21073,6 +21163,40 @@ var MotionSourceEnum = _enum([
|
|
|
21073
21163
|
*/
|
|
21074
21164
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21075
21165
|
/**
|
|
21166
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21167
|
+
*
|
|
21168
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21169
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21170
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21171
|
+
* track, the overlay and the debug row.
|
|
21172
|
+
*
|
|
21173
|
+
* ## Why one, and why it is still an array
|
|
21174
|
+
*
|
|
21175
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21176
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21177
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21178
|
+
* detectors disagree about the same box by construction — which is the
|
|
21179
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21180
|
+
*
|
|
21181
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21182
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21183
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21184
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21185
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21186
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21187
|
+
* rely on.
|
|
21188
|
+
*
|
|
21189
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21190
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21191
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21192
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21193
|
+
* suite caught it.
|
|
21194
|
+
*
|
|
21195
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21196
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21197
|
+
*/
|
|
21198
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21199
|
+
/**
|
|
21076
21200
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21077
21201
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21078
21202
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21223,6 +21347,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21223
21347
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21224
21348
|
*/
|
|
21225
21349
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21350
|
+
/**
|
|
21351
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21352
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21353
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21354
|
+
*
|
|
21355
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21356
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21357
|
+
* here. Its boxes reach post-analysis on the same
|
|
21358
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21359
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21360
|
+
* subtree (face / plate / embedding).
|
|
21361
|
+
*
|
|
21362
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21363
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21364
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21365
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21366
|
+
*
|
|
21367
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21368
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21369
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21370
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21371
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21372
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21373
|
+
*
|
|
21374
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21375
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21376
|
+
* default.
|
|
21377
|
+
*/
|
|
21378
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21226
21379
|
pipelineEnabled: boolean().default(true),
|
|
21227
21380
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21228
21381
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21404,7 +21557,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21404
21557
|
queueDepth: number(),
|
|
21405
21558
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21406
21559
|
});
|
|
21560
|
+
/**
|
|
21561
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21562
|
+
*
|
|
21563
|
+
* One instance per node. Receives camera assignments from
|
|
21564
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21565
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21566
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21567
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21568
|
+
* the bus.
|
|
21569
|
+
*
|
|
21570
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21571
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21572
|
+
* makes assignment decisions itself.
|
|
21573
|
+
*/
|
|
21574
|
+
/**
|
|
21575
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21576
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21577
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21578
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21579
|
+
*/
|
|
21580
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21581
|
+
"not-attached",
|
|
21582
|
+
"battery-asleep",
|
|
21583
|
+
"not-watching",
|
|
21584
|
+
"already-bursting"
|
|
21585
|
+
]);
|
|
21407
21586
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
21587
|
+
deviceId: number(),
|
|
21588
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21589
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21590
|
+
frames: number().int().positive().optional(),
|
|
21591
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21592
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21593
|
+
reason: string()
|
|
21594
|
+
}), object({
|
|
21595
|
+
started: boolean(),
|
|
21596
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21597
|
+
}), {
|
|
21598
|
+
auth: "admin",
|
|
21599
|
+
kind: "mutation"
|
|
21600
|
+
}), method(object({
|
|
21408
21601
|
handle: FrameHandleSchema,
|
|
21409
21602
|
bbox: NativeCropBboxSchema,
|
|
21410
21603
|
maxWidth: number().int().positive().optional(),
|
|
@@ -26886,7 +27079,7 @@ var NativeDetectionSchema = object({
|
|
|
26886
27079
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
26887
27080
|
confidence: number().min(0).max(1).optional()
|
|
26888
27081
|
});
|
|
26889
|
-
object({
|
|
27082
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
26890
27083
|
/**
|
|
26891
27084
|
* Last observed instance per class. Missing entries mean the class
|
|
26892
27085
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -26903,14 +27096,56 @@ object({
|
|
|
26903
27096
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
26904
27097
|
/**
|
|
26905
27098
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
26906
|
-
*
|
|
26907
|
-
*
|
|
27099
|
+
*
|
|
27100
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27101
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27102
|
+
* other detection choice is made. `geometry` on
|
|
27103
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27104
|
+
* choice would buy this particular camera.
|
|
26908
27105
|
*/
|
|
26909
27106
|
enabled: boolean()
|
|
26910
|
-
})
|
|
27107
|
+
});
|
|
27108
|
+
/**
|
|
27109
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27110
|
+
*
|
|
27111
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27112
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27113
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27114
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27115
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27116
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27117
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27118
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27119
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27120
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27121
|
+
* tracker as motion and no further.
|
|
27122
|
+
*
|
|
27123
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27124
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27125
|
+
* derived form is only as honest as `getOptions`).
|
|
27126
|
+
*/
|
|
27127
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27128
|
+
"boxed",
|
|
27129
|
+
"while-streaming",
|
|
27130
|
+
"flag-only"
|
|
27131
|
+
]);
|
|
27132
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27133
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27134
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27135
|
+
/** What a detection from this camera carries. */
|
|
27136
|
+
geometry: NativeObjectGeometryEnum
|
|
27137
|
+
});
|
|
27138
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27139
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
26911
27140
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
26912
27141
|
lastFetchedAt: number() });
|
|
26913
|
-
DeviceType.Camera, method(object({
|
|
27142
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27143
|
+
deviceId: number(),
|
|
27144
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27145
|
+
}), _void(), {
|
|
27146
|
+
kind: "mutation",
|
|
27147
|
+
auth: "admin"
|
|
27148
|
+
}), method(object({
|
|
26914
27149
|
deviceId: number(),
|
|
26915
27150
|
enabled: boolean()
|
|
26916
27151
|
}), _void(), {
|
|
@@ -30709,7 +30944,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30709
30944
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30710
30945
|
totalObjects: number().int().nonnegative(),
|
|
30711
30946
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30712
|
-
byClass: record(string(), number().int().nonnegative())
|
|
30947
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
30948
|
+
/**
|
|
30949
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
30950
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
30951
|
+
*
|
|
30952
|
+
* The operator's question about a scene has two halves and they answer
|
|
30953
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
30954
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
30955
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
30956
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
30957
|
+
*
|
|
30958
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
30959
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
30960
|
+
*
|
|
30961
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
30962
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
30963
|
+
* parked objects here" about a camera whose lot is full.
|
|
30964
|
+
*/
|
|
30965
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
30966
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
30967
|
+
* same absence rule. */
|
|
30968
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30713
30969
|
});
|
|
30714
30970
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30715
30971
|
zoneId: string(),
|
|
@@ -33648,12 +33904,24 @@ Object.freeze({
|
|
|
33648
33904
|
addonId: null,
|
|
33649
33905
|
access: "create"
|
|
33650
33906
|
},
|
|
33907
|
+
"nativeObjectDetection.getOptions": {
|
|
33908
|
+
capName: "native-object-detection",
|
|
33909
|
+
capScope: "device",
|
|
33910
|
+
addonId: null,
|
|
33911
|
+
access: "view"
|
|
33912
|
+
},
|
|
33651
33913
|
"nativeObjectDetection.setEnabled": {
|
|
33652
33914
|
capName: "native-object-detection",
|
|
33653
33915
|
capScope: "device",
|
|
33654
33916
|
addonId: null,
|
|
33655
33917
|
access: "create"
|
|
33656
33918
|
},
|
|
33919
|
+
"nativeObjectDetection.setSettings": {
|
|
33920
|
+
capName: "native-object-detection",
|
|
33921
|
+
capScope: "device",
|
|
33922
|
+
addonId: null,
|
|
33923
|
+
access: "create"
|
|
33924
|
+
},
|
|
33657
33925
|
"navigation.getFeatures": {
|
|
33658
33926
|
capName: "navigation",
|
|
33659
33927
|
capScope: "device",
|
|
@@ -33918,6 +34186,12 @@ Object.freeze({
|
|
|
33918
34186
|
addonId: null,
|
|
33919
34187
|
access: "view"
|
|
33920
34188
|
},
|
|
34189
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34190
|
+
capName: "notification-rules",
|
|
34191
|
+
capScope: "system",
|
|
34192
|
+
addonId: null,
|
|
34193
|
+
access: "view"
|
|
34194
|
+
},
|
|
33921
34195
|
"notificationRules.getConditionCatalog": {
|
|
33922
34196
|
capName: "notification-rules",
|
|
33923
34197
|
capScope: "system",
|
|
@@ -34428,6 +34702,12 @@ Object.freeze({
|
|
|
34428
34702
|
addonId: null,
|
|
34429
34703
|
access: "create"
|
|
34430
34704
|
},
|
|
34705
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34706
|
+
capName: "pipeline-analytics",
|
|
34707
|
+
capScope: "device",
|
|
34708
|
+
addonId: null,
|
|
34709
|
+
access: "view"
|
|
34710
|
+
},
|
|
34431
34711
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34432
34712
|
capName: "pipeline-analytics",
|
|
34433
34713
|
capScope: "device",
|
|
@@ -35100,6 +35380,12 @@ Object.freeze({
|
|
|
35100
35380
|
addonId: null,
|
|
35101
35381
|
access: "create"
|
|
35102
35382
|
},
|
|
35383
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35384
|
+
capName: "pipeline-runner",
|
|
35385
|
+
capScope: "system",
|
|
35386
|
+
addonId: null,
|
|
35387
|
+
access: "create"
|
|
35388
|
+
},
|
|
35103
35389
|
"pipelineRunner.runDetailSubtree": {
|
|
35104
35390
|
capName: "pipeline-runner",
|
|
35105
35391
|
capScope: "system",
|
|
@@ -37880,11 +38166,21 @@ Object.freeze({
|
|
|
37880
38166
|
form: "single",
|
|
37881
38167
|
optional: false
|
|
37882
38168
|
}],
|
|
38169
|
+
"nativeObjectDetection.getOptions": [{
|
|
38170
|
+
name: "deviceId",
|
|
38171
|
+
form: "single",
|
|
38172
|
+
optional: false
|
|
38173
|
+
}],
|
|
37883
38174
|
"nativeObjectDetection.setEnabled": [{
|
|
37884
38175
|
name: "deviceId",
|
|
37885
38176
|
form: "single",
|
|
37886
38177
|
optional: false
|
|
37887
38178
|
}],
|
|
38179
|
+
"nativeObjectDetection.setSettings": [{
|
|
38180
|
+
name: "deviceId",
|
|
38181
|
+
form: "single",
|
|
38182
|
+
optional: false
|
|
38183
|
+
}],
|
|
37888
38184
|
"navigation.getFeatures": [{
|
|
37889
38185
|
name: "deviceId",
|
|
37890
38186
|
form: "single",
|
|
@@ -38234,6 +38530,11 @@ Object.freeze({
|
|
|
38234
38530
|
form: "single",
|
|
38235
38531
|
optional: false
|
|
38236
38532
|
}],
|
|
38533
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38534
|
+
name: "deviceId",
|
|
38535
|
+
form: "single",
|
|
38536
|
+
optional: false
|
|
38537
|
+
}],
|
|
38237
38538
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38238
38539
|
name: "deviceId",
|
|
38239
38540
|
form: "single",
|
|
@@ -38424,6 +38725,11 @@ Object.freeze({
|
|
|
38424
38725
|
form: "single",
|
|
38425
38726
|
optional: false
|
|
38426
38727
|
}],
|
|
38728
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38729
|
+
name: "deviceId",
|
|
38730
|
+
form: "single",
|
|
38731
|
+
optional: false
|
|
38732
|
+
}],
|
|
38427
38733
|
"pipelineRunner.runDetailSubtree": [{
|
|
38428
38734
|
name: "deviceId",
|
|
38429
38735
|
form: "single",
|
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-BDR76Ykr.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).
|
|
@@ -17853,6 +17853,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17853
17853
|
settings: NcAlarmSettingsSchema,
|
|
17854
17854
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17855
17855
|
});
|
|
17856
|
+
/**
|
|
17857
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17858
|
+
*
|
|
17859
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
17860
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
17861
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
17862
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
17863
|
+
* a different thing from never having been told, and only the envelope
|
|
17864
|
+
* (`rulesLoaded`) can tell those apart.
|
|
17865
|
+
*/
|
|
17866
|
+
var NcClipRetentionAskSchema = object({
|
|
17867
|
+
/**
|
|
17868
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
17869
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
17870
|
+
* asking everywhere.
|
|
17871
|
+
*/
|
|
17872
|
+
deviceId: number().int().nonnegative().optional(),
|
|
17873
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
17874
|
+
* needs nothing produces no ask at all. */
|
|
17875
|
+
seconds: number().min(0).max(60),
|
|
17876
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
17877
|
+
* assigned, which is what the cut defaults to. */
|
|
17878
|
+
profile: CamProfileSchema.optional(),
|
|
17879
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
17880
|
+
ruleId: string(),
|
|
17881
|
+
ruleName: string(),
|
|
17882
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
17883
|
+
reason: _enum(["window", "occupancy"])
|
|
17884
|
+
});
|
|
17885
|
+
/**
|
|
17886
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
17887
|
+
*
|
|
17888
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
17889
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
17890
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
17891
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
17892
|
+
* footage this mechanism exists to keep.
|
|
17893
|
+
*/
|
|
17894
|
+
var NcClipRetentionPlanSchema = object({
|
|
17895
|
+
rulesLoaded: boolean(),
|
|
17896
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
17897
|
+
});
|
|
17856
17898
|
method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
|
|
17857
17899
|
kind: "mutation",
|
|
17858
17900
|
auth: "admin",
|
|
@@ -17873,7 +17915,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
17873
17915
|
}), object({ success: literal(true) }), {
|
|
17874
17916
|
kind: "mutation",
|
|
17875
17917
|
auth: "admin"
|
|
17876
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17918
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17877
17919
|
deviceId: number().int(),
|
|
17878
17920
|
muted: boolean()
|
|
17879
17921
|
}), object({ success: literal(true) }), {
|
|
@@ -19018,13 +19060,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19018
19060
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19019
19061
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19020
19062
|
*
|
|
19063
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19064
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19065
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19066
|
+
* detector.
|
|
19067
|
+
*
|
|
19068
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19069
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19070
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19071
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19072
|
+
* could not name.
|
|
19073
|
+
*
|
|
19021
19074
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19022
19075
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19023
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19024
|
-
* check silently readmits every source added after it was
|
|
19076
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19077
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19078
|
+
* written.
|
|
19025
19079
|
*/
|
|
19026
19080
|
var TrackSourceSchema = _enum([
|
|
19027
19081
|
"pipeline",
|
|
19082
|
+
"onboard",
|
|
19028
19083
|
"sensor",
|
|
19029
19084
|
"audio"
|
|
19030
19085
|
]);
|
|
@@ -20407,6 +20462,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20407
20462
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20408
20463
|
framesMatched: number().int()
|
|
20409
20464
|
})).readonly() });
|
|
20465
|
+
/**
|
|
20466
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20467
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20468
|
+
* is an alias of this, not a second list.
|
|
20469
|
+
*/
|
|
20470
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20471
|
+
"motion",
|
|
20472
|
+
"audio-dbfs",
|
|
20473
|
+
"battery",
|
|
20474
|
+
"occupancy"
|
|
20475
|
+
]);
|
|
20476
|
+
/**
|
|
20477
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20478
|
+
*
|
|
20479
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20480
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20481
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20482
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20483
|
+
*/
|
|
20484
|
+
var LtsBucketSchema = object({
|
|
20485
|
+
scope: string(),
|
|
20486
|
+
bucketStart: number().int(),
|
|
20487
|
+
samples: number().int().nonnegative(),
|
|
20488
|
+
sum: number(),
|
|
20489
|
+
min: number(),
|
|
20490
|
+
max: number()
|
|
20491
|
+
});
|
|
20410
20492
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20411
20493
|
deviceId: number(),
|
|
20412
20494
|
trackId: string()
|
|
@@ -20453,6 +20535,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20453
20535
|
kinds: array(string()).optional(),
|
|
20454
20536
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20455
20537
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20538
|
+
deviceId: number(),
|
|
20539
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20540
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20541
|
+
scope: string().optional(),
|
|
20542
|
+
from: number(),
|
|
20543
|
+
to: number(),
|
|
20544
|
+
limit: number().int().positive().optional()
|
|
20545
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20456
20546
|
deviceId: number(),
|
|
20457
20547
|
since: number(),
|
|
20458
20548
|
until: number(),
|
|
@@ -21071,6 +21161,40 @@ var MotionSourceEnum = _enum([
|
|
|
21071
21161
|
*/
|
|
21072
21162
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21073
21163
|
/**
|
|
21164
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21165
|
+
*
|
|
21166
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21167
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21168
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21169
|
+
* track, the overlay and the debug row.
|
|
21170
|
+
*
|
|
21171
|
+
* ## Why one, and why it is still an array
|
|
21172
|
+
*
|
|
21173
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21174
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21175
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21176
|
+
* detectors disagree about the same box by construction — which is the
|
|
21177
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21178
|
+
*
|
|
21179
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21180
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21181
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21182
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21183
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21184
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21185
|
+
* rely on.
|
|
21186
|
+
*
|
|
21187
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21188
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21189
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21190
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21191
|
+
* suite caught it.
|
|
21192
|
+
*
|
|
21193
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21194
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21195
|
+
*/
|
|
21196
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21197
|
+
/**
|
|
21074
21198
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21075
21199
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21076
21200
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21221,6 +21345,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21221
21345
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21222
21346
|
*/
|
|
21223
21347
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21348
|
+
/**
|
|
21349
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21350
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21351
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21352
|
+
*
|
|
21353
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21354
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21355
|
+
* here. Its boxes reach post-analysis on the same
|
|
21356
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21357
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21358
|
+
* subtree (face / plate / embedding).
|
|
21359
|
+
*
|
|
21360
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21361
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21362
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21363
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21364
|
+
*
|
|
21365
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21366
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21367
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21368
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21369
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21370
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21371
|
+
*
|
|
21372
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21373
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21374
|
+
* default.
|
|
21375
|
+
*/
|
|
21376
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21224
21377
|
pipelineEnabled: boolean().default(true),
|
|
21225
21378
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21226
21379
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21402,7 +21555,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21402
21555
|
queueDepth: number(),
|
|
21403
21556
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21404
21557
|
});
|
|
21558
|
+
/**
|
|
21559
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21560
|
+
*
|
|
21561
|
+
* One instance per node. Receives camera assignments from
|
|
21562
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21563
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21564
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21565
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21566
|
+
* the bus.
|
|
21567
|
+
*
|
|
21568
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21569
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21570
|
+
* makes assignment decisions itself.
|
|
21571
|
+
*/
|
|
21572
|
+
/**
|
|
21573
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21574
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21575
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21576
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21577
|
+
*/
|
|
21578
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21579
|
+
"not-attached",
|
|
21580
|
+
"battery-asleep",
|
|
21581
|
+
"not-watching",
|
|
21582
|
+
"already-bursting"
|
|
21583
|
+
]);
|
|
21405
21584
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
21585
|
+
deviceId: number(),
|
|
21586
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21587
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21588
|
+
frames: number().int().positive().optional(),
|
|
21589
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21590
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21591
|
+
reason: string()
|
|
21592
|
+
}), object({
|
|
21593
|
+
started: boolean(),
|
|
21594
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21595
|
+
}), {
|
|
21596
|
+
auth: "admin",
|
|
21597
|
+
kind: "mutation"
|
|
21598
|
+
}), method(object({
|
|
21406
21599
|
handle: FrameHandleSchema,
|
|
21407
21600
|
bbox: NativeCropBboxSchema,
|
|
21408
21601
|
maxWidth: number().int().positive().optional(),
|
|
@@ -26884,7 +27077,7 @@ var NativeDetectionSchema = object({
|
|
|
26884
27077
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
26885
27078
|
confidence: number().min(0).max(1).optional()
|
|
26886
27079
|
});
|
|
26887
|
-
object({
|
|
27080
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
26888
27081
|
/**
|
|
26889
27082
|
* Last observed instance per class. Missing entries mean the class
|
|
26890
27083
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -26901,14 +27094,56 @@ object({
|
|
|
26901
27094
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
26902
27095
|
/**
|
|
26903
27096
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
26904
|
-
*
|
|
26905
|
-
*
|
|
27097
|
+
*
|
|
27098
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27099
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27100
|
+
* other detection choice is made. `geometry` on
|
|
27101
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27102
|
+
* choice would buy this particular camera.
|
|
26906
27103
|
*/
|
|
26907
27104
|
enabled: boolean()
|
|
26908
|
-
})
|
|
27105
|
+
});
|
|
27106
|
+
/**
|
|
27107
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27108
|
+
*
|
|
27109
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27110
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27111
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27112
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27113
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27114
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27115
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27116
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27117
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27118
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27119
|
+
* tracker as motion and no further.
|
|
27120
|
+
*
|
|
27121
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27122
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27123
|
+
* derived form is only as honest as `getOptions`).
|
|
27124
|
+
*/
|
|
27125
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27126
|
+
"boxed",
|
|
27127
|
+
"while-streaming",
|
|
27128
|
+
"flag-only"
|
|
27129
|
+
]);
|
|
27130
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27131
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27132
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27133
|
+
/** What a detection from this camera carries. */
|
|
27134
|
+
geometry: NativeObjectGeometryEnum
|
|
27135
|
+
});
|
|
27136
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27137
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
26909
27138
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
26910
27139
|
lastFetchedAt: number() });
|
|
26911
|
-
DeviceType.Camera, method(object({
|
|
27140
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27141
|
+
deviceId: number(),
|
|
27142
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27143
|
+
}), _void(), {
|
|
27144
|
+
kind: "mutation",
|
|
27145
|
+
auth: "admin"
|
|
27146
|
+
}), method(object({
|
|
26912
27147
|
deviceId: number(),
|
|
26913
27148
|
enabled: boolean()
|
|
26914
27149
|
}), _void(), {
|
|
@@ -30707,7 +30942,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30707
30942
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30708
30943
|
totalObjects: number().int().nonnegative(),
|
|
30709
30944
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30710
|
-
byClass: record(string(), number().int().nonnegative())
|
|
30945
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
30946
|
+
/**
|
|
30947
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
30948
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
30949
|
+
*
|
|
30950
|
+
* The operator's question about a scene has two halves and they answer
|
|
30951
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
30952
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
30953
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
30954
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
30955
|
+
*
|
|
30956
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
30957
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
30958
|
+
*
|
|
30959
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
30960
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
30961
|
+
* parked objects here" about a camera whose lot is full.
|
|
30962
|
+
*/
|
|
30963
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
30964
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
30965
|
+
* same absence rule. */
|
|
30966
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30711
30967
|
});
|
|
30712
30968
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30713
30969
|
zoneId: string(),
|
|
@@ -33646,12 +33902,24 @@ Object.freeze({
|
|
|
33646
33902
|
addonId: null,
|
|
33647
33903
|
access: "create"
|
|
33648
33904
|
},
|
|
33905
|
+
"nativeObjectDetection.getOptions": {
|
|
33906
|
+
capName: "native-object-detection",
|
|
33907
|
+
capScope: "device",
|
|
33908
|
+
addonId: null,
|
|
33909
|
+
access: "view"
|
|
33910
|
+
},
|
|
33649
33911
|
"nativeObjectDetection.setEnabled": {
|
|
33650
33912
|
capName: "native-object-detection",
|
|
33651
33913
|
capScope: "device",
|
|
33652
33914
|
addonId: null,
|
|
33653
33915
|
access: "create"
|
|
33654
33916
|
},
|
|
33917
|
+
"nativeObjectDetection.setSettings": {
|
|
33918
|
+
capName: "native-object-detection",
|
|
33919
|
+
capScope: "device",
|
|
33920
|
+
addonId: null,
|
|
33921
|
+
access: "create"
|
|
33922
|
+
},
|
|
33655
33923
|
"navigation.getFeatures": {
|
|
33656
33924
|
capName: "navigation",
|
|
33657
33925
|
capScope: "device",
|
|
@@ -33916,6 +34184,12 @@ Object.freeze({
|
|
|
33916
34184
|
addonId: null,
|
|
33917
34185
|
access: "view"
|
|
33918
34186
|
},
|
|
34187
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34188
|
+
capName: "notification-rules",
|
|
34189
|
+
capScope: "system",
|
|
34190
|
+
addonId: null,
|
|
34191
|
+
access: "view"
|
|
34192
|
+
},
|
|
33919
34193
|
"notificationRules.getConditionCatalog": {
|
|
33920
34194
|
capName: "notification-rules",
|
|
33921
34195
|
capScope: "system",
|
|
@@ -34426,6 +34700,12 @@ Object.freeze({
|
|
|
34426
34700
|
addonId: null,
|
|
34427
34701
|
access: "create"
|
|
34428
34702
|
},
|
|
34703
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34704
|
+
capName: "pipeline-analytics",
|
|
34705
|
+
capScope: "device",
|
|
34706
|
+
addonId: null,
|
|
34707
|
+
access: "view"
|
|
34708
|
+
},
|
|
34429
34709
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34430
34710
|
capName: "pipeline-analytics",
|
|
34431
34711
|
capScope: "device",
|
|
@@ -35098,6 +35378,12 @@ Object.freeze({
|
|
|
35098
35378
|
addonId: null,
|
|
35099
35379
|
access: "create"
|
|
35100
35380
|
},
|
|
35381
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35382
|
+
capName: "pipeline-runner",
|
|
35383
|
+
capScope: "system",
|
|
35384
|
+
addonId: null,
|
|
35385
|
+
access: "create"
|
|
35386
|
+
},
|
|
35101
35387
|
"pipelineRunner.runDetailSubtree": {
|
|
35102
35388
|
capName: "pipeline-runner",
|
|
35103
35389
|
capScope: "system",
|
|
@@ -37878,11 +38164,21 @@ Object.freeze({
|
|
|
37878
38164
|
form: "single",
|
|
37879
38165
|
optional: false
|
|
37880
38166
|
}],
|
|
38167
|
+
"nativeObjectDetection.getOptions": [{
|
|
38168
|
+
name: "deviceId",
|
|
38169
|
+
form: "single",
|
|
38170
|
+
optional: false
|
|
38171
|
+
}],
|
|
37881
38172
|
"nativeObjectDetection.setEnabled": [{
|
|
37882
38173
|
name: "deviceId",
|
|
37883
38174
|
form: "single",
|
|
37884
38175
|
optional: false
|
|
37885
38176
|
}],
|
|
38177
|
+
"nativeObjectDetection.setSettings": [{
|
|
38178
|
+
name: "deviceId",
|
|
38179
|
+
form: "single",
|
|
38180
|
+
optional: false
|
|
38181
|
+
}],
|
|
37886
38182
|
"navigation.getFeatures": [{
|
|
37887
38183
|
name: "deviceId",
|
|
37888
38184
|
form: "single",
|
|
@@ -38232,6 +38528,11 @@ Object.freeze({
|
|
|
38232
38528
|
form: "single",
|
|
38233
38529
|
optional: false
|
|
38234
38530
|
}],
|
|
38531
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38532
|
+
name: "deviceId",
|
|
38533
|
+
form: "single",
|
|
38534
|
+
optional: false
|
|
38535
|
+
}],
|
|
38235
38536
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38236
38537
|
name: "deviceId",
|
|
38237
38538
|
form: "single",
|
|
@@ -38422,6 +38723,11 @@ Object.freeze({
|
|
|
38422
38723
|
form: "single",
|
|
38423
38724
|
optional: false
|
|
38424
38725
|
}],
|
|
38726
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38727
|
+
name: "deviceId",
|
|
38728
|
+
form: "single",
|
|
38729
|
+
optional: false
|
|
38730
|
+
}],
|
|
38425
38731
|
"pipelineRunner.runDetailSubtree": [{
|
|
38426
38732
|
name: "deviceId",
|
|
38427
38733
|
form: "single",
|
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.103",
|
|
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",
|