@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.js CHANGED
@@ -31,7 +31,7 @@ let node_module = require("node:module");
31
31
  let sharp = require("sharp");
32
32
  sharp = __toESM(sharp);
33
33
  let node_http = require("node:http");
34
- //#region ../types/dist/event-category-Cv9dO26A.mjs
34
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
35
35
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
36
36
  EventCategory["SystemBoot"] = "system.boot";
37
37
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -238,6 +238,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
238
238
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
239
239
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
240
240
  /**
241
+ * A node the orchestrator would otherwise place cameras on has NO usable
242
+ * inference device: the operator enabled one or more accelerators there and
243
+ * the live probe reports every one of them unavailable. Emitted once per
244
+ * TRANSITION into that state (never per dispatch), and the node is dropped
245
+ * from the placement candidate set for as long as it holds.
246
+ *
247
+ * This exists because the state was previously invisible: little-unraid
248
+ * absorbed 283k inference errors in a day while still being handed cameras,
249
+ * and nothing in the system said so.
250
+ *
251
+ * A node with no accelerators configured at all is NOT this — its devices
252
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
253
+ * serves it exactly as before.
254
+ */
255
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
256
+ /**
257
+ * A camera has an OPEN detection session and has produced no detection at
258
+ * all for longer than the blind threshold — the camera is being decoded and
259
+ * inferred and is returning nothing. Emitted once per transition into blind,
260
+ * per camera.
261
+ *
262
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
263
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
264
+ * camera" produce byte-identical silence.
265
+ */
266
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
267
+ /**
241
268
  * Per-camera pipeline config was mutated by the orchestrator
242
269
  * (3-level settings change via `setAgentAddonDefaults` /
243
270
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3029,6 +3056,9 @@ function handlePipeResult(left, next, ctx) {
3029
3056
  fallback: left.fallback
3030
3057
  }, ctx);
3031
3058
  }
3059
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3060
+ $ZodPipe.init(inst, def);
3061
+ });
3032
3062
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3033
3063
  $ZodType.init(inst, def);
3034
3064
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5214,6 +5244,10 @@ function pipe(in_, out) {
5214
5244
  out
5215
5245
  });
5216
5246
  }
5247
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5248
+ ZodPipe.init(inst, def);
5249
+ $ZodPreprocess.init(inst, def);
5250
+ });
5217
5251
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5218
5252
  $ZodReadonly.init(inst, def);
5219
5253
  ZodType.init(inst, def);
@@ -5272,6 +5306,13 @@ function _instanceof(cls, params = {}) {
5272
5306
  };
5273
5307
  return inst;
5274
5308
  }
5309
+ function preprocess(fn, schema) {
5310
+ return new ZodPreprocess({
5311
+ type: "pipe",
5312
+ in: transform(fn),
5313
+ out: schema
5314
+ });
5315
+ }
5275
5316
  //#endregion
5276
5317
  //#region ../../node_modules/zod/v4/classic/compat.js
5277
5318
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10975,6 +11016,8 @@ var QueryFilterSchema = object({
10975
11016
  where: record(string(), unknown()).optional(),
10976
11017
  whereIn: record(string(), array(unknown())).optional(),
10977
11018
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11019
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
11020
+ whereNot: record(string(), unknown()).optional(),
10978
11021
  orderBy: object({
10979
11022
  field: string(),
10980
11023
  direction: _enum(["asc", "desc"])
@@ -10994,7 +11037,8 @@ var QueryFilterSchema = object({
10994
11037
  var MutationFilterSchema = object({
10995
11038
  where: record(string(), unknown()).optional(),
10996
11039
  whereIn: record(string(), array(unknown())).optional(),
10997
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11040
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11041
+ whereNot: record(string(), unknown()).optional()
10998
11042
  });
10999
11043
  /** A single stored record: `{ id, data }`. */
11000
11044
  var SettingsRecordSchema = object({
@@ -12458,6 +12502,17 @@ var LlmImageSchema = object({
12458
12502
  bytes: _instanceof(Uint8Array),
12459
12503
  mimeType: string()
12460
12504
  });
12505
+ /**
12506
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12507
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12508
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12509
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12510
+ */
12511
+ var LlmRetryPolicySchema = object({
12512
+ enabled: boolean().default(false),
12513
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12514
+ maxAttempts: number().int().min(1).max(5).default(1)
12515
+ });
12461
12516
  var LlmGenerateBaseInputSchema = object({
12462
12517
  /** Collection routing (the notification-output posture). */
12463
12518
  addonId: string().optional(),
@@ -12472,7 +12527,28 @@ var LlmGenerateBaseInputSchema = object({
12472
12527
  jsonSchema: record(string(), unknown()).optional(),
12473
12528
  /** Per-call override of the profile default. */
12474
12529
  maxTokens: number().int().positive().optional(),
12475
- temperature: number().optional()
12530
+ temperature: number().optional(),
12531
+ /** Per-call override of the profile default (nucleus sampling). */
12532
+ topP: number().min(0).max(1).optional(),
12533
+ /** Per-call override of the profile default (top-k sampling). */
12534
+ topK: number().int().positive().optional(),
12535
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12536
+ timeoutMs: number().int().positive().optional(),
12537
+ /** Per-call override; beats both the consumer table and the profile. */
12538
+ retry: LlmRetryPolicySchema.optional(),
12539
+ /**
12540
+ * Caller-minted id that makes this generation CANCELLABLE.
12541
+ *
12542
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12543
+ * the call against 8 s and free their own slot when the timer wins, while the
12544
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12545
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12546
+ * not generations, and the real load is unbounded.
12547
+ *
12548
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12549
+ * `llm.cancel({ requestId })` tears the socket down.
12550
+ */
12551
+ requestId: string().optional()
12476
12552
  });
12477
12553
  /**
12478
12554
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12485,6 +12561,18 @@ var LlmGenerateBaseInputSchema = object({
12485
12561
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12486
12562
  * watchdog — operator decision #3).
12487
12563
  */
12564
+ /**
12565
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12566
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12567
+ * REF rather than looked up at install time, so what the operator approved in
12568
+ * the preview is exactly what the node downloads.
12569
+ */
12570
+ var ManagedModelExtraFileSchema = object({
12571
+ url: string(),
12572
+ filename: string(),
12573
+ sizeBytes: number(),
12574
+ sha256: string().optional()
12575
+ });
12488
12576
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12489
12577
  object({
12490
12578
  kind: literal("catalog"),
@@ -12493,7 +12581,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12493
12581
  object({
12494
12582
  kind: literal("url"),
12495
12583
  url: string(),
12496
- sha256: string().optional()
12584
+ sha256: string().optional(),
12585
+ /** Picker/status label; the file basename when absent. */
12586
+ label: string().optional(),
12587
+ sizeBytes: number().optional(),
12588
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12497
12589
  }),
12498
12590
  object({
12499
12591
  kind: literal("path"),
@@ -12511,13 +12603,82 @@ var ManagedRuntimeConfigSchema = object({
12511
12603
  gpuLayers: number().int().default(0),
12512
12604
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12513
12605
  threads: number().int().optional(),
12514
- /** Concurrent slots. */
12606
+ /** Concurrent slots (`--parallel`). */
12515
12607
  parallel: number().int().default(1),
12608
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12609
+ batchSize: number().int().positive().optional(),
12610
+ /** Physical batch / micro-batch (`-ub`). */
12611
+ ubatchSize: number().int().positive().optional(),
12612
+ /**
12613
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12614
+ * is a no-op elsewhere, so it is offered rather than assumed.
12615
+ */
12616
+ flashAttention: boolean().default(false),
12617
+ /**
12618
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12619
+ * inference. Costs the full model size in resident memory — which is exactly
12620
+ * what the RAM budget is counting.
12621
+ */
12622
+ mlock: boolean().default(false),
12623
+ /**
12624
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12625
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12626
+ * store produces on every first token.
12627
+ */
12628
+ noMmap: boolean().default(false),
12629
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12630
+ * cheapest way to fit a longer context in the same RAM. */
12631
+ cacheTypeK: _enum([
12632
+ "f32",
12633
+ "f16",
12634
+ "q8_0",
12635
+ "q5_1",
12636
+ "q5_0",
12637
+ "q4_1",
12638
+ "q4_0"
12639
+ ]).optional(),
12640
+ cacheTypeV: _enum([
12641
+ "f32",
12642
+ "f16",
12643
+ "q8_0",
12644
+ "q5_1",
12645
+ "q5_0",
12646
+ "q4_1",
12647
+ "q4_0"
12648
+ ]).optional(),
12649
+ /**
12650
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12651
+ * (which most vision chat templates need and some language-only models
12652
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12653
+ *
12654
+ * It is NOT a second place to set the flags above. A token that collides
12655
+ * with a typed field is REJECTED at start, naming the field that owns it
12656
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12657
+ * the "two switches that disagree" failure this repo has already shipped
12658
+ * twice (D62).
12659
+ */
12660
+ extraArgs: array(string()).default([]),
12516
12661
  /** Else lazy: first generate boots it. */
12517
12662
  autoStart: boolean().default(false),
12518
12663
  /** 0 = never; frees RAM after quiet periods. */
12519
12664
  idleStopMinutes: number().int().default(30)
12520
12665
  });
12666
+ /**
12667
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12668
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12669
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12670
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12671
+ */
12672
+ var LlmDownloadProgressSchema = object({
12673
+ phase: _enum(["downloading", "verifying"]),
12674
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12675
+ file: string(),
12676
+ fileIndex: number().int(),
12677
+ fileCount: number().int(),
12678
+ /** Across the WHOLE install, not the current file. */
12679
+ downloadedBytes: number(),
12680
+ totalBytes: number().optional()
12681
+ });
12521
12682
  var LlmRuntimeStatusSchema = object({
12522
12683
  /** Status is ALWAYS node-qualified. */
12523
12684
  nodeId: string(),
@@ -12534,6 +12695,8 @@ var LlmRuntimeStatusSchema = object({
12534
12695
  modelPath: string().optional(),
12535
12696
  modelId: string().optional(),
12536
12697
  downloadProgress: number().min(0).max(1).optional(),
12698
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12699
+ download: LlmDownloadProgressSchema.optional(),
12537
12700
  lastError: string().optional(),
12538
12701
  crashesInWindow: number(),
12539
12702
  /** Child RSS (sampled best-effort). */
@@ -12544,7 +12707,14 @@ var LlmNodeModelSchema = object({
12544
12707
  file: string(),
12545
12708
  sizeBytes: number(),
12546
12709
  catalogId: string().optional(),
12547
- installedAt: number().optional()
12710
+ installedAt: number().optional(),
12711
+ /**
12712
+ * Absolute path on the node. Present so a file that is on disk but matches
12713
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12714
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12715
+ * it the picker could list such a file and do nothing with it.
12716
+ */
12717
+ path: string().optional()
12548
12718
  });
12549
12719
  var LlmRuntimeDiskUsageSchema = object({
12550
12720
  nodeId: string(),
@@ -12600,10 +12770,47 @@ var LlmProfileSchema = object({
12600
12770
  baseUrl: string().optional(),
12601
12771
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12602
12772
  apiKey: string().optional(),
12773
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12774
+ * degraded to text — that shipped once and produced a confident answer to a
12775
+ * question about a picture nobody sent. */
12603
12776
  supportsVision: boolean(),
12604
12777
  temperature: number().min(0).max(2).optional(),
12778
+ /** Nucleus sampling. Every wire we speak has it. */
12779
+ topP: number().min(0).max(1).optional(),
12780
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12781
+ * wire does, and the client drops it there (measured: the request body gets
12782
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12783
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12784
+ topK: number().int().positive().optional(),
12605
12785
  maxTokens: number().int().positive().optional(),
12786
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12787
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12788
+ * the model with, so it is the one field that changes a PROCESS. */
12789
+ contextLength: number().int().positive().optional(),
12790
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12791
+ * two system prompts fighting is worse than either alone). */
12792
+ systemPrompt: string().optional(),
12793
+ /** Total generation bound — the only one a unary call has. */
12606
12794
  timeoutMs: number().int().positive().default(6e4),
12795
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12796
+ * response headers: on the LM Studio / llama-server wire those are written
12797
+ * once the model has finished loading, so they belong to the bound below. */
12798
+ connectTimeoutMs: number().int().positive().default(1e4),
12799
+ /** Accepted, but no output yet — response headers included, because a cold
12800
+ * GPU load is exactly what happens before them. */
12801
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12802
+ /** Output started then stopped. */
12803
+ idleTimeoutMs: number().int().positive().default(6e4),
12804
+ /** Profile-level default. The per-consumer table and a per-call override
12805
+ * both beat it — see `resolveRetryPolicy`. */
12806
+ retry: LlmRetryPolicySchema.default({
12807
+ enabled: false,
12808
+ maxAttempts: 1
12809
+ }),
12810
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12811
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12812
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12813
+ toolsEnabled: boolean().default(false),
12607
12814
  extraHeaders: record(string(), string()).optional(),
12608
12815
  /** kind === 'managed-local' only (spec §4). */
12609
12816
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12653,6 +12860,36 @@ var ManagedModelCatalogEntrySchema = object({
12653
12860
  /** Vision models: companion projector file. */
12654
12861
  mmprojUrl: string().optional()
12655
12862
  });
12863
+ /**
12864
+ * The outcome of turning one operator-typed Hugging Face reference into a
12865
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12866
+ * I will not pick for you" is a normal answer the UI has to render, not an
12867
+ * exception.
12868
+ *
12869
+ * `candidates` is the whole reason the refusal is usable — every string in it
12870
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12871
+ */
12872
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12873
+ ok: literal(true),
12874
+ /** Ready to hand to `installModel` unchanged. */
12875
+ model: ManagedModelRefSchema,
12876
+ label: string(),
12877
+ repo: string(),
12878
+ quantization: string(),
12879
+ purpose: _enum(["text", "vision"]),
12880
+ totalBytes: number(),
12881
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12882
+ * see that 0.9 GB of it is a projector they did not name. */
12883
+ extraFilenames: array(string())
12884
+ }), object({
12885
+ ok: literal(false),
12886
+ code: string(),
12887
+ message: string(),
12888
+ candidates: array(string()).optional(),
12889
+ /** Set when the refusal was only the ceiling: re-calling with
12890
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12891
+ requiredBytes: number().optional()
12892
+ })]);
12656
12893
  var LlmRuntimeNodeSchema = object({
12657
12894
  nodeId: string(),
12658
12895
  reachable: boolean(),
@@ -12665,7 +12902,10 @@ var ProfileRefInputSchema = object({
12665
12902
  addonId: string(),
12666
12903
  profileId: string()
12667
12904
  });
12668
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12905
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12906
+ addonId: string().optional(),
12907
+ requestId: string()
12908
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12669
12909
  kind: "mutation",
12670
12910
  auth: "admin"
12671
12911
  }), method(ProfileRefInputSchema, _void(), {
@@ -12686,6 +12926,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12686
12926
  consumer: string().optional(),
12687
12927
  profileId: string().optional()
12688
12928
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12929
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12930
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12931
+ ref: string(),
12932
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12933
+ maxBytes: number().positive().optional()
12934
+ }), HfModelResolutionSchema, {
12935
+ kind: "mutation",
12936
+ auth: "admin"
12937
+ }), method(object({
12689
12938
  nodeId: string(),
12690
12939
  model: ManagedModelRefSchema
12691
12940
  }), _void(), {
@@ -14333,6 +14582,8 @@ var NcSystemEventKindSchema = _enum([
14333
14582
  "stream-offline",
14334
14583
  "node-online",
14335
14584
  "node-offline",
14585
+ "node-inference-unavailable",
14586
+ "detection-blind",
14336
14587
  "addon-update-available",
14337
14588
  "server-update-available",
14338
14589
  "alarm-triggered",
@@ -14394,7 +14645,16 @@ var NcScheduleSchema = object({
14394
14645
  });
14395
14646
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14396
14647
  var NcPlateMatcherSchema = object({
14397
- values: array(string().min(1)).min(1),
14648
+ /**
14649
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14650
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14651
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14652
+ * rather than merely seen. A subject carrying no plate still fails.
14653
+ *
14654
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14655
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14656
+ */
14657
+ values: array(string().min(1)),
14398
14658
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14399
14659
  maxDistance: number().int().min(0).max(3).default(1)
14400
14660
  });
@@ -14428,28 +14688,36 @@ var NcOccupancyConditionSchema = object({
14428
14688
  /**
14429
14689
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14430
14690
  *
14431
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14432
- * reference notifier uses, so an operator moving between them re-uses what
14433
- * they already know): a rule matches when, over a sampling window of
14434
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14435
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14436
- *
14437
- * - `dbThreshold` its level is at or above this many dBFS (see
14438
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14439
- * - `labels` the classifier put at least one of these labels on it.
14440
- *
14441
- * Both are OPTIONAL and independent, which is the point of the shape: a
14442
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14443
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14444
- * is given** a window in which every sample is trivially a hit would fire on
14445
- * silence, so the engine refuses such a condition rather than notifying on
14446
- * nothing (the schema cannot express "at least one of" without becoming a
14447
- * ZodEffects the cap path would have to special-case).
14448
- *
14449
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14450
- * must be FULL before it can match a window that has been open for two
14451
- * seconds of its ten is 100% of nothing, and firing on it would make
14452
- * `samplingSeconds` decorative.
14691
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14692
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14693
+ * there is no second switch that can disagree with the first and every rule
14694
+ * authored before the decision migrates for free (`audioModeOf`):
14695
+ *
14696
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14697
+ * classifier labels with one of them. No window, no percentage:
14698
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14699
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14700
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14701
+ * reaches this condition if the classifier was already confident enough.
14702
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14703
+ * the condition: at least `hitPercent`% of the samples over
14704
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14705
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14706
+ * must be FULL before it can match a window open for two of its ten
14707
+ * seconds is 100% of nothing.
14708
+ *
14709
+ * **Why label mode has no window.** It had one, and it never fired: the
14710
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14711
+ * of them per episode, even through continuous crying. The measured maximum
14712
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14713
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14714
+ * the wrong question to ask of a sparse classifier.
14715
+ *
14716
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14717
+ * and the rule would fire on silence. The schema cannot express "exactly one
14718
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14719
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14720
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14453
14721
  *
14454
14722
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14455
14723
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14457,13 +14725,13 @@ var NcOccupancyConditionSchema = object({
14457
14725
  * an operator who typed `dog` mean the same thing.
14458
14726
  */
14459
14727
  var NcAudioConditionSchema = object({
14460
- /** Audio macro labels; absent = any sound (level-only rule). */
14728
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14461
14729
  labels: array(string().min(1)).min(1).optional(),
14462
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14730
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14463
14731
  dbThreshold: number().min(-96).max(0).optional(),
14464
- /** Percentage of the window's samples that must be hits (1–100). */
14732
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14465
14733
  hitPercent: number().int().min(1).max(100).default(60),
14466
- /** Length of the sampling window in seconds. */
14734
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14467
14735
  samplingSeconds: number().int().min(1).max(300).default(10)
14468
14736
  });
14469
14737
  /**
@@ -14601,13 +14869,81 @@ var NcRuleActionsSchema = object({
14601
14869
  */
14602
14870
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14603
14871
  });
14872
+ /**
14873
+ * "This rule applies only while `deviceId` is in one of `states`."
14874
+ *
14875
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14876
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14877
+ * make the condition lie about devices whose states have no equivalent.
14878
+ *
14879
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14880
+ * condition that fired on "I could not read it" would be worse than no gate.
14881
+ */
14882
+ var NcDeviceStateConditionSchema = object({
14883
+ deviceId: number().int(),
14884
+ /** Any of these matches. */
14885
+ states: array(string().min(1)).min(1)
14886
+ });
14887
+ /**
14888
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14889
+ *
14890
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14891
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14892
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14893
+ * already has a trigger ("tell me about a person at the front door, but only
14894
+ * while the bin is still out"). That is why it composes with every delivery
14895
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14896
+ * kind exist for it — see D159.
14897
+ *
14898
+ * ── Identity ───────────────────────────────────────────────────────────────
14899
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14900
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14901
+ * carried as a HINT for the editor and for the log line, never as part of the
14902
+ * lookup key: a rule whose hint drifted must still gate correctly.
14903
+ *
14904
+ * ── Which boolean ──────────────────────────────────────────────────────────
14905
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14906
+ * already declares which boolean drives notification rules, and a second knob
14907
+ * that could disagree with it is exactly the D62 failure. Set it only to
14908
+ * override one rule against the scene's own default.
14909
+ *
14910
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14911
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14912
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14913
+ * evidence, in either direction.
14914
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14915
+ * The latch is a durable fact about the past ("it has diverged since I armed
14916
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14917
+ * reason the operator asked for a latch.
14918
+ *
14919
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14920
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14921
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14922
+ * said out loud in the log rather than dropped in silence.
14923
+ */
14924
+ var NcSceneConditionSchema = object({
14925
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14926
+ sceneId: string().min(1),
14927
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14928
+ deviceId: number().int().optional(),
14929
+ /** The state the scene must be in for the rule to fire. */
14930
+ requiredState: _enum(["matched", "diverged"]),
14931
+ /**
14932
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14933
+ * scene's own `emit` field, which is the only place that decision belongs.
14934
+ */
14935
+ latched: boolean().optional()
14936
+ });
14604
14937
  var NcConditionsSchema = object({
14605
14938
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14606
- deviceState: object({
14607
- deviceId: number().int(),
14608
- /** Any of these matches. */
14609
- states: array(string().min(1)).min(1)
14610
- }).optional(),
14939
+ deviceState: NcDeviceStateConditionSchema.optional(),
14940
+ /**
14941
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14942
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14943
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14944
+ * {@link NcSceneCondition} and D159.
14945
+ */
14946
+ scene: NcSceneConditionSchema.optional(),
14611
14947
  /** Device scope — absent = all devices. */
14612
14948
  devices: array(number()).optional(),
14613
14949
  /** Detector class names (any overlap with the record's class set). */
@@ -14633,18 +14969,47 @@ var NcConditionsSchema = object({
14633
14969
  */
14634
14970
  labelEquals: array(string().min(1)).optional(),
14635
14971
  /**
14636
- * Identity matcher. P1 boundary: matched against the record's collapsed
14637
- * `label` (the identity display name propagated by the face pipeline) —
14638
- * identity-ID matching rides in P2 when identity ids reach the record.
14972
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14973
+ * is about recognised people at all.
14974
+ *
14975
+ * Three states, and the empty one is the point:
14976
+ *
14977
+ * | value | meaning |
14978
+ * | --- | --- |
14979
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14980
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14981
+ * | a list | only these identities |
14982
+ *
14983
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14984
+ * `devices` list is every device), applied one level down: the operator has
14985
+ * turned the face scope ON and narrowed it to nothing, which is every known
14986
+ * face. No second field states the same thing — a switch that can disagree
14987
+ * with the list under it is worse than no switch (D62).
14988
+ *
14989
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14990
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14991
+ * the operator fixed the spelling. The id reaches the record on
14992
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14993
+ * `{{label}}` renders.
14994
+ *
14995
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14996
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14997
+ * for is left as it stands and reported, never dropped. The engine also
14998
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14999
+ * migration could not resolve keeps matching exactly what it matched before.
14639
15000
  */
14640
15001
  identities: array(string().min(1)).optional(),
14641
- /** Fuzzy plate matcher against the record's `label` (plate text). */
15002
+ /**
15003
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
15004
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
15005
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
15006
+ */
14642
15007
  plates: NcPlateMatcherSchema.optional(),
14643
15008
  /**
14644
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14645
- * Same P1 boundary: matched against the record's collapsed `label` (the
14646
- * identity display name). A record with NO label passes (nothing to
14647
- * exclude), unlike the include variant which fails on an absent label.
15009
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
15010
+ * the same id members and the same lazy name→id migration. A record with NO
15011
+ * identity passes (nothing to exclude), unlike the include variant which
15012
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14648
15013
  */
14649
15014
  identitiesExclude: array(string().min(1)).optional(),
14650
15015
  /**
@@ -15036,7 +15401,80 @@ var NcRuleInputSchema = object({
15036
15401
  * a rule that predates the gate must keep delivering byte-for-byte as it
15037
15402
  * did, and absent is the only way to say that without a migration.
15038
15403
  */
15039
- confirm: NcConfirmSchema.optional()
15404
+ confirm: NcConfirmSchema.optional(),
15405
+ /**
15406
+ * WAIT for face/plate recognition before saying anything.
15407
+ *
15408
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15409
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15410
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15411
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15412
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15413
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15414
+ *
15415
+ * Only two honest answers exist, and this flag picks between them. It has
15416
+ * effect ONLY on a rule that declares a recognition scope
15417
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15418
+ * other rule there is nothing to wait for and the flag is inert.
15419
+ *
15420
+ * | value | what happens |
15421
+ * | --- | --- |
15422
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15423
+ * | 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) |
15424
+ *
15425
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15426
+ * on the addon cap path, and absent has to keep meaning exactly what every
15427
+ * rule authored before this field meant.
15428
+ *
15429
+ * The cost of `true` is stated here because the editor states it too: a rule
15430
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15431
+ * tests every zone the track visited and a `crossing` condition can no longer
15432
+ * be satisfied, because a closed track carries no crossing.
15433
+ */
15434
+ waitForEnhancement: boolean().optional(),
15435
+ /**
15436
+ * GROUP a burst of subjects into ONE notification that grows.
15437
+ *
15438
+ * Seconds of quiet after the last matching subject before the burst is
15439
+ * considered over. While it is open, the first subject enqueues immediately —
15440
+ * **exactly as today, with no added latency** — and every real growth (a new
15441
+ * subject, or a name confirmed on one already in it) REPLACES that
15442
+ * notification with an updated one naming everybody. The push carries the
15443
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15444
+ *
15445
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15446
+ *
15447
+ * ### Why an idle cutoff and not a window
15448
+ *
15449
+ * The measured seven-person arrival on device 590 spans 110 s with every
15450
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15451
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15452
+ * 30 is Frigate's shipped value for the same decision.
15453
+ *
15454
+ * ### What it replaces
15455
+ *
15456
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15457
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15458
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15459
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15460
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15461
+ * budget over GROUPS — which is what it always meant — and a growth is never
15462
+ * throttled by the window its own first member spent.
15463
+ *
15464
+ * ### Interaction with {@link waitForEnhancement}
15465
+ *
15466
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15467
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15468
+ * CLOSE — already carrying its name — and grows as later members close. That
15469
+ * is later, and complete. With grouping alone the group opens on the first
15470
+ * object event and picks up names as they are confirmed, through the growth
15471
+ * path. Neither combination fires twice for one subject.
15472
+ *
15473
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15474
+ * on the addon cap path, so absent must keep meaning what it meant before this
15475
+ * field existed.
15476
+ */
15477
+ groupIdleSec: number().int().min(0).max(600).optional()
15040
15478
  });
15041
15479
  /**
15042
15480
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15143,6 +15581,7 @@ var NcConditionDescriptorSchema = object({
15143
15581
  "occupancy",
15144
15582
  "audio",
15145
15583
  "deviceState",
15584
+ "scene",
15146
15585
  "systemEvent"
15147
15586
  ]),
15148
15587
  operator: _enum([
@@ -15548,7 +15987,87 @@ var MethodAccessSchema = _enum([
15548
15987
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15549
15988
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15550
15989
  var CapScopeSchema = _enum(["device", "system"]);
15551
- var TokenScopeSchema = discriminatedUnion("type", [
15990
+ /**
15991
+ * DeviceSelector (scope model v3 — 2026-08-12).
15992
+ *
15993
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15994
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15995
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15996
+ * AFTER the grant was minted — no re-grant, no re-login.
15997
+ *
15998
+ * - `all` — every device in the deployment. The broad viewer/operator
15999
+ * lever without a `category` grant (a `category` grant also covers device
16000
+ * caps that carry no deviceId; `all` is specifically the device set).
16001
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
16002
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
16003
+ * is NOT covered until the grant is edited.
16004
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
16005
+ * DYNAMIC. A device that changes type, or a new device of the type,
16006
+ * re-resolves on the next request.
16007
+ * - `locations` — every device whose operator-assigned `location` label is
16008
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
16009
+ * null/unset location matches NO `locations` selector.
16010
+ */
16011
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
16012
+ object({ kind: literal("all") }),
16013
+ object({
16014
+ kind: literal("ids"),
16015
+ ids: array(number().int()).min(1)
16016
+ }),
16017
+ object({
16018
+ kind: literal("types"),
16019
+ types: array(_enum(DeviceType)).min(1)
16020
+ }),
16021
+ object({
16022
+ kind: literal("locations"),
16023
+ locations: array(string().min(1)).min(1)
16024
+ })
16025
+ ]);
16026
+ var DeviceTokenScopeSchema = object({
16027
+ type: literal("device"),
16028
+ /** The device SET this grant covers — resolved against the live fleet. */
16029
+ selector: DeviceSelectorSchema,
16030
+ access: array(MethodAccessSchema).min(1),
16031
+ /**
16032
+ * Whether a grant on a PARENT device transparently covers its accessory
16033
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16034
+ * Direction is parent → children ONLY.
16035
+ *
16036
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16037
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16038
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16039
+ * operator must grant on the child, not inherit from the parent). Set it
16040
+ * explicitly to override that default per grant.
16041
+ */
16042
+ includeLinked: boolean().optional()
16043
+ });
16044
+ /**
16045
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16046
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16047
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16048
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16049
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16050
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16051
+ * migration cannot reach a JWT already in a client's hands; parse-time
16052
+ * migration covers both without a flag day. No cast — the raw object is read
16053
+ * through `Reflect.get` (its static type is `unknown`).
16054
+ */
16055
+ function migrateLegacyTokenScope(raw) {
16056
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16057
+ if (Reflect.get(raw, "type") !== "device") return raw;
16058
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16059
+ const targets = Reflect.get(raw, "targets");
16060
+ if (!Array.isArray(targets)) return raw;
16061
+ return {
16062
+ type: "device",
16063
+ selector: {
16064
+ kind: "ids",
16065
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16066
+ },
16067
+ access: Reflect.get(raw, "access")
16068
+ };
16069
+ }
16070
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15552
16071
  object({
15553
16072
  type: literal("category"),
15554
16073
  target: CapScopeSchema,
@@ -15564,18 +16083,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15564
16083
  target: string(),
15565
16084
  access: array(MethodAccessSchema).min(1)
15566
16085
  }),
15567
- object({
15568
- type: literal("device"),
15569
- /**
15570
- * One or more deviceIds (serialised as strings for wire-format
15571
- * consistency with the rest of the union). Matcher accepts if
15572
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15573
- * of one scope-per-device when granting access to a set of cameras.
15574
- */
15575
- targets: array(string()).min(1),
15576
- access: array(MethodAccessSchema).min(1)
15577
- })
15578
- ]);
16086
+ DeviceTokenScopeSchema
16087
+ ]));
15579
16088
  object({
15580
16089
  id: string(),
15581
16090
  username: string(),
@@ -15892,7 +16401,7 @@ var TrackEnvelopeSchema = object({
15892
16401
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15893
16402
  * keeps every scalar the list surfaces actually render (ids, class(es),
15894
16403
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15895
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16404
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15896
16405
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15897
16406
  * `getTrack`. Mirrors the event-store `projection` convention
15898
16407
  * (`getObjectEvents` et al.).
@@ -16028,7 +16537,21 @@ union([literal(1), literal(2)]);
16028
16537
  var LabelAttributionSchema = object({
16029
16538
  stepId: string(),
16030
16539
  modelId: string().optional(),
16031
- decidedAt: number()
16540
+ decidedAt: number(),
16541
+ /**
16542
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16543
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16544
+ *
16545
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16546
+ * notification rule authored on "Gianluca" stopped matching the moment the
16547
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16548
+ * the thing that does not move, so it is what a rule matches on
16549
+ * (`NcConditions.identities`) and the text is what a human is shown.
16550
+ *
16551
+ * Absent when the label names no gallery row — a plate the OCR read but no
16552
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16553
+ */
16554
+ identityId: string().optional()
16032
16555
  });
16033
16556
  /**
16034
16557
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16165,6 +16688,28 @@ var TrackSchema = object({
16165
16688
  * `=== true` and render nothing otherwise, never infer "no face".
16166
16689
  */
16167
16690
  hasFace: boolean().optional(),
16691
+ /**
16692
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16693
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16694
+ * so the passage is tracked once and as a VEHICLE.
16695
+ *
16696
+ * It exists because the fold's record was dishonest. D34 and the code both
16697
+ * said "the person is not lost — it is reported so both entities stay on the
16698
+ * record"; in fact the pair went into a per-processor RAM field behind an
16699
+ * accessor nobody called, and every durable surface said `vehicle`, full
16700
+ * stop. This is the composition note that makes the row true.
16701
+ *
16702
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16703
+ * person" is not an answer to "what is this" — both label tiers would refuse
16704
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16705
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16706
+ * and a `person` rule still does not fire for someone cycling past.
16707
+ *
16708
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16709
+ * the column, and every hub that predates the field, omits it. Test
16710
+ * `=== true` and render nothing otherwise — never infer "no rider".
16711
+ */
16712
+ hasRider: boolean().optional(),
16168
16713
  ...TrackFlagFields,
16169
16714
  ...TrackRetrainFields
16170
16715
  });
@@ -16514,7 +17059,10 @@ var RecentTracksQueryInput = object({
16514
17059
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16515
17060
  cursor: string().optional(),
16516
17061
  /** See {@link TrackProjectionSchema}. Default `full`. */
16517
- projection: TrackProjectionSchema.optional()
17062
+ projection: TrackProjectionSchema.optional(),
17063
+ /** Include stationary-promoted rows (parked objects). Default false: the
17064
+ * feed lists passages; parking records live on the stationary registry. */
17065
+ includeStationary: boolean().optional()
16518
17066
  });
16519
17067
  var RecentTracksPageSchema = object({
16520
17068
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16732,7 +17280,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16732
17280
  zone: TrackZoneFilterSchema.optional(),
16733
17281
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16734
17282
  * compatible — omitting the field keeps today's exact behaviour). */
16735
- projection: TrackProjectionSchema.optional()
17283
+ projection: TrackProjectionSchema.optional(),
17284
+ /** Include stationary-promoted rows (parked objects handed to the
17285
+ * stationary registry). Default false: the timeline lists passages,
17286
+ * not parking records (operator decision, 2026-08-15). */
17287
+ includeStationary: boolean().optional()
16736
17288
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16737
17289
  kind: "mutation",
16738
17290
  auth: "admin"
@@ -16896,11 +17448,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16896
17448
  auth: "admin"
16897
17449
  }), method(object({
16898
17450
  eventId: string(),
16899
- kind: MediaFileKindEnum.optional()
17451
+ kind: MediaFileKindEnum.optional(),
17452
+ deviceId: number()
16900
17453
  }), array(MediaFileSchema).readonly()), method(object({
16901
17454
  trackId: string(),
16902
- kinds: array(MediaFileKindEnum).optional()
16903
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17455
+ kinds: array(MediaFileKindEnum).optional(),
17456
+ deviceId: number()
17457
+ }), array(MediaFileSchema).readonly()), method(object({
17458
+ trackId: string(),
17459
+ deviceId: number()
17460
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16904
17461
  kind: "mutation",
16905
17462
  auth: "admin"
16906
17463
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17600,6 +18157,17 @@ var maxSessionHoldMsField = {
17600
18157
  default: 12e4,
17601
18158
  step: 5e3
17602
18159
  };
18160
+ /**
18161
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18162
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18163
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18164
+ */
18165
+ var audioMotionWindowMsField = {
18166
+ min: 5e3,
18167
+ max: 6e5,
18168
+ default: 9e4,
18169
+ step: 5e3
18170
+ };
17603
18171
  var motionFpsField = {
17604
18172
  min: 1,
17605
18173
  max: 30,
@@ -17631,7 +18199,7 @@ var detectionFpsField = {
17631
18199
  var occupancyRecheckSecField = {
17632
18200
  min: 0,
17633
18201
  max: 300,
17634
- default: 30,
18202
+ default: 300,
17635
18203
  step: 5
17636
18204
  };
17637
18205
  var occupancyRecheckFramesField = {
@@ -17776,6 +18344,27 @@ var RunnerCameraConfigSchema = object({
17776
18344
  * resolved `CameraDetectionConfig`.
17777
18345
  */
17778
18346
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18347
+ /**
18348
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18349
+ * 'on-motion'` audio window, measured from the LAST motion event.
18350
+ *
18351
+ * This exists because the falling edge cannot be relied on. Camera-native
18352
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18353
+ * its email-push SMTP path both emit `detected: true` and never the
18354
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18355
+ * onboard-only camera a window that closed only on `detected: false` never
18356
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18357
+ * battery camera, the one failure mode the mode exists to prevent.
18358
+ *
18359
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18360
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18361
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18362
+ *
18363
+ * Not consumed by the runner: carried here so it shares the per-camera
18364
+ * device-settings surface with `motionCooldownMs`, exactly like
18365
+ * `maxSessionHoldMs`.
18366
+ */
18367
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17779
18368
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17780
18369
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17781
18370
  motionStreamId: string(),
@@ -17871,7 +18460,7 @@ var RunnerCameraConfigSchema = object({
17871
18460
  */
17872
18461
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17873
18462
  });
17874
- 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;
18463
+ 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;
17875
18464
  /**
17876
18465
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17877
18466
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18904,6 +19493,39 @@ var snapshotCapability = {
18904
19493
  etag: string().nullable()
18905
19494
  }))),
18906
19495
  /**
19496
+ * The full decision chain for ONE device, for the viewer's debug readout —
19497
+ * the answer to "why does this tile show what it shows" in a single poll:
19498
+ * the battery slice the state was derived from, the resolved state + its
19499
+ * reason, the cached frame's identity/age, whether a wake window is open,
19500
+ * and whether a fresh capture is in flight. Cache-only and capture-free:
19501
+ * a debug read must never wake a battery camera.
19502
+ */
19503
+ getDebugState: systemMethod(object({ deviceId: number() }), object({
19504
+ /** The battery slice as read, or null when the device has none. */
19505
+ battery: object({
19506
+ sleeping: boolean(),
19507
+ lastUpdated: number(),
19508
+ lastContactAt: number().optional()
19509
+ }).nullable(),
19510
+ /** The resolved snapshot state (what the overlay decision used). */
19511
+ state: object({
19512
+ isBattery: boolean(),
19513
+ reason: _enum([
19514
+ "disabled",
19515
+ "sleeping",
19516
+ "unreachable",
19517
+ "waking"
19518
+ ]).nullable()
19519
+ }),
19520
+ /** The cached frame behind the next paint. */
19521
+ frame: object({
19522
+ capturedAt: number().nullable(),
19523
+ ageMs: number().nullable()
19524
+ }),
19525
+ /** A wake window is currently open (the Waking overlay's source). */
19526
+ waking: boolean()
19527
+ })),
19528
+ /**
18907
19529
  * Signed, expiring links to a CLIENT-SIZED frame — and the demand signal
18908
19530
  * that makes those frames current.
18909
19531
  *
@@ -18976,7 +19598,16 @@ targets: array(object({
18976
19598
  /** A sleeping battery camera: the frame is deliberately stale and will
18977
19599
  * NOT refresh in the background. A surface should say so rather than
18978
19600
  * present it as current. */
18979
- sleeping: boolean()
19601
+ sleeping: boolean(),
19602
+ /** Current device state rendered over the cached frame. State images
19603
+ * remain authoritative even when their photographic background is
19604
+ * old; null means the link must carry a current camera frame. */
19605
+ stateReason: _enum([
19606
+ "disabled",
19607
+ "sleeping",
19608
+ "unreachable",
19609
+ "waking"
19610
+ ]).nullable()
18980
19611
  })))
18981
19612
  },
18982
19613
  status: {
@@ -20679,6 +21310,25 @@ var BatteryStatusSchema = object({
20679
21310
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20680
21311
  lastUpdated: number(),
20681
21312
  /**
21313
+ * Ms epoch of the last time the device PROVED it was reachable — a
21314
+ * completed firmware round-trip, an observed wake, or an inbound push
21315
+ * (firmware event, email). `0`/absent = never since this slice was born.
21316
+ *
21317
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21318
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21319
+ * for the radio, because a poll that confirms reachability is the same
21320
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21321
+ * single derivation every consumer must use; no surface computes its own.
21322
+ *
21323
+ * It is deliberately NOT a clock in the
21324
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21325
+ * observation itself, and it is the only thing a 30-hour silence is
21326
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21327
+ * Reolink provider) so a value that means "recently" cannot cost a
21328
+ * SQLite commit per round-trip.
21329
+ */
21330
+ lastContactAt: number().optional(),
21331
+ /**
20682
21332
  * True when the source is a BINARY low-battery indicator (HA
20683
21333
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20684
21334
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22943,54 +23593,139 @@ var TalkAudioCodecSchema = _enum([
22943
23593
  "g711ulaw",
22944
23594
  "g711alaw"
22945
23595
  ]);
22946
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22947
- sessionId: string(),
22948
- sdpOffer: string()
22949
- }), {
22950
- kind: "mutation",
22951
- auth: "admin"
22952
- }), method(object({
22953
- deviceId: number(),
22954
- sessionId: string(),
22955
- sdpAnswer: string()
22956
- }), _void(), {
22957
- kind: "mutation",
22958
- auth: "admin"
22959
- }), method(object({
22960
- deviceId: number(),
22961
- sessionId: string()
22962
- }), _void(), {
22963
- kind: "mutation",
22964
- auth: "admin"
22965
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22966
- kind: "mutation",
22967
- auth: "admin"
22968
- }), method(object({
22969
- deviceId: number(),
22970
- /** Audio bytes for ONE frame, base64-encoded so the payload
22971
- * survives tRPC JSON serialization. */
22972
- audioBase64: string(),
22973
- /** Wire codec of the payload. Omit to let the provider default
22974
- * to its native expected format (s16le @ provider-native rate,
22975
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22976
- codec: TalkAudioCodecSchema.optional(),
22977
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22978
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22979
- sampleRate: number().int().positive().optional(),
22980
- /** Channel count. Default 1. */
22981
- channels: number().int().positive().optional(),
22982
- /** Sequence number for ordering / dropping out-of-order frames. */
22983
- sequenceNumber: number().int()
22984
- }), object({ accepted: boolean() }), {
22985
- kind: "mutation",
22986
- auth: "admin"
22987
- }), method(object({ deviceId: number() }), _void(), {
22988
- kind: "mutation",
22989
- auth: "admin"
22990
- }), object({
22991
- deviceId: number(),
22992
- status: IntercomStatusSchema
22993
- });
23596
+ var intercomCapability = {
23597
+ name: "intercom",
23598
+ scope: "device",
23599
+ deviceNative: true,
23600
+ mode: "singleton",
23601
+ deviceTypes: [DeviceType.Camera],
23602
+ methods: {
23603
+ /**
23604
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23605
+ * offer with a single sendonly audio m-line the client answers
23606
+ * (client → server direction). The server wakes battery cams
23607
+ * transparently before opening the upstream talk channel.
23608
+ */
23609
+ startSession: method(object({ deviceId: number() }), object({
23610
+ sessionId: string(),
23611
+ sdpOffer: string()
23612
+ }), {
23613
+ kind: "mutation",
23614
+ auth: "admin"
23615
+ }),
23616
+ handleAnswer: method(object({
23617
+ deviceId: number(),
23618
+ sessionId: string(),
23619
+ sdpAnswer: string()
23620
+ }), _void(), {
23621
+ kind: "mutation",
23622
+ auth: "admin"
23623
+ }),
23624
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23625
+ stopSession: method(object({
23626
+ deviceId: number(),
23627
+ sessionId: string()
23628
+ }), _void(), {
23629
+ kind: "mutation",
23630
+ auth: "admin"
23631
+ }),
23632
+ /**
23633
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23634
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23635
+ * harnesses) that already have decoded PCM frames and just need a
23636
+ * direct path onto the camera's talk channel. Mutually exclusive
23637
+ * with `startSession` (an active WebRTC session must be stopped
23638
+ * before a raw-PCM session can be opened on the same device, and
23639
+ * vice versa).
23640
+ */
23641
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23642
+ kind: "mutation",
23643
+ auth: "admin"
23644
+ }),
23645
+ /**
23646
+ * Push one chunk of talk-back audio onto the active talk session.
23647
+ * The cap is codec-agnostic: the caller declares (or omits) the
23648
+ * wire format via `codec`; the provider decides between passthrough
23649
+ * (when the wire codec matches the camera's native talk channel),
23650
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23651
+ *
23652
+ * Callers do NOT need to know the camera's wire format or sample
23653
+ * rate — that information lives entirely inside the provider.
23654
+ *
23655
+ * Sequence numbers MUST be monotonic per talk session; older frames
23656
+ * arriving after newer ones are dropped to avoid smearing the
23657
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23658
+ * predictor would corrupt with re-ordering).
23659
+ */
23660
+ pushTalkAudio: method(object({
23661
+ deviceId: number(),
23662
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23663
+ * survives tRPC JSON serialization. */
23664
+ audioBase64: string(),
23665
+ /** Wire codec of the payload. Omit to let the provider default
23666
+ * to its native expected format (s16le @ provider-native rate,
23667
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23668
+ codec: TalkAudioCodecSchema.optional(),
23669
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23670
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23671
+ sampleRate: number().int().positive().optional(),
23672
+ /** Channel count. Default 1. */
23673
+ channels: number().int().positive().optional(),
23674
+ /** Sequence number for ordering / dropping out-of-order frames. */
23675
+ sequenceNumber: number().int()
23676
+ }), object({ accepted: boolean() }), {
23677
+ kind: "mutation",
23678
+ auth: "admin"
23679
+ }),
23680
+ /** Close the raw-PCM talk session. Idempotent. */
23681
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23682
+ kind: "mutation",
23683
+ auth: "admin"
23684
+ })
23685
+ },
23686
+ events: { onStatusChanged: { data: object({
23687
+ deviceId: number(),
23688
+ status: IntercomStatusSchema
23689
+ }) } },
23690
+ status: {
23691
+ schema: IntercomStatusSchema,
23692
+ kind: "command-driven"
23693
+ },
23694
+ /**
23695
+ * Runtime-state slice — mirrored by the kernel.
23696
+ *
23697
+ * The cap declared `status` and nothing else, so the only two sources an
23698
+ * exporter has for a value — the `device.state-changed` slice event and the
23699
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23700
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23701
+ * have been published and never received a value, which is the defect the
23702
+ * export's two classification tables exist to prevent (177 of them, once), so
23703
+ * `intercom` was excluded rather than exported.
23704
+ *
23705
+ * The shape is the status shape: there is exactly one truth about talk-back
23706
+ * and duplicating it into a second schema is how two halves of one capability
23707
+ * come to disagree. Providers write it through
23708
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23709
+ * and close a session, and seed it at registration so the slice exists before
23710
+ * the first session rather than after it.
23711
+ *
23712
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23713
+ * session handle, so a session torn down by a transport death that never
23714
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23715
+ * session or the next restart. That is why the slice is `session` and not
23716
+ * `restored` — a restart must never restore "talking".
23717
+ */
23718
+ runtimeState: IntercomStatusSchema,
23719
+ /**
23720
+ * Runtime-state durability: **session** — `talking` describes a live audio
23721
+ * session, which by definition does not survive the process that held it.
23722
+ * Restoring it would publish a camera as talking to nobody.
23723
+ *
23724
+ * See `RuntimeStateDurability`. Enforced by
23725
+ * `scripts/check-runtime-state-durability.ts`.
23726
+ */
23727
+ durability: "session"
23728
+ };
22994
23729
  /**
22995
23730
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22996
23731
  * with a mowing lifecycle plus a dock action.
@@ -25687,7 +26422,7 @@ method(object({
25687
26422
  toMs: number()
25688
26423
  }), RecordingAvailabilitySchema, {
25689
26424
  kind: "query",
25690
- auth: "admin"
26425
+ auth: "protected"
25691
26426
  }), method(object({
25692
26427
  deviceId: number(),
25693
26428
  fromMs: number(),
@@ -25695,14 +26430,14 @@ method(object({
25695
26430
  tzOffsetMinutes: number()
25696
26431
  }), RecordingDaysSchema, {
25697
26432
  kind: "query",
25698
- auth: "admin"
26433
+ auth: "protected"
25699
26434
  }), method(object({
25700
26435
  deviceId: number(),
25701
26436
  fromMs: number(),
25702
26437
  toMs: number()
25703
26438
  }), RecordingManifestSchema, {
25704
26439
  kind: "query",
25705
- auth: "admin"
26440
+ auth: "protected"
25706
26441
  }), method(object({}), RecordingStorageUsageSchema, {
25707
26442
  kind: "query",
25708
26443
  auth: "admin"
@@ -25992,14 +26727,77 @@ method(object({
25992
26727
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25993
26728
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25994
26729
  *
25995
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25996
- * derives the device-detail contribution; the provider carries NO hand-written
25997
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25998
- * every hysteresis flip / availability change; consumers never poll.
25999
- */
26000
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
26001
- * be added without a wire break (matching falls back to any-condition refs). */
26730
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26731
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26732
+ * for the thing: a scene is a standing question about the property ("is the bin
26733
+ * still out"), and the operator's question is "which of my scenes have tripped",
26734
+ * across every camera at once — not "what does camera 617 think". Buried one
26735
+ * camera deep it also could not be found. The surface is now a top-level admin
26736
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26737
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26738
+ *
26739
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26740
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26741
+ * directions, so a registration nobody declares fails exactly as loudly as a
26742
+ * declaration nobody registers. The editor is imported directly by the page.
26743
+ *
26744
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26745
+ * availability change; consumers never poll.
26746
+ */
26747
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26748
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26749
+ * Open by design so more can be added without a wire break.
26750
+ *
26751
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26752
+ * not comparable, so "I have never seen this scene in this light" is reported
26753
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26754
+ * collapses the cosine and would latch a false alarm every single night. */
26002
26755
  var SceneConditionSchema = string();
26756
+ /**
26757
+ * What a scene does when the CURRENT light has no reference of its own.
26758
+ *
26759
+ * The lighting variants are not equally likely to exist. Almost every operator
26760
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26761
+ * scene that is only ever going to be asked about a daytime question ("is the
26762
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26763
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26764
+ * working without it rather than degrading into a permanent complaint.
26765
+ *
26766
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26767
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26768
+ * last covered light left it at, the latch is untouched, and the hysteresis
26769
+ * run is neither spent nor cleared. The scene resumes by itself at first
26770
+ * light. This is the only behaviour under which "I never captured IR" is a
26771
+ * configuration choice instead of a nightly fault.
26772
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26773
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26774
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26775
+ * cross-condition cosines are not comparable, so a day reference against a
26776
+ * true IR frame collapses and the scene reports a theft at 21:40.
26777
+ *
26778
+ * Never applies when the scene has NO comparable reference at all — that is
26779
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26780
+ * there would hide a scene the operator never finished setting up.
26781
+ */
26782
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26783
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26784
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26785
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26786
+ * and never counts toward hysteresis in either direction. */
26787
+ var SceneVerdictSchema = _enum([
26788
+ "matched",
26789
+ "diverged",
26790
+ "unknown"
26791
+ ]);
26792
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26793
+ * silence that reads as "nothing has happened". */
26794
+ var SceneUnavailableSchema = _enum([
26795
+ "no-reference-for-condition",
26796
+ "view-shifted",
26797
+ "no-vision-profile",
26798
+ "encoder-model-changed",
26799
+ "no-snapshot"
26800
+ ]);
26003
26801
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
26004
26802
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
26005
26803
  var SceneReferenceSchema = object({
@@ -26007,7 +26805,14 @@ var SceneReferenceSchema = object({
26007
26805
  modelId: string(),
26008
26806
  condition: SceneConditionSchema,
26009
26807
  capturedAt: number(),
26010
- thumbnailMediaId: string().optional()
26808
+ thumbnailMediaId: string().optional(),
26809
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26810
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26811
+ * normalized rect frame a different piece of world, and the scene would
26812
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26813
+ * when hysteresis is about to flip — one extra encode per candidate
26814
+ * transition, not per poll. */
26815
+ anchorEmbedding: array(number()).optional()
26011
26816
  });
26012
26817
  var SceneMonitorStateSchema = object({
26013
26818
  id: string(),
@@ -26029,6 +26834,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26029
26834
  profileId: string().optional(),
26030
26835
  hysteresisCount: number().int().positive()
26031
26836
  })]);
26837
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26838
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26839
+ * out in silence rather than reporting a fault every night. */
26840
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26841
+ /**
26842
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26843
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26844
+ *
26845
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26846
+ * fail-open: a notification suppressed is the worse error there, but a vision
26847
+ * model that timed out has not told us the bin is gone, and a latch is a
26848
+ * stateful claim that costs the operator a trip to reset.
26849
+ */
26850
+ var SceneConfirmSchema = object({
26851
+ enabled: boolean().default(false),
26852
+ prompt: string().min(1).max(1e3),
26853
+ profileId: string().optional(),
26854
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26855
+ maxImagePx: number().int().min(64).max(2048).default(448),
26856
+ /** What a timeout / unavailable model means for the PENDING flip. */
26857
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26858
+ });
26032
26859
  var SceneMonitorSchema = object({
26033
26860
  id: string(),
26034
26861
  label: string(),
@@ -26047,7 +26874,56 @@ var SceneMonitorSchema = object({
26047
26874
  lastConfidence: number().nullable(),
26048
26875
  currentCondition: SceneConditionSchema.nullable(),
26049
26876
  availability: _enum(["ok", "unavailable"]),
26050
- unavailableReason: string().nullable()
26877
+ unavailableReason: string().nullable(),
26878
+ /** Which state is "the initial screen". `null` until the first capture. */
26879
+ baselineStateId: string().nullable(),
26880
+ /** Which boolean drives notification rules and any export. */
26881
+ emit: _enum(["latched", "live"]).default("latched"),
26882
+ /** Live: does the region match the baseline RIGHT NOW. */
26883
+ verdict: SceneVerdictSchema,
26884
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26885
+ latched: boolean(),
26886
+ /** Last reset (or creation). */
26887
+ armedAt: number(),
26888
+ divergedAt: number().nullable(),
26889
+ restoredAt: number().nullable(),
26890
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26891
+ * during the window DISCARDS the observation — a car pulling up in front of
26892
+ * the bin must not be able to spend hysteresis credit. */
26893
+ quietSeconds: number().int().min(0).max(3600).default(60),
26894
+ /** An observation only advances the pending count when it is at least this
26895
+ * far from the previously counted one, so N agreeing checks span real time
26896
+ * rather than N adjacent polls inside one occlusion. */
26897
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26898
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26899
+ confirm: SceneConfirmSchema.optional(),
26900
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26901
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26902
+ /** Clear the latch on its own when the scene matches again? Default false —
26903
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26904
+ * automation can react to the bin coming back without the operator's own
26905
+ * alarm silently clearing itself. */
26906
+ autoRestore: boolean().default(false),
26907
+ /** What to do when the current light has no reference of its own. See
26908
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26909
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26910
+ /**
26911
+ * The light whose checks are currently being SAT OUT under
26912
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26913
+ *
26914
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26915
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26916
+ * nothing captured in this light"* in the same calm voice as the coverage
26917
+ * line, because the alternative is a scene that silently stops answering
26918
+ * after sunset with nothing anywhere saying why. A skipped check must never
26919
+ * read as a broken one.
26920
+ */
26921
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26922
+ /** Named cause when `verdict === 'unknown'`. */
26923
+ unavailable: SceneUnavailableSchema.nullable(),
26924
+ /** Conditions that have at least one comparable reference — the coverage line
26925
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26926
+ coveredConditions: array(SceneConditionSchema)
26051
26927
  });
26052
26928
  var SceneMonitorStatusSchema = object({
26053
26929
  monitors: array(SceneMonitorSchema),
@@ -26060,12 +26936,6 @@ var sceneMonitorCapability = {
26060
26936
  kind: "wrapper",
26061
26937
  defaultActive: true,
26062
26938
  deviceTypes: [DeviceType.Camera],
26063
- deviceConfig: { ui: {
26064
- kind: "widget",
26065
- widgetId: "host/scene-monitor-editor",
26066
- tab: "scenes",
26067
- label: "Scenes"
26068
- } },
26069
26939
  methods: {
26070
26940
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26071
26941
  createScene: method(object({
@@ -26096,7 +26966,15 @@ var sceneMonitorCapability = {
26096
26966
  "both"
26097
26967
  ]).optional(),
26098
26968
  checkIntervalSec: number().optional(),
26099
- check: SceneCheckSchema.optional()
26969
+ check: SceneCheckSchema.optional(),
26970
+ emit: _enum(["latched", "live"]).optional(),
26971
+ quietSeconds: number().int().min(0).max(3600).optional(),
26972
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26973
+ anchorThreshold: number().min(0).max(1).optional(),
26974
+ autoRestore: boolean().optional(),
26975
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26976
+ /** `null` clears the vision-model adjudicator. */
26977
+ confirm: SceneConfirmSchema.nullable().optional()
26100
26978
  })
26101
26979
  }), _void(), {
26102
26980
  kind: "mutation",
@@ -26137,6 +27015,26 @@ var sceneMonitorCapability = {
26137
27015
  }), _void(), {
26138
27016
  kind: "mutation",
26139
27017
  auth: "admin"
27018
+ }),
27019
+ /**
27020
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
27021
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
27022
+ * "reset" in the operator's head means *this is the new normal*, and
27023
+ * re-capture is what makes the feature self-healing against slow drift
27024
+ * instead of failing silently weeks later.
27025
+ *
27026
+ * Reachable from three surfaces on this one mutation: the scene card, a
27027
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27028
+ * no new Notification-Center code at all), and tRPC for scripts.
27029
+ */
27030
+ resetScene: method(object({
27031
+ deviceId: number(),
27032
+ monitorId: string(),
27033
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27034
+ recapture: boolean().optional()
27035
+ }), _void(), {
27036
+ kind: "mutation",
27037
+ auth: "admin"
26140
27038
  })
26141
27039
  },
26142
27040
  status: {
@@ -26379,13 +27277,63 @@ var CamStreamDescriptorSchema = object({
26379
27277
  * set of stream descriptors it can offer for the device, synchronously, so the
26380
27278
  * broker can reconcile its registry against the authoritative provider state.
26381
27279
  */
27280
+ /**
27281
+ * The catalog as a DURABLE fact rather than a live answer.
27282
+ *
27283
+ * A battery camera's descriptors are profile-stable — they change when the
27284
+ * operator rewrites an encoder profile, not minute to minute — but building
27285
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27286
+ * provider is allowed to build them exactly once per profile and must serve
27287
+ * every later pull from a cache.
27288
+ *
27289
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27290
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27291
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27292
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27293
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27294
+ * which on a battery cam is most of the day. The camera was fine. The stream
27295
+ * was unreachable because the process had forgotten what the camera offers.
27296
+ *
27297
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27298
+ * declared collection, with the same `restored` durability `battery` uses for
27299
+ * the same reason: the last known value is the only value there is while the
27300
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27301
+ * is the DIAL that wakes a camera, never the catalog (D173).
27302
+ */
27303
+ var StreamCatalogStateSchema = object({
27304
+ /** The descriptors as last built from a real camera response. Never a guess:
27305
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27306
+ * one the camera itself once produced. */
27307
+ descriptors: array(CamStreamDescriptorSchema),
27308
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27309
+ * path decide whether the camera's own awake window is worth spending on a
27310
+ * re-read. */
27311
+ lastFetchedAt: number()
27312
+ });
26382
27313
  var streamCatalogCapability = {
26383
27314
  name: "stream-catalog",
26384
27315
  scope: "device",
26385
27316
  deviceNative: true,
26386
27317
  mode: "singleton",
26387
27318
  deviceTypes: [DeviceType.Camera],
26388
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
27319
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27320
+ runtimeState: StreamCatalogStateSchema,
27321
+ /**
27322
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27323
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27324
+ * camera that cannot be watched at all until it happens to wake.
27325
+ *
27326
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27327
+ * build, and a build only runs when there is no cached copy (or the copy is
27328
+ * a day old and the camera is awake anyway).
27329
+ *
27330
+ * See `RuntimeStateDurability`. Enforced by
27331
+ * `scripts/check-runtime-state-durability.ts`.
27332
+ */
27333
+ durability: "restored",
27334
+ /** Clock field: written, but excluded from the compare that decides whether
27335
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27336
+ volatileStateFields: ["lastFetchedAt"]
26389
27337
  };
26390
27338
  /** One of the camera's stream profiles. */
26391
27339
  var StreamProfileSchema = _enum([
@@ -26640,12 +27588,64 @@ var NetworkAddressSchema = object({
26640
27588
  family: string(),
26641
27589
  internal: boolean()
26642
27590
  });
27591
+ /**
27592
+ * Provenance of the site coordinates, and the whole reason this is not just two
27593
+ * numbers.
27594
+ *
27595
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27596
+ * nothing overwrites it.
27597
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27598
+ * default that is right to a few kilometres beats the coarse UTC clock split
27599
+ * the sun-times consumers otherwise fall back to.
27600
+ *
27601
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27602
+ * own input will eventually trust the guess.
27603
+ */
27604
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27605
+ /**
27606
+ * The read shape: the location plus the honest state of the one-shot derivation.
27607
+ *
27608
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27609
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27610
+ * failed; the hub will NOT try again on its own — the fallback is declared
27611
+ * (consumers degrade to their own last resort) and the operator either types the
27612
+ * coordinates or presses detect.
27613
+ */
27614
+ var SiteLocationStatusSchema = object({
27615
+ location: object({
27616
+ /** WGS84 decimal degrees. */
27617
+ latitude: number().min(-90).max(90),
27618
+ longitude: number().min(-180).max(180),
27619
+ source: SiteLocationSourceSchema,
27620
+ /** Epoch ms the value was last written. */
27621
+ updatedAt: number(),
27622
+ /**
27623
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27624
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27625
+ */
27626
+ label: string().optional()
27627
+ }).nullable(),
27628
+ derivationAttemptedAt: number().nullable(),
27629
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27630
+ derivationError: string().nullable()
27631
+ });
27632
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27633
+ var SetSiteLocationInputSchema = object({
27634
+ latitude: number().min(-90).max(90),
27635
+ longitude: number().min(-180).max(180)
27636
+ }).nullable();
26643
27637
  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(), {
26644
27638
  kind: "mutation",
26645
27639
  auth: "admin"
26646
27640
  }), method(_void(), _void(), {
26647
27641
  kind: "mutation",
26648
27642
  auth: "admin"
27643
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27644
+ kind: "mutation",
27645
+ auth: "admin"
27646
+ }), method(_void(), SiteLocationStatusSchema, {
27647
+ kind: "mutation",
27648
+ auth: "admin"
26649
27649
  });
26650
27650
  /**
26651
27651
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27965,6 +28965,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27965
28965
  humiditySensor: humiditySensorCapability,
27966
28966
  image: imageCapability,
27967
28967
  imageSettings: imageSettingsCapability,
28968
+ intercom: intercomCapability,
27968
28969
  lawnMowerControl: lawnMowerControlCapability,
27969
28970
  lockControl: lockControlCapability,
27970
28971
  mediaPlayer: mediaPlayerCapability,
@@ -27983,6 +28984,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27983
28984
  sceneMonitor: sceneMonitorCapability,
27984
28985
  scriptRunner: scriptRunnerCapability,
27985
28986
  smoke: smokeCapability,
28987
+ streamCatalog: streamCatalogCapability,
27986
28988
  streamParams: streamParamsCapability,
27987
28989
  switch: switchCapability,
27988
28990
  tamper: tamperCapability,
@@ -30779,6 +31781,12 @@ Object.freeze({
30779
31781
  addonId: null,
30780
31782
  access: "create"
30781
31783
  },
31784
+ "llm.cancel": {
31785
+ capName: "llm",
31786
+ capScope: "system",
31787
+ addonId: null,
31788
+ access: "create"
31789
+ },
30782
31790
  "llm.deleteModel": {
30783
31791
  capName: "llm",
30784
31792
  capScope: "system",
@@ -30863,6 +31871,12 @@ Object.freeze({
30863
31871
  addonId: null,
30864
31872
  access: "view"
30865
31873
  },
31874
+ "llm.resolveModelRef": {
31875
+ capName: "llm",
31876
+ capScope: "system",
31877
+ addonId: null,
31878
+ access: "create"
31879
+ },
30866
31880
  "llm.setDefault": {
30867
31881
  capName: "llm",
30868
31882
  capScope: "system",
@@ -33029,6 +34043,12 @@ Object.freeze({
33029
34043
  addonId: null,
33030
34044
  access: "create"
33031
34045
  },
34046
+ "sceneMonitor.resetScene": {
34047
+ capName: "scene-monitor",
34048
+ capScope: "device",
34049
+ addonId: null,
34050
+ access: "delete"
34051
+ },
33032
34052
  "sceneMonitor.updateScene": {
33033
34053
  capName: "scene-monitor",
33034
34054
  capScope: "device",
@@ -33167,6 +34187,12 @@ Object.freeze({
33167
34187
  addonId: null,
33168
34188
  access: "view"
33169
34189
  },
34190
+ "snapshot.getDebugState": {
34191
+ capName: "snapshot",
34192
+ capScope: "device",
34193
+ addonId: null,
34194
+ access: "view"
34195
+ },
33170
34196
  "snapshot.getSnapshot": {
33171
34197
  capName: "snapshot",
33172
34198
  capScope: "device",
@@ -33707,6 +34733,12 @@ Object.freeze({
33707
34733
  addonId: null,
33708
34734
  access: "create"
33709
34735
  },
34736
+ "system.detectSiteLocation": {
34737
+ capName: "system",
34738
+ capScope: "system",
34739
+ addonId: null,
34740
+ access: "create"
34741
+ },
33710
34742
  "system.featureFlags": {
33711
34743
  capName: "system",
33712
34744
  capScope: "system",
@@ -33725,6 +34757,12 @@ Object.freeze({
33725
34757
  addonId: null,
33726
34758
  access: "view"
33727
34759
  },
34760
+ "system.getSiteLocation": {
34761
+ capName: "system",
34762
+ capScope: "system",
34763
+ addonId: null,
34764
+ access: "view"
34765
+ },
33728
34766
  "system.health": {
33729
34767
  capName: "system",
33730
34768
  capScope: "system",
@@ -33749,6 +34787,12 @@ Object.freeze({
33749
34787
  addonId: null,
33750
34788
  access: "create"
33751
34789
  },
34790
+ "system.setSiteLocation": {
34791
+ capName: "system",
34792
+ capScope: "system",
34793
+ addonId: null,
34794
+ access: "create"
34795
+ },
33752
34796
  "terminalSession.adoptLegacyMonitor": {
33753
34797
  capName: "terminal-session",
33754
34798
  capScope: "system",
@@ -34320,6 +35364,1709 @@ Object.freeze({
34320
35364
  access: "create"
34321
35365
  }
34322
35366
  });
35367
+ Object.freeze({
35368
+ "accessories.setChildHidden": [{
35369
+ name: "childDeviceId",
35370
+ form: "single",
35371
+ optional: false
35372
+ }, {
35373
+ name: "deviceId",
35374
+ form: "single",
35375
+ optional: false
35376
+ }],
35377
+ "addonSettings.getDeviceSettings": [{
35378
+ name: "deviceId",
35379
+ form: "single",
35380
+ optional: false
35381
+ }],
35382
+ "addonSettings.updateDeviceSettings": [{
35383
+ name: "deviceId",
35384
+ form: "single",
35385
+ optional: false
35386
+ }],
35387
+ "alarmPanel.arm": [{
35388
+ name: "deviceId",
35389
+ form: "single",
35390
+ optional: false
35391
+ }],
35392
+ "alarmPanel.disarm": [{
35393
+ name: "deviceId",
35394
+ form: "single",
35395
+ optional: false
35396
+ }],
35397
+ "alarmPanel.trigger": [{
35398
+ name: "deviceId",
35399
+ form: "single",
35400
+ optional: false
35401
+ }],
35402
+ "audioAnalysis.resolveDeviceSettings": [{
35403
+ name: "deviceId",
35404
+ form: "single",
35405
+ optional: false
35406
+ }],
35407
+ "audioAnalyzer.classify": [{
35408
+ name: "deviceId",
35409
+ form: "single",
35410
+ optional: true
35411
+ }],
35412
+ "audioMetrics.getCurrentSnapshot": [{
35413
+ name: "deviceId",
35414
+ form: "single",
35415
+ optional: false
35416
+ }],
35417
+ "audioMetrics.getHistory": [{
35418
+ name: "deviceId",
35419
+ form: "single",
35420
+ optional: false
35421
+ }],
35422
+ "automationControl.disable": [{
35423
+ name: "deviceId",
35424
+ form: "single",
35425
+ optional: false
35426
+ }],
35427
+ "automationControl.enable": [{
35428
+ name: "deviceId",
35429
+ form: "single",
35430
+ optional: false
35431
+ }],
35432
+ "automationControl.trigger": [{
35433
+ name: "deviceId",
35434
+ form: "single",
35435
+ optional: false
35436
+ }],
35437
+ "battery.wakeForStream": [{
35438
+ name: "deviceId",
35439
+ form: "single",
35440
+ optional: false
35441
+ }],
35442
+ "brightness.setBrightness": [{
35443
+ name: "deviceId",
35444
+ form: "single",
35445
+ optional: false
35446
+ }],
35447
+ "button.press": [{
35448
+ name: "deviceId",
35449
+ form: "single",
35450
+ optional: false
35451
+ }],
35452
+ "cameraCredentials.getCredentials": [{
35453
+ name: "deviceId",
35454
+ form: "single",
35455
+ optional: false
35456
+ }],
35457
+ "cameraStreams.getBrokerStreams": [{
35458
+ name: "deviceId",
35459
+ form: "single",
35460
+ optional: false
35461
+ }],
35462
+ "cameraStreams.getCameraStreams": [{
35463
+ name: "deviceId",
35464
+ form: "single",
35465
+ optional: false
35466
+ }],
35467
+ "cameraStreams.getProfileRtspEntries": [{
35468
+ name: "deviceId",
35469
+ form: "single",
35470
+ optional: false
35471
+ }],
35472
+ "cameraStreams.getRtspEntries": [{
35473
+ name: "deviceId",
35474
+ form: "single",
35475
+ optional: false
35476
+ }],
35477
+ "cameraStreams.pickStream": [{
35478
+ name: "deviceId",
35479
+ form: "single",
35480
+ optional: false
35481
+ }],
35482
+ "climateControl.setFanMode": [{
35483
+ name: "deviceId",
35484
+ form: "single",
35485
+ optional: false
35486
+ }],
35487
+ "climateControl.setMode": [{
35488
+ name: "deviceId",
35489
+ form: "single",
35490
+ optional: false
35491
+ }],
35492
+ "climateControl.setPreset": [{
35493
+ name: "deviceId",
35494
+ form: "single",
35495
+ optional: false
35496
+ }],
35497
+ "climateControl.setSwingHorizontal": [{
35498
+ name: "deviceId",
35499
+ form: "single",
35500
+ optional: false
35501
+ }],
35502
+ "climateControl.setSwingVertical": [{
35503
+ name: "deviceId",
35504
+ form: "single",
35505
+ optional: false
35506
+ }],
35507
+ "climateControl.setTarget": [{
35508
+ name: "deviceId",
35509
+ form: "single",
35510
+ optional: false
35511
+ }],
35512
+ "climateControl.setTargetHumidity": [{
35513
+ name: "deviceId",
35514
+ form: "single",
35515
+ optional: false
35516
+ }],
35517
+ "climateControl.setTargetRange": [{
35518
+ name: "deviceId",
35519
+ form: "single",
35520
+ optional: false
35521
+ }],
35522
+ "color.setColor": [{
35523
+ name: "deviceId",
35524
+ form: "single",
35525
+ optional: false
35526
+ }],
35527
+ "consumables.reset": [{
35528
+ name: "deviceId",
35529
+ form: "single",
35530
+ optional: false
35531
+ }],
35532
+ "control.setValue": [{
35533
+ name: "deviceId",
35534
+ form: "single",
35535
+ optional: false
35536
+ }],
35537
+ "cover.close": [{
35538
+ name: "deviceId",
35539
+ form: "single",
35540
+ optional: false
35541
+ }],
35542
+ "cover.open": [{
35543
+ name: "deviceId",
35544
+ form: "single",
35545
+ optional: false
35546
+ }],
35547
+ "cover.setPosition": [{
35548
+ name: "deviceId",
35549
+ form: "single",
35550
+ optional: false
35551
+ }],
35552
+ "cover.setTiltPosition": [{
35553
+ name: "deviceId",
35554
+ form: "single",
35555
+ optional: false
35556
+ }],
35557
+ "cover.stop": [{
35558
+ name: "deviceId",
35559
+ form: "single",
35560
+ optional: false
35561
+ }],
35562
+ "dayNight.getOptions": [{
35563
+ name: "deviceId",
35564
+ form: "single",
35565
+ optional: false
35566
+ }],
35567
+ "dayNight.setSettings": [{
35568
+ name: "deviceId",
35569
+ form: "single",
35570
+ optional: false
35571
+ }],
35572
+ "decoder.createSession": [{
35573
+ name: "deviceId",
35574
+ form: "single",
35575
+ optional: true
35576
+ }],
35577
+ "deviceAdoption.release": [{
35578
+ name: "camDeviceId",
35579
+ form: "single",
35580
+ optional: false
35581
+ }],
35582
+ "deviceAdoption.resync": [{
35583
+ name: "camDeviceId",
35584
+ form: "single",
35585
+ optional: false
35586
+ }],
35587
+ "deviceDiscovery.adoptDevice": [{
35588
+ name: "deviceId",
35589
+ form: "single",
35590
+ optional: false
35591
+ }],
35592
+ "deviceDiscovery.listDiscovered": [{
35593
+ name: "deviceId",
35594
+ form: "single",
35595
+ optional: false
35596
+ }],
35597
+ "deviceDiscovery.refreshDiscovery": [{
35598
+ name: "deviceId",
35599
+ form: "single",
35600
+ optional: false
35601
+ }],
35602
+ "deviceDiscovery.releaseDevice": [{
35603
+ name: "childDeviceId",
35604
+ form: "single",
35605
+ optional: false
35606
+ }, {
35607
+ name: "deviceId",
35608
+ form: "single",
35609
+ optional: false
35610
+ }],
35611
+ "deviceManager.adoptionRelease": [{
35612
+ name: "camDeviceId",
35613
+ form: "single",
35614
+ optional: false
35615
+ }],
35616
+ "deviceManager.adoptionResync": [{
35617
+ name: "camDeviceId",
35618
+ form: "single",
35619
+ optional: false
35620
+ }],
35621
+ "deviceManager.applyInitialMeta": [{
35622
+ name: "deviceId",
35623
+ form: "single",
35624
+ optional: false
35625
+ }, {
35626
+ name: "linkDeviceId",
35627
+ form: "single",
35628
+ optional: true
35629
+ }],
35630
+ "deviceManager.disable": [{
35631
+ name: "deviceId",
35632
+ form: "single",
35633
+ optional: false
35634
+ }],
35635
+ "deviceManager.enable": [{
35636
+ name: "deviceId",
35637
+ form: "single",
35638
+ optional: false
35639
+ }],
35640
+ "deviceManager.getBindings": [{
35641
+ name: "deviceId",
35642
+ form: "single",
35643
+ optional: false
35644
+ }],
35645
+ "deviceManager.getChildren": [{
35646
+ name: "parentDeviceId",
35647
+ form: "single",
35648
+ optional: false
35649
+ }],
35650
+ "deviceManager.getConfigSchema": [{
35651
+ name: "deviceId",
35652
+ form: "single",
35653
+ optional: false
35654
+ }],
35655
+ "deviceManager.getDevice": [{
35656
+ name: "deviceId",
35657
+ form: "single",
35658
+ optional: false
35659
+ }],
35660
+ "deviceManager.getDeviceAggregate": [{
35661
+ name: "deviceId",
35662
+ form: "single",
35663
+ optional: false
35664
+ }],
35665
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35666
+ name: "deviceId",
35667
+ form: "single",
35668
+ optional: false
35669
+ }],
35670
+ "deviceManager.getDeviceSettingsAggregate": [{
35671
+ name: "deviceId",
35672
+ form: "single",
35673
+ optional: false
35674
+ }],
35675
+ "deviceManager.getDeviceStatusAggregate": [{
35676
+ name: "deviceId",
35677
+ form: "single",
35678
+ optional: false
35679
+ }],
35680
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35681
+ name: "deviceIds",
35682
+ form: "array",
35683
+ optional: false
35684
+ }],
35685
+ "deviceManager.getLinkedDevices": [{
35686
+ name: "deviceId",
35687
+ form: "single",
35688
+ optional: false
35689
+ }],
35690
+ "deviceManager.getSettingsSchema": [{
35691
+ name: "deviceId",
35692
+ form: "single",
35693
+ optional: false
35694
+ }],
35695
+ "deviceManager.getStreamProfileMap": [{
35696
+ name: "deviceId",
35697
+ form: "single",
35698
+ optional: false
35699
+ }],
35700
+ "deviceManager.getStreamSources": [{
35701
+ name: "deviceId",
35702
+ form: "single",
35703
+ optional: false
35704
+ }],
35705
+ "deviceManager.getWireableFields": [{
35706
+ name: "deviceId",
35707
+ form: "single",
35708
+ optional: false
35709
+ }],
35710
+ "deviceManager.loadConfig": [{
35711
+ name: "deviceId",
35712
+ form: "single",
35713
+ optional: false
35714
+ }],
35715
+ "deviceManager.loadMeta": [{
35716
+ name: "deviceId",
35717
+ form: "single",
35718
+ optional: false
35719
+ }],
35720
+ "deviceManager.loadRuntimeState": [{
35721
+ name: "deviceId",
35722
+ form: "single",
35723
+ optional: false
35724
+ }],
35725
+ "deviceManager.persistConfig": [{
35726
+ name: "deviceId",
35727
+ form: "single",
35728
+ optional: false
35729
+ }],
35730
+ "deviceManager.probeStreams": [{
35731
+ name: "deviceId",
35732
+ form: "single",
35733
+ optional: false
35734
+ }],
35735
+ "deviceManager.registerDevice": [{
35736
+ name: "parentDeviceId",
35737
+ form: "single",
35738
+ optional: true
35739
+ }],
35740
+ "deviceManager.remove": [{
35741
+ name: "deviceId",
35742
+ form: "single",
35743
+ optional: false
35744
+ }],
35745
+ "deviceManager.removeDevice": [{
35746
+ name: "deviceId",
35747
+ form: "single",
35748
+ optional: false
35749
+ }],
35750
+ "deviceManager.runDeviceAction": [{
35751
+ name: "deviceId",
35752
+ form: "single",
35753
+ optional: false
35754
+ }],
35755
+ "deviceManager.setChildLayout": [{
35756
+ name: "deviceId",
35757
+ form: "single",
35758
+ optional: false
35759
+ }],
35760
+ "deviceManager.setDisabled": [{
35761
+ name: "deviceId",
35762
+ form: "single",
35763
+ optional: false
35764
+ }],
35765
+ "deviceManager.setDisplay": [{
35766
+ name: "deviceId",
35767
+ form: "single",
35768
+ optional: false
35769
+ }],
35770
+ "deviceManager.setIntegrationId": [{
35771
+ name: "deviceId",
35772
+ form: "single",
35773
+ optional: false
35774
+ }],
35775
+ "deviceManager.setLinkDeviceId": [{
35776
+ name: "deviceId",
35777
+ form: "single",
35778
+ optional: false
35779
+ }, {
35780
+ name: "linkDeviceId",
35781
+ form: "single",
35782
+ optional: true
35783
+ }],
35784
+ "deviceManager.setLocation": [{
35785
+ name: "deviceId",
35786
+ form: "single",
35787
+ optional: false
35788
+ }],
35789
+ "deviceManager.setMetadata": [{
35790
+ name: "deviceId",
35791
+ form: "single",
35792
+ optional: false
35793
+ }],
35794
+ "deviceManager.setName": [{
35795
+ name: "deviceId",
35796
+ form: "single",
35797
+ optional: false
35798
+ }],
35799
+ "deviceManager.setPrimaryChildEntityId": [{
35800
+ name: "deviceId",
35801
+ form: "single",
35802
+ optional: false
35803
+ }],
35804
+ "deviceManager.setRole": [{
35805
+ name: "deviceId",
35806
+ form: "single",
35807
+ optional: false
35808
+ }],
35809
+ "deviceManager.setStreamProfileMap": [{
35810
+ name: "deviceId",
35811
+ form: "single",
35812
+ optional: false
35813
+ }],
35814
+ "deviceManager.setType": [{
35815
+ name: "deviceId",
35816
+ form: "single",
35817
+ optional: false
35818
+ }],
35819
+ "deviceManager.setWrapperActive": [{
35820
+ name: "deviceId",
35821
+ form: "single",
35822
+ optional: false
35823
+ }],
35824
+ "deviceManager.testField": [{
35825
+ name: "deviceId",
35826
+ form: "single",
35827
+ optional: false
35828
+ }],
35829
+ "deviceManager.updateConfig": [{
35830
+ name: "deviceId",
35831
+ form: "single",
35832
+ optional: false
35833
+ }],
35834
+ "deviceManager.updateDeviceField": [{
35835
+ name: "deviceId",
35836
+ form: "single",
35837
+ optional: false
35838
+ }],
35839
+ "deviceManager.updateDeviceFieldsBatch": [{
35840
+ name: "deviceId",
35841
+ form: "single",
35842
+ optional: false
35843
+ }],
35844
+ "deviceOps.getConfigEntries": [{
35845
+ name: "deviceId",
35846
+ form: "single",
35847
+ optional: false
35848
+ }],
35849
+ "deviceOps.getRawState": [{
35850
+ name: "deviceId",
35851
+ form: "single",
35852
+ optional: false
35853
+ }],
35854
+ "deviceOps.getSettingsSchema": [{
35855
+ name: "deviceId",
35856
+ form: "single",
35857
+ optional: false
35858
+ }],
35859
+ "deviceOps.getStreamSources": [{
35860
+ name: "deviceId",
35861
+ form: "single",
35862
+ optional: false
35863
+ }],
35864
+ "deviceOps.removeDevice": [{
35865
+ name: "deviceId",
35866
+ form: "single",
35867
+ optional: false
35868
+ }],
35869
+ "deviceOps.runAction": [{
35870
+ name: "deviceId",
35871
+ form: "single",
35872
+ optional: false
35873
+ }],
35874
+ "deviceOps.setConfig": [{
35875
+ name: "deviceId",
35876
+ form: "single",
35877
+ optional: false
35878
+ }],
35879
+ "deviceState.getCapSlice": [{
35880
+ name: "deviceId",
35881
+ form: "single",
35882
+ optional: false
35883
+ }],
35884
+ "deviceState.getSnapshot": [{
35885
+ name: "deviceId",
35886
+ form: "single",
35887
+ optional: false
35888
+ }],
35889
+ "deviceState.setCapSlice": [{
35890
+ name: "deviceId",
35891
+ form: "single",
35892
+ optional: false
35893
+ }],
35894
+ "events.getEventClipUrl": [{
35895
+ name: "deviceId",
35896
+ form: "single",
35897
+ optional: false
35898
+ }],
35899
+ "events.getEvents": [{
35900
+ name: "deviceId",
35901
+ form: "single",
35902
+ optional: false
35903
+ }],
35904
+ "events.getEventThumbnail": [{
35905
+ name: "deviceId",
35906
+ form: "single",
35907
+ optional: false
35908
+ }],
35909
+ "faceGallery.getFaceByTrack": [{
35910
+ name: "deviceId",
35911
+ form: "single",
35912
+ optional: false
35913
+ }],
35914
+ "faceGallery.listRecentFaces": [{
35915
+ name: "deviceId",
35916
+ form: "single",
35917
+ optional: true
35918
+ }],
35919
+ "fanControl.setDirection": [{
35920
+ name: "deviceId",
35921
+ form: "single",
35922
+ optional: false
35923
+ }],
35924
+ "fanControl.setOscillating": [{
35925
+ name: "deviceId",
35926
+ form: "single",
35927
+ optional: false
35928
+ }],
35929
+ "fanControl.setPercentage": [{
35930
+ name: "deviceId",
35931
+ form: "single",
35932
+ optional: false
35933
+ }],
35934
+ "fanControl.setPreset": [{
35935
+ name: "deviceId",
35936
+ form: "single",
35937
+ optional: false
35938
+ }],
35939
+ "humidifier.setMode": [{
35940
+ name: "deviceId",
35941
+ form: "single",
35942
+ optional: false
35943
+ }],
35944
+ "humidifier.setOn": [{
35945
+ name: "deviceId",
35946
+ form: "single",
35947
+ optional: false
35948
+ }],
35949
+ "humidifier.setTargetHumidity": [{
35950
+ name: "deviceId",
35951
+ form: "single",
35952
+ optional: false
35953
+ }],
35954
+ "imageSettings.getOptions": [{
35955
+ name: "deviceId",
35956
+ form: "single",
35957
+ optional: false
35958
+ }],
35959
+ "imageSettings.setSettings": [{
35960
+ name: "deviceId",
35961
+ form: "single",
35962
+ optional: false
35963
+ }],
35964
+ "intercom.endTalkSession": [{
35965
+ name: "deviceId",
35966
+ form: "single",
35967
+ optional: false
35968
+ }],
35969
+ "intercom.handleAnswer": [{
35970
+ name: "deviceId",
35971
+ form: "single",
35972
+ optional: false
35973
+ }],
35974
+ "intercom.pushTalkAudio": [{
35975
+ name: "deviceId",
35976
+ form: "single",
35977
+ optional: false
35978
+ }],
35979
+ "intercom.startSession": [{
35980
+ name: "deviceId",
35981
+ form: "single",
35982
+ optional: false
35983
+ }],
35984
+ "intercom.startTalkSession": [{
35985
+ name: "deviceId",
35986
+ form: "single",
35987
+ optional: false
35988
+ }],
35989
+ "intercom.stopSession": [{
35990
+ name: "deviceId",
35991
+ form: "single",
35992
+ optional: false
35993
+ }],
35994
+ "lawnMowerControl.dock": [{
35995
+ name: "deviceId",
35996
+ form: "single",
35997
+ optional: false
35998
+ }],
35999
+ "lawnMowerControl.pause": [{
36000
+ name: "deviceId",
36001
+ form: "single",
36002
+ optional: false
36003
+ }],
36004
+ "lawnMowerControl.startMowing": [{
36005
+ name: "deviceId",
36006
+ form: "single",
36007
+ optional: false
36008
+ }],
36009
+ "lockControl.lock": [{
36010
+ name: "deviceId",
36011
+ form: "single",
36012
+ optional: false
36013
+ }],
36014
+ "lockControl.open": [{
36015
+ name: "deviceId",
36016
+ form: "single",
36017
+ optional: false
36018
+ }],
36019
+ "lockControl.unlock": [{
36020
+ name: "deviceId",
36021
+ form: "single",
36022
+ optional: false
36023
+ }],
36024
+ "mediaPlayer.next": [{
36025
+ name: "deviceId",
36026
+ form: "single",
36027
+ optional: false
36028
+ }],
36029
+ "mediaPlayer.pause": [{
36030
+ name: "deviceId",
36031
+ form: "single",
36032
+ optional: false
36033
+ }],
36034
+ "mediaPlayer.play": [{
36035
+ name: "deviceId",
36036
+ form: "single",
36037
+ optional: false
36038
+ }],
36039
+ "mediaPlayer.playMedia": [{
36040
+ name: "deviceId",
36041
+ form: "single",
36042
+ optional: false
36043
+ }],
36044
+ "mediaPlayer.previous": [{
36045
+ name: "deviceId",
36046
+ form: "single",
36047
+ optional: false
36048
+ }],
36049
+ "mediaPlayer.seek": [{
36050
+ name: "deviceId",
36051
+ form: "single",
36052
+ optional: false
36053
+ }],
36054
+ "mediaPlayer.selectSource": [{
36055
+ name: "deviceId",
36056
+ form: "single",
36057
+ optional: false
36058
+ }],
36059
+ "mediaPlayer.setMute": [{
36060
+ name: "deviceId",
36061
+ form: "single",
36062
+ optional: false
36063
+ }],
36064
+ "mediaPlayer.setRepeat": [{
36065
+ name: "deviceId",
36066
+ form: "single",
36067
+ optional: false
36068
+ }],
36069
+ "mediaPlayer.setShuffle": [{
36070
+ name: "deviceId",
36071
+ form: "single",
36072
+ optional: false
36073
+ }],
36074
+ "mediaPlayer.setVolume": [{
36075
+ name: "deviceId",
36076
+ form: "single",
36077
+ optional: false
36078
+ }],
36079
+ "mediaPlayer.stop": [{
36080
+ name: "deviceId",
36081
+ form: "single",
36082
+ optional: false
36083
+ }],
36084
+ "motion.isDetected": [{
36085
+ name: "deviceId",
36086
+ form: "single",
36087
+ optional: false
36088
+ }],
36089
+ "motionDetection.analyze": [{
36090
+ name: "deviceId",
36091
+ form: "single",
36092
+ optional: false
36093
+ }],
36094
+ "motionDetection.removeCamera": [{
36095
+ name: "deviceId",
36096
+ form: "single",
36097
+ optional: false
36098
+ }],
36099
+ "motionTrigger.setMotionTrigger": [{
36100
+ name: "deviceId",
36101
+ form: "single",
36102
+ optional: false
36103
+ }],
36104
+ "motionZones.getOptions": [{
36105
+ name: "deviceId",
36106
+ form: "single",
36107
+ optional: false
36108
+ }],
36109
+ "motionZones.setZone": [{
36110
+ name: "deviceId",
36111
+ form: "single",
36112
+ optional: false
36113
+ }],
36114
+ "nativeObjectDetection.setEnabled": [{
36115
+ name: "deviceId",
36116
+ form: "single",
36117
+ optional: false
36118
+ }],
36119
+ "networkQuality.getDeviceStats": [{
36120
+ name: "deviceId",
36121
+ form: "single",
36122
+ optional: false
36123
+ }],
36124
+ "networkQuality.reportClientStats": [{
36125
+ name: "deviceId",
36126
+ form: "single",
36127
+ optional: false
36128
+ }],
36129
+ "notificationRules.setDeviceMuted": [{
36130
+ name: "deviceId",
36131
+ form: "single",
36132
+ optional: false
36133
+ }],
36134
+ "notifier.cancel": [{
36135
+ name: "deviceId",
36136
+ form: "single",
36137
+ optional: false
36138
+ }],
36139
+ "notifier.send": [{
36140
+ name: "deviceId",
36141
+ form: "single",
36142
+ optional: false
36143
+ }],
36144
+ "osd.setOverlay": [{
36145
+ name: "deviceId",
36146
+ form: "single",
36147
+ optional: false
36148
+ }],
36149
+ "osdManager.clearSlotBinding": [{
36150
+ name: "deviceId",
36151
+ form: "single",
36152
+ optional: false
36153
+ }],
36154
+ "osdManager.copyDeviceConfiguration": [{
36155
+ name: "sourceDeviceId",
36156
+ form: "single",
36157
+ optional: false
36158
+ }, {
36159
+ name: "targetDeviceId",
36160
+ form: "single",
36161
+ optional: false
36162
+ }],
36163
+ "osdManager.getDeviceOsd": [{
36164
+ name: "deviceId",
36165
+ form: "single",
36166
+ optional: false
36167
+ }],
36168
+ "osdManager.getSourceCatalog": [{
36169
+ name: "deviceId",
36170
+ form: "single",
36171
+ optional: false
36172
+ }],
36173
+ "osdManager.previewSlot": [{
36174
+ name: "deviceId",
36175
+ form: "single",
36176
+ optional: false
36177
+ }],
36178
+ "osdManager.renderDevice": [{
36179
+ name: "deviceId",
36180
+ form: "single",
36181
+ optional: false
36182
+ }],
36183
+ "osdManager.setSlotBinding": [{
36184
+ name: "deviceId",
36185
+ form: "single",
36186
+ optional: false
36187
+ }],
36188
+ "petFeeder.callPet": [{
36189
+ name: "deviceId",
36190
+ form: "single",
36191
+ optional: false
36192
+ }],
36193
+ "petFeeder.cancelFeed": [{
36194
+ name: "deviceId",
36195
+ form: "single",
36196
+ optional: false
36197
+ }],
36198
+ "petFeeder.feed": [{
36199
+ name: "deviceId",
36200
+ form: "single",
36201
+ optional: false
36202
+ }],
36203
+ "petFeeder.markFoodReplenished": [{
36204
+ name: "deviceId",
36205
+ form: "single",
36206
+ optional: false
36207
+ }],
36208
+ "petFeeder.playSound": [{
36209
+ name: "deviceId",
36210
+ form: "single",
36211
+ optional: false
36212
+ }],
36213
+ "petFeeder.resetDesiccant": [{
36214
+ name: "deviceId",
36215
+ form: "single",
36216
+ optional: false
36217
+ }],
36218
+ "petFeeder.setChildLock": [{
36219
+ name: "deviceId",
36220
+ form: "single",
36221
+ optional: false
36222
+ }],
36223
+ "petFeeder.setFeedSound": [{
36224
+ name: "deviceId",
36225
+ form: "single",
36226
+ optional: false
36227
+ }],
36228
+ "petFeeder.setIndicatorLight": [{
36229
+ name: "deviceId",
36230
+ form: "single",
36231
+ optional: false
36232
+ }],
36233
+ "petFeeder.setVolume": [{
36234
+ name: "deviceId",
36235
+ form: "single",
36236
+ optional: false
36237
+ }],
36238
+ "pipelineAnalytics.clearTracks": [{
36239
+ name: "deviceId",
36240
+ form: "single",
36241
+ optional: false
36242
+ }],
36243
+ "pipelineAnalytics.completeRetrainTrack": [{
36244
+ name: "deviceId",
36245
+ form: "single",
36246
+ optional: false
36247
+ }],
36248
+ "pipelineAnalytics.deleteDeviceEvents": [{
36249
+ name: "deviceId",
36250
+ form: "single",
36251
+ optional: false
36252
+ }],
36253
+ "pipelineAnalytics.deleteTracks": [{
36254
+ name: "deviceId",
36255
+ form: "single",
36256
+ optional: false
36257
+ }],
36258
+ "pipelineAnalytics.deselectRetrainFrame": [{
36259
+ name: "deviceId",
36260
+ form: "single",
36261
+ optional: false
36262
+ }],
36263
+ "pipelineAnalytics.getActiveTracks": [{
36264
+ name: "deviceId",
36265
+ form: "single",
36266
+ optional: false
36267
+ }],
36268
+ "pipelineAnalytics.getAudioEvents": [{
36269
+ name: "deviceId",
36270
+ form: "single",
36271
+ optional: false
36272
+ }],
36273
+ "pipelineAnalytics.getEventDensity": [{
36274
+ name: "deviceId",
36275
+ form: "single",
36276
+ optional: false
36277
+ }],
36278
+ "pipelineAnalytics.getEventMedia": [{
36279
+ name: "deviceId",
36280
+ form: "single",
36281
+ optional: false
36282
+ }],
36283
+ "pipelineAnalytics.getKeyEvents": [{
36284
+ name: "deviceId",
36285
+ form: "single",
36286
+ optional: false
36287
+ }],
36288
+ "pipelineAnalytics.getMotionEvents": [{
36289
+ name: "deviceId",
36290
+ form: "single",
36291
+ optional: false
36292
+ }],
36293
+ "pipelineAnalytics.getObjectEvents": [{
36294
+ name: "deviceId",
36295
+ form: "single",
36296
+ optional: false
36297
+ }],
36298
+ "pipelineAnalytics.getRetrainExportUrl": [{
36299
+ name: "deviceIds",
36300
+ form: "array",
36301
+ optional: true
36302
+ }],
36303
+ "pipelineAnalytics.getSensorEvents": [{
36304
+ name: "deviceId",
36305
+ form: "single",
36306
+ optional: false
36307
+ }],
36308
+ "pipelineAnalytics.getTrack": [{
36309
+ name: "deviceId",
36310
+ form: "single",
36311
+ optional: false
36312
+ }],
36313
+ "pipelineAnalytics.getTrackMedia": [{
36314
+ name: "deviceId",
36315
+ form: "single",
36316
+ optional: false
36317
+ }],
36318
+ "pipelineAnalytics.getTrainingExportSummary": [{
36319
+ name: "deviceIds",
36320
+ form: "array",
36321
+ optional: true
36322
+ }],
36323
+ "pipelineAnalytics.getTrainingExportUrl": [{
36324
+ name: "deviceIds",
36325
+ form: "array",
36326
+ optional: true
36327
+ }],
36328
+ "pipelineAnalytics.listEventKinds": [{
36329
+ name: "deviceId",
36330
+ form: "single",
36331
+ optional: false
36332
+ }],
36333
+ "pipelineAnalytics.listEventKindsBatch": [{
36334
+ name: "deviceIds",
36335
+ form: "array",
36336
+ optional: false
36337
+ }],
36338
+ "pipelineAnalytics.listOpsLog": [{
36339
+ name: "deviceId",
36340
+ form: "single",
36341
+ optional: true
36342
+ }],
36343
+ "pipelineAnalytics.listRecentTracks": [{
36344
+ name: "deviceIds",
36345
+ form: "array",
36346
+ optional: false
36347
+ }],
36348
+ "pipelineAnalytics.listRetrainStaging": [{
36349
+ name: "deviceIds",
36350
+ form: "array",
36351
+ optional: true
36352
+ }],
36353
+ "pipelineAnalytics.listTrackMedia": [{
36354
+ name: "deviceId",
36355
+ form: "single",
36356
+ optional: false
36357
+ }],
36358
+ "pipelineAnalytics.listTracks": [{
36359
+ name: "deviceId",
36360
+ form: "single",
36361
+ optional: false
36362
+ }],
36363
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36364
+ name: "deviceId",
36365
+ form: "single",
36366
+ optional: false
36367
+ }],
36368
+ "pipelineAnalytics.pruneEventsBefore": [{
36369
+ name: "deviceId",
36370
+ form: "single",
36371
+ optional: false
36372
+ }],
36373
+ "pipelineAnalytics.pruneTracksBefore": [{
36374
+ name: "deviceId",
36375
+ form: "single",
36376
+ optional: false
36377
+ }],
36378
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36379
+ name: "deviceId",
36380
+ form: "single",
36381
+ optional: true
36382
+ }],
36383
+ "pipelineAnalytics.restageRetrainTrack": [{
36384
+ name: "deviceId",
36385
+ form: "single",
36386
+ optional: false
36387
+ }],
36388
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36389
+ name: "deviceId",
36390
+ form: "single",
36391
+ optional: false
36392
+ }],
36393
+ "pipelineAnalytics.searchObjectEvents": [{
36394
+ name: "deviceId",
36395
+ form: "single",
36396
+ optional: true
36397
+ }],
36398
+ "pipelineAnalytics.selectRetrainFrames": [{
36399
+ name: "deviceId",
36400
+ form: "single",
36401
+ optional: false
36402
+ }],
36403
+ "pipelineAnalytics.setTrackFlags": [{
36404
+ name: "deviceId",
36405
+ form: "single",
36406
+ optional: false
36407
+ }],
36408
+ "pipelineAnalytics.wipeAllAnalytics": [{
36409
+ name: "deviceId",
36410
+ form: "single",
36411
+ optional: false
36412
+ }],
36413
+ "pipelineExecutor.runPipeline": [{
36414
+ name: "deviceId",
36415
+ form: "single",
36416
+ optional: true
36417
+ }],
36418
+ "pipelineExecutor.runPipelineBatch": [{
36419
+ name: "deviceId",
36420
+ form: "single",
36421
+ optional: true
36422
+ }],
36423
+ "pipelineOrchestrator.assignAudio": [{
36424
+ name: "deviceId",
36425
+ form: "single",
36426
+ optional: false
36427
+ }],
36428
+ "pipelineOrchestrator.assignPipeline": [{
36429
+ name: "deviceId",
36430
+ form: "single",
36431
+ optional: false
36432
+ }],
36433
+ "pipelineOrchestrator.getAudioAssignment": [{
36434
+ name: "deviceId",
36435
+ form: "single",
36436
+ optional: false
36437
+ }],
36438
+ "pipelineOrchestrator.getCameraMetrics": [{
36439
+ name: "deviceId",
36440
+ form: "single",
36441
+ optional: false
36442
+ }],
36443
+ "pipelineOrchestrator.getCameraSettings": [{
36444
+ name: "deviceId",
36445
+ form: "single",
36446
+ optional: false
36447
+ }],
36448
+ "pipelineOrchestrator.getCameraStatus": [{
36449
+ name: "deviceId",
36450
+ form: "single",
36451
+ optional: false
36452
+ }],
36453
+ "pipelineOrchestrator.getCameraStatuses": [{
36454
+ name: "deviceIds",
36455
+ form: "array",
36456
+ optional: true
36457
+ }],
36458
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36459
+ name: "deviceId",
36460
+ form: "single",
36461
+ optional: false
36462
+ }],
36463
+ "pipelineOrchestrator.getCameraSwitches": [{
36464
+ name: "deviceId",
36465
+ form: "single",
36466
+ optional: false
36467
+ }],
36468
+ "pipelineOrchestrator.getPipelineAssignment": [{
36469
+ name: "deviceId",
36470
+ form: "single",
36471
+ optional: false
36472
+ }],
36473
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36474
+ name: "deviceId",
36475
+ form: "single",
36476
+ optional: false
36477
+ }],
36478
+ "pipelineOrchestrator.resolvePipeline": [{
36479
+ name: "deviceId",
36480
+ form: "single",
36481
+ optional: false
36482
+ }],
36483
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36484
+ name: "deviceId",
36485
+ form: "single",
36486
+ optional: false
36487
+ }],
36488
+ "pipelineOrchestrator.setCameraStepOverride": [{
36489
+ name: "deviceId",
36490
+ form: "single",
36491
+ optional: false
36492
+ }],
36493
+ "pipelineOrchestrator.setCameraStepToggle": [{
36494
+ name: "deviceId",
36495
+ form: "single",
36496
+ optional: false
36497
+ }],
36498
+ "pipelineOrchestrator.setCameraSwitch": [{
36499
+ name: "deviceId",
36500
+ form: "single",
36501
+ optional: false
36502
+ }],
36503
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36504
+ name: "deviceId",
36505
+ form: "single",
36506
+ optional: false
36507
+ }],
36508
+ "pipelineOrchestrator.unassignAudio": [{
36509
+ name: "deviceId",
36510
+ form: "single",
36511
+ optional: false
36512
+ }],
36513
+ "pipelineOrchestrator.unassignPipeline": [{
36514
+ name: "deviceId",
36515
+ form: "single",
36516
+ optional: false
36517
+ }],
36518
+ "pipelineRunner.attachCamera": [{
36519
+ name: "deviceId",
36520
+ form: "single",
36521
+ optional: false
36522
+ }],
36523
+ "pipelineRunner.detachCamera": [{
36524
+ name: "deviceId",
36525
+ form: "single",
36526
+ optional: false
36527
+ }],
36528
+ "pipelineRunner.getCameraMetrics": [{
36529
+ name: "deviceId",
36530
+ form: "single",
36531
+ optional: false
36532
+ }],
36533
+ "pipelineRunner.reportMotion": [{
36534
+ name: "deviceId",
36535
+ form: "single",
36536
+ optional: false
36537
+ }],
36538
+ "pipelineRunner.runDetailSubtree": [{
36539
+ name: "deviceId",
36540
+ form: "single",
36541
+ optional: false
36542
+ }],
36543
+ "pipelineRunner.runStatelessStep": [{
36544
+ name: "sourceDeviceId",
36545
+ form: "single",
36546
+ optional: false
36547
+ }],
36548
+ "plateGallery.getPlateByTrack": [{
36549
+ name: "deviceId",
36550
+ form: "single",
36551
+ optional: false
36552
+ }],
36553
+ "plateGallery.listPlates": [{
36554
+ name: "deviceId",
36555
+ form: "single",
36556
+ optional: true
36557
+ }],
36558
+ "privacyMask.getOptions": [{
36559
+ name: "deviceId",
36560
+ form: "single",
36561
+ optional: false
36562
+ }],
36563
+ "privacyMask.setAudioEnabled": [{
36564
+ name: "deviceId",
36565
+ form: "single",
36566
+ optional: false
36567
+ }],
36568
+ "privacyMask.setMask": [{
36569
+ name: "deviceId",
36570
+ form: "single",
36571
+ optional: false
36572
+ }],
36573
+ "ptz.continuousMove": [{
36574
+ name: "deviceId",
36575
+ form: "single",
36576
+ optional: false
36577
+ }],
36578
+ "ptz.deletePreset": [{
36579
+ name: "deviceId",
36580
+ form: "single",
36581
+ optional: false
36582
+ }],
36583
+ "ptz.getOptions": [{
36584
+ name: "deviceId",
36585
+ form: "single",
36586
+ optional: false
36587
+ }],
36588
+ "ptz.getPosition": [{
36589
+ name: "deviceId",
36590
+ form: "single",
36591
+ optional: false
36592
+ }],
36593
+ "ptz.getPresets": [{
36594
+ name: "deviceId",
36595
+ form: "single",
36596
+ optional: false
36597
+ }],
36598
+ "ptz.goHome": [{
36599
+ name: "deviceId",
36600
+ form: "single",
36601
+ optional: false
36602
+ }],
36603
+ "ptz.goToPreset": [{
36604
+ name: "deviceId",
36605
+ form: "single",
36606
+ optional: false
36607
+ }],
36608
+ "ptz.move": [{
36609
+ name: "deviceId",
36610
+ form: "single",
36611
+ optional: false
36612
+ }],
36613
+ "ptz.savePreset": [{
36614
+ name: "deviceId",
36615
+ form: "single",
36616
+ optional: false
36617
+ }],
36618
+ "ptz.setAutofocus": [{
36619
+ name: "deviceId",
36620
+ form: "single",
36621
+ optional: false
36622
+ }],
36623
+ "ptz.stop": [{
36624
+ name: "deviceId",
36625
+ form: "single",
36626
+ optional: false
36627
+ }],
36628
+ "ptzAutotrack.getSettings": [{
36629
+ name: "deviceId",
36630
+ form: "single",
36631
+ optional: false
36632
+ }],
36633
+ "ptzAutotrack.getStatus": [{
36634
+ name: "deviceId",
36635
+ form: "single",
36636
+ optional: false
36637
+ }],
36638
+ "ptzAutotrack.setEnabled": [{
36639
+ name: "deviceId",
36640
+ form: "single",
36641
+ optional: false
36642
+ }],
36643
+ "ptzAutotrack.setSettings": [{
36644
+ name: "deviceId",
36645
+ form: "single",
36646
+ optional: false
36647
+ }],
36648
+ "reboot.reboot": [{
36649
+ name: "deviceId",
36650
+ form: "single",
36651
+ optional: false
36652
+ }],
36653
+ "recording.deleteFootprint": [{
36654
+ name: "deviceId",
36655
+ form: "single",
36656
+ optional: false
36657
+ }],
36658
+ "recording.getAvailability": [{
36659
+ name: "deviceId",
36660
+ form: "single",
36661
+ optional: false
36662
+ }],
36663
+ "recording.getDaysWithRecordings": [{
36664
+ name: "deviceId",
36665
+ form: "single",
36666
+ optional: false
36667
+ }],
36668
+ "recording.getDeviceConfig": [{
36669
+ name: "deviceId",
36670
+ form: "single",
36671
+ optional: false
36672
+ }],
36673
+ "recording.getPlaybackManifest": [{
36674
+ name: "deviceId",
36675
+ form: "single",
36676
+ optional: false
36677
+ }],
36678
+ "recording.listOpsLog": [{
36679
+ name: "deviceId",
36680
+ form: "single",
36681
+ optional: true
36682
+ }],
36683
+ "recording.locateSegment": [{
36684
+ name: "deviceId",
36685
+ form: "single",
36686
+ optional: false
36687
+ }],
36688
+ "recording.pruneFootage": [{
36689
+ name: "deviceId",
36690
+ form: "single",
36691
+ optional: false
36692
+ }],
36693
+ "recording.readGopBytes": [{
36694
+ name: "deviceId",
36695
+ form: "single",
36696
+ optional: false
36697
+ }],
36698
+ "recording.readSegmentBytes": [{
36699
+ name: "deviceId",
36700
+ form: "single",
36701
+ optional: false
36702
+ }],
36703
+ "recording.relocateFootage": [{
36704
+ name: "deviceId",
36705
+ form: "single",
36706
+ optional: true
36707
+ }],
36708
+ "recording.renderClip": [{
36709
+ name: "deviceId",
36710
+ form: "single",
36711
+ optional: false
36712
+ }],
36713
+ "recording.renderGif": [{
36714
+ name: "deviceId",
36715
+ form: "single",
36716
+ optional: false
36717
+ }],
36718
+ "recording.rescanStorage": [{
36719
+ name: "deviceId",
36720
+ form: "single",
36721
+ optional: false
36722
+ }],
36723
+ "recording.setDeviceConfig": [{
36724
+ name: "deviceId",
36725
+ form: "single",
36726
+ optional: false
36727
+ }],
36728
+ "recording.startStorageMigrationMove": [{
36729
+ name: "deviceId",
36730
+ form: "single",
36731
+ optional: true
36732
+ }],
36733
+ "recordingExport.createExport": [{
36734
+ name: "deviceId",
36735
+ form: "single",
36736
+ optional: false
36737
+ }],
36738
+ "recordingExport.listExports": [{
36739
+ name: "deviceId",
36740
+ form: "single",
36741
+ optional: true
36742
+ }],
36743
+ "sceneMonitor.captureReference": [{
36744
+ name: "deviceId",
36745
+ form: "single",
36746
+ optional: false
36747
+ }],
36748
+ "sceneMonitor.createScene": [{
36749
+ name: "deviceId",
36750
+ form: "single",
36751
+ optional: false
36752
+ }],
36753
+ "sceneMonitor.deleteReference": [{
36754
+ name: "deviceId",
36755
+ form: "single",
36756
+ optional: false
36757
+ }],
36758
+ "sceneMonitor.deleteScene": [{
36759
+ name: "deviceId",
36760
+ form: "single",
36761
+ optional: false
36762
+ }],
36763
+ "sceneMonitor.listScenes": [{
36764
+ name: "deviceId",
36765
+ form: "single",
36766
+ optional: false
36767
+ }],
36768
+ "sceneMonitor.recheckNow": [{
36769
+ name: "deviceId",
36770
+ form: "single",
36771
+ optional: false
36772
+ }],
36773
+ "sceneMonitor.resetScene": [{
36774
+ name: "deviceId",
36775
+ form: "single",
36776
+ optional: false
36777
+ }],
36778
+ "sceneMonitor.updateScene": [{
36779
+ name: "deviceId",
36780
+ form: "single",
36781
+ optional: false
36782
+ }],
36783
+ "scriptRunner.run": [{
36784
+ name: "deviceId",
36785
+ form: "single",
36786
+ optional: false
36787
+ }],
36788
+ "scriptRunner.stop": [{
36789
+ name: "deviceId",
36790
+ form: "single",
36791
+ optional: false
36792
+ }],
36793
+ "snapshot.getDebugState": [{
36794
+ name: "deviceId",
36795
+ form: "single",
36796
+ optional: false
36797
+ }],
36798
+ "snapshot.getSnapshot": [{
36799
+ name: "deviceId",
36800
+ form: "single",
36801
+ optional: false
36802
+ }],
36803
+ "snapshot.getSnapshotLinks": [{
36804
+ name: "targets",
36805
+ form: "object-array",
36806
+ optional: false,
36807
+ itemField: "deviceId"
36808
+ }],
36809
+ "snapshot.getSnapshotOverview": [{
36810
+ name: "deviceIds",
36811
+ form: "array",
36812
+ optional: false
36813
+ }],
36814
+ "snapshot.invalidateCache": [{
36815
+ name: "deviceId",
36816
+ form: "single",
36817
+ optional: false
36818
+ }],
36819
+ "streamBroker.acquireEgressTranscode": [{
36820
+ name: "deviceId",
36821
+ form: "single",
36822
+ optional: false
36823
+ }],
36824
+ "streamBroker.assignProfile": [{
36825
+ name: "deviceId",
36826
+ form: "single",
36827
+ optional: false
36828
+ }],
36829
+ "streamBroker.getDeviceAudioMute": [{
36830
+ name: "deviceId",
36831
+ form: "single",
36832
+ optional: false
36833
+ }],
36834
+ "streamBroker.getStreamWithCodec": [{
36835
+ name: "deviceId",
36836
+ form: "single",
36837
+ optional: false
36838
+ }],
36839
+ "streamBroker.produceEventMedia": [{
36840
+ name: "deviceId",
36841
+ form: "single",
36842
+ optional: false
36843
+ }],
36844
+ "streamBroker.publishCameraStream": [{
36845
+ name: "deviceId",
36846
+ form: "single",
36847
+ optional: false
36848
+ }],
36849
+ "streamBroker.renderPreBufferClip": [{
36850
+ name: "deviceId",
36851
+ form: "single",
36852
+ optional: false
36853
+ }],
36854
+ "streamBroker.restartProfile": [{
36855
+ name: "deviceId",
36856
+ form: "single",
36857
+ optional: false
36858
+ }],
36859
+ "streamBroker.retractCameraStream": [{
36860
+ name: "deviceId",
36861
+ form: "single",
36862
+ optional: false
36863
+ }],
36864
+ "streamBroker.setDeviceAudioMute": [{
36865
+ name: "deviceId",
36866
+ form: "single",
36867
+ optional: false
36868
+ }],
36869
+ "streamBroker.unassignProfile": [{
36870
+ name: "deviceId",
36871
+ form: "single",
36872
+ optional: false
36873
+ }],
36874
+ "streamCatalog.getCatalog": [{
36875
+ name: "deviceId",
36876
+ form: "single",
36877
+ optional: false
36878
+ }],
36879
+ "streamParams.getConfigSchema": [{
36880
+ name: "deviceId",
36881
+ form: "single",
36882
+ optional: false
36883
+ }],
36884
+ "streamParams.getOptions": [{
36885
+ name: "deviceId",
36886
+ form: "single",
36887
+ optional: false
36888
+ }],
36889
+ "streamParams.setProfile": [{
36890
+ name: "deviceId",
36891
+ form: "single",
36892
+ optional: false
36893
+ }],
36894
+ "switch.setState": [{
36895
+ name: "deviceId",
36896
+ form: "single",
36897
+ optional: false
36898
+ }],
36899
+ "vacuumControl.locate": [{
36900
+ name: "deviceId",
36901
+ form: "single",
36902
+ optional: false
36903
+ }],
36904
+ "vacuumControl.pause": [{
36905
+ name: "deviceId",
36906
+ form: "single",
36907
+ optional: false
36908
+ }],
36909
+ "vacuumControl.returnToBase": [{
36910
+ name: "deviceId",
36911
+ form: "single",
36912
+ optional: false
36913
+ }],
36914
+ "vacuumControl.setFanSpeed": [{
36915
+ name: "deviceId",
36916
+ form: "single",
36917
+ optional: false
36918
+ }],
36919
+ "vacuumControl.start": [{
36920
+ name: "deviceId",
36921
+ form: "single",
36922
+ optional: false
36923
+ }],
36924
+ "vacuumControl.stop": [{
36925
+ name: "deviceId",
36926
+ form: "single",
36927
+ optional: false
36928
+ }],
36929
+ "valve.close": [{
36930
+ name: "deviceId",
36931
+ form: "single",
36932
+ optional: false
36933
+ }],
36934
+ "valve.open": [{
36935
+ name: "deviceId",
36936
+ form: "single",
36937
+ optional: false
36938
+ }],
36939
+ "valve.setPosition": [{
36940
+ name: "deviceId",
36941
+ form: "single",
36942
+ optional: false
36943
+ }],
36944
+ "valve.stop": [{
36945
+ name: "deviceId",
36946
+ form: "single",
36947
+ optional: false
36948
+ }],
36949
+ "videoclips.getClipPlayback": [{
36950
+ name: "deviceId",
36951
+ form: "single",
36952
+ optional: false
36953
+ }],
36954
+ "videoclips.listClips": [{
36955
+ name: "deviceId",
36956
+ form: "single",
36957
+ optional: false
36958
+ }],
36959
+ "waterHeater.setAway": [{
36960
+ name: "deviceId",
36961
+ form: "single",
36962
+ optional: false
36963
+ }],
36964
+ "waterHeater.setOperationMode": [{
36965
+ name: "deviceId",
36966
+ form: "single",
36967
+ optional: false
36968
+ }],
36969
+ "waterHeater.setTargetTemp": [{
36970
+ name: "deviceId",
36971
+ form: "single",
36972
+ optional: false
36973
+ }],
36974
+ "webrtcSession.addIceCandidate": [{
36975
+ name: "deviceId",
36976
+ form: "single",
36977
+ optional: false
36978
+ }],
36979
+ "webrtcSession.closeSession": [{
36980
+ name: "deviceId",
36981
+ form: "single",
36982
+ optional: false
36983
+ }],
36984
+ "webrtcSession.createSession": [{
36985
+ name: "deviceId",
36986
+ form: "single",
36987
+ optional: false
36988
+ }],
36989
+ "webrtcSession.getIceCandidates": [{
36990
+ name: "deviceId",
36991
+ form: "single",
36992
+ optional: false
36993
+ }],
36994
+ "webrtcSession.getSessionState": [{
36995
+ name: "deviceId",
36996
+ form: "single",
36997
+ optional: false
36998
+ }],
36999
+ "webrtcSession.handleAnswer": [{
37000
+ name: "deviceId",
37001
+ form: "single",
37002
+ optional: false
37003
+ }],
37004
+ "webrtcSession.handleOffer": [{
37005
+ name: "deviceId",
37006
+ form: "single",
37007
+ optional: false
37008
+ }],
37009
+ "webrtcSession.hasAdaptiveBitrate": [{
37010
+ name: "deviceId",
37011
+ form: "single",
37012
+ optional: false
37013
+ }],
37014
+ "webrtcSession.listStreams": [{
37015
+ name: "deviceId",
37016
+ form: "single",
37017
+ optional: false
37018
+ }],
37019
+ "zoneAnalytics.getCameraHistory": [{
37020
+ name: "deviceId",
37021
+ form: "single",
37022
+ optional: false
37023
+ }],
37024
+ "zoneAnalytics.getCurrentSnapshot": [{
37025
+ name: "deviceId",
37026
+ form: "single",
37027
+ optional: false
37028
+ }],
37029
+ "zoneAnalytics.getUnzonedHistory": [{
37030
+ name: "deviceId",
37031
+ form: "single",
37032
+ optional: false
37033
+ }],
37034
+ "zoneAnalytics.getZoneHistory": [{
37035
+ name: "deviceId",
37036
+ form: "single",
37037
+ optional: false
37038
+ }],
37039
+ "zoneRules.listRules": [{
37040
+ name: "deviceId",
37041
+ form: "single",
37042
+ optional: false
37043
+ }],
37044
+ "zoneRules.setRules": [{
37045
+ name: "deviceId",
37046
+ form: "single",
37047
+ optional: false
37048
+ }],
37049
+ "zones.addZone": [{
37050
+ name: "deviceId",
37051
+ form: "single",
37052
+ optional: false
37053
+ }],
37054
+ "zones.listZones": [{
37055
+ name: "deviceId",
37056
+ form: "single",
37057
+ optional: false
37058
+ }],
37059
+ "zones.removeZone": [{
37060
+ name: "deviceId",
37061
+ form: "single",
37062
+ optional: false
37063
+ }],
37064
+ "zones.updateZone": [{
37065
+ name: "deviceId",
37066
+ form: "single",
37067
+ optional: false
37068
+ }]
37069
+ });
34323
37070
  Object.freeze({
34324
37071
  "broker": "broker",
34325
37072
  "device-export": "device-export",