@camstack/addon-osd-manager 0.1.99 → 0.1.101
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/{MotionZonesSettings-BSQaXYXm.mjs → MotionZonesSettings-BmqapaTP.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BsOmMQ3G.mjs → PrivacyMaskSettings-C_ENwx9Q.mjs} +4 -4
- package/dist/{SceneMonitorEditor-tekjBVAD.mjs → SceneMonitorEditor-G-kQWq6o.mjs} +3 -3
- package/dist/_stub.js +11 -11
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-ZjOQCsZZ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-COWDhvlO.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Dc2jiuWZ.mjs +26 -0
- package/dist/addon-osd-manager.css +1 -1
- package/dist/{hostInit-B8PUHWlr.mjs → hostInit-BT0t8O6C.mjs} +3 -3
- package/dist/index.js +403 -13
- package/dist/index.mjs +403 -13
- package/dist/{player-overlays-CU2Q1FOt.mjs → player-overlays-BXcJYuYX.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-CREvujgj.mjs → responsive-DmRkhonW.mjs} +1 -1
- package/dist/{square-D4G_-ewV.mjs → square-LLImpVvg.mjs} +1 -1
- package/dist/{trash-2-UEtRGymk.mjs → trash-2-DnVYkte0.mjs} +1 -1
- package/dist/{use-device-snapshot-DiWS-JDe.mjs → use-device-snapshot-B3WRvUHI.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-m9QQayT8.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DS2cFwR0.mjs} +1 -1
- package/package.json +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BR1kX9U-.mjs +0 -26
package/dist/index.js
CHANGED
|
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
|
|
|
5363
5363
|
var ZodFirstPartyTypeKind;
|
|
5364
5364
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5365
5365
|
//#endregion
|
|
5366
|
-
//#region ../types/dist/sleep-
|
|
5366
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5367
5367
|
/**
|
|
5368
5368
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5369
5369
|
* window to float samples (D455).
|
|
@@ -12083,6 +12083,21 @@ var streamSignalsCapability = {
|
|
|
12083
12083
|
mode: "singleton",
|
|
12084
12084
|
deviceTypes: Object.values(DeviceType),
|
|
12085
12085
|
runtimeState: StreamSignalsStatusSchema,
|
|
12086
|
+
/**
|
|
12087
|
+
* Runtime-state durability: **session** — mirrored in RAM, never written.
|
|
12088
|
+
*
|
|
12089
|
+
* The slice holds what the DEVICE says it can emit. That is a probed fact,
|
|
12090
|
+
* not an operator choice: the provider re-declares it on every registration,
|
|
12091
|
+
* so losing it loses nothing and persisting it would freeze an answer the
|
|
12092
|
+
* camera is entitled to change. Measured the same day on the sibling case —
|
|
12093
|
+
* `native-object-detection.supportedClasses` was persisted, and a firmware
|
|
12094
|
+
* class the camera really detected stayed missing for the life of the row
|
|
12095
|
+
* because the fix could not reach it.
|
|
12096
|
+
*
|
|
12097
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
12098
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
12099
|
+
*/
|
|
12100
|
+
durability: "session",
|
|
12086
12101
|
methods: {
|
|
12087
12102
|
/**
|
|
12088
12103
|
* What this device can emit. Empty is a valid and common answer — most
|
|
@@ -20667,6 +20682,48 @@ var NcAlarmConfigSchema = object({
|
|
|
20667
20682
|
settings: NcAlarmSettingsSchema,
|
|
20668
20683
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
20669
20684
|
});
|
|
20685
|
+
/**
|
|
20686
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
20687
|
+
*
|
|
20688
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
20689
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
20690
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
20691
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
20692
|
+
* a different thing from never having been told, and only the envelope
|
|
20693
|
+
* (`rulesLoaded`) can tell those apart.
|
|
20694
|
+
*/
|
|
20695
|
+
var NcClipRetentionAskSchema = object({
|
|
20696
|
+
/**
|
|
20697
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
20698
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
20699
|
+
* asking everywhere.
|
|
20700
|
+
*/
|
|
20701
|
+
deviceId: number().int().nonnegative().optional(),
|
|
20702
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
20703
|
+
* needs nothing produces no ask at all. */
|
|
20704
|
+
seconds: number().min(0).max(60),
|
|
20705
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
20706
|
+
* assigned, which is what the cut defaults to. */
|
|
20707
|
+
profile: CamProfileSchema.optional(),
|
|
20708
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
20709
|
+
ruleId: string(),
|
|
20710
|
+
ruleName: string(),
|
|
20711
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
20712
|
+
reason: _enum(["window", "occupancy"])
|
|
20713
|
+
});
|
|
20714
|
+
/**
|
|
20715
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
20716
|
+
*
|
|
20717
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
20718
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
20719
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
20720
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
20721
|
+
* footage this mechanism exists to keep.
|
|
20722
|
+
*/
|
|
20723
|
+
var NcClipRetentionPlanSchema = object({
|
|
20724
|
+
rulesLoaded: boolean(),
|
|
20725
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
20726
|
+
});
|
|
20670
20727
|
var notificationRulesCapability = {
|
|
20671
20728
|
name: "notification-rules",
|
|
20672
20729
|
scope: "system",
|
|
@@ -20699,6 +20756,23 @@ var notificationRulesCapability = {
|
|
|
20699
20756
|
auth: "admin"
|
|
20700
20757
|
}),
|
|
20701
20758
|
/**
|
|
20759
|
+
* WHAT THE RULES ACTUALLY ASK the stream broker to retain, per camera.
|
|
20760
|
+
*
|
|
20761
|
+
* The notification centre owns the rules, so it is the only thing that can
|
|
20762
|
+
* say how much history a camera's notifications will ever reach back for.
|
|
20763
|
+
* Before this the broker guessed — a flat minute on every camera — and
|
|
20764
|
+
* learned the PROFILE reactively, after the first clip had already been cut
|
|
20765
|
+
* from the wrong one. This is the same ask stated once, in front.
|
|
20766
|
+
*
|
|
20767
|
+
* A QUERY, pulled by each node's broker, not a push: brokers are per node
|
|
20768
|
+
* (a camera's ring lives wherever its stream is ingested) while this cap is
|
|
20769
|
+
* a singleton, so a push would have to enumerate the cluster. The pull also
|
|
20770
|
+
* makes the failure mode right — a broker that cannot reach the centre
|
|
20771
|
+
* keeps the plan it has, and a plan that has never arrived is UNKNOWN
|
|
20772
|
+
* rather than empty (D49: a read that fails changes nothing).
|
|
20773
|
+
*/
|
|
20774
|
+
getClipRetentionAsks: method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }),
|
|
20775
|
+
/**
|
|
20702
20776
|
* PERMANENT per-camera mute — the notifications half of the per-camera
|
|
20703
20777
|
* function switch group ([D61](../../../../docs/decisions/adr-0067.md)).
|
|
20704
20778
|
*
|
|
@@ -22188,13 +22262,26 @@ var TrackAudioLabelSchema = object({
|
|
|
22188
22262
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
22189
22263
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
22190
22264
|
*
|
|
22265
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
22266
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
22267
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
22268
|
+
* detector.
|
|
22269
|
+
*
|
|
22270
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
22271
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
22272
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
22273
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
22274
|
+
* could not name.
|
|
22275
|
+
*
|
|
22191
22276
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
22192
22277
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
22193
|
-
* with `isSpatialTrack`, which allow-lists
|
|
22194
|
-
* check silently readmits every source added after it was
|
|
22278
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
22279
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
22280
|
+
* written.
|
|
22195
22281
|
*/
|
|
22196
22282
|
var TrackSourceSchema = _enum([
|
|
22197
22283
|
"pipeline",
|
|
22284
|
+
"onboard",
|
|
22198
22285
|
"sensor",
|
|
22199
22286
|
"audio"
|
|
22200
22287
|
]);
|
|
@@ -23577,6 +23664,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
23577
23664
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
23578
23665
|
framesMatched: number().int()
|
|
23579
23666
|
})).readonly() });
|
|
23667
|
+
/**
|
|
23668
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
23669
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
23670
|
+
* is an alias of this, not a second list.
|
|
23671
|
+
*/
|
|
23672
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
23673
|
+
"motion",
|
|
23674
|
+
"audio-dbfs",
|
|
23675
|
+
"battery",
|
|
23676
|
+
"occupancy"
|
|
23677
|
+
]);
|
|
23678
|
+
/**
|
|
23679
|
+
* One closed 5-minute bucket of a long-term series.
|
|
23680
|
+
*
|
|
23681
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
23682
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
23683
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
23684
|
+
* different claim from zero and the reason this is a sparse series.
|
|
23685
|
+
*/
|
|
23686
|
+
var LtsBucketSchema = object({
|
|
23687
|
+
scope: string(),
|
|
23688
|
+
bucketStart: number().int(),
|
|
23689
|
+
samples: number().int().nonnegative(),
|
|
23690
|
+
sum: number(),
|
|
23691
|
+
min: number(),
|
|
23692
|
+
max: number()
|
|
23693
|
+
});
|
|
23580
23694
|
var pipelineAnalyticsCapability = {
|
|
23581
23695
|
name: "pipeline-analytics",
|
|
23582
23696
|
scope: "device",
|
|
@@ -23720,6 +23834,30 @@ var pipelineAnalyticsCapability = {
|
|
|
23720
23834
|
getKeyEventsBatch: method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()),
|
|
23721
23835
|
/** Server-side bucketed event counts for the 24-hour timeline.
|
|
23722
23836
|
* Returns one entry per non-empty bucket; empty buckets are omitted. */
|
|
23837
|
+
/**
|
|
23838
|
+
* Read one camera's long-term series — 5-minute buckets, kept for a year.
|
|
23839
|
+
*
|
|
23840
|
+
* This is the history surface for every chart that used to be served from a
|
|
23841
|
+
* RAM ring: the ring dies with the process, cannot answer about last night,
|
|
23842
|
+
* and had a 60-minute horizon, while these rows are ~60 bytes and already
|
|
23843
|
+
* written. `scope` is the series' own dimension — for `occupancy`, spell it
|
|
23844
|
+
* with {@link occupancyScope} rather than by hand, and omit it to get every
|
|
23845
|
+
* scope back at once (the caller then groups with
|
|
23846
|
+
* {@link parseOccupancyScope}).
|
|
23847
|
+
*
|
|
23848
|
+
* Bounds are inclusive on the BUCKET START, so a range that ends mid-bucket
|
|
23849
|
+
* still returns the bucket it lands in — the alternative is a chart whose
|
|
23850
|
+
* last column silently disappears for five minutes out of every five.
|
|
23851
|
+
*/
|
|
23852
|
+
readLongTermSeries: method(object({
|
|
23853
|
+
deviceId: number(),
|
|
23854
|
+
series: AnalyticsLtsSeriesSchema,
|
|
23855
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
23856
|
+
scope: string().optional(),
|
|
23857
|
+
from: number(),
|
|
23858
|
+
to: number(),
|
|
23859
|
+
limit: number().int().positive().optional()
|
|
23860
|
+
}), array(LtsBucketSchema).readonly()),
|
|
23723
23861
|
getEventDensity: method(object({
|
|
23724
23862
|
deviceId: number(),
|
|
23725
23863
|
since: number(),
|
|
@@ -24861,6 +24999,40 @@ var MotionSourceEnum = _enum([
|
|
|
24861
24999
|
*/
|
|
24862
25000
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
24863
25001
|
/**
|
|
25002
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
25003
|
+
*
|
|
25004
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
25005
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
25006
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
25007
|
+
* track, the overlay and the debug row.
|
|
25008
|
+
*
|
|
25009
|
+
* ## Why one, and why it is still an array
|
|
25010
|
+
*
|
|
25011
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
25012
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
25013
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
25014
|
+
* detectors disagree about the same box by construction — which is the
|
|
25015
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
25016
|
+
*
|
|
25017
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
25018
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
25019
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
25020
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
25021
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
25022
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
25023
|
+
* rely on.
|
|
25024
|
+
*
|
|
25025
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
25026
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
25027
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
25028
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
25029
|
+
* suite caught it.
|
|
25030
|
+
*
|
|
25031
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
25032
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
25033
|
+
*/
|
|
25034
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
25035
|
+
/**
|
|
24864
25036
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
24865
25037
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
24866
25038
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -25011,6 +25183,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
25011
25183
|
* events; the orchestrator forwards to `reportMotion`.
|
|
25012
25184
|
*/
|
|
25013
25185
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
25186
|
+
/**
|
|
25187
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
25188
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
25189
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
25190
|
+
*
|
|
25191
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
25192
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
25193
|
+
* here. Its boxes reach post-analysis on the same
|
|
25194
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
25195
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
25196
|
+
* subtree (face / plate / embedding).
|
|
25197
|
+
*
|
|
25198
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
25199
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
25200
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
25201
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
25202
|
+
*
|
|
25203
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
25204
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
25205
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
25206
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
25207
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
25208
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
25209
|
+
*
|
|
25210
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
25211
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
25212
|
+
* default.
|
|
25213
|
+
*/
|
|
25214
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
25014
25215
|
pipelineEnabled: boolean().default(true),
|
|
25015
25216
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
25016
25217
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -25206,6 +25407,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
25206
25407
|
* runner has zero knowledge of other agents, no global state, and never
|
|
25207
25408
|
* makes assignment decisions itself.
|
|
25208
25409
|
*/
|
|
25410
|
+
/**
|
|
25411
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
25412
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
25413
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
25414
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
25415
|
+
*/
|
|
25416
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
25417
|
+
"not-attached",
|
|
25418
|
+
"battery-asleep",
|
|
25419
|
+
"not-watching",
|
|
25420
|
+
"already-bursting"
|
|
25421
|
+
]);
|
|
25209
25422
|
var pipelineRunnerCapability = {
|
|
25210
25423
|
name: "pipeline-runner",
|
|
25211
25424
|
scope: "system",
|
|
@@ -25242,6 +25455,50 @@ var pipelineRunnerCapability = {
|
|
|
25242
25455
|
/** List the deviceIds currently attached to this runner. */
|
|
25243
25456
|
getLocalCameras: method(_void(), array(number()).readonly()),
|
|
25244
25457
|
/**
|
|
25458
|
+
* Look at a camera NOW, out of band, because something just happened that
|
|
25459
|
+
* only a fresh look can settle.
|
|
25460
|
+
*
|
|
25461
|
+
* The periodic recheck (`occupancyRecheckSec`, 300 s) exists to watch a
|
|
25462
|
+
* still scene. It is the wrong instrument for a QUESTION that has just been
|
|
25463
|
+
* asked: on device 617 a parked car's departure was observed, a departure
|
|
25464
|
+
* strike was armed — and then the motion session ended, the strike decayed
|
|
25465
|
+
* after its 30 s TTL, and the next periodic look arrived up to five minutes
|
|
25466
|
+
* later with nothing left to confirm. Every one of those departures was
|
|
25467
|
+
* settled by the entry ageing out 6 to 10 minutes of observed time later,
|
|
25468
|
+
* and the notification's clip showed an empty space with nothing leaving
|
|
25469
|
+
* it.
|
|
25470
|
+
*
|
|
25471
|
+
* Two numbers make the ask specific, and a caller that ignores them wastes
|
|
25472
|
+
* the burst: a confirmation must land at least
|
|
25473
|
+
* `DEPARTURE_CONFIRM_MIN_GAP_MS` (3 s) after the read that armed the
|
|
25474
|
+
* strike — before that it is the same optical event and is refused — and
|
|
25475
|
+
* `DEPARTURE_ABSENCE_MIN_READS` (5) consecutive unassociated frames are
|
|
25476
|
+
* needed, while `occupancyRecheckFrames` defaults to FOUR. A burst of four
|
|
25477
|
+
* can never confirm an absence; that is why two periodic looks were always
|
|
25478
|
+
* required.
|
|
25479
|
+
*
|
|
25480
|
+
* The runner answers whether it actually started one. A refusal is NAMED,
|
|
25481
|
+
* never a silent `false`: a camera that is asleep on battery (D173 — this
|
|
25482
|
+
* must not become a self-initiated wake), detached, mid-session or already
|
|
25483
|
+
* bursting are four different facts, and a caller told only "no" cannot
|
|
25484
|
+
* tell a protection from a bug.
|
|
25485
|
+
*/
|
|
25486
|
+
requestOccupancyBurst: method(object({
|
|
25487
|
+
deviceId: number(),
|
|
25488
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
25489
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
25490
|
+
frames: number().int().positive().optional(),
|
|
25491
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
25492
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
25493
|
+
reason: string()
|
|
25494
|
+
}), object({
|
|
25495
|
+
started: boolean(),
|
|
25496
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
25497
|
+
}), {
|
|
25498
|
+
auth: "admin",
|
|
25499
|
+
kind: "mutation"
|
|
25500
|
+
}),
|
|
25501
|
+
/**
|
|
25245
25502
|
* Best-effort NATIVE-resolution crop of a retention-ring frame. Given the
|
|
25246
25503
|
* `FrameHandle` that rode an inference-result event and a normalized `bbox`,
|
|
25247
25504
|
* the runner asks the decode worker still holding that frame's NATIVE
|
|
@@ -33660,11 +33917,46 @@ var NativeObjectDetectionStatusSchema = object({
|
|
|
33660
33917
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
33661
33918
|
/**
|
|
33662
33919
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
33663
|
-
*
|
|
33664
|
-
*
|
|
33920
|
+
*
|
|
33921
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
33922
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
33923
|
+
* other detection choice is made. `geometry` on
|
|
33924
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
33925
|
+
* choice would buy this particular camera.
|
|
33665
33926
|
*/
|
|
33666
33927
|
enabled: boolean()
|
|
33667
33928
|
});
|
|
33929
|
+
/**
|
|
33930
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
33931
|
+
*
|
|
33932
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
33933
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
33934
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
33935
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
33936
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
33937
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
33938
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
33939
|
+
* something is in front of it, and its stream is already being pulled.
|
|
33940
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
33941
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
33942
|
+
* tracker as motion and no further.
|
|
33943
|
+
*
|
|
33944
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
33945
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
33946
|
+
* derived form is only as honest as `getOptions`).
|
|
33947
|
+
*/
|
|
33948
|
+
var NativeObjectGeometryEnum = _enum([
|
|
33949
|
+
"boxed",
|
|
33950
|
+
"while-streaming",
|
|
33951
|
+
"flag-only"
|
|
33952
|
+
]);
|
|
33953
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
33954
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
33955
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
33956
|
+
/** What a detection from this camera carries. */
|
|
33957
|
+
geometry: NativeObjectGeometryEnum
|
|
33958
|
+
});
|
|
33959
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
33668
33960
|
var NativeObjectDetectionRuntimeStateSchema = NativeObjectDetectionStatusSchema.extend({
|
|
33669
33961
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
33670
33962
|
lastFetchedAt: number() });
|
|
@@ -33674,13 +33966,23 @@ var nativeObjectDetectionCapability = {
|
|
|
33674
33966
|
deviceNative: true,
|
|
33675
33967
|
mode: "singleton",
|
|
33676
33968
|
deviceTypes: [DeviceType.Camera],
|
|
33677
|
-
methods: {
|
|
33678
|
-
deviceId: number(),
|
|
33679
|
-
|
|
33680
|
-
|
|
33681
|
-
|
|
33682
|
-
|
|
33683
|
-
|
|
33969
|
+
methods: {
|
|
33970
|
+
getOptions: method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema),
|
|
33971
|
+
setSettings: method(object({
|
|
33972
|
+
deviceId: number(),
|
|
33973
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
33974
|
+
}), _void(), {
|
|
33975
|
+
kind: "mutation",
|
|
33976
|
+
auth: "admin"
|
|
33977
|
+
}),
|
|
33978
|
+
setEnabled: method(object({
|
|
33979
|
+
deviceId: number(),
|
|
33980
|
+
enabled: boolean()
|
|
33981
|
+
}), _void(), {
|
|
33982
|
+
kind: "mutation",
|
|
33983
|
+
auth: "admin"
|
|
33984
|
+
})
|
|
33985
|
+
},
|
|
33684
33986
|
events: { onDetected: { data: object({
|
|
33685
33987
|
deviceId: number(),
|
|
33686
33988
|
detection: NativeDetectionSchema
|
|
@@ -39142,7 +39444,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
39142
39444
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
39143
39445
|
totalObjects: number().int().nonnegative(),
|
|
39144
39446
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
39145
|
-
byClass: record(string(), number().int().nonnegative())
|
|
39447
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
39448
|
+
/**
|
|
39449
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
39450
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
39451
|
+
*
|
|
39452
|
+
* The operator's question about a scene has two halves and they answer
|
|
39453
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
39454
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
39455
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
39456
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
39457
|
+
*
|
|
39458
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
39459
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
39460
|
+
*
|
|
39461
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
39462
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
39463
|
+
* parked objects here" about a camera whose lot is full.
|
|
39464
|
+
*/
|
|
39465
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
39466
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
39467
|
+
* same absence rule. */
|
|
39468
|
+
transientObjects: number().int().nonnegative().optional()
|
|
39146
39469
|
});
|
|
39147
39470
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
39148
39471
|
zoneId: string(),
|
|
@@ -39265,6 +39588,23 @@ var HistoryPointSchema = object({
|
|
|
39265
39588
|
* triple covers the three spatial scopes (per-zone, frame-wide,
|
|
39266
39589
|
* outside-any-zone). Crossing them with `className?` gives the full
|
|
39267
39590
|
* combinatorial coverage the operator UI requested.
|
|
39591
|
+
*
|
|
39592
|
+
* ## ⚠️ The three history methods are DEPRECATED
|
|
39593
|
+
*
|
|
39594
|
+
* They are served from a 60-MINUTE in-memory ring. It dies with the process,
|
|
39595
|
+
* so after a restart they report nothing about a night that did happen, and any
|
|
39596
|
+
* window past an hour is silently clamped — a caller cannot tell a clamp from
|
|
39597
|
+
* an empty scene. The presets in the occupancy chart existed to hide that
|
|
39598
|
+
* horizon rather than to answer a question.
|
|
39599
|
+
*
|
|
39600
|
+
* Use `pipelineAnalytics.readLongTermSeries({ series: 'occupancy', scope })`
|
|
39601
|
+
* instead. Those rows are already written for every camera, ~60 bytes per
|
|
39602
|
+
* (camera, scope, 5-minute bucket), kept for a year, and survive a restart.
|
|
39603
|
+
* Spell the scope with `occupancyScope(zoneId?, className?)` — the same
|
|
39604
|
+
* function the writer uses, so the two cannot drift.
|
|
39605
|
+
*
|
|
39606
|
+
* The ring stays until these three go, and it is the only thing left reading
|
|
39607
|
+
* it. Do not add a fourth caller.
|
|
39268
39608
|
*/
|
|
39269
39609
|
var zoneAnalyticsCapability = {
|
|
39270
39610
|
name: "zone-analytics",
|
|
@@ -42429,12 +42769,24 @@ Object.freeze({
|
|
|
42429
42769
|
addonId: null,
|
|
42430
42770
|
access: "create"
|
|
42431
42771
|
},
|
|
42772
|
+
"nativeObjectDetection.getOptions": {
|
|
42773
|
+
capName: "native-object-detection",
|
|
42774
|
+
capScope: "device",
|
|
42775
|
+
addonId: null,
|
|
42776
|
+
access: "view"
|
|
42777
|
+
},
|
|
42432
42778
|
"nativeObjectDetection.setEnabled": {
|
|
42433
42779
|
capName: "native-object-detection",
|
|
42434
42780
|
capScope: "device",
|
|
42435
42781
|
addonId: null,
|
|
42436
42782
|
access: "create"
|
|
42437
42783
|
},
|
|
42784
|
+
"nativeObjectDetection.setSettings": {
|
|
42785
|
+
capName: "native-object-detection",
|
|
42786
|
+
capScope: "device",
|
|
42787
|
+
addonId: null,
|
|
42788
|
+
access: "create"
|
|
42789
|
+
},
|
|
42438
42790
|
"navigation.getFeatures": {
|
|
42439
42791
|
capName: "navigation",
|
|
42440
42792
|
capScope: "device",
|
|
@@ -42699,6 +43051,12 @@ Object.freeze({
|
|
|
42699
43051
|
addonId: null,
|
|
42700
43052
|
access: "view"
|
|
42701
43053
|
},
|
|
43054
|
+
"notificationRules.getClipRetentionAsks": {
|
|
43055
|
+
capName: "notification-rules",
|
|
43056
|
+
capScope: "system",
|
|
43057
|
+
addonId: null,
|
|
43058
|
+
access: "view"
|
|
43059
|
+
},
|
|
42702
43060
|
"notificationRules.getConditionCatalog": {
|
|
42703
43061
|
capName: "notification-rules",
|
|
42704
43062
|
capScope: "system",
|
|
@@ -43209,6 +43567,12 @@ Object.freeze({
|
|
|
43209
43567
|
addonId: null,
|
|
43210
43568
|
access: "create"
|
|
43211
43569
|
},
|
|
43570
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
43571
|
+
capName: "pipeline-analytics",
|
|
43572
|
+
capScope: "device",
|
|
43573
|
+
addonId: null,
|
|
43574
|
+
access: "view"
|
|
43575
|
+
},
|
|
43212
43576
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
43213
43577
|
capName: "pipeline-analytics",
|
|
43214
43578
|
capScope: "device",
|
|
@@ -43881,6 +44245,12 @@ Object.freeze({
|
|
|
43881
44245
|
addonId: null,
|
|
43882
44246
|
access: "create"
|
|
43883
44247
|
},
|
|
44248
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
44249
|
+
capName: "pipeline-runner",
|
|
44250
|
+
capScope: "system",
|
|
44251
|
+
addonId: null,
|
|
44252
|
+
access: "create"
|
|
44253
|
+
},
|
|
43884
44254
|
"pipelineRunner.runDetailSubtree": {
|
|
43885
44255
|
capName: "pipeline-runner",
|
|
43886
44256
|
capScope: "system",
|
|
@@ -46661,11 +47031,21 @@ Object.freeze({
|
|
|
46661
47031
|
form: "single",
|
|
46662
47032
|
optional: false
|
|
46663
47033
|
}],
|
|
47034
|
+
"nativeObjectDetection.getOptions": [{
|
|
47035
|
+
name: "deviceId",
|
|
47036
|
+
form: "single",
|
|
47037
|
+
optional: false
|
|
47038
|
+
}],
|
|
46664
47039
|
"nativeObjectDetection.setEnabled": [{
|
|
46665
47040
|
name: "deviceId",
|
|
46666
47041
|
form: "single",
|
|
46667
47042
|
optional: false
|
|
46668
47043
|
}],
|
|
47044
|
+
"nativeObjectDetection.setSettings": [{
|
|
47045
|
+
name: "deviceId",
|
|
47046
|
+
form: "single",
|
|
47047
|
+
optional: false
|
|
47048
|
+
}],
|
|
46669
47049
|
"navigation.getFeatures": [{
|
|
46670
47050
|
name: "deviceId",
|
|
46671
47051
|
form: "single",
|
|
@@ -47015,6 +47395,11 @@ Object.freeze({
|
|
|
47015
47395
|
form: "single",
|
|
47016
47396
|
optional: false
|
|
47017
47397
|
}],
|
|
47398
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
47399
|
+
name: "deviceId",
|
|
47400
|
+
form: "single",
|
|
47401
|
+
optional: false
|
|
47402
|
+
}],
|
|
47018
47403
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
47019
47404
|
name: "deviceId",
|
|
47020
47405
|
form: "single",
|
|
@@ -47205,6 +47590,11 @@ Object.freeze({
|
|
|
47205
47590
|
form: "single",
|
|
47206
47591
|
optional: false
|
|
47207
47592
|
}],
|
|
47593
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
47594
|
+
name: "deviceId",
|
|
47595
|
+
form: "single",
|
|
47596
|
+
optional: false
|
|
47597
|
+
}],
|
|
47208
47598
|
"pipelineRunner.runDetailSubtree": [{
|
|
47209
47599
|
name: "deviceId",
|
|
47210
47600
|
form: "single",
|