@camstack/addon-osd-manager 0.1.8 → 0.1.10

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-MUuX1dCr.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-V-A5HLAS.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-BwuSfydw.mjs → hostInit-CAIA1dxe.mjs} +3 -3
  9. package/dist/index.js +2890 -107
  10. package/dist/index.mjs +2890 -107
  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-CFRiU5sa.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-CpP37G9Y.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Dd86r_QM.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/MotionZonesSettings-CyLbgRZJ.mjs +0 -309
  20. package/dist/PrivacyMaskSettings-B1bSrXkE.mjs +0 -368
  21. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-mBvn5gbF.mjs +0 -26
  22. package/dist/player-overlays-pmuMEC2F.mjs +0 -163
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-Cv9dO26A.mjs
1
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -205,6 +205,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
205
205
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
206
206
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
207
207
  /**
208
+ * A node the orchestrator would otherwise place cameras on has NO usable
209
+ * inference device: the operator enabled one or more accelerators there and
210
+ * the live probe reports every one of them unavailable. Emitted once per
211
+ * TRANSITION into that state (never per dispatch), and the node is dropped
212
+ * from the placement candidate set for as long as it holds.
213
+ *
214
+ * This exists because the state was previously invisible: little-unraid
215
+ * absorbed 283k inference errors in a day while still being handed cameras,
216
+ * and nothing in the system said so.
217
+ *
218
+ * A node with no accelerators configured at all is NOT this — its devices
219
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
220
+ * serves it exactly as before.
221
+ */
222
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
223
+ /**
224
+ * A camera has an OPEN detection session and has produced no detection at
225
+ * all for longer than the blind threshold — the camera is being decoded and
226
+ * inferred and is returning nothing. Emitted once per transition into blind,
227
+ * per camera.
228
+ *
229
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
230
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
231
+ * camera" produce byte-identical silence.
232
+ */
233
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
234
+ /**
208
235
  * Per-camera pipeline config was mutated by the orchestrator
209
236
  * (3-level settings change via `setAgentAddonDefaults` /
210
237
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -2996,6 +3023,9 @@ function handlePipeResult(left, next, ctx) {
2996
3023
  fallback: left.fallback
2997
3024
  }, ctx);
2998
3025
  }
3026
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3027
+ $ZodPipe.init(inst, def);
3028
+ });
2999
3029
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3000
3030
  $ZodType.init(inst, def);
3001
3031
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5181,6 +5211,10 @@ function pipe(in_, out) {
5181
5211
  out
5182
5212
  });
5183
5213
  }
5214
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5215
+ ZodPipe.init(inst, def);
5216
+ $ZodPreprocess.init(inst, def);
5217
+ });
5184
5218
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5185
5219
  $ZodReadonly.init(inst, def);
5186
5220
  ZodType.init(inst, def);
@@ -5239,6 +5273,13 @@ function _instanceof(cls, params = {}) {
5239
5273
  };
5240
5274
  return inst;
5241
5275
  }
5276
+ function preprocess(fn, schema) {
5277
+ return new ZodPreprocess({
5278
+ type: "pipe",
5279
+ in: transform(fn),
5280
+ out: schema
5281
+ });
5282
+ }
5242
5283
  //#endregion
5243
5284
  //#region ../../node_modules/zod/v4/classic/compat.js
5244
5285
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -11560,6 +11601,8 @@ var QueryFilterSchema = object({
11560
11601
  where: record(string(), unknown()).optional(),
11561
11602
  whereIn: record(string(), array(unknown())).optional(),
11562
11603
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11604
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
11605
+ whereNot: record(string(), unknown()).optional(),
11563
11606
  orderBy: object({
11564
11607
  field: string(),
11565
11608
  direction: _enum(["asc", "desc"])
@@ -11579,7 +11622,8 @@ var QueryFilterSchema = object({
11579
11622
  var MutationFilterSchema = object({
11580
11623
  where: record(string(), unknown()).optional(),
11581
11624
  whereIn: record(string(), array(unknown())).optional(),
11582
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11625
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11626
+ whereNot: record(string(), unknown()).optional()
11583
11627
  });
11584
11628
  /** A single stored record: `{ id, data }`. */
11585
11629
  var SettingsRecordSchema = object({
@@ -13745,6 +13789,17 @@ var LlmImageSchema = object({
13745
13789
  bytes: _instanceof(Uint8Array),
13746
13790
  mimeType: string()
13747
13791
  });
13792
+ /**
13793
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
13794
+ * the flag is what a consumer table flips, the count is what the operator tunes.
13795
+ * A retry doubles the wall time of a call, so the two gates that run inside a
13796
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
13797
+ */
13798
+ var LlmRetryPolicySchema = object({
13799
+ enabled: boolean().default(false),
13800
+ /** Total attempts INCLUDING the first. 1 = no retry. */
13801
+ maxAttempts: number().int().min(1).max(5).default(1)
13802
+ });
13748
13803
  var LlmGenerateBaseInputSchema = object({
13749
13804
  /** Collection routing (the notification-output posture). */
13750
13805
  addonId: string().optional(),
@@ -13759,7 +13814,28 @@ var LlmGenerateBaseInputSchema = object({
13759
13814
  jsonSchema: record(string(), unknown()).optional(),
13760
13815
  /** Per-call override of the profile default. */
13761
13816
  maxTokens: number().int().positive().optional(),
13762
- temperature: number().optional()
13817
+ temperature: number().optional(),
13818
+ /** Per-call override of the profile default (nucleus sampling). */
13819
+ topP: number().min(0).max(1).optional(),
13820
+ /** Per-call override of the profile default (top-k sampling). */
13821
+ topK: number().int().positive().optional(),
13822
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
13823
+ timeoutMs: number().int().positive().optional(),
13824
+ /** Per-call override; beats both the consumer table and the profile. */
13825
+ retry: LlmRetryPolicySchema.optional(),
13826
+ /**
13827
+ * Caller-minted id that makes this generation CANCELLABLE.
13828
+ *
13829
+ * Without it a caller that stops waiting cannot stop the work: the gates race
13830
+ * the call against 8 s and free their own slot when the timer wins, while the
13831
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
13832
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
13833
+ * not generations, and the real load is unbounded.
13834
+ *
13835
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
13836
+ * `llm.cancel({ requestId })` tears the socket down.
13837
+ */
13838
+ requestId: string().optional()
13763
13839
  });
13764
13840
  /**
13765
13841
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -13772,6 +13848,18 @@ var LlmGenerateBaseInputSchema = object({
13772
13848
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
13773
13849
  * watchdog — operator decision #3).
13774
13850
  */
13851
+ /**
13852
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
13853
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
13854
+ * REF rather than looked up at install time, so what the operator approved in
13855
+ * the preview is exactly what the node downloads.
13856
+ */
13857
+ var ManagedModelExtraFileSchema = object({
13858
+ url: string(),
13859
+ filename: string(),
13860
+ sizeBytes: number(),
13861
+ sha256: string().optional()
13862
+ });
13775
13863
  var ManagedModelRefSchema = discriminatedUnion("kind", [
13776
13864
  object({
13777
13865
  kind: literal("catalog"),
@@ -13780,7 +13868,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
13780
13868
  object({
13781
13869
  kind: literal("url"),
13782
13870
  url: string(),
13783
- sha256: string().optional()
13871
+ sha256: string().optional(),
13872
+ /** Picker/status label; the file basename when absent. */
13873
+ label: string().optional(),
13874
+ sizeBytes: number().optional(),
13875
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
13784
13876
  }),
13785
13877
  object({
13786
13878
  kind: literal("path"),
@@ -13798,13 +13890,82 @@ var ManagedRuntimeConfigSchema = object({
13798
13890
  gpuLayers: number().int().default(0),
13799
13891
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
13800
13892
  threads: number().int().optional(),
13801
- /** Concurrent slots. */
13893
+ /** Concurrent slots (`--parallel`). */
13802
13894
  parallel: number().int().default(1),
13895
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
13896
+ batchSize: number().int().positive().optional(),
13897
+ /** Physical batch / micro-batch (`-ub`). */
13898
+ ubatchSize: number().int().positive().optional(),
13899
+ /**
13900
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
13901
+ * is a no-op elsewhere, so it is offered rather than assumed.
13902
+ */
13903
+ flashAttention: boolean().default(false),
13904
+ /**
13905
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
13906
+ * inference. Costs the full model size in resident memory — which is exactly
13907
+ * what the RAM budget is counting.
13908
+ */
13909
+ mlock: boolean().default(false),
13910
+ /**
13911
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
13912
+ * start, but avoids the page-fault stalls a network or spinning-disk model
13913
+ * store produces on every first token.
13914
+ */
13915
+ noMmap: boolean().default(false),
13916
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
13917
+ * cheapest way to fit a longer context in the same RAM. */
13918
+ cacheTypeK: _enum([
13919
+ "f32",
13920
+ "f16",
13921
+ "q8_0",
13922
+ "q5_1",
13923
+ "q5_0",
13924
+ "q4_1",
13925
+ "q4_0"
13926
+ ]).optional(),
13927
+ cacheTypeV: _enum([
13928
+ "f32",
13929
+ "f16",
13930
+ "q8_0",
13931
+ "q5_1",
13932
+ "q5_0",
13933
+ "q4_1",
13934
+ "q4_0"
13935
+ ]).optional(),
13936
+ /**
13937
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
13938
+ * (which most vision chat templates need and some language-only models
13939
+ * dislike), `--cont-batching`, `--rope-scaling`, …
13940
+ *
13941
+ * It is NOT a second place to set the flags above. A token that collides
13942
+ * with a typed field is REJECTED at start, naming the field that owns it
13943
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
13944
+ * the "two switches that disagree" failure this repo has already shipped
13945
+ * twice (D62).
13946
+ */
13947
+ extraArgs: array(string()).default([]),
13803
13948
  /** Else lazy: first generate boots it. */
13804
13949
  autoStart: boolean().default(false),
13805
13950
  /** 0 = never; frees RAM after quiet periods. */
13806
13951
  idleStopMinutes: number().int().default(30)
13807
13952
  });
13953
+ /**
13954
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
13955
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
13956
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
13957
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
13958
+ */
13959
+ var LlmDownloadProgressSchema = object({
13960
+ phase: _enum(["downloading", "verifying"]),
13961
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
13962
+ file: string(),
13963
+ fileIndex: number().int(),
13964
+ fileCount: number().int(),
13965
+ /** Across the WHOLE install, not the current file. */
13966
+ downloadedBytes: number(),
13967
+ totalBytes: number().optional()
13968
+ });
13808
13969
  var LlmRuntimeStatusSchema = object({
13809
13970
  /** Status is ALWAYS node-qualified. */
13810
13971
  nodeId: string(),
@@ -13821,6 +13982,8 @@ var LlmRuntimeStatusSchema = object({
13821
13982
  modelPath: string().optional(),
13822
13983
  modelId: string().optional(),
13823
13984
  downloadProgress: number().min(0).max(1).optional(),
13985
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
13986
+ download: LlmDownloadProgressSchema.optional(),
13824
13987
  lastError: string().optional(),
13825
13988
  crashesInWindow: number(),
13826
13989
  /** Child RSS (sampled best-effort). */
@@ -13831,7 +13994,14 @@ var LlmNodeModelSchema = object({
13831
13994
  file: string(),
13832
13995
  sizeBytes: number(),
13833
13996
  catalogId: string().optional(),
13834
- installedAt: number().optional()
13997
+ installedAt: number().optional(),
13998
+ /**
13999
+ * Absolute path on the node. Present so a file that is on disk but matches
14000
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
14001
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
14002
+ * it the picker could list such a file and do nothing with it.
14003
+ */
14004
+ path: string().optional()
13835
14005
  });
13836
14006
  var LlmRuntimeDiskUsageSchema = object({
13837
14007
  nodeId: string(),
@@ -13902,10 +14072,47 @@ var LlmProfileSchema = object({
13902
14072
  baseUrl: string().optional(),
13903
14073
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
13904
14074
  apiKey: string().optional(),
14075
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
14076
+ * degraded to text — that shipped once and produced a confident answer to a
14077
+ * question about a picture nobody sent. */
13905
14078
  supportsVision: boolean(),
13906
14079
  temperature: number().min(0).max(2).optional(),
14080
+ /** Nucleus sampling. Every wire we speak has it. */
14081
+ topP: number().min(0).max(1).optional(),
14082
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
14083
+ * wire does, and the client drops it there (measured: the request body gets
14084
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
14085
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
14086
+ topK: number().int().positive().optional(),
13907
14087
  maxTokens: number().int().positive().optional(),
14088
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
14089
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
14090
+ * the model with, so it is the one field that changes a PROCESS. */
14091
+ contextLength: number().int().positive().optional(),
14092
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
14093
+ * two system prompts fighting is worse than either alone). */
14094
+ systemPrompt: string().optional(),
14095
+ /** Total generation bound — the only one a unary call has. */
13908
14096
  timeoutMs: number().int().positive().default(6e4),
14097
+ /** The TCP handshake only — "is the port even open". NOT the wait for
14098
+ * response headers: on the LM Studio / llama-server wire those are written
14099
+ * once the model has finished loading, so they belong to the bound below. */
14100
+ connectTimeoutMs: number().int().positive().default(1e4),
14101
+ /** Accepted, but no output yet — response headers included, because a cold
14102
+ * GPU load is exactly what happens before them. */
14103
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
14104
+ /** Output started then stopped. */
14105
+ idleTimeoutMs: number().int().positive().default(6e4),
14106
+ /** Profile-level default. The per-consumer table and a per-call override
14107
+ * both beat it — see `resolveRetryPolicy`. */
14108
+ retry: LlmRetryPolicySchema.default({
14109
+ enabled: false,
14110
+ maxAttempts: 1
14111
+ }),
14112
+ /** Whether this profile may use tools. The tool-call plumbing rides the
14113
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
14114
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
14115
+ toolsEnabled: boolean().default(false),
13909
14116
  extraHeaders: record(string(), string()).optional(),
13910
14117
  /** kind === 'managed-local' only (spec §4). */
13911
14118
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -13955,6 +14162,36 @@ var ManagedModelCatalogEntrySchema = object({
13955
14162
  /** Vision models: companion projector file. */
13956
14163
  mmprojUrl: string().optional()
13957
14164
  });
14165
+ /**
14166
+ * The outcome of turning one operator-typed Hugging Face reference into a
14167
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
14168
+ * I will not pick for you" is a normal answer the UI has to render, not an
14169
+ * exception.
14170
+ *
14171
+ * `candidates` is the whole reason the refusal is usable — every string in it
14172
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
14173
+ */
14174
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
14175
+ ok: literal(true),
14176
+ /** Ready to hand to `installModel` unchanged. */
14177
+ model: ManagedModelRefSchema,
14178
+ label: string(),
14179
+ repo: string(),
14180
+ quantization: string(),
14181
+ purpose: _enum(["text", "vision"]),
14182
+ totalBytes: number(),
14183
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
14184
+ * see that 0.9 GB of it is a projector they did not name. */
14185
+ extraFilenames: array(string())
14186
+ }), object({
14187
+ ok: literal(false),
14188
+ code: string(),
14189
+ message: string(),
14190
+ candidates: array(string()).optional(),
14191
+ /** Set when the refusal was only the ceiling: re-calling with
14192
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
14193
+ requiredBytes: number().optional()
14194
+ })]);
13958
14195
  var LlmRuntimeNodeSchema = object({
13959
14196
  nodeId: string(),
13960
14197
  reachable: boolean(),
@@ -13978,6 +14215,17 @@ var llmCapability = {
13978
14215
  methods: {
13979
14216
  generate: method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
13980
14217
  generateVision: method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
14218
+ /**
14219
+ * Stop a generation started with a `requestId`.
14220
+ *
14221
+ * Idempotent and always successful: cancelling an id that already finished,
14222
+ * never existed, or was cancelled a moment ago is a no-op. A caller that has
14223
+ * given up must never have to handle an error from giving up.
14224
+ */
14225
+ cancel: method(object({
14226
+ addonId: string().optional(),
14227
+ requestId: string()
14228
+ }), _void(), { kind: "mutation" }),
13981
14229
  listProfileKinds: method(object({}), array(LlmProfileKindDescriptorSchema)),
13982
14230
  listProfiles: method(object({}), array(LlmProfileSchema)),
13983
14231
  upsertProfile: method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
@@ -14011,6 +14259,25 @@ var llmCapability = {
14011
14259
  listModelCatalog: method(object({}), array(ManagedModelCatalogEntrySchema)),
14012
14260
  listRuntimeNodes: method(object({}), array(LlmRuntimeNodeSchema)),
14013
14261
  listNodeModels: method(object({ nodeId: string() }), array(LlmNodeModelSchema)),
14262
+ /**
14263
+ * One typed Hugging Face reference → a pinned, verified `ManagedModelRef`.
14264
+ *
14265
+ * Runs on the HUB, not on the target node: resolution needs egress to
14266
+ * huggingface.co, and an agent that cannot reach it still installs fine
14267
+ * through the model-distributor relay. Nothing is downloaded here — this is
14268
+ * a tree read plus a HEAD, so the operator sees the size, the quantization
14269
+ * and the mmproj BEFORE approving a multi-GB pull.
14270
+ */
14271
+ resolveModelRef: method(object({
14272
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
14273
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
14274
+ ref: string(),
14275
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
14276
+ maxBytes: number().positive().optional()
14277
+ }), HfModelResolutionSchema, {
14278
+ kind: "mutation",
14279
+ auth: "admin"
14280
+ }),
14014
14281
  installModel: method(object({
14015
14282
  nodeId: string(),
14016
14283
  model: ManagedModelRefSchema
@@ -14718,11 +14985,33 @@ var NotificationFormatSchema = _enum([
14718
14985
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
14719
14986
  * renderer's icon set; "acknowledge" survives an adapter that draws it
14720
14987
  * differently.
14988
+ *
14989
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
14990
+ *
14991
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
14992
+ * the whole set onto its own renderer's vocabulary through a
14993
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
14994
+ * fallback, so adding a member here fails every adapter's build until someone
14995
+ * decides its glyph, which is the only place that decision can be made
14996
+ * honestly.
14997
+ *
14998
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
14999
+ * `disarm` straight through; iOS feeds that string to
15000
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
15001
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
15002
+ * mapping, and "the field is documented" is not "the value renders".
15003
+ *
15004
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
15005
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
15006
+ * so an addon that emits a token the running hub does not know does not lose an
15007
+ * icon — its whole `send` fails Zod validation and the notification never
15008
+ * arrives. Never emit a new token from an addon before the train carrying it.
14721
15009
  */
14722
15010
  var NotificationActionIconSchema = _enum([
14723
15011
  "acknowledge",
14724
15012
  "dismiss",
14725
15013
  "silence",
15014
+ "snooze",
14726
15015
  "view",
14727
15016
  "play",
14728
15017
  "open",
@@ -14730,9 +15019,13 @@ var NotificationActionIconSchema = _enum([
14730
15019
  "lock",
14731
15020
  "unlock",
14732
15021
  "arm",
15022
+ "arm-home",
15023
+ "arm-away",
15024
+ "arm-night",
14733
15025
  "disarm",
14734
15026
  "light",
14735
- "alert"
15027
+ "alert",
15028
+ "camera"
14736
15029
  ]);
14737
15030
  /** A single tap-through action button. */
14738
15031
  var NotificationActionSchema = object({
@@ -14946,6 +15239,24 @@ var notificationOutputCapability = {
14946
15239
  }), _void(), { kind: "mutation" })
14947
15240
  }
14948
15241
  };
15242
+ new Set([
15243
+ {
15244
+ id: "person",
15245
+ name: "Person"
15246
+ },
15247
+ {
15248
+ id: "vehicle",
15249
+ name: "Vehicle"
15250
+ },
15251
+ {
15252
+ id: "animal",
15253
+ name: "Animal"
15254
+ },
15255
+ {
15256
+ id: "package",
15257
+ name: "Package"
15258
+ }
15259
+ ].map((l) => l.id));
14949
15260
  var COCO_TO_MACRO = {
14950
15261
  mapping: {
14951
15262
  person: "person",
@@ -15776,11 +16087,15 @@ var NcSystemEventKindSchema = _enum([
15776
16087
  "stream-offline",
15777
16088
  "node-online",
15778
16089
  "node-offline",
16090
+ "node-inference-unavailable",
16091
+ "detection-blind",
15779
16092
  "addon-update-available",
15780
16093
  "server-update-available",
15781
16094
  "alarm-triggered",
15782
16095
  "alarm-armed",
15783
16096
  "alarm-disarmed",
16097
+ "alarm-arming",
16098
+ "alarm-arm-refused",
15784
16099
  "camera-online",
15785
16100
  "camera-offline",
15786
16101
  "camera-disabled",
@@ -15835,7 +16150,16 @@ var NcScheduleSchema = object({
15835
16150
  });
15836
16151
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
15837
16152
  var NcPlateMatcherSchema = object({
15838
- values: array(string().min(1)).min(1),
16153
+ /**
16154
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
16155
+ * pipeline could read** — the plate half of "no selection = no narrowing",
16156
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
16157
+ * rather than merely seen. A subject carrying no plate still fails.
16158
+ *
16159
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
16160
+ * ever persisted an empty list, so widening it cannot change an existing rule.
16161
+ */
16162
+ values: array(string().min(1)),
15839
16163
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
15840
16164
  maxDistance: number().int().min(0).max(3).default(1)
15841
16165
  });
@@ -15869,28 +16193,36 @@ var NcOccupancyConditionSchema = object({
15869
16193
  /**
15870
16194
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
15871
16195
  *
15872
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
15873
- * reference notifier uses, so an operator moving between them re-uses what
15874
- * they already know): a rule matches when, over a sampling window of
15875
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
15876
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
15877
- *
15878
- * - `dbThreshold` its level is at or above this many dBFS (see
15879
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
15880
- * - `labels` the classifier put at least one of these labels on it.
15881
- *
15882
- * Both are OPTIONAL and independent, which is the point of the shape: a
15883
- * loudness rule ("something loud at 3am") needs no model to be right, and a
15884
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
15885
- * is given** a window in which every sample is trivially a hit would fire on
15886
- * silence, so the engine refuses such a condition rather than notifying on
15887
- * nothing (the schema cannot express "at least one of" without becoming a
15888
- * ZodEffects the cap path would have to special-case).
15889
- *
15890
- * `hitPercent` is over the samples the window actually HOLDS, and the window
15891
- * must be FULL before it can match a window that has been open for two
15892
- * seconds of its ten is 100% of nothing, and firing on it would make
15893
- * `samplingSeconds` decorative.
16196
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
16197
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
16198
+ * there is no second switch that can disagree with the first and every rule
16199
+ * authored before the decision migrates for free (`audioModeOf`):
16200
+ *
16201
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
16202
+ * classifier labels with one of them. No window, no percentage:
16203
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
16204
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
16205
+ * the analyzer's (`classificationMinScore`, per device) — a label only
16206
+ * reaches this condition if the classifier was already confident enough.
16207
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
16208
+ * the condition: at least `hitPercent`% of the samples over
16209
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
16210
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
16211
+ * must be FULL before it can match a window open for two of its ten
16212
+ * seconds is 100% of nothing.
16213
+ *
16214
+ * **Why label mode has no window.** It had one, and it never fired: the
16215
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
16216
+ * of them per episode, even through continuous crying. The measured maximum
16217
+ * `hitPercent` over the whole live history was 40 — under the shipped default
16218
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
16219
+ * the wrong question to ask of a sparse classifier.
16220
+ *
16221
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
16222
+ * and the rule would fire on silence. The schema cannot express "exactly one
16223
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
16224
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
16225
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
15894
16226
  *
15895
16227
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
15896
16228
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -15898,13 +16230,13 @@ var NcOccupancyConditionSchema = object({
15898
16230
  * an operator who typed `dog` mean the same thing.
15899
16231
  */
15900
16232
  var NcAudioConditionSchema = object({
15901
- /** Audio macro labels; absent = any sound (level-only rule). */
16233
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
15902
16234
  labels: array(string().min(1)).min(1).optional(),
15903
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
16235
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
15904
16236
  dbThreshold: number().min(-96).max(0).optional(),
15905
- /** Percentage of the window's samples that must be hits (1–100). */
16237
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
15906
16238
  hitPercent: number().int().min(1).max(100).default(60),
15907
- /** Length of the sampling window in seconds. */
16239
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
15908
16240
  samplingSeconds: number().int().min(1).max(300).default(10)
15909
16241
  });
15910
16242
  /**
@@ -16042,13 +16374,81 @@ var NcRuleActionsSchema = object({
16042
16374
  */
16043
16375
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
16044
16376
  });
16377
+ /**
16378
+ * "This rule applies only while `deviceId` is in one of `states`."
16379
+ *
16380
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
16381
+ * `on`/`off` for a switch — not a normalised set, because normalising would
16382
+ * make the condition lie about devices whose states have no equivalent.
16383
+ *
16384
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
16385
+ * condition that fired on "I could not read it" would be worse than no gate.
16386
+ */
16387
+ var NcDeviceStateConditionSchema = object({
16388
+ deviceId: number().int(),
16389
+ /** Any of these matches. */
16390
+ states: array(string().min(1)).min(1)
16391
+ });
16392
+ /**
16393
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
16394
+ *
16395
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
16396
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
16397
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
16398
+ * already has a trigger ("tell me about a person at the front door, but only
16399
+ * while the bin is still out"). That is why it composes with every delivery
16400
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
16401
+ * kind exist for it — see D159.
16402
+ *
16403
+ * ── Identity ───────────────────────────────────────────────────────────────
16404
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
16405
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
16406
+ * carried as a HINT for the editor and for the log line, never as part of the
16407
+ * lookup key: a rule whose hint drifted must still gate correctly.
16408
+ *
16409
+ * ── Which boolean ──────────────────────────────────────────────────────────
16410
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
16411
+ * already declares which boolean drives notification rules, and a second knob
16412
+ * that could disagree with it is exactly the D62 failure. Set it only to
16413
+ * override one rule against the scene's own default.
16414
+ *
16415
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
16416
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
16417
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
16418
+ * evidence, in either direction.
16419
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
16420
+ * The latch is a durable fact about the past ("it has diverged since I armed
16421
+ * it"), so a camera that has gone dark does not clear it — that is the whole
16422
+ * reason the operator asked for a latch.
16423
+ *
16424
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
16425
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
16426
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
16427
+ * said out loud in the log rather than dropped in silence.
16428
+ */
16429
+ var NcSceneConditionSchema = object({
16430
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
16431
+ sceneId: string().min(1),
16432
+ /** The camera the scene lives on. A hint for the editor and the log line. */
16433
+ deviceId: number().int().optional(),
16434
+ /** The state the scene must be in for the rule to fire. */
16435
+ requiredState: _enum(["matched", "diverged"]),
16436
+ /**
16437
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
16438
+ * scene's own `emit` field, which is the only place that decision belongs.
16439
+ */
16440
+ latched: boolean().optional()
16441
+ });
16045
16442
  var NcConditionsSchema = object({
16046
16443
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
16047
- deviceState: object({
16048
- deviceId: number().int(),
16049
- /** Any of these matches. */
16050
- states: array(string().min(1)).min(1)
16051
- }).optional(),
16444
+ deviceState: NcDeviceStateConditionSchema.optional(),
16445
+ /**
16446
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
16447
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
16448
+ * unlike `occupancy`/`audio` it discriminates nothing. See
16449
+ * {@link NcSceneCondition} and D159.
16450
+ */
16451
+ scene: NcSceneConditionSchema.optional(),
16052
16452
  /** Device scope — absent = all devices. */
16053
16453
  devices: array(number()).optional(),
16054
16454
  /** Detector class names (any overlap with the record's class set). */
@@ -16074,18 +16474,47 @@ var NcConditionsSchema = object({
16074
16474
  */
16075
16475
  labelEquals: array(string().min(1)).optional(),
16076
16476
  /**
16077
- * Identity matcher. P1 boundary: matched against the record's collapsed
16078
- * `label` (the identity display name propagated by the face pipeline) —
16079
- * identity-ID matching rides in P2 when identity ids reach the record.
16477
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
16478
+ * is about recognised people at all.
16479
+ *
16480
+ * Three states, and the empty one is the point:
16481
+ *
16482
+ * | value | meaning |
16483
+ * | --- | --- |
16484
+ * | absent | the rule does not care who it is; an unrecognised person matches |
16485
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
16486
+ * | a list | only these identities |
16487
+ *
16488
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
16489
+ * `devices` list is every device), applied one level down: the operator has
16490
+ * turned the face scope ON and narrowed it to nothing, which is every known
16491
+ * face. No second field states the same thing — a switch that can disagree
16492
+ * with the list under it is worse than no switch (D62).
16493
+ *
16494
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
16495
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
16496
+ * the operator fixed the spelling. The id reaches the record on
16497
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
16498
+ * `{{label}}` renders.
16499
+ *
16500
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
16501
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
16502
+ * for is left as it stands and reported, never dropped. The engine also
16503
+ * accepts a display-name hit as a compatibility leg, so a rule whose
16504
+ * migration could not resolve keeps matching exactly what it matched before.
16080
16505
  */
16081
16506
  identities: array(string().min(1)).optional(),
16082
- /** Fuzzy plate matcher against the record's `label` (plate text). */
16507
+ /**
16508
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
16509
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
16510
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
16511
+ */
16083
16512
  plates: NcPlateMatcherSchema.optional(),
16084
16513
  /**
16085
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
16086
- * Same P1 boundary: matched against the record's collapsed `label` (the
16087
- * identity display name). A record with NO label passes (nothing to
16088
- * exclude), unlike the include variant which fails on an absent label.
16514
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
16515
+ * the same id members and the same lazy name→id migration. A record with NO
16516
+ * identity passes (nothing to exclude), unlike the include variant which
16517
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
16089
16518
  */
16090
16519
  identitiesExclude: array(string().min(1)).optional(),
16091
16520
  /**
@@ -16477,7 +16906,80 @@ var NcRuleInputSchema = object({
16477
16906
  * a rule that predates the gate must keep delivering byte-for-byte as it
16478
16907
  * did, and absent is the only way to say that without a migration.
16479
16908
  */
16480
- confirm: NcConfirmSchema.optional()
16909
+ confirm: NcConfirmSchema.optional(),
16910
+ /**
16911
+ * WAIT for face/plate recognition before saying anything.
16912
+ *
16913
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
16914
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
16915
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
16916
+ * measured on this hub — and an `immediate` rule enqueues on the first object
16917
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
16918
+ * immediate path, and no amount of media re-resolution fixes a sentence.
16919
+ *
16920
+ * Only two honest answers exist, and this flag picks between them. It has
16921
+ * effect ONLY on a rule that declares a recognition scope
16922
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
16923
+ * other rule there is nothing to wait for and the flag is inert.
16924
+ *
16925
+ * | value | what happens |
16926
+ * | --- | --- |
16927
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
16928
+ * | 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) |
16929
+ *
16930
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16931
+ * on the addon cap path, and absent has to keep meaning exactly what every
16932
+ * rule authored before this field meant.
16933
+ *
16934
+ * The cost of `true` is stated here because the editor states it too: a rule
16935
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
16936
+ * tests every zone the track visited and a `crossing` condition can no longer
16937
+ * be satisfied, because a closed track carries no crossing.
16938
+ */
16939
+ waitForEnhancement: boolean().optional(),
16940
+ /**
16941
+ * GROUP a burst of subjects into ONE notification that grows.
16942
+ *
16943
+ * Seconds of quiet after the last matching subject before the burst is
16944
+ * considered over. While it is open, the first subject enqueues immediately —
16945
+ * **exactly as today, with no added latency** — and every real growth (a new
16946
+ * subject, or a name confirmed on one already in it) REPLACES that
16947
+ * notification with an updated one naming everybody. The push carries the
16948
+ * group's own coalescing tag, so the phone replaces rather than stacks.
16949
+ *
16950
+ * `0` / absent = off, and off is today's behaviour byte for byte.
16951
+ *
16952
+ * ### Why an idle cutoff and not a window
16953
+ *
16954
+ * The measured seven-person arrival on device 590 spans 110 s with every
16955
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
16956
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
16957
+ * 30 is Frigate's shipped value for the same decision.
16958
+ *
16959
+ * ### What it replaces
16960
+ *
16961
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
16962
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
16963
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
16964
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
16965
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
16966
+ * budget over GROUPS — which is what it always meant — and a growth is never
16967
+ * throttled by the window its own first member spent.
16968
+ *
16969
+ * ### Interaction with {@link waitForEnhancement}
16970
+ *
16971
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
16972
+ * TRACK CLOSE, so with both set the group is opened by the first member to
16973
+ * CLOSE — already carrying its name — and grows as later members close. That
16974
+ * is later, and complete. With grouping alone the group opens on the first
16975
+ * object event and picks up names as they are confirmed, through the growth
16976
+ * path. Neither combination fires twice for one subject.
16977
+ *
16978
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
16979
+ * on the addon cap path, so absent must keep meaning what it meant before this
16980
+ * field existed.
16981
+ */
16982
+ groupIdleSec: number().int().min(0).max(600).optional()
16481
16983
  });
16482
16984
  /**
16483
16985
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -16584,6 +17086,7 @@ var NcConditionDescriptorSchema = object({
16584
17086
  "occupancy",
16585
17087
  "audio",
16586
17088
  "deviceState",
17089
+ "scene",
16587
17090
  "systemEvent"
16588
17091
  ]),
16589
17092
  operator: _enum([
@@ -16664,6 +17167,14 @@ var NC_CONDITION_CATALOG = [
16664
17167
  value: "node-offline",
16665
17168
  label: "Node offline"
16666
17169
  },
17170
+ {
17171
+ value: "node-inference-unavailable",
17172
+ label: "Node has no usable inference device"
17173
+ },
17174
+ {
17175
+ value: "detection-blind",
17176
+ label: "Camera detecting nothing"
17177
+ },
16667
17178
  {
16668
17179
  value: "addon-update-available",
16669
17180
  label: "Addon update available"
@@ -16673,13 +17184,17 @@ var NC_CONDITION_CATALOG = [
16673
17184
  label: "Server update available"
16674
17185
  },
16675
17186
  {
16676
- value: "alarm-triggered",
16677
- label: "Alarm triggered"
17187
+ value: "alarm-arming",
17188
+ label: "Alarm arming (exit delay)"
16678
17189
  },
16679
17190
  {
16680
17191
  value: "alarm-armed",
16681
17192
  label: "Alarm armed"
16682
17193
  },
17194
+ {
17195
+ value: "alarm-triggered",
17196
+ label: "Alarm triggered"
17197
+ },
16683
17198
  {
16684
17199
  value: "alarm-disarmed",
16685
17200
  label: "Alarm disarmed"
@@ -16817,32 +17332,32 @@ var NC_CONDITION_CATALOG = [
16817
17332
  {
16818
17333
  id: "identities",
16819
17334
  group: "label",
16820
- label: "Identities",
17335
+ label: "Known faces",
16821
17336
  valueType: "stringList",
16822
17337
  operator: "in",
16823
17338
  appliesTo: ["immediate", "track-end"],
16824
17339
  phase: "P1",
16825
- description: "P1: matched against the identity display name on the record label."
17340
+ 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."
16826
17341
  },
16827
17342
  {
16828
17343
  id: "plates",
16829
17344
  group: "label",
16830
- label: "License plates",
17345
+ label: "Known plates",
16831
17346
  valueType: "plateMatcher",
16832
17347
  operator: "fuzzyIn",
16833
17348
  appliesTo: ["immediate", "track-end"],
16834
17349
  phase: "P1",
16835
- description: "Levenshtein-tolerant match against the plate text."
17350
+ 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."
16836
17351
  },
16837
17352
  {
16838
17353
  id: "identitiesExclude",
16839
17354
  group: "label",
16840
- label: "Excluded identities",
17355
+ label: "Excluded faces",
16841
17356
  valueType: "stringList",
16842
17357
  operator: "notIn",
16843
17358
  appliesTo: ["immediate", "track-end"],
16844
17359
  phase: "P1",
16845
- description: "Veto by identity display name (mirror of Identities; absent label passes)."
17360
+ description: "Veto by identity (mirror of Known faces, same gallery ids). A subject nobody recognised passes — there is nothing to exclude."
16846
17361
  },
16847
17362
  {
16848
17363
  id: "minLabelConfidence",
@@ -16926,6 +17441,21 @@ var NC_CONDITION_CATALOG = [
16926
17441
  phase: "P2",
16927
17442
  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."
16928
17443
  },
17444
+ {
17445
+ id: "scene",
17446
+ group: "scope",
17447
+ label: "Scene state",
17448
+ valueType: "scene",
17449
+ operator: "in",
17450
+ appliesTo: [
17451
+ "immediate",
17452
+ "track-end",
17453
+ "device-event",
17454
+ "package-event"
17455
+ ],
17456
+ phase: "P3",
17457
+ 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."
17458
+ },
16929
17459
  {
16930
17460
  id: "sensorKinds",
16931
17461
  group: "device",
@@ -17491,7 +18021,87 @@ var MethodAccessSchema = _enum([
17491
18021
  var AllowedProviderSchema = union([literal("*"), array(string())]);
17492
18022
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
17493
18023
  var CapScopeSchema = _enum(["device", "system"]);
17494
- var TokenScopeSchema = discriminatedUnion("type", [
18024
+ /**
18025
+ * DeviceSelector (scope model v3 — 2026-08-12).
18026
+ *
18027
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
18028
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
18029
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
18030
+ * AFTER the grant was minted — no re-grant, no re-login.
18031
+ *
18032
+ * - `all` — every device in the deployment. The broad viewer/operator
18033
+ * lever without a `category` grant (a `category` grant also covers device
18034
+ * caps that carry no deviceId; `all` is specifically the device set).
18035
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
18036
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
18037
+ * is NOT covered until the grant is edited.
18038
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
18039
+ * DYNAMIC. A device that changes type, or a new device of the type,
18040
+ * re-resolves on the next request.
18041
+ * - `locations` — every device whose operator-assigned `location` label is
18042
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
18043
+ * null/unset location matches NO `locations` selector.
18044
+ */
18045
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
18046
+ object({ kind: literal("all") }),
18047
+ object({
18048
+ kind: literal("ids"),
18049
+ ids: array(number().int()).min(1)
18050
+ }),
18051
+ object({
18052
+ kind: literal("types"),
18053
+ types: array(_enum(DeviceType)).min(1)
18054
+ }),
18055
+ object({
18056
+ kind: literal("locations"),
18057
+ locations: array(string().min(1)).min(1)
18058
+ })
18059
+ ]);
18060
+ var DeviceTokenScopeSchema = object({
18061
+ type: literal("device"),
18062
+ /** The device SET this grant covers — resolved against the live fleet. */
18063
+ selector: DeviceSelectorSchema,
18064
+ access: array(MethodAccessSchema).min(1),
18065
+ /**
18066
+ * Whether a grant on a PARENT device transparently covers its accessory
18067
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
18068
+ * Direction is parent → children ONLY.
18069
+ *
18070
+ * Absent → the matcher DERIVES it from the access flavour: `view`
18071
+ * inherits (a camera viewer sees the camera's accessories), `create` /
18072
+ * `delete` do NOT (actuating/removing a child is an explicit act the
18073
+ * operator must grant on the child, not inherit from the parent). Set it
18074
+ * explicitly to override that default per grant.
18075
+ */
18076
+ includeLinked: boolean().optional()
18077
+ });
18078
+ /**
18079
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
18080
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
18081
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
18082
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
18083
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
18084
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
18085
+ * migration cannot reach a JWT already in a client's hands; parse-time
18086
+ * migration covers both without a flag day. No cast — the raw object is read
18087
+ * through `Reflect.get` (its static type is `unknown`).
18088
+ */
18089
+ function migrateLegacyTokenScope(raw) {
18090
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
18091
+ if (Reflect.get(raw, "type") !== "device") return raw;
18092
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
18093
+ const targets = Reflect.get(raw, "targets");
18094
+ if (!Array.isArray(targets)) return raw;
18095
+ return {
18096
+ type: "device",
18097
+ selector: {
18098
+ kind: "ids",
18099
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
18100
+ },
18101
+ access: Reflect.get(raw, "access")
18102
+ };
18103
+ }
18104
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
17495
18105
  object({
17496
18106
  type: literal("category"),
17497
18107
  target: CapScopeSchema,
@@ -17507,18 +18117,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
17507
18117
  target: string(),
17508
18118
  access: array(MethodAccessSchema).min(1)
17509
18119
  }),
17510
- object({
17511
- type: literal("device"),
17512
- /**
17513
- * One or more deviceIds (serialised as strings for wire-format
17514
- * consistency with the rest of the union). Matcher accepts if
17515
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
17516
- * of one scope-per-device when granting access to a set of cameras.
17517
- */
17518
- targets: array(string()).min(1),
17519
- access: array(MethodAccessSchema).min(1)
17520
- })
17521
- ]);
18120
+ DeviceTokenScopeSchema
18121
+ ]));
17522
18122
  object({
17523
18123
  id: string(),
17524
18124
  username: string(),
@@ -17841,7 +18441,7 @@ var TrackEnvelopeSchema = object({
17841
18441
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
17842
18442
  * keeps every scalar the list surfaces actually render (ids, class(es),
17843
18443
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
17844
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
18444
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
17845
18445
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
17846
18446
  * `getTrack`. Mirrors the event-store `projection` convention
17847
18447
  * (`getObjectEvents` et al.).
@@ -17977,7 +18577,21 @@ union([literal(1), literal(2)]);
17977
18577
  var LabelAttributionSchema = object({
17978
18578
  stepId: string(),
17979
18579
  modelId: string().optional(),
17980
- decidedAt: number()
18580
+ decidedAt: number(),
18581
+ /**
18582
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
18583
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
18584
+ *
18585
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
18586
+ * notification rule authored on "Gianluca" stopped matching the moment the
18587
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
18588
+ * the thing that does not move, so it is what a rule matches on
18589
+ * (`NcConditions.identities`) and the text is what a human is shown.
18590
+ *
18591
+ * Absent when the label names no gallery row — a plate the OCR read but no
18592
+ * vehicle claims, a sub-class, a species, any tier-1 value.
18593
+ */
18594
+ identityId: string().optional()
17981
18595
  });
17982
18596
  /**
17983
18597
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -18114,6 +18728,28 @@ var TrackSchema = object({
18114
18728
  * `=== true` and render nothing otherwise, never infer "no face".
18115
18729
  */
18116
18730
  hasFace: boolean().optional(),
18731
+ /**
18732
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
18733
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
18734
+ * so the passage is tracked once and as a VEHICLE.
18735
+ *
18736
+ * It exists because the fold's record was dishonest. D34 and the code both
18737
+ * said "the person is not lost — it is reported so both entities stay on the
18738
+ * record"; in fact the pair went into a per-processor RAM field behind an
18739
+ * accessor nobody called, and every durable surface said `vehicle`, full
18740
+ * stop. This is the composition note that makes the row true.
18741
+ *
18742
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
18743
+ * person" is not an answer to "what is this" — both label tiers would refuse
18744
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
18745
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
18746
+ * and a `person` rule still does not fire for someone cycling past.
18747
+ *
18748
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
18749
+ * the column, and every hub that predates the field, omits it. Test
18750
+ * `=== true` and render nothing otherwise — never infer "no rider".
18751
+ */
18752
+ hasRider: boolean().optional(),
18117
18753
  ...TrackFlagFields,
18118
18754
  ...TrackRetrainFields
18119
18755
  });
@@ -18463,7 +19099,10 @@ var RecentTracksQueryInput = object({
18463
19099
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
18464
19100
  cursor: string().optional(),
18465
19101
  /** See {@link TrackProjectionSchema}. Default `full`. */
18466
- projection: TrackProjectionSchema.optional()
19102
+ projection: TrackProjectionSchema.optional(),
19103
+ /** Include stationary-promoted rows (parked objects). Default false: the
19104
+ * feed lists passages; parking records live on the stationary registry. */
19105
+ includeStationary: boolean().optional()
18467
19106
  });
18468
19107
  var RecentTracksPageSchema = object({
18469
19108
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -18695,7 +19334,11 @@ var pipelineAnalyticsCapability = {
18695
19334
  zone: TrackZoneFilterSchema.optional(),
18696
19335
  /** See {@link TrackProjectionSchema}. Default `full` (backward
18697
19336
  * compatible — omitting the field keeps today's exact behaviour). */
18698
- projection: TrackProjectionSchema.optional()
19337
+ projection: TrackProjectionSchema.optional(),
19338
+ /** Include stationary-promoted rows (parked objects handed to the
19339
+ * stationary registry). Default false: the timeline lists passages,
19340
+ * not parking records (operator decision, 2026-08-15). */
19341
+ includeStationary: boolean().optional()
18699
19342
  }), array(TrackSchema).readonly()),
18700
19343
  /**
18701
19344
  * Batched cluster-wide track listing — ONE call for the events page /
@@ -19186,7 +19829,8 @@ var pipelineAnalyticsCapability = {
19186
19829
  }),
19187
19830
  getEventMedia: method(object({
19188
19831
  eventId: string(),
19189
- kind: MediaFileKindEnum.optional()
19832
+ kind: MediaFileKindEnum.optional(),
19833
+ deviceId: number()
19190
19834
  }), array(MediaFileSchema).readonly()),
19191
19835
  /** All media rows owned by a track. `kinds` narrows to a kind subset so a
19192
19836
  * client can fetch the SMALL display variants on open and pull the
@@ -19194,7 +19838,8 @@ var pipelineAnalyticsCapability = {
19194
19838
  * Absent ⇒ every kind (back-compat). */
19195
19839
  getTrackMedia: method(object({
19196
19840
  trackId: string(),
19197
- kinds: array(MediaFileKindEnum).optional()
19841
+ kinds: array(MediaFileKindEnum).optional(),
19842
+ deviceId: number()
19198
19843
  }), array(MediaFileSchema).readonly()),
19199
19844
  /**
19200
19845
  * What media a track HAS, without any of it.
@@ -19211,7 +19856,10 @@ var pipelineAnalyticsCapability = {
19211
19856
  * tell a full-resolution variant existed — and the affordance that opens it
19212
19857
  * would silently disappear.
19213
19858
  */
19214
- listTrackMedia: method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()),
19859
+ listTrackMedia: method(object({
19860
+ trackId: string(),
19861
+ deviceId: number()
19862
+ }), array(MediaFileInfoSchema).readonly()),
19215
19863
  /**
19216
19864
  * Search object events by text query using CLIP cosine similarity.
19217
19865
  * Encodes `text` via the `embedding-encoder` cap, queries the
@@ -20094,6 +20742,17 @@ var maxSessionHoldMsField = {
20094
20742
  default: 12e4,
20095
20743
  step: 5e3
20096
20744
  };
20745
+ /**
20746
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
20747
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
20748
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
20749
+ */
20750
+ var audioMotionWindowMsField = {
20751
+ min: 5e3,
20752
+ max: 6e5,
20753
+ default: 9e4,
20754
+ step: 5e3
20755
+ };
20097
20756
  var motionFpsField = {
20098
20757
  min: 1,
20099
20758
  max: 30,
@@ -20106,10 +20765,26 @@ var detectionFpsField = {
20106
20765
  default: 10,
20107
20766
  step: 1
20108
20767
  };
20768
+ /**
20769
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
20770
+ *
20771
+ * The recheck is now on by default (a parked car is invisible to occupancy
20772
+ * rules until the stationary registry has been rebuilt by motion, which after a
20773
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
20774
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
20775
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
20776
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
20777
+ *
20778
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
20779
+ * the host validates `attachCamera` against ITS copy of this schema, so a
20780
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
20781
+ * carrying the wider bound is installed everywhere. 300 is the widest value
20782
+ * that ships with an addon deploy.
20783
+ */
20109
20784
  var occupancyRecheckSecField = {
20110
20785
  min: 0,
20111
20786
  max: 300,
20112
- default: 30,
20787
+ default: 300,
20113
20788
  step: 5
20114
20789
  };
20115
20790
  var occupancyRecheckFramesField = {
@@ -20254,6 +20929,27 @@ var RunnerCameraConfigSchema = object({
20254
20929
  * resolved `CameraDetectionConfig`.
20255
20930
  */
20256
20931
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
20932
+ /**
20933
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
20934
+ * 'on-motion'` audio window, measured from the LAST motion event.
20935
+ *
20936
+ * This exists because the falling edge cannot be relied on. Camera-native
20937
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
20938
+ * its email-push SMTP path both emit `detected: true` and never the
20939
+ * counterpart); only the frame-diff analyzer emits falls. So on an
20940
+ * onboard-only camera a window that closed only on `detected: false` never
20941
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
20942
+ * battery camera, the one failure mode the mode exists to prevent.
20943
+ *
20944
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
20945
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
20946
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
20947
+ *
20948
+ * Not consumed by the runner: carried here so it shares the per-camera
20949
+ * device-settings surface with `motionCooldownMs`, exactly like
20950
+ * `maxSessionHoldMs`.
20951
+ */
20952
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
20257
20953
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
20258
20954
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
20259
20955
  motionStreamId: string(),
@@ -20307,15 +21003,21 @@ var RunnerCameraConfigSchema = object({
20307
21003
  */
20308
21004
  onboardMotionDrivesAnalyzer: boolean().default(true),
20309
21005
  /**
20310
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
20311
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
20312
- * this is off by default because the recheck re-subscribes a detection session
20313
- * every N seconds while `watching`, a major source of pull-decoder re-dial
20314
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
21006
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
21007
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
20315
21008
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
20316
21009
  * (and only render) when this is enabled.
20317
- */
20318
- occupancyRecheckEnabled: boolean().default(false),
21010
+ *
21011
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
21012
+ * recheck re-subscribes a detection session every N seconds while `watching`
21013
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
21014
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
21015
+ * object is counted only while the stationary registry holds it, and the
21016
+ * registry rebuilds from motion, so after a restart a parked car was invisible
21017
+ * to every occupancy rule until something moved in front of it. The churn is
21018
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
21019
+ */
21020
+ occupancyRecheckEnabled: boolean().default(true),
20319
21021
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20320
21022
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
20321
21023
  /**
@@ -20343,7 +21045,7 @@ var RunnerCameraConfigSchema = object({
20343
21045
  */
20344
21046
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20345
21047
  });
20346
- 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;
21048
+ 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;
20347
21049
  /**
20348
21050
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20349
21051
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -21937,7 +22639,16 @@ targets: array(object({
21937
22639
  /** A sleeping battery camera: the frame is deliberately stale and will
21938
22640
  * NOT refresh in the background. A surface should say so rather than
21939
22641
  * present it as current. */
21940
- sleeping: boolean()
22642
+ sleeping: boolean(),
22643
+ /** Current device state rendered over the cached frame. State images
22644
+ * remain authoritative even when their photographic background is
22645
+ * old; null means the link must carry a current camera frame. */
22646
+ stateReason: _enum([
22647
+ "disabled",
22648
+ "sleeping",
22649
+ "unreachable",
22650
+ "waking"
22651
+ ]).nullable()
21941
22652
  })))
21942
22653
  },
21943
22654
  status: {
@@ -24156,6 +24867,25 @@ var BatteryStatusSchema = object({
24156
24867
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
24157
24868
  lastUpdated: number(),
24158
24869
  /**
24870
+ * Ms epoch of the last time the device PROVED it was reachable — a
24871
+ * completed firmware round-trip, an observed wake, or an inbound push
24872
+ * (firmware event, email). `0`/absent = never since this slice was born.
24873
+ *
24874
+ * This is the ONLY input that separates "asleep" from "gone", and it is
24875
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
24876
+ * for the radio, because a poll that confirms reachability is the same
24877
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
24878
+ * single derivation every consumer must use; no surface computes its own.
24879
+ *
24880
+ * It is deliberately NOT a clock in the
24881
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
24882
+ * observation itself, and it is the only thing a 30-hour silence is
24883
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
24884
+ * Reolink provider) so a value that means "recently" cannot cost a
24885
+ * SQLite commit per round-trip.
24886
+ */
24887
+ lastContactAt: number().optional(),
24888
+ /**
24159
24889
  * True when the source is a BINARY low-battery indicator (HA
24160
24890
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
24161
24891
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -26620,7 +27350,41 @@ var intercomCapability = {
26620
27350
  status: {
26621
27351
  schema: IntercomStatusSchema,
26622
27352
  kind: "command-driven"
26623
- }
27353
+ },
27354
+ /**
27355
+ * Runtime-state slice — mirrored by the kernel.
27356
+ *
27357
+ * The cap declared `status` and nothing else, so the only two sources an
27358
+ * exporter has for a value — the `device.state-changed` slice event and the
27359
+ * `deviceState.getAllSnapshots` snapshot, both built from runtime state —
27360
+ * carried nothing for `intercom`. A talk-back entity in Home Assistant would
27361
+ * have been published and never received a value, which is the defect the
27362
+ * export's two classification tables exist to prevent (177 of them, once), so
27363
+ * `intercom` was excluded rather than exported.
27364
+ *
27365
+ * The shape is the status shape: there is exactly one truth about talk-back
27366
+ * and duplicating it into a second schema is how two halves of one capability
27367
+ * come to disagree. Providers write it through
27368
+ * `this.runtimeState.setCapState('intercom', …)` at the four points that open
27369
+ * and close a session, and seed it at registration so the slice exists before
27370
+ * the first session rather than after it.
27371
+ *
27372
+ * **Bound, named rather than hidden:** `talking` mirrors the provider's own
27373
+ * session handle, so a session torn down by a transport death that never
27374
+ * reaches `stopSession` / `endTalkSession` leaves it latched until the next
27375
+ * session or the next restart. That is why the slice is `session` and not
27376
+ * `restored` — a restart must never restore "talking".
27377
+ */
27378
+ runtimeState: IntercomStatusSchema,
27379
+ /**
27380
+ * Runtime-state durability: **session** — `talking` describes a live audio
27381
+ * session, which by definition does not survive the process that held it.
27382
+ * Restoring it would publish a camera as talking to nobody.
27383
+ *
27384
+ * See `RuntimeStateDurability`. Enforced by
27385
+ * `scripts/check-runtime-state-durability.ts`.
27386
+ */
27387
+ durability: "session"
26624
27388
  };
26625
27389
  /**
26626
27390
  * Robotic lawn-mower cap. Models HA `lawn_mower.*` entities — anything
@@ -29716,7 +30480,7 @@ var recordingCapability = {
29716
30480
  toMs: number()
29717
30481
  }), RecordingAvailabilitySchema, {
29718
30482
  kind: "query",
29719
- auth: "admin"
30483
+ auth: "protected"
29720
30484
  }),
29721
30485
  /** Which calendar days in [fromMs,toMs) have ≥1 recorded segment, bucketed by
29722
30486
  * the client's local day (`tzOffsetMinutes` = minutes to add to UTC). Drives
@@ -29728,7 +30492,7 @@ var recordingCapability = {
29728
30492
  tzOffsetMinutes: number()
29729
30493
  }), RecordingDaysSchema, {
29730
30494
  kind: "query",
29731
- auth: "admin"
30495
+ auth: "protected"
29732
30496
  }),
29733
30497
  getPlaybackManifest: method(object({
29734
30498
  deviceId: number(),
@@ -29736,7 +30500,7 @@ var recordingCapability = {
29736
30500
  toMs: number()
29737
30501
  }), RecordingManifestSchema, {
29738
30502
  kind: "query",
29739
- auth: "admin"
30503
+ auth: "protected"
29740
30504
  }),
29741
30505
  getStorageUsage: method(object({}), RecordingStorageUsageSchema, {
29742
30506
  kind: "query",
@@ -30144,14 +30908,77 @@ var recordingExportCapability = {
30144
30908
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
30145
30909
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
30146
30910
  *
30147
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
30148
- * derives the device-detail contribution; the provider carries NO hand-written
30149
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
30150
- * every hysteresis flip / availability change; consumers never poll.
30151
- */
30152
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
30153
- * be added without a wire break (matching falls back to any-condition refs). */
30911
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
30912
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
30913
+ * for the thing: a scene is a standing question about the property ("is the bin
30914
+ * still out"), and the operator's question is "which of my scenes have tripped",
30915
+ * across every camera at once — not "what does camera 617 think". Buried one
30916
+ * camera deep it also could not be found. The surface is now a top-level admin
30917
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
30918
+ * picks the camera inside the create flow, the same shape Events and Faces have.
30919
+ *
30920
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
30921
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
30922
+ * directions, so a registration nobody declares fails exactly as loudly as a
30923
+ * declaration nobody registers. The editor is imported directly by the page.
30924
+ *
30925
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
30926
+ * availability change; consumers never poll.
30927
+ */
30928
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
30929
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
30930
+ * Open by design so more can be added without a wire break.
30931
+ *
30932
+ * Matching does NOT fall back across conditions: cross-condition cosines are
30933
+ * not comparable, so "I have never seen this scene in this light" is reported
30934
+ * as `unknown`, never guessed. A day reference scored against an IR frame
30935
+ * collapses the cosine and would latch a false alarm every single night. */
30154
30936
  var SceneConditionSchema = string();
30937
+ /**
30938
+ * What a scene does when the CURRENT light has no reference of its own.
30939
+ *
30940
+ * The lighting variants are not equally likely to exist. Almost every operator
30941
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
30942
+ * scene that is only ever going to be asked about a daytime question ("is the
30943
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
30944
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
30945
+ * working without it rather than degrading into a permanent complaint.
30946
+ *
30947
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
30948
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
30949
+ * last covered light left it at, the latch is untouched, and the hysteresis
30950
+ * run is neither spent nor cleared. The scene resumes by itself at first
30951
+ * light. This is the only behaviour under which "I never captured IR" is a
30952
+ * configuration choice instead of a nightly fault.
30953
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
30954
+ * for cameras whose IR frame is close enough to daylight (a floodlit
30955
+ * driveway, an always-white-light doorbell), and wrong for everything else:
30956
+ * cross-condition cosines are not comparable, so a day reference against a
30957
+ * true IR frame collapses and the scene reports a theft at 21:40.
30958
+ *
30959
+ * Never applies when the scene has NO comparable reference at all — that is
30960
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
30961
+ * there would hide a scene the operator never finished setting up.
30962
+ */
30963
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
30964
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
30965
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
30966
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
30967
+ * and never counts toward hysteresis in either direction. */
30968
+ var SceneVerdictSchema = _enum([
30969
+ "matched",
30970
+ "diverged",
30971
+ "unknown"
30972
+ ]);
30973
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
30974
+ * silence that reads as "nothing has happened". */
30975
+ var SceneUnavailableSchema = _enum([
30976
+ "no-reference-for-condition",
30977
+ "view-shifted",
30978
+ "no-vision-profile",
30979
+ "encoder-model-changed",
30980
+ "no-snapshot"
30981
+ ]);
30155
30982
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
30156
30983
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
30157
30984
  var SceneReferenceSchema = object({
@@ -30159,7 +30986,14 @@ var SceneReferenceSchema = object({
30159
30986
  modelId: string(),
30160
30987
  condition: SceneConditionSchema,
30161
30988
  capturedAt: number(),
30162
- thumbnailMediaId: string().optional()
30989
+ thumbnailMediaId: string().optional(),
30990
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
30991
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
30992
+ * normalized rect frame a different piece of world, and the scene would
30993
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
30994
+ * when hysteresis is about to flip — one extra encode per candidate
30995
+ * transition, not per poll. */
30996
+ anchorEmbedding: array(number()).optional()
30163
30997
  });
30164
30998
  var SceneMonitorStateSchema = object({
30165
30999
  id: string(),
@@ -30181,6 +31015,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
30181
31015
  profileId: string().optional(),
30182
31016
  hysteresisCount: number().int().positive()
30183
31017
  })]);
31018
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
31019
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
31020
+ * out in silence rather than reporting a fault every night. */
31021
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
31022
+ /**
31023
+ * Vision-model adjudication of a candidate flip. Field names deliberately
31024
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
31025
+ *
31026
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
31027
+ * fail-open: a notification suppressed is the worse error there, but a vision
31028
+ * model that timed out has not told us the bin is gone, and a latch is a
31029
+ * stateful claim that costs the operator a trip to reset.
31030
+ */
31031
+ var SceneConfirmSchema = object({
31032
+ enabled: boolean().default(false),
31033
+ prompt: string().min(1).max(1e3),
31034
+ profileId: string().optional(),
31035
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
31036
+ maxImagePx: number().int().min(64).max(2048).default(448),
31037
+ /** What a timeout / unavailable model means for the PENDING flip. */
31038
+ onTimeout: _enum(["flip", "hold"]).default("hold")
31039
+ });
30184
31040
  var SceneMonitorSchema = object({
30185
31041
  id: string(),
30186
31042
  label: string(),
@@ -30199,7 +31055,56 @@ var SceneMonitorSchema = object({
30199
31055
  lastConfidence: number().nullable(),
30200
31056
  currentCondition: SceneConditionSchema.nullable(),
30201
31057
  availability: _enum(["ok", "unavailable"]),
30202
- unavailableReason: string().nullable()
31058
+ unavailableReason: string().nullable(),
31059
+ /** Which state is "the initial screen". `null` until the first capture. */
31060
+ baselineStateId: string().nullable(),
31061
+ /** Which boolean drives notification rules and any export. */
31062
+ emit: _enum(["latched", "live"]).default("latched"),
31063
+ /** Live: does the region match the baseline RIGHT NOW. */
31064
+ verdict: SceneVerdictSchema,
31065
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
31066
+ latched: boolean(),
31067
+ /** Last reset (or creation). */
31068
+ armedAt: number(),
31069
+ divergedAt: number().nullable(),
31070
+ restoredAt: number().nullable(),
31071
+ /** A check is only COUNTED when the device has been quiet this long. Motion
31072
+ * during the window DISCARDS the observation — a car pulling up in front of
31073
+ * the bin must not be able to spend hysteresis credit. */
31074
+ quietSeconds: number().int().min(0).max(3600).default(60),
31075
+ /** An observation only advances the pending count when it is at least this
31076
+ * far from the previously counted one, so N agreeing checks span real time
31077
+ * rather than N adjacent polls inside one occlusion. */
31078
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
31079
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
31080
+ confirm: SceneConfirmSchema.optional(),
31081
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
31082
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
31083
+ /** Clear the latch on its own when the scene matches again? Default false —
31084
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
31085
+ * automation can react to the bin coming back without the operator's own
31086
+ * alarm silently clearing itself. */
31087
+ autoRestore: boolean().default(false),
31088
+ /** What to do when the current light has no reference of its own. See
31089
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
31090
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
31091
+ /**
31092
+ * The light whose checks are currently being SAT OUT under
31093
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
31094
+ *
31095
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
31096
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
31097
+ * nothing captured in this light"* in the same calm voice as the coverage
31098
+ * line, because the alternative is a scene that silently stops answering
31099
+ * after sunset with nothing anywhere saying why. A skipped check must never
31100
+ * read as a broken one.
31101
+ */
31102
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
31103
+ /** Named cause when `verdict === 'unknown'`. */
31104
+ unavailable: SceneUnavailableSchema.nullable(),
31105
+ /** Conditions that have at least one comparable reference — the coverage line
31106
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
31107
+ coveredConditions: array(SceneConditionSchema)
30203
31108
  });
30204
31109
  var SceneMonitorStatusSchema = object({
30205
31110
  monitors: array(SceneMonitorSchema),
@@ -30212,12 +31117,6 @@ var sceneMonitorCapability = {
30212
31117
  kind: "wrapper",
30213
31118
  defaultActive: true,
30214
31119
  deviceTypes: [DeviceType.Camera],
30215
- deviceConfig: { ui: {
30216
- kind: "widget",
30217
- widgetId: "host/scene-monitor-editor",
30218
- tab: "scenes",
30219
- label: "Scenes"
30220
- } },
30221
31120
  methods: {
30222
31121
  listScenes: method(object({ deviceId: number() }), SceneMonitorStatusSchema),
30223
31122
  createScene: method(object({
@@ -30248,7 +31147,15 @@ var sceneMonitorCapability = {
30248
31147
  "both"
30249
31148
  ]).optional(),
30250
31149
  checkIntervalSec: number().optional(),
30251
- check: SceneCheckSchema.optional()
31150
+ check: SceneCheckSchema.optional(),
31151
+ emit: _enum(["latched", "live"]).optional(),
31152
+ quietSeconds: number().int().min(0).max(3600).optional(),
31153
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
31154
+ anchorThreshold: number().min(0).max(1).optional(),
31155
+ autoRestore: boolean().optional(),
31156
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
31157
+ /** `null` clears the vision-model adjudicator. */
31158
+ confirm: SceneConfirmSchema.nullable().optional()
30252
31159
  })
30253
31160
  }), _void(), {
30254
31161
  kind: "mutation",
@@ -30289,6 +31196,26 @@ var sceneMonitorCapability = {
30289
31196
  }), _void(), {
30290
31197
  kind: "mutation",
30291
31198
  auth: "admin"
31199
+ }),
31200
+ /**
31201
+ * Clear the latch, re-arm, and — by default — RE-CAPTURE the baseline for
31202
+ * the CURRENT condition. The bin never goes back in exactly the same spot;
31203
+ * "reset" in the operator's head means *this is the new normal*, and
31204
+ * re-capture is what makes the feature self-healing against slow drift
31205
+ * instead of failing silently weeks later.
31206
+ *
31207
+ * Reachable from three surfaces on this one mutation: the scene card, a
31208
+ * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
31209
+ * no new Notification-Center code at all), and tRPC for scripts.
31210
+ */
31211
+ resetScene: method(object({
31212
+ deviceId: number(),
31213
+ monitorId: string(),
31214
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
31215
+ recapture: boolean().optional()
31216
+ }), _void(), {
31217
+ kind: "mutation",
31218
+ auth: "admin"
30292
31219
  })
30293
31220
  },
30294
31221
  status: {
@@ -30531,13 +31458,63 @@ var CamStreamDescriptorSchema = object({
30531
31458
  * set of stream descriptors it can offer for the device, synchronously, so the
30532
31459
  * broker can reconcile its registry against the authoritative provider state.
30533
31460
  */
31461
+ /**
31462
+ * The catalog as a DURABLE fact rather than a live answer.
31463
+ *
31464
+ * A battery camera's descriptors are profile-stable — they change when the
31465
+ * operator rewrites an encoder profile, not minute to minute — but building
31466
+ * them costs a Baichuan login, which on a sleeping Argus IS a wake. So the
31467
+ * provider is allowed to build them exactly once per profile and must serve
31468
+ * every later pull from a cache.
31469
+ *
31470
+ * Holding that cache only in RAM is what turned a restart into an outage. The
31471
+ * runner comes back with the camera asleep, `buildStreamCatalogUncached`
31472
+ * correctly refuses to wake it, the pull answers `[]`, the broker has no
31473
+ * cam-stream entry to build a broker from, and `webrtcSession.handleOffer`
31474
+ * fails with a flat "No broker for stream" — for as long as the camera sleeps,
31475
+ * which on a battery cam is most of the day. The camera was fine. The stream
31476
+ * was unreachable because the process had forgotten what the camera offers.
31477
+ *
31478
+ * Declaring it here puts it in `device-runtime-state`, the kernel's canonical
31479
+ * declared collection, with the same `restored` durability `battery` uses for
31480
+ * the same reason: the last known value is the only value there is while the
31481
+ * device is asleep. The broker's brokers are therefore always DEFINABLE — it
31482
+ * is the DIAL that wakes a camera, never the catalog (D173).
31483
+ */
31484
+ var StreamCatalogStateSchema = object({
31485
+ /** The descriptors as last built from a real camera response. Never a guess:
31486
+ * a failed or refused build writes NOTHING, so a restored catalog is always
31487
+ * one the camera itself once produced. */
31488
+ descriptors: array(CamStreamDescriptorSchema),
31489
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
31490
+ * path decide whether the camera's own awake window is worth spending on a
31491
+ * re-read. */
31492
+ lastFetchedAt: number()
31493
+ });
30534
31494
  var streamCatalogCapability = {
30535
31495
  name: "stream-catalog",
30536
31496
  scope: "device",
30537
31497
  deviceNative: true,
30538
31498
  mode: "singleton",
30539
31499
  deviceTypes: [DeviceType.Camera],
30540
- methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) }
31500
+ methods: { getCatalog: method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly()) },
31501
+ runtimeState: StreamCatalogStateSchema,
31502
+ /**
31503
+ * Runtime-state durability: **restored** — see the schema doc. A cold
31504
+ * catalog on a sleeping battery camera is not a slow first frame, it is a
31505
+ * camera that cannot be watched at all until it happens to wake.
31506
+ *
31507
+ * Churn is nil by construction: the slice is written only by a SUCCESSFUL
31508
+ * build, and a build only runs when there is no cached copy (or the copy is
31509
+ * a day old and the camera is awake anyway).
31510
+ *
31511
+ * See `RuntimeStateDurability`. Enforced by
31512
+ * `scripts/check-runtime-state-durability.ts`.
31513
+ */
31514
+ durability: "restored",
31515
+ /** Clock field: written, but excluded from the compare that decides whether
31516
+ * persisting is worth a SQLite commit — the descriptors are the value. */
31517
+ volatileStateFields: ["lastFetchedAt"]
30541
31518
  };
30542
31519
  /** One of the camera's stream profiles. */
30543
31520
  var StreamProfileSchema = _enum([
@@ -30792,6 +31769,52 @@ var NetworkAddressSchema = object({
30792
31769
  family: string(),
30793
31770
  internal: boolean()
30794
31771
  });
31772
+ /**
31773
+ * Provenance of the site coordinates, and the whole reason this is not just two
31774
+ * numbers.
31775
+ *
31776
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
31777
+ * nothing overwrites it.
31778
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
31779
+ * default that is right to a few kilometres beats the coarse UTC clock split
31780
+ * the sun-times consumers otherwise fall back to.
31781
+ *
31782
+ * The UI shows which one it is. An operator who cannot tell a guess from their
31783
+ * own input will eventually trust the guess.
31784
+ */
31785
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
31786
+ /**
31787
+ * The read shape: the location plus the honest state of the one-shot derivation.
31788
+ *
31789
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
31790
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
31791
+ * failed; the hub will NOT try again on its own — the fallback is declared
31792
+ * (consumers degrade to their own last resort) and the operator either types the
31793
+ * coordinates or presses detect.
31794
+ */
31795
+ var SiteLocationStatusSchema = object({
31796
+ location: object({
31797
+ /** WGS84 decimal degrees. */
31798
+ latitude: number().min(-90).max(90),
31799
+ longitude: number().min(-180).max(180),
31800
+ source: SiteLocationSourceSchema,
31801
+ /** Epoch ms the value was last written. */
31802
+ updatedAt: number(),
31803
+ /**
31804
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
31805
+ * only — never parsed, never matched on. Absent for an operator-typed value.
31806
+ */
31807
+ label: string().optional()
31808
+ }).nullable(),
31809
+ derivationAttemptedAt: number().nullable(),
31810
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
31811
+ derivationError: string().nullable()
31812
+ });
31813
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
31814
+ var SetSiteLocationInputSchema = object({
31815
+ latitude: number().min(-90).max(90),
31816
+ longitude: number().min(-180).max(180)
31817
+ }).nullable();
30795
31818
  var systemCapability = {
30796
31819
  name: "system",
30797
31820
  scope: "system",
@@ -30809,6 +31832,32 @@ var systemCapability = {
30809
31832
  forceRetentionCleanup: method(_void(), _void(), {
30810
31833
  kind: "mutation",
30811
31834
  auth: "admin"
31835
+ }),
31836
+ /**
31837
+ * The site coordinates, deriving a default from the hub's public IP on the
31838
+ * FIRST read that finds nothing stored.
31839
+ *
31840
+ * The derivation is one-shot and bounded: one outbound request, a few
31841
+ * seconds, its outcome persisted either way. A hub with no internet pays it
31842
+ * once and never again, and neither boot nor any consumer is blocked on it —
31843
+ * the caller gets `location: null` and degrades exactly as it did before this
31844
+ * method existed.
31845
+ */
31846
+ getSiteLocation: method(_void(), SiteLocationStatusSchema),
31847
+ /** Operator input. Always lands as `source: 'operator-set'`. */
31848
+ setSiteLocation: method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
31849
+ kind: "mutation",
31850
+ auth: "admin"
31851
+ }),
31852
+ /**
31853
+ * Re-run the geo-IP derivation now. The ONLY way a spent or failed
31854
+ * derivation is retried — there is no timer, and no read path retries.
31855
+ * Overwrites an existing `derived-from-ip` value; refuses to clobber an
31856
+ * `operator-set` one.
31857
+ */
31858
+ detectSiteLocation: method(_void(), SiteLocationStatusSchema, {
31859
+ kind: "mutation",
31860
+ auth: "admin"
30812
31861
  })
30813
31862
  },
30814
31863
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
@@ -34176,6 +35225,12 @@ Object.freeze({
34176
35225
  addonId: null,
34177
35226
  access: "create"
34178
35227
  },
35228
+ "llm.cancel": {
35229
+ capName: "llm",
35230
+ capScope: "system",
35231
+ addonId: null,
35232
+ access: "create"
35233
+ },
34179
35234
  "llm.deleteModel": {
34180
35235
  capName: "llm",
34181
35236
  capScope: "system",
@@ -34260,6 +35315,12 @@ Object.freeze({
34260
35315
  addonId: null,
34261
35316
  access: "view"
34262
35317
  },
35318
+ "llm.resolveModelRef": {
35319
+ capName: "llm",
35320
+ capScope: "system",
35321
+ addonId: null,
35322
+ access: "create"
35323
+ },
34263
35324
  "llm.setDefault": {
34264
35325
  capName: "llm",
34265
35326
  capScope: "system",
@@ -36426,6 +37487,12 @@ Object.freeze({
36426
37487
  addonId: null,
36427
37488
  access: "create"
36428
37489
  },
37490
+ "sceneMonitor.resetScene": {
37491
+ capName: "scene-monitor",
37492
+ capScope: "device",
37493
+ addonId: null,
37494
+ access: "delete"
37495
+ },
36429
37496
  "sceneMonitor.updateScene": {
36430
37497
  capName: "scene-monitor",
36431
37498
  capScope: "device",
@@ -37104,6 +38171,12 @@ Object.freeze({
37104
38171
  addonId: null,
37105
38172
  access: "create"
37106
38173
  },
38174
+ "system.detectSiteLocation": {
38175
+ capName: "system",
38176
+ capScope: "system",
38177
+ addonId: null,
38178
+ access: "create"
38179
+ },
37107
38180
  "system.featureFlags": {
37108
38181
  capName: "system",
37109
38182
  capScope: "system",
@@ -37122,6 +38195,12 @@ Object.freeze({
37122
38195
  addonId: null,
37123
38196
  access: "view"
37124
38197
  },
38198
+ "system.getSiteLocation": {
38199
+ capName: "system",
38200
+ capScope: "system",
38201
+ addonId: null,
38202
+ access: "view"
38203
+ },
37125
38204
  "system.health": {
37126
38205
  capName: "system",
37127
38206
  capScope: "system",
@@ -37146,6 +38225,12 @@ Object.freeze({
37146
38225
  addonId: null,
37147
38226
  access: "create"
37148
38227
  },
38228
+ "system.setSiteLocation": {
38229
+ capName: "system",
38230
+ capScope: "system",
38231
+ addonId: null,
38232
+ access: "create"
38233
+ },
37149
38234
  "terminalSession.adoptLegacyMonitor": {
37150
38235
  capName: "terminal-session",
37151
38236
  capScope: "system",
@@ -37717,6 +38802,1704 @@ Object.freeze({
37717
38802
  access: "create"
37718
38803
  }
37719
38804
  });
38805
+ Object.freeze({
38806
+ "accessories.setChildHidden": [{
38807
+ name: "childDeviceId",
38808
+ form: "single",
38809
+ optional: false
38810
+ }, {
38811
+ name: "deviceId",
38812
+ form: "single",
38813
+ optional: false
38814
+ }],
38815
+ "addonSettings.getDeviceSettings": [{
38816
+ name: "deviceId",
38817
+ form: "single",
38818
+ optional: false
38819
+ }],
38820
+ "addonSettings.updateDeviceSettings": [{
38821
+ name: "deviceId",
38822
+ form: "single",
38823
+ optional: false
38824
+ }],
38825
+ "alarmPanel.arm": [{
38826
+ name: "deviceId",
38827
+ form: "single",
38828
+ optional: false
38829
+ }],
38830
+ "alarmPanel.disarm": [{
38831
+ name: "deviceId",
38832
+ form: "single",
38833
+ optional: false
38834
+ }],
38835
+ "alarmPanel.trigger": [{
38836
+ name: "deviceId",
38837
+ form: "single",
38838
+ optional: false
38839
+ }],
38840
+ "audioAnalysis.resolveDeviceSettings": [{
38841
+ name: "deviceId",
38842
+ form: "single",
38843
+ optional: false
38844
+ }],
38845
+ "audioAnalyzer.classify": [{
38846
+ name: "deviceId",
38847
+ form: "single",
38848
+ optional: true
38849
+ }],
38850
+ "audioMetrics.getCurrentSnapshot": [{
38851
+ name: "deviceId",
38852
+ form: "single",
38853
+ optional: false
38854
+ }],
38855
+ "audioMetrics.getHistory": [{
38856
+ name: "deviceId",
38857
+ form: "single",
38858
+ optional: false
38859
+ }],
38860
+ "automationControl.disable": [{
38861
+ name: "deviceId",
38862
+ form: "single",
38863
+ optional: false
38864
+ }],
38865
+ "automationControl.enable": [{
38866
+ name: "deviceId",
38867
+ form: "single",
38868
+ optional: false
38869
+ }],
38870
+ "automationControl.trigger": [{
38871
+ name: "deviceId",
38872
+ form: "single",
38873
+ optional: false
38874
+ }],
38875
+ "battery.wakeForStream": [{
38876
+ name: "deviceId",
38877
+ form: "single",
38878
+ optional: false
38879
+ }],
38880
+ "brightness.setBrightness": [{
38881
+ name: "deviceId",
38882
+ form: "single",
38883
+ optional: false
38884
+ }],
38885
+ "button.press": [{
38886
+ name: "deviceId",
38887
+ form: "single",
38888
+ optional: false
38889
+ }],
38890
+ "cameraCredentials.getCredentials": [{
38891
+ name: "deviceId",
38892
+ form: "single",
38893
+ optional: false
38894
+ }],
38895
+ "cameraStreams.getBrokerStreams": [{
38896
+ name: "deviceId",
38897
+ form: "single",
38898
+ optional: false
38899
+ }],
38900
+ "cameraStreams.getCameraStreams": [{
38901
+ name: "deviceId",
38902
+ form: "single",
38903
+ optional: false
38904
+ }],
38905
+ "cameraStreams.getProfileRtspEntries": [{
38906
+ name: "deviceId",
38907
+ form: "single",
38908
+ optional: false
38909
+ }],
38910
+ "cameraStreams.getRtspEntries": [{
38911
+ name: "deviceId",
38912
+ form: "single",
38913
+ optional: false
38914
+ }],
38915
+ "cameraStreams.pickStream": [{
38916
+ name: "deviceId",
38917
+ form: "single",
38918
+ optional: false
38919
+ }],
38920
+ "climateControl.setFanMode": [{
38921
+ name: "deviceId",
38922
+ form: "single",
38923
+ optional: false
38924
+ }],
38925
+ "climateControl.setMode": [{
38926
+ name: "deviceId",
38927
+ form: "single",
38928
+ optional: false
38929
+ }],
38930
+ "climateControl.setPreset": [{
38931
+ name: "deviceId",
38932
+ form: "single",
38933
+ optional: false
38934
+ }],
38935
+ "climateControl.setSwingHorizontal": [{
38936
+ name: "deviceId",
38937
+ form: "single",
38938
+ optional: false
38939
+ }],
38940
+ "climateControl.setSwingVertical": [{
38941
+ name: "deviceId",
38942
+ form: "single",
38943
+ optional: false
38944
+ }],
38945
+ "climateControl.setTarget": [{
38946
+ name: "deviceId",
38947
+ form: "single",
38948
+ optional: false
38949
+ }],
38950
+ "climateControl.setTargetHumidity": [{
38951
+ name: "deviceId",
38952
+ form: "single",
38953
+ optional: false
38954
+ }],
38955
+ "climateControl.setTargetRange": [{
38956
+ name: "deviceId",
38957
+ form: "single",
38958
+ optional: false
38959
+ }],
38960
+ "color.setColor": [{
38961
+ name: "deviceId",
38962
+ form: "single",
38963
+ optional: false
38964
+ }],
38965
+ "consumables.reset": [{
38966
+ name: "deviceId",
38967
+ form: "single",
38968
+ optional: false
38969
+ }],
38970
+ "control.setValue": [{
38971
+ name: "deviceId",
38972
+ form: "single",
38973
+ optional: false
38974
+ }],
38975
+ "cover.close": [{
38976
+ name: "deviceId",
38977
+ form: "single",
38978
+ optional: false
38979
+ }],
38980
+ "cover.open": [{
38981
+ name: "deviceId",
38982
+ form: "single",
38983
+ optional: false
38984
+ }],
38985
+ "cover.setPosition": [{
38986
+ name: "deviceId",
38987
+ form: "single",
38988
+ optional: false
38989
+ }],
38990
+ "cover.setTiltPosition": [{
38991
+ name: "deviceId",
38992
+ form: "single",
38993
+ optional: false
38994
+ }],
38995
+ "cover.stop": [{
38996
+ name: "deviceId",
38997
+ form: "single",
38998
+ optional: false
38999
+ }],
39000
+ "dayNight.getOptions": [{
39001
+ name: "deviceId",
39002
+ form: "single",
39003
+ optional: false
39004
+ }],
39005
+ "dayNight.setSettings": [{
39006
+ name: "deviceId",
39007
+ form: "single",
39008
+ optional: false
39009
+ }],
39010
+ "decoder.createSession": [{
39011
+ name: "deviceId",
39012
+ form: "single",
39013
+ optional: true
39014
+ }],
39015
+ "deviceAdoption.release": [{
39016
+ name: "camDeviceId",
39017
+ form: "single",
39018
+ optional: false
39019
+ }],
39020
+ "deviceAdoption.resync": [{
39021
+ name: "camDeviceId",
39022
+ form: "single",
39023
+ optional: false
39024
+ }],
39025
+ "deviceDiscovery.adoptDevice": [{
39026
+ name: "deviceId",
39027
+ form: "single",
39028
+ optional: false
39029
+ }],
39030
+ "deviceDiscovery.listDiscovered": [{
39031
+ name: "deviceId",
39032
+ form: "single",
39033
+ optional: false
39034
+ }],
39035
+ "deviceDiscovery.refreshDiscovery": [{
39036
+ name: "deviceId",
39037
+ form: "single",
39038
+ optional: false
39039
+ }],
39040
+ "deviceDiscovery.releaseDevice": [{
39041
+ name: "childDeviceId",
39042
+ form: "single",
39043
+ optional: false
39044
+ }, {
39045
+ name: "deviceId",
39046
+ form: "single",
39047
+ optional: false
39048
+ }],
39049
+ "deviceManager.adoptionRelease": [{
39050
+ name: "camDeviceId",
39051
+ form: "single",
39052
+ optional: false
39053
+ }],
39054
+ "deviceManager.adoptionResync": [{
39055
+ name: "camDeviceId",
39056
+ form: "single",
39057
+ optional: false
39058
+ }],
39059
+ "deviceManager.applyInitialMeta": [{
39060
+ name: "deviceId",
39061
+ form: "single",
39062
+ optional: false
39063
+ }, {
39064
+ name: "linkDeviceId",
39065
+ form: "single",
39066
+ optional: true
39067
+ }],
39068
+ "deviceManager.disable": [{
39069
+ name: "deviceId",
39070
+ form: "single",
39071
+ optional: false
39072
+ }],
39073
+ "deviceManager.enable": [{
39074
+ name: "deviceId",
39075
+ form: "single",
39076
+ optional: false
39077
+ }],
39078
+ "deviceManager.getBindings": [{
39079
+ name: "deviceId",
39080
+ form: "single",
39081
+ optional: false
39082
+ }],
39083
+ "deviceManager.getChildren": [{
39084
+ name: "parentDeviceId",
39085
+ form: "single",
39086
+ optional: false
39087
+ }],
39088
+ "deviceManager.getConfigSchema": [{
39089
+ name: "deviceId",
39090
+ form: "single",
39091
+ optional: false
39092
+ }],
39093
+ "deviceManager.getDevice": [{
39094
+ name: "deviceId",
39095
+ form: "single",
39096
+ optional: false
39097
+ }],
39098
+ "deviceManager.getDeviceAggregate": [{
39099
+ name: "deviceId",
39100
+ form: "single",
39101
+ optional: false
39102
+ }],
39103
+ "deviceManager.getDeviceLiveInfoAggregate": [{
39104
+ name: "deviceId",
39105
+ form: "single",
39106
+ optional: false
39107
+ }],
39108
+ "deviceManager.getDeviceSettingsAggregate": [{
39109
+ name: "deviceId",
39110
+ form: "single",
39111
+ optional: false
39112
+ }],
39113
+ "deviceManager.getDeviceStatusAggregate": [{
39114
+ name: "deviceId",
39115
+ form: "single",
39116
+ optional: false
39117
+ }],
39118
+ "deviceManager.getDeviceStatusAggregateBatch": [{
39119
+ name: "deviceIds",
39120
+ form: "array",
39121
+ optional: false
39122
+ }],
39123
+ "deviceManager.getLinkedDevices": [{
39124
+ name: "deviceId",
39125
+ form: "single",
39126
+ optional: false
39127
+ }],
39128
+ "deviceManager.getSettingsSchema": [{
39129
+ name: "deviceId",
39130
+ form: "single",
39131
+ optional: false
39132
+ }],
39133
+ "deviceManager.getStreamProfileMap": [{
39134
+ name: "deviceId",
39135
+ form: "single",
39136
+ optional: false
39137
+ }],
39138
+ "deviceManager.getStreamSources": [{
39139
+ name: "deviceId",
39140
+ form: "single",
39141
+ optional: false
39142
+ }],
39143
+ "deviceManager.getWireableFields": [{
39144
+ name: "deviceId",
39145
+ form: "single",
39146
+ optional: false
39147
+ }],
39148
+ "deviceManager.loadConfig": [{
39149
+ name: "deviceId",
39150
+ form: "single",
39151
+ optional: false
39152
+ }],
39153
+ "deviceManager.loadMeta": [{
39154
+ name: "deviceId",
39155
+ form: "single",
39156
+ optional: false
39157
+ }],
39158
+ "deviceManager.loadRuntimeState": [{
39159
+ name: "deviceId",
39160
+ form: "single",
39161
+ optional: false
39162
+ }],
39163
+ "deviceManager.persistConfig": [{
39164
+ name: "deviceId",
39165
+ form: "single",
39166
+ optional: false
39167
+ }],
39168
+ "deviceManager.probeStreams": [{
39169
+ name: "deviceId",
39170
+ form: "single",
39171
+ optional: false
39172
+ }],
39173
+ "deviceManager.registerDevice": [{
39174
+ name: "parentDeviceId",
39175
+ form: "single",
39176
+ optional: true
39177
+ }],
39178
+ "deviceManager.remove": [{
39179
+ name: "deviceId",
39180
+ form: "single",
39181
+ optional: false
39182
+ }],
39183
+ "deviceManager.removeDevice": [{
39184
+ name: "deviceId",
39185
+ form: "single",
39186
+ optional: false
39187
+ }],
39188
+ "deviceManager.runDeviceAction": [{
39189
+ name: "deviceId",
39190
+ form: "single",
39191
+ optional: false
39192
+ }],
39193
+ "deviceManager.setChildLayout": [{
39194
+ name: "deviceId",
39195
+ form: "single",
39196
+ optional: false
39197
+ }],
39198
+ "deviceManager.setDisabled": [{
39199
+ name: "deviceId",
39200
+ form: "single",
39201
+ optional: false
39202
+ }],
39203
+ "deviceManager.setDisplay": [{
39204
+ name: "deviceId",
39205
+ form: "single",
39206
+ optional: false
39207
+ }],
39208
+ "deviceManager.setIntegrationId": [{
39209
+ name: "deviceId",
39210
+ form: "single",
39211
+ optional: false
39212
+ }],
39213
+ "deviceManager.setLinkDeviceId": [{
39214
+ name: "deviceId",
39215
+ form: "single",
39216
+ optional: false
39217
+ }, {
39218
+ name: "linkDeviceId",
39219
+ form: "single",
39220
+ optional: true
39221
+ }],
39222
+ "deviceManager.setLocation": [{
39223
+ name: "deviceId",
39224
+ form: "single",
39225
+ optional: false
39226
+ }],
39227
+ "deviceManager.setMetadata": [{
39228
+ name: "deviceId",
39229
+ form: "single",
39230
+ optional: false
39231
+ }],
39232
+ "deviceManager.setName": [{
39233
+ name: "deviceId",
39234
+ form: "single",
39235
+ optional: false
39236
+ }],
39237
+ "deviceManager.setPrimaryChildEntityId": [{
39238
+ name: "deviceId",
39239
+ form: "single",
39240
+ optional: false
39241
+ }],
39242
+ "deviceManager.setRole": [{
39243
+ name: "deviceId",
39244
+ form: "single",
39245
+ optional: false
39246
+ }],
39247
+ "deviceManager.setStreamProfileMap": [{
39248
+ name: "deviceId",
39249
+ form: "single",
39250
+ optional: false
39251
+ }],
39252
+ "deviceManager.setType": [{
39253
+ name: "deviceId",
39254
+ form: "single",
39255
+ optional: false
39256
+ }],
39257
+ "deviceManager.setWrapperActive": [{
39258
+ name: "deviceId",
39259
+ form: "single",
39260
+ optional: false
39261
+ }],
39262
+ "deviceManager.testField": [{
39263
+ name: "deviceId",
39264
+ form: "single",
39265
+ optional: false
39266
+ }],
39267
+ "deviceManager.updateConfig": [{
39268
+ name: "deviceId",
39269
+ form: "single",
39270
+ optional: false
39271
+ }],
39272
+ "deviceManager.updateDeviceField": [{
39273
+ name: "deviceId",
39274
+ form: "single",
39275
+ optional: false
39276
+ }],
39277
+ "deviceManager.updateDeviceFieldsBatch": [{
39278
+ name: "deviceId",
39279
+ form: "single",
39280
+ optional: false
39281
+ }],
39282
+ "deviceOps.getConfigEntries": [{
39283
+ name: "deviceId",
39284
+ form: "single",
39285
+ optional: false
39286
+ }],
39287
+ "deviceOps.getRawState": [{
39288
+ name: "deviceId",
39289
+ form: "single",
39290
+ optional: false
39291
+ }],
39292
+ "deviceOps.getSettingsSchema": [{
39293
+ name: "deviceId",
39294
+ form: "single",
39295
+ optional: false
39296
+ }],
39297
+ "deviceOps.getStreamSources": [{
39298
+ name: "deviceId",
39299
+ form: "single",
39300
+ optional: false
39301
+ }],
39302
+ "deviceOps.removeDevice": [{
39303
+ name: "deviceId",
39304
+ form: "single",
39305
+ optional: false
39306
+ }],
39307
+ "deviceOps.runAction": [{
39308
+ name: "deviceId",
39309
+ form: "single",
39310
+ optional: false
39311
+ }],
39312
+ "deviceOps.setConfig": [{
39313
+ name: "deviceId",
39314
+ form: "single",
39315
+ optional: false
39316
+ }],
39317
+ "deviceState.getCapSlice": [{
39318
+ name: "deviceId",
39319
+ form: "single",
39320
+ optional: false
39321
+ }],
39322
+ "deviceState.getSnapshot": [{
39323
+ name: "deviceId",
39324
+ form: "single",
39325
+ optional: false
39326
+ }],
39327
+ "deviceState.setCapSlice": [{
39328
+ name: "deviceId",
39329
+ form: "single",
39330
+ optional: false
39331
+ }],
39332
+ "events.getEventClipUrl": [{
39333
+ name: "deviceId",
39334
+ form: "single",
39335
+ optional: false
39336
+ }],
39337
+ "events.getEvents": [{
39338
+ name: "deviceId",
39339
+ form: "single",
39340
+ optional: false
39341
+ }],
39342
+ "events.getEventThumbnail": [{
39343
+ name: "deviceId",
39344
+ form: "single",
39345
+ optional: false
39346
+ }],
39347
+ "faceGallery.getFaceByTrack": [{
39348
+ name: "deviceId",
39349
+ form: "single",
39350
+ optional: false
39351
+ }],
39352
+ "faceGallery.listRecentFaces": [{
39353
+ name: "deviceId",
39354
+ form: "single",
39355
+ optional: true
39356
+ }],
39357
+ "fanControl.setDirection": [{
39358
+ name: "deviceId",
39359
+ form: "single",
39360
+ optional: false
39361
+ }],
39362
+ "fanControl.setOscillating": [{
39363
+ name: "deviceId",
39364
+ form: "single",
39365
+ optional: false
39366
+ }],
39367
+ "fanControl.setPercentage": [{
39368
+ name: "deviceId",
39369
+ form: "single",
39370
+ optional: false
39371
+ }],
39372
+ "fanControl.setPreset": [{
39373
+ name: "deviceId",
39374
+ form: "single",
39375
+ optional: false
39376
+ }],
39377
+ "humidifier.setMode": [{
39378
+ name: "deviceId",
39379
+ form: "single",
39380
+ optional: false
39381
+ }],
39382
+ "humidifier.setOn": [{
39383
+ name: "deviceId",
39384
+ form: "single",
39385
+ optional: false
39386
+ }],
39387
+ "humidifier.setTargetHumidity": [{
39388
+ name: "deviceId",
39389
+ form: "single",
39390
+ optional: false
39391
+ }],
39392
+ "imageSettings.getOptions": [{
39393
+ name: "deviceId",
39394
+ form: "single",
39395
+ optional: false
39396
+ }],
39397
+ "imageSettings.setSettings": [{
39398
+ name: "deviceId",
39399
+ form: "single",
39400
+ optional: false
39401
+ }],
39402
+ "intercom.endTalkSession": [{
39403
+ name: "deviceId",
39404
+ form: "single",
39405
+ optional: false
39406
+ }],
39407
+ "intercom.handleAnswer": [{
39408
+ name: "deviceId",
39409
+ form: "single",
39410
+ optional: false
39411
+ }],
39412
+ "intercom.pushTalkAudio": [{
39413
+ name: "deviceId",
39414
+ form: "single",
39415
+ optional: false
39416
+ }],
39417
+ "intercom.startSession": [{
39418
+ name: "deviceId",
39419
+ form: "single",
39420
+ optional: false
39421
+ }],
39422
+ "intercom.startTalkSession": [{
39423
+ name: "deviceId",
39424
+ form: "single",
39425
+ optional: false
39426
+ }],
39427
+ "intercom.stopSession": [{
39428
+ name: "deviceId",
39429
+ form: "single",
39430
+ optional: false
39431
+ }],
39432
+ "lawnMowerControl.dock": [{
39433
+ name: "deviceId",
39434
+ form: "single",
39435
+ optional: false
39436
+ }],
39437
+ "lawnMowerControl.pause": [{
39438
+ name: "deviceId",
39439
+ form: "single",
39440
+ optional: false
39441
+ }],
39442
+ "lawnMowerControl.startMowing": [{
39443
+ name: "deviceId",
39444
+ form: "single",
39445
+ optional: false
39446
+ }],
39447
+ "lockControl.lock": [{
39448
+ name: "deviceId",
39449
+ form: "single",
39450
+ optional: false
39451
+ }],
39452
+ "lockControl.open": [{
39453
+ name: "deviceId",
39454
+ form: "single",
39455
+ optional: false
39456
+ }],
39457
+ "lockControl.unlock": [{
39458
+ name: "deviceId",
39459
+ form: "single",
39460
+ optional: false
39461
+ }],
39462
+ "mediaPlayer.next": [{
39463
+ name: "deviceId",
39464
+ form: "single",
39465
+ optional: false
39466
+ }],
39467
+ "mediaPlayer.pause": [{
39468
+ name: "deviceId",
39469
+ form: "single",
39470
+ optional: false
39471
+ }],
39472
+ "mediaPlayer.play": [{
39473
+ name: "deviceId",
39474
+ form: "single",
39475
+ optional: false
39476
+ }],
39477
+ "mediaPlayer.playMedia": [{
39478
+ name: "deviceId",
39479
+ form: "single",
39480
+ optional: false
39481
+ }],
39482
+ "mediaPlayer.previous": [{
39483
+ name: "deviceId",
39484
+ form: "single",
39485
+ optional: false
39486
+ }],
39487
+ "mediaPlayer.seek": [{
39488
+ name: "deviceId",
39489
+ form: "single",
39490
+ optional: false
39491
+ }],
39492
+ "mediaPlayer.selectSource": [{
39493
+ name: "deviceId",
39494
+ form: "single",
39495
+ optional: false
39496
+ }],
39497
+ "mediaPlayer.setMute": [{
39498
+ name: "deviceId",
39499
+ form: "single",
39500
+ optional: false
39501
+ }],
39502
+ "mediaPlayer.setRepeat": [{
39503
+ name: "deviceId",
39504
+ form: "single",
39505
+ optional: false
39506
+ }],
39507
+ "mediaPlayer.setShuffle": [{
39508
+ name: "deviceId",
39509
+ form: "single",
39510
+ optional: false
39511
+ }],
39512
+ "mediaPlayer.setVolume": [{
39513
+ name: "deviceId",
39514
+ form: "single",
39515
+ optional: false
39516
+ }],
39517
+ "mediaPlayer.stop": [{
39518
+ name: "deviceId",
39519
+ form: "single",
39520
+ optional: false
39521
+ }],
39522
+ "motion.isDetected": [{
39523
+ name: "deviceId",
39524
+ form: "single",
39525
+ optional: false
39526
+ }],
39527
+ "motionDetection.analyze": [{
39528
+ name: "deviceId",
39529
+ form: "single",
39530
+ optional: false
39531
+ }],
39532
+ "motionDetection.removeCamera": [{
39533
+ name: "deviceId",
39534
+ form: "single",
39535
+ optional: false
39536
+ }],
39537
+ "motionTrigger.setMotionTrigger": [{
39538
+ name: "deviceId",
39539
+ form: "single",
39540
+ optional: false
39541
+ }],
39542
+ "motionZones.getOptions": [{
39543
+ name: "deviceId",
39544
+ form: "single",
39545
+ optional: false
39546
+ }],
39547
+ "motionZones.setZone": [{
39548
+ name: "deviceId",
39549
+ form: "single",
39550
+ optional: false
39551
+ }],
39552
+ "nativeObjectDetection.setEnabled": [{
39553
+ name: "deviceId",
39554
+ form: "single",
39555
+ optional: false
39556
+ }],
39557
+ "networkQuality.getDeviceStats": [{
39558
+ name: "deviceId",
39559
+ form: "single",
39560
+ optional: false
39561
+ }],
39562
+ "networkQuality.reportClientStats": [{
39563
+ name: "deviceId",
39564
+ form: "single",
39565
+ optional: false
39566
+ }],
39567
+ "notificationRules.setDeviceMuted": [{
39568
+ name: "deviceId",
39569
+ form: "single",
39570
+ optional: false
39571
+ }],
39572
+ "notifier.cancel": [{
39573
+ name: "deviceId",
39574
+ form: "single",
39575
+ optional: false
39576
+ }],
39577
+ "notifier.send": [{
39578
+ name: "deviceId",
39579
+ form: "single",
39580
+ optional: false
39581
+ }],
39582
+ "osd.setOverlay": [{
39583
+ name: "deviceId",
39584
+ form: "single",
39585
+ optional: false
39586
+ }],
39587
+ "osdManager.clearSlotBinding": [{
39588
+ name: "deviceId",
39589
+ form: "single",
39590
+ optional: false
39591
+ }],
39592
+ "osdManager.copyDeviceConfiguration": [{
39593
+ name: "sourceDeviceId",
39594
+ form: "single",
39595
+ optional: false
39596
+ }, {
39597
+ name: "targetDeviceId",
39598
+ form: "single",
39599
+ optional: false
39600
+ }],
39601
+ "osdManager.getDeviceOsd": [{
39602
+ name: "deviceId",
39603
+ form: "single",
39604
+ optional: false
39605
+ }],
39606
+ "osdManager.getSourceCatalog": [{
39607
+ name: "deviceId",
39608
+ form: "single",
39609
+ optional: false
39610
+ }],
39611
+ "osdManager.previewSlot": [{
39612
+ name: "deviceId",
39613
+ form: "single",
39614
+ optional: false
39615
+ }],
39616
+ "osdManager.renderDevice": [{
39617
+ name: "deviceId",
39618
+ form: "single",
39619
+ optional: false
39620
+ }],
39621
+ "osdManager.setSlotBinding": [{
39622
+ name: "deviceId",
39623
+ form: "single",
39624
+ optional: false
39625
+ }],
39626
+ "petFeeder.callPet": [{
39627
+ name: "deviceId",
39628
+ form: "single",
39629
+ optional: false
39630
+ }],
39631
+ "petFeeder.cancelFeed": [{
39632
+ name: "deviceId",
39633
+ form: "single",
39634
+ optional: false
39635
+ }],
39636
+ "petFeeder.feed": [{
39637
+ name: "deviceId",
39638
+ form: "single",
39639
+ optional: false
39640
+ }],
39641
+ "petFeeder.markFoodReplenished": [{
39642
+ name: "deviceId",
39643
+ form: "single",
39644
+ optional: false
39645
+ }],
39646
+ "petFeeder.playSound": [{
39647
+ name: "deviceId",
39648
+ form: "single",
39649
+ optional: false
39650
+ }],
39651
+ "petFeeder.resetDesiccant": [{
39652
+ name: "deviceId",
39653
+ form: "single",
39654
+ optional: false
39655
+ }],
39656
+ "petFeeder.setChildLock": [{
39657
+ name: "deviceId",
39658
+ form: "single",
39659
+ optional: false
39660
+ }],
39661
+ "petFeeder.setFeedSound": [{
39662
+ name: "deviceId",
39663
+ form: "single",
39664
+ optional: false
39665
+ }],
39666
+ "petFeeder.setIndicatorLight": [{
39667
+ name: "deviceId",
39668
+ form: "single",
39669
+ optional: false
39670
+ }],
39671
+ "petFeeder.setVolume": [{
39672
+ name: "deviceId",
39673
+ form: "single",
39674
+ optional: false
39675
+ }],
39676
+ "pipelineAnalytics.clearTracks": [{
39677
+ name: "deviceId",
39678
+ form: "single",
39679
+ optional: false
39680
+ }],
39681
+ "pipelineAnalytics.completeRetrainTrack": [{
39682
+ name: "deviceId",
39683
+ form: "single",
39684
+ optional: false
39685
+ }],
39686
+ "pipelineAnalytics.deleteDeviceEvents": [{
39687
+ name: "deviceId",
39688
+ form: "single",
39689
+ optional: false
39690
+ }],
39691
+ "pipelineAnalytics.deleteTracks": [{
39692
+ name: "deviceId",
39693
+ form: "single",
39694
+ optional: false
39695
+ }],
39696
+ "pipelineAnalytics.deselectRetrainFrame": [{
39697
+ name: "deviceId",
39698
+ form: "single",
39699
+ optional: false
39700
+ }],
39701
+ "pipelineAnalytics.getActiveTracks": [{
39702
+ name: "deviceId",
39703
+ form: "single",
39704
+ optional: false
39705
+ }],
39706
+ "pipelineAnalytics.getAudioEvents": [{
39707
+ name: "deviceId",
39708
+ form: "single",
39709
+ optional: false
39710
+ }],
39711
+ "pipelineAnalytics.getEventDensity": [{
39712
+ name: "deviceId",
39713
+ form: "single",
39714
+ optional: false
39715
+ }],
39716
+ "pipelineAnalytics.getEventMedia": [{
39717
+ name: "deviceId",
39718
+ form: "single",
39719
+ optional: false
39720
+ }],
39721
+ "pipelineAnalytics.getKeyEvents": [{
39722
+ name: "deviceId",
39723
+ form: "single",
39724
+ optional: false
39725
+ }],
39726
+ "pipelineAnalytics.getMotionEvents": [{
39727
+ name: "deviceId",
39728
+ form: "single",
39729
+ optional: false
39730
+ }],
39731
+ "pipelineAnalytics.getObjectEvents": [{
39732
+ name: "deviceId",
39733
+ form: "single",
39734
+ optional: false
39735
+ }],
39736
+ "pipelineAnalytics.getRetrainExportUrl": [{
39737
+ name: "deviceIds",
39738
+ form: "array",
39739
+ optional: true
39740
+ }],
39741
+ "pipelineAnalytics.getSensorEvents": [{
39742
+ name: "deviceId",
39743
+ form: "single",
39744
+ optional: false
39745
+ }],
39746
+ "pipelineAnalytics.getTrack": [{
39747
+ name: "deviceId",
39748
+ form: "single",
39749
+ optional: false
39750
+ }],
39751
+ "pipelineAnalytics.getTrackMedia": [{
39752
+ name: "deviceId",
39753
+ form: "single",
39754
+ optional: false
39755
+ }],
39756
+ "pipelineAnalytics.getTrainingExportSummary": [{
39757
+ name: "deviceIds",
39758
+ form: "array",
39759
+ optional: true
39760
+ }],
39761
+ "pipelineAnalytics.getTrainingExportUrl": [{
39762
+ name: "deviceIds",
39763
+ form: "array",
39764
+ optional: true
39765
+ }],
39766
+ "pipelineAnalytics.listEventKinds": [{
39767
+ name: "deviceId",
39768
+ form: "single",
39769
+ optional: false
39770
+ }],
39771
+ "pipelineAnalytics.listEventKindsBatch": [{
39772
+ name: "deviceIds",
39773
+ form: "array",
39774
+ optional: false
39775
+ }],
39776
+ "pipelineAnalytics.listOpsLog": [{
39777
+ name: "deviceId",
39778
+ form: "single",
39779
+ optional: true
39780
+ }],
39781
+ "pipelineAnalytics.listRecentTracks": [{
39782
+ name: "deviceIds",
39783
+ form: "array",
39784
+ optional: false
39785
+ }],
39786
+ "pipelineAnalytics.listRetrainStaging": [{
39787
+ name: "deviceIds",
39788
+ form: "array",
39789
+ optional: true
39790
+ }],
39791
+ "pipelineAnalytics.listTrackMedia": [{
39792
+ name: "deviceId",
39793
+ form: "single",
39794
+ optional: false
39795
+ }],
39796
+ "pipelineAnalytics.listTracks": [{
39797
+ name: "deviceId",
39798
+ form: "single",
39799
+ optional: false
39800
+ }],
39801
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
39802
+ name: "deviceId",
39803
+ form: "single",
39804
+ optional: false
39805
+ }],
39806
+ "pipelineAnalytics.pruneEventsBefore": [{
39807
+ name: "deviceId",
39808
+ form: "single",
39809
+ optional: false
39810
+ }],
39811
+ "pipelineAnalytics.pruneTracksBefore": [{
39812
+ name: "deviceId",
39813
+ form: "single",
39814
+ optional: false
39815
+ }],
39816
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
39817
+ name: "deviceId",
39818
+ form: "single",
39819
+ optional: true
39820
+ }],
39821
+ "pipelineAnalytics.restageRetrainTrack": [{
39822
+ name: "deviceId",
39823
+ form: "single",
39824
+ optional: false
39825
+ }],
39826
+ "pipelineAnalytics.saveRetrainAnnotations": [{
39827
+ name: "deviceId",
39828
+ form: "single",
39829
+ optional: false
39830
+ }],
39831
+ "pipelineAnalytics.searchObjectEvents": [{
39832
+ name: "deviceId",
39833
+ form: "single",
39834
+ optional: true
39835
+ }],
39836
+ "pipelineAnalytics.selectRetrainFrames": [{
39837
+ name: "deviceId",
39838
+ form: "single",
39839
+ optional: false
39840
+ }],
39841
+ "pipelineAnalytics.setTrackFlags": [{
39842
+ name: "deviceId",
39843
+ form: "single",
39844
+ optional: false
39845
+ }],
39846
+ "pipelineAnalytics.wipeAllAnalytics": [{
39847
+ name: "deviceId",
39848
+ form: "single",
39849
+ optional: false
39850
+ }],
39851
+ "pipelineExecutor.runPipeline": [{
39852
+ name: "deviceId",
39853
+ form: "single",
39854
+ optional: true
39855
+ }],
39856
+ "pipelineExecutor.runPipelineBatch": [{
39857
+ name: "deviceId",
39858
+ form: "single",
39859
+ optional: true
39860
+ }],
39861
+ "pipelineOrchestrator.assignAudio": [{
39862
+ name: "deviceId",
39863
+ form: "single",
39864
+ optional: false
39865
+ }],
39866
+ "pipelineOrchestrator.assignPipeline": [{
39867
+ name: "deviceId",
39868
+ form: "single",
39869
+ optional: false
39870
+ }],
39871
+ "pipelineOrchestrator.getAudioAssignment": [{
39872
+ name: "deviceId",
39873
+ form: "single",
39874
+ optional: false
39875
+ }],
39876
+ "pipelineOrchestrator.getCameraMetrics": [{
39877
+ name: "deviceId",
39878
+ form: "single",
39879
+ optional: false
39880
+ }],
39881
+ "pipelineOrchestrator.getCameraSettings": [{
39882
+ name: "deviceId",
39883
+ form: "single",
39884
+ optional: false
39885
+ }],
39886
+ "pipelineOrchestrator.getCameraStatus": [{
39887
+ name: "deviceId",
39888
+ form: "single",
39889
+ optional: false
39890
+ }],
39891
+ "pipelineOrchestrator.getCameraStatuses": [{
39892
+ name: "deviceIds",
39893
+ form: "array",
39894
+ optional: true
39895
+ }],
39896
+ "pipelineOrchestrator.getCameraStepOverrides": [{
39897
+ name: "deviceId",
39898
+ form: "single",
39899
+ optional: false
39900
+ }],
39901
+ "pipelineOrchestrator.getCameraSwitches": [{
39902
+ name: "deviceId",
39903
+ form: "single",
39904
+ optional: false
39905
+ }],
39906
+ "pipelineOrchestrator.getPipelineAssignment": [{
39907
+ name: "deviceId",
39908
+ form: "single",
39909
+ optional: false
39910
+ }],
39911
+ "pipelineOrchestrator.getPipelineDevicePin": [{
39912
+ name: "deviceId",
39913
+ form: "single",
39914
+ optional: false
39915
+ }],
39916
+ "pipelineOrchestrator.resolvePipeline": [{
39917
+ name: "deviceId",
39918
+ form: "single",
39919
+ optional: false
39920
+ }],
39921
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
39922
+ name: "deviceId",
39923
+ form: "single",
39924
+ optional: false
39925
+ }],
39926
+ "pipelineOrchestrator.setCameraStepOverride": [{
39927
+ name: "deviceId",
39928
+ form: "single",
39929
+ optional: false
39930
+ }],
39931
+ "pipelineOrchestrator.setCameraStepToggle": [{
39932
+ name: "deviceId",
39933
+ form: "single",
39934
+ optional: false
39935
+ }],
39936
+ "pipelineOrchestrator.setCameraSwitch": [{
39937
+ name: "deviceId",
39938
+ form: "single",
39939
+ optional: false
39940
+ }],
39941
+ "pipelineOrchestrator.setPipelineDevicePin": [{
39942
+ name: "deviceId",
39943
+ form: "single",
39944
+ optional: false
39945
+ }],
39946
+ "pipelineOrchestrator.unassignAudio": [{
39947
+ name: "deviceId",
39948
+ form: "single",
39949
+ optional: false
39950
+ }],
39951
+ "pipelineOrchestrator.unassignPipeline": [{
39952
+ name: "deviceId",
39953
+ form: "single",
39954
+ optional: false
39955
+ }],
39956
+ "pipelineRunner.attachCamera": [{
39957
+ name: "deviceId",
39958
+ form: "single",
39959
+ optional: false
39960
+ }],
39961
+ "pipelineRunner.detachCamera": [{
39962
+ name: "deviceId",
39963
+ form: "single",
39964
+ optional: false
39965
+ }],
39966
+ "pipelineRunner.getCameraMetrics": [{
39967
+ name: "deviceId",
39968
+ form: "single",
39969
+ optional: false
39970
+ }],
39971
+ "pipelineRunner.reportMotion": [{
39972
+ name: "deviceId",
39973
+ form: "single",
39974
+ optional: false
39975
+ }],
39976
+ "pipelineRunner.runDetailSubtree": [{
39977
+ name: "deviceId",
39978
+ form: "single",
39979
+ optional: false
39980
+ }],
39981
+ "pipelineRunner.runStatelessStep": [{
39982
+ name: "sourceDeviceId",
39983
+ form: "single",
39984
+ optional: false
39985
+ }],
39986
+ "plateGallery.getPlateByTrack": [{
39987
+ name: "deviceId",
39988
+ form: "single",
39989
+ optional: false
39990
+ }],
39991
+ "plateGallery.listPlates": [{
39992
+ name: "deviceId",
39993
+ form: "single",
39994
+ optional: true
39995
+ }],
39996
+ "privacyMask.getOptions": [{
39997
+ name: "deviceId",
39998
+ form: "single",
39999
+ optional: false
40000
+ }],
40001
+ "privacyMask.setAudioEnabled": [{
40002
+ name: "deviceId",
40003
+ form: "single",
40004
+ optional: false
40005
+ }],
40006
+ "privacyMask.setMask": [{
40007
+ name: "deviceId",
40008
+ form: "single",
40009
+ optional: false
40010
+ }],
40011
+ "ptz.continuousMove": [{
40012
+ name: "deviceId",
40013
+ form: "single",
40014
+ optional: false
40015
+ }],
40016
+ "ptz.deletePreset": [{
40017
+ name: "deviceId",
40018
+ form: "single",
40019
+ optional: false
40020
+ }],
40021
+ "ptz.getOptions": [{
40022
+ name: "deviceId",
40023
+ form: "single",
40024
+ optional: false
40025
+ }],
40026
+ "ptz.getPosition": [{
40027
+ name: "deviceId",
40028
+ form: "single",
40029
+ optional: false
40030
+ }],
40031
+ "ptz.getPresets": [{
40032
+ name: "deviceId",
40033
+ form: "single",
40034
+ optional: false
40035
+ }],
40036
+ "ptz.goHome": [{
40037
+ name: "deviceId",
40038
+ form: "single",
40039
+ optional: false
40040
+ }],
40041
+ "ptz.goToPreset": [{
40042
+ name: "deviceId",
40043
+ form: "single",
40044
+ optional: false
40045
+ }],
40046
+ "ptz.move": [{
40047
+ name: "deviceId",
40048
+ form: "single",
40049
+ optional: false
40050
+ }],
40051
+ "ptz.savePreset": [{
40052
+ name: "deviceId",
40053
+ form: "single",
40054
+ optional: false
40055
+ }],
40056
+ "ptz.setAutofocus": [{
40057
+ name: "deviceId",
40058
+ form: "single",
40059
+ optional: false
40060
+ }],
40061
+ "ptz.stop": [{
40062
+ name: "deviceId",
40063
+ form: "single",
40064
+ optional: false
40065
+ }],
40066
+ "ptzAutotrack.getSettings": [{
40067
+ name: "deviceId",
40068
+ form: "single",
40069
+ optional: false
40070
+ }],
40071
+ "ptzAutotrack.getStatus": [{
40072
+ name: "deviceId",
40073
+ form: "single",
40074
+ optional: false
40075
+ }],
40076
+ "ptzAutotrack.setEnabled": [{
40077
+ name: "deviceId",
40078
+ form: "single",
40079
+ optional: false
40080
+ }],
40081
+ "ptzAutotrack.setSettings": [{
40082
+ name: "deviceId",
40083
+ form: "single",
40084
+ optional: false
40085
+ }],
40086
+ "reboot.reboot": [{
40087
+ name: "deviceId",
40088
+ form: "single",
40089
+ optional: false
40090
+ }],
40091
+ "recording.deleteFootprint": [{
40092
+ name: "deviceId",
40093
+ form: "single",
40094
+ optional: false
40095
+ }],
40096
+ "recording.getAvailability": [{
40097
+ name: "deviceId",
40098
+ form: "single",
40099
+ optional: false
40100
+ }],
40101
+ "recording.getDaysWithRecordings": [{
40102
+ name: "deviceId",
40103
+ form: "single",
40104
+ optional: false
40105
+ }],
40106
+ "recording.getDeviceConfig": [{
40107
+ name: "deviceId",
40108
+ form: "single",
40109
+ optional: false
40110
+ }],
40111
+ "recording.getPlaybackManifest": [{
40112
+ name: "deviceId",
40113
+ form: "single",
40114
+ optional: false
40115
+ }],
40116
+ "recording.listOpsLog": [{
40117
+ name: "deviceId",
40118
+ form: "single",
40119
+ optional: true
40120
+ }],
40121
+ "recording.locateSegment": [{
40122
+ name: "deviceId",
40123
+ form: "single",
40124
+ optional: false
40125
+ }],
40126
+ "recording.pruneFootage": [{
40127
+ name: "deviceId",
40128
+ form: "single",
40129
+ optional: false
40130
+ }],
40131
+ "recording.readGopBytes": [{
40132
+ name: "deviceId",
40133
+ form: "single",
40134
+ optional: false
40135
+ }],
40136
+ "recording.readSegmentBytes": [{
40137
+ name: "deviceId",
40138
+ form: "single",
40139
+ optional: false
40140
+ }],
40141
+ "recording.relocateFootage": [{
40142
+ name: "deviceId",
40143
+ form: "single",
40144
+ optional: true
40145
+ }],
40146
+ "recording.renderClip": [{
40147
+ name: "deviceId",
40148
+ form: "single",
40149
+ optional: false
40150
+ }],
40151
+ "recording.renderGif": [{
40152
+ name: "deviceId",
40153
+ form: "single",
40154
+ optional: false
40155
+ }],
40156
+ "recording.rescanStorage": [{
40157
+ name: "deviceId",
40158
+ form: "single",
40159
+ optional: false
40160
+ }],
40161
+ "recording.setDeviceConfig": [{
40162
+ name: "deviceId",
40163
+ form: "single",
40164
+ optional: false
40165
+ }],
40166
+ "recording.startStorageMigrationMove": [{
40167
+ name: "deviceId",
40168
+ form: "single",
40169
+ optional: true
40170
+ }],
40171
+ "recordingExport.createExport": [{
40172
+ name: "deviceId",
40173
+ form: "single",
40174
+ optional: false
40175
+ }],
40176
+ "recordingExport.listExports": [{
40177
+ name: "deviceId",
40178
+ form: "single",
40179
+ optional: true
40180
+ }],
40181
+ "sceneMonitor.captureReference": [{
40182
+ name: "deviceId",
40183
+ form: "single",
40184
+ optional: false
40185
+ }],
40186
+ "sceneMonitor.createScene": [{
40187
+ name: "deviceId",
40188
+ form: "single",
40189
+ optional: false
40190
+ }],
40191
+ "sceneMonitor.deleteReference": [{
40192
+ name: "deviceId",
40193
+ form: "single",
40194
+ optional: false
40195
+ }],
40196
+ "sceneMonitor.deleteScene": [{
40197
+ name: "deviceId",
40198
+ form: "single",
40199
+ optional: false
40200
+ }],
40201
+ "sceneMonitor.listScenes": [{
40202
+ name: "deviceId",
40203
+ form: "single",
40204
+ optional: false
40205
+ }],
40206
+ "sceneMonitor.recheckNow": [{
40207
+ name: "deviceId",
40208
+ form: "single",
40209
+ optional: false
40210
+ }],
40211
+ "sceneMonitor.resetScene": [{
40212
+ name: "deviceId",
40213
+ form: "single",
40214
+ optional: false
40215
+ }],
40216
+ "sceneMonitor.updateScene": [{
40217
+ name: "deviceId",
40218
+ form: "single",
40219
+ optional: false
40220
+ }],
40221
+ "scriptRunner.run": [{
40222
+ name: "deviceId",
40223
+ form: "single",
40224
+ optional: false
40225
+ }],
40226
+ "scriptRunner.stop": [{
40227
+ name: "deviceId",
40228
+ form: "single",
40229
+ optional: false
40230
+ }],
40231
+ "snapshot.getSnapshot": [{
40232
+ name: "deviceId",
40233
+ form: "single",
40234
+ optional: false
40235
+ }],
40236
+ "snapshot.getSnapshotLinks": [{
40237
+ name: "targets",
40238
+ form: "object-array",
40239
+ optional: false,
40240
+ itemField: "deviceId"
40241
+ }],
40242
+ "snapshot.getSnapshotOverview": [{
40243
+ name: "deviceIds",
40244
+ form: "array",
40245
+ optional: false
40246
+ }],
40247
+ "snapshot.invalidateCache": [{
40248
+ name: "deviceId",
40249
+ form: "single",
40250
+ optional: false
40251
+ }],
40252
+ "streamBroker.acquireEgressTranscode": [{
40253
+ name: "deviceId",
40254
+ form: "single",
40255
+ optional: false
40256
+ }],
40257
+ "streamBroker.assignProfile": [{
40258
+ name: "deviceId",
40259
+ form: "single",
40260
+ optional: false
40261
+ }],
40262
+ "streamBroker.getDeviceAudioMute": [{
40263
+ name: "deviceId",
40264
+ form: "single",
40265
+ optional: false
40266
+ }],
40267
+ "streamBroker.getStreamWithCodec": [{
40268
+ name: "deviceId",
40269
+ form: "single",
40270
+ optional: false
40271
+ }],
40272
+ "streamBroker.produceEventMedia": [{
40273
+ name: "deviceId",
40274
+ form: "single",
40275
+ optional: false
40276
+ }],
40277
+ "streamBroker.publishCameraStream": [{
40278
+ name: "deviceId",
40279
+ form: "single",
40280
+ optional: false
40281
+ }],
40282
+ "streamBroker.renderPreBufferClip": [{
40283
+ name: "deviceId",
40284
+ form: "single",
40285
+ optional: false
40286
+ }],
40287
+ "streamBroker.restartProfile": [{
40288
+ name: "deviceId",
40289
+ form: "single",
40290
+ optional: false
40291
+ }],
40292
+ "streamBroker.retractCameraStream": [{
40293
+ name: "deviceId",
40294
+ form: "single",
40295
+ optional: false
40296
+ }],
40297
+ "streamBroker.setDeviceAudioMute": [{
40298
+ name: "deviceId",
40299
+ form: "single",
40300
+ optional: false
40301
+ }],
40302
+ "streamBroker.unassignProfile": [{
40303
+ name: "deviceId",
40304
+ form: "single",
40305
+ optional: false
40306
+ }],
40307
+ "streamCatalog.getCatalog": [{
40308
+ name: "deviceId",
40309
+ form: "single",
40310
+ optional: false
40311
+ }],
40312
+ "streamParams.getConfigSchema": [{
40313
+ name: "deviceId",
40314
+ form: "single",
40315
+ optional: false
40316
+ }],
40317
+ "streamParams.getOptions": [{
40318
+ name: "deviceId",
40319
+ form: "single",
40320
+ optional: false
40321
+ }],
40322
+ "streamParams.setProfile": [{
40323
+ name: "deviceId",
40324
+ form: "single",
40325
+ optional: false
40326
+ }],
40327
+ "switch.setState": [{
40328
+ name: "deviceId",
40329
+ form: "single",
40330
+ optional: false
40331
+ }],
40332
+ "vacuumControl.locate": [{
40333
+ name: "deviceId",
40334
+ form: "single",
40335
+ optional: false
40336
+ }],
40337
+ "vacuumControl.pause": [{
40338
+ name: "deviceId",
40339
+ form: "single",
40340
+ optional: false
40341
+ }],
40342
+ "vacuumControl.returnToBase": [{
40343
+ name: "deviceId",
40344
+ form: "single",
40345
+ optional: false
40346
+ }],
40347
+ "vacuumControl.setFanSpeed": [{
40348
+ name: "deviceId",
40349
+ form: "single",
40350
+ optional: false
40351
+ }],
40352
+ "vacuumControl.start": [{
40353
+ name: "deviceId",
40354
+ form: "single",
40355
+ optional: false
40356
+ }],
40357
+ "vacuumControl.stop": [{
40358
+ name: "deviceId",
40359
+ form: "single",
40360
+ optional: false
40361
+ }],
40362
+ "valve.close": [{
40363
+ name: "deviceId",
40364
+ form: "single",
40365
+ optional: false
40366
+ }],
40367
+ "valve.open": [{
40368
+ name: "deviceId",
40369
+ form: "single",
40370
+ optional: false
40371
+ }],
40372
+ "valve.setPosition": [{
40373
+ name: "deviceId",
40374
+ form: "single",
40375
+ optional: false
40376
+ }],
40377
+ "valve.stop": [{
40378
+ name: "deviceId",
40379
+ form: "single",
40380
+ optional: false
40381
+ }],
40382
+ "videoclips.getClipPlayback": [{
40383
+ name: "deviceId",
40384
+ form: "single",
40385
+ optional: false
40386
+ }],
40387
+ "videoclips.listClips": [{
40388
+ name: "deviceId",
40389
+ form: "single",
40390
+ optional: false
40391
+ }],
40392
+ "waterHeater.setAway": [{
40393
+ name: "deviceId",
40394
+ form: "single",
40395
+ optional: false
40396
+ }],
40397
+ "waterHeater.setOperationMode": [{
40398
+ name: "deviceId",
40399
+ form: "single",
40400
+ optional: false
40401
+ }],
40402
+ "waterHeater.setTargetTemp": [{
40403
+ name: "deviceId",
40404
+ form: "single",
40405
+ optional: false
40406
+ }],
40407
+ "webrtcSession.addIceCandidate": [{
40408
+ name: "deviceId",
40409
+ form: "single",
40410
+ optional: false
40411
+ }],
40412
+ "webrtcSession.closeSession": [{
40413
+ name: "deviceId",
40414
+ form: "single",
40415
+ optional: false
40416
+ }],
40417
+ "webrtcSession.createSession": [{
40418
+ name: "deviceId",
40419
+ form: "single",
40420
+ optional: false
40421
+ }],
40422
+ "webrtcSession.getIceCandidates": [{
40423
+ name: "deviceId",
40424
+ form: "single",
40425
+ optional: false
40426
+ }],
40427
+ "webrtcSession.getSessionState": [{
40428
+ name: "deviceId",
40429
+ form: "single",
40430
+ optional: false
40431
+ }],
40432
+ "webrtcSession.handleAnswer": [{
40433
+ name: "deviceId",
40434
+ form: "single",
40435
+ optional: false
40436
+ }],
40437
+ "webrtcSession.handleOffer": [{
40438
+ name: "deviceId",
40439
+ form: "single",
40440
+ optional: false
40441
+ }],
40442
+ "webrtcSession.hasAdaptiveBitrate": [{
40443
+ name: "deviceId",
40444
+ form: "single",
40445
+ optional: false
40446
+ }],
40447
+ "webrtcSession.listStreams": [{
40448
+ name: "deviceId",
40449
+ form: "single",
40450
+ optional: false
40451
+ }],
40452
+ "zoneAnalytics.getCameraHistory": [{
40453
+ name: "deviceId",
40454
+ form: "single",
40455
+ optional: false
40456
+ }],
40457
+ "zoneAnalytics.getCurrentSnapshot": [{
40458
+ name: "deviceId",
40459
+ form: "single",
40460
+ optional: false
40461
+ }],
40462
+ "zoneAnalytics.getUnzonedHistory": [{
40463
+ name: "deviceId",
40464
+ form: "single",
40465
+ optional: false
40466
+ }],
40467
+ "zoneAnalytics.getZoneHistory": [{
40468
+ name: "deviceId",
40469
+ form: "single",
40470
+ optional: false
40471
+ }],
40472
+ "zoneRules.listRules": [{
40473
+ name: "deviceId",
40474
+ form: "single",
40475
+ optional: false
40476
+ }],
40477
+ "zoneRules.setRules": [{
40478
+ name: "deviceId",
40479
+ form: "single",
40480
+ optional: false
40481
+ }],
40482
+ "zones.addZone": [{
40483
+ name: "deviceId",
40484
+ form: "single",
40485
+ optional: false
40486
+ }],
40487
+ "zones.listZones": [{
40488
+ name: "deviceId",
40489
+ form: "single",
40490
+ optional: false
40491
+ }],
40492
+ "zones.removeZone": [{
40493
+ name: "deviceId",
40494
+ form: "single",
40495
+ optional: false
40496
+ }],
40497
+ "zones.updateZone": [{
40498
+ name: "deviceId",
40499
+ form: "single",
40500
+ optional: false
40501
+ }]
40502
+ });
37720
40503
  Object.freeze({
37721
40504
  "broker": "broker",
37722
40505
  "device-export": "device-export",