@camstack/addon-provider-tuya 0.2.17 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2898 -144
  2. package/dist/addon.mjs +2898 -144
  3. package/package.json +1 -1
package/dist/addon.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
@@ -19663,7 +20238,31 @@ DeviceType.Camera, method(object({
19663
20238
  lastCapturedAt: number().nullable(),
19664
20239
  cacheAgeMs: number().nullable(),
19665
20240
  etag: string().nullable()
19666
- }))), systemMethod(object({
20241
+ }))), systemMethod(object({ deviceId: number() }), object({
20242
+ /** The battery slice as read, or null when the device has none. */
20243
+ battery: object({
20244
+ sleeping: boolean(),
20245
+ lastUpdated: number(),
20246
+ lastContactAt: number().optional()
20247
+ }).nullable(),
20248
+ /** The resolved snapshot state (what the overlay decision used). */
20249
+ state: object({
20250
+ isBattery: boolean(),
20251
+ reason: _enum([
20252
+ "disabled",
20253
+ "sleeping",
20254
+ "unreachable",
20255
+ "waking"
20256
+ ]).nullable()
20257
+ }),
20258
+ /** The cached frame behind the next paint. */
20259
+ frame: object({
20260
+ capturedAt: number().nullable(),
20261
+ ageMs: number().nullable()
20262
+ }),
20263
+ /** A wake window is currently open (the Waking overlay's source). */
20264
+ waking: boolean()
20265
+ })), systemMethod(object({
19667
20266
  /** The tiles a surface is actually rendering. One entry per (device,
19668
20267
  * width) the caller will paint — the width is snapped to the server's
19669
20268
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19693,7 +20292,16 @@ targets: array(object({
19693
20292
  /** A sleeping battery camera: the frame is deliberately stale and will
19694
20293
  * NOT refresh in the background. A surface should say so rather than
19695
20294
  * present it as current. */
19696
- sleeping: boolean()
20295
+ sleeping: boolean(),
20296
+ /** Current device state rendered over the cached frame. State images
20297
+ * remain authoritative even when their photographic background is
20298
+ * old; null means the link must carry a current camera frame. */
20299
+ stateReason: _enum([
20300
+ "disabled",
20301
+ "sleeping",
20302
+ "unreachable",
20303
+ "waking"
20304
+ ]).nullable()
19697
20305
  })));
19698
20306
  /**
19699
20307
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -21347,6 +21955,25 @@ var BatteryStatusSchema = object({
21347
21955
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
21348
21956
  lastUpdated: number(),
21349
21957
  /**
21958
+ * Ms epoch of the last time the device PROVED it was reachable — a
21959
+ * completed firmware round-trip, an observed wake, or an inbound push
21960
+ * (firmware event, email). `0`/absent = never since this slice was born.
21961
+ *
21962
+ * This is the ONLY input that separates "asleep" from "gone", and it is
21963
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
21964
+ * for the radio, because a poll that confirms reachability is the same
21965
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
21966
+ * single derivation every consumer must use; no surface computes its own.
21967
+ *
21968
+ * It is deliberately NOT a clock in the
21969
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
21970
+ * observation itself, and it is the only thing a 30-hour silence is
21971
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
21972
+ * Reolink provider) so a value that means "recently" cannot cost a
21973
+ * SQLite commit per round-trip.
21974
+ */
21975
+ lastContactAt: number().optional(),
21976
+ /**
21350
21977
  * True when the source is a BINARY low-battery indicator (HA
21351
21978
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
21352
21979
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23619,54 +24246,139 @@ var TalkAudioCodecSchema = _enum([
23619
24246
  "g711ulaw",
23620
24247
  "g711alaw"
23621
24248
  ]);
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
- });
24249
+ var intercomCapability = {
24250
+ name: "intercom",
24251
+ scope: "device",
24252
+ deviceNative: true,
24253
+ mode: "singleton",
24254
+ deviceTypes: [DeviceType.Camera],
24255
+ methods: {
24256
+ /**
24257
+ * Open a server-side WebRTC audio-only session. Returns an SDP
24258
+ * offer with a single sendonly audio m-line the client answers
24259
+ * (client → server direction). The server wakes battery cams
24260
+ * transparently before opening the upstream talk channel.
24261
+ */
24262
+ startSession: method(object({ deviceId: number() }), object({
24263
+ sessionId: string(),
24264
+ sdpOffer: string()
24265
+ }), {
24266
+ kind: "mutation",
24267
+ auth: "admin"
24268
+ }),
24269
+ handleAnswer: method(object({
24270
+ deviceId: number(),
24271
+ sessionId: string(),
24272
+ sdpAnswer: string()
24273
+ }), _void(), {
24274
+ kind: "mutation",
24275
+ auth: "admin"
24276
+ }),
24277
+ /** Close explicitly. Server also auto-closes on 30s idle. */
24278
+ stopSession: method(object({
24279
+ deviceId: number(),
24280
+ sessionId: string()
24281
+ }), _void(), {
24282
+ kind: "mutation",
24283
+ auth: "admin"
24284
+ }),
24285
+ /**
24286
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
24287
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
24288
+ * harnesses) that already have decoded PCM frames and just need a
24289
+ * direct path onto the camera's talk channel. Mutually exclusive
24290
+ * with `startSession` (an active WebRTC session must be stopped
24291
+ * before a raw-PCM session can be opened on the same device, and
24292
+ * vice versa).
24293
+ */
24294
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
24295
+ kind: "mutation",
24296
+ auth: "admin"
24297
+ }),
24298
+ /**
24299
+ * Push one chunk of talk-back audio onto the active talk session.
24300
+ * The cap is codec-agnostic: the caller declares (or omits) the
24301
+ * wire format via `codec`; the provider decides between passthrough
24302
+ * (when the wire codec matches the camera's native talk channel),
24303
+ * transcoding via the `audio-codec` cap, or rejecting the call.
24304
+ *
24305
+ * Callers do NOT need to know the camera's wire format or sample
24306
+ * rate — that information lives entirely inside the provider.
24307
+ *
24308
+ * Sequence numbers MUST be monotonic per talk session; older frames
24309
+ * arriving after newer ones are dropped to avoid smearing the
24310
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
24311
+ * predictor would corrupt with re-ordering).
24312
+ */
24313
+ pushTalkAudio: method(object({
24314
+ deviceId: number(),
24315
+ /** Audio bytes for ONE frame, base64-encoded so the payload
24316
+ * survives tRPC JSON serialization. */
24317
+ audioBase64: string(),
24318
+ /** Wire codec of the payload. Omit to let the provider default
24319
+ * to its native expected format (s16le @ provider-native rate,
24320
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
24321
+ codec: TalkAudioCodecSchema.optional(),
24322
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
24323
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
24324
+ sampleRate: number().int().positive().optional(),
24325
+ /** Channel count. Default 1. */
24326
+ channels: number().int().positive().optional(),
24327
+ /** Sequence number for ordering / dropping out-of-order frames. */
24328
+ sequenceNumber: number().int()
24329
+ }), object({ accepted: boolean() }), {
24330
+ kind: "mutation",
24331
+ auth: "admin"
24332
+ }),
24333
+ /** Close the raw-PCM talk session. Idempotent. */
24334
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
24335
+ kind: "mutation",
24336
+ auth: "admin"
24337
+ })
24338
+ },
24339
+ events: { onStatusChanged: { data: object({
24340
+ deviceId: number(),
24341
+ status: IntercomStatusSchema
24342
+ }) } },
24343
+ status: {
24344
+ schema: IntercomStatusSchema,
24345
+ kind: "command-driven"
24346
+ },
24347
+ /**
24348
+ * Runtime-state slice — mirrored by the kernel.
24349
+ *
24350
+ * The cap declared `status` and nothing else, so the only two sources an
24351
+ * exporter has for a value — the `device.state-changed` slice event and the
24352
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
24353
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
24354
+ * have been published and never received a value, which is the defect the
24355
+ * export's two classification tables exist to prevent (177 of them, once), so
24356
+ * `intercom` was excluded rather than exported.
24357
+ *
24358
+ * The shape is the status shape: there is exactly one truth about talk-back
24359
+ * and duplicating it into a second schema is how two halves of one capability
24360
+ * come to disagree. Providers write it through
24361
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
24362
+ * and close a session, and seed it at registration so the slice exists before
24363
+ * the first session rather than after it.
24364
+ *
24365
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
24366
+ * session handle, so a session torn down by a transport death that never
24367
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
24368
+ * session or the next restart. That is why the slice is `session` and not
24369
+ * `restored` — a restart must never restore "talking".
24370
+ */
24371
+ runtimeState: IntercomStatusSchema,
24372
+ /**
24373
+ * Runtime-state durability: **session** — `talking` describes a live audio
24374
+ * session, which by definition does not survive the process that held it.
24375
+ * Restoring it would publish a camera as talking to nobody.
24376
+ *
24377
+ * See `RuntimeStateDurability`. Enforced by
24378
+ * `scripts/check-runtime-state-durability.ts`.
24379
+ */
24380
+ durability: "session"
24381
+ };
23670
24382
  /**
23671
24383
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
23672
24384
  * with a mowing lifecycle plus a dock action.
@@ -26363,7 +27075,7 @@ method(object({
26363
27075
  toMs: number()
26364
27076
  }), RecordingAvailabilitySchema, {
26365
27077
  kind: "query",
26366
- auth: "admin"
27078
+ auth: "protected"
26367
27079
  }), method(object({
26368
27080
  deviceId: number(),
26369
27081
  fromMs: number(),
@@ -26371,14 +27083,14 @@ method(object({
26371
27083
  tzOffsetMinutes: number()
26372
27084
  }), RecordingDaysSchema, {
26373
27085
  kind: "query",
26374
- auth: "admin"
27086
+ auth: "protected"
26375
27087
  }), method(object({
26376
27088
  deviceId: number(),
26377
27089
  fromMs: number(),
26378
27090
  toMs: number()
26379
27091
  }), RecordingManifestSchema, {
26380
27092
  kind: "query",
26381
- auth: "admin"
27093
+ auth: "protected"
26382
27094
  }), method(object({}), RecordingStorageUsageSchema, {
26383
27095
  kind: "query",
26384
27096
  auth: "admin"
@@ -26668,14 +27380,77 @@ method(object({
26668
27380
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
26669
27381
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
26670
27382
  *
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). */
27383
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
27384
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
27385
+ * for the thing: a scene is a standing question about the property ("is the bin
27386
+ * still out"), and the operator's question is "which of my scenes have tripped",
27387
+ * across every camera at once — not "what does camera 617 think". Buried one
27388
+ * camera deep it also could not be found. The surface is now a top-level admin
27389
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
27390
+ * picks the camera inside the create flow, the same shape Events and Faces have.
27391
+ *
27392
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
27393
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
27394
+ * directions, so a registration nobody declares fails exactly as loudly as a
27395
+ * declaration nobody registers. The editor is imported directly by the page.
27396
+ *
27397
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
27398
+ * availability change; consumers never poll.
27399
+ */
27400
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
27401
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
27402
+ * Open by design so more can be added without a wire break.
27403
+ *
27404
+ * Matching does NOT fall back across conditions: cross-condition cosines are
27405
+ * not comparable, so "I have never seen this scene in this light" is reported
27406
+ * as `unknown`, never guessed. A day reference scored against an IR frame
27407
+ * collapses the cosine and would latch a false alarm every single night. */
26678
27408
  var SceneConditionSchema = string();
27409
+ /**
27410
+ * What a scene does when the CURRENT light has no reference of its own.
27411
+ *
27412
+ * The lighting variants are not equally likely to exist. Almost every operator
27413
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
27414
+ * scene that is only ever going to be asked about a daytime question ("is the
27415
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
27416
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
27417
+ * working without it rather than degrading into a permanent complaint.
27418
+ *
27419
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
27420
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
27421
+ * last covered light left it at, the latch is untouched, and the hysteresis
27422
+ * run is neither spent nor cleared. The scene resumes by itself at first
27423
+ * light. This is the only behaviour under which "I never captured IR" is a
27424
+ * configuration choice instead of a nightly fault.
27425
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
27426
+ * for cameras whose IR frame is close enough to daylight (a floodlit
27427
+ * driveway, an always-white-light doorbell), and wrong for everything else:
27428
+ * cross-condition cosines are not comparable, so a day reference against a
27429
+ * true IR frame collapses and the scene reports a theft at 21:40.
27430
+ *
27431
+ * Never applies when the scene has NO comparable reference at all — that is
27432
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
27433
+ * there would hide a scene the operator never finished setting up.
27434
+ */
27435
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
27436
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
27437
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
27438
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
27439
+ * and never counts toward hysteresis in either direction. */
27440
+ var SceneVerdictSchema = _enum([
27441
+ "matched",
27442
+ "diverged",
27443
+ "unknown"
27444
+ ]);
27445
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
27446
+ * silence that reads as "nothing has happened". */
27447
+ var SceneUnavailableSchema = _enum([
27448
+ "no-reference-for-condition",
27449
+ "view-shifted",
27450
+ "no-vision-profile",
27451
+ "encoder-model-changed",
27452
+ "no-snapshot"
27453
+ ]);
26679
27454
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
26680
27455
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
26681
27456
  var SceneReferenceSchema = object({
@@ -26683,7 +27458,14 @@ var SceneReferenceSchema = object({
26683
27458
  modelId: string(),
26684
27459
  condition: SceneConditionSchema,
26685
27460
  capturedAt: number(),
26686
- thumbnailMediaId: string().optional()
27461
+ thumbnailMediaId: string().optional(),
27462
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
27463
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
27464
+ * normalized rect frame a different piece of world, and the scene would
27465
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
27466
+ * when hysteresis is about to flip — one extra encode per candidate
27467
+ * transition, not per poll. */
27468
+ anchorEmbedding: array(number()).optional()
26687
27469
  });
26688
27470
  var SceneMonitorStateSchema = object({
26689
27471
  id: string(),
@@ -26705,6 +27487,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26705
27487
  profileId: string().optional(),
26706
27488
  hysteresisCount: number().int().positive()
26707
27489
  })]);
27490
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
27491
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
27492
+ * out in silence rather than reporting a fault every night. */
27493
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
27494
+ /**
27495
+ * Vision-model adjudication of a candidate flip. Field names deliberately
27496
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
27497
+ *
27498
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
27499
+ * fail-open: a notification suppressed is the worse error there, but a vision
27500
+ * model that timed out has not told us the bin is gone, and a latch is a
27501
+ * stateful claim that costs the operator a trip to reset.
27502
+ */
27503
+ var SceneConfirmSchema = object({
27504
+ enabled: boolean().default(false),
27505
+ prompt: string().min(1).max(1e3),
27506
+ profileId: string().optional(),
27507
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
27508
+ maxImagePx: number().int().min(64).max(2048).default(448),
27509
+ /** What a timeout / unavailable model means for the PENDING flip. */
27510
+ onTimeout: _enum(["flip", "hold"]).default("hold")
27511
+ });
26708
27512
  var SceneMonitorSchema = object({
26709
27513
  id: string(),
26710
27514
  label: string(),
@@ -26723,7 +27527,56 @@ var SceneMonitorSchema = object({
26723
27527
  lastConfidence: number().nullable(),
26724
27528
  currentCondition: SceneConditionSchema.nullable(),
26725
27529
  availability: _enum(["ok", "unavailable"]),
26726
- unavailableReason: string().nullable()
27530
+ unavailableReason: string().nullable(),
27531
+ /** Which state is "the initial screen". `null` until the first capture. */
27532
+ baselineStateId: string().nullable(),
27533
+ /** Which boolean drives notification rules and any export. */
27534
+ emit: _enum(["latched", "live"]).default("latched"),
27535
+ /** Live: does the region match the baseline RIGHT NOW. */
27536
+ verdict: SceneVerdictSchema,
27537
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
27538
+ latched: boolean(),
27539
+ /** Last reset (or creation). */
27540
+ armedAt: number(),
27541
+ divergedAt: number().nullable(),
27542
+ restoredAt: number().nullable(),
27543
+ /** A check is only COUNTED when the device has been quiet this long. Motion
27544
+ * during the window DISCARDS the observation — a car pulling up in front of
27545
+ * the bin must not be able to spend hysteresis credit. */
27546
+ quietSeconds: number().int().min(0).max(3600).default(60),
27547
+ /** An observation only advances the pending count when it is at least this
27548
+ * far from the previously counted one, so N agreeing checks span real time
27549
+ * rather than N adjacent polls inside one occlusion. */
27550
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
27551
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
27552
+ confirm: SceneConfirmSchema.optional(),
27553
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
27554
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
27555
+ /** Clear the latch on its own when the scene matches again? Default false —
27556
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
27557
+ * automation can react to the bin coming back without the operator's own
27558
+ * alarm silently clearing itself. */
27559
+ autoRestore: boolean().default(false),
27560
+ /** What to do when the current light has no reference of its own. See
27561
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
27562
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
27563
+ /**
27564
+ * The light whose checks are currently being SAT OUT under
27565
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
27566
+ *
27567
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
27568
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
27569
+ * nothing captured in this light"* in the same calm voice as the coverage
27570
+ * line, because the alternative is a scene that silently stops answering
27571
+ * after sunset with nothing anywhere saying why. A skipped check must never
27572
+ * read as a broken one.
27573
+ */
27574
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
27575
+ /** Named cause when `verdict === 'unknown'`. */
27576
+ unavailable: SceneUnavailableSchema.nullable(),
27577
+ /** Conditions that have at least one comparable reference — the coverage line
27578
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
27579
+ coveredConditions: array(SceneConditionSchema)
26727
27580
  });
26728
27581
  var SceneMonitorStatusSchema = object({
26729
27582
  monitors: array(SceneMonitorSchema),
@@ -26736,12 +27589,6 @@ var sceneMonitorCapability = {
26736
27589
  kind: "wrapper",
26737
27590
  defaultActive: true,
26738
27591
  deviceTypes: [DeviceType.Camera],
26739
- deviceConfig: { ui: {
26740
- kind: "widget",
26741
- widgetId: "host/scene-monitor-editor",
26742
- tab: "scenes",
26743
- label: "Scenes"
26744
- } },
26745
27592
  methods: {
26746
27593
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
26747
27594
  createScene: method(object({
@@ -26772,7 +27619,15 @@ var sceneMonitorCapability = {
26772
27619
  "both"
26773
27620
  ]).optional(),
26774
27621
  checkIntervalSec: number().optional(),
26775
- check: SceneCheckSchema.optional()
27622
+ check: SceneCheckSchema.optional(),
27623
+ emit: _enum(["latched", "live"]).optional(),
27624
+ quietSeconds: number().int().min(0).max(3600).optional(),
27625
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
27626
+ anchorThreshold: number().min(0).max(1).optional(),
27627
+ autoRestore: boolean().optional(),
27628
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
27629
+ /** `null` clears the vision-model adjudicator. */
27630
+ confirm: SceneConfirmSchema.nullable().optional()
26776
27631
  })
26777
27632
  }), _void(), {
26778
27633
  kind: "mutation",
@@ -26813,6 +27668,26 @@ var sceneMonitorCapability = {
26813
27668
  }), _void(), {
26814
27669
  kind: "mutation",
26815
27670
  auth: "admin"
27671
+ }),
27672
+ /**
27673
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
27674
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
27675
+ * "reset" in the operator's head means *this is the new normal*, and
27676
+ * re-capture is what makes the feature self-healing against slow drift
27677
+ * instead of failing silently weeks later.
27678
+ *
27679
+ * Reachable from three surfaces on this one mutation: the scene card, a
27680
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27681
+ * no new Notification-Center code at all), and tRPC for scripts.
27682
+ */
27683
+ resetScene: method(object({
27684
+ deviceId: number(),
27685
+ monitorId: string(),
27686
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27687
+ recapture: boolean().optional()
27688
+ }), _void(), {
27689
+ kind: "mutation",
27690
+ auth: "admin"
26816
27691
  })
26817
27692
  },
26818
27693
  status: {
@@ -27049,7 +27924,70 @@ var CamStreamDescriptorSchema = object({
27049
27924
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
27050
27925
  metadata: record(string(), unknown()).optional()
27051
27926
  });
27052
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
27927
+ /**
27928
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
27929
+ * of the removed `publishCameraStream` push: a camera provider returns the full
27930
+ * set of stream descriptors it can offer for the device, synchronously, so the
27931
+ * broker can reconcile its registry against the authoritative provider state.
27932
+ */
27933
+ /**
27934
+ * The catalog as a DURABLE fact rather than a live answer.
27935
+ *
27936
+ * A battery camera's descriptors are profile-stable — they change when the
27937
+ * operator rewrites an encoder profile, not minute to minute — but building
27938
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
27939
+ * provider is allowed to build them exactly once per profile and must serve
27940
+ * every later pull from a cache.
27941
+ *
27942
+ * Holding that cache only in RAM is what turned a restart into an outage. The
27943
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
27944
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
27945
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
27946
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
27947
+ * which on a battery cam is most of the day. The camera was fine. The stream
27948
+ * was unreachable because the process had forgotten what the camera offers.
27949
+ *
27950
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
27951
+ * declared collection, with the same `restored` durability `battery` uses for
27952
+ * the same reason: the last known value is the only value there is while the
27953
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
27954
+ * is the DIAL that wakes a camera, never the catalog (D173).
27955
+ */
27956
+ var StreamCatalogStateSchema = object({
27957
+ /** The descriptors as last built from a real camera response. Never a guess:
27958
+ * a failed or refused build writes NOTHING, so a restored catalog is always
27959
+ * one the camera itself once produced. */
27960
+ descriptors: array(CamStreamDescriptorSchema),
27961
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
27962
+ * path decide whether the camera's own awake window is worth spending on a
27963
+ * re-read. */
27964
+ lastFetchedAt: number()
27965
+ });
27966
+ var streamCatalogCapability = {
27967
+ name: "stream-catalog",
27968
+ scope: "device",
27969
+ deviceNative: true,
27970
+ mode: "singleton",
27971
+ deviceTypes: [DeviceType.Camera],
27972
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
27973
+ runtimeState: StreamCatalogStateSchema,
27974
+ /**
27975
+ * Runtime-state durability: **restored** — see the schema doc. A cold
27976
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
27977
+ * camera that cannot be watched at all until it happens to wake.
27978
+ *
27979
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
27980
+ * build, and a build only runs when there is no cached copy (or the copy is
27981
+ * a day old and the camera is awake anyway).
27982
+ *
27983
+ * See `RuntimeStateDurability`. Enforced by
27984
+ * `scripts/check-runtime-state-durability.ts`.
27985
+ */
27986
+ durability: "restored",
27987
+ /** Clock field: written, but excluded from the compare that decides whether
27988
+ * persisting is worth a SQLite commit — the descriptors are the value. */
27989
+ volatileStateFields: ["lastFetchedAt"]
27990
+ };
27053
27991
  /** One of the camera's stream profiles. */
27054
27992
  var StreamProfileSchema = _enum([
27055
27993
  "main",
@@ -27303,12 +28241,64 @@ var NetworkAddressSchema = object({
27303
28241
  family: string(),
27304
28242
  internal: boolean()
27305
28243
  });
28244
+ /**
28245
+ * Provenance of the site coordinates, and the whole reason this is not just two
28246
+ * numbers.
28247
+ *
28248
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
28249
+ * nothing overwrites it.
28250
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
28251
+ * default that is right to a few kilometres beats the coarse UTC clock split
28252
+ * the sun-times consumers otherwise fall back to.
28253
+ *
28254
+ * The UI shows which one it is. An operator who cannot tell a guess from their
28255
+ * own input will eventually trust the guess.
28256
+ */
28257
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
28258
+ /**
28259
+ * The read shape: the location plus the honest state of the one-shot derivation.
28260
+ *
28261
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
28262
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
28263
+ * failed; the hub will NOT try again on its own — the fallback is declared
28264
+ * (consumers degrade to their own last resort) and the operator either types the
28265
+ * coordinates or presses detect.
28266
+ */
28267
+ var SiteLocationStatusSchema = object({
28268
+ location: object({
28269
+ /** WGS84 decimal degrees. */
28270
+ latitude: number().min(-90).max(90),
28271
+ longitude: number().min(-180).max(180),
28272
+ source: SiteLocationSourceSchema,
28273
+ /** Epoch ms the value was last written. */
28274
+ updatedAt: number(),
28275
+ /**
28276
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
28277
+ * only — never parsed, never matched on. Absent for an operator-typed value.
28278
+ */
28279
+ label: string().optional()
28280
+ }).nullable(),
28281
+ derivationAttemptedAt: number().nullable(),
28282
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
28283
+ derivationError: string().nullable()
28284
+ });
28285
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
28286
+ var SetSiteLocationInputSchema = object({
28287
+ latitude: number().min(-90).max(90),
28288
+ longitude: number().min(-180).max(180)
28289
+ }).nullable();
27306
28290
  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
28291
  kind: "mutation",
27308
28292
  auth: "admin"
27309
28293
  }), method(_void(), _void(), {
27310
28294
  kind: "mutation",
27311
28295
  auth: "admin"
28296
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
28297
+ kind: "mutation",
28298
+ auth: "admin"
28299
+ }), method(_void(), SiteLocationStatusSchema, {
28300
+ kind: "mutation",
28301
+ auth: "admin"
27312
28302
  });
27313
28303
  /**
27314
28304
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -28628,6 +29618,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28628
29618
  humiditySensor: humiditySensorCapability,
28629
29619
  image: imageCapability,
28630
29620
  imageSettings: imageSettingsCapability,
29621
+ intercom: intercomCapability,
28631
29622
  lawnMowerControl: lawnMowerControlCapability,
28632
29623
  lockControl: lockControlCapability,
28633
29624
  mediaPlayer: mediaPlayerCapability,
@@ -28646,6 +29637,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28646
29637
  sceneMonitor: sceneMonitorCapability,
28647
29638
  scriptRunner: scriptRunnerCapability,
28648
29639
  smoke: smokeCapability,
29640
+ streamCatalog: streamCatalogCapability,
28649
29641
  streamParams: streamParamsCapability,
28650
29642
  switch: switchCapability,
28651
29643
  tamper: tamperCapability,
@@ -29299,6 +30291,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29299
30291
  labels: ["probe not implemented"]
29300
30292
  };
29301
30293
  }
30294
+ /**
30295
+ * Top-level devices restored at once in {@link onRestoreDevices}.
30296
+ *
30297
+ * Four covers the fleets this ships to without turning a boot into a burst a
30298
+ * camera NVR answers with a refusal. A provider whose upstream is a single
30299
+ * session with a serial command channel (a Baichuan hub, an NVR that
30300
+ * serialises ISAPI) should lower it; nothing needs to raise it.
30301
+ */
30302
+ restoreConcurrency = 4;
29302
30303
  async restoreDevices(savedDevices) {
29303
30304
  await this.onRestoreDevices(savedDevices);
29304
30305
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -29330,15 +30331,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29330
30331
  */
29331
30332
  async onRestoreDevices(savedDevices) {
29332
30333
  const restored = /* @__PURE__ */ new Set();
29333
- for (const saved of savedDevices) {
29334
- if (saved.parentDeviceId !== null) continue;
30334
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
30335
+ const restoreOne = async (saved) => {
29335
30336
  const Class = this.deviceClasses[saved.type];
29336
30337
  if (!Class) {
29337
30338
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
29338
30339
  tags: { stableId: saved.stableId },
29339
30340
  meta: { type: saved.type }
29340
30341
  });
29341
- continue;
30342
+ return;
29342
30343
  }
29343
30344
  try {
29344
30345
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -29352,7 +30353,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29352
30353
  }
29353
30354
  });
29354
30355
  }
29355
- }
30356
+ };
30357
+ let nextTopLevel = 0;
30358
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
30359
+ for (;;) {
30360
+ const saved = topLevel[nextTopLevel++];
30361
+ if (saved === void 0) return;
30362
+ await restoreOne(saved);
30363
+ }
30364
+ }));
29356
30365
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
29357
30366
  for (const saved of childRows) {
29358
30367
  const Class = this.deviceClasses[saved.type];
@@ -31443,6 +32452,12 @@ Object.freeze({
31443
32452
  addonId: null,
31444
32453
  access: "create"
31445
32454
  },
32455
+ "llm.cancel": {
32456
+ capName: "llm",
32457
+ capScope: "system",
32458
+ addonId: null,
32459
+ access: "create"
32460
+ },
31446
32461
  "llm.deleteModel": {
31447
32462
  capName: "llm",
31448
32463
  capScope: "system",
@@ -31527,6 +32542,12 @@ Object.freeze({
31527
32542
  addonId: null,
31528
32543
  access: "view"
31529
32544
  },
32545
+ "llm.resolveModelRef": {
32546
+ capName: "llm",
32547
+ capScope: "system",
32548
+ addonId: null,
32549
+ access: "create"
32550
+ },
31530
32551
  "llm.setDefault": {
31531
32552
  capName: "llm",
31532
32553
  capScope: "system",
@@ -33693,6 +34714,12 @@ Object.freeze({
33693
34714
  addonId: null,
33694
34715
  access: "create"
33695
34716
  },
34717
+ "sceneMonitor.resetScene": {
34718
+ capName: "scene-monitor",
34719
+ capScope: "device",
34720
+ addonId: null,
34721
+ access: "delete"
34722
+ },
33696
34723
  "sceneMonitor.updateScene": {
33697
34724
  capName: "scene-monitor",
33698
34725
  capScope: "device",
@@ -33831,6 +34858,12 @@ Object.freeze({
33831
34858
  addonId: null,
33832
34859
  access: "view"
33833
34860
  },
34861
+ "snapshot.getDebugState": {
34862
+ capName: "snapshot",
34863
+ capScope: "device",
34864
+ addonId: null,
34865
+ access: "view"
34866
+ },
33834
34867
  "snapshot.getSnapshot": {
33835
34868
  capName: "snapshot",
33836
34869
  capScope: "device",
@@ -34371,6 +35404,12 @@ Object.freeze({
34371
35404
  addonId: null,
34372
35405
  access: "create"
34373
35406
  },
35407
+ "system.detectSiteLocation": {
35408
+ capName: "system",
35409
+ capScope: "system",
35410
+ addonId: null,
35411
+ access: "create"
35412
+ },
34374
35413
  "system.featureFlags": {
34375
35414
  capName: "system",
34376
35415
  capScope: "system",
@@ -34389,6 +35428,12 @@ Object.freeze({
34389
35428
  addonId: null,
34390
35429
  access: "view"
34391
35430
  },
35431
+ "system.getSiteLocation": {
35432
+ capName: "system",
35433
+ capScope: "system",
35434
+ addonId: null,
35435
+ access: "view"
35436
+ },
34392
35437
  "system.health": {
34393
35438
  capName: "system",
34394
35439
  capScope: "system",
@@ -34413,6 +35458,12 @@ Object.freeze({
34413
35458
  addonId: null,
34414
35459
  access: "create"
34415
35460
  },
35461
+ "system.setSiteLocation": {
35462
+ capName: "system",
35463
+ capScope: "system",
35464
+ addonId: null,
35465
+ access: "create"
35466
+ },
34416
35467
  "terminalSession.adoptLegacyMonitor": {
34417
35468
  capName: "terminal-session",
34418
35469
  capScope: "system",
@@ -34984,6 +36035,1709 @@ Object.freeze({
34984
36035
  access: "create"
34985
36036
  }
34986
36037
  });
36038
+ Object.freeze({
36039
+ "accessories.setChildHidden": [{
36040
+ name: "childDeviceId",
36041
+ form: "single",
36042
+ optional: false
36043
+ }, {
36044
+ name: "deviceId",
36045
+ form: "single",
36046
+ optional: false
36047
+ }],
36048
+ "addonSettings.getDeviceSettings": [{
36049
+ name: "deviceId",
36050
+ form: "single",
36051
+ optional: false
36052
+ }],
36053
+ "addonSettings.updateDeviceSettings": [{
36054
+ name: "deviceId",
36055
+ form: "single",
36056
+ optional: false
36057
+ }],
36058
+ "alarmPanel.arm": [{
36059
+ name: "deviceId",
36060
+ form: "single",
36061
+ optional: false
36062
+ }],
36063
+ "alarmPanel.disarm": [{
36064
+ name: "deviceId",
36065
+ form: "single",
36066
+ optional: false
36067
+ }],
36068
+ "alarmPanel.trigger": [{
36069
+ name: "deviceId",
36070
+ form: "single",
36071
+ optional: false
36072
+ }],
36073
+ "audioAnalysis.resolveDeviceSettings": [{
36074
+ name: "deviceId",
36075
+ form: "single",
36076
+ optional: false
36077
+ }],
36078
+ "audioAnalyzer.classify": [{
36079
+ name: "deviceId",
36080
+ form: "single",
36081
+ optional: true
36082
+ }],
36083
+ "audioMetrics.getCurrentSnapshot": [{
36084
+ name: "deviceId",
36085
+ form: "single",
36086
+ optional: false
36087
+ }],
36088
+ "audioMetrics.getHistory": [{
36089
+ name: "deviceId",
36090
+ form: "single",
36091
+ optional: false
36092
+ }],
36093
+ "automationControl.disable": [{
36094
+ name: "deviceId",
36095
+ form: "single",
36096
+ optional: false
36097
+ }],
36098
+ "automationControl.enable": [{
36099
+ name: "deviceId",
36100
+ form: "single",
36101
+ optional: false
36102
+ }],
36103
+ "automationControl.trigger": [{
36104
+ name: "deviceId",
36105
+ form: "single",
36106
+ optional: false
36107
+ }],
36108
+ "battery.wakeForStream": [{
36109
+ name: "deviceId",
36110
+ form: "single",
36111
+ optional: false
36112
+ }],
36113
+ "brightness.setBrightness": [{
36114
+ name: "deviceId",
36115
+ form: "single",
36116
+ optional: false
36117
+ }],
36118
+ "button.press": [{
36119
+ name: "deviceId",
36120
+ form: "single",
36121
+ optional: false
36122
+ }],
36123
+ "cameraCredentials.getCredentials": [{
36124
+ name: "deviceId",
36125
+ form: "single",
36126
+ optional: false
36127
+ }],
36128
+ "cameraStreams.getBrokerStreams": [{
36129
+ name: "deviceId",
36130
+ form: "single",
36131
+ optional: false
36132
+ }],
36133
+ "cameraStreams.getCameraStreams": [{
36134
+ name: "deviceId",
36135
+ form: "single",
36136
+ optional: false
36137
+ }],
36138
+ "cameraStreams.getProfileRtspEntries": [{
36139
+ name: "deviceId",
36140
+ form: "single",
36141
+ optional: false
36142
+ }],
36143
+ "cameraStreams.getRtspEntries": [{
36144
+ name: "deviceId",
36145
+ form: "single",
36146
+ optional: false
36147
+ }],
36148
+ "cameraStreams.pickStream": [{
36149
+ name: "deviceId",
36150
+ form: "single",
36151
+ optional: false
36152
+ }],
36153
+ "climateControl.setFanMode": [{
36154
+ name: "deviceId",
36155
+ form: "single",
36156
+ optional: false
36157
+ }],
36158
+ "climateControl.setMode": [{
36159
+ name: "deviceId",
36160
+ form: "single",
36161
+ optional: false
36162
+ }],
36163
+ "climateControl.setPreset": [{
36164
+ name: "deviceId",
36165
+ form: "single",
36166
+ optional: false
36167
+ }],
36168
+ "climateControl.setSwingHorizontal": [{
36169
+ name: "deviceId",
36170
+ form: "single",
36171
+ optional: false
36172
+ }],
36173
+ "climateControl.setSwingVertical": [{
36174
+ name: "deviceId",
36175
+ form: "single",
36176
+ optional: false
36177
+ }],
36178
+ "climateControl.setTarget": [{
36179
+ name: "deviceId",
36180
+ form: "single",
36181
+ optional: false
36182
+ }],
36183
+ "climateControl.setTargetHumidity": [{
36184
+ name: "deviceId",
36185
+ form: "single",
36186
+ optional: false
36187
+ }],
36188
+ "climateControl.setTargetRange": [{
36189
+ name: "deviceId",
36190
+ form: "single",
36191
+ optional: false
36192
+ }],
36193
+ "color.setColor": [{
36194
+ name: "deviceId",
36195
+ form: "single",
36196
+ optional: false
36197
+ }],
36198
+ "consumables.reset": [{
36199
+ name: "deviceId",
36200
+ form: "single",
36201
+ optional: false
36202
+ }],
36203
+ "control.setValue": [{
36204
+ name: "deviceId",
36205
+ form: "single",
36206
+ optional: false
36207
+ }],
36208
+ "cover.close": [{
36209
+ name: "deviceId",
36210
+ form: "single",
36211
+ optional: false
36212
+ }],
36213
+ "cover.open": [{
36214
+ name: "deviceId",
36215
+ form: "single",
36216
+ optional: false
36217
+ }],
36218
+ "cover.setPosition": [{
36219
+ name: "deviceId",
36220
+ form: "single",
36221
+ optional: false
36222
+ }],
36223
+ "cover.setTiltPosition": [{
36224
+ name: "deviceId",
36225
+ form: "single",
36226
+ optional: false
36227
+ }],
36228
+ "cover.stop": [{
36229
+ name: "deviceId",
36230
+ form: "single",
36231
+ optional: false
36232
+ }],
36233
+ "dayNight.getOptions": [{
36234
+ name: "deviceId",
36235
+ form: "single",
36236
+ optional: false
36237
+ }],
36238
+ "dayNight.setSettings": [{
36239
+ name: "deviceId",
36240
+ form: "single",
36241
+ optional: false
36242
+ }],
36243
+ "decoder.createSession": [{
36244
+ name: "deviceId",
36245
+ form: "single",
36246
+ optional: true
36247
+ }],
36248
+ "deviceAdoption.release": [{
36249
+ name: "camDeviceId",
36250
+ form: "single",
36251
+ optional: false
36252
+ }],
36253
+ "deviceAdoption.resync": [{
36254
+ name: "camDeviceId",
36255
+ form: "single",
36256
+ optional: false
36257
+ }],
36258
+ "deviceDiscovery.adoptDevice": [{
36259
+ name: "deviceId",
36260
+ form: "single",
36261
+ optional: false
36262
+ }],
36263
+ "deviceDiscovery.listDiscovered": [{
36264
+ name: "deviceId",
36265
+ form: "single",
36266
+ optional: false
36267
+ }],
36268
+ "deviceDiscovery.refreshDiscovery": [{
36269
+ name: "deviceId",
36270
+ form: "single",
36271
+ optional: false
36272
+ }],
36273
+ "deviceDiscovery.releaseDevice": [{
36274
+ name: "childDeviceId",
36275
+ form: "single",
36276
+ optional: false
36277
+ }, {
36278
+ name: "deviceId",
36279
+ form: "single",
36280
+ optional: false
36281
+ }],
36282
+ "deviceManager.adoptionRelease": [{
36283
+ name: "camDeviceId",
36284
+ form: "single",
36285
+ optional: false
36286
+ }],
36287
+ "deviceManager.adoptionResync": [{
36288
+ name: "camDeviceId",
36289
+ form: "single",
36290
+ optional: false
36291
+ }],
36292
+ "deviceManager.applyInitialMeta": [{
36293
+ name: "deviceId",
36294
+ form: "single",
36295
+ optional: false
36296
+ }, {
36297
+ name: "linkDeviceId",
36298
+ form: "single",
36299
+ optional: true
36300
+ }],
36301
+ "deviceManager.disable": [{
36302
+ name: "deviceId",
36303
+ form: "single",
36304
+ optional: false
36305
+ }],
36306
+ "deviceManager.enable": [{
36307
+ name: "deviceId",
36308
+ form: "single",
36309
+ optional: false
36310
+ }],
36311
+ "deviceManager.getBindings": [{
36312
+ name: "deviceId",
36313
+ form: "single",
36314
+ optional: false
36315
+ }],
36316
+ "deviceManager.getChildren": [{
36317
+ name: "parentDeviceId",
36318
+ form: "single",
36319
+ optional: false
36320
+ }],
36321
+ "deviceManager.getConfigSchema": [{
36322
+ name: "deviceId",
36323
+ form: "single",
36324
+ optional: false
36325
+ }],
36326
+ "deviceManager.getDevice": [{
36327
+ name: "deviceId",
36328
+ form: "single",
36329
+ optional: false
36330
+ }],
36331
+ "deviceManager.getDeviceAggregate": [{
36332
+ name: "deviceId",
36333
+ form: "single",
36334
+ optional: false
36335
+ }],
36336
+ "deviceManager.getDeviceLiveInfoAggregate": [{
36337
+ name: "deviceId",
36338
+ form: "single",
36339
+ optional: false
36340
+ }],
36341
+ "deviceManager.getDeviceSettingsAggregate": [{
36342
+ name: "deviceId",
36343
+ form: "single",
36344
+ optional: false
36345
+ }],
36346
+ "deviceManager.getDeviceStatusAggregate": [{
36347
+ name: "deviceId",
36348
+ form: "single",
36349
+ optional: false
36350
+ }],
36351
+ "deviceManager.getDeviceStatusAggregateBatch": [{
36352
+ name: "deviceIds",
36353
+ form: "array",
36354
+ optional: false
36355
+ }],
36356
+ "deviceManager.getLinkedDevices": [{
36357
+ name: "deviceId",
36358
+ form: "single",
36359
+ optional: false
36360
+ }],
36361
+ "deviceManager.getSettingsSchema": [{
36362
+ name: "deviceId",
36363
+ form: "single",
36364
+ optional: false
36365
+ }],
36366
+ "deviceManager.getStreamProfileMap": [{
36367
+ name: "deviceId",
36368
+ form: "single",
36369
+ optional: false
36370
+ }],
36371
+ "deviceManager.getStreamSources": [{
36372
+ name: "deviceId",
36373
+ form: "single",
36374
+ optional: false
36375
+ }],
36376
+ "deviceManager.getWireableFields": [{
36377
+ name: "deviceId",
36378
+ form: "single",
36379
+ optional: false
36380
+ }],
36381
+ "deviceManager.loadConfig": [{
36382
+ name: "deviceId",
36383
+ form: "single",
36384
+ optional: false
36385
+ }],
36386
+ "deviceManager.loadMeta": [{
36387
+ name: "deviceId",
36388
+ form: "single",
36389
+ optional: false
36390
+ }],
36391
+ "deviceManager.loadRuntimeState": [{
36392
+ name: "deviceId",
36393
+ form: "single",
36394
+ optional: false
36395
+ }],
36396
+ "deviceManager.persistConfig": [{
36397
+ name: "deviceId",
36398
+ form: "single",
36399
+ optional: false
36400
+ }],
36401
+ "deviceManager.probeStreams": [{
36402
+ name: "deviceId",
36403
+ form: "single",
36404
+ optional: false
36405
+ }],
36406
+ "deviceManager.registerDevice": [{
36407
+ name: "parentDeviceId",
36408
+ form: "single",
36409
+ optional: true
36410
+ }],
36411
+ "deviceManager.remove": [{
36412
+ name: "deviceId",
36413
+ form: "single",
36414
+ optional: false
36415
+ }],
36416
+ "deviceManager.removeDevice": [{
36417
+ name: "deviceId",
36418
+ form: "single",
36419
+ optional: false
36420
+ }],
36421
+ "deviceManager.runDeviceAction": [{
36422
+ name: "deviceId",
36423
+ form: "single",
36424
+ optional: false
36425
+ }],
36426
+ "deviceManager.setChildLayout": [{
36427
+ name: "deviceId",
36428
+ form: "single",
36429
+ optional: false
36430
+ }],
36431
+ "deviceManager.setDisabled": [{
36432
+ name: "deviceId",
36433
+ form: "single",
36434
+ optional: false
36435
+ }],
36436
+ "deviceManager.setDisplay": [{
36437
+ name: "deviceId",
36438
+ form: "single",
36439
+ optional: false
36440
+ }],
36441
+ "deviceManager.setIntegrationId": [{
36442
+ name: "deviceId",
36443
+ form: "single",
36444
+ optional: false
36445
+ }],
36446
+ "deviceManager.setLinkDeviceId": [{
36447
+ name: "deviceId",
36448
+ form: "single",
36449
+ optional: false
36450
+ }, {
36451
+ name: "linkDeviceId",
36452
+ form: "single",
36453
+ optional: true
36454
+ }],
36455
+ "deviceManager.setLocation": [{
36456
+ name: "deviceId",
36457
+ form: "single",
36458
+ optional: false
36459
+ }],
36460
+ "deviceManager.setMetadata": [{
36461
+ name: "deviceId",
36462
+ form: "single",
36463
+ optional: false
36464
+ }],
36465
+ "deviceManager.setName": [{
36466
+ name: "deviceId",
36467
+ form: "single",
36468
+ optional: false
36469
+ }],
36470
+ "deviceManager.setPrimaryChildEntityId": [{
36471
+ name: "deviceId",
36472
+ form: "single",
36473
+ optional: false
36474
+ }],
36475
+ "deviceManager.setRole": [{
36476
+ name: "deviceId",
36477
+ form: "single",
36478
+ optional: false
36479
+ }],
36480
+ "deviceManager.setStreamProfileMap": [{
36481
+ name: "deviceId",
36482
+ form: "single",
36483
+ optional: false
36484
+ }],
36485
+ "deviceManager.setType": [{
36486
+ name: "deviceId",
36487
+ form: "single",
36488
+ optional: false
36489
+ }],
36490
+ "deviceManager.setWrapperActive": [{
36491
+ name: "deviceId",
36492
+ form: "single",
36493
+ optional: false
36494
+ }],
36495
+ "deviceManager.testField": [{
36496
+ name: "deviceId",
36497
+ form: "single",
36498
+ optional: false
36499
+ }],
36500
+ "deviceManager.updateConfig": [{
36501
+ name: "deviceId",
36502
+ form: "single",
36503
+ optional: false
36504
+ }],
36505
+ "deviceManager.updateDeviceField": [{
36506
+ name: "deviceId",
36507
+ form: "single",
36508
+ optional: false
36509
+ }],
36510
+ "deviceManager.updateDeviceFieldsBatch": [{
36511
+ name: "deviceId",
36512
+ form: "single",
36513
+ optional: false
36514
+ }],
36515
+ "deviceOps.getConfigEntries": [{
36516
+ name: "deviceId",
36517
+ form: "single",
36518
+ optional: false
36519
+ }],
36520
+ "deviceOps.getRawState": [{
36521
+ name: "deviceId",
36522
+ form: "single",
36523
+ optional: false
36524
+ }],
36525
+ "deviceOps.getSettingsSchema": [{
36526
+ name: "deviceId",
36527
+ form: "single",
36528
+ optional: false
36529
+ }],
36530
+ "deviceOps.getStreamSources": [{
36531
+ name: "deviceId",
36532
+ form: "single",
36533
+ optional: false
36534
+ }],
36535
+ "deviceOps.removeDevice": [{
36536
+ name: "deviceId",
36537
+ form: "single",
36538
+ optional: false
36539
+ }],
36540
+ "deviceOps.runAction": [{
36541
+ name: "deviceId",
36542
+ form: "single",
36543
+ optional: false
36544
+ }],
36545
+ "deviceOps.setConfig": [{
36546
+ name: "deviceId",
36547
+ form: "single",
36548
+ optional: false
36549
+ }],
36550
+ "deviceState.getCapSlice": [{
36551
+ name: "deviceId",
36552
+ form: "single",
36553
+ optional: false
36554
+ }],
36555
+ "deviceState.getSnapshot": [{
36556
+ name: "deviceId",
36557
+ form: "single",
36558
+ optional: false
36559
+ }],
36560
+ "deviceState.setCapSlice": [{
36561
+ name: "deviceId",
36562
+ form: "single",
36563
+ optional: false
36564
+ }],
36565
+ "events.getEventClipUrl": [{
36566
+ name: "deviceId",
36567
+ form: "single",
36568
+ optional: false
36569
+ }],
36570
+ "events.getEvents": [{
36571
+ name: "deviceId",
36572
+ form: "single",
36573
+ optional: false
36574
+ }],
36575
+ "events.getEventThumbnail": [{
36576
+ name: "deviceId",
36577
+ form: "single",
36578
+ optional: false
36579
+ }],
36580
+ "faceGallery.getFaceByTrack": [{
36581
+ name: "deviceId",
36582
+ form: "single",
36583
+ optional: false
36584
+ }],
36585
+ "faceGallery.listRecentFaces": [{
36586
+ name: "deviceId",
36587
+ form: "single",
36588
+ optional: true
36589
+ }],
36590
+ "fanControl.setDirection": [{
36591
+ name: "deviceId",
36592
+ form: "single",
36593
+ optional: false
36594
+ }],
36595
+ "fanControl.setOscillating": [{
36596
+ name: "deviceId",
36597
+ form: "single",
36598
+ optional: false
36599
+ }],
36600
+ "fanControl.setPercentage": [{
36601
+ name: "deviceId",
36602
+ form: "single",
36603
+ optional: false
36604
+ }],
36605
+ "fanControl.setPreset": [{
36606
+ name: "deviceId",
36607
+ form: "single",
36608
+ optional: false
36609
+ }],
36610
+ "humidifier.setMode": [{
36611
+ name: "deviceId",
36612
+ form: "single",
36613
+ optional: false
36614
+ }],
36615
+ "humidifier.setOn": [{
36616
+ name: "deviceId",
36617
+ form: "single",
36618
+ optional: false
36619
+ }],
36620
+ "humidifier.setTargetHumidity": [{
36621
+ name: "deviceId",
36622
+ form: "single",
36623
+ optional: false
36624
+ }],
36625
+ "imageSettings.getOptions": [{
36626
+ name: "deviceId",
36627
+ form: "single",
36628
+ optional: false
36629
+ }],
36630
+ "imageSettings.setSettings": [{
36631
+ name: "deviceId",
36632
+ form: "single",
36633
+ optional: false
36634
+ }],
36635
+ "intercom.endTalkSession": [{
36636
+ name: "deviceId",
36637
+ form: "single",
36638
+ optional: false
36639
+ }],
36640
+ "intercom.handleAnswer": [{
36641
+ name: "deviceId",
36642
+ form: "single",
36643
+ optional: false
36644
+ }],
36645
+ "intercom.pushTalkAudio": [{
36646
+ name: "deviceId",
36647
+ form: "single",
36648
+ optional: false
36649
+ }],
36650
+ "intercom.startSession": [{
36651
+ name: "deviceId",
36652
+ form: "single",
36653
+ optional: false
36654
+ }],
36655
+ "intercom.startTalkSession": [{
36656
+ name: "deviceId",
36657
+ form: "single",
36658
+ optional: false
36659
+ }],
36660
+ "intercom.stopSession": [{
36661
+ name: "deviceId",
36662
+ form: "single",
36663
+ optional: false
36664
+ }],
36665
+ "lawnMowerControl.dock": [{
36666
+ name: "deviceId",
36667
+ form: "single",
36668
+ optional: false
36669
+ }],
36670
+ "lawnMowerControl.pause": [{
36671
+ name: "deviceId",
36672
+ form: "single",
36673
+ optional: false
36674
+ }],
36675
+ "lawnMowerControl.startMowing": [{
36676
+ name: "deviceId",
36677
+ form: "single",
36678
+ optional: false
36679
+ }],
36680
+ "lockControl.lock": [{
36681
+ name: "deviceId",
36682
+ form: "single",
36683
+ optional: false
36684
+ }],
36685
+ "lockControl.open": [{
36686
+ name: "deviceId",
36687
+ form: "single",
36688
+ optional: false
36689
+ }],
36690
+ "lockControl.unlock": [{
36691
+ name: "deviceId",
36692
+ form: "single",
36693
+ optional: false
36694
+ }],
36695
+ "mediaPlayer.next": [{
36696
+ name: "deviceId",
36697
+ form: "single",
36698
+ optional: false
36699
+ }],
36700
+ "mediaPlayer.pause": [{
36701
+ name: "deviceId",
36702
+ form: "single",
36703
+ optional: false
36704
+ }],
36705
+ "mediaPlayer.play": [{
36706
+ name: "deviceId",
36707
+ form: "single",
36708
+ optional: false
36709
+ }],
36710
+ "mediaPlayer.playMedia": [{
36711
+ name: "deviceId",
36712
+ form: "single",
36713
+ optional: false
36714
+ }],
36715
+ "mediaPlayer.previous": [{
36716
+ name: "deviceId",
36717
+ form: "single",
36718
+ optional: false
36719
+ }],
36720
+ "mediaPlayer.seek": [{
36721
+ name: "deviceId",
36722
+ form: "single",
36723
+ optional: false
36724
+ }],
36725
+ "mediaPlayer.selectSource": [{
36726
+ name: "deviceId",
36727
+ form: "single",
36728
+ optional: false
36729
+ }],
36730
+ "mediaPlayer.setMute": [{
36731
+ name: "deviceId",
36732
+ form: "single",
36733
+ optional: false
36734
+ }],
36735
+ "mediaPlayer.setRepeat": [{
36736
+ name: "deviceId",
36737
+ form: "single",
36738
+ optional: false
36739
+ }],
36740
+ "mediaPlayer.setShuffle": [{
36741
+ name: "deviceId",
36742
+ form: "single",
36743
+ optional: false
36744
+ }],
36745
+ "mediaPlayer.setVolume": [{
36746
+ name: "deviceId",
36747
+ form: "single",
36748
+ optional: false
36749
+ }],
36750
+ "mediaPlayer.stop": [{
36751
+ name: "deviceId",
36752
+ form: "single",
36753
+ optional: false
36754
+ }],
36755
+ "motion.isDetected": [{
36756
+ name: "deviceId",
36757
+ form: "single",
36758
+ optional: false
36759
+ }],
36760
+ "motionDetection.analyze": [{
36761
+ name: "deviceId",
36762
+ form: "single",
36763
+ optional: false
36764
+ }],
36765
+ "motionDetection.removeCamera": [{
36766
+ name: "deviceId",
36767
+ form: "single",
36768
+ optional: false
36769
+ }],
36770
+ "motionTrigger.setMotionTrigger": [{
36771
+ name: "deviceId",
36772
+ form: "single",
36773
+ optional: false
36774
+ }],
36775
+ "motionZones.getOptions": [{
36776
+ name: "deviceId",
36777
+ form: "single",
36778
+ optional: false
36779
+ }],
36780
+ "motionZones.setZone": [{
36781
+ name: "deviceId",
36782
+ form: "single",
36783
+ optional: false
36784
+ }],
36785
+ "nativeObjectDetection.setEnabled": [{
36786
+ name: "deviceId",
36787
+ form: "single",
36788
+ optional: false
36789
+ }],
36790
+ "networkQuality.getDeviceStats": [{
36791
+ name: "deviceId",
36792
+ form: "single",
36793
+ optional: false
36794
+ }],
36795
+ "networkQuality.reportClientStats": [{
36796
+ name: "deviceId",
36797
+ form: "single",
36798
+ optional: false
36799
+ }],
36800
+ "notificationRules.setDeviceMuted": [{
36801
+ name: "deviceId",
36802
+ form: "single",
36803
+ optional: false
36804
+ }],
36805
+ "notifier.cancel": [{
36806
+ name: "deviceId",
36807
+ form: "single",
36808
+ optional: false
36809
+ }],
36810
+ "notifier.send": [{
36811
+ name: "deviceId",
36812
+ form: "single",
36813
+ optional: false
36814
+ }],
36815
+ "osd.setOverlay": [{
36816
+ name: "deviceId",
36817
+ form: "single",
36818
+ optional: false
36819
+ }],
36820
+ "osdManager.clearSlotBinding": [{
36821
+ name: "deviceId",
36822
+ form: "single",
36823
+ optional: false
36824
+ }],
36825
+ "osdManager.copyDeviceConfiguration": [{
36826
+ name: "sourceDeviceId",
36827
+ form: "single",
36828
+ optional: false
36829
+ }, {
36830
+ name: "targetDeviceId",
36831
+ form: "single",
36832
+ optional: false
36833
+ }],
36834
+ "osdManager.getDeviceOsd": [{
36835
+ name: "deviceId",
36836
+ form: "single",
36837
+ optional: false
36838
+ }],
36839
+ "osdManager.getSourceCatalog": [{
36840
+ name: "deviceId",
36841
+ form: "single",
36842
+ optional: false
36843
+ }],
36844
+ "osdManager.previewSlot": [{
36845
+ name: "deviceId",
36846
+ form: "single",
36847
+ optional: false
36848
+ }],
36849
+ "osdManager.renderDevice": [{
36850
+ name: "deviceId",
36851
+ form: "single",
36852
+ optional: false
36853
+ }],
36854
+ "osdManager.setSlotBinding": [{
36855
+ name: "deviceId",
36856
+ form: "single",
36857
+ optional: false
36858
+ }],
36859
+ "petFeeder.callPet": [{
36860
+ name: "deviceId",
36861
+ form: "single",
36862
+ optional: false
36863
+ }],
36864
+ "petFeeder.cancelFeed": [{
36865
+ name: "deviceId",
36866
+ form: "single",
36867
+ optional: false
36868
+ }],
36869
+ "petFeeder.feed": [{
36870
+ name: "deviceId",
36871
+ form: "single",
36872
+ optional: false
36873
+ }],
36874
+ "petFeeder.markFoodReplenished": [{
36875
+ name: "deviceId",
36876
+ form: "single",
36877
+ optional: false
36878
+ }],
36879
+ "petFeeder.playSound": [{
36880
+ name: "deviceId",
36881
+ form: "single",
36882
+ optional: false
36883
+ }],
36884
+ "petFeeder.resetDesiccant": [{
36885
+ name: "deviceId",
36886
+ form: "single",
36887
+ optional: false
36888
+ }],
36889
+ "petFeeder.setChildLock": [{
36890
+ name: "deviceId",
36891
+ form: "single",
36892
+ optional: false
36893
+ }],
36894
+ "petFeeder.setFeedSound": [{
36895
+ name: "deviceId",
36896
+ form: "single",
36897
+ optional: false
36898
+ }],
36899
+ "petFeeder.setIndicatorLight": [{
36900
+ name: "deviceId",
36901
+ form: "single",
36902
+ optional: false
36903
+ }],
36904
+ "petFeeder.setVolume": [{
36905
+ name: "deviceId",
36906
+ form: "single",
36907
+ optional: false
36908
+ }],
36909
+ "pipelineAnalytics.clearTracks": [{
36910
+ name: "deviceId",
36911
+ form: "single",
36912
+ optional: false
36913
+ }],
36914
+ "pipelineAnalytics.completeRetrainTrack": [{
36915
+ name: "deviceId",
36916
+ form: "single",
36917
+ optional: false
36918
+ }],
36919
+ "pipelineAnalytics.deleteDeviceEvents": [{
36920
+ name: "deviceId",
36921
+ form: "single",
36922
+ optional: false
36923
+ }],
36924
+ "pipelineAnalytics.deleteTracks": [{
36925
+ name: "deviceId",
36926
+ form: "single",
36927
+ optional: false
36928
+ }],
36929
+ "pipelineAnalytics.deselectRetrainFrame": [{
36930
+ name: "deviceId",
36931
+ form: "single",
36932
+ optional: false
36933
+ }],
36934
+ "pipelineAnalytics.getActiveTracks": [{
36935
+ name: "deviceId",
36936
+ form: "single",
36937
+ optional: false
36938
+ }],
36939
+ "pipelineAnalytics.getAudioEvents": [{
36940
+ name: "deviceId",
36941
+ form: "single",
36942
+ optional: false
36943
+ }],
36944
+ "pipelineAnalytics.getEventDensity": [{
36945
+ name: "deviceId",
36946
+ form: "single",
36947
+ optional: false
36948
+ }],
36949
+ "pipelineAnalytics.getEventMedia": [{
36950
+ name: "deviceId",
36951
+ form: "single",
36952
+ optional: false
36953
+ }],
36954
+ "pipelineAnalytics.getKeyEvents": [{
36955
+ name: "deviceId",
36956
+ form: "single",
36957
+ optional: false
36958
+ }],
36959
+ "pipelineAnalytics.getMotionEvents": [{
36960
+ name: "deviceId",
36961
+ form: "single",
36962
+ optional: false
36963
+ }],
36964
+ "pipelineAnalytics.getObjectEvents": [{
36965
+ name: "deviceId",
36966
+ form: "single",
36967
+ optional: false
36968
+ }],
36969
+ "pipelineAnalytics.getRetrainExportUrl": [{
36970
+ name: "deviceIds",
36971
+ form: "array",
36972
+ optional: true
36973
+ }],
36974
+ "pipelineAnalytics.getSensorEvents": [{
36975
+ name: "deviceId",
36976
+ form: "single",
36977
+ optional: false
36978
+ }],
36979
+ "pipelineAnalytics.getTrack": [{
36980
+ name: "deviceId",
36981
+ form: "single",
36982
+ optional: false
36983
+ }],
36984
+ "pipelineAnalytics.getTrackMedia": [{
36985
+ name: "deviceId",
36986
+ form: "single",
36987
+ optional: false
36988
+ }],
36989
+ "pipelineAnalytics.getTrainingExportSummary": [{
36990
+ name: "deviceIds",
36991
+ form: "array",
36992
+ optional: true
36993
+ }],
36994
+ "pipelineAnalytics.getTrainingExportUrl": [{
36995
+ name: "deviceIds",
36996
+ form: "array",
36997
+ optional: true
36998
+ }],
36999
+ "pipelineAnalytics.listEventKinds": [{
37000
+ name: "deviceId",
37001
+ form: "single",
37002
+ optional: false
37003
+ }],
37004
+ "pipelineAnalytics.listEventKindsBatch": [{
37005
+ name: "deviceIds",
37006
+ form: "array",
37007
+ optional: false
37008
+ }],
37009
+ "pipelineAnalytics.listOpsLog": [{
37010
+ name: "deviceId",
37011
+ form: "single",
37012
+ optional: true
37013
+ }],
37014
+ "pipelineAnalytics.listRecentTracks": [{
37015
+ name: "deviceIds",
37016
+ form: "array",
37017
+ optional: false
37018
+ }],
37019
+ "pipelineAnalytics.listRetrainStaging": [{
37020
+ name: "deviceIds",
37021
+ form: "array",
37022
+ optional: true
37023
+ }],
37024
+ "pipelineAnalytics.listTrackMedia": [{
37025
+ name: "deviceId",
37026
+ form: "single",
37027
+ optional: false
37028
+ }],
37029
+ "pipelineAnalytics.listTracks": [{
37030
+ name: "deviceId",
37031
+ form: "single",
37032
+ optional: false
37033
+ }],
37034
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
37035
+ name: "deviceId",
37036
+ form: "single",
37037
+ optional: false
37038
+ }],
37039
+ "pipelineAnalytics.pruneEventsBefore": [{
37040
+ name: "deviceId",
37041
+ form: "single",
37042
+ optional: false
37043
+ }],
37044
+ "pipelineAnalytics.pruneTracksBefore": [{
37045
+ name: "deviceId",
37046
+ form: "single",
37047
+ optional: false
37048
+ }],
37049
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
37050
+ name: "deviceId",
37051
+ form: "single",
37052
+ optional: true
37053
+ }],
37054
+ "pipelineAnalytics.restageRetrainTrack": [{
37055
+ name: "deviceId",
37056
+ form: "single",
37057
+ optional: false
37058
+ }],
37059
+ "pipelineAnalytics.saveRetrainAnnotations": [{
37060
+ name: "deviceId",
37061
+ form: "single",
37062
+ optional: false
37063
+ }],
37064
+ "pipelineAnalytics.searchObjectEvents": [{
37065
+ name: "deviceId",
37066
+ form: "single",
37067
+ optional: true
37068
+ }],
37069
+ "pipelineAnalytics.selectRetrainFrames": [{
37070
+ name: "deviceId",
37071
+ form: "single",
37072
+ optional: false
37073
+ }],
37074
+ "pipelineAnalytics.setTrackFlags": [{
37075
+ name: "deviceId",
37076
+ form: "single",
37077
+ optional: false
37078
+ }],
37079
+ "pipelineAnalytics.wipeAllAnalytics": [{
37080
+ name: "deviceId",
37081
+ form: "single",
37082
+ optional: false
37083
+ }],
37084
+ "pipelineExecutor.runPipeline": [{
37085
+ name: "deviceId",
37086
+ form: "single",
37087
+ optional: true
37088
+ }],
37089
+ "pipelineExecutor.runPipelineBatch": [{
37090
+ name: "deviceId",
37091
+ form: "single",
37092
+ optional: true
37093
+ }],
37094
+ "pipelineOrchestrator.assignAudio": [{
37095
+ name: "deviceId",
37096
+ form: "single",
37097
+ optional: false
37098
+ }],
37099
+ "pipelineOrchestrator.assignPipeline": [{
37100
+ name: "deviceId",
37101
+ form: "single",
37102
+ optional: false
37103
+ }],
37104
+ "pipelineOrchestrator.getAudioAssignment": [{
37105
+ name: "deviceId",
37106
+ form: "single",
37107
+ optional: false
37108
+ }],
37109
+ "pipelineOrchestrator.getCameraMetrics": [{
37110
+ name: "deviceId",
37111
+ form: "single",
37112
+ optional: false
37113
+ }],
37114
+ "pipelineOrchestrator.getCameraSettings": [{
37115
+ name: "deviceId",
37116
+ form: "single",
37117
+ optional: false
37118
+ }],
37119
+ "pipelineOrchestrator.getCameraStatus": [{
37120
+ name: "deviceId",
37121
+ form: "single",
37122
+ optional: false
37123
+ }],
37124
+ "pipelineOrchestrator.getCameraStatuses": [{
37125
+ name: "deviceIds",
37126
+ form: "array",
37127
+ optional: true
37128
+ }],
37129
+ "pipelineOrchestrator.getCameraStepOverrides": [{
37130
+ name: "deviceId",
37131
+ form: "single",
37132
+ optional: false
37133
+ }],
37134
+ "pipelineOrchestrator.getCameraSwitches": [{
37135
+ name: "deviceId",
37136
+ form: "single",
37137
+ optional: false
37138
+ }],
37139
+ "pipelineOrchestrator.getPipelineAssignment": [{
37140
+ name: "deviceId",
37141
+ form: "single",
37142
+ optional: false
37143
+ }],
37144
+ "pipelineOrchestrator.getPipelineDevicePin": [{
37145
+ name: "deviceId",
37146
+ form: "single",
37147
+ optional: false
37148
+ }],
37149
+ "pipelineOrchestrator.resolvePipeline": [{
37150
+ name: "deviceId",
37151
+ form: "single",
37152
+ optional: false
37153
+ }],
37154
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
37155
+ name: "deviceId",
37156
+ form: "single",
37157
+ optional: false
37158
+ }],
37159
+ "pipelineOrchestrator.setCameraStepOverride": [{
37160
+ name: "deviceId",
37161
+ form: "single",
37162
+ optional: false
37163
+ }],
37164
+ "pipelineOrchestrator.setCameraStepToggle": [{
37165
+ name: "deviceId",
37166
+ form: "single",
37167
+ optional: false
37168
+ }],
37169
+ "pipelineOrchestrator.setCameraSwitch": [{
37170
+ name: "deviceId",
37171
+ form: "single",
37172
+ optional: false
37173
+ }],
37174
+ "pipelineOrchestrator.setPipelineDevicePin": [{
37175
+ name: "deviceId",
37176
+ form: "single",
37177
+ optional: false
37178
+ }],
37179
+ "pipelineOrchestrator.unassignAudio": [{
37180
+ name: "deviceId",
37181
+ form: "single",
37182
+ optional: false
37183
+ }],
37184
+ "pipelineOrchestrator.unassignPipeline": [{
37185
+ name: "deviceId",
37186
+ form: "single",
37187
+ optional: false
37188
+ }],
37189
+ "pipelineRunner.attachCamera": [{
37190
+ name: "deviceId",
37191
+ form: "single",
37192
+ optional: false
37193
+ }],
37194
+ "pipelineRunner.detachCamera": [{
37195
+ name: "deviceId",
37196
+ form: "single",
37197
+ optional: false
37198
+ }],
37199
+ "pipelineRunner.getCameraMetrics": [{
37200
+ name: "deviceId",
37201
+ form: "single",
37202
+ optional: false
37203
+ }],
37204
+ "pipelineRunner.reportMotion": [{
37205
+ name: "deviceId",
37206
+ form: "single",
37207
+ optional: false
37208
+ }],
37209
+ "pipelineRunner.runDetailSubtree": [{
37210
+ name: "deviceId",
37211
+ form: "single",
37212
+ optional: false
37213
+ }],
37214
+ "pipelineRunner.runStatelessStep": [{
37215
+ name: "sourceDeviceId",
37216
+ form: "single",
37217
+ optional: false
37218
+ }],
37219
+ "plateGallery.getPlateByTrack": [{
37220
+ name: "deviceId",
37221
+ form: "single",
37222
+ optional: false
37223
+ }],
37224
+ "plateGallery.listPlates": [{
37225
+ name: "deviceId",
37226
+ form: "single",
37227
+ optional: true
37228
+ }],
37229
+ "privacyMask.getOptions": [{
37230
+ name: "deviceId",
37231
+ form: "single",
37232
+ optional: false
37233
+ }],
37234
+ "privacyMask.setAudioEnabled": [{
37235
+ name: "deviceId",
37236
+ form: "single",
37237
+ optional: false
37238
+ }],
37239
+ "privacyMask.setMask": [{
37240
+ name: "deviceId",
37241
+ form: "single",
37242
+ optional: false
37243
+ }],
37244
+ "ptz.continuousMove": [{
37245
+ name: "deviceId",
37246
+ form: "single",
37247
+ optional: false
37248
+ }],
37249
+ "ptz.deletePreset": [{
37250
+ name: "deviceId",
37251
+ form: "single",
37252
+ optional: false
37253
+ }],
37254
+ "ptz.getOptions": [{
37255
+ name: "deviceId",
37256
+ form: "single",
37257
+ optional: false
37258
+ }],
37259
+ "ptz.getPosition": [{
37260
+ name: "deviceId",
37261
+ form: "single",
37262
+ optional: false
37263
+ }],
37264
+ "ptz.getPresets": [{
37265
+ name: "deviceId",
37266
+ form: "single",
37267
+ optional: false
37268
+ }],
37269
+ "ptz.goHome": [{
37270
+ name: "deviceId",
37271
+ form: "single",
37272
+ optional: false
37273
+ }],
37274
+ "ptz.goToPreset": [{
37275
+ name: "deviceId",
37276
+ form: "single",
37277
+ optional: false
37278
+ }],
37279
+ "ptz.move": [{
37280
+ name: "deviceId",
37281
+ form: "single",
37282
+ optional: false
37283
+ }],
37284
+ "ptz.savePreset": [{
37285
+ name: "deviceId",
37286
+ form: "single",
37287
+ optional: false
37288
+ }],
37289
+ "ptz.setAutofocus": [{
37290
+ name: "deviceId",
37291
+ form: "single",
37292
+ optional: false
37293
+ }],
37294
+ "ptz.stop": [{
37295
+ name: "deviceId",
37296
+ form: "single",
37297
+ optional: false
37298
+ }],
37299
+ "ptzAutotrack.getSettings": [{
37300
+ name: "deviceId",
37301
+ form: "single",
37302
+ optional: false
37303
+ }],
37304
+ "ptzAutotrack.getStatus": [{
37305
+ name: "deviceId",
37306
+ form: "single",
37307
+ optional: false
37308
+ }],
37309
+ "ptzAutotrack.setEnabled": [{
37310
+ name: "deviceId",
37311
+ form: "single",
37312
+ optional: false
37313
+ }],
37314
+ "ptzAutotrack.setSettings": [{
37315
+ name: "deviceId",
37316
+ form: "single",
37317
+ optional: false
37318
+ }],
37319
+ "reboot.reboot": [{
37320
+ name: "deviceId",
37321
+ form: "single",
37322
+ optional: false
37323
+ }],
37324
+ "recording.deleteFootprint": [{
37325
+ name: "deviceId",
37326
+ form: "single",
37327
+ optional: false
37328
+ }],
37329
+ "recording.getAvailability": [{
37330
+ name: "deviceId",
37331
+ form: "single",
37332
+ optional: false
37333
+ }],
37334
+ "recording.getDaysWithRecordings": [{
37335
+ name: "deviceId",
37336
+ form: "single",
37337
+ optional: false
37338
+ }],
37339
+ "recording.getDeviceConfig": [{
37340
+ name: "deviceId",
37341
+ form: "single",
37342
+ optional: false
37343
+ }],
37344
+ "recording.getPlaybackManifest": [{
37345
+ name: "deviceId",
37346
+ form: "single",
37347
+ optional: false
37348
+ }],
37349
+ "recording.listOpsLog": [{
37350
+ name: "deviceId",
37351
+ form: "single",
37352
+ optional: true
37353
+ }],
37354
+ "recording.locateSegment": [{
37355
+ name: "deviceId",
37356
+ form: "single",
37357
+ optional: false
37358
+ }],
37359
+ "recording.pruneFootage": [{
37360
+ name: "deviceId",
37361
+ form: "single",
37362
+ optional: false
37363
+ }],
37364
+ "recording.readGopBytes": [{
37365
+ name: "deviceId",
37366
+ form: "single",
37367
+ optional: false
37368
+ }],
37369
+ "recording.readSegmentBytes": [{
37370
+ name: "deviceId",
37371
+ form: "single",
37372
+ optional: false
37373
+ }],
37374
+ "recording.relocateFootage": [{
37375
+ name: "deviceId",
37376
+ form: "single",
37377
+ optional: true
37378
+ }],
37379
+ "recording.renderClip": [{
37380
+ name: "deviceId",
37381
+ form: "single",
37382
+ optional: false
37383
+ }],
37384
+ "recording.renderGif": [{
37385
+ name: "deviceId",
37386
+ form: "single",
37387
+ optional: false
37388
+ }],
37389
+ "recording.rescanStorage": [{
37390
+ name: "deviceId",
37391
+ form: "single",
37392
+ optional: false
37393
+ }],
37394
+ "recording.setDeviceConfig": [{
37395
+ name: "deviceId",
37396
+ form: "single",
37397
+ optional: false
37398
+ }],
37399
+ "recording.startStorageMigrationMove": [{
37400
+ name: "deviceId",
37401
+ form: "single",
37402
+ optional: true
37403
+ }],
37404
+ "recordingExport.createExport": [{
37405
+ name: "deviceId",
37406
+ form: "single",
37407
+ optional: false
37408
+ }],
37409
+ "recordingExport.listExports": [{
37410
+ name: "deviceId",
37411
+ form: "single",
37412
+ optional: true
37413
+ }],
37414
+ "sceneMonitor.captureReference": [{
37415
+ name: "deviceId",
37416
+ form: "single",
37417
+ optional: false
37418
+ }],
37419
+ "sceneMonitor.createScene": [{
37420
+ name: "deviceId",
37421
+ form: "single",
37422
+ optional: false
37423
+ }],
37424
+ "sceneMonitor.deleteReference": [{
37425
+ name: "deviceId",
37426
+ form: "single",
37427
+ optional: false
37428
+ }],
37429
+ "sceneMonitor.deleteScene": [{
37430
+ name: "deviceId",
37431
+ form: "single",
37432
+ optional: false
37433
+ }],
37434
+ "sceneMonitor.listScenes": [{
37435
+ name: "deviceId",
37436
+ form: "single",
37437
+ optional: false
37438
+ }],
37439
+ "sceneMonitor.recheckNow": [{
37440
+ name: "deviceId",
37441
+ form: "single",
37442
+ optional: false
37443
+ }],
37444
+ "sceneMonitor.resetScene": [{
37445
+ name: "deviceId",
37446
+ form: "single",
37447
+ optional: false
37448
+ }],
37449
+ "sceneMonitor.updateScene": [{
37450
+ name: "deviceId",
37451
+ form: "single",
37452
+ optional: false
37453
+ }],
37454
+ "scriptRunner.run": [{
37455
+ name: "deviceId",
37456
+ form: "single",
37457
+ optional: false
37458
+ }],
37459
+ "scriptRunner.stop": [{
37460
+ name: "deviceId",
37461
+ form: "single",
37462
+ optional: false
37463
+ }],
37464
+ "snapshot.getDebugState": [{
37465
+ name: "deviceId",
37466
+ form: "single",
37467
+ optional: false
37468
+ }],
37469
+ "snapshot.getSnapshot": [{
37470
+ name: "deviceId",
37471
+ form: "single",
37472
+ optional: false
37473
+ }],
37474
+ "snapshot.getSnapshotLinks": [{
37475
+ name: "targets",
37476
+ form: "object-array",
37477
+ optional: false,
37478
+ itemField: "deviceId"
37479
+ }],
37480
+ "snapshot.getSnapshotOverview": [{
37481
+ name: "deviceIds",
37482
+ form: "array",
37483
+ optional: false
37484
+ }],
37485
+ "snapshot.invalidateCache": [{
37486
+ name: "deviceId",
37487
+ form: "single",
37488
+ optional: false
37489
+ }],
37490
+ "streamBroker.acquireEgressTranscode": [{
37491
+ name: "deviceId",
37492
+ form: "single",
37493
+ optional: false
37494
+ }],
37495
+ "streamBroker.assignProfile": [{
37496
+ name: "deviceId",
37497
+ form: "single",
37498
+ optional: false
37499
+ }],
37500
+ "streamBroker.getDeviceAudioMute": [{
37501
+ name: "deviceId",
37502
+ form: "single",
37503
+ optional: false
37504
+ }],
37505
+ "streamBroker.getStreamWithCodec": [{
37506
+ name: "deviceId",
37507
+ form: "single",
37508
+ optional: false
37509
+ }],
37510
+ "streamBroker.produceEventMedia": [{
37511
+ name: "deviceId",
37512
+ form: "single",
37513
+ optional: false
37514
+ }],
37515
+ "streamBroker.publishCameraStream": [{
37516
+ name: "deviceId",
37517
+ form: "single",
37518
+ optional: false
37519
+ }],
37520
+ "streamBroker.renderPreBufferClip": [{
37521
+ name: "deviceId",
37522
+ form: "single",
37523
+ optional: false
37524
+ }],
37525
+ "streamBroker.restartProfile": [{
37526
+ name: "deviceId",
37527
+ form: "single",
37528
+ optional: false
37529
+ }],
37530
+ "streamBroker.retractCameraStream": [{
37531
+ name: "deviceId",
37532
+ form: "single",
37533
+ optional: false
37534
+ }],
37535
+ "streamBroker.setDeviceAudioMute": [{
37536
+ name: "deviceId",
37537
+ form: "single",
37538
+ optional: false
37539
+ }],
37540
+ "streamBroker.unassignProfile": [{
37541
+ name: "deviceId",
37542
+ form: "single",
37543
+ optional: false
37544
+ }],
37545
+ "streamCatalog.getCatalog": [{
37546
+ name: "deviceId",
37547
+ form: "single",
37548
+ optional: false
37549
+ }],
37550
+ "streamParams.getConfigSchema": [{
37551
+ name: "deviceId",
37552
+ form: "single",
37553
+ optional: false
37554
+ }],
37555
+ "streamParams.getOptions": [{
37556
+ name: "deviceId",
37557
+ form: "single",
37558
+ optional: false
37559
+ }],
37560
+ "streamParams.setProfile": [{
37561
+ name: "deviceId",
37562
+ form: "single",
37563
+ optional: false
37564
+ }],
37565
+ "switch.setState": [{
37566
+ name: "deviceId",
37567
+ form: "single",
37568
+ optional: false
37569
+ }],
37570
+ "vacuumControl.locate": [{
37571
+ name: "deviceId",
37572
+ form: "single",
37573
+ optional: false
37574
+ }],
37575
+ "vacuumControl.pause": [{
37576
+ name: "deviceId",
37577
+ form: "single",
37578
+ optional: false
37579
+ }],
37580
+ "vacuumControl.returnToBase": [{
37581
+ name: "deviceId",
37582
+ form: "single",
37583
+ optional: false
37584
+ }],
37585
+ "vacuumControl.setFanSpeed": [{
37586
+ name: "deviceId",
37587
+ form: "single",
37588
+ optional: false
37589
+ }],
37590
+ "vacuumControl.start": [{
37591
+ name: "deviceId",
37592
+ form: "single",
37593
+ optional: false
37594
+ }],
37595
+ "vacuumControl.stop": [{
37596
+ name: "deviceId",
37597
+ form: "single",
37598
+ optional: false
37599
+ }],
37600
+ "valve.close": [{
37601
+ name: "deviceId",
37602
+ form: "single",
37603
+ optional: false
37604
+ }],
37605
+ "valve.open": [{
37606
+ name: "deviceId",
37607
+ form: "single",
37608
+ optional: false
37609
+ }],
37610
+ "valve.setPosition": [{
37611
+ name: "deviceId",
37612
+ form: "single",
37613
+ optional: false
37614
+ }],
37615
+ "valve.stop": [{
37616
+ name: "deviceId",
37617
+ form: "single",
37618
+ optional: false
37619
+ }],
37620
+ "videoclips.getClipPlayback": [{
37621
+ name: "deviceId",
37622
+ form: "single",
37623
+ optional: false
37624
+ }],
37625
+ "videoclips.listClips": [{
37626
+ name: "deviceId",
37627
+ form: "single",
37628
+ optional: false
37629
+ }],
37630
+ "waterHeater.setAway": [{
37631
+ name: "deviceId",
37632
+ form: "single",
37633
+ optional: false
37634
+ }],
37635
+ "waterHeater.setOperationMode": [{
37636
+ name: "deviceId",
37637
+ form: "single",
37638
+ optional: false
37639
+ }],
37640
+ "waterHeater.setTargetTemp": [{
37641
+ name: "deviceId",
37642
+ form: "single",
37643
+ optional: false
37644
+ }],
37645
+ "webrtcSession.addIceCandidate": [{
37646
+ name: "deviceId",
37647
+ form: "single",
37648
+ optional: false
37649
+ }],
37650
+ "webrtcSession.closeSession": [{
37651
+ name: "deviceId",
37652
+ form: "single",
37653
+ optional: false
37654
+ }],
37655
+ "webrtcSession.createSession": [{
37656
+ name: "deviceId",
37657
+ form: "single",
37658
+ optional: false
37659
+ }],
37660
+ "webrtcSession.getIceCandidates": [{
37661
+ name: "deviceId",
37662
+ form: "single",
37663
+ optional: false
37664
+ }],
37665
+ "webrtcSession.getSessionState": [{
37666
+ name: "deviceId",
37667
+ form: "single",
37668
+ optional: false
37669
+ }],
37670
+ "webrtcSession.handleAnswer": [{
37671
+ name: "deviceId",
37672
+ form: "single",
37673
+ optional: false
37674
+ }],
37675
+ "webrtcSession.handleOffer": [{
37676
+ name: "deviceId",
37677
+ form: "single",
37678
+ optional: false
37679
+ }],
37680
+ "webrtcSession.hasAdaptiveBitrate": [{
37681
+ name: "deviceId",
37682
+ form: "single",
37683
+ optional: false
37684
+ }],
37685
+ "webrtcSession.listStreams": [{
37686
+ name: "deviceId",
37687
+ form: "single",
37688
+ optional: false
37689
+ }],
37690
+ "zoneAnalytics.getCameraHistory": [{
37691
+ name: "deviceId",
37692
+ form: "single",
37693
+ optional: false
37694
+ }],
37695
+ "zoneAnalytics.getCurrentSnapshot": [{
37696
+ name: "deviceId",
37697
+ form: "single",
37698
+ optional: false
37699
+ }],
37700
+ "zoneAnalytics.getUnzonedHistory": [{
37701
+ name: "deviceId",
37702
+ form: "single",
37703
+ optional: false
37704
+ }],
37705
+ "zoneAnalytics.getZoneHistory": [{
37706
+ name: "deviceId",
37707
+ form: "single",
37708
+ optional: false
37709
+ }],
37710
+ "zoneRules.listRules": [{
37711
+ name: "deviceId",
37712
+ form: "single",
37713
+ optional: false
37714
+ }],
37715
+ "zoneRules.setRules": [{
37716
+ name: "deviceId",
37717
+ form: "single",
37718
+ optional: false
37719
+ }],
37720
+ "zones.addZone": [{
37721
+ name: "deviceId",
37722
+ form: "single",
37723
+ optional: false
37724
+ }],
37725
+ "zones.listZones": [{
37726
+ name: "deviceId",
37727
+ form: "single",
37728
+ optional: false
37729
+ }],
37730
+ "zones.removeZone": [{
37731
+ name: "deviceId",
37732
+ form: "single",
37733
+ optional: false
37734
+ }],
37735
+ "zones.updateZone": [{
37736
+ name: "deviceId",
37737
+ form: "single",
37738
+ optional: false
37739
+ }]
37740
+ });
34987
37741
  Object.freeze({
34988
37742
  "broker": "broker",
34989
37743
  "device-export": "device-export",