@camstack/addon-osd-manager 0.1.99 → 0.1.100
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-CDVsNfKC.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-Bttvb5u6.mjs} +3 -3
- package/dist/index.js +362 -11
- package/dist/index.mjs +362 -11
- 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-DJ2oo3wz.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
|
*
|
|
@@ -23577,6 +23651,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
23577
23651
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
23578
23652
|
framesMatched: number().int()
|
|
23579
23653
|
})).readonly() });
|
|
23654
|
+
/**
|
|
23655
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
23656
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
23657
|
+
* is an alias of this, not a second list.
|
|
23658
|
+
*/
|
|
23659
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
23660
|
+
"motion",
|
|
23661
|
+
"audio-dbfs",
|
|
23662
|
+
"battery",
|
|
23663
|
+
"occupancy"
|
|
23664
|
+
]);
|
|
23665
|
+
/**
|
|
23666
|
+
* One closed 5-minute bucket of a long-term series.
|
|
23667
|
+
*
|
|
23668
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
23669
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
23670
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
23671
|
+
* different claim from zero and the reason this is a sparse series.
|
|
23672
|
+
*/
|
|
23673
|
+
var LtsBucketSchema = object({
|
|
23674
|
+
scope: string(),
|
|
23675
|
+
bucketStart: number().int(),
|
|
23676
|
+
samples: number().int().nonnegative(),
|
|
23677
|
+
sum: number(),
|
|
23678
|
+
min: number(),
|
|
23679
|
+
max: number()
|
|
23680
|
+
});
|
|
23580
23681
|
var pipelineAnalyticsCapability = {
|
|
23581
23682
|
name: "pipeline-analytics",
|
|
23582
23683
|
scope: "device",
|
|
@@ -23720,6 +23821,30 @@ var pipelineAnalyticsCapability = {
|
|
|
23720
23821
|
getKeyEventsBatch: method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()),
|
|
23721
23822
|
/** Server-side bucketed event counts for the 24-hour timeline.
|
|
23722
23823
|
* Returns one entry per non-empty bucket; empty buckets are omitted. */
|
|
23824
|
+
/**
|
|
23825
|
+
* Read one camera's long-term series — 5-minute buckets, kept for a year.
|
|
23826
|
+
*
|
|
23827
|
+
* This is the history surface for every chart that used to be served from a
|
|
23828
|
+
* RAM ring: the ring dies with the process, cannot answer about last night,
|
|
23829
|
+
* and had a 60-minute horizon, while these rows are ~60 bytes and already
|
|
23830
|
+
* written. `scope` is the series' own dimension — for `occupancy`, spell it
|
|
23831
|
+
* with {@link occupancyScope} rather than by hand, and omit it to get every
|
|
23832
|
+
* scope back at once (the caller then groups with
|
|
23833
|
+
* {@link parseOccupancyScope}).
|
|
23834
|
+
*
|
|
23835
|
+
* Bounds are inclusive on the BUCKET START, so a range that ends mid-bucket
|
|
23836
|
+
* still returns the bucket it lands in — the alternative is a chart whose
|
|
23837
|
+
* last column silently disappears for five minutes out of every five.
|
|
23838
|
+
*/
|
|
23839
|
+
readLongTermSeries: method(object({
|
|
23840
|
+
deviceId: number(),
|
|
23841
|
+
series: AnalyticsLtsSeriesSchema,
|
|
23842
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
23843
|
+
scope: string().optional(),
|
|
23844
|
+
from: number(),
|
|
23845
|
+
to: number(),
|
|
23846
|
+
limit: number().int().positive().optional()
|
|
23847
|
+
}), array(LtsBucketSchema).readonly()),
|
|
23723
23848
|
getEventDensity: method(object({
|
|
23724
23849
|
deviceId: number(),
|
|
23725
23850
|
since: number(),
|
|
@@ -24861,6 +24986,14 @@ var MotionSourceEnum = _enum([
|
|
|
24861
24986
|
*/
|
|
24862
24987
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
24863
24988
|
/**
|
|
24989
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
24990
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
24991
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
24992
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
24993
|
+
* row.
|
|
24994
|
+
*/
|
|
24995
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
24996
|
+
/**
|
|
24864
24997
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
24865
24998
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
24866
24999
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -25011,6 +25144,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
25011
25144
|
* events; the orchestrator forwards to `reportMotion`.
|
|
25012
25145
|
*/
|
|
25013
25146
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
25147
|
+
/**
|
|
25148
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
25149
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
25150
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
25151
|
+
*
|
|
25152
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
25153
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
25154
|
+
* here. Its boxes reach post-analysis on the same
|
|
25155
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
25156
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
25157
|
+
* subtree (face / plate / embedding).
|
|
25158
|
+
*
|
|
25159
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
25160
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
25161
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
25162
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
25163
|
+
*
|
|
25164
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
25165
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
25166
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
25167
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
25168
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
25169
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
25170
|
+
*
|
|
25171
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
25172
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
25173
|
+
* default.
|
|
25174
|
+
*/
|
|
25175
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
25014
25176
|
pipelineEnabled: boolean().default(true),
|
|
25015
25177
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
25016
25178
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -25206,6 +25368,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
25206
25368
|
* runner has zero knowledge of other agents, no global state, and never
|
|
25207
25369
|
* makes assignment decisions itself.
|
|
25208
25370
|
*/
|
|
25371
|
+
/**
|
|
25372
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
25373
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
25374
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
25375
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
25376
|
+
*/
|
|
25377
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
25378
|
+
"not-attached",
|
|
25379
|
+
"battery-asleep",
|
|
25380
|
+
"not-watching",
|
|
25381
|
+
"already-bursting"
|
|
25382
|
+
]);
|
|
25209
25383
|
var pipelineRunnerCapability = {
|
|
25210
25384
|
name: "pipeline-runner",
|
|
25211
25385
|
scope: "system",
|
|
@@ -25242,6 +25416,50 @@ var pipelineRunnerCapability = {
|
|
|
25242
25416
|
/** List the deviceIds currently attached to this runner. */
|
|
25243
25417
|
getLocalCameras: method(_void(), array(number()).readonly()),
|
|
25244
25418
|
/**
|
|
25419
|
+
* Look at a camera NOW, out of band, because something just happened that
|
|
25420
|
+
* only a fresh look can settle.
|
|
25421
|
+
*
|
|
25422
|
+
* The periodic recheck (`occupancyRecheckSec`, 300 s) exists to watch a
|
|
25423
|
+
* still scene. It is the wrong instrument for a QUESTION that has just been
|
|
25424
|
+
* asked: on device 617 a parked car's departure was observed, a departure
|
|
25425
|
+
* strike was armed — and then the motion session ended, the strike decayed
|
|
25426
|
+
* after its 30 s TTL, and the next periodic look arrived up to five minutes
|
|
25427
|
+
* later with nothing left to confirm. Every one of those departures was
|
|
25428
|
+
* settled by the entry ageing out 6 to 10 minutes of observed time later,
|
|
25429
|
+
* and the notification's clip showed an empty space with nothing leaving
|
|
25430
|
+
* it.
|
|
25431
|
+
*
|
|
25432
|
+
* Two numbers make the ask specific, and a caller that ignores them wastes
|
|
25433
|
+
* the burst: a confirmation must land at least
|
|
25434
|
+
* `DEPARTURE_CONFIRM_MIN_GAP_MS` (3 s) after the read that armed the
|
|
25435
|
+
* strike — before that it is the same optical event and is refused — and
|
|
25436
|
+
* `DEPARTURE_ABSENCE_MIN_READS` (5) consecutive unassociated frames are
|
|
25437
|
+
* needed, while `occupancyRecheckFrames` defaults to FOUR. A burst of four
|
|
25438
|
+
* can never confirm an absence; that is why two periodic looks were always
|
|
25439
|
+
* required.
|
|
25440
|
+
*
|
|
25441
|
+
* The runner answers whether it actually started one. A refusal is NAMED,
|
|
25442
|
+
* never a silent `false`: a camera that is asleep on battery (D173 — this
|
|
25443
|
+
* must not become a self-initiated wake), detached, mid-session or already
|
|
25444
|
+
* bursting are four different facts, and a caller told only "no" cannot
|
|
25445
|
+
* tell a protection from a bug.
|
|
25446
|
+
*/
|
|
25447
|
+
requestOccupancyBurst: method(object({
|
|
25448
|
+
deviceId: number(),
|
|
25449
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
25450
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
25451
|
+
frames: number().int().positive().optional(),
|
|
25452
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
25453
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
25454
|
+
reason: string()
|
|
25455
|
+
}), object({
|
|
25456
|
+
started: boolean(),
|
|
25457
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
25458
|
+
}), {
|
|
25459
|
+
auth: "admin",
|
|
25460
|
+
kind: "mutation"
|
|
25461
|
+
}),
|
|
25462
|
+
/**
|
|
25245
25463
|
* Best-effort NATIVE-resolution crop of a retention-ring frame. Given the
|
|
25246
25464
|
* `FrameHandle` that rode an inference-result event and a normalized `bbox`,
|
|
25247
25465
|
* the runner asks the decode worker still holding that frame's NATIVE
|
|
@@ -33660,11 +33878,46 @@ var NativeObjectDetectionStatusSchema = object({
|
|
|
33660
33878
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
33661
33879
|
/**
|
|
33662
33880
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
33663
|
-
*
|
|
33664
|
-
*
|
|
33881
|
+
*
|
|
33882
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
33883
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
33884
|
+
* other detection choice is made. `geometry` on
|
|
33885
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
33886
|
+
* choice would buy this particular camera.
|
|
33665
33887
|
*/
|
|
33666
33888
|
enabled: boolean()
|
|
33667
33889
|
});
|
|
33890
|
+
/**
|
|
33891
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
33892
|
+
*
|
|
33893
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
33894
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
33895
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
33896
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
33897
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
33898
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
33899
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
33900
|
+
* something is in front of it, and its stream is already being pulled.
|
|
33901
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
33902
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
33903
|
+
* tracker as motion and no further.
|
|
33904
|
+
*
|
|
33905
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
33906
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
33907
|
+
* derived form is only as honest as `getOptions`).
|
|
33908
|
+
*/
|
|
33909
|
+
var NativeObjectGeometryEnum = _enum([
|
|
33910
|
+
"boxed",
|
|
33911
|
+
"while-streaming",
|
|
33912
|
+
"flag-only"
|
|
33913
|
+
]);
|
|
33914
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
33915
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
33916
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
33917
|
+
/** What a detection from this camera carries. */
|
|
33918
|
+
geometry: NativeObjectGeometryEnum
|
|
33919
|
+
});
|
|
33920
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
33668
33921
|
var NativeObjectDetectionRuntimeStateSchema = NativeObjectDetectionStatusSchema.extend({
|
|
33669
33922
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
33670
33923
|
lastFetchedAt: number() });
|
|
@@ -33674,13 +33927,23 @@ var nativeObjectDetectionCapability = {
|
|
|
33674
33927
|
deviceNative: true,
|
|
33675
33928
|
mode: "singleton",
|
|
33676
33929
|
deviceTypes: [DeviceType.Camera],
|
|
33677
|
-
methods: {
|
|
33678
|
-
deviceId: number(),
|
|
33679
|
-
|
|
33680
|
-
|
|
33681
|
-
|
|
33682
|
-
|
|
33683
|
-
|
|
33930
|
+
methods: {
|
|
33931
|
+
getOptions: method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema),
|
|
33932
|
+
setSettings: method(object({
|
|
33933
|
+
deviceId: number(),
|
|
33934
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
33935
|
+
}), _void(), {
|
|
33936
|
+
kind: "mutation",
|
|
33937
|
+
auth: "admin"
|
|
33938
|
+
}),
|
|
33939
|
+
setEnabled: method(object({
|
|
33940
|
+
deviceId: number(),
|
|
33941
|
+
enabled: boolean()
|
|
33942
|
+
}), _void(), {
|
|
33943
|
+
kind: "mutation",
|
|
33944
|
+
auth: "admin"
|
|
33945
|
+
})
|
|
33946
|
+
},
|
|
33684
33947
|
events: { onDetected: { data: object({
|
|
33685
33948
|
deviceId: number(),
|
|
33686
33949
|
detection: NativeDetectionSchema
|
|
@@ -39142,7 +39405,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
39142
39405
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
39143
39406
|
totalObjects: number().int().nonnegative(),
|
|
39144
39407
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
39145
|
-
byClass: record(string(), number().int().nonnegative())
|
|
39408
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
39409
|
+
/**
|
|
39410
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
39411
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
39412
|
+
*
|
|
39413
|
+
* The operator's question about a scene has two halves and they answer
|
|
39414
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
39415
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
39416
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
39417
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
39418
|
+
*
|
|
39419
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
39420
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
39421
|
+
*
|
|
39422
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
39423
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
39424
|
+
* parked objects here" about a camera whose lot is full.
|
|
39425
|
+
*/
|
|
39426
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
39427
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
39428
|
+
* same absence rule. */
|
|
39429
|
+
transientObjects: number().int().nonnegative().optional()
|
|
39146
39430
|
});
|
|
39147
39431
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
39148
39432
|
zoneId: string(),
|
|
@@ -39265,6 +39549,23 @@ var HistoryPointSchema = object({
|
|
|
39265
39549
|
* triple covers the three spatial scopes (per-zone, frame-wide,
|
|
39266
39550
|
* outside-any-zone). Crossing them with `className?` gives the full
|
|
39267
39551
|
* combinatorial coverage the operator UI requested.
|
|
39552
|
+
*
|
|
39553
|
+
* ## ⚠️ The three history methods are DEPRECATED
|
|
39554
|
+
*
|
|
39555
|
+
* They are served from a 60-MINUTE in-memory ring. It dies with the process,
|
|
39556
|
+
* so after a restart they report nothing about a night that did happen, and any
|
|
39557
|
+
* window past an hour is silently clamped — a caller cannot tell a clamp from
|
|
39558
|
+
* an empty scene. The presets in the occupancy chart existed to hide that
|
|
39559
|
+
* horizon rather than to answer a question.
|
|
39560
|
+
*
|
|
39561
|
+
* Use `pipelineAnalytics.readLongTermSeries({ series: 'occupancy', scope })`
|
|
39562
|
+
* instead. Those rows are already written for every camera, ~60 bytes per
|
|
39563
|
+
* (camera, scope, 5-minute bucket), kept for a year, and survive a restart.
|
|
39564
|
+
* Spell the scope with `occupancyScope(zoneId?, className?)` — the same
|
|
39565
|
+
* function the writer uses, so the two cannot drift.
|
|
39566
|
+
*
|
|
39567
|
+
* The ring stays until these three go, and it is the only thing left reading
|
|
39568
|
+
* it. Do not add a fourth caller.
|
|
39268
39569
|
*/
|
|
39269
39570
|
var zoneAnalyticsCapability = {
|
|
39270
39571
|
name: "zone-analytics",
|
|
@@ -42429,12 +42730,24 @@ Object.freeze({
|
|
|
42429
42730
|
addonId: null,
|
|
42430
42731
|
access: "create"
|
|
42431
42732
|
},
|
|
42733
|
+
"nativeObjectDetection.getOptions": {
|
|
42734
|
+
capName: "native-object-detection",
|
|
42735
|
+
capScope: "device",
|
|
42736
|
+
addonId: null,
|
|
42737
|
+
access: "view"
|
|
42738
|
+
},
|
|
42432
42739
|
"nativeObjectDetection.setEnabled": {
|
|
42433
42740
|
capName: "native-object-detection",
|
|
42434
42741
|
capScope: "device",
|
|
42435
42742
|
addonId: null,
|
|
42436
42743
|
access: "create"
|
|
42437
42744
|
},
|
|
42745
|
+
"nativeObjectDetection.setSettings": {
|
|
42746
|
+
capName: "native-object-detection",
|
|
42747
|
+
capScope: "device",
|
|
42748
|
+
addonId: null,
|
|
42749
|
+
access: "create"
|
|
42750
|
+
},
|
|
42438
42751
|
"navigation.getFeatures": {
|
|
42439
42752
|
capName: "navigation",
|
|
42440
42753
|
capScope: "device",
|
|
@@ -42699,6 +43012,12 @@ Object.freeze({
|
|
|
42699
43012
|
addonId: null,
|
|
42700
43013
|
access: "view"
|
|
42701
43014
|
},
|
|
43015
|
+
"notificationRules.getClipRetentionAsks": {
|
|
43016
|
+
capName: "notification-rules",
|
|
43017
|
+
capScope: "system",
|
|
43018
|
+
addonId: null,
|
|
43019
|
+
access: "view"
|
|
43020
|
+
},
|
|
42702
43021
|
"notificationRules.getConditionCatalog": {
|
|
42703
43022
|
capName: "notification-rules",
|
|
42704
43023
|
capScope: "system",
|
|
@@ -43209,6 +43528,12 @@ Object.freeze({
|
|
|
43209
43528
|
addonId: null,
|
|
43210
43529
|
access: "create"
|
|
43211
43530
|
},
|
|
43531
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
43532
|
+
capName: "pipeline-analytics",
|
|
43533
|
+
capScope: "device",
|
|
43534
|
+
addonId: null,
|
|
43535
|
+
access: "view"
|
|
43536
|
+
},
|
|
43212
43537
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
43213
43538
|
capName: "pipeline-analytics",
|
|
43214
43539
|
capScope: "device",
|
|
@@ -43881,6 +44206,12 @@ Object.freeze({
|
|
|
43881
44206
|
addonId: null,
|
|
43882
44207
|
access: "create"
|
|
43883
44208
|
},
|
|
44209
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
44210
|
+
capName: "pipeline-runner",
|
|
44211
|
+
capScope: "system",
|
|
44212
|
+
addonId: null,
|
|
44213
|
+
access: "create"
|
|
44214
|
+
},
|
|
43884
44215
|
"pipelineRunner.runDetailSubtree": {
|
|
43885
44216
|
capName: "pipeline-runner",
|
|
43886
44217
|
capScope: "system",
|
|
@@ -46661,11 +46992,21 @@ Object.freeze({
|
|
|
46661
46992
|
form: "single",
|
|
46662
46993
|
optional: false
|
|
46663
46994
|
}],
|
|
46995
|
+
"nativeObjectDetection.getOptions": [{
|
|
46996
|
+
name: "deviceId",
|
|
46997
|
+
form: "single",
|
|
46998
|
+
optional: false
|
|
46999
|
+
}],
|
|
46664
47000
|
"nativeObjectDetection.setEnabled": [{
|
|
46665
47001
|
name: "deviceId",
|
|
46666
47002
|
form: "single",
|
|
46667
47003
|
optional: false
|
|
46668
47004
|
}],
|
|
47005
|
+
"nativeObjectDetection.setSettings": [{
|
|
47006
|
+
name: "deviceId",
|
|
47007
|
+
form: "single",
|
|
47008
|
+
optional: false
|
|
47009
|
+
}],
|
|
46669
47010
|
"navigation.getFeatures": [{
|
|
46670
47011
|
name: "deviceId",
|
|
46671
47012
|
form: "single",
|
|
@@ -47015,6 +47356,11 @@ Object.freeze({
|
|
|
47015
47356
|
form: "single",
|
|
47016
47357
|
optional: false
|
|
47017
47358
|
}],
|
|
47359
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
47360
|
+
name: "deviceId",
|
|
47361
|
+
form: "single",
|
|
47362
|
+
optional: false
|
|
47363
|
+
}],
|
|
47018
47364
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
47019
47365
|
name: "deviceId",
|
|
47020
47366
|
form: "single",
|
|
@@ -47205,6 +47551,11 @@ Object.freeze({
|
|
|
47205
47551
|
form: "single",
|
|
47206
47552
|
optional: false
|
|
47207
47553
|
}],
|
|
47554
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
47555
|
+
name: "deviceId",
|
|
47556
|
+
form: "single",
|
|
47557
|
+
optional: false
|
|
47558
|
+
}],
|
|
47208
47559
|
"pipelineRunner.runDetailSubtree": [{
|
|
47209
47560
|
name: "deviceId",
|
|
47210
47561
|
form: "single",
|