@camstack/addon-provider-unraid 0.2.17 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2862 -143
  2. package/dist/addon.mjs +2862 -143
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region ../types/dist/event-category-Cv9dO26A.mjs
2
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -206,6 +206,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
206
206
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
207
207
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
208
208
  /**
209
+ * A node the orchestrator would otherwise place cameras on has NO usable
210
+ * inference device: the operator enabled one or more accelerators there and
211
+ * the live probe reports every one of them unavailable. Emitted once per
212
+ * TRANSITION into that state (never per dispatch), and the node is dropped
213
+ * from the placement candidate set for as long as it holds.
214
+ *
215
+ * This exists because the state was previously invisible: little-unraid
216
+ * absorbed 283k inference errors in a day while still being handed cameras,
217
+ * and nothing in the system said so.
218
+ *
219
+ * A node with no accelerators configured at all is NOT this — its devices
220
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
221
+ * serves it exactly as before.
222
+ */
223
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
224
+ /**
225
+ * A camera has an OPEN detection session and has produced no detection at
226
+ * all for longer than the blind threshold — the camera is being decoded and
227
+ * inferred and is returning nothing. Emitted once per transition into blind,
228
+ * per camera.
229
+ *
230
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
231
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
232
+ * camera" produce byte-identical silence.
233
+ */
234
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
235
+ /**
209
236
  * Per-camera pipeline config was mutated by the orchestrator
210
237
  * (3-level settings change via `setAgentAddonDefaults` /
211
238
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -10890,6 +10917,8 @@ var QueryFilterSchema = object({
10890
10917
  where: record(string(), unknown()).optional(),
10891
10918
  whereIn: record(string(), array(unknown())).optional(),
10892
10919
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10920
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10921
+ whereNot: record(string(), unknown()).optional(),
10893
10922
  orderBy: object({
10894
10923
  field: string(),
10895
10924
  direction: _enum(["asc", "desc"])
@@ -10909,7 +10938,8 @@ var QueryFilterSchema = object({
10909
10938
  var MutationFilterSchema = object({
10910
10939
  where: record(string(), unknown()).optional(),
10911
10940
  whereIn: record(string(), array(unknown())).optional(),
10912
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10941
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10942
+ whereNot: record(string(), unknown()).optional()
10913
10943
  });
10914
10944
  /** A single stored record: `{ id, data }`. */
10915
10945
  var SettingsRecordSchema = object({
@@ -12428,6 +12458,17 @@ var LlmImageSchema = object({
12428
12458
  bytes: _instanceof(Uint8Array),
12429
12459
  mimeType: string()
12430
12460
  });
12461
+ /**
12462
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12463
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12464
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12465
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12466
+ */
12467
+ var LlmRetryPolicySchema = object({
12468
+ enabled: boolean().default(false),
12469
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12470
+ maxAttempts: number().int().min(1).max(5).default(1)
12471
+ });
12431
12472
  var LlmGenerateBaseInputSchema = object({
12432
12473
  /** Collection routing (the notification-output posture). */
12433
12474
  addonId: string().optional(),
@@ -12442,7 +12483,28 @@ var LlmGenerateBaseInputSchema = object({
12442
12483
  jsonSchema: record(string(), unknown()).optional(),
12443
12484
  /** Per-call override of the profile default. */
12444
12485
  maxTokens: number().int().positive().optional(),
12445
- temperature: number().optional()
12486
+ temperature: number().optional(),
12487
+ /** Per-call override of the profile default (nucleus sampling). */
12488
+ topP: number().min(0).max(1).optional(),
12489
+ /** Per-call override of the profile default (top-k sampling). */
12490
+ topK: number().int().positive().optional(),
12491
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12492
+ timeoutMs: number().int().positive().optional(),
12493
+ /** Per-call override; beats both the consumer table and the profile. */
12494
+ retry: LlmRetryPolicySchema.optional(),
12495
+ /**
12496
+ * Caller-minted id that makes this generation CANCELLABLE.
12497
+ *
12498
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12499
+ * the call against 8 s and free their own slot when the timer wins, while the
12500
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12501
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12502
+ * not generations, and the real load is unbounded.
12503
+ *
12504
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12505
+ * `llm.cancel({ requestId })` tears the socket down.
12506
+ */
12507
+ requestId: string().optional()
12446
12508
  });
12447
12509
  /**
12448
12510
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12455,6 +12517,18 @@ var LlmGenerateBaseInputSchema = object({
12455
12517
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12456
12518
  * watchdog — operator decision #3).
12457
12519
  */
12520
+ /**
12521
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12522
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12523
+ * REF rather than looked up at install time, so what the operator approved in
12524
+ * the preview is exactly what the node downloads.
12525
+ */
12526
+ var ManagedModelExtraFileSchema = object({
12527
+ url: string(),
12528
+ filename: string(),
12529
+ sizeBytes: number(),
12530
+ sha256: string().optional()
12531
+ });
12458
12532
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12459
12533
  object({
12460
12534
  kind: literal("catalog"),
@@ -12463,7 +12537,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12463
12537
  object({
12464
12538
  kind: literal("url"),
12465
12539
  url: string(),
12466
- sha256: string().optional()
12540
+ sha256: string().optional(),
12541
+ /** Picker/status label; the file basename when absent. */
12542
+ label: string().optional(),
12543
+ sizeBytes: number().optional(),
12544
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12467
12545
  }),
12468
12546
  object({
12469
12547
  kind: literal("path"),
@@ -12481,13 +12559,82 @@ var ManagedRuntimeConfigSchema = object({
12481
12559
  gpuLayers: number().int().default(0),
12482
12560
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12483
12561
  threads: number().int().optional(),
12484
- /** Concurrent slots. */
12562
+ /** Concurrent slots (`--parallel`). */
12485
12563
  parallel: number().int().default(1),
12564
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12565
+ batchSize: number().int().positive().optional(),
12566
+ /** Physical batch / micro-batch (`-ub`). */
12567
+ ubatchSize: number().int().positive().optional(),
12568
+ /**
12569
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12570
+ * is a no-op elsewhere, so it is offered rather than assumed.
12571
+ */
12572
+ flashAttention: boolean().default(false),
12573
+ /**
12574
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12575
+ * inference. Costs the full model size in resident memory — which is exactly
12576
+ * what the RAM budget is counting.
12577
+ */
12578
+ mlock: boolean().default(false),
12579
+ /**
12580
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12581
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12582
+ * store produces on every first token.
12583
+ */
12584
+ noMmap: boolean().default(false),
12585
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12586
+ * cheapest way to fit a longer context in the same RAM. */
12587
+ cacheTypeK: _enum([
12588
+ "f32",
12589
+ "f16",
12590
+ "q8_0",
12591
+ "q5_1",
12592
+ "q5_0",
12593
+ "q4_1",
12594
+ "q4_0"
12595
+ ]).optional(),
12596
+ cacheTypeV: _enum([
12597
+ "f32",
12598
+ "f16",
12599
+ "q8_0",
12600
+ "q5_1",
12601
+ "q5_0",
12602
+ "q4_1",
12603
+ "q4_0"
12604
+ ]).optional(),
12605
+ /**
12606
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12607
+ * (which most vision chat templates need and some language-only models
12608
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12609
+ *
12610
+ * It is NOT a second place to set the flags above. A token that collides
12611
+ * with a typed field is REJECTED at start, naming the field that owns it
12612
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12613
+ * the "two switches that disagree" failure this repo has already shipped
12614
+ * twice (D62).
12615
+ */
12616
+ extraArgs: array(string()).default([]),
12486
12617
  /** Else lazy: first generate boots it. */
12487
12618
  autoStart: boolean().default(false),
12488
12619
  /** 0 = never; frees RAM after quiet periods. */
12489
12620
  idleStopMinutes: number().int().default(30)
12490
12621
  });
12622
+ /**
12623
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12624
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12625
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12626
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12627
+ */
12628
+ var LlmDownloadProgressSchema = object({
12629
+ phase: _enum(["downloading", "verifying"]),
12630
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12631
+ file: string(),
12632
+ fileIndex: number().int(),
12633
+ fileCount: number().int(),
12634
+ /** Across the WHOLE install, not the current file. */
12635
+ downloadedBytes: number(),
12636
+ totalBytes: number().optional()
12637
+ });
12491
12638
  var LlmRuntimeStatusSchema = object({
12492
12639
  /** Status is ALWAYS node-qualified. */
12493
12640
  nodeId: string(),
@@ -12504,6 +12651,8 @@ var LlmRuntimeStatusSchema = object({
12504
12651
  modelPath: string().optional(),
12505
12652
  modelId: string().optional(),
12506
12653
  downloadProgress: number().min(0).max(1).optional(),
12654
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12655
+ download: LlmDownloadProgressSchema.optional(),
12507
12656
  lastError: string().optional(),
12508
12657
  crashesInWindow: number(),
12509
12658
  /** Child RSS (sampled best-effort). */
@@ -12514,7 +12663,14 @@ var LlmNodeModelSchema = object({
12514
12663
  file: string(),
12515
12664
  sizeBytes: number(),
12516
12665
  catalogId: string().optional(),
12517
- installedAt: number().optional()
12666
+ installedAt: number().optional(),
12667
+ /**
12668
+ * Absolute path on the node. Present so a file that is on disk but matches
12669
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12670
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12671
+ * it the picker could list such a file and do nothing with it.
12672
+ */
12673
+ path: string().optional()
12518
12674
  });
12519
12675
  var LlmRuntimeDiskUsageSchema = object({
12520
12676
  nodeId: string(),
@@ -12570,10 +12726,47 @@ var LlmProfileSchema = object({
12570
12726
  baseUrl: string().optional(),
12571
12727
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12572
12728
  apiKey: string().optional(),
12729
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12730
+ * degraded to text — that shipped once and produced a confident answer to a
12731
+ * question about a picture nobody sent. */
12573
12732
  supportsVision: boolean(),
12574
12733
  temperature: number().min(0).max(2).optional(),
12734
+ /** Nucleus sampling. Every wire we speak has it. */
12735
+ topP: number().min(0).max(1).optional(),
12736
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12737
+ * wire does, and the client drops it there (measured: the request body gets
12738
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12739
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12740
+ topK: number().int().positive().optional(),
12575
12741
  maxTokens: number().int().positive().optional(),
12742
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12743
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12744
+ * the model with, so it is the one field that changes a PROCESS. */
12745
+ contextLength: number().int().positive().optional(),
12746
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12747
+ * two system prompts fighting is worse than either alone). */
12748
+ systemPrompt: string().optional(),
12749
+ /** Total generation bound — the only one a unary call has. */
12576
12750
  timeoutMs: number().int().positive().default(6e4),
12751
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12752
+ * response headers: on the LM Studio / llama-server wire those are written
12753
+ * once the model has finished loading, so they belong to the bound below. */
12754
+ connectTimeoutMs: number().int().positive().default(1e4),
12755
+ /** Accepted, but no output yet — response headers included, because a cold
12756
+ * GPU load is exactly what happens before them. */
12757
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12758
+ /** Output started then stopped. */
12759
+ idleTimeoutMs: number().int().positive().default(6e4),
12760
+ /** Profile-level default. The per-consumer table and a per-call override
12761
+ * both beat it — see `resolveRetryPolicy`. */
12762
+ retry: LlmRetryPolicySchema.default({
12763
+ enabled: false,
12764
+ maxAttempts: 1
12765
+ }),
12766
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12767
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12768
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12769
+ toolsEnabled: boolean().default(false),
12577
12770
  extraHeaders: record(string(), string()).optional(),
12578
12771
  /** kind === 'managed-local' only (spec §4). */
12579
12772
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12623,6 +12816,36 @@ var ManagedModelCatalogEntrySchema = object({
12623
12816
  /** Vision models: companion projector file. */
12624
12817
  mmprojUrl: string().optional()
12625
12818
  });
12819
+ /**
12820
+ * The outcome of turning one operator-typed Hugging Face reference into a
12821
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12822
+ * I will not pick for you" is a normal answer the UI has to render, not an
12823
+ * exception.
12824
+ *
12825
+ * `candidates` is the whole reason the refusal is usable — every string in it
12826
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12827
+ */
12828
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12829
+ ok: literal(true),
12830
+ /** Ready to hand to `installModel` unchanged. */
12831
+ model: ManagedModelRefSchema,
12832
+ label: string(),
12833
+ repo: string(),
12834
+ quantization: string(),
12835
+ purpose: _enum(["text", "vision"]),
12836
+ totalBytes: number(),
12837
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12838
+ * see that 0.9 GB of it is a projector they did not name. */
12839
+ extraFilenames: array(string())
12840
+ }), object({
12841
+ ok: literal(false),
12842
+ code: string(),
12843
+ message: string(),
12844
+ candidates: array(string()).optional(),
12845
+ /** Set when the refusal was only the ceiling: re-calling with
12846
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12847
+ requiredBytes: number().optional()
12848
+ })]);
12626
12849
  var LlmRuntimeNodeSchema = object({
12627
12850
  nodeId: string(),
12628
12851
  reachable: boolean(),
@@ -12635,7 +12858,10 @@ var ProfileRefInputSchema = object({
12635
12858
  addonId: string(),
12636
12859
  profileId: string()
12637
12860
  });
12638
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12861
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12862
+ addonId: string().optional(),
12863
+ requestId: string()
12864
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12639
12865
  kind: "mutation",
12640
12866
  auth: "admin"
12641
12867
  }), method(ProfileRefInputSchema, _void(), {
@@ -12656,6 +12882,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12656
12882
  consumer: string().optional(),
12657
12883
  profileId: string().optional()
12658
12884
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12885
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12886
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12887
+ ref: string(),
12888
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12889
+ maxBytes: number().positive().optional()
12890
+ }), HfModelResolutionSchema, {
12891
+ kind: "mutation",
12892
+ auth: "admin"
12893
+ }), method(object({
12659
12894
  nodeId: string(),
12660
12895
  model: ManagedModelRefSchema
12661
12896
  }), _void(), {
@@ -14303,6 +14538,8 @@ var NcSystemEventKindSchema = _enum([
14303
14538
  "stream-offline",
14304
14539
  "node-online",
14305
14540
  "node-offline",
14541
+ "node-inference-unavailable",
14542
+ "detection-blind",
14306
14543
  "addon-update-available",
14307
14544
  "server-update-available",
14308
14545
  "alarm-triggered",
@@ -14364,7 +14601,16 @@ var NcScheduleSchema = object({
14364
14601
  });
14365
14602
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14366
14603
  var NcPlateMatcherSchema = object({
14367
- values: array(string().min(1)).min(1),
14604
+ /**
14605
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14606
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14607
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14608
+ * rather than merely seen. A subject carrying no plate still fails.
14609
+ *
14610
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14611
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14612
+ */
14613
+ values: array(string().min(1)),
14368
14614
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14369
14615
  maxDistance: number().int().min(0).max(3).default(1)
14370
14616
  });
@@ -14398,28 +14644,36 @@ var NcOccupancyConditionSchema = object({
14398
14644
  /**
14399
14645
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14400
14646
  *
14401
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14402
- * reference notifier uses, so an operator moving between them re-uses what
14403
- * they already know): a rule matches when, over a sampling window of
14404
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14405
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14406
- *
14407
- * - `dbThreshold` its level is at or above this many dBFS (see
14408
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14409
- * - `labels` the classifier put at least one of these labels on it.
14410
- *
14411
- * Both are OPTIONAL and independent, which is the point of the shape: a
14412
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14413
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14414
- * is given** a window in which every sample is trivially a hit would fire on
14415
- * silence, so the engine refuses such a condition rather than notifying on
14416
- * nothing (the schema cannot express "at least one of" without becoming a
14417
- * ZodEffects the cap path would have to special-case).
14418
- *
14419
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14420
- * must be FULL before it can match a window that has been open for two
14421
- * seconds of its ten is 100% of nothing, and firing on it would make
14422
- * `samplingSeconds` decorative.
14647
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14648
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14649
+ * there is no second switch that can disagree with the first and every rule
14650
+ * authored before the decision migrates for free (`audioModeOf`):
14651
+ *
14652
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14653
+ * classifier labels with one of them. No window, no percentage:
14654
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14655
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14656
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14657
+ * reaches this condition if the classifier was already confident enough.
14658
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14659
+ * the condition: at least `hitPercent`% of the samples over
14660
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14661
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14662
+ * must be FULL before it can match a window open for two of its ten
14663
+ * seconds is 100% of nothing.
14664
+ *
14665
+ * **Why label mode has no window.** It had one, and it never fired: the
14666
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14667
+ * of them per episode, even through continuous crying. The measured maximum
14668
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14669
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14670
+ * the wrong question to ask of a sparse classifier.
14671
+ *
14672
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14673
+ * and the rule would fire on silence. The schema cannot express "exactly one
14674
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14675
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14676
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14423
14677
  *
14424
14678
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14425
14679
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14427,13 +14681,13 @@ var NcOccupancyConditionSchema = object({
14427
14681
  * an operator who typed `dog` mean the same thing.
14428
14682
  */
14429
14683
  var NcAudioConditionSchema = object({
14430
- /** Audio macro labels; absent = any sound (level-only rule). */
14684
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14431
14685
  labels: array(string().min(1)).min(1).optional(),
14432
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14686
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14433
14687
  dbThreshold: number().min(-96).max(0).optional(),
14434
- /** Percentage of the window's samples that must be hits (1–100). */
14688
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14435
14689
  hitPercent: number().int().min(1).max(100).default(60),
14436
- /** Length of the sampling window in seconds. */
14690
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14437
14691
  samplingSeconds: number().int().min(1).max(300).default(10)
14438
14692
  });
14439
14693
  /**
@@ -14571,13 +14825,81 @@ var NcRuleActionsSchema = object({
14571
14825
  */
14572
14826
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14573
14827
  });
14828
+ /**
14829
+ * "This rule applies only while `deviceId` is in one of `states`."
14830
+ *
14831
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14832
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14833
+ * make the condition lie about devices whose states have no equivalent.
14834
+ *
14835
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14836
+ * condition that fired on "I could not read it" would be worse than no gate.
14837
+ */
14838
+ var NcDeviceStateConditionSchema = object({
14839
+ deviceId: number().int(),
14840
+ /** Any of these matches. */
14841
+ states: array(string().min(1)).min(1)
14842
+ });
14843
+ /**
14844
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14845
+ *
14846
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14847
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14848
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14849
+ * already has a trigger ("tell me about a person at the front door, but only
14850
+ * while the bin is still out"). That is why it composes with every delivery
14851
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14852
+ * kind exist for it — see D159.
14853
+ *
14854
+ * ── Identity ───────────────────────────────────────────────────────────────
14855
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14856
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14857
+ * carried as a HINT for the editor and for the log line, never as part of the
14858
+ * lookup key: a rule whose hint drifted must still gate correctly.
14859
+ *
14860
+ * ── Which boolean ──────────────────────────────────────────────────────────
14861
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14862
+ * already declares which boolean drives notification rules, and a second knob
14863
+ * that could disagree with it is exactly the D62 failure. Set it only to
14864
+ * override one rule against the scene's own default.
14865
+ *
14866
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14867
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14868
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14869
+ * evidence, in either direction.
14870
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14871
+ * The latch is a durable fact about the past ("it has diverged since I armed
14872
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14873
+ * reason the operator asked for a latch.
14874
+ *
14875
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14876
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14877
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14878
+ * said out loud in the log rather than dropped in silence.
14879
+ */
14880
+ var NcSceneConditionSchema = object({
14881
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14882
+ sceneId: string().min(1),
14883
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14884
+ deviceId: number().int().optional(),
14885
+ /** The state the scene must be in for the rule to fire. */
14886
+ requiredState: _enum(["matched", "diverged"]),
14887
+ /**
14888
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14889
+ * scene's own `emit` field, which is the only place that decision belongs.
14890
+ */
14891
+ latched: boolean().optional()
14892
+ });
14574
14893
  var NcConditionsSchema = object({
14575
14894
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14576
- deviceState: object({
14577
- deviceId: number().int(),
14578
- /** Any of these matches. */
14579
- states: array(string().min(1)).min(1)
14580
- }).optional(),
14895
+ deviceState: NcDeviceStateConditionSchema.optional(),
14896
+ /**
14897
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14898
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14899
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14900
+ * {@link NcSceneCondition} and D159.
14901
+ */
14902
+ scene: NcSceneConditionSchema.optional(),
14581
14903
  /** Device scope — absent = all devices. */
14582
14904
  devices: array(number()).optional(),
14583
14905
  /** Detector class names (any overlap with the record's class set). */
@@ -14603,18 +14925,47 @@ var NcConditionsSchema = object({
14603
14925
  */
14604
14926
  labelEquals: array(string().min(1)).optional(),
14605
14927
  /**
14606
- * Identity matcher. P1 boundary: matched against the record's collapsed
14607
- * `label` (the identity display name propagated by the face pipeline) —
14608
- * identity-ID matching rides in P2 when identity ids reach the record.
14928
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14929
+ * is about recognised people at all.
14930
+ *
14931
+ * Three states, and the empty one is the point:
14932
+ *
14933
+ * | value | meaning |
14934
+ * | --- | --- |
14935
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14936
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14937
+ * | a list | only these identities |
14938
+ *
14939
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14940
+ * `devices` list is every device), applied one level down: the operator has
14941
+ * turned the face scope ON and narrowed it to nothing, which is every known
14942
+ * face. No second field states the same thing — a switch that can disagree
14943
+ * with the list under it is worse than no switch (D62).
14944
+ *
14945
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14946
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14947
+ * the operator fixed the spelling. The id reaches the record on
14948
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14949
+ * `{{label}}` renders.
14950
+ *
14951
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14952
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14953
+ * for is left as it stands and reported, never dropped. The engine also
14954
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14955
+ * migration could not resolve keeps matching exactly what it matched before.
14609
14956
  */
14610
14957
  identities: array(string().min(1)).optional(),
14611
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14958
+ /**
14959
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14960
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14961
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14962
+ */
14612
14963
  plates: NcPlateMatcherSchema.optional(),
14613
14964
  /**
14614
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14615
- * Same P1 boundary: matched against the record's collapsed `label` (the
14616
- * identity display name). A record with NO label passes (nothing to
14617
- * exclude), unlike the include variant which fails on an absent label.
14965
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14966
+ * the same id members and the same lazy name→id migration. A record with NO
14967
+ * identity passes (nothing to exclude), unlike the include variant which
14968
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14618
14969
  */
14619
14970
  identitiesExclude: array(string().min(1)).optional(),
14620
14971
  /**
@@ -15006,7 +15357,80 @@ var NcRuleInputSchema = object({
15006
15357
  * a rule that predates the gate must keep delivering byte-for-byte as it
15007
15358
  * did, and absent is the only way to say that without a migration.
15008
15359
  */
15009
- confirm: NcConfirmSchema.optional()
15360
+ confirm: NcConfirmSchema.optional(),
15361
+ /**
15362
+ * WAIT for face/plate recognition before saying anything.
15363
+ *
15364
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15365
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15366
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15367
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15368
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15369
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15370
+ *
15371
+ * Only two honest answers exist, and this flag picks between them. It has
15372
+ * effect ONLY on a rule that declares a recognition scope
15373
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15374
+ * other rule there is nothing to wait for and the flag is inert.
15375
+ *
15376
+ * | value | what happens |
15377
+ * | --- | --- |
15378
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15379
+ * | 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) |
15380
+ *
15381
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15382
+ * on the addon cap path, and absent has to keep meaning exactly what every
15383
+ * rule authored before this field meant.
15384
+ *
15385
+ * The cost of `true` is stated here because the editor states it too: a rule
15386
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15387
+ * tests every zone the track visited and a `crossing` condition can no longer
15388
+ * be satisfied, because a closed track carries no crossing.
15389
+ */
15390
+ waitForEnhancement: boolean().optional(),
15391
+ /**
15392
+ * GROUP a burst of subjects into ONE notification that grows.
15393
+ *
15394
+ * Seconds of quiet after the last matching subject before the burst is
15395
+ * considered over. While it is open, the first subject enqueues immediately —
15396
+ * **exactly as today, with no added latency** — and every real growth (a new
15397
+ * subject, or a name confirmed on one already in it) REPLACES that
15398
+ * notification with an updated one naming everybody. The push carries the
15399
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15400
+ *
15401
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15402
+ *
15403
+ * ### Why an idle cutoff and not a window
15404
+ *
15405
+ * The measured seven-person arrival on device 590 spans 110 s with every
15406
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15407
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15408
+ * 30 is Frigate's shipped value for the same decision.
15409
+ *
15410
+ * ### What it replaces
15411
+ *
15412
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15413
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15414
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15415
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15416
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15417
+ * budget over GROUPS — which is what it always meant — and a growth is never
15418
+ * throttled by the window its own first member spent.
15419
+ *
15420
+ * ### Interaction with {@link waitForEnhancement}
15421
+ *
15422
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15423
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15424
+ * CLOSE — already carrying its name — and grows as later members close. That
15425
+ * is later, and complete. With grouping alone the group opens on the first
15426
+ * object event and picks up names as they are confirmed, through the growth
15427
+ * path. Neither combination fires twice for one subject.
15428
+ *
15429
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15430
+ * on the addon cap path, so absent must keep meaning what it meant before this
15431
+ * field existed.
15432
+ */
15433
+ groupIdleSec: number().int().min(0).max(600).optional()
15010
15434
  });
15011
15435
  /**
15012
15436
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15113,6 +15537,7 @@ var NcConditionDescriptorSchema = object({
15113
15537
  "occupancy",
15114
15538
  "audio",
15115
15539
  "deviceState",
15540
+ "scene",
15116
15541
  "systemEvent"
15117
15542
  ]),
15118
15543
  operator: _enum([
@@ -15518,7 +15943,87 @@ var MethodAccessSchema = _enum([
15518
15943
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15519
15944
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15520
15945
  var CapScopeSchema = _enum(["device", "system"]);
15521
- var TokenScopeSchema = discriminatedUnion("type", [
15946
+ /**
15947
+ * DeviceSelector (scope model v3 — 2026-08-12).
15948
+ *
15949
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15950
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15951
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15952
+ * AFTER the grant was minted — no re-grant, no re-login.
15953
+ *
15954
+ * - `all` — every device in the deployment. The broad viewer/operator
15955
+ * lever without a `category` grant (a `category` grant also covers device
15956
+ * caps that carry no deviceId; `all` is specifically the device set).
15957
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15958
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15959
+ * is NOT covered until the grant is edited.
15960
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15961
+ * DYNAMIC. A device that changes type, or a new device of the type,
15962
+ * re-resolves on the next request.
15963
+ * - `locations` — every device whose operator-assigned `location` label is
15964
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15965
+ * null/unset location matches NO `locations` selector.
15966
+ */
15967
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15968
+ object({ kind: literal("all") }),
15969
+ object({
15970
+ kind: literal("ids"),
15971
+ ids: array(number().int()).min(1)
15972
+ }),
15973
+ object({
15974
+ kind: literal("types"),
15975
+ types: array(_enum(DeviceType)).min(1)
15976
+ }),
15977
+ object({
15978
+ kind: literal("locations"),
15979
+ locations: array(string().min(1)).min(1)
15980
+ })
15981
+ ]);
15982
+ var DeviceTokenScopeSchema = object({
15983
+ type: literal("device"),
15984
+ /** The device SET this grant covers — resolved against the live fleet. */
15985
+ selector: DeviceSelectorSchema,
15986
+ access: array(MethodAccessSchema).min(1),
15987
+ /**
15988
+ * Whether a grant on a PARENT device transparently covers its accessory
15989
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15990
+ * Direction is parent → children ONLY.
15991
+ *
15992
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15993
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15994
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15995
+ * operator must grant on the child, not inherit from the parent). Set it
15996
+ * explicitly to override that default per grant.
15997
+ */
15998
+ includeLinked: boolean().optional()
15999
+ });
16000
+ /**
16001
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16002
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16003
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16004
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16005
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16006
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16007
+ * migration cannot reach a JWT already in a client's hands; parse-time
16008
+ * migration covers both without a flag day. No cast — the raw object is read
16009
+ * through `Reflect.get` (its static type is `unknown`).
16010
+ */
16011
+ function migrateLegacyTokenScope(raw) {
16012
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16013
+ if (Reflect.get(raw, "type") !== "device") return raw;
16014
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16015
+ const targets = Reflect.get(raw, "targets");
16016
+ if (!Array.isArray(targets)) return raw;
16017
+ return {
16018
+ type: "device",
16019
+ selector: {
16020
+ kind: "ids",
16021
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16022
+ },
16023
+ access: Reflect.get(raw, "access")
16024
+ };
16025
+ }
16026
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15522
16027
  object({
15523
16028
  type: literal("category"),
15524
16029
  target: CapScopeSchema,
@@ -15534,18 +16039,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15534
16039
  target: string(),
15535
16040
  access: array(MethodAccessSchema).min(1)
15536
16041
  }),
15537
- object({
15538
- type: literal("device"),
15539
- /**
15540
- * One or more deviceIds (serialised as strings for wire-format
15541
- * consistency with the rest of the union). Matcher accepts if
15542
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15543
- * of one scope-per-device when granting access to a set of cameras.
15544
- */
15545
- targets: array(string()).min(1),
15546
- access: array(MethodAccessSchema).min(1)
15547
- })
15548
- ]);
16042
+ DeviceTokenScopeSchema
16043
+ ]));
15549
16044
  object({
15550
16045
  id: string(),
15551
16046
  username: string(),
@@ -15862,7 +16357,7 @@ var TrackEnvelopeSchema = object({
15862
16357
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15863
16358
  * keeps every scalar the list surfaces actually render (ids, class(es),
15864
16359
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15865
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16360
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15866
16361
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15867
16362
  * `getTrack`. Mirrors the event-store `projection` convention
15868
16363
  * (`getObjectEvents` et al.).
@@ -15998,7 +16493,21 @@ union([literal(1), literal(2)]);
15998
16493
  var LabelAttributionSchema = object({
15999
16494
  stepId: string(),
16000
16495
  modelId: string().optional(),
16001
- decidedAt: number()
16496
+ decidedAt: number(),
16497
+ /**
16498
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16499
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16500
+ *
16501
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16502
+ * notification rule authored on "Gianluca" stopped matching the moment the
16503
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16504
+ * the thing that does not move, so it is what a rule matches on
16505
+ * (`NcConditions.identities`) and the text is what a human is shown.
16506
+ *
16507
+ * Absent when the label names no gallery row — a plate the OCR read but no
16508
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16509
+ */
16510
+ identityId: string().optional()
16002
16511
  });
16003
16512
  /**
16004
16513
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16135,6 +16644,28 @@ var TrackSchema = object({
16135
16644
  * `=== true` and render nothing otherwise, never infer "no face".
16136
16645
  */
16137
16646
  hasFace: boolean().optional(),
16647
+ /**
16648
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16649
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16650
+ * so the passage is tracked once and as a VEHICLE.
16651
+ *
16652
+ * It exists because the fold's record was dishonest. D34 and the code both
16653
+ * said "the person is not lost — it is reported so both entities stay on the
16654
+ * record"; in fact the pair went into a per-processor RAM field behind an
16655
+ * accessor nobody called, and every durable surface said `vehicle`, full
16656
+ * stop. This is the composition note that makes the row true.
16657
+ *
16658
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16659
+ * person" is not an answer to "what is this" — both label tiers would refuse
16660
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16661
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16662
+ * and a `person` rule still does not fire for someone cycling past.
16663
+ *
16664
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16665
+ * the column, and every hub that predates the field, omits it. Test
16666
+ * `=== true` and render nothing otherwise — never infer "no rider".
16667
+ */
16668
+ hasRider: boolean().optional(),
16138
16669
  ...TrackFlagFields,
16139
16670
  ...TrackRetrainFields
16140
16671
  });
@@ -16484,7 +17015,10 @@ var RecentTracksQueryInput = object({
16484
17015
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16485
17016
  cursor: string().optional(),
16486
17017
  /** See {@link TrackProjectionSchema}. Default `full`. */
16487
- projection: TrackProjectionSchema.optional()
17018
+ projection: TrackProjectionSchema.optional(),
17019
+ /** Include stationary-promoted rows (parked objects). Default false: the
17020
+ * feed lists passages; parking records live on the stationary registry. */
17021
+ includeStationary: boolean().optional()
16488
17022
  });
16489
17023
  var RecentTracksPageSchema = object({
16490
17024
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16702,7 +17236,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16702
17236
  zone: TrackZoneFilterSchema.optional(),
16703
17237
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16704
17238
  * compatible — omitting the field keeps today's exact behaviour). */
16705
- projection: TrackProjectionSchema.optional()
17239
+ projection: TrackProjectionSchema.optional(),
17240
+ /** Include stationary-promoted rows (parked objects handed to the
17241
+ * stationary registry). Default false: the timeline lists passages,
17242
+ * not parking records (operator decision, 2026-08-15). */
17243
+ includeStationary: boolean().optional()
16706
17244
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16707
17245
  kind: "mutation",
16708
17246
  auth: "admin"
@@ -16866,11 +17404,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16866
17404
  auth: "admin"
16867
17405
  }), method(object({
16868
17406
  eventId: string(),
16869
- kind: MediaFileKindEnum.optional()
17407
+ kind: MediaFileKindEnum.optional(),
17408
+ deviceId: number()
17409
+ }), array(MediaFileSchema).readonly()), method(object({
17410
+ trackId: string(),
17411
+ kinds: array(MediaFileKindEnum).optional(),
17412
+ deviceId: number()
16870
17413
  }), array(MediaFileSchema).readonly()), method(object({
16871
17414
  trackId: string(),
16872
- kinds: array(MediaFileKindEnum).optional()
16873
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17415
+ deviceId: number()
17416
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16874
17417
  kind: "mutation",
16875
17418
  auth: "admin"
16876
17419
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17570,6 +18113,17 @@ var maxSessionHoldMsField = {
17570
18113
  default: 12e4,
17571
18114
  step: 5e3
17572
18115
  };
18116
+ /**
18117
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18118
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18119
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18120
+ */
18121
+ var audioMotionWindowMsField = {
18122
+ min: 5e3,
18123
+ max: 6e5,
18124
+ default: 9e4,
18125
+ step: 5e3
18126
+ };
17573
18127
  var motionFpsField = {
17574
18128
  min: 1,
17575
18129
  max: 30,
@@ -17601,7 +18155,7 @@ var detectionFpsField = {
17601
18155
  var occupancyRecheckSecField = {
17602
18156
  min: 0,
17603
18157
  max: 300,
17604
- default: 30,
18158
+ default: 300,
17605
18159
  step: 5
17606
18160
  };
17607
18161
  var occupancyRecheckFramesField = {
@@ -17746,6 +18300,27 @@ var RunnerCameraConfigSchema = object({
17746
18300
  * resolved `CameraDetectionConfig`.
17747
18301
  */
17748
18302
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18303
+ /**
18304
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18305
+ * 'on-motion'` audio window, measured from the LAST motion event.
18306
+ *
18307
+ * This exists because the falling edge cannot be relied on. Camera-native
18308
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18309
+ * its email-push SMTP path both emit `detected: true` and never the
18310
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18311
+ * onboard-only camera a window that closed only on `detected: false` never
18312
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18313
+ * battery camera, the one failure mode the mode exists to prevent.
18314
+ *
18315
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18316
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18317
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18318
+ *
18319
+ * Not consumed by the runner: carried here so it shares the per-camera
18320
+ * device-settings surface with `motionCooldownMs`, exactly like
18321
+ * `maxSessionHoldMs`.
18322
+ */
18323
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17749
18324
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17750
18325
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17751
18326
  motionStreamId: string(),
@@ -17841,7 +18416,7 @@ var RunnerCameraConfigSchema = object({
17841
18416
  */
17842
18417
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17843
18418
  });
17844
- 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;
18419
+ 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;
17845
18420
  /**
17846
18421
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17847
18422
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18857,7 +19432,16 @@ targets: array(object({
18857
19432
  /** A sleeping battery camera: the frame is deliberately stale and will
18858
19433
  * NOT refresh in the background. A surface should say so rather than
18859
19434
  * present it as current. */
18860
- sleeping: boolean()
19435
+ sleeping: boolean(),
19436
+ /** Current device state rendered over the cached frame. State images
19437
+ * remain authoritative even when their photographic background is
19438
+ * old; null means the link must carry a current camera frame. */
19439
+ stateReason: _enum([
19440
+ "disabled",
19441
+ "sleeping",
19442
+ "unreachable",
19443
+ "waking"
19444
+ ]).nullable()
18861
19445
  })));
18862
19446
  /**
18863
19447
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20511,6 +21095,25 @@ var BatteryStatusSchema = object({
20511
21095
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20512
21096
  lastUpdated: number(),
20513
21097
  /**
21098
+ * Ms epoch of the last time the device PROVED it was reachable — a
21099
+ * completed firmware round-trip, an observed wake, or an inbound push
21100
+ * (firmware event, email). `0`/absent = never since this slice was born.
21101
+ *
21102
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21103
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21104
+ * for the radio, because a poll that confirms reachability is the same
21105
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21106
+ * single derivation every consumer must use; no surface computes its own.
21107
+ *
21108
+ * It is deliberately NOT a clock in the
21109
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21110
+ * observation itself, and it is the only thing a 30-hour silence is
21111
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21112
+ * Reolink provider) so a value that means "recently" cannot cost a
21113
+ * SQLite commit per round-trip.
21114
+ */
21115
+ lastContactAt: number().optional(),
21116
+ /**
20514
21117
  * True when the source is a BINARY low-battery indicator (HA
20515
21118
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20516
21119
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22792,54 +23395,139 @@ var TalkAudioCodecSchema = _enum([
22792
23395
  "g711ulaw",
22793
23396
  "g711alaw"
22794
23397
  ]);
22795
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22796
- sessionId: string(),
22797
- sdpOffer: string()
22798
- }), {
22799
- kind: "mutation",
22800
- auth: "admin"
22801
- }), method(object({
22802
- deviceId: number(),
22803
- sessionId: string(),
22804
- sdpAnswer: string()
22805
- }), _void(), {
22806
- kind: "mutation",
22807
- auth: "admin"
22808
- }), method(object({
22809
- deviceId: number(),
22810
- sessionId: string()
22811
- }), _void(), {
22812
- kind: "mutation",
22813
- auth: "admin"
22814
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22815
- kind: "mutation",
22816
- auth: "admin"
22817
- }), method(object({
22818
- deviceId: number(),
22819
- /** Audio bytes for ONE frame, base64-encoded so the payload
22820
- * survives tRPC JSON serialization. */
22821
- audioBase64: string(),
22822
- /** Wire codec of the payload. Omit to let the provider default
22823
- * to its native expected format (s16le @ provider-native rate,
22824
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22825
- codec: TalkAudioCodecSchema.optional(),
22826
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22827
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22828
- sampleRate: number().int().positive().optional(),
22829
- /** Channel count. Default 1. */
22830
- channels: number().int().positive().optional(),
22831
- /** Sequence number for ordering / dropping out-of-order frames. */
22832
- sequenceNumber: number().int()
22833
- }), object({ accepted: boolean() }), {
22834
- kind: "mutation",
22835
- auth: "admin"
22836
- }), method(object({ deviceId: number() }), _void(), {
22837
- kind: "mutation",
22838
- auth: "admin"
22839
- }), object({
22840
- deviceId: number(),
22841
- status: IntercomStatusSchema
22842
- });
23398
+ var intercomCapability = {
23399
+ name: "intercom",
23400
+ scope: "device",
23401
+ deviceNative: true,
23402
+ mode: "singleton",
23403
+ deviceTypes: [DeviceType.Camera],
23404
+ methods: {
23405
+ /**
23406
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23407
+ * offer with a single sendonly audio m-line the client answers
23408
+ * (client → server direction). The server wakes battery cams
23409
+ * transparently before opening the upstream talk channel.
23410
+ */
23411
+ startSession: method(object({ deviceId: number() }), object({
23412
+ sessionId: string(),
23413
+ sdpOffer: string()
23414
+ }), {
23415
+ kind: "mutation",
23416
+ auth: "admin"
23417
+ }),
23418
+ handleAnswer: method(object({
23419
+ deviceId: number(),
23420
+ sessionId: string(),
23421
+ sdpAnswer: string()
23422
+ }), _void(), {
23423
+ kind: "mutation",
23424
+ auth: "admin"
23425
+ }),
23426
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23427
+ stopSession: method(object({
23428
+ deviceId: number(),
23429
+ sessionId: string()
23430
+ }), _void(), {
23431
+ kind: "mutation",
23432
+ auth: "admin"
23433
+ }),
23434
+ /**
23435
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23436
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23437
+ * harnesses) that already have decoded PCM frames and just need a
23438
+ * direct path onto the camera's talk channel. Mutually exclusive
23439
+ * with `startSession` (an active WebRTC session must be stopped
23440
+ * before a raw-PCM session can be opened on the same device, and
23441
+ * vice versa).
23442
+ */
23443
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23444
+ kind: "mutation",
23445
+ auth: "admin"
23446
+ }),
23447
+ /**
23448
+ * Push one chunk of talk-back audio onto the active talk session.
23449
+ * The cap is codec-agnostic: the caller declares (or omits) the
23450
+ * wire format via `codec`; the provider decides between passthrough
23451
+ * (when the wire codec matches the camera's native talk channel),
23452
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23453
+ *
23454
+ * Callers do NOT need to know the camera's wire format or sample
23455
+ * rate — that information lives entirely inside the provider.
23456
+ *
23457
+ * Sequence numbers MUST be monotonic per talk session; older frames
23458
+ * arriving after newer ones are dropped to avoid smearing the
23459
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23460
+ * predictor would corrupt with re-ordering).
23461
+ */
23462
+ pushTalkAudio: method(object({
23463
+ deviceId: number(),
23464
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23465
+ * survives tRPC JSON serialization. */
23466
+ audioBase64: string(),
23467
+ /** Wire codec of the payload. Omit to let the provider default
23468
+ * to its native expected format (s16le @ provider-native rate,
23469
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23470
+ codec: TalkAudioCodecSchema.optional(),
23471
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23472
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23473
+ sampleRate: number().int().positive().optional(),
23474
+ /** Channel count. Default 1. */
23475
+ channels: number().int().positive().optional(),
23476
+ /** Sequence number for ordering / dropping out-of-order frames. */
23477
+ sequenceNumber: number().int()
23478
+ }), object({ accepted: boolean() }), {
23479
+ kind: "mutation",
23480
+ auth: "admin"
23481
+ }),
23482
+ /** Close the raw-PCM talk session. Idempotent. */
23483
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23484
+ kind: "mutation",
23485
+ auth: "admin"
23486
+ })
23487
+ },
23488
+ events: { onStatusChanged: { data: object({
23489
+ deviceId: number(),
23490
+ status: IntercomStatusSchema
23491
+ }) } },
23492
+ status: {
23493
+ schema: IntercomStatusSchema,
23494
+ kind: "command-driven"
23495
+ },
23496
+ /**
23497
+ * Runtime-state slice — mirrored by the kernel.
23498
+ *
23499
+ * The cap declared `status` and nothing else, so the only two sources an
23500
+ * exporter has for a value — the `device.state-changed` slice event and the
23501
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23502
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23503
+ * have been published and never received a value, which is the defect the
23504
+ * export's two classification tables exist to prevent (177 of them, once), so
23505
+ * `intercom` was excluded rather than exported.
23506
+ *
23507
+ * The shape is the status shape: there is exactly one truth about talk-back
23508
+ * and duplicating it into a second schema is how two halves of one capability
23509
+ * come to disagree. Providers write it through
23510
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23511
+ * and close a session, and seed it at registration so the slice exists before
23512
+ * the first session rather than after it.
23513
+ *
23514
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23515
+ * session handle, so a session torn down by a transport death that never
23516
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23517
+ * session or the next restart. That is why the slice is `session` and not
23518
+ * `restored` — a restart must never restore "talking".
23519
+ */
23520
+ runtimeState: IntercomStatusSchema,
23521
+ /**
23522
+ * Runtime-state durability: **session** — `talking` describes a live audio
23523
+ * session, which by definition does not survive the process that held it.
23524
+ * Restoring it would publish a camera as talking to nobody.
23525
+ *
23526
+ * See `RuntimeStateDurability`. Enforced by
23527
+ * `scripts/check-runtime-state-durability.ts`.
23528
+ */
23529
+ durability: "session"
23530
+ };
22843
23531
  /**
22844
23532
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22845
23533
  * with a mowing lifecycle plus a dock action.
@@ -25536,7 +26224,7 @@ method(object({
25536
26224
  toMs: number()
25537
26225
  }), RecordingAvailabilitySchema, {
25538
26226
  kind: "query",
25539
- auth: "admin"
26227
+ auth: "protected"
25540
26228
  }), method(object({
25541
26229
  deviceId: number(),
25542
26230
  fromMs: number(),
@@ -25544,14 +26232,14 @@ method(object({
25544
26232
  tzOffsetMinutes: number()
25545
26233
  }), RecordingDaysSchema, {
25546
26234
  kind: "query",
25547
- auth: "admin"
26235
+ auth: "protected"
25548
26236
  }), method(object({
25549
26237
  deviceId: number(),
25550
26238
  fromMs: number(),
25551
26239
  toMs: number()
25552
26240
  }), RecordingManifestSchema, {
25553
26241
  kind: "query",
25554
- auth: "admin"
26242
+ auth: "protected"
25555
26243
  }), method(object({}), RecordingStorageUsageSchema, {
25556
26244
  kind: "query",
25557
26245
  auth: "admin"
@@ -25841,14 +26529,77 @@ method(object({
25841
26529
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25842
26530
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25843
26531
  *
25844
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25845
- * derives the device-detail contribution; the provider carries NO hand-written
25846
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25847
- * every hysteresis flip / availability change; consumers never poll.
25848
- */
25849
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25850
- * be added without a wire break (matching falls back to any-condition refs). */
26532
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26533
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26534
+ * for the thing: a scene is a standing question about the property ("is the bin
26535
+ * still out"), and the operator's question is "which of my scenes have tripped",
26536
+ * across every camera at once — not "what does camera 617 think". Buried one
26537
+ * camera deep it also could not be found. The surface is now a top-level admin
26538
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26539
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26540
+ *
26541
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26542
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26543
+ * directions, so a registration nobody declares fails exactly as loudly as a
26544
+ * declaration nobody registers. The editor is imported directly by the page.
26545
+ *
26546
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26547
+ * availability change; consumers never poll.
26548
+ */
26549
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26550
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26551
+ * Open by design so more can be added without a wire break.
26552
+ *
26553
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26554
+ * not comparable, so "I have never seen this scene in this light" is reported
26555
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26556
+ * collapses the cosine and would latch a false alarm every single night. */
25851
26557
  var SceneConditionSchema = string();
26558
+ /**
26559
+ * What a scene does when the CURRENT light has no reference of its own.
26560
+ *
26561
+ * The lighting variants are not equally likely to exist. Almost every operator
26562
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26563
+ * scene that is only ever going to be asked about a daytime question ("is the
26564
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26565
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26566
+ * working without it rather than degrading into a permanent complaint.
26567
+ *
26568
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26569
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26570
+ * last covered light left it at, the latch is untouched, and the hysteresis
26571
+ * run is neither spent nor cleared. The scene resumes by itself at first
26572
+ * light. This is the only behaviour under which "I never captured IR" is a
26573
+ * configuration choice instead of a nightly fault.
26574
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26575
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26576
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26577
+ * cross-condition cosines are not comparable, so a day reference against a
26578
+ * true IR frame collapses and the scene reports a theft at 21:40.
26579
+ *
26580
+ * Never applies when the scene has NO comparable reference at all — that is
26581
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26582
+ * there would hide a scene the operator never finished setting up.
26583
+ */
26584
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26585
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26586
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26587
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26588
+ * and never counts toward hysteresis in either direction. */
26589
+ var SceneVerdictSchema = _enum([
26590
+ "matched",
26591
+ "diverged",
26592
+ "unknown"
26593
+ ]);
26594
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26595
+ * silence that reads as "nothing has happened". */
26596
+ var SceneUnavailableSchema = _enum([
26597
+ "no-reference-for-condition",
26598
+ "view-shifted",
26599
+ "no-vision-profile",
26600
+ "encoder-model-changed",
26601
+ "no-snapshot"
26602
+ ]);
25852
26603
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25853
26604
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25854
26605
  var SceneReferenceSchema = object({
@@ -25856,7 +26607,14 @@ var SceneReferenceSchema = object({
25856
26607
  modelId: string(),
25857
26608
  condition: SceneConditionSchema,
25858
26609
  capturedAt: number(),
25859
- thumbnailMediaId: string().optional()
26610
+ thumbnailMediaId: string().optional(),
26611
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26612
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26613
+ * normalized rect frame a different piece of world, and the scene would
26614
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26615
+ * when hysteresis is about to flip — one extra encode per candidate
26616
+ * transition, not per poll. */
26617
+ anchorEmbedding: array(number()).optional()
25860
26618
  });
25861
26619
  var SceneMonitorStateSchema = object({
25862
26620
  id: string(),
@@ -25878,6 +26636,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
25878
26636
  profileId: string().optional(),
25879
26637
  hysteresisCount: number().int().positive()
25880
26638
  })]);
26639
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26640
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26641
+ * out in silence rather than reporting a fault every night. */
26642
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26643
+ /**
26644
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26645
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26646
+ *
26647
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26648
+ * fail-open: a notification suppressed is the worse error there, but a vision
26649
+ * model that timed out has not told us the bin is gone, and a latch is a
26650
+ * stateful claim that costs the operator a trip to reset.
26651
+ */
26652
+ var SceneConfirmSchema = object({
26653
+ enabled: boolean().default(false),
26654
+ prompt: string().min(1).max(1e3),
26655
+ profileId: string().optional(),
26656
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26657
+ maxImagePx: number().int().min(64).max(2048).default(448),
26658
+ /** What a timeout / unavailable model means for the PENDING flip. */
26659
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26660
+ });
25881
26661
  var SceneMonitorSchema = object({
25882
26662
  id: string(),
25883
26663
  label: string(),
@@ -25896,7 +26676,56 @@ var SceneMonitorSchema = object({
25896
26676
  lastConfidence: number().nullable(),
25897
26677
  currentCondition: SceneConditionSchema.nullable(),
25898
26678
  availability: _enum(["ok", "unavailable"]),
25899
- unavailableReason: string().nullable()
26679
+ unavailableReason: string().nullable(),
26680
+ /** Which state is "the initial screen". `null` until the first capture. */
26681
+ baselineStateId: string().nullable(),
26682
+ /** Which boolean drives notification rules and any export. */
26683
+ emit: _enum(["latched", "live"]).default("latched"),
26684
+ /** Live: does the region match the baseline RIGHT NOW. */
26685
+ verdict: SceneVerdictSchema,
26686
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26687
+ latched: boolean(),
26688
+ /** Last reset (or creation). */
26689
+ armedAt: number(),
26690
+ divergedAt: number().nullable(),
26691
+ restoredAt: number().nullable(),
26692
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26693
+ * during the window DISCARDS the observation — a car pulling up in front of
26694
+ * the bin must not be able to spend hysteresis credit. */
26695
+ quietSeconds: number().int().min(0).max(3600).default(60),
26696
+ /** An observation only advances the pending count when it is at least this
26697
+ * far from the previously counted one, so N agreeing checks span real time
26698
+ * rather than N adjacent polls inside one occlusion. */
26699
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26700
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26701
+ confirm: SceneConfirmSchema.optional(),
26702
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26703
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26704
+ /** Clear the latch on its own when the scene matches again? Default false —
26705
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26706
+ * automation can react to the bin coming back without the operator's own
26707
+ * alarm silently clearing itself. */
26708
+ autoRestore: boolean().default(false),
26709
+ /** What to do when the current light has no reference of its own. See
26710
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26711
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26712
+ /**
26713
+ * The light whose checks are currently being SAT OUT under
26714
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26715
+ *
26716
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26717
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26718
+ * nothing captured in this light"* in the same calm voice as the coverage
26719
+ * line, because the alternative is a scene that silently stops answering
26720
+ * after sunset with nothing anywhere saying why. A skipped check must never
26721
+ * read as a broken one.
26722
+ */
26723
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26724
+ /** Named cause when `verdict === 'unknown'`. */
26725
+ unavailable: SceneUnavailableSchema.nullable(),
26726
+ /** Conditions that have at least one comparable reference — the coverage line
26727
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26728
+ coveredConditions: array(SceneConditionSchema)
25900
26729
  });
25901
26730
  var SceneMonitorStatusSchema = object({
25902
26731
  monitors: array(SceneMonitorSchema),
@@ -25909,12 +26738,6 @@ var sceneMonitorCapability = {
25909
26738
  kind: "wrapper",
25910
26739
  defaultActive: true,
25911
26740
  deviceTypes: [DeviceType.Camera],
25912
- deviceConfig: { ui: {
25913
- kind: "widget",
25914
- widgetId: "host/scene-monitor-editor",
25915
- tab: "scenes",
25916
- label: "Scenes"
25917
- } },
25918
26741
  methods: {
25919
26742
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
25920
26743
  createScene: method(object({
@@ -25945,7 +26768,15 @@ var sceneMonitorCapability = {
25945
26768
  "both"
25946
26769
  ]).optional(),
25947
26770
  checkIntervalSec: number().optional(),
25948
- check: SceneCheckSchema.optional()
26771
+ check: SceneCheckSchema.optional(),
26772
+ emit: _enum(["latched", "live"]).optional(),
26773
+ quietSeconds: number().int().min(0).max(3600).optional(),
26774
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26775
+ anchorThreshold: number().min(0).max(1).optional(),
26776
+ autoRestore: boolean().optional(),
26777
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26778
+ /** `null` clears the vision-model adjudicator. */
26779
+ confirm: SceneConfirmSchema.nullable().optional()
25949
26780
  })
25950
26781
  }), _void(), {
25951
26782
  kind: "mutation",
@@ -25986,6 +26817,26 @@ var sceneMonitorCapability = {
25986
26817
  }), _void(), {
25987
26818
  kind: "mutation",
25988
26819
  auth: "admin"
26820
+ }),
26821
+ /**
26822
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26823
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26824
+ * "reset" in the operator's head means *this is the new normal*, and
26825
+ * re-capture is what makes the feature self-healing against slow drift
26826
+ * instead of failing silently weeks later.
26827
+ *
26828
+ * Reachable from three surfaces on this one mutation: the scene card, a
26829
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
26830
+ * no new Notification-Center code at all), and tRPC for scripts.
26831
+ */
26832
+ resetScene: method(object({
26833
+ deviceId: number(),
26834
+ monitorId: string(),
26835
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
26836
+ recapture: boolean().optional()
26837
+ }), _void(), {
26838
+ kind: "mutation",
26839
+ auth: "admin"
25989
26840
  })
25990
26841
  },
25991
26842
  status: {
@@ -26222,7 +27073,70 @@ var CamStreamDescriptorSchema = object({
26222
27073
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
26223
27074
  metadata: record(string(), unknown()).optional()
26224
27075
  });
26225
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
27076
+ /**
27077
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
27078
+ * of the removed `publishCameraStream` push: a camera provider returns the full
27079
+ * set of stream descriptors it can offer for the device, synchronously, so the
27080
+ * broker can reconcile its registry against the authoritative provider state.
27081
+ */
27082
+ /**
27083
+ * The catalog as a DURABLE fact rather than a live answer.
27084
+ *
27085
+ * A battery camera's descriptors are profile-stable — they change when the
27086
+ * operator rewrites an encoder profile, not minute to minute — but building
27087
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27088
+ * provider is allowed to build them exactly once per profile and must serve
27089
+ * every later pull from a cache.
27090
+ *
27091
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27092
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27093
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27094
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27095
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27096
+ * which on a battery cam is most of the day. The camera was fine. The stream
27097
+ * was unreachable because the process had forgotten what the camera offers.
27098
+ *
27099
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27100
+ * declared collection, with the same `restored` durability `battery` uses for
27101
+ * the same reason: the last known value is the only value there is while the
27102
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27103
+ * is the DIAL that wakes a camera, never the catalog (D173).
27104
+ */
27105
+ var StreamCatalogStateSchema = object({
27106
+ /** The descriptors as last built from a real camera response. Never a guess:
27107
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27108
+ * one the camera itself once produced. */
27109
+ descriptors: array(CamStreamDescriptorSchema),
27110
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27111
+ * path decide whether the camera's own awake window is worth spending on a
27112
+ * re-read. */
27113
+ lastFetchedAt: number()
27114
+ });
27115
+ var streamCatalogCapability = {
27116
+ name: "stream-catalog",
27117
+ scope: "device",
27118
+ deviceNative: true,
27119
+ mode: "singleton",
27120
+ deviceTypes: [DeviceType.Camera],
27121
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27122
+ runtimeState: StreamCatalogStateSchema,
27123
+ /**
27124
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27125
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27126
+ * camera that cannot be watched at all until it happens to wake.
27127
+ *
27128
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27129
+ * build, and a build only runs when there is no cached copy (or the copy is
27130
+ * a day old and the camera is awake anyway).
27131
+ *
27132
+ * See `RuntimeStateDurability`. Enforced by
27133
+ * `scripts/check-runtime-state-durability.ts`.
27134
+ */
27135
+ durability: "restored",
27136
+ /** Clock field: written, but excluded from the compare that decides whether
27137
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27138
+ volatileStateFields: ["lastFetchedAt"]
27139
+ };
26226
27140
  /** One of the camera's stream profiles. */
26227
27141
  var StreamProfileSchema = _enum([
26228
27142
  "main",
@@ -26476,12 +27390,64 @@ var NetworkAddressSchema = object({
26476
27390
  family: string(),
26477
27391
  internal: boolean()
26478
27392
  });
27393
+ /**
27394
+ * Provenance of the site coordinates, and the whole reason this is not just two
27395
+ * numbers.
27396
+ *
27397
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27398
+ * nothing overwrites it.
27399
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27400
+ * default that is right to a few kilometres beats the coarse UTC clock split
27401
+ * the sun-times consumers otherwise fall back to.
27402
+ *
27403
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27404
+ * own input will eventually trust the guess.
27405
+ */
27406
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27407
+ /**
27408
+ * The read shape: the location plus the honest state of the one-shot derivation.
27409
+ *
27410
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27411
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27412
+ * failed; the hub will NOT try again on its own — the fallback is declared
27413
+ * (consumers degrade to their own last resort) and the operator either types the
27414
+ * coordinates or presses detect.
27415
+ */
27416
+ var SiteLocationStatusSchema = object({
27417
+ location: object({
27418
+ /** WGS84 decimal degrees. */
27419
+ latitude: number().min(-90).max(90),
27420
+ longitude: number().min(-180).max(180),
27421
+ source: SiteLocationSourceSchema,
27422
+ /** Epoch ms the value was last written. */
27423
+ updatedAt: number(),
27424
+ /**
27425
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27426
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27427
+ */
27428
+ label: string().optional()
27429
+ }).nullable(),
27430
+ derivationAttemptedAt: number().nullable(),
27431
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27432
+ derivationError: string().nullable()
27433
+ });
27434
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27435
+ var SetSiteLocationInputSchema = object({
27436
+ latitude: number().min(-90).max(90),
27437
+ longitude: number().min(-180).max(180)
27438
+ }).nullable();
26479
27439
  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(), {
26480
27440
  kind: "mutation",
26481
27441
  auth: "admin"
26482
27442
  }), method(_void(), _void(), {
26483
27443
  kind: "mutation",
26484
27444
  auth: "admin"
27445
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27446
+ kind: "mutation",
27447
+ auth: "admin"
27448
+ }), method(_void(), SiteLocationStatusSchema, {
27449
+ kind: "mutation",
27450
+ auth: "admin"
26485
27451
  });
26486
27452
  /**
26487
27453
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27801,6 +28767,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27801
28767
  humiditySensor: humiditySensorCapability,
27802
28768
  image: imageCapability,
27803
28769
  imageSettings: imageSettingsCapability,
28770
+ intercom: intercomCapability,
27804
28771
  lawnMowerControl: lawnMowerControlCapability,
27805
28772
  lockControl: lockControlCapability,
27806
28773
  mediaPlayer: mediaPlayerCapability,
@@ -27819,6 +28786,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27819
28786
  sceneMonitor: sceneMonitorCapability,
27820
28787
  scriptRunner: scriptRunnerCapability,
27821
28788
  smoke: smokeCapability,
28789
+ streamCatalog: streamCatalogCapability,
27822
28790
  streamParams: streamParamsCapability,
27823
28791
  switch: switchCapability,
27824
28792
  tamper: tamperCapability,
@@ -28472,6 +29440,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28472
29440
  labels: ["probe not implemented"]
28473
29441
  };
28474
29442
  }
29443
+ /**
29444
+ * Top-level devices restored at once in {@link onRestoreDevices}.
29445
+ *
29446
+ * Four covers the fleets this ships to without turning a boot into a burst a
29447
+ * camera NVR answers with a refusal. A provider whose upstream is a single
29448
+ * session with a serial command channel (a Baichuan hub, an NVR that
29449
+ * serialises ISAPI) should lower it; nothing needs to raise it.
29450
+ */
29451
+ restoreConcurrency = 4;
28475
29452
  async restoreDevices(savedDevices) {
28476
29453
  await this.onRestoreDevices(savedDevices);
28477
29454
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -28503,15 +29480,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28503
29480
  */
28504
29481
  async onRestoreDevices(savedDevices) {
28505
29482
  const restored = /* @__PURE__ */ new Set();
28506
- for (const saved of savedDevices) {
28507
- if (saved.parentDeviceId !== null) continue;
29483
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
29484
+ const restoreOne = async (saved) => {
28508
29485
  const Class = this.deviceClasses[saved.type];
28509
29486
  if (!Class) {
28510
29487
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
28511
29488
  tags: { stableId: saved.stableId },
28512
29489
  meta: { type: saved.type }
28513
29490
  });
28514
- continue;
29491
+ return;
28515
29492
  }
28516
29493
  try {
28517
29494
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -28525,7 +29502,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28525
29502
  }
28526
29503
  });
28527
29504
  }
28528
- }
29505
+ };
29506
+ let nextTopLevel = 0;
29507
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
29508
+ for (;;) {
29509
+ const saved = topLevel[nextTopLevel++];
29510
+ if (saved === void 0) return;
29511
+ await restoreOne(saved);
29512
+ }
29513
+ }));
28529
29514
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
28530
29515
  for (const saved of childRows) {
28531
29516
  const Class = this.deviceClasses[saved.type];
@@ -30616,6 +31601,12 @@ Object.freeze({
30616
31601
  addonId: null,
30617
31602
  access: "create"
30618
31603
  },
31604
+ "llm.cancel": {
31605
+ capName: "llm",
31606
+ capScope: "system",
31607
+ addonId: null,
31608
+ access: "create"
31609
+ },
30619
31610
  "llm.deleteModel": {
30620
31611
  capName: "llm",
30621
31612
  capScope: "system",
@@ -30700,6 +31691,12 @@ Object.freeze({
30700
31691
  addonId: null,
30701
31692
  access: "view"
30702
31693
  },
31694
+ "llm.resolveModelRef": {
31695
+ capName: "llm",
31696
+ capScope: "system",
31697
+ addonId: null,
31698
+ access: "create"
31699
+ },
30703
31700
  "llm.setDefault": {
30704
31701
  capName: "llm",
30705
31702
  capScope: "system",
@@ -32866,6 +33863,12 @@ Object.freeze({
32866
33863
  addonId: null,
32867
33864
  access: "create"
32868
33865
  },
33866
+ "sceneMonitor.resetScene": {
33867
+ capName: "scene-monitor",
33868
+ capScope: "device",
33869
+ addonId: null,
33870
+ access: "delete"
33871
+ },
32869
33872
  "sceneMonitor.updateScene": {
32870
33873
  capName: "scene-monitor",
32871
33874
  capScope: "device",
@@ -33544,6 +34547,12 @@ Object.freeze({
33544
34547
  addonId: null,
33545
34548
  access: "create"
33546
34549
  },
34550
+ "system.detectSiteLocation": {
34551
+ capName: "system",
34552
+ capScope: "system",
34553
+ addonId: null,
34554
+ access: "create"
34555
+ },
33547
34556
  "system.featureFlags": {
33548
34557
  capName: "system",
33549
34558
  capScope: "system",
@@ -33562,6 +34571,12 @@ Object.freeze({
33562
34571
  addonId: null,
33563
34572
  access: "view"
33564
34573
  },
34574
+ "system.getSiteLocation": {
34575
+ capName: "system",
34576
+ capScope: "system",
34577
+ addonId: null,
34578
+ access: "view"
34579
+ },
33565
34580
  "system.health": {
33566
34581
  capName: "system",
33567
34582
  capScope: "system",
@@ -33586,6 +34601,12 @@ Object.freeze({
33586
34601
  addonId: null,
33587
34602
  access: "create"
33588
34603
  },
34604
+ "system.setSiteLocation": {
34605
+ capName: "system",
34606
+ capScope: "system",
34607
+ addonId: null,
34608
+ access: "create"
34609
+ },
33589
34610
  "terminalSession.adoptLegacyMonitor": {
33590
34611
  capName: "terminal-session",
33591
34612
  capScope: "system",
@@ -34157,6 +35178,1704 @@ Object.freeze({
34157
35178
  access: "create"
34158
35179
  }
34159
35180
  });
35181
+ Object.freeze({
35182
+ "accessories.setChildHidden": [{
35183
+ name: "childDeviceId",
35184
+ form: "single",
35185
+ optional: false
35186
+ }, {
35187
+ name: "deviceId",
35188
+ form: "single",
35189
+ optional: false
35190
+ }],
35191
+ "addonSettings.getDeviceSettings": [{
35192
+ name: "deviceId",
35193
+ form: "single",
35194
+ optional: false
35195
+ }],
35196
+ "addonSettings.updateDeviceSettings": [{
35197
+ name: "deviceId",
35198
+ form: "single",
35199
+ optional: false
35200
+ }],
35201
+ "alarmPanel.arm": [{
35202
+ name: "deviceId",
35203
+ form: "single",
35204
+ optional: false
35205
+ }],
35206
+ "alarmPanel.disarm": [{
35207
+ name: "deviceId",
35208
+ form: "single",
35209
+ optional: false
35210
+ }],
35211
+ "alarmPanel.trigger": [{
35212
+ name: "deviceId",
35213
+ form: "single",
35214
+ optional: false
35215
+ }],
35216
+ "audioAnalysis.resolveDeviceSettings": [{
35217
+ name: "deviceId",
35218
+ form: "single",
35219
+ optional: false
35220
+ }],
35221
+ "audioAnalyzer.classify": [{
35222
+ name: "deviceId",
35223
+ form: "single",
35224
+ optional: true
35225
+ }],
35226
+ "audioMetrics.getCurrentSnapshot": [{
35227
+ name: "deviceId",
35228
+ form: "single",
35229
+ optional: false
35230
+ }],
35231
+ "audioMetrics.getHistory": [{
35232
+ name: "deviceId",
35233
+ form: "single",
35234
+ optional: false
35235
+ }],
35236
+ "automationControl.disable": [{
35237
+ name: "deviceId",
35238
+ form: "single",
35239
+ optional: false
35240
+ }],
35241
+ "automationControl.enable": [{
35242
+ name: "deviceId",
35243
+ form: "single",
35244
+ optional: false
35245
+ }],
35246
+ "automationControl.trigger": [{
35247
+ name: "deviceId",
35248
+ form: "single",
35249
+ optional: false
35250
+ }],
35251
+ "battery.wakeForStream": [{
35252
+ name: "deviceId",
35253
+ form: "single",
35254
+ optional: false
35255
+ }],
35256
+ "brightness.setBrightness": [{
35257
+ name: "deviceId",
35258
+ form: "single",
35259
+ optional: false
35260
+ }],
35261
+ "button.press": [{
35262
+ name: "deviceId",
35263
+ form: "single",
35264
+ optional: false
35265
+ }],
35266
+ "cameraCredentials.getCredentials": [{
35267
+ name: "deviceId",
35268
+ form: "single",
35269
+ optional: false
35270
+ }],
35271
+ "cameraStreams.getBrokerStreams": [{
35272
+ name: "deviceId",
35273
+ form: "single",
35274
+ optional: false
35275
+ }],
35276
+ "cameraStreams.getCameraStreams": [{
35277
+ name: "deviceId",
35278
+ form: "single",
35279
+ optional: false
35280
+ }],
35281
+ "cameraStreams.getProfileRtspEntries": [{
35282
+ name: "deviceId",
35283
+ form: "single",
35284
+ optional: false
35285
+ }],
35286
+ "cameraStreams.getRtspEntries": [{
35287
+ name: "deviceId",
35288
+ form: "single",
35289
+ optional: false
35290
+ }],
35291
+ "cameraStreams.pickStream": [{
35292
+ name: "deviceId",
35293
+ form: "single",
35294
+ optional: false
35295
+ }],
35296
+ "climateControl.setFanMode": [{
35297
+ name: "deviceId",
35298
+ form: "single",
35299
+ optional: false
35300
+ }],
35301
+ "climateControl.setMode": [{
35302
+ name: "deviceId",
35303
+ form: "single",
35304
+ optional: false
35305
+ }],
35306
+ "climateControl.setPreset": [{
35307
+ name: "deviceId",
35308
+ form: "single",
35309
+ optional: false
35310
+ }],
35311
+ "climateControl.setSwingHorizontal": [{
35312
+ name: "deviceId",
35313
+ form: "single",
35314
+ optional: false
35315
+ }],
35316
+ "climateControl.setSwingVertical": [{
35317
+ name: "deviceId",
35318
+ form: "single",
35319
+ optional: false
35320
+ }],
35321
+ "climateControl.setTarget": [{
35322
+ name: "deviceId",
35323
+ form: "single",
35324
+ optional: false
35325
+ }],
35326
+ "climateControl.setTargetHumidity": [{
35327
+ name: "deviceId",
35328
+ form: "single",
35329
+ optional: false
35330
+ }],
35331
+ "climateControl.setTargetRange": [{
35332
+ name: "deviceId",
35333
+ form: "single",
35334
+ optional: false
35335
+ }],
35336
+ "color.setColor": [{
35337
+ name: "deviceId",
35338
+ form: "single",
35339
+ optional: false
35340
+ }],
35341
+ "consumables.reset": [{
35342
+ name: "deviceId",
35343
+ form: "single",
35344
+ optional: false
35345
+ }],
35346
+ "control.setValue": [{
35347
+ name: "deviceId",
35348
+ form: "single",
35349
+ optional: false
35350
+ }],
35351
+ "cover.close": [{
35352
+ name: "deviceId",
35353
+ form: "single",
35354
+ optional: false
35355
+ }],
35356
+ "cover.open": [{
35357
+ name: "deviceId",
35358
+ form: "single",
35359
+ optional: false
35360
+ }],
35361
+ "cover.setPosition": [{
35362
+ name: "deviceId",
35363
+ form: "single",
35364
+ optional: false
35365
+ }],
35366
+ "cover.setTiltPosition": [{
35367
+ name: "deviceId",
35368
+ form: "single",
35369
+ optional: false
35370
+ }],
35371
+ "cover.stop": [{
35372
+ name: "deviceId",
35373
+ form: "single",
35374
+ optional: false
35375
+ }],
35376
+ "dayNight.getOptions": [{
35377
+ name: "deviceId",
35378
+ form: "single",
35379
+ optional: false
35380
+ }],
35381
+ "dayNight.setSettings": [{
35382
+ name: "deviceId",
35383
+ form: "single",
35384
+ optional: false
35385
+ }],
35386
+ "decoder.createSession": [{
35387
+ name: "deviceId",
35388
+ form: "single",
35389
+ optional: true
35390
+ }],
35391
+ "deviceAdoption.release": [{
35392
+ name: "camDeviceId",
35393
+ form: "single",
35394
+ optional: false
35395
+ }],
35396
+ "deviceAdoption.resync": [{
35397
+ name: "camDeviceId",
35398
+ form: "single",
35399
+ optional: false
35400
+ }],
35401
+ "deviceDiscovery.adoptDevice": [{
35402
+ name: "deviceId",
35403
+ form: "single",
35404
+ optional: false
35405
+ }],
35406
+ "deviceDiscovery.listDiscovered": [{
35407
+ name: "deviceId",
35408
+ form: "single",
35409
+ optional: false
35410
+ }],
35411
+ "deviceDiscovery.refreshDiscovery": [{
35412
+ name: "deviceId",
35413
+ form: "single",
35414
+ optional: false
35415
+ }],
35416
+ "deviceDiscovery.releaseDevice": [{
35417
+ name: "childDeviceId",
35418
+ form: "single",
35419
+ optional: false
35420
+ }, {
35421
+ name: "deviceId",
35422
+ form: "single",
35423
+ optional: false
35424
+ }],
35425
+ "deviceManager.adoptionRelease": [{
35426
+ name: "camDeviceId",
35427
+ form: "single",
35428
+ optional: false
35429
+ }],
35430
+ "deviceManager.adoptionResync": [{
35431
+ name: "camDeviceId",
35432
+ form: "single",
35433
+ optional: false
35434
+ }],
35435
+ "deviceManager.applyInitialMeta": [{
35436
+ name: "deviceId",
35437
+ form: "single",
35438
+ optional: false
35439
+ }, {
35440
+ name: "linkDeviceId",
35441
+ form: "single",
35442
+ optional: true
35443
+ }],
35444
+ "deviceManager.disable": [{
35445
+ name: "deviceId",
35446
+ form: "single",
35447
+ optional: false
35448
+ }],
35449
+ "deviceManager.enable": [{
35450
+ name: "deviceId",
35451
+ form: "single",
35452
+ optional: false
35453
+ }],
35454
+ "deviceManager.getBindings": [{
35455
+ name: "deviceId",
35456
+ form: "single",
35457
+ optional: false
35458
+ }],
35459
+ "deviceManager.getChildren": [{
35460
+ name: "parentDeviceId",
35461
+ form: "single",
35462
+ optional: false
35463
+ }],
35464
+ "deviceManager.getConfigSchema": [{
35465
+ name: "deviceId",
35466
+ form: "single",
35467
+ optional: false
35468
+ }],
35469
+ "deviceManager.getDevice": [{
35470
+ name: "deviceId",
35471
+ form: "single",
35472
+ optional: false
35473
+ }],
35474
+ "deviceManager.getDeviceAggregate": [{
35475
+ name: "deviceId",
35476
+ form: "single",
35477
+ optional: false
35478
+ }],
35479
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35480
+ name: "deviceId",
35481
+ form: "single",
35482
+ optional: false
35483
+ }],
35484
+ "deviceManager.getDeviceSettingsAggregate": [{
35485
+ name: "deviceId",
35486
+ form: "single",
35487
+ optional: false
35488
+ }],
35489
+ "deviceManager.getDeviceStatusAggregate": [{
35490
+ name: "deviceId",
35491
+ form: "single",
35492
+ optional: false
35493
+ }],
35494
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35495
+ name: "deviceIds",
35496
+ form: "array",
35497
+ optional: false
35498
+ }],
35499
+ "deviceManager.getLinkedDevices": [{
35500
+ name: "deviceId",
35501
+ form: "single",
35502
+ optional: false
35503
+ }],
35504
+ "deviceManager.getSettingsSchema": [{
35505
+ name: "deviceId",
35506
+ form: "single",
35507
+ optional: false
35508
+ }],
35509
+ "deviceManager.getStreamProfileMap": [{
35510
+ name: "deviceId",
35511
+ form: "single",
35512
+ optional: false
35513
+ }],
35514
+ "deviceManager.getStreamSources": [{
35515
+ name: "deviceId",
35516
+ form: "single",
35517
+ optional: false
35518
+ }],
35519
+ "deviceManager.getWireableFields": [{
35520
+ name: "deviceId",
35521
+ form: "single",
35522
+ optional: false
35523
+ }],
35524
+ "deviceManager.loadConfig": [{
35525
+ name: "deviceId",
35526
+ form: "single",
35527
+ optional: false
35528
+ }],
35529
+ "deviceManager.loadMeta": [{
35530
+ name: "deviceId",
35531
+ form: "single",
35532
+ optional: false
35533
+ }],
35534
+ "deviceManager.loadRuntimeState": [{
35535
+ name: "deviceId",
35536
+ form: "single",
35537
+ optional: false
35538
+ }],
35539
+ "deviceManager.persistConfig": [{
35540
+ name: "deviceId",
35541
+ form: "single",
35542
+ optional: false
35543
+ }],
35544
+ "deviceManager.probeStreams": [{
35545
+ name: "deviceId",
35546
+ form: "single",
35547
+ optional: false
35548
+ }],
35549
+ "deviceManager.registerDevice": [{
35550
+ name: "parentDeviceId",
35551
+ form: "single",
35552
+ optional: true
35553
+ }],
35554
+ "deviceManager.remove": [{
35555
+ name: "deviceId",
35556
+ form: "single",
35557
+ optional: false
35558
+ }],
35559
+ "deviceManager.removeDevice": [{
35560
+ name: "deviceId",
35561
+ form: "single",
35562
+ optional: false
35563
+ }],
35564
+ "deviceManager.runDeviceAction": [{
35565
+ name: "deviceId",
35566
+ form: "single",
35567
+ optional: false
35568
+ }],
35569
+ "deviceManager.setChildLayout": [{
35570
+ name: "deviceId",
35571
+ form: "single",
35572
+ optional: false
35573
+ }],
35574
+ "deviceManager.setDisabled": [{
35575
+ name: "deviceId",
35576
+ form: "single",
35577
+ optional: false
35578
+ }],
35579
+ "deviceManager.setDisplay": [{
35580
+ name: "deviceId",
35581
+ form: "single",
35582
+ optional: false
35583
+ }],
35584
+ "deviceManager.setIntegrationId": [{
35585
+ name: "deviceId",
35586
+ form: "single",
35587
+ optional: false
35588
+ }],
35589
+ "deviceManager.setLinkDeviceId": [{
35590
+ name: "deviceId",
35591
+ form: "single",
35592
+ optional: false
35593
+ }, {
35594
+ name: "linkDeviceId",
35595
+ form: "single",
35596
+ optional: true
35597
+ }],
35598
+ "deviceManager.setLocation": [{
35599
+ name: "deviceId",
35600
+ form: "single",
35601
+ optional: false
35602
+ }],
35603
+ "deviceManager.setMetadata": [{
35604
+ name: "deviceId",
35605
+ form: "single",
35606
+ optional: false
35607
+ }],
35608
+ "deviceManager.setName": [{
35609
+ name: "deviceId",
35610
+ form: "single",
35611
+ optional: false
35612
+ }],
35613
+ "deviceManager.setPrimaryChildEntityId": [{
35614
+ name: "deviceId",
35615
+ form: "single",
35616
+ optional: false
35617
+ }],
35618
+ "deviceManager.setRole": [{
35619
+ name: "deviceId",
35620
+ form: "single",
35621
+ optional: false
35622
+ }],
35623
+ "deviceManager.setStreamProfileMap": [{
35624
+ name: "deviceId",
35625
+ form: "single",
35626
+ optional: false
35627
+ }],
35628
+ "deviceManager.setType": [{
35629
+ name: "deviceId",
35630
+ form: "single",
35631
+ optional: false
35632
+ }],
35633
+ "deviceManager.setWrapperActive": [{
35634
+ name: "deviceId",
35635
+ form: "single",
35636
+ optional: false
35637
+ }],
35638
+ "deviceManager.testField": [{
35639
+ name: "deviceId",
35640
+ form: "single",
35641
+ optional: false
35642
+ }],
35643
+ "deviceManager.updateConfig": [{
35644
+ name: "deviceId",
35645
+ form: "single",
35646
+ optional: false
35647
+ }],
35648
+ "deviceManager.updateDeviceField": [{
35649
+ name: "deviceId",
35650
+ form: "single",
35651
+ optional: false
35652
+ }],
35653
+ "deviceManager.updateDeviceFieldsBatch": [{
35654
+ name: "deviceId",
35655
+ form: "single",
35656
+ optional: false
35657
+ }],
35658
+ "deviceOps.getConfigEntries": [{
35659
+ name: "deviceId",
35660
+ form: "single",
35661
+ optional: false
35662
+ }],
35663
+ "deviceOps.getRawState": [{
35664
+ name: "deviceId",
35665
+ form: "single",
35666
+ optional: false
35667
+ }],
35668
+ "deviceOps.getSettingsSchema": [{
35669
+ name: "deviceId",
35670
+ form: "single",
35671
+ optional: false
35672
+ }],
35673
+ "deviceOps.getStreamSources": [{
35674
+ name: "deviceId",
35675
+ form: "single",
35676
+ optional: false
35677
+ }],
35678
+ "deviceOps.removeDevice": [{
35679
+ name: "deviceId",
35680
+ form: "single",
35681
+ optional: false
35682
+ }],
35683
+ "deviceOps.runAction": [{
35684
+ name: "deviceId",
35685
+ form: "single",
35686
+ optional: false
35687
+ }],
35688
+ "deviceOps.setConfig": [{
35689
+ name: "deviceId",
35690
+ form: "single",
35691
+ optional: false
35692
+ }],
35693
+ "deviceState.getCapSlice": [{
35694
+ name: "deviceId",
35695
+ form: "single",
35696
+ optional: false
35697
+ }],
35698
+ "deviceState.getSnapshot": [{
35699
+ name: "deviceId",
35700
+ form: "single",
35701
+ optional: false
35702
+ }],
35703
+ "deviceState.setCapSlice": [{
35704
+ name: "deviceId",
35705
+ form: "single",
35706
+ optional: false
35707
+ }],
35708
+ "events.getEventClipUrl": [{
35709
+ name: "deviceId",
35710
+ form: "single",
35711
+ optional: false
35712
+ }],
35713
+ "events.getEvents": [{
35714
+ name: "deviceId",
35715
+ form: "single",
35716
+ optional: false
35717
+ }],
35718
+ "events.getEventThumbnail": [{
35719
+ name: "deviceId",
35720
+ form: "single",
35721
+ optional: false
35722
+ }],
35723
+ "faceGallery.getFaceByTrack": [{
35724
+ name: "deviceId",
35725
+ form: "single",
35726
+ optional: false
35727
+ }],
35728
+ "faceGallery.listRecentFaces": [{
35729
+ name: "deviceId",
35730
+ form: "single",
35731
+ optional: true
35732
+ }],
35733
+ "fanControl.setDirection": [{
35734
+ name: "deviceId",
35735
+ form: "single",
35736
+ optional: false
35737
+ }],
35738
+ "fanControl.setOscillating": [{
35739
+ name: "deviceId",
35740
+ form: "single",
35741
+ optional: false
35742
+ }],
35743
+ "fanControl.setPercentage": [{
35744
+ name: "deviceId",
35745
+ form: "single",
35746
+ optional: false
35747
+ }],
35748
+ "fanControl.setPreset": [{
35749
+ name: "deviceId",
35750
+ form: "single",
35751
+ optional: false
35752
+ }],
35753
+ "humidifier.setMode": [{
35754
+ name: "deviceId",
35755
+ form: "single",
35756
+ optional: false
35757
+ }],
35758
+ "humidifier.setOn": [{
35759
+ name: "deviceId",
35760
+ form: "single",
35761
+ optional: false
35762
+ }],
35763
+ "humidifier.setTargetHumidity": [{
35764
+ name: "deviceId",
35765
+ form: "single",
35766
+ optional: false
35767
+ }],
35768
+ "imageSettings.getOptions": [{
35769
+ name: "deviceId",
35770
+ form: "single",
35771
+ optional: false
35772
+ }],
35773
+ "imageSettings.setSettings": [{
35774
+ name: "deviceId",
35775
+ form: "single",
35776
+ optional: false
35777
+ }],
35778
+ "intercom.endTalkSession": [{
35779
+ name: "deviceId",
35780
+ form: "single",
35781
+ optional: false
35782
+ }],
35783
+ "intercom.handleAnswer": [{
35784
+ name: "deviceId",
35785
+ form: "single",
35786
+ optional: false
35787
+ }],
35788
+ "intercom.pushTalkAudio": [{
35789
+ name: "deviceId",
35790
+ form: "single",
35791
+ optional: false
35792
+ }],
35793
+ "intercom.startSession": [{
35794
+ name: "deviceId",
35795
+ form: "single",
35796
+ optional: false
35797
+ }],
35798
+ "intercom.startTalkSession": [{
35799
+ name: "deviceId",
35800
+ form: "single",
35801
+ optional: false
35802
+ }],
35803
+ "intercom.stopSession": [{
35804
+ name: "deviceId",
35805
+ form: "single",
35806
+ optional: false
35807
+ }],
35808
+ "lawnMowerControl.dock": [{
35809
+ name: "deviceId",
35810
+ form: "single",
35811
+ optional: false
35812
+ }],
35813
+ "lawnMowerControl.pause": [{
35814
+ name: "deviceId",
35815
+ form: "single",
35816
+ optional: false
35817
+ }],
35818
+ "lawnMowerControl.startMowing": [{
35819
+ name: "deviceId",
35820
+ form: "single",
35821
+ optional: false
35822
+ }],
35823
+ "lockControl.lock": [{
35824
+ name: "deviceId",
35825
+ form: "single",
35826
+ optional: false
35827
+ }],
35828
+ "lockControl.open": [{
35829
+ name: "deviceId",
35830
+ form: "single",
35831
+ optional: false
35832
+ }],
35833
+ "lockControl.unlock": [{
35834
+ name: "deviceId",
35835
+ form: "single",
35836
+ optional: false
35837
+ }],
35838
+ "mediaPlayer.next": [{
35839
+ name: "deviceId",
35840
+ form: "single",
35841
+ optional: false
35842
+ }],
35843
+ "mediaPlayer.pause": [{
35844
+ name: "deviceId",
35845
+ form: "single",
35846
+ optional: false
35847
+ }],
35848
+ "mediaPlayer.play": [{
35849
+ name: "deviceId",
35850
+ form: "single",
35851
+ optional: false
35852
+ }],
35853
+ "mediaPlayer.playMedia": [{
35854
+ name: "deviceId",
35855
+ form: "single",
35856
+ optional: false
35857
+ }],
35858
+ "mediaPlayer.previous": [{
35859
+ name: "deviceId",
35860
+ form: "single",
35861
+ optional: false
35862
+ }],
35863
+ "mediaPlayer.seek": [{
35864
+ name: "deviceId",
35865
+ form: "single",
35866
+ optional: false
35867
+ }],
35868
+ "mediaPlayer.selectSource": [{
35869
+ name: "deviceId",
35870
+ form: "single",
35871
+ optional: false
35872
+ }],
35873
+ "mediaPlayer.setMute": [{
35874
+ name: "deviceId",
35875
+ form: "single",
35876
+ optional: false
35877
+ }],
35878
+ "mediaPlayer.setRepeat": [{
35879
+ name: "deviceId",
35880
+ form: "single",
35881
+ optional: false
35882
+ }],
35883
+ "mediaPlayer.setShuffle": [{
35884
+ name: "deviceId",
35885
+ form: "single",
35886
+ optional: false
35887
+ }],
35888
+ "mediaPlayer.setVolume": [{
35889
+ name: "deviceId",
35890
+ form: "single",
35891
+ optional: false
35892
+ }],
35893
+ "mediaPlayer.stop": [{
35894
+ name: "deviceId",
35895
+ form: "single",
35896
+ optional: false
35897
+ }],
35898
+ "motion.isDetected": [{
35899
+ name: "deviceId",
35900
+ form: "single",
35901
+ optional: false
35902
+ }],
35903
+ "motionDetection.analyze": [{
35904
+ name: "deviceId",
35905
+ form: "single",
35906
+ optional: false
35907
+ }],
35908
+ "motionDetection.removeCamera": [{
35909
+ name: "deviceId",
35910
+ form: "single",
35911
+ optional: false
35912
+ }],
35913
+ "motionTrigger.setMotionTrigger": [{
35914
+ name: "deviceId",
35915
+ form: "single",
35916
+ optional: false
35917
+ }],
35918
+ "motionZones.getOptions": [{
35919
+ name: "deviceId",
35920
+ form: "single",
35921
+ optional: false
35922
+ }],
35923
+ "motionZones.setZone": [{
35924
+ name: "deviceId",
35925
+ form: "single",
35926
+ optional: false
35927
+ }],
35928
+ "nativeObjectDetection.setEnabled": [{
35929
+ name: "deviceId",
35930
+ form: "single",
35931
+ optional: false
35932
+ }],
35933
+ "networkQuality.getDeviceStats": [{
35934
+ name: "deviceId",
35935
+ form: "single",
35936
+ optional: false
35937
+ }],
35938
+ "networkQuality.reportClientStats": [{
35939
+ name: "deviceId",
35940
+ form: "single",
35941
+ optional: false
35942
+ }],
35943
+ "notificationRules.setDeviceMuted": [{
35944
+ name: "deviceId",
35945
+ form: "single",
35946
+ optional: false
35947
+ }],
35948
+ "notifier.cancel": [{
35949
+ name: "deviceId",
35950
+ form: "single",
35951
+ optional: false
35952
+ }],
35953
+ "notifier.send": [{
35954
+ name: "deviceId",
35955
+ form: "single",
35956
+ optional: false
35957
+ }],
35958
+ "osd.setOverlay": [{
35959
+ name: "deviceId",
35960
+ form: "single",
35961
+ optional: false
35962
+ }],
35963
+ "osdManager.clearSlotBinding": [{
35964
+ name: "deviceId",
35965
+ form: "single",
35966
+ optional: false
35967
+ }],
35968
+ "osdManager.copyDeviceConfiguration": [{
35969
+ name: "sourceDeviceId",
35970
+ form: "single",
35971
+ optional: false
35972
+ }, {
35973
+ name: "targetDeviceId",
35974
+ form: "single",
35975
+ optional: false
35976
+ }],
35977
+ "osdManager.getDeviceOsd": [{
35978
+ name: "deviceId",
35979
+ form: "single",
35980
+ optional: false
35981
+ }],
35982
+ "osdManager.getSourceCatalog": [{
35983
+ name: "deviceId",
35984
+ form: "single",
35985
+ optional: false
35986
+ }],
35987
+ "osdManager.previewSlot": [{
35988
+ name: "deviceId",
35989
+ form: "single",
35990
+ optional: false
35991
+ }],
35992
+ "osdManager.renderDevice": [{
35993
+ name: "deviceId",
35994
+ form: "single",
35995
+ optional: false
35996
+ }],
35997
+ "osdManager.setSlotBinding": [{
35998
+ name: "deviceId",
35999
+ form: "single",
36000
+ optional: false
36001
+ }],
36002
+ "petFeeder.callPet": [{
36003
+ name: "deviceId",
36004
+ form: "single",
36005
+ optional: false
36006
+ }],
36007
+ "petFeeder.cancelFeed": [{
36008
+ name: "deviceId",
36009
+ form: "single",
36010
+ optional: false
36011
+ }],
36012
+ "petFeeder.feed": [{
36013
+ name: "deviceId",
36014
+ form: "single",
36015
+ optional: false
36016
+ }],
36017
+ "petFeeder.markFoodReplenished": [{
36018
+ name: "deviceId",
36019
+ form: "single",
36020
+ optional: false
36021
+ }],
36022
+ "petFeeder.playSound": [{
36023
+ name: "deviceId",
36024
+ form: "single",
36025
+ optional: false
36026
+ }],
36027
+ "petFeeder.resetDesiccant": [{
36028
+ name: "deviceId",
36029
+ form: "single",
36030
+ optional: false
36031
+ }],
36032
+ "petFeeder.setChildLock": [{
36033
+ name: "deviceId",
36034
+ form: "single",
36035
+ optional: false
36036
+ }],
36037
+ "petFeeder.setFeedSound": [{
36038
+ name: "deviceId",
36039
+ form: "single",
36040
+ optional: false
36041
+ }],
36042
+ "petFeeder.setIndicatorLight": [{
36043
+ name: "deviceId",
36044
+ form: "single",
36045
+ optional: false
36046
+ }],
36047
+ "petFeeder.setVolume": [{
36048
+ name: "deviceId",
36049
+ form: "single",
36050
+ optional: false
36051
+ }],
36052
+ "pipelineAnalytics.clearTracks": [{
36053
+ name: "deviceId",
36054
+ form: "single",
36055
+ optional: false
36056
+ }],
36057
+ "pipelineAnalytics.completeRetrainTrack": [{
36058
+ name: "deviceId",
36059
+ form: "single",
36060
+ optional: false
36061
+ }],
36062
+ "pipelineAnalytics.deleteDeviceEvents": [{
36063
+ name: "deviceId",
36064
+ form: "single",
36065
+ optional: false
36066
+ }],
36067
+ "pipelineAnalytics.deleteTracks": [{
36068
+ name: "deviceId",
36069
+ form: "single",
36070
+ optional: false
36071
+ }],
36072
+ "pipelineAnalytics.deselectRetrainFrame": [{
36073
+ name: "deviceId",
36074
+ form: "single",
36075
+ optional: false
36076
+ }],
36077
+ "pipelineAnalytics.getActiveTracks": [{
36078
+ name: "deviceId",
36079
+ form: "single",
36080
+ optional: false
36081
+ }],
36082
+ "pipelineAnalytics.getAudioEvents": [{
36083
+ name: "deviceId",
36084
+ form: "single",
36085
+ optional: false
36086
+ }],
36087
+ "pipelineAnalytics.getEventDensity": [{
36088
+ name: "deviceId",
36089
+ form: "single",
36090
+ optional: false
36091
+ }],
36092
+ "pipelineAnalytics.getEventMedia": [{
36093
+ name: "deviceId",
36094
+ form: "single",
36095
+ optional: false
36096
+ }],
36097
+ "pipelineAnalytics.getKeyEvents": [{
36098
+ name: "deviceId",
36099
+ form: "single",
36100
+ optional: false
36101
+ }],
36102
+ "pipelineAnalytics.getMotionEvents": [{
36103
+ name: "deviceId",
36104
+ form: "single",
36105
+ optional: false
36106
+ }],
36107
+ "pipelineAnalytics.getObjectEvents": [{
36108
+ name: "deviceId",
36109
+ form: "single",
36110
+ optional: false
36111
+ }],
36112
+ "pipelineAnalytics.getRetrainExportUrl": [{
36113
+ name: "deviceIds",
36114
+ form: "array",
36115
+ optional: true
36116
+ }],
36117
+ "pipelineAnalytics.getSensorEvents": [{
36118
+ name: "deviceId",
36119
+ form: "single",
36120
+ optional: false
36121
+ }],
36122
+ "pipelineAnalytics.getTrack": [{
36123
+ name: "deviceId",
36124
+ form: "single",
36125
+ optional: false
36126
+ }],
36127
+ "pipelineAnalytics.getTrackMedia": [{
36128
+ name: "deviceId",
36129
+ form: "single",
36130
+ optional: false
36131
+ }],
36132
+ "pipelineAnalytics.getTrainingExportSummary": [{
36133
+ name: "deviceIds",
36134
+ form: "array",
36135
+ optional: true
36136
+ }],
36137
+ "pipelineAnalytics.getTrainingExportUrl": [{
36138
+ name: "deviceIds",
36139
+ form: "array",
36140
+ optional: true
36141
+ }],
36142
+ "pipelineAnalytics.listEventKinds": [{
36143
+ name: "deviceId",
36144
+ form: "single",
36145
+ optional: false
36146
+ }],
36147
+ "pipelineAnalytics.listEventKindsBatch": [{
36148
+ name: "deviceIds",
36149
+ form: "array",
36150
+ optional: false
36151
+ }],
36152
+ "pipelineAnalytics.listOpsLog": [{
36153
+ name: "deviceId",
36154
+ form: "single",
36155
+ optional: true
36156
+ }],
36157
+ "pipelineAnalytics.listRecentTracks": [{
36158
+ name: "deviceIds",
36159
+ form: "array",
36160
+ optional: false
36161
+ }],
36162
+ "pipelineAnalytics.listRetrainStaging": [{
36163
+ name: "deviceIds",
36164
+ form: "array",
36165
+ optional: true
36166
+ }],
36167
+ "pipelineAnalytics.listTrackMedia": [{
36168
+ name: "deviceId",
36169
+ form: "single",
36170
+ optional: false
36171
+ }],
36172
+ "pipelineAnalytics.listTracks": [{
36173
+ name: "deviceId",
36174
+ form: "single",
36175
+ optional: false
36176
+ }],
36177
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36178
+ name: "deviceId",
36179
+ form: "single",
36180
+ optional: false
36181
+ }],
36182
+ "pipelineAnalytics.pruneEventsBefore": [{
36183
+ name: "deviceId",
36184
+ form: "single",
36185
+ optional: false
36186
+ }],
36187
+ "pipelineAnalytics.pruneTracksBefore": [{
36188
+ name: "deviceId",
36189
+ form: "single",
36190
+ optional: false
36191
+ }],
36192
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36193
+ name: "deviceId",
36194
+ form: "single",
36195
+ optional: true
36196
+ }],
36197
+ "pipelineAnalytics.restageRetrainTrack": [{
36198
+ name: "deviceId",
36199
+ form: "single",
36200
+ optional: false
36201
+ }],
36202
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36203
+ name: "deviceId",
36204
+ form: "single",
36205
+ optional: false
36206
+ }],
36207
+ "pipelineAnalytics.searchObjectEvents": [{
36208
+ name: "deviceId",
36209
+ form: "single",
36210
+ optional: true
36211
+ }],
36212
+ "pipelineAnalytics.selectRetrainFrames": [{
36213
+ name: "deviceId",
36214
+ form: "single",
36215
+ optional: false
36216
+ }],
36217
+ "pipelineAnalytics.setTrackFlags": [{
36218
+ name: "deviceId",
36219
+ form: "single",
36220
+ optional: false
36221
+ }],
36222
+ "pipelineAnalytics.wipeAllAnalytics": [{
36223
+ name: "deviceId",
36224
+ form: "single",
36225
+ optional: false
36226
+ }],
36227
+ "pipelineExecutor.runPipeline": [{
36228
+ name: "deviceId",
36229
+ form: "single",
36230
+ optional: true
36231
+ }],
36232
+ "pipelineExecutor.runPipelineBatch": [{
36233
+ name: "deviceId",
36234
+ form: "single",
36235
+ optional: true
36236
+ }],
36237
+ "pipelineOrchestrator.assignAudio": [{
36238
+ name: "deviceId",
36239
+ form: "single",
36240
+ optional: false
36241
+ }],
36242
+ "pipelineOrchestrator.assignPipeline": [{
36243
+ name: "deviceId",
36244
+ form: "single",
36245
+ optional: false
36246
+ }],
36247
+ "pipelineOrchestrator.getAudioAssignment": [{
36248
+ name: "deviceId",
36249
+ form: "single",
36250
+ optional: false
36251
+ }],
36252
+ "pipelineOrchestrator.getCameraMetrics": [{
36253
+ name: "deviceId",
36254
+ form: "single",
36255
+ optional: false
36256
+ }],
36257
+ "pipelineOrchestrator.getCameraSettings": [{
36258
+ name: "deviceId",
36259
+ form: "single",
36260
+ optional: false
36261
+ }],
36262
+ "pipelineOrchestrator.getCameraStatus": [{
36263
+ name: "deviceId",
36264
+ form: "single",
36265
+ optional: false
36266
+ }],
36267
+ "pipelineOrchestrator.getCameraStatuses": [{
36268
+ name: "deviceIds",
36269
+ form: "array",
36270
+ optional: true
36271
+ }],
36272
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36273
+ name: "deviceId",
36274
+ form: "single",
36275
+ optional: false
36276
+ }],
36277
+ "pipelineOrchestrator.getCameraSwitches": [{
36278
+ name: "deviceId",
36279
+ form: "single",
36280
+ optional: false
36281
+ }],
36282
+ "pipelineOrchestrator.getPipelineAssignment": [{
36283
+ name: "deviceId",
36284
+ form: "single",
36285
+ optional: false
36286
+ }],
36287
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36288
+ name: "deviceId",
36289
+ form: "single",
36290
+ optional: false
36291
+ }],
36292
+ "pipelineOrchestrator.resolvePipeline": [{
36293
+ name: "deviceId",
36294
+ form: "single",
36295
+ optional: false
36296
+ }],
36297
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36298
+ name: "deviceId",
36299
+ form: "single",
36300
+ optional: false
36301
+ }],
36302
+ "pipelineOrchestrator.setCameraStepOverride": [{
36303
+ name: "deviceId",
36304
+ form: "single",
36305
+ optional: false
36306
+ }],
36307
+ "pipelineOrchestrator.setCameraStepToggle": [{
36308
+ name: "deviceId",
36309
+ form: "single",
36310
+ optional: false
36311
+ }],
36312
+ "pipelineOrchestrator.setCameraSwitch": [{
36313
+ name: "deviceId",
36314
+ form: "single",
36315
+ optional: false
36316
+ }],
36317
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36318
+ name: "deviceId",
36319
+ form: "single",
36320
+ optional: false
36321
+ }],
36322
+ "pipelineOrchestrator.unassignAudio": [{
36323
+ name: "deviceId",
36324
+ form: "single",
36325
+ optional: false
36326
+ }],
36327
+ "pipelineOrchestrator.unassignPipeline": [{
36328
+ name: "deviceId",
36329
+ form: "single",
36330
+ optional: false
36331
+ }],
36332
+ "pipelineRunner.attachCamera": [{
36333
+ name: "deviceId",
36334
+ form: "single",
36335
+ optional: false
36336
+ }],
36337
+ "pipelineRunner.detachCamera": [{
36338
+ name: "deviceId",
36339
+ form: "single",
36340
+ optional: false
36341
+ }],
36342
+ "pipelineRunner.getCameraMetrics": [{
36343
+ name: "deviceId",
36344
+ form: "single",
36345
+ optional: false
36346
+ }],
36347
+ "pipelineRunner.reportMotion": [{
36348
+ name: "deviceId",
36349
+ form: "single",
36350
+ optional: false
36351
+ }],
36352
+ "pipelineRunner.runDetailSubtree": [{
36353
+ name: "deviceId",
36354
+ form: "single",
36355
+ optional: false
36356
+ }],
36357
+ "pipelineRunner.runStatelessStep": [{
36358
+ name: "sourceDeviceId",
36359
+ form: "single",
36360
+ optional: false
36361
+ }],
36362
+ "plateGallery.getPlateByTrack": [{
36363
+ name: "deviceId",
36364
+ form: "single",
36365
+ optional: false
36366
+ }],
36367
+ "plateGallery.listPlates": [{
36368
+ name: "deviceId",
36369
+ form: "single",
36370
+ optional: true
36371
+ }],
36372
+ "privacyMask.getOptions": [{
36373
+ name: "deviceId",
36374
+ form: "single",
36375
+ optional: false
36376
+ }],
36377
+ "privacyMask.setAudioEnabled": [{
36378
+ name: "deviceId",
36379
+ form: "single",
36380
+ optional: false
36381
+ }],
36382
+ "privacyMask.setMask": [{
36383
+ name: "deviceId",
36384
+ form: "single",
36385
+ optional: false
36386
+ }],
36387
+ "ptz.continuousMove": [{
36388
+ name: "deviceId",
36389
+ form: "single",
36390
+ optional: false
36391
+ }],
36392
+ "ptz.deletePreset": [{
36393
+ name: "deviceId",
36394
+ form: "single",
36395
+ optional: false
36396
+ }],
36397
+ "ptz.getOptions": [{
36398
+ name: "deviceId",
36399
+ form: "single",
36400
+ optional: false
36401
+ }],
36402
+ "ptz.getPosition": [{
36403
+ name: "deviceId",
36404
+ form: "single",
36405
+ optional: false
36406
+ }],
36407
+ "ptz.getPresets": [{
36408
+ name: "deviceId",
36409
+ form: "single",
36410
+ optional: false
36411
+ }],
36412
+ "ptz.goHome": [{
36413
+ name: "deviceId",
36414
+ form: "single",
36415
+ optional: false
36416
+ }],
36417
+ "ptz.goToPreset": [{
36418
+ name: "deviceId",
36419
+ form: "single",
36420
+ optional: false
36421
+ }],
36422
+ "ptz.move": [{
36423
+ name: "deviceId",
36424
+ form: "single",
36425
+ optional: false
36426
+ }],
36427
+ "ptz.savePreset": [{
36428
+ name: "deviceId",
36429
+ form: "single",
36430
+ optional: false
36431
+ }],
36432
+ "ptz.setAutofocus": [{
36433
+ name: "deviceId",
36434
+ form: "single",
36435
+ optional: false
36436
+ }],
36437
+ "ptz.stop": [{
36438
+ name: "deviceId",
36439
+ form: "single",
36440
+ optional: false
36441
+ }],
36442
+ "ptzAutotrack.getSettings": [{
36443
+ name: "deviceId",
36444
+ form: "single",
36445
+ optional: false
36446
+ }],
36447
+ "ptzAutotrack.getStatus": [{
36448
+ name: "deviceId",
36449
+ form: "single",
36450
+ optional: false
36451
+ }],
36452
+ "ptzAutotrack.setEnabled": [{
36453
+ name: "deviceId",
36454
+ form: "single",
36455
+ optional: false
36456
+ }],
36457
+ "ptzAutotrack.setSettings": [{
36458
+ name: "deviceId",
36459
+ form: "single",
36460
+ optional: false
36461
+ }],
36462
+ "reboot.reboot": [{
36463
+ name: "deviceId",
36464
+ form: "single",
36465
+ optional: false
36466
+ }],
36467
+ "recording.deleteFootprint": [{
36468
+ name: "deviceId",
36469
+ form: "single",
36470
+ optional: false
36471
+ }],
36472
+ "recording.getAvailability": [{
36473
+ name: "deviceId",
36474
+ form: "single",
36475
+ optional: false
36476
+ }],
36477
+ "recording.getDaysWithRecordings": [{
36478
+ name: "deviceId",
36479
+ form: "single",
36480
+ optional: false
36481
+ }],
36482
+ "recording.getDeviceConfig": [{
36483
+ name: "deviceId",
36484
+ form: "single",
36485
+ optional: false
36486
+ }],
36487
+ "recording.getPlaybackManifest": [{
36488
+ name: "deviceId",
36489
+ form: "single",
36490
+ optional: false
36491
+ }],
36492
+ "recording.listOpsLog": [{
36493
+ name: "deviceId",
36494
+ form: "single",
36495
+ optional: true
36496
+ }],
36497
+ "recording.locateSegment": [{
36498
+ name: "deviceId",
36499
+ form: "single",
36500
+ optional: false
36501
+ }],
36502
+ "recording.pruneFootage": [{
36503
+ name: "deviceId",
36504
+ form: "single",
36505
+ optional: false
36506
+ }],
36507
+ "recording.readGopBytes": [{
36508
+ name: "deviceId",
36509
+ form: "single",
36510
+ optional: false
36511
+ }],
36512
+ "recording.readSegmentBytes": [{
36513
+ name: "deviceId",
36514
+ form: "single",
36515
+ optional: false
36516
+ }],
36517
+ "recording.relocateFootage": [{
36518
+ name: "deviceId",
36519
+ form: "single",
36520
+ optional: true
36521
+ }],
36522
+ "recording.renderClip": [{
36523
+ name: "deviceId",
36524
+ form: "single",
36525
+ optional: false
36526
+ }],
36527
+ "recording.renderGif": [{
36528
+ name: "deviceId",
36529
+ form: "single",
36530
+ optional: false
36531
+ }],
36532
+ "recording.rescanStorage": [{
36533
+ name: "deviceId",
36534
+ form: "single",
36535
+ optional: false
36536
+ }],
36537
+ "recording.setDeviceConfig": [{
36538
+ name: "deviceId",
36539
+ form: "single",
36540
+ optional: false
36541
+ }],
36542
+ "recording.startStorageMigrationMove": [{
36543
+ name: "deviceId",
36544
+ form: "single",
36545
+ optional: true
36546
+ }],
36547
+ "recordingExport.createExport": [{
36548
+ name: "deviceId",
36549
+ form: "single",
36550
+ optional: false
36551
+ }],
36552
+ "recordingExport.listExports": [{
36553
+ name: "deviceId",
36554
+ form: "single",
36555
+ optional: true
36556
+ }],
36557
+ "sceneMonitor.captureReference": [{
36558
+ name: "deviceId",
36559
+ form: "single",
36560
+ optional: false
36561
+ }],
36562
+ "sceneMonitor.createScene": [{
36563
+ name: "deviceId",
36564
+ form: "single",
36565
+ optional: false
36566
+ }],
36567
+ "sceneMonitor.deleteReference": [{
36568
+ name: "deviceId",
36569
+ form: "single",
36570
+ optional: false
36571
+ }],
36572
+ "sceneMonitor.deleteScene": [{
36573
+ name: "deviceId",
36574
+ form: "single",
36575
+ optional: false
36576
+ }],
36577
+ "sceneMonitor.listScenes": [{
36578
+ name: "deviceId",
36579
+ form: "single",
36580
+ optional: false
36581
+ }],
36582
+ "sceneMonitor.recheckNow": [{
36583
+ name: "deviceId",
36584
+ form: "single",
36585
+ optional: false
36586
+ }],
36587
+ "sceneMonitor.resetScene": [{
36588
+ name: "deviceId",
36589
+ form: "single",
36590
+ optional: false
36591
+ }],
36592
+ "sceneMonitor.updateScene": [{
36593
+ name: "deviceId",
36594
+ form: "single",
36595
+ optional: false
36596
+ }],
36597
+ "scriptRunner.run": [{
36598
+ name: "deviceId",
36599
+ form: "single",
36600
+ optional: false
36601
+ }],
36602
+ "scriptRunner.stop": [{
36603
+ name: "deviceId",
36604
+ form: "single",
36605
+ optional: false
36606
+ }],
36607
+ "snapshot.getSnapshot": [{
36608
+ name: "deviceId",
36609
+ form: "single",
36610
+ optional: false
36611
+ }],
36612
+ "snapshot.getSnapshotLinks": [{
36613
+ name: "targets",
36614
+ form: "object-array",
36615
+ optional: false,
36616
+ itemField: "deviceId"
36617
+ }],
36618
+ "snapshot.getSnapshotOverview": [{
36619
+ name: "deviceIds",
36620
+ form: "array",
36621
+ optional: false
36622
+ }],
36623
+ "snapshot.invalidateCache": [{
36624
+ name: "deviceId",
36625
+ form: "single",
36626
+ optional: false
36627
+ }],
36628
+ "streamBroker.acquireEgressTranscode": [{
36629
+ name: "deviceId",
36630
+ form: "single",
36631
+ optional: false
36632
+ }],
36633
+ "streamBroker.assignProfile": [{
36634
+ name: "deviceId",
36635
+ form: "single",
36636
+ optional: false
36637
+ }],
36638
+ "streamBroker.getDeviceAudioMute": [{
36639
+ name: "deviceId",
36640
+ form: "single",
36641
+ optional: false
36642
+ }],
36643
+ "streamBroker.getStreamWithCodec": [{
36644
+ name: "deviceId",
36645
+ form: "single",
36646
+ optional: false
36647
+ }],
36648
+ "streamBroker.produceEventMedia": [{
36649
+ name: "deviceId",
36650
+ form: "single",
36651
+ optional: false
36652
+ }],
36653
+ "streamBroker.publishCameraStream": [{
36654
+ name: "deviceId",
36655
+ form: "single",
36656
+ optional: false
36657
+ }],
36658
+ "streamBroker.renderPreBufferClip": [{
36659
+ name: "deviceId",
36660
+ form: "single",
36661
+ optional: false
36662
+ }],
36663
+ "streamBroker.restartProfile": [{
36664
+ name: "deviceId",
36665
+ form: "single",
36666
+ optional: false
36667
+ }],
36668
+ "streamBroker.retractCameraStream": [{
36669
+ name: "deviceId",
36670
+ form: "single",
36671
+ optional: false
36672
+ }],
36673
+ "streamBroker.setDeviceAudioMute": [{
36674
+ name: "deviceId",
36675
+ form: "single",
36676
+ optional: false
36677
+ }],
36678
+ "streamBroker.unassignProfile": [{
36679
+ name: "deviceId",
36680
+ form: "single",
36681
+ optional: false
36682
+ }],
36683
+ "streamCatalog.getCatalog": [{
36684
+ name: "deviceId",
36685
+ form: "single",
36686
+ optional: false
36687
+ }],
36688
+ "streamParams.getConfigSchema": [{
36689
+ name: "deviceId",
36690
+ form: "single",
36691
+ optional: false
36692
+ }],
36693
+ "streamParams.getOptions": [{
36694
+ name: "deviceId",
36695
+ form: "single",
36696
+ optional: false
36697
+ }],
36698
+ "streamParams.setProfile": [{
36699
+ name: "deviceId",
36700
+ form: "single",
36701
+ optional: false
36702
+ }],
36703
+ "switch.setState": [{
36704
+ name: "deviceId",
36705
+ form: "single",
36706
+ optional: false
36707
+ }],
36708
+ "vacuumControl.locate": [{
36709
+ name: "deviceId",
36710
+ form: "single",
36711
+ optional: false
36712
+ }],
36713
+ "vacuumControl.pause": [{
36714
+ name: "deviceId",
36715
+ form: "single",
36716
+ optional: false
36717
+ }],
36718
+ "vacuumControl.returnToBase": [{
36719
+ name: "deviceId",
36720
+ form: "single",
36721
+ optional: false
36722
+ }],
36723
+ "vacuumControl.setFanSpeed": [{
36724
+ name: "deviceId",
36725
+ form: "single",
36726
+ optional: false
36727
+ }],
36728
+ "vacuumControl.start": [{
36729
+ name: "deviceId",
36730
+ form: "single",
36731
+ optional: false
36732
+ }],
36733
+ "vacuumControl.stop": [{
36734
+ name: "deviceId",
36735
+ form: "single",
36736
+ optional: false
36737
+ }],
36738
+ "valve.close": [{
36739
+ name: "deviceId",
36740
+ form: "single",
36741
+ optional: false
36742
+ }],
36743
+ "valve.open": [{
36744
+ name: "deviceId",
36745
+ form: "single",
36746
+ optional: false
36747
+ }],
36748
+ "valve.setPosition": [{
36749
+ name: "deviceId",
36750
+ form: "single",
36751
+ optional: false
36752
+ }],
36753
+ "valve.stop": [{
36754
+ name: "deviceId",
36755
+ form: "single",
36756
+ optional: false
36757
+ }],
36758
+ "videoclips.getClipPlayback": [{
36759
+ name: "deviceId",
36760
+ form: "single",
36761
+ optional: false
36762
+ }],
36763
+ "videoclips.listClips": [{
36764
+ name: "deviceId",
36765
+ form: "single",
36766
+ optional: false
36767
+ }],
36768
+ "waterHeater.setAway": [{
36769
+ name: "deviceId",
36770
+ form: "single",
36771
+ optional: false
36772
+ }],
36773
+ "waterHeater.setOperationMode": [{
36774
+ name: "deviceId",
36775
+ form: "single",
36776
+ optional: false
36777
+ }],
36778
+ "waterHeater.setTargetTemp": [{
36779
+ name: "deviceId",
36780
+ form: "single",
36781
+ optional: false
36782
+ }],
36783
+ "webrtcSession.addIceCandidate": [{
36784
+ name: "deviceId",
36785
+ form: "single",
36786
+ optional: false
36787
+ }],
36788
+ "webrtcSession.closeSession": [{
36789
+ name: "deviceId",
36790
+ form: "single",
36791
+ optional: false
36792
+ }],
36793
+ "webrtcSession.createSession": [{
36794
+ name: "deviceId",
36795
+ form: "single",
36796
+ optional: false
36797
+ }],
36798
+ "webrtcSession.getIceCandidates": [{
36799
+ name: "deviceId",
36800
+ form: "single",
36801
+ optional: false
36802
+ }],
36803
+ "webrtcSession.getSessionState": [{
36804
+ name: "deviceId",
36805
+ form: "single",
36806
+ optional: false
36807
+ }],
36808
+ "webrtcSession.handleAnswer": [{
36809
+ name: "deviceId",
36810
+ form: "single",
36811
+ optional: false
36812
+ }],
36813
+ "webrtcSession.handleOffer": [{
36814
+ name: "deviceId",
36815
+ form: "single",
36816
+ optional: false
36817
+ }],
36818
+ "webrtcSession.hasAdaptiveBitrate": [{
36819
+ name: "deviceId",
36820
+ form: "single",
36821
+ optional: false
36822
+ }],
36823
+ "webrtcSession.listStreams": [{
36824
+ name: "deviceId",
36825
+ form: "single",
36826
+ optional: false
36827
+ }],
36828
+ "zoneAnalytics.getCameraHistory": [{
36829
+ name: "deviceId",
36830
+ form: "single",
36831
+ optional: false
36832
+ }],
36833
+ "zoneAnalytics.getCurrentSnapshot": [{
36834
+ name: "deviceId",
36835
+ form: "single",
36836
+ optional: false
36837
+ }],
36838
+ "zoneAnalytics.getUnzonedHistory": [{
36839
+ name: "deviceId",
36840
+ form: "single",
36841
+ optional: false
36842
+ }],
36843
+ "zoneAnalytics.getZoneHistory": [{
36844
+ name: "deviceId",
36845
+ form: "single",
36846
+ optional: false
36847
+ }],
36848
+ "zoneRules.listRules": [{
36849
+ name: "deviceId",
36850
+ form: "single",
36851
+ optional: false
36852
+ }],
36853
+ "zoneRules.setRules": [{
36854
+ name: "deviceId",
36855
+ form: "single",
36856
+ optional: false
36857
+ }],
36858
+ "zones.addZone": [{
36859
+ name: "deviceId",
36860
+ form: "single",
36861
+ optional: false
36862
+ }],
36863
+ "zones.listZones": [{
36864
+ name: "deviceId",
36865
+ form: "single",
36866
+ optional: false
36867
+ }],
36868
+ "zones.removeZone": [{
36869
+ name: "deviceId",
36870
+ form: "single",
36871
+ optional: false
36872
+ }],
36873
+ "zones.updateZone": [{
36874
+ name: "deviceId",
36875
+ form: "single",
36876
+ optional: false
36877
+ }]
36878
+ });
34160
36879
  Object.freeze({
34161
36880
  "broker": "broker",
34162
36881
  "device-export": "device-export",