@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
|
@@ -5863,7 +5863,7 @@ var ZodIssueCode = {
|
|
|
5863
5863
|
var ZodFirstPartyTypeKind;
|
|
5864
5864
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5865
5865
|
//#endregion
|
|
5866
|
-
//#region ../types/dist/sleep-
|
|
5866
|
+
//#region ../types/dist/sleep-BDR76Ykr.mjs
|
|
5867
5867
|
/**
|
|
5868
5868
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5869
5869
|
* window to float samples (D455).
|
|
@@ -7803,6 +7803,28 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7803
7803
|
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
7804
7804
|
return DeviceRole;
|
|
7805
7805
|
}({});
|
|
7806
|
+
/**
|
|
7807
|
+
* Identity — preserves literal types for downstream inference.
|
|
7808
|
+
*
|
|
7809
|
+
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
7810
|
+
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
7811
|
+
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
7812
|
+
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
7813
|
+
* whose return type is already a `CustomActionSpec<...>`.
|
|
7814
|
+
*/
|
|
7815
|
+
function defineCustomActions(spec) {
|
|
7816
|
+
return spec;
|
|
7817
|
+
}
|
|
7818
|
+
function customAction(input, output, options) {
|
|
7819
|
+
return {
|
|
7820
|
+
input,
|
|
7821
|
+
output,
|
|
7822
|
+
kind: options?.kind ?? "query",
|
|
7823
|
+
auth: options?.auth ?? "protected",
|
|
7824
|
+
scope: options?.scope ?? { kind: "system" },
|
|
7825
|
+
...options?.caller ? { caller: "required" } : {}
|
|
7826
|
+
};
|
|
7827
|
+
}
|
|
7806
7828
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
7807
7829
|
var VersionOutputSchema = object({ version: string() });
|
|
7808
7830
|
method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" });
|
|
@@ -12984,28 +13006,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
12984
13006
|
content: string()
|
|
12985
13007
|
})) }), { auth: "admin" });
|
|
12986
13008
|
/**
|
|
12987
|
-
* Identity — preserves literal types for downstream inference.
|
|
12988
|
-
*
|
|
12989
|
-
* The constraint is `Record<string, unknown>` (not `CustomActionsSpec`) so
|
|
12990
|
-
* TypeScript does not widen each entry's literal `kind`/`auth` fields to
|
|
12991
|
-
* the broader unions declared on `CustomActionSpec`'s default generics.
|
|
12992
|
-
* Shape validity is enforced separately by the `customAction(...)` helper
|
|
12993
|
-
* whose return type is already a `CustomActionSpec<...>`.
|
|
12994
|
-
*/
|
|
12995
|
-
function defineCustomActions(spec) {
|
|
12996
|
-
return spec;
|
|
12997
|
-
}
|
|
12998
|
-
function customAction(input, output, options) {
|
|
12999
|
-
return {
|
|
13000
|
-
input,
|
|
13001
|
-
output,
|
|
13002
|
-
kind: options?.kind ?? "query",
|
|
13003
|
-
auth: options?.auth ?? "protected",
|
|
13004
|
-
scope: options?.scope ?? { kind: "system" },
|
|
13005
|
-
...options?.caller ? { caller: "required" } : {}
|
|
13006
|
-
};
|
|
13007
|
-
}
|
|
13008
|
-
/**
|
|
13009
13009
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13010
13010
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
13011
13011
|
* contributes a list of `CustomModelDescriptor`s; the hub auto-concatenates
|
|
@@ -18442,6 +18442,48 @@ var NcAlarmConfigSchema = object({
|
|
|
18442
18442
|
settings: NcAlarmSettingsSchema,
|
|
18443
18443
|
coverage: array(NcAlarmModeCoverageSchema)
|
|
18444
18444
|
});
|
|
18445
|
+
/**
|
|
18446
|
+
* ONE rule's demand on ONE camera's clip ring.
|
|
18447
|
+
*
|
|
18448
|
+
* A rule, not a camera: the broker takes the MAX over the asks that reach a
|
|
18449
|
+
* camera, so the answer stays a faithful description of the rules and the
|
|
18450
|
+
* bounding (the byte budget, the broker's own ceiling) stays where the cost
|
|
18451
|
+
* lives. A camera that appears in no ask is being told **nothing** — which is
|
|
18452
|
+
* a different thing from never having been told, and only the envelope
|
|
18453
|
+
* (`rulesLoaded`) can tell those apart.
|
|
18454
|
+
*/
|
|
18455
|
+
var NcClipRetentionAskSchema = object({
|
|
18456
|
+
/**
|
|
18457
|
+
* The camera this ask is about. **Absent = every camera**, which is what a
|
|
18458
|
+
* rule with no `conditions.devices` means: it can fire anywhere, so it is
|
|
18459
|
+
* asking everywhere.
|
|
18460
|
+
*/
|
|
18461
|
+
deviceId: number().int().nonnegative().optional(),
|
|
18462
|
+
/** Seconds of history the rule needs held for it. Never zero — a rule that
|
|
18463
|
+
* needs nothing produces no ask at all. */
|
|
18464
|
+
seconds: number().min(0).max(60),
|
|
18465
|
+
/** The profile the rule cuts from, when it named one. Absent = the cheapest
|
|
18466
|
+
* assigned, which is what the cut defaults to. */
|
|
18467
|
+
profile: CamProfileSchema.optional(),
|
|
18468
|
+
/** Who is asking — so a retention the operator did not expect names a rule. */
|
|
18469
|
+
ruleId: string(),
|
|
18470
|
+
ruleName: string(),
|
|
18471
|
+
/** Why this many seconds: the rule's own window, or the occupancy ceiling. */
|
|
18472
|
+
reason: _enum(["window", "occupancy"])
|
|
18473
|
+
});
|
|
18474
|
+
/**
|
|
18475
|
+
* The whole answer, with the one bit that keeps absence from reading as zero.
|
|
18476
|
+
*
|
|
18477
|
+
* `rulesLoaded` is false until the rule ledger has completed a load at least
|
|
18478
|
+
* once. A centre that is up but has not read its rules yet answers with an
|
|
18479
|
+
* empty ask list that means nothing at all — applying it would drop every
|
|
18480
|
+
* camera's ring to zero for the first events after a restart, which is the
|
|
18481
|
+
* footage this mechanism exists to keep.
|
|
18482
|
+
*/
|
|
18483
|
+
var NcClipRetentionPlanSchema = object({
|
|
18484
|
+
rulesLoaded: boolean(),
|
|
18485
|
+
asks: array(NcClipRetentionAskSchema).readonly()
|
|
18486
|
+
});
|
|
18445
18487
|
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 }), {
|
|
18446
18488
|
kind: "mutation",
|
|
18447
18489
|
auth: "admin",
|
|
@@ -18462,7 +18504,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
18462
18504
|
}), object({ success: literal(true) }), {
|
|
18463
18505
|
kind: "mutation",
|
|
18464
18506
|
auth: "admin"
|
|
18465
|
-
}), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18507
|
+
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
|
|
18466
18508
|
deviceId: number().int(),
|
|
18467
18509
|
muted: boolean()
|
|
18468
18510
|
}), object({ success: literal(true) }), {
|
|
@@ -20996,6 +21038,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20996
21038
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20997
21039
|
framesMatched: number().int()
|
|
20998
21040
|
})).readonly() });
|
|
21041
|
+
/**
|
|
21042
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
21043
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
21044
|
+
* is an alias of this, not a second list.
|
|
21045
|
+
*/
|
|
21046
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
21047
|
+
"motion",
|
|
21048
|
+
"audio-dbfs",
|
|
21049
|
+
"battery",
|
|
21050
|
+
"occupancy"
|
|
21051
|
+
]);
|
|
21052
|
+
/**
|
|
21053
|
+
* One closed 5-minute bucket of a long-term series.
|
|
21054
|
+
*
|
|
21055
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
21056
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
21057
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
21058
|
+
* different claim from zero and the reason this is a sparse series.
|
|
21059
|
+
*/
|
|
21060
|
+
var LtsBucketSchema = object({
|
|
21061
|
+
scope: string(),
|
|
21062
|
+
bucketStart: number().int(),
|
|
21063
|
+
samples: number().int().nonnegative(),
|
|
21064
|
+
sum: number(),
|
|
21065
|
+
min: number(),
|
|
21066
|
+
max: number()
|
|
21067
|
+
});
|
|
20999
21068
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
21000
21069
|
deviceId: number(),
|
|
21001
21070
|
trackId: string()
|
|
@@ -21042,6 +21111,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21042
21111
|
kinds: array(string()).optional(),
|
|
21043
21112
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
21044
21113
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
21114
|
+
deviceId: number(),
|
|
21115
|
+
series: AnalyticsLtsSeriesSchema,
|
|
21116
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
21117
|
+
scope: string().optional(),
|
|
21118
|
+
from: number(),
|
|
21119
|
+
to: number(),
|
|
21120
|
+
limit: number().int().positive().optional()
|
|
21121
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
21045
21122
|
deviceId: number(),
|
|
21046
21123
|
since: number(),
|
|
21047
21124
|
until: number(),
|
|
@@ -21660,6 +21737,14 @@ var MotionSourceEnum = _enum([
|
|
|
21660
21737
|
*/
|
|
21661
21738
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21662
21739
|
/**
|
|
21740
|
+
* Which root detectors a camera runs. Deliberately the SAME vocabulary
|
|
21741
|
+
* post-analysis already tags every detection with (`DetectionSource`) rather
|
|
21742
|
+
* than a second spelling of the same two ideas — the value an operator picks
|
|
21743
|
+
* here is the value that comes back on the track, the overlay and the debug
|
|
21744
|
+
* row.
|
|
21745
|
+
*/
|
|
21746
|
+
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21747
|
+
/**
|
|
21663
21748
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21664
21749
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21665
21750
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21810,6 +21895,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21810
21895
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21811
21896
|
*/
|
|
21812
21897
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21898
|
+
/**
|
|
21899
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21900
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21901
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21902
|
+
*
|
|
21903
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21904
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21905
|
+
* here. Its boxes reach post-analysis on the same
|
|
21906
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21907
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21908
|
+
* subtree (face / plate / embedding).
|
|
21909
|
+
*
|
|
21910
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21911
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21912
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21913
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21914
|
+
*
|
|
21915
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21916
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21917
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21918
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21919
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21920
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21921
|
+
*
|
|
21922
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21923
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21924
|
+
* default.
|
|
21925
|
+
*/
|
|
21926
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21813
21927
|
pipelineEnabled: boolean().default(true),
|
|
21814
21928
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21815
21929
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21991,7 +22105,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21991
22105
|
queueDepth: number(),
|
|
21992
22106
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21993
22107
|
});
|
|
22108
|
+
/**
|
|
22109
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
22110
|
+
*
|
|
22111
|
+
* One instance per node. Receives camera assignments from
|
|
22112
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
22113
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
22114
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
22115
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
22116
|
+
* the bus.
|
|
22117
|
+
*
|
|
22118
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
22119
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
22120
|
+
* makes assignment decisions itself.
|
|
22121
|
+
*/
|
|
22122
|
+
/**
|
|
22123
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
22124
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
22125
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
22126
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
22127
|
+
*/
|
|
22128
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
22129
|
+
"not-attached",
|
|
22130
|
+
"battery-asleep",
|
|
22131
|
+
"not-watching",
|
|
22132
|
+
"already-bursting"
|
|
22133
|
+
]);
|
|
21994
22134
|
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({
|
|
22135
|
+
deviceId: number(),
|
|
22136
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
22137
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
22138
|
+
frames: number().int().positive().optional(),
|
|
22139
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
22140
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
22141
|
+
reason: string()
|
|
22142
|
+
}), object({
|
|
22143
|
+
started: boolean(),
|
|
22144
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
22145
|
+
}), {
|
|
22146
|
+
auth: "admin",
|
|
22147
|
+
kind: "mutation"
|
|
22148
|
+
}), method(object({
|
|
21995
22149
|
handle: FrameHandleSchema,
|
|
21996
22150
|
bbox: NativeCropBboxSchema,
|
|
21997
22151
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27460,7 +27614,7 @@ var NativeDetectionSchema = object({
|
|
|
27460
27614
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27461
27615
|
confidence: number().min(0).max(1).optional()
|
|
27462
27616
|
});
|
|
27463
|
-
object({
|
|
27617
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27464
27618
|
/**
|
|
27465
27619
|
* Last observed instance per class. Missing entries mean the class
|
|
27466
27620
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27477,14 +27631,56 @@ object({
|
|
|
27477
27631
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27478
27632
|
/**
|
|
27479
27633
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27480
|
-
*
|
|
27481
|
-
*
|
|
27634
|
+
*
|
|
27635
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27636
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27637
|
+
* other detection choice is made. `geometry` on
|
|
27638
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27639
|
+
* choice would buy this particular camera.
|
|
27482
27640
|
*/
|
|
27483
27641
|
enabled: boolean()
|
|
27484
|
-
})
|
|
27642
|
+
});
|
|
27643
|
+
/**
|
|
27644
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27645
|
+
*
|
|
27646
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27647
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27648
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27649
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27650
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27651
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27652
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27653
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27654
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27655
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27656
|
+
* tracker as motion and no further.
|
|
27657
|
+
*
|
|
27658
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27659
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27660
|
+
* derived form is only as honest as `getOptions`).
|
|
27661
|
+
*/
|
|
27662
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27663
|
+
"boxed",
|
|
27664
|
+
"while-streaming",
|
|
27665
|
+
"flag-only"
|
|
27666
|
+
]);
|
|
27667
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27668
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27669
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27670
|
+
/** What a detection from this camera carries. */
|
|
27671
|
+
geometry: NativeObjectGeometryEnum
|
|
27672
|
+
});
|
|
27673
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27674
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27485
27675
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27486
27676
|
lastFetchedAt: number() });
|
|
27487
|
-
DeviceType.Camera, method(object({
|
|
27677
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27678
|
+
deviceId: number(),
|
|
27679
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27680
|
+
}), _void(), {
|
|
27681
|
+
kind: "mutation",
|
|
27682
|
+
auth: "admin"
|
|
27683
|
+
}), method(object({
|
|
27488
27684
|
deviceId: number(),
|
|
27489
27685
|
enabled: boolean()
|
|
27490
27686
|
}), _void(), {
|
|
@@ -31283,7 +31479,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
31283
31479
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
31284
31480
|
totalObjects: number().int().nonnegative(),
|
|
31285
31481
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
31286
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31482
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31483
|
+
/**
|
|
31484
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31485
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31486
|
+
*
|
|
31487
|
+
* The operator's question about a scene has two halves and they answer
|
|
31488
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31489
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31490
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31491
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31492
|
+
*
|
|
31493
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31494
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31495
|
+
*
|
|
31496
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31497
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31498
|
+
* parked objects here" about a camera whose lot is full.
|
|
31499
|
+
*/
|
|
31500
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31501
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31502
|
+
* same absence rule. */
|
|
31503
|
+
transientObjects: number().int().nonnegative().optional()
|
|
31287
31504
|
});
|
|
31288
31505
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
31289
31506
|
zoneId: string(),
|
|
@@ -34222,12 +34439,24 @@ Object.freeze({
|
|
|
34222
34439
|
addonId: null,
|
|
34223
34440
|
access: "create"
|
|
34224
34441
|
},
|
|
34442
|
+
"nativeObjectDetection.getOptions": {
|
|
34443
|
+
capName: "native-object-detection",
|
|
34444
|
+
capScope: "device",
|
|
34445
|
+
addonId: null,
|
|
34446
|
+
access: "view"
|
|
34447
|
+
},
|
|
34225
34448
|
"nativeObjectDetection.setEnabled": {
|
|
34226
34449
|
capName: "native-object-detection",
|
|
34227
34450
|
capScope: "device",
|
|
34228
34451
|
addonId: null,
|
|
34229
34452
|
access: "create"
|
|
34230
34453
|
},
|
|
34454
|
+
"nativeObjectDetection.setSettings": {
|
|
34455
|
+
capName: "native-object-detection",
|
|
34456
|
+
capScope: "device",
|
|
34457
|
+
addonId: null,
|
|
34458
|
+
access: "create"
|
|
34459
|
+
},
|
|
34231
34460
|
"navigation.getFeatures": {
|
|
34232
34461
|
capName: "navigation",
|
|
34233
34462
|
capScope: "device",
|
|
@@ -34492,6 +34721,12 @@ Object.freeze({
|
|
|
34492
34721
|
addonId: null,
|
|
34493
34722
|
access: "view"
|
|
34494
34723
|
},
|
|
34724
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34725
|
+
capName: "notification-rules",
|
|
34726
|
+
capScope: "system",
|
|
34727
|
+
addonId: null,
|
|
34728
|
+
access: "view"
|
|
34729
|
+
},
|
|
34495
34730
|
"notificationRules.getConditionCatalog": {
|
|
34496
34731
|
capName: "notification-rules",
|
|
34497
34732
|
capScope: "system",
|
|
@@ -35002,6 +35237,12 @@ Object.freeze({
|
|
|
35002
35237
|
addonId: null,
|
|
35003
35238
|
access: "create"
|
|
35004
35239
|
},
|
|
35240
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
35241
|
+
capName: "pipeline-analytics",
|
|
35242
|
+
capScope: "device",
|
|
35243
|
+
addonId: null,
|
|
35244
|
+
access: "view"
|
|
35245
|
+
},
|
|
35005
35246
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
35006
35247
|
capName: "pipeline-analytics",
|
|
35007
35248
|
capScope: "device",
|
|
@@ -35674,6 +35915,12 @@ Object.freeze({
|
|
|
35674
35915
|
addonId: null,
|
|
35675
35916
|
access: "create"
|
|
35676
35917
|
},
|
|
35918
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35919
|
+
capName: "pipeline-runner",
|
|
35920
|
+
capScope: "system",
|
|
35921
|
+
addonId: null,
|
|
35922
|
+
access: "create"
|
|
35923
|
+
},
|
|
35677
35924
|
"pipelineRunner.runDetailSubtree": {
|
|
35678
35925
|
capName: "pipeline-runner",
|
|
35679
35926
|
capScope: "system",
|
|
@@ -38454,11 +38701,21 @@ Object.freeze({
|
|
|
38454
38701
|
form: "single",
|
|
38455
38702
|
optional: false
|
|
38456
38703
|
}],
|
|
38704
|
+
"nativeObjectDetection.getOptions": [{
|
|
38705
|
+
name: "deviceId",
|
|
38706
|
+
form: "single",
|
|
38707
|
+
optional: false
|
|
38708
|
+
}],
|
|
38457
38709
|
"nativeObjectDetection.setEnabled": [{
|
|
38458
38710
|
name: "deviceId",
|
|
38459
38711
|
form: "single",
|
|
38460
38712
|
optional: false
|
|
38461
38713
|
}],
|
|
38714
|
+
"nativeObjectDetection.setSettings": [{
|
|
38715
|
+
name: "deviceId",
|
|
38716
|
+
form: "single",
|
|
38717
|
+
optional: false
|
|
38718
|
+
}],
|
|
38462
38719
|
"navigation.getFeatures": [{
|
|
38463
38720
|
name: "deviceId",
|
|
38464
38721
|
form: "single",
|
|
@@ -38808,6 +39065,11 @@ Object.freeze({
|
|
|
38808
39065
|
form: "single",
|
|
38809
39066
|
optional: false
|
|
38810
39067
|
}],
|
|
39068
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
39069
|
+
name: "deviceId",
|
|
39070
|
+
form: "single",
|
|
39071
|
+
optional: false
|
|
39072
|
+
}],
|
|
38811
39073
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38812
39074
|
name: "deviceId",
|
|
38813
39075
|
form: "single",
|
|
@@ -38998,6 +39260,11 @@ Object.freeze({
|
|
|
38998
39260
|
form: "single",
|
|
38999
39261
|
optional: false
|
|
39000
39262
|
}],
|
|
39263
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
39264
|
+
name: "deviceId",
|
|
39265
|
+
form: "single",
|
|
39266
|
+
optional: false
|
|
39267
|
+
}],
|
|
39001
39268
|
"pipelineRunner.runDetailSubtree": [{
|
|
39002
39269
|
name: "deviceId",
|
|
39003
39270
|
form: "single",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
|
|
2
|
-
import { o as i, s as a } from "./responsive-
|
|
2
|
+
import { o as i, s as a } from "./responsive-DT6S57fY.mjs";
|
|
3
3
|
import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
|
|
4
4
|
var l = a("chevron-down", [["path", {
|
|
5
5
|
d: "m6 9 6 6 6-6",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BV_S8-Wd.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
|
|
2
2
|
import "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
|
|
3
|
-
import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
3
|
+
import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DIGAz53v.mjs";
|
|
4
4
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
5
5
|
l();
|
|
6
6
|
var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
|
|
2
|
-
import { s as i } from "./responsive-
|
|
2
|
+
import { s as i } from "./responsive-DT6S57fY.mjs";
|
|
3
3
|
var a = i("camera", [["path", {
|
|
4
4
|
d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
|
|
5
5
|
key: "18u6gg"
|
|
@@ -2753,7 +2753,7 @@ async function rr(e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
async function ir() {
|
|
2756
|
-
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DtLTKuOQ.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-model-studio",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.132",
|
|
4
4
|
"description": "Custom detection model registry, conversion & distribution for CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"dev:page": "vite -c vite.page.config.ts",
|
|
82
82
|
"typecheck": "tsc --noEmit",
|
|
83
83
|
"test": "vitest run",
|
|
84
|
-
"publish": "npm publish --access public"
|
|
84
|
+
"publish:npm": "npm publish --access public"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@camstack/types": "*",
|