@camstack/addon-agent-ui 1.2.17 → 1.2.19

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/addon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region ../types/dist/event-category-Cv9dO26A.mjs
3
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -207,6 +207,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
207
207
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
208
208
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
209
209
  /**
210
+ * A node the orchestrator would otherwise place cameras on has NO usable
211
+ * inference device: the operator enabled one or more accelerators there and
212
+ * the live probe reports every one of them unavailable. Emitted once per
213
+ * TRANSITION into that state (never per dispatch), and the node is dropped
214
+ * from the placement candidate set for as long as it holds.
215
+ *
216
+ * This exists because the state was previously invisible: little-unraid
217
+ * absorbed 283k inference errors in a day while still being handed cameras,
218
+ * and nothing in the system said so.
219
+ *
220
+ * A node with no accelerators configured at all is NOT this — its devices
221
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
222
+ * serves it exactly as before.
223
+ */
224
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
225
+ /**
226
+ * A camera has an OPEN detection session and has produced no detection at
227
+ * all for longer than the blind threshold — the camera is being decoded and
228
+ * inferred and is returning nothing. Emitted once per transition into blind,
229
+ * per camera.
230
+ *
231
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
232
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
233
+ * camera" produce byte-identical silence.
234
+ */
235
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
236
+ /**
210
237
  * Per-camera pipeline config was mutated by the orchestrator
211
238
  * (3-level settings change via `setAgentAddonDefaults` /
212
239
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -2998,6 +3025,9 @@ function handlePipeResult(left, next, ctx) {
2998
3025
  fallback: left.fallback
2999
3026
  }, ctx);
3000
3027
  }
3028
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3029
+ $ZodPipe.init(inst, def);
3030
+ });
3001
3031
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3002
3032
  $ZodType.init(inst, def);
3003
3033
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5183,6 +5213,10 @@ function pipe(in_, out) {
5183
5213
  out
5184
5214
  });
5185
5215
  }
5216
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5217
+ ZodPipe.init(inst, def);
5218
+ $ZodPreprocess.init(inst, def);
5219
+ });
5186
5220
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5187
5221
  $ZodReadonly.init(inst, def);
5188
5222
  ZodType.init(inst, def);
@@ -5241,6 +5275,13 @@ function _instanceof(cls, params = {}) {
5241
5275
  };
5242
5276
  return inst;
5243
5277
  }
5278
+ function preprocess(fn, schema) {
5279
+ return new ZodPreprocess({
5280
+ type: "pipe",
5281
+ in: transform(fn),
5282
+ out: schema
5283
+ });
5284
+ }
5244
5285
  //#endregion
5245
5286
  //#region ../../node_modules/zod/v4/classic/compat.js
5246
5287
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10768,6 +10809,8 @@ var QueryFilterSchema = object({
10768
10809
  where: record(string(), unknown()).optional(),
10769
10810
  whereIn: record(string(), array(unknown())).optional(),
10770
10811
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10812
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10813
+ whereNot: record(string(), unknown()).optional(),
10771
10814
  orderBy: object({
10772
10815
  field: string(),
10773
10816
  direction: _enum(["asc", "desc"])
@@ -10787,7 +10830,8 @@ var QueryFilterSchema = object({
10787
10830
  var MutationFilterSchema = object({
10788
10831
  where: record(string(), unknown()).optional(),
10789
10832
  whereIn: record(string(), array(unknown())).optional(),
10790
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10833
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10834
+ whereNot: record(string(), unknown()).optional()
10791
10835
  });
10792
10836
  /** A single stored record: `{ id, data }`. */
10793
10837
  var SettingsRecordSchema = object({
@@ -12144,6 +12188,17 @@ var LlmImageSchema = object({
12144
12188
  bytes: _instanceof(Uint8Array),
12145
12189
  mimeType: string()
12146
12190
  });
12191
+ /**
12192
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12193
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12194
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12195
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12196
+ */
12197
+ var LlmRetryPolicySchema = object({
12198
+ enabled: boolean().default(false),
12199
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12200
+ maxAttempts: number().int().min(1).max(5).default(1)
12201
+ });
12147
12202
  var LlmGenerateBaseInputSchema = object({
12148
12203
  /** Collection routing (the notification-output posture). */
12149
12204
  addonId: string().optional(),
@@ -12158,7 +12213,28 @@ var LlmGenerateBaseInputSchema = object({
12158
12213
  jsonSchema: record(string(), unknown()).optional(),
12159
12214
  /** Per-call override of the profile default. */
12160
12215
  maxTokens: number().int().positive().optional(),
12161
- temperature: number().optional()
12216
+ temperature: number().optional(),
12217
+ /** Per-call override of the profile default (nucleus sampling). */
12218
+ topP: number().min(0).max(1).optional(),
12219
+ /** Per-call override of the profile default (top-k sampling). */
12220
+ topK: number().int().positive().optional(),
12221
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12222
+ timeoutMs: number().int().positive().optional(),
12223
+ /** Per-call override; beats both the consumer table and the profile. */
12224
+ retry: LlmRetryPolicySchema.optional(),
12225
+ /**
12226
+ * Caller-minted id that makes this generation CANCELLABLE.
12227
+ *
12228
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12229
+ * the call against 8 s and free their own slot when the timer wins, while the
12230
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12231
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12232
+ * not generations, and the real load is unbounded.
12233
+ *
12234
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12235
+ * `llm.cancel({ requestId })` tears the socket down.
12236
+ */
12237
+ requestId: string().optional()
12162
12238
  });
12163
12239
  /**
12164
12240
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12171,6 +12247,18 @@ var LlmGenerateBaseInputSchema = object({
12171
12247
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12172
12248
  * watchdog — operator decision #3).
12173
12249
  */
12250
+ /**
12251
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12252
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12253
+ * REF rather than looked up at install time, so what the operator approved in
12254
+ * the preview is exactly what the node downloads.
12255
+ */
12256
+ var ManagedModelExtraFileSchema = object({
12257
+ url: string(),
12258
+ filename: string(),
12259
+ sizeBytes: number(),
12260
+ sha256: string().optional()
12261
+ });
12174
12262
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12175
12263
  object({
12176
12264
  kind: literal("catalog"),
@@ -12179,7 +12267,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12179
12267
  object({
12180
12268
  kind: literal("url"),
12181
12269
  url: string(),
12182
- sha256: string().optional()
12270
+ sha256: string().optional(),
12271
+ /** Picker/status label; the file basename when absent. */
12272
+ label: string().optional(),
12273
+ sizeBytes: number().optional(),
12274
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12183
12275
  }),
12184
12276
  object({
12185
12277
  kind: literal("path"),
@@ -12197,13 +12289,82 @@ var ManagedRuntimeConfigSchema = object({
12197
12289
  gpuLayers: number().int().default(0),
12198
12290
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12199
12291
  threads: number().int().optional(),
12200
- /** Concurrent slots. */
12292
+ /** Concurrent slots (`--parallel`). */
12201
12293
  parallel: number().int().default(1),
12294
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12295
+ batchSize: number().int().positive().optional(),
12296
+ /** Physical batch / micro-batch (`-ub`). */
12297
+ ubatchSize: number().int().positive().optional(),
12298
+ /**
12299
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12300
+ * is a no-op elsewhere, so it is offered rather than assumed.
12301
+ */
12302
+ flashAttention: boolean().default(false),
12303
+ /**
12304
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12305
+ * inference. Costs the full model size in resident memory — which is exactly
12306
+ * what the RAM budget is counting.
12307
+ */
12308
+ mlock: boolean().default(false),
12309
+ /**
12310
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12311
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12312
+ * store produces on every first token.
12313
+ */
12314
+ noMmap: boolean().default(false),
12315
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12316
+ * cheapest way to fit a longer context in the same RAM. */
12317
+ cacheTypeK: _enum([
12318
+ "f32",
12319
+ "f16",
12320
+ "q8_0",
12321
+ "q5_1",
12322
+ "q5_0",
12323
+ "q4_1",
12324
+ "q4_0"
12325
+ ]).optional(),
12326
+ cacheTypeV: _enum([
12327
+ "f32",
12328
+ "f16",
12329
+ "q8_0",
12330
+ "q5_1",
12331
+ "q5_0",
12332
+ "q4_1",
12333
+ "q4_0"
12334
+ ]).optional(),
12335
+ /**
12336
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12337
+ * (which most vision chat templates need and some language-only models
12338
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12339
+ *
12340
+ * It is NOT a second place to set the flags above. A token that collides
12341
+ * with a typed field is REJECTED at start, naming the field that owns it
12342
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12343
+ * the "two switches that disagree" failure this repo has already shipped
12344
+ * twice (D62).
12345
+ */
12346
+ extraArgs: array(string()).default([]),
12202
12347
  /** Else lazy: first generate boots it. */
12203
12348
  autoStart: boolean().default(false),
12204
12349
  /** 0 = never; frees RAM after quiet periods. */
12205
12350
  idleStopMinutes: number().int().default(30)
12206
12351
  });
12352
+ /**
12353
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12354
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12355
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12356
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12357
+ */
12358
+ var LlmDownloadProgressSchema = object({
12359
+ phase: _enum(["downloading", "verifying"]),
12360
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12361
+ file: string(),
12362
+ fileIndex: number().int(),
12363
+ fileCount: number().int(),
12364
+ /** Across the WHOLE install, not the current file. */
12365
+ downloadedBytes: number(),
12366
+ totalBytes: number().optional()
12367
+ });
12207
12368
  var LlmRuntimeStatusSchema = object({
12208
12369
  /** Status is ALWAYS node-qualified. */
12209
12370
  nodeId: string(),
@@ -12220,6 +12381,8 @@ var LlmRuntimeStatusSchema = object({
12220
12381
  modelPath: string().optional(),
12221
12382
  modelId: string().optional(),
12222
12383
  downloadProgress: number().min(0).max(1).optional(),
12384
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12385
+ download: LlmDownloadProgressSchema.optional(),
12223
12386
  lastError: string().optional(),
12224
12387
  crashesInWindow: number(),
12225
12388
  /** Child RSS (sampled best-effort). */
@@ -12230,7 +12393,14 @@ var LlmNodeModelSchema = object({
12230
12393
  file: string(),
12231
12394
  sizeBytes: number(),
12232
12395
  catalogId: string().optional(),
12233
- installedAt: number().optional()
12396
+ installedAt: number().optional(),
12397
+ /**
12398
+ * Absolute path on the node. Present so a file that is on disk but matches
12399
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12400
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12401
+ * it the picker could list such a file and do nothing with it.
12402
+ */
12403
+ path: string().optional()
12234
12404
  });
12235
12405
  var LlmRuntimeDiskUsageSchema = object({
12236
12406
  nodeId: string(),
@@ -12286,10 +12456,47 @@ var LlmProfileSchema = object({
12286
12456
  baseUrl: string().optional(),
12287
12457
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12288
12458
  apiKey: string().optional(),
12459
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12460
+ * degraded to text — that shipped once and produced a confident answer to a
12461
+ * question about a picture nobody sent. */
12289
12462
  supportsVision: boolean(),
12290
12463
  temperature: number().min(0).max(2).optional(),
12464
+ /** Nucleus sampling. Every wire we speak has it. */
12465
+ topP: number().min(0).max(1).optional(),
12466
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12467
+ * wire does, and the client drops it there (measured: the request body gets
12468
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12469
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12470
+ topK: number().int().positive().optional(),
12291
12471
  maxTokens: number().int().positive().optional(),
12472
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12473
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12474
+ * the model with, so it is the one field that changes a PROCESS. */
12475
+ contextLength: number().int().positive().optional(),
12476
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12477
+ * two system prompts fighting is worse than either alone). */
12478
+ systemPrompt: string().optional(),
12479
+ /** Total generation bound — the only one a unary call has. */
12292
12480
  timeoutMs: number().int().positive().default(6e4),
12481
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12482
+ * response headers: on the LM Studio / llama-server wire those are written
12483
+ * once the model has finished loading, so they belong to the bound below. */
12484
+ connectTimeoutMs: number().int().positive().default(1e4),
12485
+ /** Accepted, but no output yet — response headers included, because a cold
12486
+ * GPU load is exactly what happens before them. */
12487
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12488
+ /** Output started then stopped. */
12489
+ idleTimeoutMs: number().int().positive().default(6e4),
12490
+ /** Profile-level default. The per-consumer table and a per-call override
12491
+ * both beat it — see `resolveRetryPolicy`. */
12492
+ retry: LlmRetryPolicySchema.default({
12493
+ enabled: false,
12494
+ maxAttempts: 1
12495
+ }),
12496
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12497
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12498
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12499
+ toolsEnabled: boolean().default(false),
12293
12500
  extraHeaders: record(string(), string()).optional(),
12294
12501
  /** kind === 'managed-local' only (spec §4). */
12295
12502
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12339,6 +12546,36 @@ var ManagedModelCatalogEntrySchema = object({
12339
12546
  /** Vision models: companion projector file. */
12340
12547
  mmprojUrl: string().optional()
12341
12548
  });
12549
+ /**
12550
+ * The outcome of turning one operator-typed Hugging Face reference into a
12551
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12552
+ * I will not pick for you" is a normal answer the UI has to render, not an
12553
+ * exception.
12554
+ *
12555
+ * `candidates` is the whole reason the refusal is usable — every string in it
12556
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12557
+ */
12558
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12559
+ ok: literal(true),
12560
+ /** Ready to hand to `installModel` unchanged. */
12561
+ model: ManagedModelRefSchema,
12562
+ label: string(),
12563
+ repo: string(),
12564
+ quantization: string(),
12565
+ purpose: _enum(["text", "vision"]),
12566
+ totalBytes: number(),
12567
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12568
+ * see that 0.9 GB of it is a projector they did not name. */
12569
+ extraFilenames: array(string())
12570
+ }), object({
12571
+ ok: literal(false),
12572
+ code: string(),
12573
+ message: string(),
12574
+ candidates: array(string()).optional(),
12575
+ /** Set when the refusal was only the ceiling: re-calling with
12576
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12577
+ requiredBytes: number().optional()
12578
+ })]);
12342
12579
  var LlmRuntimeNodeSchema = object({
12343
12580
  nodeId: string(),
12344
12581
  reachable: boolean(),
@@ -12351,7 +12588,10 @@ var ProfileRefInputSchema = object({
12351
12588
  addonId: string(),
12352
12589
  profileId: string()
12353
12590
  });
12354
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12591
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12592
+ addonId: string().optional(),
12593
+ requestId: string()
12594
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12355
12595
  kind: "mutation",
12356
12596
  auth: "admin"
12357
12597
  }), method(ProfileRefInputSchema, _void(), {
@@ -12372,6 +12612,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12372
12612
  consumer: string().optional(),
12373
12613
  profileId: string().optional()
12374
12614
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12615
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12616
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12617
+ ref: string(),
12618
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12619
+ maxBytes: number().positive().optional()
12620
+ }), HfModelResolutionSchema, {
12621
+ kind: "mutation",
12622
+ auth: "admin"
12623
+ }), method(object({
12375
12624
  nodeId: string(),
12376
12625
  model: ManagedModelRefSchema
12377
12626
  }), _void(), {
@@ -13981,6 +14230,8 @@ var NcSystemEventKindSchema = _enum([
13981
14230
  "stream-offline",
13982
14231
  "node-online",
13983
14232
  "node-offline",
14233
+ "node-inference-unavailable",
14234
+ "detection-blind",
13984
14235
  "addon-update-available",
13985
14236
  "server-update-available",
13986
14237
  "alarm-triggered",
@@ -14042,7 +14293,16 @@ var NcScheduleSchema = object({
14042
14293
  });
14043
14294
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14044
14295
  var NcPlateMatcherSchema = object({
14045
- values: array(string().min(1)).min(1),
14296
+ /**
14297
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14298
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14299
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14300
+ * rather than merely seen. A subject carrying no plate still fails.
14301
+ *
14302
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14303
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14304
+ */
14305
+ values: array(string().min(1)),
14046
14306
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14047
14307
  maxDistance: number().int().min(0).max(3).default(1)
14048
14308
  });
@@ -14076,28 +14336,36 @@ var NcOccupancyConditionSchema = object({
14076
14336
  /**
14077
14337
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14078
14338
  *
14079
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14080
- * reference notifier uses, so an operator moving between them re-uses what
14081
- * they already know): a rule matches when, over a sampling window of
14082
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14083
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14084
- *
14085
- * - `dbThreshold` its level is at or above this many dBFS (see
14086
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14087
- * - `labels` the classifier put at least one of these labels on it.
14088
- *
14089
- * Both are OPTIONAL and independent, which is the point of the shape: a
14090
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14091
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14092
- * is given** a window in which every sample is trivially a hit would fire on
14093
- * silence, so the engine refuses such a condition rather than notifying on
14094
- * nothing (the schema cannot express "at least one of" without becoming a
14095
- * ZodEffects the cap path would have to special-case).
14096
- *
14097
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14098
- * must be FULL before it can match a window that has been open for two
14099
- * seconds of its ten is 100% of nothing, and firing on it would make
14100
- * `samplingSeconds` decorative.
14339
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14340
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14341
+ * there is no second switch that can disagree with the first and every rule
14342
+ * authored before the decision migrates for free (`audioModeOf`):
14343
+ *
14344
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14345
+ * classifier labels with one of them. No window, no percentage:
14346
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14347
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14348
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14349
+ * reaches this condition if the classifier was already confident enough.
14350
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14351
+ * the condition: at least `hitPercent`% of the samples over
14352
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14353
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14354
+ * must be FULL before it can match a window open for two of its ten
14355
+ * seconds is 100% of nothing.
14356
+ *
14357
+ * **Why label mode has no window.** It had one, and it never fired: the
14358
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14359
+ * of them per episode, even through continuous crying. The measured maximum
14360
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14361
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14362
+ * the wrong question to ask of a sparse classifier.
14363
+ *
14364
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14365
+ * and the rule would fire on silence. The schema cannot express "exactly one
14366
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14367
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14368
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14101
14369
  *
14102
14370
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14103
14371
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14105,13 +14373,13 @@ var NcOccupancyConditionSchema = object({
14105
14373
  * an operator who typed `dog` mean the same thing.
14106
14374
  */
14107
14375
  var NcAudioConditionSchema = object({
14108
- /** Audio macro labels; absent = any sound (level-only rule). */
14376
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14109
14377
  labels: array(string().min(1)).min(1).optional(),
14110
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14378
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14111
14379
  dbThreshold: number().min(-96).max(0).optional(),
14112
- /** Percentage of the window's samples that must be hits (1–100). */
14380
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14113
14381
  hitPercent: number().int().min(1).max(100).default(60),
14114
- /** Length of the sampling window in seconds. */
14382
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14115
14383
  samplingSeconds: number().int().min(1).max(300).default(10)
14116
14384
  });
14117
14385
  /**
@@ -14249,13 +14517,81 @@ var NcRuleActionsSchema = object({
14249
14517
  */
14250
14518
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14251
14519
  });
14520
+ /**
14521
+ * "This rule applies only while `deviceId` is in one of `states`."
14522
+ *
14523
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14524
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14525
+ * make the condition lie about devices whose states have no equivalent.
14526
+ *
14527
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14528
+ * condition that fired on "I could not read it" would be worse than no gate.
14529
+ */
14530
+ var NcDeviceStateConditionSchema = object({
14531
+ deviceId: number().int(),
14532
+ /** Any of these matches. */
14533
+ states: array(string().min(1)).min(1)
14534
+ });
14535
+ /**
14536
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14537
+ *
14538
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14539
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14540
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14541
+ * already has a trigger ("tell me about a person at the front door, but only
14542
+ * while the bin is still out"). That is why it composes with every delivery
14543
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14544
+ * kind exist for it — see D159.
14545
+ *
14546
+ * ── Identity ───────────────────────────────────────────────────────────────
14547
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14548
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14549
+ * carried as a HINT for the editor and for the log line, never as part of the
14550
+ * lookup key: a rule whose hint drifted must still gate correctly.
14551
+ *
14552
+ * ── Which boolean ──────────────────────────────────────────────────────────
14553
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14554
+ * already declares which boolean drives notification rules, and a second knob
14555
+ * that could disagree with it is exactly the D62 failure. Set it only to
14556
+ * override one rule against the scene's own default.
14557
+ *
14558
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14559
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14560
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14561
+ * evidence, in either direction.
14562
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14563
+ * The latch is a durable fact about the past ("it has diverged since I armed
14564
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14565
+ * reason the operator asked for a latch.
14566
+ *
14567
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14568
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14569
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14570
+ * said out loud in the log rather than dropped in silence.
14571
+ */
14572
+ var NcSceneConditionSchema = object({
14573
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14574
+ sceneId: string().min(1),
14575
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14576
+ deviceId: number().int().optional(),
14577
+ /** The state the scene must be in for the rule to fire. */
14578
+ requiredState: _enum(["matched", "diverged"]),
14579
+ /**
14580
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14581
+ * scene's own `emit` field, which is the only place that decision belongs.
14582
+ */
14583
+ latched: boolean().optional()
14584
+ });
14252
14585
  var NcConditionsSchema = object({
14253
14586
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14254
- deviceState: object({
14255
- deviceId: number().int(),
14256
- /** Any of these matches. */
14257
- states: array(string().min(1)).min(1)
14258
- }).optional(),
14587
+ deviceState: NcDeviceStateConditionSchema.optional(),
14588
+ /**
14589
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14590
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14591
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14592
+ * {@link NcSceneCondition} and D159.
14593
+ */
14594
+ scene: NcSceneConditionSchema.optional(),
14259
14595
  /** Device scope — absent = all devices. */
14260
14596
  devices: array(number()).optional(),
14261
14597
  /** Detector class names (any overlap with the record's class set). */
@@ -14281,18 +14617,47 @@ var NcConditionsSchema = object({
14281
14617
  */
14282
14618
  labelEquals: array(string().min(1)).optional(),
14283
14619
  /**
14284
- * Identity matcher. P1 boundary: matched against the record's collapsed
14285
- * `label` (the identity display name propagated by the face pipeline) —
14286
- * identity-ID matching rides in P2 when identity ids reach the record.
14620
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14621
+ * is about recognised people at all.
14622
+ *
14623
+ * Three states, and the empty one is the point:
14624
+ *
14625
+ * | value | meaning |
14626
+ * | --- | --- |
14627
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14628
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14629
+ * | a list | only these identities |
14630
+ *
14631
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14632
+ * `devices` list is every device), applied one level down: the operator has
14633
+ * turned the face scope ON and narrowed it to nothing, which is every known
14634
+ * face. No second field states the same thing — a switch that can disagree
14635
+ * with the list under it is worse than no switch (D62).
14636
+ *
14637
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14638
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14639
+ * the operator fixed the spelling. The id reaches the record on
14640
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14641
+ * `{{label}}` renders.
14642
+ *
14643
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14644
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14645
+ * for is left as it stands and reported, never dropped. The engine also
14646
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14647
+ * migration could not resolve keeps matching exactly what it matched before.
14287
14648
  */
14288
14649
  identities: array(string().min(1)).optional(),
14289
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14650
+ /**
14651
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14652
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14653
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14654
+ */
14290
14655
  plates: NcPlateMatcherSchema.optional(),
14291
14656
  /**
14292
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14293
- * Same P1 boundary: matched against the record's collapsed `label` (the
14294
- * identity display name). A record with NO label passes (nothing to
14295
- * exclude), unlike the include variant which fails on an absent label.
14657
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14658
+ * the same id members and the same lazy name→id migration. A record with NO
14659
+ * identity passes (nothing to exclude), unlike the include variant which
14660
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14296
14661
  */
14297
14662
  identitiesExclude: array(string().min(1)).optional(),
14298
14663
  /**
@@ -14684,7 +15049,80 @@ var NcRuleInputSchema = object({
14684
15049
  * a rule that predates the gate must keep delivering byte-for-byte as it
14685
15050
  * did, and absent is the only way to say that without a migration.
14686
15051
  */
14687
- confirm: NcConfirmSchema.optional()
15052
+ confirm: NcConfirmSchema.optional(),
15053
+ /**
15054
+ * WAIT for face/plate recognition before saying anything.
15055
+ *
15056
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15057
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15058
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15059
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15060
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15061
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15062
+ *
15063
+ * Only two honest answers exist, and this flag picks between them. It has
15064
+ * effect ONLY on a rule that declares a recognition scope
15065
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15066
+ * other rule there is nothing to wait for and the flag is inert.
15067
+ *
15068
+ * | value | what happens |
15069
+ * | --- | --- |
15070
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15071
+ * | 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) |
15072
+ *
15073
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15074
+ * on the addon cap path, and absent has to keep meaning exactly what every
15075
+ * rule authored before this field meant.
15076
+ *
15077
+ * The cost of `true` is stated here because the editor states it too: a rule
15078
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15079
+ * tests every zone the track visited and a `crossing` condition can no longer
15080
+ * be satisfied, because a closed track carries no crossing.
15081
+ */
15082
+ waitForEnhancement: boolean().optional(),
15083
+ /**
15084
+ * GROUP a burst of subjects into ONE notification that grows.
15085
+ *
15086
+ * Seconds of quiet after the last matching subject before the burst is
15087
+ * considered over. While it is open, the first subject enqueues immediately —
15088
+ * **exactly as today, with no added latency** — and every real growth (a new
15089
+ * subject, or a name confirmed on one already in it) REPLACES that
15090
+ * notification with an updated one naming everybody. The push carries the
15091
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15092
+ *
15093
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15094
+ *
15095
+ * ### Why an idle cutoff and not a window
15096
+ *
15097
+ * The measured seven-person arrival on device 590 spans 110 s with every
15098
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15099
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15100
+ * 30 is Frigate's shipped value for the same decision.
15101
+ *
15102
+ * ### What it replaces
15103
+ *
15104
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15105
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15106
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15107
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15108
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15109
+ * budget over GROUPS — which is what it always meant — and a growth is never
15110
+ * throttled by the window its own first member spent.
15111
+ *
15112
+ * ### Interaction with {@link waitForEnhancement}
15113
+ *
15114
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15115
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15116
+ * CLOSE — already carrying its name — and grows as later members close. That
15117
+ * is later, and complete. With grouping alone the group opens on the first
15118
+ * object event and picks up names as they are confirmed, through the growth
15119
+ * path. Neither combination fires twice for one subject.
15120
+ *
15121
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15122
+ * on the addon cap path, so absent must keep meaning what it meant before this
15123
+ * field existed.
15124
+ */
15125
+ groupIdleSec: number().int().min(0).max(600).optional()
14688
15126
  });
14689
15127
  /**
14690
15128
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14791,6 +15229,7 @@ var NcConditionDescriptorSchema = object({
14791
15229
  "occupancy",
14792
15230
  "audio",
14793
15231
  "deviceState",
15232
+ "scene",
14794
15233
  "systemEvent"
14795
15234
  ]),
14796
15235
  operator: _enum([
@@ -15196,7 +15635,87 @@ var MethodAccessSchema = _enum([
15196
15635
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15197
15636
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15198
15637
  var CapScopeSchema = _enum(["device", "system"]);
15199
- var TokenScopeSchema = discriminatedUnion("type", [
15638
+ /**
15639
+ * DeviceSelector (scope model v3 — 2026-08-12).
15640
+ *
15641
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15642
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15643
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15644
+ * AFTER the grant was minted — no re-grant, no re-login.
15645
+ *
15646
+ * - `all` — every device in the deployment. The broad viewer/operator
15647
+ * lever without a `category` grant (a `category` grant also covers device
15648
+ * caps that carry no deviceId; `all` is specifically the device set).
15649
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15650
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15651
+ * is NOT covered until the grant is edited.
15652
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15653
+ * DYNAMIC. A device that changes type, or a new device of the type,
15654
+ * re-resolves on the next request.
15655
+ * - `locations` — every device whose operator-assigned `location` label is
15656
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15657
+ * null/unset location matches NO `locations` selector.
15658
+ */
15659
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15660
+ object({ kind: literal("all") }),
15661
+ object({
15662
+ kind: literal("ids"),
15663
+ ids: array(number().int()).min(1)
15664
+ }),
15665
+ object({
15666
+ kind: literal("types"),
15667
+ types: array(_enum(DeviceType)).min(1)
15668
+ }),
15669
+ object({
15670
+ kind: literal("locations"),
15671
+ locations: array(string().min(1)).min(1)
15672
+ })
15673
+ ]);
15674
+ var DeviceTokenScopeSchema = object({
15675
+ type: literal("device"),
15676
+ /** The device SET this grant covers — resolved against the live fleet. */
15677
+ selector: DeviceSelectorSchema,
15678
+ access: array(MethodAccessSchema).min(1),
15679
+ /**
15680
+ * Whether a grant on a PARENT device transparently covers its accessory
15681
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15682
+ * Direction is parent → children ONLY.
15683
+ *
15684
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15685
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15686
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15687
+ * operator must grant on the child, not inherit from the parent). Set it
15688
+ * explicitly to override that default per grant.
15689
+ */
15690
+ includeLinked: boolean().optional()
15691
+ });
15692
+ /**
15693
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15694
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15695
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15696
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15697
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15698
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15699
+ * migration cannot reach a JWT already in a client's hands; parse-time
15700
+ * migration covers both without a flag day. No cast — the raw object is read
15701
+ * through `Reflect.get` (its static type is `unknown`).
15702
+ */
15703
+ function migrateLegacyTokenScope(raw) {
15704
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15705
+ if (Reflect.get(raw, "type") !== "device") return raw;
15706
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15707
+ const targets = Reflect.get(raw, "targets");
15708
+ if (!Array.isArray(targets)) return raw;
15709
+ return {
15710
+ type: "device",
15711
+ selector: {
15712
+ kind: "ids",
15713
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15714
+ },
15715
+ access: Reflect.get(raw, "access")
15716
+ };
15717
+ }
15718
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15200
15719
  object({
15201
15720
  type: literal("category"),
15202
15721
  target: CapScopeSchema,
@@ -15212,18 +15731,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15212
15731
  target: string(),
15213
15732
  access: array(MethodAccessSchema).min(1)
15214
15733
  }),
15215
- object({
15216
- type: literal("device"),
15217
- /**
15218
- * One or more deviceIds (serialised as strings for wire-format
15219
- * consistency with the rest of the union). Matcher accepts if
15220
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15221
- * of one scope-per-device when granting access to a set of cameras.
15222
- */
15223
- targets: array(string()).min(1),
15224
- access: array(MethodAccessSchema).min(1)
15225
- })
15226
- ]);
15734
+ DeviceTokenScopeSchema
15735
+ ]));
15227
15736
  object({
15228
15737
  id: string(),
15229
15738
  username: string(),
@@ -15540,7 +16049,7 @@ var TrackEnvelopeSchema = object({
15540
16049
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15541
16050
  * keeps every scalar the list surfaces actually render (ids, class(es),
15542
16051
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15543
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16052
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15544
16053
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15545
16054
  * `getTrack`. Mirrors the event-store `projection` convention
15546
16055
  * (`getObjectEvents` et al.).
@@ -15676,7 +16185,21 @@ union([literal(1), literal(2)]);
15676
16185
  var LabelAttributionSchema = object({
15677
16186
  stepId: string(),
15678
16187
  modelId: string().optional(),
15679
- decidedAt: number()
16188
+ decidedAt: number(),
16189
+ /**
16190
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16191
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16192
+ *
16193
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16194
+ * notification rule authored on "Gianluca" stopped matching the moment the
16195
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16196
+ * the thing that does not move, so it is what a rule matches on
16197
+ * (`NcConditions.identities`) and the text is what a human is shown.
16198
+ *
16199
+ * Absent when the label names no gallery row — a plate the OCR read but no
16200
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16201
+ */
16202
+ identityId: string().optional()
15680
16203
  });
15681
16204
  /**
15682
16205
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15813,6 +16336,28 @@ var TrackSchema = object({
15813
16336
  * `=== true` and render nothing otherwise, never infer "no face".
15814
16337
  */
15815
16338
  hasFace: boolean().optional(),
16339
+ /**
16340
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16341
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16342
+ * so the passage is tracked once and as a VEHICLE.
16343
+ *
16344
+ * It exists because the fold's record was dishonest. D34 and the code both
16345
+ * said "the person is not lost — it is reported so both entities stay on the
16346
+ * record"; in fact the pair went into a per-processor RAM field behind an
16347
+ * accessor nobody called, and every durable surface said `vehicle`, full
16348
+ * stop. This is the composition note that makes the row true.
16349
+ *
16350
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16351
+ * person" is not an answer to "what is this" — both label tiers would refuse
16352
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16353
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16354
+ * and a `person` rule still does not fire for someone cycling past.
16355
+ *
16356
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16357
+ * the column, and every hub that predates the field, omits it. Test
16358
+ * `=== true` and render nothing otherwise — never infer "no rider".
16359
+ */
16360
+ hasRider: boolean().optional(),
15816
16361
  ...TrackFlagFields,
15817
16362
  ...TrackRetrainFields
15818
16363
  });
@@ -16162,7 +16707,10 @@ var RecentTracksQueryInput = object({
16162
16707
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16163
16708
  cursor: string().optional(),
16164
16709
  /** See {@link TrackProjectionSchema}. Default `full`. */
16165
- projection: TrackProjectionSchema.optional()
16710
+ projection: TrackProjectionSchema.optional(),
16711
+ /** Include stationary-promoted rows (parked objects). Default false: the
16712
+ * feed lists passages; parking records live on the stationary registry. */
16713
+ includeStationary: boolean().optional()
16166
16714
  });
16167
16715
  var RecentTracksPageSchema = object({
16168
16716
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16380,7 +16928,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16380
16928
  zone: TrackZoneFilterSchema.optional(),
16381
16929
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16382
16930
  * compatible — omitting the field keeps today's exact behaviour). */
16383
- projection: TrackProjectionSchema.optional()
16931
+ projection: TrackProjectionSchema.optional(),
16932
+ /** Include stationary-promoted rows (parked objects handed to the
16933
+ * stationary registry). Default false: the timeline lists passages,
16934
+ * not parking records (operator decision, 2026-08-15). */
16935
+ includeStationary: boolean().optional()
16384
16936
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16385
16937
  kind: "mutation",
16386
16938
  auth: "admin"
@@ -16544,11 +17096,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16544
17096
  auth: "admin"
16545
17097
  }), method(object({
16546
17098
  eventId: string(),
16547
- kind: MediaFileKindEnum.optional()
17099
+ kind: MediaFileKindEnum.optional(),
17100
+ deviceId: number()
16548
17101
  }), array(MediaFileSchema).readonly()), method(object({
16549
17102
  trackId: string(),
16550
- kinds: array(MediaFileKindEnum).optional()
16551
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17103
+ kinds: array(MediaFileKindEnum).optional(),
17104
+ deviceId: number()
17105
+ }), array(MediaFileSchema).readonly()), method(object({
17106
+ trackId: string(),
17107
+ deviceId: number()
17108
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16552
17109
  kind: "mutation",
16553
17110
  auth: "admin"
16554
17111
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17208,6 +17765,17 @@ var maxSessionHoldMsField = {
17208
17765
  default: 12e4,
17209
17766
  step: 5e3
17210
17767
  };
17768
+ /**
17769
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17770
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17771
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17772
+ */
17773
+ var audioMotionWindowMsField = {
17774
+ min: 5e3,
17775
+ max: 6e5,
17776
+ default: 9e4,
17777
+ step: 5e3
17778
+ };
17211
17779
  var motionFpsField = {
17212
17780
  min: 1,
17213
17781
  max: 30,
@@ -17239,7 +17807,7 @@ var detectionFpsField = {
17239
17807
  var occupancyRecheckSecField = {
17240
17808
  min: 0,
17241
17809
  max: 300,
17242
- default: 30,
17810
+ default: 300,
17243
17811
  step: 5
17244
17812
  };
17245
17813
  var occupancyRecheckFramesField = {
@@ -17384,6 +17952,27 @@ var RunnerCameraConfigSchema = object({
17384
17952
  * resolved `CameraDetectionConfig`.
17385
17953
  */
17386
17954
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
17955
+ /**
17956
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
17957
+ * 'on-motion'` audio window, measured from the LAST motion event.
17958
+ *
17959
+ * This exists because the falling edge cannot be relied on. Camera-native
17960
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
17961
+ * its email-push SMTP path both emit `detected: true` and never the
17962
+ * counterpart); only the frame-diff analyzer emits falls. So on an
17963
+ * onboard-only camera a window that closed only on `detected: false` never
17964
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
17965
+ * battery camera, the one failure mode the mode exists to prevent.
17966
+ *
17967
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
17968
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
17969
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
17970
+ *
17971
+ * Not consumed by the runner: carried here so it shares the per-camera
17972
+ * device-settings surface with `motionCooldownMs`, exactly like
17973
+ * `maxSessionHoldMs`.
17974
+ */
17975
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17387
17976
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17388
17977
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17389
17978
  motionStreamId: string(),
@@ -17479,7 +18068,7 @@ var RunnerCameraConfigSchema = object({
17479
18068
  */
17480
18069
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17481
18070
  });
17482
- 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;
18071
+ 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;
17483
18072
  /**
17484
18073
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17485
18074
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18465,7 +19054,31 @@ DeviceType.Camera, method(object({
18465
19054
  lastCapturedAt: number().nullable(),
18466
19055
  cacheAgeMs: number().nullable(),
18467
19056
  etag: string().nullable()
18468
- }))), systemMethod(object({
19057
+ }))), systemMethod(object({ deviceId: number() }), object({
19058
+ /** The battery slice as read, or null when the device has none. */
19059
+ battery: object({
19060
+ sleeping: boolean(),
19061
+ lastUpdated: number(),
19062
+ lastContactAt: number().optional()
19063
+ }).nullable(),
19064
+ /** The resolved snapshot state (what the overlay decision used). */
19065
+ state: object({
19066
+ isBattery: boolean(),
19067
+ reason: _enum([
19068
+ "disabled",
19069
+ "sleeping",
19070
+ "unreachable",
19071
+ "waking"
19072
+ ]).nullable()
19073
+ }),
19074
+ /** The cached frame behind the next paint. */
19075
+ frame: object({
19076
+ capturedAt: number().nullable(),
19077
+ ageMs: number().nullable()
19078
+ }),
19079
+ /** A wake window is currently open (the Waking overlay's source). */
19080
+ waking: boolean()
19081
+ })), systemMethod(object({
18469
19082
  /** The tiles a surface is actually rendering. One entry per (device,
18470
19083
  * width) the caller will paint — the width is snapped to the server's
18471
19084
  * ladder and becomes part of the link's SIGNED identity. */
@@ -18495,7 +19108,16 @@ targets: array(object({
18495
19108
  /** A sleeping battery camera: the frame is deliberately stale and will
18496
19109
  * NOT refresh in the background. A surface should say so rather than
18497
19110
  * present it as current. */
18498
- sleeping: boolean()
19111
+ sleeping: boolean(),
19112
+ /** Current device state rendered over the cached frame. State images
19113
+ * remain authoritative even when their photographic background is
19114
+ * old; null means the link must carry a current camera frame. */
19115
+ stateReason: _enum([
19116
+ "disabled",
19117
+ "sleeping",
19118
+ "unreachable",
19119
+ "waking"
19120
+ ]).nullable()
18499
19121
  })));
18500
19122
  /**
18501
19123
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20017,6 +20639,25 @@ var BatteryStatusSchema = object({
20017
20639
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20018
20640
  lastUpdated: number(),
20019
20641
  /**
20642
+ * Ms epoch of the last time the device PROVED it was reachable — a
20643
+ * completed firmware round-trip, an observed wake, or an inbound push
20644
+ * (firmware event, email). `0`/absent = never since this slice was born.
20645
+ *
20646
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20647
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20648
+ * for the radio, because a poll that confirms reachability is the same
20649
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20650
+ * single derivation every consumer must use; no surface computes its own.
20651
+ *
20652
+ * It is deliberately NOT a clock in the
20653
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20654
+ * observation itself, and it is the only thing a 30-hour silence is
20655
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20656
+ * Reolink provider) so a value that means "recently" cannot cost a
20657
+ * SQLite commit per round-trip.
20658
+ */
20659
+ lastContactAt: number().optional(),
20660
+ /**
20020
20661
  * True when the source is a BINARY low-battery indicator (HA
20021
20662
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20022
20663
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23554,7 +24195,7 @@ method(object({
23554
24195
  toMs: number()
23555
24196
  }), RecordingAvailabilitySchema, {
23556
24197
  kind: "query",
23557
- auth: "admin"
24198
+ auth: "protected"
23558
24199
  }), method(object({
23559
24200
  deviceId: number(),
23560
24201
  fromMs: number(),
@@ -23562,14 +24203,14 @@ method(object({
23562
24203
  tzOffsetMinutes: number()
23563
24204
  }), RecordingDaysSchema, {
23564
24205
  kind: "query",
23565
- auth: "admin"
24206
+ auth: "protected"
23566
24207
  }), method(object({
23567
24208
  deviceId: number(),
23568
24209
  fromMs: number(),
23569
24210
  toMs: number()
23570
24211
  }), RecordingManifestSchema, {
23571
24212
  kind: "query",
23572
- auth: "admin"
24213
+ auth: "protected"
23573
24214
  }), method(object({}), RecordingStorageUsageSchema, {
23574
24215
  kind: "query",
23575
24216
  auth: "admin"
@@ -23859,14 +24500,77 @@ method(object({
23859
24500
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23860
24501
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23861
24502
  *
23862
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
23863
- * derives the device-detail contribution; the provider carries NO hand-written
23864
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
23865
- * every hysteresis flip / availability change; consumers never poll.
23866
- */
23867
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23868
- * be added without a wire break (matching falls back to any-condition refs). */
24503
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24504
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24505
+ * for the thing: a scene is a standing question about the property ("is the bin
24506
+ * still out"), and the operator's question is "which of my scenes have tripped",
24507
+ * across every camera at once — not "what does camera 617 think". Buried one
24508
+ * camera deep it also could not be found. The surface is now a top-level admin
24509
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24510
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24511
+ *
24512
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24513
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24514
+ * directions, so a registration nobody declares fails exactly as loudly as a
24515
+ * declaration nobody registers. The editor is imported directly by the page.
24516
+ *
24517
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24518
+ * availability change; consumers never poll.
24519
+ */
24520
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24521
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24522
+ * Open by design so more can be added without a wire break.
24523
+ *
24524
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24525
+ * not comparable, so "I have never seen this scene in this light" is reported
24526
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24527
+ * collapses the cosine and would latch a false alarm every single night. */
23869
24528
  var SceneConditionSchema = string();
24529
+ /**
24530
+ * What a scene does when the CURRENT light has no reference of its own.
24531
+ *
24532
+ * The lighting variants are not equally likely to exist. Almost every operator
24533
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24534
+ * scene that is only ever going to be asked about a daytime question ("is the
24535
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24536
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24537
+ * working without it rather than degrading into a permanent complaint.
24538
+ *
24539
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24540
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24541
+ * last covered light left it at, the latch is untouched, and the hysteresis
24542
+ * run is neither spent nor cleared. The scene resumes by itself at first
24543
+ * light. This is the only behaviour under which "I never captured IR" is a
24544
+ * configuration choice instead of a nightly fault.
24545
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24546
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24547
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24548
+ * cross-condition cosines are not comparable, so a day reference against a
24549
+ * true IR frame collapses and the scene reports a theft at 21:40.
24550
+ *
24551
+ * Never applies when the scene has NO comparable reference at all — that is
24552
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24553
+ * there would hide a scene the operator never finished setting up.
24554
+ */
24555
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24556
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24557
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24558
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24559
+ * and never counts toward hysteresis in either direction. */
24560
+ var SceneVerdictSchema = _enum([
24561
+ "matched",
24562
+ "diverged",
24563
+ "unknown"
24564
+ ]);
24565
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24566
+ * silence that reads as "nothing has happened". */
24567
+ var SceneUnavailableSchema = _enum([
24568
+ "no-reference-for-condition",
24569
+ "view-shifted",
24570
+ "no-vision-profile",
24571
+ "encoder-model-changed",
24572
+ "no-snapshot"
24573
+ ]);
23870
24574
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23871
24575
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23872
24576
  var SceneReferenceSchema = object({
@@ -23874,7 +24578,14 @@ var SceneReferenceSchema = object({
23874
24578
  modelId: string(),
23875
24579
  condition: SceneConditionSchema,
23876
24580
  capturedAt: number(),
23877
- thumbnailMediaId: string().optional()
24581
+ thumbnailMediaId: string().optional(),
24582
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24583
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24584
+ * normalized rect frame a different piece of world, and the scene would
24585
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24586
+ * when hysteresis is about to flip — one extra encode per candidate
24587
+ * transition, not per poll. */
24588
+ anchorEmbedding: array(number()).optional()
23878
24589
  });
23879
24590
  var SceneMonitorStateSchema = object({
23880
24591
  id: string(),
@@ -23896,6 +24607,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
23896
24607
  profileId: string().optional(),
23897
24608
  hysteresisCount: number().int().positive()
23898
24609
  })]);
24610
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24611
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24612
+ * out in silence rather than reporting a fault every night. */
24613
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24614
+ /**
24615
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24616
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24617
+ *
24618
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24619
+ * fail-open: a notification suppressed is the worse error there, but a vision
24620
+ * model that timed out has not told us the bin is gone, and a latch is a
24621
+ * stateful claim that costs the operator a trip to reset.
24622
+ */
24623
+ var SceneConfirmSchema = object({
24624
+ enabled: boolean().default(false),
24625
+ prompt: string().min(1).max(1e3),
24626
+ profileId: string().optional(),
24627
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24628
+ maxImagePx: number().int().min(64).max(2048).default(448),
24629
+ /** What a timeout / unavailable model means for the PENDING flip. */
24630
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24631
+ });
23899
24632
  var SceneMonitorSchema = object({
23900
24633
  id: string(),
23901
24634
  label: string(),
@@ -23914,7 +24647,56 @@ var SceneMonitorSchema = object({
23914
24647
  lastConfidence: number().nullable(),
23915
24648
  currentCondition: SceneConditionSchema.nullable(),
23916
24649
  availability: _enum(["ok", "unavailable"]),
23917
- unavailableReason: string().nullable()
24650
+ unavailableReason: string().nullable(),
24651
+ /** Which state is "the initial screen". `null` until the first capture. */
24652
+ baselineStateId: string().nullable(),
24653
+ /** Which boolean drives notification rules and any export. */
24654
+ emit: _enum(["latched", "live"]).default("latched"),
24655
+ /** Live: does the region match the baseline RIGHT NOW. */
24656
+ verdict: SceneVerdictSchema,
24657
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24658
+ latched: boolean(),
24659
+ /** Last reset (or creation). */
24660
+ armedAt: number(),
24661
+ divergedAt: number().nullable(),
24662
+ restoredAt: number().nullable(),
24663
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24664
+ * during the window DISCARDS the observation — a car pulling up in front of
24665
+ * the bin must not be able to spend hysteresis credit. */
24666
+ quietSeconds: number().int().min(0).max(3600).default(60),
24667
+ /** An observation only advances the pending count when it is at least this
24668
+ * far from the previously counted one, so N agreeing checks span real time
24669
+ * rather than N adjacent polls inside one occlusion. */
24670
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24671
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24672
+ confirm: SceneConfirmSchema.optional(),
24673
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24674
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24675
+ /** Clear the latch on its own when the scene matches again? Default false —
24676
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24677
+ * automation can react to the bin coming back without the operator's own
24678
+ * alarm silently clearing itself. */
24679
+ autoRestore: boolean().default(false),
24680
+ /** What to do when the current light has no reference of its own. See
24681
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24682
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24683
+ /**
24684
+ * The light whose checks are currently being SAT OUT under
24685
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24686
+ *
24687
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24688
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24689
+ * nothing captured in this light"* in the same calm voice as the coverage
24690
+ * line, because the alternative is a scene that silently stops answering
24691
+ * after sunset with nothing anywhere saying why. A skipped check must never
24692
+ * read as a broken one.
24693
+ */
24694
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24695
+ /** Named cause when `verdict === 'unknown'`. */
24696
+ unavailable: SceneUnavailableSchema.nullable(),
24697
+ /** Conditions that have at least one comparable reference — the coverage line
24698
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24699
+ coveredConditions: array(SceneConditionSchema)
23918
24700
  });
23919
24701
  var SceneMonitorStatusSchema = object({
23920
24702
  monitors: array(SceneMonitorSchema),
@@ -23947,7 +24729,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
23947
24729
  "both"
23948
24730
  ]).optional(),
23949
24731
  checkIntervalSec: number().optional(),
23950
- check: SceneCheckSchema.optional()
24732
+ check: SceneCheckSchema.optional(),
24733
+ emit: _enum(["latched", "live"]).optional(),
24734
+ quietSeconds: number().int().min(0).max(3600).optional(),
24735
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24736
+ anchorThreshold: number().min(0).max(1).optional(),
24737
+ autoRestore: boolean().optional(),
24738
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24739
+ /** `null` clears the vision-model adjudicator. */
24740
+ confirm: SceneConfirmSchema.nullable().optional()
23951
24741
  })
23952
24742
  }), _void(), {
23953
24743
  kind: "mutation",
@@ -23984,6 +24774,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
23984
24774
  }), _void(), {
23985
24775
  kind: "mutation",
23986
24776
  auth: "admin"
24777
+ }), method(object({
24778
+ deviceId: number(),
24779
+ monitorId: string(),
24780
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24781
+ recapture: boolean().optional()
24782
+ }), _void(), {
24783
+ kind: "mutation",
24784
+ auth: "admin"
23987
24785
  });
23988
24786
  /**
23989
24787
  * Per-stage gating mode applied to the zones a rule references.
@@ -24137,6 +24935,16 @@ var CamStreamDescriptorSchema = object({
24137
24935
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24138
24936
  metadata: record(string(), unknown()).optional()
24139
24937
  });
24938
+ object({
24939
+ /** The descriptors as last built from a real camera response. Never a guess:
24940
+ * a failed or refused build writes NOTHING, so a restored catalog is always
24941
+ * one the camera itself once produced. */
24942
+ descriptors: array(CamStreamDescriptorSchema),
24943
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
24944
+ * path decide whether the camera's own awake window is worth spending on a
24945
+ * re-read. */
24946
+ lastFetchedAt: number()
24947
+ });
24140
24948
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24141
24949
  /** One of the camera's stream profiles. */
24142
24950
  var StreamProfileSchema = _enum([
@@ -24292,12 +25100,64 @@ var NetworkAddressSchema = object({
24292
25100
  family: string(),
24293
25101
  internal: boolean()
24294
25102
  });
25103
+ /**
25104
+ * Provenance of the site coordinates, and the whole reason this is not just two
25105
+ * numbers.
25106
+ *
25107
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25108
+ * nothing overwrites it.
25109
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25110
+ * default that is right to a few kilometres beats the coarse UTC clock split
25111
+ * the sun-times consumers otherwise fall back to.
25112
+ *
25113
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25114
+ * own input will eventually trust the guess.
25115
+ */
25116
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25117
+ /**
25118
+ * The read shape: the location plus the honest state of the one-shot derivation.
25119
+ *
25120
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25121
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25122
+ * failed; the hub will NOT try again on its own — the fallback is declared
25123
+ * (consumers degrade to their own last resort) and the operator either types the
25124
+ * coordinates or presses detect.
25125
+ */
25126
+ var SiteLocationStatusSchema = object({
25127
+ location: object({
25128
+ /** WGS84 decimal degrees. */
25129
+ latitude: number().min(-90).max(90),
25130
+ longitude: number().min(-180).max(180),
25131
+ source: SiteLocationSourceSchema,
25132
+ /** Epoch ms the value was last written. */
25133
+ updatedAt: number(),
25134
+ /**
25135
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25136
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25137
+ */
25138
+ label: string().optional()
25139
+ }).nullable(),
25140
+ derivationAttemptedAt: number().nullable(),
25141
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25142
+ derivationError: string().nullable()
25143
+ });
25144
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25145
+ var SetSiteLocationInputSchema = object({
25146
+ latitude: number().min(-90).max(90),
25147
+ longitude: number().min(-180).max(180)
25148
+ }).nullable();
24295
25149
  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(), {
24296
25150
  kind: "mutation",
24297
25151
  auth: "admin"
24298
25152
  }), method(_void(), _void(), {
24299
25153
  kind: "mutation",
24300
25154
  auth: "admin"
25155
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25156
+ kind: "mutation",
25157
+ auth: "admin"
25158
+ }), method(_void(), SiteLocationStatusSchema, {
25159
+ kind: "mutation",
25160
+ auth: "admin"
24301
25161
  });
24302
25162
  object({
24303
25163
  /** True when the device's tamper switch / case-open contact is
@@ -27027,6 +27887,12 @@ Object.freeze({
27027
27887
  addonId: null,
27028
27888
  access: "create"
27029
27889
  },
27890
+ "llm.cancel": {
27891
+ capName: "llm",
27892
+ capScope: "system",
27893
+ addonId: null,
27894
+ access: "create"
27895
+ },
27030
27896
  "llm.deleteModel": {
27031
27897
  capName: "llm",
27032
27898
  capScope: "system",
@@ -27111,6 +27977,12 @@ Object.freeze({
27111
27977
  addonId: null,
27112
27978
  access: "view"
27113
27979
  },
27980
+ "llm.resolveModelRef": {
27981
+ capName: "llm",
27982
+ capScope: "system",
27983
+ addonId: null,
27984
+ access: "create"
27985
+ },
27114
27986
  "llm.setDefault": {
27115
27987
  capName: "llm",
27116
27988
  capScope: "system",
@@ -29277,6 +30149,12 @@ Object.freeze({
29277
30149
  addonId: null,
29278
30150
  access: "create"
29279
30151
  },
30152
+ "sceneMonitor.resetScene": {
30153
+ capName: "scene-monitor",
30154
+ capScope: "device",
30155
+ addonId: null,
30156
+ access: "delete"
30157
+ },
29280
30158
  "sceneMonitor.updateScene": {
29281
30159
  capName: "scene-monitor",
29282
30160
  capScope: "device",
@@ -29415,6 +30293,12 @@ Object.freeze({
29415
30293
  addonId: null,
29416
30294
  access: "view"
29417
30295
  },
30296
+ "snapshot.getDebugState": {
30297
+ capName: "snapshot",
30298
+ capScope: "device",
30299
+ addonId: null,
30300
+ access: "view"
30301
+ },
29418
30302
  "snapshot.getSnapshot": {
29419
30303
  capName: "snapshot",
29420
30304
  capScope: "device",
@@ -29955,6 +30839,12 @@ Object.freeze({
29955
30839
  addonId: null,
29956
30840
  access: "create"
29957
30841
  },
30842
+ "system.detectSiteLocation": {
30843
+ capName: "system",
30844
+ capScope: "system",
30845
+ addonId: null,
30846
+ access: "create"
30847
+ },
29958
30848
  "system.featureFlags": {
29959
30849
  capName: "system",
29960
30850
  capScope: "system",
@@ -29973,6 +30863,12 @@ Object.freeze({
29973
30863
  addonId: null,
29974
30864
  access: "view"
29975
30865
  },
30866
+ "system.getSiteLocation": {
30867
+ capName: "system",
30868
+ capScope: "system",
30869
+ addonId: null,
30870
+ access: "view"
30871
+ },
29976
30872
  "system.health": {
29977
30873
  capName: "system",
29978
30874
  capScope: "system",
@@ -29997,6 +30893,12 @@ Object.freeze({
29997
30893
  addonId: null,
29998
30894
  access: "create"
29999
30895
  },
30896
+ "system.setSiteLocation": {
30897
+ capName: "system",
30898
+ capScope: "system",
30899
+ addonId: null,
30900
+ access: "create"
30901
+ },
30000
30902
  "terminalSession.adoptLegacyMonitor": {
30001
30903
  capName: "terminal-session",
30002
30904
  capScope: "system",
@@ -30568,6 +31470,1709 @@ Object.freeze({
30568
31470
  access: "create"
30569
31471
  }
30570
31472
  });
31473
+ Object.freeze({
31474
+ "accessories.setChildHidden": [{
31475
+ name: "childDeviceId",
31476
+ form: "single",
31477
+ optional: false
31478
+ }, {
31479
+ name: "deviceId",
31480
+ form: "single",
31481
+ optional: false
31482
+ }],
31483
+ "addonSettings.getDeviceSettings": [{
31484
+ name: "deviceId",
31485
+ form: "single",
31486
+ optional: false
31487
+ }],
31488
+ "addonSettings.updateDeviceSettings": [{
31489
+ name: "deviceId",
31490
+ form: "single",
31491
+ optional: false
31492
+ }],
31493
+ "alarmPanel.arm": [{
31494
+ name: "deviceId",
31495
+ form: "single",
31496
+ optional: false
31497
+ }],
31498
+ "alarmPanel.disarm": [{
31499
+ name: "deviceId",
31500
+ form: "single",
31501
+ optional: false
31502
+ }],
31503
+ "alarmPanel.trigger": [{
31504
+ name: "deviceId",
31505
+ form: "single",
31506
+ optional: false
31507
+ }],
31508
+ "audioAnalysis.resolveDeviceSettings": [{
31509
+ name: "deviceId",
31510
+ form: "single",
31511
+ optional: false
31512
+ }],
31513
+ "audioAnalyzer.classify": [{
31514
+ name: "deviceId",
31515
+ form: "single",
31516
+ optional: true
31517
+ }],
31518
+ "audioMetrics.getCurrentSnapshot": [{
31519
+ name: "deviceId",
31520
+ form: "single",
31521
+ optional: false
31522
+ }],
31523
+ "audioMetrics.getHistory": [{
31524
+ name: "deviceId",
31525
+ form: "single",
31526
+ optional: false
31527
+ }],
31528
+ "automationControl.disable": [{
31529
+ name: "deviceId",
31530
+ form: "single",
31531
+ optional: false
31532
+ }],
31533
+ "automationControl.enable": [{
31534
+ name: "deviceId",
31535
+ form: "single",
31536
+ optional: false
31537
+ }],
31538
+ "automationControl.trigger": [{
31539
+ name: "deviceId",
31540
+ form: "single",
31541
+ optional: false
31542
+ }],
31543
+ "battery.wakeForStream": [{
31544
+ name: "deviceId",
31545
+ form: "single",
31546
+ optional: false
31547
+ }],
31548
+ "brightness.setBrightness": [{
31549
+ name: "deviceId",
31550
+ form: "single",
31551
+ optional: false
31552
+ }],
31553
+ "button.press": [{
31554
+ name: "deviceId",
31555
+ form: "single",
31556
+ optional: false
31557
+ }],
31558
+ "cameraCredentials.getCredentials": [{
31559
+ name: "deviceId",
31560
+ form: "single",
31561
+ optional: false
31562
+ }],
31563
+ "cameraStreams.getBrokerStreams": [{
31564
+ name: "deviceId",
31565
+ form: "single",
31566
+ optional: false
31567
+ }],
31568
+ "cameraStreams.getCameraStreams": [{
31569
+ name: "deviceId",
31570
+ form: "single",
31571
+ optional: false
31572
+ }],
31573
+ "cameraStreams.getProfileRtspEntries": [{
31574
+ name: "deviceId",
31575
+ form: "single",
31576
+ optional: false
31577
+ }],
31578
+ "cameraStreams.getRtspEntries": [{
31579
+ name: "deviceId",
31580
+ form: "single",
31581
+ optional: false
31582
+ }],
31583
+ "cameraStreams.pickStream": [{
31584
+ name: "deviceId",
31585
+ form: "single",
31586
+ optional: false
31587
+ }],
31588
+ "climateControl.setFanMode": [{
31589
+ name: "deviceId",
31590
+ form: "single",
31591
+ optional: false
31592
+ }],
31593
+ "climateControl.setMode": [{
31594
+ name: "deviceId",
31595
+ form: "single",
31596
+ optional: false
31597
+ }],
31598
+ "climateControl.setPreset": [{
31599
+ name: "deviceId",
31600
+ form: "single",
31601
+ optional: false
31602
+ }],
31603
+ "climateControl.setSwingHorizontal": [{
31604
+ name: "deviceId",
31605
+ form: "single",
31606
+ optional: false
31607
+ }],
31608
+ "climateControl.setSwingVertical": [{
31609
+ name: "deviceId",
31610
+ form: "single",
31611
+ optional: false
31612
+ }],
31613
+ "climateControl.setTarget": [{
31614
+ name: "deviceId",
31615
+ form: "single",
31616
+ optional: false
31617
+ }],
31618
+ "climateControl.setTargetHumidity": [{
31619
+ name: "deviceId",
31620
+ form: "single",
31621
+ optional: false
31622
+ }],
31623
+ "climateControl.setTargetRange": [{
31624
+ name: "deviceId",
31625
+ form: "single",
31626
+ optional: false
31627
+ }],
31628
+ "color.setColor": [{
31629
+ name: "deviceId",
31630
+ form: "single",
31631
+ optional: false
31632
+ }],
31633
+ "consumables.reset": [{
31634
+ name: "deviceId",
31635
+ form: "single",
31636
+ optional: false
31637
+ }],
31638
+ "control.setValue": [{
31639
+ name: "deviceId",
31640
+ form: "single",
31641
+ optional: false
31642
+ }],
31643
+ "cover.close": [{
31644
+ name: "deviceId",
31645
+ form: "single",
31646
+ optional: false
31647
+ }],
31648
+ "cover.open": [{
31649
+ name: "deviceId",
31650
+ form: "single",
31651
+ optional: false
31652
+ }],
31653
+ "cover.setPosition": [{
31654
+ name: "deviceId",
31655
+ form: "single",
31656
+ optional: false
31657
+ }],
31658
+ "cover.setTiltPosition": [{
31659
+ name: "deviceId",
31660
+ form: "single",
31661
+ optional: false
31662
+ }],
31663
+ "cover.stop": [{
31664
+ name: "deviceId",
31665
+ form: "single",
31666
+ optional: false
31667
+ }],
31668
+ "dayNight.getOptions": [{
31669
+ name: "deviceId",
31670
+ form: "single",
31671
+ optional: false
31672
+ }],
31673
+ "dayNight.setSettings": [{
31674
+ name: "deviceId",
31675
+ form: "single",
31676
+ optional: false
31677
+ }],
31678
+ "decoder.createSession": [{
31679
+ name: "deviceId",
31680
+ form: "single",
31681
+ optional: true
31682
+ }],
31683
+ "deviceAdoption.release": [{
31684
+ name: "camDeviceId",
31685
+ form: "single",
31686
+ optional: false
31687
+ }],
31688
+ "deviceAdoption.resync": [{
31689
+ name: "camDeviceId",
31690
+ form: "single",
31691
+ optional: false
31692
+ }],
31693
+ "deviceDiscovery.adoptDevice": [{
31694
+ name: "deviceId",
31695
+ form: "single",
31696
+ optional: false
31697
+ }],
31698
+ "deviceDiscovery.listDiscovered": [{
31699
+ name: "deviceId",
31700
+ form: "single",
31701
+ optional: false
31702
+ }],
31703
+ "deviceDiscovery.refreshDiscovery": [{
31704
+ name: "deviceId",
31705
+ form: "single",
31706
+ optional: false
31707
+ }],
31708
+ "deviceDiscovery.releaseDevice": [{
31709
+ name: "childDeviceId",
31710
+ form: "single",
31711
+ optional: false
31712
+ }, {
31713
+ name: "deviceId",
31714
+ form: "single",
31715
+ optional: false
31716
+ }],
31717
+ "deviceManager.adoptionRelease": [{
31718
+ name: "camDeviceId",
31719
+ form: "single",
31720
+ optional: false
31721
+ }],
31722
+ "deviceManager.adoptionResync": [{
31723
+ name: "camDeviceId",
31724
+ form: "single",
31725
+ optional: false
31726
+ }],
31727
+ "deviceManager.applyInitialMeta": [{
31728
+ name: "deviceId",
31729
+ form: "single",
31730
+ optional: false
31731
+ }, {
31732
+ name: "linkDeviceId",
31733
+ form: "single",
31734
+ optional: true
31735
+ }],
31736
+ "deviceManager.disable": [{
31737
+ name: "deviceId",
31738
+ form: "single",
31739
+ optional: false
31740
+ }],
31741
+ "deviceManager.enable": [{
31742
+ name: "deviceId",
31743
+ form: "single",
31744
+ optional: false
31745
+ }],
31746
+ "deviceManager.getBindings": [{
31747
+ name: "deviceId",
31748
+ form: "single",
31749
+ optional: false
31750
+ }],
31751
+ "deviceManager.getChildren": [{
31752
+ name: "parentDeviceId",
31753
+ form: "single",
31754
+ optional: false
31755
+ }],
31756
+ "deviceManager.getConfigSchema": [{
31757
+ name: "deviceId",
31758
+ form: "single",
31759
+ optional: false
31760
+ }],
31761
+ "deviceManager.getDevice": [{
31762
+ name: "deviceId",
31763
+ form: "single",
31764
+ optional: false
31765
+ }],
31766
+ "deviceManager.getDeviceAggregate": [{
31767
+ name: "deviceId",
31768
+ form: "single",
31769
+ optional: false
31770
+ }],
31771
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31772
+ name: "deviceId",
31773
+ form: "single",
31774
+ optional: false
31775
+ }],
31776
+ "deviceManager.getDeviceSettingsAggregate": [{
31777
+ name: "deviceId",
31778
+ form: "single",
31779
+ optional: false
31780
+ }],
31781
+ "deviceManager.getDeviceStatusAggregate": [{
31782
+ name: "deviceId",
31783
+ form: "single",
31784
+ optional: false
31785
+ }],
31786
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31787
+ name: "deviceIds",
31788
+ form: "array",
31789
+ optional: false
31790
+ }],
31791
+ "deviceManager.getLinkedDevices": [{
31792
+ name: "deviceId",
31793
+ form: "single",
31794
+ optional: false
31795
+ }],
31796
+ "deviceManager.getSettingsSchema": [{
31797
+ name: "deviceId",
31798
+ form: "single",
31799
+ optional: false
31800
+ }],
31801
+ "deviceManager.getStreamProfileMap": [{
31802
+ name: "deviceId",
31803
+ form: "single",
31804
+ optional: false
31805
+ }],
31806
+ "deviceManager.getStreamSources": [{
31807
+ name: "deviceId",
31808
+ form: "single",
31809
+ optional: false
31810
+ }],
31811
+ "deviceManager.getWireableFields": [{
31812
+ name: "deviceId",
31813
+ form: "single",
31814
+ optional: false
31815
+ }],
31816
+ "deviceManager.loadConfig": [{
31817
+ name: "deviceId",
31818
+ form: "single",
31819
+ optional: false
31820
+ }],
31821
+ "deviceManager.loadMeta": [{
31822
+ name: "deviceId",
31823
+ form: "single",
31824
+ optional: false
31825
+ }],
31826
+ "deviceManager.loadRuntimeState": [{
31827
+ name: "deviceId",
31828
+ form: "single",
31829
+ optional: false
31830
+ }],
31831
+ "deviceManager.persistConfig": [{
31832
+ name: "deviceId",
31833
+ form: "single",
31834
+ optional: false
31835
+ }],
31836
+ "deviceManager.probeStreams": [{
31837
+ name: "deviceId",
31838
+ form: "single",
31839
+ optional: false
31840
+ }],
31841
+ "deviceManager.registerDevice": [{
31842
+ name: "parentDeviceId",
31843
+ form: "single",
31844
+ optional: true
31845
+ }],
31846
+ "deviceManager.remove": [{
31847
+ name: "deviceId",
31848
+ form: "single",
31849
+ optional: false
31850
+ }],
31851
+ "deviceManager.removeDevice": [{
31852
+ name: "deviceId",
31853
+ form: "single",
31854
+ optional: false
31855
+ }],
31856
+ "deviceManager.runDeviceAction": [{
31857
+ name: "deviceId",
31858
+ form: "single",
31859
+ optional: false
31860
+ }],
31861
+ "deviceManager.setChildLayout": [{
31862
+ name: "deviceId",
31863
+ form: "single",
31864
+ optional: false
31865
+ }],
31866
+ "deviceManager.setDisabled": [{
31867
+ name: "deviceId",
31868
+ form: "single",
31869
+ optional: false
31870
+ }],
31871
+ "deviceManager.setDisplay": [{
31872
+ name: "deviceId",
31873
+ form: "single",
31874
+ optional: false
31875
+ }],
31876
+ "deviceManager.setIntegrationId": [{
31877
+ name: "deviceId",
31878
+ form: "single",
31879
+ optional: false
31880
+ }],
31881
+ "deviceManager.setLinkDeviceId": [{
31882
+ name: "deviceId",
31883
+ form: "single",
31884
+ optional: false
31885
+ }, {
31886
+ name: "linkDeviceId",
31887
+ form: "single",
31888
+ optional: true
31889
+ }],
31890
+ "deviceManager.setLocation": [{
31891
+ name: "deviceId",
31892
+ form: "single",
31893
+ optional: false
31894
+ }],
31895
+ "deviceManager.setMetadata": [{
31896
+ name: "deviceId",
31897
+ form: "single",
31898
+ optional: false
31899
+ }],
31900
+ "deviceManager.setName": [{
31901
+ name: "deviceId",
31902
+ form: "single",
31903
+ optional: false
31904
+ }],
31905
+ "deviceManager.setPrimaryChildEntityId": [{
31906
+ name: "deviceId",
31907
+ form: "single",
31908
+ optional: false
31909
+ }],
31910
+ "deviceManager.setRole": [{
31911
+ name: "deviceId",
31912
+ form: "single",
31913
+ optional: false
31914
+ }],
31915
+ "deviceManager.setStreamProfileMap": [{
31916
+ name: "deviceId",
31917
+ form: "single",
31918
+ optional: false
31919
+ }],
31920
+ "deviceManager.setType": [{
31921
+ name: "deviceId",
31922
+ form: "single",
31923
+ optional: false
31924
+ }],
31925
+ "deviceManager.setWrapperActive": [{
31926
+ name: "deviceId",
31927
+ form: "single",
31928
+ optional: false
31929
+ }],
31930
+ "deviceManager.testField": [{
31931
+ name: "deviceId",
31932
+ form: "single",
31933
+ optional: false
31934
+ }],
31935
+ "deviceManager.updateConfig": [{
31936
+ name: "deviceId",
31937
+ form: "single",
31938
+ optional: false
31939
+ }],
31940
+ "deviceManager.updateDeviceField": [{
31941
+ name: "deviceId",
31942
+ form: "single",
31943
+ optional: false
31944
+ }],
31945
+ "deviceManager.updateDeviceFieldsBatch": [{
31946
+ name: "deviceId",
31947
+ form: "single",
31948
+ optional: false
31949
+ }],
31950
+ "deviceOps.getConfigEntries": [{
31951
+ name: "deviceId",
31952
+ form: "single",
31953
+ optional: false
31954
+ }],
31955
+ "deviceOps.getRawState": [{
31956
+ name: "deviceId",
31957
+ form: "single",
31958
+ optional: false
31959
+ }],
31960
+ "deviceOps.getSettingsSchema": [{
31961
+ name: "deviceId",
31962
+ form: "single",
31963
+ optional: false
31964
+ }],
31965
+ "deviceOps.getStreamSources": [{
31966
+ name: "deviceId",
31967
+ form: "single",
31968
+ optional: false
31969
+ }],
31970
+ "deviceOps.removeDevice": [{
31971
+ name: "deviceId",
31972
+ form: "single",
31973
+ optional: false
31974
+ }],
31975
+ "deviceOps.runAction": [{
31976
+ name: "deviceId",
31977
+ form: "single",
31978
+ optional: false
31979
+ }],
31980
+ "deviceOps.setConfig": [{
31981
+ name: "deviceId",
31982
+ form: "single",
31983
+ optional: false
31984
+ }],
31985
+ "deviceState.getCapSlice": [{
31986
+ name: "deviceId",
31987
+ form: "single",
31988
+ optional: false
31989
+ }],
31990
+ "deviceState.getSnapshot": [{
31991
+ name: "deviceId",
31992
+ form: "single",
31993
+ optional: false
31994
+ }],
31995
+ "deviceState.setCapSlice": [{
31996
+ name: "deviceId",
31997
+ form: "single",
31998
+ optional: false
31999
+ }],
32000
+ "events.getEventClipUrl": [{
32001
+ name: "deviceId",
32002
+ form: "single",
32003
+ optional: false
32004
+ }],
32005
+ "events.getEvents": [{
32006
+ name: "deviceId",
32007
+ form: "single",
32008
+ optional: false
32009
+ }],
32010
+ "events.getEventThumbnail": [{
32011
+ name: "deviceId",
32012
+ form: "single",
32013
+ optional: false
32014
+ }],
32015
+ "faceGallery.getFaceByTrack": [{
32016
+ name: "deviceId",
32017
+ form: "single",
32018
+ optional: false
32019
+ }],
32020
+ "faceGallery.listRecentFaces": [{
32021
+ name: "deviceId",
32022
+ form: "single",
32023
+ optional: true
32024
+ }],
32025
+ "fanControl.setDirection": [{
32026
+ name: "deviceId",
32027
+ form: "single",
32028
+ optional: false
32029
+ }],
32030
+ "fanControl.setOscillating": [{
32031
+ name: "deviceId",
32032
+ form: "single",
32033
+ optional: false
32034
+ }],
32035
+ "fanControl.setPercentage": [{
32036
+ name: "deviceId",
32037
+ form: "single",
32038
+ optional: false
32039
+ }],
32040
+ "fanControl.setPreset": [{
32041
+ name: "deviceId",
32042
+ form: "single",
32043
+ optional: false
32044
+ }],
32045
+ "humidifier.setMode": [{
32046
+ name: "deviceId",
32047
+ form: "single",
32048
+ optional: false
32049
+ }],
32050
+ "humidifier.setOn": [{
32051
+ name: "deviceId",
32052
+ form: "single",
32053
+ optional: false
32054
+ }],
32055
+ "humidifier.setTargetHumidity": [{
32056
+ name: "deviceId",
32057
+ form: "single",
32058
+ optional: false
32059
+ }],
32060
+ "imageSettings.getOptions": [{
32061
+ name: "deviceId",
32062
+ form: "single",
32063
+ optional: false
32064
+ }],
32065
+ "imageSettings.setSettings": [{
32066
+ name: "deviceId",
32067
+ form: "single",
32068
+ optional: false
32069
+ }],
32070
+ "intercom.endTalkSession": [{
32071
+ name: "deviceId",
32072
+ form: "single",
32073
+ optional: false
32074
+ }],
32075
+ "intercom.handleAnswer": [{
32076
+ name: "deviceId",
32077
+ form: "single",
32078
+ optional: false
32079
+ }],
32080
+ "intercom.pushTalkAudio": [{
32081
+ name: "deviceId",
32082
+ form: "single",
32083
+ optional: false
32084
+ }],
32085
+ "intercom.startSession": [{
32086
+ name: "deviceId",
32087
+ form: "single",
32088
+ optional: false
32089
+ }],
32090
+ "intercom.startTalkSession": [{
32091
+ name: "deviceId",
32092
+ form: "single",
32093
+ optional: false
32094
+ }],
32095
+ "intercom.stopSession": [{
32096
+ name: "deviceId",
32097
+ form: "single",
32098
+ optional: false
32099
+ }],
32100
+ "lawnMowerControl.dock": [{
32101
+ name: "deviceId",
32102
+ form: "single",
32103
+ optional: false
32104
+ }],
32105
+ "lawnMowerControl.pause": [{
32106
+ name: "deviceId",
32107
+ form: "single",
32108
+ optional: false
32109
+ }],
32110
+ "lawnMowerControl.startMowing": [{
32111
+ name: "deviceId",
32112
+ form: "single",
32113
+ optional: false
32114
+ }],
32115
+ "lockControl.lock": [{
32116
+ name: "deviceId",
32117
+ form: "single",
32118
+ optional: false
32119
+ }],
32120
+ "lockControl.open": [{
32121
+ name: "deviceId",
32122
+ form: "single",
32123
+ optional: false
32124
+ }],
32125
+ "lockControl.unlock": [{
32126
+ name: "deviceId",
32127
+ form: "single",
32128
+ optional: false
32129
+ }],
32130
+ "mediaPlayer.next": [{
32131
+ name: "deviceId",
32132
+ form: "single",
32133
+ optional: false
32134
+ }],
32135
+ "mediaPlayer.pause": [{
32136
+ name: "deviceId",
32137
+ form: "single",
32138
+ optional: false
32139
+ }],
32140
+ "mediaPlayer.play": [{
32141
+ name: "deviceId",
32142
+ form: "single",
32143
+ optional: false
32144
+ }],
32145
+ "mediaPlayer.playMedia": [{
32146
+ name: "deviceId",
32147
+ form: "single",
32148
+ optional: false
32149
+ }],
32150
+ "mediaPlayer.previous": [{
32151
+ name: "deviceId",
32152
+ form: "single",
32153
+ optional: false
32154
+ }],
32155
+ "mediaPlayer.seek": [{
32156
+ name: "deviceId",
32157
+ form: "single",
32158
+ optional: false
32159
+ }],
32160
+ "mediaPlayer.selectSource": [{
32161
+ name: "deviceId",
32162
+ form: "single",
32163
+ optional: false
32164
+ }],
32165
+ "mediaPlayer.setMute": [{
32166
+ name: "deviceId",
32167
+ form: "single",
32168
+ optional: false
32169
+ }],
32170
+ "mediaPlayer.setRepeat": [{
32171
+ name: "deviceId",
32172
+ form: "single",
32173
+ optional: false
32174
+ }],
32175
+ "mediaPlayer.setShuffle": [{
32176
+ name: "deviceId",
32177
+ form: "single",
32178
+ optional: false
32179
+ }],
32180
+ "mediaPlayer.setVolume": [{
32181
+ name: "deviceId",
32182
+ form: "single",
32183
+ optional: false
32184
+ }],
32185
+ "mediaPlayer.stop": [{
32186
+ name: "deviceId",
32187
+ form: "single",
32188
+ optional: false
32189
+ }],
32190
+ "motion.isDetected": [{
32191
+ name: "deviceId",
32192
+ form: "single",
32193
+ optional: false
32194
+ }],
32195
+ "motionDetection.analyze": [{
32196
+ name: "deviceId",
32197
+ form: "single",
32198
+ optional: false
32199
+ }],
32200
+ "motionDetection.removeCamera": [{
32201
+ name: "deviceId",
32202
+ form: "single",
32203
+ optional: false
32204
+ }],
32205
+ "motionTrigger.setMotionTrigger": [{
32206
+ name: "deviceId",
32207
+ form: "single",
32208
+ optional: false
32209
+ }],
32210
+ "motionZones.getOptions": [{
32211
+ name: "deviceId",
32212
+ form: "single",
32213
+ optional: false
32214
+ }],
32215
+ "motionZones.setZone": [{
32216
+ name: "deviceId",
32217
+ form: "single",
32218
+ optional: false
32219
+ }],
32220
+ "nativeObjectDetection.setEnabled": [{
32221
+ name: "deviceId",
32222
+ form: "single",
32223
+ optional: false
32224
+ }],
32225
+ "networkQuality.getDeviceStats": [{
32226
+ name: "deviceId",
32227
+ form: "single",
32228
+ optional: false
32229
+ }],
32230
+ "networkQuality.reportClientStats": [{
32231
+ name: "deviceId",
32232
+ form: "single",
32233
+ optional: false
32234
+ }],
32235
+ "notificationRules.setDeviceMuted": [{
32236
+ name: "deviceId",
32237
+ form: "single",
32238
+ optional: false
32239
+ }],
32240
+ "notifier.cancel": [{
32241
+ name: "deviceId",
32242
+ form: "single",
32243
+ optional: false
32244
+ }],
32245
+ "notifier.send": [{
32246
+ name: "deviceId",
32247
+ form: "single",
32248
+ optional: false
32249
+ }],
32250
+ "osd.setOverlay": [{
32251
+ name: "deviceId",
32252
+ form: "single",
32253
+ optional: false
32254
+ }],
32255
+ "osdManager.clearSlotBinding": [{
32256
+ name: "deviceId",
32257
+ form: "single",
32258
+ optional: false
32259
+ }],
32260
+ "osdManager.copyDeviceConfiguration": [{
32261
+ name: "sourceDeviceId",
32262
+ form: "single",
32263
+ optional: false
32264
+ }, {
32265
+ name: "targetDeviceId",
32266
+ form: "single",
32267
+ optional: false
32268
+ }],
32269
+ "osdManager.getDeviceOsd": [{
32270
+ name: "deviceId",
32271
+ form: "single",
32272
+ optional: false
32273
+ }],
32274
+ "osdManager.getSourceCatalog": [{
32275
+ name: "deviceId",
32276
+ form: "single",
32277
+ optional: false
32278
+ }],
32279
+ "osdManager.previewSlot": [{
32280
+ name: "deviceId",
32281
+ form: "single",
32282
+ optional: false
32283
+ }],
32284
+ "osdManager.renderDevice": [{
32285
+ name: "deviceId",
32286
+ form: "single",
32287
+ optional: false
32288
+ }],
32289
+ "osdManager.setSlotBinding": [{
32290
+ name: "deviceId",
32291
+ form: "single",
32292
+ optional: false
32293
+ }],
32294
+ "petFeeder.callPet": [{
32295
+ name: "deviceId",
32296
+ form: "single",
32297
+ optional: false
32298
+ }],
32299
+ "petFeeder.cancelFeed": [{
32300
+ name: "deviceId",
32301
+ form: "single",
32302
+ optional: false
32303
+ }],
32304
+ "petFeeder.feed": [{
32305
+ name: "deviceId",
32306
+ form: "single",
32307
+ optional: false
32308
+ }],
32309
+ "petFeeder.markFoodReplenished": [{
32310
+ name: "deviceId",
32311
+ form: "single",
32312
+ optional: false
32313
+ }],
32314
+ "petFeeder.playSound": [{
32315
+ name: "deviceId",
32316
+ form: "single",
32317
+ optional: false
32318
+ }],
32319
+ "petFeeder.resetDesiccant": [{
32320
+ name: "deviceId",
32321
+ form: "single",
32322
+ optional: false
32323
+ }],
32324
+ "petFeeder.setChildLock": [{
32325
+ name: "deviceId",
32326
+ form: "single",
32327
+ optional: false
32328
+ }],
32329
+ "petFeeder.setFeedSound": [{
32330
+ name: "deviceId",
32331
+ form: "single",
32332
+ optional: false
32333
+ }],
32334
+ "petFeeder.setIndicatorLight": [{
32335
+ name: "deviceId",
32336
+ form: "single",
32337
+ optional: false
32338
+ }],
32339
+ "petFeeder.setVolume": [{
32340
+ name: "deviceId",
32341
+ form: "single",
32342
+ optional: false
32343
+ }],
32344
+ "pipelineAnalytics.clearTracks": [{
32345
+ name: "deviceId",
32346
+ form: "single",
32347
+ optional: false
32348
+ }],
32349
+ "pipelineAnalytics.completeRetrainTrack": [{
32350
+ name: "deviceId",
32351
+ form: "single",
32352
+ optional: false
32353
+ }],
32354
+ "pipelineAnalytics.deleteDeviceEvents": [{
32355
+ name: "deviceId",
32356
+ form: "single",
32357
+ optional: false
32358
+ }],
32359
+ "pipelineAnalytics.deleteTracks": [{
32360
+ name: "deviceId",
32361
+ form: "single",
32362
+ optional: false
32363
+ }],
32364
+ "pipelineAnalytics.deselectRetrainFrame": [{
32365
+ name: "deviceId",
32366
+ form: "single",
32367
+ optional: false
32368
+ }],
32369
+ "pipelineAnalytics.getActiveTracks": [{
32370
+ name: "deviceId",
32371
+ form: "single",
32372
+ optional: false
32373
+ }],
32374
+ "pipelineAnalytics.getAudioEvents": [{
32375
+ name: "deviceId",
32376
+ form: "single",
32377
+ optional: false
32378
+ }],
32379
+ "pipelineAnalytics.getEventDensity": [{
32380
+ name: "deviceId",
32381
+ form: "single",
32382
+ optional: false
32383
+ }],
32384
+ "pipelineAnalytics.getEventMedia": [{
32385
+ name: "deviceId",
32386
+ form: "single",
32387
+ optional: false
32388
+ }],
32389
+ "pipelineAnalytics.getKeyEvents": [{
32390
+ name: "deviceId",
32391
+ form: "single",
32392
+ optional: false
32393
+ }],
32394
+ "pipelineAnalytics.getMotionEvents": [{
32395
+ name: "deviceId",
32396
+ form: "single",
32397
+ optional: false
32398
+ }],
32399
+ "pipelineAnalytics.getObjectEvents": [{
32400
+ name: "deviceId",
32401
+ form: "single",
32402
+ optional: false
32403
+ }],
32404
+ "pipelineAnalytics.getRetrainExportUrl": [{
32405
+ name: "deviceIds",
32406
+ form: "array",
32407
+ optional: true
32408
+ }],
32409
+ "pipelineAnalytics.getSensorEvents": [{
32410
+ name: "deviceId",
32411
+ form: "single",
32412
+ optional: false
32413
+ }],
32414
+ "pipelineAnalytics.getTrack": [{
32415
+ name: "deviceId",
32416
+ form: "single",
32417
+ optional: false
32418
+ }],
32419
+ "pipelineAnalytics.getTrackMedia": [{
32420
+ name: "deviceId",
32421
+ form: "single",
32422
+ optional: false
32423
+ }],
32424
+ "pipelineAnalytics.getTrainingExportSummary": [{
32425
+ name: "deviceIds",
32426
+ form: "array",
32427
+ optional: true
32428
+ }],
32429
+ "pipelineAnalytics.getTrainingExportUrl": [{
32430
+ name: "deviceIds",
32431
+ form: "array",
32432
+ optional: true
32433
+ }],
32434
+ "pipelineAnalytics.listEventKinds": [{
32435
+ name: "deviceId",
32436
+ form: "single",
32437
+ optional: false
32438
+ }],
32439
+ "pipelineAnalytics.listEventKindsBatch": [{
32440
+ name: "deviceIds",
32441
+ form: "array",
32442
+ optional: false
32443
+ }],
32444
+ "pipelineAnalytics.listOpsLog": [{
32445
+ name: "deviceId",
32446
+ form: "single",
32447
+ optional: true
32448
+ }],
32449
+ "pipelineAnalytics.listRecentTracks": [{
32450
+ name: "deviceIds",
32451
+ form: "array",
32452
+ optional: false
32453
+ }],
32454
+ "pipelineAnalytics.listRetrainStaging": [{
32455
+ name: "deviceIds",
32456
+ form: "array",
32457
+ optional: true
32458
+ }],
32459
+ "pipelineAnalytics.listTrackMedia": [{
32460
+ name: "deviceId",
32461
+ form: "single",
32462
+ optional: false
32463
+ }],
32464
+ "pipelineAnalytics.listTracks": [{
32465
+ name: "deviceId",
32466
+ form: "single",
32467
+ optional: false
32468
+ }],
32469
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32470
+ name: "deviceId",
32471
+ form: "single",
32472
+ optional: false
32473
+ }],
32474
+ "pipelineAnalytics.pruneEventsBefore": [{
32475
+ name: "deviceId",
32476
+ form: "single",
32477
+ optional: false
32478
+ }],
32479
+ "pipelineAnalytics.pruneTracksBefore": [{
32480
+ name: "deviceId",
32481
+ form: "single",
32482
+ optional: false
32483
+ }],
32484
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32485
+ name: "deviceId",
32486
+ form: "single",
32487
+ optional: true
32488
+ }],
32489
+ "pipelineAnalytics.restageRetrainTrack": [{
32490
+ name: "deviceId",
32491
+ form: "single",
32492
+ optional: false
32493
+ }],
32494
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32495
+ name: "deviceId",
32496
+ form: "single",
32497
+ optional: false
32498
+ }],
32499
+ "pipelineAnalytics.searchObjectEvents": [{
32500
+ name: "deviceId",
32501
+ form: "single",
32502
+ optional: true
32503
+ }],
32504
+ "pipelineAnalytics.selectRetrainFrames": [{
32505
+ name: "deviceId",
32506
+ form: "single",
32507
+ optional: false
32508
+ }],
32509
+ "pipelineAnalytics.setTrackFlags": [{
32510
+ name: "deviceId",
32511
+ form: "single",
32512
+ optional: false
32513
+ }],
32514
+ "pipelineAnalytics.wipeAllAnalytics": [{
32515
+ name: "deviceId",
32516
+ form: "single",
32517
+ optional: false
32518
+ }],
32519
+ "pipelineExecutor.runPipeline": [{
32520
+ name: "deviceId",
32521
+ form: "single",
32522
+ optional: true
32523
+ }],
32524
+ "pipelineExecutor.runPipelineBatch": [{
32525
+ name: "deviceId",
32526
+ form: "single",
32527
+ optional: true
32528
+ }],
32529
+ "pipelineOrchestrator.assignAudio": [{
32530
+ name: "deviceId",
32531
+ form: "single",
32532
+ optional: false
32533
+ }],
32534
+ "pipelineOrchestrator.assignPipeline": [{
32535
+ name: "deviceId",
32536
+ form: "single",
32537
+ optional: false
32538
+ }],
32539
+ "pipelineOrchestrator.getAudioAssignment": [{
32540
+ name: "deviceId",
32541
+ form: "single",
32542
+ optional: false
32543
+ }],
32544
+ "pipelineOrchestrator.getCameraMetrics": [{
32545
+ name: "deviceId",
32546
+ form: "single",
32547
+ optional: false
32548
+ }],
32549
+ "pipelineOrchestrator.getCameraSettings": [{
32550
+ name: "deviceId",
32551
+ form: "single",
32552
+ optional: false
32553
+ }],
32554
+ "pipelineOrchestrator.getCameraStatus": [{
32555
+ name: "deviceId",
32556
+ form: "single",
32557
+ optional: false
32558
+ }],
32559
+ "pipelineOrchestrator.getCameraStatuses": [{
32560
+ name: "deviceIds",
32561
+ form: "array",
32562
+ optional: true
32563
+ }],
32564
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32565
+ name: "deviceId",
32566
+ form: "single",
32567
+ optional: false
32568
+ }],
32569
+ "pipelineOrchestrator.getCameraSwitches": [{
32570
+ name: "deviceId",
32571
+ form: "single",
32572
+ optional: false
32573
+ }],
32574
+ "pipelineOrchestrator.getPipelineAssignment": [{
32575
+ name: "deviceId",
32576
+ form: "single",
32577
+ optional: false
32578
+ }],
32579
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32580
+ name: "deviceId",
32581
+ form: "single",
32582
+ optional: false
32583
+ }],
32584
+ "pipelineOrchestrator.resolvePipeline": [{
32585
+ name: "deviceId",
32586
+ form: "single",
32587
+ optional: false
32588
+ }],
32589
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32590
+ name: "deviceId",
32591
+ form: "single",
32592
+ optional: false
32593
+ }],
32594
+ "pipelineOrchestrator.setCameraStepOverride": [{
32595
+ name: "deviceId",
32596
+ form: "single",
32597
+ optional: false
32598
+ }],
32599
+ "pipelineOrchestrator.setCameraStepToggle": [{
32600
+ name: "deviceId",
32601
+ form: "single",
32602
+ optional: false
32603
+ }],
32604
+ "pipelineOrchestrator.setCameraSwitch": [{
32605
+ name: "deviceId",
32606
+ form: "single",
32607
+ optional: false
32608
+ }],
32609
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32610
+ name: "deviceId",
32611
+ form: "single",
32612
+ optional: false
32613
+ }],
32614
+ "pipelineOrchestrator.unassignAudio": [{
32615
+ name: "deviceId",
32616
+ form: "single",
32617
+ optional: false
32618
+ }],
32619
+ "pipelineOrchestrator.unassignPipeline": [{
32620
+ name: "deviceId",
32621
+ form: "single",
32622
+ optional: false
32623
+ }],
32624
+ "pipelineRunner.attachCamera": [{
32625
+ name: "deviceId",
32626
+ form: "single",
32627
+ optional: false
32628
+ }],
32629
+ "pipelineRunner.detachCamera": [{
32630
+ name: "deviceId",
32631
+ form: "single",
32632
+ optional: false
32633
+ }],
32634
+ "pipelineRunner.getCameraMetrics": [{
32635
+ name: "deviceId",
32636
+ form: "single",
32637
+ optional: false
32638
+ }],
32639
+ "pipelineRunner.reportMotion": [{
32640
+ name: "deviceId",
32641
+ form: "single",
32642
+ optional: false
32643
+ }],
32644
+ "pipelineRunner.runDetailSubtree": [{
32645
+ name: "deviceId",
32646
+ form: "single",
32647
+ optional: false
32648
+ }],
32649
+ "pipelineRunner.runStatelessStep": [{
32650
+ name: "sourceDeviceId",
32651
+ form: "single",
32652
+ optional: false
32653
+ }],
32654
+ "plateGallery.getPlateByTrack": [{
32655
+ name: "deviceId",
32656
+ form: "single",
32657
+ optional: false
32658
+ }],
32659
+ "plateGallery.listPlates": [{
32660
+ name: "deviceId",
32661
+ form: "single",
32662
+ optional: true
32663
+ }],
32664
+ "privacyMask.getOptions": [{
32665
+ name: "deviceId",
32666
+ form: "single",
32667
+ optional: false
32668
+ }],
32669
+ "privacyMask.setAudioEnabled": [{
32670
+ name: "deviceId",
32671
+ form: "single",
32672
+ optional: false
32673
+ }],
32674
+ "privacyMask.setMask": [{
32675
+ name: "deviceId",
32676
+ form: "single",
32677
+ optional: false
32678
+ }],
32679
+ "ptz.continuousMove": [{
32680
+ name: "deviceId",
32681
+ form: "single",
32682
+ optional: false
32683
+ }],
32684
+ "ptz.deletePreset": [{
32685
+ name: "deviceId",
32686
+ form: "single",
32687
+ optional: false
32688
+ }],
32689
+ "ptz.getOptions": [{
32690
+ name: "deviceId",
32691
+ form: "single",
32692
+ optional: false
32693
+ }],
32694
+ "ptz.getPosition": [{
32695
+ name: "deviceId",
32696
+ form: "single",
32697
+ optional: false
32698
+ }],
32699
+ "ptz.getPresets": [{
32700
+ name: "deviceId",
32701
+ form: "single",
32702
+ optional: false
32703
+ }],
32704
+ "ptz.goHome": [{
32705
+ name: "deviceId",
32706
+ form: "single",
32707
+ optional: false
32708
+ }],
32709
+ "ptz.goToPreset": [{
32710
+ name: "deviceId",
32711
+ form: "single",
32712
+ optional: false
32713
+ }],
32714
+ "ptz.move": [{
32715
+ name: "deviceId",
32716
+ form: "single",
32717
+ optional: false
32718
+ }],
32719
+ "ptz.savePreset": [{
32720
+ name: "deviceId",
32721
+ form: "single",
32722
+ optional: false
32723
+ }],
32724
+ "ptz.setAutofocus": [{
32725
+ name: "deviceId",
32726
+ form: "single",
32727
+ optional: false
32728
+ }],
32729
+ "ptz.stop": [{
32730
+ name: "deviceId",
32731
+ form: "single",
32732
+ optional: false
32733
+ }],
32734
+ "ptzAutotrack.getSettings": [{
32735
+ name: "deviceId",
32736
+ form: "single",
32737
+ optional: false
32738
+ }],
32739
+ "ptzAutotrack.getStatus": [{
32740
+ name: "deviceId",
32741
+ form: "single",
32742
+ optional: false
32743
+ }],
32744
+ "ptzAutotrack.setEnabled": [{
32745
+ name: "deviceId",
32746
+ form: "single",
32747
+ optional: false
32748
+ }],
32749
+ "ptzAutotrack.setSettings": [{
32750
+ name: "deviceId",
32751
+ form: "single",
32752
+ optional: false
32753
+ }],
32754
+ "reboot.reboot": [{
32755
+ name: "deviceId",
32756
+ form: "single",
32757
+ optional: false
32758
+ }],
32759
+ "recording.deleteFootprint": [{
32760
+ name: "deviceId",
32761
+ form: "single",
32762
+ optional: false
32763
+ }],
32764
+ "recording.getAvailability": [{
32765
+ name: "deviceId",
32766
+ form: "single",
32767
+ optional: false
32768
+ }],
32769
+ "recording.getDaysWithRecordings": [{
32770
+ name: "deviceId",
32771
+ form: "single",
32772
+ optional: false
32773
+ }],
32774
+ "recording.getDeviceConfig": [{
32775
+ name: "deviceId",
32776
+ form: "single",
32777
+ optional: false
32778
+ }],
32779
+ "recording.getPlaybackManifest": [{
32780
+ name: "deviceId",
32781
+ form: "single",
32782
+ optional: false
32783
+ }],
32784
+ "recording.listOpsLog": [{
32785
+ name: "deviceId",
32786
+ form: "single",
32787
+ optional: true
32788
+ }],
32789
+ "recording.locateSegment": [{
32790
+ name: "deviceId",
32791
+ form: "single",
32792
+ optional: false
32793
+ }],
32794
+ "recording.pruneFootage": [{
32795
+ name: "deviceId",
32796
+ form: "single",
32797
+ optional: false
32798
+ }],
32799
+ "recording.readGopBytes": [{
32800
+ name: "deviceId",
32801
+ form: "single",
32802
+ optional: false
32803
+ }],
32804
+ "recording.readSegmentBytes": [{
32805
+ name: "deviceId",
32806
+ form: "single",
32807
+ optional: false
32808
+ }],
32809
+ "recording.relocateFootage": [{
32810
+ name: "deviceId",
32811
+ form: "single",
32812
+ optional: true
32813
+ }],
32814
+ "recording.renderClip": [{
32815
+ name: "deviceId",
32816
+ form: "single",
32817
+ optional: false
32818
+ }],
32819
+ "recording.renderGif": [{
32820
+ name: "deviceId",
32821
+ form: "single",
32822
+ optional: false
32823
+ }],
32824
+ "recording.rescanStorage": [{
32825
+ name: "deviceId",
32826
+ form: "single",
32827
+ optional: false
32828
+ }],
32829
+ "recording.setDeviceConfig": [{
32830
+ name: "deviceId",
32831
+ form: "single",
32832
+ optional: false
32833
+ }],
32834
+ "recording.startStorageMigrationMove": [{
32835
+ name: "deviceId",
32836
+ form: "single",
32837
+ optional: true
32838
+ }],
32839
+ "recordingExport.createExport": [{
32840
+ name: "deviceId",
32841
+ form: "single",
32842
+ optional: false
32843
+ }],
32844
+ "recordingExport.listExports": [{
32845
+ name: "deviceId",
32846
+ form: "single",
32847
+ optional: true
32848
+ }],
32849
+ "sceneMonitor.captureReference": [{
32850
+ name: "deviceId",
32851
+ form: "single",
32852
+ optional: false
32853
+ }],
32854
+ "sceneMonitor.createScene": [{
32855
+ name: "deviceId",
32856
+ form: "single",
32857
+ optional: false
32858
+ }],
32859
+ "sceneMonitor.deleteReference": [{
32860
+ name: "deviceId",
32861
+ form: "single",
32862
+ optional: false
32863
+ }],
32864
+ "sceneMonitor.deleteScene": [{
32865
+ name: "deviceId",
32866
+ form: "single",
32867
+ optional: false
32868
+ }],
32869
+ "sceneMonitor.listScenes": [{
32870
+ name: "deviceId",
32871
+ form: "single",
32872
+ optional: false
32873
+ }],
32874
+ "sceneMonitor.recheckNow": [{
32875
+ name: "deviceId",
32876
+ form: "single",
32877
+ optional: false
32878
+ }],
32879
+ "sceneMonitor.resetScene": [{
32880
+ name: "deviceId",
32881
+ form: "single",
32882
+ optional: false
32883
+ }],
32884
+ "sceneMonitor.updateScene": [{
32885
+ name: "deviceId",
32886
+ form: "single",
32887
+ optional: false
32888
+ }],
32889
+ "scriptRunner.run": [{
32890
+ name: "deviceId",
32891
+ form: "single",
32892
+ optional: false
32893
+ }],
32894
+ "scriptRunner.stop": [{
32895
+ name: "deviceId",
32896
+ form: "single",
32897
+ optional: false
32898
+ }],
32899
+ "snapshot.getDebugState": [{
32900
+ name: "deviceId",
32901
+ form: "single",
32902
+ optional: false
32903
+ }],
32904
+ "snapshot.getSnapshot": [{
32905
+ name: "deviceId",
32906
+ form: "single",
32907
+ optional: false
32908
+ }],
32909
+ "snapshot.getSnapshotLinks": [{
32910
+ name: "targets",
32911
+ form: "object-array",
32912
+ optional: false,
32913
+ itemField: "deviceId"
32914
+ }],
32915
+ "snapshot.getSnapshotOverview": [{
32916
+ name: "deviceIds",
32917
+ form: "array",
32918
+ optional: false
32919
+ }],
32920
+ "snapshot.invalidateCache": [{
32921
+ name: "deviceId",
32922
+ form: "single",
32923
+ optional: false
32924
+ }],
32925
+ "streamBroker.acquireEgressTranscode": [{
32926
+ name: "deviceId",
32927
+ form: "single",
32928
+ optional: false
32929
+ }],
32930
+ "streamBroker.assignProfile": [{
32931
+ name: "deviceId",
32932
+ form: "single",
32933
+ optional: false
32934
+ }],
32935
+ "streamBroker.getDeviceAudioMute": [{
32936
+ name: "deviceId",
32937
+ form: "single",
32938
+ optional: false
32939
+ }],
32940
+ "streamBroker.getStreamWithCodec": [{
32941
+ name: "deviceId",
32942
+ form: "single",
32943
+ optional: false
32944
+ }],
32945
+ "streamBroker.produceEventMedia": [{
32946
+ name: "deviceId",
32947
+ form: "single",
32948
+ optional: false
32949
+ }],
32950
+ "streamBroker.publishCameraStream": [{
32951
+ name: "deviceId",
32952
+ form: "single",
32953
+ optional: false
32954
+ }],
32955
+ "streamBroker.renderPreBufferClip": [{
32956
+ name: "deviceId",
32957
+ form: "single",
32958
+ optional: false
32959
+ }],
32960
+ "streamBroker.restartProfile": [{
32961
+ name: "deviceId",
32962
+ form: "single",
32963
+ optional: false
32964
+ }],
32965
+ "streamBroker.retractCameraStream": [{
32966
+ name: "deviceId",
32967
+ form: "single",
32968
+ optional: false
32969
+ }],
32970
+ "streamBroker.setDeviceAudioMute": [{
32971
+ name: "deviceId",
32972
+ form: "single",
32973
+ optional: false
32974
+ }],
32975
+ "streamBroker.unassignProfile": [{
32976
+ name: "deviceId",
32977
+ form: "single",
32978
+ optional: false
32979
+ }],
32980
+ "streamCatalog.getCatalog": [{
32981
+ name: "deviceId",
32982
+ form: "single",
32983
+ optional: false
32984
+ }],
32985
+ "streamParams.getConfigSchema": [{
32986
+ name: "deviceId",
32987
+ form: "single",
32988
+ optional: false
32989
+ }],
32990
+ "streamParams.getOptions": [{
32991
+ name: "deviceId",
32992
+ form: "single",
32993
+ optional: false
32994
+ }],
32995
+ "streamParams.setProfile": [{
32996
+ name: "deviceId",
32997
+ form: "single",
32998
+ optional: false
32999
+ }],
33000
+ "switch.setState": [{
33001
+ name: "deviceId",
33002
+ form: "single",
33003
+ optional: false
33004
+ }],
33005
+ "vacuumControl.locate": [{
33006
+ name: "deviceId",
33007
+ form: "single",
33008
+ optional: false
33009
+ }],
33010
+ "vacuumControl.pause": [{
33011
+ name: "deviceId",
33012
+ form: "single",
33013
+ optional: false
33014
+ }],
33015
+ "vacuumControl.returnToBase": [{
33016
+ name: "deviceId",
33017
+ form: "single",
33018
+ optional: false
33019
+ }],
33020
+ "vacuumControl.setFanSpeed": [{
33021
+ name: "deviceId",
33022
+ form: "single",
33023
+ optional: false
33024
+ }],
33025
+ "vacuumControl.start": [{
33026
+ name: "deviceId",
33027
+ form: "single",
33028
+ optional: false
33029
+ }],
33030
+ "vacuumControl.stop": [{
33031
+ name: "deviceId",
33032
+ form: "single",
33033
+ optional: false
33034
+ }],
33035
+ "valve.close": [{
33036
+ name: "deviceId",
33037
+ form: "single",
33038
+ optional: false
33039
+ }],
33040
+ "valve.open": [{
33041
+ name: "deviceId",
33042
+ form: "single",
33043
+ optional: false
33044
+ }],
33045
+ "valve.setPosition": [{
33046
+ name: "deviceId",
33047
+ form: "single",
33048
+ optional: false
33049
+ }],
33050
+ "valve.stop": [{
33051
+ name: "deviceId",
33052
+ form: "single",
33053
+ optional: false
33054
+ }],
33055
+ "videoclips.getClipPlayback": [{
33056
+ name: "deviceId",
33057
+ form: "single",
33058
+ optional: false
33059
+ }],
33060
+ "videoclips.listClips": [{
33061
+ name: "deviceId",
33062
+ form: "single",
33063
+ optional: false
33064
+ }],
33065
+ "waterHeater.setAway": [{
33066
+ name: "deviceId",
33067
+ form: "single",
33068
+ optional: false
33069
+ }],
33070
+ "waterHeater.setOperationMode": [{
33071
+ name: "deviceId",
33072
+ form: "single",
33073
+ optional: false
33074
+ }],
33075
+ "waterHeater.setTargetTemp": [{
33076
+ name: "deviceId",
33077
+ form: "single",
33078
+ optional: false
33079
+ }],
33080
+ "webrtcSession.addIceCandidate": [{
33081
+ name: "deviceId",
33082
+ form: "single",
33083
+ optional: false
33084
+ }],
33085
+ "webrtcSession.closeSession": [{
33086
+ name: "deviceId",
33087
+ form: "single",
33088
+ optional: false
33089
+ }],
33090
+ "webrtcSession.createSession": [{
33091
+ name: "deviceId",
33092
+ form: "single",
33093
+ optional: false
33094
+ }],
33095
+ "webrtcSession.getIceCandidates": [{
33096
+ name: "deviceId",
33097
+ form: "single",
33098
+ optional: false
33099
+ }],
33100
+ "webrtcSession.getSessionState": [{
33101
+ name: "deviceId",
33102
+ form: "single",
33103
+ optional: false
33104
+ }],
33105
+ "webrtcSession.handleAnswer": [{
33106
+ name: "deviceId",
33107
+ form: "single",
33108
+ optional: false
33109
+ }],
33110
+ "webrtcSession.handleOffer": [{
33111
+ name: "deviceId",
33112
+ form: "single",
33113
+ optional: false
33114
+ }],
33115
+ "webrtcSession.hasAdaptiveBitrate": [{
33116
+ name: "deviceId",
33117
+ form: "single",
33118
+ optional: false
33119
+ }],
33120
+ "webrtcSession.listStreams": [{
33121
+ name: "deviceId",
33122
+ form: "single",
33123
+ optional: false
33124
+ }],
33125
+ "zoneAnalytics.getCameraHistory": [{
33126
+ name: "deviceId",
33127
+ form: "single",
33128
+ optional: false
33129
+ }],
33130
+ "zoneAnalytics.getCurrentSnapshot": [{
33131
+ name: "deviceId",
33132
+ form: "single",
33133
+ optional: false
33134
+ }],
33135
+ "zoneAnalytics.getUnzonedHistory": [{
33136
+ name: "deviceId",
33137
+ form: "single",
33138
+ optional: false
33139
+ }],
33140
+ "zoneAnalytics.getZoneHistory": [{
33141
+ name: "deviceId",
33142
+ form: "single",
33143
+ optional: false
33144
+ }],
33145
+ "zoneRules.listRules": [{
33146
+ name: "deviceId",
33147
+ form: "single",
33148
+ optional: false
33149
+ }],
33150
+ "zoneRules.setRules": [{
33151
+ name: "deviceId",
33152
+ form: "single",
33153
+ optional: false
33154
+ }],
33155
+ "zones.addZone": [{
33156
+ name: "deviceId",
33157
+ form: "single",
33158
+ optional: false
33159
+ }],
33160
+ "zones.listZones": [{
33161
+ name: "deviceId",
33162
+ form: "single",
33163
+ optional: false
33164
+ }],
33165
+ "zones.removeZone": [{
33166
+ name: "deviceId",
33167
+ form: "single",
33168
+ optional: false
33169
+ }],
33170
+ "zones.updateZone": [{
33171
+ name: "deviceId",
33172
+ form: "single",
33173
+ optional: false
33174
+ }]
33175
+ });
30571
33176
  Object.freeze({
30572
33177
  "broker": "broker",
30573
33178
  "device-export": "device-export",
@@ -30967,7 +33572,7 @@ var AgentUIAddon = class extends BaseAddon {
30967
33572
  capability: adminUiCapability,
30968
33573
  provider: {
30969
33574
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
30970
- getVersion: async () => ({ version: "1.2.17" })
33575
+ getVersion: async () => ({ version: "1.2.19" })
30971
33576
  }
30972
33577
  }];
30973
33578
  }