@camstack/addon-provider-rademacher 0.2.16 → 0.2.17

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
@@ -984,7 +984,7 @@ var Rademacher = class {
984
984
  }
985
985
  };
986
986
  //#endregion
987
- //#region ../types/dist/event-category-Cv9dO26A.mjs
987
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
988
988
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
989
989
  EventCategory["SystemBoot"] = "system.boot";
990
990
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1191,6 +1191,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1191
1191
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
1192
1192
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
1193
1193
  /**
1194
+ * A node the orchestrator would otherwise place cameras on has NO usable
1195
+ * inference device: the operator enabled one or more accelerators there and
1196
+ * the live probe reports every one of them unavailable. Emitted once per
1197
+ * TRANSITION into that state (never per dispatch), and the node is dropped
1198
+ * from the placement candidate set for as long as it holds.
1199
+ *
1200
+ * This exists because the state was previously invisible: little-unraid
1201
+ * absorbed 283k inference errors in a day while still being handed cameras,
1202
+ * and nothing in the system said so.
1203
+ *
1204
+ * A node with no accelerators configured at all is NOT this — its devices
1205
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
1206
+ * serves it exactly as before.
1207
+ */
1208
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
1209
+ /**
1210
+ * A camera has an OPEN detection session and has produced no detection at
1211
+ * all for longer than the blind threshold — the camera is being decoded and
1212
+ * inferred and is returning nothing. Emitted once per transition into blind,
1213
+ * per camera.
1214
+ *
1215
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
1216
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
1217
+ * camera" produce byte-identical silence.
1218
+ */
1219
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
1220
+ /**
1194
1221
  * Per-camera pipeline config was mutated by the orchestrator
1195
1222
  * (3-level settings change via `setAgentAddonDefaults` /
1196
1223
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -11875,6 +11902,8 @@ var QueryFilterSchema = object({
11875
11902
  where: record(string(), unknown()).optional(),
11876
11903
  whereIn: record(string(), array(unknown())).optional(),
11877
11904
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11905
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
11906
+ whereNot: record(string(), unknown()).optional(),
11878
11907
  orderBy: object({
11879
11908
  field: string(),
11880
11909
  direction: _enum(["asc", "desc"])
@@ -11894,7 +11923,8 @@ var QueryFilterSchema = object({
11894
11923
  var MutationFilterSchema = object({
11895
11924
  where: record(string(), unknown()).optional(),
11896
11925
  whereIn: record(string(), array(unknown())).optional(),
11897
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11926
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11927
+ whereNot: record(string(), unknown()).optional()
11898
11928
  });
11899
11929
  /** A single stored record: `{ id, data }`. */
11900
11930
  var SettingsRecordSchema = object({
@@ -13413,6 +13443,17 @@ var LlmImageSchema = object({
13413
13443
  bytes: _instanceof(Uint8Array),
13414
13444
  mimeType: string()
13415
13445
  });
13446
+ /**
13447
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
13448
+ * the flag is what a consumer table flips, the count is what the operator tunes.
13449
+ * A retry doubles the wall time of a call, so the two gates that run inside a
13450
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
13451
+ */
13452
+ var LlmRetryPolicySchema = object({
13453
+ enabled: boolean().default(false),
13454
+ /** Total attempts INCLUDING the first. 1 = no retry. */
13455
+ maxAttempts: number().int().min(1).max(5).default(1)
13456
+ });
13416
13457
  var LlmGenerateBaseInputSchema = object({
13417
13458
  /** Collection routing (the notification-output posture). */
13418
13459
  addonId: string().optional(),
@@ -13427,7 +13468,28 @@ var LlmGenerateBaseInputSchema = object({
13427
13468
  jsonSchema: record(string(), unknown()).optional(),
13428
13469
  /** Per-call override of the profile default. */
13429
13470
  maxTokens: number().int().positive().optional(),
13430
- temperature: number().optional()
13471
+ temperature: number().optional(),
13472
+ /** Per-call override of the profile default (nucleus sampling). */
13473
+ topP: number().min(0).max(1).optional(),
13474
+ /** Per-call override of the profile default (top-k sampling). */
13475
+ topK: number().int().positive().optional(),
13476
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
13477
+ timeoutMs: number().int().positive().optional(),
13478
+ /** Per-call override; beats both the consumer table and the profile. */
13479
+ retry: LlmRetryPolicySchema.optional(),
13480
+ /**
13481
+ * Caller-minted id that makes this generation CANCELLABLE.
13482
+ *
13483
+ * Without it a caller that stops waiting cannot stop the work: the gates race
13484
+ * the call against 8 s and free their own slot when the timer wins, while the
13485
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
13486
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
13487
+ * not generations, and the real load is unbounded.
13488
+ *
13489
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
13490
+ * `llm.cancel({ requestId })` tears the socket down.
13491
+ */
13492
+ requestId: string().optional()
13431
13493
  });
13432
13494
  /**
13433
13495
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -13440,6 +13502,18 @@ var LlmGenerateBaseInputSchema = object({
13440
13502
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
13441
13503
  * watchdog — operator decision #3).
13442
13504
  */
13505
+ /**
13506
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
13507
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
13508
+ * REF rather than looked up at install time, so what the operator approved in
13509
+ * the preview is exactly what the node downloads.
13510
+ */
13511
+ var ManagedModelExtraFileSchema = object({
13512
+ url: string(),
13513
+ filename: string(),
13514
+ sizeBytes: number(),
13515
+ sha256: string().optional()
13516
+ });
13443
13517
  var ManagedModelRefSchema = discriminatedUnion("kind", [
13444
13518
  object({
13445
13519
  kind: literal("catalog"),
@@ -13448,7 +13522,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
13448
13522
  object({
13449
13523
  kind: literal("url"),
13450
13524
  url: string(),
13451
- sha256: string().optional()
13525
+ sha256: string().optional(),
13526
+ /** Picker/status label; the file basename when absent. */
13527
+ label: string().optional(),
13528
+ sizeBytes: number().optional(),
13529
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
13452
13530
  }),
13453
13531
  object({
13454
13532
  kind: literal("path"),
@@ -13466,13 +13544,82 @@ var ManagedRuntimeConfigSchema = object({
13466
13544
  gpuLayers: number().int().default(0),
13467
13545
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
13468
13546
  threads: number().int().optional(),
13469
- /** Concurrent slots. */
13547
+ /** Concurrent slots (`--parallel`). */
13470
13548
  parallel: number().int().default(1),
13549
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
13550
+ batchSize: number().int().positive().optional(),
13551
+ /** Physical batch / micro-batch (`-ub`). */
13552
+ ubatchSize: number().int().positive().optional(),
13553
+ /**
13554
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
13555
+ * is a no-op elsewhere, so it is offered rather than assumed.
13556
+ */
13557
+ flashAttention: boolean().default(false),
13558
+ /**
13559
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
13560
+ * inference. Costs the full model size in resident memory — which is exactly
13561
+ * what the RAM budget is counting.
13562
+ */
13563
+ mlock: boolean().default(false),
13564
+ /**
13565
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
13566
+ * start, but avoids the page-fault stalls a network or spinning-disk model
13567
+ * store produces on every first token.
13568
+ */
13569
+ noMmap: boolean().default(false),
13570
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
13571
+ * cheapest way to fit a longer context in the same RAM. */
13572
+ cacheTypeK: _enum([
13573
+ "f32",
13574
+ "f16",
13575
+ "q8_0",
13576
+ "q5_1",
13577
+ "q5_0",
13578
+ "q4_1",
13579
+ "q4_0"
13580
+ ]).optional(),
13581
+ cacheTypeV: _enum([
13582
+ "f32",
13583
+ "f16",
13584
+ "q8_0",
13585
+ "q5_1",
13586
+ "q5_0",
13587
+ "q4_1",
13588
+ "q4_0"
13589
+ ]).optional(),
13590
+ /**
13591
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
13592
+ * (which most vision chat templates need and some language-only models
13593
+ * dislike), `--cont-batching`, `--rope-scaling`, …
13594
+ *
13595
+ * It is NOT a second place to set the flags above. A token that collides
13596
+ * with a typed field is REJECTED at start, naming the field that owns it
13597
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
13598
+ * the "two switches that disagree" failure this repo has already shipped
13599
+ * twice (D62).
13600
+ */
13601
+ extraArgs: array(string()).default([]),
13471
13602
  /** Else lazy: first generate boots it. */
13472
13603
  autoStart: boolean().default(false),
13473
13604
  /** 0 = never; frees RAM after quiet periods. */
13474
13605
  idleStopMinutes: number().int().default(30)
13475
13606
  });
13607
+ /**
13608
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
13609
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
13610
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
13611
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
13612
+ */
13613
+ var LlmDownloadProgressSchema = object({
13614
+ phase: _enum(["downloading", "verifying"]),
13615
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
13616
+ file: string(),
13617
+ fileIndex: number().int(),
13618
+ fileCount: number().int(),
13619
+ /** Across the WHOLE install, not the current file. */
13620
+ downloadedBytes: number(),
13621
+ totalBytes: number().optional()
13622
+ });
13476
13623
  var LlmRuntimeStatusSchema = object({
13477
13624
  /** Status is ALWAYS node-qualified. */
13478
13625
  nodeId: string(),
@@ -13489,6 +13636,8 @@ var LlmRuntimeStatusSchema = object({
13489
13636
  modelPath: string().optional(),
13490
13637
  modelId: string().optional(),
13491
13638
  downloadProgress: number().min(0).max(1).optional(),
13639
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
13640
+ download: LlmDownloadProgressSchema.optional(),
13492
13641
  lastError: string().optional(),
13493
13642
  crashesInWindow: number(),
13494
13643
  /** Child RSS (sampled best-effort). */
@@ -13499,7 +13648,14 @@ var LlmNodeModelSchema = object({
13499
13648
  file: string(),
13500
13649
  sizeBytes: number(),
13501
13650
  catalogId: string().optional(),
13502
- installedAt: number().optional()
13651
+ installedAt: number().optional(),
13652
+ /**
13653
+ * Absolute path on the node. Present so a file that is on disk but matches
13654
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
13655
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
13656
+ * it the picker could list such a file and do nothing with it.
13657
+ */
13658
+ path: string().optional()
13503
13659
  });
13504
13660
  var LlmRuntimeDiskUsageSchema = object({
13505
13661
  nodeId: string(),
@@ -13555,10 +13711,47 @@ var LlmProfileSchema = object({
13555
13711
  baseUrl: string().optional(),
13556
13712
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
13557
13713
  apiKey: string().optional(),
13714
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
13715
+ * degraded to text — that shipped once and produced a confident answer to a
13716
+ * question about a picture nobody sent. */
13558
13717
  supportsVision: boolean(),
13559
13718
  temperature: number().min(0).max(2).optional(),
13719
+ /** Nucleus sampling. Every wire we speak has it. */
13720
+ topP: number().min(0).max(1).optional(),
13721
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
13722
+ * wire does, and the client drops it there (measured: the request body gets
13723
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
13724
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
13725
+ topK: number().int().positive().optional(),
13560
13726
  maxTokens: number().int().positive().optional(),
13727
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
13728
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
13729
+ * the model with, so it is the one field that changes a PROCESS. */
13730
+ contextLength: number().int().positive().optional(),
13731
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
13732
+ * two system prompts fighting is worse than either alone). */
13733
+ systemPrompt: string().optional(),
13734
+ /** Total generation bound — the only one a unary call has. */
13561
13735
  timeoutMs: number().int().positive().default(6e4),
13736
+ /** The TCP handshake only — "is the port even open". NOT the wait for
13737
+ * response headers: on the LM Studio / llama-server wire those are written
13738
+ * once the model has finished loading, so they belong to the bound below. */
13739
+ connectTimeoutMs: number().int().positive().default(1e4),
13740
+ /** Accepted, but no output yet — response headers included, because a cold
13741
+ * GPU load is exactly what happens before them. */
13742
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
13743
+ /** Output started then stopped. */
13744
+ idleTimeoutMs: number().int().positive().default(6e4),
13745
+ /** Profile-level default. The per-consumer table and a per-call override
13746
+ * both beat it — see `resolveRetryPolicy`. */
13747
+ retry: LlmRetryPolicySchema.default({
13748
+ enabled: false,
13749
+ maxAttempts: 1
13750
+ }),
13751
+ /** Whether this profile may use tools. The tool-call plumbing rides the
13752
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
13753
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
13754
+ toolsEnabled: boolean().default(false),
13562
13755
  extraHeaders: record(string(), string()).optional(),
13563
13756
  /** kind === 'managed-local' only (spec §4). */
13564
13757
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -13608,6 +13801,36 @@ var ManagedModelCatalogEntrySchema = object({
13608
13801
  /** Vision models: companion projector file. */
13609
13802
  mmprojUrl: string().optional()
13610
13803
  });
13804
+ /**
13805
+ * The outcome of turning one operator-typed Hugging Face reference into a
13806
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
13807
+ * I will not pick for you" is a normal answer the UI has to render, not an
13808
+ * exception.
13809
+ *
13810
+ * `candidates` is the whole reason the refusal is usable — every string in it
13811
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
13812
+ */
13813
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
13814
+ ok: literal(true),
13815
+ /** Ready to hand to `installModel` unchanged. */
13816
+ model: ManagedModelRefSchema,
13817
+ label: string(),
13818
+ repo: string(),
13819
+ quantization: string(),
13820
+ purpose: _enum(["text", "vision"]),
13821
+ totalBytes: number(),
13822
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
13823
+ * see that 0.9 GB of it is a projector they did not name. */
13824
+ extraFilenames: array(string())
13825
+ }), object({
13826
+ ok: literal(false),
13827
+ code: string(),
13828
+ message: string(),
13829
+ candidates: array(string()).optional(),
13830
+ /** Set when the refusal was only the ceiling: re-calling with
13831
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
13832
+ requiredBytes: number().optional()
13833
+ })]);
13611
13834
  var LlmRuntimeNodeSchema = object({
13612
13835
  nodeId: string(),
13613
13836
  reachable: boolean(),
@@ -13620,7 +13843,10 @@ var ProfileRefInputSchema = object({
13620
13843
  addonId: string(),
13621
13844
  profileId: string()
13622
13845
  });
13623
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13846
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
13847
+ addonId: string().optional(),
13848
+ requestId: string()
13849
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13624
13850
  kind: "mutation",
13625
13851
  auth: "admin"
13626
13852
  }), method(ProfileRefInputSchema, _void(), {
@@ -13641,6 +13867,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
13641
13867
  consumer: string().optional(),
13642
13868
  profileId: string().optional()
13643
13869
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
13870
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
13871
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
13872
+ ref: string(),
13873
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
13874
+ maxBytes: number().positive().optional()
13875
+ }), HfModelResolutionSchema, {
13876
+ kind: "mutation",
13877
+ auth: "admin"
13878
+ }), method(object({
13644
13879
  nodeId: string(),
13645
13880
  model: ManagedModelRefSchema
13646
13881
  }), _void(), {
@@ -15288,6 +15523,8 @@ var NcSystemEventKindSchema = _enum([
15288
15523
  "stream-offline",
15289
15524
  "node-online",
15290
15525
  "node-offline",
15526
+ "node-inference-unavailable",
15527
+ "detection-blind",
15291
15528
  "addon-update-available",
15292
15529
  "server-update-available",
15293
15530
  "alarm-triggered",
@@ -15349,7 +15586,16 @@ var NcScheduleSchema = object({
15349
15586
  });
15350
15587
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
15351
15588
  var NcPlateMatcherSchema = object({
15352
- values: array(string().min(1)).min(1),
15589
+ /**
15590
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
15591
+ * pipeline could read** — the plate half of "no selection = no narrowing",
15592
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
15593
+ * rather than merely seen. A subject carrying no plate still fails.
15594
+ *
15595
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
15596
+ * ever persisted an empty list, so widening it cannot change an existing rule.
15597
+ */
15598
+ values: array(string().min(1)),
15353
15599
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
15354
15600
  maxDistance: number().int().min(0).max(3).default(1)
15355
15601
  });
@@ -15383,28 +15629,36 @@ var NcOccupancyConditionSchema = object({
15383
15629
  /**
15384
15630
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
15385
15631
  *
15386
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
15387
- * reference notifier uses, so an operator moving between them re-uses what
15388
- * they already know): a rule matches when, over a sampling window of
15389
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
15390
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
15391
- *
15392
- * - `dbThreshold` its level is at or above this many dBFS (see
15393
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
15394
- * - `labels` the classifier put at least one of these labels on it.
15395
- *
15396
- * Both are OPTIONAL and independent, which is the point of the shape: a
15397
- * loudness rule ("something loud at 3am") needs no model to be right, and a
15398
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
15399
- * is given** a window in which every sample is trivially a hit would fire on
15400
- * silence, so the engine refuses such a condition rather than notifying on
15401
- * nothing (the schema cannot express "at least one of" without becoming a
15402
- * ZodEffects the cap path would have to special-case).
15403
- *
15404
- * `hitPercent` is over the samples the window actually HOLDS, and the window
15405
- * must be FULL before it can match a window that has been open for two
15406
- * seconds of its ten is 100% of nothing, and firing on it would make
15407
- * `samplingSeconds` decorative.
15632
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
15633
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
15634
+ * there is no second switch that can disagree with the first and every rule
15635
+ * authored before the decision migrates for free (`audioModeOf`):
15636
+ *
15637
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
15638
+ * classifier labels with one of them. No window, no percentage:
15639
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
15640
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
15641
+ * the analyzer's (`classificationMinScore`, per device) — a label only
15642
+ * reaches this condition if the classifier was already confident enough.
15643
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
15644
+ * the condition: at least `hitPercent`% of the samples over
15645
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
15646
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
15647
+ * must be FULL before it can match a window open for two of its ten
15648
+ * seconds is 100% of nothing.
15649
+ *
15650
+ * **Why label mode has no window.** It had one, and it never fired: the
15651
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
15652
+ * of them per episode, even through continuous crying. The measured maximum
15653
+ * `hitPercent` over the whole live history was 40 — under the shipped default
15654
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
15655
+ * the wrong question to ask of a sparse classifier.
15656
+ *
15657
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
15658
+ * and the rule would fire on silence. The schema cannot express "exactly one
15659
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
15660
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
15661
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
15408
15662
  *
15409
15663
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
15410
15664
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -15412,13 +15666,13 @@ var NcOccupancyConditionSchema = object({
15412
15666
  * an operator who typed `dog` mean the same thing.
15413
15667
  */
15414
15668
  var NcAudioConditionSchema = object({
15415
- /** Audio macro labels; absent = any sound (level-only rule). */
15669
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
15416
15670
  labels: array(string().min(1)).min(1).optional(),
15417
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
15671
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
15418
15672
  dbThreshold: number().min(-96).max(0).optional(),
15419
- /** Percentage of the window's samples that must be hits (1–100). */
15673
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
15420
15674
  hitPercent: number().int().min(1).max(100).default(60),
15421
- /** Length of the sampling window in seconds. */
15675
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
15422
15676
  samplingSeconds: number().int().min(1).max(300).default(10)
15423
15677
  });
15424
15678
  /**
@@ -15556,13 +15810,81 @@ var NcRuleActionsSchema = object({
15556
15810
  */
15557
15811
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
15558
15812
  });
15813
+ /**
15814
+ * "This rule applies only while `deviceId` is in one of `states`."
15815
+ *
15816
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
15817
+ * `on`/`off` for a switch — not a normalised set, because normalising would
15818
+ * make the condition lie about devices whose states have no equivalent.
15819
+ *
15820
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
15821
+ * condition that fired on "I could not read it" would be worse than no gate.
15822
+ */
15823
+ var NcDeviceStateConditionSchema = object({
15824
+ deviceId: number().int(),
15825
+ /** Any of these matches. */
15826
+ states: array(string().min(1)).min(1)
15827
+ });
15828
+ /**
15829
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
15830
+ *
15831
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
15832
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
15833
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
15834
+ * already has a trigger ("tell me about a person at the front door, but only
15835
+ * while the bin is still out"). That is why it composes with every delivery
15836
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
15837
+ * kind exist for it — see D159.
15838
+ *
15839
+ * ── Identity ───────────────────────────────────────────────────────────────
15840
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
15841
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
15842
+ * carried as a HINT for the editor and for the log line, never as part of the
15843
+ * lookup key: a rule whose hint drifted must still gate correctly.
15844
+ *
15845
+ * ── Which boolean ──────────────────────────────────────────────────────────
15846
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
15847
+ * already declares which boolean drives notification rules, and a second knob
15848
+ * that could disagree with it is exactly the D62 failure. Set it only to
15849
+ * override one rule against the scene's own default.
15850
+ *
15851
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
15852
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
15853
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
15854
+ * evidence, in either direction.
15855
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
15856
+ * The latch is a durable fact about the past ("it has diverged since I armed
15857
+ * it"), so a camera that has gone dark does not clear it — that is the whole
15858
+ * reason the operator asked for a latch.
15859
+ *
15860
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
15861
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
15862
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
15863
+ * said out loud in the log rather than dropped in silence.
15864
+ */
15865
+ var NcSceneConditionSchema = object({
15866
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
15867
+ sceneId: string().min(1),
15868
+ /** The camera the scene lives on. A hint for the editor and the log line. */
15869
+ deviceId: number().int().optional(),
15870
+ /** The state the scene must be in for the rule to fire. */
15871
+ requiredState: _enum(["matched", "diverged"]),
15872
+ /**
15873
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
15874
+ * scene's own `emit` field, which is the only place that decision belongs.
15875
+ */
15876
+ latched: boolean().optional()
15877
+ });
15559
15878
  var NcConditionsSchema = object({
15560
15879
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
15561
- deviceState: object({
15562
- deviceId: number().int(),
15563
- /** Any of these matches. */
15564
- states: array(string().min(1)).min(1)
15565
- }).optional(),
15880
+ deviceState: NcDeviceStateConditionSchema.optional(),
15881
+ /**
15882
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
15883
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
15884
+ * unlike `occupancy`/`audio` it discriminates nothing. See
15885
+ * {@link NcSceneCondition} and D159.
15886
+ */
15887
+ scene: NcSceneConditionSchema.optional(),
15566
15888
  /** Device scope — absent = all devices. */
15567
15889
  devices: array(number()).optional(),
15568
15890
  /** Detector class names (any overlap with the record's class set). */
@@ -15588,18 +15910,47 @@ var NcConditionsSchema = object({
15588
15910
  */
15589
15911
  labelEquals: array(string().min(1)).optional(),
15590
15912
  /**
15591
- * Identity matcher. P1 boundary: matched against the record's collapsed
15592
- * `label` (the identity display name propagated by the face pipeline) —
15593
- * identity-ID matching rides in P2 when identity ids reach the record.
15913
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
15914
+ * is about recognised people at all.
15915
+ *
15916
+ * Three states, and the empty one is the point:
15917
+ *
15918
+ * | value | meaning |
15919
+ * | --- | --- |
15920
+ * | absent | the rule does not care who it is; an unrecognised person matches |
15921
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
15922
+ * | a list | only these identities |
15923
+ *
15924
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
15925
+ * `devices` list is every device), applied one level down: the operator has
15926
+ * turned the face scope ON and narrowed it to nothing, which is every known
15927
+ * face. No second field states the same thing — a switch that can disagree
15928
+ * with the list under it is worse than no switch (D62).
15929
+ *
15930
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
15931
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
15932
+ * the operator fixed the spelling. The id reaches the record on
15933
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
15934
+ * `{{label}}` renders.
15935
+ *
15936
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
15937
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
15938
+ * for is left as it stands and reported, never dropped. The engine also
15939
+ * accepts a display-name hit as a compatibility leg, so a rule whose
15940
+ * migration could not resolve keeps matching exactly what it matched before.
15594
15941
  */
15595
15942
  identities: array(string().min(1)).optional(),
15596
- /** Fuzzy plate matcher against the record's `label` (plate text). */
15943
+ /**
15944
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
15945
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
15946
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
15947
+ */
15597
15948
  plates: NcPlateMatcherSchema.optional(),
15598
15949
  /**
15599
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
15600
- * Same P1 boundary: matched against the record's collapsed `label` (the
15601
- * identity display name). A record with NO label passes (nothing to
15602
- * exclude), unlike the include variant which fails on an absent label.
15950
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
15951
+ * the same id members and the same lazy name→id migration. A record with NO
15952
+ * identity passes (nothing to exclude), unlike the include variant which
15953
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
15603
15954
  */
15604
15955
  identitiesExclude: array(string().min(1)).optional(),
15605
15956
  /**
@@ -15991,7 +16342,80 @@ var NcRuleInputSchema = object({
15991
16342
  * a rule that predates the gate must keep delivering byte-for-byte as it
15992
16343
  * did, and absent is the only way to say that without a migration.
15993
16344
  */
15994
- confirm: NcConfirmSchema.optional()
16345
+ confirm: NcConfirmSchema.optional(),
16346
+ /**
16347
+ * WAIT for face/plate recognition before saying anything.
16348
+ *
16349
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
16350
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
16351
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
16352
+ * measured on this hub — and an `immediate` rule enqueues on the first object
16353
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
16354
+ * immediate path, and no amount of media re-resolution fixes a sentence.
16355
+ *
16356
+ * Only two honest answers exist, and this flag picks between them. It has
16357
+ * effect ONLY on a rule that declares a recognition scope
16358
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
16359
+ * other rule there is nothing to wait for and the flag is inert.
16360
+ *
16361
+ * | value | what happens |
16362
+ * | --- | --- |
16363
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
16364
+ * | 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) |
16365
+ *
16366
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16367
+ * on the addon cap path, and absent has to keep meaning exactly what every
16368
+ * rule authored before this field meant.
16369
+ *
16370
+ * The cost of `true` is stated here because the editor states it too: a rule
16371
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
16372
+ * tests every zone the track visited and a `crossing` condition can no longer
16373
+ * be satisfied, because a closed track carries no crossing.
16374
+ */
16375
+ waitForEnhancement: boolean().optional(),
16376
+ /**
16377
+ * GROUP a burst of subjects into ONE notification that grows.
16378
+ *
16379
+ * Seconds of quiet after the last matching subject before the burst is
16380
+ * considered over. While it is open, the first subject enqueues immediately —
16381
+ * **exactly as today, with no added latency** — and every real growth (a new
16382
+ * subject, or a name confirmed on one already in it) REPLACES that
16383
+ * notification with an updated one naming everybody. The push carries the
16384
+ * group's own coalescing tag, so the phone replaces rather than stacks.
16385
+ *
16386
+ * `0` / absent = off, and off is today's behaviour byte for byte.
16387
+ *
16388
+ * ### Why an idle cutoff and not a window
16389
+ *
16390
+ * The measured seven-person arrival on device 590 spans 110 s with every
16391
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
16392
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
16393
+ * 30 is Frigate's shipped value for the same decision.
16394
+ *
16395
+ * ### What it replaces
16396
+ *
16397
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
16398
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
16399
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
16400
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
16401
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
16402
+ * budget over GROUPS — which is what it always meant — and a growth is never
16403
+ * throttled by the window its own first member spent.
16404
+ *
16405
+ * ### Interaction with {@link waitForEnhancement}
16406
+ *
16407
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
16408
+ * TRACK CLOSE, so with both set the group is opened by the first member to
16409
+ * CLOSE — already carrying its name — and grows as later members close. That
16410
+ * is later, and complete. With grouping alone the group opens on the first
16411
+ * object event and picks up names as they are confirmed, through the growth
16412
+ * path. Neither combination fires twice for one subject.
16413
+ *
16414
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16415
+ * on the addon cap path, so absent must keep meaning what it meant before this
16416
+ * field existed.
16417
+ */
16418
+ groupIdleSec: number().int().min(0).max(600).optional()
15995
16419
  });
15996
16420
  /**
15997
16421
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -16098,6 +16522,7 @@ var NcConditionDescriptorSchema = object({
16098
16522
  "occupancy",
16099
16523
  "audio",
16100
16524
  "deviceState",
16525
+ "scene",
16101
16526
  "systemEvent"
16102
16527
  ]),
16103
16528
  operator: _enum([
@@ -16503,7 +16928,87 @@ var MethodAccessSchema = _enum([
16503
16928
  var AllowedProviderSchema = union([literal("*"), array(string())]);
16504
16929
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
16505
16930
  var CapScopeSchema = _enum(["device", "system"]);
16506
- var TokenScopeSchema = discriminatedUnion("type", [
16931
+ /**
16932
+ * DeviceSelector (scope model v3 — 2026-08-12).
16933
+ *
16934
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
16935
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
16936
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
16937
+ * AFTER the grant was minted — no re-grant, no re-login.
16938
+ *
16939
+ * - `all` — every device in the deployment. The broad viewer/operator
16940
+ * lever without a `category` grant (a `category` grant also covers device
16941
+ * caps that carry no deviceId; `all` is specifically the device set).
16942
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
16943
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
16944
+ * is NOT covered until the grant is edited.
16945
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
16946
+ * DYNAMIC. A device that changes type, or a new device of the type,
16947
+ * re-resolves on the next request.
16948
+ * - `locations` — every device whose operator-assigned `location` label is
16949
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
16950
+ * null/unset location matches NO `locations` selector.
16951
+ */
16952
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
16953
+ object({ kind: literal("all") }),
16954
+ object({
16955
+ kind: literal("ids"),
16956
+ ids: array(number().int()).min(1)
16957
+ }),
16958
+ object({
16959
+ kind: literal("types"),
16960
+ types: array(_enum(DeviceType)).min(1)
16961
+ }),
16962
+ object({
16963
+ kind: literal("locations"),
16964
+ locations: array(string().min(1)).min(1)
16965
+ })
16966
+ ]);
16967
+ var DeviceTokenScopeSchema = object({
16968
+ type: literal("device"),
16969
+ /** The device SET this grant covers — resolved against the live fleet. */
16970
+ selector: DeviceSelectorSchema,
16971
+ access: array(MethodAccessSchema).min(1),
16972
+ /**
16973
+ * Whether a grant on a PARENT device transparently covers its accessory
16974
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16975
+ * Direction is parent → children ONLY.
16976
+ *
16977
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16978
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16979
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16980
+ * operator must grant on the child, not inherit from the parent). Set it
16981
+ * explicitly to override that default per grant.
16982
+ */
16983
+ includeLinked: boolean().optional()
16984
+ });
16985
+ /**
16986
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16987
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16988
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16989
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16990
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16991
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16992
+ * migration cannot reach a JWT already in a client's hands; parse-time
16993
+ * migration covers both without a flag day. No cast — the raw object is read
16994
+ * through `Reflect.get` (its static type is `unknown`).
16995
+ */
16996
+ function migrateLegacyTokenScope(raw) {
16997
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16998
+ if (Reflect.get(raw, "type") !== "device") return raw;
16999
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
17000
+ const targets = Reflect.get(raw, "targets");
17001
+ if (!Array.isArray(targets)) return raw;
17002
+ return {
17003
+ type: "device",
17004
+ selector: {
17005
+ kind: "ids",
17006
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
17007
+ },
17008
+ access: Reflect.get(raw, "access")
17009
+ };
17010
+ }
17011
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
16507
17012
  object({
16508
17013
  type: literal("category"),
16509
17014
  target: CapScopeSchema,
@@ -16519,18 +17024,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
16519
17024
  target: string(),
16520
17025
  access: array(MethodAccessSchema).min(1)
16521
17026
  }),
16522
- object({
16523
- type: literal("device"),
16524
- /**
16525
- * One or more deviceIds (serialised as strings for wire-format
16526
- * consistency with the rest of the union). Matcher accepts if
16527
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
16528
- * of one scope-per-device when granting access to a set of cameras.
16529
- */
16530
- targets: array(string()).min(1),
16531
- access: array(MethodAccessSchema).min(1)
16532
- })
16533
- ]);
17027
+ DeviceTokenScopeSchema
17028
+ ]));
16534
17029
  object({
16535
17030
  id: string(),
16536
17031
  username: string(),
@@ -16847,7 +17342,7 @@ var TrackEnvelopeSchema = object({
16847
17342
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16848
17343
  * keeps every scalar the list surfaces actually render (ids, class(es),
16849
17344
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16850
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
17345
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16851
17346
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16852
17347
  * `getTrack`. Mirrors the event-store `projection` convention
16853
17348
  * (`getObjectEvents` et al.).
@@ -16983,7 +17478,21 @@ union([literal(1), literal(2)]);
16983
17478
  var LabelAttributionSchema = object({
16984
17479
  stepId: string(),
16985
17480
  modelId: string().optional(),
16986
- decidedAt: number()
17481
+ decidedAt: number(),
17482
+ /**
17483
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
17484
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
17485
+ *
17486
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
17487
+ * notification rule authored on "Gianluca" stopped matching the moment the
17488
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
17489
+ * the thing that does not move, so it is what a rule matches on
17490
+ * (`NcConditions.identities`) and the text is what a human is shown.
17491
+ *
17492
+ * Absent when the label names no gallery row — a plate the OCR read but no
17493
+ * vehicle claims, a sub-class, a species, any tier-1 value.
17494
+ */
17495
+ identityId: string().optional()
16987
17496
  });
16988
17497
  /**
16989
17498
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -17120,6 +17629,28 @@ var TrackSchema = object({
17120
17629
  * `=== true` and render nothing otherwise, never infer "no face".
17121
17630
  */
17122
17631
  hasFace: boolean().optional(),
17632
+ /**
17633
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
17634
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
17635
+ * so the passage is tracked once and as a VEHICLE.
17636
+ *
17637
+ * It exists because the fold's record was dishonest. D34 and the code both
17638
+ * said "the person is not lost — it is reported so both entities stay on the
17639
+ * record"; in fact the pair went into a per-processor RAM field behind an
17640
+ * accessor nobody called, and every durable surface said `vehicle`, full
17641
+ * stop. This is the composition note that makes the row true.
17642
+ *
17643
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
17644
+ * person" is not an answer to "what is this" — both label tiers would refuse
17645
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
17646
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
17647
+ * and a `person` rule still does not fire for someone cycling past.
17648
+ *
17649
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
17650
+ * the column, and every hub that predates the field, omits it. Test
17651
+ * `=== true` and render nothing otherwise — never infer "no rider".
17652
+ */
17653
+ hasRider: boolean().optional(),
17123
17654
  ...TrackFlagFields,
17124
17655
  ...TrackRetrainFields
17125
17656
  });
@@ -17469,7 +18000,10 @@ var RecentTracksQueryInput = object({
17469
18000
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
17470
18001
  cursor: string().optional(),
17471
18002
  /** See {@link TrackProjectionSchema}. Default `full`. */
17472
- projection: TrackProjectionSchema.optional()
18003
+ projection: TrackProjectionSchema.optional(),
18004
+ /** Include stationary-promoted rows (parked objects). Default false: the
18005
+ * feed lists passages; parking records live on the stationary registry. */
18006
+ includeStationary: boolean().optional()
17473
18007
  });
17474
18008
  var RecentTracksPageSchema = object({
17475
18009
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -17687,7 +18221,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17687
18221
  zone: TrackZoneFilterSchema.optional(),
17688
18222
  /** See {@link TrackProjectionSchema}. Default `full` (backward
17689
18223
  * compatible — omitting the field keeps today's exact behaviour). */
17690
- projection: TrackProjectionSchema.optional()
18224
+ projection: TrackProjectionSchema.optional(),
18225
+ /** Include stationary-promoted rows (parked objects handed to the
18226
+ * stationary registry). Default false: the timeline lists passages,
18227
+ * not parking records (operator decision, 2026-08-15). */
18228
+ includeStationary: boolean().optional()
17691
18229
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17692
18230
  kind: "mutation",
17693
18231
  auth: "admin"
@@ -17851,11 +18389,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17851
18389
  auth: "admin"
17852
18390
  }), method(object({
17853
18391
  eventId: string(),
17854
- kind: MediaFileKindEnum.optional()
18392
+ kind: MediaFileKindEnum.optional(),
18393
+ deviceId: number()
18394
+ }), array(MediaFileSchema).readonly()), method(object({
18395
+ trackId: string(),
18396
+ kinds: array(MediaFileKindEnum).optional(),
18397
+ deviceId: number()
17855
18398
  }), array(MediaFileSchema).readonly()), method(object({
17856
18399
  trackId: string(),
17857
- kinds: array(MediaFileKindEnum).optional()
17858
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
18400
+ deviceId: number()
18401
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17859
18402
  kind: "mutation",
17860
18403
  auth: "admin"
17861
18404
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -18555,6 +19098,17 @@ var maxSessionHoldMsField = {
18555
19098
  default: 12e4,
18556
19099
  step: 5e3
18557
19100
  };
19101
+ /**
19102
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
19103
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
19104
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
19105
+ */
19106
+ var audioMotionWindowMsField = {
19107
+ min: 5e3,
19108
+ max: 6e5,
19109
+ default: 9e4,
19110
+ step: 5e3
19111
+ };
18558
19112
  var motionFpsField = {
18559
19113
  min: 1,
18560
19114
  max: 30,
@@ -18586,7 +19140,7 @@ var detectionFpsField = {
18586
19140
  var occupancyRecheckSecField = {
18587
19141
  min: 0,
18588
19142
  max: 300,
18589
- default: 30,
19143
+ default: 300,
18590
19144
  step: 5
18591
19145
  };
18592
19146
  var occupancyRecheckFramesField = {
@@ -18731,6 +19285,27 @@ var RunnerCameraConfigSchema = object({
18731
19285
  * resolved `CameraDetectionConfig`.
18732
19286
  */
18733
19287
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
19288
+ /**
19289
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
19290
+ * 'on-motion'` audio window, measured from the LAST motion event.
19291
+ *
19292
+ * This exists because the falling edge cannot be relied on. Camera-native
19293
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
19294
+ * its email-push SMTP path both emit `detected: true` and never the
19295
+ * counterpart); only the frame-diff analyzer emits falls. So on an
19296
+ * onboard-only camera a window that closed only on `detected: false` never
19297
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
19298
+ * battery camera, the one failure mode the mode exists to prevent.
19299
+ *
19300
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
19301
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
19302
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
19303
+ *
19304
+ * Not consumed by the runner: carried here so it shares the per-camera
19305
+ * device-settings surface with `motionCooldownMs`, exactly like
19306
+ * `maxSessionHoldMs`.
19307
+ */
19308
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
18734
19309
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
18735
19310
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
18736
19311
  motionStreamId: string(),
@@ -18826,7 +19401,7 @@ var RunnerCameraConfigSchema = object({
18826
19401
  */
18827
19402
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
18828
19403
  });
18829
- 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;
19404
+ 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;
18830
19405
  /**
18831
19406
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
18832
19407
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -19842,7 +20417,16 @@ targets: array(object({
19842
20417
  /** A sleeping battery camera: the frame is deliberately stale and will
19843
20418
  * NOT refresh in the background. A surface should say so rather than
19844
20419
  * present it as current. */
19845
- sleeping: boolean()
20420
+ sleeping: boolean(),
20421
+ /** Current device state rendered over the cached frame. State images
20422
+ * remain authoritative even when their photographic background is
20423
+ * old; null means the link must carry a current camera frame. */
20424
+ stateReason: _enum([
20425
+ "disabled",
20426
+ "sleeping",
20427
+ "unreachable",
20428
+ "waking"
20429
+ ]).nullable()
19846
20430
  })));
19847
20431
  /**
19848
20432
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -21496,6 +22080,25 @@ var BatteryStatusSchema = object({
21496
22080
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
21497
22081
  lastUpdated: number(),
21498
22082
  /**
22083
+ * Ms epoch of the last time the device PROVED it was reachable — a
22084
+ * completed firmware round-trip, an observed wake, or an inbound push
22085
+ * (firmware event, email). `0`/absent = never since this slice was born.
22086
+ *
22087
+ * This is the ONLY input that separates "asleep" from "gone", and it is
22088
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
22089
+ * for the radio, because a poll that confirms reachability is the same
22090
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
22091
+ * single derivation every consumer must use; no surface computes its own.
22092
+ *
22093
+ * It is deliberately NOT a clock in the
22094
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
22095
+ * observation itself, and it is the only thing a 30-hour silence is
22096
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
22097
+ * Reolink provider) so a value that means "recently" cannot cost a
22098
+ * SQLite commit per round-trip.
22099
+ */
22100
+ lastContactAt: number().optional(),
22101
+ /**
21499
22102
  * True when the source is a BINARY low-battery indicator (HA
21500
22103
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
21501
22104
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23760,54 +24363,139 @@ var TalkAudioCodecSchema = _enum([
23760
24363
  "g711ulaw",
23761
24364
  "g711alaw"
23762
24365
  ]);
23763
- DeviceType.Camera, method(object({ deviceId: number() }), object({
23764
- sessionId: string(),
23765
- sdpOffer: string()
23766
- }), {
23767
- kind: "mutation",
23768
- auth: "admin"
23769
- }), method(object({
23770
- deviceId: number(),
23771
- sessionId: string(),
23772
- sdpAnswer: string()
23773
- }), _void(), {
23774
- kind: "mutation",
23775
- auth: "admin"
23776
- }), method(object({
23777
- deviceId: number(),
23778
- sessionId: string()
23779
- }), _void(), {
23780
- kind: "mutation",
23781
- auth: "admin"
23782
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23783
- kind: "mutation",
23784
- auth: "admin"
23785
- }), method(object({
23786
- deviceId: number(),
23787
- /** Audio bytes for ONE frame, base64-encoded so the payload
23788
- * survives tRPC JSON serialization. */
23789
- audioBase64: string(),
23790
- /** Wire codec of the payload. Omit to let the provider default
23791
- * to its native expected format (s16le @ provider-native rate,
23792
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23793
- codec: TalkAudioCodecSchema.optional(),
23794
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23795
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23796
- sampleRate: number().int().positive().optional(),
23797
- /** Channel count. Default 1. */
23798
- channels: number().int().positive().optional(),
23799
- /** Sequence number for ordering / dropping out-of-order frames. */
23800
- sequenceNumber: number().int()
23801
- }), object({ accepted: boolean() }), {
23802
- kind: "mutation",
23803
- auth: "admin"
23804
- }), method(object({ deviceId: number() }), _void(), {
23805
- kind: "mutation",
23806
- auth: "admin"
23807
- }), object({
23808
- deviceId: number(),
23809
- status: IntercomStatusSchema
23810
- });
24366
+ var intercomCapability = {
24367
+ name: "intercom",
24368
+ scope: "device",
24369
+ deviceNative: true,
24370
+ mode: "singleton",
24371
+ deviceTypes: [DeviceType.Camera],
24372
+ methods: {
24373
+ /**
24374
+ * Open a server-side WebRTC audio-only session. Returns an SDP
24375
+ * offer with a single sendonly audio m-line the client answers
24376
+ * (client → server direction). The server wakes battery cams
24377
+ * transparently before opening the upstream talk channel.
24378
+ */
24379
+ startSession: method(object({ deviceId: number() }), object({
24380
+ sessionId: string(),
24381
+ sdpOffer: string()
24382
+ }), {
24383
+ kind: "mutation",
24384
+ auth: "admin"
24385
+ }),
24386
+ handleAnswer: method(object({
24387
+ deviceId: number(),
24388
+ sessionId: string(),
24389
+ sdpAnswer: string()
24390
+ }), _void(), {
24391
+ kind: "mutation",
24392
+ auth: "admin"
24393
+ }),
24394
+ /** Close explicitly. Server also auto-closes on 30s idle. */
24395
+ stopSession: method(object({
24396
+ deviceId: number(),
24397
+ sessionId: string()
24398
+ }), _void(), {
24399
+ kind: "mutation",
24400
+ auth: "admin"
24401
+ }),
24402
+ /**
24403
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
24404
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
24405
+ * harnesses) that already have decoded PCM frames and just need a
24406
+ * direct path onto the camera's talk channel. Mutually exclusive
24407
+ * with `startSession` (an active WebRTC session must be stopped
24408
+ * before a raw-PCM session can be opened on the same device, and
24409
+ * vice versa).
24410
+ */
24411
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
24412
+ kind: "mutation",
24413
+ auth: "admin"
24414
+ }),
24415
+ /**
24416
+ * Push one chunk of talk-back audio onto the active talk session.
24417
+ * The cap is codec-agnostic: the caller declares (or omits) the
24418
+ * wire format via `codec`; the provider decides between passthrough
24419
+ * (when the wire codec matches the camera's native talk channel),
24420
+ * transcoding via the `audio-codec` cap, or rejecting the call.
24421
+ *
24422
+ * Callers do NOT need to know the camera's wire format or sample
24423
+ * rate — that information lives entirely inside the provider.
24424
+ *
24425
+ * Sequence numbers MUST be monotonic per talk session; older frames
24426
+ * arriving after newer ones are dropped to avoid smearing the
24427
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
24428
+ * predictor would corrupt with re-ordering).
24429
+ */
24430
+ pushTalkAudio: method(object({
24431
+ deviceId: number(),
24432
+ /** Audio bytes for ONE frame, base64-encoded so the payload
24433
+ * survives tRPC JSON serialization. */
24434
+ audioBase64: string(),
24435
+ /** Wire codec of the payload. Omit to let the provider default
24436
+ * to its native expected format (s16le @ provider-native rate,
24437
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
24438
+ codec: TalkAudioCodecSchema.optional(),
24439
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
24440
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
24441
+ sampleRate: number().int().positive().optional(),
24442
+ /** Channel count. Default 1. */
24443
+ channels: number().int().positive().optional(),
24444
+ /** Sequence number for ordering / dropping out-of-order frames. */
24445
+ sequenceNumber: number().int()
24446
+ }), object({ accepted: boolean() }), {
24447
+ kind: "mutation",
24448
+ auth: "admin"
24449
+ }),
24450
+ /** Close the raw-PCM talk session. Idempotent. */
24451
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
24452
+ kind: "mutation",
24453
+ auth: "admin"
24454
+ })
24455
+ },
24456
+ events: { onStatusChanged: { data: object({
24457
+ deviceId: number(),
24458
+ status: IntercomStatusSchema
24459
+ }) } },
24460
+ status: {
24461
+ schema: IntercomStatusSchema,
24462
+ kind: "command-driven"
24463
+ },
24464
+ /**
24465
+ * Runtime-state slice — mirrored by the kernel.
24466
+ *
24467
+ * The cap declared `status` and nothing else, so the only two sources an
24468
+ * exporter has for a value — the `device.state-changed` slice event and the
24469
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
24470
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
24471
+ * have been published and never received a value, which is the defect the
24472
+ * export's two classification tables exist to prevent (177 of them, once), so
24473
+ * `intercom` was excluded rather than exported.
24474
+ *
24475
+ * The shape is the status shape: there is exactly one truth about talk-back
24476
+ * and duplicating it into a second schema is how two halves of one capability
24477
+ * come to disagree. Providers write it through
24478
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
24479
+ * and close a session, and seed it at registration so the slice exists before
24480
+ * the first session rather than after it.
24481
+ *
24482
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
24483
+ * session handle, so a session torn down by a transport death that never
24484
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
24485
+ * session or the next restart. That is why the slice is `session` and not
24486
+ * `restored` — a restart must never restore "talking".
24487
+ */
24488
+ runtimeState: IntercomStatusSchema,
24489
+ /**
24490
+ * Runtime-state durability: **session** — `talking` describes a live audio
24491
+ * session, which by definition does not survive the process that held it.
24492
+ * Restoring it would publish a camera as talking to nobody.
24493
+ *
24494
+ * See `RuntimeStateDurability`. Enforced by
24495
+ * `scripts/check-runtime-state-durability.ts`.
24496
+ */
24497
+ durability: "session"
24498
+ };
23811
24499
  /**
23812
24500
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
23813
24501
  * with a mowing lifecycle plus a dock action.
@@ -26504,7 +27192,7 @@ method(object({
26504
27192
  toMs: number()
26505
27193
  }), RecordingAvailabilitySchema, {
26506
27194
  kind: "query",
26507
- auth: "admin"
27195
+ auth: "protected"
26508
27196
  }), method(object({
26509
27197
  deviceId: number(),
26510
27198
  fromMs: number(),
@@ -26512,14 +27200,14 @@ method(object({
26512
27200
  tzOffsetMinutes: number()
26513
27201
  }), RecordingDaysSchema, {
26514
27202
  kind: "query",
26515
- auth: "admin"
27203
+ auth: "protected"
26516
27204
  }), method(object({
26517
27205
  deviceId: number(),
26518
27206
  fromMs: number(),
26519
27207
  toMs: number()
26520
27208
  }), RecordingManifestSchema, {
26521
27209
  kind: "query",
26522
- auth: "admin"
27210
+ auth: "protected"
26523
27211
  }), method(object({}), RecordingStorageUsageSchema, {
26524
27212
  kind: "query",
26525
27213
  auth: "admin"
@@ -26809,14 +27497,77 @@ method(object({
26809
27497
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
26810
27498
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
26811
27499
  *
26812
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
26813
- * derives the device-detail contribution; the provider carries NO hand-written
26814
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
26815
- * every hysteresis flip / availability change; consumers never poll.
26816
- */
26817
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
26818
- * be added without a wire break (matching falls back to any-condition refs). */
27500
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
27501
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
27502
+ * for the thing: a scene is a standing question about the property ("is the bin
27503
+ * still out"), and the operator's question is "which of my scenes have tripped",
27504
+ * across every camera at once — not "what does camera 617 think". Buried one
27505
+ * camera deep it also could not be found. The surface is now a top-level admin
27506
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
27507
+ * picks the camera inside the create flow, the same shape Events and Faces have.
27508
+ *
27509
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
27510
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
27511
+ * directions, so a registration nobody declares fails exactly as loudly as a
27512
+ * declaration nobody registers. The editor is imported directly by the page.
27513
+ *
27514
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
27515
+ * availability change; consumers never poll.
27516
+ */
27517
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
27518
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
27519
+ * Open by design so more can be added without a wire break.
27520
+ *
27521
+ * Matching does NOT fall back across conditions: cross-condition cosines are
27522
+ * not comparable, so "I have never seen this scene in this light" is reported
27523
+ * as `unknown`, never guessed. A day reference scored against an IR frame
27524
+ * collapses the cosine and would latch a false alarm every single night. */
26819
27525
  var SceneConditionSchema = string();
27526
+ /**
27527
+ * What a scene does when the CURRENT light has no reference of its own.
27528
+ *
27529
+ * The lighting variants are not equally likely to exist. Almost every operator
27530
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
27531
+ * scene that is only ever going to be asked about a daytime question ("is the
27532
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
27533
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
27534
+ * working without it rather than degrading into a permanent complaint.
27535
+ *
27536
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
27537
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
27538
+ * last covered light left it at, the latch is untouched, and the hysteresis
27539
+ * run is neither spent nor cleared. The scene resumes by itself at first
27540
+ * light. This is the only behaviour under which "I never captured IR" is a
27541
+ * configuration choice instead of a nightly fault.
27542
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
27543
+ * for cameras whose IR frame is close enough to daylight (a floodlit
27544
+ * driveway, an always-white-light doorbell), and wrong for everything else:
27545
+ * cross-condition cosines are not comparable, so a day reference against a
27546
+ * true IR frame collapses and the scene reports a theft at 21:40.
27547
+ *
27548
+ * Never applies when the scene has NO comparable reference at all — that is
27549
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
27550
+ * there would hide a scene the operator never finished setting up.
27551
+ */
27552
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
27553
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
27554
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
27555
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
27556
+ * and never counts toward hysteresis in either direction. */
27557
+ var SceneVerdictSchema = _enum([
27558
+ "matched",
27559
+ "diverged",
27560
+ "unknown"
27561
+ ]);
27562
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
27563
+ * silence that reads as "nothing has happened". */
27564
+ var SceneUnavailableSchema = _enum([
27565
+ "no-reference-for-condition",
27566
+ "view-shifted",
27567
+ "no-vision-profile",
27568
+ "encoder-model-changed",
27569
+ "no-snapshot"
27570
+ ]);
26820
27571
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
26821
27572
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
26822
27573
  var SceneReferenceSchema = object({
@@ -26824,7 +27575,14 @@ var SceneReferenceSchema = object({
26824
27575
  modelId: string(),
26825
27576
  condition: SceneConditionSchema,
26826
27577
  capturedAt: number(),
26827
- thumbnailMediaId: string().optional()
27578
+ thumbnailMediaId: string().optional(),
27579
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
27580
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
27581
+ * normalized rect frame a different piece of world, and the scene would
27582
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
27583
+ * when hysteresis is about to flip — one extra encode per candidate
27584
+ * transition, not per poll. */
27585
+ anchorEmbedding: array(number()).optional()
26828
27586
  });
26829
27587
  var SceneMonitorStateSchema = object({
26830
27588
  id: string(),
@@ -26846,6 +27604,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26846
27604
  profileId: string().optional(),
26847
27605
  hysteresisCount: number().int().positive()
26848
27606
  })]);
27607
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
27608
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
27609
+ * out in silence rather than reporting a fault every night. */
27610
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
27611
+ /**
27612
+ * Vision-model adjudication of a candidate flip. Field names deliberately
27613
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
27614
+ *
27615
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
27616
+ * fail-open: a notification suppressed is the worse error there, but a vision
27617
+ * model that timed out has not told us the bin is gone, and a latch is a
27618
+ * stateful claim that costs the operator a trip to reset.
27619
+ */
27620
+ var SceneConfirmSchema = object({
27621
+ enabled: boolean().default(false),
27622
+ prompt: string().min(1).max(1e3),
27623
+ profileId: string().optional(),
27624
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
27625
+ maxImagePx: number().int().min(64).max(2048).default(448),
27626
+ /** What a timeout / unavailable model means for the PENDING flip. */
27627
+ onTimeout: _enum(["flip", "hold"]).default("hold")
27628
+ });
26849
27629
  var SceneMonitorSchema = object({
26850
27630
  id: string(),
26851
27631
  label: string(),
@@ -26864,7 +27644,56 @@ var SceneMonitorSchema = object({
26864
27644
  lastConfidence: number().nullable(),
26865
27645
  currentCondition: SceneConditionSchema.nullable(),
26866
27646
  availability: _enum(["ok", "unavailable"]),
26867
- unavailableReason: string().nullable()
27647
+ unavailableReason: string().nullable(),
27648
+ /** Which state is "the initial screen". `null` until the first capture. */
27649
+ baselineStateId: string().nullable(),
27650
+ /** Which boolean drives notification rules and any export. */
27651
+ emit: _enum(["latched", "live"]).default("latched"),
27652
+ /** Live: does the region match the baseline RIGHT NOW. */
27653
+ verdict: SceneVerdictSchema,
27654
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
27655
+ latched: boolean(),
27656
+ /** Last reset (or creation). */
27657
+ armedAt: number(),
27658
+ divergedAt: number().nullable(),
27659
+ restoredAt: number().nullable(),
27660
+ /** A check is only COUNTED when the device has been quiet this long. Motion
27661
+ * during the window DISCARDS the observation — a car pulling up in front of
27662
+ * the bin must not be able to spend hysteresis credit. */
27663
+ quietSeconds: number().int().min(0).max(3600).default(60),
27664
+ /** An observation only advances the pending count when it is at least this
27665
+ * far from the previously counted one, so N agreeing checks span real time
27666
+ * rather than N adjacent polls inside one occlusion. */
27667
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
27668
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
27669
+ confirm: SceneConfirmSchema.optional(),
27670
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
27671
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
27672
+ /** Clear the latch on its own when the scene matches again? Default false —
27673
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
27674
+ * automation can react to the bin coming back without the operator's own
27675
+ * alarm silently clearing itself. */
27676
+ autoRestore: boolean().default(false),
27677
+ /** What to do when the current light has no reference of its own. See
27678
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
27679
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
27680
+ /**
27681
+ * The light whose checks are currently being SAT OUT under
27682
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
27683
+ *
27684
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
27685
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
27686
+ * nothing captured in this light"* in the same calm voice as the coverage
27687
+ * line, because the alternative is a scene that silently stops answering
27688
+ * after sunset with nothing anywhere saying why. A skipped check must never
27689
+ * read as a broken one.
27690
+ */
27691
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
27692
+ /** Named cause when `verdict === 'unknown'`. */
27693
+ unavailable: SceneUnavailableSchema.nullable(),
27694
+ /** Conditions that have at least one comparable reference — the coverage line
27695
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
27696
+ coveredConditions: array(SceneConditionSchema)
26868
27697
  });
26869
27698
  var SceneMonitorStatusSchema = object({
26870
27699
  monitors: array(SceneMonitorSchema),
@@ -26877,12 +27706,6 @@ var sceneMonitorCapability = {
26877
27706
  kind: "wrapper",
26878
27707
  defaultActive: true,
26879
27708
  deviceTypes: [DeviceType.Camera],
26880
- deviceConfig: { ui: {
26881
- kind: "widget",
26882
- widgetId: "host/scene-monitor-editor",
26883
- tab: "scenes",
26884
- label: "Scenes"
26885
- } },
26886
27709
  methods: {
26887
27710
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26888
27711
  createScene: method(object({
@@ -26913,7 +27736,15 @@ var sceneMonitorCapability = {
26913
27736
  "both"
26914
27737
  ]).optional(),
26915
27738
  checkIntervalSec: number().optional(),
26916
- check: SceneCheckSchema.optional()
27739
+ check: SceneCheckSchema.optional(),
27740
+ emit: _enum(["latched", "live"]).optional(),
27741
+ quietSeconds: number().int().min(0).max(3600).optional(),
27742
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
27743
+ anchorThreshold: number().min(0).max(1).optional(),
27744
+ autoRestore: boolean().optional(),
27745
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
27746
+ /** `null` clears the vision-model adjudicator. */
27747
+ confirm: SceneConfirmSchema.nullable().optional()
26917
27748
  })
26918
27749
  }), _void(), {
26919
27750
  kind: "mutation",
@@ -26954,6 +27785,26 @@ var sceneMonitorCapability = {
26954
27785
  }), _void(), {
26955
27786
  kind: "mutation",
26956
27787
  auth: "admin"
27788
+ }),
27789
+ /**
27790
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
27791
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
27792
+ * "reset" in the operator's head means *this is the new normal*, and
27793
+ * re-capture is what makes the feature self-healing against slow drift
27794
+ * instead of failing silently weeks later.
27795
+ *
27796
+ * Reachable from three surfaces on this one mutation: the scene card, a
27797
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27798
+ * no new Notification-Center code at all), and tRPC for scripts.
27799
+ */
27800
+ resetScene: method(object({
27801
+ deviceId: number(),
27802
+ monitorId: string(),
27803
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27804
+ recapture: boolean().optional()
27805
+ }), _void(), {
27806
+ kind: "mutation",
27807
+ auth: "admin"
26957
27808
  })
26958
27809
  },
26959
27810
  status: {
@@ -27190,7 +28041,70 @@ var CamStreamDescriptorSchema = object({
27190
28041
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
27191
28042
  metadata: record(string(), unknown()).optional()
27192
28043
  });
27193
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
28044
+ /**
28045
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
28046
+ * of the removed `publishCameraStream` push: a camera provider returns the full
28047
+ * set of stream descriptors it can offer for the device, synchronously, so the
28048
+ * broker can reconcile its registry against the authoritative provider state.
28049
+ */
28050
+ /**
28051
+ * The catalog as a DURABLE fact rather than a live answer.
28052
+ *
28053
+ * A battery camera's descriptors are profile-stable — they change when the
28054
+ * operator rewrites an encoder profile, not minute to minute — but building
28055
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
28056
+ * provider is allowed to build them exactly once per profile and must serve
28057
+ * every later pull from a cache.
28058
+ *
28059
+ * Holding that cache only in RAM is what turned a restart into an outage. The
28060
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
28061
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
28062
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
28063
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
28064
+ * which on a battery cam is most of the day. The camera was fine. The stream
28065
+ * was unreachable because the process had forgotten what the camera offers.
28066
+ *
28067
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
28068
+ * declared collection, with the same `restored` durability `battery` uses for
28069
+ * the same reason: the last known value is the only value there is while the
28070
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
28071
+ * is the DIAL that wakes a camera, never the catalog (D173).
28072
+ */
28073
+ var StreamCatalogStateSchema = object({
28074
+ /** The descriptors as last built from a real camera response. Never a guess:
28075
+ * a failed or refused build writes NOTHING, so a restored catalog is always
28076
+ * one the camera itself once produced. */
28077
+ descriptors: array(CamStreamDescriptorSchema),
28078
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
28079
+ * path decide whether the camera's own awake window is worth spending on a
28080
+ * re-read. */
28081
+ lastFetchedAt: number()
28082
+ });
28083
+ var streamCatalogCapability = {
28084
+ name: "stream-catalog",
28085
+ scope: "device",
28086
+ deviceNative: true,
28087
+ mode: "singleton",
28088
+ deviceTypes: [DeviceType.Camera],
28089
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
28090
+ runtimeState: StreamCatalogStateSchema,
28091
+ /**
28092
+ * Runtime-state durability: **restored** — see the schema doc. A cold
28093
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
28094
+ * camera that cannot be watched at all until it happens to wake.
28095
+ *
28096
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
28097
+ * build, and a build only runs when there is no cached copy (or the copy is
28098
+ * a day old and the camera is awake anyway).
28099
+ *
28100
+ * See `RuntimeStateDurability`. Enforced by
28101
+ * `scripts/check-runtime-state-durability.ts`.
28102
+ */
28103
+ durability: "restored",
28104
+ /** Clock field: written, but excluded from the compare that decides whether
28105
+ * persisting is worth a SQLite commit — the descriptors are the value. */
28106
+ volatileStateFields: ["lastFetchedAt"]
28107
+ };
27194
28108
  /** One of the camera's stream profiles. */
27195
28109
  var StreamProfileSchema = _enum([
27196
28110
  "main",
@@ -27444,12 +28358,64 @@ var NetworkAddressSchema = object({
27444
28358
  family: string(),
27445
28359
  internal: boolean()
27446
28360
  });
28361
+ /**
28362
+ * Provenance of the site coordinates, and the whole reason this is not just two
28363
+ * numbers.
28364
+ *
28365
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
28366
+ * nothing overwrites it.
28367
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
28368
+ * default that is right to a few kilometres beats the coarse UTC clock split
28369
+ * the sun-times consumers otherwise fall back to.
28370
+ *
28371
+ * The UI shows which one it is. An operator who cannot tell a guess from their
28372
+ * own input will eventually trust the guess.
28373
+ */
28374
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
28375
+ /**
28376
+ * The read shape: the location plus the honest state of the one-shot derivation.
28377
+ *
28378
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
28379
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
28380
+ * failed; the hub will NOT try again on its own — the fallback is declared
28381
+ * (consumers degrade to their own last resort) and the operator either types the
28382
+ * coordinates or presses detect.
28383
+ */
28384
+ var SiteLocationStatusSchema = object({
28385
+ location: object({
28386
+ /** WGS84 decimal degrees. */
28387
+ latitude: number().min(-90).max(90),
28388
+ longitude: number().min(-180).max(180),
28389
+ source: SiteLocationSourceSchema,
28390
+ /** Epoch ms the value was last written. */
28391
+ updatedAt: number(),
28392
+ /**
28393
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
28394
+ * only — never parsed, never matched on. Absent for an operator-typed value.
28395
+ */
28396
+ label: string().optional()
28397
+ }).nullable(),
28398
+ derivationAttemptedAt: number().nullable(),
28399
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
28400
+ derivationError: string().nullable()
28401
+ });
28402
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
28403
+ var SetSiteLocationInputSchema = object({
28404
+ latitude: number().min(-90).max(90),
28405
+ longitude: number().min(-180).max(180)
28406
+ }).nullable();
27447
28407
  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(), {
27448
28408
  kind: "mutation",
27449
28409
  auth: "admin"
27450
28410
  }), method(_void(), _void(), {
27451
28411
  kind: "mutation",
27452
28412
  auth: "admin"
28413
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
28414
+ kind: "mutation",
28415
+ auth: "admin"
28416
+ }), method(_void(), SiteLocationStatusSchema, {
28417
+ kind: "mutation",
28418
+ auth: "admin"
27453
28419
  });
27454
28420
  /**
27455
28421
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -28769,6 +29735,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28769
29735
  humiditySensor: humiditySensorCapability,
28770
29736
  image: imageCapability,
28771
29737
  imageSettings: imageSettingsCapability,
29738
+ intercom: intercomCapability,
28772
29739
  lawnMowerControl: lawnMowerControlCapability,
28773
29740
  lockControl: lockControlCapability,
28774
29741
  mediaPlayer: mediaPlayerCapability,
@@ -28787,6 +29754,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28787
29754
  sceneMonitor: sceneMonitorCapability,
28788
29755
  scriptRunner: scriptRunnerCapability,
28789
29756
  smoke: smokeCapability,
29757
+ streamCatalog: streamCatalogCapability,
28790
29758
  streamParams: streamParamsCapability,
28791
29759
  switch: switchCapability,
28792
29760
  tamper: tamperCapability,
@@ -29440,6 +30408,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29440
30408
  labels: ["probe not implemented"]
29441
30409
  };
29442
30410
  }
30411
+ /**
30412
+ * Top-level devices restored at once in {@link onRestoreDevices}.
30413
+ *
30414
+ * Four covers the fleets this ships to without turning a boot into a burst a
30415
+ * camera NVR answers with a refusal. A provider whose upstream is a single
30416
+ * session with a serial command channel (a Baichuan hub, an NVR that
30417
+ * serialises ISAPI) should lower it; nothing needs to raise it.
30418
+ */
30419
+ restoreConcurrency = 4;
29443
30420
  async restoreDevices(savedDevices) {
29444
30421
  await this.onRestoreDevices(savedDevices);
29445
30422
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -29471,15 +30448,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29471
30448
  */
29472
30449
  async onRestoreDevices(savedDevices) {
29473
30450
  const restored = /* @__PURE__ */ new Set();
29474
- for (const saved of savedDevices) {
29475
- if (saved.parentDeviceId !== null) continue;
30451
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
30452
+ const restoreOne = async (saved) => {
29476
30453
  const Class = this.deviceClasses[saved.type];
29477
30454
  if (!Class) {
29478
30455
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
29479
30456
  tags: { stableId: saved.stableId },
29480
30457
  meta: { type: saved.type }
29481
30458
  });
29482
- continue;
30459
+ return;
29483
30460
  }
29484
30461
  try {
29485
30462
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -29493,7 +30470,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29493
30470
  }
29494
30471
  });
29495
30472
  }
29496
- }
30473
+ };
30474
+ let nextTopLevel = 0;
30475
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
30476
+ for (;;) {
30477
+ const saved = topLevel[nextTopLevel++];
30478
+ if (saved === void 0) return;
30479
+ await restoreOne(saved);
30480
+ }
30481
+ }));
29497
30482
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
29498
30483
  for (const saved of childRows) {
29499
30484
  const Class = this.deviceClasses[saved.type];
@@ -31584,6 +32569,12 @@ Object.freeze({
31584
32569
  addonId: null,
31585
32570
  access: "create"
31586
32571
  },
32572
+ "llm.cancel": {
32573
+ capName: "llm",
32574
+ capScope: "system",
32575
+ addonId: null,
32576
+ access: "create"
32577
+ },
31587
32578
  "llm.deleteModel": {
31588
32579
  capName: "llm",
31589
32580
  capScope: "system",
@@ -31668,6 +32659,12 @@ Object.freeze({
31668
32659
  addonId: null,
31669
32660
  access: "view"
31670
32661
  },
32662
+ "llm.resolveModelRef": {
32663
+ capName: "llm",
32664
+ capScope: "system",
32665
+ addonId: null,
32666
+ access: "create"
32667
+ },
31671
32668
  "llm.setDefault": {
31672
32669
  capName: "llm",
31673
32670
  capScope: "system",
@@ -33834,6 +34831,12 @@ Object.freeze({
33834
34831
  addonId: null,
33835
34832
  access: "create"
33836
34833
  },
34834
+ "sceneMonitor.resetScene": {
34835
+ capName: "scene-monitor",
34836
+ capScope: "device",
34837
+ addonId: null,
34838
+ access: "delete"
34839
+ },
33837
34840
  "sceneMonitor.updateScene": {
33838
34841
  capName: "scene-monitor",
33839
34842
  capScope: "device",
@@ -34512,6 +35515,12 @@ Object.freeze({
34512
35515
  addonId: null,
34513
35516
  access: "create"
34514
35517
  },
35518
+ "system.detectSiteLocation": {
35519
+ capName: "system",
35520
+ capScope: "system",
35521
+ addonId: null,
35522
+ access: "create"
35523
+ },
34515
35524
  "system.featureFlags": {
34516
35525
  capName: "system",
34517
35526
  capScope: "system",
@@ -34530,6 +35539,12 @@ Object.freeze({
34530
35539
  addonId: null,
34531
35540
  access: "view"
34532
35541
  },
35542
+ "system.getSiteLocation": {
35543
+ capName: "system",
35544
+ capScope: "system",
35545
+ addonId: null,
35546
+ access: "view"
35547
+ },
34533
35548
  "system.health": {
34534
35549
  capName: "system",
34535
35550
  capScope: "system",
@@ -34554,6 +35569,12 @@ Object.freeze({
34554
35569
  addonId: null,
34555
35570
  access: "create"
34556
35571
  },
35572
+ "system.setSiteLocation": {
35573
+ capName: "system",
35574
+ capScope: "system",
35575
+ addonId: null,
35576
+ access: "create"
35577
+ },
34557
35578
  "terminalSession.adoptLegacyMonitor": {
34558
35579
  capName: "terminal-session",
34559
35580
  capScope: "system",
@@ -35125,6 +36146,1704 @@ Object.freeze({
35125
36146
  access: "create"
35126
36147
  }
35127
36148
  });
36149
+ Object.freeze({
36150
+ "accessories.setChildHidden": [{
36151
+ name: "childDeviceId",
36152
+ form: "single",
36153
+ optional: false
36154
+ }, {
36155
+ name: "deviceId",
36156
+ form: "single",
36157
+ optional: false
36158
+ }],
36159
+ "addonSettings.getDeviceSettings": [{
36160
+ name: "deviceId",
36161
+ form: "single",
36162
+ optional: false
36163
+ }],
36164
+ "addonSettings.updateDeviceSettings": [{
36165
+ name: "deviceId",
36166
+ form: "single",
36167
+ optional: false
36168
+ }],
36169
+ "alarmPanel.arm": [{
36170
+ name: "deviceId",
36171
+ form: "single",
36172
+ optional: false
36173
+ }],
36174
+ "alarmPanel.disarm": [{
36175
+ name: "deviceId",
36176
+ form: "single",
36177
+ optional: false
36178
+ }],
36179
+ "alarmPanel.trigger": [{
36180
+ name: "deviceId",
36181
+ form: "single",
36182
+ optional: false
36183
+ }],
36184
+ "audioAnalysis.resolveDeviceSettings": [{
36185
+ name: "deviceId",
36186
+ form: "single",
36187
+ optional: false
36188
+ }],
36189
+ "audioAnalyzer.classify": [{
36190
+ name: "deviceId",
36191
+ form: "single",
36192
+ optional: true
36193
+ }],
36194
+ "audioMetrics.getCurrentSnapshot": [{
36195
+ name: "deviceId",
36196
+ form: "single",
36197
+ optional: false
36198
+ }],
36199
+ "audioMetrics.getHistory": [{
36200
+ name: "deviceId",
36201
+ form: "single",
36202
+ optional: false
36203
+ }],
36204
+ "automationControl.disable": [{
36205
+ name: "deviceId",
36206
+ form: "single",
36207
+ optional: false
36208
+ }],
36209
+ "automationControl.enable": [{
36210
+ name: "deviceId",
36211
+ form: "single",
36212
+ optional: false
36213
+ }],
36214
+ "automationControl.trigger": [{
36215
+ name: "deviceId",
36216
+ form: "single",
36217
+ optional: false
36218
+ }],
36219
+ "battery.wakeForStream": [{
36220
+ name: "deviceId",
36221
+ form: "single",
36222
+ optional: false
36223
+ }],
36224
+ "brightness.setBrightness": [{
36225
+ name: "deviceId",
36226
+ form: "single",
36227
+ optional: false
36228
+ }],
36229
+ "button.press": [{
36230
+ name: "deviceId",
36231
+ form: "single",
36232
+ optional: false
36233
+ }],
36234
+ "cameraCredentials.getCredentials": [{
36235
+ name: "deviceId",
36236
+ form: "single",
36237
+ optional: false
36238
+ }],
36239
+ "cameraStreams.getBrokerStreams": [{
36240
+ name: "deviceId",
36241
+ form: "single",
36242
+ optional: false
36243
+ }],
36244
+ "cameraStreams.getCameraStreams": [{
36245
+ name: "deviceId",
36246
+ form: "single",
36247
+ optional: false
36248
+ }],
36249
+ "cameraStreams.getProfileRtspEntries": [{
36250
+ name: "deviceId",
36251
+ form: "single",
36252
+ optional: false
36253
+ }],
36254
+ "cameraStreams.getRtspEntries": [{
36255
+ name: "deviceId",
36256
+ form: "single",
36257
+ optional: false
36258
+ }],
36259
+ "cameraStreams.pickStream": [{
36260
+ name: "deviceId",
36261
+ form: "single",
36262
+ optional: false
36263
+ }],
36264
+ "climateControl.setFanMode": [{
36265
+ name: "deviceId",
36266
+ form: "single",
36267
+ optional: false
36268
+ }],
36269
+ "climateControl.setMode": [{
36270
+ name: "deviceId",
36271
+ form: "single",
36272
+ optional: false
36273
+ }],
36274
+ "climateControl.setPreset": [{
36275
+ name: "deviceId",
36276
+ form: "single",
36277
+ optional: false
36278
+ }],
36279
+ "climateControl.setSwingHorizontal": [{
36280
+ name: "deviceId",
36281
+ form: "single",
36282
+ optional: false
36283
+ }],
36284
+ "climateControl.setSwingVertical": [{
36285
+ name: "deviceId",
36286
+ form: "single",
36287
+ optional: false
36288
+ }],
36289
+ "climateControl.setTarget": [{
36290
+ name: "deviceId",
36291
+ form: "single",
36292
+ optional: false
36293
+ }],
36294
+ "climateControl.setTargetHumidity": [{
36295
+ name: "deviceId",
36296
+ form: "single",
36297
+ optional: false
36298
+ }],
36299
+ "climateControl.setTargetRange": [{
36300
+ name: "deviceId",
36301
+ form: "single",
36302
+ optional: false
36303
+ }],
36304
+ "color.setColor": [{
36305
+ name: "deviceId",
36306
+ form: "single",
36307
+ optional: false
36308
+ }],
36309
+ "consumables.reset": [{
36310
+ name: "deviceId",
36311
+ form: "single",
36312
+ optional: false
36313
+ }],
36314
+ "control.setValue": [{
36315
+ name: "deviceId",
36316
+ form: "single",
36317
+ optional: false
36318
+ }],
36319
+ "cover.close": [{
36320
+ name: "deviceId",
36321
+ form: "single",
36322
+ optional: false
36323
+ }],
36324
+ "cover.open": [{
36325
+ name: "deviceId",
36326
+ form: "single",
36327
+ optional: false
36328
+ }],
36329
+ "cover.setPosition": [{
36330
+ name: "deviceId",
36331
+ form: "single",
36332
+ optional: false
36333
+ }],
36334
+ "cover.setTiltPosition": [{
36335
+ name: "deviceId",
36336
+ form: "single",
36337
+ optional: false
36338
+ }],
36339
+ "cover.stop": [{
36340
+ name: "deviceId",
36341
+ form: "single",
36342
+ optional: false
36343
+ }],
36344
+ "dayNight.getOptions": [{
36345
+ name: "deviceId",
36346
+ form: "single",
36347
+ optional: false
36348
+ }],
36349
+ "dayNight.setSettings": [{
36350
+ name: "deviceId",
36351
+ form: "single",
36352
+ optional: false
36353
+ }],
36354
+ "decoder.createSession": [{
36355
+ name: "deviceId",
36356
+ form: "single",
36357
+ optional: true
36358
+ }],
36359
+ "deviceAdoption.release": [{
36360
+ name: "camDeviceId",
36361
+ form: "single",
36362
+ optional: false
36363
+ }],
36364
+ "deviceAdoption.resync": [{
36365
+ name: "camDeviceId",
36366
+ form: "single",
36367
+ optional: false
36368
+ }],
36369
+ "deviceDiscovery.adoptDevice": [{
36370
+ name: "deviceId",
36371
+ form: "single",
36372
+ optional: false
36373
+ }],
36374
+ "deviceDiscovery.listDiscovered": [{
36375
+ name: "deviceId",
36376
+ form: "single",
36377
+ optional: false
36378
+ }],
36379
+ "deviceDiscovery.refreshDiscovery": [{
36380
+ name: "deviceId",
36381
+ form: "single",
36382
+ optional: false
36383
+ }],
36384
+ "deviceDiscovery.releaseDevice": [{
36385
+ name: "childDeviceId",
36386
+ form: "single",
36387
+ optional: false
36388
+ }, {
36389
+ name: "deviceId",
36390
+ form: "single",
36391
+ optional: false
36392
+ }],
36393
+ "deviceManager.adoptionRelease": [{
36394
+ name: "camDeviceId",
36395
+ form: "single",
36396
+ optional: false
36397
+ }],
36398
+ "deviceManager.adoptionResync": [{
36399
+ name: "camDeviceId",
36400
+ form: "single",
36401
+ optional: false
36402
+ }],
36403
+ "deviceManager.applyInitialMeta": [{
36404
+ name: "deviceId",
36405
+ form: "single",
36406
+ optional: false
36407
+ }, {
36408
+ name: "linkDeviceId",
36409
+ form: "single",
36410
+ optional: true
36411
+ }],
36412
+ "deviceManager.disable": [{
36413
+ name: "deviceId",
36414
+ form: "single",
36415
+ optional: false
36416
+ }],
36417
+ "deviceManager.enable": [{
36418
+ name: "deviceId",
36419
+ form: "single",
36420
+ optional: false
36421
+ }],
36422
+ "deviceManager.getBindings": [{
36423
+ name: "deviceId",
36424
+ form: "single",
36425
+ optional: false
36426
+ }],
36427
+ "deviceManager.getChildren": [{
36428
+ name: "parentDeviceId",
36429
+ form: "single",
36430
+ optional: false
36431
+ }],
36432
+ "deviceManager.getConfigSchema": [{
36433
+ name: "deviceId",
36434
+ form: "single",
36435
+ optional: false
36436
+ }],
36437
+ "deviceManager.getDevice": [{
36438
+ name: "deviceId",
36439
+ form: "single",
36440
+ optional: false
36441
+ }],
36442
+ "deviceManager.getDeviceAggregate": [{
36443
+ name: "deviceId",
36444
+ form: "single",
36445
+ optional: false
36446
+ }],
36447
+ "deviceManager.getDeviceLiveInfoAggregate": [{
36448
+ name: "deviceId",
36449
+ form: "single",
36450
+ optional: false
36451
+ }],
36452
+ "deviceManager.getDeviceSettingsAggregate": [{
36453
+ name: "deviceId",
36454
+ form: "single",
36455
+ optional: false
36456
+ }],
36457
+ "deviceManager.getDeviceStatusAggregate": [{
36458
+ name: "deviceId",
36459
+ form: "single",
36460
+ optional: false
36461
+ }],
36462
+ "deviceManager.getDeviceStatusAggregateBatch": [{
36463
+ name: "deviceIds",
36464
+ form: "array",
36465
+ optional: false
36466
+ }],
36467
+ "deviceManager.getLinkedDevices": [{
36468
+ name: "deviceId",
36469
+ form: "single",
36470
+ optional: false
36471
+ }],
36472
+ "deviceManager.getSettingsSchema": [{
36473
+ name: "deviceId",
36474
+ form: "single",
36475
+ optional: false
36476
+ }],
36477
+ "deviceManager.getStreamProfileMap": [{
36478
+ name: "deviceId",
36479
+ form: "single",
36480
+ optional: false
36481
+ }],
36482
+ "deviceManager.getStreamSources": [{
36483
+ name: "deviceId",
36484
+ form: "single",
36485
+ optional: false
36486
+ }],
36487
+ "deviceManager.getWireableFields": [{
36488
+ name: "deviceId",
36489
+ form: "single",
36490
+ optional: false
36491
+ }],
36492
+ "deviceManager.loadConfig": [{
36493
+ name: "deviceId",
36494
+ form: "single",
36495
+ optional: false
36496
+ }],
36497
+ "deviceManager.loadMeta": [{
36498
+ name: "deviceId",
36499
+ form: "single",
36500
+ optional: false
36501
+ }],
36502
+ "deviceManager.loadRuntimeState": [{
36503
+ name: "deviceId",
36504
+ form: "single",
36505
+ optional: false
36506
+ }],
36507
+ "deviceManager.persistConfig": [{
36508
+ name: "deviceId",
36509
+ form: "single",
36510
+ optional: false
36511
+ }],
36512
+ "deviceManager.probeStreams": [{
36513
+ name: "deviceId",
36514
+ form: "single",
36515
+ optional: false
36516
+ }],
36517
+ "deviceManager.registerDevice": [{
36518
+ name: "parentDeviceId",
36519
+ form: "single",
36520
+ optional: true
36521
+ }],
36522
+ "deviceManager.remove": [{
36523
+ name: "deviceId",
36524
+ form: "single",
36525
+ optional: false
36526
+ }],
36527
+ "deviceManager.removeDevice": [{
36528
+ name: "deviceId",
36529
+ form: "single",
36530
+ optional: false
36531
+ }],
36532
+ "deviceManager.runDeviceAction": [{
36533
+ name: "deviceId",
36534
+ form: "single",
36535
+ optional: false
36536
+ }],
36537
+ "deviceManager.setChildLayout": [{
36538
+ name: "deviceId",
36539
+ form: "single",
36540
+ optional: false
36541
+ }],
36542
+ "deviceManager.setDisabled": [{
36543
+ name: "deviceId",
36544
+ form: "single",
36545
+ optional: false
36546
+ }],
36547
+ "deviceManager.setDisplay": [{
36548
+ name: "deviceId",
36549
+ form: "single",
36550
+ optional: false
36551
+ }],
36552
+ "deviceManager.setIntegrationId": [{
36553
+ name: "deviceId",
36554
+ form: "single",
36555
+ optional: false
36556
+ }],
36557
+ "deviceManager.setLinkDeviceId": [{
36558
+ name: "deviceId",
36559
+ form: "single",
36560
+ optional: false
36561
+ }, {
36562
+ name: "linkDeviceId",
36563
+ form: "single",
36564
+ optional: true
36565
+ }],
36566
+ "deviceManager.setLocation": [{
36567
+ name: "deviceId",
36568
+ form: "single",
36569
+ optional: false
36570
+ }],
36571
+ "deviceManager.setMetadata": [{
36572
+ name: "deviceId",
36573
+ form: "single",
36574
+ optional: false
36575
+ }],
36576
+ "deviceManager.setName": [{
36577
+ name: "deviceId",
36578
+ form: "single",
36579
+ optional: false
36580
+ }],
36581
+ "deviceManager.setPrimaryChildEntityId": [{
36582
+ name: "deviceId",
36583
+ form: "single",
36584
+ optional: false
36585
+ }],
36586
+ "deviceManager.setRole": [{
36587
+ name: "deviceId",
36588
+ form: "single",
36589
+ optional: false
36590
+ }],
36591
+ "deviceManager.setStreamProfileMap": [{
36592
+ name: "deviceId",
36593
+ form: "single",
36594
+ optional: false
36595
+ }],
36596
+ "deviceManager.setType": [{
36597
+ name: "deviceId",
36598
+ form: "single",
36599
+ optional: false
36600
+ }],
36601
+ "deviceManager.setWrapperActive": [{
36602
+ name: "deviceId",
36603
+ form: "single",
36604
+ optional: false
36605
+ }],
36606
+ "deviceManager.testField": [{
36607
+ name: "deviceId",
36608
+ form: "single",
36609
+ optional: false
36610
+ }],
36611
+ "deviceManager.updateConfig": [{
36612
+ name: "deviceId",
36613
+ form: "single",
36614
+ optional: false
36615
+ }],
36616
+ "deviceManager.updateDeviceField": [{
36617
+ name: "deviceId",
36618
+ form: "single",
36619
+ optional: false
36620
+ }],
36621
+ "deviceManager.updateDeviceFieldsBatch": [{
36622
+ name: "deviceId",
36623
+ form: "single",
36624
+ optional: false
36625
+ }],
36626
+ "deviceOps.getConfigEntries": [{
36627
+ name: "deviceId",
36628
+ form: "single",
36629
+ optional: false
36630
+ }],
36631
+ "deviceOps.getRawState": [{
36632
+ name: "deviceId",
36633
+ form: "single",
36634
+ optional: false
36635
+ }],
36636
+ "deviceOps.getSettingsSchema": [{
36637
+ name: "deviceId",
36638
+ form: "single",
36639
+ optional: false
36640
+ }],
36641
+ "deviceOps.getStreamSources": [{
36642
+ name: "deviceId",
36643
+ form: "single",
36644
+ optional: false
36645
+ }],
36646
+ "deviceOps.removeDevice": [{
36647
+ name: "deviceId",
36648
+ form: "single",
36649
+ optional: false
36650
+ }],
36651
+ "deviceOps.runAction": [{
36652
+ name: "deviceId",
36653
+ form: "single",
36654
+ optional: false
36655
+ }],
36656
+ "deviceOps.setConfig": [{
36657
+ name: "deviceId",
36658
+ form: "single",
36659
+ optional: false
36660
+ }],
36661
+ "deviceState.getCapSlice": [{
36662
+ name: "deviceId",
36663
+ form: "single",
36664
+ optional: false
36665
+ }],
36666
+ "deviceState.getSnapshot": [{
36667
+ name: "deviceId",
36668
+ form: "single",
36669
+ optional: false
36670
+ }],
36671
+ "deviceState.setCapSlice": [{
36672
+ name: "deviceId",
36673
+ form: "single",
36674
+ optional: false
36675
+ }],
36676
+ "events.getEventClipUrl": [{
36677
+ name: "deviceId",
36678
+ form: "single",
36679
+ optional: false
36680
+ }],
36681
+ "events.getEvents": [{
36682
+ name: "deviceId",
36683
+ form: "single",
36684
+ optional: false
36685
+ }],
36686
+ "events.getEventThumbnail": [{
36687
+ name: "deviceId",
36688
+ form: "single",
36689
+ optional: false
36690
+ }],
36691
+ "faceGallery.getFaceByTrack": [{
36692
+ name: "deviceId",
36693
+ form: "single",
36694
+ optional: false
36695
+ }],
36696
+ "faceGallery.listRecentFaces": [{
36697
+ name: "deviceId",
36698
+ form: "single",
36699
+ optional: true
36700
+ }],
36701
+ "fanControl.setDirection": [{
36702
+ name: "deviceId",
36703
+ form: "single",
36704
+ optional: false
36705
+ }],
36706
+ "fanControl.setOscillating": [{
36707
+ name: "deviceId",
36708
+ form: "single",
36709
+ optional: false
36710
+ }],
36711
+ "fanControl.setPercentage": [{
36712
+ name: "deviceId",
36713
+ form: "single",
36714
+ optional: false
36715
+ }],
36716
+ "fanControl.setPreset": [{
36717
+ name: "deviceId",
36718
+ form: "single",
36719
+ optional: false
36720
+ }],
36721
+ "humidifier.setMode": [{
36722
+ name: "deviceId",
36723
+ form: "single",
36724
+ optional: false
36725
+ }],
36726
+ "humidifier.setOn": [{
36727
+ name: "deviceId",
36728
+ form: "single",
36729
+ optional: false
36730
+ }],
36731
+ "humidifier.setTargetHumidity": [{
36732
+ name: "deviceId",
36733
+ form: "single",
36734
+ optional: false
36735
+ }],
36736
+ "imageSettings.getOptions": [{
36737
+ name: "deviceId",
36738
+ form: "single",
36739
+ optional: false
36740
+ }],
36741
+ "imageSettings.setSettings": [{
36742
+ name: "deviceId",
36743
+ form: "single",
36744
+ optional: false
36745
+ }],
36746
+ "intercom.endTalkSession": [{
36747
+ name: "deviceId",
36748
+ form: "single",
36749
+ optional: false
36750
+ }],
36751
+ "intercom.handleAnswer": [{
36752
+ name: "deviceId",
36753
+ form: "single",
36754
+ optional: false
36755
+ }],
36756
+ "intercom.pushTalkAudio": [{
36757
+ name: "deviceId",
36758
+ form: "single",
36759
+ optional: false
36760
+ }],
36761
+ "intercom.startSession": [{
36762
+ name: "deviceId",
36763
+ form: "single",
36764
+ optional: false
36765
+ }],
36766
+ "intercom.startTalkSession": [{
36767
+ name: "deviceId",
36768
+ form: "single",
36769
+ optional: false
36770
+ }],
36771
+ "intercom.stopSession": [{
36772
+ name: "deviceId",
36773
+ form: "single",
36774
+ optional: false
36775
+ }],
36776
+ "lawnMowerControl.dock": [{
36777
+ name: "deviceId",
36778
+ form: "single",
36779
+ optional: false
36780
+ }],
36781
+ "lawnMowerControl.pause": [{
36782
+ name: "deviceId",
36783
+ form: "single",
36784
+ optional: false
36785
+ }],
36786
+ "lawnMowerControl.startMowing": [{
36787
+ name: "deviceId",
36788
+ form: "single",
36789
+ optional: false
36790
+ }],
36791
+ "lockControl.lock": [{
36792
+ name: "deviceId",
36793
+ form: "single",
36794
+ optional: false
36795
+ }],
36796
+ "lockControl.open": [{
36797
+ name: "deviceId",
36798
+ form: "single",
36799
+ optional: false
36800
+ }],
36801
+ "lockControl.unlock": [{
36802
+ name: "deviceId",
36803
+ form: "single",
36804
+ optional: false
36805
+ }],
36806
+ "mediaPlayer.next": [{
36807
+ name: "deviceId",
36808
+ form: "single",
36809
+ optional: false
36810
+ }],
36811
+ "mediaPlayer.pause": [{
36812
+ name: "deviceId",
36813
+ form: "single",
36814
+ optional: false
36815
+ }],
36816
+ "mediaPlayer.play": [{
36817
+ name: "deviceId",
36818
+ form: "single",
36819
+ optional: false
36820
+ }],
36821
+ "mediaPlayer.playMedia": [{
36822
+ name: "deviceId",
36823
+ form: "single",
36824
+ optional: false
36825
+ }],
36826
+ "mediaPlayer.previous": [{
36827
+ name: "deviceId",
36828
+ form: "single",
36829
+ optional: false
36830
+ }],
36831
+ "mediaPlayer.seek": [{
36832
+ name: "deviceId",
36833
+ form: "single",
36834
+ optional: false
36835
+ }],
36836
+ "mediaPlayer.selectSource": [{
36837
+ name: "deviceId",
36838
+ form: "single",
36839
+ optional: false
36840
+ }],
36841
+ "mediaPlayer.setMute": [{
36842
+ name: "deviceId",
36843
+ form: "single",
36844
+ optional: false
36845
+ }],
36846
+ "mediaPlayer.setRepeat": [{
36847
+ name: "deviceId",
36848
+ form: "single",
36849
+ optional: false
36850
+ }],
36851
+ "mediaPlayer.setShuffle": [{
36852
+ name: "deviceId",
36853
+ form: "single",
36854
+ optional: false
36855
+ }],
36856
+ "mediaPlayer.setVolume": [{
36857
+ name: "deviceId",
36858
+ form: "single",
36859
+ optional: false
36860
+ }],
36861
+ "mediaPlayer.stop": [{
36862
+ name: "deviceId",
36863
+ form: "single",
36864
+ optional: false
36865
+ }],
36866
+ "motion.isDetected": [{
36867
+ name: "deviceId",
36868
+ form: "single",
36869
+ optional: false
36870
+ }],
36871
+ "motionDetection.analyze": [{
36872
+ name: "deviceId",
36873
+ form: "single",
36874
+ optional: false
36875
+ }],
36876
+ "motionDetection.removeCamera": [{
36877
+ name: "deviceId",
36878
+ form: "single",
36879
+ optional: false
36880
+ }],
36881
+ "motionTrigger.setMotionTrigger": [{
36882
+ name: "deviceId",
36883
+ form: "single",
36884
+ optional: false
36885
+ }],
36886
+ "motionZones.getOptions": [{
36887
+ name: "deviceId",
36888
+ form: "single",
36889
+ optional: false
36890
+ }],
36891
+ "motionZones.setZone": [{
36892
+ name: "deviceId",
36893
+ form: "single",
36894
+ optional: false
36895
+ }],
36896
+ "nativeObjectDetection.setEnabled": [{
36897
+ name: "deviceId",
36898
+ form: "single",
36899
+ optional: false
36900
+ }],
36901
+ "networkQuality.getDeviceStats": [{
36902
+ name: "deviceId",
36903
+ form: "single",
36904
+ optional: false
36905
+ }],
36906
+ "networkQuality.reportClientStats": [{
36907
+ name: "deviceId",
36908
+ form: "single",
36909
+ optional: false
36910
+ }],
36911
+ "notificationRules.setDeviceMuted": [{
36912
+ name: "deviceId",
36913
+ form: "single",
36914
+ optional: false
36915
+ }],
36916
+ "notifier.cancel": [{
36917
+ name: "deviceId",
36918
+ form: "single",
36919
+ optional: false
36920
+ }],
36921
+ "notifier.send": [{
36922
+ name: "deviceId",
36923
+ form: "single",
36924
+ optional: false
36925
+ }],
36926
+ "osd.setOverlay": [{
36927
+ name: "deviceId",
36928
+ form: "single",
36929
+ optional: false
36930
+ }],
36931
+ "osdManager.clearSlotBinding": [{
36932
+ name: "deviceId",
36933
+ form: "single",
36934
+ optional: false
36935
+ }],
36936
+ "osdManager.copyDeviceConfiguration": [{
36937
+ name: "sourceDeviceId",
36938
+ form: "single",
36939
+ optional: false
36940
+ }, {
36941
+ name: "targetDeviceId",
36942
+ form: "single",
36943
+ optional: false
36944
+ }],
36945
+ "osdManager.getDeviceOsd": [{
36946
+ name: "deviceId",
36947
+ form: "single",
36948
+ optional: false
36949
+ }],
36950
+ "osdManager.getSourceCatalog": [{
36951
+ name: "deviceId",
36952
+ form: "single",
36953
+ optional: false
36954
+ }],
36955
+ "osdManager.previewSlot": [{
36956
+ name: "deviceId",
36957
+ form: "single",
36958
+ optional: false
36959
+ }],
36960
+ "osdManager.renderDevice": [{
36961
+ name: "deviceId",
36962
+ form: "single",
36963
+ optional: false
36964
+ }],
36965
+ "osdManager.setSlotBinding": [{
36966
+ name: "deviceId",
36967
+ form: "single",
36968
+ optional: false
36969
+ }],
36970
+ "petFeeder.callPet": [{
36971
+ name: "deviceId",
36972
+ form: "single",
36973
+ optional: false
36974
+ }],
36975
+ "petFeeder.cancelFeed": [{
36976
+ name: "deviceId",
36977
+ form: "single",
36978
+ optional: false
36979
+ }],
36980
+ "petFeeder.feed": [{
36981
+ name: "deviceId",
36982
+ form: "single",
36983
+ optional: false
36984
+ }],
36985
+ "petFeeder.markFoodReplenished": [{
36986
+ name: "deviceId",
36987
+ form: "single",
36988
+ optional: false
36989
+ }],
36990
+ "petFeeder.playSound": [{
36991
+ name: "deviceId",
36992
+ form: "single",
36993
+ optional: false
36994
+ }],
36995
+ "petFeeder.resetDesiccant": [{
36996
+ name: "deviceId",
36997
+ form: "single",
36998
+ optional: false
36999
+ }],
37000
+ "petFeeder.setChildLock": [{
37001
+ name: "deviceId",
37002
+ form: "single",
37003
+ optional: false
37004
+ }],
37005
+ "petFeeder.setFeedSound": [{
37006
+ name: "deviceId",
37007
+ form: "single",
37008
+ optional: false
37009
+ }],
37010
+ "petFeeder.setIndicatorLight": [{
37011
+ name: "deviceId",
37012
+ form: "single",
37013
+ optional: false
37014
+ }],
37015
+ "petFeeder.setVolume": [{
37016
+ name: "deviceId",
37017
+ form: "single",
37018
+ optional: false
37019
+ }],
37020
+ "pipelineAnalytics.clearTracks": [{
37021
+ name: "deviceId",
37022
+ form: "single",
37023
+ optional: false
37024
+ }],
37025
+ "pipelineAnalytics.completeRetrainTrack": [{
37026
+ name: "deviceId",
37027
+ form: "single",
37028
+ optional: false
37029
+ }],
37030
+ "pipelineAnalytics.deleteDeviceEvents": [{
37031
+ name: "deviceId",
37032
+ form: "single",
37033
+ optional: false
37034
+ }],
37035
+ "pipelineAnalytics.deleteTracks": [{
37036
+ name: "deviceId",
37037
+ form: "single",
37038
+ optional: false
37039
+ }],
37040
+ "pipelineAnalytics.deselectRetrainFrame": [{
37041
+ name: "deviceId",
37042
+ form: "single",
37043
+ optional: false
37044
+ }],
37045
+ "pipelineAnalytics.getActiveTracks": [{
37046
+ name: "deviceId",
37047
+ form: "single",
37048
+ optional: false
37049
+ }],
37050
+ "pipelineAnalytics.getAudioEvents": [{
37051
+ name: "deviceId",
37052
+ form: "single",
37053
+ optional: false
37054
+ }],
37055
+ "pipelineAnalytics.getEventDensity": [{
37056
+ name: "deviceId",
37057
+ form: "single",
37058
+ optional: false
37059
+ }],
37060
+ "pipelineAnalytics.getEventMedia": [{
37061
+ name: "deviceId",
37062
+ form: "single",
37063
+ optional: false
37064
+ }],
37065
+ "pipelineAnalytics.getKeyEvents": [{
37066
+ name: "deviceId",
37067
+ form: "single",
37068
+ optional: false
37069
+ }],
37070
+ "pipelineAnalytics.getMotionEvents": [{
37071
+ name: "deviceId",
37072
+ form: "single",
37073
+ optional: false
37074
+ }],
37075
+ "pipelineAnalytics.getObjectEvents": [{
37076
+ name: "deviceId",
37077
+ form: "single",
37078
+ optional: false
37079
+ }],
37080
+ "pipelineAnalytics.getRetrainExportUrl": [{
37081
+ name: "deviceIds",
37082
+ form: "array",
37083
+ optional: true
37084
+ }],
37085
+ "pipelineAnalytics.getSensorEvents": [{
37086
+ name: "deviceId",
37087
+ form: "single",
37088
+ optional: false
37089
+ }],
37090
+ "pipelineAnalytics.getTrack": [{
37091
+ name: "deviceId",
37092
+ form: "single",
37093
+ optional: false
37094
+ }],
37095
+ "pipelineAnalytics.getTrackMedia": [{
37096
+ name: "deviceId",
37097
+ form: "single",
37098
+ optional: false
37099
+ }],
37100
+ "pipelineAnalytics.getTrainingExportSummary": [{
37101
+ name: "deviceIds",
37102
+ form: "array",
37103
+ optional: true
37104
+ }],
37105
+ "pipelineAnalytics.getTrainingExportUrl": [{
37106
+ name: "deviceIds",
37107
+ form: "array",
37108
+ optional: true
37109
+ }],
37110
+ "pipelineAnalytics.listEventKinds": [{
37111
+ name: "deviceId",
37112
+ form: "single",
37113
+ optional: false
37114
+ }],
37115
+ "pipelineAnalytics.listEventKindsBatch": [{
37116
+ name: "deviceIds",
37117
+ form: "array",
37118
+ optional: false
37119
+ }],
37120
+ "pipelineAnalytics.listOpsLog": [{
37121
+ name: "deviceId",
37122
+ form: "single",
37123
+ optional: true
37124
+ }],
37125
+ "pipelineAnalytics.listRecentTracks": [{
37126
+ name: "deviceIds",
37127
+ form: "array",
37128
+ optional: false
37129
+ }],
37130
+ "pipelineAnalytics.listRetrainStaging": [{
37131
+ name: "deviceIds",
37132
+ form: "array",
37133
+ optional: true
37134
+ }],
37135
+ "pipelineAnalytics.listTrackMedia": [{
37136
+ name: "deviceId",
37137
+ form: "single",
37138
+ optional: false
37139
+ }],
37140
+ "pipelineAnalytics.listTracks": [{
37141
+ name: "deviceId",
37142
+ form: "single",
37143
+ optional: false
37144
+ }],
37145
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
37146
+ name: "deviceId",
37147
+ form: "single",
37148
+ optional: false
37149
+ }],
37150
+ "pipelineAnalytics.pruneEventsBefore": [{
37151
+ name: "deviceId",
37152
+ form: "single",
37153
+ optional: false
37154
+ }],
37155
+ "pipelineAnalytics.pruneTracksBefore": [{
37156
+ name: "deviceId",
37157
+ form: "single",
37158
+ optional: false
37159
+ }],
37160
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
37161
+ name: "deviceId",
37162
+ form: "single",
37163
+ optional: true
37164
+ }],
37165
+ "pipelineAnalytics.restageRetrainTrack": [{
37166
+ name: "deviceId",
37167
+ form: "single",
37168
+ optional: false
37169
+ }],
37170
+ "pipelineAnalytics.saveRetrainAnnotations": [{
37171
+ name: "deviceId",
37172
+ form: "single",
37173
+ optional: false
37174
+ }],
37175
+ "pipelineAnalytics.searchObjectEvents": [{
37176
+ name: "deviceId",
37177
+ form: "single",
37178
+ optional: true
37179
+ }],
37180
+ "pipelineAnalytics.selectRetrainFrames": [{
37181
+ name: "deviceId",
37182
+ form: "single",
37183
+ optional: false
37184
+ }],
37185
+ "pipelineAnalytics.setTrackFlags": [{
37186
+ name: "deviceId",
37187
+ form: "single",
37188
+ optional: false
37189
+ }],
37190
+ "pipelineAnalytics.wipeAllAnalytics": [{
37191
+ name: "deviceId",
37192
+ form: "single",
37193
+ optional: false
37194
+ }],
37195
+ "pipelineExecutor.runPipeline": [{
37196
+ name: "deviceId",
37197
+ form: "single",
37198
+ optional: true
37199
+ }],
37200
+ "pipelineExecutor.runPipelineBatch": [{
37201
+ name: "deviceId",
37202
+ form: "single",
37203
+ optional: true
37204
+ }],
37205
+ "pipelineOrchestrator.assignAudio": [{
37206
+ name: "deviceId",
37207
+ form: "single",
37208
+ optional: false
37209
+ }],
37210
+ "pipelineOrchestrator.assignPipeline": [{
37211
+ name: "deviceId",
37212
+ form: "single",
37213
+ optional: false
37214
+ }],
37215
+ "pipelineOrchestrator.getAudioAssignment": [{
37216
+ name: "deviceId",
37217
+ form: "single",
37218
+ optional: false
37219
+ }],
37220
+ "pipelineOrchestrator.getCameraMetrics": [{
37221
+ name: "deviceId",
37222
+ form: "single",
37223
+ optional: false
37224
+ }],
37225
+ "pipelineOrchestrator.getCameraSettings": [{
37226
+ name: "deviceId",
37227
+ form: "single",
37228
+ optional: false
37229
+ }],
37230
+ "pipelineOrchestrator.getCameraStatus": [{
37231
+ name: "deviceId",
37232
+ form: "single",
37233
+ optional: false
37234
+ }],
37235
+ "pipelineOrchestrator.getCameraStatuses": [{
37236
+ name: "deviceIds",
37237
+ form: "array",
37238
+ optional: true
37239
+ }],
37240
+ "pipelineOrchestrator.getCameraStepOverrides": [{
37241
+ name: "deviceId",
37242
+ form: "single",
37243
+ optional: false
37244
+ }],
37245
+ "pipelineOrchestrator.getCameraSwitches": [{
37246
+ name: "deviceId",
37247
+ form: "single",
37248
+ optional: false
37249
+ }],
37250
+ "pipelineOrchestrator.getPipelineAssignment": [{
37251
+ name: "deviceId",
37252
+ form: "single",
37253
+ optional: false
37254
+ }],
37255
+ "pipelineOrchestrator.getPipelineDevicePin": [{
37256
+ name: "deviceId",
37257
+ form: "single",
37258
+ optional: false
37259
+ }],
37260
+ "pipelineOrchestrator.resolvePipeline": [{
37261
+ name: "deviceId",
37262
+ form: "single",
37263
+ optional: false
37264
+ }],
37265
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
37266
+ name: "deviceId",
37267
+ form: "single",
37268
+ optional: false
37269
+ }],
37270
+ "pipelineOrchestrator.setCameraStepOverride": [{
37271
+ name: "deviceId",
37272
+ form: "single",
37273
+ optional: false
37274
+ }],
37275
+ "pipelineOrchestrator.setCameraStepToggle": [{
37276
+ name: "deviceId",
37277
+ form: "single",
37278
+ optional: false
37279
+ }],
37280
+ "pipelineOrchestrator.setCameraSwitch": [{
37281
+ name: "deviceId",
37282
+ form: "single",
37283
+ optional: false
37284
+ }],
37285
+ "pipelineOrchestrator.setPipelineDevicePin": [{
37286
+ name: "deviceId",
37287
+ form: "single",
37288
+ optional: false
37289
+ }],
37290
+ "pipelineOrchestrator.unassignAudio": [{
37291
+ name: "deviceId",
37292
+ form: "single",
37293
+ optional: false
37294
+ }],
37295
+ "pipelineOrchestrator.unassignPipeline": [{
37296
+ name: "deviceId",
37297
+ form: "single",
37298
+ optional: false
37299
+ }],
37300
+ "pipelineRunner.attachCamera": [{
37301
+ name: "deviceId",
37302
+ form: "single",
37303
+ optional: false
37304
+ }],
37305
+ "pipelineRunner.detachCamera": [{
37306
+ name: "deviceId",
37307
+ form: "single",
37308
+ optional: false
37309
+ }],
37310
+ "pipelineRunner.getCameraMetrics": [{
37311
+ name: "deviceId",
37312
+ form: "single",
37313
+ optional: false
37314
+ }],
37315
+ "pipelineRunner.reportMotion": [{
37316
+ name: "deviceId",
37317
+ form: "single",
37318
+ optional: false
37319
+ }],
37320
+ "pipelineRunner.runDetailSubtree": [{
37321
+ name: "deviceId",
37322
+ form: "single",
37323
+ optional: false
37324
+ }],
37325
+ "pipelineRunner.runStatelessStep": [{
37326
+ name: "sourceDeviceId",
37327
+ form: "single",
37328
+ optional: false
37329
+ }],
37330
+ "plateGallery.getPlateByTrack": [{
37331
+ name: "deviceId",
37332
+ form: "single",
37333
+ optional: false
37334
+ }],
37335
+ "plateGallery.listPlates": [{
37336
+ name: "deviceId",
37337
+ form: "single",
37338
+ optional: true
37339
+ }],
37340
+ "privacyMask.getOptions": [{
37341
+ name: "deviceId",
37342
+ form: "single",
37343
+ optional: false
37344
+ }],
37345
+ "privacyMask.setAudioEnabled": [{
37346
+ name: "deviceId",
37347
+ form: "single",
37348
+ optional: false
37349
+ }],
37350
+ "privacyMask.setMask": [{
37351
+ name: "deviceId",
37352
+ form: "single",
37353
+ optional: false
37354
+ }],
37355
+ "ptz.continuousMove": [{
37356
+ name: "deviceId",
37357
+ form: "single",
37358
+ optional: false
37359
+ }],
37360
+ "ptz.deletePreset": [{
37361
+ name: "deviceId",
37362
+ form: "single",
37363
+ optional: false
37364
+ }],
37365
+ "ptz.getOptions": [{
37366
+ name: "deviceId",
37367
+ form: "single",
37368
+ optional: false
37369
+ }],
37370
+ "ptz.getPosition": [{
37371
+ name: "deviceId",
37372
+ form: "single",
37373
+ optional: false
37374
+ }],
37375
+ "ptz.getPresets": [{
37376
+ name: "deviceId",
37377
+ form: "single",
37378
+ optional: false
37379
+ }],
37380
+ "ptz.goHome": [{
37381
+ name: "deviceId",
37382
+ form: "single",
37383
+ optional: false
37384
+ }],
37385
+ "ptz.goToPreset": [{
37386
+ name: "deviceId",
37387
+ form: "single",
37388
+ optional: false
37389
+ }],
37390
+ "ptz.move": [{
37391
+ name: "deviceId",
37392
+ form: "single",
37393
+ optional: false
37394
+ }],
37395
+ "ptz.savePreset": [{
37396
+ name: "deviceId",
37397
+ form: "single",
37398
+ optional: false
37399
+ }],
37400
+ "ptz.setAutofocus": [{
37401
+ name: "deviceId",
37402
+ form: "single",
37403
+ optional: false
37404
+ }],
37405
+ "ptz.stop": [{
37406
+ name: "deviceId",
37407
+ form: "single",
37408
+ optional: false
37409
+ }],
37410
+ "ptzAutotrack.getSettings": [{
37411
+ name: "deviceId",
37412
+ form: "single",
37413
+ optional: false
37414
+ }],
37415
+ "ptzAutotrack.getStatus": [{
37416
+ name: "deviceId",
37417
+ form: "single",
37418
+ optional: false
37419
+ }],
37420
+ "ptzAutotrack.setEnabled": [{
37421
+ name: "deviceId",
37422
+ form: "single",
37423
+ optional: false
37424
+ }],
37425
+ "ptzAutotrack.setSettings": [{
37426
+ name: "deviceId",
37427
+ form: "single",
37428
+ optional: false
37429
+ }],
37430
+ "reboot.reboot": [{
37431
+ name: "deviceId",
37432
+ form: "single",
37433
+ optional: false
37434
+ }],
37435
+ "recording.deleteFootprint": [{
37436
+ name: "deviceId",
37437
+ form: "single",
37438
+ optional: false
37439
+ }],
37440
+ "recording.getAvailability": [{
37441
+ name: "deviceId",
37442
+ form: "single",
37443
+ optional: false
37444
+ }],
37445
+ "recording.getDaysWithRecordings": [{
37446
+ name: "deviceId",
37447
+ form: "single",
37448
+ optional: false
37449
+ }],
37450
+ "recording.getDeviceConfig": [{
37451
+ name: "deviceId",
37452
+ form: "single",
37453
+ optional: false
37454
+ }],
37455
+ "recording.getPlaybackManifest": [{
37456
+ name: "deviceId",
37457
+ form: "single",
37458
+ optional: false
37459
+ }],
37460
+ "recording.listOpsLog": [{
37461
+ name: "deviceId",
37462
+ form: "single",
37463
+ optional: true
37464
+ }],
37465
+ "recording.locateSegment": [{
37466
+ name: "deviceId",
37467
+ form: "single",
37468
+ optional: false
37469
+ }],
37470
+ "recording.pruneFootage": [{
37471
+ name: "deviceId",
37472
+ form: "single",
37473
+ optional: false
37474
+ }],
37475
+ "recording.readGopBytes": [{
37476
+ name: "deviceId",
37477
+ form: "single",
37478
+ optional: false
37479
+ }],
37480
+ "recording.readSegmentBytes": [{
37481
+ name: "deviceId",
37482
+ form: "single",
37483
+ optional: false
37484
+ }],
37485
+ "recording.relocateFootage": [{
37486
+ name: "deviceId",
37487
+ form: "single",
37488
+ optional: true
37489
+ }],
37490
+ "recording.renderClip": [{
37491
+ name: "deviceId",
37492
+ form: "single",
37493
+ optional: false
37494
+ }],
37495
+ "recording.renderGif": [{
37496
+ name: "deviceId",
37497
+ form: "single",
37498
+ optional: false
37499
+ }],
37500
+ "recording.rescanStorage": [{
37501
+ name: "deviceId",
37502
+ form: "single",
37503
+ optional: false
37504
+ }],
37505
+ "recording.setDeviceConfig": [{
37506
+ name: "deviceId",
37507
+ form: "single",
37508
+ optional: false
37509
+ }],
37510
+ "recording.startStorageMigrationMove": [{
37511
+ name: "deviceId",
37512
+ form: "single",
37513
+ optional: true
37514
+ }],
37515
+ "recordingExport.createExport": [{
37516
+ name: "deviceId",
37517
+ form: "single",
37518
+ optional: false
37519
+ }],
37520
+ "recordingExport.listExports": [{
37521
+ name: "deviceId",
37522
+ form: "single",
37523
+ optional: true
37524
+ }],
37525
+ "sceneMonitor.captureReference": [{
37526
+ name: "deviceId",
37527
+ form: "single",
37528
+ optional: false
37529
+ }],
37530
+ "sceneMonitor.createScene": [{
37531
+ name: "deviceId",
37532
+ form: "single",
37533
+ optional: false
37534
+ }],
37535
+ "sceneMonitor.deleteReference": [{
37536
+ name: "deviceId",
37537
+ form: "single",
37538
+ optional: false
37539
+ }],
37540
+ "sceneMonitor.deleteScene": [{
37541
+ name: "deviceId",
37542
+ form: "single",
37543
+ optional: false
37544
+ }],
37545
+ "sceneMonitor.listScenes": [{
37546
+ name: "deviceId",
37547
+ form: "single",
37548
+ optional: false
37549
+ }],
37550
+ "sceneMonitor.recheckNow": [{
37551
+ name: "deviceId",
37552
+ form: "single",
37553
+ optional: false
37554
+ }],
37555
+ "sceneMonitor.resetScene": [{
37556
+ name: "deviceId",
37557
+ form: "single",
37558
+ optional: false
37559
+ }],
37560
+ "sceneMonitor.updateScene": [{
37561
+ name: "deviceId",
37562
+ form: "single",
37563
+ optional: false
37564
+ }],
37565
+ "scriptRunner.run": [{
37566
+ name: "deviceId",
37567
+ form: "single",
37568
+ optional: false
37569
+ }],
37570
+ "scriptRunner.stop": [{
37571
+ name: "deviceId",
37572
+ form: "single",
37573
+ optional: false
37574
+ }],
37575
+ "snapshot.getSnapshot": [{
37576
+ name: "deviceId",
37577
+ form: "single",
37578
+ optional: false
37579
+ }],
37580
+ "snapshot.getSnapshotLinks": [{
37581
+ name: "targets",
37582
+ form: "object-array",
37583
+ optional: false,
37584
+ itemField: "deviceId"
37585
+ }],
37586
+ "snapshot.getSnapshotOverview": [{
37587
+ name: "deviceIds",
37588
+ form: "array",
37589
+ optional: false
37590
+ }],
37591
+ "snapshot.invalidateCache": [{
37592
+ name: "deviceId",
37593
+ form: "single",
37594
+ optional: false
37595
+ }],
37596
+ "streamBroker.acquireEgressTranscode": [{
37597
+ name: "deviceId",
37598
+ form: "single",
37599
+ optional: false
37600
+ }],
37601
+ "streamBroker.assignProfile": [{
37602
+ name: "deviceId",
37603
+ form: "single",
37604
+ optional: false
37605
+ }],
37606
+ "streamBroker.getDeviceAudioMute": [{
37607
+ name: "deviceId",
37608
+ form: "single",
37609
+ optional: false
37610
+ }],
37611
+ "streamBroker.getStreamWithCodec": [{
37612
+ name: "deviceId",
37613
+ form: "single",
37614
+ optional: false
37615
+ }],
37616
+ "streamBroker.produceEventMedia": [{
37617
+ name: "deviceId",
37618
+ form: "single",
37619
+ optional: false
37620
+ }],
37621
+ "streamBroker.publishCameraStream": [{
37622
+ name: "deviceId",
37623
+ form: "single",
37624
+ optional: false
37625
+ }],
37626
+ "streamBroker.renderPreBufferClip": [{
37627
+ name: "deviceId",
37628
+ form: "single",
37629
+ optional: false
37630
+ }],
37631
+ "streamBroker.restartProfile": [{
37632
+ name: "deviceId",
37633
+ form: "single",
37634
+ optional: false
37635
+ }],
37636
+ "streamBroker.retractCameraStream": [{
37637
+ name: "deviceId",
37638
+ form: "single",
37639
+ optional: false
37640
+ }],
37641
+ "streamBroker.setDeviceAudioMute": [{
37642
+ name: "deviceId",
37643
+ form: "single",
37644
+ optional: false
37645
+ }],
37646
+ "streamBroker.unassignProfile": [{
37647
+ name: "deviceId",
37648
+ form: "single",
37649
+ optional: false
37650
+ }],
37651
+ "streamCatalog.getCatalog": [{
37652
+ name: "deviceId",
37653
+ form: "single",
37654
+ optional: false
37655
+ }],
37656
+ "streamParams.getConfigSchema": [{
37657
+ name: "deviceId",
37658
+ form: "single",
37659
+ optional: false
37660
+ }],
37661
+ "streamParams.getOptions": [{
37662
+ name: "deviceId",
37663
+ form: "single",
37664
+ optional: false
37665
+ }],
37666
+ "streamParams.setProfile": [{
37667
+ name: "deviceId",
37668
+ form: "single",
37669
+ optional: false
37670
+ }],
37671
+ "switch.setState": [{
37672
+ name: "deviceId",
37673
+ form: "single",
37674
+ optional: false
37675
+ }],
37676
+ "vacuumControl.locate": [{
37677
+ name: "deviceId",
37678
+ form: "single",
37679
+ optional: false
37680
+ }],
37681
+ "vacuumControl.pause": [{
37682
+ name: "deviceId",
37683
+ form: "single",
37684
+ optional: false
37685
+ }],
37686
+ "vacuumControl.returnToBase": [{
37687
+ name: "deviceId",
37688
+ form: "single",
37689
+ optional: false
37690
+ }],
37691
+ "vacuumControl.setFanSpeed": [{
37692
+ name: "deviceId",
37693
+ form: "single",
37694
+ optional: false
37695
+ }],
37696
+ "vacuumControl.start": [{
37697
+ name: "deviceId",
37698
+ form: "single",
37699
+ optional: false
37700
+ }],
37701
+ "vacuumControl.stop": [{
37702
+ name: "deviceId",
37703
+ form: "single",
37704
+ optional: false
37705
+ }],
37706
+ "valve.close": [{
37707
+ name: "deviceId",
37708
+ form: "single",
37709
+ optional: false
37710
+ }],
37711
+ "valve.open": [{
37712
+ name: "deviceId",
37713
+ form: "single",
37714
+ optional: false
37715
+ }],
37716
+ "valve.setPosition": [{
37717
+ name: "deviceId",
37718
+ form: "single",
37719
+ optional: false
37720
+ }],
37721
+ "valve.stop": [{
37722
+ name: "deviceId",
37723
+ form: "single",
37724
+ optional: false
37725
+ }],
37726
+ "videoclips.getClipPlayback": [{
37727
+ name: "deviceId",
37728
+ form: "single",
37729
+ optional: false
37730
+ }],
37731
+ "videoclips.listClips": [{
37732
+ name: "deviceId",
37733
+ form: "single",
37734
+ optional: false
37735
+ }],
37736
+ "waterHeater.setAway": [{
37737
+ name: "deviceId",
37738
+ form: "single",
37739
+ optional: false
37740
+ }],
37741
+ "waterHeater.setOperationMode": [{
37742
+ name: "deviceId",
37743
+ form: "single",
37744
+ optional: false
37745
+ }],
37746
+ "waterHeater.setTargetTemp": [{
37747
+ name: "deviceId",
37748
+ form: "single",
37749
+ optional: false
37750
+ }],
37751
+ "webrtcSession.addIceCandidate": [{
37752
+ name: "deviceId",
37753
+ form: "single",
37754
+ optional: false
37755
+ }],
37756
+ "webrtcSession.closeSession": [{
37757
+ name: "deviceId",
37758
+ form: "single",
37759
+ optional: false
37760
+ }],
37761
+ "webrtcSession.createSession": [{
37762
+ name: "deviceId",
37763
+ form: "single",
37764
+ optional: false
37765
+ }],
37766
+ "webrtcSession.getIceCandidates": [{
37767
+ name: "deviceId",
37768
+ form: "single",
37769
+ optional: false
37770
+ }],
37771
+ "webrtcSession.getSessionState": [{
37772
+ name: "deviceId",
37773
+ form: "single",
37774
+ optional: false
37775
+ }],
37776
+ "webrtcSession.handleAnswer": [{
37777
+ name: "deviceId",
37778
+ form: "single",
37779
+ optional: false
37780
+ }],
37781
+ "webrtcSession.handleOffer": [{
37782
+ name: "deviceId",
37783
+ form: "single",
37784
+ optional: false
37785
+ }],
37786
+ "webrtcSession.hasAdaptiveBitrate": [{
37787
+ name: "deviceId",
37788
+ form: "single",
37789
+ optional: false
37790
+ }],
37791
+ "webrtcSession.listStreams": [{
37792
+ name: "deviceId",
37793
+ form: "single",
37794
+ optional: false
37795
+ }],
37796
+ "zoneAnalytics.getCameraHistory": [{
37797
+ name: "deviceId",
37798
+ form: "single",
37799
+ optional: false
37800
+ }],
37801
+ "zoneAnalytics.getCurrentSnapshot": [{
37802
+ name: "deviceId",
37803
+ form: "single",
37804
+ optional: false
37805
+ }],
37806
+ "zoneAnalytics.getUnzonedHistory": [{
37807
+ name: "deviceId",
37808
+ form: "single",
37809
+ optional: false
37810
+ }],
37811
+ "zoneAnalytics.getZoneHistory": [{
37812
+ name: "deviceId",
37813
+ form: "single",
37814
+ optional: false
37815
+ }],
37816
+ "zoneRules.listRules": [{
37817
+ name: "deviceId",
37818
+ form: "single",
37819
+ optional: false
37820
+ }],
37821
+ "zoneRules.setRules": [{
37822
+ name: "deviceId",
37823
+ form: "single",
37824
+ optional: false
37825
+ }],
37826
+ "zones.addZone": [{
37827
+ name: "deviceId",
37828
+ form: "single",
37829
+ optional: false
37830
+ }],
37831
+ "zones.listZones": [{
37832
+ name: "deviceId",
37833
+ form: "single",
37834
+ optional: false
37835
+ }],
37836
+ "zones.removeZone": [{
37837
+ name: "deviceId",
37838
+ form: "single",
37839
+ optional: false
37840
+ }],
37841
+ "zones.updateZone": [{
37842
+ name: "deviceId",
37843
+ form: "single",
37844
+ optional: false
37845
+ }]
37846
+ });
35128
37847
  Object.freeze({
35129
37848
  "broker": "broker",
35130
37849
  "device-export": "device-export",