@camstack/addon-osd-manager 0.1.9 → 0.1.11

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 (22) hide show
  1. package/dist/MotionZonesSettings-Cq0OFaxs.mjs +310 -0
  2. package/dist/PrivacyMaskSettings-C0jj3SDp.mjs +370 -0
  3. package/dist/SceneMonitorEditor-B25bY2v0.mjs +828 -0
  4. package/dist/_stub.js +12899 -12924
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BLRTZ4RM.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-U1DYRszQ.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-rUObp2Qg.mjs +26 -0
  7. package/dist/addon-osd-manager.css +1 -1
  8. package/dist/{hostInit-N1Y97Zzt.mjs → hostInit-UKaIppAV.mjs} +3 -3
  9. package/dist/index.js +2852 -97
  10. package/dist/index.mjs +2852 -97
  11. package/dist/player-overlays-Dfe_rxmA.mjs +44 -0
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/responsive-CWwNAY3j.mjs +122 -0
  14. package/dist/{trash-2-6DuTY6Z3.mjs → square-ax5XLFv8.mjs} +3 -24
  15. package/dist/trash-2-CWfC2FLD.mjs +25 -0
  16. package/dist/use-device-snapshot-Z9dNOZFk.mjs +149 -0
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Bzaw9YeG.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DEpr9uky.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/MotionZonesSettings-CvRjAHsj.mjs +0 -309
  20. package/dist/PrivacyMaskSettings-LV8_5mQk.mjs +0 -368
  21. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BHektQkr.mjs +0 -26
  22. package/dist/player-overlays-Cb0QIiJ0.mjs +0 -163
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- //#region ../types/dist/event-category-Cv9dO26A.mjs
5
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -209,6 +209,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
209
209
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
210
210
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
211
211
  /**
212
+ * A node the orchestrator would otherwise place cameras on has NO usable
213
+ * inference device: the operator enabled one or more accelerators there and
214
+ * the live probe reports every one of them unavailable. Emitted once per
215
+ * TRANSITION into that state (never per dispatch), and the node is dropped
216
+ * from the placement candidate set for as long as it holds.
217
+ *
218
+ * This exists because the state was previously invisible: little-unraid
219
+ * absorbed 283k inference errors in a day while still being handed cameras,
220
+ * and nothing in the system said so.
221
+ *
222
+ * A node with no accelerators configured at all is NOT this — its devices
223
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
224
+ * serves it exactly as before.
225
+ */
226
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
227
+ /**
228
+ * A camera has an OPEN detection session and has produced no detection at
229
+ * all for longer than the blind threshold — the camera is being decoded and
230
+ * inferred and is returning nothing. Emitted once per transition into blind,
231
+ * per camera.
232
+ *
233
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
234
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
235
+ * camera" produce byte-identical silence.
236
+ */
237
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
238
+ /**
212
239
  * Per-camera pipeline config was mutated by the orchestrator
213
240
  * (3-level settings change via `setAgentAddonDefaults` /
214
241
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3000,6 +3027,9 @@ function handlePipeResult(left, next, ctx) {
3000
3027
  fallback: left.fallback
3001
3028
  }, ctx);
3002
3029
  }
3030
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3031
+ $ZodPipe.init(inst, def);
3032
+ });
3003
3033
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3004
3034
  $ZodType.init(inst, def);
3005
3035
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5185,6 +5215,10 @@ function pipe(in_, out) {
5185
5215
  out
5186
5216
  });
5187
5217
  }
5218
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5219
+ ZodPipe.init(inst, def);
5220
+ $ZodPreprocess.init(inst, def);
5221
+ });
5188
5222
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5189
5223
  $ZodReadonly.init(inst, def);
5190
5224
  ZodType.init(inst, def);
@@ -5243,6 +5277,13 @@ function _instanceof(cls, params = {}) {
5243
5277
  };
5244
5278
  return inst;
5245
5279
  }
5280
+ function preprocess(fn, schema) {
5281
+ return new ZodPreprocess({
5282
+ type: "pipe",
5283
+ in: transform(fn),
5284
+ out: schema
5285
+ });
5286
+ }
5246
5287
  //#endregion
5247
5288
  //#region ../../node_modules/zod/v4/classic/compat.js
5248
5289
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -11564,6 +11605,8 @@ var QueryFilterSchema = object({
11564
11605
  where: record(string(), unknown()).optional(),
11565
11606
  whereIn: record(string(), array(unknown())).optional(),
11566
11607
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11608
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
11609
+ whereNot: record(string(), unknown()).optional(),
11567
11610
  orderBy: object({
11568
11611
  field: string(),
11569
11612
  direction: _enum(["asc", "desc"])
@@ -11583,7 +11626,8 @@ var QueryFilterSchema = object({
11583
11626
  var MutationFilterSchema = object({
11584
11627
  where: record(string(), unknown()).optional(),
11585
11628
  whereIn: record(string(), array(unknown())).optional(),
11586
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11629
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11630
+ whereNot: record(string(), unknown()).optional()
11587
11631
  });
11588
11632
  /** A single stored record: `{ id, data }`. */
11589
11633
  var SettingsRecordSchema = object({
@@ -13749,6 +13793,17 @@ var LlmImageSchema = object({
13749
13793
  bytes: _instanceof(Uint8Array),
13750
13794
  mimeType: string()
13751
13795
  });
13796
+ /**
13797
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
13798
+ * the flag is what a consumer table flips, the count is what the operator tunes.
13799
+ * A retry doubles the wall time of a call, so the two gates that run inside a
13800
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
13801
+ */
13802
+ var LlmRetryPolicySchema = object({
13803
+ enabled: boolean().default(false),
13804
+ /** Total attempts INCLUDING the first. 1 = no retry. */
13805
+ maxAttempts: number().int().min(1).max(5).default(1)
13806
+ });
13752
13807
  var LlmGenerateBaseInputSchema = object({
13753
13808
  /** Collection routing (the notification-output posture). */
13754
13809
  addonId: string().optional(),
@@ -13763,7 +13818,28 @@ var LlmGenerateBaseInputSchema = object({
13763
13818
  jsonSchema: record(string(), unknown()).optional(),
13764
13819
  /** Per-call override of the profile default. */
13765
13820
  maxTokens: number().int().positive().optional(),
13766
- temperature: number().optional()
13821
+ temperature: number().optional(),
13822
+ /** Per-call override of the profile default (nucleus sampling). */
13823
+ topP: number().min(0).max(1).optional(),
13824
+ /** Per-call override of the profile default (top-k sampling). */
13825
+ topK: number().int().positive().optional(),
13826
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
13827
+ timeoutMs: number().int().positive().optional(),
13828
+ /** Per-call override; beats both the consumer table and the profile. */
13829
+ retry: LlmRetryPolicySchema.optional(),
13830
+ /**
13831
+ * Caller-minted id that makes this generation CANCELLABLE.
13832
+ *
13833
+ * Without it a caller that stops waiting cannot stop the work: the gates race
13834
+ * the call against 8 s and free their own slot when the timer wins, while the
13835
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
13836
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
13837
+ * not generations, and the real load is unbounded.
13838
+ *
13839
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
13840
+ * `llm.cancel({ requestId })` tears the socket down.
13841
+ */
13842
+ requestId: string().optional()
13767
13843
  });
13768
13844
  /**
13769
13845
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -13776,6 +13852,18 @@ var LlmGenerateBaseInputSchema = object({
13776
13852
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
13777
13853
  * watchdog — operator decision #3).
13778
13854
  */
13855
+ /**
13856
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
13857
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
13858
+ * REF rather than looked up at install time, so what the operator approved in
13859
+ * the preview is exactly what the node downloads.
13860
+ */
13861
+ var ManagedModelExtraFileSchema = object({
13862
+ url: string(),
13863
+ filename: string(),
13864
+ sizeBytes: number(),
13865
+ sha256: string().optional()
13866
+ });
13779
13867
  var ManagedModelRefSchema = discriminatedUnion("kind", [
13780
13868
  object({
13781
13869
  kind: literal("catalog"),
@@ -13784,7 +13872,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
13784
13872
  object({
13785
13873
  kind: literal("url"),
13786
13874
  url: string(),
13787
- sha256: string().optional()
13875
+ sha256: string().optional(),
13876
+ /** Picker/status label; the file basename when absent. */
13877
+ label: string().optional(),
13878
+ sizeBytes: number().optional(),
13879
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
13788
13880
  }),
13789
13881
  object({
13790
13882
  kind: literal("path"),
@@ -13802,13 +13894,82 @@ var ManagedRuntimeConfigSchema = object({
13802
13894
  gpuLayers: number().int().default(0),
13803
13895
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
13804
13896
  threads: number().int().optional(),
13805
- /** Concurrent slots. */
13897
+ /** Concurrent slots (`--parallel`). */
13806
13898
  parallel: number().int().default(1),
13899
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
13900
+ batchSize: number().int().positive().optional(),
13901
+ /** Physical batch / micro-batch (`-ub`). */
13902
+ ubatchSize: number().int().positive().optional(),
13903
+ /**
13904
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
13905
+ * is a no-op elsewhere, so it is offered rather than assumed.
13906
+ */
13907
+ flashAttention: boolean().default(false),
13908
+ /**
13909
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
13910
+ * inference. Costs the full model size in resident memory — which is exactly
13911
+ * what the RAM budget is counting.
13912
+ */
13913
+ mlock: boolean().default(false),
13914
+ /**
13915
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
13916
+ * start, but avoids the page-fault stalls a network or spinning-disk model
13917
+ * store produces on every first token.
13918
+ */
13919
+ noMmap: boolean().default(false),
13920
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
13921
+ * cheapest way to fit a longer context in the same RAM. */
13922
+ cacheTypeK: _enum([
13923
+ "f32",
13924
+ "f16",
13925
+ "q8_0",
13926
+ "q5_1",
13927
+ "q5_0",
13928
+ "q4_1",
13929
+ "q4_0"
13930
+ ]).optional(),
13931
+ cacheTypeV: _enum([
13932
+ "f32",
13933
+ "f16",
13934
+ "q8_0",
13935
+ "q5_1",
13936
+ "q5_0",
13937
+ "q4_1",
13938
+ "q4_0"
13939
+ ]).optional(),
13940
+ /**
13941
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
13942
+ * (which most vision chat templates need and some language-only models
13943
+ * dislike), `--cont-batching`, `--rope-scaling`, …
13944
+ *
13945
+ * It is NOT a second place to set the flags above. A token that collides
13946
+ * with a typed field is REJECTED at start, naming the field that owns it
13947
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
13948
+ * the "two switches that disagree" failure this repo has already shipped
13949
+ * twice (D62).
13950
+ */
13951
+ extraArgs: array(string()).default([]),
13807
13952
  /** Else lazy: first generate boots it. */
13808
13953
  autoStart: boolean().default(false),
13809
13954
  /** 0 = never; frees RAM after quiet periods. */
13810
13955
  idleStopMinutes: number().int().default(30)
13811
13956
  });
13957
+ /**
13958
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
13959
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
13960
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
13961
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
13962
+ */
13963
+ var LlmDownloadProgressSchema = object({
13964
+ phase: _enum(["downloading", "verifying"]),
13965
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
13966
+ file: string(),
13967
+ fileIndex: number().int(),
13968
+ fileCount: number().int(),
13969
+ /** Across the WHOLE install, not the current file. */
13970
+ downloadedBytes: number(),
13971
+ totalBytes: number().optional()
13972
+ });
13812
13973
  var LlmRuntimeStatusSchema = object({
13813
13974
  /** Status is ALWAYS node-qualified. */
13814
13975
  nodeId: string(),
@@ -13825,6 +13986,8 @@ var LlmRuntimeStatusSchema = object({
13825
13986
  modelPath: string().optional(),
13826
13987
  modelId: string().optional(),
13827
13988
  downloadProgress: number().min(0).max(1).optional(),
13989
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
13990
+ download: LlmDownloadProgressSchema.optional(),
13828
13991
  lastError: string().optional(),
13829
13992
  crashesInWindow: number(),
13830
13993
  /** Child RSS (sampled best-effort). */
@@ -13835,7 +13998,14 @@ var LlmNodeModelSchema = object({
13835
13998
  file: string(),
13836
13999
  sizeBytes: number(),
13837
14000
  catalogId: string().optional(),
13838
- installedAt: number().optional()
14001
+ installedAt: number().optional(),
14002
+ /**
14003
+ * Absolute path on the node. Present so a file that is on disk but matches
14004
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
14005
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
14006
+ * it the picker could list such a file and do nothing with it.
14007
+ */
14008
+ path: string().optional()
13839
14009
  });
13840
14010
  var LlmRuntimeDiskUsageSchema = object({
13841
14011
  nodeId: string(),
@@ -13906,10 +14076,47 @@ var LlmProfileSchema = object({
13906
14076
  baseUrl: string().optional(),
13907
14077
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
13908
14078
  apiKey: string().optional(),
14079
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
14080
+ * degraded to text — that shipped once and produced a confident answer to a
14081
+ * question about a picture nobody sent. */
13909
14082
  supportsVision: boolean(),
13910
14083
  temperature: number().min(0).max(2).optional(),
14084
+ /** Nucleus sampling. Every wire we speak has it. */
14085
+ topP: number().min(0).max(1).optional(),
14086
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
14087
+ * wire does, and the client drops it there (measured: the request body gets
14088
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
14089
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
14090
+ topK: number().int().positive().optional(),
13911
14091
  maxTokens: number().int().positive().optional(),
14092
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
14093
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
14094
+ * the model with, so it is the one field that changes a PROCESS. */
14095
+ contextLength: number().int().positive().optional(),
14096
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
14097
+ * two system prompts fighting is worse than either alone). */
14098
+ systemPrompt: string().optional(),
14099
+ /** Total generation bound — the only one a unary call has. */
13912
14100
  timeoutMs: number().int().positive().default(6e4),
14101
+ /** The TCP handshake only — "is the port even open". NOT the wait for
14102
+ * response headers: on the LM Studio / llama-server wire those are written
14103
+ * once the model has finished loading, so they belong to the bound below. */
14104
+ connectTimeoutMs: number().int().positive().default(1e4),
14105
+ /** Accepted, but no output yet — response headers included, because a cold
14106
+ * GPU load is exactly what happens before them. */
14107
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
14108
+ /** Output started then stopped. */
14109
+ idleTimeoutMs: number().int().positive().default(6e4),
14110
+ /** Profile-level default. The per-consumer table and a per-call override
14111
+ * both beat it — see `resolveRetryPolicy`. */
14112
+ retry: LlmRetryPolicySchema.default({
14113
+ enabled: false,
14114
+ maxAttempts: 1
14115
+ }),
14116
+ /** Whether this profile may use tools. The tool-call plumbing rides the
14117
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
14118
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
14119
+ toolsEnabled: boolean().default(false),
13913
14120
  extraHeaders: record(string(), string()).optional(),
13914
14121
  /** kind === 'managed-local' only (spec §4). */
13915
14122
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -13959,6 +14166,36 @@ var ManagedModelCatalogEntrySchema = object({
13959
14166
  /** Vision models: companion projector file. */
13960
14167
  mmprojUrl: string().optional()
13961
14168
  });
14169
+ /**
14170
+ * The outcome of turning one operator-typed Hugging Face reference into a
14171
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
14172
+ * I will not pick for you" is a normal answer the UI has to render, not an
14173
+ * exception.
14174
+ *
14175
+ * `candidates` is the whole reason the refusal is usable — every string in it
14176
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
14177
+ */
14178
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
14179
+ ok: literal(true),
14180
+ /** Ready to hand to `installModel` unchanged. */
14181
+ model: ManagedModelRefSchema,
14182
+ label: string(),
14183
+ repo: string(),
14184
+ quantization: string(),
14185
+ purpose: _enum(["text", "vision"]),
14186
+ totalBytes: number(),
14187
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
14188
+ * see that 0.9 GB of it is a projector they did not name. */
14189
+ extraFilenames: array(string())
14190
+ }), object({
14191
+ ok: literal(false),
14192
+ code: string(),
14193
+ message: string(),
14194
+ candidates: array(string()).optional(),
14195
+ /** Set when the refusal was only the ceiling: re-calling with
14196
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
14197
+ requiredBytes: number().optional()
14198
+ })]);
13962
14199
  var LlmRuntimeNodeSchema = object({
13963
14200
  nodeId: string(),
13964
14201
  reachable: boolean(),
@@ -13982,6 +14219,17 @@ var llmCapability = {
13982
14219
  methods: {
13983
14220
  generate: method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
13984
14221
  generateVision: method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
14222
+ /**
14223
+ * Stop a generation started with a `requestId`.
14224
+ *
14225
+ * Idempotent and always successful: cancelling an id that already finished,
14226
+ * never existed, or was cancelled a moment ago is a no-op. A caller that has
14227
+ * given up must never have to handle an error from giving up.
14228
+ */
14229
+ cancel: method(object({
14230
+ addonId: string().optional(),
14231
+ requestId: string()
14232
+ }), _void(), { kind: "mutation" }),
13985
14233
  listProfileKinds: method(object({}), array(LlmProfileKindDescriptorSchema)),
13986
14234
  listProfiles: method(object({}), array(LlmProfileSchema)),
13987
14235
  upsertProfile: method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
@@ -14015,6 +14263,25 @@ var llmCapability = {
14015
14263
  listModelCatalog: method(object({}), array(ManagedModelCatalogEntrySchema)),
14016
14264
  listRuntimeNodes: method(object({}), array(LlmRuntimeNodeSchema)),
14017
14265
  listNodeModels: method(object({ nodeId: string() }), array(LlmNodeModelSchema)),
14266
+ /**
14267
+ * One typed Hugging Face reference → a pinned, verified `ManagedModelRef`.
14268
+ *
14269
+ * Runs on the HUB, not on the target node: resolution needs egress to
14270
+ * huggingface.co, and an agent that cannot reach it still installs fine
14271
+ * through the model-distributor relay. Nothing is downloaded here — this is
14272
+ * a tree read plus a HEAD, so the operator sees the size, the quantization
14273
+ * and the mmproj BEFORE approving a multi-GB pull.
14274
+ */
14275
+ resolveModelRef: method(object({
14276
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
14277
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
14278
+ ref: string(),
14279
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
14280
+ maxBytes: number().positive().optional()
14281
+ }), HfModelResolutionSchema, {
14282
+ kind: "mutation",
14283
+ auth: "admin"
14284
+ }),
14018
14285
  installModel: method(object({
14019
14286
  nodeId: string(),
14020
14287
  model: ManagedModelRefSchema
@@ -15824,6 +16091,8 @@ var NcSystemEventKindSchema = _enum([
15824
16091
  "stream-offline",
15825
16092
  "node-online",
15826
16093
  "node-offline",
16094
+ "node-inference-unavailable",
16095
+ "detection-blind",
15827
16096
  "addon-update-available",
15828
16097
  "server-update-available",
15829
16098
  "alarm-triggered",
@@ -15885,7 +16154,16 @@ var NcScheduleSchema = object({
15885
16154
  });
15886
16155
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
15887
16156
  var NcPlateMatcherSchema = object({
15888
- values: array(string().min(1)).min(1),
16157
+ /**
16158
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
16159
+ * pipeline could read** — the plate half of "no selection = no narrowing",
16160
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
16161
+ * rather than merely seen. A subject carrying no plate still fails.
16162
+ *
16163
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
16164
+ * ever persisted an empty list, so widening it cannot change an existing rule.
16165
+ */
16166
+ values: array(string().min(1)),
15889
16167
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
15890
16168
  maxDistance: number().int().min(0).max(3).default(1)
15891
16169
  });
@@ -15919,28 +16197,36 @@ var NcOccupancyConditionSchema = object({
15919
16197
  /**
15920
16198
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
15921
16199
  *
15922
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
15923
- * reference notifier uses, so an operator moving between them re-uses what
15924
- * they already know): a rule matches when, over a sampling window of
15925
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
15926
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
15927
- *
15928
- * - `dbThreshold` its level is at or above this many dBFS (see
15929
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
15930
- * - `labels` the classifier put at least one of these labels on it.
15931
- *
15932
- * Both are OPTIONAL and independent, which is the point of the shape: a
15933
- * loudness rule ("something loud at 3am") needs no model to be right, and a
15934
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
15935
- * is given** a window in which every sample is trivially a hit would fire on
15936
- * silence, so the engine refuses such a condition rather than notifying on
15937
- * nothing (the schema cannot express "at least one of" without becoming a
15938
- * ZodEffects the cap path would have to special-case).
15939
- *
15940
- * `hitPercent` is over the samples the window actually HOLDS, and the window
15941
- * must be FULL before it can match a window that has been open for two
15942
- * seconds of its ten is 100% of nothing, and firing on it would make
15943
- * `samplingSeconds` decorative.
16200
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
16201
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
16202
+ * there is no second switch that can disagree with the first and every rule
16203
+ * authored before the decision migrates for free (`audioModeOf`):
16204
+ *
16205
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
16206
+ * classifier labels with one of them. No window, no percentage:
16207
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
16208
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
16209
+ * the analyzer's (`classificationMinScore`, per device) — a label only
16210
+ * reaches this condition if the classifier was already confident enough.
16211
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
16212
+ * the condition: at least `hitPercent`% of the samples over
16213
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
16214
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
16215
+ * must be FULL before it can match a window open for two of its ten
16216
+ * seconds is 100% of nothing.
16217
+ *
16218
+ * **Why label mode has no window.** It had one, and it never fired: the
16219
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
16220
+ * of them per episode, even through continuous crying. The measured maximum
16221
+ * `hitPercent` over the whole live history was 40 — under the shipped default
16222
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
16223
+ * the wrong question to ask of a sparse classifier.
16224
+ *
16225
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
16226
+ * and the rule would fire on silence. The schema cannot express "exactly one
16227
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
16228
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
16229
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
15944
16230
  *
15945
16231
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
15946
16232
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -15948,13 +16234,13 @@ var NcOccupancyConditionSchema = object({
15948
16234
  * an operator who typed `dog` mean the same thing.
15949
16235
  */
15950
16236
  var NcAudioConditionSchema = object({
15951
- /** Audio macro labels; absent = any sound (level-only rule). */
16237
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
15952
16238
  labels: array(string().min(1)).min(1).optional(),
15953
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
16239
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
15954
16240
  dbThreshold: number().min(-96).max(0).optional(),
15955
- /** Percentage of the window's samples that must be hits (1–100). */
16241
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
15956
16242
  hitPercent: number().int().min(1).max(100).default(60),
15957
- /** Length of the sampling window in seconds. */
16243
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
15958
16244
  samplingSeconds: number().int().min(1).max(300).default(10)
15959
16245
  });
15960
16246
  /**
@@ -16092,13 +16378,81 @@ var NcRuleActionsSchema = object({
16092
16378
  */
16093
16379
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
16094
16380
  });
16381
+ /**
16382
+ * "This rule applies only while `deviceId` is in one of `states`."
16383
+ *
16384
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
16385
+ * `on`/`off` for a switch — not a normalised set, because normalising would
16386
+ * make the condition lie about devices whose states have no equivalent.
16387
+ *
16388
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
16389
+ * condition that fired on "I could not read it" would be worse than no gate.
16390
+ */
16391
+ var NcDeviceStateConditionSchema = object({
16392
+ deviceId: number().int(),
16393
+ /** Any of these matches. */
16394
+ states: array(string().min(1)).min(1)
16395
+ });
16396
+ /**
16397
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
16398
+ *
16399
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
16400
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
16401
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
16402
+ * already has a trigger ("tell me about a person at the front door, but only
16403
+ * while the bin is still out"). That is why it composes with every delivery
16404
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
16405
+ * kind exist for it — see D159.
16406
+ *
16407
+ * ── Identity ───────────────────────────────────────────────────────────────
16408
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
16409
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
16410
+ * carried as a HINT for the editor and for the log line, never as part of the
16411
+ * lookup key: a rule whose hint drifted must still gate correctly.
16412
+ *
16413
+ * ── Which boolean ──────────────────────────────────────────────────────────
16414
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
16415
+ * already declares which boolean drives notification rules, and a second knob
16416
+ * that could disagree with it is exactly the D62 failure. Set it only to
16417
+ * override one rule against the scene's own default.
16418
+ *
16419
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
16420
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
16421
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
16422
+ * evidence, in either direction.
16423
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
16424
+ * The latch is a durable fact about the past ("it has diverged since I armed
16425
+ * it"), so a camera that has gone dark does not clear it — that is the whole
16426
+ * reason the operator asked for a latch.
16427
+ *
16428
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
16429
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
16430
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
16431
+ * said out loud in the log rather than dropped in silence.
16432
+ */
16433
+ var NcSceneConditionSchema = object({
16434
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
16435
+ sceneId: string().min(1),
16436
+ /** The camera the scene lives on. A hint for the editor and the log line. */
16437
+ deviceId: number().int().optional(),
16438
+ /** The state the scene must be in for the rule to fire. */
16439
+ requiredState: _enum(["matched", "diverged"]),
16440
+ /**
16441
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
16442
+ * scene's own `emit` field, which is the only place that decision belongs.
16443
+ */
16444
+ latched: boolean().optional()
16445
+ });
16095
16446
  var NcConditionsSchema = object({
16096
16447
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
16097
- deviceState: object({
16098
- deviceId: number().int(),
16099
- /** Any of these matches. */
16100
- states: array(string().min(1)).min(1)
16101
- }).optional(),
16448
+ deviceState: NcDeviceStateConditionSchema.optional(),
16449
+ /**
16450
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
16451
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
16452
+ * unlike `occupancy`/`audio` it discriminates nothing. See
16453
+ * {@link NcSceneCondition} and D159.
16454
+ */
16455
+ scene: NcSceneConditionSchema.optional(),
16102
16456
  /** Device scope — absent = all devices. */
16103
16457
  devices: array(number()).optional(),
16104
16458
  /** Detector class names (any overlap with the record's class set). */
@@ -16124,18 +16478,47 @@ var NcConditionsSchema = object({
16124
16478
  */
16125
16479
  labelEquals: array(string().min(1)).optional(),
16126
16480
  /**
16127
- * Identity matcher. P1 boundary: matched against the record's collapsed
16128
- * `label` (the identity display name propagated by the face pipeline) —
16129
- * identity-ID matching rides in P2 when identity ids reach the record.
16481
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
16482
+ * is about recognised people at all.
16483
+ *
16484
+ * Three states, and the empty one is the point:
16485
+ *
16486
+ * | value | meaning |
16487
+ * | --- | --- |
16488
+ * | absent | the rule does not care who it is; an unrecognised person matches |
16489
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
16490
+ * | a list | only these identities |
16491
+ *
16492
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
16493
+ * `devices` list is every device), applied one level down: the operator has
16494
+ * turned the face scope ON and narrowed it to nothing, which is every known
16495
+ * face. No second field states the same thing — a switch that can disagree
16496
+ * with the list under it is worse than no switch (D62).
16497
+ *
16498
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
16499
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
16500
+ * the operator fixed the spelling. The id reaches the record on
16501
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
16502
+ * `{{label}}` renders.
16503
+ *
16504
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
16505
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
16506
+ * for is left as it stands and reported, never dropped. The engine also
16507
+ * accepts a display-name hit as a compatibility leg, so a rule whose
16508
+ * migration could not resolve keeps matching exactly what it matched before.
16130
16509
  */
16131
16510
  identities: array(string().min(1)).optional(),
16132
- /** Fuzzy plate matcher against the record's `label` (plate text). */
16511
+ /**
16512
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
16513
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
16514
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
16515
+ */
16133
16516
  plates: NcPlateMatcherSchema.optional(),
16134
16517
  /**
16135
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
16136
- * Same P1 boundary: matched against the record's collapsed `label` (the
16137
- * identity display name). A record with NO label passes (nothing to
16138
- * exclude), unlike the include variant which fails on an absent label.
16518
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
16519
+ * the same id members and the same lazy name→id migration. A record with NO
16520
+ * identity passes (nothing to exclude), unlike the include variant which
16521
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
16139
16522
  */
16140
16523
  identitiesExclude: array(string().min(1)).optional(),
16141
16524
  /**
@@ -16527,7 +16910,80 @@ var NcRuleInputSchema = object({
16527
16910
  * a rule that predates the gate must keep delivering byte-for-byte as it
16528
16911
  * did, and absent is the only way to say that without a migration.
16529
16912
  */
16530
- confirm: NcConfirmSchema.optional()
16913
+ confirm: NcConfirmSchema.optional(),
16914
+ /**
16915
+ * WAIT for face/plate recognition before saying anything.
16916
+ *
16917
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
16918
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
16919
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
16920
+ * measured on this hub — and an `immediate` rule enqueues on the first object
16921
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
16922
+ * immediate path, and no amount of media re-resolution fixes a sentence.
16923
+ *
16924
+ * Only two honest answers exist, and this flag picks between them. It has
16925
+ * effect ONLY on a rule that declares a recognition scope
16926
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
16927
+ * other rule there is nothing to wait for and the flag is inert.
16928
+ *
16929
+ * | value | what happens |
16930
+ * | --- | --- |
16931
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
16932
+ * | 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) |
16933
+ *
16934
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16935
+ * on the addon cap path, and absent has to keep meaning exactly what every
16936
+ * rule authored before this field meant.
16937
+ *
16938
+ * The cost of `true` is stated here because the editor states it too: a rule
16939
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
16940
+ * tests every zone the track visited and a `crossing` condition can no longer
16941
+ * be satisfied, because a closed track carries no crossing.
16942
+ */
16943
+ waitForEnhancement: boolean().optional(),
16944
+ /**
16945
+ * GROUP a burst of subjects into ONE notification that grows.
16946
+ *
16947
+ * Seconds of quiet after the last matching subject before the burst is
16948
+ * considered over. While it is open, the first subject enqueues immediately —
16949
+ * **exactly as today, with no added latency** — and every real growth (a new
16950
+ * subject, or a name confirmed on one already in it) REPLACES that
16951
+ * notification with an updated one naming everybody. The push carries the
16952
+ * group's own coalescing tag, so the phone replaces rather than stacks.
16953
+ *
16954
+ * `0` / absent = off, and off is today's behaviour byte for byte.
16955
+ *
16956
+ * ### Why an idle cutoff and not a window
16957
+ *
16958
+ * The measured seven-person arrival on device 590 spans 110 s with every
16959
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
16960
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
16961
+ * 30 is Frigate's shipped value for the same decision.
16962
+ *
16963
+ * ### What it replaces
16964
+ *
16965
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
16966
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
16967
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
16968
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
16969
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
16970
+ * budget over GROUPS — which is what it always meant — and a growth is never
16971
+ * throttled by the window its own first member spent.
16972
+ *
16973
+ * ### Interaction with {@link waitForEnhancement}
16974
+ *
16975
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
16976
+ * TRACK CLOSE, so with both set the group is opened by the first member to
16977
+ * CLOSE — already carrying its name — and grows as later members close. That
16978
+ * is later, and complete. With grouping alone the group opens on the first
16979
+ * object event and picks up names as they are confirmed, through the growth
16980
+ * path. Neither combination fires twice for one subject.
16981
+ *
16982
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16983
+ * on the addon cap path, so absent must keep meaning what it meant before this
16984
+ * field existed.
16985
+ */
16986
+ groupIdleSec: number().int().min(0).max(600).optional()
16531
16987
  });
16532
16988
  /**
16533
16989
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -16634,6 +17090,7 @@ var NcConditionDescriptorSchema = object({
16634
17090
  "occupancy",
16635
17091
  "audio",
16636
17092
  "deviceState",
17093
+ "scene",
16637
17094
  "systemEvent"
16638
17095
  ]),
16639
17096
  operator: _enum([
@@ -16714,6 +17171,14 @@ var NC_CONDITION_CATALOG = [
16714
17171
  value: "node-offline",
16715
17172
  label: "Node offline"
16716
17173
  },
17174
+ {
17175
+ value: "node-inference-unavailable",
17176
+ label: "Node has no usable inference device"
17177
+ },
17178
+ {
17179
+ value: "detection-blind",
17180
+ label: "Camera detecting nothing"
17181
+ },
16717
17182
  {
16718
17183
  value: "addon-update-available",
16719
17184
  label: "Addon update available"
@@ -16871,32 +17336,32 @@ var NC_CONDITION_CATALOG = [
16871
17336
  {
16872
17337
  id: "identities",
16873
17338
  group: "label",
16874
- label: "Identities",
17339
+ label: "Known faces",
16875
17340
  valueType: "stringList",
16876
17341
  operator: "in",
16877
17342
  appliesTo: ["immediate", "track-end"],
16878
17343
  phase: "P1",
16879
- description: "P1: matched against the identity display name on the record label."
17344
+ description: "Only recognised people. Selecting NOBODY means every identity in the face gallery; selecting some narrows to those. Matched on the gallery id, so renaming a person does not break the rule. On immediate delivery the name is not known yet when the notification is enqueued — see the rule’s \"wait for recognition\" switch."
16880
17345
  },
16881
17346
  {
16882
17347
  id: "plates",
16883
17348
  group: "label",
16884
- label: "License plates",
17349
+ label: "Known plates",
16885
17350
  valueType: "plateMatcher",
16886
17351
  operator: "fuzzyIn",
16887
17352
  appliesTo: ["immediate", "track-end"],
16888
17353
  phase: "P1",
16889
- description: "Levenshtein-tolerant match against the plate text."
17354
+ description: "Only vehicles whose plate was read. Selecting NO plate means any readable plate; listed plates are matched Levenshtein-tolerantly, because OCR noise makes an exact match useless."
16890
17355
  },
16891
17356
  {
16892
17357
  id: "identitiesExclude",
16893
17358
  group: "label",
16894
- label: "Excluded identities",
17359
+ label: "Excluded faces",
16895
17360
  valueType: "stringList",
16896
17361
  operator: "notIn",
16897
17362
  appliesTo: ["immediate", "track-end"],
16898
17363
  phase: "P1",
16899
- description: "Veto by identity display name (mirror of Identities; absent label passes)."
17364
+ description: "Veto by identity (mirror of Known faces, same gallery ids). A subject nobody recognised passes — there is nothing to exclude."
16900
17365
  },
16901
17366
  {
16902
17367
  id: "minLabelConfidence",
@@ -16980,6 +17445,21 @@ var NC_CONDITION_CATALOG = [
16980
17445
  phase: "P2",
16981
17446
  description: "Only fire while another device is in one of the chosen states — the alarm armed, a switch on, a contact closed. A state that cannot be read does NOT fire."
16982
17447
  },
17448
+ {
17449
+ id: "scene",
17450
+ group: "scope",
17451
+ label: "Scene state",
17452
+ valueType: "scene",
17453
+ operator: "in",
17454
+ appliesTo: [
17455
+ "immediate",
17456
+ "track-end",
17457
+ "device-event",
17458
+ "package-event"
17459
+ ],
17460
+ phase: "P3",
17461
+ description: "Only fire while a scene is matched (the baseline is what we see) or diverged (it demonstrably is not) — “tell me about a person at the door, but only while the bin is still out”. A scene that cannot judge, or one this hub has not read yet, does NOT fire."
17462
+ },
16983
17463
  {
16984
17464
  id: "sensorKinds",
16985
17465
  group: "device",
@@ -17545,7 +18025,87 @@ var MethodAccessSchema = _enum([
17545
18025
  var AllowedProviderSchema = union([literal("*"), array(string())]);
17546
18026
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
17547
18027
  var CapScopeSchema = _enum(["device", "system"]);
17548
- var TokenScopeSchema = discriminatedUnion("type", [
18028
+ /**
18029
+ * DeviceSelector (scope model v3 — 2026-08-12).
18030
+ *
18031
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
18032
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
18033
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
18034
+ * AFTER the grant was minted — no re-grant, no re-login.
18035
+ *
18036
+ * - `all` — every device in the deployment. The broad viewer/operator
18037
+ * lever without a `category` grant (a `category` grant also covers device
18038
+ * caps that carry no deviceId; `all` is specifically the device set).
18039
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
18040
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
18041
+ * is NOT covered until the grant is edited.
18042
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
18043
+ * DYNAMIC. A device that changes type, or a new device of the type,
18044
+ * re-resolves on the next request.
18045
+ * - `locations` — every device whose operator-assigned `location` label is
18046
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
18047
+ * null/unset location matches NO `locations` selector.
18048
+ */
18049
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
18050
+ object({ kind: literal("all") }),
18051
+ object({
18052
+ kind: literal("ids"),
18053
+ ids: array(number().int()).min(1)
18054
+ }),
18055
+ object({
18056
+ kind: literal("types"),
18057
+ types: array(_enum(DeviceType)).min(1)
18058
+ }),
18059
+ object({
18060
+ kind: literal("locations"),
18061
+ locations: array(string().min(1)).min(1)
18062
+ })
18063
+ ]);
18064
+ var DeviceTokenScopeSchema = object({
18065
+ type: literal("device"),
18066
+ /** The device SET this grant covers — resolved against the live fleet. */
18067
+ selector: DeviceSelectorSchema,
18068
+ access: array(MethodAccessSchema).min(1),
18069
+ /**
18070
+ * Whether a grant on a PARENT device transparently covers its accessory
18071
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
18072
+ * Direction is parent → children ONLY.
18073
+ *
18074
+ * Absent → the matcher DERIVES it from the access flavour: `view`
18075
+ * inherits (a camera viewer sees the camera's accessories), `create` /
18076
+ * `delete` do NOT (actuating/removing a child is an explicit act the
18077
+ * operator must grant on the child, not inherit from the parent). Set it
18078
+ * explicitly to override that default per grant.
18079
+ */
18080
+ includeLinked: boolean().optional()
18081
+ });
18082
+ /**
18083
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
18084
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
18085
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
18086
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
18087
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
18088
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
18089
+ * migration cannot reach a JWT already in a client's hands; parse-time
18090
+ * migration covers both without a flag day. No cast — the raw object is read
18091
+ * through `Reflect.get` (its static type is `unknown`).
18092
+ */
18093
+ function migrateLegacyTokenScope(raw) {
18094
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
18095
+ if (Reflect.get(raw, "type") !== "device") return raw;
18096
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
18097
+ const targets = Reflect.get(raw, "targets");
18098
+ if (!Array.isArray(targets)) return raw;
18099
+ return {
18100
+ type: "device",
18101
+ selector: {
18102
+ kind: "ids",
18103
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
18104
+ },
18105
+ access: Reflect.get(raw, "access")
18106
+ };
18107
+ }
18108
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
17549
18109
  object({
17550
18110
  type: literal("category"),
17551
18111
  target: CapScopeSchema,
@@ -17561,18 +18121,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
17561
18121
  target: string(),
17562
18122
  access: array(MethodAccessSchema).min(1)
17563
18123
  }),
17564
- object({
17565
- type: literal("device"),
17566
- /**
17567
- * One or more deviceIds (serialised as strings for wire-format
17568
- * consistency with the rest of the union). Matcher accepts if
17569
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
17570
- * of one scope-per-device when granting access to a set of cameras.
17571
- */
17572
- targets: array(string()).min(1),
17573
- access: array(MethodAccessSchema).min(1)
17574
- })
17575
- ]);
18124
+ DeviceTokenScopeSchema
18125
+ ]));
17576
18126
  object({
17577
18127
  id: string(),
17578
18128
  username: string(),
@@ -17895,7 +18445,7 @@ var TrackEnvelopeSchema = object({
17895
18445
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
17896
18446
  * keeps every scalar the list surfaces actually render (ids, class(es),
17897
18447
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
17898
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
18448
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
17899
18449
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
17900
18450
  * `getTrack`. Mirrors the event-store `projection` convention
17901
18451
  * (`getObjectEvents` et al.).
@@ -18031,7 +18581,21 @@ union([literal(1), literal(2)]);
18031
18581
  var LabelAttributionSchema = object({
18032
18582
  stepId: string(),
18033
18583
  modelId: string().optional(),
18034
- decidedAt: number()
18584
+ decidedAt: number(),
18585
+ /**
18586
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
18587
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
18588
+ *
18589
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
18590
+ * notification rule authored on "Gianluca" stopped matching the moment the
18591
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
18592
+ * the thing that does not move, so it is what a rule matches on
18593
+ * (`NcConditions.identities`) and the text is what a human is shown.
18594
+ *
18595
+ * Absent when the label names no gallery row — a plate the OCR read but no
18596
+ * vehicle claims, a sub-class, a species, any tier-1 value.
18597
+ */
18598
+ identityId: string().optional()
18035
18599
  });
18036
18600
  /**
18037
18601
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -18168,6 +18732,28 @@ var TrackSchema = object({
18168
18732
  * `=== true` and render nothing otherwise, never infer "no face".
18169
18733
  */
18170
18734
  hasFace: boolean().optional(),
18735
+ /**
18736
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
18737
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
18738
+ * so the passage is tracked once and as a VEHICLE.
18739
+ *
18740
+ * It exists because the fold's record was dishonest. D34 and the code both
18741
+ * said "the person is not lost — it is reported so both entities stay on the
18742
+ * record"; in fact the pair went into a per-processor RAM field behind an
18743
+ * accessor nobody called, and every durable surface said `vehicle`, full
18744
+ * stop. This is the composition note that makes the row true.
18745
+ *
18746
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
18747
+ * person" is not an answer to "what is this" — both label tiers would refuse
18748
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
18749
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
18750
+ * and a `person` rule still does not fire for someone cycling past.
18751
+ *
18752
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
18753
+ * the column, and every hub that predates the field, omits it. Test
18754
+ * `=== true` and render nothing otherwise — never infer "no rider".
18755
+ */
18756
+ hasRider: boolean().optional(),
18171
18757
  ...TrackFlagFields,
18172
18758
  ...TrackRetrainFields
18173
18759
  });
@@ -18517,7 +19103,10 @@ var RecentTracksQueryInput = object({
18517
19103
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
18518
19104
  cursor: string().optional(),
18519
19105
  /** See {@link TrackProjectionSchema}. Default `full`. */
18520
- projection: TrackProjectionSchema.optional()
19106
+ projection: TrackProjectionSchema.optional(),
19107
+ /** Include stationary-promoted rows (parked objects). Default false: the
19108
+ * feed lists passages; parking records live on the stationary registry. */
19109
+ includeStationary: boolean().optional()
18521
19110
  });
18522
19111
  var RecentTracksPageSchema = object({
18523
19112
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -18749,7 +19338,11 @@ var pipelineAnalyticsCapability = {
18749
19338
  zone: TrackZoneFilterSchema.optional(),
18750
19339
  /** See {@link TrackProjectionSchema}. Default `full` (backward
18751
19340
  * compatible — omitting the field keeps today's exact behaviour). */
18752
- projection: TrackProjectionSchema.optional()
19341
+ projection: TrackProjectionSchema.optional(),
19342
+ /** Include stationary-promoted rows (parked objects handed to the
19343
+ * stationary registry). Default false: the timeline lists passages,
19344
+ * not parking records (operator decision, 2026-08-15). */
19345
+ includeStationary: boolean().optional()
18753
19346
  }), array(TrackSchema).readonly()),
18754
19347
  /**
18755
19348
  * Batched cluster-wide track listing — ONE call for the events page /
@@ -19240,7 +19833,8 @@ var pipelineAnalyticsCapability = {
19240
19833
  }),
19241
19834
  getEventMedia: method(object({
19242
19835
  eventId: string(),
19243
- kind: MediaFileKindEnum.optional()
19836
+ kind: MediaFileKindEnum.optional(),
19837
+ deviceId: number()
19244
19838
  }), array(MediaFileSchema).readonly()),
19245
19839
  /** All media rows owned by a track. `kinds` narrows to a kind subset so a
19246
19840
  * client can fetch the SMALL display variants on open and pull the
@@ -19248,7 +19842,8 @@ var pipelineAnalyticsCapability = {
19248
19842
  * Absent ⇒ every kind (back-compat). */
19249
19843
  getTrackMedia: method(object({
19250
19844
  trackId: string(),
19251
- kinds: array(MediaFileKindEnum).optional()
19845
+ kinds: array(MediaFileKindEnum).optional(),
19846
+ deviceId: number()
19252
19847
  }), array(MediaFileSchema).readonly()),
19253
19848
  /**
19254
19849
  * What media a track HAS, without any of it.
@@ -19265,7 +19860,10 @@ var pipelineAnalyticsCapability = {
19265
19860
  * tell a full-resolution variant existed — and the affordance that opens it
19266
19861
  * would silently disappear.
19267
19862
  */
19268
- listTrackMedia: method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()),
19863
+ listTrackMedia: method(object({
19864
+ trackId: string(),
19865
+ deviceId: number()
19866
+ }), array(MediaFileInfoSchema).readonly()),
19269
19867
  /**
19270
19868
  * Search object events by text query using CLIP cosine similarity.
19271
19869
  * Encodes `text` via the `embedding-encoder` cap, queries the
@@ -20148,6 +20746,17 @@ var maxSessionHoldMsField = {
20148
20746
  default: 12e4,
20149
20747
  step: 5e3
20150
20748
  };
20749
+ /**
20750
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
20751
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
20752
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
20753
+ */
20754
+ var audioMotionWindowMsField = {
20755
+ min: 5e3,
20756
+ max: 6e5,
20757
+ default: 9e4,
20758
+ step: 5e3
20759
+ };
20151
20760
  var motionFpsField = {
20152
20761
  min: 1,
20153
20762
  max: 30,
@@ -20179,7 +20788,7 @@ var detectionFpsField = {
20179
20788
  var occupancyRecheckSecField = {
20180
20789
  min: 0,
20181
20790
  max: 300,
20182
- default: 30,
20791
+ default: 300,
20183
20792
  step: 5
20184
20793
  };
20185
20794
  var occupancyRecheckFramesField = {
@@ -20324,6 +20933,27 @@ var RunnerCameraConfigSchema = object({
20324
20933
  * resolved `CameraDetectionConfig`.
20325
20934
  */
20326
20935
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
20936
+ /**
20937
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
20938
+ * 'on-motion'` audio window, measured from the LAST motion event.
20939
+ *
20940
+ * This exists because the falling edge cannot be relied on. Camera-native
20941
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
20942
+ * its email-push SMTP path both emit `detected: true` and never the
20943
+ * counterpart); only the frame-diff analyzer emits falls. So on an
20944
+ * onboard-only camera a window that closed only on `detected: false` never
20945
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
20946
+ * battery camera, the one failure mode the mode exists to prevent.
20947
+ *
20948
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
20949
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
20950
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
20951
+ *
20952
+ * Not consumed by the runner: carried here so it shares the per-camera
20953
+ * device-settings surface with `motionCooldownMs`, exactly like
20954
+ * `maxSessionHoldMs`.
20955
+ */
20956
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
20327
20957
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
20328
20958
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
20329
20959
  motionStreamId: string(),
@@ -20419,7 +21049,7 @@ var RunnerCameraConfigSchema = object({
20419
21049
  */
20420
21050
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20421
21051
  });
20422
- 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;
21052
+ 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;
20423
21053
  /**
20424
21054
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20425
21055
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -21941,6 +22571,39 @@ var snapshotCapability = {
21941
22571
  etag: string().nullable()
21942
22572
  }))),
21943
22573
  /**
22574
+ * The full decision chain for ONE device, for the viewer's debug readout —
22575
+ * the answer to "why does this tile show what it shows" in a single poll:
22576
+ * the battery slice the state was derived from, the resolved state + its
22577
+ * reason, the cached frame's identity/age, whether a wake window is open,
22578
+ * and whether a fresh capture is in flight. Cache-only and capture-free:
22579
+ * a debug read must never wake a battery camera.
22580
+ */
22581
+ getDebugState: systemMethod(object({ deviceId: number() }), object({
22582
+ /** The battery slice as read, or null when the device has none. */
22583
+ battery: object({
22584
+ sleeping: boolean(),
22585
+ lastUpdated: number(),
22586
+ lastContactAt: number().optional()
22587
+ }).nullable(),
22588
+ /** The resolved snapshot state (what the overlay decision used). */
22589
+ state: object({
22590
+ isBattery: boolean(),
22591
+ reason: _enum([
22592
+ "disabled",
22593
+ "sleeping",
22594
+ "unreachable",
22595
+ "waking"
22596
+ ]).nullable()
22597
+ }),
22598
+ /** The cached frame behind the next paint. */
22599
+ frame: object({
22600
+ capturedAt: number().nullable(),
22601
+ ageMs: number().nullable()
22602
+ }),
22603
+ /** A wake window is currently open (the Waking overlay's source). */
22604
+ waking: boolean()
22605
+ })),
22606
+ /**
21944
22607
  * Signed, expiring links to a CLIENT-SIZED frame — and the demand signal
21945
22608
  * that makes those frames current.
21946
22609
  *
@@ -22013,7 +22676,16 @@ targets: array(object({
22013
22676
  /** A sleeping battery camera: the frame is deliberately stale and will
22014
22677
  * NOT refresh in the background. A surface should say so rather than
22015
22678
  * present it as current. */
22016
- sleeping: boolean()
22679
+ sleeping: boolean(),
22680
+ /** Current device state rendered over the cached frame. State images
22681
+ * remain authoritative even when their photographic background is
22682
+ * old; null means the link must carry a current camera frame. */
22683
+ stateReason: _enum([
22684
+ "disabled",
22685
+ "sleeping",
22686
+ "unreachable",
22687
+ "waking"
22688
+ ]).nullable()
22017
22689
  })))
22018
22690
  },
22019
22691
  status: {
@@ -24232,6 +24904,25 @@ var BatteryStatusSchema = object({
24232
24904
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24233
24905
  lastUpdated: number(),
24234
24906
  /**
24907
+ * Ms epoch of the last time the device PROVED it was reachable — a
24908
+ * completed firmware round-trip, an observed wake, or an inbound push
24909
+ * (firmware event, email). `0`/absent = never since this slice was born.
24910
+ *
24911
+ * This is the ONLY input that separates "asleep" from "gone", and it is
24912
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
24913
+ * for the radio, because a poll that confirms reachability is the same
24914
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
24915
+ * single derivation every consumer must use; no surface computes its own.
24916
+ *
24917
+ * It is deliberately NOT a clock in the
24918
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
24919
+ * observation itself, and it is the only thing a 30-hour silence is
24920
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
24921
+ * Reolink provider) so a value that means "recently" cannot cost a
24922
+ * SQLite commit per round-trip.
24923
+ */
24924
+ lastContactAt: number().optional(),
24925
+ /**
24235
24926
  * True when the source is a BINARY low-battery indicator (HA
24236
24927
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
24237
24928
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -26696,7 +27387,41 @@ var intercomCapability = {
26696
27387
  status: {
26697
27388
  schema: IntercomStatusSchema,
26698
27389
  kind: "command-driven"
26699
- }
27390
+ },
27391
+ /**
27392
+ * Runtime-state slice — mirrored by the kernel.
27393
+ *
27394
+ * The cap declared `status` and nothing else, so the only two sources an
27395
+ * exporter has for a value — the `device.state-changed` slice event and the
27396
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
27397
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
27398
+ * have been published and never received a value, which is the defect the
27399
+ * export's two classification tables exist to prevent (177 of them, once), so
27400
+ * `intercom` was excluded rather than exported.
27401
+ *
27402
+ * The shape is the status shape: there is exactly one truth about talk-back
27403
+ * and duplicating it into a second schema is how two halves of one capability
27404
+ * come to disagree. Providers write it through
27405
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
27406
+ * and close a session, and seed it at registration so the slice exists before
27407
+ * the first session rather than after it.
27408
+ *
27409
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
27410
+ * session handle, so a session torn down by a transport death that never
27411
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
27412
+ * session or the next restart. That is why the slice is `session` and not
27413
+ * `restored` — a restart must never restore "talking".
27414
+ */
27415
+ runtimeState: IntercomStatusSchema,
27416
+ /**
27417
+ * Runtime-state durability: **session** — `talking` describes a live audio
27418
+ * session, which by definition does not survive the process that held it.
27419
+ * Restoring it would publish a camera as talking to nobody.
27420
+ *
27421
+ * See `RuntimeStateDurability`. Enforced by
27422
+ * `scripts/check-runtime-state-durability.ts`.
27423
+ */
27424
+ durability: "session"
26700
27425
  };
26701
27426
  /**
26702
27427
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
@@ -29792,7 +30517,7 @@ var recordingCapability = {
29792
30517
  toMs: number()
29793
30518
  }), RecordingAvailabilitySchema, {
29794
30519
  kind: "query",
29795
- auth: "admin"
30520
+ auth: "protected"
29796
30521
  }),
29797
30522
  /** Which calendar days in [fromMs,toMs) have ≥1 recorded segment, bucketed by
29798
30523
  * the client's local day (`tzOffsetMinutes` = minutes to add to UTC). Drives
@@ -29804,7 +30529,7 @@ var recordingCapability = {
29804
30529
  tzOffsetMinutes: number()
29805
30530
  }), RecordingDaysSchema, {
29806
30531
  kind: "query",
29807
- auth: "admin"
30532
+ auth: "protected"
29808
30533
  }),
29809
30534
  getPlaybackManifest: method(object({
29810
30535
  deviceId: number(),
@@ -29812,7 +30537,7 @@ var recordingCapability = {
29812
30537
  toMs: number()
29813
30538
  }), RecordingManifestSchema, {
29814
30539
  kind: "query",
29815
- auth: "admin"
30540
+ auth: "protected"
29816
30541
  }),
29817
30542
  getStorageUsage: method(object({}), RecordingStorageUsageSchema, {
29818
30543
  kind: "query",
@@ -30220,14 +30945,77 @@ var recordingExportCapability = {
30220
30945
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
30221
30946
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
30222
30947
  *
30223
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
30224
- * derives the device-detail contribution; the provider carries NO hand-written
30225
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
30226
- * every hysteresis flip / availability change; consumers never poll.
30227
- */
30228
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
30229
- * be added without a wire break (matching falls back to any-condition refs). */
30948
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
30949
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
30950
+ * for the thing: a scene is a standing question about the property ("is the bin
30951
+ * still out"), and the operator's question is "which of my scenes have tripped",
30952
+ * across every camera at once — not "what does camera 617 think". Buried one
30953
+ * camera deep it also could not be found. The surface is now a top-level admin
30954
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
30955
+ * picks the camera inside the create flow, the same shape Events and Faces have.
30956
+ *
30957
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
30958
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
30959
+ * directions, so a registration nobody declares fails exactly as loudly as a
30960
+ * declaration nobody registers. The editor is imported directly by the page.
30961
+ *
30962
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
30963
+ * availability change; consumers never poll.
30964
+ */
30965
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
30966
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
30967
+ * Open by design so more can be added without a wire break.
30968
+ *
30969
+ * Matching does NOT fall back across conditions: cross-condition cosines are
30970
+ * not comparable, so "I have never seen this scene in this light" is reported
30971
+ * as `unknown`, never guessed. A day reference scored against an IR frame
30972
+ * collapses the cosine and would latch a false alarm every single night. */
30230
30973
  var SceneConditionSchema = string();
30974
+ /**
30975
+ * What a scene does when the CURRENT light has no reference of its own.
30976
+ *
30977
+ * The lighting variants are not equally likely to exist. Almost every operator
30978
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
30979
+ * scene that is only ever going to be asked about a daytime question ("is the
30980
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
30981
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
30982
+ * working without it rather than degrading into a permanent complaint.
30983
+ *
30984
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
30985
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
30986
+ * last covered light left it at, the latch is untouched, and the hysteresis
30987
+ * run is neither spent nor cleared. The scene resumes by itself at first
30988
+ * light. This is the only behaviour under which "I never captured IR" is a
30989
+ * configuration choice instead of a nightly fault.
30990
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
30991
+ * for cameras whose IR frame is close enough to daylight (a floodlit
30992
+ * driveway, an always-white-light doorbell), and wrong for everything else:
30993
+ * cross-condition cosines are not comparable, so a day reference against a
30994
+ * true IR frame collapses and the scene reports a theft at 21:40.
30995
+ *
30996
+ * Never applies when the scene has NO comparable reference at all — that is
30997
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
30998
+ * there would hide a scene the operator never finished setting up.
30999
+ */
31000
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
31001
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
31002
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
31003
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
31004
+ * and never counts toward hysteresis in either direction. */
31005
+ var SceneVerdictSchema = _enum([
31006
+ "matched",
31007
+ "diverged",
31008
+ "unknown"
31009
+ ]);
31010
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
31011
+ * silence that reads as "nothing has happened". */
31012
+ var SceneUnavailableSchema = _enum([
31013
+ "no-reference-for-condition",
31014
+ "view-shifted",
31015
+ "no-vision-profile",
31016
+ "encoder-model-changed",
31017
+ "no-snapshot"
31018
+ ]);
30231
31019
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
30232
31020
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
30233
31021
  var SceneReferenceSchema = object({
@@ -30235,7 +31023,14 @@ var SceneReferenceSchema = object({
30235
31023
  modelId: string(),
30236
31024
  condition: SceneConditionSchema,
30237
31025
  capturedAt: number(),
30238
- thumbnailMediaId: string().optional()
31026
+ thumbnailMediaId: string().optional(),
31027
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
31028
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
31029
+ * normalized rect frame a different piece of world, and the scene would
31030
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
31031
+ * when hysteresis is about to flip — one extra encode per candidate
31032
+ * transition, not per poll. */
31033
+ anchorEmbedding: array(number()).optional()
30239
31034
  });
30240
31035
  var SceneMonitorStateSchema = object({
30241
31036
  id: string(),
@@ -30257,6 +31052,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
30257
31052
  profileId: string().optional(),
30258
31053
  hysteresisCount: number().int().positive()
30259
31054
  })]);
31055
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
31056
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
31057
+ * out in silence rather than reporting a fault every night. */
31058
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
31059
+ /**
31060
+ * Vision-model adjudication of a candidate flip. Field names deliberately
31061
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
31062
+ *
31063
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
31064
+ * fail-open: a notification suppressed is the worse error there, but a vision
31065
+ * model that timed out has not told us the bin is gone, and a latch is a
31066
+ * stateful claim that costs the operator a trip to reset.
31067
+ */
31068
+ var SceneConfirmSchema = object({
31069
+ enabled: boolean().default(false),
31070
+ prompt: string().min(1).max(1e3),
31071
+ profileId: string().optional(),
31072
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
31073
+ maxImagePx: number().int().min(64).max(2048).default(448),
31074
+ /** What a timeout / unavailable model means for the PENDING flip. */
31075
+ onTimeout: _enum(["flip", "hold"]).default("hold")
31076
+ });
30260
31077
  var SceneMonitorSchema = object({
30261
31078
  id: string(),
30262
31079
  label: string(),
@@ -30275,7 +31092,56 @@ var SceneMonitorSchema = object({
30275
31092
  lastConfidence: number().nullable(),
30276
31093
  currentCondition: SceneConditionSchema.nullable(),
30277
31094
  availability: _enum(["ok", "unavailable"]),
30278
- unavailableReason: string().nullable()
31095
+ unavailableReason: string().nullable(),
31096
+ /** Which state is "the initial screen". `null` until the first capture. */
31097
+ baselineStateId: string().nullable(),
31098
+ /** Which boolean drives notification rules and any export. */
31099
+ emit: _enum(["latched", "live"]).default("latched"),
31100
+ /** Live: does the region match the baseline RIGHT NOW. */
31101
+ verdict: SceneVerdictSchema,
31102
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
31103
+ latched: boolean(),
31104
+ /** Last reset (or creation). */
31105
+ armedAt: number(),
31106
+ divergedAt: number().nullable(),
31107
+ restoredAt: number().nullable(),
31108
+ /** A check is only COUNTED when the device has been quiet this long. Motion
31109
+ * during the window DISCARDS the observation — a car pulling up in front of
31110
+ * the bin must not be able to spend hysteresis credit. */
31111
+ quietSeconds: number().int().min(0).max(3600).default(60),
31112
+ /** An observation only advances the pending count when it is at least this
31113
+ * far from the previously counted one, so N agreeing checks span real time
31114
+ * rather than N adjacent polls inside one occlusion. */
31115
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
31116
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
31117
+ confirm: SceneConfirmSchema.optional(),
31118
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
31119
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
31120
+ /** Clear the latch on its own when the scene matches again? Default false —
31121
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
31122
+ * automation can react to the bin coming back without the operator's own
31123
+ * alarm silently clearing itself. */
31124
+ autoRestore: boolean().default(false),
31125
+ /** What to do when the current light has no reference of its own. See
31126
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
31127
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
31128
+ /**
31129
+ * The light whose checks are currently being SAT OUT under
31130
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
31131
+ *
31132
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
31133
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
31134
+ * nothing captured in this light"* in the same calm voice as the coverage
31135
+ * line, because the alternative is a scene that silently stops answering
31136
+ * after sunset with nothing anywhere saying why. A skipped check must never
31137
+ * read as a broken one.
31138
+ */
31139
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
31140
+ /** Named cause when `verdict === 'unknown'`. */
31141
+ unavailable: SceneUnavailableSchema.nullable(),
31142
+ /** Conditions that have at least one comparable reference — the coverage line
31143
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
31144
+ coveredConditions: array(SceneConditionSchema)
30279
31145
  });
30280
31146
  var SceneMonitorStatusSchema = object({
30281
31147
  monitors: array(SceneMonitorSchema),
@@ -30288,12 +31154,6 @@ var sceneMonitorCapability = {
30288
31154
  kind: "wrapper",
30289
31155
  defaultActive: true,
30290
31156
  deviceTypes: [DeviceType.Camera],
30291
- deviceConfig: { ui: {
30292
- kind: "widget",
30293
- widgetId: "host/scene-monitor-editor",
30294
- tab: "scenes",
30295
- label: "Scenes"
30296
- } },
30297
31157
  methods: {
30298
31158
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
30299
31159
  createScene: method(object({
@@ -30324,7 +31184,15 @@ var sceneMonitorCapability = {
30324
31184
  "both"
30325
31185
  ]).optional(),
30326
31186
  checkIntervalSec: number().optional(),
30327
- check: SceneCheckSchema.optional()
31187
+ check: SceneCheckSchema.optional(),
31188
+ emit: _enum(["latched", "live"]).optional(),
31189
+ quietSeconds: number().int().min(0).max(3600).optional(),
31190
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
31191
+ anchorThreshold: number().min(0).max(1).optional(),
31192
+ autoRestore: boolean().optional(),
31193
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
31194
+ /** `null` clears the vision-model adjudicator. */
31195
+ confirm: SceneConfirmSchema.nullable().optional()
30328
31196
  })
30329
31197
  }), _void(), {
30330
31198
  kind: "mutation",
@@ -30365,6 +31233,26 @@ var sceneMonitorCapability = {
30365
31233
  }), _void(), {
30366
31234
  kind: "mutation",
30367
31235
  auth: "admin"
31236
+ }),
31237
+ /**
31238
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
31239
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
31240
+ * "reset" in the operator's head means *this is the new normal*, and
31241
+ * re-capture is what makes the feature self-healing against slow drift
31242
+ * instead of failing silently weeks later.
31243
+ *
31244
+ * Reachable from three surfaces on this one mutation: the scene card, a
31245
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
31246
+ * no new Notification-Center code at all), and tRPC for scripts.
31247
+ */
31248
+ resetScene: method(object({
31249
+ deviceId: number(),
31250
+ monitorId: string(),
31251
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
31252
+ recapture: boolean().optional()
31253
+ }), _void(), {
31254
+ kind: "mutation",
31255
+ auth: "admin"
30368
31256
  })
30369
31257
  },
30370
31258
  status: {
@@ -30607,13 +31495,63 @@ var CamStreamDescriptorSchema = object({
30607
31495
  * set of stream descriptors it can offer for the device, synchronously, so the
30608
31496
  * broker can reconcile its registry against the authoritative provider state.
30609
31497
  */
31498
+ /**
31499
+ * The catalog as a DURABLE fact rather than a live answer.
31500
+ *
31501
+ * A battery camera's descriptors are profile-stable — they change when the
31502
+ * operator rewrites an encoder profile, not minute to minute — but building
31503
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
31504
+ * provider is allowed to build them exactly once per profile and must serve
31505
+ * every later pull from a cache.
31506
+ *
31507
+ * Holding that cache only in RAM is what turned a restart into an outage. The
31508
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
31509
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
31510
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
31511
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
31512
+ * which on a battery cam is most of the day. The camera was fine. The stream
31513
+ * was unreachable because the process had forgotten what the camera offers.
31514
+ *
31515
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
31516
+ * declared collection, with the same `restored` durability `battery` uses for
31517
+ * the same reason: the last known value is the only value there is while the
31518
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
31519
+ * is the DIAL that wakes a camera, never the catalog (D173).
31520
+ */
31521
+ var StreamCatalogStateSchema = object({
31522
+ /** The descriptors as last built from a real camera response. Never a guess:
31523
+ * a failed or refused build writes NOTHING, so a restored catalog is always
31524
+ * one the camera itself once produced. */
31525
+ descriptors: array(CamStreamDescriptorSchema),
31526
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
31527
+ * path decide whether the camera's own awake window is worth spending on a
31528
+ * re-read. */
31529
+ lastFetchedAt: number()
31530
+ });
30610
31531
  var streamCatalogCapability = {
30611
31532
  name: "stream-catalog",
30612
31533
  scope: "device",
30613
31534
  deviceNative: true,
30614
31535
  mode: "singleton",
30615
31536
  deviceTypes: [DeviceType.Camera],
30616
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
31537
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
31538
+ runtimeState: StreamCatalogStateSchema,
31539
+ /**
31540
+ * Runtime-state durability: **restored** — see the schema doc. A cold
31541
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
31542
+ * camera that cannot be watched at all until it happens to wake.
31543
+ *
31544
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
31545
+ * build, and a build only runs when there is no cached copy (or the copy is
31546
+ * a day old and the camera is awake anyway).
31547
+ *
31548
+ * See `RuntimeStateDurability`. Enforced by
31549
+ * `scripts/check-runtime-state-durability.ts`.
31550
+ */
31551
+ durability: "restored",
31552
+ /** Clock field: written, but excluded from the compare that decides whether
31553
+ * persisting is worth a SQLite commit — the descriptors are the value. */
31554
+ volatileStateFields: ["lastFetchedAt"]
30617
31555
  };
30618
31556
  /** One of the camera's stream profiles. */
30619
31557
  var StreamProfileSchema = _enum([
@@ -30868,6 +31806,52 @@ var NetworkAddressSchema = object({
30868
31806
  family: string(),
30869
31807
  internal: boolean()
30870
31808
  });
31809
+ /**
31810
+ * Provenance of the site coordinates, and the whole reason this is not just two
31811
+ * numbers.
31812
+ *
31813
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
31814
+ * nothing overwrites it.
31815
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
31816
+ * default that is right to a few kilometres beats the coarse UTC clock split
31817
+ * the sun-times consumers otherwise fall back to.
31818
+ *
31819
+ * The UI shows which one it is. An operator who cannot tell a guess from their
31820
+ * own input will eventually trust the guess.
31821
+ */
31822
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
31823
+ /**
31824
+ * The read shape: the location plus the honest state of the one-shot derivation.
31825
+ *
31826
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
31827
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
31828
+ * failed; the hub will NOT try again on its own — the fallback is declared
31829
+ * (consumers degrade to their own last resort) and the operator either types the
31830
+ * coordinates or presses detect.
31831
+ */
31832
+ var SiteLocationStatusSchema = object({
31833
+ location: object({
31834
+ /** WGS84 decimal degrees. */
31835
+ latitude: number().min(-90).max(90),
31836
+ longitude: number().min(-180).max(180),
31837
+ source: SiteLocationSourceSchema,
31838
+ /** Epoch ms the value was last written. */
31839
+ updatedAt: number(),
31840
+ /**
31841
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
31842
+ * only — never parsed, never matched on. Absent for an operator-typed value.
31843
+ */
31844
+ label: string().optional()
31845
+ }).nullable(),
31846
+ derivationAttemptedAt: number().nullable(),
31847
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
31848
+ derivationError: string().nullable()
31849
+ });
31850
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
31851
+ var SetSiteLocationInputSchema = object({
31852
+ latitude: number().min(-90).max(90),
31853
+ longitude: number().min(-180).max(180)
31854
+ }).nullable();
30871
31855
  var systemCapability = {
30872
31856
  name: "system",
30873
31857
  scope: "system",
@@ -30885,6 +31869,32 @@ var systemCapability = {
30885
31869
  forceRetentionCleanup: method(_void(), _void(), {
30886
31870
  kind: "mutation",
30887
31871
  auth: "admin"
31872
+ }),
31873
+ /**
31874
+ * The site coordinates, deriving a default from the hub's public IP on the
31875
+ * FIRST read that finds nothing stored.
31876
+ *
31877
+ * The derivation is one-shot and bounded: one outbound request, a few
31878
+ * seconds, its outcome persisted either way. A hub with no internet pays it
31879
+ * once and never again, and neither boot nor any consumer is blocked on it —
31880
+ * the caller gets `location: null` and degrades exactly as it did before this
31881
+ * method existed.
31882
+ */
31883
+ getSiteLocation: method(_void(), SiteLocationStatusSchema),
31884
+ /** Operator input. Always lands as `source: 'operator-set'`. */
31885
+ setSiteLocation: method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
31886
+ kind: "mutation",
31887
+ auth: "admin"
31888
+ }),
31889
+ /**
31890
+ * Re-run the geo-IP derivation now. The ONLY way a spent or failed
31891
+ * derivation is retried — there is no timer, and no read path retries.
31892
+ * Overwrites an existing `derived-from-ip` value; refuses to clobber an
31893
+ * `operator-set` one.
31894
+ */
31895
+ detectSiteLocation: method(_void(), SiteLocationStatusSchema, {
31896
+ kind: "mutation",
31897
+ auth: "admin"
30888
31898
  })
30889
31899
  },
30890
31900
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
@@ -34252,6 +35262,12 @@ Object.freeze({
34252
35262
  addonId: null,
34253
35263
  access: "create"
34254
35264
  },
35265
+ "llm.cancel": {
35266
+ capName: "llm",
35267
+ capScope: "system",
35268
+ addonId: null,
35269
+ access: "create"
35270
+ },
34255
35271
  "llm.deleteModel": {
34256
35272
  capName: "llm",
34257
35273
  capScope: "system",
@@ -34336,6 +35352,12 @@ Object.freeze({
34336
35352
  addonId: null,
34337
35353
  access: "view"
34338
35354
  },
35355
+ "llm.resolveModelRef": {
35356
+ capName: "llm",
35357
+ capScope: "system",
35358
+ addonId: null,
35359
+ access: "create"
35360
+ },
34339
35361
  "llm.setDefault": {
34340
35362
  capName: "llm",
34341
35363
  capScope: "system",
@@ -36502,6 +37524,12 @@ Object.freeze({
36502
37524
  addonId: null,
36503
37525
  access: "create"
36504
37526
  },
37527
+ "sceneMonitor.resetScene": {
37528
+ capName: "scene-monitor",
37529
+ capScope: "device",
37530
+ addonId: null,
37531
+ access: "delete"
37532
+ },
36505
37533
  "sceneMonitor.updateScene": {
36506
37534
  capName: "scene-monitor",
36507
37535
  capScope: "device",
@@ -36640,6 +37668,12 @@ Object.freeze({
36640
37668
  addonId: null,
36641
37669
  access: "view"
36642
37670
  },
37671
+ "snapshot.getDebugState": {
37672
+ capName: "snapshot",
37673
+ capScope: "device",
37674
+ addonId: null,
37675
+ access: "view"
37676
+ },
36643
37677
  "snapshot.getSnapshot": {
36644
37678
  capName: "snapshot",
36645
37679
  capScope: "device",
@@ -37180,6 +38214,12 @@ Object.freeze({
37180
38214
  addonId: null,
37181
38215
  access: "create"
37182
38216
  },
38217
+ "system.detectSiteLocation": {
38218
+ capName: "system",
38219
+ capScope: "system",
38220
+ addonId: null,
38221
+ access: "create"
38222
+ },
37183
38223
  "system.featureFlags": {
37184
38224
  capName: "system",
37185
38225
  capScope: "system",
@@ -37198,6 +38238,12 @@ Object.freeze({
37198
38238
  addonId: null,
37199
38239
  access: "view"
37200
38240
  },
38241
+ "system.getSiteLocation": {
38242
+ capName: "system",
38243
+ capScope: "system",
38244
+ addonId: null,
38245
+ access: "view"
38246
+ },
37201
38247
  "system.health": {
37202
38248
  capName: "system",
37203
38249
  capScope: "system",
@@ -37222,6 +38268,12 @@ Object.freeze({
37222
38268
  addonId: null,
37223
38269
  access: "create"
37224
38270
  },
38271
+ "system.setSiteLocation": {
38272
+ capName: "system",
38273
+ capScope: "system",
38274
+ addonId: null,
38275
+ access: "create"
38276
+ },
37225
38277
  "terminalSession.adoptLegacyMonitor": {
37226
38278
  capName: "terminal-session",
37227
38279
  capScope: "system",
@@ -37793,6 +38845,1709 @@ Object.freeze({
37793
38845
  access: "create"
37794
38846
  }
37795
38847
  });
38848
+ Object.freeze({
38849
+ "accessories.setChildHidden": [{
38850
+ name: "childDeviceId",
38851
+ form: "single",
38852
+ optional: false
38853
+ }, {
38854
+ name: "deviceId",
38855
+ form: "single",
38856
+ optional: false
38857
+ }],
38858
+ "addonSettings.getDeviceSettings": [{
38859
+ name: "deviceId",
38860
+ form: "single",
38861
+ optional: false
38862
+ }],
38863
+ "addonSettings.updateDeviceSettings": [{
38864
+ name: "deviceId",
38865
+ form: "single",
38866
+ optional: false
38867
+ }],
38868
+ "alarmPanel.arm": [{
38869
+ name: "deviceId",
38870
+ form: "single",
38871
+ optional: false
38872
+ }],
38873
+ "alarmPanel.disarm": [{
38874
+ name: "deviceId",
38875
+ form: "single",
38876
+ optional: false
38877
+ }],
38878
+ "alarmPanel.trigger": [{
38879
+ name: "deviceId",
38880
+ form: "single",
38881
+ optional: false
38882
+ }],
38883
+ "audioAnalysis.resolveDeviceSettings": [{
38884
+ name: "deviceId",
38885
+ form: "single",
38886
+ optional: false
38887
+ }],
38888
+ "audioAnalyzer.classify": [{
38889
+ name: "deviceId",
38890
+ form: "single",
38891
+ optional: true
38892
+ }],
38893
+ "audioMetrics.getCurrentSnapshot": [{
38894
+ name: "deviceId",
38895
+ form: "single",
38896
+ optional: false
38897
+ }],
38898
+ "audioMetrics.getHistory": [{
38899
+ name: "deviceId",
38900
+ form: "single",
38901
+ optional: false
38902
+ }],
38903
+ "automationControl.disable": [{
38904
+ name: "deviceId",
38905
+ form: "single",
38906
+ optional: false
38907
+ }],
38908
+ "automationControl.enable": [{
38909
+ name: "deviceId",
38910
+ form: "single",
38911
+ optional: false
38912
+ }],
38913
+ "automationControl.trigger": [{
38914
+ name: "deviceId",
38915
+ form: "single",
38916
+ optional: false
38917
+ }],
38918
+ "battery.wakeForStream": [{
38919
+ name: "deviceId",
38920
+ form: "single",
38921
+ optional: false
38922
+ }],
38923
+ "brightness.setBrightness": [{
38924
+ name: "deviceId",
38925
+ form: "single",
38926
+ optional: false
38927
+ }],
38928
+ "button.press": [{
38929
+ name: "deviceId",
38930
+ form: "single",
38931
+ optional: false
38932
+ }],
38933
+ "cameraCredentials.getCredentials": [{
38934
+ name: "deviceId",
38935
+ form: "single",
38936
+ optional: false
38937
+ }],
38938
+ "cameraStreams.getBrokerStreams": [{
38939
+ name: "deviceId",
38940
+ form: "single",
38941
+ optional: false
38942
+ }],
38943
+ "cameraStreams.getCameraStreams": [{
38944
+ name: "deviceId",
38945
+ form: "single",
38946
+ optional: false
38947
+ }],
38948
+ "cameraStreams.getProfileRtspEntries": [{
38949
+ name: "deviceId",
38950
+ form: "single",
38951
+ optional: false
38952
+ }],
38953
+ "cameraStreams.getRtspEntries": [{
38954
+ name: "deviceId",
38955
+ form: "single",
38956
+ optional: false
38957
+ }],
38958
+ "cameraStreams.pickStream": [{
38959
+ name: "deviceId",
38960
+ form: "single",
38961
+ optional: false
38962
+ }],
38963
+ "climateControl.setFanMode": [{
38964
+ name: "deviceId",
38965
+ form: "single",
38966
+ optional: false
38967
+ }],
38968
+ "climateControl.setMode": [{
38969
+ name: "deviceId",
38970
+ form: "single",
38971
+ optional: false
38972
+ }],
38973
+ "climateControl.setPreset": [{
38974
+ name: "deviceId",
38975
+ form: "single",
38976
+ optional: false
38977
+ }],
38978
+ "climateControl.setSwingHorizontal": [{
38979
+ name: "deviceId",
38980
+ form: "single",
38981
+ optional: false
38982
+ }],
38983
+ "climateControl.setSwingVertical": [{
38984
+ name: "deviceId",
38985
+ form: "single",
38986
+ optional: false
38987
+ }],
38988
+ "climateControl.setTarget": [{
38989
+ name: "deviceId",
38990
+ form: "single",
38991
+ optional: false
38992
+ }],
38993
+ "climateControl.setTargetHumidity": [{
38994
+ name: "deviceId",
38995
+ form: "single",
38996
+ optional: false
38997
+ }],
38998
+ "climateControl.setTargetRange": [{
38999
+ name: "deviceId",
39000
+ form: "single",
39001
+ optional: false
39002
+ }],
39003
+ "color.setColor": [{
39004
+ name: "deviceId",
39005
+ form: "single",
39006
+ optional: false
39007
+ }],
39008
+ "consumables.reset": [{
39009
+ name: "deviceId",
39010
+ form: "single",
39011
+ optional: false
39012
+ }],
39013
+ "control.setValue": [{
39014
+ name: "deviceId",
39015
+ form: "single",
39016
+ optional: false
39017
+ }],
39018
+ "cover.close": [{
39019
+ name: "deviceId",
39020
+ form: "single",
39021
+ optional: false
39022
+ }],
39023
+ "cover.open": [{
39024
+ name: "deviceId",
39025
+ form: "single",
39026
+ optional: false
39027
+ }],
39028
+ "cover.setPosition": [{
39029
+ name: "deviceId",
39030
+ form: "single",
39031
+ optional: false
39032
+ }],
39033
+ "cover.setTiltPosition": [{
39034
+ name: "deviceId",
39035
+ form: "single",
39036
+ optional: false
39037
+ }],
39038
+ "cover.stop": [{
39039
+ name: "deviceId",
39040
+ form: "single",
39041
+ optional: false
39042
+ }],
39043
+ "dayNight.getOptions": [{
39044
+ name: "deviceId",
39045
+ form: "single",
39046
+ optional: false
39047
+ }],
39048
+ "dayNight.setSettings": [{
39049
+ name: "deviceId",
39050
+ form: "single",
39051
+ optional: false
39052
+ }],
39053
+ "decoder.createSession": [{
39054
+ name: "deviceId",
39055
+ form: "single",
39056
+ optional: true
39057
+ }],
39058
+ "deviceAdoption.release": [{
39059
+ name: "camDeviceId",
39060
+ form: "single",
39061
+ optional: false
39062
+ }],
39063
+ "deviceAdoption.resync": [{
39064
+ name: "camDeviceId",
39065
+ form: "single",
39066
+ optional: false
39067
+ }],
39068
+ "deviceDiscovery.adoptDevice": [{
39069
+ name: "deviceId",
39070
+ form: "single",
39071
+ optional: false
39072
+ }],
39073
+ "deviceDiscovery.listDiscovered": [{
39074
+ name: "deviceId",
39075
+ form: "single",
39076
+ optional: false
39077
+ }],
39078
+ "deviceDiscovery.refreshDiscovery": [{
39079
+ name: "deviceId",
39080
+ form: "single",
39081
+ optional: false
39082
+ }],
39083
+ "deviceDiscovery.releaseDevice": [{
39084
+ name: "childDeviceId",
39085
+ form: "single",
39086
+ optional: false
39087
+ }, {
39088
+ name: "deviceId",
39089
+ form: "single",
39090
+ optional: false
39091
+ }],
39092
+ "deviceManager.adoptionRelease": [{
39093
+ name: "camDeviceId",
39094
+ form: "single",
39095
+ optional: false
39096
+ }],
39097
+ "deviceManager.adoptionResync": [{
39098
+ name: "camDeviceId",
39099
+ form: "single",
39100
+ optional: false
39101
+ }],
39102
+ "deviceManager.applyInitialMeta": [{
39103
+ name: "deviceId",
39104
+ form: "single",
39105
+ optional: false
39106
+ }, {
39107
+ name: "linkDeviceId",
39108
+ form: "single",
39109
+ optional: true
39110
+ }],
39111
+ "deviceManager.disable": [{
39112
+ name: "deviceId",
39113
+ form: "single",
39114
+ optional: false
39115
+ }],
39116
+ "deviceManager.enable": [{
39117
+ name: "deviceId",
39118
+ form: "single",
39119
+ optional: false
39120
+ }],
39121
+ "deviceManager.getBindings": [{
39122
+ name: "deviceId",
39123
+ form: "single",
39124
+ optional: false
39125
+ }],
39126
+ "deviceManager.getChildren": [{
39127
+ name: "parentDeviceId",
39128
+ form: "single",
39129
+ optional: false
39130
+ }],
39131
+ "deviceManager.getConfigSchema": [{
39132
+ name: "deviceId",
39133
+ form: "single",
39134
+ optional: false
39135
+ }],
39136
+ "deviceManager.getDevice": [{
39137
+ name: "deviceId",
39138
+ form: "single",
39139
+ optional: false
39140
+ }],
39141
+ "deviceManager.getDeviceAggregate": [{
39142
+ name: "deviceId",
39143
+ form: "single",
39144
+ optional: false
39145
+ }],
39146
+ "deviceManager.getDeviceLiveInfoAggregate": [{
39147
+ name: "deviceId",
39148
+ form: "single",
39149
+ optional: false
39150
+ }],
39151
+ "deviceManager.getDeviceSettingsAggregate": [{
39152
+ name: "deviceId",
39153
+ form: "single",
39154
+ optional: false
39155
+ }],
39156
+ "deviceManager.getDeviceStatusAggregate": [{
39157
+ name: "deviceId",
39158
+ form: "single",
39159
+ optional: false
39160
+ }],
39161
+ "deviceManager.getDeviceStatusAggregateBatch": [{
39162
+ name: "deviceIds",
39163
+ form: "array",
39164
+ optional: false
39165
+ }],
39166
+ "deviceManager.getLinkedDevices": [{
39167
+ name: "deviceId",
39168
+ form: "single",
39169
+ optional: false
39170
+ }],
39171
+ "deviceManager.getSettingsSchema": [{
39172
+ name: "deviceId",
39173
+ form: "single",
39174
+ optional: false
39175
+ }],
39176
+ "deviceManager.getStreamProfileMap": [{
39177
+ name: "deviceId",
39178
+ form: "single",
39179
+ optional: false
39180
+ }],
39181
+ "deviceManager.getStreamSources": [{
39182
+ name: "deviceId",
39183
+ form: "single",
39184
+ optional: false
39185
+ }],
39186
+ "deviceManager.getWireableFields": [{
39187
+ name: "deviceId",
39188
+ form: "single",
39189
+ optional: false
39190
+ }],
39191
+ "deviceManager.loadConfig": [{
39192
+ name: "deviceId",
39193
+ form: "single",
39194
+ optional: false
39195
+ }],
39196
+ "deviceManager.loadMeta": [{
39197
+ name: "deviceId",
39198
+ form: "single",
39199
+ optional: false
39200
+ }],
39201
+ "deviceManager.loadRuntimeState": [{
39202
+ name: "deviceId",
39203
+ form: "single",
39204
+ optional: false
39205
+ }],
39206
+ "deviceManager.persistConfig": [{
39207
+ name: "deviceId",
39208
+ form: "single",
39209
+ optional: false
39210
+ }],
39211
+ "deviceManager.probeStreams": [{
39212
+ name: "deviceId",
39213
+ form: "single",
39214
+ optional: false
39215
+ }],
39216
+ "deviceManager.registerDevice": [{
39217
+ name: "parentDeviceId",
39218
+ form: "single",
39219
+ optional: true
39220
+ }],
39221
+ "deviceManager.remove": [{
39222
+ name: "deviceId",
39223
+ form: "single",
39224
+ optional: false
39225
+ }],
39226
+ "deviceManager.removeDevice": [{
39227
+ name: "deviceId",
39228
+ form: "single",
39229
+ optional: false
39230
+ }],
39231
+ "deviceManager.runDeviceAction": [{
39232
+ name: "deviceId",
39233
+ form: "single",
39234
+ optional: false
39235
+ }],
39236
+ "deviceManager.setChildLayout": [{
39237
+ name: "deviceId",
39238
+ form: "single",
39239
+ optional: false
39240
+ }],
39241
+ "deviceManager.setDisabled": [{
39242
+ name: "deviceId",
39243
+ form: "single",
39244
+ optional: false
39245
+ }],
39246
+ "deviceManager.setDisplay": [{
39247
+ name: "deviceId",
39248
+ form: "single",
39249
+ optional: false
39250
+ }],
39251
+ "deviceManager.setIntegrationId": [{
39252
+ name: "deviceId",
39253
+ form: "single",
39254
+ optional: false
39255
+ }],
39256
+ "deviceManager.setLinkDeviceId": [{
39257
+ name: "deviceId",
39258
+ form: "single",
39259
+ optional: false
39260
+ }, {
39261
+ name: "linkDeviceId",
39262
+ form: "single",
39263
+ optional: true
39264
+ }],
39265
+ "deviceManager.setLocation": [{
39266
+ name: "deviceId",
39267
+ form: "single",
39268
+ optional: false
39269
+ }],
39270
+ "deviceManager.setMetadata": [{
39271
+ name: "deviceId",
39272
+ form: "single",
39273
+ optional: false
39274
+ }],
39275
+ "deviceManager.setName": [{
39276
+ name: "deviceId",
39277
+ form: "single",
39278
+ optional: false
39279
+ }],
39280
+ "deviceManager.setPrimaryChildEntityId": [{
39281
+ name: "deviceId",
39282
+ form: "single",
39283
+ optional: false
39284
+ }],
39285
+ "deviceManager.setRole": [{
39286
+ name: "deviceId",
39287
+ form: "single",
39288
+ optional: false
39289
+ }],
39290
+ "deviceManager.setStreamProfileMap": [{
39291
+ name: "deviceId",
39292
+ form: "single",
39293
+ optional: false
39294
+ }],
39295
+ "deviceManager.setType": [{
39296
+ name: "deviceId",
39297
+ form: "single",
39298
+ optional: false
39299
+ }],
39300
+ "deviceManager.setWrapperActive": [{
39301
+ name: "deviceId",
39302
+ form: "single",
39303
+ optional: false
39304
+ }],
39305
+ "deviceManager.testField": [{
39306
+ name: "deviceId",
39307
+ form: "single",
39308
+ optional: false
39309
+ }],
39310
+ "deviceManager.updateConfig": [{
39311
+ name: "deviceId",
39312
+ form: "single",
39313
+ optional: false
39314
+ }],
39315
+ "deviceManager.updateDeviceField": [{
39316
+ name: "deviceId",
39317
+ form: "single",
39318
+ optional: false
39319
+ }],
39320
+ "deviceManager.updateDeviceFieldsBatch": [{
39321
+ name: "deviceId",
39322
+ form: "single",
39323
+ optional: false
39324
+ }],
39325
+ "deviceOps.getConfigEntries": [{
39326
+ name: "deviceId",
39327
+ form: "single",
39328
+ optional: false
39329
+ }],
39330
+ "deviceOps.getRawState": [{
39331
+ name: "deviceId",
39332
+ form: "single",
39333
+ optional: false
39334
+ }],
39335
+ "deviceOps.getSettingsSchema": [{
39336
+ name: "deviceId",
39337
+ form: "single",
39338
+ optional: false
39339
+ }],
39340
+ "deviceOps.getStreamSources": [{
39341
+ name: "deviceId",
39342
+ form: "single",
39343
+ optional: false
39344
+ }],
39345
+ "deviceOps.removeDevice": [{
39346
+ name: "deviceId",
39347
+ form: "single",
39348
+ optional: false
39349
+ }],
39350
+ "deviceOps.runAction": [{
39351
+ name: "deviceId",
39352
+ form: "single",
39353
+ optional: false
39354
+ }],
39355
+ "deviceOps.setConfig": [{
39356
+ name: "deviceId",
39357
+ form: "single",
39358
+ optional: false
39359
+ }],
39360
+ "deviceState.getCapSlice": [{
39361
+ name: "deviceId",
39362
+ form: "single",
39363
+ optional: false
39364
+ }],
39365
+ "deviceState.getSnapshot": [{
39366
+ name: "deviceId",
39367
+ form: "single",
39368
+ optional: false
39369
+ }],
39370
+ "deviceState.setCapSlice": [{
39371
+ name: "deviceId",
39372
+ form: "single",
39373
+ optional: false
39374
+ }],
39375
+ "events.getEventClipUrl": [{
39376
+ name: "deviceId",
39377
+ form: "single",
39378
+ optional: false
39379
+ }],
39380
+ "events.getEvents": [{
39381
+ name: "deviceId",
39382
+ form: "single",
39383
+ optional: false
39384
+ }],
39385
+ "events.getEventThumbnail": [{
39386
+ name: "deviceId",
39387
+ form: "single",
39388
+ optional: false
39389
+ }],
39390
+ "faceGallery.getFaceByTrack": [{
39391
+ name: "deviceId",
39392
+ form: "single",
39393
+ optional: false
39394
+ }],
39395
+ "faceGallery.listRecentFaces": [{
39396
+ name: "deviceId",
39397
+ form: "single",
39398
+ optional: true
39399
+ }],
39400
+ "fanControl.setDirection": [{
39401
+ name: "deviceId",
39402
+ form: "single",
39403
+ optional: false
39404
+ }],
39405
+ "fanControl.setOscillating": [{
39406
+ name: "deviceId",
39407
+ form: "single",
39408
+ optional: false
39409
+ }],
39410
+ "fanControl.setPercentage": [{
39411
+ name: "deviceId",
39412
+ form: "single",
39413
+ optional: false
39414
+ }],
39415
+ "fanControl.setPreset": [{
39416
+ name: "deviceId",
39417
+ form: "single",
39418
+ optional: false
39419
+ }],
39420
+ "humidifier.setMode": [{
39421
+ name: "deviceId",
39422
+ form: "single",
39423
+ optional: false
39424
+ }],
39425
+ "humidifier.setOn": [{
39426
+ name: "deviceId",
39427
+ form: "single",
39428
+ optional: false
39429
+ }],
39430
+ "humidifier.setTargetHumidity": [{
39431
+ name: "deviceId",
39432
+ form: "single",
39433
+ optional: false
39434
+ }],
39435
+ "imageSettings.getOptions": [{
39436
+ name: "deviceId",
39437
+ form: "single",
39438
+ optional: false
39439
+ }],
39440
+ "imageSettings.setSettings": [{
39441
+ name: "deviceId",
39442
+ form: "single",
39443
+ optional: false
39444
+ }],
39445
+ "intercom.endTalkSession": [{
39446
+ name: "deviceId",
39447
+ form: "single",
39448
+ optional: false
39449
+ }],
39450
+ "intercom.handleAnswer": [{
39451
+ name: "deviceId",
39452
+ form: "single",
39453
+ optional: false
39454
+ }],
39455
+ "intercom.pushTalkAudio": [{
39456
+ name: "deviceId",
39457
+ form: "single",
39458
+ optional: false
39459
+ }],
39460
+ "intercom.startSession": [{
39461
+ name: "deviceId",
39462
+ form: "single",
39463
+ optional: false
39464
+ }],
39465
+ "intercom.startTalkSession": [{
39466
+ name: "deviceId",
39467
+ form: "single",
39468
+ optional: false
39469
+ }],
39470
+ "intercom.stopSession": [{
39471
+ name: "deviceId",
39472
+ form: "single",
39473
+ optional: false
39474
+ }],
39475
+ "lawnMowerControl.dock": [{
39476
+ name: "deviceId",
39477
+ form: "single",
39478
+ optional: false
39479
+ }],
39480
+ "lawnMowerControl.pause": [{
39481
+ name: "deviceId",
39482
+ form: "single",
39483
+ optional: false
39484
+ }],
39485
+ "lawnMowerControl.startMowing": [{
39486
+ name: "deviceId",
39487
+ form: "single",
39488
+ optional: false
39489
+ }],
39490
+ "lockControl.lock": [{
39491
+ name: "deviceId",
39492
+ form: "single",
39493
+ optional: false
39494
+ }],
39495
+ "lockControl.open": [{
39496
+ name: "deviceId",
39497
+ form: "single",
39498
+ optional: false
39499
+ }],
39500
+ "lockControl.unlock": [{
39501
+ name: "deviceId",
39502
+ form: "single",
39503
+ optional: false
39504
+ }],
39505
+ "mediaPlayer.next": [{
39506
+ name: "deviceId",
39507
+ form: "single",
39508
+ optional: false
39509
+ }],
39510
+ "mediaPlayer.pause": [{
39511
+ name: "deviceId",
39512
+ form: "single",
39513
+ optional: false
39514
+ }],
39515
+ "mediaPlayer.play": [{
39516
+ name: "deviceId",
39517
+ form: "single",
39518
+ optional: false
39519
+ }],
39520
+ "mediaPlayer.playMedia": [{
39521
+ name: "deviceId",
39522
+ form: "single",
39523
+ optional: false
39524
+ }],
39525
+ "mediaPlayer.previous": [{
39526
+ name: "deviceId",
39527
+ form: "single",
39528
+ optional: false
39529
+ }],
39530
+ "mediaPlayer.seek": [{
39531
+ name: "deviceId",
39532
+ form: "single",
39533
+ optional: false
39534
+ }],
39535
+ "mediaPlayer.selectSource": [{
39536
+ name: "deviceId",
39537
+ form: "single",
39538
+ optional: false
39539
+ }],
39540
+ "mediaPlayer.setMute": [{
39541
+ name: "deviceId",
39542
+ form: "single",
39543
+ optional: false
39544
+ }],
39545
+ "mediaPlayer.setRepeat": [{
39546
+ name: "deviceId",
39547
+ form: "single",
39548
+ optional: false
39549
+ }],
39550
+ "mediaPlayer.setShuffle": [{
39551
+ name: "deviceId",
39552
+ form: "single",
39553
+ optional: false
39554
+ }],
39555
+ "mediaPlayer.setVolume": [{
39556
+ name: "deviceId",
39557
+ form: "single",
39558
+ optional: false
39559
+ }],
39560
+ "mediaPlayer.stop": [{
39561
+ name: "deviceId",
39562
+ form: "single",
39563
+ optional: false
39564
+ }],
39565
+ "motion.isDetected": [{
39566
+ name: "deviceId",
39567
+ form: "single",
39568
+ optional: false
39569
+ }],
39570
+ "motionDetection.analyze": [{
39571
+ name: "deviceId",
39572
+ form: "single",
39573
+ optional: false
39574
+ }],
39575
+ "motionDetection.removeCamera": [{
39576
+ name: "deviceId",
39577
+ form: "single",
39578
+ optional: false
39579
+ }],
39580
+ "motionTrigger.setMotionTrigger": [{
39581
+ name: "deviceId",
39582
+ form: "single",
39583
+ optional: false
39584
+ }],
39585
+ "motionZones.getOptions": [{
39586
+ name: "deviceId",
39587
+ form: "single",
39588
+ optional: false
39589
+ }],
39590
+ "motionZones.setZone": [{
39591
+ name: "deviceId",
39592
+ form: "single",
39593
+ optional: false
39594
+ }],
39595
+ "nativeObjectDetection.setEnabled": [{
39596
+ name: "deviceId",
39597
+ form: "single",
39598
+ optional: false
39599
+ }],
39600
+ "networkQuality.getDeviceStats": [{
39601
+ name: "deviceId",
39602
+ form: "single",
39603
+ optional: false
39604
+ }],
39605
+ "networkQuality.reportClientStats": [{
39606
+ name: "deviceId",
39607
+ form: "single",
39608
+ optional: false
39609
+ }],
39610
+ "notificationRules.setDeviceMuted": [{
39611
+ name: "deviceId",
39612
+ form: "single",
39613
+ optional: false
39614
+ }],
39615
+ "notifier.cancel": [{
39616
+ name: "deviceId",
39617
+ form: "single",
39618
+ optional: false
39619
+ }],
39620
+ "notifier.send": [{
39621
+ name: "deviceId",
39622
+ form: "single",
39623
+ optional: false
39624
+ }],
39625
+ "osd.setOverlay": [{
39626
+ name: "deviceId",
39627
+ form: "single",
39628
+ optional: false
39629
+ }],
39630
+ "osdManager.clearSlotBinding": [{
39631
+ name: "deviceId",
39632
+ form: "single",
39633
+ optional: false
39634
+ }],
39635
+ "osdManager.copyDeviceConfiguration": [{
39636
+ name: "sourceDeviceId",
39637
+ form: "single",
39638
+ optional: false
39639
+ }, {
39640
+ name: "targetDeviceId",
39641
+ form: "single",
39642
+ optional: false
39643
+ }],
39644
+ "osdManager.getDeviceOsd": [{
39645
+ name: "deviceId",
39646
+ form: "single",
39647
+ optional: false
39648
+ }],
39649
+ "osdManager.getSourceCatalog": [{
39650
+ name: "deviceId",
39651
+ form: "single",
39652
+ optional: false
39653
+ }],
39654
+ "osdManager.previewSlot": [{
39655
+ name: "deviceId",
39656
+ form: "single",
39657
+ optional: false
39658
+ }],
39659
+ "osdManager.renderDevice": [{
39660
+ name: "deviceId",
39661
+ form: "single",
39662
+ optional: false
39663
+ }],
39664
+ "osdManager.setSlotBinding": [{
39665
+ name: "deviceId",
39666
+ form: "single",
39667
+ optional: false
39668
+ }],
39669
+ "petFeeder.callPet": [{
39670
+ name: "deviceId",
39671
+ form: "single",
39672
+ optional: false
39673
+ }],
39674
+ "petFeeder.cancelFeed": [{
39675
+ name: "deviceId",
39676
+ form: "single",
39677
+ optional: false
39678
+ }],
39679
+ "petFeeder.feed": [{
39680
+ name: "deviceId",
39681
+ form: "single",
39682
+ optional: false
39683
+ }],
39684
+ "petFeeder.markFoodReplenished": [{
39685
+ name: "deviceId",
39686
+ form: "single",
39687
+ optional: false
39688
+ }],
39689
+ "petFeeder.playSound": [{
39690
+ name: "deviceId",
39691
+ form: "single",
39692
+ optional: false
39693
+ }],
39694
+ "petFeeder.resetDesiccant": [{
39695
+ name: "deviceId",
39696
+ form: "single",
39697
+ optional: false
39698
+ }],
39699
+ "petFeeder.setChildLock": [{
39700
+ name: "deviceId",
39701
+ form: "single",
39702
+ optional: false
39703
+ }],
39704
+ "petFeeder.setFeedSound": [{
39705
+ name: "deviceId",
39706
+ form: "single",
39707
+ optional: false
39708
+ }],
39709
+ "petFeeder.setIndicatorLight": [{
39710
+ name: "deviceId",
39711
+ form: "single",
39712
+ optional: false
39713
+ }],
39714
+ "petFeeder.setVolume": [{
39715
+ name: "deviceId",
39716
+ form: "single",
39717
+ optional: false
39718
+ }],
39719
+ "pipelineAnalytics.clearTracks": [{
39720
+ name: "deviceId",
39721
+ form: "single",
39722
+ optional: false
39723
+ }],
39724
+ "pipelineAnalytics.completeRetrainTrack": [{
39725
+ name: "deviceId",
39726
+ form: "single",
39727
+ optional: false
39728
+ }],
39729
+ "pipelineAnalytics.deleteDeviceEvents": [{
39730
+ name: "deviceId",
39731
+ form: "single",
39732
+ optional: false
39733
+ }],
39734
+ "pipelineAnalytics.deleteTracks": [{
39735
+ name: "deviceId",
39736
+ form: "single",
39737
+ optional: false
39738
+ }],
39739
+ "pipelineAnalytics.deselectRetrainFrame": [{
39740
+ name: "deviceId",
39741
+ form: "single",
39742
+ optional: false
39743
+ }],
39744
+ "pipelineAnalytics.getActiveTracks": [{
39745
+ name: "deviceId",
39746
+ form: "single",
39747
+ optional: false
39748
+ }],
39749
+ "pipelineAnalytics.getAudioEvents": [{
39750
+ name: "deviceId",
39751
+ form: "single",
39752
+ optional: false
39753
+ }],
39754
+ "pipelineAnalytics.getEventDensity": [{
39755
+ name: "deviceId",
39756
+ form: "single",
39757
+ optional: false
39758
+ }],
39759
+ "pipelineAnalytics.getEventMedia": [{
39760
+ name: "deviceId",
39761
+ form: "single",
39762
+ optional: false
39763
+ }],
39764
+ "pipelineAnalytics.getKeyEvents": [{
39765
+ name: "deviceId",
39766
+ form: "single",
39767
+ optional: false
39768
+ }],
39769
+ "pipelineAnalytics.getMotionEvents": [{
39770
+ name: "deviceId",
39771
+ form: "single",
39772
+ optional: false
39773
+ }],
39774
+ "pipelineAnalytics.getObjectEvents": [{
39775
+ name: "deviceId",
39776
+ form: "single",
39777
+ optional: false
39778
+ }],
39779
+ "pipelineAnalytics.getRetrainExportUrl": [{
39780
+ name: "deviceIds",
39781
+ form: "array",
39782
+ optional: true
39783
+ }],
39784
+ "pipelineAnalytics.getSensorEvents": [{
39785
+ name: "deviceId",
39786
+ form: "single",
39787
+ optional: false
39788
+ }],
39789
+ "pipelineAnalytics.getTrack": [{
39790
+ name: "deviceId",
39791
+ form: "single",
39792
+ optional: false
39793
+ }],
39794
+ "pipelineAnalytics.getTrackMedia": [{
39795
+ name: "deviceId",
39796
+ form: "single",
39797
+ optional: false
39798
+ }],
39799
+ "pipelineAnalytics.getTrainingExportSummary": [{
39800
+ name: "deviceIds",
39801
+ form: "array",
39802
+ optional: true
39803
+ }],
39804
+ "pipelineAnalytics.getTrainingExportUrl": [{
39805
+ name: "deviceIds",
39806
+ form: "array",
39807
+ optional: true
39808
+ }],
39809
+ "pipelineAnalytics.listEventKinds": [{
39810
+ name: "deviceId",
39811
+ form: "single",
39812
+ optional: false
39813
+ }],
39814
+ "pipelineAnalytics.listEventKindsBatch": [{
39815
+ name: "deviceIds",
39816
+ form: "array",
39817
+ optional: false
39818
+ }],
39819
+ "pipelineAnalytics.listOpsLog": [{
39820
+ name: "deviceId",
39821
+ form: "single",
39822
+ optional: true
39823
+ }],
39824
+ "pipelineAnalytics.listRecentTracks": [{
39825
+ name: "deviceIds",
39826
+ form: "array",
39827
+ optional: false
39828
+ }],
39829
+ "pipelineAnalytics.listRetrainStaging": [{
39830
+ name: "deviceIds",
39831
+ form: "array",
39832
+ optional: true
39833
+ }],
39834
+ "pipelineAnalytics.listTrackMedia": [{
39835
+ name: "deviceId",
39836
+ form: "single",
39837
+ optional: false
39838
+ }],
39839
+ "pipelineAnalytics.listTracks": [{
39840
+ name: "deviceId",
39841
+ form: "single",
39842
+ optional: false
39843
+ }],
39844
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
39845
+ name: "deviceId",
39846
+ form: "single",
39847
+ optional: false
39848
+ }],
39849
+ "pipelineAnalytics.pruneEventsBefore": [{
39850
+ name: "deviceId",
39851
+ form: "single",
39852
+ optional: false
39853
+ }],
39854
+ "pipelineAnalytics.pruneTracksBefore": [{
39855
+ name: "deviceId",
39856
+ form: "single",
39857
+ optional: false
39858
+ }],
39859
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
39860
+ name: "deviceId",
39861
+ form: "single",
39862
+ optional: true
39863
+ }],
39864
+ "pipelineAnalytics.restageRetrainTrack": [{
39865
+ name: "deviceId",
39866
+ form: "single",
39867
+ optional: false
39868
+ }],
39869
+ "pipelineAnalytics.saveRetrainAnnotations": [{
39870
+ name: "deviceId",
39871
+ form: "single",
39872
+ optional: false
39873
+ }],
39874
+ "pipelineAnalytics.searchObjectEvents": [{
39875
+ name: "deviceId",
39876
+ form: "single",
39877
+ optional: true
39878
+ }],
39879
+ "pipelineAnalytics.selectRetrainFrames": [{
39880
+ name: "deviceId",
39881
+ form: "single",
39882
+ optional: false
39883
+ }],
39884
+ "pipelineAnalytics.setTrackFlags": [{
39885
+ name: "deviceId",
39886
+ form: "single",
39887
+ optional: false
39888
+ }],
39889
+ "pipelineAnalytics.wipeAllAnalytics": [{
39890
+ name: "deviceId",
39891
+ form: "single",
39892
+ optional: false
39893
+ }],
39894
+ "pipelineExecutor.runPipeline": [{
39895
+ name: "deviceId",
39896
+ form: "single",
39897
+ optional: true
39898
+ }],
39899
+ "pipelineExecutor.runPipelineBatch": [{
39900
+ name: "deviceId",
39901
+ form: "single",
39902
+ optional: true
39903
+ }],
39904
+ "pipelineOrchestrator.assignAudio": [{
39905
+ name: "deviceId",
39906
+ form: "single",
39907
+ optional: false
39908
+ }],
39909
+ "pipelineOrchestrator.assignPipeline": [{
39910
+ name: "deviceId",
39911
+ form: "single",
39912
+ optional: false
39913
+ }],
39914
+ "pipelineOrchestrator.getAudioAssignment": [{
39915
+ name: "deviceId",
39916
+ form: "single",
39917
+ optional: false
39918
+ }],
39919
+ "pipelineOrchestrator.getCameraMetrics": [{
39920
+ name: "deviceId",
39921
+ form: "single",
39922
+ optional: false
39923
+ }],
39924
+ "pipelineOrchestrator.getCameraSettings": [{
39925
+ name: "deviceId",
39926
+ form: "single",
39927
+ optional: false
39928
+ }],
39929
+ "pipelineOrchestrator.getCameraStatus": [{
39930
+ name: "deviceId",
39931
+ form: "single",
39932
+ optional: false
39933
+ }],
39934
+ "pipelineOrchestrator.getCameraStatuses": [{
39935
+ name: "deviceIds",
39936
+ form: "array",
39937
+ optional: true
39938
+ }],
39939
+ "pipelineOrchestrator.getCameraStepOverrides": [{
39940
+ name: "deviceId",
39941
+ form: "single",
39942
+ optional: false
39943
+ }],
39944
+ "pipelineOrchestrator.getCameraSwitches": [{
39945
+ name: "deviceId",
39946
+ form: "single",
39947
+ optional: false
39948
+ }],
39949
+ "pipelineOrchestrator.getPipelineAssignment": [{
39950
+ name: "deviceId",
39951
+ form: "single",
39952
+ optional: false
39953
+ }],
39954
+ "pipelineOrchestrator.getPipelineDevicePin": [{
39955
+ name: "deviceId",
39956
+ form: "single",
39957
+ optional: false
39958
+ }],
39959
+ "pipelineOrchestrator.resolvePipeline": [{
39960
+ name: "deviceId",
39961
+ form: "single",
39962
+ optional: false
39963
+ }],
39964
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
39965
+ name: "deviceId",
39966
+ form: "single",
39967
+ optional: false
39968
+ }],
39969
+ "pipelineOrchestrator.setCameraStepOverride": [{
39970
+ name: "deviceId",
39971
+ form: "single",
39972
+ optional: false
39973
+ }],
39974
+ "pipelineOrchestrator.setCameraStepToggle": [{
39975
+ name: "deviceId",
39976
+ form: "single",
39977
+ optional: false
39978
+ }],
39979
+ "pipelineOrchestrator.setCameraSwitch": [{
39980
+ name: "deviceId",
39981
+ form: "single",
39982
+ optional: false
39983
+ }],
39984
+ "pipelineOrchestrator.setPipelineDevicePin": [{
39985
+ name: "deviceId",
39986
+ form: "single",
39987
+ optional: false
39988
+ }],
39989
+ "pipelineOrchestrator.unassignAudio": [{
39990
+ name: "deviceId",
39991
+ form: "single",
39992
+ optional: false
39993
+ }],
39994
+ "pipelineOrchestrator.unassignPipeline": [{
39995
+ name: "deviceId",
39996
+ form: "single",
39997
+ optional: false
39998
+ }],
39999
+ "pipelineRunner.attachCamera": [{
40000
+ name: "deviceId",
40001
+ form: "single",
40002
+ optional: false
40003
+ }],
40004
+ "pipelineRunner.detachCamera": [{
40005
+ name: "deviceId",
40006
+ form: "single",
40007
+ optional: false
40008
+ }],
40009
+ "pipelineRunner.getCameraMetrics": [{
40010
+ name: "deviceId",
40011
+ form: "single",
40012
+ optional: false
40013
+ }],
40014
+ "pipelineRunner.reportMotion": [{
40015
+ name: "deviceId",
40016
+ form: "single",
40017
+ optional: false
40018
+ }],
40019
+ "pipelineRunner.runDetailSubtree": [{
40020
+ name: "deviceId",
40021
+ form: "single",
40022
+ optional: false
40023
+ }],
40024
+ "pipelineRunner.runStatelessStep": [{
40025
+ name: "sourceDeviceId",
40026
+ form: "single",
40027
+ optional: false
40028
+ }],
40029
+ "plateGallery.getPlateByTrack": [{
40030
+ name: "deviceId",
40031
+ form: "single",
40032
+ optional: false
40033
+ }],
40034
+ "plateGallery.listPlates": [{
40035
+ name: "deviceId",
40036
+ form: "single",
40037
+ optional: true
40038
+ }],
40039
+ "privacyMask.getOptions": [{
40040
+ name: "deviceId",
40041
+ form: "single",
40042
+ optional: false
40043
+ }],
40044
+ "privacyMask.setAudioEnabled": [{
40045
+ name: "deviceId",
40046
+ form: "single",
40047
+ optional: false
40048
+ }],
40049
+ "privacyMask.setMask": [{
40050
+ name: "deviceId",
40051
+ form: "single",
40052
+ optional: false
40053
+ }],
40054
+ "ptz.continuousMove": [{
40055
+ name: "deviceId",
40056
+ form: "single",
40057
+ optional: false
40058
+ }],
40059
+ "ptz.deletePreset": [{
40060
+ name: "deviceId",
40061
+ form: "single",
40062
+ optional: false
40063
+ }],
40064
+ "ptz.getOptions": [{
40065
+ name: "deviceId",
40066
+ form: "single",
40067
+ optional: false
40068
+ }],
40069
+ "ptz.getPosition": [{
40070
+ name: "deviceId",
40071
+ form: "single",
40072
+ optional: false
40073
+ }],
40074
+ "ptz.getPresets": [{
40075
+ name: "deviceId",
40076
+ form: "single",
40077
+ optional: false
40078
+ }],
40079
+ "ptz.goHome": [{
40080
+ name: "deviceId",
40081
+ form: "single",
40082
+ optional: false
40083
+ }],
40084
+ "ptz.goToPreset": [{
40085
+ name: "deviceId",
40086
+ form: "single",
40087
+ optional: false
40088
+ }],
40089
+ "ptz.move": [{
40090
+ name: "deviceId",
40091
+ form: "single",
40092
+ optional: false
40093
+ }],
40094
+ "ptz.savePreset": [{
40095
+ name: "deviceId",
40096
+ form: "single",
40097
+ optional: false
40098
+ }],
40099
+ "ptz.setAutofocus": [{
40100
+ name: "deviceId",
40101
+ form: "single",
40102
+ optional: false
40103
+ }],
40104
+ "ptz.stop": [{
40105
+ name: "deviceId",
40106
+ form: "single",
40107
+ optional: false
40108
+ }],
40109
+ "ptzAutotrack.getSettings": [{
40110
+ name: "deviceId",
40111
+ form: "single",
40112
+ optional: false
40113
+ }],
40114
+ "ptzAutotrack.getStatus": [{
40115
+ name: "deviceId",
40116
+ form: "single",
40117
+ optional: false
40118
+ }],
40119
+ "ptzAutotrack.setEnabled": [{
40120
+ name: "deviceId",
40121
+ form: "single",
40122
+ optional: false
40123
+ }],
40124
+ "ptzAutotrack.setSettings": [{
40125
+ name: "deviceId",
40126
+ form: "single",
40127
+ optional: false
40128
+ }],
40129
+ "reboot.reboot": [{
40130
+ name: "deviceId",
40131
+ form: "single",
40132
+ optional: false
40133
+ }],
40134
+ "recording.deleteFootprint": [{
40135
+ name: "deviceId",
40136
+ form: "single",
40137
+ optional: false
40138
+ }],
40139
+ "recording.getAvailability": [{
40140
+ name: "deviceId",
40141
+ form: "single",
40142
+ optional: false
40143
+ }],
40144
+ "recording.getDaysWithRecordings": [{
40145
+ name: "deviceId",
40146
+ form: "single",
40147
+ optional: false
40148
+ }],
40149
+ "recording.getDeviceConfig": [{
40150
+ name: "deviceId",
40151
+ form: "single",
40152
+ optional: false
40153
+ }],
40154
+ "recording.getPlaybackManifest": [{
40155
+ name: "deviceId",
40156
+ form: "single",
40157
+ optional: false
40158
+ }],
40159
+ "recording.listOpsLog": [{
40160
+ name: "deviceId",
40161
+ form: "single",
40162
+ optional: true
40163
+ }],
40164
+ "recording.locateSegment": [{
40165
+ name: "deviceId",
40166
+ form: "single",
40167
+ optional: false
40168
+ }],
40169
+ "recording.pruneFootage": [{
40170
+ name: "deviceId",
40171
+ form: "single",
40172
+ optional: false
40173
+ }],
40174
+ "recording.readGopBytes": [{
40175
+ name: "deviceId",
40176
+ form: "single",
40177
+ optional: false
40178
+ }],
40179
+ "recording.readSegmentBytes": [{
40180
+ name: "deviceId",
40181
+ form: "single",
40182
+ optional: false
40183
+ }],
40184
+ "recording.relocateFootage": [{
40185
+ name: "deviceId",
40186
+ form: "single",
40187
+ optional: true
40188
+ }],
40189
+ "recording.renderClip": [{
40190
+ name: "deviceId",
40191
+ form: "single",
40192
+ optional: false
40193
+ }],
40194
+ "recording.renderGif": [{
40195
+ name: "deviceId",
40196
+ form: "single",
40197
+ optional: false
40198
+ }],
40199
+ "recording.rescanStorage": [{
40200
+ name: "deviceId",
40201
+ form: "single",
40202
+ optional: false
40203
+ }],
40204
+ "recording.setDeviceConfig": [{
40205
+ name: "deviceId",
40206
+ form: "single",
40207
+ optional: false
40208
+ }],
40209
+ "recording.startStorageMigrationMove": [{
40210
+ name: "deviceId",
40211
+ form: "single",
40212
+ optional: true
40213
+ }],
40214
+ "recordingExport.createExport": [{
40215
+ name: "deviceId",
40216
+ form: "single",
40217
+ optional: false
40218
+ }],
40219
+ "recordingExport.listExports": [{
40220
+ name: "deviceId",
40221
+ form: "single",
40222
+ optional: true
40223
+ }],
40224
+ "sceneMonitor.captureReference": [{
40225
+ name: "deviceId",
40226
+ form: "single",
40227
+ optional: false
40228
+ }],
40229
+ "sceneMonitor.createScene": [{
40230
+ name: "deviceId",
40231
+ form: "single",
40232
+ optional: false
40233
+ }],
40234
+ "sceneMonitor.deleteReference": [{
40235
+ name: "deviceId",
40236
+ form: "single",
40237
+ optional: false
40238
+ }],
40239
+ "sceneMonitor.deleteScene": [{
40240
+ name: "deviceId",
40241
+ form: "single",
40242
+ optional: false
40243
+ }],
40244
+ "sceneMonitor.listScenes": [{
40245
+ name: "deviceId",
40246
+ form: "single",
40247
+ optional: false
40248
+ }],
40249
+ "sceneMonitor.recheckNow": [{
40250
+ name: "deviceId",
40251
+ form: "single",
40252
+ optional: false
40253
+ }],
40254
+ "sceneMonitor.resetScene": [{
40255
+ name: "deviceId",
40256
+ form: "single",
40257
+ optional: false
40258
+ }],
40259
+ "sceneMonitor.updateScene": [{
40260
+ name: "deviceId",
40261
+ form: "single",
40262
+ optional: false
40263
+ }],
40264
+ "scriptRunner.run": [{
40265
+ name: "deviceId",
40266
+ form: "single",
40267
+ optional: false
40268
+ }],
40269
+ "scriptRunner.stop": [{
40270
+ name: "deviceId",
40271
+ form: "single",
40272
+ optional: false
40273
+ }],
40274
+ "snapshot.getDebugState": [{
40275
+ name: "deviceId",
40276
+ form: "single",
40277
+ optional: false
40278
+ }],
40279
+ "snapshot.getSnapshot": [{
40280
+ name: "deviceId",
40281
+ form: "single",
40282
+ optional: false
40283
+ }],
40284
+ "snapshot.getSnapshotLinks": [{
40285
+ name: "targets",
40286
+ form: "object-array",
40287
+ optional: false,
40288
+ itemField: "deviceId"
40289
+ }],
40290
+ "snapshot.getSnapshotOverview": [{
40291
+ name: "deviceIds",
40292
+ form: "array",
40293
+ optional: false
40294
+ }],
40295
+ "snapshot.invalidateCache": [{
40296
+ name: "deviceId",
40297
+ form: "single",
40298
+ optional: false
40299
+ }],
40300
+ "streamBroker.acquireEgressTranscode": [{
40301
+ name: "deviceId",
40302
+ form: "single",
40303
+ optional: false
40304
+ }],
40305
+ "streamBroker.assignProfile": [{
40306
+ name: "deviceId",
40307
+ form: "single",
40308
+ optional: false
40309
+ }],
40310
+ "streamBroker.getDeviceAudioMute": [{
40311
+ name: "deviceId",
40312
+ form: "single",
40313
+ optional: false
40314
+ }],
40315
+ "streamBroker.getStreamWithCodec": [{
40316
+ name: "deviceId",
40317
+ form: "single",
40318
+ optional: false
40319
+ }],
40320
+ "streamBroker.produceEventMedia": [{
40321
+ name: "deviceId",
40322
+ form: "single",
40323
+ optional: false
40324
+ }],
40325
+ "streamBroker.publishCameraStream": [{
40326
+ name: "deviceId",
40327
+ form: "single",
40328
+ optional: false
40329
+ }],
40330
+ "streamBroker.renderPreBufferClip": [{
40331
+ name: "deviceId",
40332
+ form: "single",
40333
+ optional: false
40334
+ }],
40335
+ "streamBroker.restartProfile": [{
40336
+ name: "deviceId",
40337
+ form: "single",
40338
+ optional: false
40339
+ }],
40340
+ "streamBroker.retractCameraStream": [{
40341
+ name: "deviceId",
40342
+ form: "single",
40343
+ optional: false
40344
+ }],
40345
+ "streamBroker.setDeviceAudioMute": [{
40346
+ name: "deviceId",
40347
+ form: "single",
40348
+ optional: false
40349
+ }],
40350
+ "streamBroker.unassignProfile": [{
40351
+ name: "deviceId",
40352
+ form: "single",
40353
+ optional: false
40354
+ }],
40355
+ "streamCatalog.getCatalog": [{
40356
+ name: "deviceId",
40357
+ form: "single",
40358
+ optional: false
40359
+ }],
40360
+ "streamParams.getConfigSchema": [{
40361
+ name: "deviceId",
40362
+ form: "single",
40363
+ optional: false
40364
+ }],
40365
+ "streamParams.getOptions": [{
40366
+ name: "deviceId",
40367
+ form: "single",
40368
+ optional: false
40369
+ }],
40370
+ "streamParams.setProfile": [{
40371
+ name: "deviceId",
40372
+ form: "single",
40373
+ optional: false
40374
+ }],
40375
+ "switch.setState": [{
40376
+ name: "deviceId",
40377
+ form: "single",
40378
+ optional: false
40379
+ }],
40380
+ "vacuumControl.locate": [{
40381
+ name: "deviceId",
40382
+ form: "single",
40383
+ optional: false
40384
+ }],
40385
+ "vacuumControl.pause": [{
40386
+ name: "deviceId",
40387
+ form: "single",
40388
+ optional: false
40389
+ }],
40390
+ "vacuumControl.returnToBase": [{
40391
+ name: "deviceId",
40392
+ form: "single",
40393
+ optional: false
40394
+ }],
40395
+ "vacuumControl.setFanSpeed": [{
40396
+ name: "deviceId",
40397
+ form: "single",
40398
+ optional: false
40399
+ }],
40400
+ "vacuumControl.start": [{
40401
+ name: "deviceId",
40402
+ form: "single",
40403
+ optional: false
40404
+ }],
40405
+ "vacuumControl.stop": [{
40406
+ name: "deviceId",
40407
+ form: "single",
40408
+ optional: false
40409
+ }],
40410
+ "valve.close": [{
40411
+ name: "deviceId",
40412
+ form: "single",
40413
+ optional: false
40414
+ }],
40415
+ "valve.open": [{
40416
+ name: "deviceId",
40417
+ form: "single",
40418
+ optional: false
40419
+ }],
40420
+ "valve.setPosition": [{
40421
+ name: "deviceId",
40422
+ form: "single",
40423
+ optional: false
40424
+ }],
40425
+ "valve.stop": [{
40426
+ name: "deviceId",
40427
+ form: "single",
40428
+ optional: false
40429
+ }],
40430
+ "videoclips.getClipPlayback": [{
40431
+ name: "deviceId",
40432
+ form: "single",
40433
+ optional: false
40434
+ }],
40435
+ "videoclips.listClips": [{
40436
+ name: "deviceId",
40437
+ form: "single",
40438
+ optional: false
40439
+ }],
40440
+ "waterHeater.setAway": [{
40441
+ name: "deviceId",
40442
+ form: "single",
40443
+ optional: false
40444
+ }],
40445
+ "waterHeater.setOperationMode": [{
40446
+ name: "deviceId",
40447
+ form: "single",
40448
+ optional: false
40449
+ }],
40450
+ "waterHeater.setTargetTemp": [{
40451
+ name: "deviceId",
40452
+ form: "single",
40453
+ optional: false
40454
+ }],
40455
+ "webrtcSession.addIceCandidate": [{
40456
+ name: "deviceId",
40457
+ form: "single",
40458
+ optional: false
40459
+ }],
40460
+ "webrtcSession.closeSession": [{
40461
+ name: "deviceId",
40462
+ form: "single",
40463
+ optional: false
40464
+ }],
40465
+ "webrtcSession.createSession": [{
40466
+ name: "deviceId",
40467
+ form: "single",
40468
+ optional: false
40469
+ }],
40470
+ "webrtcSession.getIceCandidates": [{
40471
+ name: "deviceId",
40472
+ form: "single",
40473
+ optional: false
40474
+ }],
40475
+ "webrtcSession.getSessionState": [{
40476
+ name: "deviceId",
40477
+ form: "single",
40478
+ optional: false
40479
+ }],
40480
+ "webrtcSession.handleAnswer": [{
40481
+ name: "deviceId",
40482
+ form: "single",
40483
+ optional: false
40484
+ }],
40485
+ "webrtcSession.handleOffer": [{
40486
+ name: "deviceId",
40487
+ form: "single",
40488
+ optional: false
40489
+ }],
40490
+ "webrtcSession.hasAdaptiveBitrate": [{
40491
+ name: "deviceId",
40492
+ form: "single",
40493
+ optional: false
40494
+ }],
40495
+ "webrtcSession.listStreams": [{
40496
+ name: "deviceId",
40497
+ form: "single",
40498
+ optional: false
40499
+ }],
40500
+ "zoneAnalytics.getCameraHistory": [{
40501
+ name: "deviceId",
40502
+ form: "single",
40503
+ optional: false
40504
+ }],
40505
+ "zoneAnalytics.getCurrentSnapshot": [{
40506
+ name: "deviceId",
40507
+ form: "single",
40508
+ optional: false
40509
+ }],
40510
+ "zoneAnalytics.getUnzonedHistory": [{
40511
+ name: "deviceId",
40512
+ form: "single",
40513
+ optional: false
40514
+ }],
40515
+ "zoneAnalytics.getZoneHistory": [{
40516
+ name: "deviceId",
40517
+ form: "single",
40518
+ optional: false
40519
+ }],
40520
+ "zoneRules.listRules": [{
40521
+ name: "deviceId",
40522
+ form: "single",
40523
+ optional: false
40524
+ }],
40525
+ "zoneRules.setRules": [{
40526
+ name: "deviceId",
40527
+ form: "single",
40528
+ optional: false
40529
+ }],
40530
+ "zones.addZone": [{
40531
+ name: "deviceId",
40532
+ form: "single",
40533
+ optional: false
40534
+ }],
40535
+ "zones.listZones": [{
40536
+ name: "deviceId",
40537
+ form: "single",
40538
+ optional: false
40539
+ }],
40540
+ "zones.removeZone": [{
40541
+ name: "deviceId",
40542
+ form: "single",
40543
+ optional: false
40544
+ }],
40545
+ "zones.updateZone": [{
40546
+ name: "deviceId",
40547
+ form: "single",
40548
+ optional: false
40549
+ }]
40550
+ });
37796
40551
  Object.freeze({
37797
40552
  "broker": "broker",
37798
40553
  "device-export": "device-export",