@camstack/addon-mqtt-broker 1.2.17 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@ let crypto$10 = __toESM(crypto$1, 1);
44
44
  crypto$1 = __toESM(crypto$1);
45
45
  let node_fs = require("node:fs");
46
46
  let node_path = require("node:path");
47
- //#region ../types/dist/event-category-Cv9dO26A.mjs
47
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
48
48
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
49
49
  EventCategory["SystemBoot"] = "system.boot";
50
50
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -251,6 +251,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
251
251
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
252
252
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
253
253
  /**
254
+ * A node the orchestrator would otherwise place cameras on has NO usable
255
+ * inference device: the operator enabled one or more accelerators there and
256
+ * the live probe reports every one of them unavailable. Emitted once per
257
+ * TRANSITION into that state (never per dispatch), and the node is dropped
258
+ * from the placement candidate set for as long as it holds.
259
+ *
260
+ * This exists because the state was previously invisible: little-unraid
261
+ * absorbed 283k inference errors in a day while still being handed cameras,
262
+ * and nothing in the system said so.
263
+ *
264
+ * A node with no accelerators configured at all is NOT this — its devices
265
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
266
+ * serves it exactly as before.
267
+ */
268
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
269
+ /**
270
+ * A camera has an OPEN detection session and has produced no detection at
271
+ * all for longer than the blind threshold — the camera is being decoded and
272
+ * inferred and is returning nothing. Emitted once per transition into blind,
273
+ * per camera.
274
+ *
275
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
276
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
277
+ * camera" produce byte-identical silence.
278
+ */
279
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
280
+ /**
254
281
  * Per-camera pipeline config was mutated by the orchestrator
255
282
  * (3-level settings change via `setAgentAddonDefaults` /
256
283
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3042,6 +3069,9 @@ function handlePipeResult(left, next, ctx) {
3042
3069
  fallback: left.fallback
3043
3070
  }, ctx);
3044
3071
  }
3072
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3073
+ $ZodPipe.init(inst, def);
3074
+ });
3045
3075
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3046
3076
  $ZodType.init(inst, def);
3047
3077
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5227,6 +5257,10 @@ function pipe(in_, out) {
5227
5257
  out
5228
5258
  });
5229
5259
  }
5260
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5261
+ ZodPipe.init(inst, def);
5262
+ $ZodPreprocess.init(inst, def);
5263
+ });
5230
5264
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5231
5265
  $ZodReadonly.init(inst, def);
5232
5266
  ZodType.init(inst, def);
@@ -5285,6 +5319,13 @@ function _instanceof(cls, params = {}) {
5285
5319
  };
5286
5320
  return inst;
5287
5321
  }
5322
+ function preprocess(fn, schema) {
5323
+ return new ZodPreprocess({
5324
+ type: "pipe",
5325
+ in: transform(fn),
5326
+ out: schema
5327
+ });
5328
+ }
5288
5329
  //#endregion
5289
5330
  //#region ../../node_modules/zod/v4/classic/compat.js
5290
5331
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10852,6 +10893,8 @@ var QueryFilterSchema = object({
10852
10893
  where: record(string(), unknown()).optional(),
10853
10894
  whereIn: record(string(), array(unknown())).optional(),
10854
10895
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10896
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10897
+ whereNot: record(string(), unknown()).optional(),
10855
10898
  orderBy: object({
10856
10899
  field: string(),
10857
10900
  direction: _enum(["asc", "desc"])
@@ -10871,7 +10914,8 @@ var QueryFilterSchema = object({
10871
10914
  var MutationFilterSchema = object({
10872
10915
  where: record(string(), unknown()).optional(),
10873
10916
  whereIn: record(string(), array(unknown())).optional(),
10874
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10917
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10918
+ whereNot: record(string(), unknown()).optional()
10875
10919
  });
10876
10920
  /** A single stored record: `{ id, data }`. */
10877
10921
  var SettingsRecordSchema = object({
@@ -12228,6 +12272,17 @@ var LlmImageSchema = object({
12228
12272
  bytes: _instanceof(Uint8Array),
12229
12273
  mimeType: string()
12230
12274
  });
12275
+ /**
12276
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12277
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12278
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12279
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12280
+ */
12281
+ var LlmRetryPolicySchema = object({
12282
+ enabled: boolean().default(false),
12283
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12284
+ maxAttempts: number().int().min(1).max(5).default(1)
12285
+ });
12231
12286
  var LlmGenerateBaseInputSchema = object({
12232
12287
  /** Collection routing (the notification-output posture). */
12233
12288
  addonId: string().optional(),
@@ -12242,7 +12297,28 @@ var LlmGenerateBaseInputSchema = object({
12242
12297
  jsonSchema: record(string(), unknown()).optional(),
12243
12298
  /** Per-call override of the profile default. */
12244
12299
  maxTokens: number().int().positive().optional(),
12245
- temperature: number().optional()
12300
+ temperature: number().optional(),
12301
+ /** Per-call override of the profile default (nucleus sampling). */
12302
+ topP: number().min(0).max(1).optional(),
12303
+ /** Per-call override of the profile default (top-k sampling). */
12304
+ topK: number().int().positive().optional(),
12305
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12306
+ timeoutMs: number().int().positive().optional(),
12307
+ /** Per-call override; beats both the consumer table and the profile. */
12308
+ retry: LlmRetryPolicySchema.optional(),
12309
+ /**
12310
+ * Caller-minted id that makes this generation CANCELLABLE.
12311
+ *
12312
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12313
+ * the call against 8 s and free their own slot when the timer wins, while the
12314
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12315
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12316
+ * not generations, and the real load is unbounded.
12317
+ *
12318
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12319
+ * `llm.cancel({ requestId })` tears the socket down.
12320
+ */
12321
+ requestId: string().optional()
12246
12322
  });
12247
12323
  /**
12248
12324
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12255,6 +12331,18 @@ var LlmGenerateBaseInputSchema = object({
12255
12331
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12256
12332
  * watchdog — operator decision #3).
12257
12333
  */
12334
+ /**
12335
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12336
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12337
+ * REF rather than looked up at install time, so what the operator approved in
12338
+ * the preview is exactly what the node downloads.
12339
+ */
12340
+ var ManagedModelExtraFileSchema = object({
12341
+ url: string(),
12342
+ filename: string(),
12343
+ sizeBytes: number(),
12344
+ sha256: string().optional()
12345
+ });
12258
12346
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12259
12347
  object({
12260
12348
  kind: literal("catalog"),
@@ -12263,7 +12351,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12263
12351
  object({
12264
12352
  kind: literal("url"),
12265
12353
  url: string(),
12266
- sha256: string().optional()
12354
+ sha256: string().optional(),
12355
+ /** Picker/status label; the file basename when absent. */
12356
+ label: string().optional(),
12357
+ sizeBytes: number().optional(),
12358
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12267
12359
  }),
12268
12360
  object({
12269
12361
  kind: literal("path"),
@@ -12281,13 +12373,82 @@ var ManagedRuntimeConfigSchema = object({
12281
12373
  gpuLayers: number().int().default(0),
12282
12374
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12283
12375
  threads: number().int().optional(),
12284
- /** Concurrent slots. */
12376
+ /** Concurrent slots (`--parallel`). */
12285
12377
  parallel: number().int().default(1),
12378
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12379
+ batchSize: number().int().positive().optional(),
12380
+ /** Physical batch / micro-batch (`-ub`). */
12381
+ ubatchSize: number().int().positive().optional(),
12382
+ /**
12383
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12384
+ * is a no-op elsewhere, so it is offered rather than assumed.
12385
+ */
12386
+ flashAttention: boolean().default(false),
12387
+ /**
12388
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12389
+ * inference. Costs the full model size in resident memory — which is exactly
12390
+ * what the RAM budget is counting.
12391
+ */
12392
+ mlock: boolean().default(false),
12393
+ /**
12394
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12395
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12396
+ * store produces on every first token.
12397
+ */
12398
+ noMmap: boolean().default(false),
12399
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12400
+ * cheapest way to fit a longer context in the same RAM. */
12401
+ cacheTypeK: _enum([
12402
+ "f32",
12403
+ "f16",
12404
+ "q8_0",
12405
+ "q5_1",
12406
+ "q5_0",
12407
+ "q4_1",
12408
+ "q4_0"
12409
+ ]).optional(),
12410
+ cacheTypeV: _enum([
12411
+ "f32",
12412
+ "f16",
12413
+ "q8_0",
12414
+ "q5_1",
12415
+ "q5_0",
12416
+ "q4_1",
12417
+ "q4_0"
12418
+ ]).optional(),
12419
+ /**
12420
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12421
+ * (which most vision chat templates need and some language-only models
12422
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12423
+ *
12424
+ * It is NOT a second place to set the flags above. A token that collides
12425
+ * with a typed field is REJECTED at start, naming the field that owns it
12426
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12427
+ * the "two switches that disagree" failure this repo has already shipped
12428
+ * twice (D62).
12429
+ */
12430
+ extraArgs: array(string()).default([]),
12286
12431
  /** Else lazy: first generate boots it. */
12287
12432
  autoStart: boolean().default(false),
12288
12433
  /** 0 = never; frees RAM after quiet periods. */
12289
12434
  idleStopMinutes: number().int().default(30)
12290
12435
  });
12436
+ /**
12437
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12438
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12439
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12440
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12441
+ */
12442
+ var LlmDownloadProgressSchema = object({
12443
+ phase: _enum(["downloading", "verifying"]),
12444
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12445
+ file: string(),
12446
+ fileIndex: number().int(),
12447
+ fileCount: number().int(),
12448
+ /** Across the WHOLE install, not the current file. */
12449
+ downloadedBytes: number(),
12450
+ totalBytes: number().optional()
12451
+ });
12291
12452
  var LlmRuntimeStatusSchema = object({
12292
12453
  /** Status is ALWAYS node-qualified. */
12293
12454
  nodeId: string(),
@@ -12304,6 +12465,8 @@ var LlmRuntimeStatusSchema = object({
12304
12465
  modelPath: string().optional(),
12305
12466
  modelId: string().optional(),
12306
12467
  downloadProgress: number().min(0).max(1).optional(),
12468
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12469
+ download: LlmDownloadProgressSchema.optional(),
12307
12470
  lastError: string().optional(),
12308
12471
  crashesInWindow: number(),
12309
12472
  /** Child RSS (sampled best-effort). */
@@ -12314,7 +12477,14 @@ var LlmNodeModelSchema = object({
12314
12477
  file: string(),
12315
12478
  sizeBytes: number(),
12316
12479
  catalogId: string().optional(),
12317
- installedAt: number().optional()
12480
+ installedAt: number().optional(),
12481
+ /**
12482
+ * Absolute path on the node. Present so a file that is on disk but matches
12483
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12484
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12485
+ * it the picker could list such a file and do nothing with it.
12486
+ */
12487
+ path: string().optional()
12318
12488
  });
12319
12489
  var LlmRuntimeDiskUsageSchema = object({
12320
12490
  nodeId: string(),
@@ -12370,10 +12540,47 @@ var LlmProfileSchema = object({
12370
12540
  baseUrl: string().optional(),
12371
12541
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12372
12542
  apiKey: string().optional(),
12543
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12544
+ * degraded to text — that shipped once and produced a confident answer to a
12545
+ * question about a picture nobody sent. */
12373
12546
  supportsVision: boolean(),
12374
12547
  temperature: number().min(0).max(2).optional(),
12548
+ /** Nucleus sampling. Every wire we speak has it. */
12549
+ topP: number().min(0).max(1).optional(),
12550
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12551
+ * wire does, and the client drops it there (measured: the request body gets
12552
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12553
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12554
+ topK: number().int().positive().optional(),
12375
12555
  maxTokens: number().int().positive().optional(),
12556
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12557
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12558
+ * the model with, so it is the one field that changes a PROCESS. */
12559
+ contextLength: number().int().positive().optional(),
12560
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12561
+ * two system prompts fighting is worse than either alone). */
12562
+ systemPrompt: string().optional(),
12563
+ /** Total generation bound — the only one a unary call has. */
12376
12564
  timeoutMs: number().int().positive().default(6e4),
12565
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12566
+ * response headers: on the LM Studio / llama-server wire those are written
12567
+ * once the model has finished loading, so they belong to the bound below. */
12568
+ connectTimeoutMs: number().int().positive().default(1e4),
12569
+ /** Accepted, but no output yet — response headers included, because a cold
12570
+ * GPU load is exactly what happens before them. */
12571
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12572
+ /** Output started then stopped. */
12573
+ idleTimeoutMs: number().int().positive().default(6e4),
12574
+ /** Profile-level default. The per-consumer table and a per-call override
12575
+ * both beat it — see `resolveRetryPolicy`. */
12576
+ retry: LlmRetryPolicySchema.default({
12577
+ enabled: false,
12578
+ maxAttempts: 1
12579
+ }),
12580
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12581
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12582
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12583
+ toolsEnabled: boolean().default(false),
12377
12584
  extraHeaders: record(string(), string()).optional(),
12378
12585
  /** kind === 'managed-local' only (spec §4). */
12379
12586
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12423,6 +12630,36 @@ var ManagedModelCatalogEntrySchema = object({
12423
12630
  /** Vision models: companion projector file. */
12424
12631
  mmprojUrl: string().optional()
12425
12632
  });
12633
+ /**
12634
+ * The outcome of turning one operator-typed Hugging Face reference into a
12635
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12636
+ * I will not pick for you" is a normal answer the UI has to render, not an
12637
+ * exception.
12638
+ *
12639
+ * `candidates` is the whole reason the refusal is usable — every string in it
12640
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12641
+ */
12642
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12643
+ ok: literal(true),
12644
+ /** Ready to hand to `installModel` unchanged. */
12645
+ model: ManagedModelRefSchema,
12646
+ label: string(),
12647
+ repo: string(),
12648
+ quantization: string(),
12649
+ purpose: _enum(["text", "vision"]),
12650
+ totalBytes: number(),
12651
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12652
+ * see that 0.9 GB of it is a projector they did not name. */
12653
+ extraFilenames: array(string())
12654
+ }), object({
12655
+ ok: literal(false),
12656
+ code: string(),
12657
+ message: string(),
12658
+ candidates: array(string()).optional(),
12659
+ /** Set when the refusal was only the ceiling: re-calling with
12660
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12661
+ requiredBytes: number().optional()
12662
+ })]);
12426
12663
  var LlmRuntimeNodeSchema = object({
12427
12664
  nodeId: string(),
12428
12665
  reachable: boolean(),
@@ -12435,7 +12672,10 @@ var ProfileRefInputSchema = object({
12435
12672
  addonId: string(),
12436
12673
  profileId: string()
12437
12674
  });
12438
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12675
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12676
+ addonId: string().optional(),
12677
+ requestId: string()
12678
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12439
12679
  kind: "mutation",
12440
12680
  auth: "admin"
12441
12681
  }), method(ProfileRefInputSchema, _void(), {
@@ -12456,6 +12696,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12456
12696
  consumer: string().optional(),
12457
12697
  profileId: string().optional()
12458
12698
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12699
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12700
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12701
+ ref: string(),
12702
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12703
+ maxBytes: number().positive().optional()
12704
+ }), HfModelResolutionSchema, {
12705
+ kind: "mutation",
12706
+ auth: "admin"
12707
+ }), method(object({
12459
12708
  nodeId: string(),
12460
12709
  model: ManagedModelRefSchema
12461
12710
  }), _void(), {
@@ -14084,6 +14333,8 @@ var NcSystemEventKindSchema = _enum([
14084
14333
  "stream-offline",
14085
14334
  "node-online",
14086
14335
  "node-offline",
14336
+ "node-inference-unavailable",
14337
+ "detection-blind",
14087
14338
  "addon-update-available",
14088
14339
  "server-update-available",
14089
14340
  "alarm-triggered",
@@ -14145,7 +14396,16 @@ var NcScheduleSchema = object({
14145
14396
  });
14146
14397
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14147
14398
  var NcPlateMatcherSchema = object({
14148
- values: array(string().min(1)).min(1),
14399
+ /**
14400
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14401
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14402
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14403
+ * rather than merely seen. A subject carrying no plate still fails.
14404
+ *
14405
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14406
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14407
+ */
14408
+ values: array(string().min(1)),
14149
14409
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14150
14410
  maxDistance: number().int().min(0).max(3).default(1)
14151
14411
  });
@@ -14179,28 +14439,36 @@ var NcOccupancyConditionSchema = object({
14179
14439
  /**
14180
14440
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14181
14441
  *
14182
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14183
- * reference notifier uses, so an operator moving between them re-uses what
14184
- * they already know): a rule matches when, over a sampling window of
14185
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14186
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14187
- *
14188
- * - `dbThreshold` its level is at or above this many dBFS (see
14189
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14190
- * - `labels` the classifier put at least one of these labels on it.
14191
- *
14192
- * Both are OPTIONAL and independent, which is the point of the shape: a
14193
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14194
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14195
- * is given** a window in which every sample is trivially a hit would fire on
14196
- * silence, so the engine refuses such a condition rather than notifying on
14197
- * nothing (the schema cannot express "at least one of" without becoming a
14198
- * ZodEffects the cap path would have to special-case).
14199
- *
14200
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14201
- * must be FULL before it can match a window that has been open for two
14202
- * seconds of its ten is 100% of nothing, and firing on it would make
14203
- * `samplingSeconds` decorative.
14442
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14443
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14444
+ * there is no second switch that can disagree with the first and every rule
14445
+ * authored before the decision migrates for free (`audioModeOf`):
14446
+ *
14447
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14448
+ * classifier labels with one of them. No window, no percentage:
14449
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14450
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14451
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14452
+ * reaches this condition if the classifier was already confident enough.
14453
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14454
+ * the condition: at least `hitPercent`% of the samples over
14455
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14456
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14457
+ * must be FULL before it can match a window open for two of its ten
14458
+ * seconds is 100% of nothing.
14459
+ *
14460
+ * **Why label mode has no window.** It had one, and it never fired: the
14461
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14462
+ * of them per episode, even through continuous crying. The measured maximum
14463
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14464
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14465
+ * the wrong question to ask of a sparse classifier.
14466
+ *
14467
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14468
+ * and the rule would fire on silence. The schema cannot express "exactly one
14469
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14470
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14471
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14204
14472
  *
14205
14473
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14206
14474
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14208,13 +14476,13 @@ var NcOccupancyConditionSchema = object({
14208
14476
  * an operator who typed `dog` mean the same thing.
14209
14477
  */
14210
14478
  var NcAudioConditionSchema = object({
14211
- /** Audio macro labels; absent = any sound (level-only rule). */
14479
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14212
14480
  labels: array(string().min(1)).min(1).optional(),
14213
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14481
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14214
14482
  dbThreshold: number().min(-96).max(0).optional(),
14215
- /** Percentage of the window's samples that must be hits (1–100). */
14483
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14216
14484
  hitPercent: number().int().min(1).max(100).default(60),
14217
- /** Length of the sampling window in seconds. */
14485
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14218
14486
  samplingSeconds: number().int().min(1).max(300).default(10)
14219
14487
  });
14220
14488
  /**
@@ -14352,13 +14620,81 @@ var NcRuleActionsSchema = object({
14352
14620
  */
14353
14621
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14354
14622
  });
14623
+ /**
14624
+ * "This rule applies only while `deviceId` is in one of `states`."
14625
+ *
14626
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14627
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14628
+ * make the condition lie about devices whose states have no equivalent.
14629
+ *
14630
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14631
+ * condition that fired on "I could not read it" would be worse than no gate.
14632
+ */
14633
+ var NcDeviceStateConditionSchema = object({
14634
+ deviceId: number().int(),
14635
+ /** Any of these matches. */
14636
+ states: array(string().min(1)).min(1)
14637
+ });
14638
+ /**
14639
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14640
+ *
14641
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14642
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14643
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14644
+ * already has a trigger ("tell me about a person at the front door, but only
14645
+ * while the bin is still out"). That is why it composes with every delivery
14646
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14647
+ * kind exist for it — see D159.
14648
+ *
14649
+ * ── Identity ───────────────────────────────────────────────────────────────
14650
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14651
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14652
+ * carried as a HINT for the editor and for the log line, never as part of the
14653
+ * lookup key: a rule whose hint drifted must still gate correctly.
14654
+ *
14655
+ * ── Which boolean ──────────────────────────────────────────────────────────
14656
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14657
+ * already declares which boolean drives notification rules, and a second knob
14658
+ * that could disagree with it is exactly the D62 failure. Set it only to
14659
+ * override one rule against the scene's own default.
14660
+ *
14661
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14662
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14663
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14664
+ * evidence, in either direction.
14665
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14666
+ * The latch is a durable fact about the past ("it has diverged since I armed
14667
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14668
+ * reason the operator asked for a latch.
14669
+ *
14670
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14671
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14672
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14673
+ * said out loud in the log rather than dropped in silence.
14674
+ */
14675
+ var NcSceneConditionSchema = object({
14676
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14677
+ sceneId: string().min(1),
14678
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14679
+ deviceId: number().int().optional(),
14680
+ /** The state the scene must be in for the rule to fire. */
14681
+ requiredState: _enum(["matched", "diverged"]),
14682
+ /**
14683
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14684
+ * scene's own `emit` field, which is the only place that decision belongs.
14685
+ */
14686
+ latched: boolean().optional()
14687
+ });
14355
14688
  var NcConditionsSchema = object({
14356
14689
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14357
- deviceState: object({
14358
- deviceId: number().int(),
14359
- /** Any of these matches. */
14360
- states: array(string().min(1)).min(1)
14361
- }).optional(),
14690
+ deviceState: NcDeviceStateConditionSchema.optional(),
14691
+ /**
14692
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14693
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14694
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14695
+ * {@link NcSceneCondition} and D159.
14696
+ */
14697
+ scene: NcSceneConditionSchema.optional(),
14362
14698
  /** Device scope — absent = all devices. */
14363
14699
  devices: array(number()).optional(),
14364
14700
  /** Detector class names (any overlap with the record's class set). */
@@ -14384,18 +14720,47 @@ var NcConditionsSchema = object({
14384
14720
  */
14385
14721
  labelEquals: array(string().min(1)).optional(),
14386
14722
  /**
14387
- * Identity matcher. P1 boundary: matched against the record's collapsed
14388
- * `label` (the identity display name propagated by the face pipeline) —
14389
- * identity-ID matching rides in P2 when identity ids reach the record.
14723
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14724
+ * is about recognised people at all.
14725
+ *
14726
+ * Three states, and the empty one is the point:
14727
+ *
14728
+ * | value | meaning |
14729
+ * | --- | --- |
14730
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14731
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14732
+ * | a list | only these identities |
14733
+ *
14734
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14735
+ * `devices` list is every device), applied one level down: the operator has
14736
+ * turned the face scope ON and narrowed it to nothing, which is every known
14737
+ * face. No second field states the same thing — a switch that can disagree
14738
+ * with the list under it is worse than no switch (D62).
14739
+ *
14740
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14741
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14742
+ * the operator fixed the spelling. The id reaches the record on
14743
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14744
+ * `{{label}}` renders.
14745
+ *
14746
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14747
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14748
+ * for is left as it stands and reported, never dropped. The engine also
14749
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14750
+ * migration could not resolve keeps matching exactly what it matched before.
14390
14751
  */
14391
14752
  identities: array(string().min(1)).optional(),
14392
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14753
+ /**
14754
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14755
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14756
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14757
+ */
14393
14758
  plates: NcPlateMatcherSchema.optional(),
14394
14759
  /**
14395
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14396
- * Same P1 boundary: matched against the record's collapsed `label` (the
14397
- * identity display name). A record with NO label passes (nothing to
14398
- * exclude), unlike the include variant which fails on an absent label.
14760
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14761
+ * the same id members and the same lazy name→id migration. A record with NO
14762
+ * identity passes (nothing to exclude), unlike the include variant which
14763
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14399
14764
  */
14400
14765
  identitiesExclude: array(string().min(1)).optional(),
14401
14766
  /**
@@ -14787,7 +15152,80 @@ var NcRuleInputSchema = object({
14787
15152
  * a rule that predates the gate must keep delivering byte-for-byte as it
14788
15153
  * did, and absent is the only way to say that without a migration.
14789
15154
  */
14790
- confirm: NcConfirmSchema.optional()
15155
+ confirm: NcConfirmSchema.optional(),
15156
+ /**
15157
+ * WAIT for face/plate recognition before saying anything.
15158
+ *
15159
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15160
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15161
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15162
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15163
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15164
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15165
+ *
15166
+ * Only two honest answers exist, and this flag picks between them. It has
15167
+ * effect ONLY on a rule that declares a recognition scope
15168
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15169
+ * other rule there is nothing to wait for and the flag is inert.
15170
+ *
15171
+ * | value | what happens |
15172
+ * | --- | --- |
15173
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15174
+ * | 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) |
15175
+ *
15176
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15177
+ * on the addon cap path, and absent has to keep meaning exactly what every
15178
+ * rule authored before this field meant.
15179
+ *
15180
+ * The cost of `true` is stated here because the editor states it too: a rule
15181
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15182
+ * tests every zone the track visited and a `crossing` condition can no longer
15183
+ * be satisfied, because a closed track carries no crossing.
15184
+ */
15185
+ waitForEnhancement: boolean().optional(),
15186
+ /**
15187
+ * GROUP a burst of subjects into ONE notification that grows.
15188
+ *
15189
+ * Seconds of quiet after the last matching subject before the burst is
15190
+ * considered over. While it is open, the first subject enqueues immediately —
15191
+ * **exactly as today, with no added latency** — and every real growth (a new
15192
+ * subject, or a name confirmed on one already in it) REPLACES that
15193
+ * notification with an updated one naming everybody. The push carries the
15194
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15195
+ *
15196
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15197
+ *
15198
+ * ### Why an idle cutoff and not a window
15199
+ *
15200
+ * The measured seven-person arrival on device 590 spans 110 s with every
15201
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15202
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15203
+ * 30 is Frigate's shipped value for the same decision.
15204
+ *
15205
+ * ### What it replaces
15206
+ *
15207
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15208
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15209
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15210
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15211
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15212
+ * budget over GROUPS — which is what it always meant — and a growth is never
15213
+ * throttled by the window its own first member spent.
15214
+ *
15215
+ * ### Interaction with {@link waitForEnhancement}
15216
+ *
15217
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15218
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15219
+ * CLOSE — already carrying its name — and grows as later members close. That
15220
+ * is later, and complete. With grouping alone the group opens on the first
15221
+ * object event and picks up names as they are confirmed, through the growth
15222
+ * path. Neither combination fires twice for one subject.
15223
+ *
15224
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15225
+ * on the addon cap path, so absent must keep meaning what it meant before this
15226
+ * field existed.
15227
+ */
15228
+ groupIdleSec: number().int().min(0).max(600).optional()
14791
15229
  });
14792
15230
  /**
14793
15231
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14894,6 +15332,7 @@ var NcConditionDescriptorSchema = object({
14894
15332
  "occupancy",
14895
15333
  "audio",
14896
15334
  "deviceState",
15335
+ "scene",
14897
15336
  "systemEvent"
14898
15337
  ]),
14899
15338
  operator: _enum([
@@ -15299,7 +15738,87 @@ var MethodAccessSchema = _enum([
15299
15738
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15300
15739
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15301
15740
  var CapScopeSchema = _enum(["device", "system"]);
15302
- var TokenScopeSchema = discriminatedUnion("type", [
15741
+ /**
15742
+ * DeviceSelector (scope model v3 — 2026-08-12).
15743
+ *
15744
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15745
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15746
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15747
+ * AFTER the grant was minted — no re-grant, no re-login.
15748
+ *
15749
+ * - `all` — every device in the deployment. The broad viewer/operator
15750
+ * lever without a `category` grant (a `category` grant also covers device
15751
+ * caps that carry no deviceId; `all` is specifically the device set).
15752
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15753
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15754
+ * is NOT covered until the grant is edited.
15755
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15756
+ * DYNAMIC. A device that changes type, or a new device of the type,
15757
+ * re-resolves on the next request.
15758
+ * - `locations` — every device whose operator-assigned `location` label is
15759
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15760
+ * null/unset location matches NO `locations` selector.
15761
+ */
15762
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15763
+ object({ kind: literal("all") }),
15764
+ object({
15765
+ kind: literal("ids"),
15766
+ ids: array(number().int()).min(1)
15767
+ }),
15768
+ object({
15769
+ kind: literal("types"),
15770
+ types: array(_enum(DeviceType)).min(1)
15771
+ }),
15772
+ object({
15773
+ kind: literal("locations"),
15774
+ locations: array(string().min(1)).min(1)
15775
+ })
15776
+ ]);
15777
+ var DeviceTokenScopeSchema = object({
15778
+ type: literal("device"),
15779
+ /** The device SET this grant covers — resolved against the live fleet. */
15780
+ selector: DeviceSelectorSchema,
15781
+ access: array(MethodAccessSchema).min(1),
15782
+ /**
15783
+ * Whether a grant on a PARENT device transparently covers its accessory
15784
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15785
+ * Direction is parent → children ONLY.
15786
+ *
15787
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15788
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15789
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15790
+ * operator must grant on the child, not inherit from the parent). Set it
15791
+ * explicitly to override that default per grant.
15792
+ */
15793
+ includeLinked: boolean().optional()
15794
+ });
15795
+ /**
15796
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15797
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15798
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15799
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15800
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15801
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15802
+ * migration cannot reach a JWT already in a client's hands; parse-time
15803
+ * migration covers both without a flag day. No cast — the raw object is read
15804
+ * through `Reflect.get` (its static type is `unknown`).
15805
+ */
15806
+ function migrateLegacyTokenScope(raw) {
15807
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15808
+ if (Reflect.get(raw, "type") !== "device") return raw;
15809
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15810
+ const targets = Reflect.get(raw, "targets");
15811
+ if (!Array.isArray(targets)) return raw;
15812
+ return {
15813
+ type: "device",
15814
+ selector: {
15815
+ kind: "ids",
15816
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15817
+ },
15818
+ access: Reflect.get(raw, "access")
15819
+ };
15820
+ }
15821
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15303
15822
  object({
15304
15823
  type: literal("category"),
15305
15824
  target: CapScopeSchema,
@@ -15315,18 +15834,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15315
15834
  target: string(),
15316
15835
  access: array(MethodAccessSchema).min(1)
15317
15836
  }),
15318
- object({
15319
- type: literal("device"),
15320
- /**
15321
- * One or more deviceIds (serialised as strings for wire-format
15322
- * consistency with the rest of the union). Matcher accepts if
15323
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15324
- * of one scope-per-device when granting access to a set of cameras.
15325
- */
15326
- targets: array(string()).min(1),
15327
- access: array(MethodAccessSchema).min(1)
15328
- })
15329
- ]);
15837
+ DeviceTokenScopeSchema
15838
+ ]));
15330
15839
  object({
15331
15840
  id: string(),
15332
15841
  username: string(),
@@ -15643,7 +16152,7 @@ var TrackEnvelopeSchema = object({
15643
16152
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15644
16153
  * keeps every scalar the list surfaces actually render (ids, class(es),
15645
16154
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15646
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16155
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15647
16156
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15648
16157
  * `getTrack`. Mirrors the event-store `projection` convention
15649
16158
  * (`getObjectEvents` et al.).
@@ -15779,7 +16288,21 @@ union([literal(1), literal(2)]);
15779
16288
  var LabelAttributionSchema = object({
15780
16289
  stepId: string(),
15781
16290
  modelId: string().optional(),
15782
- decidedAt: number()
16291
+ decidedAt: number(),
16292
+ /**
16293
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16294
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16295
+ *
16296
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16297
+ * notification rule authored on "Gianluca" stopped matching the moment the
16298
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16299
+ * the thing that does not move, so it is what a rule matches on
16300
+ * (`NcConditions.identities`) and the text is what a human is shown.
16301
+ *
16302
+ * Absent when the label names no gallery row — a plate the OCR read but no
16303
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16304
+ */
16305
+ identityId: string().optional()
15783
16306
  });
15784
16307
  /**
15785
16308
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15916,6 +16439,28 @@ var TrackSchema = object({
15916
16439
  * `=== true` and render nothing otherwise, never infer "no face".
15917
16440
  */
15918
16441
  hasFace: boolean().optional(),
16442
+ /**
16443
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16444
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16445
+ * so the passage is tracked once and as a VEHICLE.
16446
+ *
16447
+ * It exists because the fold's record was dishonest. D34 and the code both
16448
+ * said "the person is not lost — it is reported so both entities stay on the
16449
+ * record"; in fact the pair went into a per-processor RAM field behind an
16450
+ * accessor nobody called, and every durable surface said `vehicle`, full
16451
+ * stop. This is the composition note that makes the row true.
16452
+ *
16453
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16454
+ * person" is not an answer to "what is this" — both label tiers would refuse
16455
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16456
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16457
+ * and a `person` rule still does not fire for someone cycling past.
16458
+ *
16459
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16460
+ * the column, and every hub that predates the field, omits it. Test
16461
+ * `=== true` and render nothing otherwise — never infer "no rider".
16462
+ */
16463
+ hasRider: boolean().optional(),
15919
16464
  ...TrackFlagFields,
15920
16465
  ...TrackRetrainFields
15921
16466
  });
@@ -16265,7 +16810,10 @@ var RecentTracksQueryInput = object({
16265
16810
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16266
16811
  cursor: string().optional(),
16267
16812
  /** See {@link TrackProjectionSchema}. Default `full`. */
16268
- projection: TrackProjectionSchema.optional()
16813
+ projection: TrackProjectionSchema.optional(),
16814
+ /** Include stationary-promoted rows (parked objects). Default false: the
16815
+ * feed lists passages; parking records live on the stationary registry. */
16816
+ includeStationary: boolean().optional()
16269
16817
  });
16270
16818
  var RecentTracksPageSchema = object({
16271
16819
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16483,7 +17031,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16483
17031
  zone: TrackZoneFilterSchema.optional(),
16484
17032
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16485
17033
  * compatible — omitting the field keeps today's exact behaviour). */
16486
- projection: TrackProjectionSchema.optional()
17034
+ projection: TrackProjectionSchema.optional(),
17035
+ /** Include stationary-promoted rows (parked objects handed to the
17036
+ * stationary registry). Default false: the timeline lists passages,
17037
+ * not parking records (operator decision, 2026-08-15). */
17038
+ includeStationary: boolean().optional()
16487
17039
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16488
17040
  kind: "mutation",
16489
17041
  auth: "admin"
@@ -16647,11 +17199,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16647
17199
  auth: "admin"
16648
17200
  }), method(object({
16649
17201
  eventId: string(),
16650
- kind: MediaFileKindEnum.optional()
17202
+ kind: MediaFileKindEnum.optional(),
17203
+ deviceId: number()
17204
+ }), array(MediaFileSchema).readonly()), method(object({
17205
+ trackId: string(),
17206
+ kinds: array(MediaFileKindEnum).optional(),
17207
+ deviceId: number()
16651
17208
  }), array(MediaFileSchema).readonly()), method(object({
16652
17209
  trackId: string(),
16653
- kinds: array(MediaFileKindEnum).optional()
16654
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17210
+ deviceId: number()
17211
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16655
17212
  kind: "mutation",
16656
17213
  auth: "admin"
16657
17214
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17311,6 +17868,17 @@ var maxSessionHoldMsField = {
17311
17868
  default: 12e4,
17312
17869
  step: 5e3
17313
17870
  };
17871
+ /**
17872
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17873
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17874
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17875
+ */
17876
+ var audioMotionWindowMsField = {
17877
+ min: 5e3,
17878
+ max: 6e5,
17879
+ default: 9e4,
17880
+ step: 5e3
17881
+ };
17314
17882
  var motionFpsField = {
17315
17883
  min: 1,
17316
17884
  max: 30,
@@ -17342,7 +17910,7 @@ var detectionFpsField = {
17342
17910
  var occupancyRecheckSecField = {
17343
17911
  min: 0,
17344
17912
  max: 300,
17345
- default: 30,
17913
+ default: 300,
17346
17914
  step: 5
17347
17915
  };
17348
17916
  var occupancyRecheckFramesField = {
@@ -17487,6 +18055,27 @@ var RunnerCameraConfigSchema = object({
17487
18055
  * resolved `CameraDetectionConfig`.
17488
18056
  */
17489
18057
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18058
+ /**
18059
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18060
+ * 'on-motion'` audio window, measured from the LAST motion event.
18061
+ *
18062
+ * This exists because the falling edge cannot be relied on. Camera-native
18063
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18064
+ * its email-push SMTP path both emit `detected: true` and never the
18065
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18066
+ * onboard-only camera a window that closed only on `detected: false` never
18067
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18068
+ * battery camera, the one failure mode the mode exists to prevent.
18069
+ *
18070
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18071
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18072
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18073
+ *
18074
+ * Not consumed by the runner: carried here so it shares the per-camera
18075
+ * device-settings surface with `motionCooldownMs`, exactly like
18076
+ * `maxSessionHoldMs`.
18077
+ */
18078
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17490
18079
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17491
18080
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17492
18081
  motionStreamId: string(),
@@ -17582,7 +18171,7 @@ var RunnerCameraConfigSchema = object({
17582
18171
  */
17583
18172
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17584
18173
  });
17585
- 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;
18174
+ 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;
17586
18175
  /**
17587
18176
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17588
18177
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18598,7 +19187,16 @@ targets: array(object({
18598
19187
  /** A sleeping battery camera: the frame is deliberately stale and will
18599
19188
  * NOT refresh in the background. A surface should say so rather than
18600
19189
  * present it as current. */
18601
- sleeping: boolean()
19190
+ sleeping: boolean(),
19191
+ /** Current device state rendered over the cached frame. State images
19192
+ * remain authoritative even when their photographic background is
19193
+ * old; null means the link must carry a current camera frame. */
19194
+ stateReason: _enum([
19195
+ "disabled",
19196
+ "sleeping",
19197
+ "unreachable",
19198
+ "waking"
19199
+ ]).nullable()
18602
19200
  })));
18603
19201
  /**
18604
19202
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20120,6 +20718,25 @@ var BatteryStatusSchema = object({
20120
20718
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20121
20719
  lastUpdated: number(),
20122
20720
  /**
20721
+ * Ms epoch of the last time the device PROVED it was reachable — a
20722
+ * completed firmware round-trip, an observed wake, or an inbound push
20723
+ * (firmware event, email). `0`/absent = never since this slice was born.
20724
+ *
20725
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20726
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20727
+ * for the radio, because a poll that confirms reachability is the same
20728
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20729
+ * single derivation every consumer must use; no surface computes its own.
20730
+ *
20731
+ * It is deliberately NOT a clock in the
20732
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20733
+ * observation itself, and it is the only thing a 30-hour silence is
20734
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20735
+ * Reolink provider) so a value that means "recently" cannot cost a
20736
+ * SQLite commit per round-trip.
20737
+ */
20738
+ lastContactAt: number().optional(),
20739
+ /**
20123
20740
  * True when the source is a BINARY low-battery indicator (HA
20124
20741
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20125
20742
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23657,7 +24274,7 @@ method(object({
23657
24274
  toMs: number()
23658
24275
  }), RecordingAvailabilitySchema, {
23659
24276
  kind: "query",
23660
- auth: "admin"
24277
+ auth: "protected"
23661
24278
  }), method(object({
23662
24279
  deviceId: number(),
23663
24280
  fromMs: number(),
@@ -23665,14 +24282,14 @@ method(object({
23665
24282
  tzOffsetMinutes: number()
23666
24283
  }), RecordingDaysSchema, {
23667
24284
  kind: "query",
23668
- auth: "admin"
24285
+ auth: "protected"
23669
24286
  }), method(object({
23670
24287
  deviceId: number(),
23671
24288
  fromMs: number(),
23672
24289
  toMs: number()
23673
24290
  }), RecordingManifestSchema, {
23674
24291
  kind: "query",
23675
- auth: "admin"
24292
+ auth: "protected"
23676
24293
  }), method(object({}), RecordingStorageUsageSchema, {
23677
24294
  kind: "query",
23678
24295
  auth: "admin"
@@ -23962,14 +24579,77 @@ method(object({
23962
24579
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23963
24580
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23964
24581
  *
23965
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
23966
- * derives the device-detail contribution; the provider carries NO hand-written
23967
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
23968
- * every hysteresis flip / availability change; consumers never poll.
24582
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24583
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24584
+ * for the thing: a scene is a standing question about the property ("is the bin
24585
+ * still out"), and the operator's question is "which of my scenes have tripped",
24586
+ * across every camera at once — not "what does camera 617 think". Buried one
24587
+ * camera deep it also could not be found. The surface is now a top-level admin
24588
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24589
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24590
+ *
24591
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24592
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24593
+ * directions, so a registration nobody declares fails exactly as loudly as a
24594
+ * declaration nobody registers. The editor is imported directly by the page.
24595
+ *
24596
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24597
+ * availability change; consumers never poll.
23969
24598
  */
23970
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23971
- * be added without a wire break (matching falls back to any-condition refs). */
24599
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24600
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24601
+ * Open by design so more can be added without a wire break.
24602
+ *
24603
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24604
+ * not comparable, so "I have never seen this scene in this light" is reported
24605
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24606
+ * collapses the cosine and would latch a false alarm every single night. */
23972
24607
  var SceneConditionSchema = string();
24608
+ /**
24609
+ * What a scene does when the CURRENT light has no reference of its own.
24610
+ *
24611
+ * The lighting variants are not equally likely to exist. Almost every operator
24612
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24613
+ * scene that is only ever going to be asked about a daytime question ("is the
24614
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24615
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24616
+ * working without it rather than degrading into a permanent complaint.
24617
+ *
24618
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24619
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24620
+ * last covered light left it at, the latch is untouched, and the hysteresis
24621
+ * run is neither spent nor cleared. The scene resumes by itself at first
24622
+ * light. This is the only behaviour under which "I never captured IR" is a
24623
+ * configuration choice instead of a nightly fault.
24624
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24625
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24626
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24627
+ * cross-condition cosines are not comparable, so a day reference against a
24628
+ * true IR frame collapses and the scene reports a theft at 21:40.
24629
+ *
24630
+ * Never applies when the scene has NO comparable reference at all — that is
24631
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24632
+ * there would hide a scene the operator never finished setting up.
24633
+ */
24634
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24635
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24636
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24637
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24638
+ * and never counts toward hysteresis in either direction. */
24639
+ var SceneVerdictSchema = _enum([
24640
+ "matched",
24641
+ "diverged",
24642
+ "unknown"
24643
+ ]);
24644
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24645
+ * silence that reads as "nothing has happened". */
24646
+ var SceneUnavailableSchema = _enum([
24647
+ "no-reference-for-condition",
24648
+ "view-shifted",
24649
+ "no-vision-profile",
24650
+ "encoder-model-changed",
24651
+ "no-snapshot"
24652
+ ]);
23973
24653
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23974
24654
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23975
24655
  var SceneReferenceSchema = object({
@@ -23977,7 +24657,14 @@ var SceneReferenceSchema = object({
23977
24657
  modelId: string(),
23978
24658
  condition: SceneConditionSchema,
23979
24659
  capturedAt: number(),
23980
- thumbnailMediaId: string().optional()
24660
+ thumbnailMediaId: string().optional(),
24661
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24662
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24663
+ * normalized rect frame a different piece of world, and the scene would
24664
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24665
+ * when hysteresis is about to flip — one extra encode per candidate
24666
+ * transition, not per poll. */
24667
+ anchorEmbedding: array(number()).optional()
23981
24668
  });
23982
24669
  var SceneMonitorStateSchema = object({
23983
24670
  id: string(),
@@ -23999,6 +24686,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
23999
24686
  profileId: string().optional(),
24000
24687
  hysteresisCount: number().int().positive()
24001
24688
  })]);
24689
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24690
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24691
+ * out in silence rather than reporting a fault every night. */
24692
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24693
+ /**
24694
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24695
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24696
+ *
24697
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24698
+ * fail-open: a notification suppressed is the worse error there, but a vision
24699
+ * model that timed out has not told us the bin is gone, and a latch is a
24700
+ * stateful claim that costs the operator a trip to reset.
24701
+ */
24702
+ var SceneConfirmSchema = object({
24703
+ enabled: boolean().default(false),
24704
+ prompt: string().min(1).max(1e3),
24705
+ profileId: string().optional(),
24706
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24707
+ maxImagePx: number().int().min(64).max(2048).default(448),
24708
+ /** What a timeout / unavailable model means for the PENDING flip. */
24709
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24710
+ });
24002
24711
  var SceneMonitorSchema = object({
24003
24712
  id: string(),
24004
24713
  label: string(),
@@ -24017,7 +24726,56 @@ var SceneMonitorSchema = object({
24017
24726
  lastConfidence: number().nullable(),
24018
24727
  currentCondition: SceneConditionSchema.nullable(),
24019
24728
  availability: _enum(["ok", "unavailable"]),
24020
- unavailableReason: string().nullable()
24729
+ unavailableReason: string().nullable(),
24730
+ /** Which state is "the initial screen". `null` until the first capture. */
24731
+ baselineStateId: string().nullable(),
24732
+ /** Which boolean drives notification rules and any export. */
24733
+ emit: _enum(["latched", "live"]).default("latched"),
24734
+ /** Live: does the region match the baseline RIGHT NOW. */
24735
+ verdict: SceneVerdictSchema,
24736
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24737
+ latched: boolean(),
24738
+ /** Last reset (or creation). */
24739
+ armedAt: number(),
24740
+ divergedAt: number().nullable(),
24741
+ restoredAt: number().nullable(),
24742
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24743
+ * during the window DISCARDS the observation — a car pulling up in front of
24744
+ * the bin must not be able to spend hysteresis credit. */
24745
+ quietSeconds: number().int().min(0).max(3600).default(60),
24746
+ /** An observation only advances the pending count when it is at least this
24747
+ * far from the previously counted one, so N agreeing checks span real time
24748
+ * rather than N adjacent polls inside one occlusion. */
24749
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24750
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24751
+ confirm: SceneConfirmSchema.optional(),
24752
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24753
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24754
+ /** Clear the latch on its own when the scene matches again? Default false —
24755
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24756
+ * automation can react to the bin coming back without the operator's own
24757
+ * alarm silently clearing itself. */
24758
+ autoRestore: boolean().default(false),
24759
+ /** What to do when the current light has no reference of its own. See
24760
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24761
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24762
+ /**
24763
+ * The light whose checks are currently being SAT OUT under
24764
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24765
+ *
24766
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24767
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24768
+ * nothing captured in this light"* in the same calm voice as the coverage
24769
+ * line, because the alternative is a scene that silently stops answering
24770
+ * after sunset with nothing anywhere saying why. A skipped check must never
24771
+ * read as a broken one.
24772
+ */
24773
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24774
+ /** Named cause when `verdict === 'unknown'`. */
24775
+ unavailable: SceneUnavailableSchema.nullable(),
24776
+ /** Conditions that have at least one comparable reference — the coverage line
24777
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24778
+ coveredConditions: array(SceneConditionSchema)
24021
24779
  });
24022
24780
  var SceneMonitorStatusSchema = object({
24023
24781
  monitors: array(SceneMonitorSchema),
@@ -24050,7 +24808,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24050
24808
  "both"
24051
24809
  ]).optional(),
24052
24810
  checkIntervalSec: number().optional(),
24053
- check: SceneCheckSchema.optional()
24811
+ check: SceneCheckSchema.optional(),
24812
+ emit: _enum(["latched", "live"]).optional(),
24813
+ quietSeconds: number().int().min(0).max(3600).optional(),
24814
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24815
+ anchorThreshold: number().min(0).max(1).optional(),
24816
+ autoRestore: boolean().optional(),
24817
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24818
+ /** `null` clears the vision-model adjudicator. */
24819
+ confirm: SceneConfirmSchema.nullable().optional()
24054
24820
  })
24055
24821
  }), _void(), {
24056
24822
  kind: "mutation",
@@ -24087,6 +24853,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24087
24853
  }), _void(), {
24088
24854
  kind: "mutation",
24089
24855
  auth: "admin"
24856
+ }), method(object({
24857
+ deviceId: number(),
24858
+ monitorId: string(),
24859
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24860
+ recapture: boolean().optional()
24861
+ }), _void(), {
24862
+ kind: "mutation",
24863
+ auth: "admin"
24090
24864
  });
24091
24865
  /**
24092
24866
  * Per-stage gating mode applied to the zones a rule references.
@@ -24240,6 +25014,16 @@ var CamStreamDescriptorSchema = object({
24240
25014
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24241
25015
  metadata: record(string(), unknown()).optional()
24242
25016
  });
25017
+ object({
25018
+ /** The descriptors as last built from a real camera response. Never a guess:
25019
+ * a failed or refused build writes NOTHING, so a restored catalog is always
25020
+ * one the camera itself once produced. */
25021
+ descriptors: array(CamStreamDescriptorSchema),
25022
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
25023
+ * path decide whether the camera's own awake window is worth spending on a
25024
+ * re-read. */
25025
+ lastFetchedAt: number()
25026
+ });
24243
25027
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24244
25028
  /** One of the camera's stream profiles. */
24245
25029
  var StreamProfileSchema = _enum([
@@ -24395,12 +25179,64 @@ var NetworkAddressSchema = object({
24395
25179
  family: string(),
24396
25180
  internal: boolean()
24397
25181
  });
25182
+ /**
25183
+ * Provenance of the site coordinates, and the whole reason this is not just two
25184
+ * numbers.
25185
+ *
25186
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25187
+ * nothing overwrites it.
25188
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25189
+ * default that is right to a few kilometres beats the coarse UTC clock split
25190
+ * the sun-times consumers otherwise fall back to.
25191
+ *
25192
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25193
+ * own input will eventually trust the guess.
25194
+ */
25195
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25196
+ /**
25197
+ * The read shape: the location plus the honest state of the one-shot derivation.
25198
+ *
25199
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25200
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25201
+ * failed; the hub will NOT try again on its own — the fallback is declared
25202
+ * (consumers degrade to their own last resort) and the operator either types the
25203
+ * coordinates or presses detect.
25204
+ */
25205
+ var SiteLocationStatusSchema = object({
25206
+ location: object({
25207
+ /** WGS84 decimal degrees. */
25208
+ latitude: number().min(-90).max(90),
25209
+ longitude: number().min(-180).max(180),
25210
+ source: SiteLocationSourceSchema,
25211
+ /** Epoch ms the value was last written. */
25212
+ updatedAt: number(),
25213
+ /**
25214
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25215
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25216
+ */
25217
+ label: string().optional()
25218
+ }).nullable(),
25219
+ derivationAttemptedAt: number().nullable(),
25220
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25221
+ derivationError: string().nullable()
25222
+ });
25223
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25224
+ var SetSiteLocationInputSchema = object({
25225
+ latitude: number().min(-90).max(90),
25226
+ longitude: number().min(-180).max(180)
25227
+ }).nullable();
24398
25228
  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(), {
24399
25229
  kind: "mutation",
24400
25230
  auth: "admin"
24401
25231
  }), method(_void(), _void(), {
24402
25232
  kind: "mutation",
24403
25233
  auth: "admin"
25234
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25235
+ kind: "mutation",
25236
+ auth: "admin"
25237
+ }), method(_void(), SiteLocationStatusSchema, {
25238
+ kind: "mutation",
25239
+ auth: "admin"
24404
25240
  });
24405
25241
  object({
24406
25242
  /** True when the device's tamper switch / case-open contact is
@@ -27130,6 +27966,12 @@ Object.freeze({
27130
27966
  addonId: null,
27131
27967
  access: "create"
27132
27968
  },
27969
+ "llm.cancel": {
27970
+ capName: "llm",
27971
+ capScope: "system",
27972
+ addonId: null,
27973
+ access: "create"
27974
+ },
27133
27975
  "llm.deleteModel": {
27134
27976
  capName: "llm",
27135
27977
  capScope: "system",
@@ -27214,6 +28056,12 @@ Object.freeze({
27214
28056
  addonId: null,
27215
28057
  access: "view"
27216
28058
  },
28059
+ "llm.resolveModelRef": {
28060
+ capName: "llm",
28061
+ capScope: "system",
28062
+ addonId: null,
28063
+ access: "create"
28064
+ },
27217
28065
  "llm.setDefault": {
27218
28066
  capName: "llm",
27219
28067
  capScope: "system",
@@ -29380,6 +30228,12 @@ Object.freeze({
29380
30228
  addonId: null,
29381
30229
  access: "create"
29382
30230
  },
30231
+ "sceneMonitor.resetScene": {
30232
+ capName: "scene-monitor",
30233
+ capScope: "device",
30234
+ addonId: null,
30235
+ access: "delete"
30236
+ },
29383
30237
  "sceneMonitor.updateScene": {
29384
30238
  capName: "scene-monitor",
29385
30239
  capScope: "device",
@@ -30058,6 +30912,12 @@ Object.freeze({
30058
30912
  addonId: null,
30059
30913
  access: "create"
30060
30914
  },
30915
+ "system.detectSiteLocation": {
30916
+ capName: "system",
30917
+ capScope: "system",
30918
+ addonId: null,
30919
+ access: "create"
30920
+ },
30061
30921
  "system.featureFlags": {
30062
30922
  capName: "system",
30063
30923
  capScope: "system",
@@ -30076,6 +30936,12 @@ Object.freeze({
30076
30936
  addonId: null,
30077
30937
  access: "view"
30078
30938
  },
30939
+ "system.getSiteLocation": {
30940
+ capName: "system",
30941
+ capScope: "system",
30942
+ addonId: null,
30943
+ access: "view"
30944
+ },
30079
30945
  "system.health": {
30080
30946
  capName: "system",
30081
30947
  capScope: "system",
@@ -30100,6 +30966,12 @@ Object.freeze({
30100
30966
  addonId: null,
30101
30967
  access: "create"
30102
30968
  },
30969
+ "system.setSiteLocation": {
30970
+ capName: "system",
30971
+ capScope: "system",
30972
+ addonId: null,
30973
+ access: "create"
30974
+ },
30103
30975
  "terminalSession.adoptLegacyMonitor": {
30104
30976
  capName: "terminal-session",
30105
30977
  capScope: "system",
@@ -30671,6 +31543,1704 @@ Object.freeze({
30671
31543
  access: "create"
30672
31544
  }
30673
31545
  });
31546
+ Object.freeze({
31547
+ "accessories.setChildHidden": [{
31548
+ name: "childDeviceId",
31549
+ form: "single",
31550
+ optional: false
31551
+ }, {
31552
+ name: "deviceId",
31553
+ form: "single",
31554
+ optional: false
31555
+ }],
31556
+ "addonSettings.getDeviceSettings": [{
31557
+ name: "deviceId",
31558
+ form: "single",
31559
+ optional: false
31560
+ }],
31561
+ "addonSettings.updateDeviceSettings": [{
31562
+ name: "deviceId",
31563
+ form: "single",
31564
+ optional: false
31565
+ }],
31566
+ "alarmPanel.arm": [{
31567
+ name: "deviceId",
31568
+ form: "single",
31569
+ optional: false
31570
+ }],
31571
+ "alarmPanel.disarm": [{
31572
+ name: "deviceId",
31573
+ form: "single",
31574
+ optional: false
31575
+ }],
31576
+ "alarmPanel.trigger": [{
31577
+ name: "deviceId",
31578
+ form: "single",
31579
+ optional: false
31580
+ }],
31581
+ "audioAnalysis.resolveDeviceSettings": [{
31582
+ name: "deviceId",
31583
+ form: "single",
31584
+ optional: false
31585
+ }],
31586
+ "audioAnalyzer.classify": [{
31587
+ name: "deviceId",
31588
+ form: "single",
31589
+ optional: true
31590
+ }],
31591
+ "audioMetrics.getCurrentSnapshot": [{
31592
+ name: "deviceId",
31593
+ form: "single",
31594
+ optional: false
31595
+ }],
31596
+ "audioMetrics.getHistory": [{
31597
+ name: "deviceId",
31598
+ form: "single",
31599
+ optional: false
31600
+ }],
31601
+ "automationControl.disable": [{
31602
+ name: "deviceId",
31603
+ form: "single",
31604
+ optional: false
31605
+ }],
31606
+ "automationControl.enable": [{
31607
+ name: "deviceId",
31608
+ form: "single",
31609
+ optional: false
31610
+ }],
31611
+ "automationControl.trigger": [{
31612
+ name: "deviceId",
31613
+ form: "single",
31614
+ optional: false
31615
+ }],
31616
+ "battery.wakeForStream": [{
31617
+ name: "deviceId",
31618
+ form: "single",
31619
+ optional: false
31620
+ }],
31621
+ "brightness.setBrightness": [{
31622
+ name: "deviceId",
31623
+ form: "single",
31624
+ optional: false
31625
+ }],
31626
+ "button.press": [{
31627
+ name: "deviceId",
31628
+ form: "single",
31629
+ optional: false
31630
+ }],
31631
+ "cameraCredentials.getCredentials": [{
31632
+ name: "deviceId",
31633
+ form: "single",
31634
+ optional: false
31635
+ }],
31636
+ "cameraStreams.getBrokerStreams": [{
31637
+ name: "deviceId",
31638
+ form: "single",
31639
+ optional: false
31640
+ }],
31641
+ "cameraStreams.getCameraStreams": [{
31642
+ name: "deviceId",
31643
+ form: "single",
31644
+ optional: false
31645
+ }],
31646
+ "cameraStreams.getProfileRtspEntries": [{
31647
+ name: "deviceId",
31648
+ form: "single",
31649
+ optional: false
31650
+ }],
31651
+ "cameraStreams.getRtspEntries": [{
31652
+ name: "deviceId",
31653
+ form: "single",
31654
+ optional: false
31655
+ }],
31656
+ "cameraStreams.pickStream": [{
31657
+ name: "deviceId",
31658
+ form: "single",
31659
+ optional: false
31660
+ }],
31661
+ "climateControl.setFanMode": [{
31662
+ name: "deviceId",
31663
+ form: "single",
31664
+ optional: false
31665
+ }],
31666
+ "climateControl.setMode": [{
31667
+ name: "deviceId",
31668
+ form: "single",
31669
+ optional: false
31670
+ }],
31671
+ "climateControl.setPreset": [{
31672
+ name: "deviceId",
31673
+ form: "single",
31674
+ optional: false
31675
+ }],
31676
+ "climateControl.setSwingHorizontal": [{
31677
+ name: "deviceId",
31678
+ form: "single",
31679
+ optional: false
31680
+ }],
31681
+ "climateControl.setSwingVertical": [{
31682
+ name: "deviceId",
31683
+ form: "single",
31684
+ optional: false
31685
+ }],
31686
+ "climateControl.setTarget": [{
31687
+ name: "deviceId",
31688
+ form: "single",
31689
+ optional: false
31690
+ }],
31691
+ "climateControl.setTargetHumidity": [{
31692
+ name: "deviceId",
31693
+ form: "single",
31694
+ optional: false
31695
+ }],
31696
+ "climateControl.setTargetRange": [{
31697
+ name: "deviceId",
31698
+ form: "single",
31699
+ optional: false
31700
+ }],
31701
+ "color.setColor": [{
31702
+ name: "deviceId",
31703
+ form: "single",
31704
+ optional: false
31705
+ }],
31706
+ "consumables.reset": [{
31707
+ name: "deviceId",
31708
+ form: "single",
31709
+ optional: false
31710
+ }],
31711
+ "control.setValue": [{
31712
+ name: "deviceId",
31713
+ form: "single",
31714
+ optional: false
31715
+ }],
31716
+ "cover.close": [{
31717
+ name: "deviceId",
31718
+ form: "single",
31719
+ optional: false
31720
+ }],
31721
+ "cover.open": [{
31722
+ name: "deviceId",
31723
+ form: "single",
31724
+ optional: false
31725
+ }],
31726
+ "cover.setPosition": [{
31727
+ name: "deviceId",
31728
+ form: "single",
31729
+ optional: false
31730
+ }],
31731
+ "cover.setTiltPosition": [{
31732
+ name: "deviceId",
31733
+ form: "single",
31734
+ optional: false
31735
+ }],
31736
+ "cover.stop": [{
31737
+ name: "deviceId",
31738
+ form: "single",
31739
+ optional: false
31740
+ }],
31741
+ "dayNight.getOptions": [{
31742
+ name: "deviceId",
31743
+ form: "single",
31744
+ optional: false
31745
+ }],
31746
+ "dayNight.setSettings": [{
31747
+ name: "deviceId",
31748
+ form: "single",
31749
+ optional: false
31750
+ }],
31751
+ "decoder.createSession": [{
31752
+ name: "deviceId",
31753
+ form: "single",
31754
+ optional: true
31755
+ }],
31756
+ "deviceAdoption.release": [{
31757
+ name: "camDeviceId",
31758
+ form: "single",
31759
+ optional: false
31760
+ }],
31761
+ "deviceAdoption.resync": [{
31762
+ name: "camDeviceId",
31763
+ form: "single",
31764
+ optional: false
31765
+ }],
31766
+ "deviceDiscovery.adoptDevice": [{
31767
+ name: "deviceId",
31768
+ form: "single",
31769
+ optional: false
31770
+ }],
31771
+ "deviceDiscovery.listDiscovered": [{
31772
+ name: "deviceId",
31773
+ form: "single",
31774
+ optional: false
31775
+ }],
31776
+ "deviceDiscovery.refreshDiscovery": [{
31777
+ name: "deviceId",
31778
+ form: "single",
31779
+ optional: false
31780
+ }],
31781
+ "deviceDiscovery.releaseDevice": [{
31782
+ name: "childDeviceId",
31783
+ form: "single",
31784
+ optional: false
31785
+ }, {
31786
+ name: "deviceId",
31787
+ form: "single",
31788
+ optional: false
31789
+ }],
31790
+ "deviceManager.adoptionRelease": [{
31791
+ name: "camDeviceId",
31792
+ form: "single",
31793
+ optional: false
31794
+ }],
31795
+ "deviceManager.adoptionResync": [{
31796
+ name: "camDeviceId",
31797
+ form: "single",
31798
+ optional: false
31799
+ }],
31800
+ "deviceManager.applyInitialMeta": [{
31801
+ name: "deviceId",
31802
+ form: "single",
31803
+ optional: false
31804
+ }, {
31805
+ name: "linkDeviceId",
31806
+ form: "single",
31807
+ optional: true
31808
+ }],
31809
+ "deviceManager.disable": [{
31810
+ name: "deviceId",
31811
+ form: "single",
31812
+ optional: false
31813
+ }],
31814
+ "deviceManager.enable": [{
31815
+ name: "deviceId",
31816
+ form: "single",
31817
+ optional: false
31818
+ }],
31819
+ "deviceManager.getBindings": [{
31820
+ name: "deviceId",
31821
+ form: "single",
31822
+ optional: false
31823
+ }],
31824
+ "deviceManager.getChildren": [{
31825
+ name: "parentDeviceId",
31826
+ form: "single",
31827
+ optional: false
31828
+ }],
31829
+ "deviceManager.getConfigSchema": [{
31830
+ name: "deviceId",
31831
+ form: "single",
31832
+ optional: false
31833
+ }],
31834
+ "deviceManager.getDevice": [{
31835
+ name: "deviceId",
31836
+ form: "single",
31837
+ optional: false
31838
+ }],
31839
+ "deviceManager.getDeviceAggregate": [{
31840
+ name: "deviceId",
31841
+ form: "single",
31842
+ optional: false
31843
+ }],
31844
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31845
+ name: "deviceId",
31846
+ form: "single",
31847
+ optional: false
31848
+ }],
31849
+ "deviceManager.getDeviceSettingsAggregate": [{
31850
+ name: "deviceId",
31851
+ form: "single",
31852
+ optional: false
31853
+ }],
31854
+ "deviceManager.getDeviceStatusAggregate": [{
31855
+ name: "deviceId",
31856
+ form: "single",
31857
+ optional: false
31858
+ }],
31859
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31860
+ name: "deviceIds",
31861
+ form: "array",
31862
+ optional: false
31863
+ }],
31864
+ "deviceManager.getLinkedDevices": [{
31865
+ name: "deviceId",
31866
+ form: "single",
31867
+ optional: false
31868
+ }],
31869
+ "deviceManager.getSettingsSchema": [{
31870
+ name: "deviceId",
31871
+ form: "single",
31872
+ optional: false
31873
+ }],
31874
+ "deviceManager.getStreamProfileMap": [{
31875
+ name: "deviceId",
31876
+ form: "single",
31877
+ optional: false
31878
+ }],
31879
+ "deviceManager.getStreamSources": [{
31880
+ name: "deviceId",
31881
+ form: "single",
31882
+ optional: false
31883
+ }],
31884
+ "deviceManager.getWireableFields": [{
31885
+ name: "deviceId",
31886
+ form: "single",
31887
+ optional: false
31888
+ }],
31889
+ "deviceManager.loadConfig": [{
31890
+ name: "deviceId",
31891
+ form: "single",
31892
+ optional: false
31893
+ }],
31894
+ "deviceManager.loadMeta": [{
31895
+ name: "deviceId",
31896
+ form: "single",
31897
+ optional: false
31898
+ }],
31899
+ "deviceManager.loadRuntimeState": [{
31900
+ name: "deviceId",
31901
+ form: "single",
31902
+ optional: false
31903
+ }],
31904
+ "deviceManager.persistConfig": [{
31905
+ name: "deviceId",
31906
+ form: "single",
31907
+ optional: false
31908
+ }],
31909
+ "deviceManager.probeStreams": [{
31910
+ name: "deviceId",
31911
+ form: "single",
31912
+ optional: false
31913
+ }],
31914
+ "deviceManager.registerDevice": [{
31915
+ name: "parentDeviceId",
31916
+ form: "single",
31917
+ optional: true
31918
+ }],
31919
+ "deviceManager.remove": [{
31920
+ name: "deviceId",
31921
+ form: "single",
31922
+ optional: false
31923
+ }],
31924
+ "deviceManager.removeDevice": [{
31925
+ name: "deviceId",
31926
+ form: "single",
31927
+ optional: false
31928
+ }],
31929
+ "deviceManager.runDeviceAction": [{
31930
+ name: "deviceId",
31931
+ form: "single",
31932
+ optional: false
31933
+ }],
31934
+ "deviceManager.setChildLayout": [{
31935
+ name: "deviceId",
31936
+ form: "single",
31937
+ optional: false
31938
+ }],
31939
+ "deviceManager.setDisabled": [{
31940
+ name: "deviceId",
31941
+ form: "single",
31942
+ optional: false
31943
+ }],
31944
+ "deviceManager.setDisplay": [{
31945
+ name: "deviceId",
31946
+ form: "single",
31947
+ optional: false
31948
+ }],
31949
+ "deviceManager.setIntegrationId": [{
31950
+ name: "deviceId",
31951
+ form: "single",
31952
+ optional: false
31953
+ }],
31954
+ "deviceManager.setLinkDeviceId": [{
31955
+ name: "deviceId",
31956
+ form: "single",
31957
+ optional: false
31958
+ }, {
31959
+ name: "linkDeviceId",
31960
+ form: "single",
31961
+ optional: true
31962
+ }],
31963
+ "deviceManager.setLocation": [{
31964
+ name: "deviceId",
31965
+ form: "single",
31966
+ optional: false
31967
+ }],
31968
+ "deviceManager.setMetadata": [{
31969
+ name: "deviceId",
31970
+ form: "single",
31971
+ optional: false
31972
+ }],
31973
+ "deviceManager.setName": [{
31974
+ name: "deviceId",
31975
+ form: "single",
31976
+ optional: false
31977
+ }],
31978
+ "deviceManager.setPrimaryChildEntityId": [{
31979
+ name: "deviceId",
31980
+ form: "single",
31981
+ optional: false
31982
+ }],
31983
+ "deviceManager.setRole": [{
31984
+ name: "deviceId",
31985
+ form: "single",
31986
+ optional: false
31987
+ }],
31988
+ "deviceManager.setStreamProfileMap": [{
31989
+ name: "deviceId",
31990
+ form: "single",
31991
+ optional: false
31992
+ }],
31993
+ "deviceManager.setType": [{
31994
+ name: "deviceId",
31995
+ form: "single",
31996
+ optional: false
31997
+ }],
31998
+ "deviceManager.setWrapperActive": [{
31999
+ name: "deviceId",
32000
+ form: "single",
32001
+ optional: false
32002
+ }],
32003
+ "deviceManager.testField": [{
32004
+ name: "deviceId",
32005
+ form: "single",
32006
+ optional: false
32007
+ }],
32008
+ "deviceManager.updateConfig": [{
32009
+ name: "deviceId",
32010
+ form: "single",
32011
+ optional: false
32012
+ }],
32013
+ "deviceManager.updateDeviceField": [{
32014
+ name: "deviceId",
32015
+ form: "single",
32016
+ optional: false
32017
+ }],
32018
+ "deviceManager.updateDeviceFieldsBatch": [{
32019
+ name: "deviceId",
32020
+ form: "single",
32021
+ optional: false
32022
+ }],
32023
+ "deviceOps.getConfigEntries": [{
32024
+ name: "deviceId",
32025
+ form: "single",
32026
+ optional: false
32027
+ }],
32028
+ "deviceOps.getRawState": [{
32029
+ name: "deviceId",
32030
+ form: "single",
32031
+ optional: false
32032
+ }],
32033
+ "deviceOps.getSettingsSchema": [{
32034
+ name: "deviceId",
32035
+ form: "single",
32036
+ optional: false
32037
+ }],
32038
+ "deviceOps.getStreamSources": [{
32039
+ name: "deviceId",
32040
+ form: "single",
32041
+ optional: false
32042
+ }],
32043
+ "deviceOps.removeDevice": [{
32044
+ name: "deviceId",
32045
+ form: "single",
32046
+ optional: false
32047
+ }],
32048
+ "deviceOps.runAction": [{
32049
+ name: "deviceId",
32050
+ form: "single",
32051
+ optional: false
32052
+ }],
32053
+ "deviceOps.setConfig": [{
32054
+ name: "deviceId",
32055
+ form: "single",
32056
+ optional: false
32057
+ }],
32058
+ "deviceState.getCapSlice": [{
32059
+ name: "deviceId",
32060
+ form: "single",
32061
+ optional: false
32062
+ }],
32063
+ "deviceState.getSnapshot": [{
32064
+ name: "deviceId",
32065
+ form: "single",
32066
+ optional: false
32067
+ }],
32068
+ "deviceState.setCapSlice": [{
32069
+ name: "deviceId",
32070
+ form: "single",
32071
+ optional: false
32072
+ }],
32073
+ "events.getEventClipUrl": [{
32074
+ name: "deviceId",
32075
+ form: "single",
32076
+ optional: false
32077
+ }],
32078
+ "events.getEvents": [{
32079
+ name: "deviceId",
32080
+ form: "single",
32081
+ optional: false
32082
+ }],
32083
+ "events.getEventThumbnail": [{
32084
+ name: "deviceId",
32085
+ form: "single",
32086
+ optional: false
32087
+ }],
32088
+ "faceGallery.getFaceByTrack": [{
32089
+ name: "deviceId",
32090
+ form: "single",
32091
+ optional: false
32092
+ }],
32093
+ "faceGallery.listRecentFaces": [{
32094
+ name: "deviceId",
32095
+ form: "single",
32096
+ optional: true
32097
+ }],
32098
+ "fanControl.setDirection": [{
32099
+ name: "deviceId",
32100
+ form: "single",
32101
+ optional: false
32102
+ }],
32103
+ "fanControl.setOscillating": [{
32104
+ name: "deviceId",
32105
+ form: "single",
32106
+ optional: false
32107
+ }],
32108
+ "fanControl.setPercentage": [{
32109
+ name: "deviceId",
32110
+ form: "single",
32111
+ optional: false
32112
+ }],
32113
+ "fanControl.setPreset": [{
32114
+ name: "deviceId",
32115
+ form: "single",
32116
+ optional: false
32117
+ }],
32118
+ "humidifier.setMode": [{
32119
+ name: "deviceId",
32120
+ form: "single",
32121
+ optional: false
32122
+ }],
32123
+ "humidifier.setOn": [{
32124
+ name: "deviceId",
32125
+ form: "single",
32126
+ optional: false
32127
+ }],
32128
+ "humidifier.setTargetHumidity": [{
32129
+ name: "deviceId",
32130
+ form: "single",
32131
+ optional: false
32132
+ }],
32133
+ "imageSettings.getOptions": [{
32134
+ name: "deviceId",
32135
+ form: "single",
32136
+ optional: false
32137
+ }],
32138
+ "imageSettings.setSettings": [{
32139
+ name: "deviceId",
32140
+ form: "single",
32141
+ optional: false
32142
+ }],
32143
+ "intercom.endTalkSession": [{
32144
+ name: "deviceId",
32145
+ form: "single",
32146
+ optional: false
32147
+ }],
32148
+ "intercom.handleAnswer": [{
32149
+ name: "deviceId",
32150
+ form: "single",
32151
+ optional: false
32152
+ }],
32153
+ "intercom.pushTalkAudio": [{
32154
+ name: "deviceId",
32155
+ form: "single",
32156
+ optional: false
32157
+ }],
32158
+ "intercom.startSession": [{
32159
+ name: "deviceId",
32160
+ form: "single",
32161
+ optional: false
32162
+ }],
32163
+ "intercom.startTalkSession": [{
32164
+ name: "deviceId",
32165
+ form: "single",
32166
+ optional: false
32167
+ }],
32168
+ "intercom.stopSession": [{
32169
+ name: "deviceId",
32170
+ form: "single",
32171
+ optional: false
32172
+ }],
32173
+ "lawnMowerControl.dock": [{
32174
+ name: "deviceId",
32175
+ form: "single",
32176
+ optional: false
32177
+ }],
32178
+ "lawnMowerControl.pause": [{
32179
+ name: "deviceId",
32180
+ form: "single",
32181
+ optional: false
32182
+ }],
32183
+ "lawnMowerControl.startMowing": [{
32184
+ name: "deviceId",
32185
+ form: "single",
32186
+ optional: false
32187
+ }],
32188
+ "lockControl.lock": [{
32189
+ name: "deviceId",
32190
+ form: "single",
32191
+ optional: false
32192
+ }],
32193
+ "lockControl.open": [{
32194
+ name: "deviceId",
32195
+ form: "single",
32196
+ optional: false
32197
+ }],
32198
+ "lockControl.unlock": [{
32199
+ name: "deviceId",
32200
+ form: "single",
32201
+ optional: false
32202
+ }],
32203
+ "mediaPlayer.next": [{
32204
+ name: "deviceId",
32205
+ form: "single",
32206
+ optional: false
32207
+ }],
32208
+ "mediaPlayer.pause": [{
32209
+ name: "deviceId",
32210
+ form: "single",
32211
+ optional: false
32212
+ }],
32213
+ "mediaPlayer.play": [{
32214
+ name: "deviceId",
32215
+ form: "single",
32216
+ optional: false
32217
+ }],
32218
+ "mediaPlayer.playMedia": [{
32219
+ name: "deviceId",
32220
+ form: "single",
32221
+ optional: false
32222
+ }],
32223
+ "mediaPlayer.previous": [{
32224
+ name: "deviceId",
32225
+ form: "single",
32226
+ optional: false
32227
+ }],
32228
+ "mediaPlayer.seek": [{
32229
+ name: "deviceId",
32230
+ form: "single",
32231
+ optional: false
32232
+ }],
32233
+ "mediaPlayer.selectSource": [{
32234
+ name: "deviceId",
32235
+ form: "single",
32236
+ optional: false
32237
+ }],
32238
+ "mediaPlayer.setMute": [{
32239
+ name: "deviceId",
32240
+ form: "single",
32241
+ optional: false
32242
+ }],
32243
+ "mediaPlayer.setRepeat": [{
32244
+ name: "deviceId",
32245
+ form: "single",
32246
+ optional: false
32247
+ }],
32248
+ "mediaPlayer.setShuffle": [{
32249
+ name: "deviceId",
32250
+ form: "single",
32251
+ optional: false
32252
+ }],
32253
+ "mediaPlayer.setVolume": [{
32254
+ name: "deviceId",
32255
+ form: "single",
32256
+ optional: false
32257
+ }],
32258
+ "mediaPlayer.stop": [{
32259
+ name: "deviceId",
32260
+ form: "single",
32261
+ optional: false
32262
+ }],
32263
+ "motion.isDetected": [{
32264
+ name: "deviceId",
32265
+ form: "single",
32266
+ optional: false
32267
+ }],
32268
+ "motionDetection.analyze": [{
32269
+ name: "deviceId",
32270
+ form: "single",
32271
+ optional: false
32272
+ }],
32273
+ "motionDetection.removeCamera": [{
32274
+ name: "deviceId",
32275
+ form: "single",
32276
+ optional: false
32277
+ }],
32278
+ "motionTrigger.setMotionTrigger": [{
32279
+ name: "deviceId",
32280
+ form: "single",
32281
+ optional: false
32282
+ }],
32283
+ "motionZones.getOptions": [{
32284
+ name: "deviceId",
32285
+ form: "single",
32286
+ optional: false
32287
+ }],
32288
+ "motionZones.setZone": [{
32289
+ name: "deviceId",
32290
+ form: "single",
32291
+ optional: false
32292
+ }],
32293
+ "nativeObjectDetection.setEnabled": [{
32294
+ name: "deviceId",
32295
+ form: "single",
32296
+ optional: false
32297
+ }],
32298
+ "networkQuality.getDeviceStats": [{
32299
+ name: "deviceId",
32300
+ form: "single",
32301
+ optional: false
32302
+ }],
32303
+ "networkQuality.reportClientStats": [{
32304
+ name: "deviceId",
32305
+ form: "single",
32306
+ optional: false
32307
+ }],
32308
+ "notificationRules.setDeviceMuted": [{
32309
+ name: "deviceId",
32310
+ form: "single",
32311
+ optional: false
32312
+ }],
32313
+ "notifier.cancel": [{
32314
+ name: "deviceId",
32315
+ form: "single",
32316
+ optional: false
32317
+ }],
32318
+ "notifier.send": [{
32319
+ name: "deviceId",
32320
+ form: "single",
32321
+ optional: false
32322
+ }],
32323
+ "osd.setOverlay": [{
32324
+ name: "deviceId",
32325
+ form: "single",
32326
+ optional: false
32327
+ }],
32328
+ "osdManager.clearSlotBinding": [{
32329
+ name: "deviceId",
32330
+ form: "single",
32331
+ optional: false
32332
+ }],
32333
+ "osdManager.copyDeviceConfiguration": [{
32334
+ name: "sourceDeviceId",
32335
+ form: "single",
32336
+ optional: false
32337
+ }, {
32338
+ name: "targetDeviceId",
32339
+ form: "single",
32340
+ optional: false
32341
+ }],
32342
+ "osdManager.getDeviceOsd": [{
32343
+ name: "deviceId",
32344
+ form: "single",
32345
+ optional: false
32346
+ }],
32347
+ "osdManager.getSourceCatalog": [{
32348
+ name: "deviceId",
32349
+ form: "single",
32350
+ optional: false
32351
+ }],
32352
+ "osdManager.previewSlot": [{
32353
+ name: "deviceId",
32354
+ form: "single",
32355
+ optional: false
32356
+ }],
32357
+ "osdManager.renderDevice": [{
32358
+ name: "deviceId",
32359
+ form: "single",
32360
+ optional: false
32361
+ }],
32362
+ "osdManager.setSlotBinding": [{
32363
+ name: "deviceId",
32364
+ form: "single",
32365
+ optional: false
32366
+ }],
32367
+ "petFeeder.callPet": [{
32368
+ name: "deviceId",
32369
+ form: "single",
32370
+ optional: false
32371
+ }],
32372
+ "petFeeder.cancelFeed": [{
32373
+ name: "deviceId",
32374
+ form: "single",
32375
+ optional: false
32376
+ }],
32377
+ "petFeeder.feed": [{
32378
+ name: "deviceId",
32379
+ form: "single",
32380
+ optional: false
32381
+ }],
32382
+ "petFeeder.markFoodReplenished": [{
32383
+ name: "deviceId",
32384
+ form: "single",
32385
+ optional: false
32386
+ }],
32387
+ "petFeeder.playSound": [{
32388
+ name: "deviceId",
32389
+ form: "single",
32390
+ optional: false
32391
+ }],
32392
+ "petFeeder.resetDesiccant": [{
32393
+ name: "deviceId",
32394
+ form: "single",
32395
+ optional: false
32396
+ }],
32397
+ "petFeeder.setChildLock": [{
32398
+ name: "deviceId",
32399
+ form: "single",
32400
+ optional: false
32401
+ }],
32402
+ "petFeeder.setFeedSound": [{
32403
+ name: "deviceId",
32404
+ form: "single",
32405
+ optional: false
32406
+ }],
32407
+ "petFeeder.setIndicatorLight": [{
32408
+ name: "deviceId",
32409
+ form: "single",
32410
+ optional: false
32411
+ }],
32412
+ "petFeeder.setVolume": [{
32413
+ name: "deviceId",
32414
+ form: "single",
32415
+ optional: false
32416
+ }],
32417
+ "pipelineAnalytics.clearTracks": [{
32418
+ name: "deviceId",
32419
+ form: "single",
32420
+ optional: false
32421
+ }],
32422
+ "pipelineAnalytics.completeRetrainTrack": [{
32423
+ name: "deviceId",
32424
+ form: "single",
32425
+ optional: false
32426
+ }],
32427
+ "pipelineAnalytics.deleteDeviceEvents": [{
32428
+ name: "deviceId",
32429
+ form: "single",
32430
+ optional: false
32431
+ }],
32432
+ "pipelineAnalytics.deleteTracks": [{
32433
+ name: "deviceId",
32434
+ form: "single",
32435
+ optional: false
32436
+ }],
32437
+ "pipelineAnalytics.deselectRetrainFrame": [{
32438
+ name: "deviceId",
32439
+ form: "single",
32440
+ optional: false
32441
+ }],
32442
+ "pipelineAnalytics.getActiveTracks": [{
32443
+ name: "deviceId",
32444
+ form: "single",
32445
+ optional: false
32446
+ }],
32447
+ "pipelineAnalytics.getAudioEvents": [{
32448
+ name: "deviceId",
32449
+ form: "single",
32450
+ optional: false
32451
+ }],
32452
+ "pipelineAnalytics.getEventDensity": [{
32453
+ name: "deviceId",
32454
+ form: "single",
32455
+ optional: false
32456
+ }],
32457
+ "pipelineAnalytics.getEventMedia": [{
32458
+ name: "deviceId",
32459
+ form: "single",
32460
+ optional: false
32461
+ }],
32462
+ "pipelineAnalytics.getKeyEvents": [{
32463
+ name: "deviceId",
32464
+ form: "single",
32465
+ optional: false
32466
+ }],
32467
+ "pipelineAnalytics.getMotionEvents": [{
32468
+ name: "deviceId",
32469
+ form: "single",
32470
+ optional: false
32471
+ }],
32472
+ "pipelineAnalytics.getObjectEvents": [{
32473
+ name: "deviceId",
32474
+ form: "single",
32475
+ optional: false
32476
+ }],
32477
+ "pipelineAnalytics.getRetrainExportUrl": [{
32478
+ name: "deviceIds",
32479
+ form: "array",
32480
+ optional: true
32481
+ }],
32482
+ "pipelineAnalytics.getSensorEvents": [{
32483
+ name: "deviceId",
32484
+ form: "single",
32485
+ optional: false
32486
+ }],
32487
+ "pipelineAnalytics.getTrack": [{
32488
+ name: "deviceId",
32489
+ form: "single",
32490
+ optional: false
32491
+ }],
32492
+ "pipelineAnalytics.getTrackMedia": [{
32493
+ name: "deviceId",
32494
+ form: "single",
32495
+ optional: false
32496
+ }],
32497
+ "pipelineAnalytics.getTrainingExportSummary": [{
32498
+ name: "deviceIds",
32499
+ form: "array",
32500
+ optional: true
32501
+ }],
32502
+ "pipelineAnalytics.getTrainingExportUrl": [{
32503
+ name: "deviceIds",
32504
+ form: "array",
32505
+ optional: true
32506
+ }],
32507
+ "pipelineAnalytics.listEventKinds": [{
32508
+ name: "deviceId",
32509
+ form: "single",
32510
+ optional: false
32511
+ }],
32512
+ "pipelineAnalytics.listEventKindsBatch": [{
32513
+ name: "deviceIds",
32514
+ form: "array",
32515
+ optional: false
32516
+ }],
32517
+ "pipelineAnalytics.listOpsLog": [{
32518
+ name: "deviceId",
32519
+ form: "single",
32520
+ optional: true
32521
+ }],
32522
+ "pipelineAnalytics.listRecentTracks": [{
32523
+ name: "deviceIds",
32524
+ form: "array",
32525
+ optional: false
32526
+ }],
32527
+ "pipelineAnalytics.listRetrainStaging": [{
32528
+ name: "deviceIds",
32529
+ form: "array",
32530
+ optional: true
32531
+ }],
32532
+ "pipelineAnalytics.listTrackMedia": [{
32533
+ name: "deviceId",
32534
+ form: "single",
32535
+ optional: false
32536
+ }],
32537
+ "pipelineAnalytics.listTracks": [{
32538
+ name: "deviceId",
32539
+ form: "single",
32540
+ optional: false
32541
+ }],
32542
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32543
+ name: "deviceId",
32544
+ form: "single",
32545
+ optional: false
32546
+ }],
32547
+ "pipelineAnalytics.pruneEventsBefore": [{
32548
+ name: "deviceId",
32549
+ form: "single",
32550
+ optional: false
32551
+ }],
32552
+ "pipelineAnalytics.pruneTracksBefore": [{
32553
+ name: "deviceId",
32554
+ form: "single",
32555
+ optional: false
32556
+ }],
32557
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32558
+ name: "deviceId",
32559
+ form: "single",
32560
+ optional: true
32561
+ }],
32562
+ "pipelineAnalytics.restageRetrainTrack": [{
32563
+ name: "deviceId",
32564
+ form: "single",
32565
+ optional: false
32566
+ }],
32567
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32568
+ name: "deviceId",
32569
+ form: "single",
32570
+ optional: false
32571
+ }],
32572
+ "pipelineAnalytics.searchObjectEvents": [{
32573
+ name: "deviceId",
32574
+ form: "single",
32575
+ optional: true
32576
+ }],
32577
+ "pipelineAnalytics.selectRetrainFrames": [{
32578
+ name: "deviceId",
32579
+ form: "single",
32580
+ optional: false
32581
+ }],
32582
+ "pipelineAnalytics.setTrackFlags": [{
32583
+ name: "deviceId",
32584
+ form: "single",
32585
+ optional: false
32586
+ }],
32587
+ "pipelineAnalytics.wipeAllAnalytics": [{
32588
+ name: "deviceId",
32589
+ form: "single",
32590
+ optional: false
32591
+ }],
32592
+ "pipelineExecutor.runPipeline": [{
32593
+ name: "deviceId",
32594
+ form: "single",
32595
+ optional: true
32596
+ }],
32597
+ "pipelineExecutor.runPipelineBatch": [{
32598
+ name: "deviceId",
32599
+ form: "single",
32600
+ optional: true
32601
+ }],
32602
+ "pipelineOrchestrator.assignAudio": [{
32603
+ name: "deviceId",
32604
+ form: "single",
32605
+ optional: false
32606
+ }],
32607
+ "pipelineOrchestrator.assignPipeline": [{
32608
+ name: "deviceId",
32609
+ form: "single",
32610
+ optional: false
32611
+ }],
32612
+ "pipelineOrchestrator.getAudioAssignment": [{
32613
+ name: "deviceId",
32614
+ form: "single",
32615
+ optional: false
32616
+ }],
32617
+ "pipelineOrchestrator.getCameraMetrics": [{
32618
+ name: "deviceId",
32619
+ form: "single",
32620
+ optional: false
32621
+ }],
32622
+ "pipelineOrchestrator.getCameraSettings": [{
32623
+ name: "deviceId",
32624
+ form: "single",
32625
+ optional: false
32626
+ }],
32627
+ "pipelineOrchestrator.getCameraStatus": [{
32628
+ name: "deviceId",
32629
+ form: "single",
32630
+ optional: false
32631
+ }],
32632
+ "pipelineOrchestrator.getCameraStatuses": [{
32633
+ name: "deviceIds",
32634
+ form: "array",
32635
+ optional: true
32636
+ }],
32637
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32638
+ name: "deviceId",
32639
+ form: "single",
32640
+ optional: false
32641
+ }],
32642
+ "pipelineOrchestrator.getCameraSwitches": [{
32643
+ name: "deviceId",
32644
+ form: "single",
32645
+ optional: false
32646
+ }],
32647
+ "pipelineOrchestrator.getPipelineAssignment": [{
32648
+ name: "deviceId",
32649
+ form: "single",
32650
+ optional: false
32651
+ }],
32652
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32653
+ name: "deviceId",
32654
+ form: "single",
32655
+ optional: false
32656
+ }],
32657
+ "pipelineOrchestrator.resolvePipeline": [{
32658
+ name: "deviceId",
32659
+ form: "single",
32660
+ optional: false
32661
+ }],
32662
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32663
+ name: "deviceId",
32664
+ form: "single",
32665
+ optional: false
32666
+ }],
32667
+ "pipelineOrchestrator.setCameraStepOverride": [{
32668
+ name: "deviceId",
32669
+ form: "single",
32670
+ optional: false
32671
+ }],
32672
+ "pipelineOrchestrator.setCameraStepToggle": [{
32673
+ name: "deviceId",
32674
+ form: "single",
32675
+ optional: false
32676
+ }],
32677
+ "pipelineOrchestrator.setCameraSwitch": [{
32678
+ name: "deviceId",
32679
+ form: "single",
32680
+ optional: false
32681
+ }],
32682
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32683
+ name: "deviceId",
32684
+ form: "single",
32685
+ optional: false
32686
+ }],
32687
+ "pipelineOrchestrator.unassignAudio": [{
32688
+ name: "deviceId",
32689
+ form: "single",
32690
+ optional: false
32691
+ }],
32692
+ "pipelineOrchestrator.unassignPipeline": [{
32693
+ name: "deviceId",
32694
+ form: "single",
32695
+ optional: false
32696
+ }],
32697
+ "pipelineRunner.attachCamera": [{
32698
+ name: "deviceId",
32699
+ form: "single",
32700
+ optional: false
32701
+ }],
32702
+ "pipelineRunner.detachCamera": [{
32703
+ name: "deviceId",
32704
+ form: "single",
32705
+ optional: false
32706
+ }],
32707
+ "pipelineRunner.getCameraMetrics": [{
32708
+ name: "deviceId",
32709
+ form: "single",
32710
+ optional: false
32711
+ }],
32712
+ "pipelineRunner.reportMotion": [{
32713
+ name: "deviceId",
32714
+ form: "single",
32715
+ optional: false
32716
+ }],
32717
+ "pipelineRunner.runDetailSubtree": [{
32718
+ name: "deviceId",
32719
+ form: "single",
32720
+ optional: false
32721
+ }],
32722
+ "pipelineRunner.runStatelessStep": [{
32723
+ name: "sourceDeviceId",
32724
+ form: "single",
32725
+ optional: false
32726
+ }],
32727
+ "plateGallery.getPlateByTrack": [{
32728
+ name: "deviceId",
32729
+ form: "single",
32730
+ optional: false
32731
+ }],
32732
+ "plateGallery.listPlates": [{
32733
+ name: "deviceId",
32734
+ form: "single",
32735
+ optional: true
32736
+ }],
32737
+ "privacyMask.getOptions": [{
32738
+ name: "deviceId",
32739
+ form: "single",
32740
+ optional: false
32741
+ }],
32742
+ "privacyMask.setAudioEnabled": [{
32743
+ name: "deviceId",
32744
+ form: "single",
32745
+ optional: false
32746
+ }],
32747
+ "privacyMask.setMask": [{
32748
+ name: "deviceId",
32749
+ form: "single",
32750
+ optional: false
32751
+ }],
32752
+ "ptz.continuousMove": [{
32753
+ name: "deviceId",
32754
+ form: "single",
32755
+ optional: false
32756
+ }],
32757
+ "ptz.deletePreset": [{
32758
+ name: "deviceId",
32759
+ form: "single",
32760
+ optional: false
32761
+ }],
32762
+ "ptz.getOptions": [{
32763
+ name: "deviceId",
32764
+ form: "single",
32765
+ optional: false
32766
+ }],
32767
+ "ptz.getPosition": [{
32768
+ name: "deviceId",
32769
+ form: "single",
32770
+ optional: false
32771
+ }],
32772
+ "ptz.getPresets": [{
32773
+ name: "deviceId",
32774
+ form: "single",
32775
+ optional: false
32776
+ }],
32777
+ "ptz.goHome": [{
32778
+ name: "deviceId",
32779
+ form: "single",
32780
+ optional: false
32781
+ }],
32782
+ "ptz.goToPreset": [{
32783
+ name: "deviceId",
32784
+ form: "single",
32785
+ optional: false
32786
+ }],
32787
+ "ptz.move": [{
32788
+ name: "deviceId",
32789
+ form: "single",
32790
+ optional: false
32791
+ }],
32792
+ "ptz.savePreset": [{
32793
+ name: "deviceId",
32794
+ form: "single",
32795
+ optional: false
32796
+ }],
32797
+ "ptz.setAutofocus": [{
32798
+ name: "deviceId",
32799
+ form: "single",
32800
+ optional: false
32801
+ }],
32802
+ "ptz.stop": [{
32803
+ name: "deviceId",
32804
+ form: "single",
32805
+ optional: false
32806
+ }],
32807
+ "ptzAutotrack.getSettings": [{
32808
+ name: "deviceId",
32809
+ form: "single",
32810
+ optional: false
32811
+ }],
32812
+ "ptzAutotrack.getStatus": [{
32813
+ name: "deviceId",
32814
+ form: "single",
32815
+ optional: false
32816
+ }],
32817
+ "ptzAutotrack.setEnabled": [{
32818
+ name: "deviceId",
32819
+ form: "single",
32820
+ optional: false
32821
+ }],
32822
+ "ptzAutotrack.setSettings": [{
32823
+ name: "deviceId",
32824
+ form: "single",
32825
+ optional: false
32826
+ }],
32827
+ "reboot.reboot": [{
32828
+ name: "deviceId",
32829
+ form: "single",
32830
+ optional: false
32831
+ }],
32832
+ "recording.deleteFootprint": [{
32833
+ name: "deviceId",
32834
+ form: "single",
32835
+ optional: false
32836
+ }],
32837
+ "recording.getAvailability": [{
32838
+ name: "deviceId",
32839
+ form: "single",
32840
+ optional: false
32841
+ }],
32842
+ "recording.getDaysWithRecordings": [{
32843
+ name: "deviceId",
32844
+ form: "single",
32845
+ optional: false
32846
+ }],
32847
+ "recording.getDeviceConfig": [{
32848
+ name: "deviceId",
32849
+ form: "single",
32850
+ optional: false
32851
+ }],
32852
+ "recording.getPlaybackManifest": [{
32853
+ name: "deviceId",
32854
+ form: "single",
32855
+ optional: false
32856
+ }],
32857
+ "recording.listOpsLog": [{
32858
+ name: "deviceId",
32859
+ form: "single",
32860
+ optional: true
32861
+ }],
32862
+ "recording.locateSegment": [{
32863
+ name: "deviceId",
32864
+ form: "single",
32865
+ optional: false
32866
+ }],
32867
+ "recording.pruneFootage": [{
32868
+ name: "deviceId",
32869
+ form: "single",
32870
+ optional: false
32871
+ }],
32872
+ "recording.readGopBytes": [{
32873
+ name: "deviceId",
32874
+ form: "single",
32875
+ optional: false
32876
+ }],
32877
+ "recording.readSegmentBytes": [{
32878
+ name: "deviceId",
32879
+ form: "single",
32880
+ optional: false
32881
+ }],
32882
+ "recording.relocateFootage": [{
32883
+ name: "deviceId",
32884
+ form: "single",
32885
+ optional: true
32886
+ }],
32887
+ "recording.renderClip": [{
32888
+ name: "deviceId",
32889
+ form: "single",
32890
+ optional: false
32891
+ }],
32892
+ "recording.renderGif": [{
32893
+ name: "deviceId",
32894
+ form: "single",
32895
+ optional: false
32896
+ }],
32897
+ "recording.rescanStorage": [{
32898
+ name: "deviceId",
32899
+ form: "single",
32900
+ optional: false
32901
+ }],
32902
+ "recording.setDeviceConfig": [{
32903
+ name: "deviceId",
32904
+ form: "single",
32905
+ optional: false
32906
+ }],
32907
+ "recording.startStorageMigrationMove": [{
32908
+ name: "deviceId",
32909
+ form: "single",
32910
+ optional: true
32911
+ }],
32912
+ "recordingExport.createExport": [{
32913
+ name: "deviceId",
32914
+ form: "single",
32915
+ optional: false
32916
+ }],
32917
+ "recordingExport.listExports": [{
32918
+ name: "deviceId",
32919
+ form: "single",
32920
+ optional: true
32921
+ }],
32922
+ "sceneMonitor.captureReference": [{
32923
+ name: "deviceId",
32924
+ form: "single",
32925
+ optional: false
32926
+ }],
32927
+ "sceneMonitor.createScene": [{
32928
+ name: "deviceId",
32929
+ form: "single",
32930
+ optional: false
32931
+ }],
32932
+ "sceneMonitor.deleteReference": [{
32933
+ name: "deviceId",
32934
+ form: "single",
32935
+ optional: false
32936
+ }],
32937
+ "sceneMonitor.deleteScene": [{
32938
+ name: "deviceId",
32939
+ form: "single",
32940
+ optional: false
32941
+ }],
32942
+ "sceneMonitor.listScenes": [{
32943
+ name: "deviceId",
32944
+ form: "single",
32945
+ optional: false
32946
+ }],
32947
+ "sceneMonitor.recheckNow": [{
32948
+ name: "deviceId",
32949
+ form: "single",
32950
+ optional: false
32951
+ }],
32952
+ "sceneMonitor.resetScene": [{
32953
+ name: "deviceId",
32954
+ form: "single",
32955
+ optional: false
32956
+ }],
32957
+ "sceneMonitor.updateScene": [{
32958
+ name: "deviceId",
32959
+ form: "single",
32960
+ optional: false
32961
+ }],
32962
+ "scriptRunner.run": [{
32963
+ name: "deviceId",
32964
+ form: "single",
32965
+ optional: false
32966
+ }],
32967
+ "scriptRunner.stop": [{
32968
+ name: "deviceId",
32969
+ form: "single",
32970
+ optional: false
32971
+ }],
32972
+ "snapshot.getSnapshot": [{
32973
+ name: "deviceId",
32974
+ form: "single",
32975
+ optional: false
32976
+ }],
32977
+ "snapshot.getSnapshotLinks": [{
32978
+ name: "targets",
32979
+ form: "object-array",
32980
+ optional: false,
32981
+ itemField: "deviceId"
32982
+ }],
32983
+ "snapshot.getSnapshotOverview": [{
32984
+ name: "deviceIds",
32985
+ form: "array",
32986
+ optional: false
32987
+ }],
32988
+ "snapshot.invalidateCache": [{
32989
+ name: "deviceId",
32990
+ form: "single",
32991
+ optional: false
32992
+ }],
32993
+ "streamBroker.acquireEgressTranscode": [{
32994
+ name: "deviceId",
32995
+ form: "single",
32996
+ optional: false
32997
+ }],
32998
+ "streamBroker.assignProfile": [{
32999
+ name: "deviceId",
33000
+ form: "single",
33001
+ optional: false
33002
+ }],
33003
+ "streamBroker.getDeviceAudioMute": [{
33004
+ name: "deviceId",
33005
+ form: "single",
33006
+ optional: false
33007
+ }],
33008
+ "streamBroker.getStreamWithCodec": [{
33009
+ name: "deviceId",
33010
+ form: "single",
33011
+ optional: false
33012
+ }],
33013
+ "streamBroker.produceEventMedia": [{
33014
+ name: "deviceId",
33015
+ form: "single",
33016
+ optional: false
33017
+ }],
33018
+ "streamBroker.publishCameraStream": [{
33019
+ name: "deviceId",
33020
+ form: "single",
33021
+ optional: false
33022
+ }],
33023
+ "streamBroker.renderPreBufferClip": [{
33024
+ name: "deviceId",
33025
+ form: "single",
33026
+ optional: false
33027
+ }],
33028
+ "streamBroker.restartProfile": [{
33029
+ name: "deviceId",
33030
+ form: "single",
33031
+ optional: false
33032
+ }],
33033
+ "streamBroker.retractCameraStream": [{
33034
+ name: "deviceId",
33035
+ form: "single",
33036
+ optional: false
33037
+ }],
33038
+ "streamBroker.setDeviceAudioMute": [{
33039
+ name: "deviceId",
33040
+ form: "single",
33041
+ optional: false
33042
+ }],
33043
+ "streamBroker.unassignProfile": [{
33044
+ name: "deviceId",
33045
+ form: "single",
33046
+ optional: false
33047
+ }],
33048
+ "streamCatalog.getCatalog": [{
33049
+ name: "deviceId",
33050
+ form: "single",
33051
+ optional: false
33052
+ }],
33053
+ "streamParams.getConfigSchema": [{
33054
+ name: "deviceId",
33055
+ form: "single",
33056
+ optional: false
33057
+ }],
33058
+ "streamParams.getOptions": [{
33059
+ name: "deviceId",
33060
+ form: "single",
33061
+ optional: false
33062
+ }],
33063
+ "streamParams.setProfile": [{
33064
+ name: "deviceId",
33065
+ form: "single",
33066
+ optional: false
33067
+ }],
33068
+ "switch.setState": [{
33069
+ name: "deviceId",
33070
+ form: "single",
33071
+ optional: false
33072
+ }],
33073
+ "vacuumControl.locate": [{
33074
+ name: "deviceId",
33075
+ form: "single",
33076
+ optional: false
33077
+ }],
33078
+ "vacuumControl.pause": [{
33079
+ name: "deviceId",
33080
+ form: "single",
33081
+ optional: false
33082
+ }],
33083
+ "vacuumControl.returnToBase": [{
33084
+ name: "deviceId",
33085
+ form: "single",
33086
+ optional: false
33087
+ }],
33088
+ "vacuumControl.setFanSpeed": [{
33089
+ name: "deviceId",
33090
+ form: "single",
33091
+ optional: false
33092
+ }],
33093
+ "vacuumControl.start": [{
33094
+ name: "deviceId",
33095
+ form: "single",
33096
+ optional: false
33097
+ }],
33098
+ "vacuumControl.stop": [{
33099
+ name: "deviceId",
33100
+ form: "single",
33101
+ optional: false
33102
+ }],
33103
+ "valve.close": [{
33104
+ name: "deviceId",
33105
+ form: "single",
33106
+ optional: false
33107
+ }],
33108
+ "valve.open": [{
33109
+ name: "deviceId",
33110
+ form: "single",
33111
+ optional: false
33112
+ }],
33113
+ "valve.setPosition": [{
33114
+ name: "deviceId",
33115
+ form: "single",
33116
+ optional: false
33117
+ }],
33118
+ "valve.stop": [{
33119
+ name: "deviceId",
33120
+ form: "single",
33121
+ optional: false
33122
+ }],
33123
+ "videoclips.getClipPlayback": [{
33124
+ name: "deviceId",
33125
+ form: "single",
33126
+ optional: false
33127
+ }],
33128
+ "videoclips.listClips": [{
33129
+ name: "deviceId",
33130
+ form: "single",
33131
+ optional: false
33132
+ }],
33133
+ "waterHeater.setAway": [{
33134
+ name: "deviceId",
33135
+ form: "single",
33136
+ optional: false
33137
+ }],
33138
+ "waterHeater.setOperationMode": [{
33139
+ name: "deviceId",
33140
+ form: "single",
33141
+ optional: false
33142
+ }],
33143
+ "waterHeater.setTargetTemp": [{
33144
+ name: "deviceId",
33145
+ form: "single",
33146
+ optional: false
33147
+ }],
33148
+ "webrtcSession.addIceCandidate": [{
33149
+ name: "deviceId",
33150
+ form: "single",
33151
+ optional: false
33152
+ }],
33153
+ "webrtcSession.closeSession": [{
33154
+ name: "deviceId",
33155
+ form: "single",
33156
+ optional: false
33157
+ }],
33158
+ "webrtcSession.createSession": [{
33159
+ name: "deviceId",
33160
+ form: "single",
33161
+ optional: false
33162
+ }],
33163
+ "webrtcSession.getIceCandidates": [{
33164
+ name: "deviceId",
33165
+ form: "single",
33166
+ optional: false
33167
+ }],
33168
+ "webrtcSession.getSessionState": [{
33169
+ name: "deviceId",
33170
+ form: "single",
33171
+ optional: false
33172
+ }],
33173
+ "webrtcSession.handleAnswer": [{
33174
+ name: "deviceId",
33175
+ form: "single",
33176
+ optional: false
33177
+ }],
33178
+ "webrtcSession.handleOffer": [{
33179
+ name: "deviceId",
33180
+ form: "single",
33181
+ optional: false
33182
+ }],
33183
+ "webrtcSession.hasAdaptiveBitrate": [{
33184
+ name: "deviceId",
33185
+ form: "single",
33186
+ optional: false
33187
+ }],
33188
+ "webrtcSession.listStreams": [{
33189
+ name: "deviceId",
33190
+ form: "single",
33191
+ optional: false
33192
+ }],
33193
+ "zoneAnalytics.getCameraHistory": [{
33194
+ name: "deviceId",
33195
+ form: "single",
33196
+ optional: false
33197
+ }],
33198
+ "zoneAnalytics.getCurrentSnapshot": [{
33199
+ name: "deviceId",
33200
+ form: "single",
33201
+ optional: false
33202
+ }],
33203
+ "zoneAnalytics.getUnzonedHistory": [{
33204
+ name: "deviceId",
33205
+ form: "single",
33206
+ optional: false
33207
+ }],
33208
+ "zoneAnalytics.getZoneHistory": [{
33209
+ name: "deviceId",
33210
+ form: "single",
33211
+ optional: false
33212
+ }],
33213
+ "zoneRules.listRules": [{
33214
+ name: "deviceId",
33215
+ form: "single",
33216
+ optional: false
33217
+ }],
33218
+ "zoneRules.setRules": [{
33219
+ name: "deviceId",
33220
+ form: "single",
33221
+ optional: false
33222
+ }],
33223
+ "zones.addZone": [{
33224
+ name: "deviceId",
33225
+ form: "single",
33226
+ optional: false
33227
+ }],
33228
+ "zones.listZones": [{
33229
+ name: "deviceId",
33230
+ form: "single",
33231
+ optional: false
33232
+ }],
33233
+ "zones.removeZone": [{
33234
+ name: "deviceId",
33235
+ form: "single",
33236
+ optional: false
33237
+ }],
33238
+ "zones.updateZone": [{
33239
+ name: "deviceId",
33240
+ form: "single",
33241
+ optional: false
33242
+ }]
33243
+ });
30674
33244
  Object.freeze({
30675
33245
  "broker": "broker",
30676
33246
  "device-export": "device-export",