@camstack/addon-provider-amcrest 0.2.18 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2863 -143
  2. package/dist/addon.mjs +2863 -143
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -5,7 +5,7 @@ import { networkInterfaces } from "node:os";
5
5
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
6
6
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
7
7
  //#endregion
8
- //#region ../types/dist/event-category-Cv9dO26A.mjs
8
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
9
9
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
10
10
  EventCategory["SystemBoot"] = "system.boot";
11
11
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -212,6 +212,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
212
212
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
213
213
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
214
214
  /**
215
+ * A node the orchestrator would otherwise place cameras on has NO usable
216
+ * inference device: the operator enabled one or more accelerators there and
217
+ * the live probe reports every one of them unavailable. Emitted once per
218
+ * TRANSITION into that state (never per dispatch), and the node is dropped
219
+ * from the placement candidate set for as long as it holds.
220
+ *
221
+ * This exists because the state was previously invisible: little-unraid
222
+ * absorbed 283k inference errors in a day while still being handed cameras,
223
+ * and nothing in the system said so.
224
+ *
225
+ * A node with no accelerators configured at all is NOT this — its devices
226
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
227
+ * serves it exactly as before.
228
+ */
229
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
230
+ /**
231
+ * A camera has an OPEN detection session and has produced no detection at
232
+ * all for longer than the blind threshold — the camera is being decoded and
233
+ * inferred and is returning nothing. Emitted once per transition into blind,
234
+ * per camera.
235
+ *
236
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
237
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
238
+ * camera" produce byte-identical silence.
239
+ */
240
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
241
+ /**
215
242
  * Per-camera pipeline config was mutated by the orchestrator
216
243
  * (3-level settings change via `setAgentAddonDefaults` /
217
244
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3003,6 +3030,9 @@ function handlePipeResult(left, next, ctx) {
3003
3030
  fallback: left.fallback
3004
3031
  }, ctx);
3005
3032
  }
3033
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3034
+ $ZodPipe.init(inst, def);
3035
+ });
3006
3036
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3007
3037
  $ZodType.init(inst, def);
3008
3038
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5188,6 +5218,10 @@ function pipe(in_, out) {
5188
5218
  out
5189
5219
  });
5190
5220
  }
5221
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5222
+ ZodPipe.init(inst, def);
5223
+ $ZodPreprocess.init(inst, def);
5224
+ });
5191
5225
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5192
5226
  $ZodReadonly.init(inst, def);
5193
5227
  ZodType.init(inst, def);
@@ -5246,6 +5280,13 @@ function _instanceof(cls, params = {}) {
5246
5280
  };
5247
5281
  return inst;
5248
5282
  }
5283
+ function preprocess(fn, schema) {
5284
+ return new ZodPreprocess({
5285
+ type: "pipe",
5286
+ in: transform(fn),
5287
+ out: schema
5288
+ });
5289
+ }
5249
5290
  //#endregion
5250
5291
  //#region ../../node_modules/zod/v4/classic/compat.js
5251
5292
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10870,6 +10911,8 @@ var QueryFilterSchema = object({
10870
10911
  where: record(string(), unknown()).optional(),
10871
10912
  whereIn: record(string(), array(unknown())).optional(),
10872
10913
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10914
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10915
+ whereNot: record(string(), unknown()).optional(),
10873
10916
  orderBy: object({
10874
10917
  field: string(),
10875
10918
  direction: _enum(["asc", "desc"])
@@ -10889,7 +10932,8 @@ var QueryFilterSchema = object({
10889
10932
  var MutationFilterSchema = object({
10890
10933
  where: record(string(), unknown()).optional(),
10891
10934
  whereIn: record(string(), array(unknown())).optional(),
10892
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10935
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10936
+ whereNot: record(string(), unknown()).optional()
10893
10937
  });
10894
10938
  /** A single stored record: `{ id, data }`. */
10895
10939
  var SettingsRecordSchema = object({
@@ -12408,6 +12452,17 @@ var LlmImageSchema = object({
12408
12452
  bytes: _instanceof(Uint8Array),
12409
12453
  mimeType: string()
12410
12454
  });
12455
+ /**
12456
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12457
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12458
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12459
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12460
+ */
12461
+ var LlmRetryPolicySchema = object({
12462
+ enabled: boolean().default(false),
12463
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12464
+ maxAttempts: number().int().min(1).max(5).default(1)
12465
+ });
12411
12466
  var LlmGenerateBaseInputSchema = object({
12412
12467
  /** Collection routing (the notification-output posture). */
12413
12468
  addonId: string().optional(),
@@ -12422,7 +12477,28 @@ var LlmGenerateBaseInputSchema = object({
12422
12477
  jsonSchema: record(string(), unknown()).optional(),
12423
12478
  /** Per-call override of the profile default. */
12424
12479
  maxTokens: number().int().positive().optional(),
12425
- temperature: number().optional()
12480
+ temperature: number().optional(),
12481
+ /** Per-call override of the profile default (nucleus sampling). */
12482
+ topP: number().min(0).max(1).optional(),
12483
+ /** Per-call override of the profile default (top-k sampling). */
12484
+ topK: number().int().positive().optional(),
12485
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12486
+ timeoutMs: number().int().positive().optional(),
12487
+ /** Per-call override; beats both the consumer table and the profile. */
12488
+ retry: LlmRetryPolicySchema.optional(),
12489
+ /**
12490
+ * Caller-minted id that makes this generation CANCELLABLE.
12491
+ *
12492
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12493
+ * the call against 8 s and free their own slot when the timer wins, while the
12494
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12495
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12496
+ * not generations, and the real load is unbounded.
12497
+ *
12498
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12499
+ * `llm.cancel({ requestId })` tears the socket down.
12500
+ */
12501
+ requestId: string().optional()
12426
12502
  });
12427
12503
  /**
12428
12504
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12435,6 +12511,18 @@ var LlmGenerateBaseInputSchema = object({
12435
12511
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12436
12512
  * watchdog — operator decision #3).
12437
12513
  */
12514
+ /**
12515
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12516
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12517
+ * REF rather than looked up at install time, so what the operator approved in
12518
+ * the preview is exactly what the node downloads.
12519
+ */
12520
+ var ManagedModelExtraFileSchema = object({
12521
+ url: string(),
12522
+ filename: string(),
12523
+ sizeBytes: number(),
12524
+ sha256: string().optional()
12525
+ });
12438
12526
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12439
12527
  object({
12440
12528
  kind: literal("catalog"),
@@ -12443,7 +12531,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12443
12531
  object({
12444
12532
  kind: literal("url"),
12445
12533
  url: string(),
12446
- sha256: string().optional()
12534
+ sha256: string().optional(),
12535
+ /** Picker/status label; the file basename when absent. */
12536
+ label: string().optional(),
12537
+ sizeBytes: number().optional(),
12538
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12447
12539
  }),
12448
12540
  object({
12449
12541
  kind: literal("path"),
@@ -12461,13 +12553,82 @@ var ManagedRuntimeConfigSchema = object({
12461
12553
  gpuLayers: number().int().default(0),
12462
12554
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12463
12555
  threads: number().int().optional(),
12464
- /** Concurrent slots. */
12556
+ /** Concurrent slots (`--parallel`). */
12465
12557
  parallel: number().int().default(1),
12558
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12559
+ batchSize: number().int().positive().optional(),
12560
+ /** Physical batch / micro-batch (`-ub`). */
12561
+ ubatchSize: number().int().positive().optional(),
12562
+ /**
12563
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12564
+ * is a no-op elsewhere, so it is offered rather than assumed.
12565
+ */
12566
+ flashAttention: boolean().default(false),
12567
+ /**
12568
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12569
+ * inference. Costs the full model size in resident memory — which is exactly
12570
+ * what the RAM budget is counting.
12571
+ */
12572
+ mlock: boolean().default(false),
12573
+ /**
12574
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12575
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12576
+ * store produces on every first token.
12577
+ */
12578
+ noMmap: boolean().default(false),
12579
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12580
+ * cheapest way to fit a longer context in the same RAM. */
12581
+ cacheTypeK: _enum([
12582
+ "f32",
12583
+ "f16",
12584
+ "q8_0",
12585
+ "q5_1",
12586
+ "q5_0",
12587
+ "q4_1",
12588
+ "q4_0"
12589
+ ]).optional(),
12590
+ cacheTypeV: _enum([
12591
+ "f32",
12592
+ "f16",
12593
+ "q8_0",
12594
+ "q5_1",
12595
+ "q5_0",
12596
+ "q4_1",
12597
+ "q4_0"
12598
+ ]).optional(),
12599
+ /**
12600
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12601
+ * (which most vision chat templates need and some language-only models
12602
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12603
+ *
12604
+ * It is NOT a second place to set the flags above. A token that collides
12605
+ * with a typed field is REJECTED at start, naming the field that owns it
12606
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12607
+ * the "two switches that disagree" failure this repo has already shipped
12608
+ * twice (D62).
12609
+ */
12610
+ extraArgs: array(string()).default([]),
12466
12611
  /** Else lazy: first generate boots it. */
12467
12612
  autoStart: boolean().default(false),
12468
12613
  /** 0 = never; frees RAM after quiet periods. */
12469
12614
  idleStopMinutes: number().int().default(30)
12470
12615
  });
12616
+ /**
12617
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12618
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12619
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12620
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12621
+ */
12622
+ var LlmDownloadProgressSchema = object({
12623
+ phase: _enum(["downloading", "verifying"]),
12624
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12625
+ file: string(),
12626
+ fileIndex: number().int(),
12627
+ fileCount: number().int(),
12628
+ /** Across the WHOLE install, not the current file. */
12629
+ downloadedBytes: number(),
12630
+ totalBytes: number().optional()
12631
+ });
12471
12632
  var LlmRuntimeStatusSchema = object({
12472
12633
  /** Status is ALWAYS node-qualified. */
12473
12634
  nodeId: string(),
@@ -12484,6 +12645,8 @@ var LlmRuntimeStatusSchema = object({
12484
12645
  modelPath: string().optional(),
12485
12646
  modelId: string().optional(),
12486
12647
  downloadProgress: number().min(0).max(1).optional(),
12648
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12649
+ download: LlmDownloadProgressSchema.optional(),
12487
12650
  lastError: string().optional(),
12488
12651
  crashesInWindow: number(),
12489
12652
  /** Child RSS (sampled best-effort). */
@@ -12494,7 +12657,14 @@ var LlmNodeModelSchema = object({
12494
12657
  file: string(),
12495
12658
  sizeBytes: number(),
12496
12659
  catalogId: string().optional(),
12497
- installedAt: number().optional()
12660
+ installedAt: number().optional(),
12661
+ /**
12662
+ * Absolute path on the node. Present so a file that is on disk but matches
12663
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12664
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12665
+ * it the picker could list such a file and do nothing with it.
12666
+ */
12667
+ path: string().optional()
12498
12668
  });
12499
12669
  var LlmRuntimeDiskUsageSchema = object({
12500
12670
  nodeId: string(),
@@ -12550,10 +12720,47 @@ var LlmProfileSchema = object({
12550
12720
  baseUrl: string().optional(),
12551
12721
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12552
12722
  apiKey: string().optional(),
12723
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12724
+ * degraded to text — that shipped once and produced a confident answer to a
12725
+ * question about a picture nobody sent. */
12553
12726
  supportsVision: boolean(),
12554
12727
  temperature: number().min(0).max(2).optional(),
12728
+ /** Nucleus sampling. Every wire we speak has it. */
12729
+ topP: number().min(0).max(1).optional(),
12730
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12731
+ * wire does, and the client drops it there (measured: the request body gets
12732
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12733
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12734
+ topK: number().int().positive().optional(),
12555
12735
  maxTokens: number().int().positive().optional(),
12736
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12737
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12738
+ * the model with, so it is the one field that changes a PROCESS. */
12739
+ contextLength: number().int().positive().optional(),
12740
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12741
+ * two system prompts fighting is worse than either alone). */
12742
+ systemPrompt: string().optional(),
12743
+ /** Total generation bound — the only one a unary call has. */
12556
12744
  timeoutMs: number().int().positive().default(6e4),
12745
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12746
+ * response headers: on the LM Studio / llama-server wire those are written
12747
+ * once the model has finished loading, so they belong to the bound below. */
12748
+ connectTimeoutMs: number().int().positive().default(1e4),
12749
+ /** Accepted, but no output yet — response headers included, because a cold
12750
+ * GPU load is exactly what happens before them. */
12751
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12752
+ /** Output started then stopped. */
12753
+ idleTimeoutMs: number().int().positive().default(6e4),
12754
+ /** Profile-level default. The per-consumer table and a per-call override
12755
+ * both beat it — see `resolveRetryPolicy`. */
12756
+ retry: LlmRetryPolicySchema.default({
12757
+ enabled: false,
12758
+ maxAttempts: 1
12759
+ }),
12760
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12761
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12762
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12763
+ toolsEnabled: boolean().default(false),
12557
12764
  extraHeaders: record(string(), string()).optional(),
12558
12765
  /** kind === 'managed-local' only (spec §4). */
12559
12766
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12603,6 +12810,36 @@ var ManagedModelCatalogEntrySchema = object({
12603
12810
  /** Vision models: companion projector file. */
12604
12811
  mmprojUrl: string().optional()
12605
12812
  });
12813
+ /**
12814
+ * The outcome of turning one operator-typed Hugging Face reference into a
12815
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12816
+ * I will not pick for you" is a normal answer the UI has to render, not an
12817
+ * exception.
12818
+ *
12819
+ * `candidates` is the whole reason the refusal is usable — every string in it
12820
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12821
+ */
12822
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12823
+ ok: literal(true),
12824
+ /** Ready to hand to `installModel` unchanged. */
12825
+ model: ManagedModelRefSchema,
12826
+ label: string(),
12827
+ repo: string(),
12828
+ quantization: string(),
12829
+ purpose: _enum(["text", "vision"]),
12830
+ totalBytes: number(),
12831
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12832
+ * see that 0.9 GB of it is a projector they did not name. */
12833
+ extraFilenames: array(string())
12834
+ }), object({
12835
+ ok: literal(false),
12836
+ code: string(),
12837
+ message: string(),
12838
+ candidates: array(string()).optional(),
12839
+ /** Set when the refusal was only the ceiling: re-calling with
12840
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12841
+ requiredBytes: number().optional()
12842
+ })]);
12606
12843
  var LlmRuntimeNodeSchema = object({
12607
12844
  nodeId: string(),
12608
12845
  reachable: boolean(),
@@ -12615,7 +12852,10 @@ var ProfileRefInputSchema = object({
12615
12852
  addonId: string(),
12616
12853
  profileId: string()
12617
12854
  });
12618
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12855
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12856
+ addonId: string().optional(),
12857
+ requestId: string()
12858
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12619
12859
  kind: "mutation",
12620
12860
  auth: "admin"
12621
12861
  }), method(ProfileRefInputSchema, _void(), {
@@ -12636,6 +12876,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12636
12876
  consumer: string().optional(),
12637
12877
  profileId: string().optional()
12638
12878
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12879
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12880
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12881
+ ref: string(),
12882
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12883
+ maxBytes: number().positive().optional()
12884
+ }), HfModelResolutionSchema, {
12885
+ kind: "mutation",
12886
+ auth: "admin"
12887
+ }), method(object({
12639
12888
  nodeId: string(),
12640
12889
  model: ManagedModelRefSchema
12641
12890
  }), _void(), {
@@ -14283,6 +14532,8 @@ var NcSystemEventKindSchema = _enum([
14283
14532
  "stream-offline",
14284
14533
  "node-online",
14285
14534
  "node-offline",
14535
+ "node-inference-unavailable",
14536
+ "detection-blind",
14286
14537
  "addon-update-available",
14287
14538
  "server-update-available",
14288
14539
  "alarm-triggered",
@@ -14344,7 +14595,16 @@ var NcScheduleSchema = object({
14344
14595
  });
14345
14596
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14346
14597
  var NcPlateMatcherSchema = object({
14347
- values: array(string().min(1)).min(1),
14598
+ /**
14599
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14600
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14601
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14602
+ * rather than merely seen. A subject carrying no plate still fails.
14603
+ *
14604
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14605
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14606
+ */
14607
+ values: array(string().min(1)),
14348
14608
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14349
14609
  maxDistance: number().int().min(0).max(3).default(1)
14350
14610
  });
@@ -14378,28 +14638,36 @@ var NcOccupancyConditionSchema = object({
14378
14638
  /**
14379
14639
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14380
14640
  *
14381
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14382
- * reference notifier uses, so an operator moving between them re-uses what
14383
- * they already know): a rule matches when, over a sampling window of
14384
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14385
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14386
- *
14387
- * - `dbThreshold` its level is at or above this many dBFS (see
14388
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14389
- * - `labels` the classifier put at least one of these labels on it.
14390
- *
14391
- * Both are OPTIONAL and independent, which is the point of the shape: a
14392
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14393
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14394
- * is given** a window in which every sample is trivially a hit would fire on
14395
- * silence, so the engine refuses such a condition rather than notifying on
14396
- * nothing (the schema cannot express "at least one of" without becoming a
14397
- * ZodEffects the cap path would have to special-case).
14398
- *
14399
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14400
- * must be FULL before it can match a window that has been open for two
14401
- * seconds of its ten is 100% of nothing, and firing on it would make
14402
- * `samplingSeconds` decorative.
14641
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14642
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14643
+ * there is no second switch that can disagree with the first and every rule
14644
+ * authored before the decision migrates for free (`audioModeOf`):
14645
+ *
14646
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14647
+ * classifier labels with one of them. No window, no percentage:
14648
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14649
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14650
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14651
+ * reaches this condition if the classifier was already confident enough.
14652
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14653
+ * the condition: at least `hitPercent`% of the samples over
14654
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14655
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14656
+ * must be FULL before it can match a window open for two of its ten
14657
+ * seconds is 100% of nothing.
14658
+ *
14659
+ * **Why label mode has no window.** It had one, and it never fired: the
14660
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14661
+ * of them per episode, even through continuous crying. The measured maximum
14662
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14663
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14664
+ * the wrong question to ask of a sparse classifier.
14665
+ *
14666
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14667
+ * and the rule would fire on silence. The schema cannot express "exactly one
14668
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14669
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14670
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14403
14671
  *
14404
14672
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14405
14673
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14407,13 +14675,13 @@ var NcOccupancyConditionSchema = object({
14407
14675
  * an operator who typed `dog` mean the same thing.
14408
14676
  */
14409
14677
  var NcAudioConditionSchema = object({
14410
- /** Audio macro labels; absent = any sound (level-only rule). */
14678
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14411
14679
  labels: array(string().min(1)).min(1).optional(),
14412
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14680
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14413
14681
  dbThreshold: number().min(-96).max(0).optional(),
14414
- /** Percentage of the window's samples that must be hits (1–100). */
14682
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14415
14683
  hitPercent: number().int().min(1).max(100).default(60),
14416
- /** Length of the sampling window in seconds. */
14684
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14417
14685
  samplingSeconds: number().int().min(1).max(300).default(10)
14418
14686
  });
14419
14687
  /**
@@ -14551,13 +14819,81 @@ var NcRuleActionsSchema = object({
14551
14819
  */
14552
14820
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14553
14821
  });
14822
+ /**
14823
+ * "This rule applies only while `deviceId` is in one of `states`."
14824
+ *
14825
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14826
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14827
+ * make the condition lie about devices whose states have no equivalent.
14828
+ *
14829
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14830
+ * condition that fired on "I could not read it" would be worse than no gate.
14831
+ */
14832
+ var NcDeviceStateConditionSchema = object({
14833
+ deviceId: number().int(),
14834
+ /** Any of these matches. */
14835
+ states: array(string().min(1)).min(1)
14836
+ });
14837
+ /**
14838
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14839
+ *
14840
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14841
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14842
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14843
+ * already has a trigger ("tell me about a person at the front door, but only
14844
+ * while the bin is still out"). That is why it composes with every delivery
14845
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14846
+ * kind exist for it — see D159.
14847
+ *
14848
+ * ── Identity ───────────────────────────────────────────────────────────────
14849
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14850
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14851
+ * carried as a HINT for the editor and for the log line, never as part of the
14852
+ * lookup key: a rule whose hint drifted must still gate correctly.
14853
+ *
14854
+ * ── Which boolean ──────────────────────────────────────────────────────────
14855
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14856
+ * already declares which boolean drives notification rules, and a second knob
14857
+ * that could disagree with it is exactly the D62 failure. Set it only to
14858
+ * override one rule against the scene's own default.
14859
+ *
14860
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14861
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14862
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14863
+ * evidence, in either direction.
14864
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14865
+ * The latch is a durable fact about the past ("it has diverged since I armed
14866
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14867
+ * reason the operator asked for a latch.
14868
+ *
14869
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14870
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14871
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14872
+ * said out loud in the log rather than dropped in silence.
14873
+ */
14874
+ var NcSceneConditionSchema = object({
14875
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14876
+ sceneId: string().min(1),
14877
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14878
+ deviceId: number().int().optional(),
14879
+ /** The state the scene must be in for the rule to fire. */
14880
+ requiredState: _enum(["matched", "diverged"]),
14881
+ /**
14882
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14883
+ * scene's own `emit` field, which is the only place that decision belongs.
14884
+ */
14885
+ latched: boolean().optional()
14886
+ });
14554
14887
  var NcConditionsSchema = object({
14555
14888
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14556
- deviceState: object({
14557
- deviceId: number().int(),
14558
- /** Any of these matches. */
14559
- states: array(string().min(1)).min(1)
14560
- }).optional(),
14889
+ deviceState: NcDeviceStateConditionSchema.optional(),
14890
+ /**
14891
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14892
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14893
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14894
+ * {@link NcSceneCondition} and D159.
14895
+ */
14896
+ scene: NcSceneConditionSchema.optional(),
14561
14897
  /** Device scope — absent = all devices. */
14562
14898
  devices: array(number()).optional(),
14563
14899
  /** Detector class names (any overlap with the record's class set). */
@@ -14583,18 +14919,47 @@ var NcConditionsSchema = object({
14583
14919
  */
14584
14920
  labelEquals: array(string().min(1)).optional(),
14585
14921
  /**
14586
- * Identity matcher. P1 boundary: matched against the record's collapsed
14587
- * `label` (the identity display name propagated by the face pipeline) —
14588
- * identity-ID matching rides in P2 when identity ids reach the record.
14922
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14923
+ * is about recognised people at all.
14924
+ *
14925
+ * Three states, and the empty one is the point:
14926
+ *
14927
+ * | value | meaning |
14928
+ * | --- | --- |
14929
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14930
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14931
+ * | a list | only these identities |
14932
+ *
14933
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14934
+ * `devices` list is every device), applied one level down: the operator has
14935
+ * turned the face scope ON and narrowed it to nothing, which is every known
14936
+ * face. No second field states the same thing — a switch that can disagree
14937
+ * with the list under it is worse than no switch (D62).
14938
+ *
14939
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14940
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14941
+ * the operator fixed the spelling. The id reaches the record on
14942
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14943
+ * `{{label}}` renders.
14944
+ *
14945
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14946
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14947
+ * for is left as it stands and reported, never dropped. The engine also
14948
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14949
+ * migration could not resolve keeps matching exactly what it matched before.
14589
14950
  */
14590
14951
  identities: array(string().min(1)).optional(),
14591
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14952
+ /**
14953
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14954
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14955
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14956
+ */
14592
14957
  plates: NcPlateMatcherSchema.optional(),
14593
14958
  /**
14594
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14595
- * Same P1 boundary: matched against the record's collapsed `label` (the
14596
- * identity display name). A record with NO label passes (nothing to
14597
- * exclude), unlike the include variant which fails on an absent label.
14959
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14960
+ * the same id members and the same lazy name→id migration. A record with NO
14961
+ * identity passes (nothing to exclude), unlike the include variant which
14962
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14598
14963
  */
14599
14964
  identitiesExclude: array(string().min(1)).optional(),
14600
14965
  /**
@@ -14986,7 +15351,80 @@ var NcRuleInputSchema = object({
14986
15351
  * a rule that predates the gate must keep delivering byte-for-byte as it
14987
15352
  * did, and absent is the only way to say that without a migration.
14988
15353
  */
14989
- confirm: NcConfirmSchema.optional()
15354
+ confirm: NcConfirmSchema.optional(),
15355
+ /**
15356
+ * WAIT for face/plate recognition before saying anything.
15357
+ *
15358
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15359
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15360
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15361
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15362
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15363
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15364
+ *
15365
+ * Only two honest answers exist, and this flag picks between them. It has
15366
+ * effect ONLY on a rule that declares a recognition scope
15367
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15368
+ * other rule there is nothing to wait for and the flag is inert.
15369
+ *
15370
+ * | value | what happens |
15371
+ * | --- | --- |
15372
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15373
+ * | 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) |
15374
+ *
15375
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15376
+ * on the addon cap path, and absent has to keep meaning exactly what every
15377
+ * rule authored before this field meant.
15378
+ *
15379
+ * The cost of `true` is stated here because the editor states it too: a rule
15380
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15381
+ * tests every zone the track visited and a `crossing` condition can no longer
15382
+ * be satisfied, because a closed track carries no crossing.
15383
+ */
15384
+ waitForEnhancement: boolean().optional(),
15385
+ /**
15386
+ * GROUP a burst of subjects into ONE notification that grows.
15387
+ *
15388
+ * Seconds of quiet after the last matching subject before the burst is
15389
+ * considered over. While it is open, the first subject enqueues immediately —
15390
+ * **exactly as today, with no added latency** — and every real growth (a new
15391
+ * subject, or a name confirmed on one already in it) REPLACES that
15392
+ * notification with an updated one naming everybody. The push carries the
15393
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15394
+ *
15395
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15396
+ *
15397
+ * ### Why an idle cutoff and not a window
15398
+ *
15399
+ * The measured seven-person arrival on device 590 spans 110 s with every
15400
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15401
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15402
+ * 30 is Frigate's shipped value for the same decision.
15403
+ *
15404
+ * ### What it replaces
15405
+ *
15406
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15407
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15408
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15409
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15410
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15411
+ * budget over GROUPS — which is what it always meant — and a growth is never
15412
+ * throttled by the window its own first member spent.
15413
+ *
15414
+ * ### Interaction with {@link waitForEnhancement}
15415
+ *
15416
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15417
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15418
+ * CLOSE — already carrying its name — and grows as later members close. That
15419
+ * is later, and complete. With grouping alone the group opens on the first
15420
+ * object event and picks up names as they are confirmed, through the growth
15421
+ * path. Neither combination fires twice for one subject.
15422
+ *
15423
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15424
+ * on the addon cap path, so absent must keep meaning what it meant before this
15425
+ * field existed.
15426
+ */
15427
+ groupIdleSec: number().int().min(0).max(600).optional()
14990
15428
  });
14991
15429
  /**
14992
15430
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15093,6 +15531,7 @@ var NcConditionDescriptorSchema = object({
15093
15531
  "occupancy",
15094
15532
  "audio",
15095
15533
  "deviceState",
15534
+ "scene",
15096
15535
  "systemEvent"
15097
15536
  ]),
15098
15537
  operator: _enum([
@@ -15498,7 +15937,87 @@ var MethodAccessSchema = _enum([
15498
15937
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15499
15938
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15500
15939
  var CapScopeSchema = _enum(["device", "system"]);
15501
- var TokenScopeSchema = discriminatedUnion("type", [
15940
+ /**
15941
+ * DeviceSelector (scope model v3 — 2026-08-12).
15942
+ *
15943
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15944
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15945
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15946
+ * AFTER the grant was minted — no re-grant, no re-login.
15947
+ *
15948
+ * - `all` — every device in the deployment. The broad viewer/operator
15949
+ * lever without a `category` grant (a `category` grant also covers device
15950
+ * caps that carry no deviceId; `all` is specifically the device set).
15951
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15952
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15953
+ * is NOT covered until the grant is edited.
15954
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15955
+ * DYNAMIC. A device that changes type, or a new device of the type,
15956
+ * re-resolves on the next request.
15957
+ * - `locations` — every device whose operator-assigned `location` label is
15958
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15959
+ * null/unset location matches NO `locations` selector.
15960
+ */
15961
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15962
+ object({ kind: literal("all") }),
15963
+ object({
15964
+ kind: literal("ids"),
15965
+ ids: array(number().int()).min(1)
15966
+ }),
15967
+ object({
15968
+ kind: literal("types"),
15969
+ types: array(_enum(DeviceType)).min(1)
15970
+ }),
15971
+ object({
15972
+ kind: literal("locations"),
15973
+ locations: array(string().min(1)).min(1)
15974
+ })
15975
+ ]);
15976
+ var DeviceTokenScopeSchema = object({
15977
+ type: literal("device"),
15978
+ /** The device SET this grant covers — resolved against the live fleet. */
15979
+ selector: DeviceSelectorSchema,
15980
+ access: array(MethodAccessSchema).min(1),
15981
+ /**
15982
+ * Whether a grant on a PARENT device transparently covers its accessory
15983
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15984
+ * Direction is parent → children ONLY.
15985
+ *
15986
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15987
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15988
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15989
+ * operator must grant on the child, not inherit from the parent). Set it
15990
+ * explicitly to override that default per grant.
15991
+ */
15992
+ includeLinked: boolean().optional()
15993
+ });
15994
+ /**
15995
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15996
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15997
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15998
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15999
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16000
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16001
+ * migration cannot reach a JWT already in a client's hands; parse-time
16002
+ * migration covers both without a flag day. No cast — the raw object is read
16003
+ * through `Reflect.get` (its static type is `unknown`).
16004
+ */
16005
+ function migrateLegacyTokenScope(raw) {
16006
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16007
+ if (Reflect.get(raw, "type") !== "device") return raw;
16008
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16009
+ const targets = Reflect.get(raw, "targets");
16010
+ if (!Array.isArray(targets)) return raw;
16011
+ return {
16012
+ type: "device",
16013
+ selector: {
16014
+ kind: "ids",
16015
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16016
+ },
16017
+ access: Reflect.get(raw, "access")
16018
+ };
16019
+ }
16020
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15502
16021
  object({
15503
16022
  type: literal("category"),
15504
16023
  target: CapScopeSchema,
@@ -15514,18 +16033,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15514
16033
  target: string(),
15515
16034
  access: array(MethodAccessSchema).min(1)
15516
16035
  }),
15517
- object({
15518
- type: literal("device"),
15519
- /**
15520
- * One or more deviceIds (serialised as strings for wire-format
15521
- * consistency with the rest of the union). Matcher accepts if
15522
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15523
- * of one scope-per-device when granting access to a set of cameras.
15524
- */
15525
- targets: array(string()).min(1),
15526
- access: array(MethodAccessSchema).min(1)
15527
- })
15528
- ]);
16036
+ DeviceTokenScopeSchema
16037
+ ]));
15529
16038
  object({
15530
16039
  id: string(),
15531
16040
  username: string(),
@@ -15842,7 +16351,7 @@ var TrackEnvelopeSchema = object({
15842
16351
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15843
16352
  * keeps every scalar the list surfaces actually render (ids, class(es),
15844
16353
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15845
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16354
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15846
16355
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15847
16356
  * `getTrack`. Mirrors the event-store `projection` convention
15848
16357
  * (`getObjectEvents` et al.).
@@ -15978,7 +16487,21 @@ union([literal(1), literal(2)]);
15978
16487
  var LabelAttributionSchema = object({
15979
16488
  stepId: string(),
15980
16489
  modelId: string().optional(),
15981
- decidedAt: number()
16490
+ decidedAt: number(),
16491
+ /**
16492
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16493
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16494
+ *
16495
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16496
+ * notification rule authored on "Gianluca" stopped matching the moment the
16497
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16498
+ * the thing that does not move, so it is what a rule matches on
16499
+ * (`NcConditions.identities`) and the text is what a human is shown.
16500
+ *
16501
+ * Absent when the label names no gallery row — a plate the OCR read but no
16502
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16503
+ */
16504
+ identityId: string().optional()
15982
16505
  });
15983
16506
  /**
15984
16507
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16115,6 +16638,28 @@ var TrackSchema = object({
16115
16638
  * `=== true` and render nothing otherwise, never infer "no face".
16116
16639
  */
16117
16640
  hasFace: boolean().optional(),
16641
+ /**
16642
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16643
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16644
+ * so the passage is tracked once and as a VEHICLE.
16645
+ *
16646
+ * It exists because the fold's record was dishonest. D34 and the code both
16647
+ * said "the person is not lost — it is reported so both entities stay on the
16648
+ * record"; in fact the pair went into a per-processor RAM field behind an
16649
+ * accessor nobody called, and every durable surface said `vehicle`, full
16650
+ * stop. This is the composition note that makes the row true.
16651
+ *
16652
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16653
+ * person" is not an answer to "what is this" — both label tiers would refuse
16654
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16655
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16656
+ * and a `person` rule still does not fire for someone cycling past.
16657
+ *
16658
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16659
+ * the column, and every hub that predates the field, omits it. Test
16660
+ * `=== true` and render nothing otherwise — never infer "no rider".
16661
+ */
16662
+ hasRider: boolean().optional(),
16118
16663
  ...TrackFlagFields,
16119
16664
  ...TrackRetrainFields
16120
16665
  });
@@ -16464,7 +17009,10 @@ var RecentTracksQueryInput = object({
16464
17009
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16465
17010
  cursor: string().optional(),
16466
17011
  /** See {@link TrackProjectionSchema}. Default `full`. */
16467
- projection: TrackProjectionSchema.optional()
17012
+ projection: TrackProjectionSchema.optional(),
17013
+ /** Include stationary-promoted rows (parked objects). Default false: the
17014
+ * feed lists passages; parking records live on the stationary registry. */
17015
+ includeStationary: boolean().optional()
16468
17016
  });
16469
17017
  var RecentTracksPageSchema = object({
16470
17018
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16682,7 +17230,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16682
17230
  zone: TrackZoneFilterSchema.optional(),
16683
17231
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16684
17232
  * compatible — omitting the field keeps today's exact behaviour). */
16685
- projection: TrackProjectionSchema.optional()
17233
+ projection: TrackProjectionSchema.optional(),
17234
+ /** Include stationary-promoted rows (parked objects handed to the
17235
+ * stationary registry). Default false: the timeline lists passages,
17236
+ * not parking records (operator decision, 2026-08-15). */
17237
+ includeStationary: boolean().optional()
16686
17238
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16687
17239
  kind: "mutation",
16688
17240
  auth: "admin"
@@ -16846,11 +17398,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16846
17398
  auth: "admin"
16847
17399
  }), method(object({
16848
17400
  eventId: string(),
16849
- kind: MediaFileKindEnum.optional()
17401
+ kind: MediaFileKindEnum.optional(),
17402
+ deviceId: number()
16850
17403
  }), array(MediaFileSchema).readonly()), method(object({
16851
17404
  trackId: string(),
16852
- kinds: array(MediaFileKindEnum).optional()
16853
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17405
+ kinds: array(MediaFileKindEnum).optional(),
17406
+ deviceId: number()
17407
+ }), array(MediaFileSchema).readonly()), method(object({
17408
+ trackId: string(),
17409
+ deviceId: number()
17410
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16854
17411
  kind: "mutation",
16855
17412
  auth: "admin"
16856
17413
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17550,6 +18107,17 @@ var maxSessionHoldMsField = {
17550
18107
  default: 12e4,
17551
18108
  step: 5e3
17552
18109
  };
18110
+ /**
18111
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18112
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18113
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18114
+ */
18115
+ var audioMotionWindowMsField = {
18116
+ min: 5e3,
18117
+ max: 6e5,
18118
+ default: 9e4,
18119
+ step: 5e3
18120
+ };
17553
18121
  var motionFpsField = {
17554
18122
  min: 1,
17555
18123
  max: 30,
@@ -17581,7 +18149,7 @@ var detectionFpsField = {
17581
18149
  var occupancyRecheckSecField = {
17582
18150
  min: 0,
17583
18151
  max: 300,
17584
- default: 30,
18152
+ default: 300,
17585
18153
  step: 5
17586
18154
  };
17587
18155
  var occupancyRecheckFramesField = {
@@ -17726,6 +18294,27 @@ var RunnerCameraConfigSchema = object({
17726
18294
  * resolved `CameraDetectionConfig`.
17727
18295
  */
17728
18296
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18297
+ /**
18298
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18299
+ * 'on-motion'` audio window, measured from the LAST motion event.
18300
+ *
18301
+ * This exists because the falling edge cannot be relied on. Camera-native
18302
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18303
+ * its email-push SMTP path both emit `detected: true` and never the
18304
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18305
+ * onboard-only camera a window that closed only on `detected: false` never
18306
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18307
+ * battery camera, the one failure mode the mode exists to prevent.
18308
+ *
18309
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18310
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18311
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18312
+ *
18313
+ * Not consumed by the runner: carried here so it shares the per-camera
18314
+ * device-settings surface with `motionCooldownMs`, exactly like
18315
+ * `maxSessionHoldMs`.
18316
+ */
18317
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17729
18318
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17730
18319
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17731
18320
  motionStreamId: string(),
@@ -17821,7 +18410,7 @@ var RunnerCameraConfigSchema = object({
17821
18410
  */
17822
18411
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17823
18412
  });
17824
- 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;
18413
+ 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;
17825
18414
  /**
17826
18415
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17827
18416
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18926,7 +19515,16 @@ targets: array(object({
18926
19515
  /** A sleeping battery camera: the frame is deliberately stale and will
18927
19516
  * NOT refresh in the background. A surface should say so rather than
18928
19517
  * present it as current. */
18929
- sleeping: boolean()
19518
+ sleeping: boolean(),
19519
+ /** Current device state rendered over the cached frame. State images
19520
+ * remain authoritative even when their photographic background is
19521
+ * old; null means the link must carry a current camera frame. */
19522
+ stateReason: _enum([
19523
+ "disabled",
19524
+ "sleeping",
19525
+ "unreachable",
19526
+ "waking"
19527
+ ]).nullable()
18930
19528
  })))
18931
19529
  },
18932
19530
  status: {
@@ -20586,6 +21184,25 @@ var BatteryStatusSchema = object({
20586
21184
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20587
21185
  lastUpdated: number(),
20588
21186
  /**
21187
+ * Ms epoch of the last time the device PROVED it was reachable — a
21188
+ * completed firmware round-trip, an observed wake, or an inbound push
21189
+ * (firmware event, email). `0`/absent = never since this slice was born.
21190
+ *
21191
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21192
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21193
+ * for the radio, because a poll that confirms reachability is the same
21194
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21195
+ * single derivation every consumer must use; no surface computes its own.
21196
+ *
21197
+ * It is deliberately NOT a clock in the
21198
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21199
+ * observation itself, and it is the only thing a 30-hour silence is
21200
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21201
+ * Reolink provider) so a value that means "recently" cannot cost a
21202
+ * SQLite commit per round-trip.
21203
+ */
21204
+ lastContactAt: number().optional(),
21205
+ /**
20589
21206
  * True when the source is a BINARY low-battery indicator (HA
20590
21207
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20591
21208
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22850,54 +23467,139 @@ var TalkAudioCodecSchema = _enum([
22850
23467
  "g711ulaw",
22851
23468
  "g711alaw"
22852
23469
  ]);
22853
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22854
- sessionId: string(),
22855
- sdpOffer: string()
22856
- }), {
22857
- kind: "mutation",
22858
- auth: "admin"
22859
- }), method(object({
22860
- deviceId: number(),
22861
- sessionId: string(),
22862
- sdpAnswer: string()
22863
- }), _void(), {
22864
- kind: "mutation",
22865
- auth: "admin"
22866
- }), method(object({
22867
- deviceId: number(),
22868
- sessionId: string()
22869
- }), _void(), {
22870
- kind: "mutation",
22871
- auth: "admin"
22872
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22873
- kind: "mutation",
22874
- auth: "admin"
22875
- }), method(object({
22876
- deviceId: number(),
22877
- /** Audio bytes for ONE frame, base64-encoded so the payload
22878
- * survives tRPC JSON serialization. */
22879
- audioBase64: string(),
22880
- /** Wire codec of the payload. Omit to let the provider default
22881
- * to its native expected format (s16le @ provider-native rate,
22882
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22883
- codec: TalkAudioCodecSchema.optional(),
22884
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22885
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22886
- sampleRate: number().int().positive().optional(),
22887
- /** Channel count. Default 1. */
22888
- channels: number().int().positive().optional(),
22889
- /** Sequence number for ordering / dropping out-of-order frames. */
22890
- sequenceNumber: number().int()
22891
- }), object({ accepted: boolean() }), {
22892
- kind: "mutation",
22893
- auth: "admin"
22894
- }), method(object({ deviceId: number() }), _void(), {
22895
- kind: "mutation",
22896
- auth: "admin"
22897
- }), object({
22898
- deviceId: number(),
22899
- status: IntercomStatusSchema
22900
- });
23470
+ var intercomCapability = {
23471
+ name: "intercom",
23472
+ scope: "device",
23473
+ deviceNative: true,
23474
+ mode: "singleton",
23475
+ deviceTypes: [DeviceType.Camera],
23476
+ methods: {
23477
+ /**
23478
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23479
+ * offer with a single sendonly audio m-line the client answers
23480
+ * (client → server direction). The server wakes battery cams
23481
+ * transparently before opening the upstream talk channel.
23482
+ */
23483
+ startSession: method(object({ deviceId: number() }), object({
23484
+ sessionId: string(),
23485
+ sdpOffer: string()
23486
+ }), {
23487
+ kind: "mutation",
23488
+ auth: "admin"
23489
+ }),
23490
+ handleAnswer: method(object({
23491
+ deviceId: number(),
23492
+ sessionId: string(),
23493
+ sdpAnswer: string()
23494
+ }), _void(), {
23495
+ kind: "mutation",
23496
+ auth: "admin"
23497
+ }),
23498
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23499
+ stopSession: method(object({
23500
+ deviceId: number(),
23501
+ sessionId: string()
23502
+ }), _void(), {
23503
+ kind: "mutation",
23504
+ auth: "admin"
23505
+ }),
23506
+ /**
23507
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23508
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23509
+ * harnesses) that already have decoded PCM frames and just need a
23510
+ * direct path onto the camera's talk channel. Mutually exclusive
23511
+ * with `startSession` (an active WebRTC session must be stopped
23512
+ * before a raw-PCM session can be opened on the same device, and
23513
+ * vice versa).
23514
+ */
23515
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23516
+ kind: "mutation",
23517
+ auth: "admin"
23518
+ }),
23519
+ /**
23520
+ * Push one chunk of talk-back audio onto the active talk session.
23521
+ * The cap is codec-agnostic: the caller declares (or omits) the
23522
+ * wire format via `codec`; the provider decides between passthrough
23523
+ * (when the wire codec matches the camera's native talk channel),
23524
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23525
+ *
23526
+ * Callers do NOT need to know the camera's wire format or sample
23527
+ * rate — that information lives entirely inside the provider.
23528
+ *
23529
+ * Sequence numbers MUST be monotonic per talk session; older frames
23530
+ * arriving after newer ones are dropped to avoid smearing the
23531
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23532
+ * predictor would corrupt with re-ordering).
23533
+ */
23534
+ pushTalkAudio: method(object({
23535
+ deviceId: number(),
23536
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23537
+ * survives tRPC JSON serialization. */
23538
+ audioBase64: string(),
23539
+ /** Wire codec of the payload. Omit to let the provider default
23540
+ * to its native expected format (s16le @ provider-native rate,
23541
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23542
+ codec: TalkAudioCodecSchema.optional(),
23543
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23544
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23545
+ sampleRate: number().int().positive().optional(),
23546
+ /** Channel count. Default 1. */
23547
+ channels: number().int().positive().optional(),
23548
+ /** Sequence number for ordering / dropping out-of-order frames. */
23549
+ sequenceNumber: number().int()
23550
+ }), object({ accepted: boolean() }), {
23551
+ kind: "mutation",
23552
+ auth: "admin"
23553
+ }),
23554
+ /** Close the raw-PCM talk session. Idempotent. */
23555
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23556
+ kind: "mutation",
23557
+ auth: "admin"
23558
+ })
23559
+ },
23560
+ events: { onStatusChanged: { data: object({
23561
+ deviceId: number(),
23562
+ status: IntercomStatusSchema
23563
+ }) } },
23564
+ status: {
23565
+ schema: IntercomStatusSchema,
23566
+ kind: "command-driven"
23567
+ },
23568
+ /**
23569
+ * Runtime-state slice — mirrored by the kernel.
23570
+ *
23571
+ * The cap declared `status` and nothing else, so the only two sources an
23572
+ * exporter has for a value — the `device.state-changed` slice event and the
23573
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23574
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23575
+ * have been published and never received a value, which is the defect the
23576
+ * export's two classification tables exist to prevent (177 of them, once), so
23577
+ * `intercom` was excluded rather than exported.
23578
+ *
23579
+ * The shape is the status shape: there is exactly one truth about talk-back
23580
+ * and duplicating it into a second schema is how two halves of one capability
23581
+ * come to disagree. Providers write it through
23582
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23583
+ * and close a session, and seed it at registration so the slice exists before
23584
+ * the first session rather than after it.
23585
+ *
23586
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23587
+ * session handle, so a session torn down by a transport death that never
23588
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23589
+ * session or the next restart. That is why the slice is `session` and not
23590
+ * `restored` — a restart must never restore "talking".
23591
+ */
23592
+ runtimeState: IntercomStatusSchema,
23593
+ /**
23594
+ * Runtime-state durability: **session** — `talking` describes a live audio
23595
+ * session, which by definition does not survive the process that held it.
23596
+ * Restoring it would publish a camera as talking to nobody.
23597
+ *
23598
+ * See `RuntimeStateDurability`. Enforced by
23599
+ * `scripts/check-runtime-state-durability.ts`.
23600
+ */
23601
+ durability: "session"
23602
+ };
22901
23603
  /**
22902
23604
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22903
23605
  * with a mowing lifecycle plus a dock action.
@@ -25682,7 +26384,7 @@ method(object({
25682
26384
  toMs: number()
25683
26385
  }), RecordingAvailabilitySchema, {
25684
26386
  kind: "query",
25685
- auth: "admin"
26387
+ auth: "protected"
25686
26388
  }), method(object({
25687
26389
  deviceId: number(),
25688
26390
  fromMs: number(),
@@ -25690,14 +26392,14 @@ method(object({
25690
26392
  tzOffsetMinutes: number()
25691
26393
  }), RecordingDaysSchema, {
25692
26394
  kind: "query",
25693
- auth: "admin"
26395
+ auth: "protected"
25694
26396
  }), method(object({
25695
26397
  deviceId: number(),
25696
26398
  fromMs: number(),
25697
26399
  toMs: number()
25698
26400
  }), RecordingManifestSchema, {
25699
26401
  kind: "query",
25700
- auth: "admin"
26402
+ auth: "protected"
25701
26403
  }), method(object({}), RecordingStorageUsageSchema, {
25702
26404
  kind: "query",
25703
26405
  auth: "admin"
@@ -25987,14 +26689,77 @@ method(object({
25987
26689
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25988
26690
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25989
26691
  *
25990
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25991
- * derives the device-detail contribution; the provider carries NO hand-written
25992
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25993
- * every hysteresis flip / availability change; consumers never poll.
25994
- */
25995
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25996
- * be added without a wire break (matching falls back to any-condition refs). */
26692
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26693
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26694
+ * for the thing: a scene is a standing question about the property ("is the bin
26695
+ * still out"), and the operator's question is "which of my scenes have tripped",
26696
+ * across every camera at once — not "what does camera 617 think". Buried one
26697
+ * camera deep it also could not be found. The surface is now a top-level admin
26698
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26699
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26700
+ *
26701
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26702
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26703
+ * directions, so a registration nobody declares fails exactly as loudly as a
26704
+ * declaration nobody registers. The editor is imported directly by the page.
26705
+ *
26706
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26707
+ * availability change; consumers never poll.
26708
+ */
26709
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26710
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26711
+ * Open by design so more can be added without a wire break.
26712
+ *
26713
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26714
+ * not comparable, so "I have never seen this scene in this light" is reported
26715
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26716
+ * collapses the cosine and would latch a false alarm every single night. */
25997
26717
  var SceneConditionSchema = string();
26718
+ /**
26719
+ * What a scene does when the CURRENT light has no reference of its own.
26720
+ *
26721
+ * The lighting variants are not equally likely to exist. Almost every operator
26722
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26723
+ * scene that is only ever going to be asked about a daytime question ("is the
26724
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26725
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26726
+ * working without it rather than degrading into a permanent complaint.
26727
+ *
26728
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26729
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26730
+ * last covered light left it at, the latch is untouched, and the hysteresis
26731
+ * run is neither spent nor cleared. The scene resumes by itself at first
26732
+ * light. This is the only behaviour under which "I never captured IR" is a
26733
+ * configuration choice instead of a nightly fault.
26734
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26735
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26736
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26737
+ * cross-condition cosines are not comparable, so a day reference against a
26738
+ * true IR frame collapses and the scene reports a theft at 21:40.
26739
+ *
26740
+ * Never applies when the scene has NO comparable reference at all — that is
26741
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26742
+ * there would hide a scene the operator never finished setting up.
26743
+ */
26744
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26745
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26746
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26747
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26748
+ * and never counts toward hysteresis in either direction. */
26749
+ var SceneVerdictSchema = _enum([
26750
+ "matched",
26751
+ "diverged",
26752
+ "unknown"
26753
+ ]);
26754
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26755
+ * silence that reads as "nothing has happened". */
26756
+ var SceneUnavailableSchema = _enum([
26757
+ "no-reference-for-condition",
26758
+ "view-shifted",
26759
+ "no-vision-profile",
26760
+ "encoder-model-changed",
26761
+ "no-snapshot"
26762
+ ]);
25998
26763
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25999
26764
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
26000
26765
  var SceneReferenceSchema = object({
@@ -26002,7 +26767,14 @@ var SceneReferenceSchema = object({
26002
26767
  modelId: string(),
26003
26768
  condition: SceneConditionSchema,
26004
26769
  capturedAt: number(),
26005
- thumbnailMediaId: string().optional()
26770
+ thumbnailMediaId: string().optional(),
26771
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26772
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26773
+ * normalized rect frame a different piece of world, and the scene would
26774
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26775
+ * when hysteresis is about to flip — one extra encode per candidate
26776
+ * transition, not per poll. */
26777
+ anchorEmbedding: array(number()).optional()
26006
26778
  });
26007
26779
  var SceneMonitorStateSchema = object({
26008
26780
  id: string(),
@@ -26024,6 +26796,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26024
26796
  profileId: string().optional(),
26025
26797
  hysteresisCount: number().int().positive()
26026
26798
  })]);
26799
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26800
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26801
+ * out in silence rather than reporting a fault every night. */
26802
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26803
+ /**
26804
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26805
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26806
+ *
26807
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26808
+ * fail-open: a notification suppressed is the worse error there, but a vision
26809
+ * model that timed out has not told us the bin is gone, and a latch is a
26810
+ * stateful claim that costs the operator a trip to reset.
26811
+ */
26812
+ var SceneConfirmSchema = object({
26813
+ enabled: boolean().default(false),
26814
+ prompt: string().min(1).max(1e3),
26815
+ profileId: string().optional(),
26816
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26817
+ maxImagePx: number().int().min(64).max(2048).default(448),
26818
+ /** What a timeout / unavailable model means for the PENDING flip. */
26819
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26820
+ });
26027
26821
  var SceneMonitorSchema = object({
26028
26822
  id: string(),
26029
26823
  label: string(),
@@ -26042,7 +26836,56 @@ var SceneMonitorSchema = object({
26042
26836
  lastConfidence: number().nullable(),
26043
26837
  currentCondition: SceneConditionSchema.nullable(),
26044
26838
  availability: _enum(["ok", "unavailable"]),
26045
- unavailableReason: string().nullable()
26839
+ unavailableReason: string().nullable(),
26840
+ /** Which state is "the initial screen". `null` until the first capture. */
26841
+ baselineStateId: string().nullable(),
26842
+ /** Which boolean drives notification rules and any export. */
26843
+ emit: _enum(["latched", "live"]).default("latched"),
26844
+ /** Live: does the region match the baseline RIGHT NOW. */
26845
+ verdict: SceneVerdictSchema,
26846
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26847
+ latched: boolean(),
26848
+ /** Last reset (or creation). */
26849
+ armedAt: number(),
26850
+ divergedAt: number().nullable(),
26851
+ restoredAt: number().nullable(),
26852
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26853
+ * during the window DISCARDS the observation — a car pulling up in front of
26854
+ * the bin must not be able to spend hysteresis credit. */
26855
+ quietSeconds: number().int().min(0).max(3600).default(60),
26856
+ /** An observation only advances the pending count when it is at least this
26857
+ * far from the previously counted one, so N agreeing checks span real time
26858
+ * rather than N adjacent polls inside one occlusion. */
26859
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26860
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26861
+ confirm: SceneConfirmSchema.optional(),
26862
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26863
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26864
+ /** Clear the latch on its own when the scene matches again? Default false —
26865
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26866
+ * automation can react to the bin coming back without the operator's own
26867
+ * alarm silently clearing itself. */
26868
+ autoRestore: boolean().default(false),
26869
+ /** What to do when the current light has no reference of its own. See
26870
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26871
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26872
+ /**
26873
+ * The light whose checks are currently being SAT OUT under
26874
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26875
+ *
26876
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26877
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26878
+ * nothing captured in this light"* in the same calm voice as the coverage
26879
+ * line, because the alternative is a scene that silently stops answering
26880
+ * after sunset with nothing anywhere saying why. A skipped check must never
26881
+ * read as a broken one.
26882
+ */
26883
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26884
+ /** Named cause when `verdict === 'unknown'`. */
26885
+ unavailable: SceneUnavailableSchema.nullable(),
26886
+ /** Conditions that have at least one comparable reference — the coverage line
26887
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26888
+ coveredConditions: array(SceneConditionSchema)
26046
26889
  });
26047
26890
  var SceneMonitorStatusSchema = object({
26048
26891
  monitors: array(SceneMonitorSchema),
@@ -26055,12 +26898,6 @@ var sceneMonitorCapability = {
26055
26898
  kind: "wrapper",
26056
26899
  defaultActive: true,
26057
26900
  deviceTypes: [DeviceType.Camera],
26058
- deviceConfig: { ui: {
26059
- kind: "widget",
26060
- widgetId: "host/scene-monitor-editor",
26061
- tab: "scenes",
26062
- label: "Scenes"
26063
- } },
26064
26901
  methods: {
26065
26902
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26066
26903
  createScene: method(object({
@@ -26091,7 +26928,15 @@ var sceneMonitorCapability = {
26091
26928
  "both"
26092
26929
  ]).optional(),
26093
26930
  checkIntervalSec: number().optional(),
26094
- check: SceneCheckSchema.optional()
26931
+ check: SceneCheckSchema.optional(),
26932
+ emit: _enum(["latched", "live"]).optional(),
26933
+ quietSeconds: number().int().min(0).max(3600).optional(),
26934
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26935
+ anchorThreshold: number().min(0).max(1).optional(),
26936
+ autoRestore: boolean().optional(),
26937
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26938
+ /** `null` clears the vision-model adjudicator. */
26939
+ confirm: SceneConfirmSchema.nullable().optional()
26095
26940
  })
26096
26941
  }), _void(), {
26097
26942
  kind: "mutation",
@@ -26132,6 +26977,26 @@ var sceneMonitorCapability = {
26132
26977
  }), _void(), {
26133
26978
  kind: "mutation",
26134
26979
  auth: "admin"
26980
+ }),
26981
+ /**
26982
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26983
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26984
+ * "reset" in the operator's head means *this is the new normal*, and
26985
+ * re-capture is what makes the feature self-healing against slow drift
26986
+ * instead of failing silently weeks later.
26987
+ *
26988
+ * Reachable from three surfaces on this one mutation: the scene card, a
26989
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
26990
+ * no new Notification-Center code at all), and tRPC for scripts.
26991
+ */
26992
+ resetScene: method(object({
26993
+ deviceId: number(),
26994
+ monitorId: string(),
26995
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
26996
+ recapture: boolean().optional()
26997
+ }), _void(), {
26998
+ kind: "mutation",
26999
+ auth: "admin"
26135
27000
  })
26136
27001
  },
26137
27002
  status: {
@@ -26374,13 +27239,63 @@ var CamStreamDescriptorSchema = object({
26374
27239
  * set of stream descriptors it can offer for the device, synchronously, so the
26375
27240
  * broker can reconcile its registry against the authoritative provider state.
26376
27241
  */
27242
+ /**
27243
+ * The catalog as a DURABLE fact rather than a live answer.
27244
+ *
27245
+ * A battery camera's descriptors are profile-stable — they change when the
27246
+ * operator rewrites an encoder profile, not minute to minute — but building
27247
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27248
+ * provider is allowed to build them exactly once per profile and must serve
27249
+ * every later pull from a cache.
27250
+ *
27251
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27252
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27253
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27254
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27255
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27256
+ * which on a battery cam is most of the day. The camera was fine. The stream
27257
+ * was unreachable because the process had forgotten what the camera offers.
27258
+ *
27259
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27260
+ * declared collection, with the same `restored` durability `battery` uses for
27261
+ * the same reason: the last known value is the only value there is while the
27262
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27263
+ * is the DIAL that wakes a camera, never the catalog (D173).
27264
+ */
27265
+ var StreamCatalogStateSchema = object({
27266
+ /** The descriptors as last built from a real camera response. Never a guess:
27267
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27268
+ * one the camera itself once produced. */
27269
+ descriptors: array(CamStreamDescriptorSchema),
27270
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27271
+ * path decide whether the camera's own awake window is worth spending on a
27272
+ * re-read. */
27273
+ lastFetchedAt: number()
27274
+ });
26377
27275
  var streamCatalogCapability = {
26378
27276
  name: "stream-catalog",
26379
27277
  scope: "device",
26380
27278
  deviceNative: true,
26381
27279
  mode: "singleton",
26382
27280
  deviceTypes: [DeviceType.Camera],
26383
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
27281
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27282
+ runtimeState: StreamCatalogStateSchema,
27283
+ /**
27284
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27285
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27286
+ * camera that cannot be watched at all until it happens to wake.
27287
+ *
27288
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27289
+ * build, and a build only runs when there is no cached copy (or the copy is
27290
+ * a day old and the camera is awake anyway).
27291
+ *
27292
+ * See `RuntimeStateDurability`. Enforced by
27293
+ * `scripts/check-runtime-state-durability.ts`.
27294
+ */
27295
+ durability: "restored",
27296
+ /** Clock field: written, but excluded from the compare that decides whether
27297
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27298
+ volatileStateFields: ["lastFetchedAt"]
26384
27299
  };
26385
27300
  /** One of the camera's stream profiles. */
26386
27301
  var StreamProfileSchema = _enum([
@@ -26833,12 +27748,64 @@ var NetworkAddressSchema = object({
26833
27748
  family: string(),
26834
27749
  internal: boolean()
26835
27750
  });
27751
+ /**
27752
+ * Provenance of the site coordinates, and the whole reason this is not just two
27753
+ * numbers.
27754
+ *
27755
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27756
+ * nothing overwrites it.
27757
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27758
+ * default that is right to a few kilometres beats the coarse UTC clock split
27759
+ * the sun-times consumers otherwise fall back to.
27760
+ *
27761
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27762
+ * own input will eventually trust the guess.
27763
+ */
27764
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27765
+ /**
27766
+ * The read shape: the location plus the honest state of the one-shot derivation.
27767
+ *
27768
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27769
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27770
+ * failed; the hub will NOT try again on its own — the fallback is declared
27771
+ * (consumers degrade to their own last resort) and the operator either types the
27772
+ * coordinates or presses detect.
27773
+ */
27774
+ var SiteLocationStatusSchema = object({
27775
+ location: object({
27776
+ /** WGS84 decimal degrees. */
27777
+ latitude: number().min(-90).max(90),
27778
+ longitude: number().min(-180).max(180),
27779
+ source: SiteLocationSourceSchema,
27780
+ /** Epoch ms the value was last written. */
27781
+ updatedAt: number(),
27782
+ /**
27783
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27784
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27785
+ */
27786
+ label: string().optional()
27787
+ }).nullable(),
27788
+ derivationAttemptedAt: number().nullable(),
27789
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27790
+ derivationError: string().nullable()
27791
+ });
27792
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27793
+ var SetSiteLocationInputSchema = object({
27794
+ latitude: number().min(-90).max(90),
27795
+ longitude: number().min(-180).max(180)
27796
+ }).nullable();
26836
27797
  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(), {
26837
27798
  kind: "mutation",
26838
27799
  auth: "admin"
26839
27800
  }), method(_void(), _void(), {
26840
27801
  kind: "mutation",
26841
27802
  auth: "admin"
27803
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27804
+ kind: "mutation",
27805
+ auth: "admin"
27806
+ }), method(_void(), SiteLocationStatusSchema, {
27807
+ kind: "mutation",
27808
+ auth: "admin"
26842
27809
  });
26843
27810
  /**
26844
27811
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -28158,6 +29125,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28158
29125
  humiditySensor: humiditySensorCapability,
28159
29126
  image: imageCapability,
28160
29127
  imageSettings: imageSettingsCapability,
29128
+ intercom: intercomCapability,
28161
29129
  lawnMowerControl: lawnMowerControlCapability,
28162
29130
  lockControl: lockControlCapability,
28163
29131
  mediaPlayer: mediaPlayerCapability,
@@ -28176,6 +29144,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28176
29144
  sceneMonitor: sceneMonitorCapability,
28177
29145
  scriptRunner: scriptRunnerCapability,
28178
29146
  smoke: smokeCapability,
29147
+ streamCatalog: streamCatalogCapability,
28179
29148
  streamParams: streamParamsCapability,
28180
29149
  switch: switchCapability,
28181
29150
  tamper: tamperCapability,
@@ -28829,6 +29798,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28829
29798
  labels: ["probe not implemented"]
28830
29799
  };
28831
29800
  }
29801
+ /**
29802
+ * Top-level devices restored at once in {@link onRestoreDevices}.
29803
+ *
29804
+ * Four covers the fleets this ships to without turning a boot into a burst a
29805
+ * camera NVR answers with a refusal. A provider whose upstream is a single
29806
+ * session with a serial command channel (a Baichuan hub, an NVR that
29807
+ * serialises ISAPI) should lower it; nothing needs to raise it.
29808
+ */
29809
+ restoreConcurrency = 4;
28832
29810
  async restoreDevices(savedDevices) {
28833
29811
  await this.onRestoreDevices(savedDevices);
28834
29812
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -28860,15 +29838,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28860
29838
  */
28861
29839
  async onRestoreDevices(savedDevices) {
28862
29840
  const restored = /* @__PURE__ */ new Set();
28863
- for (const saved of savedDevices) {
28864
- if (saved.parentDeviceId !== null) continue;
29841
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
29842
+ const restoreOne = async (saved) => {
28865
29843
  const Class = this.deviceClasses[saved.type];
28866
29844
  if (!Class) {
28867
29845
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
28868
29846
  tags: { stableId: saved.stableId },
28869
29847
  meta: { type: saved.type }
28870
29848
  });
28871
- continue;
29849
+ return;
28872
29850
  }
28873
29851
  try {
28874
29852
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -28882,7 +29860,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28882
29860
  }
28883
29861
  });
28884
29862
  }
28885
- }
29863
+ };
29864
+ let nextTopLevel = 0;
29865
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
29866
+ for (;;) {
29867
+ const saved = topLevel[nextTopLevel++];
29868
+ if (saved === void 0) return;
29869
+ await restoreOne(saved);
29870
+ }
29871
+ }));
28886
29872
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
28887
29873
  for (const saved of childRows) {
28888
29874
  const Class = this.deviceClasses[saved.type];
@@ -31104,6 +32090,12 @@ Object.freeze({
31104
32090
  addonId: null,
31105
32091
  access: "create"
31106
32092
  },
32093
+ "llm.cancel": {
32094
+ capName: "llm",
32095
+ capScope: "system",
32096
+ addonId: null,
32097
+ access: "create"
32098
+ },
31107
32099
  "llm.deleteModel": {
31108
32100
  capName: "llm",
31109
32101
  capScope: "system",
@@ -31188,6 +32180,12 @@ Object.freeze({
31188
32180
  addonId: null,
31189
32181
  access: "view"
31190
32182
  },
32183
+ "llm.resolveModelRef": {
32184
+ capName: "llm",
32185
+ capScope: "system",
32186
+ addonId: null,
32187
+ access: "create"
32188
+ },
31191
32189
  "llm.setDefault": {
31192
32190
  capName: "llm",
31193
32191
  capScope: "system",
@@ -33354,6 +34352,12 @@ Object.freeze({
33354
34352
  addonId: null,
33355
34353
  access: "create"
33356
34354
  },
34355
+ "sceneMonitor.resetScene": {
34356
+ capName: "scene-monitor",
34357
+ capScope: "device",
34358
+ addonId: null,
34359
+ access: "delete"
34360
+ },
33357
34361
  "sceneMonitor.updateScene": {
33358
34362
  capName: "scene-monitor",
33359
34363
  capScope: "device",
@@ -34032,6 +35036,12 @@ Object.freeze({
34032
35036
  addonId: null,
34033
35037
  access: "create"
34034
35038
  },
35039
+ "system.detectSiteLocation": {
35040
+ capName: "system",
35041
+ capScope: "system",
35042
+ addonId: null,
35043
+ access: "create"
35044
+ },
34035
35045
  "system.featureFlags": {
34036
35046
  capName: "system",
34037
35047
  capScope: "system",
@@ -34050,6 +35060,12 @@ Object.freeze({
34050
35060
  addonId: null,
34051
35061
  access: "view"
34052
35062
  },
35063
+ "system.getSiteLocation": {
35064
+ capName: "system",
35065
+ capScope: "system",
35066
+ addonId: null,
35067
+ access: "view"
35068
+ },
34053
35069
  "system.health": {
34054
35070
  capName: "system",
34055
35071
  capScope: "system",
@@ -34074,6 +35090,12 @@ Object.freeze({
34074
35090
  addonId: null,
34075
35091
  access: "create"
34076
35092
  },
35093
+ "system.setSiteLocation": {
35094
+ capName: "system",
35095
+ capScope: "system",
35096
+ addonId: null,
35097
+ access: "create"
35098
+ },
34077
35099
  "terminalSession.adoptLegacyMonitor": {
34078
35100
  capName: "terminal-session",
34079
35101
  capScope: "system",
@@ -34645,6 +35667,1704 @@ Object.freeze({
34645
35667
  access: "create"
34646
35668
  }
34647
35669
  });
35670
+ Object.freeze({
35671
+ "accessories.setChildHidden": [{
35672
+ name: "childDeviceId",
35673
+ form: "single",
35674
+ optional: false
35675
+ }, {
35676
+ name: "deviceId",
35677
+ form: "single",
35678
+ optional: false
35679
+ }],
35680
+ "addonSettings.getDeviceSettings": [{
35681
+ name: "deviceId",
35682
+ form: "single",
35683
+ optional: false
35684
+ }],
35685
+ "addonSettings.updateDeviceSettings": [{
35686
+ name: "deviceId",
35687
+ form: "single",
35688
+ optional: false
35689
+ }],
35690
+ "alarmPanel.arm": [{
35691
+ name: "deviceId",
35692
+ form: "single",
35693
+ optional: false
35694
+ }],
35695
+ "alarmPanel.disarm": [{
35696
+ name: "deviceId",
35697
+ form: "single",
35698
+ optional: false
35699
+ }],
35700
+ "alarmPanel.trigger": [{
35701
+ name: "deviceId",
35702
+ form: "single",
35703
+ optional: false
35704
+ }],
35705
+ "audioAnalysis.resolveDeviceSettings": [{
35706
+ name: "deviceId",
35707
+ form: "single",
35708
+ optional: false
35709
+ }],
35710
+ "audioAnalyzer.classify": [{
35711
+ name: "deviceId",
35712
+ form: "single",
35713
+ optional: true
35714
+ }],
35715
+ "audioMetrics.getCurrentSnapshot": [{
35716
+ name: "deviceId",
35717
+ form: "single",
35718
+ optional: false
35719
+ }],
35720
+ "audioMetrics.getHistory": [{
35721
+ name: "deviceId",
35722
+ form: "single",
35723
+ optional: false
35724
+ }],
35725
+ "automationControl.disable": [{
35726
+ name: "deviceId",
35727
+ form: "single",
35728
+ optional: false
35729
+ }],
35730
+ "automationControl.enable": [{
35731
+ name: "deviceId",
35732
+ form: "single",
35733
+ optional: false
35734
+ }],
35735
+ "automationControl.trigger": [{
35736
+ name: "deviceId",
35737
+ form: "single",
35738
+ optional: false
35739
+ }],
35740
+ "battery.wakeForStream": [{
35741
+ name: "deviceId",
35742
+ form: "single",
35743
+ optional: false
35744
+ }],
35745
+ "brightness.setBrightness": [{
35746
+ name: "deviceId",
35747
+ form: "single",
35748
+ optional: false
35749
+ }],
35750
+ "button.press": [{
35751
+ name: "deviceId",
35752
+ form: "single",
35753
+ optional: false
35754
+ }],
35755
+ "cameraCredentials.getCredentials": [{
35756
+ name: "deviceId",
35757
+ form: "single",
35758
+ optional: false
35759
+ }],
35760
+ "cameraStreams.getBrokerStreams": [{
35761
+ name: "deviceId",
35762
+ form: "single",
35763
+ optional: false
35764
+ }],
35765
+ "cameraStreams.getCameraStreams": [{
35766
+ name: "deviceId",
35767
+ form: "single",
35768
+ optional: false
35769
+ }],
35770
+ "cameraStreams.getProfileRtspEntries": [{
35771
+ name: "deviceId",
35772
+ form: "single",
35773
+ optional: false
35774
+ }],
35775
+ "cameraStreams.getRtspEntries": [{
35776
+ name: "deviceId",
35777
+ form: "single",
35778
+ optional: false
35779
+ }],
35780
+ "cameraStreams.pickStream": [{
35781
+ name: "deviceId",
35782
+ form: "single",
35783
+ optional: false
35784
+ }],
35785
+ "climateControl.setFanMode": [{
35786
+ name: "deviceId",
35787
+ form: "single",
35788
+ optional: false
35789
+ }],
35790
+ "climateControl.setMode": [{
35791
+ name: "deviceId",
35792
+ form: "single",
35793
+ optional: false
35794
+ }],
35795
+ "climateControl.setPreset": [{
35796
+ name: "deviceId",
35797
+ form: "single",
35798
+ optional: false
35799
+ }],
35800
+ "climateControl.setSwingHorizontal": [{
35801
+ name: "deviceId",
35802
+ form: "single",
35803
+ optional: false
35804
+ }],
35805
+ "climateControl.setSwingVertical": [{
35806
+ name: "deviceId",
35807
+ form: "single",
35808
+ optional: false
35809
+ }],
35810
+ "climateControl.setTarget": [{
35811
+ name: "deviceId",
35812
+ form: "single",
35813
+ optional: false
35814
+ }],
35815
+ "climateControl.setTargetHumidity": [{
35816
+ name: "deviceId",
35817
+ form: "single",
35818
+ optional: false
35819
+ }],
35820
+ "climateControl.setTargetRange": [{
35821
+ name: "deviceId",
35822
+ form: "single",
35823
+ optional: false
35824
+ }],
35825
+ "color.setColor": [{
35826
+ name: "deviceId",
35827
+ form: "single",
35828
+ optional: false
35829
+ }],
35830
+ "consumables.reset": [{
35831
+ name: "deviceId",
35832
+ form: "single",
35833
+ optional: false
35834
+ }],
35835
+ "control.setValue": [{
35836
+ name: "deviceId",
35837
+ form: "single",
35838
+ optional: false
35839
+ }],
35840
+ "cover.close": [{
35841
+ name: "deviceId",
35842
+ form: "single",
35843
+ optional: false
35844
+ }],
35845
+ "cover.open": [{
35846
+ name: "deviceId",
35847
+ form: "single",
35848
+ optional: false
35849
+ }],
35850
+ "cover.setPosition": [{
35851
+ name: "deviceId",
35852
+ form: "single",
35853
+ optional: false
35854
+ }],
35855
+ "cover.setTiltPosition": [{
35856
+ name: "deviceId",
35857
+ form: "single",
35858
+ optional: false
35859
+ }],
35860
+ "cover.stop": [{
35861
+ name: "deviceId",
35862
+ form: "single",
35863
+ optional: false
35864
+ }],
35865
+ "dayNight.getOptions": [{
35866
+ name: "deviceId",
35867
+ form: "single",
35868
+ optional: false
35869
+ }],
35870
+ "dayNight.setSettings": [{
35871
+ name: "deviceId",
35872
+ form: "single",
35873
+ optional: false
35874
+ }],
35875
+ "decoder.createSession": [{
35876
+ name: "deviceId",
35877
+ form: "single",
35878
+ optional: true
35879
+ }],
35880
+ "deviceAdoption.release": [{
35881
+ name: "camDeviceId",
35882
+ form: "single",
35883
+ optional: false
35884
+ }],
35885
+ "deviceAdoption.resync": [{
35886
+ name: "camDeviceId",
35887
+ form: "single",
35888
+ optional: false
35889
+ }],
35890
+ "deviceDiscovery.adoptDevice": [{
35891
+ name: "deviceId",
35892
+ form: "single",
35893
+ optional: false
35894
+ }],
35895
+ "deviceDiscovery.listDiscovered": [{
35896
+ name: "deviceId",
35897
+ form: "single",
35898
+ optional: false
35899
+ }],
35900
+ "deviceDiscovery.refreshDiscovery": [{
35901
+ name: "deviceId",
35902
+ form: "single",
35903
+ optional: false
35904
+ }],
35905
+ "deviceDiscovery.releaseDevice": [{
35906
+ name: "childDeviceId",
35907
+ form: "single",
35908
+ optional: false
35909
+ }, {
35910
+ name: "deviceId",
35911
+ form: "single",
35912
+ optional: false
35913
+ }],
35914
+ "deviceManager.adoptionRelease": [{
35915
+ name: "camDeviceId",
35916
+ form: "single",
35917
+ optional: false
35918
+ }],
35919
+ "deviceManager.adoptionResync": [{
35920
+ name: "camDeviceId",
35921
+ form: "single",
35922
+ optional: false
35923
+ }],
35924
+ "deviceManager.applyInitialMeta": [{
35925
+ name: "deviceId",
35926
+ form: "single",
35927
+ optional: false
35928
+ }, {
35929
+ name: "linkDeviceId",
35930
+ form: "single",
35931
+ optional: true
35932
+ }],
35933
+ "deviceManager.disable": [{
35934
+ name: "deviceId",
35935
+ form: "single",
35936
+ optional: false
35937
+ }],
35938
+ "deviceManager.enable": [{
35939
+ name: "deviceId",
35940
+ form: "single",
35941
+ optional: false
35942
+ }],
35943
+ "deviceManager.getBindings": [{
35944
+ name: "deviceId",
35945
+ form: "single",
35946
+ optional: false
35947
+ }],
35948
+ "deviceManager.getChildren": [{
35949
+ name: "parentDeviceId",
35950
+ form: "single",
35951
+ optional: false
35952
+ }],
35953
+ "deviceManager.getConfigSchema": [{
35954
+ name: "deviceId",
35955
+ form: "single",
35956
+ optional: false
35957
+ }],
35958
+ "deviceManager.getDevice": [{
35959
+ name: "deviceId",
35960
+ form: "single",
35961
+ optional: false
35962
+ }],
35963
+ "deviceManager.getDeviceAggregate": [{
35964
+ name: "deviceId",
35965
+ form: "single",
35966
+ optional: false
35967
+ }],
35968
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35969
+ name: "deviceId",
35970
+ form: "single",
35971
+ optional: false
35972
+ }],
35973
+ "deviceManager.getDeviceSettingsAggregate": [{
35974
+ name: "deviceId",
35975
+ form: "single",
35976
+ optional: false
35977
+ }],
35978
+ "deviceManager.getDeviceStatusAggregate": [{
35979
+ name: "deviceId",
35980
+ form: "single",
35981
+ optional: false
35982
+ }],
35983
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35984
+ name: "deviceIds",
35985
+ form: "array",
35986
+ optional: false
35987
+ }],
35988
+ "deviceManager.getLinkedDevices": [{
35989
+ name: "deviceId",
35990
+ form: "single",
35991
+ optional: false
35992
+ }],
35993
+ "deviceManager.getSettingsSchema": [{
35994
+ name: "deviceId",
35995
+ form: "single",
35996
+ optional: false
35997
+ }],
35998
+ "deviceManager.getStreamProfileMap": [{
35999
+ name: "deviceId",
36000
+ form: "single",
36001
+ optional: false
36002
+ }],
36003
+ "deviceManager.getStreamSources": [{
36004
+ name: "deviceId",
36005
+ form: "single",
36006
+ optional: false
36007
+ }],
36008
+ "deviceManager.getWireableFields": [{
36009
+ name: "deviceId",
36010
+ form: "single",
36011
+ optional: false
36012
+ }],
36013
+ "deviceManager.loadConfig": [{
36014
+ name: "deviceId",
36015
+ form: "single",
36016
+ optional: false
36017
+ }],
36018
+ "deviceManager.loadMeta": [{
36019
+ name: "deviceId",
36020
+ form: "single",
36021
+ optional: false
36022
+ }],
36023
+ "deviceManager.loadRuntimeState": [{
36024
+ name: "deviceId",
36025
+ form: "single",
36026
+ optional: false
36027
+ }],
36028
+ "deviceManager.persistConfig": [{
36029
+ name: "deviceId",
36030
+ form: "single",
36031
+ optional: false
36032
+ }],
36033
+ "deviceManager.probeStreams": [{
36034
+ name: "deviceId",
36035
+ form: "single",
36036
+ optional: false
36037
+ }],
36038
+ "deviceManager.registerDevice": [{
36039
+ name: "parentDeviceId",
36040
+ form: "single",
36041
+ optional: true
36042
+ }],
36043
+ "deviceManager.remove": [{
36044
+ name: "deviceId",
36045
+ form: "single",
36046
+ optional: false
36047
+ }],
36048
+ "deviceManager.removeDevice": [{
36049
+ name: "deviceId",
36050
+ form: "single",
36051
+ optional: false
36052
+ }],
36053
+ "deviceManager.runDeviceAction": [{
36054
+ name: "deviceId",
36055
+ form: "single",
36056
+ optional: false
36057
+ }],
36058
+ "deviceManager.setChildLayout": [{
36059
+ name: "deviceId",
36060
+ form: "single",
36061
+ optional: false
36062
+ }],
36063
+ "deviceManager.setDisabled": [{
36064
+ name: "deviceId",
36065
+ form: "single",
36066
+ optional: false
36067
+ }],
36068
+ "deviceManager.setDisplay": [{
36069
+ name: "deviceId",
36070
+ form: "single",
36071
+ optional: false
36072
+ }],
36073
+ "deviceManager.setIntegrationId": [{
36074
+ name: "deviceId",
36075
+ form: "single",
36076
+ optional: false
36077
+ }],
36078
+ "deviceManager.setLinkDeviceId": [{
36079
+ name: "deviceId",
36080
+ form: "single",
36081
+ optional: false
36082
+ }, {
36083
+ name: "linkDeviceId",
36084
+ form: "single",
36085
+ optional: true
36086
+ }],
36087
+ "deviceManager.setLocation": [{
36088
+ name: "deviceId",
36089
+ form: "single",
36090
+ optional: false
36091
+ }],
36092
+ "deviceManager.setMetadata": [{
36093
+ name: "deviceId",
36094
+ form: "single",
36095
+ optional: false
36096
+ }],
36097
+ "deviceManager.setName": [{
36098
+ name: "deviceId",
36099
+ form: "single",
36100
+ optional: false
36101
+ }],
36102
+ "deviceManager.setPrimaryChildEntityId": [{
36103
+ name: "deviceId",
36104
+ form: "single",
36105
+ optional: false
36106
+ }],
36107
+ "deviceManager.setRole": [{
36108
+ name: "deviceId",
36109
+ form: "single",
36110
+ optional: false
36111
+ }],
36112
+ "deviceManager.setStreamProfileMap": [{
36113
+ name: "deviceId",
36114
+ form: "single",
36115
+ optional: false
36116
+ }],
36117
+ "deviceManager.setType": [{
36118
+ name: "deviceId",
36119
+ form: "single",
36120
+ optional: false
36121
+ }],
36122
+ "deviceManager.setWrapperActive": [{
36123
+ name: "deviceId",
36124
+ form: "single",
36125
+ optional: false
36126
+ }],
36127
+ "deviceManager.testField": [{
36128
+ name: "deviceId",
36129
+ form: "single",
36130
+ optional: false
36131
+ }],
36132
+ "deviceManager.updateConfig": [{
36133
+ name: "deviceId",
36134
+ form: "single",
36135
+ optional: false
36136
+ }],
36137
+ "deviceManager.updateDeviceField": [{
36138
+ name: "deviceId",
36139
+ form: "single",
36140
+ optional: false
36141
+ }],
36142
+ "deviceManager.updateDeviceFieldsBatch": [{
36143
+ name: "deviceId",
36144
+ form: "single",
36145
+ optional: false
36146
+ }],
36147
+ "deviceOps.getConfigEntries": [{
36148
+ name: "deviceId",
36149
+ form: "single",
36150
+ optional: false
36151
+ }],
36152
+ "deviceOps.getRawState": [{
36153
+ name: "deviceId",
36154
+ form: "single",
36155
+ optional: false
36156
+ }],
36157
+ "deviceOps.getSettingsSchema": [{
36158
+ name: "deviceId",
36159
+ form: "single",
36160
+ optional: false
36161
+ }],
36162
+ "deviceOps.getStreamSources": [{
36163
+ name: "deviceId",
36164
+ form: "single",
36165
+ optional: false
36166
+ }],
36167
+ "deviceOps.removeDevice": [{
36168
+ name: "deviceId",
36169
+ form: "single",
36170
+ optional: false
36171
+ }],
36172
+ "deviceOps.runAction": [{
36173
+ name: "deviceId",
36174
+ form: "single",
36175
+ optional: false
36176
+ }],
36177
+ "deviceOps.setConfig": [{
36178
+ name: "deviceId",
36179
+ form: "single",
36180
+ optional: false
36181
+ }],
36182
+ "deviceState.getCapSlice": [{
36183
+ name: "deviceId",
36184
+ form: "single",
36185
+ optional: false
36186
+ }],
36187
+ "deviceState.getSnapshot": [{
36188
+ name: "deviceId",
36189
+ form: "single",
36190
+ optional: false
36191
+ }],
36192
+ "deviceState.setCapSlice": [{
36193
+ name: "deviceId",
36194
+ form: "single",
36195
+ optional: false
36196
+ }],
36197
+ "events.getEventClipUrl": [{
36198
+ name: "deviceId",
36199
+ form: "single",
36200
+ optional: false
36201
+ }],
36202
+ "events.getEvents": [{
36203
+ name: "deviceId",
36204
+ form: "single",
36205
+ optional: false
36206
+ }],
36207
+ "events.getEventThumbnail": [{
36208
+ name: "deviceId",
36209
+ form: "single",
36210
+ optional: false
36211
+ }],
36212
+ "faceGallery.getFaceByTrack": [{
36213
+ name: "deviceId",
36214
+ form: "single",
36215
+ optional: false
36216
+ }],
36217
+ "faceGallery.listRecentFaces": [{
36218
+ name: "deviceId",
36219
+ form: "single",
36220
+ optional: true
36221
+ }],
36222
+ "fanControl.setDirection": [{
36223
+ name: "deviceId",
36224
+ form: "single",
36225
+ optional: false
36226
+ }],
36227
+ "fanControl.setOscillating": [{
36228
+ name: "deviceId",
36229
+ form: "single",
36230
+ optional: false
36231
+ }],
36232
+ "fanControl.setPercentage": [{
36233
+ name: "deviceId",
36234
+ form: "single",
36235
+ optional: false
36236
+ }],
36237
+ "fanControl.setPreset": [{
36238
+ name: "deviceId",
36239
+ form: "single",
36240
+ optional: false
36241
+ }],
36242
+ "humidifier.setMode": [{
36243
+ name: "deviceId",
36244
+ form: "single",
36245
+ optional: false
36246
+ }],
36247
+ "humidifier.setOn": [{
36248
+ name: "deviceId",
36249
+ form: "single",
36250
+ optional: false
36251
+ }],
36252
+ "humidifier.setTargetHumidity": [{
36253
+ name: "deviceId",
36254
+ form: "single",
36255
+ optional: false
36256
+ }],
36257
+ "imageSettings.getOptions": [{
36258
+ name: "deviceId",
36259
+ form: "single",
36260
+ optional: false
36261
+ }],
36262
+ "imageSettings.setSettings": [{
36263
+ name: "deviceId",
36264
+ form: "single",
36265
+ optional: false
36266
+ }],
36267
+ "intercom.endTalkSession": [{
36268
+ name: "deviceId",
36269
+ form: "single",
36270
+ optional: false
36271
+ }],
36272
+ "intercom.handleAnswer": [{
36273
+ name: "deviceId",
36274
+ form: "single",
36275
+ optional: false
36276
+ }],
36277
+ "intercom.pushTalkAudio": [{
36278
+ name: "deviceId",
36279
+ form: "single",
36280
+ optional: false
36281
+ }],
36282
+ "intercom.startSession": [{
36283
+ name: "deviceId",
36284
+ form: "single",
36285
+ optional: false
36286
+ }],
36287
+ "intercom.startTalkSession": [{
36288
+ name: "deviceId",
36289
+ form: "single",
36290
+ optional: false
36291
+ }],
36292
+ "intercom.stopSession": [{
36293
+ name: "deviceId",
36294
+ form: "single",
36295
+ optional: false
36296
+ }],
36297
+ "lawnMowerControl.dock": [{
36298
+ name: "deviceId",
36299
+ form: "single",
36300
+ optional: false
36301
+ }],
36302
+ "lawnMowerControl.pause": [{
36303
+ name: "deviceId",
36304
+ form: "single",
36305
+ optional: false
36306
+ }],
36307
+ "lawnMowerControl.startMowing": [{
36308
+ name: "deviceId",
36309
+ form: "single",
36310
+ optional: false
36311
+ }],
36312
+ "lockControl.lock": [{
36313
+ name: "deviceId",
36314
+ form: "single",
36315
+ optional: false
36316
+ }],
36317
+ "lockControl.open": [{
36318
+ name: "deviceId",
36319
+ form: "single",
36320
+ optional: false
36321
+ }],
36322
+ "lockControl.unlock": [{
36323
+ name: "deviceId",
36324
+ form: "single",
36325
+ optional: false
36326
+ }],
36327
+ "mediaPlayer.next": [{
36328
+ name: "deviceId",
36329
+ form: "single",
36330
+ optional: false
36331
+ }],
36332
+ "mediaPlayer.pause": [{
36333
+ name: "deviceId",
36334
+ form: "single",
36335
+ optional: false
36336
+ }],
36337
+ "mediaPlayer.play": [{
36338
+ name: "deviceId",
36339
+ form: "single",
36340
+ optional: false
36341
+ }],
36342
+ "mediaPlayer.playMedia": [{
36343
+ name: "deviceId",
36344
+ form: "single",
36345
+ optional: false
36346
+ }],
36347
+ "mediaPlayer.previous": [{
36348
+ name: "deviceId",
36349
+ form: "single",
36350
+ optional: false
36351
+ }],
36352
+ "mediaPlayer.seek": [{
36353
+ name: "deviceId",
36354
+ form: "single",
36355
+ optional: false
36356
+ }],
36357
+ "mediaPlayer.selectSource": [{
36358
+ name: "deviceId",
36359
+ form: "single",
36360
+ optional: false
36361
+ }],
36362
+ "mediaPlayer.setMute": [{
36363
+ name: "deviceId",
36364
+ form: "single",
36365
+ optional: false
36366
+ }],
36367
+ "mediaPlayer.setRepeat": [{
36368
+ name: "deviceId",
36369
+ form: "single",
36370
+ optional: false
36371
+ }],
36372
+ "mediaPlayer.setShuffle": [{
36373
+ name: "deviceId",
36374
+ form: "single",
36375
+ optional: false
36376
+ }],
36377
+ "mediaPlayer.setVolume": [{
36378
+ name: "deviceId",
36379
+ form: "single",
36380
+ optional: false
36381
+ }],
36382
+ "mediaPlayer.stop": [{
36383
+ name: "deviceId",
36384
+ form: "single",
36385
+ optional: false
36386
+ }],
36387
+ "motion.isDetected": [{
36388
+ name: "deviceId",
36389
+ form: "single",
36390
+ optional: false
36391
+ }],
36392
+ "motionDetection.analyze": [{
36393
+ name: "deviceId",
36394
+ form: "single",
36395
+ optional: false
36396
+ }],
36397
+ "motionDetection.removeCamera": [{
36398
+ name: "deviceId",
36399
+ form: "single",
36400
+ optional: false
36401
+ }],
36402
+ "motionTrigger.setMotionTrigger": [{
36403
+ name: "deviceId",
36404
+ form: "single",
36405
+ optional: false
36406
+ }],
36407
+ "motionZones.getOptions": [{
36408
+ name: "deviceId",
36409
+ form: "single",
36410
+ optional: false
36411
+ }],
36412
+ "motionZones.setZone": [{
36413
+ name: "deviceId",
36414
+ form: "single",
36415
+ optional: false
36416
+ }],
36417
+ "nativeObjectDetection.setEnabled": [{
36418
+ name: "deviceId",
36419
+ form: "single",
36420
+ optional: false
36421
+ }],
36422
+ "networkQuality.getDeviceStats": [{
36423
+ name: "deviceId",
36424
+ form: "single",
36425
+ optional: false
36426
+ }],
36427
+ "networkQuality.reportClientStats": [{
36428
+ name: "deviceId",
36429
+ form: "single",
36430
+ optional: false
36431
+ }],
36432
+ "notificationRules.setDeviceMuted": [{
36433
+ name: "deviceId",
36434
+ form: "single",
36435
+ optional: false
36436
+ }],
36437
+ "notifier.cancel": [{
36438
+ name: "deviceId",
36439
+ form: "single",
36440
+ optional: false
36441
+ }],
36442
+ "notifier.send": [{
36443
+ name: "deviceId",
36444
+ form: "single",
36445
+ optional: false
36446
+ }],
36447
+ "osd.setOverlay": [{
36448
+ name: "deviceId",
36449
+ form: "single",
36450
+ optional: false
36451
+ }],
36452
+ "osdManager.clearSlotBinding": [{
36453
+ name: "deviceId",
36454
+ form: "single",
36455
+ optional: false
36456
+ }],
36457
+ "osdManager.copyDeviceConfiguration": [{
36458
+ name: "sourceDeviceId",
36459
+ form: "single",
36460
+ optional: false
36461
+ }, {
36462
+ name: "targetDeviceId",
36463
+ form: "single",
36464
+ optional: false
36465
+ }],
36466
+ "osdManager.getDeviceOsd": [{
36467
+ name: "deviceId",
36468
+ form: "single",
36469
+ optional: false
36470
+ }],
36471
+ "osdManager.getSourceCatalog": [{
36472
+ name: "deviceId",
36473
+ form: "single",
36474
+ optional: false
36475
+ }],
36476
+ "osdManager.previewSlot": [{
36477
+ name: "deviceId",
36478
+ form: "single",
36479
+ optional: false
36480
+ }],
36481
+ "osdManager.renderDevice": [{
36482
+ name: "deviceId",
36483
+ form: "single",
36484
+ optional: false
36485
+ }],
36486
+ "osdManager.setSlotBinding": [{
36487
+ name: "deviceId",
36488
+ form: "single",
36489
+ optional: false
36490
+ }],
36491
+ "petFeeder.callPet": [{
36492
+ name: "deviceId",
36493
+ form: "single",
36494
+ optional: false
36495
+ }],
36496
+ "petFeeder.cancelFeed": [{
36497
+ name: "deviceId",
36498
+ form: "single",
36499
+ optional: false
36500
+ }],
36501
+ "petFeeder.feed": [{
36502
+ name: "deviceId",
36503
+ form: "single",
36504
+ optional: false
36505
+ }],
36506
+ "petFeeder.markFoodReplenished": [{
36507
+ name: "deviceId",
36508
+ form: "single",
36509
+ optional: false
36510
+ }],
36511
+ "petFeeder.playSound": [{
36512
+ name: "deviceId",
36513
+ form: "single",
36514
+ optional: false
36515
+ }],
36516
+ "petFeeder.resetDesiccant": [{
36517
+ name: "deviceId",
36518
+ form: "single",
36519
+ optional: false
36520
+ }],
36521
+ "petFeeder.setChildLock": [{
36522
+ name: "deviceId",
36523
+ form: "single",
36524
+ optional: false
36525
+ }],
36526
+ "petFeeder.setFeedSound": [{
36527
+ name: "deviceId",
36528
+ form: "single",
36529
+ optional: false
36530
+ }],
36531
+ "petFeeder.setIndicatorLight": [{
36532
+ name: "deviceId",
36533
+ form: "single",
36534
+ optional: false
36535
+ }],
36536
+ "petFeeder.setVolume": [{
36537
+ name: "deviceId",
36538
+ form: "single",
36539
+ optional: false
36540
+ }],
36541
+ "pipelineAnalytics.clearTracks": [{
36542
+ name: "deviceId",
36543
+ form: "single",
36544
+ optional: false
36545
+ }],
36546
+ "pipelineAnalytics.completeRetrainTrack": [{
36547
+ name: "deviceId",
36548
+ form: "single",
36549
+ optional: false
36550
+ }],
36551
+ "pipelineAnalytics.deleteDeviceEvents": [{
36552
+ name: "deviceId",
36553
+ form: "single",
36554
+ optional: false
36555
+ }],
36556
+ "pipelineAnalytics.deleteTracks": [{
36557
+ name: "deviceId",
36558
+ form: "single",
36559
+ optional: false
36560
+ }],
36561
+ "pipelineAnalytics.deselectRetrainFrame": [{
36562
+ name: "deviceId",
36563
+ form: "single",
36564
+ optional: false
36565
+ }],
36566
+ "pipelineAnalytics.getActiveTracks": [{
36567
+ name: "deviceId",
36568
+ form: "single",
36569
+ optional: false
36570
+ }],
36571
+ "pipelineAnalytics.getAudioEvents": [{
36572
+ name: "deviceId",
36573
+ form: "single",
36574
+ optional: false
36575
+ }],
36576
+ "pipelineAnalytics.getEventDensity": [{
36577
+ name: "deviceId",
36578
+ form: "single",
36579
+ optional: false
36580
+ }],
36581
+ "pipelineAnalytics.getEventMedia": [{
36582
+ name: "deviceId",
36583
+ form: "single",
36584
+ optional: false
36585
+ }],
36586
+ "pipelineAnalytics.getKeyEvents": [{
36587
+ name: "deviceId",
36588
+ form: "single",
36589
+ optional: false
36590
+ }],
36591
+ "pipelineAnalytics.getMotionEvents": [{
36592
+ name: "deviceId",
36593
+ form: "single",
36594
+ optional: false
36595
+ }],
36596
+ "pipelineAnalytics.getObjectEvents": [{
36597
+ name: "deviceId",
36598
+ form: "single",
36599
+ optional: false
36600
+ }],
36601
+ "pipelineAnalytics.getRetrainExportUrl": [{
36602
+ name: "deviceIds",
36603
+ form: "array",
36604
+ optional: true
36605
+ }],
36606
+ "pipelineAnalytics.getSensorEvents": [{
36607
+ name: "deviceId",
36608
+ form: "single",
36609
+ optional: false
36610
+ }],
36611
+ "pipelineAnalytics.getTrack": [{
36612
+ name: "deviceId",
36613
+ form: "single",
36614
+ optional: false
36615
+ }],
36616
+ "pipelineAnalytics.getTrackMedia": [{
36617
+ name: "deviceId",
36618
+ form: "single",
36619
+ optional: false
36620
+ }],
36621
+ "pipelineAnalytics.getTrainingExportSummary": [{
36622
+ name: "deviceIds",
36623
+ form: "array",
36624
+ optional: true
36625
+ }],
36626
+ "pipelineAnalytics.getTrainingExportUrl": [{
36627
+ name: "deviceIds",
36628
+ form: "array",
36629
+ optional: true
36630
+ }],
36631
+ "pipelineAnalytics.listEventKinds": [{
36632
+ name: "deviceId",
36633
+ form: "single",
36634
+ optional: false
36635
+ }],
36636
+ "pipelineAnalytics.listEventKindsBatch": [{
36637
+ name: "deviceIds",
36638
+ form: "array",
36639
+ optional: false
36640
+ }],
36641
+ "pipelineAnalytics.listOpsLog": [{
36642
+ name: "deviceId",
36643
+ form: "single",
36644
+ optional: true
36645
+ }],
36646
+ "pipelineAnalytics.listRecentTracks": [{
36647
+ name: "deviceIds",
36648
+ form: "array",
36649
+ optional: false
36650
+ }],
36651
+ "pipelineAnalytics.listRetrainStaging": [{
36652
+ name: "deviceIds",
36653
+ form: "array",
36654
+ optional: true
36655
+ }],
36656
+ "pipelineAnalytics.listTrackMedia": [{
36657
+ name: "deviceId",
36658
+ form: "single",
36659
+ optional: false
36660
+ }],
36661
+ "pipelineAnalytics.listTracks": [{
36662
+ name: "deviceId",
36663
+ form: "single",
36664
+ optional: false
36665
+ }],
36666
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36667
+ name: "deviceId",
36668
+ form: "single",
36669
+ optional: false
36670
+ }],
36671
+ "pipelineAnalytics.pruneEventsBefore": [{
36672
+ name: "deviceId",
36673
+ form: "single",
36674
+ optional: false
36675
+ }],
36676
+ "pipelineAnalytics.pruneTracksBefore": [{
36677
+ name: "deviceId",
36678
+ form: "single",
36679
+ optional: false
36680
+ }],
36681
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36682
+ name: "deviceId",
36683
+ form: "single",
36684
+ optional: true
36685
+ }],
36686
+ "pipelineAnalytics.restageRetrainTrack": [{
36687
+ name: "deviceId",
36688
+ form: "single",
36689
+ optional: false
36690
+ }],
36691
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36692
+ name: "deviceId",
36693
+ form: "single",
36694
+ optional: false
36695
+ }],
36696
+ "pipelineAnalytics.searchObjectEvents": [{
36697
+ name: "deviceId",
36698
+ form: "single",
36699
+ optional: true
36700
+ }],
36701
+ "pipelineAnalytics.selectRetrainFrames": [{
36702
+ name: "deviceId",
36703
+ form: "single",
36704
+ optional: false
36705
+ }],
36706
+ "pipelineAnalytics.setTrackFlags": [{
36707
+ name: "deviceId",
36708
+ form: "single",
36709
+ optional: false
36710
+ }],
36711
+ "pipelineAnalytics.wipeAllAnalytics": [{
36712
+ name: "deviceId",
36713
+ form: "single",
36714
+ optional: false
36715
+ }],
36716
+ "pipelineExecutor.runPipeline": [{
36717
+ name: "deviceId",
36718
+ form: "single",
36719
+ optional: true
36720
+ }],
36721
+ "pipelineExecutor.runPipelineBatch": [{
36722
+ name: "deviceId",
36723
+ form: "single",
36724
+ optional: true
36725
+ }],
36726
+ "pipelineOrchestrator.assignAudio": [{
36727
+ name: "deviceId",
36728
+ form: "single",
36729
+ optional: false
36730
+ }],
36731
+ "pipelineOrchestrator.assignPipeline": [{
36732
+ name: "deviceId",
36733
+ form: "single",
36734
+ optional: false
36735
+ }],
36736
+ "pipelineOrchestrator.getAudioAssignment": [{
36737
+ name: "deviceId",
36738
+ form: "single",
36739
+ optional: false
36740
+ }],
36741
+ "pipelineOrchestrator.getCameraMetrics": [{
36742
+ name: "deviceId",
36743
+ form: "single",
36744
+ optional: false
36745
+ }],
36746
+ "pipelineOrchestrator.getCameraSettings": [{
36747
+ name: "deviceId",
36748
+ form: "single",
36749
+ optional: false
36750
+ }],
36751
+ "pipelineOrchestrator.getCameraStatus": [{
36752
+ name: "deviceId",
36753
+ form: "single",
36754
+ optional: false
36755
+ }],
36756
+ "pipelineOrchestrator.getCameraStatuses": [{
36757
+ name: "deviceIds",
36758
+ form: "array",
36759
+ optional: true
36760
+ }],
36761
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36762
+ name: "deviceId",
36763
+ form: "single",
36764
+ optional: false
36765
+ }],
36766
+ "pipelineOrchestrator.getCameraSwitches": [{
36767
+ name: "deviceId",
36768
+ form: "single",
36769
+ optional: false
36770
+ }],
36771
+ "pipelineOrchestrator.getPipelineAssignment": [{
36772
+ name: "deviceId",
36773
+ form: "single",
36774
+ optional: false
36775
+ }],
36776
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36777
+ name: "deviceId",
36778
+ form: "single",
36779
+ optional: false
36780
+ }],
36781
+ "pipelineOrchestrator.resolvePipeline": [{
36782
+ name: "deviceId",
36783
+ form: "single",
36784
+ optional: false
36785
+ }],
36786
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36787
+ name: "deviceId",
36788
+ form: "single",
36789
+ optional: false
36790
+ }],
36791
+ "pipelineOrchestrator.setCameraStepOverride": [{
36792
+ name: "deviceId",
36793
+ form: "single",
36794
+ optional: false
36795
+ }],
36796
+ "pipelineOrchestrator.setCameraStepToggle": [{
36797
+ name: "deviceId",
36798
+ form: "single",
36799
+ optional: false
36800
+ }],
36801
+ "pipelineOrchestrator.setCameraSwitch": [{
36802
+ name: "deviceId",
36803
+ form: "single",
36804
+ optional: false
36805
+ }],
36806
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36807
+ name: "deviceId",
36808
+ form: "single",
36809
+ optional: false
36810
+ }],
36811
+ "pipelineOrchestrator.unassignAudio": [{
36812
+ name: "deviceId",
36813
+ form: "single",
36814
+ optional: false
36815
+ }],
36816
+ "pipelineOrchestrator.unassignPipeline": [{
36817
+ name: "deviceId",
36818
+ form: "single",
36819
+ optional: false
36820
+ }],
36821
+ "pipelineRunner.attachCamera": [{
36822
+ name: "deviceId",
36823
+ form: "single",
36824
+ optional: false
36825
+ }],
36826
+ "pipelineRunner.detachCamera": [{
36827
+ name: "deviceId",
36828
+ form: "single",
36829
+ optional: false
36830
+ }],
36831
+ "pipelineRunner.getCameraMetrics": [{
36832
+ name: "deviceId",
36833
+ form: "single",
36834
+ optional: false
36835
+ }],
36836
+ "pipelineRunner.reportMotion": [{
36837
+ name: "deviceId",
36838
+ form: "single",
36839
+ optional: false
36840
+ }],
36841
+ "pipelineRunner.runDetailSubtree": [{
36842
+ name: "deviceId",
36843
+ form: "single",
36844
+ optional: false
36845
+ }],
36846
+ "pipelineRunner.runStatelessStep": [{
36847
+ name: "sourceDeviceId",
36848
+ form: "single",
36849
+ optional: false
36850
+ }],
36851
+ "plateGallery.getPlateByTrack": [{
36852
+ name: "deviceId",
36853
+ form: "single",
36854
+ optional: false
36855
+ }],
36856
+ "plateGallery.listPlates": [{
36857
+ name: "deviceId",
36858
+ form: "single",
36859
+ optional: true
36860
+ }],
36861
+ "privacyMask.getOptions": [{
36862
+ name: "deviceId",
36863
+ form: "single",
36864
+ optional: false
36865
+ }],
36866
+ "privacyMask.setAudioEnabled": [{
36867
+ name: "deviceId",
36868
+ form: "single",
36869
+ optional: false
36870
+ }],
36871
+ "privacyMask.setMask": [{
36872
+ name: "deviceId",
36873
+ form: "single",
36874
+ optional: false
36875
+ }],
36876
+ "ptz.continuousMove": [{
36877
+ name: "deviceId",
36878
+ form: "single",
36879
+ optional: false
36880
+ }],
36881
+ "ptz.deletePreset": [{
36882
+ name: "deviceId",
36883
+ form: "single",
36884
+ optional: false
36885
+ }],
36886
+ "ptz.getOptions": [{
36887
+ name: "deviceId",
36888
+ form: "single",
36889
+ optional: false
36890
+ }],
36891
+ "ptz.getPosition": [{
36892
+ name: "deviceId",
36893
+ form: "single",
36894
+ optional: false
36895
+ }],
36896
+ "ptz.getPresets": [{
36897
+ name: "deviceId",
36898
+ form: "single",
36899
+ optional: false
36900
+ }],
36901
+ "ptz.goHome": [{
36902
+ name: "deviceId",
36903
+ form: "single",
36904
+ optional: false
36905
+ }],
36906
+ "ptz.goToPreset": [{
36907
+ name: "deviceId",
36908
+ form: "single",
36909
+ optional: false
36910
+ }],
36911
+ "ptz.move": [{
36912
+ name: "deviceId",
36913
+ form: "single",
36914
+ optional: false
36915
+ }],
36916
+ "ptz.savePreset": [{
36917
+ name: "deviceId",
36918
+ form: "single",
36919
+ optional: false
36920
+ }],
36921
+ "ptz.setAutofocus": [{
36922
+ name: "deviceId",
36923
+ form: "single",
36924
+ optional: false
36925
+ }],
36926
+ "ptz.stop": [{
36927
+ name: "deviceId",
36928
+ form: "single",
36929
+ optional: false
36930
+ }],
36931
+ "ptzAutotrack.getSettings": [{
36932
+ name: "deviceId",
36933
+ form: "single",
36934
+ optional: false
36935
+ }],
36936
+ "ptzAutotrack.getStatus": [{
36937
+ name: "deviceId",
36938
+ form: "single",
36939
+ optional: false
36940
+ }],
36941
+ "ptzAutotrack.setEnabled": [{
36942
+ name: "deviceId",
36943
+ form: "single",
36944
+ optional: false
36945
+ }],
36946
+ "ptzAutotrack.setSettings": [{
36947
+ name: "deviceId",
36948
+ form: "single",
36949
+ optional: false
36950
+ }],
36951
+ "reboot.reboot": [{
36952
+ name: "deviceId",
36953
+ form: "single",
36954
+ optional: false
36955
+ }],
36956
+ "recording.deleteFootprint": [{
36957
+ name: "deviceId",
36958
+ form: "single",
36959
+ optional: false
36960
+ }],
36961
+ "recording.getAvailability": [{
36962
+ name: "deviceId",
36963
+ form: "single",
36964
+ optional: false
36965
+ }],
36966
+ "recording.getDaysWithRecordings": [{
36967
+ name: "deviceId",
36968
+ form: "single",
36969
+ optional: false
36970
+ }],
36971
+ "recording.getDeviceConfig": [{
36972
+ name: "deviceId",
36973
+ form: "single",
36974
+ optional: false
36975
+ }],
36976
+ "recording.getPlaybackManifest": [{
36977
+ name: "deviceId",
36978
+ form: "single",
36979
+ optional: false
36980
+ }],
36981
+ "recording.listOpsLog": [{
36982
+ name: "deviceId",
36983
+ form: "single",
36984
+ optional: true
36985
+ }],
36986
+ "recording.locateSegment": [{
36987
+ name: "deviceId",
36988
+ form: "single",
36989
+ optional: false
36990
+ }],
36991
+ "recording.pruneFootage": [{
36992
+ name: "deviceId",
36993
+ form: "single",
36994
+ optional: false
36995
+ }],
36996
+ "recording.readGopBytes": [{
36997
+ name: "deviceId",
36998
+ form: "single",
36999
+ optional: false
37000
+ }],
37001
+ "recording.readSegmentBytes": [{
37002
+ name: "deviceId",
37003
+ form: "single",
37004
+ optional: false
37005
+ }],
37006
+ "recording.relocateFootage": [{
37007
+ name: "deviceId",
37008
+ form: "single",
37009
+ optional: true
37010
+ }],
37011
+ "recording.renderClip": [{
37012
+ name: "deviceId",
37013
+ form: "single",
37014
+ optional: false
37015
+ }],
37016
+ "recording.renderGif": [{
37017
+ name: "deviceId",
37018
+ form: "single",
37019
+ optional: false
37020
+ }],
37021
+ "recording.rescanStorage": [{
37022
+ name: "deviceId",
37023
+ form: "single",
37024
+ optional: false
37025
+ }],
37026
+ "recording.setDeviceConfig": [{
37027
+ name: "deviceId",
37028
+ form: "single",
37029
+ optional: false
37030
+ }],
37031
+ "recording.startStorageMigrationMove": [{
37032
+ name: "deviceId",
37033
+ form: "single",
37034
+ optional: true
37035
+ }],
37036
+ "recordingExport.createExport": [{
37037
+ name: "deviceId",
37038
+ form: "single",
37039
+ optional: false
37040
+ }],
37041
+ "recordingExport.listExports": [{
37042
+ name: "deviceId",
37043
+ form: "single",
37044
+ optional: true
37045
+ }],
37046
+ "sceneMonitor.captureReference": [{
37047
+ name: "deviceId",
37048
+ form: "single",
37049
+ optional: false
37050
+ }],
37051
+ "sceneMonitor.createScene": [{
37052
+ name: "deviceId",
37053
+ form: "single",
37054
+ optional: false
37055
+ }],
37056
+ "sceneMonitor.deleteReference": [{
37057
+ name: "deviceId",
37058
+ form: "single",
37059
+ optional: false
37060
+ }],
37061
+ "sceneMonitor.deleteScene": [{
37062
+ name: "deviceId",
37063
+ form: "single",
37064
+ optional: false
37065
+ }],
37066
+ "sceneMonitor.listScenes": [{
37067
+ name: "deviceId",
37068
+ form: "single",
37069
+ optional: false
37070
+ }],
37071
+ "sceneMonitor.recheckNow": [{
37072
+ name: "deviceId",
37073
+ form: "single",
37074
+ optional: false
37075
+ }],
37076
+ "sceneMonitor.resetScene": [{
37077
+ name: "deviceId",
37078
+ form: "single",
37079
+ optional: false
37080
+ }],
37081
+ "sceneMonitor.updateScene": [{
37082
+ name: "deviceId",
37083
+ form: "single",
37084
+ optional: false
37085
+ }],
37086
+ "scriptRunner.run": [{
37087
+ name: "deviceId",
37088
+ form: "single",
37089
+ optional: false
37090
+ }],
37091
+ "scriptRunner.stop": [{
37092
+ name: "deviceId",
37093
+ form: "single",
37094
+ optional: false
37095
+ }],
37096
+ "snapshot.getSnapshot": [{
37097
+ name: "deviceId",
37098
+ form: "single",
37099
+ optional: false
37100
+ }],
37101
+ "snapshot.getSnapshotLinks": [{
37102
+ name: "targets",
37103
+ form: "object-array",
37104
+ optional: false,
37105
+ itemField: "deviceId"
37106
+ }],
37107
+ "snapshot.getSnapshotOverview": [{
37108
+ name: "deviceIds",
37109
+ form: "array",
37110
+ optional: false
37111
+ }],
37112
+ "snapshot.invalidateCache": [{
37113
+ name: "deviceId",
37114
+ form: "single",
37115
+ optional: false
37116
+ }],
37117
+ "streamBroker.acquireEgressTranscode": [{
37118
+ name: "deviceId",
37119
+ form: "single",
37120
+ optional: false
37121
+ }],
37122
+ "streamBroker.assignProfile": [{
37123
+ name: "deviceId",
37124
+ form: "single",
37125
+ optional: false
37126
+ }],
37127
+ "streamBroker.getDeviceAudioMute": [{
37128
+ name: "deviceId",
37129
+ form: "single",
37130
+ optional: false
37131
+ }],
37132
+ "streamBroker.getStreamWithCodec": [{
37133
+ name: "deviceId",
37134
+ form: "single",
37135
+ optional: false
37136
+ }],
37137
+ "streamBroker.produceEventMedia": [{
37138
+ name: "deviceId",
37139
+ form: "single",
37140
+ optional: false
37141
+ }],
37142
+ "streamBroker.publishCameraStream": [{
37143
+ name: "deviceId",
37144
+ form: "single",
37145
+ optional: false
37146
+ }],
37147
+ "streamBroker.renderPreBufferClip": [{
37148
+ name: "deviceId",
37149
+ form: "single",
37150
+ optional: false
37151
+ }],
37152
+ "streamBroker.restartProfile": [{
37153
+ name: "deviceId",
37154
+ form: "single",
37155
+ optional: false
37156
+ }],
37157
+ "streamBroker.retractCameraStream": [{
37158
+ name: "deviceId",
37159
+ form: "single",
37160
+ optional: false
37161
+ }],
37162
+ "streamBroker.setDeviceAudioMute": [{
37163
+ name: "deviceId",
37164
+ form: "single",
37165
+ optional: false
37166
+ }],
37167
+ "streamBroker.unassignProfile": [{
37168
+ name: "deviceId",
37169
+ form: "single",
37170
+ optional: false
37171
+ }],
37172
+ "streamCatalog.getCatalog": [{
37173
+ name: "deviceId",
37174
+ form: "single",
37175
+ optional: false
37176
+ }],
37177
+ "streamParams.getConfigSchema": [{
37178
+ name: "deviceId",
37179
+ form: "single",
37180
+ optional: false
37181
+ }],
37182
+ "streamParams.getOptions": [{
37183
+ name: "deviceId",
37184
+ form: "single",
37185
+ optional: false
37186
+ }],
37187
+ "streamParams.setProfile": [{
37188
+ name: "deviceId",
37189
+ form: "single",
37190
+ optional: false
37191
+ }],
37192
+ "switch.setState": [{
37193
+ name: "deviceId",
37194
+ form: "single",
37195
+ optional: false
37196
+ }],
37197
+ "vacuumControl.locate": [{
37198
+ name: "deviceId",
37199
+ form: "single",
37200
+ optional: false
37201
+ }],
37202
+ "vacuumControl.pause": [{
37203
+ name: "deviceId",
37204
+ form: "single",
37205
+ optional: false
37206
+ }],
37207
+ "vacuumControl.returnToBase": [{
37208
+ name: "deviceId",
37209
+ form: "single",
37210
+ optional: false
37211
+ }],
37212
+ "vacuumControl.setFanSpeed": [{
37213
+ name: "deviceId",
37214
+ form: "single",
37215
+ optional: false
37216
+ }],
37217
+ "vacuumControl.start": [{
37218
+ name: "deviceId",
37219
+ form: "single",
37220
+ optional: false
37221
+ }],
37222
+ "vacuumControl.stop": [{
37223
+ name: "deviceId",
37224
+ form: "single",
37225
+ optional: false
37226
+ }],
37227
+ "valve.close": [{
37228
+ name: "deviceId",
37229
+ form: "single",
37230
+ optional: false
37231
+ }],
37232
+ "valve.open": [{
37233
+ name: "deviceId",
37234
+ form: "single",
37235
+ optional: false
37236
+ }],
37237
+ "valve.setPosition": [{
37238
+ name: "deviceId",
37239
+ form: "single",
37240
+ optional: false
37241
+ }],
37242
+ "valve.stop": [{
37243
+ name: "deviceId",
37244
+ form: "single",
37245
+ optional: false
37246
+ }],
37247
+ "videoclips.getClipPlayback": [{
37248
+ name: "deviceId",
37249
+ form: "single",
37250
+ optional: false
37251
+ }],
37252
+ "videoclips.listClips": [{
37253
+ name: "deviceId",
37254
+ form: "single",
37255
+ optional: false
37256
+ }],
37257
+ "waterHeater.setAway": [{
37258
+ name: "deviceId",
37259
+ form: "single",
37260
+ optional: false
37261
+ }],
37262
+ "waterHeater.setOperationMode": [{
37263
+ name: "deviceId",
37264
+ form: "single",
37265
+ optional: false
37266
+ }],
37267
+ "waterHeater.setTargetTemp": [{
37268
+ name: "deviceId",
37269
+ form: "single",
37270
+ optional: false
37271
+ }],
37272
+ "webrtcSession.addIceCandidate": [{
37273
+ name: "deviceId",
37274
+ form: "single",
37275
+ optional: false
37276
+ }],
37277
+ "webrtcSession.closeSession": [{
37278
+ name: "deviceId",
37279
+ form: "single",
37280
+ optional: false
37281
+ }],
37282
+ "webrtcSession.createSession": [{
37283
+ name: "deviceId",
37284
+ form: "single",
37285
+ optional: false
37286
+ }],
37287
+ "webrtcSession.getIceCandidates": [{
37288
+ name: "deviceId",
37289
+ form: "single",
37290
+ optional: false
37291
+ }],
37292
+ "webrtcSession.getSessionState": [{
37293
+ name: "deviceId",
37294
+ form: "single",
37295
+ optional: false
37296
+ }],
37297
+ "webrtcSession.handleAnswer": [{
37298
+ name: "deviceId",
37299
+ form: "single",
37300
+ optional: false
37301
+ }],
37302
+ "webrtcSession.handleOffer": [{
37303
+ name: "deviceId",
37304
+ form: "single",
37305
+ optional: false
37306
+ }],
37307
+ "webrtcSession.hasAdaptiveBitrate": [{
37308
+ name: "deviceId",
37309
+ form: "single",
37310
+ optional: false
37311
+ }],
37312
+ "webrtcSession.listStreams": [{
37313
+ name: "deviceId",
37314
+ form: "single",
37315
+ optional: false
37316
+ }],
37317
+ "zoneAnalytics.getCameraHistory": [{
37318
+ name: "deviceId",
37319
+ form: "single",
37320
+ optional: false
37321
+ }],
37322
+ "zoneAnalytics.getCurrentSnapshot": [{
37323
+ name: "deviceId",
37324
+ form: "single",
37325
+ optional: false
37326
+ }],
37327
+ "zoneAnalytics.getUnzonedHistory": [{
37328
+ name: "deviceId",
37329
+ form: "single",
37330
+ optional: false
37331
+ }],
37332
+ "zoneAnalytics.getZoneHistory": [{
37333
+ name: "deviceId",
37334
+ form: "single",
37335
+ optional: false
37336
+ }],
37337
+ "zoneRules.listRules": [{
37338
+ name: "deviceId",
37339
+ form: "single",
37340
+ optional: false
37341
+ }],
37342
+ "zoneRules.setRules": [{
37343
+ name: "deviceId",
37344
+ form: "single",
37345
+ optional: false
37346
+ }],
37347
+ "zones.addZone": [{
37348
+ name: "deviceId",
37349
+ form: "single",
37350
+ optional: false
37351
+ }],
37352
+ "zones.listZones": [{
37353
+ name: "deviceId",
37354
+ form: "single",
37355
+ optional: false
37356
+ }],
37357
+ "zones.removeZone": [{
37358
+ name: "deviceId",
37359
+ form: "single",
37360
+ optional: false
37361
+ }],
37362
+ "zones.updateZone": [{
37363
+ name: "deviceId",
37364
+ form: "single",
37365
+ optional: false
37366
+ }]
37367
+ });
34648
37368
  Object.freeze({
34649
37369
  "broker": "broker",
34650
37370
  "device-export": "device-export",