@camstack/addon-remote-storage 1.2.16 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { randomUUID } from "node:crypto";
2
2
  import * as path from "node:path";
3
- //#region ../types/dist/event-category-Cv9dO26A.mjs
3
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -207,6 +207,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
207
207
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
208
208
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
209
209
  /**
210
+ * A node the orchestrator would otherwise place cameras on has NO usable
211
+ * inference device: the operator enabled one or more accelerators there and
212
+ * the live probe reports every one of them unavailable. Emitted once per
213
+ * TRANSITION into that state (never per dispatch), and the node is dropped
214
+ * from the placement candidate set for as long as it holds.
215
+ *
216
+ * This exists because the state was previously invisible: little-unraid
217
+ * absorbed 283k inference errors in a day while still being handed cameras,
218
+ * and nothing in the system said so.
219
+ *
220
+ * A node with no accelerators configured at all is NOT this — its devices
221
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
222
+ * serves it exactly as before.
223
+ */
224
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
225
+ /**
226
+ * A camera has an OPEN detection session and has produced no detection at
227
+ * all for longer than the blind threshold — the camera is being decoded and
228
+ * inferred and is returning nothing. Emitted once per transition into blind,
229
+ * per camera.
230
+ *
231
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
232
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
233
+ * camera" produce byte-identical silence.
234
+ */
235
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
236
+ /**
210
237
  * Per-camera pipeline config was mutated by the orchestrator
211
238
  * (3-level settings change via `setAgentAddonDefaults` /
212
239
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -2998,6 +3025,9 @@ function handlePipeResult(left, next, ctx) {
2998
3025
  fallback: left.fallback
2999
3026
  }, ctx);
3000
3027
  }
3028
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3029
+ $ZodPipe.init(inst, def);
3030
+ });
3001
3031
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3002
3032
  $ZodType.init(inst, def);
3003
3033
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5183,6 +5213,10 @@ function pipe(in_, out) {
5183
5213
  out
5184
5214
  });
5185
5215
  }
5216
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5217
+ ZodPipe.init(inst, def);
5218
+ $ZodPreprocess.init(inst, def);
5219
+ });
5186
5220
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5187
5221
  $ZodReadonly.init(inst, def);
5188
5222
  ZodType.init(inst, def);
@@ -5241,6 +5275,13 @@ function _instanceof(cls, params = {}) {
5241
5275
  };
5242
5276
  return inst;
5243
5277
  }
5278
+ function preprocess(fn, schema) {
5279
+ return new ZodPreprocess({
5280
+ type: "pipe",
5281
+ in: transform(fn),
5282
+ out: schema
5283
+ });
5284
+ }
5244
5285
  //#endregion
5245
5286
  //#region ../../node_modules/zod/v4/classic/compat.js
5246
5287
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10759,6 +10800,8 @@ var QueryFilterSchema = object({
10759
10800
  where: record(string(), unknown()).optional(),
10760
10801
  whereIn: record(string(), array(unknown())).optional(),
10761
10802
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10803
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10804
+ whereNot: record(string(), unknown()).optional(),
10762
10805
  orderBy: object({
10763
10806
  field: string(),
10764
10807
  direction: _enum(["asc", "desc"])
@@ -10778,7 +10821,8 @@ var QueryFilterSchema = object({
10778
10821
  var MutationFilterSchema = object({
10779
10822
  where: record(string(), unknown()).optional(),
10780
10823
  whereIn: record(string(), array(unknown())).optional(),
10781
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10824
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10825
+ whereNot: record(string(), unknown()).optional()
10782
10826
  });
10783
10827
  /** A single stored record: `{ id, data }`. */
10784
10828
  var SettingsRecordSchema = object({
@@ -12135,6 +12179,17 @@ var LlmImageSchema = object({
12135
12179
  bytes: _instanceof(Uint8Array),
12136
12180
  mimeType: string()
12137
12181
  });
12182
+ /**
12183
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12184
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12185
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12186
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12187
+ */
12188
+ var LlmRetryPolicySchema = object({
12189
+ enabled: boolean().default(false),
12190
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12191
+ maxAttempts: number().int().min(1).max(5).default(1)
12192
+ });
12138
12193
  var LlmGenerateBaseInputSchema = object({
12139
12194
  /** Collection routing (the notification-output posture). */
12140
12195
  addonId: string().optional(),
@@ -12149,7 +12204,28 @@ var LlmGenerateBaseInputSchema = object({
12149
12204
  jsonSchema: record(string(), unknown()).optional(),
12150
12205
  /** Per-call override of the profile default. */
12151
12206
  maxTokens: number().int().positive().optional(),
12152
- temperature: number().optional()
12207
+ temperature: number().optional(),
12208
+ /** Per-call override of the profile default (nucleus sampling). */
12209
+ topP: number().min(0).max(1).optional(),
12210
+ /** Per-call override of the profile default (top-k sampling). */
12211
+ topK: number().int().positive().optional(),
12212
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12213
+ timeoutMs: number().int().positive().optional(),
12214
+ /** Per-call override; beats both the consumer table and the profile. */
12215
+ retry: LlmRetryPolicySchema.optional(),
12216
+ /**
12217
+ * Caller-minted id that makes this generation CANCELLABLE.
12218
+ *
12219
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12220
+ * the call against 8 s and free their own slot when the timer wins, while the
12221
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12222
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12223
+ * not generations, and the real load is unbounded.
12224
+ *
12225
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12226
+ * `llm.cancel({ requestId })` tears the socket down.
12227
+ */
12228
+ requestId: string().optional()
12153
12229
  });
12154
12230
  /**
12155
12231
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12162,6 +12238,18 @@ var LlmGenerateBaseInputSchema = object({
12162
12238
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12163
12239
  * watchdog — operator decision #3).
12164
12240
  */
12241
+ /**
12242
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12243
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12244
+ * REF rather than looked up at install time, so what the operator approved in
12245
+ * the preview is exactly what the node downloads.
12246
+ */
12247
+ var ManagedModelExtraFileSchema = object({
12248
+ url: string(),
12249
+ filename: string(),
12250
+ sizeBytes: number(),
12251
+ sha256: string().optional()
12252
+ });
12165
12253
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12166
12254
  object({
12167
12255
  kind: literal("catalog"),
@@ -12170,7 +12258,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12170
12258
  object({
12171
12259
  kind: literal("url"),
12172
12260
  url: string(),
12173
- sha256: string().optional()
12261
+ sha256: string().optional(),
12262
+ /** Picker/status label; the file basename when absent. */
12263
+ label: string().optional(),
12264
+ sizeBytes: number().optional(),
12265
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12174
12266
  }),
12175
12267
  object({
12176
12268
  kind: literal("path"),
@@ -12188,13 +12280,82 @@ var ManagedRuntimeConfigSchema = object({
12188
12280
  gpuLayers: number().int().default(0),
12189
12281
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12190
12282
  threads: number().int().optional(),
12191
- /** Concurrent slots. */
12283
+ /** Concurrent slots (`--parallel`). */
12192
12284
  parallel: number().int().default(1),
12285
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12286
+ batchSize: number().int().positive().optional(),
12287
+ /** Physical batch / micro-batch (`-ub`). */
12288
+ ubatchSize: number().int().positive().optional(),
12289
+ /**
12290
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12291
+ * is a no-op elsewhere, so it is offered rather than assumed.
12292
+ */
12293
+ flashAttention: boolean().default(false),
12294
+ /**
12295
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12296
+ * inference. Costs the full model size in resident memory — which is exactly
12297
+ * what the RAM budget is counting.
12298
+ */
12299
+ mlock: boolean().default(false),
12300
+ /**
12301
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12302
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12303
+ * store produces on every first token.
12304
+ */
12305
+ noMmap: boolean().default(false),
12306
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12307
+ * cheapest way to fit a longer context in the same RAM. */
12308
+ cacheTypeK: _enum([
12309
+ "f32",
12310
+ "f16",
12311
+ "q8_0",
12312
+ "q5_1",
12313
+ "q5_0",
12314
+ "q4_1",
12315
+ "q4_0"
12316
+ ]).optional(),
12317
+ cacheTypeV: _enum([
12318
+ "f32",
12319
+ "f16",
12320
+ "q8_0",
12321
+ "q5_1",
12322
+ "q5_0",
12323
+ "q4_1",
12324
+ "q4_0"
12325
+ ]).optional(),
12326
+ /**
12327
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12328
+ * (which most vision chat templates need and some language-only models
12329
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12330
+ *
12331
+ * It is NOT a second place to set the flags above. A token that collides
12332
+ * with a typed field is REJECTED at start, naming the field that owns it
12333
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12334
+ * the "two switches that disagree" failure this repo has already shipped
12335
+ * twice (D62).
12336
+ */
12337
+ extraArgs: array(string()).default([]),
12193
12338
  /** Else lazy: first generate boots it. */
12194
12339
  autoStart: boolean().default(false),
12195
12340
  /** 0 = never; frees RAM after quiet periods. */
12196
12341
  idleStopMinutes: number().int().default(30)
12197
12342
  });
12343
+ /**
12344
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12345
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12346
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12347
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12348
+ */
12349
+ var LlmDownloadProgressSchema = object({
12350
+ phase: _enum(["downloading", "verifying"]),
12351
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12352
+ file: string(),
12353
+ fileIndex: number().int(),
12354
+ fileCount: number().int(),
12355
+ /** Across the WHOLE install, not the current file. */
12356
+ downloadedBytes: number(),
12357
+ totalBytes: number().optional()
12358
+ });
12198
12359
  var LlmRuntimeStatusSchema = object({
12199
12360
  /** Status is ALWAYS node-qualified. */
12200
12361
  nodeId: string(),
@@ -12211,6 +12372,8 @@ var LlmRuntimeStatusSchema = object({
12211
12372
  modelPath: string().optional(),
12212
12373
  modelId: string().optional(),
12213
12374
  downloadProgress: number().min(0).max(1).optional(),
12375
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12376
+ download: LlmDownloadProgressSchema.optional(),
12214
12377
  lastError: string().optional(),
12215
12378
  crashesInWindow: number(),
12216
12379
  /** Child RSS (sampled best-effort). */
@@ -12221,7 +12384,14 @@ var LlmNodeModelSchema = object({
12221
12384
  file: string(),
12222
12385
  sizeBytes: number(),
12223
12386
  catalogId: string().optional(),
12224
- installedAt: number().optional()
12387
+ installedAt: number().optional(),
12388
+ /**
12389
+ * Absolute path on the node. Present so a file that is on disk but matches
12390
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12391
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12392
+ * it the picker could list such a file and do nothing with it.
12393
+ */
12394
+ path: string().optional()
12225
12395
  });
12226
12396
  var LlmRuntimeDiskUsageSchema = object({
12227
12397
  nodeId: string(),
@@ -12277,10 +12447,47 @@ var LlmProfileSchema = object({
12277
12447
  baseUrl: string().optional(),
12278
12448
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12279
12449
  apiKey: string().optional(),
12450
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12451
+ * degraded to text — that shipped once and produced a confident answer to a
12452
+ * question about a picture nobody sent. */
12280
12453
  supportsVision: boolean(),
12281
12454
  temperature: number().min(0).max(2).optional(),
12455
+ /** Nucleus sampling. Every wire we speak has it. */
12456
+ topP: number().min(0).max(1).optional(),
12457
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12458
+ * wire does, and the client drops it there (measured: the request body gets
12459
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12460
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12461
+ topK: number().int().positive().optional(),
12282
12462
  maxTokens: number().int().positive().optional(),
12463
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12464
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12465
+ * the model with, so it is the one field that changes a PROCESS. */
12466
+ contextLength: number().int().positive().optional(),
12467
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12468
+ * two system prompts fighting is worse than either alone). */
12469
+ systemPrompt: string().optional(),
12470
+ /** Total generation bound — the only one a unary call has. */
12283
12471
  timeoutMs: number().int().positive().default(6e4),
12472
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12473
+ * response headers: on the LM Studio / llama-server wire those are written
12474
+ * once the model has finished loading, so they belong to the bound below. */
12475
+ connectTimeoutMs: number().int().positive().default(1e4),
12476
+ /** Accepted, but no output yet — response headers included, because a cold
12477
+ * GPU load is exactly what happens before them. */
12478
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12479
+ /** Output started then stopped. */
12480
+ idleTimeoutMs: number().int().positive().default(6e4),
12481
+ /** Profile-level default. The per-consumer table and a per-call override
12482
+ * both beat it — see `resolveRetryPolicy`. */
12483
+ retry: LlmRetryPolicySchema.default({
12484
+ enabled: false,
12485
+ maxAttempts: 1
12486
+ }),
12487
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12488
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12489
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12490
+ toolsEnabled: boolean().default(false),
12284
12491
  extraHeaders: record(string(), string()).optional(),
12285
12492
  /** kind === 'managed-local' only (spec §4). */
12286
12493
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12330,6 +12537,36 @@ var ManagedModelCatalogEntrySchema = object({
12330
12537
  /** Vision models: companion projector file. */
12331
12538
  mmprojUrl: string().optional()
12332
12539
  });
12540
+ /**
12541
+ * The outcome of turning one operator-typed Hugging Face reference into a
12542
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12543
+ * I will not pick for you" is a normal answer the UI has to render, not an
12544
+ * exception.
12545
+ *
12546
+ * `candidates` is the whole reason the refusal is usable — every string in it
12547
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12548
+ */
12549
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12550
+ ok: literal(true),
12551
+ /** Ready to hand to `installModel` unchanged. */
12552
+ model: ManagedModelRefSchema,
12553
+ label: string(),
12554
+ repo: string(),
12555
+ quantization: string(),
12556
+ purpose: _enum(["text", "vision"]),
12557
+ totalBytes: number(),
12558
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12559
+ * see that 0.9 GB of it is a projector they did not name. */
12560
+ extraFilenames: array(string())
12561
+ }), object({
12562
+ ok: literal(false),
12563
+ code: string(),
12564
+ message: string(),
12565
+ candidates: array(string()).optional(),
12566
+ /** Set when the refusal was only the ceiling: re-calling with
12567
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12568
+ requiredBytes: number().optional()
12569
+ })]);
12333
12570
  var LlmRuntimeNodeSchema = object({
12334
12571
  nodeId: string(),
12335
12572
  reachable: boolean(),
@@ -12342,7 +12579,10 @@ var ProfileRefInputSchema = object({
12342
12579
  addonId: string(),
12343
12580
  profileId: string()
12344
12581
  });
12345
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12582
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12583
+ addonId: string().optional(),
12584
+ requestId: string()
12585
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12346
12586
  kind: "mutation",
12347
12587
  auth: "admin"
12348
12588
  }), method(ProfileRefInputSchema, _void(), {
@@ -12363,6 +12603,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12363
12603
  consumer: string().optional(),
12364
12604
  profileId: string().optional()
12365
12605
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12606
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12607
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12608
+ ref: string(),
12609
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12610
+ maxBytes: number().positive().optional()
12611
+ }), HfModelResolutionSchema, {
12612
+ kind: "mutation",
12613
+ auth: "admin"
12614
+ }), method(object({
12366
12615
  nodeId: string(),
12367
12616
  model: ManagedModelRefSchema
12368
12617
  }), _void(), {
@@ -13972,6 +14221,8 @@ var NcSystemEventKindSchema = _enum([
13972
14221
  "stream-offline",
13973
14222
  "node-online",
13974
14223
  "node-offline",
14224
+ "node-inference-unavailable",
14225
+ "detection-blind",
13975
14226
  "addon-update-available",
13976
14227
  "server-update-available",
13977
14228
  "alarm-triggered",
@@ -14033,7 +14284,16 @@ var NcScheduleSchema = object({
14033
14284
  });
14034
14285
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14035
14286
  var NcPlateMatcherSchema = object({
14036
- values: array(string().min(1)).min(1),
14287
+ /**
14288
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14289
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14290
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14291
+ * rather than merely seen. A subject carrying no plate still fails.
14292
+ *
14293
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14294
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14295
+ */
14296
+ values: array(string().min(1)),
14037
14297
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14038
14298
  maxDistance: number().int().min(0).max(3).default(1)
14039
14299
  });
@@ -14067,28 +14327,36 @@ var NcOccupancyConditionSchema = object({
14067
14327
  /**
14068
14328
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14069
14329
  *
14070
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14071
- * reference notifier uses, so an operator moving between them re-uses what
14072
- * they already know): a rule matches when, over a sampling window of
14073
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14074
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14075
- *
14076
- * - `dbThreshold` its level is at or above this many dBFS (see
14077
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14078
- * - `labels` the classifier put at least one of these labels on it.
14079
- *
14080
- * Both are OPTIONAL and independent, which is the point of the shape: a
14081
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14082
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14083
- * is given** a window in which every sample is trivially a hit would fire on
14084
- * silence, so the engine refuses such a condition rather than notifying on
14085
- * nothing (the schema cannot express "at least one of" without becoming a
14086
- * ZodEffects the cap path would have to special-case).
14087
- *
14088
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14089
- * must be FULL before it can match a window that has been open for two
14090
- * seconds of its ten is 100% of nothing, and firing on it would make
14091
- * `samplingSeconds` decorative.
14330
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14331
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14332
+ * there is no second switch that can disagree with the first and every rule
14333
+ * authored before the decision migrates for free (`audioModeOf`):
14334
+ *
14335
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14336
+ * classifier labels with one of them. No window, no percentage:
14337
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14338
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14339
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14340
+ * reaches this condition if the classifier was already confident enough.
14341
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14342
+ * the condition: at least `hitPercent`% of the samples over
14343
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14344
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14345
+ * must be FULL before it can match a window open for two of its ten
14346
+ * seconds is 100% of nothing.
14347
+ *
14348
+ * **Why label mode has no window.** It had one, and it never fired: the
14349
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14350
+ * of them per episode, even through continuous crying. The measured maximum
14351
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14352
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14353
+ * the wrong question to ask of a sparse classifier.
14354
+ *
14355
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14356
+ * and the rule would fire on silence. The schema cannot express "exactly one
14357
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14358
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14359
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14092
14360
  *
14093
14361
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14094
14362
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14096,13 +14364,13 @@ var NcOccupancyConditionSchema = object({
14096
14364
  * an operator who typed `dog` mean the same thing.
14097
14365
  */
14098
14366
  var NcAudioConditionSchema = object({
14099
- /** Audio macro labels; absent = any sound (level-only rule). */
14367
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14100
14368
  labels: array(string().min(1)).min(1).optional(),
14101
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14369
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14102
14370
  dbThreshold: number().min(-96).max(0).optional(),
14103
- /** Percentage of the window's samples that must be hits (1–100). */
14371
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14104
14372
  hitPercent: number().int().min(1).max(100).default(60),
14105
- /** Length of the sampling window in seconds. */
14373
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14106
14374
  samplingSeconds: number().int().min(1).max(300).default(10)
14107
14375
  });
14108
14376
  /**
@@ -14240,13 +14508,81 @@ var NcRuleActionsSchema = object({
14240
14508
  */
14241
14509
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14242
14510
  });
14511
+ /**
14512
+ * "This rule applies only while `deviceId` is in one of `states`."
14513
+ *
14514
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14515
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14516
+ * make the condition lie about devices whose states have no equivalent.
14517
+ *
14518
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14519
+ * condition that fired on "I could not read it" would be worse than no gate.
14520
+ */
14521
+ var NcDeviceStateConditionSchema = object({
14522
+ deviceId: number().int(),
14523
+ /** Any of these matches. */
14524
+ states: array(string().min(1)).min(1)
14525
+ });
14526
+ /**
14527
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14528
+ *
14529
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14530
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14531
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14532
+ * already has a trigger ("tell me about a person at the front door, but only
14533
+ * while the bin is still out"). That is why it composes with every delivery
14534
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14535
+ * kind exist for it — see D159.
14536
+ *
14537
+ * ── Identity ───────────────────────────────────────────────────────────────
14538
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14539
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14540
+ * carried as a HINT for the editor and for the log line, never as part of the
14541
+ * lookup key: a rule whose hint drifted must still gate correctly.
14542
+ *
14543
+ * ── Which boolean ──────────────────────────────────────────────────────────
14544
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14545
+ * already declares which boolean drives notification rules, and a second knob
14546
+ * that could disagree with it is exactly the D62 failure. Set it only to
14547
+ * override one rule against the scene's own default.
14548
+ *
14549
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14550
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14551
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14552
+ * evidence, in either direction.
14553
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14554
+ * The latch is a durable fact about the past ("it has diverged since I armed
14555
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14556
+ * reason the operator asked for a latch.
14557
+ *
14558
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14559
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14560
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14561
+ * said out loud in the log rather than dropped in silence.
14562
+ */
14563
+ var NcSceneConditionSchema = object({
14564
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14565
+ sceneId: string().min(1),
14566
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14567
+ deviceId: number().int().optional(),
14568
+ /** The state the scene must be in for the rule to fire. */
14569
+ requiredState: _enum(["matched", "diverged"]),
14570
+ /**
14571
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14572
+ * scene's own `emit` field, which is the only place that decision belongs.
14573
+ */
14574
+ latched: boolean().optional()
14575
+ });
14243
14576
  var NcConditionsSchema = object({
14244
14577
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14245
- deviceState: object({
14246
- deviceId: number().int(),
14247
- /** Any of these matches. */
14248
- states: array(string().min(1)).min(1)
14249
- }).optional(),
14578
+ deviceState: NcDeviceStateConditionSchema.optional(),
14579
+ /**
14580
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14581
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14582
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14583
+ * {@link NcSceneCondition} and D159.
14584
+ */
14585
+ scene: NcSceneConditionSchema.optional(),
14250
14586
  /** Device scope — absent = all devices. */
14251
14587
  devices: array(number()).optional(),
14252
14588
  /** Detector class names (any overlap with the record's class set). */
@@ -14272,18 +14608,47 @@ var NcConditionsSchema = object({
14272
14608
  */
14273
14609
  labelEquals: array(string().min(1)).optional(),
14274
14610
  /**
14275
- * Identity matcher. P1 boundary: matched against the record's collapsed
14276
- * `label` (the identity display name propagated by the face pipeline) —
14277
- * identity-ID matching rides in P2 when identity ids reach the record.
14611
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14612
+ * is about recognised people at all.
14613
+ *
14614
+ * Three states, and the empty one is the point:
14615
+ *
14616
+ * | value | meaning |
14617
+ * | --- | --- |
14618
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14619
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14620
+ * | a list | only these identities |
14621
+ *
14622
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14623
+ * `devices` list is every device), applied one level down: the operator has
14624
+ * turned the face scope ON and narrowed it to nothing, which is every known
14625
+ * face. No second field states the same thing — a switch that can disagree
14626
+ * with the list under it is worse than no switch (D62).
14627
+ *
14628
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14629
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14630
+ * the operator fixed the spelling. The id reaches the record on
14631
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14632
+ * `{{label}}` renders.
14633
+ *
14634
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14635
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14636
+ * for is left as it stands and reported, never dropped. The engine also
14637
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14638
+ * migration could not resolve keeps matching exactly what it matched before.
14278
14639
  */
14279
14640
  identities: array(string().min(1)).optional(),
14280
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14641
+ /**
14642
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14643
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14644
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14645
+ */
14281
14646
  plates: NcPlateMatcherSchema.optional(),
14282
14647
  /**
14283
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14284
- * Same P1 boundary: matched against the record's collapsed `label` (the
14285
- * identity display name). A record with NO label passes (nothing to
14286
- * exclude), unlike the include variant which fails on an absent label.
14648
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14649
+ * the same id members and the same lazy name→id migration. A record with NO
14650
+ * identity passes (nothing to exclude), unlike the include variant which
14651
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14287
14652
  */
14288
14653
  identitiesExclude: array(string().min(1)).optional(),
14289
14654
  /**
@@ -14675,7 +15040,80 @@ var NcRuleInputSchema = object({
14675
15040
  * a rule that predates the gate must keep delivering byte-for-byte as it
14676
15041
  * did, and absent is the only way to say that without a migration.
14677
15042
  */
14678
- confirm: NcConfirmSchema.optional()
15043
+ confirm: NcConfirmSchema.optional(),
15044
+ /**
15045
+ * WAIT for face/plate recognition before saying anything.
15046
+ *
15047
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15048
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15049
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15050
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15051
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15052
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15053
+ *
15054
+ * Only two honest answers exist, and this flag picks between them. It has
15055
+ * effect ONLY on a rule that declares a recognition scope
15056
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15057
+ * other rule there is nothing to wait for and the flag is inert.
15058
+ *
15059
+ * | value | what happens |
15060
+ * | --- | --- |
15061
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15062
+ * | 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) |
15063
+ *
15064
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15065
+ * on the addon cap path, and absent has to keep meaning exactly what every
15066
+ * rule authored before this field meant.
15067
+ *
15068
+ * The cost of `true` is stated here because the editor states it too: a rule
15069
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15070
+ * tests every zone the track visited and a `crossing` condition can no longer
15071
+ * be satisfied, because a closed track carries no crossing.
15072
+ */
15073
+ waitForEnhancement: boolean().optional(),
15074
+ /**
15075
+ * GROUP a burst of subjects into ONE notification that grows.
15076
+ *
15077
+ * Seconds of quiet after the last matching subject before the burst is
15078
+ * considered over. While it is open, the first subject enqueues immediately —
15079
+ * **exactly as today, with no added latency** — and every real growth (a new
15080
+ * subject, or a name confirmed on one already in it) REPLACES that
15081
+ * notification with an updated one naming everybody. The push carries the
15082
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15083
+ *
15084
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15085
+ *
15086
+ * ### Why an idle cutoff and not a window
15087
+ *
15088
+ * The measured seven-person arrival on device 590 spans 110 s with every
15089
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15090
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15091
+ * 30 is Frigate's shipped value for the same decision.
15092
+ *
15093
+ * ### What it replaces
15094
+ *
15095
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15096
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15097
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15098
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15099
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15100
+ * budget over GROUPS — which is what it always meant — and a growth is never
15101
+ * throttled by the window its own first member spent.
15102
+ *
15103
+ * ### Interaction with {@link waitForEnhancement}
15104
+ *
15105
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15106
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15107
+ * CLOSE — already carrying its name — and grows as later members close. That
15108
+ * is later, and complete. With grouping alone the group opens on the first
15109
+ * object event and picks up names as they are confirmed, through the growth
15110
+ * path. Neither combination fires twice for one subject.
15111
+ *
15112
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15113
+ * on the addon cap path, so absent must keep meaning what it meant before this
15114
+ * field existed.
15115
+ */
15116
+ groupIdleSec: number().int().min(0).max(600).optional()
14679
15117
  });
14680
15118
  /**
14681
15119
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14782,6 +15220,7 @@ var NcConditionDescriptorSchema = object({
14782
15220
  "occupancy",
14783
15221
  "audio",
14784
15222
  "deviceState",
15223
+ "scene",
14785
15224
  "systemEvent"
14786
15225
  ]),
14787
15226
  operator: _enum([
@@ -15187,7 +15626,87 @@ var MethodAccessSchema = _enum([
15187
15626
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15188
15627
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15189
15628
  var CapScopeSchema = _enum(["device", "system"]);
15190
- var TokenScopeSchema = discriminatedUnion("type", [
15629
+ /**
15630
+ * DeviceSelector (scope model v3 — 2026-08-12).
15631
+ *
15632
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15633
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15634
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15635
+ * AFTER the grant was minted — no re-grant, no re-login.
15636
+ *
15637
+ * - `all` — every device in the deployment. The broad viewer/operator
15638
+ * lever without a `category` grant (a `category` grant also covers device
15639
+ * caps that carry no deviceId; `all` is specifically the device set).
15640
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15641
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15642
+ * is NOT covered until the grant is edited.
15643
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15644
+ * DYNAMIC. A device that changes type, or a new device of the type,
15645
+ * re-resolves on the next request.
15646
+ * - `locations` — every device whose operator-assigned `location` label is
15647
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15648
+ * null/unset location matches NO `locations` selector.
15649
+ */
15650
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15651
+ object({ kind: literal("all") }),
15652
+ object({
15653
+ kind: literal("ids"),
15654
+ ids: array(number().int()).min(1)
15655
+ }),
15656
+ object({
15657
+ kind: literal("types"),
15658
+ types: array(_enum(DeviceType)).min(1)
15659
+ }),
15660
+ object({
15661
+ kind: literal("locations"),
15662
+ locations: array(string().min(1)).min(1)
15663
+ })
15664
+ ]);
15665
+ var DeviceTokenScopeSchema = object({
15666
+ type: literal("device"),
15667
+ /** The device SET this grant covers — resolved against the live fleet. */
15668
+ selector: DeviceSelectorSchema,
15669
+ access: array(MethodAccessSchema).min(1),
15670
+ /**
15671
+ * Whether a grant on a PARENT device transparently covers its accessory
15672
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15673
+ * Direction is parent → children ONLY.
15674
+ *
15675
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15676
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15677
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15678
+ * operator must grant on the child, not inherit from the parent). Set it
15679
+ * explicitly to override that default per grant.
15680
+ */
15681
+ includeLinked: boolean().optional()
15682
+ });
15683
+ /**
15684
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15685
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15686
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15687
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15688
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15689
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15690
+ * migration cannot reach a JWT already in a client's hands; parse-time
15691
+ * migration covers both without a flag day. No cast — the raw object is read
15692
+ * through `Reflect.get` (its static type is `unknown`).
15693
+ */
15694
+ function migrateLegacyTokenScope(raw) {
15695
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15696
+ if (Reflect.get(raw, "type") !== "device") return raw;
15697
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15698
+ const targets = Reflect.get(raw, "targets");
15699
+ if (!Array.isArray(targets)) return raw;
15700
+ return {
15701
+ type: "device",
15702
+ selector: {
15703
+ kind: "ids",
15704
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15705
+ },
15706
+ access: Reflect.get(raw, "access")
15707
+ };
15708
+ }
15709
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15191
15710
  object({
15192
15711
  type: literal("category"),
15193
15712
  target: CapScopeSchema,
@@ -15203,18 +15722,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15203
15722
  target: string(),
15204
15723
  access: array(MethodAccessSchema).min(1)
15205
15724
  }),
15206
- object({
15207
- type: literal("device"),
15208
- /**
15209
- * One or more deviceIds (serialised as strings for wire-format
15210
- * consistency with the rest of the union). Matcher accepts if
15211
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15212
- * of one scope-per-device when granting access to a set of cameras.
15213
- */
15214
- targets: array(string()).min(1),
15215
- access: array(MethodAccessSchema).min(1)
15216
- })
15217
- ]);
15725
+ DeviceTokenScopeSchema
15726
+ ]));
15218
15727
  object({
15219
15728
  id: string(),
15220
15729
  username: string(),
@@ -15531,7 +16040,7 @@ var TrackEnvelopeSchema = object({
15531
16040
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15532
16041
  * keeps every scalar the list surfaces actually render (ids, class(es),
15533
16042
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15534
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16043
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15535
16044
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15536
16045
  * `getTrack`. Mirrors the event-store `projection` convention
15537
16046
  * (`getObjectEvents` et al.).
@@ -15667,7 +16176,21 @@ union([literal(1), literal(2)]);
15667
16176
  var LabelAttributionSchema = object({
15668
16177
  stepId: string(),
15669
16178
  modelId: string().optional(),
15670
- decidedAt: number()
16179
+ decidedAt: number(),
16180
+ /**
16181
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16182
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16183
+ *
16184
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16185
+ * notification rule authored on "Gianluca" stopped matching the moment the
16186
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16187
+ * the thing that does not move, so it is what a rule matches on
16188
+ * (`NcConditions.identities`) and the text is what a human is shown.
16189
+ *
16190
+ * Absent when the label names no gallery row — a plate the OCR read but no
16191
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16192
+ */
16193
+ identityId: string().optional()
15671
16194
  });
15672
16195
  /**
15673
16196
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15804,6 +16327,28 @@ var TrackSchema = object({
15804
16327
  * `=== true` and render nothing otherwise, never infer "no face".
15805
16328
  */
15806
16329
  hasFace: boolean().optional(),
16330
+ /**
16331
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16332
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16333
+ * so the passage is tracked once and as a VEHICLE.
16334
+ *
16335
+ * It exists because the fold's record was dishonest. D34 and the code both
16336
+ * said "the person is not lost — it is reported so both entities stay on the
16337
+ * record"; in fact the pair went into a per-processor RAM field behind an
16338
+ * accessor nobody called, and every durable surface said `vehicle`, full
16339
+ * stop. This is the composition note that makes the row true.
16340
+ *
16341
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16342
+ * person" is not an answer to "what is this" — both label tiers would refuse
16343
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16344
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16345
+ * and a `person` rule still does not fire for someone cycling past.
16346
+ *
16347
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16348
+ * the column, and every hub that predates the field, omits it. Test
16349
+ * `=== true` and render nothing otherwise — never infer "no rider".
16350
+ */
16351
+ hasRider: boolean().optional(),
15807
16352
  ...TrackFlagFields,
15808
16353
  ...TrackRetrainFields
15809
16354
  });
@@ -16153,7 +16698,10 @@ var RecentTracksQueryInput = object({
16153
16698
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16154
16699
  cursor: string().optional(),
16155
16700
  /** See {@link TrackProjectionSchema}. Default `full`. */
16156
- projection: TrackProjectionSchema.optional()
16701
+ projection: TrackProjectionSchema.optional(),
16702
+ /** Include stationary-promoted rows (parked objects). Default false: the
16703
+ * feed lists passages; parking records live on the stationary registry. */
16704
+ includeStationary: boolean().optional()
16157
16705
  });
16158
16706
  var RecentTracksPageSchema = object({
16159
16707
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16371,7 +16919,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16371
16919
  zone: TrackZoneFilterSchema.optional(),
16372
16920
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16373
16921
  * compatible — omitting the field keeps today's exact behaviour). */
16374
- projection: TrackProjectionSchema.optional()
16922
+ projection: TrackProjectionSchema.optional(),
16923
+ /** Include stationary-promoted rows (parked objects handed to the
16924
+ * stationary registry). Default false: the timeline lists passages,
16925
+ * not parking records (operator decision, 2026-08-15). */
16926
+ includeStationary: boolean().optional()
16375
16927
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16376
16928
  kind: "mutation",
16377
16929
  auth: "admin"
@@ -16535,11 +17087,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16535
17087
  auth: "admin"
16536
17088
  }), method(object({
16537
17089
  eventId: string(),
16538
- kind: MediaFileKindEnum.optional()
17090
+ kind: MediaFileKindEnum.optional(),
17091
+ deviceId: number()
16539
17092
  }), array(MediaFileSchema).readonly()), method(object({
16540
17093
  trackId: string(),
16541
- kinds: array(MediaFileKindEnum).optional()
16542
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17094
+ kinds: array(MediaFileKindEnum).optional(),
17095
+ deviceId: number()
17096
+ }), array(MediaFileSchema).readonly()), method(object({
17097
+ trackId: string(),
17098
+ deviceId: number()
17099
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16543
17100
  kind: "mutation",
16544
17101
  auth: "admin"
16545
17102
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17199,6 +17756,17 @@ var maxSessionHoldMsField = {
17199
17756
  default: 12e4,
17200
17757
  step: 5e3
17201
17758
  };
17759
+ /**
17760
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17761
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17762
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17763
+ */
17764
+ var audioMotionWindowMsField = {
17765
+ min: 5e3,
17766
+ max: 6e5,
17767
+ default: 9e4,
17768
+ step: 5e3
17769
+ };
17202
17770
  var motionFpsField = {
17203
17771
  min: 1,
17204
17772
  max: 30,
@@ -17230,7 +17798,7 @@ var detectionFpsField = {
17230
17798
  var occupancyRecheckSecField = {
17231
17799
  min: 0,
17232
17800
  max: 300,
17233
- default: 30,
17801
+ default: 300,
17234
17802
  step: 5
17235
17803
  };
17236
17804
  var occupancyRecheckFramesField = {
@@ -17375,6 +17943,27 @@ var RunnerCameraConfigSchema = object({
17375
17943
  * resolved `CameraDetectionConfig`.
17376
17944
  */
17377
17945
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
17946
+ /**
17947
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
17948
+ * 'on-motion'` audio window, measured from the LAST motion event.
17949
+ *
17950
+ * This exists because the falling edge cannot be relied on. Camera-native
17951
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
17952
+ * its email-push SMTP path both emit `detected: true` and never the
17953
+ * counterpart); only the frame-diff analyzer emits falls. So on an
17954
+ * onboard-only camera a window that closed only on `detected: false` never
17955
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
17956
+ * battery camera, the one failure mode the mode exists to prevent.
17957
+ *
17958
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
17959
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
17960
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
17961
+ *
17962
+ * Not consumed by the runner: carried here so it shares the per-camera
17963
+ * device-settings surface with `motionCooldownMs`, exactly like
17964
+ * `maxSessionHoldMs`.
17965
+ */
17966
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17378
17967
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17379
17968
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17380
17969
  motionStreamId: string(),
@@ -17470,7 +18059,7 @@ var RunnerCameraConfigSchema = object({
17470
18059
  */
17471
18060
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17472
18061
  });
17473
- 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;
18062
+ 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;
17474
18063
  /**
17475
18064
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17476
18065
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18456,7 +19045,31 @@ DeviceType.Camera, method(object({
18456
19045
  lastCapturedAt: number().nullable(),
18457
19046
  cacheAgeMs: number().nullable(),
18458
19047
  etag: string().nullable()
18459
- }))), systemMethod(object({
19048
+ }))), systemMethod(object({ deviceId: number() }), object({
19049
+ /** The battery slice as read, or null when the device has none. */
19050
+ battery: object({
19051
+ sleeping: boolean(),
19052
+ lastUpdated: number(),
19053
+ lastContactAt: number().optional()
19054
+ }).nullable(),
19055
+ /** The resolved snapshot state (what the overlay decision used). */
19056
+ state: object({
19057
+ isBattery: boolean(),
19058
+ reason: _enum([
19059
+ "disabled",
19060
+ "sleeping",
19061
+ "unreachable",
19062
+ "waking"
19063
+ ]).nullable()
19064
+ }),
19065
+ /** The cached frame behind the next paint. */
19066
+ frame: object({
19067
+ capturedAt: number().nullable(),
19068
+ ageMs: number().nullable()
19069
+ }),
19070
+ /** A wake window is currently open (the Waking overlay's source). */
19071
+ waking: boolean()
19072
+ })), systemMethod(object({
18460
19073
  /** The tiles a surface is actually rendering. One entry per (device,
18461
19074
  * width) the caller will paint — the width is snapped to the server's
18462
19075
  * ladder and becomes part of the link's SIGNED identity. */
@@ -18486,7 +19099,16 @@ targets: array(object({
18486
19099
  /** A sleeping battery camera: the frame is deliberately stale and will
18487
19100
  * NOT refresh in the background. A surface should say so rather than
18488
19101
  * present it as current. */
18489
- sleeping: boolean()
19102
+ sleeping: boolean(),
19103
+ /** Current device state rendered over the cached frame. State images
19104
+ * remain authoritative even when their photographic background is
19105
+ * old; null means the link must carry a current camera frame. */
19106
+ stateReason: _enum([
19107
+ "disabled",
19108
+ "sleeping",
19109
+ "unreachable",
19110
+ "waking"
19111
+ ]).nullable()
18490
19112
  })));
18491
19113
  /**
18492
19114
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20053,6 +20675,25 @@ var BatteryStatusSchema = object({
20053
20675
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20054
20676
  lastUpdated: number(),
20055
20677
  /**
20678
+ * Ms epoch of the last time the device PROVED it was reachable — a
20679
+ * completed firmware round-trip, an observed wake, or an inbound push
20680
+ * (firmware event, email). `0`/absent = never since this slice was born.
20681
+ *
20682
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20683
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20684
+ * for the radio, because a poll that confirms reachability is the same
20685
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20686
+ * single derivation every consumer must use; no surface computes its own.
20687
+ *
20688
+ * It is deliberately NOT a clock in the
20689
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20690
+ * observation itself, and it is the only thing a 30-hour silence is
20691
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20692
+ * Reolink provider) so a value that means "recently" cannot cost a
20693
+ * SQLite commit per round-trip.
20694
+ */
20695
+ lastContactAt: number().optional(),
20696
+ /**
20056
20697
  * True when the source is a BINARY low-battery indicator (HA
20057
20698
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20058
20699
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23590,7 +24231,7 @@ method(object({
23590
24231
  toMs: number()
23591
24232
  }), RecordingAvailabilitySchema, {
23592
24233
  kind: "query",
23593
- auth: "admin"
24234
+ auth: "protected"
23594
24235
  }), method(object({
23595
24236
  deviceId: number(),
23596
24237
  fromMs: number(),
@@ -23598,14 +24239,14 @@ method(object({
23598
24239
  tzOffsetMinutes: number()
23599
24240
  }), RecordingDaysSchema, {
23600
24241
  kind: "query",
23601
- auth: "admin"
24242
+ auth: "protected"
23602
24243
  }), method(object({
23603
24244
  deviceId: number(),
23604
24245
  fromMs: number(),
23605
24246
  toMs: number()
23606
24247
  }), RecordingManifestSchema, {
23607
24248
  kind: "query",
23608
- auth: "admin"
24249
+ auth: "protected"
23609
24250
  }), method(object({}), RecordingStorageUsageSchema, {
23610
24251
  kind: "query",
23611
24252
  auth: "admin"
@@ -23895,14 +24536,77 @@ method(object({
23895
24536
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23896
24537
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23897
24538
  *
23898
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
23899
- * derives the device-detail contribution; the provider carries NO hand-written
23900
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
23901
- * every hysteresis flip / availability change; consumers never poll.
23902
- */
23903
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23904
- * be added without a wire break (matching falls back to any-condition refs). */
24539
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24540
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24541
+ * for the thing: a scene is a standing question about the property ("is the bin
24542
+ * still out"), and the operator's question is "which of my scenes have tripped",
24543
+ * across every camera at once — not "what does camera 617 think". Buried one
24544
+ * camera deep it also could not be found. The surface is now a top-level admin
24545
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24546
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24547
+ *
24548
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24549
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24550
+ * directions, so a registration nobody declares fails exactly as loudly as a
24551
+ * declaration nobody registers. The editor is imported directly by the page.
24552
+ *
24553
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24554
+ * availability change; consumers never poll.
24555
+ */
24556
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24557
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24558
+ * Open by design so more can be added without a wire break.
24559
+ *
24560
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24561
+ * not comparable, so "I have never seen this scene in this light" is reported
24562
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24563
+ * collapses the cosine and would latch a false alarm every single night. */
23905
24564
  var SceneConditionSchema = string();
24565
+ /**
24566
+ * What a scene does when the CURRENT light has no reference of its own.
24567
+ *
24568
+ * The lighting variants are not equally likely to exist. Almost every operator
24569
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24570
+ * scene that is only ever going to be asked about a daytime question ("is the
24571
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24572
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24573
+ * working without it rather than degrading into a permanent complaint.
24574
+ *
24575
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24576
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24577
+ * last covered light left it at, the latch is untouched, and the hysteresis
24578
+ * run is neither spent nor cleared. The scene resumes by itself at first
24579
+ * light. This is the only behaviour under which "I never captured IR" is a
24580
+ * configuration choice instead of a nightly fault.
24581
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24582
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24583
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24584
+ * cross-condition cosines are not comparable, so a day reference against a
24585
+ * true IR frame collapses and the scene reports a theft at 21:40.
24586
+ *
24587
+ * Never applies when the scene has NO comparable reference at all — that is
24588
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24589
+ * there would hide a scene the operator never finished setting up.
24590
+ */
24591
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24592
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24593
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24594
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24595
+ * and never counts toward hysteresis in either direction. */
24596
+ var SceneVerdictSchema = _enum([
24597
+ "matched",
24598
+ "diverged",
24599
+ "unknown"
24600
+ ]);
24601
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24602
+ * silence that reads as "nothing has happened". */
24603
+ var SceneUnavailableSchema = _enum([
24604
+ "no-reference-for-condition",
24605
+ "view-shifted",
24606
+ "no-vision-profile",
24607
+ "encoder-model-changed",
24608
+ "no-snapshot"
24609
+ ]);
23906
24610
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23907
24611
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23908
24612
  var SceneReferenceSchema = object({
@@ -23910,7 +24614,14 @@ var SceneReferenceSchema = object({
23910
24614
  modelId: string(),
23911
24615
  condition: SceneConditionSchema,
23912
24616
  capturedAt: number(),
23913
- thumbnailMediaId: string().optional()
24617
+ thumbnailMediaId: string().optional(),
24618
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24619
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24620
+ * normalized rect frame a different piece of world, and the scene would
24621
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24622
+ * when hysteresis is about to flip — one extra encode per candidate
24623
+ * transition, not per poll. */
24624
+ anchorEmbedding: array(number()).optional()
23914
24625
  });
23915
24626
  var SceneMonitorStateSchema = object({
23916
24627
  id: string(),
@@ -23932,6 +24643,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
23932
24643
  profileId: string().optional(),
23933
24644
  hysteresisCount: number().int().positive()
23934
24645
  })]);
24646
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24647
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24648
+ * out in silence rather than reporting a fault every night. */
24649
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24650
+ /**
24651
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24652
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24653
+ *
24654
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24655
+ * fail-open: a notification suppressed is the worse error there, but a vision
24656
+ * model that timed out has not told us the bin is gone, and a latch is a
24657
+ * stateful claim that costs the operator a trip to reset.
24658
+ */
24659
+ var SceneConfirmSchema = object({
24660
+ enabled: boolean().default(false),
24661
+ prompt: string().min(1).max(1e3),
24662
+ profileId: string().optional(),
24663
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24664
+ maxImagePx: number().int().min(64).max(2048).default(448),
24665
+ /** What a timeout / unavailable model means for the PENDING flip. */
24666
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24667
+ });
23935
24668
  var SceneMonitorSchema = object({
23936
24669
  id: string(),
23937
24670
  label: string(),
@@ -23950,7 +24683,56 @@ var SceneMonitorSchema = object({
23950
24683
  lastConfidence: number().nullable(),
23951
24684
  currentCondition: SceneConditionSchema.nullable(),
23952
24685
  availability: _enum(["ok", "unavailable"]),
23953
- unavailableReason: string().nullable()
24686
+ unavailableReason: string().nullable(),
24687
+ /** Which state is "the initial screen". `null` until the first capture. */
24688
+ baselineStateId: string().nullable(),
24689
+ /** Which boolean drives notification rules and any export. */
24690
+ emit: _enum(["latched", "live"]).default("latched"),
24691
+ /** Live: does the region match the baseline RIGHT NOW. */
24692
+ verdict: SceneVerdictSchema,
24693
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24694
+ latched: boolean(),
24695
+ /** Last reset (or creation). */
24696
+ armedAt: number(),
24697
+ divergedAt: number().nullable(),
24698
+ restoredAt: number().nullable(),
24699
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24700
+ * during the window DISCARDS the observation — a car pulling up in front of
24701
+ * the bin must not be able to spend hysteresis credit. */
24702
+ quietSeconds: number().int().min(0).max(3600).default(60),
24703
+ /** An observation only advances the pending count when it is at least this
24704
+ * far from the previously counted one, so N agreeing checks span real time
24705
+ * rather than N adjacent polls inside one occlusion. */
24706
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24707
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24708
+ confirm: SceneConfirmSchema.optional(),
24709
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24710
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24711
+ /** Clear the latch on its own when the scene matches again? Default false —
24712
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24713
+ * automation can react to the bin coming back without the operator's own
24714
+ * alarm silently clearing itself. */
24715
+ autoRestore: boolean().default(false),
24716
+ /** What to do when the current light has no reference of its own. See
24717
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24718
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24719
+ /**
24720
+ * The light whose checks are currently being SAT OUT under
24721
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24722
+ *
24723
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24724
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24725
+ * nothing captured in this light"* in the same calm voice as the coverage
24726
+ * line, because the alternative is a scene that silently stops answering
24727
+ * after sunset with nothing anywhere saying why. A skipped check must never
24728
+ * read as a broken one.
24729
+ */
24730
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24731
+ /** Named cause when `verdict === 'unknown'`. */
24732
+ unavailable: SceneUnavailableSchema.nullable(),
24733
+ /** Conditions that have at least one comparable reference — the coverage line
24734
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24735
+ coveredConditions: array(SceneConditionSchema)
23954
24736
  });
23955
24737
  var SceneMonitorStatusSchema = object({
23956
24738
  monitors: array(SceneMonitorSchema),
@@ -23983,7 +24765,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
23983
24765
  "both"
23984
24766
  ]).optional(),
23985
24767
  checkIntervalSec: number().optional(),
23986
- check: SceneCheckSchema.optional()
24768
+ check: SceneCheckSchema.optional(),
24769
+ emit: _enum(["latched", "live"]).optional(),
24770
+ quietSeconds: number().int().min(0).max(3600).optional(),
24771
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24772
+ anchorThreshold: number().min(0).max(1).optional(),
24773
+ autoRestore: boolean().optional(),
24774
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24775
+ /** `null` clears the vision-model adjudicator. */
24776
+ confirm: SceneConfirmSchema.nullable().optional()
23987
24777
  })
23988
24778
  }), _void(), {
23989
24779
  kind: "mutation",
@@ -24020,6 +24810,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24020
24810
  }), _void(), {
24021
24811
  kind: "mutation",
24022
24812
  auth: "admin"
24813
+ }), method(object({
24814
+ deviceId: number(),
24815
+ monitorId: string(),
24816
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24817
+ recapture: boolean().optional()
24818
+ }), _void(), {
24819
+ kind: "mutation",
24820
+ auth: "admin"
24023
24821
  });
24024
24822
  /**
24025
24823
  * Per-stage gating mode applied to the zones a rule references.
@@ -24173,6 +24971,16 @@ var CamStreamDescriptorSchema = object({
24173
24971
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24174
24972
  metadata: record(string(), unknown()).optional()
24175
24973
  });
24974
+ object({
24975
+ /** The descriptors as last built from a real camera response. Never a guess:
24976
+ * a failed or refused build writes NOTHING, so a restored catalog is always
24977
+ * one the camera itself once produced. */
24978
+ descriptors: array(CamStreamDescriptorSchema),
24979
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
24980
+ * path decide whether the camera's own awake window is worth spending on a
24981
+ * re-read. */
24982
+ lastFetchedAt: number()
24983
+ });
24176
24984
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24177
24985
  /** One of the camera's stream profiles. */
24178
24986
  var StreamProfileSchema = _enum([
@@ -24328,12 +25136,64 @@ var NetworkAddressSchema = object({
24328
25136
  family: string(),
24329
25137
  internal: boolean()
24330
25138
  });
25139
+ /**
25140
+ * Provenance of the site coordinates, and the whole reason this is not just two
25141
+ * numbers.
25142
+ *
25143
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25144
+ * nothing overwrites it.
25145
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25146
+ * default that is right to a few kilometres beats the coarse UTC clock split
25147
+ * the sun-times consumers otherwise fall back to.
25148
+ *
25149
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25150
+ * own input will eventually trust the guess.
25151
+ */
25152
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25153
+ /**
25154
+ * The read shape: the location plus the honest state of the one-shot derivation.
25155
+ *
25156
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25157
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25158
+ * failed; the hub will NOT try again on its own — the fallback is declared
25159
+ * (consumers degrade to their own last resort) and the operator either types the
25160
+ * coordinates or presses detect.
25161
+ */
25162
+ var SiteLocationStatusSchema = object({
25163
+ location: object({
25164
+ /** WGS84 decimal degrees. */
25165
+ latitude: number().min(-90).max(90),
25166
+ longitude: number().min(-180).max(180),
25167
+ source: SiteLocationSourceSchema,
25168
+ /** Epoch ms the value was last written. */
25169
+ updatedAt: number(),
25170
+ /**
25171
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25172
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25173
+ */
25174
+ label: string().optional()
25175
+ }).nullable(),
25176
+ derivationAttemptedAt: number().nullable(),
25177
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25178
+ derivationError: string().nullable()
25179
+ });
25180
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25181
+ var SetSiteLocationInputSchema = object({
25182
+ latitude: number().min(-90).max(90),
25183
+ longitude: number().min(-180).max(180)
25184
+ }).nullable();
24331
25185
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
24332
25186
  kind: "mutation",
24333
25187
  auth: "admin"
24334
25188
  }), method(_void(), _void(), {
24335
25189
  kind: "mutation",
24336
25190
  auth: "admin"
25191
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25192
+ kind: "mutation",
25193
+ auth: "admin"
25194
+ }), method(_void(), SiteLocationStatusSchema, {
25195
+ kind: "mutation",
25196
+ auth: "admin"
24337
25197
  });
24338
25198
  object({
24339
25199
  /** True when the device's tamper switch / case-open contact is
@@ -27063,6 +27923,12 @@ Object.freeze({
27063
27923
  addonId: null,
27064
27924
  access: "create"
27065
27925
  },
27926
+ "llm.cancel": {
27927
+ capName: "llm",
27928
+ capScope: "system",
27929
+ addonId: null,
27930
+ access: "create"
27931
+ },
27066
27932
  "llm.deleteModel": {
27067
27933
  capName: "llm",
27068
27934
  capScope: "system",
@@ -27147,6 +28013,12 @@ Object.freeze({
27147
28013
  addonId: null,
27148
28014
  access: "view"
27149
28015
  },
28016
+ "llm.resolveModelRef": {
28017
+ capName: "llm",
28018
+ capScope: "system",
28019
+ addonId: null,
28020
+ access: "create"
28021
+ },
27150
28022
  "llm.setDefault": {
27151
28023
  capName: "llm",
27152
28024
  capScope: "system",
@@ -29313,6 +30185,12 @@ Object.freeze({
29313
30185
  addonId: null,
29314
30186
  access: "create"
29315
30187
  },
30188
+ "sceneMonitor.resetScene": {
30189
+ capName: "scene-monitor",
30190
+ capScope: "device",
30191
+ addonId: null,
30192
+ access: "delete"
30193
+ },
29316
30194
  "sceneMonitor.updateScene": {
29317
30195
  capName: "scene-monitor",
29318
30196
  capScope: "device",
@@ -29451,6 +30329,12 @@ Object.freeze({
29451
30329
  addonId: null,
29452
30330
  access: "view"
29453
30331
  },
30332
+ "snapshot.getDebugState": {
30333
+ capName: "snapshot",
30334
+ capScope: "device",
30335
+ addonId: null,
30336
+ access: "view"
30337
+ },
29454
30338
  "snapshot.getSnapshot": {
29455
30339
  capName: "snapshot",
29456
30340
  capScope: "device",
@@ -29991,6 +30875,12 @@ Object.freeze({
29991
30875
  addonId: null,
29992
30876
  access: "create"
29993
30877
  },
30878
+ "system.detectSiteLocation": {
30879
+ capName: "system",
30880
+ capScope: "system",
30881
+ addonId: null,
30882
+ access: "create"
30883
+ },
29994
30884
  "system.featureFlags": {
29995
30885
  capName: "system",
29996
30886
  capScope: "system",
@@ -30009,6 +30899,12 @@ Object.freeze({
30009
30899
  addonId: null,
30010
30900
  access: "view"
30011
30901
  },
30902
+ "system.getSiteLocation": {
30903
+ capName: "system",
30904
+ capScope: "system",
30905
+ addonId: null,
30906
+ access: "view"
30907
+ },
30012
30908
  "system.health": {
30013
30909
  capName: "system",
30014
30910
  capScope: "system",
@@ -30033,6 +30929,12 @@ Object.freeze({
30033
30929
  addonId: null,
30034
30930
  access: "create"
30035
30931
  },
30932
+ "system.setSiteLocation": {
30933
+ capName: "system",
30934
+ capScope: "system",
30935
+ addonId: null,
30936
+ access: "create"
30937
+ },
30036
30938
  "terminalSession.adoptLegacyMonitor": {
30037
30939
  capName: "terminal-session",
30038
30940
  capScope: "system",
@@ -30604,6 +31506,1709 @@ Object.freeze({
30604
31506
  access: "create"
30605
31507
  }
30606
31508
  });
31509
+ Object.freeze({
31510
+ "accessories.setChildHidden": [{
31511
+ name: "childDeviceId",
31512
+ form: "single",
31513
+ optional: false
31514
+ }, {
31515
+ name: "deviceId",
31516
+ form: "single",
31517
+ optional: false
31518
+ }],
31519
+ "addonSettings.getDeviceSettings": [{
31520
+ name: "deviceId",
31521
+ form: "single",
31522
+ optional: false
31523
+ }],
31524
+ "addonSettings.updateDeviceSettings": [{
31525
+ name: "deviceId",
31526
+ form: "single",
31527
+ optional: false
31528
+ }],
31529
+ "alarmPanel.arm": [{
31530
+ name: "deviceId",
31531
+ form: "single",
31532
+ optional: false
31533
+ }],
31534
+ "alarmPanel.disarm": [{
31535
+ name: "deviceId",
31536
+ form: "single",
31537
+ optional: false
31538
+ }],
31539
+ "alarmPanel.trigger": [{
31540
+ name: "deviceId",
31541
+ form: "single",
31542
+ optional: false
31543
+ }],
31544
+ "audioAnalysis.resolveDeviceSettings": [{
31545
+ name: "deviceId",
31546
+ form: "single",
31547
+ optional: false
31548
+ }],
31549
+ "audioAnalyzer.classify": [{
31550
+ name: "deviceId",
31551
+ form: "single",
31552
+ optional: true
31553
+ }],
31554
+ "audioMetrics.getCurrentSnapshot": [{
31555
+ name: "deviceId",
31556
+ form: "single",
31557
+ optional: false
31558
+ }],
31559
+ "audioMetrics.getHistory": [{
31560
+ name: "deviceId",
31561
+ form: "single",
31562
+ optional: false
31563
+ }],
31564
+ "automationControl.disable": [{
31565
+ name: "deviceId",
31566
+ form: "single",
31567
+ optional: false
31568
+ }],
31569
+ "automationControl.enable": [{
31570
+ name: "deviceId",
31571
+ form: "single",
31572
+ optional: false
31573
+ }],
31574
+ "automationControl.trigger": [{
31575
+ name: "deviceId",
31576
+ form: "single",
31577
+ optional: false
31578
+ }],
31579
+ "battery.wakeForStream": [{
31580
+ name: "deviceId",
31581
+ form: "single",
31582
+ optional: false
31583
+ }],
31584
+ "brightness.setBrightness": [{
31585
+ name: "deviceId",
31586
+ form: "single",
31587
+ optional: false
31588
+ }],
31589
+ "button.press": [{
31590
+ name: "deviceId",
31591
+ form: "single",
31592
+ optional: false
31593
+ }],
31594
+ "cameraCredentials.getCredentials": [{
31595
+ name: "deviceId",
31596
+ form: "single",
31597
+ optional: false
31598
+ }],
31599
+ "cameraStreams.getBrokerStreams": [{
31600
+ name: "deviceId",
31601
+ form: "single",
31602
+ optional: false
31603
+ }],
31604
+ "cameraStreams.getCameraStreams": [{
31605
+ name: "deviceId",
31606
+ form: "single",
31607
+ optional: false
31608
+ }],
31609
+ "cameraStreams.getProfileRtspEntries": [{
31610
+ name: "deviceId",
31611
+ form: "single",
31612
+ optional: false
31613
+ }],
31614
+ "cameraStreams.getRtspEntries": [{
31615
+ name: "deviceId",
31616
+ form: "single",
31617
+ optional: false
31618
+ }],
31619
+ "cameraStreams.pickStream": [{
31620
+ name: "deviceId",
31621
+ form: "single",
31622
+ optional: false
31623
+ }],
31624
+ "climateControl.setFanMode": [{
31625
+ name: "deviceId",
31626
+ form: "single",
31627
+ optional: false
31628
+ }],
31629
+ "climateControl.setMode": [{
31630
+ name: "deviceId",
31631
+ form: "single",
31632
+ optional: false
31633
+ }],
31634
+ "climateControl.setPreset": [{
31635
+ name: "deviceId",
31636
+ form: "single",
31637
+ optional: false
31638
+ }],
31639
+ "climateControl.setSwingHorizontal": [{
31640
+ name: "deviceId",
31641
+ form: "single",
31642
+ optional: false
31643
+ }],
31644
+ "climateControl.setSwingVertical": [{
31645
+ name: "deviceId",
31646
+ form: "single",
31647
+ optional: false
31648
+ }],
31649
+ "climateControl.setTarget": [{
31650
+ name: "deviceId",
31651
+ form: "single",
31652
+ optional: false
31653
+ }],
31654
+ "climateControl.setTargetHumidity": [{
31655
+ name: "deviceId",
31656
+ form: "single",
31657
+ optional: false
31658
+ }],
31659
+ "climateControl.setTargetRange": [{
31660
+ name: "deviceId",
31661
+ form: "single",
31662
+ optional: false
31663
+ }],
31664
+ "color.setColor": [{
31665
+ name: "deviceId",
31666
+ form: "single",
31667
+ optional: false
31668
+ }],
31669
+ "consumables.reset": [{
31670
+ name: "deviceId",
31671
+ form: "single",
31672
+ optional: false
31673
+ }],
31674
+ "control.setValue": [{
31675
+ name: "deviceId",
31676
+ form: "single",
31677
+ optional: false
31678
+ }],
31679
+ "cover.close": [{
31680
+ name: "deviceId",
31681
+ form: "single",
31682
+ optional: false
31683
+ }],
31684
+ "cover.open": [{
31685
+ name: "deviceId",
31686
+ form: "single",
31687
+ optional: false
31688
+ }],
31689
+ "cover.setPosition": [{
31690
+ name: "deviceId",
31691
+ form: "single",
31692
+ optional: false
31693
+ }],
31694
+ "cover.setTiltPosition": [{
31695
+ name: "deviceId",
31696
+ form: "single",
31697
+ optional: false
31698
+ }],
31699
+ "cover.stop": [{
31700
+ name: "deviceId",
31701
+ form: "single",
31702
+ optional: false
31703
+ }],
31704
+ "dayNight.getOptions": [{
31705
+ name: "deviceId",
31706
+ form: "single",
31707
+ optional: false
31708
+ }],
31709
+ "dayNight.setSettings": [{
31710
+ name: "deviceId",
31711
+ form: "single",
31712
+ optional: false
31713
+ }],
31714
+ "decoder.createSession": [{
31715
+ name: "deviceId",
31716
+ form: "single",
31717
+ optional: true
31718
+ }],
31719
+ "deviceAdoption.release": [{
31720
+ name: "camDeviceId",
31721
+ form: "single",
31722
+ optional: false
31723
+ }],
31724
+ "deviceAdoption.resync": [{
31725
+ name: "camDeviceId",
31726
+ form: "single",
31727
+ optional: false
31728
+ }],
31729
+ "deviceDiscovery.adoptDevice": [{
31730
+ name: "deviceId",
31731
+ form: "single",
31732
+ optional: false
31733
+ }],
31734
+ "deviceDiscovery.listDiscovered": [{
31735
+ name: "deviceId",
31736
+ form: "single",
31737
+ optional: false
31738
+ }],
31739
+ "deviceDiscovery.refreshDiscovery": [{
31740
+ name: "deviceId",
31741
+ form: "single",
31742
+ optional: false
31743
+ }],
31744
+ "deviceDiscovery.releaseDevice": [{
31745
+ name: "childDeviceId",
31746
+ form: "single",
31747
+ optional: false
31748
+ }, {
31749
+ name: "deviceId",
31750
+ form: "single",
31751
+ optional: false
31752
+ }],
31753
+ "deviceManager.adoptionRelease": [{
31754
+ name: "camDeviceId",
31755
+ form: "single",
31756
+ optional: false
31757
+ }],
31758
+ "deviceManager.adoptionResync": [{
31759
+ name: "camDeviceId",
31760
+ form: "single",
31761
+ optional: false
31762
+ }],
31763
+ "deviceManager.applyInitialMeta": [{
31764
+ name: "deviceId",
31765
+ form: "single",
31766
+ optional: false
31767
+ }, {
31768
+ name: "linkDeviceId",
31769
+ form: "single",
31770
+ optional: true
31771
+ }],
31772
+ "deviceManager.disable": [{
31773
+ name: "deviceId",
31774
+ form: "single",
31775
+ optional: false
31776
+ }],
31777
+ "deviceManager.enable": [{
31778
+ name: "deviceId",
31779
+ form: "single",
31780
+ optional: false
31781
+ }],
31782
+ "deviceManager.getBindings": [{
31783
+ name: "deviceId",
31784
+ form: "single",
31785
+ optional: false
31786
+ }],
31787
+ "deviceManager.getChildren": [{
31788
+ name: "parentDeviceId",
31789
+ form: "single",
31790
+ optional: false
31791
+ }],
31792
+ "deviceManager.getConfigSchema": [{
31793
+ name: "deviceId",
31794
+ form: "single",
31795
+ optional: false
31796
+ }],
31797
+ "deviceManager.getDevice": [{
31798
+ name: "deviceId",
31799
+ form: "single",
31800
+ optional: false
31801
+ }],
31802
+ "deviceManager.getDeviceAggregate": [{
31803
+ name: "deviceId",
31804
+ form: "single",
31805
+ optional: false
31806
+ }],
31807
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31808
+ name: "deviceId",
31809
+ form: "single",
31810
+ optional: false
31811
+ }],
31812
+ "deviceManager.getDeviceSettingsAggregate": [{
31813
+ name: "deviceId",
31814
+ form: "single",
31815
+ optional: false
31816
+ }],
31817
+ "deviceManager.getDeviceStatusAggregate": [{
31818
+ name: "deviceId",
31819
+ form: "single",
31820
+ optional: false
31821
+ }],
31822
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31823
+ name: "deviceIds",
31824
+ form: "array",
31825
+ optional: false
31826
+ }],
31827
+ "deviceManager.getLinkedDevices": [{
31828
+ name: "deviceId",
31829
+ form: "single",
31830
+ optional: false
31831
+ }],
31832
+ "deviceManager.getSettingsSchema": [{
31833
+ name: "deviceId",
31834
+ form: "single",
31835
+ optional: false
31836
+ }],
31837
+ "deviceManager.getStreamProfileMap": [{
31838
+ name: "deviceId",
31839
+ form: "single",
31840
+ optional: false
31841
+ }],
31842
+ "deviceManager.getStreamSources": [{
31843
+ name: "deviceId",
31844
+ form: "single",
31845
+ optional: false
31846
+ }],
31847
+ "deviceManager.getWireableFields": [{
31848
+ name: "deviceId",
31849
+ form: "single",
31850
+ optional: false
31851
+ }],
31852
+ "deviceManager.loadConfig": [{
31853
+ name: "deviceId",
31854
+ form: "single",
31855
+ optional: false
31856
+ }],
31857
+ "deviceManager.loadMeta": [{
31858
+ name: "deviceId",
31859
+ form: "single",
31860
+ optional: false
31861
+ }],
31862
+ "deviceManager.loadRuntimeState": [{
31863
+ name: "deviceId",
31864
+ form: "single",
31865
+ optional: false
31866
+ }],
31867
+ "deviceManager.persistConfig": [{
31868
+ name: "deviceId",
31869
+ form: "single",
31870
+ optional: false
31871
+ }],
31872
+ "deviceManager.probeStreams": [{
31873
+ name: "deviceId",
31874
+ form: "single",
31875
+ optional: false
31876
+ }],
31877
+ "deviceManager.registerDevice": [{
31878
+ name: "parentDeviceId",
31879
+ form: "single",
31880
+ optional: true
31881
+ }],
31882
+ "deviceManager.remove": [{
31883
+ name: "deviceId",
31884
+ form: "single",
31885
+ optional: false
31886
+ }],
31887
+ "deviceManager.removeDevice": [{
31888
+ name: "deviceId",
31889
+ form: "single",
31890
+ optional: false
31891
+ }],
31892
+ "deviceManager.runDeviceAction": [{
31893
+ name: "deviceId",
31894
+ form: "single",
31895
+ optional: false
31896
+ }],
31897
+ "deviceManager.setChildLayout": [{
31898
+ name: "deviceId",
31899
+ form: "single",
31900
+ optional: false
31901
+ }],
31902
+ "deviceManager.setDisabled": [{
31903
+ name: "deviceId",
31904
+ form: "single",
31905
+ optional: false
31906
+ }],
31907
+ "deviceManager.setDisplay": [{
31908
+ name: "deviceId",
31909
+ form: "single",
31910
+ optional: false
31911
+ }],
31912
+ "deviceManager.setIntegrationId": [{
31913
+ name: "deviceId",
31914
+ form: "single",
31915
+ optional: false
31916
+ }],
31917
+ "deviceManager.setLinkDeviceId": [{
31918
+ name: "deviceId",
31919
+ form: "single",
31920
+ optional: false
31921
+ }, {
31922
+ name: "linkDeviceId",
31923
+ form: "single",
31924
+ optional: true
31925
+ }],
31926
+ "deviceManager.setLocation": [{
31927
+ name: "deviceId",
31928
+ form: "single",
31929
+ optional: false
31930
+ }],
31931
+ "deviceManager.setMetadata": [{
31932
+ name: "deviceId",
31933
+ form: "single",
31934
+ optional: false
31935
+ }],
31936
+ "deviceManager.setName": [{
31937
+ name: "deviceId",
31938
+ form: "single",
31939
+ optional: false
31940
+ }],
31941
+ "deviceManager.setPrimaryChildEntityId": [{
31942
+ name: "deviceId",
31943
+ form: "single",
31944
+ optional: false
31945
+ }],
31946
+ "deviceManager.setRole": [{
31947
+ name: "deviceId",
31948
+ form: "single",
31949
+ optional: false
31950
+ }],
31951
+ "deviceManager.setStreamProfileMap": [{
31952
+ name: "deviceId",
31953
+ form: "single",
31954
+ optional: false
31955
+ }],
31956
+ "deviceManager.setType": [{
31957
+ name: "deviceId",
31958
+ form: "single",
31959
+ optional: false
31960
+ }],
31961
+ "deviceManager.setWrapperActive": [{
31962
+ name: "deviceId",
31963
+ form: "single",
31964
+ optional: false
31965
+ }],
31966
+ "deviceManager.testField": [{
31967
+ name: "deviceId",
31968
+ form: "single",
31969
+ optional: false
31970
+ }],
31971
+ "deviceManager.updateConfig": [{
31972
+ name: "deviceId",
31973
+ form: "single",
31974
+ optional: false
31975
+ }],
31976
+ "deviceManager.updateDeviceField": [{
31977
+ name: "deviceId",
31978
+ form: "single",
31979
+ optional: false
31980
+ }],
31981
+ "deviceManager.updateDeviceFieldsBatch": [{
31982
+ name: "deviceId",
31983
+ form: "single",
31984
+ optional: false
31985
+ }],
31986
+ "deviceOps.getConfigEntries": [{
31987
+ name: "deviceId",
31988
+ form: "single",
31989
+ optional: false
31990
+ }],
31991
+ "deviceOps.getRawState": [{
31992
+ name: "deviceId",
31993
+ form: "single",
31994
+ optional: false
31995
+ }],
31996
+ "deviceOps.getSettingsSchema": [{
31997
+ name: "deviceId",
31998
+ form: "single",
31999
+ optional: false
32000
+ }],
32001
+ "deviceOps.getStreamSources": [{
32002
+ name: "deviceId",
32003
+ form: "single",
32004
+ optional: false
32005
+ }],
32006
+ "deviceOps.removeDevice": [{
32007
+ name: "deviceId",
32008
+ form: "single",
32009
+ optional: false
32010
+ }],
32011
+ "deviceOps.runAction": [{
32012
+ name: "deviceId",
32013
+ form: "single",
32014
+ optional: false
32015
+ }],
32016
+ "deviceOps.setConfig": [{
32017
+ name: "deviceId",
32018
+ form: "single",
32019
+ optional: false
32020
+ }],
32021
+ "deviceState.getCapSlice": [{
32022
+ name: "deviceId",
32023
+ form: "single",
32024
+ optional: false
32025
+ }],
32026
+ "deviceState.getSnapshot": [{
32027
+ name: "deviceId",
32028
+ form: "single",
32029
+ optional: false
32030
+ }],
32031
+ "deviceState.setCapSlice": [{
32032
+ name: "deviceId",
32033
+ form: "single",
32034
+ optional: false
32035
+ }],
32036
+ "events.getEventClipUrl": [{
32037
+ name: "deviceId",
32038
+ form: "single",
32039
+ optional: false
32040
+ }],
32041
+ "events.getEvents": [{
32042
+ name: "deviceId",
32043
+ form: "single",
32044
+ optional: false
32045
+ }],
32046
+ "events.getEventThumbnail": [{
32047
+ name: "deviceId",
32048
+ form: "single",
32049
+ optional: false
32050
+ }],
32051
+ "faceGallery.getFaceByTrack": [{
32052
+ name: "deviceId",
32053
+ form: "single",
32054
+ optional: false
32055
+ }],
32056
+ "faceGallery.listRecentFaces": [{
32057
+ name: "deviceId",
32058
+ form: "single",
32059
+ optional: true
32060
+ }],
32061
+ "fanControl.setDirection": [{
32062
+ name: "deviceId",
32063
+ form: "single",
32064
+ optional: false
32065
+ }],
32066
+ "fanControl.setOscillating": [{
32067
+ name: "deviceId",
32068
+ form: "single",
32069
+ optional: false
32070
+ }],
32071
+ "fanControl.setPercentage": [{
32072
+ name: "deviceId",
32073
+ form: "single",
32074
+ optional: false
32075
+ }],
32076
+ "fanControl.setPreset": [{
32077
+ name: "deviceId",
32078
+ form: "single",
32079
+ optional: false
32080
+ }],
32081
+ "humidifier.setMode": [{
32082
+ name: "deviceId",
32083
+ form: "single",
32084
+ optional: false
32085
+ }],
32086
+ "humidifier.setOn": [{
32087
+ name: "deviceId",
32088
+ form: "single",
32089
+ optional: false
32090
+ }],
32091
+ "humidifier.setTargetHumidity": [{
32092
+ name: "deviceId",
32093
+ form: "single",
32094
+ optional: false
32095
+ }],
32096
+ "imageSettings.getOptions": [{
32097
+ name: "deviceId",
32098
+ form: "single",
32099
+ optional: false
32100
+ }],
32101
+ "imageSettings.setSettings": [{
32102
+ name: "deviceId",
32103
+ form: "single",
32104
+ optional: false
32105
+ }],
32106
+ "intercom.endTalkSession": [{
32107
+ name: "deviceId",
32108
+ form: "single",
32109
+ optional: false
32110
+ }],
32111
+ "intercom.handleAnswer": [{
32112
+ name: "deviceId",
32113
+ form: "single",
32114
+ optional: false
32115
+ }],
32116
+ "intercom.pushTalkAudio": [{
32117
+ name: "deviceId",
32118
+ form: "single",
32119
+ optional: false
32120
+ }],
32121
+ "intercom.startSession": [{
32122
+ name: "deviceId",
32123
+ form: "single",
32124
+ optional: false
32125
+ }],
32126
+ "intercom.startTalkSession": [{
32127
+ name: "deviceId",
32128
+ form: "single",
32129
+ optional: false
32130
+ }],
32131
+ "intercom.stopSession": [{
32132
+ name: "deviceId",
32133
+ form: "single",
32134
+ optional: false
32135
+ }],
32136
+ "lawnMowerControl.dock": [{
32137
+ name: "deviceId",
32138
+ form: "single",
32139
+ optional: false
32140
+ }],
32141
+ "lawnMowerControl.pause": [{
32142
+ name: "deviceId",
32143
+ form: "single",
32144
+ optional: false
32145
+ }],
32146
+ "lawnMowerControl.startMowing": [{
32147
+ name: "deviceId",
32148
+ form: "single",
32149
+ optional: false
32150
+ }],
32151
+ "lockControl.lock": [{
32152
+ name: "deviceId",
32153
+ form: "single",
32154
+ optional: false
32155
+ }],
32156
+ "lockControl.open": [{
32157
+ name: "deviceId",
32158
+ form: "single",
32159
+ optional: false
32160
+ }],
32161
+ "lockControl.unlock": [{
32162
+ name: "deviceId",
32163
+ form: "single",
32164
+ optional: false
32165
+ }],
32166
+ "mediaPlayer.next": [{
32167
+ name: "deviceId",
32168
+ form: "single",
32169
+ optional: false
32170
+ }],
32171
+ "mediaPlayer.pause": [{
32172
+ name: "deviceId",
32173
+ form: "single",
32174
+ optional: false
32175
+ }],
32176
+ "mediaPlayer.play": [{
32177
+ name: "deviceId",
32178
+ form: "single",
32179
+ optional: false
32180
+ }],
32181
+ "mediaPlayer.playMedia": [{
32182
+ name: "deviceId",
32183
+ form: "single",
32184
+ optional: false
32185
+ }],
32186
+ "mediaPlayer.previous": [{
32187
+ name: "deviceId",
32188
+ form: "single",
32189
+ optional: false
32190
+ }],
32191
+ "mediaPlayer.seek": [{
32192
+ name: "deviceId",
32193
+ form: "single",
32194
+ optional: false
32195
+ }],
32196
+ "mediaPlayer.selectSource": [{
32197
+ name: "deviceId",
32198
+ form: "single",
32199
+ optional: false
32200
+ }],
32201
+ "mediaPlayer.setMute": [{
32202
+ name: "deviceId",
32203
+ form: "single",
32204
+ optional: false
32205
+ }],
32206
+ "mediaPlayer.setRepeat": [{
32207
+ name: "deviceId",
32208
+ form: "single",
32209
+ optional: false
32210
+ }],
32211
+ "mediaPlayer.setShuffle": [{
32212
+ name: "deviceId",
32213
+ form: "single",
32214
+ optional: false
32215
+ }],
32216
+ "mediaPlayer.setVolume": [{
32217
+ name: "deviceId",
32218
+ form: "single",
32219
+ optional: false
32220
+ }],
32221
+ "mediaPlayer.stop": [{
32222
+ name: "deviceId",
32223
+ form: "single",
32224
+ optional: false
32225
+ }],
32226
+ "motion.isDetected": [{
32227
+ name: "deviceId",
32228
+ form: "single",
32229
+ optional: false
32230
+ }],
32231
+ "motionDetection.analyze": [{
32232
+ name: "deviceId",
32233
+ form: "single",
32234
+ optional: false
32235
+ }],
32236
+ "motionDetection.removeCamera": [{
32237
+ name: "deviceId",
32238
+ form: "single",
32239
+ optional: false
32240
+ }],
32241
+ "motionTrigger.setMotionTrigger": [{
32242
+ name: "deviceId",
32243
+ form: "single",
32244
+ optional: false
32245
+ }],
32246
+ "motionZones.getOptions": [{
32247
+ name: "deviceId",
32248
+ form: "single",
32249
+ optional: false
32250
+ }],
32251
+ "motionZones.setZone": [{
32252
+ name: "deviceId",
32253
+ form: "single",
32254
+ optional: false
32255
+ }],
32256
+ "nativeObjectDetection.setEnabled": [{
32257
+ name: "deviceId",
32258
+ form: "single",
32259
+ optional: false
32260
+ }],
32261
+ "networkQuality.getDeviceStats": [{
32262
+ name: "deviceId",
32263
+ form: "single",
32264
+ optional: false
32265
+ }],
32266
+ "networkQuality.reportClientStats": [{
32267
+ name: "deviceId",
32268
+ form: "single",
32269
+ optional: false
32270
+ }],
32271
+ "notificationRules.setDeviceMuted": [{
32272
+ name: "deviceId",
32273
+ form: "single",
32274
+ optional: false
32275
+ }],
32276
+ "notifier.cancel": [{
32277
+ name: "deviceId",
32278
+ form: "single",
32279
+ optional: false
32280
+ }],
32281
+ "notifier.send": [{
32282
+ name: "deviceId",
32283
+ form: "single",
32284
+ optional: false
32285
+ }],
32286
+ "osd.setOverlay": [{
32287
+ name: "deviceId",
32288
+ form: "single",
32289
+ optional: false
32290
+ }],
32291
+ "osdManager.clearSlotBinding": [{
32292
+ name: "deviceId",
32293
+ form: "single",
32294
+ optional: false
32295
+ }],
32296
+ "osdManager.copyDeviceConfiguration": [{
32297
+ name: "sourceDeviceId",
32298
+ form: "single",
32299
+ optional: false
32300
+ }, {
32301
+ name: "targetDeviceId",
32302
+ form: "single",
32303
+ optional: false
32304
+ }],
32305
+ "osdManager.getDeviceOsd": [{
32306
+ name: "deviceId",
32307
+ form: "single",
32308
+ optional: false
32309
+ }],
32310
+ "osdManager.getSourceCatalog": [{
32311
+ name: "deviceId",
32312
+ form: "single",
32313
+ optional: false
32314
+ }],
32315
+ "osdManager.previewSlot": [{
32316
+ name: "deviceId",
32317
+ form: "single",
32318
+ optional: false
32319
+ }],
32320
+ "osdManager.renderDevice": [{
32321
+ name: "deviceId",
32322
+ form: "single",
32323
+ optional: false
32324
+ }],
32325
+ "osdManager.setSlotBinding": [{
32326
+ name: "deviceId",
32327
+ form: "single",
32328
+ optional: false
32329
+ }],
32330
+ "petFeeder.callPet": [{
32331
+ name: "deviceId",
32332
+ form: "single",
32333
+ optional: false
32334
+ }],
32335
+ "petFeeder.cancelFeed": [{
32336
+ name: "deviceId",
32337
+ form: "single",
32338
+ optional: false
32339
+ }],
32340
+ "petFeeder.feed": [{
32341
+ name: "deviceId",
32342
+ form: "single",
32343
+ optional: false
32344
+ }],
32345
+ "petFeeder.markFoodReplenished": [{
32346
+ name: "deviceId",
32347
+ form: "single",
32348
+ optional: false
32349
+ }],
32350
+ "petFeeder.playSound": [{
32351
+ name: "deviceId",
32352
+ form: "single",
32353
+ optional: false
32354
+ }],
32355
+ "petFeeder.resetDesiccant": [{
32356
+ name: "deviceId",
32357
+ form: "single",
32358
+ optional: false
32359
+ }],
32360
+ "petFeeder.setChildLock": [{
32361
+ name: "deviceId",
32362
+ form: "single",
32363
+ optional: false
32364
+ }],
32365
+ "petFeeder.setFeedSound": [{
32366
+ name: "deviceId",
32367
+ form: "single",
32368
+ optional: false
32369
+ }],
32370
+ "petFeeder.setIndicatorLight": [{
32371
+ name: "deviceId",
32372
+ form: "single",
32373
+ optional: false
32374
+ }],
32375
+ "petFeeder.setVolume": [{
32376
+ name: "deviceId",
32377
+ form: "single",
32378
+ optional: false
32379
+ }],
32380
+ "pipelineAnalytics.clearTracks": [{
32381
+ name: "deviceId",
32382
+ form: "single",
32383
+ optional: false
32384
+ }],
32385
+ "pipelineAnalytics.completeRetrainTrack": [{
32386
+ name: "deviceId",
32387
+ form: "single",
32388
+ optional: false
32389
+ }],
32390
+ "pipelineAnalytics.deleteDeviceEvents": [{
32391
+ name: "deviceId",
32392
+ form: "single",
32393
+ optional: false
32394
+ }],
32395
+ "pipelineAnalytics.deleteTracks": [{
32396
+ name: "deviceId",
32397
+ form: "single",
32398
+ optional: false
32399
+ }],
32400
+ "pipelineAnalytics.deselectRetrainFrame": [{
32401
+ name: "deviceId",
32402
+ form: "single",
32403
+ optional: false
32404
+ }],
32405
+ "pipelineAnalytics.getActiveTracks": [{
32406
+ name: "deviceId",
32407
+ form: "single",
32408
+ optional: false
32409
+ }],
32410
+ "pipelineAnalytics.getAudioEvents": [{
32411
+ name: "deviceId",
32412
+ form: "single",
32413
+ optional: false
32414
+ }],
32415
+ "pipelineAnalytics.getEventDensity": [{
32416
+ name: "deviceId",
32417
+ form: "single",
32418
+ optional: false
32419
+ }],
32420
+ "pipelineAnalytics.getEventMedia": [{
32421
+ name: "deviceId",
32422
+ form: "single",
32423
+ optional: false
32424
+ }],
32425
+ "pipelineAnalytics.getKeyEvents": [{
32426
+ name: "deviceId",
32427
+ form: "single",
32428
+ optional: false
32429
+ }],
32430
+ "pipelineAnalytics.getMotionEvents": [{
32431
+ name: "deviceId",
32432
+ form: "single",
32433
+ optional: false
32434
+ }],
32435
+ "pipelineAnalytics.getObjectEvents": [{
32436
+ name: "deviceId",
32437
+ form: "single",
32438
+ optional: false
32439
+ }],
32440
+ "pipelineAnalytics.getRetrainExportUrl": [{
32441
+ name: "deviceIds",
32442
+ form: "array",
32443
+ optional: true
32444
+ }],
32445
+ "pipelineAnalytics.getSensorEvents": [{
32446
+ name: "deviceId",
32447
+ form: "single",
32448
+ optional: false
32449
+ }],
32450
+ "pipelineAnalytics.getTrack": [{
32451
+ name: "deviceId",
32452
+ form: "single",
32453
+ optional: false
32454
+ }],
32455
+ "pipelineAnalytics.getTrackMedia": [{
32456
+ name: "deviceId",
32457
+ form: "single",
32458
+ optional: false
32459
+ }],
32460
+ "pipelineAnalytics.getTrainingExportSummary": [{
32461
+ name: "deviceIds",
32462
+ form: "array",
32463
+ optional: true
32464
+ }],
32465
+ "pipelineAnalytics.getTrainingExportUrl": [{
32466
+ name: "deviceIds",
32467
+ form: "array",
32468
+ optional: true
32469
+ }],
32470
+ "pipelineAnalytics.listEventKinds": [{
32471
+ name: "deviceId",
32472
+ form: "single",
32473
+ optional: false
32474
+ }],
32475
+ "pipelineAnalytics.listEventKindsBatch": [{
32476
+ name: "deviceIds",
32477
+ form: "array",
32478
+ optional: false
32479
+ }],
32480
+ "pipelineAnalytics.listOpsLog": [{
32481
+ name: "deviceId",
32482
+ form: "single",
32483
+ optional: true
32484
+ }],
32485
+ "pipelineAnalytics.listRecentTracks": [{
32486
+ name: "deviceIds",
32487
+ form: "array",
32488
+ optional: false
32489
+ }],
32490
+ "pipelineAnalytics.listRetrainStaging": [{
32491
+ name: "deviceIds",
32492
+ form: "array",
32493
+ optional: true
32494
+ }],
32495
+ "pipelineAnalytics.listTrackMedia": [{
32496
+ name: "deviceId",
32497
+ form: "single",
32498
+ optional: false
32499
+ }],
32500
+ "pipelineAnalytics.listTracks": [{
32501
+ name: "deviceId",
32502
+ form: "single",
32503
+ optional: false
32504
+ }],
32505
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32506
+ name: "deviceId",
32507
+ form: "single",
32508
+ optional: false
32509
+ }],
32510
+ "pipelineAnalytics.pruneEventsBefore": [{
32511
+ name: "deviceId",
32512
+ form: "single",
32513
+ optional: false
32514
+ }],
32515
+ "pipelineAnalytics.pruneTracksBefore": [{
32516
+ name: "deviceId",
32517
+ form: "single",
32518
+ optional: false
32519
+ }],
32520
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32521
+ name: "deviceId",
32522
+ form: "single",
32523
+ optional: true
32524
+ }],
32525
+ "pipelineAnalytics.restageRetrainTrack": [{
32526
+ name: "deviceId",
32527
+ form: "single",
32528
+ optional: false
32529
+ }],
32530
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32531
+ name: "deviceId",
32532
+ form: "single",
32533
+ optional: false
32534
+ }],
32535
+ "pipelineAnalytics.searchObjectEvents": [{
32536
+ name: "deviceId",
32537
+ form: "single",
32538
+ optional: true
32539
+ }],
32540
+ "pipelineAnalytics.selectRetrainFrames": [{
32541
+ name: "deviceId",
32542
+ form: "single",
32543
+ optional: false
32544
+ }],
32545
+ "pipelineAnalytics.setTrackFlags": [{
32546
+ name: "deviceId",
32547
+ form: "single",
32548
+ optional: false
32549
+ }],
32550
+ "pipelineAnalytics.wipeAllAnalytics": [{
32551
+ name: "deviceId",
32552
+ form: "single",
32553
+ optional: false
32554
+ }],
32555
+ "pipelineExecutor.runPipeline": [{
32556
+ name: "deviceId",
32557
+ form: "single",
32558
+ optional: true
32559
+ }],
32560
+ "pipelineExecutor.runPipelineBatch": [{
32561
+ name: "deviceId",
32562
+ form: "single",
32563
+ optional: true
32564
+ }],
32565
+ "pipelineOrchestrator.assignAudio": [{
32566
+ name: "deviceId",
32567
+ form: "single",
32568
+ optional: false
32569
+ }],
32570
+ "pipelineOrchestrator.assignPipeline": [{
32571
+ name: "deviceId",
32572
+ form: "single",
32573
+ optional: false
32574
+ }],
32575
+ "pipelineOrchestrator.getAudioAssignment": [{
32576
+ name: "deviceId",
32577
+ form: "single",
32578
+ optional: false
32579
+ }],
32580
+ "pipelineOrchestrator.getCameraMetrics": [{
32581
+ name: "deviceId",
32582
+ form: "single",
32583
+ optional: false
32584
+ }],
32585
+ "pipelineOrchestrator.getCameraSettings": [{
32586
+ name: "deviceId",
32587
+ form: "single",
32588
+ optional: false
32589
+ }],
32590
+ "pipelineOrchestrator.getCameraStatus": [{
32591
+ name: "deviceId",
32592
+ form: "single",
32593
+ optional: false
32594
+ }],
32595
+ "pipelineOrchestrator.getCameraStatuses": [{
32596
+ name: "deviceIds",
32597
+ form: "array",
32598
+ optional: true
32599
+ }],
32600
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32601
+ name: "deviceId",
32602
+ form: "single",
32603
+ optional: false
32604
+ }],
32605
+ "pipelineOrchestrator.getCameraSwitches": [{
32606
+ name: "deviceId",
32607
+ form: "single",
32608
+ optional: false
32609
+ }],
32610
+ "pipelineOrchestrator.getPipelineAssignment": [{
32611
+ name: "deviceId",
32612
+ form: "single",
32613
+ optional: false
32614
+ }],
32615
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32616
+ name: "deviceId",
32617
+ form: "single",
32618
+ optional: false
32619
+ }],
32620
+ "pipelineOrchestrator.resolvePipeline": [{
32621
+ name: "deviceId",
32622
+ form: "single",
32623
+ optional: false
32624
+ }],
32625
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32626
+ name: "deviceId",
32627
+ form: "single",
32628
+ optional: false
32629
+ }],
32630
+ "pipelineOrchestrator.setCameraStepOverride": [{
32631
+ name: "deviceId",
32632
+ form: "single",
32633
+ optional: false
32634
+ }],
32635
+ "pipelineOrchestrator.setCameraStepToggle": [{
32636
+ name: "deviceId",
32637
+ form: "single",
32638
+ optional: false
32639
+ }],
32640
+ "pipelineOrchestrator.setCameraSwitch": [{
32641
+ name: "deviceId",
32642
+ form: "single",
32643
+ optional: false
32644
+ }],
32645
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32646
+ name: "deviceId",
32647
+ form: "single",
32648
+ optional: false
32649
+ }],
32650
+ "pipelineOrchestrator.unassignAudio": [{
32651
+ name: "deviceId",
32652
+ form: "single",
32653
+ optional: false
32654
+ }],
32655
+ "pipelineOrchestrator.unassignPipeline": [{
32656
+ name: "deviceId",
32657
+ form: "single",
32658
+ optional: false
32659
+ }],
32660
+ "pipelineRunner.attachCamera": [{
32661
+ name: "deviceId",
32662
+ form: "single",
32663
+ optional: false
32664
+ }],
32665
+ "pipelineRunner.detachCamera": [{
32666
+ name: "deviceId",
32667
+ form: "single",
32668
+ optional: false
32669
+ }],
32670
+ "pipelineRunner.getCameraMetrics": [{
32671
+ name: "deviceId",
32672
+ form: "single",
32673
+ optional: false
32674
+ }],
32675
+ "pipelineRunner.reportMotion": [{
32676
+ name: "deviceId",
32677
+ form: "single",
32678
+ optional: false
32679
+ }],
32680
+ "pipelineRunner.runDetailSubtree": [{
32681
+ name: "deviceId",
32682
+ form: "single",
32683
+ optional: false
32684
+ }],
32685
+ "pipelineRunner.runStatelessStep": [{
32686
+ name: "sourceDeviceId",
32687
+ form: "single",
32688
+ optional: false
32689
+ }],
32690
+ "plateGallery.getPlateByTrack": [{
32691
+ name: "deviceId",
32692
+ form: "single",
32693
+ optional: false
32694
+ }],
32695
+ "plateGallery.listPlates": [{
32696
+ name: "deviceId",
32697
+ form: "single",
32698
+ optional: true
32699
+ }],
32700
+ "privacyMask.getOptions": [{
32701
+ name: "deviceId",
32702
+ form: "single",
32703
+ optional: false
32704
+ }],
32705
+ "privacyMask.setAudioEnabled": [{
32706
+ name: "deviceId",
32707
+ form: "single",
32708
+ optional: false
32709
+ }],
32710
+ "privacyMask.setMask": [{
32711
+ name: "deviceId",
32712
+ form: "single",
32713
+ optional: false
32714
+ }],
32715
+ "ptz.continuousMove": [{
32716
+ name: "deviceId",
32717
+ form: "single",
32718
+ optional: false
32719
+ }],
32720
+ "ptz.deletePreset": [{
32721
+ name: "deviceId",
32722
+ form: "single",
32723
+ optional: false
32724
+ }],
32725
+ "ptz.getOptions": [{
32726
+ name: "deviceId",
32727
+ form: "single",
32728
+ optional: false
32729
+ }],
32730
+ "ptz.getPosition": [{
32731
+ name: "deviceId",
32732
+ form: "single",
32733
+ optional: false
32734
+ }],
32735
+ "ptz.getPresets": [{
32736
+ name: "deviceId",
32737
+ form: "single",
32738
+ optional: false
32739
+ }],
32740
+ "ptz.goHome": [{
32741
+ name: "deviceId",
32742
+ form: "single",
32743
+ optional: false
32744
+ }],
32745
+ "ptz.goToPreset": [{
32746
+ name: "deviceId",
32747
+ form: "single",
32748
+ optional: false
32749
+ }],
32750
+ "ptz.move": [{
32751
+ name: "deviceId",
32752
+ form: "single",
32753
+ optional: false
32754
+ }],
32755
+ "ptz.savePreset": [{
32756
+ name: "deviceId",
32757
+ form: "single",
32758
+ optional: false
32759
+ }],
32760
+ "ptz.setAutofocus": [{
32761
+ name: "deviceId",
32762
+ form: "single",
32763
+ optional: false
32764
+ }],
32765
+ "ptz.stop": [{
32766
+ name: "deviceId",
32767
+ form: "single",
32768
+ optional: false
32769
+ }],
32770
+ "ptzAutotrack.getSettings": [{
32771
+ name: "deviceId",
32772
+ form: "single",
32773
+ optional: false
32774
+ }],
32775
+ "ptzAutotrack.getStatus": [{
32776
+ name: "deviceId",
32777
+ form: "single",
32778
+ optional: false
32779
+ }],
32780
+ "ptzAutotrack.setEnabled": [{
32781
+ name: "deviceId",
32782
+ form: "single",
32783
+ optional: false
32784
+ }],
32785
+ "ptzAutotrack.setSettings": [{
32786
+ name: "deviceId",
32787
+ form: "single",
32788
+ optional: false
32789
+ }],
32790
+ "reboot.reboot": [{
32791
+ name: "deviceId",
32792
+ form: "single",
32793
+ optional: false
32794
+ }],
32795
+ "recording.deleteFootprint": [{
32796
+ name: "deviceId",
32797
+ form: "single",
32798
+ optional: false
32799
+ }],
32800
+ "recording.getAvailability": [{
32801
+ name: "deviceId",
32802
+ form: "single",
32803
+ optional: false
32804
+ }],
32805
+ "recording.getDaysWithRecordings": [{
32806
+ name: "deviceId",
32807
+ form: "single",
32808
+ optional: false
32809
+ }],
32810
+ "recording.getDeviceConfig": [{
32811
+ name: "deviceId",
32812
+ form: "single",
32813
+ optional: false
32814
+ }],
32815
+ "recording.getPlaybackManifest": [{
32816
+ name: "deviceId",
32817
+ form: "single",
32818
+ optional: false
32819
+ }],
32820
+ "recording.listOpsLog": [{
32821
+ name: "deviceId",
32822
+ form: "single",
32823
+ optional: true
32824
+ }],
32825
+ "recording.locateSegment": [{
32826
+ name: "deviceId",
32827
+ form: "single",
32828
+ optional: false
32829
+ }],
32830
+ "recording.pruneFootage": [{
32831
+ name: "deviceId",
32832
+ form: "single",
32833
+ optional: false
32834
+ }],
32835
+ "recording.readGopBytes": [{
32836
+ name: "deviceId",
32837
+ form: "single",
32838
+ optional: false
32839
+ }],
32840
+ "recording.readSegmentBytes": [{
32841
+ name: "deviceId",
32842
+ form: "single",
32843
+ optional: false
32844
+ }],
32845
+ "recording.relocateFootage": [{
32846
+ name: "deviceId",
32847
+ form: "single",
32848
+ optional: true
32849
+ }],
32850
+ "recording.renderClip": [{
32851
+ name: "deviceId",
32852
+ form: "single",
32853
+ optional: false
32854
+ }],
32855
+ "recording.renderGif": [{
32856
+ name: "deviceId",
32857
+ form: "single",
32858
+ optional: false
32859
+ }],
32860
+ "recording.rescanStorage": [{
32861
+ name: "deviceId",
32862
+ form: "single",
32863
+ optional: false
32864
+ }],
32865
+ "recording.setDeviceConfig": [{
32866
+ name: "deviceId",
32867
+ form: "single",
32868
+ optional: false
32869
+ }],
32870
+ "recording.startStorageMigrationMove": [{
32871
+ name: "deviceId",
32872
+ form: "single",
32873
+ optional: true
32874
+ }],
32875
+ "recordingExport.createExport": [{
32876
+ name: "deviceId",
32877
+ form: "single",
32878
+ optional: false
32879
+ }],
32880
+ "recordingExport.listExports": [{
32881
+ name: "deviceId",
32882
+ form: "single",
32883
+ optional: true
32884
+ }],
32885
+ "sceneMonitor.captureReference": [{
32886
+ name: "deviceId",
32887
+ form: "single",
32888
+ optional: false
32889
+ }],
32890
+ "sceneMonitor.createScene": [{
32891
+ name: "deviceId",
32892
+ form: "single",
32893
+ optional: false
32894
+ }],
32895
+ "sceneMonitor.deleteReference": [{
32896
+ name: "deviceId",
32897
+ form: "single",
32898
+ optional: false
32899
+ }],
32900
+ "sceneMonitor.deleteScene": [{
32901
+ name: "deviceId",
32902
+ form: "single",
32903
+ optional: false
32904
+ }],
32905
+ "sceneMonitor.listScenes": [{
32906
+ name: "deviceId",
32907
+ form: "single",
32908
+ optional: false
32909
+ }],
32910
+ "sceneMonitor.recheckNow": [{
32911
+ name: "deviceId",
32912
+ form: "single",
32913
+ optional: false
32914
+ }],
32915
+ "sceneMonitor.resetScene": [{
32916
+ name: "deviceId",
32917
+ form: "single",
32918
+ optional: false
32919
+ }],
32920
+ "sceneMonitor.updateScene": [{
32921
+ name: "deviceId",
32922
+ form: "single",
32923
+ optional: false
32924
+ }],
32925
+ "scriptRunner.run": [{
32926
+ name: "deviceId",
32927
+ form: "single",
32928
+ optional: false
32929
+ }],
32930
+ "scriptRunner.stop": [{
32931
+ name: "deviceId",
32932
+ form: "single",
32933
+ optional: false
32934
+ }],
32935
+ "snapshot.getDebugState": [{
32936
+ name: "deviceId",
32937
+ form: "single",
32938
+ optional: false
32939
+ }],
32940
+ "snapshot.getSnapshot": [{
32941
+ name: "deviceId",
32942
+ form: "single",
32943
+ optional: false
32944
+ }],
32945
+ "snapshot.getSnapshotLinks": [{
32946
+ name: "targets",
32947
+ form: "object-array",
32948
+ optional: false,
32949
+ itemField: "deviceId"
32950
+ }],
32951
+ "snapshot.getSnapshotOverview": [{
32952
+ name: "deviceIds",
32953
+ form: "array",
32954
+ optional: false
32955
+ }],
32956
+ "snapshot.invalidateCache": [{
32957
+ name: "deviceId",
32958
+ form: "single",
32959
+ optional: false
32960
+ }],
32961
+ "streamBroker.acquireEgressTranscode": [{
32962
+ name: "deviceId",
32963
+ form: "single",
32964
+ optional: false
32965
+ }],
32966
+ "streamBroker.assignProfile": [{
32967
+ name: "deviceId",
32968
+ form: "single",
32969
+ optional: false
32970
+ }],
32971
+ "streamBroker.getDeviceAudioMute": [{
32972
+ name: "deviceId",
32973
+ form: "single",
32974
+ optional: false
32975
+ }],
32976
+ "streamBroker.getStreamWithCodec": [{
32977
+ name: "deviceId",
32978
+ form: "single",
32979
+ optional: false
32980
+ }],
32981
+ "streamBroker.produceEventMedia": [{
32982
+ name: "deviceId",
32983
+ form: "single",
32984
+ optional: false
32985
+ }],
32986
+ "streamBroker.publishCameraStream": [{
32987
+ name: "deviceId",
32988
+ form: "single",
32989
+ optional: false
32990
+ }],
32991
+ "streamBroker.renderPreBufferClip": [{
32992
+ name: "deviceId",
32993
+ form: "single",
32994
+ optional: false
32995
+ }],
32996
+ "streamBroker.restartProfile": [{
32997
+ name: "deviceId",
32998
+ form: "single",
32999
+ optional: false
33000
+ }],
33001
+ "streamBroker.retractCameraStream": [{
33002
+ name: "deviceId",
33003
+ form: "single",
33004
+ optional: false
33005
+ }],
33006
+ "streamBroker.setDeviceAudioMute": [{
33007
+ name: "deviceId",
33008
+ form: "single",
33009
+ optional: false
33010
+ }],
33011
+ "streamBroker.unassignProfile": [{
33012
+ name: "deviceId",
33013
+ form: "single",
33014
+ optional: false
33015
+ }],
33016
+ "streamCatalog.getCatalog": [{
33017
+ name: "deviceId",
33018
+ form: "single",
33019
+ optional: false
33020
+ }],
33021
+ "streamParams.getConfigSchema": [{
33022
+ name: "deviceId",
33023
+ form: "single",
33024
+ optional: false
33025
+ }],
33026
+ "streamParams.getOptions": [{
33027
+ name: "deviceId",
33028
+ form: "single",
33029
+ optional: false
33030
+ }],
33031
+ "streamParams.setProfile": [{
33032
+ name: "deviceId",
33033
+ form: "single",
33034
+ optional: false
33035
+ }],
33036
+ "switch.setState": [{
33037
+ name: "deviceId",
33038
+ form: "single",
33039
+ optional: false
33040
+ }],
33041
+ "vacuumControl.locate": [{
33042
+ name: "deviceId",
33043
+ form: "single",
33044
+ optional: false
33045
+ }],
33046
+ "vacuumControl.pause": [{
33047
+ name: "deviceId",
33048
+ form: "single",
33049
+ optional: false
33050
+ }],
33051
+ "vacuumControl.returnToBase": [{
33052
+ name: "deviceId",
33053
+ form: "single",
33054
+ optional: false
33055
+ }],
33056
+ "vacuumControl.setFanSpeed": [{
33057
+ name: "deviceId",
33058
+ form: "single",
33059
+ optional: false
33060
+ }],
33061
+ "vacuumControl.start": [{
33062
+ name: "deviceId",
33063
+ form: "single",
33064
+ optional: false
33065
+ }],
33066
+ "vacuumControl.stop": [{
33067
+ name: "deviceId",
33068
+ form: "single",
33069
+ optional: false
33070
+ }],
33071
+ "valve.close": [{
33072
+ name: "deviceId",
33073
+ form: "single",
33074
+ optional: false
33075
+ }],
33076
+ "valve.open": [{
33077
+ name: "deviceId",
33078
+ form: "single",
33079
+ optional: false
33080
+ }],
33081
+ "valve.setPosition": [{
33082
+ name: "deviceId",
33083
+ form: "single",
33084
+ optional: false
33085
+ }],
33086
+ "valve.stop": [{
33087
+ name: "deviceId",
33088
+ form: "single",
33089
+ optional: false
33090
+ }],
33091
+ "videoclips.getClipPlayback": [{
33092
+ name: "deviceId",
33093
+ form: "single",
33094
+ optional: false
33095
+ }],
33096
+ "videoclips.listClips": [{
33097
+ name: "deviceId",
33098
+ form: "single",
33099
+ optional: false
33100
+ }],
33101
+ "waterHeater.setAway": [{
33102
+ name: "deviceId",
33103
+ form: "single",
33104
+ optional: false
33105
+ }],
33106
+ "waterHeater.setOperationMode": [{
33107
+ name: "deviceId",
33108
+ form: "single",
33109
+ optional: false
33110
+ }],
33111
+ "waterHeater.setTargetTemp": [{
33112
+ name: "deviceId",
33113
+ form: "single",
33114
+ optional: false
33115
+ }],
33116
+ "webrtcSession.addIceCandidate": [{
33117
+ name: "deviceId",
33118
+ form: "single",
33119
+ optional: false
33120
+ }],
33121
+ "webrtcSession.closeSession": [{
33122
+ name: "deviceId",
33123
+ form: "single",
33124
+ optional: false
33125
+ }],
33126
+ "webrtcSession.createSession": [{
33127
+ name: "deviceId",
33128
+ form: "single",
33129
+ optional: false
33130
+ }],
33131
+ "webrtcSession.getIceCandidates": [{
33132
+ name: "deviceId",
33133
+ form: "single",
33134
+ optional: false
33135
+ }],
33136
+ "webrtcSession.getSessionState": [{
33137
+ name: "deviceId",
33138
+ form: "single",
33139
+ optional: false
33140
+ }],
33141
+ "webrtcSession.handleAnswer": [{
33142
+ name: "deviceId",
33143
+ form: "single",
33144
+ optional: false
33145
+ }],
33146
+ "webrtcSession.handleOffer": [{
33147
+ name: "deviceId",
33148
+ form: "single",
33149
+ optional: false
33150
+ }],
33151
+ "webrtcSession.hasAdaptiveBitrate": [{
33152
+ name: "deviceId",
33153
+ form: "single",
33154
+ optional: false
33155
+ }],
33156
+ "webrtcSession.listStreams": [{
33157
+ name: "deviceId",
33158
+ form: "single",
33159
+ optional: false
33160
+ }],
33161
+ "zoneAnalytics.getCameraHistory": [{
33162
+ name: "deviceId",
33163
+ form: "single",
33164
+ optional: false
33165
+ }],
33166
+ "zoneAnalytics.getCurrentSnapshot": [{
33167
+ name: "deviceId",
33168
+ form: "single",
33169
+ optional: false
33170
+ }],
33171
+ "zoneAnalytics.getUnzonedHistory": [{
33172
+ name: "deviceId",
33173
+ form: "single",
33174
+ optional: false
33175
+ }],
33176
+ "zoneAnalytics.getZoneHistory": [{
33177
+ name: "deviceId",
33178
+ form: "single",
33179
+ optional: false
33180
+ }],
33181
+ "zoneRules.listRules": [{
33182
+ name: "deviceId",
33183
+ form: "single",
33184
+ optional: false
33185
+ }],
33186
+ "zoneRules.setRules": [{
33187
+ name: "deviceId",
33188
+ form: "single",
33189
+ optional: false
33190
+ }],
33191
+ "zones.addZone": [{
33192
+ name: "deviceId",
33193
+ form: "single",
33194
+ optional: false
33195
+ }],
33196
+ "zones.listZones": [{
33197
+ name: "deviceId",
33198
+ form: "single",
33199
+ optional: false
33200
+ }],
33201
+ "zones.removeZone": [{
33202
+ name: "deviceId",
33203
+ form: "single",
33204
+ optional: false
33205
+ }],
33206
+ "zones.updateZone": [{
33207
+ name: "deviceId",
33208
+ form: "single",
33209
+ optional: false
33210
+ }]
33211
+ });
30607
33212
  Object.freeze({
30608
33213
  "broker": "broker",
30609
33214
  "device-export": "device-export",