@camstack/addon-provider-velux 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,
@@ -22775,54 +23378,139 @@ var TalkAudioCodecSchema = _enum([
22775
23378
  "g711ulaw",
22776
23379
  "g711alaw"
22777
23380
  ]);
22778
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22779
- sessionId: string(),
22780
- sdpOffer: string()
22781
- }), {
22782
- kind: "mutation",
22783
- auth: "admin"
22784
- }), method(object({
22785
- deviceId: number(),
22786
- sessionId: string(),
22787
- sdpAnswer: string()
22788
- }), _void(), {
22789
- kind: "mutation",
22790
- auth: "admin"
22791
- }), method(object({
22792
- deviceId: number(),
22793
- sessionId: string()
22794
- }), _void(), {
22795
- kind: "mutation",
22796
- auth: "admin"
22797
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22798
- kind: "mutation",
22799
- auth: "admin"
22800
- }), method(object({
22801
- deviceId: number(),
22802
- /** Audio bytes for ONE frame, base64-encoded so the payload
22803
- * survives tRPC JSON serialization. */
22804
- audioBase64: string(),
22805
- /** Wire codec of the payload. Omit to let the provider default
22806
- * to its native expected format (s16le @ provider-native rate,
22807
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22808
- codec: TalkAudioCodecSchema.optional(),
22809
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22810
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22811
- sampleRate: number().int().positive().optional(),
22812
- /** Channel count. Default 1. */
22813
- channels: number().int().positive().optional(),
22814
- /** Sequence number for ordering / dropping out-of-order frames. */
22815
- sequenceNumber: number().int()
22816
- }), object({ accepted: boolean() }), {
22817
- kind: "mutation",
22818
- auth: "admin"
22819
- }), method(object({ deviceId: number() }), _void(), {
22820
- kind: "mutation",
22821
- auth: "admin"
22822
- }), object({
22823
- deviceId: number(),
22824
- status: IntercomStatusSchema
22825
- });
23381
+ var intercomCapability = {
23382
+ name: "intercom",
23383
+ scope: "device",
23384
+ deviceNative: true,
23385
+ mode: "singleton",
23386
+ deviceTypes: [DeviceType.Camera],
23387
+ methods: {
23388
+ /**
23389
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23390
+ * offer with a single sendonly audio m-line the client answers
23391
+ * (client → server direction). The server wakes battery cams
23392
+ * transparently before opening the upstream talk channel.
23393
+ */
23394
+ startSession: method(object({ deviceId: number() }), object({
23395
+ sessionId: string(),
23396
+ sdpOffer: string()
23397
+ }), {
23398
+ kind: "mutation",
23399
+ auth: "admin"
23400
+ }),
23401
+ handleAnswer: method(object({
23402
+ deviceId: number(),
23403
+ sessionId: string(),
23404
+ sdpAnswer: string()
23405
+ }), _void(), {
23406
+ kind: "mutation",
23407
+ auth: "admin"
23408
+ }),
23409
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23410
+ stopSession: method(object({
23411
+ deviceId: number(),
23412
+ sessionId: string()
23413
+ }), _void(), {
23414
+ kind: "mutation",
23415
+ auth: "admin"
23416
+ }),
23417
+ /**
23418
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23419
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23420
+ * harnesses) that already have decoded PCM frames and just need a
23421
+ * direct path onto the camera's talk channel. Mutually exclusive
23422
+ * with `startSession` (an active WebRTC session must be stopped
23423
+ * before a raw-PCM session can be opened on the same device, and
23424
+ * vice versa).
23425
+ */
23426
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23427
+ kind: "mutation",
23428
+ auth: "admin"
23429
+ }),
23430
+ /**
23431
+ * Push one chunk of talk-back audio onto the active talk session.
23432
+ * The cap is codec-agnostic: the caller declares (or omits) the
23433
+ * wire format via `codec`; the provider decides between passthrough
23434
+ * (when the wire codec matches the camera's native talk channel),
23435
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23436
+ *
23437
+ * Callers do NOT need to know the camera's wire format or sample
23438
+ * rate — that information lives entirely inside the provider.
23439
+ *
23440
+ * Sequence numbers MUST be monotonic per talk session; older frames
23441
+ * arriving after newer ones are dropped to avoid smearing the
23442
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23443
+ * predictor would corrupt with re-ordering).
23444
+ */
23445
+ pushTalkAudio: method(object({
23446
+ deviceId: number(),
23447
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23448
+ * survives tRPC JSON serialization. */
23449
+ audioBase64: string(),
23450
+ /** Wire codec of the payload. Omit to let the provider default
23451
+ * to its native expected format (s16le @ provider-native rate,
23452
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23453
+ codec: TalkAudioCodecSchema.optional(),
23454
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23455
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23456
+ sampleRate: number().int().positive().optional(),
23457
+ /** Channel count. Default 1. */
23458
+ channels: number().int().positive().optional(),
23459
+ /** Sequence number for ordering / dropping out-of-order frames. */
23460
+ sequenceNumber: number().int()
23461
+ }), object({ accepted: boolean() }), {
23462
+ kind: "mutation",
23463
+ auth: "admin"
23464
+ }),
23465
+ /** Close the raw-PCM talk session. Idempotent. */
23466
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23467
+ kind: "mutation",
23468
+ auth: "admin"
23469
+ })
23470
+ },
23471
+ events: { onStatusChanged: { data: object({
23472
+ deviceId: number(),
23473
+ status: IntercomStatusSchema
23474
+ }) } },
23475
+ status: {
23476
+ schema: IntercomStatusSchema,
23477
+ kind: "command-driven"
23478
+ },
23479
+ /**
23480
+ * Runtime-state slice — mirrored by the kernel.
23481
+ *
23482
+ * The cap declared `status` and nothing else, so the only two sources an
23483
+ * exporter has for a value — the `device.state-changed` slice event and the
23484
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23485
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23486
+ * have been published and never received a value, which is the defect the
23487
+ * export's two classification tables exist to prevent (177 of them, once), so
23488
+ * `intercom` was excluded rather than exported.
23489
+ *
23490
+ * The shape is the status shape: there is exactly one truth about talk-back
23491
+ * and duplicating it into a second schema is how two halves of one capability
23492
+ * come to disagree. Providers write it through
23493
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23494
+ * and close a session, and seed it at registration so the slice exists before
23495
+ * the first session rather than after it.
23496
+ *
23497
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23498
+ * session handle, so a session torn down by a transport death that never
23499
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23500
+ * session or the next restart. That is why the slice is `session` and not
23501
+ * `restored` — a restart must never restore "talking".
23502
+ */
23503
+ runtimeState: IntercomStatusSchema,
23504
+ /**
23505
+ * Runtime-state durability: **session** — `talking` describes a live audio
23506
+ * session, which by definition does not survive the process that held it.
23507
+ * Restoring it would publish a camera as talking to nobody.
23508
+ *
23509
+ * See `RuntimeStateDurability`. Enforced by
23510
+ * `scripts/check-runtime-state-durability.ts`.
23511
+ */
23512
+ durability: "session"
23513
+ };
22826
23514
  /**
22827
23515
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22828
23516
  * with a mowing lifecycle plus a dock action.
@@ -25519,7 +26207,7 @@ method(object({
25519
26207
  toMs: number()
25520
26208
  }), RecordingAvailabilitySchema, {
25521
26209
  kind: "query",
25522
- auth: "admin"
26210
+ auth: "protected"
25523
26211
  }), method(object({
25524
26212
  deviceId: number(),
25525
26213
  fromMs: number(),
@@ -25527,14 +26215,14 @@ method(object({
25527
26215
  tzOffsetMinutes: number()
25528
26216
  }), RecordingDaysSchema, {
25529
26217
  kind: "query",
25530
- auth: "admin"
26218
+ auth: "protected"
25531
26219
  }), method(object({
25532
26220
  deviceId: number(),
25533
26221
  fromMs: number(),
25534
26222
  toMs: number()
25535
26223
  }), RecordingManifestSchema, {
25536
26224
  kind: "query",
25537
- auth: "admin"
26225
+ auth: "protected"
25538
26226
  }), method(object({}), RecordingStorageUsageSchema, {
25539
26227
  kind: "query",
25540
26228
  auth: "admin"
@@ -25824,14 +26512,77 @@ method(object({
25824
26512
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25825
26513
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25826
26514
  *
25827
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25828
- * derives the device-detail contribution; the provider carries NO hand-written
25829
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25830
- * every hysteresis flip / availability change; consumers never poll.
25831
- */
25832
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25833
- * be added without a wire break (matching falls back to any-condition refs). */
26515
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26516
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26517
+ * for the thing: a scene is a standing question about the property ("is the bin
26518
+ * still out"), and the operator's question is "which of my scenes have tripped",
26519
+ * across every camera at once — not "what does camera 617 think". Buried one
26520
+ * camera deep it also could not be found. The surface is now a top-level admin
26521
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26522
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26523
+ *
26524
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26525
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26526
+ * directions, so a registration nobody declares fails exactly as loudly as a
26527
+ * declaration nobody registers. The editor is imported directly by the page.
26528
+ *
26529
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26530
+ * availability change; consumers never poll.
26531
+ */
26532
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26533
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26534
+ * Open by design so more can be added without a wire break.
26535
+ *
26536
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26537
+ * not comparable, so "I have never seen this scene in this light" is reported
26538
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26539
+ * collapses the cosine and would latch a false alarm every single night. */
25834
26540
  var SceneConditionSchema = string();
26541
+ /**
26542
+ * What a scene does when the CURRENT light has no reference of its own.
26543
+ *
26544
+ * The lighting variants are not equally likely to exist. Almost every operator
26545
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26546
+ * scene that is only ever going to be asked about a daytime question ("is the
26547
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26548
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26549
+ * working without it rather than degrading into a permanent complaint.
26550
+ *
26551
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26552
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26553
+ * last covered light left it at, the latch is untouched, and the hysteresis
26554
+ * run is neither spent nor cleared. The scene resumes by itself at first
26555
+ * light. This is the only behaviour under which "I never captured IR" is a
26556
+ * configuration choice instead of a nightly fault.
26557
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26558
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26559
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26560
+ * cross-condition cosines are not comparable, so a day reference against a
26561
+ * true IR frame collapses and the scene reports a theft at 21:40.
26562
+ *
26563
+ * Never applies when the scene has NO comparable reference at all — that is
26564
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26565
+ * there would hide a scene the operator never finished setting up.
26566
+ */
26567
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26568
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26569
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26570
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26571
+ * and never counts toward hysteresis in either direction. */
26572
+ var SceneVerdictSchema = _enum([
26573
+ "matched",
26574
+ "diverged",
26575
+ "unknown"
26576
+ ]);
26577
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26578
+ * silence that reads as "nothing has happened". */
26579
+ var SceneUnavailableSchema = _enum([
26580
+ "no-reference-for-condition",
26581
+ "view-shifted",
26582
+ "no-vision-profile",
26583
+ "encoder-model-changed",
26584
+ "no-snapshot"
26585
+ ]);
25835
26586
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25836
26587
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25837
26588
  var SceneReferenceSchema = object({
@@ -25839,7 +26590,14 @@ var SceneReferenceSchema = object({
25839
26590
  modelId: string(),
25840
26591
  condition: SceneConditionSchema,
25841
26592
  capturedAt: number(),
25842
- thumbnailMediaId: string().optional()
26593
+ thumbnailMediaId: string().optional(),
26594
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26595
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26596
+ * normalized rect frame a different piece of world, and the scene would
26597
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26598
+ * when hysteresis is about to flip — one extra encode per candidate
26599
+ * transition, not per poll. */
26600
+ anchorEmbedding: array(number()).optional()
25843
26601
  });
25844
26602
  var SceneMonitorStateSchema = object({
25845
26603
  id: string(),
@@ -25861,6 +26619,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
25861
26619
  profileId: string().optional(),
25862
26620
  hysteresisCount: number().int().positive()
25863
26621
  })]);
26622
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26623
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26624
+ * out in silence rather than reporting a fault every night. */
26625
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26626
+ /**
26627
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26628
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26629
+ *
26630
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26631
+ * fail-open: a notification suppressed is the worse error there, but a vision
26632
+ * model that timed out has not told us the bin is gone, and a latch is a
26633
+ * stateful claim that costs the operator a trip to reset.
26634
+ */
26635
+ var SceneConfirmSchema = object({
26636
+ enabled: boolean().default(false),
26637
+ prompt: string().min(1).max(1e3),
26638
+ profileId: string().optional(),
26639
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26640
+ maxImagePx: number().int().min(64).max(2048).default(448),
26641
+ /** What a timeout / unavailable model means for the PENDING flip. */
26642
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26643
+ });
25864
26644
  var SceneMonitorSchema = object({
25865
26645
  id: string(),
25866
26646
  label: string(),
@@ -25879,7 +26659,56 @@ var SceneMonitorSchema = object({
25879
26659
  lastConfidence: number().nullable(),
25880
26660
  currentCondition: SceneConditionSchema.nullable(),
25881
26661
  availability: _enum(["ok", "unavailable"]),
25882
- unavailableReason: string().nullable()
26662
+ unavailableReason: string().nullable(),
26663
+ /** Which state is "the initial screen". `null` until the first capture. */
26664
+ baselineStateId: string().nullable(),
26665
+ /** Which boolean drives notification rules and any export. */
26666
+ emit: _enum(["latched", "live"]).default("latched"),
26667
+ /** Live: does the region match the baseline RIGHT NOW. */
26668
+ verdict: SceneVerdictSchema,
26669
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26670
+ latched: boolean(),
26671
+ /** Last reset (or creation). */
26672
+ armedAt: number(),
26673
+ divergedAt: number().nullable(),
26674
+ restoredAt: number().nullable(),
26675
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26676
+ * during the window DISCARDS the observation — a car pulling up in front of
26677
+ * the bin must not be able to spend hysteresis credit. */
26678
+ quietSeconds: number().int().min(0).max(3600).default(60),
26679
+ /** An observation only advances the pending count when it is at least this
26680
+ * far from the previously counted one, so N agreeing checks span real time
26681
+ * rather than N adjacent polls inside one occlusion. */
26682
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26683
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26684
+ confirm: SceneConfirmSchema.optional(),
26685
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26686
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26687
+ /** Clear the latch on its own when the scene matches again? Default false —
26688
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26689
+ * automation can react to the bin coming back without the operator's own
26690
+ * alarm silently clearing itself. */
26691
+ autoRestore: boolean().default(false),
26692
+ /** What to do when the current light has no reference of its own. See
26693
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26694
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26695
+ /**
26696
+ * The light whose checks are currently being SAT OUT under
26697
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26698
+ *
26699
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26700
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26701
+ * nothing captured in this light"* in the same calm voice as the coverage
26702
+ * line, because the alternative is a scene that silently stops answering
26703
+ * after sunset with nothing anywhere saying why. A skipped check must never
26704
+ * read as a broken one.
26705
+ */
26706
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26707
+ /** Named cause when `verdict === 'unknown'`. */
26708
+ unavailable: SceneUnavailableSchema.nullable(),
26709
+ /** Conditions that have at least one comparable reference — the coverage line
26710
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26711
+ coveredConditions: array(SceneConditionSchema)
25883
26712
  });
25884
26713
  var SceneMonitorStatusSchema = object({
25885
26714
  monitors: array(SceneMonitorSchema),
@@ -25892,12 +26721,6 @@ var sceneMonitorCapability = {
25892
26721
  kind: "wrapper",
25893
26722
  defaultActive: true,
25894
26723
  deviceTypes: [DeviceType.Camera],
25895
- deviceConfig: { ui: {
25896
- kind: "widget",
25897
- widgetId: "host/scene-monitor-editor",
25898
- tab: "scenes",
25899
- label: "Scenes"
25900
- } },
25901
26724
  methods: {
25902
26725
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
25903
26726
  createScene: method(object({
@@ -25928,7 +26751,15 @@ var sceneMonitorCapability = {
25928
26751
  "both"
25929
26752
  ]).optional(),
25930
26753
  checkIntervalSec: number().optional(),
25931
- check: SceneCheckSchema.optional()
26754
+ check: SceneCheckSchema.optional(),
26755
+ emit: _enum(["latched", "live"]).optional(),
26756
+ quietSeconds: number().int().min(0).max(3600).optional(),
26757
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26758
+ anchorThreshold: number().min(0).max(1).optional(),
26759
+ autoRestore: boolean().optional(),
26760
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26761
+ /** `null` clears the vision-model adjudicator. */
26762
+ confirm: SceneConfirmSchema.nullable().optional()
25932
26763
  })
25933
26764
  }), _void(), {
25934
26765
  kind: "mutation",
@@ -25969,6 +26800,26 @@ var sceneMonitorCapability = {
25969
26800
  }), _void(), {
25970
26801
  kind: "mutation",
25971
26802
  auth: "admin"
26803
+ }),
26804
+ /**
26805
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26806
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26807
+ * "reset" in the operator's head means *this is the new normal*, and
26808
+ * re-capture is what makes the feature self-healing against slow drift
26809
+ * instead of failing silently weeks later.
26810
+ *
26811
+ * Reachable from three surfaces on this one mutation: the scene card, a
26812
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
26813
+ * no new Notification-Center code at all), and tRPC for scripts.
26814
+ */
26815
+ resetScene: method(object({
26816
+ deviceId: number(),
26817
+ monitorId: string(),
26818
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
26819
+ recapture: boolean().optional()
26820
+ }), _void(), {
26821
+ kind: "mutation",
26822
+ auth: "admin"
25972
26823
  })
25973
26824
  },
25974
26825
  status: {
@@ -26205,7 +27056,70 @@ var CamStreamDescriptorSchema = object({
26205
27056
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
26206
27057
  metadata: record(string(), unknown()).optional()
26207
27058
  });
26208
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
27059
+ /**
27060
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
27061
+ * of the removed `publishCameraStream` push: a camera provider returns the full
27062
+ * set of stream descriptors it can offer for the device, synchronously, so the
27063
+ * broker can reconcile its registry against the authoritative provider state.
27064
+ */
27065
+ /**
27066
+ * The catalog as a DURABLE fact rather than a live answer.
27067
+ *
27068
+ * A battery camera's descriptors are profile-stable — they change when the
27069
+ * operator rewrites an encoder profile, not minute to minute — but building
27070
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27071
+ * provider is allowed to build them exactly once per profile and must serve
27072
+ * every later pull from a cache.
27073
+ *
27074
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27075
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27076
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27077
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27078
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27079
+ * which on a battery cam is most of the day. The camera was fine. The stream
27080
+ * was unreachable because the process had forgotten what the camera offers.
27081
+ *
27082
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27083
+ * declared collection, with the same `restored` durability `battery` uses for
27084
+ * the same reason: the last known value is the only value there is while the
27085
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27086
+ * is the DIAL that wakes a camera, never the catalog (D173).
27087
+ */
27088
+ var StreamCatalogStateSchema = object({
27089
+ /** The descriptors as last built from a real camera response. Never a guess:
27090
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27091
+ * one the camera itself once produced. */
27092
+ descriptors: array(CamStreamDescriptorSchema),
27093
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27094
+ * path decide whether the camera's own awake window is worth spending on a
27095
+ * re-read. */
27096
+ lastFetchedAt: number()
27097
+ });
27098
+ var streamCatalogCapability = {
27099
+ name: "stream-catalog",
27100
+ scope: "device",
27101
+ deviceNative: true,
27102
+ mode: "singleton",
27103
+ deviceTypes: [DeviceType.Camera],
27104
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27105
+ runtimeState: StreamCatalogStateSchema,
27106
+ /**
27107
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27108
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27109
+ * camera that cannot be watched at all until it happens to wake.
27110
+ *
27111
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27112
+ * build, and a build only runs when there is no cached copy (or the copy is
27113
+ * a day old and the camera is awake anyway).
27114
+ *
27115
+ * See `RuntimeStateDurability`. Enforced by
27116
+ * `scripts/check-runtime-state-durability.ts`.
27117
+ */
27118
+ durability: "restored",
27119
+ /** Clock field: written, but excluded from the compare that decides whether
27120
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27121
+ volatileStateFields: ["lastFetchedAt"]
27122
+ };
26209
27123
  /** One of the camera's stream profiles. */
26210
27124
  var StreamProfileSchema = _enum([
26211
27125
  "main",
@@ -26459,12 +27373,64 @@ var NetworkAddressSchema = object({
26459
27373
  family: string(),
26460
27374
  internal: boolean()
26461
27375
  });
27376
+ /**
27377
+ * Provenance of the site coordinates, and the whole reason this is not just two
27378
+ * numbers.
27379
+ *
27380
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27381
+ * nothing overwrites it.
27382
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27383
+ * default that is right to a few kilometres beats the coarse UTC clock split
27384
+ * the sun-times consumers otherwise fall back to.
27385
+ *
27386
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27387
+ * own input will eventually trust the guess.
27388
+ */
27389
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27390
+ /**
27391
+ * The read shape: the location plus the honest state of the one-shot derivation.
27392
+ *
27393
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27394
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27395
+ * failed; the hub will NOT try again on its own — the fallback is declared
27396
+ * (consumers degrade to their own last resort) and the operator either types the
27397
+ * coordinates or presses detect.
27398
+ */
27399
+ var SiteLocationStatusSchema = object({
27400
+ location: object({
27401
+ /** WGS84 decimal degrees. */
27402
+ latitude: number().min(-90).max(90),
27403
+ longitude: number().min(-180).max(180),
27404
+ source: SiteLocationSourceSchema,
27405
+ /** Epoch ms the value was last written. */
27406
+ updatedAt: number(),
27407
+ /**
27408
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27409
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27410
+ */
27411
+ label: string().optional()
27412
+ }).nullable(),
27413
+ derivationAttemptedAt: number().nullable(),
27414
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27415
+ derivationError: string().nullable()
27416
+ });
27417
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27418
+ var SetSiteLocationInputSchema = object({
27419
+ latitude: number().min(-90).max(90),
27420
+ longitude: number().min(-180).max(180)
27421
+ }).nullable();
26462
27422
  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(), {
26463
27423
  kind: "mutation",
26464
27424
  auth: "admin"
26465
27425
  }), method(_void(), _void(), {
26466
27426
  kind: "mutation",
26467
27427
  auth: "admin"
27428
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27429
+ kind: "mutation",
27430
+ auth: "admin"
27431
+ }), method(_void(), SiteLocationStatusSchema, {
27432
+ kind: "mutation",
27433
+ auth: "admin"
26468
27434
  });
26469
27435
  /**
26470
27436
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27784,6 +28750,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27784
28750
  humiditySensor: humiditySensorCapability,
27785
28751
  image: imageCapability,
27786
28752
  imageSettings: imageSettingsCapability,
28753
+ intercom: intercomCapability,
27787
28754
  lawnMowerControl: lawnMowerControlCapability,
27788
28755
  lockControl: lockControlCapability,
27789
28756
  mediaPlayer: mediaPlayerCapability,
@@ -27802,6 +28769,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27802
28769
  sceneMonitor: sceneMonitorCapability,
27803
28770
  scriptRunner: scriptRunnerCapability,
27804
28771
  smoke: smokeCapability,
28772
+ streamCatalog: streamCatalogCapability,
27805
28773
  streamParams: streamParamsCapability,
27806
28774
  switch: switchCapability,
27807
28775
  tamper: tamperCapability,
@@ -28455,6 +29423,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28455
29423
  labels: ["probe not implemented"]
28456
29424
  };
28457
29425
  }
29426
+ /**
29427
+ * Top-level devices restored at once in {@link onRestoreDevices}.
29428
+ *
29429
+ * Four covers the fleets this ships to without turning a boot into a burst a
29430
+ * camera NVR answers with a refusal. A provider whose upstream is a single
29431
+ * session with a serial command channel (a Baichuan hub, an NVR that
29432
+ * serialises ISAPI) should lower it; nothing needs to raise it.
29433
+ */
29434
+ restoreConcurrency = 4;
28458
29435
  async restoreDevices(savedDevices) {
28459
29436
  await this.onRestoreDevices(savedDevices);
28460
29437
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -28486,15 +29463,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28486
29463
  */
28487
29464
  async onRestoreDevices(savedDevices) {
28488
29465
  const restored = /* @__PURE__ */ new Set();
28489
- for (const saved of savedDevices) {
28490
- if (saved.parentDeviceId !== null) continue;
29466
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
29467
+ const restoreOne = async (saved) => {
28491
29468
  const Class = this.deviceClasses[saved.type];
28492
29469
  if (!Class) {
28493
29470
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
28494
29471
  tags: { stableId: saved.stableId },
28495
29472
  meta: { type: saved.type }
28496
29473
  });
28497
- continue;
29474
+ return;
28498
29475
  }
28499
29476
  try {
28500
29477
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -28508,7 +29485,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28508
29485
  }
28509
29486
  });
28510
29487
  }
28511
- }
29488
+ };
29489
+ let nextTopLevel = 0;
29490
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
29491
+ for (;;) {
29492
+ const saved = topLevel[nextTopLevel++];
29493
+ if (saved === void 0) return;
29494
+ await restoreOne(saved);
29495
+ }
29496
+ }));
28512
29497
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
28513
29498
  for (const saved of childRows) {
28514
29499
  const Class = this.deviceClasses[saved.type];
@@ -30599,6 +31584,12 @@ Object.freeze({
30599
31584
  addonId: null,
30600
31585
  access: "create"
30601
31586
  },
31587
+ "llm.cancel": {
31588
+ capName: "llm",
31589
+ capScope: "system",
31590
+ addonId: null,
31591
+ access: "create"
31592
+ },
30602
31593
  "llm.deleteModel": {
30603
31594
  capName: "llm",
30604
31595
  capScope: "system",
@@ -30683,6 +31674,12 @@ Object.freeze({
30683
31674
  addonId: null,
30684
31675
  access: "view"
30685
31676
  },
31677
+ "llm.resolveModelRef": {
31678
+ capName: "llm",
31679
+ capScope: "system",
31680
+ addonId: null,
31681
+ access: "create"
31682
+ },
30686
31683
  "llm.setDefault": {
30687
31684
  capName: "llm",
30688
31685
  capScope: "system",
@@ -32849,6 +33846,12 @@ Object.freeze({
32849
33846
  addonId: null,
32850
33847
  access: "create"
32851
33848
  },
33849
+ "sceneMonitor.resetScene": {
33850
+ capName: "scene-monitor",
33851
+ capScope: "device",
33852
+ addonId: null,
33853
+ access: "delete"
33854
+ },
32852
33855
  "sceneMonitor.updateScene": {
32853
33856
  capName: "scene-monitor",
32854
33857
  capScope: "device",
@@ -33527,6 +34530,12 @@ Object.freeze({
33527
34530
  addonId: null,
33528
34531
  access: "create"
33529
34532
  },
34533
+ "system.detectSiteLocation": {
34534
+ capName: "system",
34535
+ capScope: "system",
34536
+ addonId: null,
34537
+ access: "create"
34538
+ },
33530
34539
  "system.featureFlags": {
33531
34540
  capName: "system",
33532
34541
  capScope: "system",
@@ -33545,6 +34554,12 @@ Object.freeze({
33545
34554
  addonId: null,
33546
34555
  access: "view"
33547
34556
  },
34557
+ "system.getSiteLocation": {
34558
+ capName: "system",
34559
+ capScope: "system",
34560
+ addonId: null,
34561
+ access: "view"
34562
+ },
33548
34563
  "system.health": {
33549
34564
  capName: "system",
33550
34565
  capScope: "system",
@@ -33569,6 +34584,12 @@ Object.freeze({
33569
34584
  addonId: null,
33570
34585
  access: "create"
33571
34586
  },
34587
+ "system.setSiteLocation": {
34588
+ capName: "system",
34589
+ capScope: "system",
34590
+ addonId: null,
34591
+ access: "create"
34592
+ },
33572
34593
  "terminalSession.adoptLegacyMonitor": {
33573
34594
  capName: "terminal-session",
33574
34595
  capScope: "system",
@@ -34140,6 +35161,1704 @@ Object.freeze({
34140
35161
  access: "create"
34141
35162
  }
34142
35163
  });
35164
+ Object.freeze({
35165
+ "accessories.setChildHidden": [{
35166
+ name: "childDeviceId",
35167
+ form: "single",
35168
+ optional: false
35169
+ }, {
35170
+ name: "deviceId",
35171
+ form: "single",
35172
+ optional: false
35173
+ }],
35174
+ "addonSettings.getDeviceSettings": [{
35175
+ name: "deviceId",
35176
+ form: "single",
35177
+ optional: false
35178
+ }],
35179
+ "addonSettings.updateDeviceSettings": [{
35180
+ name: "deviceId",
35181
+ form: "single",
35182
+ optional: false
35183
+ }],
35184
+ "alarmPanel.arm": [{
35185
+ name: "deviceId",
35186
+ form: "single",
35187
+ optional: false
35188
+ }],
35189
+ "alarmPanel.disarm": [{
35190
+ name: "deviceId",
35191
+ form: "single",
35192
+ optional: false
35193
+ }],
35194
+ "alarmPanel.trigger": [{
35195
+ name: "deviceId",
35196
+ form: "single",
35197
+ optional: false
35198
+ }],
35199
+ "audioAnalysis.resolveDeviceSettings": [{
35200
+ name: "deviceId",
35201
+ form: "single",
35202
+ optional: false
35203
+ }],
35204
+ "audioAnalyzer.classify": [{
35205
+ name: "deviceId",
35206
+ form: "single",
35207
+ optional: true
35208
+ }],
35209
+ "audioMetrics.getCurrentSnapshot": [{
35210
+ name: "deviceId",
35211
+ form: "single",
35212
+ optional: false
35213
+ }],
35214
+ "audioMetrics.getHistory": [{
35215
+ name: "deviceId",
35216
+ form: "single",
35217
+ optional: false
35218
+ }],
35219
+ "automationControl.disable": [{
35220
+ name: "deviceId",
35221
+ form: "single",
35222
+ optional: false
35223
+ }],
35224
+ "automationControl.enable": [{
35225
+ name: "deviceId",
35226
+ form: "single",
35227
+ optional: false
35228
+ }],
35229
+ "automationControl.trigger": [{
35230
+ name: "deviceId",
35231
+ form: "single",
35232
+ optional: false
35233
+ }],
35234
+ "battery.wakeForStream": [{
35235
+ name: "deviceId",
35236
+ form: "single",
35237
+ optional: false
35238
+ }],
35239
+ "brightness.setBrightness": [{
35240
+ name: "deviceId",
35241
+ form: "single",
35242
+ optional: false
35243
+ }],
35244
+ "button.press": [{
35245
+ name: "deviceId",
35246
+ form: "single",
35247
+ optional: false
35248
+ }],
35249
+ "cameraCredentials.getCredentials": [{
35250
+ name: "deviceId",
35251
+ form: "single",
35252
+ optional: false
35253
+ }],
35254
+ "cameraStreams.getBrokerStreams": [{
35255
+ name: "deviceId",
35256
+ form: "single",
35257
+ optional: false
35258
+ }],
35259
+ "cameraStreams.getCameraStreams": [{
35260
+ name: "deviceId",
35261
+ form: "single",
35262
+ optional: false
35263
+ }],
35264
+ "cameraStreams.getProfileRtspEntries": [{
35265
+ name: "deviceId",
35266
+ form: "single",
35267
+ optional: false
35268
+ }],
35269
+ "cameraStreams.getRtspEntries": [{
35270
+ name: "deviceId",
35271
+ form: "single",
35272
+ optional: false
35273
+ }],
35274
+ "cameraStreams.pickStream": [{
35275
+ name: "deviceId",
35276
+ form: "single",
35277
+ optional: false
35278
+ }],
35279
+ "climateControl.setFanMode": [{
35280
+ name: "deviceId",
35281
+ form: "single",
35282
+ optional: false
35283
+ }],
35284
+ "climateControl.setMode": [{
35285
+ name: "deviceId",
35286
+ form: "single",
35287
+ optional: false
35288
+ }],
35289
+ "climateControl.setPreset": [{
35290
+ name: "deviceId",
35291
+ form: "single",
35292
+ optional: false
35293
+ }],
35294
+ "climateControl.setSwingHorizontal": [{
35295
+ name: "deviceId",
35296
+ form: "single",
35297
+ optional: false
35298
+ }],
35299
+ "climateControl.setSwingVertical": [{
35300
+ name: "deviceId",
35301
+ form: "single",
35302
+ optional: false
35303
+ }],
35304
+ "climateControl.setTarget": [{
35305
+ name: "deviceId",
35306
+ form: "single",
35307
+ optional: false
35308
+ }],
35309
+ "climateControl.setTargetHumidity": [{
35310
+ name: "deviceId",
35311
+ form: "single",
35312
+ optional: false
35313
+ }],
35314
+ "climateControl.setTargetRange": [{
35315
+ name: "deviceId",
35316
+ form: "single",
35317
+ optional: false
35318
+ }],
35319
+ "color.setColor": [{
35320
+ name: "deviceId",
35321
+ form: "single",
35322
+ optional: false
35323
+ }],
35324
+ "consumables.reset": [{
35325
+ name: "deviceId",
35326
+ form: "single",
35327
+ optional: false
35328
+ }],
35329
+ "control.setValue": [{
35330
+ name: "deviceId",
35331
+ form: "single",
35332
+ optional: false
35333
+ }],
35334
+ "cover.close": [{
35335
+ name: "deviceId",
35336
+ form: "single",
35337
+ optional: false
35338
+ }],
35339
+ "cover.open": [{
35340
+ name: "deviceId",
35341
+ form: "single",
35342
+ optional: false
35343
+ }],
35344
+ "cover.setPosition": [{
35345
+ name: "deviceId",
35346
+ form: "single",
35347
+ optional: false
35348
+ }],
35349
+ "cover.setTiltPosition": [{
35350
+ name: "deviceId",
35351
+ form: "single",
35352
+ optional: false
35353
+ }],
35354
+ "cover.stop": [{
35355
+ name: "deviceId",
35356
+ form: "single",
35357
+ optional: false
35358
+ }],
35359
+ "dayNight.getOptions": [{
35360
+ name: "deviceId",
35361
+ form: "single",
35362
+ optional: false
35363
+ }],
35364
+ "dayNight.setSettings": [{
35365
+ name: "deviceId",
35366
+ form: "single",
35367
+ optional: false
35368
+ }],
35369
+ "decoder.createSession": [{
35370
+ name: "deviceId",
35371
+ form: "single",
35372
+ optional: true
35373
+ }],
35374
+ "deviceAdoption.release": [{
35375
+ name: "camDeviceId",
35376
+ form: "single",
35377
+ optional: false
35378
+ }],
35379
+ "deviceAdoption.resync": [{
35380
+ name: "camDeviceId",
35381
+ form: "single",
35382
+ optional: false
35383
+ }],
35384
+ "deviceDiscovery.adoptDevice": [{
35385
+ name: "deviceId",
35386
+ form: "single",
35387
+ optional: false
35388
+ }],
35389
+ "deviceDiscovery.listDiscovered": [{
35390
+ name: "deviceId",
35391
+ form: "single",
35392
+ optional: false
35393
+ }],
35394
+ "deviceDiscovery.refreshDiscovery": [{
35395
+ name: "deviceId",
35396
+ form: "single",
35397
+ optional: false
35398
+ }],
35399
+ "deviceDiscovery.releaseDevice": [{
35400
+ name: "childDeviceId",
35401
+ form: "single",
35402
+ optional: false
35403
+ }, {
35404
+ name: "deviceId",
35405
+ form: "single",
35406
+ optional: false
35407
+ }],
35408
+ "deviceManager.adoptionRelease": [{
35409
+ name: "camDeviceId",
35410
+ form: "single",
35411
+ optional: false
35412
+ }],
35413
+ "deviceManager.adoptionResync": [{
35414
+ name: "camDeviceId",
35415
+ form: "single",
35416
+ optional: false
35417
+ }],
35418
+ "deviceManager.applyInitialMeta": [{
35419
+ name: "deviceId",
35420
+ form: "single",
35421
+ optional: false
35422
+ }, {
35423
+ name: "linkDeviceId",
35424
+ form: "single",
35425
+ optional: true
35426
+ }],
35427
+ "deviceManager.disable": [{
35428
+ name: "deviceId",
35429
+ form: "single",
35430
+ optional: false
35431
+ }],
35432
+ "deviceManager.enable": [{
35433
+ name: "deviceId",
35434
+ form: "single",
35435
+ optional: false
35436
+ }],
35437
+ "deviceManager.getBindings": [{
35438
+ name: "deviceId",
35439
+ form: "single",
35440
+ optional: false
35441
+ }],
35442
+ "deviceManager.getChildren": [{
35443
+ name: "parentDeviceId",
35444
+ form: "single",
35445
+ optional: false
35446
+ }],
35447
+ "deviceManager.getConfigSchema": [{
35448
+ name: "deviceId",
35449
+ form: "single",
35450
+ optional: false
35451
+ }],
35452
+ "deviceManager.getDevice": [{
35453
+ name: "deviceId",
35454
+ form: "single",
35455
+ optional: false
35456
+ }],
35457
+ "deviceManager.getDeviceAggregate": [{
35458
+ name: "deviceId",
35459
+ form: "single",
35460
+ optional: false
35461
+ }],
35462
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35463
+ name: "deviceId",
35464
+ form: "single",
35465
+ optional: false
35466
+ }],
35467
+ "deviceManager.getDeviceSettingsAggregate": [{
35468
+ name: "deviceId",
35469
+ form: "single",
35470
+ optional: false
35471
+ }],
35472
+ "deviceManager.getDeviceStatusAggregate": [{
35473
+ name: "deviceId",
35474
+ form: "single",
35475
+ optional: false
35476
+ }],
35477
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35478
+ name: "deviceIds",
35479
+ form: "array",
35480
+ optional: false
35481
+ }],
35482
+ "deviceManager.getLinkedDevices": [{
35483
+ name: "deviceId",
35484
+ form: "single",
35485
+ optional: false
35486
+ }],
35487
+ "deviceManager.getSettingsSchema": [{
35488
+ name: "deviceId",
35489
+ form: "single",
35490
+ optional: false
35491
+ }],
35492
+ "deviceManager.getStreamProfileMap": [{
35493
+ name: "deviceId",
35494
+ form: "single",
35495
+ optional: false
35496
+ }],
35497
+ "deviceManager.getStreamSources": [{
35498
+ name: "deviceId",
35499
+ form: "single",
35500
+ optional: false
35501
+ }],
35502
+ "deviceManager.getWireableFields": [{
35503
+ name: "deviceId",
35504
+ form: "single",
35505
+ optional: false
35506
+ }],
35507
+ "deviceManager.loadConfig": [{
35508
+ name: "deviceId",
35509
+ form: "single",
35510
+ optional: false
35511
+ }],
35512
+ "deviceManager.loadMeta": [{
35513
+ name: "deviceId",
35514
+ form: "single",
35515
+ optional: false
35516
+ }],
35517
+ "deviceManager.loadRuntimeState": [{
35518
+ name: "deviceId",
35519
+ form: "single",
35520
+ optional: false
35521
+ }],
35522
+ "deviceManager.persistConfig": [{
35523
+ name: "deviceId",
35524
+ form: "single",
35525
+ optional: false
35526
+ }],
35527
+ "deviceManager.probeStreams": [{
35528
+ name: "deviceId",
35529
+ form: "single",
35530
+ optional: false
35531
+ }],
35532
+ "deviceManager.registerDevice": [{
35533
+ name: "parentDeviceId",
35534
+ form: "single",
35535
+ optional: true
35536
+ }],
35537
+ "deviceManager.remove": [{
35538
+ name: "deviceId",
35539
+ form: "single",
35540
+ optional: false
35541
+ }],
35542
+ "deviceManager.removeDevice": [{
35543
+ name: "deviceId",
35544
+ form: "single",
35545
+ optional: false
35546
+ }],
35547
+ "deviceManager.runDeviceAction": [{
35548
+ name: "deviceId",
35549
+ form: "single",
35550
+ optional: false
35551
+ }],
35552
+ "deviceManager.setChildLayout": [{
35553
+ name: "deviceId",
35554
+ form: "single",
35555
+ optional: false
35556
+ }],
35557
+ "deviceManager.setDisabled": [{
35558
+ name: "deviceId",
35559
+ form: "single",
35560
+ optional: false
35561
+ }],
35562
+ "deviceManager.setDisplay": [{
35563
+ name: "deviceId",
35564
+ form: "single",
35565
+ optional: false
35566
+ }],
35567
+ "deviceManager.setIntegrationId": [{
35568
+ name: "deviceId",
35569
+ form: "single",
35570
+ optional: false
35571
+ }],
35572
+ "deviceManager.setLinkDeviceId": [{
35573
+ name: "deviceId",
35574
+ form: "single",
35575
+ optional: false
35576
+ }, {
35577
+ name: "linkDeviceId",
35578
+ form: "single",
35579
+ optional: true
35580
+ }],
35581
+ "deviceManager.setLocation": [{
35582
+ name: "deviceId",
35583
+ form: "single",
35584
+ optional: false
35585
+ }],
35586
+ "deviceManager.setMetadata": [{
35587
+ name: "deviceId",
35588
+ form: "single",
35589
+ optional: false
35590
+ }],
35591
+ "deviceManager.setName": [{
35592
+ name: "deviceId",
35593
+ form: "single",
35594
+ optional: false
35595
+ }],
35596
+ "deviceManager.setPrimaryChildEntityId": [{
35597
+ name: "deviceId",
35598
+ form: "single",
35599
+ optional: false
35600
+ }],
35601
+ "deviceManager.setRole": [{
35602
+ name: "deviceId",
35603
+ form: "single",
35604
+ optional: false
35605
+ }],
35606
+ "deviceManager.setStreamProfileMap": [{
35607
+ name: "deviceId",
35608
+ form: "single",
35609
+ optional: false
35610
+ }],
35611
+ "deviceManager.setType": [{
35612
+ name: "deviceId",
35613
+ form: "single",
35614
+ optional: false
35615
+ }],
35616
+ "deviceManager.setWrapperActive": [{
35617
+ name: "deviceId",
35618
+ form: "single",
35619
+ optional: false
35620
+ }],
35621
+ "deviceManager.testField": [{
35622
+ name: "deviceId",
35623
+ form: "single",
35624
+ optional: false
35625
+ }],
35626
+ "deviceManager.updateConfig": [{
35627
+ name: "deviceId",
35628
+ form: "single",
35629
+ optional: false
35630
+ }],
35631
+ "deviceManager.updateDeviceField": [{
35632
+ name: "deviceId",
35633
+ form: "single",
35634
+ optional: false
35635
+ }],
35636
+ "deviceManager.updateDeviceFieldsBatch": [{
35637
+ name: "deviceId",
35638
+ form: "single",
35639
+ optional: false
35640
+ }],
35641
+ "deviceOps.getConfigEntries": [{
35642
+ name: "deviceId",
35643
+ form: "single",
35644
+ optional: false
35645
+ }],
35646
+ "deviceOps.getRawState": [{
35647
+ name: "deviceId",
35648
+ form: "single",
35649
+ optional: false
35650
+ }],
35651
+ "deviceOps.getSettingsSchema": [{
35652
+ name: "deviceId",
35653
+ form: "single",
35654
+ optional: false
35655
+ }],
35656
+ "deviceOps.getStreamSources": [{
35657
+ name: "deviceId",
35658
+ form: "single",
35659
+ optional: false
35660
+ }],
35661
+ "deviceOps.removeDevice": [{
35662
+ name: "deviceId",
35663
+ form: "single",
35664
+ optional: false
35665
+ }],
35666
+ "deviceOps.runAction": [{
35667
+ name: "deviceId",
35668
+ form: "single",
35669
+ optional: false
35670
+ }],
35671
+ "deviceOps.setConfig": [{
35672
+ name: "deviceId",
35673
+ form: "single",
35674
+ optional: false
35675
+ }],
35676
+ "deviceState.getCapSlice": [{
35677
+ name: "deviceId",
35678
+ form: "single",
35679
+ optional: false
35680
+ }],
35681
+ "deviceState.getSnapshot": [{
35682
+ name: "deviceId",
35683
+ form: "single",
35684
+ optional: false
35685
+ }],
35686
+ "deviceState.setCapSlice": [{
35687
+ name: "deviceId",
35688
+ form: "single",
35689
+ optional: false
35690
+ }],
35691
+ "events.getEventClipUrl": [{
35692
+ name: "deviceId",
35693
+ form: "single",
35694
+ optional: false
35695
+ }],
35696
+ "events.getEvents": [{
35697
+ name: "deviceId",
35698
+ form: "single",
35699
+ optional: false
35700
+ }],
35701
+ "events.getEventThumbnail": [{
35702
+ name: "deviceId",
35703
+ form: "single",
35704
+ optional: false
35705
+ }],
35706
+ "faceGallery.getFaceByTrack": [{
35707
+ name: "deviceId",
35708
+ form: "single",
35709
+ optional: false
35710
+ }],
35711
+ "faceGallery.listRecentFaces": [{
35712
+ name: "deviceId",
35713
+ form: "single",
35714
+ optional: true
35715
+ }],
35716
+ "fanControl.setDirection": [{
35717
+ name: "deviceId",
35718
+ form: "single",
35719
+ optional: false
35720
+ }],
35721
+ "fanControl.setOscillating": [{
35722
+ name: "deviceId",
35723
+ form: "single",
35724
+ optional: false
35725
+ }],
35726
+ "fanControl.setPercentage": [{
35727
+ name: "deviceId",
35728
+ form: "single",
35729
+ optional: false
35730
+ }],
35731
+ "fanControl.setPreset": [{
35732
+ name: "deviceId",
35733
+ form: "single",
35734
+ optional: false
35735
+ }],
35736
+ "humidifier.setMode": [{
35737
+ name: "deviceId",
35738
+ form: "single",
35739
+ optional: false
35740
+ }],
35741
+ "humidifier.setOn": [{
35742
+ name: "deviceId",
35743
+ form: "single",
35744
+ optional: false
35745
+ }],
35746
+ "humidifier.setTargetHumidity": [{
35747
+ name: "deviceId",
35748
+ form: "single",
35749
+ optional: false
35750
+ }],
35751
+ "imageSettings.getOptions": [{
35752
+ name: "deviceId",
35753
+ form: "single",
35754
+ optional: false
35755
+ }],
35756
+ "imageSettings.setSettings": [{
35757
+ name: "deviceId",
35758
+ form: "single",
35759
+ optional: false
35760
+ }],
35761
+ "intercom.endTalkSession": [{
35762
+ name: "deviceId",
35763
+ form: "single",
35764
+ optional: false
35765
+ }],
35766
+ "intercom.handleAnswer": [{
35767
+ name: "deviceId",
35768
+ form: "single",
35769
+ optional: false
35770
+ }],
35771
+ "intercom.pushTalkAudio": [{
35772
+ name: "deviceId",
35773
+ form: "single",
35774
+ optional: false
35775
+ }],
35776
+ "intercom.startSession": [{
35777
+ name: "deviceId",
35778
+ form: "single",
35779
+ optional: false
35780
+ }],
35781
+ "intercom.startTalkSession": [{
35782
+ name: "deviceId",
35783
+ form: "single",
35784
+ optional: false
35785
+ }],
35786
+ "intercom.stopSession": [{
35787
+ name: "deviceId",
35788
+ form: "single",
35789
+ optional: false
35790
+ }],
35791
+ "lawnMowerControl.dock": [{
35792
+ name: "deviceId",
35793
+ form: "single",
35794
+ optional: false
35795
+ }],
35796
+ "lawnMowerControl.pause": [{
35797
+ name: "deviceId",
35798
+ form: "single",
35799
+ optional: false
35800
+ }],
35801
+ "lawnMowerControl.startMowing": [{
35802
+ name: "deviceId",
35803
+ form: "single",
35804
+ optional: false
35805
+ }],
35806
+ "lockControl.lock": [{
35807
+ name: "deviceId",
35808
+ form: "single",
35809
+ optional: false
35810
+ }],
35811
+ "lockControl.open": [{
35812
+ name: "deviceId",
35813
+ form: "single",
35814
+ optional: false
35815
+ }],
35816
+ "lockControl.unlock": [{
35817
+ name: "deviceId",
35818
+ form: "single",
35819
+ optional: false
35820
+ }],
35821
+ "mediaPlayer.next": [{
35822
+ name: "deviceId",
35823
+ form: "single",
35824
+ optional: false
35825
+ }],
35826
+ "mediaPlayer.pause": [{
35827
+ name: "deviceId",
35828
+ form: "single",
35829
+ optional: false
35830
+ }],
35831
+ "mediaPlayer.play": [{
35832
+ name: "deviceId",
35833
+ form: "single",
35834
+ optional: false
35835
+ }],
35836
+ "mediaPlayer.playMedia": [{
35837
+ name: "deviceId",
35838
+ form: "single",
35839
+ optional: false
35840
+ }],
35841
+ "mediaPlayer.previous": [{
35842
+ name: "deviceId",
35843
+ form: "single",
35844
+ optional: false
35845
+ }],
35846
+ "mediaPlayer.seek": [{
35847
+ name: "deviceId",
35848
+ form: "single",
35849
+ optional: false
35850
+ }],
35851
+ "mediaPlayer.selectSource": [{
35852
+ name: "deviceId",
35853
+ form: "single",
35854
+ optional: false
35855
+ }],
35856
+ "mediaPlayer.setMute": [{
35857
+ name: "deviceId",
35858
+ form: "single",
35859
+ optional: false
35860
+ }],
35861
+ "mediaPlayer.setRepeat": [{
35862
+ name: "deviceId",
35863
+ form: "single",
35864
+ optional: false
35865
+ }],
35866
+ "mediaPlayer.setShuffle": [{
35867
+ name: "deviceId",
35868
+ form: "single",
35869
+ optional: false
35870
+ }],
35871
+ "mediaPlayer.setVolume": [{
35872
+ name: "deviceId",
35873
+ form: "single",
35874
+ optional: false
35875
+ }],
35876
+ "mediaPlayer.stop": [{
35877
+ name: "deviceId",
35878
+ form: "single",
35879
+ optional: false
35880
+ }],
35881
+ "motion.isDetected": [{
35882
+ name: "deviceId",
35883
+ form: "single",
35884
+ optional: false
35885
+ }],
35886
+ "motionDetection.analyze": [{
35887
+ name: "deviceId",
35888
+ form: "single",
35889
+ optional: false
35890
+ }],
35891
+ "motionDetection.removeCamera": [{
35892
+ name: "deviceId",
35893
+ form: "single",
35894
+ optional: false
35895
+ }],
35896
+ "motionTrigger.setMotionTrigger": [{
35897
+ name: "deviceId",
35898
+ form: "single",
35899
+ optional: false
35900
+ }],
35901
+ "motionZones.getOptions": [{
35902
+ name: "deviceId",
35903
+ form: "single",
35904
+ optional: false
35905
+ }],
35906
+ "motionZones.setZone": [{
35907
+ name: "deviceId",
35908
+ form: "single",
35909
+ optional: false
35910
+ }],
35911
+ "nativeObjectDetection.setEnabled": [{
35912
+ name: "deviceId",
35913
+ form: "single",
35914
+ optional: false
35915
+ }],
35916
+ "networkQuality.getDeviceStats": [{
35917
+ name: "deviceId",
35918
+ form: "single",
35919
+ optional: false
35920
+ }],
35921
+ "networkQuality.reportClientStats": [{
35922
+ name: "deviceId",
35923
+ form: "single",
35924
+ optional: false
35925
+ }],
35926
+ "notificationRules.setDeviceMuted": [{
35927
+ name: "deviceId",
35928
+ form: "single",
35929
+ optional: false
35930
+ }],
35931
+ "notifier.cancel": [{
35932
+ name: "deviceId",
35933
+ form: "single",
35934
+ optional: false
35935
+ }],
35936
+ "notifier.send": [{
35937
+ name: "deviceId",
35938
+ form: "single",
35939
+ optional: false
35940
+ }],
35941
+ "osd.setOverlay": [{
35942
+ name: "deviceId",
35943
+ form: "single",
35944
+ optional: false
35945
+ }],
35946
+ "osdManager.clearSlotBinding": [{
35947
+ name: "deviceId",
35948
+ form: "single",
35949
+ optional: false
35950
+ }],
35951
+ "osdManager.copyDeviceConfiguration": [{
35952
+ name: "sourceDeviceId",
35953
+ form: "single",
35954
+ optional: false
35955
+ }, {
35956
+ name: "targetDeviceId",
35957
+ form: "single",
35958
+ optional: false
35959
+ }],
35960
+ "osdManager.getDeviceOsd": [{
35961
+ name: "deviceId",
35962
+ form: "single",
35963
+ optional: false
35964
+ }],
35965
+ "osdManager.getSourceCatalog": [{
35966
+ name: "deviceId",
35967
+ form: "single",
35968
+ optional: false
35969
+ }],
35970
+ "osdManager.previewSlot": [{
35971
+ name: "deviceId",
35972
+ form: "single",
35973
+ optional: false
35974
+ }],
35975
+ "osdManager.renderDevice": [{
35976
+ name: "deviceId",
35977
+ form: "single",
35978
+ optional: false
35979
+ }],
35980
+ "osdManager.setSlotBinding": [{
35981
+ name: "deviceId",
35982
+ form: "single",
35983
+ optional: false
35984
+ }],
35985
+ "petFeeder.callPet": [{
35986
+ name: "deviceId",
35987
+ form: "single",
35988
+ optional: false
35989
+ }],
35990
+ "petFeeder.cancelFeed": [{
35991
+ name: "deviceId",
35992
+ form: "single",
35993
+ optional: false
35994
+ }],
35995
+ "petFeeder.feed": [{
35996
+ name: "deviceId",
35997
+ form: "single",
35998
+ optional: false
35999
+ }],
36000
+ "petFeeder.markFoodReplenished": [{
36001
+ name: "deviceId",
36002
+ form: "single",
36003
+ optional: false
36004
+ }],
36005
+ "petFeeder.playSound": [{
36006
+ name: "deviceId",
36007
+ form: "single",
36008
+ optional: false
36009
+ }],
36010
+ "petFeeder.resetDesiccant": [{
36011
+ name: "deviceId",
36012
+ form: "single",
36013
+ optional: false
36014
+ }],
36015
+ "petFeeder.setChildLock": [{
36016
+ name: "deviceId",
36017
+ form: "single",
36018
+ optional: false
36019
+ }],
36020
+ "petFeeder.setFeedSound": [{
36021
+ name: "deviceId",
36022
+ form: "single",
36023
+ optional: false
36024
+ }],
36025
+ "petFeeder.setIndicatorLight": [{
36026
+ name: "deviceId",
36027
+ form: "single",
36028
+ optional: false
36029
+ }],
36030
+ "petFeeder.setVolume": [{
36031
+ name: "deviceId",
36032
+ form: "single",
36033
+ optional: false
36034
+ }],
36035
+ "pipelineAnalytics.clearTracks": [{
36036
+ name: "deviceId",
36037
+ form: "single",
36038
+ optional: false
36039
+ }],
36040
+ "pipelineAnalytics.completeRetrainTrack": [{
36041
+ name: "deviceId",
36042
+ form: "single",
36043
+ optional: false
36044
+ }],
36045
+ "pipelineAnalytics.deleteDeviceEvents": [{
36046
+ name: "deviceId",
36047
+ form: "single",
36048
+ optional: false
36049
+ }],
36050
+ "pipelineAnalytics.deleteTracks": [{
36051
+ name: "deviceId",
36052
+ form: "single",
36053
+ optional: false
36054
+ }],
36055
+ "pipelineAnalytics.deselectRetrainFrame": [{
36056
+ name: "deviceId",
36057
+ form: "single",
36058
+ optional: false
36059
+ }],
36060
+ "pipelineAnalytics.getActiveTracks": [{
36061
+ name: "deviceId",
36062
+ form: "single",
36063
+ optional: false
36064
+ }],
36065
+ "pipelineAnalytics.getAudioEvents": [{
36066
+ name: "deviceId",
36067
+ form: "single",
36068
+ optional: false
36069
+ }],
36070
+ "pipelineAnalytics.getEventDensity": [{
36071
+ name: "deviceId",
36072
+ form: "single",
36073
+ optional: false
36074
+ }],
36075
+ "pipelineAnalytics.getEventMedia": [{
36076
+ name: "deviceId",
36077
+ form: "single",
36078
+ optional: false
36079
+ }],
36080
+ "pipelineAnalytics.getKeyEvents": [{
36081
+ name: "deviceId",
36082
+ form: "single",
36083
+ optional: false
36084
+ }],
36085
+ "pipelineAnalytics.getMotionEvents": [{
36086
+ name: "deviceId",
36087
+ form: "single",
36088
+ optional: false
36089
+ }],
36090
+ "pipelineAnalytics.getObjectEvents": [{
36091
+ name: "deviceId",
36092
+ form: "single",
36093
+ optional: false
36094
+ }],
36095
+ "pipelineAnalytics.getRetrainExportUrl": [{
36096
+ name: "deviceIds",
36097
+ form: "array",
36098
+ optional: true
36099
+ }],
36100
+ "pipelineAnalytics.getSensorEvents": [{
36101
+ name: "deviceId",
36102
+ form: "single",
36103
+ optional: false
36104
+ }],
36105
+ "pipelineAnalytics.getTrack": [{
36106
+ name: "deviceId",
36107
+ form: "single",
36108
+ optional: false
36109
+ }],
36110
+ "pipelineAnalytics.getTrackMedia": [{
36111
+ name: "deviceId",
36112
+ form: "single",
36113
+ optional: false
36114
+ }],
36115
+ "pipelineAnalytics.getTrainingExportSummary": [{
36116
+ name: "deviceIds",
36117
+ form: "array",
36118
+ optional: true
36119
+ }],
36120
+ "pipelineAnalytics.getTrainingExportUrl": [{
36121
+ name: "deviceIds",
36122
+ form: "array",
36123
+ optional: true
36124
+ }],
36125
+ "pipelineAnalytics.listEventKinds": [{
36126
+ name: "deviceId",
36127
+ form: "single",
36128
+ optional: false
36129
+ }],
36130
+ "pipelineAnalytics.listEventKindsBatch": [{
36131
+ name: "deviceIds",
36132
+ form: "array",
36133
+ optional: false
36134
+ }],
36135
+ "pipelineAnalytics.listOpsLog": [{
36136
+ name: "deviceId",
36137
+ form: "single",
36138
+ optional: true
36139
+ }],
36140
+ "pipelineAnalytics.listRecentTracks": [{
36141
+ name: "deviceIds",
36142
+ form: "array",
36143
+ optional: false
36144
+ }],
36145
+ "pipelineAnalytics.listRetrainStaging": [{
36146
+ name: "deviceIds",
36147
+ form: "array",
36148
+ optional: true
36149
+ }],
36150
+ "pipelineAnalytics.listTrackMedia": [{
36151
+ name: "deviceId",
36152
+ form: "single",
36153
+ optional: false
36154
+ }],
36155
+ "pipelineAnalytics.listTracks": [{
36156
+ name: "deviceId",
36157
+ form: "single",
36158
+ optional: false
36159
+ }],
36160
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36161
+ name: "deviceId",
36162
+ form: "single",
36163
+ optional: false
36164
+ }],
36165
+ "pipelineAnalytics.pruneEventsBefore": [{
36166
+ name: "deviceId",
36167
+ form: "single",
36168
+ optional: false
36169
+ }],
36170
+ "pipelineAnalytics.pruneTracksBefore": [{
36171
+ name: "deviceId",
36172
+ form: "single",
36173
+ optional: false
36174
+ }],
36175
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36176
+ name: "deviceId",
36177
+ form: "single",
36178
+ optional: true
36179
+ }],
36180
+ "pipelineAnalytics.restageRetrainTrack": [{
36181
+ name: "deviceId",
36182
+ form: "single",
36183
+ optional: false
36184
+ }],
36185
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36186
+ name: "deviceId",
36187
+ form: "single",
36188
+ optional: false
36189
+ }],
36190
+ "pipelineAnalytics.searchObjectEvents": [{
36191
+ name: "deviceId",
36192
+ form: "single",
36193
+ optional: true
36194
+ }],
36195
+ "pipelineAnalytics.selectRetrainFrames": [{
36196
+ name: "deviceId",
36197
+ form: "single",
36198
+ optional: false
36199
+ }],
36200
+ "pipelineAnalytics.setTrackFlags": [{
36201
+ name: "deviceId",
36202
+ form: "single",
36203
+ optional: false
36204
+ }],
36205
+ "pipelineAnalytics.wipeAllAnalytics": [{
36206
+ name: "deviceId",
36207
+ form: "single",
36208
+ optional: false
36209
+ }],
36210
+ "pipelineExecutor.runPipeline": [{
36211
+ name: "deviceId",
36212
+ form: "single",
36213
+ optional: true
36214
+ }],
36215
+ "pipelineExecutor.runPipelineBatch": [{
36216
+ name: "deviceId",
36217
+ form: "single",
36218
+ optional: true
36219
+ }],
36220
+ "pipelineOrchestrator.assignAudio": [{
36221
+ name: "deviceId",
36222
+ form: "single",
36223
+ optional: false
36224
+ }],
36225
+ "pipelineOrchestrator.assignPipeline": [{
36226
+ name: "deviceId",
36227
+ form: "single",
36228
+ optional: false
36229
+ }],
36230
+ "pipelineOrchestrator.getAudioAssignment": [{
36231
+ name: "deviceId",
36232
+ form: "single",
36233
+ optional: false
36234
+ }],
36235
+ "pipelineOrchestrator.getCameraMetrics": [{
36236
+ name: "deviceId",
36237
+ form: "single",
36238
+ optional: false
36239
+ }],
36240
+ "pipelineOrchestrator.getCameraSettings": [{
36241
+ name: "deviceId",
36242
+ form: "single",
36243
+ optional: false
36244
+ }],
36245
+ "pipelineOrchestrator.getCameraStatus": [{
36246
+ name: "deviceId",
36247
+ form: "single",
36248
+ optional: false
36249
+ }],
36250
+ "pipelineOrchestrator.getCameraStatuses": [{
36251
+ name: "deviceIds",
36252
+ form: "array",
36253
+ optional: true
36254
+ }],
36255
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36256
+ name: "deviceId",
36257
+ form: "single",
36258
+ optional: false
36259
+ }],
36260
+ "pipelineOrchestrator.getCameraSwitches": [{
36261
+ name: "deviceId",
36262
+ form: "single",
36263
+ optional: false
36264
+ }],
36265
+ "pipelineOrchestrator.getPipelineAssignment": [{
36266
+ name: "deviceId",
36267
+ form: "single",
36268
+ optional: false
36269
+ }],
36270
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36271
+ name: "deviceId",
36272
+ form: "single",
36273
+ optional: false
36274
+ }],
36275
+ "pipelineOrchestrator.resolvePipeline": [{
36276
+ name: "deviceId",
36277
+ form: "single",
36278
+ optional: false
36279
+ }],
36280
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36281
+ name: "deviceId",
36282
+ form: "single",
36283
+ optional: false
36284
+ }],
36285
+ "pipelineOrchestrator.setCameraStepOverride": [{
36286
+ name: "deviceId",
36287
+ form: "single",
36288
+ optional: false
36289
+ }],
36290
+ "pipelineOrchestrator.setCameraStepToggle": [{
36291
+ name: "deviceId",
36292
+ form: "single",
36293
+ optional: false
36294
+ }],
36295
+ "pipelineOrchestrator.setCameraSwitch": [{
36296
+ name: "deviceId",
36297
+ form: "single",
36298
+ optional: false
36299
+ }],
36300
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36301
+ name: "deviceId",
36302
+ form: "single",
36303
+ optional: false
36304
+ }],
36305
+ "pipelineOrchestrator.unassignAudio": [{
36306
+ name: "deviceId",
36307
+ form: "single",
36308
+ optional: false
36309
+ }],
36310
+ "pipelineOrchestrator.unassignPipeline": [{
36311
+ name: "deviceId",
36312
+ form: "single",
36313
+ optional: false
36314
+ }],
36315
+ "pipelineRunner.attachCamera": [{
36316
+ name: "deviceId",
36317
+ form: "single",
36318
+ optional: false
36319
+ }],
36320
+ "pipelineRunner.detachCamera": [{
36321
+ name: "deviceId",
36322
+ form: "single",
36323
+ optional: false
36324
+ }],
36325
+ "pipelineRunner.getCameraMetrics": [{
36326
+ name: "deviceId",
36327
+ form: "single",
36328
+ optional: false
36329
+ }],
36330
+ "pipelineRunner.reportMotion": [{
36331
+ name: "deviceId",
36332
+ form: "single",
36333
+ optional: false
36334
+ }],
36335
+ "pipelineRunner.runDetailSubtree": [{
36336
+ name: "deviceId",
36337
+ form: "single",
36338
+ optional: false
36339
+ }],
36340
+ "pipelineRunner.runStatelessStep": [{
36341
+ name: "sourceDeviceId",
36342
+ form: "single",
36343
+ optional: false
36344
+ }],
36345
+ "plateGallery.getPlateByTrack": [{
36346
+ name: "deviceId",
36347
+ form: "single",
36348
+ optional: false
36349
+ }],
36350
+ "plateGallery.listPlates": [{
36351
+ name: "deviceId",
36352
+ form: "single",
36353
+ optional: true
36354
+ }],
36355
+ "privacyMask.getOptions": [{
36356
+ name: "deviceId",
36357
+ form: "single",
36358
+ optional: false
36359
+ }],
36360
+ "privacyMask.setAudioEnabled": [{
36361
+ name: "deviceId",
36362
+ form: "single",
36363
+ optional: false
36364
+ }],
36365
+ "privacyMask.setMask": [{
36366
+ name: "deviceId",
36367
+ form: "single",
36368
+ optional: false
36369
+ }],
36370
+ "ptz.continuousMove": [{
36371
+ name: "deviceId",
36372
+ form: "single",
36373
+ optional: false
36374
+ }],
36375
+ "ptz.deletePreset": [{
36376
+ name: "deviceId",
36377
+ form: "single",
36378
+ optional: false
36379
+ }],
36380
+ "ptz.getOptions": [{
36381
+ name: "deviceId",
36382
+ form: "single",
36383
+ optional: false
36384
+ }],
36385
+ "ptz.getPosition": [{
36386
+ name: "deviceId",
36387
+ form: "single",
36388
+ optional: false
36389
+ }],
36390
+ "ptz.getPresets": [{
36391
+ name: "deviceId",
36392
+ form: "single",
36393
+ optional: false
36394
+ }],
36395
+ "ptz.goHome": [{
36396
+ name: "deviceId",
36397
+ form: "single",
36398
+ optional: false
36399
+ }],
36400
+ "ptz.goToPreset": [{
36401
+ name: "deviceId",
36402
+ form: "single",
36403
+ optional: false
36404
+ }],
36405
+ "ptz.move": [{
36406
+ name: "deviceId",
36407
+ form: "single",
36408
+ optional: false
36409
+ }],
36410
+ "ptz.savePreset": [{
36411
+ name: "deviceId",
36412
+ form: "single",
36413
+ optional: false
36414
+ }],
36415
+ "ptz.setAutofocus": [{
36416
+ name: "deviceId",
36417
+ form: "single",
36418
+ optional: false
36419
+ }],
36420
+ "ptz.stop": [{
36421
+ name: "deviceId",
36422
+ form: "single",
36423
+ optional: false
36424
+ }],
36425
+ "ptzAutotrack.getSettings": [{
36426
+ name: "deviceId",
36427
+ form: "single",
36428
+ optional: false
36429
+ }],
36430
+ "ptzAutotrack.getStatus": [{
36431
+ name: "deviceId",
36432
+ form: "single",
36433
+ optional: false
36434
+ }],
36435
+ "ptzAutotrack.setEnabled": [{
36436
+ name: "deviceId",
36437
+ form: "single",
36438
+ optional: false
36439
+ }],
36440
+ "ptzAutotrack.setSettings": [{
36441
+ name: "deviceId",
36442
+ form: "single",
36443
+ optional: false
36444
+ }],
36445
+ "reboot.reboot": [{
36446
+ name: "deviceId",
36447
+ form: "single",
36448
+ optional: false
36449
+ }],
36450
+ "recording.deleteFootprint": [{
36451
+ name: "deviceId",
36452
+ form: "single",
36453
+ optional: false
36454
+ }],
36455
+ "recording.getAvailability": [{
36456
+ name: "deviceId",
36457
+ form: "single",
36458
+ optional: false
36459
+ }],
36460
+ "recording.getDaysWithRecordings": [{
36461
+ name: "deviceId",
36462
+ form: "single",
36463
+ optional: false
36464
+ }],
36465
+ "recording.getDeviceConfig": [{
36466
+ name: "deviceId",
36467
+ form: "single",
36468
+ optional: false
36469
+ }],
36470
+ "recording.getPlaybackManifest": [{
36471
+ name: "deviceId",
36472
+ form: "single",
36473
+ optional: false
36474
+ }],
36475
+ "recording.listOpsLog": [{
36476
+ name: "deviceId",
36477
+ form: "single",
36478
+ optional: true
36479
+ }],
36480
+ "recording.locateSegment": [{
36481
+ name: "deviceId",
36482
+ form: "single",
36483
+ optional: false
36484
+ }],
36485
+ "recording.pruneFootage": [{
36486
+ name: "deviceId",
36487
+ form: "single",
36488
+ optional: false
36489
+ }],
36490
+ "recording.readGopBytes": [{
36491
+ name: "deviceId",
36492
+ form: "single",
36493
+ optional: false
36494
+ }],
36495
+ "recording.readSegmentBytes": [{
36496
+ name: "deviceId",
36497
+ form: "single",
36498
+ optional: false
36499
+ }],
36500
+ "recording.relocateFootage": [{
36501
+ name: "deviceId",
36502
+ form: "single",
36503
+ optional: true
36504
+ }],
36505
+ "recording.renderClip": [{
36506
+ name: "deviceId",
36507
+ form: "single",
36508
+ optional: false
36509
+ }],
36510
+ "recording.renderGif": [{
36511
+ name: "deviceId",
36512
+ form: "single",
36513
+ optional: false
36514
+ }],
36515
+ "recording.rescanStorage": [{
36516
+ name: "deviceId",
36517
+ form: "single",
36518
+ optional: false
36519
+ }],
36520
+ "recording.setDeviceConfig": [{
36521
+ name: "deviceId",
36522
+ form: "single",
36523
+ optional: false
36524
+ }],
36525
+ "recording.startStorageMigrationMove": [{
36526
+ name: "deviceId",
36527
+ form: "single",
36528
+ optional: true
36529
+ }],
36530
+ "recordingExport.createExport": [{
36531
+ name: "deviceId",
36532
+ form: "single",
36533
+ optional: false
36534
+ }],
36535
+ "recordingExport.listExports": [{
36536
+ name: "deviceId",
36537
+ form: "single",
36538
+ optional: true
36539
+ }],
36540
+ "sceneMonitor.captureReference": [{
36541
+ name: "deviceId",
36542
+ form: "single",
36543
+ optional: false
36544
+ }],
36545
+ "sceneMonitor.createScene": [{
36546
+ name: "deviceId",
36547
+ form: "single",
36548
+ optional: false
36549
+ }],
36550
+ "sceneMonitor.deleteReference": [{
36551
+ name: "deviceId",
36552
+ form: "single",
36553
+ optional: false
36554
+ }],
36555
+ "sceneMonitor.deleteScene": [{
36556
+ name: "deviceId",
36557
+ form: "single",
36558
+ optional: false
36559
+ }],
36560
+ "sceneMonitor.listScenes": [{
36561
+ name: "deviceId",
36562
+ form: "single",
36563
+ optional: false
36564
+ }],
36565
+ "sceneMonitor.recheckNow": [{
36566
+ name: "deviceId",
36567
+ form: "single",
36568
+ optional: false
36569
+ }],
36570
+ "sceneMonitor.resetScene": [{
36571
+ name: "deviceId",
36572
+ form: "single",
36573
+ optional: false
36574
+ }],
36575
+ "sceneMonitor.updateScene": [{
36576
+ name: "deviceId",
36577
+ form: "single",
36578
+ optional: false
36579
+ }],
36580
+ "scriptRunner.run": [{
36581
+ name: "deviceId",
36582
+ form: "single",
36583
+ optional: false
36584
+ }],
36585
+ "scriptRunner.stop": [{
36586
+ name: "deviceId",
36587
+ form: "single",
36588
+ optional: false
36589
+ }],
36590
+ "snapshot.getSnapshot": [{
36591
+ name: "deviceId",
36592
+ form: "single",
36593
+ optional: false
36594
+ }],
36595
+ "snapshot.getSnapshotLinks": [{
36596
+ name: "targets",
36597
+ form: "object-array",
36598
+ optional: false,
36599
+ itemField: "deviceId"
36600
+ }],
36601
+ "snapshot.getSnapshotOverview": [{
36602
+ name: "deviceIds",
36603
+ form: "array",
36604
+ optional: false
36605
+ }],
36606
+ "snapshot.invalidateCache": [{
36607
+ name: "deviceId",
36608
+ form: "single",
36609
+ optional: false
36610
+ }],
36611
+ "streamBroker.acquireEgressTranscode": [{
36612
+ name: "deviceId",
36613
+ form: "single",
36614
+ optional: false
36615
+ }],
36616
+ "streamBroker.assignProfile": [{
36617
+ name: "deviceId",
36618
+ form: "single",
36619
+ optional: false
36620
+ }],
36621
+ "streamBroker.getDeviceAudioMute": [{
36622
+ name: "deviceId",
36623
+ form: "single",
36624
+ optional: false
36625
+ }],
36626
+ "streamBroker.getStreamWithCodec": [{
36627
+ name: "deviceId",
36628
+ form: "single",
36629
+ optional: false
36630
+ }],
36631
+ "streamBroker.produceEventMedia": [{
36632
+ name: "deviceId",
36633
+ form: "single",
36634
+ optional: false
36635
+ }],
36636
+ "streamBroker.publishCameraStream": [{
36637
+ name: "deviceId",
36638
+ form: "single",
36639
+ optional: false
36640
+ }],
36641
+ "streamBroker.renderPreBufferClip": [{
36642
+ name: "deviceId",
36643
+ form: "single",
36644
+ optional: false
36645
+ }],
36646
+ "streamBroker.restartProfile": [{
36647
+ name: "deviceId",
36648
+ form: "single",
36649
+ optional: false
36650
+ }],
36651
+ "streamBroker.retractCameraStream": [{
36652
+ name: "deviceId",
36653
+ form: "single",
36654
+ optional: false
36655
+ }],
36656
+ "streamBroker.setDeviceAudioMute": [{
36657
+ name: "deviceId",
36658
+ form: "single",
36659
+ optional: false
36660
+ }],
36661
+ "streamBroker.unassignProfile": [{
36662
+ name: "deviceId",
36663
+ form: "single",
36664
+ optional: false
36665
+ }],
36666
+ "streamCatalog.getCatalog": [{
36667
+ name: "deviceId",
36668
+ form: "single",
36669
+ optional: false
36670
+ }],
36671
+ "streamParams.getConfigSchema": [{
36672
+ name: "deviceId",
36673
+ form: "single",
36674
+ optional: false
36675
+ }],
36676
+ "streamParams.getOptions": [{
36677
+ name: "deviceId",
36678
+ form: "single",
36679
+ optional: false
36680
+ }],
36681
+ "streamParams.setProfile": [{
36682
+ name: "deviceId",
36683
+ form: "single",
36684
+ optional: false
36685
+ }],
36686
+ "switch.setState": [{
36687
+ name: "deviceId",
36688
+ form: "single",
36689
+ optional: false
36690
+ }],
36691
+ "vacuumControl.locate": [{
36692
+ name: "deviceId",
36693
+ form: "single",
36694
+ optional: false
36695
+ }],
36696
+ "vacuumControl.pause": [{
36697
+ name: "deviceId",
36698
+ form: "single",
36699
+ optional: false
36700
+ }],
36701
+ "vacuumControl.returnToBase": [{
36702
+ name: "deviceId",
36703
+ form: "single",
36704
+ optional: false
36705
+ }],
36706
+ "vacuumControl.setFanSpeed": [{
36707
+ name: "deviceId",
36708
+ form: "single",
36709
+ optional: false
36710
+ }],
36711
+ "vacuumControl.start": [{
36712
+ name: "deviceId",
36713
+ form: "single",
36714
+ optional: false
36715
+ }],
36716
+ "vacuumControl.stop": [{
36717
+ name: "deviceId",
36718
+ form: "single",
36719
+ optional: false
36720
+ }],
36721
+ "valve.close": [{
36722
+ name: "deviceId",
36723
+ form: "single",
36724
+ optional: false
36725
+ }],
36726
+ "valve.open": [{
36727
+ name: "deviceId",
36728
+ form: "single",
36729
+ optional: false
36730
+ }],
36731
+ "valve.setPosition": [{
36732
+ name: "deviceId",
36733
+ form: "single",
36734
+ optional: false
36735
+ }],
36736
+ "valve.stop": [{
36737
+ name: "deviceId",
36738
+ form: "single",
36739
+ optional: false
36740
+ }],
36741
+ "videoclips.getClipPlayback": [{
36742
+ name: "deviceId",
36743
+ form: "single",
36744
+ optional: false
36745
+ }],
36746
+ "videoclips.listClips": [{
36747
+ name: "deviceId",
36748
+ form: "single",
36749
+ optional: false
36750
+ }],
36751
+ "waterHeater.setAway": [{
36752
+ name: "deviceId",
36753
+ form: "single",
36754
+ optional: false
36755
+ }],
36756
+ "waterHeater.setOperationMode": [{
36757
+ name: "deviceId",
36758
+ form: "single",
36759
+ optional: false
36760
+ }],
36761
+ "waterHeater.setTargetTemp": [{
36762
+ name: "deviceId",
36763
+ form: "single",
36764
+ optional: false
36765
+ }],
36766
+ "webrtcSession.addIceCandidate": [{
36767
+ name: "deviceId",
36768
+ form: "single",
36769
+ optional: false
36770
+ }],
36771
+ "webrtcSession.closeSession": [{
36772
+ name: "deviceId",
36773
+ form: "single",
36774
+ optional: false
36775
+ }],
36776
+ "webrtcSession.createSession": [{
36777
+ name: "deviceId",
36778
+ form: "single",
36779
+ optional: false
36780
+ }],
36781
+ "webrtcSession.getIceCandidates": [{
36782
+ name: "deviceId",
36783
+ form: "single",
36784
+ optional: false
36785
+ }],
36786
+ "webrtcSession.getSessionState": [{
36787
+ name: "deviceId",
36788
+ form: "single",
36789
+ optional: false
36790
+ }],
36791
+ "webrtcSession.handleAnswer": [{
36792
+ name: "deviceId",
36793
+ form: "single",
36794
+ optional: false
36795
+ }],
36796
+ "webrtcSession.handleOffer": [{
36797
+ name: "deviceId",
36798
+ form: "single",
36799
+ optional: false
36800
+ }],
36801
+ "webrtcSession.hasAdaptiveBitrate": [{
36802
+ name: "deviceId",
36803
+ form: "single",
36804
+ optional: false
36805
+ }],
36806
+ "webrtcSession.listStreams": [{
36807
+ name: "deviceId",
36808
+ form: "single",
36809
+ optional: false
36810
+ }],
36811
+ "zoneAnalytics.getCameraHistory": [{
36812
+ name: "deviceId",
36813
+ form: "single",
36814
+ optional: false
36815
+ }],
36816
+ "zoneAnalytics.getCurrentSnapshot": [{
36817
+ name: "deviceId",
36818
+ form: "single",
36819
+ optional: false
36820
+ }],
36821
+ "zoneAnalytics.getUnzonedHistory": [{
36822
+ name: "deviceId",
36823
+ form: "single",
36824
+ optional: false
36825
+ }],
36826
+ "zoneAnalytics.getZoneHistory": [{
36827
+ name: "deviceId",
36828
+ form: "single",
36829
+ optional: false
36830
+ }],
36831
+ "zoneRules.listRules": [{
36832
+ name: "deviceId",
36833
+ form: "single",
36834
+ optional: false
36835
+ }],
36836
+ "zoneRules.setRules": [{
36837
+ name: "deviceId",
36838
+ form: "single",
36839
+ optional: false
36840
+ }],
36841
+ "zones.addZone": [{
36842
+ name: "deviceId",
36843
+ form: "single",
36844
+ optional: false
36845
+ }],
36846
+ "zones.listZones": [{
36847
+ name: "deviceId",
36848
+ form: "single",
36849
+ optional: false
36850
+ }],
36851
+ "zones.removeZone": [{
36852
+ name: "deviceId",
36853
+ form: "single",
36854
+ optional: false
36855
+ }],
36856
+ "zones.updateZone": [{
36857
+ name: "deviceId",
36858
+ form: "single",
36859
+ optional: false
36860
+ }]
36861
+ });
34143
36862
  Object.freeze({
34144
36863
  "broker": "broker",
34145
36864
  "device-export": "device-export",