@camstack/addon-provider-rtsp 1.2.17 → 1.2.18

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 +2849 -143
  2. package/dist/addon.mjs +2849 -143
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  //#endregion
24
24
  let node_net = require("node:net");
25
25
  node_net = __toESM(node_net);
26
- //#region ../types/dist/event-category-Cv9dO26A.mjs
26
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
27
27
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
28
28
  EventCategory["SystemBoot"] = "system.boot";
29
29
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -230,6 +230,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
230
230
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
231
231
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
232
232
  /**
233
+ * A node the orchestrator would otherwise place cameras on has NO usable
234
+ * inference device: the operator enabled one or more accelerators there and
235
+ * the live probe reports every one of them unavailable. Emitted once per
236
+ * TRANSITION into that state (never per dispatch), and the node is dropped
237
+ * from the placement candidate set for as long as it holds.
238
+ *
239
+ * This exists because the state was previously invisible: little-unraid
240
+ * absorbed 283k inference errors in a day while still being handed cameras,
241
+ * and nothing in the system said so.
242
+ *
243
+ * A node with no accelerators configured at all is NOT this — its devices
244
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
245
+ * serves it exactly as before.
246
+ */
247
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
248
+ /**
249
+ * A camera has an OPEN detection session and has produced no detection at
250
+ * all for longer than the blind threshold — the camera is being decoded and
251
+ * inferred and is returning nothing. Emitted once per transition into blind,
252
+ * per camera.
253
+ *
254
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
255
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
256
+ * camera" produce byte-identical silence.
257
+ */
258
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
259
+ /**
233
260
  * Per-camera pipeline config was mutated by the orchestrator
234
261
  * (3-level settings change via `setAgentAddonDefaults` /
235
262
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -10946,6 +10973,8 @@ var QueryFilterSchema = object({
10946
10973
  where: record(string(), unknown()).optional(),
10947
10974
  whereIn: record(string(), array(unknown())).optional(),
10948
10975
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10976
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10977
+ whereNot: record(string(), unknown()).optional(),
10949
10978
  orderBy: object({
10950
10979
  field: string(),
10951
10980
  direction: _enum(["asc", "desc"])
@@ -10965,7 +10994,8 @@ var QueryFilterSchema = object({
10965
10994
  var MutationFilterSchema = object({
10966
10995
  where: record(string(), unknown()).optional(),
10967
10996
  whereIn: record(string(), array(unknown())).optional(),
10968
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10997
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10998
+ whereNot: record(string(), unknown()).optional()
10969
10999
  });
10970
11000
  /** A single stored record: `{ id, data }`. */
10971
11001
  var SettingsRecordSchema = object({
@@ -12484,6 +12514,17 @@ var LlmImageSchema = object({
12484
12514
  bytes: _instanceof(Uint8Array),
12485
12515
  mimeType: string()
12486
12516
  });
12517
+ /**
12518
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12519
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12520
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12521
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12522
+ */
12523
+ var LlmRetryPolicySchema = object({
12524
+ enabled: boolean().default(false),
12525
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12526
+ maxAttempts: number().int().min(1).max(5).default(1)
12527
+ });
12487
12528
  var LlmGenerateBaseInputSchema = object({
12488
12529
  /** Collection routing (the notification-output posture). */
12489
12530
  addonId: string().optional(),
@@ -12498,7 +12539,28 @@ var LlmGenerateBaseInputSchema = object({
12498
12539
  jsonSchema: record(string(), unknown()).optional(),
12499
12540
  /** Per-call override of the profile default. */
12500
12541
  maxTokens: number().int().positive().optional(),
12501
- temperature: number().optional()
12542
+ temperature: number().optional(),
12543
+ /** Per-call override of the profile default (nucleus sampling). */
12544
+ topP: number().min(0).max(1).optional(),
12545
+ /** Per-call override of the profile default (top-k sampling). */
12546
+ topK: number().int().positive().optional(),
12547
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12548
+ timeoutMs: number().int().positive().optional(),
12549
+ /** Per-call override; beats both the consumer table and the profile. */
12550
+ retry: LlmRetryPolicySchema.optional(),
12551
+ /**
12552
+ * Caller-minted id that makes this generation CANCELLABLE.
12553
+ *
12554
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12555
+ * the call against 8 s and free their own slot when the timer wins, while the
12556
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12557
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12558
+ * not generations, and the real load is unbounded.
12559
+ *
12560
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12561
+ * `llm.cancel({ requestId })` tears the socket down.
12562
+ */
12563
+ requestId: string().optional()
12502
12564
  });
12503
12565
  /**
12504
12566
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12511,6 +12573,18 @@ var LlmGenerateBaseInputSchema = object({
12511
12573
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12512
12574
  * watchdog — operator decision #3).
12513
12575
  */
12576
+ /**
12577
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12578
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12579
+ * REF rather than looked up at install time, so what the operator approved in
12580
+ * the preview is exactly what the node downloads.
12581
+ */
12582
+ var ManagedModelExtraFileSchema = object({
12583
+ url: string(),
12584
+ filename: string(),
12585
+ sizeBytes: number(),
12586
+ sha256: string().optional()
12587
+ });
12514
12588
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12515
12589
  object({
12516
12590
  kind: literal("catalog"),
@@ -12519,7 +12593,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12519
12593
  object({
12520
12594
  kind: literal("url"),
12521
12595
  url: string(),
12522
- sha256: string().optional()
12596
+ sha256: string().optional(),
12597
+ /** Picker/status label; the file basename when absent. */
12598
+ label: string().optional(),
12599
+ sizeBytes: number().optional(),
12600
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12523
12601
  }),
12524
12602
  object({
12525
12603
  kind: literal("path"),
@@ -12537,13 +12615,82 @@ var ManagedRuntimeConfigSchema = object({
12537
12615
  gpuLayers: number().int().default(0),
12538
12616
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12539
12617
  threads: number().int().optional(),
12540
- /** Concurrent slots. */
12618
+ /** Concurrent slots (`--parallel`). */
12541
12619
  parallel: number().int().default(1),
12620
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12621
+ batchSize: number().int().positive().optional(),
12622
+ /** Physical batch / micro-batch (`-ub`). */
12623
+ ubatchSize: number().int().positive().optional(),
12624
+ /**
12625
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12626
+ * is a no-op elsewhere, so it is offered rather than assumed.
12627
+ */
12628
+ flashAttention: boolean().default(false),
12629
+ /**
12630
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12631
+ * inference. Costs the full model size in resident memory — which is exactly
12632
+ * what the RAM budget is counting.
12633
+ */
12634
+ mlock: boolean().default(false),
12635
+ /**
12636
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12637
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12638
+ * store produces on every first token.
12639
+ */
12640
+ noMmap: boolean().default(false),
12641
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12642
+ * cheapest way to fit a longer context in the same RAM. */
12643
+ cacheTypeK: _enum([
12644
+ "f32",
12645
+ "f16",
12646
+ "q8_0",
12647
+ "q5_1",
12648
+ "q5_0",
12649
+ "q4_1",
12650
+ "q4_0"
12651
+ ]).optional(),
12652
+ cacheTypeV: _enum([
12653
+ "f32",
12654
+ "f16",
12655
+ "q8_0",
12656
+ "q5_1",
12657
+ "q5_0",
12658
+ "q4_1",
12659
+ "q4_0"
12660
+ ]).optional(),
12661
+ /**
12662
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12663
+ * (which most vision chat templates need and some language-only models
12664
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12665
+ *
12666
+ * It is NOT a second place to set the flags above. A token that collides
12667
+ * with a typed field is REJECTED at start, naming the field that owns it
12668
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12669
+ * the "two switches that disagree" failure this repo has already shipped
12670
+ * twice (D62).
12671
+ */
12672
+ extraArgs: array(string()).default([]),
12542
12673
  /** Else lazy: first generate boots it. */
12543
12674
  autoStart: boolean().default(false),
12544
12675
  /** 0 = never; frees RAM after quiet periods. */
12545
12676
  idleStopMinutes: number().int().default(30)
12546
12677
  });
12678
+ /**
12679
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12680
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12681
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12682
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12683
+ */
12684
+ var LlmDownloadProgressSchema = object({
12685
+ phase: _enum(["downloading", "verifying"]),
12686
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12687
+ file: string(),
12688
+ fileIndex: number().int(),
12689
+ fileCount: number().int(),
12690
+ /** Across the WHOLE install, not the current file. */
12691
+ downloadedBytes: number(),
12692
+ totalBytes: number().optional()
12693
+ });
12547
12694
  var LlmRuntimeStatusSchema = object({
12548
12695
  /** Status is ALWAYS node-qualified. */
12549
12696
  nodeId: string(),
@@ -12560,6 +12707,8 @@ var LlmRuntimeStatusSchema = object({
12560
12707
  modelPath: string().optional(),
12561
12708
  modelId: string().optional(),
12562
12709
  downloadProgress: number().min(0).max(1).optional(),
12710
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12711
+ download: LlmDownloadProgressSchema.optional(),
12563
12712
  lastError: string().optional(),
12564
12713
  crashesInWindow: number(),
12565
12714
  /** Child RSS (sampled best-effort). */
@@ -12570,7 +12719,14 @@ var LlmNodeModelSchema = object({
12570
12719
  file: string(),
12571
12720
  sizeBytes: number(),
12572
12721
  catalogId: string().optional(),
12573
- installedAt: number().optional()
12722
+ installedAt: number().optional(),
12723
+ /**
12724
+ * Absolute path on the node. Present so a file that is on disk but matches
12725
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12726
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12727
+ * it the picker could list such a file and do nothing with it.
12728
+ */
12729
+ path: string().optional()
12574
12730
  });
12575
12731
  var LlmRuntimeDiskUsageSchema = object({
12576
12732
  nodeId: string(),
@@ -12626,10 +12782,47 @@ var LlmProfileSchema = object({
12626
12782
  baseUrl: string().optional(),
12627
12783
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12628
12784
  apiKey: string().optional(),
12785
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12786
+ * degraded to text — that shipped once and produced a confident answer to a
12787
+ * question about a picture nobody sent. */
12629
12788
  supportsVision: boolean(),
12630
12789
  temperature: number().min(0).max(2).optional(),
12790
+ /** Nucleus sampling. Every wire we speak has it. */
12791
+ topP: number().min(0).max(1).optional(),
12792
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12793
+ * wire does, and the client drops it there (measured: the request body gets
12794
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12795
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12796
+ topK: number().int().positive().optional(),
12631
12797
  maxTokens: number().int().positive().optional(),
12798
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12799
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12800
+ * the model with, so it is the one field that changes a PROCESS. */
12801
+ contextLength: number().int().positive().optional(),
12802
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12803
+ * two system prompts fighting is worse than either alone). */
12804
+ systemPrompt: string().optional(),
12805
+ /** Total generation bound — the only one a unary call has. */
12632
12806
  timeoutMs: number().int().positive().default(6e4),
12807
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12808
+ * response headers: on the LM Studio / llama-server wire those are written
12809
+ * once the model has finished loading, so they belong to the bound below. */
12810
+ connectTimeoutMs: number().int().positive().default(1e4),
12811
+ /** Accepted, but no output yet — response headers included, because a cold
12812
+ * GPU load is exactly what happens before them. */
12813
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12814
+ /** Output started then stopped. */
12815
+ idleTimeoutMs: number().int().positive().default(6e4),
12816
+ /** Profile-level default. The per-consumer table and a per-call override
12817
+ * both beat it — see `resolveRetryPolicy`. */
12818
+ retry: LlmRetryPolicySchema.default({
12819
+ enabled: false,
12820
+ maxAttempts: 1
12821
+ }),
12822
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12823
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12824
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12825
+ toolsEnabled: boolean().default(false),
12633
12826
  extraHeaders: record(string(), string()).optional(),
12634
12827
  /** kind === 'managed-local' only (spec §4). */
12635
12828
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12679,6 +12872,36 @@ var ManagedModelCatalogEntrySchema = object({
12679
12872
  /** Vision models: companion projector file. */
12680
12873
  mmprojUrl: string().optional()
12681
12874
  });
12875
+ /**
12876
+ * The outcome of turning one operator-typed Hugging Face reference into a
12877
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12878
+ * I will not pick for you" is a normal answer the UI has to render, not an
12879
+ * exception.
12880
+ *
12881
+ * `candidates` is the whole reason the refusal is usable — every string in it
12882
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12883
+ */
12884
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12885
+ ok: literal(true),
12886
+ /** Ready to hand to `installModel` unchanged. */
12887
+ model: ManagedModelRefSchema,
12888
+ label: string(),
12889
+ repo: string(),
12890
+ quantization: string(),
12891
+ purpose: _enum(["text", "vision"]),
12892
+ totalBytes: number(),
12893
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12894
+ * see that 0.9 GB of it is a projector they did not name. */
12895
+ extraFilenames: array(string())
12896
+ }), object({
12897
+ ok: literal(false),
12898
+ code: string(),
12899
+ message: string(),
12900
+ candidates: array(string()).optional(),
12901
+ /** Set when the refusal was only the ceiling: re-calling with
12902
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12903
+ requiredBytes: number().optional()
12904
+ })]);
12682
12905
  var LlmRuntimeNodeSchema = object({
12683
12906
  nodeId: string(),
12684
12907
  reachable: boolean(),
@@ -12691,7 +12914,10 @@ var ProfileRefInputSchema = object({
12691
12914
  addonId: string(),
12692
12915
  profileId: string()
12693
12916
  });
12694
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12917
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12918
+ addonId: string().optional(),
12919
+ requestId: string()
12920
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12695
12921
  kind: "mutation",
12696
12922
  auth: "admin"
12697
12923
  }), method(ProfileRefInputSchema, _void(), {
@@ -12712,6 +12938,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12712
12938
  consumer: string().optional(),
12713
12939
  profileId: string().optional()
12714
12940
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12941
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12942
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12943
+ ref: string(),
12944
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12945
+ maxBytes: number().positive().optional()
12946
+ }), HfModelResolutionSchema, {
12947
+ kind: "mutation",
12948
+ auth: "admin"
12949
+ }), method(object({
12715
12950
  nodeId: string(),
12716
12951
  model: ManagedModelRefSchema
12717
12952
  }), _void(), {
@@ -14359,6 +14594,8 @@ var NcSystemEventKindSchema = _enum([
14359
14594
  "stream-offline",
14360
14595
  "node-online",
14361
14596
  "node-offline",
14597
+ "node-inference-unavailable",
14598
+ "detection-blind",
14362
14599
  "addon-update-available",
14363
14600
  "server-update-available",
14364
14601
  "alarm-triggered",
@@ -14420,7 +14657,16 @@ var NcScheduleSchema = object({
14420
14657
  });
14421
14658
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14422
14659
  var NcPlateMatcherSchema = object({
14423
- values: array(string().min(1)).min(1),
14660
+ /**
14661
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14662
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14663
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14664
+ * rather than merely seen. A subject carrying no plate still fails.
14665
+ *
14666
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14667
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14668
+ */
14669
+ values: array(string().min(1)),
14424
14670
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14425
14671
  maxDistance: number().int().min(0).max(3).default(1)
14426
14672
  });
@@ -14454,28 +14700,36 @@ var NcOccupancyConditionSchema = object({
14454
14700
  /**
14455
14701
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14456
14702
  *
14457
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14458
- * reference notifier uses, so an operator moving between them re-uses what
14459
- * they already know): a rule matches when, over a sampling window of
14460
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14461
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14462
- *
14463
- * - `dbThreshold` its level is at or above this many dBFS (see
14464
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14465
- * - `labels` the classifier put at least one of these labels on it.
14466
- *
14467
- * Both are OPTIONAL and independent, which is the point of the shape: a
14468
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14469
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14470
- * is given** a window in which every sample is trivially a hit would fire on
14471
- * silence, so the engine refuses such a condition rather than notifying on
14472
- * nothing (the schema cannot express "at least one of" without becoming a
14473
- * ZodEffects the cap path would have to special-case).
14474
- *
14475
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14476
- * must be FULL before it can match a window that has been open for two
14477
- * seconds of its ten is 100% of nothing, and firing on it would make
14478
- * `samplingSeconds` decorative.
14703
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14704
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14705
+ * there is no second switch that can disagree with the first and every rule
14706
+ * authored before the decision migrates for free (`audioModeOf`):
14707
+ *
14708
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14709
+ * classifier labels with one of them. No window, no percentage:
14710
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14711
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14712
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14713
+ * reaches this condition if the classifier was already confident enough.
14714
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14715
+ * the condition: at least `hitPercent`% of the samples over
14716
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14717
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14718
+ * must be FULL before it can match a window open for two of its ten
14719
+ * seconds is 100% of nothing.
14720
+ *
14721
+ * **Why label mode has no window.** It had one, and it never fired: the
14722
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14723
+ * of them per episode, even through continuous crying. The measured maximum
14724
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14725
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14726
+ * the wrong question to ask of a sparse classifier.
14727
+ *
14728
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14729
+ * and the rule would fire on silence. The schema cannot express "exactly one
14730
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14731
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14732
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14479
14733
  *
14480
14734
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14481
14735
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14483,13 +14737,13 @@ var NcOccupancyConditionSchema = object({
14483
14737
  * an operator who typed `dog` mean the same thing.
14484
14738
  */
14485
14739
  var NcAudioConditionSchema = object({
14486
- /** Audio macro labels; absent = any sound (level-only rule). */
14740
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14487
14741
  labels: array(string().min(1)).min(1).optional(),
14488
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14742
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14489
14743
  dbThreshold: number().min(-96).max(0).optional(),
14490
- /** Percentage of the window's samples that must be hits (1–100). */
14744
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14491
14745
  hitPercent: number().int().min(1).max(100).default(60),
14492
- /** Length of the sampling window in seconds. */
14746
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14493
14747
  samplingSeconds: number().int().min(1).max(300).default(10)
14494
14748
  });
14495
14749
  /**
@@ -14627,13 +14881,81 @@ var NcRuleActionsSchema = object({
14627
14881
  */
14628
14882
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14629
14883
  });
14884
+ /**
14885
+ * "This rule applies only while `deviceId` is in one of `states`."
14886
+ *
14887
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14888
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14889
+ * make the condition lie about devices whose states have no equivalent.
14890
+ *
14891
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14892
+ * condition that fired on "I could not read it" would be worse than no gate.
14893
+ */
14894
+ var NcDeviceStateConditionSchema = object({
14895
+ deviceId: number().int(),
14896
+ /** Any of these matches. */
14897
+ states: array(string().min(1)).min(1)
14898
+ });
14899
+ /**
14900
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14901
+ *
14902
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14903
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14904
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14905
+ * already has a trigger ("tell me about a person at the front door, but only
14906
+ * while the bin is still out"). That is why it composes with every delivery
14907
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14908
+ * kind exist for it — see D159.
14909
+ *
14910
+ * ── Identity ───────────────────────────────────────────────────────────────
14911
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14912
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14913
+ * carried as a HINT for the editor and for the log line, never as part of the
14914
+ * lookup key: a rule whose hint drifted must still gate correctly.
14915
+ *
14916
+ * ── Which boolean ──────────────────────────────────────────────────────────
14917
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14918
+ * already declares which boolean drives notification rules, and a second knob
14919
+ * that could disagree with it is exactly the D62 failure. Set it only to
14920
+ * override one rule against the scene's own default.
14921
+ *
14922
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14923
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14924
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14925
+ * evidence, in either direction.
14926
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14927
+ * The latch is a durable fact about the past ("it has diverged since I armed
14928
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14929
+ * reason the operator asked for a latch.
14930
+ *
14931
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14932
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14933
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14934
+ * said out loud in the log rather than dropped in silence.
14935
+ */
14936
+ var NcSceneConditionSchema = object({
14937
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14938
+ sceneId: string().min(1),
14939
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14940
+ deviceId: number().int().optional(),
14941
+ /** The state the scene must be in for the rule to fire. */
14942
+ requiredState: _enum(["matched", "diverged"]),
14943
+ /**
14944
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14945
+ * scene's own `emit` field, which is the only place that decision belongs.
14946
+ */
14947
+ latched: boolean().optional()
14948
+ });
14630
14949
  var NcConditionsSchema = object({
14631
14950
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14632
- deviceState: object({
14633
- deviceId: number().int(),
14634
- /** Any of these matches. */
14635
- states: array(string().min(1)).min(1)
14636
- }).optional(),
14951
+ deviceState: NcDeviceStateConditionSchema.optional(),
14952
+ /**
14953
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14954
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14955
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14956
+ * {@link NcSceneCondition} and D159.
14957
+ */
14958
+ scene: NcSceneConditionSchema.optional(),
14637
14959
  /** Device scope — absent = all devices. */
14638
14960
  devices: array(number()).optional(),
14639
14961
  /** Detector class names (any overlap with the record's class set). */
@@ -14659,18 +14981,47 @@ var NcConditionsSchema = object({
14659
14981
  */
14660
14982
  labelEquals: array(string().min(1)).optional(),
14661
14983
  /**
14662
- * Identity matcher. P1 boundary: matched against the record's collapsed
14663
- * `label` (the identity display name propagated by the face pipeline) —
14664
- * identity-ID matching rides in P2 when identity ids reach the record.
14984
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14985
+ * is about recognised people at all.
14986
+ *
14987
+ * Three states, and the empty one is the point:
14988
+ *
14989
+ * | value | meaning |
14990
+ * | --- | --- |
14991
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14992
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14993
+ * | a list | only these identities |
14994
+ *
14995
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14996
+ * `devices` list is every device), applied one level down: the operator has
14997
+ * turned the face scope ON and narrowed it to nothing, which is every known
14998
+ * face. No second field states the same thing — a switch that can disagree
14999
+ * with the list under it is worse than no switch (D62).
15000
+ *
15001
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
15002
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
15003
+ * the operator fixed the spelling. The id reaches the record on
15004
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
15005
+ * `{{label}}` renders.
15006
+ *
15007
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
15008
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
15009
+ * for is left as it stands and reported, never dropped. The engine also
15010
+ * accepts a display-name hit as a compatibility leg, so a rule whose
15011
+ * migration could not resolve keeps matching exactly what it matched before.
14665
15012
  */
14666
15013
  identities: array(string().min(1)).optional(),
14667
- /** Fuzzy plate matcher against the record's `label` (plate text). */
15014
+ /**
15015
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
15016
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
15017
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
15018
+ */
14668
15019
  plates: NcPlateMatcherSchema.optional(),
14669
15020
  /**
14670
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14671
- * Same P1 boundary: matched against the record's collapsed `label` (the
14672
- * identity display name). A record with NO label passes (nothing to
14673
- * exclude), unlike the include variant which fails on an absent label.
15021
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
15022
+ * the same id members and the same lazy name→id migration. A record with NO
15023
+ * identity passes (nothing to exclude), unlike the include variant which
15024
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14674
15025
  */
14675
15026
  identitiesExclude: array(string().min(1)).optional(),
14676
15027
  /**
@@ -15062,7 +15413,80 @@ var NcRuleInputSchema = object({
15062
15413
  * a rule that predates the gate must keep delivering byte-for-byte as it
15063
15414
  * did, and absent is the only way to say that without a migration.
15064
15415
  */
15065
- confirm: NcConfirmSchema.optional()
15416
+ confirm: NcConfirmSchema.optional(),
15417
+ /**
15418
+ * WAIT for face/plate recognition before saying anything.
15419
+ *
15420
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15421
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15422
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15423
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15424
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15425
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15426
+ *
15427
+ * Only two honest answers exist, and this flag picks between them. It has
15428
+ * effect ONLY on a rule that declares a recognition scope
15429
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15430
+ * other rule there is nothing to wait for and the flag is inert.
15431
+ *
15432
+ * | value | what happens |
15433
+ * | --- | --- |
15434
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15435
+ * | 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) |
15436
+ *
15437
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15438
+ * on the addon cap path, and absent has to keep meaning exactly what every
15439
+ * rule authored before this field meant.
15440
+ *
15441
+ * The cost of `true` is stated here because the editor states it too: a rule
15442
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15443
+ * tests every zone the track visited and a `crossing` condition can no longer
15444
+ * be satisfied, because a closed track carries no crossing.
15445
+ */
15446
+ waitForEnhancement: boolean().optional(),
15447
+ /**
15448
+ * GROUP a burst of subjects into ONE notification that grows.
15449
+ *
15450
+ * Seconds of quiet after the last matching subject before the burst is
15451
+ * considered over. While it is open, the first subject enqueues immediately —
15452
+ * **exactly as today, with no added latency** — and every real growth (a new
15453
+ * subject, or a name confirmed on one already in it) REPLACES that
15454
+ * notification with an updated one naming everybody. The push carries the
15455
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15456
+ *
15457
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15458
+ *
15459
+ * ### Why an idle cutoff and not a window
15460
+ *
15461
+ * The measured seven-person arrival on device 590 spans 110 s with every
15462
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15463
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15464
+ * 30 is Frigate's shipped value for the same decision.
15465
+ *
15466
+ * ### What it replaces
15467
+ *
15468
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15469
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15470
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15471
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15472
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15473
+ * budget over GROUPS — which is what it always meant — and a growth is never
15474
+ * throttled by the window its own first member spent.
15475
+ *
15476
+ * ### Interaction with {@link waitForEnhancement}
15477
+ *
15478
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15479
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15480
+ * CLOSE — already carrying its name — and grows as later members close. That
15481
+ * is later, and complete. With grouping alone the group opens on the first
15482
+ * object event and picks up names as they are confirmed, through the growth
15483
+ * path. Neither combination fires twice for one subject.
15484
+ *
15485
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15486
+ * on the addon cap path, so absent must keep meaning what it meant before this
15487
+ * field existed.
15488
+ */
15489
+ groupIdleSec: number().int().min(0).max(600).optional()
15066
15490
  });
15067
15491
  /**
15068
15492
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15169,6 +15593,7 @@ var NcConditionDescriptorSchema = object({
15169
15593
  "occupancy",
15170
15594
  "audio",
15171
15595
  "deviceState",
15596
+ "scene",
15172
15597
  "systemEvent"
15173
15598
  ]),
15174
15599
  operator: _enum([
@@ -15574,7 +15999,87 @@ var MethodAccessSchema = _enum([
15574
15999
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15575
16000
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15576
16001
  var CapScopeSchema = _enum(["device", "system"]);
15577
- var TokenScopeSchema = discriminatedUnion("type", [
16002
+ /**
16003
+ * DeviceSelector (scope model v3 — 2026-08-12).
16004
+ *
16005
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
16006
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
16007
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
16008
+ * AFTER the grant was minted — no re-grant, no re-login.
16009
+ *
16010
+ * - `all` — every device in the deployment. The broad viewer/operator
16011
+ * lever without a `category` grant (a `category` grant also covers device
16012
+ * caps that carry no deviceId; `all` is specifically the device set).
16013
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
16014
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
16015
+ * is NOT covered until the grant is edited.
16016
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
16017
+ * DYNAMIC. A device that changes type, or a new device of the type,
16018
+ * re-resolves on the next request.
16019
+ * - `locations` — every device whose operator-assigned `location` label is
16020
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
16021
+ * null/unset location matches NO `locations` selector.
16022
+ */
16023
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
16024
+ object({ kind: literal("all") }),
16025
+ object({
16026
+ kind: literal("ids"),
16027
+ ids: array(number().int()).min(1)
16028
+ }),
16029
+ object({
16030
+ kind: literal("types"),
16031
+ types: array(_enum(DeviceType)).min(1)
16032
+ }),
16033
+ object({
16034
+ kind: literal("locations"),
16035
+ locations: array(string().min(1)).min(1)
16036
+ })
16037
+ ]);
16038
+ var DeviceTokenScopeSchema = object({
16039
+ type: literal("device"),
16040
+ /** The device SET this grant covers — resolved against the live fleet. */
16041
+ selector: DeviceSelectorSchema,
16042
+ access: array(MethodAccessSchema).min(1),
16043
+ /**
16044
+ * Whether a grant on a PARENT device transparently covers its accessory
16045
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16046
+ * Direction is parent → children ONLY.
16047
+ *
16048
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16049
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16050
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16051
+ * operator must grant on the child, not inherit from the parent). Set it
16052
+ * explicitly to override that default per grant.
16053
+ */
16054
+ includeLinked: boolean().optional()
16055
+ });
16056
+ /**
16057
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16058
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16059
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16060
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16061
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16062
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16063
+ * migration cannot reach a JWT already in a client's hands; parse-time
16064
+ * migration covers both without a flag day. No cast — the raw object is read
16065
+ * through `Reflect.get` (its static type is `unknown`).
16066
+ */
16067
+ function migrateLegacyTokenScope(raw) {
16068
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16069
+ if (Reflect.get(raw, "type") !== "device") return raw;
16070
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16071
+ const targets = Reflect.get(raw, "targets");
16072
+ if (!Array.isArray(targets)) return raw;
16073
+ return {
16074
+ type: "device",
16075
+ selector: {
16076
+ kind: "ids",
16077
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16078
+ },
16079
+ access: Reflect.get(raw, "access")
16080
+ };
16081
+ }
16082
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15578
16083
  object({
15579
16084
  type: literal("category"),
15580
16085
  target: CapScopeSchema,
@@ -15590,18 +16095,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15590
16095
  target: string(),
15591
16096
  access: array(MethodAccessSchema).min(1)
15592
16097
  }),
15593
- object({
15594
- type: literal("device"),
15595
- /**
15596
- * One or more deviceIds (serialised as strings for wire-format
15597
- * consistency with the rest of the union). Matcher accepts if
15598
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15599
- * of one scope-per-device when granting access to a set of cameras.
15600
- */
15601
- targets: array(string()).min(1),
15602
- access: array(MethodAccessSchema).min(1)
15603
- })
15604
- ]);
16098
+ DeviceTokenScopeSchema
16099
+ ]));
15605
16100
  object({
15606
16101
  id: string(),
15607
16102
  username: string(),
@@ -15918,7 +16413,7 @@ var TrackEnvelopeSchema = object({
15918
16413
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15919
16414
  * keeps every scalar the list surfaces actually render (ids, class(es),
15920
16415
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15921
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16416
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15922
16417
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15923
16418
  * `getTrack`. Mirrors the event-store `projection` convention
15924
16419
  * (`getObjectEvents` et al.).
@@ -16054,7 +16549,21 @@ union([literal(1), literal(2)]);
16054
16549
  var LabelAttributionSchema = object({
16055
16550
  stepId: string(),
16056
16551
  modelId: string().optional(),
16057
- decidedAt: number()
16552
+ decidedAt: number(),
16553
+ /**
16554
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16555
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16556
+ *
16557
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16558
+ * notification rule authored on "Gianluca" stopped matching the moment the
16559
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16560
+ * the thing that does not move, so it is what a rule matches on
16561
+ * (`NcConditions.identities`) and the text is what a human is shown.
16562
+ *
16563
+ * Absent when the label names no gallery row — a plate the OCR read but no
16564
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16565
+ */
16566
+ identityId: string().optional()
16058
16567
  });
16059
16568
  /**
16060
16569
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16191,6 +16700,28 @@ var TrackSchema = object({
16191
16700
  * `=== true` and render nothing otherwise, never infer "no face".
16192
16701
  */
16193
16702
  hasFace: boolean().optional(),
16703
+ /**
16704
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16705
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16706
+ * so the passage is tracked once and as a VEHICLE.
16707
+ *
16708
+ * It exists because the fold's record was dishonest. D34 and the code both
16709
+ * said "the person is not lost — it is reported so both entities stay on the
16710
+ * record"; in fact the pair went into a per-processor RAM field behind an
16711
+ * accessor nobody called, and every durable surface said `vehicle`, full
16712
+ * stop. This is the composition note that makes the row true.
16713
+ *
16714
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16715
+ * person" is not an answer to "what is this" — both label tiers would refuse
16716
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16717
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16718
+ * and a `person` rule still does not fire for someone cycling past.
16719
+ *
16720
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16721
+ * the column, and every hub that predates the field, omits it. Test
16722
+ * `=== true` and render nothing otherwise — never infer "no rider".
16723
+ */
16724
+ hasRider: boolean().optional(),
16194
16725
  ...TrackFlagFields,
16195
16726
  ...TrackRetrainFields
16196
16727
  });
@@ -16540,7 +17071,10 @@ var RecentTracksQueryInput = object({
16540
17071
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16541
17072
  cursor: string().optional(),
16542
17073
  /** See {@link TrackProjectionSchema}. Default `full`. */
16543
- projection: TrackProjectionSchema.optional()
17074
+ projection: TrackProjectionSchema.optional(),
17075
+ /** Include stationary-promoted rows (parked objects). Default false: the
17076
+ * feed lists passages; parking records live on the stationary registry. */
17077
+ includeStationary: boolean().optional()
16544
17078
  });
16545
17079
  var RecentTracksPageSchema = object({
16546
17080
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16758,7 +17292,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16758
17292
  zone: TrackZoneFilterSchema.optional(),
16759
17293
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16760
17294
  * compatible — omitting the field keeps today's exact behaviour). */
16761
- projection: TrackProjectionSchema.optional()
17295
+ projection: TrackProjectionSchema.optional(),
17296
+ /** Include stationary-promoted rows (parked objects handed to the
17297
+ * stationary registry). Default false: the timeline lists passages,
17298
+ * not parking records (operator decision, 2026-08-15). */
17299
+ includeStationary: boolean().optional()
16762
17300
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16763
17301
  kind: "mutation",
16764
17302
  auth: "admin"
@@ -16922,11 +17460,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16922
17460
  auth: "admin"
16923
17461
  }), method(object({
16924
17462
  eventId: string(),
16925
- kind: MediaFileKindEnum.optional()
17463
+ kind: MediaFileKindEnum.optional(),
17464
+ deviceId: number()
17465
+ }), array(MediaFileSchema).readonly()), method(object({
17466
+ trackId: string(),
17467
+ kinds: array(MediaFileKindEnum).optional(),
17468
+ deviceId: number()
16926
17469
  }), array(MediaFileSchema).readonly()), method(object({
16927
17470
  trackId: string(),
16928
- kinds: array(MediaFileKindEnum).optional()
16929
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17471
+ deviceId: number()
17472
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16930
17473
  kind: "mutation",
16931
17474
  auth: "admin"
16932
17475
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17626,6 +18169,17 @@ var maxSessionHoldMsField = {
17626
18169
  default: 12e4,
17627
18170
  step: 5e3
17628
18171
  };
18172
+ /**
18173
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18174
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18175
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18176
+ */
18177
+ var audioMotionWindowMsField = {
18178
+ min: 5e3,
18179
+ max: 6e5,
18180
+ default: 9e4,
18181
+ step: 5e3
18182
+ };
17629
18183
  var motionFpsField = {
17630
18184
  min: 1,
17631
18185
  max: 30,
@@ -17657,7 +18211,7 @@ var detectionFpsField = {
17657
18211
  var occupancyRecheckSecField = {
17658
18212
  min: 0,
17659
18213
  max: 300,
17660
- default: 30,
18214
+ default: 300,
17661
18215
  step: 5
17662
18216
  };
17663
18217
  var occupancyRecheckFramesField = {
@@ -17802,6 +18356,27 @@ var RunnerCameraConfigSchema = object({
17802
18356
  * resolved `CameraDetectionConfig`.
17803
18357
  */
17804
18358
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18359
+ /**
18360
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18361
+ * 'on-motion'` audio window, measured from the LAST motion event.
18362
+ *
18363
+ * This exists because the falling edge cannot be relied on. Camera-native
18364
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18365
+ * its email-push SMTP path both emit `detected: true` and never the
18366
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18367
+ * onboard-only camera a window that closed only on `detected: false` never
18368
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18369
+ * battery camera, the one failure mode the mode exists to prevent.
18370
+ *
18371
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18372
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18373
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18374
+ *
18375
+ * Not consumed by the runner: carried here so it shares the per-camera
18376
+ * device-settings surface with `motionCooldownMs`, exactly like
18377
+ * `maxSessionHoldMs`.
18378
+ */
18379
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17805
18380
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17806
18381
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17807
18382
  motionStreamId: string(),
@@ -17897,7 +18472,7 @@ var RunnerCameraConfigSchema = object({
17897
18472
  */
17898
18473
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17899
18474
  });
17900
- 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;
18475
+ 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;
17901
18476
  /**
17902
18477
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17903
18478
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -19002,7 +19577,16 @@ targets: array(object({
19002
19577
  /** A sleeping battery camera: the frame is deliberately stale and will
19003
19578
  * NOT refresh in the background. A surface should say so rather than
19004
19579
  * present it as current. */
19005
- sleeping: boolean()
19580
+ sleeping: boolean(),
19581
+ /** Current device state rendered over the cached frame. State images
19582
+ * remain authoritative even when their photographic background is
19583
+ * old; null means the link must carry a current camera frame. */
19584
+ stateReason: _enum([
19585
+ "disabled",
19586
+ "sleeping",
19587
+ "unreachable",
19588
+ "waking"
19589
+ ]).nullable()
19006
19590
  })))
19007
19591
  },
19008
19592
  status: {
@@ -20662,6 +21246,25 @@ var BatteryStatusSchema = object({
20662
21246
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20663
21247
  lastUpdated: number(),
20664
21248
  /**
21249
+ * Ms epoch of the last time the device PROVED it was reachable — a
21250
+ * completed firmware round-trip, an observed wake, or an inbound push
21251
+ * (firmware event, email). `0`/absent = never since this slice was born.
21252
+ *
21253
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21254
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21255
+ * for the radio, because a poll that confirms reachability is the same
21256
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21257
+ * single derivation every consumer must use; no surface computes its own.
21258
+ *
21259
+ * It is deliberately NOT a clock in the
21260
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21261
+ * observation itself, and it is the only thing a 30-hour silence is
21262
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21263
+ * Reolink provider) so a value that means "recently" cannot cost a
21264
+ * SQLite commit per round-trip.
21265
+ */
21266
+ lastContactAt: number().optional(),
21267
+ /**
20665
21268
  * True when the source is a BINARY low-battery indicator (HA
20666
21269
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20667
21270
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22934,54 +23537,139 @@ var TalkAudioCodecSchema = _enum([
22934
23537
  "g711ulaw",
22935
23538
  "g711alaw"
22936
23539
  ]);
22937
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22938
- sessionId: string(),
22939
- sdpOffer: string()
22940
- }), {
22941
- kind: "mutation",
22942
- auth: "admin"
22943
- }), method(object({
22944
- deviceId: number(),
22945
- sessionId: string(),
22946
- sdpAnswer: string()
22947
- }), _void(), {
22948
- kind: "mutation",
22949
- auth: "admin"
22950
- }), method(object({
22951
- deviceId: number(),
22952
- sessionId: string()
22953
- }), _void(), {
22954
- kind: "mutation",
22955
- auth: "admin"
22956
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22957
- kind: "mutation",
22958
- auth: "admin"
22959
- }), method(object({
22960
- deviceId: number(),
22961
- /** Audio bytes for ONE frame, base64-encoded so the payload
22962
- * survives tRPC JSON serialization. */
22963
- audioBase64: string(),
22964
- /** Wire codec of the payload. Omit to let the provider default
22965
- * to its native expected format (s16le @ provider-native rate,
22966
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22967
- codec: TalkAudioCodecSchema.optional(),
22968
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22969
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22970
- sampleRate: number().int().positive().optional(),
22971
- /** Channel count. Default 1. */
22972
- channels: number().int().positive().optional(),
22973
- /** Sequence number for ordering / dropping out-of-order frames. */
22974
- sequenceNumber: number().int()
22975
- }), object({ accepted: boolean() }), {
22976
- kind: "mutation",
22977
- auth: "admin"
22978
- }), method(object({ deviceId: number() }), _void(), {
22979
- kind: "mutation",
22980
- auth: "admin"
22981
- }), object({
22982
- deviceId: number(),
22983
- status: IntercomStatusSchema
22984
- });
23540
+ var intercomCapability = {
23541
+ name: "intercom",
23542
+ scope: "device",
23543
+ deviceNative: true,
23544
+ mode: "singleton",
23545
+ deviceTypes: [DeviceType.Camera],
23546
+ methods: {
23547
+ /**
23548
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23549
+ * offer with a single sendonly audio m-line the client answers
23550
+ * (client → server direction). The server wakes battery cams
23551
+ * transparently before opening the upstream talk channel.
23552
+ */
23553
+ startSession: method(object({ deviceId: number() }), object({
23554
+ sessionId: string(),
23555
+ sdpOffer: string()
23556
+ }), {
23557
+ kind: "mutation",
23558
+ auth: "admin"
23559
+ }),
23560
+ handleAnswer: method(object({
23561
+ deviceId: number(),
23562
+ sessionId: string(),
23563
+ sdpAnswer: string()
23564
+ }), _void(), {
23565
+ kind: "mutation",
23566
+ auth: "admin"
23567
+ }),
23568
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23569
+ stopSession: method(object({
23570
+ deviceId: number(),
23571
+ sessionId: string()
23572
+ }), _void(), {
23573
+ kind: "mutation",
23574
+ auth: "admin"
23575
+ }),
23576
+ /**
23577
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23578
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23579
+ * harnesses) that already have decoded PCM frames and just need a
23580
+ * direct path onto the camera's talk channel. Mutually exclusive
23581
+ * with `startSession` (an active WebRTC session must be stopped
23582
+ * before a raw-PCM session can be opened on the same device, and
23583
+ * vice versa).
23584
+ */
23585
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23586
+ kind: "mutation",
23587
+ auth: "admin"
23588
+ }),
23589
+ /**
23590
+ * Push one chunk of talk-back audio onto the active talk session.
23591
+ * The cap is codec-agnostic: the caller declares (or omits) the
23592
+ * wire format via `codec`; the provider decides between passthrough
23593
+ * (when the wire codec matches the camera's native talk channel),
23594
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23595
+ *
23596
+ * Callers do NOT need to know the camera's wire format or sample
23597
+ * rate — that information lives entirely inside the provider.
23598
+ *
23599
+ * Sequence numbers MUST be monotonic per talk session; older frames
23600
+ * arriving after newer ones are dropped to avoid smearing the
23601
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23602
+ * predictor would corrupt with re-ordering).
23603
+ */
23604
+ pushTalkAudio: method(object({
23605
+ deviceId: number(),
23606
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23607
+ * survives tRPC JSON serialization. */
23608
+ audioBase64: string(),
23609
+ /** Wire codec of the payload. Omit to let the provider default
23610
+ * to its native expected format (s16le @ provider-native rate,
23611
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23612
+ codec: TalkAudioCodecSchema.optional(),
23613
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23614
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23615
+ sampleRate: number().int().positive().optional(),
23616
+ /** Channel count. Default 1. */
23617
+ channels: number().int().positive().optional(),
23618
+ /** Sequence number for ordering / dropping out-of-order frames. */
23619
+ sequenceNumber: number().int()
23620
+ }), object({ accepted: boolean() }), {
23621
+ kind: "mutation",
23622
+ auth: "admin"
23623
+ }),
23624
+ /** Close the raw-PCM talk session. Idempotent. */
23625
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23626
+ kind: "mutation",
23627
+ auth: "admin"
23628
+ })
23629
+ },
23630
+ events: { onStatusChanged: { data: object({
23631
+ deviceId: number(),
23632
+ status: IntercomStatusSchema
23633
+ }) } },
23634
+ status: {
23635
+ schema: IntercomStatusSchema,
23636
+ kind: "command-driven"
23637
+ },
23638
+ /**
23639
+ * Runtime-state slice — mirrored by the kernel.
23640
+ *
23641
+ * The cap declared `status` and nothing else, so the only two sources an
23642
+ * exporter has for a value — the `device.state-changed` slice event and the
23643
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23644
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23645
+ * have been published and never received a value, which is the defect the
23646
+ * export's two classification tables exist to prevent (177 of them, once), so
23647
+ * `intercom` was excluded rather than exported.
23648
+ *
23649
+ * The shape is the status shape: there is exactly one truth about talk-back
23650
+ * and duplicating it into a second schema is how two halves of one capability
23651
+ * come to disagree. Providers write it through
23652
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23653
+ * and close a session, and seed it at registration so the slice exists before
23654
+ * the first session rather than after it.
23655
+ *
23656
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23657
+ * session handle, so a session torn down by a transport death that never
23658
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23659
+ * session or the next restart. That is why the slice is `session` and not
23660
+ * `restored` — a restart must never restore "talking".
23661
+ */
23662
+ runtimeState: IntercomStatusSchema,
23663
+ /**
23664
+ * Runtime-state durability: **session** — `talking` describes a live audio
23665
+ * session, which by definition does not survive the process that held it.
23666
+ * Restoring it would publish a camera as talking to nobody.
23667
+ *
23668
+ * See `RuntimeStateDurability`. Enforced by
23669
+ * `scripts/check-runtime-state-durability.ts`.
23670
+ */
23671
+ durability: "session"
23672
+ };
22985
23673
  /**
22986
23674
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22987
23675
  * with a mowing lifecycle plus a dock action.
@@ -25678,7 +26366,7 @@ method(object({
25678
26366
  toMs: number()
25679
26367
  }), RecordingAvailabilitySchema, {
25680
26368
  kind: "query",
25681
- auth: "admin"
26369
+ auth: "protected"
25682
26370
  }), method(object({
25683
26371
  deviceId: number(),
25684
26372
  fromMs: number(),
@@ -25686,14 +26374,14 @@ method(object({
25686
26374
  tzOffsetMinutes: number()
25687
26375
  }), RecordingDaysSchema, {
25688
26376
  kind: "query",
25689
- auth: "admin"
26377
+ auth: "protected"
25690
26378
  }), method(object({
25691
26379
  deviceId: number(),
25692
26380
  fromMs: number(),
25693
26381
  toMs: number()
25694
26382
  }), RecordingManifestSchema, {
25695
26383
  kind: "query",
25696
- auth: "admin"
26384
+ auth: "protected"
25697
26385
  }), method(object({}), RecordingStorageUsageSchema, {
25698
26386
  kind: "query",
25699
26387
  auth: "admin"
@@ -25983,14 +26671,77 @@ method(object({
25983
26671
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25984
26672
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25985
26673
  *
25986
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25987
- * derives the device-detail contribution; the provider carries NO hand-written
25988
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25989
- * every hysteresis flip / availability change; consumers never poll.
25990
- */
25991
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25992
- * be added without a wire break (matching falls back to any-condition refs). */
26674
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26675
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26676
+ * for the thing: a scene is a standing question about the property ("is the bin
26677
+ * still out"), and the operator's question is "which of my scenes have tripped",
26678
+ * across every camera at once — not "what does camera 617 think". Buried one
26679
+ * camera deep it also could not be found. The surface is now a top-level admin
26680
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26681
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26682
+ *
26683
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26684
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26685
+ * directions, so a registration nobody declares fails exactly as loudly as a
26686
+ * declaration nobody registers. The editor is imported directly by the page.
26687
+ *
26688
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26689
+ * availability change; consumers never poll.
26690
+ */
26691
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26692
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26693
+ * Open by design so more can be added without a wire break.
26694
+ *
26695
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26696
+ * not comparable, so "I have never seen this scene in this light" is reported
26697
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26698
+ * collapses the cosine and would latch a false alarm every single night. */
25993
26699
  var SceneConditionSchema = string();
26700
+ /**
26701
+ * What a scene does when the CURRENT light has no reference of its own.
26702
+ *
26703
+ * The lighting variants are not equally likely to exist. Almost every operator
26704
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26705
+ * scene that is only ever going to be asked about a daytime question ("is the
26706
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26707
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26708
+ * working without it rather than degrading into a permanent complaint.
26709
+ *
26710
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26711
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26712
+ * last covered light left it at, the latch is untouched, and the hysteresis
26713
+ * run is neither spent nor cleared. The scene resumes by itself at first
26714
+ * light. This is the only behaviour under which "I never captured IR" is a
26715
+ * configuration choice instead of a nightly fault.
26716
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26717
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26718
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26719
+ * cross-condition cosines are not comparable, so a day reference against a
26720
+ * true IR frame collapses and the scene reports a theft at 21:40.
26721
+ *
26722
+ * Never applies when the scene has NO comparable reference at all — that is
26723
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26724
+ * there would hide a scene the operator never finished setting up.
26725
+ */
26726
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26727
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26728
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26729
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26730
+ * and never counts toward hysteresis in either direction. */
26731
+ var SceneVerdictSchema = _enum([
26732
+ "matched",
26733
+ "diverged",
26734
+ "unknown"
26735
+ ]);
26736
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26737
+ * silence that reads as "nothing has happened". */
26738
+ var SceneUnavailableSchema = _enum([
26739
+ "no-reference-for-condition",
26740
+ "view-shifted",
26741
+ "no-vision-profile",
26742
+ "encoder-model-changed",
26743
+ "no-snapshot"
26744
+ ]);
25994
26745
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25995
26746
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25996
26747
  var SceneReferenceSchema = object({
@@ -25998,7 +26749,14 @@ var SceneReferenceSchema = object({
25998
26749
  modelId: string(),
25999
26750
  condition: SceneConditionSchema,
26000
26751
  capturedAt: number(),
26001
- thumbnailMediaId: string().optional()
26752
+ thumbnailMediaId: string().optional(),
26753
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26754
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26755
+ * normalized rect frame a different piece of world, and the scene would
26756
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26757
+ * when hysteresis is about to flip — one extra encode per candidate
26758
+ * transition, not per poll. */
26759
+ anchorEmbedding: array(number()).optional()
26002
26760
  });
26003
26761
  var SceneMonitorStateSchema = object({
26004
26762
  id: string(),
@@ -26020,6 +26778,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26020
26778
  profileId: string().optional(),
26021
26779
  hysteresisCount: number().int().positive()
26022
26780
  })]);
26781
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26782
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26783
+ * out in silence rather than reporting a fault every night. */
26784
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26785
+ /**
26786
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26787
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26788
+ *
26789
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26790
+ * fail-open: a notification suppressed is the worse error there, but a vision
26791
+ * model that timed out has not told us the bin is gone, and a latch is a
26792
+ * stateful claim that costs the operator a trip to reset.
26793
+ */
26794
+ var SceneConfirmSchema = object({
26795
+ enabled: boolean().default(false),
26796
+ prompt: string().min(1).max(1e3),
26797
+ profileId: string().optional(),
26798
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26799
+ maxImagePx: number().int().min(64).max(2048).default(448),
26800
+ /** What a timeout / unavailable model means for the PENDING flip. */
26801
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26802
+ });
26023
26803
  var SceneMonitorSchema = object({
26024
26804
  id: string(),
26025
26805
  label: string(),
@@ -26038,7 +26818,56 @@ var SceneMonitorSchema = object({
26038
26818
  lastConfidence: number().nullable(),
26039
26819
  currentCondition: SceneConditionSchema.nullable(),
26040
26820
  availability: _enum(["ok", "unavailable"]),
26041
- unavailableReason: string().nullable()
26821
+ unavailableReason: string().nullable(),
26822
+ /** Which state is "the initial screen". `null` until the first capture. */
26823
+ baselineStateId: string().nullable(),
26824
+ /** Which boolean drives notification rules and any export. */
26825
+ emit: _enum(["latched", "live"]).default("latched"),
26826
+ /** Live: does the region match the baseline RIGHT NOW. */
26827
+ verdict: SceneVerdictSchema,
26828
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26829
+ latched: boolean(),
26830
+ /** Last reset (or creation). */
26831
+ armedAt: number(),
26832
+ divergedAt: number().nullable(),
26833
+ restoredAt: number().nullable(),
26834
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26835
+ * during the window DISCARDS the observation — a car pulling up in front of
26836
+ * the bin must not be able to spend hysteresis credit. */
26837
+ quietSeconds: number().int().min(0).max(3600).default(60),
26838
+ /** An observation only advances the pending count when it is at least this
26839
+ * far from the previously counted one, so N agreeing checks span real time
26840
+ * rather than N adjacent polls inside one occlusion. */
26841
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26842
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26843
+ confirm: SceneConfirmSchema.optional(),
26844
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26845
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26846
+ /** Clear the latch on its own when the scene matches again? Default false —
26847
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26848
+ * automation can react to the bin coming back without the operator's own
26849
+ * alarm silently clearing itself. */
26850
+ autoRestore: boolean().default(false),
26851
+ /** What to do when the current light has no reference of its own. See
26852
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26853
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26854
+ /**
26855
+ * The light whose checks are currently being SAT OUT under
26856
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26857
+ *
26858
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26859
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26860
+ * nothing captured in this light"* in the same calm voice as the coverage
26861
+ * line, because the alternative is a scene that silently stops answering
26862
+ * after sunset with nothing anywhere saying why. A skipped check must never
26863
+ * read as a broken one.
26864
+ */
26865
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26866
+ /** Named cause when `verdict === 'unknown'`. */
26867
+ unavailable: SceneUnavailableSchema.nullable(),
26868
+ /** Conditions that have at least one comparable reference — the coverage line
26869
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26870
+ coveredConditions: array(SceneConditionSchema)
26042
26871
  });
26043
26872
  var SceneMonitorStatusSchema = object({
26044
26873
  monitors: array(SceneMonitorSchema),
@@ -26051,12 +26880,6 @@ var sceneMonitorCapability = {
26051
26880
  kind: "wrapper",
26052
26881
  defaultActive: true,
26053
26882
  deviceTypes: [DeviceType.Camera],
26054
- deviceConfig: { ui: {
26055
- kind: "widget",
26056
- widgetId: "host/scene-monitor-editor",
26057
- tab: "scenes",
26058
- label: "Scenes"
26059
- } },
26060
26883
  methods: {
26061
26884
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26062
26885
  createScene: method(object({
@@ -26087,7 +26910,15 @@ var sceneMonitorCapability = {
26087
26910
  "both"
26088
26911
  ]).optional(),
26089
26912
  checkIntervalSec: number().optional(),
26090
- check: SceneCheckSchema.optional()
26913
+ check: SceneCheckSchema.optional(),
26914
+ emit: _enum(["latched", "live"]).optional(),
26915
+ quietSeconds: number().int().min(0).max(3600).optional(),
26916
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26917
+ anchorThreshold: number().min(0).max(1).optional(),
26918
+ autoRestore: boolean().optional(),
26919
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26920
+ /** `null` clears the vision-model adjudicator. */
26921
+ confirm: SceneConfirmSchema.nullable().optional()
26091
26922
  })
26092
26923
  }), _void(), {
26093
26924
  kind: "mutation",
@@ -26128,6 +26959,26 @@ var sceneMonitorCapability = {
26128
26959
  }), _void(), {
26129
26960
  kind: "mutation",
26130
26961
  auth: "admin"
26962
+ }),
26963
+ /**
26964
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26965
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26966
+ * "reset" in the operator's head means *this is the new normal*, and
26967
+ * re-capture is what makes the feature self-healing against slow drift
26968
+ * instead of failing silently weeks later.
26969
+ *
26970
+ * Reachable from three surfaces on this one mutation: the scene card, a
26971
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
26972
+ * no new Notification-Center code at all), and tRPC for scripts.
26973
+ */
26974
+ resetScene: method(object({
26975
+ deviceId: number(),
26976
+ monitorId: string(),
26977
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
26978
+ recapture: boolean().optional()
26979
+ }), _void(), {
26980
+ kind: "mutation",
26981
+ auth: "admin"
26131
26982
  })
26132
26983
  },
26133
26984
  status: {
@@ -26370,13 +27221,63 @@ var CamStreamDescriptorSchema = object({
26370
27221
  * set of stream descriptors it can offer for the device, synchronously, so the
26371
27222
  * broker can reconcile its registry against the authoritative provider state.
26372
27223
  */
27224
+ /**
27225
+ * The catalog as a DURABLE fact rather than a live answer.
27226
+ *
27227
+ * A battery camera's descriptors are profile-stable — they change when the
27228
+ * operator rewrites an encoder profile, not minute to minute — but building
27229
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27230
+ * provider is allowed to build them exactly once per profile and must serve
27231
+ * every later pull from a cache.
27232
+ *
27233
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27234
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27235
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27236
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27237
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27238
+ * which on a battery cam is most of the day. The camera was fine. The stream
27239
+ * was unreachable because the process had forgotten what the camera offers.
27240
+ *
27241
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27242
+ * declared collection, with the same `restored` durability `battery` uses for
27243
+ * the same reason: the last known value is the only value there is while the
27244
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27245
+ * is the DIAL that wakes a camera, never the catalog (D173).
27246
+ */
27247
+ var StreamCatalogStateSchema = object({
27248
+ /** The descriptors as last built from a real camera response. Never a guess:
27249
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27250
+ * one the camera itself once produced. */
27251
+ descriptors: array(CamStreamDescriptorSchema),
27252
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27253
+ * path decide whether the camera's own awake window is worth spending on a
27254
+ * re-read. */
27255
+ lastFetchedAt: number()
27256
+ });
26373
27257
  var streamCatalogCapability = {
26374
27258
  name: "stream-catalog",
26375
27259
  scope: "device",
26376
27260
  deviceNative: true,
26377
27261
  mode: "singleton",
26378
27262
  deviceTypes: [DeviceType.Camera],
26379
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
27263
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27264
+ runtimeState: StreamCatalogStateSchema,
27265
+ /**
27266
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27267
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27268
+ * camera that cannot be watched at all until it happens to wake.
27269
+ *
27270
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27271
+ * build, and a build only runs when there is no cached copy (or the copy is
27272
+ * a day old and the camera is awake anyway).
27273
+ *
27274
+ * See `RuntimeStateDurability`. Enforced by
27275
+ * `scripts/check-runtime-state-durability.ts`.
27276
+ */
27277
+ durability: "restored",
27278
+ /** Clock field: written, but excluded from the compare that decides whether
27279
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27280
+ volatileStateFields: ["lastFetchedAt"]
26380
27281
  };
26381
27282
  /** One of the camera's stream profiles. */
26382
27283
  var StreamProfileSchema = _enum([
@@ -26631,12 +27532,64 @@ var NetworkAddressSchema = object({
26631
27532
  family: string(),
26632
27533
  internal: boolean()
26633
27534
  });
27535
+ /**
27536
+ * Provenance of the site coordinates, and the whole reason this is not just two
27537
+ * numbers.
27538
+ *
27539
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27540
+ * nothing overwrites it.
27541
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27542
+ * default that is right to a few kilometres beats the coarse UTC clock split
27543
+ * the sun-times consumers otherwise fall back to.
27544
+ *
27545
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27546
+ * own input will eventually trust the guess.
27547
+ */
27548
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27549
+ /**
27550
+ * The read shape: the location plus the honest state of the one-shot derivation.
27551
+ *
27552
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27553
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27554
+ * failed; the hub will NOT try again on its own — the fallback is declared
27555
+ * (consumers degrade to their own last resort) and the operator either types the
27556
+ * coordinates or presses detect.
27557
+ */
27558
+ var SiteLocationStatusSchema = object({
27559
+ location: object({
27560
+ /** WGS84 decimal degrees. */
27561
+ latitude: number().min(-90).max(90),
27562
+ longitude: number().min(-180).max(180),
27563
+ source: SiteLocationSourceSchema,
27564
+ /** Epoch ms the value was last written. */
27565
+ updatedAt: number(),
27566
+ /**
27567
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27568
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27569
+ */
27570
+ label: string().optional()
27571
+ }).nullable(),
27572
+ derivationAttemptedAt: number().nullable(),
27573
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27574
+ derivationError: string().nullable()
27575
+ });
27576
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27577
+ var SetSiteLocationInputSchema = object({
27578
+ latitude: number().min(-90).max(90),
27579
+ longitude: number().min(-180).max(180)
27580
+ }).nullable();
26634
27581
  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(), {
26635
27582
  kind: "mutation",
26636
27583
  auth: "admin"
26637
27584
  }), method(_void(), _void(), {
26638
27585
  kind: "mutation",
26639
27586
  auth: "admin"
27587
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27588
+ kind: "mutation",
27589
+ auth: "admin"
27590
+ }), method(_void(), SiteLocationStatusSchema, {
27591
+ kind: "mutation",
27592
+ auth: "admin"
26640
27593
  });
26641
27594
  /**
26642
27595
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27956,6 +28909,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27956
28909
  humiditySensor: humiditySensorCapability,
27957
28910
  image: imageCapability,
27958
28911
  imageSettings: imageSettingsCapability,
28912
+ intercom: intercomCapability,
27959
28913
  lawnMowerControl: lawnMowerControlCapability,
27960
28914
  lockControl: lockControlCapability,
27961
28915
  mediaPlayer: mediaPlayerCapability,
@@ -27974,6 +28928,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27974
28928
  sceneMonitor: sceneMonitorCapability,
27975
28929
  scriptRunner: scriptRunnerCapability,
27976
28930
  smoke: smokeCapability,
28931
+ streamCatalog: streamCatalogCapability,
27977
28932
  streamParams: streamParamsCapability,
27978
28933
  switch: switchCapability,
27979
28934
  tamper: tamperCapability,
@@ -28627,6 +29582,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28627
29582
  labels: ["probe not implemented"]
28628
29583
  };
28629
29584
  }
29585
+ /**
29586
+ * Top-level devices restored at once in {@link onRestoreDevices}.
29587
+ *
29588
+ * Four covers the fleets this ships to without turning a boot into a burst a
29589
+ * camera NVR answers with a refusal. A provider whose upstream is a single
29590
+ * session with a serial command channel (a Baichuan hub, an NVR that
29591
+ * serialises ISAPI) should lower it; nothing needs to raise it.
29592
+ */
29593
+ restoreConcurrency = 4;
28630
29594
  async restoreDevices(savedDevices) {
28631
29595
  await this.onRestoreDevices(savedDevices);
28632
29596
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -28658,15 +29622,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28658
29622
  */
28659
29623
  async onRestoreDevices(savedDevices) {
28660
29624
  const restored = /* @__PURE__ */ new Set();
28661
- for (const saved of savedDevices) {
28662
- if (saved.parentDeviceId !== null) continue;
29625
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
29626
+ const restoreOne = async (saved) => {
28663
29627
  const Class = this.deviceClasses[saved.type];
28664
29628
  if (!Class) {
28665
29629
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
28666
29630
  tags: { stableId: saved.stableId },
28667
29631
  meta: { type: saved.type }
28668
29632
  });
28669
- continue;
29633
+ return;
28670
29634
  }
28671
29635
  try {
28672
29636
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -28680,7 +29644,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28680
29644
  }
28681
29645
  });
28682
29646
  }
28683
- }
29647
+ };
29648
+ let nextTopLevel = 0;
29649
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
29650
+ for (;;) {
29651
+ const saved = topLevel[nextTopLevel++];
29652
+ if (saved === void 0) return;
29653
+ await restoreOne(saved);
29654
+ }
29655
+ }));
28684
29656
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
28685
29657
  for (const saved of childRows) {
28686
29658
  const Class = this.deviceClasses[saved.type];
@@ -30837,6 +31809,12 @@ Object.freeze({
30837
31809
  addonId: null,
30838
31810
  access: "create"
30839
31811
  },
31812
+ "llm.cancel": {
31813
+ capName: "llm",
31814
+ capScope: "system",
31815
+ addonId: null,
31816
+ access: "create"
31817
+ },
30840
31818
  "llm.deleteModel": {
30841
31819
  capName: "llm",
30842
31820
  capScope: "system",
@@ -30921,6 +31899,12 @@ Object.freeze({
30921
31899
  addonId: null,
30922
31900
  access: "view"
30923
31901
  },
31902
+ "llm.resolveModelRef": {
31903
+ capName: "llm",
31904
+ capScope: "system",
31905
+ addonId: null,
31906
+ access: "create"
31907
+ },
30924
31908
  "llm.setDefault": {
30925
31909
  capName: "llm",
30926
31910
  capScope: "system",
@@ -33087,6 +34071,12 @@ Object.freeze({
33087
34071
  addonId: null,
33088
34072
  access: "create"
33089
34073
  },
34074
+ "sceneMonitor.resetScene": {
34075
+ capName: "scene-monitor",
34076
+ capScope: "device",
34077
+ addonId: null,
34078
+ access: "delete"
34079
+ },
33090
34080
  "sceneMonitor.updateScene": {
33091
34081
  capName: "scene-monitor",
33092
34082
  capScope: "device",
@@ -33765,6 +34755,12 @@ Object.freeze({
33765
34755
  addonId: null,
33766
34756
  access: "create"
33767
34757
  },
34758
+ "system.detectSiteLocation": {
34759
+ capName: "system",
34760
+ capScope: "system",
34761
+ addonId: null,
34762
+ access: "create"
34763
+ },
33768
34764
  "system.featureFlags": {
33769
34765
  capName: "system",
33770
34766
  capScope: "system",
@@ -33783,6 +34779,12 @@ Object.freeze({
33783
34779
  addonId: null,
33784
34780
  access: "view"
33785
34781
  },
34782
+ "system.getSiteLocation": {
34783
+ capName: "system",
34784
+ capScope: "system",
34785
+ addonId: null,
34786
+ access: "view"
34787
+ },
33786
34788
  "system.health": {
33787
34789
  capName: "system",
33788
34790
  capScope: "system",
@@ -33807,6 +34809,12 @@ Object.freeze({
33807
34809
  addonId: null,
33808
34810
  access: "create"
33809
34811
  },
34812
+ "system.setSiteLocation": {
34813
+ capName: "system",
34814
+ capScope: "system",
34815
+ addonId: null,
34816
+ access: "create"
34817
+ },
33810
34818
  "terminalSession.adoptLegacyMonitor": {
33811
34819
  capName: "terminal-session",
33812
34820
  capScope: "system",
@@ -34378,6 +35386,1704 @@ Object.freeze({
34378
35386
  access: "create"
34379
35387
  }
34380
35388
  });
35389
+ Object.freeze({
35390
+ "accessories.setChildHidden": [{
35391
+ name: "childDeviceId",
35392
+ form: "single",
35393
+ optional: false
35394
+ }, {
35395
+ name: "deviceId",
35396
+ form: "single",
35397
+ optional: false
35398
+ }],
35399
+ "addonSettings.getDeviceSettings": [{
35400
+ name: "deviceId",
35401
+ form: "single",
35402
+ optional: false
35403
+ }],
35404
+ "addonSettings.updateDeviceSettings": [{
35405
+ name: "deviceId",
35406
+ form: "single",
35407
+ optional: false
35408
+ }],
35409
+ "alarmPanel.arm": [{
35410
+ name: "deviceId",
35411
+ form: "single",
35412
+ optional: false
35413
+ }],
35414
+ "alarmPanel.disarm": [{
35415
+ name: "deviceId",
35416
+ form: "single",
35417
+ optional: false
35418
+ }],
35419
+ "alarmPanel.trigger": [{
35420
+ name: "deviceId",
35421
+ form: "single",
35422
+ optional: false
35423
+ }],
35424
+ "audioAnalysis.resolveDeviceSettings": [{
35425
+ name: "deviceId",
35426
+ form: "single",
35427
+ optional: false
35428
+ }],
35429
+ "audioAnalyzer.classify": [{
35430
+ name: "deviceId",
35431
+ form: "single",
35432
+ optional: true
35433
+ }],
35434
+ "audioMetrics.getCurrentSnapshot": [{
35435
+ name: "deviceId",
35436
+ form: "single",
35437
+ optional: false
35438
+ }],
35439
+ "audioMetrics.getHistory": [{
35440
+ name: "deviceId",
35441
+ form: "single",
35442
+ optional: false
35443
+ }],
35444
+ "automationControl.disable": [{
35445
+ name: "deviceId",
35446
+ form: "single",
35447
+ optional: false
35448
+ }],
35449
+ "automationControl.enable": [{
35450
+ name: "deviceId",
35451
+ form: "single",
35452
+ optional: false
35453
+ }],
35454
+ "automationControl.trigger": [{
35455
+ name: "deviceId",
35456
+ form: "single",
35457
+ optional: false
35458
+ }],
35459
+ "battery.wakeForStream": [{
35460
+ name: "deviceId",
35461
+ form: "single",
35462
+ optional: false
35463
+ }],
35464
+ "brightness.setBrightness": [{
35465
+ name: "deviceId",
35466
+ form: "single",
35467
+ optional: false
35468
+ }],
35469
+ "button.press": [{
35470
+ name: "deviceId",
35471
+ form: "single",
35472
+ optional: false
35473
+ }],
35474
+ "cameraCredentials.getCredentials": [{
35475
+ name: "deviceId",
35476
+ form: "single",
35477
+ optional: false
35478
+ }],
35479
+ "cameraStreams.getBrokerStreams": [{
35480
+ name: "deviceId",
35481
+ form: "single",
35482
+ optional: false
35483
+ }],
35484
+ "cameraStreams.getCameraStreams": [{
35485
+ name: "deviceId",
35486
+ form: "single",
35487
+ optional: false
35488
+ }],
35489
+ "cameraStreams.getProfileRtspEntries": [{
35490
+ name: "deviceId",
35491
+ form: "single",
35492
+ optional: false
35493
+ }],
35494
+ "cameraStreams.getRtspEntries": [{
35495
+ name: "deviceId",
35496
+ form: "single",
35497
+ optional: false
35498
+ }],
35499
+ "cameraStreams.pickStream": [{
35500
+ name: "deviceId",
35501
+ form: "single",
35502
+ optional: false
35503
+ }],
35504
+ "climateControl.setFanMode": [{
35505
+ name: "deviceId",
35506
+ form: "single",
35507
+ optional: false
35508
+ }],
35509
+ "climateControl.setMode": [{
35510
+ name: "deviceId",
35511
+ form: "single",
35512
+ optional: false
35513
+ }],
35514
+ "climateControl.setPreset": [{
35515
+ name: "deviceId",
35516
+ form: "single",
35517
+ optional: false
35518
+ }],
35519
+ "climateControl.setSwingHorizontal": [{
35520
+ name: "deviceId",
35521
+ form: "single",
35522
+ optional: false
35523
+ }],
35524
+ "climateControl.setSwingVertical": [{
35525
+ name: "deviceId",
35526
+ form: "single",
35527
+ optional: false
35528
+ }],
35529
+ "climateControl.setTarget": [{
35530
+ name: "deviceId",
35531
+ form: "single",
35532
+ optional: false
35533
+ }],
35534
+ "climateControl.setTargetHumidity": [{
35535
+ name: "deviceId",
35536
+ form: "single",
35537
+ optional: false
35538
+ }],
35539
+ "climateControl.setTargetRange": [{
35540
+ name: "deviceId",
35541
+ form: "single",
35542
+ optional: false
35543
+ }],
35544
+ "color.setColor": [{
35545
+ name: "deviceId",
35546
+ form: "single",
35547
+ optional: false
35548
+ }],
35549
+ "consumables.reset": [{
35550
+ name: "deviceId",
35551
+ form: "single",
35552
+ optional: false
35553
+ }],
35554
+ "control.setValue": [{
35555
+ name: "deviceId",
35556
+ form: "single",
35557
+ optional: false
35558
+ }],
35559
+ "cover.close": [{
35560
+ name: "deviceId",
35561
+ form: "single",
35562
+ optional: false
35563
+ }],
35564
+ "cover.open": [{
35565
+ name: "deviceId",
35566
+ form: "single",
35567
+ optional: false
35568
+ }],
35569
+ "cover.setPosition": [{
35570
+ name: "deviceId",
35571
+ form: "single",
35572
+ optional: false
35573
+ }],
35574
+ "cover.setTiltPosition": [{
35575
+ name: "deviceId",
35576
+ form: "single",
35577
+ optional: false
35578
+ }],
35579
+ "cover.stop": [{
35580
+ name: "deviceId",
35581
+ form: "single",
35582
+ optional: false
35583
+ }],
35584
+ "dayNight.getOptions": [{
35585
+ name: "deviceId",
35586
+ form: "single",
35587
+ optional: false
35588
+ }],
35589
+ "dayNight.setSettings": [{
35590
+ name: "deviceId",
35591
+ form: "single",
35592
+ optional: false
35593
+ }],
35594
+ "decoder.createSession": [{
35595
+ name: "deviceId",
35596
+ form: "single",
35597
+ optional: true
35598
+ }],
35599
+ "deviceAdoption.release": [{
35600
+ name: "camDeviceId",
35601
+ form: "single",
35602
+ optional: false
35603
+ }],
35604
+ "deviceAdoption.resync": [{
35605
+ name: "camDeviceId",
35606
+ form: "single",
35607
+ optional: false
35608
+ }],
35609
+ "deviceDiscovery.adoptDevice": [{
35610
+ name: "deviceId",
35611
+ form: "single",
35612
+ optional: false
35613
+ }],
35614
+ "deviceDiscovery.listDiscovered": [{
35615
+ name: "deviceId",
35616
+ form: "single",
35617
+ optional: false
35618
+ }],
35619
+ "deviceDiscovery.refreshDiscovery": [{
35620
+ name: "deviceId",
35621
+ form: "single",
35622
+ optional: false
35623
+ }],
35624
+ "deviceDiscovery.releaseDevice": [{
35625
+ name: "childDeviceId",
35626
+ form: "single",
35627
+ optional: false
35628
+ }, {
35629
+ name: "deviceId",
35630
+ form: "single",
35631
+ optional: false
35632
+ }],
35633
+ "deviceManager.adoptionRelease": [{
35634
+ name: "camDeviceId",
35635
+ form: "single",
35636
+ optional: false
35637
+ }],
35638
+ "deviceManager.adoptionResync": [{
35639
+ name: "camDeviceId",
35640
+ form: "single",
35641
+ optional: false
35642
+ }],
35643
+ "deviceManager.applyInitialMeta": [{
35644
+ name: "deviceId",
35645
+ form: "single",
35646
+ optional: false
35647
+ }, {
35648
+ name: "linkDeviceId",
35649
+ form: "single",
35650
+ optional: true
35651
+ }],
35652
+ "deviceManager.disable": [{
35653
+ name: "deviceId",
35654
+ form: "single",
35655
+ optional: false
35656
+ }],
35657
+ "deviceManager.enable": [{
35658
+ name: "deviceId",
35659
+ form: "single",
35660
+ optional: false
35661
+ }],
35662
+ "deviceManager.getBindings": [{
35663
+ name: "deviceId",
35664
+ form: "single",
35665
+ optional: false
35666
+ }],
35667
+ "deviceManager.getChildren": [{
35668
+ name: "parentDeviceId",
35669
+ form: "single",
35670
+ optional: false
35671
+ }],
35672
+ "deviceManager.getConfigSchema": [{
35673
+ name: "deviceId",
35674
+ form: "single",
35675
+ optional: false
35676
+ }],
35677
+ "deviceManager.getDevice": [{
35678
+ name: "deviceId",
35679
+ form: "single",
35680
+ optional: false
35681
+ }],
35682
+ "deviceManager.getDeviceAggregate": [{
35683
+ name: "deviceId",
35684
+ form: "single",
35685
+ optional: false
35686
+ }],
35687
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35688
+ name: "deviceId",
35689
+ form: "single",
35690
+ optional: false
35691
+ }],
35692
+ "deviceManager.getDeviceSettingsAggregate": [{
35693
+ name: "deviceId",
35694
+ form: "single",
35695
+ optional: false
35696
+ }],
35697
+ "deviceManager.getDeviceStatusAggregate": [{
35698
+ name: "deviceId",
35699
+ form: "single",
35700
+ optional: false
35701
+ }],
35702
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35703
+ name: "deviceIds",
35704
+ form: "array",
35705
+ optional: false
35706
+ }],
35707
+ "deviceManager.getLinkedDevices": [{
35708
+ name: "deviceId",
35709
+ form: "single",
35710
+ optional: false
35711
+ }],
35712
+ "deviceManager.getSettingsSchema": [{
35713
+ name: "deviceId",
35714
+ form: "single",
35715
+ optional: false
35716
+ }],
35717
+ "deviceManager.getStreamProfileMap": [{
35718
+ name: "deviceId",
35719
+ form: "single",
35720
+ optional: false
35721
+ }],
35722
+ "deviceManager.getStreamSources": [{
35723
+ name: "deviceId",
35724
+ form: "single",
35725
+ optional: false
35726
+ }],
35727
+ "deviceManager.getWireableFields": [{
35728
+ name: "deviceId",
35729
+ form: "single",
35730
+ optional: false
35731
+ }],
35732
+ "deviceManager.loadConfig": [{
35733
+ name: "deviceId",
35734
+ form: "single",
35735
+ optional: false
35736
+ }],
35737
+ "deviceManager.loadMeta": [{
35738
+ name: "deviceId",
35739
+ form: "single",
35740
+ optional: false
35741
+ }],
35742
+ "deviceManager.loadRuntimeState": [{
35743
+ name: "deviceId",
35744
+ form: "single",
35745
+ optional: false
35746
+ }],
35747
+ "deviceManager.persistConfig": [{
35748
+ name: "deviceId",
35749
+ form: "single",
35750
+ optional: false
35751
+ }],
35752
+ "deviceManager.probeStreams": [{
35753
+ name: "deviceId",
35754
+ form: "single",
35755
+ optional: false
35756
+ }],
35757
+ "deviceManager.registerDevice": [{
35758
+ name: "parentDeviceId",
35759
+ form: "single",
35760
+ optional: true
35761
+ }],
35762
+ "deviceManager.remove": [{
35763
+ name: "deviceId",
35764
+ form: "single",
35765
+ optional: false
35766
+ }],
35767
+ "deviceManager.removeDevice": [{
35768
+ name: "deviceId",
35769
+ form: "single",
35770
+ optional: false
35771
+ }],
35772
+ "deviceManager.runDeviceAction": [{
35773
+ name: "deviceId",
35774
+ form: "single",
35775
+ optional: false
35776
+ }],
35777
+ "deviceManager.setChildLayout": [{
35778
+ name: "deviceId",
35779
+ form: "single",
35780
+ optional: false
35781
+ }],
35782
+ "deviceManager.setDisabled": [{
35783
+ name: "deviceId",
35784
+ form: "single",
35785
+ optional: false
35786
+ }],
35787
+ "deviceManager.setDisplay": [{
35788
+ name: "deviceId",
35789
+ form: "single",
35790
+ optional: false
35791
+ }],
35792
+ "deviceManager.setIntegrationId": [{
35793
+ name: "deviceId",
35794
+ form: "single",
35795
+ optional: false
35796
+ }],
35797
+ "deviceManager.setLinkDeviceId": [{
35798
+ name: "deviceId",
35799
+ form: "single",
35800
+ optional: false
35801
+ }, {
35802
+ name: "linkDeviceId",
35803
+ form: "single",
35804
+ optional: true
35805
+ }],
35806
+ "deviceManager.setLocation": [{
35807
+ name: "deviceId",
35808
+ form: "single",
35809
+ optional: false
35810
+ }],
35811
+ "deviceManager.setMetadata": [{
35812
+ name: "deviceId",
35813
+ form: "single",
35814
+ optional: false
35815
+ }],
35816
+ "deviceManager.setName": [{
35817
+ name: "deviceId",
35818
+ form: "single",
35819
+ optional: false
35820
+ }],
35821
+ "deviceManager.setPrimaryChildEntityId": [{
35822
+ name: "deviceId",
35823
+ form: "single",
35824
+ optional: false
35825
+ }],
35826
+ "deviceManager.setRole": [{
35827
+ name: "deviceId",
35828
+ form: "single",
35829
+ optional: false
35830
+ }],
35831
+ "deviceManager.setStreamProfileMap": [{
35832
+ name: "deviceId",
35833
+ form: "single",
35834
+ optional: false
35835
+ }],
35836
+ "deviceManager.setType": [{
35837
+ name: "deviceId",
35838
+ form: "single",
35839
+ optional: false
35840
+ }],
35841
+ "deviceManager.setWrapperActive": [{
35842
+ name: "deviceId",
35843
+ form: "single",
35844
+ optional: false
35845
+ }],
35846
+ "deviceManager.testField": [{
35847
+ name: "deviceId",
35848
+ form: "single",
35849
+ optional: false
35850
+ }],
35851
+ "deviceManager.updateConfig": [{
35852
+ name: "deviceId",
35853
+ form: "single",
35854
+ optional: false
35855
+ }],
35856
+ "deviceManager.updateDeviceField": [{
35857
+ name: "deviceId",
35858
+ form: "single",
35859
+ optional: false
35860
+ }],
35861
+ "deviceManager.updateDeviceFieldsBatch": [{
35862
+ name: "deviceId",
35863
+ form: "single",
35864
+ optional: false
35865
+ }],
35866
+ "deviceOps.getConfigEntries": [{
35867
+ name: "deviceId",
35868
+ form: "single",
35869
+ optional: false
35870
+ }],
35871
+ "deviceOps.getRawState": [{
35872
+ name: "deviceId",
35873
+ form: "single",
35874
+ optional: false
35875
+ }],
35876
+ "deviceOps.getSettingsSchema": [{
35877
+ name: "deviceId",
35878
+ form: "single",
35879
+ optional: false
35880
+ }],
35881
+ "deviceOps.getStreamSources": [{
35882
+ name: "deviceId",
35883
+ form: "single",
35884
+ optional: false
35885
+ }],
35886
+ "deviceOps.removeDevice": [{
35887
+ name: "deviceId",
35888
+ form: "single",
35889
+ optional: false
35890
+ }],
35891
+ "deviceOps.runAction": [{
35892
+ name: "deviceId",
35893
+ form: "single",
35894
+ optional: false
35895
+ }],
35896
+ "deviceOps.setConfig": [{
35897
+ name: "deviceId",
35898
+ form: "single",
35899
+ optional: false
35900
+ }],
35901
+ "deviceState.getCapSlice": [{
35902
+ name: "deviceId",
35903
+ form: "single",
35904
+ optional: false
35905
+ }],
35906
+ "deviceState.getSnapshot": [{
35907
+ name: "deviceId",
35908
+ form: "single",
35909
+ optional: false
35910
+ }],
35911
+ "deviceState.setCapSlice": [{
35912
+ name: "deviceId",
35913
+ form: "single",
35914
+ optional: false
35915
+ }],
35916
+ "events.getEventClipUrl": [{
35917
+ name: "deviceId",
35918
+ form: "single",
35919
+ optional: false
35920
+ }],
35921
+ "events.getEvents": [{
35922
+ name: "deviceId",
35923
+ form: "single",
35924
+ optional: false
35925
+ }],
35926
+ "events.getEventThumbnail": [{
35927
+ name: "deviceId",
35928
+ form: "single",
35929
+ optional: false
35930
+ }],
35931
+ "faceGallery.getFaceByTrack": [{
35932
+ name: "deviceId",
35933
+ form: "single",
35934
+ optional: false
35935
+ }],
35936
+ "faceGallery.listRecentFaces": [{
35937
+ name: "deviceId",
35938
+ form: "single",
35939
+ optional: true
35940
+ }],
35941
+ "fanControl.setDirection": [{
35942
+ name: "deviceId",
35943
+ form: "single",
35944
+ optional: false
35945
+ }],
35946
+ "fanControl.setOscillating": [{
35947
+ name: "deviceId",
35948
+ form: "single",
35949
+ optional: false
35950
+ }],
35951
+ "fanControl.setPercentage": [{
35952
+ name: "deviceId",
35953
+ form: "single",
35954
+ optional: false
35955
+ }],
35956
+ "fanControl.setPreset": [{
35957
+ name: "deviceId",
35958
+ form: "single",
35959
+ optional: false
35960
+ }],
35961
+ "humidifier.setMode": [{
35962
+ name: "deviceId",
35963
+ form: "single",
35964
+ optional: false
35965
+ }],
35966
+ "humidifier.setOn": [{
35967
+ name: "deviceId",
35968
+ form: "single",
35969
+ optional: false
35970
+ }],
35971
+ "humidifier.setTargetHumidity": [{
35972
+ name: "deviceId",
35973
+ form: "single",
35974
+ optional: false
35975
+ }],
35976
+ "imageSettings.getOptions": [{
35977
+ name: "deviceId",
35978
+ form: "single",
35979
+ optional: false
35980
+ }],
35981
+ "imageSettings.setSettings": [{
35982
+ name: "deviceId",
35983
+ form: "single",
35984
+ optional: false
35985
+ }],
35986
+ "intercom.endTalkSession": [{
35987
+ name: "deviceId",
35988
+ form: "single",
35989
+ optional: false
35990
+ }],
35991
+ "intercom.handleAnswer": [{
35992
+ name: "deviceId",
35993
+ form: "single",
35994
+ optional: false
35995
+ }],
35996
+ "intercom.pushTalkAudio": [{
35997
+ name: "deviceId",
35998
+ form: "single",
35999
+ optional: false
36000
+ }],
36001
+ "intercom.startSession": [{
36002
+ name: "deviceId",
36003
+ form: "single",
36004
+ optional: false
36005
+ }],
36006
+ "intercom.startTalkSession": [{
36007
+ name: "deviceId",
36008
+ form: "single",
36009
+ optional: false
36010
+ }],
36011
+ "intercom.stopSession": [{
36012
+ name: "deviceId",
36013
+ form: "single",
36014
+ optional: false
36015
+ }],
36016
+ "lawnMowerControl.dock": [{
36017
+ name: "deviceId",
36018
+ form: "single",
36019
+ optional: false
36020
+ }],
36021
+ "lawnMowerControl.pause": [{
36022
+ name: "deviceId",
36023
+ form: "single",
36024
+ optional: false
36025
+ }],
36026
+ "lawnMowerControl.startMowing": [{
36027
+ name: "deviceId",
36028
+ form: "single",
36029
+ optional: false
36030
+ }],
36031
+ "lockControl.lock": [{
36032
+ name: "deviceId",
36033
+ form: "single",
36034
+ optional: false
36035
+ }],
36036
+ "lockControl.open": [{
36037
+ name: "deviceId",
36038
+ form: "single",
36039
+ optional: false
36040
+ }],
36041
+ "lockControl.unlock": [{
36042
+ name: "deviceId",
36043
+ form: "single",
36044
+ optional: false
36045
+ }],
36046
+ "mediaPlayer.next": [{
36047
+ name: "deviceId",
36048
+ form: "single",
36049
+ optional: false
36050
+ }],
36051
+ "mediaPlayer.pause": [{
36052
+ name: "deviceId",
36053
+ form: "single",
36054
+ optional: false
36055
+ }],
36056
+ "mediaPlayer.play": [{
36057
+ name: "deviceId",
36058
+ form: "single",
36059
+ optional: false
36060
+ }],
36061
+ "mediaPlayer.playMedia": [{
36062
+ name: "deviceId",
36063
+ form: "single",
36064
+ optional: false
36065
+ }],
36066
+ "mediaPlayer.previous": [{
36067
+ name: "deviceId",
36068
+ form: "single",
36069
+ optional: false
36070
+ }],
36071
+ "mediaPlayer.seek": [{
36072
+ name: "deviceId",
36073
+ form: "single",
36074
+ optional: false
36075
+ }],
36076
+ "mediaPlayer.selectSource": [{
36077
+ name: "deviceId",
36078
+ form: "single",
36079
+ optional: false
36080
+ }],
36081
+ "mediaPlayer.setMute": [{
36082
+ name: "deviceId",
36083
+ form: "single",
36084
+ optional: false
36085
+ }],
36086
+ "mediaPlayer.setRepeat": [{
36087
+ name: "deviceId",
36088
+ form: "single",
36089
+ optional: false
36090
+ }],
36091
+ "mediaPlayer.setShuffle": [{
36092
+ name: "deviceId",
36093
+ form: "single",
36094
+ optional: false
36095
+ }],
36096
+ "mediaPlayer.setVolume": [{
36097
+ name: "deviceId",
36098
+ form: "single",
36099
+ optional: false
36100
+ }],
36101
+ "mediaPlayer.stop": [{
36102
+ name: "deviceId",
36103
+ form: "single",
36104
+ optional: false
36105
+ }],
36106
+ "motion.isDetected": [{
36107
+ name: "deviceId",
36108
+ form: "single",
36109
+ optional: false
36110
+ }],
36111
+ "motionDetection.analyze": [{
36112
+ name: "deviceId",
36113
+ form: "single",
36114
+ optional: false
36115
+ }],
36116
+ "motionDetection.removeCamera": [{
36117
+ name: "deviceId",
36118
+ form: "single",
36119
+ optional: false
36120
+ }],
36121
+ "motionTrigger.setMotionTrigger": [{
36122
+ name: "deviceId",
36123
+ form: "single",
36124
+ optional: false
36125
+ }],
36126
+ "motionZones.getOptions": [{
36127
+ name: "deviceId",
36128
+ form: "single",
36129
+ optional: false
36130
+ }],
36131
+ "motionZones.setZone": [{
36132
+ name: "deviceId",
36133
+ form: "single",
36134
+ optional: false
36135
+ }],
36136
+ "nativeObjectDetection.setEnabled": [{
36137
+ name: "deviceId",
36138
+ form: "single",
36139
+ optional: false
36140
+ }],
36141
+ "networkQuality.getDeviceStats": [{
36142
+ name: "deviceId",
36143
+ form: "single",
36144
+ optional: false
36145
+ }],
36146
+ "networkQuality.reportClientStats": [{
36147
+ name: "deviceId",
36148
+ form: "single",
36149
+ optional: false
36150
+ }],
36151
+ "notificationRules.setDeviceMuted": [{
36152
+ name: "deviceId",
36153
+ form: "single",
36154
+ optional: false
36155
+ }],
36156
+ "notifier.cancel": [{
36157
+ name: "deviceId",
36158
+ form: "single",
36159
+ optional: false
36160
+ }],
36161
+ "notifier.send": [{
36162
+ name: "deviceId",
36163
+ form: "single",
36164
+ optional: false
36165
+ }],
36166
+ "osd.setOverlay": [{
36167
+ name: "deviceId",
36168
+ form: "single",
36169
+ optional: false
36170
+ }],
36171
+ "osdManager.clearSlotBinding": [{
36172
+ name: "deviceId",
36173
+ form: "single",
36174
+ optional: false
36175
+ }],
36176
+ "osdManager.copyDeviceConfiguration": [{
36177
+ name: "sourceDeviceId",
36178
+ form: "single",
36179
+ optional: false
36180
+ }, {
36181
+ name: "targetDeviceId",
36182
+ form: "single",
36183
+ optional: false
36184
+ }],
36185
+ "osdManager.getDeviceOsd": [{
36186
+ name: "deviceId",
36187
+ form: "single",
36188
+ optional: false
36189
+ }],
36190
+ "osdManager.getSourceCatalog": [{
36191
+ name: "deviceId",
36192
+ form: "single",
36193
+ optional: false
36194
+ }],
36195
+ "osdManager.previewSlot": [{
36196
+ name: "deviceId",
36197
+ form: "single",
36198
+ optional: false
36199
+ }],
36200
+ "osdManager.renderDevice": [{
36201
+ name: "deviceId",
36202
+ form: "single",
36203
+ optional: false
36204
+ }],
36205
+ "osdManager.setSlotBinding": [{
36206
+ name: "deviceId",
36207
+ form: "single",
36208
+ optional: false
36209
+ }],
36210
+ "petFeeder.callPet": [{
36211
+ name: "deviceId",
36212
+ form: "single",
36213
+ optional: false
36214
+ }],
36215
+ "petFeeder.cancelFeed": [{
36216
+ name: "deviceId",
36217
+ form: "single",
36218
+ optional: false
36219
+ }],
36220
+ "petFeeder.feed": [{
36221
+ name: "deviceId",
36222
+ form: "single",
36223
+ optional: false
36224
+ }],
36225
+ "petFeeder.markFoodReplenished": [{
36226
+ name: "deviceId",
36227
+ form: "single",
36228
+ optional: false
36229
+ }],
36230
+ "petFeeder.playSound": [{
36231
+ name: "deviceId",
36232
+ form: "single",
36233
+ optional: false
36234
+ }],
36235
+ "petFeeder.resetDesiccant": [{
36236
+ name: "deviceId",
36237
+ form: "single",
36238
+ optional: false
36239
+ }],
36240
+ "petFeeder.setChildLock": [{
36241
+ name: "deviceId",
36242
+ form: "single",
36243
+ optional: false
36244
+ }],
36245
+ "petFeeder.setFeedSound": [{
36246
+ name: "deviceId",
36247
+ form: "single",
36248
+ optional: false
36249
+ }],
36250
+ "petFeeder.setIndicatorLight": [{
36251
+ name: "deviceId",
36252
+ form: "single",
36253
+ optional: false
36254
+ }],
36255
+ "petFeeder.setVolume": [{
36256
+ name: "deviceId",
36257
+ form: "single",
36258
+ optional: false
36259
+ }],
36260
+ "pipelineAnalytics.clearTracks": [{
36261
+ name: "deviceId",
36262
+ form: "single",
36263
+ optional: false
36264
+ }],
36265
+ "pipelineAnalytics.completeRetrainTrack": [{
36266
+ name: "deviceId",
36267
+ form: "single",
36268
+ optional: false
36269
+ }],
36270
+ "pipelineAnalytics.deleteDeviceEvents": [{
36271
+ name: "deviceId",
36272
+ form: "single",
36273
+ optional: false
36274
+ }],
36275
+ "pipelineAnalytics.deleteTracks": [{
36276
+ name: "deviceId",
36277
+ form: "single",
36278
+ optional: false
36279
+ }],
36280
+ "pipelineAnalytics.deselectRetrainFrame": [{
36281
+ name: "deviceId",
36282
+ form: "single",
36283
+ optional: false
36284
+ }],
36285
+ "pipelineAnalytics.getActiveTracks": [{
36286
+ name: "deviceId",
36287
+ form: "single",
36288
+ optional: false
36289
+ }],
36290
+ "pipelineAnalytics.getAudioEvents": [{
36291
+ name: "deviceId",
36292
+ form: "single",
36293
+ optional: false
36294
+ }],
36295
+ "pipelineAnalytics.getEventDensity": [{
36296
+ name: "deviceId",
36297
+ form: "single",
36298
+ optional: false
36299
+ }],
36300
+ "pipelineAnalytics.getEventMedia": [{
36301
+ name: "deviceId",
36302
+ form: "single",
36303
+ optional: false
36304
+ }],
36305
+ "pipelineAnalytics.getKeyEvents": [{
36306
+ name: "deviceId",
36307
+ form: "single",
36308
+ optional: false
36309
+ }],
36310
+ "pipelineAnalytics.getMotionEvents": [{
36311
+ name: "deviceId",
36312
+ form: "single",
36313
+ optional: false
36314
+ }],
36315
+ "pipelineAnalytics.getObjectEvents": [{
36316
+ name: "deviceId",
36317
+ form: "single",
36318
+ optional: false
36319
+ }],
36320
+ "pipelineAnalytics.getRetrainExportUrl": [{
36321
+ name: "deviceIds",
36322
+ form: "array",
36323
+ optional: true
36324
+ }],
36325
+ "pipelineAnalytics.getSensorEvents": [{
36326
+ name: "deviceId",
36327
+ form: "single",
36328
+ optional: false
36329
+ }],
36330
+ "pipelineAnalytics.getTrack": [{
36331
+ name: "deviceId",
36332
+ form: "single",
36333
+ optional: false
36334
+ }],
36335
+ "pipelineAnalytics.getTrackMedia": [{
36336
+ name: "deviceId",
36337
+ form: "single",
36338
+ optional: false
36339
+ }],
36340
+ "pipelineAnalytics.getTrainingExportSummary": [{
36341
+ name: "deviceIds",
36342
+ form: "array",
36343
+ optional: true
36344
+ }],
36345
+ "pipelineAnalytics.getTrainingExportUrl": [{
36346
+ name: "deviceIds",
36347
+ form: "array",
36348
+ optional: true
36349
+ }],
36350
+ "pipelineAnalytics.listEventKinds": [{
36351
+ name: "deviceId",
36352
+ form: "single",
36353
+ optional: false
36354
+ }],
36355
+ "pipelineAnalytics.listEventKindsBatch": [{
36356
+ name: "deviceIds",
36357
+ form: "array",
36358
+ optional: false
36359
+ }],
36360
+ "pipelineAnalytics.listOpsLog": [{
36361
+ name: "deviceId",
36362
+ form: "single",
36363
+ optional: true
36364
+ }],
36365
+ "pipelineAnalytics.listRecentTracks": [{
36366
+ name: "deviceIds",
36367
+ form: "array",
36368
+ optional: false
36369
+ }],
36370
+ "pipelineAnalytics.listRetrainStaging": [{
36371
+ name: "deviceIds",
36372
+ form: "array",
36373
+ optional: true
36374
+ }],
36375
+ "pipelineAnalytics.listTrackMedia": [{
36376
+ name: "deviceId",
36377
+ form: "single",
36378
+ optional: false
36379
+ }],
36380
+ "pipelineAnalytics.listTracks": [{
36381
+ name: "deviceId",
36382
+ form: "single",
36383
+ optional: false
36384
+ }],
36385
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36386
+ name: "deviceId",
36387
+ form: "single",
36388
+ optional: false
36389
+ }],
36390
+ "pipelineAnalytics.pruneEventsBefore": [{
36391
+ name: "deviceId",
36392
+ form: "single",
36393
+ optional: false
36394
+ }],
36395
+ "pipelineAnalytics.pruneTracksBefore": [{
36396
+ name: "deviceId",
36397
+ form: "single",
36398
+ optional: false
36399
+ }],
36400
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36401
+ name: "deviceId",
36402
+ form: "single",
36403
+ optional: true
36404
+ }],
36405
+ "pipelineAnalytics.restageRetrainTrack": [{
36406
+ name: "deviceId",
36407
+ form: "single",
36408
+ optional: false
36409
+ }],
36410
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36411
+ name: "deviceId",
36412
+ form: "single",
36413
+ optional: false
36414
+ }],
36415
+ "pipelineAnalytics.searchObjectEvents": [{
36416
+ name: "deviceId",
36417
+ form: "single",
36418
+ optional: true
36419
+ }],
36420
+ "pipelineAnalytics.selectRetrainFrames": [{
36421
+ name: "deviceId",
36422
+ form: "single",
36423
+ optional: false
36424
+ }],
36425
+ "pipelineAnalytics.setTrackFlags": [{
36426
+ name: "deviceId",
36427
+ form: "single",
36428
+ optional: false
36429
+ }],
36430
+ "pipelineAnalytics.wipeAllAnalytics": [{
36431
+ name: "deviceId",
36432
+ form: "single",
36433
+ optional: false
36434
+ }],
36435
+ "pipelineExecutor.runPipeline": [{
36436
+ name: "deviceId",
36437
+ form: "single",
36438
+ optional: true
36439
+ }],
36440
+ "pipelineExecutor.runPipelineBatch": [{
36441
+ name: "deviceId",
36442
+ form: "single",
36443
+ optional: true
36444
+ }],
36445
+ "pipelineOrchestrator.assignAudio": [{
36446
+ name: "deviceId",
36447
+ form: "single",
36448
+ optional: false
36449
+ }],
36450
+ "pipelineOrchestrator.assignPipeline": [{
36451
+ name: "deviceId",
36452
+ form: "single",
36453
+ optional: false
36454
+ }],
36455
+ "pipelineOrchestrator.getAudioAssignment": [{
36456
+ name: "deviceId",
36457
+ form: "single",
36458
+ optional: false
36459
+ }],
36460
+ "pipelineOrchestrator.getCameraMetrics": [{
36461
+ name: "deviceId",
36462
+ form: "single",
36463
+ optional: false
36464
+ }],
36465
+ "pipelineOrchestrator.getCameraSettings": [{
36466
+ name: "deviceId",
36467
+ form: "single",
36468
+ optional: false
36469
+ }],
36470
+ "pipelineOrchestrator.getCameraStatus": [{
36471
+ name: "deviceId",
36472
+ form: "single",
36473
+ optional: false
36474
+ }],
36475
+ "pipelineOrchestrator.getCameraStatuses": [{
36476
+ name: "deviceIds",
36477
+ form: "array",
36478
+ optional: true
36479
+ }],
36480
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36481
+ name: "deviceId",
36482
+ form: "single",
36483
+ optional: false
36484
+ }],
36485
+ "pipelineOrchestrator.getCameraSwitches": [{
36486
+ name: "deviceId",
36487
+ form: "single",
36488
+ optional: false
36489
+ }],
36490
+ "pipelineOrchestrator.getPipelineAssignment": [{
36491
+ name: "deviceId",
36492
+ form: "single",
36493
+ optional: false
36494
+ }],
36495
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36496
+ name: "deviceId",
36497
+ form: "single",
36498
+ optional: false
36499
+ }],
36500
+ "pipelineOrchestrator.resolvePipeline": [{
36501
+ name: "deviceId",
36502
+ form: "single",
36503
+ optional: false
36504
+ }],
36505
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36506
+ name: "deviceId",
36507
+ form: "single",
36508
+ optional: false
36509
+ }],
36510
+ "pipelineOrchestrator.setCameraStepOverride": [{
36511
+ name: "deviceId",
36512
+ form: "single",
36513
+ optional: false
36514
+ }],
36515
+ "pipelineOrchestrator.setCameraStepToggle": [{
36516
+ name: "deviceId",
36517
+ form: "single",
36518
+ optional: false
36519
+ }],
36520
+ "pipelineOrchestrator.setCameraSwitch": [{
36521
+ name: "deviceId",
36522
+ form: "single",
36523
+ optional: false
36524
+ }],
36525
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36526
+ name: "deviceId",
36527
+ form: "single",
36528
+ optional: false
36529
+ }],
36530
+ "pipelineOrchestrator.unassignAudio": [{
36531
+ name: "deviceId",
36532
+ form: "single",
36533
+ optional: false
36534
+ }],
36535
+ "pipelineOrchestrator.unassignPipeline": [{
36536
+ name: "deviceId",
36537
+ form: "single",
36538
+ optional: false
36539
+ }],
36540
+ "pipelineRunner.attachCamera": [{
36541
+ name: "deviceId",
36542
+ form: "single",
36543
+ optional: false
36544
+ }],
36545
+ "pipelineRunner.detachCamera": [{
36546
+ name: "deviceId",
36547
+ form: "single",
36548
+ optional: false
36549
+ }],
36550
+ "pipelineRunner.getCameraMetrics": [{
36551
+ name: "deviceId",
36552
+ form: "single",
36553
+ optional: false
36554
+ }],
36555
+ "pipelineRunner.reportMotion": [{
36556
+ name: "deviceId",
36557
+ form: "single",
36558
+ optional: false
36559
+ }],
36560
+ "pipelineRunner.runDetailSubtree": [{
36561
+ name: "deviceId",
36562
+ form: "single",
36563
+ optional: false
36564
+ }],
36565
+ "pipelineRunner.runStatelessStep": [{
36566
+ name: "sourceDeviceId",
36567
+ form: "single",
36568
+ optional: false
36569
+ }],
36570
+ "plateGallery.getPlateByTrack": [{
36571
+ name: "deviceId",
36572
+ form: "single",
36573
+ optional: false
36574
+ }],
36575
+ "plateGallery.listPlates": [{
36576
+ name: "deviceId",
36577
+ form: "single",
36578
+ optional: true
36579
+ }],
36580
+ "privacyMask.getOptions": [{
36581
+ name: "deviceId",
36582
+ form: "single",
36583
+ optional: false
36584
+ }],
36585
+ "privacyMask.setAudioEnabled": [{
36586
+ name: "deviceId",
36587
+ form: "single",
36588
+ optional: false
36589
+ }],
36590
+ "privacyMask.setMask": [{
36591
+ name: "deviceId",
36592
+ form: "single",
36593
+ optional: false
36594
+ }],
36595
+ "ptz.continuousMove": [{
36596
+ name: "deviceId",
36597
+ form: "single",
36598
+ optional: false
36599
+ }],
36600
+ "ptz.deletePreset": [{
36601
+ name: "deviceId",
36602
+ form: "single",
36603
+ optional: false
36604
+ }],
36605
+ "ptz.getOptions": [{
36606
+ name: "deviceId",
36607
+ form: "single",
36608
+ optional: false
36609
+ }],
36610
+ "ptz.getPosition": [{
36611
+ name: "deviceId",
36612
+ form: "single",
36613
+ optional: false
36614
+ }],
36615
+ "ptz.getPresets": [{
36616
+ name: "deviceId",
36617
+ form: "single",
36618
+ optional: false
36619
+ }],
36620
+ "ptz.goHome": [{
36621
+ name: "deviceId",
36622
+ form: "single",
36623
+ optional: false
36624
+ }],
36625
+ "ptz.goToPreset": [{
36626
+ name: "deviceId",
36627
+ form: "single",
36628
+ optional: false
36629
+ }],
36630
+ "ptz.move": [{
36631
+ name: "deviceId",
36632
+ form: "single",
36633
+ optional: false
36634
+ }],
36635
+ "ptz.savePreset": [{
36636
+ name: "deviceId",
36637
+ form: "single",
36638
+ optional: false
36639
+ }],
36640
+ "ptz.setAutofocus": [{
36641
+ name: "deviceId",
36642
+ form: "single",
36643
+ optional: false
36644
+ }],
36645
+ "ptz.stop": [{
36646
+ name: "deviceId",
36647
+ form: "single",
36648
+ optional: false
36649
+ }],
36650
+ "ptzAutotrack.getSettings": [{
36651
+ name: "deviceId",
36652
+ form: "single",
36653
+ optional: false
36654
+ }],
36655
+ "ptzAutotrack.getStatus": [{
36656
+ name: "deviceId",
36657
+ form: "single",
36658
+ optional: false
36659
+ }],
36660
+ "ptzAutotrack.setEnabled": [{
36661
+ name: "deviceId",
36662
+ form: "single",
36663
+ optional: false
36664
+ }],
36665
+ "ptzAutotrack.setSettings": [{
36666
+ name: "deviceId",
36667
+ form: "single",
36668
+ optional: false
36669
+ }],
36670
+ "reboot.reboot": [{
36671
+ name: "deviceId",
36672
+ form: "single",
36673
+ optional: false
36674
+ }],
36675
+ "recording.deleteFootprint": [{
36676
+ name: "deviceId",
36677
+ form: "single",
36678
+ optional: false
36679
+ }],
36680
+ "recording.getAvailability": [{
36681
+ name: "deviceId",
36682
+ form: "single",
36683
+ optional: false
36684
+ }],
36685
+ "recording.getDaysWithRecordings": [{
36686
+ name: "deviceId",
36687
+ form: "single",
36688
+ optional: false
36689
+ }],
36690
+ "recording.getDeviceConfig": [{
36691
+ name: "deviceId",
36692
+ form: "single",
36693
+ optional: false
36694
+ }],
36695
+ "recording.getPlaybackManifest": [{
36696
+ name: "deviceId",
36697
+ form: "single",
36698
+ optional: false
36699
+ }],
36700
+ "recording.listOpsLog": [{
36701
+ name: "deviceId",
36702
+ form: "single",
36703
+ optional: true
36704
+ }],
36705
+ "recording.locateSegment": [{
36706
+ name: "deviceId",
36707
+ form: "single",
36708
+ optional: false
36709
+ }],
36710
+ "recording.pruneFootage": [{
36711
+ name: "deviceId",
36712
+ form: "single",
36713
+ optional: false
36714
+ }],
36715
+ "recording.readGopBytes": [{
36716
+ name: "deviceId",
36717
+ form: "single",
36718
+ optional: false
36719
+ }],
36720
+ "recording.readSegmentBytes": [{
36721
+ name: "deviceId",
36722
+ form: "single",
36723
+ optional: false
36724
+ }],
36725
+ "recording.relocateFootage": [{
36726
+ name: "deviceId",
36727
+ form: "single",
36728
+ optional: true
36729
+ }],
36730
+ "recording.renderClip": [{
36731
+ name: "deviceId",
36732
+ form: "single",
36733
+ optional: false
36734
+ }],
36735
+ "recording.renderGif": [{
36736
+ name: "deviceId",
36737
+ form: "single",
36738
+ optional: false
36739
+ }],
36740
+ "recording.rescanStorage": [{
36741
+ name: "deviceId",
36742
+ form: "single",
36743
+ optional: false
36744
+ }],
36745
+ "recording.setDeviceConfig": [{
36746
+ name: "deviceId",
36747
+ form: "single",
36748
+ optional: false
36749
+ }],
36750
+ "recording.startStorageMigrationMove": [{
36751
+ name: "deviceId",
36752
+ form: "single",
36753
+ optional: true
36754
+ }],
36755
+ "recordingExport.createExport": [{
36756
+ name: "deviceId",
36757
+ form: "single",
36758
+ optional: false
36759
+ }],
36760
+ "recordingExport.listExports": [{
36761
+ name: "deviceId",
36762
+ form: "single",
36763
+ optional: true
36764
+ }],
36765
+ "sceneMonitor.captureReference": [{
36766
+ name: "deviceId",
36767
+ form: "single",
36768
+ optional: false
36769
+ }],
36770
+ "sceneMonitor.createScene": [{
36771
+ name: "deviceId",
36772
+ form: "single",
36773
+ optional: false
36774
+ }],
36775
+ "sceneMonitor.deleteReference": [{
36776
+ name: "deviceId",
36777
+ form: "single",
36778
+ optional: false
36779
+ }],
36780
+ "sceneMonitor.deleteScene": [{
36781
+ name: "deviceId",
36782
+ form: "single",
36783
+ optional: false
36784
+ }],
36785
+ "sceneMonitor.listScenes": [{
36786
+ name: "deviceId",
36787
+ form: "single",
36788
+ optional: false
36789
+ }],
36790
+ "sceneMonitor.recheckNow": [{
36791
+ name: "deviceId",
36792
+ form: "single",
36793
+ optional: false
36794
+ }],
36795
+ "sceneMonitor.resetScene": [{
36796
+ name: "deviceId",
36797
+ form: "single",
36798
+ optional: false
36799
+ }],
36800
+ "sceneMonitor.updateScene": [{
36801
+ name: "deviceId",
36802
+ form: "single",
36803
+ optional: false
36804
+ }],
36805
+ "scriptRunner.run": [{
36806
+ name: "deviceId",
36807
+ form: "single",
36808
+ optional: false
36809
+ }],
36810
+ "scriptRunner.stop": [{
36811
+ name: "deviceId",
36812
+ form: "single",
36813
+ optional: false
36814
+ }],
36815
+ "snapshot.getSnapshot": [{
36816
+ name: "deviceId",
36817
+ form: "single",
36818
+ optional: false
36819
+ }],
36820
+ "snapshot.getSnapshotLinks": [{
36821
+ name: "targets",
36822
+ form: "object-array",
36823
+ optional: false,
36824
+ itemField: "deviceId"
36825
+ }],
36826
+ "snapshot.getSnapshotOverview": [{
36827
+ name: "deviceIds",
36828
+ form: "array",
36829
+ optional: false
36830
+ }],
36831
+ "snapshot.invalidateCache": [{
36832
+ name: "deviceId",
36833
+ form: "single",
36834
+ optional: false
36835
+ }],
36836
+ "streamBroker.acquireEgressTranscode": [{
36837
+ name: "deviceId",
36838
+ form: "single",
36839
+ optional: false
36840
+ }],
36841
+ "streamBroker.assignProfile": [{
36842
+ name: "deviceId",
36843
+ form: "single",
36844
+ optional: false
36845
+ }],
36846
+ "streamBroker.getDeviceAudioMute": [{
36847
+ name: "deviceId",
36848
+ form: "single",
36849
+ optional: false
36850
+ }],
36851
+ "streamBroker.getStreamWithCodec": [{
36852
+ name: "deviceId",
36853
+ form: "single",
36854
+ optional: false
36855
+ }],
36856
+ "streamBroker.produceEventMedia": [{
36857
+ name: "deviceId",
36858
+ form: "single",
36859
+ optional: false
36860
+ }],
36861
+ "streamBroker.publishCameraStream": [{
36862
+ name: "deviceId",
36863
+ form: "single",
36864
+ optional: false
36865
+ }],
36866
+ "streamBroker.renderPreBufferClip": [{
36867
+ name: "deviceId",
36868
+ form: "single",
36869
+ optional: false
36870
+ }],
36871
+ "streamBroker.restartProfile": [{
36872
+ name: "deviceId",
36873
+ form: "single",
36874
+ optional: false
36875
+ }],
36876
+ "streamBroker.retractCameraStream": [{
36877
+ name: "deviceId",
36878
+ form: "single",
36879
+ optional: false
36880
+ }],
36881
+ "streamBroker.setDeviceAudioMute": [{
36882
+ name: "deviceId",
36883
+ form: "single",
36884
+ optional: false
36885
+ }],
36886
+ "streamBroker.unassignProfile": [{
36887
+ name: "deviceId",
36888
+ form: "single",
36889
+ optional: false
36890
+ }],
36891
+ "streamCatalog.getCatalog": [{
36892
+ name: "deviceId",
36893
+ form: "single",
36894
+ optional: false
36895
+ }],
36896
+ "streamParams.getConfigSchema": [{
36897
+ name: "deviceId",
36898
+ form: "single",
36899
+ optional: false
36900
+ }],
36901
+ "streamParams.getOptions": [{
36902
+ name: "deviceId",
36903
+ form: "single",
36904
+ optional: false
36905
+ }],
36906
+ "streamParams.setProfile": [{
36907
+ name: "deviceId",
36908
+ form: "single",
36909
+ optional: false
36910
+ }],
36911
+ "switch.setState": [{
36912
+ name: "deviceId",
36913
+ form: "single",
36914
+ optional: false
36915
+ }],
36916
+ "vacuumControl.locate": [{
36917
+ name: "deviceId",
36918
+ form: "single",
36919
+ optional: false
36920
+ }],
36921
+ "vacuumControl.pause": [{
36922
+ name: "deviceId",
36923
+ form: "single",
36924
+ optional: false
36925
+ }],
36926
+ "vacuumControl.returnToBase": [{
36927
+ name: "deviceId",
36928
+ form: "single",
36929
+ optional: false
36930
+ }],
36931
+ "vacuumControl.setFanSpeed": [{
36932
+ name: "deviceId",
36933
+ form: "single",
36934
+ optional: false
36935
+ }],
36936
+ "vacuumControl.start": [{
36937
+ name: "deviceId",
36938
+ form: "single",
36939
+ optional: false
36940
+ }],
36941
+ "vacuumControl.stop": [{
36942
+ name: "deviceId",
36943
+ form: "single",
36944
+ optional: false
36945
+ }],
36946
+ "valve.close": [{
36947
+ name: "deviceId",
36948
+ form: "single",
36949
+ optional: false
36950
+ }],
36951
+ "valve.open": [{
36952
+ name: "deviceId",
36953
+ form: "single",
36954
+ optional: false
36955
+ }],
36956
+ "valve.setPosition": [{
36957
+ name: "deviceId",
36958
+ form: "single",
36959
+ optional: false
36960
+ }],
36961
+ "valve.stop": [{
36962
+ name: "deviceId",
36963
+ form: "single",
36964
+ optional: false
36965
+ }],
36966
+ "videoclips.getClipPlayback": [{
36967
+ name: "deviceId",
36968
+ form: "single",
36969
+ optional: false
36970
+ }],
36971
+ "videoclips.listClips": [{
36972
+ name: "deviceId",
36973
+ form: "single",
36974
+ optional: false
36975
+ }],
36976
+ "waterHeater.setAway": [{
36977
+ name: "deviceId",
36978
+ form: "single",
36979
+ optional: false
36980
+ }],
36981
+ "waterHeater.setOperationMode": [{
36982
+ name: "deviceId",
36983
+ form: "single",
36984
+ optional: false
36985
+ }],
36986
+ "waterHeater.setTargetTemp": [{
36987
+ name: "deviceId",
36988
+ form: "single",
36989
+ optional: false
36990
+ }],
36991
+ "webrtcSession.addIceCandidate": [{
36992
+ name: "deviceId",
36993
+ form: "single",
36994
+ optional: false
36995
+ }],
36996
+ "webrtcSession.closeSession": [{
36997
+ name: "deviceId",
36998
+ form: "single",
36999
+ optional: false
37000
+ }],
37001
+ "webrtcSession.createSession": [{
37002
+ name: "deviceId",
37003
+ form: "single",
37004
+ optional: false
37005
+ }],
37006
+ "webrtcSession.getIceCandidates": [{
37007
+ name: "deviceId",
37008
+ form: "single",
37009
+ optional: false
37010
+ }],
37011
+ "webrtcSession.getSessionState": [{
37012
+ name: "deviceId",
37013
+ form: "single",
37014
+ optional: false
37015
+ }],
37016
+ "webrtcSession.handleAnswer": [{
37017
+ name: "deviceId",
37018
+ form: "single",
37019
+ optional: false
37020
+ }],
37021
+ "webrtcSession.handleOffer": [{
37022
+ name: "deviceId",
37023
+ form: "single",
37024
+ optional: false
37025
+ }],
37026
+ "webrtcSession.hasAdaptiveBitrate": [{
37027
+ name: "deviceId",
37028
+ form: "single",
37029
+ optional: false
37030
+ }],
37031
+ "webrtcSession.listStreams": [{
37032
+ name: "deviceId",
37033
+ form: "single",
37034
+ optional: false
37035
+ }],
37036
+ "zoneAnalytics.getCameraHistory": [{
37037
+ name: "deviceId",
37038
+ form: "single",
37039
+ optional: false
37040
+ }],
37041
+ "zoneAnalytics.getCurrentSnapshot": [{
37042
+ name: "deviceId",
37043
+ form: "single",
37044
+ optional: false
37045
+ }],
37046
+ "zoneAnalytics.getUnzonedHistory": [{
37047
+ name: "deviceId",
37048
+ form: "single",
37049
+ optional: false
37050
+ }],
37051
+ "zoneAnalytics.getZoneHistory": [{
37052
+ name: "deviceId",
37053
+ form: "single",
37054
+ optional: false
37055
+ }],
37056
+ "zoneRules.listRules": [{
37057
+ name: "deviceId",
37058
+ form: "single",
37059
+ optional: false
37060
+ }],
37061
+ "zoneRules.setRules": [{
37062
+ name: "deviceId",
37063
+ form: "single",
37064
+ optional: false
37065
+ }],
37066
+ "zones.addZone": [{
37067
+ name: "deviceId",
37068
+ form: "single",
37069
+ optional: false
37070
+ }],
37071
+ "zones.listZones": [{
37072
+ name: "deviceId",
37073
+ form: "single",
37074
+ optional: false
37075
+ }],
37076
+ "zones.removeZone": [{
37077
+ name: "deviceId",
37078
+ form: "single",
37079
+ optional: false
37080
+ }],
37081
+ "zones.updateZone": [{
37082
+ name: "deviceId",
37083
+ form: "single",
37084
+ optional: false
37085
+ }]
37086
+ });
34381
37087
  Object.freeze({
34382
37088
  "broker": "broker",
34383
37089
  "device-export": "device-export",