@camstack/addon-provider-rademacher 0.2.16 → 0.2.18

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