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