@camstack/addon-provider-wyze 0.2.16 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2809 -96
  2. package/dist/addon.mjs +2809 -96
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -9,7 +9,7 @@ import { spawn } from "node:child_process";
9
9
  //#region \0rolldown/runtime.js
10
10
  var __require$1 = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
- //#region ../types/dist/event-category-Cv9dO26A.mjs
12
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -216,6 +216,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
216
216
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
217
217
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
218
218
  /**
219
+ * A node the orchestrator would otherwise place cameras on has NO usable
220
+ * inference device: the operator enabled one or more accelerators there and
221
+ * the live probe reports every one of them unavailable. Emitted once per
222
+ * TRANSITION into that state (never per dispatch), and the node is dropped
223
+ * from the placement candidate set for as long as it holds.
224
+ *
225
+ * This exists because the state was previously invisible: little-unraid
226
+ * absorbed 283k inference errors in a day while still being handed cameras,
227
+ * and nothing in the system said so.
228
+ *
229
+ * A node with no accelerators configured at all is NOT this — its devices
230
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
231
+ * serves it exactly as before.
232
+ */
233
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
234
+ /**
235
+ * A camera has an OPEN detection session and has produced no detection at
236
+ * all for longer than the blind threshold — the camera is being decoded and
237
+ * inferred and is returning nothing. Emitted once per transition into blind,
238
+ * per camera.
239
+ *
240
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
241
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
242
+ * camera" produce byte-identical silence.
243
+ */
244
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
245
+ /**
219
246
  * Per-camera pipeline config was mutated by the orchestrator
220
247
  * (3-level settings change via `setAgentAddonDefaults` /
221
248
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3007,6 +3034,9 @@ function handlePipeResult(left, next, ctx) {
3007
3034
  fallback: left.fallback
3008
3035
  }, ctx);
3009
3036
  }
3037
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3038
+ $ZodPipe.init(inst, def);
3039
+ });
3010
3040
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3011
3041
  $ZodType.init(inst, def);
3012
3042
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5192,6 +5222,10 @@ function pipe(in_, out) {
5192
5222
  out
5193
5223
  });
5194
5224
  }
5225
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5226
+ ZodPipe.init(inst, def);
5227
+ $ZodPreprocess.init(inst, def);
5228
+ });
5195
5229
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5196
5230
  $ZodReadonly.init(inst, def);
5197
5231
  ZodType.init(inst, def);
@@ -5250,6 +5284,13 @@ function _instanceof(cls, params = {}) {
5250
5284
  };
5251
5285
  return inst;
5252
5286
  }
5287
+ function preprocess(fn, schema) {
5288
+ return new ZodPreprocess({
5289
+ type: "pipe",
5290
+ in: transform(fn),
5291
+ out: schema
5292
+ });
5293
+ }
5253
5294
  //#endregion
5254
5295
  //#region ../../node_modules/zod/v4/classic/compat.js
5255
5296
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10886,6 +10927,8 @@ var QueryFilterSchema = object({
10886
10927
  where: record(string(), unknown()).optional(),
10887
10928
  whereIn: record(string(), array(unknown())).optional(),
10888
10929
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10930
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10931
+ whereNot: record(string(), unknown()).optional(),
10889
10932
  orderBy: object({
10890
10933
  field: string(),
10891
10934
  direction: _enum(["asc", "desc"])
@@ -10905,7 +10948,8 @@ var QueryFilterSchema = object({
10905
10948
  var MutationFilterSchema = object({
10906
10949
  where: record(string(), unknown()).optional(),
10907
10950
  whereIn: record(string(), array(unknown())).optional(),
10908
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10951
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10952
+ whereNot: record(string(), unknown()).optional()
10909
10953
  });
10910
10954
  /** A single stored record: `{ id, data }`. */
10911
10955
  var SettingsRecordSchema = object({
@@ -12441,6 +12485,17 @@ var LlmImageSchema = object({
12441
12485
  bytes: _instanceof(Uint8Array),
12442
12486
  mimeType: string()
12443
12487
  });
12488
+ /**
12489
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12490
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12491
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12492
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12493
+ */
12494
+ var LlmRetryPolicySchema = object({
12495
+ enabled: boolean().default(false),
12496
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12497
+ maxAttempts: number().int().min(1).max(5).default(1)
12498
+ });
12444
12499
  var LlmGenerateBaseInputSchema = object({
12445
12500
  /** Collection routing (the notification-output posture). */
12446
12501
  addonId: string().optional(),
@@ -12455,7 +12510,28 @@ var LlmGenerateBaseInputSchema = object({
12455
12510
  jsonSchema: record(string(), unknown()).optional(),
12456
12511
  /** Per-call override of the profile default. */
12457
12512
  maxTokens: number().int().positive().optional(),
12458
- temperature: number().optional()
12513
+ temperature: number().optional(),
12514
+ /** Per-call override of the profile default (nucleus sampling). */
12515
+ topP: number().min(0).max(1).optional(),
12516
+ /** Per-call override of the profile default (top-k sampling). */
12517
+ topK: number().int().positive().optional(),
12518
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12519
+ timeoutMs: number().int().positive().optional(),
12520
+ /** Per-call override; beats both the consumer table and the profile. */
12521
+ retry: LlmRetryPolicySchema.optional(),
12522
+ /**
12523
+ * Caller-minted id that makes this generation CANCELLABLE.
12524
+ *
12525
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12526
+ * the call against 8 s and free their own slot when the timer wins, while the
12527
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12528
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12529
+ * not generations, and the real load is unbounded.
12530
+ *
12531
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12532
+ * `llm.cancel({ requestId })` tears the socket down.
12533
+ */
12534
+ requestId: string().optional()
12459
12535
  });
12460
12536
  /**
12461
12537
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12468,6 +12544,18 @@ var LlmGenerateBaseInputSchema = object({
12468
12544
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12469
12545
  * watchdog — operator decision #3).
12470
12546
  */
12547
+ /**
12548
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12549
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12550
+ * REF rather than looked up at install time, so what the operator approved in
12551
+ * the preview is exactly what the node downloads.
12552
+ */
12553
+ var ManagedModelExtraFileSchema = object({
12554
+ url: string(),
12555
+ filename: string(),
12556
+ sizeBytes: number(),
12557
+ sha256: string().optional()
12558
+ });
12471
12559
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12472
12560
  object({
12473
12561
  kind: literal("catalog"),
@@ -12476,7 +12564,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12476
12564
  object({
12477
12565
  kind: literal("url"),
12478
12566
  url: string(),
12479
- sha256: string().optional()
12567
+ sha256: string().optional(),
12568
+ /** Picker/status label; the file basename when absent. */
12569
+ label: string().optional(),
12570
+ sizeBytes: number().optional(),
12571
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12480
12572
  }),
12481
12573
  object({
12482
12574
  kind: literal("path"),
@@ -12494,13 +12586,82 @@ var ManagedRuntimeConfigSchema = object({
12494
12586
  gpuLayers: number().int().default(0),
12495
12587
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12496
12588
  threads: number().int().optional(),
12497
- /** Concurrent slots. */
12589
+ /** Concurrent slots (`--parallel`). */
12498
12590
  parallel: number().int().default(1),
12591
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12592
+ batchSize: number().int().positive().optional(),
12593
+ /** Physical batch / micro-batch (`-ub`). */
12594
+ ubatchSize: number().int().positive().optional(),
12595
+ /**
12596
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12597
+ * is a no-op elsewhere, so it is offered rather than assumed.
12598
+ */
12599
+ flashAttention: boolean().default(false),
12600
+ /**
12601
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12602
+ * inference. Costs the full model size in resident memory — which is exactly
12603
+ * what the RAM budget is counting.
12604
+ */
12605
+ mlock: boolean().default(false),
12606
+ /**
12607
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12608
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12609
+ * store produces on every first token.
12610
+ */
12611
+ noMmap: boolean().default(false),
12612
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12613
+ * cheapest way to fit a longer context in the same RAM. */
12614
+ cacheTypeK: _enum([
12615
+ "f32",
12616
+ "f16",
12617
+ "q8_0",
12618
+ "q5_1",
12619
+ "q5_0",
12620
+ "q4_1",
12621
+ "q4_0"
12622
+ ]).optional(),
12623
+ cacheTypeV: _enum([
12624
+ "f32",
12625
+ "f16",
12626
+ "q8_0",
12627
+ "q5_1",
12628
+ "q5_0",
12629
+ "q4_1",
12630
+ "q4_0"
12631
+ ]).optional(),
12632
+ /**
12633
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12634
+ * (which most vision chat templates need and some language-only models
12635
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12636
+ *
12637
+ * It is NOT a second place to set the flags above. A token that collides
12638
+ * with a typed field is REJECTED at start, naming the field that owns it
12639
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12640
+ * the "two switches that disagree" failure this repo has already shipped
12641
+ * twice (D62).
12642
+ */
12643
+ extraArgs: array(string()).default([]),
12499
12644
  /** Else lazy: first generate boots it. */
12500
12645
  autoStart: boolean().default(false),
12501
12646
  /** 0 = never; frees RAM after quiet periods. */
12502
12647
  idleStopMinutes: number().int().default(30)
12503
12648
  });
12649
+ /**
12650
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12651
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12652
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12653
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12654
+ */
12655
+ var LlmDownloadProgressSchema = object({
12656
+ phase: _enum(["downloading", "verifying"]),
12657
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12658
+ file: string(),
12659
+ fileIndex: number().int(),
12660
+ fileCount: number().int(),
12661
+ /** Across the WHOLE install, not the current file. */
12662
+ downloadedBytes: number(),
12663
+ totalBytes: number().optional()
12664
+ });
12504
12665
  var LlmRuntimeStatusSchema = object({
12505
12666
  /** Status is ALWAYS node-qualified. */
12506
12667
  nodeId: string(),
@@ -12517,6 +12678,8 @@ var LlmRuntimeStatusSchema = object({
12517
12678
  modelPath: string().optional(),
12518
12679
  modelId: string().optional(),
12519
12680
  downloadProgress: number().min(0).max(1).optional(),
12681
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12682
+ download: LlmDownloadProgressSchema.optional(),
12520
12683
  lastError: string().optional(),
12521
12684
  crashesInWindow: number(),
12522
12685
  /** Child RSS (sampled best-effort). */
@@ -12527,7 +12690,14 @@ var LlmNodeModelSchema = object({
12527
12690
  file: string(),
12528
12691
  sizeBytes: number(),
12529
12692
  catalogId: string().optional(),
12530
- installedAt: number().optional()
12693
+ installedAt: number().optional(),
12694
+ /**
12695
+ * Absolute path on the node. Present so a file that is on disk but matches
12696
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12697
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12698
+ * it the picker could list such a file and do nothing with it.
12699
+ */
12700
+ path: string().optional()
12531
12701
  });
12532
12702
  var LlmRuntimeDiskUsageSchema = object({
12533
12703
  nodeId: string(),
@@ -12583,10 +12753,47 @@ var LlmProfileSchema = object({
12583
12753
  baseUrl: string().optional(),
12584
12754
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12585
12755
  apiKey: string().optional(),
12756
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12757
+ * degraded to text — that shipped once and produced a confident answer to a
12758
+ * question about a picture nobody sent. */
12586
12759
  supportsVision: boolean(),
12587
12760
  temperature: number().min(0).max(2).optional(),
12761
+ /** Nucleus sampling. Every wire we speak has it. */
12762
+ topP: number().min(0).max(1).optional(),
12763
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12764
+ * wire does, and the client drops it there (measured: the request body gets
12765
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12766
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12767
+ topK: number().int().positive().optional(),
12588
12768
  maxTokens: number().int().positive().optional(),
12769
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12770
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12771
+ * the model with, so it is the one field that changes a PROCESS. */
12772
+ contextLength: number().int().positive().optional(),
12773
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12774
+ * two system prompts fighting is worse than either alone). */
12775
+ systemPrompt: string().optional(),
12776
+ /** Total generation bound — the only one a unary call has. */
12589
12777
  timeoutMs: number().int().positive().default(6e4),
12778
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12779
+ * response headers: on the LM Studio / llama-server wire those are written
12780
+ * once the model has finished loading, so they belong to the bound below. */
12781
+ connectTimeoutMs: number().int().positive().default(1e4),
12782
+ /** Accepted, but no output yet — response headers included, because a cold
12783
+ * GPU load is exactly what happens before them. */
12784
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12785
+ /** Output started then stopped. */
12786
+ idleTimeoutMs: number().int().positive().default(6e4),
12787
+ /** Profile-level default. The per-consumer table and a per-call override
12788
+ * both beat it — see `resolveRetryPolicy`. */
12789
+ retry: LlmRetryPolicySchema.default({
12790
+ enabled: false,
12791
+ maxAttempts: 1
12792
+ }),
12793
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12794
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12795
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12796
+ toolsEnabled: boolean().default(false),
12590
12797
  extraHeaders: record(string(), string()).optional(),
12591
12798
  /** kind === 'managed-local' only (spec §4). */
12592
12799
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12636,6 +12843,36 @@ var ManagedModelCatalogEntrySchema = object({
12636
12843
  /** Vision models: companion projector file. */
12637
12844
  mmprojUrl: string().optional()
12638
12845
  });
12846
+ /**
12847
+ * The outcome of turning one operator-typed Hugging Face reference into a
12848
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12849
+ * I will not pick for you" is a normal answer the UI has to render, not an
12850
+ * exception.
12851
+ *
12852
+ * `candidates` is the whole reason the refusal is usable — every string in it
12853
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12854
+ */
12855
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12856
+ ok: literal(true),
12857
+ /** Ready to hand to `installModel` unchanged. */
12858
+ model: ManagedModelRefSchema,
12859
+ label: string(),
12860
+ repo: string(),
12861
+ quantization: string(),
12862
+ purpose: _enum(["text", "vision"]),
12863
+ totalBytes: number(),
12864
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12865
+ * see that 0.9 GB of it is a projector they did not name. */
12866
+ extraFilenames: array(string())
12867
+ }), object({
12868
+ ok: literal(false),
12869
+ code: string(),
12870
+ message: string(),
12871
+ candidates: array(string()).optional(),
12872
+ /** Set when the refusal was only the ceiling: re-calling with
12873
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12874
+ requiredBytes: number().optional()
12875
+ })]);
12639
12876
  var LlmRuntimeNodeSchema = object({
12640
12877
  nodeId: string(),
12641
12878
  reachable: boolean(),
@@ -12648,7 +12885,10 @@ var ProfileRefInputSchema = object({
12648
12885
  addonId: string(),
12649
12886
  profileId: string()
12650
12887
  });
12651
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12888
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12889
+ addonId: string().optional(),
12890
+ requestId: string()
12891
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12652
12892
  kind: "mutation",
12653
12893
  auth: "admin"
12654
12894
  }), method(ProfileRefInputSchema, _void(), {
@@ -12669,6 +12909,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12669
12909
  consumer: string().optional(),
12670
12910
  profileId: string().optional()
12671
12911
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12912
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12913
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12914
+ ref: string(),
12915
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12916
+ maxBytes: number().positive().optional()
12917
+ }), HfModelResolutionSchema, {
12918
+ kind: "mutation",
12919
+ auth: "admin"
12920
+ }), method(object({
12672
12921
  nodeId: string(),
12673
12922
  model: ManagedModelRefSchema
12674
12923
  }), _void(), {
@@ -14316,6 +14565,8 @@ var NcSystemEventKindSchema = _enum([
14316
14565
  "stream-offline",
14317
14566
  "node-online",
14318
14567
  "node-offline",
14568
+ "node-inference-unavailable",
14569
+ "detection-blind",
14319
14570
  "addon-update-available",
14320
14571
  "server-update-available",
14321
14572
  "alarm-triggered",
@@ -14377,7 +14628,16 @@ var NcScheduleSchema = object({
14377
14628
  });
14378
14629
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14379
14630
  var NcPlateMatcherSchema = object({
14380
- values: array(string().min(1)).min(1),
14631
+ /**
14632
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14633
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14634
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14635
+ * rather than merely seen. A subject carrying no plate still fails.
14636
+ *
14637
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14638
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14639
+ */
14640
+ values: array(string().min(1)),
14381
14641
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14382
14642
  maxDistance: number().int().min(0).max(3).default(1)
14383
14643
  });
@@ -14411,28 +14671,36 @@ var NcOccupancyConditionSchema = object({
14411
14671
  /**
14412
14672
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14413
14673
  *
14414
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14415
- * reference notifier uses, so an operator moving between them re-uses what
14416
- * they already know): a rule matches when, over a sampling window of
14417
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14418
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14419
- *
14420
- * - `dbThreshold` its level is at or above this many dBFS (see
14421
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14422
- * - `labels` the classifier put at least one of these labels on it.
14423
- *
14424
- * Both are OPTIONAL and independent, which is the point of the shape: a
14425
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14426
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14427
- * is given** a window in which every sample is trivially a hit would fire on
14428
- * silence, so the engine refuses such a condition rather than notifying on
14429
- * nothing (the schema cannot express "at least one of" without becoming a
14430
- * ZodEffects the cap path would have to special-case).
14431
- *
14432
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14433
- * must be FULL before it can match a window that has been open for two
14434
- * seconds of its ten is 100% of nothing, and firing on it would make
14435
- * `samplingSeconds` decorative.
14674
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14675
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14676
+ * there is no second switch that can disagree with the first and every rule
14677
+ * authored before the decision migrates for free (`audioModeOf`):
14678
+ *
14679
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14680
+ * classifier labels with one of them. No window, no percentage:
14681
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14682
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14683
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14684
+ * reaches this condition if the classifier was already confident enough.
14685
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14686
+ * the condition: at least `hitPercent`% of the samples over
14687
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14688
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14689
+ * must be FULL before it can match a window open for two of its ten
14690
+ * seconds is 100% of nothing.
14691
+ *
14692
+ * **Why label mode has no window.** It had one, and it never fired: the
14693
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14694
+ * of them per episode, even through continuous crying. The measured maximum
14695
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14696
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14697
+ * the wrong question to ask of a sparse classifier.
14698
+ *
14699
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14700
+ * and the rule would fire on silence. The schema cannot express "exactly one
14701
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14702
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14703
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14436
14704
  *
14437
14705
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14438
14706
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14440,13 +14708,13 @@ var NcOccupancyConditionSchema = object({
14440
14708
  * an operator who typed `dog` mean the same thing.
14441
14709
  */
14442
14710
  var NcAudioConditionSchema = object({
14443
- /** Audio macro labels; absent = any sound (level-only rule). */
14711
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14444
14712
  labels: array(string().min(1)).min(1).optional(),
14445
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14713
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14446
14714
  dbThreshold: number().min(-96).max(0).optional(),
14447
- /** Percentage of the window's samples that must be hits (1–100). */
14715
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14448
14716
  hitPercent: number().int().min(1).max(100).default(60),
14449
- /** Length of the sampling window in seconds. */
14717
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14450
14718
  samplingSeconds: number().int().min(1).max(300).default(10)
14451
14719
  });
14452
14720
  /**
@@ -14584,13 +14852,81 @@ var NcRuleActionsSchema = object({
14584
14852
  */
14585
14853
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14586
14854
  });
14855
+ /**
14856
+ * "This rule applies only while `deviceId` is in one of `states`."
14857
+ *
14858
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14859
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14860
+ * make the condition lie about devices whose states have no equivalent.
14861
+ *
14862
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14863
+ * condition that fired on "I could not read it" would be worse than no gate.
14864
+ */
14865
+ var NcDeviceStateConditionSchema = object({
14866
+ deviceId: number().int(),
14867
+ /** Any of these matches. */
14868
+ states: array(string().min(1)).min(1)
14869
+ });
14870
+ /**
14871
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14872
+ *
14873
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14874
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14875
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14876
+ * already has a trigger ("tell me about a person at the front door, but only
14877
+ * while the bin is still out"). That is why it composes with every delivery
14878
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14879
+ * kind exist for it — see D159.
14880
+ *
14881
+ * ── Identity ───────────────────────────────────────────────────────────────
14882
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14883
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14884
+ * carried as a HINT for the editor and for the log line, never as part of the
14885
+ * lookup key: a rule whose hint drifted must still gate correctly.
14886
+ *
14887
+ * ── Which boolean ──────────────────────────────────────────────────────────
14888
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14889
+ * already declares which boolean drives notification rules, and a second knob
14890
+ * that could disagree with it is exactly the D62 failure. Set it only to
14891
+ * override one rule against the scene's own default.
14892
+ *
14893
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14894
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14895
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14896
+ * evidence, in either direction.
14897
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14898
+ * The latch is a durable fact about the past ("it has diverged since I armed
14899
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14900
+ * reason the operator asked for a latch.
14901
+ *
14902
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14903
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14904
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14905
+ * said out loud in the log rather than dropped in silence.
14906
+ */
14907
+ var NcSceneConditionSchema = object({
14908
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14909
+ sceneId: string().min(1),
14910
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14911
+ deviceId: number().int().optional(),
14912
+ /** The state the scene must be in for the rule to fire. */
14913
+ requiredState: _enum(["matched", "diverged"]),
14914
+ /**
14915
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14916
+ * scene's own `emit` field, which is the only place that decision belongs.
14917
+ */
14918
+ latched: boolean().optional()
14919
+ });
14587
14920
  var NcConditionsSchema = object({
14588
14921
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14589
- deviceState: object({
14590
- deviceId: number().int(),
14591
- /** Any of these matches. */
14592
- states: array(string().min(1)).min(1)
14593
- }).optional(),
14922
+ deviceState: NcDeviceStateConditionSchema.optional(),
14923
+ /**
14924
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14925
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14926
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14927
+ * {@link NcSceneCondition} and D159.
14928
+ */
14929
+ scene: NcSceneConditionSchema.optional(),
14594
14930
  /** Device scope — absent = all devices. */
14595
14931
  devices: array(number()).optional(),
14596
14932
  /** Detector class names (any overlap with the record's class set). */
@@ -14616,18 +14952,47 @@ var NcConditionsSchema = object({
14616
14952
  */
14617
14953
  labelEquals: array(string().min(1)).optional(),
14618
14954
  /**
14619
- * Identity matcher. P1 boundary: matched against the record's collapsed
14620
- * `label` (the identity display name propagated by the face pipeline) —
14621
- * identity-ID matching rides in P2 when identity ids reach the record.
14955
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14956
+ * is about recognised people at all.
14957
+ *
14958
+ * Three states, and the empty one is the point:
14959
+ *
14960
+ * | value | meaning |
14961
+ * | --- | --- |
14962
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14963
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14964
+ * | a list | only these identities |
14965
+ *
14966
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14967
+ * `devices` list is every device), applied one level down: the operator has
14968
+ * turned the face scope ON and narrowed it to nothing, which is every known
14969
+ * face. No second field states the same thing — a switch that can disagree
14970
+ * with the list under it is worse than no switch (D62).
14971
+ *
14972
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14973
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14974
+ * the operator fixed the spelling. The id reaches the record on
14975
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14976
+ * `{{label}}` renders.
14977
+ *
14978
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14979
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14980
+ * for is left as it stands and reported, never dropped. The engine also
14981
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14982
+ * migration could not resolve keeps matching exactly what it matched before.
14622
14983
  */
14623
14984
  identities: array(string().min(1)).optional(),
14624
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14985
+ /**
14986
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14987
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14988
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14989
+ */
14625
14990
  plates: NcPlateMatcherSchema.optional(),
14626
14991
  /**
14627
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14628
- * Same P1 boundary: matched against the record's collapsed `label` (the
14629
- * identity display name). A record with NO label passes (nothing to
14630
- * exclude), unlike the include variant which fails on an absent label.
14992
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14993
+ * the same id members and the same lazy name→id migration. A record with NO
14994
+ * identity passes (nothing to exclude), unlike the include variant which
14995
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14631
14996
  */
14632
14997
  identitiesExclude: array(string().min(1)).optional(),
14633
14998
  /**
@@ -15019,7 +15384,80 @@ var NcRuleInputSchema = object({
15019
15384
  * a rule that predates the gate must keep delivering byte-for-byte as it
15020
15385
  * did, and absent is the only way to say that without a migration.
15021
15386
  */
15022
- confirm: NcConfirmSchema.optional()
15387
+ confirm: NcConfirmSchema.optional(),
15388
+ /**
15389
+ * WAIT for face/plate recognition before saying anything.
15390
+ *
15391
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15392
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15393
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15394
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15395
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15396
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15397
+ *
15398
+ * Only two honest answers exist, and this flag picks between them. It has
15399
+ * effect ONLY on a rule that declares a recognition scope
15400
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15401
+ * other rule there is nothing to wait for and the flag is inert.
15402
+ *
15403
+ * | value | what happens |
15404
+ * | --- | --- |
15405
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15406
+ * | 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) |
15407
+ *
15408
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15409
+ * on the addon cap path, and absent has to keep meaning exactly what every
15410
+ * rule authored before this field meant.
15411
+ *
15412
+ * The cost of `true` is stated here because the editor states it too: a rule
15413
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15414
+ * tests every zone the track visited and a `crossing` condition can no longer
15415
+ * be satisfied, because a closed track carries no crossing.
15416
+ */
15417
+ waitForEnhancement: boolean().optional(),
15418
+ /**
15419
+ * GROUP a burst of subjects into ONE notification that grows.
15420
+ *
15421
+ * Seconds of quiet after the last matching subject before the burst is
15422
+ * considered over. While it is open, the first subject enqueues immediately —
15423
+ * **exactly as today, with no added latency** — and every real growth (a new
15424
+ * subject, or a name confirmed on one already in it) REPLACES that
15425
+ * notification with an updated one naming everybody. The push carries the
15426
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15427
+ *
15428
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15429
+ *
15430
+ * ### Why an idle cutoff and not a window
15431
+ *
15432
+ * The measured seven-person arrival on device 590 spans 110 s with every
15433
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15434
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15435
+ * 30 is Frigate's shipped value for the same decision.
15436
+ *
15437
+ * ### What it replaces
15438
+ *
15439
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15440
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15441
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15442
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15443
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15444
+ * budget over GROUPS — which is what it always meant — and a growth is never
15445
+ * throttled by the window its own first member spent.
15446
+ *
15447
+ * ### Interaction with {@link waitForEnhancement}
15448
+ *
15449
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15450
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15451
+ * CLOSE — already carrying its name — and grows as later members close. That
15452
+ * is later, and complete. With grouping alone the group opens on the first
15453
+ * object event and picks up names as they are confirmed, through the growth
15454
+ * path. Neither combination fires twice for one subject.
15455
+ *
15456
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15457
+ * on the addon cap path, so absent must keep meaning what it meant before this
15458
+ * field existed.
15459
+ */
15460
+ groupIdleSec: number().int().min(0).max(600).optional()
15023
15461
  });
15024
15462
  /**
15025
15463
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15126,6 +15564,7 @@ var NcConditionDescriptorSchema = object({
15126
15564
  "occupancy",
15127
15565
  "audio",
15128
15566
  "deviceState",
15567
+ "scene",
15129
15568
  "systemEvent"
15130
15569
  ]),
15131
15570
  operator: _enum([
@@ -15531,7 +15970,87 @@ var MethodAccessSchema = _enum([
15531
15970
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15532
15971
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15533
15972
  var CapScopeSchema = _enum(["device", "system"]);
15534
- var TokenScopeSchema = discriminatedUnion("type", [
15973
+ /**
15974
+ * DeviceSelector (scope model v3 — 2026-08-12).
15975
+ *
15976
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15977
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15978
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15979
+ * AFTER the grant was minted — no re-grant, no re-login.
15980
+ *
15981
+ * - `all` — every device in the deployment. The broad viewer/operator
15982
+ * lever without a `category` grant (a `category` grant also covers device
15983
+ * caps that carry no deviceId; `all` is specifically the device set).
15984
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15985
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15986
+ * is NOT covered until the grant is edited.
15987
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15988
+ * DYNAMIC. A device that changes type, or a new device of the type,
15989
+ * re-resolves on the next request.
15990
+ * - `locations` — every device whose operator-assigned `location` label is
15991
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15992
+ * null/unset location matches NO `locations` selector.
15993
+ */
15994
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15995
+ object({ kind: literal("all") }),
15996
+ object({
15997
+ kind: literal("ids"),
15998
+ ids: array(number().int()).min(1)
15999
+ }),
16000
+ object({
16001
+ kind: literal("types"),
16002
+ types: array(_enum(DeviceType)).min(1)
16003
+ }),
16004
+ object({
16005
+ kind: literal("locations"),
16006
+ locations: array(string().min(1)).min(1)
16007
+ })
16008
+ ]);
16009
+ var DeviceTokenScopeSchema = object({
16010
+ type: literal("device"),
16011
+ /** The device SET this grant covers — resolved against the live fleet. */
16012
+ selector: DeviceSelectorSchema,
16013
+ access: array(MethodAccessSchema).min(1),
16014
+ /**
16015
+ * Whether a grant on a PARENT device transparently covers its accessory
16016
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16017
+ * Direction is parent → children ONLY.
16018
+ *
16019
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16020
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16021
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16022
+ * operator must grant on the child, not inherit from the parent). Set it
16023
+ * explicitly to override that default per grant.
16024
+ */
16025
+ includeLinked: boolean().optional()
16026
+ });
16027
+ /**
16028
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16029
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16030
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16031
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16032
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16033
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16034
+ * migration cannot reach a JWT already in a client's hands; parse-time
16035
+ * migration covers both without a flag day. No cast — the raw object is read
16036
+ * through `Reflect.get` (its static type is `unknown`).
16037
+ */
16038
+ function migrateLegacyTokenScope(raw) {
16039
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16040
+ if (Reflect.get(raw, "type") !== "device") return raw;
16041
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16042
+ const targets = Reflect.get(raw, "targets");
16043
+ if (!Array.isArray(targets)) return raw;
16044
+ return {
16045
+ type: "device",
16046
+ selector: {
16047
+ kind: "ids",
16048
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16049
+ },
16050
+ access: Reflect.get(raw, "access")
16051
+ };
16052
+ }
16053
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15535
16054
  object({
15536
16055
  type: literal("category"),
15537
16056
  target: CapScopeSchema,
@@ -15547,18 +16066,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15547
16066
  target: string(),
15548
16067
  access: array(MethodAccessSchema).min(1)
15549
16068
  }),
15550
- object({
15551
- type: literal("device"),
15552
- /**
15553
- * One or more deviceIds (serialised as strings for wire-format
15554
- * consistency with the rest of the union). Matcher accepts if
15555
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15556
- * of one scope-per-device when granting access to a set of cameras.
15557
- */
15558
- targets: array(string()).min(1),
15559
- access: array(MethodAccessSchema).min(1)
15560
- })
15561
- ]);
16069
+ DeviceTokenScopeSchema
16070
+ ]));
15562
16071
  object({
15563
16072
  id: string(),
15564
16073
  username: string(),
@@ -15875,7 +16384,7 @@ var TrackEnvelopeSchema = object({
15875
16384
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15876
16385
  * keeps every scalar the list surfaces actually render (ids, class(es),
15877
16386
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15878
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16387
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15879
16388
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15880
16389
  * `getTrack`. Mirrors the event-store `projection` convention
15881
16390
  * (`getObjectEvents` et al.).
@@ -16011,7 +16520,21 @@ union([literal(1), literal(2)]);
16011
16520
  var LabelAttributionSchema = object({
16012
16521
  stepId: string(),
16013
16522
  modelId: string().optional(),
16014
- decidedAt: number()
16523
+ decidedAt: number(),
16524
+ /**
16525
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16526
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16527
+ *
16528
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16529
+ * notification rule authored on "Gianluca" stopped matching the moment the
16530
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16531
+ * the thing that does not move, so it is what a rule matches on
16532
+ * (`NcConditions.identities`) and the text is what a human is shown.
16533
+ *
16534
+ * Absent when the label names no gallery row — a plate the OCR read but no
16535
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16536
+ */
16537
+ identityId: string().optional()
16015
16538
  });
16016
16539
  /**
16017
16540
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16148,6 +16671,28 @@ var TrackSchema = object({
16148
16671
  * `=== true` and render nothing otherwise, never infer "no face".
16149
16672
  */
16150
16673
  hasFace: boolean().optional(),
16674
+ /**
16675
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16676
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16677
+ * so the passage is tracked once and as a VEHICLE.
16678
+ *
16679
+ * It exists because the fold's record was dishonest. D34 and the code both
16680
+ * said "the person is not lost — it is reported so both entities stay on the
16681
+ * record"; in fact the pair went into a per-processor RAM field behind an
16682
+ * accessor nobody called, and every durable surface said `vehicle`, full
16683
+ * stop. This is the composition note that makes the row true.
16684
+ *
16685
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16686
+ * person" is not an answer to "what is this" — both label tiers would refuse
16687
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16688
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16689
+ * and a `person` rule still does not fire for someone cycling past.
16690
+ *
16691
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16692
+ * the column, and every hub that predates the field, omits it. Test
16693
+ * `=== true` and render nothing otherwise — never infer "no rider".
16694
+ */
16695
+ hasRider: boolean().optional(),
16151
16696
  ...TrackFlagFields,
16152
16697
  ...TrackRetrainFields
16153
16698
  });
@@ -16497,7 +17042,10 @@ var RecentTracksQueryInput = object({
16497
17042
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16498
17043
  cursor: string().optional(),
16499
17044
  /** See {@link TrackProjectionSchema}. Default `full`. */
16500
- projection: TrackProjectionSchema.optional()
17045
+ projection: TrackProjectionSchema.optional(),
17046
+ /** Include stationary-promoted rows (parked objects). Default false: the
17047
+ * feed lists passages; parking records live on the stationary registry. */
17048
+ includeStationary: boolean().optional()
16501
17049
  });
16502
17050
  var RecentTracksPageSchema = object({
16503
17051
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16715,7 +17263,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16715
17263
  zone: TrackZoneFilterSchema.optional(),
16716
17264
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16717
17265
  * compatible — omitting the field keeps today's exact behaviour). */
16718
- projection: TrackProjectionSchema.optional()
17266
+ projection: TrackProjectionSchema.optional(),
17267
+ /** Include stationary-promoted rows (parked objects handed to the
17268
+ * stationary registry). Default false: the timeline lists passages,
17269
+ * not parking records (operator decision, 2026-08-15). */
17270
+ includeStationary: boolean().optional()
16719
17271
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16720
17272
  kind: "mutation",
16721
17273
  auth: "admin"
@@ -16879,11 +17431,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16879
17431
  auth: "admin"
16880
17432
  }), method(object({
16881
17433
  eventId: string(),
16882
- kind: MediaFileKindEnum.optional()
17434
+ kind: MediaFileKindEnum.optional(),
17435
+ deviceId: number()
17436
+ }), array(MediaFileSchema).readonly()), method(object({
17437
+ trackId: string(),
17438
+ kinds: array(MediaFileKindEnum).optional(),
17439
+ deviceId: number()
16883
17440
  }), array(MediaFileSchema).readonly()), method(object({
16884
17441
  trackId: string(),
16885
- kinds: array(MediaFileKindEnum).optional()
16886
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17442
+ deviceId: number()
17443
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16887
17444
  kind: "mutation",
16888
17445
  auth: "admin"
16889
17446
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17583,6 +18140,17 @@ var maxSessionHoldMsField = {
17583
18140
  default: 12e4,
17584
18141
  step: 5e3
17585
18142
  };
18143
+ /**
18144
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18145
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18146
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18147
+ */
18148
+ var audioMotionWindowMsField = {
18149
+ min: 5e3,
18150
+ max: 6e5,
18151
+ default: 9e4,
18152
+ step: 5e3
18153
+ };
17586
18154
  var motionFpsField = {
17587
18155
  min: 1,
17588
18156
  max: 30,
@@ -17614,7 +18182,7 @@ var detectionFpsField = {
17614
18182
  var occupancyRecheckSecField = {
17615
18183
  min: 0,
17616
18184
  max: 300,
17617
- default: 30,
18185
+ default: 300,
17618
18186
  step: 5
17619
18187
  };
17620
18188
  var occupancyRecheckFramesField = {
@@ -17759,6 +18327,27 @@ var RunnerCameraConfigSchema = object({
17759
18327
  * resolved `CameraDetectionConfig`.
17760
18328
  */
17761
18329
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18330
+ /**
18331
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18332
+ * 'on-motion'` audio window, measured from the LAST motion event.
18333
+ *
18334
+ * This exists because the falling edge cannot be relied on. Camera-native
18335
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18336
+ * its email-push SMTP path both emit `detected: true` and never the
18337
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18338
+ * onboard-only camera a window that closed only on `detected: false` never
18339
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18340
+ * battery camera, the one failure mode the mode exists to prevent.
18341
+ *
18342
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18343
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18344
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18345
+ *
18346
+ * Not consumed by the runner: carried here so it shares the per-camera
18347
+ * device-settings surface with `motionCooldownMs`, exactly like
18348
+ * `maxSessionHoldMs`.
18349
+ */
18350
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17762
18351
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17763
18352
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17764
18353
  motionStreamId: string(),
@@ -17854,7 +18443,7 @@ var RunnerCameraConfigSchema = object({
17854
18443
  */
17855
18444
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17856
18445
  });
17857
- 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;
18446
+ 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;
17858
18447
  /**
17859
18448
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17860
18449
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18887,6 +19476,39 @@ var snapshotCapability = {
18887
19476
  etag: string().nullable()
18888
19477
  }))),
18889
19478
  /**
19479
+ * The full decision chain for ONE device, for the viewer's debug readout —
19480
+ * the answer to "why does this tile show what it shows" in a single poll:
19481
+ * the battery slice the state was derived from, the resolved state + its
19482
+ * reason, the cached frame's identity/age, whether a wake window is open,
19483
+ * and whether a fresh capture is in flight. Cache-only and capture-free:
19484
+ * a debug read must never wake a battery camera.
19485
+ */
19486
+ getDebugState: systemMethod(object({ deviceId: number() }), object({
19487
+ /** The battery slice as read, or null when the device has none. */
19488
+ battery: object({
19489
+ sleeping: boolean(),
19490
+ lastUpdated: number(),
19491
+ lastContactAt: number().optional()
19492
+ }).nullable(),
19493
+ /** The resolved snapshot state (what the overlay decision used). */
19494
+ state: object({
19495
+ isBattery: boolean(),
19496
+ reason: _enum([
19497
+ "disabled",
19498
+ "sleeping",
19499
+ "unreachable",
19500
+ "waking"
19501
+ ]).nullable()
19502
+ }),
19503
+ /** The cached frame behind the next paint. */
19504
+ frame: object({
19505
+ capturedAt: number().nullable(),
19506
+ ageMs: number().nullable()
19507
+ }),
19508
+ /** A wake window is currently open (the Waking overlay's source). */
19509
+ waking: boolean()
19510
+ })),
19511
+ /**
18890
19512
  * Signed, expiring links to a CLIENT-SIZED frame — and the demand signal
18891
19513
  * that makes those frames current.
18892
19514
  *
@@ -18959,7 +19581,16 @@ targets: array(object({
18959
19581
  /** A sleeping battery camera: the frame is deliberately stale and will
18960
19582
  * NOT refresh in the background. A surface should say so rather than
18961
19583
  * present it as current. */
18962
- sleeping: boolean()
19584
+ sleeping: boolean(),
19585
+ /** Current device state rendered over the cached frame. State images
19586
+ * remain authoritative even when their photographic background is
19587
+ * old; null means the link must carry a current camera frame. */
19588
+ stateReason: _enum([
19589
+ "disabled",
19590
+ "sleeping",
19591
+ "unreachable",
19592
+ "waking"
19593
+ ]).nullable()
18963
19594
  })))
18964
19595
  },
18965
19596
  status: {
@@ -20619,6 +21250,25 @@ var BatteryStatusSchema = object({
20619
21250
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20620
21251
  lastUpdated: number(),
20621
21252
  /**
21253
+ * Ms epoch of the last time the device PROVED it was reachable — a
21254
+ * completed firmware round-trip, an observed wake, or an inbound push
21255
+ * (firmware event, email). `0`/absent = never since this slice was born.
21256
+ *
21257
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21258
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21259
+ * for the radio, because a poll that confirms reachability is the same
21260
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21261
+ * single derivation every consumer must use; no surface computes its own.
21262
+ *
21263
+ * It is deliberately NOT a clock in the
21264
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21265
+ * observation itself, and it is the only thing a 30-hour silence is
21266
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21267
+ * Reolink provider) so a value that means "recently" cannot cost a
21268
+ * SQLite commit per round-trip.
21269
+ */
21270
+ lastContactAt: number().optional(),
21271
+ /**
20622
21272
  * True when the source is a BINARY low-battery indicator (HA
20623
21273
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20624
21274
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22980,7 +23630,41 @@ var intercomCapability = {
22980
23630
  status: {
22981
23631
  schema: IntercomStatusSchema,
22982
23632
  kind: "command-driven"
22983
- }
23633
+ },
23634
+ /**
23635
+ * Runtime-state slice — mirrored by the kernel.
23636
+ *
23637
+ * The cap declared `status` and nothing else, so the only two sources an
23638
+ * exporter has for a value — the `device.state-changed` slice event and the
23639
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23640
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23641
+ * have been published and never received a value, which is the defect the
23642
+ * export's two classification tables exist to prevent (177 of them, once), so
23643
+ * `intercom` was excluded rather than exported.
23644
+ *
23645
+ * The shape is the status shape: there is exactly one truth about talk-back
23646
+ * and duplicating it into a second schema is how two halves of one capability
23647
+ * come to disagree. Providers write it through
23648
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23649
+ * and close a session, and seed it at registration so the slice exists before
23650
+ * the first session rather than after it.
23651
+ *
23652
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23653
+ * session handle, so a session torn down by a transport death that never
23654
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23655
+ * session or the next restart. That is why the slice is `session` and not
23656
+ * `restored` — a restart must never restore "talking".
23657
+ */
23658
+ runtimeState: IntercomStatusSchema,
23659
+ /**
23660
+ * Runtime-state durability: **session** — `talking` describes a live audio
23661
+ * session, which by definition does not survive the process that held it.
23662
+ * Restoring it would publish a camera as talking to nobody.
23663
+ *
23664
+ * See `RuntimeStateDurability`. Enforced by
23665
+ * `scripts/check-runtime-state-durability.ts`.
23666
+ */
23667
+ durability: "session"
22984
23668
  };
22985
23669
  /**
22986
23670
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
@@ -25678,7 +26362,7 @@ method(object({
25678
26362
  toMs: number()
25679
26363
  }), RecordingAvailabilitySchema, {
25680
26364
  kind: "query",
25681
- auth: "admin"
26365
+ auth: "protected"
25682
26366
  }), method(object({
25683
26367
  deviceId: number(),
25684
26368
  fromMs: number(),
@@ -25686,14 +26370,14 @@ method(object({
25686
26370
  tzOffsetMinutes: number()
25687
26371
  }), RecordingDaysSchema, {
25688
26372
  kind: "query",
25689
- auth: "admin"
26373
+ auth: "protected"
25690
26374
  }), method(object({
25691
26375
  deviceId: number(),
25692
26376
  fromMs: number(),
25693
26377
  toMs: number()
25694
26378
  }), RecordingManifestSchema, {
25695
26379
  kind: "query",
25696
- auth: "admin"
26380
+ auth: "protected"
25697
26381
  }), method(object({}), RecordingStorageUsageSchema, {
25698
26382
  kind: "query",
25699
26383
  auth: "admin"
@@ -25983,14 +26667,77 @@ method(object({
25983
26667
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25984
26668
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25985
26669
  *
25986
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25987
- * derives the device-detail contribution; the provider carries NO hand-written
25988
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25989
- * every hysteresis flip / availability change; consumers never poll.
25990
- */
25991
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25992
- * be added without a wire break (matching falls back to any-condition refs). */
26670
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26671
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26672
+ * for the thing: a scene is a standing question about the property ("is the bin
26673
+ * still out"), and the operator's question is "which of my scenes have tripped",
26674
+ * across every camera at once — not "what does camera 617 think". Buried one
26675
+ * camera deep it also could not be found. The surface is now a top-level admin
26676
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26677
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26678
+ *
26679
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26680
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26681
+ * directions, so a registration nobody declares fails exactly as loudly as a
26682
+ * declaration nobody registers. The editor is imported directly by the page.
26683
+ *
26684
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26685
+ * availability change; consumers never poll.
26686
+ */
26687
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26688
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26689
+ * Open by design so more can be added without a wire break.
26690
+ *
26691
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26692
+ * not comparable, so "I have never seen this scene in this light" is reported
26693
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26694
+ * collapses the cosine and would latch a false alarm every single night. */
25993
26695
  var SceneConditionSchema = string();
26696
+ /**
26697
+ * What a scene does when the CURRENT light has no reference of its own.
26698
+ *
26699
+ * The lighting variants are not equally likely to exist. Almost every operator
26700
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26701
+ * scene that is only ever going to be asked about a daytime question ("is the
26702
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26703
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26704
+ * working without it rather than degrading into a permanent complaint.
26705
+ *
26706
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26707
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26708
+ * last covered light left it at, the latch is untouched, and the hysteresis
26709
+ * run is neither spent nor cleared. The scene resumes by itself at first
26710
+ * light. This is the only behaviour under which "I never captured IR" is a
26711
+ * configuration choice instead of a nightly fault.
26712
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26713
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26714
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26715
+ * cross-condition cosines are not comparable, so a day reference against a
26716
+ * true IR frame collapses and the scene reports a theft at 21:40.
26717
+ *
26718
+ * Never applies when the scene has NO comparable reference at all — that is
26719
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26720
+ * there would hide a scene the operator never finished setting up.
26721
+ */
26722
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26723
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26724
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26725
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26726
+ * and never counts toward hysteresis in either direction. */
26727
+ var SceneVerdictSchema = _enum([
26728
+ "matched",
26729
+ "diverged",
26730
+ "unknown"
26731
+ ]);
26732
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26733
+ * silence that reads as "nothing has happened". */
26734
+ var SceneUnavailableSchema = _enum([
26735
+ "no-reference-for-condition",
26736
+ "view-shifted",
26737
+ "no-vision-profile",
26738
+ "encoder-model-changed",
26739
+ "no-snapshot"
26740
+ ]);
25994
26741
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25995
26742
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25996
26743
  var SceneReferenceSchema = object({
@@ -25998,7 +26745,14 @@ var SceneReferenceSchema = object({
25998
26745
  modelId: string(),
25999
26746
  condition: SceneConditionSchema,
26000
26747
  capturedAt: number(),
26001
- thumbnailMediaId: string().optional()
26748
+ thumbnailMediaId: string().optional(),
26749
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26750
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26751
+ * normalized rect frame a different piece of world, and the scene would
26752
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26753
+ * when hysteresis is about to flip — one extra encode per candidate
26754
+ * transition, not per poll. */
26755
+ anchorEmbedding: array(number()).optional()
26002
26756
  });
26003
26757
  var SceneMonitorStateSchema = object({
26004
26758
  id: string(),
@@ -26020,6 +26774,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26020
26774
  profileId: string().optional(),
26021
26775
  hysteresisCount: number().int().positive()
26022
26776
  })]);
26777
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26778
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26779
+ * out in silence rather than reporting a fault every night. */
26780
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26781
+ /**
26782
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26783
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26784
+ *
26785
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26786
+ * fail-open: a notification suppressed is the worse error there, but a vision
26787
+ * model that timed out has not told us the bin is gone, and a latch is a
26788
+ * stateful claim that costs the operator a trip to reset.
26789
+ */
26790
+ var SceneConfirmSchema = object({
26791
+ enabled: boolean().default(false),
26792
+ prompt: string().min(1).max(1e3),
26793
+ profileId: string().optional(),
26794
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26795
+ maxImagePx: number().int().min(64).max(2048).default(448),
26796
+ /** What a timeout / unavailable model means for the PENDING flip. */
26797
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26798
+ });
26023
26799
  var SceneMonitorSchema = object({
26024
26800
  id: string(),
26025
26801
  label: string(),
@@ -26038,7 +26814,56 @@ var SceneMonitorSchema = object({
26038
26814
  lastConfidence: number().nullable(),
26039
26815
  currentCondition: SceneConditionSchema.nullable(),
26040
26816
  availability: _enum(["ok", "unavailable"]),
26041
- unavailableReason: string().nullable()
26817
+ unavailableReason: string().nullable(),
26818
+ /** Which state is "the initial screen". `null` until the first capture. */
26819
+ baselineStateId: string().nullable(),
26820
+ /** Which boolean drives notification rules and any export. */
26821
+ emit: _enum(["latched", "live"]).default("latched"),
26822
+ /** Live: does the region match the baseline RIGHT NOW. */
26823
+ verdict: SceneVerdictSchema,
26824
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26825
+ latched: boolean(),
26826
+ /** Last reset (or creation). */
26827
+ armedAt: number(),
26828
+ divergedAt: number().nullable(),
26829
+ restoredAt: number().nullable(),
26830
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26831
+ * during the window DISCARDS the observation — a car pulling up in front of
26832
+ * the bin must not be able to spend hysteresis credit. */
26833
+ quietSeconds: number().int().min(0).max(3600).default(60),
26834
+ /** An observation only advances the pending count when it is at least this
26835
+ * far from the previously counted one, so N agreeing checks span real time
26836
+ * rather than N adjacent polls inside one occlusion. */
26837
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26838
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26839
+ confirm: SceneConfirmSchema.optional(),
26840
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26841
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26842
+ /** Clear the latch on its own when the scene matches again? Default false —
26843
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26844
+ * automation can react to the bin coming back without the operator's own
26845
+ * alarm silently clearing itself. */
26846
+ autoRestore: boolean().default(false),
26847
+ /** What to do when the current light has no reference of its own. See
26848
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26849
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26850
+ /**
26851
+ * The light whose checks are currently being SAT OUT under
26852
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26853
+ *
26854
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26855
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26856
+ * nothing captured in this light"* in the same calm voice as the coverage
26857
+ * line, because the alternative is a scene that silently stops answering
26858
+ * after sunset with nothing anywhere saying why. A skipped check must never
26859
+ * read as a broken one.
26860
+ */
26861
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26862
+ /** Named cause when `verdict === 'unknown'`. */
26863
+ unavailable: SceneUnavailableSchema.nullable(),
26864
+ /** Conditions that have at least one comparable reference — the coverage line
26865
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26866
+ coveredConditions: array(SceneConditionSchema)
26042
26867
  });
26043
26868
  var SceneMonitorStatusSchema = object({
26044
26869
  monitors: array(SceneMonitorSchema),
@@ -26051,12 +26876,6 @@ var sceneMonitorCapability = {
26051
26876
  kind: "wrapper",
26052
26877
  defaultActive: true,
26053
26878
  deviceTypes: [DeviceType.Camera],
26054
- deviceConfig: { ui: {
26055
- kind: "widget",
26056
- widgetId: "host/scene-monitor-editor",
26057
- tab: "scenes",
26058
- label: "Scenes"
26059
- } },
26060
26879
  methods: {
26061
26880
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26062
26881
  createScene: method(object({
@@ -26087,7 +26906,15 @@ var sceneMonitorCapability = {
26087
26906
  "both"
26088
26907
  ]).optional(),
26089
26908
  checkIntervalSec: number().optional(),
26090
- check: SceneCheckSchema.optional()
26909
+ check: SceneCheckSchema.optional(),
26910
+ emit: _enum(["latched", "live"]).optional(),
26911
+ quietSeconds: number().int().min(0).max(3600).optional(),
26912
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26913
+ anchorThreshold: number().min(0).max(1).optional(),
26914
+ autoRestore: boolean().optional(),
26915
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26916
+ /** `null` clears the vision-model adjudicator. */
26917
+ confirm: SceneConfirmSchema.nullable().optional()
26091
26918
  })
26092
26919
  }), _void(), {
26093
26920
  kind: "mutation",
@@ -26128,6 +26955,26 @@ var sceneMonitorCapability = {
26128
26955
  }), _void(), {
26129
26956
  kind: "mutation",
26130
26957
  auth: "admin"
26958
+ }),
26959
+ /**
26960
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26961
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26962
+ * "reset" in the operator's head means *this is the new normal*, and
26963
+ * re-capture is what makes the feature self-healing against slow drift
26964
+ * instead of failing silently weeks later.
26965
+ *
26966
+ * Reachable from three surfaces on this one mutation: the scene card, a
26967
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
26968
+ * no new Notification-Center code at all), and tRPC for scripts.
26969
+ */
26970
+ resetScene: method(object({
26971
+ deviceId: number(),
26972
+ monitorId: string(),
26973
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
26974
+ recapture: boolean().optional()
26975
+ }), _void(), {
26976
+ kind: "mutation",
26977
+ auth: "admin"
26131
26978
  })
26132
26979
  },
26133
26980
  status: {
@@ -26370,13 +27217,63 @@ var CamStreamDescriptorSchema = object({
26370
27217
  * set of stream descriptors it can offer for the device, synchronously, so the
26371
27218
  * broker can reconcile its registry against the authoritative provider state.
26372
27219
  */
27220
+ /**
27221
+ * The catalog as a DURABLE fact rather than a live answer.
27222
+ *
27223
+ * A battery camera's descriptors are profile-stable — they change when the
27224
+ * operator rewrites an encoder profile, not minute to minute — but building
27225
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27226
+ * provider is allowed to build them exactly once per profile and must serve
27227
+ * every later pull from a cache.
27228
+ *
27229
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27230
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27231
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27232
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27233
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27234
+ * which on a battery cam is most of the day. The camera was fine. The stream
27235
+ * was unreachable because the process had forgotten what the camera offers.
27236
+ *
27237
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27238
+ * declared collection, with the same `restored` durability `battery` uses for
27239
+ * the same reason: the last known value is the only value there is while the
27240
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27241
+ * is the DIAL that wakes a camera, never the catalog (D173).
27242
+ */
27243
+ var StreamCatalogStateSchema = object({
27244
+ /** The descriptors as last built from a real camera response. Never a guess:
27245
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27246
+ * one the camera itself once produced. */
27247
+ descriptors: array(CamStreamDescriptorSchema),
27248
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27249
+ * path decide whether the camera's own awake window is worth spending on a
27250
+ * re-read. */
27251
+ lastFetchedAt: number()
27252
+ });
26373
27253
  var streamCatalogCapability = {
26374
27254
  name: "stream-catalog",
26375
27255
  scope: "device",
26376
27256
  deviceNative: true,
26377
27257
  mode: "singleton",
26378
27258
  deviceTypes: [DeviceType.Camera],
26379
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
27259
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27260
+ runtimeState: StreamCatalogStateSchema,
27261
+ /**
27262
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27263
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27264
+ * camera that cannot be watched at all until it happens to wake.
27265
+ *
27266
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27267
+ * build, and a build only runs when there is no cached copy (or the copy is
27268
+ * a day old and the camera is awake anyway).
27269
+ *
27270
+ * See `RuntimeStateDurability`. Enforced by
27271
+ * `scripts/check-runtime-state-durability.ts`.
27272
+ */
27273
+ durability: "restored",
27274
+ /** Clock field: written, but excluded from the compare that decides whether
27275
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27276
+ volatileStateFields: ["lastFetchedAt"]
26380
27277
  };
26381
27278
  /** One of the camera's stream profiles. */
26382
27279
  var StreamProfileSchema = _enum([
@@ -26631,12 +27528,64 @@ var NetworkAddressSchema = object({
26631
27528
  family: string(),
26632
27529
  internal: boolean()
26633
27530
  });
27531
+ /**
27532
+ * Provenance of the site coordinates, and the whole reason this is not just two
27533
+ * numbers.
27534
+ *
27535
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27536
+ * nothing overwrites it.
27537
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27538
+ * default that is right to a few kilometres beats the coarse UTC clock split
27539
+ * the sun-times consumers otherwise fall back to.
27540
+ *
27541
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27542
+ * own input will eventually trust the guess.
27543
+ */
27544
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27545
+ /**
27546
+ * The read shape: the location plus the honest state of the one-shot derivation.
27547
+ *
27548
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27549
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27550
+ * failed; the hub will NOT try again on its own — the fallback is declared
27551
+ * (consumers degrade to their own last resort) and the operator either types the
27552
+ * coordinates or presses detect.
27553
+ */
27554
+ var SiteLocationStatusSchema = object({
27555
+ location: object({
27556
+ /** WGS84 decimal degrees. */
27557
+ latitude: number().min(-90).max(90),
27558
+ longitude: number().min(-180).max(180),
27559
+ source: SiteLocationSourceSchema,
27560
+ /** Epoch ms the value was last written. */
27561
+ updatedAt: number(),
27562
+ /**
27563
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27564
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27565
+ */
27566
+ label: string().optional()
27567
+ }).nullable(),
27568
+ derivationAttemptedAt: number().nullable(),
27569
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27570
+ derivationError: string().nullable()
27571
+ });
27572
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27573
+ var SetSiteLocationInputSchema = object({
27574
+ latitude: number().min(-90).max(90),
27575
+ longitude: number().min(-180).max(180)
27576
+ }).nullable();
26634
27577
  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(), {
26635
27578
  kind: "mutation",
26636
27579
  auth: "admin"
26637
27580
  }), method(_void(), _void(), {
26638
27581
  kind: "mutation",
26639
27582
  auth: "admin"
27583
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27584
+ kind: "mutation",
27585
+ auth: "admin"
27586
+ }), method(_void(), SiteLocationStatusSchema, {
27587
+ kind: "mutation",
27588
+ auth: "admin"
26640
27589
  });
26641
27590
  /**
26642
27591
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27956,6 +28905,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27956
28905
  humiditySensor: humiditySensorCapability,
27957
28906
  image: imageCapability,
27958
28907
  imageSettings: imageSettingsCapability,
28908
+ intercom: intercomCapability,
27959
28909
  lawnMowerControl: lawnMowerControlCapability,
27960
28910
  lockControl: lockControlCapability,
27961
28911
  mediaPlayer: mediaPlayerCapability,
@@ -27974,6 +28924,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27974
28924
  sceneMonitor: sceneMonitorCapability,
27975
28925
  scriptRunner: scriptRunnerCapability,
27976
28926
  smoke: smokeCapability,
28927
+ streamCatalog: streamCatalogCapability,
27977
28928
  streamParams: streamParamsCapability,
27978
28929
  switch: switchCapability,
27979
28930
  tamper: tamperCapability,
@@ -28627,6 +29578,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28627
29578
  labels: ["probe not implemented"]
28628
29579
  };
28629
29580
  }
29581
+ /**
29582
+ * Top-level devices restored at once in {@link onRestoreDevices}.
29583
+ *
29584
+ * Four covers the fleets this ships to without turning a boot into a burst a
29585
+ * camera NVR answers with a refusal. A provider whose upstream is a single
29586
+ * session with a serial command channel (a Baichuan hub, an NVR that
29587
+ * serialises ISAPI) should lower it; nothing needs to raise it.
29588
+ */
29589
+ restoreConcurrency = 4;
28630
29590
  async restoreDevices(savedDevices) {
28631
29591
  await this.onRestoreDevices(savedDevices);
28632
29592
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -28658,15 +29618,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28658
29618
  */
28659
29619
  async onRestoreDevices(savedDevices) {
28660
29620
  const restored = /* @__PURE__ */ new Set();
28661
- for (const saved of savedDevices) {
28662
- if (saved.parentDeviceId !== null) continue;
29621
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
29622
+ const restoreOne = async (saved) => {
28663
29623
  const Class = this.deviceClasses[saved.type];
28664
29624
  if (!Class) {
28665
29625
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
28666
29626
  tags: { stableId: saved.stableId },
28667
29627
  meta: { type: saved.type }
28668
29628
  });
28669
- continue;
29629
+ return;
28670
29630
  }
28671
29631
  try {
28672
29632
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -28680,7 +29640,15 @@ var BaseDeviceProvider = class extends BaseAddon {
28680
29640
  }
28681
29641
  });
28682
29642
  }
28683
- }
29643
+ };
29644
+ let nextTopLevel = 0;
29645
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
29646
+ for (;;) {
29647
+ const saved = topLevel[nextTopLevel++];
29648
+ if (saved === void 0) return;
29649
+ await restoreOne(saved);
29650
+ }
29651
+ }));
28684
29652
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
28685
29653
  for (const saved of childRows) {
28686
29654
  const Class = this.deviceClasses[saved.type];
@@ -30771,6 +31739,12 @@ Object.freeze({
30771
31739
  addonId: null,
30772
31740
  access: "create"
30773
31741
  },
31742
+ "llm.cancel": {
31743
+ capName: "llm",
31744
+ capScope: "system",
31745
+ addonId: null,
31746
+ access: "create"
31747
+ },
30774
31748
  "llm.deleteModel": {
30775
31749
  capName: "llm",
30776
31750
  capScope: "system",
@@ -30855,6 +31829,12 @@ Object.freeze({
30855
31829
  addonId: null,
30856
31830
  access: "view"
30857
31831
  },
31832
+ "llm.resolveModelRef": {
31833
+ capName: "llm",
31834
+ capScope: "system",
31835
+ addonId: null,
31836
+ access: "create"
31837
+ },
30858
31838
  "llm.setDefault": {
30859
31839
  capName: "llm",
30860
31840
  capScope: "system",
@@ -33021,6 +34001,12 @@ Object.freeze({
33021
34001
  addonId: null,
33022
34002
  access: "create"
33023
34003
  },
34004
+ "sceneMonitor.resetScene": {
34005
+ capName: "scene-monitor",
34006
+ capScope: "device",
34007
+ addonId: null,
34008
+ access: "delete"
34009
+ },
33024
34010
  "sceneMonitor.updateScene": {
33025
34011
  capName: "scene-monitor",
33026
34012
  capScope: "device",
@@ -33159,6 +34145,12 @@ Object.freeze({
33159
34145
  addonId: null,
33160
34146
  access: "view"
33161
34147
  },
34148
+ "snapshot.getDebugState": {
34149
+ capName: "snapshot",
34150
+ capScope: "device",
34151
+ addonId: null,
34152
+ access: "view"
34153
+ },
33162
34154
  "snapshot.getSnapshot": {
33163
34155
  capName: "snapshot",
33164
34156
  capScope: "device",
@@ -33699,6 +34691,12 @@ Object.freeze({
33699
34691
  addonId: null,
33700
34692
  access: "create"
33701
34693
  },
34694
+ "system.detectSiteLocation": {
34695
+ capName: "system",
34696
+ capScope: "system",
34697
+ addonId: null,
34698
+ access: "create"
34699
+ },
33702
34700
  "system.featureFlags": {
33703
34701
  capName: "system",
33704
34702
  capScope: "system",
@@ -33717,6 +34715,12 @@ Object.freeze({
33717
34715
  addonId: null,
33718
34716
  access: "view"
33719
34717
  },
34718
+ "system.getSiteLocation": {
34719
+ capName: "system",
34720
+ capScope: "system",
34721
+ addonId: null,
34722
+ access: "view"
34723
+ },
33720
34724
  "system.health": {
33721
34725
  capName: "system",
33722
34726
  capScope: "system",
@@ -33741,6 +34745,12 @@ Object.freeze({
33741
34745
  addonId: null,
33742
34746
  access: "create"
33743
34747
  },
34748
+ "system.setSiteLocation": {
34749
+ capName: "system",
34750
+ capScope: "system",
34751
+ addonId: null,
34752
+ access: "create"
34753
+ },
33744
34754
  "terminalSession.adoptLegacyMonitor": {
33745
34755
  capName: "terminal-session",
33746
34756
  capScope: "system",
@@ -34312,6 +35322,1709 @@ Object.freeze({
34312
35322
  access: "create"
34313
35323
  }
34314
35324
  });
35325
+ Object.freeze({
35326
+ "accessories.setChildHidden": [{
35327
+ name: "childDeviceId",
35328
+ form: "single",
35329
+ optional: false
35330
+ }, {
35331
+ name: "deviceId",
35332
+ form: "single",
35333
+ optional: false
35334
+ }],
35335
+ "addonSettings.getDeviceSettings": [{
35336
+ name: "deviceId",
35337
+ form: "single",
35338
+ optional: false
35339
+ }],
35340
+ "addonSettings.updateDeviceSettings": [{
35341
+ name: "deviceId",
35342
+ form: "single",
35343
+ optional: false
35344
+ }],
35345
+ "alarmPanel.arm": [{
35346
+ name: "deviceId",
35347
+ form: "single",
35348
+ optional: false
35349
+ }],
35350
+ "alarmPanel.disarm": [{
35351
+ name: "deviceId",
35352
+ form: "single",
35353
+ optional: false
35354
+ }],
35355
+ "alarmPanel.trigger": [{
35356
+ name: "deviceId",
35357
+ form: "single",
35358
+ optional: false
35359
+ }],
35360
+ "audioAnalysis.resolveDeviceSettings": [{
35361
+ name: "deviceId",
35362
+ form: "single",
35363
+ optional: false
35364
+ }],
35365
+ "audioAnalyzer.classify": [{
35366
+ name: "deviceId",
35367
+ form: "single",
35368
+ optional: true
35369
+ }],
35370
+ "audioMetrics.getCurrentSnapshot": [{
35371
+ name: "deviceId",
35372
+ form: "single",
35373
+ optional: false
35374
+ }],
35375
+ "audioMetrics.getHistory": [{
35376
+ name: "deviceId",
35377
+ form: "single",
35378
+ optional: false
35379
+ }],
35380
+ "automationControl.disable": [{
35381
+ name: "deviceId",
35382
+ form: "single",
35383
+ optional: false
35384
+ }],
35385
+ "automationControl.enable": [{
35386
+ name: "deviceId",
35387
+ form: "single",
35388
+ optional: false
35389
+ }],
35390
+ "automationControl.trigger": [{
35391
+ name: "deviceId",
35392
+ form: "single",
35393
+ optional: false
35394
+ }],
35395
+ "battery.wakeForStream": [{
35396
+ name: "deviceId",
35397
+ form: "single",
35398
+ optional: false
35399
+ }],
35400
+ "brightness.setBrightness": [{
35401
+ name: "deviceId",
35402
+ form: "single",
35403
+ optional: false
35404
+ }],
35405
+ "button.press": [{
35406
+ name: "deviceId",
35407
+ form: "single",
35408
+ optional: false
35409
+ }],
35410
+ "cameraCredentials.getCredentials": [{
35411
+ name: "deviceId",
35412
+ form: "single",
35413
+ optional: false
35414
+ }],
35415
+ "cameraStreams.getBrokerStreams": [{
35416
+ name: "deviceId",
35417
+ form: "single",
35418
+ optional: false
35419
+ }],
35420
+ "cameraStreams.getCameraStreams": [{
35421
+ name: "deviceId",
35422
+ form: "single",
35423
+ optional: false
35424
+ }],
35425
+ "cameraStreams.getProfileRtspEntries": [{
35426
+ name: "deviceId",
35427
+ form: "single",
35428
+ optional: false
35429
+ }],
35430
+ "cameraStreams.getRtspEntries": [{
35431
+ name: "deviceId",
35432
+ form: "single",
35433
+ optional: false
35434
+ }],
35435
+ "cameraStreams.pickStream": [{
35436
+ name: "deviceId",
35437
+ form: "single",
35438
+ optional: false
35439
+ }],
35440
+ "climateControl.setFanMode": [{
35441
+ name: "deviceId",
35442
+ form: "single",
35443
+ optional: false
35444
+ }],
35445
+ "climateControl.setMode": [{
35446
+ name: "deviceId",
35447
+ form: "single",
35448
+ optional: false
35449
+ }],
35450
+ "climateControl.setPreset": [{
35451
+ name: "deviceId",
35452
+ form: "single",
35453
+ optional: false
35454
+ }],
35455
+ "climateControl.setSwingHorizontal": [{
35456
+ name: "deviceId",
35457
+ form: "single",
35458
+ optional: false
35459
+ }],
35460
+ "climateControl.setSwingVertical": [{
35461
+ name: "deviceId",
35462
+ form: "single",
35463
+ optional: false
35464
+ }],
35465
+ "climateControl.setTarget": [{
35466
+ name: "deviceId",
35467
+ form: "single",
35468
+ optional: false
35469
+ }],
35470
+ "climateControl.setTargetHumidity": [{
35471
+ name: "deviceId",
35472
+ form: "single",
35473
+ optional: false
35474
+ }],
35475
+ "climateControl.setTargetRange": [{
35476
+ name: "deviceId",
35477
+ form: "single",
35478
+ optional: false
35479
+ }],
35480
+ "color.setColor": [{
35481
+ name: "deviceId",
35482
+ form: "single",
35483
+ optional: false
35484
+ }],
35485
+ "consumables.reset": [{
35486
+ name: "deviceId",
35487
+ form: "single",
35488
+ optional: false
35489
+ }],
35490
+ "control.setValue": [{
35491
+ name: "deviceId",
35492
+ form: "single",
35493
+ optional: false
35494
+ }],
35495
+ "cover.close": [{
35496
+ name: "deviceId",
35497
+ form: "single",
35498
+ optional: false
35499
+ }],
35500
+ "cover.open": [{
35501
+ name: "deviceId",
35502
+ form: "single",
35503
+ optional: false
35504
+ }],
35505
+ "cover.setPosition": [{
35506
+ name: "deviceId",
35507
+ form: "single",
35508
+ optional: false
35509
+ }],
35510
+ "cover.setTiltPosition": [{
35511
+ name: "deviceId",
35512
+ form: "single",
35513
+ optional: false
35514
+ }],
35515
+ "cover.stop": [{
35516
+ name: "deviceId",
35517
+ form: "single",
35518
+ optional: false
35519
+ }],
35520
+ "dayNight.getOptions": [{
35521
+ name: "deviceId",
35522
+ form: "single",
35523
+ optional: false
35524
+ }],
35525
+ "dayNight.setSettings": [{
35526
+ name: "deviceId",
35527
+ form: "single",
35528
+ optional: false
35529
+ }],
35530
+ "decoder.createSession": [{
35531
+ name: "deviceId",
35532
+ form: "single",
35533
+ optional: true
35534
+ }],
35535
+ "deviceAdoption.release": [{
35536
+ name: "camDeviceId",
35537
+ form: "single",
35538
+ optional: false
35539
+ }],
35540
+ "deviceAdoption.resync": [{
35541
+ name: "camDeviceId",
35542
+ form: "single",
35543
+ optional: false
35544
+ }],
35545
+ "deviceDiscovery.adoptDevice": [{
35546
+ name: "deviceId",
35547
+ form: "single",
35548
+ optional: false
35549
+ }],
35550
+ "deviceDiscovery.listDiscovered": [{
35551
+ name: "deviceId",
35552
+ form: "single",
35553
+ optional: false
35554
+ }],
35555
+ "deviceDiscovery.refreshDiscovery": [{
35556
+ name: "deviceId",
35557
+ form: "single",
35558
+ optional: false
35559
+ }],
35560
+ "deviceDiscovery.releaseDevice": [{
35561
+ name: "childDeviceId",
35562
+ form: "single",
35563
+ optional: false
35564
+ }, {
35565
+ name: "deviceId",
35566
+ form: "single",
35567
+ optional: false
35568
+ }],
35569
+ "deviceManager.adoptionRelease": [{
35570
+ name: "camDeviceId",
35571
+ form: "single",
35572
+ optional: false
35573
+ }],
35574
+ "deviceManager.adoptionResync": [{
35575
+ name: "camDeviceId",
35576
+ form: "single",
35577
+ optional: false
35578
+ }],
35579
+ "deviceManager.applyInitialMeta": [{
35580
+ name: "deviceId",
35581
+ form: "single",
35582
+ optional: false
35583
+ }, {
35584
+ name: "linkDeviceId",
35585
+ form: "single",
35586
+ optional: true
35587
+ }],
35588
+ "deviceManager.disable": [{
35589
+ name: "deviceId",
35590
+ form: "single",
35591
+ optional: false
35592
+ }],
35593
+ "deviceManager.enable": [{
35594
+ name: "deviceId",
35595
+ form: "single",
35596
+ optional: false
35597
+ }],
35598
+ "deviceManager.getBindings": [{
35599
+ name: "deviceId",
35600
+ form: "single",
35601
+ optional: false
35602
+ }],
35603
+ "deviceManager.getChildren": [{
35604
+ name: "parentDeviceId",
35605
+ form: "single",
35606
+ optional: false
35607
+ }],
35608
+ "deviceManager.getConfigSchema": [{
35609
+ name: "deviceId",
35610
+ form: "single",
35611
+ optional: false
35612
+ }],
35613
+ "deviceManager.getDevice": [{
35614
+ name: "deviceId",
35615
+ form: "single",
35616
+ optional: false
35617
+ }],
35618
+ "deviceManager.getDeviceAggregate": [{
35619
+ name: "deviceId",
35620
+ form: "single",
35621
+ optional: false
35622
+ }],
35623
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35624
+ name: "deviceId",
35625
+ form: "single",
35626
+ optional: false
35627
+ }],
35628
+ "deviceManager.getDeviceSettingsAggregate": [{
35629
+ name: "deviceId",
35630
+ form: "single",
35631
+ optional: false
35632
+ }],
35633
+ "deviceManager.getDeviceStatusAggregate": [{
35634
+ name: "deviceId",
35635
+ form: "single",
35636
+ optional: false
35637
+ }],
35638
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35639
+ name: "deviceIds",
35640
+ form: "array",
35641
+ optional: false
35642
+ }],
35643
+ "deviceManager.getLinkedDevices": [{
35644
+ name: "deviceId",
35645
+ form: "single",
35646
+ optional: false
35647
+ }],
35648
+ "deviceManager.getSettingsSchema": [{
35649
+ name: "deviceId",
35650
+ form: "single",
35651
+ optional: false
35652
+ }],
35653
+ "deviceManager.getStreamProfileMap": [{
35654
+ name: "deviceId",
35655
+ form: "single",
35656
+ optional: false
35657
+ }],
35658
+ "deviceManager.getStreamSources": [{
35659
+ name: "deviceId",
35660
+ form: "single",
35661
+ optional: false
35662
+ }],
35663
+ "deviceManager.getWireableFields": [{
35664
+ name: "deviceId",
35665
+ form: "single",
35666
+ optional: false
35667
+ }],
35668
+ "deviceManager.loadConfig": [{
35669
+ name: "deviceId",
35670
+ form: "single",
35671
+ optional: false
35672
+ }],
35673
+ "deviceManager.loadMeta": [{
35674
+ name: "deviceId",
35675
+ form: "single",
35676
+ optional: false
35677
+ }],
35678
+ "deviceManager.loadRuntimeState": [{
35679
+ name: "deviceId",
35680
+ form: "single",
35681
+ optional: false
35682
+ }],
35683
+ "deviceManager.persistConfig": [{
35684
+ name: "deviceId",
35685
+ form: "single",
35686
+ optional: false
35687
+ }],
35688
+ "deviceManager.probeStreams": [{
35689
+ name: "deviceId",
35690
+ form: "single",
35691
+ optional: false
35692
+ }],
35693
+ "deviceManager.registerDevice": [{
35694
+ name: "parentDeviceId",
35695
+ form: "single",
35696
+ optional: true
35697
+ }],
35698
+ "deviceManager.remove": [{
35699
+ name: "deviceId",
35700
+ form: "single",
35701
+ optional: false
35702
+ }],
35703
+ "deviceManager.removeDevice": [{
35704
+ name: "deviceId",
35705
+ form: "single",
35706
+ optional: false
35707
+ }],
35708
+ "deviceManager.runDeviceAction": [{
35709
+ name: "deviceId",
35710
+ form: "single",
35711
+ optional: false
35712
+ }],
35713
+ "deviceManager.setChildLayout": [{
35714
+ name: "deviceId",
35715
+ form: "single",
35716
+ optional: false
35717
+ }],
35718
+ "deviceManager.setDisabled": [{
35719
+ name: "deviceId",
35720
+ form: "single",
35721
+ optional: false
35722
+ }],
35723
+ "deviceManager.setDisplay": [{
35724
+ name: "deviceId",
35725
+ form: "single",
35726
+ optional: false
35727
+ }],
35728
+ "deviceManager.setIntegrationId": [{
35729
+ name: "deviceId",
35730
+ form: "single",
35731
+ optional: false
35732
+ }],
35733
+ "deviceManager.setLinkDeviceId": [{
35734
+ name: "deviceId",
35735
+ form: "single",
35736
+ optional: false
35737
+ }, {
35738
+ name: "linkDeviceId",
35739
+ form: "single",
35740
+ optional: true
35741
+ }],
35742
+ "deviceManager.setLocation": [{
35743
+ name: "deviceId",
35744
+ form: "single",
35745
+ optional: false
35746
+ }],
35747
+ "deviceManager.setMetadata": [{
35748
+ name: "deviceId",
35749
+ form: "single",
35750
+ optional: false
35751
+ }],
35752
+ "deviceManager.setName": [{
35753
+ name: "deviceId",
35754
+ form: "single",
35755
+ optional: false
35756
+ }],
35757
+ "deviceManager.setPrimaryChildEntityId": [{
35758
+ name: "deviceId",
35759
+ form: "single",
35760
+ optional: false
35761
+ }],
35762
+ "deviceManager.setRole": [{
35763
+ name: "deviceId",
35764
+ form: "single",
35765
+ optional: false
35766
+ }],
35767
+ "deviceManager.setStreamProfileMap": [{
35768
+ name: "deviceId",
35769
+ form: "single",
35770
+ optional: false
35771
+ }],
35772
+ "deviceManager.setType": [{
35773
+ name: "deviceId",
35774
+ form: "single",
35775
+ optional: false
35776
+ }],
35777
+ "deviceManager.setWrapperActive": [{
35778
+ name: "deviceId",
35779
+ form: "single",
35780
+ optional: false
35781
+ }],
35782
+ "deviceManager.testField": [{
35783
+ name: "deviceId",
35784
+ form: "single",
35785
+ optional: false
35786
+ }],
35787
+ "deviceManager.updateConfig": [{
35788
+ name: "deviceId",
35789
+ form: "single",
35790
+ optional: false
35791
+ }],
35792
+ "deviceManager.updateDeviceField": [{
35793
+ name: "deviceId",
35794
+ form: "single",
35795
+ optional: false
35796
+ }],
35797
+ "deviceManager.updateDeviceFieldsBatch": [{
35798
+ name: "deviceId",
35799
+ form: "single",
35800
+ optional: false
35801
+ }],
35802
+ "deviceOps.getConfigEntries": [{
35803
+ name: "deviceId",
35804
+ form: "single",
35805
+ optional: false
35806
+ }],
35807
+ "deviceOps.getRawState": [{
35808
+ name: "deviceId",
35809
+ form: "single",
35810
+ optional: false
35811
+ }],
35812
+ "deviceOps.getSettingsSchema": [{
35813
+ name: "deviceId",
35814
+ form: "single",
35815
+ optional: false
35816
+ }],
35817
+ "deviceOps.getStreamSources": [{
35818
+ name: "deviceId",
35819
+ form: "single",
35820
+ optional: false
35821
+ }],
35822
+ "deviceOps.removeDevice": [{
35823
+ name: "deviceId",
35824
+ form: "single",
35825
+ optional: false
35826
+ }],
35827
+ "deviceOps.runAction": [{
35828
+ name: "deviceId",
35829
+ form: "single",
35830
+ optional: false
35831
+ }],
35832
+ "deviceOps.setConfig": [{
35833
+ name: "deviceId",
35834
+ form: "single",
35835
+ optional: false
35836
+ }],
35837
+ "deviceState.getCapSlice": [{
35838
+ name: "deviceId",
35839
+ form: "single",
35840
+ optional: false
35841
+ }],
35842
+ "deviceState.getSnapshot": [{
35843
+ name: "deviceId",
35844
+ form: "single",
35845
+ optional: false
35846
+ }],
35847
+ "deviceState.setCapSlice": [{
35848
+ name: "deviceId",
35849
+ form: "single",
35850
+ optional: false
35851
+ }],
35852
+ "events.getEventClipUrl": [{
35853
+ name: "deviceId",
35854
+ form: "single",
35855
+ optional: false
35856
+ }],
35857
+ "events.getEvents": [{
35858
+ name: "deviceId",
35859
+ form: "single",
35860
+ optional: false
35861
+ }],
35862
+ "events.getEventThumbnail": [{
35863
+ name: "deviceId",
35864
+ form: "single",
35865
+ optional: false
35866
+ }],
35867
+ "faceGallery.getFaceByTrack": [{
35868
+ name: "deviceId",
35869
+ form: "single",
35870
+ optional: false
35871
+ }],
35872
+ "faceGallery.listRecentFaces": [{
35873
+ name: "deviceId",
35874
+ form: "single",
35875
+ optional: true
35876
+ }],
35877
+ "fanControl.setDirection": [{
35878
+ name: "deviceId",
35879
+ form: "single",
35880
+ optional: false
35881
+ }],
35882
+ "fanControl.setOscillating": [{
35883
+ name: "deviceId",
35884
+ form: "single",
35885
+ optional: false
35886
+ }],
35887
+ "fanControl.setPercentage": [{
35888
+ name: "deviceId",
35889
+ form: "single",
35890
+ optional: false
35891
+ }],
35892
+ "fanControl.setPreset": [{
35893
+ name: "deviceId",
35894
+ form: "single",
35895
+ optional: false
35896
+ }],
35897
+ "humidifier.setMode": [{
35898
+ name: "deviceId",
35899
+ form: "single",
35900
+ optional: false
35901
+ }],
35902
+ "humidifier.setOn": [{
35903
+ name: "deviceId",
35904
+ form: "single",
35905
+ optional: false
35906
+ }],
35907
+ "humidifier.setTargetHumidity": [{
35908
+ name: "deviceId",
35909
+ form: "single",
35910
+ optional: false
35911
+ }],
35912
+ "imageSettings.getOptions": [{
35913
+ name: "deviceId",
35914
+ form: "single",
35915
+ optional: false
35916
+ }],
35917
+ "imageSettings.setSettings": [{
35918
+ name: "deviceId",
35919
+ form: "single",
35920
+ optional: false
35921
+ }],
35922
+ "intercom.endTalkSession": [{
35923
+ name: "deviceId",
35924
+ form: "single",
35925
+ optional: false
35926
+ }],
35927
+ "intercom.handleAnswer": [{
35928
+ name: "deviceId",
35929
+ form: "single",
35930
+ optional: false
35931
+ }],
35932
+ "intercom.pushTalkAudio": [{
35933
+ name: "deviceId",
35934
+ form: "single",
35935
+ optional: false
35936
+ }],
35937
+ "intercom.startSession": [{
35938
+ name: "deviceId",
35939
+ form: "single",
35940
+ optional: false
35941
+ }],
35942
+ "intercom.startTalkSession": [{
35943
+ name: "deviceId",
35944
+ form: "single",
35945
+ optional: false
35946
+ }],
35947
+ "intercom.stopSession": [{
35948
+ name: "deviceId",
35949
+ form: "single",
35950
+ optional: false
35951
+ }],
35952
+ "lawnMowerControl.dock": [{
35953
+ name: "deviceId",
35954
+ form: "single",
35955
+ optional: false
35956
+ }],
35957
+ "lawnMowerControl.pause": [{
35958
+ name: "deviceId",
35959
+ form: "single",
35960
+ optional: false
35961
+ }],
35962
+ "lawnMowerControl.startMowing": [{
35963
+ name: "deviceId",
35964
+ form: "single",
35965
+ optional: false
35966
+ }],
35967
+ "lockControl.lock": [{
35968
+ name: "deviceId",
35969
+ form: "single",
35970
+ optional: false
35971
+ }],
35972
+ "lockControl.open": [{
35973
+ name: "deviceId",
35974
+ form: "single",
35975
+ optional: false
35976
+ }],
35977
+ "lockControl.unlock": [{
35978
+ name: "deviceId",
35979
+ form: "single",
35980
+ optional: false
35981
+ }],
35982
+ "mediaPlayer.next": [{
35983
+ name: "deviceId",
35984
+ form: "single",
35985
+ optional: false
35986
+ }],
35987
+ "mediaPlayer.pause": [{
35988
+ name: "deviceId",
35989
+ form: "single",
35990
+ optional: false
35991
+ }],
35992
+ "mediaPlayer.play": [{
35993
+ name: "deviceId",
35994
+ form: "single",
35995
+ optional: false
35996
+ }],
35997
+ "mediaPlayer.playMedia": [{
35998
+ name: "deviceId",
35999
+ form: "single",
36000
+ optional: false
36001
+ }],
36002
+ "mediaPlayer.previous": [{
36003
+ name: "deviceId",
36004
+ form: "single",
36005
+ optional: false
36006
+ }],
36007
+ "mediaPlayer.seek": [{
36008
+ name: "deviceId",
36009
+ form: "single",
36010
+ optional: false
36011
+ }],
36012
+ "mediaPlayer.selectSource": [{
36013
+ name: "deviceId",
36014
+ form: "single",
36015
+ optional: false
36016
+ }],
36017
+ "mediaPlayer.setMute": [{
36018
+ name: "deviceId",
36019
+ form: "single",
36020
+ optional: false
36021
+ }],
36022
+ "mediaPlayer.setRepeat": [{
36023
+ name: "deviceId",
36024
+ form: "single",
36025
+ optional: false
36026
+ }],
36027
+ "mediaPlayer.setShuffle": [{
36028
+ name: "deviceId",
36029
+ form: "single",
36030
+ optional: false
36031
+ }],
36032
+ "mediaPlayer.setVolume": [{
36033
+ name: "deviceId",
36034
+ form: "single",
36035
+ optional: false
36036
+ }],
36037
+ "mediaPlayer.stop": [{
36038
+ name: "deviceId",
36039
+ form: "single",
36040
+ optional: false
36041
+ }],
36042
+ "motion.isDetected": [{
36043
+ name: "deviceId",
36044
+ form: "single",
36045
+ optional: false
36046
+ }],
36047
+ "motionDetection.analyze": [{
36048
+ name: "deviceId",
36049
+ form: "single",
36050
+ optional: false
36051
+ }],
36052
+ "motionDetection.removeCamera": [{
36053
+ name: "deviceId",
36054
+ form: "single",
36055
+ optional: false
36056
+ }],
36057
+ "motionTrigger.setMotionTrigger": [{
36058
+ name: "deviceId",
36059
+ form: "single",
36060
+ optional: false
36061
+ }],
36062
+ "motionZones.getOptions": [{
36063
+ name: "deviceId",
36064
+ form: "single",
36065
+ optional: false
36066
+ }],
36067
+ "motionZones.setZone": [{
36068
+ name: "deviceId",
36069
+ form: "single",
36070
+ optional: false
36071
+ }],
36072
+ "nativeObjectDetection.setEnabled": [{
36073
+ name: "deviceId",
36074
+ form: "single",
36075
+ optional: false
36076
+ }],
36077
+ "networkQuality.getDeviceStats": [{
36078
+ name: "deviceId",
36079
+ form: "single",
36080
+ optional: false
36081
+ }],
36082
+ "networkQuality.reportClientStats": [{
36083
+ name: "deviceId",
36084
+ form: "single",
36085
+ optional: false
36086
+ }],
36087
+ "notificationRules.setDeviceMuted": [{
36088
+ name: "deviceId",
36089
+ form: "single",
36090
+ optional: false
36091
+ }],
36092
+ "notifier.cancel": [{
36093
+ name: "deviceId",
36094
+ form: "single",
36095
+ optional: false
36096
+ }],
36097
+ "notifier.send": [{
36098
+ name: "deviceId",
36099
+ form: "single",
36100
+ optional: false
36101
+ }],
36102
+ "osd.setOverlay": [{
36103
+ name: "deviceId",
36104
+ form: "single",
36105
+ optional: false
36106
+ }],
36107
+ "osdManager.clearSlotBinding": [{
36108
+ name: "deviceId",
36109
+ form: "single",
36110
+ optional: false
36111
+ }],
36112
+ "osdManager.copyDeviceConfiguration": [{
36113
+ name: "sourceDeviceId",
36114
+ form: "single",
36115
+ optional: false
36116
+ }, {
36117
+ name: "targetDeviceId",
36118
+ form: "single",
36119
+ optional: false
36120
+ }],
36121
+ "osdManager.getDeviceOsd": [{
36122
+ name: "deviceId",
36123
+ form: "single",
36124
+ optional: false
36125
+ }],
36126
+ "osdManager.getSourceCatalog": [{
36127
+ name: "deviceId",
36128
+ form: "single",
36129
+ optional: false
36130
+ }],
36131
+ "osdManager.previewSlot": [{
36132
+ name: "deviceId",
36133
+ form: "single",
36134
+ optional: false
36135
+ }],
36136
+ "osdManager.renderDevice": [{
36137
+ name: "deviceId",
36138
+ form: "single",
36139
+ optional: false
36140
+ }],
36141
+ "osdManager.setSlotBinding": [{
36142
+ name: "deviceId",
36143
+ form: "single",
36144
+ optional: false
36145
+ }],
36146
+ "petFeeder.callPet": [{
36147
+ name: "deviceId",
36148
+ form: "single",
36149
+ optional: false
36150
+ }],
36151
+ "petFeeder.cancelFeed": [{
36152
+ name: "deviceId",
36153
+ form: "single",
36154
+ optional: false
36155
+ }],
36156
+ "petFeeder.feed": [{
36157
+ name: "deviceId",
36158
+ form: "single",
36159
+ optional: false
36160
+ }],
36161
+ "petFeeder.markFoodReplenished": [{
36162
+ name: "deviceId",
36163
+ form: "single",
36164
+ optional: false
36165
+ }],
36166
+ "petFeeder.playSound": [{
36167
+ name: "deviceId",
36168
+ form: "single",
36169
+ optional: false
36170
+ }],
36171
+ "petFeeder.resetDesiccant": [{
36172
+ name: "deviceId",
36173
+ form: "single",
36174
+ optional: false
36175
+ }],
36176
+ "petFeeder.setChildLock": [{
36177
+ name: "deviceId",
36178
+ form: "single",
36179
+ optional: false
36180
+ }],
36181
+ "petFeeder.setFeedSound": [{
36182
+ name: "deviceId",
36183
+ form: "single",
36184
+ optional: false
36185
+ }],
36186
+ "petFeeder.setIndicatorLight": [{
36187
+ name: "deviceId",
36188
+ form: "single",
36189
+ optional: false
36190
+ }],
36191
+ "petFeeder.setVolume": [{
36192
+ name: "deviceId",
36193
+ form: "single",
36194
+ optional: false
36195
+ }],
36196
+ "pipelineAnalytics.clearTracks": [{
36197
+ name: "deviceId",
36198
+ form: "single",
36199
+ optional: false
36200
+ }],
36201
+ "pipelineAnalytics.completeRetrainTrack": [{
36202
+ name: "deviceId",
36203
+ form: "single",
36204
+ optional: false
36205
+ }],
36206
+ "pipelineAnalytics.deleteDeviceEvents": [{
36207
+ name: "deviceId",
36208
+ form: "single",
36209
+ optional: false
36210
+ }],
36211
+ "pipelineAnalytics.deleteTracks": [{
36212
+ name: "deviceId",
36213
+ form: "single",
36214
+ optional: false
36215
+ }],
36216
+ "pipelineAnalytics.deselectRetrainFrame": [{
36217
+ name: "deviceId",
36218
+ form: "single",
36219
+ optional: false
36220
+ }],
36221
+ "pipelineAnalytics.getActiveTracks": [{
36222
+ name: "deviceId",
36223
+ form: "single",
36224
+ optional: false
36225
+ }],
36226
+ "pipelineAnalytics.getAudioEvents": [{
36227
+ name: "deviceId",
36228
+ form: "single",
36229
+ optional: false
36230
+ }],
36231
+ "pipelineAnalytics.getEventDensity": [{
36232
+ name: "deviceId",
36233
+ form: "single",
36234
+ optional: false
36235
+ }],
36236
+ "pipelineAnalytics.getEventMedia": [{
36237
+ name: "deviceId",
36238
+ form: "single",
36239
+ optional: false
36240
+ }],
36241
+ "pipelineAnalytics.getKeyEvents": [{
36242
+ name: "deviceId",
36243
+ form: "single",
36244
+ optional: false
36245
+ }],
36246
+ "pipelineAnalytics.getMotionEvents": [{
36247
+ name: "deviceId",
36248
+ form: "single",
36249
+ optional: false
36250
+ }],
36251
+ "pipelineAnalytics.getObjectEvents": [{
36252
+ name: "deviceId",
36253
+ form: "single",
36254
+ optional: false
36255
+ }],
36256
+ "pipelineAnalytics.getRetrainExportUrl": [{
36257
+ name: "deviceIds",
36258
+ form: "array",
36259
+ optional: true
36260
+ }],
36261
+ "pipelineAnalytics.getSensorEvents": [{
36262
+ name: "deviceId",
36263
+ form: "single",
36264
+ optional: false
36265
+ }],
36266
+ "pipelineAnalytics.getTrack": [{
36267
+ name: "deviceId",
36268
+ form: "single",
36269
+ optional: false
36270
+ }],
36271
+ "pipelineAnalytics.getTrackMedia": [{
36272
+ name: "deviceId",
36273
+ form: "single",
36274
+ optional: false
36275
+ }],
36276
+ "pipelineAnalytics.getTrainingExportSummary": [{
36277
+ name: "deviceIds",
36278
+ form: "array",
36279
+ optional: true
36280
+ }],
36281
+ "pipelineAnalytics.getTrainingExportUrl": [{
36282
+ name: "deviceIds",
36283
+ form: "array",
36284
+ optional: true
36285
+ }],
36286
+ "pipelineAnalytics.listEventKinds": [{
36287
+ name: "deviceId",
36288
+ form: "single",
36289
+ optional: false
36290
+ }],
36291
+ "pipelineAnalytics.listEventKindsBatch": [{
36292
+ name: "deviceIds",
36293
+ form: "array",
36294
+ optional: false
36295
+ }],
36296
+ "pipelineAnalytics.listOpsLog": [{
36297
+ name: "deviceId",
36298
+ form: "single",
36299
+ optional: true
36300
+ }],
36301
+ "pipelineAnalytics.listRecentTracks": [{
36302
+ name: "deviceIds",
36303
+ form: "array",
36304
+ optional: false
36305
+ }],
36306
+ "pipelineAnalytics.listRetrainStaging": [{
36307
+ name: "deviceIds",
36308
+ form: "array",
36309
+ optional: true
36310
+ }],
36311
+ "pipelineAnalytics.listTrackMedia": [{
36312
+ name: "deviceId",
36313
+ form: "single",
36314
+ optional: false
36315
+ }],
36316
+ "pipelineAnalytics.listTracks": [{
36317
+ name: "deviceId",
36318
+ form: "single",
36319
+ optional: false
36320
+ }],
36321
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36322
+ name: "deviceId",
36323
+ form: "single",
36324
+ optional: false
36325
+ }],
36326
+ "pipelineAnalytics.pruneEventsBefore": [{
36327
+ name: "deviceId",
36328
+ form: "single",
36329
+ optional: false
36330
+ }],
36331
+ "pipelineAnalytics.pruneTracksBefore": [{
36332
+ name: "deviceId",
36333
+ form: "single",
36334
+ optional: false
36335
+ }],
36336
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36337
+ name: "deviceId",
36338
+ form: "single",
36339
+ optional: true
36340
+ }],
36341
+ "pipelineAnalytics.restageRetrainTrack": [{
36342
+ name: "deviceId",
36343
+ form: "single",
36344
+ optional: false
36345
+ }],
36346
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36347
+ name: "deviceId",
36348
+ form: "single",
36349
+ optional: false
36350
+ }],
36351
+ "pipelineAnalytics.searchObjectEvents": [{
36352
+ name: "deviceId",
36353
+ form: "single",
36354
+ optional: true
36355
+ }],
36356
+ "pipelineAnalytics.selectRetrainFrames": [{
36357
+ name: "deviceId",
36358
+ form: "single",
36359
+ optional: false
36360
+ }],
36361
+ "pipelineAnalytics.setTrackFlags": [{
36362
+ name: "deviceId",
36363
+ form: "single",
36364
+ optional: false
36365
+ }],
36366
+ "pipelineAnalytics.wipeAllAnalytics": [{
36367
+ name: "deviceId",
36368
+ form: "single",
36369
+ optional: false
36370
+ }],
36371
+ "pipelineExecutor.runPipeline": [{
36372
+ name: "deviceId",
36373
+ form: "single",
36374
+ optional: true
36375
+ }],
36376
+ "pipelineExecutor.runPipelineBatch": [{
36377
+ name: "deviceId",
36378
+ form: "single",
36379
+ optional: true
36380
+ }],
36381
+ "pipelineOrchestrator.assignAudio": [{
36382
+ name: "deviceId",
36383
+ form: "single",
36384
+ optional: false
36385
+ }],
36386
+ "pipelineOrchestrator.assignPipeline": [{
36387
+ name: "deviceId",
36388
+ form: "single",
36389
+ optional: false
36390
+ }],
36391
+ "pipelineOrchestrator.getAudioAssignment": [{
36392
+ name: "deviceId",
36393
+ form: "single",
36394
+ optional: false
36395
+ }],
36396
+ "pipelineOrchestrator.getCameraMetrics": [{
36397
+ name: "deviceId",
36398
+ form: "single",
36399
+ optional: false
36400
+ }],
36401
+ "pipelineOrchestrator.getCameraSettings": [{
36402
+ name: "deviceId",
36403
+ form: "single",
36404
+ optional: false
36405
+ }],
36406
+ "pipelineOrchestrator.getCameraStatus": [{
36407
+ name: "deviceId",
36408
+ form: "single",
36409
+ optional: false
36410
+ }],
36411
+ "pipelineOrchestrator.getCameraStatuses": [{
36412
+ name: "deviceIds",
36413
+ form: "array",
36414
+ optional: true
36415
+ }],
36416
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36417
+ name: "deviceId",
36418
+ form: "single",
36419
+ optional: false
36420
+ }],
36421
+ "pipelineOrchestrator.getCameraSwitches": [{
36422
+ name: "deviceId",
36423
+ form: "single",
36424
+ optional: false
36425
+ }],
36426
+ "pipelineOrchestrator.getPipelineAssignment": [{
36427
+ name: "deviceId",
36428
+ form: "single",
36429
+ optional: false
36430
+ }],
36431
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36432
+ name: "deviceId",
36433
+ form: "single",
36434
+ optional: false
36435
+ }],
36436
+ "pipelineOrchestrator.resolvePipeline": [{
36437
+ name: "deviceId",
36438
+ form: "single",
36439
+ optional: false
36440
+ }],
36441
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36442
+ name: "deviceId",
36443
+ form: "single",
36444
+ optional: false
36445
+ }],
36446
+ "pipelineOrchestrator.setCameraStepOverride": [{
36447
+ name: "deviceId",
36448
+ form: "single",
36449
+ optional: false
36450
+ }],
36451
+ "pipelineOrchestrator.setCameraStepToggle": [{
36452
+ name: "deviceId",
36453
+ form: "single",
36454
+ optional: false
36455
+ }],
36456
+ "pipelineOrchestrator.setCameraSwitch": [{
36457
+ name: "deviceId",
36458
+ form: "single",
36459
+ optional: false
36460
+ }],
36461
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36462
+ name: "deviceId",
36463
+ form: "single",
36464
+ optional: false
36465
+ }],
36466
+ "pipelineOrchestrator.unassignAudio": [{
36467
+ name: "deviceId",
36468
+ form: "single",
36469
+ optional: false
36470
+ }],
36471
+ "pipelineOrchestrator.unassignPipeline": [{
36472
+ name: "deviceId",
36473
+ form: "single",
36474
+ optional: false
36475
+ }],
36476
+ "pipelineRunner.attachCamera": [{
36477
+ name: "deviceId",
36478
+ form: "single",
36479
+ optional: false
36480
+ }],
36481
+ "pipelineRunner.detachCamera": [{
36482
+ name: "deviceId",
36483
+ form: "single",
36484
+ optional: false
36485
+ }],
36486
+ "pipelineRunner.getCameraMetrics": [{
36487
+ name: "deviceId",
36488
+ form: "single",
36489
+ optional: false
36490
+ }],
36491
+ "pipelineRunner.reportMotion": [{
36492
+ name: "deviceId",
36493
+ form: "single",
36494
+ optional: false
36495
+ }],
36496
+ "pipelineRunner.runDetailSubtree": [{
36497
+ name: "deviceId",
36498
+ form: "single",
36499
+ optional: false
36500
+ }],
36501
+ "pipelineRunner.runStatelessStep": [{
36502
+ name: "sourceDeviceId",
36503
+ form: "single",
36504
+ optional: false
36505
+ }],
36506
+ "plateGallery.getPlateByTrack": [{
36507
+ name: "deviceId",
36508
+ form: "single",
36509
+ optional: false
36510
+ }],
36511
+ "plateGallery.listPlates": [{
36512
+ name: "deviceId",
36513
+ form: "single",
36514
+ optional: true
36515
+ }],
36516
+ "privacyMask.getOptions": [{
36517
+ name: "deviceId",
36518
+ form: "single",
36519
+ optional: false
36520
+ }],
36521
+ "privacyMask.setAudioEnabled": [{
36522
+ name: "deviceId",
36523
+ form: "single",
36524
+ optional: false
36525
+ }],
36526
+ "privacyMask.setMask": [{
36527
+ name: "deviceId",
36528
+ form: "single",
36529
+ optional: false
36530
+ }],
36531
+ "ptz.continuousMove": [{
36532
+ name: "deviceId",
36533
+ form: "single",
36534
+ optional: false
36535
+ }],
36536
+ "ptz.deletePreset": [{
36537
+ name: "deviceId",
36538
+ form: "single",
36539
+ optional: false
36540
+ }],
36541
+ "ptz.getOptions": [{
36542
+ name: "deviceId",
36543
+ form: "single",
36544
+ optional: false
36545
+ }],
36546
+ "ptz.getPosition": [{
36547
+ name: "deviceId",
36548
+ form: "single",
36549
+ optional: false
36550
+ }],
36551
+ "ptz.getPresets": [{
36552
+ name: "deviceId",
36553
+ form: "single",
36554
+ optional: false
36555
+ }],
36556
+ "ptz.goHome": [{
36557
+ name: "deviceId",
36558
+ form: "single",
36559
+ optional: false
36560
+ }],
36561
+ "ptz.goToPreset": [{
36562
+ name: "deviceId",
36563
+ form: "single",
36564
+ optional: false
36565
+ }],
36566
+ "ptz.move": [{
36567
+ name: "deviceId",
36568
+ form: "single",
36569
+ optional: false
36570
+ }],
36571
+ "ptz.savePreset": [{
36572
+ name: "deviceId",
36573
+ form: "single",
36574
+ optional: false
36575
+ }],
36576
+ "ptz.setAutofocus": [{
36577
+ name: "deviceId",
36578
+ form: "single",
36579
+ optional: false
36580
+ }],
36581
+ "ptz.stop": [{
36582
+ name: "deviceId",
36583
+ form: "single",
36584
+ optional: false
36585
+ }],
36586
+ "ptzAutotrack.getSettings": [{
36587
+ name: "deviceId",
36588
+ form: "single",
36589
+ optional: false
36590
+ }],
36591
+ "ptzAutotrack.getStatus": [{
36592
+ name: "deviceId",
36593
+ form: "single",
36594
+ optional: false
36595
+ }],
36596
+ "ptzAutotrack.setEnabled": [{
36597
+ name: "deviceId",
36598
+ form: "single",
36599
+ optional: false
36600
+ }],
36601
+ "ptzAutotrack.setSettings": [{
36602
+ name: "deviceId",
36603
+ form: "single",
36604
+ optional: false
36605
+ }],
36606
+ "reboot.reboot": [{
36607
+ name: "deviceId",
36608
+ form: "single",
36609
+ optional: false
36610
+ }],
36611
+ "recording.deleteFootprint": [{
36612
+ name: "deviceId",
36613
+ form: "single",
36614
+ optional: false
36615
+ }],
36616
+ "recording.getAvailability": [{
36617
+ name: "deviceId",
36618
+ form: "single",
36619
+ optional: false
36620
+ }],
36621
+ "recording.getDaysWithRecordings": [{
36622
+ name: "deviceId",
36623
+ form: "single",
36624
+ optional: false
36625
+ }],
36626
+ "recording.getDeviceConfig": [{
36627
+ name: "deviceId",
36628
+ form: "single",
36629
+ optional: false
36630
+ }],
36631
+ "recording.getPlaybackManifest": [{
36632
+ name: "deviceId",
36633
+ form: "single",
36634
+ optional: false
36635
+ }],
36636
+ "recording.listOpsLog": [{
36637
+ name: "deviceId",
36638
+ form: "single",
36639
+ optional: true
36640
+ }],
36641
+ "recording.locateSegment": [{
36642
+ name: "deviceId",
36643
+ form: "single",
36644
+ optional: false
36645
+ }],
36646
+ "recording.pruneFootage": [{
36647
+ name: "deviceId",
36648
+ form: "single",
36649
+ optional: false
36650
+ }],
36651
+ "recording.readGopBytes": [{
36652
+ name: "deviceId",
36653
+ form: "single",
36654
+ optional: false
36655
+ }],
36656
+ "recording.readSegmentBytes": [{
36657
+ name: "deviceId",
36658
+ form: "single",
36659
+ optional: false
36660
+ }],
36661
+ "recording.relocateFootage": [{
36662
+ name: "deviceId",
36663
+ form: "single",
36664
+ optional: true
36665
+ }],
36666
+ "recording.renderClip": [{
36667
+ name: "deviceId",
36668
+ form: "single",
36669
+ optional: false
36670
+ }],
36671
+ "recording.renderGif": [{
36672
+ name: "deviceId",
36673
+ form: "single",
36674
+ optional: false
36675
+ }],
36676
+ "recording.rescanStorage": [{
36677
+ name: "deviceId",
36678
+ form: "single",
36679
+ optional: false
36680
+ }],
36681
+ "recording.setDeviceConfig": [{
36682
+ name: "deviceId",
36683
+ form: "single",
36684
+ optional: false
36685
+ }],
36686
+ "recording.startStorageMigrationMove": [{
36687
+ name: "deviceId",
36688
+ form: "single",
36689
+ optional: true
36690
+ }],
36691
+ "recordingExport.createExport": [{
36692
+ name: "deviceId",
36693
+ form: "single",
36694
+ optional: false
36695
+ }],
36696
+ "recordingExport.listExports": [{
36697
+ name: "deviceId",
36698
+ form: "single",
36699
+ optional: true
36700
+ }],
36701
+ "sceneMonitor.captureReference": [{
36702
+ name: "deviceId",
36703
+ form: "single",
36704
+ optional: false
36705
+ }],
36706
+ "sceneMonitor.createScene": [{
36707
+ name: "deviceId",
36708
+ form: "single",
36709
+ optional: false
36710
+ }],
36711
+ "sceneMonitor.deleteReference": [{
36712
+ name: "deviceId",
36713
+ form: "single",
36714
+ optional: false
36715
+ }],
36716
+ "sceneMonitor.deleteScene": [{
36717
+ name: "deviceId",
36718
+ form: "single",
36719
+ optional: false
36720
+ }],
36721
+ "sceneMonitor.listScenes": [{
36722
+ name: "deviceId",
36723
+ form: "single",
36724
+ optional: false
36725
+ }],
36726
+ "sceneMonitor.recheckNow": [{
36727
+ name: "deviceId",
36728
+ form: "single",
36729
+ optional: false
36730
+ }],
36731
+ "sceneMonitor.resetScene": [{
36732
+ name: "deviceId",
36733
+ form: "single",
36734
+ optional: false
36735
+ }],
36736
+ "sceneMonitor.updateScene": [{
36737
+ name: "deviceId",
36738
+ form: "single",
36739
+ optional: false
36740
+ }],
36741
+ "scriptRunner.run": [{
36742
+ name: "deviceId",
36743
+ form: "single",
36744
+ optional: false
36745
+ }],
36746
+ "scriptRunner.stop": [{
36747
+ name: "deviceId",
36748
+ form: "single",
36749
+ optional: false
36750
+ }],
36751
+ "snapshot.getDebugState": [{
36752
+ name: "deviceId",
36753
+ form: "single",
36754
+ optional: false
36755
+ }],
36756
+ "snapshot.getSnapshot": [{
36757
+ name: "deviceId",
36758
+ form: "single",
36759
+ optional: false
36760
+ }],
36761
+ "snapshot.getSnapshotLinks": [{
36762
+ name: "targets",
36763
+ form: "object-array",
36764
+ optional: false,
36765
+ itemField: "deviceId"
36766
+ }],
36767
+ "snapshot.getSnapshotOverview": [{
36768
+ name: "deviceIds",
36769
+ form: "array",
36770
+ optional: false
36771
+ }],
36772
+ "snapshot.invalidateCache": [{
36773
+ name: "deviceId",
36774
+ form: "single",
36775
+ optional: false
36776
+ }],
36777
+ "streamBroker.acquireEgressTranscode": [{
36778
+ name: "deviceId",
36779
+ form: "single",
36780
+ optional: false
36781
+ }],
36782
+ "streamBroker.assignProfile": [{
36783
+ name: "deviceId",
36784
+ form: "single",
36785
+ optional: false
36786
+ }],
36787
+ "streamBroker.getDeviceAudioMute": [{
36788
+ name: "deviceId",
36789
+ form: "single",
36790
+ optional: false
36791
+ }],
36792
+ "streamBroker.getStreamWithCodec": [{
36793
+ name: "deviceId",
36794
+ form: "single",
36795
+ optional: false
36796
+ }],
36797
+ "streamBroker.produceEventMedia": [{
36798
+ name: "deviceId",
36799
+ form: "single",
36800
+ optional: false
36801
+ }],
36802
+ "streamBroker.publishCameraStream": [{
36803
+ name: "deviceId",
36804
+ form: "single",
36805
+ optional: false
36806
+ }],
36807
+ "streamBroker.renderPreBufferClip": [{
36808
+ name: "deviceId",
36809
+ form: "single",
36810
+ optional: false
36811
+ }],
36812
+ "streamBroker.restartProfile": [{
36813
+ name: "deviceId",
36814
+ form: "single",
36815
+ optional: false
36816
+ }],
36817
+ "streamBroker.retractCameraStream": [{
36818
+ name: "deviceId",
36819
+ form: "single",
36820
+ optional: false
36821
+ }],
36822
+ "streamBroker.setDeviceAudioMute": [{
36823
+ name: "deviceId",
36824
+ form: "single",
36825
+ optional: false
36826
+ }],
36827
+ "streamBroker.unassignProfile": [{
36828
+ name: "deviceId",
36829
+ form: "single",
36830
+ optional: false
36831
+ }],
36832
+ "streamCatalog.getCatalog": [{
36833
+ name: "deviceId",
36834
+ form: "single",
36835
+ optional: false
36836
+ }],
36837
+ "streamParams.getConfigSchema": [{
36838
+ name: "deviceId",
36839
+ form: "single",
36840
+ optional: false
36841
+ }],
36842
+ "streamParams.getOptions": [{
36843
+ name: "deviceId",
36844
+ form: "single",
36845
+ optional: false
36846
+ }],
36847
+ "streamParams.setProfile": [{
36848
+ name: "deviceId",
36849
+ form: "single",
36850
+ optional: false
36851
+ }],
36852
+ "switch.setState": [{
36853
+ name: "deviceId",
36854
+ form: "single",
36855
+ optional: false
36856
+ }],
36857
+ "vacuumControl.locate": [{
36858
+ name: "deviceId",
36859
+ form: "single",
36860
+ optional: false
36861
+ }],
36862
+ "vacuumControl.pause": [{
36863
+ name: "deviceId",
36864
+ form: "single",
36865
+ optional: false
36866
+ }],
36867
+ "vacuumControl.returnToBase": [{
36868
+ name: "deviceId",
36869
+ form: "single",
36870
+ optional: false
36871
+ }],
36872
+ "vacuumControl.setFanSpeed": [{
36873
+ name: "deviceId",
36874
+ form: "single",
36875
+ optional: false
36876
+ }],
36877
+ "vacuumControl.start": [{
36878
+ name: "deviceId",
36879
+ form: "single",
36880
+ optional: false
36881
+ }],
36882
+ "vacuumControl.stop": [{
36883
+ name: "deviceId",
36884
+ form: "single",
36885
+ optional: false
36886
+ }],
36887
+ "valve.close": [{
36888
+ name: "deviceId",
36889
+ form: "single",
36890
+ optional: false
36891
+ }],
36892
+ "valve.open": [{
36893
+ name: "deviceId",
36894
+ form: "single",
36895
+ optional: false
36896
+ }],
36897
+ "valve.setPosition": [{
36898
+ name: "deviceId",
36899
+ form: "single",
36900
+ optional: false
36901
+ }],
36902
+ "valve.stop": [{
36903
+ name: "deviceId",
36904
+ form: "single",
36905
+ optional: false
36906
+ }],
36907
+ "videoclips.getClipPlayback": [{
36908
+ name: "deviceId",
36909
+ form: "single",
36910
+ optional: false
36911
+ }],
36912
+ "videoclips.listClips": [{
36913
+ name: "deviceId",
36914
+ form: "single",
36915
+ optional: false
36916
+ }],
36917
+ "waterHeater.setAway": [{
36918
+ name: "deviceId",
36919
+ form: "single",
36920
+ optional: false
36921
+ }],
36922
+ "waterHeater.setOperationMode": [{
36923
+ name: "deviceId",
36924
+ form: "single",
36925
+ optional: false
36926
+ }],
36927
+ "waterHeater.setTargetTemp": [{
36928
+ name: "deviceId",
36929
+ form: "single",
36930
+ optional: false
36931
+ }],
36932
+ "webrtcSession.addIceCandidate": [{
36933
+ name: "deviceId",
36934
+ form: "single",
36935
+ optional: false
36936
+ }],
36937
+ "webrtcSession.closeSession": [{
36938
+ name: "deviceId",
36939
+ form: "single",
36940
+ optional: false
36941
+ }],
36942
+ "webrtcSession.createSession": [{
36943
+ name: "deviceId",
36944
+ form: "single",
36945
+ optional: false
36946
+ }],
36947
+ "webrtcSession.getIceCandidates": [{
36948
+ name: "deviceId",
36949
+ form: "single",
36950
+ optional: false
36951
+ }],
36952
+ "webrtcSession.getSessionState": [{
36953
+ name: "deviceId",
36954
+ form: "single",
36955
+ optional: false
36956
+ }],
36957
+ "webrtcSession.handleAnswer": [{
36958
+ name: "deviceId",
36959
+ form: "single",
36960
+ optional: false
36961
+ }],
36962
+ "webrtcSession.handleOffer": [{
36963
+ name: "deviceId",
36964
+ form: "single",
36965
+ optional: false
36966
+ }],
36967
+ "webrtcSession.hasAdaptiveBitrate": [{
36968
+ name: "deviceId",
36969
+ form: "single",
36970
+ optional: false
36971
+ }],
36972
+ "webrtcSession.listStreams": [{
36973
+ name: "deviceId",
36974
+ form: "single",
36975
+ optional: false
36976
+ }],
36977
+ "zoneAnalytics.getCameraHistory": [{
36978
+ name: "deviceId",
36979
+ form: "single",
36980
+ optional: false
36981
+ }],
36982
+ "zoneAnalytics.getCurrentSnapshot": [{
36983
+ name: "deviceId",
36984
+ form: "single",
36985
+ optional: false
36986
+ }],
36987
+ "zoneAnalytics.getUnzonedHistory": [{
36988
+ name: "deviceId",
36989
+ form: "single",
36990
+ optional: false
36991
+ }],
36992
+ "zoneAnalytics.getZoneHistory": [{
36993
+ name: "deviceId",
36994
+ form: "single",
36995
+ optional: false
36996
+ }],
36997
+ "zoneRules.listRules": [{
36998
+ name: "deviceId",
36999
+ form: "single",
37000
+ optional: false
37001
+ }],
37002
+ "zoneRules.setRules": [{
37003
+ name: "deviceId",
37004
+ form: "single",
37005
+ optional: false
37006
+ }],
37007
+ "zones.addZone": [{
37008
+ name: "deviceId",
37009
+ form: "single",
37010
+ optional: false
37011
+ }],
37012
+ "zones.listZones": [{
37013
+ name: "deviceId",
37014
+ form: "single",
37015
+ optional: false
37016
+ }],
37017
+ "zones.removeZone": [{
37018
+ name: "deviceId",
37019
+ form: "single",
37020
+ optional: false
37021
+ }],
37022
+ "zones.updateZone": [{
37023
+ name: "deviceId",
37024
+ form: "single",
37025
+ optional: false
37026
+ }]
37027
+ });
34315
37028
  Object.freeze({
34316
37029
  "broker": "broker",
34317
37030
  "device-export": "device-export",