@camstack/addon-provider-rtsp 1.2.17 → 1.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2893 -143
  2. package/dist/addon.mjs +2893 -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
@@ -18930,6 +19505,39 @@ var snapshotCapability = {
18930
19505
  etag: string().nullable()
18931
19506
  }))),
18932
19507
  /**
19508
+ * The full decision chain for ONE device, for the viewer's debug readout —
19509
+ * the answer to "why does this tile show what it shows" in a single poll:
19510
+ * the battery slice the state was derived from, the resolved state + its
19511
+ * reason, the cached frame's identity/age, whether a wake window is open,
19512
+ * and whether a fresh capture is in flight. Cache-only and capture-free:
19513
+ * a debug read must never wake a battery camera.
19514
+ */
19515
+ getDebugState: systemMethod(object({ deviceId: number() }), object({
19516
+ /** The battery slice as read, or null when the device has none. */
19517
+ battery: object({
19518
+ sleeping: boolean(),
19519
+ lastUpdated: number(),
19520
+ lastContactAt: number().optional()
19521
+ }).nullable(),
19522
+ /** The resolved snapshot state (what the overlay decision used). */
19523
+ state: object({
19524
+ isBattery: boolean(),
19525
+ reason: _enum([
19526
+ "disabled",
19527
+ "sleeping",
19528
+ "unreachable",
19529
+ "waking"
19530
+ ]).nullable()
19531
+ }),
19532
+ /** The cached frame behind the next paint. */
19533
+ frame: object({
19534
+ capturedAt: number().nullable(),
19535
+ ageMs: number().nullable()
19536
+ }),
19537
+ /** A wake window is currently open (the Waking overlay's source). */
19538
+ waking: boolean()
19539
+ })),
19540
+ /**
18933
19541
  * Signed, expiring links to a CLIENT-SIZED frame — and the demand signal
18934
19542
  * that makes those frames current.
18935
19543
  *
@@ -19002,7 +19610,16 @@ targets: array(object({
19002
19610
  /** A sleeping battery camera: the frame is deliberately stale and will
19003
19611
  * NOT refresh in the background. A surface should say so rather than
19004
19612
  * present it as current. */
19005
- sleeping: boolean()
19613
+ sleeping: boolean(),
19614
+ /** Current device state rendered over the cached frame. State images
19615
+ * remain authoritative even when their photographic background is
19616
+ * old; null means the link must carry a current camera frame. */
19617
+ stateReason: _enum([
19618
+ "disabled",
19619
+ "sleeping",
19620
+ "unreachable",
19621
+ "waking"
19622
+ ]).nullable()
19006
19623
  })))
19007
19624
  },
19008
19625
  status: {
@@ -20662,6 +21279,25 @@ var BatteryStatusSchema = object({
20662
21279
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20663
21280
  lastUpdated: number(),
20664
21281
  /**
21282
+ * Ms epoch of the last time the device PROVED it was reachable — a
21283
+ * completed firmware round-trip, an observed wake, or an inbound push
21284
+ * (firmware event, email). `0`/absent = never since this slice was born.
21285
+ *
21286
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21287
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21288
+ * for the radio, because a poll that confirms reachability is the same
21289
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21290
+ * single derivation every consumer must use; no surface computes its own.
21291
+ *
21292
+ * It is deliberately NOT a clock in the
21293
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21294
+ * observation itself, and it is the only thing a 30-hour silence is
21295
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21296
+ * Reolink provider) so a value that means "recently" cannot cost a
21297
+ * SQLite commit per round-trip.
21298
+ */
21299
+ lastContactAt: number().optional(),
21300
+ /**
20665
21301
  * True when the source is a BINARY low-battery indicator (HA
20666
21302
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20667
21303
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22934,54 +23570,139 @@ var TalkAudioCodecSchema = _enum([
22934
23570
  "g711ulaw",
22935
23571
  "g711alaw"
22936
23572
  ]);
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
- });
23573
+ var intercomCapability = {
23574
+ name: "intercom",
23575
+ scope: "device",
23576
+ deviceNative: true,
23577
+ mode: "singleton",
23578
+ deviceTypes: [DeviceType.Camera],
23579
+ methods: {
23580
+ /**
23581
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23582
+ * offer with a single sendonly audio m-line the client answers
23583
+ * (client → server direction). The server wakes battery cams
23584
+ * transparently before opening the upstream talk channel.
23585
+ */
23586
+ startSession: method(object({ deviceId: number() }), object({
23587
+ sessionId: string(),
23588
+ sdpOffer: string()
23589
+ }), {
23590
+ kind: "mutation",
23591
+ auth: "admin"
23592
+ }),
23593
+ handleAnswer: method(object({
23594
+ deviceId: number(),
23595
+ sessionId: string(),
23596
+ sdpAnswer: string()
23597
+ }), _void(), {
23598
+ kind: "mutation",
23599
+ auth: "admin"
23600
+ }),
23601
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23602
+ stopSession: method(object({
23603
+ deviceId: number(),
23604
+ sessionId: string()
23605
+ }), _void(), {
23606
+ kind: "mutation",
23607
+ auth: "admin"
23608
+ }),
23609
+ /**
23610
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23611
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23612
+ * harnesses) that already have decoded PCM frames and just need a
23613
+ * direct path onto the camera's talk channel. Mutually exclusive
23614
+ * with `startSession` (an active WebRTC session must be stopped
23615
+ * before a raw-PCM session can be opened on the same device, and
23616
+ * vice versa).
23617
+ */
23618
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23619
+ kind: "mutation",
23620
+ auth: "admin"
23621
+ }),
23622
+ /**
23623
+ * Push one chunk of talk-back audio onto the active talk session.
23624
+ * The cap is codec-agnostic: the caller declares (or omits) the
23625
+ * wire format via `codec`; the provider decides between passthrough
23626
+ * (when the wire codec matches the camera's native talk channel),
23627
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23628
+ *
23629
+ * Callers do NOT need to know the camera's wire format or sample
23630
+ * rate — that information lives entirely inside the provider.
23631
+ *
23632
+ * Sequence numbers MUST be monotonic per talk session; older frames
23633
+ * arriving after newer ones are dropped to avoid smearing the
23634
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23635
+ * predictor would corrupt with re-ordering).
23636
+ */
23637
+ pushTalkAudio: method(object({
23638
+ deviceId: number(),
23639
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23640
+ * survives tRPC JSON serialization. */
23641
+ audioBase64: string(),
23642
+ /** Wire codec of the payload. Omit to let the provider default
23643
+ * to its native expected format (s16le @ provider-native rate,
23644
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23645
+ codec: TalkAudioCodecSchema.optional(),
23646
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23647
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23648
+ sampleRate: number().int().positive().optional(),
23649
+ /** Channel count. Default 1. */
23650
+ channels: number().int().positive().optional(),
23651
+ /** Sequence number for ordering / dropping out-of-order frames. */
23652
+ sequenceNumber: number().int()
23653
+ }), object({ accepted: boolean() }), {
23654
+ kind: "mutation",
23655
+ auth: "admin"
23656
+ }),
23657
+ /** Close the raw-PCM talk session. Idempotent. */
23658
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23659
+ kind: "mutation",
23660
+ auth: "admin"
23661
+ })
23662
+ },
23663
+ events: { onStatusChanged: { data: object({
23664
+ deviceId: number(),
23665
+ status: IntercomStatusSchema
23666
+ }) } },
23667
+ status: {
23668
+ schema: IntercomStatusSchema,
23669
+ kind: "command-driven"
23670
+ },
23671
+ /**
23672
+ * Runtime-state slice — mirrored by the kernel.
23673
+ *
23674
+ * The cap declared `status` and nothing else, so the only two sources an
23675
+ * exporter has for a value — the `device.state-changed` slice event and the
23676
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23677
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23678
+ * have been published and never received a value, which is the defect the
23679
+ * export's two classification tables exist to prevent (177 of them, once), so
23680
+ * `intercom` was excluded rather than exported.
23681
+ *
23682
+ * The shape is the status shape: there is exactly one truth about talk-back
23683
+ * and duplicating it into a second schema is how two halves of one capability
23684
+ * come to disagree. Providers write it through
23685
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23686
+ * and close a session, and seed it at registration so the slice exists before
23687
+ * the first session rather than after it.
23688
+ *
23689
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23690
+ * session handle, so a session torn down by a transport death that never
23691
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23692
+ * session or the next restart. That is why the slice is `session` and not
23693
+ * `restored` — a restart must never restore "talking".
23694
+ */
23695
+ runtimeState: IntercomStatusSchema,
23696
+ /**
23697
+ * Runtime-state durability: **session** — `talking` describes a live audio
23698
+ * session, which by definition does not survive the process that held it.
23699
+ * Restoring it would publish a camera as talking to nobody.
23700
+ *
23701
+ * See `RuntimeStateDurability`. Enforced by
23702
+ * `scripts/check-runtime-state-durability.ts`.
23703
+ */
23704
+ durability: "session"
23705
+ };
22985
23706
  /**
22986
23707
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22987
23708
  * with a mowing lifecycle plus a dock action.
@@ -25678,7 +26399,7 @@ method(object({
25678
26399
  toMs: number()
25679
26400
  }), RecordingAvailabilitySchema, {
25680
26401
  kind: "query",
25681
- auth: "admin"
26402
+ auth: "protected"
25682
26403
  }), method(object({
25683
26404
  deviceId: number(),
25684
26405
  fromMs: number(),
@@ -25686,14 +26407,14 @@ method(object({
25686
26407
  tzOffsetMinutes: number()
25687
26408
  }), RecordingDaysSchema, {
25688
26409
  kind: "query",
25689
- auth: "admin"
26410
+ auth: "protected"
25690
26411
  }), method(object({
25691
26412
  deviceId: number(),
25692
26413
  fromMs: number(),
25693
26414
  toMs: number()
25694
26415
  }), RecordingManifestSchema, {
25695
26416
  kind: "query",
25696
- auth: "admin"
26417
+ auth: "protected"
25697
26418
  }), method(object({}), RecordingStorageUsageSchema, {
25698
26419
  kind: "query",
25699
26420
  auth: "admin"
@@ -25983,14 +26704,77 @@ method(object({
25983
26704
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25984
26705
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25985
26706
  *
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). */
26707
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26708
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26709
+ * for the thing: a scene is a standing question about the property ("is the bin
26710
+ * still out"), and the operator's question is "which of my scenes have tripped",
26711
+ * across every camera at once — not "what does camera 617 think". Buried one
26712
+ * camera deep it also could not be found. The surface is now a top-level admin
26713
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26714
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26715
+ *
26716
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26717
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26718
+ * directions, so a registration nobody declares fails exactly as loudly as a
26719
+ * declaration nobody registers. The editor is imported directly by the page.
26720
+ *
26721
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26722
+ * availability change; consumers never poll.
26723
+ */
26724
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26725
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26726
+ * Open by design so more can be added without a wire break.
26727
+ *
26728
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26729
+ * not comparable, so "I have never seen this scene in this light" is reported
26730
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26731
+ * collapses the cosine and would latch a false alarm every single night. */
25993
26732
  var SceneConditionSchema = string();
26733
+ /**
26734
+ * What a scene does when the CURRENT light has no reference of its own.
26735
+ *
26736
+ * The lighting variants are not equally likely to exist. Almost every operator
26737
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26738
+ * scene that is only ever going to be asked about a daytime question ("is the
26739
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26740
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26741
+ * working without it rather than degrading into a permanent complaint.
26742
+ *
26743
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26744
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26745
+ * last covered light left it at, the latch is untouched, and the hysteresis
26746
+ * run is neither spent nor cleared. The scene resumes by itself at first
26747
+ * light. This is the only behaviour under which "I never captured IR" is a
26748
+ * configuration choice instead of a nightly fault.
26749
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26750
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26751
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26752
+ * cross-condition cosines are not comparable, so a day reference against a
26753
+ * true IR frame collapses and the scene reports a theft at 21:40.
26754
+ *
26755
+ * Never applies when the scene has NO comparable reference at all — that is
26756
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26757
+ * there would hide a scene the operator never finished setting up.
26758
+ */
26759
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26760
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26761
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26762
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26763
+ * and never counts toward hysteresis in either direction. */
26764
+ var SceneVerdictSchema = _enum([
26765
+ "matched",
26766
+ "diverged",
26767
+ "unknown"
26768
+ ]);
26769
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26770
+ * silence that reads as "nothing has happened". */
26771
+ var SceneUnavailableSchema = _enum([
26772
+ "no-reference-for-condition",
26773
+ "view-shifted",
26774
+ "no-vision-profile",
26775
+ "encoder-model-changed",
26776
+ "no-snapshot"
26777
+ ]);
25994
26778
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25995
26779
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25996
26780
  var SceneReferenceSchema = object({
@@ -25998,7 +26782,14 @@ var SceneReferenceSchema = object({
25998
26782
  modelId: string(),
25999
26783
  condition: SceneConditionSchema,
26000
26784
  capturedAt: number(),
26001
- thumbnailMediaId: string().optional()
26785
+ thumbnailMediaId: string().optional(),
26786
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26787
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26788
+ * normalized rect frame a different piece of world, and the scene would
26789
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26790
+ * when hysteresis is about to flip — one extra encode per candidate
26791
+ * transition, not per poll. */
26792
+ anchorEmbedding: array(number()).optional()
26002
26793
  });
26003
26794
  var SceneMonitorStateSchema = object({
26004
26795
  id: string(),
@@ -26020,6 +26811,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26020
26811
  profileId: string().optional(),
26021
26812
  hysteresisCount: number().int().positive()
26022
26813
  })]);
26814
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26815
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26816
+ * out in silence rather than reporting a fault every night. */
26817
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26818
+ /**
26819
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26820
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26821
+ *
26822
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26823
+ * fail-open: a notification suppressed is the worse error there, but a vision
26824
+ * model that timed out has not told us the bin is gone, and a latch is a
26825
+ * stateful claim that costs the operator a trip to reset.
26826
+ */
26827
+ var SceneConfirmSchema = object({
26828
+ enabled: boolean().default(false),
26829
+ prompt: string().min(1).max(1e3),
26830
+ profileId: string().optional(),
26831
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26832
+ maxImagePx: number().int().min(64).max(2048).default(448),
26833
+ /** What a timeout / unavailable model means for the PENDING flip. */
26834
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26835
+ });
26023
26836
  var SceneMonitorSchema = object({
26024
26837
  id: string(),
26025
26838
  label: string(),
@@ -26038,7 +26851,56 @@ var SceneMonitorSchema = object({
26038
26851
  lastConfidence: number().nullable(),
26039
26852
  currentCondition: SceneConditionSchema.nullable(),
26040
26853
  availability: _enum(["ok", "unavailable"]),
26041
- unavailableReason: string().nullable()
26854
+ unavailableReason: string().nullable(),
26855
+ /** Which state is "the initial screen". `null` until the first capture. */
26856
+ baselineStateId: string().nullable(),
26857
+ /** Which boolean drives notification rules and any export. */
26858
+ emit: _enum(["latched", "live"]).default("latched"),
26859
+ /** Live: does the region match the baseline RIGHT NOW. */
26860
+ verdict: SceneVerdictSchema,
26861
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26862
+ latched: boolean(),
26863
+ /** Last reset (or creation). */
26864
+ armedAt: number(),
26865
+ divergedAt: number().nullable(),
26866
+ restoredAt: number().nullable(),
26867
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26868
+ * during the window DISCARDS the observation — a car pulling up in front of
26869
+ * the bin must not be able to spend hysteresis credit. */
26870
+ quietSeconds: number().int().min(0).max(3600).default(60),
26871
+ /** An observation only advances the pending count when it is at least this
26872
+ * far from the previously counted one, so N agreeing checks span real time
26873
+ * rather than N adjacent polls inside one occlusion. */
26874
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26875
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26876
+ confirm: SceneConfirmSchema.optional(),
26877
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26878
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26879
+ /** Clear the latch on its own when the scene matches again? Default false —
26880
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26881
+ * automation can react to the bin coming back without the operator's own
26882
+ * alarm silently clearing itself. */
26883
+ autoRestore: boolean().default(false),
26884
+ /** What to do when the current light has no reference of its own. See
26885
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26886
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26887
+ /**
26888
+ * The light whose checks are currently being SAT OUT under
26889
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26890
+ *
26891
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26892
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26893
+ * nothing captured in this light"* in the same calm voice as the coverage
26894
+ * line, because the alternative is a scene that silently stops answering
26895
+ * after sunset with nothing anywhere saying why. A skipped check must never
26896
+ * read as a broken one.
26897
+ */
26898
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26899
+ /** Named cause when `verdict === 'unknown'`. */
26900
+ unavailable: SceneUnavailableSchema.nullable(),
26901
+ /** Conditions that have at least one comparable reference — the coverage line
26902
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26903
+ coveredConditions: array(SceneConditionSchema)
26042
26904
  });
26043
26905
  var SceneMonitorStatusSchema = object({
26044
26906
  monitors: array(SceneMonitorSchema),
@@ -26051,12 +26913,6 @@ var sceneMonitorCapability = {
26051
26913
  kind: "wrapper",
26052
26914
  defaultActive: true,
26053
26915
  deviceTypes: [DeviceType.Camera],
26054
- deviceConfig: { ui: {
26055
- kind: "widget",
26056
- widgetId: "host/scene-monitor-editor",
26057
- tab: "scenes",
26058
- label: "Scenes"
26059
- } },
26060
26916
  methods: {
26061
26917
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26062
26918
  createScene: method(object({
@@ -26087,7 +26943,15 @@ var sceneMonitorCapability = {
26087
26943
  "both"
26088
26944
  ]).optional(),
26089
26945
  checkIntervalSec: number().optional(),
26090
- check: SceneCheckSchema.optional()
26946
+ check: SceneCheckSchema.optional(),
26947
+ emit: _enum(["latched", "live"]).optional(),
26948
+ quietSeconds: number().int().min(0).max(3600).optional(),
26949
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26950
+ anchorThreshold: number().min(0).max(1).optional(),
26951
+ autoRestore: boolean().optional(),
26952
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26953
+ /** `null` clears the vision-model adjudicator. */
26954
+ confirm: SceneConfirmSchema.nullable().optional()
26091
26955
  })
26092
26956
  }), _void(), {
26093
26957
  kind: "mutation",
@@ -26128,6 +26992,26 @@ var sceneMonitorCapability = {
26128
26992
  }), _void(), {
26129
26993
  kind: "mutation",
26130
26994
  auth: "admin"
26995
+ }),
26996
+ /**
26997
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26998
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26999
+ * "reset" in the operator's head means *this is the new normal*, and
27000
+ * re-capture is what makes the feature self-healing against slow drift
27001
+ * instead of failing silently weeks later.
27002
+ *
27003
+ * Reachable from three surfaces on this one mutation: the scene card, a
27004
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27005
+ * no new Notification-Center code at all), and tRPC for scripts.
27006
+ */
27007
+ resetScene: method(object({
27008
+ deviceId: number(),
27009
+ monitorId: string(),
27010
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27011
+ recapture: boolean().optional()
27012
+ }), _void(), {
27013
+ kind: "mutation",
27014
+ auth: "admin"
26131
27015
  })
26132
27016
  },
26133
27017
  status: {
@@ -26370,13 +27254,63 @@ var CamStreamDescriptorSchema = object({
26370
27254
  * set of stream descriptors it can offer for the device, synchronously, so the
26371
27255
  * broker can reconcile its registry against the authoritative provider state.
26372
27256
  */
27257
+ /**
27258
+ * The catalog as a DURABLE fact rather than a live answer.
27259
+ *
27260
+ * A battery camera's descriptors are profile-stable — they change when the
27261
+ * operator rewrites an encoder profile, not minute to minute — but building
27262
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27263
+ * provider is allowed to build them exactly once per profile and must serve
27264
+ * every later pull from a cache.
27265
+ *
27266
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27267
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27268
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27269
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27270
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27271
+ * which on a battery cam is most of the day. The camera was fine. The stream
27272
+ * was unreachable because the process had forgotten what the camera offers.
27273
+ *
27274
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27275
+ * declared collection, with the same `restored` durability `battery` uses for
27276
+ * the same reason: the last known value is the only value there is while the
27277
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27278
+ * is the DIAL that wakes a camera, never the catalog (D173).
27279
+ */
27280
+ var StreamCatalogStateSchema = object({
27281
+ /** The descriptors as last built from a real camera response. Never a guess:
27282
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27283
+ * one the camera itself once produced. */
27284
+ descriptors: array(CamStreamDescriptorSchema),
27285
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27286
+ * path decide whether the camera's own awake window is worth spending on a
27287
+ * re-read. */
27288
+ lastFetchedAt: number()
27289
+ });
26373
27290
  var streamCatalogCapability = {
26374
27291
  name: "stream-catalog",
26375
27292
  scope: "device",
26376
27293
  deviceNative: true,
26377
27294
  mode: "singleton",
26378
27295
  deviceTypes: [DeviceType.Camera],
26379
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
27296
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27297
+ runtimeState: StreamCatalogStateSchema,
27298
+ /**
27299
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27300
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27301
+ * camera that cannot be watched at all until it happens to wake.
27302
+ *
27303
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27304
+ * build, and a build only runs when there is no cached copy (or the copy is
27305
+ * a day old and the camera is awake anyway).
27306
+ *
27307
+ * See `RuntimeStateDurability`. Enforced by
27308
+ * `scripts/check-runtime-state-durability.ts`.
27309
+ */
27310
+ durability: "restored",
27311
+ /** Clock field: written, but excluded from the compare that decides whether
27312
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27313
+ volatileStateFields: ["lastFetchedAt"]
26380
27314
  };
26381
27315
  /** One of the camera's stream profiles. */
26382
27316
  var StreamProfileSchema = _enum([
@@ -26631,12 +27565,64 @@ var NetworkAddressSchema = object({
26631
27565
  family: string(),
26632
27566
  internal: boolean()
26633
27567
  });
27568
+ /**
27569
+ * Provenance of the site coordinates, and the whole reason this is not just two
27570
+ * numbers.
27571
+ *
27572
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27573
+ * nothing overwrites it.
27574
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27575
+ * default that is right to a few kilometres beats the coarse UTC clock split
27576
+ * the sun-times consumers otherwise fall back to.
27577
+ *
27578
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27579
+ * own input will eventually trust the guess.
27580
+ */
27581
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27582
+ /**
27583
+ * The read shape: the location plus the honest state of the one-shot derivation.
27584
+ *
27585
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27586
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27587
+ * failed; the hub will NOT try again on its own — the fallback is declared
27588
+ * (consumers degrade to their own last resort) and the operator either types the
27589
+ * coordinates or presses detect.
27590
+ */
27591
+ var SiteLocationStatusSchema = object({
27592
+ location: object({
27593
+ /** WGS84 decimal degrees. */
27594
+ latitude: number().min(-90).max(90),
27595
+ longitude: number().min(-180).max(180),
27596
+ source: SiteLocationSourceSchema,
27597
+ /** Epoch ms the value was last written. */
27598
+ updatedAt: number(),
27599
+ /**
27600
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27601
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27602
+ */
27603
+ label: string().optional()
27604
+ }).nullable(),
27605
+ derivationAttemptedAt: number().nullable(),
27606
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27607
+ derivationError: string().nullable()
27608
+ });
27609
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27610
+ var SetSiteLocationInputSchema = object({
27611
+ latitude: number().min(-90).max(90),
27612
+ longitude: number().min(-180).max(180)
27613
+ }).nullable();
26634
27614
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
26635
27615
  kind: "mutation",
26636
27616
  auth: "admin"
26637
27617
  }), method(_void(), _void(), {
26638
27618
  kind: "mutation",
26639
27619
  auth: "admin"
27620
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27621
+ kind: "mutation",
27622
+ auth: "admin"
27623
+ }), method(_void(), SiteLocationStatusSchema, {
27624
+ kind: "mutation",
27625
+ auth: "admin"
26640
27626
  });
26641
27627
  /**
26642
27628
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27956,6 +28942,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27956
28942
  humiditySensor: humiditySensorCapability,
27957
28943
  image: imageCapability,
27958
28944
  imageSettings: imageSettingsCapability,
28945
+ intercom: intercomCapability,
27959
28946
  lawnMowerControl: lawnMowerControlCapability,
27960
28947
  lockControl: lockControlCapability,
27961
28948
  mediaPlayer: mediaPlayerCapability,
@@ -27974,6 +28961,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27974
28961
  sceneMonitor: sceneMonitorCapability,
27975
28962
  scriptRunner: scriptRunnerCapability,
27976
28963
  smoke: smokeCapability,
28964
+ streamCatalog: streamCatalogCapability,
27977
28965
  streamParams: streamParamsCapability,
27978
28966
  switch: switchCapability,
27979
28967
  tamper: tamperCapability,
@@ -28627,6 +29615,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28627
29615
  labels: ["probe not implemented"]
28628
29616
  };
28629
29617
  }
29618
+ /**
29619
+ * Top-level devices restored at once in {@link onRestoreDevices}.
29620
+ *
29621
+ * Four covers the fleets this ships to without turning a boot into a burst a
29622
+ * camera NVR answers with a refusal. A provider whose upstream is a single
29623
+ * session with a serial command channel (a Baichuan hub, an NVR that
29624
+ * serialises ISAPI) should lower it; nothing needs to raise it.
29625
+ */
29626
+ restoreConcurrency = 4;
28630
29627
  async restoreDevices(savedDevices) {
28631
29628
  await this.onRestoreDevices(savedDevices);
28632
29629
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -28658,15 +29655,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28658
29655
  */
28659
29656
  async onRestoreDevices(savedDevices) {
28660
29657
  const restored = /* @__PURE__ */ new Set();
28661
- for (const saved of savedDevices) {
28662
- if (saved.parentDeviceId !== null) continue;
29658
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
29659
+ const restoreOne = async (saved) => {
28663
29660
  const Class = this.deviceClasses[saved.type];
28664
29661
  if (!Class) {
28665
29662
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
28666
29663
  tags: { stableId: saved.stableId },
28667
29664
  meta: { type: saved.type }
28668
29665
  });
28669
- continue;
29666
+ return;
28670
29667
  }
28671
29668
  try {
28672
29669
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -28680,7 +29677,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28680
29677
  }
28681
29678
  });
28682
29679
  }
28683
- }
29680
+ };
29681
+ let nextTopLevel = 0;
29682
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
29683
+ for (;;) {
29684
+ const saved = topLevel[nextTopLevel++];
29685
+ if (saved === void 0) return;
29686
+ await restoreOne(saved);
29687
+ }
29688
+ }));
28684
29689
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
28685
29690
  for (const saved of childRows) {
28686
29691
  const Class = this.deviceClasses[saved.type];
@@ -30837,6 +31842,12 @@ Object.freeze({
30837
31842
  addonId: null,
30838
31843
  access: "create"
30839
31844
  },
31845
+ "llm.cancel": {
31846
+ capName: "llm",
31847
+ capScope: "system",
31848
+ addonId: null,
31849
+ access: "create"
31850
+ },
30840
31851
  "llm.deleteModel": {
30841
31852
  capName: "llm",
30842
31853
  capScope: "system",
@@ -30921,6 +31932,12 @@ Object.freeze({
30921
31932
  addonId: null,
30922
31933
  access: "view"
30923
31934
  },
31935
+ "llm.resolveModelRef": {
31936
+ capName: "llm",
31937
+ capScope: "system",
31938
+ addonId: null,
31939
+ access: "create"
31940
+ },
30924
31941
  "llm.setDefault": {
30925
31942
  capName: "llm",
30926
31943
  capScope: "system",
@@ -33087,6 +34104,12 @@ Object.freeze({
33087
34104
  addonId: null,
33088
34105
  access: "create"
33089
34106
  },
34107
+ "sceneMonitor.resetScene": {
34108
+ capName: "scene-monitor",
34109
+ capScope: "device",
34110
+ addonId: null,
34111
+ access: "delete"
34112
+ },
33090
34113
  "sceneMonitor.updateScene": {
33091
34114
  capName: "scene-monitor",
33092
34115
  capScope: "device",
@@ -33225,6 +34248,12 @@ Object.freeze({
33225
34248
  addonId: null,
33226
34249
  access: "view"
33227
34250
  },
34251
+ "snapshot.getDebugState": {
34252
+ capName: "snapshot",
34253
+ capScope: "device",
34254
+ addonId: null,
34255
+ access: "view"
34256
+ },
33228
34257
  "snapshot.getSnapshot": {
33229
34258
  capName: "snapshot",
33230
34259
  capScope: "device",
@@ -33765,6 +34794,12 @@ Object.freeze({
33765
34794
  addonId: null,
33766
34795
  access: "create"
33767
34796
  },
34797
+ "system.detectSiteLocation": {
34798
+ capName: "system",
34799
+ capScope: "system",
34800
+ addonId: null,
34801
+ access: "create"
34802
+ },
33768
34803
  "system.featureFlags": {
33769
34804
  capName: "system",
33770
34805
  capScope: "system",
@@ -33783,6 +34818,12 @@ Object.freeze({
33783
34818
  addonId: null,
33784
34819
  access: "view"
33785
34820
  },
34821
+ "system.getSiteLocation": {
34822
+ capName: "system",
34823
+ capScope: "system",
34824
+ addonId: null,
34825
+ access: "view"
34826
+ },
33786
34827
  "system.health": {
33787
34828
  capName: "system",
33788
34829
  capScope: "system",
@@ -33807,6 +34848,12 @@ Object.freeze({
33807
34848
  addonId: null,
33808
34849
  access: "create"
33809
34850
  },
34851
+ "system.setSiteLocation": {
34852
+ capName: "system",
34853
+ capScope: "system",
34854
+ addonId: null,
34855
+ access: "create"
34856
+ },
33810
34857
  "terminalSession.adoptLegacyMonitor": {
33811
34858
  capName: "terminal-session",
33812
34859
  capScope: "system",
@@ -34378,6 +35425,1709 @@ Object.freeze({
34378
35425
  access: "create"
34379
35426
  }
34380
35427
  });
35428
+ Object.freeze({
35429
+ "accessories.setChildHidden": [{
35430
+ name: "childDeviceId",
35431
+ form: "single",
35432
+ optional: false
35433
+ }, {
35434
+ name: "deviceId",
35435
+ form: "single",
35436
+ optional: false
35437
+ }],
35438
+ "addonSettings.getDeviceSettings": [{
35439
+ name: "deviceId",
35440
+ form: "single",
35441
+ optional: false
35442
+ }],
35443
+ "addonSettings.updateDeviceSettings": [{
35444
+ name: "deviceId",
35445
+ form: "single",
35446
+ optional: false
35447
+ }],
35448
+ "alarmPanel.arm": [{
35449
+ name: "deviceId",
35450
+ form: "single",
35451
+ optional: false
35452
+ }],
35453
+ "alarmPanel.disarm": [{
35454
+ name: "deviceId",
35455
+ form: "single",
35456
+ optional: false
35457
+ }],
35458
+ "alarmPanel.trigger": [{
35459
+ name: "deviceId",
35460
+ form: "single",
35461
+ optional: false
35462
+ }],
35463
+ "audioAnalysis.resolveDeviceSettings": [{
35464
+ name: "deviceId",
35465
+ form: "single",
35466
+ optional: false
35467
+ }],
35468
+ "audioAnalyzer.classify": [{
35469
+ name: "deviceId",
35470
+ form: "single",
35471
+ optional: true
35472
+ }],
35473
+ "audioMetrics.getCurrentSnapshot": [{
35474
+ name: "deviceId",
35475
+ form: "single",
35476
+ optional: false
35477
+ }],
35478
+ "audioMetrics.getHistory": [{
35479
+ name: "deviceId",
35480
+ form: "single",
35481
+ optional: false
35482
+ }],
35483
+ "automationControl.disable": [{
35484
+ name: "deviceId",
35485
+ form: "single",
35486
+ optional: false
35487
+ }],
35488
+ "automationControl.enable": [{
35489
+ name: "deviceId",
35490
+ form: "single",
35491
+ optional: false
35492
+ }],
35493
+ "automationControl.trigger": [{
35494
+ name: "deviceId",
35495
+ form: "single",
35496
+ optional: false
35497
+ }],
35498
+ "battery.wakeForStream": [{
35499
+ name: "deviceId",
35500
+ form: "single",
35501
+ optional: false
35502
+ }],
35503
+ "brightness.setBrightness": [{
35504
+ name: "deviceId",
35505
+ form: "single",
35506
+ optional: false
35507
+ }],
35508
+ "button.press": [{
35509
+ name: "deviceId",
35510
+ form: "single",
35511
+ optional: false
35512
+ }],
35513
+ "cameraCredentials.getCredentials": [{
35514
+ name: "deviceId",
35515
+ form: "single",
35516
+ optional: false
35517
+ }],
35518
+ "cameraStreams.getBrokerStreams": [{
35519
+ name: "deviceId",
35520
+ form: "single",
35521
+ optional: false
35522
+ }],
35523
+ "cameraStreams.getCameraStreams": [{
35524
+ name: "deviceId",
35525
+ form: "single",
35526
+ optional: false
35527
+ }],
35528
+ "cameraStreams.getProfileRtspEntries": [{
35529
+ name: "deviceId",
35530
+ form: "single",
35531
+ optional: false
35532
+ }],
35533
+ "cameraStreams.getRtspEntries": [{
35534
+ name: "deviceId",
35535
+ form: "single",
35536
+ optional: false
35537
+ }],
35538
+ "cameraStreams.pickStream": [{
35539
+ name: "deviceId",
35540
+ form: "single",
35541
+ optional: false
35542
+ }],
35543
+ "climateControl.setFanMode": [{
35544
+ name: "deviceId",
35545
+ form: "single",
35546
+ optional: false
35547
+ }],
35548
+ "climateControl.setMode": [{
35549
+ name: "deviceId",
35550
+ form: "single",
35551
+ optional: false
35552
+ }],
35553
+ "climateControl.setPreset": [{
35554
+ name: "deviceId",
35555
+ form: "single",
35556
+ optional: false
35557
+ }],
35558
+ "climateControl.setSwingHorizontal": [{
35559
+ name: "deviceId",
35560
+ form: "single",
35561
+ optional: false
35562
+ }],
35563
+ "climateControl.setSwingVertical": [{
35564
+ name: "deviceId",
35565
+ form: "single",
35566
+ optional: false
35567
+ }],
35568
+ "climateControl.setTarget": [{
35569
+ name: "deviceId",
35570
+ form: "single",
35571
+ optional: false
35572
+ }],
35573
+ "climateControl.setTargetHumidity": [{
35574
+ name: "deviceId",
35575
+ form: "single",
35576
+ optional: false
35577
+ }],
35578
+ "climateControl.setTargetRange": [{
35579
+ name: "deviceId",
35580
+ form: "single",
35581
+ optional: false
35582
+ }],
35583
+ "color.setColor": [{
35584
+ name: "deviceId",
35585
+ form: "single",
35586
+ optional: false
35587
+ }],
35588
+ "consumables.reset": [{
35589
+ name: "deviceId",
35590
+ form: "single",
35591
+ optional: false
35592
+ }],
35593
+ "control.setValue": [{
35594
+ name: "deviceId",
35595
+ form: "single",
35596
+ optional: false
35597
+ }],
35598
+ "cover.close": [{
35599
+ name: "deviceId",
35600
+ form: "single",
35601
+ optional: false
35602
+ }],
35603
+ "cover.open": [{
35604
+ name: "deviceId",
35605
+ form: "single",
35606
+ optional: false
35607
+ }],
35608
+ "cover.setPosition": [{
35609
+ name: "deviceId",
35610
+ form: "single",
35611
+ optional: false
35612
+ }],
35613
+ "cover.setTiltPosition": [{
35614
+ name: "deviceId",
35615
+ form: "single",
35616
+ optional: false
35617
+ }],
35618
+ "cover.stop": [{
35619
+ name: "deviceId",
35620
+ form: "single",
35621
+ optional: false
35622
+ }],
35623
+ "dayNight.getOptions": [{
35624
+ name: "deviceId",
35625
+ form: "single",
35626
+ optional: false
35627
+ }],
35628
+ "dayNight.setSettings": [{
35629
+ name: "deviceId",
35630
+ form: "single",
35631
+ optional: false
35632
+ }],
35633
+ "decoder.createSession": [{
35634
+ name: "deviceId",
35635
+ form: "single",
35636
+ optional: true
35637
+ }],
35638
+ "deviceAdoption.release": [{
35639
+ name: "camDeviceId",
35640
+ form: "single",
35641
+ optional: false
35642
+ }],
35643
+ "deviceAdoption.resync": [{
35644
+ name: "camDeviceId",
35645
+ form: "single",
35646
+ optional: false
35647
+ }],
35648
+ "deviceDiscovery.adoptDevice": [{
35649
+ name: "deviceId",
35650
+ form: "single",
35651
+ optional: false
35652
+ }],
35653
+ "deviceDiscovery.listDiscovered": [{
35654
+ name: "deviceId",
35655
+ form: "single",
35656
+ optional: false
35657
+ }],
35658
+ "deviceDiscovery.refreshDiscovery": [{
35659
+ name: "deviceId",
35660
+ form: "single",
35661
+ optional: false
35662
+ }],
35663
+ "deviceDiscovery.releaseDevice": [{
35664
+ name: "childDeviceId",
35665
+ form: "single",
35666
+ optional: false
35667
+ }, {
35668
+ name: "deviceId",
35669
+ form: "single",
35670
+ optional: false
35671
+ }],
35672
+ "deviceManager.adoptionRelease": [{
35673
+ name: "camDeviceId",
35674
+ form: "single",
35675
+ optional: false
35676
+ }],
35677
+ "deviceManager.adoptionResync": [{
35678
+ name: "camDeviceId",
35679
+ form: "single",
35680
+ optional: false
35681
+ }],
35682
+ "deviceManager.applyInitialMeta": [{
35683
+ name: "deviceId",
35684
+ form: "single",
35685
+ optional: false
35686
+ }, {
35687
+ name: "linkDeviceId",
35688
+ form: "single",
35689
+ optional: true
35690
+ }],
35691
+ "deviceManager.disable": [{
35692
+ name: "deviceId",
35693
+ form: "single",
35694
+ optional: false
35695
+ }],
35696
+ "deviceManager.enable": [{
35697
+ name: "deviceId",
35698
+ form: "single",
35699
+ optional: false
35700
+ }],
35701
+ "deviceManager.getBindings": [{
35702
+ name: "deviceId",
35703
+ form: "single",
35704
+ optional: false
35705
+ }],
35706
+ "deviceManager.getChildren": [{
35707
+ name: "parentDeviceId",
35708
+ form: "single",
35709
+ optional: false
35710
+ }],
35711
+ "deviceManager.getConfigSchema": [{
35712
+ name: "deviceId",
35713
+ form: "single",
35714
+ optional: false
35715
+ }],
35716
+ "deviceManager.getDevice": [{
35717
+ name: "deviceId",
35718
+ form: "single",
35719
+ optional: false
35720
+ }],
35721
+ "deviceManager.getDeviceAggregate": [{
35722
+ name: "deviceId",
35723
+ form: "single",
35724
+ optional: false
35725
+ }],
35726
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35727
+ name: "deviceId",
35728
+ form: "single",
35729
+ optional: false
35730
+ }],
35731
+ "deviceManager.getDeviceSettingsAggregate": [{
35732
+ name: "deviceId",
35733
+ form: "single",
35734
+ optional: false
35735
+ }],
35736
+ "deviceManager.getDeviceStatusAggregate": [{
35737
+ name: "deviceId",
35738
+ form: "single",
35739
+ optional: false
35740
+ }],
35741
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35742
+ name: "deviceIds",
35743
+ form: "array",
35744
+ optional: false
35745
+ }],
35746
+ "deviceManager.getLinkedDevices": [{
35747
+ name: "deviceId",
35748
+ form: "single",
35749
+ optional: false
35750
+ }],
35751
+ "deviceManager.getSettingsSchema": [{
35752
+ name: "deviceId",
35753
+ form: "single",
35754
+ optional: false
35755
+ }],
35756
+ "deviceManager.getStreamProfileMap": [{
35757
+ name: "deviceId",
35758
+ form: "single",
35759
+ optional: false
35760
+ }],
35761
+ "deviceManager.getStreamSources": [{
35762
+ name: "deviceId",
35763
+ form: "single",
35764
+ optional: false
35765
+ }],
35766
+ "deviceManager.getWireableFields": [{
35767
+ name: "deviceId",
35768
+ form: "single",
35769
+ optional: false
35770
+ }],
35771
+ "deviceManager.loadConfig": [{
35772
+ name: "deviceId",
35773
+ form: "single",
35774
+ optional: false
35775
+ }],
35776
+ "deviceManager.loadMeta": [{
35777
+ name: "deviceId",
35778
+ form: "single",
35779
+ optional: false
35780
+ }],
35781
+ "deviceManager.loadRuntimeState": [{
35782
+ name: "deviceId",
35783
+ form: "single",
35784
+ optional: false
35785
+ }],
35786
+ "deviceManager.persistConfig": [{
35787
+ name: "deviceId",
35788
+ form: "single",
35789
+ optional: false
35790
+ }],
35791
+ "deviceManager.probeStreams": [{
35792
+ name: "deviceId",
35793
+ form: "single",
35794
+ optional: false
35795
+ }],
35796
+ "deviceManager.registerDevice": [{
35797
+ name: "parentDeviceId",
35798
+ form: "single",
35799
+ optional: true
35800
+ }],
35801
+ "deviceManager.remove": [{
35802
+ name: "deviceId",
35803
+ form: "single",
35804
+ optional: false
35805
+ }],
35806
+ "deviceManager.removeDevice": [{
35807
+ name: "deviceId",
35808
+ form: "single",
35809
+ optional: false
35810
+ }],
35811
+ "deviceManager.runDeviceAction": [{
35812
+ name: "deviceId",
35813
+ form: "single",
35814
+ optional: false
35815
+ }],
35816
+ "deviceManager.setChildLayout": [{
35817
+ name: "deviceId",
35818
+ form: "single",
35819
+ optional: false
35820
+ }],
35821
+ "deviceManager.setDisabled": [{
35822
+ name: "deviceId",
35823
+ form: "single",
35824
+ optional: false
35825
+ }],
35826
+ "deviceManager.setDisplay": [{
35827
+ name: "deviceId",
35828
+ form: "single",
35829
+ optional: false
35830
+ }],
35831
+ "deviceManager.setIntegrationId": [{
35832
+ name: "deviceId",
35833
+ form: "single",
35834
+ optional: false
35835
+ }],
35836
+ "deviceManager.setLinkDeviceId": [{
35837
+ name: "deviceId",
35838
+ form: "single",
35839
+ optional: false
35840
+ }, {
35841
+ name: "linkDeviceId",
35842
+ form: "single",
35843
+ optional: true
35844
+ }],
35845
+ "deviceManager.setLocation": [{
35846
+ name: "deviceId",
35847
+ form: "single",
35848
+ optional: false
35849
+ }],
35850
+ "deviceManager.setMetadata": [{
35851
+ name: "deviceId",
35852
+ form: "single",
35853
+ optional: false
35854
+ }],
35855
+ "deviceManager.setName": [{
35856
+ name: "deviceId",
35857
+ form: "single",
35858
+ optional: false
35859
+ }],
35860
+ "deviceManager.setPrimaryChildEntityId": [{
35861
+ name: "deviceId",
35862
+ form: "single",
35863
+ optional: false
35864
+ }],
35865
+ "deviceManager.setRole": [{
35866
+ name: "deviceId",
35867
+ form: "single",
35868
+ optional: false
35869
+ }],
35870
+ "deviceManager.setStreamProfileMap": [{
35871
+ name: "deviceId",
35872
+ form: "single",
35873
+ optional: false
35874
+ }],
35875
+ "deviceManager.setType": [{
35876
+ name: "deviceId",
35877
+ form: "single",
35878
+ optional: false
35879
+ }],
35880
+ "deviceManager.setWrapperActive": [{
35881
+ name: "deviceId",
35882
+ form: "single",
35883
+ optional: false
35884
+ }],
35885
+ "deviceManager.testField": [{
35886
+ name: "deviceId",
35887
+ form: "single",
35888
+ optional: false
35889
+ }],
35890
+ "deviceManager.updateConfig": [{
35891
+ name: "deviceId",
35892
+ form: "single",
35893
+ optional: false
35894
+ }],
35895
+ "deviceManager.updateDeviceField": [{
35896
+ name: "deviceId",
35897
+ form: "single",
35898
+ optional: false
35899
+ }],
35900
+ "deviceManager.updateDeviceFieldsBatch": [{
35901
+ name: "deviceId",
35902
+ form: "single",
35903
+ optional: false
35904
+ }],
35905
+ "deviceOps.getConfigEntries": [{
35906
+ name: "deviceId",
35907
+ form: "single",
35908
+ optional: false
35909
+ }],
35910
+ "deviceOps.getRawState": [{
35911
+ name: "deviceId",
35912
+ form: "single",
35913
+ optional: false
35914
+ }],
35915
+ "deviceOps.getSettingsSchema": [{
35916
+ name: "deviceId",
35917
+ form: "single",
35918
+ optional: false
35919
+ }],
35920
+ "deviceOps.getStreamSources": [{
35921
+ name: "deviceId",
35922
+ form: "single",
35923
+ optional: false
35924
+ }],
35925
+ "deviceOps.removeDevice": [{
35926
+ name: "deviceId",
35927
+ form: "single",
35928
+ optional: false
35929
+ }],
35930
+ "deviceOps.runAction": [{
35931
+ name: "deviceId",
35932
+ form: "single",
35933
+ optional: false
35934
+ }],
35935
+ "deviceOps.setConfig": [{
35936
+ name: "deviceId",
35937
+ form: "single",
35938
+ optional: false
35939
+ }],
35940
+ "deviceState.getCapSlice": [{
35941
+ name: "deviceId",
35942
+ form: "single",
35943
+ optional: false
35944
+ }],
35945
+ "deviceState.getSnapshot": [{
35946
+ name: "deviceId",
35947
+ form: "single",
35948
+ optional: false
35949
+ }],
35950
+ "deviceState.setCapSlice": [{
35951
+ name: "deviceId",
35952
+ form: "single",
35953
+ optional: false
35954
+ }],
35955
+ "events.getEventClipUrl": [{
35956
+ name: "deviceId",
35957
+ form: "single",
35958
+ optional: false
35959
+ }],
35960
+ "events.getEvents": [{
35961
+ name: "deviceId",
35962
+ form: "single",
35963
+ optional: false
35964
+ }],
35965
+ "events.getEventThumbnail": [{
35966
+ name: "deviceId",
35967
+ form: "single",
35968
+ optional: false
35969
+ }],
35970
+ "faceGallery.getFaceByTrack": [{
35971
+ name: "deviceId",
35972
+ form: "single",
35973
+ optional: false
35974
+ }],
35975
+ "faceGallery.listRecentFaces": [{
35976
+ name: "deviceId",
35977
+ form: "single",
35978
+ optional: true
35979
+ }],
35980
+ "fanControl.setDirection": [{
35981
+ name: "deviceId",
35982
+ form: "single",
35983
+ optional: false
35984
+ }],
35985
+ "fanControl.setOscillating": [{
35986
+ name: "deviceId",
35987
+ form: "single",
35988
+ optional: false
35989
+ }],
35990
+ "fanControl.setPercentage": [{
35991
+ name: "deviceId",
35992
+ form: "single",
35993
+ optional: false
35994
+ }],
35995
+ "fanControl.setPreset": [{
35996
+ name: "deviceId",
35997
+ form: "single",
35998
+ optional: false
35999
+ }],
36000
+ "humidifier.setMode": [{
36001
+ name: "deviceId",
36002
+ form: "single",
36003
+ optional: false
36004
+ }],
36005
+ "humidifier.setOn": [{
36006
+ name: "deviceId",
36007
+ form: "single",
36008
+ optional: false
36009
+ }],
36010
+ "humidifier.setTargetHumidity": [{
36011
+ name: "deviceId",
36012
+ form: "single",
36013
+ optional: false
36014
+ }],
36015
+ "imageSettings.getOptions": [{
36016
+ name: "deviceId",
36017
+ form: "single",
36018
+ optional: false
36019
+ }],
36020
+ "imageSettings.setSettings": [{
36021
+ name: "deviceId",
36022
+ form: "single",
36023
+ optional: false
36024
+ }],
36025
+ "intercom.endTalkSession": [{
36026
+ name: "deviceId",
36027
+ form: "single",
36028
+ optional: false
36029
+ }],
36030
+ "intercom.handleAnswer": [{
36031
+ name: "deviceId",
36032
+ form: "single",
36033
+ optional: false
36034
+ }],
36035
+ "intercom.pushTalkAudio": [{
36036
+ name: "deviceId",
36037
+ form: "single",
36038
+ optional: false
36039
+ }],
36040
+ "intercom.startSession": [{
36041
+ name: "deviceId",
36042
+ form: "single",
36043
+ optional: false
36044
+ }],
36045
+ "intercom.startTalkSession": [{
36046
+ name: "deviceId",
36047
+ form: "single",
36048
+ optional: false
36049
+ }],
36050
+ "intercom.stopSession": [{
36051
+ name: "deviceId",
36052
+ form: "single",
36053
+ optional: false
36054
+ }],
36055
+ "lawnMowerControl.dock": [{
36056
+ name: "deviceId",
36057
+ form: "single",
36058
+ optional: false
36059
+ }],
36060
+ "lawnMowerControl.pause": [{
36061
+ name: "deviceId",
36062
+ form: "single",
36063
+ optional: false
36064
+ }],
36065
+ "lawnMowerControl.startMowing": [{
36066
+ name: "deviceId",
36067
+ form: "single",
36068
+ optional: false
36069
+ }],
36070
+ "lockControl.lock": [{
36071
+ name: "deviceId",
36072
+ form: "single",
36073
+ optional: false
36074
+ }],
36075
+ "lockControl.open": [{
36076
+ name: "deviceId",
36077
+ form: "single",
36078
+ optional: false
36079
+ }],
36080
+ "lockControl.unlock": [{
36081
+ name: "deviceId",
36082
+ form: "single",
36083
+ optional: false
36084
+ }],
36085
+ "mediaPlayer.next": [{
36086
+ name: "deviceId",
36087
+ form: "single",
36088
+ optional: false
36089
+ }],
36090
+ "mediaPlayer.pause": [{
36091
+ name: "deviceId",
36092
+ form: "single",
36093
+ optional: false
36094
+ }],
36095
+ "mediaPlayer.play": [{
36096
+ name: "deviceId",
36097
+ form: "single",
36098
+ optional: false
36099
+ }],
36100
+ "mediaPlayer.playMedia": [{
36101
+ name: "deviceId",
36102
+ form: "single",
36103
+ optional: false
36104
+ }],
36105
+ "mediaPlayer.previous": [{
36106
+ name: "deviceId",
36107
+ form: "single",
36108
+ optional: false
36109
+ }],
36110
+ "mediaPlayer.seek": [{
36111
+ name: "deviceId",
36112
+ form: "single",
36113
+ optional: false
36114
+ }],
36115
+ "mediaPlayer.selectSource": [{
36116
+ name: "deviceId",
36117
+ form: "single",
36118
+ optional: false
36119
+ }],
36120
+ "mediaPlayer.setMute": [{
36121
+ name: "deviceId",
36122
+ form: "single",
36123
+ optional: false
36124
+ }],
36125
+ "mediaPlayer.setRepeat": [{
36126
+ name: "deviceId",
36127
+ form: "single",
36128
+ optional: false
36129
+ }],
36130
+ "mediaPlayer.setShuffle": [{
36131
+ name: "deviceId",
36132
+ form: "single",
36133
+ optional: false
36134
+ }],
36135
+ "mediaPlayer.setVolume": [{
36136
+ name: "deviceId",
36137
+ form: "single",
36138
+ optional: false
36139
+ }],
36140
+ "mediaPlayer.stop": [{
36141
+ name: "deviceId",
36142
+ form: "single",
36143
+ optional: false
36144
+ }],
36145
+ "motion.isDetected": [{
36146
+ name: "deviceId",
36147
+ form: "single",
36148
+ optional: false
36149
+ }],
36150
+ "motionDetection.analyze": [{
36151
+ name: "deviceId",
36152
+ form: "single",
36153
+ optional: false
36154
+ }],
36155
+ "motionDetection.removeCamera": [{
36156
+ name: "deviceId",
36157
+ form: "single",
36158
+ optional: false
36159
+ }],
36160
+ "motionTrigger.setMotionTrigger": [{
36161
+ name: "deviceId",
36162
+ form: "single",
36163
+ optional: false
36164
+ }],
36165
+ "motionZones.getOptions": [{
36166
+ name: "deviceId",
36167
+ form: "single",
36168
+ optional: false
36169
+ }],
36170
+ "motionZones.setZone": [{
36171
+ name: "deviceId",
36172
+ form: "single",
36173
+ optional: false
36174
+ }],
36175
+ "nativeObjectDetection.setEnabled": [{
36176
+ name: "deviceId",
36177
+ form: "single",
36178
+ optional: false
36179
+ }],
36180
+ "networkQuality.getDeviceStats": [{
36181
+ name: "deviceId",
36182
+ form: "single",
36183
+ optional: false
36184
+ }],
36185
+ "networkQuality.reportClientStats": [{
36186
+ name: "deviceId",
36187
+ form: "single",
36188
+ optional: false
36189
+ }],
36190
+ "notificationRules.setDeviceMuted": [{
36191
+ name: "deviceId",
36192
+ form: "single",
36193
+ optional: false
36194
+ }],
36195
+ "notifier.cancel": [{
36196
+ name: "deviceId",
36197
+ form: "single",
36198
+ optional: false
36199
+ }],
36200
+ "notifier.send": [{
36201
+ name: "deviceId",
36202
+ form: "single",
36203
+ optional: false
36204
+ }],
36205
+ "osd.setOverlay": [{
36206
+ name: "deviceId",
36207
+ form: "single",
36208
+ optional: false
36209
+ }],
36210
+ "osdManager.clearSlotBinding": [{
36211
+ name: "deviceId",
36212
+ form: "single",
36213
+ optional: false
36214
+ }],
36215
+ "osdManager.copyDeviceConfiguration": [{
36216
+ name: "sourceDeviceId",
36217
+ form: "single",
36218
+ optional: false
36219
+ }, {
36220
+ name: "targetDeviceId",
36221
+ form: "single",
36222
+ optional: false
36223
+ }],
36224
+ "osdManager.getDeviceOsd": [{
36225
+ name: "deviceId",
36226
+ form: "single",
36227
+ optional: false
36228
+ }],
36229
+ "osdManager.getSourceCatalog": [{
36230
+ name: "deviceId",
36231
+ form: "single",
36232
+ optional: false
36233
+ }],
36234
+ "osdManager.previewSlot": [{
36235
+ name: "deviceId",
36236
+ form: "single",
36237
+ optional: false
36238
+ }],
36239
+ "osdManager.renderDevice": [{
36240
+ name: "deviceId",
36241
+ form: "single",
36242
+ optional: false
36243
+ }],
36244
+ "osdManager.setSlotBinding": [{
36245
+ name: "deviceId",
36246
+ form: "single",
36247
+ optional: false
36248
+ }],
36249
+ "petFeeder.callPet": [{
36250
+ name: "deviceId",
36251
+ form: "single",
36252
+ optional: false
36253
+ }],
36254
+ "petFeeder.cancelFeed": [{
36255
+ name: "deviceId",
36256
+ form: "single",
36257
+ optional: false
36258
+ }],
36259
+ "petFeeder.feed": [{
36260
+ name: "deviceId",
36261
+ form: "single",
36262
+ optional: false
36263
+ }],
36264
+ "petFeeder.markFoodReplenished": [{
36265
+ name: "deviceId",
36266
+ form: "single",
36267
+ optional: false
36268
+ }],
36269
+ "petFeeder.playSound": [{
36270
+ name: "deviceId",
36271
+ form: "single",
36272
+ optional: false
36273
+ }],
36274
+ "petFeeder.resetDesiccant": [{
36275
+ name: "deviceId",
36276
+ form: "single",
36277
+ optional: false
36278
+ }],
36279
+ "petFeeder.setChildLock": [{
36280
+ name: "deviceId",
36281
+ form: "single",
36282
+ optional: false
36283
+ }],
36284
+ "petFeeder.setFeedSound": [{
36285
+ name: "deviceId",
36286
+ form: "single",
36287
+ optional: false
36288
+ }],
36289
+ "petFeeder.setIndicatorLight": [{
36290
+ name: "deviceId",
36291
+ form: "single",
36292
+ optional: false
36293
+ }],
36294
+ "petFeeder.setVolume": [{
36295
+ name: "deviceId",
36296
+ form: "single",
36297
+ optional: false
36298
+ }],
36299
+ "pipelineAnalytics.clearTracks": [{
36300
+ name: "deviceId",
36301
+ form: "single",
36302
+ optional: false
36303
+ }],
36304
+ "pipelineAnalytics.completeRetrainTrack": [{
36305
+ name: "deviceId",
36306
+ form: "single",
36307
+ optional: false
36308
+ }],
36309
+ "pipelineAnalytics.deleteDeviceEvents": [{
36310
+ name: "deviceId",
36311
+ form: "single",
36312
+ optional: false
36313
+ }],
36314
+ "pipelineAnalytics.deleteTracks": [{
36315
+ name: "deviceId",
36316
+ form: "single",
36317
+ optional: false
36318
+ }],
36319
+ "pipelineAnalytics.deselectRetrainFrame": [{
36320
+ name: "deviceId",
36321
+ form: "single",
36322
+ optional: false
36323
+ }],
36324
+ "pipelineAnalytics.getActiveTracks": [{
36325
+ name: "deviceId",
36326
+ form: "single",
36327
+ optional: false
36328
+ }],
36329
+ "pipelineAnalytics.getAudioEvents": [{
36330
+ name: "deviceId",
36331
+ form: "single",
36332
+ optional: false
36333
+ }],
36334
+ "pipelineAnalytics.getEventDensity": [{
36335
+ name: "deviceId",
36336
+ form: "single",
36337
+ optional: false
36338
+ }],
36339
+ "pipelineAnalytics.getEventMedia": [{
36340
+ name: "deviceId",
36341
+ form: "single",
36342
+ optional: false
36343
+ }],
36344
+ "pipelineAnalytics.getKeyEvents": [{
36345
+ name: "deviceId",
36346
+ form: "single",
36347
+ optional: false
36348
+ }],
36349
+ "pipelineAnalytics.getMotionEvents": [{
36350
+ name: "deviceId",
36351
+ form: "single",
36352
+ optional: false
36353
+ }],
36354
+ "pipelineAnalytics.getObjectEvents": [{
36355
+ name: "deviceId",
36356
+ form: "single",
36357
+ optional: false
36358
+ }],
36359
+ "pipelineAnalytics.getRetrainExportUrl": [{
36360
+ name: "deviceIds",
36361
+ form: "array",
36362
+ optional: true
36363
+ }],
36364
+ "pipelineAnalytics.getSensorEvents": [{
36365
+ name: "deviceId",
36366
+ form: "single",
36367
+ optional: false
36368
+ }],
36369
+ "pipelineAnalytics.getTrack": [{
36370
+ name: "deviceId",
36371
+ form: "single",
36372
+ optional: false
36373
+ }],
36374
+ "pipelineAnalytics.getTrackMedia": [{
36375
+ name: "deviceId",
36376
+ form: "single",
36377
+ optional: false
36378
+ }],
36379
+ "pipelineAnalytics.getTrainingExportSummary": [{
36380
+ name: "deviceIds",
36381
+ form: "array",
36382
+ optional: true
36383
+ }],
36384
+ "pipelineAnalytics.getTrainingExportUrl": [{
36385
+ name: "deviceIds",
36386
+ form: "array",
36387
+ optional: true
36388
+ }],
36389
+ "pipelineAnalytics.listEventKinds": [{
36390
+ name: "deviceId",
36391
+ form: "single",
36392
+ optional: false
36393
+ }],
36394
+ "pipelineAnalytics.listEventKindsBatch": [{
36395
+ name: "deviceIds",
36396
+ form: "array",
36397
+ optional: false
36398
+ }],
36399
+ "pipelineAnalytics.listOpsLog": [{
36400
+ name: "deviceId",
36401
+ form: "single",
36402
+ optional: true
36403
+ }],
36404
+ "pipelineAnalytics.listRecentTracks": [{
36405
+ name: "deviceIds",
36406
+ form: "array",
36407
+ optional: false
36408
+ }],
36409
+ "pipelineAnalytics.listRetrainStaging": [{
36410
+ name: "deviceIds",
36411
+ form: "array",
36412
+ optional: true
36413
+ }],
36414
+ "pipelineAnalytics.listTrackMedia": [{
36415
+ name: "deviceId",
36416
+ form: "single",
36417
+ optional: false
36418
+ }],
36419
+ "pipelineAnalytics.listTracks": [{
36420
+ name: "deviceId",
36421
+ form: "single",
36422
+ optional: false
36423
+ }],
36424
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36425
+ name: "deviceId",
36426
+ form: "single",
36427
+ optional: false
36428
+ }],
36429
+ "pipelineAnalytics.pruneEventsBefore": [{
36430
+ name: "deviceId",
36431
+ form: "single",
36432
+ optional: false
36433
+ }],
36434
+ "pipelineAnalytics.pruneTracksBefore": [{
36435
+ name: "deviceId",
36436
+ form: "single",
36437
+ optional: false
36438
+ }],
36439
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36440
+ name: "deviceId",
36441
+ form: "single",
36442
+ optional: true
36443
+ }],
36444
+ "pipelineAnalytics.restageRetrainTrack": [{
36445
+ name: "deviceId",
36446
+ form: "single",
36447
+ optional: false
36448
+ }],
36449
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36450
+ name: "deviceId",
36451
+ form: "single",
36452
+ optional: false
36453
+ }],
36454
+ "pipelineAnalytics.searchObjectEvents": [{
36455
+ name: "deviceId",
36456
+ form: "single",
36457
+ optional: true
36458
+ }],
36459
+ "pipelineAnalytics.selectRetrainFrames": [{
36460
+ name: "deviceId",
36461
+ form: "single",
36462
+ optional: false
36463
+ }],
36464
+ "pipelineAnalytics.setTrackFlags": [{
36465
+ name: "deviceId",
36466
+ form: "single",
36467
+ optional: false
36468
+ }],
36469
+ "pipelineAnalytics.wipeAllAnalytics": [{
36470
+ name: "deviceId",
36471
+ form: "single",
36472
+ optional: false
36473
+ }],
36474
+ "pipelineExecutor.runPipeline": [{
36475
+ name: "deviceId",
36476
+ form: "single",
36477
+ optional: true
36478
+ }],
36479
+ "pipelineExecutor.runPipelineBatch": [{
36480
+ name: "deviceId",
36481
+ form: "single",
36482
+ optional: true
36483
+ }],
36484
+ "pipelineOrchestrator.assignAudio": [{
36485
+ name: "deviceId",
36486
+ form: "single",
36487
+ optional: false
36488
+ }],
36489
+ "pipelineOrchestrator.assignPipeline": [{
36490
+ name: "deviceId",
36491
+ form: "single",
36492
+ optional: false
36493
+ }],
36494
+ "pipelineOrchestrator.getAudioAssignment": [{
36495
+ name: "deviceId",
36496
+ form: "single",
36497
+ optional: false
36498
+ }],
36499
+ "pipelineOrchestrator.getCameraMetrics": [{
36500
+ name: "deviceId",
36501
+ form: "single",
36502
+ optional: false
36503
+ }],
36504
+ "pipelineOrchestrator.getCameraSettings": [{
36505
+ name: "deviceId",
36506
+ form: "single",
36507
+ optional: false
36508
+ }],
36509
+ "pipelineOrchestrator.getCameraStatus": [{
36510
+ name: "deviceId",
36511
+ form: "single",
36512
+ optional: false
36513
+ }],
36514
+ "pipelineOrchestrator.getCameraStatuses": [{
36515
+ name: "deviceIds",
36516
+ form: "array",
36517
+ optional: true
36518
+ }],
36519
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36520
+ name: "deviceId",
36521
+ form: "single",
36522
+ optional: false
36523
+ }],
36524
+ "pipelineOrchestrator.getCameraSwitches": [{
36525
+ name: "deviceId",
36526
+ form: "single",
36527
+ optional: false
36528
+ }],
36529
+ "pipelineOrchestrator.getPipelineAssignment": [{
36530
+ name: "deviceId",
36531
+ form: "single",
36532
+ optional: false
36533
+ }],
36534
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36535
+ name: "deviceId",
36536
+ form: "single",
36537
+ optional: false
36538
+ }],
36539
+ "pipelineOrchestrator.resolvePipeline": [{
36540
+ name: "deviceId",
36541
+ form: "single",
36542
+ optional: false
36543
+ }],
36544
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36545
+ name: "deviceId",
36546
+ form: "single",
36547
+ optional: false
36548
+ }],
36549
+ "pipelineOrchestrator.setCameraStepOverride": [{
36550
+ name: "deviceId",
36551
+ form: "single",
36552
+ optional: false
36553
+ }],
36554
+ "pipelineOrchestrator.setCameraStepToggle": [{
36555
+ name: "deviceId",
36556
+ form: "single",
36557
+ optional: false
36558
+ }],
36559
+ "pipelineOrchestrator.setCameraSwitch": [{
36560
+ name: "deviceId",
36561
+ form: "single",
36562
+ optional: false
36563
+ }],
36564
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36565
+ name: "deviceId",
36566
+ form: "single",
36567
+ optional: false
36568
+ }],
36569
+ "pipelineOrchestrator.unassignAudio": [{
36570
+ name: "deviceId",
36571
+ form: "single",
36572
+ optional: false
36573
+ }],
36574
+ "pipelineOrchestrator.unassignPipeline": [{
36575
+ name: "deviceId",
36576
+ form: "single",
36577
+ optional: false
36578
+ }],
36579
+ "pipelineRunner.attachCamera": [{
36580
+ name: "deviceId",
36581
+ form: "single",
36582
+ optional: false
36583
+ }],
36584
+ "pipelineRunner.detachCamera": [{
36585
+ name: "deviceId",
36586
+ form: "single",
36587
+ optional: false
36588
+ }],
36589
+ "pipelineRunner.getCameraMetrics": [{
36590
+ name: "deviceId",
36591
+ form: "single",
36592
+ optional: false
36593
+ }],
36594
+ "pipelineRunner.reportMotion": [{
36595
+ name: "deviceId",
36596
+ form: "single",
36597
+ optional: false
36598
+ }],
36599
+ "pipelineRunner.runDetailSubtree": [{
36600
+ name: "deviceId",
36601
+ form: "single",
36602
+ optional: false
36603
+ }],
36604
+ "pipelineRunner.runStatelessStep": [{
36605
+ name: "sourceDeviceId",
36606
+ form: "single",
36607
+ optional: false
36608
+ }],
36609
+ "plateGallery.getPlateByTrack": [{
36610
+ name: "deviceId",
36611
+ form: "single",
36612
+ optional: false
36613
+ }],
36614
+ "plateGallery.listPlates": [{
36615
+ name: "deviceId",
36616
+ form: "single",
36617
+ optional: true
36618
+ }],
36619
+ "privacyMask.getOptions": [{
36620
+ name: "deviceId",
36621
+ form: "single",
36622
+ optional: false
36623
+ }],
36624
+ "privacyMask.setAudioEnabled": [{
36625
+ name: "deviceId",
36626
+ form: "single",
36627
+ optional: false
36628
+ }],
36629
+ "privacyMask.setMask": [{
36630
+ name: "deviceId",
36631
+ form: "single",
36632
+ optional: false
36633
+ }],
36634
+ "ptz.continuousMove": [{
36635
+ name: "deviceId",
36636
+ form: "single",
36637
+ optional: false
36638
+ }],
36639
+ "ptz.deletePreset": [{
36640
+ name: "deviceId",
36641
+ form: "single",
36642
+ optional: false
36643
+ }],
36644
+ "ptz.getOptions": [{
36645
+ name: "deviceId",
36646
+ form: "single",
36647
+ optional: false
36648
+ }],
36649
+ "ptz.getPosition": [{
36650
+ name: "deviceId",
36651
+ form: "single",
36652
+ optional: false
36653
+ }],
36654
+ "ptz.getPresets": [{
36655
+ name: "deviceId",
36656
+ form: "single",
36657
+ optional: false
36658
+ }],
36659
+ "ptz.goHome": [{
36660
+ name: "deviceId",
36661
+ form: "single",
36662
+ optional: false
36663
+ }],
36664
+ "ptz.goToPreset": [{
36665
+ name: "deviceId",
36666
+ form: "single",
36667
+ optional: false
36668
+ }],
36669
+ "ptz.move": [{
36670
+ name: "deviceId",
36671
+ form: "single",
36672
+ optional: false
36673
+ }],
36674
+ "ptz.savePreset": [{
36675
+ name: "deviceId",
36676
+ form: "single",
36677
+ optional: false
36678
+ }],
36679
+ "ptz.setAutofocus": [{
36680
+ name: "deviceId",
36681
+ form: "single",
36682
+ optional: false
36683
+ }],
36684
+ "ptz.stop": [{
36685
+ name: "deviceId",
36686
+ form: "single",
36687
+ optional: false
36688
+ }],
36689
+ "ptzAutotrack.getSettings": [{
36690
+ name: "deviceId",
36691
+ form: "single",
36692
+ optional: false
36693
+ }],
36694
+ "ptzAutotrack.getStatus": [{
36695
+ name: "deviceId",
36696
+ form: "single",
36697
+ optional: false
36698
+ }],
36699
+ "ptzAutotrack.setEnabled": [{
36700
+ name: "deviceId",
36701
+ form: "single",
36702
+ optional: false
36703
+ }],
36704
+ "ptzAutotrack.setSettings": [{
36705
+ name: "deviceId",
36706
+ form: "single",
36707
+ optional: false
36708
+ }],
36709
+ "reboot.reboot": [{
36710
+ name: "deviceId",
36711
+ form: "single",
36712
+ optional: false
36713
+ }],
36714
+ "recording.deleteFootprint": [{
36715
+ name: "deviceId",
36716
+ form: "single",
36717
+ optional: false
36718
+ }],
36719
+ "recording.getAvailability": [{
36720
+ name: "deviceId",
36721
+ form: "single",
36722
+ optional: false
36723
+ }],
36724
+ "recording.getDaysWithRecordings": [{
36725
+ name: "deviceId",
36726
+ form: "single",
36727
+ optional: false
36728
+ }],
36729
+ "recording.getDeviceConfig": [{
36730
+ name: "deviceId",
36731
+ form: "single",
36732
+ optional: false
36733
+ }],
36734
+ "recording.getPlaybackManifest": [{
36735
+ name: "deviceId",
36736
+ form: "single",
36737
+ optional: false
36738
+ }],
36739
+ "recording.listOpsLog": [{
36740
+ name: "deviceId",
36741
+ form: "single",
36742
+ optional: true
36743
+ }],
36744
+ "recording.locateSegment": [{
36745
+ name: "deviceId",
36746
+ form: "single",
36747
+ optional: false
36748
+ }],
36749
+ "recording.pruneFootage": [{
36750
+ name: "deviceId",
36751
+ form: "single",
36752
+ optional: false
36753
+ }],
36754
+ "recording.readGopBytes": [{
36755
+ name: "deviceId",
36756
+ form: "single",
36757
+ optional: false
36758
+ }],
36759
+ "recording.readSegmentBytes": [{
36760
+ name: "deviceId",
36761
+ form: "single",
36762
+ optional: false
36763
+ }],
36764
+ "recording.relocateFootage": [{
36765
+ name: "deviceId",
36766
+ form: "single",
36767
+ optional: true
36768
+ }],
36769
+ "recording.renderClip": [{
36770
+ name: "deviceId",
36771
+ form: "single",
36772
+ optional: false
36773
+ }],
36774
+ "recording.renderGif": [{
36775
+ name: "deviceId",
36776
+ form: "single",
36777
+ optional: false
36778
+ }],
36779
+ "recording.rescanStorage": [{
36780
+ name: "deviceId",
36781
+ form: "single",
36782
+ optional: false
36783
+ }],
36784
+ "recording.setDeviceConfig": [{
36785
+ name: "deviceId",
36786
+ form: "single",
36787
+ optional: false
36788
+ }],
36789
+ "recording.startStorageMigrationMove": [{
36790
+ name: "deviceId",
36791
+ form: "single",
36792
+ optional: true
36793
+ }],
36794
+ "recordingExport.createExport": [{
36795
+ name: "deviceId",
36796
+ form: "single",
36797
+ optional: false
36798
+ }],
36799
+ "recordingExport.listExports": [{
36800
+ name: "deviceId",
36801
+ form: "single",
36802
+ optional: true
36803
+ }],
36804
+ "sceneMonitor.captureReference": [{
36805
+ name: "deviceId",
36806
+ form: "single",
36807
+ optional: false
36808
+ }],
36809
+ "sceneMonitor.createScene": [{
36810
+ name: "deviceId",
36811
+ form: "single",
36812
+ optional: false
36813
+ }],
36814
+ "sceneMonitor.deleteReference": [{
36815
+ name: "deviceId",
36816
+ form: "single",
36817
+ optional: false
36818
+ }],
36819
+ "sceneMonitor.deleteScene": [{
36820
+ name: "deviceId",
36821
+ form: "single",
36822
+ optional: false
36823
+ }],
36824
+ "sceneMonitor.listScenes": [{
36825
+ name: "deviceId",
36826
+ form: "single",
36827
+ optional: false
36828
+ }],
36829
+ "sceneMonitor.recheckNow": [{
36830
+ name: "deviceId",
36831
+ form: "single",
36832
+ optional: false
36833
+ }],
36834
+ "sceneMonitor.resetScene": [{
36835
+ name: "deviceId",
36836
+ form: "single",
36837
+ optional: false
36838
+ }],
36839
+ "sceneMonitor.updateScene": [{
36840
+ name: "deviceId",
36841
+ form: "single",
36842
+ optional: false
36843
+ }],
36844
+ "scriptRunner.run": [{
36845
+ name: "deviceId",
36846
+ form: "single",
36847
+ optional: false
36848
+ }],
36849
+ "scriptRunner.stop": [{
36850
+ name: "deviceId",
36851
+ form: "single",
36852
+ optional: false
36853
+ }],
36854
+ "snapshot.getDebugState": [{
36855
+ name: "deviceId",
36856
+ form: "single",
36857
+ optional: false
36858
+ }],
36859
+ "snapshot.getSnapshot": [{
36860
+ name: "deviceId",
36861
+ form: "single",
36862
+ optional: false
36863
+ }],
36864
+ "snapshot.getSnapshotLinks": [{
36865
+ name: "targets",
36866
+ form: "object-array",
36867
+ optional: false,
36868
+ itemField: "deviceId"
36869
+ }],
36870
+ "snapshot.getSnapshotOverview": [{
36871
+ name: "deviceIds",
36872
+ form: "array",
36873
+ optional: false
36874
+ }],
36875
+ "snapshot.invalidateCache": [{
36876
+ name: "deviceId",
36877
+ form: "single",
36878
+ optional: false
36879
+ }],
36880
+ "streamBroker.acquireEgressTranscode": [{
36881
+ name: "deviceId",
36882
+ form: "single",
36883
+ optional: false
36884
+ }],
36885
+ "streamBroker.assignProfile": [{
36886
+ name: "deviceId",
36887
+ form: "single",
36888
+ optional: false
36889
+ }],
36890
+ "streamBroker.getDeviceAudioMute": [{
36891
+ name: "deviceId",
36892
+ form: "single",
36893
+ optional: false
36894
+ }],
36895
+ "streamBroker.getStreamWithCodec": [{
36896
+ name: "deviceId",
36897
+ form: "single",
36898
+ optional: false
36899
+ }],
36900
+ "streamBroker.produceEventMedia": [{
36901
+ name: "deviceId",
36902
+ form: "single",
36903
+ optional: false
36904
+ }],
36905
+ "streamBroker.publishCameraStream": [{
36906
+ name: "deviceId",
36907
+ form: "single",
36908
+ optional: false
36909
+ }],
36910
+ "streamBroker.renderPreBufferClip": [{
36911
+ name: "deviceId",
36912
+ form: "single",
36913
+ optional: false
36914
+ }],
36915
+ "streamBroker.restartProfile": [{
36916
+ name: "deviceId",
36917
+ form: "single",
36918
+ optional: false
36919
+ }],
36920
+ "streamBroker.retractCameraStream": [{
36921
+ name: "deviceId",
36922
+ form: "single",
36923
+ optional: false
36924
+ }],
36925
+ "streamBroker.setDeviceAudioMute": [{
36926
+ name: "deviceId",
36927
+ form: "single",
36928
+ optional: false
36929
+ }],
36930
+ "streamBroker.unassignProfile": [{
36931
+ name: "deviceId",
36932
+ form: "single",
36933
+ optional: false
36934
+ }],
36935
+ "streamCatalog.getCatalog": [{
36936
+ name: "deviceId",
36937
+ form: "single",
36938
+ optional: false
36939
+ }],
36940
+ "streamParams.getConfigSchema": [{
36941
+ name: "deviceId",
36942
+ form: "single",
36943
+ optional: false
36944
+ }],
36945
+ "streamParams.getOptions": [{
36946
+ name: "deviceId",
36947
+ form: "single",
36948
+ optional: false
36949
+ }],
36950
+ "streamParams.setProfile": [{
36951
+ name: "deviceId",
36952
+ form: "single",
36953
+ optional: false
36954
+ }],
36955
+ "switch.setState": [{
36956
+ name: "deviceId",
36957
+ form: "single",
36958
+ optional: false
36959
+ }],
36960
+ "vacuumControl.locate": [{
36961
+ name: "deviceId",
36962
+ form: "single",
36963
+ optional: false
36964
+ }],
36965
+ "vacuumControl.pause": [{
36966
+ name: "deviceId",
36967
+ form: "single",
36968
+ optional: false
36969
+ }],
36970
+ "vacuumControl.returnToBase": [{
36971
+ name: "deviceId",
36972
+ form: "single",
36973
+ optional: false
36974
+ }],
36975
+ "vacuumControl.setFanSpeed": [{
36976
+ name: "deviceId",
36977
+ form: "single",
36978
+ optional: false
36979
+ }],
36980
+ "vacuumControl.start": [{
36981
+ name: "deviceId",
36982
+ form: "single",
36983
+ optional: false
36984
+ }],
36985
+ "vacuumControl.stop": [{
36986
+ name: "deviceId",
36987
+ form: "single",
36988
+ optional: false
36989
+ }],
36990
+ "valve.close": [{
36991
+ name: "deviceId",
36992
+ form: "single",
36993
+ optional: false
36994
+ }],
36995
+ "valve.open": [{
36996
+ name: "deviceId",
36997
+ form: "single",
36998
+ optional: false
36999
+ }],
37000
+ "valve.setPosition": [{
37001
+ name: "deviceId",
37002
+ form: "single",
37003
+ optional: false
37004
+ }],
37005
+ "valve.stop": [{
37006
+ name: "deviceId",
37007
+ form: "single",
37008
+ optional: false
37009
+ }],
37010
+ "videoclips.getClipPlayback": [{
37011
+ name: "deviceId",
37012
+ form: "single",
37013
+ optional: false
37014
+ }],
37015
+ "videoclips.listClips": [{
37016
+ name: "deviceId",
37017
+ form: "single",
37018
+ optional: false
37019
+ }],
37020
+ "waterHeater.setAway": [{
37021
+ name: "deviceId",
37022
+ form: "single",
37023
+ optional: false
37024
+ }],
37025
+ "waterHeater.setOperationMode": [{
37026
+ name: "deviceId",
37027
+ form: "single",
37028
+ optional: false
37029
+ }],
37030
+ "waterHeater.setTargetTemp": [{
37031
+ name: "deviceId",
37032
+ form: "single",
37033
+ optional: false
37034
+ }],
37035
+ "webrtcSession.addIceCandidate": [{
37036
+ name: "deviceId",
37037
+ form: "single",
37038
+ optional: false
37039
+ }],
37040
+ "webrtcSession.closeSession": [{
37041
+ name: "deviceId",
37042
+ form: "single",
37043
+ optional: false
37044
+ }],
37045
+ "webrtcSession.createSession": [{
37046
+ name: "deviceId",
37047
+ form: "single",
37048
+ optional: false
37049
+ }],
37050
+ "webrtcSession.getIceCandidates": [{
37051
+ name: "deviceId",
37052
+ form: "single",
37053
+ optional: false
37054
+ }],
37055
+ "webrtcSession.getSessionState": [{
37056
+ name: "deviceId",
37057
+ form: "single",
37058
+ optional: false
37059
+ }],
37060
+ "webrtcSession.handleAnswer": [{
37061
+ name: "deviceId",
37062
+ form: "single",
37063
+ optional: false
37064
+ }],
37065
+ "webrtcSession.handleOffer": [{
37066
+ name: "deviceId",
37067
+ form: "single",
37068
+ optional: false
37069
+ }],
37070
+ "webrtcSession.hasAdaptiveBitrate": [{
37071
+ name: "deviceId",
37072
+ form: "single",
37073
+ optional: false
37074
+ }],
37075
+ "webrtcSession.listStreams": [{
37076
+ name: "deviceId",
37077
+ form: "single",
37078
+ optional: false
37079
+ }],
37080
+ "zoneAnalytics.getCameraHistory": [{
37081
+ name: "deviceId",
37082
+ form: "single",
37083
+ optional: false
37084
+ }],
37085
+ "zoneAnalytics.getCurrentSnapshot": [{
37086
+ name: "deviceId",
37087
+ form: "single",
37088
+ optional: false
37089
+ }],
37090
+ "zoneAnalytics.getUnzonedHistory": [{
37091
+ name: "deviceId",
37092
+ form: "single",
37093
+ optional: false
37094
+ }],
37095
+ "zoneAnalytics.getZoneHistory": [{
37096
+ name: "deviceId",
37097
+ form: "single",
37098
+ optional: false
37099
+ }],
37100
+ "zoneRules.listRules": [{
37101
+ name: "deviceId",
37102
+ form: "single",
37103
+ optional: false
37104
+ }],
37105
+ "zoneRules.setRules": [{
37106
+ name: "deviceId",
37107
+ form: "single",
37108
+ optional: false
37109
+ }],
37110
+ "zones.addZone": [{
37111
+ name: "deviceId",
37112
+ form: "single",
37113
+ optional: false
37114
+ }],
37115
+ "zones.listZones": [{
37116
+ name: "deviceId",
37117
+ form: "single",
37118
+ optional: false
37119
+ }],
37120
+ "zones.removeZone": [{
37121
+ name: "deviceId",
37122
+ form: "single",
37123
+ optional: false
37124
+ }],
37125
+ "zones.updateZone": [{
37126
+ name: "deviceId",
37127
+ form: "single",
37128
+ optional: false
37129
+ }]
37130
+ });
34381
37131
  Object.freeze({
34382
37132
  "broker": "broker",
34383
37133
  "device-export": "device-export",