@camstack/addon-provider-homematic 1.2.18 → 1.2.20

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 +2898 -144
  2. package/dist/addon.mjs +2898 -144
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -9,7 +9,7 @@ import { join } from "path";
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
- //#region ../types/dist/event-category-Cv9dO26A.mjs
12
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -216,6 +216,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
216
216
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
217
217
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
218
218
  /**
219
+ * A node the orchestrator would otherwise place cameras on has NO usable
220
+ * inference device: the operator enabled one or more accelerators there and
221
+ * the live probe reports every one of them unavailable. Emitted once per
222
+ * TRANSITION into that state (never per dispatch), and the node is dropped
223
+ * from the placement candidate set for as long as it holds.
224
+ *
225
+ * This exists because the state was previously invisible: little-unraid
226
+ * absorbed 283k inference errors in a day while still being handed cameras,
227
+ * and nothing in the system said so.
228
+ *
229
+ * A node with no accelerators configured at all is NOT this — its devices
230
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
231
+ * serves it exactly as before.
232
+ */
233
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
234
+ /**
235
+ * A camera has an OPEN detection session and has produced no detection at
236
+ * all for longer than the blind threshold — the camera is being decoded and
237
+ * inferred and is returning nothing. Emitted once per transition into blind,
238
+ * per camera.
239
+ *
240
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
241
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
242
+ * camera" produce byte-identical silence.
243
+ */
244
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
245
+ /**
219
246
  * Per-camera pipeline config was mutated by the orchestrator
220
247
  * (3-level settings change via `setAgentAddonDefaults` /
221
248
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -10949,6 +10976,8 @@ var QueryFilterSchema = object({
10949
10976
  where: record(string(), unknown()).optional(),
10950
10977
  whereIn: record(string(), array(unknown())).optional(),
10951
10978
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10979
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10980
+ whereNot: record(string(), unknown()).optional(),
10952
10981
  orderBy: object({
10953
10982
  field: string(),
10954
10983
  direction: _enum(["asc", "desc"])
@@ -10968,7 +10997,8 @@ var QueryFilterSchema = object({
10968
10997
  var MutationFilterSchema = object({
10969
10998
  where: record(string(), unknown()).optional(),
10970
10999
  whereIn: record(string(), array(unknown())).optional(),
10971
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11000
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11001
+ whereNot: record(string(), unknown()).optional()
10972
11002
  });
10973
11003
  /** A single stored record: `{ id, data }`. */
10974
11004
  var SettingsRecordSchema = object({
@@ -12504,6 +12534,17 @@ var LlmImageSchema = object({
12504
12534
  bytes: _instanceof(Uint8Array),
12505
12535
  mimeType: string()
12506
12536
  });
12537
+ /**
12538
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12539
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12540
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12541
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12542
+ */
12543
+ var LlmRetryPolicySchema = object({
12544
+ enabled: boolean().default(false),
12545
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12546
+ maxAttempts: number().int().min(1).max(5).default(1)
12547
+ });
12507
12548
  var LlmGenerateBaseInputSchema = object({
12508
12549
  /** Collection routing (the notification-output posture). */
12509
12550
  addonId: string().optional(),
@@ -12518,7 +12559,28 @@ var LlmGenerateBaseInputSchema = object({
12518
12559
  jsonSchema: record(string(), unknown()).optional(),
12519
12560
  /** Per-call override of the profile default. */
12520
12561
  maxTokens: number().int().positive().optional(),
12521
- temperature: number().optional()
12562
+ temperature: number().optional(),
12563
+ /** Per-call override of the profile default (nucleus sampling). */
12564
+ topP: number().min(0).max(1).optional(),
12565
+ /** Per-call override of the profile default (top-k sampling). */
12566
+ topK: number().int().positive().optional(),
12567
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12568
+ timeoutMs: number().int().positive().optional(),
12569
+ /** Per-call override; beats both the consumer table and the profile. */
12570
+ retry: LlmRetryPolicySchema.optional(),
12571
+ /**
12572
+ * Caller-minted id that makes this generation CANCELLABLE.
12573
+ *
12574
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12575
+ * the call against 8 s and free their own slot when the timer wins, while the
12576
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12577
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12578
+ * not generations, and the real load is unbounded.
12579
+ *
12580
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12581
+ * `llm.cancel({ requestId })` tears the socket down.
12582
+ */
12583
+ requestId: string().optional()
12522
12584
  });
12523
12585
  /**
12524
12586
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12531,6 +12593,18 @@ var LlmGenerateBaseInputSchema = object({
12531
12593
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12532
12594
  * watchdog — operator decision #3).
12533
12595
  */
12596
+ /**
12597
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12598
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12599
+ * REF rather than looked up at install time, so what the operator approved in
12600
+ * the preview is exactly what the node downloads.
12601
+ */
12602
+ var ManagedModelExtraFileSchema = object({
12603
+ url: string(),
12604
+ filename: string(),
12605
+ sizeBytes: number(),
12606
+ sha256: string().optional()
12607
+ });
12534
12608
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12535
12609
  object({
12536
12610
  kind: literal("catalog"),
@@ -12539,7 +12613,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12539
12613
  object({
12540
12614
  kind: literal("url"),
12541
12615
  url: string(),
12542
- sha256: string().optional()
12616
+ sha256: string().optional(),
12617
+ /** Picker/status label; the file basename when absent. */
12618
+ label: string().optional(),
12619
+ sizeBytes: number().optional(),
12620
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12543
12621
  }),
12544
12622
  object({
12545
12623
  kind: literal("path"),
@@ -12557,13 +12635,82 @@ var ManagedRuntimeConfigSchema = object({
12557
12635
  gpuLayers: number().int().default(0),
12558
12636
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12559
12637
  threads: number().int().optional(),
12560
- /** Concurrent slots. */
12638
+ /** Concurrent slots (`--parallel`). */
12561
12639
  parallel: number().int().default(1),
12640
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12641
+ batchSize: number().int().positive().optional(),
12642
+ /** Physical batch / micro-batch (`-ub`). */
12643
+ ubatchSize: number().int().positive().optional(),
12644
+ /**
12645
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12646
+ * is a no-op elsewhere, so it is offered rather than assumed.
12647
+ */
12648
+ flashAttention: boolean().default(false),
12649
+ /**
12650
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12651
+ * inference. Costs the full model size in resident memory — which is exactly
12652
+ * what the RAM budget is counting.
12653
+ */
12654
+ mlock: boolean().default(false),
12655
+ /**
12656
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12657
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12658
+ * store produces on every first token.
12659
+ */
12660
+ noMmap: boolean().default(false),
12661
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12662
+ * cheapest way to fit a longer context in the same RAM. */
12663
+ cacheTypeK: _enum([
12664
+ "f32",
12665
+ "f16",
12666
+ "q8_0",
12667
+ "q5_1",
12668
+ "q5_0",
12669
+ "q4_1",
12670
+ "q4_0"
12671
+ ]).optional(),
12672
+ cacheTypeV: _enum([
12673
+ "f32",
12674
+ "f16",
12675
+ "q8_0",
12676
+ "q5_1",
12677
+ "q5_0",
12678
+ "q4_1",
12679
+ "q4_0"
12680
+ ]).optional(),
12681
+ /**
12682
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12683
+ * (which most vision chat templates need and some language-only models
12684
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12685
+ *
12686
+ * It is NOT a second place to set the flags above. A token that collides
12687
+ * with a typed field is REJECTED at start, naming the field that owns it
12688
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12689
+ * the "two switches that disagree" failure this repo has already shipped
12690
+ * twice (D62).
12691
+ */
12692
+ extraArgs: array(string()).default([]),
12562
12693
  /** Else lazy: first generate boots it. */
12563
12694
  autoStart: boolean().default(false),
12564
12695
  /** 0 = never; frees RAM after quiet periods. */
12565
12696
  idleStopMinutes: number().int().default(30)
12566
12697
  });
12698
+ /**
12699
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12700
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12701
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12702
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12703
+ */
12704
+ var LlmDownloadProgressSchema = object({
12705
+ phase: _enum(["downloading", "verifying"]),
12706
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12707
+ file: string(),
12708
+ fileIndex: number().int(),
12709
+ fileCount: number().int(),
12710
+ /** Across the WHOLE install, not the current file. */
12711
+ downloadedBytes: number(),
12712
+ totalBytes: number().optional()
12713
+ });
12567
12714
  var LlmRuntimeStatusSchema = object({
12568
12715
  /** Status is ALWAYS node-qualified. */
12569
12716
  nodeId: string(),
@@ -12580,6 +12727,8 @@ var LlmRuntimeStatusSchema = object({
12580
12727
  modelPath: string().optional(),
12581
12728
  modelId: string().optional(),
12582
12729
  downloadProgress: number().min(0).max(1).optional(),
12730
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12731
+ download: LlmDownloadProgressSchema.optional(),
12583
12732
  lastError: string().optional(),
12584
12733
  crashesInWindow: number(),
12585
12734
  /** Child RSS (sampled best-effort). */
@@ -12590,7 +12739,14 @@ var LlmNodeModelSchema = object({
12590
12739
  file: string(),
12591
12740
  sizeBytes: number(),
12592
12741
  catalogId: string().optional(),
12593
- installedAt: number().optional()
12742
+ installedAt: number().optional(),
12743
+ /**
12744
+ * Absolute path on the node. Present so a file that is on disk but matches
12745
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12746
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12747
+ * it the picker could list such a file and do nothing with it.
12748
+ */
12749
+ path: string().optional()
12594
12750
  });
12595
12751
  var LlmRuntimeDiskUsageSchema = object({
12596
12752
  nodeId: string(),
@@ -12646,10 +12802,47 @@ var LlmProfileSchema = object({
12646
12802
  baseUrl: string().optional(),
12647
12803
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12648
12804
  apiKey: string().optional(),
12805
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12806
+ * degraded to text — that shipped once and produced a confident answer to a
12807
+ * question about a picture nobody sent. */
12649
12808
  supportsVision: boolean(),
12650
12809
  temperature: number().min(0).max(2).optional(),
12810
+ /** Nucleus sampling. Every wire we speak has it. */
12811
+ topP: number().min(0).max(1).optional(),
12812
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12813
+ * wire does, and the client drops it there (measured: the request body gets
12814
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12815
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12816
+ topK: number().int().positive().optional(),
12651
12817
  maxTokens: number().int().positive().optional(),
12818
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12819
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12820
+ * the model with, so it is the one field that changes a PROCESS. */
12821
+ contextLength: number().int().positive().optional(),
12822
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12823
+ * two system prompts fighting is worse than either alone). */
12824
+ systemPrompt: string().optional(),
12825
+ /** Total generation bound — the only one a unary call has. */
12652
12826
  timeoutMs: number().int().positive().default(6e4),
12827
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12828
+ * response headers: on the LM Studio / llama-server wire those are written
12829
+ * once the model has finished loading, so they belong to the bound below. */
12830
+ connectTimeoutMs: number().int().positive().default(1e4),
12831
+ /** Accepted, but no output yet — response headers included, because a cold
12832
+ * GPU load is exactly what happens before them. */
12833
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12834
+ /** Output started then stopped. */
12835
+ idleTimeoutMs: number().int().positive().default(6e4),
12836
+ /** Profile-level default. The per-consumer table and a per-call override
12837
+ * both beat it — see `resolveRetryPolicy`. */
12838
+ retry: LlmRetryPolicySchema.default({
12839
+ enabled: false,
12840
+ maxAttempts: 1
12841
+ }),
12842
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12843
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12844
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12845
+ toolsEnabled: boolean().default(false),
12653
12846
  extraHeaders: record(string(), string()).optional(),
12654
12847
  /** kind === 'managed-local' only (spec §4). */
12655
12848
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12699,6 +12892,36 @@ var ManagedModelCatalogEntrySchema = object({
12699
12892
  /** Vision models: companion projector file. */
12700
12893
  mmprojUrl: string().optional()
12701
12894
  });
12895
+ /**
12896
+ * The outcome of turning one operator-typed Hugging Face reference into a
12897
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12898
+ * I will not pick for you" is a normal answer the UI has to render, not an
12899
+ * exception.
12900
+ *
12901
+ * `candidates` is the whole reason the refusal is usable — every string in it
12902
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12903
+ */
12904
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12905
+ ok: literal(true),
12906
+ /** Ready to hand to `installModel` unchanged. */
12907
+ model: ManagedModelRefSchema,
12908
+ label: string(),
12909
+ repo: string(),
12910
+ quantization: string(),
12911
+ purpose: _enum(["text", "vision"]),
12912
+ totalBytes: number(),
12913
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12914
+ * see that 0.9 GB of it is a projector they did not name. */
12915
+ extraFilenames: array(string())
12916
+ }), object({
12917
+ ok: literal(false),
12918
+ code: string(),
12919
+ message: string(),
12920
+ candidates: array(string()).optional(),
12921
+ /** Set when the refusal was only the ceiling: re-calling with
12922
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12923
+ requiredBytes: number().optional()
12924
+ })]);
12702
12925
  var LlmRuntimeNodeSchema = object({
12703
12926
  nodeId: string(),
12704
12927
  reachable: boolean(),
@@ -12711,7 +12934,10 @@ var ProfileRefInputSchema = object({
12711
12934
  addonId: string(),
12712
12935
  profileId: string()
12713
12936
  });
12714
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12937
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12938
+ addonId: string().optional(),
12939
+ requestId: string()
12940
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12715
12941
  kind: "mutation",
12716
12942
  auth: "admin"
12717
12943
  }), method(ProfileRefInputSchema, _void(), {
@@ -12732,6 +12958,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12732
12958
  consumer: string().optional(),
12733
12959
  profileId: string().optional()
12734
12960
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12961
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12962
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12963
+ ref: string(),
12964
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12965
+ maxBytes: number().positive().optional()
12966
+ }), HfModelResolutionSchema, {
12967
+ kind: "mutation",
12968
+ auth: "admin"
12969
+ }), method(object({
12735
12970
  nodeId: string(),
12736
12971
  model: ManagedModelRefSchema
12737
12972
  }), _void(), {
@@ -14379,6 +14614,8 @@ var NcSystemEventKindSchema = _enum([
14379
14614
  "stream-offline",
14380
14615
  "node-online",
14381
14616
  "node-offline",
14617
+ "node-inference-unavailable",
14618
+ "detection-blind",
14382
14619
  "addon-update-available",
14383
14620
  "server-update-available",
14384
14621
  "alarm-triggered",
@@ -14440,7 +14677,16 @@ var NcScheduleSchema = object({
14440
14677
  });
14441
14678
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14442
14679
  var NcPlateMatcherSchema = object({
14443
- values: array(string().min(1)).min(1),
14680
+ /**
14681
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14682
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14683
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14684
+ * rather than merely seen. A subject carrying no plate still fails.
14685
+ *
14686
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14687
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14688
+ */
14689
+ values: array(string().min(1)),
14444
14690
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14445
14691
  maxDistance: number().int().min(0).max(3).default(1)
14446
14692
  });
@@ -14474,28 +14720,36 @@ var NcOccupancyConditionSchema = object({
14474
14720
  /**
14475
14721
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14476
14722
  *
14477
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14478
- * reference notifier uses, so an operator moving between them re-uses what
14479
- * they already know): a rule matches when, over a sampling window of
14480
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14481
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14482
- *
14483
- * - `dbThreshold` — its level is at or above this many dBFS (see
14484
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14485
- * - `labels` — the classifier put at least one of these labels on it.
14486
- *
14487
- * Both are OPTIONAL and independent, which is the point of the shape: a
14488
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14489
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14490
- * is given** — a window in which every sample is trivially a hit would fire on
14491
- * silence, so the engine refuses such a condition rather than notifying on
14492
- * nothing (the schema cannot express "at least one of" without becoming a
14493
- * ZodEffects the cap path would have to special-case).
14494
- *
14495
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14496
- * must be FULL before it can match — a window that has been open for two
14497
- * seconds of its ten is 100% of nothing, and firing on it would make
14498
- * `samplingSeconds` decorative.
14723
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14724
+ * rule is in is not a stored field — it is WHICH FILTER the rule carries, so
14725
+ * there is no second switch that can disagree with the first and every rule
14726
+ * authored before the decision migrates for free (`audioModeOf`):
14727
+ *
14728
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14729
+ * classifier labels with one of them. No window, no percentage:
14730
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14731
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14732
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14733
+ * reaches this condition if the classifier was already confident enough.
14734
+ * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14735
+ * the condition: at least `hitPercent`% of the samples over
14736
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14737
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14738
+ * must be FULL before it can match — a window open for two of its ten
14739
+ * seconds is 100% of nothing.
14740
+ *
14741
+ * **Why label mode has no window.** It had one, and it never fired: the
14742
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14743
+ * of them per episode, even through continuous crying. The measured maximum
14744
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14745
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14746
+ * the wrong question to ask of a sparse classifier.
14747
+ *
14748
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14749
+ * and the rule would fire on silence. The schema cannot express "exactly one
14750
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14751
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14752
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14499
14753
  *
14500
14754
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14501
14755
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14503,13 +14757,13 @@ var NcOccupancyConditionSchema = object({
14503
14757
  * an operator who typed `dog` mean the same thing.
14504
14758
  */
14505
14759
  var NcAudioConditionSchema = object({
14506
- /** Audio macro labels; absent = any sound (level-only rule). */
14760
+ /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14507
14761
  labels: array(string().min(1)).min(1).optional(),
14508
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14762
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14509
14763
  dbThreshold: number().min(-96).max(0).optional(),
14510
- /** Percentage of the window's samples that must be hits (1–100). */
14764
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14511
14765
  hitPercent: number().int().min(1).max(100).default(60),
14512
- /** Length of the sampling window in seconds. */
14766
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14513
14767
  samplingSeconds: number().int().min(1).max(300).default(10)
14514
14768
  });
14515
14769
  /**
@@ -14647,13 +14901,81 @@ var NcRuleActionsSchema = object({
14647
14901
  */
14648
14902
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14649
14903
  });
14904
+ /**
14905
+ * "This rule applies only while `deviceId` is in one of `states`."
14906
+ *
14907
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14908
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14909
+ * make the condition lie about devices whose states have no equivalent.
14910
+ *
14911
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14912
+ * condition that fired on "I could not read it" would be worse than no gate.
14913
+ */
14914
+ var NcDeviceStateConditionSchema = object({
14915
+ deviceId: number().int(),
14916
+ /** Any of these matches. */
14917
+ states: array(string().min(1)).min(1)
14918
+ });
14919
+ /**
14920
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14921
+ *
14922
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14923
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14924
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14925
+ * already has a trigger ("tell me about a person at the front door, but only
14926
+ * while the bin is still out"). That is why it composes with every delivery
14927
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14928
+ * kind exist for it — see D159.
14929
+ *
14930
+ * ── Identity ───────────────────────────────────────────────────────────────
14931
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14932
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14933
+ * carried as a HINT for the editor and for the log line, never as part of the
14934
+ * lookup key: a rule whose hint drifted must still gate correctly.
14935
+ *
14936
+ * ── Which boolean ──────────────────────────────────────────────────────────
14937
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14938
+ * already declares which boolean drives notification rules, and a second knob
14939
+ * that could disagree with it is exactly the D62 failure. Set it only to
14940
+ * override one rule against the scene's own default.
14941
+ *
14942
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14943
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14944
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14945
+ * evidence, in either direction.
14946
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14947
+ * The latch is a durable fact about the past ("it has diverged since I armed
14948
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14949
+ * reason the operator asked for a latch.
14950
+ *
14951
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14952
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14953
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14954
+ * said out loud in the log rather than dropped in silence.
14955
+ */
14956
+ var NcSceneConditionSchema = object({
14957
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14958
+ sceneId: string().min(1),
14959
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14960
+ deviceId: number().int().optional(),
14961
+ /** The state the scene must be in for the rule to fire. */
14962
+ requiredState: _enum(["matched", "diverged"]),
14963
+ /**
14964
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14965
+ * scene's own `emit` field, which is the only place that decision belongs.
14966
+ */
14967
+ latched: boolean().optional()
14968
+ });
14650
14969
  var NcConditionsSchema = object({
14651
14970
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14652
- deviceState: object({
14653
- deviceId: number().int(),
14654
- /** Any of these matches. */
14655
- states: array(string().min(1)).min(1)
14656
- }).optional(),
14971
+ deviceState: NcDeviceStateConditionSchema.optional(),
14972
+ /**
14973
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14974
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14975
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14976
+ * {@link NcSceneCondition} and D159.
14977
+ */
14978
+ scene: NcSceneConditionSchema.optional(),
14657
14979
  /** Device scope — absent = all devices. */
14658
14980
  devices: array(number()).optional(),
14659
14981
  /** Detector class names (any overlap with the record's class set). */
@@ -14679,18 +15001,47 @@ var NcConditionsSchema = object({
14679
15001
  */
14680
15002
  labelEquals: array(string().min(1)).optional(),
14681
15003
  /**
14682
- * Identity matcher. P1 boundary: matched against the record's collapsed
14683
- * `label` (the identity display name propagated by the face pipeline) —
14684
- * identity-ID matching rides in P2 when identity ids reach the record.
15004
+ * KNOWN FACES — the rule's identity scope, and the switch that says the rule
15005
+ * is about recognised people at all.
15006
+ *
15007
+ * Three states, and the empty one is the point:
15008
+ *
15009
+ * | value | meaning |
15010
+ * | --- | --- |
15011
+ * | absent | the rule does not care who it is; an unrecognised person matches |
15012
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
15013
+ * | a list | only these identities |
15014
+ *
15015
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
15016
+ * `devices` list is every device), applied one level down: the operator has
15017
+ * turned the face scope ON and narrowed it to nothing, which is every known
15018
+ * face. No second field states the same thing — a switch that can disagree
15019
+ * with the list under it is worse than no switch (D62).
15020
+ *
15021
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
15022
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
15023
+ * the operator fixed the spelling. The id reaches the record on
15024
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
15025
+ * `{{label}}` renders.
15026
+ *
15027
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
15028
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
15029
+ * for is left as it stands and reported, never dropped. The engine also
15030
+ * accepts a display-name hit as a compatibility leg, so a rule whose
15031
+ * migration could not resolve keeps matching exactly what it matched before.
14685
15032
  */
14686
15033
  identities: array(string().min(1)).optional(),
14687
- /** Fuzzy plate matcher against the record's `label` (plate text). */
15034
+ /**
15035
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
15036
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
15037
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
15038
+ */
14688
15039
  plates: NcPlateMatcherSchema.optional(),
14689
15040
  /**
14690
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14691
- * Same P1 boundary: matched against the record's collapsed `label` (the
14692
- * identity display name). A record with NO label passes (nothing to
14693
- * exclude), unlike the include variant which fails on an absent label.
15041
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
15042
+ * the same id members and the same lazy name→id migration. A record with NO
15043
+ * identity passes (nothing to exclude), unlike the include variant which
15044
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14694
15045
  */
14695
15046
  identitiesExclude: array(string().min(1)).optional(),
14696
15047
  /**
@@ -15082,7 +15433,80 @@ var NcRuleInputSchema = object({
15082
15433
  * a rule that predates the gate must keep delivering byte-for-byte as it
15083
15434
  * did, and absent is the only way to say that without a migration.
15084
15435
  */
15085
- confirm: NcConfirmSchema.optional()
15436
+ confirm: NcConfirmSchema.optional(),
15437
+ /**
15438
+ * WAIT for face/plate recognition before saying anything.
15439
+ *
15440
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15441
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15442
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15443
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15444
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15445
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15446
+ *
15447
+ * Only two honest answers exist, and this flag picks between them. It has
15448
+ * effect ONLY on a rule that declares a recognition scope
15449
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15450
+ * other rule there is nothing to wait for and the flag is inert.
15451
+ *
15452
+ * | value | what happens |
15453
+ * | --- | --- |
15454
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15455
+ * | 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) |
15456
+ *
15457
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15458
+ * on the addon cap path, and absent has to keep meaning exactly what every
15459
+ * rule authored before this field meant.
15460
+ *
15461
+ * The cost of `true` is stated here because the editor states it too: a rule
15462
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15463
+ * tests every zone the track visited and a `crossing` condition can no longer
15464
+ * be satisfied, because a closed track carries no crossing.
15465
+ */
15466
+ waitForEnhancement: boolean().optional(),
15467
+ /**
15468
+ * GROUP a burst of subjects into ONE notification that grows.
15469
+ *
15470
+ * Seconds of quiet after the last matching subject before the burst is
15471
+ * considered over. While it is open, the first subject enqueues immediately —
15472
+ * **exactly as today, with no added latency** — and every real growth (a new
15473
+ * subject, or a name confirmed on one already in it) REPLACES that
15474
+ * notification with an updated one naming everybody. The push carries the
15475
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15476
+ *
15477
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15478
+ *
15479
+ * ### Why an idle cutoff and not a window
15480
+ *
15481
+ * The measured seven-person arrival on device 590 spans 110 s with every
15482
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15483
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15484
+ * 30 is Frigate's shipped value for the same decision.
15485
+ *
15486
+ * ### What it replaces
15487
+ *
15488
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15489
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15490
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15491
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15492
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15493
+ * budget over GROUPS — which is what it always meant — and a growth is never
15494
+ * throttled by the window its own first member spent.
15495
+ *
15496
+ * ### Interaction with {@link waitForEnhancement}
15497
+ *
15498
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15499
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15500
+ * CLOSE — already carrying its name — and grows as later members close. That
15501
+ * is later, and complete. With grouping alone the group opens on the first
15502
+ * object event and picks up names as they are confirmed, through the growth
15503
+ * path. Neither combination fires twice for one subject.
15504
+ *
15505
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15506
+ * on the addon cap path, so absent must keep meaning what it meant before this
15507
+ * field existed.
15508
+ */
15509
+ groupIdleSec: number().int().min(0).max(600).optional()
15086
15510
  });
15087
15511
  /**
15088
15512
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15189,6 +15613,7 @@ var NcConditionDescriptorSchema = object({
15189
15613
  "occupancy",
15190
15614
  "audio",
15191
15615
  "deviceState",
15616
+ "scene",
15192
15617
  "systemEvent"
15193
15618
  ]),
15194
15619
  operator: _enum([
@@ -15594,7 +16019,87 @@ var MethodAccessSchema = _enum([
15594
16019
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15595
16020
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15596
16021
  var CapScopeSchema = _enum(["device", "system"]);
15597
- var TokenScopeSchema = discriminatedUnion("type", [
16022
+ /**
16023
+ * DeviceSelector (scope model v3 — 2026-08-12).
16024
+ *
16025
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
16026
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
16027
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
16028
+ * AFTER the grant was minted — no re-grant, no re-login.
16029
+ *
16030
+ * - `all` — every device in the deployment. The broad viewer/operator
16031
+ * lever without a `category` grant (a `category` grant also covers device
16032
+ * caps that carry no deviceId; `all` is specifically the device set).
16033
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
16034
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
16035
+ * is NOT covered until the grant is edited.
16036
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
16037
+ * DYNAMIC. A device that changes type, or a new device of the type,
16038
+ * re-resolves on the next request.
16039
+ * - `locations` — every device whose operator-assigned `location` label is
16040
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
16041
+ * null/unset location matches NO `locations` selector.
16042
+ */
16043
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
16044
+ object({ kind: literal("all") }),
16045
+ object({
16046
+ kind: literal("ids"),
16047
+ ids: array(number().int()).min(1)
16048
+ }),
16049
+ object({
16050
+ kind: literal("types"),
16051
+ types: array(_enum(DeviceType)).min(1)
16052
+ }),
16053
+ object({
16054
+ kind: literal("locations"),
16055
+ locations: array(string().min(1)).min(1)
16056
+ })
16057
+ ]);
16058
+ var DeviceTokenScopeSchema = object({
16059
+ type: literal("device"),
16060
+ /** The device SET this grant covers — resolved against the live fleet. */
16061
+ selector: DeviceSelectorSchema,
16062
+ access: array(MethodAccessSchema).min(1),
16063
+ /**
16064
+ * Whether a grant on a PARENT device transparently covers its accessory
16065
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16066
+ * Direction is parent → children ONLY.
16067
+ *
16068
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16069
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16070
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16071
+ * operator must grant on the child, not inherit from the parent). Set it
16072
+ * explicitly to override that default per grant.
16073
+ */
16074
+ includeLinked: boolean().optional()
16075
+ });
16076
+ /**
16077
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16078
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16079
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16080
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16081
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16082
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16083
+ * migration cannot reach a JWT already in a client's hands; parse-time
16084
+ * migration covers both without a flag day. No cast — the raw object is read
16085
+ * through `Reflect.get` (its static type is `unknown`).
16086
+ */
16087
+ function migrateLegacyTokenScope(raw) {
16088
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16089
+ if (Reflect.get(raw, "type") !== "device") return raw;
16090
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16091
+ const targets = Reflect.get(raw, "targets");
16092
+ if (!Array.isArray(targets)) return raw;
16093
+ return {
16094
+ type: "device",
16095
+ selector: {
16096
+ kind: "ids",
16097
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16098
+ },
16099
+ access: Reflect.get(raw, "access")
16100
+ };
16101
+ }
16102
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15598
16103
  object({
15599
16104
  type: literal("category"),
15600
16105
  target: CapScopeSchema,
@@ -15610,18 +16115,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15610
16115
  target: string(),
15611
16116
  access: array(MethodAccessSchema).min(1)
15612
16117
  }),
15613
- object({
15614
- type: literal("device"),
15615
- /**
15616
- * One or more deviceIds (serialised as strings for wire-format
15617
- * consistency with the rest of the union). Matcher accepts if
15618
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15619
- * of one scope-per-device when granting access to a set of cameras.
15620
- */
15621
- targets: array(string()).min(1),
15622
- access: array(MethodAccessSchema).min(1)
15623
- })
15624
- ]);
16118
+ DeviceTokenScopeSchema
16119
+ ]));
15625
16120
  object({
15626
16121
  id: string(),
15627
16122
  username: string(),
@@ -15938,7 +16433,7 @@ var TrackEnvelopeSchema = object({
15938
16433
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15939
16434
  * keeps every scalar the list surfaces actually render (ids, class(es),
15940
16435
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15941
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16436
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15942
16437
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15943
16438
  * `getTrack`. Mirrors the event-store `projection` convention
15944
16439
  * (`getObjectEvents` et al.).
@@ -16074,7 +16569,21 @@ union([literal(1), literal(2)]);
16074
16569
  var LabelAttributionSchema = object({
16075
16570
  stepId: string(),
16076
16571
  modelId: string().optional(),
16077
- decidedAt: number()
16572
+ decidedAt: number(),
16573
+ /**
16574
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16575
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16576
+ *
16577
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16578
+ * notification rule authored on "Gianluca" stopped matching the moment the
16579
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16580
+ * the thing that does not move, so it is what a rule matches on
16581
+ * (`NcConditions.identities`) and the text is what a human is shown.
16582
+ *
16583
+ * Absent when the label names no gallery row — a plate the OCR read but no
16584
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16585
+ */
16586
+ identityId: string().optional()
16078
16587
  });
16079
16588
  /**
16080
16589
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16211,6 +16720,28 @@ var TrackSchema = object({
16211
16720
  * `=== true` and render nothing otherwise, never infer "no face".
16212
16721
  */
16213
16722
  hasFace: boolean().optional(),
16723
+ /**
16724
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16725
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16726
+ * so the passage is tracked once and as a VEHICLE.
16727
+ *
16728
+ * It exists because the fold's record was dishonest. D34 and the code both
16729
+ * said "the person is not lost — it is reported so both entities stay on the
16730
+ * record"; in fact the pair went into a per-processor RAM field behind an
16731
+ * accessor nobody called, and every durable surface said `vehicle`, full
16732
+ * stop. This is the composition note that makes the row true.
16733
+ *
16734
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16735
+ * person" is not an answer to "what is this" — both label tiers would refuse
16736
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16737
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16738
+ * and a `person` rule still does not fire for someone cycling past.
16739
+ *
16740
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16741
+ * the column, and every hub that predates the field, omits it. Test
16742
+ * `=== true` and render nothing otherwise — never infer "no rider".
16743
+ */
16744
+ hasRider: boolean().optional(),
16214
16745
  ...TrackFlagFields,
16215
16746
  ...TrackRetrainFields
16216
16747
  });
@@ -16560,7 +17091,10 @@ var RecentTracksQueryInput = object({
16560
17091
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16561
17092
  cursor: string().optional(),
16562
17093
  /** See {@link TrackProjectionSchema}. Default `full`. */
16563
- projection: TrackProjectionSchema.optional()
17094
+ projection: TrackProjectionSchema.optional(),
17095
+ /** Include stationary-promoted rows (parked objects). Default false: the
17096
+ * feed lists passages; parking records live on the stationary registry. */
17097
+ includeStationary: boolean().optional()
16564
17098
  });
16565
17099
  var RecentTracksPageSchema = object({
16566
17100
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16778,7 +17312,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16778
17312
  zone: TrackZoneFilterSchema.optional(),
16779
17313
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16780
17314
  * compatible — omitting the field keeps today's exact behaviour). */
16781
- projection: TrackProjectionSchema.optional()
17315
+ projection: TrackProjectionSchema.optional(),
17316
+ /** Include stationary-promoted rows (parked objects handed to the
17317
+ * stationary registry). Default false: the timeline lists passages,
17318
+ * not parking records (operator decision, 2026-08-15). */
17319
+ includeStationary: boolean().optional()
16782
17320
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16783
17321
  kind: "mutation",
16784
17322
  auth: "admin"
@@ -16942,11 +17480,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16942
17480
  auth: "admin"
16943
17481
  }), method(object({
16944
17482
  eventId: string(),
16945
- kind: MediaFileKindEnum.optional()
17483
+ kind: MediaFileKindEnum.optional(),
17484
+ deviceId: number()
16946
17485
  }), array(MediaFileSchema).readonly()), method(object({
16947
17486
  trackId: string(),
16948
- kinds: array(MediaFileKindEnum).optional()
16949
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17487
+ kinds: array(MediaFileKindEnum).optional(),
17488
+ deviceId: number()
17489
+ }), array(MediaFileSchema).readonly()), method(object({
17490
+ trackId: string(),
17491
+ deviceId: number()
17492
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16950
17493
  kind: "mutation",
16951
17494
  auth: "admin"
16952
17495
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17646,6 +18189,17 @@ var maxSessionHoldMsField = {
17646
18189
  default: 12e4,
17647
18190
  step: 5e3
17648
18191
  };
18192
+ /**
18193
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18194
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18195
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18196
+ */
18197
+ var audioMotionWindowMsField = {
18198
+ min: 5e3,
18199
+ max: 6e5,
18200
+ default: 9e4,
18201
+ step: 5e3
18202
+ };
17649
18203
  var motionFpsField = {
17650
18204
  min: 1,
17651
18205
  max: 30,
@@ -17677,7 +18231,7 @@ var detectionFpsField = {
17677
18231
  var occupancyRecheckSecField = {
17678
18232
  min: 0,
17679
18233
  max: 300,
17680
- default: 30,
18234
+ default: 300,
17681
18235
  step: 5
17682
18236
  };
17683
18237
  var occupancyRecheckFramesField = {
@@ -17822,6 +18376,27 @@ var RunnerCameraConfigSchema = object({
17822
18376
  * resolved `CameraDetectionConfig`.
17823
18377
  */
17824
18378
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18379
+ /**
18380
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18381
+ * 'on-motion'` audio window, measured from the LAST motion event.
18382
+ *
18383
+ * This exists because the falling edge cannot be relied on. Camera-native
18384
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18385
+ * its email-push SMTP path both emit `detected: true` and never the
18386
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18387
+ * onboard-only camera a window that closed only on `detected: false` never
18388
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18389
+ * battery camera, the one failure mode the mode exists to prevent.
18390
+ *
18391
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18392
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18393
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18394
+ *
18395
+ * Not consumed by the runner: carried here so it shares the per-camera
18396
+ * device-settings surface with `motionCooldownMs`, exactly like
18397
+ * `maxSessionHoldMs`.
18398
+ */
18399
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17825
18400
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17826
18401
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17827
18402
  motionStreamId: string(),
@@ -17917,7 +18492,7 @@ var RunnerCameraConfigSchema = object({
17917
18492
  */
17918
18493
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17919
18494
  });
17920
- 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;
18495
+ 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;
17921
18496
  /**
17922
18497
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17923
18498
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18903,7 +19478,31 @@ DeviceType.Camera, method(object({
18903
19478
  lastCapturedAt: number().nullable(),
18904
19479
  cacheAgeMs: number().nullable(),
18905
19480
  etag: string().nullable()
18906
- }))), systemMethod(object({
19481
+ }))), systemMethod(object({ deviceId: number() }), object({
19482
+ /** The battery slice as read, or null when the device has none. */
19483
+ battery: object({
19484
+ sleeping: boolean(),
19485
+ lastUpdated: number(),
19486
+ lastContactAt: number().optional()
19487
+ }).nullable(),
19488
+ /** The resolved snapshot state (what the overlay decision used). */
19489
+ state: object({
19490
+ isBattery: boolean(),
19491
+ reason: _enum([
19492
+ "disabled",
19493
+ "sleeping",
19494
+ "unreachable",
19495
+ "waking"
19496
+ ]).nullable()
19497
+ }),
19498
+ /** The cached frame behind the next paint. */
19499
+ frame: object({
19500
+ capturedAt: number().nullable(),
19501
+ ageMs: number().nullable()
19502
+ }),
19503
+ /** A wake window is currently open (the Waking overlay's source). */
19504
+ waking: boolean()
19505
+ })), systemMethod(object({
18907
19506
  /** The tiles a surface is actually rendering. One entry per (device,
18908
19507
  * width) the caller will paint — the width is snapped to the server's
18909
19508
  * ladder and becomes part of the link's SIGNED identity. */
@@ -18933,7 +19532,16 @@ targets: array(object({
18933
19532
  /** A sleeping battery camera: the frame is deliberately stale and will
18934
19533
  * NOT refresh in the background. A surface should say so rather than
18935
19534
  * present it as current. */
18936
- sleeping: boolean()
19535
+ sleeping: boolean(),
19536
+ /** Current device state rendered over the cached frame. State images
19537
+ * remain authoritative even when their photographic background is
19538
+ * old; null means the link must carry a current camera frame. */
19539
+ stateReason: _enum([
19540
+ "disabled",
19541
+ "sleeping",
19542
+ "unreachable",
19543
+ "waking"
19544
+ ]).nullable()
18937
19545
  })));
18938
19546
  /**
18939
19547
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20587,6 +21195,25 @@ var BatteryStatusSchema = object({
20587
21195
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20588
21196
  lastUpdated: number(),
20589
21197
  /**
21198
+ * Ms epoch of the last time the device PROVED it was reachable — a
21199
+ * completed firmware round-trip, an observed wake, or an inbound push
21200
+ * (firmware event, email). `0`/absent = never since this slice was born.
21201
+ *
21202
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21203
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21204
+ * for the radio, because a poll that confirms reachability is the same
21205
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21206
+ * single derivation every consumer must use; no surface computes its own.
21207
+ *
21208
+ * It is deliberately NOT a clock in the
21209
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21210
+ * observation itself, and it is the only thing a 30-hour silence is
21211
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21212
+ * Reolink provider) so a value that means "recently" cannot cost a
21213
+ * SQLite commit per round-trip.
21214
+ */
21215
+ lastContactAt: number().optional(),
21216
+ /**
20590
21217
  * True when the source is a BINARY low-battery indicator (HA
20591
21218
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20592
21219
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22851,54 +23478,139 @@ var TalkAudioCodecSchema = _enum([
22851
23478
  "g711ulaw",
22852
23479
  "g711alaw"
22853
23480
  ]);
22854
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22855
- sessionId: string(),
22856
- sdpOffer: string()
22857
- }), {
22858
- kind: "mutation",
22859
- auth: "admin"
22860
- }), method(object({
22861
- deviceId: number(),
22862
- sessionId: string(),
22863
- sdpAnswer: string()
22864
- }), _void(), {
22865
- kind: "mutation",
22866
- auth: "admin"
22867
- }), method(object({
22868
- deviceId: number(),
22869
- sessionId: string()
22870
- }), _void(), {
22871
- kind: "mutation",
22872
- auth: "admin"
22873
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22874
- kind: "mutation",
22875
- auth: "admin"
22876
- }), method(object({
22877
- deviceId: number(),
22878
- /** Audio bytes for ONE frame, base64-encoded so the payload
22879
- * survives tRPC JSON serialization. */
22880
- audioBase64: string(),
22881
- /** Wire codec of the payload. Omit to let the provider default
22882
- * to its native expected format (s16le @ provider-native rate,
22883
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22884
- codec: TalkAudioCodecSchema.optional(),
22885
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22886
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22887
- sampleRate: number().int().positive().optional(),
22888
- /** Channel count. Default 1. */
22889
- channels: number().int().positive().optional(),
22890
- /** Sequence number for ordering / dropping out-of-order frames. */
22891
- sequenceNumber: number().int()
22892
- }), object({ accepted: boolean() }), {
22893
- kind: "mutation",
22894
- auth: "admin"
22895
- }), method(object({ deviceId: number() }), _void(), {
22896
- kind: "mutation",
22897
- auth: "admin"
22898
- }), object({
22899
- deviceId: number(),
22900
- status: IntercomStatusSchema
22901
- });
23481
+ var intercomCapability = {
23482
+ name: "intercom",
23483
+ scope: "device",
23484
+ deviceNative: true,
23485
+ mode: "singleton",
23486
+ deviceTypes: [DeviceType.Camera],
23487
+ methods: {
23488
+ /**
23489
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23490
+ * offer with a single sendonly audio m-line the client answers
23491
+ * (client → server direction). The server wakes battery cams
23492
+ * transparently before opening the upstream talk channel.
23493
+ */
23494
+ startSession: method(object({ deviceId: number() }), object({
23495
+ sessionId: string(),
23496
+ sdpOffer: string()
23497
+ }), {
23498
+ kind: "mutation",
23499
+ auth: "admin"
23500
+ }),
23501
+ handleAnswer: method(object({
23502
+ deviceId: number(),
23503
+ sessionId: string(),
23504
+ sdpAnswer: string()
23505
+ }), _void(), {
23506
+ kind: "mutation",
23507
+ auth: "admin"
23508
+ }),
23509
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23510
+ stopSession: method(object({
23511
+ deviceId: number(),
23512
+ sessionId: string()
23513
+ }), _void(), {
23514
+ kind: "mutation",
23515
+ auth: "admin"
23516
+ }),
23517
+ /**
23518
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23519
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23520
+ * harnesses) that already have decoded PCM frames and just need a
23521
+ * direct path onto the camera's talk channel. Mutually exclusive
23522
+ * with `startSession` (an active WebRTC session must be stopped
23523
+ * before a raw-PCM session can be opened on the same device, and
23524
+ * vice versa).
23525
+ */
23526
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23527
+ kind: "mutation",
23528
+ auth: "admin"
23529
+ }),
23530
+ /**
23531
+ * Push one chunk of talk-back audio onto the active talk session.
23532
+ * The cap is codec-agnostic: the caller declares (or omits) the
23533
+ * wire format via `codec`; the provider decides between passthrough
23534
+ * (when the wire codec matches the camera's native talk channel),
23535
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23536
+ *
23537
+ * Callers do NOT need to know the camera's wire format or sample
23538
+ * rate — that information lives entirely inside the provider.
23539
+ *
23540
+ * Sequence numbers MUST be monotonic per talk session; older frames
23541
+ * arriving after newer ones are dropped to avoid smearing the
23542
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23543
+ * predictor would corrupt with re-ordering).
23544
+ */
23545
+ pushTalkAudio: method(object({
23546
+ deviceId: number(),
23547
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23548
+ * survives tRPC JSON serialization. */
23549
+ audioBase64: string(),
23550
+ /** Wire codec of the payload. Omit to let the provider default
23551
+ * to its native expected format (s16le @ provider-native rate,
23552
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23553
+ codec: TalkAudioCodecSchema.optional(),
23554
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23555
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23556
+ sampleRate: number().int().positive().optional(),
23557
+ /** Channel count. Default 1. */
23558
+ channels: number().int().positive().optional(),
23559
+ /** Sequence number for ordering / dropping out-of-order frames. */
23560
+ sequenceNumber: number().int()
23561
+ }), object({ accepted: boolean() }), {
23562
+ kind: "mutation",
23563
+ auth: "admin"
23564
+ }),
23565
+ /** Close the raw-PCM talk session. Idempotent. */
23566
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23567
+ kind: "mutation",
23568
+ auth: "admin"
23569
+ })
23570
+ },
23571
+ events: { onStatusChanged: { data: object({
23572
+ deviceId: number(),
23573
+ status: IntercomStatusSchema
23574
+ }) } },
23575
+ status: {
23576
+ schema: IntercomStatusSchema,
23577
+ kind: "command-driven"
23578
+ },
23579
+ /**
23580
+ * Runtime-state slice — mirrored by the kernel.
23581
+ *
23582
+ * The cap declared `status` and nothing else, so the only two sources an
23583
+ * exporter has for a value — the `device.state-changed` slice event and the
23584
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23585
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23586
+ * have been published and never received a value, which is the defect the
23587
+ * export's two classification tables exist to prevent (177 of them, once), so
23588
+ * `intercom` was excluded rather than exported.
23589
+ *
23590
+ * The shape is the status shape: there is exactly one truth about talk-back
23591
+ * and duplicating it into a second schema is how two halves of one capability
23592
+ * come to disagree. Providers write it through
23593
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23594
+ * and close a session, and seed it at registration so the slice exists before
23595
+ * the first session rather than after it.
23596
+ *
23597
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23598
+ * session handle, so a session torn down by a transport death that never
23599
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23600
+ * session or the next restart. That is why the slice is `session` and not
23601
+ * `restored` — a restart must never restore "talking".
23602
+ */
23603
+ runtimeState: IntercomStatusSchema,
23604
+ /**
23605
+ * Runtime-state durability: **session** — `talking` describes a live audio
23606
+ * session, which by definition does not survive the process that held it.
23607
+ * Restoring it would publish a camera as talking to nobody.
23608
+ *
23609
+ * See `RuntimeStateDurability`. Enforced by
23610
+ * `scripts/check-runtime-state-durability.ts`.
23611
+ */
23612
+ durability: "session"
23613
+ };
22902
23614
  /**
22903
23615
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22904
23616
  * with a mowing lifecycle plus a dock action.
@@ -25595,7 +26307,7 @@ method(object({
25595
26307
  toMs: number()
25596
26308
  }), RecordingAvailabilitySchema, {
25597
26309
  kind: "query",
25598
- auth: "admin"
26310
+ auth: "protected"
25599
26311
  }), method(object({
25600
26312
  deviceId: number(),
25601
26313
  fromMs: number(),
@@ -25603,14 +26315,14 @@ method(object({
25603
26315
  tzOffsetMinutes: number()
25604
26316
  }), RecordingDaysSchema, {
25605
26317
  kind: "query",
25606
- auth: "admin"
26318
+ auth: "protected"
25607
26319
  }), method(object({
25608
26320
  deviceId: number(),
25609
26321
  fromMs: number(),
25610
26322
  toMs: number()
25611
26323
  }), RecordingManifestSchema, {
25612
26324
  kind: "query",
25613
- auth: "admin"
26325
+ auth: "protected"
25614
26326
  }), method(object({}), RecordingStorageUsageSchema, {
25615
26327
  kind: "query",
25616
26328
  auth: "admin"
@@ -25900,14 +26612,77 @@ method(object({
25900
26612
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25901
26613
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25902
26614
  *
25903
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) — the framework
25904
- * derives the device-detail contribution; the provider carries NO hand-written
25905
- * settings-contribution methods. `status.kind:'push'` — the engine pushes on
25906
- * every hysteresis flip / availability change; consumers never poll.
25907
- */
25908
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25909
- * be added without a wire break (matching falls back to any-condition refs). */
26615
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26616
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26617
+ * for the thing: a scene is a standing question about the property ("is the bin
26618
+ * still out"), and the operator's question is "which of my scenes have tripped",
26619
+ * across every camera at once — not "what does camera 617 think". Buried one
26620
+ * camera deep it also could not be found. The surface is now a top-level admin
26621
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26622
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26623
+ *
26624
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26625
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26626
+ * directions, so a registration nobody declares fails exactly as loudly as a
26627
+ * declaration nobody registers. The editor is imported directly by the page.
26628
+ *
26629
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26630
+ * availability change; consumers never poll.
26631
+ */
26632
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26633
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26634
+ * Open by design so more can be added without a wire break.
26635
+ *
26636
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26637
+ * not comparable, so "I have never seen this scene in this light" is reported
26638
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26639
+ * collapses the cosine and would latch a false alarm every single night. */
25910
26640
  var SceneConditionSchema = string();
26641
+ /**
26642
+ * What a scene does when the CURRENT light has no reference of its own.
26643
+ *
26644
+ * The lighting variants are not equally likely to exist. Almost every operator
26645
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26646
+ * scene that is only ever going to be asked about a daytime question ("is the
26647
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26648
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26649
+ * working without it rather than degrading into a permanent complaint.
26650
+ *
26651
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26652
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26653
+ * last covered light left it at, the latch is untouched, and the hysteresis
26654
+ * run is neither spent nor cleared. The scene resumes by itself at first
26655
+ * light. This is the only behaviour under which "I never captured IR" is a
26656
+ * configuration choice instead of a nightly fault.
26657
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26658
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26659
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26660
+ * cross-condition cosines are not comparable, so a day reference against a
26661
+ * true IR frame collapses and the scene reports a theft at 21:40.
26662
+ *
26663
+ * Never applies when the scene has NO comparable reference at all — that is
26664
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26665
+ * there would hide a scene the operator never finished setting up.
26666
+ */
26667
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26668
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26669
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26670
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26671
+ * and never counts toward hysteresis in either direction. */
26672
+ var SceneVerdictSchema = _enum([
26673
+ "matched",
26674
+ "diverged",
26675
+ "unknown"
26676
+ ]);
26677
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26678
+ * silence that reads as "nothing has happened". */
26679
+ var SceneUnavailableSchema = _enum([
26680
+ "no-reference-for-condition",
26681
+ "view-shifted",
26682
+ "no-vision-profile",
26683
+ "encoder-model-changed",
26684
+ "no-snapshot"
26685
+ ]);
25911
26686
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25912
26687
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25913
26688
  var SceneReferenceSchema = object({
@@ -25915,7 +26690,14 @@ var SceneReferenceSchema = object({
25915
26690
  modelId: string(),
25916
26691
  condition: SceneConditionSchema,
25917
26692
  capturedAt: number(),
25918
- thumbnailMediaId: string().optional()
26693
+ thumbnailMediaId: string().optional(),
26694
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26695
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26696
+ * normalized rect frame a different piece of world, and the scene would
26697
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26698
+ * when hysteresis is about to flip — one extra encode per candidate
26699
+ * transition, not per poll. */
26700
+ anchorEmbedding: array(number()).optional()
25919
26701
  });
25920
26702
  var SceneMonitorStateSchema = object({
25921
26703
  id: string(),
@@ -25937,6 +26719,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
25937
26719
  profileId: string().optional(),
25938
26720
  hysteresisCount: number().int().positive()
25939
26721
  })]);
26722
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26723
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26724
+ * out in silence rather than reporting a fault every night. */
26725
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26726
+ /**
26727
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26728
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26729
+ *
26730
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26731
+ * fail-open: a notification suppressed is the worse error there, but a vision
26732
+ * model that timed out has not told us the bin is gone, and a latch is a
26733
+ * stateful claim that costs the operator a trip to reset.
26734
+ */
26735
+ var SceneConfirmSchema = object({
26736
+ enabled: boolean().default(false),
26737
+ prompt: string().min(1).max(1e3),
26738
+ profileId: string().optional(),
26739
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26740
+ maxImagePx: number().int().min(64).max(2048).default(448),
26741
+ /** What a timeout / unavailable model means for the PENDING flip. */
26742
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26743
+ });
25940
26744
  var SceneMonitorSchema = object({
25941
26745
  id: string(),
25942
26746
  label: string(),
@@ -25955,7 +26759,56 @@ var SceneMonitorSchema = object({
25955
26759
  lastConfidence: number().nullable(),
25956
26760
  currentCondition: SceneConditionSchema.nullable(),
25957
26761
  availability: _enum(["ok", "unavailable"]),
25958
- unavailableReason: string().nullable()
26762
+ unavailableReason: string().nullable(),
26763
+ /** Which state is "the initial screen". `null` until the first capture. */
26764
+ baselineStateId: string().nullable(),
26765
+ /** Which boolean drives notification rules and any export. */
26766
+ emit: _enum(["latched", "live"]).default("latched"),
26767
+ /** Live: does the region match the baseline RIGHT NOW. */
26768
+ verdict: SceneVerdictSchema,
26769
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26770
+ latched: boolean(),
26771
+ /** Last reset (or creation). */
26772
+ armedAt: number(),
26773
+ divergedAt: number().nullable(),
26774
+ restoredAt: number().nullable(),
26775
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26776
+ * during the window DISCARDS the observation — a car pulling up in front of
26777
+ * the bin must not be able to spend hysteresis credit. */
26778
+ quietSeconds: number().int().min(0).max(3600).default(60),
26779
+ /** An observation only advances the pending count when it is at least this
26780
+ * far from the previously counted one, so N agreeing checks span real time
26781
+ * rather than N adjacent polls inside one occlusion. */
26782
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26783
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26784
+ confirm: SceneConfirmSchema.optional(),
26785
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26786
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26787
+ /** Clear the latch on its own when the scene matches again? Default false —
26788
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26789
+ * automation can react to the bin coming back without the operator's own
26790
+ * alarm silently clearing itself. */
26791
+ autoRestore: boolean().default(false),
26792
+ /** What to do when the current light has no reference of its own. See
26793
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26794
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26795
+ /**
26796
+ * The light whose checks are currently being SAT OUT under
26797
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26798
+ *
26799
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26800
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26801
+ * nothing captured in this light"* in the same calm voice as the coverage
26802
+ * line, because the alternative is a scene that silently stops answering
26803
+ * after sunset with nothing anywhere saying why. A skipped check must never
26804
+ * read as a broken one.
26805
+ */
26806
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26807
+ /** Named cause when `verdict === 'unknown'`. */
26808
+ unavailable: SceneUnavailableSchema.nullable(),
26809
+ /** Conditions that have at least one comparable reference — the coverage line
26810
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26811
+ coveredConditions: array(SceneConditionSchema)
25959
26812
  });
25960
26813
  var SceneMonitorStatusSchema = object({
25961
26814
  monitors: array(SceneMonitorSchema),
@@ -25968,12 +26821,6 @@ var sceneMonitorCapability = {
25968
26821
  kind: "wrapper",
25969
26822
  defaultActive: true,
25970
26823
  deviceTypes: [DeviceType.Camera],
25971
- deviceConfig: { ui: {
25972
- kind: "widget",
25973
- widgetId: "host/scene-monitor-editor",
25974
- tab: "scenes",
25975
- label: "Scenes"
25976
- } },
25977
26824
  methods: {
25978
26825
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
25979
26826
  createScene: method(object({
@@ -26004,7 +26851,15 @@ var sceneMonitorCapability = {
26004
26851
  "both"
26005
26852
  ]).optional(),
26006
26853
  checkIntervalSec: number().optional(),
26007
- check: SceneCheckSchema.optional()
26854
+ check: SceneCheckSchema.optional(),
26855
+ emit: _enum(["latched", "live"]).optional(),
26856
+ quietSeconds: number().int().min(0).max(3600).optional(),
26857
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26858
+ anchorThreshold: number().min(0).max(1).optional(),
26859
+ autoRestore: boolean().optional(),
26860
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26861
+ /** `null` clears the vision-model adjudicator. */
26862
+ confirm: SceneConfirmSchema.nullable().optional()
26008
26863
  })
26009
26864
  }), _void(), {
26010
26865
  kind: "mutation",
@@ -26045,6 +26900,26 @@ var sceneMonitorCapability = {
26045
26900
  }), _void(), {
26046
26901
  kind: "mutation",
26047
26902
  auth: "admin"
26903
+ }),
26904
+ /**
26905
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26906
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26907
+ * "reset" in the operator's head means *this is the new normal*, and
26908
+ * re-capture is what makes the feature self-healing against slow drift
26909
+ * instead of failing silently weeks later.
26910
+ *
26911
+ * Reachable from three surfaces on this one mutation: the scene card, a
26912
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
26913
+ * no new Notification-Center code at all), and tRPC for scripts.
26914
+ */
26915
+ resetScene: method(object({
26916
+ deviceId: number(),
26917
+ monitorId: string(),
26918
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
26919
+ recapture: boolean().optional()
26920
+ }), _void(), {
26921
+ kind: "mutation",
26922
+ auth: "admin"
26048
26923
  })
26049
26924
  },
26050
26925
  status: {
@@ -26281,7 +27156,70 @@ var CamStreamDescriptorSchema = object({
26281
27156
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
26282
27157
  metadata: record(string(), unknown()).optional()
26283
27158
  });
26284
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
27159
+ /**
27160
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
27161
+ * of the removed `publishCameraStream` push: a camera provider returns the full
27162
+ * set of stream descriptors it can offer for the device, synchronously, so the
27163
+ * broker can reconcile its registry against the authoritative provider state.
27164
+ */
27165
+ /**
27166
+ * The catalog as a DURABLE fact rather than a live answer.
27167
+ *
27168
+ * A battery camera's descriptors are profile-stable — they change when the
27169
+ * operator rewrites an encoder profile, not minute to minute — but building
27170
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27171
+ * provider is allowed to build them exactly once per profile and must serve
27172
+ * every later pull from a cache.
27173
+ *
27174
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27175
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27176
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27177
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27178
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27179
+ * which on a battery cam is most of the day. The camera was fine. The stream
27180
+ * was unreachable because the process had forgotten what the camera offers.
27181
+ *
27182
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27183
+ * declared collection, with the same `restored` durability `battery` uses for
27184
+ * the same reason: the last known value is the only value there is while the
27185
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27186
+ * is the DIAL that wakes a camera, never the catalog (D173).
27187
+ */
27188
+ var StreamCatalogStateSchema = object({
27189
+ /** The descriptors as last built from a real camera response. Never a guess:
27190
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27191
+ * one the camera itself once produced. */
27192
+ descriptors: array(CamStreamDescriptorSchema),
27193
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27194
+ * path decide whether the camera's own awake window is worth spending on a
27195
+ * re-read. */
27196
+ lastFetchedAt: number()
27197
+ });
27198
+ var streamCatalogCapability = {
27199
+ name: "stream-catalog",
27200
+ scope: "device",
27201
+ deviceNative: true,
27202
+ mode: "singleton",
27203
+ deviceTypes: [DeviceType.Camera],
27204
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27205
+ runtimeState: StreamCatalogStateSchema,
27206
+ /**
27207
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27208
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27209
+ * camera that cannot be watched at all until it happens to wake.
27210
+ *
27211
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27212
+ * build, and a build only runs when there is no cached copy (or the copy is
27213
+ * a day old and the camera is awake anyway).
27214
+ *
27215
+ * See `RuntimeStateDurability`. Enforced by
27216
+ * `scripts/check-runtime-state-durability.ts`.
27217
+ */
27218
+ durability: "restored",
27219
+ /** Clock field: written, but excluded from the compare that decides whether
27220
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27221
+ volatileStateFields: ["lastFetchedAt"]
27222
+ };
26285
27223
  /** One of the camera's stream profiles. */
26286
27224
  var StreamProfileSchema = _enum([
26287
27225
  "main",
@@ -26535,12 +27473,64 @@ var NetworkAddressSchema = object({
26535
27473
  family: string(),
26536
27474
  internal: boolean()
26537
27475
  });
27476
+ /**
27477
+ * Provenance of the site coordinates, and the whole reason this is not just two
27478
+ * numbers.
27479
+ *
27480
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27481
+ * nothing overwrites it.
27482
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27483
+ * default that is right to a few kilometres beats the coarse UTC clock split
27484
+ * the sun-times consumers otherwise fall back to.
27485
+ *
27486
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27487
+ * own input will eventually trust the guess.
27488
+ */
27489
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27490
+ /**
27491
+ * The read shape: the location plus the honest state of the one-shot derivation.
27492
+ *
27493
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27494
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27495
+ * failed; the hub will NOT try again on its own — the fallback is declared
27496
+ * (consumers degrade to their own last resort) and the operator either types the
27497
+ * coordinates or presses detect.
27498
+ */
27499
+ var SiteLocationStatusSchema = object({
27500
+ location: object({
27501
+ /** WGS84 decimal degrees. */
27502
+ latitude: number().min(-90).max(90),
27503
+ longitude: number().min(-180).max(180),
27504
+ source: SiteLocationSourceSchema,
27505
+ /** Epoch ms the value was last written. */
27506
+ updatedAt: number(),
27507
+ /**
27508
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27509
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27510
+ */
27511
+ label: string().optional()
27512
+ }).nullable(),
27513
+ derivationAttemptedAt: number().nullable(),
27514
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27515
+ derivationError: string().nullable()
27516
+ });
27517
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27518
+ var SetSiteLocationInputSchema = object({
27519
+ latitude: number().min(-90).max(90),
27520
+ longitude: number().min(-180).max(180)
27521
+ }).nullable();
26538
27522
  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(), {
26539
27523
  kind: "mutation",
26540
27524
  auth: "admin"
26541
27525
  }), method(_void(), _void(), {
26542
27526
  kind: "mutation",
26543
27527
  auth: "admin"
27528
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27529
+ kind: "mutation",
27530
+ auth: "admin"
27531
+ }), method(_void(), SiteLocationStatusSchema, {
27532
+ kind: "mutation",
27533
+ auth: "admin"
26544
27534
  });
26545
27535
  /**
26546
27536
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27860,6 +28850,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27860
28850
  humiditySensor: humiditySensorCapability,
27861
28851
  image: imageCapability,
27862
28852
  imageSettings: imageSettingsCapability,
28853
+ intercom: intercomCapability,
27863
28854
  lawnMowerControl: lawnMowerControlCapability,
27864
28855
  lockControl: lockControlCapability,
27865
28856
  mediaPlayer: mediaPlayerCapability,
@@ -27878,6 +28869,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27878
28869
  sceneMonitor: sceneMonitorCapability,
27879
28870
  scriptRunner: scriptRunnerCapability,
27880
28871
  smoke: smokeCapability,
28872
+ streamCatalog: streamCatalogCapability,
27881
28873
  streamParams: streamParamsCapability,
27882
28874
  switch: switchCapability,
27883
28875
  tamper: tamperCapability,
@@ -28531,6 +29523,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28531
29523
  labels: ["probe not implemented"]
28532
29524
  };
28533
29525
  }
29526
+ /**
29527
+ * Top-level devices restored at once in {@link onRestoreDevices}.
29528
+ *
29529
+ * Four covers the fleets this ships to without turning a boot into a burst a
29530
+ * camera NVR answers with a refusal. A provider whose upstream is a single
29531
+ * session with a serial command channel (a Baichuan hub, an NVR that
29532
+ * serialises ISAPI) should lower it; nothing needs to raise it.
29533
+ */
29534
+ restoreConcurrency = 4;
28534
29535
  async restoreDevices(savedDevices) {
28535
29536
  await this.onRestoreDevices(savedDevices);
28536
29537
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -28562,15 +29563,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28562
29563
  */
28563
29564
  async onRestoreDevices(savedDevices) {
28564
29565
  const restored = /* @__PURE__ */ new Set();
28565
- for (const saved of savedDevices) {
28566
- if (saved.parentDeviceId !== null) continue;
29566
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
29567
+ const restoreOne = async (saved) => {
28567
29568
  const Class = this.deviceClasses[saved.type];
28568
29569
  if (!Class) {
28569
29570
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
28570
29571
  tags: { stableId: saved.stableId },
28571
29572
  meta: { type: saved.type }
28572
29573
  });
28573
- continue;
29574
+ return;
28574
29575
  }
28575
29576
  try {
28576
29577
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -28584,7 +29585,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28584
29585
  }
28585
29586
  });
28586
29587
  }
28587
- }
29588
+ };
29589
+ let nextTopLevel = 0;
29590
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
29591
+ for (;;) {
29592
+ const saved = topLevel[nextTopLevel++];
29593
+ if (saved === void 0) return;
29594
+ await restoreOne(saved);
29595
+ }
29596
+ }));
28588
29597
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
28589
29598
  for (const saved of childRows) {
28590
29599
  const Class = this.deviceClasses[saved.type];
@@ -30675,6 +31684,12 @@ Object.freeze({
30675
31684
  addonId: null,
30676
31685
  access: "create"
30677
31686
  },
31687
+ "llm.cancel": {
31688
+ capName: "llm",
31689
+ capScope: "system",
31690
+ addonId: null,
31691
+ access: "create"
31692
+ },
30678
31693
  "llm.deleteModel": {
30679
31694
  capName: "llm",
30680
31695
  capScope: "system",
@@ -30759,6 +31774,12 @@ Object.freeze({
30759
31774
  addonId: null,
30760
31775
  access: "view"
30761
31776
  },
31777
+ "llm.resolveModelRef": {
31778
+ capName: "llm",
31779
+ capScope: "system",
31780
+ addonId: null,
31781
+ access: "create"
31782
+ },
30762
31783
  "llm.setDefault": {
30763
31784
  capName: "llm",
30764
31785
  capScope: "system",
@@ -32925,6 +33946,12 @@ Object.freeze({
32925
33946
  addonId: null,
32926
33947
  access: "create"
32927
33948
  },
33949
+ "sceneMonitor.resetScene": {
33950
+ capName: "scene-monitor",
33951
+ capScope: "device",
33952
+ addonId: null,
33953
+ access: "delete"
33954
+ },
32928
33955
  "sceneMonitor.updateScene": {
32929
33956
  capName: "scene-monitor",
32930
33957
  capScope: "device",
@@ -33063,6 +34090,12 @@ Object.freeze({
33063
34090
  addonId: null,
33064
34091
  access: "view"
33065
34092
  },
34093
+ "snapshot.getDebugState": {
34094
+ capName: "snapshot",
34095
+ capScope: "device",
34096
+ addonId: null,
34097
+ access: "view"
34098
+ },
33066
34099
  "snapshot.getSnapshot": {
33067
34100
  capName: "snapshot",
33068
34101
  capScope: "device",
@@ -33603,6 +34636,12 @@ Object.freeze({
33603
34636
  addonId: null,
33604
34637
  access: "create"
33605
34638
  },
34639
+ "system.detectSiteLocation": {
34640
+ capName: "system",
34641
+ capScope: "system",
34642
+ addonId: null,
34643
+ access: "create"
34644
+ },
33606
34645
  "system.featureFlags": {
33607
34646
  capName: "system",
33608
34647
  capScope: "system",
@@ -33621,6 +34660,12 @@ Object.freeze({
33621
34660
  addonId: null,
33622
34661
  access: "view"
33623
34662
  },
34663
+ "system.getSiteLocation": {
34664
+ capName: "system",
34665
+ capScope: "system",
34666
+ addonId: null,
34667
+ access: "view"
34668
+ },
33624
34669
  "system.health": {
33625
34670
  capName: "system",
33626
34671
  capScope: "system",
@@ -33645,6 +34690,12 @@ Object.freeze({
33645
34690
  addonId: null,
33646
34691
  access: "create"
33647
34692
  },
34693
+ "system.setSiteLocation": {
34694
+ capName: "system",
34695
+ capScope: "system",
34696
+ addonId: null,
34697
+ access: "create"
34698
+ },
33648
34699
  "terminalSession.adoptLegacyMonitor": {
33649
34700
  capName: "terminal-session",
33650
34701
  capScope: "system",
@@ -34216,6 +35267,1709 @@ Object.freeze({
34216
35267
  access: "create"
34217
35268
  }
34218
35269
  });
35270
+ Object.freeze({
35271
+ "accessories.setChildHidden": [{
35272
+ name: "childDeviceId",
35273
+ form: "single",
35274
+ optional: false
35275
+ }, {
35276
+ name: "deviceId",
35277
+ form: "single",
35278
+ optional: false
35279
+ }],
35280
+ "addonSettings.getDeviceSettings": [{
35281
+ name: "deviceId",
35282
+ form: "single",
35283
+ optional: false
35284
+ }],
35285
+ "addonSettings.updateDeviceSettings": [{
35286
+ name: "deviceId",
35287
+ form: "single",
35288
+ optional: false
35289
+ }],
35290
+ "alarmPanel.arm": [{
35291
+ name: "deviceId",
35292
+ form: "single",
35293
+ optional: false
35294
+ }],
35295
+ "alarmPanel.disarm": [{
35296
+ name: "deviceId",
35297
+ form: "single",
35298
+ optional: false
35299
+ }],
35300
+ "alarmPanel.trigger": [{
35301
+ name: "deviceId",
35302
+ form: "single",
35303
+ optional: false
35304
+ }],
35305
+ "audioAnalysis.resolveDeviceSettings": [{
35306
+ name: "deviceId",
35307
+ form: "single",
35308
+ optional: false
35309
+ }],
35310
+ "audioAnalyzer.classify": [{
35311
+ name: "deviceId",
35312
+ form: "single",
35313
+ optional: true
35314
+ }],
35315
+ "audioMetrics.getCurrentSnapshot": [{
35316
+ name: "deviceId",
35317
+ form: "single",
35318
+ optional: false
35319
+ }],
35320
+ "audioMetrics.getHistory": [{
35321
+ name: "deviceId",
35322
+ form: "single",
35323
+ optional: false
35324
+ }],
35325
+ "automationControl.disable": [{
35326
+ name: "deviceId",
35327
+ form: "single",
35328
+ optional: false
35329
+ }],
35330
+ "automationControl.enable": [{
35331
+ name: "deviceId",
35332
+ form: "single",
35333
+ optional: false
35334
+ }],
35335
+ "automationControl.trigger": [{
35336
+ name: "deviceId",
35337
+ form: "single",
35338
+ optional: false
35339
+ }],
35340
+ "battery.wakeForStream": [{
35341
+ name: "deviceId",
35342
+ form: "single",
35343
+ optional: false
35344
+ }],
35345
+ "brightness.setBrightness": [{
35346
+ name: "deviceId",
35347
+ form: "single",
35348
+ optional: false
35349
+ }],
35350
+ "button.press": [{
35351
+ name: "deviceId",
35352
+ form: "single",
35353
+ optional: false
35354
+ }],
35355
+ "cameraCredentials.getCredentials": [{
35356
+ name: "deviceId",
35357
+ form: "single",
35358
+ optional: false
35359
+ }],
35360
+ "cameraStreams.getBrokerStreams": [{
35361
+ name: "deviceId",
35362
+ form: "single",
35363
+ optional: false
35364
+ }],
35365
+ "cameraStreams.getCameraStreams": [{
35366
+ name: "deviceId",
35367
+ form: "single",
35368
+ optional: false
35369
+ }],
35370
+ "cameraStreams.getProfileRtspEntries": [{
35371
+ name: "deviceId",
35372
+ form: "single",
35373
+ optional: false
35374
+ }],
35375
+ "cameraStreams.getRtspEntries": [{
35376
+ name: "deviceId",
35377
+ form: "single",
35378
+ optional: false
35379
+ }],
35380
+ "cameraStreams.pickStream": [{
35381
+ name: "deviceId",
35382
+ form: "single",
35383
+ optional: false
35384
+ }],
35385
+ "climateControl.setFanMode": [{
35386
+ name: "deviceId",
35387
+ form: "single",
35388
+ optional: false
35389
+ }],
35390
+ "climateControl.setMode": [{
35391
+ name: "deviceId",
35392
+ form: "single",
35393
+ optional: false
35394
+ }],
35395
+ "climateControl.setPreset": [{
35396
+ name: "deviceId",
35397
+ form: "single",
35398
+ optional: false
35399
+ }],
35400
+ "climateControl.setSwingHorizontal": [{
35401
+ name: "deviceId",
35402
+ form: "single",
35403
+ optional: false
35404
+ }],
35405
+ "climateControl.setSwingVertical": [{
35406
+ name: "deviceId",
35407
+ form: "single",
35408
+ optional: false
35409
+ }],
35410
+ "climateControl.setTarget": [{
35411
+ name: "deviceId",
35412
+ form: "single",
35413
+ optional: false
35414
+ }],
35415
+ "climateControl.setTargetHumidity": [{
35416
+ name: "deviceId",
35417
+ form: "single",
35418
+ optional: false
35419
+ }],
35420
+ "climateControl.setTargetRange": [{
35421
+ name: "deviceId",
35422
+ form: "single",
35423
+ optional: false
35424
+ }],
35425
+ "color.setColor": [{
35426
+ name: "deviceId",
35427
+ form: "single",
35428
+ optional: false
35429
+ }],
35430
+ "consumables.reset": [{
35431
+ name: "deviceId",
35432
+ form: "single",
35433
+ optional: false
35434
+ }],
35435
+ "control.setValue": [{
35436
+ name: "deviceId",
35437
+ form: "single",
35438
+ optional: false
35439
+ }],
35440
+ "cover.close": [{
35441
+ name: "deviceId",
35442
+ form: "single",
35443
+ optional: false
35444
+ }],
35445
+ "cover.open": [{
35446
+ name: "deviceId",
35447
+ form: "single",
35448
+ optional: false
35449
+ }],
35450
+ "cover.setPosition": [{
35451
+ name: "deviceId",
35452
+ form: "single",
35453
+ optional: false
35454
+ }],
35455
+ "cover.setTiltPosition": [{
35456
+ name: "deviceId",
35457
+ form: "single",
35458
+ optional: false
35459
+ }],
35460
+ "cover.stop": [{
35461
+ name: "deviceId",
35462
+ form: "single",
35463
+ optional: false
35464
+ }],
35465
+ "dayNight.getOptions": [{
35466
+ name: "deviceId",
35467
+ form: "single",
35468
+ optional: false
35469
+ }],
35470
+ "dayNight.setSettings": [{
35471
+ name: "deviceId",
35472
+ form: "single",
35473
+ optional: false
35474
+ }],
35475
+ "decoder.createSession": [{
35476
+ name: "deviceId",
35477
+ form: "single",
35478
+ optional: true
35479
+ }],
35480
+ "deviceAdoption.release": [{
35481
+ name: "camDeviceId",
35482
+ form: "single",
35483
+ optional: false
35484
+ }],
35485
+ "deviceAdoption.resync": [{
35486
+ name: "camDeviceId",
35487
+ form: "single",
35488
+ optional: false
35489
+ }],
35490
+ "deviceDiscovery.adoptDevice": [{
35491
+ name: "deviceId",
35492
+ form: "single",
35493
+ optional: false
35494
+ }],
35495
+ "deviceDiscovery.listDiscovered": [{
35496
+ name: "deviceId",
35497
+ form: "single",
35498
+ optional: false
35499
+ }],
35500
+ "deviceDiscovery.refreshDiscovery": [{
35501
+ name: "deviceId",
35502
+ form: "single",
35503
+ optional: false
35504
+ }],
35505
+ "deviceDiscovery.releaseDevice": [{
35506
+ name: "childDeviceId",
35507
+ form: "single",
35508
+ optional: false
35509
+ }, {
35510
+ name: "deviceId",
35511
+ form: "single",
35512
+ optional: false
35513
+ }],
35514
+ "deviceManager.adoptionRelease": [{
35515
+ name: "camDeviceId",
35516
+ form: "single",
35517
+ optional: false
35518
+ }],
35519
+ "deviceManager.adoptionResync": [{
35520
+ name: "camDeviceId",
35521
+ form: "single",
35522
+ optional: false
35523
+ }],
35524
+ "deviceManager.applyInitialMeta": [{
35525
+ name: "deviceId",
35526
+ form: "single",
35527
+ optional: false
35528
+ }, {
35529
+ name: "linkDeviceId",
35530
+ form: "single",
35531
+ optional: true
35532
+ }],
35533
+ "deviceManager.disable": [{
35534
+ name: "deviceId",
35535
+ form: "single",
35536
+ optional: false
35537
+ }],
35538
+ "deviceManager.enable": [{
35539
+ name: "deviceId",
35540
+ form: "single",
35541
+ optional: false
35542
+ }],
35543
+ "deviceManager.getBindings": [{
35544
+ name: "deviceId",
35545
+ form: "single",
35546
+ optional: false
35547
+ }],
35548
+ "deviceManager.getChildren": [{
35549
+ name: "parentDeviceId",
35550
+ form: "single",
35551
+ optional: false
35552
+ }],
35553
+ "deviceManager.getConfigSchema": [{
35554
+ name: "deviceId",
35555
+ form: "single",
35556
+ optional: false
35557
+ }],
35558
+ "deviceManager.getDevice": [{
35559
+ name: "deviceId",
35560
+ form: "single",
35561
+ optional: false
35562
+ }],
35563
+ "deviceManager.getDeviceAggregate": [{
35564
+ name: "deviceId",
35565
+ form: "single",
35566
+ optional: false
35567
+ }],
35568
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35569
+ name: "deviceId",
35570
+ form: "single",
35571
+ optional: false
35572
+ }],
35573
+ "deviceManager.getDeviceSettingsAggregate": [{
35574
+ name: "deviceId",
35575
+ form: "single",
35576
+ optional: false
35577
+ }],
35578
+ "deviceManager.getDeviceStatusAggregate": [{
35579
+ name: "deviceId",
35580
+ form: "single",
35581
+ optional: false
35582
+ }],
35583
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35584
+ name: "deviceIds",
35585
+ form: "array",
35586
+ optional: false
35587
+ }],
35588
+ "deviceManager.getLinkedDevices": [{
35589
+ name: "deviceId",
35590
+ form: "single",
35591
+ optional: false
35592
+ }],
35593
+ "deviceManager.getSettingsSchema": [{
35594
+ name: "deviceId",
35595
+ form: "single",
35596
+ optional: false
35597
+ }],
35598
+ "deviceManager.getStreamProfileMap": [{
35599
+ name: "deviceId",
35600
+ form: "single",
35601
+ optional: false
35602
+ }],
35603
+ "deviceManager.getStreamSources": [{
35604
+ name: "deviceId",
35605
+ form: "single",
35606
+ optional: false
35607
+ }],
35608
+ "deviceManager.getWireableFields": [{
35609
+ name: "deviceId",
35610
+ form: "single",
35611
+ optional: false
35612
+ }],
35613
+ "deviceManager.loadConfig": [{
35614
+ name: "deviceId",
35615
+ form: "single",
35616
+ optional: false
35617
+ }],
35618
+ "deviceManager.loadMeta": [{
35619
+ name: "deviceId",
35620
+ form: "single",
35621
+ optional: false
35622
+ }],
35623
+ "deviceManager.loadRuntimeState": [{
35624
+ name: "deviceId",
35625
+ form: "single",
35626
+ optional: false
35627
+ }],
35628
+ "deviceManager.persistConfig": [{
35629
+ name: "deviceId",
35630
+ form: "single",
35631
+ optional: false
35632
+ }],
35633
+ "deviceManager.probeStreams": [{
35634
+ name: "deviceId",
35635
+ form: "single",
35636
+ optional: false
35637
+ }],
35638
+ "deviceManager.registerDevice": [{
35639
+ name: "parentDeviceId",
35640
+ form: "single",
35641
+ optional: true
35642
+ }],
35643
+ "deviceManager.remove": [{
35644
+ name: "deviceId",
35645
+ form: "single",
35646
+ optional: false
35647
+ }],
35648
+ "deviceManager.removeDevice": [{
35649
+ name: "deviceId",
35650
+ form: "single",
35651
+ optional: false
35652
+ }],
35653
+ "deviceManager.runDeviceAction": [{
35654
+ name: "deviceId",
35655
+ form: "single",
35656
+ optional: false
35657
+ }],
35658
+ "deviceManager.setChildLayout": [{
35659
+ name: "deviceId",
35660
+ form: "single",
35661
+ optional: false
35662
+ }],
35663
+ "deviceManager.setDisabled": [{
35664
+ name: "deviceId",
35665
+ form: "single",
35666
+ optional: false
35667
+ }],
35668
+ "deviceManager.setDisplay": [{
35669
+ name: "deviceId",
35670
+ form: "single",
35671
+ optional: false
35672
+ }],
35673
+ "deviceManager.setIntegrationId": [{
35674
+ name: "deviceId",
35675
+ form: "single",
35676
+ optional: false
35677
+ }],
35678
+ "deviceManager.setLinkDeviceId": [{
35679
+ name: "deviceId",
35680
+ form: "single",
35681
+ optional: false
35682
+ }, {
35683
+ name: "linkDeviceId",
35684
+ form: "single",
35685
+ optional: true
35686
+ }],
35687
+ "deviceManager.setLocation": [{
35688
+ name: "deviceId",
35689
+ form: "single",
35690
+ optional: false
35691
+ }],
35692
+ "deviceManager.setMetadata": [{
35693
+ name: "deviceId",
35694
+ form: "single",
35695
+ optional: false
35696
+ }],
35697
+ "deviceManager.setName": [{
35698
+ name: "deviceId",
35699
+ form: "single",
35700
+ optional: false
35701
+ }],
35702
+ "deviceManager.setPrimaryChildEntityId": [{
35703
+ name: "deviceId",
35704
+ form: "single",
35705
+ optional: false
35706
+ }],
35707
+ "deviceManager.setRole": [{
35708
+ name: "deviceId",
35709
+ form: "single",
35710
+ optional: false
35711
+ }],
35712
+ "deviceManager.setStreamProfileMap": [{
35713
+ name: "deviceId",
35714
+ form: "single",
35715
+ optional: false
35716
+ }],
35717
+ "deviceManager.setType": [{
35718
+ name: "deviceId",
35719
+ form: "single",
35720
+ optional: false
35721
+ }],
35722
+ "deviceManager.setWrapperActive": [{
35723
+ name: "deviceId",
35724
+ form: "single",
35725
+ optional: false
35726
+ }],
35727
+ "deviceManager.testField": [{
35728
+ name: "deviceId",
35729
+ form: "single",
35730
+ optional: false
35731
+ }],
35732
+ "deviceManager.updateConfig": [{
35733
+ name: "deviceId",
35734
+ form: "single",
35735
+ optional: false
35736
+ }],
35737
+ "deviceManager.updateDeviceField": [{
35738
+ name: "deviceId",
35739
+ form: "single",
35740
+ optional: false
35741
+ }],
35742
+ "deviceManager.updateDeviceFieldsBatch": [{
35743
+ name: "deviceId",
35744
+ form: "single",
35745
+ optional: false
35746
+ }],
35747
+ "deviceOps.getConfigEntries": [{
35748
+ name: "deviceId",
35749
+ form: "single",
35750
+ optional: false
35751
+ }],
35752
+ "deviceOps.getRawState": [{
35753
+ name: "deviceId",
35754
+ form: "single",
35755
+ optional: false
35756
+ }],
35757
+ "deviceOps.getSettingsSchema": [{
35758
+ name: "deviceId",
35759
+ form: "single",
35760
+ optional: false
35761
+ }],
35762
+ "deviceOps.getStreamSources": [{
35763
+ name: "deviceId",
35764
+ form: "single",
35765
+ optional: false
35766
+ }],
35767
+ "deviceOps.removeDevice": [{
35768
+ name: "deviceId",
35769
+ form: "single",
35770
+ optional: false
35771
+ }],
35772
+ "deviceOps.runAction": [{
35773
+ name: "deviceId",
35774
+ form: "single",
35775
+ optional: false
35776
+ }],
35777
+ "deviceOps.setConfig": [{
35778
+ name: "deviceId",
35779
+ form: "single",
35780
+ optional: false
35781
+ }],
35782
+ "deviceState.getCapSlice": [{
35783
+ name: "deviceId",
35784
+ form: "single",
35785
+ optional: false
35786
+ }],
35787
+ "deviceState.getSnapshot": [{
35788
+ name: "deviceId",
35789
+ form: "single",
35790
+ optional: false
35791
+ }],
35792
+ "deviceState.setCapSlice": [{
35793
+ name: "deviceId",
35794
+ form: "single",
35795
+ optional: false
35796
+ }],
35797
+ "events.getEventClipUrl": [{
35798
+ name: "deviceId",
35799
+ form: "single",
35800
+ optional: false
35801
+ }],
35802
+ "events.getEvents": [{
35803
+ name: "deviceId",
35804
+ form: "single",
35805
+ optional: false
35806
+ }],
35807
+ "events.getEventThumbnail": [{
35808
+ name: "deviceId",
35809
+ form: "single",
35810
+ optional: false
35811
+ }],
35812
+ "faceGallery.getFaceByTrack": [{
35813
+ name: "deviceId",
35814
+ form: "single",
35815
+ optional: false
35816
+ }],
35817
+ "faceGallery.listRecentFaces": [{
35818
+ name: "deviceId",
35819
+ form: "single",
35820
+ optional: true
35821
+ }],
35822
+ "fanControl.setDirection": [{
35823
+ name: "deviceId",
35824
+ form: "single",
35825
+ optional: false
35826
+ }],
35827
+ "fanControl.setOscillating": [{
35828
+ name: "deviceId",
35829
+ form: "single",
35830
+ optional: false
35831
+ }],
35832
+ "fanControl.setPercentage": [{
35833
+ name: "deviceId",
35834
+ form: "single",
35835
+ optional: false
35836
+ }],
35837
+ "fanControl.setPreset": [{
35838
+ name: "deviceId",
35839
+ form: "single",
35840
+ optional: false
35841
+ }],
35842
+ "humidifier.setMode": [{
35843
+ name: "deviceId",
35844
+ form: "single",
35845
+ optional: false
35846
+ }],
35847
+ "humidifier.setOn": [{
35848
+ name: "deviceId",
35849
+ form: "single",
35850
+ optional: false
35851
+ }],
35852
+ "humidifier.setTargetHumidity": [{
35853
+ name: "deviceId",
35854
+ form: "single",
35855
+ optional: false
35856
+ }],
35857
+ "imageSettings.getOptions": [{
35858
+ name: "deviceId",
35859
+ form: "single",
35860
+ optional: false
35861
+ }],
35862
+ "imageSettings.setSettings": [{
35863
+ name: "deviceId",
35864
+ form: "single",
35865
+ optional: false
35866
+ }],
35867
+ "intercom.endTalkSession": [{
35868
+ name: "deviceId",
35869
+ form: "single",
35870
+ optional: false
35871
+ }],
35872
+ "intercom.handleAnswer": [{
35873
+ name: "deviceId",
35874
+ form: "single",
35875
+ optional: false
35876
+ }],
35877
+ "intercom.pushTalkAudio": [{
35878
+ name: "deviceId",
35879
+ form: "single",
35880
+ optional: false
35881
+ }],
35882
+ "intercom.startSession": [{
35883
+ name: "deviceId",
35884
+ form: "single",
35885
+ optional: false
35886
+ }],
35887
+ "intercom.startTalkSession": [{
35888
+ name: "deviceId",
35889
+ form: "single",
35890
+ optional: false
35891
+ }],
35892
+ "intercom.stopSession": [{
35893
+ name: "deviceId",
35894
+ form: "single",
35895
+ optional: false
35896
+ }],
35897
+ "lawnMowerControl.dock": [{
35898
+ name: "deviceId",
35899
+ form: "single",
35900
+ optional: false
35901
+ }],
35902
+ "lawnMowerControl.pause": [{
35903
+ name: "deviceId",
35904
+ form: "single",
35905
+ optional: false
35906
+ }],
35907
+ "lawnMowerControl.startMowing": [{
35908
+ name: "deviceId",
35909
+ form: "single",
35910
+ optional: false
35911
+ }],
35912
+ "lockControl.lock": [{
35913
+ name: "deviceId",
35914
+ form: "single",
35915
+ optional: false
35916
+ }],
35917
+ "lockControl.open": [{
35918
+ name: "deviceId",
35919
+ form: "single",
35920
+ optional: false
35921
+ }],
35922
+ "lockControl.unlock": [{
35923
+ name: "deviceId",
35924
+ form: "single",
35925
+ optional: false
35926
+ }],
35927
+ "mediaPlayer.next": [{
35928
+ name: "deviceId",
35929
+ form: "single",
35930
+ optional: false
35931
+ }],
35932
+ "mediaPlayer.pause": [{
35933
+ name: "deviceId",
35934
+ form: "single",
35935
+ optional: false
35936
+ }],
35937
+ "mediaPlayer.play": [{
35938
+ name: "deviceId",
35939
+ form: "single",
35940
+ optional: false
35941
+ }],
35942
+ "mediaPlayer.playMedia": [{
35943
+ name: "deviceId",
35944
+ form: "single",
35945
+ optional: false
35946
+ }],
35947
+ "mediaPlayer.previous": [{
35948
+ name: "deviceId",
35949
+ form: "single",
35950
+ optional: false
35951
+ }],
35952
+ "mediaPlayer.seek": [{
35953
+ name: "deviceId",
35954
+ form: "single",
35955
+ optional: false
35956
+ }],
35957
+ "mediaPlayer.selectSource": [{
35958
+ name: "deviceId",
35959
+ form: "single",
35960
+ optional: false
35961
+ }],
35962
+ "mediaPlayer.setMute": [{
35963
+ name: "deviceId",
35964
+ form: "single",
35965
+ optional: false
35966
+ }],
35967
+ "mediaPlayer.setRepeat": [{
35968
+ name: "deviceId",
35969
+ form: "single",
35970
+ optional: false
35971
+ }],
35972
+ "mediaPlayer.setShuffle": [{
35973
+ name: "deviceId",
35974
+ form: "single",
35975
+ optional: false
35976
+ }],
35977
+ "mediaPlayer.setVolume": [{
35978
+ name: "deviceId",
35979
+ form: "single",
35980
+ optional: false
35981
+ }],
35982
+ "mediaPlayer.stop": [{
35983
+ name: "deviceId",
35984
+ form: "single",
35985
+ optional: false
35986
+ }],
35987
+ "motion.isDetected": [{
35988
+ name: "deviceId",
35989
+ form: "single",
35990
+ optional: false
35991
+ }],
35992
+ "motionDetection.analyze": [{
35993
+ name: "deviceId",
35994
+ form: "single",
35995
+ optional: false
35996
+ }],
35997
+ "motionDetection.removeCamera": [{
35998
+ name: "deviceId",
35999
+ form: "single",
36000
+ optional: false
36001
+ }],
36002
+ "motionTrigger.setMotionTrigger": [{
36003
+ name: "deviceId",
36004
+ form: "single",
36005
+ optional: false
36006
+ }],
36007
+ "motionZones.getOptions": [{
36008
+ name: "deviceId",
36009
+ form: "single",
36010
+ optional: false
36011
+ }],
36012
+ "motionZones.setZone": [{
36013
+ name: "deviceId",
36014
+ form: "single",
36015
+ optional: false
36016
+ }],
36017
+ "nativeObjectDetection.setEnabled": [{
36018
+ name: "deviceId",
36019
+ form: "single",
36020
+ optional: false
36021
+ }],
36022
+ "networkQuality.getDeviceStats": [{
36023
+ name: "deviceId",
36024
+ form: "single",
36025
+ optional: false
36026
+ }],
36027
+ "networkQuality.reportClientStats": [{
36028
+ name: "deviceId",
36029
+ form: "single",
36030
+ optional: false
36031
+ }],
36032
+ "notificationRules.setDeviceMuted": [{
36033
+ name: "deviceId",
36034
+ form: "single",
36035
+ optional: false
36036
+ }],
36037
+ "notifier.cancel": [{
36038
+ name: "deviceId",
36039
+ form: "single",
36040
+ optional: false
36041
+ }],
36042
+ "notifier.send": [{
36043
+ name: "deviceId",
36044
+ form: "single",
36045
+ optional: false
36046
+ }],
36047
+ "osd.setOverlay": [{
36048
+ name: "deviceId",
36049
+ form: "single",
36050
+ optional: false
36051
+ }],
36052
+ "osdManager.clearSlotBinding": [{
36053
+ name: "deviceId",
36054
+ form: "single",
36055
+ optional: false
36056
+ }],
36057
+ "osdManager.copyDeviceConfiguration": [{
36058
+ name: "sourceDeviceId",
36059
+ form: "single",
36060
+ optional: false
36061
+ }, {
36062
+ name: "targetDeviceId",
36063
+ form: "single",
36064
+ optional: false
36065
+ }],
36066
+ "osdManager.getDeviceOsd": [{
36067
+ name: "deviceId",
36068
+ form: "single",
36069
+ optional: false
36070
+ }],
36071
+ "osdManager.getSourceCatalog": [{
36072
+ name: "deviceId",
36073
+ form: "single",
36074
+ optional: false
36075
+ }],
36076
+ "osdManager.previewSlot": [{
36077
+ name: "deviceId",
36078
+ form: "single",
36079
+ optional: false
36080
+ }],
36081
+ "osdManager.renderDevice": [{
36082
+ name: "deviceId",
36083
+ form: "single",
36084
+ optional: false
36085
+ }],
36086
+ "osdManager.setSlotBinding": [{
36087
+ name: "deviceId",
36088
+ form: "single",
36089
+ optional: false
36090
+ }],
36091
+ "petFeeder.callPet": [{
36092
+ name: "deviceId",
36093
+ form: "single",
36094
+ optional: false
36095
+ }],
36096
+ "petFeeder.cancelFeed": [{
36097
+ name: "deviceId",
36098
+ form: "single",
36099
+ optional: false
36100
+ }],
36101
+ "petFeeder.feed": [{
36102
+ name: "deviceId",
36103
+ form: "single",
36104
+ optional: false
36105
+ }],
36106
+ "petFeeder.markFoodReplenished": [{
36107
+ name: "deviceId",
36108
+ form: "single",
36109
+ optional: false
36110
+ }],
36111
+ "petFeeder.playSound": [{
36112
+ name: "deviceId",
36113
+ form: "single",
36114
+ optional: false
36115
+ }],
36116
+ "petFeeder.resetDesiccant": [{
36117
+ name: "deviceId",
36118
+ form: "single",
36119
+ optional: false
36120
+ }],
36121
+ "petFeeder.setChildLock": [{
36122
+ name: "deviceId",
36123
+ form: "single",
36124
+ optional: false
36125
+ }],
36126
+ "petFeeder.setFeedSound": [{
36127
+ name: "deviceId",
36128
+ form: "single",
36129
+ optional: false
36130
+ }],
36131
+ "petFeeder.setIndicatorLight": [{
36132
+ name: "deviceId",
36133
+ form: "single",
36134
+ optional: false
36135
+ }],
36136
+ "petFeeder.setVolume": [{
36137
+ name: "deviceId",
36138
+ form: "single",
36139
+ optional: false
36140
+ }],
36141
+ "pipelineAnalytics.clearTracks": [{
36142
+ name: "deviceId",
36143
+ form: "single",
36144
+ optional: false
36145
+ }],
36146
+ "pipelineAnalytics.completeRetrainTrack": [{
36147
+ name: "deviceId",
36148
+ form: "single",
36149
+ optional: false
36150
+ }],
36151
+ "pipelineAnalytics.deleteDeviceEvents": [{
36152
+ name: "deviceId",
36153
+ form: "single",
36154
+ optional: false
36155
+ }],
36156
+ "pipelineAnalytics.deleteTracks": [{
36157
+ name: "deviceId",
36158
+ form: "single",
36159
+ optional: false
36160
+ }],
36161
+ "pipelineAnalytics.deselectRetrainFrame": [{
36162
+ name: "deviceId",
36163
+ form: "single",
36164
+ optional: false
36165
+ }],
36166
+ "pipelineAnalytics.getActiveTracks": [{
36167
+ name: "deviceId",
36168
+ form: "single",
36169
+ optional: false
36170
+ }],
36171
+ "pipelineAnalytics.getAudioEvents": [{
36172
+ name: "deviceId",
36173
+ form: "single",
36174
+ optional: false
36175
+ }],
36176
+ "pipelineAnalytics.getEventDensity": [{
36177
+ name: "deviceId",
36178
+ form: "single",
36179
+ optional: false
36180
+ }],
36181
+ "pipelineAnalytics.getEventMedia": [{
36182
+ name: "deviceId",
36183
+ form: "single",
36184
+ optional: false
36185
+ }],
36186
+ "pipelineAnalytics.getKeyEvents": [{
36187
+ name: "deviceId",
36188
+ form: "single",
36189
+ optional: false
36190
+ }],
36191
+ "pipelineAnalytics.getMotionEvents": [{
36192
+ name: "deviceId",
36193
+ form: "single",
36194
+ optional: false
36195
+ }],
36196
+ "pipelineAnalytics.getObjectEvents": [{
36197
+ name: "deviceId",
36198
+ form: "single",
36199
+ optional: false
36200
+ }],
36201
+ "pipelineAnalytics.getRetrainExportUrl": [{
36202
+ name: "deviceIds",
36203
+ form: "array",
36204
+ optional: true
36205
+ }],
36206
+ "pipelineAnalytics.getSensorEvents": [{
36207
+ name: "deviceId",
36208
+ form: "single",
36209
+ optional: false
36210
+ }],
36211
+ "pipelineAnalytics.getTrack": [{
36212
+ name: "deviceId",
36213
+ form: "single",
36214
+ optional: false
36215
+ }],
36216
+ "pipelineAnalytics.getTrackMedia": [{
36217
+ name: "deviceId",
36218
+ form: "single",
36219
+ optional: false
36220
+ }],
36221
+ "pipelineAnalytics.getTrainingExportSummary": [{
36222
+ name: "deviceIds",
36223
+ form: "array",
36224
+ optional: true
36225
+ }],
36226
+ "pipelineAnalytics.getTrainingExportUrl": [{
36227
+ name: "deviceIds",
36228
+ form: "array",
36229
+ optional: true
36230
+ }],
36231
+ "pipelineAnalytics.listEventKinds": [{
36232
+ name: "deviceId",
36233
+ form: "single",
36234
+ optional: false
36235
+ }],
36236
+ "pipelineAnalytics.listEventKindsBatch": [{
36237
+ name: "deviceIds",
36238
+ form: "array",
36239
+ optional: false
36240
+ }],
36241
+ "pipelineAnalytics.listOpsLog": [{
36242
+ name: "deviceId",
36243
+ form: "single",
36244
+ optional: true
36245
+ }],
36246
+ "pipelineAnalytics.listRecentTracks": [{
36247
+ name: "deviceIds",
36248
+ form: "array",
36249
+ optional: false
36250
+ }],
36251
+ "pipelineAnalytics.listRetrainStaging": [{
36252
+ name: "deviceIds",
36253
+ form: "array",
36254
+ optional: true
36255
+ }],
36256
+ "pipelineAnalytics.listTrackMedia": [{
36257
+ name: "deviceId",
36258
+ form: "single",
36259
+ optional: false
36260
+ }],
36261
+ "pipelineAnalytics.listTracks": [{
36262
+ name: "deviceId",
36263
+ form: "single",
36264
+ optional: false
36265
+ }],
36266
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36267
+ name: "deviceId",
36268
+ form: "single",
36269
+ optional: false
36270
+ }],
36271
+ "pipelineAnalytics.pruneEventsBefore": [{
36272
+ name: "deviceId",
36273
+ form: "single",
36274
+ optional: false
36275
+ }],
36276
+ "pipelineAnalytics.pruneTracksBefore": [{
36277
+ name: "deviceId",
36278
+ form: "single",
36279
+ optional: false
36280
+ }],
36281
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36282
+ name: "deviceId",
36283
+ form: "single",
36284
+ optional: true
36285
+ }],
36286
+ "pipelineAnalytics.restageRetrainTrack": [{
36287
+ name: "deviceId",
36288
+ form: "single",
36289
+ optional: false
36290
+ }],
36291
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36292
+ name: "deviceId",
36293
+ form: "single",
36294
+ optional: false
36295
+ }],
36296
+ "pipelineAnalytics.searchObjectEvents": [{
36297
+ name: "deviceId",
36298
+ form: "single",
36299
+ optional: true
36300
+ }],
36301
+ "pipelineAnalytics.selectRetrainFrames": [{
36302
+ name: "deviceId",
36303
+ form: "single",
36304
+ optional: false
36305
+ }],
36306
+ "pipelineAnalytics.setTrackFlags": [{
36307
+ name: "deviceId",
36308
+ form: "single",
36309
+ optional: false
36310
+ }],
36311
+ "pipelineAnalytics.wipeAllAnalytics": [{
36312
+ name: "deviceId",
36313
+ form: "single",
36314
+ optional: false
36315
+ }],
36316
+ "pipelineExecutor.runPipeline": [{
36317
+ name: "deviceId",
36318
+ form: "single",
36319
+ optional: true
36320
+ }],
36321
+ "pipelineExecutor.runPipelineBatch": [{
36322
+ name: "deviceId",
36323
+ form: "single",
36324
+ optional: true
36325
+ }],
36326
+ "pipelineOrchestrator.assignAudio": [{
36327
+ name: "deviceId",
36328
+ form: "single",
36329
+ optional: false
36330
+ }],
36331
+ "pipelineOrchestrator.assignPipeline": [{
36332
+ name: "deviceId",
36333
+ form: "single",
36334
+ optional: false
36335
+ }],
36336
+ "pipelineOrchestrator.getAudioAssignment": [{
36337
+ name: "deviceId",
36338
+ form: "single",
36339
+ optional: false
36340
+ }],
36341
+ "pipelineOrchestrator.getCameraMetrics": [{
36342
+ name: "deviceId",
36343
+ form: "single",
36344
+ optional: false
36345
+ }],
36346
+ "pipelineOrchestrator.getCameraSettings": [{
36347
+ name: "deviceId",
36348
+ form: "single",
36349
+ optional: false
36350
+ }],
36351
+ "pipelineOrchestrator.getCameraStatus": [{
36352
+ name: "deviceId",
36353
+ form: "single",
36354
+ optional: false
36355
+ }],
36356
+ "pipelineOrchestrator.getCameraStatuses": [{
36357
+ name: "deviceIds",
36358
+ form: "array",
36359
+ optional: true
36360
+ }],
36361
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36362
+ name: "deviceId",
36363
+ form: "single",
36364
+ optional: false
36365
+ }],
36366
+ "pipelineOrchestrator.getCameraSwitches": [{
36367
+ name: "deviceId",
36368
+ form: "single",
36369
+ optional: false
36370
+ }],
36371
+ "pipelineOrchestrator.getPipelineAssignment": [{
36372
+ name: "deviceId",
36373
+ form: "single",
36374
+ optional: false
36375
+ }],
36376
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36377
+ name: "deviceId",
36378
+ form: "single",
36379
+ optional: false
36380
+ }],
36381
+ "pipelineOrchestrator.resolvePipeline": [{
36382
+ name: "deviceId",
36383
+ form: "single",
36384
+ optional: false
36385
+ }],
36386
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36387
+ name: "deviceId",
36388
+ form: "single",
36389
+ optional: false
36390
+ }],
36391
+ "pipelineOrchestrator.setCameraStepOverride": [{
36392
+ name: "deviceId",
36393
+ form: "single",
36394
+ optional: false
36395
+ }],
36396
+ "pipelineOrchestrator.setCameraStepToggle": [{
36397
+ name: "deviceId",
36398
+ form: "single",
36399
+ optional: false
36400
+ }],
36401
+ "pipelineOrchestrator.setCameraSwitch": [{
36402
+ name: "deviceId",
36403
+ form: "single",
36404
+ optional: false
36405
+ }],
36406
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36407
+ name: "deviceId",
36408
+ form: "single",
36409
+ optional: false
36410
+ }],
36411
+ "pipelineOrchestrator.unassignAudio": [{
36412
+ name: "deviceId",
36413
+ form: "single",
36414
+ optional: false
36415
+ }],
36416
+ "pipelineOrchestrator.unassignPipeline": [{
36417
+ name: "deviceId",
36418
+ form: "single",
36419
+ optional: false
36420
+ }],
36421
+ "pipelineRunner.attachCamera": [{
36422
+ name: "deviceId",
36423
+ form: "single",
36424
+ optional: false
36425
+ }],
36426
+ "pipelineRunner.detachCamera": [{
36427
+ name: "deviceId",
36428
+ form: "single",
36429
+ optional: false
36430
+ }],
36431
+ "pipelineRunner.getCameraMetrics": [{
36432
+ name: "deviceId",
36433
+ form: "single",
36434
+ optional: false
36435
+ }],
36436
+ "pipelineRunner.reportMotion": [{
36437
+ name: "deviceId",
36438
+ form: "single",
36439
+ optional: false
36440
+ }],
36441
+ "pipelineRunner.runDetailSubtree": [{
36442
+ name: "deviceId",
36443
+ form: "single",
36444
+ optional: false
36445
+ }],
36446
+ "pipelineRunner.runStatelessStep": [{
36447
+ name: "sourceDeviceId",
36448
+ form: "single",
36449
+ optional: false
36450
+ }],
36451
+ "plateGallery.getPlateByTrack": [{
36452
+ name: "deviceId",
36453
+ form: "single",
36454
+ optional: false
36455
+ }],
36456
+ "plateGallery.listPlates": [{
36457
+ name: "deviceId",
36458
+ form: "single",
36459
+ optional: true
36460
+ }],
36461
+ "privacyMask.getOptions": [{
36462
+ name: "deviceId",
36463
+ form: "single",
36464
+ optional: false
36465
+ }],
36466
+ "privacyMask.setAudioEnabled": [{
36467
+ name: "deviceId",
36468
+ form: "single",
36469
+ optional: false
36470
+ }],
36471
+ "privacyMask.setMask": [{
36472
+ name: "deviceId",
36473
+ form: "single",
36474
+ optional: false
36475
+ }],
36476
+ "ptz.continuousMove": [{
36477
+ name: "deviceId",
36478
+ form: "single",
36479
+ optional: false
36480
+ }],
36481
+ "ptz.deletePreset": [{
36482
+ name: "deviceId",
36483
+ form: "single",
36484
+ optional: false
36485
+ }],
36486
+ "ptz.getOptions": [{
36487
+ name: "deviceId",
36488
+ form: "single",
36489
+ optional: false
36490
+ }],
36491
+ "ptz.getPosition": [{
36492
+ name: "deviceId",
36493
+ form: "single",
36494
+ optional: false
36495
+ }],
36496
+ "ptz.getPresets": [{
36497
+ name: "deviceId",
36498
+ form: "single",
36499
+ optional: false
36500
+ }],
36501
+ "ptz.goHome": [{
36502
+ name: "deviceId",
36503
+ form: "single",
36504
+ optional: false
36505
+ }],
36506
+ "ptz.goToPreset": [{
36507
+ name: "deviceId",
36508
+ form: "single",
36509
+ optional: false
36510
+ }],
36511
+ "ptz.move": [{
36512
+ name: "deviceId",
36513
+ form: "single",
36514
+ optional: false
36515
+ }],
36516
+ "ptz.savePreset": [{
36517
+ name: "deviceId",
36518
+ form: "single",
36519
+ optional: false
36520
+ }],
36521
+ "ptz.setAutofocus": [{
36522
+ name: "deviceId",
36523
+ form: "single",
36524
+ optional: false
36525
+ }],
36526
+ "ptz.stop": [{
36527
+ name: "deviceId",
36528
+ form: "single",
36529
+ optional: false
36530
+ }],
36531
+ "ptzAutotrack.getSettings": [{
36532
+ name: "deviceId",
36533
+ form: "single",
36534
+ optional: false
36535
+ }],
36536
+ "ptzAutotrack.getStatus": [{
36537
+ name: "deviceId",
36538
+ form: "single",
36539
+ optional: false
36540
+ }],
36541
+ "ptzAutotrack.setEnabled": [{
36542
+ name: "deviceId",
36543
+ form: "single",
36544
+ optional: false
36545
+ }],
36546
+ "ptzAutotrack.setSettings": [{
36547
+ name: "deviceId",
36548
+ form: "single",
36549
+ optional: false
36550
+ }],
36551
+ "reboot.reboot": [{
36552
+ name: "deviceId",
36553
+ form: "single",
36554
+ optional: false
36555
+ }],
36556
+ "recording.deleteFootprint": [{
36557
+ name: "deviceId",
36558
+ form: "single",
36559
+ optional: false
36560
+ }],
36561
+ "recording.getAvailability": [{
36562
+ name: "deviceId",
36563
+ form: "single",
36564
+ optional: false
36565
+ }],
36566
+ "recording.getDaysWithRecordings": [{
36567
+ name: "deviceId",
36568
+ form: "single",
36569
+ optional: false
36570
+ }],
36571
+ "recording.getDeviceConfig": [{
36572
+ name: "deviceId",
36573
+ form: "single",
36574
+ optional: false
36575
+ }],
36576
+ "recording.getPlaybackManifest": [{
36577
+ name: "deviceId",
36578
+ form: "single",
36579
+ optional: false
36580
+ }],
36581
+ "recording.listOpsLog": [{
36582
+ name: "deviceId",
36583
+ form: "single",
36584
+ optional: true
36585
+ }],
36586
+ "recording.locateSegment": [{
36587
+ name: "deviceId",
36588
+ form: "single",
36589
+ optional: false
36590
+ }],
36591
+ "recording.pruneFootage": [{
36592
+ name: "deviceId",
36593
+ form: "single",
36594
+ optional: false
36595
+ }],
36596
+ "recording.readGopBytes": [{
36597
+ name: "deviceId",
36598
+ form: "single",
36599
+ optional: false
36600
+ }],
36601
+ "recording.readSegmentBytes": [{
36602
+ name: "deviceId",
36603
+ form: "single",
36604
+ optional: false
36605
+ }],
36606
+ "recording.relocateFootage": [{
36607
+ name: "deviceId",
36608
+ form: "single",
36609
+ optional: true
36610
+ }],
36611
+ "recording.renderClip": [{
36612
+ name: "deviceId",
36613
+ form: "single",
36614
+ optional: false
36615
+ }],
36616
+ "recording.renderGif": [{
36617
+ name: "deviceId",
36618
+ form: "single",
36619
+ optional: false
36620
+ }],
36621
+ "recording.rescanStorage": [{
36622
+ name: "deviceId",
36623
+ form: "single",
36624
+ optional: false
36625
+ }],
36626
+ "recording.setDeviceConfig": [{
36627
+ name: "deviceId",
36628
+ form: "single",
36629
+ optional: false
36630
+ }],
36631
+ "recording.startStorageMigrationMove": [{
36632
+ name: "deviceId",
36633
+ form: "single",
36634
+ optional: true
36635
+ }],
36636
+ "recordingExport.createExport": [{
36637
+ name: "deviceId",
36638
+ form: "single",
36639
+ optional: false
36640
+ }],
36641
+ "recordingExport.listExports": [{
36642
+ name: "deviceId",
36643
+ form: "single",
36644
+ optional: true
36645
+ }],
36646
+ "sceneMonitor.captureReference": [{
36647
+ name: "deviceId",
36648
+ form: "single",
36649
+ optional: false
36650
+ }],
36651
+ "sceneMonitor.createScene": [{
36652
+ name: "deviceId",
36653
+ form: "single",
36654
+ optional: false
36655
+ }],
36656
+ "sceneMonitor.deleteReference": [{
36657
+ name: "deviceId",
36658
+ form: "single",
36659
+ optional: false
36660
+ }],
36661
+ "sceneMonitor.deleteScene": [{
36662
+ name: "deviceId",
36663
+ form: "single",
36664
+ optional: false
36665
+ }],
36666
+ "sceneMonitor.listScenes": [{
36667
+ name: "deviceId",
36668
+ form: "single",
36669
+ optional: false
36670
+ }],
36671
+ "sceneMonitor.recheckNow": [{
36672
+ name: "deviceId",
36673
+ form: "single",
36674
+ optional: false
36675
+ }],
36676
+ "sceneMonitor.resetScene": [{
36677
+ name: "deviceId",
36678
+ form: "single",
36679
+ optional: false
36680
+ }],
36681
+ "sceneMonitor.updateScene": [{
36682
+ name: "deviceId",
36683
+ form: "single",
36684
+ optional: false
36685
+ }],
36686
+ "scriptRunner.run": [{
36687
+ name: "deviceId",
36688
+ form: "single",
36689
+ optional: false
36690
+ }],
36691
+ "scriptRunner.stop": [{
36692
+ name: "deviceId",
36693
+ form: "single",
36694
+ optional: false
36695
+ }],
36696
+ "snapshot.getDebugState": [{
36697
+ name: "deviceId",
36698
+ form: "single",
36699
+ optional: false
36700
+ }],
36701
+ "snapshot.getSnapshot": [{
36702
+ name: "deviceId",
36703
+ form: "single",
36704
+ optional: false
36705
+ }],
36706
+ "snapshot.getSnapshotLinks": [{
36707
+ name: "targets",
36708
+ form: "object-array",
36709
+ optional: false,
36710
+ itemField: "deviceId"
36711
+ }],
36712
+ "snapshot.getSnapshotOverview": [{
36713
+ name: "deviceIds",
36714
+ form: "array",
36715
+ optional: false
36716
+ }],
36717
+ "snapshot.invalidateCache": [{
36718
+ name: "deviceId",
36719
+ form: "single",
36720
+ optional: false
36721
+ }],
36722
+ "streamBroker.acquireEgressTranscode": [{
36723
+ name: "deviceId",
36724
+ form: "single",
36725
+ optional: false
36726
+ }],
36727
+ "streamBroker.assignProfile": [{
36728
+ name: "deviceId",
36729
+ form: "single",
36730
+ optional: false
36731
+ }],
36732
+ "streamBroker.getDeviceAudioMute": [{
36733
+ name: "deviceId",
36734
+ form: "single",
36735
+ optional: false
36736
+ }],
36737
+ "streamBroker.getStreamWithCodec": [{
36738
+ name: "deviceId",
36739
+ form: "single",
36740
+ optional: false
36741
+ }],
36742
+ "streamBroker.produceEventMedia": [{
36743
+ name: "deviceId",
36744
+ form: "single",
36745
+ optional: false
36746
+ }],
36747
+ "streamBroker.publishCameraStream": [{
36748
+ name: "deviceId",
36749
+ form: "single",
36750
+ optional: false
36751
+ }],
36752
+ "streamBroker.renderPreBufferClip": [{
36753
+ name: "deviceId",
36754
+ form: "single",
36755
+ optional: false
36756
+ }],
36757
+ "streamBroker.restartProfile": [{
36758
+ name: "deviceId",
36759
+ form: "single",
36760
+ optional: false
36761
+ }],
36762
+ "streamBroker.retractCameraStream": [{
36763
+ name: "deviceId",
36764
+ form: "single",
36765
+ optional: false
36766
+ }],
36767
+ "streamBroker.setDeviceAudioMute": [{
36768
+ name: "deviceId",
36769
+ form: "single",
36770
+ optional: false
36771
+ }],
36772
+ "streamBroker.unassignProfile": [{
36773
+ name: "deviceId",
36774
+ form: "single",
36775
+ optional: false
36776
+ }],
36777
+ "streamCatalog.getCatalog": [{
36778
+ name: "deviceId",
36779
+ form: "single",
36780
+ optional: false
36781
+ }],
36782
+ "streamParams.getConfigSchema": [{
36783
+ name: "deviceId",
36784
+ form: "single",
36785
+ optional: false
36786
+ }],
36787
+ "streamParams.getOptions": [{
36788
+ name: "deviceId",
36789
+ form: "single",
36790
+ optional: false
36791
+ }],
36792
+ "streamParams.setProfile": [{
36793
+ name: "deviceId",
36794
+ form: "single",
36795
+ optional: false
36796
+ }],
36797
+ "switch.setState": [{
36798
+ name: "deviceId",
36799
+ form: "single",
36800
+ optional: false
36801
+ }],
36802
+ "vacuumControl.locate": [{
36803
+ name: "deviceId",
36804
+ form: "single",
36805
+ optional: false
36806
+ }],
36807
+ "vacuumControl.pause": [{
36808
+ name: "deviceId",
36809
+ form: "single",
36810
+ optional: false
36811
+ }],
36812
+ "vacuumControl.returnToBase": [{
36813
+ name: "deviceId",
36814
+ form: "single",
36815
+ optional: false
36816
+ }],
36817
+ "vacuumControl.setFanSpeed": [{
36818
+ name: "deviceId",
36819
+ form: "single",
36820
+ optional: false
36821
+ }],
36822
+ "vacuumControl.start": [{
36823
+ name: "deviceId",
36824
+ form: "single",
36825
+ optional: false
36826
+ }],
36827
+ "vacuumControl.stop": [{
36828
+ name: "deviceId",
36829
+ form: "single",
36830
+ optional: false
36831
+ }],
36832
+ "valve.close": [{
36833
+ name: "deviceId",
36834
+ form: "single",
36835
+ optional: false
36836
+ }],
36837
+ "valve.open": [{
36838
+ name: "deviceId",
36839
+ form: "single",
36840
+ optional: false
36841
+ }],
36842
+ "valve.setPosition": [{
36843
+ name: "deviceId",
36844
+ form: "single",
36845
+ optional: false
36846
+ }],
36847
+ "valve.stop": [{
36848
+ name: "deviceId",
36849
+ form: "single",
36850
+ optional: false
36851
+ }],
36852
+ "videoclips.getClipPlayback": [{
36853
+ name: "deviceId",
36854
+ form: "single",
36855
+ optional: false
36856
+ }],
36857
+ "videoclips.listClips": [{
36858
+ name: "deviceId",
36859
+ form: "single",
36860
+ optional: false
36861
+ }],
36862
+ "waterHeater.setAway": [{
36863
+ name: "deviceId",
36864
+ form: "single",
36865
+ optional: false
36866
+ }],
36867
+ "waterHeater.setOperationMode": [{
36868
+ name: "deviceId",
36869
+ form: "single",
36870
+ optional: false
36871
+ }],
36872
+ "waterHeater.setTargetTemp": [{
36873
+ name: "deviceId",
36874
+ form: "single",
36875
+ optional: false
36876
+ }],
36877
+ "webrtcSession.addIceCandidate": [{
36878
+ name: "deviceId",
36879
+ form: "single",
36880
+ optional: false
36881
+ }],
36882
+ "webrtcSession.closeSession": [{
36883
+ name: "deviceId",
36884
+ form: "single",
36885
+ optional: false
36886
+ }],
36887
+ "webrtcSession.createSession": [{
36888
+ name: "deviceId",
36889
+ form: "single",
36890
+ optional: false
36891
+ }],
36892
+ "webrtcSession.getIceCandidates": [{
36893
+ name: "deviceId",
36894
+ form: "single",
36895
+ optional: false
36896
+ }],
36897
+ "webrtcSession.getSessionState": [{
36898
+ name: "deviceId",
36899
+ form: "single",
36900
+ optional: false
36901
+ }],
36902
+ "webrtcSession.handleAnswer": [{
36903
+ name: "deviceId",
36904
+ form: "single",
36905
+ optional: false
36906
+ }],
36907
+ "webrtcSession.handleOffer": [{
36908
+ name: "deviceId",
36909
+ form: "single",
36910
+ optional: false
36911
+ }],
36912
+ "webrtcSession.hasAdaptiveBitrate": [{
36913
+ name: "deviceId",
36914
+ form: "single",
36915
+ optional: false
36916
+ }],
36917
+ "webrtcSession.listStreams": [{
36918
+ name: "deviceId",
36919
+ form: "single",
36920
+ optional: false
36921
+ }],
36922
+ "zoneAnalytics.getCameraHistory": [{
36923
+ name: "deviceId",
36924
+ form: "single",
36925
+ optional: false
36926
+ }],
36927
+ "zoneAnalytics.getCurrentSnapshot": [{
36928
+ name: "deviceId",
36929
+ form: "single",
36930
+ optional: false
36931
+ }],
36932
+ "zoneAnalytics.getUnzonedHistory": [{
36933
+ name: "deviceId",
36934
+ form: "single",
36935
+ optional: false
36936
+ }],
36937
+ "zoneAnalytics.getZoneHistory": [{
36938
+ name: "deviceId",
36939
+ form: "single",
36940
+ optional: false
36941
+ }],
36942
+ "zoneRules.listRules": [{
36943
+ name: "deviceId",
36944
+ form: "single",
36945
+ optional: false
36946
+ }],
36947
+ "zoneRules.setRules": [{
36948
+ name: "deviceId",
36949
+ form: "single",
36950
+ optional: false
36951
+ }],
36952
+ "zones.addZone": [{
36953
+ name: "deviceId",
36954
+ form: "single",
36955
+ optional: false
36956
+ }],
36957
+ "zones.listZones": [{
36958
+ name: "deviceId",
36959
+ form: "single",
36960
+ optional: false
36961
+ }],
36962
+ "zones.removeZone": [{
36963
+ name: "deviceId",
36964
+ form: "single",
36965
+ optional: false
36966
+ }],
36967
+ "zones.updateZone": [{
36968
+ name: "deviceId",
36969
+ form: "single",
36970
+ optional: false
36971
+ }]
36972
+ });
34219
36973
  Object.freeze({
34220
36974
  "broker": "broker",
34221
36975
  "device-export": "device-export",