@camstack/addon-export-hap 1.2.28 → 1.2.29

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.
@@ -84,7 +84,7 @@ function carryForward(base, existing, keys) {
84
84
  return out;
85
85
  }
86
86
  //#endregion
87
- //#region ../types/dist/event-category-Cv9dO26A.mjs
87
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
88
88
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
89
89
  EventCategory["SystemBoot"] = "system.boot";
90
90
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -291,6 +291,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
291
291
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
292
292
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
293
293
  /**
294
+ * A node the orchestrator would otherwise place cameras on has NO usable
295
+ * inference device: the operator enabled one or more accelerators there and
296
+ * the live probe reports every one of them unavailable. Emitted once per
297
+ * TRANSITION into that state (never per dispatch), and the node is dropped
298
+ * from the placement candidate set for as long as it holds.
299
+ *
300
+ * This exists because the state was previously invisible: little-unraid
301
+ * absorbed 283k inference errors in a day while still being handed cameras,
302
+ * and nothing in the system said so.
303
+ *
304
+ * A node with no accelerators configured at all is NOT this — its devices
305
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
306
+ * serves it exactly as before.
307
+ */
308
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
309
+ /**
310
+ * A camera has an OPEN detection session and has produced no detection at
311
+ * all for longer than the blind threshold — the camera is being decoded and
312
+ * inferred and is returning nothing. Emitted once per transition into blind,
313
+ * per camera.
314
+ *
315
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
316
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
317
+ * camera" produce byte-identical silence.
318
+ */
319
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
320
+ /**
294
321
  * Per-camera pipeline config was mutated by the orchestrator
295
322
  * (3-level settings change via `setAgentAddonDefaults` /
296
323
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -11508,6 +11535,8 @@ var QueryFilterSchema = object({
11508
11535
  where: record(string(), unknown()).optional(),
11509
11536
  whereIn: record(string(), array(unknown())).optional(),
11510
11537
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11538
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
11539
+ whereNot: record(string(), unknown()).optional(),
11511
11540
  orderBy: object({
11512
11541
  field: string(),
11513
11542
  direction: _enum(["asc", "desc"])
@@ -11527,7 +11556,8 @@ var QueryFilterSchema = object({
11527
11556
  var MutationFilterSchema = object({
11528
11557
  where: record(string(), unknown()).optional(),
11529
11558
  whereIn: record(string(), array(unknown())).optional(),
11530
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11559
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11560
+ whereNot: record(string(), unknown()).optional()
11531
11561
  });
11532
11562
  /** A single stored record: `{ id, data }`. */
11533
11563
  var SettingsRecordSchema = object({
@@ -12965,6 +12995,17 @@ var LlmImageSchema = object({
12965
12995
  bytes: _instanceof(Uint8Array),
12966
12996
  mimeType: string()
12967
12997
  });
12998
+ /**
12999
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
13000
+ * the flag is what a consumer table flips, the count is what the operator tunes.
13001
+ * A retry doubles the wall time of a call, so the two gates that run inside a
13002
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
13003
+ */
13004
+ var LlmRetryPolicySchema = object({
13005
+ enabled: boolean().default(false),
13006
+ /** Total attempts INCLUDING the first. 1 = no retry. */
13007
+ maxAttempts: number().int().min(1).max(5).default(1)
13008
+ });
12968
13009
  var LlmGenerateBaseInputSchema = object({
12969
13010
  /** Collection routing (the notification-output posture). */
12970
13011
  addonId: string().optional(),
@@ -12979,7 +13020,28 @@ var LlmGenerateBaseInputSchema = object({
12979
13020
  jsonSchema: record(string(), unknown()).optional(),
12980
13021
  /** Per-call override of the profile default. */
12981
13022
  maxTokens: number().int().positive().optional(),
12982
- temperature: number().optional()
13023
+ temperature: number().optional(),
13024
+ /** Per-call override of the profile default (nucleus sampling). */
13025
+ topP: number().min(0).max(1).optional(),
13026
+ /** Per-call override of the profile default (top-k sampling). */
13027
+ topK: number().int().positive().optional(),
13028
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
13029
+ timeoutMs: number().int().positive().optional(),
13030
+ /** Per-call override; beats both the consumer table and the profile. */
13031
+ retry: LlmRetryPolicySchema.optional(),
13032
+ /**
13033
+ * Caller-minted id that makes this generation CANCELLABLE.
13034
+ *
13035
+ * Without it a caller that stops waiting cannot stop the work: the gates race
13036
+ * the call against 8 s and free their own slot when the timer wins, while the
13037
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
13038
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
13039
+ * not generations, and the real load is unbounded.
13040
+ *
13041
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
13042
+ * `llm.cancel({ requestId })` tears the socket down.
13043
+ */
13044
+ requestId: string().optional()
12983
13045
  });
12984
13046
  /**
12985
13047
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12992,6 +13054,18 @@ var LlmGenerateBaseInputSchema = object({
12992
13054
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12993
13055
  * watchdog — operator decision #3).
12994
13056
  */
13057
+ /**
13058
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
13059
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
13060
+ * REF rather than looked up at install time, so what the operator approved in
13061
+ * the preview is exactly what the node downloads.
13062
+ */
13063
+ var ManagedModelExtraFileSchema = object({
13064
+ url: string(),
13065
+ filename: string(),
13066
+ sizeBytes: number(),
13067
+ sha256: string().optional()
13068
+ });
12995
13069
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12996
13070
  object({
12997
13071
  kind: literal("catalog"),
@@ -13000,7 +13074,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
13000
13074
  object({
13001
13075
  kind: literal("url"),
13002
13076
  url: string(),
13003
- sha256: string().optional()
13077
+ sha256: string().optional(),
13078
+ /** Picker/status label; the file basename when absent. */
13079
+ label: string().optional(),
13080
+ sizeBytes: number().optional(),
13081
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
13004
13082
  }),
13005
13083
  object({
13006
13084
  kind: literal("path"),
@@ -13018,13 +13096,82 @@ var ManagedRuntimeConfigSchema = object({
13018
13096
  gpuLayers: number().int().default(0),
13019
13097
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
13020
13098
  threads: number().int().optional(),
13021
- /** Concurrent slots. */
13099
+ /** Concurrent slots (`--parallel`). */
13022
13100
  parallel: number().int().default(1),
13101
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
13102
+ batchSize: number().int().positive().optional(),
13103
+ /** Physical batch / micro-batch (`-ub`). */
13104
+ ubatchSize: number().int().positive().optional(),
13105
+ /**
13106
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
13107
+ * is a no-op elsewhere, so it is offered rather than assumed.
13108
+ */
13109
+ flashAttention: boolean().default(false),
13110
+ /**
13111
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
13112
+ * inference. Costs the full model size in resident memory — which is exactly
13113
+ * what the RAM budget is counting.
13114
+ */
13115
+ mlock: boolean().default(false),
13116
+ /**
13117
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
13118
+ * start, but avoids the page-fault stalls a network or spinning-disk model
13119
+ * store produces on every first token.
13120
+ */
13121
+ noMmap: boolean().default(false),
13122
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
13123
+ * cheapest way to fit a longer context in the same RAM. */
13124
+ cacheTypeK: _enum([
13125
+ "f32",
13126
+ "f16",
13127
+ "q8_0",
13128
+ "q5_1",
13129
+ "q5_0",
13130
+ "q4_1",
13131
+ "q4_0"
13132
+ ]).optional(),
13133
+ cacheTypeV: _enum([
13134
+ "f32",
13135
+ "f16",
13136
+ "q8_0",
13137
+ "q5_1",
13138
+ "q5_0",
13139
+ "q4_1",
13140
+ "q4_0"
13141
+ ]).optional(),
13142
+ /**
13143
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
13144
+ * (which most vision chat templates need and some language-only models
13145
+ * dislike), `--cont-batching`, `--rope-scaling`, …
13146
+ *
13147
+ * It is NOT a second place to set the flags above. A token that collides
13148
+ * with a typed field is REJECTED at start, naming the field that owns it
13149
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
13150
+ * the "two switches that disagree" failure this repo has already shipped
13151
+ * twice (D62).
13152
+ */
13153
+ extraArgs: array(string()).default([]),
13023
13154
  /** Else lazy: first generate boots it. */
13024
13155
  autoStart: boolean().default(false),
13025
13156
  /** 0 = never; frees RAM after quiet periods. */
13026
13157
  idleStopMinutes: number().int().default(30)
13027
13158
  });
13159
+ /**
13160
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
13161
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
13162
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
13163
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
13164
+ */
13165
+ var LlmDownloadProgressSchema = object({
13166
+ phase: _enum(["downloading", "verifying"]),
13167
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
13168
+ file: string(),
13169
+ fileIndex: number().int(),
13170
+ fileCount: number().int(),
13171
+ /** Across the WHOLE install, not the current file. */
13172
+ downloadedBytes: number(),
13173
+ totalBytes: number().optional()
13174
+ });
13028
13175
  var LlmRuntimeStatusSchema = object({
13029
13176
  /** Status is ALWAYS node-qualified. */
13030
13177
  nodeId: string(),
@@ -13041,6 +13188,8 @@ var LlmRuntimeStatusSchema = object({
13041
13188
  modelPath: string().optional(),
13042
13189
  modelId: string().optional(),
13043
13190
  downloadProgress: number().min(0).max(1).optional(),
13191
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
13192
+ download: LlmDownloadProgressSchema.optional(),
13044
13193
  lastError: string().optional(),
13045
13194
  crashesInWindow: number(),
13046
13195
  /** Child RSS (sampled best-effort). */
@@ -13051,7 +13200,14 @@ var LlmNodeModelSchema = object({
13051
13200
  file: string(),
13052
13201
  sizeBytes: number(),
13053
13202
  catalogId: string().optional(),
13054
- installedAt: number().optional()
13203
+ installedAt: number().optional(),
13204
+ /**
13205
+ * Absolute path on the node. Present so a file that is on disk but matches
13206
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
13207
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
13208
+ * it the picker could list such a file and do nothing with it.
13209
+ */
13210
+ path: string().optional()
13055
13211
  });
13056
13212
  var LlmRuntimeDiskUsageSchema = object({
13057
13213
  nodeId: string(),
@@ -13107,10 +13263,47 @@ var LlmProfileSchema = object({
13107
13263
  baseUrl: string().optional(),
13108
13264
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
13109
13265
  apiKey: string().optional(),
13266
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
13267
+ * degraded to text — that shipped once and produced a confident answer to a
13268
+ * question about a picture nobody sent. */
13110
13269
  supportsVision: boolean(),
13111
13270
  temperature: number().min(0).max(2).optional(),
13271
+ /** Nucleus sampling. Every wire we speak has it. */
13272
+ topP: number().min(0).max(1).optional(),
13273
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
13274
+ * wire does, and the client drops it there (measured: the request body gets
13275
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
13276
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
13277
+ topK: number().int().positive().optional(),
13112
13278
  maxTokens: number().int().positive().optional(),
13279
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
13280
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
13281
+ * the model with, so it is the one field that changes a PROCESS. */
13282
+ contextLength: number().int().positive().optional(),
13283
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
13284
+ * two system prompts fighting is worse than either alone). */
13285
+ systemPrompt: string().optional(),
13286
+ /** Total generation bound — the only one a unary call has. */
13113
13287
  timeoutMs: number().int().positive().default(6e4),
13288
+ /** The TCP handshake only — "is the port even open". NOT the wait for
13289
+ * response headers: on the LM Studio / llama-server wire those are written
13290
+ * once the model has finished loading, so they belong to the bound below. */
13291
+ connectTimeoutMs: number().int().positive().default(1e4),
13292
+ /** Accepted, but no output yet — response headers included, because a cold
13293
+ * GPU load is exactly what happens before them. */
13294
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
13295
+ /** Output started then stopped. */
13296
+ idleTimeoutMs: number().int().positive().default(6e4),
13297
+ /** Profile-level default. The per-consumer table and a per-call override
13298
+ * both beat it — see `resolveRetryPolicy`. */
13299
+ retry: LlmRetryPolicySchema.default({
13300
+ enabled: false,
13301
+ maxAttempts: 1
13302
+ }),
13303
+ /** Whether this profile may use tools. The tool-call plumbing rides the
13304
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
13305
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
13306
+ toolsEnabled: boolean().default(false),
13114
13307
  extraHeaders: record(string(), string()).optional(),
13115
13308
  /** kind === 'managed-local' only (spec §4). */
13116
13309
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -13160,6 +13353,36 @@ var ManagedModelCatalogEntrySchema = object({
13160
13353
  /** Vision models: companion projector file. */
13161
13354
  mmprojUrl: string().optional()
13162
13355
  });
13356
+ /**
13357
+ * The outcome of turning one operator-typed Hugging Face reference into a
13358
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
13359
+ * I will not pick for you" is a normal answer the UI has to render, not an
13360
+ * exception.
13361
+ *
13362
+ * `candidates` is the whole reason the refusal is usable — every string in it
13363
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
13364
+ */
13365
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
13366
+ ok: literal(true),
13367
+ /** Ready to hand to `installModel` unchanged. */
13368
+ model: ManagedModelRefSchema,
13369
+ label: string(),
13370
+ repo: string(),
13371
+ quantization: string(),
13372
+ purpose: _enum(["text", "vision"]),
13373
+ totalBytes: number(),
13374
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
13375
+ * see that 0.9 GB of it is a projector they did not name. */
13376
+ extraFilenames: array(string())
13377
+ }), object({
13378
+ ok: literal(false),
13379
+ code: string(),
13380
+ message: string(),
13381
+ candidates: array(string()).optional(),
13382
+ /** Set when the refusal was only the ceiling: re-calling with
13383
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
13384
+ requiredBytes: number().optional()
13385
+ })]);
13163
13386
  var LlmRuntimeNodeSchema = object({
13164
13387
  nodeId: string(),
13165
13388
  reachable: boolean(),
@@ -13172,7 +13395,10 @@ var ProfileRefInputSchema = object({
13172
13395
  addonId: string(),
13173
13396
  profileId: string()
13174
13397
  });
13175
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13398
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
13399
+ addonId: string().optional(),
13400
+ requestId: string()
13401
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13176
13402
  kind: "mutation",
13177
13403
  auth: "admin"
13178
13404
  }), method(ProfileRefInputSchema, _void(), {
@@ -13193,6 +13419,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
13193
13419
  consumer: string().optional(),
13194
13420
  profileId: string().optional()
13195
13421
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
13422
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
13423
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
13424
+ ref: string(),
13425
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
13426
+ maxBytes: number().positive().optional()
13427
+ }), HfModelResolutionSchema, {
13428
+ kind: "mutation",
13429
+ auth: "admin"
13430
+ }), method(object({
13196
13431
  nodeId: string(),
13197
13432
  model: ManagedModelRefSchema
13198
13433
  }), _void(), {
@@ -14802,6 +15037,8 @@ var NcSystemEventKindSchema = _enum([
14802
15037
  "stream-offline",
14803
15038
  "node-online",
14804
15039
  "node-offline",
15040
+ "node-inference-unavailable",
15041
+ "detection-blind",
14805
15042
  "addon-update-available",
14806
15043
  "server-update-available",
14807
15044
  "alarm-triggered",
@@ -14863,7 +15100,16 @@ var NcScheduleSchema = object({
14863
15100
  });
14864
15101
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14865
15102
  var NcPlateMatcherSchema = object({
14866
- values: array(string().min(1)).min(1),
15103
+ /**
15104
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
15105
+ * pipeline could read** — the plate half of "no selection = no narrowing",
15106
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
15107
+ * rather than merely seen. A subject carrying no plate still fails.
15108
+ *
15109
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
15110
+ * ever persisted an empty list, so widening it cannot change an existing rule.
15111
+ */
15112
+ values: array(string().min(1)),
14867
15113
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14868
15114
  maxDistance: number().int().min(0).max(3).default(1)
14869
15115
  });
@@ -14897,28 +15143,36 @@ var NcOccupancyConditionSchema = object({
14897
15143
  /**
14898
15144
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14899
15145
  *
14900
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14901
- * reference notifier uses, so an operator moving between them re-uses what
14902
- * they already know): a rule matches when, over a sampling window of
14903
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14904
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14905
- *
14906
- * - `dbThreshold` its level is at or above this many dBFS (see
14907
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14908
- * - `labels` the classifier put at least one of these labels on it.
14909
- *
14910
- * Both are OPTIONAL and independent, which is the point of the shape: a
14911
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14912
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14913
- * is given** a window in which every sample is trivially a hit would fire on
14914
- * silence, so the engine refuses such a condition rather than notifying on
14915
- * nothing (the schema cannot express "at least one of" without becoming a
14916
- * ZodEffects the cap path would have to special-case).
14917
- *
14918
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14919
- * must be FULL before it can match a window that has been open for two
14920
- * seconds of its ten is 100% of nothing, and firing on it would make
14921
- * `samplingSeconds` decorative.
15146
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
15147
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
15148
+ * there is no second switch that can disagree with the first and every rule
15149
+ * authored before the decision migrates for free (`audioModeOf`):
15150
+ *
15151
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
15152
+ * classifier labels with one of them. No window, no percentage:
15153
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
15154
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
15155
+ * the analyzer's (`classificationMinScore`, per device) — a label only
15156
+ * reaches this condition if the classifier was already confident enough.
15157
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
15158
+ * the condition: at least `hitPercent`% of the samples over
15159
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
15160
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
15161
+ * must be FULL before it can match a window open for two of its ten
15162
+ * seconds is 100% of nothing.
15163
+ *
15164
+ * **Why label mode has no window.** It had one, and it never fired: the
15165
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
15166
+ * of them per episode, even through continuous crying. The measured maximum
15167
+ * `hitPercent` over the whole live history was 40 — under the shipped default
15168
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
15169
+ * the wrong question to ask of a sparse classifier.
15170
+ *
15171
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
15172
+ * and the rule would fire on silence. The schema cannot express "exactly one
15173
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
15174
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
15175
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14922
15176
  *
14923
15177
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14924
15178
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14926,13 +15180,13 @@ var NcOccupancyConditionSchema = object({
14926
15180
  * an operator who typed `dog` mean the same thing.
14927
15181
  */
14928
15182
  var NcAudioConditionSchema = object({
14929
- /** Audio macro labels; absent = any sound (level-only rule). */
15183
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14930
15184
  labels: array(string().min(1)).min(1).optional(),
14931
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
15185
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14932
15186
  dbThreshold: number().min(-96).max(0).optional(),
14933
- /** Percentage of the window's samples that must be hits (1–100). */
15187
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14934
15188
  hitPercent: number().int().min(1).max(100).default(60),
14935
- /** Length of the sampling window in seconds. */
15189
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14936
15190
  samplingSeconds: number().int().min(1).max(300).default(10)
14937
15191
  });
14938
15192
  /**
@@ -15070,13 +15324,81 @@ var NcRuleActionsSchema = object({
15070
15324
  */
15071
15325
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
15072
15326
  });
15327
+ /**
15328
+ * "This rule applies only while `deviceId` is in one of `states`."
15329
+ *
15330
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
15331
+ * `on`/`off` for a switch — not a normalised set, because normalising would
15332
+ * make the condition lie about devices whose states have no equivalent.
15333
+ *
15334
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
15335
+ * condition that fired on "I could not read it" would be worse than no gate.
15336
+ */
15337
+ var NcDeviceStateConditionSchema = object({
15338
+ deviceId: number().int(),
15339
+ /** Any of these matches. */
15340
+ states: array(string().min(1)).min(1)
15341
+ });
15342
+ /**
15343
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
15344
+ *
15345
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
15346
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
15347
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
15348
+ * already has a trigger ("tell me about a person at the front door, but only
15349
+ * while the bin is still out"). That is why it composes with every delivery
15350
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
15351
+ * kind exist for it — see D159.
15352
+ *
15353
+ * ── Identity ───────────────────────────────────────────────────────────────
15354
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
15355
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
15356
+ * carried as a HINT for the editor and for the log line, never as part of the
15357
+ * lookup key: a rule whose hint drifted must still gate correctly.
15358
+ *
15359
+ * ── Which boolean ──────────────────────────────────────────────────────────
15360
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
15361
+ * already declares which boolean drives notification rules, and a second knob
15362
+ * that could disagree with it is exactly the D62 failure. Set it only to
15363
+ * override one rule against the scene's own default.
15364
+ *
15365
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
15366
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
15367
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
15368
+ * evidence, in either direction.
15369
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
15370
+ * The latch is a durable fact about the past ("it has diverged since I armed
15371
+ * it"), so a camera that has gone dark does not clear it — that is the whole
15372
+ * reason the operator asked for a latch.
15373
+ *
15374
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
15375
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
15376
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
15377
+ * said out loud in the log rather than dropped in silence.
15378
+ */
15379
+ var NcSceneConditionSchema = object({
15380
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
15381
+ sceneId: string().min(1),
15382
+ /** The camera the scene lives on. A hint for the editor and the log line. */
15383
+ deviceId: number().int().optional(),
15384
+ /** The state the scene must be in for the rule to fire. */
15385
+ requiredState: _enum(["matched", "diverged"]),
15386
+ /**
15387
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
15388
+ * scene's own `emit` field, which is the only place that decision belongs.
15389
+ */
15390
+ latched: boolean().optional()
15391
+ });
15073
15392
  var NcConditionsSchema = object({
15074
15393
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
15075
- deviceState: object({
15076
- deviceId: number().int(),
15077
- /** Any of these matches. */
15078
- states: array(string().min(1)).min(1)
15079
- }).optional(),
15394
+ deviceState: NcDeviceStateConditionSchema.optional(),
15395
+ /**
15396
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
15397
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
15398
+ * unlike `occupancy`/`audio` it discriminates nothing. See
15399
+ * {@link NcSceneCondition} and D159.
15400
+ */
15401
+ scene: NcSceneConditionSchema.optional(),
15080
15402
  /** Device scope — absent = all devices. */
15081
15403
  devices: array(number()).optional(),
15082
15404
  /** Detector class names (any overlap with the record's class set). */
@@ -15102,18 +15424,47 @@ var NcConditionsSchema = object({
15102
15424
  */
15103
15425
  labelEquals: array(string().min(1)).optional(),
15104
15426
  /**
15105
- * Identity matcher. P1 boundary: matched against the record's collapsed
15106
- * `label` (the identity display name propagated by the face pipeline) —
15107
- * identity-ID matching rides in P2 when identity ids reach the record.
15427
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
15428
+ * is about recognised people at all.
15429
+ *
15430
+ * Three states, and the empty one is the point:
15431
+ *
15432
+ * | value | meaning |
15433
+ * | --- | --- |
15434
+ * | absent | the rule does not care who it is; an unrecognised person matches |
15435
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
15436
+ * | a list | only these identities |
15437
+ *
15438
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
15439
+ * `devices` list is every device), applied one level down: the operator has
15440
+ * turned the face scope ON and narrowed it to nothing, which is every known
15441
+ * face. No second field states the same thing — a switch that can disagree
15442
+ * with the list under it is worse than no switch (D62).
15443
+ *
15444
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
15445
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
15446
+ * the operator fixed the spelling. The id reaches the record on
15447
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
15448
+ * `{{label}}` renders.
15449
+ *
15450
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
15451
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
15452
+ * for is left as it stands and reported, never dropped. The engine also
15453
+ * accepts a display-name hit as a compatibility leg, so a rule whose
15454
+ * migration could not resolve keeps matching exactly what it matched before.
15108
15455
  */
15109
15456
  identities: array(string().min(1)).optional(),
15110
- /** Fuzzy plate matcher against the record's `label` (plate text). */
15457
+ /**
15458
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
15459
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
15460
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
15461
+ */
15111
15462
  plates: NcPlateMatcherSchema.optional(),
15112
15463
  /**
15113
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
15114
- * Same P1 boundary: matched against the record's collapsed `label` (the
15115
- * identity display name). A record with NO label passes (nothing to
15116
- * exclude), unlike the include variant which fails on an absent label.
15464
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
15465
+ * the same id members and the same lazy name→id migration. A record with NO
15466
+ * identity passes (nothing to exclude), unlike the include variant which
15467
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
15117
15468
  */
15118
15469
  identitiesExclude: array(string().min(1)).optional(),
15119
15470
  /**
@@ -15505,7 +15856,80 @@ var NcRuleInputSchema = object({
15505
15856
  * a rule that predates the gate must keep delivering byte-for-byte as it
15506
15857
  * did, and absent is the only way to say that without a migration.
15507
15858
  */
15508
- confirm: NcConfirmSchema.optional()
15859
+ confirm: NcConfirmSchema.optional(),
15860
+ /**
15861
+ * WAIT for face/plate recognition before saying anything.
15862
+ *
15863
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15864
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15865
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15866
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15867
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15868
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15869
+ *
15870
+ * Only two honest answers exist, and this flag picks between them. It has
15871
+ * effect ONLY on a rule that declares a recognition scope
15872
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15873
+ * other rule there is nothing to wait for and the flag is inert.
15874
+ *
15875
+ * | value | what happens |
15876
+ * | --- | --- |
15877
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15878
+ * | absent / `false` | it fires at once WITHOUT the name, and if recognition lands before the track closes a SECOND, "…is Gianluca" notification follows (one per track, per rule, per target) |
15879
+ *
15880
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15881
+ * on the addon cap path, and absent has to keep meaning exactly what every
15882
+ * rule authored before this field meant.
15883
+ *
15884
+ * The cost of `true` is stated here because the editor states it too: a rule
15885
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15886
+ * tests every zone the track visited and a `crossing` condition can no longer
15887
+ * be satisfied, because a closed track carries no crossing.
15888
+ */
15889
+ waitForEnhancement: boolean().optional(),
15890
+ /**
15891
+ * GROUP a burst of subjects into ONE notification that grows.
15892
+ *
15893
+ * Seconds of quiet after the last matching subject before the burst is
15894
+ * considered over. While it is open, the first subject enqueues immediately —
15895
+ * **exactly as today, with no added latency** — and every real growth (a new
15896
+ * subject, or a name confirmed on one already in it) REPLACES that
15897
+ * notification with an updated one naming everybody. The push carries the
15898
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15899
+ *
15900
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15901
+ *
15902
+ * ### Why an idle cutoff and not a window
15903
+ *
15904
+ * The measured seven-person arrival on device 590 spans 110 s with every
15905
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15906
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15907
+ * 30 is Frigate's shipped value for the same decision.
15908
+ *
15909
+ * ### What it replaces
15910
+ *
15911
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15912
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15913
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15914
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15915
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15916
+ * budget over GROUPS — which is what it always meant — and a growth is never
15917
+ * throttled by the window its own first member spent.
15918
+ *
15919
+ * ### Interaction with {@link waitForEnhancement}
15920
+ *
15921
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15922
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15923
+ * CLOSE — already carrying its name — and grows as later members close. That
15924
+ * is later, and complete. With grouping alone the group opens on the first
15925
+ * object event and picks up names as they are confirmed, through the growth
15926
+ * path. Neither combination fires twice for one subject.
15927
+ *
15928
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15929
+ * on the addon cap path, so absent must keep meaning what it meant before this
15930
+ * field existed.
15931
+ */
15932
+ groupIdleSec: number().int().min(0).max(600).optional()
15509
15933
  });
15510
15934
  /**
15511
15935
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15612,6 +16036,7 @@ var NcConditionDescriptorSchema = object({
15612
16036
  "occupancy",
15613
16037
  "audio",
15614
16038
  "deviceState",
16039
+ "scene",
15615
16040
  "systemEvent"
15616
16041
  ]),
15617
16042
  operator: _enum([
@@ -16431,7 +16856,7 @@ var TrackEnvelopeSchema = object({
16431
16856
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16432
16857
  * keeps every scalar the list surfaces actually render (ids, class(es),
16433
16858
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16434
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16859
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16435
16860
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16436
16861
  * `getTrack`. Mirrors the event-store `projection` convention
16437
16862
  * (`getObjectEvents` et al.).
@@ -16567,7 +16992,21 @@ union([literal(1), literal(2)]);
16567
16992
  var LabelAttributionSchema = object({
16568
16993
  stepId: string(),
16569
16994
  modelId: string().optional(),
16570
- decidedAt: number()
16995
+ decidedAt: number(),
16996
+ /**
16997
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16998
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16999
+ *
17000
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
17001
+ * notification rule authored on "Gianluca" stopped matching the moment the
17002
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
17003
+ * the thing that does not move, so it is what a rule matches on
17004
+ * (`NcConditions.identities`) and the text is what a human is shown.
17005
+ *
17006
+ * Absent when the label names no gallery row — a plate the OCR read but no
17007
+ * vehicle claims, a sub-class, a species, any tier-1 value.
17008
+ */
17009
+ identityId: string().optional()
16571
17010
  });
16572
17011
  /**
16573
17012
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16704,6 +17143,28 @@ var TrackSchema = object({
16704
17143
  * `=== true` and render nothing otherwise, never infer "no face".
16705
17144
  */
16706
17145
  hasFace: boolean().optional(),
17146
+ /**
17147
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
17148
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
17149
+ * so the passage is tracked once and as a VEHICLE.
17150
+ *
17151
+ * It exists because the fold's record was dishonest. D34 and the code both
17152
+ * said "the person is not lost — it is reported so both entities stay on the
17153
+ * record"; in fact the pair went into a per-processor RAM field behind an
17154
+ * accessor nobody called, and every durable surface said `vehicle`, full
17155
+ * stop. This is the composition note that makes the row true.
17156
+ *
17157
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
17158
+ * person" is not an answer to "what is this" — both label tiers would refuse
17159
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
17160
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
17161
+ * and a `person` rule still does not fire for someone cycling past.
17162
+ *
17163
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
17164
+ * the column, and every hub that predates the field, omits it. Test
17165
+ * `=== true` and render nothing otherwise — never infer "no rider".
17166
+ */
17167
+ hasRider: boolean().optional(),
16707
17168
  ...TrackFlagFields,
16708
17169
  ...TrackRetrainFields
16709
17170
  });
@@ -17053,7 +17514,10 @@ var RecentTracksQueryInput = object({
17053
17514
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
17054
17515
  cursor: string().optional(),
17055
17516
  /** See {@link TrackProjectionSchema}. Default `full`. */
17056
- projection: TrackProjectionSchema.optional()
17517
+ projection: TrackProjectionSchema.optional(),
17518
+ /** Include stationary-promoted rows (parked objects). Default false: the
17519
+ * feed lists passages; parking records live on the stationary registry. */
17520
+ includeStationary: boolean().optional()
17057
17521
  });
17058
17522
  var RecentTracksPageSchema = object({
17059
17523
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -17271,7 +17735,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17271
17735
  zone: TrackZoneFilterSchema.optional(),
17272
17736
  /** See {@link TrackProjectionSchema}. Default `full` (backward
17273
17737
  * compatible — omitting the field keeps today's exact behaviour). */
17274
- projection: TrackProjectionSchema.optional()
17738
+ projection: TrackProjectionSchema.optional(),
17739
+ /** Include stationary-promoted rows (parked objects handed to the
17740
+ * stationary registry). Default false: the timeline lists passages,
17741
+ * not parking records (operator decision, 2026-08-15). */
17742
+ includeStationary: boolean().optional()
17275
17743
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17276
17744
  kind: "mutation",
17277
17745
  auth: "admin"
@@ -17435,11 +17903,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17435
17903
  auth: "admin"
17436
17904
  }), method(object({
17437
17905
  eventId: string(),
17438
- kind: MediaFileKindEnum.optional()
17906
+ kind: MediaFileKindEnum.optional(),
17907
+ deviceId: number()
17439
17908
  }), array(MediaFileSchema).readonly()), method(object({
17440
17909
  trackId: string(),
17441
- kinds: array(MediaFileKindEnum).optional()
17442
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17910
+ kinds: array(MediaFileKindEnum).optional(),
17911
+ deviceId: number()
17912
+ }), array(MediaFileSchema).readonly()), method(object({
17913
+ trackId: string(),
17914
+ deviceId: number()
17915
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17443
17916
  kind: "mutation",
17444
17917
  auth: "admin"
17445
17918
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -18099,6 +18572,17 @@ var maxSessionHoldMsField = {
18099
18572
  default: 12e4,
18100
18573
  step: 5e3
18101
18574
  };
18575
+ /**
18576
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18577
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18578
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18579
+ */
18580
+ var audioMotionWindowMsField = {
18581
+ min: 5e3,
18582
+ max: 6e5,
18583
+ default: 9e4,
18584
+ step: 5e3
18585
+ };
18102
18586
  var motionFpsField = {
18103
18587
  min: 1,
18104
18588
  max: 30,
@@ -18275,6 +18759,27 @@ var RunnerCameraConfigSchema = object({
18275
18759
  * resolved `CameraDetectionConfig`.
18276
18760
  */
18277
18761
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18762
+ /**
18763
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18764
+ * 'on-motion'` audio window, measured from the LAST motion event.
18765
+ *
18766
+ * This exists because the falling edge cannot be relied on. Camera-native
18767
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18768
+ * its email-push SMTP path both emit `detected: true` and never the
18769
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18770
+ * onboard-only camera a window that closed only on `detected: false` never
18771
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18772
+ * battery camera, the one failure mode the mode exists to prevent.
18773
+ *
18774
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18775
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18776
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18777
+ *
18778
+ * Not consumed by the runner: carried here so it shares the per-camera
18779
+ * device-settings surface with `motionCooldownMs`, exactly like
18780
+ * `maxSessionHoldMs`.
18781
+ */
18782
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
18278
18783
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
18279
18784
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
18280
18785
  motionStreamId: string(),
@@ -18370,7 +18875,7 @@ var RunnerCameraConfigSchema = object({
18370
18875
  */
18371
18876
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
18372
18877
  });
18373
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
18878
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
18374
18879
  /**
18375
18880
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
18376
18881
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -19386,7 +19891,16 @@ targets: array(object({
19386
19891
  /** A sleeping battery camera: the frame is deliberately stale and will
19387
19892
  * NOT refresh in the background. A surface should say so rather than
19388
19893
  * present it as current. */
19389
- sleeping: boolean()
19894
+ sleeping: boolean(),
19895
+ /** Current device state rendered over the cached frame. State images
19896
+ * remain authoritative even when their photographic background is
19897
+ * old; null means the link must carry a current camera frame. */
19898
+ stateReason: _enum([
19899
+ "disabled",
19900
+ "sleeping",
19901
+ "unreachable",
19902
+ "waking"
19903
+ ]).nullable()
19390
19904
  })));
19391
19905
  /**
19392
19906
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20912,6 +21426,25 @@ var BatteryStatusSchema = object({
20912
21426
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20913
21427
  lastUpdated: number(),
20914
21428
  /**
21429
+ * Ms epoch of the last time the device PROVED it was reachable — a
21430
+ * completed firmware round-trip, an observed wake, or an inbound push
21431
+ * (firmware event, email). `0`/absent = never since this slice was born.
21432
+ *
21433
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21434
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21435
+ * for the radio, because a poll that confirms reachability is the same
21436
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21437
+ * single derivation every consumer must use; no surface computes its own.
21438
+ *
21439
+ * It is deliberately NOT a clock in the
21440
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21441
+ * observation itself, and it is the only thing a 30-hour silence is
21442
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21443
+ * Reolink provider) so a value that means "recently" cannot cost a
21444
+ * SQLite commit per round-trip.
21445
+ */
21446
+ lastContactAt: number().optional(),
21447
+ /**
20915
21448
  * True when the source is a BINARY low-battery indicator (HA
20916
21449
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20917
21450
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -24798,14 +25331,77 @@ method(object({
24798
25331
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
24799
25332
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
24800
25333
  *
24801
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
24802
- * derives the device-detail contribution; the provider carries NO hand-written
24803
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
24804
- * every hysteresis flip / availability change; consumers never poll.
25334
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
25335
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
25336
+ * for the thing: a scene is a standing question about the property ("is the bin
25337
+ * still out"), and the operator's question is "which of my scenes have tripped",
25338
+ * across every camera at once — not "what does camera 617 think". Buried one
25339
+ * camera deep it also could not be found. The surface is now a top-level admin
25340
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
25341
+ * picks the camera inside the create flow, the same shape Events and Faces have.
25342
+ *
25343
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
25344
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
25345
+ * directions, so a registration nobody declares fails exactly as loudly as a
25346
+ * declaration nobody registers. The editor is imported directly by the page.
25347
+ *
25348
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
25349
+ * availability change; consumers never poll.
24805
25350
  */
24806
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
24807
- * be added without a wire break (matching falls back to any-condition refs). */
25351
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
25352
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
25353
+ * Open by design so more can be added without a wire break.
25354
+ *
25355
+ * Matching does NOT fall back across conditions: cross-condition cosines are
25356
+ * not comparable, so "I have never seen this scene in this light" is reported
25357
+ * as `unknown`, never guessed. A day reference scored against an IR frame
25358
+ * collapses the cosine and would latch a false alarm every single night. */
24808
25359
  var SceneConditionSchema = string();
25360
+ /**
25361
+ * What a scene does when the CURRENT light has no reference of its own.
25362
+ *
25363
+ * The lighting variants are not equally likely to exist. Almost every operator
25364
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
25365
+ * scene that is only ever going to be asked about a daytime question ("is the
25366
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
25367
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
25368
+ * working without it rather than degrading into a permanent complaint.
25369
+ *
25370
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
25371
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
25372
+ * last covered light left it at, the latch is untouched, and the hysteresis
25373
+ * run is neither spent nor cleared. The scene resumes by itself at first
25374
+ * light. This is the only behaviour under which "I never captured IR" is a
25375
+ * configuration choice instead of a nightly fault.
25376
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
25377
+ * for cameras whose IR frame is close enough to daylight (a floodlit
25378
+ * driveway, an always-white-light doorbell), and wrong for everything else:
25379
+ * cross-condition cosines are not comparable, so a day reference against a
25380
+ * true IR frame collapses and the scene reports a theft at 21:40.
25381
+ *
25382
+ * Never applies when the scene has NO comparable reference at all — that is
25383
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
25384
+ * there would hide a scene the operator never finished setting up.
25385
+ */
25386
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
25387
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
25388
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
25389
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
25390
+ * and never counts toward hysteresis in either direction. */
25391
+ var SceneVerdictSchema = _enum([
25392
+ "matched",
25393
+ "diverged",
25394
+ "unknown"
25395
+ ]);
25396
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
25397
+ * silence that reads as "nothing has happened". */
25398
+ var SceneUnavailableSchema = _enum([
25399
+ "no-reference-for-condition",
25400
+ "view-shifted",
25401
+ "no-vision-profile",
25402
+ "encoder-model-changed",
25403
+ "no-snapshot"
25404
+ ]);
24809
25405
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
24810
25406
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
24811
25407
  var SceneReferenceSchema = object({
@@ -24813,7 +25409,14 @@ var SceneReferenceSchema = object({
24813
25409
  modelId: string(),
24814
25410
  condition: SceneConditionSchema,
24815
25411
  capturedAt: number(),
24816
- thumbnailMediaId: string().optional()
25412
+ thumbnailMediaId: string().optional(),
25413
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
25414
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
25415
+ * normalized rect frame a different piece of world, and the scene would
25416
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
25417
+ * when hysteresis is about to flip — one extra encode per candidate
25418
+ * transition, not per poll. */
25419
+ anchorEmbedding: array(number()).optional()
24817
25420
  });
24818
25421
  var SceneMonitorStateSchema = object({
24819
25422
  id: string(),
@@ -24835,6 +25438,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
24835
25438
  profileId: string().optional(),
24836
25439
  hysteresisCount: number().int().positive()
24837
25440
  })]);
25441
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
25442
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
25443
+ * out in silence rather than reporting a fault every night. */
25444
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
25445
+ /**
25446
+ * Vision-model adjudication of a candidate flip. Field names deliberately
25447
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
25448
+ *
25449
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
25450
+ * fail-open: a notification suppressed is the worse error there, but a vision
25451
+ * model that timed out has not told us the bin is gone, and a latch is a
25452
+ * stateful claim that costs the operator a trip to reset.
25453
+ */
25454
+ var SceneConfirmSchema = object({
25455
+ enabled: boolean().default(false),
25456
+ prompt: string().min(1).max(1e3),
25457
+ profileId: string().optional(),
25458
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
25459
+ maxImagePx: number().int().min(64).max(2048).default(448),
25460
+ /** What a timeout / unavailable model means for the PENDING flip. */
25461
+ onTimeout: _enum(["flip", "hold"]).default("hold")
25462
+ });
24838
25463
  var SceneMonitorSchema = object({
24839
25464
  id: string(),
24840
25465
  label: string(),
@@ -24853,7 +25478,56 @@ var SceneMonitorSchema = object({
24853
25478
  lastConfidence: number().nullable(),
24854
25479
  currentCondition: SceneConditionSchema.nullable(),
24855
25480
  availability: _enum(["ok", "unavailable"]),
24856
- unavailableReason: string().nullable()
25481
+ unavailableReason: string().nullable(),
25482
+ /** Which state is "the initial screen". `null` until the first capture. */
25483
+ baselineStateId: string().nullable(),
25484
+ /** Which boolean drives notification rules and any export. */
25485
+ emit: _enum(["latched", "live"]).default("latched"),
25486
+ /** Live: does the region match the baseline RIGHT NOW. */
25487
+ verdict: SceneVerdictSchema,
25488
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
25489
+ latched: boolean(),
25490
+ /** Last reset (or creation). */
25491
+ armedAt: number(),
25492
+ divergedAt: number().nullable(),
25493
+ restoredAt: number().nullable(),
25494
+ /** A check is only COUNTED when the device has been quiet this long. Motion
25495
+ * during the window DISCARDS the observation — a car pulling up in front of
25496
+ * the bin must not be able to spend hysteresis credit. */
25497
+ quietSeconds: number().int().min(0).max(3600).default(60),
25498
+ /** An observation only advances the pending count when it is at least this
25499
+ * far from the previously counted one, so N agreeing checks span real time
25500
+ * rather than N adjacent polls inside one occlusion. */
25501
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
25502
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
25503
+ confirm: SceneConfirmSchema.optional(),
25504
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
25505
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
25506
+ /** Clear the latch on its own when the scene matches again? Default false —
25507
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
25508
+ * automation can react to the bin coming back without the operator's own
25509
+ * alarm silently clearing itself. */
25510
+ autoRestore: boolean().default(false),
25511
+ /** What to do when the current light has no reference of its own. See
25512
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
25513
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
25514
+ /**
25515
+ * The light whose checks are currently being SAT OUT under
25516
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
25517
+ *
25518
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
25519
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
25520
+ * nothing captured in this light"* in the same calm voice as the coverage
25521
+ * line, because the alternative is a scene that silently stops answering
25522
+ * after sunset with nothing anywhere saying why. A skipped check must never
25523
+ * read as a broken one.
25524
+ */
25525
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
25526
+ /** Named cause when `verdict === 'unknown'`. */
25527
+ unavailable: SceneUnavailableSchema.nullable(),
25528
+ /** Conditions that have at least one comparable reference — the coverage line
25529
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
25530
+ coveredConditions: array(SceneConditionSchema)
24857
25531
  });
24858
25532
  var SceneMonitorStatusSchema = object({
24859
25533
  monitors: array(SceneMonitorSchema),
@@ -24886,7 +25560,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24886
25560
  "both"
24887
25561
  ]).optional(),
24888
25562
  checkIntervalSec: number().optional(),
24889
- check: SceneCheckSchema.optional()
25563
+ check: SceneCheckSchema.optional(),
25564
+ emit: _enum(["latched", "live"]).optional(),
25565
+ quietSeconds: number().int().min(0).max(3600).optional(),
25566
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
25567
+ anchorThreshold: number().min(0).max(1).optional(),
25568
+ autoRestore: boolean().optional(),
25569
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
25570
+ /** `null` clears the vision-model adjudicator. */
25571
+ confirm: SceneConfirmSchema.nullable().optional()
24890
25572
  })
24891
25573
  }), _void(), {
24892
25574
  kind: "mutation",
@@ -24923,6 +25605,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24923
25605
  }), _void(), {
24924
25606
  kind: "mutation",
24925
25607
  auth: "admin"
25608
+ }), method(object({
25609
+ deviceId: number(),
25610
+ monitorId: string(),
25611
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
25612
+ recapture: boolean().optional()
25613
+ }), _void(), {
25614
+ kind: "mutation",
25615
+ auth: "admin"
24926
25616
  });
24927
25617
  /**
24928
25618
  * Per-stage gating mode applied to the zones a rule references.
@@ -25085,6 +25775,16 @@ var CamStreamDescriptorSchema = object({
25085
25775
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
25086
25776
  metadata: record(string(), unknown()).optional()
25087
25777
  });
25778
+ object({
25779
+ /** The descriptors as last built from a real camera response. Never a guess:
25780
+ * a failed or refused build writes NOTHING, so a restored catalog is always
25781
+ * one the camera itself once produced. */
25782
+ descriptors: array(CamStreamDescriptorSchema),
25783
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
25784
+ * path decide whether the camera's own awake window is worth spending on a
25785
+ * re-read. */
25786
+ lastFetchedAt: number()
25787
+ });
25088
25788
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
25089
25789
  /** One of the camera's stream profiles. */
25090
25790
  var StreamProfileSchema = _enum([
@@ -25240,12 +25940,64 @@ var NetworkAddressSchema = object({
25240
25940
  family: string(),
25241
25941
  internal: boolean()
25242
25942
  });
25943
+ /**
25944
+ * Provenance of the site coordinates, and the whole reason this is not just two
25945
+ * numbers.
25946
+ *
25947
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25948
+ * nothing overwrites it.
25949
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25950
+ * default that is right to a few kilometres beats the coarse UTC clock split
25951
+ * the sun-times consumers otherwise fall back to.
25952
+ *
25953
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25954
+ * own input will eventually trust the guess.
25955
+ */
25956
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25957
+ /**
25958
+ * The read shape: the location plus the honest state of the one-shot derivation.
25959
+ *
25960
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25961
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25962
+ * failed; the hub will NOT try again on its own — the fallback is declared
25963
+ * (consumers degrade to their own last resort) and the operator either types the
25964
+ * coordinates or presses detect.
25965
+ */
25966
+ var SiteLocationStatusSchema = object({
25967
+ location: object({
25968
+ /** WGS84 decimal degrees. */
25969
+ latitude: number().min(-90).max(90),
25970
+ longitude: number().min(-180).max(180),
25971
+ source: SiteLocationSourceSchema,
25972
+ /** Epoch ms the value was last written. */
25973
+ updatedAt: number(),
25974
+ /**
25975
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25976
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25977
+ */
25978
+ label: string().optional()
25979
+ }).nullable(),
25980
+ derivationAttemptedAt: number().nullable(),
25981
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25982
+ derivationError: string().nullable()
25983
+ });
25984
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25985
+ var SetSiteLocationInputSchema = object({
25986
+ latitude: number().min(-90).max(90),
25987
+ longitude: number().min(-180).max(180)
25988
+ }).nullable();
25243
25989
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
25244
25990
  kind: "mutation",
25245
25991
  auth: "admin"
25246
25992
  }), method(_void(), _void(), {
25247
25993
  kind: "mutation",
25248
25994
  auth: "admin"
25995
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25996
+ kind: "mutation",
25997
+ auth: "admin"
25998
+ }), method(_void(), SiteLocationStatusSchema, {
25999
+ kind: "mutation",
26000
+ auth: "admin"
25249
26001
  });
25250
26002
  object({
25251
26003
  /** True when the device's tamper switch / case-open contact is
@@ -27991,6 +28743,12 @@ Object.freeze({
27991
28743
  addonId: null,
27992
28744
  access: "create"
27993
28745
  },
28746
+ "llm.cancel": {
28747
+ capName: "llm",
28748
+ capScope: "system",
28749
+ addonId: null,
28750
+ access: "create"
28751
+ },
27994
28752
  "llm.deleteModel": {
27995
28753
  capName: "llm",
27996
28754
  capScope: "system",
@@ -28075,6 +28833,12 @@ Object.freeze({
28075
28833
  addonId: null,
28076
28834
  access: "view"
28077
28835
  },
28836
+ "llm.resolveModelRef": {
28837
+ capName: "llm",
28838
+ capScope: "system",
28839
+ addonId: null,
28840
+ access: "create"
28841
+ },
28078
28842
  "llm.setDefault": {
28079
28843
  capName: "llm",
28080
28844
  capScope: "system",
@@ -30241,6 +31005,12 @@ Object.freeze({
30241
31005
  addonId: null,
30242
31006
  access: "create"
30243
31007
  },
31008
+ "sceneMonitor.resetScene": {
31009
+ capName: "scene-monitor",
31010
+ capScope: "device",
31011
+ addonId: null,
31012
+ access: "delete"
31013
+ },
30244
31014
  "sceneMonitor.updateScene": {
30245
31015
  capName: "scene-monitor",
30246
31016
  capScope: "device",
@@ -30919,6 +31689,12 @@ Object.freeze({
30919
31689
  addonId: null,
30920
31690
  access: "create"
30921
31691
  },
31692
+ "system.detectSiteLocation": {
31693
+ capName: "system",
31694
+ capScope: "system",
31695
+ addonId: null,
31696
+ access: "create"
31697
+ },
30922
31698
  "system.featureFlags": {
30923
31699
  capName: "system",
30924
31700
  capScope: "system",
@@ -30937,6 +31713,12 @@ Object.freeze({
30937
31713
  addonId: null,
30938
31714
  access: "view"
30939
31715
  },
31716
+ "system.getSiteLocation": {
31717
+ capName: "system",
31718
+ capScope: "system",
31719
+ addonId: null,
31720
+ access: "view"
31721
+ },
30940
31722
  "system.health": {
30941
31723
  capName: "system",
30942
31724
  capScope: "system",
@@ -30961,6 +31743,12 @@ Object.freeze({
30961
31743
  addonId: null,
30962
31744
  access: "create"
30963
31745
  },
31746
+ "system.setSiteLocation": {
31747
+ capName: "system",
31748
+ capScope: "system",
31749
+ addonId: null,
31750
+ access: "create"
31751
+ },
30964
31752
  "terminalSession.adoptLegacyMonitor": {
30965
31753
  capName: "terminal-session",
30966
31754
  capScope: "system",
@@ -32443,6 +33231,11 @@ Object.freeze({
32443
33231
  form: "single",
32444
33232
  optional: false
32445
33233
  }],
33234
+ "pipelineAnalytics.getEventMedia": [{
33235
+ name: "deviceId",
33236
+ form: "single",
33237
+ optional: false
33238
+ }],
32446
33239
  "pipelineAnalytics.getKeyEvents": [{
32447
33240
  name: "deviceId",
32448
33241
  form: "single",
@@ -32473,6 +33266,11 @@ Object.freeze({
32473
33266
  form: "single",
32474
33267
  optional: false
32475
33268
  }],
33269
+ "pipelineAnalytics.getTrackMedia": [{
33270
+ name: "deviceId",
33271
+ form: "single",
33272
+ optional: false
33273
+ }],
32476
33274
  "pipelineAnalytics.getTrainingExportSummary": [{
32477
33275
  name: "deviceIds",
32478
33276
  form: "array",
@@ -32508,6 +33306,11 @@ Object.freeze({
32508
33306
  form: "array",
32509
33307
  optional: true
32510
33308
  }],
33309
+ "pipelineAnalytics.listTrackMedia": [{
33310
+ name: "deviceId",
33311
+ form: "single",
33312
+ optional: false
33313
+ }],
32511
33314
  "pipelineAnalytics.listTracks": [{
32512
33315
  name: "deviceId",
32513
33316
  form: "single",
@@ -32923,6 +33726,11 @@ Object.freeze({
32923
33726
  form: "single",
32924
33727
  optional: false
32925
33728
  }],
33729
+ "sceneMonitor.resetScene": [{
33730
+ name: "deviceId",
33731
+ form: "single",
33732
+ optional: false
33733
+ }],
32926
33734
  "sceneMonitor.updateScene": [{
32927
33735
  name: "deviceId",
32928
33736
  form: "single",
@@ -32943,6 +33751,12 @@ Object.freeze({
32943
33751
  form: "single",
32944
33752
  optional: false
32945
33753
  }],
33754
+ "snapshot.getSnapshotLinks": [{
33755
+ name: "targets",
33756
+ form: "object-array",
33757
+ optional: false,
33758
+ itemField: "deviceId"
33759
+ }],
32946
33760
  "snapshot.getSnapshotOverview": [{
32947
33761
  name: "deviceIds",
32948
33762
  form: "array",