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