@camstack/addon-provider-amcrest 0.2.18 → 0.2.20

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