@camstack/addon-provider-petkit 0.2.17 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2898 -144
  2. package/dist/addon.mjs +2898 -144
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -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
@@ -19945,7 +20520,31 @@ DeviceType.Camera, method(object({
19945
20520
  lastCapturedAt: number().nullable(),
19946
20521
  cacheAgeMs: number().nullable(),
19947
20522
  etag: string().nullable()
19948
- }))), systemMethod(object({
20523
+ }))), systemMethod(object({ deviceId: number() }), object({
20524
+ /** The battery slice as read, or null when the device has none. */
20525
+ battery: object({
20526
+ sleeping: boolean(),
20527
+ lastUpdated: number(),
20528
+ lastContactAt: number().optional()
20529
+ }).nullable(),
20530
+ /** The resolved snapshot state (what the overlay decision used). */
20531
+ state: object({
20532
+ isBattery: boolean(),
20533
+ reason: _enum([
20534
+ "disabled",
20535
+ "sleeping",
20536
+ "unreachable",
20537
+ "waking"
20538
+ ]).nullable()
20539
+ }),
20540
+ /** The cached frame behind the next paint. */
20541
+ frame: object({
20542
+ capturedAt: number().nullable(),
20543
+ ageMs: number().nullable()
20544
+ }),
20545
+ /** A wake window is currently open (the Waking overlay's source). */
20546
+ waking: boolean()
20547
+ })), systemMethod(object({
19949
20548
  /** The tiles a surface is actually rendering. One entry per (device,
19950
20549
  * width) the caller will paint — the width is snapped to the server's
19951
20550
  * ladder and becomes part of the link's SIGNED identity. */
@@ -19975,7 +20574,16 @@ targets: array(object({
19975
20574
  /** A sleeping battery camera: the frame is deliberately stale and will
19976
20575
  * NOT refresh in the background. A surface should say so rather than
19977
20576
  * present it as current. */
19978
- sleeping: boolean()
20577
+ sleeping: boolean(),
20578
+ /** Current device state rendered over the cached frame. State images
20579
+ * remain authoritative even when their photographic background is
20580
+ * old; null means the link must carry a current camera frame. */
20581
+ stateReason: _enum([
20582
+ "disabled",
20583
+ "sleeping",
20584
+ "unreachable",
20585
+ "waking"
20586
+ ]).nullable()
19979
20587
  })));
19980
20588
  /**
19981
20589
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -21629,6 +22237,25 @@ var BatteryStatusSchema = object({
21629
22237
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
21630
22238
  lastUpdated: number(),
21631
22239
  /**
22240
+ * Ms epoch of the last time the device PROVED it was reachable — a
22241
+ * completed firmware round-trip, an observed wake, or an inbound push
22242
+ * (firmware event, email). `0`/absent = never since this slice was born.
22243
+ *
22244
+ * This is the ONLY input that separates "asleep" from "gone", and it is
22245
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
22246
+ * for the radio, because a poll that confirms reachability is the same
22247
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
22248
+ * single derivation every consumer must use; no surface computes its own.
22249
+ *
22250
+ * It is deliberately NOT a clock in the
22251
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
22252
+ * observation itself, and it is the only thing a 30-hour silence is
22253
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
22254
+ * Reolink provider) so a value that means "recently" cannot cost a
22255
+ * SQLite commit per round-trip.
22256
+ */
22257
+ lastContactAt: number().optional(),
22258
+ /**
21632
22259
  * True when the source is a BINARY low-battery indicator (HA
21633
22260
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
21634
22261
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23901,54 +24528,139 @@ var TalkAudioCodecSchema = _enum([
23901
24528
  "g711ulaw",
23902
24529
  "g711alaw"
23903
24530
  ]);
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
- });
24531
+ var intercomCapability = {
24532
+ name: "intercom",
24533
+ scope: "device",
24534
+ deviceNative: true,
24535
+ mode: "singleton",
24536
+ deviceTypes: [DeviceType.Camera],
24537
+ methods: {
24538
+ /**
24539
+ * Open a server-side WebRTC audio-only session. Returns an SDP
24540
+ * offer with a single sendonly audio m-line the client answers
24541
+ * (client → server direction). The server wakes battery cams
24542
+ * transparently before opening the upstream talk channel.
24543
+ */
24544
+ startSession: method(object({ deviceId: number() }), object({
24545
+ sessionId: string(),
24546
+ sdpOffer: string()
24547
+ }), {
24548
+ kind: "mutation",
24549
+ auth: "admin"
24550
+ }),
24551
+ handleAnswer: method(object({
24552
+ deviceId: number(),
24553
+ sessionId: string(),
24554
+ sdpAnswer: string()
24555
+ }), _void(), {
24556
+ kind: "mutation",
24557
+ auth: "admin"
24558
+ }),
24559
+ /** Close explicitly. Server also auto-closes on 30s idle. */
24560
+ stopSession: method(object({
24561
+ deviceId: number(),
24562
+ sessionId: string()
24563
+ }), _void(), {
24564
+ kind: "mutation",
24565
+ auth: "admin"
24566
+ }),
24567
+ /**
24568
+ * Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
24569
+ * non-WebRTC consumers (HomeKit export, Alexa raw audio, test
24570
+ * harnesses) that already have decoded PCM frames and just need a
24571
+ * direct path onto the camera's talk channel. Mutually exclusive
24572
+ * with `startSession` (an active WebRTC session must be stopped
24573
+ * before a raw-PCM session can be opened on the same device, and
24574
+ * vice versa).
24575
+ */
24576
+ startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
24577
+ kind: "mutation",
24578
+ auth: "admin"
24579
+ }),
24580
+ /**
24581
+ * Push one chunk of talk-back audio onto the active talk session.
24582
+ * The cap is codec-agnostic: the caller declares (or omits) the
24583
+ * wire format via `codec`; the provider decides between passthrough
24584
+ * (when the wire codec matches the camera's native talk channel),
24585
+ * transcoding via the `audio-codec` cap, or rejecting the call.
24586
+ *
24587
+ * Callers do NOT need to know the camera's wire format or sample
24588
+ * rate — that information lives entirely inside the provider.
24589
+ *
24590
+ * Sequence numbers MUST be monotonic per talk session; older frames
24591
+ * arriving after newer ones are dropped to avoid smearing the
24592
+ * downstream encoder state (G.711 is stateless but IMA ADPCM's
24593
+ * predictor would corrupt with re-ordering).
24594
+ */
24595
+ pushTalkAudio: method(object({
24596
+ deviceId: number(),
24597
+ /** Audio bytes for ONE frame, base64-encoded so the payload
24598
+ * survives tRPC JSON serialization. */
24599
+ audioBase64: string(),
24600
+ /** Wire codec of the payload. Omit to let the provider default
24601
+ * to its native expected format (s16le @ provider-native rate,
24602
+ * mono). See {@link TalkAudioCodecSchema} for the supported set. */
24603
+ codec: TalkAudioCodecSchema.optional(),
24604
+ /** Sample rate (Hz). REQUIRED for `s16le`; advisory for
24605
+ * `opus` (encoder clock); ignored for `g711*` (implied 8000). */
24606
+ sampleRate: number().int().positive().optional(),
24607
+ /** Channel count. Default 1. */
24608
+ channels: number().int().positive().optional(),
24609
+ /** Sequence number for ordering / dropping out-of-order frames. */
24610
+ sequenceNumber: number().int()
24611
+ }), object({ accepted: boolean() }), {
24612
+ kind: "mutation",
24613
+ auth: "admin"
24614
+ }),
24615
+ /** Close the raw-PCM talk session. Idempotent. */
24616
+ endTalkSession: method(object({ deviceId: number() }), _void(), {
24617
+ kind: "mutation",
24618
+ auth: "admin"
24619
+ })
24620
+ },
24621
+ events: { onStatusChanged: { data: object({
24622
+ deviceId: number(),
24623
+ status: IntercomStatusSchema
24624
+ }) } },
24625
+ status: {
24626
+ schema: IntercomStatusSchema,
24627
+ kind: "command-driven"
24628
+ },
24629
+ /**
24630
+ * Runtime-state slice — mirrored by the kernel.
24631
+ *
24632
+ * The cap declared `status` and nothing else, so the only two sources an
24633
+ * exporter has for a value — the `device.state-changed` slice event and the
24634
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
24635
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
24636
+ * have been published and never received a value, which is the defect the
24637
+ * export's two classification tables exist to prevent (177 of them, once), so
24638
+ * `intercom` was excluded rather than exported.
24639
+ *
24640
+ * The shape is the status shape: there is exactly one truth about talk-back
24641
+ * and duplicating it into a second schema is how two halves of one capability
24642
+ * come to disagree. Providers write it through
24643
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
24644
+ * and close a session, and seed it at registration so the slice exists before
24645
+ * the first session rather than after it.
24646
+ *
24647
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
24648
+ * session handle, so a session torn down by a transport death that never
24649
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
24650
+ * session or the next restart. That is why the slice is `session` and not
24651
+ * `restored` — a restart must never restore "talking".
24652
+ */
24653
+ runtimeState: IntercomStatusSchema,
24654
+ /**
24655
+ * Runtime-state durability: **session** — `talking` describes a live audio
24656
+ * session, which by definition does not survive the process that held it.
24657
+ * Restoring it would publish a camera as talking to nobody.
24658
+ *
24659
+ * See `RuntimeStateDurability`. Enforced by
24660
+ * `scripts/check-runtime-state-durability.ts`.
24661
+ */
24662
+ durability: "session"
24663
+ };
23952
24664
  /**
23953
24665
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
23954
24666
  * with a mowing lifecycle plus a dock action.
@@ -26645,7 +27357,7 @@ method(object({
26645
27357
  toMs: number()
26646
27358
  }), RecordingAvailabilitySchema, {
26647
27359
  kind: "query",
26648
- auth: "admin"
27360
+ auth: "protected"
26649
27361
  }), method(object({
26650
27362
  deviceId: number(),
26651
27363
  fromMs: number(),
@@ -26653,14 +27365,14 @@ method(object({
26653
27365
  tzOffsetMinutes: number()
26654
27366
  }), RecordingDaysSchema, {
26655
27367
  kind: "query",
26656
- auth: "admin"
27368
+ auth: "protected"
26657
27369
  }), method(object({
26658
27370
  deviceId: number(),
26659
27371
  fromMs: number(),
26660
27372
  toMs: number()
26661
27373
  }), RecordingManifestSchema, {
26662
27374
  kind: "query",
26663
- auth: "admin"
27375
+ auth: "protected"
26664
27376
  }), method(object({}), RecordingStorageUsageSchema, {
26665
27377
  kind: "query",
26666
27378
  auth: "admin"
@@ -26950,14 +27662,77 @@ method(object({
26950
27662
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
26951
27663
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
26952
27664
  *
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). */
27665
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
27666
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
27667
+ * for the thing: a scene is a standing question about the property ("is the bin
27668
+ * still out"), and the operator's question is "which of my scenes have tripped",
27669
+ * across every camera at once — not "what does camera 617 think". Buried one
27670
+ * camera deep it also could not be found. The surface is now a top-level admin
27671
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
27672
+ * picks the camera inside the create flow, the same shape Events and Faces have.
27673
+ *
27674
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
27675
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
27676
+ * directions, so a registration nobody declares fails exactly as loudly as a
27677
+ * declaration nobody registers. The editor is imported directly by the page.
27678
+ *
27679
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
27680
+ * availability change; consumers never poll.
27681
+ */
27682
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
27683
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
27684
+ * Open by design so more can be added without a wire break.
27685
+ *
27686
+ * Matching does NOT fall back across conditions: cross-condition cosines are
27687
+ * not comparable, so "I have never seen this scene in this light" is reported
27688
+ * as `unknown`, never guessed. A day reference scored against an IR frame
27689
+ * collapses the cosine and would latch a false alarm every single night. */
26960
27690
  var SceneConditionSchema = string();
27691
+ /**
27692
+ * What a scene does when the CURRENT light has no reference of its own.
27693
+ *
27694
+ * The lighting variants are not equally likely to exist. Almost every operator
27695
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
27696
+ * scene that is only ever going to be asked about a daytime question ("is the
27697
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
27698
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
27699
+ * working without it rather than degrading into a permanent complaint.
27700
+ *
27701
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
27702
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
27703
+ * last covered light left it at, the latch is untouched, and the hysteresis
27704
+ * run is neither spent nor cleared. The scene resumes by itself at first
27705
+ * light. This is the only behaviour under which "I never captured IR" is a
27706
+ * configuration choice instead of a nightly fault.
27707
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
27708
+ * for cameras whose IR frame is close enough to daylight (a floodlit
27709
+ * driveway, an always-white-light doorbell), and wrong for everything else:
27710
+ * cross-condition cosines are not comparable, so a day reference against a
27711
+ * true IR frame collapses and the scene reports a theft at 21:40.
27712
+ *
27713
+ * Never applies when the scene has NO comparable reference at all — that is
27714
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
27715
+ * there would hide a scene the operator never finished setting up.
27716
+ */
27717
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
27718
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
27719
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
27720
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
27721
+ * and never counts toward hysteresis in either direction. */
27722
+ var SceneVerdictSchema = _enum([
27723
+ "matched",
27724
+ "diverged",
27725
+ "unknown"
27726
+ ]);
27727
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
27728
+ * silence that reads as "nothing has happened". */
27729
+ var SceneUnavailableSchema = _enum([
27730
+ "no-reference-for-condition",
27731
+ "view-shifted",
27732
+ "no-vision-profile",
27733
+ "encoder-model-changed",
27734
+ "no-snapshot"
27735
+ ]);
26961
27736
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
26962
27737
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
26963
27738
  var SceneReferenceSchema = object({
@@ -26965,7 +27740,14 @@ var SceneReferenceSchema = object({
26965
27740
  modelId: string(),
26966
27741
  condition: SceneConditionSchema,
26967
27742
  capturedAt: number(),
26968
- thumbnailMediaId: string().optional()
27743
+ thumbnailMediaId: string().optional(),
27744
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
27745
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
27746
+ * normalized rect frame a different piece of world, and the scene would
27747
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
27748
+ * when hysteresis is about to flip — one extra encode per candidate
27749
+ * transition, not per poll. */
27750
+ anchorEmbedding: array(number()).optional()
26969
27751
  });
26970
27752
  var SceneMonitorStateSchema = object({
26971
27753
  id: string(),
@@ -26987,6 +27769,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
26987
27769
  profileId: string().optional(),
26988
27770
  hysteresisCount: number().int().positive()
26989
27771
  })]);
27772
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
27773
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
27774
+ * out in silence rather than reporting a fault every night. */
27775
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
27776
+ /**
27777
+ * Vision-model adjudication of a candidate flip. Field names deliberately
27778
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
27779
+ *
27780
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
27781
+ * fail-open: a notification suppressed is the worse error there, but a vision
27782
+ * model that timed out has not told us the bin is gone, and a latch is a
27783
+ * stateful claim that costs the operator a trip to reset.
27784
+ */
27785
+ var SceneConfirmSchema = object({
27786
+ enabled: boolean().default(false),
27787
+ prompt: string().min(1).max(1e3),
27788
+ profileId: string().optional(),
27789
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
27790
+ maxImagePx: number().int().min(64).max(2048).default(448),
27791
+ /** What a timeout / unavailable model means for the PENDING flip. */
27792
+ onTimeout: _enum(["flip", "hold"]).default("hold")
27793
+ });
26990
27794
  var SceneMonitorSchema = object({
26991
27795
  id: string(),
26992
27796
  label: string(),
@@ -27005,7 +27809,56 @@ var SceneMonitorSchema = object({
27005
27809
  lastConfidence: number().nullable(),
27006
27810
  currentCondition: SceneConditionSchema.nullable(),
27007
27811
  availability: _enum(["ok", "unavailable"]),
27008
- unavailableReason: string().nullable()
27812
+ unavailableReason: string().nullable(),
27813
+ /** Which state is "the initial screen". `null` until the first capture. */
27814
+ baselineStateId: string().nullable(),
27815
+ /** Which boolean drives notification rules and any export. */
27816
+ emit: _enum(["latched", "live"]).default("latched"),
27817
+ /** Live: does the region match the baseline RIGHT NOW. */
27818
+ verdict: SceneVerdictSchema,
27819
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
27820
+ latched: boolean(),
27821
+ /** Last reset (or creation). */
27822
+ armedAt: number(),
27823
+ divergedAt: number().nullable(),
27824
+ restoredAt: number().nullable(),
27825
+ /** A check is only COUNTED when the device has been quiet this long. Motion
27826
+ * during the window DISCARDS the observation — a car pulling up in front of
27827
+ * the bin must not be able to spend hysteresis credit. */
27828
+ quietSeconds: number().int().min(0).max(3600).default(60),
27829
+ /** An observation only advances the pending count when it is at least this
27830
+ * far from the previously counted one, so N agreeing checks span real time
27831
+ * rather than N adjacent polls inside one occlusion. */
27832
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
27833
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
27834
+ confirm: SceneConfirmSchema.optional(),
27835
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
27836
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
27837
+ /** Clear the latch on its own when the scene matches again? Default false —
27838
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
27839
+ * automation can react to the bin coming back without the operator's own
27840
+ * alarm silently clearing itself. */
27841
+ autoRestore: boolean().default(false),
27842
+ /** What to do when the current light has no reference of its own. See
27843
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
27844
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
27845
+ /**
27846
+ * The light whose checks are currently being SAT OUT under
27847
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
27848
+ *
27849
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
27850
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
27851
+ * nothing captured in this light"* in the same calm voice as the coverage
27852
+ * line, because the alternative is a scene that silently stops answering
27853
+ * after sunset with nothing anywhere saying why. A skipped check must never
27854
+ * read as a broken one.
27855
+ */
27856
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
27857
+ /** Named cause when `verdict === 'unknown'`. */
27858
+ unavailable: SceneUnavailableSchema.nullable(),
27859
+ /** Conditions that have at least one comparable reference — the coverage line
27860
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
27861
+ coveredConditions: array(SceneConditionSchema)
27009
27862
  });
27010
27863
  var SceneMonitorStatusSchema = object({
27011
27864
  monitors: array(SceneMonitorSchema),
@@ -27018,12 +27871,6 @@ var sceneMonitorCapability = {
27018
27871
  kind: "wrapper",
27019
27872
  defaultActive: true,
27020
27873
  deviceTypes: [DeviceType.Camera],
27021
- deviceConfig: { ui: {
27022
- kind: "widget",
27023
- widgetId: "host/scene-monitor-editor",
27024
- tab: "scenes",
27025
- label: "Scenes"
27026
- } },
27027
27874
  methods: {
27028
27875
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
27029
27876
  createScene: method(object({
@@ -27054,7 +27901,15 @@ var sceneMonitorCapability = {
27054
27901
  "both"
27055
27902
  ]).optional(),
27056
27903
  checkIntervalSec: number().optional(),
27057
- check: SceneCheckSchema.optional()
27904
+ check: SceneCheckSchema.optional(),
27905
+ emit: _enum(["latched", "live"]).optional(),
27906
+ quietSeconds: number().int().min(0).max(3600).optional(),
27907
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
27908
+ anchorThreshold: number().min(0).max(1).optional(),
27909
+ autoRestore: boolean().optional(),
27910
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
27911
+ /** `null` clears the vision-model adjudicator. */
27912
+ confirm: SceneConfirmSchema.nullable().optional()
27058
27913
  })
27059
27914
  }), _void(), {
27060
27915
  kind: "mutation",
@@ -27095,6 +27950,26 @@ var sceneMonitorCapability = {
27095
27950
  }), _void(), {
27096
27951
  kind: "mutation",
27097
27952
  auth: "admin"
27953
+ }),
27954
+ /**
27955
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
27956
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
27957
+ * "reset" in the operator's head means *this is the new normal*, and
27958
+ * re-capture is what makes the feature self-healing against slow drift
27959
+ * instead of failing silently weeks later.
27960
+ *
27961
+ * Reachable from three surfaces on this one mutation: the scene card, a
27962
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
27963
+ * no new Notification-Center code at all), and tRPC for scripts.
27964
+ */
27965
+ resetScene: method(object({
27966
+ deviceId: number(),
27967
+ monitorId: string(),
27968
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
27969
+ recapture: boolean().optional()
27970
+ }), _void(), {
27971
+ kind: "mutation",
27972
+ auth: "admin"
27098
27973
  })
27099
27974
  },
27100
27975
  status: {
@@ -27331,7 +28206,70 @@ var CamStreamDescriptorSchema = object({
27331
28206
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
27332
28207
  metadata: record(string(), unknown()).optional()
27333
28208
  });
27334
- DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
28209
+ /**
28210
+ * `stream-catalog` — device-scoped, provider-implemented. The pull counterpart
28211
+ * of the removed `publishCameraStream` push: a camera provider returns the full
28212
+ * set of stream descriptors it can offer for the device, synchronously, so the
28213
+ * broker can reconcile its registry against the authoritative provider state.
28214
+ */
28215
+ /**
28216
+ * The catalog as a DURABLE fact rather than a live answer.
28217
+ *
28218
+ * A battery camera's descriptors are profile-stable — they change when the
28219
+ * operator rewrites an encoder profile, not minute to minute — but building
28220
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
28221
+ * provider is allowed to build them exactly once per profile and must serve
28222
+ * every later pull from a cache.
28223
+ *
28224
+ * Holding that cache only in RAM is what turned a restart into an outage. The
28225
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
28226
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
28227
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
28228
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
28229
+ * which on a battery cam is most of the day. The camera was fine. The stream
28230
+ * was unreachable because the process had forgotten what the camera offers.
28231
+ *
28232
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
28233
+ * declared collection, with the same `restored` durability `battery` uses for
28234
+ * the same reason: the last known value is the only value there is while the
28235
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
28236
+ * is the DIAL that wakes a camera, never the catalog (D173).
28237
+ */
28238
+ var StreamCatalogStateSchema = object({
28239
+ /** The descriptors as last built from a real camera response. Never a guess:
28240
+ * a failed or refused build writes NOTHING, so a restored catalog is always
28241
+ * one the camera itself once produced. */
28242
+ descriptors: array(CamStreamDescriptorSchema),
28243
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
28244
+ * path decide whether the camera's own awake window is worth spending on a
28245
+ * re-read. */
28246
+ lastFetchedAt: number()
28247
+ });
28248
+ var streamCatalogCapability = {
28249
+ name: "stream-catalog",
28250
+ scope: "device",
28251
+ deviceNative: true,
28252
+ mode: "singleton",
28253
+ deviceTypes: [DeviceType.Camera],
28254
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
28255
+ runtimeState: StreamCatalogStateSchema,
28256
+ /**
28257
+ * Runtime-state durability: **restored** — see the schema doc. A cold
28258
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
28259
+ * camera that cannot be watched at all until it happens to wake.
28260
+ *
28261
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
28262
+ * build, and a build only runs when there is no cached copy (or the copy is
28263
+ * a day old and the camera is awake anyway).
28264
+ *
28265
+ * See `RuntimeStateDurability`. Enforced by
28266
+ * `scripts/check-runtime-state-durability.ts`.
28267
+ */
28268
+ durability: "restored",
28269
+ /** Clock field: written, but excluded from the compare that decides whether
28270
+ * persisting is worth a SQLite commit — the descriptors are the value. */
28271
+ volatileStateFields: ["lastFetchedAt"]
28272
+ };
27335
28273
  /** One of the camera's stream profiles. */
27336
28274
  var StreamProfileSchema = _enum([
27337
28275
  "main",
@@ -27585,12 +28523,64 @@ var NetworkAddressSchema = object({
27585
28523
  family: string(),
27586
28524
  internal: boolean()
27587
28525
  });
28526
+ /**
28527
+ * Provenance of the site coordinates, and the whole reason this is not just two
28528
+ * numbers.
28529
+ *
28530
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
28531
+ * nothing overwrites it.
28532
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
28533
+ * default that is right to a few kilometres beats the coarse UTC clock split
28534
+ * the sun-times consumers otherwise fall back to.
28535
+ *
28536
+ * The UI shows which one it is. An operator who cannot tell a guess from their
28537
+ * own input will eventually trust the guess.
28538
+ */
28539
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
28540
+ /**
28541
+ * The read shape: the location plus the honest state of the one-shot derivation.
28542
+ *
28543
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
28544
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
28545
+ * failed; the hub will NOT try again on its own — the fallback is declared
28546
+ * (consumers degrade to their own last resort) and the operator either types the
28547
+ * coordinates or presses detect.
28548
+ */
28549
+ var SiteLocationStatusSchema = object({
28550
+ location: object({
28551
+ /** WGS84 decimal degrees. */
28552
+ latitude: number().min(-90).max(90),
28553
+ longitude: number().min(-180).max(180),
28554
+ source: SiteLocationSourceSchema,
28555
+ /** Epoch ms the value was last written. */
28556
+ updatedAt: number(),
28557
+ /**
28558
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
28559
+ * only — never parsed, never matched on. Absent for an operator-typed value.
28560
+ */
28561
+ label: string().optional()
28562
+ }).nullable(),
28563
+ derivationAttemptedAt: number().nullable(),
28564
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
28565
+ derivationError: string().nullable()
28566
+ });
28567
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
28568
+ var SetSiteLocationInputSchema = object({
28569
+ latitude: number().min(-90).max(90),
28570
+ longitude: number().min(-180).max(180)
28571
+ }).nullable();
27588
28572
  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
28573
  kind: "mutation",
27590
28574
  auth: "admin"
27591
28575
  }), method(_void(), _void(), {
27592
28576
  kind: "mutation",
27593
28577
  auth: "admin"
28578
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
28579
+ kind: "mutation",
28580
+ auth: "admin"
28581
+ }), method(_void(), SiteLocationStatusSchema, {
28582
+ kind: "mutation",
28583
+ auth: "admin"
27594
28584
  });
27595
28585
  /**
27596
28586
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -28910,6 +29900,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28910
29900
  humiditySensor: humiditySensorCapability,
28911
29901
  image: imageCapability,
28912
29902
  imageSettings: imageSettingsCapability,
29903
+ intercom: intercomCapability,
28913
29904
  lawnMowerControl: lawnMowerControlCapability,
28914
29905
  lockControl: lockControlCapability,
28915
29906
  mediaPlayer: mediaPlayerCapability,
@@ -28928,6 +29919,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
28928
29919
  sceneMonitor: sceneMonitorCapability,
28929
29920
  scriptRunner: scriptRunnerCapability,
28930
29921
  smoke: smokeCapability,
29922
+ streamCatalog: streamCatalogCapability,
28931
29923
  streamParams: streamParamsCapability,
28932
29924
  switch: switchCapability,
28933
29925
  tamper: tamperCapability,
@@ -29581,6 +30573,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29581
30573
  labels: ["probe not implemented"]
29582
30574
  };
29583
30575
  }
30576
+ /**
30577
+ * Top-level devices restored at once in {@link onRestoreDevices}.
30578
+ *
30579
+ * Four covers the fleets this ships to without turning a boot into a burst a
30580
+ * camera NVR answers with a refusal. A provider whose upstream is a single
30581
+ * session with a serial command channel (a Baichuan hub, an NVR that
30582
+ * serialises ISAPI) should lower it; nothing needs to raise it.
30583
+ */
30584
+ restoreConcurrency = 4;
29584
30585
  async restoreDevices(savedDevices) {
29585
30586
  await this.onRestoreDevices(savedDevices);
29586
30587
  if (savedDevices.length > 0) this.ctx.logger.info(`Restored ${savedDevices.length} ${this.providerName} device(s)`);
@@ -29612,15 +30613,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29612
30613
  */
29613
30614
  async onRestoreDevices(savedDevices) {
29614
30615
  const restored = /* @__PURE__ */ new Set();
29615
- for (const saved of savedDevices) {
29616
- if (saved.parentDeviceId !== null) continue;
30616
+ const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
30617
+ const restoreOne = async (saved) => {
29617
30618
  const Class = this.deviceClasses[saved.type];
29618
30619
  if (!Class) {
29619
30620
  this.ctx.logger.warn("No device class registered for restored type — skipping", {
29620
30621
  tags: { stableId: saved.stableId },
29621
30622
  meta: { type: saved.type }
29622
30623
  });
29623
- continue;
30624
+ return;
29624
30625
  }
29625
30626
  try {
29626
30627
  await this.ctx.kernel.devices.create(saved.stableId, Class, {});
@@ -29634,7 +30635,15 @@ var BaseDeviceProvider = class extends BaseAddon {
29634
30635
  }
29635
30636
  });
29636
30637
  }
29637
- }
30638
+ };
30639
+ let nextTopLevel = 0;
30640
+ await Promise.all(Array.from({ length: Math.min(Math.max(1, this.restoreConcurrency), topLevel.length) }, async () => {
30641
+ for (;;) {
30642
+ const saved = topLevel[nextTopLevel++];
30643
+ if (saved === void 0) return;
30644
+ await restoreOne(saved);
30645
+ }
30646
+ }));
29638
30647
  const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
29639
30648
  for (const saved of childRows) {
29640
30649
  const Class = this.deviceClasses[saved.type];
@@ -31725,6 +32734,12 @@ Object.freeze({
31725
32734
  addonId: null,
31726
32735
  access: "create"
31727
32736
  },
32737
+ "llm.cancel": {
32738
+ capName: "llm",
32739
+ capScope: "system",
32740
+ addonId: null,
32741
+ access: "create"
32742
+ },
31728
32743
  "llm.deleteModel": {
31729
32744
  capName: "llm",
31730
32745
  capScope: "system",
@@ -31809,6 +32824,12 @@ Object.freeze({
31809
32824
  addonId: null,
31810
32825
  access: "view"
31811
32826
  },
32827
+ "llm.resolveModelRef": {
32828
+ capName: "llm",
32829
+ capScope: "system",
32830
+ addonId: null,
32831
+ access: "create"
32832
+ },
31812
32833
  "llm.setDefault": {
31813
32834
  capName: "llm",
31814
32835
  capScope: "system",
@@ -33975,6 +34996,12 @@ Object.freeze({
33975
34996
  addonId: null,
33976
34997
  access: "create"
33977
34998
  },
34999
+ "sceneMonitor.resetScene": {
35000
+ capName: "scene-monitor",
35001
+ capScope: "device",
35002
+ addonId: null,
35003
+ access: "delete"
35004
+ },
33978
35005
  "sceneMonitor.updateScene": {
33979
35006
  capName: "scene-monitor",
33980
35007
  capScope: "device",
@@ -34113,6 +35140,12 @@ Object.freeze({
34113
35140
  addonId: null,
34114
35141
  access: "view"
34115
35142
  },
35143
+ "snapshot.getDebugState": {
35144
+ capName: "snapshot",
35145
+ capScope: "device",
35146
+ addonId: null,
35147
+ access: "view"
35148
+ },
34116
35149
  "snapshot.getSnapshot": {
34117
35150
  capName: "snapshot",
34118
35151
  capScope: "device",
@@ -34653,6 +35686,12 @@ Object.freeze({
34653
35686
  addonId: null,
34654
35687
  access: "create"
34655
35688
  },
35689
+ "system.detectSiteLocation": {
35690
+ capName: "system",
35691
+ capScope: "system",
35692
+ addonId: null,
35693
+ access: "create"
35694
+ },
34656
35695
  "system.featureFlags": {
34657
35696
  capName: "system",
34658
35697
  capScope: "system",
@@ -34671,6 +35710,12 @@ Object.freeze({
34671
35710
  addonId: null,
34672
35711
  access: "view"
34673
35712
  },
35713
+ "system.getSiteLocation": {
35714
+ capName: "system",
35715
+ capScope: "system",
35716
+ addonId: null,
35717
+ access: "view"
35718
+ },
34674
35719
  "system.health": {
34675
35720
  capName: "system",
34676
35721
  capScope: "system",
@@ -34695,6 +35740,12 @@ Object.freeze({
34695
35740
  addonId: null,
34696
35741
  access: "create"
34697
35742
  },
35743
+ "system.setSiteLocation": {
35744
+ capName: "system",
35745
+ capScope: "system",
35746
+ addonId: null,
35747
+ access: "create"
35748
+ },
34698
35749
  "terminalSession.adoptLegacyMonitor": {
34699
35750
  capName: "terminal-session",
34700
35751
  capScope: "system",
@@ -35266,6 +36317,1709 @@ Object.freeze({
35266
36317
  access: "create"
35267
36318
  }
35268
36319
  });
36320
+ Object.freeze({
36321
+ "accessories.setChildHidden": [{
36322
+ name: "childDeviceId",
36323
+ form: "single",
36324
+ optional: false
36325
+ }, {
36326
+ name: "deviceId",
36327
+ form: "single",
36328
+ optional: false
36329
+ }],
36330
+ "addonSettings.getDeviceSettings": [{
36331
+ name: "deviceId",
36332
+ form: "single",
36333
+ optional: false
36334
+ }],
36335
+ "addonSettings.updateDeviceSettings": [{
36336
+ name: "deviceId",
36337
+ form: "single",
36338
+ optional: false
36339
+ }],
36340
+ "alarmPanel.arm": [{
36341
+ name: "deviceId",
36342
+ form: "single",
36343
+ optional: false
36344
+ }],
36345
+ "alarmPanel.disarm": [{
36346
+ name: "deviceId",
36347
+ form: "single",
36348
+ optional: false
36349
+ }],
36350
+ "alarmPanel.trigger": [{
36351
+ name: "deviceId",
36352
+ form: "single",
36353
+ optional: false
36354
+ }],
36355
+ "audioAnalysis.resolveDeviceSettings": [{
36356
+ name: "deviceId",
36357
+ form: "single",
36358
+ optional: false
36359
+ }],
36360
+ "audioAnalyzer.classify": [{
36361
+ name: "deviceId",
36362
+ form: "single",
36363
+ optional: true
36364
+ }],
36365
+ "audioMetrics.getCurrentSnapshot": [{
36366
+ name: "deviceId",
36367
+ form: "single",
36368
+ optional: false
36369
+ }],
36370
+ "audioMetrics.getHistory": [{
36371
+ name: "deviceId",
36372
+ form: "single",
36373
+ optional: false
36374
+ }],
36375
+ "automationControl.disable": [{
36376
+ name: "deviceId",
36377
+ form: "single",
36378
+ optional: false
36379
+ }],
36380
+ "automationControl.enable": [{
36381
+ name: "deviceId",
36382
+ form: "single",
36383
+ optional: false
36384
+ }],
36385
+ "automationControl.trigger": [{
36386
+ name: "deviceId",
36387
+ form: "single",
36388
+ optional: false
36389
+ }],
36390
+ "battery.wakeForStream": [{
36391
+ name: "deviceId",
36392
+ form: "single",
36393
+ optional: false
36394
+ }],
36395
+ "brightness.setBrightness": [{
36396
+ name: "deviceId",
36397
+ form: "single",
36398
+ optional: false
36399
+ }],
36400
+ "button.press": [{
36401
+ name: "deviceId",
36402
+ form: "single",
36403
+ optional: false
36404
+ }],
36405
+ "cameraCredentials.getCredentials": [{
36406
+ name: "deviceId",
36407
+ form: "single",
36408
+ optional: false
36409
+ }],
36410
+ "cameraStreams.getBrokerStreams": [{
36411
+ name: "deviceId",
36412
+ form: "single",
36413
+ optional: false
36414
+ }],
36415
+ "cameraStreams.getCameraStreams": [{
36416
+ name: "deviceId",
36417
+ form: "single",
36418
+ optional: false
36419
+ }],
36420
+ "cameraStreams.getProfileRtspEntries": [{
36421
+ name: "deviceId",
36422
+ form: "single",
36423
+ optional: false
36424
+ }],
36425
+ "cameraStreams.getRtspEntries": [{
36426
+ name: "deviceId",
36427
+ form: "single",
36428
+ optional: false
36429
+ }],
36430
+ "cameraStreams.pickStream": [{
36431
+ name: "deviceId",
36432
+ form: "single",
36433
+ optional: false
36434
+ }],
36435
+ "climateControl.setFanMode": [{
36436
+ name: "deviceId",
36437
+ form: "single",
36438
+ optional: false
36439
+ }],
36440
+ "climateControl.setMode": [{
36441
+ name: "deviceId",
36442
+ form: "single",
36443
+ optional: false
36444
+ }],
36445
+ "climateControl.setPreset": [{
36446
+ name: "deviceId",
36447
+ form: "single",
36448
+ optional: false
36449
+ }],
36450
+ "climateControl.setSwingHorizontal": [{
36451
+ name: "deviceId",
36452
+ form: "single",
36453
+ optional: false
36454
+ }],
36455
+ "climateControl.setSwingVertical": [{
36456
+ name: "deviceId",
36457
+ form: "single",
36458
+ optional: false
36459
+ }],
36460
+ "climateControl.setTarget": [{
36461
+ name: "deviceId",
36462
+ form: "single",
36463
+ optional: false
36464
+ }],
36465
+ "climateControl.setTargetHumidity": [{
36466
+ name: "deviceId",
36467
+ form: "single",
36468
+ optional: false
36469
+ }],
36470
+ "climateControl.setTargetRange": [{
36471
+ name: "deviceId",
36472
+ form: "single",
36473
+ optional: false
36474
+ }],
36475
+ "color.setColor": [{
36476
+ name: "deviceId",
36477
+ form: "single",
36478
+ optional: false
36479
+ }],
36480
+ "consumables.reset": [{
36481
+ name: "deviceId",
36482
+ form: "single",
36483
+ optional: false
36484
+ }],
36485
+ "control.setValue": [{
36486
+ name: "deviceId",
36487
+ form: "single",
36488
+ optional: false
36489
+ }],
36490
+ "cover.close": [{
36491
+ name: "deviceId",
36492
+ form: "single",
36493
+ optional: false
36494
+ }],
36495
+ "cover.open": [{
36496
+ name: "deviceId",
36497
+ form: "single",
36498
+ optional: false
36499
+ }],
36500
+ "cover.setPosition": [{
36501
+ name: "deviceId",
36502
+ form: "single",
36503
+ optional: false
36504
+ }],
36505
+ "cover.setTiltPosition": [{
36506
+ name: "deviceId",
36507
+ form: "single",
36508
+ optional: false
36509
+ }],
36510
+ "cover.stop": [{
36511
+ name: "deviceId",
36512
+ form: "single",
36513
+ optional: false
36514
+ }],
36515
+ "dayNight.getOptions": [{
36516
+ name: "deviceId",
36517
+ form: "single",
36518
+ optional: false
36519
+ }],
36520
+ "dayNight.setSettings": [{
36521
+ name: "deviceId",
36522
+ form: "single",
36523
+ optional: false
36524
+ }],
36525
+ "decoder.createSession": [{
36526
+ name: "deviceId",
36527
+ form: "single",
36528
+ optional: true
36529
+ }],
36530
+ "deviceAdoption.release": [{
36531
+ name: "camDeviceId",
36532
+ form: "single",
36533
+ optional: false
36534
+ }],
36535
+ "deviceAdoption.resync": [{
36536
+ name: "camDeviceId",
36537
+ form: "single",
36538
+ optional: false
36539
+ }],
36540
+ "deviceDiscovery.adoptDevice": [{
36541
+ name: "deviceId",
36542
+ form: "single",
36543
+ optional: false
36544
+ }],
36545
+ "deviceDiscovery.listDiscovered": [{
36546
+ name: "deviceId",
36547
+ form: "single",
36548
+ optional: false
36549
+ }],
36550
+ "deviceDiscovery.refreshDiscovery": [{
36551
+ name: "deviceId",
36552
+ form: "single",
36553
+ optional: false
36554
+ }],
36555
+ "deviceDiscovery.releaseDevice": [{
36556
+ name: "childDeviceId",
36557
+ form: "single",
36558
+ optional: false
36559
+ }, {
36560
+ name: "deviceId",
36561
+ form: "single",
36562
+ optional: false
36563
+ }],
36564
+ "deviceManager.adoptionRelease": [{
36565
+ name: "camDeviceId",
36566
+ form: "single",
36567
+ optional: false
36568
+ }],
36569
+ "deviceManager.adoptionResync": [{
36570
+ name: "camDeviceId",
36571
+ form: "single",
36572
+ optional: false
36573
+ }],
36574
+ "deviceManager.applyInitialMeta": [{
36575
+ name: "deviceId",
36576
+ form: "single",
36577
+ optional: false
36578
+ }, {
36579
+ name: "linkDeviceId",
36580
+ form: "single",
36581
+ optional: true
36582
+ }],
36583
+ "deviceManager.disable": [{
36584
+ name: "deviceId",
36585
+ form: "single",
36586
+ optional: false
36587
+ }],
36588
+ "deviceManager.enable": [{
36589
+ name: "deviceId",
36590
+ form: "single",
36591
+ optional: false
36592
+ }],
36593
+ "deviceManager.getBindings": [{
36594
+ name: "deviceId",
36595
+ form: "single",
36596
+ optional: false
36597
+ }],
36598
+ "deviceManager.getChildren": [{
36599
+ name: "parentDeviceId",
36600
+ form: "single",
36601
+ optional: false
36602
+ }],
36603
+ "deviceManager.getConfigSchema": [{
36604
+ name: "deviceId",
36605
+ form: "single",
36606
+ optional: false
36607
+ }],
36608
+ "deviceManager.getDevice": [{
36609
+ name: "deviceId",
36610
+ form: "single",
36611
+ optional: false
36612
+ }],
36613
+ "deviceManager.getDeviceAggregate": [{
36614
+ name: "deviceId",
36615
+ form: "single",
36616
+ optional: false
36617
+ }],
36618
+ "deviceManager.getDeviceLiveInfoAggregate": [{
36619
+ name: "deviceId",
36620
+ form: "single",
36621
+ optional: false
36622
+ }],
36623
+ "deviceManager.getDeviceSettingsAggregate": [{
36624
+ name: "deviceId",
36625
+ form: "single",
36626
+ optional: false
36627
+ }],
36628
+ "deviceManager.getDeviceStatusAggregate": [{
36629
+ name: "deviceId",
36630
+ form: "single",
36631
+ optional: false
36632
+ }],
36633
+ "deviceManager.getDeviceStatusAggregateBatch": [{
36634
+ name: "deviceIds",
36635
+ form: "array",
36636
+ optional: false
36637
+ }],
36638
+ "deviceManager.getLinkedDevices": [{
36639
+ name: "deviceId",
36640
+ form: "single",
36641
+ optional: false
36642
+ }],
36643
+ "deviceManager.getSettingsSchema": [{
36644
+ name: "deviceId",
36645
+ form: "single",
36646
+ optional: false
36647
+ }],
36648
+ "deviceManager.getStreamProfileMap": [{
36649
+ name: "deviceId",
36650
+ form: "single",
36651
+ optional: false
36652
+ }],
36653
+ "deviceManager.getStreamSources": [{
36654
+ name: "deviceId",
36655
+ form: "single",
36656
+ optional: false
36657
+ }],
36658
+ "deviceManager.getWireableFields": [{
36659
+ name: "deviceId",
36660
+ form: "single",
36661
+ optional: false
36662
+ }],
36663
+ "deviceManager.loadConfig": [{
36664
+ name: "deviceId",
36665
+ form: "single",
36666
+ optional: false
36667
+ }],
36668
+ "deviceManager.loadMeta": [{
36669
+ name: "deviceId",
36670
+ form: "single",
36671
+ optional: false
36672
+ }],
36673
+ "deviceManager.loadRuntimeState": [{
36674
+ name: "deviceId",
36675
+ form: "single",
36676
+ optional: false
36677
+ }],
36678
+ "deviceManager.persistConfig": [{
36679
+ name: "deviceId",
36680
+ form: "single",
36681
+ optional: false
36682
+ }],
36683
+ "deviceManager.probeStreams": [{
36684
+ name: "deviceId",
36685
+ form: "single",
36686
+ optional: false
36687
+ }],
36688
+ "deviceManager.registerDevice": [{
36689
+ name: "parentDeviceId",
36690
+ form: "single",
36691
+ optional: true
36692
+ }],
36693
+ "deviceManager.remove": [{
36694
+ name: "deviceId",
36695
+ form: "single",
36696
+ optional: false
36697
+ }],
36698
+ "deviceManager.removeDevice": [{
36699
+ name: "deviceId",
36700
+ form: "single",
36701
+ optional: false
36702
+ }],
36703
+ "deviceManager.runDeviceAction": [{
36704
+ name: "deviceId",
36705
+ form: "single",
36706
+ optional: false
36707
+ }],
36708
+ "deviceManager.setChildLayout": [{
36709
+ name: "deviceId",
36710
+ form: "single",
36711
+ optional: false
36712
+ }],
36713
+ "deviceManager.setDisabled": [{
36714
+ name: "deviceId",
36715
+ form: "single",
36716
+ optional: false
36717
+ }],
36718
+ "deviceManager.setDisplay": [{
36719
+ name: "deviceId",
36720
+ form: "single",
36721
+ optional: false
36722
+ }],
36723
+ "deviceManager.setIntegrationId": [{
36724
+ name: "deviceId",
36725
+ form: "single",
36726
+ optional: false
36727
+ }],
36728
+ "deviceManager.setLinkDeviceId": [{
36729
+ name: "deviceId",
36730
+ form: "single",
36731
+ optional: false
36732
+ }, {
36733
+ name: "linkDeviceId",
36734
+ form: "single",
36735
+ optional: true
36736
+ }],
36737
+ "deviceManager.setLocation": [{
36738
+ name: "deviceId",
36739
+ form: "single",
36740
+ optional: false
36741
+ }],
36742
+ "deviceManager.setMetadata": [{
36743
+ name: "deviceId",
36744
+ form: "single",
36745
+ optional: false
36746
+ }],
36747
+ "deviceManager.setName": [{
36748
+ name: "deviceId",
36749
+ form: "single",
36750
+ optional: false
36751
+ }],
36752
+ "deviceManager.setPrimaryChildEntityId": [{
36753
+ name: "deviceId",
36754
+ form: "single",
36755
+ optional: false
36756
+ }],
36757
+ "deviceManager.setRole": [{
36758
+ name: "deviceId",
36759
+ form: "single",
36760
+ optional: false
36761
+ }],
36762
+ "deviceManager.setStreamProfileMap": [{
36763
+ name: "deviceId",
36764
+ form: "single",
36765
+ optional: false
36766
+ }],
36767
+ "deviceManager.setType": [{
36768
+ name: "deviceId",
36769
+ form: "single",
36770
+ optional: false
36771
+ }],
36772
+ "deviceManager.setWrapperActive": [{
36773
+ name: "deviceId",
36774
+ form: "single",
36775
+ optional: false
36776
+ }],
36777
+ "deviceManager.testField": [{
36778
+ name: "deviceId",
36779
+ form: "single",
36780
+ optional: false
36781
+ }],
36782
+ "deviceManager.updateConfig": [{
36783
+ name: "deviceId",
36784
+ form: "single",
36785
+ optional: false
36786
+ }],
36787
+ "deviceManager.updateDeviceField": [{
36788
+ name: "deviceId",
36789
+ form: "single",
36790
+ optional: false
36791
+ }],
36792
+ "deviceManager.updateDeviceFieldsBatch": [{
36793
+ name: "deviceId",
36794
+ form: "single",
36795
+ optional: false
36796
+ }],
36797
+ "deviceOps.getConfigEntries": [{
36798
+ name: "deviceId",
36799
+ form: "single",
36800
+ optional: false
36801
+ }],
36802
+ "deviceOps.getRawState": [{
36803
+ name: "deviceId",
36804
+ form: "single",
36805
+ optional: false
36806
+ }],
36807
+ "deviceOps.getSettingsSchema": [{
36808
+ name: "deviceId",
36809
+ form: "single",
36810
+ optional: false
36811
+ }],
36812
+ "deviceOps.getStreamSources": [{
36813
+ name: "deviceId",
36814
+ form: "single",
36815
+ optional: false
36816
+ }],
36817
+ "deviceOps.removeDevice": [{
36818
+ name: "deviceId",
36819
+ form: "single",
36820
+ optional: false
36821
+ }],
36822
+ "deviceOps.runAction": [{
36823
+ name: "deviceId",
36824
+ form: "single",
36825
+ optional: false
36826
+ }],
36827
+ "deviceOps.setConfig": [{
36828
+ name: "deviceId",
36829
+ form: "single",
36830
+ optional: false
36831
+ }],
36832
+ "deviceState.getCapSlice": [{
36833
+ name: "deviceId",
36834
+ form: "single",
36835
+ optional: false
36836
+ }],
36837
+ "deviceState.getSnapshot": [{
36838
+ name: "deviceId",
36839
+ form: "single",
36840
+ optional: false
36841
+ }],
36842
+ "deviceState.setCapSlice": [{
36843
+ name: "deviceId",
36844
+ form: "single",
36845
+ optional: false
36846
+ }],
36847
+ "events.getEventClipUrl": [{
36848
+ name: "deviceId",
36849
+ form: "single",
36850
+ optional: false
36851
+ }],
36852
+ "events.getEvents": [{
36853
+ name: "deviceId",
36854
+ form: "single",
36855
+ optional: false
36856
+ }],
36857
+ "events.getEventThumbnail": [{
36858
+ name: "deviceId",
36859
+ form: "single",
36860
+ optional: false
36861
+ }],
36862
+ "faceGallery.getFaceByTrack": [{
36863
+ name: "deviceId",
36864
+ form: "single",
36865
+ optional: false
36866
+ }],
36867
+ "faceGallery.listRecentFaces": [{
36868
+ name: "deviceId",
36869
+ form: "single",
36870
+ optional: true
36871
+ }],
36872
+ "fanControl.setDirection": [{
36873
+ name: "deviceId",
36874
+ form: "single",
36875
+ optional: false
36876
+ }],
36877
+ "fanControl.setOscillating": [{
36878
+ name: "deviceId",
36879
+ form: "single",
36880
+ optional: false
36881
+ }],
36882
+ "fanControl.setPercentage": [{
36883
+ name: "deviceId",
36884
+ form: "single",
36885
+ optional: false
36886
+ }],
36887
+ "fanControl.setPreset": [{
36888
+ name: "deviceId",
36889
+ form: "single",
36890
+ optional: false
36891
+ }],
36892
+ "humidifier.setMode": [{
36893
+ name: "deviceId",
36894
+ form: "single",
36895
+ optional: false
36896
+ }],
36897
+ "humidifier.setOn": [{
36898
+ name: "deviceId",
36899
+ form: "single",
36900
+ optional: false
36901
+ }],
36902
+ "humidifier.setTargetHumidity": [{
36903
+ name: "deviceId",
36904
+ form: "single",
36905
+ optional: false
36906
+ }],
36907
+ "imageSettings.getOptions": [{
36908
+ name: "deviceId",
36909
+ form: "single",
36910
+ optional: false
36911
+ }],
36912
+ "imageSettings.setSettings": [{
36913
+ name: "deviceId",
36914
+ form: "single",
36915
+ optional: false
36916
+ }],
36917
+ "intercom.endTalkSession": [{
36918
+ name: "deviceId",
36919
+ form: "single",
36920
+ optional: false
36921
+ }],
36922
+ "intercom.handleAnswer": [{
36923
+ name: "deviceId",
36924
+ form: "single",
36925
+ optional: false
36926
+ }],
36927
+ "intercom.pushTalkAudio": [{
36928
+ name: "deviceId",
36929
+ form: "single",
36930
+ optional: false
36931
+ }],
36932
+ "intercom.startSession": [{
36933
+ name: "deviceId",
36934
+ form: "single",
36935
+ optional: false
36936
+ }],
36937
+ "intercom.startTalkSession": [{
36938
+ name: "deviceId",
36939
+ form: "single",
36940
+ optional: false
36941
+ }],
36942
+ "intercom.stopSession": [{
36943
+ name: "deviceId",
36944
+ form: "single",
36945
+ optional: false
36946
+ }],
36947
+ "lawnMowerControl.dock": [{
36948
+ name: "deviceId",
36949
+ form: "single",
36950
+ optional: false
36951
+ }],
36952
+ "lawnMowerControl.pause": [{
36953
+ name: "deviceId",
36954
+ form: "single",
36955
+ optional: false
36956
+ }],
36957
+ "lawnMowerControl.startMowing": [{
36958
+ name: "deviceId",
36959
+ form: "single",
36960
+ optional: false
36961
+ }],
36962
+ "lockControl.lock": [{
36963
+ name: "deviceId",
36964
+ form: "single",
36965
+ optional: false
36966
+ }],
36967
+ "lockControl.open": [{
36968
+ name: "deviceId",
36969
+ form: "single",
36970
+ optional: false
36971
+ }],
36972
+ "lockControl.unlock": [{
36973
+ name: "deviceId",
36974
+ form: "single",
36975
+ optional: false
36976
+ }],
36977
+ "mediaPlayer.next": [{
36978
+ name: "deviceId",
36979
+ form: "single",
36980
+ optional: false
36981
+ }],
36982
+ "mediaPlayer.pause": [{
36983
+ name: "deviceId",
36984
+ form: "single",
36985
+ optional: false
36986
+ }],
36987
+ "mediaPlayer.play": [{
36988
+ name: "deviceId",
36989
+ form: "single",
36990
+ optional: false
36991
+ }],
36992
+ "mediaPlayer.playMedia": [{
36993
+ name: "deviceId",
36994
+ form: "single",
36995
+ optional: false
36996
+ }],
36997
+ "mediaPlayer.previous": [{
36998
+ name: "deviceId",
36999
+ form: "single",
37000
+ optional: false
37001
+ }],
37002
+ "mediaPlayer.seek": [{
37003
+ name: "deviceId",
37004
+ form: "single",
37005
+ optional: false
37006
+ }],
37007
+ "mediaPlayer.selectSource": [{
37008
+ name: "deviceId",
37009
+ form: "single",
37010
+ optional: false
37011
+ }],
37012
+ "mediaPlayer.setMute": [{
37013
+ name: "deviceId",
37014
+ form: "single",
37015
+ optional: false
37016
+ }],
37017
+ "mediaPlayer.setRepeat": [{
37018
+ name: "deviceId",
37019
+ form: "single",
37020
+ optional: false
37021
+ }],
37022
+ "mediaPlayer.setShuffle": [{
37023
+ name: "deviceId",
37024
+ form: "single",
37025
+ optional: false
37026
+ }],
37027
+ "mediaPlayer.setVolume": [{
37028
+ name: "deviceId",
37029
+ form: "single",
37030
+ optional: false
37031
+ }],
37032
+ "mediaPlayer.stop": [{
37033
+ name: "deviceId",
37034
+ form: "single",
37035
+ optional: false
37036
+ }],
37037
+ "motion.isDetected": [{
37038
+ name: "deviceId",
37039
+ form: "single",
37040
+ optional: false
37041
+ }],
37042
+ "motionDetection.analyze": [{
37043
+ name: "deviceId",
37044
+ form: "single",
37045
+ optional: false
37046
+ }],
37047
+ "motionDetection.removeCamera": [{
37048
+ name: "deviceId",
37049
+ form: "single",
37050
+ optional: false
37051
+ }],
37052
+ "motionTrigger.setMotionTrigger": [{
37053
+ name: "deviceId",
37054
+ form: "single",
37055
+ optional: false
37056
+ }],
37057
+ "motionZones.getOptions": [{
37058
+ name: "deviceId",
37059
+ form: "single",
37060
+ optional: false
37061
+ }],
37062
+ "motionZones.setZone": [{
37063
+ name: "deviceId",
37064
+ form: "single",
37065
+ optional: false
37066
+ }],
37067
+ "nativeObjectDetection.setEnabled": [{
37068
+ name: "deviceId",
37069
+ form: "single",
37070
+ optional: false
37071
+ }],
37072
+ "networkQuality.getDeviceStats": [{
37073
+ name: "deviceId",
37074
+ form: "single",
37075
+ optional: false
37076
+ }],
37077
+ "networkQuality.reportClientStats": [{
37078
+ name: "deviceId",
37079
+ form: "single",
37080
+ optional: false
37081
+ }],
37082
+ "notificationRules.setDeviceMuted": [{
37083
+ name: "deviceId",
37084
+ form: "single",
37085
+ optional: false
37086
+ }],
37087
+ "notifier.cancel": [{
37088
+ name: "deviceId",
37089
+ form: "single",
37090
+ optional: false
37091
+ }],
37092
+ "notifier.send": [{
37093
+ name: "deviceId",
37094
+ form: "single",
37095
+ optional: false
37096
+ }],
37097
+ "osd.setOverlay": [{
37098
+ name: "deviceId",
37099
+ form: "single",
37100
+ optional: false
37101
+ }],
37102
+ "osdManager.clearSlotBinding": [{
37103
+ name: "deviceId",
37104
+ form: "single",
37105
+ optional: false
37106
+ }],
37107
+ "osdManager.copyDeviceConfiguration": [{
37108
+ name: "sourceDeviceId",
37109
+ form: "single",
37110
+ optional: false
37111
+ }, {
37112
+ name: "targetDeviceId",
37113
+ form: "single",
37114
+ optional: false
37115
+ }],
37116
+ "osdManager.getDeviceOsd": [{
37117
+ name: "deviceId",
37118
+ form: "single",
37119
+ optional: false
37120
+ }],
37121
+ "osdManager.getSourceCatalog": [{
37122
+ name: "deviceId",
37123
+ form: "single",
37124
+ optional: false
37125
+ }],
37126
+ "osdManager.previewSlot": [{
37127
+ name: "deviceId",
37128
+ form: "single",
37129
+ optional: false
37130
+ }],
37131
+ "osdManager.renderDevice": [{
37132
+ name: "deviceId",
37133
+ form: "single",
37134
+ optional: false
37135
+ }],
37136
+ "osdManager.setSlotBinding": [{
37137
+ name: "deviceId",
37138
+ form: "single",
37139
+ optional: false
37140
+ }],
37141
+ "petFeeder.callPet": [{
37142
+ name: "deviceId",
37143
+ form: "single",
37144
+ optional: false
37145
+ }],
37146
+ "petFeeder.cancelFeed": [{
37147
+ name: "deviceId",
37148
+ form: "single",
37149
+ optional: false
37150
+ }],
37151
+ "petFeeder.feed": [{
37152
+ name: "deviceId",
37153
+ form: "single",
37154
+ optional: false
37155
+ }],
37156
+ "petFeeder.markFoodReplenished": [{
37157
+ name: "deviceId",
37158
+ form: "single",
37159
+ optional: false
37160
+ }],
37161
+ "petFeeder.playSound": [{
37162
+ name: "deviceId",
37163
+ form: "single",
37164
+ optional: false
37165
+ }],
37166
+ "petFeeder.resetDesiccant": [{
37167
+ name: "deviceId",
37168
+ form: "single",
37169
+ optional: false
37170
+ }],
37171
+ "petFeeder.setChildLock": [{
37172
+ name: "deviceId",
37173
+ form: "single",
37174
+ optional: false
37175
+ }],
37176
+ "petFeeder.setFeedSound": [{
37177
+ name: "deviceId",
37178
+ form: "single",
37179
+ optional: false
37180
+ }],
37181
+ "petFeeder.setIndicatorLight": [{
37182
+ name: "deviceId",
37183
+ form: "single",
37184
+ optional: false
37185
+ }],
37186
+ "petFeeder.setVolume": [{
37187
+ name: "deviceId",
37188
+ form: "single",
37189
+ optional: false
37190
+ }],
37191
+ "pipelineAnalytics.clearTracks": [{
37192
+ name: "deviceId",
37193
+ form: "single",
37194
+ optional: false
37195
+ }],
37196
+ "pipelineAnalytics.completeRetrainTrack": [{
37197
+ name: "deviceId",
37198
+ form: "single",
37199
+ optional: false
37200
+ }],
37201
+ "pipelineAnalytics.deleteDeviceEvents": [{
37202
+ name: "deviceId",
37203
+ form: "single",
37204
+ optional: false
37205
+ }],
37206
+ "pipelineAnalytics.deleteTracks": [{
37207
+ name: "deviceId",
37208
+ form: "single",
37209
+ optional: false
37210
+ }],
37211
+ "pipelineAnalytics.deselectRetrainFrame": [{
37212
+ name: "deviceId",
37213
+ form: "single",
37214
+ optional: false
37215
+ }],
37216
+ "pipelineAnalytics.getActiveTracks": [{
37217
+ name: "deviceId",
37218
+ form: "single",
37219
+ optional: false
37220
+ }],
37221
+ "pipelineAnalytics.getAudioEvents": [{
37222
+ name: "deviceId",
37223
+ form: "single",
37224
+ optional: false
37225
+ }],
37226
+ "pipelineAnalytics.getEventDensity": [{
37227
+ name: "deviceId",
37228
+ form: "single",
37229
+ optional: false
37230
+ }],
37231
+ "pipelineAnalytics.getEventMedia": [{
37232
+ name: "deviceId",
37233
+ form: "single",
37234
+ optional: false
37235
+ }],
37236
+ "pipelineAnalytics.getKeyEvents": [{
37237
+ name: "deviceId",
37238
+ form: "single",
37239
+ optional: false
37240
+ }],
37241
+ "pipelineAnalytics.getMotionEvents": [{
37242
+ name: "deviceId",
37243
+ form: "single",
37244
+ optional: false
37245
+ }],
37246
+ "pipelineAnalytics.getObjectEvents": [{
37247
+ name: "deviceId",
37248
+ form: "single",
37249
+ optional: false
37250
+ }],
37251
+ "pipelineAnalytics.getRetrainExportUrl": [{
37252
+ name: "deviceIds",
37253
+ form: "array",
37254
+ optional: true
37255
+ }],
37256
+ "pipelineAnalytics.getSensorEvents": [{
37257
+ name: "deviceId",
37258
+ form: "single",
37259
+ optional: false
37260
+ }],
37261
+ "pipelineAnalytics.getTrack": [{
37262
+ name: "deviceId",
37263
+ form: "single",
37264
+ optional: false
37265
+ }],
37266
+ "pipelineAnalytics.getTrackMedia": [{
37267
+ name: "deviceId",
37268
+ form: "single",
37269
+ optional: false
37270
+ }],
37271
+ "pipelineAnalytics.getTrainingExportSummary": [{
37272
+ name: "deviceIds",
37273
+ form: "array",
37274
+ optional: true
37275
+ }],
37276
+ "pipelineAnalytics.getTrainingExportUrl": [{
37277
+ name: "deviceIds",
37278
+ form: "array",
37279
+ optional: true
37280
+ }],
37281
+ "pipelineAnalytics.listEventKinds": [{
37282
+ name: "deviceId",
37283
+ form: "single",
37284
+ optional: false
37285
+ }],
37286
+ "pipelineAnalytics.listEventKindsBatch": [{
37287
+ name: "deviceIds",
37288
+ form: "array",
37289
+ optional: false
37290
+ }],
37291
+ "pipelineAnalytics.listOpsLog": [{
37292
+ name: "deviceId",
37293
+ form: "single",
37294
+ optional: true
37295
+ }],
37296
+ "pipelineAnalytics.listRecentTracks": [{
37297
+ name: "deviceIds",
37298
+ form: "array",
37299
+ optional: false
37300
+ }],
37301
+ "pipelineAnalytics.listRetrainStaging": [{
37302
+ name: "deviceIds",
37303
+ form: "array",
37304
+ optional: true
37305
+ }],
37306
+ "pipelineAnalytics.listTrackMedia": [{
37307
+ name: "deviceId",
37308
+ form: "single",
37309
+ optional: false
37310
+ }],
37311
+ "pipelineAnalytics.listTracks": [{
37312
+ name: "deviceId",
37313
+ form: "single",
37314
+ optional: false
37315
+ }],
37316
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
37317
+ name: "deviceId",
37318
+ form: "single",
37319
+ optional: false
37320
+ }],
37321
+ "pipelineAnalytics.pruneEventsBefore": [{
37322
+ name: "deviceId",
37323
+ form: "single",
37324
+ optional: false
37325
+ }],
37326
+ "pipelineAnalytics.pruneTracksBefore": [{
37327
+ name: "deviceId",
37328
+ form: "single",
37329
+ optional: false
37330
+ }],
37331
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
37332
+ name: "deviceId",
37333
+ form: "single",
37334
+ optional: true
37335
+ }],
37336
+ "pipelineAnalytics.restageRetrainTrack": [{
37337
+ name: "deviceId",
37338
+ form: "single",
37339
+ optional: false
37340
+ }],
37341
+ "pipelineAnalytics.saveRetrainAnnotations": [{
37342
+ name: "deviceId",
37343
+ form: "single",
37344
+ optional: false
37345
+ }],
37346
+ "pipelineAnalytics.searchObjectEvents": [{
37347
+ name: "deviceId",
37348
+ form: "single",
37349
+ optional: true
37350
+ }],
37351
+ "pipelineAnalytics.selectRetrainFrames": [{
37352
+ name: "deviceId",
37353
+ form: "single",
37354
+ optional: false
37355
+ }],
37356
+ "pipelineAnalytics.setTrackFlags": [{
37357
+ name: "deviceId",
37358
+ form: "single",
37359
+ optional: false
37360
+ }],
37361
+ "pipelineAnalytics.wipeAllAnalytics": [{
37362
+ name: "deviceId",
37363
+ form: "single",
37364
+ optional: false
37365
+ }],
37366
+ "pipelineExecutor.runPipeline": [{
37367
+ name: "deviceId",
37368
+ form: "single",
37369
+ optional: true
37370
+ }],
37371
+ "pipelineExecutor.runPipelineBatch": [{
37372
+ name: "deviceId",
37373
+ form: "single",
37374
+ optional: true
37375
+ }],
37376
+ "pipelineOrchestrator.assignAudio": [{
37377
+ name: "deviceId",
37378
+ form: "single",
37379
+ optional: false
37380
+ }],
37381
+ "pipelineOrchestrator.assignPipeline": [{
37382
+ name: "deviceId",
37383
+ form: "single",
37384
+ optional: false
37385
+ }],
37386
+ "pipelineOrchestrator.getAudioAssignment": [{
37387
+ name: "deviceId",
37388
+ form: "single",
37389
+ optional: false
37390
+ }],
37391
+ "pipelineOrchestrator.getCameraMetrics": [{
37392
+ name: "deviceId",
37393
+ form: "single",
37394
+ optional: false
37395
+ }],
37396
+ "pipelineOrchestrator.getCameraSettings": [{
37397
+ name: "deviceId",
37398
+ form: "single",
37399
+ optional: false
37400
+ }],
37401
+ "pipelineOrchestrator.getCameraStatus": [{
37402
+ name: "deviceId",
37403
+ form: "single",
37404
+ optional: false
37405
+ }],
37406
+ "pipelineOrchestrator.getCameraStatuses": [{
37407
+ name: "deviceIds",
37408
+ form: "array",
37409
+ optional: true
37410
+ }],
37411
+ "pipelineOrchestrator.getCameraStepOverrides": [{
37412
+ name: "deviceId",
37413
+ form: "single",
37414
+ optional: false
37415
+ }],
37416
+ "pipelineOrchestrator.getCameraSwitches": [{
37417
+ name: "deviceId",
37418
+ form: "single",
37419
+ optional: false
37420
+ }],
37421
+ "pipelineOrchestrator.getPipelineAssignment": [{
37422
+ name: "deviceId",
37423
+ form: "single",
37424
+ optional: false
37425
+ }],
37426
+ "pipelineOrchestrator.getPipelineDevicePin": [{
37427
+ name: "deviceId",
37428
+ form: "single",
37429
+ optional: false
37430
+ }],
37431
+ "pipelineOrchestrator.resolvePipeline": [{
37432
+ name: "deviceId",
37433
+ form: "single",
37434
+ optional: false
37435
+ }],
37436
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
37437
+ name: "deviceId",
37438
+ form: "single",
37439
+ optional: false
37440
+ }],
37441
+ "pipelineOrchestrator.setCameraStepOverride": [{
37442
+ name: "deviceId",
37443
+ form: "single",
37444
+ optional: false
37445
+ }],
37446
+ "pipelineOrchestrator.setCameraStepToggle": [{
37447
+ name: "deviceId",
37448
+ form: "single",
37449
+ optional: false
37450
+ }],
37451
+ "pipelineOrchestrator.setCameraSwitch": [{
37452
+ name: "deviceId",
37453
+ form: "single",
37454
+ optional: false
37455
+ }],
37456
+ "pipelineOrchestrator.setPipelineDevicePin": [{
37457
+ name: "deviceId",
37458
+ form: "single",
37459
+ optional: false
37460
+ }],
37461
+ "pipelineOrchestrator.unassignAudio": [{
37462
+ name: "deviceId",
37463
+ form: "single",
37464
+ optional: false
37465
+ }],
37466
+ "pipelineOrchestrator.unassignPipeline": [{
37467
+ name: "deviceId",
37468
+ form: "single",
37469
+ optional: false
37470
+ }],
37471
+ "pipelineRunner.attachCamera": [{
37472
+ name: "deviceId",
37473
+ form: "single",
37474
+ optional: false
37475
+ }],
37476
+ "pipelineRunner.detachCamera": [{
37477
+ name: "deviceId",
37478
+ form: "single",
37479
+ optional: false
37480
+ }],
37481
+ "pipelineRunner.getCameraMetrics": [{
37482
+ name: "deviceId",
37483
+ form: "single",
37484
+ optional: false
37485
+ }],
37486
+ "pipelineRunner.reportMotion": [{
37487
+ name: "deviceId",
37488
+ form: "single",
37489
+ optional: false
37490
+ }],
37491
+ "pipelineRunner.runDetailSubtree": [{
37492
+ name: "deviceId",
37493
+ form: "single",
37494
+ optional: false
37495
+ }],
37496
+ "pipelineRunner.runStatelessStep": [{
37497
+ name: "sourceDeviceId",
37498
+ form: "single",
37499
+ optional: false
37500
+ }],
37501
+ "plateGallery.getPlateByTrack": [{
37502
+ name: "deviceId",
37503
+ form: "single",
37504
+ optional: false
37505
+ }],
37506
+ "plateGallery.listPlates": [{
37507
+ name: "deviceId",
37508
+ form: "single",
37509
+ optional: true
37510
+ }],
37511
+ "privacyMask.getOptions": [{
37512
+ name: "deviceId",
37513
+ form: "single",
37514
+ optional: false
37515
+ }],
37516
+ "privacyMask.setAudioEnabled": [{
37517
+ name: "deviceId",
37518
+ form: "single",
37519
+ optional: false
37520
+ }],
37521
+ "privacyMask.setMask": [{
37522
+ name: "deviceId",
37523
+ form: "single",
37524
+ optional: false
37525
+ }],
37526
+ "ptz.continuousMove": [{
37527
+ name: "deviceId",
37528
+ form: "single",
37529
+ optional: false
37530
+ }],
37531
+ "ptz.deletePreset": [{
37532
+ name: "deviceId",
37533
+ form: "single",
37534
+ optional: false
37535
+ }],
37536
+ "ptz.getOptions": [{
37537
+ name: "deviceId",
37538
+ form: "single",
37539
+ optional: false
37540
+ }],
37541
+ "ptz.getPosition": [{
37542
+ name: "deviceId",
37543
+ form: "single",
37544
+ optional: false
37545
+ }],
37546
+ "ptz.getPresets": [{
37547
+ name: "deviceId",
37548
+ form: "single",
37549
+ optional: false
37550
+ }],
37551
+ "ptz.goHome": [{
37552
+ name: "deviceId",
37553
+ form: "single",
37554
+ optional: false
37555
+ }],
37556
+ "ptz.goToPreset": [{
37557
+ name: "deviceId",
37558
+ form: "single",
37559
+ optional: false
37560
+ }],
37561
+ "ptz.move": [{
37562
+ name: "deviceId",
37563
+ form: "single",
37564
+ optional: false
37565
+ }],
37566
+ "ptz.savePreset": [{
37567
+ name: "deviceId",
37568
+ form: "single",
37569
+ optional: false
37570
+ }],
37571
+ "ptz.setAutofocus": [{
37572
+ name: "deviceId",
37573
+ form: "single",
37574
+ optional: false
37575
+ }],
37576
+ "ptz.stop": [{
37577
+ name: "deviceId",
37578
+ form: "single",
37579
+ optional: false
37580
+ }],
37581
+ "ptzAutotrack.getSettings": [{
37582
+ name: "deviceId",
37583
+ form: "single",
37584
+ optional: false
37585
+ }],
37586
+ "ptzAutotrack.getStatus": [{
37587
+ name: "deviceId",
37588
+ form: "single",
37589
+ optional: false
37590
+ }],
37591
+ "ptzAutotrack.setEnabled": [{
37592
+ name: "deviceId",
37593
+ form: "single",
37594
+ optional: false
37595
+ }],
37596
+ "ptzAutotrack.setSettings": [{
37597
+ name: "deviceId",
37598
+ form: "single",
37599
+ optional: false
37600
+ }],
37601
+ "reboot.reboot": [{
37602
+ name: "deviceId",
37603
+ form: "single",
37604
+ optional: false
37605
+ }],
37606
+ "recording.deleteFootprint": [{
37607
+ name: "deviceId",
37608
+ form: "single",
37609
+ optional: false
37610
+ }],
37611
+ "recording.getAvailability": [{
37612
+ name: "deviceId",
37613
+ form: "single",
37614
+ optional: false
37615
+ }],
37616
+ "recording.getDaysWithRecordings": [{
37617
+ name: "deviceId",
37618
+ form: "single",
37619
+ optional: false
37620
+ }],
37621
+ "recording.getDeviceConfig": [{
37622
+ name: "deviceId",
37623
+ form: "single",
37624
+ optional: false
37625
+ }],
37626
+ "recording.getPlaybackManifest": [{
37627
+ name: "deviceId",
37628
+ form: "single",
37629
+ optional: false
37630
+ }],
37631
+ "recording.listOpsLog": [{
37632
+ name: "deviceId",
37633
+ form: "single",
37634
+ optional: true
37635
+ }],
37636
+ "recording.locateSegment": [{
37637
+ name: "deviceId",
37638
+ form: "single",
37639
+ optional: false
37640
+ }],
37641
+ "recording.pruneFootage": [{
37642
+ name: "deviceId",
37643
+ form: "single",
37644
+ optional: false
37645
+ }],
37646
+ "recording.readGopBytes": [{
37647
+ name: "deviceId",
37648
+ form: "single",
37649
+ optional: false
37650
+ }],
37651
+ "recording.readSegmentBytes": [{
37652
+ name: "deviceId",
37653
+ form: "single",
37654
+ optional: false
37655
+ }],
37656
+ "recording.relocateFootage": [{
37657
+ name: "deviceId",
37658
+ form: "single",
37659
+ optional: true
37660
+ }],
37661
+ "recording.renderClip": [{
37662
+ name: "deviceId",
37663
+ form: "single",
37664
+ optional: false
37665
+ }],
37666
+ "recording.renderGif": [{
37667
+ name: "deviceId",
37668
+ form: "single",
37669
+ optional: false
37670
+ }],
37671
+ "recording.rescanStorage": [{
37672
+ name: "deviceId",
37673
+ form: "single",
37674
+ optional: false
37675
+ }],
37676
+ "recording.setDeviceConfig": [{
37677
+ name: "deviceId",
37678
+ form: "single",
37679
+ optional: false
37680
+ }],
37681
+ "recording.startStorageMigrationMove": [{
37682
+ name: "deviceId",
37683
+ form: "single",
37684
+ optional: true
37685
+ }],
37686
+ "recordingExport.createExport": [{
37687
+ name: "deviceId",
37688
+ form: "single",
37689
+ optional: false
37690
+ }],
37691
+ "recordingExport.listExports": [{
37692
+ name: "deviceId",
37693
+ form: "single",
37694
+ optional: true
37695
+ }],
37696
+ "sceneMonitor.captureReference": [{
37697
+ name: "deviceId",
37698
+ form: "single",
37699
+ optional: false
37700
+ }],
37701
+ "sceneMonitor.createScene": [{
37702
+ name: "deviceId",
37703
+ form: "single",
37704
+ optional: false
37705
+ }],
37706
+ "sceneMonitor.deleteReference": [{
37707
+ name: "deviceId",
37708
+ form: "single",
37709
+ optional: false
37710
+ }],
37711
+ "sceneMonitor.deleteScene": [{
37712
+ name: "deviceId",
37713
+ form: "single",
37714
+ optional: false
37715
+ }],
37716
+ "sceneMonitor.listScenes": [{
37717
+ name: "deviceId",
37718
+ form: "single",
37719
+ optional: false
37720
+ }],
37721
+ "sceneMonitor.recheckNow": [{
37722
+ name: "deviceId",
37723
+ form: "single",
37724
+ optional: false
37725
+ }],
37726
+ "sceneMonitor.resetScene": [{
37727
+ name: "deviceId",
37728
+ form: "single",
37729
+ optional: false
37730
+ }],
37731
+ "sceneMonitor.updateScene": [{
37732
+ name: "deviceId",
37733
+ form: "single",
37734
+ optional: false
37735
+ }],
37736
+ "scriptRunner.run": [{
37737
+ name: "deviceId",
37738
+ form: "single",
37739
+ optional: false
37740
+ }],
37741
+ "scriptRunner.stop": [{
37742
+ name: "deviceId",
37743
+ form: "single",
37744
+ optional: false
37745
+ }],
37746
+ "snapshot.getDebugState": [{
37747
+ name: "deviceId",
37748
+ form: "single",
37749
+ optional: false
37750
+ }],
37751
+ "snapshot.getSnapshot": [{
37752
+ name: "deviceId",
37753
+ form: "single",
37754
+ optional: false
37755
+ }],
37756
+ "snapshot.getSnapshotLinks": [{
37757
+ name: "targets",
37758
+ form: "object-array",
37759
+ optional: false,
37760
+ itemField: "deviceId"
37761
+ }],
37762
+ "snapshot.getSnapshotOverview": [{
37763
+ name: "deviceIds",
37764
+ form: "array",
37765
+ optional: false
37766
+ }],
37767
+ "snapshot.invalidateCache": [{
37768
+ name: "deviceId",
37769
+ form: "single",
37770
+ optional: false
37771
+ }],
37772
+ "streamBroker.acquireEgressTranscode": [{
37773
+ name: "deviceId",
37774
+ form: "single",
37775
+ optional: false
37776
+ }],
37777
+ "streamBroker.assignProfile": [{
37778
+ name: "deviceId",
37779
+ form: "single",
37780
+ optional: false
37781
+ }],
37782
+ "streamBroker.getDeviceAudioMute": [{
37783
+ name: "deviceId",
37784
+ form: "single",
37785
+ optional: false
37786
+ }],
37787
+ "streamBroker.getStreamWithCodec": [{
37788
+ name: "deviceId",
37789
+ form: "single",
37790
+ optional: false
37791
+ }],
37792
+ "streamBroker.produceEventMedia": [{
37793
+ name: "deviceId",
37794
+ form: "single",
37795
+ optional: false
37796
+ }],
37797
+ "streamBroker.publishCameraStream": [{
37798
+ name: "deviceId",
37799
+ form: "single",
37800
+ optional: false
37801
+ }],
37802
+ "streamBroker.renderPreBufferClip": [{
37803
+ name: "deviceId",
37804
+ form: "single",
37805
+ optional: false
37806
+ }],
37807
+ "streamBroker.restartProfile": [{
37808
+ name: "deviceId",
37809
+ form: "single",
37810
+ optional: false
37811
+ }],
37812
+ "streamBroker.retractCameraStream": [{
37813
+ name: "deviceId",
37814
+ form: "single",
37815
+ optional: false
37816
+ }],
37817
+ "streamBroker.setDeviceAudioMute": [{
37818
+ name: "deviceId",
37819
+ form: "single",
37820
+ optional: false
37821
+ }],
37822
+ "streamBroker.unassignProfile": [{
37823
+ name: "deviceId",
37824
+ form: "single",
37825
+ optional: false
37826
+ }],
37827
+ "streamCatalog.getCatalog": [{
37828
+ name: "deviceId",
37829
+ form: "single",
37830
+ optional: false
37831
+ }],
37832
+ "streamParams.getConfigSchema": [{
37833
+ name: "deviceId",
37834
+ form: "single",
37835
+ optional: false
37836
+ }],
37837
+ "streamParams.getOptions": [{
37838
+ name: "deviceId",
37839
+ form: "single",
37840
+ optional: false
37841
+ }],
37842
+ "streamParams.setProfile": [{
37843
+ name: "deviceId",
37844
+ form: "single",
37845
+ optional: false
37846
+ }],
37847
+ "switch.setState": [{
37848
+ name: "deviceId",
37849
+ form: "single",
37850
+ optional: false
37851
+ }],
37852
+ "vacuumControl.locate": [{
37853
+ name: "deviceId",
37854
+ form: "single",
37855
+ optional: false
37856
+ }],
37857
+ "vacuumControl.pause": [{
37858
+ name: "deviceId",
37859
+ form: "single",
37860
+ optional: false
37861
+ }],
37862
+ "vacuumControl.returnToBase": [{
37863
+ name: "deviceId",
37864
+ form: "single",
37865
+ optional: false
37866
+ }],
37867
+ "vacuumControl.setFanSpeed": [{
37868
+ name: "deviceId",
37869
+ form: "single",
37870
+ optional: false
37871
+ }],
37872
+ "vacuumControl.start": [{
37873
+ name: "deviceId",
37874
+ form: "single",
37875
+ optional: false
37876
+ }],
37877
+ "vacuumControl.stop": [{
37878
+ name: "deviceId",
37879
+ form: "single",
37880
+ optional: false
37881
+ }],
37882
+ "valve.close": [{
37883
+ name: "deviceId",
37884
+ form: "single",
37885
+ optional: false
37886
+ }],
37887
+ "valve.open": [{
37888
+ name: "deviceId",
37889
+ form: "single",
37890
+ optional: false
37891
+ }],
37892
+ "valve.setPosition": [{
37893
+ name: "deviceId",
37894
+ form: "single",
37895
+ optional: false
37896
+ }],
37897
+ "valve.stop": [{
37898
+ name: "deviceId",
37899
+ form: "single",
37900
+ optional: false
37901
+ }],
37902
+ "videoclips.getClipPlayback": [{
37903
+ name: "deviceId",
37904
+ form: "single",
37905
+ optional: false
37906
+ }],
37907
+ "videoclips.listClips": [{
37908
+ name: "deviceId",
37909
+ form: "single",
37910
+ optional: false
37911
+ }],
37912
+ "waterHeater.setAway": [{
37913
+ name: "deviceId",
37914
+ form: "single",
37915
+ optional: false
37916
+ }],
37917
+ "waterHeater.setOperationMode": [{
37918
+ name: "deviceId",
37919
+ form: "single",
37920
+ optional: false
37921
+ }],
37922
+ "waterHeater.setTargetTemp": [{
37923
+ name: "deviceId",
37924
+ form: "single",
37925
+ optional: false
37926
+ }],
37927
+ "webrtcSession.addIceCandidate": [{
37928
+ name: "deviceId",
37929
+ form: "single",
37930
+ optional: false
37931
+ }],
37932
+ "webrtcSession.closeSession": [{
37933
+ name: "deviceId",
37934
+ form: "single",
37935
+ optional: false
37936
+ }],
37937
+ "webrtcSession.createSession": [{
37938
+ name: "deviceId",
37939
+ form: "single",
37940
+ optional: false
37941
+ }],
37942
+ "webrtcSession.getIceCandidates": [{
37943
+ name: "deviceId",
37944
+ form: "single",
37945
+ optional: false
37946
+ }],
37947
+ "webrtcSession.getSessionState": [{
37948
+ name: "deviceId",
37949
+ form: "single",
37950
+ optional: false
37951
+ }],
37952
+ "webrtcSession.handleAnswer": [{
37953
+ name: "deviceId",
37954
+ form: "single",
37955
+ optional: false
37956
+ }],
37957
+ "webrtcSession.handleOffer": [{
37958
+ name: "deviceId",
37959
+ form: "single",
37960
+ optional: false
37961
+ }],
37962
+ "webrtcSession.hasAdaptiveBitrate": [{
37963
+ name: "deviceId",
37964
+ form: "single",
37965
+ optional: false
37966
+ }],
37967
+ "webrtcSession.listStreams": [{
37968
+ name: "deviceId",
37969
+ form: "single",
37970
+ optional: false
37971
+ }],
37972
+ "zoneAnalytics.getCameraHistory": [{
37973
+ name: "deviceId",
37974
+ form: "single",
37975
+ optional: false
37976
+ }],
37977
+ "zoneAnalytics.getCurrentSnapshot": [{
37978
+ name: "deviceId",
37979
+ form: "single",
37980
+ optional: false
37981
+ }],
37982
+ "zoneAnalytics.getUnzonedHistory": [{
37983
+ name: "deviceId",
37984
+ form: "single",
37985
+ optional: false
37986
+ }],
37987
+ "zoneAnalytics.getZoneHistory": [{
37988
+ name: "deviceId",
37989
+ form: "single",
37990
+ optional: false
37991
+ }],
37992
+ "zoneRules.listRules": [{
37993
+ name: "deviceId",
37994
+ form: "single",
37995
+ optional: false
37996
+ }],
37997
+ "zoneRules.setRules": [{
37998
+ name: "deviceId",
37999
+ form: "single",
38000
+ optional: false
38001
+ }],
38002
+ "zones.addZone": [{
38003
+ name: "deviceId",
38004
+ form: "single",
38005
+ optional: false
38006
+ }],
38007
+ "zones.listZones": [{
38008
+ name: "deviceId",
38009
+ form: "single",
38010
+ optional: false
38011
+ }],
38012
+ "zones.removeZone": [{
38013
+ name: "deviceId",
38014
+ form: "single",
38015
+ optional: false
38016
+ }],
38017
+ "zones.updateZone": [{
38018
+ name: "deviceId",
38019
+ form: "single",
38020
+ optional: false
38021
+ }]
38022
+ });
35269
38023
  Object.freeze({
35270
38024
  "broker": "broker",
35271
38025
  "device-export": "device-export",