@camstack/addon-provider-petkit 0.2.17 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2862 -143
  2. package/dist/addon.mjs +2862 -143
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -1100,7 +1100,7 @@ var Nodepetkit = class {
1100
1100
  }
1101
1101
  };
1102
1102
  //#endregion
1103
- //#region ../types/dist/event-category-Cv9dO26A.mjs
1103
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
1104
1104
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
1105
1105
  EventCategory["SystemBoot"] = "system.boot";
1106
1106
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1307,6 +1307,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1307
1307
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
1308
1308
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
1309
1309
  /**
1310
+ * A node the orchestrator would otherwise place cameras on has NO usable
1311
+ * inference device: the operator enabled one or more accelerators there and
1312
+ * the live probe reports every one of them unavailable. Emitted once per
1313
+ * TRANSITION into that state (never per dispatch), and the node is dropped
1314
+ * from the placement candidate set for as long as it holds.
1315
+ *
1316
+ * This exists because the state was previously invisible: little-unraid
1317
+ * absorbed 283k inference errors in a day while still being handed cameras,
1318
+ * and nothing in the system said so.
1319
+ *
1320
+ * A node with no accelerators configured at all is NOT this — its devices
1321
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
1322
+ * serves it exactly as before.
1323
+ */
1324
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
1325
+ /**
1326
+ * A camera has an OPEN detection session and has produced no detection at
1327
+ * all for longer than the blind threshold — the camera is being decoded and
1328
+ * inferred and is returning nothing. Emitted once per transition into blind,
1329
+ * per camera.
1330
+ *
1331
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
1332
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
1333
+ * camera" produce byte-identical silence.
1334
+ */
1335
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
1336
+ /**
1310
1337
  * Per-camera pipeline config was mutated by the orchestrator
1311
1338
  * (3-level settings change via `setAgentAddonDefaults` /
1312
1339
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -11991,6 +12018,8 @@ var QueryFilterSchema = object({
11991
12018
  where: record(string(), unknown()).optional(),
11992
12019
  whereIn: record(string(), array(unknown())).optional(),
11993
12020
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
12021
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
12022
+ whereNot: record(string(), unknown()).optional(),
11994
12023
  orderBy: object({
11995
12024
  field: string(),
11996
12025
  direction: _enum(["asc", "desc"])
@@ -12010,7 +12039,8 @@ var QueryFilterSchema = object({
12010
12039
  var MutationFilterSchema = object({
12011
12040
  where: record(string(), unknown()).optional(),
12012
12041
  whereIn: record(string(), array(unknown())).optional(),
12013
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
12042
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
12043
+ whereNot: record(string(), unknown()).optional()
12014
12044
  });
12015
12045
  /** A single stored record: `{ id, data }`. */
12016
12046
  var SettingsRecordSchema = object({
@@ -13546,6 +13576,17 @@ var LlmImageSchema = object({
13546
13576
  bytes: _instanceof(Uint8Array),
13547
13577
  mimeType: string()
13548
13578
  });
13579
+ /**
13580
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
13581
+ * the flag is what a consumer table flips, the count is what the operator tunes.
13582
+ * A retry doubles the wall time of a call, so the two gates that run inside a
13583
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
13584
+ */
13585
+ var LlmRetryPolicySchema = object({
13586
+ enabled: boolean().default(false),
13587
+ /** Total attempts INCLUDING the first. 1 = no retry. */
13588
+ maxAttempts: number().int().min(1).max(5).default(1)
13589
+ });
13549
13590
  var LlmGenerateBaseInputSchema = object({
13550
13591
  /** Collection routing (the notification-output posture). */
13551
13592
  addonId: string().optional(),
@@ -13560,7 +13601,28 @@ var LlmGenerateBaseInputSchema = object({
13560
13601
  jsonSchema: record(string(), unknown()).optional(),
13561
13602
  /** Per-call override of the profile default. */
13562
13603
  maxTokens: number().int().positive().optional(),
13563
- temperature: number().optional()
13604
+ temperature: number().optional(),
13605
+ /** Per-call override of the profile default (nucleus sampling). */
13606
+ topP: number().min(0).max(1).optional(),
13607
+ /** Per-call override of the profile default (top-k sampling). */
13608
+ topK: number().int().positive().optional(),
13609
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
13610
+ timeoutMs: number().int().positive().optional(),
13611
+ /** Per-call override; beats both the consumer table and the profile. */
13612
+ retry: LlmRetryPolicySchema.optional(),
13613
+ /**
13614
+ * Caller-minted id that makes this generation CANCELLABLE.
13615
+ *
13616
+ * Without it a caller that stops waiting cannot stop the work: the gates race
13617
+ * the call against 8 s and free their own slot when the timer wins, while the
13618
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
13619
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
13620
+ * not generations, and the real load is unbounded.
13621
+ *
13622
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
13623
+ * `llm.cancel({ requestId })` tears the socket down.
13624
+ */
13625
+ requestId: string().optional()
13564
13626
  });
13565
13627
  /**
13566
13628
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -13573,6 +13635,18 @@ var LlmGenerateBaseInputSchema = object({
13573
13635
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
13574
13636
  * watchdog — operator decision #3).
13575
13637
  */
13638
+ /**
13639
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
13640
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
13641
+ * REF rather than looked up at install time, so what the operator approved in
13642
+ * the preview is exactly what the node downloads.
13643
+ */
13644
+ var ManagedModelExtraFileSchema = object({
13645
+ url: string(),
13646
+ filename: string(),
13647
+ sizeBytes: number(),
13648
+ sha256: string().optional()
13649
+ });
13576
13650
  var ManagedModelRefSchema = discriminatedUnion("kind", [
13577
13651
  object({
13578
13652
  kind: literal("catalog"),
@@ -13581,7 +13655,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
13581
13655
  object({
13582
13656
  kind: literal("url"),
13583
13657
  url: string(),
13584
- sha256: string().optional()
13658
+ sha256: string().optional(),
13659
+ /** Picker/status label; the file basename when absent. */
13660
+ label: string().optional(),
13661
+ sizeBytes: number().optional(),
13662
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
13585
13663
  }),
13586
13664
  object({
13587
13665
  kind: literal("path"),
@@ -13599,13 +13677,82 @@ var ManagedRuntimeConfigSchema = object({
13599
13677
  gpuLayers: number().int().default(0),
13600
13678
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
13601
13679
  threads: number().int().optional(),
13602
- /** Concurrent slots. */
13680
+ /** Concurrent slots (`--parallel`). */
13603
13681
  parallel: number().int().default(1),
13682
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
13683
+ batchSize: number().int().positive().optional(),
13684
+ /** Physical batch / micro-batch (`-ub`). */
13685
+ ubatchSize: number().int().positive().optional(),
13686
+ /**
13687
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
13688
+ * is a no-op elsewhere, so it is offered rather than assumed.
13689
+ */
13690
+ flashAttention: boolean().default(false),
13691
+ /**
13692
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
13693
+ * inference. Costs the full model size in resident memory — which is exactly
13694
+ * what the RAM budget is counting.
13695
+ */
13696
+ mlock: boolean().default(false),
13697
+ /**
13698
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
13699
+ * start, but avoids the page-fault stalls a network or spinning-disk model
13700
+ * store produces on every first token.
13701
+ */
13702
+ noMmap: boolean().default(false),
13703
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
13704
+ * cheapest way to fit a longer context in the same RAM. */
13705
+ cacheTypeK: _enum([
13706
+ "f32",
13707
+ "f16",
13708
+ "q8_0",
13709
+ "q5_1",
13710
+ "q5_0",
13711
+ "q4_1",
13712
+ "q4_0"
13713
+ ]).optional(),
13714
+ cacheTypeV: _enum([
13715
+ "f32",
13716
+ "f16",
13717
+ "q8_0",
13718
+ "q5_1",
13719
+ "q5_0",
13720
+ "q4_1",
13721
+ "q4_0"
13722
+ ]).optional(),
13723
+ /**
13724
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
13725
+ * (which most vision chat templates need and some language-only models
13726
+ * dislike), `--cont-batching`, `--rope-scaling`, …
13727
+ *
13728
+ * It is NOT a second place to set the flags above. A token that collides
13729
+ * with a typed field is REJECTED at start, naming the field that owns it
13730
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
13731
+ * the "two switches that disagree" failure this repo has already shipped
13732
+ * twice (D62).
13733
+ */
13734
+ extraArgs: array(string()).default([]),
13604
13735
  /** Else lazy: first generate boots it. */
13605
13736
  autoStart: boolean().default(false),
13606
13737
  /** 0 = never; frees RAM after quiet periods. */
13607
13738
  idleStopMinutes: number().int().default(30)
13608
13739
  });
13740
+ /**
13741
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
13742
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
13743
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
13744
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
13745
+ */
13746
+ var LlmDownloadProgressSchema = object({
13747
+ phase: _enum(["downloading", "verifying"]),
13748
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
13749
+ file: string(),
13750
+ fileIndex: number().int(),
13751
+ fileCount: number().int(),
13752
+ /** Across the WHOLE install, not the current file. */
13753
+ downloadedBytes: number(),
13754
+ totalBytes: number().optional()
13755
+ });
13609
13756
  var LlmRuntimeStatusSchema = object({
13610
13757
  /** Status is ALWAYS node-qualified. */
13611
13758
  nodeId: string(),
@@ -13622,6 +13769,8 @@ var LlmRuntimeStatusSchema = object({
13622
13769
  modelPath: string().optional(),
13623
13770
  modelId: string().optional(),
13624
13771
  downloadProgress: number().min(0).max(1).optional(),
13772
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
13773
+ download: LlmDownloadProgressSchema.optional(),
13625
13774
  lastError: string().optional(),
13626
13775
  crashesInWindow: number(),
13627
13776
  /** Child RSS (sampled best-effort). */
@@ -13632,7 +13781,14 @@ var LlmNodeModelSchema = object({
13632
13781
  file: string(),
13633
13782
  sizeBytes: number(),
13634
13783
  catalogId: string().optional(),
13635
- installedAt: number().optional()
13784
+ installedAt: number().optional(),
13785
+ /**
13786
+ * Absolute path on the node. Present so a file that is on disk but matches
13787
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
13788
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
13789
+ * it the picker could list such a file and do nothing with it.
13790
+ */
13791
+ path: string().optional()
13636
13792
  });
13637
13793
  var LlmRuntimeDiskUsageSchema = object({
13638
13794
  nodeId: string(),
@@ -13688,10 +13844,47 @@ var LlmProfileSchema = object({
13688
13844
  baseUrl: string().optional(),
13689
13845
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
13690
13846
  apiKey: string().optional(),
13847
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
13848
+ * degraded to text — that shipped once and produced a confident answer to a
13849
+ * question about a picture nobody sent. */
13691
13850
  supportsVision: boolean(),
13692
13851
  temperature: number().min(0).max(2).optional(),
13852
+ /** Nucleus sampling. Every wire we speak has it. */
13853
+ topP: number().min(0).max(1).optional(),
13854
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
13855
+ * wire does, and the client drops it there (measured: the request body gets
13856
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
13857
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
13858
+ topK: number().int().positive().optional(),
13693
13859
  maxTokens: number().int().positive().optional(),
13860
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
13861
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
13862
+ * the model with, so it is the one field that changes a PROCESS. */
13863
+ contextLength: number().int().positive().optional(),
13864
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
13865
+ * two system prompts fighting is worse than either alone). */
13866
+ systemPrompt: string().optional(),
13867
+ /** Total generation bound — the only one a unary call has. */
13694
13868
  timeoutMs: number().int().positive().default(6e4),
13869
+ /** The TCP handshake only — "is the port even open". NOT the wait for
13870
+ * response headers: on the LM Studio / llama-server wire those are written
13871
+ * once the model has finished loading, so they belong to the bound below. */
13872
+ connectTimeoutMs: number().int().positive().default(1e4),
13873
+ /** Accepted, but no output yet — response headers included, because a cold
13874
+ * GPU load is exactly what happens before them. */
13875
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
13876
+ /** Output started then stopped. */
13877
+ idleTimeoutMs: number().int().positive().default(6e4),
13878
+ /** Profile-level default. The per-consumer table and a per-call override
13879
+ * both beat it — see `resolveRetryPolicy`. */
13880
+ retry: LlmRetryPolicySchema.default({
13881
+ enabled: false,
13882
+ maxAttempts: 1
13883
+ }),
13884
+ /** Whether this profile may use tools. The tool-call plumbing rides the
13885
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
13886
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
13887
+ toolsEnabled: boolean().default(false),
13695
13888
  extraHeaders: record(string(), string()).optional(),
13696
13889
  /** kind === 'managed-local' only (spec §4). */
13697
13890
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -13741,6 +13934,36 @@ var ManagedModelCatalogEntrySchema = object({
13741
13934
  /** Vision models: companion projector file. */
13742
13935
  mmprojUrl: string().optional()
13743
13936
  });
13937
+ /**
13938
+ * The outcome of turning one operator-typed Hugging Face reference into a
13939
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
13940
+ * I will not pick for you" is a normal answer the UI has to render, not an
13941
+ * exception.
13942
+ *
13943
+ * `candidates` is the whole reason the refusal is usable — every string in it
13944
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
13945
+ */
13946
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
13947
+ ok: literal(true),
13948
+ /** Ready to hand to `installModel` unchanged. */
13949
+ model: ManagedModelRefSchema,
13950
+ label: string(),
13951
+ repo: string(),
13952
+ quantization: string(),
13953
+ purpose: _enum(["text", "vision"]),
13954
+ totalBytes: number(),
13955
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
13956
+ * see that 0.9 GB of it is a projector they did not name. */
13957
+ extraFilenames: array(string())
13958
+ }), object({
13959
+ ok: literal(false),
13960
+ code: string(),
13961
+ message: string(),
13962
+ candidates: array(string()).optional(),
13963
+ /** Set when the refusal was only the ceiling: re-calling with
13964
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
13965
+ requiredBytes: number().optional()
13966
+ })]);
13744
13967
  var LlmRuntimeNodeSchema = object({
13745
13968
  nodeId: string(),
13746
13969
  reachable: boolean(),
@@ -13753,7 +13976,10 @@ var ProfileRefInputSchema = object({
13753
13976
  addonId: string(),
13754
13977
  profileId: string()
13755
13978
  });
13756
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13979
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
13980
+ addonId: string().optional(),
13981
+ requestId: string()
13982
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
13757
13983
  kind: "mutation",
13758
13984
  auth: "admin"
13759
13985
  }), method(ProfileRefInputSchema, _void(), {
@@ -13774,6 +14000,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
13774
14000
  consumer: string().optional(),
13775
14001
  profileId: string().optional()
13776
14002
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
14003
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
14004
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
14005
+ ref: string(),
14006
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
14007
+ maxBytes: number().positive().optional()
14008
+ }), HfModelResolutionSchema, {
14009
+ kind: "mutation",
14010
+ auth: "admin"
14011
+ }), method(object({
13777
14012
  nodeId: string(),
13778
14013
  model: ManagedModelRefSchema
13779
14014
  }), _void(), {
@@ -15421,6 +15656,8 @@ var NcSystemEventKindSchema = _enum([
15421
15656
  "stream-offline",
15422
15657
  "node-online",
15423
15658
  "node-offline",
15659
+ "node-inference-unavailable",
15660
+ "detection-blind",
15424
15661
  "addon-update-available",
15425
15662
  "server-update-available",
15426
15663
  "alarm-triggered",
@@ -15482,7 +15719,16 @@ var NcScheduleSchema = object({
15482
15719
  });
15483
15720
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
15484
15721
  var NcPlateMatcherSchema = object({
15485
- values: array(string().min(1)).min(1),
15722
+ /**
15723
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
15724
+ * pipeline could read** — the plate half of "no selection = no narrowing",
15725
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
15726
+ * rather than merely seen. A subject carrying no plate still fails.
15727
+ *
15728
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
15729
+ * ever persisted an empty list, so widening it cannot change an existing rule.
15730
+ */
15731
+ values: array(string().min(1)),
15486
15732
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
15487
15733
  maxDistance: number().int().min(0).max(3).default(1)
15488
15734
  });
@@ -15516,28 +15762,36 @@ var NcOccupancyConditionSchema = object({
15516
15762
  /**
15517
15763
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
15518
15764
  *
15519
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
15520
- * reference notifier uses, so an operator moving between them re-uses what
15521
- * they already know): a rule matches when, over a sampling window of
15522
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
15523
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
15524
- *
15525
- * - `dbThreshold` its level is at or above this many dBFS (see
15526
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
15527
- * - `labels` the classifier put at least one of these labels on it.
15528
- *
15529
- * Both are OPTIONAL and independent, which is the point of the shape: a
15530
- * loudness rule ("something loud at 3am") needs no model to be right, and a
15531
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
15532
- * is given** a window in which every sample is trivially a hit would fire on
15533
- * silence, so the engine refuses such a condition rather than notifying on
15534
- * nothing (the schema cannot express "at least one of" without becoming a
15535
- * ZodEffects the cap path would have to special-case).
15536
- *
15537
- * `hitPercent` is over the samples the window actually HOLDS, and the window
15538
- * must be FULL before it can match a window that has been open for two
15539
- * seconds of its ten is 100% of nothing, and firing on it would make
15540
- * `samplingSeconds` decorative.
15765
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
15766
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
15767
+ * there is no second switch that can disagree with the first and every rule
15768
+ * authored before the decision migrates for free (`audioModeOf`):
15769
+ *
15770
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
15771
+ * classifier labels with one of them. No window, no percentage:
15772
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
15773
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
15774
+ * the analyzer's (`classificationMinScore`, per device) — a label only
15775
+ * reaches this condition if the classifier was already confident enough.
15776
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
15777
+ * the condition: at least `hitPercent`% of the samples over
15778
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
15779
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
15780
+ * must be FULL before it can match a window open for two of its ten
15781
+ * seconds is 100% of nothing.
15782
+ *
15783
+ * **Why label mode has no window.** It had one, and it never fired: the
15784
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
15785
+ * of them per episode, even through continuous crying. The measured maximum
15786
+ * `hitPercent` over the whole live history was 40 — under the shipped default
15787
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
15788
+ * the wrong question to ask of a sparse classifier.
15789
+ *
15790
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
15791
+ * and the rule would fire on silence. The schema cannot express "exactly one
15792
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
15793
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
15794
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
15541
15795
  *
15542
15796
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
15543
15797
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -15545,13 +15799,13 @@ var NcOccupancyConditionSchema = object({
15545
15799
  * an operator who typed `dog` mean the same thing.
15546
15800
  */
15547
15801
  var NcAudioConditionSchema = object({
15548
- /** Audio macro labels; absent = any sound (level-only rule). */
15802
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
15549
15803
  labels: array(string().min(1)).min(1).optional(),
15550
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
15804
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
15551
15805
  dbThreshold: number().min(-96).max(0).optional(),
15552
- /** Percentage of the window's samples that must be hits (1–100). */
15806
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
15553
15807
  hitPercent: number().int().min(1).max(100).default(60),
15554
- /** Length of the sampling window in seconds. */
15808
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
15555
15809
  samplingSeconds: number().int().min(1).max(300).default(10)
15556
15810
  });
15557
15811
  /**
@@ -15689,13 +15943,81 @@ var NcRuleActionsSchema = object({
15689
15943
  */
15690
15944
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
15691
15945
  });
15946
+ /**
15947
+ * "This rule applies only while `deviceId` is in one of `states`."
15948
+ *
15949
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
15950
+ * `on`/`off` for a switch — not a normalised set, because normalising would
15951
+ * make the condition lie about devices whose states have no equivalent.
15952
+ *
15953
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
15954
+ * condition that fired on "I could not read it" would be worse than no gate.
15955
+ */
15956
+ var NcDeviceStateConditionSchema = object({
15957
+ deviceId: number().int(),
15958
+ /** Any of these matches. */
15959
+ states: array(string().min(1)).min(1)
15960
+ });
15961
+ /**
15962
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
15963
+ *
15964
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
15965
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
15966
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
15967
+ * already has a trigger ("tell me about a person at the front door, but only
15968
+ * while the bin is still out"). That is why it composes with every delivery
15969
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
15970
+ * kind exist for it — see D159.
15971
+ *
15972
+ * ── Identity ───────────────────────────────────────────────────────────────
15973
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
15974
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
15975
+ * carried as a HINT for the editor and for the log line, never as part of the
15976
+ * lookup key: a rule whose hint drifted must still gate correctly.
15977
+ *
15978
+ * ── Which boolean ──────────────────────────────────────────────────────────
15979
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
15980
+ * already declares which boolean drives notification rules, and a second knob
15981
+ * that could disagree with it is exactly the D62 failure. Set it only to
15982
+ * override one rule against the scene's own default.
15983
+ *
15984
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
15985
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
15986
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
15987
+ * evidence, in either direction.
15988
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
15989
+ * The latch is a durable fact about the past ("it has diverged since I armed
15990
+ * it"), so a camera that has gone dark does not clear it — that is the whole
15991
+ * reason the operator asked for a latch.
15992
+ *
15993
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
15994
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
15995
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
15996
+ * said out loud in the log rather than dropped in silence.
15997
+ */
15998
+ var NcSceneConditionSchema = object({
15999
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
16000
+ sceneId: string().min(1),
16001
+ /** The camera the scene lives on. A hint for the editor and the log line. */
16002
+ deviceId: number().int().optional(),
16003
+ /** The state the scene must be in for the rule to fire. */
16004
+ requiredState: _enum(["matched", "diverged"]),
16005
+ /**
16006
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
16007
+ * scene's own `emit` field, which is the only place that decision belongs.
16008
+ */
16009
+ latched: boolean().optional()
16010
+ });
15692
16011
  var NcConditionsSchema = object({
15693
16012
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
15694
- deviceState: object({
15695
- deviceId: number().int(),
15696
- /** Any of these matches. */
15697
- states: array(string().min(1)).min(1)
15698
- }).optional(),
16013
+ deviceState: NcDeviceStateConditionSchema.optional(),
16014
+ /**
16015
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
16016
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
16017
+ * unlike `occupancy`/`audio` it discriminates nothing. See
16018
+ * {@link NcSceneCondition} and D159.
16019
+ */
16020
+ scene: NcSceneConditionSchema.optional(),
15699
16021
  /** Device scope — absent = all devices. */
15700
16022
  devices: array(number()).optional(),
15701
16023
  /** Detector class names (any overlap with the record's class set). */
@@ -15721,18 +16043,47 @@ var NcConditionsSchema = object({
15721
16043
  */
15722
16044
  labelEquals: array(string().min(1)).optional(),
15723
16045
  /**
15724
- * Identity matcher. P1 boundary: matched against the record's collapsed
15725
- * `label` (the identity display name propagated by the face pipeline) —
15726
- * identity-ID matching rides in P2 when identity ids reach the record.
16046
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
16047
+ * is about recognised people at all.
16048
+ *
16049
+ * Three states, and the empty one is the point:
16050
+ *
16051
+ * | value | meaning |
16052
+ * | --- | --- |
16053
+ * | absent | the rule does not care who it is; an unrecognised person matches |
16054
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
16055
+ * | a list | only these identities |
16056
+ *
16057
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
16058
+ * `devices` list is every device), applied one level down: the operator has
16059
+ * turned the face scope ON and narrowed it to nothing, which is every known
16060
+ * face. No second field states the same thing — a switch that can disagree
16061
+ * with the list under it is worse than no switch (D62).
16062
+ *
16063
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
16064
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
16065
+ * the operator fixed the spelling. The id reaches the record on
16066
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
16067
+ * `{{label}}` renders.
16068
+ *
16069
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
16070
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
16071
+ * for is left as it stands and reported, never dropped. The engine also
16072
+ * accepts a display-name hit as a compatibility leg, so a rule whose
16073
+ * migration could not resolve keeps matching exactly what it matched before.
15727
16074
  */
15728
16075
  identities: array(string().min(1)).optional(),
15729
- /** Fuzzy plate matcher against the record's `label` (plate text). */
16076
+ /**
16077
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
16078
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
16079
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
16080
+ */
15730
16081
  plates: NcPlateMatcherSchema.optional(),
15731
16082
  /**
15732
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
15733
- * Same P1 boundary: matched against the record's collapsed `label` (the
15734
- * identity display name). A record with NO label passes (nothing to
15735
- * exclude), unlike the include variant which fails on an absent label.
16083
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
16084
+ * the same id members and the same lazy name→id migration. A record with NO
16085
+ * identity passes (nothing to exclude), unlike the include variant which
16086
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
15736
16087
  */
15737
16088
  identitiesExclude: array(string().min(1)).optional(),
15738
16089
  /**
@@ -16124,7 +16475,80 @@ var NcRuleInputSchema = object({
16124
16475
  * a rule that predates the gate must keep delivering byte-for-byte as it
16125
16476
  * did, and absent is the only way to say that without a migration.
16126
16477
  */
16127
- confirm: NcConfirmSchema.optional()
16478
+ confirm: NcConfirmSchema.optional(),
16479
+ /**
16480
+ * WAIT for face/plate recognition before saying anything.
16481
+ *
16482
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
16483
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
16484
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
16485
+ * measured on this hub — and an `immediate` rule enqueues on the first object
16486
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
16487
+ * immediate path, and no amount of media re-resolution fixes a sentence.
16488
+ *
16489
+ * Only two honest answers exist, and this flag picks between them. It has
16490
+ * effect ONLY on a rule that declares a recognition scope
16491
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
16492
+ * other rule there is nothing to wait for and the flag is inert.
16493
+ *
16494
+ * | value | what happens |
16495
+ * | --- | --- |
16496
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
16497
+ * | 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) |
16498
+ *
16499
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16500
+ * on the addon cap path, and absent has to keep meaning exactly what every
16501
+ * rule authored before this field meant.
16502
+ *
16503
+ * The cost of `true` is stated here because the editor states it too: a rule
16504
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
16505
+ * tests every zone the track visited and a `crossing` condition can no longer
16506
+ * be satisfied, because a closed track carries no crossing.
16507
+ */
16508
+ waitForEnhancement: boolean().optional(),
16509
+ /**
16510
+ * GROUP a burst of subjects into ONE notification that grows.
16511
+ *
16512
+ * Seconds of quiet after the last matching subject before the burst is
16513
+ * considered over. While it is open, the first subject enqueues immediately —
16514
+ * **exactly as today, with no added latency** — and every real growth (a new
16515
+ * subject, or a name confirmed on one already in it) REPLACES that
16516
+ * notification with an updated one naming everybody. The push carries the
16517
+ * group's own coalescing tag, so the phone replaces rather than stacks.
16518
+ *
16519
+ * `0` / absent = off, and off is today's behaviour byte for byte.
16520
+ *
16521
+ * ### Why an idle cutoff and not a window
16522
+ *
16523
+ * The measured seven-person arrival on device 590 spans 110 s with every
16524
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
16525
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
16526
+ * 30 is Frigate's shipped value for the same decision.
16527
+ *
16528
+ * ### What it replaces
16529
+ *
16530
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
16531
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
16532
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
16533
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
16534
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
16535
+ * budget over GROUPS — which is what it always meant — and a growth is never
16536
+ * throttled by the window its own first member spent.
16537
+ *
16538
+ * ### Interaction with {@link waitForEnhancement}
16539
+ *
16540
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
16541
+ * TRACK CLOSE, so with both set the group is opened by the first member to
16542
+ * CLOSE — already carrying its name — and grows as later members close. That
16543
+ * is later, and complete. With grouping alone the group opens on the first
16544
+ * object event and picks up names as they are confirmed, through the growth
16545
+ * path. Neither combination fires twice for one subject.
16546
+ *
16547
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16548
+ * on the addon cap path, so absent must keep meaning what it meant before this
16549
+ * field existed.
16550
+ */
16551
+ groupIdleSec: number().int().min(0).max(600).optional()
16128
16552
  });
16129
16553
  /**
16130
16554
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -16231,6 +16655,7 @@ var NcConditionDescriptorSchema = object({
16231
16655
  "occupancy",
16232
16656
  "audio",
16233
16657
  "deviceState",
16658
+ "scene",
16234
16659
  "systemEvent"
16235
16660
  ]),
16236
16661
  operator: _enum([
@@ -16636,7 +17061,87 @@ var MethodAccessSchema = _enum([
16636
17061
  var AllowedProviderSchema = union([literal("*"), array(string())]);
16637
17062
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
16638
17063
  var CapScopeSchema = _enum(["device", "system"]);
16639
- var TokenScopeSchema = discriminatedUnion("type", [
17064
+ /**
17065
+ * DeviceSelector (scope model v3 — 2026-08-12).
17066
+ *
17067
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
17068
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
17069
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
17070
+ * AFTER the grant was minted — no re-grant, no re-login.
17071
+ *
17072
+ * - `all` — every device in the deployment. The broad viewer/operator
17073
+ * lever without a `category` grant (a `category` grant also covers device
17074
+ * caps that carry no deviceId; `all` is specifically the device set).
17075
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
17076
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
17077
+ * is NOT covered until the grant is edited.
17078
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
17079
+ * DYNAMIC. A device that changes type, or a new device of the type,
17080
+ * re-resolves on the next request.
17081
+ * - `locations` — every device whose operator-assigned `location` label is
17082
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
17083
+ * null/unset location matches NO `locations` selector.
17084
+ */
17085
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
17086
+ object({ kind: literal("all") }),
17087
+ object({
17088
+ kind: literal("ids"),
17089
+ ids: array(number().int()).min(1)
17090
+ }),
17091
+ object({
17092
+ kind: literal("types"),
17093
+ types: array(_enum(DeviceType)).min(1)
17094
+ }),
17095
+ object({
17096
+ kind: literal("locations"),
17097
+ locations: array(string().min(1)).min(1)
17098
+ })
17099
+ ]);
17100
+ var DeviceTokenScopeSchema = object({
17101
+ type: literal("device"),
17102
+ /** The device SET this grant covers — resolved against the live fleet. */
17103
+ selector: DeviceSelectorSchema,
17104
+ access: array(MethodAccessSchema).min(1),
17105
+ /**
17106
+ * Whether a grant on a PARENT device transparently covers its accessory
17107
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
17108
+ * Direction is parent → children ONLY.
17109
+ *
17110
+ * Absent → the matcher DERIVES it from the access flavour: `view`
17111
+ * inherits (a camera viewer sees the camera's accessories), `create` /
17112
+ * `delete` do NOT (actuating/removing a child is an explicit act the
17113
+ * operator must grant on the child, not inherit from the parent). Set it
17114
+ * explicitly to override that default per grant.
17115
+ */
17116
+ includeLinked: boolean().optional()
17117
+ });
17118
+ /**
17119
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
17120
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
17121
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
17122
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
17123
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
17124
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
17125
+ * migration cannot reach a JWT already in a client's hands; parse-time
17126
+ * migration covers both without a flag day. No cast — the raw object is read
17127
+ * through `Reflect.get` (its static type is `unknown`).
17128
+ */
17129
+ function migrateLegacyTokenScope(raw) {
17130
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
17131
+ if (Reflect.get(raw, "type") !== "device") return raw;
17132
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
17133
+ const targets = Reflect.get(raw, "targets");
17134
+ if (!Array.isArray(targets)) return raw;
17135
+ return {
17136
+ type: "device",
17137
+ selector: {
17138
+ kind: "ids",
17139
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
17140
+ },
17141
+ access: Reflect.get(raw, "access")
17142
+ };
17143
+ }
17144
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
16640
17145
  object({
16641
17146
  type: literal("category"),
16642
17147
  target: CapScopeSchema,
@@ -16652,18 +17157,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
16652
17157
  target: string(),
16653
17158
  access: array(MethodAccessSchema).min(1)
16654
17159
  }),
16655
- object({
16656
- type: literal("device"),
16657
- /**
16658
- * One or more deviceIds (serialised as strings for wire-format
16659
- * consistency with the rest of the union). Matcher accepts if
16660
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
16661
- * of one scope-per-device when granting access to a set of cameras.
16662
- */
16663
- targets: array(string()).min(1),
16664
- access: array(MethodAccessSchema).min(1)
16665
- })
16666
- ]);
17160
+ DeviceTokenScopeSchema
17161
+ ]));
16667
17162
  object({
16668
17163
  id: string(),
16669
17164
  username: string(),
@@ -16980,7 +17475,7 @@ var TrackEnvelopeSchema = object({
16980
17475
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16981
17476
  * keeps every scalar the list surfaces actually render (ids, class(es),
16982
17477
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16983
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
17478
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16984
17479
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16985
17480
  * `getTrack`. Mirrors the event-store `projection` convention
16986
17481
  * (`getObjectEvents` et al.).
@@ -17116,7 +17611,21 @@ union([literal(1), literal(2)]);
17116
17611
  var LabelAttributionSchema = object({
17117
17612
  stepId: string(),
17118
17613
  modelId: string().optional(),
17119
- decidedAt: number()
17614
+ decidedAt: number(),
17615
+ /**
17616
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
17617
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
17618
+ *
17619
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
17620
+ * notification rule authored on "Gianluca" stopped matching the moment the
17621
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
17622
+ * the thing that does not move, so it is what a rule matches on
17623
+ * (`NcConditions.identities`) and the text is what a human is shown.
17624
+ *
17625
+ * Absent when the label names no gallery row — a plate the OCR read but no
17626
+ * vehicle claims, a sub-class, a species, any tier-1 value.
17627
+ */
17628
+ identityId: string().optional()
17120
17629
  });
17121
17630
  /**
17122
17631
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -17253,6 +17762,28 @@ var TrackSchema = object({
17253
17762
  * `=== true` and render nothing otherwise, never infer "no face".
17254
17763
  */
17255
17764
  hasFace: boolean().optional(),
17765
+ /**
17766
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
17767
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
17768
+ * so the passage is tracked once and as a VEHICLE.
17769
+ *
17770
+ * It exists because the fold's record was dishonest. D34 and the code both
17771
+ * said "the person is not lost — it is reported so both entities stay on the
17772
+ * record"; in fact the pair went into a per-processor RAM field behind an
17773
+ * accessor nobody called, and every durable surface said `vehicle`, full
17774
+ * stop. This is the composition note that makes the row true.
17775
+ *
17776
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
17777
+ * person" is not an answer to "what is this" — both label tiers would refuse
17778
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
17779
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
17780
+ * and a `person` rule still does not fire for someone cycling past.
17781
+ *
17782
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
17783
+ * the column, and every hub that predates the field, omits it. Test
17784
+ * `=== true` and render nothing otherwise — never infer "no rider".
17785
+ */
17786
+ hasRider: boolean().optional(),
17256
17787
  ...TrackFlagFields,
17257
17788
  ...TrackRetrainFields
17258
17789
  });
@@ -17602,7 +18133,10 @@ var RecentTracksQueryInput = object({
17602
18133
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
17603
18134
  cursor: string().optional(),
17604
18135
  /** See {@link TrackProjectionSchema}. Default `full`. */
17605
- projection: TrackProjectionSchema.optional()
18136
+ projection: TrackProjectionSchema.optional(),
18137
+ /** Include stationary-promoted rows (parked objects). Default false: the
18138
+ * feed lists passages; parking records live on the stationary registry. */
18139
+ includeStationary: boolean().optional()
17606
18140
  });
17607
18141
  var RecentTracksPageSchema = object({
17608
18142
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -17820,7 +18354,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17820
18354
  zone: TrackZoneFilterSchema.optional(),
17821
18355
  /** See {@link TrackProjectionSchema}. Default `full` (backward
17822
18356
  * compatible — omitting the field keeps today's exact behaviour). */
17823
- projection: TrackProjectionSchema.optional()
18357
+ projection: TrackProjectionSchema.optional(),
18358
+ /** Include stationary-promoted rows (parked objects handed to the
18359
+ * stationary registry). Default false: the timeline lists passages,
18360
+ * not parking records (operator decision, 2026-08-15). */
18361
+ includeStationary: boolean().optional()
17824
18362
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17825
18363
  kind: "mutation",
17826
18364
  auth: "admin"
@@ -17984,11 +18522,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17984
18522
  auth: "admin"
17985
18523
  }), method(object({
17986
18524
  eventId: string(),
17987
- kind: MediaFileKindEnum.optional()
18525
+ kind: MediaFileKindEnum.optional(),
18526
+ deviceId: number()
18527
+ }), array(MediaFileSchema).readonly()), method(object({
18528
+ trackId: string(),
18529
+ kinds: array(MediaFileKindEnum).optional(),
18530
+ deviceId: number()
17988
18531
  }), array(MediaFileSchema).readonly()), method(object({
17989
18532
  trackId: string(),
17990
- kinds: array(MediaFileKindEnum).optional()
17991
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
18533
+ deviceId: number()
18534
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17992
18535
  kind: "mutation",
17993
18536
  auth: "admin"
17994
18537
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -18688,6 +19231,17 @@ var maxSessionHoldMsField = {
18688
19231
  default: 12e4,
18689
19232
  step: 5e3
18690
19233
  };
19234
+ /**
19235
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
19236
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
19237
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
19238
+ */
19239
+ var audioMotionWindowMsField = {
19240
+ min: 5e3,
19241
+ max: 6e5,
19242
+ default: 9e4,
19243
+ step: 5e3
19244
+ };
18691
19245
  var motionFpsField = {
18692
19246
  min: 1,
18693
19247
  max: 30,
@@ -18719,7 +19273,7 @@ var detectionFpsField = {
18719
19273
  var occupancyRecheckSecField = {
18720
19274
  min: 0,
18721
19275
  max: 300,
18722
- default: 30,
19276
+ default: 300,
18723
19277
  step: 5
18724
19278
  };
18725
19279
  var occupancyRecheckFramesField = {
@@ -18864,6 +19418,27 @@ var RunnerCameraConfigSchema = object({
18864
19418
  * resolved `CameraDetectionConfig`.
18865
19419
  */
18866
19420
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
19421
+ /**
19422
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
19423
+ * 'on-motion'` audio window, measured from the LAST motion event.
19424
+ *
19425
+ * This exists because the falling edge cannot be relied on. Camera-native
19426
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
19427
+ * its email-push SMTP path both emit `detected: true` and never the
19428
+ * counterpart); only the frame-diff analyzer emits falls. So on an
19429
+ * onboard-only camera a window that closed only on `detected: false` never
19430
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
19431
+ * battery camera, the one failure mode the mode exists to prevent.
19432
+ *
19433
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
19434
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
19435
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
19436
+ *
19437
+ * Not consumed by the runner: carried here so it shares the per-camera
19438
+ * device-settings surface with `motionCooldownMs`, exactly like
19439
+ * `maxSessionHoldMs`.
19440
+ */
19441
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
18867
19442
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
18868
19443
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
18869
19444
  motionStreamId: string(),
@@ -18959,7 +19534,7 @@ var RunnerCameraConfigSchema = object({
18959
19534
  */
18960
19535
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
18961
19536
  });
18962
- 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;
19537
+ 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;
18963
19538
  /**
18964
19539
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
18965
19540
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -19975,7 +20550,16 @@ targets: array(object({
19975
20550
  /** A sleeping battery camera: the frame is deliberately stale and will
19976
20551
  * NOT refresh in the background. A surface should say so rather than
19977
20552
  * present it as current. */
19978
- sleeping: boolean()
20553
+ sleeping: boolean(),
20554
+ /** Current device state rendered over the cached frame. State images
20555
+ * remain authoritative even when their photographic background is
20556
+ * old; null means the link must carry a current camera frame. */
20557
+ stateReason: _enum([
20558
+ "disabled",
20559
+ "sleeping",
20560
+ "unreachable",
20561
+ "waking"
20562
+ ]).nullable()
19979
20563
  })));
19980
20564
  /**
19981
20565
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -21629,6 +22213,25 @@ var BatteryStatusSchema = object({
21629
22213
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
21630
22214
  lastUpdated: number(),
21631
22215
  /**
22216
+ * Ms epoch of the last time the device PROVED it was reachable — a
22217
+ * completed firmware round-trip, an observed wake, or an inbound push
22218
+ * (firmware event, email). `0`/absent = never since this slice was born.
22219
+ *
22220
+ * This is the ONLY input that separates "asleep" from "gone", and it is
22221
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
22222
+ * for the radio, because a poll that confirms reachability is the same
22223
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
22224
+ * single derivation every consumer must use; no surface computes its own.
22225
+ *
22226
+ * It is deliberately NOT a clock in the
22227
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
22228
+ * observation itself, and it is the only thing a 30-hour silence is
22229
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
22230
+ * Reolink provider) so a value that means "recently" cannot cost a
22231
+ * SQLite commit per round-trip.
22232
+ */
22233
+ lastContactAt: number().optional(),
22234
+ /**
21632
22235
  * True when the source is a BINARY low-battery indicator (HA
21633
22236
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
21634
22237
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23901,54 +24504,139 @@ var TalkAudioCodecSchema = _enum([
23901
24504
  "g711ulaw",
23902
24505
  "g711alaw"
23903
24506
  ]);
23904
- DeviceType.Camera, method(object({ deviceId: number() }), object({
23905
- sessionId: string(),
23906
- sdpOffer: string()
23907
- }), {
23908
- kind: "mutation",
23909
- auth: "admin"
23910
- }), method(object({
23911
- deviceId: number(),
23912
- sessionId: string(),
23913
- sdpAnswer: string()
23914
- }), _void(), {
23915
- kind: "mutation",
23916
- auth: "admin"
23917
- }), method(object({
23918
- deviceId: number(),
23919
- sessionId: string()
23920
- }), _void(), {
23921
- kind: "mutation",
23922
- auth: "admin"
23923
- }), method(object({ deviceId: number() }), object({ sessionId: string() }), {
23924
- kind: "mutation",
23925
- auth: "admin"
23926
- }), method(object({
23927
- deviceId: number(),
23928
- /** Audio bytes for ONE frame, base64-encoded so the payload
23929
- * survives tRPC JSON serialization. */
23930
- audioBase64: string(),
23931
- /** Wire codec of the payload. Omit to let the provider default
23932
- * to its native expected format (s16le @ provider-native rate,
23933
- * mono). See {@link TalkAudioCodecSchema} for the supported set. */
23934
- codec: TalkAudioCodecSchema.optional(),
23935
- /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
23936
- * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
23937
- sampleRate: number().int().positive().optional(),
23938
- /** Channel count. Default 1. */
23939
- channels: number().int().positive().optional(),
23940
- /** Sequence number for ordering / dropping out-of-order frames. */
23941
- sequenceNumber: number().int()
23942
- }), object({ accepted: boolean() }), {
23943
- kind: "mutation",
23944
- auth: "admin"
23945
- }), method(object({ deviceId: number() }), _void(), {
23946
- kind: "mutation",
23947
- auth: "admin"
23948
- }), object({
23949
- deviceId: number(),
23950
- status: IntercomStatusSchema
23951
- });
24507
+ var intercomCapability = {
24508
+ name: "intercom",
24509
+ scope: "device",
24510
+ deviceNative: true,
24511
+ mode: "singleton",
24512
+ deviceTypes: [DeviceType.Camera],
24513
+ methods: {
24514
+ /**
24515
+ * Open a server-side WebRTC audio-only session. Returns an SDP
24516
+ * offer with a single sendonly audio m-line the client answers
24517
+ * (client → server direction). The server wakes battery cams
24518
+ * transparently before opening the upstream talk channel.
24519
+ */
24520
+ startSession: method(object({ deviceId: number() }), object({
24521
+ sessionId: string(),
24522
+ sdpOffer: string()
24523
+ }), {
24524
+ kind: "mutation",
24525
+ auth: "admin"
24526
+ }),
24527
+ handleAnswer: method(object({
24528
+ deviceId: number(),
24529
+ sessionId: string(),
24530
+ sdpAnswer: string()
24531
+ }), _void(), {
24532
+ kind: "mutation",
24533
+ auth: "admin"
24534
+ }),
24535
+ /** Close explicitly. Server also auto-closes on 30s idle. */
24536
+ stopSession: method(object({
24537
+ deviceId: number(),
24538
+ sessionId: string()
24539
+ }), _void(), {
24540
+ kind: "mutation",
24541
+ auth: "admin"
24542
+ }),
24543
+ /**
24544
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
24545
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
24546
+ * harnesses) that already have decoded PCM frames and just need a
24547
+ * direct path onto the camera's talk channel. Mutually exclusive
24548
+ * with `startSession` (an active WebRTC session must be stopped
24549
+ * before a raw-PCM session can be opened on the same device, and
24550
+ * vice versa).
24551
+ */
24552
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
24553
+ kind: "mutation",
24554
+ auth: "admin"
24555
+ }),
24556
+ /**
24557
+ * Push one chunk of talk-back audio onto the active talk session.
24558
+ * The cap is codec-agnostic: the caller declares (or omits) the
24559
+ * wire format via `codec`; the provider decides between passthrough
24560
+ * (when the wire codec matches the camera's native talk channel),
24561
+ * transcoding via the `audio-codec` cap, or rejecting the call.
24562
+ *
24563
+ * Callers do NOT need to know the camera's wire format or sample
24564
+ * rate — that information lives entirely inside the provider.
24565
+ *
24566
+ * Sequence numbers MUST be monotonic per talk session; older frames
24567
+ * arriving after newer ones are dropped to avoid smearing the
24568
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
24569
+ * predictor would corrupt with re-ordering).
24570
+ */
24571
+ pushTalkAudio: method(object({
24572
+ deviceId: number(),
24573
+ /** Audio bytes for ONE frame, base64-encoded so the payload
24574
+ * survives tRPC JSON serialization. */
24575
+ audioBase64: string(),
24576
+ /** Wire codec of the payload. Omit to let the provider default
24577
+ * to its native expected format (s16le @ provider-native rate,
24578
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
24579
+ codec: TalkAudioCodecSchema.optional(),
24580
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
24581
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
24582
+ sampleRate: number().int().positive().optional(),
24583
+ /** Channel count. Default 1. */
24584
+ channels: number().int().positive().optional(),
24585
+ /** Sequence number for ordering / dropping out-of-order frames. */
24586
+ sequenceNumber: number().int()
24587
+ }), object({ accepted: boolean() }), {
24588
+ kind: "mutation",
24589
+ auth: "admin"
24590
+ }),
24591
+ /** Close the raw-PCM talk session. Idempotent. */
24592
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
24593
+ kind: "mutation",
24594
+ auth: "admin"
24595
+ })
24596
+ },
24597
+ events: { onStatusChanged: { data: object({
24598
+ deviceId: number(),
24599
+ status: IntercomStatusSchema
24600
+ }) } },
24601
+ status: {
24602
+ schema: IntercomStatusSchema,
24603
+ kind: "command-driven"
24604
+ },
24605
+ /**
24606
+ * Runtime-state slice — mirrored by the kernel.
24607
+ *
24608
+ * The cap declared `status` and nothing else, so the only two sources an
24609
+ * exporter has for a value — the `device.state-changed` slice event and the
24610
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
24611
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
24612
+ * have been published and never received a value, which is the defect the
24613
+ * export's two classification tables exist to prevent (177 of them, once), so
24614
+ * `intercom` was excluded rather than exported.
24615
+ *
24616
+ * The shape is the status shape: there is exactly one truth about talk-back
24617
+ * and duplicating it into a second schema is how two halves of one capability
24618
+ * come to disagree. Providers write it through
24619
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
24620
+ * and close a session, and seed it at registration so the slice exists before
24621
+ * the first session rather than after it.
24622
+ *
24623
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
24624
+ * session handle, so a session torn down by a transport death that never
24625
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
24626
+ * session or the next restart. That is why the slice is `session` and not
24627
+ * `restored` — a restart must never restore "talking".
24628
+ */
24629
+ runtimeState: IntercomStatusSchema,
24630
+ /**
24631
+ * Runtime-state durability: **session** — `talking` describes a live audio
24632
+ * session, which by definition does not survive the process that held it.
24633
+ * Restoring it would publish a camera as talking to nobody.
24634
+ *
24635
+ * See `RuntimeStateDurability`. Enforced by
24636
+ * `scripts/check-runtime-state-durability.ts`.
24637
+ */
24638
+ durability: "session"
24639
+ };
23952
24640
  /**
23953
24641
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
23954
24642
  * with a mowing lifecycle plus a dock action.
@@ -26645,7 +27333,7 @@ method(object({
26645
27333
  toMs: number()
26646
27334
  }), RecordingAvailabilitySchema, {
26647
27335
  kind: "query",
26648
- auth: "admin"
27336
+ auth: "protected"
26649
27337
  }), method(object({
26650
27338
  deviceId: number(),
26651
27339
  fromMs: number(),
@@ -26653,14 +27341,14 @@ method(object({
26653
27341
  tzOffsetMinutes: number()
26654
27342
  }), RecordingDaysSchema, {
26655
27343
  kind: "query",
26656
- auth: "admin"
27344
+ auth: "protected"
26657
27345
  }), method(object({
26658
27346
  deviceId: number(),
26659
27347
  fromMs: number(),
26660
27348
  toMs: number()
26661
27349
  }), RecordingManifestSchema, {
26662
27350
  kind: "query",
26663
- auth: "admin"
27351
+ auth: "protected"
26664
27352
  }), method(object({}), RecordingStorageUsageSchema, {
26665
27353
  kind: "query",
26666
27354
  auth: "admin"
@@ -26950,14 +27638,77 @@ method(object({
26950
27638
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
26951
27639
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
26952
27640
  *
26953
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
26954
- * derives the device-detail contribution; the provider carries NO hand-written
26955
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
26956
- * every hysteresis flip / availability change; consumers never poll.
26957
- */
26958
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
26959
- * be added without a wire break (matching falls back to any-condition refs). */
27641
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
27642
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
27643
+ * for the thing: a scene is a standing question about the property ("is the bin
27644
+ * still out"), and the operator's question is "which of my scenes have tripped",
27645
+ * across every camera at once — not "what does camera 617 think". Buried one
27646
+ * camera deep it also could not be found. The surface is now a top-level admin
27647
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
27648
+ * picks the camera inside the create flow, the same shape Events and Faces have.
27649
+ *
27650
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
27651
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
27652
+ * directions, so a registration nobody declares fails exactly as loudly as a
27653
+ * declaration nobody registers. The editor is imported directly by the page.
27654
+ *
27655
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
27656
+ * availability change; consumers never poll.
27657
+ */
27658
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
27659
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
27660
+ * Open by design so more can be added without a wire break.
27661
+ *
27662
+ * Matching does NOT fall back across conditions: cross-condition cosines are
27663
+ * not comparable, so "I have never seen this scene in this light" is reported
27664
+ * as `unknown`, never guessed. A day reference scored against an IR frame
27665
+ * collapses the cosine and would latch a false alarm every single night. */
26960
27666
  var SceneConditionSchema = string();
27667
+ /**
27668
+ * What a scene does when the CURRENT light has no reference of its own.
27669
+ *
27670
+ * The lighting variants are not equally likely to exist. Almost every operator
27671
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
27672
+ * scene that is only ever going to be asked about a daytime question ("is the
27673
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
27674
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
27675
+ * working without it rather than degrading into a permanent complaint.
27676
+ *
27677
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
27678
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
27679
+ * last covered light left it at, the latch is untouched, and the hysteresis
27680
+ * run is neither spent nor cleared. The scene resumes by itself at first
27681
+ * light. This is the only behaviour under which "I never captured IR" is a
27682
+ * configuration choice instead of a nightly fault.
27683
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
27684
+ * for cameras whose IR frame is close enough to daylight (a floodlit
27685
+ * driveway, an always-white-light doorbell), and wrong for everything else:
27686
+ * cross-condition cosines are not comparable, so a day reference against a
27687
+ * true IR frame collapses and the scene reports a theft at 21:40.
27688
+ *
27689
+ * Never applies when the scene has NO comparable reference at all — that is
27690
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
27691
+ * there would hide a scene the operator never finished setting up.
27692
+ */
27693
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
27694
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
27695
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
27696
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
27697
+ * and never counts toward hysteresis in either direction. */
27698
+ var SceneVerdictSchema = _enum([
27699
+ "matched",
27700
+ "diverged",
27701
+ "unknown"
27702
+ ]);
27703
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
27704
+ * silence that reads as "nothing has happened". */
27705
+ var SceneUnavailableSchema = _enum([
27706
+ "no-reference-for-condition",
27707
+ "view-shifted",
27708
+ "no-vision-profile",
27709
+ "encoder-model-changed",
27710
+ "no-snapshot"
27711
+ ]);
26961
27712
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
26962
27713
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
26963
27714
  var SceneReferenceSchema = object({
@@ -26965,7 +27716,14 @@ var SceneReferenceSchema = object({
26965
27716
  modelId: string(),
26966
27717
  condition: SceneConditionSchema,
26967
27718
  capturedAt: number(),
26968
- thumbnailMediaId: string().optional()
27719
+ thumbnailMediaId: string().optional(),
27720
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
27721
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
27722
+ * normalized rect frame a different piece of world, and the scene would
27723
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
27724
+ * when hysteresis is about to flip — one extra encode per candidate
27725
+ * transition, not per poll. */
27726
+ anchorEmbedding: array(number()).optional()
26969
27727
  });
26970
27728
  var SceneMonitorStateSchema = object({
26971
27729
  id: string(),
@@ -26987,6 +27745,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26987
27745
  profileId: string().optional(),
26988
27746
  hysteresisCount: number().int().positive()
26989
27747
  })]);
27748
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
27749
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
27750
+ * out in silence rather than reporting a fault every night. */
27751
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
27752
+ /**
27753
+ * Vision-model adjudication of a candidate flip. Field names deliberately
27754
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
27755
+ *
27756
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
27757
+ * fail-open: a notification suppressed is the worse error there, but a vision
27758
+ * model that timed out has not told us the bin is gone, and a latch is a
27759
+ * stateful claim that costs the operator a trip to reset.
27760
+ */
27761
+ var SceneConfirmSchema = object({
27762
+ enabled: boolean().default(false),
27763
+ prompt: string().min(1).max(1e3),
27764
+ profileId: string().optional(),
27765
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
27766
+ maxImagePx: number().int().min(64).max(2048).default(448),
27767
+ /** What a timeout / unavailable model means for the PENDING flip. */
27768
+ onTimeout: _enum(["flip", "hold"]).default("hold")
27769
+ });
26990
27770
  var SceneMonitorSchema = object({
26991
27771
  id: string(),
26992
27772
  label: string(),
@@ -27005,7 +27785,56 @@ var SceneMonitorSchema = object({
27005
27785
  lastConfidence: number().nullable(),
27006
27786
  currentCondition: SceneConditionSchema.nullable(),
27007
27787
  availability: _enum(["ok", "unavailable"]),
27008
- unavailableReason: string().nullable()
27788
+ unavailableReason: string().nullable(),
27789
+ /** Which state is "the initial screen". `null` until the first capture. */
27790
+ baselineStateId: string().nullable(),
27791
+ /** Which boolean drives notification rules and any export. */
27792
+ emit: _enum(["latched", "live"]).default("latched"),
27793
+ /** Live: does the region match the baseline RIGHT NOW. */
27794
+ verdict: SceneVerdictSchema,
27795
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
27796
+ latched: boolean(),
27797
+ /** Last reset (or creation). */
27798
+ armedAt: number(),
27799
+ divergedAt: number().nullable(),
27800
+ restoredAt: number().nullable(),
27801
+ /** A check is only COUNTED when the device has been quiet this long. Motion
27802
+ * during the window DISCARDS the observation — a car pulling up in front of
27803
+ * the bin must not be able to spend hysteresis credit. */
27804
+ quietSeconds: number().int().min(0).max(3600).default(60),
27805
+ /** An observation only advances the pending count when it is at least this
27806
+ * far from the previously counted one, so N agreeing checks span real time
27807
+ * rather than N adjacent polls inside one occlusion. */
27808
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
27809
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
27810
+ confirm: SceneConfirmSchema.optional(),
27811
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
27812
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
27813
+ /** Clear the latch on its own when the scene matches again? Default false —
27814
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
27815
+ * automation can react to the bin coming back without the operator's own
27816
+ * alarm silently clearing itself. */
27817
+ autoRestore: boolean().default(false),
27818
+ /** What to do when the current light has no reference of its own. See
27819
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
27820
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
27821
+ /**
27822
+ * The light whose checks are currently being SAT OUT under
27823
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
27824
+ *
27825
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
27826
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
27827
+ * nothing captured in this light"* in the same calm voice as the coverage
27828
+ * line, because the alternative is a scene that silently stops answering
27829
+ * after sunset with nothing anywhere saying why. A skipped check must never
27830
+ * read as a broken one.
27831
+ */
27832
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
27833
+ /** Named cause when `verdict === 'unknown'`. */
27834
+ unavailable: SceneUnavailableSchema.nullable(),
27835
+ /** Conditions that have at least one comparable reference — the coverage line
27836
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
27837
+ coveredConditions: array(SceneConditionSchema)
27009
27838
  });
27010
27839
  var SceneMonitorStatusSchema = object({
27011
27840
  monitors: array(SceneMonitorSchema),
@@ -27018,12 +27847,6 @@ var sceneMonitorCapability = {
27018
27847
  kind: "wrapper",
27019
27848
  defaultActive: true,
27020
27849
  deviceTypes: [DeviceType.Camera],
27021
- deviceConfig: { ui: {
27022
- kind: "widget",
27023
- widgetId: "host/scene-monitor-editor",
27024
- tab: "scenes",
27025
- label: "Scenes"
27026
- } },
27027
27850
  methods: {
27028
27851
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
27029
27852
  createScene: method(object({
@@ -27054,7 +27877,15 @@ var sceneMonitorCapability = {
27054
27877
  "both"
27055
27878
  ]).optional(),
27056
27879
  checkIntervalSec: number().optional(),
27057
- check: SceneCheckSchema.optional()
27880
+ check: SceneCheckSchema.optional(),
27881
+ emit: _enum(["latched", "live"]).optional(),
27882
+ quietSeconds: number().int().min(0).max(3600).optional(),
27883
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
27884
+ anchorThreshold: number().min(0).max(1).optional(),
27885
+ autoRestore: boolean().optional(),
27886
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
27887
+ /** `null` clears the vision-model adjudicator. */
27888
+ confirm: SceneConfirmSchema.nullable().optional()
27058
27889
  })
27059
27890
  }), _void(), {
27060
27891
  kind: "mutation",
@@ -27095,6 +27926,26 @@ var sceneMonitorCapability = {
27095
27926
  }), _void(), {
27096
27927
  kind: "mutation",
27097
27928
  auth: "admin"
27929
+ }),
27930
+ /**
27931
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
27932
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
27933
+ * "reset" in the operator's head means *this is the new normal*, and
27934
+ * re-capture is what makes the feature self-healing against slow drift
27935
+ * instead of failing silently weeks later.
27936
+ *
27937
+ * Reachable from three surfaces on this one mutation: the scene card, a
27938
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27939
+ * no new Notification-Center code at all), and tRPC for scripts.
27940
+ */
27941
+ resetScene: method(object({
27942
+ deviceId: number(),
27943
+ monitorId: string(),
27944
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27945
+ recapture: boolean().optional()
27946
+ }), _void(), {
27947
+ kind: "mutation",
27948
+ auth: "admin"
27098
27949
  })
27099
27950
  },
27100
27951
  status: {
@@ -27331,7 +28182,70 @@ var CamStreamDescriptorSchema = object({
27331
28182
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
27332
28183
  metadata: record(string(), unknown()).optional()
27333
28184
  });
27334
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
28185
+ /**
28186
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
28187
+ * of the removed `publishCameraStream` push: a camera provider returns the full
28188
+ * set of stream descriptors it can offer for the device, synchronously, so the
28189
+ * broker can reconcile its registry against the authoritative provider state.
28190
+ */
28191
+ /**
28192
+ * The catalog as a DURABLE fact rather than a live answer.
28193
+ *
28194
+ * A battery camera's descriptors are profile-stable — they change when the
28195
+ * operator rewrites an encoder profile, not minute to minute — but building
28196
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
28197
+ * provider is allowed to build them exactly once per profile and must serve
28198
+ * every later pull from a cache.
28199
+ *
28200
+ * Holding that cache only in RAM is what turned a restart into an outage. The
28201
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
28202
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
28203
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
28204
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
28205
+ * which on a battery cam is most of the day. The camera was fine. The stream
28206
+ * was unreachable because the process had forgotten what the camera offers.
28207
+ *
28208
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
28209
+ * declared collection, with the same `restored` durability `battery` uses for
28210
+ * the same reason: the last known value is the only value there is while the
28211
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
28212
+ * is the DIAL that wakes a camera, never the catalog (D173).
28213
+ */
28214
+ var StreamCatalogStateSchema = object({
28215
+ /** The descriptors as last built from a real camera response. Never a guess:
28216
+ * a failed or refused build writes NOTHING, so a restored catalog is always
28217
+ * one the camera itself once produced. */
28218
+ descriptors: array(CamStreamDescriptorSchema),
28219
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
28220
+ * path decide whether the camera's own awake window is worth spending on a
28221
+ * re-read. */
28222
+ lastFetchedAt: number()
28223
+ });
28224
+ var streamCatalogCapability = {
28225
+ name: "stream-catalog",
28226
+ scope: "device",
28227
+ deviceNative: true,
28228
+ mode: "singleton",
28229
+ deviceTypes: [DeviceType.Camera],
28230
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
28231
+ runtimeState: StreamCatalogStateSchema,
28232
+ /**
28233
+ * Runtime-state durability: **restored** — see the schema doc. A cold
28234
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
28235
+ * camera that cannot be watched at all until it happens to wake.
28236
+ *
28237
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
28238
+ * build, and a build only runs when there is no cached copy (or the copy is
28239
+ * a day old and the camera is awake anyway).
28240
+ *
28241
+ * See `RuntimeStateDurability`. Enforced by
28242
+ * `scripts/check-runtime-state-durability.ts`.
28243
+ */
28244
+ durability: "restored",
28245
+ /** Clock field: written, but excluded from the compare that decides whether
28246
+ * persisting is worth a SQLite commit — the descriptors are the value. */
28247
+ volatileStateFields: ["lastFetchedAt"]
28248
+ };
27335
28249
  /** One of the camera's stream profiles. */
27336
28250
  var StreamProfileSchema = _enum([
27337
28251
  "main",
@@ -27585,12 +28499,64 @@ var NetworkAddressSchema = object({
27585
28499
  family: string(),
27586
28500
  internal: boolean()
27587
28501
  });
28502
+ /**
28503
+ * Provenance of the site coordinates, and the whole reason this is not just two
28504
+ * numbers.
28505
+ *
28506
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
28507
+ * nothing overwrites it.
28508
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
28509
+ * default that is right to a few kilometres beats the coarse UTC clock split
28510
+ * the sun-times consumers otherwise fall back to.
28511
+ *
28512
+ * The UI shows which one it is. An operator who cannot tell a guess from their
28513
+ * own input will eventually trust the guess.
28514
+ */
28515
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
28516
+ /**
28517
+ * The read shape: the location plus the honest state of the one-shot derivation.
28518
+ *
28519
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
28520
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
28521
+ * failed; the hub will NOT try again on its own — the fallback is declared
28522
+ * (consumers degrade to their own last resort) and the operator either types the
28523
+ * coordinates or presses detect.
28524
+ */
28525
+ var SiteLocationStatusSchema = object({
28526
+ location: object({
28527
+ /** WGS84 decimal degrees. */
28528
+ latitude: number().min(-90).max(90),
28529
+ longitude: number().min(-180).max(180),
28530
+ source: SiteLocationSourceSchema,
28531
+ /** Epoch ms the value was last written. */
28532
+ updatedAt: number(),
28533
+ /**
28534
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
28535
+ * only — never parsed, never matched on. Absent for an operator-typed value.
28536
+ */
28537
+ label: string().optional()
28538
+ }).nullable(),
28539
+ derivationAttemptedAt: number().nullable(),
28540
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
28541
+ derivationError: string().nullable()
28542
+ });
28543
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
28544
+ var SetSiteLocationInputSchema = object({
28545
+ latitude: number().min(-90).max(90),
28546
+ longitude: number().min(-180).max(180)
28547
+ }).nullable();
27588
28548
  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(), {
27589
28549
  kind: "mutation",
27590
28550
  auth: "admin"
27591
28551
  }), method(_void(), _void(), {
27592
28552
  kind: "mutation",
27593
28553
  auth: "admin"
28554
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
28555
+ kind: "mutation",
28556
+ auth: "admin"
28557
+ }), method(_void(), SiteLocationStatusSchema, {
28558
+ kind: "mutation",
28559
+ auth: "admin"
27594
28560
  });
27595
28561
  /**
27596
28562
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -28910,6 +29876,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28910
29876
  humiditySensor: humiditySensorCapability,
28911
29877
  image: imageCapability,
28912
29878
  imageSettings: imageSettingsCapability,
29879
+ intercom: intercomCapability,
28913
29880
  lawnMowerControl: lawnMowerControlCapability,
28914
29881
  lockControl: lockControlCapability,
28915
29882
  mediaPlayer: mediaPlayerCapability,
@@ -28928,6 +29895,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28928
29895
  sceneMonitor: sceneMonitorCapability,
28929
29896
  scriptRunner: scriptRunnerCapability,
28930
29897
  smoke: smokeCapability,
29898
+ streamCatalog: streamCatalogCapability,
28931
29899
  streamParams: streamParamsCapability,
28932
29900
  switch: switchCapability,
28933
29901
  tamper: tamperCapability,
@@ -29581,6 +30549,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29581
30549
  labels: ["probe not implemented"]
29582
30550
  };
29583
30551
  }
30552
+ /**
30553
+ * Top-level devices restored at once in {@link onRestoreDevices}.
30554
+ *
30555
+ * Four covers the fleets this ships to without turning a boot into a burst a
30556
+ * camera NVR answers with a refusal. A provider whose upstream is a single
30557
+ * session with a serial command channel (a Baichuan hub, an NVR that
30558
+ * serialises ISAPI) should lower it; nothing needs to raise it.
30559
+ */
30560
+ restoreConcurrency = 4;
29584
30561
  async restoreDevices(savedDevices) {
29585
30562
  await this.onRestoreDevices(savedDevices);
29586
30563
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -29612,15 +30589,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29612
30589
  */
29613
30590
  async onRestoreDevices(savedDevices) {
29614
30591
  const restored = /* @__PURE__ */ new Set();
29615
- for (const saved of savedDevices) {
29616
- if (saved.parentDeviceId !== null) continue;
30592
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
30593
+ const restoreOne = async (saved) => {
29617
30594
  const Class = this.deviceClasses[saved.type];
29618
30595
  if (!Class) {
29619
30596
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
29620
30597
  tags: { stableId: saved.stableId },
29621
30598
  meta: { type: saved.type }
29622
30599
  });
29623
- continue;
30600
+ return;
29624
30601
  }
29625
30602
  try {
29626
30603
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -29634,7 +30611,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29634
30611
  }
29635
30612
  });
29636
30613
  }
29637
- }
30614
+ };
30615
+ let nextTopLevel = 0;
30616
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
30617
+ for (;;) {
30618
+ const saved = topLevel[nextTopLevel++];
30619
+ if (saved === void 0) return;
30620
+ await restoreOne(saved);
30621
+ }
30622
+ }));
29638
30623
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
29639
30624
  for (const saved of childRows) {
29640
30625
  const Class = this.deviceClasses[saved.type];
@@ -31725,6 +32710,12 @@ Object.freeze({
31725
32710
  addonId: null,
31726
32711
  access: "create"
31727
32712
  },
32713
+ "llm.cancel": {
32714
+ capName: "llm",
32715
+ capScope: "system",
32716
+ addonId: null,
32717
+ access: "create"
32718
+ },
31728
32719
  "llm.deleteModel": {
31729
32720
  capName: "llm",
31730
32721
  capScope: "system",
@@ -31809,6 +32800,12 @@ Object.freeze({
31809
32800
  addonId: null,
31810
32801
  access: "view"
31811
32802
  },
32803
+ "llm.resolveModelRef": {
32804
+ capName: "llm",
32805
+ capScope: "system",
32806
+ addonId: null,
32807
+ access: "create"
32808
+ },
31812
32809
  "llm.setDefault": {
31813
32810
  capName: "llm",
31814
32811
  capScope: "system",
@@ -33975,6 +34972,12 @@ Object.freeze({
33975
34972
  addonId: null,
33976
34973
  access: "create"
33977
34974
  },
34975
+ "sceneMonitor.resetScene": {
34976
+ capName: "scene-monitor",
34977
+ capScope: "device",
34978
+ addonId: null,
34979
+ access: "delete"
34980
+ },
33978
34981
  "sceneMonitor.updateScene": {
33979
34982
  capName: "scene-monitor",
33980
34983
  capScope: "device",
@@ -34653,6 +35656,12 @@ Object.freeze({
34653
35656
  addonId: null,
34654
35657
  access: "create"
34655
35658
  },
35659
+ "system.detectSiteLocation": {
35660
+ capName: "system",
35661
+ capScope: "system",
35662
+ addonId: null,
35663
+ access: "create"
35664
+ },
34656
35665
  "system.featureFlags": {
34657
35666
  capName: "system",
34658
35667
  capScope: "system",
@@ -34671,6 +35680,12 @@ Object.freeze({
34671
35680
  addonId: null,
34672
35681
  access: "view"
34673
35682
  },
35683
+ "system.getSiteLocation": {
35684
+ capName: "system",
35685
+ capScope: "system",
35686
+ addonId: null,
35687
+ access: "view"
35688
+ },
34674
35689
  "system.health": {
34675
35690
  capName: "system",
34676
35691
  capScope: "system",
@@ -34695,6 +35710,12 @@ Object.freeze({
34695
35710
  addonId: null,
34696
35711
  access: "create"
34697
35712
  },
35713
+ "system.setSiteLocation": {
35714
+ capName: "system",
35715
+ capScope: "system",
35716
+ addonId: null,
35717
+ access: "create"
35718
+ },
34698
35719
  "terminalSession.adoptLegacyMonitor": {
34699
35720
  capName: "terminal-session",
34700
35721
  capScope: "system",
@@ -35266,6 +36287,1704 @@ Object.freeze({
35266
36287
  access: "create"
35267
36288
  }
35268
36289
  });
36290
+ Object.freeze({
36291
+ "accessories.setChildHidden": [{
36292
+ name: "childDeviceId",
36293
+ form: "single",
36294
+ optional: false
36295
+ }, {
36296
+ name: "deviceId",
36297
+ form: "single",
36298
+ optional: false
36299
+ }],
36300
+ "addonSettings.getDeviceSettings": [{
36301
+ name: "deviceId",
36302
+ form: "single",
36303
+ optional: false
36304
+ }],
36305
+ "addonSettings.updateDeviceSettings": [{
36306
+ name: "deviceId",
36307
+ form: "single",
36308
+ optional: false
36309
+ }],
36310
+ "alarmPanel.arm": [{
36311
+ name: "deviceId",
36312
+ form: "single",
36313
+ optional: false
36314
+ }],
36315
+ "alarmPanel.disarm": [{
36316
+ name: "deviceId",
36317
+ form: "single",
36318
+ optional: false
36319
+ }],
36320
+ "alarmPanel.trigger": [{
36321
+ name: "deviceId",
36322
+ form: "single",
36323
+ optional: false
36324
+ }],
36325
+ "audioAnalysis.resolveDeviceSettings": [{
36326
+ name: "deviceId",
36327
+ form: "single",
36328
+ optional: false
36329
+ }],
36330
+ "audioAnalyzer.classify": [{
36331
+ name: "deviceId",
36332
+ form: "single",
36333
+ optional: true
36334
+ }],
36335
+ "audioMetrics.getCurrentSnapshot": [{
36336
+ name: "deviceId",
36337
+ form: "single",
36338
+ optional: false
36339
+ }],
36340
+ "audioMetrics.getHistory": [{
36341
+ name: "deviceId",
36342
+ form: "single",
36343
+ optional: false
36344
+ }],
36345
+ "automationControl.disable": [{
36346
+ name: "deviceId",
36347
+ form: "single",
36348
+ optional: false
36349
+ }],
36350
+ "automationControl.enable": [{
36351
+ name: "deviceId",
36352
+ form: "single",
36353
+ optional: false
36354
+ }],
36355
+ "automationControl.trigger": [{
36356
+ name: "deviceId",
36357
+ form: "single",
36358
+ optional: false
36359
+ }],
36360
+ "battery.wakeForStream": [{
36361
+ name: "deviceId",
36362
+ form: "single",
36363
+ optional: false
36364
+ }],
36365
+ "brightness.setBrightness": [{
36366
+ name: "deviceId",
36367
+ form: "single",
36368
+ optional: false
36369
+ }],
36370
+ "button.press": [{
36371
+ name: "deviceId",
36372
+ form: "single",
36373
+ optional: false
36374
+ }],
36375
+ "cameraCredentials.getCredentials": [{
36376
+ name: "deviceId",
36377
+ form: "single",
36378
+ optional: false
36379
+ }],
36380
+ "cameraStreams.getBrokerStreams": [{
36381
+ name: "deviceId",
36382
+ form: "single",
36383
+ optional: false
36384
+ }],
36385
+ "cameraStreams.getCameraStreams": [{
36386
+ name: "deviceId",
36387
+ form: "single",
36388
+ optional: false
36389
+ }],
36390
+ "cameraStreams.getProfileRtspEntries": [{
36391
+ name: "deviceId",
36392
+ form: "single",
36393
+ optional: false
36394
+ }],
36395
+ "cameraStreams.getRtspEntries": [{
36396
+ name: "deviceId",
36397
+ form: "single",
36398
+ optional: false
36399
+ }],
36400
+ "cameraStreams.pickStream": [{
36401
+ name: "deviceId",
36402
+ form: "single",
36403
+ optional: false
36404
+ }],
36405
+ "climateControl.setFanMode": [{
36406
+ name: "deviceId",
36407
+ form: "single",
36408
+ optional: false
36409
+ }],
36410
+ "climateControl.setMode": [{
36411
+ name: "deviceId",
36412
+ form: "single",
36413
+ optional: false
36414
+ }],
36415
+ "climateControl.setPreset": [{
36416
+ name: "deviceId",
36417
+ form: "single",
36418
+ optional: false
36419
+ }],
36420
+ "climateControl.setSwingHorizontal": [{
36421
+ name: "deviceId",
36422
+ form: "single",
36423
+ optional: false
36424
+ }],
36425
+ "climateControl.setSwingVertical": [{
36426
+ name: "deviceId",
36427
+ form: "single",
36428
+ optional: false
36429
+ }],
36430
+ "climateControl.setTarget": [{
36431
+ name: "deviceId",
36432
+ form: "single",
36433
+ optional: false
36434
+ }],
36435
+ "climateControl.setTargetHumidity": [{
36436
+ name: "deviceId",
36437
+ form: "single",
36438
+ optional: false
36439
+ }],
36440
+ "climateControl.setTargetRange": [{
36441
+ name: "deviceId",
36442
+ form: "single",
36443
+ optional: false
36444
+ }],
36445
+ "color.setColor": [{
36446
+ name: "deviceId",
36447
+ form: "single",
36448
+ optional: false
36449
+ }],
36450
+ "consumables.reset": [{
36451
+ name: "deviceId",
36452
+ form: "single",
36453
+ optional: false
36454
+ }],
36455
+ "control.setValue": [{
36456
+ name: "deviceId",
36457
+ form: "single",
36458
+ optional: false
36459
+ }],
36460
+ "cover.close": [{
36461
+ name: "deviceId",
36462
+ form: "single",
36463
+ optional: false
36464
+ }],
36465
+ "cover.open": [{
36466
+ name: "deviceId",
36467
+ form: "single",
36468
+ optional: false
36469
+ }],
36470
+ "cover.setPosition": [{
36471
+ name: "deviceId",
36472
+ form: "single",
36473
+ optional: false
36474
+ }],
36475
+ "cover.setTiltPosition": [{
36476
+ name: "deviceId",
36477
+ form: "single",
36478
+ optional: false
36479
+ }],
36480
+ "cover.stop": [{
36481
+ name: "deviceId",
36482
+ form: "single",
36483
+ optional: false
36484
+ }],
36485
+ "dayNight.getOptions": [{
36486
+ name: "deviceId",
36487
+ form: "single",
36488
+ optional: false
36489
+ }],
36490
+ "dayNight.setSettings": [{
36491
+ name: "deviceId",
36492
+ form: "single",
36493
+ optional: false
36494
+ }],
36495
+ "decoder.createSession": [{
36496
+ name: "deviceId",
36497
+ form: "single",
36498
+ optional: true
36499
+ }],
36500
+ "deviceAdoption.release": [{
36501
+ name: "camDeviceId",
36502
+ form: "single",
36503
+ optional: false
36504
+ }],
36505
+ "deviceAdoption.resync": [{
36506
+ name: "camDeviceId",
36507
+ form: "single",
36508
+ optional: false
36509
+ }],
36510
+ "deviceDiscovery.adoptDevice": [{
36511
+ name: "deviceId",
36512
+ form: "single",
36513
+ optional: false
36514
+ }],
36515
+ "deviceDiscovery.listDiscovered": [{
36516
+ name: "deviceId",
36517
+ form: "single",
36518
+ optional: false
36519
+ }],
36520
+ "deviceDiscovery.refreshDiscovery": [{
36521
+ name: "deviceId",
36522
+ form: "single",
36523
+ optional: false
36524
+ }],
36525
+ "deviceDiscovery.releaseDevice": [{
36526
+ name: "childDeviceId",
36527
+ form: "single",
36528
+ optional: false
36529
+ }, {
36530
+ name: "deviceId",
36531
+ form: "single",
36532
+ optional: false
36533
+ }],
36534
+ "deviceManager.adoptionRelease": [{
36535
+ name: "camDeviceId",
36536
+ form: "single",
36537
+ optional: false
36538
+ }],
36539
+ "deviceManager.adoptionResync": [{
36540
+ name: "camDeviceId",
36541
+ form: "single",
36542
+ optional: false
36543
+ }],
36544
+ "deviceManager.applyInitialMeta": [{
36545
+ name: "deviceId",
36546
+ form: "single",
36547
+ optional: false
36548
+ }, {
36549
+ name: "linkDeviceId",
36550
+ form: "single",
36551
+ optional: true
36552
+ }],
36553
+ "deviceManager.disable": [{
36554
+ name: "deviceId",
36555
+ form: "single",
36556
+ optional: false
36557
+ }],
36558
+ "deviceManager.enable": [{
36559
+ name: "deviceId",
36560
+ form: "single",
36561
+ optional: false
36562
+ }],
36563
+ "deviceManager.getBindings": [{
36564
+ name: "deviceId",
36565
+ form: "single",
36566
+ optional: false
36567
+ }],
36568
+ "deviceManager.getChildren": [{
36569
+ name: "parentDeviceId",
36570
+ form: "single",
36571
+ optional: false
36572
+ }],
36573
+ "deviceManager.getConfigSchema": [{
36574
+ name: "deviceId",
36575
+ form: "single",
36576
+ optional: false
36577
+ }],
36578
+ "deviceManager.getDevice": [{
36579
+ name: "deviceId",
36580
+ form: "single",
36581
+ optional: false
36582
+ }],
36583
+ "deviceManager.getDeviceAggregate": [{
36584
+ name: "deviceId",
36585
+ form: "single",
36586
+ optional: false
36587
+ }],
36588
+ "deviceManager.getDeviceLiveInfoAggregate": [{
36589
+ name: "deviceId",
36590
+ form: "single",
36591
+ optional: false
36592
+ }],
36593
+ "deviceManager.getDeviceSettingsAggregate": [{
36594
+ name: "deviceId",
36595
+ form: "single",
36596
+ optional: false
36597
+ }],
36598
+ "deviceManager.getDeviceStatusAggregate": [{
36599
+ name: "deviceId",
36600
+ form: "single",
36601
+ optional: false
36602
+ }],
36603
+ "deviceManager.getDeviceStatusAggregateBatch": [{
36604
+ name: "deviceIds",
36605
+ form: "array",
36606
+ optional: false
36607
+ }],
36608
+ "deviceManager.getLinkedDevices": [{
36609
+ name: "deviceId",
36610
+ form: "single",
36611
+ optional: false
36612
+ }],
36613
+ "deviceManager.getSettingsSchema": [{
36614
+ name: "deviceId",
36615
+ form: "single",
36616
+ optional: false
36617
+ }],
36618
+ "deviceManager.getStreamProfileMap": [{
36619
+ name: "deviceId",
36620
+ form: "single",
36621
+ optional: false
36622
+ }],
36623
+ "deviceManager.getStreamSources": [{
36624
+ name: "deviceId",
36625
+ form: "single",
36626
+ optional: false
36627
+ }],
36628
+ "deviceManager.getWireableFields": [{
36629
+ name: "deviceId",
36630
+ form: "single",
36631
+ optional: false
36632
+ }],
36633
+ "deviceManager.loadConfig": [{
36634
+ name: "deviceId",
36635
+ form: "single",
36636
+ optional: false
36637
+ }],
36638
+ "deviceManager.loadMeta": [{
36639
+ name: "deviceId",
36640
+ form: "single",
36641
+ optional: false
36642
+ }],
36643
+ "deviceManager.loadRuntimeState": [{
36644
+ name: "deviceId",
36645
+ form: "single",
36646
+ optional: false
36647
+ }],
36648
+ "deviceManager.persistConfig": [{
36649
+ name: "deviceId",
36650
+ form: "single",
36651
+ optional: false
36652
+ }],
36653
+ "deviceManager.probeStreams": [{
36654
+ name: "deviceId",
36655
+ form: "single",
36656
+ optional: false
36657
+ }],
36658
+ "deviceManager.registerDevice": [{
36659
+ name: "parentDeviceId",
36660
+ form: "single",
36661
+ optional: true
36662
+ }],
36663
+ "deviceManager.remove": [{
36664
+ name: "deviceId",
36665
+ form: "single",
36666
+ optional: false
36667
+ }],
36668
+ "deviceManager.removeDevice": [{
36669
+ name: "deviceId",
36670
+ form: "single",
36671
+ optional: false
36672
+ }],
36673
+ "deviceManager.runDeviceAction": [{
36674
+ name: "deviceId",
36675
+ form: "single",
36676
+ optional: false
36677
+ }],
36678
+ "deviceManager.setChildLayout": [{
36679
+ name: "deviceId",
36680
+ form: "single",
36681
+ optional: false
36682
+ }],
36683
+ "deviceManager.setDisabled": [{
36684
+ name: "deviceId",
36685
+ form: "single",
36686
+ optional: false
36687
+ }],
36688
+ "deviceManager.setDisplay": [{
36689
+ name: "deviceId",
36690
+ form: "single",
36691
+ optional: false
36692
+ }],
36693
+ "deviceManager.setIntegrationId": [{
36694
+ name: "deviceId",
36695
+ form: "single",
36696
+ optional: false
36697
+ }],
36698
+ "deviceManager.setLinkDeviceId": [{
36699
+ name: "deviceId",
36700
+ form: "single",
36701
+ optional: false
36702
+ }, {
36703
+ name: "linkDeviceId",
36704
+ form: "single",
36705
+ optional: true
36706
+ }],
36707
+ "deviceManager.setLocation": [{
36708
+ name: "deviceId",
36709
+ form: "single",
36710
+ optional: false
36711
+ }],
36712
+ "deviceManager.setMetadata": [{
36713
+ name: "deviceId",
36714
+ form: "single",
36715
+ optional: false
36716
+ }],
36717
+ "deviceManager.setName": [{
36718
+ name: "deviceId",
36719
+ form: "single",
36720
+ optional: false
36721
+ }],
36722
+ "deviceManager.setPrimaryChildEntityId": [{
36723
+ name: "deviceId",
36724
+ form: "single",
36725
+ optional: false
36726
+ }],
36727
+ "deviceManager.setRole": [{
36728
+ name: "deviceId",
36729
+ form: "single",
36730
+ optional: false
36731
+ }],
36732
+ "deviceManager.setStreamProfileMap": [{
36733
+ name: "deviceId",
36734
+ form: "single",
36735
+ optional: false
36736
+ }],
36737
+ "deviceManager.setType": [{
36738
+ name: "deviceId",
36739
+ form: "single",
36740
+ optional: false
36741
+ }],
36742
+ "deviceManager.setWrapperActive": [{
36743
+ name: "deviceId",
36744
+ form: "single",
36745
+ optional: false
36746
+ }],
36747
+ "deviceManager.testField": [{
36748
+ name: "deviceId",
36749
+ form: "single",
36750
+ optional: false
36751
+ }],
36752
+ "deviceManager.updateConfig": [{
36753
+ name: "deviceId",
36754
+ form: "single",
36755
+ optional: false
36756
+ }],
36757
+ "deviceManager.updateDeviceField": [{
36758
+ name: "deviceId",
36759
+ form: "single",
36760
+ optional: false
36761
+ }],
36762
+ "deviceManager.updateDeviceFieldsBatch": [{
36763
+ name: "deviceId",
36764
+ form: "single",
36765
+ optional: false
36766
+ }],
36767
+ "deviceOps.getConfigEntries": [{
36768
+ name: "deviceId",
36769
+ form: "single",
36770
+ optional: false
36771
+ }],
36772
+ "deviceOps.getRawState": [{
36773
+ name: "deviceId",
36774
+ form: "single",
36775
+ optional: false
36776
+ }],
36777
+ "deviceOps.getSettingsSchema": [{
36778
+ name: "deviceId",
36779
+ form: "single",
36780
+ optional: false
36781
+ }],
36782
+ "deviceOps.getStreamSources": [{
36783
+ name: "deviceId",
36784
+ form: "single",
36785
+ optional: false
36786
+ }],
36787
+ "deviceOps.removeDevice": [{
36788
+ name: "deviceId",
36789
+ form: "single",
36790
+ optional: false
36791
+ }],
36792
+ "deviceOps.runAction": [{
36793
+ name: "deviceId",
36794
+ form: "single",
36795
+ optional: false
36796
+ }],
36797
+ "deviceOps.setConfig": [{
36798
+ name: "deviceId",
36799
+ form: "single",
36800
+ optional: false
36801
+ }],
36802
+ "deviceState.getCapSlice": [{
36803
+ name: "deviceId",
36804
+ form: "single",
36805
+ optional: false
36806
+ }],
36807
+ "deviceState.getSnapshot": [{
36808
+ name: "deviceId",
36809
+ form: "single",
36810
+ optional: false
36811
+ }],
36812
+ "deviceState.setCapSlice": [{
36813
+ name: "deviceId",
36814
+ form: "single",
36815
+ optional: false
36816
+ }],
36817
+ "events.getEventClipUrl": [{
36818
+ name: "deviceId",
36819
+ form: "single",
36820
+ optional: false
36821
+ }],
36822
+ "events.getEvents": [{
36823
+ name: "deviceId",
36824
+ form: "single",
36825
+ optional: false
36826
+ }],
36827
+ "events.getEventThumbnail": [{
36828
+ name: "deviceId",
36829
+ form: "single",
36830
+ optional: false
36831
+ }],
36832
+ "faceGallery.getFaceByTrack": [{
36833
+ name: "deviceId",
36834
+ form: "single",
36835
+ optional: false
36836
+ }],
36837
+ "faceGallery.listRecentFaces": [{
36838
+ name: "deviceId",
36839
+ form: "single",
36840
+ optional: true
36841
+ }],
36842
+ "fanControl.setDirection": [{
36843
+ name: "deviceId",
36844
+ form: "single",
36845
+ optional: false
36846
+ }],
36847
+ "fanControl.setOscillating": [{
36848
+ name: "deviceId",
36849
+ form: "single",
36850
+ optional: false
36851
+ }],
36852
+ "fanControl.setPercentage": [{
36853
+ name: "deviceId",
36854
+ form: "single",
36855
+ optional: false
36856
+ }],
36857
+ "fanControl.setPreset": [{
36858
+ name: "deviceId",
36859
+ form: "single",
36860
+ optional: false
36861
+ }],
36862
+ "humidifier.setMode": [{
36863
+ name: "deviceId",
36864
+ form: "single",
36865
+ optional: false
36866
+ }],
36867
+ "humidifier.setOn": [{
36868
+ name: "deviceId",
36869
+ form: "single",
36870
+ optional: false
36871
+ }],
36872
+ "humidifier.setTargetHumidity": [{
36873
+ name: "deviceId",
36874
+ form: "single",
36875
+ optional: false
36876
+ }],
36877
+ "imageSettings.getOptions": [{
36878
+ name: "deviceId",
36879
+ form: "single",
36880
+ optional: false
36881
+ }],
36882
+ "imageSettings.setSettings": [{
36883
+ name: "deviceId",
36884
+ form: "single",
36885
+ optional: false
36886
+ }],
36887
+ "intercom.endTalkSession": [{
36888
+ name: "deviceId",
36889
+ form: "single",
36890
+ optional: false
36891
+ }],
36892
+ "intercom.handleAnswer": [{
36893
+ name: "deviceId",
36894
+ form: "single",
36895
+ optional: false
36896
+ }],
36897
+ "intercom.pushTalkAudio": [{
36898
+ name: "deviceId",
36899
+ form: "single",
36900
+ optional: false
36901
+ }],
36902
+ "intercom.startSession": [{
36903
+ name: "deviceId",
36904
+ form: "single",
36905
+ optional: false
36906
+ }],
36907
+ "intercom.startTalkSession": [{
36908
+ name: "deviceId",
36909
+ form: "single",
36910
+ optional: false
36911
+ }],
36912
+ "intercom.stopSession": [{
36913
+ name: "deviceId",
36914
+ form: "single",
36915
+ optional: false
36916
+ }],
36917
+ "lawnMowerControl.dock": [{
36918
+ name: "deviceId",
36919
+ form: "single",
36920
+ optional: false
36921
+ }],
36922
+ "lawnMowerControl.pause": [{
36923
+ name: "deviceId",
36924
+ form: "single",
36925
+ optional: false
36926
+ }],
36927
+ "lawnMowerControl.startMowing": [{
36928
+ name: "deviceId",
36929
+ form: "single",
36930
+ optional: false
36931
+ }],
36932
+ "lockControl.lock": [{
36933
+ name: "deviceId",
36934
+ form: "single",
36935
+ optional: false
36936
+ }],
36937
+ "lockControl.open": [{
36938
+ name: "deviceId",
36939
+ form: "single",
36940
+ optional: false
36941
+ }],
36942
+ "lockControl.unlock": [{
36943
+ name: "deviceId",
36944
+ form: "single",
36945
+ optional: false
36946
+ }],
36947
+ "mediaPlayer.next": [{
36948
+ name: "deviceId",
36949
+ form: "single",
36950
+ optional: false
36951
+ }],
36952
+ "mediaPlayer.pause": [{
36953
+ name: "deviceId",
36954
+ form: "single",
36955
+ optional: false
36956
+ }],
36957
+ "mediaPlayer.play": [{
36958
+ name: "deviceId",
36959
+ form: "single",
36960
+ optional: false
36961
+ }],
36962
+ "mediaPlayer.playMedia": [{
36963
+ name: "deviceId",
36964
+ form: "single",
36965
+ optional: false
36966
+ }],
36967
+ "mediaPlayer.previous": [{
36968
+ name: "deviceId",
36969
+ form: "single",
36970
+ optional: false
36971
+ }],
36972
+ "mediaPlayer.seek": [{
36973
+ name: "deviceId",
36974
+ form: "single",
36975
+ optional: false
36976
+ }],
36977
+ "mediaPlayer.selectSource": [{
36978
+ name: "deviceId",
36979
+ form: "single",
36980
+ optional: false
36981
+ }],
36982
+ "mediaPlayer.setMute": [{
36983
+ name: "deviceId",
36984
+ form: "single",
36985
+ optional: false
36986
+ }],
36987
+ "mediaPlayer.setRepeat": [{
36988
+ name: "deviceId",
36989
+ form: "single",
36990
+ optional: false
36991
+ }],
36992
+ "mediaPlayer.setShuffle": [{
36993
+ name: "deviceId",
36994
+ form: "single",
36995
+ optional: false
36996
+ }],
36997
+ "mediaPlayer.setVolume": [{
36998
+ name: "deviceId",
36999
+ form: "single",
37000
+ optional: false
37001
+ }],
37002
+ "mediaPlayer.stop": [{
37003
+ name: "deviceId",
37004
+ form: "single",
37005
+ optional: false
37006
+ }],
37007
+ "motion.isDetected": [{
37008
+ name: "deviceId",
37009
+ form: "single",
37010
+ optional: false
37011
+ }],
37012
+ "motionDetection.analyze": [{
37013
+ name: "deviceId",
37014
+ form: "single",
37015
+ optional: false
37016
+ }],
37017
+ "motionDetection.removeCamera": [{
37018
+ name: "deviceId",
37019
+ form: "single",
37020
+ optional: false
37021
+ }],
37022
+ "motionTrigger.setMotionTrigger": [{
37023
+ name: "deviceId",
37024
+ form: "single",
37025
+ optional: false
37026
+ }],
37027
+ "motionZones.getOptions": [{
37028
+ name: "deviceId",
37029
+ form: "single",
37030
+ optional: false
37031
+ }],
37032
+ "motionZones.setZone": [{
37033
+ name: "deviceId",
37034
+ form: "single",
37035
+ optional: false
37036
+ }],
37037
+ "nativeObjectDetection.setEnabled": [{
37038
+ name: "deviceId",
37039
+ form: "single",
37040
+ optional: false
37041
+ }],
37042
+ "networkQuality.getDeviceStats": [{
37043
+ name: "deviceId",
37044
+ form: "single",
37045
+ optional: false
37046
+ }],
37047
+ "networkQuality.reportClientStats": [{
37048
+ name: "deviceId",
37049
+ form: "single",
37050
+ optional: false
37051
+ }],
37052
+ "notificationRules.setDeviceMuted": [{
37053
+ name: "deviceId",
37054
+ form: "single",
37055
+ optional: false
37056
+ }],
37057
+ "notifier.cancel": [{
37058
+ name: "deviceId",
37059
+ form: "single",
37060
+ optional: false
37061
+ }],
37062
+ "notifier.send": [{
37063
+ name: "deviceId",
37064
+ form: "single",
37065
+ optional: false
37066
+ }],
37067
+ "osd.setOverlay": [{
37068
+ name: "deviceId",
37069
+ form: "single",
37070
+ optional: false
37071
+ }],
37072
+ "osdManager.clearSlotBinding": [{
37073
+ name: "deviceId",
37074
+ form: "single",
37075
+ optional: false
37076
+ }],
37077
+ "osdManager.copyDeviceConfiguration": [{
37078
+ name: "sourceDeviceId",
37079
+ form: "single",
37080
+ optional: false
37081
+ }, {
37082
+ name: "targetDeviceId",
37083
+ form: "single",
37084
+ optional: false
37085
+ }],
37086
+ "osdManager.getDeviceOsd": [{
37087
+ name: "deviceId",
37088
+ form: "single",
37089
+ optional: false
37090
+ }],
37091
+ "osdManager.getSourceCatalog": [{
37092
+ name: "deviceId",
37093
+ form: "single",
37094
+ optional: false
37095
+ }],
37096
+ "osdManager.previewSlot": [{
37097
+ name: "deviceId",
37098
+ form: "single",
37099
+ optional: false
37100
+ }],
37101
+ "osdManager.renderDevice": [{
37102
+ name: "deviceId",
37103
+ form: "single",
37104
+ optional: false
37105
+ }],
37106
+ "osdManager.setSlotBinding": [{
37107
+ name: "deviceId",
37108
+ form: "single",
37109
+ optional: false
37110
+ }],
37111
+ "petFeeder.callPet": [{
37112
+ name: "deviceId",
37113
+ form: "single",
37114
+ optional: false
37115
+ }],
37116
+ "petFeeder.cancelFeed": [{
37117
+ name: "deviceId",
37118
+ form: "single",
37119
+ optional: false
37120
+ }],
37121
+ "petFeeder.feed": [{
37122
+ name: "deviceId",
37123
+ form: "single",
37124
+ optional: false
37125
+ }],
37126
+ "petFeeder.markFoodReplenished": [{
37127
+ name: "deviceId",
37128
+ form: "single",
37129
+ optional: false
37130
+ }],
37131
+ "petFeeder.playSound": [{
37132
+ name: "deviceId",
37133
+ form: "single",
37134
+ optional: false
37135
+ }],
37136
+ "petFeeder.resetDesiccant": [{
37137
+ name: "deviceId",
37138
+ form: "single",
37139
+ optional: false
37140
+ }],
37141
+ "petFeeder.setChildLock": [{
37142
+ name: "deviceId",
37143
+ form: "single",
37144
+ optional: false
37145
+ }],
37146
+ "petFeeder.setFeedSound": [{
37147
+ name: "deviceId",
37148
+ form: "single",
37149
+ optional: false
37150
+ }],
37151
+ "petFeeder.setIndicatorLight": [{
37152
+ name: "deviceId",
37153
+ form: "single",
37154
+ optional: false
37155
+ }],
37156
+ "petFeeder.setVolume": [{
37157
+ name: "deviceId",
37158
+ form: "single",
37159
+ optional: false
37160
+ }],
37161
+ "pipelineAnalytics.clearTracks": [{
37162
+ name: "deviceId",
37163
+ form: "single",
37164
+ optional: false
37165
+ }],
37166
+ "pipelineAnalytics.completeRetrainTrack": [{
37167
+ name: "deviceId",
37168
+ form: "single",
37169
+ optional: false
37170
+ }],
37171
+ "pipelineAnalytics.deleteDeviceEvents": [{
37172
+ name: "deviceId",
37173
+ form: "single",
37174
+ optional: false
37175
+ }],
37176
+ "pipelineAnalytics.deleteTracks": [{
37177
+ name: "deviceId",
37178
+ form: "single",
37179
+ optional: false
37180
+ }],
37181
+ "pipelineAnalytics.deselectRetrainFrame": [{
37182
+ name: "deviceId",
37183
+ form: "single",
37184
+ optional: false
37185
+ }],
37186
+ "pipelineAnalytics.getActiveTracks": [{
37187
+ name: "deviceId",
37188
+ form: "single",
37189
+ optional: false
37190
+ }],
37191
+ "pipelineAnalytics.getAudioEvents": [{
37192
+ name: "deviceId",
37193
+ form: "single",
37194
+ optional: false
37195
+ }],
37196
+ "pipelineAnalytics.getEventDensity": [{
37197
+ name: "deviceId",
37198
+ form: "single",
37199
+ optional: false
37200
+ }],
37201
+ "pipelineAnalytics.getEventMedia": [{
37202
+ name: "deviceId",
37203
+ form: "single",
37204
+ optional: false
37205
+ }],
37206
+ "pipelineAnalytics.getKeyEvents": [{
37207
+ name: "deviceId",
37208
+ form: "single",
37209
+ optional: false
37210
+ }],
37211
+ "pipelineAnalytics.getMotionEvents": [{
37212
+ name: "deviceId",
37213
+ form: "single",
37214
+ optional: false
37215
+ }],
37216
+ "pipelineAnalytics.getObjectEvents": [{
37217
+ name: "deviceId",
37218
+ form: "single",
37219
+ optional: false
37220
+ }],
37221
+ "pipelineAnalytics.getRetrainExportUrl": [{
37222
+ name: "deviceIds",
37223
+ form: "array",
37224
+ optional: true
37225
+ }],
37226
+ "pipelineAnalytics.getSensorEvents": [{
37227
+ name: "deviceId",
37228
+ form: "single",
37229
+ optional: false
37230
+ }],
37231
+ "pipelineAnalytics.getTrack": [{
37232
+ name: "deviceId",
37233
+ form: "single",
37234
+ optional: false
37235
+ }],
37236
+ "pipelineAnalytics.getTrackMedia": [{
37237
+ name: "deviceId",
37238
+ form: "single",
37239
+ optional: false
37240
+ }],
37241
+ "pipelineAnalytics.getTrainingExportSummary": [{
37242
+ name: "deviceIds",
37243
+ form: "array",
37244
+ optional: true
37245
+ }],
37246
+ "pipelineAnalytics.getTrainingExportUrl": [{
37247
+ name: "deviceIds",
37248
+ form: "array",
37249
+ optional: true
37250
+ }],
37251
+ "pipelineAnalytics.listEventKinds": [{
37252
+ name: "deviceId",
37253
+ form: "single",
37254
+ optional: false
37255
+ }],
37256
+ "pipelineAnalytics.listEventKindsBatch": [{
37257
+ name: "deviceIds",
37258
+ form: "array",
37259
+ optional: false
37260
+ }],
37261
+ "pipelineAnalytics.listOpsLog": [{
37262
+ name: "deviceId",
37263
+ form: "single",
37264
+ optional: true
37265
+ }],
37266
+ "pipelineAnalytics.listRecentTracks": [{
37267
+ name: "deviceIds",
37268
+ form: "array",
37269
+ optional: false
37270
+ }],
37271
+ "pipelineAnalytics.listRetrainStaging": [{
37272
+ name: "deviceIds",
37273
+ form: "array",
37274
+ optional: true
37275
+ }],
37276
+ "pipelineAnalytics.listTrackMedia": [{
37277
+ name: "deviceId",
37278
+ form: "single",
37279
+ optional: false
37280
+ }],
37281
+ "pipelineAnalytics.listTracks": [{
37282
+ name: "deviceId",
37283
+ form: "single",
37284
+ optional: false
37285
+ }],
37286
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
37287
+ name: "deviceId",
37288
+ form: "single",
37289
+ optional: false
37290
+ }],
37291
+ "pipelineAnalytics.pruneEventsBefore": [{
37292
+ name: "deviceId",
37293
+ form: "single",
37294
+ optional: false
37295
+ }],
37296
+ "pipelineAnalytics.pruneTracksBefore": [{
37297
+ name: "deviceId",
37298
+ form: "single",
37299
+ optional: false
37300
+ }],
37301
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
37302
+ name: "deviceId",
37303
+ form: "single",
37304
+ optional: true
37305
+ }],
37306
+ "pipelineAnalytics.restageRetrainTrack": [{
37307
+ name: "deviceId",
37308
+ form: "single",
37309
+ optional: false
37310
+ }],
37311
+ "pipelineAnalytics.saveRetrainAnnotations": [{
37312
+ name: "deviceId",
37313
+ form: "single",
37314
+ optional: false
37315
+ }],
37316
+ "pipelineAnalytics.searchObjectEvents": [{
37317
+ name: "deviceId",
37318
+ form: "single",
37319
+ optional: true
37320
+ }],
37321
+ "pipelineAnalytics.selectRetrainFrames": [{
37322
+ name: "deviceId",
37323
+ form: "single",
37324
+ optional: false
37325
+ }],
37326
+ "pipelineAnalytics.setTrackFlags": [{
37327
+ name: "deviceId",
37328
+ form: "single",
37329
+ optional: false
37330
+ }],
37331
+ "pipelineAnalytics.wipeAllAnalytics": [{
37332
+ name: "deviceId",
37333
+ form: "single",
37334
+ optional: false
37335
+ }],
37336
+ "pipelineExecutor.runPipeline": [{
37337
+ name: "deviceId",
37338
+ form: "single",
37339
+ optional: true
37340
+ }],
37341
+ "pipelineExecutor.runPipelineBatch": [{
37342
+ name: "deviceId",
37343
+ form: "single",
37344
+ optional: true
37345
+ }],
37346
+ "pipelineOrchestrator.assignAudio": [{
37347
+ name: "deviceId",
37348
+ form: "single",
37349
+ optional: false
37350
+ }],
37351
+ "pipelineOrchestrator.assignPipeline": [{
37352
+ name: "deviceId",
37353
+ form: "single",
37354
+ optional: false
37355
+ }],
37356
+ "pipelineOrchestrator.getAudioAssignment": [{
37357
+ name: "deviceId",
37358
+ form: "single",
37359
+ optional: false
37360
+ }],
37361
+ "pipelineOrchestrator.getCameraMetrics": [{
37362
+ name: "deviceId",
37363
+ form: "single",
37364
+ optional: false
37365
+ }],
37366
+ "pipelineOrchestrator.getCameraSettings": [{
37367
+ name: "deviceId",
37368
+ form: "single",
37369
+ optional: false
37370
+ }],
37371
+ "pipelineOrchestrator.getCameraStatus": [{
37372
+ name: "deviceId",
37373
+ form: "single",
37374
+ optional: false
37375
+ }],
37376
+ "pipelineOrchestrator.getCameraStatuses": [{
37377
+ name: "deviceIds",
37378
+ form: "array",
37379
+ optional: true
37380
+ }],
37381
+ "pipelineOrchestrator.getCameraStepOverrides": [{
37382
+ name: "deviceId",
37383
+ form: "single",
37384
+ optional: false
37385
+ }],
37386
+ "pipelineOrchestrator.getCameraSwitches": [{
37387
+ name: "deviceId",
37388
+ form: "single",
37389
+ optional: false
37390
+ }],
37391
+ "pipelineOrchestrator.getPipelineAssignment": [{
37392
+ name: "deviceId",
37393
+ form: "single",
37394
+ optional: false
37395
+ }],
37396
+ "pipelineOrchestrator.getPipelineDevicePin": [{
37397
+ name: "deviceId",
37398
+ form: "single",
37399
+ optional: false
37400
+ }],
37401
+ "pipelineOrchestrator.resolvePipeline": [{
37402
+ name: "deviceId",
37403
+ form: "single",
37404
+ optional: false
37405
+ }],
37406
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
37407
+ name: "deviceId",
37408
+ form: "single",
37409
+ optional: false
37410
+ }],
37411
+ "pipelineOrchestrator.setCameraStepOverride": [{
37412
+ name: "deviceId",
37413
+ form: "single",
37414
+ optional: false
37415
+ }],
37416
+ "pipelineOrchestrator.setCameraStepToggle": [{
37417
+ name: "deviceId",
37418
+ form: "single",
37419
+ optional: false
37420
+ }],
37421
+ "pipelineOrchestrator.setCameraSwitch": [{
37422
+ name: "deviceId",
37423
+ form: "single",
37424
+ optional: false
37425
+ }],
37426
+ "pipelineOrchestrator.setPipelineDevicePin": [{
37427
+ name: "deviceId",
37428
+ form: "single",
37429
+ optional: false
37430
+ }],
37431
+ "pipelineOrchestrator.unassignAudio": [{
37432
+ name: "deviceId",
37433
+ form: "single",
37434
+ optional: false
37435
+ }],
37436
+ "pipelineOrchestrator.unassignPipeline": [{
37437
+ name: "deviceId",
37438
+ form: "single",
37439
+ optional: false
37440
+ }],
37441
+ "pipelineRunner.attachCamera": [{
37442
+ name: "deviceId",
37443
+ form: "single",
37444
+ optional: false
37445
+ }],
37446
+ "pipelineRunner.detachCamera": [{
37447
+ name: "deviceId",
37448
+ form: "single",
37449
+ optional: false
37450
+ }],
37451
+ "pipelineRunner.getCameraMetrics": [{
37452
+ name: "deviceId",
37453
+ form: "single",
37454
+ optional: false
37455
+ }],
37456
+ "pipelineRunner.reportMotion": [{
37457
+ name: "deviceId",
37458
+ form: "single",
37459
+ optional: false
37460
+ }],
37461
+ "pipelineRunner.runDetailSubtree": [{
37462
+ name: "deviceId",
37463
+ form: "single",
37464
+ optional: false
37465
+ }],
37466
+ "pipelineRunner.runStatelessStep": [{
37467
+ name: "sourceDeviceId",
37468
+ form: "single",
37469
+ optional: false
37470
+ }],
37471
+ "plateGallery.getPlateByTrack": [{
37472
+ name: "deviceId",
37473
+ form: "single",
37474
+ optional: false
37475
+ }],
37476
+ "plateGallery.listPlates": [{
37477
+ name: "deviceId",
37478
+ form: "single",
37479
+ optional: true
37480
+ }],
37481
+ "privacyMask.getOptions": [{
37482
+ name: "deviceId",
37483
+ form: "single",
37484
+ optional: false
37485
+ }],
37486
+ "privacyMask.setAudioEnabled": [{
37487
+ name: "deviceId",
37488
+ form: "single",
37489
+ optional: false
37490
+ }],
37491
+ "privacyMask.setMask": [{
37492
+ name: "deviceId",
37493
+ form: "single",
37494
+ optional: false
37495
+ }],
37496
+ "ptz.continuousMove": [{
37497
+ name: "deviceId",
37498
+ form: "single",
37499
+ optional: false
37500
+ }],
37501
+ "ptz.deletePreset": [{
37502
+ name: "deviceId",
37503
+ form: "single",
37504
+ optional: false
37505
+ }],
37506
+ "ptz.getOptions": [{
37507
+ name: "deviceId",
37508
+ form: "single",
37509
+ optional: false
37510
+ }],
37511
+ "ptz.getPosition": [{
37512
+ name: "deviceId",
37513
+ form: "single",
37514
+ optional: false
37515
+ }],
37516
+ "ptz.getPresets": [{
37517
+ name: "deviceId",
37518
+ form: "single",
37519
+ optional: false
37520
+ }],
37521
+ "ptz.goHome": [{
37522
+ name: "deviceId",
37523
+ form: "single",
37524
+ optional: false
37525
+ }],
37526
+ "ptz.goToPreset": [{
37527
+ name: "deviceId",
37528
+ form: "single",
37529
+ optional: false
37530
+ }],
37531
+ "ptz.move": [{
37532
+ name: "deviceId",
37533
+ form: "single",
37534
+ optional: false
37535
+ }],
37536
+ "ptz.savePreset": [{
37537
+ name: "deviceId",
37538
+ form: "single",
37539
+ optional: false
37540
+ }],
37541
+ "ptz.setAutofocus": [{
37542
+ name: "deviceId",
37543
+ form: "single",
37544
+ optional: false
37545
+ }],
37546
+ "ptz.stop": [{
37547
+ name: "deviceId",
37548
+ form: "single",
37549
+ optional: false
37550
+ }],
37551
+ "ptzAutotrack.getSettings": [{
37552
+ name: "deviceId",
37553
+ form: "single",
37554
+ optional: false
37555
+ }],
37556
+ "ptzAutotrack.getStatus": [{
37557
+ name: "deviceId",
37558
+ form: "single",
37559
+ optional: false
37560
+ }],
37561
+ "ptzAutotrack.setEnabled": [{
37562
+ name: "deviceId",
37563
+ form: "single",
37564
+ optional: false
37565
+ }],
37566
+ "ptzAutotrack.setSettings": [{
37567
+ name: "deviceId",
37568
+ form: "single",
37569
+ optional: false
37570
+ }],
37571
+ "reboot.reboot": [{
37572
+ name: "deviceId",
37573
+ form: "single",
37574
+ optional: false
37575
+ }],
37576
+ "recording.deleteFootprint": [{
37577
+ name: "deviceId",
37578
+ form: "single",
37579
+ optional: false
37580
+ }],
37581
+ "recording.getAvailability": [{
37582
+ name: "deviceId",
37583
+ form: "single",
37584
+ optional: false
37585
+ }],
37586
+ "recording.getDaysWithRecordings": [{
37587
+ name: "deviceId",
37588
+ form: "single",
37589
+ optional: false
37590
+ }],
37591
+ "recording.getDeviceConfig": [{
37592
+ name: "deviceId",
37593
+ form: "single",
37594
+ optional: false
37595
+ }],
37596
+ "recording.getPlaybackManifest": [{
37597
+ name: "deviceId",
37598
+ form: "single",
37599
+ optional: false
37600
+ }],
37601
+ "recording.listOpsLog": [{
37602
+ name: "deviceId",
37603
+ form: "single",
37604
+ optional: true
37605
+ }],
37606
+ "recording.locateSegment": [{
37607
+ name: "deviceId",
37608
+ form: "single",
37609
+ optional: false
37610
+ }],
37611
+ "recording.pruneFootage": [{
37612
+ name: "deviceId",
37613
+ form: "single",
37614
+ optional: false
37615
+ }],
37616
+ "recording.readGopBytes": [{
37617
+ name: "deviceId",
37618
+ form: "single",
37619
+ optional: false
37620
+ }],
37621
+ "recording.readSegmentBytes": [{
37622
+ name: "deviceId",
37623
+ form: "single",
37624
+ optional: false
37625
+ }],
37626
+ "recording.relocateFootage": [{
37627
+ name: "deviceId",
37628
+ form: "single",
37629
+ optional: true
37630
+ }],
37631
+ "recording.renderClip": [{
37632
+ name: "deviceId",
37633
+ form: "single",
37634
+ optional: false
37635
+ }],
37636
+ "recording.renderGif": [{
37637
+ name: "deviceId",
37638
+ form: "single",
37639
+ optional: false
37640
+ }],
37641
+ "recording.rescanStorage": [{
37642
+ name: "deviceId",
37643
+ form: "single",
37644
+ optional: false
37645
+ }],
37646
+ "recording.setDeviceConfig": [{
37647
+ name: "deviceId",
37648
+ form: "single",
37649
+ optional: false
37650
+ }],
37651
+ "recording.startStorageMigrationMove": [{
37652
+ name: "deviceId",
37653
+ form: "single",
37654
+ optional: true
37655
+ }],
37656
+ "recordingExport.createExport": [{
37657
+ name: "deviceId",
37658
+ form: "single",
37659
+ optional: false
37660
+ }],
37661
+ "recordingExport.listExports": [{
37662
+ name: "deviceId",
37663
+ form: "single",
37664
+ optional: true
37665
+ }],
37666
+ "sceneMonitor.captureReference": [{
37667
+ name: "deviceId",
37668
+ form: "single",
37669
+ optional: false
37670
+ }],
37671
+ "sceneMonitor.createScene": [{
37672
+ name: "deviceId",
37673
+ form: "single",
37674
+ optional: false
37675
+ }],
37676
+ "sceneMonitor.deleteReference": [{
37677
+ name: "deviceId",
37678
+ form: "single",
37679
+ optional: false
37680
+ }],
37681
+ "sceneMonitor.deleteScene": [{
37682
+ name: "deviceId",
37683
+ form: "single",
37684
+ optional: false
37685
+ }],
37686
+ "sceneMonitor.listScenes": [{
37687
+ name: "deviceId",
37688
+ form: "single",
37689
+ optional: false
37690
+ }],
37691
+ "sceneMonitor.recheckNow": [{
37692
+ name: "deviceId",
37693
+ form: "single",
37694
+ optional: false
37695
+ }],
37696
+ "sceneMonitor.resetScene": [{
37697
+ name: "deviceId",
37698
+ form: "single",
37699
+ optional: false
37700
+ }],
37701
+ "sceneMonitor.updateScene": [{
37702
+ name: "deviceId",
37703
+ form: "single",
37704
+ optional: false
37705
+ }],
37706
+ "scriptRunner.run": [{
37707
+ name: "deviceId",
37708
+ form: "single",
37709
+ optional: false
37710
+ }],
37711
+ "scriptRunner.stop": [{
37712
+ name: "deviceId",
37713
+ form: "single",
37714
+ optional: false
37715
+ }],
37716
+ "snapshot.getSnapshot": [{
37717
+ name: "deviceId",
37718
+ form: "single",
37719
+ optional: false
37720
+ }],
37721
+ "snapshot.getSnapshotLinks": [{
37722
+ name: "targets",
37723
+ form: "object-array",
37724
+ optional: false,
37725
+ itemField: "deviceId"
37726
+ }],
37727
+ "snapshot.getSnapshotOverview": [{
37728
+ name: "deviceIds",
37729
+ form: "array",
37730
+ optional: false
37731
+ }],
37732
+ "snapshot.invalidateCache": [{
37733
+ name: "deviceId",
37734
+ form: "single",
37735
+ optional: false
37736
+ }],
37737
+ "streamBroker.acquireEgressTranscode": [{
37738
+ name: "deviceId",
37739
+ form: "single",
37740
+ optional: false
37741
+ }],
37742
+ "streamBroker.assignProfile": [{
37743
+ name: "deviceId",
37744
+ form: "single",
37745
+ optional: false
37746
+ }],
37747
+ "streamBroker.getDeviceAudioMute": [{
37748
+ name: "deviceId",
37749
+ form: "single",
37750
+ optional: false
37751
+ }],
37752
+ "streamBroker.getStreamWithCodec": [{
37753
+ name: "deviceId",
37754
+ form: "single",
37755
+ optional: false
37756
+ }],
37757
+ "streamBroker.produceEventMedia": [{
37758
+ name: "deviceId",
37759
+ form: "single",
37760
+ optional: false
37761
+ }],
37762
+ "streamBroker.publishCameraStream": [{
37763
+ name: "deviceId",
37764
+ form: "single",
37765
+ optional: false
37766
+ }],
37767
+ "streamBroker.renderPreBufferClip": [{
37768
+ name: "deviceId",
37769
+ form: "single",
37770
+ optional: false
37771
+ }],
37772
+ "streamBroker.restartProfile": [{
37773
+ name: "deviceId",
37774
+ form: "single",
37775
+ optional: false
37776
+ }],
37777
+ "streamBroker.retractCameraStream": [{
37778
+ name: "deviceId",
37779
+ form: "single",
37780
+ optional: false
37781
+ }],
37782
+ "streamBroker.setDeviceAudioMute": [{
37783
+ name: "deviceId",
37784
+ form: "single",
37785
+ optional: false
37786
+ }],
37787
+ "streamBroker.unassignProfile": [{
37788
+ name: "deviceId",
37789
+ form: "single",
37790
+ optional: false
37791
+ }],
37792
+ "streamCatalog.getCatalog": [{
37793
+ name: "deviceId",
37794
+ form: "single",
37795
+ optional: false
37796
+ }],
37797
+ "streamParams.getConfigSchema": [{
37798
+ name: "deviceId",
37799
+ form: "single",
37800
+ optional: false
37801
+ }],
37802
+ "streamParams.getOptions": [{
37803
+ name: "deviceId",
37804
+ form: "single",
37805
+ optional: false
37806
+ }],
37807
+ "streamParams.setProfile": [{
37808
+ name: "deviceId",
37809
+ form: "single",
37810
+ optional: false
37811
+ }],
37812
+ "switch.setState": [{
37813
+ name: "deviceId",
37814
+ form: "single",
37815
+ optional: false
37816
+ }],
37817
+ "vacuumControl.locate": [{
37818
+ name: "deviceId",
37819
+ form: "single",
37820
+ optional: false
37821
+ }],
37822
+ "vacuumControl.pause": [{
37823
+ name: "deviceId",
37824
+ form: "single",
37825
+ optional: false
37826
+ }],
37827
+ "vacuumControl.returnToBase": [{
37828
+ name: "deviceId",
37829
+ form: "single",
37830
+ optional: false
37831
+ }],
37832
+ "vacuumControl.setFanSpeed": [{
37833
+ name: "deviceId",
37834
+ form: "single",
37835
+ optional: false
37836
+ }],
37837
+ "vacuumControl.start": [{
37838
+ name: "deviceId",
37839
+ form: "single",
37840
+ optional: false
37841
+ }],
37842
+ "vacuumControl.stop": [{
37843
+ name: "deviceId",
37844
+ form: "single",
37845
+ optional: false
37846
+ }],
37847
+ "valve.close": [{
37848
+ name: "deviceId",
37849
+ form: "single",
37850
+ optional: false
37851
+ }],
37852
+ "valve.open": [{
37853
+ name: "deviceId",
37854
+ form: "single",
37855
+ optional: false
37856
+ }],
37857
+ "valve.setPosition": [{
37858
+ name: "deviceId",
37859
+ form: "single",
37860
+ optional: false
37861
+ }],
37862
+ "valve.stop": [{
37863
+ name: "deviceId",
37864
+ form: "single",
37865
+ optional: false
37866
+ }],
37867
+ "videoclips.getClipPlayback": [{
37868
+ name: "deviceId",
37869
+ form: "single",
37870
+ optional: false
37871
+ }],
37872
+ "videoclips.listClips": [{
37873
+ name: "deviceId",
37874
+ form: "single",
37875
+ optional: false
37876
+ }],
37877
+ "waterHeater.setAway": [{
37878
+ name: "deviceId",
37879
+ form: "single",
37880
+ optional: false
37881
+ }],
37882
+ "waterHeater.setOperationMode": [{
37883
+ name: "deviceId",
37884
+ form: "single",
37885
+ optional: false
37886
+ }],
37887
+ "waterHeater.setTargetTemp": [{
37888
+ name: "deviceId",
37889
+ form: "single",
37890
+ optional: false
37891
+ }],
37892
+ "webrtcSession.addIceCandidate": [{
37893
+ name: "deviceId",
37894
+ form: "single",
37895
+ optional: false
37896
+ }],
37897
+ "webrtcSession.closeSession": [{
37898
+ name: "deviceId",
37899
+ form: "single",
37900
+ optional: false
37901
+ }],
37902
+ "webrtcSession.createSession": [{
37903
+ name: "deviceId",
37904
+ form: "single",
37905
+ optional: false
37906
+ }],
37907
+ "webrtcSession.getIceCandidates": [{
37908
+ name: "deviceId",
37909
+ form: "single",
37910
+ optional: false
37911
+ }],
37912
+ "webrtcSession.getSessionState": [{
37913
+ name: "deviceId",
37914
+ form: "single",
37915
+ optional: false
37916
+ }],
37917
+ "webrtcSession.handleAnswer": [{
37918
+ name: "deviceId",
37919
+ form: "single",
37920
+ optional: false
37921
+ }],
37922
+ "webrtcSession.handleOffer": [{
37923
+ name: "deviceId",
37924
+ form: "single",
37925
+ optional: false
37926
+ }],
37927
+ "webrtcSession.hasAdaptiveBitrate": [{
37928
+ name: "deviceId",
37929
+ form: "single",
37930
+ optional: false
37931
+ }],
37932
+ "webrtcSession.listStreams": [{
37933
+ name: "deviceId",
37934
+ form: "single",
37935
+ optional: false
37936
+ }],
37937
+ "zoneAnalytics.getCameraHistory": [{
37938
+ name: "deviceId",
37939
+ form: "single",
37940
+ optional: false
37941
+ }],
37942
+ "zoneAnalytics.getCurrentSnapshot": [{
37943
+ name: "deviceId",
37944
+ form: "single",
37945
+ optional: false
37946
+ }],
37947
+ "zoneAnalytics.getUnzonedHistory": [{
37948
+ name: "deviceId",
37949
+ form: "single",
37950
+ optional: false
37951
+ }],
37952
+ "zoneAnalytics.getZoneHistory": [{
37953
+ name: "deviceId",
37954
+ form: "single",
37955
+ optional: false
37956
+ }],
37957
+ "zoneRules.listRules": [{
37958
+ name: "deviceId",
37959
+ form: "single",
37960
+ optional: false
37961
+ }],
37962
+ "zoneRules.setRules": [{
37963
+ name: "deviceId",
37964
+ form: "single",
37965
+ optional: false
37966
+ }],
37967
+ "zones.addZone": [{
37968
+ name: "deviceId",
37969
+ form: "single",
37970
+ optional: false
37971
+ }],
37972
+ "zones.listZones": [{
37973
+ name: "deviceId",
37974
+ form: "single",
37975
+ optional: false
37976
+ }],
37977
+ "zones.removeZone": [{
37978
+ name: "deviceId",
37979
+ form: "single",
37980
+ optional: false
37981
+ }],
37982
+ "zones.updateZone": [{
37983
+ name: "deviceId",
37984
+ form: "single",
37985
+ optional: false
37986
+ }]
37987
+ });
35269
37988
  Object.freeze({
35270
37989
  "broker": "broker",
35271
37990
  "device-export": "device-export",