@camstack/addon-model-studio 1.1.131 → 1.1.132
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-Bq4Rn5EJ.mjs → MotionZonesSettings-BJdGAJWf.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BoIP6Dhq.mjs → PrivacyMaskSettings-DDhVbn_Y.mjs} +4 -4
- package/dist/{SceneMonitorEditor-C8M6rkY7.mjs → SceneMonitorEditor-FI63V5ql.mjs} +3 -3
- package/dist/_stub.js +10 -10
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-D-IAFmmz.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DtLTKuOQ.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DIGAz53v.mjs +26 -0
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-DiQ1ZL5R.mjs → hostInit-CexeRvrD.mjs} +3 -3
- package/dist/model-studio.addon.js +297 -30
- package/dist/model-studio.addon.mjs +297 -30
- package/dist/{player-overlays-CNZeJiF2.mjs → player-overlays-bZG9h6O2.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-DuDd1AFK.mjs → responsive-DT6S57fY.mjs} +1 -1
- package/dist/{square-DtHp8pdo.mjs → square-CTAukwzX.mjs} +1 -1
- package/dist/{trash-2-B1QppmHH.mjs → trash-2-C08NQ081.mjs} +1 -1
- package/dist/{use-device-snapshot-Ddf11PHt.mjs → use-device-snapshot-Be2Q6jle.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DzZW_rbO.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BV_S8-Wd.mjs} +1 -1
- package/package.json +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D04vt1H4.mjs +0 -26
- package/python/__pycache__/convert.cpython-314.pyc +0 -0
- package/python/__pycache__/convert_lib.cpython-312.pyc +0 -0
- package/python/__pycache__/convert_lib.cpython-314.pyc +0 -0
- package/python/__tests__/__pycache__/test_convert_lib.cpython-314.pyc +0 -0
|
@@ -5884,7 +5884,7 @@ var ZodIssueCode = {
|
|
|
5884
5884
|
var ZodFirstPartyTypeKind;
|
|
5885
5885
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5886
5886
|
//#endregion
|
|
5887
|
-
//#region ../types/dist/sleep-
|
|
5887
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5888
5888
|
/**
|
|
5889
5889
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5890
5890
|
* window to float samples (D455).
|
|
@@ -7824,6 +7824,28 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7824
7824
|
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
7825
7825
|
return DeviceRole;
|
|
7826
7826
|
}({});
|
|
7827
|
+
/**
|
|
7828
|
+
* Identity — preserves literal types for downstream inference.
|
|
7829
|
+
*
|
|
7830
|
+
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
7831
|
+
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
7832
|
+
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
7833
|
+
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
7834
|
+
* whose return type is already a `CustomActionSpec<...>`.
|
|
7835
|
+
*/
|
|
7836
|
+
function defineCustomActions(spec) {
|
|
7837
|
+
return spec;
|
|
7838
|
+
}
|
|
7839
|
+
function customAction(input, output, options) {
|
|
7840
|
+
return {
|
|
7841
|
+
input,
|
|
7842
|
+
output,
|
|
7843
|
+
kind: options?.kind ?? "query",
|
|
7844
|
+
auth: options?.auth ?? "protected",
|
|
7845
|
+
scope: options?.scope ?? { kind: "system" },
|
|
7846
|
+
...options?.caller ? { caller: "required" } : {}
|
|
7847
|
+
};
|
|
7848
|
+
}
|
|
7827
7849
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
7828
7850
|
var VersionOutputSchema = object({ version: string() });
|
|
7829
7851
|
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
@@ -13005,28 +13027,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13005
13027
|
content: string()
|
|
13006
13028
|
})) }), { auth: "admin" });
|
|
13007
13029
|
/**
|
|
13008
|
-
* Identity — preserves literal types for downstream inference.
|
|
13009
|
-
*
|
|
13010
|
-
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
13011
|
-
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
13012
|
-
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
13013
|
-
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
13014
|
-
* whose return type is already a `CustomActionSpec<...>`.
|
|
13015
|
-
*/
|
|
13016
|
-
function defineCustomActions(spec) {
|
|
13017
|
-
return spec;
|
|
13018
|
-
}
|
|
13019
|
-
function customAction(input, output, options) {
|
|
13020
|
-
return {
|
|
13021
|
-
input,
|
|
13022
|
-
output,
|
|
13023
|
-
kind: options?.kind ?? "query",
|
|
13024
|
-
auth: options?.auth ?? "protected",
|
|
13025
|
-
scope: options?.scope ?? { kind: "system" },
|
|
13026
|
-
...options?.caller ? { caller: "required" } : {}
|
|
13027
|
-
};
|
|
13028
|
-
}
|
|
13029
|
-
/**
|
|
13030
13030
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13031
13031
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
13032
13032
|
* contributes a list of `CustomModelDescriptor`s; the hub auto-concatenates
|
|
@@ -18463,6 +18463,48 @@ var NcAlarmConfigSchema = object({
|
|
|
18463
18463
|
settings: NcAlarmSettingsSchema,
|
|
18464
18464
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
18465
18465
|
});
|
|
18466
|
+
/**
|
|
18467
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
18468
|
+
*
|
|
18469
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
18470
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
18471
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
18472
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
18473
|
+
* a different thing from never having been told, and only the envelope
|
|
18474
|
+
* (`rulesLoaded`) can tell those apart.
|
|
18475
|
+
*/
|
|
18476
|
+
var NcClipRetentionAskSchema = object({
|
|
18477
|
+
/**
|
|
18478
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
18479
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
18480
|
+
* asking everywhere.
|
|
18481
|
+
*/
|
|
18482
|
+
deviceId: number().int().nonnegative().optional(),
|
|
18483
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
18484
|
+
* needs nothing produces no ask at all. */
|
|
18485
|
+
seconds: number().min(0).max(60),
|
|
18486
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
18487
|
+
* assigned, which is what the cut defaults to. */
|
|
18488
|
+
profile: CamProfileSchema.optional(),
|
|
18489
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
18490
|
+
ruleId: string(),
|
|
18491
|
+
ruleName: string(),
|
|
18492
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
18493
|
+
reason: _enum(["window", "occupancy"])
|
|
18494
|
+
});
|
|
18495
|
+
/**
|
|
18496
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
18497
|
+
*
|
|
18498
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
18499
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
18500
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
18501
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
18502
|
+
* footage this mechanism exists to keep.
|
|
18503
|
+
*/
|
|
18504
|
+
var NcClipRetentionPlanSchema = object({
|
|
18505
|
+
rulesLoaded: boolean(),
|
|
18506
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
18507
|
+
});
|
|
18466
18508
|
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 }), {
|
|
18467
18509
|
kind: "mutation",
|
|
18468
18510
|
auth: "admin",
|
|
@@ -18483,7 +18525,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
18483
18525
|
}), object({ success: literal(true) }), {
|
|
18484
18526
|
kind: "mutation",
|
|
18485
18527
|
auth: "admin"
|
|
18486
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18528
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18487
18529
|
deviceId: number().int(),
|
|
18488
18530
|
muted: boolean()
|
|
18489
18531
|
}), object({ success: literal(true) }), {
|
|
@@ -21017,6 +21059,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
21017
21059
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
21018
21060
|
framesMatched: number().int()
|
|
21019
21061
|
})).readonly() });
|
|
21062
|
+
/**
|
|
21063
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
21064
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
21065
|
+
* is an alias of this, not a second list.
|
|
21066
|
+
*/
|
|
21067
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
21068
|
+
"motion",
|
|
21069
|
+
"audio-dbfs",
|
|
21070
|
+
"battery",
|
|
21071
|
+
"occupancy"
|
|
21072
|
+
]);
|
|
21073
|
+
/**
|
|
21074
|
+
* One closed 5-minute bucket of a long-term series.
|
|
21075
|
+
*
|
|
21076
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
21077
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
21078
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
21079
|
+
* different claim from zero and the reason this is a sparse series.
|
|
21080
|
+
*/
|
|
21081
|
+
var LtsBucketSchema = object({
|
|
21082
|
+
scope: string(),
|
|
21083
|
+
bucketStart: number().int(),
|
|
21084
|
+
samples: number().int().nonnegative(),
|
|
21085
|
+
sum: number(),
|
|
21086
|
+
min: number(),
|
|
21087
|
+
max: number()
|
|
21088
|
+
});
|
|
21020
21089
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
21021
21090
|
deviceId: number(),
|
|
21022
21091
|
trackId: string()
|
|
@@ -21063,6 +21132,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21063
21132
|
kinds: array(string()).optional(),
|
|
21064
21133
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
21065
21134
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
21135
|
+
deviceId: number(),
|
|
21136
|
+
series: AnalyticsLtsSeriesSchema,
|
|
21137
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
21138
|
+
scope: string().optional(),
|
|
21139
|
+
from: number(),
|
|
21140
|
+
to: number(),
|
|
21141
|
+
limit: number().int().positive().optional()
|
|
21142
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
21066
21143
|
deviceId: number(),
|
|
21067
21144
|
since: number(),
|
|
21068
21145
|
until: number(),
|
|
@@ -21681,6 +21758,14 @@ var MotionSourceEnum = _enum([
|
|
|
21681
21758
|
*/
|
|
21682
21759
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21683
21760
|
/**
|
|
21761
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21762
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21763
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21764
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21765
|
+
* row.
|
|
21766
|
+
*/
|
|
21767
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21768
|
+
/**
|
|
21684
21769
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21685
21770
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21686
21771
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21831,6 +21916,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21831
21916
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21832
21917
|
*/
|
|
21833
21918
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21919
|
+
/**
|
|
21920
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21921
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21922
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21923
|
+
*
|
|
21924
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21925
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21926
|
+
* here. Its boxes reach post-analysis on the same
|
|
21927
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21928
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21929
|
+
* subtree (face / plate / embedding).
|
|
21930
|
+
*
|
|
21931
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21932
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21933
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21934
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21935
|
+
*
|
|
21936
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21937
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21938
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21939
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21940
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21941
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21942
|
+
*
|
|
21943
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21944
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21945
|
+
* default.
|
|
21946
|
+
*/
|
|
21947
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21834
21948
|
pipelineEnabled: boolean().default(true),
|
|
21835
21949
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21836
21950
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -22012,7 +22126,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
22012
22126
|
queueDepth: number(),
|
|
22013
22127
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
22014
22128
|
});
|
|
22129
|
+
/**
|
|
22130
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
22131
|
+
*
|
|
22132
|
+
* One instance per node. Receives camera assignments from
|
|
22133
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
22134
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
22135
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
22136
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
22137
|
+
* the bus.
|
|
22138
|
+
*
|
|
22139
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
22140
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
22141
|
+
* makes assignment decisions itself.
|
|
22142
|
+
*/
|
|
22143
|
+
/**
|
|
22144
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
22145
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
22146
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
22147
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
22148
|
+
*/
|
|
22149
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
22150
|
+
"not-attached",
|
|
22151
|
+
"battery-asleep",
|
|
22152
|
+
"not-watching",
|
|
22153
|
+
"already-bursting"
|
|
22154
|
+
]);
|
|
22015
22155
|
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({
|
|
22156
|
+
deviceId: number(),
|
|
22157
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
22158
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
22159
|
+
frames: number().int().positive().optional(),
|
|
22160
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
22161
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
22162
|
+
reason: string()
|
|
22163
|
+
}), object({
|
|
22164
|
+
started: boolean(),
|
|
22165
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
22166
|
+
}), {
|
|
22167
|
+
auth: "admin",
|
|
22168
|
+
kind: "mutation"
|
|
22169
|
+
}), method(object({
|
|
22016
22170
|
handle: FrameHandleSchema,
|
|
22017
22171
|
bbox: NativeCropBboxSchema,
|
|
22018
22172
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27481,7 +27635,7 @@ var NativeDetectionSchema = object({
|
|
|
27481
27635
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27482
27636
|
confidence: number().min(0).max(1).optional()
|
|
27483
27637
|
});
|
|
27484
|
-
object({
|
|
27638
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27485
27639
|
/**
|
|
27486
27640
|
* Last observed instance per class. Missing entries mean the class
|
|
27487
27641
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27498,14 +27652,56 @@ object({
|
|
|
27498
27652
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27499
27653
|
/**
|
|
27500
27654
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27501
|
-
*
|
|
27502
|
-
*
|
|
27655
|
+
*
|
|
27656
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27657
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27658
|
+
* other detection choice is made. `geometry` on
|
|
27659
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27660
|
+
* choice would buy this particular camera.
|
|
27503
27661
|
*/
|
|
27504
27662
|
enabled: boolean()
|
|
27505
|
-
})
|
|
27663
|
+
});
|
|
27664
|
+
/**
|
|
27665
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27666
|
+
*
|
|
27667
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27668
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27669
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27670
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27671
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27672
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27673
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27674
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27675
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27676
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27677
|
+
* tracker as motion and no further.
|
|
27678
|
+
*
|
|
27679
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27680
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27681
|
+
* derived form is only as honest as `getOptions`).
|
|
27682
|
+
*/
|
|
27683
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27684
|
+
"boxed",
|
|
27685
|
+
"while-streaming",
|
|
27686
|
+
"flag-only"
|
|
27687
|
+
]);
|
|
27688
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27689
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27690
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27691
|
+
/** What a detection from this camera carries. */
|
|
27692
|
+
geometry: NativeObjectGeometryEnum
|
|
27693
|
+
});
|
|
27694
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27695
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27506
27696
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27507
27697
|
lastFetchedAt: number() });
|
|
27508
|
-
DeviceType.Camera, method(object({
|
|
27698
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27699
|
+
deviceId: number(),
|
|
27700
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27701
|
+
}), _void(), {
|
|
27702
|
+
kind: "mutation",
|
|
27703
|
+
auth: "admin"
|
|
27704
|
+
}), method(object({
|
|
27509
27705
|
deviceId: number(),
|
|
27510
27706
|
enabled: boolean()
|
|
27511
27707
|
}), _void(), {
|
|
@@ -31304,7 +31500,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
31304
31500
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
31305
31501
|
totalObjects: number().int().nonnegative(),
|
|
31306
31502
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
31307
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31503
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31504
|
+
/**
|
|
31505
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31506
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31507
|
+
*
|
|
31508
|
+
* The operator's question about a scene has two halves and they answer
|
|
31509
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31510
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31511
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31512
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31513
|
+
*
|
|
31514
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31515
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31516
|
+
*
|
|
31517
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31518
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31519
|
+
* parked objects here" about a camera whose lot is full.
|
|
31520
|
+
*/
|
|
31521
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31522
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31523
|
+
* same absence rule. */
|
|
31524
|
+
transientObjects: number().int().nonnegative().optional()
|
|
31308
31525
|
});
|
|
31309
31526
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
31310
31527
|
zoneId: string(),
|
|
@@ -34243,12 +34460,24 @@ Object.freeze({
|
|
|
34243
34460
|
addonId: null,
|
|
34244
34461
|
access: "create"
|
|
34245
34462
|
},
|
|
34463
|
+
"nativeObjectDetection.getOptions": {
|
|
34464
|
+
capName: "native-object-detection",
|
|
34465
|
+
capScope: "device",
|
|
34466
|
+
addonId: null,
|
|
34467
|
+
access: "view"
|
|
34468
|
+
},
|
|
34246
34469
|
"nativeObjectDetection.setEnabled": {
|
|
34247
34470
|
capName: "native-object-detection",
|
|
34248
34471
|
capScope: "device",
|
|
34249
34472
|
addonId: null,
|
|
34250
34473
|
access: "create"
|
|
34251
34474
|
},
|
|
34475
|
+
"nativeObjectDetection.setSettings": {
|
|
34476
|
+
capName: "native-object-detection",
|
|
34477
|
+
capScope: "device",
|
|
34478
|
+
addonId: null,
|
|
34479
|
+
access: "create"
|
|
34480
|
+
},
|
|
34252
34481
|
"navigation.getFeatures": {
|
|
34253
34482
|
capName: "navigation",
|
|
34254
34483
|
capScope: "device",
|
|
@@ -34513,6 +34742,12 @@ Object.freeze({
|
|
|
34513
34742
|
addonId: null,
|
|
34514
34743
|
access: "view"
|
|
34515
34744
|
},
|
|
34745
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34746
|
+
capName: "notification-rules",
|
|
34747
|
+
capScope: "system",
|
|
34748
|
+
addonId: null,
|
|
34749
|
+
access: "view"
|
|
34750
|
+
},
|
|
34516
34751
|
"notificationRules.getConditionCatalog": {
|
|
34517
34752
|
capName: "notification-rules",
|
|
34518
34753
|
capScope: "system",
|
|
@@ -35023,6 +35258,12 @@ Object.freeze({
|
|
|
35023
35258
|
addonId: null,
|
|
35024
35259
|
access: "create"
|
|
35025
35260
|
},
|
|
35261
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
35262
|
+
capName: "pipeline-analytics",
|
|
35263
|
+
capScope: "device",
|
|
35264
|
+
addonId: null,
|
|
35265
|
+
access: "view"
|
|
35266
|
+
},
|
|
35026
35267
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
35027
35268
|
capName: "pipeline-analytics",
|
|
35028
35269
|
capScope: "device",
|
|
@@ -35695,6 +35936,12 @@ Object.freeze({
|
|
|
35695
35936
|
addonId: null,
|
|
35696
35937
|
access: "create"
|
|
35697
35938
|
},
|
|
35939
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35940
|
+
capName: "pipeline-runner",
|
|
35941
|
+
capScope: "system",
|
|
35942
|
+
addonId: null,
|
|
35943
|
+
access: "create"
|
|
35944
|
+
},
|
|
35698
35945
|
"pipelineRunner.runDetailSubtree": {
|
|
35699
35946
|
capName: "pipeline-runner",
|
|
35700
35947
|
capScope: "system",
|
|
@@ -38475,11 +38722,21 @@ Object.freeze({
|
|
|
38475
38722
|
form: "single",
|
|
38476
38723
|
optional: false
|
|
38477
38724
|
}],
|
|
38725
|
+
"nativeObjectDetection.getOptions": [{
|
|
38726
|
+
name: "deviceId",
|
|
38727
|
+
form: "single",
|
|
38728
|
+
optional: false
|
|
38729
|
+
}],
|
|
38478
38730
|
"nativeObjectDetection.setEnabled": [{
|
|
38479
38731
|
name: "deviceId",
|
|
38480
38732
|
form: "single",
|
|
38481
38733
|
optional: false
|
|
38482
38734
|
}],
|
|
38735
|
+
"nativeObjectDetection.setSettings": [{
|
|
38736
|
+
name: "deviceId",
|
|
38737
|
+
form: "single",
|
|
38738
|
+
optional: false
|
|
38739
|
+
}],
|
|
38483
38740
|
"navigation.getFeatures": [{
|
|
38484
38741
|
name: "deviceId",
|
|
38485
38742
|
form: "single",
|
|
@@ -38829,6 +39086,11 @@ Object.freeze({
|
|
|
38829
39086
|
form: "single",
|
|
38830
39087
|
optional: false
|
|
38831
39088
|
}],
|
|
39089
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
39090
|
+
name: "deviceId",
|
|
39091
|
+
form: "single",
|
|
39092
|
+
optional: false
|
|
39093
|
+
}],
|
|
38832
39094
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38833
39095
|
name: "deviceId",
|
|
38834
39096
|
form: "single",
|
|
@@ -39019,6 +39281,11 @@ Object.freeze({
|
|
|
39019
39281
|
form: "single",
|
|
39020
39282
|
optional: false
|
|
39021
39283
|
}],
|
|
39284
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
39285
|
+
name: "deviceId",
|
|
39286
|
+
form: "single",
|
|
39287
|
+
optional: false
|
|
39288
|
+
}],
|
|
39022
39289
|
"pipelineRunner.runDetailSubtree": [{
|
|
39023
39290
|
name: "deviceId",
|
|
39024
39291
|
form: "single",
|