@camstack/addon-mqtt-broker 1.2.102 → 1.2.104
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/mqtt-broker.addon.js +316 -10
- package/dist/mqtt-broker.addon.mjs +316 -10
- package/package.json +1 -1
|
@@ -5405,7 +5405,7 @@ var ZodIssueCode = {
|
|
|
5405
5405
|
var ZodFirstPartyTypeKind;
|
|
5406
5406
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5407
5407
|
//#endregion
|
|
5408
|
-
//#region ../types/dist/sleep-
|
|
5408
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5409
5409
|
/**
|
|
5410
5410
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5411
5411
|
* window to float samples (D455).
|
|
@@ -17931,6 +17931,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17931
17931
|
settings: NcAlarmSettingsSchema,
|
|
17932
17932
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17933
17933
|
});
|
|
17934
|
+
/**
|
|
17935
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17936
|
+
*
|
|
17937
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
17938
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
17939
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
17940
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
17941
|
+
* a different thing from never having been told, and only the envelope
|
|
17942
|
+
* (`rulesLoaded`) can tell those apart.
|
|
17943
|
+
*/
|
|
17944
|
+
var NcClipRetentionAskSchema = object({
|
|
17945
|
+
/**
|
|
17946
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
17947
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
17948
|
+
* asking everywhere.
|
|
17949
|
+
*/
|
|
17950
|
+
deviceId: number().int().nonnegative().optional(),
|
|
17951
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
17952
|
+
* needs nothing produces no ask at all. */
|
|
17953
|
+
seconds: number().min(0).max(60),
|
|
17954
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
17955
|
+
* assigned, which is what the cut defaults to. */
|
|
17956
|
+
profile: CamProfileSchema.optional(),
|
|
17957
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
17958
|
+
ruleId: string(),
|
|
17959
|
+
ruleName: string(),
|
|
17960
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
17961
|
+
reason: _enum(["window", "occupancy"])
|
|
17962
|
+
});
|
|
17963
|
+
/**
|
|
17964
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
17965
|
+
*
|
|
17966
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
17967
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
17968
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
17969
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
17970
|
+
* footage this mechanism exists to keep.
|
|
17971
|
+
*/
|
|
17972
|
+
var NcClipRetentionPlanSchema = object({
|
|
17973
|
+
rulesLoaded: boolean(),
|
|
17974
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
17975
|
+
});
|
|
17934
17976
|
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 }), {
|
|
17935
17977
|
kind: "mutation",
|
|
17936
17978
|
auth: "admin",
|
|
@@ -17951,7 +17993,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
17951
17993
|
}), object({ success: literal(true) }), {
|
|
17952
17994
|
kind: "mutation",
|
|
17953
17995
|
auth: "admin"
|
|
17954
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17996
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17955
17997
|
deviceId: number().int(),
|
|
17956
17998
|
muted: boolean()
|
|
17957
17999
|
}), object({ success: literal(true) }), {
|
|
@@ -19096,13 +19138,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19096
19138
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19097
19139
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19098
19140
|
*
|
|
19141
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19142
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19143
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19144
|
+
* detector.
|
|
19145
|
+
*
|
|
19146
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19147
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19148
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19149
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19150
|
+
* could not name.
|
|
19151
|
+
*
|
|
19099
19152
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19100
19153
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19101
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19102
|
-
* check silently readmits every source added after it was
|
|
19154
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19155
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19156
|
+
* written.
|
|
19103
19157
|
*/
|
|
19104
19158
|
var TrackSourceSchema = _enum([
|
|
19105
19159
|
"pipeline",
|
|
19160
|
+
"onboard",
|
|
19106
19161
|
"sensor",
|
|
19107
19162
|
"audio"
|
|
19108
19163
|
]);
|
|
@@ -20485,6 +20540,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20485
20540
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20486
20541
|
framesMatched: number().int()
|
|
20487
20542
|
})).readonly() });
|
|
20543
|
+
/**
|
|
20544
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20545
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20546
|
+
* is an alias of this, not a second list.
|
|
20547
|
+
*/
|
|
20548
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20549
|
+
"motion",
|
|
20550
|
+
"audio-dbfs",
|
|
20551
|
+
"battery",
|
|
20552
|
+
"occupancy"
|
|
20553
|
+
]);
|
|
20554
|
+
/**
|
|
20555
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20556
|
+
*
|
|
20557
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20558
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20559
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20560
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20561
|
+
*/
|
|
20562
|
+
var LtsBucketSchema = object({
|
|
20563
|
+
scope: string(),
|
|
20564
|
+
bucketStart: number().int(),
|
|
20565
|
+
samples: number().int().nonnegative(),
|
|
20566
|
+
sum: number(),
|
|
20567
|
+
min: number(),
|
|
20568
|
+
max: number()
|
|
20569
|
+
});
|
|
20488
20570
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20489
20571
|
deviceId: number(),
|
|
20490
20572
|
trackId: string()
|
|
@@ -20531,6 +20613,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20531
20613
|
kinds: array(string()).optional(),
|
|
20532
20614
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20533
20615
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20616
|
+
deviceId: number(),
|
|
20617
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20618
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20619
|
+
scope: string().optional(),
|
|
20620
|
+
from: number(),
|
|
20621
|
+
to: number(),
|
|
20622
|
+
limit: number().int().positive().optional()
|
|
20623
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20534
20624
|
deviceId: number(),
|
|
20535
20625
|
since: number(),
|
|
20536
20626
|
until: number(),
|
|
@@ -21149,6 +21239,40 @@ var MotionSourceEnum = _enum([
|
|
|
21149
21239
|
*/
|
|
21150
21240
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21151
21241
|
/**
|
|
21242
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21243
|
+
*
|
|
21244
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21245
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21246
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21247
|
+
* track, the overlay and the debug row.
|
|
21248
|
+
*
|
|
21249
|
+
* ## Why one, and why it is still an array
|
|
21250
|
+
*
|
|
21251
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21252
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21253
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21254
|
+
* detectors disagree about the same box by construction — which is the
|
|
21255
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21256
|
+
*
|
|
21257
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21258
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21259
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21260
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21261
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21262
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21263
|
+
* rely on.
|
|
21264
|
+
*
|
|
21265
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21266
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21267
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21268
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21269
|
+
* suite caught it.
|
|
21270
|
+
*
|
|
21271
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21272
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21273
|
+
*/
|
|
21274
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21275
|
+
/**
|
|
21152
21276
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21153
21277
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21154
21278
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21299,6 +21423,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21299
21423
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21300
21424
|
*/
|
|
21301
21425
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21426
|
+
/**
|
|
21427
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21428
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21429
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21430
|
+
*
|
|
21431
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21432
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21433
|
+
* here. Its boxes reach post-analysis on the same
|
|
21434
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21435
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21436
|
+
* subtree (face / plate / embedding).
|
|
21437
|
+
*
|
|
21438
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21439
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21440
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21441
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21442
|
+
*
|
|
21443
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21444
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21445
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21446
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21447
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21448
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21449
|
+
*
|
|
21450
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21451
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21452
|
+
* default.
|
|
21453
|
+
*/
|
|
21454
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21302
21455
|
pipelineEnabled: boolean().default(true),
|
|
21303
21456
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21304
21457
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21480,7 +21633,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21480
21633
|
queueDepth: number(),
|
|
21481
21634
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21482
21635
|
});
|
|
21636
|
+
/**
|
|
21637
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21638
|
+
*
|
|
21639
|
+
* One instance per node. Receives camera assignments from
|
|
21640
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21641
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21642
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21643
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21644
|
+
* the bus.
|
|
21645
|
+
*
|
|
21646
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21647
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21648
|
+
* makes assignment decisions itself.
|
|
21649
|
+
*/
|
|
21650
|
+
/**
|
|
21651
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21652
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21653
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21654
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21655
|
+
*/
|
|
21656
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21657
|
+
"not-attached",
|
|
21658
|
+
"battery-asleep",
|
|
21659
|
+
"not-watching",
|
|
21660
|
+
"already-bursting"
|
|
21661
|
+
]);
|
|
21483
21662
|
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({
|
|
21663
|
+
deviceId: number(),
|
|
21664
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21665
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21666
|
+
frames: number().int().positive().optional(),
|
|
21667
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21668
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21669
|
+
reason: string()
|
|
21670
|
+
}), object({
|
|
21671
|
+
started: boolean(),
|
|
21672
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21673
|
+
}), {
|
|
21674
|
+
auth: "admin",
|
|
21675
|
+
kind: "mutation"
|
|
21676
|
+
}), method(object({
|
|
21484
21677
|
handle: FrameHandleSchema,
|
|
21485
21678
|
bbox: NativeCropBboxSchema,
|
|
21486
21679
|
maxWidth: number().int().positive().optional(),
|
|
@@ -26949,7 +27142,7 @@ var NativeDetectionSchema = object({
|
|
|
26949
27142
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
26950
27143
|
confidence: number().min(0).max(1).optional()
|
|
26951
27144
|
});
|
|
26952
|
-
object({
|
|
27145
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
26953
27146
|
/**
|
|
26954
27147
|
* Last observed instance per class. Missing entries mean the class
|
|
26955
27148
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -26966,14 +27159,56 @@ object({
|
|
|
26966
27159
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
26967
27160
|
/**
|
|
26968
27161
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
26969
|
-
*
|
|
26970
|
-
*
|
|
27162
|
+
*
|
|
27163
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27164
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27165
|
+
* other detection choice is made. `geometry` on
|
|
27166
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27167
|
+
* choice would buy this particular camera.
|
|
26971
27168
|
*/
|
|
26972
27169
|
enabled: boolean()
|
|
26973
|
-
})
|
|
27170
|
+
});
|
|
27171
|
+
/**
|
|
27172
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27173
|
+
*
|
|
27174
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27175
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27176
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27177
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27178
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27179
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27180
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27181
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27182
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27183
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27184
|
+
* tracker as motion and no further.
|
|
27185
|
+
*
|
|
27186
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27187
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27188
|
+
* derived form is only as honest as `getOptions`).
|
|
27189
|
+
*/
|
|
27190
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27191
|
+
"boxed",
|
|
27192
|
+
"while-streaming",
|
|
27193
|
+
"flag-only"
|
|
27194
|
+
]);
|
|
27195
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27196
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27197
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27198
|
+
/** What a detection from this camera carries. */
|
|
27199
|
+
geometry: NativeObjectGeometryEnum
|
|
27200
|
+
});
|
|
27201
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27202
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
26974
27203
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
26975
27204
|
lastFetchedAt: number() });
|
|
26976
|
-
DeviceType.Camera, method(object({
|
|
27205
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27206
|
+
deviceId: number(),
|
|
27207
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27208
|
+
}), _void(), {
|
|
27209
|
+
kind: "mutation",
|
|
27210
|
+
auth: "admin"
|
|
27211
|
+
}), method(object({
|
|
26977
27212
|
deviceId: number(),
|
|
26978
27213
|
enabled: boolean()
|
|
26979
27214
|
}), _void(), {
|
|
@@ -30772,7 +31007,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30772
31007
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30773
31008
|
totalObjects: number().int().nonnegative(),
|
|
30774
31009
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30775
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31010
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31011
|
+
/**
|
|
31012
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31013
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31014
|
+
*
|
|
31015
|
+
* The operator's question about a scene has two halves and they answer
|
|
31016
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31017
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31018
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31019
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31020
|
+
*
|
|
31021
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31022
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31023
|
+
*
|
|
31024
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31025
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31026
|
+
* parked objects here" about a camera whose lot is full.
|
|
31027
|
+
*/
|
|
31028
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31029
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31030
|
+
* same absence rule. */
|
|
31031
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30776
31032
|
});
|
|
30777
31033
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30778
31034
|
zoneId: string(),
|
|
@@ -33711,12 +33967,24 @@ Object.freeze({
|
|
|
33711
33967
|
addonId: null,
|
|
33712
33968
|
access: "create"
|
|
33713
33969
|
},
|
|
33970
|
+
"nativeObjectDetection.getOptions": {
|
|
33971
|
+
capName: "native-object-detection",
|
|
33972
|
+
capScope: "device",
|
|
33973
|
+
addonId: null,
|
|
33974
|
+
access: "view"
|
|
33975
|
+
},
|
|
33714
33976
|
"nativeObjectDetection.setEnabled": {
|
|
33715
33977
|
capName: "native-object-detection",
|
|
33716
33978
|
capScope: "device",
|
|
33717
33979
|
addonId: null,
|
|
33718
33980
|
access: "create"
|
|
33719
33981
|
},
|
|
33982
|
+
"nativeObjectDetection.setSettings": {
|
|
33983
|
+
capName: "native-object-detection",
|
|
33984
|
+
capScope: "device",
|
|
33985
|
+
addonId: null,
|
|
33986
|
+
access: "create"
|
|
33987
|
+
},
|
|
33720
33988
|
"navigation.getFeatures": {
|
|
33721
33989
|
capName: "navigation",
|
|
33722
33990
|
capScope: "device",
|
|
@@ -33981,6 +34249,12 @@ Object.freeze({
|
|
|
33981
34249
|
addonId: null,
|
|
33982
34250
|
access: "view"
|
|
33983
34251
|
},
|
|
34252
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34253
|
+
capName: "notification-rules",
|
|
34254
|
+
capScope: "system",
|
|
34255
|
+
addonId: null,
|
|
34256
|
+
access: "view"
|
|
34257
|
+
},
|
|
33984
34258
|
"notificationRules.getConditionCatalog": {
|
|
33985
34259
|
capName: "notification-rules",
|
|
33986
34260
|
capScope: "system",
|
|
@@ -34491,6 +34765,12 @@ Object.freeze({
|
|
|
34491
34765
|
addonId: null,
|
|
34492
34766
|
access: "create"
|
|
34493
34767
|
},
|
|
34768
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34769
|
+
capName: "pipeline-analytics",
|
|
34770
|
+
capScope: "device",
|
|
34771
|
+
addonId: null,
|
|
34772
|
+
access: "view"
|
|
34773
|
+
},
|
|
34494
34774
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34495
34775
|
capName: "pipeline-analytics",
|
|
34496
34776
|
capScope: "device",
|
|
@@ -35163,6 +35443,12 @@ Object.freeze({
|
|
|
35163
35443
|
addonId: null,
|
|
35164
35444
|
access: "create"
|
|
35165
35445
|
},
|
|
35446
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35447
|
+
capName: "pipeline-runner",
|
|
35448
|
+
capScope: "system",
|
|
35449
|
+
addonId: null,
|
|
35450
|
+
access: "create"
|
|
35451
|
+
},
|
|
35166
35452
|
"pipelineRunner.runDetailSubtree": {
|
|
35167
35453
|
capName: "pipeline-runner",
|
|
35168
35454
|
capScope: "system",
|
|
@@ -37943,11 +38229,21 @@ Object.freeze({
|
|
|
37943
38229
|
form: "single",
|
|
37944
38230
|
optional: false
|
|
37945
38231
|
}],
|
|
38232
|
+
"nativeObjectDetection.getOptions": [{
|
|
38233
|
+
name: "deviceId",
|
|
38234
|
+
form: "single",
|
|
38235
|
+
optional: false
|
|
38236
|
+
}],
|
|
37946
38237
|
"nativeObjectDetection.setEnabled": [{
|
|
37947
38238
|
name: "deviceId",
|
|
37948
38239
|
form: "single",
|
|
37949
38240
|
optional: false
|
|
37950
38241
|
}],
|
|
38242
|
+
"nativeObjectDetection.setSettings": [{
|
|
38243
|
+
name: "deviceId",
|
|
38244
|
+
form: "single",
|
|
38245
|
+
optional: false
|
|
38246
|
+
}],
|
|
37951
38247
|
"navigation.getFeatures": [{
|
|
37952
38248
|
name: "deviceId",
|
|
37953
38249
|
form: "single",
|
|
@@ -38297,6 +38593,11 @@ Object.freeze({
|
|
|
38297
38593
|
form: "single",
|
|
38298
38594
|
optional: false
|
|
38299
38595
|
}],
|
|
38596
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38597
|
+
name: "deviceId",
|
|
38598
|
+
form: "single",
|
|
38599
|
+
optional: false
|
|
38600
|
+
}],
|
|
38300
38601
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38301
38602
|
name: "deviceId",
|
|
38302
38603
|
form: "single",
|
|
@@ -38487,6 +38788,11 @@ Object.freeze({
|
|
|
38487
38788
|
form: "single",
|
|
38488
38789
|
optional: false
|
|
38489
38790
|
}],
|
|
38791
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38792
|
+
name: "deviceId",
|
|
38793
|
+
form: "single",
|
|
38794
|
+
optional: false
|
|
38795
|
+
}],
|
|
38490
38796
|
"pipelineRunner.runDetailSubtree": [{
|
|
38491
38797
|
name: "deviceId",
|
|
38492
38798
|
form: "single",
|
|
@@ -5400,7 +5400,7 @@ var ZodIssueCode = {
|
|
|
5400
5400
|
var ZodFirstPartyTypeKind;
|
|
5401
5401
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5402
5402
|
//#endregion
|
|
5403
|
-
//#region ../types/dist/sleep-
|
|
5403
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5404
5404
|
/**
|
|
5405
5405
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5406
5406
|
* window to float samples (D455).
|
|
@@ -17926,6 +17926,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17926
17926
|
settings: NcAlarmSettingsSchema,
|
|
17927
17927
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17928
17928
|
});
|
|
17929
|
+
/**
|
|
17930
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17931
|
+
*
|
|
17932
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
17933
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
17934
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
17935
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
17936
|
+
* a different thing from never having been told, and only the envelope
|
|
17937
|
+
* (`rulesLoaded`) can tell those apart.
|
|
17938
|
+
*/
|
|
17939
|
+
var NcClipRetentionAskSchema = object({
|
|
17940
|
+
/**
|
|
17941
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
17942
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
17943
|
+
* asking everywhere.
|
|
17944
|
+
*/
|
|
17945
|
+
deviceId: number().int().nonnegative().optional(),
|
|
17946
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
17947
|
+
* needs nothing produces no ask at all. */
|
|
17948
|
+
seconds: number().min(0).max(60),
|
|
17949
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
17950
|
+
* assigned, which is what the cut defaults to. */
|
|
17951
|
+
profile: CamProfileSchema.optional(),
|
|
17952
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
17953
|
+
ruleId: string(),
|
|
17954
|
+
ruleName: string(),
|
|
17955
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
17956
|
+
reason: _enum(["window", "occupancy"])
|
|
17957
|
+
});
|
|
17958
|
+
/**
|
|
17959
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
17960
|
+
*
|
|
17961
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
17962
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
17963
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
17964
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
17965
|
+
* footage this mechanism exists to keep.
|
|
17966
|
+
*/
|
|
17967
|
+
var NcClipRetentionPlanSchema = object({
|
|
17968
|
+
rulesLoaded: boolean(),
|
|
17969
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
17970
|
+
});
|
|
17929
17971
|
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 }), {
|
|
17930
17972
|
kind: "mutation",
|
|
17931
17973
|
auth: "admin",
|
|
@@ -17946,7 +17988,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
17946
17988
|
}), object({ success: literal(true) }), {
|
|
17947
17989
|
kind: "mutation",
|
|
17948
17990
|
auth: "admin"
|
|
17949
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17991
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17950
17992
|
deviceId: number().int(),
|
|
17951
17993
|
muted: boolean()
|
|
17952
17994
|
}), object({ success: literal(true) }), {
|
|
@@ -19091,13 +19133,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19091
19133
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19092
19134
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19093
19135
|
*
|
|
19136
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19137
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19138
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19139
|
+
* detector.
|
|
19140
|
+
*
|
|
19141
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19142
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19143
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19144
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19145
|
+
* could not name.
|
|
19146
|
+
*
|
|
19094
19147
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19095
19148
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19096
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19097
|
-
* check silently readmits every source added after it was
|
|
19149
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19150
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19151
|
+
* written.
|
|
19098
19152
|
*/
|
|
19099
19153
|
var TrackSourceSchema = _enum([
|
|
19100
19154
|
"pipeline",
|
|
19155
|
+
"onboard",
|
|
19101
19156
|
"sensor",
|
|
19102
19157
|
"audio"
|
|
19103
19158
|
]);
|
|
@@ -20480,6 +20535,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20480
20535
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20481
20536
|
framesMatched: number().int()
|
|
20482
20537
|
})).readonly() });
|
|
20538
|
+
/**
|
|
20539
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20540
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20541
|
+
* is an alias of this, not a second list.
|
|
20542
|
+
*/
|
|
20543
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20544
|
+
"motion",
|
|
20545
|
+
"audio-dbfs",
|
|
20546
|
+
"battery",
|
|
20547
|
+
"occupancy"
|
|
20548
|
+
]);
|
|
20549
|
+
/**
|
|
20550
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20551
|
+
*
|
|
20552
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20553
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20554
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20555
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20556
|
+
*/
|
|
20557
|
+
var LtsBucketSchema = object({
|
|
20558
|
+
scope: string(),
|
|
20559
|
+
bucketStart: number().int(),
|
|
20560
|
+
samples: number().int().nonnegative(),
|
|
20561
|
+
sum: number(),
|
|
20562
|
+
min: number(),
|
|
20563
|
+
max: number()
|
|
20564
|
+
});
|
|
20483
20565
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20484
20566
|
deviceId: number(),
|
|
20485
20567
|
trackId: string()
|
|
@@ -20526,6 +20608,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20526
20608
|
kinds: array(string()).optional(),
|
|
20527
20609
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20528
20610
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20611
|
+
deviceId: number(),
|
|
20612
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20613
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20614
|
+
scope: string().optional(),
|
|
20615
|
+
from: number(),
|
|
20616
|
+
to: number(),
|
|
20617
|
+
limit: number().int().positive().optional()
|
|
20618
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20529
20619
|
deviceId: number(),
|
|
20530
20620
|
since: number(),
|
|
20531
20621
|
until: number(),
|
|
@@ -21144,6 +21234,40 @@ var MotionSourceEnum = _enum([
|
|
|
21144
21234
|
*/
|
|
21145
21235
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21146
21236
|
/**
|
|
21237
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21238
|
+
*
|
|
21239
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21240
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21241
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21242
|
+
* track, the overlay and the debug row.
|
|
21243
|
+
*
|
|
21244
|
+
* ## Why one, and why it is still an array
|
|
21245
|
+
*
|
|
21246
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21247
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21248
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21249
|
+
* detectors disagree about the same box by construction — which is the
|
|
21250
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21251
|
+
*
|
|
21252
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21253
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21254
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21255
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21256
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21257
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21258
|
+
* rely on.
|
|
21259
|
+
*
|
|
21260
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21261
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21262
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21263
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21264
|
+
* suite caught it.
|
|
21265
|
+
*
|
|
21266
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21267
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21268
|
+
*/
|
|
21269
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21270
|
+
/**
|
|
21147
21271
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21148
21272
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21149
21273
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21294,6 +21418,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21294
21418
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21295
21419
|
*/
|
|
21296
21420
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21421
|
+
/**
|
|
21422
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21423
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21424
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21425
|
+
*
|
|
21426
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21427
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21428
|
+
* here. Its boxes reach post-analysis on the same
|
|
21429
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21430
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21431
|
+
* subtree (face / plate / embedding).
|
|
21432
|
+
*
|
|
21433
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21434
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21435
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21436
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21437
|
+
*
|
|
21438
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21439
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21440
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21441
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21442
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21443
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21444
|
+
*
|
|
21445
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21446
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21447
|
+
* default.
|
|
21448
|
+
*/
|
|
21449
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21297
21450
|
pipelineEnabled: boolean().default(true),
|
|
21298
21451
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21299
21452
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21475,7 +21628,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21475
21628
|
queueDepth: number(),
|
|
21476
21629
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21477
21630
|
});
|
|
21631
|
+
/**
|
|
21632
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21633
|
+
*
|
|
21634
|
+
* One instance per node. Receives camera assignments from
|
|
21635
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21636
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21637
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21638
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21639
|
+
* the bus.
|
|
21640
|
+
*
|
|
21641
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21642
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21643
|
+
* makes assignment decisions itself.
|
|
21644
|
+
*/
|
|
21645
|
+
/**
|
|
21646
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21647
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21648
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21649
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21650
|
+
*/
|
|
21651
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21652
|
+
"not-attached",
|
|
21653
|
+
"battery-asleep",
|
|
21654
|
+
"not-watching",
|
|
21655
|
+
"already-bursting"
|
|
21656
|
+
]);
|
|
21478
21657
|
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({
|
|
21658
|
+
deviceId: number(),
|
|
21659
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21660
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21661
|
+
frames: number().int().positive().optional(),
|
|
21662
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21663
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21664
|
+
reason: string()
|
|
21665
|
+
}), object({
|
|
21666
|
+
started: boolean(),
|
|
21667
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21668
|
+
}), {
|
|
21669
|
+
auth: "admin",
|
|
21670
|
+
kind: "mutation"
|
|
21671
|
+
}), method(object({
|
|
21479
21672
|
handle: FrameHandleSchema,
|
|
21480
21673
|
bbox: NativeCropBboxSchema,
|
|
21481
21674
|
maxWidth: number().int().positive().optional(),
|
|
@@ -26944,7 +27137,7 @@ var NativeDetectionSchema = object({
|
|
|
26944
27137
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
26945
27138
|
confidence: number().min(0).max(1).optional()
|
|
26946
27139
|
});
|
|
26947
|
-
object({
|
|
27140
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
26948
27141
|
/**
|
|
26949
27142
|
* Last observed instance per class. Missing entries mean the class
|
|
26950
27143
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -26961,14 +27154,56 @@ object({
|
|
|
26961
27154
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
26962
27155
|
/**
|
|
26963
27156
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
26964
|
-
*
|
|
26965
|
-
*
|
|
27157
|
+
*
|
|
27158
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27159
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27160
|
+
* other detection choice is made. `geometry` on
|
|
27161
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27162
|
+
* choice would buy this particular camera.
|
|
26966
27163
|
*/
|
|
26967
27164
|
enabled: boolean()
|
|
26968
|
-
})
|
|
27165
|
+
});
|
|
27166
|
+
/**
|
|
27167
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27168
|
+
*
|
|
27169
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27170
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27171
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27172
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27173
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27174
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27175
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27176
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27177
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27178
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27179
|
+
* tracker as motion and no further.
|
|
27180
|
+
*
|
|
27181
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27182
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27183
|
+
* derived form is only as honest as `getOptions`).
|
|
27184
|
+
*/
|
|
27185
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27186
|
+
"boxed",
|
|
27187
|
+
"while-streaming",
|
|
27188
|
+
"flag-only"
|
|
27189
|
+
]);
|
|
27190
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27191
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27192
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27193
|
+
/** What a detection from this camera carries. */
|
|
27194
|
+
geometry: NativeObjectGeometryEnum
|
|
27195
|
+
});
|
|
27196
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27197
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
26969
27198
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
26970
27199
|
lastFetchedAt: number() });
|
|
26971
|
-
DeviceType.Camera, method(object({
|
|
27200
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27201
|
+
deviceId: number(),
|
|
27202
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27203
|
+
}), _void(), {
|
|
27204
|
+
kind: "mutation",
|
|
27205
|
+
auth: "admin"
|
|
27206
|
+
}), method(object({
|
|
26972
27207
|
deviceId: number(),
|
|
26973
27208
|
enabled: boolean()
|
|
26974
27209
|
}), _void(), {
|
|
@@ -30767,7 +31002,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30767
31002
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30768
31003
|
totalObjects: number().int().nonnegative(),
|
|
30769
31004
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30770
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31005
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31006
|
+
/**
|
|
31007
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31008
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31009
|
+
*
|
|
31010
|
+
* The operator's question about a scene has two halves and they answer
|
|
31011
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31012
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31013
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31014
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31015
|
+
*
|
|
31016
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31017
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31018
|
+
*
|
|
31019
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31020
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31021
|
+
* parked objects here" about a camera whose lot is full.
|
|
31022
|
+
*/
|
|
31023
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31024
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31025
|
+
* same absence rule. */
|
|
31026
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30771
31027
|
});
|
|
30772
31028
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30773
31029
|
zoneId: string(),
|
|
@@ -33706,12 +33962,24 @@ Object.freeze({
|
|
|
33706
33962
|
addonId: null,
|
|
33707
33963
|
access: "create"
|
|
33708
33964
|
},
|
|
33965
|
+
"nativeObjectDetection.getOptions": {
|
|
33966
|
+
capName: "native-object-detection",
|
|
33967
|
+
capScope: "device",
|
|
33968
|
+
addonId: null,
|
|
33969
|
+
access: "view"
|
|
33970
|
+
},
|
|
33709
33971
|
"nativeObjectDetection.setEnabled": {
|
|
33710
33972
|
capName: "native-object-detection",
|
|
33711
33973
|
capScope: "device",
|
|
33712
33974
|
addonId: null,
|
|
33713
33975
|
access: "create"
|
|
33714
33976
|
},
|
|
33977
|
+
"nativeObjectDetection.setSettings": {
|
|
33978
|
+
capName: "native-object-detection",
|
|
33979
|
+
capScope: "device",
|
|
33980
|
+
addonId: null,
|
|
33981
|
+
access: "create"
|
|
33982
|
+
},
|
|
33715
33983
|
"navigation.getFeatures": {
|
|
33716
33984
|
capName: "navigation",
|
|
33717
33985
|
capScope: "device",
|
|
@@ -33976,6 +34244,12 @@ Object.freeze({
|
|
|
33976
34244
|
addonId: null,
|
|
33977
34245
|
access: "view"
|
|
33978
34246
|
},
|
|
34247
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34248
|
+
capName: "notification-rules",
|
|
34249
|
+
capScope: "system",
|
|
34250
|
+
addonId: null,
|
|
34251
|
+
access: "view"
|
|
34252
|
+
},
|
|
33979
34253
|
"notificationRules.getConditionCatalog": {
|
|
33980
34254
|
capName: "notification-rules",
|
|
33981
34255
|
capScope: "system",
|
|
@@ -34486,6 +34760,12 @@ Object.freeze({
|
|
|
34486
34760
|
addonId: null,
|
|
34487
34761
|
access: "create"
|
|
34488
34762
|
},
|
|
34763
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
34764
|
+
capName: "pipeline-analytics",
|
|
34765
|
+
capScope: "device",
|
|
34766
|
+
addonId: null,
|
|
34767
|
+
access: "view"
|
|
34768
|
+
},
|
|
34489
34769
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
34490
34770
|
capName: "pipeline-analytics",
|
|
34491
34771
|
capScope: "device",
|
|
@@ -35158,6 +35438,12 @@ Object.freeze({
|
|
|
35158
35438
|
addonId: null,
|
|
35159
35439
|
access: "create"
|
|
35160
35440
|
},
|
|
35441
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35442
|
+
capName: "pipeline-runner",
|
|
35443
|
+
capScope: "system",
|
|
35444
|
+
addonId: null,
|
|
35445
|
+
access: "create"
|
|
35446
|
+
},
|
|
35161
35447
|
"pipelineRunner.runDetailSubtree": {
|
|
35162
35448
|
capName: "pipeline-runner",
|
|
35163
35449
|
capScope: "system",
|
|
@@ -37938,11 +38224,21 @@ Object.freeze({
|
|
|
37938
38224
|
form: "single",
|
|
37939
38225
|
optional: false
|
|
37940
38226
|
}],
|
|
38227
|
+
"nativeObjectDetection.getOptions": [{
|
|
38228
|
+
name: "deviceId",
|
|
38229
|
+
form: "single",
|
|
38230
|
+
optional: false
|
|
38231
|
+
}],
|
|
37941
38232
|
"nativeObjectDetection.setEnabled": [{
|
|
37942
38233
|
name: "deviceId",
|
|
37943
38234
|
form: "single",
|
|
37944
38235
|
optional: false
|
|
37945
38236
|
}],
|
|
38237
|
+
"nativeObjectDetection.setSettings": [{
|
|
38238
|
+
name: "deviceId",
|
|
38239
|
+
form: "single",
|
|
38240
|
+
optional: false
|
|
38241
|
+
}],
|
|
37946
38242
|
"navigation.getFeatures": [{
|
|
37947
38243
|
name: "deviceId",
|
|
37948
38244
|
form: "single",
|
|
@@ -38292,6 +38588,11 @@ Object.freeze({
|
|
|
38292
38588
|
form: "single",
|
|
38293
38589
|
optional: false
|
|
38294
38590
|
}],
|
|
38591
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
38592
|
+
name: "deviceId",
|
|
38593
|
+
form: "single",
|
|
38594
|
+
optional: false
|
|
38595
|
+
}],
|
|
38295
38596
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38296
38597
|
name: "deviceId",
|
|
38297
38598
|
form: "single",
|
|
@@ -38482,6 +38783,11 @@ Object.freeze({
|
|
|
38482
38783
|
form: "single",
|
|
38483
38784
|
optional: false
|
|
38484
38785
|
}],
|
|
38786
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
38787
|
+
name: "deviceId",
|
|
38788
|
+
form: "single",
|
|
38789
|
+
optional: false
|
|
38790
|
+
}],
|
|
38485
38791
|
"pipelineRunner.runDetailSubtree": [{
|
|
38486
38792
|
name: "deviceId",
|
|
38487
38793
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-mqtt-broker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.104",
|
|
4
4
|
"description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|