@camstack/addon-provider-rtsp 1.2.17 → 1.2.19

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 +2893 -143
  2. package/dist/addon.mjs +2893 -143
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import net from "node:net";
2
- //#region ../types/dist/event-category-Cv9dO26A.mjs
2
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -206,6 +206,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
206
206
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
207
207
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
208
208
  /**
209
+ * A node the orchestrator would otherwise place cameras on has NO usable
210
+ * inference device: the operator enabled one or more accelerators there and
211
+ * the live probe reports every one of them unavailable. Emitted once per
212
+ * TRANSITION into that state (never per dispatch), and the node is dropped
213
+ * from the placement candidate set for as long as it holds.
214
+ *
215
+ * This exists because the state was previously invisible: little-unraid
216
+ * absorbed 283k inference errors in a day while still being handed cameras,
217
+ * and nothing in the system said so.
218
+ *
219
+ * A node with no accelerators configured at all is NOT this — its devices
220
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
221
+ * serves it exactly as before.
222
+ */
223
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
224
+ /**
225
+ * A camera has an OPEN detection session and has produced no detection at
226
+ * all for longer than the blind threshold — the camera is being decoded and
227
+ * inferred and is returning nothing. Emitted once per transition into blind,
228
+ * per camera.
229
+ *
230
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
231
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
232
+ * camera" produce byte-identical silence.
233
+ */
234
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
235
+ /**
209
236
  * Per-camera pipeline config was mutated by the orchestrator
210
237
  * (3-level settings change via `setAgentAddonDefaults` /
211
238
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -10922,6 +10949,8 @@ var QueryFilterSchema = object({
10922
10949
  where: record(string(), unknown()).optional(),
10923
10950
  whereIn: record(string(), array(unknown())).optional(),
10924
10951
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10952
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10953
+ whereNot: record(string(), unknown()).optional(),
10925
10954
  orderBy: object({
10926
10955
  field: string(),
10927
10956
  direction: _enum(["asc", "desc"])
@@ -10941,7 +10970,8 @@ var QueryFilterSchema = object({
10941
10970
  var MutationFilterSchema = object({
10942
10971
  where: record(string(), unknown()).optional(),
10943
10972
  whereIn: record(string(), array(unknown())).optional(),
10944
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10973
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10974
+ whereNot: record(string(), unknown()).optional()
10945
10975
  });
10946
10976
  /** A single stored record: `{ id, data }`. */
10947
10977
  var SettingsRecordSchema = object({
@@ -12460,6 +12490,17 @@ var LlmImageSchema = object({
12460
12490
  bytes: _instanceof(Uint8Array),
12461
12491
  mimeType: string()
12462
12492
  });
12493
+ /**
12494
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12495
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12496
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12497
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12498
+ */
12499
+ var LlmRetryPolicySchema = object({
12500
+ enabled: boolean().default(false),
12501
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12502
+ maxAttempts: number().int().min(1).max(5).default(1)
12503
+ });
12463
12504
  var LlmGenerateBaseInputSchema = object({
12464
12505
  /** Collection routing (the notification-output posture). */
12465
12506
  addonId: string().optional(),
@@ -12474,7 +12515,28 @@ var LlmGenerateBaseInputSchema = object({
12474
12515
  jsonSchema: record(string(), unknown()).optional(),
12475
12516
  /** Per-call override of the profile default. */
12476
12517
  maxTokens: number().int().positive().optional(),
12477
- temperature: number().optional()
12518
+ temperature: number().optional(),
12519
+ /** Per-call override of the profile default (nucleus sampling). */
12520
+ topP: number().min(0).max(1).optional(),
12521
+ /** Per-call override of the profile default (top-k sampling). */
12522
+ topK: number().int().positive().optional(),
12523
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12524
+ timeoutMs: number().int().positive().optional(),
12525
+ /** Per-call override; beats both the consumer table and the profile. */
12526
+ retry: LlmRetryPolicySchema.optional(),
12527
+ /**
12528
+ * Caller-minted id that makes this generation CANCELLABLE.
12529
+ *
12530
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12531
+ * the call against 8 s and free their own slot when the timer wins, while the
12532
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12533
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12534
+ * not generations, and the real load is unbounded.
12535
+ *
12536
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12537
+ * `llm.cancel({ requestId })` tears the socket down.
12538
+ */
12539
+ requestId: string().optional()
12478
12540
  });
12479
12541
  /**
12480
12542
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12487,6 +12549,18 @@ var LlmGenerateBaseInputSchema = object({
12487
12549
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12488
12550
  * watchdog — operator decision #3).
12489
12551
  */
12552
+ /**
12553
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12554
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12555
+ * REF rather than looked up at install time, so what the operator approved in
12556
+ * the preview is exactly what the node downloads.
12557
+ */
12558
+ var ManagedModelExtraFileSchema = object({
12559
+ url: string(),
12560
+ filename: string(),
12561
+ sizeBytes: number(),
12562
+ sha256: string().optional()
12563
+ });
12490
12564
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12491
12565
  object({
12492
12566
  kind: literal("catalog"),
@@ -12495,7 +12569,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12495
12569
  object({
12496
12570
  kind: literal("url"),
12497
12571
  url: string(),
12498
- sha256: string().optional()
12572
+ sha256: string().optional(),
12573
+ /** Picker/status label; the file basename when absent. */
12574
+ label: string().optional(),
12575
+ sizeBytes: number().optional(),
12576
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12499
12577
  }),
12500
12578
  object({
12501
12579
  kind: literal("path"),
@@ -12513,13 +12591,82 @@ var ManagedRuntimeConfigSchema = object({
12513
12591
  gpuLayers: number().int().default(0),
12514
12592
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12515
12593
  threads: number().int().optional(),
12516
- /** Concurrent slots. */
12594
+ /** Concurrent slots (`--parallel`). */
12517
12595
  parallel: number().int().default(1),
12596
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12597
+ batchSize: number().int().positive().optional(),
12598
+ /** Physical batch / micro-batch (`-ub`). */
12599
+ ubatchSize: number().int().positive().optional(),
12600
+ /**
12601
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12602
+ * is a no-op elsewhere, so it is offered rather than assumed.
12603
+ */
12604
+ flashAttention: boolean().default(false),
12605
+ /**
12606
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12607
+ * inference. Costs the full model size in resident memory — which is exactly
12608
+ * what the RAM budget is counting.
12609
+ */
12610
+ mlock: boolean().default(false),
12611
+ /**
12612
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12613
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12614
+ * store produces on every first token.
12615
+ */
12616
+ noMmap: boolean().default(false),
12617
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12618
+ * cheapest way to fit a longer context in the same RAM. */
12619
+ cacheTypeK: _enum([
12620
+ "f32",
12621
+ "f16",
12622
+ "q8_0",
12623
+ "q5_1",
12624
+ "q5_0",
12625
+ "q4_1",
12626
+ "q4_0"
12627
+ ]).optional(),
12628
+ cacheTypeV: _enum([
12629
+ "f32",
12630
+ "f16",
12631
+ "q8_0",
12632
+ "q5_1",
12633
+ "q5_0",
12634
+ "q4_1",
12635
+ "q4_0"
12636
+ ]).optional(),
12637
+ /**
12638
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12639
+ * (which most vision chat templates need and some language-only models
12640
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12641
+ *
12642
+ * It is NOT a second place to set the flags above. A token that collides
12643
+ * with a typed field is REJECTED at start, naming the field that owns it
12644
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12645
+ * the "two switches that disagree" failure this repo has already shipped
12646
+ * twice (D62).
12647
+ */
12648
+ extraArgs: array(string()).default([]),
12518
12649
  /** Else lazy: first generate boots it. */
12519
12650
  autoStart: boolean().default(false),
12520
12651
  /** 0 = never; frees RAM after quiet periods. */
12521
12652
  idleStopMinutes: number().int().default(30)
12522
12653
  });
12654
+ /**
12655
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12656
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12657
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12658
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12659
+ */
12660
+ var LlmDownloadProgressSchema = object({
12661
+ phase: _enum(["downloading", "verifying"]),
12662
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12663
+ file: string(),
12664
+ fileIndex: number().int(),
12665
+ fileCount: number().int(),
12666
+ /** Across the WHOLE install, not the current file. */
12667
+ downloadedBytes: number(),
12668
+ totalBytes: number().optional()
12669
+ });
12523
12670
  var LlmRuntimeStatusSchema = object({
12524
12671
  /** Status is ALWAYS node-qualified. */
12525
12672
  nodeId: string(),
@@ -12536,6 +12683,8 @@ var LlmRuntimeStatusSchema = object({
12536
12683
  modelPath: string().optional(),
12537
12684
  modelId: string().optional(),
12538
12685
  downloadProgress: number().min(0).max(1).optional(),
12686
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12687
+ download: LlmDownloadProgressSchema.optional(),
12539
12688
  lastError: string().optional(),
12540
12689
  crashesInWindow: number(),
12541
12690
  /** Child RSS (sampled best-effort). */
@@ -12546,7 +12695,14 @@ var LlmNodeModelSchema = object({
12546
12695
  file: string(),
12547
12696
  sizeBytes: number(),
12548
12697
  catalogId: string().optional(),
12549
- installedAt: number().optional()
12698
+ installedAt: number().optional(),
12699
+ /**
12700
+ * Absolute path on the node. Present so a file that is on disk but matches
12701
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12702
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12703
+ * it the picker could list such a file and do nothing with it.
12704
+ */
12705
+ path: string().optional()
12550
12706
  });
12551
12707
  var LlmRuntimeDiskUsageSchema = object({
12552
12708
  nodeId: string(),
@@ -12602,10 +12758,47 @@ var LlmProfileSchema = object({
12602
12758
  baseUrl: string().optional(),
12603
12759
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12604
12760
  apiKey: string().optional(),
12761
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12762
+ * degraded to text — that shipped once and produced a confident answer to a
12763
+ * question about a picture nobody sent. */
12605
12764
  supportsVision: boolean(),
12606
12765
  temperature: number().min(0).max(2).optional(),
12766
+ /** Nucleus sampling. Every wire we speak has it. */
12767
+ topP: number().min(0).max(1).optional(),
12768
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12769
+ * wire does, and the client drops it there (measured: the request body gets
12770
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12771
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12772
+ topK: number().int().positive().optional(),
12607
12773
  maxTokens: number().int().positive().optional(),
12774
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12775
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12776
+ * the model with, so it is the one field that changes a PROCESS. */
12777
+ contextLength: number().int().positive().optional(),
12778
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12779
+ * two system prompts fighting is worse than either alone). */
12780
+ systemPrompt: string().optional(),
12781
+ /** Total generation bound — the only one a unary call has. */
12608
12782
  timeoutMs: number().int().positive().default(6e4),
12783
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12784
+ * response headers: on the LM Studio / llama-server wire those are written
12785
+ * once the model has finished loading, so they belong to the bound below. */
12786
+ connectTimeoutMs: number().int().positive().default(1e4),
12787
+ /** Accepted, but no output yet — response headers included, because a cold
12788
+ * GPU load is exactly what happens before them. */
12789
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12790
+ /** Output started then stopped. */
12791
+ idleTimeoutMs: number().int().positive().default(6e4),
12792
+ /** Profile-level default. The per-consumer table and a per-call override
12793
+ * both beat it — see `resolveRetryPolicy`. */
12794
+ retry: LlmRetryPolicySchema.default({
12795
+ enabled: false,
12796
+ maxAttempts: 1
12797
+ }),
12798
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12799
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12800
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12801
+ toolsEnabled: boolean().default(false),
12609
12802
  extraHeaders: record(string(), string()).optional(),
12610
12803
  /** kind === 'managed-local' only (spec §4). */
12611
12804
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12655,6 +12848,36 @@ var ManagedModelCatalogEntrySchema = object({
12655
12848
  /** Vision models: companion projector file. */
12656
12849
  mmprojUrl: string().optional()
12657
12850
  });
12851
+ /**
12852
+ * The outcome of turning one operator-typed Hugging Face reference into a
12853
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12854
+ * I will not pick for you" is a normal answer the UI has to render, not an
12855
+ * exception.
12856
+ *
12857
+ * `candidates` is the whole reason the refusal is usable — every string in it
12858
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12859
+ */
12860
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12861
+ ok: literal(true),
12862
+ /** Ready to hand to `installModel` unchanged. */
12863
+ model: ManagedModelRefSchema,
12864
+ label: string(),
12865
+ repo: string(),
12866
+ quantization: string(),
12867
+ purpose: _enum(["text", "vision"]),
12868
+ totalBytes: number(),
12869
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12870
+ * see that 0.9 GB of it is a projector they did not name. */
12871
+ extraFilenames: array(string())
12872
+ }), object({
12873
+ ok: literal(false),
12874
+ code: string(),
12875
+ message: string(),
12876
+ candidates: array(string()).optional(),
12877
+ /** Set when the refusal was only the ceiling: re-calling with
12878
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12879
+ requiredBytes: number().optional()
12880
+ })]);
12658
12881
  var LlmRuntimeNodeSchema = object({
12659
12882
  nodeId: string(),
12660
12883
  reachable: boolean(),
@@ -12667,7 +12890,10 @@ var ProfileRefInputSchema = object({
12667
12890
  addonId: string(),
12668
12891
  profileId: string()
12669
12892
  });
12670
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12893
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12894
+ addonId: string().optional(),
12895
+ requestId: string()
12896
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12671
12897
  kind: "mutation",
12672
12898
  auth: "admin"
12673
12899
  }), method(ProfileRefInputSchema, _void(), {
@@ -12688,6 +12914,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12688
12914
  consumer: string().optional(),
12689
12915
  profileId: string().optional()
12690
12916
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12917
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12918
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12919
+ ref: string(),
12920
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12921
+ maxBytes: number().positive().optional()
12922
+ }), HfModelResolutionSchema, {
12923
+ kind: "mutation",
12924
+ auth: "admin"
12925
+ }), method(object({
12691
12926
  nodeId: string(),
12692
12927
  model: ManagedModelRefSchema
12693
12928
  }), _void(), {
@@ -14335,6 +14570,8 @@ var NcSystemEventKindSchema = _enum([
14335
14570
  "stream-offline",
14336
14571
  "node-online",
14337
14572
  "node-offline",
14573
+ "node-inference-unavailable",
14574
+ "detection-blind",
14338
14575
  "addon-update-available",
14339
14576
  "server-update-available",
14340
14577
  "alarm-triggered",
@@ -14396,7 +14633,16 @@ var NcScheduleSchema = object({
14396
14633
  });
14397
14634
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14398
14635
  var NcPlateMatcherSchema = object({
14399
- values: array(string().min(1)).min(1),
14636
+ /**
14637
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14638
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14639
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14640
+ * rather than merely seen. A subject carrying no plate still fails.
14641
+ *
14642
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14643
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14644
+ */
14645
+ values: array(string().min(1)),
14400
14646
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14401
14647
  maxDistance: number().int().min(0).max(3).default(1)
14402
14648
  });
@@ -14430,28 +14676,36 @@ var NcOccupancyConditionSchema = object({
14430
14676
  /**
14431
14677
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14432
14678
  *
14433
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14434
- * reference notifier uses, so an operator moving between them re-uses what
14435
- * they already know): a rule matches when, over a sampling window of
14436
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14437
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14438
- *
14439
- * - `dbThreshold` its level is at or above this many dBFS (see
14440
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14441
- * - `labels` the classifier put at least one of these labels on it.
14442
- *
14443
- * Both are OPTIONAL and independent, which is the point of the shape: a
14444
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14445
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14446
- * is given** a window in which every sample is trivially a hit would fire on
14447
- * silence, so the engine refuses such a condition rather than notifying on
14448
- * nothing (the schema cannot express "at least one of" without becoming a
14449
- * ZodEffects the cap path would have to special-case).
14450
- *
14451
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14452
- * must be FULL before it can match a window that has been open for two
14453
- * seconds of its ten is 100% of nothing, and firing on it would make
14454
- * `samplingSeconds` decorative.
14679
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14680
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14681
+ * there is no second switch that can disagree with the first and every rule
14682
+ * authored before the decision migrates for free (`audioModeOf`):
14683
+ *
14684
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14685
+ * classifier labels with one of them. No window, no percentage:
14686
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14687
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14688
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14689
+ * reaches this condition if the classifier was already confident enough.
14690
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14691
+ * the condition: at least `hitPercent`% of the samples over
14692
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14693
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14694
+ * must be FULL before it can match a window open for two of its ten
14695
+ * seconds is 100% of nothing.
14696
+ *
14697
+ * **Why label mode has no window.** It had one, and it never fired: the
14698
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14699
+ * of them per episode, even through continuous crying. The measured maximum
14700
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14701
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14702
+ * the wrong question to ask of a sparse classifier.
14703
+ *
14704
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14705
+ * and the rule would fire on silence. The schema cannot express "exactly one
14706
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14707
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14708
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14455
14709
  *
14456
14710
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14457
14711
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14459,13 +14713,13 @@ var NcOccupancyConditionSchema = object({
14459
14713
  * an operator who typed `dog` mean the same thing.
14460
14714
  */
14461
14715
  var NcAudioConditionSchema = object({
14462
- /** Audio macro labels; absent = any sound (level-only rule). */
14716
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14463
14717
  labels: array(string().min(1)).min(1).optional(),
14464
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14718
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14465
14719
  dbThreshold: number().min(-96).max(0).optional(),
14466
- /** Percentage of the window's samples that must be hits (1–100). */
14720
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14467
14721
  hitPercent: number().int().min(1).max(100).default(60),
14468
- /** Length of the sampling window in seconds. */
14722
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14469
14723
  samplingSeconds: number().int().min(1).max(300).default(10)
14470
14724
  });
14471
14725
  /**
@@ -14603,13 +14857,81 @@ var NcRuleActionsSchema = object({
14603
14857
  */
14604
14858
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14605
14859
  });
14860
+ /**
14861
+ * "This rule applies only while `deviceId` is in one of `states`."
14862
+ *
14863
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14864
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14865
+ * make the condition lie about devices whose states have no equivalent.
14866
+ *
14867
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14868
+ * condition that fired on "I could not read it" would be worse than no gate.
14869
+ */
14870
+ var NcDeviceStateConditionSchema = object({
14871
+ deviceId: number().int(),
14872
+ /** Any of these matches. */
14873
+ states: array(string().min(1)).min(1)
14874
+ });
14875
+ /**
14876
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14877
+ *
14878
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14879
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14880
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14881
+ * already has a trigger ("tell me about a person at the front door, but only
14882
+ * while the bin is still out"). That is why it composes with every delivery
14883
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14884
+ * kind exist for it — see D159.
14885
+ *
14886
+ * ── Identity ───────────────────────────────────────────────────────────────
14887
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14888
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14889
+ * carried as a HINT for the editor and for the log line, never as part of the
14890
+ * lookup key: a rule whose hint drifted must still gate correctly.
14891
+ *
14892
+ * ── Which boolean ──────────────────────────────────────────────────────────
14893
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14894
+ * already declares which boolean drives notification rules, and a second knob
14895
+ * that could disagree with it is exactly the D62 failure. Set it only to
14896
+ * override one rule against the scene's own default.
14897
+ *
14898
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14899
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14900
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14901
+ * evidence, in either direction.
14902
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14903
+ * The latch is a durable fact about the past ("it has diverged since I armed
14904
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14905
+ * reason the operator asked for a latch.
14906
+ *
14907
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14908
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14909
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14910
+ * said out loud in the log rather than dropped in silence.
14911
+ */
14912
+ var NcSceneConditionSchema = object({
14913
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14914
+ sceneId: string().min(1),
14915
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14916
+ deviceId: number().int().optional(),
14917
+ /** The state the scene must be in for the rule to fire. */
14918
+ requiredState: _enum(["matched", "diverged"]),
14919
+ /**
14920
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14921
+ * scene's own `emit` field, which is the only place that decision belongs.
14922
+ */
14923
+ latched: boolean().optional()
14924
+ });
14606
14925
  var NcConditionsSchema = object({
14607
14926
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14608
- deviceState: object({
14609
- deviceId: number().int(),
14610
- /** Any of these matches. */
14611
- states: array(string().min(1)).min(1)
14612
- }).optional(),
14927
+ deviceState: NcDeviceStateConditionSchema.optional(),
14928
+ /**
14929
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14930
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14931
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14932
+ * {@link NcSceneCondition} and D159.
14933
+ */
14934
+ scene: NcSceneConditionSchema.optional(),
14613
14935
  /** Device scope — absent = all devices. */
14614
14936
  devices: array(number()).optional(),
14615
14937
  /** Detector class names (any overlap with the record's class set). */
@@ -14635,18 +14957,47 @@ var NcConditionsSchema = object({
14635
14957
  */
14636
14958
  labelEquals: array(string().min(1)).optional(),
14637
14959
  /**
14638
- * Identity matcher. P1 boundary: matched against the record's collapsed
14639
- * `label` (the identity display name propagated by the face pipeline) —
14640
- * identity-ID matching rides in P2 when identity ids reach the record.
14960
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14961
+ * is about recognised people at all.
14962
+ *
14963
+ * Three states, and the empty one is the point:
14964
+ *
14965
+ * | value | meaning |
14966
+ * | --- | --- |
14967
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14968
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14969
+ * | a list | only these identities |
14970
+ *
14971
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14972
+ * `devices` list is every device), applied one level down: the operator has
14973
+ * turned the face scope ON and narrowed it to nothing, which is every known
14974
+ * face. No second field states the same thing — a switch that can disagree
14975
+ * with the list under it is worse than no switch (D62).
14976
+ *
14977
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14978
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14979
+ * the operator fixed the spelling. The id reaches the record on
14980
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14981
+ * `{{label}}` renders.
14982
+ *
14983
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14984
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14985
+ * for is left as it stands and reported, never dropped. The engine also
14986
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14987
+ * migration could not resolve keeps matching exactly what it matched before.
14641
14988
  */
14642
14989
  identities: array(string().min(1)).optional(),
14643
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14990
+ /**
14991
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14992
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14993
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14994
+ */
14644
14995
  plates: NcPlateMatcherSchema.optional(),
14645
14996
  /**
14646
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14647
- * Same P1 boundary: matched against the record's collapsed `label` (the
14648
- * identity display name). A record with NO label passes (nothing to
14649
- * exclude), unlike the include variant which fails on an absent label.
14997
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14998
+ * the same id members and the same lazy name→id migration. A record with NO
14999
+ * identity passes (nothing to exclude), unlike the include variant which
15000
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14650
15001
  */
14651
15002
  identitiesExclude: array(string().min(1)).optional(),
14652
15003
  /**
@@ -15038,7 +15389,80 @@ var NcRuleInputSchema = object({
15038
15389
  * a rule that predates the gate must keep delivering byte-for-byte as it
15039
15390
  * did, and absent is the only way to say that without a migration.
15040
15391
  */
15041
- confirm: NcConfirmSchema.optional()
15392
+ confirm: NcConfirmSchema.optional(),
15393
+ /**
15394
+ * WAIT for face/plate recognition before saying anything.
15395
+ *
15396
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15397
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15398
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15399
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15400
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15401
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15402
+ *
15403
+ * Only two honest answers exist, and this flag picks between them. It has
15404
+ * effect ONLY on a rule that declares a recognition scope
15405
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15406
+ * other rule there is nothing to wait for and the flag is inert.
15407
+ *
15408
+ * | value | what happens |
15409
+ * | --- | --- |
15410
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15411
+ * | 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) |
15412
+ *
15413
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15414
+ * on the addon cap path, and absent has to keep meaning exactly what every
15415
+ * rule authored before this field meant.
15416
+ *
15417
+ * The cost of `true` is stated here because the editor states it too: a rule
15418
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15419
+ * tests every zone the track visited and a `crossing` condition can no longer
15420
+ * be satisfied, because a closed track carries no crossing.
15421
+ */
15422
+ waitForEnhancement: boolean().optional(),
15423
+ /**
15424
+ * GROUP a burst of subjects into ONE notification that grows.
15425
+ *
15426
+ * Seconds of quiet after the last matching subject before the burst is
15427
+ * considered over. While it is open, the first subject enqueues immediately —
15428
+ * **exactly as today, with no added latency** — and every real growth (a new
15429
+ * subject, or a name confirmed on one already in it) REPLACES that
15430
+ * notification with an updated one naming everybody. The push carries the
15431
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15432
+ *
15433
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15434
+ *
15435
+ * ### Why an idle cutoff and not a window
15436
+ *
15437
+ * The measured seven-person arrival on device 590 spans 110 s with every
15438
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15439
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15440
+ * 30 is Frigate's shipped value for the same decision.
15441
+ *
15442
+ * ### What it replaces
15443
+ *
15444
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15445
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15446
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15447
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15448
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15449
+ * budget over GROUPS — which is what it always meant — and a growth is never
15450
+ * throttled by the window its own first member spent.
15451
+ *
15452
+ * ### Interaction with {@link waitForEnhancement}
15453
+ *
15454
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15455
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15456
+ * CLOSE — already carrying its name — and grows as later members close. That
15457
+ * is later, and complete. With grouping alone the group opens on the first
15458
+ * object event and picks up names as they are confirmed, through the growth
15459
+ * path. Neither combination fires twice for one subject.
15460
+ *
15461
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15462
+ * on the addon cap path, so absent must keep meaning what it meant before this
15463
+ * field existed.
15464
+ */
15465
+ groupIdleSec: number().int().min(0).max(600).optional()
15042
15466
  });
15043
15467
  /**
15044
15468
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15145,6 +15569,7 @@ var NcConditionDescriptorSchema = object({
15145
15569
  "occupancy",
15146
15570
  "audio",
15147
15571
  "deviceState",
15572
+ "scene",
15148
15573
  "systemEvent"
15149
15574
  ]),
15150
15575
  operator: _enum([
@@ -15550,7 +15975,87 @@ var MethodAccessSchema = _enum([
15550
15975
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15551
15976
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15552
15977
  var CapScopeSchema = _enum(["device", "system"]);
15553
- var TokenScopeSchema = discriminatedUnion("type", [
15978
+ /**
15979
+ * DeviceSelector (scope model v3 — 2026-08-12).
15980
+ *
15981
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15982
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15983
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15984
+ * AFTER the grant was minted — no re-grant, no re-login.
15985
+ *
15986
+ * - `all` — every device in the deployment. The broad viewer/operator
15987
+ * lever without a `category` grant (a `category` grant also covers device
15988
+ * caps that carry no deviceId; `all` is specifically the device set).
15989
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15990
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15991
+ * is NOT covered until the grant is edited.
15992
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15993
+ * DYNAMIC. A device that changes type, or a new device of the type,
15994
+ * re-resolves on the next request.
15995
+ * - `locations` — every device whose operator-assigned `location` label is
15996
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15997
+ * null/unset location matches NO `locations` selector.
15998
+ */
15999
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
16000
+ object({ kind: literal("all") }),
16001
+ object({
16002
+ kind: literal("ids"),
16003
+ ids: array(number().int()).min(1)
16004
+ }),
16005
+ object({
16006
+ kind: literal("types"),
16007
+ types: array(_enum(DeviceType)).min(1)
16008
+ }),
16009
+ object({
16010
+ kind: literal("locations"),
16011
+ locations: array(string().min(1)).min(1)
16012
+ })
16013
+ ]);
16014
+ var DeviceTokenScopeSchema = object({
16015
+ type: literal("device"),
16016
+ /** The device SET this grant covers — resolved against the live fleet. */
16017
+ selector: DeviceSelectorSchema,
16018
+ access: array(MethodAccessSchema).min(1),
16019
+ /**
16020
+ * Whether a grant on a PARENT device transparently covers its accessory
16021
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16022
+ * Direction is parent → children ONLY.
16023
+ *
16024
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16025
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16026
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16027
+ * operator must grant on the child, not inherit from the parent). Set it
16028
+ * explicitly to override that default per grant.
16029
+ */
16030
+ includeLinked: boolean().optional()
16031
+ });
16032
+ /**
16033
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16034
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16035
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16036
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16037
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16038
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16039
+ * migration cannot reach a JWT already in a client's hands; parse-time
16040
+ * migration covers both without a flag day. No cast — the raw object is read
16041
+ * through `Reflect.get` (its static type is `unknown`).
16042
+ */
16043
+ function migrateLegacyTokenScope(raw) {
16044
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16045
+ if (Reflect.get(raw, "type") !== "device") return raw;
16046
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16047
+ const targets = Reflect.get(raw, "targets");
16048
+ if (!Array.isArray(targets)) return raw;
16049
+ return {
16050
+ type: "device",
16051
+ selector: {
16052
+ kind: "ids",
16053
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16054
+ },
16055
+ access: Reflect.get(raw, "access")
16056
+ };
16057
+ }
16058
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15554
16059
  object({
15555
16060
  type: literal("category"),
15556
16061
  target: CapScopeSchema,
@@ -15566,18 +16071,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15566
16071
  target: string(),
15567
16072
  access: array(MethodAccessSchema).min(1)
15568
16073
  }),
15569
- object({
15570
- type: literal("device"),
15571
- /**
15572
- * One or more deviceIds (serialised as strings for wire-format
15573
- * consistency with the rest of the union). Matcher accepts if
15574
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15575
- * of one scope-per-device when granting access to a set of cameras.
15576
- */
15577
- targets: array(string()).min(1),
15578
- access: array(MethodAccessSchema).min(1)
15579
- })
15580
- ]);
16074
+ DeviceTokenScopeSchema
16075
+ ]));
15581
16076
  object({
15582
16077
  id: string(),
15583
16078
  username: string(),
@@ -15894,7 +16389,7 @@ var TrackEnvelopeSchema = object({
15894
16389
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15895
16390
  * keeps every scalar the list surfaces actually render (ids, class(es),
15896
16391
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15897
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16392
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15898
16393
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15899
16394
  * `getTrack`. Mirrors the event-store `projection` convention
15900
16395
  * (`getObjectEvents` et al.).
@@ -16030,7 +16525,21 @@ union([literal(1), literal(2)]);
16030
16525
  var LabelAttributionSchema = object({
16031
16526
  stepId: string(),
16032
16527
  modelId: string().optional(),
16033
- decidedAt: number()
16528
+ decidedAt: number(),
16529
+ /**
16530
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16531
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16532
+ *
16533
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16534
+ * notification rule authored on "Gianluca" stopped matching the moment the
16535
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16536
+ * the thing that does not move, so it is what a rule matches on
16537
+ * (`NcConditions.identities`) and the text is what a human is shown.
16538
+ *
16539
+ * Absent when the label names no gallery row — a plate the OCR read but no
16540
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16541
+ */
16542
+ identityId: string().optional()
16034
16543
  });
16035
16544
  /**
16036
16545
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16167,6 +16676,28 @@ var TrackSchema = object({
16167
16676
  * `=== true` and render nothing otherwise, never infer "no face".
16168
16677
  */
16169
16678
  hasFace: boolean().optional(),
16679
+ /**
16680
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16681
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16682
+ * so the passage is tracked once and as a VEHICLE.
16683
+ *
16684
+ * It exists because the fold's record was dishonest. D34 and the code both
16685
+ * said "the person is not lost — it is reported so both entities stay on the
16686
+ * record"; in fact the pair went into a per-processor RAM field behind an
16687
+ * accessor nobody called, and every durable surface said `vehicle`, full
16688
+ * stop. This is the composition note that makes the row true.
16689
+ *
16690
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16691
+ * person" is not an answer to "what is this" — both label tiers would refuse
16692
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16693
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16694
+ * and a `person` rule still does not fire for someone cycling past.
16695
+ *
16696
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16697
+ * the column, and every hub that predates the field, omits it. Test
16698
+ * `=== true` and render nothing otherwise — never infer "no rider".
16699
+ */
16700
+ hasRider: boolean().optional(),
16170
16701
  ...TrackFlagFields,
16171
16702
  ...TrackRetrainFields
16172
16703
  });
@@ -16516,7 +17047,10 @@ var RecentTracksQueryInput = object({
16516
17047
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16517
17048
  cursor: string().optional(),
16518
17049
  /** See {@link TrackProjectionSchema}. Default `full`. */
16519
- projection: TrackProjectionSchema.optional()
17050
+ projection: TrackProjectionSchema.optional(),
17051
+ /** Include stationary-promoted rows (parked objects). Default false: the
17052
+ * feed lists passages; parking records live on the stationary registry. */
17053
+ includeStationary: boolean().optional()
16520
17054
  });
16521
17055
  var RecentTracksPageSchema = object({
16522
17056
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16734,7 +17268,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16734
17268
  zone: TrackZoneFilterSchema.optional(),
16735
17269
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16736
17270
  * compatible — omitting the field keeps today's exact behaviour). */
16737
- projection: TrackProjectionSchema.optional()
17271
+ projection: TrackProjectionSchema.optional(),
17272
+ /** Include stationary-promoted rows (parked objects handed to the
17273
+ * stationary registry). Default false: the timeline lists passages,
17274
+ * not parking records (operator decision, 2026-08-15). */
17275
+ includeStationary: boolean().optional()
16738
17276
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16739
17277
  kind: "mutation",
16740
17278
  auth: "admin"
@@ -16898,11 +17436,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16898
17436
  auth: "admin"
16899
17437
  }), method(object({
16900
17438
  eventId: string(),
16901
- kind: MediaFileKindEnum.optional()
17439
+ kind: MediaFileKindEnum.optional(),
17440
+ deviceId: number()
17441
+ }), array(MediaFileSchema).readonly()), method(object({
17442
+ trackId: string(),
17443
+ kinds: array(MediaFileKindEnum).optional(),
17444
+ deviceId: number()
16902
17445
  }), array(MediaFileSchema).readonly()), method(object({
16903
17446
  trackId: string(),
16904
- kinds: array(MediaFileKindEnum).optional()
16905
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17447
+ deviceId: number()
17448
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16906
17449
  kind: "mutation",
16907
17450
  auth: "admin"
16908
17451
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17602,6 +18145,17 @@ var maxSessionHoldMsField = {
17602
18145
  default: 12e4,
17603
18146
  step: 5e3
17604
18147
  };
18148
+ /**
18149
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18150
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18151
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18152
+ */
18153
+ var audioMotionWindowMsField = {
18154
+ min: 5e3,
18155
+ max: 6e5,
18156
+ default: 9e4,
18157
+ step: 5e3
18158
+ };
17605
18159
  var motionFpsField = {
17606
18160
  min: 1,
17607
18161
  max: 30,
@@ -17633,7 +18187,7 @@ var detectionFpsField = {
17633
18187
  var occupancyRecheckSecField = {
17634
18188
  min: 0,
17635
18189
  max: 300,
17636
- default: 30,
18190
+ default: 300,
17637
18191
  step: 5
17638
18192
  };
17639
18193
  var occupancyRecheckFramesField = {
@@ -17778,6 +18332,27 @@ var RunnerCameraConfigSchema = object({
17778
18332
  * resolved `CameraDetectionConfig`.
17779
18333
  */
17780
18334
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18335
+ /**
18336
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18337
+ * 'on-motion'` audio window, measured from the LAST motion event.
18338
+ *
18339
+ * This exists because the falling edge cannot be relied on. Camera-native
18340
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18341
+ * its email-push SMTP path both emit `detected: true` and never the
18342
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18343
+ * onboard-only camera a window that closed only on `detected: false` never
18344
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18345
+ * battery camera, the one failure mode the mode exists to prevent.
18346
+ *
18347
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18348
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18349
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18350
+ *
18351
+ * Not consumed by the runner: carried here so it shares the per-camera
18352
+ * device-settings surface with `motionCooldownMs`, exactly like
18353
+ * `maxSessionHoldMs`.
18354
+ */
18355
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17781
18356
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17782
18357
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17783
18358
  motionStreamId: string(),
@@ -17873,7 +18448,7 @@ var RunnerCameraConfigSchema = object({
17873
18448
  */
17874
18449
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17875
18450
  });
17876
- 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;
18451
+ 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;
17877
18452
  /**
17878
18453
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17879
18454
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18906,6 +19481,39 @@ var snapshotCapability = {
18906
19481
  etag: string().nullable()
18907
19482
  }))),
18908
19483
  /**
19484
+ * The full decision chain for ONE device, for the viewer's debug readout —
19485
+ * the answer to "why does this tile show what it shows" in a single poll:
19486
+ * the battery slice the state was derived from, the resolved state + its
19487
+ * reason, the cached frame's identity/age, whether a wake window is open,
19488
+ * and whether a fresh capture is in flight. Cache-only and capture-free:
19489
+ * a debug read must never wake a battery camera.
19490
+ */
19491
+ getDebugState: systemMethod(object({ deviceId: number() }), object({
19492
+ /** The battery slice as read, or null when the device has none. */
19493
+ battery: object({
19494
+ sleeping: boolean(),
19495
+ lastUpdated: number(),
19496
+ lastContactAt: number().optional()
19497
+ }).nullable(),
19498
+ /** The resolved snapshot state (what the overlay decision used). */
19499
+ state: object({
19500
+ isBattery: boolean(),
19501
+ reason: _enum([
19502
+ "disabled",
19503
+ "sleeping",
19504
+ "unreachable",
19505
+ "waking"
19506
+ ]).nullable()
19507
+ }),
19508
+ /** The cached frame behind the next paint. */
19509
+ frame: object({
19510
+ capturedAt: number().nullable(),
19511
+ ageMs: number().nullable()
19512
+ }),
19513
+ /** A wake window is currently open (the Waking overlay's source). */
19514
+ waking: boolean()
19515
+ })),
19516
+ /**
18909
19517
  * Signed, expiring links to a CLIENT-SIZED frame — and the demand signal
18910
19518
  * that makes those frames current.
18911
19519
  *
@@ -18978,7 +19586,16 @@ targets: array(object({
18978
19586
  /** A sleeping battery camera: the frame is deliberately stale and will
18979
19587
  * NOT refresh in the background. A surface should say so rather than
18980
19588
  * present it as current. */
18981
- sleeping: boolean()
19589
+ sleeping: boolean(),
19590
+ /** Current device state rendered over the cached frame. State images
19591
+ * remain authoritative even when their photographic background is
19592
+ * old; null means the link must carry a current camera frame. */
19593
+ stateReason: _enum([
19594
+ "disabled",
19595
+ "sleeping",
19596
+ "unreachable",
19597
+ "waking"
19598
+ ]).nullable()
18982
19599
  })))
18983
19600
  },
18984
19601
  status: {
@@ -20638,6 +21255,25 @@ var BatteryStatusSchema = object({
20638
21255
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20639
21256
  lastUpdated: number(),
20640
21257
  /**
21258
+ * Ms epoch of the last time the device PROVED it was reachable — a
21259
+ * completed firmware round-trip, an observed wake, or an inbound push
21260
+ * (firmware event, email). `0`/absent = never since this slice was born.
21261
+ *
21262
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21263
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21264
+ * for the radio, because a poll that confirms reachability is the same
21265
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21266
+ * single derivation every consumer must use; no surface computes its own.
21267
+ *
21268
+ * It is deliberately NOT a clock in the
21269
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21270
+ * observation itself, and it is the only thing a 30-hour silence is
21271
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21272
+ * Reolink provider) so a value that means "recently" cannot cost a
21273
+ * SQLite commit per round-trip.
21274
+ */
21275
+ lastContactAt: number().optional(),
21276
+ /**
20641
21277
  * True when the source is a BINARY low-battery indicator (HA
20642
21278
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20643
21279
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22910,54 +23546,139 @@ var TalkAudioCodecSchema = _enum([
22910
23546
  "g711ulaw",
22911
23547
  "g711alaw"
22912
23548
  ]);
22913
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22914
- sessionId: string(),
22915
- sdpOffer: string()
22916
- }), {
22917
- kind: "mutation",
22918
- auth: "admin"
22919
- }), method(object({
22920
- deviceId: number(),
22921
- sessionId: string(),
22922
- sdpAnswer: string()
22923
- }), _void(), {
22924
- kind: "mutation",
22925
- auth: "admin"
22926
- }), method(object({
22927
- deviceId: number(),
22928
- sessionId: string()
22929
- }), _void(), {
22930
- kind: "mutation",
22931
- auth: "admin"
22932
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22933
- kind: "mutation",
22934
- auth: "admin"
22935
- }), method(object({
22936
- deviceId: number(),
22937
- /** Audio bytes for ONE frame, base64-encoded so the payload
22938
- * survives tRPC JSON serialization. */
22939
- audioBase64: string(),
22940
- /** Wire codec of the payload. Omit to let the provider default
22941
- * to its native expected format (s16le @ provider-native rate,
22942
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22943
- codec: TalkAudioCodecSchema.optional(),
22944
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22945
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22946
- sampleRate: number().int().positive().optional(),
22947
- /** Channel count. Default 1. */
22948
- channels: number().int().positive().optional(),
22949
- /** Sequence number for ordering / dropping out-of-order frames. */
22950
- sequenceNumber: number().int()
22951
- }), object({ accepted: boolean() }), {
22952
- kind: "mutation",
22953
- auth: "admin"
22954
- }), method(object({ deviceId: number() }), _void(), {
22955
- kind: "mutation",
22956
- auth: "admin"
22957
- }), object({
22958
- deviceId: number(),
22959
- status: IntercomStatusSchema
22960
- });
23549
+ var intercomCapability = {
23550
+ name: "intercom",
23551
+ scope: "device",
23552
+ deviceNative: true,
23553
+ mode: "singleton",
23554
+ deviceTypes: [DeviceType.Camera],
23555
+ methods: {
23556
+ /**
23557
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23558
+ * offer with a single sendonly audio m-line the client answers
23559
+ * (client → server direction). The server wakes battery cams
23560
+ * transparently before opening the upstream talk channel.
23561
+ */
23562
+ startSession: method(object({ deviceId: number() }), object({
23563
+ sessionId: string(),
23564
+ sdpOffer: string()
23565
+ }), {
23566
+ kind: "mutation",
23567
+ auth: "admin"
23568
+ }),
23569
+ handleAnswer: method(object({
23570
+ deviceId: number(),
23571
+ sessionId: string(),
23572
+ sdpAnswer: string()
23573
+ }), _void(), {
23574
+ kind: "mutation",
23575
+ auth: "admin"
23576
+ }),
23577
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23578
+ stopSession: method(object({
23579
+ deviceId: number(),
23580
+ sessionId: string()
23581
+ }), _void(), {
23582
+ kind: "mutation",
23583
+ auth: "admin"
23584
+ }),
23585
+ /**
23586
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23587
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23588
+ * harnesses) that already have decoded PCM frames and just need a
23589
+ * direct path onto the camera's talk channel. Mutually exclusive
23590
+ * with `startSession` (an active WebRTC session must be stopped
23591
+ * before a raw-PCM session can be opened on the same device, and
23592
+ * vice versa).
23593
+ */
23594
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23595
+ kind: "mutation",
23596
+ auth: "admin"
23597
+ }),
23598
+ /**
23599
+ * Push one chunk of talk-back audio onto the active talk session.
23600
+ * The cap is codec-agnostic: the caller declares (or omits) the
23601
+ * wire format via `codec`; the provider decides between passthrough
23602
+ * (when the wire codec matches the camera's native talk channel),
23603
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23604
+ *
23605
+ * Callers do NOT need to know the camera's wire format or sample
23606
+ * rate — that information lives entirely inside the provider.
23607
+ *
23608
+ * Sequence numbers MUST be monotonic per talk session; older frames
23609
+ * arriving after newer ones are dropped to avoid smearing the
23610
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23611
+ * predictor would corrupt with re-ordering).
23612
+ */
23613
+ pushTalkAudio: method(object({
23614
+ deviceId: number(),
23615
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23616
+ * survives tRPC JSON serialization. */
23617
+ audioBase64: string(),
23618
+ /** Wire codec of the payload. Omit to let the provider default
23619
+ * to its native expected format (s16le @ provider-native rate,
23620
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23621
+ codec: TalkAudioCodecSchema.optional(),
23622
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23623
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23624
+ sampleRate: number().int().positive().optional(),
23625
+ /** Channel count. Default 1. */
23626
+ channels: number().int().positive().optional(),
23627
+ /** Sequence number for ordering / dropping out-of-order frames. */
23628
+ sequenceNumber: number().int()
23629
+ }), object({ accepted: boolean() }), {
23630
+ kind: "mutation",
23631
+ auth: "admin"
23632
+ }),
23633
+ /** Close the raw-PCM talk session. Idempotent. */
23634
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23635
+ kind: "mutation",
23636
+ auth: "admin"
23637
+ })
23638
+ },
23639
+ events: { onStatusChanged: { data: object({
23640
+ deviceId: number(),
23641
+ status: IntercomStatusSchema
23642
+ }) } },
23643
+ status: {
23644
+ schema: IntercomStatusSchema,
23645
+ kind: "command-driven"
23646
+ },
23647
+ /**
23648
+ * Runtime-state slice — mirrored by the kernel.
23649
+ *
23650
+ * The cap declared `status` and nothing else, so the only two sources an
23651
+ * exporter has for a value — the `device.state-changed` slice event and the
23652
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23653
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23654
+ * have been published and never received a value, which is the defect the
23655
+ * export's two classification tables exist to prevent (177 of them, once), so
23656
+ * `intercom` was excluded rather than exported.
23657
+ *
23658
+ * The shape is the status shape: there is exactly one truth about talk-back
23659
+ * and duplicating it into a second schema is how two halves of one capability
23660
+ * come to disagree. Providers write it through
23661
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23662
+ * and close a session, and seed it at registration so the slice exists before
23663
+ * the first session rather than after it.
23664
+ *
23665
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23666
+ * session handle, so a session torn down by a transport death that never
23667
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23668
+ * session or the next restart. That is why the slice is `session` and not
23669
+ * `restored` — a restart must never restore "talking".
23670
+ */
23671
+ runtimeState: IntercomStatusSchema,
23672
+ /**
23673
+ * Runtime-state durability: **session** — `talking` describes a live audio
23674
+ * session, which by definition does not survive the process that held it.
23675
+ * Restoring it would publish a camera as talking to nobody.
23676
+ *
23677
+ * See `RuntimeStateDurability`. Enforced by
23678
+ * `scripts/check-runtime-state-durability.ts`.
23679
+ */
23680
+ durability: "session"
23681
+ };
22961
23682
  /**
22962
23683
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22963
23684
  * with a mowing lifecycle plus a dock action.
@@ -25654,7 +26375,7 @@ method(object({
25654
26375
  toMs: number()
25655
26376
  }), RecordingAvailabilitySchema, {
25656
26377
  kind: "query",
25657
- auth: "admin"
26378
+ auth: "protected"
25658
26379
  }), method(object({
25659
26380
  deviceId: number(),
25660
26381
  fromMs: number(),
@@ -25662,14 +26383,14 @@ method(object({
25662
26383
  tzOffsetMinutes: number()
25663
26384
  }), RecordingDaysSchema, {
25664
26385
  kind: "query",
25665
- auth: "admin"
26386
+ auth: "protected"
25666
26387
  }), method(object({
25667
26388
  deviceId: number(),
25668
26389
  fromMs: number(),
25669
26390
  toMs: number()
25670
26391
  }), RecordingManifestSchema, {
25671
26392
  kind: "query",
25672
- auth: "admin"
26393
+ auth: "protected"
25673
26394
  }), method(object({}), RecordingStorageUsageSchema, {
25674
26395
  kind: "query",
25675
26396
  auth: "admin"
@@ -25959,14 +26680,77 @@ method(object({
25959
26680
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25960
26681
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25961
26682
  *
25962
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25963
- * derives the device-detail contribution; the provider carries NO hand-written
25964
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25965
- * every hysteresis flip / availability change; consumers never poll.
25966
- */
25967
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25968
- * be added without a wire break (matching falls back to any-condition refs). */
26683
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26684
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26685
+ * for the thing: a scene is a standing question about the property ("is the bin
26686
+ * still out"), and the operator's question is "which of my scenes have tripped",
26687
+ * across every camera at once — not "what does camera 617 think". Buried one
26688
+ * camera deep it also could not be found. The surface is now a top-level admin
26689
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26690
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26691
+ *
26692
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26693
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26694
+ * directions, so a registration nobody declares fails exactly as loudly as a
26695
+ * declaration nobody registers. The editor is imported directly by the page.
26696
+ *
26697
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26698
+ * availability change; consumers never poll.
26699
+ */
26700
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26701
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26702
+ * Open by design so more can be added without a wire break.
26703
+ *
26704
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26705
+ * not comparable, so "I have never seen this scene in this light" is reported
26706
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26707
+ * collapses the cosine and would latch a false alarm every single night. */
25969
26708
  var SceneConditionSchema = string();
26709
+ /**
26710
+ * What a scene does when the CURRENT light has no reference of its own.
26711
+ *
26712
+ * The lighting variants are not equally likely to exist. Almost every operator
26713
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26714
+ * scene that is only ever going to be asked about a daytime question ("is the
26715
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26716
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26717
+ * working without it rather than degrading into a permanent complaint.
26718
+ *
26719
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26720
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26721
+ * last covered light left it at, the latch is untouched, and the hysteresis
26722
+ * run is neither spent nor cleared. The scene resumes by itself at first
26723
+ * light. This is the only behaviour under which "I never captured IR" is a
26724
+ * configuration choice instead of a nightly fault.
26725
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26726
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26727
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26728
+ * cross-condition cosines are not comparable, so a day reference against a
26729
+ * true IR frame collapses and the scene reports a theft at 21:40.
26730
+ *
26731
+ * Never applies when the scene has NO comparable reference at all — that is
26732
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26733
+ * there would hide a scene the operator never finished setting up.
26734
+ */
26735
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26736
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26737
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26738
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26739
+ * and never counts toward hysteresis in either direction. */
26740
+ var SceneVerdictSchema = _enum([
26741
+ "matched",
26742
+ "diverged",
26743
+ "unknown"
26744
+ ]);
26745
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26746
+ * silence that reads as "nothing has happened". */
26747
+ var SceneUnavailableSchema = _enum([
26748
+ "no-reference-for-condition",
26749
+ "view-shifted",
26750
+ "no-vision-profile",
26751
+ "encoder-model-changed",
26752
+ "no-snapshot"
26753
+ ]);
25970
26754
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25971
26755
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25972
26756
  var SceneReferenceSchema = object({
@@ -25974,7 +26758,14 @@ var SceneReferenceSchema = object({
25974
26758
  modelId: string(),
25975
26759
  condition: SceneConditionSchema,
25976
26760
  capturedAt: number(),
25977
- thumbnailMediaId: string().optional()
26761
+ thumbnailMediaId: string().optional(),
26762
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26763
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26764
+ * normalized rect frame a different piece of world, and the scene would
26765
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26766
+ * when hysteresis is about to flip — one extra encode per candidate
26767
+ * transition, not per poll. */
26768
+ anchorEmbedding: array(number()).optional()
25978
26769
  });
25979
26770
  var SceneMonitorStateSchema = object({
25980
26771
  id: string(),
@@ -25996,6 +26787,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
25996
26787
  profileId: string().optional(),
25997
26788
  hysteresisCount: number().int().positive()
25998
26789
  })]);
26790
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26791
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26792
+ * out in silence rather than reporting a fault every night. */
26793
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26794
+ /**
26795
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26796
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26797
+ *
26798
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26799
+ * fail-open: a notification suppressed is the worse error there, but a vision
26800
+ * model that timed out has not told us the bin is gone, and a latch is a
26801
+ * stateful claim that costs the operator a trip to reset.
26802
+ */
26803
+ var SceneConfirmSchema = object({
26804
+ enabled: boolean().default(false),
26805
+ prompt: string().min(1).max(1e3),
26806
+ profileId: string().optional(),
26807
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26808
+ maxImagePx: number().int().min(64).max(2048).default(448),
26809
+ /** What a timeout / unavailable model means for the PENDING flip. */
26810
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26811
+ });
25999
26812
  var SceneMonitorSchema = object({
26000
26813
  id: string(),
26001
26814
  label: string(),
@@ -26014,7 +26827,56 @@ var SceneMonitorSchema = object({
26014
26827
  lastConfidence: number().nullable(),
26015
26828
  currentCondition: SceneConditionSchema.nullable(),
26016
26829
  availability: _enum(["ok", "unavailable"]),
26017
- unavailableReason: string().nullable()
26830
+ unavailableReason: string().nullable(),
26831
+ /** Which state is "the initial screen". `null` until the first capture. */
26832
+ baselineStateId: string().nullable(),
26833
+ /** Which boolean drives notification rules and any export. */
26834
+ emit: _enum(["latched", "live"]).default("latched"),
26835
+ /** Live: does the region match the baseline RIGHT NOW. */
26836
+ verdict: SceneVerdictSchema,
26837
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26838
+ latched: boolean(),
26839
+ /** Last reset (or creation). */
26840
+ armedAt: number(),
26841
+ divergedAt: number().nullable(),
26842
+ restoredAt: number().nullable(),
26843
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26844
+ * during the window DISCARDS the observation — a car pulling up in front of
26845
+ * the bin must not be able to spend hysteresis credit. */
26846
+ quietSeconds: number().int().min(0).max(3600).default(60),
26847
+ /** An observation only advances the pending count when it is at least this
26848
+ * far from the previously counted one, so N agreeing checks span real time
26849
+ * rather than N adjacent polls inside one occlusion. */
26850
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26851
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26852
+ confirm: SceneConfirmSchema.optional(),
26853
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26854
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26855
+ /** Clear the latch on its own when the scene matches again? Default false —
26856
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26857
+ * automation can react to the bin coming back without the operator's own
26858
+ * alarm silently clearing itself. */
26859
+ autoRestore: boolean().default(false),
26860
+ /** What to do when the current light has no reference of its own. See
26861
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26862
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26863
+ /**
26864
+ * The light whose checks are currently being SAT OUT under
26865
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26866
+ *
26867
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26868
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26869
+ * nothing captured in this light"* in the same calm voice as the coverage
26870
+ * line, because the alternative is a scene that silently stops answering
26871
+ * after sunset with nothing anywhere saying why. A skipped check must never
26872
+ * read as a broken one.
26873
+ */
26874
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26875
+ /** Named cause when `verdict === 'unknown'`. */
26876
+ unavailable: SceneUnavailableSchema.nullable(),
26877
+ /** Conditions that have at least one comparable reference — the coverage line
26878
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26879
+ coveredConditions: array(SceneConditionSchema)
26018
26880
  });
26019
26881
  var SceneMonitorStatusSchema = object({
26020
26882
  monitors: array(SceneMonitorSchema),
@@ -26027,12 +26889,6 @@ var sceneMonitorCapability = {
26027
26889
  kind: "wrapper",
26028
26890
  defaultActive: true,
26029
26891
  deviceTypes: [DeviceType.Camera],
26030
- deviceConfig: { ui: {
26031
- kind: "widget",
26032
- widgetId: "host/scene-monitor-editor",
26033
- tab: "scenes",
26034
- label: "Scenes"
26035
- } },
26036
26892
  methods: {
26037
26893
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26038
26894
  createScene: method(object({
@@ -26063,7 +26919,15 @@ var sceneMonitorCapability = {
26063
26919
  "both"
26064
26920
  ]).optional(),
26065
26921
  checkIntervalSec: number().optional(),
26066
- check: SceneCheckSchema.optional()
26922
+ check: SceneCheckSchema.optional(),
26923
+ emit: _enum(["latched", "live"]).optional(),
26924
+ quietSeconds: number().int().min(0).max(3600).optional(),
26925
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26926
+ anchorThreshold: number().min(0).max(1).optional(),
26927
+ autoRestore: boolean().optional(),
26928
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26929
+ /** `null` clears the vision-model adjudicator. */
26930
+ confirm: SceneConfirmSchema.nullable().optional()
26067
26931
  })
26068
26932
  }), _void(), {
26069
26933
  kind: "mutation",
@@ -26104,6 +26968,26 @@ var sceneMonitorCapability = {
26104
26968
  }), _void(), {
26105
26969
  kind: "mutation",
26106
26970
  auth: "admin"
26971
+ }),
26972
+ /**
26973
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26974
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26975
+ * "reset" in the operator's head means *this is the new normal*, and
26976
+ * re-capture is what makes the feature self-healing against slow drift
26977
+ * instead of failing silently weeks later.
26978
+ *
26979
+ * Reachable from three surfaces on this one mutation: the scene card, a
26980
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
26981
+ * no new Notification-Center code at all), and tRPC for scripts.
26982
+ */
26983
+ resetScene: method(object({
26984
+ deviceId: number(),
26985
+ monitorId: string(),
26986
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
26987
+ recapture: boolean().optional()
26988
+ }), _void(), {
26989
+ kind: "mutation",
26990
+ auth: "admin"
26107
26991
  })
26108
26992
  },
26109
26993
  status: {
@@ -26346,13 +27230,63 @@ var CamStreamDescriptorSchema = object({
26346
27230
  * set of stream descriptors it can offer for the device, synchronously, so the
26347
27231
  * broker can reconcile its registry against the authoritative provider state.
26348
27232
  */
27233
+ /**
27234
+ * The catalog as a DURABLE fact rather than a live answer.
27235
+ *
27236
+ * A battery camera's descriptors are profile-stable — they change when the
27237
+ * operator rewrites an encoder profile, not minute to minute — but building
27238
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27239
+ * provider is allowed to build them exactly once per profile and must serve
27240
+ * every later pull from a cache.
27241
+ *
27242
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27243
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27244
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27245
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27246
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27247
+ * which on a battery cam is most of the day. The camera was fine. The stream
27248
+ * was unreachable because the process had forgotten what the camera offers.
27249
+ *
27250
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27251
+ * declared collection, with the same `restored` durability `battery` uses for
27252
+ * the same reason: the last known value is the only value there is while the
27253
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27254
+ * is the DIAL that wakes a camera, never the catalog (D173).
27255
+ */
27256
+ var StreamCatalogStateSchema = object({
27257
+ /** The descriptors as last built from a real camera response. Never a guess:
27258
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27259
+ * one the camera itself once produced. */
27260
+ descriptors: array(CamStreamDescriptorSchema),
27261
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27262
+ * path decide whether the camera's own awake window is worth spending on a
27263
+ * re-read. */
27264
+ lastFetchedAt: number()
27265
+ });
26349
27266
  var streamCatalogCapability = {
26350
27267
  name: "stream-catalog",
26351
27268
  scope: "device",
26352
27269
  deviceNative: true,
26353
27270
  mode: "singleton",
26354
27271
  deviceTypes: [DeviceType.Camera],
26355
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
27272
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27273
+ runtimeState: StreamCatalogStateSchema,
27274
+ /**
27275
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27276
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27277
+ * camera that cannot be watched at all until it happens to wake.
27278
+ *
27279
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27280
+ * build, and a build only runs when there is no cached copy (or the copy is
27281
+ * a day old and the camera is awake anyway).
27282
+ *
27283
+ * See `RuntimeStateDurability`. Enforced by
27284
+ * `scripts/check-runtime-state-durability.ts`.
27285
+ */
27286
+ durability: "restored",
27287
+ /** Clock field: written, but excluded from the compare that decides whether
27288
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27289
+ volatileStateFields: ["lastFetchedAt"]
26356
27290
  };
26357
27291
  /** One of the camera's stream profiles. */
26358
27292
  var StreamProfileSchema = _enum([
@@ -26607,12 +27541,64 @@ var NetworkAddressSchema = object({
26607
27541
  family: string(),
26608
27542
  internal: boolean()
26609
27543
  });
27544
+ /**
27545
+ * Provenance of the site coordinates, and the whole reason this is not just two
27546
+ * numbers.
27547
+ *
27548
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27549
+ * nothing overwrites it.
27550
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27551
+ * default that is right to a few kilometres beats the coarse UTC clock split
27552
+ * the sun-times consumers otherwise fall back to.
27553
+ *
27554
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27555
+ * own input will eventually trust the guess.
27556
+ */
27557
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27558
+ /**
27559
+ * The read shape: the location plus the honest state of the one-shot derivation.
27560
+ *
27561
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27562
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27563
+ * failed; the hub will NOT try again on its own — the fallback is declared
27564
+ * (consumers degrade to their own last resort) and the operator either types the
27565
+ * coordinates or presses detect.
27566
+ */
27567
+ var SiteLocationStatusSchema = object({
27568
+ location: object({
27569
+ /** WGS84 decimal degrees. */
27570
+ latitude: number().min(-90).max(90),
27571
+ longitude: number().min(-180).max(180),
27572
+ source: SiteLocationSourceSchema,
27573
+ /** Epoch ms the value was last written. */
27574
+ updatedAt: number(),
27575
+ /**
27576
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27577
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27578
+ */
27579
+ label: string().optional()
27580
+ }).nullable(),
27581
+ derivationAttemptedAt: number().nullable(),
27582
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27583
+ derivationError: string().nullable()
27584
+ });
27585
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27586
+ var SetSiteLocationInputSchema = object({
27587
+ latitude: number().min(-90).max(90),
27588
+ longitude: number().min(-180).max(180)
27589
+ }).nullable();
26610
27590
  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(), {
26611
27591
  kind: "mutation",
26612
27592
  auth: "admin"
26613
27593
  }), method(_void(), _void(), {
26614
27594
  kind: "mutation",
26615
27595
  auth: "admin"
27596
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27597
+ kind: "mutation",
27598
+ auth: "admin"
27599
+ }), method(_void(), SiteLocationStatusSchema, {
27600
+ kind: "mutation",
27601
+ auth: "admin"
26616
27602
  });
26617
27603
  /**
26618
27604
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27932,6 +28918,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27932
28918
  humiditySensor: humiditySensorCapability,
27933
28919
  image: imageCapability,
27934
28920
  imageSettings: imageSettingsCapability,
28921
+ intercom: intercomCapability,
27935
28922
  lawnMowerControl: lawnMowerControlCapability,
27936
28923
  lockControl: lockControlCapability,
27937
28924
  mediaPlayer: mediaPlayerCapability,
@@ -27950,6 +28937,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27950
28937
  sceneMonitor: sceneMonitorCapability,
27951
28938
  scriptRunner: scriptRunnerCapability,
27952
28939
  smoke: smokeCapability,
28940
+ streamCatalog: streamCatalogCapability,
27953
28941
  streamParams: streamParamsCapability,
27954
28942
  switch: switchCapability,
27955
28943
  tamper: tamperCapability,
@@ -28603,6 +29591,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28603
29591
  labels: ["probe not implemented"]
28604
29592
  };
28605
29593
  }
29594
+ /**
29595
+ * Top-level devices restored at once in {@link onRestoreDevices}.
29596
+ *
29597
+ * Four covers the fleets this ships to without turning a boot into a burst a
29598
+ * camera NVR answers with a refusal. A provider whose upstream is a single
29599
+ * session with a serial command channel (a Baichuan hub, an NVR that
29600
+ * serialises ISAPI) should lower it; nothing needs to raise it.
29601
+ */
29602
+ restoreConcurrency = 4;
28606
29603
  async restoreDevices(savedDevices) {
28607
29604
  await this.onRestoreDevices(savedDevices);
28608
29605
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -28634,15 +29631,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28634
29631
  */
28635
29632
  async onRestoreDevices(savedDevices) {
28636
29633
  const restored = /* @__PURE__ */ new Set();
28637
- for (const saved of savedDevices) {
28638
- if (saved.parentDeviceId !== null) continue;
29634
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
29635
+ const restoreOne = async (saved) => {
28639
29636
  const Class = this.deviceClasses[saved.type];
28640
29637
  if (!Class) {
28641
29638
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
28642
29639
  tags: { stableId: saved.stableId },
28643
29640
  meta: { type: saved.type }
28644
29641
  });
28645
- continue;
29642
+ return;
28646
29643
  }
28647
29644
  try {
28648
29645
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -28656,7 +29653,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28656
29653
  }
28657
29654
  });
28658
29655
  }
28659
- }
29656
+ };
29657
+ let nextTopLevel = 0;
29658
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
29659
+ for (;;) {
29660
+ const saved = topLevel[nextTopLevel++];
29661
+ if (saved === void 0) return;
29662
+ await restoreOne(saved);
29663
+ }
29664
+ }));
28660
29665
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
28661
29666
  for (const saved of childRows) {
28662
29667
  const Class = this.deviceClasses[saved.type];
@@ -30813,6 +31818,12 @@ Object.freeze({
30813
31818
  addonId: null,
30814
31819
  access: "create"
30815
31820
  },
31821
+ "llm.cancel": {
31822
+ capName: "llm",
31823
+ capScope: "system",
31824
+ addonId: null,
31825
+ access: "create"
31826
+ },
30816
31827
  "llm.deleteModel": {
30817
31828
  capName: "llm",
30818
31829
  capScope: "system",
@@ -30897,6 +31908,12 @@ Object.freeze({
30897
31908
  addonId: null,
30898
31909
  access: "view"
30899
31910
  },
31911
+ "llm.resolveModelRef": {
31912
+ capName: "llm",
31913
+ capScope: "system",
31914
+ addonId: null,
31915
+ access: "create"
31916
+ },
30900
31917
  "llm.setDefault": {
30901
31918
  capName: "llm",
30902
31919
  capScope: "system",
@@ -33063,6 +34080,12 @@ Object.freeze({
33063
34080
  addonId: null,
33064
34081
  access: "create"
33065
34082
  },
34083
+ "sceneMonitor.resetScene": {
34084
+ capName: "scene-monitor",
34085
+ capScope: "device",
34086
+ addonId: null,
34087
+ access: "delete"
34088
+ },
33066
34089
  "sceneMonitor.updateScene": {
33067
34090
  capName: "scene-monitor",
33068
34091
  capScope: "device",
@@ -33201,6 +34224,12 @@ Object.freeze({
33201
34224
  addonId: null,
33202
34225
  access: "view"
33203
34226
  },
34227
+ "snapshot.getDebugState": {
34228
+ capName: "snapshot",
34229
+ capScope: "device",
34230
+ addonId: null,
34231
+ access: "view"
34232
+ },
33204
34233
  "snapshot.getSnapshot": {
33205
34234
  capName: "snapshot",
33206
34235
  capScope: "device",
@@ -33741,6 +34770,12 @@ Object.freeze({
33741
34770
  addonId: null,
33742
34771
  access: "create"
33743
34772
  },
34773
+ "system.detectSiteLocation": {
34774
+ capName: "system",
34775
+ capScope: "system",
34776
+ addonId: null,
34777
+ access: "create"
34778
+ },
33744
34779
  "system.featureFlags": {
33745
34780
  capName: "system",
33746
34781
  capScope: "system",
@@ -33759,6 +34794,12 @@ Object.freeze({
33759
34794
  addonId: null,
33760
34795
  access: "view"
33761
34796
  },
34797
+ "system.getSiteLocation": {
34798
+ capName: "system",
34799
+ capScope: "system",
34800
+ addonId: null,
34801
+ access: "view"
34802
+ },
33762
34803
  "system.health": {
33763
34804
  capName: "system",
33764
34805
  capScope: "system",
@@ -33783,6 +34824,12 @@ Object.freeze({
33783
34824
  addonId: null,
33784
34825
  access: "create"
33785
34826
  },
34827
+ "system.setSiteLocation": {
34828
+ capName: "system",
34829
+ capScope: "system",
34830
+ addonId: null,
34831
+ access: "create"
34832
+ },
33786
34833
  "terminalSession.adoptLegacyMonitor": {
33787
34834
  capName: "terminal-session",
33788
34835
  capScope: "system",
@@ -34354,6 +35401,1709 @@ Object.freeze({
34354
35401
  access: "create"
34355
35402
  }
34356
35403
  });
35404
+ Object.freeze({
35405
+ "accessories.setChildHidden": [{
35406
+ name: "childDeviceId",
35407
+ form: "single",
35408
+ optional: false
35409
+ }, {
35410
+ name: "deviceId",
35411
+ form: "single",
35412
+ optional: false
35413
+ }],
35414
+ "addonSettings.getDeviceSettings": [{
35415
+ name: "deviceId",
35416
+ form: "single",
35417
+ optional: false
35418
+ }],
35419
+ "addonSettings.updateDeviceSettings": [{
35420
+ name: "deviceId",
35421
+ form: "single",
35422
+ optional: false
35423
+ }],
35424
+ "alarmPanel.arm": [{
35425
+ name: "deviceId",
35426
+ form: "single",
35427
+ optional: false
35428
+ }],
35429
+ "alarmPanel.disarm": [{
35430
+ name: "deviceId",
35431
+ form: "single",
35432
+ optional: false
35433
+ }],
35434
+ "alarmPanel.trigger": [{
35435
+ name: "deviceId",
35436
+ form: "single",
35437
+ optional: false
35438
+ }],
35439
+ "audioAnalysis.resolveDeviceSettings": [{
35440
+ name: "deviceId",
35441
+ form: "single",
35442
+ optional: false
35443
+ }],
35444
+ "audioAnalyzer.classify": [{
35445
+ name: "deviceId",
35446
+ form: "single",
35447
+ optional: true
35448
+ }],
35449
+ "audioMetrics.getCurrentSnapshot": [{
35450
+ name: "deviceId",
35451
+ form: "single",
35452
+ optional: false
35453
+ }],
35454
+ "audioMetrics.getHistory": [{
35455
+ name: "deviceId",
35456
+ form: "single",
35457
+ optional: false
35458
+ }],
35459
+ "automationControl.disable": [{
35460
+ name: "deviceId",
35461
+ form: "single",
35462
+ optional: false
35463
+ }],
35464
+ "automationControl.enable": [{
35465
+ name: "deviceId",
35466
+ form: "single",
35467
+ optional: false
35468
+ }],
35469
+ "automationControl.trigger": [{
35470
+ name: "deviceId",
35471
+ form: "single",
35472
+ optional: false
35473
+ }],
35474
+ "battery.wakeForStream": [{
35475
+ name: "deviceId",
35476
+ form: "single",
35477
+ optional: false
35478
+ }],
35479
+ "brightness.setBrightness": [{
35480
+ name: "deviceId",
35481
+ form: "single",
35482
+ optional: false
35483
+ }],
35484
+ "button.press": [{
35485
+ name: "deviceId",
35486
+ form: "single",
35487
+ optional: false
35488
+ }],
35489
+ "cameraCredentials.getCredentials": [{
35490
+ name: "deviceId",
35491
+ form: "single",
35492
+ optional: false
35493
+ }],
35494
+ "cameraStreams.getBrokerStreams": [{
35495
+ name: "deviceId",
35496
+ form: "single",
35497
+ optional: false
35498
+ }],
35499
+ "cameraStreams.getCameraStreams": [{
35500
+ name: "deviceId",
35501
+ form: "single",
35502
+ optional: false
35503
+ }],
35504
+ "cameraStreams.getProfileRtspEntries": [{
35505
+ name: "deviceId",
35506
+ form: "single",
35507
+ optional: false
35508
+ }],
35509
+ "cameraStreams.getRtspEntries": [{
35510
+ name: "deviceId",
35511
+ form: "single",
35512
+ optional: false
35513
+ }],
35514
+ "cameraStreams.pickStream": [{
35515
+ name: "deviceId",
35516
+ form: "single",
35517
+ optional: false
35518
+ }],
35519
+ "climateControl.setFanMode": [{
35520
+ name: "deviceId",
35521
+ form: "single",
35522
+ optional: false
35523
+ }],
35524
+ "climateControl.setMode": [{
35525
+ name: "deviceId",
35526
+ form: "single",
35527
+ optional: false
35528
+ }],
35529
+ "climateControl.setPreset": [{
35530
+ name: "deviceId",
35531
+ form: "single",
35532
+ optional: false
35533
+ }],
35534
+ "climateControl.setSwingHorizontal": [{
35535
+ name: "deviceId",
35536
+ form: "single",
35537
+ optional: false
35538
+ }],
35539
+ "climateControl.setSwingVertical": [{
35540
+ name: "deviceId",
35541
+ form: "single",
35542
+ optional: false
35543
+ }],
35544
+ "climateControl.setTarget": [{
35545
+ name: "deviceId",
35546
+ form: "single",
35547
+ optional: false
35548
+ }],
35549
+ "climateControl.setTargetHumidity": [{
35550
+ name: "deviceId",
35551
+ form: "single",
35552
+ optional: false
35553
+ }],
35554
+ "climateControl.setTargetRange": [{
35555
+ name: "deviceId",
35556
+ form: "single",
35557
+ optional: false
35558
+ }],
35559
+ "color.setColor": [{
35560
+ name: "deviceId",
35561
+ form: "single",
35562
+ optional: false
35563
+ }],
35564
+ "consumables.reset": [{
35565
+ name: "deviceId",
35566
+ form: "single",
35567
+ optional: false
35568
+ }],
35569
+ "control.setValue": [{
35570
+ name: "deviceId",
35571
+ form: "single",
35572
+ optional: false
35573
+ }],
35574
+ "cover.close": [{
35575
+ name: "deviceId",
35576
+ form: "single",
35577
+ optional: false
35578
+ }],
35579
+ "cover.open": [{
35580
+ name: "deviceId",
35581
+ form: "single",
35582
+ optional: false
35583
+ }],
35584
+ "cover.setPosition": [{
35585
+ name: "deviceId",
35586
+ form: "single",
35587
+ optional: false
35588
+ }],
35589
+ "cover.setTiltPosition": [{
35590
+ name: "deviceId",
35591
+ form: "single",
35592
+ optional: false
35593
+ }],
35594
+ "cover.stop": [{
35595
+ name: "deviceId",
35596
+ form: "single",
35597
+ optional: false
35598
+ }],
35599
+ "dayNight.getOptions": [{
35600
+ name: "deviceId",
35601
+ form: "single",
35602
+ optional: false
35603
+ }],
35604
+ "dayNight.setSettings": [{
35605
+ name: "deviceId",
35606
+ form: "single",
35607
+ optional: false
35608
+ }],
35609
+ "decoder.createSession": [{
35610
+ name: "deviceId",
35611
+ form: "single",
35612
+ optional: true
35613
+ }],
35614
+ "deviceAdoption.release": [{
35615
+ name: "camDeviceId",
35616
+ form: "single",
35617
+ optional: false
35618
+ }],
35619
+ "deviceAdoption.resync": [{
35620
+ name: "camDeviceId",
35621
+ form: "single",
35622
+ optional: false
35623
+ }],
35624
+ "deviceDiscovery.adoptDevice": [{
35625
+ name: "deviceId",
35626
+ form: "single",
35627
+ optional: false
35628
+ }],
35629
+ "deviceDiscovery.listDiscovered": [{
35630
+ name: "deviceId",
35631
+ form: "single",
35632
+ optional: false
35633
+ }],
35634
+ "deviceDiscovery.refreshDiscovery": [{
35635
+ name: "deviceId",
35636
+ form: "single",
35637
+ optional: false
35638
+ }],
35639
+ "deviceDiscovery.releaseDevice": [{
35640
+ name: "childDeviceId",
35641
+ form: "single",
35642
+ optional: false
35643
+ }, {
35644
+ name: "deviceId",
35645
+ form: "single",
35646
+ optional: false
35647
+ }],
35648
+ "deviceManager.adoptionRelease": [{
35649
+ name: "camDeviceId",
35650
+ form: "single",
35651
+ optional: false
35652
+ }],
35653
+ "deviceManager.adoptionResync": [{
35654
+ name: "camDeviceId",
35655
+ form: "single",
35656
+ optional: false
35657
+ }],
35658
+ "deviceManager.applyInitialMeta": [{
35659
+ name: "deviceId",
35660
+ form: "single",
35661
+ optional: false
35662
+ }, {
35663
+ name: "linkDeviceId",
35664
+ form: "single",
35665
+ optional: true
35666
+ }],
35667
+ "deviceManager.disable": [{
35668
+ name: "deviceId",
35669
+ form: "single",
35670
+ optional: false
35671
+ }],
35672
+ "deviceManager.enable": [{
35673
+ name: "deviceId",
35674
+ form: "single",
35675
+ optional: false
35676
+ }],
35677
+ "deviceManager.getBindings": [{
35678
+ name: "deviceId",
35679
+ form: "single",
35680
+ optional: false
35681
+ }],
35682
+ "deviceManager.getChildren": [{
35683
+ name: "parentDeviceId",
35684
+ form: "single",
35685
+ optional: false
35686
+ }],
35687
+ "deviceManager.getConfigSchema": [{
35688
+ name: "deviceId",
35689
+ form: "single",
35690
+ optional: false
35691
+ }],
35692
+ "deviceManager.getDevice": [{
35693
+ name: "deviceId",
35694
+ form: "single",
35695
+ optional: false
35696
+ }],
35697
+ "deviceManager.getDeviceAggregate": [{
35698
+ name: "deviceId",
35699
+ form: "single",
35700
+ optional: false
35701
+ }],
35702
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35703
+ name: "deviceId",
35704
+ form: "single",
35705
+ optional: false
35706
+ }],
35707
+ "deviceManager.getDeviceSettingsAggregate": [{
35708
+ name: "deviceId",
35709
+ form: "single",
35710
+ optional: false
35711
+ }],
35712
+ "deviceManager.getDeviceStatusAggregate": [{
35713
+ name: "deviceId",
35714
+ form: "single",
35715
+ optional: false
35716
+ }],
35717
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35718
+ name: "deviceIds",
35719
+ form: "array",
35720
+ optional: false
35721
+ }],
35722
+ "deviceManager.getLinkedDevices": [{
35723
+ name: "deviceId",
35724
+ form: "single",
35725
+ optional: false
35726
+ }],
35727
+ "deviceManager.getSettingsSchema": [{
35728
+ name: "deviceId",
35729
+ form: "single",
35730
+ optional: false
35731
+ }],
35732
+ "deviceManager.getStreamProfileMap": [{
35733
+ name: "deviceId",
35734
+ form: "single",
35735
+ optional: false
35736
+ }],
35737
+ "deviceManager.getStreamSources": [{
35738
+ name: "deviceId",
35739
+ form: "single",
35740
+ optional: false
35741
+ }],
35742
+ "deviceManager.getWireableFields": [{
35743
+ name: "deviceId",
35744
+ form: "single",
35745
+ optional: false
35746
+ }],
35747
+ "deviceManager.loadConfig": [{
35748
+ name: "deviceId",
35749
+ form: "single",
35750
+ optional: false
35751
+ }],
35752
+ "deviceManager.loadMeta": [{
35753
+ name: "deviceId",
35754
+ form: "single",
35755
+ optional: false
35756
+ }],
35757
+ "deviceManager.loadRuntimeState": [{
35758
+ name: "deviceId",
35759
+ form: "single",
35760
+ optional: false
35761
+ }],
35762
+ "deviceManager.persistConfig": [{
35763
+ name: "deviceId",
35764
+ form: "single",
35765
+ optional: false
35766
+ }],
35767
+ "deviceManager.probeStreams": [{
35768
+ name: "deviceId",
35769
+ form: "single",
35770
+ optional: false
35771
+ }],
35772
+ "deviceManager.registerDevice": [{
35773
+ name: "parentDeviceId",
35774
+ form: "single",
35775
+ optional: true
35776
+ }],
35777
+ "deviceManager.remove": [{
35778
+ name: "deviceId",
35779
+ form: "single",
35780
+ optional: false
35781
+ }],
35782
+ "deviceManager.removeDevice": [{
35783
+ name: "deviceId",
35784
+ form: "single",
35785
+ optional: false
35786
+ }],
35787
+ "deviceManager.runDeviceAction": [{
35788
+ name: "deviceId",
35789
+ form: "single",
35790
+ optional: false
35791
+ }],
35792
+ "deviceManager.setChildLayout": [{
35793
+ name: "deviceId",
35794
+ form: "single",
35795
+ optional: false
35796
+ }],
35797
+ "deviceManager.setDisabled": [{
35798
+ name: "deviceId",
35799
+ form: "single",
35800
+ optional: false
35801
+ }],
35802
+ "deviceManager.setDisplay": [{
35803
+ name: "deviceId",
35804
+ form: "single",
35805
+ optional: false
35806
+ }],
35807
+ "deviceManager.setIntegrationId": [{
35808
+ name: "deviceId",
35809
+ form: "single",
35810
+ optional: false
35811
+ }],
35812
+ "deviceManager.setLinkDeviceId": [{
35813
+ name: "deviceId",
35814
+ form: "single",
35815
+ optional: false
35816
+ }, {
35817
+ name: "linkDeviceId",
35818
+ form: "single",
35819
+ optional: true
35820
+ }],
35821
+ "deviceManager.setLocation": [{
35822
+ name: "deviceId",
35823
+ form: "single",
35824
+ optional: false
35825
+ }],
35826
+ "deviceManager.setMetadata": [{
35827
+ name: "deviceId",
35828
+ form: "single",
35829
+ optional: false
35830
+ }],
35831
+ "deviceManager.setName": [{
35832
+ name: "deviceId",
35833
+ form: "single",
35834
+ optional: false
35835
+ }],
35836
+ "deviceManager.setPrimaryChildEntityId": [{
35837
+ name: "deviceId",
35838
+ form: "single",
35839
+ optional: false
35840
+ }],
35841
+ "deviceManager.setRole": [{
35842
+ name: "deviceId",
35843
+ form: "single",
35844
+ optional: false
35845
+ }],
35846
+ "deviceManager.setStreamProfileMap": [{
35847
+ name: "deviceId",
35848
+ form: "single",
35849
+ optional: false
35850
+ }],
35851
+ "deviceManager.setType": [{
35852
+ name: "deviceId",
35853
+ form: "single",
35854
+ optional: false
35855
+ }],
35856
+ "deviceManager.setWrapperActive": [{
35857
+ name: "deviceId",
35858
+ form: "single",
35859
+ optional: false
35860
+ }],
35861
+ "deviceManager.testField": [{
35862
+ name: "deviceId",
35863
+ form: "single",
35864
+ optional: false
35865
+ }],
35866
+ "deviceManager.updateConfig": [{
35867
+ name: "deviceId",
35868
+ form: "single",
35869
+ optional: false
35870
+ }],
35871
+ "deviceManager.updateDeviceField": [{
35872
+ name: "deviceId",
35873
+ form: "single",
35874
+ optional: false
35875
+ }],
35876
+ "deviceManager.updateDeviceFieldsBatch": [{
35877
+ name: "deviceId",
35878
+ form: "single",
35879
+ optional: false
35880
+ }],
35881
+ "deviceOps.getConfigEntries": [{
35882
+ name: "deviceId",
35883
+ form: "single",
35884
+ optional: false
35885
+ }],
35886
+ "deviceOps.getRawState": [{
35887
+ name: "deviceId",
35888
+ form: "single",
35889
+ optional: false
35890
+ }],
35891
+ "deviceOps.getSettingsSchema": [{
35892
+ name: "deviceId",
35893
+ form: "single",
35894
+ optional: false
35895
+ }],
35896
+ "deviceOps.getStreamSources": [{
35897
+ name: "deviceId",
35898
+ form: "single",
35899
+ optional: false
35900
+ }],
35901
+ "deviceOps.removeDevice": [{
35902
+ name: "deviceId",
35903
+ form: "single",
35904
+ optional: false
35905
+ }],
35906
+ "deviceOps.runAction": [{
35907
+ name: "deviceId",
35908
+ form: "single",
35909
+ optional: false
35910
+ }],
35911
+ "deviceOps.setConfig": [{
35912
+ name: "deviceId",
35913
+ form: "single",
35914
+ optional: false
35915
+ }],
35916
+ "deviceState.getCapSlice": [{
35917
+ name: "deviceId",
35918
+ form: "single",
35919
+ optional: false
35920
+ }],
35921
+ "deviceState.getSnapshot": [{
35922
+ name: "deviceId",
35923
+ form: "single",
35924
+ optional: false
35925
+ }],
35926
+ "deviceState.setCapSlice": [{
35927
+ name: "deviceId",
35928
+ form: "single",
35929
+ optional: false
35930
+ }],
35931
+ "events.getEventClipUrl": [{
35932
+ name: "deviceId",
35933
+ form: "single",
35934
+ optional: false
35935
+ }],
35936
+ "events.getEvents": [{
35937
+ name: "deviceId",
35938
+ form: "single",
35939
+ optional: false
35940
+ }],
35941
+ "events.getEventThumbnail": [{
35942
+ name: "deviceId",
35943
+ form: "single",
35944
+ optional: false
35945
+ }],
35946
+ "faceGallery.getFaceByTrack": [{
35947
+ name: "deviceId",
35948
+ form: "single",
35949
+ optional: false
35950
+ }],
35951
+ "faceGallery.listRecentFaces": [{
35952
+ name: "deviceId",
35953
+ form: "single",
35954
+ optional: true
35955
+ }],
35956
+ "fanControl.setDirection": [{
35957
+ name: "deviceId",
35958
+ form: "single",
35959
+ optional: false
35960
+ }],
35961
+ "fanControl.setOscillating": [{
35962
+ name: "deviceId",
35963
+ form: "single",
35964
+ optional: false
35965
+ }],
35966
+ "fanControl.setPercentage": [{
35967
+ name: "deviceId",
35968
+ form: "single",
35969
+ optional: false
35970
+ }],
35971
+ "fanControl.setPreset": [{
35972
+ name: "deviceId",
35973
+ form: "single",
35974
+ optional: false
35975
+ }],
35976
+ "humidifier.setMode": [{
35977
+ name: "deviceId",
35978
+ form: "single",
35979
+ optional: false
35980
+ }],
35981
+ "humidifier.setOn": [{
35982
+ name: "deviceId",
35983
+ form: "single",
35984
+ optional: false
35985
+ }],
35986
+ "humidifier.setTargetHumidity": [{
35987
+ name: "deviceId",
35988
+ form: "single",
35989
+ optional: false
35990
+ }],
35991
+ "imageSettings.getOptions": [{
35992
+ name: "deviceId",
35993
+ form: "single",
35994
+ optional: false
35995
+ }],
35996
+ "imageSettings.setSettings": [{
35997
+ name: "deviceId",
35998
+ form: "single",
35999
+ optional: false
36000
+ }],
36001
+ "intercom.endTalkSession": [{
36002
+ name: "deviceId",
36003
+ form: "single",
36004
+ optional: false
36005
+ }],
36006
+ "intercom.handleAnswer": [{
36007
+ name: "deviceId",
36008
+ form: "single",
36009
+ optional: false
36010
+ }],
36011
+ "intercom.pushTalkAudio": [{
36012
+ name: "deviceId",
36013
+ form: "single",
36014
+ optional: false
36015
+ }],
36016
+ "intercom.startSession": [{
36017
+ name: "deviceId",
36018
+ form: "single",
36019
+ optional: false
36020
+ }],
36021
+ "intercom.startTalkSession": [{
36022
+ name: "deviceId",
36023
+ form: "single",
36024
+ optional: false
36025
+ }],
36026
+ "intercom.stopSession": [{
36027
+ name: "deviceId",
36028
+ form: "single",
36029
+ optional: false
36030
+ }],
36031
+ "lawnMowerControl.dock": [{
36032
+ name: "deviceId",
36033
+ form: "single",
36034
+ optional: false
36035
+ }],
36036
+ "lawnMowerControl.pause": [{
36037
+ name: "deviceId",
36038
+ form: "single",
36039
+ optional: false
36040
+ }],
36041
+ "lawnMowerControl.startMowing": [{
36042
+ name: "deviceId",
36043
+ form: "single",
36044
+ optional: false
36045
+ }],
36046
+ "lockControl.lock": [{
36047
+ name: "deviceId",
36048
+ form: "single",
36049
+ optional: false
36050
+ }],
36051
+ "lockControl.open": [{
36052
+ name: "deviceId",
36053
+ form: "single",
36054
+ optional: false
36055
+ }],
36056
+ "lockControl.unlock": [{
36057
+ name: "deviceId",
36058
+ form: "single",
36059
+ optional: false
36060
+ }],
36061
+ "mediaPlayer.next": [{
36062
+ name: "deviceId",
36063
+ form: "single",
36064
+ optional: false
36065
+ }],
36066
+ "mediaPlayer.pause": [{
36067
+ name: "deviceId",
36068
+ form: "single",
36069
+ optional: false
36070
+ }],
36071
+ "mediaPlayer.play": [{
36072
+ name: "deviceId",
36073
+ form: "single",
36074
+ optional: false
36075
+ }],
36076
+ "mediaPlayer.playMedia": [{
36077
+ name: "deviceId",
36078
+ form: "single",
36079
+ optional: false
36080
+ }],
36081
+ "mediaPlayer.previous": [{
36082
+ name: "deviceId",
36083
+ form: "single",
36084
+ optional: false
36085
+ }],
36086
+ "mediaPlayer.seek": [{
36087
+ name: "deviceId",
36088
+ form: "single",
36089
+ optional: false
36090
+ }],
36091
+ "mediaPlayer.selectSource": [{
36092
+ name: "deviceId",
36093
+ form: "single",
36094
+ optional: false
36095
+ }],
36096
+ "mediaPlayer.setMute": [{
36097
+ name: "deviceId",
36098
+ form: "single",
36099
+ optional: false
36100
+ }],
36101
+ "mediaPlayer.setRepeat": [{
36102
+ name: "deviceId",
36103
+ form: "single",
36104
+ optional: false
36105
+ }],
36106
+ "mediaPlayer.setShuffle": [{
36107
+ name: "deviceId",
36108
+ form: "single",
36109
+ optional: false
36110
+ }],
36111
+ "mediaPlayer.setVolume": [{
36112
+ name: "deviceId",
36113
+ form: "single",
36114
+ optional: false
36115
+ }],
36116
+ "mediaPlayer.stop": [{
36117
+ name: "deviceId",
36118
+ form: "single",
36119
+ optional: false
36120
+ }],
36121
+ "motion.isDetected": [{
36122
+ name: "deviceId",
36123
+ form: "single",
36124
+ optional: false
36125
+ }],
36126
+ "motionDetection.analyze": [{
36127
+ name: "deviceId",
36128
+ form: "single",
36129
+ optional: false
36130
+ }],
36131
+ "motionDetection.removeCamera": [{
36132
+ name: "deviceId",
36133
+ form: "single",
36134
+ optional: false
36135
+ }],
36136
+ "motionTrigger.setMotionTrigger": [{
36137
+ name: "deviceId",
36138
+ form: "single",
36139
+ optional: false
36140
+ }],
36141
+ "motionZones.getOptions": [{
36142
+ name: "deviceId",
36143
+ form: "single",
36144
+ optional: false
36145
+ }],
36146
+ "motionZones.setZone": [{
36147
+ name: "deviceId",
36148
+ form: "single",
36149
+ optional: false
36150
+ }],
36151
+ "nativeObjectDetection.setEnabled": [{
36152
+ name: "deviceId",
36153
+ form: "single",
36154
+ optional: false
36155
+ }],
36156
+ "networkQuality.getDeviceStats": [{
36157
+ name: "deviceId",
36158
+ form: "single",
36159
+ optional: false
36160
+ }],
36161
+ "networkQuality.reportClientStats": [{
36162
+ name: "deviceId",
36163
+ form: "single",
36164
+ optional: false
36165
+ }],
36166
+ "notificationRules.setDeviceMuted": [{
36167
+ name: "deviceId",
36168
+ form: "single",
36169
+ optional: false
36170
+ }],
36171
+ "notifier.cancel": [{
36172
+ name: "deviceId",
36173
+ form: "single",
36174
+ optional: false
36175
+ }],
36176
+ "notifier.send": [{
36177
+ name: "deviceId",
36178
+ form: "single",
36179
+ optional: false
36180
+ }],
36181
+ "osd.setOverlay": [{
36182
+ name: "deviceId",
36183
+ form: "single",
36184
+ optional: false
36185
+ }],
36186
+ "osdManager.clearSlotBinding": [{
36187
+ name: "deviceId",
36188
+ form: "single",
36189
+ optional: false
36190
+ }],
36191
+ "osdManager.copyDeviceConfiguration": [{
36192
+ name: "sourceDeviceId",
36193
+ form: "single",
36194
+ optional: false
36195
+ }, {
36196
+ name: "targetDeviceId",
36197
+ form: "single",
36198
+ optional: false
36199
+ }],
36200
+ "osdManager.getDeviceOsd": [{
36201
+ name: "deviceId",
36202
+ form: "single",
36203
+ optional: false
36204
+ }],
36205
+ "osdManager.getSourceCatalog": [{
36206
+ name: "deviceId",
36207
+ form: "single",
36208
+ optional: false
36209
+ }],
36210
+ "osdManager.previewSlot": [{
36211
+ name: "deviceId",
36212
+ form: "single",
36213
+ optional: false
36214
+ }],
36215
+ "osdManager.renderDevice": [{
36216
+ name: "deviceId",
36217
+ form: "single",
36218
+ optional: false
36219
+ }],
36220
+ "osdManager.setSlotBinding": [{
36221
+ name: "deviceId",
36222
+ form: "single",
36223
+ optional: false
36224
+ }],
36225
+ "petFeeder.callPet": [{
36226
+ name: "deviceId",
36227
+ form: "single",
36228
+ optional: false
36229
+ }],
36230
+ "petFeeder.cancelFeed": [{
36231
+ name: "deviceId",
36232
+ form: "single",
36233
+ optional: false
36234
+ }],
36235
+ "petFeeder.feed": [{
36236
+ name: "deviceId",
36237
+ form: "single",
36238
+ optional: false
36239
+ }],
36240
+ "petFeeder.markFoodReplenished": [{
36241
+ name: "deviceId",
36242
+ form: "single",
36243
+ optional: false
36244
+ }],
36245
+ "petFeeder.playSound": [{
36246
+ name: "deviceId",
36247
+ form: "single",
36248
+ optional: false
36249
+ }],
36250
+ "petFeeder.resetDesiccant": [{
36251
+ name: "deviceId",
36252
+ form: "single",
36253
+ optional: false
36254
+ }],
36255
+ "petFeeder.setChildLock": [{
36256
+ name: "deviceId",
36257
+ form: "single",
36258
+ optional: false
36259
+ }],
36260
+ "petFeeder.setFeedSound": [{
36261
+ name: "deviceId",
36262
+ form: "single",
36263
+ optional: false
36264
+ }],
36265
+ "petFeeder.setIndicatorLight": [{
36266
+ name: "deviceId",
36267
+ form: "single",
36268
+ optional: false
36269
+ }],
36270
+ "petFeeder.setVolume": [{
36271
+ name: "deviceId",
36272
+ form: "single",
36273
+ optional: false
36274
+ }],
36275
+ "pipelineAnalytics.clearTracks": [{
36276
+ name: "deviceId",
36277
+ form: "single",
36278
+ optional: false
36279
+ }],
36280
+ "pipelineAnalytics.completeRetrainTrack": [{
36281
+ name: "deviceId",
36282
+ form: "single",
36283
+ optional: false
36284
+ }],
36285
+ "pipelineAnalytics.deleteDeviceEvents": [{
36286
+ name: "deviceId",
36287
+ form: "single",
36288
+ optional: false
36289
+ }],
36290
+ "pipelineAnalytics.deleteTracks": [{
36291
+ name: "deviceId",
36292
+ form: "single",
36293
+ optional: false
36294
+ }],
36295
+ "pipelineAnalytics.deselectRetrainFrame": [{
36296
+ name: "deviceId",
36297
+ form: "single",
36298
+ optional: false
36299
+ }],
36300
+ "pipelineAnalytics.getActiveTracks": [{
36301
+ name: "deviceId",
36302
+ form: "single",
36303
+ optional: false
36304
+ }],
36305
+ "pipelineAnalytics.getAudioEvents": [{
36306
+ name: "deviceId",
36307
+ form: "single",
36308
+ optional: false
36309
+ }],
36310
+ "pipelineAnalytics.getEventDensity": [{
36311
+ name: "deviceId",
36312
+ form: "single",
36313
+ optional: false
36314
+ }],
36315
+ "pipelineAnalytics.getEventMedia": [{
36316
+ name: "deviceId",
36317
+ form: "single",
36318
+ optional: false
36319
+ }],
36320
+ "pipelineAnalytics.getKeyEvents": [{
36321
+ name: "deviceId",
36322
+ form: "single",
36323
+ optional: false
36324
+ }],
36325
+ "pipelineAnalytics.getMotionEvents": [{
36326
+ name: "deviceId",
36327
+ form: "single",
36328
+ optional: false
36329
+ }],
36330
+ "pipelineAnalytics.getObjectEvents": [{
36331
+ name: "deviceId",
36332
+ form: "single",
36333
+ optional: false
36334
+ }],
36335
+ "pipelineAnalytics.getRetrainExportUrl": [{
36336
+ name: "deviceIds",
36337
+ form: "array",
36338
+ optional: true
36339
+ }],
36340
+ "pipelineAnalytics.getSensorEvents": [{
36341
+ name: "deviceId",
36342
+ form: "single",
36343
+ optional: false
36344
+ }],
36345
+ "pipelineAnalytics.getTrack": [{
36346
+ name: "deviceId",
36347
+ form: "single",
36348
+ optional: false
36349
+ }],
36350
+ "pipelineAnalytics.getTrackMedia": [{
36351
+ name: "deviceId",
36352
+ form: "single",
36353
+ optional: false
36354
+ }],
36355
+ "pipelineAnalytics.getTrainingExportSummary": [{
36356
+ name: "deviceIds",
36357
+ form: "array",
36358
+ optional: true
36359
+ }],
36360
+ "pipelineAnalytics.getTrainingExportUrl": [{
36361
+ name: "deviceIds",
36362
+ form: "array",
36363
+ optional: true
36364
+ }],
36365
+ "pipelineAnalytics.listEventKinds": [{
36366
+ name: "deviceId",
36367
+ form: "single",
36368
+ optional: false
36369
+ }],
36370
+ "pipelineAnalytics.listEventKindsBatch": [{
36371
+ name: "deviceIds",
36372
+ form: "array",
36373
+ optional: false
36374
+ }],
36375
+ "pipelineAnalytics.listOpsLog": [{
36376
+ name: "deviceId",
36377
+ form: "single",
36378
+ optional: true
36379
+ }],
36380
+ "pipelineAnalytics.listRecentTracks": [{
36381
+ name: "deviceIds",
36382
+ form: "array",
36383
+ optional: false
36384
+ }],
36385
+ "pipelineAnalytics.listRetrainStaging": [{
36386
+ name: "deviceIds",
36387
+ form: "array",
36388
+ optional: true
36389
+ }],
36390
+ "pipelineAnalytics.listTrackMedia": [{
36391
+ name: "deviceId",
36392
+ form: "single",
36393
+ optional: false
36394
+ }],
36395
+ "pipelineAnalytics.listTracks": [{
36396
+ name: "deviceId",
36397
+ form: "single",
36398
+ optional: false
36399
+ }],
36400
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36401
+ name: "deviceId",
36402
+ form: "single",
36403
+ optional: false
36404
+ }],
36405
+ "pipelineAnalytics.pruneEventsBefore": [{
36406
+ name: "deviceId",
36407
+ form: "single",
36408
+ optional: false
36409
+ }],
36410
+ "pipelineAnalytics.pruneTracksBefore": [{
36411
+ name: "deviceId",
36412
+ form: "single",
36413
+ optional: false
36414
+ }],
36415
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36416
+ name: "deviceId",
36417
+ form: "single",
36418
+ optional: true
36419
+ }],
36420
+ "pipelineAnalytics.restageRetrainTrack": [{
36421
+ name: "deviceId",
36422
+ form: "single",
36423
+ optional: false
36424
+ }],
36425
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36426
+ name: "deviceId",
36427
+ form: "single",
36428
+ optional: false
36429
+ }],
36430
+ "pipelineAnalytics.searchObjectEvents": [{
36431
+ name: "deviceId",
36432
+ form: "single",
36433
+ optional: true
36434
+ }],
36435
+ "pipelineAnalytics.selectRetrainFrames": [{
36436
+ name: "deviceId",
36437
+ form: "single",
36438
+ optional: false
36439
+ }],
36440
+ "pipelineAnalytics.setTrackFlags": [{
36441
+ name: "deviceId",
36442
+ form: "single",
36443
+ optional: false
36444
+ }],
36445
+ "pipelineAnalytics.wipeAllAnalytics": [{
36446
+ name: "deviceId",
36447
+ form: "single",
36448
+ optional: false
36449
+ }],
36450
+ "pipelineExecutor.runPipeline": [{
36451
+ name: "deviceId",
36452
+ form: "single",
36453
+ optional: true
36454
+ }],
36455
+ "pipelineExecutor.runPipelineBatch": [{
36456
+ name: "deviceId",
36457
+ form: "single",
36458
+ optional: true
36459
+ }],
36460
+ "pipelineOrchestrator.assignAudio": [{
36461
+ name: "deviceId",
36462
+ form: "single",
36463
+ optional: false
36464
+ }],
36465
+ "pipelineOrchestrator.assignPipeline": [{
36466
+ name: "deviceId",
36467
+ form: "single",
36468
+ optional: false
36469
+ }],
36470
+ "pipelineOrchestrator.getAudioAssignment": [{
36471
+ name: "deviceId",
36472
+ form: "single",
36473
+ optional: false
36474
+ }],
36475
+ "pipelineOrchestrator.getCameraMetrics": [{
36476
+ name: "deviceId",
36477
+ form: "single",
36478
+ optional: false
36479
+ }],
36480
+ "pipelineOrchestrator.getCameraSettings": [{
36481
+ name: "deviceId",
36482
+ form: "single",
36483
+ optional: false
36484
+ }],
36485
+ "pipelineOrchestrator.getCameraStatus": [{
36486
+ name: "deviceId",
36487
+ form: "single",
36488
+ optional: false
36489
+ }],
36490
+ "pipelineOrchestrator.getCameraStatuses": [{
36491
+ name: "deviceIds",
36492
+ form: "array",
36493
+ optional: true
36494
+ }],
36495
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36496
+ name: "deviceId",
36497
+ form: "single",
36498
+ optional: false
36499
+ }],
36500
+ "pipelineOrchestrator.getCameraSwitches": [{
36501
+ name: "deviceId",
36502
+ form: "single",
36503
+ optional: false
36504
+ }],
36505
+ "pipelineOrchestrator.getPipelineAssignment": [{
36506
+ name: "deviceId",
36507
+ form: "single",
36508
+ optional: false
36509
+ }],
36510
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36511
+ name: "deviceId",
36512
+ form: "single",
36513
+ optional: false
36514
+ }],
36515
+ "pipelineOrchestrator.resolvePipeline": [{
36516
+ name: "deviceId",
36517
+ form: "single",
36518
+ optional: false
36519
+ }],
36520
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36521
+ name: "deviceId",
36522
+ form: "single",
36523
+ optional: false
36524
+ }],
36525
+ "pipelineOrchestrator.setCameraStepOverride": [{
36526
+ name: "deviceId",
36527
+ form: "single",
36528
+ optional: false
36529
+ }],
36530
+ "pipelineOrchestrator.setCameraStepToggle": [{
36531
+ name: "deviceId",
36532
+ form: "single",
36533
+ optional: false
36534
+ }],
36535
+ "pipelineOrchestrator.setCameraSwitch": [{
36536
+ name: "deviceId",
36537
+ form: "single",
36538
+ optional: false
36539
+ }],
36540
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36541
+ name: "deviceId",
36542
+ form: "single",
36543
+ optional: false
36544
+ }],
36545
+ "pipelineOrchestrator.unassignAudio": [{
36546
+ name: "deviceId",
36547
+ form: "single",
36548
+ optional: false
36549
+ }],
36550
+ "pipelineOrchestrator.unassignPipeline": [{
36551
+ name: "deviceId",
36552
+ form: "single",
36553
+ optional: false
36554
+ }],
36555
+ "pipelineRunner.attachCamera": [{
36556
+ name: "deviceId",
36557
+ form: "single",
36558
+ optional: false
36559
+ }],
36560
+ "pipelineRunner.detachCamera": [{
36561
+ name: "deviceId",
36562
+ form: "single",
36563
+ optional: false
36564
+ }],
36565
+ "pipelineRunner.getCameraMetrics": [{
36566
+ name: "deviceId",
36567
+ form: "single",
36568
+ optional: false
36569
+ }],
36570
+ "pipelineRunner.reportMotion": [{
36571
+ name: "deviceId",
36572
+ form: "single",
36573
+ optional: false
36574
+ }],
36575
+ "pipelineRunner.runDetailSubtree": [{
36576
+ name: "deviceId",
36577
+ form: "single",
36578
+ optional: false
36579
+ }],
36580
+ "pipelineRunner.runStatelessStep": [{
36581
+ name: "sourceDeviceId",
36582
+ form: "single",
36583
+ optional: false
36584
+ }],
36585
+ "plateGallery.getPlateByTrack": [{
36586
+ name: "deviceId",
36587
+ form: "single",
36588
+ optional: false
36589
+ }],
36590
+ "plateGallery.listPlates": [{
36591
+ name: "deviceId",
36592
+ form: "single",
36593
+ optional: true
36594
+ }],
36595
+ "privacyMask.getOptions": [{
36596
+ name: "deviceId",
36597
+ form: "single",
36598
+ optional: false
36599
+ }],
36600
+ "privacyMask.setAudioEnabled": [{
36601
+ name: "deviceId",
36602
+ form: "single",
36603
+ optional: false
36604
+ }],
36605
+ "privacyMask.setMask": [{
36606
+ name: "deviceId",
36607
+ form: "single",
36608
+ optional: false
36609
+ }],
36610
+ "ptz.continuousMove": [{
36611
+ name: "deviceId",
36612
+ form: "single",
36613
+ optional: false
36614
+ }],
36615
+ "ptz.deletePreset": [{
36616
+ name: "deviceId",
36617
+ form: "single",
36618
+ optional: false
36619
+ }],
36620
+ "ptz.getOptions": [{
36621
+ name: "deviceId",
36622
+ form: "single",
36623
+ optional: false
36624
+ }],
36625
+ "ptz.getPosition": [{
36626
+ name: "deviceId",
36627
+ form: "single",
36628
+ optional: false
36629
+ }],
36630
+ "ptz.getPresets": [{
36631
+ name: "deviceId",
36632
+ form: "single",
36633
+ optional: false
36634
+ }],
36635
+ "ptz.goHome": [{
36636
+ name: "deviceId",
36637
+ form: "single",
36638
+ optional: false
36639
+ }],
36640
+ "ptz.goToPreset": [{
36641
+ name: "deviceId",
36642
+ form: "single",
36643
+ optional: false
36644
+ }],
36645
+ "ptz.move": [{
36646
+ name: "deviceId",
36647
+ form: "single",
36648
+ optional: false
36649
+ }],
36650
+ "ptz.savePreset": [{
36651
+ name: "deviceId",
36652
+ form: "single",
36653
+ optional: false
36654
+ }],
36655
+ "ptz.setAutofocus": [{
36656
+ name: "deviceId",
36657
+ form: "single",
36658
+ optional: false
36659
+ }],
36660
+ "ptz.stop": [{
36661
+ name: "deviceId",
36662
+ form: "single",
36663
+ optional: false
36664
+ }],
36665
+ "ptzAutotrack.getSettings": [{
36666
+ name: "deviceId",
36667
+ form: "single",
36668
+ optional: false
36669
+ }],
36670
+ "ptzAutotrack.getStatus": [{
36671
+ name: "deviceId",
36672
+ form: "single",
36673
+ optional: false
36674
+ }],
36675
+ "ptzAutotrack.setEnabled": [{
36676
+ name: "deviceId",
36677
+ form: "single",
36678
+ optional: false
36679
+ }],
36680
+ "ptzAutotrack.setSettings": [{
36681
+ name: "deviceId",
36682
+ form: "single",
36683
+ optional: false
36684
+ }],
36685
+ "reboot.reboot": [{
36686
+ name: "deviceId",
36687
+ form: "single",
36688
+ optional: false
36689
+ }],
36690
+ "recording.deleteFootprint": [{
36691
+ name: "deviceId",
36692
+ form: "single",
36693
+ optional: false
36694
+ }],
36695
+ "recording.getAvailability": [{
36696
+ name: "deviceId",
36697
+ form: "single",
36698
+ optional: false
36699
+ }],
36700
+ "recording.getDaysWithRecordings": [{
36701
+ name: "deviceId",
36702
+ form: "single",
36703
+ optional: false
36704
+ }],
36705
+ "recording.getDeviceConfig": [{
36706
+ name: "deviceId",
36707
+ form: "single",
36708
+ optional: false
36709
+ }],
36710
+ "recording.getPlaybackManifest": [{
36711
+ name: "deviceId",
36712
+ form: "single",
36713
+ optional: false
36714
+ }],
36715
+ "recording.listOpsLog": [{
36716
+ name: "deviceId",
36717
+ form: "single",
36718
+ optional: true
36719
+ }],
36720
+ "recording.locateSegment": [{
36721
+ name: "deviceId",
36722
+ form: "single",
36723
+ optional: false
36724
+ }],
36725
+ "recording.pruneFootage": [{
36726
+ name: "deviceId",
36727
+ form: "single",
36728
+ optional: false
36729
+ }],
36730
+ "recording.readGopBytes": [{
36731
+ name: "deviceId",
36732
+ form: "single",
36733
+ optional: false
36734
+ }],
36735
+ "recording.readSegmentBytes": [{
36736
+ name: "deviceId",
36737
+ form: "single",
36738
+ optional: false
36739
+ }],
36740
+ "recording.relocateFootage": [{
36741
+ name: "deviceId",
36742
+ form: "single",
36743
+ optional: true
36744
+ }],
36745
+ "recording.renderClip": [{
36746
+ name: "deviceId",
36747
+ form: "single",
36748
+ optional: false
36749
+ }],
36750
+ "recording.renderGif": [{
36751
+ name: "deviceId",
36752
+ form: "single",
36753
+ optional: false
36754
+ }],
36755
+ "recording.rescanStorage": [{
36756
+ name: "deviceId",
36757
+ form: "single",
36758
+ optional: false
36759
+ }],
36760
+ "recording.setDeviceConfig": [{
36761
+ name: "deviceId",
36762
+ form: "single",
36763
+ optional: false
36764
+ }],
36765
+ "recording.startStorageMigrationMove": [{
36766
+ name: "deviceId",
36767
+ form: "single",
36768
+ optional: true
36769
+ }],
36770
+ "recordingExport.createExport": [{
36771
+ name: "deviceId",
36772
+ form: "single",
36773
+ optional: false
36774
+ }],
36775
+ "recordingExport.listExports": [{
36776
+ name: "deviceId",
36777
+ form: "single",
36778
+ optional: true
36779
+ }],
36780
+ "sceneMonitor.captureReference": [{
36781
+ name: "deviceId",
36782
+ form: "single",
36783
+ optional: false
36784
+ }],
36785
+ "sceneMonitor.createScene": [{
36786
+ name: "deviceId",
36787
+ form: "single",
36788
+ optional: false
36789
+ }],
36790
+ "sceneMonitor.deleteReference": [{
36791
+ name: "deviceId",
36792
+ form: "single",
36793
+ optional: false
36794
+ }],
36795
+ "sceneMonitor.deleteScene": [{
36796
+ name: "deviceId",
36797
+ form: "single",
36798
+ optional: false
36799
+ }],
36800
+ "sceneMonitor.listScenes": [{
36801
+ name: "deviceId",
36802
+ form: "single",
36803
+ optional: false
36804
+ }],
36805
+ "sceneMonitor.recheckNow": [{
36806
+ name: "deviceId",
36807
+ form: "single",
36808
+ optional: false
36809
+ }],
36810
+ "sceneMonitor.resetScene": [{
36811
+ name: "deviceId",
36812
+ form: "single",
36813
+ optional: false
36814
+ }],
36815
+ "sceneMonitor.updateScene": [{
36816
+ name: "deviceId",
36817
+ form: "single",
36818
+ optional: false
36819
+ }],
36820
+ "scriptRunner.run": [{
36821
+ name: "deviceId",
36822
+ form: "single",
36823
+ optional: false
36824
+ }],
36825
+ "scriptRunner.stop": [{
36826
+ name: "deviceId",
36827
+ form: "single",
36828
+ optional: false
36829
+ }],
36830
+ "snapshot.getDebugState": [{
36831
+ name: "deviceId",
36832
+ form: "single",
36833
+ optional: false
36834
+ }],
36835
+ "snapshot.getSnapshot": [{
36836
+ name: "deviceId",
36837
+ form: "single",
36838
+ optional: false
36839
+ }],
36840
+ "snapshot.getSnapshotLinks": [{
36841
+ name: "targets",
36842
+ form: "object-array",
36843
+ optional: false,
36844
+ itemField: "deviceId"
36845
+ }],
36846
+ "snapshot.getSnapshotOverview": [{
36847
+ name: "deviceIds",
36848
+ form: "array",
36849
+ optional: false
36850
+ }],
36851
+ "snapshot.invalidateCache": [{
36852
+ name: "deviceId",
36853
+ form: "single",
36854
+ optional: false
36855
+ }],
36856
+ "streamBroker.acquireEgressTranscode": [{
36857
+ name: "deviceId",
36858
+ form: "single",
36859
+ optional: false
36860
+ }],
36861
+ "streamBroker.assignProfile": [{
36862
+ name: "deviceId",
36863
+ form: "single",
36864
+ optional: false
36865
+ }],
36866
+ "streamBroker.getDeviceAudioMute": [{
36867
+ name: "deviceId",
36868
+ form: "single",
36869
+ optional: false
36870
+ }],
36871
+ "streamBroker.getStreamWithCodec": [{
36872
+ name: "deviceId",
36873
+ form: "single",
36874
+ optional: false
36875
+ }],
36876
+ "streamBroker.produceEventMedia": [{
36877
+ name: "deviceId",
36878
+ form: "single",
36879
+ optional: false
36880
+ }],
36881
+ "streamBroker.publishCameraStream": [{
36882
+ name: "deviceId",
36883
+ form: "single",
36884
+ optional: false
36885
+ }],
36886
+ "streamBroker.renderPreBufferClip": [{
36887
+ name: "deviceId",
36888
+ form: "single",
36889
+ optional: false
36890
+ }],
36891
+ "streamBroker.restartProfile": [{
36892
+ name: "deviceId",
36893
+ form: "single",
36894
+ optional: false
36895
+ }],
36896
+ "streamBroker.retractCameraStream": [{
36897
+ name: "deviceId",
36898
+ form: "single",
36899
+ optional: false
36900
+ }],
36901
+ "streamBroker.setDeviceAudioMute": [{
36902
+ name: "deviceId",
36903
+ form: "single",
36904
+ optional: false
36905
+ }],
36906
+ "streamBroker.unassignProfile": [{
36907
+ name: "deviceId",
36908
+ form: "single",
36909
+ optional: false
36910
+ }],
36911
+ "streamCatalog.getCatalog": [{
36912
+ name: "deviceId",
36913
+ form: "single",
36914
+ optional: false
36915
+ }],
36916
+ "streamParams.getConfigSchema": [{
36917
+ name: "deviceId",
36918
+ form: "single",
36919
+ optional: false
36920
+ }],
36921
+ "streamParams.getOptions": [{
36922
+ name: "deviceId",
36923
+ form: "single",
36924
+ optional: false
36925
+ }],
36926
+ "streamParams.setProfile": [{
36927
+ name: "deviceId",
36928
+ form: "single",
36929
+ optional: false
36930
+ }],
36931
+ "switch.setState": [{
36932
+ name: "deviceId",
36933
+ form: "single",
36934
+ optional: false
36935
+ }],
36936
+ "vacuumControl.locate": [{
36937
+ name: "deviceId",
36938
+ form: "single",
36939
+ optional: false
36940
+ }],
36941
+ "vacuumControl.pause": [{
36942
+ name: "deviceId",
36943
+ form: "single",
36944
+ optional: false
36945
+ }],
36946
+ "vacuumControl.returnToBase": [{
36947
+ name: "deviceId",
36948
+ form: "single",
36949
+ optional: false
36950
+ }],
36951
+ "vacuumControl.setFanSpeed": [{
36952
+ name: "deviceId",
36953
+ form: "single",
36954
+ optional: false
36955
+ }],
36956
+ "vacuumControl.start": [{
36957
+ name: "deviceId",
36958
+ form: "single",
36959
+ optional: false
36960
+ }],
36961
+ "vacuumControl.stop": [{
36962
+ name: "deviceId",
36963
+ form: "single",
36964
+ optional: false
36965
+ }],
36966
+ "valve.close": [{
36967
+ name: "deviceId",
36968
+ form: "single",
36969
+ optional: false
36970
+ }],
36971
+ "valve.open": [{
36972
+ name: "deviceId",
36973
+ form: "single",
36974
+ optional: false
36975
+ }],
36976
+ "valve.setPosition": [{
36977
+ name: "deviceId",
36978
+ form: "single",
36979
+ optional: false
36980
+ }],
36981
+ "valve.stop": [{
36982
+ name: "deviceId",
36983
+ form: "single",
36984
+ optional: false
36985
+ }],
36986
+ "videoclips.getClipPlayback": [{
36987
+ name: "deviceId",
36988
+ form: "single",
36989
+ optional: false
36990
+ }],
36991
+ "videoclips.listClips": [{
36992
+ name: "deviceId",
36993
+ form: "single",
36994
+ optional: false
36995
+ }],
36996
+ "waterHeater.setAway": [{
36997
+ name: "deviceId",
36998
+ form: "single",
36999
+ optional: false
37000
+ }],
37001
+ "waterHeater.setOperationMode": [{
37002
+ name: "deviceId",
37003
+ form: "single",
37004
+ optional: false
37005
+ }],
37006
+ "waterHeater.setTargetTemp": [{
37007
+ name: "deviceId",
37008
+ form: "single",
37009
+ optional: false
37010
+ }],
37011
+ "webrtcSession.addIceCandidate": [{
37012
+ name: "deviceId",
37013
+ form: "single",
37014
+ optional: false
37015
+ }],
37016
+ "webrtcSession.closeSession": [{
37017
+ name: "deviceId",
37018
+ form: "single",
37019
+ optional: false
37020
+ }],
37021
+ "webrtcSession.createSession": [{
37022
+ name: "deviceId",
37023
+ form: "single",
37024
+ optional: false
37025
+ }],
37026
+ "webrtcSession.getIceCandidates": [{
37027
+ name: "deviceId",
37028
+ form: "single",
37029
+ optional: false
37030
+ }],
37031
+ "webrtcSession.getSessionState": [{
37032
+ name: "deviceId",
37033
+ form: "single",
37034
+ optional: false
37035
+ }],
37036
+ "webrtcSession.handleAnswer": [{
37037
+ name: "deviceId",
37038
+ form: "single",
37039
+ optional: false
37040
+ }],
37041
+ "webrtcSession.handleOffer": [{
37042
+ name: "deviceId",
37043
+ form: "single",
37044
+ optional: false
37045
+ }],
37046
+ "webrtcSession.hasAdaptiveBitrate": [{
37047
+ name: "deviceId",
37048
+ form: "single",
37049
+ optional: false
37050
+ }],
37051
+ "webrtcSession.listStreams": [{
37052
+ name: "deviceId",
37053
+ form: "single",
37054
+ optional: false
37055
+ }],
37056
+ "zoneAnalytics.getCameraHistory": [{
37057
+ name: "deviceId",
37058
+ form: "single",
37059
+ optional: false
37060
+ }],
37061
+ "zoneAnalytics.getCurrentSnapshot": [{
37062
+ name: "deviceId",
37063
+ form: "single",
37064
+ optional: false
37065
+ }],
37066
+ "zoneAnalytics.getUnzonedHistory": [{
37067
+ name: "deviceId",
37068
+ form: "single",
37069
+ optional: false
37070
+ }],
37071
+ "zoneAnalytics.getZoneHistory": [{
37072
+ name: "deviceId",
37073
+ form: "single",
37074
+ optional: false
37075
+ }],
37076
+ "zoneRules.listRules": [{
37077
+ name: "deviceId",
37078
+ form: "single",
37079
+ optional: false
37080
+ }],
37081
+ "zoneRules.setRules": [{
37082
+ name: "deviceId",
37083
+ form: "single",
37084
+ optional: false
37085
+ }],
37086
+ "zones.addZone": [{
37087
+ name: "deviceId",
37088
+ form: "single",
37089
+ optional: false
37090
+ }],
37091
+ "zones.listZones": [{
37092
+ name: "deviceId",
37093
+ form: "single",
37094
+ optional: false
37095
+ }],
37096
+ "zones.removeZone": [{
37097
+ name: "deviceId",
37098
+ form: "single",
37099
+ optional: false
37100
+ }],
37101
+ "zones.updateZone": [{
37102
+ name: "deviceId",
37103
+ form: "single",
37104
+ optional: false
37105
+ }]
37106
+ });
34357
37107
  Object.freeze({
34358
37108
  "broker": "broker",
34359
37109
  "device-export": "device-export",