@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.
Files changed (23) hide show
  1. package/dist/{MotionZonesSettings-Bq4Rn5EJ.mjs → MotionZonesSettings-BJdGAJWf.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BoIP6Dhq.mjs → PrivacyMaskSettings-DDhVbn_Y.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-C8M6rkY7.mjs → SceneMonitorEditor-FI63V5ql.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. 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
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DIGAz53v.mjs +26 -0
  7. package/dist/addon-model-studio.css +1 -1
  8. package/dist/{hostInit-DiQ1ZL5R.mjs → hostInit-C1cpN2Dj.mjs} +3 -3
  9. package/dist/model-studio.addon.js +338 -32
  10. package/dist/model-studio.addon.mjs +338 -32
  11. package/dist/{player-overlays-CNZeJiF2.mjs → player-overlays-bZG9h6O2.mjs} +1 -1
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{responsive-DuDd1AFK.mjs → responsive-DT6S57fY.mjs} +1 -1
  14. package/dist/{square-DtHp8pdo.mjs → square-CTAukwzX.mjs} +1 -1
  15. package/dist/{trash-2-B1QppmHH.mjs → trash-2-C08NQ081.mjs} +1 -1
  16. package/dist/{use-device-snapshot-Ddf11PHt.mjs → use-device-snapshot-Be2Q6jle.mjs} +1 -1
  17. 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
  18. package/package.json +2 -2
  19. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D04vt1H4.mjs +0 -26
  20. package/python/__pycache__/convert.cpython-314.pyc +0 -0
  21. package/python/__pycache__/convert_lib.cpython-312.pyc +0 -0
  22. package/python/__pycache__/convert_lib.cpython-314.pyc +0 -0
  23. 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-DEuj7E3j.mjs
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) }), {
@@ -19628,13 +19670,26 @@ var TrackAudioLabelSchema = object({
19628
19670
  * - `audio` — an audio event on the camera itself that was anomalous for
19629
19671
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19630
19672
  *
19673
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19674
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19675
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19676
+ * detector.
19677
+ *
19678
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19679
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19680
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19681
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19682
+ * could not name.
19683
+ *
19631
19684
  * The spatial subsystems (tracker association, occupancy count, re-id /
19632
19685
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19633
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19634
- * check silently readmits every source added after it was written.
19686
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19687
+ * `!== 'sensor'` check silently readmits every source added after it was
19688
+ * written.
19635
19689
  */
19636
19690
  var TrackSourceSchema = _enum([
19637
19691
  "pipeline",
19692
+ "onboard",
19638
19693
  "sensor",
19639
19694
  "audio"
19640
19695
  ]);
@@ -21017,6 +21072,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
21017
21072
  * solid is this track", cheaper than re-deriving it from a trajectory. */
21018
21073
  framesMatched: number().int()
21019
21074
  })).readonly() });
21075
+ /**
21076
+ * The long-term series a camera produces. A closed union so a typo cannot
21077
+ * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
21078
+ * is an alias of this, not a second list.
21079
+ */
21080
+ var AnalyticsLtsSeriesSchema = _enum([
21081
+ "motion",
21082
+ "audio-dbfs",
21083
+ "battery",
21084
+ "occupancy"
21085
+ ]);
21086
+ /**
21087
+ * One closed 5-minute bucket of a long-term series.
21088
+ *
21089
+ * `samples` is how many readings the bucket folded — it is the ACTIVITY for a
21090
+ * series like `motion`, and the confidence for one like `occupancy`. A bucket
21091
+ * that exists at all was measured; a bucket that is absent was not, which is a
21092
+ * different claim from zero and the reason this is a sparse series.
21093
+ */
21094
+ var LtsBucketSchema = object({
21095
+ scope: string(),
21096
+ bucketStart: number().int(),
21097
+ samples: number().int().nonnegative(),
21098
+ sum: number(),
21099
+ min: number(),
21100
+ max: number()
21101
+ });
21020
21102
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
21021
21103
  deviceId: number(),
21022
21104
  trackId: string()
@@ -21063,6 +21145,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
21063
21145
  kinds: array(string()).optional(),
21064
21146
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
21065
21147
  }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
21148
+ deviceId: number(),
21149
+ series: AnalyticsLtsSeriesSchema,
21150
+ /** Omit for EVERY scope of this series in the range. */
21151
+ scope: string().optional(),
21152
+ from: number(),
21153
+ to: number(),
21154
+ limit: number().int().positive().optional()
21155
+ }), array(LtsBucketSchema).readonly()), method(object({
21066
21156
  deviceId: number(),
21067
21157
  since: number(),
21068
21158
  until: number(),
@@ -21681,6 +21771,40 @@ var MotionSourceEnum = _enum([
21681
21771
  */
21682
21772
  var MotionSourcesSchema = array(MotionSourceEnum);
21683
21773
  /**
21774
+ * Which root detector a camera runs — EXACTLY ONE.
21775
+ *
21776
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21777
+ * with (`DetectionSource`) rather than a second spelling of the same two
21778
+ * ideas: the value an operator picks here is the value that comes back on the
21779
+ * track, the overlay and the debug row.
21780
+ *
21781
+ * ## Why one, and why it is still an array
21782
+ *
21783
+ * Two roots on one camera is a capability nobody asked for and the operator has
21784
+ * since ruled out. It was never free: both planes feed the SAME per-device
21785
+ * stationary registry, both can promote the same parked object, and the two
21786
+ * detectors disagree about the same box by construction — which is the
21787
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21788
+ *
21789
+ * The ARRAY shape survives because the stored settings and the attach payload
21790
+ * already speak it on every camera of every fleet, and a cap input that
21791
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21792
+ * in the one direction that costs an operator their cameras. So the wire stays
21793
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21794
+ * element rather than refused, and `max(1)` is what every consumer can then
21795
+ * rely on.
21796
+ *
21797
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21798
+ * a camera an operator left with no root detector — and `planDetectionSources`
21799
+ * has always said so: inventing a root for them is how a default acts without
21800
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21801
+ * suite caught it.
21802
+ *
21803
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21804
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21805
+ */
21806
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21807
+ /**
21684
21808
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21685
21809
  * so cap-side consumers (the orchestrator forward, the runner addon's
21686
21810
  * cap implementation, tests) can reuse the type instead of redeclaring
@@ -21831,6 +21955,35 @@ var RunnerCameraConfigSchema = object({
21831
21955
  * events; the orchestrator forwards to `reportMotion`.
21832
21956
  */
21833
21957
  motionSources: MotionSourcesSchema.default(["analyzer"]),
21958
+ /**
21959
+ * WHICH root detector runs for this camera. The detection counterpart of
21960
+ * {@link motionSources}, same shape and same discipline: a per-camera list
21961
+ * of sources the system understands, vendor-agnostic, owned here.
21962
+ *
21963
+ * - `pipeline` — this runner's own root step on decoded pixels (`steps`).
21964
+ * - `onboard` — the CAMERA's own detector, admitted only when it is named
21965
+ * here. Its boxes reach post-analysis on the same
21966
+ * `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
21967
+ * track gets the same tracker, the same overlay and the same detail
21968
+ * subtree (face / plate / embedding).
21969
+ *
21970
+ * `['onboard']` alone is the REPLACEMENT: this runner's root step does not
21971
+ * run, and that is where a camera with a usable onboard detector buys back
21972
+ * its share of the accelerator. It saves the root inference, not the decode
21973
+ * — the detail subtree still needs pixels to cut crops from.
21974
+ *
21975
+ * A camera whose onboard detections carry no geometry cannot serve as a root
21976
+ * step at all (there is nothing to track), and the cap that knows this says
21977
+ * so on `native-object-detection.getOptions().geometry`. On Reolink that is
21978
+ * every battery camera: the boxes ride a sub-stream a battery camera never
21979
+ * attaches, so such a camera stays on `['pipeline']` and its onboard AI is
21980
+ * worth exactly what it already is — a wake signal with a class.
21981
+ *
21982
+ * Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
21983
+ * vendor never turns a detector on for the operator, and neither does a
21984
+ * default.
21985
+ */
21986
+ detectionSources: DetectionSourcesSchema.default(["pipeline"]),
21834
21987
  pipelineEnabled: boolean().default(true),
21835
21988
  /** Ordered tree of video steps. Absent → runner skips video detection. */
21836
21989
  steps: array(PipelineStepInputSchema).readonly().optional(),
@@ -22012,7 +22165,47 @@ var RunnerLocalMetricsSchema = object({
22012
22165
  queueDepth: number(),
22013
22166
  frameLazy: FrameLazyMetricsSchema.optional()
22014
22167
  });
22168
+ /**
22169
+ * Pipeline Runner capability — runtime detection workhorse.
22170
+ *
22171
+ * One instance per node. Receives camera assignments from
22172
+ * `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
22173
+ * decoded frames, drains motion + detection queues, calls the local
22174
+ * `motion-detection` and `pipeline-executor` capabilities, and emits typed
22175
+ * `pipeline.inference-result` and `detection.motion-analysis` events on
22176
+ * the bus.
22177
+ *
22178
+ * Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
22179
+ * runner has zero knowledge of other agents, no global state, and never
22180
+ * makes assignment decisions itself.
22181
+ */
22182
+ /**
22183
+ * Why a runner declined to look at a camera out of band. Named rather than a
22184
+ * bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
22185
+ * already mid-session and one already bursting are four different facts, and a
22186
+ * caller told only "no" cannot tell a protection from a bug.
22187
+ */
22188
+ var OccupancyBurstRefusalSchema = _enum([
22189
+ "not-attached",
22190
+ "battery-asleep",
22191
+ "not-watching",
22192
+ "already-bursting"
22193
+ ]);
22015
22194
  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({
22195
+ deviceId: number(),
22196
+ /** How many frames to collect. The caller sizes this against what its
22197
+ * own confirmation needs; the runner clamps it to the field's range. */
22198
+ frames: number().int().positive().optional(),
22199
+ /** Why, for the log. A burst nobody can attribute is a cost nobody can
22200
+ * defend — the periodic one at least has a timer to point at. */
22201
+ reason: string()
22202
+ }), object({
22203
+ started: boolean(),
22204
+ refusedBecause: OccupancyBurstRefusalSchema.optional()
22205
+ }), {
22206
+ auth: "admin",
22207
+ kind: "mutation"
22208
+ }), method(object({
22016
22209
  handle: FrameHandleSchema,
22017
22210
  bbox: NativeCropBboxSchema,
22018
22211
  maxWidth: number().int().positive().optional(),
@@ -27481,7 +27674,7 @@ var NativeDetectionSchema = object({
27481
27674
  /** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
27482
27675
  confidence: number().min(0).max(1).optional()
27483
27676
  });
27484
- object({
27677
+ var NativeObjectDetectionStatusSchema = object({
27485
27678
  /**
27486
27679
  * Last observed instance per class. Missing entries mean the class
27487
27680
  * is supported but nothing has been seen since the provider started.
@@ -27498,14 +27691,56 @@ object({
27498
27691
  supportedClasses: array(NativeObjectClassEnum).readonly(),
27499
27692
  /**
27500
27693
  * Whether forwarding of onboard AI detections is enabled for this device.
27501
- * Default FALSE (opt-in, cold-start) — onboard AI pushes are noisy/sparse and
27502
- * churn the tracker, so forwarding stays off until the operator enables it.
27694
+ *
27695
+ * Cold-start OFF on every camera. A vendor does not decide which detector a
27696
+ * camera runs — that is the operator's choice, and it is made where every
27697
+ * other detection choice is made. `geometry` on
27698
+ * {@link NativeObjectDetectionOptionsSchema} is how the form says what the
27699
+ * choice would buy this particular camera.
27503
27700
  */
27504
27701
  enabled: boolean()
27505
- }).extend({
27702
+ });
27703
+ /**
27704
+ * WHEN a camera's onboard detections carry geometry.
27705
+ *
27706
+ * - `boxed` — always. The provider holds a standing channel for the boxes, so
27707
+ * a detection is a trackable subject whenever the camera sees one.
27708
+ * - `while-streaming` — only while some stream of this camera is already open.
27709
+ * The boxes ride the video's own side-channel rather than a feed of their
27710
+ * own, so they cost nothing and they exist only when something is pulling.
27711
+ * On Reolink this is every BATTERY camera: a persistent second feed is real
27712
+ * radio drain, but a camera that is awake is awake precisely because
27713
+ * something is in front of it, and its stream is already being pulled.
27714
+ * - `flag-only` — never. The firmware ships the class and nothing else; the
27715
+ * pipeline needs geometry to make a subject, so such a push reaches the
27716
+ * tracker as motion and no further.
27717
+ *
27718
+ * Reported and not inferred, because the operator's question in front of the
27719
+ * picker is "what do I get", and these are three different answers (D14: the
27720
+ * derived form is only as honest as `getOptions`).
27721
+ */
27722
+ var NativeObjectGeometryEnum = _enum([
27723
+ "boxed",
27724
+ "while-streaming",
27725
+ "flag-only"
27726
+ ]);
27727
+ var NativeObjectDetectionOptionsSchema = object({
27728
+ /** Classes this firmware can detect — the same list the status reports. */
27729
+ supportedClasses: array(NativeObjectClassEnum).readonly(),
27730
+ /** What a detection from this camera carries. */
27731
+ geometry: NativeObjectGeometryEnum
27732
+ });
27733
+ var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
27734
+ NativeObjectDetectionStatusSchema.extend({
27506
27735
  /** Required by createRuntimeStateBridge — epoch ms of last refresh. */
27507
27736
  lastFetchedAt: number() });
27508
- DeviceType.Camera, method(object({
27737
+ DeviceType.Camera, method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema), method(object({
27738
+ deviceId: number(),
27739
+ settings: NativeObjectDetectionSettingsPatchSchema
27740
+ }), _void(), {
27741
+ kind: "mutation",
27742
+ auth: "admin"
27743
+ }), method(object({
27509
27744
  deviceId: number(),
27510
27745
  enabled: boolean()
27511
27746
  }), _void(), {
@@ -31304,7 +31539,28 @@ var PerScopeBreakdownSchema = object({
31304
31539
  /** Total tracked objects in this scope (frame / zone / unzoned). */
31305
31540
  totalObjects: number().int().nonnegative(),
31306
31541
  /** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
31307
- byClass: record(string(), number().int().nonnegative())
31542
+ byClass: record(string(), number().int().nonnegative()),
31543
+ /**
31544
+ * Of `totalObjects`, how many are STANDING — objects the census holds,
31545
+ * present but not going anywhere (a parked car, a bin, a statue).
31546
+ *
31547
+ * The operator's question about a scene has two halves and they answer
31548
+ * different things: "what is parked here" is stable for hours and must not
31549
+ * flap, while "who is walking through" is the thing an alert is about. One
31550
+ * number could only serve one of them, and `totalObjects` served the first
31551
+ * badly — a passer-by moved it and every occupancy rule saw a change.
31552
+ *
31553
+ * `standing + transient === totalObjects`, always. The total keeps its old
31554
+ * meaning exactly, so no rule written against it changes behaviour.
31555
+ *
31556
+ * ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
31557
+ * this field cannot say, and a reader that folds absence in as 0 reports "no
31558
+ * parked objects here" about a camera whose lot is full.
31559
+ */
31560
+ standingObjects: number().int().nonnegative().optional(),
31561
+ /** Of `totalObjects`, how many are passing through. See `standingObjects` —
31562
+ * same absence rule. */
31563
+ transientObjects: number().int().nonnegative().optional()
31308
31564
  });
31309
31565
  var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
31310
31566
  zoneId: string(),
@@ -34243,12 +34499,24 @@ Object.freeze({
34243
34499
  addonId: null,
34244
34500
  access: "create"
34245
34501
  },
34502
+ "nativeObjectDetection.getOptions": {
34503
+ capName: "native-object-detection",
34504
+ capScope: "device",
34505
+ addonId: null,
34506
+ access: "view"
34507
+ },
34246
34508
  "nativeObjectDetection.setEnabled": {
34247
34509
  capName: "native-object-detection",
34248
34510
  capScope: "device",
34249
34511
  addonId: null,
34250
34512
  access: "create"
34251
34513
  },
34514
+ "nativeObjectDetection.setSettings": {
34515
+ capName: "native-object-detection",
34516
+ capScope: "device",
34517
+ addonId: null,
34518
+ access: "create"
34519
+ },
34252
34520
  "navigation.getFeatures": {
34253
34521
  capName: "navigation",
34254
34522
  capScope: "device",
@@ -34513,6 +34781,12 @@ Object.freeze({
34513
34781
  addonId: null,
34514
34782
  access: "view"
34515
34783
  },
34784
+ "notificationRules.getClipRetentionAsks": {
34785
+ capName: "notification-rules",
34786
+ capScope: "system",
34787
+ addonId: null,
34788
+ access: "view"
34789
+ },
34516
34790
  "notificationRules.getConditionCatalog": {
34517
34791
  capName: "notification-rules",
34518
34792
  capScope: "system",
@@ -35023,6 +35297,12 @@ Object.freeze({
35023
35297
  addonId: null,
35024
35298
  access: "create"
35025
35299
  },
35300
+ "pipelineAnalytics.readLongTermSeries": {
35301
+ capName: "pipeline-analytics",
35302
+ capScope: "device",
35303
+ addonId: null,
35304
+ access: "view"
35305
+ },
35026
35306
  "pipelineAnalytics.rebuildObjectEmbeddings": {
35027
35307
  capName: "pipeline-analytics",
35028
35308
  capScope: "device",
@@ -35695,6 +35975,12 @@ Object.freeze({
35695
35975
  addonId: null,
35696
35976
  access: "create"
35697
35977
  },
35978
+ "pipelineRunner.requestOccupancyBurst": {
35979
+ capName: "pipeline-runner",
35980
+ capScope: "system",
35981
+ addonId: null,
35982
+ access: "create"
35983
+ },
35698
35984
  "pipelineRunner.runDetailSubtree": {
35699
35985
  capName: "pipeline-runner",
35700
35986
  capScope: "system",
@@ -38475,11 +38761,21 @@ Object.freeze({
38475
38761
  form: "single",
38476
38762
  optional: false
38477
38763
  }],
38764
+ "nativeObjectDetection.getOptions": [{
38765
+ name: "deviceId",
38766
+ form: "single",
38767
+ optional: false
38768
+ }],
38478
38769
  "nativeObjectDetection.setEnabled": [{
38479
38770
  name: "deviceId",
38480
38771
  form: "single",
38481
38772
  optional: false
38482
38773
  }],
38774
+ "nativeObjectDetection.setSettings": [{
38775
+ name: "deviceId",
38776
+ form: "single",
38777
+ optional: false
38778
+ }],
38483
38779
  "navigation.getFeatures": [{
38484
38780
  name: "deviceId",
38485
38781
  form: "single",
@@ -38829,6 +39125,11 @@ Object.freeze({
38829
39125
  form: "single",
38830
39126
  optional: false
38831
39127
  }],
39128
+ "pipelineAnalytics.readLongTermSeries": [{
39129
+ name: "deviceId",
39130
+ form: "single",
39131
+ optional: false
39132
+ }],
38832
39133
  "pipelineAnalytics.rebuildObjectEmbeddings": [{
38833
39134
  name: "deviceId",
38834
39135
  form: "single",
@@ -39019,6 +39320,11 @@ Object.freeze({
39019
39320
  form: "single",
39020
39321
  optional: false
39021
39322
  }],
39323
+ "pipelineRunner.requestOccupancyBurst": [{
39324
+ name: "deviceId",
39325
+ form: "single",
39326
+ optional: false
39327
+ }],
39022
39328
  "pipelineRunner.runDetailSubtree": [{
39023
39329
  name: "deviceId",
39024
39330
  form: "single",