@camstack/addon-provider-rademacher 0.2.16 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2898 -144
  2. package/dist/addon.mjs +2898 -144
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -984,7 +984,7 @@ var Rademacher = class {
984
984
  }
985
985
  };
986
986
  //#endregion
987
- //#region ../types/dist/event-category-Cv9dO26A.mjs
987
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
988
988
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
989
989
  EventCategory["SystemBoot"] = "system.boot";
990
990
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1191,6 +1191,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1191
1191
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
1192
1192
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
1193
1193
  /**
1194
+ * A node the orchestrator would otherwise place cameras on has NO usable
1195
+ * inference device: the operator enabled one or more accelerators there and
1196
+ * the live probe reports every one of them unavailable. Emitted once per
1197
+ * TRANSITION into that state (never per dispatch), and the node is dropped
1198
+ * from the placement candidate set for as long as it holds.
1199
+ *
1200
+ * This exists because the state was previously invisible: little-unraid
1201
+ * absorbed 283k inference errors in a day while still being handed cameras,
1202
+ * and nothing in the system said so.
1203
+ *
1204
+ * A node with no accelerators configured at all is NOT this — its devices
1205
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
1206
+ * serves it exactly as before.
1207
+ */
1208
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
1209
+ /**
1210
+ * A camera has an OPEN detection session and has produced no detection at
1211
+ * all for longer than the blind threshold — the camera is being decoded and
1212
+ * inferred and is returning nothing. Emitted once per transition into blind,
1213
+ * per camera.
1214
+ *
1215
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
1216
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
1217
+ * camera" produce byte-identical silence.
1218
+ */
1219
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
1220
+ /**
1194
1221
  * Per-camera pipeline config was mutated by the orchestrator
1195
1222
  * (3-level settings change via `setAgentAddonDefaults` /
1196
1223
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -11875,6 +11902,8 @@ var QueryFilterSchema = object({
11875
11902
  where: record(string(), unknown()).optional(),
11876
11903
  whereIn: record(string(), array(unknown())).optional(),
11877
11904
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11905
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
11906
+ whereNot: record(string(), unknown()).optional(),
11878
11907
  orderBy: object({
11879
11908
  field: string(),
11880
11909
  direction: _enum(["asc", "desc"])
@@ -11894,7 +11923,8 @@ var QueryFilterSchema = object({
11894
11923
  var MutationFilterSchema = object({
11895
11924
  where: record(string(), unknown()).optional(),
11896
11925
  whereIn: record(string(), array(unknown())).optional(),
11897
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11926
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11927
+ whereNot: record(string(), unknown()).optional()
11898
11928
  });
11899
11929
  /** A single stored record: `{ id, data }`. */
11900
11930
  var SettingsRecordSchema = object({
@@ -13413,6 +13443,17 @@ var LlmImageSchema = object({
13413
13443
  bytes: _instanceof(Uint8Array),
13414
13444
  mimeType: string()
13415
13445
  });
13446
+ /**
13447
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
13448
+ * the flag is what a consumer table flips, the count is what the operator tunes.
13449
+ * A retry doubles the wall time of a call, so the two gates that run inside a
13450
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
13451
+ */
13452
+ var LlmRetryPolicySchema = object({
13453
+ enabled: boolean().default(false),
13454
+ /** Total attempts INCLUDING the first. 1 = no retry. */
13455
+ maxAttempts: number().int().min(1).max(5).default(1)
13456
+ });
13416
13457
  var LlmGenerateBaseInputSchema = object({
13417
13458
  /** Collection routing (the notification-output posture). */
13418
13459
  addonId: string().optional(),
@@ -13427,7 +13468,28 @@ var LlmGenerateBaseInputSchema = object({
13427
13468
  jsonSchema: record(string(), unknown()).optional(),
13428
13469
  /** Per-call override of the profile default. */
13429
13470
  maxTokens: number().int().positive().optional(),
13430
- temperature: number().optional()
13471
+ temperature: number().optional(),
13472
+ /** Per-call override of the profile default (nucleus sampling). */
13473
+ topP: number().min(0).max(1).optional(),
13474
+ /** Per-call override of the profile default (top-k sampling). */
13475
+ topK: number().int().positive().optional(),
13476
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
13477
+ timeoutMs: number().int().positive().optional(),
13478
+ /** Per-call override; beats both the consumer table and the profile. */
13479
+ retry: LlmRetryPolicySchema.optional(),
13480
+ /**
13481
+ * Caller-minted id that makes this generation CANCELLABLE.
13482
+ *
13483
+ * Without it a caller that stops waiting cannot stop the work: the gates race
13484
+ * the call against 8 s and free their own slot when the timer wins, while the
13485
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
13486
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
13487
+ * not generations, and the real load is unbounded.
13488
+ *
13489
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
13490
+ * `llm.cancel({ requestId })` tears the socket down.
13491
+ */
13492
+ requestId: string().optional()
13431
13493
  });
13432
13494
  /**
13433
13495
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -13440,6 +13502,18 @@ var LlmGenerateBaseInputSchema = object({
13440
13502
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
13441
13503
  * watchdog — operator decision #3).
13442
13504
  */
13505
+ /**
13506
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
13507
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
13508
+ * REF rather than looked up at install time, so what the operator approved in
13509
+ * the preview is exactly what the node downloads.
13510
+ */
13511
+ var ManagedModelExtraFileSchema = object({
13512
+ url: string(),
13513
+ filename: string(),
13514
+ sizeBytes: number(),
13515
+ sha256: string().optional()
13516
+ });
13443
13517
  var ManagedModelRefSchema = discriminatedUnion("kind", [
13444
13518
  object({
13445
13519
  kind: literal("catalog"),
@@ -13448,7 +13522,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
13448
13522
  object({
13449
13523
  kind: literal("url"),
13450
13524
  url: string(),
13451
- sha256: string().optional()
13525
+ sha256: string().optional(),
13526
+ /** Picker/status label; the file basename when absent. */
13527
+ label: string().optional(),
13528
+ sizeBytes: number().optional(),
13529
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
13452
13530
  }),
13453
13531
  object({
13454
13532
  kind: literal("path"),
@@ -13466,13 +13544,82 @@ var ManagedRuntimeConfigSchema = object({
13466
13544
  gpuLayers: number().int().default(0),
13467
13545
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
13468
13546
  threads: number().int().optional(),
13469
- /** Concurrent slots. */
13547
+ /** Concurrent slots (`--parallel`). */
13470
13548
  parallel: number().int().default(1),
13549
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
13550
+ batchSize: number().int().positive().optional(),
13551
+ /** Physical batch / micro-batch (`-ub`). */
13552
+ ubatchSize: number().int().positive().optional(),
13553
+ /**
13554
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
13555
+ * is a no-op elsewhere, so it is offered rather than assumed.
13556
+ */
13557
+ flashAttention: boolean().default(false),
13558
+ /**
13559
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
13560
+ * inference. Costs the full model size in resident memory — which is exactly
13561
+ * what the RAM budget is counting.
13562
+ */
13563
+ mlock: boolean().default(false),
13564
+ /**
13565
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
13566
+ * start, but avoids the page-fault stalls a network or spinning-disk model
13567
+ * store produces on every first token.
13568
+ */
13569
+ noMmap: boolean().default(false),
13570
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
13571
+ * cheapest way to fit a longer context in the same RAM. */
13572
+ cacheTypeK: _enum([
13573
+ "f32",
13574
+ "f16",
13575
+ "q8_0",
13576
+ "q5_1",
13577
+ "q5_0",
13578
+ "q4_1",
13579
+ "q4_0"
13580
+ ]).optional(),
13581
+ cacheTypeV: _enum([
13582
+ "f32",
13583
+ "f16",
13584
+ "q8_0",
13585
+ "q5_1",
13586
+ "q5_0",
13587
+ "q4_1",
13588
+ "q4_0"
13589
+ ]).optional(),
13590
+ /**
13591
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
13592
+ * (which most vision chat templates need and some language-only models
13593
+ * dislike), `--cont-batching`, `--rope-scaling`, …
13594
+ *
13595
+ * It is NOT a second place to set the flags above. A token that collides
13596
+ * with a typed field is REJECTED at start, naming the field that owns it
13597
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
13598
+ * the "two switches that disagree" failure this repo has already shipped
13599
+ * twice (D62).
13600
+ */
13601
+ extraArgs: array(string()).default([]),
13471
13602
  /** Else lazy: first generate boots it. */
13472
13603
  autoStart: boolean().default(false),
13473
13604
  /** 0 = never; frees RAM after quiet periods. */
13474
13605
  idleStopMinutes: number().int().default(30)
13475
13606
  });
13607
+ /**
13608
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
13609
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
13610
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
13611
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
13612
+ */
13613
+ var LlmDownloadProgressSchema = object({
13614
+ phase: _enum(["downloading", "verifying"]),
13615
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
13616
+ file: string(),
13617
+ fileIndex: number().int(),
13618
+ fileCount: number().int(),
13619
+ /** Across the WHOLE install, not the current file. */
13620
+ downloadedBytes: number(),
13621
+ totalBytes: number().optional()
13622
+ });
13476
13623
  var LlmRuntimeStatusSchema = object({
13477
13624
  /** Status is ALWAYS node-qualified. */
13478
13625
  nodeId: string(),
@@ -13489,6 +13636,8 @@ var LlmRuntimeStatusSchema = object({
13489
13636
  modelPath: string().optional(),
13490
13637
  modelId: string().optional(),
13491
13638
  downloadProgress: number().min(0).max(1).optional(),
13639
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
13640
+ download: LlmDownloadProgressSchema.optional(),
13492
13641
  lastError: string().optional(),
13493
13642
  crashesInWindow: number(),
13494
13643
  /** Child RSS (sampled best-effort). */
@@ -13499,7 +13648,14 @@ var LlmNodeModelSchema = object({
13499
13648
  file: string(),
13500
13649
  sizeBytes: number(),
13501
13650
  catalogId: string().optional(),
13502
- installedAt: number().optional()
13651
+ installedAt: number().optional(),
13652
+ /**
13653
+ * Absolute path on the node. Present so a file that is on disk but matches
13654
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
13655
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
13656
+ * it the picker could list such a file and do nothing with it.
13657
+ */
13658
+ path: string().optional()
13503
13659
  });
13504
13660
  var LlmRuntimeDiskUsageSchema = object({
13505
13661
  nodeId: string(),
@@ -13555,10 +13711,47 @@ var LlmProfileSchema = object({
13555
13711
  baseUrl: string().optional(),
13556
13712
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
13557
13713
  apiKey: string().optional(),
13714
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
13715
+ * degraded to text — that shipped once and produced a confident answer to a
13716
+ * question about a picture nobody sent. */
13558
13717
  supportsVision: boolean(),
13559
13718
  temperature: number().min(0).max(2).optional(),
13719
+ /** Nucleus sampling. Every wire we speak has it. */
13720
+ topP: number().min(0).max(1).optional(),
13721
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
13722
+ * wire does, and the client drops it there (measured: the request body gets
13723
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
13724
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
13725
+ topK: number().int().positive().optional(),
13560
13726
  maxTokens: number().int().positive().optional(),
13727
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
13728
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
13729
+ * the model with, so it is the one field that changes a PROCESS. */
13730
+ contextLength: number().int().positive().optional(),
13731
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
13732
+ * two system prompts fighting is worse than either alone). */
13733
+ systemPrompt: string().optional(),
13734
+ /** Total generation bound — the only one a unary call has. */
13561
13735
  timeoutMs: number().int().positive().default(6e4),
13736
+ /** The TCP handshake only — "is the port even open". NOT the wait for
13737
+ * response headers: on the LM Studio / llama-server wire those are written
13738
+ * once the model has finished loading, so they belong to the bound below. */
13739
+ connectTimeoutMs: number().int().positive().default(1e4),
13740
+ /** Accepted, but no output yet — response headers included, because a cold
13741
+ * GPU load is exactly what happens before them. */
13742
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
13743
+ /** Output started then stopped. */
13744
+ idleTimeoutMs: number().int().positive().default(6e4),
13745
+ /** Profile-level default. The per-consumer table and a per-call override
13746
+ * both beat it — see `resolveRetryPolicy`. */
13747
+ retry: LlmRetryPolicySchema.default({
13748
+ enabled: false,
13749
+ maxAttempts: 1
13750
+ }),
13751
+ /** Whether this profile may use tools. The tool-call plumbing rides the
13752
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
13753
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
13754
+ toolsEnabled: boolean().default(false),
13562
13755
  extraHeaders: record(string(), string()).optional(),
13563
13756
  /** kind === 'managed-local' only (spec §4). */
13564
13757
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -13608,6 +13801,36 @@ var ManagedModelCatalogEntrySchema = object({
13608
13801
  /** Vision models: companion projector file. */
13609
13802
  mmprojUrl: string().optional()
13610
13803
  });
13804
+ /**
13805
+ * The outcome of turning one operator-typed Hugging Face reference into a
13806
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
13807
+ * I will not pick for you" is a normal answer the UI has to render, not an
13808
+ * exception.
13809
+ *
13810
+ * `candidates` is the whole reason the refusal is usable — every string in it
13811
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
13812
+ */
13813
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
13814
+ ok: literal(true),
13815
+ /** Ready to hand to `installModel` unchanged. */
13816
+ model: ManagedModelRefSchema,
13817
+ label: string(),
13818
+ repo: string(),
13819
+ quantization: string(),
13820
+ purpose: _enum(["text", "vision"]),
13821
+ totalBytes: number(),
13822
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
13823
+ * see that 0.9 GB of it is a projector they did not name. */
13824
+ extraFilenames: array(string())
13825
+ }), object({
13826
+ ok: literal(false),
13827
+ code: string(),
13828
+ message: string(),
13829
+ candidates: array(string()).optional(),
13830
+ /** Set when the refusal was only the ceiling: re-calling with
13831
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
13832
+ requiredBytes: number().optional()
13833
+ })]);
13611
13834
  var LlmRuntimeNodeSchema = object({
13612
13835
  nodeId: string(),
13613
13836
  reachable: boolean(),
@@ -13620,7 +13843,10 @@ var ProfileRefInputSchema = object({
13620
13843
  addonId: string(),
13621
13844
  profileId: string()
13622
13845
  });
13623
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13846
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
13847
+ addonId: string().optional(),
13848
+ requestId: string()
13849
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13624
13850
  kind: "mutation",
13625
13851
  auth: "admin"
13626
13852
  }), method(ProfileRefInputSchema, _void(), {
@@ -13641,6 +13867,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
13641
13867
  consumer: string().optional(),
13642
13868
  profileId: string().optional()
13643
13869
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
13870
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
13871
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
13872
+ ref: string(),
13873
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
13874
+ maxBytes: number().positive().optional()
13875
+ }), HfModelResolutionSchema, {
13876
+ kind: "mutation",
13877
+ auth: "admin"
13878
+ }), method(object({
13644
13879
  nodeId: string(),
13645
13880
  model: ManagedModelRefSchema
13646
13881
  }), _void(), {
@@ -15288,6 +15523,8 @@ var NcSystemEventKindSchema = _enum([
15288
15523
  "stream-offline",
15289
15524
  "node-online",
15290
15525
  "node-offline",
15526
+ "node-inference-unavailable",
15527
+ "detection-blind",
15291
15528
  "addon-update-available",
15292
15529
  "server-update-available",
15293
15530
  "alarm-triggered",
@@ -15349,7 +15586,16 @@ var NcScheduleSchema = object({
15349
15586
  });
15350
15587
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
15351
15588
  var NcPlateMatcherSchema = object({
15352
- values: array(string().min(1)).min(1),
15589
+ /**
15590
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
15591
+ * pipeline could read** — the plate half of "no selection = no narrowing",
15592
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
15593
+ * rather than merely seen. A subject carrying no plate still fails.
15594
+ *
15595
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
15596
+ * ever persisted an empty list, so widening it cannot change an existing rule.
15597
+ */
15598
+ values: array(string().min(1)),
15353
15599
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
15354
15600
  maxDistance: number().int().min(0).max(3).default(1)
15355
15601
  });
@@ -15383,28 +15629,36 @@ var NcOccupancyConditionSchema = object({
15383
15629
  /**
15384
15630
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
15385
15631
  *
15386
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
15387
- * reference notifier uses, so an operator moving between them re-uses what
15388
- * they already know): a rule matches when, over a sampling window of
15389
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
15390
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
15391
- *
15392
- * - `dbThreshold` its level is at or above this many dBFS (see
15393
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
15394
- * - `labels` the classifier put at least one of these labels on it.
15395
- *
15396
- * Both are OPTIONAL and independent, which is the point of the shape: a
15397
- * loudness rule ("something loud at 3am") needs no model to be right, and a
15398
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
15399
- * is given** a window in which every sample is trivially a hit would fire on
15400
- * silence, so the engine refuses such a condition rather than notifying on
15401
- * nothing (the schema cannot express "at least one of" without becoming a
15402
- * ZodEffects the cap path would have to special-case).
15403
- *
15404
- * `hitPercent` is over the samples the window actually HOLDS, and the window
15405
- * must be FULL before it can match a window that has been open for two
15406
- * seconds of its ten is 100% of nothing, and firing on it would make
15407
- * `samplingSeconds` decorative.
15632
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
15633
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
15634
+ * there is no second switch that can disagree with the first and every rule
15635
+ * authored before the decision migrates for free (`audioModeOf`):
15636
+ *
15637
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
15638
+ * classifier labels with one of them. No window, no percentage:
15639
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
15640
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
15641
+ * the analyzer's (`classificationMinScore`, per device) — a label only
15642
+ * reaches this condition if the classifier was already confident enough.
15643
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
15644
+ * the condition: at least `hitPercent`% of the samples over
15645
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
15646
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
15647
+ * must be FULL before it can match a window open for two of its ten
15648
+ * seconds is 100% of nothing.
15649
+ *
15650
+ * **Why label mode has no window.** It had one, and it never fired: the
15651
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
15652
+ * of them per episode, even through continuous crying. The measured maximum
15653
+ * `hitPercent` over the whole live history was 40 — under the shipped default
15654
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
15655
+ * the wrong question to ask of a sparse classifier.
15656
+ *
15657
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
15658
+ * and the rule would fire on silence. The schema cannot express "exactly one
15659
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
15660
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
15661
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
15408
15662
  *
15409
15663
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
15410
15664
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -15412,13 +15666,13 @@ var NcOccupancyConditionSchema = object({
15412
15666
  * an operator who typed `dog` mean the same thing.
15413
15667
  */
15414
15668
  var NcAudioConditionSchema = object({
15415
- /** Audio macro labels; absent = any sound (level-only rule). */
15669
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
15416
15670
  labels: array(string().min(1)).min(1).optional(),
15417
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
15671
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
15418
15672
  dbThreshold: number().min(-96).max(0).optional(),
15419
- /** Percentage of the window's samples that must be hits (1–100). */
15673
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
15420
15674
  hitPercent: number().int().min(1).max(100).default(60),
15421
- /** Length of the sampling window in seconds. */
15675
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
15422
15676
  samplingSeconds: number().int().min(1).max(300).default(10)
15423
15677
  });
15424
15678
  /**
@@ -15556,13 +15810,81 @@ var NcRuleActionsSchema = object({
15556
15810
  */
15557
15811
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
15558
15812
  });
15813
+ /**
15814
+ * "This rule applies only while `deviceId` is in one of `states`."
15815
+ *
15816
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
15817
+ * `on`/`off` for a switch — not a normalised set, because normalising would
15818
+ * make the condition lie about devices whose states have no equivalent.
15819
+ *
15820
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
15821
+ * condition that fired on "I could not read it" would be worse than no gate.
15822
+ */
15823
+ var NcDeviceStateConditionSchema = object({
15824
+ deviceId: number().int(),
15825
+ /** Any of these matches. */
15826
+ states: array(string().min(1)).min(1)
15827
+ });
15828
+ /**
15829
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
15830
+ *
15831
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
15832
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
15833
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
15834
+ * already has a trigger ("tell me about a person at the front door, but only
15835
+ * while the bin is still out"). That is why it composes with every delivery
15836
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
15837
+ * kind exist for it — see D159.
15838
+ *
15839
+ * ── Identity ───────────────────────────────────────────────────────────────
15840
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
15841
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
15842
+ * carried as a HINT for the editor and for the log line, never as part of the
15843
+ * lookup key: a rule whose hint drifted must still gate correctly.
15844
+ *
15845
+ * ── Which boolean ──────────────────────────────────────────────────────────
15846
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
15847
+ * already declares which boolean drives notification rules, and a second knob
15848
+ * that could disagree with it is exactly the D62 failure. Set it only to
15849
+ * override one rule against the scene's own default.
15850
+ *
15851
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
15852
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
15853
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
15854
+ * evidence, in either direction.
15855
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
15856
+ * The latch is a durable fact about the past ("it has diverged since I armed
15857
+ * it"), so a camera that has gone dark does not clear it — that is the whole
15858
+ * reason the operator asked for a latch.
15859
+ *
15860
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
15861
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
15862
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
15863
+ * said out loud in the log rather than dropped in silence.
15864
+ */
15865
+ var NcSceneConditionSchema = object({
15866
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
15867
+ sceneId: string().min(1),
15868
+ /** The camera the scene lives on. A hint for the editor and the log line. */
15869
+ deviceId: number().int().optional(),
15870
+ /** The state the scene must be in for the rule to fire. */
15871
+ requiredState: _enum(["matched", "diverged"]),
15872
+ /**
15873
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
15874
+ * scene's own `emit` field, which is the only place that decision belongs.
15875
+ */
15876
+ latched: boolean().optional()
15877
+ });
15559
15878
  var NcConditionsSchema = object({
15560
15879
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
15561
- deviceState: object({
15562
- deviceId: number().int(),
15563
- /** Any of these matches. */
15564
- states: array(string().min(1)).min(1)
15565
- }).optional(),
15880
+ deviceState: NcDeviceStateConditionSchema.optional(),
15881
+ /**
15882
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
15883
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
15884
+ * unlike `occupancy`/`audio` it discriminates nothing. See
15885
+ * {@link NcSceneCondition} and D159.
15886
+ */
15887
+ scene: NcSceneConditionSchema.optional(),
15566
15888
  /** Device scope — absent = all devices. */
15567
15889
  devices: array(number()).optional(),
15568
15890
  /** Detector class names (any overlap with the record's class set). */
@@ -15588,18 +15910,47 @@ var NcConditionsSchema = object({
15588
15910
  */
15589
15911
  labelEquals: array(string().min(1)).optional(),
15590
15912
  /**
15591
- * Identity matcher. P1 boundary: matched against the record's collapsed
15592
- * `label` (the identity display name propagated by the face pipeline) —
15593
- * identity-ID matching rides in P2 when identity ids reach the record.
15913
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
15914
+ * is about recognised people at all.
15915
+ *
15916
+ * Three states, and the empty one is the point:
15917
+ *
15918
+ * | value | meaning |
15919
+ * | --- | --- |
15920
+ * | absent | the rule does not care who it is; an unrecognised person matches |
15921
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
15922
+ * | a list | only these identities |
15923
+ *
15924
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
15925
+ * `devices` list is every device), applied one level down: the operator has
15926
+ * turned the face scope ON and narrowed it to nothing, which is every known
15927
+ * face. No second field states the same thing — a switch that can disagree
15928
+ * with the list under it is worse than no switch (D62).
15929
+ *
15930
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
15931
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
15932
+ * the operator fixed the spelling. The id reaches the record on
15933
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
15934
+ * `{{label}}` renders.
15935
+ *
15936
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
15937
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
15938
+ * for is left as it stands and reported, never dropped. The engine also
15939
+ * accepts a display-name hit as a compatibility leg, so a rule whose
15940
+ * migration could not resolve keeps matching exactly what it matched before.
15594
15941
  */
15595
15942
  identities: array(string().min(1)).optional(),
15596
- /** Fuzzy plate matcher against the record's `label` (plate text). */
15943
+ /**
15944
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
15945
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
15946
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
15947
+ */
15597
15948
  plates: NcPlateMatcherSchema.optional(),
15598
15949
  /**
15599
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
15600
- * Same P1 boundary: matched against the record's collapsed `label` (the
15601
- * identity display name). A record with NO label passes (nothing to
15602
- * exclude), unlike the include variant which fails on an absent label.
15950
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
15951
+ * the same id members and the same lazy name→id migration. A record with NO
15952
+ * identity passes (nothing to exclude), unlike the include variant which
15953
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
15603
15954
  */
15604
15955
  identitiesExclude: array(string().min(1)).optional(),
15605
15956
  /**
@@ -15991,7 +16342,80 @@ var NcRuleInputSchema = object({
15991
16342
  * a rule that predates the gate must keep delivering byte-for-byte as it
15992
16343
  * did, and absent is the only way to say that without a migration.
15993
16344
  */
15994
- confirm: NcConfirmSchema.optional()
16345
+ confirm: NcConfirmSchema.optional(),
16346
+ /**
16347
+ * WAIT for face/plate recognition before saying anything.
16348
+ *
16349
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
16350
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
16351
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
16352
+ * measured on this hub — and an `immediate` rule enqueues on the first object
16353
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
16354
+ * immediate path, and no amount of media re-resolution fixes a sentence.
16355
+ *
16356
+ * Only two honest answers exist, and this flag picks between them. It has
16357
+ * effect ONLY on a rule that declares a recognition scope
16358
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
16359
+ * other rule there is nothing to wait for and the flag is inert.
16360
+ *
16361
+ * | value | what happens |
16362
+ * | --- | --- |
16363
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
16364
+ * | 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) |
16365
+ *
16366
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16367
+ * on the addon cap path, and absent has to keep meaning exactly what every
16368
+ * rule authored before this field meant.
16369
+ *
16370
+ * The cost of `true` is stated here because the editor states it too: a rule
16371
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
16372
+ * tests every zone the track visited and a `crossing` condition can no longer
16373
+ * be satisfied, because a closed track carries no crossing.
16374
+ */
16375
+ waitForEnhancement: boolean().optional(),
16376
+ /**
16377
+ * GROUP a burst of subjects into ONE notification that grows.
16378
+ *
16379
+ * Seconds of quiet after the last matching subject before the burst is
16380
+ * considered over. While it is open, the first subject enqueues immediately —
16381
+ * **exactly as today, with no added latency** — and every real growth (a new
16382
+ * subject, or a name confirmed on one already in it) REPLACES that
16383
+ * notification with an updated one naming everybody. The push carries the
16384
+ * group's own coalescing tag, so the phone replaces rather than stacks.
16385
+ *
16386
+ * `0` / absent = off, and off is today's behaviour byte for byte.
16387
+ *
16388
+ * ### Why an idle cutoff and not a window
16389
+ *
16390
+ * The measured seven-person arrival on device 590 spans 110 s with every
16391
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
16392
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
16393
+ * 30 is Frigate's shipped value for the same decision.
16394
+ *
16395
+ * ### What it replaces
16396
+ *
16397
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
16398
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
16399
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
16400
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
16401
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
16402
+ * budget over GROUPS — which is what it always meant — and a growth is never
16403
+ * throttled by the window its own first member spent.
16404
+ *
16405
+ * ### Interaction with {@link waitForEnhancement}
16406
+ *
16407
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
16408
+ * TRACK CLOSE, so with both set the group is opened by the first member to
16409
+ * CLOSE — already carrying its name — and grows as later members close. That
16410
+ * is later, and complete. With grouping alone the group opens on the first
16411
+ * object event and picks up names as they are confirmed, through the growth
16412
+ * path. Neither combination fires twice for one subject.
16413
+ *
16414
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16415
+ * on the addon cap path, so absent must keep meaning what it meant before this
16416
+ * field existed.
16417
+ */
16418
+ groupIdleSec: number().int().min(0).max(600).optional()
15995
16419
  });
15996
16420
  /**
15997
16421
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -16098,6 +16522,7 @@ var NcConditionDescriptorSchema = object({
16098
16522
  "occupancy",
16099
16523
  "audio",
16100
16524
  "deviceState",
16525
+ "scene",
16101
16526
  "systemEvent"
16102
16527
  ]),
16103
16528
  operator: _enum([
@@ -16503,7 +16928,87 @@ var MethodAccessSchema = _enum([
16503
16928
  var AllowedProviderSchema = union([literal("*"), array(string())]);
16504
16929
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
16505
16930
  var CapScopeSchema = _enum(["device", "system"]);
16506
- var TokenScopeSchema = discriminatedUnion("type", [
16931
+ /**
16932
+ * DeviceSelector (scope model v3 — 2026-08-12).
16933
+ *
16934
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
16935
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
16936
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
16937
+ * AFTER the grant was minted — no re-grant, no re-login.
16938
+ *
16939
+ * - `all` — every device in the deployment. The broad viewer/operator
16940
+ * lever without a `category` grant (a `category` grant also covers device
16941
+ * caps that carry no deviceId; `all` is specifically the device set).
16942
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
16943
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
16944
+ * is NOT covered until the grant is edited.
16945
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
16946
+ * DYNAMIC. A device that changes type, or a new device of the type,
16947
+ * re-resolves on the next request.
16948
+ * - `locations` — every device whose operator-assigned `location` label is
16949
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
16950
+ * null/unset location matches NO `locations` selector.
16951
+ */
16952
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
16953
+ object({ kind: literal("all") }),
16954
+ object({
16955
+ kind: literal("ids"),
16956
+ ids: array(number().int()).min(1)
16957
+ }),
16958
+ object({
16959
+ kind: literal("types"),
16960
+ types: array(_enum(DeviceType)).min(1)
16961
+ }),
16962
+ object({
16963
+ kind: literal("locations"),
16964
+ locations: array(string().min(1)).min(1)
16965
+ })
16966
+ ]);
16967
+ var DeviceTokenScopeSchema = object({
16968
+ type: literal("device"),
16969
+ /** The device SET this grant covers — resolved against the live fleet. */
16970
+ selector: DeviceSelectorSchema,
16971
+ access: array(MethodAccessSchema).min(1),
16972
+ /**
16973
+ * Whether a grant on a PARENT device transparently covers its accessory
16974
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16975
+ * Direction is parent → children ONLY.
16976
+ *
16977
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16978
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16979
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16980
+ * operator must grant on the child, not inherit from the parent). Set it
16981
+ * explicitly to override that default per grant.
16982
+ */
16983
+ includeLinked: boolean().optional()
16984
+ });
16985
+ /**
16986
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16987
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16988
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16989
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16990
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16991
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16992
+ * migration cannot reach a JWT already in a client's hands; parse-time
16993
+ * migration covers both without a flag day. No cast — the raw object is read
16994
+ * through `Reflect.get` (its static type is `unknown`).
16995
+ */
16996
+ function migrateLegacyTokenScope(raw) {
16997
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16998
+ if (Reflect.get(raw, "type") !== "device") return raw;
16999
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
17000
+ const targets = Reflect.get(raw, "targets");
17001
+ if (!Array.isArray(targets)) return raw;
17002
+ return {
17003
+ type: "device",
17004
+ selector: {
17005
+ kind: "ids",
17006
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
17007
+ },
17008
+ access: Reflect.get(raw, "access")
17009
+ };
17010
+ }
17011
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
16507
17012
  object({
16508
17013
  type: literal("category"),
16509
17014
  target: CapScopeSchema,
@@ -16519,18 +17024,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
16519
17024
  target: string(),
16520
17025
  access: array(MethodAccessSchema).min(1)
16521
17026
  }),
16522
- object({
16523
- type: literal("device"),
16524
- /**
16525
- * One or more deviceIds (serialised as strings for wire-format
16526
- * consistency with the rest of the union). Matcher accepts if
16527
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
16528
- * of one scope-per-device when granting access to a set of cameras.
16529
- */
16530
- targets: array(string()).min(1),
16531
- access: array(MethodAccessSchema).min(1)
16532
- })
16533
- ]);
17027
+ DeviceTokenScopeSchema
17028
+ ]));
16534
17029
  object({
16535
17030
  id: string(),
16536
17031
  username: string(),
@@ -16847,7 +17342,7 @@ var TrackEnvelopeSchema = object({
16847
17342
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16848
17343
  * keeps every scalar the list surfaces actually render (ids, class(es),
16849
17344
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16850
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
17345
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16851
17346
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16852
17347
  * `getTrack`. Mirrors the event-store `projection` convention
16853
17348
  * (`getObjectEvents` et al.).
@@ -16983,7 +17478,21 @@ union([literal(1), literal(2)]);
16983
17478
  var LabelAttributionSchema = object({
16984
17479
  stepId: string(),
16985
17480
  modelId: string().optional(),
16986
- decidedAt: number()
17481
+ decidedAt: number(),
17482
+ /**
17483
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
17484
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
17485
+ *
17486
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
17487
+ * notification rule authored on "Gianluca" stopped matching the moment the
17488
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
17489
+ * the thing that does not move, so it is what a rule matches on
17490
+ * (`NcConditions.identities`) and the text is what a human is shown.
17491
+ *
17492
+ * Absent when the label names no gallery row — a plate the OCR read but no
17493
+ * vehicle claims, a sub-class, a species, any tier-1 value.
17494
+ */
17495
+ identityId: string().optional()
16987
17496
  });
16988
17497
  /**
16989
17498
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -17120,6 +17629,28 @@ var TrackSchema = object({
17120
17629
  * `=== true` and render nothing otherwise, never infer "no face".
17121
17630
  */
17122
17631
  hasFace: boolean().optional(),
17632
+ /**
17633
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
17634
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
17635
+ * so the passage is tracked once and as a VEHICLE.
17636
+ *
17637
+ * It exists because the fold's record was dishonest. D34 and the code both
17638
+ * said "the person is not lost — it is reported so both entities stay on the
17639
+ * record"; in fact the pair went into a per-processor RAM field behind an
17640
+ * accessor nobody called, and every durable surface said `vehicle`, full
17641
+ * stop. This is the composition note that makes the row true.
17642
+ *
17643
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
17644
+ * person" is not an answer to "what is this" — both label tiers would refuse
17645
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
17646
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
17647
+ * and a `person` rule still does not fire for someone cycling past.
17648
+ *
17649
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
17650
+ * the column, and every hub that predates the field, omits it. Test
17651
+ * `=== true` and render nothing otherwise — never infer "no rider".
17652
+ */
17653
+ hasRider: boolean().optional(),
17123
17654
  ...TrackFlagFields,
17124
17655
  ...TrackRetrainFields
17125
17656
  });
@@ -17469,7 +18000,10 @@ var RecentTracksQueryInput = object({
17469
18000
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
17470
18001
  cursor: string().optional(),
17471
18002
  /** See {@link TrackProjectionSchema}. Default `full`. */
17472
- projection: TrackProjectionSchema.optional()
18003
+ projection: TrackProjectionSchema.optional(),
18004
+ /** Include stationary-promoted rows (parked objects). Default false: the
18005
+ * feed lists passages; parking records live on the stationary registry. */
18006
+ includeStationary: boolean().optional()
17473
18007
  });
17474
18008
  var RecentTracksPageSchema = object({
17475
18009
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -17687,7 +18221,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17687
18221
  zone: TrackZoneFilterSchema.optional(),
17688
18222
  /** See {@link TrackProjectionSchema}. Default `full` (backward
17689
18223
  * compatible — omitting the field keeps today's exact behaviour). */
17690
- projection: TrackProjectionSchema.optional()
18224
+ projection: TrackProjectionSchema.optional(),
18225
+ /** Include stationary-promoted rows (parked objects handed to the
18226
+ * stationary registry). Default false: the timeline lists passages,
18227
+ * not parking records (operator decision, 2026-08-15). */
18228
+ includeStationary: boolean().optional()
17691
18229
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17692
18230
  kind: "mutation",
17693
18231
  auth: "admin"
@@ -17851,11 +18389,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17851
18389
  auth: "admin"
17852
18390
  }), method(object({
17853
18391
  eventId: string(),
17854
- kind: MediaFileKindEnum.optional()
18392
+ kind: MediaFileKindEnum.optional(),
18393
+ deviceId: number()
18394
+ }), array(MediaFileSchema).readonly()), method(object({
18395
+ trackId: string(),
18396
+ kinds: array(MediaFileKindEnum).optional(),
18397
+ deviceId: number()
17855
18398
  }), array(MediaFileSchema).readonly()), method(object({
17856
18399
  trackId: string(),
17857
- kinds: array(MediaFileKindEnum).optional()
17858
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
18400
+ deviceId: number()
18401
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17859
18402
  kind: "mutation",
17860
18403
  auth: "admin"
17861
18404
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -18555,6 +19098,17 @@ var maxSessionHoldMsField = {
18555
19098
  default: 12e4,
18556
19099
  step: 5e3
18557
19100
  };
19101
+ /**
19102
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
19103
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
19104
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
19105
+ */
19106
+ var audioMotionWindowMsField = {
19107
+ min: 5e3,
19108
+ max: 6e5,
19109
+ default: 9e4,
19110
+ step: 5e3
19111
+ };
18558
19112
  var motionFpsField = {
18559
19113
  min: 1,
18560
19114
  max: 30,
@@ -18586,7 +19140,7 @@ var detectionFpsField = {
18586
19140
  var occupancyRecheckSecField = {
18587
19141
  min: 0,
18588
19142
  max: 300,
18589
- default: 30,
19143
+ default: 300,
18590
19144
  step: 5
18591
19145
  };
18592
19146
  var occupancyRecheckFramesField = {
@@ -18731,6 +19285,27 @@ var RunnerCameraConfigSchema = object({
18731
19285
  * resolved `CameraDetectionConfig`.
18732
19286
  */
18733
19287
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
19288
+ /**
19289
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
19290
+ * 'on-motion'` audio window, measured from the LAST motion event.
19291
+ *
19292
+ * This exists because the falling edge cannot be relied on. Camera-native
19293
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
19294
+ * its email-push SMTP path both emit `detected: true` and never the
19295
+ * counterpart); only the frame-diff analyzer emits falls. So on an
19296
+ * onboard-only camera a window that closed only on `detected: false` never
19297
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
19298
+ * battery camera, the one failure mode the mode exists to prevent.
19299
+ *
19300
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
19301
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
19302
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
19303
+ *
19304
+ * Not consumed by the runner: carried here so it shares the per-camera
19305
+ * device-settings surface with `motionCooldownMs`, exactly like
19306
+ * `maxSessionHoldMs`.
19307
+ */
19308
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
18734
19309
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
18735
19310
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
18736
19311
  motionStreamId: string(),
@@ -18826,7 +19401,7 @@ var RunnerCameraConfigSchema = object({
18826
19401
  */
18827
19402
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
18828
19403
  });
18829
- 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;
19404
+ 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;
18830
19405
  /**
18831
19406
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
18832
19407
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -19812,7 +20387,31 @@ DeviceType.Camera, method(object({
19812
20387
  lastCapturedAt: number().nullable(),
19813
20388
  cacheAgeMs: number().nullable(),
19814
20389
  etag: string().nullable()
19815
- }))), systemMethod(object({
20390
+ }))), systemMethod(object({ deviceId: number() }), object({
20391
+ /** The battery slice as read, or null when the device has none. */
20392
+ battery: object({
20393
+ sleeping: boolean(),
20394
+ lastUpdated: number(),
20395
+ lastContactAt: number().optional()
20396
+ }).nullable(),
20397
+ /** The resolved snapshot state (what the overlay decision used). */
20398
+ state: object({
20399
+ isBattery: boolean(),
20400
+ reason: _enum([
20401
+ "disabled",
20402
+ "sleeping",
20403
+ "unreachable",
20404
+ "waking"
20405
+ ]).nullable()
20406
+ }),
20407
+ /** The cached frame behind the next paint. */
20408
+ frame: object({
20409
+ capturedAt: number().nullable(),
20410
+ ageMs: number().nullable()
20411
+ }),
20412
+ /** A wake window is currently open (the Waking overlay's source). */
20413
+ waking: boolean()
20414
+ })), systemMethod(object({
19816
20415
  /** The tiles a surface is actually rendering. One entry per (device,
19817
20416
  * width) the caller will paint — the width is snapped to the server's
19818
20417
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19842,7 +20441,16 @@ targets: array(object({
19842
20441
  /** A sleeping battery camera: the frame is deliberately stale and will
19843
20442
  * NOT refresh in the background. A surface should say so rather than
19844
20443
  * present it as current. */
19845
- sleeping: boolean()
20444
+ sleeping: boolean(),
20445
+ /** Current device state rendered over the cached frame. State images
20446
+ * remain authoritative even when their photographic background is
20447
+ * old; null means the link must carry a current camera frame. */
20448
+ stateReason: _enum([
20449
+ "disabled",
20450
+ "sleeping",
20451
+ "unreachable",
20452
+ "waking"
20453
+ ]).nullable()
19846
20454
  })));
19847
20455
  /**
19848
20456
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -21496,6 +22104,25 @@ var BatteryStatusSchema = object({
21496
22104
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
21497
22105
  lastUpdated: number(),
21498
22106
  /**
22107
+ * Ms epoch of the last time the device PROVED it was reachable — a
22108
+ * completed firmware round-trip, an observed wake, or an inbound push
22109
+ * (firmware event, email). `0`/absent = never since this slice was born.
22110
+ *
22111
+ * This is the ONLY input that separates "asleep" from "gone", and it is
22112
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
22113
+ * for the radio, because a poll that confirms reachability is the same
22114
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
22115
+ * single derivation every consumer must use; no surface computes its own.
22116
+ *
22117
+ * It is deliberately NOT a clock in the
22118
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
22119
+ * observation itself, and it is the only thing a 30-hour silence is
22120
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
22121
+ * Reolink provider) so a value that means "recently" cannot cost a
22122
+ * SQLite commit per round-trip.
22123
+ */
22124
+ lastContactAt: number().optional(),
22125
+ /**
21499
22126
  * True when the source is a BINARY low-battery indicator (HA
21500
22127
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
21501
22128
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23760,54 +24387,139 @@ var TalkAudioCodecSchema = _enum([
23760
24387
  "g711ulaw",
23761
24388
  "g711alaw"
23762
24389
  ]);
23763
- DeviceType.Camera, method(object({ deviceId: number() }), object({
23764
- sessionId: string(),
23765
- sdpOffer: string()
23766
- }), {
23767
- kind: "mutation",
23768
- auth: "admin"
23769
- }), method(object({
23770
- deviceId: number(),
23771
- sessionId: string(),
23772
- sdpAnswer: string()
23773
- }), _void(), {
23774
- kind: "mutation",
23775
- auth: "admin"
23776
- }), method(object({
23777
- deviceId: number(),
23778
- sessionId: string()
23779
- }), _void(), {
23780
- kind: "mutation",
23781
- auth: "admin"
23782
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23783
- kind: "mutation",
23784
- auth: "admin"
23785
- }), method(object({
23786
- deviceId: number(),
23787
- /** Audio bytes for ONE frame, base64-encoded so the payload
23788
- * survives tRPC JSON serialization. */
23789
- audioBase64: string(),
23790
- /** Wire codec of the payload. Omit to let the provider default
23791
- * to its native expected format (s16le @ provider-native rate,
23792
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23793
- codec: TalkAudioCodecSchema.optional(),
23794
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23795
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23796
- sampleRate: number().int().positive().optional(),
23797
- /** Channel count. Default 1. */
23798
- channels: number().int().positive().optional(),
23799
- /** Sequence number for ordering / dropping out-of-order frames. */
23800
- sequenceNumber: number().int()
23801
- }), object({ accepted: boolean() }), {
23802
- kind: "mutation",
23803
- auth: "admin"
23804
- }), method(object({ deviceId: number() }), _void(), {
23805
- kind: "mutation",
23806
- auth: "admin"
23807
- }), object({
23808
- deviceId: number(),
23809
- status: IntercomStatusSchema
23810
- });
24390
+ var intercomCapability = {
24391
+ name: "intercom",
24392
+ scope: "device",
24393
+ deviceNative: true,
24394
+ mode: "singleton",
24395
+ deviceTypes: [DeviceType.Camera],
24396
+ methods: {
24397
+ /**
24398
+ * Open a server-side WebRTC audio-only session. Returns an SDP
24399
+ * offer with a single sendonly audio m-line the client answers
24400
+ * (client → server direction). The server wakes battery cams
24401
+ * transparently before opening the upstream talk channel.
24402
+ */
24403
+ startSession: method(object({ deviceId: number() }), object({
24404
+ sessionId: string(),
24405
+ sdpOffer: string()
24406
+ }), {
24407
+ kind: "mutation",
24408
+ auth: "admin"
24409
+ }),
24410
+ handleAnswer: method(object({
24411
+ deviceId: number(),
24412
+ sessionId: string(),
24413
+ sdpAnswer: string()
24414
+ }), _void(), {
24415
+ kind: "mutation",
24416
+ auth: "admin"
24417
+ }),
24418
+ /** Close explicitly. Server also auto-closes on 30s idle. */
24419
+ stopSession: method(object({
24420
+ deviceId: number(),
24421
+ sessionId: string()
24422
+ }), _void(), {
24423
+ kind: "mutation",
24424
+ auth: "admin"
24425
+ }),
24426
+ /**
24427
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
24428
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
24429
+ * harnesses) that already have decoded PCM frames and just need a
24430
+ * direct path onto the camera's talk channel. Mutually exclusive
24431
+ * with `startSession` (an active WebRTC session must be stopped
24432
+ * before a raw-PCM session can be opened on the same device, and
24433
+ * vice versa).
24434
+ */
24435
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
24436
+ kind: "mutation",
24437
+ auth: "admin"
24438
+ }),
24439
+ /**
24440
+ * Push one chunk of talk-back audio onto the active talk session.
24441
+ * The cap is codec-agnostic: the caller declares (or omits) the
24442
+ * wire format via `codec`; the provider decides between passthrough
24443
+ * (when the wire codec matches the camera's native talk channel),
24444
+ * transcoding via the `audio-codec` cap, or rejecting the call.
24445
+ *
24446
+ * Callers do NOT need to know the camera's wire format or sample
24447
+ * rate — that information lives entirely inside the provider.
24448
+ *
24449
+ * Sequence numbers MUST be monotonic per talk session; older frames
24450
+ * arriving after newer ones are dropped to avoid smearing the
24451
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
24452
+ * predictor would corrupt with re-ordering).
24453
+ */
24454
+ pushTalkAudio: method(object({
24455
+ deviceId: number(),
24456
+ /** Audio bytes for ONE frame, base64-encoded so the payload
24457
+ * survives tRPC JSON serialization. */
24458
+ audioBase64: string(),
24459
+ /** Wire codec of the payload. Omit to let the provider default
24460
+ * to its native expected format (s16le @ provider-native rate,
24461
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
24462
+ codec: TalkAudioCodecSchema.optional(),
24463
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
24464
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
24465
+ sampleRate: number().int().positive().optional(),
24466
+ /** Channel count. Default 1. */
24467
+ channels: number().int().positive().optional(),
24468
+ /** Sequence number for ordering / dropping out-of-order frames. */
24469
+ sequenceNumber: number().int()
24470
+ }), object({ accepted: boolean() }), {
24471
+ kind: "mutation",
24472
+ auth: "admin"
24473
+ }),
24474
+ /** Close the raw-PCM talk session. Idempotent. */
24475
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
24476
+ kind: "mutation",
24477
+ auth: "admin"
24478
+ })
24479
+ },
24480
+ events: { onStatusChanged: { data: object({
24481
+ deviceId: number(),
24482
+ status: IntercomStatusSchema
24483
+ }) } },
24484
+ status: {
24485
+ schema: IntercomStatusSchema,
24486
+ kind: "command-driven"
24487
+ },
24488
+ /**
24489
+ * Runtime-state slice — mirrored by the kernel.
24490
+ *
24491
+ * The cap declared `status` and nothing else, so the only two sources an
24492
+ * exporter has for a value — the `device.state-changed` slice event and the
24493
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
24494
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
24495
+ * have been published and never received a value, which is the defect the
24496
+ * export's two classification tables exist to prevent (177 of them, once), so
24497
+ * `intercom` was excluded rather than exported.
24498
+ *
24499
+ * The shape is the status shape: there is exactly one truth about talk-back
24500
+ * and duplicating it into a second schema is how two halves of one capability
24501
+ * come to disagree. Providers write it through
24502
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
24503
+ * and close a session, and seed it at registration so the slice exists before
24504
+ * the first session rather than after it.
24505
+ *
24506
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
24507
+ * session handle, so a session torn down by a transport death that never
24508
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
24509
+ * session or the next restart. That is why the slice is `session` and not
24510
+ * `restored` — a restart must never restore "talking".
24511
+ */
24512
+ runtimeState: IntercomStatusSchema,
24513
+ /**
24514
+ * Runtime-state durability: **session** — `talking` describes a live audio
24515
+ * session, which by definition does not survive the process that held it.
24516
+ * Restoring it would publish a camera as talking to nobody.
24517
+ *
24518
+ * See `RuntimeStateDurability`. Enforced by
24519
+ * `scripts/check-runtime-state-durability.ts`.
24520
+ */
24521
+ durability: "session"
24522
+ };
23811
24523
  /**
23812
24524
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
23813
24525
  * with a mowing lifecycle plus a dock action.
@@ -26504,7 +27216,7 @@ method(object({
26504
27216
  toMs: number()
26505
27217
  }), RecordingAvailabilitySchema, {
26506
27218
  kind: "query",
26507
- auth: "admin"
27219
+ auth: "protected"
26508
27220
  }), method(object({
26509
27221
  deviceId: number(),
26510
27222
  fromMs: number(),
@@ -26512,14 +27224,14 @@ method(object({
26512
27224
  tzOffsetMinutes: number()
26513
27225
  }), RecordingDaysSchema, {
26514
27226
  kind: "query",
26515
- auth: "admin"
27227
+ auth: "protected"
26516
27228
  }), method(object({
26517
27229
  deviceId: number(),
26518
27230
  fromMs: number(),
26519
27231
  toMs: number()
26520
27232
  }), RecordingManifestSchema, {
26521
27233
  kind: "query",
26522
- auth: "admin"
27234
+ auth: "protected"
26523
27235
  }), method(object({}), RecordingStorageUsageSchema, {
26524
27236
  kind: "query",
26525
27237
  auth: "admin"
@@ -26809,14 +27521,77 @@ method(object({
26809
27521
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
26810
27522
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
26811
27523
  *
26812
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
26813
- * derives the device-detail contribution; the provider carries NO hand-written
26814
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
26815
- * every hysteresis flip / availability change; consumers never poll.
26816
- */
26817
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
26818
- * be added without a wire break (matching falls back to any-condition refs). */
27524
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
27525
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
27526
+ * for the thing: a scene is a standing question about the property ("is the bin
27527
+ * still out"), and the operator's question is "which of my scenes have tripped",
27528
+ * across every camera at once — not "what does camera 617 think". Buried one
27529
+ * camera deep it also could not be found. The surface is now a top-level admin
27530
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
27531
+ * picks the camera inside the create flow, the same shape Events and Faces have.
27532
+ *
27533
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
27534
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
27535
+ * directions, so a registration nobody declares fails exactly as loudly as a
27536
+ * declaration nobody registers. The editor is imported directly by the page.
27537
+ *
27538
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
27539
+ * availability change; consumers never poll.
27540
+ */
27541
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
27542
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
27543
+ * Open by design so more can be added without a wire break.
27544
+ *
27545
+ * Matching does NOT fall back across conditions: cross-condition cosines are
27546
+ * not comparable, so "I have never seen this scene in this light" is reported
27547
+ * as `unknown`, never guessed. A day reference scored against an IR frame
27548
+ * collapses the cosine and would latch a false alarm every single night. */
26819
27549
  var SceneConditionSchema = string();
27550
+ /**
27551
+ * What a scene does when the CURRENT light has no reference of its own.
27552
+ *
27553
+ * The lighting variants are not equally likely to exist. Almost every operator
27554
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
27555
+ * scene that is only ever going to be asked about a daytime question ("is the
27556
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
27557
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
27558
+ * working without it rather than degrading into a permanent complaint.
27559
+ *
27560
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
27561
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
27562
+ * last covered light left it at, the latch is untouched, and the hysteresis
27563
+ * run is neither spent nor cleared. The scene resumes by itself at first
27564
+ * light. This is the only behaviour under which "I never captured IR" is a
27565
+ * configuration choice instead of a nightly fault.
27566
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
27567
+ * for cameras whose IR frame is close enough to daylight (a floodlit
27568
+ * driveway, an always-white-light doorbell), and wrong for everything else:
27569
+ * cross-condition cosines are not comparable, so a day reference against a
27570
+ * true IR frame collapses and the scene reports a theft at 21:40.
27571
+ *
27572
+ * Never applies when the scene has NO comparable reference at all — that is
27573
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
27574
+ * there would hide a scene the operator never finished setting up.
27575
+ */
27576
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
27577
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
27578
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
27579
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
27580
+ * and never counts toward hysteresis in either direction. */
27581
+ var SceneVerdictSchema = _enum([
27582
+ "matched",
27583
+ "diverged",
27584
+ "unknown"
27585
+ ]);
27586
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
27587
+ * silence that reads as "nothing has happened". */
27588
+ var SceneUnavailableSchema = _enum([
27589
+ "no-reference-for-condition",
27590
+ "view-shifted",
27591
+ "no-vision-profile",
27592
+ "encoder-model-changed",
27593
+ "no-snapshot"
27594
+ ]);
26820
27595
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
26821
27596
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
26822
27597
  var SceneReferenceSchema = object({
@@ -26824,7 +27599,14 @@ var SceneReferenceSchema = object({
26824
27599
  modelId: string(),
26825
27600
  condition: SceneConditionSchema,
26826
27601
  capturedAt: number(),
26827
- thumbnailMediaId: string().optional()
27602
+ thumbnailMediaId: string().optional(),
27603
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
27604
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
27605
+ * normalized rect frame a different piece of world, and the scene would
27606
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
27607
+ * when hysteresis is about to flip — one extra encode per candidate
27608
+ * transition, not per poll. */
27609
+ anchorEmbedding: array(number()).optional()
26828
27610
  });
26829
27611
  var SceneMonitorStateSchema = object({
26830
27612
  id: string(),
@@ -26846,6 +27628,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26846
27628
  profileId: string().optional(),
26847
27629
  hysteresisCount: number().int().positive()
26848
27630
  })]);
27631
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
27632
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
27633
+ * out in silence rather than reporting a fault every night. */
27634
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
27635
+ /**
27636
+ * Vision-model adjudication of a candidate flip. Field names deliberately
27637
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
27638
+ *
27639
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
27640
+ * fail-open: a notification suppressed is the worse error there, but a vision
27641
+ * model that timed out has not told us the bin is gone, and a latch is a
27642
+ * stateful claim that costs the operator a trip to reset.
27643
+ */
27644
+ var SceneConfirmSchema = object({
27645
+ enabled: boolean().default(false),
27646
+ prompt: string().min(1).max(1e3),
27647
+ profileId: string().optional(),
27648
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
27649
+ maxImagePx: number().int().min(64).max(2048).default(448),
27650
+ /** What a timeout / unavailable model means for the PENDING flip. */
27651
+ onTimeout: _enum(["flip", "hold"]).default("hold")
27652
+ });
26849
27653
  var SceneMonitorSchema = object({
26850
27654
  id: string(),
26851
27655
  label: string(),
@@ -26864,7 +27668,56 @@ var SceneMonitorSchema = object({
26864
27668
  lastConfidence: number().nullable(),
26865
27669
  currentCondition: SceneConditionSchema.nullable(),
26866
27670
  availability: _enum(["ok", "unavailable"]),
26867
- unavailableReason: string().nullable()
27671
+ unavailableReason: string().nullable(),
27672
+ /** Which state is "the initial screen". `null` until the first capture. */
27673
+ baselineStateId: string().nullable(),
27674
+ /** Which boolean drives notification rules and any export. */
27675
+ emit: _enum(["latched", "live"]).default("latched"),
27676
+ /** Live: does the region match the baseline RIGHT NOW. */
27677
+ verdict: SceneVerdictSchema,
27678
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
27679
+ latched: boolean(),
27680
+ /** Last reset (or creation). */
27681
+ armedAt: number(),
27682
+ divergedAt: number().nullable(),
27683
+ restoredAt: number().nullable(),
27684
+ /** A check is only COUNTED when the device has been quiet this long. Motion
27685
+ * during the window DISCARDS the observation — a car pulling up in front of
27686
+ * the bin must not be able to spend hysteresis credit. */
27687
+ quietSeconds: number().int().min(0).max(3600).default(60),
27688
+ /** An observation only advances the pending count when it is at least this
27689
+ * far from the previously counted one, so N agreeing checks span real time
27690
+ * rather than N adjacent polls inside one occlusion. */
27691
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
27692
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
27693
+ confirm: SceneConfirmSchema.optional(),
27694
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
27695
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
27696
+ /** Clear the latch on its own when the scene matches again? Default false —
27697
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
27698
+ * automation can react to the bin coming back without the operator's own
27699
+ * alarm silently clearing itself. */
27700
+ autoRestore: boolean().default(false),
27701
+ /** What to do when the current light has no reference of its own. See
27702
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
27703
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
27704
+ /**
27705
+ * The light whose checks are currently being SAT OUT under
27706
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
27707
+ *
27708
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
27709
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
27710
+ * nothing captured in this light"* in the same calm voice as the coverage
27711
+ * line, because the alternative is a scene that silently stops answering
27712
+ * after sunset with nothing anywhere saying why. A skipped check must never
27713
+ * read as a broken one.
27714
+ */
27715
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
27716
+ /** Named cause when `verdict === 'unknown'`. */
27717
+ unavailable: SceneUnavailableSchema.nullable(),
27718
+ /** Conditions that have at least one comparable reference — the coverage line
27719
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
27720
+ coveredConditions: array(SceneConditionSchema)
26868
27721
  });
26869
27722
  var SceneMonitorStatusSchema = object({
26870
27723
  monitors: array(SceneMonitorSchema),
@@ -26877,12 +27730,6 @@ var sceneMonitorCapability = {
26877
27730
  kind: "wrapper",
26878
27731
  defaultActive: true,
26879
27732
  deviceTypes: [DeviceType.Camera],
26880
- deviceConfig: { ui: {
26881
- kind: "widget",
26882
- widgetId: "host/scene-monitor-editor",
26883
- tab: "scenes",
26884
- label: "Scenes"
26885
- } },
26886
27733
  methods: {
26887
27734
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26888
27735
  createScene: method(object({
@@ -26913,7 +27760,15 @@ var sceneMonitorCapability = {
26913
27760
  "both"
26914
27761
  ]).optional(),
26915
27762
  checkIntervalSec: number().optional(),
26916
- check: SceneCheckSchema.optional()
27763
+ check: SceneCheckSchema.optional(),
27764
+ emit: _enum(["latched", "live"]).optional(),
27765
+ quietSeconds: number().int().min(0).max(3600).optional(),
27766
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
27767
+ anchorThreshold: number().min(0).max(1).optional(),
27768
+ autoRestore: boolean().optional(),
27769
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
27770
+ /** `null` clears the vision-model adjudicator. */
27771
+ confirm: SceneConfirmSchema.nullable().optional()
26917
27772
  })
26918
27773
  }), _void(), {
26919
27774
  kind: "mutation",
@@ -26954,6 +27809,26 @@ var sceneMonitorCapability = {
26954
27809
  }), _void(), {
26955
27810
  kind: "mutation",
26956
27811
  auth: "admin"
27812
+ }),
27813
+ /**
27814
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
27815
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
27816
+ * "reset" in the operator's head means *this is the new normal*, and
27817
+ * re-capture is what makes the feature self-healing against slow drift
27818
+ * instead of failing silently weeks later.
27819
+ *
27820
+ * Reachable from three surfaces on this one mutation: the scene card, a
27821
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27822
+ * no new Notification-Center code at all), and tRPC for scripts.
27823
+ */
27824
+ resetScene: method(object({
27825
+ deviceId: number(),
27826
+ monitorId: string(),
27827
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27828
+ recapture: boolean().optional()
27829
+ }), _void(), {
27830
+ kind: "mutation",
27831
+ auth: "admin"
26957
27832
  })
26958
27833
  },
26959
27834
  status: {
@@ -27190,7 +28065,70 @@ var CamStreamDescriptorSchema = object({
27190
28065
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
27191
28066
  metadata: record(string(), unknown()).optional()
27192
28067
  });
27193
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
28068
+ /**
28069
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
28070
+ * of the removed `publishCameraStream` push: a camera provider returns the full
28071
+ * set of stream descriptors it can offer for the device, synchronously, so the
28072
+ * broker can reconcile its registry against the authoritative provider state.
28073
+ */
28074
+ /**
28075
+ * The catalog as a DURABLE fact rather than a live answer.
28076
+ *
28077
+ * A battery camera's descriptors are profile-stable — they change when the
28078
+ * operator rewrites an encoder profile, not minute to minute — but building
28079
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
28080
+ * provider is allowed to build them exactly once per profile and must serve
28081
+ * every later pull from a cache.
28082
+ *
28083
+ * Holding that cache only in RAM is what turned a restart into an outage. The
28084
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
28085
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
28086
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
28087
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
28088
+ * which on a battery cam is most of the day. The camera was fine. The stream
28089
+ * was unreachable because the process had forgotten what the camera offers.
28090
+ *
28091
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
28092
+ * declared collection, with the same `restored` durability `battery` uses for
28093
+ * the same reason: the last known value is the only value there is while the
28094
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
28095
+ * is the DIAL that wakes a camera, never the catalog (D173).
28096
+ */
28097
+ var StreamCatalogStateSchema = object({
28098
+ /** The descriptors as last built from a real camera response. Never a guess:
28099
+ * a failed or refused build writes NOTHING, so a restored catalog is always
28100
+ * one the camera itself once produced. */
28101
+ descriptors: array(CamStreamDescriptorSchema),
28102
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
28103
+ * path decide whether the camera's own awake window is worth spending on a
28104
+ * re-read. */
28105
+ lastFetchedAt: number()
28106
+ });
28107
+ var streamCatalogCapability = {
28108
+ name: "stream-catalog",
28109
+ scope: "device",
28110
+ deviceNative: true,
28111
+ mode: "singleton",
28112
+ deviceTypes: [DeviceType.Camera],
28113
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
28114
+ runtimeState: StreamCatalogStateSchema,
28115
+ /**
28116
+ * Runtime-state durability: **restored** — see the schema doc. A cold
28117
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
28118
+ * camera that cannot be watched at all until it happens to wake.
28119
+ *
28120
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
28121
+ * build, and a build only runs when there is no cached copy (or the copy is
28122
+ * a day old and the camera is awake anyway).
28123
+ *
28124
+ * See `RuntimeStateDurability`. Enforced by
28125
+ * `scripts/check-runtime-state-durability.ts`.
28126
+ */
28127
+ durability: "restored",
28128
+ /** Clock field: written, but excluded from the compare that decides whether
28129
+ * persisting is worth a SQLite commit — the descriptors are the value. */
28130
+ volatileStateFields: ["lastFetchedAt"]
28131
+ };
27194
28132
  /** One of the camera's stream profiles. */
27195
28133
  var StreamProfileSchema = _enum([
27196
28134
  "main",
@@ -27444,12 +28382,64 @@ var NetworkAddressSchema = object({
27444
28382
  family: string(),
27445
28383
  internal: boolean()
27446
28384
  });
28385
+ /**
28386
+ * Provenance of the site coordinates, and the whole reason this is not just two
28387
+ * numbers.
28388
+ *
28389
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
28390
+ * nothing overwrites it.
28391
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
28392
+ * default that is right to a few kilometres beats the coarse UTC clock split
28393
+ * the sun-times consumers otherwise fall back to.
28394
+ *
28395
+ * The UI shows which one it is. An operator who cannot tell a guess from their
28396
+ * own input will eventually trust the guess.
28397
+ */
28398
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
28399
+ /**
28400
+ * The read shape: the location plus the honest state of the one-shot derivation.
28401
+ *
28402
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
28403
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
28404
+ * failed; the hub will NOT try again on its own — the fallback is declared
28405
+ * (consumers degrade to their own last resort) and the operator either types the
28406
+ * coordinates or presses detect.
28407
+ */
28408
+ var SiteLocationStatusSchema = object({
28409
+ location: object({
28410
+ /** WGS84 decimal degrees. */
28411
+ latitude: number().min(-90).max(90),
28412
+ longitude: number().min(-180).max(180),
28413
+ source: SiteLocationSourceSchema,
28414
+ /** Epoch ms the value was last written. */
28415
+ updatedAt: number(),
28416
+ /**
28417
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
28418
+ * only — never parsed, never matched on. Absent for an operator-typed value.
28419
+ */
28420
+ label: string().optional()
28421
+ }).nullable(),
28422
+ derivationAttemptedAt: number().nullable(),
28423
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
28424
+ derivationError: string().nullable()
28425
+ });
28426
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
28427
+ var SetSiteLocationInputSchema = object({
28428
+ latitude: number().min(-90).max(90),
28429
+ longitude: number().min(-180).max(180)
28430
+ }).nullable();
27447
28431
  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(), {
27448
28432
  kind: "mutation",
27449
28433
  auth: "admin"
27450
28434
  }), method(_void(), _void(), {
27451
28435
  kind: "mutation",
27452
28436
  auth: "admin"
28437
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
28438
+ kind: "mutation",
28439
+ auth: "admin"
28440
+ }), method(_void(), SiteLocationStatusSchema, {
28441
+ kind: "mutation",
28442
+ auth: "admin"
27453
28443
  });
27454
28444
  /**
27455
28445
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -28769,6 +29759,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28769
29759
  humiditySensor: humiditySensorCapability,
28770
29760
  image: imageCapability,
28771
29761
  imageSettings: imageSettingsCapability,
29762
+ intercom: intercomCapability,
28772
29763
  lawnMowerControl: lawnMowerControlCapability,
28773
29764
  lockControl: lockControlCapability,
28774
29765
  mediaPlayer: mediaPlayerCapability,
@@ -28787,6 +29778,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28787
29778
  sceneMonitor: sceneMonitorCapability,
28788
29779
  scriptRunner: scriptRunnerCapability,
28789
29780
  smoke: smokeCapability,
29781
+ streamCatalog: streamCatalogCapability,
28790
29782
  streamParams: streamParamsCapability,
28791
29783
  switch: switchCapability,
28792
29784
  tamper: tamperCapability,
@@ -29440,6 +30432,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29440
30432
  labels: ["probe not implemented"]
29441
30433
  };
29442
30434
  }
30435
+ /**
30436
+ * Top-level devices restored at once in {@link onRestoreDevices}.
30437
+ *
30438
+ * Four covers the fleets this ships to without turning a boot into a burst a
30439
+ * camera NVR answers with a refusal. A provider whose upstream is a single
30440
+ * session with a serial command channel (a Baichuan hub, an NVR that
30441
+ * serialises ISAPI) should lower it; nothing needs to raise it.
30442
+ */
30443
+ restoreConcurrency = 4;
29443
30444
  async restoreDevices(savedDevices) {
29444
30445
  await this.onRestoreDevices(savedDevices);
29445
30446
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -29471,15 +30472,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29471
30472
  */
29472
30473
  async onRestoreDevices(savedDevices) {
29473
30474
  const restored = /* @__PURE__ */ new Set();
29474
- for (const saved of savedDevices) {
29475
- if (saved.parentDeviceId !== null) continue;
30475
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
30476
+ const restoreOne = async (saved) => {
29476
30477
  const Class = this.deviceClasses[saved.type];
29477
30478
  if (!Class) {
29478
30479
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
29479
30480
  tags: { stableId: saved.stableId },
29480
30481
  meta: { type: saved.type }
29481
30482
  });
29482
- continue;
30483
+ return;
29483
30484
  }
29484
30485
  try {
29485
30486
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -29493,7 +30494,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29493
30494
  }
29494
30495
  });
29495
30496
  }
29496
- }
30497
+ };
30498
+ let nextTopLevel = 0;
30499
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
30500
+ for (;;) {
30501
+ const saved = topLevel[nextTopLevel++];
30502
+ if (saved === void 0) return;
30503
+ await restoreOne(saved);
30504
+ }
30505
+ }));
29497
30506
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
29498
30507
  for (const saved of childRows) {
29499
30508
  const Class = this.deviceClasses[saved.type];
@@ -31584,6 +32593,12 @@ Object.freeze({
31584
32593
  addonId: null,
31585
32594
  access: "create"
31586
32595
  },
32596
+ "llm.cancel": {
32597
+ capName: "llm",
32598
+ capScope: "system",
32599
+ addonId: null,
32600
+ access: "create"
32601
+ },
31587
32602
  "llm.deleteModel": {
31588
32603
  capName: "llm",
31589
32604
  capScope: "system",
@@ -31668,6 +32683,12 @@ Object.freeze({
31668
32683
  addonId: null,
31669
32684
  access: "view"
31670
32685
  },
32686
+ "llm.resolveModelRef": {
32687
+ capName: "llm",
32688
+ capScope: "system",
32689
+ addonId: null,
32690
+ access: "create"
32691
+ },
31671
32692
  "llm.setDefault": {
31672
32693
  capName: "llm",
31673
32694
  capScope: "system",
@@ -33834,6 +34855,12 @@ Object.freeze({
33834
34855
  addonId: null,
33835
34856
  access: "create"
33836
34857
  },
34858
+ "sceneMonitor.resetScene": {
34859
+ capName: "scene-monitor",
34860
+ capScope: "device",
34861
+ addonId: null,
34862
+ access: "delete"
34863
+ },
33837
34864
  "sceneMonitor.updateScene": {
33838
34865
  capName: "scene-monitor",
33839
34866
  capScope: "device",
@@ -33972,6 +34999,12 @@ Object.freeze({
33972
34999
  addonId: null,
33973
35000
  access: "view"
33974
35001
  },
35002
+ "snapshot.getDebugState": {
35003
+ capName: "snapshot",
35004
+ capScope: "device",
35005
+ addonId: null,
35006
+ access: "view"
35007
+ },
33975
35008
  "snapshot.getSnapshot": {
33976
35009
  capName: "snapshot",
33977
35010
  capScope: "device",
@@ -34512,6 +35545,12 @@ Object.freeze({
34512
35545
  addonId: null,
34513
35546
  access: "create"
34514
35547
  },
35548
+ "system.detectSiteLocation": {
35549
+ capName: "system",
35550
+ capScope: "system",
35551
+ addonId: null,
35552
+ access: "create"
35553
+ },
34515
35554
  "system.featureFlags": {
34516
35555
  capName: "system",
34517
35556
  capScope: "system",
@@ -34530,6 +35569,12 @@ Object.freeze({
34530
35569
  addonId: null,
34531
35570
  access: "view"
34532
35571
  },
35572
+ "system.getSiteLocation": {
35573
+ capName: "system",
35574
+ capScope: "system",
35575
+ addonId: null,
35576
+ access: "view"
35577
+ },
34533
35578
  "system.health": {
34534
35579
  capName: "system",
34535
35580
  capScope: "system",
@@ -34554,6 +35599,12 @@ Object.freeze({
34554
35599
  addonId: null,
34555
35600
  access: "create"
34556
35601
  },
35602
+ "system.setSiteLocation": {
35603
+ capName: "system",
35604
+ capScope: "system",
35605
+ addonId: null,
35606
+ access: "create"
35607
+ },
34557
35608
  "terminalSession.adoptLegacyMonitor": {
34558
35609
  capName: "terminal-session",
34559
35610
  capScope: "system",
@@ -35125,6 +36176,1709 @@ Object.freeze({
35125
36176
  access: "create"
35126
36177
  }
35127
36178
  });
36179
+ Object.freeze({
36180
+ "accessories.setChildHidden": [{
36181
+ name: "childDeviceId",
36182
+ form: "single",
36183
+ optional: false
36184
+ }, {
36185
+ name: "deviceId",
36186
+ form: "single",
36187
+ optional: false
36188
+ }],
36189
+ "addonSettings.getDeviceSettings": [{
36190
+ name: "deviceId",
36191
+ form: "single",
36192
+ optional: false
36193
+ }],
36194
+ "addonSettings.updateDeviceSettings": [{
36195
+ name: "deviceId",
36196
+ form: "single",
36197
+ optional: false
36198
+ }],
36199
+ "alarmPanel.arm": [{
36200
+ name: "deviceId",
36201
+ form: "single",
36202
+ optional: false
36203
+ }],
36204
+ "alarmPanel.disarm": [{
36205
+ name: "deviceId",
36206
+ form: "single",
36207
+ optional: false
36208
+ }],
36209
+ "alarmPanel.trigger": [{
36210
+ name: "deviceId",
36211
+ form: "single",
36212
+ optional: false
36213
+ }],
36214
+ "audioAnalysis.resolveDeviceSettings": [{
36215
+ name: "deviceId",
36216
+ form: "single",
36217
+ optional: false
36218
+ }],
36219
+ "audioAnalyzer.classify": [{
36220
+ name: "deviceId",
36221
+ form: "single",
36222
+ optional: true
36223
+ }],
36224
+ "audioMetrics.getCurrentSnapshot": [{
36225
+ name: "deviceId",
36226
+ form: "single",
36227
+ optional: false
36228
+ }],
36229
+ "audioMetrics.getHistory": [{
36230
+ name: "deviceId",
36231
+ form: "single",
36232
+ optional: false
36233
+ }],
36234
+ "automationControl.disable": [{
36235
+ name: "deviceId",
36236
+ form: "single",
36237
+ optional: false
36238
+ }],
36239
+ "automationControl.enable": [{
36240
+ name: "deviceId",
36241
+ form: "single",
36242
+ optional: false
36243
+ }],
36244
+ "automationControl.trigger": [{
36245
+ name: "deviceId",
36246
+ form: "single",
36247
+ optional: false
36248
+ }],
36249
+ "battery.wakeForStream": [{
36250
+ name: "deviceId",
36251
+ form: "single",
36252
+ optional: false
36253
+ }],
36254
+ "brightness.setBrightness": [{
36255
+ name: "deviceId",
36256
+ form: "single",
36257
+ optional: false
36258
+ }],
36259
+ "button.press": [{
36260
+ name: "deviceId",
36261
+ form: "single",
36262
+ optional: false
36263
+ }],
36264
+ "cameraCredentials.getCredentials": [{
36265
+ name: "deviceId",
36266
+ form: "single",
36267
+ optional: false
36268
+ }],
36269
+ "cameraStreams.getBrokerStreams": [{
36270
+ name: "deviceId",
36271
+ form: "single",
36272
+ optional: false
36273
+ }],
36274
+ "cameraStreams.getCameraStreams": [{
36275
+ name: "deviceId",
36276
+ form: "single",
36277
+ optional: false
36278
+ }],
36279
+ "cameraStreams.getProfileRtspEntries": [{
36280
+ name: "deviceId",
36281
+ form: "single",
36282
+ optional: false
36283
+ }],
36284
+ "cameraStreams.getRtspEntries": [{
36285
+ name: "deviceId",
36286
+ form: "single",
36287
+ optional: false
36288
+ }],
36289
+ "cameraStreams.pickStream": [{
36290
+ name: "deviceId",
36291
+ form: "single",
36292
+ optional: false
36293
+ }],
36294
+ "climateControl.setFanMode": [{
36295
+ name: "deviceId",
36296
+ form: "single",
36297
+ optional: false
36298
+ }],
36299
+ "climateControl.setMode": [{
36300
+ name: "deviceId",
36301
+ form: "single",
36302
+ optional: false
36303
+ }],
36304
+ "climateControl.setPreset": [{
36305
+ name: "deviceId",
36306
+ form: "single",
36307
+ optional: false
36308
+ }],
36309
+ "climateControl.setSwingHorizontal": [{
36310
+ name: "deviceId",
36311
+ form: "single",
36312
+ optional: false
36313
+ }],
36314
+ "climateControl.setSwingVertical": [{
36315
+ name: "deviceId",
36316
+ form: "single",
36317
+ optional: false
36318
+ }],
36319
+ "climateControl.setTarget": [{
36320
+ name: "deviceId",
36321
+ form: "single",
36322
+ optional: false
36323
+ }],
36324
+ "climateControl.setTargetHumidity": [{
36325
+ name: "deviceId",
36326
+ form: "single",
36327
+ optional: false
36328
+ }],
36329
+ "climateControl.setTargetRange": [{
36330
+ name: "deviceId",
36331
+ form: "single",
36332
+ optional: false
36333
+ }],
36334
+ "color.setColor": [{
36335
+ name: "deviceId",
36336
+ form: "single",
36337
+ optional: false
36338
+ }],
36339
+ "consumables.reset": [{
36340
+ name: "deviceId",
36341
+ form: "single",
36342
+ optional: false
36343
+ }],
36344
+ "control.setValue": [{
36345
+ name: "deviceId",
36346
+ form: "single",
36347
+ optional: false
36348
+ }],
36349
+ "cover.close": [{
36350
+ name: "deviceId",
36351
+ form: "single",
36352
+ optional: false
36353
+ }],
36354
+ "cover.open": [{
36355
+ name: "deviceId",
36356
+ form: "single",
36357
+ optional: false
36358
+ }],
36359
+ "cover.setPosition": [{
36360
+ name: "deviceId",
36361
+ form: "single",
36362
+ optional: false
36363
+ }],
36364
+ "cover.setTiltPosition": [{
36365
+ name: "deviceId",
36366
+ form: "single",
36367
+ optional: false
36368
+ }],
36369
+ "cover.stop": [{
36370
+ name: "deviceId",
36371
+ form: "single",
36372
+ optional: false
36373
+ }],
36374
+ "dayNight.getOptions": [{
36375
+ name: "deviceId",
36376
+ form: "single",
36377
+ optional: false
36378
+ }],
36379
+ "dayNight.setSettings": [{
36380
+ name: "deviceId",
36381
+ form: "single",
36382
+ optional: false
36383
+ }],
36384
+ "decoder.createSession": [{
36385
+ name: "deviceId",
36386
+ form: "single",
36387
+ optional: true
36388
+ }],
36389
+ "deviceAdoption.release": [{
36390
+ name: "camDeviceId",
36391
+ form: "single",
36392
+ optional: false
36393
+ }],
36394
+ "deviceAdoption.resync": [{
36395
+ name: "camDeviceId",
36396
+ form: "single",
36397
+ optional: false
36398
+ }],
36399
+ "deviceDiscovery.adoptDevice": [{
36400
+ name: "deviceId",
36401
+ form: "single",
36402
+ optional: false
36403
+ }],
36404
+ "deviceDiscovery.listDiscovered": [{
36405
+ name: "deviceId",
36406
+ form: "single",
36407
+ optional: false
36408
+ }],
36409
+ "deviceDiscovery.refreshDiscovery": [{
36410
+ name: "deviceId",
36411
+ form: "single",
36412
+ optional: false
36413
+ }],
36414
+ "deviceDiscovery.releaseDevice": [{
36415
+ name: "childDeviceId",
36416
+ form: "single",
36417
+ optional: false
36418
+ }, {
36419
+ name: "deviceId",
36420
+ form: "single",
36421
+ optional: false
36422
+ }],
36423
+ "deviceManager.adoptionRelease": [{
36424
+ name: "camDeviceId",
36425
+ form: "single",
36426
+ optional: false
36427
+ }],
36428
+ "deviceManager.adoptionResync": [{
36429
+ name: "camDeviceId",
36430
+ form: "single",
36431
+ optional: false
36432
+ }],
36433
+ "deviceManager.applyInitialMeta": [{
36434
+ name: "deviceId",
36435
+ form: "single",
36436
+ optional: false
36437
+ }, {
36438
+ name: "linkDeviceId",
36439
+ form: "single",
36440
+ optional: true
36441
+ }],
36442
+ "deviceManager.disable": [{
36443
+ name: "deviceId",
36444
+ form: "single",
36445
+ optional: false
36446
+ }],
36447
+ "deviceManager.enable": [{
36448
+ name: "deviceId",
36449
+ form: "single",
36450
+ optional: false
36451
+ }],
36452
+ "deviceManager.getBindings": [{
36453
+ name: "deviceId",
36454
+ form: "single",
36455
+ optional: false
36456
+ }],
36457
+ "deviceManager.getChildren": [{
36458
+ name: "parentDeviceId",
36459
+ form: "single",
36460
+ optional: false
36461
+ }],
36462
+ "deviceManager.getConfigSchema": [{
36463
+ name: "deviceId",
36464
+ form: "single",
36465
+ optional: false
36466
+ }],
36467
+ "deviceManager.getDevice": [{
36468
+ name: "deviceId",
36469
+ form: "single",
36470
+ optional: false
36471
+ }],
36472
+ "deviceManager.getDeviceAggregate": [{
36473
+ name: "deviceId",
36474
+ form: "single",
36475
+ optional: false
36476
+ }],
36477
+ "deviceManager.getDeviceLiveInfoAggregate": [{
36478
+ name: "deviceId",
36479
+ form: "single",
36480
+ optional: false
36481
+ }],
36482
+ "deviceManager.getDeviceSettingsAggregate": [{
36483
+ name: "deviceId",
36484
+ form: "single",
36485
+ optional: false
36486
+ }],
36487
+ "deviceManager.getDeviceStatusAggregate": [{
36488
+ name: "deviceId",
36489
+ form: "single",
36490
+ optional: false
36491
+ }],
36492
+ "deviceManager.getDeviceStatusAggregateBatch": [{
36493
+ name: "deviceIds",
36494
+ form: "array",
36495
+ optional: false
36496
+ }],
36497
+ "deviceManager.getLinkedDevices": [{
36498
+ name: "deviceId",
36499
+ form: "single",
36500
+ optional: false
36501
+ }],
36502
+ "deviceManager.getSettingsSchema": [{
36503
+ name: "deviceId",
36504
+ form: "single",
36505
+ optional: false
36506
+ }],
36507
+ "deviceManager.getStreamProfileMap": [{
36508
+ name: "deviceId",
36509
+ form: "single",
36510
+ optional: false
36511
+ }],
36512
+ "deviceManager.getStreamSources": [{
36513
+ name: "deviceId",
36514
+ form: "single",
36515
+ optional: false
36516
+ }],
36517
+ "deviceManager.getWireableFields": [{
36518
+ name: "deviceId",
36519
+ form: "single",
36520
+ optional: false
36521
+ }],
36522
+ "deviceManager.loadConfig": [{
36523
+ name: "deviceId",
36524
+ form: "single",
36525
+ optional: false
36526
+ }],
36527
+ "deviceManager.loadMeta": [{
36528
+ name: "deviceId",
36529
+ form: "single",
36530
+ optional: false
36531
+ }],
36532
+ "deviceManager.loadRuntimeState": [{
36533
+ name: "deviceId",
36534
+ form: "single",
36535
+ optional: false
36536
+ }],
36537
+ "deviceManager.persistConfig": [{
36538
+ name: "deviceId",
36539
+ form: "single",
36540
+ optional: false
36541
+ }],
36542
+ "deviceManager.probeStreams": [{
36543
+ name: "deviceId",
36544
+ form: "single",
36545
+ optional: false
36546
+ }],
36547
+ "deviceManager.registerDevice": [{
36548
+ name: "parentDeviceId",
36549
+ form: "single",
36550
+ optional: true
36551
+ }],
36552
+ "deviceManager.remove": [{
36553
+ name: "deviceId",
36554
+ form: "single",
36555
+ optional: false
36556
+ }],
36557
+ "deviceManager.removeDevice": [{
36558
+ name: "deviceId",
36559
+ form: "single",
36560
+ optional: false
36561
+ }],
36562
+ "deviceManager.runDeviceAction": [{
36563
+ name: "deviceId",
36564
+ form: "single",
36565
+ optional: false
36566
+ }],
36567
+ "deviceManager.setChildLayout": [{
36568
+ name: "deviceId",
36569
+ form: "single",
36570
+ optional: false
36571
+ }],
36572
+ "deviceManager.setDisabled": [{
36573
+ name: "deviceId",
36574
+ form: "single",
36575
+ optional: false
36576
+ }],
36577
+ "deviceManager.setDisplay": [{
36578
+ name: "deviceId",
36579
+ form: "single",
36580
+ optional: false
36581
+ }],
36582
+ "deviceManager.setIntegrationId": [{
36583
+ name: "deviceId",
36584
+ form: "single",
36585
+ optional: false
36586
+ }],
36587
+ "deviceManager.setLinkDeviceId": [{
36588
+ name: "deviceId",
36589
+ form: "single",
36590
+ optional: false
36591
+ }, {
36592
+ name: "linkDeviceId",
36593
+ form: "single",
36594
+ optional: true
36595
+ }],
36596
+ "deviceManager.setLocation": [{
36597
+ name: "deviceId",
36598
+ form: "single",
36599
+ optional: false
36600
+ }],
36601
+ "deviceManager.setMetadata": [{
36602
+ name: "deviceId",
36603
+ form: "single",
36604
+ optional: false
36605
+ }],
36606
+ "deviceManager.setName": [{
36607
+ name: "deviceId",
36608
+ form: "single",
36609
+ optional: false
36610
+ }],
36611
+ "deviceManager.setPrimaryChildEntityId": [{
36612
+ name: "deviceId",
36613
+ form: "single",
36614
+ optional: false
36615
+ }],
36616
+ "deviceManager.setRole": [{
36617
+ name: "deviceId",
36618
+ form: "single",
36619
+ optional: false
36620
+ }],
36621
+ "deviceManager.setStreamProfileMap": [{
36622
+ name: "deviceId",
36623
+ form: "single",
36624
+ optional: false
36625
+ }],
36626
+ "deviceManager.setType": [{
36627
+ name: "deviceId",
36628
+ form: "single",
36629
+ optional: false
36630
+ }],
36631
+ "deviceManager.setWrapperActive": [{
36632
+ name: "deviceId",
36633
+ form: "single",
36634
+ optional: false
36635
+ }],
36636
+ "deviceManager.testField": [{
36637
+ name: "deviceId",
36638
+ form: "single",
36639
+ optional: false
36640
+ }],
36641
+ "deviceManager.updateConfig": [{
36642
+ name: "deviceId",
36643
+ form: "single",
36644
+ optional: false
36645
+ }],
36646
+ "deviceManager.updateDeviceField": [{
36647
+ name: "deviceId",
36648
+ form: "single",
36649
+ optional: false
36650
+ }],
36651
+ "deviceManager.updateDeviceFieldsBatch": [{
36652
+ name: "deviceId",
36653
+ form: "single",
36654
+ optional: false
36655
+ }],
36656
+ "deviceOps.getConfigEntries": [{
36657
+ name: "deviceId",
36658
+ form: "single",
36659
+ optional: false
36660
+ }],
36661
+ "deviceOps.getRawState": [{
36662
+ name: "deviceId",
36663
+ form: "single",
36664
+ optional: false
36665
+ }],
36666
+ "deviceOps.getSettingsSchema": [{
36667
+ name: "deviceId",
36668
+ form: "single",
36669
+ optional: false
36670
+ }],
36671
+ "deviceOps.getStreamSources": [{
36672
+ name: "deviceId",
36673
+ form: "single",
36674
+ optional: false
36675
+ }],
36676
+ "deviceOps.removeDevice": [{
36677
+ name: "deviceId",
36678
+ form: "single",
36679
+ optional: false
36680
+ }],
36681
+ "deviceOps.runAction": [{
36682
+ name: "deviceId",
36683
+ form: "single",
36684
+ optional: false
36685
+ }],
36686
+ "deviceOps.setConfig": [{
36687
+ name: "deviceId",
36688
+ form: "single",
36689
+ optional: false
36690
+ }],
36691
+ "deviceState.getCapSlice": [{
36692
+ name: "deviceId",
36693
+ form: "single",
36694
+ optional: false
36695
+ }],
36696
+ "deviceState.getSnapshot": [{
36697
+ name: "deviceId",
36698
+ form: "single",
36699
+ optional: false
36700
+ }],
36701
+ "deviceState.setCapSlice": [{
36702
+ name: "deviceId",
36703
+ form: "single",
36704
+ optional: false
36705
+ }],
36706
+ "events.getEventClipUrl": [{
36707
+ name: "deviceId",
36708
+ form: "single",
36709
+ optional: false
36710
+ }],
36711
+ "events.getEvents": [{
36712
+ name: "deviceId",
36713
+ form: "single",
36714
+ optional: false
36715
+ }],
36716
+ "events.getEventThumbnail": [{
36717
+ name: "deviceId",
36718
+ form: "single",
36719
+ optional: false
36720
+ }],
36721
+ "faceGallery.getFaceByTrack": [{
36722
+ name: "deviceId",
36723
+ form: "single",
36724
+ optional: false
36725
+ }],
36726
+ "faceGallery.listRecentFaces": [{
36727
+ name: "deviceId",
36728
+ form: "single",
36729
+ optional: true
36730
+ }],
36731
+ "fanControl.setDirection": [{
36732
+ name: "deviceId",
36733
+ form: "single",
36734
+ optional: false
36735
+ }],
36736
+ "fanControl.setOscillating": [{
36737
+ name: "deviceId",
36738
+ form: "single",
36739
+ optional: false
36740
+ }],
36741
+ "fanControl.setPercentage": [{
36742
+ name: "deviceId",
36743
+ form: "single",
36744
+ optional: false
36745
+ }],
36746
+ "fanControl.setPreset": [{
36747
+ name: "deviceId",
36748
+ form: "single",
36749
+ optional: false
36750
+ }],
36751
+ "humidifier.setMode": [{
36752
+ name: "deviceId",
36753
+ form: "single",
36754
+ optional: false
36755
+ }],
36756
+ "humidifier.setOn": [{
36757
+ name: "deviceId",
36758
+ form: "single",
36759
+ optional: false
36760
+ }],
36761
+ "humidifier.setTargetHumidity": [{
36762
+ name: "deviceId",
36763
+ form: "single",
36764
+ optional: false
36765
+ }],
36766
+ "imageSettings.getOptions": [{
36767
+ name: "deviceId",
36768
+ form: "single",
36769
+ optional: false
36770
+ }],
36771
+ "imageSettings.setSettings": [{
36772
+ name: "deviceId",
36773
+ form: "single",
36774
+ optional: false
36775
+ }],
36776
+ "intercom.endTalkSession": [{
36777
+ name: "deviceId",
36778
+ form: "single",
36779
+ optional: false
36780
+ }],
36781
+ "intercom.handleAnswer": [{
36782
+ name: "deviceId",
36783
+ form: "single",
36784
+ optional: false
36785
+ }],
36786
+ "intercom.pushTalkAudio": [{
36787
+ name: "deviceId",
36788
+ form: "single",
36789
+ optional: false
36790
+ }],
36791
+ "intercom.startSession": [{
36792
+ name: "deviceId",
36793
+ form: "single",
36794
+ optional: false
36795
+ }],
36796
+ "intercom.startTalkSession": [{
36797
+ name: "deviceId",
36798
+ form: "single",
36799
+ optional: false
36800
+ }],
36801
+ "intercom.stopSession": [{
36802
+ name: "deviceId",
36803
+ form: "single",
36804
+ optional: false
36805
+ }],
36806
+ "lawnMowerControl.dock": [{
36807
+ name: "deviceId",
36808
+ form: "single",
36809
+ optional: false
36810
+ }],
36811
+ "lawnMowerControl.pause": [{
36812
+ name: "deviceId",
36813
+ form: "single",
36814
+ optional: false
36815
+ }],
36816
+ "lawnMowerControl.startMowing": [{
36817
+ name: "deviceId",
36818
+ form: "single",
36819
+ optional: false
36820
+ }],
36821
+ "lockControl.lock": [{
36822
+ name: "deviceId",
36823
+ form: "single",
36824
+ optional: false
36825
+ }],
36826
+ "lockControl.open": [{
36827
+ name: "deviceId",
36828
+ form: "single",
36829
+ optional: false
36830
+ }],
36831
+ "lockControl.unlock": [{
36832
+ name: "deviceId",
36833
+ form: "single",
36834
+ optional: false
36835
+ }],
36836
+ "mediaPlayer.next": [{
36837
+ name: "deviceId",
36838
+ form: "single",
36839
+ optional: false
36840
+ }],
36841
+ "mediaPlayer.pause": [{
36842
+ name: "deviceId",
36843
+ form: "single",
36844
+ optional: false
36845
+ }],
36846
+ "mediaPlayer.play": [{
36847
+ name: "deviceId",
36848
+ form: "single",
36849
+ optional: false
36850
+ }],
36851
+ "mediaPlayer.playMedia": [{
36852
+ name: "deviceId",
36853
+ form: "single",
36854
+ optional: false
36855
+ }],
36856
+ "mediaPlayer.previous": [{
36857
+ name: "deviceId",
36858
+ form: "single",
36859
+ optional: false
36860
+ }],
36861
+ "mediaPlayer.seek": [{
36862
+ name: "deviceId",
36863
+ form: "single",
36864
+ optional: false
36865
+ }],
36866
+ "mediaPlayer.selectSource": [{
36867
+ name: "deviceId",
36868
+ form: "single",
36869
+ optional: false
36870
+ }],
36871
+ "mediaPlayer.setMute": [{
36872
+ name: "deviceId",
36873
+ form: "single",
36874
+ optional: false
36875
+ }],
36876
+ "mediaPlayer.setRepeat": [{
36877
+ name: "deviceId",
36878
+ form: "single",
36879
+ optional: false
36880
+ }],
36881
+ "mediaPlayer.setShuffle": [{
36882
+ name: "deviceId",
36883
+ form: "single",
36884
+ optional: false
36885
+ }],
36886
+ "mediaPlayer.setVolume": [{
36887
+ name: "deviceId",
36888
+ form: "single",
36889
+ optional: false
36890
+ }],
36891
+ "mediaPlayer.stop": [{
36892
+ name: "deviceId",
36893
+ form: "single",
36894
+ optional: false
36895
+ }],
36896
+ "motion.isDetected": [{
36897
+ name: "deviceId",
36898
+ form: "single",
36899
+ optional: false
36900
+ }],
36901
+ "motionDetection.analyze": [{
36902
+ name: "deviceId",
36903
+ form: "single",
36904
+ optional: false
36905
+ }],
36906
+ "motionDetection.removeCamera": [{
36907
+ name: "deviceId",
36908
+ form: "single",
36909
+ optional: false
36910
+ }],
36911
+ "motionTrigger.setMotionTrigger": [{
36912
+ name: "deviceId",
36913
+ form: "single",
36914
+ optional: false
36915
+ }],
36916
+ "motionZones.getOptions": [{
36917
+ name: "deviceId",
36918
+ form: "single",
36919
+ optional: false
36920
+ }],
36921
+ "motionZones.setZone": [{
36922
+ name: "deviceId",
36923
+ form: "single",
36924
+ optional: false
36925
+ }],
36926
+ "nativeObjectDetection.setEnabled": [{
36927
+ name: "deviceId",
36928
+ form: "single",
36929
+ optional: false
36930
+ }],
36931
+ "networkQuality.getDeviceStats": [{
36932
+ name: "deviceId",
36933
+ form: "single",
36934
+ optional: false
36935
+ }],
36936
+ "networkQuality.reportClientStats": [{
36937
+ name: "deviceId",
36938
+ form: "single",
36939
+ optional: false
36940
+ }],
36941
+ "notificationRules.setDeviceMuted": [{
36942
+ name: "deviceId",
36943
+ form: "single",
36944
+ optional: false
36945
+ }],
36946
+ "notifier.cancel": [{
36947
+ name: "deviceId",
36948
+ form: "single",
36949
+ optional: false
36950
+ }],
36951
+ "notifier.send": [{
36952
+ name: "deviceId",
36953
+ form: "single",
36954
+ optional: false
36955
+ }],
36956
+ "osd.setOverlay": [{
36957
+ name: "deviceId",
36958
+ form: "single",
36959
+ optional: false
36960
+ }],
36961
+ "osdManager.clearSlotBinding": [{
36962
+ name: "deviceId",
36963
+ form: "single",
36964
+ optional: false
36965
+ }],
36966
+ "osdManager.copyDeviceConfiguration": [{
36967
+ name: "sourceDeviceId",
36968
+ form: "single",
36969
+ optional: false
36970
+ }, {
36971
+ name: "targetDeviceId",
36972
+ form: "single",
36973
+ optional: false
36974
+ }],
36975
+ "osdManager.getDeviceOsd": [{
36976
+ name: "deviceId",
36977
+ form: "single",
36978
+ optional: false
36979
+ }],
36980
+ "osdManager.getSourceCatalog": [{
36981
+ name: "deviceId",
36982
+ form: "single",
36983
+ optional: false
36984
+ }],
36985
+ "osdManager.previewSlot": [{
36986
+ name: "deviceId",
36987
+ form: "single",
36988
+ optional: false
36989
+ }],
36990
+ "osdManager.renderDevice": [{
36991
+ name: "deviceId",
36992
+ form: "single",
36993
+ optional: false
36994
+ }],
36995
+ "osdManager.setSlotBinding": [{
36996
+ name: "deviceId",
36997
+ form: "single",
36998
+ optional: false
36999
+ }],
37000
+ "petFeeder.callPet": [{
37001
+ name: "deviceId",
37002
+ form: "single",
37003
+ optional: false
37004
+ }],
37005
+ "petFeeder.cancelFeed": [{
37006
+ name: "deviceId",
37007
+ form: "single",
37008
+ optional: false
37009
+ }],
37010
+ "petFeeder.feed": [{
37011
+ name: "deviceId",
37012
+ form: "single",
37013
+ optional: false
37014
+ }],
37015
+ "petFeeder.markFoodReplenished": [{
37016
+ name: "deviceId",
37017
+ form: "single",
37018
+ optional: false
37019
+ }],
37020
+ "petFeeder.playSound": [{
37021
+ name: "deviceId",
37022
+ form: "single",
37023
+ optional: false
37024
+ }],
37025
+ "petFeeder.resetDesiccant": [{
37026
+ name: "deviceId",
37027
+ form: "single",
37028
+ optional: false
37029
+ }],
37030
+ "petFeeder.setChildLock": [{
37031
+ name: "deviceId",
37032
+ form: "single",
37033
+ optional: false
37034
+ }],
37035
+ "petFeeder.setFeedSound": [{
37036
+ name: "deviceId",
37037
+ form: "single",
37038
+ optional: false
37039
+ }],
37040
+ "petFeeder.setIndicatorLight": [{
37041
+ name: "deviceId",
37042
+ form: "single",
37043
+ optional: false
37044
+ }],
37045
+ "petFeeder.setVolume": [{
37046
+ name: "deviceId",
37047
+ form: "single",
37048
+ optional: false
37049
+ }],
37050
+ "pipelineAnalytics.clearTracks": [{
37051
+ name: "deviceId",
37052
+ form: "single",
37053
+ optional: false
37054
+ }],
37055
+ "pipelineAnalytics.completeRetrainTrack": [{
37056
+ name: "deviceId",
37057
+ form: "single",
37058
+ optional: false
37059
+ }],
37060
+ "pipelineAnalytics.deleteDeviceEvents": [{
37061
+ name: "deviceId",
37062
+ form: "single",
37063
+ optional: false
37064
+ }],
37065
+ "pipelineAnalytics.deleteTracks": [{
37066
+ name: "deviceId",
37067
+ form: "single",
37068
+ optional: false
37069
+ }],
37070
+ "pipelineAnalytics.deselectRetrainFrame": [{
37071
+ name: "deviceId",
37072
+ form: "single",
37073
+ optional: false
37074
+ }],
37075
+ "pipelineAnalytics.getActiveTracks": [{
37076
+ name: "deviceId",
37077
+ form: "single",
37078
+ optional: false
37079
+ }],
37080
+ "pipelineAnalytics.getAudioEvents": [{
37081
+ name: "deviceId",
37082
+ form: "single",
37083
+ optional: false
37084
+ }],
37085
+ "pipelineAnalytics.getEventDensity": [{
37086
+ name: "deviceId",
37087
+ form: "single",
37088
+ optional: false
37089
+ }],
37090
+ "pipelineAnalytics.getEventMedia": [{
37091
+ name: "deviceId",
37092
+ form: "single",
37093
+ optional: false
37094
+ }],
37095
+ "pipelineAnalytics.getKeyEvents": [{
37096
+ name: "deviceId",
37097
+ form: "single",
37098
+ optional: false
37099
+ }],
37100
+ "pipelineAnalytics.getMotionEvents": [{
37101
+ name: "deviceId",
37102
+ form: "single",
37103
+ optional: false
37104
+ }],
37105
+ "pipelineAnalytics.getObjectEvents": [{
37106
+ name: "deviceId",
37107
+ form: "single",
37108
+ optional: false
37109
+ }],
37110
+ "pipelineAnalytics.getRetrainExportUrl": [{
37111
+ name: "deviceIds",
37112
+ form: "array",
37113
+ optional: true
37114
+ }],
37115
+ "pipelineAnalytics.getSensorEvents": [{
37116
+ name: "deviceId",
37117
+ form: "single",
37118
+ optional: false
37119
+ }],
37120
+ "pipelineAnalytics.getTrack": [{
37121
+ name: "deviceId",
37122
+ form: "single",
37123
+ optional: false
37124
+ }],
37125
+ "pipelineAnalytics.getTrackMedia": [{
37126
+ name: "deviceId",
37127
+ form: "single",
37128
+ optional: false
37129
+ }],
37130
+ "pipelineAnalytics.getTrainingExportSummary": [{
37131
+ name: "deviceIds",
37132
+ form: "array",
37133
+ optional: true
37134
+ }],
37135
+ "pipelineAnalytics.getTrainingExportUrl": [{
37136
+ name: "deviceIds",
37137
+ form: "array",
37138
+ optional: true
37139
+ }],
37140
+ "pipelineAnalytics.listEventKinds": [{
37141
+ name: "deviceId",
37142
+ form: "single",
37143
+ optional: false
37144
+ }],
37145
+ "pipelineAnalytics.listEventKindsBatch": [{
37146
+ name: "deviceIds",
37147
+ form: "array",
37148
+ optional: false
37149
+ }],
37150
+ "pipelineAnalytics.listOpsLog": [{
37151
+ name: "deviceId",
37152
+ form: "single",
37153
+ optional: true
37154
+ }],
37155
+ "pipelineAnalytics.listRecentTracks": [{
37156
+ name: "deviceIds",
37157
+ form: "array",
37158
+ optional: false
37159
+ }],
37160
+ "pipelineAnalytics.listRetrainStaging": [{
37161
+ name: "deviceIds",
37162
+ form: "array",
37163
+ optional: true
37164
+ }],
37165
+ "pipelineAnalytics.listTrackMedia": [{
37166
+ name: "deviceId",
37167
+ form: "single",
37168
+ optional: false
37169
+ }],
37170
+ "pipelineAnalytics.listTracks": [{
37171
+ name: "deviceId",
37172
+ form: "single",
37173
+ optional: false
37174
+ }],
37175
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
37176
+ name: "deviceId",
37177
+ form: "single",
37178
+ optional: false
37179
+ }],
37180
+ "pipelineAnalytics.pruneEventsBefore": [{
37181
+ name: "deviceId",
37182
+ form: "single",
37183
+ optional: false
37184
+ }],
37185
+ "pipelineAnalytics.pruneTracksBefore": [{
37186
+ name: "deviceId",
37187
+ form: "single",
37188
+ optional: false
37189
+ }],
37190
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
37191
+ name: "deviceId",
37192
+ form: "single",
37193
+ optional: true
37194
+ }],
37195
+ "pipelineAnalytics.restageRetrainTrack": [{
37196
+ name: "deviceId",
37197
+ form: "single",
37198
+ optional: false
37199
+ }],
37200
+ "pipelineAnalytics.saveRetrainAnnotations": [{
37201
+ name: "deviceId",
37202
+ form: "single",
37203
+ optional: false
37204
+ }],
37205
+ "pipelineAnalytics.searchObjectEvents": [{
37206
+ name: "deviceId",
37207
+ form: "single",
37208
+ optional: true
37209
+ }],
37210
+ "pipelineAnalytics.selectRetrainFrames": [{
37211
+ name: "deviceId",
37212
+ form: "single",
37213
+ optional: false
37214
+ }],
37215
+ "pipelineAnalytics.setTrackFlags": [{
37216
+ name: "deviceId",
37217
+ form: "single",
37218
+ optional: false
37219
+ }],
37220
+ "pipelineAnalytics.wipeAllAnalytics": [{
37221
+ name: "deviceId",
37222
+ form: "single",
37223
+ optional: false
37224
+ }],
37225
+ "pipelineExecutor.runPipeline": [{
37226
+ name: "deviceId",
37227
+ form: "single",
37228
+ optional: true
37229
+ }],
37230
+ "pipelineExecutor.runPipelineBatch": [{
37231
+ name: "deviceId",
37232
+ form: "single",
37233
+ optional: true
37234
+ }],
37235
+ "pipelineOrchestrator.assignAudio": [{
37236
+ name: "deviceId",
37237
+ form: "single",
37238
+ optional: false
37239
+ }],
37240
+ "pipelineOrchestrator.assignPipeline": [{
37241
+ name: "deviceId",
37242
+ form: "single",
37243
+ optional: false
37244
+ }],
37245
+ "pipelineOrchestrator.getAudioAssignment": [{
37246
+ name: "deviceId",
37247
+ form: "single",
37248
+ optional: false
37249
+ }],
37250
+ "pipelineOrchestrator.getCameraMetrics": [{
37251
+ name: "deviceId",
37252
+ form: "single",
37253
+ optional: false
37254
+ }],
37255
+ "pipelineOrchestrator.getCameraSettings": [{
37256
+ name: "deviceId",
37257
+ form: "single",
37258
+ optional: false
37259
+ }],
37260
+ "pipelineOrchestrator.getCameraStatus": [{
37261
+ name: "deviceId",
37262
+ form: "single",
37263
+ optional: false
37264
+ }],
37265
+ "pipelineOrchestrator.getCameraStatuses": [{
37266
+ name: "deviceIds",
37267
+ form: "array",
37268
+ optional: true
37269
+ }],
37270
+ "pipelineOrchestrator.getCameraStepOverrides": [{
37271
+ name: "deviceId",
37272
+ form: "single",
37273
+ optional: false
37274
+ }],
37275
+ "pipelineOrchestrator.getCameraSwitches": [{
37276
+ name: "deviceId",
37277
+ form: "single",
37278
+ optional: false
37279
+ }],
37280
+ "pipelineOrchestrator.getPipelineAssignment": [{
37281
+ name: "deviceId",
37282
+ form: "single",
37283
+ optional: false
37284
+ }],
37285
+ "pipelineOrchestrator.getPipelineDevicePin": [{
37286
+ name: "deviceId",
37287
+ form: "single",
37288
+ optional: false
37289
+ }],
37290
+ "pipelineOrchestrator.resolvePipeline": [{
37291
+ name: "deviceId",
37292
+ form: "single",
37293
+ optional: false
37294
+ }],
37295
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
37296
+ name: "deviceId",
37297
+ form: "single",
37298
+ optional: false
37299
+ }],
37300
+ "pipelineOrchestrator.setCameraStepOverride": [{
37301
+ name: "deviceId",
37302
+ form: "single",
37303
+ optional: false
37304
+ }],
37305
+ "pipelineOrchestrator.setCameraStepToggle": [{
37306
+ name: "deviceId",
37307
+ form: "single",
37308
+ optional: false
37309
+ }],
37310
+ "pipelineOrchestrator.setCameraSwitch": [{
37311
+ name: "deviceId",
37312
+ form: "single",
37313
+ optional: false
37314
+ }],
37315
+ "pipelineOrchestrator.setPipelineDevicePin": [{
37316
+ name: "deviceId",
37317
+ form: "single",
37318
+ optional: false
37319
+ }],
37320
+ "pipelineOrchestrator.unassignAudio": [{
37321
+ name: "deviceId",
37322
+ form: "single",
37323
+ optional: false
37324
+ }],
37325
+ "pipelineOrchestrator.unassignPipeline": [{
37326
+ name: "deviceId",
37327
+ form: "single",
37328
+ optional: false
37329
+ }],
37330
+ "pipelineRunner.attachCamera": [{
37331
+ name: "deviceId",
37332
+ form: "single",
37333
+ optional: false
37334
+ }],
37335
+ "pipelineRunner.detachCamera": [{
37336
+ name: "deviceId",
37337
+ form: "single",
37338
+ optional: false
37339
+ }],
37340
+ "pipelineRunner.getCameraMetrics": [{
37341
+ name: "deviceId",
37342
+ form: "single",
37343
+ optional: false
37344
+ }],
37345
+ "pipelineRunner.reportMotion": [{
37346
+ name: "deviceId",
37347
+ form: "single",
37348
+ optional: false
37349
+ }],
37350
+ "pipelineRunner.runDetailSubtree": [{
37351
+ name: "deviceId",
37352
+ form: "single",
37353
+ optional: false
37354
+ }],
37355
+ "pipelineRunner.runStatelessStep": [{
37356
+ name: "sourceDeviceId",
37357
+ form: "single",
37358
+ optional: false
37359
+ }],
37360
+ "plateGallery.getPlateByTrack": [{
37361
+ name: "deviceId",
37362
+ form: "single",
37363
+ optional: false
37364
+ }],
37365
+ "plateGallery.listPlates": [{
37366
+ name: "deviceId",
37367
+ form: "single",
37368
+ optional: true
37369
+ }],
37370
+ "privacyMask.getOptions": [{
37371
+ name: "deviceId",
37372
+ form: "single",
37373
+ optional: false
37374
+ }],
37375
+ "privacyMask.setAudioEnabled": [{
37376
+ name: "deviceId",
37377
+ form: "single",
37378
+ optional: false
37379
+ }],
37380
+ "privacyMask.setMask": [{
37381
+ name: "deviceId",
37382
+ form: "single",
37383
+ optional: false
37384
+ }],
37385
+ "ptz.continuousMove": [{
37386
+ name: "deviceId",
37387
+ form: "single",
37388
+ optional: false
37389
+ }],
37390
+ "ptz.deletePreset": [{
37391
+ name: "deviceId",
37392
+ form: "single",
37393
+ optional: false
37394
+ }],
37395
+ "ptz.getOptions": [{
37396
+ name: "deviceId",
37397
+ form: "single",
37398
+ optional: false
37399
+ }],
37400
+ "ptz.getPosition": [{
37401
+ name: "deviceId",
37402
+ form: "single",
37403
+ optional: false
37404
+ }],
37405
+ "ptz.getPresets": [{
37406
+ name: "deviceId",
37407
+ form: "single",
37408
+ optional: false
37409
+ }],
37410
+ "ptz.goHome": [{
37411
+ name: "deviceId",
37412
+ form: "single",
37413
+ optional: false
37414
+ }],
37415
+ "ptz.goToPreset": [{
37416
+ name: "deviceId",
37417
+ form: "single",
37418
+ optional: false
37419
+ }],
37420
+ "ptz.move": [{
37421
+ name: "deviceId",
37422
+ form: "single",
37423
+ optional: false
37424
+ }],
37425
+ "ptz.savePreset": [{
37426
+ name: "deviceId",
37427
+ form: "single",
37428
+ optional: false
37429
+ }],
37430
+ "ptz.setAutofocus": [{
37431
+ name: "deviceId",
37432
+ form: "single",
37433
+ optional: false
37434
+ }],
37435
+ "ptz.stop": [{
37436
+ name: "deviceId",
37437
+ form: "single",
37438
+ optional: false
37439
+ }],
37440
+ "ptzAutotrack.getSettings": [{
37441
+ name: "deviceId",
37442
+ form: "single",
37443
+ optional: false
37444
+ }],
37445
+ "ptzAutotrack.getStatus": [{
37446
+ name: "deviceId",
37447
+ form: "single",
37448
+ optional: false
37449
+ }],
37450
+ "ptzAutotrack.setEnabled": [{
37451
+ name: "deviceId",
37452
+ form: "single",
37453
+ optional: false
37454
+ }],
37455
+ "ptzAutotrack.setSettings": [{
37456
+ name: "deviceId",
37457
+ form: "single",
37458
+ optional: false
37459
+ }],
37460
+ "reboot.reboot": [{
37461
+ name: "deviceId",
37462
+ form: "single",
37463
+ optional: false
37464
+ }],
37465
+ "recording.deleteFootprint": [{
37466
+ name: "deviceId",
37467
+ form: "single",
37468
+ optional: false
37469
+ }],
37470
+ "recording.getAvailability": [{
37471
+ name: "deviceId",
37472
+ form: "single",
37473
+ optional: false
37474
+ }],
37475
+ "recording.getDaysWithRecordings": [{
37476
+ name: "deviceId",
37477
+ form: "single",
37478
+ optional: false
37479
+ }],
37480
+ "recording.getDeviceConfig": [{
37481
+ name: "deviceId",
37482
+ form: "single",
37483
+ optional: false
37484
+ }],
37485
+ "recording.getPlaybackManifest": [{
37486
+ name: "deviceId",
37487
+ form: "single",
37488
+ optional: false
37489
+ }],
37490
+ "recording.listOpsLog": [{
37491
+ name: "deviceId",
37492
+ form: "single",
37493
+ optional: true
37494
+ }],
37495
+ "recording.locateSegment": [{
37496
+ name: "deviceId",
37497
+ form: "single",
37498
+ optional: false
37499
+ }],
37500
+ "recording.pruneFootage": [{
37501
+ name: "deviceId",
37502
+ form: "single",
37503
+ optional: false
37504
+ }],
37505
+ "recording.readGopBytes": [{
37506
+ name: "deviceId",
37507
+ form: "single",
37508
+ optional: false
37509
+ }],
37510
+ "recording.readSegmentBytes": [{
37511
+ name: "deviceId",
37512
+ form: "single",
37513
+ optional: false
37514
+ }],
37515
+ "recording.relocateFootage": [{
37516
+ name: "deviceId",
37517
+ form: "single",
37518
+ optional: true
37519
+ }],
37520
+ "recording.renderClip": [{
37521
+ name: "deviceId",
37522
+ form: "single",
37523
+ optional: false
37524
+ }],
37525
+ "recording.renderGif": [{
37526
+ name: "deviceId",
37527
+ form: "single",
37528
+ optional: false
37529
+ }],
37530
+ "recording.rescanStorage": [{
37531
+ name: "deviceId",
37532
+ form: "single",
37533
+ optional: false
37534
+ }],
37535
+ "recording.setDeviceConfig": [{
37536
+ name: "deviceId",
37537
+ form: "single",
37538
+ optional: false
37539
+ }],
37540
+ "recording.startStorageMigrationMove": [{
37541
+ name: "deviceId",
37542
+ form: "single",
37543
+ optional: true
37544
+ }],
37545
+ "recordingExport.createExport": [{
37546
+ name: "deviceId",
37547
+ form: "single",
37548
+ optional: false
37549
+ }],
37550
+ "recordingExport.listExports": [{
37551
+ name: "deviceId",
37552
+ form: "single",
37553
+ optional: true
37554
+ }],
37555
+ "sceneMonitor.captureReference": [{
37556
+ name: "deviceId",
37557
+ form: "single",
37558
+ optional: false
37559
+ }],
37560
+ "sceneMonitor.createScene": [{
37561
+ name: "deviceId",
37562
+ form: "single",
37563
+ optional: false
37564
+ }],
37565
+ "sceneMonitor.deleteReference": [{
37566
+ name: "deviceId",
37567
+ form: "single",
37568
+ optional: false
37569
+ }],
37570
+ "sceneMonitor.deleteScene": [{
37571
+ name: "deviceId",
37572
+ form: "single",
37573
+ optional: false
37574
+ }],
37575
+ "sceneMonitor.listScenes": [{
37576
+ name: "deviceId",
37577
+ form: "single",
37578
+ optional: false
37579
+ }],
37580
+ "sceneMonitor.recheckNow": [{
37581
+ name: "deviceId",
37582
+ form: "single",
37583
+ optional: false
37584
+ }],
37585
+ "sceneMonitor.resetScene": [{
37586
+ name: "deviceId",
37587
+ form: "single",
37588
+ optional: false
37589
+ }],
37590
+ "sceneMonitor.updateScene": [{
37591
+ name: "deviceId",
37592
+ form: "single",
37593
+ optional: false
37594
+ }],
37595
+ "scriptRunner.run": [{
37596
+ name: "deviceId",
37597
+ form: "single",
37598
+ optional: false
37599
+ }],
37600
+ "scriptRunner.stop": [{
37601
+ name: "deviceId",
37602
+ form: "single",
37603
+ optional: false
37604
+ }],
37605
+ "snapshot.getDebugState": [{
37606
+ name: "deviceId",
37607
+ form: "single",
37608
+ optional: false
37609
+ }],
37610
+ "snapshot.getSnapshot": [{
37611
+ name: "deviceId",
37612
+ form: "single",
37613
+ optional: false
37614
+ }],
37615
+ "snapshot.getSnapshotLinks": [{
37616
+ name: "targets",
37617
+ form: "object-array",
37618
+ optional: false,
37619
+ itemField: "deviceId"
37620
+ }],
37621
+ "snapshot.getSnapshotOverview": [{
37622
+ name: "deviceIds",
37623
+ form: "array",
37624
+ optional: false
37625
+ }],
37626
+ "snapshot.invalidateCache": [{
37627
+ name: "deviceId",
37628
+ form: "single",
37629
+ optional: false
37630
+ }],
37631
+ "streamBroker.acquireEgressTranscode": [{
37632
+ name: "deviceId",
37633
+ form: "single",
37634
+ optional: false
37635
+ }],
37636
+ "streamBroker.assignProfile": [{
37637
+ name: "deviceId",
37638
+ form: "single",
37639
+ optional: false
37640
+ }],
37641
+ "streamBroker.getDeviceAudioMute": [{
37642
+ name: "deviceId",
37643
+ form: "single",
37644
+ optional: false
37645
+ }],
37646
+ "streamBroker.getStreamWithCodec": [{
37647
+ name: "deviceId",
37648
+ form: "single",
37649
+ optional: false
37650
+ }],
37651
+ "streamBroker.produceEventMedia": [{
37652
+ name: "deviceId",
37653
+ form: "single",
37654
+ optional: false
37655
+ }],
37656
+ "streamBroker.publishCameraStream": [{
37657
+ name: "deviceId",
37658
+ form: "single",
37659
+ optional: false
37660
+ }],
37661
+ "streamBroker.renderPreBufferClip": [{
37662
+ name: "deviceId",
37663
+ form: "single",
37664
+ optional: false
37665
+ }],
37666
+ "streamBroker.restartProfile": [{
37667
+ name: "deviceId",
37668
+ form: "single",
37669
+ optional: false
37670
+ }],
37671
+ "streamBroker.retractCameraStream": [{
37672
+ name: "deviceId",
37673
+ form: "single",
37674
+ optional: false
37675
+ }],
37676
+ "streamBroker.setDeviceAudioMute": [{
37677
+ name: "deviceId",
37678
+ form: "single",
37679
+ optional: false
37680
+ }],
37681
+ "streamBroker.unassignProfile": [{
37682
+ name: "deviceId",
37683
+ form: "single",
37684
+ optional: false
37685
+ }],
37686
+ "streamCatalog.getCatalog": [{
37687
+ name: "deviceId",
37688
+ form: "single",
37689
+ optional: false
37690
+ }],
37691
+ "streamParams.getConfigSchema": [{
37692
+ name: "deviceId",
37693
+ form: "single",
37694
+ optional: false
37695
+ }],
37696
+ "streamParams.getOptions": [{
37697
+ name: "deviceId",
37698
+ form: "single",
37699
+ optional: false
37700
+ }],
37701
+ "streamParams.setProfile": [{
37702
+ name: "deviceId",
37703
+ form: "single",
37704
+ optional: false
37705
+ }],
37706
+ "switch.setState": [{
37707
+ name: "deviceId",
37708
+ form: "single",
37709
+ optional: false
37710
+ }],
37711
+ "vacuumControl.locate": [{
37712
+ name: "deviceId",
37713
+ form: "single",
37714
+ optional: false
37715
+ }],
37716
+ "vacuumControl.pause": [{
37717
+ name: "deviceId",
37718
+ form: "single",
37719
+ optional: false
37720
+ }],
37721
+ "vacuumControl.returnToBase": [{
37722
+ name: "deviceId",
37723
+ form: "single",
37724
+ optional: false
37725
+ }],
37726
+ "vacuumControl.setFanSpeed": [{
37727
+ name: "deviceId",
37728
+ form: "single",
37729
+ optional: false
37730
+ }],
37731
+ "vacuumControl.start": [{
37732
+ name: "deviceId",
37733
+ form: "single",
37734
+ optional: false
37735
+ }],
37736
+ "vacuumControl.stop": [{
37737
+ name: "deviceId",
37738
+ form: "single",
37739
+ optional: false
37740
+ }],
37741
+ "valve.close": [{
37742
+ name: "deviceId",
37743
+ form: "single",
37744
+ optional: false
37745
+ }],
37746
+ "valve.open": [{
37747
+ name: "deviceId",
37748
+ form: "single",
37749
+ optional: false
37750
+ }],
37751
+ "valve.setPosition": [{
37752
+ name: "deviceId",
37753
+ form: "single",
37754
+ optional: false
37755
+ }],
37756
+ "valve.stop": [{
37757
+ name: "deviceId",
37758
+ form: "single",
37759
+ optional: false
37760
+ }],
37761
+ "videoclips.getClipPlayback": [{
37762
+ name: "deviceId",
37763
+ form: "single",
37764
+ optional: false
37765
+ }],
37766
+ "videoclips.listClips": [{
37767
+ name: "deviceId",
37768
+ form: "single",
37769
+ optional: false
37770
+ }],
37771
+ "waterHeater.setAway": [{
37772
+ name: "deviceId",
37773
+ form: "single",
37774
+ optional: false
37775
+ }],
37776
+ "waterHeater.setOperationMode": [{
37777
+ name: "deviceId",
37778
+ form: "single",
37779
+ optional: false
37780
+ }],
37781
+ "waterHeater.setTargetTemp": [{
37782
+ name: "deviceId",
37783
+ form: "single",
37784
+ optional: false
37785
+ }],
37786
+ "webrtcSession.addIceCandidate": [{
37787
+ name: "deviceId",
37788
+ form: "single",
37789
+ optional: false
37790
+ }],
37791
+ "webrtcSession.closeSession": [{
37792
+ name: "deviceId",
37793
+ form: "single",
37794
+ optional: false
37795
+ }],
37796
+ "webrtcSession.createSession": [{
37797
+ name: "deviceId",
37798
+ form: "single",
37799
+ optional: false
37800
+ }],
37801
+ "webrtcSession.getIceCandidates": [{
37802
+ name: "deviceId",
37803
+ form: "single",
37804
+ optional: false
37805
+ }],
37806
+ "webrtcSession.getSessionState": [{
37807
+ name: "deviceId",
37808
+ form: "single",
37809
+ optional: false
37810
+ }],
37811
+ "webrtcSession.handleAnswer": [{
37812
+ name: "deviceId",
37813
+ form: "single",
37814
+ optional: false
37815
+ }],
37816
+ "webrtcSession.handleOffer": [{
37817
+ name: "deviceId",
37818
+ form: "single",
37819
+ optional: false
37820
+ }],
37821
+ "webrtcSession.hasAdaptiveBitrate": [{
37822
+ name: "deviceId",
37823
+ form: "single",
37824
+ optional: false
37825
+ }],
37826
+ "webrtcSession.listStreams": [{
37827
+ name: "deviceId",
37828
+ form: "single",
37829
+ optional: false
37830
+ }],
37831
+ "zoneAnalytics.getCameraHistory": [{
37832
+ name: "deviceId",
37833
+ form: "single",
37834
+ optional: false
37835
+ }],
37836
+ "zoneAnalytics.getCurrentSnapshot": [{
37837
+ name: "deviceId",
37838
+ form: "single",
37839
+ optional: false
37840
+ }],
37841
+ "zoneAnalytics.getUnzonedHistory": [{
37842
+ name: "deviceId",
37843
+ form: "single",
37844
+ optional: false
37845
+ }],
37846
+ "zoneAnalytics.getZoneHistory": [{
37847
+ name: "deviceId",
37848
+ form: "single",
37849
+ optional: false
37850
+ }],
37851
+ "zoneRules.listRules": [{
37852
+ name: "deviceId",
37853
+ form: "single",
37854
+ optional: false
37855
+ }],
37856
+ "zoneRules.setRules": [{
37857
+ name: "deviceId",
37858
+ form: "single",
37859
+ optional: false
37860
+ }],
37861
+ "zones.addZone": [{
37862
+ name: "deviceId",
37863
+ form: "single",
37864
+ optional: false
37865
+ }],
37866
+ "zones.listZones": [{
37867
+ name: "deviceId",
37868
+ form: "single",
37869
+ optional: false
37870
+ }],
37871
+ "zones.removeZone": [{
37872
+ name: "deviceId",
37873
+ form: "single",
37874
+ optional: false
37875
+ }],
37876
+ "zones.updateZone": [{
37877
+ name: "deviceId",
37878
+ form: "single",
37879
+ optional: false
37880
+ }]
37881
+ });
35128
37882
  Object.freeze({
35129
37883
  "broker": "broker",
35130
37884
  "device-export": "device-export",