@camstack/addon-provider-onvif 1.2.101 → 1.2.102
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/addon.js +275 -8
- package/dist/addon.mjs +275 -8
- package/package.json +2 -2
package/dist/addon.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).
|
|
@@ -17914,6 +17914,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17914
17914
|
settings: NcAlarmSettingsSchema,
|
|
17915
17915
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17916
17916
|
});
|
|
17917
|
+
/**
|
|
17918
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17919
|
+
*
|
|
17920
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
17921
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
17922
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
17923
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
17924
|
+
* a different thing from never having been told, and only the envelope
|
|
17925
|
+
* (`rulesLoaded`) can tell those apart.
|
|
17926
|
+
*/
|
|
17927
|
+
var NcClipRetentionAskSchema = object({
|
|
17928
|
+
/**
|
|
17929
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
17930
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
17931
|
+
* asking everywhere.
|
|
17932
|
+
*/
|
|
17933
|
+
deviceId: number().int().nonnegative().optional(),
|
|
17934
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
17935
|
+
* needs nothing produces no ask at all. */
|
|
17936
|
+
seconds: number().min(0).max(60),
|
|
17937
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
17938
|
+
* assigned, which is what the cut defaults to. */
|
|
17939
|
+
profile: CamProfileSchema.optional(),
|
|
17940
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
17941
|
+
ruleId: string(),
|
|
17942
|
+
ruleName: string(),
|
|
17943
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
17944
|
+
reason: _enum(["window", "occupancy"])
|
|
17945
|
+
});
|
|
17946
|
+
/**
|
|
17947
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
17948
|
+
*
|
|
17949
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
17950
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
17951
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
17952
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
17953
|
+
* footage this mechanism exists to keep.
|
|
17954
|
+
*/
|
|
17955
|
+
var NcClipRetentionPlanSchema = object({
|
|
17956
|
+
rulesLoaded: boolean(),
|
|
17957
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
17958
|
+
});
|
|
17917
17959
|
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 }), {
|
|
17918
17960
|
kind: "mutation",
|
|
17919
17961
|
auth: "admin",
|
|
@@ -17934,7 +17976,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
17934
17976
|
}), object({ success: literal(true) }), {
|
|
17935
17977
|
kind: "mutation",
|
|
17936
17978
|
auth: "admin"
|
|
17937
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17979
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17938
17980
|
deviceId: number().int(),
|
|
17939
17981
|
muted: boolean()
|
|
17940
17982
|
}), object({ success: literal(true) }), {
|
|
@@ -20468,6 +20510,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20468
20510
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20469
20511
|
framesMatched: number().int()
|
|
20470
20512
|
})).readonly() });
|
|
20513
|
+
/**
|
|
20514
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20515
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20516
|
+
* is an alias of this, not a second list.
|
|
20517
|
+
*/
|
|
20518
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20519
|
+
"motion",
|
|
20520
|
+
"audio-dbfs",
|
|
20521
|
+
"battery",
|
|
20522
|
+
"occupancy"
|
|
20523
|
+
]);
|
|
20524
|
+
/**
|
|
20525
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20526
|
+
*
|
|
20527
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20528
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20529
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20530
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20531
|
+
*/
|
|
20532
|
+
var LtsBucketSchema = object({
|
|
20533
|
+
scope: string(),
|
|
20534
|
+
bucketStart: number().int(),
|
|
20535
|
+
samples: number().int().nonnegative(),
|
|
20536
|
+
sum: number(),
|
|
20537
|
+
min: number(),
|
|
20538
|
+
max: number()
|
|
20539
|
+
});
|
|
20471
20540
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20472
20541
|
deviceId: number(),
|
|
20473
20542
|
trackId: string()
|
|
@@ -20514,6 +20583,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20514
20583
|
kinds: array(string()).optional(),
|
|
20515
20584
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20516
20585
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20586
|
+
deviceId: number(),
|
|
20587
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20588
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20589
|
+
scope: string().optional(),
|
|
20590
|
+
from: number(),
|
|
20591
|
+
to: number(),
|
|
20592
|
+
limit: number().int().positive().optional()
|
|
20593
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20517
20594
|
deviceId: number(),
|
|
20518
20595
|
since: number(),
|
|
20519
20596
|
until: number(),
|
|
@@ -21132,6 +21209,14 @@ var MotionSourceEnum = _enum([
|
|
|
21132
21209
|
*/
|
|
21133
21210
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21134
21211
|
/**
|
|
21212
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21213
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21214
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21215
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21216
|
+
* row.
|
|
21217
|
+
*/
|
|
21218
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21219
|
+
/**
|
|
21135
21220
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21136
21221
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21137
21222
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21282,6 +21367,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21282
21367
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21283
21368
|
*/
|
|
21284
21369
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21370
|
+
/**
|
|
21371
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21372
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21373
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21374
|
+
*
|
|
21375
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21376
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21377
|
+
* here. Its boxes reach post-analysis on the same
|
|
21378
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21379
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21380
|
+
* subtree (face / plate / embedding).
|
|
21381
|
+
*
|
|
21382
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21383
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21384
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21385
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21386
|
+
*
|
|
21387
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21388
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21389
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21390
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21391
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21392
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21393
|
+
*
|
|
21394
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21395
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21396
|
+
* default.
|
|
21397
|
+
*/
|
|
21398
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21285
21399
|
pipelineEnabled: boolean().default(true),
|
|
21286
21400
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21287
21401
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21463,7 +21577,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21463
21577
|
queueDepth: number(),
|
|
21464
21578
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21465
21579
|
});
|
|
21580
|
+
/**
|
|
21581
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21582
|
+
*
|
|
21583
|
+
* One instance per node. Receives camera assignments from
|
|
21584
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21585
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21586
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21587
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21588
|
+
* the bus.
|
|
21589
|
+
*
|
|
21590
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21591
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21592
|
+
* makes assignment decisions itself.
|
|
21593
|
+
*/
|
|
21594
|
+
/**
|
|
21595
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21596
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21597
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21598
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21599
|
+
*/
|
|
21600
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21601
|
+
"not-attached",
|
|
21602
|
+
"battery-asleep",
|
|
21603
|
+
"not-watching",
|
|
21604
|
+
"already-bursting"
|
|
21605
|
+
]);
|
|
21466
21606
|
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({
|
|
21607
|
+
deviceId: number(),
|
|
21608
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21609
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21610
|
+
frames: number().int().positive().optional(),
|
|
21611
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21612
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21613
|
+
reason: string()
|
|
21614
|
+
}), object({
|
|
21615
|
+
started: boolean(),
|
|
21616
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21617
|
+
}), {
|
|
21618
|
+
auth: "admin",
|
|
21619
|
+
kind: "mutation"
|
|
21620
|
+
}), method(object({
|
|
21467
21621
|
handle: FrameHandleSchema,
|
|
21468
21622
|
bbox: NativeCropBboxSchema,
|
|
21469
21623
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27036,7 +27190,7 @@ var NativeDetectionSchema = object({
|
|
|
27036
27190
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27037
27191
|
confidence: number().min(0).max(1).optional()
|
|
27038
27192
|
});
|
|
27039
|
-
object({
|
|
27193
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27040
27194
|
/**
|
|
27041
27195
|
* Last observed instance per class. Missing entries mean the class
|
|
27042
27196
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27053,14 +27207,56 @@ object({
|
|
|
27053
27207
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27054
27208
|
/**
|
|
27055
27209
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27056
|
-
*
|
|
27057
|
-
*
|
|
27210
|
+
*
|
|
27211
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27212
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27213
|
+
* other detection choice is made. `geometry` on
|
|
27214
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27215
|
+
* choice would buy this particular camera.
|
|
27058
27216
|
*/
|
|
27059
27217
|
enabled: boolean()
|
|
27060
|
-
})
|
|
27218
|
+
});
|
|
27219
|
+
/**
|
|
27220
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27221
|
+
*
|
|
27222
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27223
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27224
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27225
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27226
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27227
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27228
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27229
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27230
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27231
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27232
|
+
* tracker as motion and no further.
|
|
27233
|
+
*
|
|
27234
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27235
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27236
|
+
* derived form is only as honest as `getOptions`).
|
|
27237
|
+
*/
|
|
27238
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27239
|
+
"boxed",
|
|
27240
|
+
"while-streaming",
|
|
27241
|
+
"flag-only"
|
|
27242
|
+
]);
|
|
27243
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27244
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27245
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27246
|
+
/** What a detection from this camera carries. */
|
|
27247
|
+
geometry: NativeObjectGeometryEnum
|
|
27248
|
+
});
|
|
27249
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27250
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27061
27251
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27062
27252
|
lastFetchedAt: number() });
|
|
27063
|
-
DeviceType.Camera, method(object({
|
|
27253
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27254
|
+
deviceId: number(),
|
|
27255
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27256
|
+
}), _void(), {
|
|
27257
|
+
kind: "mutation",
|
|
27258
|
+
auth: "admin"
|
|
27259
|
+
}), method(object({
|
|
27064
27260
|
deviceId: number(),
|
|
27065
27261
|
enabled: boolean()
|
|
27066
27262
|
}), _void(), {
|
|
@@ -30901,7 +31097,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30901
31097
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30902
31098
|
totalObjects: number().int().nonnegative(),
|
|
30903
31099
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30904
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31100
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31101
|
+
/**
|
|
31102
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31103
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31104
|
+
*
|
|
31105
|
+
* The operator's question about a scene has two halves and they answer
|
|
31106
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31107
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31108
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31109
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31110
|
+
*
|
|
31111
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31112
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31113
|
+
*
|
|
31114
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31115
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31116
|
+
* parked objects here" about a camera whose lot is full.
|
|
31117
|
+
*/
|
|
31118
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31119
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31120
|
+
* same absence rule. */
|
|
31121
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30905
31122
|
});
|
|
30906
31123
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30907
31124
|
zoneId: string(),
|
|
@@ -34666,12 +34883,24 @@ Object.freeze({
|
|
|
34666
34883
|
addonId: null,
|
|
34667
34884
|
access: "create"
|
|
34668
34885
|
},
|
|
34886
|
+
"nativeObjectDetection.getOptions": {
|
|
34887
|
+
capName: "native-object-detection",
|
|
34888
|
+
capScope: "device",
|
|
34889
|
+
addonId: null,
|
|
34890
|
+
access: "view"
|
|
34891
|
+
},
|
|
34669
34892
|
"nativeObjectDetection.setEnabled": {
|
|
34670
34893
|
capName: "native-object-detection",
|
|
34671
34894
|
capScope: "device",
|
|
34672
34895
|
addonId: null,
|
|
34673
34896
|
access: "create"
|
|
34674
34897
|
},
|
|
34898
|
+
"nativeObjectDetection.setSettings": {
|
|
34899
|
+
capName: "native-object-detection",
|
|
34900
|
+
capScope: "device",
|
|
34901
|
+
addonId: null,
|
|
34902
|
+
access: "create"
|
|
34903
|
+
},
|
|
34675
34904
|
"navigation.getFeatures": {
|
|
34676
34905
|
capName: "navigation",
|
|
34677
34906
|
capScope: "device",
|
|
@@ -34936,6 +35165,12 @@ Object.freeze({
|
|
|
34936
35165
|
addonId: null,
|
|
34937
35166
|
access: "view"
|
|
34938
35167
|
},
|
|
35168
|
+
"notificationRules.getClipRetentionAsks": {
|
|
35169
|
+
capName: "notification-rules",
|
|
35170
|
+
capScope: "system",
|
|
35171
|
+
addonId: null,
|
|
35172
|
+
access: "view"
|
|
35173
|
+
},
|
|
34939
35174
|
"notificationRules.getConditionCatalog": {
|
|
34940
35175
|
capName: "notification-rules",
|
|
34941
35176
|
capScope: "system",
|
|
@@ -35446,6 +35681,12 @@ Object.freeze({
|
|
|
35446
35681
|
addonId: null,
|
|
35447
35682
|
access: "create"
|
|
35448
35683
|
},
|
|
35684
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
35685
|
+
capName: "pipeline-analytics",
|
|
35686
|
+
capScope: "device",
|
|
35687
|
+
addonId: null,
|
|
35688
|
+
access: "view"
|
|
35689
|
+
},
|
|
35449
35690
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
35450
35691
|
capName: "pipeline-analytics",
|
|
35451
35692
|
capScope: "device",
|
|
@@ -36118,6 +36359,12 @@ Object.freeze({
|
|
|
36118
36359
|
addonId: null,
|
|
36119
36360
|
access: "create"
|
|
36120
36361
|
},
|
|
36362
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
36363
|
+
capName: "pipeline-runner",
|
|
36364
|
+
capScope: "system",
|
|
36365
|
+
addonId: null,
|
|
36366
|
+
access: "create"
|
|
36367
|
+
},
|
|
36121
36368
|
"pipelineRunner.runDetailSubtree": {
|
|
36122
36369
|
capName: "pipeline-runner",
|
|
36123
36370
|
capScope: "system",
|
|
@@ -38898,11 +39145,21 @@ Object.freeze({
|
|
|
38898
39145
|
form: "single",
|
|
38899
39146
|
optional: false
|
|
38900
39147
|
}],
|
|
39148
|
+
"nativeObjectDetection.getOptions": [{
|
|
39149
|
+
name: "deviceId",
|
|
39150
|
+
form: "single",
|
|
39151
|
+
optional: false
|
|
39152
|
+
}],
|
|
38901
39153
|
"nativeObjectDetection.setEnabled": [{
|
|
38902
39154
|
name: "deviceId",
|
|
38903
39155
|
form: "single",
|
|
38904
39156
|
optional: false
|
|
38905
39157
|
}],
|
|
39158
|
+
"nativeObjectDetection.setSettings": [{
|
|
39159
|
+
name: "deviceId",
|
|
39160
|
+
form: "single",
|
|
39161
|
+
optional: false
|
|
39162
|
+
}],
|
|
38906
39163
|
"navigation.getFeatures": [{
|
|
38907
39164
|
name: "deviceId",
|
|
38908
39165
|
form: "single",
|
|
@@ -39252,6 +39509,11 @@ Object.freeze({
|
|
|
39252
39509
|
form: "single",
|
|
39253
39510
|
optional: false
|
|
39254
39511
|
}],
|
|
39512
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
39513
|
+
name: "deviceId",
|
|
39514
|
+
form: "single",
|
|
39515
|
+
optional: false
|
|
39516
|
+
}],
|
|
39255
39517
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
39256
39518
|
name: "deviceId",
|
|
39257
39519
|
form: "single",
|
|
@@ -39442,6 +39704,11 @@ Object.freeze({
|
|
|
39442
39704
|
form: "single",
|
|
39443
39705
|
optional: false
|
|
39444
39706
|
}],
|
|
39707
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
39708
|
+
name: "deviceId",
|
|
39709
|
+
form: "single",
|
|
39710
|
+
optional: false
|
|
39711
|
+
}],
|
|
39445
39712
|
"pipelineRunner.runDetailSubtree": [{
|
|
39446
39713
|
name: "deviceId",
|
|
39447
39714
|
form: "single",
|
package/dist/addon.mjs
CHANGED
|
@@ -5364,7 +5364,7 @@ var ZodIssueCode = {
|
|
|
5364
5364
|
var ZodFirstPartyTypeKind;
|
|
5365
5365
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5366
5366
|
//#endregion
|
|
5367
|
-
//#region ../types/dist/sleep-
|
|
5367
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5368
5368
|
/**
|
|
5369
5369
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5370
5370
|
* window to float samples (D455).
|
|
@@ -17915,6 +17915,48 @@ var NcAlarmConfigSchema = object({
|
|
|
17915
17915
|
settings: NcAlarmSettingsSchema,
|
|
17916
17916
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
17917
17917
|
});
|
|
17918
|
+
/**
|
|
17919
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
17920
|
+
*
|
|
17921
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
17922
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
17923
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
17924
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
17925
|
+
* a different thing from never having been told, and only the envelope
|
|
17926
|
+
* (`rulesLoaded`) can tell those apart.
|
|
17927
|
+
*/
|
|
17928
|
+
var NcClipRetentionAskSchema = object({
|
|
17929
|
+
/**
|
|
17930
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
17931
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
17932
|
+
* asking everywhere.
|
|
17933
|
+
*/
|
|
17934
|
+
deviceId: number().int().nonnegative().optional(),
|
|
17935
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
17936
|
+
* needs nothing produces no ask at all. */
|
|
17937
|
+
seconds: number().min(0).max(60),
|
|
17938
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
17939
|
+
* assigned, which is what the cut defaults to. */
|
|
17940
|
+
profile: CamProfileSchema.optional(),
|
|
17941
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
17942
|
+
ruleId: string(),
|
|
17943
|
+
ruleName: string(),
|
|
17944
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
17945
|
+
reason: _enum(["window", "occupancy"])
|
|
17946
|
+
});
|
|
17947
|
+
/**
|
|
17948
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
17949
|
+
*
|
|
17950
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
17951
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
17952
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
17953
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
17954
|
+
* footage this mechanism exists to keep.
|
|
17955
|
+
*/
|
|
17956
|
+
var NcClipRetentionPlanSchema = object({
|
|
17957
|
+
rulesLoaded: boolean(),
|
|
17958
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
17959
|
+
});
|
|
17918
17960
|
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 }), {
|
|
17919
17961
|
kind: "mutation",
|
|
17920
17962
|
auth: "admin",
|
|
@@ -17935,7 +17977,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
17935
17977
|
}), object({ success: literal(true) }), {
|
|
17936
17978
|
kind: "mutation",
|
|
17937
17979
|
auth: "admin"
|
|
17938
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17980
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
17939
17981
|
deviceId: number().int(),
|
|
17940
17982
|
muted: boolean()
|
|
17941
17983
|
}), object({ success: literal(true) }), {
|
|
@@ -20469,6 +20511,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20469
20511
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20470
20512
|
framesMatched: number().int()
|
|
20471
20513
|
})).readonly() });
|
|
20514
|
+
/**
|
|
20515
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
20516
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
20517
|
+
* is an alias of this, not a second list.
|
|
20518
|
+
*/
|
|
20519
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
20520
|
+
"motion",
|
|
20521
|
+
"audio-dbfs",
|
|
20522
|
+
"battery",
|
|
20523
|
+
"occupancy"
|
|
20524
|
+
]);
|
|
20525
|
+
/**
|
|
20526
|
+
* One closed 5-minute bucket of a long-term series.
|
|
20527
|
+
*
|
|
20528
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
20529
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
20530
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
20531
|
+
* different claim from zero and the reason this is a sparse series.
|
|
20532
|
+
*/
|
|
20533
|
+
var LtsBucketSchema = object({
|
|
20534
|
+
scope: string(),
|
|
20535
|
+
bucketStart: number().int(),
|
|
20536
|
+
samples: number().int().nonnegative(),
|
|
20537
|
+
sum: number(),
|
|
20538
|
+
min: number(),
|
|
20539
|
+
max: number()
|
|
20540
|
+
});
|
|
20472
20541
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
20473
20542
|
deviceId: number(),
|
|
20474
20543
|
trackId: string()
|
|
@@ -20515,6 +20584,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
20515
20584
|
kinds: array(string()).optional(),
|
|
20516
20585
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
20517
20586
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
20587
|
+
deviceId: number(),
|
|
20588
|
+
series: AnalyticsLtsSeriesSchema,
|
|
20589
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
20590
|
+
scope: string().optional(),
|
|
20591
|
+
from: number(),
|
|
20592
|
+
to: number(),
|
|
20593
|
+
limit: number().int().positive().optional()
|
|
20594
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
20518
20595
|
deviceId: number(),
|
|
20519
20596
|
since: number(),
|
|
20520
20597
|
until: number(),
|
|
@@ -21133,6 +21210,14 @@ var MotionSourceEnum = _enum([
|
|
|
21133
21210
|
*/
|
|
21134
21211
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21135
21212
|
/**
|
|
21213
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21214
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21215
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21216
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21217
|
+
* row.
|
|
21218
|
+
*/
|
|
21219
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21220
|
+
/**
|
|
21136
21221
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21137
21222
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21138
21223
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21283,6 +21368,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21283
21368
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21284
21369
|
*/
|
|
21285
21370
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21371
|
+
/**
|
|
21372
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21373
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21374
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21375
|
+
*
|
|
21376
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21377
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21378
|
+
* here. Its boxes reach post-analysis on the same
|
|
21379
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21380
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21381
|
+
* subtree (face / plate / embedding).
|
|
21382
|
+
*
|
|
21383
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21384
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21385
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21386
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21387
|
+
*
|
|
21388
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21389
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21390
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21391
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21392
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21393
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21394
|
+
*
|
|
21395
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21396
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21397
|
+
* default.
|
|
21398
|
+
*/
|
|
21399
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21286
21400
|
pipelineEnabled: boolean().default(true),
|
|
21287
21401
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21288
21402
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21464,7 +21578,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21464
21578
|
queueDepth: number(),
|
|
21465
21579
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21466
21580
|
});
|
|
21581
|
+
/**
|
|
21582
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
21583
|
+
*
|
|
21584
|
+
* One instance per node. Receives camera assignments from
|
|
21585
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
21586
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
21587
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
21588
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
21589
|
+
* the bus.
|
|
21590
|
+
*
|
|
21591
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
21592
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
21593
|
+
* makes assignment decisions itself.
|
|
21594
|
+
*/
|
|
21595
|
+
/**
|
|
21596
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
21597
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
21598
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
21599
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
21600
|
+
*/
|
|
21601
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
21602
|
+
"not-attached",
|
|
21603
|
+
"battery-asleep",
|
|
21604
|
+
"not-watching",
|
|
21605
|
+
"already-bursting"
|
|
21606
|
+
]);
|
|
21467
21607
|
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({
|
|
21608
|
+
deviceId: number(),
|
|
21609
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
21610
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
21611
|
+
frames: number().int().positive().optional(),
|
|
21612
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
21613
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
21614
|
+
reason: string()
|
|
21615
|
+
}), object({
|
|
21616
|
+
started: boolean(),
|
|
21617
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
21618
|
+
}), {
|
|
21619
|
+
auth: "admin",
|
|
21620
|
+
kind: "mutation"
|
|
21621
|
+
}), method(object({
|
|
21468
21622
|
handle: FrameHandleSchema,
|
|
21469
21623
|
bbox: NativeCropBboxSchema,
|
|
21470
21624
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27037,7 +27191,7 @@ var NativeDetectionSchema = object({
|
|
|
27037
27191
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27038
27192
|
confidence: number().min(0).max(1).optional()
|
|
27039
27193
|
});
|
|
27040
|
-
object({
|
|
27194
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27041
27195
|
/**
|
|
27042
27196
|
* Last observed instance per class. Missing entries mean the class
|
|
27043
27197
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27054,14 +27208,56 @@ object({
|
|
|
27054
27208
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27055
27209
|
/**
|
|
27056
27210
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27057
|
-
*
|
|
27058
|
-
*
|
|
27211
|
+
*
|
|
27212
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27213
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27214
|
+
* other detection choice is made. `geometry` on
|
|
27215
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27216
|
+
* choice would buy this particular camera.
|
|
27059
27217
|
*/
|
|
27060
27218
|
enabled: boolean()
|
|
27061
|
-
})
|
|
27219
|
+
});
|
|
27220
|
+
/**
|
|
27221
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27222
|
+
*
|
|
27223
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27224
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27225
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27226
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27227
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27228
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27229
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27230
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27231
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27232
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27233
|
+
* tracker as motion and no further.
|
|
27234
|
+
*
|
|
27235
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27236
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27237
|
+
* derived form is only as honest as `getOptions`).
|
|
27238
|
+
*/
|
|
27239
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27240
|
+
"boxed",
|
|
27241
|
+
"while-streaming",
|
|
27242
|
+
"flag-only"
|
|
27243
|
+
]);
|
|
27244
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27245
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27246
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27247
|
+
/** What a detection from this camera carries. */
|
|
27248
|
+
geometry: NativeObjectGeometryEnum
|
|
27249
|
+
});
|
|
27250
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27251
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27062
27252
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27063
27253
|
lastFetchedAt: number() });
|
|
27064
|
-
DeviceType.Camera, method(object({
|
|
27254
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27255
|
+
deviceId: number(),
|
|
27256
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27257
|
+
}), _void(), {
|
|
27258
|
+
kind: "mutation",
|
|
27259
|
+
auth: "admin"
|
|
27260
|
+
}), method(object({
|
|
27065
27261
|
deviceId: number(),
|
|
27066
27262
|
enabled: boolean()
|
|
27067
27263
|
}), _void(), {
|
|
@@ -30902,7 +31098,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
30902
31098
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
30903
31099
|
totalObjects: number().int().nonnegative(),
|
|
30904
31100
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
30905
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31101
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31102
|
+
/**
|
|
31103
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31104
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31105
|
+
*
|
|
31106
|
+
* The operator's question about a scene has two halves and they answer
|
|
31107
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31108
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31109
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31110
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31111
|
+
*
|
|
31112
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31113
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31114
|
+
*
|
|
31115
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31116
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31117
|
+
* parked objects here" about a camera whose lot is full.
|
|
31118
|
+
*/
|
|
31119
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31120
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31121
|
+
* same absence rule. */
|
|
31122
|
+
transientObjects: number().int().nonnegative().optional()
|
|
30906
31123
|
});
|
|
30907
31124
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
30908
31125
|
zoneId: string(),
|
|
@@ -34667,12 +34884,24 @@ Object.freeze({
|
|
|
34667
34884
|
addonId: null,
|
|
34668
34885
|
access: "create"
|
|
34669
34886
|
},
|
|
34887
|
+
"nativeObjectDetection.getOptions": {
|
|
34888
|
+
capName: "native-object-detection",
|
|
34889
|
+
capScope: "device",
|
|
34890
|
+
addonId: null,
|
|
34891
|
+
access: "view"
|
|
34892
|
+
},
|
|
34670
34893
|
"nativeObjectDetection.setEnabled": {
|
|
34671
34894
|
capName: "native-object-detection",
|
|
34672
34895
|
capScope: "device",
|
|
34673
34896
|
addonId: null,
|
|
34674
34897
|
access: "create"
|
|
34675
34898
|
},
|
|
34899
|
+
"nativeObjectDetection.setSettings": {
|
|
34900
|
+
capName: "native-object-detection",
|
|
34901
|
+
capScope: "device",
|
|
34902
|
+
addonId: null,
|
|
34903
|
+
access: "create"
|
|
34904
|
+
},
|
|
34676
34905
|
"navigation.getFeatures": {
|
|
34677
34906
|
capName: "navigation",
|
|
34678
34907
|
capScope: "device",
|
|
@@ -34937,6 +35166,12 @@ Object.freeze({
|
|
|
34937
35166
|
addonId: null,
|
|
34938
35167
|
access: "view"
|
|
34939
35168
|
},
|
|
35169
|
+
"notificationRules.getClipRetentionAsks": {
|
|
35170
|
+
capName: "notification-rules",
|
|
35171
|
+
capScope: "system",
|
|
35172
|
+
addonId: null,
|
|
35173
|
+
access: "view"
|
|
35174
|
+
},
|
|
34940
35175
|
"notificationRules.getConditionCatalog": {
|
|
34941
35176
|
capName: "notification-rules",
|
|
34942
35177
|
capScope: "system",
|
|
@@ -35447,6 +35682,12 @@ Object.freeze({
|
|
|
35447
35682
|
addonId: null,
|
|
35448
35683
|
access: "create"
|
|
35449
35684
|
},
|
|
35685
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
35686
|
+
capName: "pipeline-analytics",
|
|
35687
|
+
capScope: "device",
|
|
35688
|
+
addonId: null,
|
|
35689
|
+
access: "view"
|
|
35690
|
+
},
|
|
35450
35691
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
35451
35692
|
capName: "pipeline-analytics",
|
|
35452
35693
|
capScope: "device",
|
|
@@ -36119,6 +36360,12 @@ Object.freeze({
|
|
|
36119
36360
|
addonId: null,
|
|
36120
36361
|
access: "create"
|
|
36121
36362
|
},
|
|
36363
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
36364
|
+
capName: "pipeline-runner",
|
|
36365
|
+
capScope: "system",
|
|
36366
|
+
addonId: null,
|
|
36367
|
+
access: "create"
|
|
36368
|
+
},
|
|
36122
36369
|
"pipelineRunner.runDetailSubtree": {
|
|
36123
36370
|
capName: "pipeline-runner",
|
|
36124
36371
|
capScope: "system",
|
|
@@ -38899,11 +39146,21 @@ Object.freeze({
|
|
|
38899
39146
|
form: "single",
|
|
38900
39147
|
optional: false
|
|
38901
39148
|
}],
|
|
39149
|
+
"nativeObjectDetection.getOptions": [{
|
|
39150
|
+
name: "deviceId",
|
|
39151
|
+
form: "single",
|
|
39152
|
+
optional: false
|
|
39153
|
+
}],
|
|
38902
39154
|
"nativeObjectDetection.setEnabled": [{
|
|
38903
39155
|
name: "deviceId",
|
|
38904
39156
|
form: "single",
|
|
38905
39157
|
optional: false
|
|
38906
39158
|
}],
|
|
39159
|
+
"nativeObjectDetection.setSettings": [{
|
|
39160
|
+
name: "deviceId",
|
|
39161
|
+
form: "single",
|
|
39162
|
+
optional: false
|
|
39163
|
+
}],
|
|
38907
39164
|
"navigation.getFeatures": [{
|
|
38908
39165
|
name: "deviceId",
|
|
38909
39166
|
form: "single",
|
|
@@ -39253,6 +39510,11 @@ Object.freeze({
|
|
|
39253
39510
|
form: "single",
|
|
39254
39511
|
optional: false
|
|
39255
39512
|
}],
|
|
39513
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
39514
|
+
name: "deviceId",
|
|
39515
|
+
form: "single",
|
|
39516
|
+
optional: false
|
|
39517
|
+
}],
|
|
39256
39518
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
39257
39519
|
name: "deviceId",
|
|
39258
39520
|
form: "single",
|
|
@@ -39443,6 +39705,11 @@ Object.freeze({
|
|
|
39443
39705
|
form: "single",
|
|
39444
39706
|
optional: false
|
|
39445
39707
|
}],
|
|
39708
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
39709
|
+
name: "deviceId",
|
|
39710
|
+
form: "single",
|
|
39711
|
+
optional: false
|
|
39712
|
+
}],
|
|
39446
39713
|
"pipelineRunner.runDetailSubtree": [{
|
|
39447
39714
|
name: "deviceId",
|
|
39448
39715
|
form: "single",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-onvif",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.102",
|
|
4
4
|
"description": "ONVIF camera device provider addon for CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"build": "vite build",
|
|
61
61
|
"dev": "vite build --watch",
|
|
62
62
|
"typecheck": "tsc --noEmit",
|
|
63
|
-
"publish": "npm publish --access public"
|
|
63
|
+
"publish:npm": "npm publish --access public"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"onvif": "^0.8.1",
|