@camstack/addon-model-studio 1.1.131 → 1.1.133
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-i_0AIEsA.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-C1cpN2Dj.mjs} +3 -3
- package/dist/model-studio.addon.js +338 -32
- package/dist/model-studio.addon.mjs +338 -32
- 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-xG0NvnSj.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) }), {
|
|
@@ -19607,13 +19649,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19607
19649
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19608
19650
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19609
19651
|
*
|
|
19652
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19653
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19654
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19655
|
+
* detector.
|
|
19656
|
+
*
|
|
19657
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19658
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19659
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19660
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19661
|
+
* could not name.
|
|
19662
|
+
*
|
|
19610
19663
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19611
19664
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19612
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19613
|
-
* check silently readmits every source added after it was
|
|
19665
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19666
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19667
|
+
* written.
|
|
19614
19668
|
*/
|
|
19615
19669
|
var TrackSourceSchema = _enum([
|
|
19616
19670
|
"pipeline",
|
|
19671
|
+
"onboard",
|
|
19617
19672
|
"sensor",
|
|
19618
19673
|
"audio"
|
|
19619
19674
|
]);
|
|
@@ -20996,6 +21051,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
|
|
|
20996
21051
|
* solid is this track", cheaper than re-deriving it from a trajectory. */
|
|
20997
21052
|
framesMatched: number().int()
|
|
20998
21053
|
})).readonly() });
|
|
21054
|
+
/**
|
|
21055
|
+
* The long-term series a camera produces. A closed union so a typo cannot
|
|
21056
|
+
* invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
|
|
21057
|
+
* is an alias of this, not a second list.
|
|
21058
|
+
*/
|
|
21059
|
+
var AnalyticsLtsSeriesSchema = _enum([
|
|
21060
|
+
"motion",
|
|
21061
|
+
"audio-dbfs",
|
|
21062
|
+
"battery",
|
|
21063
|
+
"occupancy"
|
|
21064
|
+
]);
|
|
21065
|
+
/**
|
|
21066
|
+
* One closed 5-minute bucket of a long-term series.
|
|
21067
|
+
*
|
|
21068
|
+
* `samples` is how many readings the bucket folded — it is the ACTIVITY for a
|
|
21069
|
+
* series like `motion`, and the confidence for one like `occupancy`. A bucket
|
|
21070
|
+
* that exists at all was measured; a bucket that is absent was not, which is a
|
|
21071
|
+
* different claim from zero and the reason this is a sparse series.
|
|
21072
|
+
*/
|
|
21073
|
+
var LtsBucketSchema = object({
|
|
21074
|
+
scope: string(),
|
|
21075
|
+
bucketStart: number().int(),
|
|
21076
|
+
samples: number().int().nonnegative(),
|
|
21077
|
+
sum: number(),
|
|
21078
|
+
min: number(),
|
|
21079
|
+
max: number()
|
|
21080
|
+
});
|
|
20999
21081
|
DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
|
|
21000
21082
|
deviceId: number(),
|
|
21001
21083
|
trackId: string()
|
|
@@ -21042,6 +21124,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21042
21124
|
kinds: array(string()).optional(),
|
|
21043
21125
|
limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
|
|
21044
21126
|
}), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
|
|
21127
|
+
deviceId: number(),
|
|
21128
|
+
series: AnalyticsLtsSeriesSchema,
|
|
21129
|
+
/** Omit for EVERY scope of this series in the range. */
|
|
21130
|
+
scope: string().optional(),
|
|
21131
|
+
from: number(),
|
|
21132
|
+
to: number(),
|
|
21133
|
+
limit: number().int().positive().optional()
|
|
21134
|
+
}), array(LtsBucketSchema).readonly()), method(object({
|
|
21045
21135
|
deviceId: number(),
|
|
21046
21136
|
since: number(),
|
|
21047
21137
|
until: number(),
|
|
@@ -21660,6 +21750,40 @@ var MotionSourceEnum = _enum([
|
|
|
21660
21750
|
*/
|
|
21661
21751
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21662
21752
|
/**
|
|
21753
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21754
|
+
*
|
|
21755
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21756
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21757
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21758
|
+
* track, the overlay and the debug row.
|
|
21759
|
+
*
|
|
21760
|
+
* ## Why one, and why it is still an array
|
|
21761
|
+
*
|
|
21762
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21763
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21764
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21765
|
+
* detectors disagree about the same box by construction — which is the
|
|
21766
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21767
|
+
*
|
|
21768
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21769
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21770
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21771
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21772
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21773
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21774
|
+
* rely on.
|
|
21775
|
+
*
|
|
21776
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21777
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21778
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21779
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21780
|
+
* suite caught it.
|
|
21781
|
+
*
|
|
21782
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21783
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21784
|
+
*/
|
|
21785
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21786
|
+
/**
|
|
21663
21787
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21664
21788
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
21665
21789
|
* cap implementation, tests) can reuse the type instead of redeclaring
|
|
@@ -21810,6 +21934,35 @@ var RunnerCameraConfigSchema = object({
|
|
|
21810
21934
|
* events; the orchestrator forwards to `reportMotion`.
|
|
21811
21935
|
*/
|
|
21812
21936
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
21937
|
+
/**
|
|
21938
|
+
* WHICH root detector runs for this camera. The detection counterpart of
|
|
21939
|
+
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
21940
|
+
* of sources the system understands, vendor-agnostic, owned here.
|
|
21941
|
+
*
|
|
21942
|
+
* - `pipeline` — this runner's own root step on decoded pixels (`steps`).
|
|
21943
|
+
* - `onboard` — the CAMERA's own detector, admitted only when it is named
|
|
21944
|
+
* here. Its boxes reach post-analysis on the same
|
|
21945
|
+
* `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
|
|
21946
|
+
* track gets the same tracker, the same overlay and the same detail
|
|
21947
|
+
* subtree (face / plate / embedding).
|
|
21948
|
+
*
|
|
21949
|
+
* `['onboard']` alone is the REPLACEMENT: this runner's root step does not
|
|
21950
|
+
* run, and that is where a camera with a usable onboard detector buys back
|
|
21951
|
+
* its share of the accelerator. It saves the root inference, not the decode
|
|
21952
|
+
* — the detail subtree still needs pixels to cut crops from.
|
|
21953
|
+
*
|
|
21954
|
+
* A camera whose onboard detections carry no geometry cannot serve as a root
|
|
21955
|
+
* step at all (there is nothing to track), and the cap that knows this says
|
|
21956
|
+
* so on `native-object-detection.getOptions().geometry`. On Reolink that is
|
|
21957
|
+
* every battery camera: the boxes ride a sub-stream a battery camera never
|
|
21958
|
+
* attaches, so such a camera stays on `['pipeline']` and its onboard AI is
|
|
21959
|
+
* worth exactly what it already is — a wake signal with a class.
|
|
21960
|
+
*
|
|
21961
|
+
* Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
|
|
21962
|
+
* vendor never turns a detector on for the operator, and neither does a
|
|
21963
|
+
* default.
|
|
21964
|
+
*/
|
|
21965
|
+
detectionSources: DetectionSourcesSchema.default(["pipeline"]),
|
|
21813
21966
|
pipelineEnabled: boolean().default(true),
|
|
21814
21967
|
/** Ordered tree of video steps. Absent → runner skips video detection. */
|
|
21815
21968
|
steps: array(PipelineStepInputSchema).readonly().optional(),
|
|
@@ -21991,7 +22144,47 @@ var RunnerLocalMetricsSchema = object({
|
|
|
21991
22144
|
queueDepth: number(),
|
|
21992
22145
|
frameLazy: FrameLazyMetricsSchema.optional()
|
|
21993
22146
|
});
|
|
22147
|
+
/**
|
|
22148
|
+
* Pipeline Runner capability — runtime detection workhorse.
|
|
22149
|
+
*
|
|
22150
|
+
* One instance per node. Receives camera assignments from
|
|
22151
|
+
* `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
|
|
22152
|
+
* decoded frames, drains motion + detection queues, calls the local
|
|
22153
|
+
* `motion-detection` and `pipeline-executor` capabilities, and emits typed
|
|
22154
|
+
* `pipeline.inference-result` and `detection.motion-analysis` events on
|
|
22155
|
+
* the bus.
|
|
22156
|
+
*
|
|
22157
|
+
* Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
|
|
22158
|
+
* runner has zero knowledge of other agents, no global state, and never
|
|
22159
|
+
* makes assignment decisions itself.
|
|
22160
|
+
*/
|
|
22161
|
+
/**
|
|
22162
|
+
* Why a runner declined to look at a camera out of band. Named rather than a
|
|
22163
|
+
* bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
|
|
22164
|
+
* already mid-session and one already bursting are four different facts, and a
|
|
22165
|
+
* caller told only "no" cannot tell a protection from a bug.
|
|
22166
|
+
*/
|
|
22167
|
+
var OccupancyBurstRefusalSchema = _enum([
|
|
22168
|
+
"not-attached",
|
|
22169
|
+
"battery-asleep",
|
|
22170
|
+
"not-watching",
|
|
22171
|
+
"already-bursting"
|
|
22172
|
+
]);
|
|
21994
22173
|
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({
|
|
22174
|
+
deviceId: number(),
|
|
22175
|
+
/** How many frames to collect. The caller sizes this against what its
|
|
22176
|
+
* own confirmation needs; the runner clamps it to the field's range. */
|
|
22177
|
+
frames: number().int().positive().optional(),
|
|
22178
|
+
/** Why, for the log. A burst nobody can attribute is a cost nobody can
|
|
22179
|
+
* defend — the periodic one at least has a timer to point at. */
|
|
22180
|
+
reason: string()
|
|
22181
|
+
}), object({
|
|
22182
|
+
started: boolean(),
|
|
22183
|
+
refusedBecause: OccupancyBurstRefusalSchema.optional()
|
|
22184
|
+
}), {
|
|
22185
|
+
auth: "admin",
|
|
22186
|
+
kind: "mutation"
|
|
22187
|
+
}), method(object({
|
|
21995
22188
|
handle: FrameHandleSchema,
|
|
21996
22189
|
bbox: NativeCropBboxSchema,
|
|
21997
22190
|
maxWidth: number().int().positive().optional(),
|
|
@@ -27460,7 +27653,7 @@ var NativeDetectionSchema = object({
|
|
|
27460
27653
|
/** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
|
|
27461
27654
|
confidence: number().min(0).max(1).optional()
|
|
27462
27655
|
});
|
|
27463
|
-
object({
|
|
27656
|
+
var NativeObjectDetectionStatusSchema = object({
|
|
27464
27657
|
/**
|
|
27465
27658
|
* Last observed instance per class. Missing entries mean the class
|
|
27466
27659
|
* is supported but nothing has been seen since the provider started.
|
|
@@ -27477,14 +27670,56 @@ object({
|
|
|
27477
27670
|
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27478
27671
|
/**
|
|
27479
27672
|
* Whether forwarding of onboard AI detections is enabled for this device.
|
|
27480
|
-
*
|
|
27481
|
-
*
|
|
27673
|
+
*
|
|
27674
|
+
* Cold-start OFF on every camera. A vendor does not decide which detector a
|
|
27675
|
+
* camera runs — that is the operator's choice, and it is made where every
|
|
27676
|
+
* other detection choice is made. `geometry` on
|
|
27677
|
+
* {@link NativeObjectDetectionOptionsSchema} is how the form says what the
|
|
27678
|
+
* choice would buy this particular camera.
|
|
27482
27679
|
*/
|
|
27483
27680
|
enabled: boolean()
|
|
27484
|
-
})
|
|
27681
|
+
});
|
|
27682
|
+
/**
|
|
27683
|
+
* WHEN a camera's onboard detections carry geometry.
|
|
27684
|
+
*
|
|
27685
|
+
* - `boxed` — always. The provider holds a standing channel for the boxes, so
|
|
27686
|
+
* a detection is a trackable subject whenever the camera sees one.
|
|
27687
|
+
* - `while-streaming` — only while some stream of this camera is already open.
|
|
27688
|
+
* The boxes ride the video's own side-channel rather than a feed of their
|
|
27689
|
+
* own, so they cost nothing and they exist only when something is pulling.
|
|
27690
|
+
* On Reolink this is every BATTERY camera: a persistent second feed is real
|
|
27691
|
+
* radio drain, but a camera that is awake is awake precisely because
|
|
27692
|
+
* something is in front of it, and its stream is already being pulled.
|
|
27693
|
+
* - `flag-only` — never. The firmware ships the class and nothing else; the
|
|
27694
|
+
* pipeline needs geometry to make a subject, so such a push reaches the
|
|
27695
|
+
* tracker as motion and no further.
|
|
27696
|
+
*
|
|
27697
|
+
* Reported and not inferred, because the operator's question in front of the
|
|
27698
|
+
* picker is "what do I get", and these are three different answers (D14: the
|
|
27699
|
+
* derived form is only as honest as `getOptions`).
|
|
27700
|
+
*/
|
|
27701
|
+
var NativeObjectGeometryEnum = _enum([
|
|
27702
|
+
"boxed",
|
|
27703
|
+
"while-streaming",
|
|
27704
|
+
"flag-only"
|
|
27705
|
+
]);
|
|
27706
|
+
var NativeObjectDetectionOptionsSchema = object({
|
|
27707
|
+
/** Classes this firmware can detect — the same list the status reports. */
|
|
27708
|
+
supportedClasses: array(NativeObjectClassEnum).readonly(),
|
|
27709
|
+
/** What a detection from this camera carries. */
|
|
27710
|
+
geometry: NativeObjectGeometryEnum
|
|
27711
|
+
});
|
|
27712
|
+
var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
|
|
27713
|
+
NativeObjectDetectionStatusSchema.extend({
|
|
27485
27714
|
/** Required by createRuntimeStateBridge — epoch ms of last refresh. */
|
|
27486
27715
|
lastFetchedAt: number() });
|
|
27487
|
-
DeviceType.Camera, method(object({
|
|
27716
|
+
DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
|
|
27717
|
+
deviceId: number(),
|
|
27718
|
+
settings: NativeObjectDetectionSettingsPatchSchema
|
|
27719
|
+
}), _void(), {
|
|
27720
|
+
kind: "mutation",
|
|
27721
|
+
auth: "admin"
|
|
27722
|
+
}), method(object({
|
|
27488
27723
|
deviceId: number(),
|
|
27489
27724
|
enabled: boolean()
|
|
27490
27725
|
}), _void(), {
|
|
@@ -31283,7 +31518,28 @@ var PerScopeBreakdownSchema = object({
|
|
|
31283
31518
|
/** Total tracked objects in this scope (frame / zone / unzoned). */
|
|
31284
31519
|
totalObjects: number().int().nonnegative(),
|
|
31285
31520
|
/** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
|
|
31286
|
-
byClass: record(string(), number().int().nonnegative())
|
|
31521
|
+
byClass: record(string(), number().int().nonnegative()),
|
|
31522
|
+
/**
|
|
31523
|
+
* Of `totalObjects`, how many are STANDING — objects the census holds,
|
|
31524
|
+
* present but not going anywhere (a parked car, a bin, a statue).
|
|
31525
|
+
*
|
|
31526
|
+
* The operator's question about a scene has two halves and they answer
|
|
31527
|
+
* different things: "what is parked here" is stable for hours and must not
|
|
31528
|
+
* flap, while "who is walking through" is the thing an alert is about. One
|
|
31529
|
+
* number could only serve one of them, and `totalObjects` served the first
|
|
31530
|
+
* badly — a passer-by moved it and every occupancy rule saw a change.
|
|
31531
|
+
*
|
|
31532
|
+
* `standing + transient === totalObjects`, always. The total keeps its old
|
|
31533
|
+
* meaning exactly, so no rule written against it changes behaviour.
|
|
31534
|
+
*
|
|
31535
|
+
* ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
|
|
31536
|
+
* this field cannot say, and a reader that folds absence in as 0 reports "no
|
|
31537
|
+
* parked objects here" about a camera whose lot is full.
|
|
31538
|
+
*/
|
|
31539
|
+
standingObjects: number().int().nonnegative().optional(),
|
|
31540
|
+
/** Of `totalObjects`, how many are passing through. See `standingObjects` —
|
|
31541
|
+
* same absence rule. */
|
|
31542
|
+
transientObjects: number().int().nonnegative().optional()
|
|
31287
31543
|
});
|
|
31288
31544
|
var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
|
|
31289
31545
|
zoneId: string(),
|
|
@@ -34222,12 +34478,24 @@ Object.freeze({
|
|
|
34222
34478
|
addonId: null,
|
|
34223
34479
|
access: "create"
|
|
34224
34480
|
},
|
|
34481
|
+
"nativeObjectDetection.getOptions": {
|
|
34482
|
+
capName: "native-object-detection",
|
|
34483
|
+
capScope: "device",
|
|
34484
|
+
addonId: null,
|
|
34485
|
+
access: "view"
|
|
34486
|
+
},
|
|
34225
34487
|
"nativeObjectDetection.setEnabled": {
|
|
34226
34488
|
capName: "native-object-detection",
|
|
34227
34489
|
capScope: "device",
|
|
34228
34490
|
addonId: null,
|
|
34229
34491
|
access: "create"
|
|
34230
34492
|
},
|
|
34493
|
+
"nativeObjectDetection.setSettings": {
|
|
34494
|
+
capName: "native-object-detection",
|
|
34495
|
+
capScope: "device",
|
|
34496
|
+
addonId: null,
|
|
34497
|
+
access: "create"
|
|
34498
|
+
},
|
|
34231
34499
|
"navigation.getFeatures": {
|
|
34232
34500
|
capName: "navigation",
|
|
34233
34501
|
capScope: "device",
|
|
@@ -34492,6 +34760,12 @@ Object.freeze({
|
|
|
34492
34760
|
addonId: null,
|
|
34493
34761
|
access: "view"
|
|
34494
34762
|
},
|
|
34763
|
+
"notificationRules.getClipRetentionAsks": {
|
|
34764
|
+
capName: "notification-rules",
|
|
34765
|
+
capScope: "system",
|
|
34766
|
+
addonId: null,
|
|
34767
|
+
access: "view"
|
|
34768
|
+
},
|
|
34495
34769
|
"notificationRules.getConditionCatalog": {
|
|
34496
34770
|
capName: "notification-rules",
|
|
34497
34771
|
capScope: "system",
|
|
@@ -35002,6 +35276,12 @@ Object.freeze({
|
|
|
35002
35276
|
addonId: null,
|
|
35003
35277
|
access: "create"
|
|
35004
35278
|
},
|
|
35279
|
+
"pipelineAnalytics.readLongTermSeries": {
|
|
35280
|
+
capName: "pipeline-analytics",
|
|
35281
|
+
capScope: "device",
|
|
35282
|
+
addonId: null,
|
|
35283
|
+
access: "view"
|
|
35284
|
+
},
|
|
35005
35285
|
"pipelineAnalytics.rebuildObjectEmbeddings": {
|
|
35006
35286
|
capName: "pipeline-analytics",
|
|
35007
35287
|
capScope: "device",
|
|
@@ -35674,6 +35954,12 @@ Object.freeze({
|
|
|
35674
35954
|
addonId: null,
|
|
35675
35955
|
access: "create"
|
|
35676
35956
|
},
|
|
35957
|
+
"pipelineRunner.requestOccupancyBurst": {
|
|
35958
|
+
capName: "pipeline-runner",
|
|
35959
|
+
capScope: "system",
|
|
35960
|
+
addonId: null,
|
|
35961
|
+
access: "create"
|
|
35962
|
+
},
|
|
35677
35963
|
"pipelineRunner.runDetailSubtree": {
|
|
35678
35964
|
capName: "pipeline-runner",
|
|
35679
35965
|
capScope: "system",
|
|
@@ -38454,11 +38740,21 @@ Object.freeze({
|
|
|
38454
38740
|
form: "single",
|
|
38455
38741
|
optional: false
|
|
38456
38742
|
}],
|
|
38743
|
+
"nativeObjectDetection.getOptions": [{
|
|
38744
|
+
name: "deviceId",
|
|
38745
|
+
form: "single",
|
|
38746
|
+
optional: false
|
|
38747
|
+
}],
|
|
38457
38748
|
"nativeObjectDetection.setEnabled": [{
|
|
38458
38749
|
name: "deviceId",
|
|
38459
38750
|
form: "single",
|
|
38460
38751
|
optional: false
|
|
38461
38752
|
}],
|
|
38753
|
+
"nativeObjectDetection.setSettings": [{
|
|
38754
|
+
name: "deviceId",
|
|
38755
|
+
form: "single",
|
|
38756
|
+
optional: false
|
|
38757
|
+
}],
|
|
38462
38758
|
"navigation.getFeatures": [{
|
|
38463
38759
|
name: "deviceId",
|
|
38464
38760
|
form: "single",
|
|
@@ -38808,6 +39104,11 @@ Object.freeze({
|
|
|
38808
39104
|
form: "single",
|
|
38809
39105
|
optional: false
|
|
38810
39106
|
}],
|
|
39107
|
+
"pipelineAnalytics.readLongTermSeries": [{
|
|
39108
|
+
name: "deviceId",
|
|
39109
|
+
form: "single",
|
|
39110
|
+
optional: false
|
|
39111
|
+
}],
|
|
38811
39112
|
"pipelineAnalytics.rebuildObjectEmbeddings": [{
|
|
38812
39113
|
name: "deviceId",
|
|
38813
39114
|
form: "single",
|
|
@@ -38998,6 +39299,11 @@ Object.freeze({
|
|
|
38998
39299
|
form: "single",
|
|
38999
39300
|
optional: false
|
|
39000
39301
|
}],
|
|
39302
|
+
"pipelineRunner.requestOccupancyBurst": [{
|
|
39303
|
+
name: "deviceId",
|
|
39304
|
+
form: "single",
|
|
39305
|
+
optional: false
|
|
39306
|
+
}],
|
|
39001
39307
|
"pipelineRunner.runDetailSubtree": [{
|
|
39002
39308
|
name: "deviceId",
|
|
39003
39309
|
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-xG0NvnSj.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-i_0AIEsA.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.133",
|
|
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": "*",
|