@camstack/addon-provider-tuya 0.2.17 → 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 +2862 -143
  2. package/dist/addon.mjs +2862 -143
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -818,7 +818,7 @@ async function discoverDevices(options = {}, binder = createDgramBinder()) {
818
818
  return [...byId.values()];
819
819
  }
820
820
  //#endregion
821
- //#region ../types/dist/event-category-Cv9dO26A.mjs
821
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
822
822
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
823
823
  EventCategory["SystemBoot"] = "system.boot";
824
824
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1025,6 +1025,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1025
1025
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
1026
1026
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
1027
1027
  /**
1028
+ * A node the orchestrator would otherwise place cameras on has NO usable
1029
+ * inference device: the operator enabled one or more accelerators there and
1030
+ * the live probe reports every one of them unavailable. Emitted once per
1031
+ * TRANSITION into that state (never per dispatch), and the node is dropped
1032
+ * from the placement candidate set for as long as it holds.
1033
+ *
1034
+ * This exists because the state was previously invisible: little-unraid
1035
+ * absorbed 283k inference errors in a day while still being handed cameras,
1036
+ * and nothing in the system said so.
1037
+ *
1038
+ * A node with no accelerators configured at all is NOT this — its devices
1039
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
1040
+ * serves it exactly as before.
1041
+ */
1042
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
1043
+ /**
1044
+ * A camera has an OPEN detection session and has produced no detection at
1045
+ * all for longer than the blind threshold — the camera is being decoded and
1046
+ * inferred and is returning nothing. Emitted once per transition into blind,
1047
+ * per camera.
1048
+ *
1049
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
1050
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
1051
+ * camera" produce byte-identical silence.
1052
+ */
1053
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
1054
+ /**
1028
1055
  * Per-camera pipeline config was mutated by the orchestrator
1029
1056
  * (3-level settings change via `setAgentAddonDefaults` /
1030
1057
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -11709,6 +11736,8 @@ var QueryFilterSchema = object({
11709
11736
  where: record(string(), unknown()).optional(),
11710
11737
  whereIn: record(string(), array(unknown())).optional(),
11711
11738
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11739
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
11740
+ whereNot: record(string(), unknown()).optional(),
11712
11741
  orderBy: object({
11713
11742
  field: string(),
11714
11743
  direction: _enum(["asc", "desc"])
@@ -11728,7 +11757,8 @@ var QueryFilterSchema = object({
11728
11757
  var MutationFilterSchema = object({
11729
11758
  where: record(string(), unknown()).optional(),
11730
11759
  whereIn: record(string(), array(unknown())).optional(),
11731
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11760
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11761
+ whereNot: record(string(), unknown()).optional()
11732
11762
  });
11733
11763
  /** A single stored record: `{ id, data }`. */
11734
11764
  var SettingsRecordSchema = object({
@@ -13264,6 +13294,17 @@ var LlmImageSchema = object({
13264
13294
  bytes: _instanceof(Uint8Array),
13265
13295
  mimeType: string()
13266
13296
  });
13297
+ /**
13298
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
13299
+ * the flag is what a consumer table flips, the count is what the operator tunes.
13300
+ * A retry doubles the wall time of a call, so the two gates that run inside a
13301
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
13302
+ */
13303
+ var LlmRetryPolicySchema = object({
13304
+ enabled: boolean().default(false),
13305
+ /** Total attempts INCLUDING the first. 1 = no retry. */
13306
+ maxAttempts: number().int().min(1).max(5).default(1)
13307
+ });
13267
13308
  var LlmGenerateBaseInputSchema = object({
13268
13309
  /** Collection routing (the notification-output posture). */
13269
13310
  addonId: string().optional(),
@@ -13278,7 +13319,28 @@ var LlmGenerateBaseInputSchema = object({
13278
13319
  jsonSchema: record(string(), unknown()).optional(),
13279
13320
  /** Per-call override of the profile default. */
13280
13321
  maxTokens: number().int().positive().optional(),
13281
- temperature: number().optional()
13322
+ temperature: number().optional(),
13323
+ /** Per-call override of the profile default (nucleus sampling). */
13324
+ topP: number().min(0).max(1).optional(),
13325
+ /** Per-call override of the profile default (top-k sampling). */
13326
+ topK: number().int().positive().optional(),
13327
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
13328
+ timeoutMs: number().int().positive().optional(),
13329
+ /** Per-call override; beats both the consumer table and the profile. */
13330
+ retry: LlmRetryPolicySchema.optional(),
13331
+ /**
13332
+ * Caller-minted id that makes this generation CANCELLABLE.
13333
+ *
13334
+ * Without it a caller that stops waiting cannot stop the work: the gates race
13335
+ * the call against 8 s and free their own slot when the timer wins, while the
13336
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
13337
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
13338
+ * not generations, and the real load is unbounded.
13339
+ *
13340
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
13341
+ * `llm.cancel({ requestId })` tears the socket down.
13342
+ */
13343
+ requestId: string().optional()
13282
13344
  });
13283
13345
  /**
13284
13346
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -13291,6 +13353,18 @@ var LlmGenerateBaseInputSchema = object({
13291
13353
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
13292
13354
  * watchdog — operator decision #3).
13293
13355
  */
13356
+ /**
13357
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
13358
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
13359
+ * REF rather than looked up at install time, so what the operator approved in
13360
+ * the preview is exactly what the node downloads.
13361
+ */
13362
+ var ManagedModelExtraFileSchema = object({
13363
+ url: string(),
13364
+ filename: string(),
13365
+ sizeBytes: number(),
13366
+ sha256: string().optional()
13367
+ });
13294
13368
  var ManagedModelRefSchema = discriminatedUnion("kind", [
13295
13369
  object({
13296
13370
  kind: literal("catalog"),
@@ -13299,7 +13373,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
13299
13373
  object({
13300
13374
  kind: literal("url"),
13301
13375
  url: string(),
13302
- sha256: string().optional()
13376
+ sha256: string().optional(),
13377
+ /** Picker/status label; the file basename when absent. */
13378
+ label: string().optional(),
13379
+ sizeBytes: number().optional(),
13380
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
13303
13381
  }),
13304
13382
  object({
13305
13383
  kind: literal("path"),
@@ -13317,13 +13395,82 @@ var ManagedRuntimeConfigSchema = object({
13317
13395
  gpuLayers: number().int().default(0),
13318
13396
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
13319
13397
  threads: number().int().optional(),
13320
- /** Concurrent slots. */
13398
+ /** Concurrent slots (`--parallel`). */
13321
13399
  parallel: number().int().default(1),
13400
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
13401
+ batchSize: number().int().positive().optional(),
13402
+ /** Physical batch / micro-batch (`-ub`). */
13403
+ ubatchSize: number().int().positive().optional(),
13404
+ /**
13405
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
13406
+ * is a no-op elsewhere, so it is offered rather than assumed.
13407
+ */
13408
+ flashAttention: boolean().default(false),
13409
+ /**
13410
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
13411
+ * inference. Costs the full model size in resident memory — which is exactly
13412
+ * what the RAM budget is counting.
13413
+ */
13414
+ mlock: boolean().default(false),
13415
+ /**
13416
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
13417
+ * start, but avoids the page-fault stalls a network or spinning-disk model
13418
+ * store produces on every first token.
13419
+ */
13420
+ noMmap: boolean().default(false),
13421
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
13422
+ * cheapest way to fit a longer context in the same RAM. */
13423
+ cacheTypeK: _enum([
13424
+ "f32",
13425
+ "f16",
13426
+ "q8_0",
13427
+ "q5_1",
13428
+ "q5_0",
13429
+ "q4_1",
13430
+ "q4_0"
13431
+ ]).optional(),
13432
+ cacheTypeV: _enum([
13433
+ "f32",
13434
+ "f16",
13435
+ "q8_0",
13436
+ "q5_1",
13437
+ "q5_0",
13438
+ "q4_1",
13439
+ "q4_0"
13440
+ ]).optional(),
13441
+ /**
13442
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
13443
+ * (which most vision chat templates need and some language-only models
13444
+ * dislike), `--cont-batching`, `--rope-scaling`, …
13445
+ *
13446
+ * It is NOT a second place to set the flags above. A token that collides
13447
+ * with a typed field is REJECTED at start, naming the field that owns it
13448
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
13449
+ * the "two switches that disagree" failure this repo has already shipped
13450
+ * twice (D62).
13451
+ */
13452
+ extraArgs: array(string()).default([]),
13322
13453
  /** Else lazy: first generate boots it. */
13323
13454
  autoStart: boolean().default(false),
13324
13455
  /** 0 = never; frees RAM after quiet periods. */
13325
13456
  idleStopMinutes: number().int().default(30)
13326
13457
  });
13458
+ /**
13459
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
13460
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
13461
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
13462
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
13463
+ */
13464
+ var LlmDownloadProgressSchema = object({
13465
+ phase: _enum(["downloading", "verifying"]),
13466
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
13467
+ file: string(),
13468
+ fileIndex: number().int(),
13469
+ fileCount: number().int(),
13470
+ /** Across the WHOLE install, not the current file. */
13471
+ downloadedBytes: number(),
13472
+ totalBytes: number().optional()
13473
+ });
13327
13474
  var LlmRuntimeStatusSchema = object({
13328
13475
  /** Status is ALWAYS node-qualified. */
13329
13476
  nodeId: string(),
@@ -13340,6 +13487,8 @@ var LlmRuntimeStatusSchema = object({
13340
13487
  modelPath: string().optional(),
13341
13488
  modelId: string().optional(),
13342
13489
  downloadProgress: number().min(0).max(1).optional(),
13490
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
13491
+ download: LlmDownloadProgressSchema.optional(),
13343
13492
  lastError: string().optional(),
13344
13493
  crashesInWindow: number(),
13345
13494
  /** Child RSS (sampled best-effort). */
@@ -13350,7 +13499,14 @@ var LlmNodeModelSchema = object({
13350
13499
  file: string(),
13351
13500
  sizeBytes: number(),
13352
13501
  catalogId: string().optional(),
13353
- installedAt: number().optional()
13502
+ installedAt: number().optional(),
13503
+ /**
13504
+ * Absolute path on the node. Present so a file that is on disk but matches
13505
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
13506
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
13507
+ * it the picker could list such a file and do nothing with it.
13508
+ */
13509
+ path: string().optional()
13354
13510
  });
13355
13511
  var LlmRuntimeDiskUsageSchema = object({
13356
13512
  nodeId: string(),
@@ -13406,10 +13562,47 @@ var LlmProfileSchema = object({
13406
13562
  baseUrl: string().optional(),
13407
13563
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
13408
13564
  apiKey: string().optional(),
13565
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
13566
+ * degraded to text — that shipped once and produced a confident answer to a
13567
+ * question about a picture nobody sent. */
13409
13568
  supportsVision: boolean(),
13410
13569
  temperature: number().min(0).max(2).optional(),
13570
+ /** Nucleus sampling. Every wire we speak has it. */
13571
+ topP: number().min(0).max(1).optional(),
13572
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
13573
+ * wire does, and the client drops it there (measured: the request body gets
13574
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
13575
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
13576
+ topK: number().int().positive().optional(),
13411
13577
  maxTokens: number().int().positive().optional(),
13578
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
13579
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
13580
+ * the model with, so it is the one field that changes a PROCESS. */
13581
+ contextLength: number().int().positive().optional(),
13582
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
13583
+ * two system prompts fighting is worse than either alone). */
13584
+ systemPrompt: string().optional(),
13585
+ /** Total generation bound — the only one a unary call has. */
13412
13586
  timeoutMs: number().int().positive().default(6e4),
13587
+ /** The TCP handshake only — "is the port even open". NOT the wait for
13588
+ * response headers: on the LM Studio / llama-server wire those are written
13589
+ * once the model has finished loading, so they belong to the bound below. */
13590
+ connectTimeoutMs: number().int().positive().default(1e4),
13591
+ /** Accepted, but no output yet — response headers included, because a cold
13592
+ * GPU load is exactly what happens before them. */
13593
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
13594
+ /** Output started then stopped. */
13595
+ idleTimeoutMs: number().int().positive().default(6e4),
13596
+ /** Profile-level default. The per-consumer table and a per-call override
13597
+ * both beat it — see `resolveRetryPolicy`. */
13598
+ retry: LlmRetryPolicySchema.default({
13599
+ enabled: false,
13600
+ maxAttempts: 1
13601
+ }),
13602
+ /** Whether this profile may use tools. The tool-call plumbing rides the
13603
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
13604
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
13605
+ toolsEnabled: boolean().default(false),
13413
13606
  extraHeaders: record(string(), string()).optional(),
13414
13607
  /** kind === 'managed-local' only (spec §4). */
13415
13608
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -13459,6 +13652,36 @@ var ManagedModelCatalogEntrySchema = object({
13459
13652
  /** Vision models: companion projector file. */
13460
13653
  mmprojUrl: string().optional()
13461
13654
  });
13655
+ /**
13656
+ * The outcome of turning one operator-typed Hugging Face reference into a
13657
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
13658
+ * I will not pick for you" is a normal answer the UI has to render, not an
13659
+ * exception.
13660
+ *
13661
+ * `candidates` is the whole reason the refusal is usable — every string in it
13662
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
13663
+ */
13664
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
13665
+ ok: literal(true),
13666
+ /** Ready to hand to `installModel` unchanged. */
13667
+ model: ManagedModelRefSchema,
13668
+ label: string(),
13669
+ repo: string(),
13670
+ quantization: string(),
13671
+ purpose: _enum(["text", "vision"]),
13672
+ totalBytes: number(),
13673
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
13674
+ * see that 0.9 GB of it is a projector they did not name. */
13675
+ extraFilenames: array(string())
13676
+ }), object({
13677
+ ok: literal(false),
13678
+ code: string(),
13679
+ message: string(),
13680
+ candidates: array(string()).optional(),
13681
+ /** Set when the refusal was only the ceiling: re-calling with
13682
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
13683
+ requiredBytes: number().optional()
13684
+ })]);
13462
13685
  var LlmRuntimeNodeSchema = object({
13463
13686
  nodeId: string(),
13464
13687
  reachable: boolean(),
@@ -13471,7 +13694,10 @@ var ProfileRefInputSchema = object({
13471
13694
  addonId: string(),
13472
13695
  profileId: string()
13473
13696
  });
13474
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13697
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
13698
+ addonId: string().optional(),
13699
+ requestId: string()
13700
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13475
13701
  kind: "mutation",
13476
13702
  auth: "admin"
13477
13703
  }), method(ProfileRefInputSchema, _void(), {
@@ -13492,6 +13718,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
13492
13718
  consumer: string().optional(),
13493
13719
  profileId: string().optional()
13494
13720
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
13721
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
13722
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
13723
+ ref: string(),
13724
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
13725
+ maxBytes: number().positive().optional()
13726
+ }), HfModelResolutionSchema, {
13727
+ kind: "mutation",
13728
+ auth: "admin"
13729
+ }), method(object({
13495
13730
  nodeId: string(),
13496
13731
  model: ManagedModelRefSchema
13497
13732
  }), _void(), {
@@ -15139,6 +15374,8 @@ var NcSystemEventKindSchema = _enum([
15139
15374
  "stream-offline",
15140
15375
  "node-online",
15141
15376
  "node-offline",
15377
+ "node-inference-unavailable",
15378
+ "detection-blind",
15142
15379
  "addon-update-available",
15143
15380
  "server-update-available",
15144
15381
  "alarm-triggered",
@@ -15200,7 +15437,16 @@ var NcScheduleSchema = object({
15200
15437
  });
15201
15438
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
15202
15439
  var NcPlateMatcherSchema = object({
15203
- values: array(string().min(1)).min(1),
15440
+ /**
15441
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
15442
+ * pipeline could read** — the plate half of "no selection = no narrowing",
15443
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
15444
+ * rather than merely seen. A subject carrying no plate still fails.
15445
+ *
15446
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
15447
+ * ever persisted an empty list, so widening it cannot change an existing rule.
15448
+ */
15449
+ values: array(string().min(1)),
15204
15450
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
15205
15451
  maxDistance: number().int().min(0).max(3).default(1)
15206
15452
  });
@@ -15234,28 +15480,36 @@ var NcOccupancyConditionSchema = object({
15234
15480
  /**
15235
15481
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
15236
15482
  *
15237
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
15238
- * reference notifier uses, so an operator moving between them re-uses what
15239
- * they already know): a rule matches when, over a sampling window of
15240
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
15241
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
15242
- *
15243
- * - `dbThreshold` its level is at or above this many dBFS (see
15244
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
15245
- * - `labels` the classifier put at least one of these labels on it.
15246
- *
15247
- * Both are OPTIONAL and independent, which is the point of the shape: a
15248
- * loudness rule ("something loud at 3am") needs no model to be right, and a
15249
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
15250
- * is given** a window in which every sample is trivially a hit would fire on
15251
- * silence, so the engine refuses such a condition rather than notifying on
15252
- * nothing (the schema cannot express "at least one of" without becoming a
15253
- * ZodEffects the cap path would have to special-case).
15254
- *
15255
- * `hitPercent` is over the samples the window actually HOLDS, and the window
15256
- * must be FULL before it can match a window that has been open for two
15257
- * seconds of its ten is 100% of nothing, and firing on it would make
15258
- * `samplingSeconds` decorative.
15483
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
15484
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
15485
+ * there is no second switch that can disagree with the first and every rule
15486
+ * authored before the decision migrates for free (`audioModeOf`):
15487
+ *
15488
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
15489
+ * classifier labels with one of them. No window, no percentage:
15490
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
15491
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
15492
+ * the analyzer's (`classificationMinScore`, per device) — a label only
15493
+ * reaches this condition if the classifier was already confident enough.
15494
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
15495
+ * the condition: at least `hitPercent`% of the samples over
15496
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
15497
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
15498
+ * must be FULL before it can match a window open for two of its ten
15499
+ * seconds is 100% of nothing.
15500
+ *
15501
+ * **Why label mode has no window.** It had one, and it never fired: the
15502
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
15503
+ * of them per episode, even through continuous crying. The measured maximum
15504
+ * `hitPercent` over the whole live history was 40 — under the shipped default
15505
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
15506
+ * the wrong question to ask of a sparse classifier.
15507
+ *
15508
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
15509
+ * and the rule would fire on silence. The schema cannot express "exactly one
15510
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
15511
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
15512
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
15259
15513
  *
15260
15514
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
15261
15515
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -15263,13 +15517,13 @@ var NcOccupancyConditionSchema = object({
15263
15517
  * an operator who typed `dog` mean the same thing.
15264
15518
  */
15265
15519
  var NcAudioConditionSchema = object({
15266
- /** Audio macro labels; absent = any sound (level-only rule). */
15520
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
15267
15521
  labels: array(string().min(1)).min(1).optional(),
15268
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
15522
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
15269
15523
  dbThreshold: number().min(-96).max(0).optional(),
15270
- /** Percentage of the window's samples that must be hits (1–100). */
15524
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
15271
15525
  hitPercent: number().int().min(1).max(100).default(60),
15272
- /** Length of the sampling window in seconds. */
15526
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
15273
15527
  samplingSeconds: number().int().min(1).max(300).default(10)
15274
15528
  });
15275
15529
  /**
@@ -15407,13 +15661,81 @@ var NcRuleActionsSchema = object({
15407
15661
  */
15408
15662
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
15409
15663
  });
15664
+ /**
15665
+ * "This rule applies only while `deviceId` is in one of `states`."
15666
+ *
15667
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
15668
+ * `on`/`off` for a switch — not a normalised set, because normalising would
15669
+ * make the condition lie about devices whose states have no equivalent.
15670
+ *
15671
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
15672
+ * condition that fired on "I could not read it" would be worse than no gate.
15673
+ */
15674
+ var NcDeviceStateConditionSchema = object({
15675
+ deviceId: number().int(),
15676
+ /** Any of these matches. */
15677
+ states: array(string().min(1)).min(1)
15678
+ });
15679
+ /**
15680
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
15681
+ *
15682
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
15683
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
15684
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
15685
+ * already has a trigger ("tell me about a person at the front door, but only
15686
+ * while the bin is still out"). That is why it composes with every delivery
15687
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
15688
+ * kind exist for it — see D159.
15689
+ *
15690
+ * ── Identity ───────────────────────────────────────────────────────────────
15691
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
15692
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
15693
+ * carried as a HINT for the editor and for the log line, never as part of the
15694
+ * lookup key: a rule whose hint drifted must still gate correctly.
15695
+ *
15696
+ * ── Which boolean ──────────────────────────────────────────────────────────
15697
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
15698
+ * already declares which boolean drives notification rules, and a second knob
15699
+ * that could disagree with it is exactly the D62 failure. Set it only to
15700
+ * override one rule against the scene's own default.
15701
+ *
15702
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
15703
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
15704
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
15705
+ * evidence, in either direction.
15706
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
15707
+ * The latch is a durable fact about the past ("it has diverged since I armed
15708
+ * it"), so a camera that has gone dark does not clear it — that is the whole
15709
+ * reason the operator asked for a latch.
15710
+ *
15711
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
15712
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
15713
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
15714
+ * said out loud in the log rather than dropped in silence.
15715
+ */
15716
+ var NcSceneConditionSchema = object({
15717
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
15718
+ sceneId: string().min(1),
15719
+ /** The camera the scene lives on. A hint for the editor and the log line. */
15720
+ deviceId: number().int().optional(),
15721
+ /** The state the scene must be in for the rule to fire. */
15722
+ requiredState: _enum(["matched", "diverged"]),
15723
+ /**
15724
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
15725
+ * scene's own `emit` field, which is the only place that decision belongs.
15726
+ */
15727
+ latched: boolean().optional()
15728
+ });
15410
15729
  var NcConditionsSchema = object({
15411
15730
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
15412
- deviceState: object({
15413
- deviceId: number().int(),
15414
- /** Any of these matches. */
15415
- states: array(string().min(1)).min(1)
15416
- }).optional(),
15731
+ deviceState: NcDeviceStateConditionSchema.optional(),
15732
+ /**
15733
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
15734
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
15735
+ * unlike `occupancy`/`audio` it discriminates nothing. See
15736
+ * {@link NcSceneCondition} and D159.
15737
+ */
15738
+ scene: NcSceneConditionSchema.optional(),
15417
15739
  /** Device scope — absent = all devices. */
15418
15740
  devices: array(number()).optional(),
15419
15741
  /** Detector class names (any overlap with the record's class set). */
@@ -15439,18 +15761,47 @@ var NcConditionsSchema = object({
15439
15761
  */
15440
15762
  labelEquals: array(string().min(1)).optional(),
15441
15763
  /**
15442
- * Identity matcher. P1 boundary: matched against the record's collapsed
15443
- * `label` (the identity display name propagated by the face pipeline) —
15444
- * identity-ID matching rides in P2 when identity ids reach the record.
15764
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
15765
+ * is about recognised people at all.
15766
+ *
15767
+ * Three states, and the empty one is the point:
15768
+ *
15769
+ * | value | meaning |
15770
+ * | --- | --- |
15771
+ * | absent | the rule does not care who it is; an unrecognised person matches |
15772
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
15773
+ * | a list | only these identities |
15774
+ *
15775
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
15776
+ * `devices` list is every device), applied one level down: the operator has
15777
+ * turned the face scope ON and narrowed it to nothing, which is every known
15778
+ * face. No second field states the same thing — a switch that can disagree
15779
+ * with the list under it is worse than no switch (D62).
15780
+ *
15781
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
15782
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
15783
+ * the operator fixed the spelling. The id reaches the record on
15784
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
15785
+ * `{{label}}` renders.
15786
+ *
15787
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
15788
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
15789
+ * for is left as it stands and reported, never dropped. The engine also
15790
+ * accepts a display-name hit as a compatibility leg, so a rule whose
15791
+ * migration could not resolve keeps matching exactly what it matched before.
15445
15792
  */
15446
15793
  identities: array(string().min(1)).optional(),
15447
- /** Fuzzy plate matcher against the record's `label` (plate text). */
15794
+ /**
15795
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
15796
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
15797
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
15798
+ */
15448
15799
  plates: NcPlateMatcherSchema.optional(),
15449
15800
  /**
15450
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
15451
- * Same P1 boundary: matched against the record's collapsed `label` (the
15452
- * identity display name). A record with NO label passes (nothing to
15453
- * exclude), unlike the include variant which fails on an absent label.
15801
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
15802
+ * the same id members and the same lazy name→id migration. A record with NO
15803
+ * identity passes (nothing to exclude), unlike the include variant which
15804
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
15454
15805
  */
15455
15806
  identitiesExclude: array(string().min(1)).optional(),
15456
15807
  /**
@@ -15842,7 +16193,80 @@ var NcRuleInputSchema = object({
15842
16193
  * a rule that predates the gate must keep delivering byte-for-byte as it
15843
16194
  * did, and absent is the only way to say that without a migration.
15844
16195
  */
15845
- confirm: NcConfirmSchema.optional()
16196
+ confirm: NcConfirmSchema.optional(),
16197
+ /**
16198
+ * WAIT for face/plate recognition before saying anything.
16199
+ *
16200
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
16201
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
16202
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
16203
+ * measured on this hub — and an `immediate` rule enqueues on the first object
16204
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
16205
+ * immediate path, and no amount of media re-resolution fixes a sentence.
16206
+ *
16207
+ * Only two honest answers exist, and this flag picks between them. It has
16208
+ * effect ONLY on a rule that declares a recognition scope
16209
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
16210
+ * other rule there is nothing to wait for and the flag is inert.
16211
+ *
16212
+ * | value | what happens |
16213
+ * | --- | --- |
16214
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
16215
+ * | 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) |
16216
+ *
16217
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16218
+ * on the addon cap path, and absent has to keep meaning exactly what every
16219
+ * rule authored before this field meant.
16220
+ *
16221
+ * The cost of `true` is stated here because the editor states it too: a rule
16222
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
16223
+ * tests every zone the track visited and a `crossing` condition can no longer
16224
+ * be satisfied, because a closed track carries no crossing.
16225
+ */
16226
+ waitForEnhancement: boolean().optional(),
16227
+ /**
16228
+ * GROUP a burst of subjects into ONE notification that grows.
16229
+ *
16230
+ * Seconds of quiet after the last matching subject before the burst is
16231
+ * considered over. While it is open, the first subject enqueues immediately —
16232
+ * **exactly as today, with no added latency** — and every real growth (a new
16233
+ * subject, or a name confirmed on one already in it) REPLACES that
16234
+ * notification with an updated one naming everybody. The push carries the
16235
+ * group's own coalescing tag, so the phone replaces rather than stacks.
16236
+ *
16237
+ * `0` / absent = off, and off is today's behaviour byte for byte.
16238
+ *
16239
+ * ### Why an idle cutoff and not a window
16240
+ *
16241
+ * The measured seven-person arrival on device 590 spans 110 s with every
16242
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
16243
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
16244
+ * 30 is Frigate's shipped value for the same decision.
16245
+ *
16246
+ * ### What it replaces
16247
+ *
16248
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
16249
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
16250
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
16251
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
16252
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
16253
+ * budget over GROUPS — which is what it always meant — and a growth is never
16254
+ * throttled by the window its own first member spent.
16255
+ *
16256
+ * ### Interaction with {@link waitForEnhancement}
16257
+ *
16258
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
16259
+ * TRACK CLOSE, so with both set the group is opened by the first member to
16260
+ * CLOSE — already carrying its name — and grows as later members close. That
16261
+ * is later, and complete. With grouping alone the group opens on the first
16262
+ * object event and picks up names as they are confirmed, through the growth
16263
+ * path. Neither combination fires twice for one subject.
16264
+ *
16265
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16266
+ * on the addon cap path, so absent must keep meaning what it meant before this
16267
+ * field existed.
16268
+ */
16269
+ groupIdleSec: number().int().min(0).max(600).optional()
15846
16270
  });
15847
16271
  /**
15848
16272
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -15949,6 +16373,7 @@ var NcConditionDescriptorSchema = object({
15949
16373
  "occupancy",
15950
16374
  "audio",
15951
16375
  "deviceState",
16376
+ "scene",
15952
16377
  "systemEvent"
15953
16378
  ]),
15954
16379
  operator: _enum([
@@ -16354,7 +16779,87 @@ var MethodAccessSchema = _enum([
16354
16779
  var AllowedProviderSchema = union([literal("*"), array(string())]);
16355
16780
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
16356
16781
  var CapScopeSchema = _enum(["device", "system"]);
16357
- var TokenScopeSchema = discriminatedUnion("type", [
16782
+ /**
16783
+ * DeviceSelector (scope model v3 — 2026-08-12).
16784
+ *
16785
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
16786
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
16787
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
16788
+ * AFTER the grant was minted — no re-grant, no re-login.
16789
+ *
16790
+ * - `all` — every device in the deployment. The broad viewer/operator
16791
+ * lever without a `category` grant (a `category` grant also covers device
16792
+ * caps that carry no deviceId; `all` is specifically the device set).
16793
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
16794
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
16795
+ * is NOT covered until the grant is edited.
16796
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
16797
+ * DYNAMIC. A device that changes type, or a new device of the type,
16798
+ * re-resolves on the next request.
16799
+ * - `locations` — every device whose operator-assigned `location` label is
16800
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
16801
+ * null/unset location matches NO `locations` selector.
16802
+ */
16803
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
16804
+ object({ kind: literal("all") }),
16805
+ object({
16806
+ kind: literal("ids"),
16807
+ ids: array(number().int()).min(1)
16808
+ }),
16809
+ object({
16810
+ kind: literal("types"),
16811
+ types: array(_enum(DeviceType)).min(1)
16812
+ }),
16813
+ object({
16814
+ kind: literal("locations"),
16815
+ locations: array(string().min(1)).min(1)
16816
+ })
16817
+ ]);
16818
+ var DeviceTokenScopeSchema = object({
16819
+ type: literal("device"),
16820
+ /** The device SET this grant covers — resolved against the live fleet. */
16821
+ selector: DeviceSelectorSchema,
16822
+ access: array(MethodAccessSchema).min(1),
16823
+ /**
16824
+ * Whether a grant on a PARENT device transparently covers its accessory
16825
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
16826
+ * Direction is parent → children ONLY.
16827
+ *
16828
+ * Absent → the matcher DERIVES it from the access flavour: `view`
16829
+ * inherits (a camera viewer sees the camera's accessories), `create` /
16830
+ * `delete` do NOT (actuating/removing a child is an explicit act the
16831
+ * operator must grant on the child, not inherit from the parent). Set it
16832
+ * explicitly to override that default per grant.
16833
+ */
16834
+ includeLinked: boolean().optional()
16835
+ });
16836
+ /**
16837
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
16838
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
16839
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
16840
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
16841
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
16842
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
16843
+ * migration cannot reach a JWT already in a client's hands; parse-time
16844
+ * migration covers both without a flag day. No cast — the raw object is read
16845
+ * through `Reflect.get` (its static type is `unknown`).
16846
+ */
16847
+ function migrateLegacyTokenScope(raw) {
16848
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
16849
+ if (Reflect.get(raw, "type") !== "device") return raw;
16850
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
16851
+ const targets = Reflect.get(raw, "targets");
16852
+ if (!Array.isArray(targets)) return raw;
16853
+ return {
16854
+ type: "device",
16855
+ selector: {
16856
+ kind: "ids",
16857
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
16858
+ },
16859
+ access: Reflect.get(raw, "access")
16860
+ };
16861
+ }
16862
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
16358
16863
  object({
16359
16864
  type: literal("category"),
16360
16865
  target: CapScopeSchema,
@@ -16370,18 +16875,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
16370
16875
  target: string(),
16371
16876
  access: array(MethodAccessSchema).min(1)
16372
16877
  }),
16373
- object({
16374
- type: literal("device"),
16375
- /**
16376
- * One or more deviceIds (serialised as strings for wire-format
16377
- * consistency with the rest of the union). Matcher accepts if
16378
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
16379
- * of one scope-per-device when granting access to a set of cameras.
16380
- */
16381
- targets: array(string()).min(1),
16382
- access: array(MethodAccessSchema).min(1)
16383
- })
16384
- ]);
16878
+ DeviceTokenScopeSchema
16879
+ ]));
16385
16880
  object({
16386
16881
  id: string(),
16387
16882
  username: string(),
@@ -16698,7 +17193,7 @@ var TrackEnvelopeSchema = object({
16698
17193
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16699
17194
  * keeps every scalar the list surfaces actually render (ids, class(es),
16700
17195
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16701
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
17196
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16702
17197
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16703
17198
  * `getTrack`. Mirrors the event-store `projection` convention
16704
17199
  * (`getObjectEvents` et al.).
@@ -16834,7 +17329,21 @@ union([literal(1), literal(2)]);
16834
17329
  var LabelAttributionSchema = object({
16835
17330
  stepId: string(),
16836
17331
  modelId: string().optional(),
16837
- decidedAt: number()
17332
+ decidedAt: number(),
17333
+ /**
17334
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
17335
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
17336
+ *
17337
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
17338
+ * notification rule authored on "Gianluca" stopped matching the moment the
17339
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
17340
+ * the thing that does not move, so it is what a rule matches on
17341
+ * (`NcConditions.identities`) and the text is what a human is shown.
17342
+ *
17343
+ * Absent when the label names no gallery row — a plate the OCR read but no
17344
+ * vehicle claims, a sub-class, a species, any tier-1 value.
17345
+ */
17346
+ identityId: string().optional()
16838
17347
  });
16839
17348
  /**
16840
17349
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -16971,6 +17480,28 @@ var TrackSchema = object({
16971
17480
  * `=== true` and render nothing otherwise, never infer "no face".
16972
17481
  */
16973
17482
  hasFace: boolean().optional(),
17483
+ /**
17484
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
17485
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
17486
+ * so the passage is tracked once and as a VEHICLE.
17487
+ *
17488
+ * It exists because the fold's record was dishonest. D34 and the code both
17489
+ * said "the person is not lost — it is reported so both entities stay on the
17490
+ * record"; in fact the pair went into a per-processor RAM field behind an
17491
+ * accessor nobody called, and every durable surface said `vehicle`, full
17492
+ * stop. This is the composition note that makes the row true.
17493
+ *
17494
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
17495
+ * person" is not an answer to "what is this" — both label tiers would refuse
17496
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
17497
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
17498
+ * and a `person` rule still does not fire for someone cycling past.
17499
+ *
17500
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
17501
+ * the column, and every hub that predates the field, omits it. Test
17502
+ * `=== true` and render nothing otherwise — never infer "no rider".
17503
+ */
17504
+ hasRider: boolean().optional(),
16974
17505
  ...TrackFlagFields,
16975
17506
  ...TrackRetrainFields
16976
17507
  });
@@ -17320,7 +17851,10 @@ var RecentTracksQueryInput = object({
17320
17851
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
17321
17852
  cursor: string().optional(),
17322
17853
  /** See {@link TrackProjectionSchema}. Default `full`. */
17323
- projection: TrackProjectionSchema.optional()
17854
+ projection: TrackProjectionSchema.optional(),
17855
+ /** Include stationary-promoted rows (parked objects). Default false: the
17856
+ * feed lists passages; parking records live on the stationary registry. */
17857
+ includeStationary: boolean().optional()
17324
17858
  });
17325
17859
  var RecentTracksPageSchema = object({
17326
17860
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -17538,7 +18072,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17538
18072
  zone: TrackZoneFilterSchema.optional(),
17539
18073
  /** See {@link TrackProjectionSchema}. Default `full` (backward
17540
18074
  * compatible — omitting the field keeps today's exact behaviour). */
17541
- projection: TrackProjectionSchema.optional()
18075
+ projection: TrackProjectionSchema.optional(),
18076
+ /** Include stationary-promoted rows (parked objects handed to the
18077
+ * stationary registry). Default false: the timeline lists passages,
18078
+ * not parking records (operator decision, 2026-08-15). */
18079
+ includeStationary: boolean().optional()
17542
18080
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17543
18081
  kind: "mutation",
17544
18082
  auth: "admin"
@@ -17702,11 +18240,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17702
18240
  auth: "admin"
17703
18241
  }), method(object({
17704
18242
  eventId: string(),
17705
- kind: MediaFileKindEnum.optional()
18243
+ kind: MediaFileKindEnum.optional(),
18244
+ deviceId: number()
18245
+ }), array(MediaFileSchema).readonly()), method(object({
18246
+ trackId: string(),
18247
+ kinds: array(MediaFileKindEnum).optional(),
18248
+ deviceId: number()
17706
18249
  }), array(MediaFileSchema).readonly()), method(object({
17707
18250
  trackId: string(),
17708
- kinds: array(MediaFileKindEnum).optional()
17709
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
18251
+ deviceId: number()
18252
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17710
18253
  kind: "mutation",
17711
18254
  auth: "admin"
17712
18255
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -18406,6 +18949,17 @@ var maxSessionHoldMsField = {
18406
18949
  default: 12e4,
18407
18950
  step: 5e3
18408
18951
  };
18952
+ /**
18953
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
18954
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
18955
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
18956
+ */
18957
+ var audioMotionWindowMsField = {
18958
+ min: 5e3,
18959
+ max: 6e5,
18960
+ default: 9e4,
18961
+ step: 5e3
18962
+ };
18409
18963
  var motionFpsField = {
18410
18964
  min: 1,
18411
18965
  max: 30,
@@ -18437,7 +18991,7 @@ var detectionFpsField = {
18437
18991
  var occupancyRecheckSecField = {
18438
18992
  min: 0,
18439
18993
  max: 300,
18440
- default: 30,
18994
+ default: 300,
18441
18995
  step: 5
18442
18996
  };
18443
18997
  var occupancyRecheckFramesField = {
@@ -18582,6 +19136,27 @@ var RunnerCameraConfigSchema = object({
18582
19136
  * resolved `CameraDetectionConfig`.
18583
19137
  */
18584
19138
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
19139
+ /**
19140
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
19141
+ * 'on-motion'` audio window, measured from the LAST motion event.
19142
+ *
19143
+ * This exists because the falling edge cannot be relied on. Camera-native
19144
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
19145
+ * its email-push SMTP path both emit `detected: true` and never the
19146
+ * counterpart); only the frame-diff analyzer emits falls. So on an
19147
+ * onboard-only camera a window that closed only on `detected: false` never
19148
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
19149
+ * battery camera, the one failure mode the mode exists to prevent.
19150
+ *
19151
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
19152
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
19153
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
19154
+ *
19155
+ * Not consumed by the runner: carried here so it shares the per-camera
19156
+ * device-settings surface with `motionCooldownMs`, exactly like
19157
+ * `maxSessionHoldMs`.
19158
+ */
19159
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
18585
19160
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
18586
19161
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
18587
19162
  motionStreamId: string(),
@@ -18677,7 +19252,7 @@ var RunnerCameraConfigSchema = object({
18677
19252
  */
18678
19253
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
18679
19254
  });
18680
- 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;
19255
+ 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;
18681
19256
  /**
18682
19257
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
18683
19258
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -19693,7 +20268,16 @@ targets: array(object({
19693
20268
  /** A sleeping battery camera: the frame is deliberately stale and will
19694
20269
  * NOT refresh in the background. A surface should say so rather than
19695
20270
  * present it as current. */
19696
- sleeping: boolean()
20271
+ sleeping: boolean(),
20272
+ /** Current device state rendered over the cached frame. State images
20273
+ * remain authoritative even when their photographic background is
20274
+ * old; null means the link must carry a current camera frame. */
20275
+ stateReason: _enum([
20276
+ "disabled",
20277
+ "sleeping",
20278
+ "unreachable",
20279
+ "waking"
20280
+ ]).nullable()
19697
20281
  })));
19698
20282
  /**
19699
20283
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -21347,6 +21931,25 @@ var BatteryStatusSchema = object({
21347
21931
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
21348
21932
  lastUpdated: number(),
21349
21933
  /**
21934
+ * Ms epoch of the last time the device PROVED it was reachable — a
21935
+ * completed firmware round-trip, an observed wake, or an inbound push
21936
+ * (firmware event, email). `0`/absent = never since this slice was born.
21937
+ *
21938
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21939
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21940
+ * for the radio, because a poll that confirms reachability is the same
21941
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21942
+ * single derivation every consumer must use; no surface computes its own.
21943
+ *
21944
+ * It is deliberately NOT a clock in the
21945
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21946
+ * observation itself, and it is the only thing a 30-hour silence is
21947
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21948
+ * Reolink provider) so a value that means "recently" cannot cost a
21949
+ * SQLite commit per round-trip.
21950
+ */
21951
+ lastContactAt: number().optional(),
21952
+ /**
21350
21953
  * True when the source is a BINARY low-battery indicator (HA
21351
21954
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
21352
21955
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23619,54 +24222,139 @@ var TalkAudioCodecSchema = _enum([
23619
24222
  "g711ulaw",
23620
24223
  "g711alaw"
23621
24224
  ]);
23622
- DeviceType.Camera, method(object({ deviceId: number() }), object({
23623
- sessionId: string(),
23624
- sdpOffer: string()
23625
- }), {
23626
- kind: "mutation",
23627
- auth: "admin"
23628
- }), method(object({
23629
- deviceId: number(),
23630
- sessionId: string(),
23631
- sdpAnswer: string()
23632
- }), _void(), {
23633
- kind: "mutation",
23634
- auth: "admin"
23635
- }), method(object({
23636
- deviceId: number(),
23637
- sessionId: string()
23638
- }), _void(), {
23639
- kind: "mutation",
23640
- auth: "admin"
23641
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23642
- kind: "mutation",
23643
- auth: "admin"
23644
- }), method(object({
23645
- deviceId: number(),
23646
- /** Audio bytes for ONE frame, base64-encoded so the payload
23647
- * survives tRPC JSON serialization. */
23648
- audioBase64: string(),
23649
- /** Wire codec of the payload. Omit to let the provider default
23650
- * to its native expected format (s16le @ provider-native rate,
23651
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23652
- codec: TalkAudioCodecSchema.optional(),
23653
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23654
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23655
- sampleRate: number().int().positive().optional(),
23656
- /** Channel count. Default 1. */
23657
- channels: number().int().positive().optional(),
23658
- /** Sequence number for ordering / dropping out-of-order frames. */
23659
- sequenceNumber: number().int()
23660
- }), object({ accepted: boolean() }), {
23661
- kind: "mutation",
23662
- auth: "admin"
23663
- }), method(object({ deviceId: number() }), _void(), {
23664
- kind: "mutation",
23665
- auth: "admin"
23666
- }), object({
23667
- deviceId: number(),
23668
- status: IntercomStatusSchema
23669
- });
24225
+ var intercomCapability = {
24226
+ name: "intercom",
24227
+ scope: "device",
24228
+ deviceNative: true,
24229
+ mode: "singleton",
24230
+ deviceTypes: [DeviceType.Camera],
24231
+ methods: {
24232
+ /**
24233
+ * Open a server-side WebRTC audio-only session. Returns an SDP
24234
+ * offer with a single sendonly audio m-line the client answers
24235
+ * (client → server direction). The server wakes battery cams
24236
+ * transparently before opening the upstream talk channel.
24237
+ */
24238
+ startSession: method(object({ deviceId: number() }), object({
24239
+ sessionId: string(),
24240
+ sdpOffer: string()
24241
+ }), {
24242
+ kind: "mutation",
24243
+ auth: "admin"
24244
+ }),
24245
+ handleAnswer: method(object({
24246
+ deviceId: number(),
24247
+ sessionId: string(),
24248
+ sdpAnswer: string()
24249
+ }), _void(), {
24250
+ kind: "mutation",
24251
+ auth: "admin"
24252
+ }),
24253
+ /** Close explicitly. Server also auto-closes on 30s idle. */
24254
+ stopSession: method(object({
24255
+ deviceId: number(),
24256
+ sessionId: string()
24257
+ }), _void(), {
24258
+ kind: "mutation",
24259
+ auth: "admin"
24260
+ }),
24261
+ /**
24262
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
24263
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
24264
+ * harnesses) that already have decoded PCM frames and just need a
24265
+ * direct path onto the camera's talk channel. Mutually exclusive
24266
+ * with `startSession` (an active WebRTC session must be stopped
24267
+ * before a raw-PCM session can be opened on the same device, and
24268
+ * vice versa).
24269
+ */
24270
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
24271
+ kind: "mutation",
24272
+ auth: "admin"
24273
+ }),
24274
+ /**
24275
+ * Push one chunk of talk-back audio onto the active talk session.
24276
+ * The cap is codec-agnostic: the caller declares (or omits) the
24277
+ * wire format via `codec`; the provider decides between passthrough
24278
+ * (when the wire codec matches the camera's native talk channel),
24279
+ * transcoding via the `audio-codec` cap, or rejecting the call.
24280
+ *
24281
+ * Callers do NOT need to know the camera's wire format or sample
24282
+ * rate — that information lives entirely inside the provider.
24283
+ *
24284
+ * Sequence numbers MUST be monotonic per talk session; older frames
24285
+ * arriving after newer ones are dropped to avoid smearing the
24286
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
24287
+ * predictor would corrupt with re-ordering).
24288
+ */
24289
+ pushTalkAudio: method(object({
24290
+ deviceId: number(),
24291
+ /** Audio bytes for ONE frame, base64-encoded so the payload
24292
+ * survives tRPC JSON serialization. */
24293
+ audioBase64: string(),
24294
+ /** Wire codec of the payload. Omit to let the provider default
24295
+ * to its native expected format (s16le @ provider-native rate,
24296
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
24297
+ codec: TalkAudioCodecSchema.optional(),
24298
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
24299
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
24300
+ sampleRate: number().int().positive().optional(),
24301
+ /** Channel count. Default 1. */
24302
+ channels: number().int().positive().optional(),
24303
+ /** Sequence number for ordering / dropping out-of-order frames. */
24304
+ sequenceNumber: number().int()
24305
+ }), object({ accepted: boolean() }), {
24306
+ kind: "mutation",
24307
+ auth: "admin"
24308
+ }),
24309
+ /** Close the raw-PCM talk session. Idempotent. */
24310
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
24311
+ kind: "mutation",
24312
+ auth: "admin"
24313
+ })
24314
+ },
24315
+ events: { onStatusChanged: { data: object({
24316
+ deviceId: number(),
24317
+ status: IntercomStatusSchema
24318
+ }) } },
24319
+ status: {
24320
+ schema: IntercomStatusSchema,
24321
+ kind: "command-driven"
24322
+ },
24323
+ /**
24324
+ * Runtime-state slice — mirrored by the kernel.
24325
+ *
24326
+ * The cap declared `status` and nothing else, so the only two sources an
24327
+ * exporter has for a value — the `device.state-changed` slice event and the
24328
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
24329
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
24330
+ * have been published and never received a value, which is the defect the
24331
+ * export's two classification tables exist to prevent (177 of them, once), so
24332
+ * `intercom` was excluded rather than exported.
24333
+ *
24334
+ * The shape is the status shape: there is exactly one truth about talk-back
24335
+ * and duplicating it into a second schema is how two halves of one capability
24336
+ * come to disagree. Providers write it through
24337
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
24338
+ * and close a session, and seed it at registration so the slice exists before
24339
+ * the first session rather than after it.
24340
+ *
24341
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
24342
+ * session handle, so a session torn down by a transport death that never
24343
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
24344
+ * session or the next restart. That is why the slice is `session` and not
24345
+ * `restored` — a restart must never restore "talking".
24346
+ */
24347
+ runtimeState: IntercomStatusSchema,
24348
+ /**
24349
+ * Runtime-state durability: **session** — `talking` describes a live audio
24350
+ * session, which by definition does not survive the process that held it.
24351
+ * Restoring it would publish a camera as talking to nobody.
24352
+ *
24353
+ * See `RuntimeStateDurability`. Enforced by
24354
+ * `scripts/check-runtime-state-durability.ts`.
24355
+ */
24356
+ durability: "session"
24357
+ };
23670
24358
  /**
23671
24359
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
23672
24360
  * with a mowing lifecycle plus a dock action.
@@ -26363,7 +27051,7 @@ method(object({
26363
27051
  toMs: number()
26364
27052
  }), RecordingAvailabilitySchema, {
26365
27053
  kind: "query",
26366
- auth: "admin"
27054
+ auth: "protected"
26367
27055
  }), method(object({
26368
27056
  deviceId: number(),
26369
27057
  fromMs: number(),
@@ -26371,14 +27059,14 @@ method(object({
26371
27059
  tzOffsetMinutes: number()
26372
27060
  }), RecordingDaysSchema, {
26373
27061
  kind: "query",
26374
- auth: "admin"
27062
+ auth: "protected"
26375
27063
  }), method(object({
26376
27064
  deviceId: number(),
26377
27065
  fromMs: number(),
26378
27066
  toMs: number()
26379
27067
  }), RecordingManifestSchema, {
26380
27068
  kind: "query",
26381
- auth: "admin"
27069
+ auth: "protected"
26382
27070
  }), method(object({}), RecordingStorageUsageSchema, {
26383
27071
  kind: "query",
26384
27072
  auth: "admin"
@@ -26668,14 +27356,77 @@ method(object({
26668
27356
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
26669
27357
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
26670
27358
  *
26671
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
26672
- * derives the device-detail contribution; the provider carries NO hand-written
26673
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
26674
- * every hysteresis flip / availability change; consumers never poll.
26675
- */
26676
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
26677
- * be added without a wire break (matching falls back to any-condition refs). */
27359
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
27360
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
27361
+ * for the thing: a scene is a standing question about the property ("is the bin
27362
+ * still out"), and the operator's question is "which of my scenes have tripped",
27363
+ * across every camera at once — not "what does camera 617 think". Buried one
27364
+ * camera deep it also could not be found. The surface is now a top-level admin
27365
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
27366
+ * picks the camera inside the create flow, the same shape Events and Faces have.
27367
+ *
27368
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
27369
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
27370
+ * directions, so a registration nobody declares fails exactly as loudly as a
27371
+ * declaration nobody registers. The editor is imported directly by the page.
27372
+ *
27373
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
27374
+ * availability change; consumers never poll.
27375
+ */
27376
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
27377
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
27378
+ * Open by design so more can be added without a wire break.
27379
+ *
27380
+ * Matching does NOT fall back across conditions: cross-condition cosines are
27381
+ * not comparable, so "I have never seen this scene in this light" is reported
27382
+ * as `unknown`, never guessed. A day reference scored against an IR frame
27383
+ * collapses the cosine and would latch a false alarm every single night. */
26678
27384
  var SceneConditionSchema = string();
27385
+ /**
27386
+ * What a scene does when the CURRENT light has no reference of its own.
27387
+ *
27388
+ * The lighting variants are not equally likely to exist. Almost every operator
27389
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
27390
+ * scene that is only ever going to be asked about a daytime question ("is the
27391
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
27392
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
27393
+ * working without it rather than degrading into a permanent complaint.
27394
+ *
27395
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
27396
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
27397
+ * last covered light left it at, the latch is untouched, and the hysteresis
27398
+ * run is neither spent nor cleared. The scene resumes by itself at first
27399
+ * light. This is the only behaviour under which "I never captured IR" is a
27400
+ * configuration choice instead of a nightly fault.
27401
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
27402
+ * for cameras whose IR frame is close enough to daylight (a floodlit
27403
+ * driveway, an always-white-light doorbell), and wrong for everything else:
27404
+ * cross-condition cosines are not comparable, so a day reference against a
27405
+ * true IR frame collapses and the scene reports a theft at 21:40.
27406
+ *
27407
+ * Never applies when the scene has NO comparable reference at all — that is
27408
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
27409
+ * there would hide a scene the operator never finished setting up.
27410
+ */
27411
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
27412
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
27413
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
27414
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
27415
+ * and never counts toward hysteresis in either direction. */
27416
+ var SceneVerdictSchema = _enum([
27417
+ "matched",
27418
+ "diverged",
27419
+ "unknown"
27420
+ ]);
27421
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
27422
+ * silence that reads as "nothing has happened". */
27423
+ var SceneUnavailableSchema = _enum([
27424
+ "no-reference-for-condition",
27425
+ "view-shifted",
27426
+ "no-vision-profile",
27427
+ "encoder-model-changed",
27428
+ "no-snapshot"
27429
+ ]);
26679
27430
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
26680
27431
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
26681
27432
  var SceneReferenceSchema = object({
@@ -26683,7 +27434,14 @@ var SceneReferenceSchema = object({
26683
27434
  modelId: string(),
26684
27435
  condition: SceneConditionSchema,
26685
27436
  capturedAt: number(),
26686
- thumbnailMediaId: string().optional()
27437
+ thumbnailMediaId: string().optional(),
27438
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
27439
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
27440
+ * normalized rect frame a different piece of world, and the scene would
27441
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
27442
+ * when hysteresis is about to flip — one extra encode per candidate
27443
+ * transition, not per poll. */
27444
+ anchorEmbedding: array(number()).optional()
26687
27445
  });
26688
27446
  var SceneMonitorStateSchema = object({
26689
27447
  id: string(),
@@ -26705,6 +27463,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26705
27463
  profileId: string().optional(),
26706
27464
  hysteresisCount: number().int().positive()
26707
27465
  })]);
27466
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
27467
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
27468
+ * out in silence rather than reporting a fault every night. */
27469
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
27470
+ /**
27471
+ * Vision-model adjudication of a candidate flip. Field names deliberately
27472
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
27473
+ *
27474
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
27475
+ * fail-open: a notification suppressed is the worse error there, but a vision
27476
+ * model that timed out has not told us the bin is gone, and a latch is a
27477
+ * stateful claim that costs the operator a trip to reset.
27478
+ */
27479
+ var SceneConfirmSchema = object({
27480
+ enabled: boolean().default(false),
27481
+ prompt: string().min(1).max(1e3),
27482
+ profileId: string().optional(),
27483
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
27484
+ maxImagePx: number().int().min(64).max(2048).default(448),
27485
+ /** What a timeout / unavailable model means for the PENDING flip. */
27486
+ onTimeout: _enum(["flip", "hold"]).default("hold")
27487
+ });
26708
27488
  var SceneMonitorSchema = object({
26709
27489
  id: string(),
26710
27490
  label: string(),
@@ -26723,7 +27503,56 @@ var SceneMonitorSchema = object({
26723
27503
  lastConfidence: number().nullable(),
26724
27504
  currentCondition: SceneConditionSchema.nullable(),
26725
27505
  availability: _enum(["ok", "unavailable"]),
26726
- unavailableReason: string().nullable()
27506
+ unavailableReason: string().nullable(),
27507
+ /** Which state is "the initial screen". `null` until the first capture. */
27508
+ baselineStateId: string().nullable(),
27509
+ /** Which boolean drives notification rules and any export. */
27510
+ emit: _enum(["latched", "live"]).default("latched"),
27511
+ /** Live: does the region match the baseline RIGHT NOW. */
27512
+ verdict: SceneVerdictSchema,
27513
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
27514
+ latched: boolean(),
27515
+ /** Last reset (or creation). */
27516
+ armedAt: number(),
27517
+ divergedAt: number().nullable(),
27518
+ restoredAt: number().nullable(),
27519
+ /** A check is only COUNTED when the device has been quiet this long. Motion
27520
+ * during the window DISCARDS the observation — a car pulling up in front of
27521
+ * the bin must not be able to spend hysteresis credit. */
27522
+ quietSeconds: number().int().min(0).max(3600).default(60),
27523
+ /** An observation only advances the pending count when it is at least this
27524
+ * far from the previously counted one, so N agreeing checks span real time
27525
+ * rather than N adjacent polls inside one occlusion. */
27526
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
27527
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
27528
+ confirm: SceneConfirmSchema.optional(),
27529
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
27530
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
27531
+ /** Clear the latch on its own when the scene matches again? Default false —
27532
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
27533
+ * automation can react to the bin coming back without the operator's own
27534
+ * alarm silently clearing itself. */
27535
+ autoRestore: boolean().default(false),
27536
+ /** What to do when the current light has no reference of its own. See
27537
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
27538
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
27539
+ /**
27540
+ * The light whose checks are currently being SAT OUT under
27541
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
27542
+ *
27543
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
27544
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
27545
+ * nothing captured in this light"* in the same calm voice as the coverage
27546
+ * line, because the alternative is a scene that silently stops answering
27547
+ * after sunset with nothing anywhere saying why. A skipped check must never
27548
+ * read as a broken one.
27549
+ */
27550
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
27551
+ /** Named cause when `verdict === 'unknown'`. */
27552
+ unavailable: SceneUnavailableSchema.nullable(),
27553
+ /** Conditions that have at least one comparable reference — the coverage line
27554
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
27555
+ coveredConditions: array(SceneConditionSchema)
26727
27556
  });
26728
27557
  var SceneMonitorStatusSchema = object({
26729
27558
  monitors: array(SceneMonitorSchema),
@@ -26736,12 +27565,6 @@ var sceneMonitorCapability = {
26736
27565
  kind: "wrapper",
26737
27566
  defaultActive: true,
26738
27567
  deviceTypes: [DeviceType.Camera],
26739
- deviceConfig: { ui: {
26740
- kind: "widget",
26741
- widgetId: "host/scene-monitor-editor",
26742
- tab: "scenes",
26743
- label: "Scenes"
26744
- } },
26745
27568
  methods: {
26746
27569
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26747
27570
  createScene: method(object({
@@ -26772,7 +27595,15 @@ var sceneMonitorCapability = {
26772
27595
  "both"
26773
27596
  ]).optional(),
26774
27597
  checkIntervalSec: number().optional(),
26775
- check: SceneCheckSchema.optional()
27598
+ check: SceneCheckSchema.optional(),
27599
+ emit: _enum(["latched", "live"]).optional(),
27600
+ quietSeconds: number().int().min(0).max(3600).optional(),
27601
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
27602
+ anchorThreshold: number().min(0).max(1).optional(),
27603
+ autoRestore: boolean().optional(),
27604
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
27605
+ /** `null` clears the vision-model adjudicator. */
27606
+ confirm: SceneConfirmSchema.nullable().optional()
26776
27607
  })
26777
27608
  }), _void(), {
26778
27609
  kind: "mutation",
@@ -26813,6 +27644,26 @@ var sceneMonitorCapability = {
26813
27644
  }), _void(), {
26814
27645
  kind: "mutation",
26815
27646
  auth: "admin"
27647
+ }),
27648
+ /**
27649
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
27650
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
27651
+ * "reset" in the operator's head means *this is the new normal*, and
27652
+ * re-capture is what makes the feature self-healing against slow drift
27653
+ * instead of failing silently weeks later.
27654
+ *
27655
+ * Reachable from three surfaces on this one mutation: the scene card, a
27656
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27657
+ * no new Notification-Center code at all), and tRPC for scripts.
27658
+ */
27659
+ resetScene: method(object({
27660
+ deviceId: number(),
27661
+ monitorId: string(),
27662
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27663
+ recapture: boolean().optional()
27664
+ }), _void(), {
27665
+ kind: "mutation",
27666
+ auth: "admin"
26816
27667
  })
26817
27668
  },
26818
27669
  status: {
@@ -27049,7 +27900,70 @@ var CamStreamDescriptorSchema = object({
27049
27900
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
27050
27901
  metadata: record(string(), unknown()).optional()
27051
27902
  });
27052
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
27903
+ /**
27904
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
27905
+ * of the removed `publishCameraStream` push: a camera provider returns the full
27906
+ * set of stream descriptors it can offer for the device, synchronously, so the
27907
+ * broker can reconcile its registry against the authoritative provider state.
27908
+ */
27909
+ /**
27910
+ * The catalog as a DURABLE fact rather than a live answer.
27911
+ *
27912
+ * A battery camera's descriptors are profile-stable — they change when the
27913
+ * operator rewrites an encoder profile, not minute to minute — but building
27914
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27915
+ * provider is allowed to build them exactly once per profile and must serve
27916
+ * every later pull from a cache.
27917
+ *
27918
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27919
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27920
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27921
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27922
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27923
+ * which on a battery cam is most of the day. The camera was fine. The stream
27924
+ * was unreachable because the process had forgotten what the camera offers.
27925
+ *
27926
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27927
+ * declared collection, with the same `restored` durability `battery` uses for
27928
+ * the same reason: the last known value is the only value there is while the
27929
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27930
+ * is the DIAL that wakes a camera, never the catalog (D173).
27931
+ */
27932
+ var StreamCatalogStateSchema = object({
27933
+ /** The descriptors as last built from a real camera response. Never a guess:
27934
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27935
+ * one the camera itself once produced. */
27936
+ descriptors: array(CamStreamDescriptorSchema),
27937
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27938
+ * path decide whether the camera's own awake window is worth spending on a
27939
+ * re-read. */
27940
+ lastFetchedAt: number()
27941
+ });
27942
+ var streamCatalogCapability = {
27943
+ name: "stream-catalog",
27944
+ scope: "device",
27945
+ deviceNative: true,
27946
+ mode: "singleton",
27947
+ deviceTypes: [DeviceType.Camera],
27948
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27949
+ runtimeState: StreamCatalogStateSchema,
27950
+ /**
27951
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27952
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27953
+ * camera that cannot be watched at all until it happens to wake.
27954
+ *
27955
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27956
+ * build, and a build only runs when there is no cached copy (or the copy is
27957
+ * a day old and the camera is awake anyway).
27958
+ *
27959
+ * See `RuntimeStateDurability`. Enforced by
27960
+ * `scripts/check-runtime-state-durability.ts`.
27961
+ */
27962
+ durability: "restored",
27963
+ /** Clock field: written, but excluded from the compare that decides whether
27964
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27965
+ volatileStateFields: ["lastFetchedAt"]
27966
+ };
27053
27967
  /** One of the camera's stream profiles. */
27054
27968
  var StreamProfileSchema = _enum([
27055
27969
  "main",
@@ -27303,12 +28217,64 @@ var NetworkAddressSchema = object({
27303
28217
  family: string(),
27304
28218
  internal: boolean()
27305
28219
  });
28220
+ /**
28221
+ * Provenance of the site coordinates, and the whole reason this is not just two
28222
+ * numbers.
28223
+ *
28224
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
28225
+ * nothing overwrites it.
28226
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
28227
+ * default that is right to a few kilometres beats the coarse UTC clock split
28228
+ * the sun-times consumers otherwise fall back to.
28229
+ *
28230
+ * The UI shows which one it is. An operator who cannot tell a guess from their
28231
+ * own input will eventually trust the guess.
28232
+ */
28233
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
28234
+ /**
28235
+ * The read shape: the location plus the honest state of the one-shot derivation.
28236
+ *
28237
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
28238
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
28239
+ * failed; the hub will NOT try again on its own — the fallback is declared
28240
+ * (consumers degrade to their own last resort) and the operator either types the
28241
+ * coordinates or presses detect.
28242
+ */
28243
+ var SiteLocationStatusSchema = object({
28244
+ location: object({
28245
+ /** WGS84 decimal degrees. */
28246
+ latitude: number().min(-90).max(90),
28247
+ longitude: number().min(-180).max(180),
28248
+ source: SiteLocationSourceSchema,
28249
+ /** Epoch ms the value was last written. */
28250
+ updatedAt: number(),
28251
+ /**
28252
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
28253
+ * only — never parsed, never matched on. Absent for an operator-typed value.
28254
+ */
28255
+ label: string().optional()
28256
+ }).nullable(),
28257
+ derivationAttemptedAt: number().nullable(),
28258
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
28259
+ derivationError: string().nullable()
28260
+ });
28261
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
28262
+ var SetSiteLocationInputSchema = object({
28263
+ latitude: number().min(-90).max(90),
28264
+ longitude: number().min(-180).max(180)
28265
+ }).nullable();
27306
28266
  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(), {
27307
28267
  kind: "mutation",
27308
28268
  auth: "admin"
27309
28269
  }), method(_void(), _void(), {
27310
28270
  kind: "mutation",
27311
28271
  auth: "admin"
28272
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
28273
+ kind: "mutation",
28274
+ auth: "admin"
28275
+ }), method(_void(), SiteLocationStatusSchema, {
28276
+ kind: "mutation",
28277
+ auth: "admin"
27312
28278
  });
27313
28279
  /**
27314
28280
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -28628,6 +29594,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28628
29594
  humiditySensor: humiditySensorCapability,
28629
29595
  image: imageCapability,
28630
29596
  imageSettings: imageSettingsCapability,
29597
+ intercom: intercomCapability,
28631
29598
  lawnMowerControl: lawnMowerControlCapability,
28632
29599
  lockControl: lockControlCapability,
28633
29600
  mediaPlayer: mediaPlayerCapability,
@@ -28646,6 +29613,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28646
29613
  sceneMonitor: sceneMonitorCapability,
28647
29614
  scriptRunner: scriptRunnerCapability,
28648
29615
  smoke: smokeCapability,
29616
+ streamCatalog: streamCatalogCapability,
28649
29617
  streamParams: streamParamsCapability,
28650
29618
  switch: switchCapability,
28651
29619
  tamper: tamperCapability,
@@ -29299,6 +30267,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29299
30267
  labels: ["probe not implemented"]
29300
30268
  };
29301
30269
  }
30270
+ /**
30271
+ * Top-level devices restored at once in {@link onRestoreDevices}.
30272
+ *
30273
+ * Four covers the fleets this ships to without turning a boot into a burst a
30274
+ * camera NVR answers with a refusal. A provider whose upstream is a single
30275
+ * session with a serial command channel (a Baichuan hub, an NVR that
30276
+ * serialises ISAPI) should lower it; nothing needs to raise it.
30277
+ */
30278
+ restoreConcurrency = 4;
29302
30279
  async restoreDevices(savedDevices) {
29303
30280
  await this.onRestoreDevices(savedDevices);
29304
30281
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -29330,15 +30307,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29330
30307
  */
29331
30308
  async onRestoreDevices(savedDevices) {
29332
30309
  const restored = /* @__PURE__ */ new Set();
29333
- for (const saved of savedDevices) {
29334
- if (saved.parentDeviceId !== null) continue;
30310
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
30311
+ const restoreOne = async (saved) => {
29335
30312
  const Class = this.deviceClasses[saved.type];
29336
30313
  if (!Class) {
29337
30314
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
29338
30315
  tags: { stableId: saved.stableId },
29339
30316
  meta: { type: saved.type }
29340
30317
  });
29341
- continue;
30318
+ return;
29342
30319
  }
29343
30320
  try {
29344
30321
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -29352,7 +30329,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29352
30329
  }
29353
30330
  });
29354
30331
  }
29355
- }
30332
+ };
30333
+ let nextTopLevel = 0;
30334
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
30335
+ for (;;) {
30336
+ const saved = topLevel[nextTopLevel++];
30337
+ if (saved === void 0) return;
30338
+ await restoreOne(saved);
30339
+ }
30340
+ }));
29356
30341
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
29357
30342
  for (const saved of childRows) {
29358
30343
  const Class = this.deviceClasses[saved.type];
@@ -31443,6 +32428,12 @@ Object.freeze({
31443
32428
  addonId: null,
31444
32429
  access: "create"
31445
32430
  },
32431
+ "llm.cancel": {
32432
+ capName: "llm",
32433
+ capScope: "system",
32434
+ addonId: null,
32435
+ access: "create"
32436
+ },
31446
32437
  "llm.deleteModel": {
31447
32438
  capName: "llm",
31448
32439
  capScope: "system",
@@ -31527,6 +32518,12 @@ Object.freeze({
31527
32518
  addonId: null,
31528
32519
  access: "view"
31529
32520
  },
32521
+ "llm.resolveModelRef": {
32522
+ capName: "llm",
32523
+ capScope: "system",
32524
+ addonId: null,
32525
+ access: "create"
32526
+ },
31530
32527
  "llm.setDefault": {
31531
32528
  capName: "llm",
31532
32529
  capScope: "system",
@@ -33693,6 +34690,12 @@ Object.freeze({
33693
34690
  addonId: null,
33694
34691
  access: "create"
33695
34692
  },
34693
+ "sceneMonitor.resetScene": {
34694
+ capName: "scene-monitor",
34695
+ capScope: "device",
34696
+ addonId: null,
34697
+ access: "delete"
34698
+ },
33696
34699
  "sceneMonitor.updateScene": {
33697
34700
  capName: "scene-monitor",
33698
34701
  capScope: "device",
@@ -34371,6 +35374,12 @@ Object.freeze({
34371
35374
  addonId: null,
34372
35375
  access: "create"
34373
35376
  },
35377
+ "system.detectSiteLocation": {
35378
+ capName: "system",
35379
+ capScope: "system",
35380
+ addonId: null,
35381
+ access: "create"
35382
+ },
34374
35383
  "system.featureFlags": {
34375
35384
  capName: "system",
34376
35385
  capScope: "system",
@@ -34389,6 +35398,12 @@ Object.freeze({
34389
35398
  addonId: null,
34390
35399
  access: "view"
34391
35400
  },
35401
+ "system.getSiteLocation": {
35402
+ capName: "system",
35403
+ capScope: "system",
35404
+ addonId: null,
35405
+ access: "view"
35406
+ },
34392
35407
  "system.health": {
34393
35408
  capName: "system",
34394
35409
  capScope: "system",
@@ -34413,6 +35428,12 @@ Object.freeze({
34413
35428
  addonId: null,
34414
35429
  access: "create"
34415
35430
  },
35431
+ "system.setSiteLocation": {
35432
+ capName: "system",
35433
+ capScope: "system",
35434
+ addonId: null,
35435
+ access: "create"
35436
+ },
34416
35437
  "terminalSession.adoptLegacyMonitor": {
34417
35438
  capName: "terminal-session",
34418
35439
  capScope: "system",
@@ -34984,6 +36005,1704 @@ Object.freeze({
34984
36005
  access: "create"
34985
36006
  }
34986
36007
  });
36008
+ Object.freeze({
36009
+ "accessories.setChildHidden": [{
36010
+ name: "childDeviceId",
36011
+ form: "single",
36012
+ optional: false
36013
+ }, {
36014
+ name: "deviceId",
36015
+ form: "single",
36016
+ optional: false
36017
+ }],
36018
+ "addonSettings.getDeviceSettings": [{
36019
+ name: "deviceId",
36020
+ form: "single",
36021
+ optional: false
36022
+ }],
36023
+ "addonSettings.updateDeviceSettings": [{
36024
+ name: "deviceId",
36025
+ form: "single",
36026
+ optional: false
36027
+ }],
36028
+ "alarmPanel.arm": [{
36029
+ name: "deviceId",
36030
+ form: "single",
36031
+ optional: false
36032
+ }],
36033
+ "alarmPanel.disarm": [{
36034
+ name: "deviceId",
36035
+ form: "single",
36036
+ optional: false
36037
+ }],
36038
+ "alarmPanel.trigger": [{
36039
+ name: "deviceId",
36040
+ form: "single",
36041
+ optional: false
36042
+ }],
36043
+ "audioAnalysis.resolveDeviceSettings": [{
36044
+ name: "deviceId",
36045
+ form: "single",
36046
+ optional: false
36047
+ }],
36048
+ "audioAnalyzer.classify": [{
36049
+ name: "deviceId",
36050
+ form: "single",
36051
+ optional: true
36052
+ }],
36053
+ "audioMetrics.getCurrentSnapshot": [{
36054
+ name: "deviceId",
36055
+ form: "single",
36056
+ optional: false
36057
+ }],
36058
+ "audioMetrics.getHistory": [{
36059
+ name: "deviceId",
36060
+ form: "single",
36061
+ optional: false
36062
+ }],
36063
+ "automationControl.disable": [{
36064
+ name: "deviceId",
36065
+ form: "single",
36066
+ optional: false
36067
+ }],
36068
+ "automationControl.enable": [{
36069
+ name: "deviceId",
36070
+ form: "single",
36071
+ optional: false
36072
+ }],
36073
+ "automationControl.trigger": [{
36074
+ name: "deviceId",
36075
+ form: "single",
36076
+ optional: false
36077
+ }],
36078
+ "battery.wakeForStream": [{
36079
+ name: "deviceId",
36080
+ form: "single",
36081
+ optional: false
36082
+ }],
36083
+ "brightness.setBrightness": [{
36084
+ name: "deviceId",
36085
+ form: "single",
36086
+ optional: false
36087
+ }],
36088
+ "button.press": [{
36089
+ name: "deviceId",
36090
+ form: "single",
36091
+ optional: false
36092
+ }],
36093
+ "cameraCredentials.getCredentials": [{
36094
+ name: "deviceId",
36095
+ form: "single",
36096
+ optional: false
36097
+ }],
36098
+ "cameraStreams.getBrokerStreams": [{
36099
+ name: "deviceId",
36100
+ form: "single",
36101
+ optional: false
36102
+ }],
36103
+ "cameraStreams.getCameraStreams": [{
36104
+ name: "deviceId",
36105
+ form: "single",
36106
+ optional: false
36107
+ }],
36108
+ "cameraStreams.getProfileRtspEntries": [{
36109
+ name: "deviceId",
36110
+ form: "single",
36111
+ optional: false
36112
+ }],
36113
+ "cameraStreams.getRtspEntries": [{
36114
+ name: "deviceId",
36115
+ form: "single",
36116
+ optional: false
36117
+ }],
36118
+ "cameraStreams.pickStream": [{
36119
+ name: "deviceId",
36120
+ form: "single",
36121
+ optional: false
36122
+ }],
36123
+ "climateControl.setFanMode": [{
36124
+ name: "deviceId",
36125
+ form: "single",
36126
+ optional: false
36127
+ }],
36128
+ "climateControl.setMode": [{
36129
+ name: "deviceId",
36130
+ form: "single",
36131
+ optional: false
36132
+ }],
36133
+ "climateControl.setPreset": [{
36134
+ name: "deviceId",
36135
+ form: "single",
36136
+ optional: false
36137
+ }],
36138
+ "climateControl.setSwingHorizontal": [{
36139
+ name: "deviceId",
36140
+ form: "single",
36141
+ optional: false
36142
+ }],
36143
+ "climateControl.setSwingVertical": [{
36144
+ name: "deviceId",
36145
+ form: "single",
36146
+ optional: false
36147
+ }],
36148
+ "climateControl.setTarget": [{
36149
+ name: "deviceId",
36150
+ form: "single",
36151
+ optional: false
36152
+ }],
36153
+ "climateControl.setTargetHumidity": [{
36154
+ name: "deviceId",
36155
+ form: "single",
36156
+ optional: false
36157
+ }],
36158
+ "climateControl.setTargetRange": [{
36159
+ name: "deviceId",
36160
+ form: "single",
36161
+ optional: false
36162
+ }],
36163
+ "color.setColor": [{
36164
+ name: "deviceId",
36165
+ form: "single",
36166
+ optional: false
36167
+ }],
36168
+ "consumables.reset": [{
36169
+ name: "deviceId",
36170
+ form: "single",
36171
+ optional: false
36172
+ }],
36173
+ "control.setValue": [{
36174
+ name: "deviceId",
36175
+ form: "single",
36176
+ optional: false
36177
+ }],
36178
+ "cover.close": [{
36179
+ name: "deviceId",
36180
+ form: "single",
36181
+ optional: false
36182
+ }],
36183
+ "cover.open": [{
36184
+ name: "deviceId",
36185
+ form: "single",
36186
+ optional: false
36187
+ }],
36188
+ "cover.setPosition": [{
36189
+ name: "deviceId",
36190
+ form: "single",
36191
+ optional: false
36192
+ }],
36193
+ "cover.setTiltPosition": [{
36194
+ name: "deviceId",
36195
+ form: "single",
36196
+ optional: false
36197
+ }],
36198
+ "cover.stop": [{
36199
+ name: "deviceId",
36200
+ form: "single",
36201
+ optional: false
36202
+ }],
36203
+ "dayNight.getOptions": [{
36204
+ name: "deviceId",
36205
+ form: "single",
36206
+ optional: false
36207
+ }],
36208
+ "dayNight.setSettings": [{
36209
+ name: "deviceId",
36210
+ form: "single",
36211
+ optional: false
36212
+ }],
36213
+ "decoder.createSession": [{
36214
+ name: "deviceId",
36215
+ form: "single",
36216
+ optional: true
36217
+ }],
36218
+ "deviceAdoption.release": [{
36219
+ name: "camDeviceId",
36220
+ form: "single",
36221
+ optional: false
36222
+ }],
36223
+ "deviceAdoption.resync": [{
36224
+ name: "camDeviceId",
36225
+ form: "single",
36226
+ optional: false
36227
+ }],
36228
+ "deviceDiscovery.adoptDevice": [{
36229
+ name: "deviceId",
36230
+ form: "single",
36231
+ optional: false
36232
+ }],
36233
+ "deviceDiscovery.listDiscovered": [{
36234
+ name: "deviceId",
36235
+ form: "single",
36236
+ optional: false
36237
+ }],
36238
+ "deviceDiscovery.refreshDiscovery": [{
36239
+ name: "deviceId",
36240
+ form: "single",
36241
+ optional: false
36242
+ }],
36243
+ "deviceDiscovery.releaseDevice": [{
36244
+ name: "childDeviceId",
36245
+ form: "single",
36246
+ optional: false
36247
+ }, {
36248
+ name: "deviceId",
36249
+ form: "single",
36250
+ optional: false
36251
+ }],
36252
+ "deviceManager.adoptionRelease": [{
36253
+ name: "camDeviceId",
36254
+ form: "single",
36255
+ optional: false
36256
+ }],
36257
+ "deviceManager.adoptionResync": [{
36258
+ name: "camDeviceId",
36259
+ form: "single",
36260
+ optional: false
36261
+ }],
36262
+ "deviceManager.applyInitialMeta": [{
36263
+ name: "deviceId",
36264
+ form: "single",
36265
+ optional: false
36266
+ }, {
36267
+ name: "linkDeviceId",
36268
+ form: "single",
36269
+ optional: true
36270
+ }],
36271
+ "deviceManager.disable": [{
36272
+ name: "deviceId",
36273
+ form: "single",
36274
+ optional: false
36275
+ }],
36276
+ "deviceManager.enable": [{
36277
+ name: "deviceId",
36278
+ form: "single",
36279
+ optional: false
36280
+ }],
36281
+ "deviceManager.getBindings": [{
36282
+ name: "deviceId",
36283
+ form: "single",
36284
+ optional: false
36285
+ }],
36286
+ "deviceManager.getChildren": [{
36287
+ name: "parentDeviceId",
36288
+ form: "single",
36289
+ optional: false
36290
+ }],
36291
+ "deviceManager.getConfigSchema": [{
36292
+ name: "deviceId",
36293
+ form: "single",
36294
+ optional: false
36295
+ }],
36296
+ "deviceManager.getDevice": [{
36297
+ name: "deviceId",
36298
+ form: "single",
36299
+ optional: false
36300
+ }],
36301
+ "deviceManager.getDeviceAggregate": [{
36302
+ name: "deviceId",
36303
+ form: "single",
36304
+ optional: false
36305
+ }],
36306
+ "deviceManager.getDeviceLiveInfoAggregate": [{
36307
+ name: "deviceId",
36308
+ form: "single",
36309
+ optional: false
36310
+ }],
36311
+ "deviceManager.getDeviceSettingsAggregate": [{
36312
+ name: "deviceId",
36313
+ form: "single",
36314
+ optional: false
36315
+ }],
36316
+ "deviceManager.getDeviceStatusAggregate": [{
36317
+ name: "deviceId",
36318
+ form: "single",
36319
+ optional: false
36320
+ }],
36321
+ "deviceManager.getDeviceStatusAggregateBatch": [{
36322
+ name: "deviceIds",
36323
+ form: "array",
36324
+ optional: false
36325
+ }],
36326
+ "deviceManager.getLinkedDevices": [{
36327
+ name: "deviceId",
36328
+ form: "single",
36329
+ optional: false
36330
+ }],
36331
+ "deviceManager.getSettingsSchema": [{
36332
+ name: "deviceId",
36333
+ form: "single",
36334
+ optional: false
36335
+ }],
36336
+ "deviceManager.getStreamProfileMap": [{
36337
+ name: "deviceId",
36338
+ form: "single",
36339
+ optional: false
36340
+ }],
36341
+ "deviceManager.getStreamSources": [{
36342
+ name: "deviceId",
36343
+ form: "single",
36344
+ optional: false
36345
+ }],
36346
+ "deviceManager.getWireableFields": [{
36347
+ name: "deviceId",
36348
+ form: "single",
36349
+ optional: false
36350
+ }],
36351
+ "deviceManager.loadConfig": [{
36352
+ name: "deviceId",
36353
+ form: "single",
36354
+ optional: false
36355
+ }],
36356
+ "deviceManager.loadMeta": [{
36357
+ name: "deviceId",
36358
+ form: "single",
36359
+ optional: false
36360
+ }],
36361
+ "deviceManager.loadRuntimeState": [{
36362
+ name: "deviceId",
36363
+ form: "single",
36364
+ optional: false
36365
+ }],
36366
+ "deviceManager.persistConfig": [{
36367
+ name: "deviceId",
36368
+ form: "single",
36369
+ optional: false
36370
+ }],
36371
+ "deviceManager.probeStreams": [{
36372
+ name: "deviceId",
36373
+ form: "single",
36374
+ optional: false
36375
+ }],
36376
+ "deviceManager.registerDevice": [{
36377
+ name: "parentDeviceId",
36378
+ form: "single",
36379
+ optional: true
36380
+ }],
36381
+ "deviceManager.remove": [{
36382
+ name: "deviceId",
36383
+ form: "single",
36384
+ optional: false
36385
+ }],
36386
+ "deviceManager.removeDevice": [{
36387
+ name: "deviceId",
36388
+ form: "single",
36389
+ optional: false
36390
+ }],
36391
+ "deviceManager.runDeviceAction": [{
36392
+ name: "deviceId",
36393
+ form: "single",
36394
+ optional: false
36395
+ }],
36396
+ "deviceManager.setChildLayout": [{
36397
+ name: "deviceId",
36398
+ form: "single",
36399
+ optional: false
36400
+ }],
36401
+ "deviceManager.setDisabled": [{
36402
+ name: "deviceId",
36403
+ form: "single",
36404
+ optional: false
36405
+ }],
36406
+ "deviceManager.setDisplay": [{
36407
+ name: "deviceId",
36408
+ form: "single",
36409
+ optional: false
36410
+ }],
36411
+ "deviceManager.setIntegrationId": [{
36412
+ name: "deviceId",
36413
+ form: "single",
36414
+ optional: false
36415
+ }],
36416
+ "deviceManager.setLinkDeviceId": [{
36417
+ name: "deviceId",
36418
+ form: "single",
36419
+ optional: false
36420
+ }, {
36421
+ name: "linkDeviceId",
36422
+ form: "single",
36423
+ optional: true
36424
+ }],
36425
+ "deviceManager.setLocation": [{
36426
+ name: "deviceId",
36427
+ form: "single",
36428
+ optional: false
36429
+ }],
36430
+ "deviceManager.setMetadata": [{
36431
+ name: "deviceId",
36432
+ form: "single",
36433
+ optional: false
36434
+ }],
36435
+ "deviceManager.setName": [{
36436
+ name: "deviceId",
36437
+ form: "single",
36438
+ optional: false
36439
+ }],
36440
+ "deviceManager.setPrimaryChildEntityId": [{
36441
+ name: "deviceId",
36442
+ form: "single",
36443
+ optional: false
36444
+ }],
36445
+ "deviceManager.setRole": [{
36446
+ name: "deviceId",
36447
+ form: "single",
36448
+ optional: false
36449
+ }],
36450
+ "deviceManager.setStreamProfileMap": [{
36451
+ name: "deviceId",
36452
+ form: "single",
36453
+ optional: false
36454
+ }],
36455
+ "deviceManager.setType": [{
36456
+ name: "deviceId",
36457
+ form: "single",
36458
+ optional: false
36459
+ }],
36460
+ "deviceManager.setWrapperActive": [{
36461
+ name: "deviceId",
36462
+ form: "single",
36463
+ optional: false
36464
+ }],
36465
+ "deviceManager.testField": [{
36466
+ name: "deviceId",
36467
+ form: "single",
36468
+ optional: false
36469
+ }],
36470
+ "deviceManager.updateConfig": [{
36471
+ name: "deviceId",
36472
+ form: "single",
36473
+ optional: false
36474
+ }],
36475
+ "deviceManager.updateDeviceField": [{
36476
+ name: "deviceId",
36477
+ form: "single",
36478
+ optional: false
36479
+ }],
36480
+ "deviceManager.updateDeviceFieldsBatch": [{
36481
+ name: "deviceId",
36482
+ form: "single",
36483
+ optional: false
36484
+ }],
36485
+ "deviceOps.getConfigEntries": [{
36486
+ name: "deviceId",
36487
+ form: "single",
36488
+ optional: false
36489
+ }],
36490
+ "deviceOps.getRawState": [{
36491
+ name: "deviceId",
36492
+ form: "single",
36493
+ optional: false
36494
+ }],
36495
+ "deviceOps.getSettingsSchema": [{
36496
+ name: "deviceId",
36497
+ form: "single",
36498
+ optional: false
36499
+ }],
36500
+ "deviceOps.getStreamSources": [{
36501
+ name: "deviceId",
36502
+ form: "single",
36503
+ optional: false
36504
+ }],
36505
+ "deviceOps.removeDevice": [{
36506
+ name: "deviceId",
36507
+ form: "single",
36508
+ optional: false
36509
+ }],
36510
+ "deviceOps.runAction": [{
36511
+ name: "deviceId",
36512
+ form: "single",
36513
+ optional: false
36514
+ }],
36515
+ "deviceOps.setConfig": [{
36516
+ name: "deviceId",
36517
+ form: "single",
36518
+ optional: false
36519
+ }],
36520
+ "deviceState.getCapSlice": [{
36521
+ name: "deviceId",
36522
+ form: "single",
36523
+ optional: false
36524
+ }],
36525
+ "deviceState.getSnapshot": [{
36526
+ name: "deviceId",
36527
+ form: "single",
36528
+ optional: false
36529
+ }],
36530
+ "deviceState.setCapSlice": [{
36531
+ name: "deviceId",
36532
+ form: "single",
36533
+ optional: false
36534
+ }],
36535
+ "events.getEventClipUrl": [{
36536
+ name: "deviceId",
36537
+ form: "single",
36538
+ optional: false
36539
+ }],
36540
+ "events.getEvents": [{
36541
+ name: "deviceId",
36542
+ form: "single",
36543
+ optional: false
36544
+ }],
36545
+ "events.getEventThumbnail": [{
36546
+ name: "deviceId",
36547
+ form: "single",
36548
+ optional: false
36549
+ }],
36550
+ "faceGallery.getFaceByTrack": [{
36551
+ name: "deviceId",
36552
+ form: "single",
36553
+ optional: false
36554
+ }],
36555
+ "faceGallery.listRecentFaces": [{
36556
+ name: "deviceId",
36557
+ form: "single",
36558
+ optional: true
36559
+ }],
36560
+ "fanControl.setDirection": [{
36561
+ name: "deviceId",
36562
+ form: "single",
36563
+ optional: false
36564
+ }],
36565
+ "fanControl.setOscillating": [{
36566
+ name: "deviceId",
36567
+ form: "single",
36568
+ optional: false
36569
+ }],
36570
+ "fanControl.setPercentage": [{
36571
+ name: "deviceId",
36572
+ form: "single",
36573
+ optional: false
36574
+ }],
36575
+ "fanControl.setPreset": [{
36576
+ name: "deviceId",
36577
+ form: "single",
36578
+ optional: false
36579
+ }],
36580
+ "humidifier.setMode": [{
36581
+ name: "deviceId",
36582
+ form: "single",
36583
+ optional: false
36584
+ }],
36585
+ "humidifier.setOn": [{
36586
+ name: "deviceId",
36587
+ form: "single",
36588
+ optional: false
36589
+ }],
36590
+ "humidifier.setTargetHumidity": [{
36591
+ name: "deviceId",
36592
+ form: "single",
36593
+ optional: false
36594
+ }],
36595
+ "imageSettings.getOptions": [{
36596
+ name: "deviceId",
36597
+ form: "single",
36598
+ optional: false
36599
+ }],
36600
+ "imageSettings.setSettings": [{
36601
+ name: "deviceId",
36602
+ form: "single",
36603
+ optional: false
36604
+ }],
36605
+ "intercom.endTalkSession": [{
36606
+ name: "deviceId",
36607
+ form: "single",
36608
+ optional: false
36609
+ }],
36610
+ "intercom.handleAnswer": [{
36611
+ name: "deviceId",
36612
+ form: "single",
36613
+ optional: false
36614
+ }],
36615
+ "intercom.pushTalkAudio": [{
36616
+ name: "deviceId",
36617
+ form: "single",
36618
+ optional: false
36619
+ }],
36620
+ "intercom.startSession": [{
36621
+ name: "deviceId",
36622
+ form: "single",
36623
+ optional: false
36624
+ }],
36625
+ "intercom.startTalkSession": [{
36626
+ name: "deviceId",
36627
+ form: "single",
36628
+ optional: false
36629
+ }],
36630
+ "intercom.stopSession": [{
36631
+ name: "deviceId",
36632
+ form: "single",
36633
+ optional: false
36634
+ }],
36635
+ "lawnMowerControl.dock": [{
36636
+ name: "deviceId",
36637
+ form: "single",
36638
+ optional: false
36639
+ }],
36640
+ "lawnMowerControl.pause": [{
36641
+ name: "deviceId",
36642
+ form: "single",
36643
+ optional: false
36644
+ }],
36645
+ "lawnMowerControl.startMowing": [{
36646
+ name: "deviceId",
36647
+ form: "single",
36648
+ optional: false
36649
+ }],
36650
+ "lockControl.lock": [{
36651
+ name: "deviceId",
36652
+ form: "single",
36653
+ optional: false
36654
+ }],
36655
+ "lockControl.open": [{
36656
+ name: "deviceId",
36657
+ form: "single",
36658
+ optional: false
36659
+ }],
36660
+ "lockControl.unlock": [{
36661
+ name: "deviceId",
36662
+ form: "single",
36663
+ optional: false
36664
+ }],
36665
+ "mediaPlayer.next": [{
36666
+ name: "deviceId",
36667
+ form: "single",
36668
+ optional: false
36669
+ }],
36670
+ "mediaPlayer.pause": [{
36671
+ name: "deviceId",
36672
+ form: "single",
36673
+ optional: false
36674
+ }],
36675
+ "mediaPlayer.play": [{
36676
+ name: "deviceId",
36677
+ form: "single",
36678
+ optional: false
36679
+ }],
36680
+ "mediaPlayer.playMedia": [{
36681
+ name: "deviceId",
36682
+ form: "single",
36683
+ optional: false
36684
+ }],
36685
+ "mediaPlayer.previous": [{
36686
+ name: "deviceId",
36687
+ form: "single",
36688
+ optional: false
36689
+ }],
36690
+ "mediaPlayer.seek": [{
36691
+ name: "deviceId",
36692
+ form: "single",
36693
+ optional: false
36694
+ }],
36695
+ "mediaPlayer.selectSource": [{
36696
+ name: "deviceId",
36697
+ form: "single",
36698
+ optional: false
36699
+ }],
36700
+ "mediaPlayer.setMute": [{
36701
+ name: "deviceId",
36702
+ form: "single",
36703
+ optional: false
36704
+ }],
36705
+ "mediaPlayer.setRepeat": [{
36706
+ name: "deviceId",
36707
+ form: "single",
36708
+ optional: false
36709
+ }],
36710
+ "mediaPlayer.setShuffle": [{
36711
+ name: "deviceId",
36712
+ form: "single",
36713
+ optional: false
36714
+ }],
36715
+ "mediaPlayer.setVolume": [{
36716
+ name: "deviceId",
36717
+ form: "single",
36718
+ optional: false
36719
+ }],
36720
+ "mediaPlayer.stop": [{
36721
+ name: "deviceId",
36722
+ form: "single",
36723
+ optional: false
36724
+ }],
36725
+ "motion.isDetected": [{
36726
+ name: "deviceId",
36727
+ form: "single",
36728
+ optional: false
36729
+ }],
36730
+ "motionDetection.analyze": [{
36731
+ name: "deviceId",
36732
+ form: "single",
36733
+ optional: false
36734
+ }],
36735
+ "motionDetection.removeCamera": [{
36736
+ name: "deviceId",
36737
+ form: "single",
36738
+ optional: false
36739
+ }],
36740
+ "motionTrigger.setMotionTrigger": [{
36741
+ name: "deviceId",
36742
+ form: "single",
36743
+ optional: false
36744
+ }],
36745
+ "motionZones.getOptions": [{
36746
+ name: "deviceId",
36747
+ form: "single",
36748
+ optional: false
36749
+ }],
36750
+ "motionZones.setZone": [{
36751
+ name: "deviceId",
36752
+ form: "single",
36753
+ optional: false
36754
+ }],
36755
+ "nativeObjectDetection.setEnabled": [{
36756
+ name: "deviceId",
36757
+ form: "single",
36758
+ optional: false
36759
+ }],
36760
+ "networkQuality.getDeviceStats": [{
36761
+ name: "deviceId",
36762
+ form: "single",
36763
+ optional: false
36764
+ }],
36765
+ "networkQuality.reportClientStats": [{
36766
+ name: "deviceId",
36767
+ form: "single",
36768
+ optional: false
36769
+ }],
36770
+ "notificationRules.setDeviceMuted": [{
36771
+ name: "deviceId",
36772
+ form: "single",
36773
+ optional: false
36774
+ }],
36775
+ "notifier.cancel": [{
36776
+ name: "deviceId",
36777
+ form: "single",
36778
+ optional: false
36779
+ }],
36780
+ "notifier.send": [{
36781
+ name: "deviceId",
36782
+ form: "single",
36783
+ optional: false
36784
+ }],
36785
+ "osd.setOverlay": [{
36786
+ name: "deviceId",
36787
+ form: "single",
36788
+ optional: false
36789
+ }],
36790
+ "osdManager.clearSlotBinding": [{
36791
+ name: "deviceId",
36792
+ form: "single",
36793
+ optional: false
36794
+ }],
36795
+ "osdManager.copyDeviceConfiguration": [{
36796
+ name: "sourceDeviceId",
36797
+ form: "single",
36798
+ optional: false
36799
+ }, {
36800
+ name: "targetDeviceId",
36801
+ form: "single",
36802
+ optional: false
36803
+ }],
36804
+ "osdManager.getDeviceOsd": [{
36805
+ name: "deviceId",
36806
+ form: "single",
36807
+ optional: false
36808
+ }],
36809
+ "osdManager.getSourceCatalog": [{
36810
+ name: "deviceId",
36811
+ form: "single",
36812
+ optional: false
36813
+ }],
36814
+ "osdManager.previewSlot": [{
36815
+ name: "deviceId",
36816
+ form: "single",
36817
+ optional: false
36818
+ }],
36819
+ "osdManager.renderDevice": [{
36820
+ name: "deviceId",
36821
+ form: "single",
36822
+ optional: false
36823
+ }],
36824
+ "osdManager.setSlotBinding": [{
36825
+ name: "deviceId",
36826
+ form: "single",
36827
+ optional: false
36828
+ }],
36829
+ "petFeeder.callPet": [{
36830
+ name: "deviceId",
36831
+ form: "single",
36832
+ optional: false
36833
+ }],
36834
+ "petFeeder.cancelFeed": [{
36835
+ name: "deviceId",
36836
+ form: "single",
36837
+ optional: false
36838
+ }],
36839
+ "petFeeder.feed": [{
36840
+ name: "deviceId",
36841
+ form: "single",
36842
+ optional: false
36843
+ }],
36844
+ "petFeeder.markFoodReplenished": [{
36845
+ name: "deviceId",
36846
+ form: "single",
36847
+ optional: false
36848
+ }],
36849
+ "petFeeder.playSound": [{
36850
+ name: "deviceId",
36851
+ form: "single",
36852
+ optional: false
36853
+ }],
36854
+ "petFeeder.resetDesiccant": [{
36855
+ name: "deviceId",
36856
+ form: "single",
36857
+ optional: false
36858
+ }],
36859
+ "petFeeder.setChildLock": [{
36860
+ name: "deviceId",
36861
+ form: "single",
36862
+ optional: false
36863
+ }],
36864
+ "petFeeder.setFeedSound": [{
36865
+ name: "deviceId",
36866
+ form: "single",
36867
+ optional: false
36868
+ }],
36869
+ "petFeeder.setIndicatorLight": [{
36870
+ name: "deviceId",
36871
+ form: "single",
36872
+ optional: false
36873
+ }],
36874
+ "petFeeder.setVolume": [{
36875
+ name: "deviceId",
36876
+ form: "single",
36877
+ optional: false
36878
+ }],
36879
+ "pipelineAnalytics.clearTracks": [{
36880
+ name: "deviceId",
36881
+ form: "single",
36882
+ optional: false
36883
+ }],
36884
+ "pipelineAnalytics.completeRetrainTrack": [{
36885
+ name: "deviceId",
36886
+ form: "single",
36887
+ optional: false
36888
+ }],
36889
+ "pipelineAnalytics.deleteDeviceEvents": [{
36890
+ name: "deviceId",
36891
+ form: "single",
36892
+ optional: false
36893
+ }],
36894
+ "pipelineAnalytics.deleteTracks": [{
36895
+ name: "deviceId",
36896
+ form: "single",
36897
+ optional: false
36898
+ }],
36899
+ "pipelineAnalytics.deselectRetrainFrame": [{
36900
+ name: "deviceId",
36901
+ form: "single",
36902
+ optional: false
36903
+ }],
36904
+ "pipelineAnalytics.getActiveTracks": [{
36905
+ name: "deviceId",
36906
+ form: "single",
36907
+ optional: false
36908
+ }],
36909
+ "pipelineAnalytics.getAudioEvents": [{
36910
+ name: "deviceId",
36911
+ form: "single",
36912
+ optional: false
36913
+ }],
36914
+ "pipelineAnalytics.getEventDensity": [{
36915
+ name: "deviceId",
36916
+ form: "single",
36917
+ optional: false
36918
+ }],
36919
+ "pipelineAnalytics.getEventMedia": [{
36920
+ name: "deviceId",
36921
+ form: "single",
36922
+ optional: false
36923
+ }],
36924
+ "pipelineAnalytics.getKeyEvents": [{
36925
+ name: "deviceId",
36926
+ form: "single",
36927
+ optional: false
36928
+ }],
36929
+ "pipelineAnalytics.getMotionEvents": [{
36930
+ name: "deviceId",
36931
+ form: "single",
36932
+ optional: false
36933
+ }],
36934
+ "pipelineAnalytics.getObjectEvents": [{
36935
+ name: "deviceId",
36936
+ form: "single",
36937
+ optional: false
36938
+ }],
36939
+ "pipelineAnalytics.getRetrainExportUrl": [{
36940
+ name: "deviceIds",
36941
+ form: "array",
36942
+ optional: true
36943
+ }],
36944
+ "pipelineAnalytics.getSensorEvents": [{
36945
+ name: "deviceId",
36946
+ form: "single",
36947
+ optional: false
36948
+ }],
36949
+ "pipelineAnalytics.getTrack": [{
36950
+ name: "deviceId",
36951
+ form: "single",
36952
+ optional: false
36953
+ }],
36954
+ "pipelineAnalytics.getTrackMedia": [{
36955
+ name: "deviceId",
36956
+ form: "single",
36957
+ optional: false
36958
+ }],
36959
+ "pipelineAnalytics.getTrainingExportSummary": [{
36960
+ name: "deviceIds",
36961
+ form: "array",
36962
+ optional: true
36963
+ }],
36964
+ "pipelineAnalytics.getTrainingExportUrl": [{
36965
+ name: "deviceIds",
36966
+ form: "array",
36967
+ optional: true
36968
+ }],
36969
+ "pipelineAnalytics.listEventKinds": [{
36970
+ name: "deviceId",
36971
+ form: "single",
36972
+ optional: false
36973
+ }],
36974
+ "pipelineAnalytics.listEventKindsBatch": [{
36975
+ name: "deviceIds",
36976
+ form: "array",
36977
+ optional: false
36978
+ }],
36979
+ "pipelineAnalytics.listOpsLog": [{
36980
+ name: "deviceId",
36981
+ form: "single",
36982
+ optional: true
36983
+ }],
36984
+ "pipelineAnalytics.listRecentTracks": [{
36985
+ name: "deviceIds",
36986
+ form: "array",
36987
+ optional: false
36988
+ }],
36989
+ "pipelineAnalytics.listRetrainStaging": [{
36990
+ name: "deviceIds",
36991
+ form: "array",
36992
+ optional: true
36993
+ }],
36994
+ "pipelineAnalytics.listTrackMedia": [{
36995
+ name: "deviceId",
36996
+ form: "single",
36997
+ optional: false
36998
+ }],
36999
+ "pipelineAnalytics.listTracks": [{
37000
+ name: "deviceId",
37001
+ form: "single",
37002
+ optional: false
37003
+ }],
37004
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
37005
+ name: "deviceId",
37006
+ form: "single",
37007
+ optional: false
37008
+ }],
37009
+ "pipelineAnalytics.pruneEventsBefore": [{
37010
+ name: "deviceId",
37011
+ form: "single",
37012
+ optional: false
37013
+ }],
37014
+ "pipelineAnalytics.pruneTracksBefore": [{
37015
+ name: "deviceId",
37016
+ form: "single",
37017
+ optional: false
37018
+ }],
37019
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
37020
+ name: "deviceId",
37021
+ form: "single",
37022
+ optional: true
37023
+ }],
37024
+ "pipelineAnalytics.restageRetrainTrack": [{
37025
+ name: "deviceId",
37026
+ form: "single",
37027
+ optional: false
37028
+ }],
37029
+ "pipelineAnalytics.saveRetrainAnnotations": [{
37030
+ name: "deviceId",
37031
+ form: "single",
37032
+ optional: false
37033
+ }],
37034
+ "pipelineAnalytics.searchObjectEvents": [{
37035
+ name: "deviceId",
37036
+ form: "single",
37037
+ optional: true
37038
+ }],
37039
+ "pipelineAnalytics.selectRetrainFrames": [{
37040
+ name: "deviceId",
37041
+ form: "single",
37042
+ optional: false
37043
+ }],
37044
+ "pipelineAnalytics.setTrackFlags": [{
37045
+ name: "deviceId",
37046
+ form: "single",
37047
+ optional: false
37048
+ }],
37049
+ "pipelineAnalytics.wipeAllAnalytics": [{
37050
+ name: "deviceId",
37051
+ form: "single",
37052
+ optional: false
37053
+ }],
37054
+ "pipelineExecutor.runPipeline": [{
37055
+ name: "deviceId",
37056
+ form: "single",
37057
+ optional: true
37058
+ }],
37059
+ "pipelineExecutor.runPipelineBatch": [{
37060
+ name: "deviceId",
37061
+ form: "single",
37062
+ optional: true
37063
+ }],
37064
+ "pipelineOrchestrator.assignAudio": [{
37065
+ name: "deviceId",
37066
+ form: "single",
37067
+ optional: false
37068
+ }],
37069
+ "pipelineOrchestrator.assignPipeline": [{
37070
+ name: "deviceId",
37071
+ form: "single",
37072
+ optional: false
37073
+ }],
37074
+ "pipelineOrchestrator.getAudioAssignment": [{
37075
+ name: "deviceId",
37076
+ form: "single",
37077
+ optional: false
37078
+ }],
37079
+ "pipelineOrchestrator.getCameraMetrics": [{
37080
+ name: "deviceId",
37081
+ form: "single",
37082
+ optional: false
37083
+ }],
37084
+ "pipelineOrchestrator.getCameraSettings": [{
37085
+ name: "deviceId",
37086
+ form: "single",
37087
+ optional: false
37088
+ }],
37089
+ "pipelineOrchestrator.getCameraStatus": [{
37090
+ name: "deviceId",
37091
+ form: "single",
37092
+ optional: false
37093
+ }],
37094
+ "pipelineOrchestrator.getCameraStatuses": [{
37095
+ name: "deviceIds",
37096
+ form: "array",
37097
+ optional: true
37098
+ }],
37099
+ "pipelineOrchestrator.getCameraStepOverrides": [{
37100
+ name: "deviceId",
37101
+ form: "single",
37102
+ optional: false
37103
+ }],
37104
+ "pipelineOrchestrator.getCameraSwitches": [{
37105
+ name: "deviceId",
37106
+ form: "single",
37107
+ optional: false
37108
+ }],
37109
+ "pipelineOrchestrator.getPipelineAssignment": [{
37110
+ name: "deviceId",
37111
+ form: "single",
37112
+ optional: false
37113
+ }],
37114
+ "pipelineOrchestrator.getPipelineDevicePin": [{
37115
+ name: "deviceId",
37116
+ form: "single",
37117
+ optional: false
37118
+ }],
37119
+ "pipelineOrchestrator.resolvePipeline": [{
37120
+ name: "deviceId",
37121
+ form: "single",
37122
+ optional: false
37123
+ }],
37124
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
37125
+ name: "deviceId",
37126
+ form: "single",
37127
+ optional: false
37128
+ }],
37129
+ "pipelineOrchestrator.setCameraStepOverride": [{
37130
+ name: "deviceId",
37131
+ form: "single",
37132
+ optional: false
37133
+ }],
37134
+ "pipelineOrchestrator.setCameraStepToggle": [{
37135
+ name: "deviceId",
37136
+ form: "single",
37137
+ optional: false
37138
+ }],
37139
+ "pipelineOrchestrator.setCameraSwitch": [{
37140
+ name: "deviceId",
37141
+ form: "single",
37142
+ optional: false
37143
+ }],
37144
+ "pipelineOrchestrator.setPipelineDevicePin": [{
37145
+ name: "deviceId",
37146
+ form: "single",
37147
+ optional: false
37148
+ }],
37149
+ "pipelineOrchestrator.unassignAudio": [{
37150
+ name: "deviceId",
37151
+ form: "single",
37152
+ optional: false
37153
+ }],
37154
+ "pipelineOrchestrator.unassignPipeline": [{
37155
+ name: "deviceId",
37156
+ form: "single",
37157
+ optional: false
37158
+ }],
37159
+ "pipelineRunner.attachCamera": [{
37160
+ name: "deviceId",
37161
+ form: "single",
37162
+ optional: false
37163
+ }],
37164
+ "pipelineRunner.detachCamera": [{
37165
+ name: "deviceId",
37166
+ form: "single",
37167
+ optional: false
37168
+ }],
37169
+ "pipelineRunner.getCameraMetrics": [{
37170
+ name: "deviceId",
37171
+ form: "single",
37172
+ optional: false
37173
+ }],
37174
+ "pipelineRunner.reportMotion": [{
37175
+ name: "deviceId",
37176
+ form: "single",
37177
+ optional: false
37178
+ }],
37179
+ "pipelineRunner.runDetailSubtree": [{
37180
+ name: "deviceId",
37181
+ form: "single",
37182
+ optional: false
37183
+ }],
37184
+ "pipelineRunner.runStatelessStep": [{
37185
+ name: "sourceDeviceId",
37186
+ form: "single",
37187
+ optional: false
37188
+ }],
37189
+ "plateGallery.getPlateByTrack": [{
37190
+ name: "deviceId",
37191
+ form: "single",
37192
+ optional: false
37193
+ }],
37194
+ "plateGallery.listPlates": [{
37195
+ name: "deviceId",
37196
+ form: "single",
37197
+ optional: true
37198
+ }],
37199
+ "privacyMask.getOptions": [{
37200
+ name: "deviceId",
37201
+ form: "single",
37202
+ optional: false
37203
+ }],
37204
+ "privacyMask.setAudioEnabled": [{
37205
+ name: "deviceId",
37206
+ form: "single",
37207
+ optional: false
37208
+ }],
37209
+ "privacyMask.setMask": [{
37210
+ name: "deviceId",
37211
+ form: "single",
37212
+ optional: false
37213
+ }],
37214
+ "ptz.continuousMove": [{
37215
+ name: "deviceId",
37216
+ form: "single",
37217
+ optional: false
37218
+ }],
37219
+ "ptz.deletePreset": [{
37220
+ name: "deviceId",
37221
+ form: "single",
37222
+ optional: false
37223
+ }],
37224
+ "ptz.getOptions": [{
37225
+ name: "deviceId",
37226
+ form: "single",
37227
+ optional: false
37228
+ }],
37229
+ "ptz.getPosition": [{
37230
+ name: "deviceId",
37231
+ form: "single",
37232
+ optional: false
37233
+ }],
37234
+ "ptz.getPresets": [{
37235
+ name: "deviceId",
37236
+ form: "single",
37237
+ optional: false
37238
+ }],
37239
+ "ptz.goHome": [{
37240
+ name: "deviceId",
37241
+ form: "single",
37242
+ optional: false
37243
+ }],
37244
+ "ptz.goToPreset": [{
37245
+ name: "deviceId",
37246
+ form: "single",
37247
+ optional: false
37248
+ }],
37249
+ "ptz.move": [{
37250
+ name: "deviceId",
37251
+ form: "single",
37252
+ optional: false
37253
+ }],
37254
+ "ptz.savePreset": [{
37255
+ name: "deviceId",
37256
+ form: "single",
37257
+ optional: false
37258
+ }],
37259
+ "ptz.setAutofocus": [{
37260
+ name: "deviceId",
37261
+ form: "single",
37262
+ optional: false
37263
+ }],
37264
+ "ptz.stop": [{
37265
+ name: "deviceId",
37266
+ form: "single",
37267
+ optional: false
37268
+ }],
37269
+ "ptzAutotrack.getSettings": [{
37270
+ name: "deviceId",
37271
+ form: "single",
37272
+ optional: false
37273
+ }],
37274
+ "ptzAutotrack.getStatus": [{
37275
+ name: "deviceId",
37276
+ form: "single",
37277
+ optional: false
37278
+ }],
37279
+ "ptzAutotrack.setEnabled": [{
37280
+ name: "deviceId",
37281
+ form: "single",
37282
+ optional: false
37283
+ }],
37284
+ "ptzAutotrack.setSettings": [{
37285
+ name: "deviceId",
37286
+ form: "single",
37287
+ optional: false
37288
+ }],
37289
+ "reboot.reboot": [{
37290
+ name: "deviceId",
37291
+ form: "single",
37292
+ optional: false
37293
+ }],
37294
+ "recording.deleteFootprint": [{
37295
+ name: "deviceId",
37296
+ form: "single",
37297
+ optional: false
37298
+ }],
37299
+ "recording.getAvailability": [{
37300
+ name: "deviceId",
37301
+ form: "single",
37302
+ optional: false
37303
+ }],
37304
+ "recording.getDaysWithRecordings": [{
37305
+ name: "deviceId",
37306
+ form: "single",
37307
+ optional: false
37308
+ }],
37309
+ "recording.getDeviceConfig": [{
37310
+ name: "deviceId",
37311
+ form: "single",
37312
+ optional: false
37313
+ }],
37314
+ "recording.getPlaybackManifest": [{
37315
+ name: "deviceId",
37316
+ form: "single",
37317
+ optional: false
37318
+ }],
37319
+ "recording.listOpsLog": [{
37320
+ name: "deviceId",
37321
+ form: "single",
37322
+ optional: true
37323
+ }],
37324
+ "recording.locateSegment": [{
37325
+ name: "deviceId",
37326
+ form: "single",
37327
+ optional: false
37328
+ }],
37329
+ "recording.pruneFootage": [{
37330
+ name: "deviceId",
37331
+ form: "single",
37332
+ optional: false
37333
+ }],
37334
+ "recording.readGopBytes": [{
37335
+ name: "deviceId",
37336
+ form: "single",
37337
+ optional: false
37338
+ }],
37339
+ "recording.readSegmentBytes": [{
37340
+ name: "deviceId",
37341
+ form: "single",
37342
+ optional: false
37343
+ }],
37344
+ "recording.relocateFootage": [{
37345
+ name: "deviceId",
37346
+ form: "single",
37347
+ optional: true
37348
+ }],
37349
+ "recording.renderClip": [{
37350
+ name: "deviceId",
37351
+ form: "single",
37352
+ optional: false
37353
+ }],
37354
+ "recording.renderGif": [{
37355
+ name: "deviceId",
37356
+ form: "single",
37357
+ optional: false
37358
+ }],
37359
+ "recording.rescanStorage": [{
37360
+ name: "deviceId",
37361
+ form: "single",
37362
+ optional: false
37363
+ }],
37364
+ "recording.setDeviceConfig": [{
37365
+ name: "deviceId",
37366
+ form: "single",
37367
+ optional: false
37368
+ }],
37369
+ "recording.startStorageMigrationMove": [{
37370
+ name: "deviceId",
37371
+ form: "single",
37372
+ optional: true
37373
+ }],
37374
+ "recordingExport.createExport": [{
37375
+ name: "deviceId",
37376
+ form: "single",
37377
+ optional: false
37378
+ }],
37379
+ "recordingExport.listExports": [{
37380
+ name: "deviceId",
37381
+ form: "single",
37382
+ optional: true
37383
+ }],
37384
+ "sceneMonitor.captureReference": [{
37385
+ name: "deviceId",
37386
+ form: "single",
37387
+ optional: false
37388
+ }],
37389
+ "sceneMonitor.createScene": [{
37390
+ name: "deviceId",
37391
+ form: "single",
37392
+ optional: false
37393
+ }],
37394
+ "sceneMonitor.deleteReference": [{
37395
+ name: "deviceId",
37396
+ form: "single",
37397
+ optional: false
37398
+ }],
37399
+ "sceneMonitor.deleteScene": [{
37400
+ name: "deviceId",
37401
+ form: "single",
37402
+ optional: false
37403
+ }],
37404
+ "sceneMonitor.listScenes": [{
37405
+ name: "deviceId",
37406
+ form: "single",
37407
+ optional: false
37408
+ }],
37409
+ "sceneMonitor.recheckNow": [{
37410
+ name: "deviceId",
37411
+ form: "single",
37412
+ optional: false
37413
+ }],
37414
+ "sceneMonitor.resetScene": [{
37415
+ name: "deviceId",
37416
+ form: "single",
37417
+ optional: false
37418
+ }],
37419
+ "sceneMonitor.updateScene": [{
37420
+ name: "deviceId",
37421
+ form: "single",
37422
+ optional: false
37423
+ }],
37424
+ "scriptRunner.run": [{
37425
+ name: "deviceId",
37426
+ form: "single",
37427
+ optional: false
37428
+ }],
37429
+ "scriptRunner.stop": [{
37430
+ name: "deviceId",
37431
+ form: "single",
37432
+ optional: false
37433
+ }],
37434
+ "snapshot.getSnapshot": [{
37435
+ name: "deviceId",
37436
+ form: "single",
37437
+ optional: false
37438
+ }],
37439
+ "snapshot.getSnapshotLinks": [{
37440
+ name: "targets",
37441
+ form: "object-array",
37442
+ optional: false,
37443
+ itemField: "deviceId"
37444
+ }],
37445
+ "snapshot.getSnapshotOverview": [{
37446
+ name: "deviceIds",
37447
+ form: "array",
37448
+ optional: false
37449
+ }],
37450
+ "snapshot.invalidateCache": [{
37451
+ name: "deviceId",
37452
+ form: "single",
37453
+ optional: false
37454
+ }],
37455
+ "streamBroker.acquireEgressTranscode": [{
37456
+ name: "deviceId",
37457
+ form: "single",
37458
+ optional: false
37459
+ }],
37460
+ "streamBroker.assignProfile": [{
37461
+ name: "deviceId",
37462
+ form: "single",
37463
+ optional: false
37464
+ }],
37465
+ "streamBroker.getDeviceAudioMute": [{
37466
+ name: "deviceId",
37467
+ form: "single",
37468
+ optional: false
37469
+ }],
37470
+ "streamBroker.getStreamWithCodec": [{
37471
+ name: "deviceId",
37472
+ form: "single",
37473
+ optional: false
37474
+ }],
37475
+ "streamBroker.produceEventMedia": [{
37476
+ name: "deviceId",
37477
+ form: "single",
37478
+ optional: false
37479
+ }],
37480
+ "streamBroker.publishCameraStream": [{
37481
+ name: "deviceId",
37482
+ form: "single",
37483
+ optional: false
37484
+ }],
37485
+ "streamBroker.renderPreBufferClip": [{
37486
+ name: "deviceId",
37487
+ form: "single",
37488
+ optional: false
37489
+ }],
37490
+ "streamBroker.restartProfile": [{
37491
+ name: "deviceId",
37492
+ form: "single",
37493
+ optional: false
37494
+ }],
37495
+ "streamBroker.retractCameraStream": [{
37496
+ name: "deviceId",
37497
+ form: "single",
37498
+ optional: false
37499
+ }],
37500
+ "streamBroker.setDeviceAudioMute": [{
37501
+ name: "deviceId",
37502
+ form: "single",
37503
+ optional: false
37504
+ }],
37505
+ "streamBroker.unassignProfile": [{
37506
+ name: "deviceId",
37507
+ form: "single",
37508
+ optional: false
37509
+ }],
37510
+ "streamCatalog.getCatalog": [{
37511
+ name: "deviceId",
37512
+ form: "single",
37513
+ optional: false
37514
+ }],
37515
+ "streamParams.getConfigSchema": [{
37516
+ name: "deviceId",
37517
+ form: "single",
37518
+ optional: false
37519
+ }],
37520
+ "streamParams.getOptions": [{
37521
+ name: "deviceId",
37522
+ form: "single",
37523
+ optional: false
37524
+ }],
37525
+ "streamParams.setProfile": [{
37526
+ name: "deviceId",
37527
+ form: "single",
37528
+ optional: false
37529
+ }],
37530
+ "switch.setState": [{
37531
+ name: "deviceId",
37532
+ form: "single",
37533
+ optional: false
37534
+ }],
37535
+ "vacuumControl.locate": [{
37536
+ name: "deviceId",
37537
+ form: "single",
37538
+ optional: false
37539
+ }],
37540
+ "vacuumControl.pause": [{
37541
+ name: "deviceId",
37542
+ form: "single",
37543
+ optional: false
37544
+ }],
37545
+ "vacuumControl.returnToBase": [{
37546
+ name: "deviceId",
37547
+ form: "single",
37548
+ optional: false
37549
+ }],
37550
+ "vacuumControl.setFanSpeed": [{
37551
+ name: "deviceId",
37552
+ form: "single",
37553
+ optional: false
37554
+ }],
37555
+ "vacuumControl.start": [{
37556
+ name: "deviceId",
37557
+ form: "single",
37558
+ optional: false
37559
+ }],
37560
+ "vacuumControl.stop": [{
37561
+ name: "deviceId",
37562
+ form: "single",
37563
+ optional: false
37564
+ }],
37565
+ "valve.close": [{
37566
+ name: "deviceId",
37567
+ form: "single",
37568
+ optional: false
37569
+ }],
37570
+ "valve.open": [{
37571
+ name: "deviceId",
37572
+ form: "single",
37573
+ optional: false
37574
+ }],
37575
+ "valve.setPosition": [{
37576
+ name: "deviceId",
37577
+ form: "single",
37578
+ optional: false
37579
+ }],
37580
+ "valve.stop": [{
37581
+ name: "deviceId",
37582
+ form: "single",
37583
+ optional: false
37584
+ }],
37585
+ "videoclips.getClipPlayback": [{
37586
+ name: "deviceId",
37587
+ form: "single",
37588
+ optional: false
37589
+ }],
37590
+ "videoclips.listClips": [{
37591
+ name: "deviceId",
37592
+ form: "single",
37593
+ optional: false
37594
+ }],
37595
+ "waterHeater.setAway": [{
37596
+ name: "deviceId",
37597
+ form: "single",
37598
+ optional: false
37599
+ }],
37600
+ "waterHeater.setOperationMode": [{
37601
+ name: "deviceId",
37602
+ form: "single",
37603
+ optional: false
37604
+ }],
37605
+ "waterHeater.setTargetTemp": [{
37606
+ name: "deviceId",
37607
+ form: "single",
37608
+ optional: false
37609
+ }],
37610
+ "webrtcSession.addIceCandidate": [{
37611
+ name: "deviceId",
37612
+ form: "single",
37613
+ optional: false
37614
+ }],
37615
+ "webrtcSession.closeSession": [{
37616
+ name: "deviceId",
37617
+ form: "single",
37618
+ optional: false
37619
+ }],
37620
+ "webrtcSession.createSession": [{
37621
+ name: "deviceId",
37622
+ form: "single",
37623
+ optional: false
37624
+ }],
37625
+ "webrtcSession.getIceCandidates": [{
37626
+ name: "deviceId",
37627
+ form: "single",
37628
+ optional: false
37629
+ }],
37630
+ "webrtcSession.getSessionState": [{
37631
+ name: "deviceId",
37632
+ form: "single",
37633
+ optional: false
37634
+ }],
37635
+ "webrtcSession.handleAnswer": [{
37636
+ name: "deviceId",
37637
+ form: "single",
37638
+ optional: false
37639
+ }],
37640
+ "webrtcSession.handleOffer": [{
37641
+ name: "deviceId",
37642
+ form: "single",
37643
+ optional: false
37644
+ }],
37645
+ "webrtcSession.hasAdaptiveBitrate": [{
37646
+ name: "deviceId",
37647
+ form: "single",
37648
+ optional: false
37649
+ }],
37650
+ "webrtcSession.listStreams": [{
37651
+ name: "deviceId",
37652
+ form: "single",
37653
+ optional: false
37654
+ }],
37655
+ "zoneAnalytics.getCameraHistory": [{
37656
+ name: "deviceId",
37657
+ form: "single",
37658
+ optional: false
37659
+ }],
37660
+ "zoneAnalytics.getCurrentSnapshot": [{
37661
+ name: "deviceId",
37662
+ form: "single",
37663
+ optional: false
37664
+ }],
37665
+ "zoneAnalytics.getUnzonedHistory": [{
37666
+ name: "deviceId",
37667
+ form: "single",
37668
+ optional: false
37669
+ }],
37670
+ "zoneAnalytics.getZoneHistory": [{
37671
+ name: "deviceId",
37672
+ form: "single",
37673
+ optional: false
37674
+ }],
37675
+ "zoneRules.listRules": [{
37676
+ name: "deviceId",
37677
+ form: "single",
37678
+ optional: false
37679
+ }],
37680
+ "zoneRules.setRules": [{
37681
+ name: "deviceId",
37682
+ form: "single",
37683
+ optional: false
37684
+ }],
37685
+ "zones.addZone": [{
37686
+ name: "deviceId",
37687
+ form: "single",
37688
+ optional: false
37689
+ }],
37690
+ "zones.listZones": [{
37691
+ name: "deviceId",
37692
+ form: "single",
37693
+ optional: false
37694
+ }],
37695
+ "zones.removeZone": [{
37696
+ name: "deviceId",
37697
+ form: "single",
37698
+ optional: false
37699
+ }],
37700
+ "zones.updateZone": [{
37701
+ name: "deviceId",
37702
+ form: "single",
37703
+ optional: false
37704
+ }]
37705
+ });
34987
37706
  Object.freeze({
34988
37707
  "broker": "broker",
34989
37708
  "device-export": "device-export",