@camstack/addon-notifiers 1.2.21 → 1.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2690 -85
  2. package/dist/addon.mjs +2690 -85
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -29,7 +29,7 @@ let node_fs = require("node:fs");
29
29
  let node_path = require("node:path");
30
30
  node_path = __toESM(node_path);
31
31
  let node_url = require("node:url");
32
- //#region ../types/dist/event-category-Cv9dO26A.mjs
32
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
33
33
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
34
34
  EventCategory["SystemBoot"] = "system.boot";
35
35
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -236,6 +236,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
236
236
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
237
237
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
238
238
  /**
239
+ * A node the orchestrator would otherwise place cameras on has NO usable
240
+ * inference device: the operator enabled one or more accelerators there and
241
+ * the live probe reports every one of them unavailable. Emitted once per
242
+ * TRANSITION into that state (never per dispatch), and the node is dropped
243
+ * from the placement candidate set for as long as it holds.
244
+ *
245
+ * This exists because the state was previously invisible: little-unraid
246
+ * absorbed 283k inference errors in a day while still being handed cameras,
247
+ * and nothing in the system said so.
248
+ *
249
+ * A node with no accelerators configured at all is NOT this — its devices
250
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
251
+ * serves it exactly as before.
252
+ */
253
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
254
+ /**
255
+ * A camera has an OPEN detection session and has produced no detection at
256
+ * all for longer than the blind threshold — the camera is being decoded and
257
+ * inferred and is returning nothing. Emitted once per transition into blind,
258
+ * per camera.
259
+ *
260
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
261
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
262
+ * camera" produce byte-identical silence.
263
+ */
264
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
265
+ /**
239
266
  * Per-camera pipeline config was mutated by the orchestrator
240
267
  * (3-level settings change via `setAgentAddonDefaults` /
241
268
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3027,6 +3054,9 @@ function handlePipeResult(left, next, ctx) {
3027
3054
  fallback: left.fallback
3028
3055
  }, ctx);
3029
3056
  }
3057
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3058
+ $ZodPipe.init(inst, def);
3059
+ });
3030
3060
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3031
3061
  $ZodType.init(inst, def);
3032
3062
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5212,6 +5242,10 @@ function pipe(in_, out) {
5212
5242
  out
5213
5243
  });
5214
5244
  }
5245
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5246
+ ZodPipe.init(inst, def);
5247
+ $ZodPreprocess.init(inst, def);
5248
+ });
5215
5249
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5216
5250
  $ZodReadonly.init(inst, def);
5217
5251
  ZodType.init(inst, def);
@@ -5270,6 +5304,13 @@ function _instanceof(cls, params = {}) {
5270
5304
  };
5271
5305
  return inst;
5272
5306
  }
5307
+ function preprocess(fn, schema) {
5308
+ return new ZodPreprocess({
5309
+ type: "pipe",
5310
+ in: transform(fn),
5311
+ out: schema
5312
+ });
5313
+ }
5273
5314
  //#endregion
5274
5315
  //#region ../../node_modules/zod/v4/classic/compat.js
5275
5316
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10948,6 +10989,8 @@ var QueryFilterSchema = object({
10948
10989
  where: record(string(), unknown()).optional(),
10949
10990
  whereIn: record(string(), array(unknown())).optional(),
10950
10991
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10992
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10993
+ whereNot: record(string(), unknown()).optional(),
10951
10994
  orderBy: object({
10952
10995
  field: string(),
10953
10996
  direction: _enum(["asc", "desc"])
@@ -10967,7 +11010,8 @@ var QueryFilterSchema = object({
10967
11010
  var MutationFilterSchema = object({
10968
11011
  where: record(string(), unknown()).optional(),
10969
11012
  whereIn: record(string(), array(unknown())).optional(),
10970
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11013
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11014
+ whereNot: record(string(), unknown()).optional()
10971
11015
  });
10972
11016
  /** A single stored record: `{ id, data }`. */
10973
11017
  var SettingsRecordSchema = object({
@@ -12324,6 +12368,17 @@ var LlmImageSchema = object({
12324
12368
  bytes: _instanceof(Uint8Array),
12325
12369
  mimeType: string()
12326
12370
  });
12371
+ /**
12372
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12373
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12374
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12375
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12376
+ */
12377
+ var LlmRetryPolicySchema = object({
12378
+ enabled: boolean().default(false),
12379
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12380
+ maxAttempts: number().int().min(1).max(5).default(1)
12381
+ });
12327
12382
  var LlmGenerateBaseInputSchema = object({
12328
12383
  /** Collection routing (the notification-output posture). */
12329
12384
  addonId: string().optional(),
@@ -12338,7 +12393,28 @@ var LlmGenerateBaseInputSchema = object({
12338
12393
  jsonSchema: record(string(), unknown()).optional(),
12339
12394
  /** Per-call override of the profile default. */
12340
12395
  maxTokens: number().int().positive().optional(),
12341
- temperature: number().optional()
12396
+ temperature: number().optional(),
12397
+ /** Per-call override of the profile default (nucleus sampling). */
12398
+ topP: number().min(0).max(1).optional(),
12399
+ /** Per-call override of the profile default (top-k sampling). */
12400
+ topK: number().int().positive().optional(),
12401
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12402
+ timeoutMs: number().int().positive().optional(),
12403
+ /** Per-call override; beats both the consumer table and the profile. */
12404
+ retry: LlmRetryPolicySchema.optional(),
12405
+ /**
12406
+ * Caller-minted id that makes this generation CANCELLABLE.
12407
+ *
12408
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12409
+ * the call against 8 s and free their own slot when the timer wins, while the
12410
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12411
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12412
+ * not generations, and the real load is unbounded.
12413
+ *
12414
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12415
+ * `llm.cancel({ requestId })` tears the socket down.
12416
+ */
12417
+ requestId: string().optional()
12342
12418
  });
12343
12419
  /**
12344
12420
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12351,6 +12427,18 @@ var LlmGenerateBaseInputSchema = object({
12351
12427
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12352
12428
  * watchdog — operator decision #3).
12353
12429
  */
12430
+ /**
12431
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12432
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12433
+ * REF rather than looked up at install time, so what the operator approved in
12434
+ * the preview is exactly what the node downloads.
12435
+ */
12436
+ var ManagedModelExtraFileSchema = object({
12437
+ url: string(),
12438
+ filename: string(),
12439
+ sizeBytes: number(),
12440
+ sha256: string().optional()
12441
+ });
12354
12442
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12355
12443
  object({
12356
12444
  kind: literal("catalog"),
@@ -12359,7 +12447,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12359
12447
  object({
12360
12448
  kind: literal("url"),
12361
12449
  url: string(),
12362
- sha256: string().optional()
12450
+ sha256: string().optional(),
12451
+ /** Picker/status label; the file basename when absent. */
12452
+ label: string().optional(),
12453
+ sizeBytes: number().optional(),
12454
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12363
12455
  }),
12364
12456
  object({
12365
12457
  kind: literal("path"),
@@ -12377,13 +12469,82 @@ var ManagedRuntimeConfigSchema = object({
12377
12469
  gpuLayers: number().int().default(0),
12378
12470
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12379
12471
  threads: number().int().optional(),
12380
- /** Concurrent slots. */
12472
+ /** Concurrent slots (`--parallel`). */
12381
12473
  parallel: number().int().default(1),
12474
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12475
+ batchSize: number().int().positive().optional(),
12476
+ /** Physical batch / micro-batch (`-ub`). */
12477
+ ubatchSize: number().int().positive().optional(),
12478
+ /**
12479
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12480
+ * is a no-op elsewhere, so it is offered rather than assumed.
12481
+ */
12482
+ flashAttention: boolean().default(false),
12483
+ /**
12484
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12485
+ * inference. Costs the full model size in resident memory — which is exactly
12486
+ * what the RAM budget is counting.
12487
+ */
12488
+ mlock: boolean().default(false),
12489
+ /**
12490
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12491
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12492
+ * store produces on every first token.
12493
+ */
12494
+ noMmap: boolean().default(false),
12495
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12496
+ * cheapest way to fit a longer context in the same RAM. */
12497
+ cacheTypeK: _enum([
12498
+ "f32",
12499
+ "f16",
12500
+ "q8_0",
12501
+ "q5_1",
12502
+ "q5_0",
12503
+ "q4_1",
12504
+ "q4_0"
12505
+ ]).optional(),
12506
+ cacheTypeV: _enum([
12507
+ "f32",
12508
+ "f16",
12509
+ "q8_0",
12510
+ "q5_1",
12511
+ "q5_0",
12512
+ "q4_1",
12513
+ "q4_0"
12514
+ ]).optional(),
12515
+ /**
12516
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12517
+ * (which most vision chat templates need and some language-only models
12518
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12519
+ *
12520
+ * It is NOT a second place to set the flags above. A token that collides
12521
+ * with a typed field is REJECTED at start, naming the field that owns it
12522
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12523
+ * the "two switches that disagree" failure this repo has already shipped
12524
+ * twice (D62).
12525
+ */
12526
+ extraArgs: array(string()).default([]),
12382
12527
  /** Else lazy: first generate boots it. */
12383
12528
  autoStart: boolean().default(false),
12384
12529
  /** 0 = never; frees RAM after quiet periods. */
12385
12530
  idleStopMinutes: number().int().default(30)
12386
12531
  });
12532
+ /**
12533
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12534
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12535
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12536
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12537
+ */
12538
+ var LlmDownloadProgressSchema = object({
12539
+ phase: _enum(["downloading", "verifying"]),
12540
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12541
+ file: string(),
12542
+ fileIndex: number().int(),
12543
+ fileCount: number().int(),
12544
+ /** Across the WHOLE install, not the current file. */
12545
+ downloadedBytes: number(),
12546
+ totalBytes: number().optional()
12547
+ });
12387
12548
  var LlmRuntimeStatusSchema = object({
12388
12549
  /** Status is ALWAYS node-qualified. */
12389
12550
  nodeId: string(),
@@ -12400,6 +12561,8 @@ var LlmRuntimeStatusSchema = object({
12400
12561
  modelPath: string().optional(),
12401
12562
  modelId: string().optional(),
12402
12563
  downloadProgress: number().min(0).max(1).optional(),
12564
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12565
+ download: LlmDownloadProgressSchema.optional(),
12403
12566
  lastError: string().optional(),
12404
12567
  crashesInWindow: number(),
12405
12568
  /** Child RSS (sampled best-effort). */
@@ -12410,7 +12573,14 @@ var LlmNodeModelSchema = object({
12410
12573
  file: string(),
12411
12574
  sizeBytes: number(),
12412
12575
  catalogId: string().optional(),
12413
- installedAt: number().optional()
12576
+ installedAt: number().optional(),
12577
+ /**
12578
+ * Absolute path on the node. Present so a file that is on disk but matches
12579
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12580
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12581
+ * it the picker could list such a file and do nothing with it.
12582
+ */
12583
+ path: string().optional()
12414
12584
  });
12415
12585
  var LlmRuntimeDiskUsageSchema = object({
12416
12586
  nodeId: string(),
@@ -12466,10 +12636,47 @@ var LlmProfileSchema = object({
12466
12636
  baseUrl: string().optional(),
12467
12637
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12468
12638
  apiKey: string().optional(),
12639
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12640
+ * degraded to text — that shipped once and produced a confident answer to a
12641
+ * question about a picture nobody sent. */
12469
12642
  supportsVision: boolean(),
12470
12643
  temperature: number().min(0).max(2).optional(),
12644
+ /** Nucleus sampling. Every wire we speak has it. */
12645
+ topP: number().min(0).max(1).optional(),
12646
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12647
+ * wire does, and the client drops it there (measured: the request body gets
12648
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12649
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12650
+ topK: number().int().positive().optional(),
12471
12651
  maxTokens: number().int().positive().optional(),
12652
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12653
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12654
+ * the model with, so it is the one field that changes a PROCESS. */
12655
+ contextLength: number().int().positive().optional(),
12656
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12657
+ * two system prompts fighting is worse than either alone). */
12658
+ systemPrompt: string().optional(),
12659
+ /** Total generation bound — the only one a unary call has. */
12472
12660
  timeoutMs: number().int().positive().default(6e4),
12661
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12662
+ * response headers: on the LM Studio / llama-server wire those are written
12663
+ * once the model has finished loading, so they belong to the bound below. */
12664
+ connectTimeoutMs: number().int().positive().default(1e4),
12665
+ /** Accepted, but no output yet — response headers included, because a cold
12666
+ * GPU load is exactly what happens before them. */
12667
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12668
+ /** Output started then stopped. */
12669
+ idleTimeoutMs: number().int().positive().default(6e4),
12670
+ /** Profile-level default. The per-consumer table and a per-call override
12671
+ * both beat it — see `resolveRetryPolicy`. */
12672
+ retry: LlmRetryPolicySchema.default({
12673
+ enabled: false,
12674
+ maxAttempts: 1
12675
+ }),
12676
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12677
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12678
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12679
+ toolsEnabled: boolean().default(false),
12473
12680
  extraHeaders: record(string(), string()).optional(),
12474
12681
  /** kind === 'managed-local' only (spec §4). */
12475
12682
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12519,6 +12726,36 @@ var ManagedModelCatalogEntrySchema = object({
12519
12726
  /** Vision models: companion projector file. */
12520
12727
  mmprojUrl: string().optional()
12521
12728
  });
12729
+ /**
12730
+ * The outcome of turning one operator-typed Hugging Face reference into a
12731
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12732
+ * I will not pick for you" is a normal answer the UI has to render, not an
12733
+ * exception.
12734
+ *
12735
+ * `candidates` is the whole reason the refusal is usable — every string in it
12736
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12737
+ */
12738
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12739
+ ok: literal(true),
12740
+ /** Ready to hand to `installModel` unchanged. */
12741
+ model: ManagedModelRefSchema,
12742
+ label: string(),
12743
+ repo: string(),
12744
+ quantization: string(),
12745
+ purpose: _enum(["text", "vision"]),
12746
+ totalBytes: number(),
12747
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12748
+ * see that 0.9 GB of it is a projector they did not name. */
12749
+ extraFilenames: array(string())
12750
+ }), object({
12751
+ ok: literal(false),
12752
+ code: string(),
12753
+ message: string(),
12754
+ candidates: array(string()).optional(),
12755
+ /** Set when the refusal was only the ceiling: re-calling with
12756
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12757
+ requiredBytes: number().optional()
12758
+ })]);
12522
12759
  var LlmRuntimeNodeSchema = object({
12523
12760
  nodeId: string(),
12524
12761
  reachable: boolean(),
@@ -12531,7 +12768,10 @@ var ProfileRefInputSchema = object({
12531
12768
  addonId: string(),
12532
12769
  profileId: string()
12533
12770
  });
12534
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12771
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12772
+ addonId: string().optional(),
12773
+ requestId: string()
12774
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12535
12775
  kind: "mutation",
12536
12776
  auth: "admin"
12537
12777
  }), method(ProfileRefInputSchema, _void(), {
@@ -12552,6 +12792,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12552
12792
  consumer: string().optional(),
12553
12793
  profileId: string().optional()
12554
12794
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12795
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12796
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12797
+ ref: string(),
12798
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12799
+ maxBytes: number().positive().optional()
12800
+ }), HfModelResolutionSchema, {
12801
+ kind: "mutation",
12802
+ auth: "admin"
12803
+ }), method(object({
12555
12804
  nodeId: string(),
12556
12805
  model: ManagedModelRefSchema
12557
12806
  }), _void(), {
@@ -14175,6 +14424,8 @@ var NcSystemEventKindSchema = _enum([
14175
14424
  "stream-offline",
14176
14425
  "node-online",
14177
14426
  "node-offline",
14427
+ "node-inference-unavailable",
14428
+ "detection-blind",
14178
14429
  "addon-update-available",
14179
14430
  "server-update-available",
14180
14431
  "alarm-triggered",
@@ -14236,7 +14487,16 @@ var NcScheduleSchema = object({
14236
14487
  });
14237
14488
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14238
14489
  var NcPlateMatcherSchema = object({
14239
- values: array(string().min(1)).min(1),
14490
+ /**
14491
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14492
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14493
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14494
+ * rather than merely seen. A subject carrying no plate still fails.
14495
+ *
14496
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14497
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14498
+ */
14499
+ values: array(string().min(1)),
14240
14500
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14241
14501
  maxDistance: number().int().min(0).max(3).default(1)
14242
14502
  });
@@ -14270,28 +14530,36 @@ var NcOccupancyConditionSchema = object({
14270
14530
  /**
14271
14531
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14272
14532
  *
14273
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14274
- * reference notifier uses, so an operator moving between them re-uses what
14275
- * they already know): a rule matches when, over a sampling window of
14276
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14277
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14278
- *
14279
- * - `dbThreshold` its level is at or above this many dBFS (see
14280
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14281
- * - `labels` the classifier put at least one of these labels on it.
14282
- *
14283
- * Both are OPTIONAL and independent, which is the point of the shape: a
14284
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14285
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14286
- * is given** a window in which every sample is trivially a hit would fire on
14287
- * silence, so the engine refuses such a condition rather than notifying on
14288
- * nothing (the schema cannot express "at least one of" without becoming a
14289
- * ZodEffects the cap path would have to special-case).
14290
- *
14291
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14292
- * must be FULL before it can match a window that has been open for two
14293
- * seconds of its ten is 100% of nothing, and firing on it would make
14294
- * `samplingSeconds` decorative.
14533
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14534
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14535
+ * there is no second switch that can disagree with the first and every rule
14536
+ * authored before the decision migrates for free (`audioModeOf`):
14537
+ *
14538
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14539
+ * classifier labels with one of them. No window, no percentage:
14540
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14541
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14542
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14543
+ * reaches this condition if the classifier was already confident enough.
14544
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14545
+ * the condition: at least `hitPercent`% of the samples over
14546
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14547
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14548
+ * must be FULL before it can match a window open for two of its ten
14549
+ * seconds is 100% of nothing.
14550
+ *
14551
+ * **Why label mode has no window.** It had one, and it never fired: the
14552
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14553
+ * of them per episode, even through continuous crying. The measured maximum
14554
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14555
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14556
+ * the wrong question to ask of a sparse classifier.
14557
+ *
14558
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14559
+ * and the rule would fire on silence. The schema cannot express "exactly one
14560
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14561
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14562
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14295
14563
  *
14296
14564
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14297
14565
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14299,13 +14567,13 @@ var NcOccupancyConditionSchema = object({
14299
14567
  * an operator who typed `dog` mean the same thing.
14300
14568
  */
14301
14569
  var NcAudioConditionSchema = object({
14302
- /** Audio macro labels; absent = any sound (level-only rule). */
14570
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14303
14571
  labels: array(string().min(1)).min(1).optional(),
14304
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14572
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14305
14573
  dbThreshold: number().min(-96).max(0).optional(),
14306
- /** Percentage of the window's samples that must be hits (1–100). */
14574
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14307
14575
  hitPercent: number().int().min(1).max(100).default(60),
14308
- /** Length of the sampling window in seconds. */
14576
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14309
14577
  samplingSeconds: number().int().min(1).max(300).default(10)
14310
14578
  });
14311
14579
  /**
@@ -14443,13 +14711,81 @@ var NcRuleActionsSchema = object({
14443
14711
  */
14444
14712
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14445
14713
  });
14714
+ /**
14715
+ * "This rule applies only while `deviceId` is in one of `states`."
14716
+ *
14717
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14718
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14719
+ * make the condition lie about devices whose states have no equivalent.
14720
+ *
14721
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14722
+ * condition that fired on "I could not read it" would be worse than no gate.
14723
+ */
14724
+ var NcDeviceStateConditionSchema = object({
14725
+ deviceId: number().int(),
14726
+ /** Any of these matches. */
14727
+ states: array(string().min(1)).min(1)
14728
+ });
14729
+ /**
14730
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14731
+ *
14732
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14733
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14734
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14735
+ * already has a trigger ("tell me about a person at the front door, but only
14736
+ * while the bin is still out"). That is why it composes with every delivery
14737
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14738
+ * kind exist for it — see D159.
14739
+ *
14740
+ * ── Identity ───────────────────────────────────────────────────────────────
14741
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14742
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14743
+ * carried as a HINT for the editor and for the log line, never as part of the
14744
+ * lookup key: a rule whose hint drifted must still gate correctly.
14745
+ *
14746
+ * ── Which boolean ──────────────────────────────────────────────────────────
14747
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14748
+ * already declares which boolean drives notification rules, and a second knob
14749
+ * that could disagree with it is exactly the D62 failure. Set it only to
14750
+ * override one rule against the scene's own default.
14751
+ *
14752
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14753
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14754
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14755
+ * evidence, in either direction.
14756
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14757
+ * The latch is a durable fact about the past ("it has diverged since I armed
14758
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14759
+ * reason the operator asked for a latch.
14760
+ *
14761
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14762
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14763
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14764
+ * said out loud in the log rather than dropped in silence.
14765
+ */
14766
+ var NcSceneConditionSchema = object({
14767
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14768
+ sceneId: string().min(1),
14769
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14770
+ deviceId: number().int().optional(),
14771
+ /** The state the scene must be in for the rule to fire. */
14772
+ requiredState: _enum(["matched", "diverged"]),
14773
+ /**
14774
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14775
+ * scene's own `emit` field, which is the only place that decision belongs.
14776
+ */
14777
+ latched: boolean().optional()
14778
+ });
14446
14779
  var NcConditionsSchema = object({
14447
14780
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14448
- deviceState: object({
14449
- deviceId: number().int(),
14450
- /** Any of these matches. */
14451
- states: array(string().min(1)).min(1)
14452
- }).optional(),
14781
+ deviceState: NcDeviceStateConditionSchema.optional(),
14782
+ /**
14783
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14784
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14785
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14786
+ * {@link NcSceneCondition} and D159.
14787
+ */
14788
+ scene: NcSceneConditionSchema.optional(),
14453
14789
  /** Device scope — absent = all devices. */
14454
14790
  devices: array(number()).optional(),
14455
14791
  /** Detector class names (any overlap with the record's class set). */
@@ -14475,18 +14811,47 @@ var NcConditionsSchema = object({
14475
14811
  */
14476
14812
  labelEquals: array(string().min(1)).optional(),
14477
14813
  /**
14478
- * Identity matcher. P1 boundary: matched against the record's collapsed
14479
- * `label` (the identity display name propagated by the face pipeline) —
14480
- * identity-ID matching rides in P2 when identity ids reach the record.
14814
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14815
+ * is about recognised people at all.
14816
+ *
14817
+ * Three states, and the empty one is the point:
14818
+ *
14819
+ * | value | meaning |
14820
+ * | --- | --- |
14821
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14822
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14823
+ * | a list | only these identities |
14824
+ *
14825
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14826
+ * `devices` list is every device), applied one level down: the operator has
14827
+ * turned the face scope ON and narrowed it to nothing, which is every known
14828
+ * face. No second field states the same thing — a switch that can disagree
14829
+ * with the list under it is worse than no switch (D62).
14830
+ *
14831
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14832
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14833
+ * the operator fixed the spelling. The id reaches the record on
14834
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14835
+ * `{{label}}` renders.
14836
+ *
14837
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14838
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14839
+ * for is left as it stands and reported, never dropped. The engine also
14840
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14841
+ * migration could not resolve keeps matching exactly what it matched before.
14481
14842
  */
14482
14843
  identities: array(string().min(1)).optional(),
14483
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14844
+ /**
14845
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14846
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14847
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14848
+ */
14484
14849
  plates: NcPlateMatcherSchema.optional(),
14485
14850
  /**
14486
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14487
- * Same P1 boundary: matched against the record's collapsed `label` (the
14488
- * identity display name). A record with NO label passes (nothing to
14489
- * exclude), unlike the include variant which fails on an absent label.
14851
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14852
+ * the same id members and the same lazy name→id migration. A record with NO
14853
+ * identity passes (nothing to exclude), unlike the include variant which
14854
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14490
14855
  */
14491
14856
  identitiesExclude: array(string().min(1)).optional(),
14492
14857
  /**
@@ -14878,7 +15243,80 @@ var NcRuleInputSchema = object({
14878
15243
  * a rule that predates the gate must keep delivering byte-for-byte as it
14879
15244
  * did, and absent is the only way to say that without a migration.
14880
15245
  */
14881
- confirm: NcConfirmSchema.optional()
15246
+ confirm: NcConfirmSchema.optional(),
15247
+ /**
15248
+ * WAIT for face/plate recognition before saying anything.
15249
+ *
15250
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15251
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15252
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15253
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15254
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15255
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15256
+ *
15257
+ * Only two honest answers exist, and this flag picks between them. It has
15258
+ * effect ONLY on a rule that declares a recognition scope
15259
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15260
+ * other rule there is nothing to wait for and the flag is inert.
15261
+ *
15262
+ * | value | what happens |
15263
+ * | --- | --- |
15264
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15265
+ * | 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) |
15266
+ *
15267
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15268
+ * on the addon cap path, and absent has to keep meaning exactly what every
15269
+ * rule authored before this field meant.
15270
+ *
15271
+ * The cost of `true` is stated here because the editor states it too: a rule
15272
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15273
+ * tests every zone the track visited and a `crossing` condition can no longer
15274
+ * be satisfied, because a closed track carries no crossing.
15275
+ */
15276
+ waitForEnhancement: boolean().optional(),
15277
+ /**
15278
+ * GROUP a burst of subjects into ONE notification that grows.
15279
+ *
15280
+ * Seconds of quiet after the last matching subject before the burst is
15281
+ * considered over. While it is open, the first subject enqueues immediately —
15282
+ * **exactly as today, with no added latency** — and every real growth (a new
15283
+ * subject, or a name confirmed on one already in it) REPLACES that
15284
+ * notification with an updated one naming everybody. The push carries the
15285
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15286
+ *
15287
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15288
+ *
15289
+ * ### Why an idle cutoff and not a window
15290
+ *
15291
+ * The measured seven-person arrival on device 590 spans 110 s with every
15292
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15293
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15294
+ * 30 is Frigate's shipped value for the same decision.
15295
+ *
15296
+ * ### What it replaces
15297
+ *
15298
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15299
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15300
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15301
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15302
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15303
+ * budget over GROUPS — which is what it always meant — and a growth is never
15304
+ * throttled by the window its own first member spent.
15305
+ *
15306
+ * ### Interaction with {@link waitForEnhancement}
15307
+ *
15308
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15309
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15310
+ * CLOSE — already carrying its name — and grows as later members close. That
15311
+ * is later, and complete. With grouping alone the group opens on the first
15312
+ * object event and picks up names as they are confirmed, through the growth
15313
+ * path. Neither combination fires twice for one subject.
15314
+ *
15315
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15316
+ * on the addon cap path, so absent must keep meaning what it meant before this
15317
+ * field existed.
15318
+ */
15319
+ groupIdleSec: number().int().min(0).max(600).optional()
14882
15320
  });
14883
15321
  /**
14884
15322
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14985,6 +15423,7 @@ var NcConditionDescriptorSchema = object({
14985
15423
  "occupancy",
14986
15424
  "audio",
14987
15425
  "deviceState",
15426
+ "scene",
14988
15427
  "systemEvent"
14989
15428
  ]),
14990
15429
  operator: _enum([
@@ -15390,7 +15829,87 @@ var MethodAccessSchema = _enum([
15390
15829
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15391
15830
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15392
15831
  var CapScopeSchema = _enum(["device", "system"]);
15393
- var TokenScopeSchema = discriminatedUnion("type", [
15832
+ /**
15833
+ * DeviceSelector (scope model v3 — 2026-08-12).
15834
+ *
15835
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15836
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15837
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15838
+ * AFTER the grant was minted — no re-grant, no re-login.
15839
+ *
15840
+ * - `all` — every device in the deployment. The broad viewer/operator
15841
+ * lever without a `category` grant (a `category` grant also covers device
15842
+ * caps that carry no deviceId; `all` is specifically the device set).
15843
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15844
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15845
+ * is NOT covered until the grant is edited.
15846
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15847
+ * DYNAMIC. A device that changes type, or a new device of the type,
15848
+ * re-resolves on the next request.
15849
+ * - `locations` — every device whose operator-assigned `location` label is
15850
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15851
+ * null/unset location matches NO `locations` selector.
15852
+ */
15853
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15854
+ object({ kind: literal("all") }),
15855
+ object({
15856
+ kind: literal("ids"),
15857
+ ids: array(number().int()).min(1)
15858
+ }),
15859
+ object({
15860
+ kind: literal("types"),
15861
+ types: array(_enum(DeviceType)).min(1)
15862
+ }),
15863
+ object({
15864
+ kind: literal("locations"),
15865
+ locations: array(string().min(1)).min(1)
15866
+ })
15867
+ ]);
15868
+ var DeviceTokenScopeSchema = object({
15869
+ type: literal("device"),
15870
+ /** The device SET this grant covers — resolved against the live fleet. */
15871
+ selector: DeviceSelectorSchema,
15872
+ access: array(MethodAccessSchema).min(1),
15873
+ /**
15874
+ * Whether a grant on a PARENT device transparently covers its accessory
15875
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15876
+ * Direction is parent → children ONLY.
15877
+ *
15878
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15879
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15880
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15881
+ * operator must grant on the child, not inherit from the parent). Set it
15882
+ * explicitly to override that default per grant.
15883
+ */
15884
+ includeLinked: boolean().optional()
15885
+ });
15886
+ /**
15887
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15888
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15889
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15890
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15891
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15892
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15893
+ * migration cannot reach a JWT already in a client's hands; parse-time
15894
+ * migration covers both without a flag day. No cast — the raw object is read
15895
+ * through `Reflect.get` (its static type is `unknown`).
15896
+ */
15897
+ function migrateLegacyTokenScope(raw) {
15898
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15899
+ if (Reflect.get(raw, "type") !== "device") return raw;
15900
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15901
+ const targets = Reflect.get(raw, "targets");
15902
+ if (!Array.isArray(targets)) return raw;
15903
+ return {
15904
+ type: "device",
15905
+ selector: {
15906
+ kind: "ids",
15907
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15908
+ },
15909
+ access: Reflect.get(raw, "access")
15910
+ };
15911
+ }
15912
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15394
15913
  object({
15395
15914
  type: literal("category"),
15396
15915
  target: CapScopeSchema,
@@ -15406,18 +15925,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15406
15925
  target: string(),
15407
15926
  access: array(MethodAccessSchema).min(1)
15408
15927
  }),
15409
- object({
15410
- type: literal("device"),
15411
- /**
15412
- * One or more deviceIds (serialised as strings for wire-format
15413
- * consistency with the rest of the union). Matcher accepts if
15414
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15415
- * of one scope-per-device when granting access to a set of cameras.
15416
- */
15417
- targets: array(string()).min(1),
15418
- access: array(MethodAccessSchema).min(1)
15419
- })
15420
- ]);
15928
+ DeviceTokenScopeSchema
15929
+ ]));
15421
15930
  object({
15422
15931
  id: string(),
15423
15932
  username: string(),
@@ -15734,7 +16243,7 @@ var TrackEnvelopeSchema = object({
15734
16243
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15735
16244
  * keeps every scalar the list surfaces actually render (ids, class(es),
15736
16245
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15737
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16246
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15738
16247
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15739
16248
  * `getTrack`. Mirrors the event-store `projection` convention
15740
16249
  * (`getObjectEvents` et al.).
@@ -15870,7 +16379,21 @@ union([literal(1), literal(2)]);
15870
16379
  var LabelAttributionSchema = object({
15871
16380
  stepId: string(),
15872
16381
  modelId: string().optional(),
15873
- decidedAt: number()
16382
+ decidedAt: number(),
16383
+ /**
16384
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16385
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16386
+ *
16387
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16388
+ * notification rule authored on "Gianluca" stopped matching the moment the
16389
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16390
+ * the thing that does not move, so it is what a rule matches on
16391
+ * (`NcConditions.identities`) and the text is what a human is shown.
16392
+ *
16393
+ * Absent when the label names no gallery row — a plate the OCR read but no
16394
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16395
+ */
16396
+ identityId: string().optional()
15874
16397
  });
15875
16398
  /**
15876
16399
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16007,6 +16530,28 @@ var TrackSchema = object({
16007
16530
  * `=== true` and render nothing otherwise, never infer "no face".
16008
16531
  */
16009
16532
  hasFace: boolean().optional(),
16533
+ /**
16534
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16535
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16536
+ * so the passage is tracked once and as a VEHICLE.
16537
+ *
16538
+ * It exists because the fold's record was dishonest. D34 and the code both
16539
+ * said "the person is not lost — it is reported so both entities stay on the
16540
+ * record"; in fact the pair went into a per-processor RAM field behind an
16541
+ * accessor nobody called, and every durable surface said `vehicle`, full
16542
+ * stop. This is the composition note that makes the row true.
16543
+ *
16544
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16545
+ * person" is not an answer to "what is this" — both label tiers would refuse
16546
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16547
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16548
+ * and a `person` rule still does not fire for someone cycling past.
16549
+ *
16550
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16551
+ * the column, and every hub that predates the field, omits it. Test
16552
+ * `=== true` and render nothing otherwise — never infer "no rider".
16553
+ */
16554
+ hasRider: boolean().optional(),
16010
16555
  ...TrackFlagFields,
16011
16556
  ...TrackRetrainFields
16012
16557
  });
@@ -16356,7 +16901,10 @@ var RecentTracksQueryInput = object({
16356
16901
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16357
16902
  cursor: string().optional(),
16358
16903
  /** See {@link TrackProjectionSchema}. Default `full`. */
16359
- projection: TrackProjectionSchema.optional()
16904
+ projection: TrackProjectionSchema.optional(),
16905
+ /** Include stationary-promoted rows (parked objects). Default false: the
16906
+ * feed lists passages; parking records live on the stationary registry. */
16907
+ includeStationary: boolean().optional()
16360
16908
  });
16361
16909
  var RecentTracksPageSchema = object({
16362
16910
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16574,7 +17122,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16574
17122
  zone: TrackZoneFilterSchema.optional(),
16575
17123
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16576
17124
  * compatible — omitting the field keeps today's exact behaviour). */
16577
- projection: TrackProjectionSchema.optional()
17125
+ projection: TrackProjectionSchema.optional(),
17126
+ /** Include stationary-promoted rows (parked objects handed to the
17127
+ * stationary registry). Default false: the timeline lists passages,
17128
+ * not parking records (operator decision, 2026-08-15). */
17129
+ includeStationary: boolean().optional()
16578
17130
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16579
17131
  kind: "mutation",
16580
17132
  auth: "admin"
@@ -16738,11 +17290,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16738
17290
  auth: "admin"
16739
17291
  }), method(object({
16740
17292
  eventId: string(),
16741
- kind: MediaFileKindEnum.optional()
17293
+ kind: MediaFileKindEnum.optional(),
17294
+ deviceId: number()
16742
17295
  }), array(MediaFileSchema).readonly()), method(object({
16743
17296
  trackId: string(),
16744
- kinds: array(MediaFileKindEnum).optional()
16745
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17297
+ kinds: array(MediaFileKindEnum).optional(),
17298
+ deviceId: number()
17299
+ }), array(MediaFileSchema).readonly()), method(object({
17300
+ trackId: string(),
17301
+ deviceId: number()
17302
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16746
17303
  kind: "mutation",
16747
17304
  auth: "admin"
16748
17305
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17402,6 +17959,17 @@ var maxSessionHoldMsField = {
17402
17959
  default: 12e4,
17403
17960
  step: 5e3
17404
17961
  };
17962
+ /**
17963
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17964
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17965
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17966
+ */
17967
+ var audioMotionWindowMsField = {
17968
+ min: 5e3,
17969
+ max: 6e5,
17970
+ default: 9e4,
17971
+ step: 5e3
17972
+ };
17405
17973
  var motionFpsField = {
17406
17974
  min: 1,
17407
17975
  max: 30,
@@ -17433,7 +18001,7 @@ var detectionFpsField = {
17433
18001
  var occupancyRecheckSecField = {
17434
18002
  min: 0,
17435
18003
  max: 300,
17436
- default: 30,
18004
+ default: 300,
17437
18005
  step: 5
17438
18006
  };
17439
18007
  var occupancyRecheckFramesField = {
@@ -17578,6 +18146,27 @@ var RunnerCameraConfigSchema = object({
17578
18146
  * resolved `CameraDetectionConfig`.
17579
18147
  */
17580
18148
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18149
+ /**
18150
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18151
+ * 'on-motion'` audio window, measured from the LAST motion event.
18152
+ *
18153
+ * This exists because the falling edge cannot be relied on. Camera-native
18154
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18155
+ * its email-push SMTP path both emit `detected: true` and never the
18156
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18157
+ * onboard-only camera a window that closed only on `detected: false` never
18158
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18159
+ * battery camera, the one failure mode the mode exists to prevent.
18160
+ *
18161
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18162
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18163
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18164
+ *
18165
+ * Not consumed by the runner: carried here so it shares the per-camera
18166
+ * device-settings surface with `motionCooldownMs`, exactly like
18167
+ * `maxSessionHoldMs`.
18168
+ */
18169
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17581
18170
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17582
18171
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17583
18172
  motionStreamId: string(),
@@ -17673,7 +18262,7 @@ var RunnerCameraConfigSchema = object({
17673
18262
  */
17674
18263
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17675
18264
  });
17676
- 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;
18265
+ 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;
17677
18266
  /**
17678
18267
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17679
18268
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18659,7 +19248,31 @@ DeviceType.Camera, method(object({
18659
19248
  lastCapturedAt: number().nullable(),
18660
19249
  cacheAgeMs: number().nullable(),
18661
19250
  etag: string().nullable()
18662
- }))), systemMethod(object({
19251
+ }))), systemMethod(object({ deviceId: number() }), object({
19252
+ /** The battery slice as read, or null when the device has none. */
19253
+ battery: object({
19254
+ sleeping: boolean(),
19255
+ lastUpdated: number(),
19256
+ lastContactAt: number().optional()
19257
+ }).nullable(),
19258
+ /** The resolved snapshot state (what the overlay decision used). */
19259
+ state: object({
19260
+ isBattery: boolean(),
19261
+ reason: _enum([
19262
+ "disabled",
19263
+ "sleeping",
19264
+ "unreachable",
19265
+ "waking"
19266
+ ]).nullable()
19267
+ }),
19268
+ /** The cached frame behind the next paint. */
19269
+ frame: object({
19270
+ capturedAt: number().nullable(),
19271
+ ageMs: number().nullable()
19272
+ }),
19273
+ /** A wake window is currently open (the Waking overlay's source). */
19274
+ waking: boolean()
19275
+ })), systemMethod(object({
18663
19276
  /** The tiles a surface is actually rendering. One entry per (device,
18664
19277
  * width) the caller will paint — the width is snapped to the server's
18665
19278
  * ladder and becomes part of the link's SIGNED identity. */
@@ -18689,7 +19302,16 @@ targets: array(object({
18689
19302
  /** A sleeping battery camera: the frame is deliberately stale and will
18690
19303
  * NOT refresh in the background. A surface should say so rather than
18691
19304
  * present it as current. */
18692
- sleeping: boolean()
19305
+ sleeping: boolean(),
19306
+ /** Current device state rendered over the cached frame. State images
19307
+ * remain authoritative even when their photographic background is
19308
+ * old; null means the link must carry a current camera frame. */
19309
+ stateReason: _enum([
19310
+ "disabled",
19311
+ "sleeping",
19312
+ "unreachable",
19313
+ "waking"
19314
+ ]).nullable()
18693
19315
  })));
18694
19316
  /**
18695
19317
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20211,6 +20833,25 @@ var BatteryStatusSchema = object({
20211
20833
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20212
20834
  lastUpdated: number(),
20213
20835
  /**
20836
+ * Ms epoch of the last time the device PROVED it was reachable — a
20837
+ * completed firmware round-trip, an observed wake, or an inbound push
20838
+ * (firmware event, email). `0`/absent = never since this slice was born.
20839
+ *
20840
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20841
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20842
+ * for the radio, because a poll that confirms reachability is the same
20843
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20844
+ * single derivation every consumer must use; no surface computes its own.
20845
+ *
20846
+ * It is deliberately NOT a clock in the
20847
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20848
+ * observation itself, and it is the only thing a 30-hour silence is
20849
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20850
+ * Reolink provider) so a value that means "recently" cannot cost a
20851
+ * SQLite commit per round-trip.
20852
+ */
20853
+ lastContactAt: number().optional(),
20854
+ /**
20214
20855
  * True when the source is a BINARY low-battery indicator (HA
20215
20856
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20216
20857
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23748,7 +24389,7 @@ method(object({
23748
24389
  toMs: number()
23749
24390
  }), RecordingAvailabilitySchema, {
23750
24391
  kind: "query",
23751
- auth: "admin"
24392
+ auth: "protected"
23752
24393
  }), method(object({
23753
24394
  deviceId: number(),
23754
24395
  fromMs: number(),
@@ -23756,14 +24397,14 @@ method(object({
23756
24397
  tzOffsetMinutes: number()
23757
24398
  }), RecordingDaysSchema, {
23758
24399
  kind: "query",
23759
- auth: "admin"
24400
+ auth: "protected"
23760
24401
  }), method(object({
23761
24402
  deviceId: number(),
23762
24403
  fromMs: number(),
23763
24404
  toMs: number()
23764
24405
  }), RecordingManifestSchema, {
23765
24406
  kind: "query",
23766
- auth: "admin"
24407
+ auth: "protected"
23767
24408
  }), method(object({}), RecordingStorageUsageSchema, {
23768
24409
  kind: "query",
23769
24410
  auth: "admin"
@@ -24053,14 +24694,77 @@ method(object({
24053
24694
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
24054
24695
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
24055
24696
  *
24056
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
24057
- * derives the device-detail contribution; the provider carries NO hand-written
24058
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
24059
- * every hysteresis flip / availability change; consumers never poll.
24060
- */
24061
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
24062
- * be added without a wire break (matching falls back to any-condition refs). */
24697
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24698
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24699
+ * for the thing: a scene is a standing question about the property ("is the bin
24700
+ * still out"), and the operator's question is "which of my scenes have tripped",
24701
+ * across every camera at once — not "what does camera 617 think". Buried one
24702
+ * camera deep it also could not be found. The surface is now a top-level admin
24703
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24704
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24705
+ *
24706
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24707
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24708
+ * directions, so a registration nobody declares fails exactly as loudly as a
24709
+ * declaration nobody registers. The editor is imported directly by the page.
24710
+ *
24711
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24712
+ * availability change; consumers never poll.
24713
+ */
24714
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24715
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24716
+ * Open by design so more can be added without a wire break.
24717
+ *
24718
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24719
+ * not comparable, so "I have never seen this scene in this light" is reported
24720
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24721
+ * collapses the cosine and would latch a false alarm every single night. */
24063
24722
  var SceneConditionSchema = string();
24723
+ /**
24724
+ * What a scene does when the CURRENT light has no reference of its own.
24725
+ *
24726
+ * The lighting variants are not equally likely to exist. Almost every operator
24727
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24728
+ * scene that is only ever going to be asked about a daytime question ("is the
24729
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24730
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24731
+ * working without it rather than degrading into a permanent complaint.
24732
+ *
24733
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24734
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24735
+ * last covered light left it at, the latch is untouched, and the hysteresis
24736
+ * run is neither spent nor cleared. The scene resumes by itself at first
24737
+ * light. This is the only behaviour under which "I never captured IR" is a
24738
+ * configuration choice instead of a nightly fault.
24739
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24740
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24741
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24742
+ * cross-condition cosines are not comparable, so a day reference against a
24743
+ * true IR frame collapses and the scene reports a theft at 21:40.
24744
+ *
24745
+ * Never applies when the scene has NO comparable reference at all — that is
24746
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24747
+ * there would hide a scene the operator never finished setting up.
24748
+ */
24749
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24750
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24751
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24752
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24753
+ * and never counts toward hysteresis in either direction. */
24754
+ var SceneVerdictSchema = _enum([
24755
+ "matched",
24756
+ "diverged",
24757
+ "unknown"
24758
+ ]);
24759
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24760
+ * silence that reads as "nothing has happened". */
24761
+ var SceneUnavailableSchema = _enum([
24762
+ "no-reference-for-condition",
24763
+ "view-shifted",
24764
+ "no-vision-profile",
24765
+ "encoder-model-changed",
24766
+ "no-snapshot"
24767
+ ]);
24064
24768
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
24065
24769
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
24066
24770
  var SceneReferenceSchema = object({
@@ -24068,7 +24772,14 @@ var SceneReferenceSchema = object({
24068
24772
  modelId: string(),
24069
24773
  condition: SceneConditionSchema,
24070
24774
  capturedAt: number(),
24071
- thumbnailMediaId: string().optional()
24775
+ thumbnailMediaId: string().optional(),
24776
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24777
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24778
+ * normalized rect frame a different piece of world, and the scene would
24779
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24780
+ * when hysteresis is about to flip — one extra encode per candidate
24781
+ * transition, not per poll. */
24782
+ anchorEmbedding: array(number()).optional()
24072
24783
  });
24073
24784
  var SceneMonitorStateSchema = object({
24074
24785
  id: string(),
@@ -24090,6 +24801,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
24090
24801
  profileId: string().optional(),
24091
24802
  hysteresisCount: number().int().positive()
24092
24803
  })]);
24804
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24805
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24806
+ * out in silence rather than reporting a fault every night. */
24807
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24808
+ /**
24809
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24810
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24811
+ *
24812
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24813
+ * fail-open: a notification suppressed is the worse error there, but a vision
24814
+ * model that timed out has not told us the bin is gone, and a latch is a
24815
+ * stateful claim that costs the operator a trip to reset.
24816
+ */
24817
+ var SceneConfirmSchema = object({
24818
+ enabled: boolean().default(false),
24819
+ prompt: string().min(1).max(1e3),
24820
+ profileId: string().optional(),
24821
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24822
+ maxImagePx: number().int().min(64).max(2048).default(448),
24823
+ /** What a timeout / unavailable model means for the PENDING flip. */
24824
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24825
+ });
24093
24826
  var SceneMonitorSchema = object({
24094
24827
  id: string(),
24095
24828
  label: string(),
@@ -24108,7 +24841,56 @@ var SceneMonitorSchema = object({
24108
24841
  lastConfidence: number().nullable(),
24109
24842
  currentCondition: SceneConditionSchema.nullable(),
24110
24843
  availability: _enum(["ok", "unavailable"]),
24111
- unavailableReason: string().nullable()
24844
+ unavailableReason: string().nullable(),
24845
+ /** Which state is "the initial screen". `null` until the first capture. */
24846
+ baselineStateId: string().nullable(),
24847
+ /** Which boolean drives notification rules and any export. */
24848
+ emit: _enum(["latched", "live"]).default("latched"),
24849
+ /** Live: does the region match the baseline RIGHT NOW. */
24850
+ verdict: SceneVerdictSchema,
24851
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24852
+ latched: boolean(),
24853
+ /** Last reset (or creation). */
24854
+ armedAt: number(),
24855
+ divergedAt: number().nullable(),
24856
+ restoredAt: number().nullable(),
24857
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24858
+ * during the window DISCARDS the observation — a car pulling up in front of
24859
+ * the bin must not be able to spend hysteresis credit. */
24860
+ quietSeconds: number().int().min(0).max(3600).default(60),
24861
+ /** An observation only advances the pending count when it is at least this
24862
+ * far from the previously counted one, so N agreeing checks span real time
24863
+ * rather than N adjacent polls inside one occlusion. */
24864
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24865
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24866
+ confirm: SceneConfirmSchema.optional(),
24867
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24868
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24869
+ /** Clear the latch on its own when the scene matches again? Default false —
24870
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24871
+ * automation can react to the bin coming back without the operator's own
24872
+ * alarm silently clearing itself. */
24873
+ autoRestore: boolean().default(false),
24874
+ /** What to do when the current light has no reference of its own. See
24875
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24876
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24877
+ /**
24878
+ * The light whose checks are currently being SAT OUT under
24879
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24880
+ *
24881
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24882
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24883
+ * nothing captured in this light"* in the same calm voice as the coverage
24884
+ * line, because the alternative is a scene that silently stops answering
24885
+ * after sunset with nothing anywhere saying why. A skipped check must never
24886
+ * read as a broken one.
24887
+ */
24888
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24889
+ /** Named cause when `verdict === 'unknown'`. */
24890
+ unavailable: SceneUnavailableSchema.nullable(),
24891
+ /** Conditions that have at least one comparable reference — the coverage line
24892
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24893
+ coveredConditions: array(SceneConditionSchema)
24112
24894
  });
24113
24895
  var SceneMonitorStatusSchema = object({
24114
24896
  monitors: array(SceneMonitorSchema),
@@ -24141,7 +24923,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24141
24923
  "both"
24142
24924
  ]).optional(),
24143
24925
  checkIntervalSec: number().optional(),
24144
- check: SceneCheckSchema.optional()
24926
+ check: SceneCheckSchema.optional(),
24927
+ emit: _enum(["latched", "live"]).optional(),
24928
+ quietSeconds: number().int().min(0).max(3600).optional(),
24929
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24930
+ anchorThreshold: number().min(0).max(1).optional(),
24931
+ autoRestore: boolean().optional(),
24932
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24933
+ /** `null` clears the vision-model adjudicator. */
24934
+ confirm: SceneConfirmSchema.nullable().optional()
24145
24935
  })
24146
24936
  }), _void(), {
24147
24937
  kind: "mutation",
@@ -24178,6 +24968,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24178
24968
  }), _void(), {
24179
24969
  kind: "mutation",
24180
24970
  auth: "admin"
24971
+ }), method(object({
24972
+ deviceId: number(),
24973
+ monitorId: string(),
24974
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24975
+ recapture: boolean().optional()
24976
+ }), _void(), {
24977
+ kind: "mutation",
24978
+ auth: "admin"
24181
24979
  });
24182
24980
  /**
24183
24981
  * Per-stage gating mode applied to the zones a rule references.
@@ -24331,6 +25129,16 @@ var CamStreamDescriptorSchema = object({
24331
25129
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24332
25130
  metadata: record(string(), unknown()).optional()
24333
25131
  });
25132
+ object({
25133
+ /** The descriptors as last built from a real camera response. Never a guess:
25134
+ * a failed or refused build writes NOTHING, so a restored catalog is always
25135
+ * one the camera itself once produced. */
25136
+ descriptors: array(CamStreamDescriptorSchema),
25137
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
25138
+ * path decide whether the camera's own awake window is worth spending on a
25139
+ * re-read. */
25140
+ lastFetchedAt: number()
25141
+ });
24334
25142
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24335
25143
  /** One of the camera's stream profiles. */
24336
25144
  var StreamProfileSchema = _enum([
@@ -24486,12 +25294,64 @@ var NetworkAddressSchema = object({
24486
25294
  family: string(),
24487
25295
  internal: boolean()
24488
25296
  });
25297
+ /**
25298
+ * Provenance of the site coordinates, and the whole reason this is not just two
25299
+ * numbers.
25300
+ *
25301
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25302
+ * nothing overwrites it.
25303
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25304
+ * default that is right to a few kilometres beats the coarse UTC clock split
25305
+ * the sun-times consumers otherwise fall back to.
25306
+ *
25307
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25308
+ * own input will eventually trust the guess.
25309
+ */
25310
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25311
+ /**
25312
+ * The read shape: the location plus the honest state of the one-shot derivation.
25313
+ *
25314
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25315
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25316
+ * failed; the hub will NOT try again on its own — the fallback is declared
25317
+ * (consumers degrade to their own last resort) and the operator either types the
25318
+ * coordinates or presses detect.
25319
+ */
25320
+ var SiteLocationStatusSchema = object({
25321
+ location: object({
25322
+ /** WGS84 decimal degrees. */
25323
+ latitude: number().min(-90).max(90),
25324
+ longitude: number().min(-180).max(180),
25325
+ source: SiteLocationSourceSchema,
25326
+ /** Epoch ms the value was last written. */
25327
+ updatedAt: number(),
25328
+ /**
25329
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25330
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25331
+ */
25332
+ label: string().optional()
25333
+ }).nullable(),
25334
+ derivationAttemptedAt: number().nullable(),
25335
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25336
+ derivationError: string().nullable()
25337
+ });
25338
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25339
+ var SetSiteLocationInputSchema = object({
25340
+ latitude: number().min(-90).max(90),
25341
+ longitude: number().min(-180).max(180)
25342
+ }).nullable();
24489
25343
  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(), {
24490
25344
  kind: "mutation",
24491
25345
  auth: "admin"
24492
25346
  }), method(_void(), _void(), {
24493
25347
  kind: "mutation",
24494
25348
  auth: "admin"
25349
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25350
+ kind: "mutation",
25351
+ auth: "admin"
25352
+ }), method(_void(), SiteLocationStatusSchema, {
25353
+ kind: "mutation",
25354
+ auth: "admin"
24495
25355
  });
24496
25356
  object({
24497
25357
  /** True when the device's tamper switch / case-open contact is
@@ -27221,6 +28081,12 @@ Object.freeze({
27221
28081
  addonId: null,
27222
28082
  access: "create"
27223
28083
  },
28084
+ "llm.cancel": {
28085
+ capName: "llm",
28086
+ capScope: "system",
28087
+ addonId: null,
28088
+ access: "create"
28089
+ },
27224
28090
  "llm.deleteModel": {
27225
28091
  capName: "llm",
27226
28092
  capScope: "system",
@@ -27305,6 +28171,12 @@ Object.freeze({
27305
28171
  addonId: null,
27306
28172
  access: "view"
27307
28173
  },
28174
+ "llm.resolveModelRef": {
28175
+ capName: "llm",
28176
+ capScope: "system",
28177
+ addonId: null,
28178
+ access: "create"
28179
+ },
27308
28180
  "llm.setDefault": {
27309
28181
  capName: "llm",
27310
28182
  capScope: "system",
@@ -29471,6 +30343,12 @@ Object.freeze({
29471
30343
  addonId: null,
29472
30344
  access: "create"
29473
30345
  },
30346
+ "sceneMonitor.resetScene": {
30347
+ capName: "scene-monitor",
30348
+ capScope: "device",
30349
+ addonId: null,
30350
+ access: "delete"
30351
+ },
29474
30352
  "sceneMonitor.updateScene": {
29475
30353
  capName: "scene-monitor",
29476
30354
  capScope: "device",
@@ -29609,6 +30487,12 @@ Object.freeze({
29609
30487
  addonId: null,
29610
30488
  access: "view"
29611
30489
  },
30490
+ "snapshot.getDebugState": {
30491
+ capName: "snapshot",
30492
+ capScope: "device",
30493
+ addonId: null,
30494
+ access: "view"
30495
+ },
29612
30496
  "snapshot.getSnapshot": {
29613
30497
  capName: "snapshot",
29614
30498
  capScope: "device",
@@ -30149,6 +31033,12 @@ Object.freeze({
30149
31033
  addonId: null,
30150
31034
  access: "create"
30151
31035
  },
31036
+ "system.detectSiteLocation": {
31037
+ capName: "system",
31038
+ capScope: "system",
31039
+ addonId: null,
31040
+ access: "create"
31041
+ },
30152
31042
  "system.featureFlags": {
30153
31043
  capName: "system",
30154
31044
  capScope: "system",
@@ -30167,6 +31057,12 @@ Object.freeze({
30167
31057
  addonId: null,
30168
31058
  access: "view"
30169
31059
  },
31060
+ "system.getSiteLocation": {
31061
+ capName: "system",
31062
+ capScope: "system",
31063
+ addonId: null,
31064
+ access: "view"
31065
+ },
30170
31066
  "system.health": {
30171
31067
  capName: "system",
30172
31068
  capScope: "system",
@@ -30191,6 +31087,12 @@ Object.freeze({
30191
31087
  addonId: null,
30192
31088
  access: "create"
30193
31089
  },
31090
+ "system.setSiteLocation": {
31091
+ capName: "system",
31092
+ capScope: "system",
31093
+ addonId: null,
31094
+ access: "create"
31095
+ },
30194
31096
  "terminalSession.adoptLegacyMonitor": {
30195
31097
  capName: "terminal-session",
30196
31098
  capScope: "system",
@@ -30762,6 +31664,1709 @@ Object.freeze({
30762
31664
  access: "create"
30763
31665
  }
30764
31666
  });
31667
+ Object.freeze({
31668
+ "accessories.setChildHidden": [{
31669
+ name: "childDeviceId",
31670
+ form: "single",
31671
+ optional: false
31672
+ }, {
31673
+ name: "deviceId",
31674
+ form: "single",
31675
+ optional: false
31676
+ }],
31677
+ "addonSettings.getDeviceSettings": [{
31678
+ name: "deviceId",
31679
+ form: "single",
31680
+ optional: false
31681
+ }],
31682
+ "addonSettings.updateDeviceSettings": [{
31683
+ name: "deviceId",
31684
+ form: "single",
31685
+ optional: false
31686
+ }],
31687
+ "alarmPanel.arm": [{
31688
+ name: "deviceId",
31689
+ form: "single",
31690
+ optional: false
31691
+ }],
31692
+ "alarmPanel.disarm": [{
31693
+ name: "deviceId",
31694
+ form: "single",
31695
+ optional: false
31696
+ }],
31697
+ "alarmPanel.trigger": [{
31698
+ name: "deviceId",
31699
+ form: "single",
31700
+ optional: false
31701
+ }],
31702
+ "audioAnalysis.resolveDeviceSettings": [{
31703
+ name: "deviceId",
31704
+ form: "single",
31705
+ optional: false
31706
+ }],
31707
+ "audioAnalyzer.classify": [{
31708
+ name: "deviceId",
31709
+ form: "single",
31710
+ optional: true
31711
+ }],
31712
+ "audioMetrics.getCurrentSnapshot": [{
31713
+ name: "deviceId",
31714
+ form: "single",
31715
+ optional: false
31716
+ }],
31717
+ "audioMetrics.getHistory": [{
31718
+ name: "deviceId",
31719
+ form: "single",
31720
+ optional: false
31721
+ }],
31722
+ "automationControl.disable": [{
31723
+ name: "deviceId",
31724
+ form: "single",
31725
+ optional: false
31726
+ }],
31727
+ "automationControl.enable": [{
31728
+ name: "deviceId",
31729
+ form: "single",
31730
+ optional: false
31731
+ }],
31732
+ "automationControl.trigger": [{
31733
+ name: "deviceId",
31734
+ form: "single",
31735
+ optional: false
31736
+ }],
31737
+ "battery.wakeForStream": [{
31738
+ name: "deviceId",
31739
+ form: "single",
31740
+ optional: false
31741
+ }],
31742
+ "brightness.setBrightness": [{
31743
+ name: "deviceId",
31744
+ form: "single",
31745
+ optional: false
31746
+ }],
31747
+ "button.press": [{
31748
+ name: "deviceId",
31749
+ form: "single",
31750
+ optional: false
31751
+ }],
31752
+ "cameraCredentials.getCredentials": [{
31753
+ name: "deviceId",
31754
+ form: "single",
31755
+ optional: false
31756
+ }],
31757
+ "cameraStreams.getBrokerStreams": [{
31758
+ name: "deviceId",
31759
+ form: "single",
31760
+ optional: false
31761
+ }],
31762
+ "cameraStreams.getCameraStreams": [{
31763
+ name: "deviceId",
31764
+ form: "single",
31765
+ optional: false
31766
+ }],
31767
+ "cameraStreams.getProfileRtspEntries": [{
31768
+ name: "deviceId",
31769
+ form: "single",
31770
+ optional: false
31771
+ }],
31772
+ "cameraStreams.getRtspEntries": [{
31773
+ name: "deviceId",
31774
+ form: "single",
31775
+ optional: false
31776
+ }],
31777
+ "cameraStreams.pickStream": [{
31778
+ name: "deviceId",
31779
+ form: "single",
31780
+ optional: false
31781
+ }],
31782
+ "climateControl.setFanMode": [{
31783
+ name: "deviceId",
31784
+ form: "single",
31785
+ optional: false
31786
+ }],
31787
+ "climateControl.setMode": [{
31788
+ name: "deviceId",
31789
+ form: "single",
31790
+ optional: false
31791
+ }],
31792
+ "climateControl.setPreset": [{
31793
+ name: "deviceId",
31794
+ form: "single",
31795
+ optional: false
31796
+ }],
31797
+ "climateControl.setSwingHorizontal": [{
31798
+ name: "deviceId",
31799
+ form: "single",
31800
+ optional: false
31801
+ }],
31802
+ "climateControl.setSwingVertical": [{
31803
+ name: "deviceId",
31804
+ form: "single",
31805
+ optional: false
31806
+ }],
31807
+ "climateControl.setTarget": [{
31808
+ name: "deviceId",
31809
+ form: "single",
31810
+ optional: false
31811
+ }],
31812
+ "climateControl.setTargetHumidity": [{
31813
+ name: "deviceId",
31814
+ form: "single",
31815
+ optional: false
31816
+ }],
31817
+ "climateControl.setTargetRange": [{
31818
+ name: "deviceId",
31819
+ form: "single",
31820
+ optional: false
31821
+ }],
31822
+ "color.setColor": [{
31823
+ name: "deviceId",
31824
+ form: "single",
31825
+ optional: false
31826
+ }],
31827
+ "consumables.reset": [{
31828
+ name: "deviceId",
31829
+ form: "single",
31830
+ optional: false
31831
+ }],
31832
+ "control.setValue": [{
31833
+ name: "deviceId",
31834
+ form: "single",
31835
+ optional: false
31836
+ }],
31837
+ "cover.close": [{
31838
+ name: "deviceId",
31839
+ form: "single",
31840
+ optional: false
31841
+ }],
31842
+ "cover.open": [{
31843
+ name: "deviceId",
31844
+ form: "single",
31845
+ optional: false
31846
+ }],
31847
+ "cover.setPosition": [{
31848
+ name: "deviceId",
31849
+ form: "single",
31850
+ optional: false
31851
+ }],
31852
+ "cover.setTiltPosition": [{
31853
+ name: "deviceId",
31854
+ form: "single",
31855
+ optional: false
31856
+ }],
31857
+ "cover.stop": [{
31858
+ name: "deviceId",
31859
+ form: "single",
31860
+ optional: false
31861
+ }],
31862
+ "dayNight.getOptions": [{
31863
+ name: "deviceId",
31864
+ form: "single",
31865
+ optional: false
31866
+ }],
31867
+ "dayNight.setSettings": [{
31868
+ name: "deviceId",
31869
+ form: "single",
31870
+ optional: false
31871
+ }],
31872
+ "decoder.createSession": [{
31873
+ name: "deviceId",
31874
+ form: "single",
31875
+ optional: true
31876
+ }],
31877
+ "deviceAdoption.release": [{
31878
+ name: "camDeviceId",
31879
+ form: "single",
31880
+ optional: false
31881
+ }],
31882
+ "deviceAdoption.resync": [{
31883
+ name: "camDeviceId",
31884
+ form: "single",
31885
+ optional: false
31886
+ }],
31887
+ "deviceDiscovery.adoptDevice": [{
31888
+ name: "deviceId",
31889
+ form: "single",
31890
+ optional: false
31891
+ }],
31892
+ "deviceDiscovery.listDiscovered": [{
31893
+ name: "deviceId",
31894
+ form: "single",
31895
+ optional: false
31896
+ }],
31897
+ "deviceDiscovery.refreshDiscovery": [{
31898
+ name: "deviceId",
31899
+ form: "single",
31900
+ optional: false
31901
+ }],
31902
+ "deviceDiscovery.releaseDevice": [{
31903
+ name: "childDeviceId",
31904
+ form: "single",
31905
+ optional: false
31906
+ }, {
31907
+ name: "deviceId",
31908
+ form: "single",
31909
+ optional: false
31910
+ }],
31911
+ "deviceManager.adoptionRelease": [{
31912
+ name: "camDeviceId",
31913
+ form: "single",
31914
+ optional: false
31915
+ }],
31916
+ "deviceManager.adoptionResync": [{
31917
+ name: "camDeviceId",
31918
+ form: "single",
31919
+ optional: false
31920
+ }],
31921
+ "deviceManager.applyInitialMeta": [{
31922
+ name: "deviceId",
31923
+ form: "single",
31924
+ optional: false
31925
+ }, {
31926
+ name: "linkDeviceId",
31927
+ form: "single",
31928
+ optional: true
31929
+ }],
31930
+ "deviceManager.disable": [{
31931
+ name: "deviceId",
31932
+ form: "single",
31933
+ optional: false
31934
+ }],
31935
+ "deviceManager.enable": [{
31936
+ name: "deviceId",
31937
+ form: "single",
31938
+ optional: false
31939
+ }],
31940
+ "deviceManager.getBindings": [{
31941
+ name: "deviceId",
31942
+ form: "single",
31943
+ optional: false
31944
+ }],
31945
+ "deviceManager.getChildren": [{
31946
+ name: "parentDeviceId",
31947
+ form: "single",
31948
+ optional: false
31949
+ }],
31950
+ "deviceManager.getConfigSchema": [{
31951
+ name: "deviceId",
31952
+ form: "single",
31953
+ optional: false
31954
+ }],
31955
+ "deviceManager.getDevice": [{
31956
+ name: "deviceId",
31957
+ form: "single",
31958
+ optional: false
31959
+ }],
31960
+ "deviceManager.getDeviceAggregate": [{
31961
+ name: "deviceId",
31962
+ form: "single",
31963
+ optional: false
31964
+ }],
31965
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31966
+ name: "deviceId",
31967
+ form: "single",
31968
+ optional: false
31969
+ }],
31970
+ "deviceManager.getDeviceSettingsAggregate": [{
31971
+ name: "deviceId",
31972
+ form: "single",
31973
+ optional: false
31974
+ }],
31975
+ "deviceManager.getDeviceStatusAggregate": [{
31976
+ name: "deviceId",
31977
+ form: "single",
31978
+ optional: false
31979
+ }],
31980
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31981
+ name: "deviceIds",
31982
+ form: "array",
31983
+ optional: false
31984
+ }],
31985
+ "deviceManager.getLinkedDevices": [{
31986
+ name: "deviceId",
31987
+ form: "single",
31988
+ optional: false
31989
+ }],
31990
+ "deviceManager.getSettingsSchema": [{
31991
+ name: "deviceId",
31992
+ form: "single",
31993
+ optional: false
31994
+ }],
31995
+ "deviceManager.getStreamProfileMap": [{
31996
+ name: "deviceId",
31997
+ form: "single",
31998
+ optional: false
31999
+ }],
32000
+ "deviceManager.getStreamSources": [{
32001
+ name: "deviceId",
32002
+ form: "single",
32003
+ optional: false
32004
+ }],
32005
+ "deviceManager.getWireableFields": [{
32006
+ name: "deviceId",
32007
+ form: "single",
32008
+ optional: false
32009
+ }],
32010
+ "deviceManager.loadConfig": [{
32011
+ name: "deviceId",
32012
+ form: "single",
32013
+ optional: false
32014
+ }],
32015
+ "deviceManager.loadMeta": [{
32016
+ name: "deviceId",
32017
+ form: "single",
32018
+ optional: false
32019
+ }],
32020
+ "deviceManager.loadRuntimeState": [{
32021
+ name: "deviceId",
32022
+ form: "single",
32023
+ optional: false
32024
+ }],
32025
+ "deviceManager.persistConfig": [{
32026
+ name: "deviceId",
32027
+ form: "single",
32028
+ optional: false
32029
+ }],
32030
+ "deviceManager.probeStreams": [{
32031
+ name: "deviceId",
32032
+ form: "single",
32033
+ optional: false
32034
+ }],
32035
+ "deviceManager.registerDevice": [{
32036
+ name: "parentDeviceId",
32037
+ form: "single",
32038
+ optional: true
32039
+ }],
32040
+ "deviceManager.remove": [{
32041
+ name: "deviceId",
32042
+ form: "single",
32043
+ optional: false
32044
+ }],
32045
+ "deviceManager.removeDevice": [{
32046
+ name: "deviceId",
32047
+ form: "single",
32048
+ optional: false
32049
+ }],
32050
+ "deviceManager.runDeviceAction": [{
32051
+ name: "deviceId",
32052
+ form: "single",
32053
+ optional: false
32054
+ }],
32055
+ "deviceManager.setChildLayout": [{
32056
+ name: "deviceId",
32057
+ form: "single",
32058
+ optional: false
32059
+ }],
32060
+ "deviceManager.setDisabled": [{
32061
+ name: "deviceId",
32062
+ form: "single",
32063
+ optional: false
32064
+ }],
32065
+ "deviceManager.setDisplay": [{
32066
+ name: "deviceId",
32067
+ form: "single",
32068
+ optional: false
32069
+ }],
32070
+ "deviceManager.setIntegrationId": [{
32071
+ name: "deviceId",
32072
+ form: "single",
32073
+ optional: false
32074
+ }],
32075
+ "deviceManager.setLinkDeviceId": [{
32076
+ name: "deviceId",
32077
+ form: "single",
32078
+ optional: false
32079
+ }, {
32080
+ name: "linkDeviceId",
32081
+ form: "single",
32082
+ optional: true
32083
+ }],
32084
+ "deviceManager.setLocation": [{
32085
+ name: "deviceId",
32086
+ form: "single",
32087
+ optional: false
32088
+ }],
32089
+ "deviceManager.setMetadata": [{
32090
+ name: "deviceId",
32091
+ form: "single",
32092
+ optional: false
32093
+ }],
32094
+ "deviceManager.setName": [{
32095
+ name: "deviceId",
32096
+ form: "single",
32097
+ optional: false
32098
+ }],
32099
+ "deviceManager.setPrimaryChildEntityId": [{
32100
+ name: "deviceId",
32101
+ form: "single",
32102
+ optional: false
32103
+ }],
32104
+ "deviceManager.setRole": [{
32105
+ name: "deviceId",
32106
+ form: "single",
32107
+ optional: false
32108
+ }],
32109
+ "deviceManager.setStreamProfileMap": [{
32110
+ name: "deviceId",
32111
+ form: "single",
32112
+ optional: false
32113
+ }],
32114
+ "deviceManager.setType": [{
32115
+ name: "deviceId",
32116
+ form: "single",
32117
+ optional: false
32118
+ }],
32119
+ "deviceManager.setWrapperActive": [{
32120
+ name: "deviceId",
32121
+ form: "single",
32122
+ optional: false
32123
+ }],
32124
+ "deviceManager.testField": [{
32125
+ name: "deviceId",
32126
+ form: "single",
32127
+ optional: false
32128
+ }],
32129
+ "deviceManager.updateConfig": [{
32130
+ name: "deviceId",
32131
+ form: "single",
32132
+ optional: false
32133
+ }],
32134
+ "deviceManager.updateDeviceField": [{
32135
+ name: "deviceId",
32136
+ form: "single",
32137
+ optional: false
32138
+ }],
32139
+ "deviceManager.updateDeviceFieldsBatch": [{
32140
+ name: "deviceId",
32141
+ form: "single",
32142
+ optional: false
32143
+ }],
32144
+ "deviceOps.getConfigEntries": [{
32145
+ name: "deviceId",
32146
+ form: "single",
32147
+ optional: false
32148
+ }],
32149
+ "deviceOps.getRawState": [{
32150
+ name: "deviceId",
32151
+ form: "single",
32152
+ optional: false
32153
+ }],
32154
+ "deviceOps.getSettingsSchema": [{
32155
+ name: "deviceId",
32156
+ form: "single",
32157
+ optional: false
32158
+ }],
32159
+ "deviceOps.getStreamSources": [{
32160
+ name: "deviceId",
32161
+ form: "single",
32162
+ optional: false
32163
+ }],
32164
+ "deviceOps.removeDevice": [{
32165
+ name: "deviceId",
32166
+ form: "single",
32167
+ optional: false
32168
+ }],
32169
+ "deviceOps.runAction": [{
32170
+ name: "deviceId",
32171
+ form: "single",
32172
+ optional: false
32173
+ }],
32174
+ "deviceOps.setConfig": [{
32175
+ name: "deviceId",
32176
+ form: "single",
32177
+ optional: false
32178
+ }],
32179
+ "deviceState.getCapSlice": [{
32180
+ name: "deviceId",
32181
+ form: "single",
32182
+ optional: false
32183
+ }],
32184
+ "deviceState.getSnapshot": [{
32185
+ name: "deviceId",
32186
+ form: "single",
32187
+ optional: false
32188
+ }],
32189
+ "deviceState.setCapSlice": [{
32190
+ name: "deviceId",
32191
+ form: "single",
32192
+ optional: false
32193
+ }],
32194
+ "events.getEventClipUrl": [{
32195
+ name: "deviceId",
32196
+ form: "single",
32197
+ optional: false
32198
+ }],
32199
+ "events.getEvents": [{
32200
+ name: "deviceId",
32201
+ form: "single",
32202
+ optional: false
32203
+ }],
32204
+ "events.getEventThumbnail": [{
32205
+ name: "deviceId",
32206
+ form: "single",
32207
+ optional: false
32208
+ }],
32209
+ "faceGallery.getFaceByTrack": [{
32210
+ name: "deviceId",
32211
+ form: "single",
32212
+ optional: false
32213
+ }],
32214
+ "faceGallery.listRecentFaces": [{
32215
+ name: "deviceId",
32216
+ form: "single",
32217
+ optional: true
32218
+ }],
32219
+ "fanControl.setDirection": [{
32220
+ name: "deviceId",
32221
+ form: "single",
32222
+ optional: false
32223
+ }],
32224
+ "fanControl.setOscillating": [{
32225
+ name: "deviceId",
32226
+ form: "single",
32227
+ optional: false
32228
+ }],
32229
+ "fanControl.setPercentage": [{
32230
+ name: "deviceId",
32231
+ form: "single",
32232
+ optional: false
32233
+ }],
32234
+ "fanControl.setPreset": [{
32235
+ name: "deviceId",
32236
+ form: "single",
32237
+ optional: false
32238
+ }],
32239
+ "humidifier.setMode": [{
32240
+ name: "deviceId",
32241
+ form: "single",
32242
+ optional: false
32243
+ }],
32244
+ "humidifier.setOn": [{
32245
+ name: "deviceId",
32246
+ form: "single",
32247
+ optional: false
32248
+ }],
32249
+ "humidifier.setTargetHumidity": [{
32250
+ name: "deviceId",
32251
+ form: "single",
32252
+ optional: false
32253
+ }],
32254
+ "imageSettings.getOptions": [{
32255
+ name: "deviceId",
32256
+ form: "single",
32257
+ optional: false
32258
+ }],
32259
+ "imageSettings.setSettings": [{
32260
+ name: "deviceId",
32261
+ form: "single",
32262
+ optional: false
32263
+ }],
32264
+ "intercom.endTalkSession": [{
32265
+ name: "deviceId",
32266
+ form: "single",
32267
+ optional: false
32268
+ }],
32269
+ "intercom.handleAnswer": [{
32270
+ name: "deviceId",
32271
+ form: "single",
32272
+ optional: false
32273
+ }],
32274
+ "intercom.pushTalkAudio": [{
32275
+ name: "deviceId",
32276
+ form: "single",
32277
+ optional: false
32278
+ }],
32279
+ "intercom.startSession": [{
32280
+ name: "deviceId",
32281
+ form: "single",
32282
+ optional: false
32283
+ }],
32284
+ "intercom.startTalkSession": [{
32285
+ name: "deviceId",
32286
+ form: "single",
32287
+ optional: false
32288
+ }],
32289
+ "intercom.stopSession": [{
32290
+ name: "deviceId",
32291
+ form: "single",
32292
+ optional: false
32293
+ }],
32294
+ "lawnMowerControl.dock": [{
32295
+ name: "deviceId",
32296
+ form: "single",
32297
+ optional: false
32298
+ }],
32299
+ "lawnMowerControl.pause": [{
32300
+ name: "deviceId",
32301
+ form: "single",
32302
+ optional: false
32303
+ }],
32304
+ "lawnMowerControl.startMowing": [{
32305
+ name: "deviceId",
32306
+ form: "single",
32307
+ optional: false
32308
+ }],
32309
+ "lockControl.lock": [{
32310
+ name: "deviceId",
32311
+ form: "single",
32312
+ optional: false
32313
+ }],
32314
+ "lockControl.open": [{
32315
+ name: "deviceId",
32316
+ form: "single",
32317
+ optional: false
32318
+ }],
32319
+ "lockControl.unlock": [{
32320
+ name: "deviceId",
32321
+ form: "single",
32322
+ optional: false
32323
+ }],
32324
+ "mediaPlayer.next": [{
32325
+ name: "deviceId",
32326
+ form: "single",
32327
+ optional: false
32328
+ }],
32329
+ "mediaPlayer.pause": [{
32330
+ name: "deviceId",
32331
+ form: "single",
32332
+ optional: false
32333
+ }],
32334
+ "mediaPlayer.play": [{
32335
+ name: "deviceId",
32336
+ form: "single",
32337
+ optional: false
32338
+ }],
32339
+ "mediaPlayer.playMedia": [{
32340
+ name: "deviceId",
32341
+ form: "single",
32342
+ optional: false
32343
+ }],
32344
+ "mediaPlayer.previous": [{
32345
+ name: "deviceId",
32346
+ form: "single",
32347
+ optional: false
32348
+ }],
32349
+ "mediaPlayer.seek": [{
32350
+ name: "deviceId",
32351
+ form: "single",
32352
+ optional: false
32353
+ }],
32354
+ "mediaPlayer.selectSource": [{
32355
+ name: "deviceId",
32356
+ form: "single",
32357
+ optional: false
32358
+ }],
32359
+ "mediaPlayer.setMute": [{
32360
+ name: "deviceId",
32361
+ form: "single",
32362
+ optional: false
32363
+ }],
32364
+ "mediaPlayer.setRepeat": [{
32365
+ name: "deviceId",
32366
+ form: "single",
32367
+ optional: false
32368
+ }],
32369
+ "mediaPlayer.setShuffle": [{
32370
+ name: "deviceId",
32371
+ form: "single",
32372
+ optional: false
32373
+ }],
32374
+ "mediaPlayer.setVolume": [{
32375
+ name: "deviceId",
32376
+ form: "single",
32377
+ optional: false
32378
+ }],
32379
+ "mediaPlayer.stop": [{
32380
+ name: "deviceId",
32381
+ form: "single",
32382
+ optional: false
32383
+ }],
32384
+ "motion.isDetected": [{
32385
+ name: "deviceId",
32386
+ form: "single",
32387
+ optional: false
32388
+ }],
32389
+ "motionDetection.analyze": [{
32390
+ name: "deviceId",
32391
+ form: "single",
32392
+ optional: false
32393
+ }],
32394
+ "motionDetection.removeCamera": [{
32395
+ name: "deviceId",
32396
+ form: "single",
32397
+ optional: false
32398
+ }],
32399
+ "motionTrigger.setMotionTrigger": [{
32400
+ name: "deviceId",
32401
+ form: "single",
32402
+ optional: false
32403
+ }],
32404
+ "motionZones.getOptions": [{
32405
+ name: "deviceId",
32406
+ form: "single",
32407
+ optional: false
32408
+ }],
32409
+ "motionZones.setZone": [{
32410
+ name: "deviceId",
32411
+ form: "single",
32412
+ optional: false
32413
+ }],
32414
+ "nativeObjectDetection.setEnabled": [{
32415
+ name: "deviceId",
32416
+ form: "single",
32417
+ optional: false
32418
+ }],
32419
+ "networkQuality.getDeviceStats": [{
32420
+ name: "deviceId",
32421
+ form: "single",
32422
+ optional: false
32423
+ }],
32424
+ "networkQuality.reportClientStats": [{
32425
+ name: "deviceId",
32426
+ form: "single",
32427
+ optional: false
32428
+ }],
32429
+ "notificationRules.setDeviceMuted": [{
32430
+ name: "deviceId",
32431
+ form: "single",
32432
+ optional: false
32433
+ }],
32434
+ "notifier.cancel": [{
32435
+ name: "deviceId",
32436
+ form: "single",
32437
+ optional: false
32438
+ }],
32439
+ "notifier.send": [{
32440
+ name: "deviceId",
32441
+ form: "single",
32442
+ optional: false
32443
+ }],
32444
+ "osd.setOverlay": [{
32445
+ name: "deviceId",
32446
+ form: "single",
32447
+ optional: false
32448
+ }],
32449
+ "osdManager.clearSlotBinding": [{
32450
+ name: "deviceId",
32451
+ form: "single",
32452
+ optional: false
32453
+ }],
32454
+ "osdManager.copyDeviceConfiguration": [{
32455
+ name: "sourceDeviceId",
32456
+ form: "single",
32457
+ optional: false
32458
+ }, {
32459
+ name: "targetDeviceId",
32460
+ form: "single",
32461
+ optional: false
32462
+ }],
32463
+ "osdManager.getDeviceOsd": [{
32464
+ name: "deviceId",
32465
+ form: "single",
32466
+ optional: false
32467
+ }],
32468
+ "osdManager.getSourceCatalog": [{
32469
+ name: "deviceId",
32470
+ form: "single",
32471
+ optional: false
32472
+ }],
32473
+ "osdManager.previewSlot": [{
32474
+ name: "deviceId",
32475
+ form: "single",
32476
+ optional: false
32477
+ }],
32478
+ "osdManager.renderDevice": [{
32479
+ name: "deviceId",
32480
+ form: "single",
32481
+ optional: false
32482
+ }],
32483
+ "osdManager.setSlotBinding": [{
32484
+ name: "deviceId",
32485
+ form: "single",
32486
+ optional: false
32487
+ }],
32488
+ "petFeeder.callPet": [{
32489
+ name: "deviceId",
32490
+ form: "single",
32491
+ optional: false
32492
+ }],
32493
+ "petFeeder.cancelFeed": [{
32494
+ name: "deviceId",
32495
+ form: "single",
32496
+ optional: false
32497
+ }],
32498
+ "petFeeder.feed": [{
32499
+ name: "deviceId",
32500
+ form: "single",
32501
+ optional: false
32502
+ }],
32503
+ "petFeeder.markFoodReplenished": [{
32504
+ name: "deviceId",
32505
+ form: "single",
32506
+ optional: false
32507
+ }],
32508
+ "petFeeder.playSound": [{
32509
+ name: "deviceId",
32510
+ form: "single",
32511
+ optional: false
32512
+ }],
32513
+ "petFeeder.resetDesiccant": [{
32514
+ name: "deviceId",
32515
+ form: "single",
32516
+ optional: false
32517
+ }],
32518
+ "petFeeder.setChildLock": [{
32519
+ name: "deviceId",
32520
+ form: "single",
32521
+ optional: false
32522
+ }],
32523
+ "petFeeder.setFeedSound": [{
32524
+ name: "deviceId",
32525
+ form: "single",
32526
+ optional: false
32527
+ }],
32528
+ "petFeeder.setIndicatorLight": [{
32529
+ name: "deviceId",
32530
+ form: "single",
32531
+ optional: false
32532
+ }],
32533
+ "petFeeder.setVolume": [{
32534
+ name: "deviceId",
32535
+ form: "single",
32536
+ optional: false
32537
+ }],
32538
+ "pipelineAnalytics.clearTracks": [{
32539
+ name: "deviceId",
32540
+ form: "single",
32541
+ optional: false
32542
+ }],
32543
+ "pipelineAnalytics.completeRetrainTrack": [{
32544
+ name: "deviceId",
32545
+ form: "single",
32546
+ optional: false
32547
+ }],
32548
+ "pipelineAnalytics.deleteDeviceEvents": [{
32549
+ name: "deviceId",
32550
+ form: "single",
32551
+ optional: false
32552
+ }],
32553
+ "pipelineAnalytics.deleteTracks": [{
32554
+ name: "deviceId",
32555
+ form: "single",
32556
+ optional: false
32557
+ }],
32558
+ "pipelineAnalytics.deselectRetrainFrame": [{
32559
+ name: "deviceId",
32560
+ form: "single",
32561
+ optional: false
32562
+ }],
32563
+ "pipelineAnalytics.getActiveTracks": [{
32564
+ name: "deviceId",
32565
+ form: "single",
32566
+ optional: false
32567
+ }],
32568
+ "pipelineAnalytics.getAudioEvents": [{
32569
+ name: "deviceId",
32570
+ form: "single",
32571
+ optional: false
32572
+ }],
32573
+ "pipelineAnalytics.getEventDensity": [{
32574
+ name: "deviceId",
32575
+ form: "single",
32576
+ optional: false
32577
+ }],
32578
+ "pipelineAnalytics.getEventMedia": [{
32579
+ name: "deviceId",
32580
+ form: "single",
32581
+ optional: false
32582
+ }],
32583
+ "pipelineAnalytics.getKeyEvents": [{
32584
+ name: "deviceId",
32585
+ form: "single",
32586
+ optional: false
32587
+ }],
32588
+ "pipelineAnalytics.getMotionEvents": [{
32589
+ name: "deviceId",
32590
+ form: "single",
32591
+ optional: false
32592
+ }],
32593
+ "pipelineAnalytics.getObjectEvents": [{
32594
+ name: "deviceId",
32595
+ form: "single",
32596
+ optional: false
32597
+ }],
32598
+ "pipelineAnalytics.getRetrainExportUrl": [{
32599
+ name: "deviceIds",
32600
+ form: "array",
32601
+ optional: true
32602
+ }],
32603
+ "pipelineAnalytics.getSensorEvents": [{
32604
+ name: "deviceId",
32605
+ form: "single",
32606
+ optional: false
32607
+ }],
32608
+ "pipelineAnalytics.getTrack": [{
32609
+ name: "deviceId",
32610
+ form: "single",
32611
+ optional: false
32612
+ }],
32613
+ "pipelineAnalytics.getTrackMedia": [{
32614
+ name: "deviceId",
32615
+ form: "single",
32616
+ optional: false
32617
+ }],
32618
+ "pipelineAnalytics.getTrainingExportSummary": [{
32619
+ name: "deviceIds",
32620
+ form: "array",
32621
+ optional: true
32622
+ }],
32623
+ "pipelineAnalytics.getTrainingExportUrl": [{
32624
+ name: "deviceIds",
32625
+ form: "array",
32626
+ optional: true
32627
+ }],
32628
+ "pipelineAnalytics.listEventKinds": [{
32629
+ name: "deviceId",
32630
+ form: "single",
32631
+ optional: false
32632
+ }],
32633
+ "pipelineAnalytics.listEventKindsBatch": [{
32634
+ name: "deviceIds",
32635
+ form: "array",
32636
+ optional: false
32637
+ }],
32638
+ "pipelineAnalytics.listOpsLog": [{
32639
+ name: "deviceId",
32640
+ form: "single",
32641
+ optional: true
32642
+ }],
32643
+ "pipelineAnalytics.listRecentTracks": [{
32644
+ name: "deviceIds",
32645
+ form: "array",
32646
+ optional: false
32647
+ }],
32648
+ "pipelineAnalytics.listRetrainStaging": [{
32649
+ name: "deviceIds",
32650
+ form: "array",
32651
+ optional: true
32652
+ }],
32653
+ "pipelineAnalytics.listTrackMedia": [{
32654
+ name: "deviceId",
32655
+ form: "single",
32656
+ optional: false
32657
+ }],
32658
+ "pipelineAnalytics.listTracks": [{
32659
+ name: "deviceId",
32660
+ form: "single",
32661
+ optional: false
32662
+ }],
32663
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32664
+ name: "deviceId",
32665
+ form: "single",
32666
+ optional: false
32667
+ }],
32668
+ "pipelineAnalytics.pruneEventsBefore": [{
32669
+ name: "deviceId",
32670
+ form: "single",
32671
+ optional: false
32672
+ }],
32673
+ "pipelineAnalytics.pruneTracksBefore": [{
32674
+ name: "deviceId",
32675
+ form: "single",
32676
+ optional: false
32677
+ }],
32678
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32679
+ name: "deviceId",
32680
+ form: "single",
32681
+ optional: true
32682
+ }],
32683
+ "pipelineAnalytics.restageRetrainTrack": [{
32684
+ name: "deviceId",
32685
+ form: "single",
32686
+ optional: false
32687
+ }],
32688
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32689
+ name: "deviceId",
32690
+ form: "single",
32691
+ optional: false
32692
+ }],
32693
+ "pipelineAnalytics.searchObjectEvents": [{
32694
+ name: "deviceId",
32695
+ form: "single",
32696
+ optional: true
32697
+ }],
32698
+ "pipelineAnalytics.selectRetrainFrames": [{
32699
+ name: "deviceId",
32700
+ form: "single",
32701
+ optional: false
32702
+ }],
32703
+ "pipelineAnalytics.setTrackFlags": [{
32704
+ name: "deviceId",
32705
+ form: "single",
32706
+ optional: false
32707
+ }],
32708
+ "pipelineAnalytics.wipeAllAnalytics": [{
32709
+ name: "deviceId",
32710
+ form: "single",
32711
+ optional: false
32712
+ }],
32713
+ "pipelineExecutor.runPipeline": [{
32714
+ name: "deviceId",
32715
+ form: "single",
32716
+ optional: true
32717
+ }],
32718
+ "pipelineExecutor.runPipelineBatch": [{
32719
+ name: "deviceId",
32720
+ form: "single",
32721
+ optional: true
32722
+ }],
32723
+ "pipelineOrchestrator.assignAudio": [{
32724
+ name: "deviceId",
32725
+ form: "single",
32726
+ optional: false
32727
+ }],
32728
+ "pipelineOrchestrator.assignPipeline": [{
32729
+ name: "deviceId",
32730
+ form: "single",
32731
+ optional: false
32732
+ }],
32733
+ "pipelineOrchestrator.getAudioAssignment": [{
32734
+ name: "deviceId",
32735
+ form: "single",
32736
+ optional: false
32737
+ }],
32738
+ "pipelineOrchestrator.getCameraMetrics": [{
32739
+ name: "deviceId",
32740
+ form: "single",
32741
+ optional: false
32742
+ }],
32743
+ "pipelineOrchestrator.getCameraSettings": [{
32744
+ name: "deviceId",
32745
+ form: "single",
32746
+ optional: false
32747
+ }],
32748
+ "pipelineOrchestrator.getCameraStatus": [{
32749
+ name: "deviceId",
32750
+ form: "single",
32751
+ optional: false
32752
+ }],
32753
+ "pipelineOrchestrator.getCameraStatuses": [{
32754
+ name: "deviceIds",
32755
+ form: "array",
32756
+ optional: true
32757
+ }],
32758
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32759
+ name: "deviceId",
32760
+ form: "single",
32761
+ optional: false
32762
+ }],
32763
+ "pipelineOrchestrator.getCameraSwitches": [{
32764
+ name: "deviceId",
32765
+ form: "single",
32766
+ optional: false
32767
+ }],
32768
+ "pipelineOrchestrator.getPipelineAssignment": [{
32769
+ name: "deviceId",
32770
+ form: "single",
32771
+ optional: false
32772
+ }],
32773
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32774
+ name: "deviceId",
32775
+ form: "single",
32776
+ optional: false
32777
+ }],
32778
+ "pipelineOrchestrator.resolvePipeline": [{
32779
+ name: "deviceId",
32780
+ form: "single",
32781
+ optional: false
32782
+ }],
32783
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32784
+ name: "deviceId",
32785
+ form: "single",
32786
+ optional: false
32787
+ }],
32788
+ "pipelineOrchestrator.setCameraStepOverride": [{
32789
+ name: "deviceId",
32790
+ form: "single",
32791
+ optional: false
32792
+ }],
32793
+ "pipelineOrchestrator.setCameraStepToggle": [{
32794
+ name: "deviceId",
32795
+ form: "single",
32796
+ optional: false
32797
+ }],
32798
+ "pipelineOrchestrator.setCameraSwitch": [{
32799
+ name: "deviceId",
32800
+ form: "single",
32801
+ optional: false
32802
+ }],
32803
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32804
+ name: "deviceId",
32805
+ form: "single",
32806
+ optional: false
32807
+ }],
32808
+ "pipelineOrchestrator.unassignAudio": [{
32809
+ name: "deviceId",
32810
+ form: "single",
32811
+ optional: false
32812
+ }],
32813
+ "pipelineOrchestrator.unassignPipeline": [{
32814
+ name: "deviceId",
32815
+ form: "single",
32816
+ optional: false
32817
+ }],
32818
+ "pipelineRunner.attachCamera": [{
32819
+ name: "deviceId",
32820
+ form: "single",
32821
+ optional: false
32822
+ }],
32823
+ "pipelineRunner.detachCamera": [{
32824
+ name: "deviceId",
32825
+ form: "single",
32826
+ optional: false
32827
+ }],
32828
+ "pipelineRunner.getCameraMetrics": [{
32829
+ name: "deviceId",
32830
+ form: "single",
32831
+ optional: false
32832
+ }],
32833
+ "pipelineRunner.reportMotion": [{
32834
+ name: "deviceId",
32835
+ form: "single",
32836
+ optional: false
32837
+ }],
32838
+ "pipelineRunner.runDetailSubtree": [{
32839
+ name: "deviceId",
32840
+ form: "single",
32841
+ optional: false
32842
+ }],
32843
+ "pipelineRunner.runStatelessStep": [{
32844
+ name: "sourceDeviceId",
32845
+ form: "single",
32846
+ optional: false
32847
+ }],
32848
+ "plateGallery.getPlateByTrack": [{
32849
+ name: "deviceId",
32850
+ form: "single",
32851
+ optional: false
32852
+ }],
32853
+ "plateGallery.listPlates": [{
32854
+ name: "deviceId",
32855
+ form: "single",
32856
+ optional: true
32857
+ }],
32858
+ "privacyMask.getOptions": [{
32859
+ name: "deviceId",
32860
+ form: "single",
32861
+ optional: false
32862
+ }],
32863
+ "privacyMask.setAudioEnabled": [{
32864
+ name: "deviceId",
32865
+ form: "single",
32866
+ optional: false
32867
+ }],
32868
+ "privacyMask.setMask": [{
32869
+ name: "deviceId",
32870
+ form: "single",
32871
+ optional: false
32872
+ }],
32873
+ "ptz.continuousMove": [{
32874
+ name: "deviceId",
32875
+ form: "single",
32876
+ optional: false
32877
+ }],
32878
+ "ptz.deletePreset": [{
32879
+ name: "deviceId",
32880
+ form: "single",
32881
+ optional: false
32882
+ }],
32883
+ "ptz.getOptions": [{
32884
+ name: "deviceId",
32885
+ form: "single",
32886
+ optional: false
32887
+ }],
32888
+ "ptz.getPosition": [{
32889
+ name: "deviceId",
32890
+ form: "single",
32891
+ optional: false
32892
+ }],
32893
+ "ptz.getPresets": [{
32894
+ name: "deviceId",
32895
+ form: "single",
32896
+ optional: false
32897
+ }],
32898
+ "ptz.goHome": [{
32899
+ name: "deviceId",
32900
+ form: "single",
32901
+ optional: false
32902
+ }],
32903
+ "ptz.goToPreset": [{
32904
+ name: "deviceId",
32905
+ form: "single",
32906
+ optional: false
32907
+ }],
32908
+ "ptz.move": [{
32909
+ name: "deviceId",
32910
+ form: "single",
32911
+ optional: false
32912
+ }],
32913
+ "ptz.savePreset": [{
32914
+ name: "deviceId",
32915
+ form: "single",
32916
+ optional: false
32917
+ }],
32918
+ "ptz.setAutofocus": [{
32919
+ name: "deviceId",
32920
+ form: "single",
32921
+ optional: false
32922
+ }],
32923
+ "ptz.stop": [{
32924
+ name: "deviceId",
32925
+ form: "single",
32926
+ optional: false
32927
+ }],
32928
+ "ptzAutotrack.getSettings": [{
32929
+ name: "deviceId",
32930
+ form: "single",
32931
+ optional: false
32932
+ }],
32933
+ "ptzAutotrack.getStatus": [{
32934
+ name: "deviceId",
32935
+ form: "single",
32936
+ optional: false
32937
+ }],
32938
+ "ptzAutotrack.setEnabled": [{
32939
+ name: "deviceId",
32940
+ form: "single",
32941
+ optional: false
32942
+ }],
32943
+ "ptzAutotrack.setSettings": [{
32944
+ name: "deviceId",
32945
+ form: "single",
32946
+ optional: false
32947
+ }],
32948
+ "reboot.reboot": [{
32949
+ name: "deviceId",
32950
+ form: "single",
32951
+ optional: false
32952
+ }],
32953
+ "recording.deleteFootprint": [{
32954
+ name: "deviceId",
32955
+ form: "single",
32956
+ optional: false
32957
+ }],
32958
+ "recording.getAvailability": [{
32959
+ name: "deviceId",
32960
+ form: "single",
32961
+ optional: false
32962
+ }],
32963
+ "recording.getDaysWithRecordings": [{
32964
+ name: "deviceId",
32965
+ form: "single",
32966
+ optional: false
32967
+ }],
32968
+ "recording.getDeviceConfig": [{
32969
+ name: "deviceId",
32970
+ form: "single",
32971
+ optional: false
32972
+ }],
32973
+ "recording.getPlaybackManifest": [{
32974
+ name: "deviceId",
32975
+ form: "single",
32976
+ optional: false
32977
+ }],
32978
+ "recording.listOpsLog": [{
32979
+ name: "deviceId",
32980
+ form: "single",
32981
+ optional: true
32982
+ }],
32983
+ "recording.locateSegment": [{
32984
+ name: "deviceId",
32985
+ form: "single",
32986
+ optional: false
32987
+ }],
32988
+ "recording.pruneFootage": [{
32989
+ name: "deviceId",
32990
+ form: "single",
32991
+ optional: false
32992
+ }],
32993
+ "recording.readGopBytes": [{
32994
+ name: "deviceId",
32995
+ form: "single",
32996
+ optional: false
32997
+ }],
32998
+ "recording.readSegmentBytes": [{
32999
+ name: "deviceId",
33000
+ form: "single",
33001
+ optional: false
33002
+ }],
33003
+ "recording.relocateFootage": [{
33004
+ name: "deviceId",
33005
+ form: "single",
33006
+ optional: true
33007
+ }],
33008
+ "recording.renderClip": [{
33009
+ name: "deviceId",
33010
+ form: "single",
33011
+ optional: false
33012
+ }],
33013
+ "recording.renderGif": [{
33014
+ name: "deviceId",
33015
+ form: "single",
33016
+ optional: false
33017
+ }],
33018
+ "recording.rescanStorage": [{
33019
+ name: "deviceId",
33020
+ form: "single",
33021
+ optional: false
33022
+ }],
33023
+ "recording.setDeviceConfig": [{
33024
+ name: "deviceId",
33025
+ form: "single",
33026
+ optional: false
33027
+ }],
33028
+ "recording.startStorageMigrationMove": [{
33029
+ name: "deviceId",
33030
+ form: "single",
33031
+ optional: true
33032
+ }],
33033
+ "recordingExport.createExport": [{
33034
+ name: "deviceId",
33035
+ form: "single",
33036
+ optional: false
33037
+ }],
33038
+ "recordingExport.listExports": [{
33039
+ name: "deviceId",
33040
+ form: "single",
33041
+ optional: true
33042
+ }],
33043
+ "sceneMonitor.captureReference": [{
33044
+ name: "deviceId",
33045
+ form: "single",
33046
+ optional: false
33047
+ }],
33048
+ "sceneMonitor.createScene": [{
33049
+ name: "deviceId",
33050
+ form: "single",
33051
+ optional: false
33052
+ }],
33053
+ "sceneMonitor.deleteReference": [{
33054
+ name: "deviceId",
33055
+ form: "single",
33056
+ optional: false
33057
+ }],
33058
+ "sceneMonitor.deleteScene": [{
33059
+ name: "deviceId",
33060
+ form: "single",
33061
+ optional: false
33062
+ }],
33063
+ "sceneMonitor.listScenes": [{
33064
+ name: "deviceId",
33065
+ form: "single",
33066
+ optional: false
33067
+ }],
33068
+ "sceneMonitor.recheckNow": [{
33069
+ name: "deviceId",
33070
+ form: "single",
33071
+ optional: false
33072
+ }],
33073
+ "sceneMonitor.resetScene": [{
33074
+ name: "deviceId",
33075
+ form: "single",
33076
+ optional: false
33077
+ }],
33078
+ "sceneMonitor.updateScene": [{
33079
+ name: "deviceId",
33080
+ form: "single",
33081
+ optional: false
33082
+ }],
33083
+ "scriptRunner.run": [{
33084
+ name: "deviceId",
33085
+ form: "single",
33086
+ optional: false
33087
+ }],
33088
+ "scriptRunner.stop": [{
33089
+ name: "deviceId",
33090
+ form: "single",
33091
+ optional: false
33092
+ }],
33093
+ "snapshot.getDebugState": [{
33094
+ name: "deviceId",
33095
+ form: "single",
33096
+ optional: false
33097
+ }],
33098
+ "snapshot.getSnapshot": [{
33099
+ name: "deviceId",
33100
+ form: "single",
33101
+ optional: false
33102
+ }],
33103
+ "snapshot.getSnapshotLinks": [{
33104
+ name: "targets",
33105
+ form: "object-array",
33106
+ optional: false,
33107
+ itemField: "deviceId"
33108
+ }],
33109
+ "snapshot.getSnapshotOverview": [{
33110
+ name: "deviceIds",
33111
+ form: "array",
33112
+ optional: false
33113
+ }],
33114
+ "snapshot.invalidateCache": [{
33115
+ name: "deviceId",
33116
+ form: "single",
33117
+ optional: false
33118
+ }],
33119
+ "streamBroker.acquireEgressTranscode": [{
33120
+ name: "deviceId",
33121
+ form: "single",
33122
+ optional: false
33123
+ }],
33124
+ "streamBroker.assignProfile": [{
33125
+ name: "deviceId",
33126
+ form: "single",
33127
+ optional: false
33128
+ }],
33129
+ "streamBroker.getDeviceAudioMute": [{
33130
+ name: "deviceId",
33131
+ form: "single",
33132
+ optional: false
33133
+ }],
33134
+ "streamBroker.getStreamWithCodec": [{
33135
+ name: "deviceId",
33136
+ form: "single",
33137
+ optional: false
33138
+ }],
33139
+ "streamBroker.produceEventMedia": [{
33140
+ name: "deviceId",
33141
+ form: "single",
33142
+ optional: false
33143
+ }],
33144
+ "streamBroker.publishCameraStream": [{
33145
+ name: "deviceId",
33146
+ form: "single",
33147
+ optional: false
33148
+ }],
33149
+ "streamBroker.renderPreBufferClip": [{
33150
+ name: "deviceId",
33151
+ form: "single",
33152
+ optional: false
33153
+ }],
33154
+ "streamBroker.restartProfile": [{
33155
+ name: "deviceId",
33156
+ form: "single",
33157
+ optional: false
33158
+ }],
33159
+ "streamBroker.retractCameraStream": [{
33160
+ name: "deviceId",
33161
+ form: "single",
33162
+ optional: false
33163
+ }],
33164
+ "streamBroker.setDeviceAudioMute": [{
33165
+ name: "deviceId",
33166
+ form: "single",
33167
+ optional: false
33168
+ }],
33169
+ "streamBroker.unassignProfile": [{
33170
+ name: "deviceId",
33171
+ form: "single",
33172
+ optional: false
33173
+ }],
33174
+ "streamCatalog.getCatalog": [{
33175
+ name: "deviceId",
33176
+ form: "single",
33177
+ optional: false
33178
+ }],
33179
+ "streamParams.getConfigSchema": [{
33180
+ name: "deviceId",
33181
+ form: "single",
33182
+ optional: false
33183
+ }],
33184
+ "streamParams.getOptions": [{
33185
+ name: "deviceId",
33186
+ form: "single",
33187
+ optional: false
33188
+ }],
33189
+ "streamParams.setProfile": [{
33190
+ name: "deviceId",
33191
+ form: "single",
33192
+ optional: false
33193
+ }],
33194
+ "switch.setState": [{
33195
+ name: "deviceId",
33196
+ form: "single",
33197
+ optional: false
33198
+ }],
33199
+ "vacuumControl.locate": [{
33200
+ name: "deviceId",
33201
+ form: "single",
33202
+ optional: false
33203
+ }],
33204
+ "vacuumControl.pause": [{
33205
+ name: "deviceId",
33206
+ form: "single",
33207
+ optional: false
33208
+ }],
33209
+ "vacuumControl.returnToBase": [{
33210
+ name: "deviceId",
33211
+ form: "single",
33212
+ optional: false
33213
+ }],
33214
+ "vacuumControl.setFanSpeed": [{
33215
+ name: "deviceId",
33216
+ form: "single",
33217
+ optional: false
33218
+ }],
33219
+ "vacuumControl.start": [{
33220
+ name: "deviceId",
33221
+ form: "single",
33222
+ optional: false
33223
+ }],
33224
+ "vacuumControl.stop": [{
33225
+ name: "deviceId",
33226
+ form: "single",
33227
+ optional: false
33228
+ }],
33229
+ "valve.close": [{
33230
+ name: "deviceId",
33231
+ form: "single",
33232
+ optional: false
33233
+ }],
33234
+ "valve.open": [{
33235
+ name: "deviceId",
33236
+ form: "single",
33237
+ optional: false
33238
+ }],
33239
+ "valve.setPosition": [{
33240
+ name: "deviceId",
33241
+ form: "single",
33242
+ optional: false
33243
+ }],
33244
+ "valve.stop": [{
33245
+ name: "deviceId",
33246
+ form: "single",
33247
+ optional: false
33248
+ }],
33249
+ "videoclips.getClipPlayback": [{
33250
+ name: "deviceId",
33251
+ form: "single",
33252
+ optional: false
33253
+ }],
33254
+ "videoclips.listClips": [{
33255
+ name: "deviceId",
33256
+ form: "single",
33257
+ optional: false
33258
+ }],
33259
+ "waterHeater.setAway": [{
33260
+ name: "deviceId",
33261
+ form: "single",
33262
+ optional: false
33263
+ }],
33264
+ "waterHeater.setOperationMode": [{
33265
+ name: "deviceId",
33266
+ form: "single",
33267
+ optional: false
33268
+ }],
33269
+ "waterHeater.setTargetTemp": [{
33270
+ name: "deviceId",
33271
+ form: "single",
33272
+ optional: false
33273
+ }],
33274
+ "webrtcSession.addIceCandidate": [{
33275
+ name: "deviceId",
33276
+ form: "single",
33277
+ optional: false
33278
+ }],
33279
+ "webrtcSession.closeSession": [{
33280
+ name: "deviceId",
33281
+ form: "single",
33282
+ optional: false
33283
+ }],
33284
+ "webrtcSession.createSession": [{
33285
+ name: "deviceId",
33286
+ form: "single",
33287
+ optional: false
33288
+ }],
33289
+ "webrtcSession.getIceCandidates": [{
33290
+ name: "deviceId",
33291
+ form: "single",
33292
+ optional: false
33293
+ }],
33294
+ "webrtcSession.getSessionState": [{
33295
+ name: "deviceId",
33296
+ form: "single",
33297
+ optional: false
33298
+ }],
33299
+ "webrtcSession.handleAnswer": [{
33300
+ name: "deviceId",
33301
+ form: "single",
33302
+ optional: false
33303
+ }],
33304
+ "webrtcSession.handleOffer": [{
33305
+ name: "deviceId",
33306
+ form: "single",
33307
+ optional: false
33308
+ }],
33309
+ "webrtcSession.hasAdaptiveBitrate": [{
33310
+ name: "deviceId",
33311
+ form: "single",
33312
+ optional: false
33313
+ }],
33314
+ "webrtcSession.listStreams": [{
33315
+ name: "deviceId",
33316
+ form: "single",
33317
+ optional: false
33318
+ }],
33319
+ "zoneAnalytics.getCameraHistory": [{
33320
+ name: "deviceId",
33321
+ form: "single",
33322
+ optional: false
33323
+ }],
33324
+ "zoneAnalytics.getCurrentSnapshot": [{
33325
+ name: "deviceId",
33326
+ form: "single",
33327
+ optional: false
33328
+ }],
33329
+ "zoneAnalytics.getUnzonedHistory": [{
33330
+ name: "deviceId",
33331
+ form: "single",
33332
+ optional: false
33333
+ }],
33334
+ "zoneAnalytics.getZoneHistory": [{
33335
+ name: "deviceId",
33336
+ form: "single",
33337
+ optional: false
33338
+ }],
33339
+ "zoneRules.listRules": [{
33340
+ name: "deviceId",
33341
+ form: "single",
33342
+ optional: false
33343
+ }],
33344
+ "zoneRules.setRules": [{
33345
+ name: "deviceId",
33346
+ form: "single",
33347
+ optional: false
33348
+ }],
33349
+ "zones.addZone": [{
33350
+ name: "deviceId",
33351
+ form: "single",
33352
+ optional: false
33353
+ }],
33354
+ "zones.listZones": [{
33355
+ name: "deviceId",
33356
+ form: "single",
33357
+ optional: false
33358
+ }],
33359
+ "zones.removeZone": [{
33360
+ name: "deviceId",
33361
+ form: "single",
33362
+ optional: false
33363
+ }],
33364
+ "zones.updateZone": [{
33365
+ name: "deviceId",
33366
+ form: "single",
33367
+ optional: false
33368
+ }]
33369
+ });
30765
33370
  Object.freeze({
30766
33371
  "broker": "broker",
30767
33372
  "device-export": "device-export",