@camstack/addon-provider-ecowitt 0.2.16 → 0.2.18

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