@camstack/addon-export-hap 1.2.114 → 1.2.116
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/hap-export.addon.js +316 -10
- package/dist/hap-export.addon.mjs +316 -10
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -5445,7 +5445,7 @@ var ZodIssueCode = {
|
|
|
5445
5445
|
var ZodFirstPartyTypeKind;
|
|
5446
5446
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5447
5447
|
//#endregion
|
|
5448
|
-
//#region ../types/dist/sleep-
|
|
5448
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5449
5449
|
/**
|
|
5450
5450
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5451
5451
|
* window to float samples (D455).
|
|
@@ -18692,6 +18692,48 @@ var NcAlarmConfigSchema = object({
|
|
|
18692
18692
|
settings: NcAlarmSettingsSchema,
|
|
18693
18693
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
18694
18694
|
});
|
|
18695
|
+
/**
|
|
18696
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
18697
|
+
*
|
|
18698
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
18699
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
18700
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
18701
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
18702
|
+
* a different thing from never having been told, and only the envelope
|
|
18703
|
+
* (`rulesLoaded`) can tell those apart.
|
|
18704
|
+
*/
|
|
18705
|
+
var NcClipRetentionAskSchema = object({
|
|
18706
|
+
/**
|
|
18707
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
18708
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
18709
|
+
* asking everywhere.
|
|
18710
|
+
*/
|
|
18711
|
+
deviceId: number().int().nonnegative().optional(),
|
|
18712
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
18713
|
+
* needs nothing produces no ask at all. */
|
|
18714
|
+
seconds: number().min(0).max(60),
|
|
18715
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
18716
|
+
* assigned, which is what the cut defaults to. */
|
|
18717
|
+
profile: CamProfileSchema.optional(),
|
|
18718
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
18719
|
+
ruleId: string(),
|
|
18720
|
+
ruleName: string(),
|
|
18721
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
18722
|
+
reason: _enum(["window", "occupancy"])
|
|
18723
|
+
});
|
|
18724
|
+
/**
|
|
18725
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
18726
|
+
*
|
|
18727
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
18728
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
18729
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
18730
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
18731
|
+
* footage this mechanism exists to keep.
|
|
18732
|
+
*/
|
|
18733
|
+
var NcClipRetentionPlanSchema = object({
|
|
18734
|
+
rulesLoaded: boolean(),
|
|
18735
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
18736
|
+
});
|
|
18695
18737
|
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 }), {
|
|
18696
18738
|
kind: "mutation",
|
|
18697
18739
|
auth: "admin",
|
|
@@ -18712,7 +18754,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
18712
18754
|
}), object({ success: literal(true) }), {
|
|
18713
18755
|
kind: "mutation",
|
|
18714
18756
|
auth: "admin"
|
|
18715
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18757
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18716
18758
|
deviceId: number().int(),
|
|
18717
18759
|
muted: boolean()
|
|
18718
18760
|
}), object({ success: literal(true) }), {
|
|
@@ -19857,13 +19899,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19857
19899
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19858
19900
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19859
19901
|
*
|
|
19902
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19903
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19904
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19905
|
+
* detector.
|
|
19906
|
+
*
|
|
19907
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19908
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19909
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19910
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19911
|
+
* could not name.
|
|
19912
|
+
*
|
|
19860
19913
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19861
19914
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19862
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19863
|
-
* check silently readmits every source added after it was
|
|
19915
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19916
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19917
|
+
* written.
|
|
19864
19918
|
*/
|
|
19865
19919
|
var TrackSourceSchema = _enum([
|
|
19866
19920
|
"pipeline",
|
|
19921
|
+
"onboard",
|
|
19867
19922
|
"sensor",
|
|
19868
19923
|
"audio"
|
|
19869
19924
|
]);
|
|
@@ -21246,6 +21301,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
21246
21301
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
21247
21302
|
framesMatched: number().int()
|
|
21248
21303
|
})).readonly() });
|
|
21304
|
+
/**
|
|
21305
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
21306
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
21307
|
+
* is an alias of this, not a second list.
|
|
21308
|
+
*/
|
|
21309
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
21310
|
+
"motion",
|
|
21311
|
+
"audio-dbfs",
|
|
21312
|
+
"battery",
|
|
21313
|
+
"occupancy"
|
|
21314
|
+
]);
|
|
21315
|
+
/**
|
|
21316
|
+
* One closed 5-minute bucket of a long-term series.
|
|
21317
|
+
*
|
|
21318
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
21319
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
21320
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
21321
|
+
* different claim from zero and the reason this is a sparse series.
|
|
21322
|
+
*/
|
|
21323
|
+
var LtsBucketSchema = object({
|
|
21324
|
+
scope: string(),
|
|
21325
|
+
bucketStart: number().int(),
|
|
21326
|
+
samples: number().int().nonnegative(),
|
|
21327
|
+
sum: number(),
|
|
21328
|
+
min: number(),
|
|
21329
|
+
max: number()
|
|
21330
|
+
});
|
|
21249
21331
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
21250
21332
|
deviceId: number(),
|
|
21251
21333
|
trackId: string()
|
|
@@ -21292,6 +21374,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21292
21374
|
kinds: array(string()).optional(),
|
|
21293
21375
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
21294
21376
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
21377
|
+
deviceId: number(),
|
|
21378
|
+
series: AnalyticsLtsSeriesSchema,
|
|
21379
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
21380
|
+
scope: string().optional(),
|
|
21381
|
+
from: number(),
|
|
21382
|
+
to: number(),
|
|
21383
|
+
limit: number().int().positive().optional()
|
|
21384
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
21295
21385
|
deviceId: number(),
|
|
21296
21386
|
since: number(),
|
|
21297
21387
|
until: number(),
|
|
@@ -21910,6 +22000,40 @@ var MotionSourceEnum = _enum([
|
|
|
21910
22000
|
*/
|
|
21911
22001
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21912
22002
|
/**
|
|
22003
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
22004
|
+
*
|
|
22005
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
22006
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
22007
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
22008
|
+
* track, the overlay and the debug row.
|
|
22009
|
+
*
|
|
22010
|
+
* ## Why one, and why it is still an array
|
|
22011
|
+
*
|
|
22012
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
22013
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
22014
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
22015
|
+
* detectors disagree about the same box by construction — which is the
|
|
22016
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
22017
|
+
*
|
|
22018
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
22019
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
22020
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
22021
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
22022
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
22023
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
22024
|
+
* rely on.
|
|
22025
|
+
*
|
|
22026
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
22027
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
22028
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
22029
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
22030
|
+
* suite caught it.
|
|
22031
|
+
*
|
|
22032
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
22033
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
22034
|
+
*/
|
|
22035
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
22036
|
+
/**
|
|
21913
22037
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21914
22038
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21915
22039
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -22060,6 +22184,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
22060
22184
|
* events; the orchestrator forwards to `reportMotion`.
|
|
22061
22185
|
*/
|
|
22062
22186
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
22187
|
+
/**
|
|
22188
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
22189
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
22190
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
22191
|
+
*
|
|
22192
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
22193
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
22194
|
+
* here. Its boxes reach post-analysis on the same
|
|
22195
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
22196
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
22197
|
+
* subtree (face / plate / embedding).
|
|
22198
|
+
*
|
|
22199
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
22200
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
22201
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
22202
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
22203
|
+
*
|
|
22204
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
22205
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
22206
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
22207
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
22208
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
22209
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
22210
|
+
*
|
|
22211
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
22212
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
22213
|
+
* default.
|
|
22214
|
+
*/
|
|
22215
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
22063
22216
|
pipelineEnabled: boolean().default(true),
|
|
22064
22217
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
22065
22218
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -22241,7 +22394,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
22241
22394
|
queueDepth: number(),
|
|
22242
22395
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
22243
22396
|
});
|
|
22397
|
+
/**
|
|
22398
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
22399
|
+
*
|
|
22400
|
+
* One instance per node. Receives camera assignments from
|
|
22401
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
22402
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
22403
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
22404
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
22405
|
+
* the bus.
|
|
22406
|
+
*
|
|
22407
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
22408
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
22409
|
+
* makes assignment decisions itself.
|
|
22410
|
+
*/
|
|
22411
|
+
/**
|
|
22412
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
22413
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
22414
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
22415
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
22416
|
+
*/
|
|
22417
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
22418
|
+
"not-attached",
|
|
22419
|
+
"battery-asleep",
|
|
22420
|
+
"not-watching",
|
|
22421
|
+
"already-bursting"
|
|
22422
|
+
]);
|
|
22244
22423
|
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({
|
|
22424
|
+
deviceId: number(),
|
|
22425
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
22426
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
22427
|
+
frames: number().int().positive().optional(),
|
|
22428
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
22429
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
22430
|
+
reason: string()
|
|
22431
|
+
}), object({
|
|
22432
|
+
started: boolean(),
|
|
22433
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
22434
|
+
}), {
|
|
22435
|
+
auth: "admin",
|
|
22436
|
+
kind: "mutation"
|
|
22437
|
+
}), method(object({
|
|
22245
22438
|
handle: FrameHandleSchema,
|
|
22246
22439
|
bbox: NativeCropBboxSchema,
|
|
22247
22440
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27746,7 +27939,7 @@ var NativeDetectionSchema = object({
|
|
|
27746
27939
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27747
27940
|
confidence: number().min(0).max(1).optional()
|
|
27748
27941
|
});
|
|
27749
|
-
object({
|
|
27942
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27750
27943
|
/**
|
|
27751
27944
|
* Last observed instance per class. Missing entries mean the class
|
|
27752
27945
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27763,14 +27956,56 @@ object({
|
|
|
27763
27956
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27764
27957
|
/**
|
|
27765
27958
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27766
|
-
*
|
|
27767
|
-
*
|
|
27959
|
+
*
|
|
27960
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27961
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27962
|
+
* other detection choice is made. `geometry` on
|
|
27963
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27964
|
+
* choice would buy this particular camera.
|
|
27768
27965
|
*/
|
|
27769
27966
|
enabled: boolean()
|
|
27770
|
-
})
|
|
27967
|
+
});
|
|
27968
|
+
/**
|
|
27969
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27970
|
+
*
|
|
27971
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27972
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27973
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27974
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27975
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27976
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27977
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27978
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27979
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27980
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27981
|
+
* tracker as motion and no further.
|
|
27982
|
+
*
|
|
27983
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27984
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27985
|
+
* derived form is only as honest as `getOptions`).
|
|
27986
|
+
*/
|
|
27987
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27988
|
+
"boxed",
|
|
27989
|
+
"while-streaming",
|
|
27990
|
+
"flag-only"
|
|
27991
|
+
]);
|
|
27992
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27993
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27994
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27995
|
+
/** What a detection from this camera carries. */
|
|
27996
|
+
geometry: NativeObjectGeometryEnum
|
|
27997
|
+
});
|
|
27998
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27999
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27771
28000
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27772
28001
|
lastFetchedAt: number() });
|
|
27773
|
-
DeviceType.Camera, method(object({
|
|
28002
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
28003
|
+
deviceId: number(),
|
|
28004
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
28005
|
+
}), _void(), {
|
|
28006
|
+
kind: "mutation",
|
|
28007
|
+
auth: "admin"
|
|
28008
|
+
}), method(object({
|
|
27774
28009
|
deviceId: number(),
|
|
27775
28010
|
enabled: boolean()
|
|
27776
28011
|
}), _void(), {
|
|
@@ -31594,7 +31829,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
31594
31829
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
31595
31830
|
totalObjects: number().int().nonnegative(),
|
|
31596
31831
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
31597
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31832
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31833
|
+
/**
|
|
31834
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31835
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31836
|
+
*
|
|
31837
|
+
* The operator's question about a scene has two halves and they answer
|
|
31838
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31839
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31840
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31841
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31842
|
+
*
|
|
31843
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31844
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31845
|
+
*
|
|
31846
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31847
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31848
|
+
* parked objects here" about a camera whose lot is full.
|
|
31849
|
+
*/
|
|
31850
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31851
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31852
|
+
* same absence rule. */
|
|
31853
|
+
transientObjects: number().int().nonnegative().optional()
|
|
31598
31854
|
});
|
|
31599
31855
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
31600
31856
|
zoneId: string(),
|
|
@@ -34533,12 +34789,24 @@ Object.freeze({
|
|
|
34533
34789
|
addonId: null,
|
|
34534
34790
|
access: "create"
|
|
34535
34791
|
},
|
|
34792
|
+
"nativeObjectDetection.getOptions": {
|
|
34793
|
+
capName: "native-object-detection",
|
|
34794
|
+
capScope: "device",
|
|
34795
|
+
addonId: null,
|
|
34796
|
+
access: "view"
|
|
34797
|
+
},
|
|
34536
34798
|
"nativeObjectDetection.setEnabled": {
|
|
34537
34799
|
capName: "native-object-detection",
|
|
34538
34800
|
capScope: "device",
|
|
34539
34801
|
addonId: null,
|
|
34540
34802
|
access: "create"
|
|
34541
34803
|
},
|
|
34804
|
+
"nativeObjectDetection.setSettings": {
|
|
34805
|
+
capName: "native-object-detection",
|
|
34806
|
+
capScope: "device",
|
|
34807
|
+
addonId: null,
|
|
34808
|
+
access: "create"
|
|
34809
|
+
},
|
|
34542
34810
|
"navigation.getFeatures": {
|
|
34543
34811
|
capName: "navigation",
|
|
34544
34812
|
capScope: "device",
|
|
@@ -34803,6 +35071,12 @@ Object.freeze({
|
|
|
34803
35071
|
addonId: null,
|
|
34804
35072
|
access: "view"
|
|
34805
35073
|
},
|
|
35074
|
+
"notificationRules.getClipRetentionAsks": {
|
|
35075
|
+
capName: "notification-rules",
|
|
35076
|
+
capScope: "system",
|
|
35077
|
+
addonId: null,
|
|
35078
|
+
access: "view"
|
|
35079
|
+
},
|
|
34806
35080
|
"notificationRules.getConditionCatalog": {
|
|
34807
35081
|
capName: "notification-rules",
|
|
34808
35082
|
capScope: "system",
|
|
@@ -35313,6 +35587,12 @@ Object.freeze({
|
|
|
35313
35587
|
addonId: null,
|
|
35314
35588
|
access: "create"
|
|
35315
35589
|
},
|
|
35590
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
35591
|
+
capName: "pipeline-analytics",
|
|
35592
|
+
capScope: "device",
|
|
35593
|
+
addonId: null,
|
|
35594
|
+
access: "view"
|
|
35595
|
+
},
|
|
35316
35596
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
35317
35597
|
capName: "pipeline-analytics",
|
|
35318
35598
|
capScope: "device",
|
|
@@ -35985,6 +36265,12 @@ Object.freeze({
|
|
|
35985
36265
|
addonId: null,
|
|
35986
36266
|
access: "create"
|
|
35987
36267
|
},
|
|
36268
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
36269
|
+
capName: "pipeline-runner",
|
|
36270
|
+
capScope: "system",
|
|
36271
|
+
addonId: null,
|
|
36272
|
+
access: "create"
|
|
36273
|
+
},
|
|
35988
36274
|
"pipelineRunner.runDetailSubtree": {
|
|
35989
36275
|
capName: "pipeline-runner",
|
|
35990
36276
|
capScope: "system",
|
|
@@ -38765,11 +39051,21 @@ Object.freeze({
|
|
|
38765
39051
|
form: "single",
|
|
38766
39052
|
optional: false
|
|
38767
39053
|
}],
|
|
39054
|
+
"nativeObjectDetection.getOptions": [{
|
|
39055
|
+
name: "deviceId",
|
|
39056
|
+
form: "single",
|
|
39057
|
+
optional: false
|
|
39058
|
+
}],
|
|
38768
39059
|
"nativeObjectDetection.setEnabled": [{
|
|
38769
39060
|
name: "deviceId",
|
|
38770
39061
|
form: "single",
|
|
38771
39062
|
optional: false
|
|
38772
39063
|
}],
|
|
39064
|
+
"nativeObjectDetection.setSettings": [{
|
|
39065
|
+
name: "deviceId",
|
|
39066
|
+
form: "single",
|
|
39067
|
+
optional: false
|
|
39068
|
+
}],
|
|
38773
39069
|
"navigation.getFeatures": [{
|
|
38774
39070
|
name: "deviceId",
|
|
38775
39071
|
form: "single",
|
|
@@ -39119,6 +39415,11 @@ Object.freeze({
|
|
|
39119
39415
|
form: "single",
|
|
39120
39416
|
optional: false
|
|
39121
39417
|
}],
|
|
39418
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
39419
|
+
name: "deviceId",
|
|
39420
|
+
form: "single",
|
|
39421
|
+
optional: false
|
|
39422
|
+
}],
|
|
39122
39423
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
39123
39424
|
name: "deviceId",
|
|
39124
39425
|
form: "single",
|
|
@@ -39309,6 +39610,11 @@ Object.freeze({
|
|
|
39309
39610
|
form: "single",
|
|
39310
39611
|
optional: false
|
|
39311
39612
|
}],
|
|
39613
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
39614
|
+
name: "deviceId",
|
|
39615
|
+
form: "single",
|
|
39616
|
+
optional: false
|
|
39617
|
+
}],
|
|
39312
39618
|
"pipelineRunner.runDetailSubtree": [{
|
|
39313
39619
|
name: "deviceId",
|
|
39314
39620
|
form: "single",
|
|
@@ -5433,7 +5433,7 @@ var ZodIssueCode = {
|
|
|
5433
5433
|
var ZodFirstPartyTypeKind;
|
|
5434
5434
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5435
5435
|
//#endregion
|
|
5436
|
-
//#region ../types/dist/sleep-
|
|
5436
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5437
5437
|
/**
|
|
5438
5438
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5439
5439
|
* window to float samples (D455).
|
|
@@ -18680,6 +18680,48 @@ var NcAlarmConfigSchema = object({
|
|
|
18680
18680
|
settings: NcAlarmSettingsSchema,
|
|
18681
18681
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
18682
18682
|
});
|
|
18683
|
+
/**
|
|
18684
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
18685
|
+
*
|
|
18686
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
18687
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
18688
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
18689
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
18690
|
+
* a different thing from never having been told, and only the envelope
|
|
18691
|
+
* (`rulesLoaded`) can tell those apart.
|
|
18692
|
+
*/
|
|
18693
|
+
var NcClipRetentionAskSchema = object({
|
|
18694
|
+
/**
|
|
18695
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
18696
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
18697
|
+
* asking everywhere.
|
|
18698
|
+
*/
|
|
18699
|
+
deviceId: number().int().nonnegative().optional(),
|
|
18700
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
18701
|
+
* needs nothing produces no ask at all. */
|
|
18702
|
+
seconds: number().min(0).max(60),
|
|
18703
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
18704
|
+
* assigned, which is what the cut defaults to. */
|
|
18705
|
+
profile: CamProfileSchema.optional(),
|
|
18706
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
18707
|
+
ruleId: string(),
|
|
18708
|
+
ruleName: string(),
|
|
18709
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
18710
|
+
reason: _enum(["window", "occupancy"])
|
|
18711
|
+
});
|
|
18712
|
+
/**
|
|
18713
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
18714
|
+
*
|
|
18715
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
18716
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
18717
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
18718
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
18719
|
+
* footage this mechanism exists to keep.
|
|
18720
|
+
*/
|
|
18721
|
+
var NcClipRetentionPlanSchema = object({
|
|
18722
|
+
rulesLoaded: boolean(),
|
|
18723
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
18724
|
+
});
|
|
18683
18725
|
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 }), {
|
|
18684
18726
|
kind: "mutation",
|
|
18685
18727
|
auth: "admin",
|
|
@@ -18700,7 +18742,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
18700
18742
|
}), object({ success: literal(true) }), {
|
|
18701
18743
|
kind: "mutation",
|
|
18702
18744
|
auth: "admin"
|
|
18703
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18745
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18704
18746
|
deviceId: number().int(),
|
|
18705
18747
|
muted: boolean()
|
|
18706
18748
|
}), object({ success: literal(true) }), {
|
|
@@ -19845,13 +19887,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19845
19887
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19846
19888
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19847
19889
|
*
|
|
19890
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19891
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19892
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19893
|
+
* detector.
|
|
19894
|
+
*
|
|
19895
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19896
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19897
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19898
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19899
|
+
* could not name.
|
|
19900
|
+
*
|
|
19848
19901
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19849
19902
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19850
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19851
|
-
* check silently readmits every source added after it was
|
|
19903
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19904
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19905
|
+
* written.
|
|
19852
19906
|
*/
|
|
19853
19907
|
var TrackSourceSchema = _enum([
|
|
19854
19908
|
"pipeline",
|
|
19909
|
+
"onboard",
|
|
19855
19910
|
"sensor",
|
|
19856
19911
|
"audio"
|
|
19857
19912
|
]);
|
|
@@ -21234,6 +21289,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
21234
21289
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
21235
21290
|
framesMatched: number().int()
|
|
21236
21291
|
})).readonly() });
|
|
21292
|
+
/**
|
|
21293
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
21294
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
21295
|
+
* is an alias of this, not a second list.
|
|
21296
|
+
*/
|
|
21297
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
21298
|
+
"motion",
|
|
21299
|
+
"audio-dbfs",
|
|
21300
|
+
"battery",
|
|
21301
|
+
"occupancy"
|
|
21302
|
+
]);
|
|
21303
|
+
/**
|
|
21304
|
+
* One closed 5-minute bucket of a long-term series.
|
|
21305
|
+
*
|
|
21306
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
21307
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
21308
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
21309
|
+
* different claim from zero and the reason this is a sparse series.
|
|
21310
|
+
*/
|
|
21311
|
+
var LtsBucketSchema = object({
|
|
21312
|
+
scope: string(),
|
|
21313
|
+
bucketStart: number().int(),
|
|
21314
|
+
samples: number().int().nonnegative(),
|
|
21315
|
+
sum: number(),
|
|
21316
|
+
min: number(),
|
|
21317
|
+
max: number()
|
|
21318
|
+
});
|
|
21237
21319
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
21238
21320
|
deviceId: number(),
|
|
21239
21321
|
trackId: string()
|
|
@@ -21280,6 +21362,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21280
21362
|
kinds: array(string()).optional(),
|
|
21281
21363
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
21282
21364
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
21365
|
+
deviceId: number(),
|
|
21366
|
+
series: AnalyticsLtsSeriesSchema,
|
|
21367
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
21368
|
+
scope: string().optional(),
|
|
21369
|
+
from: number(),
|
|
21370
|
+
to: number(),
|
|
21371
|
+
limit: number().int().positive().optional()
|
|
21372
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
21283
21373
|
deviceId: number(),
|
|
21284
21374
|
since: number(),
|
|
21285
21375
|
until: number(),
|
|
@@ -21898,6 +21988,40 @@ var MotionSourceEnum = _enum([
|
|
|
21898
21988
|
*/
|
|
21899
21989
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21900
21990
|
/**
|
|
21991
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21992
|
+
*
|
|
21993
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21994
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21995
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21996
|
+
* track, the overlay and the debug row.
|
|
21997
|
+
*
|
|
21998
|
+
* ## Why one, and why it is still an array
|
|
21999
|
+
*
|
|
22000
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
22001
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
22002
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
22003
|
+
* detectors disagree about the same box by construction — which is the
|
|
22004
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
22005
|
+
*
|
|
22006
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
22007
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
22008
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
22009
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
22010
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
22011
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
22012
|
+
* rely on.
|
|
22013
|
+
*
|
|
22014
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
22015
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
22016
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
22017
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
22018
|
+
* suite caught it.
|
|
22019
|
+
*
|
|
22020
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
22021
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
22022
|
+
*/
|
|
22023
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
22024
|
+
/**
|
|
21901
22025
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21902
22026
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21903
22027
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -22048,6 +22172,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
22048
22172
|
* events; the orchestrator forwards to `reportMotion`.
|
|
22049
22173
|
*/
|
|
22050
22174
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
22175
|
+
/**
|
|
22176
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
22177
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
22178
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
22179
|
+
*
|
|
22180
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
22181
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
22182
|
+
* here. Its boxes reach post-analysis on the same
|
|
22183
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
22184
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
22185
|
+
* subtree (face / plate / embedding).
|
|
22186
|
+
*
|
|
22187
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
22188
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
22189
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
22190
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
22191
|
+
*
|
|
22192
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
22193
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
22194
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
22195
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
22196
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
22197
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
22198
|
+
*
|
|
22199
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
22200
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
22201
|
+
* default.
|
|
22202
|
+
*/
|
|
22203
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
22051
22204
|
pipelineEnabled: boolean().default(true),
|
|
22052
22205
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
22053
22206
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -22229,7 +22382,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
22229
22382
|
queueDepth: number(),
|
|
22230
22383
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
22231
22384
|
});
|
|
22385
|
+
/**
|
|
22386
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
22387
|
+
*
|
|
22388
|
+
* One instance per node. Receives camera assignments from
|
|
22389
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
22390
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
22391
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
22392
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
22393
|
+
* the bus.
|
|
22394
|
+
*
|
|
22395
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
22396
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
22397
|
+
* makes assignment decisions itself.
|
|
22398
|
+
*/
|
|
22399
|
+
/**
|
|
22400
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
22401
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
22402
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
22403
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
22404
|
+
*/
|
|
22405
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
22406
|
+
"not-attached",
|
|
22407
|
+
"battery-asleep",
|
|
22408
|
+
"not-watching",
|
|
22409
|
+
"already-bursting"
|
|
22410
|
+
]);
|
|
22232
22411
|
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({
|
|
22412
|
+
deviceId: number(),
|
|
22413
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
22414
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
22415
|
+
frames: number().int().positive().optional(),
|
|
22416
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
22417
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
22418
|
+
reason: string()
|
|
22419
|
+
}), object({
|
|
22420
|
+
started: boolean(),
|
|
22421
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
22422
|
+
}), {
|
|
22423
|
+
auth: "admin",
|
|
22424
|
+
kind: "mutation"
|
|
22425
|
+
}), method(object({
|
|
22233
22426
|
handle: FrameHandleSchema,
|
|
22234
22427
|
bbox: NativeCropBboxSchema,
|
|
22235
22428
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27734,7 +27927,7 @@ var NativeDetectionSchema = object({
|
|
|
27734
27927
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27735
27928
|
confidence: number().min(0).max(1).optional()
|
|
27736
27929
|
});
|
|
27737
|
-
object({
|
|
27930
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27738
27931
|
/**
|
|
27739
27932
|
* Last observed instance per class. Missing entries mean the class
|
|
27740
27933
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27751,14 +27944,56 @@ object({
|
|
|
27751
27944
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27752
27945
|
/**
|
|
27753
27946
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27754
|
-
*
|
|
27755
|
-
*
|
|
27947
|
+
*
|
|
27948
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27949
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27950
|
+
* other detection choice is made. `geometry` on
|
|
27951
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27952
|
+
* choice would buy this particular camera.
|
|
27756
27953
|
*/
|
|
27757
27954
|
enabled: boolean()
|
|
27758
|
-
})
|
|
27955
|
+
});
|
|
27956
|
+
/**
|
|
27957
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27958
|
+
*
|
|
27959
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27960
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27961
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27962
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27963
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27964
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27965
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27966
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27967
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27968
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27969
|
+
* tracker as motion and no further.
|
|
27970
|
+
*
|
|
27971
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27972
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27973
|
+
* derived form is only as honest as `getOptions`).
|
|
27974
|
+
*/
|
|
27975
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27976
|
+
"boxed",
|
|
27977
|
+
"while-streaming",
|
|
27978
|
+
"flag-only"
|
|
27979
|
+
]);
|
|
27980
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27981
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27982
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27983
|
+
/** What a detection from this camera carries. */
|
|
27984
|
+
geometry: NativeObjectGeometryEnum
|
|
27985
|
+
});
|
|
27986
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27987
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27759
27988
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27760
27989
|
lastFetchedAt: number() });
|
|
27761
|
-
DeviceType.Camera, method(object({
|
|
27990
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27991
|
+
deviceId: number(),
|
|
27992
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27993
|
+
}), _void(), {
|
|
27994
|
+
kind: "mutation",
|
|
27995
|
+
auth: "admin"
|
|
27996
|
+
}), method(object({
|
|
27762
27997
|
deviceId: number(),
|
|
27763
27998
|
enabled: boolean()
|
|
27764
27999
|
}), _void(), {
|
|
@@ -31582,7 +31817,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
31582
31817
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
31583
31818
|
totalObjects: number().int().nonnegative(),
|
|
31584
31819
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
31585
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31820
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31821
|
+
/**
|
|
31822
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31823
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31824
|
+
*
|
|
31825
|
+
* The operator's question about a scene has two halves and they answer
|
|
31826
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31827
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31828
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31829
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31830
|
+
*
|
|
31831
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31832
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31833
|
+
*
|
|
31834
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31835
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31836
|
+
* parked objects here" about a camera whose lot is full.
|
|
31837
|
+
*/
|
|
31838
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31839
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31840
|
+
* same absence rule. */
|
|
31841
|
+
transientObjects: number().int().nonnegative().optional()
|
|
31586
31842
|
});
|
|
31587
31843
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
31588
31844
|
zoneId: string(),
|
|
@@ -34521,12 +34777,24 @@ Object.freeze({
|
|
|
34521
34777
|
addonId: null,
|
|
34522
34778
|
access: "create"
|
|
34523
34779
|
},
|
|
34780
|
+
"nativeObjectDetection.getOptions": {
|
|
34781
|
+
capName: "native-object-detection",
|
|
34782
|
+
capScope: "device",
|
|
34783
|
+
addonId: null,
|
|
34784
|
+
access: "view"
|
|
34785
|
+
},
|
|
34524
34786
|
"nativeObjectDetection.setEnabled": {
|
|
34525
34787
|
capName: "native-object-detection",
|
|
34526
34788
|
capScope: "device",
|
|
34527
34789
|
addonId: null,
|
|
34528
34790
|
access: "create"
|
|
34529
34791
|
},
|
|
34792
|
+
"nativeObjectDetection.setSettings": {
|
|
34793
|
+
capName: "native-object-detection",
|
|
34794
|
+
capScope: "device",
|
|
34795
|
+
addonId: null,
|
|
34796
|
+
access: "create"
|
|
34797
|
+
},
|
|
34530
34798
|
"navigation.getFeatures": {
|
|
34531
34799
|
capName: "navigation",
|
|
34532
34800
|
capScope: "device",
|
|
@@ -34791,6 +35059,12 @@ Object.freeze({
|
|
|
34791
35059
|
addonId: null,
|
|
34792
35060
|
access: "view"
|
|
34793
35061
|
},
|
|
35062
|
+
"notificationRules.getClipRetentionAsks": {
|
|
35063
|
+
capName: "notification-rules",
|
|
35064
|
+
capScope: "system",
|
|
35065
|
+
addonId: null,
|
|
35066
|
+
access: "view"
|
|
35067
|
+
},
|
|
34794
35068
|
"notificationRules.getConditionCatalog": {
|
|
34795
35069
|
capName: "notification-rules",
|
|
34796
35070
|
capScope: "system",
|
|
@@ -35301,6 +35575,12 @@ Object.freeze({
|
|
|
35301
35575
|
addonId: null,
|
|
35302
35576
|
access: "create"
|
|
35303
35577
|
},
|
|
35578
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
35579
|
+
capName: "pipeline-analytics",
|
|
35580
|
+
capScope: "device",
|
|
35581
|
+
addonId: null,
|
|
35582
|
+
access: "view"
|
|
35583
|
+
},
|
|
35304
35584
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
35305
35585
|
capName: "pipeline-analytics",
|
|
35306
35586
|
capScope: "device",
|
|
@@ -35973,6 +36253,12 @@ Object.freeze({
|
|
|
35973
36253
|
addonId: null,
|
|
35974
36254
|
access: "create"
|
|
35975
36255
|
},
|
|
36256
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
36257
|
+
capName: "pipeline-runner",
|
|
36258
|
+
capScope: "system",
|
|
36259
|
+
addonId: null,
|
|
36260
|
+
access: "create"
|
|
36261
|
+
},
|
|
35976
36262
|
"pipelineRunner.runDetailSubtree": {
|
|
35977
36263
|
capName: "pipeline-runner",
|
|
35978
36264
|
capScope: "system",
|
|
@@ -38753,11 +39039,21 @@ Object.freeze({
|
|
|
38753
39039
|
form: "single",
|
|
38754
39040
|
optional: false
|
|
38755
39041
|
}],
|
|
39042
|
+
"nativeObjectDetection.getOptions": [{
|
|
39043
|
+
name: "deviceId",
|
|
39044
|
+
form: "single",
|
|
39045
|
+
optional: false
|
|
39046
|
+
}],
|
|
38756
39047
|
"nativeObjectDetection.setEnabled": [{
|
|
38757
39048
|
name: "deviceId",
|
|
38758
39049
|
form: "single",
|
|
38759
39050
|
optional: false
|
|
38760
39051
|
}],
|
|
39052
|
+
"nativeObjectDetection.setSettings": [{
|
|
39053
|
+
name: "deviceId",
|
|
39054
|
+
form: "single",
|
|
39055
|
+
optional: false
|
|
39056
|
+
}],
|
|
38761
39057
|
"navigation.getFeatures": [{
|
|
38762
39058
|
name: "deviceId",
|
|
38763
39059
|
form: "single",
|
|
@@ -39107,6 +39403,11 @@ Object.freeze({
|
|
|
39107
39403
|
form: "single",
|
|
39108
39404
|
optional: false
|
|
39109
39405
|
}],
|
|
39406
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
39407
|
+
name: "deviceId",
|
|
39408
|
+
form: "single",
|
|
39409
|
+
optional: false
|
|
39410
|
+
}],
|
|
39110
39411
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
39111
39412
|
name: "deviceId",
|
|
39112
39413
|
form: "single",
|
|
@@ -39297,6 +39598,11 @@ Object.freeze({
|
|
|
39297
39598
|
form: "single",
|
|
39298
39599
|
optional: false
|
|
39299
39600
|
}],
|
|
39601
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
39602
|
+
name: "deviceId",
|
|
39603
|
+
form: "single",
|
|
39604
|
+
optional: false
|
|
39605
|
+
}],
|
|
39300
39606
|
"pipelineRunner.runDetailSubtree": [{
|
|
39301
39607
|
name: "deviceId",
|
|
39302
39608
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.116",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|