@camstack/system 1.2.89 → 1.2.90
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/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +1 -1
- package/dist/builtins/storage-orchestrator/index.mjs +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +47 -3
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +46 -3
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-Dq0ebOuS.js → dist-CYqL8oZq.js} +230 -8
- package/dist/{dist-Bij6agsS.mjs → dist-DMhxx5Kr.mjs} +230 -8
- package/dist/index.js +2 -46
- package/dist/index.mjs +2 -46
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let zod = require("zod");
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -206,6 +206,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
206
206
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
207
207
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
208
208
|
/**
|
|
209
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
210
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
211
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
212
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
213
|
+
* from the placement candidate set for as long as it holds.
|
|
214
|
+
*
|
|
215
|
+
* This exists because the state was previously invisible: little-unraid
|
|
216
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
217
|
+
* and nothing in the system said so.
|
|
218
|
+
*
|
|
219
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
220
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
221
|
+
* serves it exactly as before.
|
|
222
|
+
*/
|
|
223
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
224
|
+
/**
|
|
225
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
226
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
227
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
228
|
+
* per camera.
|
|
229
|
+
*
|
|
230
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
231
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
232
|
+
* camera" produce byte-identical silence.
|
|
233
|
+
*/
|
|
234
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
235
|
+
/**
|
|
209
236
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
210
237
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
211
238
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -701,6 +728,12 @@ var WELL_KNOWN_TAB_MAP = Object.fromEntries([
|
|
|
701
728
|
icon: "shapes",
|
|
702
729
|
order: 38
|
|
703
730
|
},
|
|
731
|
+
{
|
|
732
|
+
id: "scenes",
|
|
733
|
+
label: "Scenes",
|
|
734
|
+
icon: "scan-eye",
|
|
735
|
+
order: 36
|
|
736
|
+
},
|
|
704
737
|
{
|
|
705
738
|
id: "analytics",
|
|
706
739
|
label: "Analytics",
|
|
@@ -12171,6 +12204,8 @@ var NcSystemEventKindSchema = zod.z.enum([
|
|
|
12171
12204
|
"stream-offline",
|
|
12172
12205
|
"node-online",
|
|
12173
12206
|
"node-offline",
|
|
12207
|
+
"node-inference-unavailable",
|
|
12208
|
+
"detection-blind",
|
|
12174
12209
|
"addon-update-available",
|
|
12175
12210
|
"server-update-available",
|
|
12176
12211
|
"alarm-triggered",
|
|
@@ -12955,7 +12990,50 @@ var NcRuleInputSchema = zod.z.object({
|
|
|
12955
12990
|
* tests every zone the track visited and a `crossing` condition can no longer
|
|
12956
12991
|
* be satisfied, because a closed track carries no crossing.
|
|
12957
12992
|
*/
|
|
12958
|
-
waitForEnhancement: zod.z.boolean().optional()
|
|
12993
|
+
waitForEnhancement: zod.z.boolean().optional(),
|
|
12994
|
+
/**
|
|
12995
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
12996
|
+
*
|
|
12997
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
12998
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
12999
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
13000
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
13001
|
+
* notification with an updated one naming everybody. The push carries the
|
|
13002
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
13003
|
+
*
|
|
13004
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
13005
|
+
*
|
|
13006
|
+
* ### Why an idle cutoff and not a window
|
|
13007
|
+
*
|
|
13008
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
13009
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
13010
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
13011
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
13012
|
+
*
|
|
13013
|
+
* ### What it replaces
|
|
13014
|
+
*
|
|
13015
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
13016
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
13017
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
13018
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
13019
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
13020
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
13021
|
+
* throttled by the window its own first member spent.
|
|
13022
|
+
*
|
|
13023
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
13024
|
+
*
|
|
13025
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
13026
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
13027
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
13028
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
13029
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
13030
|
+
* path. Neither combination fires twice for one subject.
|
|
13031
|
+
*
|
|
13032
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
13033
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
13034
|
+
* field existed.
|
|
13035
|
+
*/
|
|
13036
|
+
groupIdleSec: zod.z.number().int().min(0).max(600).optional()
|
|
12959
13037
|
});
|
|
12960
13038
|
/**
|
|
12961
13039
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -13989,7 +14067,7 @@ var TrackEnvelopeSchema = zod.z.object({
|
|
|
13989
14067
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
13990
14068
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
13991
14069
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
13992
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
14070
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
13993
14071
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
13994
14072
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
13995
14073
|
* (`getObjectEvents` et al.).
|
|
@@ -14276,6 +14354,28 @@ var TrackSchema = zod.z.object({
|
|
|
14276
14354
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
14277
14355
|
*/
|
|
14278
14356
|
hasFace: zod.z.boolean().optional(),
|
|
14357
|
+
/**
|
|
14358
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
14359
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
14360
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
14361
|
+
*
|
|
14362
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
14363
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
14364
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
14365
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
14366
|
+
* stop. This is the composition note that makes the row true.
|
|
14367
|
+
*
|
|
14368
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
14369
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
14370
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
14371
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
14372
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
14373
|
+
*
|
|
14374
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
14375
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
14376
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
14377
|
+
*/
|
|
14378
|
+
hasRider: zod.z.boolean().optional(),
|
|
14279
14379
|
...TrackFlagFields,
|
|
14280
14380
|
...TrackRetrainFields
|
|
14281
14381
|
});
|
|
@@ -26547,9 +26647,33 @@ var recordingExportCapability = {
|
|
|
26547
26647
|
* settings-contribution methods. `status.kind:'push'` — the engine pushes on
|
|
26548
26648
|
* every hysteresis flip / availability change; consumers never poll.
|
|
26549
26649
|
*/
|
|
26550
|
-
/** Extensible condition tag. Seeded 'day' | '
|
|
26551
|
-
*
|
|
26650
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
26651
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
26652
|
+
* Open by design so more can be added without a wire break.
|
|
26653
|
+
*
|
|
26654
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
26655
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
26656
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
26657
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
26552
26658
|
var SceneConditionSchema = zod.z.string();
|
|
26659
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
26660
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
26661
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
26662
|
+
* and never counts toward hysteresis in either direction. */
|
|
26663
|
+
var SceneVerdictSchema = zod.z.enum([
|
|
26664
|
+
"matched",
|
|
26665
|
+
"diverged",
|
|
26666
|
+
"unknown"
|
|
26667
|
+
]);
|
|
26668
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
26669
|
+
* silence that reads as "nothing has happened". */
|
|
26670
|
+
var SceneUnavailableSchema = zod.z.enum([
|
|
26671
|
+
"no-reference-for-condition",
|
|
26672
|
+
"view-shifted",
|
|
26673
|
+
"no-vision-profile",
|
|
26674
|
+
"encoder-model-changed",
|
|
26675
|
+
"no-snapshot"
|
|
26676
|
+
]);
|
|
26553
26677
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
26554
26678
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
26555
26679
|
var SceneReferenceSchema = zod.z.object({
|
|
@@ -26557,7 +26681,14 @@ var SceneReferenceSchema = zod.z.object({
|
|
|
26557
26681
|
modelId: zod.z.string(),
|
|
26558
26682
|
condition: SceneConditionSchema,
|
|
26559
26683
|
capturedAt: zod.z.number(),
|
|
26560
|
-
thumbnailMediaId: zod.z.string().optional()
|
|
26684
|
+
thumbnailMediaId: zod.z.string().optional(),
|
|
26685
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
26686
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
26687
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
26688
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
26689
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
26690
|
+
* transition, not per poll. */
|
|
26691
|
+
anchorEmbedding: zod.z.array(zod.z.number()).optional()
|
|
26561
26692
|
});
|
|
26562
26693
|
var SceneMonitorStateSchema = zod.z.object({
|
|
26563
26694
|
id: zod.z.string(),
|
|
@@ -26579,6 +26710,25 @@ var SceneCheckSchema = zod.z.discriminatedUnion("mode", [zod.z.object({
|
|
|
26579
26710
|
profileId: zod.z.string().optional(),
|
|
26580
26711
|
hysteresisCount: zod.z.number().int().positive()
|
|
26581
26712
|
})]);
|
|
26713
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
26714
|
+
/**
|
|
26715
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
26716
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
26717
|
+
*
|
|
26718
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
26719
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
26720
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
26721
|
+
* stateful claim that costs the operator a trip to reset.
|
|
26722
|
+
*/
|
|
26723
|
+
var SceneConfirmSchema = zod.z.object({
|
|
26724
|
+
enabled: zod.z.boolean().default(false),
|
|
26725
|
+
prompt: zod.z.string().min(1).max(1e3),
|
|
26726
|
+
profileId: zod.z.string().optional(),
|
|
26727
|
+
timeoutMs: zod.z.number().int().min(1e3).max(2e4).default(8e3),
|
|
26728
|
+
maxImagePx: zod.z.number().int().min(64).max(2048).default(448),
|
|
26729
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
26730
|
+
onTimeout: zod.z.enum(["flip", "hold"]).default("hold")
|
|
26731
|
+
});
|
|
26582
26732
|
var SceneMonitorSchema = zod.z.object({
|
|
26583
26733
|
id: zod.z.string(),
|
|
26584
26734
|
label: zod.z.string(),
|
|
@@ -26597,7 +26747,41 @@ var SceneMonitorSchema = zod.z.object({
|
|
|
26597
26747
|
lastConfidence: zod.z.number().nullable(),
|
|
26598
26748
|
currentCondition: SceneConditionSchema.nullable(),
|
|
26599
26749
|
availability: zod.z.enum(["ok", "unavailable"]),
|
|
26600
|
-
unavailableReason: zod.z.string().nullable()
|
|
26750
|
+
unavailableReason: zod.z.string().nullable(),
|
|
26751
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
26752
|
+
baselineStateId: zod.z.string().nullable(),
|
|
26753
|
+
/** Which boolean drives notification rules and any export. */
|
|
26754
|
+
emit: zod.z.enum(["latched", "live"]).default("latched"),
|
|
26755
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
26756
|
+
verdict: SceneVerdictSchema,
|
|
26757
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
26758
|
+
latched: zod.z.boolean(),
|
|
26759
|
+
/** Last reset (or creation). */
|
|
26760
|
+
armedAt: zod.z.number(),
|
|
26761
|
+
divergedAt: zod.z.number().nullable(),
|
|
26762
|
+
restoredAt: zod.z.number().nullable(),
|
|
26763
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
26764
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
26765
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
26766
|
+
quietSeconds: zod.z.number().int().min(0).max(3600).default(60),
|
|
26767
|
+
/** An observation only advances the pending count when it is at least this
|
|
26768
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
26769
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
26770
|
+
minObservationSpacingSec: zod.z.number().int().min(0).max(3600).default(120),
|
|
26771
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
26772
|
+
confirm: SceneConfirmSchema.optional(),
|
|
26773
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
26774
|
+
anchorThreshold: zod.z.number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
26775
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
26776
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
26777
|
+
* automation can react to the bin coming back without the operator's own
|
|
26778
|
+
* alarm silently clearing itself. */
|
|
26779
|
+
autoRestore: zod.z.boolean().default(false),
|
|
26780
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
26781
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
26782
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
26783
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
26784
|
+
coveredConditions: zod.z.array(SceneConditionSchema)
|
|
26601
26785
|
});
|
|
26602
26786
|
var SceneMonitorStatusSchema = zod.z.object({
|
|
26603
26787
|
monitors: zod.z.array(SceneMonitorSchema),
|
|
@@ -26646,7 +26830,14 @@ var sceneMonitorCapability = {
|
|
|
26646
26830
|
"both"
|
|
26647
26831
|
]).optional(),
|
|
26648
26832
|
checkIntervalSec: zod.z.number().optional(),
|
|
26649
|
-
check: SceneCheckSchema.optional()
|
|
26833
|
+
check: SceneCheckSchema.optional(),
|
|
26834
|
+
emit: zod.z.enum(["latched", "live"]).optional(),
|
|
26835
|
+
quietSeconds: zod.z.number().int().min(0).max(3600).optional(),
|
|
26836
|
+
minObservationSpacingSec: zod.z.number().int().min(0).max(3600).optional(),
|
|
26837
|
+
anchorThreshold: zod.z.number().min(0).max(1).optional(),
|
|
26838
|
+
autoRestore: zod.z.boolean().optional(),
|
|
26839
|
+
/** `null` clears the vision-model adjudicator. */
|
|
26840
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
26650
26841
|
})
|
|
26651
26842
|
}), zod.z.void(), {
|
|
26652
26843
|
kind: "mutation",
|
|
@@ -26687,6 +26878,26 @@ var sceneMonitorCapability = {
|
|
|
26687
26878
|
}), zod.z.void(), {
|
|
26688
26879
|
kind: "mutation",
|
|
26689
26880
|
auth: "admin"
|
|
26881
|
+
}),
|
|
26882
|
+
/**
|
|
26883
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
26884
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
26885
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
26886
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
26887
|
+
* instead of failing silently weeks later.
|
|
26888
|
+
*
|
|
26889
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
26890
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
26891
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
26892
|
+
*/
|
|
26893
|
+
resetScene: method(zod.z.object({
|
|
26894
|
+
deviceId: zod.z.number(),
|
|
26895
|
+
monitorId: zod.z.string(),
|
|
26896
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
26897
|
+
recapture: zod.z.boolean().optional()
|
|
26898
|
+
}), zod.z.void(), {
|
|
26899
|
+
kind: "mutation",
|
|
26900
|
+
auth: "admin"
|
|
26690
26901
|
})
|
|
26691
26902
|
},
|
|
26692
26903
|
status: {
|
|
@@ -33449,6 +33660,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
33449
33660
|
addonId: null,
|
|
33450
33661
|
access: "create"
|
|
33451
33662
|
},
|
|
33663
|
+
"sceneMonitor.resetScene": {
|
|
33664
|
+
capName: "scene-monitor",
|
|
33665
|
+
capScope: "device",
|
|
33666
|
+
addonId: null,
|
|
33667
|
+
access: "delete"
|
|
33668
|
+
},
|
|
33452
33669
|
"sceneMonitor.updateScene": {
|
|
33453
33670
|
capName: "scene-monitor",
|
|
33454
33671
|
capScope: "device",
|
|
@@ -36131,6 +36348,11 @@ Object.freeze({
|
|
|
36131
36348
|
form: "single",
|
|
36132
36349
|
optional: false
|
|
36133
36350
|
}],
|
|
36351
|
+
"sceneMonitor.resetScene": [{
|
|
36352
|
+
name: "deviceId",
|
|
36353
|
+
form: "single",
|
|
36354
|
+
optional: false
|
|
36355
|
+
}],
|
|
36134
36356
|
"sceneMonitor.updateScene": [{
|
|
36135
36357
|
name: "deviceId",
|
|
36136
36358
|
form: "single",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-Bxo5yJjt.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -206,6 +206,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
206
206
|
EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
|
|
207
207
|
EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
|
|
208
208
|
/**
|
|
209
|
+
* A node the orchestrator would otherwise place cameras on has NO usable
|
|
210
|
+
* inference device: the operator enabled one or more accelerators there and
|
|
211
|
+
* the live probe reports every one of them unavailable. Emitted once per
|
|
212
|
+
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
213
|
+
* from the placement candidate set for as long as it holds.
|
|
214
|
+
*
|
|
215
|
+
* This exists because the state was previously invisible: little-unraid
|
|
216
|
+
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
217
|
+
* and nothing in the system said so.
|
|
218
|
+
*
|
|
219
|
+
* A node with no accelerators configured at all is NOT this — its devices
|
|
220
|
+
* are `disabled`, not `unavailable`, and the runner's default CPU pool
|
|
221
|
+
* serves it exactly as before.
|
|
222
|
+
*/
|
|
223
|
+
EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
|
|
224
|
+
/**
|
|
225
|
+
* A camera has an OPEN detection session and has produced no detection at
|
|
226
|
+
* all for longer than the blind threshold — the camera is being decoded and
|
|
227
|
+
* inferred and is returning nothing. Emitted once per transition into blind,
|
|
228
|
+
* per camera.
|
|
229
|
+
*
|
|
230
|
+
* The failure it reports: a 1h43 detection blackout on the entrance camera
|
|
231
|
+
* that nobody noticed, because "a camera that detects nothing" and "a quiet
|
|
232
|
+
* camera" produce byte-identical silence.
|
|
233
|
+
*/
|
|
234
|
+
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
235
|
+
/**
|
|
209
236
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
210
237
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
211
238
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -701,6 +728,12 @@ var WELL_KNOWN_TAB_MAP = Object.fromEntries([
|
|
|
701
728
|
icon: "shapes",
|
|
702
729
|
order: 38
|
|
703
730
|
},
|
|
731
|
+
{
|
|
732
|
+
id: "scenes",
|
|
733
|
+
label: "Scenes",
|
|
734
|
+
icon: "scan-eye",
|
|
735
|
+
order: 36
|
|
736
|
+
},
|
|
704
737
|
{
|
|
705
738
|
id: "analytics",
|
|
706
739
|
label: "Analytics",
|
|
@@ -12171,6 +12204,8 @@ var NcSystemEventKindSchema = z.enum([
|
|
|
12171
12204
|
"stream-offline",
|
|
12172
12205
|
"node-online",
|
|
12173
12206
|
"node-offline",
|
|
12207
|
+
"node-inference-unavailable",
|
|
12208
|
+
"detection-blind",
|
|
12174
12209
|
"addon-update-available",
|
|
12175
12210
|
"server-update-available",
|
|
12176
12211
|
"alarm-triggered",
|
|
@@ -12955,7 +12990,50 @@ var NcRuleInputSchema = z.object({
|
|
|
12955
12990
|
* tests every zone the track visited and a `crossing` condition can no longer
|
|
12956
12991
|
* be satisfied, because a closed track carries no crossing.
|
|
12957
12992
|
*/
|
|
12958
|
-
waitForEnhancement: z.boolean().optional()
|
|
12993
|
+
waitForEnhancement: z.boolean().optional(),
|
|
12994
|
+
/**
|
|
12995
|
+
* GROUP a burst of subjects into ONE notification that grows.
|
|
12996
|
+
*
|
|
12997
|
+
* Seconds of quiet after the last matching subject before the burst is
|
|
12998
|
+
* considered over. While it is open, the first subject enqueues immediately —
|
|
12999
|
+
* **exactly as today, with no added latency** — and every real growth (a new
|
|
13000
|
+
* subject, or a name confirmed on one already in it) REPLACES that
|
|
13001
|
+
* notification with an updated one naming everybody. The push carries the
|
|
13002
|
+
* group's own coalescing tag, so the phone replaces rather than stacks.
|
|
13003
|
+
*
|
|
13004
|
+
* `0` / absent = off, and off is today's behaviour byte for byte.
|
|
13005
|
+
*
|
|
13006
|
+
* ### Why an idle cutoff and not a window
|
|
13007
|
+
*
|
|
13008
|
+
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
13009
|
+
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
13010
|
+
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
13011
|
+
* 30 is Frigate's shipped value for the same decision.
|
|
13012
|
+
*
|
|
13013
|
+
* ### What it replaces
|
|
13014
|
+
*
|
|
13015
|
+
* The blind cooldown, which collapses a burst by DISCARDING it. Measured on
|
|
13016
|
+
* device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
|
|
13017
|
+
* notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
|
|
13018
|
+
* track that did fire and 7 carrying a confirmed identity nobody heard about.
|
|
13019
|
+
* A group collapses the same volume by MERGING, so the cooldown becomes a
|
|
13020
|
+
* budget over GROUPS — which is what it always meant — and a growth is never
|
|
13021
|
+
* throttled by the window its own first member spent.
|
|
13022
|
+
*
|
|
13023
|
+
* ### Interaction with {@link waitForEnhancement}
|
|
13024
|
+
*
|
|
13025
|
+
* They compose, and the order matters. `waitForEnhancement` defers the rule to
|
|
13026
|
+
* TRACK CLOSE, so with both set the group is opened by the first member to
|
|
13027
|
+
* CLOSE — already carrying its name — and grows as later members close. That
|
|
13028
|
+
* is later, and complete. With grouping alone the group opens on the first
|
|
13029
|
+
* object event and picks up names as they are confirmed, through the growth
|
|
13030
|
+
* path. Neither combination fires twice for one subject.
|
|
13031
|
+
*
|
|
13032
|
+
* `.optional()` and deliberately NOT `.default()`: a Zod default does not run
|
|
13033
|
+
* on the addon cap path, so absent must keep meaning what it meant before this
|
|
13034
|
+
* field existed.
|
|
13035
|
+
*/
|
|
13036
|
+
groupIdleSec: z.number().int().min(0).max(600).optional()
|
|
12959
13037
|
});
|
|
12960
13038
|
/**
|
|
12961
13039
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -13989,7 +14067,7 @@ var TrackEnvelopeSchema = z.object({
|
|
|
13989
14067
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
13990
14068
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
13991
14069
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
13992
|
-
* zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
|
|
14070
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
13993
14071
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
13994
14072
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
13995
14073
|
* (`getObjectEvents` et al.).
|
|
@@ -14276,6 +14354,28 @@ var TrackSchema = z.object({
|
|
|
14276
14354
|
* `=== true` and render nothing otherwise, never infer "no face".
|
|
14277
14355
|
*/
|
|
14278
14356
|
hasFace: z.boolean().optional(),
|
|
14357
|
+
/**
|
|
14358
|
+
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
14359
|
+
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
14360
|
+
* so the passage is tracked once and as a VEHICLE.
|
|
14361
|
+
*
|
|
14362
|
+
* It exists because the fold's record was dishonest. D34 and the code both
|
|
14363
|
+
* said "the person is not lost — it is reported so both entities stay on the
|
|
14364
|
+
* record"; in fact the pair went into a per-processor RAM field behind an
|
|
14365
|
+
* accessor nobody called, and every durable surface said `vehicle`, full
|
|
14366
|
+
* stop. This is the composition note that makes the row true.
|
|
14367
|
+
*
|
|
14368
|
+
* A COMPOSITION, never a class and never a label. "This vehicle contains a
|
|
14369
|
+
* person" is not an answer to "what is this" — both label tiers would refuse
|
|
14370
|
+
* a macro token anyway (D89), and correctly. Nothing here changes what the
|
|
14371
|
+
* subject IS: a cyclist stays one vehicle track, occupancy still counts one,
|
|
14372
|
+
* and a `person` rule still does not fire for someone cycling past.
|
|
14373
|
+
*
|
|
14374
|
+
* **Absent ≠ false**, exactly like {@link hasFace}: every row written before
|
|
14375
|
+
* the column, and every hub that predates the field, omits it. Test
|
|
14376
|
+
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
14377
|
+
*/
|
|
14378
|
+
hasRider: z.boolean().optional(),
|
|
14279
14379
|
...TrackFlagFields,
|
|
14280
14380
|
...TrackRetrainFields
|
|
14281
14381
|
});
|
|
@@ -26547,9 +26647,33 @@ var recordingExportCapability = {
|
|
|
26547
26647
|
* settings-contribution methods. `status.kind:'push'` — the engine pushes on
|
|
26548
26648
|
* every hysteresis flip / availability change; consumers never poll.
|
|
26549
26649
|
*/
|
|
26550
|
-
/** Extensible condition tag. Seeded 'day' | '
|
|
26551
|
-
*
|
|
26650
|
+
/** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
|
|
26651
|
+
* captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
|
|
26652
|
+
* Open by design so more can be added without a wire break.
|
|
26653
|
+
*
|
|
26654
|
+
* Matching does NOT fall back across conditions: cross-condition cosines are
|
|
26655
|
+
* not comparable, so "I have never seen this scene in this light" is reported
|
|
26656
|
+
* as `unknown`, never guessed. A day reference scored against an IR frame
|
|
26657
|
+
* collapses the cosine and would latch a false alarm every single night. */
|
|
26552
26658
|
var SceneConditionSchema = z.string();
|
|
26659
|
+
/** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
|
|
26660
|
+
* `unknown` = we cannot judge (no reference for this condition, encoder model
|
|
26661
|
+
* changed, view shifted, no snapshot). `unknown` is a real value, not a null,
|
|
26662
|
+
* and never counts toward hysteresis in either direction. */
|
|
26663
|
+
var SceneVerdictSchema = z.enum([
|
|
26664
|
+
"matched",
|
|
26665
|
+
"diverged",
|
|
26666
|
+
"unknown"
|
|
26667
|
+
]);
|
|
26668
|
+
/** Why a scene cannot judge. Named, because this feature's failure mode is
|
|
26669
|
+
* silence that reads as "nothing has happened". */
|
|
26670
|
+
var SceneUnavailableSchema = z.enum([
|
|
26671
|
+
"no-reference-for-condition",
|
|
26672
|
+
"view-shifted",
|
|
26673
|
+
"no-vision-profile",
|
|
26674
|
+
"encoder-model-changed",
|
|
26675
|
+
"no-snapshot"
|
|
26676
|
+
]);
|
|
26553
26677
|
/** One captured reference — condition-tagged, model-version-gated. `embedding`
|
|
26554
26678
|
* is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
|
|
26555
26679
|
var SceneReferenceSchema = z.object({
|
|
@@ -26557,7 +26681,14 @@ var SceneReferenceSchema = z.object({
|
|
|
26557
26681
|
modelId: z.string(),
|
|
26558
26682
|
condition: SceneConditionSchema,
|
|
26559
26683
|
capturedAt: z.number(),
|
|
26560
|
-
thumbnailMediaId: z.string().optional()
|
|
26684
|
+
thumbnailMediaId: z.string().optional(),
|
|
26685
|
+
/** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
|
|
26686
|
+
* anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
|
|
26687
|
+
* normalized rect frame a different piece of world, and the scene would
|
|
26688
|
+
* diverge forever with a perfectly plausible cosine. Checked LAZILY, only
|
|
26689
|
+
* when hysteresis is about to flip — one extra encode per candidate
|
|
26690
|
+
* transition, not per poll. */
|
|
26691
|
+
anchorEmbedding: z.array(z.number()).optional()
|
|
26561
26692
|
});
|
|
26562
26693
|
var SceneMonitorStateSchema = z.object({
|
|
26563
26694
|
id: z.string(),
|
|
@@ -26579,6 +26710,25 @@ var SceneCheckSchema = z.discriminatedUnion("mode", [z.object({
|
|
|
26579
26710
|
profileId: z.string().optional(),
|
|
26580
26711
|
hysteresisCount: z.number().int().positive()
|
|
26581
26712
|
})]);
|
|
26713
|
+
var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
|
|
26714
|
+
/**
|
|
26715
|
+
* Vision-model adjudication of a candidate flip. Field names deliberately
|
|
26716
|
+
* mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
|
|
26717
|
+
*
|
|
26718
|
+
* `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
|
|
26719
|
+
* fail-open: a notification suppressed is the worse error there, but a vision
|
|
26720
|
+
* model that timed out has not told us the bin is gone, and a latch is a
|
|
26721
|
+
* stateful claim that costs the operator a trip to reset.
|
|
26722
|
+
*/
|
|
26723
|
+
var SceneConfirmSchema = z.object({
|
|
26724
|
+
enabled: z.boolean().default(false),
|
|
26725
|
+
prompt: z.string().min(1).max(1e3),
|
|
26726
|
+
profileId: z.string().optional(),
|
|
26727
|
+
timeoutMs: z.number().int().min(1e3).max(2e4).default(8e3),
|
|
26728
|
+
maxImagePx: z.number().int().min(64).max(2048).default(448),
|
|
26729
|
+
/** What a timeout / unavailable model means for the PENDING flip. */
|
|
26730
|
+
onTimeout: z.enum(["flip", "hold"]).default("hold")
|
|
26731
|
+
});
|
|
26582
26732
|
var SceneMonitorSchema = z.object({
|
|
26583
26733
|
id: z.string(),
|
|
26584
26734
|
label: z.string(),
|
|
@@ -26597,7 +26747,41 @@ var SceneMonitorSchema = z.object({
|
|
|
26597
26747
|
lastConfidence: z.number().nullable(),
|
|
26598
26748
|
currentCondition: SceneConditionSchema.nullable(),
|
|
26599
26749
|
availability: z.enum(["ok", "unavailable"]),
|
|
26600
|
-
unavailableReason: z.string().nullable()
|
|
26750
|
+
unavailableReason: z.string().nullable(),
|
|
26751
|
+
/** Which state is "the initial screen". `null` until the first capture. */
|
|
26752
|
+
baselineStateId: z.string().nullable(),
|
|
26753
|
+
/** Which boolean drives notification rules and any export. */
|
|
26754
|
+
emit: z.enum(["latched", "live"]).default("latched"),
|
|
26755
|
+
/** Live: does the region match the baseline RIGHT NOW. */
|
|
26756
|
+
verdict: SceneVerdictSchema,
|
|
26757
|
+
/** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
|
|
26758
|
+
latched: z.boolean(),
|
|
26759
|
+
/** Last reset (or creation). */
|
|
26760
|
+
armedAt: z.number(),
|
|
26761
|
+
divergedAt: z.number().nullable(),
|
|
26762
|
+
restoredAt: z.number().nullable(),
|
|
26763
|
+
/** A check is only COUNTED when the device has been quiet this long. Motion
|
|
26764
|
+
* during the window DISCARDS the observation — a car pulling up in front of
|
|
26765
|
+
* the bin must not be able to spend hysteresis credit. */
|
|
26766
|
+
quietSeconds: z.number().int().min(0).max(3600).default(60),
|
|
26767
|
+
/** An observation only advances the pending count when it is at least this
|
|
26768
|
+
* far from the previously counted one, so N agreeing checks span real time
|
|
26769
|
+
* rather than N adjacent polls inside one occlusion. */
|
|
26770
|
+
minObservationSpacingSec: z.number().int().min(0).max(3600).default(120),
|
|
26771
|
+
/** Vision-model adjudication of a candidate flip. Similarity primary only. */
|
|
26772
|
+
confirm: SceneConfirmSchema.optional(),
|
|
26773
|
+
/** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
|
|
26774
|
+
anchorThreshold: z.number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
|
|
26775
|
+
/** Clear the latch on its own when the scene matches again? Default false —
|
|
26776
|
+
* `restoredAt` and the `scene-restored` edge are recorded regardless, so an
|
|
26777
|
+
* automation can react to the bin coming back without the operator's own
|
|
26778
|
+
* alarm silently clearing itself. */
|
|
26779
|
+
autoRestore: z.boolean().default(false),
|
|
26780
|
+
/** Named cause when `verdict === 'unknown'`. */
|
|
26781
|
+
unavailable: SceneUnavailableSchema.nullable(),
|
|
26782
|
+
/** Conditions that have at least one comparable reference — the coverage line
|
|
26783
|
+
* ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
|
|
26784
|
+
coveredConditions: z.array(SceneConditionSchema)
|
|
26601
26785
|
});
|
|
26602
26786
|
var SceneMonitorStatusSchema = z.object({
|
|
26603
26787
|
monitors: z.array(SceneMonitorSchema),
|
|
@@ -26646,7 +26830,14 @@ var sceneMonitorCapability = {
|
|
|
26646
26830
|
"both"
|
|
26647
26831
|
]).optional(),
|
|
26648
26832
|
checkIntervalSec: z.number().optional(),
|
|
26649
|
-
check: SceneCheckSchema.optional()
|
|
26833
|
+
check: SceneCheckSchema.optional(),
|
|
26834
|
+
emit: z.enum(["latched", "live"]).optional(),
|
|
26835
|
+
quietSeconds: z.number().int().min(0).max(3600).optional(),
|
|
26836
|
+
minObservationSpacingSec: z.number().int().min(0).max(3600).optional(),
|
|
26837
|
+
anchorThreshold: z.number().min(0).max(1).optional(),
|
|
26838
|
+
autoRestore: z.boolean().optional(),
|
|
26839
|
+
/** `null` clears the vision-model adjudicator. */
|
|
26840
|
+
confirm: SceneConfirmSchema.nullable().optional()
|
|
26650
26841
|
})
|
|
26651
26842
|
}), z.void(), {
|
|
26652
26843
|
kind: "mutation",
|
|
@@ -26687,6 +26878,26 @@ var sceneMonitorCapability = {
|
|
|
26687
26878
|
}), z.void(), {
|
|
26688
26879
|
kind: "mutation",
|
|
26689
26880
|
auth: "admin"
|
|
26881
|
+
}),
|
|
26882
|
+
/**
|
|
26883
|
+
* Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
|
|
26884
|
+
* the CURRENT condition. The bin never goes back in exactly the same spot;
|
|
26885
|
+
* "reset" in the operator's head means *this is the new normal*, and
|
|
26886
|
+
* re-capture is what makes the feature self-healing against slow drift
|
|
26887
|
+
* instead of failing silently weeks later.
|
|
26888
|
+
*
|
|
26889
|
+
* Reachable from three surfaces on this one mutation: the scene card, a
|
|
26890
|
+
* notification button (an `onTrigger` sequence with a `kind:'cap'` step —
|
|
26891
|
+
* no new Notification-Center code at all), and tRPC for scripts.
|
|
26892
|
+
*/
|
|
26893
|
+
resetScene: method(z.object({
|
|
26894
|
+
deviceId: z.number(),
|
|
26895
|
+
monitorId: z.string(),
|
|
26896
|
+
/** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
|
|
26897
|
+
recapture: z.boolean().optional()
|
|
26898
|
+
}), z.void(), {
|
|
26899
|
+
kind: "mutation",
|
|
26900
|
+
auth: "admin"
|
|
26690
26901
|
})
|
|
26691
26902
|
},
|
|
26692
26903
|
status: {
|
|
@@ -33449,6 +33660,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
33449
33660
|
addonId: null,
|
|
33450
33661
|
access: "create"
|
|
33451
33662
|
},
|
|
33663
|
+
"sceneMonitor.resetScene": {
|
|
33664
|
+
capName: "scene-monitor",
|
|
33665
|
+
capScope: "device",
|
|
33666
|
+
addonId: null,
|
|
33667
|
+
access: "delete"
|
|
33668
|
+
},
|
|
33452
33669
|
"sceneMonitor.updateScene": {
|
|
33453
33670
|
capName: "scene-monitor",
|
|
33454
33671
|
capScope: "device",
|
|
@@ -36131,6 +36348,11 @@ Object.freeze({
|
|
|
36131
36348
|
form: "single",
|
|
36132
36349
|
optional: false
|
|
36133
36350
|
}],
|
|
36351
|
+
"sceneMonitor.resetScene": [{
|
|
36352
|
+
name: "deviceId",
|
|
36353
|
+
form: "single",
|
|
36354
|
+
optional: false
|
|
36355
|
+
}],
|
|
36134
36356
|
"sceneMonitor.updateScene": [{
|
|
36135
36357
|
name: "deviceId",
|
|
36136
36358
|
form: "single",
|