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