@camstack/addon-provider-petkit 0.2.17 → 0.2.18

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