@camstack/addon-terminal 0.1.19 → 0.1.21

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 +2918 -147
  2. package/dist/addon.mjs +2918 -147
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -31,7 +31,7 @@ let node_module = require("node:module");
31
31
  let sharp = require("sharp");
32
32
  sharp = __toESM(sharp);
33
33
  let node_http = require("node:http");
34
- //#region ../types/dist/event-category-Cv9dO26A.mjs
34
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
35
35
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
36
36
  EventCategory["SystemBoot"] = "system.boot";
37
37
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -238,6 +238,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
238
238
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
239
239
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
240
240
  /**
241
+ * A node the orchestrator would otherwise place cameras on has NO usable
242
+ * inference device: the operator enabled one or more accelerators there and
243
+ * the live probe reports every one of them unavailable. Emitted once per
244
+ * TRANSITION into that state (never per dispatch), and the node is dropped
245
+ * from the placement candidate set for as long as it holds.
246
+ *
247
+ * This exists because the state was previously invisible: little-unraid
248
+ * absorbed 283k inference errors in a day while still being handed cameras,
249
+ * and nothing in the system said so.
250
+ *
251
+ * A node with no accelerators configured at all is NOT this — its devices
252
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
253
+ * serves it exactly as before.
254
+ */
255
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
256
+ /**
257
+ * A camera has an OPEN detection session and has produced no detection at
258
+ * all for longer than the blind threshold — the camera is being decoded and
259
+ * inferred and is returning nothing. Emitted once per transition into blind,
260
+ * per camera.
261
+ *
262
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
263
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
264
+ * camera" produce byte-identical silence.
265
+ */
266
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
267
+ /**
241
268
  * Per-camera pipeline config was mutated by the orchestrator
242
269
  * (3-level settings change via `setAgentAddonDefaults` /
243
270
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3029,6 +3056,9 @@ function handlePipeResult(left, next, ctx) {
3029
3056
  fallback: left.fallback
3030
3057
  }, ctx);
3031
3058
  }
3059
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3060
+ $ZodPipe.init(inst, def);
3061
+ });
3032
3062
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3033
3063
  $ZodType.init(inst, def);
3034
3064
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5214,6 +5244,10 @@ function pipe(in_, out) {
5214
5244
  out
5215
5245
  });
5216
5246
  }
5247
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5248
+ ZodPipe.init(inst, def);
5249
+ $ZodPreprocess.init(inst, def);
5250
+ });
5217
5251
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5218
5252
  $ZodReadonly.init(inst, def);
5219
5253
  ZodType.init(inst, def);
@@ -5272,6 +5306,13 @@ function _instanceof(cls, params = {}) {
5272
5306
  };
5273
5307
  return inst;
5274
5308
  }
5309
+ function preprocess(fn, schema) {
5310
+ return new ZodPreprocess({
5311
+ type: "pipe",
5312
+ in: transform(fn),
5313
+ out: schema
5314
+ });
5315
+ }
5275
5316
  //#endregion
5276
5317
  //#region ../../node_modules/zod/v4/classic/compat.js
5277
5318
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10975,6 +11016,8 @@ var QueryFilterSchema = object({
10975
11016
  where: record(string(), unknown()).optional(),
10976
11017
  whereIn: record(string(), array(unknown())).optional(),
10977
11018
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11019
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
11020
+ whereNot: record(string(), unknown()).optional(),
10978
11021
  orderBy: object({
10979
11022
  field: string(),
10980
11023
  direction: _enum(["asc", "desc"])
@@ -10994,7 +11037,8 @@ var QueryFilterSchema = object({
10994
11037
  var MutationFilterSchema = object({
10995
11038
  where: record(string(), unknown()).optional(),
10996
11039
  whereIn: record(string(), array(unknown())).optional(),
10997
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11040
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11041
+ whereNot: record(string(), unknown()).optional()
10998
11042
  });
10999
11043
  /** A single stored record: `{ id, data }`. */
11000
11044
  var SettingsRecordSchema = object({
@@ -12458,6 +12502,17 @@ var LlmImageSchema = object({
12458
12502
  bytes: _instanceof(Uint8Array),
12459
12503
  mimeType: string()
12460
12504
  });
12505
+ /**
12506
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12507
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12508
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12509
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12510
+ */
12511
+ var LlmRetryPolicySchema = object({
12512
+ enabled: boolean().default(false),
12513
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12514
+ maxAttempts: number().int().min(1).max(5).default(1)
12515
+ });
12461
12516
  var LlmGenerateBaseInputSchema = object({
12462
12517
  /** Collection routing (the notification-output posture). */
12463
12518
  addonId: string().optional(),
@@ -12472,7 +12527,28 @@ var LlmGenerateBaseInputSchema = object({
12472
12527
  jsonSchema: record(string(), unknown()).optional(),
12473
12528
  /** Per-call override of the profile default. */
12474
12529
  maxTokens: number().int().positive().optional(),
12475
- temperature: number().optional()
12530
+ temperature: number().optional(),
12531
+ /** Per-call override of the profile default (nucleus sampling). */
12532
+ topP: number().min(0).max(1).optional(),
12533
+ /** Per-call override of the profile default (top-k sampling). */
12534
+ topK: number().int().positive().optional(),
12535
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12536
+ timeoutMs: number().int().positive().optional(),
12537
+ /** Per-call override; beats both the consumer table and the profile. */
12538
+ retry: LlmRetryPolicySchema.optional(),
12539
+ /**
12540
+ * Caller-minted id that makes this generation CANCELLABLE.
12541
+ *
12542
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12543
+ * the call against 8 s and free their own slot when the timer wins, while the
12544
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12545
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12546
+ * not generations, and the real load is unbounded.
12547
+ *
12548
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12549
+ * `llm.cancel({ requestId })` tears the socket down.
12550
+ */
12551
+ requestId: string().optional()
12476
12552
  });
12477
12553
  /**
12478
12554
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12485,6 +12561,18 @@ var LlmGenerateBaseInputSchema = object({
12485
12561
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12486
12562
  * watchdog — operator decision #3).
12487
12563
  */
12564
+ /**
12565
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12566
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12567
+ * REF rather than looked up at install time, so what the operator approved in
12568
+ * the preview is exactly what the node downloads.
12569
+ */
12570
+ var ManagedModelExtraFileSchema = object({
12571
+ url: string(),
12572
+ filename: string(),
12573
+ sizeBytes: number(),
12574
+ sha256: string().optional()
12575
+ });
12488
12576
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12489
12577
  object({
12490
12578
  kind: literal("catalog"),
@@ -12493,7 +12581,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12493
12581
  object({
12494
12582
  kind: literal("url"),
12495
12583
  url: string(),
12496
- sha256: string().optional()
12584
+ sha256: string().optional(),
12585
+ /** Picker/status label; the file basename when absent. */
12586
+ label: string().optional(),
12587
+ sizeBytes: number().optional(),
12588
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12497
12589
  }),
12498
12590
  object({
12499
12591
  kind: literal("path"),
@@ -12511,13 +12603,82 @@ var ManagedRuntimeConfigSchema = object({
12511
12603
  gpuLayers: number().int().default(0),
12512
12604
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12513
12605
  threads: number().int().optional(),
12514
- /** Concurrent slots. */
12606
+ /** Concurrent slots (`--parallel`). */
12515
12607
  parallel: number().int().default(1),
12608
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12609
+ batchSize: number().int().positive().optional(),
12610
+ /** Physical batch / micro-batch (`-ub`). */
12611
+ ubatchSize: number().int().positive().optional(),
12612
+ /**
12613
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12614
+ * is a no-op elsewhere, so it is offered rather than assumed.
12615
+ */
12616
+ flashAttention: boolean().default(false),
12617
+ /**
12618
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12619
+ * inference. Costs the full model size in resident memory — which is exactly
12620
+ * what the RAM budget is counting.
12621
+ */
12622
+ mlock: boolean().default(false),
12623
+ /**
12624
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12625
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12626
+ * store produces on every first token.
12627
+ */
12628
+ noMmap: boolean().default(false),
12629
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12630
+ * cheapest way to fit a longer context in the same RAM. */
12631
+ cacheTypeK: _enum([
12632
+ "f32",
12633
+ "f16",
12634
+ "q8_0",
12635
+ "q5_1",
12636
+ "q5_0",
12637
+ "q4_1",
12638
+ "q4_0"
12639
+ ]).optional(),
12640
+ cacheTypeV: _enum([
12641
+ "f32",
12642
+ "f16",
12643
+ "q8_0",
12644
+ "q5_1",
12645
+ "q5_0",
12646
+ "q4_1",
12647
+ "q4_0"
12648
+ ]).optional(),
12649
+ /**
12650
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12651
+ * (which most vision chat templates need and some language-only models
12652
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12653
+ *
12654
+ * It is NOT a second place to set the flags above. A token that collides
12655
+ * with a typed field is REJECTED at start, naming the field that owns it
12656
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12657
+ * the "two switches that disagree" failure this repo has already shipped
12658
+ * twice (D62).
12659
+ */
12660
+ extraArgs: array(string()).default([]),
12516
12661
  /** Else lazy: first generate boots it. */
12517
12662
  autoStart: boolean().default(false),
12518
12663
  /** 0 = never; frees RAM after quiet periods. */
12519
12664
  idleStopMinutes: number().int().default(30)
12520
12665
  });
12666
+ /**
12667
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12668
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12669
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12670
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12671
+ */
12672
+ var LlmDownloadProgressSchema = object({
12673
+ phase: _enum(["downloading", "verifying"]),
12674
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12675
+ file: string(),
12676
+ fileIndex: number().int(),
12677
+ fileCount: number().int(),
12678
+ /** Across the WHOLE install, not the current file. */
12679
+ downloadedBytes: number(),
12680
+ totalBytes: number().optional()
12681
+ });
12521
12682
  var LlmRuntimeStatusSchema = object({
12522
12683
  /** Status is ALWAYS node-qualified. */
12523
12684
  nodeId: string(),
@@ -12534,6 +12695,8 @@ var LlmRuntimeStatusSchema = object({
12534
12695
  modelPath: string().optional(),
12535
12696
  modelId: string().optional(),
12536
12697
  downloadProgress: number().min(0).max(1).optional(),
12698
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12699
+ download: LlmDownloadProgressSchema.optional(),
12537
12700
  lastError: string().optional(),
12538
12701
  crashesInWindow: number(),
12539
12702
  /** Child RSS (sampled best-effort). */
@@ -12544,7 +12707,14 @@ var LlmNodeModelSchema = object({
12544
12707
  file: string(),
12545
12708
  sizeBytes: number(),
12546
12709
  catalogId: string().optional(),
12547
- installedAt: number().optional()
12710
+ installedAt: number().optional(),
12711
+ /**
12712
+ * Absolute path on the node. Present so a file that is on disk but matches
12713
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12714
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12715
+ * it the picker could list such a file and do nothing with it.
12716
+ */
12717
+ path: string().optional()
12548
12718
  });
12549
12719
  var LlmRuntimeDiskUsageSchema = object({
12550
12720
  nodeId: string(),
@@ -12600,10 +12770,47 @@ var LlmProfileSchema = object({
12600
12770
  baseUrl: string().optional(),
12601
12771
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12602
12772
  apiKey: string().optional(),
12773
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12774
+ * degraded to text — that shipped once and produced a confident answer to a
12775
+ * question about a picture nobody sent. */
12603
12776
  supportsVision: boolean(),
12604
12777
  temperature: number().min(0).max(2).optional(),
12778
+ /** Nucleus sampling. Every wire we speak has it. */
12779
+ topP: number().min(0).max(1).optional(),
12780
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12781
+ * wire does, and the client drops it there (measured: the request body gets
12782
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12783
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12784
+ topK: number().int().positive().optional(),
12605
12785
  maxTokens: number().int().positive().optional(),
12786
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12787
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12788
+ * the model with, so it is the one field that changes a PROCESS. */
12789
+ contextLength: number().int().positive().optional(),
12790
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12791
+ * two system prompts fighting is worse than either alone). */
12792
+ systemPrompt: string().optional(),
12793
+ /** Total generation bound — the only one a unary call has. */
12606
12794
  timeoutMs: number().int().positive().default(6e4),
12795
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12796
+ * response headers: on the LM Studio / llama-server wire those are written
12797
+ * once the model has finished loading, so they belong to the bound below. */
12798
+ connectTimeoutMs: number().int().positive().default(1e4),
12799
+ /** Accepted, but no output yet — response headers included, because a cold
12800
+ * GPU load is exactly what happens before them. */
12801
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12802
+ /** Output started then stopped. */
12803
+ idleTimeoutMs: number().int().positive().default(6e4),
12804
+ /** Profile-level default. The per-consumer table and a per-call override
12805
+ * both beat it — see `resolveRetryPolicy`. */
12806
+ retry: LlmRetryPolicySchema.default({
12807
+ enabled: false,
12808
+ maxAttempts: 1
12809
+ }),
12810
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12811
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12812
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12813
+ toolsEnabled: boolean().default(false),
12607
12814
  extraHeaders: record(string(), string()).optional(),
12608
12815
  /** kind === 'managed-local' only (spec §4). */
12609
12816
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12653,6 +12860,36 @@ var ManagedModelCatalogEntrySchema = object({
12653
12860
  /** Vision models: companion projector file. */
12654
12861
  mmprojUrl: string().optional()
12655
12862
  });
12863
+ /**
12864
+ * The outcome of turning one operator-typed Hugging Face reference into a
12865
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12866
+ * I will not pick for you" is a normal answer the UI has to render, not an
12867
+ * exception.
12868
+ *
12869
+ * `candidates` is the whole reason the refusal is usable — every string in it
12870
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12871
+ */
12872
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12873
+ ok: literal(true),
12874
+ /** Ready to hand to `installModel` unchanged. */
12875
+ model: ManagedModelRefSchema,
12876
+ label: string(),
12877
+ repo: string(),
12878
+ quantization: string(),
12879
+ purpose: _enum(["text", "vision"]),
12880
+ totalBytes: number(),
12881
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12882
+ * see that 0.9 GB of it is a projector they did not name. */
12883
+ extraFilenames: array(string())
12884
+ }), object({
12885
+ ok: literal(false),
12886
+ code: string(),
12887
+ message: string(),
12888
+ candidates: array(string()).optional(),
12889
+ /** Set when the refusal was only the ceiling: re-calling with
12890
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12891
+ requiredBytes: number().optional()
12892
+ })]);
12656
12893
  var LlmRuntimeNodeSchema = object({
12657
12894
  nodeId: string(),
12658
12895
  reachable: boolean(),
@@ -12665,7 +12902,10 @@ var ProfileRefInputSchema = object({
12665
12902
  addonId: string(),
12666
12903
  profileId: string()
12667
12904
  });
12668
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12905
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12906
+ addonId: string().optional(),
12907
+ requestId: string()
12908
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12669
12909
  kind: "mutation",
12670
12910
  auth: "admin"
12671
12911
  }), method(ProfileRefInputSchema, _void(), {
@@ -12686,6 +12926,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12686
12926
  consumer: string().optional(),
12687
12927
  profileId: string().optional()
12688
12928
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12929
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12930
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12931
+ ref: string(),
12932
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12933
+ maxBytes: number().positive().optional()
12934
+ }), HfModelResolutionSchema, {
12935
+ kind: "mutation",
12936
+ auth: "admin"
12937
+ }), method(object({
12689
12938
  nodeId: string(),
12690
12939
  model: ManagedModelRefSchema
12691
12940
  }), _void(), {
@@ -13245,11 +13494,33 @@ var NotificationFormatSchema = _enum([
13245
13494
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13246
13495
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13247
13496
  * differently.
13497
+ *
13498
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13499
+ *
13500
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13501
+ * the whole set onto its own renderer's vocabulary through a
13502
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13503
+ * fallback, so adding a member here fails every adapter's build until someone
13504
+ * decides its glyph, which is the only place that decision can be made
13505
+ * honestly.
13506
+ *
13507
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13508
+ * `disarm` straight through; iOS feeds that string to
13509
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13510
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13511
+ * mapping, and "the field is documented" is not "the value renders".
13512
+ *
13513
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13514
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13515
+ * so an addon that emits a token the running hub does not know does not lose an
13516
+ * icon — its whole `send` fails Zod validation and the notification never
13517
+ * arrives. Never emit a new token from an addon before the train carrying it.
13248
13518
  */
13249
13519
  var NotificationActionIconSchema = _enum([
13250
13520
  "acknowledge",
13251
13521
  "dismiss",
13252
13522
  "silence",
13523
+ "snooze",
13253
13524
  "view",
13254
13525
  "play",
13255
13526
  "open",
@@ -13257,9 +13528,13 @@ var NotificationActionIconSchema = _enum([
13257
13528
  "lock",
13258
13529
  "unlock",
13259
13530
  "arm",
13531
+ "arm-home",
13532
+ "arm-away",
13533
+ "arm-night",
13260
13534
  "disarm",
13261
13535
  "light",
13262
- "alert"
13536
+ "alert",
13537
+ "camera"
13263
13538
  ]);
13264
13539
  /** A single tap-through action button. */
13265
13540
  var NotificationActionSchema = object({
@@ -13459,6 +13734,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13459
13734
  targetId: string(),
13460
13735
  enabled: boolean()
13461
13736
  }), _void(), { kind: "mutation" });
13737
+ new Set([
13738
+ {
13739
+ id: "person",
13740
+ name: "Person"
13741
+ },
13742
+ {
13743
+ id: "vehicle",
13744
+ name: "Vehicle"
13745
+ },
13746
+ {
13747
+ id: "animal",
13748
+ name: "Animal"
13749
+ },
13750
+ {
13751
+ id: "package",
13752
+ name: "Package"
13753
+ }
13754
+ ].map((l) => l.id));
13462
13755
  var COCO_TO_MACRO = {
13463
13756
  mapping: {
13464
13757
  person: "person",
@@ -14289,11 +14582,15 @@ var NcSystemEventKindSchema = _enum([
14289
14582
  "stream-offline",
14290
14583
  "node-online",
14291
14584
  "node-offline",
14585
+ "node-inference-unavailable",
14586
+ "detection-blind",
14292
14587
  "addon-update-available",
14293
14588
  "server-update-available",
14294
14589
  "alarm-triggered",
14295
14590
  "alarm-armed",
14296
14591
  "alarm-disarmed",
14592
+ "alarm-arming",
14593
+ "alarm-arm-refused",
14297
14594
  "camera-online",
14298
14595
  "camera-offline",
14299
14596
  "camera-disabled",
@@ -14348,7 +14645,16 @@ var NcScheduleSchema = object({
14348
14645
  });
14349
14646
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14350
14647
  var NcPlateMatcherSchema = object({
14351
- values: array(string().min(1)).min(1),
14648
+ /**
14649
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14650
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14651
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14652
+ * rather than merely seen. A subject carrying no plate still fails.
14653
+ *
14654
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14655
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14656
+ */
14657
+ values: array(string().min(1)),
14352
14658
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14353
14659
  maxDistance: number().int().min(0).max(3).default(1)
14354
14660
  });
@@ -14382,28 +14688,36 @@ var NcOccupancyConditionSchema = object({
14382
14688
  /**
14383
14689
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14384
14690
  *
14385
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14386
- * reference notifier uses, so an operator moving between them re-uses what
14387
- * they already know): a rule matches when, over a sampling window of
14388
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14389
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14390
- *
14391
- * - `dbThreshold` its level is at or above this many dBFS (see
14392
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14393
- * - `labels` the classifier put at least one of these labels on it.
14394
- *
14395
- * Both are OPTIONAL and independent, which is the point of the shape: a
14396
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14397
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14398
- * is given** a window in which every sample is trivially a hit would fire on
14399
- * silence, so the engine refuses such a condition rather than notifying on
14400
- * nothing (the schema cannot express "at least one of" without becoming a
14401
- * ZodEffects the cap path would have to special-case).
14402
- *
14403
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14404
- * must be FULL before it can match a window that has been open for two
14405
- * seconds of its ten is 100% of nothing, and firing on it would make
14406
- * `samplingSeconds` decorative.
14691
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14692
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14693
+ * there is no second switch that can disagree with the first and every rule
14694
+ * authored before the decision migrates for free (`audioModeOf`):
14695
+ *
14696
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14697
+ * classifier labels with one of them. No window, no percentage:
14698
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14699
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14700
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14701
+ * reaches this condition if the classifier was already confident enough.
14702
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14703
+ * the condition: at least `hitPercent`% of the samples over
14704
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14705
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14706
+ * must be FULL before it can match a window open for two of its ten
14707
+ * seconds is 100% of nothing.
14708
+ *
14709
+ * **Why label mode has no window.** It had one, and it never fired: the
14710
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14711
+ * of them per episode, even through continuous crying. The measured maximum
14712
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14713
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14714
+ * the wrong question to ask of a sparse classifier.
14715
+ *
14716
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14717
+ * and the rule would fire on silence. The schema cannot express "exactly one
14718
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14719
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14720
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14407
14721
  *
14408
14722
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14409
14723
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14411,13 +14725,13 @@ var NcOccupancyConditionSchema = object({
14411
14725
  * an operator who typed `dog` mean the same thing.
14412
14726
  */
14413
14727
  var NcAudioConditionSchema = object({
14414
- /** Audio macro labels; absent = any sound (level-only rule). */
14728
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14415
14729
  labels: array(string().min(1)).min(1).optional(),
14416
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14730
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14417
14731
  dbThreshold: number().min(-96).max(0).optional(),
14418
- /** Percentage of the window's samples that must be hits (1–100). */
14732
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14419
14733
  hitPercent: number().int().min(1).max(100).default(60),
14420
- /** Length of the sampling window in seconds. */
14734
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14421
14735
  samplingSeconds: number().int().min(1).max(300).default(10)
14422
14736
  });
14423
14737
  /**
@@ -14555,13 +14869,81 @@ var NcRuleActionsSchema = object({
14555
14869
  */
14556
14870
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14557
14871
  });
14872
+ /**
14873
+ * "This rule applies only while `deviceId` is in one of `states`."
14874
+ *
14875
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14876
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14877
+ * make the condition lie about devices whose states have no equivalent.
14878
+ *
14879
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14880
+ * condition that fired on "I could not read it" would be worse than no gate.
14881
+ */
14882
+ var NcDeviceStateConditionSchema = object({
14883
+ deviceId: number().int(),
14884
+ /** Any of these matches. */
14885
+ states: array(string().min(1)).min(1)
14886
+ });
14887
+ /**
14888
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14889
+ *
14890
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14891
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14892
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14893
+ * already has a trigger ("tell me about a person at the front door, but only
14894
+ * while the bin is still out"). That is why it composes with every delivery
14895
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14896
+ * kind exist for it — see D159.
14897
+ *
14898
+ * ── Identity ───────────────────────────────────────────────────────────────
14899
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14900
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14901
+ * carried as a HINT for the editor and for the log line, never as part of the
14902
+ * lookup key: a rule whose hint drifted must still gate correctly.
14903
+ *
14904
+ * ── Which boolean ──────────────────────────────────────────────────────────
14905
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14906
+ * already declares which boolean drives notification rules, and a second knob
14907
+ * that could disagree with it is exactly the D62 failure. Set it only to
14908
+ * override one rule against the scene's own default.
14909
+ *
14910
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14911
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14912
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14913
+ * evidence, in either direction.
14914
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14915
+ * The latch is a durable fact about the past ("it has diverged since I armed
14916
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14917
+ * reason the operator asked for a latch.
14918
+ *
14919
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14920
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14921
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14922
+ * said out loud in the log rather than dropped in silence.
14923
+ */
14924
+ var NcSceneConditionSchema = object({
14925
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14926
+ sceneId: string().min(1),
14927
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14928
+ deviceId: number().int().optional(),
14929
+ /** The state the scene must be in for the rule to fire. */
14930
+ requiredState: _enum(["matched", "diverged"]),
14931
+ /**
14932
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14933
+ * scene's own `emit` field, which is the only place that decision belongs.
14934
+ */
14935
+ latched: boolean().optional()
14936
+ });
14558
14937
  var NcConditionsSchema = object({
14559
14938
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14560
- deviceState: object({
14561
- deviceId: number().int(),
14562
- /** Any of these matches. */
14563
- states: array(string().min(1)).min(1)
14564
- }).optional(),
14939
+ deviceState: NcDeviceStateConditionSchema.optional(),
14940
+ /**
14941
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14942
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14943
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14944
+ * {@link NcSceneCondition} and D159.
14945
+ */
14946
+ scene: NcSceneConditionSchema.optional(),
14565
14947
  /** Device scope — absent = all devices. */
14566
14948
  devices: array(number()).optional(),
14567
14949
  /** Detector class names (any overlap with the record's class set). */
@@ -14587,18 +14969,47 @@ var NcConditionsSchema = object({
14587
14969
  */
14588
14970
  labelEquals: array(string().min(1)).optional(),
14589
14971
  /**
14590
- * Identity matcher. P1 boundary: matched against the record's collapsed
14591
- * `label` (the identity display name propagated by the face pipeline) —
14592
- * identity-ID matching rides in P2 when identity ids reach the record.
14972
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14973
+ * is about recognised people at all.
14974
+ *
14975
+ * Three states, and the empty one is the point:
14976
+ *
14977
+ * | value | meaning |
14978
+ * | --- | --- |
14979
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14980
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14981
+ * | a list | only these identities |
14982
+ *
14983
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14984
+ * `devices` list is every device), applied one level down: the operator has
14985
+ * turned the face scope ON and narrowed it to nothing, which is every known
14986
+ * face. No second field states the same thing — a switch that can disagree
14987
+ * with the list under it is worse than no switch (D62).
14988
+ *
14989
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14990
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14991
+ * the operator fixed the spelling. The id reaches the record on
14992
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14993
+ * `{{label}}` renders.
14994
+ *
14995
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14996
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14997
+ * for is left as it stands and reported, never dropped. The engine also
14998
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14999
+ * migration could not resolve keeps matching exactly what it matched before.
14593
15000
  */
14594
15001
  identities: array(string().min(1)).optional(),
14595
- /** Fuzzy plate matcher against the record's `label` (plate text). */
15002
+ /**
15003
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
15004
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
15005
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
15006
+ */
14596
15007
  plates: NcPlateMatcherSchema.optional(),
14597
15008
  /**
14598
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14599
- * Same P1 boundary: matched against the record's collapsed `label` (the
14600
- * identity display name). A record with NO label passes (nothing to
14601
- * exclude), unlike the include variant which fails on an absent label.
15009
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
15010
+ * the same id members and the same lazy name→id migration. A record with NO
15011
+ * identity passes (nothing to exclude), unlike the include variant which
15012
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14602
15013
  */
14603
15014
  identitiesExclude: array(string().min(1)).optional(),
14604
15015
  /**
@@ -14990,7 +15401,80 @@ var NcRuleInputSchema = object({
14990
15401
  * a rule that predates the gate must keep delivering byte-for-byte as it
14991
15402
  * did, and absent is the only way to say that without a migration.
14992
15403
  */
14993
- confirm: NcConfirmSchema.optional()
15404
+ confirm: NcConfirmSchema.optional(),
15405
+ /**
15406
+ * WAIT for face/plate recognition before saying anything.
15407
+ *
15408
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15409
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15410
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15411
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15412
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15413
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15414
+ *
15415
+ * Only two honest answers exist, and this flag picks between them. It has
15416
+ * effect ONLY on a rule that declares a recognition scope
15417
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15418
+ * other rule there is nothing to wait for and the flag is inert.
15419
+ *
15420
+ * | value | what happens |
15421
+ * | --- | --- |
15422
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15423
+ * | 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) |
15424
+ *
15425
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15426
+ * on the addon cap path, and absent has to keep meaning exactly what every
15427
+ * rule authored before this field meant.
15428
+ *
15429
+ * The cost of `true` is stated here because the editor states it too: a rule
15430
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15431
+ * tests every zone the track visited and a `crossing` condition can no longer
15432
+ * be satisfied, because a closed track carries no crossing.
15433
+ */
15434
+ waitForEnhancement: boolean().optional(),
15435
+ /**
15436
+ * GROUP a burst of subjects into ONE notification that grows.
15437
+ *
15438
+ * Seconds of quiet after the last matching subject before the burst is
15439
+ * considered over. While it is open, the first subject enqueues immediately —
15440
+ * **exactly as today, with no added latency** — and every real growth (a new
15441
+ * subject, or a name confirmed on one already in it) REPLACES that
15442
+ * notification with an updated one naming everybody. The push carries the
15443
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15444
+ *
15445
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15446
+ *
15447
+ * ### Why an idle cutoff and not a window
15448
+ *
15449
+ * The measured seven-person arrival on device 590 spans 110 s with every
15450
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15451
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15452
+ * 30 is Frigate's shipped value for the same decision.
15453
+ *
15454
+ * ### What it replaces
15455
+ *
15456
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15457
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15458
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15459
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15460
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15461
+ * budget over GROUPS — which is what it always meant — and a growth is never
15462
+ * throttled by the window its own first member spent.
15463
+ *
15464
+ * ### Interaction with {@link waitForEnhancement}
15465
+ *
15466
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15467
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15468
+ * CLOSE — already carrying its name — and grows as later members close. That
15469
+ * is later, and complete. With grouping alone the group opens on the first
15470
+ * object event and picks up names as they are confirmed, through the growth
15471
+ * path. Neither combination fires twice for one subject.
15472
+ *
15473
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15474
+ * on the addon cap path, so absent must keep meaning what it meant before this
15475
+ * field existed.
15476
+ */
15477
+ groupIdleSec: number().int().min(0).max(600).optional()
14994
15478
  });
14995
15479
  /**
14996
15480
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15097,6 +15581,7 @@ var NcConditionDescriptorSchema = object({
15097
15581
  "occupancy",
15098
15582
  "audio",
15099
15583
  "deviceState",
15584
+ "scene",
15100
15585
  "systemEvent"
15101
15586
  ]),
15102
15587
  operator: _enum([
@@ -15502,7 +15987,87 @@ var MethodAccessSchema = _enum([
15502
15987
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15503
15988
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15504
15989
  var CapScopeSchema = _enum(["device", "system"]);
15505
- var TokenScopeSchema = discriminatedUnion("type", [
15990
+ /**
15991
+ * DeviceSelector (scope model v3 — 2026-08-12).
15992
+ *
15993
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15994
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15995
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15996
+ * AFTER the grant was minted — no re-grant, no re-login.
15997
+ *
15998
+ * - `all` — every device in the deployment. The broad viewer/operator
15999
+ * lever without a `category` grant (a `category` grant also covers device
16000
+ * caps that carry no deviceId; `all` is specifically the device set).
16001
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
16002
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
16003
+ * is NOT covered until the grant is edited.
16004
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
16005
+ * DYNAMIC. A device that changes type, or a new device of the type,
16006
+ * re-resolves on the next request.
16007
+ * - `locations` — every device whose operator-assigned `location` label is
16008
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
16009
+ * null/unset location matches NO `locations` selector.
16010
+ */
16011
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
16012
+ object({ kind: literal("all") }),
16013
+ object({
16014
+ kind: literal("ids"),
16015
+ ids: array(number().int()).min(1)
16016
+ }),
16017
+ object({
16018
+ kind: literal("types"),
16019
+ types: array(_enum(DeviceType)).min(1)
16020
+ }),
16021
+ object({
16022
+ kind: literal("locations"),
16023
+ locations: array(string().min(1)).min(1)
16024
+ })
16025
+ ]);
16026
+ var DeviceTokenScopeSchema = object({
16027
+ type: literal("device"),
16028
+ /** The device SET this grant covers — resolved against the live fleet. */
16029
+ selector: DeviceSelectorSchema,
16030
+ access: array(MethodAccessSchema).min(1),
16031
+ /**
16032
+ * Whether a grant on a PARENT device transparently covers its accessory
16033
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16034
+ * Direction is parent → children ONLY.
16035
+ *
16036
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16037
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16038
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16039
+ * operator must grant on the child, not inherit from the parent). Set it
16040
+ * explicitly to override that default per grant.
16041
+ */
16042
+ includeLinked: boolean().optional()
16043
+ });
16044
+ /**
16045
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16046
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16047
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16048
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16049
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16050
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16051
+ * migration cannot reach a JWT already in a client's hands; parse-time
16052
+ * migration covers both without a flag day. No cast — the raw object is read
16053
+ * through `Reflect.get` (its static type is `unknown`).
16054
+ */
16055
+ function migrateLegacyTokenScope(raw) {
16056
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16057
+ if (Reflect.get(raw, "type") !== "device") return raw;
16058
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16059
+ const targets = Reflect.get(raw, "targets");
16060
+ if (!Array.isArray(targets)) return raw;
16061
+ return {
16062
+ type: "device",
16063
+ selector: {
16064
+ kind: "ids",
16065
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16066
+ },
16067
+ access: Reflect.get(raw, "access")
16068
+ };
16069
+ }
16070
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15506
16071
  object({
15507
16072
  type: literal("category"),
15508
16073
  target: CapScopeSchema,
@@ -15518,18 +16083,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15518
16083
  target: string(),
15519
16084
  access: array(MethodAccessSchema).min(1)
15520
16085
  }),
15521
- object({
15522
- type: literal("device"),
15523
- /**
15524
- * One or more deviceIds (serialised as strings for wire-format
15525
- * consistency with the rest of the union). Matcher accepts if
15526
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15527
- * of one scope-per-device when granting access to a set of cameras.
15528
- */
15529
- targets: array(string()).min(1),
15530
- access: array(MethodAccessSchema).min(1)
15531
- })
15532
- ]);
16086
+ DeviceTokenScopeSchema
16087
+ ]));
15533
16088
  object({
15534
16089
  id: string(),
15535
16090
  username: string(),
@@ -15846,7 +16401,7 @@ var TrackEnvelopeSchema = object({
15846
16401
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15847
16402
  * keeps every scalar the list surfaces actually render (ids, class(es),
15848
16403
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15849
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16404
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15850
16405
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15851
16406
  * `getTrack`. Mirrors the event-store `projection` convention
15852
16407
  * (`getObjectEvents` et al.).
@@ -15982,7 +16537,21 @@ union([literal(1), literal(2)]);
15982
16537
  var LabelAttributionSchema = object({
15983
16538
  stepId: string(),
15984
16539
  modelId: string().optional(),
15985
- decidedAt: number()
16540
+ decidedAt: number(),
16541
+ /**
16542
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16543
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16544
+ *
16545
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16546
+ * notification rule authored on "Gianluca" stopped matching the moment the
16547
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16548
+ * the thing that does not move, so it is what a rule matches on
16549
+ * (`NcConditions.identities`) and the text is what a human is shown.
16550
+ *
16551
+ * Absent when the label names no gallery row — a plate the OCR read but no
16552
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16553
+ */
16554
+ identityId: string().optional()
15986
16555
  });
15987
16556
  /**
15988
16557
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16119,6 +16688,28 @@ var TrackSchema = object({
16119
16688
  * `=== true` and render nothing otherwise, never infer "no face".
16120
16689
  */
16121
16690
  hasFace: boolean().optional(),
16691
+ /**
16692
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16693
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16694
+ * so the passage is tracked once and as a VEHICLE.
16695
+ *
16696
+ * It exists because the fold's record was dishonest. D34 and the code both
16697
+ * said "the person is not lost — it is reported so both entities stay on the
16698
+ * record"; in fact the pair went into a per-processor RAM field behind an
16699
+ * accessor nobody called, and every durable surface said `vehicle`, full
16700
+ * stop. This is the composition note that makes the row true.
16701
+ *
16702
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16703
+ * person" is not an answer to "what is this" — both label tiers would refuse
16704
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16705
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16706
+ * and a `person` rule still does not fire for someone cycling past.
16707
+ *
16708
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16709
+ * the column, and every hub that predates the field, omits it. Test
16710
+ * `=== true` and render nothing otherwise — never infer "no rider".
16711
+ */
16712
+ hasRider: boolean().optional(),
16122
16713
  ...TrackFlagFields,
16123
16714
  ...TrackRetrainFields
16124
16715
  });
@@ -16468,7 +17059,10 @@ var RecentTracksQueryInput = object({
16468
17059
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16469
17060
  cursor: string().optional(),
16470
17061
  /** See {@link TrackProjectionSchema}. Default `full`. */
16471
- projection: TrackProjectionSchema.optional()
17062
+ projection: TrackProjectionSchema.optional(),
17063
+ /** Include stationary-promoted rows (parked objects). Default false: the
17064
+ * feed lists passages; parking records live on the stationary registry. */
17065
+ includeStationary: boolean().optional()
16472
17066
  });
16473
17067
  var RecentTracksPageSchema = object({
16474
17068
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16686,7 +17280,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16686
17280
  zone: TrackZoneFilterSchema.optional(),
16687
17281
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16688
17282
  * compatible — omitting the field keeps today's exact behaviour). */
16689
- projection: TrackProjectionSchema.optional()
17283
+ projection: TrackProjectionSchema.optional(),
17284
+ /** Include stationary-promoted rows (parked objects handed to the
17285
+ * stationary registry). Default false: the timeline lists passages,
17286
+ * not parking records (operator decision, 2026-08-15). */
17287
+ includeStationary: boolean().optional()
16690
17288
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16691
17289
  kind: "mutation",
16692
17290
  auth: "admin"
@@ -16850,11 +17448,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16850
17448
  auth: "admin"
16851
17449
  }), method(object({
16852
17450
  eventId: string(),
16853
- kind: MediaFileKindEnum.optional()
17451
+ kind: MediaFileKindEnum.optional(),
17452
+ deviceId: number()
16854
17453
  }), array(MediaFileSchema).readonly()), method(object({
16855
17454
  trackId: string(),
16856
- kinds: array(MediaFileKindEnum).optional()
16857
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17455
+ kinds: array(MediaFileKindEnum).optional(),
17456
+ deviceId: number()
17457
+ }), array(MediaFileSchema).readonly()), method(object({
17458
+ trackId: string(),
17459
+ deviceId: number()
17460
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16858
17461
  kind: "mutation",
16859
17462
  auth: "admin"
16860
17463
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17554,6 +18157,17 @@ var maxSessionHoldMsField = {
17554
18157
  default: 12e4,
17555
18158
  step: 5e3
17556
18159
  };
18160
+ /**
18161
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18162
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18163
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18164
+ */
18165
+ var audioMotionWindowMsField = {
18166
+ min: 5e3,
18167
+ max: 6e5,
18168
+ default: 9e4,
18169
+ step: 5e3
18170
+ };
17557
18171
  var motionFpsField = {
17558
18172
  min: 1,
17559
18173
  max: 30,
@@ -17566,10 +18180,26 @@ var detectionFpsField = {
17566
18180
  default: 10,
17567
18181
  step: 1
17568
18182
  };
18183
+ /**
18184
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
18185
+ *
18186
+ * The recheck is now on by default (a parked car is invisible to occupancy
18187
+ * rules until the stationary registry has been rebuilt by motion, which after a
18188
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
18189
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
18190
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
18191
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
18192
+ *
18193
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
18194
+ * the host validates `attachCamera` against ITS copy of this schema, so a
18195
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
18196
+ * carrying the wider bound is installed everywhere. 300 is the widest value
18197
+ * that ships with an addon deploy.
18198
+ */
17569
18199
  var occupancyRecheckSecField = {
17570
18200
  min: 0,
17571
18201
  max: 300,
17572
- default: 30,
18202
+ default: 300,
17573
18203
  step: 5
17574
18204
  };
17575
18205
  var occupancyRecheckFramesField = {
@@ -17714,6 +18344,27 @@ var RunnerCameraConfigSchema = object({
17714
18344
  * resolved `CameraDetectionConfig`.
17715
18345
  */
17716
18346
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18347
+ /**
18348
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18349
+ * 'on-motion'` audio window, measured from the LAST motion event.
18350
+ *
18351
+ * This exists because the falling edge cannot be relied on. Camera-native
18352
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18353
+ * its email-push SMTP path both emit `detected: true` and never the
18354
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18355
+ * onboard-only camera a window that closed only on `detected: false` never
18356
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18357
+ * battery camera, the one failure mode the mode exists to prevent.
18358
+ *
18359
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18360
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18361
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18362
+ *
18363
+ * Not consumed by the runner: carried here so it shares the per-camera
18364
+ * device-settings surface with `motionCooldownMs`, exactly like
18365
+ * `maxSessionHoldMs`.
18366
+ */
18367
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17717
18368
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17718
18369
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17719
18370
  motionStreamId: string(),
@@ -17767,15 +18418,21 @@ var RunnerCameraConfigSchema = object({
17767
18418
  */
17768
18419
  onboardMotionDrivesAnalyzer: boolean().default(true),
17769
18420
  /**
17770
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17771
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17772
- * this is off by default because the recheck re-subscribes a detection session
17773
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17774
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
18421
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
18422
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17775
18423
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17776
18424
  * (and only render) when this is enabled.
17777
- */
17778
- occupancyRecheckEnabled: boolean().default(false),
18425
+ *
18426
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
18427
+ * recheck re-subscribes a detection session every N seconds while `watching`
18428
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
18429
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
18430
+ * object is counted only while the stationary registry holds it, and the
18431
+ * registry rebuilds from motion, so after a restart a parked car was invisible
18432
+ * to every occupancy rule until something moved in front of it. The churn is
18433
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
18434
+ */
18435
+ occupancyRecheckEnabled: boolean().default(true),
17779
18436
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17780
18437
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17781
18438
  /**
@@ -17803,7 +18460,7 @@ var RunnerCameraConfigSchema = object({
17803
18460
  */
17804
18461
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17805
18462
  });
17806
- 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;
18463
+ 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;
17807
18464
  /**
17808
18465
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17809
18466
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18908,7 +19565,16 @@ targets: array(object({
18908
19565
  /** A sleeping battery camera: the frame is deliberately stale and will
18909
19566
  * NOT refresh in the background. A surface should say so rather than
18910
19567
  * present it as current. */
18911
- sleeping: boolean()
19568
+ sleeping: boolean(),
19569
+ /** Current device state rendered over the cached frame. State images
19570
+ * remain authoritative even when their photographic background is
19571
+ * old; null means the link must carry a current camera frame. */
19572
+ stateReason: _enum([
19573
+ "disabled",
19574
+ "sleeping",
19575
+ "unreachable",
19576
+ "waking"
19577
+ ]).nullable()
18912
19578
  })))
18913
19579
  },
18914
19580
  status: {
@@ -20611,6 +21277,25 @@ var BatteryStatusSchema = object({
20611
21277
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20612
21278
  lastUpdated: number(),
20613
21279
  /**
21280
+ * Ms epoch of the last time the device PROVED it was reachable — a
21281
+ * completed firmware round-trip, an observed wake, or an inbound push
21282
+ * (firmware event, email). `0`/absent = never since this slice was born.
21283
+ *
21284
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21285
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21286
+ * for the radio, because a poll that confirms reachability is the same
21287
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21288
+ * single derivation every consumer must use; no surface computes its own.
21289
+ *
21290
+ * It is deliberately NOT a clock in the
21291
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21292
+ * observation itself, and it is the only thing a 30-hour silence is
21293
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21294
+ * Reolink provider) so a value that means "recently" cannot cost a
21295
+ * SQLite commit per round-trip.
21296
+ */
21297
+ lastContactAt: number().optional(),
21298
+ /**
20614
21299
  * True when the source is a BINARY low-battery indicator (HA
20615
21300
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20616
21301
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -22875,54 +23560,139 @@ var TalkAudioCodecSchema = _enum([
22875
23560
  "g711ulaw",
22876
23561
  "g711alaw"
22877
23562
  ]);
22878
- DeviceType.Camera, method(object({ deviceId: number() }), object({
22879
- sessionId: string(),
22880
- sdpOffer: string()
22881
- }), {
22882
- kind: "mutation",
22883
- auth: "admin"
22884
- }), method(object({
22885
- deviceId: number(),
22886
- sessionId: string(),
22887
- sdpAnswer: string()
22888
- }), _void(), {
22889
- kind: "mutation",
22890
- auth: "admin"
22891
- }), method(object({
22892
- deviceId: number(),
22893
- sessionId: string()
22894
- }), _void(), {
22895
- kind: "mutation",
22896
- auth: "admin"
22897
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
22898
- kind: "mutation",
22899
- auth: "admin"
22900
- }), method(object({
22901
- deviceId: number(),
22902
- /** Audio bytes for ONE frame, base64-encoded so the payload
22903
- * survives tRPC JSON serialization. */
22904
- audioBase64: string(),
22905
- /** Wire codec of the payload. Omit to let the provider default
22906
- * to its native expected format (s16le @ provider-native rate,
22907
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
22908
- codec: TalkAudioCodecSchema.optional(),
22909
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
22910
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
22911
- sampleRate: number().int().positive().optional(),
22912
- /** Channel count. Default 1. */
22913
- channels: number().int().positive().optional(),
22914
- /** Sequence number for ordering / dropping out-of-order frames. */
22915
- sequenceNumber: number().int()
22916
- }), object({ accepted: boolean() }), {
22917
- kind: "mutation",
22918
- auth: "admin"
22919
- }), method(object({ deviceId: number() }), _void(), {
22920
- kind: "mutation",
22921
- auth: "admin"
22922
- }), object({
22923
- deviceId: number(),
22924
- status: IntercomStatusSchema
22925
- });
23563
+ var intercomCapability = {
23564
+ name: "intercom",
23565
+ scope: "device",
23566
+ deviceNative: true,
23567
+ mode: "singleton",
23568
+ deviceTypes: [DeviceType.Camera],
23569
+ methods: {
23570
+ /**
23571
+ * Open a server-side WebRTC audio-only session. Returns an SDP
23572
+ * offer with a single sendonly audio m-line the client answers
23573
+ * (client → server direction). The server wakes battery cams
23574
+ * transparently before opening the upstream talk channel.
23575
+ */
23576
+ startSession: method(object({ deviceId: number() }), object({
23577
+ sessionId: string(),
23578
+ sdpOffer: string()
23579
+ }), {
23580
+ kind: "mutation",
23581
+ auth: "admin"
23582
+ }),
23583
+ handleAnswer: method(object({
23584
+ deviceId: number(),
23585
+ sessionId: string(),
23586
+ sdpAnswer: string()
23587
+ }), _void(), {
23588
+ kind: "mutation",
23589
+ auth: "admin"
23590
+ }),
23591
+ /** Close explicitly. Server also auto-closes on 30s idle. */
23592
+ stopSession: method(object({
23593
+ deviceId: number(),
23594
+ sessionId: string()
23595
+ }), _void(), {
23596
+ kind: "mutation",
23597
+ auth: "admin"
23598
+ }),
23599
+ /**
23600
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
23601
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
23602
+ * harnesses) that already have decoded PCM frames and just need a
23603
+ * direct path onto the camera's talk channel. Mutually exclusive
23604
+ * with `startSession` (an active WebRTC session must be stopped
23605
+ * before a raw-PCM session can be opened on the same device, and
23606
+ * vice versa).
23607
+ */
23608
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
23609
+ kind: "mutation",
23610
+ auth: "admin"
23611
+ }),
23612
+ /**
23613
+ * Push one chunk of talk-back audio onto the active talk session.
23614
+ * The cap is codec-agnostic: the caller declares (or omits) the
23615
+ * wire format via `codec`; the provider decides between passthrough
23616
+ * (when the wire codec matches the camera's native talk channel),
23617
+ * transcoding via the `audio-codec` cap, or rejecting the call.
23618
+ *
23619
+ * Callers do NOT need to know the camera's wire format or sample
23620
+ * rate — that information lives entirely inside the provider.
23621
+ *
23622
+ * Sequence numbers MUST be monotonic per talk session; older frames
23623
+ * arriving after newer ones are dropped to avoid smearing the
23624
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
23625
+ * predictor would corrupt with re-ordering).
23626
+ */
23627
+ pushTalkAudio: method(object({
23628
+ deviceId: number(),
23629
+ /** Audio bytes for ONE frame, base64-encoded so the payload
23630
+ * survives tRPC JSON serialization. */
23631
+ audioBase64: string(),
23632
+ /** Wire codec of the payload. Omit to let the provider default
23633
+ * to its native expected format (s16le @ provider-native rate,
23634
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23635
+ codec: TalkAudioCodecSchema.optional(),
23636
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23637
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23638
+ sampleRate: number().int().positive().optional(),
23639
+ /** Channel count. Default 1. */
23640
+ channels: number().int().positive().optional(),
23641
+ /** Sequence number for ordering / dropping out-of-order frames. */
23642
+ sequenceNumber: number().int()
23643
+ }), object({ accepted: boolean() }), {
23644
+ kind: "mutation",
23645
+ auth: "admin"
23646
+ }),
23647
+ /** Close the raw-PCM talk session. Idempotent. */
23648
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
23649
+ kind: "mutation",
23650
+ auth: "admin"
23651
+ })
23652
+ },
23653
+ events: { onStatusChanged: { data: object({
23654
+ deviceId: number(),
23655
+ status: IntercomStatusSchema
23656
+ }) } },
23657
+ status: {
23658
+ schema: IntercomStatusSchema,
23659
+ kind: "command-driven"
23660
+ },
23661
+ /**
23662
+ * Runtime-state slice — mirrored by the kernel.
23663
+ *
23664
+ * The cap declared `status` and nothing else, so the only two sources an
23665
+ * exporter has for a value — the `device.state-changed` slice event and the
23666
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
23667
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
23668
+ * have been published and never received a value, which is the defect the
23669
+ * export's two classification tables exist to prevent (177 of them, once), so
23670
+ * `intercom` was excluded rather than exported.
23671
+ *
23672
+ * The shape is the status shape: there is exactly one truth about talk-back
23673
+ * and duplicating it into a second schema is how two halves of one capability
23674
+ * come to disagree. Providers write it through
23675
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
23676
+ * and close a session, and seed it at registration so the slice exists before
23677
+ * the first session rather than after it.
23678
+ *
23679
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
23680
+ * session handle, so a session torn down by a transport death that never
23681
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
23682
+ * session or the next restart. That is why the slice is `session` and not
23683
+ * `restored` — a restart must never restore "talking".
23684
+ */
23685
+ runtimeState: IntercomStatusSchema,
23686
+ /**
23687
+ * Runtime-state durability: **session** — `talking` describes a live audio
23688
+ * session, which by definition does not survive the process that held it.
23689
+ * Restoring it would publish a camera as talking to nobody.
23690
+ *
23691
+ * See `RuntimeStateDurability`. Enforced by
23692
+ * `scripts/check-runtime-state-durability.ts`.
23693
+ */
23694
+ durability: "session"
23695
+ };
22926
23696
  /**
22927
23697
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
22928
23698
  * with a mowing lifecycle plus a dock action.
@@ -25619,7 +26389,7 @@ method(object({
25619
26389
  toMs: number()
25620
26390
  }), RecordingAvailabilitySchema, {
25621
26391
  kind: "query",
25622
- auth: "admin"
26392
+ auth: "protected"
25623
26393
  }), method(object({
25624
26394
  deviceId: number(),
25625
26395
  fromMs: number(),
@@ -25627,14 +26397,14 @@ method(object({
25627
26397
  tzOffsetMinutes: number()
25628
26398
  }), RecordingDaysSchema, {
25629
26399
  kind: "query",
25630
- auth: "admin"
26400
+ auth: "protected"
25631
26401
  }), method(object({
25632
26402
  deviceId: number(),
25633
26403
  fromMs: number(),
25634
26404
  toMs: number()
25635
26405
  }), RecordingManifestSchema, {
25636
26406
  kind: "query",
25637
- auth: "admin"
26407
+ auth: "protected"
25638
26408
  }), method(object({}), RecordingStorageUsageSchema, {
25639
26409
  kind: "query",
25640
26410
  auth: "admin"
@@ -25924,14 +26694,77 @@ method(object({
25924
26694
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
25925
26695
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
25926
26696
  *
25927
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
25928
- * derives the device-detail contribution; the provider carries NO hand-written
25929
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
25930
- * every hysteresis flip / availability change; consumers never poll.
25931
- */
25932
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
25933
- * be added without a wire break (matching falls back to any-condition refs). */
26697
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
26698
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
26699
+ * for the thing: a scene is a standing question about the property ("is the bin
26700
+ * still out"), and the operator's question is "which of my scenes have tripped",
26701
+ * across every camera at once — not "what does camera 617 think". Buried one
26702
+ * camera deep it also could not be found. The surface is now a top-level admin
26703
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
26704
+ * picks the camera inside the create flow, the same shape Events and Faces have.
26705
+ *
26706
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
26707
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
26708
+ * directions, so a registration nobody declares fails exactly as loudly as a
26709
+ * declaration nobody registers. The editor is imported directly by the page.
26710
+ *
26711
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
26712
+ * availability change; consumers never poll.
26713
+ */
26714
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
26715
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
26716
+ * Open by design so more can be added without a wire break.
26717
+ *
26718
+ * Matching does NOT fall back across conditions: cross-condition cosines are
26719
+ * not comparable, so "I have never seen this scene in this light" is reported
26720
+ * as `unknown`, never guessed. A day reference scored against an IR frame
26721
+ * collapses the cosine and would latch a false alarm every single night. */
25934
26722
  var SceneConditionSchema = string();
26723
+ /**
26724
+ * What a scene does when the CURRENT light has no reference of its own.
26725
+ *
26726
+ * The lighting variants are not equally likely to exist. Almost every operator
26727
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
26728
+ * scene that is only ever going to be asked about a daytime question ("is the
26729
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
26730
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
26731
+ * working without it rather than degrading into a permanent complaint.
26732
+ *
26733
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
26734
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
26735
+ * last covered light left it at, the latch is untouched, and the hysteresis
26736
+ * run is neither spent nor cleared. The scene resumes by itself at first
26737
+ * light. This is the only behaviour under which "I never captured IR" is a
26738
+ * configuration choice instead of a nightly fault.
26739
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
26740
+ * for cameras whose IR frame is close enough to daylight (a floodlit
26741
+ * driveway, an always-white-light doorbell), and wrong for everything else:
26742
+ * cross-condition cosines are not comparable, so a day reference against a
26743
+ * true IR frame collapses and the scene reports a theft at 21:40.
26744
+ *
26745
+ * Never applies when the scene has NO comparable reference at all — that is
26746
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
26747
+ * there would hide a scene the operator never finished setting up.
26748
+ */
26749
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
26750
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
26751
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
26752
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
26753
+ * and never counts toward hysteresis in either direction. */
26754
+ var SceneVerdictSchema = _enum([
26755
+ "matched",
26756
+ "diverged",
26757
+ "unknown"
26758
+ ]);
26759
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
26760
+ * silence that reads as "nothing has happened". */
26761
+ var SceneUnavailableSchema = _enum([
26762
+ "no-reference-for-condition",
26763
+ "view-shifted",
26764
+ "no-vision-profile",
26765
+ "encoder-model-changed",
26766
+ "no-snapshot"
26767
+ ]);
25935
26768
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
25936
26769
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
25937
26770
  var SceneReferenceSchema = object({
@@ -25939,7 +26772,14 @@ var SceneReferenceSchema = object({
25939
26772
  modelId: string(),
25940
26773
  condition: SceneConditionSchema,
25941
26774
  capturedAt: number(),
25942
- thumbnailMediaId: string().optional()
26775
+ thumbnailMediaId: string().optional(),
26776
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
26777
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
26778
+ * normalized rect frame a different piece of world, and the scene would
26779
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
26780
+ * when hysteresis is about to flip — one extra encode per candidate
26781
+ * transition, not per poll. */
26782
+ anchorEmbedding: array(number()).optional()
25943
26783
  });
25944
26784
  var SceneMonitorStateSchema = object({
25945
26785
  id: string(),
@@ -25961,6 +26801,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
25961
26801
  profileId: string().optional(),
25962
26802
  hysteresisCount: number().int().positive()
25963
26803
  })]);
26804
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
26805
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
26806
+ * out in silence rather than reporting a fault every night. */
26807
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
26808
+ /**
26809
+ * Vision-model adjudication of a candidate flip. Field names deliberately
26810
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
26811
+ *
26812
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
26813
+ * fail-open: a notification suppressed is the worse error there, but a vision
26814
+ * model that timed out has not told us the bin is gone, and a latch is a
26815
+ * stateful claim that costs the operator a trip to reset.
26816
+ */
26817
+ var SceneConfirmSchema = object({
26818
+ enabled: boolean().default(false),
26819
+ prompt: string().min(1).max(1e3),
26820
+ profileId: string().optional(),
26821
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
26822
+ maxImagePx: number().int().min(64).max(2048).default(448),
26823
+ /** What a timeout / unavailable model means for the PENDING flip. */
26824
+ onTimeout: _enum(["flip", "hold"]).default("hold")
26825
+ });
25964
26826
  var SceneMonitorSchema = object({
25965
26827
  id: string(),
25966
26828
  label: string(),
@@ -25979,7 +26841,56 @@ var SceneMonitorSchema = object({
25979
26841
  lastConfidence: number().nullable(),
25980
26842
  currentCondition: SceneConditionSchema.nullable(),
25981
26843
  availability: _enum(["ok", "unavailable"]),
25982
- unavailableReason: string().nullable()
26844
+ unavailableReason: string().nullable(),
26845
+ /** Which state is "the initial screen". `null` until the first capture. */
26846
+ baselineStateId: string().nullable(),
26847
+ /** Which boolean drives notification rules and any export. */
26848
+ emit: _enum(["latched", "live"]).default("latched"),
26849
+ /** Live: does the region match the baseline RIGHT NOW. */
26850
+ verdict: SceneVerdictSchema,
26851
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
26852
+ latched: boolean(),
26853
+ /** Last reset (or creation). */
26854
+ armedAt: number(),
26855
+ divergedAt: number().nullable(),
26856
+ restoredAt: number().nullable(),
26857
+ /** A check is only COUNTED when the device has been quiet this long. Motion
26858
+ * during the window DISCARDS the observation — a car pulling up in front of
26859
+ * the bin must not be able to spend hysteresis credit. */
26860
+ quietSeconds: number().int().min(0).max(3600).default(60),
26861
+ /** An observation only advances the pending count when it is at least this
26862
+ * far from the previously counted one, so N agreeing checks span real time
26863
+ * rather than N adjacent polls inside one occlusion. */
26864
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
26865
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
26866
+ confirm: SceneConfirmSchema.optional(),
26867
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
26868
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
26869
+ /** Clear the latch on its own when the scene matches again? Default false —
26870
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
26871
+ * automation can react to the bin coming back without the operator's own
26872
+ * alarm silently clearing itself. */
26873
+ autoRestore: boolean().default(false),
26874
+ /** What to do when the current light has no reference of its own. See
26875
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
26876
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
26877
+ /**
26878
+ * The light whose checks are currently being SAT OUT under
26879
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
26880
+ *
26881
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
26882
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
26883
+ * nothing captured in this light"* in the same calm voice as the coverage
26884
+ * line, because the alternative is a scene that silently stops answering
26885
+ * after sunset with nothing anywhere saying why. A skipped check must never
26886
+ * read as a broken one.
26887
+ */
26888
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
26889
+ /** Named cause when `verdict === 'unknown'`. */
26890
+ unavailable: SceneUnavailableSchema.nullable(),
26891
+ /** Conditions that have at least one comparable reference — the coverage line
26892
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
26893
+ coveredConditions: array(SceneConditionSchema)
25983
26894
  });
25984
26895
  var SceneMonitorStatusSchema = object({
25985
26896
  monitors: array(SceneMonitorSchema),
@@ -25992,12 +26903,6 @@ var sceneMonitorCapability = {
25992
26903
  kind: "wrapper",
25993
26904
  defaultActive: true,
25994
26905
  deviceTypes: [DeviceType.Camera],
25995
- deviceConfig: { ui: {
25996
- kind: "widget",
25997
- widgetId: "host/scene-monitor-editor",
25998
- tab: "scenes",
25999
- label: "Scenes"
26000
- } },
26001
26906
  methods: {
26002
26907
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26003
26908
  createScene: method(object({
@@ -26028,7 +26933,15 @@ var sceneMonitorCapability = {
26028
26933
  "both"
26029
26934
  ]).optional(),
26030
26935
  checkIntervalSec: number().optional(),
26031
- check: SceneCheckSchema.optional()
26936
+ check: SceneCheckSchema.optional(),
26937
+ emit: _enum(["latched", "live"]).optional(),
26938
+ quietSeconds: number().int().min(0).max(3600).optional(),
26939
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
26940
+ anchorThreshold: number().min(0).max(1).optional(),
26941
+ autoRestore: boolean().optional(),
26942
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
26943
+ /** `null` clears the vision-model adjudicator. */
26944
+ confirm: SceneConfirmSchema.nullable().optional()
26032
26945
  })
26033
26946
  }), _void(), {
26034
26947
  kind: "mutation",
@@ -26069,6 +26982,26 @@ var sceneMonitorCapability = {
26069
26982
  }), _void(), {
26070
26983
  kind: "mutation",
26071
26984
  auth: "admin"
26985
+ }),
26986
+ /**
26987
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
26988
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
26989
+ * "reset" in the operator's head means *this is the new normal*, and
26990
+ * re-capture is what makes the feature self-healing against slow drift
26991
+ * instead of failing silently weeks later.
26992
+ *
26993
+ * Reachable from three surfaces on this one mutation: the scene card, a
26994
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
26995
+ * no new Notification-Center code at all), and tRPC for scripts.
26996
+ */
26997
+ resetScene: method(object({
26998
+ deviceId: number(),
26999
+ monitorId: string(),
27000
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27001
+ recapture: boolean().optional()
27002
+ }), _void(), {
27003
+ kind: "mutation",
27004
+ auth: "admin"
26072
27005
  })
26073
27006
  },
26074
27007
  status: {
@@ -26311,13 +27244,63 @@ var CamStreamDescriptorSchema = object({
26311
27244
  * set of stream descriptors it can offer for the device, synchronously, so the
26312
27245
  * broker can reconcile its registry against the authoritative provider state.
26313
27246
  */
27247
+ /**
27248
+ * The catalog as a DURABLE fact rather than a live answer.
27249
+ *
27250
+ * A battery camera's descriptors are profile-stable — they change when the
27251
+ * operator rewrites an encoder profile, not minute to minute — but building
27252
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27253
+ * provider is allowed to build them exactly once per profile and must serve
27254
+ * every later pull from a cache.
27255
+ *
27256
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27257
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27258
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27259
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27260
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27261
+ * which on a battery cam is most of the day. The camera was fine. The stream
27262
+ * was unreachable because the process had forgotten what the camera offers.
27263
+ *
27264
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27265
+ * declared collection, with the same `restored` durability `battery` uses for
27266
+ * the same reason: the last known value is the only value there is while the
27267
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27268
+ * is the DIAL that wakes a camera, never the catalog (D173).
27269
+ */
27270
+ var StreamCatalogStateSchema = object({
27271
+ /** The descriptors as last built from a real camera response. Never a guess:
27272
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27273
+ * one the camera itself once produced. */
27274
+ descriptors: array(CamStreamDescriptorSchema),
27275
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27276
+ * path decide whether the camera's own awake window is worth spending on a
27277
+ * re-read. */
27278
+ lastFetchedAt: number()
27279
+ });
26314
27280
  var streamCatalogCapability = {
26315
27281
  name: "stream-catalog",
26316
27282
  scope: "device",
26317
27283
  deviceNative: true,
26318
27284
  mode: "singleton",
26319
27285
  deviceTypes: [DeviceType.Camera],
26320
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
27286
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27287
+ runtimeState: StreamCatalogStateSchema,
27288
+ /**
27289
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27290
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27291
+ * camera that cannot be watched at all until it happens to wake.
27292
+ *
27293
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27294
+ * build, and a build only runs when there is no cached copy (or the copy is
27295
+ * a day old and the camera is awake anyway).
27296
+ *
27297
+ * See `RuntimeStateDurability`. Enforced by
27298
+ * `scripts/check-runtime-state-durability.ts`.
27299
+ */
27300
+ durability: "restored",
27301
+ /** Clock field: written, but excluded from the compare that decides whether
27302
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27303
+ volatileStateFields: ["lastFetchedAt"]
26321
27304
  };
26322
27305
  /** One of the camera's stream profiles. */
26323
27306
  var StreamProfileSchema = _enum([
@@ -26572,12 +27555,64 @@ var NetworkAddressSchema = object({
26572
27555
  family: string(),
26573
27556
  internal: boolean()
26574
27557
  });
27558
+ /**
27559
+ * Provenance of the site coordinates, and the whole reason this is not just two
27560
+ * numbers.
27561
+ *
27562
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
27563
+ * nothing overwrites it.
27564
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
27565
+ * default that is right to a few kilometres beats the coarse UTC clock split
27566
+ * the sun-times consumers otherwise fall back to.
27567
+ *
27568
+ * The UI shows which one it is. An operator who cannot tell a guess from their
27569
+ * own input will eventually trust the guess.
27570
+ */
27571
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
27572
+ /**
27573
+ * The read shape: the location plus the honest state of the one-shot derivation.
27574
+ *
27575
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
27576
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
27577
+ * failed; the hub will NOT try again on its own — the fallback is declared
27578
+ * (consumers degrade to their own last resort) and the operator either types the
27579
+ * coordinates or presses detect.
27580
+ */
27581
+ var SiteLocationStatusSchema = object({
27582
+ location: object({
27583
+ /** WGS84 decimal degrees. */
27584
+ latitude: number().min(-90).max(90),
27585
+ longitude: number().min(-180).max(180),
27586
+ source: SiteLocationSourceSchema,
27587
+ /** Epoch ms the value was last written. */
27588
+ updatedAt: number(),
27589
+ /**
27590
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
27591
+ * only — never parsed, never matched on. Absent for an operator-typed value.
27592
+ */
27593
+ label: string().optional()
27594
+ }).nullable(),
27595
+ derivationAttemptedAt: number().nullable(),
27596
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
27597
+ derivationError: string().nullable()
27598
+ });
27599
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
27600
+ var SetSiteLocationInputSchema = object({
27601
+ latitude: number().min(-90).max(90),
27602
+ longitude: number().min(-180).max(180)
27603
+ }).nullable();
26575
27604
  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(), {
26576
27605
  kind: "mutation",
26577
27606
  auth: "admin"
26578
27607
  }), method(_void(), _void(), {
26579
27608
  kind: "mutation",
26580
27609
  auth: "admin"
27610
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
27611
+ kind: "mutation",
27612
+ auth: "admin"
27613
+ }), method(_void(), SiteLocationStatusSchema, {
27614
+ kind: "mutation",
27615
+ auth: "admin"
26581
27616
  });
26582
27617
  /**
26583
27618
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -27897,6 +28932,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27897
28932
  humiditySensor: humiditySensorCapability,
27898
28933
  image: imageCapability,
27899
28934
  imageSettings: imageSettingsCapability,
28935
+ intercom: intercomCapability,
27900
28936
  lawnMowerControl: lawnMowerControlCapability,
27901
28937
  lockControl: lockControlCapability,
27902
28938
  mediaPlayer: mediaPlayerCapability,
@@ -27915,6 +28951,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
27915
28951
  sceneMonitor: sceneMonitorCapability,
27916
28952
  scriptRunner: scriptRunnerCapability,
27917
28953
  smoke: smokeCapability,
28954
+ streamCatalog: streamCatalogCapability,
27918
28955
  streamParams: streamParamsCapability,
27919
28956
  switch: switchCapability,
27920
28957
  tamper: tamperCapability,
@@ -30711,6 +31748,12 @@ Object.freeze({
30711
31748
  addonId: null,
30712
31749
  access: "create"
30713
31750
  },
31751
+ "llm.cancel": {
31752
+ capName: "llm",
31753
+ capScope: "system",
31754
+ addonId: null,
31755
+ access: "create"
31756
+ },
30714
31757
  "llm.deleteModel": {
30715
31758
  capName: "llm",
30716
31759
  capScope: "system",
@@ -30795,6 +31838,12 @@ Object.freeze({
30795
31838
  addonId: null,
30796
31839
  access: "view"
30797
31840
  },
31841
+ "llm.resolveModelRef": {
31842
+ capName: "llm",
31843
+ capScope: "system",
31844
+ addonId: null,
31845
+ access: "create"
31846
+ },
30798
31847
  "llm.setDefault": {
30799
31848
  capName: "llm",
30800
31849
  capScope: "system",
@@ -32961,6 +34010,12 @@ Object.freeze({
32961
34010
  addonId: null,
32962
34011
  access: "create"
32963
34012
  },
34013
+ "sceneMonitor.resetScene": {
34014
+ capName: "scene-monitor",
34015
+ capScope: "device",
34016
+ addonId: null,
34017
+ access: "delete"
34018
+ },
32964
34019
  "sceneMonitor.updateScene": {
32965
34020
  capName: "scene-monitor",
32966
34021
  capScope: "device",
@@ -33639,6 +34694,12 @@ Object.freeze({
33639
34694
  addonId: null,
33640
34695
  access: "create"
33641
34696
  },
34697
+ "system.detectSiteLocation": {
34698
+ capName: "system",
34699
+ capScope: "system",
34700
+ addonId: null,
34701
+ access: "create"
34702
+ },
33642
34703
  "system.featureFlags": {
33643
34704
  capName: "system",
33644
34705
  capScope: "system",
@@ -33657,6 +34718,12 @@ Object.freeze({
33657
34718
  addonId: null,
33658
34719
  access: "view"
33659
34720
  },
34721
+ "system.getSiteLocation": {
34722
+ capName: "system",
34723
+ capScope: "system",
34724
+ addonId: null,
34725
+ access: "view"
34726
+ },
33660
34727
  "system.health": {
33661
34728
  capName: "system",
33662
34729
  capScope: "system",
@@ -33681,6 +34748,12 @@ Object.freeze({
33681
34748
  addonId: null,
33682
34749
  access: "create"
33683
34750
  },
34751
+ "system.setSiteLocation": {
34752
+ capName: "system",
34753
+ capScope: "system",
34754
+ addonId: null,
34755
+ access: "create"
34756
+ },
33684
34757
  "terminalSession.adoptLegacyMonitor": {
33685
34758
  capName: "terminal-session",
33686
34759
  capScope: "system",
@@ -34252,6 +35325,1704 @@ Object.freeze({
34252
35325
  access: "create"
34253
35326
  }
34254
35327
  });
35328
+ Object.freeze({
35329
+ "accessories.setChildHidden": [{
35330
+ name: "childDeviceId",
35331
+ form: "single",
35332
+ optional: false
35333
+ }, {
35334
+ name: "deviceId",
35335
+ form: "single",
35336
+ optional: false
35337
+ }],
35338
+ "addonSettings.getDeviceSettings": [{
35339
+ name: "deviceId",
35340
+ form: "single",
35341
+ optional: false
35342
+ }],
35343
+ "addonSettings.updateDeviceSettings": [{
35344
+ name: "deviceId",
35345
+ form: "single",
35346
+ optional: false
35347
+ }],
35348
+ "alarmPanel.arm": [{
35349
+ name: "deviceId",
35350
+ form: "single",
35351
+ optional: false
35352
+ }],
35353
+ "alarmPanel.disarm": [{
35354
+ name: "deviceId",
35355
+ form: "single",
35356
+ optional: false
35357
+ }],
35358
+ "alarmPanel.trigger": [{
35359
+ name: "deviceId",
35360
+ form: "single",
35361
+ optional: false
35362
+ }],
35363
+ "audioAnalysis.resolveDeviceSettings": [{
35364
+ name: "deviceId",
35365
+ form: "single",
35366
+ optional: false
35367
+ }],
35368
+ "audioAnalyzer.classify": [{
35369
+ name: "deviceId",
35370
+ form: "single",
35371
+ optional: true
35372
+ }],
35373
+ "audioMetrics.getCurrentSnapshot": [{
35374
+ name: "deviceId",
35375
+ form: "single",
35376
+ optional: false
35377
+ }],
35378
+ "audioMetrics.getHistory": [{
35379
+ name: "deviceId",
35380
+ form: "single",
35381
+ optional: false
35382
+ }],
35383
+ "automationControl.disable": [{
35384
+ name: "deviceId",
35385
+ form: "single",
35386
+ optional: false
35387
+ }],
35388
+ "automationControl.enable": [{
35389
+ name: "deviceId",
35390
+ form: "single",
35391
+ optional: false
35392
+ }],
35393
+ "automationControl.trigger": [{
35394
+ name: "deviceId",
35395
+ form: "single",
35396
+ optional: false
35397
+ }],
35398
+ "battery.wakeForStream": [{
35399
+ name: "deviceId",
35400
+ form: "single",
35401
+ optional: false
35402
+ }],
35403
+ "brightness.setBrightness": [{
35404
+ name: "deviceId",
35405
+ form: "single",
35406
+ optional: false
35407
+ }],
35408
+ "button.press": [{
35409
+ name: "deviceId",
35410
+ form: "single",
35411
+ optional: false
35412
+ }],
35413
+ "cameraCredentials.getCredentials": [{
35414
+ name: "deviceId",
35415
+ form: "single",
35416
+ optional: false
35417
+ }],
35418
+ "cameraStreams.getBrokerStreams": [{
35419
+ name: "deviceId",
35420
+ form: "single",
35421
+ optional: false
35422
+ }],
35423
+ "cameraStreams.getCameraStreams": [{
35424
+ name: "deviceId",
35425
+ form: "single",
35426
+ optional: false
35427
+ }],
35428
+ "cameraStreams.getProfileRtspEntries": [{
35429
+ name: "deviceId",
35430
+ form: "single",
35431
+ optional: false
35432
+ }],
35433
+ "cameraStreams.getRtspEntries": [{
35434
+ name: "deviceId",
35435
+ form: "single",
35436
+ optional: false
35437
+ }],
35438
+ "cameraStreams.pickStream": [{
35439
+ name: "deviceId",
35440
+ form: "single",
35441
+ optional: false
35442
+ }],
35443
+ "climateControl.setFanMode": [{
35444
+ name: "deviceId",
35445
+ form: "single",
35446
+ optional: false
35447
+ }],
35448
+ "climateControl.setMode": [{
35449
+ name: "deviceId",
35450
+ form: "single",
35451
+ optional: false
35452
+ }],
35453
+ "climateControl.setPreset": [{
35454
+ name: "deviceId",
35455
+ form: "single",
35456
+ optional: false
35457
+ }],
35458
+ "climateControl.setSwingHorizontal": [{
35459
+ name: "deviceId",
35460
+ form: "single",
35461
+ optional: false
35462
+ }],
35463
+ "climateControl.setSwingVertical": [{
35464
+ name: "deviceId",
35465
+ form: "single",
35466
+ optional: false
35467
+ }],
35468
+ "climateControl.setTarget": [{
35469
+ name: "deviceId",
35470
+ form: "single",
35471
+ optional: false
35472
+ }],
35473
+ "climateControl.setTargetHumidity": [{
35474
+ name: "deviceId",
35475
+ form: "single",
35476
+ optional: false
35477
+ }],
35478
+ "climateControl.setTargetRange": [{
35479
+ name: "deviceId",
35480
+ form: "single",
35481
+ optional: false
35482
+ }],
35483
+ "color.setColor": [{
35484
+ name: "deviceId",
35485
+ form: "single",
35486
+ optional: false
35487
+ }],
35488
+ "consumables.reset": [{
35489
+ name: "deviceId",
35490
+ form: "single",
35491
+ optional: false
35492
+ }],
35493
+ "control.setValue": [{
35494
+ name: "deviceId",
35495
+ form: "single",
35496
+ optional: false
35497
+ }],
35498
+ "cover.close": [{
35499
+ name: "deviceId",
35500
+ form: "single",
35501
+ optional: false
35502
+ }],
35503
+ "cover.open": [{
35504
+ name: "deviceId",
35505
+ form: "single",
35506
+ optional: false
35507
+ }],
35508
+ "cover.setPosition": [{
35509
+ name: "deviceId",
35510
+ form: "single",
35511
+ optional: false
35512
+ }],
35513
+ "cover.setTiltPosition": [{
35514
+ name: "deviceId",
35515
+ form: "single",
35516
+ optional: false
35517
+ }],
35518
+ "cover.stop": [{
35519
+ name: "deviceId",
35520
+ form: "single",
35521
+ optional: false
35522
+ }],
35523
+ "dayNight.getOptions": [{
35524
+ name: "deviceId",
35525
+ form: "single",
35526
+ optional: false
35527
+ }],
35528
+ "dayNight.setSettings": [{
35529
+ name: "deviceId",
35530
+ form: "single",
35531
+ optional: false
35532
+ }],
35533
+ "decoder.createSession": [{
35534
+ name: "deviceId",
35535
+ form: "single",
35536
+ optional: true
35537
+ }],
35538
+ "deviceAdoption.release": [{
35539
+ name: "camDeviceId",
35540
+ form: "single",
35541
+ optional: false
35542
+ }],
35543
+ "deviceAdoption.resync": [{
35544
+ name: "camDeviceId",
35545
+ form: "single",
35546
+ optional: false
35547
+ }],
35548
+ "deviceDiscovery.adoptDevice": [{
35549
+ name: "deviceId",
35550
+ form: "single",
35551
+ optional: false
35552
+ }],
35553
+ "deviceDiscovery.listDiscovered": [{
35554
+ name: "deviceId",
35555
+ form: "single",
35556
+ optional: false
35557
+ }],
35558
+ "deviceDiscovery.refreshDiscovery": [{
35559
+ name: "deviceId",
35560
+ form: "single",
35561
+ optional: false
35562
+ }],
35563
+ "deviceDiscovery.releaseDevice": [{
35564
+ name: "childDeviceId",
35565
+ form: "single",
35566
+ optional: false
35567
+ }, {
35568
+ name: "deviceId",
35569
+ form: "single",
35570
+ optional: false
35571
+ }],
35572
+ "deviceManager.adoptionRelease": [{
35573
+ name: "camDeviceId",
35574
+ form: "single",
35575
+ optional: false
35576
+ }],
35577
+ "deviceManager.adoptionResync": [{
35578
+ name: "camDeviceId",
35579
+ form: "single",
35580
+ optional: false
35581
+ }],
35582
+ "deviceManager.applyInitialMeta": [{
35583
+ name: "deviceId",
35584
+ form: "single",
35585
+ optional: false
35586
+ }, {
35587
+ name: "linkDeviceId",
35588
+ form: "single",
35589
+ optional: true
35590
+ }],
35591
+ "deviceManager.disable": [{
35592
+ name: "deviceId",
35593
+ form: "single",
35594
+ optional: false
35595
+ }],
35596
+ "deviceManager.enable": [{
35597
+ name: "deviceId",
35598
+ form: "single",
35599
+ optional: false
35600
+ }],
35601
+ "deviceManager.getBindings": [{
35602
+ name: "deviceId",
35603
+ form: "single",
35604
+ optional: false
35605
+ }],
35606
+ "deviceManager.getChildren": [{
35607
+ name: "parentDeviceId",
35608
+ form: "single",
35609
+ optional: false
35610
+ }],
35611
+ "deviceManager.getConfigSchema": [{
35612
+ name: "deviceId",
35613
+ form: "single",
35614
+ optional: false
35615
+ }],
35616
+ "deviceManager.getDevice": [{
35617
+ name: "deviceId",
35618
+ form: "single",
35619
+ optional: false
35620
+ }],
35621
+ "deviceManager.getDeviceAggregate": [{
35622
+ name: "deviceId",
35623
+ form: "single",
35624
+ optional: false
35625
+ }],
35626
+ "deviceManager.getDeviceLiveInfoAggregate": [{
35627
+ name: "deviceId",
35628
+ form: "single",
35629
+ optional: false
35630
+ }],
35631
+ "deviceManager.getDeviceSettingsAggregate": [{
35632
+ name: "deviceId",
35633
+ form: "single",
35634
+ optional: false
35635
+ }],
35636
+ "deviceManager.getDeviceStatusAggregate": [{
35637
+ name: "deviceId",
35638
+ form: "single",
35639
+ optional: false
35640
+ }],
35641
+ "deviceManager.getDeviceStatusAggregateBatch": [{
35642
+ name: "deviceIds",
35643
+ form: "array",
35644
+ optional: false
35645
+ }],
35646
+ "deviceManager.getLinkedDevices": [{
35647
+ name: "deviceId",
35648
+ form: "single",
35649
+ optional: false
35650
+ }],
35651
+ "deviceManager.getSettingsSchema": [{
35652
+ name: "deviceId",
35653
+ form: "single",
35654
+ optional: false
35655
+ }],
35656
+ "deviceManager.getStreamProfileMap": [{
35657
+ name: "deviceId",
35658
+ form: "single",
35659
+ optional: false
35660
+ }],
35661
+ "deviceManager.getStreamSources": [{
35662
+ name: "deviceId",
35663
+ form: "single",
35664
+ optional: false
35665
+ }],
35666
+ "deviceManager.getWireableFields": [{
35667
+ name: "deviceId",
35668
+ form: "single",
35669
+ optional: false
35670
+ }],
35671
+ "deviceManager.loadConfig": [{
35672
+ name: "deviceId",
35673
+ form: "single",
35674
+ optional: false
35675
+ }],
35676
+ "deviceManager.loadMeta": [{
35677
+ name: "deviceId",
35678
+ form: "single",
35679
+ optional: false
35680
+ }],
35681
+ "deviceManager.loadRuntimeState": [{
35682
+ name: "deviceId",
35683
+ form: "single",
35684
+ optional: false
35685
+ }],
35686
+ "deviceManager.persistConfig": [{
35687
+ name: "deviceId",
35688
+ form: "single",
35689
+ optional: false
35690
+ }],
35691
+ "deviceManager.probeStreams": [{
35692
+ name: "deviceId",
35693
+ form: "single",
35694
+ optional: false
35695
+ }],
35696
+ "deviceManager.registerDevice": [{
35697
+ name: "parentDeviceId",
35698
+ form: "single",
35699
+ optional: true
35700
+ }],
35701
+ "deviceManager.remove": [{
35702
+ name: "deviceId",
35703
+ form: "single",
35704
+ optional: false
35705
+ }],
35706
+ "deviceManager.removeDevice": [{
35707
+ name: "deviceId",
35708
+ form: "single",
35709
+ optional: false
35710
+ }],
35711
+ "deviceManager.runDeviceAction": [{
35712
+ name: "deviceId",
35713
+ form: "single",
35714
+ optional: false
35715
+ }],
35716
+ "deviceManager.setChildLayout": [{
35717
+ name: "deviceId",
35718
+ form: "single",
35719
+ optional: false
35720
+ }],
35721
+ "deviceManager.setDisabled": [{
35722
+ name: "deviceId",
35723
+ form: "single",
35724
+ optional: false
35725
+ }],
35726
+ "deviceManager.setDisplay": [{
35727
+ name: "deviceId",
35728
+ form: "single",
35729
+ optional: false
35730
+ }],
35731
+ "deviceManager.setIntegrationId": [{
35732
+ name: "deviceId",
35733
+ form: "single",
35734
+ optional: false
35735
+ }],
35736
+ "deviceManager.setLinkDeviceId": [{
35737
+ name: "deviceId",
35738
+ form: "single",
35739
+ optional: false
35740
+ }, {
35741
+ name: "linkDeviceId",
35742
+ form: "single",
35743
+ optional: true
35744
+ }],
35745
+ "deviceManager.setLocation": [{
35746
+ name: "deviceId",
35747
+ form: "single",
35748
+ optional: false
35749
+ }],
35750
+ "deviceManager.setMetadata": [{
35751
+ name: "deviceId",
35752
+ form: "single",
35753
+ optional: false
35754
+ }],
35755
+ "deviceManager.setName": [{
35756
+ name: "deviceId",
35757
+ form: "single",
35758
+ optional: false
35759
+ }],
35760
+ "deviceManager.setPrimaryChildEntityId": [{
35761
+ name: "deviceId",
35762
+ form: "single",
35763
+ optional: false
35764
+ }],
35765
+ "deviceManager.setRole": [{
35766
+ name: "deviceId",
35767
+ form: "single",
35768
+ optional: false
35769
+ }],
35770
+ "deviceManager.setStreamProfileMap": [{
35771
+ name: "deviceId",
35772
+ form: "single",
35773
+ optional: false
35774
+ }],
35775
+ "deviceManager.setType": [{
35776
+ name: "deviceId",
35777
+ form: "single",
35778
+ optional: false
35779
+ }],
35780
+ "deviceManager.setWrapperActive": [{
35781
+ name: "deviceId",
35782
+ form: "single",
35783
+ optional: false
35784
+ }],
35785
+ "deviceManager.testField": [{
35786
+ name: "deviceId",
35787
+ form: "single",
35788
+ optional: false
35789
+ }],
35790
+ "deviceManager.updateConfig": [{
35791
+ name: "deviceId",
35792
+ form: "single",
35793
+ optional: false
35794
+ }],
35795
+ "deviceManager.updateDeviceField": [{
35796
+ name: "deviceId",
35797
+ form: "single",
35798
+ optional: false
35799
+ }],
35800
+ "deviceManager.updateDeviceFieldsBatch": [{
35801
+ name: "deviceId",
35802
+ form: "single",
35803
+ optional: false
35804
+ }],
35805
+ "deviceOps.getConfigEntries": [{
35806
+ name: "deviceId",
35807
+ form: "single",
35808
+ optional: false
35809
+ }],
35810
+ "deviceOps.getRawState": [{
35811
+ name: "deviceId",
35812
+ form: "single",
35813
+ optional: false
35814
+ }],
35815
+ "deviceOps.getSettingsSchema": [{
35816
+ name: "deviceId",
35817
+ form: "single",
35818
+ optional: false
35819
+ }],
35820
+ "deviceOps.getStreamSources": [{
35821
+ name: "deviceId",
35822
+ form: "single",
35823
+ optional: false
35824
+ }],
35825
+ "deviceOps.removeDevice": [{
35826
+ name: "deviceId",
35827
+ form: "single",
35828
+ optional: false
35829
+ }],
35830
+ "deviceOps.runAction": [{
35831
+ name: "deviceId",
35832
+ form: "single",
35833
+ optional: false
35834
+ }],
35835
+ "deviceOps.setConfig": [{
35836
+ name: "deviceId",
35837
+ form: "single",
35838
+ optional: false
35839
+ }],
35840
+ "deviceState.getCapSlice": [{
35841
+ name: "deviceId",
35842
+ form: "single",
35843
+ optional: false
35844
+ }],
35845
+ "deviceState.getSnapshot": [{
35846
+ name: "deviceId",
35847
+ form: "single",
35848
+ optional: false
35849
+ }],
35850
+ "deviceState.setCapSlice": [{
35851
+ name: "deviceId",
35852
+ form: "single",
35853
+ optional: false
35854
+ }],
35855
+ "events.getEventClipUrl": [{
35856
+ name: "deviceId",
35857
+ form: "single",
35858
+ optional: false
35859
+ }],
35860
+ "events.getEvents": [{
35861
+ name: "deviceId",
35862
+ form: "single",
35863
+ optional: false
35864
+ }],
35865
+ "events.getEventThumbnail": [{
35866
+ name: "deviceId",
35867
+ form: "single",
35868
+ optional: false
35869
+ }],
35870
+ "faceGallery.getFaceByTrack": [{
35871
+ name: "deviceId",
35872
+ form: "single",
35873
+ optional: false
35874
+ }],
35875
+ "faceGallery.listRecentFaces": [{
35876
+ name: "deviceId",
35877
+ form: "single",
35878
+ optional: true
35879
+ }],
35880
+ "fanControl.setDirection": [{
35881
+ name: "deviceId",
35882
+ form: "single",
35883
+ optional: false
35884
+ }],
35885
+ "fanControl.setOscillating": [{
35886
+ name: "deviceId",
35887
+ form: "single",
35888
+ optional: false
35889
+ }],
35890
+ "fanControl.setPercentage": [{
35891
+ name: "deviceId",
35892
+ form: "single",
35893
+ optional: false
35894
+ }],
35895
+ "fanControl.setPreset": [{
35896
+ name: "deviceId",
35897
+ form: "single",
35898
+ optional: false
35899
+ }],
35900
+ "humidifier.setMode": [{
35901
+ name: "deviceId",
35902
+ form: "single",
35903
+ optional: false
35904
+ }],
35905
+ "humidifier.setOn": [{
35906
+ name: "deviceId",
35907
+ form: "single",
35908
+ optional: false
35909
+ }],
35910
+ "humidifier.setTargetHumidity": [{
35911
+ name: "deviceId",
35912
+ form: "single",
35913
+ optional: false
35914
+ }],
35915
+ "imageSettings.getOptions": [{
35916
+ name: "deviceId",
35917
+ form: "single",
35918
+ optional: false
35919
+ }],
35920
+ "imageSettings.setSettings": [{
35921
+ name: "deviceId",
35922
+ form: "single",
35923
+ optional: false
35924
+ }],
35925
+ "intercom.endTalkSession": [{
35926
+ name: "deviceId",
35927
+ form: "single",
35928
+ optional: false
35929
+ }],
35930
+ "intercom.handleAnswer": [{
35931
+ name: "deviceId",
35932
+ form: "single",
35933
+ optional: false
35934
+ }],
35935
+ "intercom.pushTalkAudio": [{
35936
+ name: "deviceId",
35937
+ form: "single",
35938
+ optional: false
35939
+ }],
35940
+ "intercom.startSession": [{
35941
+ name: "deviceId",
35942
+ form: "single",
35943
+ optional: false
35944
+ }],
35945
+ "intercom.startTalkSession": [{
35946
+ name: "deviceId",
35947
+ form: "single",
35948
+ optional: false
35949
+ }],
35950
+ "intercom.stopSession": [{
35951
+ name: "deviceId",
35952
+ form: "single",
35953
+ optional: false
35954
+ }],
35955
+ "lawnMowerControl.dock": [{
35956
+ name: "deviceId",
35957
+ form: "single",
35958
+ optional: false
35959
+ }],
35960
+ "lawnMowerControl.pause": [{
35961
+ name: "deviceId",
35962
+ form: "single",
35963
+ optional: false
35964
+ }],
35965
+ "lawnMowerControl.startMowing": [{
35966
+ name: "deviceId",
35967
+ form: "single",
35968
+ optional: false
35969
+ }],
35970
+ "lockControl.lock": [{
35971
+ name: "deviceId",
35972
+ form: "single",
35973
+ optional: false
35974
+ }],
35975
+ "lockControl.open": [{
35976
+ name: "deviceId",
35977
+ form: "single",
35978
+ optional: false
35979
+ }],
35980
+ "lockControl.unlock": [{
35981
+ name: "deviceId",
35982
+ form: "single",
35983
+ optional: false
35984
+ }],
35985
+ "mediaPlayer.next": [{
35986
+ name: "deviceId",
35987
+ form: "single",
35988
+ optional: false
35989
+ }],
35990
+ "mediaPlayer.pause": [{
35991
+ name: "deviceId",
35992
+ form: "single",
35993
+ optional: false
35994
+ }],
35995
+ "mediaPlayer.play": [{
35996
+ name: "deviceId",
35997
+ form: "single",
35998
+ optional: false
35999
+ }],
36000
+ "mediaPlayer.playMedia": [{
36001
+ name: "deviceId",
36002
+ form: "single",
36003
+ optional: false
36004
+ }],
36005
+ "mediaPlayer.previous": [{
36006
+ name: "deviceId",
36007
+ form: "single",
36008
+ optional: false
36009
+ }],
36010
+ "mediaPlayer.seek": [{
36011
+ name: "deviceId",
36012
+ form: "single",
36013
+ optional: false
36014
+ }],
36015
+ "mediaPlayer.selectSource": [{
36016
+ name: "deviceId",
36017
+ form: "single",
36018
+ optional: false
36019
+ }],
36020
+ "mediaPlayer.setMute": [{
36021
+ name: "deviceId",
36022
+ form: "single",
36023
+ optional: false
36024
+ }],
36025
+ "mediaPlayer.setRepeat": [{
36026
+ name: "deviceId",
36027
+ form: "single",
36028
+ optional: false
36029
+ }],
36030
+ "mediaPlayer.setShuffle": [{
36031
+ name: "deviceId",
36032
+ form: "single",
36033
+ optional: false
36034
+ }],
36035
+ "mediaPlayer.setVolume": [{
36036
+ name: "deviceId",
36037
+ form: "single",
36038
+ optional: false
36039
+ }],
36040
+ "mediaPlayer.stop": [{
36041
+ name: "deviceId",
36042
+ form: "single",
36043
+ optional: false
36044
+ }],
36045
+ "motion.isDetected": [{
36046
+ name: "deviceId",
36047
+ form: "single",
36048
+ optional: false
36049
+ }],
36050
+ "motionDetection.analyze": [{
36051
+ name: "deviceId",
36052
+ form: "single",
36053
+ optional: false
36054
+ }],
36055
+ "motionDetection.removeCamera": [{
36056
+ name: "deviceId",
36057
+ form: "single",
36058
+ optional: false
36059
+ }],
36060
+ "motionTrigger.setMotionTrigger": [{
36061
+ name: "deviceId",
36062
+ form: "single",
36063
+ optional: false
36064
+ }],
36065
+ "motionZones.getOptions": [{
36066
+ name: "deviceId",
36067
+ form: "single",
36068
+ optional: false
36069
+ }],
36070
+ "motionZones.setZone": [{
36071
+ name: "deviceId",
36072
+ form: "single",
36073
+ optional: false
36074
+ }],
36075
+ "nativeObjectDetection.setEnabled": [{
36076
+ name: "deviceId",
36077
+ form: "single",
36078
+ optional: false
36079
+ }],
36080
+ "networkQuality.getDeviceStats": [{
36081
+ name: "deviceId",
36082
+ form: "single",
36083
+ optional: false
36084
+ }],
36085
+ "networkQuality.reportClientStats": [{
36086
+ name: "deviceId",
36087
+ form: "single",
36088
+ optional: false
36089
+ }],
36090
+ "notificationRules.setDeviceMuted": [{
36091
+ name: "deviceId",
36092
+ form: "single",
36093
+ optional: false
36094
+ }],
36095
+ "notifier.cancel": [{
36096
+ name: "deviceId",
36097
+ form: "single",
36098
+ optional: false
36099
+ }],
36100
+ "notifier.send": [{
36101
+ name: "deviceId",
36102
+ form: "single",
36103
+ optional: false
36104
+ }],
36105
+ "osd.setOverlay": [{
36106
+ name: "deviceId",
36107
+ form: "single",
36108
+ optional: false
36109
+ }],
36110
+ "osdManager.clearSlotBinding": [{
36111
+ name: "deviceId",
36112
+ form: "single",
36113
+ optional: false
36114
+ }],
36115
+ "osdManager.copyDeviceConfiguration": [{
36116
+ name: "sourceDeviceId",
36117
+ form: "single",
36118
+ optional: false
36119
+ }, {
36120
+ name: "targetDeviceId",
36121
+ form: "single",
36122
+ optional: false
36123
+ }],
36124
+ "osdManager.getDeviceOsd": [{
36125
+ name: "deviceId",
36126
+ form: "single",
36127
+ optional: false
36128
+ }],
36129
+ "osdManager.getSourceCatalog": [{
36130
+ name: "deviceId",
36131
+ form: "single",
36132
+ optional: false
36133
+ }],
36134
+ "osdManager.previewSlot": [{
36135
+ name: "deviceId",
36136
+ form: "single",
36137
+ optional: false
36138
+ }],
36139
+ "osdManager.renderDevice": [{
36140
+ name: "deviceId",
36141
+ form: "single",
36142
+ optional: false
36143
+ }],
36144
+ "osdManager.setSlotBinding": [{
36145
+ name: "deviceId",
36146
+ form: "single",
36147
+ optional: false
36148
+ }],
36149
+ "petFeeder.callPet": [{
36150
+ name: "deviceId",
36151
+ form: "single",
36152
+ optional: false
36153
+ }],
36154
+ "petFeeder.cancelFeed": [{
36155
+ name: "deviceId",
36156
+ form: "single",
36157
+ optional: false
36158
+ }],
36159
+ "petFeeder.feed": [{
36160
+ name: "deviceId",
36161
+ form: "single",
36162
+ optional: false
36163
+ }],
36164
+ "petFeeder.markFoodReplenished": [{
36165
+ name: "deviceId",
36166
+ form: "single",
36167
+ optional: false
36168
+ }],
36169
+ "petFeeder.playSound": [{
36170
+ name: "deviceId",
36171
+ form: "single",
36172
+ optional: false
36173
+ }],
36174
+ "petFeeder.resetDesiccant": [{
36175
+ name: "deviceId",
36176
+ form: "single",
36177
+ optional: false
36178
+ }],
36179
+ "petFeeder.setChildLock": [{
36180
+ name: "deviceId",
36181
+ form: "single",
36182
+ optional: false
36183
+ }],
36184
+ "petFeeder.setFeedSound": [{
36185
+ name: "deviceId",
36186
+ form: "single",
36187
+ optional: false
36188
+ }],
36189
+ "petFeeder.setIndicatorLight": [{
36190
+ name: "deviceId",
36191
+ form: "single",
36192
+ optional: false
36193
+ }],
36194
+ "petFeeder.setVolume": [{
36195
+ name: "deviceId",
36196
+ form: "single",
36197
+ optional: false
36198
+ }],
36199
+ "pipelineAnalytics.clearTracks": [{
36200
+ name: "deviceId",
36201
+ form: "single",
36202
+ optional: false
36203
+ }],
36204
+ "pipelineAnalytics.completeRetrainTrack": [{
36205
+ name: "deviceId",
36206
+ form: "single",
36207
+ optional: false
36208
+ }],
36209
+ "pipelineAnalytics.deleteDeviceEvents": [{
36210
+ name: "deviceId",
36211
+ form: "single",
36212
+ optional: false
36213
+ }],
36214
+ "pipelineAnalytics.deleteTracks": [{
36215
+ name: "deviceId",
36216
+ form: "single",
36217
+ optional: false
36218
+ }],
36219
+ "pipelineAnalytics.deselectRetrainFrame": [{
36220
+ name: "deviceId",
36221
+ form: "single",
36222
+ optional: false
36223
+ }],
36224
+ "pipelineAnalytics.getActiveTracks": [{
36225
+ name: "deviceId",
36226
+ form: "single",
36227
+ optional: false
36228
+ }],
36229
+ "pipelineAnalytics.getAudioEvents": [{
36230
+ name: "deviceId",
36231
+ form: "single",
36232
+ optional: false
36233
+ }],
36234
+ "pipelineAnalytics.getEventDensity": [{
36235
+ name: "deviceId",
36236
+ form: "single",
36237
+ optional: false
36238
+ }],
36239
+ "pipelineAnalytics.getEventMedia": [{
36240
+ name: "deviceId",
36241
+ form: "single",
36242
+ optional: false
36243
+ }],
36244
+ "pipelineAnalytics.getKeyEvents": [{
36245
+ name: "deviceId",
36246
+ form: "single",
36247
+ optional: false
36248
+ }],
36249
+ "pipelineAnalytics.getMotionEvents": [{
36250
+ name: "deviceId",
36251
+ form: "single",
36252
+ optional: false
36253
+ }],
36254
+ "pipelineAnalytics.getObjectEvents": [{
36255
+ name: "deviceId",
36256
+ form: "single",
36257
+ optional: false
36258
+ }],
36259
+ "pipelineAnalytics.getRetrainExportUrl": [{
36260
+ name: "deviceIds",
36261
+ form: "array",
36262
+ optional: true
36263
+ }],
36264
+ "pipelineAnalytics.getSensorEvents": [{
36265
+ name: "deviceId",
36266
+ form: "single",
36267
+ optional: false
36268
+ }],
36269
+ "pipelineAnalytics.getTrack": [{
36270
+ name: "deviceId",
36271
+ form: "single",
36272
+ optional: false
36273
+ }],
36274
+ "pipelineAnalytics.getTrackMedia": [{
36275
+ name: "deviceId",
36276
+ form: "single",
36277
+ optional: false
36278
+ }],
36279
+ "pipelineAnalytics.getTrainingExportSummary": [{
36280
+ name: "deviceIds",
36281
+ form: "array",
36282
+ optional: true
36283
+ }],
36284
+ "pipelineAnalytics.getTrainingExportUrl": [{
36285
+ name: "deviceIds",
36286
+ form: "array",
36287
+ optional: true
36288
+ }],
36289
+ "pipelineAnalytics.listEventKinds": [{
36290
+ name: "deviceId",
36291
+ form: "single",
36292
+ optional: false
36293
+ }],
36294
+ "pipelineAnalytics.listEventKindsBatch": [{
36295
+ name: "deviceIds",
36296
+ form: "array",
36297
+ optional: false
36298
+ }],
36299
+ "pipelineAnalytics.listOpsLog": [{
36300
+ name: "deviceId",
36301
+ form: "single",
36302
+ optional: true
36303
+ }],
36304
+ "pipelineAnalytics.listRecentTracks": [{
36305
+ name: "deviceIds",
36306
+ form: "array",
36307
+ optional: false
36308
+ }],
36309
+ "pipelineAnalytics.listRetrainStaging": [{
36310
+ name: "deviceIds",
36311
+ form: "array",
36312
+ optional: true
36313
+ }],
36314
+ "pipelineAnalytics.listTrackMedia": [{
36315
+ name: "deviceId",
36316
+ form: "single",
36317
+ optional: false
36318
+ }],
36319
+ "pipelineAnalytics.listTracks": [{
36320
+ name: "deviceId",
36321
+ form: "single",
36322
+ optional: false
36323
+ }],
36324
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
36325
+ name: "deviceId",
36326
+ form: "single",
36327
+ optional: false
36328
+ }],
36329
+ "pipelineAnalytics.pruneEventsBefore": [{
36330
+ name: "deviceId",
36331
+ form: "single",
36332
+ optional: false
36333
+ }],
36334
+ "pipelineAnalytics.pruneTracksBefore": [{
36335
+ name: "deviceId",
36336
+ form: "single",
36337
+ optional: false
36338
+ }],
36339
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
36340
+ name: "deviceId",
36341
+ form: "single",
36342
+ optional: true
36343
+ }],
36344
+ "pipelineAnalytics.restageRetrainTrack": [{
36345
+ name: "deviceId",
36346
+ form: "single",
36347
+ optional: false
36348
+ }],
36349
+ "pipelineAnalytics.saveRetrainAnnotations": [{
36350
+ name: "deviceId",
36351
+ form: "single",
36352
+ optional: false
36353
+ }],
36354
+ "pipelineAnalytics.searchObjectEvents": [{
36355
+ name: "deviceId",
36356
+ form: "single",
36357
+ optional: true
36358
+ }],
36359
+ "pipelineAnalytics.selectRetrainFrames": [{
36360
+ name: "deviceId",
36361
+ form: "single",
36362
+ optional: false
36363
+ }],
36364
+ "pipelineAnalytics.setTrackFlags": [{
36365
+ name: "deviceId",
36366
+ form: "single",
36367
+ optional: false
36368
+ }],
36369
+ "pipelineAnalytics.wipeAllAnalytics": [{
36370
+ name: "deviceId",
36371
+ form: "single",
36372
+ optional: false
36373
+ }],
36374
+ "pipelineExecutor.runPipeline": [{
36375
+ name: "deviceId",
36376
+ form: "single",
36377
+ optional: true
36378
+ }],
36379
+ "pipelineExecutor.runPipelineBatch": [{
36380
+ name: "deviceId",
36381
+ form: "single",
36382
+ optional: true
36383
+ }],
36384
+ "pipelineOrchestrator.assignAudio": [{
36385
+ name: "deviceId",
36386
+ form: "single",
36387
+ optional: false
36388
+ }],
36389
+ "pipelineOrchestrator.assignPipeline": [{
36390
+ name: "deviceId",
36391
+ form: "single",
36392
+ optional: false
36393
+ }],
36394
+ "pipelineOrchestrator.getAudioAssignment": [{
36395
+ name: "deviceId",
36396
+ form: "single",
36397
+ optional: false
36398
+ }],
36399
+ "pipelineOrchestrator.getCameraMetrics": [{
36400
+ name: "deviceId",
36401
+ form: "single",
36402
+ optional: false
36403
+ }],
36404
+ "pipelineOrchestrator.getCameraSettings": [{
36405
+ name: "deviceId",
36406
+ form: "single",
36407
+ optional: false
36408
+ }],
36409
+ "pipelineOrchestrator.getCameraStatus": [{
36410
+ name: "deviceId",
36411
+ form: "single",
36412
+ optional: false
36413
+ }],
36414
+ "pipelineOrchestrator.getCameraStatuses": [{
36415
+ name: "deviceIds",
36416
+ form: "array",
36417
+ optional: true
36418
+ }],
36419
+ "pipelineOrchestrator.getCameraStepOverrides": [{
36420
+ name: "deviceId",
36421
+ form: "single",
36422
+ optional: false
36423
+ }],
36424
+ "pipelineOrchestrator.getCameraSwitches": [{
36425
+ name: "deviceId",
36426
+ form: "single",
36427
+ optional: false
36428
+ }],
36429
+ "pipelineOrchestrator.getPipelineAssignment": [{
36430
+ name: "deviceId",
36431
+ form: "single",
36432
+ optional: false
36433
+ }],
36434
+ "pipelineOrchestrator.getPipelineDevicePin": [{
36435
+ name: "deviceId",
36436
+ form: "single",
36437
+ optional: false
36438
+ }],
36439
+ "pipelineOrchestrator.resolvePipeline": [{
36440
+ name: "deviceId",
36441
+ form: "single",
36442
+ optional: false
36443
+ }],
36444
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
36445
+ name: "deviceId",
36446
+ form: "single",
36447
+ optional: false
36448
+ }],
36449
+ "pipelineOrchestrator.setCameraStepOverride": [{
36450
+ name: "deviceId",
36451
+ form: "single",
36452
+ optional: false
36453
+ }],
36454
+ "pipelineOrchestrator.setCameraStepToggle": [{
36455
+ name: "deviceId",
36456
+ form: "single",
36457
+ optional: false
36458
+ }],
36459
+ "pipelineOrchestrator.setCameraSwitch": [{
36460
+ name: "deviceId",
36461
+ form: "single",
36462
+ optional: false
36463
+ }],
36464
+ "pipelineOrchestrator.setPipelineDevicePin": [{
36465
+ name: "deviceId",
36466
+ form: "single",
36467
+ optional: false
36468
+ }],
36469
+ "pipelineOrchestrator.unassignAudio": [{
36470
+ name: "deviceId",
36471
+ form: "single",
36472
+ optional: false
36473
+ }],
36474
+ "pipelineOrchestrator.unassignPipeline": [{
36475
+ name: "deviceId",
36476
+ form: "single",
36477
+ optional: false
36478
+ }],
36479
+ "pipelineRunner.attachCamera": [{
36480
+ name: "deviceId",
36481
+ form: "single",
36482
+ optional: false
36483
+ }],
36484
+ "pipelineRunner.detachCamera": [{
36485
+ name: "deviceId",
36486
+ form: "single",
36487
+ optional: false
36488
+ }],
36489
+ "pipelineRunner.getCameraMetrics": [{
36490
+ name: "deviceId",
36491
+ form: "single",
36492
+ optional: false
36493
+ }],
36494
+ "pipelineRunner.reportMotion": [{
36495
+ name: "deviceId",
36496
+ form: "single",
36497
+ optional: false
36498
+ }],
36499
+ "pipelineRunner.runDetailSubtree": [{
36500
+ name: "deviceId",
36501
+ form: "single",
36502
+ optional: false
36503
+ }],
36504
+ "pipelineRunner.runStatelessStep": [{
36505
+ name: "sourceDeviceId",
36506
+ form: "single",
36507
+ optional: false
36508
+ }],
36509
+ "plateGallery.getPlateByTrack": [{
36510
+ name: "deviceId",
36511
+ form: "single",
36512
+ optional: false
36513
+ }],
36514
+ "plateGallery.listPlates": [{
36515
+ name: "deviceId",
36516
+ form: "single",
36517
+ optional: true
36518
+ }],
36519
+ "privacyMask.getOptions": [{
36520
+ name: "deviceId",
36521
+ form: "single",
36522
+ optional: false
36523
+ }],
36524
+ "privacyMask.setAudioEnabled": [{
36525
+ name: "deviceId",
36526
+ form: "single",
36527
+ optional: false
36528
+ }],
36529
+ "privacyMask.setMask": [{
36530
+ name: "deviceId",
36531
+ form: "single",
36532
+ optional: false
36533
+ }],
36534
+ "ptz.continuousMove": [{
36535
+ name: "deviceId",
36536
+ form: "single",
36537
+ optional: false
36538
+ }],
36539
+ "ptz.deletePreset": [{
36540
+ name: "deviceId",
36541
+ form: "single",
36542
+ optional: false
36543
+ }],
36544
+ "ptz.getOptions": [{
36545
+ name: "deviceId",
36546
+ form: "single",
36547
+ optional: false
36548
+ }],
36549
+ "ptz.getPosition": [{
36550
+ name: "deviceId",
36551
+ form: "single",
36552
+ optional: false
36553
+ }],
36554
+ "ptz.getPresets": [{
36555
+ name: "deviceId",
36556
+ form: "single",
36557
+ optional: false
36558
+ }],
36559
+ "ptz.goHome": [{
36560
+ name: "deviceId",
36561
+ form: "single",
36562
+ optional: false
36563
+ }],
36564
+ "ptz.goToPreset": [{
36565
+ name: "deviceId",
36566
+ form: "single",
36567
+ optional: false
36568
+ }],
36569
+ "ptz.move": [{
36570
+ name: "deviceId",
36571
+ form: "single",
36572
+ optional: false
36573
+ }],
36574
+ "ptz.savePreset": [{
36575
+ name: "deviceId",
36576
+ form: "single",
36577
+ optional: false
36578
+ }],
36579
+ "ptz.setAutofocus": [{
36580
+ name: "deviceId",
36581
+ form: "single",
36582
+ optional: false
36583
+ }],
36584
+ "ptz.stop": [{
36585
+ name: "deviceId",
36586
+ form: "single",
36587
+ optional: false
36588
+ }],
36589
+ "ptzAutotrack.getSettings": [{
36590
+ name: "deviceId",
36591
+ form: "single",
36592
+ optional: false
36593
+ }],
36594
+ "ptzAutotrack.getStatus": [{
36595
+ name: "deviceId",
36596
+ form: "single",
36597
+ optional: false
36598
+ }],
36599
+ "ptzAutotrack.setEnabled": [{
36600
+ name: "deviceId",
36601
+ form: "single",
36602
+ optional: false
36603
+ }],
36604
+ "ptzAutotrack.setSettings": [{
36605
+ name: "deviceId",
36606
+ form: "single",
36607
+ optional: false
36608
+ }],
36609
+ "reboot.reboot": [{
36610
+ name: "deviceId",
36611
+ form: "single",
36612
+ optional: false
36613
+ }],
36614
+ "recording.deleteFootprint": [{
36615
+ name: "deviceId",
36616
+ form: "single",
36617
+ optional: false
36618
+ }],
36619
+ "recording.getAvailability": [{
36620
+ name: "deviceId",
36621
+ form: "single",
36622
+ optional: false
36623
+ }],
36624
+ "recording.getDaysWithRecordings": [{
36625
+ name: "deviceId",
36626
+ form: "single",
36627
+ optional: false
36628
+ }],
36629
+ "recording.getDeviceConfig": [{
36630
+ name: "deviceId",
36631
+ form: "single",
36632
+ optional: false
36633
+ }],
36634
+ "recording.getPlaybackManifest": [{
36635
+ name: "deviceId",
36636
+ form: "single",
36637
+ optional: false
36638
+ }],
36639
+ "recording.listOpsLog": [{
36640
+ name: "deviceId",
36641
+ form: "single",
36642
+ optional: true
36643
+ }],
36644
+ "recording.locateSegment": [{
36645
+ name: "deviceId",
36646
+ form: "single",
36647
+ optional: false
36648
+ }],
36649
+ "recording.pruneFootage": [{
36650
+ name: "deviceId",
36651
+ form: "single",
36652
+ optional: false
36653
+ }],
36654
+ "recording.readGopBytes": [{
36655
+ name: "deviceId",
36656
+ form: "single",
36657
+ optional: false
36658
+ }],
36659
+ "recording.readSegmentBytes": [{
36660
+ name: "deviceId",
36661
+ form: "single",
36662
+ optional: false
36663
+ }],
36664
+ "recording.relocateFootage": [{
36665
+ name: "deviceId",
36666
+ form: "single",
36667
+ optional: true
36668
+ }],
36669
+ "recording.renderClip": [{
36670
+ name: "deviceId",
36671
+ form: "single",
36672
+ optional: false
36673
+ }],
36674
+ "recording.renderGif": [{
36675
+ name: "deviceId",
36676
+ form: "single",
36677
+ optional: false
36678
+ }],
36679
+ "recording.rescanStorage": [{
36680
+ name: "deviceId",
36681
+ form: "single",
36682
+ optional: false
36683
+ }],
36684
+ "recording.setDeviceConfig": [{
36685
+ name: "deviceId",
36686
+ form: "single",
36687
+ optional: false
36688
+ }],
36689
+ "recording.startStorageMigrationMove": [{
36690
+ name: "deviceId",
36691
+ form: "single",
36692
+ optional: true
36693
+ }],
36694
+ "recordingExport.createExport": [{
36695
+ name: "deviceId",
36696
+ form: "single",
36697
+ optional: false
36698
+ }],
36699
+ "recordingExport.listExports": [{
36700
+ name: "deviceId",
36701
+ form: "single",
36702
+ optional: true
36703
+ }],
36704
+ "sceneMonitor.captureReference": [{
36705
+ name: "deviceId",
36706
+ form: "single",
36707
+ optional: false
36708
+ }],
36709
+ "sceneMonitor.createScene": [{
36710
+ name: "deviceId",
36711
+ form: "single",
36712
+ optional: false
36713
+ }],
36714
+ "sceneMonitor.deleteReference": [{
36715
+ name: "deviceId",
36716
+ form: "single",
36717
+ optional: false
36718
+ }],
36719
+ "sceneMonitor.deleteScene": [{
36720
+ name: "deviceId",
36721
+ form: "single",
36722
+ optional: false
36723
+ }],
36724
+ "sceneMonitor.listScenes": [{
36725
+ name: "deviceId",
36726
+ form: "single",
36727
+ optional: false
36728
+ }],
36729
+ "sceneMonitor.recheckNow": [{
36730
+ name: "deviceId",
36731
+ form: "single",
36732
+ optional: false
36733
+ }],
36734
+ "sceneMonitor.resetScene": [{
36735
+ name: "deviceId",
36736
+ form: "single",
36737
+ optional: false
36738
+ }],
36739
+ "sceneMonitor.updateScene": [{
36740
+ name: "deviceId",
36741
+ form: "single",
36742
+ optional: false
36743
+ }],
36744
+ "scriptRunner.run": [{
36745
+ name: "deviceId",
36746
+ form: "single",
36747
+ optional: false
36748
+ }],
36749
+ "scriptRunner.stop": [{
36750
+ name: "deviceId",
36751
+ form: "single",
36752
+ optional: false
36753
+ }],
36754
+ "snapshot.getSnapshot": [{
36755
+ name: "deviceId",
36756
+ form: "single",
36757
+ optional: false
36758
+ }],
36759
+ "snapshot.getSnapshotLinks": [{
36760
+ name: "targets",
36761
+ form: "object-array",
36762
+ optional: false,
36763
+ itemField: "deviceId"
36764
+ }],
36765
+ "snapshot.getSnapshotOverview": [{
36766
+ name: "deviceIds",
36767
+ form: "array",
36768
+ optional: false
36769
+ }],
36770
+ "snapshot.invalidateCache": [{
36771
+ name: "deviceId",
36772
+ form: "single",
36773
+ optional: false
36774
+ }],
36775
+ "streamBroker.acquireEgressTranscode": [{
36776
+ name: "deviceId",
36777
+ form: "single",
36778
+ optional: false
36779
+ }],
36780
+ "streamBroker.assignProfile": [{
36781
+ name: "deviceId",
36782
+ form: "single",
36783
+ optional: false
36784
+ }],
36785
+ "streamBroker.getDeviceAudioMute": [{
36786
+ name: "deviceId",
36787
+ form: "single",
36788
+ optional: false
36789
+ }],
36790
+ "streamBroker.getStreamWithCodec": [{
36791
+ name: "deviceId",
36792
+ form: "single",
36793
+ optional: false
36794
+ }],
36795
+ "streamBroker.produceEventMedia": [{
36796
+ name: "deviceId",
36797
+ form: "single",
36798
+ optional: false
36799
+ }],
36800
+ "streamBroker.publishCameraStream": [{
36801
+ name: "deviceId",
36802
+ form: "single",
36803
+ optional: false
36804
+ }],
36805
+ "streamBroker.renderPreBufferClip": [{
36806
+ name: "deviceId",
36807
+ form: "single",
36808
+ optional: false
36809
+ }],
36810
+ "streamBroker.restartProfile": [{
36811
+ name: "deviceId",
36812
+ form: "single",
36813
+ optional: false
36814
+ }],
36815
+ "streamBroker.retractCameraStream": [{
36816
+ name: "deviceId",
36817
+ form: "single",
36818
+ optional: false
36819
+ }],
36820
+ "streamBroker.setDeviceAudioMute": [{
36821
+ name: "deviceId",
36822
+ form: "single",
36823
+ optional: false
36824
+ }],
36825
+ "streamBroker.unassignProfile": [{
36826
+ name: "deviceId",
36827
+ form: "single",
36828
+ optional: false
36829
+ }],
36830
+ "streamCatalog.getCatalog": [{
36831
+ name: "deviceId",
36832
+ form: "single",
36833
+ optional: false
36834
+ }],
36835
+ "streamParams.getConfigSchema": [{
36836
+ name: "deviceId",
36837
+ form: "single",
36838
+ optional: false
36839
+ }],
36840
+ "streamParams.getOptions": [{
36841
+ name: "deviceId",
36842
+ form: "single",
36843
+ optional: false
36844
+ }],
36845
+ "streamParams.setProfile": [{
36846
+ name: "deviceId",
36847
+ form: "single",
36848
+ optional: false
36849
+ }],
36850
+ "switch.setState": [{
36851
+ name: "deviceId",
36852
+ form: "single",
36853
+ optional: false
36854
+ }],
36855
+ "vacuumControl.locate": [{
36856
+ name: "deviceId",
36857
+ form: "single",
36858
+ optional: false
36859
+ }],
36860
+ "vacuumControl.pause": [{
36861
+ name: "deviceId",
36862
+ form: "single",
36863
+ optional: false
36864
+ }],
36865
+ "vacuumControl.returnToBase": [{
36866
+ name: "deviceId",
36867
+ form: "single",
36868
+ optional: false
36869
+ }],
36870
+ "vacuumControl.setFanSpeed": [{
36871
+ name: "deviceId",
36872
+ form: "single",
36873
+ optional: false
36874
+ }],
36875
+ "vacuumControl.start": [{
36876
+ name: "deviceId",
36877
+ form: "single",
36878
+ optional: false
36879
+ }],
36880
+ "vacuumControl.stop": [{
36881
+ name: "deviceId",
36882
+ form: "single",
36883
+ optional: false
36884
+ }],
36885
+ "valve.close": [{
36886
+ name: "deviceId",
36887
+ form: "single",
36888
+ optional: false
36889
+ }],
36890
+ "valve.open": [{
36891
+ name: "deviceId",
36892
+ form: "single",
36893
+ optional: false
36894
+ }],
36895
+ "valve.setPosition": [{
36896
+ name: "deviceId",
36897
+ form: "single",
36898
+ optional: false
36899
+ }],
36900
+ "valve.stop": [{
36901
+ name: "deviceId",
36902
+ form: "single",
36903
+ optional: false
36904
+ }],
36905
+ "videoclips.getClipPlayback": [{
36906
+ name: "deviceId",
36907
+ form: "single",
36908
+ optional: false
36909
+ }],
36910
+ "videoclips.listClips": [{
36911
+ name: "deviceId",
36912
+ form: "single",
36913
+ optional: false
36914
+ }],
36915
+ "waterHeater.setAway": [{
36916
+ name: "deviceId",
36917
+ form: "single",
36918
+ optional: false
36919
+ }],
36920
+ "waterHeater.setOperationMode": [{
36921
+ name: "deviceId",
36922
+ form: "single",
36923
+ optional: false
36924
+ }],
36925
+ "waterHeater.setTargetTemp": [{
36926
+ name: "deviceId",
36927
+ form: "single",
36928
+ optional: false
36929
+ }],
36930
+ "webrtcSession.addIceCandidate": [{
36931
+ name: "deviceId",
36932
+ form: "single",
36933
+ optional: false
36934
+ }],
36935
+ "webrtcSession.closeSession": [{
36936
+ name: "deviceId",
36937
+ form: "single",
36938
+ optional: false
36939
+ }],
36940
+ "webrtcSession.createSession": [{
36941
+ name: "deviceId",
36942
+ form: "single",
36943
+ optional: false
36944
+ }],
36945
+ "webrtcSession.getIceCandidates": [{
36946
+ name: "deviceId",
36947
+ form: "single",
36948
+ optional: false
36949
+ }],
36950
+ "webrtcSession.getSessionState": [{
36951
+ name: "deviceId",
36952
+ form: "single",
36953
+ optional: false
36954
+ }],
36955
+ "webrtcSession.handleAnswer": [{
36956
+ name: "deviceId",
36957
+ form: "single",
36958
+ optional: false
36959
+ }],
36960
+ "webrtcSession.handleOffer": [{
36961
+ name: "deviceId",
36962
+ form: "single",
36963
+ optional: false
36964
+ }],
36965
+ "webrtcSession.hasAdaptiveBitrate": [{
36966
+ name: "deviceId",
36967
+ form: "single",
36968
+ optional: false
36969
+ }],
36970
+ "webrtcSession.listStreams": [{
36971
+ name: "deviceId",
36972
+ form: "single",
36973
+ optional: false
36974
+ }],
36975
+ "zoneAnalytics.getCameraHistory": [{
36976
+ name: "deviceId",
36977
+ form: "single",
36978
+ optional: false
36979
+ }],
36980
+ "zoneAnalytics.getCurrentSnapshot": [{
36981
+ name: "deviceId",
36982
+ form: "single",
36983
+ optional: false
36984
+ }],
36985
+ "zoneAnalytics.getUnzonedHistory": [{
36986
+ name: "deviceId",
36987
+ form: "single",
36988
+ optional: false
36989
+ }],
36990
+ "zoneAnalytics.getZoneHistory": [{
36991
+ name: "deviceId",
36992
+ form: "single",
36993
+ optional: false
36994
+ }],
36995
+ "zoneRules.listRules": [{
36996
+ name: "deviceId",
36997
+ form: "single",
36998
+ optional: false
36999
+ }],
37000
+ "zoneRules.setRules": [{
37001
+ name: "deviceId",
37002
+ form: "single",
37003
+ optional: false
37004
+ }],
37005
+ "zones.addZone": [{
37006
+ name: "deviceId",
37007
+ form: "single",
37008
+ optional: false
37009
+ }],
37010
+ "zones.listZones": [{
37011
+ name: "deviceId",
37012
+ form: "single",
37013
+ optional: false
37014
+ }],
37015
+ "zones.removeZone": [{
37016
+ name: "deviceId",
37017
+ form: "single",
37018
+ optional: false
37019
+ }],
37020
+ "zones.updateZone": [{
37021
+ name: "deviceId",
37022
+ form: "single",
37023
+ optional: false
37024
+ }]
37025
+ });
34255
37026
  Object.freeze({
34256
37027
  "broker": "broker",
34257
37028
  "device-export": "device-export",