@camstack/addon-static-turn 1.2.16 → 1.2.17

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