@camstack/addon-terminal 0.1.20 → 0.1.22

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 +2886 -139
  2. package/dist/addon.mjs +2886 -139
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -8,7 +8,7 @@ import { createServer } from "node:http";
8
8
  //#region \0rolldown/runtime.js
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  //#endregion
11
- //#region ../types/dist/event-category-Cv9dO26A.mjs
11
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
12
12
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
13
13
  EventCategory["SystemBoot"] = "system.boot";
14
14
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -215,6 +215,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
215
215
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
216
216
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
217
217
  /**
218
+ * A node the orchestrator would otherwise place cameras on has NO usable
219
+ * inference device: the operator enabled one or more accelerators there and
220
+ * the live probe reports every one of them unavailable. Emitted once per
221
+ * TRANSITION into that state (never per dispatch), and the node is dropped
222
+ * from the placement candidate set for as long as it holds.
223
+ *
224
+ * This exists because the state was previously invisible: little-unraid
225
+ * absorbed 283k inference errors in a day while still being handed cameras,
226
+ * and nothing in the system said so.
227
+ *
228
+ * A node with no accelerators configured at all is NOT this — its devices
229
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
230
+ * serves it exactly as before.
231
+ */
232
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
233
+ /**
234
+ * A camera has an OPEN detection session and has produced no detection at
235
+ * all for longer than the blind threshold — the camera is being decoded and
236
+ * inferred and is returning nothing. Emitted once per transition into blind,
237
+ * per camera.
238
+ *
239
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
240
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
241
+ * camera" produce byte-identical silence.
242
+ */
243
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
244
+ /**
218
245
  * Per-camera pipeline config was mutated by the orchestrator
219
246
  * (3-level settings change via `setAgentAddonDefaults` /
220
247
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3006,6 +3033,9 @@ function handlePipeResult(left, next, ctx) {
3006
3033
  fallback: left.fallback
3007
3034
  }, ctx);
3008
3035
  }
3036
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3037
+ $ZodPipe.init(inst, def);
3038
+ });
3009
3039
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3010
3040
  $ZodType.init(inst, def);
3011
3041
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5191,6 +5221,10 @@ function pipe(in_, out) {
5191
5221
  out
5192
5222
  });
5193
5223
  }
5224
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5225
+ ZodPipe.init(inst, def);
5226
+ $ZodPreprocess.init(inst, def);
5227
+ });
5194
5228
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5195
5229
  $ZodReadonly.init(inst, def);
5196
5230
  ZodType.init(inst, def);
@@ -5249,6 +5283,13 @@ function _instanceof(cls, params = {}) {
5249
5283
  };
5250
5284
  return inst;
5251
5285
  }
5286
+ function preprocess(fn, schema) {
5287
+ return new ZodPreprocess({
5288
+ type: "pipe",
5289
+ in: transform(fn),
5290
+ out: schema
5291
+ });
5292
+ }
5252
5293
  //#endregion
5253
5294
  //#region ../../node_modules/zod/v4/classic/compat.js
5254
5295
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10952,6 +10993,8 @@ var QueryFilterSchema = object({
10952
10993
  where: record(string(), unknown()).optional(),
10953
10994
  whereIn: record(string(), array(unknown())).optional(),
10954
10995
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10996
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10997
+ whereNot: record(string(), unknown()).optional(),
10955
10998
  orderBy: object({
10956
10999
  field: string(),
10957
11000
  direction: _enum(["asc", "desc"])
@@ -10971,7 +11014,8 @@ var QueryFilterSchema = object({
10971
11014
  var MutationFilterSchema = object({
10972
11015
  where: record(string(), unknown()).optional(),
10973
11016
  whereIn: record(string(), array(unknown())).optional(),
10974
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11017
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11018
+ whereNot: record(string(), unknown()).optional()
10975
11019
  });
10976
11020
  /** A single stored record: `{ id, data }`. */
10977
11021
  var SettingsRecordSchema = object({
@@ -12435,6 +12479,17 @@ var LlmImageSchema = object({
12435
12479
  bytes: _instanceof(Uint8Array),
12436
12480
  mimeType: string()
12437
12481
  });
12482
+ /**
12483
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12484
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12485
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12486
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12487
+ */
12488
+ var LlmRetryPolicySchema = object({
12489
+ enabled: boolean().default(false),
12490
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12491
+ maxAttempts: number().int().min(1).max(5).default(1)
12492
+ });
12438
12493
  var LlmGenerateBaseInputSchema = object({
12439
12494
  /** Collection routing (the notification-output posture). */
12440
12495
  addonId: string().optional(),
@@ -12449,7 +12504,28 @@ var LlmGenerateBaseInputSchema = object({
12449
12504
  jsonSchema: record(string(), unknown()).optional(),
12450
12505
  /** Per-call override of the profile default. */
12451
12506
  maxTokens: number().int().positive().optional(),
12452
- temperature: number().optional()
12507
+ temperature: number().optional(),
12508
+ /** Per-call override of the profile default (nucleus sampling). */
12509
+ topP: number().min(0).max(1).optional(),
12510
+ /** Per-call override of the profile default (top-k sampling). */
12511
+ topK: number().int().positive().optional(),
12512
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12513
+ timeoutMs: number().int().positive().optional(),
12514
+ /** Per-call override; beats both the consumer table and the profile. */
12515
+ retry: LlmRetryPolicySchema.optional(),
12516
+ /**
12517
+ * Caller-minted id that makes this generation CANCELLABLE.
12518
+ *
12519
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12520
+ * the call against 8 s and free their own slot when the timer wins, while the
12521
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12522
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12523
+ * not generations, and the real load is unbounded.
12524
+ *
12525
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12526
+ * `llm.cancel({ requestId })` tears the socket down.
12527
+ */
12528
+ requestId: string().optional()
12453
12529
  });
12454
12530
  /**
12455
12531
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12462,6 +12538,18 @@ var LlmGenerateBaseInputSchema = object({
12462
12538
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12463
12539
  * watchdog — operator decision #3).
12464
12540
  */
12541
+ /**
12542
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12543
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12544
+ * REF rather than looked up at install time, so what the operator approved in
12545
+ * the preview is exactly what the node downloads.
12546
+ */
12547
+ var ManagedModelExtraFileSchema = object({
12548
+ url: string(),
12549
+ filename: string(),
12550
+ sizeBytes: number(),
12551
+ sha256: string().optional()
12552
+ });
12465
12553
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12466
12554
  object({
12467
12555
  kind: literal("catalog"),
@@ -12470,7 +12558,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12470
12558
  object({
12471
12559
  kind: literal("url"),
12472
12560
  url: string(),
12473
- sha256: string().optional()
12561
+ sha256: string().optional(),
12562
+ /** Picker/status label; the file basename when absent. */
12563
+ label: string().optional(),
12564
+ sizeBytes: number().optional(),
12565
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12474
12566
  }),
12475
12567
  object({
12476
12568
  kind: literal("path"),
@@ -12488,13 +12580,82 @@ var ManagedRuntimeConfigSchema = object({
12488
12580
  gpuLayers: number().int().default(0),
12489
12581
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12490
12582
  threads: number().int().optional(),
12491
- /** Concurrent slots. */
12583
+ /** Concurrent slots (`--parallel`). */
12492
12584
  parallel: number().int().default(1),
12585
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12586
+ batchSize: number().int().positive().optional(),
12587
+ /** Physical batch / micro-batch (`-ub`). */
12588
+ ubatchSize: number().int().positive().optional(),
12589
+ /**
12590
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12591
+ * is a no-op elsewhere, so it is offered rather than assumed.
12592
+ */
12593
+ flashAttention: boolean().default(false),
12594
+ /**
12595
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12596
+ * inference. Costs the full model size in resident memory — which is exactly
12597
+ * what the RAM budget is counting.
12598
+ */
12599
+ mlock: boolean().default(false),
12600
+ /**
12601
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12602
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12603
+ * store produces on every first token.
12604
+ */
12605
+ noMmap: boolean().default(false),
12606
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12607
+ * cheapest way to fit a longer context in the same RAM. */
12608
+ cacheTypeK: _enum([
12609
+ "f32",
12610
+ "f16",
12611
+ "q8_0",
12612
+ "q5_1",
12613
+ "q5_0",
12614
+ "q4_1",
12615
+ "q4_0"
12616
+ ]).optional(),
12617
+ cacheTypeV: _enum([
12618
+ "f32",
12619
+ "f16",
12620
+ "q8_0",
12621
+ "q5_1",
12622
+ "q5_0",
12623
+ "q4_1",
12624
+ "q4_0"
12625
+ ]).optional(),
12626
+ /**
12627
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12628
+ * (which most vision chat templates need and some language-only models
12629
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12630
+ *
12631
+ * It is NOT a second place to set the flags above. A token that collides
12632
+ * with a typed field is REJECTED at start, naming the field that owns it
12633
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12634
+ * the "two switches that disagree" failure this repo has already shipped
12635
+ * twice (D62).
12636
+ */
12637
+ extraArgs: array(string()).default([]),
12493
12638
  /** Else lazy: first generate boots it. */
12494
12639
  autoStart: boolean().default(false),
12495
12640
  /** 0 = never; frees RAM after quiet periods. */
12496
12641
  idleStopMinutes: number().int().default(30)
12497
12642
  });
12643
+ /**
12644
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12645
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12646
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12647
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12648
+ */
12649
+ var LlmDownloadProgressSchema = object({
12650
+ phase: _enum(["downloading", "verifying"]),
12651
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12652
+ file: string(),
12653
+ fileIndex: number().int(),
12654
+ fileCount: number().int(),
12655
+ /** Across the WHOLE install, not the current file. */
12656
+ downloadedBytes: number(),
12657
+ totalBytes: number().optional()
12658
+ });
12498
12659
  var LlmRuntimeStatusSchema = object({
12499
12660
  /** Status is ALWAYS node-qualified. */
12500
12661
  nodeId: string(),
@@ -12511,6 +12672,8 @@ var LlmRuntimeStatusSchema = object({
12511
12672
  modelPath: string().optional(),
12512
12673
  modelId: string().optional(),
12513
12674
  downloadProgress: number().min(0).max(1).optional(),
12675
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12676
+ download: LlmDownloadProgressSchema.optional(),
12514
12677
  lastError: string().optional(),
12515
12678
  crashesInWindow: number(),
12516
12679
  /** Child RSS (sampled best-effort). */
@@ -12521,7 +12684,14 @@ var LlmNodeModelSchema = object({
12521
12684
  file: string(),
12522
12685
  sizeBytes: number(),
12523
12686
  catalogId: string().optional(),
12524
- installedAt: number().optional()
12687
+ installedAt: number().optional(),
12688
+ /**
12689
+ * Absolute path on the node. Present so a file that is on disk but matches
12690
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12691
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12692
+ * it the picker could list such a file and do nothing with it.
12693
+ */
12694
+ path: string().optional()
12525
12695
  });
12526
12696
  var LlmRuntimeDiskUsageSchema = object({
12527
12697
  nodeId: string(),
@@ -12577,10 +12747,47 @@ var LlmProfileSchema = object({
12577
12747
  baseUrl: string().optional(),
12578
12748
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12579
12749
  apiKey: string().optional(),
12750
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12751
+ * degraded to text — that shipped once and produced a confident answer to a
12752
+ * question about a picture nobody sent. */
12580
12753
  supportsVision: boolean(),
12581
12754
  temperature: number().min(0).max(2).optional(),
12755
+ /** Nucleus sampling. Every wire we speak has it. */
12756
+ topP: number().min(0).max(1).optional(),
12757
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12758
+ * wire does, and the client drops it there (measured: the request body gets
12759
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12760
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12761
+ topK: number().int().positive().optional(),
12582
12762
  maxTokens: number().int().positive().optional(),
12763
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12764
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12765
+ * the model with, so it is the one field that changes a PROCESS. */
12766
+ contextLength: number().int().positive().optional(),
12767
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12768
+ * two system prompts fighting is worse than either alone). */
12769
+ systemPrompt: string().optional(),
12770
+ /** Total generation bound — the only one a unary call has. */
12583
12771
  timeoutMs: number().int().positive().default(6e4),
12772
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12773
+ * response headers: on the LM Studio / llama-server wire those are written
12774
+ * once the model has finished loading, so they belong to the bound below. */
12775
+ connectTimeoutMs: number().int().positive().default(1e4),
12776
+ /** Accepted, but no output yet — response headers included, because a cold
12777
+ * GPU load is exactly what happens before them. */
12778
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12779
+ /** Output started then stopped. */
12780
+ idleTimeoutMs: number().int().positive().default(6e4),
12781
+ /** Profile-level default. The per-consumer table and a per-call override
12782
+ * both beat it — see `resolveRetryPolicy`. */
12783
+ retry: LlmRetryPolicySchema.default({
12784
+ enabled: false,
12785
+ maxAttempts: 1
12786
+ }),
12787
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12788
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12789
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12790
+ toolsEnabled: boolean().default(false),
12584
12791
  extraHeaders: record(string(), string()).optional(),
12585
12792
  /** kind === 'managed-local' only (spec §4). */
12586
12793
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12630,6 +12837,36 @@ var ManagedModelCatalogEntrySchema = object({
12630
12837
  /** Vision models: companion projector file. */
12631
12838
  mmprojUrl: string().optional()
12632
12839
  });
12840
+ /**
12841
+ * The outcome of turning one operator-typed Hugging Face reference into a
12842
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12843
+ * I will not pick for you" is a normal answer the UI has to render, not an
12844
+ * exception.
12845
+ *
12846
+ * `candidates` is the whole reason the refusal is usable — every string in it
12847
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12848
+ */
12849
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12850
+ ok: literal(true),
12851
+ /** Ready to hand to `installModel` unchanged. */
12852
+ model: ManagedModelRefSchema,
12853
+ label: string(),
12854
+ repo: string(),
12855
+ quantization: string(),
12856
+ purpose: _enum(["text", "vision"]),
12857
+ totalBytes: number(),
12858
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12859
+ * see that 0.9 GB of it is a projector they did not name. */
12860
+ extraFilenames: array(string())
12861
+ }), object({
12862
+ ok: literal(false),
12863
+ code: string(),
12864
+ message: string(),
12865
+ candidates: array(string()).optional(),
12866
+ /** Set when the refusal was only the ceiling: re-calling with
12867
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12868
+ requiredBytes: number().optional()
12869
+ })]);
12633
12870
  var LlmRuntimeNodeSchema = object({
12634
12871
  nodeId: string(),
12635
12872
  reachable: boolean(),
@@ -12642,7 +12879,10 @@ var ProfileRefInputSchema = object({
12642
12879
  addonId: string(),
12643
12880
  profileId: string()
12644
12881
  });
12645
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12882
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12883
+ addonId: string().optional(),
12884
+ requestId: string()
12885
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12646
12886
  kind: "mutation",
12647
12887
  auth: "admin"
12648
12888
  }), method(ProfileRefInputSchema, _void(), {
@@ -12663,6 +12903,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12663
12903
  consumer: string().optional(),
12664
12904
  profileId: string().optional()
12665
12905
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12906
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12907
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12908
+ ref: string(),
12909
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12910
+ maxBytes: number().positive().optional()
12911
+ }), HfModelResolutionSchema, {
12912
+ kind: "mutation",
12913
+ auth: "admin"
12914
+ }), method(object({
12666
12915
  nodeId: string(),
12667
12916
  model: ManagedModelRefSchema
12668
12917
  }), _void(), {
@@ -14310,6 +14559,8 @@ var NcSystemEventKindSchema = _enum([
14310
14559
  "stream-offline",
14311
14560
  "node-online",
14312
14561
  "node-offline",
14562
+ "node-inference-unavailable",
14563
+ "detection-blind",
14313
14564
  "addon-update-available",
14314
14565
  "server-update-available",
14315
14566
  "alarm-triggered",
@@ -14371,7 +14622,16 @@ var NcScheduleSchema = object({
14371
14622
  });
14372
14623
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14373
14624
  var NcPlateMatcherSchema = object({
14374
- values: array(string().min(1)).min(1),
14625
+ /**
14626
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14627
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14628
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14629
+ * rather than merely seen. A subject carrying no plate still fails.
14630
+ *
14631
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14632
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14633
+ */
14634
+ values: array(string().min(1)),
14375
14635
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14376
14636
  maxDistance: number().int().min(0).max(3).default(1)
14377
14637
  });
@@ -14405,28 +14665,36 @@ var NcOccupancyConditionSchema = object({
14405
14665
  /**
14406
14666
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14407
14667
  *
14408
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14409
- * reference notifier uses, so an operator moving between them re-uses what
14410
- * they already know): a rule matches when, over a sampling window of
14411
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14412
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14413
- *
14414
- * - `dbThreshold` its level is at or above this many dBFS (see
14415
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14416
- * - `labels` the classifier put at least one of these labels on it.
14417
- *
14418
- * Both are OPTIONAL and independent, which is the point of the shape: a
14419
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14420
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14421
- * is given** a window in which every sample is trivially a hit would fire on
14422
- * silence, so the engine refuses such a condition rather than notifying on
14423
- * nothing (the schema cannot express "at least one of" without becoming a
14424
- * ZodEffects the cap path would have to special-case).
14425
- *
14426
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14427
- * must be FULL before it can match a window that has been open for two
14428
- * seconds of its ten is 100% of nothing, and firing on it would make
14429
- * `samplingSeconds` decorative.
14668
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14669
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14670
+ * there is no second switch that can disagree with the first and every rule
14671
+ * authored before the decision migrates for free (`audioModeOf`):
14672
+ *
14673
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14674
+ * classifier labels with one of them. No window, no percentage:
14675
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14676
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14677
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14678
+ * reaches this condition if the classifier was already confident enough.
14679
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14680
+ * the condition: at least `hitPercent`% of the samples over
14681
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14682
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14683
+ * must be FULL before it can match a window open for two of its ten
14684
+ * seconds is 100% of nothing.
14685
+ *
14686
+ * **Why label mode has no window.** It had one, and it never fired: the
14687
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14688
+ * of them per episode, even through continuous crying. The measured maximum
14689
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14690
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14691
+ * the wrong question to ask of a sparse classifier.
14692
+ *
14693
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14694
+ * and the rule would fire on silence. The schema cannot express "exactly one
14695
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14696
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14697
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14430
14698
  *
14431
14699
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14432
14700
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14434,13 +14702,13 @@ var NcOccupancyConditionSchema = object({
14434
14702
  * an operator who typed `dog` mean the same thing.
14435
14703
  */
14436
14704
  var NcAudioConditionSchema = object({
14437
- /** Audio macro labels; absent = any sound (level-only rule). */
14705
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14438
14706
  labels: array(string().min(1)).min(1).optional(),
14439
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14707
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14440
14708
  dbThreshold: number().min(-96).max(0).optional(),
14441
- /** Percentage of the window's samples that must be hits (1–100). */
14709
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14442
14710
  hitPercent: number().int().min(1).max(100).default(60),
14443
- /** Length of the sampling window in seconds. */
14711
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14444
14712
  samplingSeconds: number().int().min(1).max(300).default(10)
14445
14713
  });
14446
14714
  /**
@@ -14578,13 +14846,81 @@ var NcRuleActionsSchema = object({
14578
14846
  */
14579
14847
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14580
14848
  });
14849
+ /**
14850
+ * "This rule applies only while `deviceId` is in one of `states`."
14851
+ *
14852
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14853
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14854
+ * make the condition lie about devices whose states have no equivalent.
14855
+ *
14856
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14857
+ * condition that fired on "I could not read it" would be worse than no gate.
14858
+ */
14859
+ var NcDeviceStateConditionSchema = object({
14860
+ deviceId: number().int(),
14861
+ /** Any of these matches. */
14862
+ states: array(string().min(1)).min(1)
14863
+ });
14864
+ /**
14865
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14866
+ *
14867
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14868
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14869
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14870
+ * already has a trigger ("tell me about a person at the front door, but only
14871
+ * while the bin is still out"). That is why it composes with every delivery
14872
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14873
+ * kind exist for it — see D159.
14874
+ *
14875
+ * ── Identity ───────────────────────────────────────────────────────────────
14876
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14877
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14878
+ * carried as a HINT for the editor and for the log line, never as part of the
14879
+ * lookup key: a rule whose hint drifted must still gate correctly.
14880
+ *
14881
+ * ── Which boolean ──────────────────────────────────────────────────────────
14882
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14883
+ * already declares which boolean drives notification rules, and a second knob
14884
+ * that could disagree with it is exactly the D62 failure. Set it only to
14885
+ * override one rule against the scene's own default.
14886
+ *
14887
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14888
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14889
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14890
+ * evidence, in either direction.
14891
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14892
+ * The latch is a durable fact about the past ("it has diverged since I armed
14893
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14894
+ * reason the operator asked for a latch.
14895
+ *
14896
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14897
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14898
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14899
+ * said out loud in the log rather than dropped in silence.
14900
+ */
14901
+ var NcSceneConditionSchema = object({
14902
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14903
+ sceneId: string().min(1),
14904
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14905
+ deviceId: number().int().optional(),
14906
+ /** The state the scene must be in for the rule to fire. */
14907
+ requiredState: _enum(["matched", "diverged"]),
14908
+ /**
14909
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14910
+ * scene's own `emit` field, which is the only place that decision belongs.
14911
+ */
14912
+ latched: boolean().optional()
14913
+ });
14581
14914
  var NcConditionsSchema = object({
14582
14915
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14583
- deviceState: object({
14584
- deviceId: number().int(),
14585
- /** Any of these matches. */
14586
- states: array(string().min(1)).min(1)
14587
- }).optional(),
14916
+ deviceState: NcDeviceStateConditionSchema.optional(),
14917
+ /**
14918
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14919
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14920
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14921
+ * {@link NcSceneCondition} and D159.
14922
+ */
14923
+ scene: NcSceneConditionSchema.optional(),
14588
14924
  /** Device scope — absent = all devices. */
14589
14925
  devices: array(number()).optional(),
14590
14926
  /** Detector class names (any overlap with the record's class set). */
@@ -14610,18 +14946,47 @@ var NcConditionsSchema = object({
14610
14946
  */
14611
14947
  labelEquals: array(string().min(1)).optional(),
14612
14948
  /**
14613
- * Identity matcher. P1 boundary: matched against the record's collapsed
14614
- * `label` (the identity display name propagated by the face pipeline) —
14615
- * identity-ID matching rides in P2 when identity ids reach the record.
14949
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14950
+ * is about recognised people at all.
14951
+ *
14952
+ * Three states, and the empty one is the point:
14953
+ *
14954
+ * | value | meaning |
14955
+ * | --- | --- |
14956
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14957
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14958
+ * | a list | only these identities |
14959
+ *
14960
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14961
+ * `devices` list is every device), applied one level down: the operator has
14962
+ * turned the face scope ON and narrowed it to nothing, which is every known
14963
+ * face. No second field states the same thing — a switch that can disagree
14964
+ * with the list under it is worse than no switch (D62).
14965
+ *
14966
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14967
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14968
+ * the operator fixed the spelling. The id reaches the record on
14969
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14970
+ * `{{label}}` renders.
14971
+ *
14972
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14973
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14974
+ * for is left as it stands and reported, never dropped. The engine also
14975
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14976
+ * migration could not resolve keeps matching exactly what it matched before.
14616
14977
  */
14617
14978
  identities: array(string().min(1)).optional(),
14618
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14979
+ /**
14980
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14981
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14982
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14983
+ */
14619
14984
  plates: NcPlateMatcherSchema.optional(),
14620
14985
  /**
14621
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14622
- * Same P1 boundary: matched against the record's collapsed `label` (the
14623
- * identity display name). A record with NO label passes (nothing to
14624
- * exclude), unlike the include variant which fails on an absent label.
14986
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14987
+ * the same id members and the same lazy name→id migration. A record with NO
14988
+ * identity passes (nothing to exclude), unlike the include variant which
14989
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14625
14990
  */
14626
14991
  identitiesExclude: array(string().min(1)).optional(),
14627
14992
  /**
@@ -15013,7 +15378,80 @@ var NcRuleInputSchema = object({
15013
15378
  * a rule that predates the gate must keep delivering byte-for-byte as it
15014
15379
  * did, and absent is the only way to say that without a migration.
15015
15380
  */
15016
- confirm: NcConfirmSchema.optional()
15381
+ confirm: NcConfirmSchema.optional(),
15382
+ /**
15383
+ * WAIT for face/plate recognition before saying anything.
15384
+ *
15385
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15386
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15387
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15388
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15389
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15390
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15391
+ *
15392
+ * Only two honest answers exist, and this flag picks between them. It has
15393
+ * effect ONLY on a rule that declares a recognition scope
15394
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15395
+ * other rule there is nothing to wait for and the flag is inert.
15396
+ *
15397
+ * | value | what happens |
15398
+ * | --- | --- |
15399
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15400
+ * | 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) |
15401
+ *
15402
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15403
+ * on the addon cap path, and absent has to keep meaning exactly what every
15404
+ * rule authored before this field meant.
15405
+ *
15406
+ * The cost of `true` is stated here because the editor states it too: a rule
15407
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15408
+ * tests every zone the track visited and a `crossing` condition can no longer
15409
+ * be satisfied, because a closed track carries no crossing.
15410
+ */
15411
+ waitForEnhancement: boolean().optional(),
15412
+ /**
15413
+ * GROUP a burst of subjects into ONE notification that grows.
15414
+ *
15415
+ * Seconds of quiet after the last matching subject before the burst is
15416
+ * considered over. While it is open, the first subject enqueues immediately —
15417
+ * **exactly as today, with no added latency** — and every real growth (a new
15418
+ * subject, or a name confirmed on one already in it) REPLACES that
15419
+ * notification with an updated one naming everybody. The push carries the
15420
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15421
+ *
15422
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15423
+ *
15424
+ * ### Why an idle cutoff and not a window
15425
+ *
15426
+ * The measured seven-person arrival on device 590 spans 110 s with every
15427
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15428
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15429
+ * 30 is Frigate's shipped value for the same decision.
15430
+ *
15431
+ * ### What it replaces
15432
+ *
15433
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15434
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15435
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15436
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15437
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15438
+ * budget over GROUPS — which is what it always meant — and a growth is never
15439
+ * throttled by the window its own first member spent.
15440
+ *
15441
+ * ### Interaction with {@link waitForEnhancement}
15442
+ *
15443
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15444
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15445
+ * CLOSE — already carrying its name — and grows as later members close. That
15446
+ * is later, and complete. With grouping alone the group opens on the first
15447
+ * object event and picks up names as they are confirmed, through the growth
15448
+ * path. Neither combination fires twice for one subject.
15449
+ *
15450
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15451
+ * on the addon cap path, so absent must keep meaning what it meant before this
15452
+ * field existed.
15453
+ */
15454
+ groupIdleSec: number().int().min(0).max(600).optional()
15017
15455
  });
15018
15456
  /**
15019
15457
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15120,6 +15558,7 @@ var NcConditionDescriptorSchema = object({
15120
15558
  "occupancy",
15121
15559
  "audio",
15122
15560
  "deviceState",
15561
+ "scene",
15123
15562
  "systemEvent"
15124
15563
  ]),
15125
15564
  operator: _enum([
@@ -15525,7 +15964,87 @@ var MethodAccessSchema = _enum([
15525
15964
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15526
15965
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15527
15966
  var CapScopeSchema = _enum(["device", "system"]);
15528
- var TokenScopeSchema = discriminatedUnion("type", [
15967
+ /**
15968
+ * DeviceSelector (scope model v3 — 2026-08-12).
15969
+ *
15970
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15971
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15972
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15973
+ * AFTER the grant was minted — no re-grant, no re-login.
15974
+ *
15975
+ * - `all` — every device in the deployment. The broad viewer/operator
15976
+ * lever without a `category` grant (a `category` grant also covers device
15977
+ * caps that carry no deviceId; `all` is specifically the device set).
15978
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15979
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15980
+ * is NOT covered until the grant is edited.
15981
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15982
+ * DYNAMIC. A device that changes type, or a new device of the type,
15983
+ * re-resolves on the next request.
15984
+ * - `locations` — every device whose operator-assigned `location` label is
15985
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15986
+ * null/unset location matches NO `locations` selector.
15987
+ */
15988
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15989
+ object({ kind: literal("all") }),
15990
+ object({
15991
+ kind: literal("ids"),
15992
+ ids: array(number().int()).min(1)
15993
+ }),
15994
+ object({
15995
+ kind: literal("types"),
15996
+ types: array(_enum(DeviceType)).min(1)
15997
+ }),
15998
+ object({
15999
+ kind: literal("locations"),
16000
+ locations: array(string().min(1)).min(1)
16001
+ })
16002
+ ]);
16003
+ var DeviceTokenScopeSchema = object({
16004
+ type: literal("device"),
16005
+ /** The device SET this grant covers — resolved against the live fleet. */
16006
+ selector: DeviceSelectorSchema,
16007
+ access: array(MethodAccessSchema).min(1),
16008
+ /**
16009
+ * Whether a grant on a PARENT device transparently covers its accessory
16010
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16011
+ * Direction is parent → children ONLY.
16012
+ *
16013
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16014
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16015
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16016
+ * operator must grant on the child, not inherit from the parent). Set it
16017
+ * explicitly to override that default per grant.
16018
+ */
16019
+ includeLinked: boolean().optional()
16020
+ });
16021
+ /**
16022
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16023
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16024
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16025
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16026
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16027
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16028
+ * migration cannot reach a JWT already in a client's hands; parse-time
16029
+ * migration covers both without a flag day. No cast — the raw object is read
16030
+ * through `Reflect.get` (its static type is `unknown`).
16031
+ */
16032
+ function migrateLegacyTokenScope(raw) {
16033
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16034
+ if (Reflect.get(raw, "type") !== "device") return raw;
16035
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16036
+ const targets = Reflect.get(raw, "targets");
16037
+ if (!Array.isArray(targets)) return raw;
16038
+ return {
16039
+ type: "device",
16040
+ selector: {
16041
+ kind: "ids",
16042
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16043
+ },
16044
+ access: Reflect.get(raw, "access")
16045
+ };
16046
+ }
16047
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15529
16048
  object({
15530
16049
  type: literal("category"),
15531
16050
  target: CapScopeSchema,
@@ -15541,18 +16060,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15541
16060
  target: string(),
15542
16061
  access: array(MethodAccessSchema).min(1)
15543
16062
  }),
15544
- object({
15545
- type: literal("device"),
15546
- /**
15547
- * One or more deviceIds (serialised as strings for wire-format
15548
- * consistency with the rest of the union). Matcher accepts if
15549
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15550
- * of one scope-per-device when granting access to a set of cameras.
15551
- */
15552
- targets: array(string()).min(1),
15553
- access: array(MethodAccessSchema).min(1)
15554
- })
15555
- ]);
16063
+ DeviceTokenScopeSchema
16064
+ ]));
15556
16065
  object({
15557
16066
  id: string(),
15558
16067
  username: string(),
@@ -15869,7 +16378,7 @@ var TrackEnvelopeSchema = object({
15869
16378
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15870
16379
  * keeps every scalar the list surfaces actually render (ids, class(es),
15871
16380
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15872
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16381
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15873
16382
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15874
16383
  * `getTrack`. Mirrors the event-store `projection` convention
15875
16384
  * (`getObjectEvents` et al.).
@@ -16005,7 +16514,21 @@ union([literal(1), literal(2)]);
16005
16514
  var LabelAttributionSchema = object({
16006
16515
  stepId: string(),
16007
16516
  modelId: string().optional(),
16008
- decidedAt: number()
16517
+ decidedAt: number(),
16518
+ /**
16519
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16520
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16521
+ *
16522
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16523
+ * notification rule authored on "Gianluca" stopped matching the moment the
16524
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16525
+ * the thing that does not move, so it is what a rule matches on
16526
+ * (`NcConditions.identities`) and the text is what a human is shown.
16527
+ *
16528
+ * Absent when the label names no gallery row — a plate the OCR read but no
16529
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16530
+ */
16531
+ identityId: string().optional()
16009
16532
  });
16010
16533
  /**
16011
16534
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16142,6 +16665,28 @@ var TrackSchema = object({
16142
16665
  * `=== true` and render nothing otherwise, never infer "no face".
16143
16666
  */
16144
16667
  hasFace: boolean().optional(),
16668
+ /**
16669
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16670
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16671
+ * so the passage is tracked once and as a VEHICLE.
16672
+ *
16673
+ * It exists because the fold's record was dishonest. D34 and the code both
16674
+ * said "the person is not lost — it is reported so both entities stay on the
16675
+ * record"; in fact the pair went into a per-processor RAM field behind an
16676
+ * accessor nobody called, and every durable surface said `vehicle`, full
16677
+ * stop. This is the composition note that makes the row true.
16678
+ *
16679
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16680
+ * person" is not an answer to "what is this" — both label tiers would refuse
16681
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16682
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16683
+ * and a `person` rule still does not fire for someone cycling past.
16684
+ *
16685
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16686
+ * the column, and every hub that predates the field, omits it. Test
16687
+ * `=== true` and render nothing otherwise — never infer "no rider".
16688
+ */
16689
+ hasRider: boolean().optional(),
16145
16690
  ...TrackFlagFields,
16146
16691
  ...TrackRetrainFields
16147
16692
  });
@@ -16491,7 +17036,10 @@ var RecentTracksQueryInput = object({
16491
17036
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16492
17037
  cursor: string().optional(),
16493
17038
  /** See {@link TrackProjectionSchema}. Default `full`. */
16494
- projection: TrackProjectionSchema.optional()
17039
+ projection: TrackProjectionSchema.optional(),
17040
+ /** Include stationary-promoted rows (parked objects). Default false: the
17041
+ * feed lists passages; parking records live on the stationary registry. */
17042
+ includeStationary: boolean().optional()
16495
17043
  });
16496
17044
  var RecentTracksPageSchema = object({
16497
17045
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16709,7 +17257,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16709
17257
  zone: TrackZoneFilterSchema.optional(),
16710
17258
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16711
17259
  * compatible — omitting the field keeps today's exact behaviour). */
16712
- projection: TrackProjectionSchema.optional()
17260
+ projection: TrackProjectionSchema.optional(),
17261
+ /** Include stationary-promoted rows (parked objects handed to the
17262
+ * stationary registry). Default false: the timeline lists passages,
17263
+ * not parking records (operator decision, 2026-08-15). */
17264
+ includeStationary: boolean().optional()
16713
17265
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16714
17266
  kind: "mutation",
16715
17267
  auth: "admin"
@@ -16873,11 +17425,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16873
17425
  auth: "admin"
16874
17426
  }), method(object({
16875
17427
  eventId: string(),
16876
- kind: MediaFileKindEnum.optional()
17428
+ kind: MediaFileKindEnum.optional(),
17429
+ deviceId: number()
16877
17430
  }), array(MediaFileSchema).readonly()), method(object({
16878
17431
  trackId: string(),
16879
- kinds: array(MediaFileKindEnum).optional()
16880
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17432
+ kinds: array(MediaFileKindEnum).optional(),
17433
+ deviceId: number()
17434
+ }), array(MediaFileSchema).readonly()), method(object({
17435
+ trackId: string(),
17436
+ deviceId: number()
17437
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16881
17438
  kind: "mutation",
16882
17439
  auth: "admin"
16883
17440
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17577,6 +18134,17 @@ var maxSessionHoldMsField = {
17577
18134
  default: 12e4,
17578
18135
  step: 5e3
17579
18136
  };
18137
+ /**
18138
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18139
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18140
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18141
+ */
18142
+ var audioMotionWindowMsField = {
18143
+ min: 5e3,
18144
+ max: 6e5,
18145
+ default: 9e4,
18146
+ step: 5e3
18147
+ };
17580
18148
  var motionFpsField = {
17581
18149
  min: 1,
17582
18150
  max: 30,
@@ -17608,7 +18176,7 @@ var detectionFpsField = {
17608
18176
  var occupancyRecheckSecField = {
17609
18177
  min: 0,
17610
18178
  max: 300,
17611
- default: 30,
18179
+ default: 300,
17612
18180
  step: 5
17613
18181
  };
17614
18182
  var occupancyRecheckFramesField = {
@@ -17753,6 +18321,27 @@ var RunnerCameraConfigSchema = object({
17753
18321
  * resolved `CameraDetectionConfig`.
17754
18322
  */
17755
18323
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18324
+ /**
18325
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18326
+ * 'on-motion'` audio window, measured from the LAST motion event.
18327
+ *
18328
+ * This exists because the falling edge cannot be relied on. Camera-native
18329
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18330
+ * its email-push SMTP path both emit `detected: true` and never the
18331
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18332
+ * onboard-only camera a window that closed only on `detected: false` never
18333
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18334
+ * battery camera, the one failure mode the mode exists to prevent.
18335
+ *
18336
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18337
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18338
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18339
+ *
18340
+ * Not consumed by the runner: carried here so it shares the per-camera
18341
+ * device-settings surface with `motionCooldownMs`, exactly like
18342
+ * `maxSessionHoldMs`.
18343
+ */
18344
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17756
18345
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17757
18346
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17758
18347
  motionStreamId: string(),
@@ -17848,7 +18437,7 @@ var RunnerCameraConfigSchema = object({
17848
18437
  */
17849
18438
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17850
18439
  });
17851
- 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;
18440
+ 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;
17852
18441
  /**
17853
18442
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17854
18443
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18881,6 +19470,39 @@ var snapshotCapability = {
18881
19470
  etag: string().nullable()
18882
19471
  }))),
18883
19472
  /**
19473
+ * The full decision chain for ONE device, for the viewer's debug readout —
19474
+ * the answer to "why does this tile show what it shows" in a single poll:
19475
+ * the battery slice the state was derived from, the resolved state + its
19476
+ * reason, the cached frame's identity/age, whether a wake window is open,
19477
+ * and whether a fresh capture is in flight. Cache-only and capture-free:
19478
+ * a debug read must never wake a battery camera.
19479
+ */
19480
+ getDebugState: systemMethod(object({ deviceId: number() }), object({
19481
+ /** The battery slice as read, or null when the device has none. */
19482
+ battery: object({
19483
+ sleeping: boolean(),
19484
+ lastUpdated: number(),
19485
+ lastContactAt: number().optional()
19486
+ }).nullable(),
19487
+ /** The resolved snapshot state (what the overlay decision used). */
19488
+ state: object({
19489
+ isBattery: boolean(),
19490
+ reason: _enum([
19491
+ "disabled",
19492
+ "sleeping",
19493
+ "unreachable",
19494
+ "waking"
19495
+ ]).nullable()
19496
+ }),
19497
+ /** The cached frame behind the next paint. */
19498
+ frame: object({
19499
+ capturedAt: number().nullable(),
19500
+ ageMs: number().nullable()
19501
+ }),
19502
+ /** A wake window is currently open (the Waking overlay's source). */
19503
+ waking: boolean()
19504
+ })),
19505
+ /**
18884
19506
  * Signed, expiring links to a CLIENT-SIZED frame — and the demand signal
18885
19507
  * that makes those frames current.
18886
19508
  *
@@ -18953,7 +19575,16 @@ targets: array(object({
18953
19575
  /** A sleeping battery camera: the frame is deliberately stale and will
18954
19576
  * NOT refresh in the background. A surface should say so rather than
18955
19577
  * present it as current. */
18956
- sleeping: boolean()
19578
+ sleeping: boolean(),
19579
+ /** Current device state rendered over the cached frame. State images
19580
+ * remain authoritative even when their photographic background is
19581
+ * old; null means the link must carry a current camera frame. */
19582
+ stateReason: _enum([
19583
+ "disabled",
19584
+ "sleeping",
19585
+ "unreachable",
19586
+ "waking"
19587
+ ]).nullable()
18957
19588
  })))
18958
19589
  },
18959
19590
  status: {
@@ -20656,6 +21287,25 @@ var BatteryStatusSchema = object({
20656
21287
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20657
21288
  lastUpdated: number(),
20658
21289
  /**
21290
+ * Ms epoch of the last time the device PROVED it was reachable — a
21291
+ * completed firmware round-trip, an observed wake, or an inbound push
21292
+ * (firmware event, email). `0`/absent = never since this slice was born.
21293
+ *
21294
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21295
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21296
+ * for the radio, because a poll that confirms reachability is the same
21297
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21298
+ * single derivation every consumer must use; no surface computes its own.
21299
+ *
21300
+ * It is deliberately NOT a clock in the
21301
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21302
+ * observation itself, and it is the only thing a 30-hour silence is
21303
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21304
+ * Reolink provider) so a value that means "recently" cannot cost a
21305
+ * SQLite commit per round-trip.
21306
+ */
21307
+ lastContactAt: number().optional(),
21308
+ /**
20659
21309
  * True when the source is a BINARY low-battery indicator (HA
20660
21310
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20661
21311
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22920,54 +23570,139 @@ var TalkAudioCodecSchema = _enum([
22920
23570
  "g711ulaw",
22921
23571
  "g711alaw"
22922
23572
  ]);
22923
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22924
- sessionId: string(),
22925
- sdpOffer: string()
22926
- }), {
22927
- kind: "mutation",
22928
- auth: "admin"
22929
- }), method(object({
22930
- deviceId: number(),
22931
- sessionId: string(),
22932
- sdpAnswer: string()
22933
- }), _void(), {
22934
- kind: "mutation",
22935
- auth: "admin"
22936
- }), method(object({
22937
- deviceId: number(),
22938
- sessionId: string()
22939
- }), _void(), {
22940
- kind: "mutation",
22941
- auth: "admin"
22942
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22943
- kind: "mutation",
22944
- auth: "admin"
22945
- }), method(object({
22946
- deviceId: number(),
22947
- /** Audio bytes for ONE frame, base64-encoded so the payload
22948
- * survives tRPC JSON serialization. */
22949
- audioBase64: string(),
22950
- /** Wire codec of the payload. Omit to let the provider default
22951
- * to its native expected format (s16le @ provider-native rate,
22952
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22953
- codec: TalkAudioCodecSchema.optional(),
22954
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22955
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22956
- sampleRate: number().int().positive().optional(),
22957
- /** Channel count. Default 1. */
22958
- channels: number().int().positive().optional(),
22959
- /** Sequence number for ordering / dropping out-of-order frames. */
22960
- sequenceNumber: number().int()
22961
- }), object({ accepted: boolean() }), {
22962
- kind: "mutation",
22963
- auth: "admin"
22964
- }), method(object({ deviceId: number() }), _void(), {
22965
- kind: "mutation",
22966
- auth: "admin"
22967
- }), object({
22968
- deviceId: number(),
22969
- status: IntercomStatusSchema
22970
- });
23573
+ var intercomCapability = {
23574
+ name: "intercom",
23575
+ scope: "device",
23576
+ deviceNative: true,
23577
+ mode: "singleton",
23578
+ deviceTypes: [DeviceType.Camera],
23579
+ methods: {
23580
+ /**
23581
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23582
+ * offer with a single sendonly audio m-line the client answers
23583
+ * (client → server direction). The server wakes battery cams
23584
+ * transparently before opening the upstream talk channel.
23585
+ */
23586
+ startSession: method(object({ deviceId: number() }), object({
23587
+ sessionId: string(),
23588
+ sdpOffer: string()
23589
+ }), {
23590
+ kind: "mutation",
23591
+ auth: "admin"
23592
+ }),
23593
+ handleAnswer: method(object({
23594
+ deviceId: number(),
23595
+ sessionId: string(),
23596
+ sdpAnswer: string()
23597
+ }), _void(), {
23598
+ kind: "mutation",
23599
+ auth: "admin"
23600
+ }),
23601
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23602
+ stopSession: method(object({
23603
+ deviceId: number(),
23604
+ sessionId: string()
23605
+ }), _void(), {
23606
+ kind: "mutation",
23607
+ auth: "admin"
23608
+ }),
23609
+ /**
23610
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23611
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23612
+ * harnesses) that already have decoded PCM frames and just need a
23613
+ * direct path onto the camera's talk channel. Mutually exclusive
23614
+ * with `startSession` (an active WebRTC session must be stopped
23615
+ * before a raw-PCM session can be opened on the same device, and
23616
+ * vice versa).
23617
+ */
23618
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23619
+ kind: "mutation",
23620
+ auth: "admin"
23621
+ }),
23622
+ /**
23623
+ * Push one chunk of talk-back audio onto the active talk session.
23624
+ * The cap is codec-agnostic: the caller declares (or omits) the
23625
+ * wire format via `codec`; the provider decides between passthrough
23626
+ * (when the wire codec matches the camera's native talk channel),
23627
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23628
+ *
23629
+ * Callers do NOT need to know the camera's wire format or sample
23630
+ * rate — that information lives entirely inside the provider.
23631
+ *
23632
+ * Sequence numbers MUST be monotonic per talk session; older frames
23633
+ * arriving after newer ones are dropped to avoid smearing the
23634
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23635
+ * predictor would corrupt with re-ordering).
23636
+ */
23637
+ pushTalkAudio: method(object({
23638
+ deviceId: number(),
23639
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23640
+ * survives tRPC JSON serialization. */
23641
+ audioBase64: string(),
23642
+ /** Wire codec of the payload. Omit to let the provider default
23643
+ * to its native expected format (s16le @ provider-native rate,
23644
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23645
+ codec: TalkAudioCodecSchema.optional(),
23646
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23647
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23648
+ sampleRate: number().int().positive().optional(),
23649
+ /** Channel count. Default 1. */
23650
+ channels: number().int().positive().optional(),
23651
+ /** Sequence number for ordering / dropping out-of-order frames. */
23652
+ sequenceNumber: number().int()
23653
+ }), object({ accepted: boolean() }), {
23654
+ kind: "mutation",
23655
+ auth: "admin"
23656
+ }),
23657
+ /** Close the raw-PCM talk session. Idempotent. */
23658
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23659
+ kind: "mutation",
23660
+ auth: "admin"
23661
+ })
23662
+ },
23663
+ events: { onStatusChanged: { data: object({
23664
+ deviceId: number(),
23665
+ status: IntercomStatusSchema
23666
+ }) } },
23667
+ status: {
23668
+ schema: IntercomStatusSchema,
23669
+ kind: "command-driven"
23670
+ },
23671
+ /**
23672
+ * Runtime-state slice — mirrored by the kernel.
23673
+ *
23674
+ * The cap declared `status` and nothing else, so the only two sources an
23675
+ * exporter has for a value — the `device.state-changed` slice event and the
23676
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23677
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23678
+ * have been published and never received a value, which is the defect the
23679
+ * export's two classification tables exist to prevent (177 of them, once), so
23680
+ * `intercom` was excluded rather than exported.
23681
+ *
23682
+ * The shape is the status shape: there is exactly one truth about talk-back
23683
+ * and duplicating it into a second schema is how two halves of one capability
23684
+ * come to disagree. Providers write it through
23685
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23686
+ * and close a session, and seed it at registration so the slice exists before
23687
+ * the first session rather than after it.
23688
+ *
23689
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23690
+ * session handle, so a session torn down by a transport death that never
23691
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23692
+ * session or the next restart. That is why the slice is `session` and not
23693
+ * `restored` — a restart must never restore "talking".
23694
+ */
23695
+ runtimeState: IntercomStatusSchema,
23696
+ /**
23697
+ * Runtime-state durability: **session** — `talking` describes a live audio
23698
+ * session, which by definition does not survive the process that held it.
23699
+ * Restoring it would publish a camera as talking to nobody.
23700
+ *
23701
+ * See `RuntimeStateDurability`. Enforced by
23702
+ * `scripts/check-runtime-state-durability.ts`.
23703
+ */
23704
+ durability: "session"
23705
+ };
22971
23706
  /**
22972
23707
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22973
23708
  * with a mowing lifecycle plus a dock action.
@@ -25664,7 +26399,7 @@ method(object({
25664
26399
  toMs: number()
25665
26400
  }), RecordingAvailabilitySchema, {
25666
26401
  kind: "query",
25667
- auth: "admin"
26402
+ auth: "protected"
25668
26403
  }), method(object({
25669
26404
  deviceId: number(),
25670
26405
  fromMs: number(),
@@ -25672,14 +26407,14 @@ method(object({
25672
26407
  tzOffsetMinutes: number()
25673
26408
  }), RecordingDaysSchema, {
25674
26409
  kind: "query",
25675
- auth: "admin"
26410
+ auth: "protected"
25676
26411
  }), method(object({
25677
26412
  deviceId: number(),
25678
26413
  fromMs: number(),
25679
26414
  toMs: number()
25680
26415
  }), RecordingManifestSchema, {
25681
26416
  kind: "query",
25682
- auth: "admin"
26417
+ auth: "protected"
25683
26418
  }), method(object({}), RecordingStorageUsageSchema, {
25684
26419
  kind: "query",
25685
26420
  auth: "admin"
@@ -25969,14 +26704,77 @@ method(object({
25969
26704
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25970
26705
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25971
26706
  *
25972
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25973
- * derives the device-detail contribution; the provider carries NO hand-written
25974
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25975
- * every hysteresis flip / availability change; consumers never poll.
25976
- */
25977
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25978
- * be added without a wire break (matching falls back to any-condition refs). */
26707
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26708
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26709
+ * for the thing: a scene is a standing question about the property ("is the bin
26710
+ * still out"), and the operator's question is "which of my scenes have tripped",
26711
+ * across every camera at once — not "what does camera 617 think". Buried one
26712
+ * camera deep it also could not be found. The surface is now a top-level admin
26713
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26714
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26715
+ *
26716
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26717
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26718
+ * directions, so a registration nobody declares fails exactly as loudly as a
26719
+ * declaration nobody registers. The editor is imported directly by the page.
26720
+ *
26721
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26722
+ * availability change; consumers never poll.
26723
+ */
26724
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26725
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26726
+ * Open by design so more can be added without a wire break.
26727
+ *
26728
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26729
+ * not comparable, so "I have never seen this scene in this light" is reported
26730
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26731
+ * collapses the cosine and would latch a false alarm every single night. */
25979
26732
  var SceneConditionSchema = string();
26733
+ /**
26734
+ * What a scene does when the CURRENT light has no reference of its own.
26735
+ *
26736
+ * The lighting variants are not equally likely to exist. Almost every operator
26737
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26738
+ * scene that is only ever going to be asked about a daytime question ("is the
26739
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26740
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26741
+ * working without it rather than degrading into a permanent complaint.
26742
+ *
26743
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26744
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26745
+ * last covered light left it at, the latch is untouched, and the hysteresis
26746
+ * run is neither spent nor cleared. The scene resumes by itself at first
26747
+ * light. This is the only behaviour under which "I never captured IR" is a
26748
+ * configuration choice instead of a nightly fault.
26749
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26750
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26751
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26752
+ * cross-condition cosines are not comparable, so a day reference against a
26753
+ * true IR frame collapses and the scene reports a theft at 21:40.
26754
+ *
26755
+ * Never applies when the scene has NO comparable reference at all — that is
26756
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26757
+ * there would hide a scene the operator never finished setting up.
26758
+ */
26759
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26760
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26761
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26762
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26763
+ * and never counts toward hysteresis in either direction. */
26764
+ var SceneVerdictSchema = _enum([
26765
+ "matched",
26766
+ "diverged",
26767
+ "unknown"
26768
+ ]);
26769
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26770
+ * silence that reads as "nothing has happened". */
26771
+ var SceneUnavailableSchema = _enum([
26772
+ "no-reference-for-condition",
26773
+ "view-shifted",
26774
+ "no-vision-profile",
26775
+ "encoder-model-changed",
26776
+ "no-snapshot"
26777
+ ]);
25980
26778
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25981
26779
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25982
26780
  var SceneReferenceSchema = object({
@@ -25984,7 +26782,14 @@ var SceneReferenceSchema = object({
25984
26782
  modelId: string(),
25985
26783
  condition: SceneConditionSchema,
25986
26784
  capturedAt: number(),
25987
- thumbnailMediaId: string().optional()
26785
+ thumbnailMediaId: string().optional(),
26786
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26787
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26788
+ * normalized rect frame a different piece of world, and the scene would
26789
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26790
+ * when hysteresis is about to flip — one extra encode per candidate
26791
+ * transition, not per poll. */
26792
+ anchorEmbedding: array(number()).optional()
25988
26793
  });
25989
26794
  var SceneMonitorStateSchema = object({
25990
26795
  id: string(),
@@ -26006,6 +26811,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26006
26811
  profileId: string().optional(),
26007
26812
  hysteresisCount: number().int().positive()
26008
26813
  })]);
26814
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26815
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26816
+ * out in silence rather than reporting a fault every night. */
26817
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26818
+ /**
26819
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26820
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26821
+ *
26822
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26823
+ * fail-open: a notification suppressed is the worse error there, but a vision
26824
+ * model that timed out has not told us the bin is gone, and a latch is a
26825
+ * stateful claim that costs the operator a trip to reset.
26826
+ */
26827
+ var SceneConfirmSchema = object({
26828
+ enabled: boolean().default(false),
26829
+ prompt: string().min(1).max(1e3),
26830
+ profileId: string().optional(),
26831
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26832
+ maxImagePx: number().int().min(64).max(2048).default(448),
26833
+ /** What a timeout / unavailable model means for the PENDING flip. */
26834
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26835
+ });
26009
26836
  var SceneMonitorSchema = object({
26010
26837
  id: string(),
26011
26838
  label: string(),
@@ -26024,7 +26851,56 @@ var SceneMonitorSchema = object({
26024
26851
  lastConfidence: number().nullable(),
26025
26852
  currentCondition: SceneConditionSchema.nullable(),
26026
26853
  availability: _enum(["ok", "unavailable"]),
26027
- unavailableReason: string().nullable()
26854
+ unavailableReason: string().nullable(),
26855
+ /** Which state is "the initial screen". `null` until the first capture. */
26856
+ baselineStateId: string().nullable(),
26857
+ /** Which boolean drives notification rules and any export. */
26858
+ emit: _enum(["latched", "live"]).default("latched"),
26859
+ /** Live: does the region match the baseline RIGHT NOW. */
26860
+ verdict: SceneVerdictSchema,
26861
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26862
+ latched: boolean(),
26863
+ /** Last reset (or creation). */
26864
+ armedAt: number(),
26865
+ divergedAt: number().nullable(),
26866
+ restoredAt: number().nullable(),
26867
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26868
+ * during the window DISCARDS the observation — a car pulling up in front of
26869
+ * the bin must not be able to spend hysteresis credit. */
26870
+ quietSeconds: number().int().min(0).max(3600).default(60),
26871
+ /** An observation only advances the pending count when it is at least this
26872
+ * far from the previously counted one, so N agreeing checks span real time
26873
+ * rather than N adjacent polls inside one occlusion. */
26874
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26875
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26876
+ confirm: SceneConfirmSchema.optional(),
26877
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26878
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26879
+ /** Clear the latch on its own when the scene matches again? Default false —
26880
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26881
+ * automation can react to the bin coming back without the operator's own
26882
+ * alarm silently clearing itself. */
26883
+ autoRestore: boolean().default(false),
26884
+ /** What to do when the current light has no reference of its own. See
26885
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26886
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26887
+ /**
26888
+ * The light whose checks are currently being SAT OUT under
26889
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26890
+ *
26891
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26892
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26893
+ * nothing captured in this light"* in the same calm voice as the coverage
26894
+ * line, because the alternative is a scene that silently stops answering
26895
+ * after sunset with nothing anywhere saying why. A skipped check must never
26896
+ * read as a broken one.
26897
+ */
26898
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26899
+ /** Named cause when `verdict === 'unknown'`. */
26900
+ unavailable: SceneUnavailableSchema.nullable(),
26901
+ /** Conditions that have at least one comparable reference — the coverage line
26902
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26903
+ coveredConditions: array(SceneConditionSchema)
26028
26904
  });
26029
26905
  var SceneMonitorStatusSchema = object({
26030
26906
  monitors: array(SceneMonitorSchema),
@@ -26037,12 +26913,6 @@ var sceneMonitorCapability = {
26037
26913
  kind: "wrapper",
26038
26914
  defaultActive: true,
26039
26915
  deviceTypes: [DeviceType.Camera],
26040
- deviceConfig: { ui: {
26041
- kind: "widget",
26042
- widgetId: "host/scene-monitor-editor",
26043
- tab: "scenes",
26044
- label: "Scenes"
26045
- } },
26046
26916
  methods: {
26047
26917
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26048
26918
  createScene: method(object({
@@ -26073,7 +26943,15 @@ var sceneMonitorCapability = {
26073
26943
  "both"
26074
26944
  ]).optional(),
26075
26945
  checkIntervalSec: number().optional(),
26076
- check: SceneCheckSchema.optional()
26946
+ check: SceneCheckSchema.optional(),
26947
+ emit: _enum(["latched", "live"]).optional(),
26948
+ quietSeconds: number().int().min(0).max(3600).optional(),
26949
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26950
+ anchorThreshold: number().min(0).max(1).optional(),
26951
+ autoRestore: boolean().optional(),
26952
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26953
+ /** `null` clears the vision-model adjudicator. */
26954
+ confirm: SceneConfirmSchema.nullable().optional()
26077
26955
  })
26078
26956
  }), _void(), {
26079
26957
  kind: "mutation",
@@ -26114,6 +26992,26 @@ var sceneMonitorCapability = {
26114
26992
  }), _void(), {
26115
26993
  kind: "mutation",
26116
26994
  auth: "admin"
26995
+ }),
26996
+ /**
26997
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26998
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26999
+ * "reset" in the operator's head means *this is the new normal*, and
27000
+ * re-capture is what makes the feature self-healing against slow drift
27001
+ * instead of failing silently weeks later.
27002
+ *
27003
+ * Reachable from three surfaces on this one mutation: the scene card, a
27004
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27005
+ * no new Notification-Center code at all), and tRPC for scripts.
27006
+ */
27007
+ resetScene: method(object({
27008
+ deviceId: number(),
27009
+ monitorId: string(),
27010
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27011
+ recapture: boolean().optional()
27012
+ }), _void(), {
27013
+ kind: "mutation",
27014
+ auth: "admin"
26117
27015
  })
26118
27016
  },
26119
27017
  status: {
@@ -26356,13 +27254,63 @@ var CamStreamDescriptorSchema = object({
26356
27254
  * set of stream descriptors it can offer for the device, synchronously, so the
26357
27255
  * broker can reconcile its registry against the authoritative provider state.
26358
27256
  */
27257
+ /**
27258
+ * The catalog as a DURABLE fact rather than a live answer.
27259
+ *
27260
+ * A battery camera's descriptors are profile-stable — they change when the
27261
+ * operator rewrites an encoder profile, not minute to minute — but building
27262
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27263
+ * provider is allowed to build them exactly once per profile and must serve
27264
+ * every later pull from a cache.
27265
+ *
27266
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27267
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27268
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27269
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27270
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27271
+ * which on a battery cam is most of the day. The camera was fine. The stream
27272
+ * was unreachable because the process had forgotten what the camera offers.
27273
+ *
27274
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27275
+ * declared collection, with the same `restored` durability `battery` uses for
27276
+ * the same reason: the last known value is the only value there is while the
27277
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27278
+ * is the DIAL that wakes a camera, never the catalog (D173).
27279
+ */
27280
+ var StreamCatalogStateSchema = object({
27281
+ /** The descriptors as last built from a real camera response. Never a guess:
27282
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27283
+ * one the camera itself once produced. */
27284
+ descriptors: array(CamStreamDescriptorSchema),
27285
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27286
+ * path decide whether the camera's own awake window is worth spending on a
27287
+ * re-read. */
27288
+ lastFetchedAt: number()
27289
+ });
26359
27290
  var streamCatalogCapability = {
26360
27291
  name: "stream-catalog",
26361
27292
  scope: "device",
26362
27293
  deviceNative: true,
26363
27294
  mode: "singleton",
26364
27295
  deviceTypes: [DeviceType.Camera],
26365
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
27296
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27297
+ runtimeState: StreamCatalogStateSchema,
27298
+ /**
27299
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27300
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27301
+ * camera that cannot be watched at all until it happens to wake.
27302
+ *
27303
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27304
+ * build, and a build only runs when there is no cached copy (or the copy is
27305
+ * a day old and the camera is awake anyway).
27306
+ *
27307
+ * See `RuntimeStateDurability`. Enforced by
27308
+ * `scripts/check-runtime-state-durability.ts`.
27309
+ */
27310
+ durability: "restored",
27311
+ /** Clock field: written, but excluded from the compare that decides whether
27312
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27313
+ volatileStateFields: ["lastFetchedAt"]
26366
27314
  };
26367
27315
  /** One of the camera's stream profiles. */
26368
27316
  var StreamProfileSchema = _enum([
@@ -26617,12 +27565,64 @@ var NetworkAddressSchema = object({
26617
27565
  family: string(),
26618
27566
  internal: boolean()
26619
27567
  });
27568
+ /**
27569
+ * Provenance of the site coordinates, and the whole reason this is not just two
27570
+ * numbers.
27571
+ *
27572
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27573
+ * nothing overwrites it.
27574
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27575
+ * default that is right to a few kilometres beats the coarse UTC clock split
27576
+ * the sun-times consumers otherwise fall back to.
27577
+ *
27578
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27579
+ * own input will eventually trust the guess.
27580
+ */
27581
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27582
+ /**
27583
+ * The read shape: the location plus the honest state of the one-shot derivation.
27584
+ *
27585
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27586
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27587
+ * failed; the hub will NOT try again on its own — the fallback is declared
27588
+ * (consumers degrade to their own last resort) and the operator either types the
27589
+ * coordinates or presses detect.
27590
+ */
27591
+ var SiteLocationStatusSchema = object({
27592
+ location: object({
27593
+ /** WGS84 decimal degrees. */
27594
+ latitude: number().min(-90).max(90),
27595
+ longitude: number().min(-180).max(180),
27596
+ source: SiteLocationSourceSchema,
27597
+ /** Epoch ms the value was last written. */
27598
+ updatedAt: number(),
27599
+ /**
27600
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27601
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27602
+ */
27603
+ label: string().optional()
27604
+ }).nullable(),
27605
+ derivationAttemptedAt: number().nullable(),
27606
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27607
+ derivationError: string().nullable()
27608
+ });
27609
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27610
+ var SetSiteLocationInputSchema = object({
27611
+ latitude: number().min(-90).max(90),
27612
+ longitude: number().min(-180).max(180)
27613
+ }).nullable();
26620
27614
  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(), {
26621
27615
  kind: "mutation",
26622
27616
  auth: "admin"
26623
27617
  }), method(_void(), _void(), {
26624
27618
  kind: "mutation",
26625
27619
  auth: "admin"
27620
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27621
+ kind: "mutation",
27622
+ auth: "admin"
27623
+ }), method(_void(), SiteLocationStatusSchema, {
27624
+ kind: "mutation",
27625
+ auth: "admin"
26626
27626
  });
26627
27627
  /**
26628
27628
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27942,6 +28942,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27942
28942
  humiditySensor: humiditySensorCapability,
27943
28943
  image: imageCapability,
27944
28944
  imageSettings: imageSettingsCapability,
28945
+ intercom: intercomCapability,
27945
28946
  lawnMowerControl: lawnMowerControlCapability,
27946
28947
  lockControl: lockControlCapability,
27947
28948
  mediaPlayer: mediaPlayerCapability,
@@ -27960,6 +28961,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27960
28961
  sceneMonitor: sceneMonitorCapability,
27961
28962
  scriptRunner: scriptRunnerCapability,
27962
28963
  smoke: smokeCapability,
28964
+ streamCatalog: streamCatalogCapability,
27963
28965
  streamParams: streamParamsCapability,
27964
28966
  switch: switchCapability,
27965
28967
  tamper: tamperCapability,
@@ -30756,6 +31758,12 @@ Object.freeze({
30756
31758
  addonId: null,
30757
31759
  access: "create"
30758
31760
  },
31761
+ "llm.cancel": {
31762
+ capName: "llm",
31763
+ capScope: "system",
31764
+ addonId: null,
31765
+ access: "create"
31766
+ },
30759
31767
  "llm.deleteModel": {
30760
31768
  capName: "llm",
30761
31769
  capScope: "system",
@@ -30840,6 +31848,12 @@ Object.freeze({
30840
31848
  addonId: null,
30841
31849
  access: "view"
30842
31850
  },
31851
+ "llm.resolveModelRef": {
31852
+ capName: "llm",
31853
+ capScope: "system",
31854
+ addonId: null,
31855
+ access: "create"
31856
+ },
30843
31857
  "llm.setDefault": {
30844
31858
  capName: "llm",
30845
31859
  capScope: "system",
@@ -33006,6 +34020,12 @@ Object.freeze({
33006
34020
  addonId: null,
33007
34021
  access: "create"
33008
34022
  },
34023
+ "sceneMonitor.resetScene": {
34024
+ capName: "scene-monitor",
34025
+ capScope: "device",
34026
+ addonId: null,
34027
+ access: "delete"
34028
+ },
33009
34029
  "sceneMonitor.updateScene": {
33010
34030
  capName: "scene-monitor",
33011
34031
  capScope: "device",
@@ -33144,6 +34164,12 @@ Object.freeze({
33144
34164
  addonId: null,
33145
34165
  access: "view"
33146
34166
  },
34167
+ "snapshot.getDebugState": {
34168
+ capName: "snapshot",
34169
+ capScope: "device",
34170
+ addonId: null,
34171
+ access: "view"
34172
+ },
33147
34173
  "snapshot.getSnapshot": {
33148
34174
  capName: "snapshot",
33149
34175
  capScope: "device",
@@ -33684,6 +34710,12 @@ Object.freeze({
33684
34710
  addonId: null,
33685
34711
  access: "create"
33686
34712
  },
34713
+ "system.detectSiteLocation": {
34714
+ capName: "system",
34715
+ capScope: "system",
34716
+ addonId: null,
34717
+ access: "create"
34718
+ },
33687
34719
  "system.featureFlags": {
33688
34720
  capName: "system",
33689
34721
  capScope: "system",
@@ -33702,6 +34734,12 @@ Object.freeze({
33702
34734
  addonId: null,
33703
34735
  access: "view"
33704
34736
  },
34737
+ "system.getSiteLocation": {
34738
+ capName: "system",
34739
+ capScope: "system",
34740
+ addonId: null,
34741
+ access: "view"
34742
+ },
33705
34743
  "system.health": {
33706
34744
  capName: "system",
33707
34745
  capScope: "system",
@@ -33726,6 +34764,12 @@ Object.freeze({
33726
34764
  addonId: null,
33727
34765
  access: "create"
33728
34766
  },
34767
+ "system.setSiteLocation": {
34768
+ capName: "system",
34769
+ capScope: "system",
34770
+ addonId: null,
34771
+ access: "create"
34772
+ },
33729
34773
  "terminalSession.adoptLegacyMonitor": {
33730
34774
  capName: "terminal-session",
33731
34775
  capScope: "system",
@@ -34297,6 +35341,1709 @@ Object.freeze({
34297
35341
  access: "create"
34298
35342
  }
34299
35343
  });
35344
+ Object.freeze({
35345
+ "accessories.setChildHidden": [{
35346
+ name: "childDeviceId",
35347
+ form: "single",
35348
+ optional: false
35349
+ }, {
35350
+ name: "deviceId",
35351
+ form: "single",
35352
+ optional: false
35353
+ }],
35354
+ "addonSettings.getDeviceSettings": [{
35355
+ name: "deviceId",
35356
+ form: "single",
35357
+ optional: false
35358
+ }],
35359
+ "addonSettings.updateDeviceSettings": [{
35360
+ name: "deviceId",
35361
+ form: "single",
35362
+ optional: false
35363
+ }],
35364
+ "alarmPanel.arm": [{
35365
+ name: "deviceId",
35366
+ form: "single",
35367
+ optional: false
35368
+ }],
35369
+ "alarmPanel.disarm": [{
35370
+ name: "deviceId",
35371
+ form: "single",
35372
+ optional: false
35373
+ }],
35374
+ "alarmPanel.trigger": [{
35375
+ name: "deviceId",
35376
+ form: "single",
35377
+ optional: false
35378
+ }],
35379
+ "audioAnalysis.resolveDeviceSettings": [{
35380
+ name: "deviceId",
35381
+ form: "single",
35382
+ optional: false
35383
+ }],
35384
+ "audioAnalyzer.classify": [{
35385
+ name: "deviceId",
35386
+ form: "single",
35387
+ optional: true
35388
+ }],
35389
+ "audioMetrics.getCurrentSnapshot": [{
35390
+ name: "deviceId",
35391
+ form: "single",
35392
+ optional: false
35393
+ }],
35394
+ "audioMetrics.getHistory": [{
35395
+ name: "deviceId",
35396
+ form: "single",
35397
+ optional: false
35398
+ }],
35399
+ "automationControl.disable": [{
35400
+ name: "deviceId",
35401
+ form: "single",
35402
+ optional: false
35403
+ }],
35404
+ "automationControl.enable": [{
35405
+ name: "deviceId",
35406
+ form: "single",
35407
+ optional: false
35408
+ }],
35409
+ "automationControl.trigger": [{
35410
+ name: "deviceId",
35411
+ form: "single",
35412
+ optional: false
35413
+ }],
35414
+ "battery.wakeForStream": [{
35415
+ name: "deviceId",
35416
+ form: "single",
35417
+ optional: false
35418
+ }],
35419
+ "brightness.setBrightness": [{
35420
+ name: "deviceId",
35421
+ form: "single",
35422
+ optional: false
35423
+ }],
35424
+ "button.press": [{
35425
+ name: "deviceId",
35426
+ form: "single",
35427
+ optional: false
35428
+ }],
35429
+ "cameraCredentials.getCredentials": [{
35430
+ name: "deviceId",
35431
+ form: "single",
35432
+ optional: false
35433
+ }],
35434
+ "cameraStreams.getBrokerStreams": [{
35435
+ name: "deviceId",
35436
+ form: "single",
35437
+ optional: false
35438
+ }],
35439
+ "cameraStreams.getCameraStreams": [{
35440
+ name: "deviceId",
35441
+ form: "single",
35442
+ optional: false
35443
+ }],
35444
+ "cameraStreams.getProfileRtspEntries": [{
35445
+ name: "deviceId",
35446
+ form: "single",
35447
+ optional: false
35448
+ }],
35449
+ "cameraStreams.getRtspEntries": [{
35450
+ name: "deviceId",
35451
+ form: "single",
35452
+ optional: false
35453
+ }],
35454
+ "cameraStreams.pickStream": [{
35455
+ name: "deviceId",
35456
+ form: "single",
35457
+ optional: false
35458
+ }],
35459
+ "climateControl.setFanMode": [{
35460
+ name: "deviceId",
35461
+ form: "single",
35462
+ optional: false
35463
+ }],
35464
+ "climateControl.setMode": [{
35465
+ name: "deviceId",
35466
+ form: "single",
35467
+ optional: false
35468
+ }],
35469
+ "climateControl.setPreset": [{
35470
+ name: "deviceId",
35471
+ form: "single",
35472
+ optional: false
35473
+ }],
35474
+ "climateControl.setSwingHorizontal": [{
35475
+ name: "deviceId",
35476
+ form: "single",
35477
+ optional: false
35478
+ }],
35479
+ "climateControl.setSwingVertical": [{
35480
+ name: "deviceId",
35481
+ form: "single",
35482
+ optional: false
35483
+ }],
35484
+ "climateControl.setTarget": [{
35485
+ name: "deviceId",
35486
+ form: "single",
35487
+ optional: false
35488
+ }],
35489
+ "climateControl.setTargetHumidity": [{
35490
+ name: "deviceId",
35491
+ form: "single",
35492
+ optional: false
35493
+ }],
35494
+ "climateControl.setTargetRange": [{
35495
+ name: "deviceId",
35496
+ form: "single",
35497
+ optional: false
35498
+ }],
35499
+ "color.setColor": [{
35500
+ name: "deviceId",
35501
+ form: "single",
35502
+ optional: false
35503
+ }],
35504
+ "consumables.reset": [{
35505
+ name: "deviceId",
35506
+ form: "single",
35507
+ optional: false
35508
+ }],
35509
+ "control.setValue": [{
35510
+ name: "deviceId",
35511
+ form: "single",
35512
+ optional: false
35513
+ }],
35514
+ "cover.close": [{
35515
+ name: "deviceId",
35516
+ form: "single",
35517
+ optional: false
35518
+ }],
35519
+ "cover.open": [{
35520
+ name: "deviceId",
35521
+ form: "single",
35522
+ optional: false
35523
+ }],
35524
+ "cover.setPosition": [{
35525
+ name: "deviceId",
35526
+ form: "single",
35527
+ optional: false
35528
+ }],
35529
+ "cover.setTiltPosition": [{
35530
+ name: "deviceId",
35531
+ form: "single",
35532
+ optional: false
35533
+ }],
35534
+ "cover.stop": [{
35535
+ name: "deviceId",
35536
+ form: "single",
35537
+ optional: false
35538
+ }],
35539
+ "dayNight.getOptions": [{
35540
+ name: "deviceId",
35541
+ form: "single",
35542
+ optional: false
35543
+ }],
35544
+ "dayNight.setSettings": [{
35545
+ name: "deviceId",
35546
+ form: "single",
35547
+ optional: false
35548
+ }],
35549
+ "decoder.createSession": [{
35550
+ name: "deviceId",
35551
+ form: "single",
35552
+ optional: true
35553
+ }],
35554
+ "deviceAdoption.release": [{
35555
+ name: "camDeviceId",
35556
+ form: "single",
35557
+ optional: false
35558
+ }],
35559
+ "deviceAdoption.resync": [{
35560
+ name: "camDeviceId",
35561
+ form: "single",
35562
+ optional: false
35563
+ }],
35564
+ "deviceDiscovery.adoptDevice": [{
35565
+ name: "deviceId",
35566
+ form: "single",
35567
+ optional: false
35568
+ }],
35569
+ "deviceDiscovery.listDiscovered": [{
35570
+ name: "deviceId",
35571
+ form: "single",
35572
+ optional: false
35573
+ }],
35574
+ "deviceDiscovery.refreshDiscovery": [{
35575
+ name: "deviceId",
35576
+ form: "single",
35577
+ optional: false
35578
+ }],
35579
+ "deviceDiscovery.releaseDevice": [{
35580
+ name: "childDeviceId",
35581
+ form: "single",
35582
+ optional: false
35583
+ }, {
35584
+ name: "deviceId",
35585
+ form: "single",
35586
+ optional: false
35587
+ }],
35588
+ "deviceManager.adoptionRelease": [{
35589
+ name: "camDeviceId",
35590
+ form: "single",
35591
+ optional: false
35592
+ }],
35593
+ "deviceManager.adoptionResync": [{
35594
+ name: "camDeviceId",
35595
+ form: "single",
35596
+ optional: false
35597
+ }],
35598
+ "deviceManager.applyInitialMeta": [{
35599
+ name: "deviceId",
35600
+ form: "single",
35601
+ optional: false
35602
+ }, {
35603
+ name: "linkDeviceId",
35604
+ form: "single",
35605
+ optional: true
35606
+ }],
35607
+ "deviceManager.disable": [{
35608
+ name: "deviceId",
35609
+ form: "single",
35610
+ optional: false
35611
+ }],
35612
+ "deviceManager.enable": [{
35613
+ name: "deviceId",
35614
+ form: "single",
35615
+ optional: false
35616
+ }],
35617
+ "deviceManager.getBindings": [{
35618
+ name: "deviceId",
35619
+ form: "single",
35620
+ optional: false
35621
+ }],
35622
+ "deviceManager.getChildren": [{
35623
+ name: "parentDeviceId",
35624
+ form: "single",
35625
+ optional: false
35626
+ }],
35627
+ "deviceManager.getConfigSchema": [{
35628
+ name: "deviceId",
35629
+ form: "single",
35630
+ optional: false
35631
+ }],
35632
+ "deviceManager.getDevice": [{
35633
+ name: "deviceId",
35634
+ form: "single",
35635
+ optional: false
35636
+ }],
35637
+ "deviceManager.getDeviceAggregate": [{
35638
+ name: "deviceId",
35639
+ form: "single",
35640
+ optional: false
35641
+ }],
35642
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35643
+ name: "deviceId",
35644
+ form: "single",
35645
+ optional: false
35646
+ }],
35647
+ "deviceManager.getDeviceSettingsAggregate": [{
35648
+ name: "deviceId",
35649
+ form: "single",
35650
+ optional: false
35651
+ }],
35652
+ "deviceManager.getDeviceStatusAggregate": [{
35653
+ name: "deviceId",
35654
+ form: "single",
35655
+ optional: false
35656
+ }],
35657
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35658
+ name: "deviceIds",
35659
+ form: "array",
35660
+ optional: false
35661
+ }],
35662
+ "deviceManager.getLinkedDevices": [{
35663
+ name: "deviceId",
35664
+ form: "single",
35665
+ optional: false
35666
+ }],
35667
+ "deviceManager.getSettingsSchema": [{
35668
+ name: "deviceId",
35669
+ form: "single",
35670
+ optional: false
35671
+ }],
35672
+ "deviceManager.getStreamProfileMap": [{
35673
+ name: "deviceId",
35674
+ form: "single",
35675
+ optional: false
35676
+ }],
35677
+ "deviceManager.getStreamSources": [{
35678
+ name: "deviceId",
35679
+ form: "single",
35680
+ optional: false
35681
+ }],
35682
+ "deviceManager.getWireableFields": [{
35683
+ name: "deviceId",
35684
+ form: "single",
35685
+ optional: false
35686
+ }],
35687
+ "deviceManager.loadConfig": [{
35688
+ name: "deviceId",
35689
+ form: "single",
35690
+ optional: false
35691
+ }],
35692
+ "deviceManager.loadMeta": [{
35693
+ name: "deviceId",
35694
+ form: "single",
35695
+ optional: false
35696
+ }],
35697
+ "deviceManager.loadRuntimeState": [{
35698
+ name: "deviceId",
35699
+ form: "single",
35700
+ optional: false
35701
+ }],
35702
+ "deviceManager.persistConfig": [{
35703
+ name: "deviceId",
35704
+ form: "single",
35705
+ optional: false
35706
+ }],
35707
+ "deviceManager.probeStreams": [{
35708
+ name: "deviceId",
35709
+ form: "single",
35710
+ optional: false
35711
+ }],
35712
+ "deviceManager.registerDevice": [{
35713
+ name: "parentDeviceId",
35714
+ form: "single",
35715
+ optional: true
35716
+ }],
35717
+ "deviceManager.remove": [{
35718
+ name: "deviceId",
35719
+ form: "single",
35720
+ optional: false
35721
+ }],
35722
+ "deviceManager.removeDevice": [{
35723
+ name: "deviceId",
35724
+ form: "single",
35725
+ optional: false
35726
+ }],
35727
+ "deviceManager.runDeviceAction": [{
35728
+ name: "deviceId",
35729
+ form: "single",
35730
+ optional: false
35731
+ }],
35732
+ "deviceManager.setChildLayout": [{
35733
+ name: "deviceId",
35734
+ form: "single",
35735
+ optional: false
35736
+ }],
35737
+ "deviceManager.setDisabled": [{
35738
+ name: "deviceId",
35739
+ form: "single",
35740
+ optional: false
35741
+ }],
35742
+ "deviceManager.setDisplay": [{
35743
+ name: "deviceId",
35744
+ form: "single",
35745
+ optional: false
35746
+ }],
35747
+ "deviceManager.setIntegrationId": [{
35748
+ name: "deviceId",
35749
+ form: "single",
35750
+ optional: false
35751
+ }],
35752
+ "deviceManager.setLinkDeviceId": [{
35753
+ name: "deviceId",
35754
+ form: "single",
35755
+ optional: false
35756
+ }, {
35757
+ name: "linkDeviceId",
35758
+ form: "single",
35759
+ optional: true
35760
+ }],
35761
+ "deviceManager.setLocation": [{
35762
+ name: "deviceId",
35763
+ form: "single",
35764
+ optional: false
35765
+ }],
35766
+ "deviceManager.setMetadata": [{
35767
+ name: "deviceId",
35768
+ form: "single",
35769
+ optional: false
35770
+ }],
35771
+ "deviceManager.setName": [{
35772
+ name: "deviceId",
35773
+ form: "single",
35774
+ optional: false
35775
+ }],
35776
+ "deviceManager.setPrimaryChildEntityId": [{
35777
+ name: "deviceId",
35778
+ form: "single",
35779
+ optional: false
35780
+ }],
35781
+ "deviceManager.setRole": [{
35782
+ name: "deviceId",
35783
+ form: "single",
35784
+ optional: false
35785
+ }],
35786
+ "deviceManager.setStreamProfileMap": [{
35787
+ name: "deviceId",
35788
+ form: "single",
35789
+ optional: false
35790
+ }],
35791
+ "deviceManager.setType": [{
35792
+ name: "deviceId",
35793
+ form: "single",
35794
+ optional: false
35795
+ }],
35796
+ "deviceManager.setWrapperActive": [{
35797
+ name: "deviceId",
35798
+ form: "single",
35799
+ optional: false
35800
+ }],
35801
+ "deviceManager.testField": [{
35802
+ name: "deviceId",
35803
+ form: "single",
35804
+ optional: false
35805
+ }],
35806
+ "deviceManager.updateConfig": [{
35807
+ name: "deviceId",
35808
+ form: "single",
35809
+ optional: false
35810
+ }],
35811
+ "deviceManager.updateDeviceField": [{
35812
+ name: "deviceId",
35813
+ form: "single",
35814
+ optional: false
35815
+ }],
35816
+ "deviceManager.updateDeviceFieldsBatch": [{
35817
+ name: "deviceId",
35818
+ form: "single",
35819
+ optional: false
35820
+ }],
35821
+ "deviceOps.getConfigEntries": [{
35822
+ name: "deviceId",
35823
+ form: "single",
35824
+ optional: false
35825
+ }],
35826
+ "deviceOps.getRawState": [{
35827
+ name: "deviceId",
35828
+ form: "single",
35829
+ optional: false
35830
+ }],
35831
+ "deviceOps.getSettingsSchema": [{
35832
+ name: "deviceId",
35833
+ form: "single",
35834
+ optional: false
35835
+ }],
35836
+ "deviceOps.getStreamSources": [{
35837
+ name: "deviceId",
35838
+ form: "single",
35839
+ optional: false
35840
+ }],
35841
+ "deviceOps.removeDevice": [{
35842
+ name: "deviceId",
35843
+ form: "single",
35844
+ optional: false
35845
+ }],
35846
+ "deviceOps.runAction": [{
35847
+ name: "deviceId",
35848
+ form: "single",
35849
+ optional: false
35850
+ }],
35851
+ "deviceOps.setConfig": [{
35852
+ name: "deviceId",
35853
+ form: "single",
35854
+ optional: false
35855
+ }],
35856
+ "deviceState.getCapSlice": [{
35857
+ name: "deviceId",
35858
+ form: "single",
35859
+ optional: false
35860
+ }],
35861
+ "deviceState.getSnapshot": [{
35862
+ name: "deviceId",
35863
+ form: "single",
35864
+ optional: false
35865
+ }],
35866
+ "deviceState.setCapSlice": [{
35867
+ name: "deviceId",
35868
+ form: "single",
35869
+ optional: false
35870
+ }],
35871
+ "events.getEventClipUrl": [{
35872
+ name: "deviceId",
35873
+ form: "single",
35874
+ optional: false
35875
+ }],
35876
+ "events.getEvents": [{
35877
+ name: "deviceId",
35878
+ form: "single",
35879
+ optional: false
35880
+ }],
35881
+ "events.getEventThumbnail": [{
35882
+ name: "deviceId",
35883
+ form: "single",
35884
+ optional: false
35885
+ }],
35886
+ "faceGallery.getFaceByTrack": [{
35887
+ name: "deviceId",
35888
+ form: "single",
35889
+ optional: false
35890
+ }],
35891
+ "faceGallery.listRecentFaces": [{
35892
+ name: "deviceId",
35893
+ form: "single",
35894
+ optional: true
35895
+ }],
35896
+ "fanControl.setDirection": [{
35897
+ name: "deviceId",
35898
+ form: "single",
35899
+ optional: false
35900
+ }],
35901
+ "fanControl.setOscillating": [{
35902
+ name: "deviceId",
35903
+ form: "single",
35904
+ optional: false
35905
+ }],
35906
+ "fanControl.setPercentage": [{
35907
+ name: "deviceId",
35908
+ form: "single",
35909
+ optional: false
35910
+ }],
35911
+ "fanControl.setPreset": [{
35912
+ name: "deviceId",
35913
+ form: "single",
35914
+ optional: false
35915
+ }],
35916
+ "humidifier.setMode": [{
35917
+ name: "deviceId",
35918
+ form: "single",
35919
+ optional: false
35920
+ }],
35921
+ "humidifier.setOn": [{
35922
+ name: "deviceId",
35923
+ form: "single",
35924
+ optional: false
35925
+ }],
35926
+ "humidifier.setTargetHumidity": [{
35927
+ name: "deviceId",
35928
+ form: "single",
35929
+ optional: false
35930
+ }],
35931
+ "imageSettings.getOptions": [{
35932
+ name: "deviceId",
35933
+ form: "single",
35934
+ optional: false
35935
+ }],
35936
+ "imageSettings.setSettings": [{
35937
+ name: "deviceId",
35938
+ form: "single",
35939
+ optional: false
35940
+ }],
35941
+ "intercom.endTalkSession": [{
35942
+ name: "deviceId",
35943
+ form: "single",
35944
+ optional: false
35945
+ }],
35946
+ "intercom.handleAnswer": [{
35947
+ name: "deviceId",
35948
+ form: "single",
35949
+ optional: false
35950
+ }],
35951
+ "intercom.pushTalkAudio": [{
35952
+ name: "deviceId",
35953
+ form: "single",
35954
+ optional: false
35955
+ }],
35956
+ "intercom.startSession": [{
35957
+ name: "deviceId",
35958
+ form: "single",
35959
+ optional: false
35960
+ }],
35961
+ "intercom.startTalkSession": [{
35962
+ name: "deviceId",
35963
+ form: "single",
35964
+ optional: false
35965
+ }],
35966
+ "intercom.stopSession": [{
35967
+ name: "deviceId",
35968
+ form: "single",
35969
+ optional: false
35970
+ }],
35971
+ "lawnMowerControl.dock": [{
35972
+ name: "deviceId",
35973
+ form: "single",
35974
+ optional: false
35975
+ }],
35976
+ "lawnMowerControl.pause": [{
35977
+ name: "deviceId",
35978
+ form: "single",
35979
+ optional: false
35980
+ }],
35981
+ "lawnMowerControl.startMowing": [{
35982
+ name: "deviceId",
35983
+ form: "single",
35984
+ optional: false
35985
+ }],
35986
+ "lockControl.lock": [{
35987
+ name: "deviceId",
35988
+ form: "single",
35989
+ optional: false
35990
+ }],
35991
+ "lockControl.open": [{
35992
+ name: "deviceId",
35993
+ form: "single",
35994
+ optional: false
35995
+ }],
35996
+ "lockControl.unlock": [{
35997
+ name: "deviceId",
35998
+ form: "single",
35999
+ optional: false
36000
+ }],
36001
+ "mediaPlayer.next": [{
36002
+ name: "deviceId",
36003
+ form: "single",
36004
+ optional: false
36005
+ }],
36006
+ "mediaPlayer.pause": [{
36007
+ name: "deviceId",
36008
+ form: "single",
36009
+ optional: false
36010
+ }],
36011
+ "mediaPlayer.play": [{
36012
+ name: "deviceId",
36013
+ form: "single",
36014
+ optional: false
36015
+ }],
36016
+ "mediaPlayer.playMedia": [{
36017
+ name: "deviceId",
36018
+ form: "single",
36019
+ optional: false
36020
+ }],
36021
+ "mediaPlayer.previous": [{
36022
+ name: "deviceId",
36023
+ form: "single",
36024
+ optional: false
36025
+ }],
36026
+ "mediaPlayer.seek": [{
36027
+ name: "deviceId",
36028
+ form: "single",
36029
+ optional: false
36030
+ }],
36031
+ "mediaPlayer.selectSource": [{
36032
+ name: "deviceId",
36033
+ form: "single",
36034
+ optional: false
36035
+ }],
36036
+ "mediaPlayer.setMute": [{
36037
+ name: "deviceId",
36038
+ form: "single",
36039
+ optional: false
36040
+ }],
36041
+ "mediaPlayer.setRepeat": [{
36042
+ name: "deviceId",
36043
+ form: "single",
36044
+ optional: false
36045
+ }],
36046
+ "mediaPlayer.setShuffle": [{
36047
+ name: "deviceId",
36048
+ form: "single",
36049
+ optional: false
36050
+ }],
36051
+ "mediaPlayer.setVolume": [{
36052
+ name: "deviceId",
36053
+ form: "single",
36054
+ optional: false
36055
+ }],
36056
+ "mediaPlayer.stop": [{
36057
+ name: "deviceId",
36058
+ form: "single",
36059
+ optional: false
36060
+ }],
36061
+ "motion.isDetected": [{
36062
+ name: "deviceId",
36063
+ form: "single",
36064
+ optional: false
36065
+ }],
36066
+ "motionDetection.analyze": [{
36067
+ name: "deviceId",
36068
+ form: "single",
36069
+ optional: false
36070
+ }],
36071
+ "motionDetection.removeCamera": [{
36072
+ name: "deviceId",
36073
+ form: "single",
36074
+ optional: false
36075
+ }],
36076
+ "motionTrigger.setMotionTrigger": [{
36077
+ name: "deviceId",
36078
+ form: "single",
36079
+ optional: false
36080
+ }],
36081
+ "motionZones.getOptions": [{
36082
+ name: "deviceId",
36083
+ form: "single",
36084
+ optional: false
36085
+ }],
36086
+ "motionZones.setZone": [{
36087
+ name: "deviceId",
36088
+ form: "single",
36089
+ optional: false
36090
+ }],
36091
+ "nativeObjectDetection.setEnabled": [{
36092
+ name: "deviceId",
36093
+ form: "single",
36094
+ optional: false
36095
+ }],
36096
+ "networkQuality.getDeviceStats": [{
36097
+ name: "deviceId",
36098
+ form: "single",
36099
+ optional: false
36100
+ }],
36101
+ "networkQuality.reportClientStats": [{
36102
+ name: "deviceId",
36103
+ form: "single",
36104
+ optional: false
36105
+ }],
36106
+ "notificationRules.setDeviceMuted": [{
36107
+ name: "deviceId",
36108
+ form: "single",
36109
+ optional: false
36110
+ }],
36111
+ "notifier.cancel": [{
36112
+ name: "deviceId",
36113
+ form: "single",
36114
+ optional: false
36115
+ }],
36116
+ "notifier.send": [{
36117
+ name: "deviceId",
36118
+ form: "single",
36119
+ optional: false
36120
+ }],
36121
+ "osd.setOverlay": [{
36122
+ name: "deviceId",
36123
+ form: "single",
36124
+ optional: false
36125
+ }],
36126
+ "osdManager.clearSlotBinding": [{
36127
+ name: "deviceId",
36128
+ form: "single",
36129
+ optional: false
36130
+ }],
36131
+ "osdManager.copyDeviceConfiguration": [{
36132
+ name: "sourceDeviceId",
36133
+ form: "single",
36134
+ optional: false
36135
+ }, {
36136
+ name: "targetDeviceId",
36137
+ form: "single",
36138
+ optional: false
36139
+ }],
36140
+ "osdManager.getDeviceOsd": [{
36141
+ name: "deviceId",
36142
+ form: "single",
36143
+ optional: false
36144
+ }],
36145
+ "osdManager.getSourceCatalog": [{
36146
+ name: "deviceId",
36147
+ form: "single",
36148
+ optional: false
36149
+ }],
36150
+ "osdManager.previewSlot": [{
36151
+ name: "deviceId",
36152
+ form: "single",
36153
+ optional: false
36154
+ }],
36155
+ "osdManager.renderDevice": [{
36156
+ name: "deviceId",
36157
+ form: "single",
36158
+ optional: false
36159
+ }],
36160
+ "osdManager.setSlotBinding": [{
36161
+ name: "deviceId",
36162
+ form: "single",
36163
+ optional: false
36164
+ }],
36165
+ "petFeeder.callPet": [{
36166
+ name: "deviceId",
36167
+ form: "single",
36168
+ optional: false
36169
+ }],
36170
+ "petFeeder.cancelFeed": [{
36171
+ name: "deviceId",
36172
+ form: "single",
36173
+ optional: false
36174
+ }],
36175
+ "petFeeder.feed": [{
36176
+ name: "deviceId",
36177
+ form: "single",
36178
+ optional: false
36179
+ }],
36180
+ "petFeeder.markFoodReplenished": [{
36181
+ name: "deviceId",
36182
+ form: "single",
36183
+ optional: false
36184
+ }],
36185
+ "petFeeder.playSound": [{
36186
+ name: "deviceId",
36187
+ form: "single",
36188
+ optional: false
36189
+ }],
36190
+ "petFeeder.resetDesiccant": [{
36191
+ name: "deviceId",
36192
+ form: "single",
36193
+ optional: false
36194
+ }],
36195
+ "petFeeder.setChildLock": [{
36196
+ name: "deviceId",
36197
+ form: "single",
36198
+ optional: false
36199
+ }],
36200
+ "petFeeder.setFeedSound": [{
36201
+ name: "deviceId",
36202
+ form: "single",
36203
+ optional: false
36204
+ }],
36205
+ "petFeeder.setIndicatorLight": [{
36206
+ name: "deviceId",
36207
+ form: "single",
36208
+ optional: false
36209
+ }],
36210
+ "petFeeder.setVolume": [{
36211
+ name: "deviceId",
36212
+ form: "single",
36213
+ optional: false
36214
+ }],
36215
+ "pipelineAnalytics.clearTracks": [{
36216
+ name: "deviceId",
36217
+ form: "single",
36218
+ optional: false
36219
+ }],
36220
+ "pipelineAnalytics.completeRetrainTrack": [{
36221
+ name: "deviceId",
36222
+ form: "single",
36223
+ optional: false
36224
+ }],
36225
+ "pipelineAnalytics.deleteDeviceEvents": [{
36226
+ name: "deviceId",
36227
+ form: "single",
36228
+ optional: false
36229
+ }],
36230
+ "pipelineAnalytics.deleteTracks": [{
36231
+ name: "deviceId",
36232
+ form: "single",
36233
+ optional: false
36234
+ }],
36235
+ "pipelineAnalytics.deselectRetrainFrame": [{
36236
+ name: "deviceId",
36237
+ form: "single",
36238
+ optional: false
36239
+ }],
36240
+ "pipelineAnalytics.getActiveTracks": [{
36241
+ name: "deviceId",
36242
+ form: "single",
36243
+ optional: false
36244
+ }],
36245
+ "pipelineAnalytics.getAudioEvents": [{
36246
+ name: "deviceId",
36247
+ form: "single",
36248
+ optional: false
36249
+ }],
36250
+ "pipelineAnalytics.getEventDensity": [{
36251
+ name: "deviceId",
36252
+ form: "single",
36253
+ optional: false
36254
+ }],
36255
+ "pipelineAnalytics.getEventMedia": [{
36256
+ name: "deviceId",
36257
+ form: "single",
36258
+ optional: false
36259
+ }],
36260
+ "pipelineAnalytics.getKeyEvents": [{
36261
+ name: "deviceId",
36262
+ form: "single",
36263
+ optional: false
36264
+ }],
36265
+ "pipelineAnalytics.getMotionEvents": [{
36266
+ name: "deviceId",
36267
+ form: "single",
36268
+ optional: false
36269
+ }],
36270
+ "pipelineAnalytics.getObjectEvents": [{
36271
+ name: "deviceId",
36272
+ form: "single",
36273
+ optional: false
36274
+ }],
36275
+ "pipelineAnalytics.getRetrainExportUrl": [{
36276
+ name: "deviceIds",
36277
+ form: "array",
36278
+ optional: true
36279
+ }],
36280
+ "pipelineAnalytics.getSensorEvents": [{
36281
+ name: "deviceId",
36282
+ form: "single",
36283
+ optional: false
36284
+ }],
36285
+ "pipelineAnalytics.getTrack": [{
36286
+ name: "deviceId",
36287
+ form: "single",
36288
+ optional: false
36289
+ }],
36290
+ "pipelineAnalytics.getTrackMedia": [{
36291
+ name: "deviceId",
36292
+ form: "single",
36293
+ optional: false
36294
+ }],
36295
+ "pipelineAnalytics.getTrainingExportSummary": [{
36296
+ name: "deviceIds",
36297
+ form: "array",
36298
+ optional: true
36299
+ }],
36300
+ "pipelineAnalytics.getTrainingExportUrl": [{
36301
+ name: "deviceIds",
36302
+ form: "array",
36303
+ optional: true
36304
+ }],
36305
+ "pipelineAnalytics.listEventKinds": [{
36306
+ name: "deviceId",
36307
+ form: "single",
36308
+ optional: false
36309
+ }],
36310
+ "pipelineAnalytics.listEventKindsBatch": [{
36311
+ name: "deviceIds",
36312
+ form: "array",
36313
+ optional: false
36314
+ }],
36315
+ "pipelineAnalytics.listOpsLog": [{
36316
+ name: "deviceId",
36317
+ form: "single",
36318
+ optional: true
36319
+ }],
36320
+ "pipelineAnalytics.listRecentTracks": [{
36321
+ name: "deviceIds",
36322
+ form: "array",
36323
+ optional: false
36324
+ }],
36325
+ "pipelineAnalytics.listRetrainStaging": [{
36326
+ name: "deviceIds",
36327
+ form: "array",
36328
+ optional: true
36329
+ }],
36330
+ "pipelineAnalytics.listTrackMedia": [{
36331
+ name: "deviceId",
36332
+ form: "single",
36333
+ optional: false
36334
+ }],
36335
+ "pipelineAnalytics.listTracks": [{
36336
+ name: "deviceId",
36337
+ form: "single",
36338
+ optional: false
36339
+ }],
36340
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36341
+ name: "deviceId",
36342
+ form: "single",
36343
+ optional: false
36344
+ }],
36345
+ "pipelineAnalytics.pruneEventsBefore": [{
36346
+ name: "deviceId",
36347
+ form: "single",
36348
+ optional: false
36349
+ }],
36350
+ "pipelineAnalytics.pruneTracksBefore": [{
36351
+ name: "deviceId",
36352
+ form: "single",
36353
+ optional: false
36354
+ }],
36355
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36356
+ name: "deviceId",
36357
+ form: "single",
36358
+ optional: true
36359
+ }],
36360
+ "pipelineAnalytics.restageRetrainTrack": [{
36361
+ name: "deviceId",
36362
+ form: "single",
36363
+ optional: false
36364
+ }],
36365
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36366
+ name: "deviceId",
36367
+ form: "single",
36368
+ optional: false
36369
+ }],
36370
+ "pipelineAnalytics.searchObjectEvents": [{
36371
+ name: "deviceId",
36372
+ form: "single",
36373
+ optional: true
36374
+ }],
36375
+ "pipelineAnalytics.selectRetrainFrames": [{
36376
+ name: "deviceId",
36377
+ form: "single",
36378
+ optional: false
36379
+ }],
36380
+ "pipelineAnalytics.setTrackFlags": [{
36381
+ name: "deviceId",
36382
+ form: "single",
36383
+ optional: false
36384
+ }],
36385
+ "pipelineAnalytics.wipeAllAnalytics": [{
36386
+ name: "deviceId",
36387
+ form: "single",
36388
+ optional: false
36389
+ }],
36390
+ "pipelineExecutor.runPipeline": [{
36391
+ name: "deviceId",
36392
+ form: "single",
36393
+ optional: true
36394
+ }],
36395
+ "pipelineExecutor.runPipelineBatch": [{
36396
+ name: "deviceId",
36397
+ form: "single",
36398
+ optional: true
36399
+ }],
36400
+ "pipelineOrchestrator.assignAudio": [{
36401
+ name: "deviceId",
36402
+ form: "single",
36403
+ optional: false
36404
+ }],
36405
+ "pipelineOrchestrator.assignPipeline": [{
36406
+ name: "deviceId",
36407
+ form: "single",
36408
+ optional: false
36409
+ }],
36410
+ "pipelineOrchestrator.getAudioAssignment": [{
36411
+ name: "deviceId",
36412
+ form: "single",
36413
+ optional: false
36414
+ }],
36415
+ "pipelineOrchestrator.getCameraMetrics": [{
36416
+ name: "deviceId",
36417
+ form: "single",
36418
+ optional: false
36419
+ }],
36420
+ "pipelineOrchestrator.getCameraSettings": [{
36421
+ name: "deviceId",
36422
+ form: "single",
36423
+ optional: false
36424
+ }],
36425
+ "pipelineOrchestrator.getCameraStatus": [{
36426
+ name: "deviceId",
36427
+ form: "single",
36428
+ optional: false
36429
+ }],
36430
+ "pipelineOrchestrator.getCameraStatuses": [{
36431
+ name: "deviceIds",
36432
+ form: "array",
36433
+ optional: true
36434
+ }],
36435
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36436
+ name: "deviceId",
36437
+ form: "single",
36438
+ optional: false
36439
+ }],
36440
+ "pipelineOrchestrator.getCameraSwitches": [{
36441
+ name: "deviceId",
36442
+ form: "single",
36443
+ optional: false
36444
+ }],
36445
+ "pipelineOrchestrator.getPipelineAssignment": [{
36446
+ name: "deviceId",
36447
+ form: "single",
36448
+ optional: false
36449
+ }],
36450
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36451
+ name: "deviceId",
36452
+ form: "single",
36453
+ optional: false
36454
+ }],
36455
+ "pipelineOrchestrator.resolvePipeline": [{
36456
+ name: "deviceId",
36457
+ form: "single",
36458
+ optional: false
36459
+ }],
36460
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36461
+ name: "deviceId",
36462
+ form: "single",
36463
+ optional: false
36464
+ }],
36465
+ "pipelineOrchestrator.setCameraStepOverride": [{
36466
+ name: "deviceId",
36467
+ form: "single",
36468
+ optional: false
36469
+ }],
36470
+ "pipelineOrchestrator.setCameraStepToggle": [{
36471
+ name: "deviceId",
36472
+ form: "single",
36473
+ optional: false
36474
+ }],
36475
+ "pipelineOrchestrator.setCameraSwitch": [{
36476
+ name: "deviceId",
36477
+ form: "single",
36478
+ optional: false
36479
+ }],
36480
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36481
+ name: "deviceId",
36482
+ form: "single",
36483
+ optional: false
36484
+ }],
36485
+ "pipelineOrchestrator.unassignAudio": [{
36486
+ name: "deviceId",
36487
+ form: "single",
36488
+ optional: false
36489
+ }],
36490
+ "pipelineOrchestrator.unassignPipeline": [{
36491
+ name: "deviceId",
36492
+ form: "single",
36493
+ optional: false
36494
+ }],
36495
+ "pipelineRunner.attachCamera": [{
36496
+ name: "deviceId",
36497
+ form: "single",
36498
+ optional: false
36499
+ }],
36500
+ "pipelineRunner.detachCamera": [{
36501
+ name: "deviceId",
36502
+ form: "single",
36503
+ optional: false
36504
+ }],
36505
+ "pipelineRunner.getCameraMetrics": [{
36506
+ name: "deviceId",
36507
+ form: "single",
36508
+ optional: false
36509
+ }],
36510
+ "pipelineRunner.reportMotion": [{
36511
+ name: "deviceId",
36512
+ form: "single",
36513
+ optional: false
36514
+ }],
36515
+ "pipelineRunner.runDetailSubtree": [{
36516
+ name: "deviceId",
36517
+ form: "single",
36518
+ optional: false
36519
+ }],
36520
+ "pipelineRunner.runStatelessStep": [{
36521
+ name: "sourceDeviceId",
36522
+ form: "single",
36523
+ optional: false
36524
+ }],
36525
+ "plateGallery.getPlateByTrack": [{
36526
+ name: "deviceId",
36527
+ form: "single",
36528
+ optional: false
36529
+ }],
36530
+ "plateGallery.listPlates": [{
36531
+ name: "deviceId",
36532
+ form: "single",
36533
+ optional: true
36534
+ }],
36535
+ "privacyMask.getOptions": [{
36536
+ name: "deviceId",
36537
+ form: "single",
36538
+ optional: false
36539
+ }],
36540
+ "privacyMask.setAudioEnabled": [{
36541
+ name: "deviceId",
36542
+ form: "single",
36543
+ optional: false
36544
+ }],
36545
+ "privacyMask.setMask": [{
36546
+ name: "deviceId",
36547
+ form: "single",
36548
+ optional: false
36549
+ }],
36550
+ "ptz.continuousMove": [{
36551
+ name: "deviceId",
36552
+ form: "single",
36553
+ optional: false
36554
+ }],
36555
+ "ptz.deletePreset": [{
36556
+ name: "deviceId",
36557
+ form: "single",
36558
+ optional: false
36559
+ }],
36560
+ "ptz.getOptions": [{
36561
+ name: "deviceId",
36562
+ form: "single",
36563
+ optional: false
36564
+ }],
36565
+ "ptz.getPosition": [{
36566
+ name: "deviceId",
36567
+ form: "single",
36568
+ optional: false
36569
+ }],
36570
+ "ptz.getPresets": [{
36571
+ name: "deviceId",
36572
+ form: "single",
36573
+ optional: false
36574
+ }],
36575
+ "ptz.goHome": [{
36576
+ name: "deviceId",
36577
+ form: "single",
36578
+ optional: false
36579
+ }],
36580
+ "ptz.goToPreset": [{
36581
+ name: "deviceId",
36582
+ form: "single",
36583
+ optional: false
36584
+ }],
36585
+ "ptz.move": [{
36586
+ name: "deviceId",
36587
+ form: "single",
36588
+ optional: false
36589
+ }],
36590
+ "ptz.savePreset": [{
36591
+ name: "deviceId",
36592
+ form: "single",
36593
+ optional: false
36594
+ }],
36595
+ "ptz.setAutofocus": [{
36596
+ name: "deviceId",
36597
+ form: "single",
36598
+ optional: false
36599
+ }],
36600
+ "ptz.stop": [{
36601
+ name: "deviceId",
36602
+ form: "single",
36603
+ optional: false
36604
+ }],
36605
+ "ptzAutotrack.getSettings": [{
36606
+ name: "deviceId",
36607
+ form: "single",
36608
+ optional: false
36609
+ }],
36610
+ "ptzAutotrack.getStatus": [{
36611
+ name: "deviceId",
36612
+ form: "single",
36613
+ optional: false
36614
+ }],
36615
+ "ptzAutotrack.setEnabled": [{
36616
+ name: "deviceId",
36617
+ form: "single",
36618
+ optional: false
36619
+ }],
36620
+ "ptzAutotrack.setSettings": [{
36621
+ name: "deviceId",
36622
+ form: "single",
36623
+ optional: false
36624
+ }],
36625
+ "reboot.reboot": [{
36626
+ name: "deviceId",
36627
+ form: "single",
36628
+ optional: false
36629
+ }],
36630
+ "recording.deleteFootprint": [{
36631
+ name: "deviceId",
36632
+ form: "single",
36633
+ optional: false
36634
+ }],
36635
+ "recording.getAvailability": [{
36636
+ name: "deviceId",
36637
+ form: "single",
36638
+ optional: false
36639
+ }],
36640
+ "recording.getDaysWithRecordings": [{
36641
+ name: "deviceId",
36642
+ form: "single",
36643
+ optional: false
36644
+ }],
36645
+ "recording.getDeviceConfig": [{
36646
+ name: "deviceId",
36647
+ form: "single",
36648
+ optional: false
36649
+ }],
36650
+ "recording.getPlaybackManifest": [{
36651
+ name: "deviceId",
36652
+ form: "single",
36653
+ optional: false
36654
+ }],
36655
+ "recording.listOpsLog": [{
36656
+ name: "deviceId",
36657
+ form: "single",
36658
+ optional: true
36659
+ }],
36660
+ "recording.locateSegment": [{
36661
+ name: "deviceId",
36662
+ form: "single",
36663
+ optional: false
36664
+ }],
36665
+ "recording.pruneFootage": [{
36666
+ name: "deviceId",
36667
+ form: "single",
36668
+ optional: false
36669
+ }],
36670
+ "recording.readGopBytes": [{
36671
+ name: "deviceId",
36672
+ form: "single",
36673
+ optional: false
36674
+ }],
36675
+ "recording.readSegmentBytes": [{
36676
+ name: "deviceId",
36677
+ form: "single",
36678
+ optional: false
36679
+ }],
36680
+ "recording.relocateFootage": [{
36681
+ name: "deviceId",
36682
+ form: "single",
36683
+ optional: true
36684
+ }],
36685
+ "recording.renderClip": [{
36686
+ name: "deviceId",
36687
+ form: "single",
36688
+ optional: false
36689
+ }],
36690
+ "recording.renderGif": [{
36691
+ name: "deviceId",
36692
+ form: "single",
36693
+ optional: false
36694
+ }],
36695
+ "recording.rescanStorage": [{
36696
+ name: "deviceId",
36697
+ form: "single",
36698
+ optional: false
36699
+ }],
36700
+ "recording.setDeviceConfig": [{
36701
+ name: "deviceId",
36702
+ form: "single",
36703
+ optional: false
36704
+ }],
36705
+ "recording.startStorageMigrationMove": [{
36706
+ name: "deviceId",
36707
+ form: "single",
36708
+ optional: true
36709
+ }],
36710
+ "recordingExport.createExport": [{
36711
+ name: "deviceId",
36712
+ form: "single",
36713
+ optional: false
36714
+ }],
36715
+ "recordingExport.listExports": [{
36716
+ name: "deviceId",
36717
+ form: "single",
36718
+ optional: true
36719
+ }],
36720
+ "sceneMonitor.captureReference": [{
36721
+ name: "deviceId",
36722
+ form: "single",
36723
+ optional: false
36724
+ }],
36725
+ "sceneMonitor.createScene": [{
36726
+ name: "deviceId",
36727
+ form: "single",
36728
+ optional: false
36729
+ }],
36730
+ "sceneMonitor.deleteReference": [{
36731
+ name: "deviceId",
36732
+ form: "single",
36733
+ optional: false
36734
+ }],
36735
+ "sceneMonitor.deleteScene": [{
36736
+ name: "deviceId",
36737
+ form: "single",
36738
+ optional: false
36739
+ }],
36740
+ "sceneMonitor.listScenes": [{
36741
+ name: "deviceId",
36742
+ form: "single",
36743
+ optional: false
36744
+ }],
36745
+ "sceneMonitor.recheckNow": [{
36746
+ name: "deviceId",
36747
+ form: "single",
36748
+ optional: false
36749
+ }],
36750
+ "sceneMonitor.resetScene": [{
36751
+ name: "deviceId",
36752
+ form: "single",
36753
+ optional: false
36754
+ }],
36755
+ "sceneMonitor.updateScene": [{
36756
+ name: "deviceId",
36757
+ form: "single",
36758
+ optional: false
36759
+ }],
36760
+ "scriptRunner.run": [{
36761
+ name: "deviceId",
36762
+ form: "single",
36763
+ optional: false
36764
+ }],
36765
+ "scriptRunner.stop": [{
36766
+ name: "deviceId",
36767
+ form: "single",
36768
+ optional: false
36769
+ }],
36770
+ "snapshot.getDebugState": [{
36771
+ name: "deviceId",
36772
+ form: "single",
36773
+ optional: false
36774
+ }],
36775
+ "snapshot.getSnapshot": [{
36776
+ name: "deviceId",
36777
+ form: "single",
36778
+ optional: false
36779
+ }],
36780
+ "snapshot.getSnapshotLinks": [{
36781
+ name: "targets",
36782
+ form: "object-array",
36783
+ optional: false,
36784
+ itemField: "deviceId"
36785
+ }],
36786
+ "snapshot.getSnapshotOverview": [{
36787
+ name: "deviceIds",
36788
+ form: "array",
36789
+ optional: false
36790
+ }],
36791
+ "snapshot.invalidateCache": [{
36792
+ name: "deviceId",
36793
+ form: "single",
36794
+ optional: false
36795
+ }],
36796
+ "streamBroker.acquireEgressTranscode": [{
36797
+ name: "deviceId",
36798
+ form: "single",
36799
+ optional: false
36800
+ }],
36801
+ "streamBroker.assignProfile": [{
36802
+ name: "deviceId",
36803
+ form: "single",
36804
+ optional: false
36805
+ }],
36806
+ "streamBroker.getDeviceAudioMute": [{
36807
+ name: "deviceId",
36808
+ form: "single",
36809
+ optional: false
36810
+ }],
36811
+ "streamBroker.getStreamWithCodec": [{
36812
+ name: "deviceId",
36813
+ form: "single",
36814
+ optional: false
36815
+ }],
36816
+ "streamBroker.produceEventMedia": [{
36817
+ name: "deviceId",
36818
+ form: "single",
36819
+ optional: false
36820
+ }],
36821
+ "streamBroker.publishCameraStream": [{
36822
+ name: "deviceId",
36823
+ form: "single",
36824
+ optional: false
36825
+ }],
36826
+ "streamBroker.renderPreBufferClip": [{
36827
+ name: "deviceId",
36828
+ form: "single",
36829
+ optional: false
36830
+ }],
36831
+ "streamBroker.restartProfile": [{
36832
+ name: "deviceId",
36833
+ form: "single",
36834
+ optional: false
36835
+ }],
36836
+ "streamBroker.retractCameraStream": [{
36837
+ name: "deviceId",
36838
+ form: "single",
36839
+ optional: false
36840
+ }],
36841
+ "streamBroker.setDeviceAudioMute": [{
36842
+ name: "deviceId",
36843
+ form: "single",
36844
+ optional: false
36845
+ }],
36846
+ "streamBroker.unassignProfile": [{
36847
+ name: "deviceId",
36848
+ form: "single",
36849
+ optional: false
36850
+ }],
36851
+ "streamCatalog.getCatalog": [{
36852
+ name: "deviceId",
36853
+ form: "single",
36854
+ optional: false
36855
+ }],
36856
+ "streamParams.getConfigSchema": [{
36857
+ name: "deviceId",
36858
+ form: "single",
36859
+ optional: false
36860
+ }],
36861
+ "streamParams.getOptions": [{
36862
+ name: "deviceId",
36863
+ form: "single",
36864
+ optional: false
36865
+ }],
36866
+ "streamParams.setProfile": [{
36867
+ name: "deviceId",
36868
+ form: "single",
36869
+ optional: false
36870
+ }],
36871
+ "switch.setState": [{
36872
+ name: "deviceId",
36873
+ form: "single",
36874
+ optional: false
36875
+ }],
36876
+ "vacuumControl.locate": [{
36877
+ name: "deviceId",
36878
+ form: "single",
36879
+ optional: false
36880
+ }],
36881
+ "vacuumControl.pause": [{
36882
+ name: "deviceId",
36883
+ form: "single",
36884
+ optional: false
36885
+ }],
36886
+ "vacuumControl.returnToBase": [{
36887
+ name: "deviceId",
36888
+ form: "single",
36889
+ optional: false
36890
+ }],
36891
+ "vacuumControl.setFanSpeed": [{
36892
+ name: "deviceId",
36893
+ form: "single",
36894
+ optional: false
36895
+ }],
36896
+ "vacuumControl.start": [{
36897
+ name: "deviceId",
36898
+ form: "single",
36899
+ optional: false
36900
+ }],
36901
+ "vacuumControl.stop": [{
36902
+ name: "deviceId",
36903
+ form: "single",
36904
+ optional: false
36905
+ }],
36906
+ "valve.close": [{
36907
+ name: "deviceId",
36908
+ form: "single",
36909
+ optional: false
36910
+ }],
36911
+ "valve.open": [{
36912
+ name: "deviceId",
36913
+ form: "single",
36914
+ optional: false
36915
+ }],
36916
+ "valve.setPosition": [{
36917
+ name: "deviceId",
36918
+ form: "single",
36919
+ optional: false
36920
+ }],
36921
+ "valve.stop": [{
36922
+ name: "deviceId",
36923
+ form: "single",
36924
+ optional: false
36925
+ }],
36926
+ "videoclips.getClipPlayback": [{
36927
+ name: "deviceId",
36928
+ form: "single",
36929
+ optional: false
36930
+ }],
36931
+ "videoclips.listClips": [{
36932
+ name: "deviceId",
36933
+ form: "single",
36934
+ optional: false
36935
+ }],
36936
+ "waterHeater.setAway": [{
36937
+ name: "deviceId",
36938
+ form: "single",
36939
+ optional: false
36940
+ }],
36941
+ "waterHeater.setOperationMode": [{
36942
+ name: "deviceId",
36943
+ form: "single",
36944
+ optional: false
36945
+ }],
36946
+ "waterHeater.setTargetTemp": [{
36947
+ name: "deviceId",
36948
+ form: "single",
36949
+ optional: false
36950
+ }],
36951
+ "webrtcSession.addIceCandidate": [{
36952
+ name: "deviceId",
36953
+ form: "single",
36954
+ optional: false
36955
+ }],
36956
+ "webrtcSession.closeSession": [{
36957
+ name: "deviceId",
36958
+ form: "single",
36959
+ optional: false
36960
+ }],
36961
+ "webrtcSession.createSession": [{
36962
+ name: "deviceId",
36963
+ form: "single",
36964
+ optional: false
36965
+ }],
36966
+ "webrtcSession.getIceCandidates": [{
36967
+ name: "deviceId",
36968
+ form: "single",
36969
+ optional: false
36970
+ }],
36971
+ "webrtcSession.getSessionState": [{
36972
+ name: "deviceId",
36973
+ form: "single",
36974
+ optional: false
36975
+ }],
36976
+ "webrtcSession.handleAnswer": [{
36977
+ name: "deviceId",
36978
+ form: "single",
36979
+ optional: false
36980
+ }],
36981
+ "webrtcSession.handleOffer": [{
36982
+ name: "deviceId",
36983
+ form: "single",
36984
+ optional: false
36985
+ }],
36986
+ "webrtcSession.hasAdaptiveBitrate": [{
36987
+ name: "deviceId",
36988
+ form: "single",
36989
+ optional: false
36990
+ }],
36991
+ "webrtcSession.listStreams": [{
36992
+ name: "deviceId",
36993
+ form: "single",
36994
+ optional: false
36995
+ }],
36996
+ "zoneAnalytics.getCameraHistory": [{
36997
+ name: "deviceId",
36998
+ form: "single",
36999
+ optional: false
37000
+ }],
37001
+ "zoneAnalytics.getCurrentSnapshot": [{
37002
+ name: "deviceId",
37003
+ form: "single",
37004
+ optional: false
37005
+ }],
37006
+ "zoneAnalytics.getUnzonedHistory": [{
37007
+ name: "deviceId",
37008
+ form: "single",
37009
+ optional: false
37010
+ }],
37011
+ "zoneAnalytics.getZoneHistory": [{
37012
+ name: "deviceId",
37013
+ form: "single",
37014
+ optional: false
37015
+ }],
37016
+ "zoneRules.listRules": [{
37017
+ name: "deviceId",
37018
+ form: "single",
37019
+ optional: false
37020
+ }],
37021
+ "zoneRules.setRules": [{
37022
+ name: "deviceId",
37023
+ form: "single",
37024
+ optional: false
37025
+ }],
37026
+ "zones.addZone": [{
37027
+ name: "deviceId",
37028
+ form: "single",
37029
+ optional: false
37030
+ }],
37031
+ "zones.listZones": [{
37032
+ name: "deviceId",
37033
+ form: "single",
37034
+ optional: false
37035
+ }],
37036
+ "zones.removeZone": [{
37037
+ name: "deviceId",
37038
+ form: "single",
37039
+ optional: false
37040
+ }],
37041
+ "zones.updateZone": [{
37042
+ name: "deviceId",
37043
+ form: "single",
37044
+ optional: false
37045
+ }]
37046
+ });
34300
37047
  Object.freeze({
34301
37048
  "broker": "broker",
34302
37049
  "device-export": "device-export",