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