@camstack/addon-mqtt-broker 1.2.17 → 1.2.19

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.
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
40
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
41
41
  //#endregion
42
- //#region ../types/dist/event-category-Cv9dO26A.mjs
42
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
43
43
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
44
44
  EventCategory["SystemBoot"] = "system.boot";
45
45
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -246,6 +246,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
246
246
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
247
247
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
248
248
  /**
249
+ * A node the orchestrator would otherwise place cameras on has NO usable
250
+ * inference device: the operator enabled one or more accelerators there and
251
+ * the live probe reports every one of them unavailable. Emitted once per
252
+ * TRANSITION into that state (never per dispatch), and the node is dropped
253
+ * from the placement candidate set for as long as it holds.
254
+ *
255
+ * This exists because the state was previously invisible: little-unraid
256
+ * absorbed 283k inference errors in a day while still being handed cameras,
257
+ * and nothing in the system said so.
258
+ *
259
+ * A node with no accelerators configured at all is NOT this — its devices
260
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
261
+ * serves it exactly as before.
262
+ */
263
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
264
+ /**
265
+ * A camera has an OPEN detection session and has produced no detection at
266
+ * all for longer than the blind threshold — the camera is being decoded and
267
+ * inferred and is returning nothing. Emitted once per transition into blind,
268
+ * per camera.
269
+ *
270
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
271
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
272
+ * camera" produce byte-identical silence.
273
+ */
274
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
275
+ /**
249
276
  * Per-camera pipeline config was mutated by the orchestrator
250
277
  * (3-level settings change via `setAgentAddonDefaults` /
251
278
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3037,6 +3064,9 @@ function handlePipeResult(left, next, ctx) {
3037
3064
  fallback: left.fallback
3038
3065
  }, ctx);
3039
3066
  }
3067
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3068
+ $ZodPipe.init(inst, def);
3069
+ });
3040
3070
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3041
3071
  $ZodType.init(inst, def);
3042
3072
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5222,6 +5252,10 @@ function pipe(in_, out) {
5222
5252
  out
5223
5253
  });
5224
5254
  }
5255
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5256
+ ZodPipe.init(inst, def);
5257
+ $ZodPreprocess.init(inst, def);
5258
+ });
5225
5259
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5226
5260
  $ZodReadonly.init(inst, def);
5227
5261
  ZodType.init(inst, def);
@@ -5280,6 +5314,13 @@ function _instanceof(cls, params = {}) {
5280
5314
  };
5281
5315
  return inst;
5282
5316
  }
5317
+ function preprocess(fn, schema) {
5318
+ return new ZodPreprocess({
5319
+ type: "pipe",
5320
+ in: transform(fn),
5321
+ out: schema
5322
+ });
5323
+ }
5283
5324
  //#endregion
5284
5325
  //#region ../../node_modules/zod/v4/classic/compat.js
5285
5326
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10847,6 +10888,8 @@ var QueryFilterSchema = object({
10847
10888
  where: record(string(), unknown()).optional(),
10848
10889
  whereIn: record(string(), array(unknown())).optional(),
10849
10890
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10891
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10892
+ whereNot: record(string(), unknown()).optional(),
10850
10893
  orderBy: object({
10851
10894
  field: string(),
10852
10895
  direction: _enum(["asc", "desc"])
@@ -10866,7 +10909,8 @@ var QueryFilterSchema = object({
10866
10909
  var MutationFilterSchema = object({
10867
10910
  where: record(string(), unknown()).optional(),
10868
10911
  whereIn: record(string(), array(unknown())).optional(),
10869
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10912
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10913
+ whereNot: record(string(), unknown()).optional()
10870
10914
  });
10871
10915
  /** A single stored record: `{ id, data }`. */
10872
10916
  var SettingsRecordSchema = object({
@@ -12223,6 +12267,17 @@ var LlmImageSchema = object({
12223
12267
  bytes: _instanceof(Uint8Array),
12224
12268
  mimeType: string()
12225
12269
  });
12270
+ /**
12271
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12272
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12273
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12274
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12275
+ */
12276
+ var LlmRetryPolicySchema = object({
12277
+ enabled: boolean().default(false),
12278
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12279
+ maxAttempts: number().int().min(1).max(5).default(1)
12280
+ });
12226
12281
  var LlmGenerateBaseInputSchema = object({
12227
12282
  /** Collection routing (the notification-output posture). */
12228
12283
  addonId: string().optional(),
@@ -12237,7 +12292,28 @@ var LlmGenerateBaseInputSchema = object({
12237
12292
  jsonSchema: record(string(), unknown()).optional(),
12238
12293
  /** Per-call override of the profile default. */
12239
12294
  maxTokens: number().int().positive().optional(),
12240
- temperature: number().optional()
12295
+ temperature: number().optional(),
12296
+ /** Per-call override of the profile default (nucleus sampling). */
12297
+ topP: number().min(0).max(1).optional(),
12298
+ /** Per-call override of the profile default (top-k sampling). */
12299
+ topK: number().int().positive().optional(),
12300
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12301
+ timeoutMs: number().int().positive().optional(),
12302
+ /** Per-call override; beats both the consumer table and the profile. */
12303
+ retry: LlmRetryPolicySchema.optional(),
12304
+ /**
12305
+ * Caller-minted id that makes this generation CANCELLABLE.
12306
+ *
12307
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12308
+ * the call against 8 s and free their own slot when the timer wins, while the
12309
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12310
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12311
+ * not generations, and the real load is unbounded.
12312
+ *
12313
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12314
+ * `llm.cancel({ requestId })` tears the socket down.
12315
+ */
12316
+ requestId: string().optional()
12241
12317
  });
12242
12318
  /**
12243
12319
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12250,6 +12326,18 @@ var LlmGenerateBaseInputSchema = object({
12250
12326
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12251
12327
  * watchdog — operator decision #3).
12252
12328
  */
12329
+ /**
12330
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12331
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12332
+ * REF rather than looked up at install time, so what the operator approved in
12333
+ * the preview is exactly what the node downloads.
12334
+ */
12335
+ var ManagedModelExtraFileSchema = object({
12336
+ url: string(),
12337
+ filename: string(),
12338
+ sizeBytes: number(),
12339
+ sha256: string().optional()
12340
+ });
12253
12341
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12254
12342
  object({
12255
12343
  kind: literal("catalog"),
@@ -12258,7 +12346,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12258
12346
  object({
12259
12347
  kind: literal("url"),
12260
12348
  url: string(),
12261
- sha256: string().optional()
12349
+ sha256: string().optional(),
12350
+ /** Picker/status label; the file basename when absent. */
12351
+ label: string().optional(),
12352
+ sizeBytes: number().optional(),
12353
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12262
12354
  }),
12263
12355
  object({
12264
12356
  kind: literal("path"),
@@ -12276,13 +12368,82 @@ var ManagedRuntimeConfigSchema = object({
12276
12368
  gpuLayers: number().int().default(0),
12277
12369
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12278
12370
  threads: number().int().optional(),
12279
- /** Concurrent slots. */
12371
+ /** Concurrent slots (`--parallel`). */
12280
12372
  parallel: number().int().default(1),
12373
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12374
+ batchSize: number().int().positive().optional(),
12375
+ /** Physical batch / micro-batch (`-ub`). */
12376
+ ubatchSize: number().int().positive().optional(),
12377
+ /**
12378
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12379
+ * is a no-op elsewhere, so it is offered rather than assumed.
12380
+ */
12381
+ flashAttention: boolean().default(false),
12382
+ /**
12383
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12384
+ * inference. Costs the full model size in resident memory — which is exactly
12385
+ * what the RAM budget is counting.
12386
+ */
12387
+ mlock: boolean().default(false),
12388
+ /**
12389
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12390
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12391
+ * store produces on every first token.
12392
+ */
12393
+ noMmap: boolean().default(false),
12394
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12395
+ * cheapest way to fit a longer context in the same RAM. */
12396
+ cacheTypeK: _enum([
12397
+ "f32",
12398
+ "f16",
12399
+ "q8_0",
12400
+ "q5_1",
12401
+ "q5_0",
12402
+ "q4_1",
12403
+ "q4_0"
12404
+ ]).optional(),
12405
+ cacheTypeV: _enum([
12406
+ "f32",
12407
+ "f16",
12408
+ "q8_0",
12409
+ "q5_1",
12410
+ "q5_0",
12411
+ "q4_1",
12412
+ "q4_0"
12413
+ ]).optional(),
12414
+ /**
12415
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12416
+ * (which most vision chat templates need and some language-only models
12417
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12418
+ *
12419
+ * It is NOT a second place to set the flags above. A token that collides
12420
+ * with a typed field is REJECTED at start, naming the field that owns it
12421
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12422
+ * the "two switches that disagree" failure this repo has already shipped
12423
+ * twice (D62).
12424
+ */
12425
+ extraArgs: array(string()).default([]),
12281
12426
  /** Else lazy: first generate boots it. */
12282
12427
  autoStart: boolean().default(false),
12283
12428
  /** 0 = never; frees RAM after quiet periods. */
12284
12429
  idleStopMinutes: number().int().default(30)
12285
12430
  });
12431
+ /**
12432
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12433
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12434
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12435
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12436
+ */
12437
+ var LlmDownloadProgressSchema = object({
12438
+ phase: _enum(["downloading", "verifying"]),
12439
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12440
+ file: string(),
12441
+ fileIndex: number().int(),
12442
+ fileCount: number().int(),
12443
+ /** Across the WHOLE install, not the current file. */
12444
+ downloadedBytes: number(),
12445
+ totalBytes: number().optional()
12446
+ });
12286
12447
  var LlmRuntimeStatusSchema = object({
12287
12448
  /** Status is ALWAYS node-qualified. */
12288
12449
  nodeId: string(),
@@ -12299,6 +12460,8 @@ var LlmRuntimeStatusSchema = object({
12299
12460
  modelPath: string().optional(),
12300
12461
  modelId: string().optional(),
12301
12462
  downloadProgress: number().min(0).max(1).optional(),
12463
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12464
+ download: LlmDownloadProgressSchema.optional(),
12302
12465
  lastError: string().optional(),
12303
12466
  crashesInWindow: number(),
12304
12467
  /** Child RSS (sampled best-effort). */
@@ -12309,7 +12472,14 @@ var LlmNodeModelSchema = object({
12309
12472
  file: string(),
12310
12473
  sizeBytes: number(),
12311
12474
  catalogId: string().optional(),
12312
- installedAt: number().optional()
12475
+ installedAt: number().optional(),
12476
+ /**
12477
+ * Absolute path on the node. Present so a file that is on disk but matches
12478
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12479
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12480
+ * it the picker could list such a file and do nothing with it.
12481
+ */
12482
+ path: string().optional()
12313
12483
  });
12314
12484
  var LlmRuntimeDiskUsageSchema = object({
12315
12485
  nodeId: string(),
@@ -12365,10 +12535,47 @@ var LlmProfileSchema = object({
12365
12535
  baseUrl: string().optional(),
12366
12536
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12367
12537
  apiKey: string().optional(),
12538
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12539
+ * degraded to text — that shipped once and produced a confident answer to a
12540
+ * question about a picture nobody sent. */
12368
12541
  supportsVision: boolean(),
12369
12542
  temperature: number().min(0).max(2).optional(),
12543
+ /** Nucleus sampling. Every wire we speak has it. */
12544
+ topP: number().min(0).max(1).optional(),
12545
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12546
+ * wire does, and the client drops it there (measured: the request body gets
12547
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12548
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12549
+ topK: number().int().positive().optional(),
12370
12550
  maxTokens: number().int().positive().optional(),
12551
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12552
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12553
+ * the model with, so it is the one field that changes a PROCESS. */
12554
+ contextLength: number().int().positive().optional(),
12555
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12556
+ * two system prompts fighting is worse than either alone). */
12557
+ systemPrompt: string().optional(),
12558
+ /** Total generation bound — the only one a unary call has. */
12371
12559
  timeoutMs: number().int().positive().default(6e4),
12560
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12561
+ * response headers: on the LM Studio / llama-server wire those are written
12562
+ * once the model has finished loading, so they belong to the bound below. */
12563
+ connectTimeoutMs: number().int().positive().default(1e4),
12564
+ /** Accepted, but no output yet — response headers included, because a cold
12565
+ * GPU load is exactly what happens before them. */
12566
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12567
+ /** Output started then stopped. */
12568
+ idleTimeoutMs: number().int().positive().default(6e4),
12569
+ /** Profile-level default. The per-consumer table and a per-call override
12570
+ * both beat it — see `resolveRetryPolicy`. */
12571
+ retry: LlmRetryPolicySchema.default({
12572
+ enabled: false,
12573
+ maxAttempts: 1
12574
+ }),
12575
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12576
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12577
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12578
+ toolsEnabled: boolean().default(false),
12372
12579
  extraHeaders: record(string(), string()).optional(),
12373
12580
  /** kind === 'managed-local' only (spec §4). */
12374
12581
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12418,6 +12625,36 @@ var ManagedModelCatalogEntrySchema = object({
12418
12625
  /** Vision models: companion projector file. */
12419
12626
  mmprojUrl: string().optional()
12420
12627
  });
12628
+ /**
12629
+ * The outcome of turning one operator-typed Hugging Face reference into a
12630
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12631
+ * I will not pick for you" is a normal answer the UI has to render, not an
12632
+ * exception.
12633
+ *
12634
+ * `candidates` is the whole reason the refusal is usable — every string in it
12635
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12636
+ */
12637
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12638
+ ok: literal(true),
12639
+ /** Ready to hand to `installModel` unchanged. */
12640
+ model: ManagedModelRefSchema,
12641
+ label: string(),
12642
+ repo: string(),
12643
+ quantization: string(),
12644
+ purpose: _enum(["text", "vision"]),
12645
+ totalBytes: number(),
12646
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12647
+ * see that 0.9 GB of it is a projector they did not name. */
12648
+ extraFilenames: array(string())
12649
+ }), object({
12650
+ ok: literal(false),
12651
+ code: string(),
12652
+ message: string(),
12653
+ candidates: array(string()).optional(),
12654
+ /** Set when the refusal was only the ceiling: re-calling with
12655
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12656
+ requiredBytes: number().optional()
12657
+ })]);
12421
12658
  var LlmRuntimeNodeSchema = object({
12422
12659
  nodeId: string(),
12423
12660
  reachable: boolean(),
@@ -12430,7 +12667,10 @@ var ProfileRefInputSchema = object({
12430
12667
  addonId: string(),
12431
12668
  profileId: string()
12432
12669
  });
12433
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12670
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12671
+ addonId: string().optional(),
12672
+ requestId: string()
12673
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12434
12674
  kind: "mutation",
12435
12675
  auth: "admin"
12436
12676
  }), method(ProfileRefInputSchema, _void(), {
@@ -12451,6 +12691,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12451
12691
  consumer: string().optional(),
12452
12692
  profileId: string().optional()
12453
12693
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12694
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12695
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12696
+ ref: string(),
12697
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12698
+ maxBytes: number().positive().optional()
12699
+ }), HfModelResolutionSchema, {
12700
+ kind: "mutation",
12701
+ auth: "admin"
12702
+ }), method(object({
12454
12703
  nodeId: string(),
12455
12704
  model: ManagedModelRefSchema
12456
12705
  }), _void(), {
@@ -14079,6 +14328,8 @@ var NcSystemEventKindSchema = _enum([
14079
14328
  "stream-offline",
14080
14329
  "node-online",
14081
14330
  "node-offline",
14331
+ "node-inference-unavailable",
14332
+ "detection-blind",
14082
14333
  "addon-update-available",
14083
14334
  "server-update-available",
14084
14335
  "alarm-triggered",
@@ -14140,7 +14391,16 @@ var NcScheduleSchema = object({
14140
14391
  });
14141
14392
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14142
14393
  var NcPlateMatcherSchema = object({
14143
- values: array(string().min(1)).min(1),
14394
+ /**
14395
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14396
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14397
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14398
+ * rather than merely seen. A subject carrying no plate still fails.
14399
+ *
14400
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14401
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14402
+ */
14403
+ values: array(string().min(1)),
14144
14404
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14145
14405
  maxDistance: number().int().min(0).max(3).default(1)
14146
14406
  });
@@ -14174,28 +14434,36 @@ var NcOccupancyConditionSchema = object({
14174
14434
  /**
14175
14435
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14176
14436
  *
14177
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14178
- * reference notifier uses, so an operator moving between them re-uses what
14179
- * they already know): a rule matches when, over a sampling window of
14180
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14181
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14182
- *
14183
- * - `dbThreshold` its level is at or above this many dBFS (see
14184
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14185
- * - `labels` the classifier put at least one of these labels on it.
14186
- *
14187
- * Both are OPTIONAL and independent, which is the point of the shape: a
14188
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14189
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14190
- * is given** a window in which every sample is trivially a hit would fire on
14191
- * silence, so the engine refuses such a condition rather than notifying on
14192
- * nothing (the schema cannot express "at least one of" without becoming a
14193
- * ZodEffects the cap path would have to special-case).
14194
- *
14195
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14196
- * must be FULL before it can match a window that has been open for two
14197
- * seconds of its ten is 100% of nothing, and firing on it would make
14198
- * `samplingSeconds` decorative.
14437
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14438
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14439
+ * there is no second switch that can disagree with the first and every rule
14440
+ * authored before the decision migrates for free (`audioModeOf`):
14441
+ *
14442
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14443
+ * classifier labels with one of them. No window, no percentage:
14444
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14445
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14446
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14447
+ * reaches this condition if the classifier was already confident enough.
14448
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14449
+ * the condition: at least `hitPercent`% of the samples over
14450
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14451
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14452
+ * must be FULL before it can match a window open for two of its ten
14453
+ * seconds is 100% of nothing.
14454
+ *
14455
+ * **Why label mode has no window.** It had one, and it never fired: the
14456
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14457
+ * of them per episode, even through continuous crying. The measured maximum
14458
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14459
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14460
+ * the wrong question to ask of a sparse classifier.
14461
+ *
14462
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14463
+ * and the rule would fire on silence. The schema cannot express "exactly one
14464
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14465
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14466
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14199
14467
  *
14200
14468
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14201
14469
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14203,13 +14471,13 @@ var NcOccupancyConditionSchema = object({
14203
14471
  * an operator who typed `dog` mean the same thing.
14204
14472
  */
14205
14473
  var NcAudioConditionSchema = object({
14206
- /** Audio macro labels; absent = any sound (level-only rule). */
14474
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14207
14475
  labels: array(string().min(1)).min(1).optional(),
14208
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14476
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14209
14477
  dbThreshold: number().min(-96).max(0).optional(),
14210
- /** Percentage of the window's samples that must be hits (1–100). */
14478
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14211
14479
  hitPercent: number().int().min(1).max(100).default(60),
14212
- /** Length of the sampling window in seconds. */
14480
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14213
14481
  samplingSeconds: number().int().min(1).max(300).default(10)
14214
14482
  });
14215
14483
  /**
@@ -14347,13 +14615,81 @@ var NcRuleActionsSchema = object({
14347
14615
  */
14348
14616
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14349
14617
  });
14618
+ /**
14619
+ * "This rule applies only while `deviceId` is in one of `states`."
14620
+ *
14621
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14622
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14623
+ * make the condition lie about devices whose states have no equivalent.
14624
+ *
14625
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14626
+ * condition that fired on "I could not read it" would be worse than no gate.
14627
+ */
14628
+ var NcDeviceStateConditionSchema = object({
14629
+ deviceId: number().int(),
14630
+ /** Any of these matches. */
14631
+ states: array(string().min(1)).min(1)
14632
+ });
14633
+ /**
14634
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14635
+ *
14636
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14637
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14638
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14639
+ * already has a trigger ("tell me about a person at the front door, but only
14640
+ * while the bin is still out"). That is why it composes with every delivery
14641
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14642
+ * kind exist for it — see D159.
14643
+ *
14644
+ * ── Identity ───────────────────────────────────────────────────────────────
14645
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14646
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14647
+ * carried as a HINT for the editor and for the log line, never as part of the
14648
+ * lookup key: a rule whose hint drifted must still gate correctly.
14649
+ *
14650
+ * ── Which boolean ──────────────────────────────────────────────────────────
14651
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14652
+ * already declares which boolean drives notification rules, and a second knob
14653
+ * that could disagree with it is exactly the D62 failure. Set it only to
14654
+ * override one rule against the scene's own default.
14655
+ *
14656
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14657
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14658
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14659
+ * evidence, in either direction.
14660
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14661
+ * The latch is a durable fact about the past ("it has diverged since I armed
14662
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14663
+ * reason the operator asked for a latch.
14664
+ *
14665
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14666
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14667
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14668
+ * said out loud in the log rather than dropped in silence.
14669
+ */
14670
+ var NcSceneConditionSchema = object({
14671
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14672
+ sceneId: string().min(1),
14673
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14674
+ deviceId: number().int().optional(),
14675
+ /** The state the scene must be in for the rule to fire. */
14676
+ requiredState: _enum(["matched", "diverged"]),
14677
+ /**
14678
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14679
+ * scene's own `emit` field, which is the only place that decision belongs.
14680
+ */
14681
+ latched: boolean().optional()
14682
+ });
14350
14683
  var NcConditionsSchema = object({
14351
14684
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14352
- deviceState: object({
14353
- deviceId: number().int(),
14354
- /** Any of these matches. */
14355
- states: array(string().min(1)).min(1)
14356
- }).optional(),
14685
+ deviceState: NcDeviceStateConditionSchema.optional(),
14686
+ /**
14687
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14688
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14689
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14690
+ * {@link NcSceneCondition} and D159.
14691
+ */
14692
+ scene: NcSceneConditionSchema.optional(),
14357
14693
  /** Device scope — absent = all devices. */
14358
14694
  devices: array(number()).optional(),
14359
14695
  /** Detector class names (any overlap with the record's class set). */
@@ -14379,18 +14715,47 @@ var NcConditionsSchema = object({
14379
14715
  */
14380
14716
  labelEquals: array(string().min(1)).optional(),
14381
14717
  /**
14382
- * Identity matcher. P1 boundary: matched against the record's collapsed
14383
- * `label` (the identity display name propagated by the face pipeline) —
14384
- * identity-ID matching rides in P2 when identity ids reach the record.
14718
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14719
+ * is about recognised people at all.
14720
+ *
14721
+ * Three states, and the empty one is the point:
14722
+ *
14723
+ * | value | meaning |
14724
+ * | --- | --- |
14725
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14726
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14727
+ * | a list | only these identities |
14728
+ *
14729
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14730
+ * `devices` list is every device), applied one level down: the operator has
14731
+ * turned the face scope ON and narrowed it to nothing, which is every known
14732
+ * face. No second field states the same thing — a switch that can disagree
14733
+ * with the list under it is worse than no switch (D62).
14734
+ *
14735
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14736
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14737
+ * the operator fixed the spelling. The id reaches the record on
14738
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14739
+ * `{{label}}` renders.
14740
+ *
14741
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14742
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14743
+ * for is left as it stands and reported, never dropped. The engine also
14744
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14745
+ * migration could not resolve keeps matching exactly what it matched before.
14385
14746
  */
14386
14747
  identities: array(string().min(1)).optional(),
14387
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14748
+ /**
14749
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14750
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14751
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14752
+ */
14388
14753
  plates: NcPlateMatcherSchema.optional(),
14389
14754
  /**
14390
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14391
- * Same P1 boundary: matched against the record's collapsed `label` (the
14392
- * identity display name). A record with NO label passes (nothing to
14393
- * exclude), unlike the include variant which fails on an absent label.
14755
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14756
+ * the same id members and the same lazy name→id migration. A record with NO
14757
+ * identity passes (nothing to exclude), unlike the include variant which
14758
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14394
14759
  */
14395
14760
  identitiesExclude: array(string().min(1)).optional(),
14396
14761
  /**
@@ -14782,7 +15147,80 @@ var NcRuleInputSchema = object({
14782
15147
  * a rule that predates the gate must keep delivering byte-for-byte as it
14783
15148
  * did, and absent is the only way to say that without a migration.
14784
15149
  */
14785
- confirm: NcConfirmSchema.optional()
15150
+ confirm: NcConfirmSchema.optional(),
15151
+ /**
15152
+ * WAIT for face/plate recognition before saying anything.
15153
+ *
15154
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15155
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15156
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15157
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15158
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15159
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15160
+ *
15161
+ * Only two honest answers exist, and this flag picks between them. It has
15162
+ * effect ONLY on a rule that declares a recognition scope
15163
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15164
+ * other rule there is nothing to wait for and the flag is inert.
15165
+ *
15166
+ * | value | what happens |
15167
+ * | --- | --- |
15168
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15169
+ * | 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) |
15170
+ *
15171
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15172
+ * on the addon cap path, and absent has to keep meaning exactly what every
15173
+ * rule authored before this field meant.
15174
+ *
15175
+ * The cost of `true` is stated here because the editor states it too: a rule
15176
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15177
+ * tests every zone the track visited and a `crossing` condition can no longer
15178
+ * be satisfied, because a closed track carries no crossing.
15179
+ */
15180
+ waitForEnhancement: boolean().optional(),
15181
+ /**
15182
+ * GROUP a burst of subjects into ONE notification that grows.
15183
+ *
15184
+ * Seconds of quiet after the last matching subject before the burst is
15185
+ * considered over. While it is open, the first subject enqueues immediately —
15186
+ * **exactly as today, with no added latency** — and every real growth (a new
15187
+ * subject, or a name confirmed on one already in it) REPLACES that
15188
+ * notification with an updated one naming everybody. The push carries the
15189
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15190
+ *
15191
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15192
+ *
15193
+ * ### Why an idle cutoff and not a window
15194
+ *
15195
+ * The measured seven-person arrival on device 590 spans 110 s with every
15196
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15197
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15198
+ * 30 is Frigate's shipped value for the same decision.
15199
+ *
15200
+ * ### What it replaces
15201
+ *
15202
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15203
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15204
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15205
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15206
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15207
+ * budget over GROUPS — which is what it always meant — and a growth is never
15208
+ * throttled by the window its own first member spent.
15209
+ *
15210
+ * ### Interaction with {@link waitForEnhancement}
15211
+ *
15212
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15213
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15214
+ * CLOSE — already carrying its name — and grows as later members close. That
15215
+ * is later, and complete. With grouping alone the group opens on the first
15216
+ * object event and picks up names as they are confirmed, through the growth
15217
+ * path. Neither combination fires twice for one subject.
15218
+ *
15219
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15220
+ * on the addon cap path, so absent must keep meaning what it meant before this
15221
+ * field existed.
15222
+ */
15223
+ groupIdleSec: number().int().min(0).max(600).optional()
14786
15224
  });
14787
15225
  /**
14788
15226
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14889,6 +15327,7 @@ var NcConditionDescriptorSchema = object({
14889
15327
  "occupancy",
14890
15328
  "audio",
14891
15329
  "deviceState",
15330
+ "scene",
14892
15331
  "systemEvent"
14893
15332
  ]),
14894
15333
  operator: _enum([
@@ -15294,7 +15733,87 @@ var MethodAccessSchema = _enum([
15294
15733
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15295
15734
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15296
15735
  var CapScopeSchema = _enum(["device", "system"]);
15297
- var TokenScopeSchema = discriminatedUnion("type", [
15736
+ /**
15737
+ * DeviceSelector (scope model v3 — 2026-08-12).
15738
+ *
15739
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15740
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15741
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15742
+ * AFTER the grant was minted — no re-grant, no re-login.
15743
+ *
15744
+ * - `all` — every device in the deployment. The broad viewer/operator
15745
+ * lever without a `category` grant (a `category` grant also covers device
15746
+ * caps that carry no deviceId; `all` is specifically the device set).
15747
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15748
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15749
+ * is NOT covered until the grant is edited.
15750
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15751
+ * DYNAMIC. A device that changes type, or a new device of the type,
15752
+ * re-resolves on the next request.
15753
+ * - `locations` — every device whose operator-assigned `location` label is
15754
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15755
+ * null/unset location matches NO `locations` selector.
15756
+ */
15757
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15758
+ object({ kind: literal("all") }),
15759
+ object({
15760
+ kind: literal("ids"),
15761
+ ids: array(number().int()).min(1)
15762
+ }),
15763
+ object({
15764
+ kind: literal("types"),
15765
+ types: array(_enum(DeviceType)).min(1)
15766
+ }),
15767
+ object({
15768
+ kind: literal("locations"),
15769
+ locations: array(string().min(1)).min(1)
15770
+ })
15771
+ ]);
15772
+ var DeviceTokenScopeSchema = object({
15773
+ type: literal("device"),
15774
+ /** The device SET this grant covers — resolved against the live fleet. */
15775
+ selector: DeviceSelectorSchema,
15776
+ access: array(MethodAccessSchema).min(1),
15777
+ /**
15778
+ * Whether a grant on a PARENT device transparently covers its accessory
15779
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15780
+ * Direction is parent → children ONLY.
15781
+ *
15782
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15783
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15784
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15785
+ * operator must grant on the child, not inherit from the parent). Set it
15786
+ * explicitly to override that default per grant.
15787
+ */
15788
+ includeLinked: boolean().optional()
15789
+ });
15790
+ /**
15791
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15792
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15793
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15794
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15795
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15796
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15797
+ * migration cannot reach a JWT already in a client's hands; parse-time
15798
+ * migration covers both without a flag day. No cast — the raw object is read
15799
+ * through `Reflect.get` (its static type is `unknown`).
15800
+ */
15801
+ function migrateLegacyTokenScope(raw) {
15802
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15803
+ if (Reflect.get(raw, "type") !== "device") return raw;
15804
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15805
+ const targets = Reflect.get(raw, "targets");
15806
+ if (!Array.isArray(targets)) return raw;
15807
+ return {
15808
+ type: "device",
15809
+ selector: {
15810
+ kind: "ids",
15811
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15812
+ },
15813
+ access: Reflect.get(raw, "access")
15814
+ };
15815
+ }
15816
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15298
15817
  object({
15299
15818
  type: literal("category"),
15300
15819
  target: CapScopeSchema,
@@ -15310,18 +15829,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15310
15829
  target: string(),
15311
15830
  access: array(MethodAccessSchema).min(1)
15312
15831
  }),
15313
- object({
15314
- type: literal("device"),
15315
- /**
15316
- * One or more deviceIds (serialised as strings for wire-format
15317
- * consistency with the rest of the union). Matcher accepts if
15318
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15319
- * of one scope-per-device when granting access to a set of cameras.
15320
- */
15321
- targets: array(string()).min(1),
15322
- access: array(MethodAccessSchema).min(1)
15323
- })
15324
- ]);
15832
+ DeviceTokenScopeSchema
15833
+ ]));
15325
15834
  object({
15326
15835
  id: string(),
15327
15836
  username: string(),
@@ -15638,7 +16147,7 @@ var TrackEnvelopeSchema = object({
15638
16147
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15639
16148
  * keeps every scalar the list surfaces actually render (ids, class(es),
15640
16149
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15641
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16150
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15642
16151
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15643
16152
  * `getTrack`. Mirrors the event-store `projection` convention
15644
16153
  * (`getObjectEvents` et al.).
@@ -15774,7 +16283,21 @@ union([literal(1), literal(2)]);
15774
16283
  var LabelAttributionSchema = object({
15775
16284
  stepId: string(),
15776
16285
  modelId: string().optional(),
15777
- decidedAt: number()
16286
+ decidedAt: number(),
16287
+ /**
16288
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16289
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16290
+ *
16291
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16292
+ * notification rule authored on "Gianluca" stopped matching the moment the
16293
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16294
+ * the thing that does not move, so it is what a rule matches on
16295
+ * (`NcConditions.identities`) and the text is what a human is shown.
16296
+ *
16297
+ * Absent when the label names no gallery row — a plate the OCR read but no
16298
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16299
+ */
16300
+ identityId: string().optional()
15778
16301
  });
15779
16302
  /**
15780
16303
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15911,6 +16434,28 @@ var TrackSchema = object({
15911
16434
  * `=== true` and render nothing otherwise, never infer "no face".
15912
16435
  */
15913
16436
  hasFace: boolean().optional(),
16437
+ /**
16438
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16439
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16440
+ * so the passage is tracked once and as a VEHICLE.
16441
+ *
16442
+ * It exists because the fold's record was dishonest. D34 and the code both
16443
+ * said "the person is not lost — it is reported so both entities stay on the
16444
+ * record"; in fact the pair went into a per-processor RAM field behind an
16445
+ * accessor nobody called, and every durable surface said `vehicle`, full
16446
+ * stop. This is the composition note that makes the row true.
16447
+ *
16448
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16449
+ * person" is not an answer to "what is this" — both label tiers would refuse
16450
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16451
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16452
+ * and a `person` rule still does not fire for someone cycling past.
16453
+ *
16454
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16455
+ * the column, and every hub that predates the field, omits it. Test
16456
+ * `=== true` and render nothing otherwise — never infer "no rider".
16457
+ */
16458
+ hasRider: boolean().optional(),
15914
16459
  ...TrackFlagFields,
15915
16460
  ...TrackRetrainFields
15916
16461
  });
@@ -16260,7 +16805,10 @@ var RecentTracksQueryInput = object({
16260
16805
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16261
16806
  cursor: string().optional(),
16262
16807
  /** See {@link TrackProjectionSchema}. Default `full`. */
16263
- projection: TrackProjectionSchema.optional()
16808
+ projection: TrackProjectionSchema.optional(),
16809
+ /** Include stationary-promoted rows (parked objects). Default false: the
16810
+ * feed lists passages; parking records live on the stationary registry. */
16811
+ includeStationary: boolean().optional()
16264
16812
  });
16265
16813
  var RecentTracksPageSchema = object({
16266
16814
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16478,7 +17026,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16478
17026
  zone: TrackZoneFilterSchema.optional(),
16479
17027
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16480
17028
  * compatible — omitting the field keeps today's exact behaviour). */
16481
- projection: TrackProjectionSchema.optional()
17029
+ projection: TrackProjectionSchema.optional(),
17030
+ /** Include stationary-promoted rows (parked objects handed to the
17031
+ * stationary registry). Default false: the timeline lists passages,
17032
+ * not parking records (operator decision, 2026-08-15). */
17033
+ includeStationary: boolean().optional()
16482
17034
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16483
17035
  kind: "mutation",
16484
17036
  auth: "admin"
@@ -16642,11 +17194,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16642
17194
  auth: "admin"
16643
17195
  }), method(object({
16644
17196
  eventId: string(),
16645
- kind: MediaFileKindEnum.optional()
17197
+ kind: MediaFileKindEnum.optional(),
17198
+ deviceId: number()
17199
+ }), array(MediaFileSchema).readonly()), method(object({
17200
+ trackId: string(),
17201
+ kinds: array(MediaFileKindEnum).optional(),
17202
+ deviceId: number()
16646
17203
  }), array(MediaFileSchema).readonly()), method(object({
16647
17204
  trackId: string(),
16648
- kinds: array(MediaFileKindEnum).optional()
16649
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17205
+ deviceId: number()
17206
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16650
17207
  kind: "mutation",
16651
17208
  auth: "admin"
16652
17209
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17306,6 +17863,17 @@ var maxSessionHoldMsField = {
17306
17863
  default: 12e4,
17307
17864
  step: 5e3
17308
17865
  };
17866
+ /**
17867
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17868
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17869
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17870
+ */
17871
+ var audioMotionWindowMsField = {
17872
+ min: 5e3,
17873
+ max: 6e5,
17874
+ default: 9e4,
17875
+ step: 5e3
17876
+ };
17309
17877
  var motionFpsField = {
17310
17878
  min: 1,
17311
17879
  max: 30,
@@ -17337,7 +17905,7 @@ var detectionFpsField = {
17337
17905
  var occupancyRecheckSecField = {
17338
17906
  min: 0,
17339
17907
  max: 300,
17340
- default: 30,
17908
+ default: 300,
17341
17909
  step: 5
17342
17910
  };
17343
17911
  var occupancyRecheckFramesField = {
@@ -17482,6 +18050,27 @@ var RunnerCameraConfigSchema = object({
17482
18050
  * resolved `CameraDetectionConfig`.
17483
18051
  */
17484
18052
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18053
+ /**
18054
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18055
+ * 'on-motion'` audio window, measured from the LAST motion event.
18056
+ *
18057
+ * This exists because the falling edge cannot be relied on. Camera-native
18058
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18059
+ * its email-push SMTP path both emit `detected: true` and never the
18060
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18061
+ * onboard-only camera a window that closed only on `detected: false` never
18062
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18063
+ * battery camera, the one failure mode the mode exists to prevent.
18064
+ *
18065
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18066
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18067
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18068
+ *
18069
+ * Not consumed by the runner: carried here so it shares the per-camera
18070
+ * device-settings surface with `motionCooldownMs`, exactly like
18071
+ * `maxSessionHoldMs`.
18072
+ */
18073
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17485
18074
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17486
18075
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17487
18076
  motionStreamId: string(),
@@ -17577,7 +18166,7 @@ var RunnerCameraConfigSchema = object({
17577
18166
  */
17578
18167
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17579
18168
  });
17580
- 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;
18169
+ 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;
17581
18170
  /**
17582
18171
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17583
18172
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18563,7 +19152,31 @@ DeviceType.Camera, method(object({
18563
19152
  lastCapturedAt: number().nullable(),
18564
19153
  cacheAgeMs: number().nullable(),
18565
19154
  etag: string().nullable()
18566
- }))), systemMethod(object({
19155
+ }))), systemMethod(object({ deviceId: number() }), object({
19156
+ /** The battery slice as read, or null when the device has none. */
19157
+ battery: object({
19158
+ sleeping: boolean(),
19159
+ lastUpdated: number(),
19160
+ lastContactAt: number().optional()
19161
+ }).nullable(),
19162
+ /** The resolved snapshot state (what the overlay decision used). */
19163
+ state: object({
19164
+ isBattery: boolean(),
19165
+ reason: _enum([
19166
+ "disabled",
19167
+ "sleeping",
19168
+ "unreachable",
19169
+ "waking"
19170
+ ]).nullable()
19171
+ }),
19172
+ /** The cached frame behind the next paint. */
19173
+ frame: object({
19174
+ capturedAt: number().nullable(),
19175
+ ageMs: number().nullable()
19176
+ }),
19177
+ /** A wake window is currently open (the Waking overlay's source). */
19178
+ waking: boolean()
19179
+ })), systemMethod(object({
18567
19180
  /** The tiles a surface is actually rendering. One entry per (device,
18568
19181
  * width) the caller will paint — the width is snapped to the server's
18569
19182
  * ladder and becomes part of the link's SIGNED identity. */
@@ -18593,7 +19206,16 @@ targets: array(object({
18593
19206
  /** A sleeping battery camera: the frame is deliberately stale and will
18594
19207
  * NOT refresh in the background. A surface should say so rather than
18595
19208
  * present it as current. */
18596
- sleeping: boolean()
19209
+ sleeping: boolean(),
19210
+ /** Current device state rendered over the cached frame. State images
19211
+ * remain authoritative even when their photographic background is
19212
+ * old; null means the link must carry a current camera frame. */
19213
+ stateReason: _enum([
19214
+ "disabled",
19215
+ "sleeping",
19216
+ "unreachable",
19217
+ "waking"
19218
+ ]).nullable()
18597
19219
  })));
18598
19220
  /**
18599
19221
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20115,6 +20737,25 @@ var BatteryStatusSchema = object({
20115
20737
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20116
20738
  lastUpdated: number(),
20117
20739
  /**
20740
+ * Ms epoch of the last time the device PROVED it was reachable — a
20741
+ * completed firmware round-trip, an observed wake, or an inbound push
20742
+ * (firmware event, email). `0`/absent = never since this slice was born.
20743
+ *
20744
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20745
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20746
+ * for the radio, because a poll that confirms reachability is the same
20747
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20748
+ * single derivation every consumer must use; no surface computes its own.
20749
+ *
20750
+ * It is deliberately NOT a clock in the
20751
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20752
+ * observation itself, and it is the only thing a 30-hour silence is
20753
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20754
+ * Reolink provider) so a value that means "recently" cannot cost a
20755
+ * SQLite commit per round-trip.
20756
+ */
20757
+ lastContactAt: number().optional(),
20758
+ /**
20118
20759
  * True when the source is a BINARY low-battery indicator (HA
20119
20760
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20120
20761
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23652,7 +24293,7 @@ method(object({
23652
24293
  toMs: number()
23653
24294
  }), RecordingAvailabilitySchema, {
23654
24295
  kind: "query",
23655
- auth: "admin"
24296
+ auth: "protected"
23656
24297
  }), method(object({
23657
24298
  deviceId: number(),
23658
24299
  fromMs: number(),
@@ -23660,14 +24301,14 @@ method(object({
23660
24301
  tzOffsetMinutes: number()
23661
24302
  }), RecordingDaysSchema, {
23662
24303
  kind: "query",
23663
- auth: "admin"
24304
+ auth: "protected"
23664
24305
  }), method(object({
23665
24306
  deviceId: number(),
23666
24307
  fromMs: number(),
23667
24308
  toMs: number()
23668
24309
  }), RecordingManifestSchema, {
23669
24310
  kind: "query",
23670
- auth: "admin"
24311
+ auth: "protected"
23671
24312
  }), method(object({}), RecordingStorageUsageSchema, {
23672
24313
  kind: "query",
23673
24314
  auth: "admin"
@@ -23957,14 +24598,77 @@ method(object({
23957
24598
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23958
24599
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23959
24600
  *
23960
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
23961
- * derives the device-detail contribution; the provider carries NO hand-written
23962
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
23963
- * every hysteresis flip / availability change; consumers never poll.
24601
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24602
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24603
+ * for the thing: a scene is a standing question about the property ("is the bin
24604
+ * still out"), and the operator's question is "which of my scenes have tripped",
24605
+ * across every camera at once — not "what does camera 617 think". Buried one
24606
+ * camera deep it also could not be found. The surface is now a top-level admin
24607
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24608
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24609
+ *
24610
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24611
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24612
+ * directions, so a registration nobody declares fails exactly as loudly as a
24613
+ * declaration nobody registers. The editor is imported directly by the page.
24614
+ *
24615
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24616
+ * availability change; consumers never poll.
23964
24617
  */
23965
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23966
- * be added without a wire break (matching falls back to any-condition refs). */
24618
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24619
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24620
+ * Open by design so more can be added without a wire break.
24621
+ *
24622
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24623
+ * not comparable, so "I have never seen this scene in this light" is reported
24624
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24625
+ * collapses the cosine and would latch a false alarm every single night. */
23967
24626
  var SceneConditionSchema = string();
24627
+ /**
24628
+ * What a scene does when the CURRENT light has no reference of its own.
24629
+ *
24630
+ * The lighting variants are not equally likely to exist. Almost every operator
24631
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24632
+ * scene that is only ever going to be asked about a daytime question ("is the
24633
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24634
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24635
+ * working without it rather than degrading into a permanent complaint.
24636
+ *
24637
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24638
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24639
+ * last covered light left it at, the latch is untouched, and the hysteresis
24640
+ * run is neither spent nor cleared. The scene resumes by itself at first
24641
+ * light. This is the only behaviour under which "I never captured IR" is a
24642
+ * configuration choice instead of a nightly fault.
24643
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24644
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24645
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24646
+ * cross-condition cosines are not comparable, so a day reference against a
24647
+ * true IR frame collapses and the scene reports a theft at 21:40.
24648
+ *
24649
+ * Never applies when the scene has NO comparable reference at all — that is
24650
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24651
+ * there would hide a scene the operator never finished setting up.
24652
+ */
24653
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24654
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24655
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24656
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24657
+ * and never counts toward hysteresis in either direction. */
24658
+ var SceneVerdictSchema = _enum([
24659
+ "matched",
24660
+ "diverged",
24661
+ "unknown"
24662
+ ]);
24663
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24664
+ * silence that reads as "nothing has happened". */
24665
+ var SceneUnavailableSchema = _enum([
24666
+ "no-reference-for-condition",
24667
+ "view-shifted",
24668
+ "no-vision-profile",
24669
+ "encoder-model-changed",
24670
+ "no-snapshot"
24671
+ ]);
23968
24672
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23969
24673
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23970
24674
  var SceneReferenceSchema = object({
@@ -23972,7 +24676,14 @@ var SceneReferenceSchema = object({
23972
24676
  modelId: string(),
23973
24677
  condition: SceneConditionSchema,
23974
24678
  capturedAt: number(),
23975
- thumbnailMediaId: string().optional()
24679
+ thumbnailMediaId: string().optional(),
24680
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24681
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24682
+ * normalized rect frame a different piece of world, and the scene would
24683
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24684
+ * when hysteresis is about to flip — one extra encode per candidate
24685
+ * transition, not per poll. */
24686
+ anchorEmbedding: array(number()).optional()
23976
24687
  });
23977
24688
  var SceneMonitorStateSchema = object({
23978
24689
  id: string(),
@@ -23994,6 +24705,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
23994
24705
  profileId: string().optional(),
23995
24706
  hysteresisCount: number().int().positive()
23996
24707
  })]);
24708
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24709
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24710
+ * out in silence rather than reporting a fault every night. */
24711
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24712
+ /**
24713
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24714
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24715
+ *
24716
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24717
+ * fail-open: a notification suppressed is the worse error there, but a vision
24718
+ * model that timed out has not told us the bin is gone, and a latch is a
24719
+ * stateful claim that costs the operator a trip to reset.
24720
+ */
24721
+ var SceneConfirmSchema = object({
24722
+ enabled: boolean().default(false),
24723
+ prompt: string().min(1).max(1e3),
24724
+ profileId: string().optional(),
24725
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24726
+ maxImagePx: number().int().min(64).max(2048).default(448),
24727
+ /** What a timeout / unavailable model means for the PENDING flip. */
24728
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24729
+ });
23997
24730
  var SceneMonitorSchema = object({
23998
24731
  id: string(),
23999
24732
  label: string(),
@@ -24012,7 +24745,56 @@ var SceneMonitorSchema = object({
24012
24745
  lastConfidence: number().nullable(),
24013
24746
  currentCondition: SceneConditionSchema.nullable(),
24014
24747
  availability: _enum(["ok", "unavailable"]),
24015
- unavailableReason: string().nullable()
24748
+ unavailableReason: string().nullable(),
24749
+ /** Which state is "the initial screen". `null` until the first capture. */
24750
+ baselineStateId: string().nullable(),
24751
+ /** Which boolean drives notification rules and any export. */
24752
+ emit: _enum(["latched", "live"]).default("latched"),
24753
+ /** Live: does the region match the baseline RIGHT NOW. */
24754
+ verdict: SceneVerdictSchema,
24755
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24756
+ latched: boolean(),
24757
+ /** Last reset (or creation). */
24758
+ armedAt: number(),
24759
+ divergedAt: number().nullable(),
24760
+ restoredAt: number().nullable(),
24761
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24762
+ * during the window DISCARDS the observation — a car pulling up in front of
24763
+ * the bin must not be able to spend hysteresis credit. */
24764
+ quietSeconds: number().int().min(0).max(3600).default(60),
24765
+ /** An observation only advances the pending count when it is at least this
24766
+ * far from the previously counted one, so N agreeing checks span real time
24767
+ * rather than N adjacent polls inside one occlusion. */
24768
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24769
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24770
+ confirm: SceneConfirmSchema.optional(),
24771
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24772
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24773
+ /** Clear the latch on its own when the scene matches again? Default false —
24774
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24775
+ * automation can react to the bin coming back without the operator's own
24776
+ * alarm silently clearing itself. */
24777
+ autoRestore: boolean().default(false),
24778
+ /** What to do when the current light has no reference of its own. See
24779
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24780
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24781
+ /**
24782
+ * The light whose checks are currently being SAT OUT under
24783
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24784
+ *
24785
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24786
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24787
+ * nothing captured in this light"* in the same calm voice as the coverage
24788
+ * line, because the alternative is a scene that silently stops answering
24789
+ * after sunset with nothing anywhere saying why. A skipped check must never
24790
+ * read as a broken one.
24791
+ */
24792
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24793
+ /** Named cause when `verdict === 'unknown'`. */
24794
+ unavailable: SceneUnavailableSchema.nullable(),
24795
+ /** Conditions that have at least one comparable reference — the coverage line
24796
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24797
+ coveredConditions: array(SceneConditionSchema)
24016
24798
  });
24017
24799
  var SceneMonitorStatusSchema = object({
24018
24800
  monitors: array(SceneMonitorSchema),
@@ -24045,7 +24827,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24045
24827
  "both"
24046
24828
  ]).optional(),
24047
24829
  checkIntervalSec: number().optional(),
24048
- check: SceneCheckSchema.optional()
24830
+ check: SceneCheckSchema.optional(),
24831
+ emit: _enum(["latched", "live"]).optional(),
24832
+ quietSeconds: number().int().min(0).max(3600).optional(),
24833
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24834
+ anchorThreshold: number().min(0).max(1).optional(),
24835
+ autoRestore: boolean().optional(),
24836
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24837
+ /** `null` clears the vision-model adjudicator. */
24838
+ confirm: SceneConfirmSchema.nullable().optional()
24049
24839
  })
24050
24840
  }), _void(), {
24051
24841
  kind: "mutation",
@@ -24082,6 +24872,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24082
24872
  }), _void(), {
24083
24873
  kind: "mutation",
24084
24874
  auth: "admin"
24875
+ }), method(object({
24876
+ deviceId: number(),
24877
+ monitorId: string(),
24878
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24879
+ recapture: boolean().optional()
24880
+ }), _void(), {
24881
+ kind: "mutation",
24882
+ auth: "admin"
24085
24883
  });
24086
24884
  /**
24087
24885
  * Per-stage gating mode applied to the zones a rule references.
@@ -24235,6 +25033,16 @@ var CamStreamDescriptorSchema = object({
24235
25033
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24236
25034
  metadata: record(string(), unknown()).optional()
24237
25035
  });
25036
+ object({
25037
+ /** The descriptors as last built from a real camera response. Never a guess:
25038
+ * a failed or refused build writes NOTHING, so a restored catalog is always
25039
+ * one the camera itself once produced. */
25040
+ descriptors: array(CamStreamDescriptorSchema),
25041
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
25042
+ * path decide whether the camera's own awake window is worth spending on a
25043
+ * re-read. */
25044
+ lastFetchedAt: number()
25045
+ });
24238
25046
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24239
25047
  /** One of the camera's stream profiles. */
24240
25048
  var StreamProfileSchema = _enum([
@@ -24390,12 +25198,64 @@ var NetworkAddressSchema = object({
24390
25198
  family: string(),
24391
25199
  internal: boolean()
24392
25200
  });
25201
+ /**
25202
+ * Provenance of the site coordinates, and the whole reason this is not just two
25203
+ * numbers.
25204
+ *
25205
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25206
+ * nothing overwrites it.
25207
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25208
+ * default that is right to a few kilometres beats the coarse UTC clock split
25209
+ * the sun-times consumers otherwise fall back to.
25210
+ *
25211
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25212
+ * own input will eventually trust the guess.
25213
+ */
25214
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25215
+ /**
25216
+ * The read shape: the location plus the honest state of the one-shot derivation.
25217
+ *
25218
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25219
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25220
+ * failed; the hub will NOT try again on its own — the fallback is declared
25221
+ * (consumers degrade to their own last resort) and the operator either types the
25222
+ * coordinates or presses detect.
25223
+ */
25224
+ var SiteLocationStatusSchema = object({
25225
+ location: object({
25226
+ /** WGS84 decimal degrees. */
25227
+ latitude: number().min(-90).max(90),
25228
+ longitude: number().min(-180).max(180),
25229
+ source: SiteLocationSourceSchema,
25230
+ /** Epoch ms the value was last written. */
25231
+ updatedAt: number(),
25232
+ /**
25233
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25234
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25235
+ */
25236
+ label: string().optional()
25237
+ }).nullable(),
25238
+ derivationAttemptedAt: number().nullable(),
25239
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25240
+ derivationError: string().nullable()
25241
+ });
25242
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25243
+ var SetSiteLocationInputSchema = object({
25244
+ latitude: number().min(-90).max(90),
25245
+ longitude: number().min(-180).max(180)
25246
+ }).nullable();
24393
25247
  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(), {
24394
25248
  kind: "mutation",
24395
25249
  auth: "admin"
24396
25250
  }), method(_void(), _void(), {
24397
25251
  kind: "mutation",
24398
25252
  auth: "admin"
25253
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25254
+ kind: "mutation",
25255
+ auth: "admin"
25256
+ }), method(_void(), SiteLocationStatusSchema, {
25257
+ kind: "mutation",
25258
+ auth: "admin"
24399
25259
  });
24400
25260
  object({
24401
25261
  /** True when the device's tamper switch / case-open contact is
@@ -27125,6 +27985,12 @@ Object.freeze({
27125
27985
  addonId: null,
27126
27986
  access: "create"
27127
27987
  },
27988
+ "llm.cancel": {
27989
+ capName: "llm",
27990
+ capScope: "system",
27991
+ addonId: null,
27992
+ access: "create"
27993
+ },
27128
27994
  "llm.deleteModel": {
27129
27995
  capName: "llm",
27130
27996
  capScope: "system",
@@ -27209,6 +28075,12 @@ Object.freeze({
27209
28075
  addonId: null,
27210
28076
  access: "view"
27211
28077
  },
28078
+ "llm.resolveModelRef": {
28079
+ capName: "llm",
28080
+ capScope: "system",
28081
+ addonId: null,
28082
+ access: "create"
28083
+ },
27212
28084
  "llm.setDefault": {
27213
28085
  capName: "llm",
27214
28086
  capScope: "system",
@@ -29375,6 +30247,12 @@ Object.freeze({
29375
30247
  addonId: null,
29376
30248
  access: "create"
29377
30249
  },
30250
+ "sceneMonitor.resetScene": {
30251
+ capName: "scene-monitor",
30252
+ capScope: "device",
30253
+ addonId: null,
30254
+ access: "delete"
30255
+ },
29378
30256
  "sceneMonitor.updateScene": {
29379
30257
  capName: "scene-monitor",
29380
30258
  capScope: "device",
@@ -29513,6 +30391,12 @@ Object.freeze({
29513
30391
  addonId: null,
29514
30392
  access: "view"
29515
30393
  },
30394
+ "snapshot.getDebugState": {
30395
+ capName: "snapshot",
30396
+ capScope: "device",
30397
+ addonId: null,
30398
+ access: "view"
30399
+ },
29516
30400
  "snapshot.getSnapshot": {
29517
30401
  capName: "snapshot",
29518
30402
  capScope: "device",
@@ -30053,6 +30937,12 @@ Object.freeze({
30053
30937
  addonId: null,
30054
30938
  access: "create"
30055
30939
  },
30940
+ "system.detectSiteLocation": {
30941
+ capName: "system",
30942
+ capScope: "system",
30943
+ addonId: null,
30944
+ access: "create"
30945
+ },
30056
30946
  "system.featureFlags": {
30057
30947
  capName: "system",
30058
30948
  capScope: "system",
@@ -30071,6 +30961,12 @@ Object.freeze({
30071
30961
  addonId: null,
30072
30962
  access: "view"
30073
30963
  },
30964
+ "system.getSiteLocation": {
30965
+ capName: "system",
30966
+ capScope: "system",
30967
+ addonId: null,
30968
+ access: "view"
30969
+ },
30074
30970
  "system.health": {
30075
30971
  capName: "system",
30076
30972
  capScope: "system",
@@ -30095,6 +30991,12 @@ Object.freeze({
30095
30991
  addonId: null,
30096
30992
  access: "create"
30097
30993
  },
30994
+ "system.setSiteLocation": {
30995
+ capName: "system",
30996
+ capScope: "system",
30997
+ addonId: null,
30998
+ access: "create"
30999
+ },
30098
31000
  "terminalSession.adoptLegacyMonitor": {
30099
31001
  capName: "terminal-session",
30100
31002
  capScope: "system",
@@ -30666,6 +31568,1709 @@ Object.freeze({
30666
31568
  access: "create"
30667
31569
  }
30668
31570
  });
31571
+ Object.freeze({
31572
+ "accessories.setChildHidden": [{
31573
+ name: "childDeviceId",
31574
+ form: "single",
31575
+ optional: false
31576
+ }, {
31577
+ name: "deviceId",
31578
+ form: "single",
31579
+ optional: false
31580
+ }],
31581
+ "addonSettings.getDeviceSettings": [{
31582
+ name: "deviceId",
31583
+ form: "single",
31584
+ optional: false
31585
+ }],
31586
+ "addonSettings.updateDeviceSettings": [{
31587
+ name: "deviceId",
31588
+ form: "single",
31589
+ optional: false
31590
+ }],
31591
+ "alarmPanel.arm": [{
31592
+ name: "deviceId",
31593
+ form: "single",
31594
+ optional: false
31595
+ }],
31596
+ "alarmPanel.disarm": [{
31597
+ name: "deviceId",
31598
+ form: "single",
31599
+ optional: false
31600
+ }],
31601
+ "alarmPanel.trigger": [{
31602
+ name: "deviceId",
31603
+ form: "single",
31604
+ optional: false
31605
+ }],
31606
+ "audioAnalysis.resolveDeviceSettings": [{
31607
+ name: "deviceId",
31608
+ form: "single",
31609
+ optional: false
31610
+ }],
31611
+ "audioAnalyzer.classify": [{
31612
+ name: "deviceId",
31613
+ form: "single",
31614
+ optional: true
31615
+ }],
31616
+ "audioMetrics.getCurrentSnapshot": [{
31617
+ name: "deviceId",
31618
+ form: "single",
31619
+ optional: false
31620
+ }],
31621
+ "audioMetrics.getHistory": [{
31622
+ name: "deviceId",
31623
+ form: "single",
31624
+ optional: false
31625
+ }],
31626
+ "automationControl.disable": [{
31627
+ name: "deviceId",
31628
+ form: "single",
31629
+ optional: false
31630
+ }],
31631
+ "automationControl.enable": [{
31632
+ name: "deviceId",
31633
+ form: "single",
31634
+ optional: false
31635
+ }],
31636
+ "automationControl.trigger": [{
31637
+ name: "deviceId",
31638
+ form: "single",
31639
+ optional: false
31640
+ }],
31641
+ "battery.wakeForStream": [{
31642
+ name: "deviceId",
31643
+ form: "single",
31644
+ optional: false
31645
+ }],
31646
+ "brightness.setBrightness": [{
31647
+ name: "deviceId",
31648
+ form: "single",
31649
+ optional: false
31650
+ }],
31651
+ "button.press": [{
31652
+ name: "deviceId",
31653
+ form: "single",
31654
+ optional: false
31655
+ }],
31656
+ "cameraCredentials.getCredentials": [{
31657
+ name: "deviceId",
31658
+ form: "single",
31659
+ optional: false
31660
+ }],
31661
+ "cameraStreams.getBrokerStreams": [{
31662
+ name: "deviceId",
31663
+ form: "single",
31664
+ optional: false
31665
+ }],
31666
+ "cameraStreams.getCameraStreams": [{
31667
+ name: "deviceId",
31668
+ form: "single",
31669
+ optional: false
31670
+ }],
31671
+ "cameraStreams.getProfileRtspEntries": [{
31672
+ name: "deviceId",
31673
+ form: "single",
31674
+ optional: false
31675
+ }],
31676
+ "cameraStreams.getRtspEntries": [{
31677
+ name: "deviceId",
31678
+ form: "single",
31679
+ optional: false
31680
+ }],
31681
+ "cameraStreams.pickStream": [{
31682
+ name: "deviceId",
31683
+ form: "single",
31684
+ optional: false
31685
+ }],
31686
+ "climateControl.setFanMode": [{
31687
+ name: "deviceId",
31688
+ form: "single",
31689
+ optional: false
31690
+ }],
31691
+ "climateControl.setMode": [{
31692
+ name: "deviceId",
31693
+ form: "single",
31694
+ optional: false
31695
+ }],
31696
+ "climateControl.setPreset": [{
31697
+ name: "deviceId",
31698
+ form: "single",
31699
+ optional: false
31700
+ }],
31701
+ "climateControl.setSwingHorizontal": [{
31702
+ name: "deviceId",
31703
+ form: "single",
31704
+ optional: false
31705
+ }],
31706
+ "climateControl.setSwingVertical": [{
31707
+ name: "deviceId",
31708
+ form: "single",
31709
+ optional: false
31710
+ }],
31711
+ "climateControl.setTarget": [{
31712
+ name: "deviceId",
31713
+ form: "single",
31714
+ optional: false
31715
+ }],
31716
+ "climateControl.setTargetHumidity": [{
31717
+ name: "deviceId",
31718
+ form: "single",
31719
+ optional: false
31720
+ }],
31721
+ "climateControl.setTargetRange": [{
31722
+ name: "deviceId",
31723
+ form: "single",
31724
+ optional: false
31725
+ }],
31726
+ "color.setColor": [{
31727
+ name: "deviceId",
31728
+ form: "single",
31729
+ optional: false
31730
+ }],
31731
+ "consumables.reset": [{
31732
+ name: "deviceId",
31733
+ form: "single",
31734
+ optional: false
31735
+ }],
31736
+ "control.setValue": [{
31737
+ name: "deviceId",
31738
+ form: "single",
31739
+ optional: false
31740
+ }],
31741
+ "cover.close": [{
31742
+ name: "deviceId",
31743
+ form: "single",
31744
+ optional: false
31745
+ }],
31746
+ "cover.open": [{
31747
+ name: "deviceId",
31748
+ form: "single",
31749
+ optional: false
31750
+ }],
31751
+ "cover.setPosition": [{
31752
+ name: "deviceId",
31753
+ form: "single",
31754
+ optional: false
31755
+ }],
31756
+ "cover.setTiltPosition": [{
31757
+ name: "deviceId",
31758
+ form: "single",
31759
+ optional: false
31760
+ }],
31761
+ "cover.stop": [{
31762
+ name: "deviceId",
31763
+ form: "single",
31764
+ optional: false
31765
+ }],
31766
+ "dayNight.getOptions": [{
31767
+ name: "deviceId",
31768
+ form: "single",
31769
+ optional: false
31770
+ }],
31771
+ "dayNight.setSettings": [{
31772
+ name: "deviceId",
31773
+ form: "single",
31774
+ optional: false
31775
+ }],
31776
+ "decoder.createSession": [{
31777
+ name: "deviceId",
31778
+ form: "single",
31779
+ optional: true
31780
+ }],
31781
+ "deviceAdoption.release": [{
31782
+ name: "camDeviceId",
31783
+ form: "single",
31784
+ optional: false
31785
+ }],
31786
+ "deviceAdoption.resync": [{
31787
+ name: "camDeviceId",
31788
+ form: "single",
31789
+ optional: false
31790
+ }],
31791
+ "deviceDiscovery.adoptDevice": [{
31792
+ name: "deviceId",
31793
+ form: "single",
31794
+ optional: false
31795
+ }],
31796
+ "deviceDiscovery.listDiscovered": [{
31797
+ name: "deviceId",
31798
+ form: "single",
31799
+ optional: false
31800
+ }],
31801
+ "deviceDiscovery.refreshDiscovery": [{
31802
+ name: "deviceId",
31803
+ form: "single",
31804
+ optional: false
31805
+ }],
31806
+ "deviceDiscovery.releaseDevice": [{
31807
+ name: "childDeviceId",
31808
+ form: "single",
31809
+ optional: false
31810
+ }, {
31811
+ name: "deviceId",
31812
+ form: "single",
31813
+ optional: false
31814
+ }],
31815
+ "deviceManager.adoptionRelease": [{
31816
+ name: "camDeviceId",
31817
+ form: "single",
31818
+ optional: false
31819
+ }],
31820
+ "deviceManager.adoptionResync": [{
31821
+ name: "camDeviceId",
31822
+ form: "single",
31823
+ optional: false
31824
+ }],
31825
+ "deviceManager.applyInitialMeta": [{
31826
+ name: "deviceId",
31827
+ form: "single",
31828
+ optional: false
31829
+ }, {
31830
+ name: "linkDeviceId",
31831
+ form: "single",
31832
+ optional: true
31833
+ }],
31834
+ "deviceManager.disable": [{
31835
+ name: "deviceId",
31836
+ form: "single",
31837
+ optional: false
31838
+ }],
31839
+ "deviceManager.enable": [{
31840
+ name: "deviceId",
31841
+ form: "single",
31842
+ optional: false
31843
+ }],
31844
+ "deviceManager.getBindings": [{
31845
+ name: "deviceId",
31846
+ form: "single",
31847
+ optional: false
31848
+ }],
31849
+ "deviceManager.getChildren": [{
31850
+ name: "parentDeviceId",
31851
+ form: "single",
31852
+ optional: false
31853
+ }],
31854
+ "deviceManager.getConfigSchema": [{
31855
+ name: "deviceId",
31856
+ form: "single",
31857
+ optional: false
31858
+ }],
31859
+ "deviceManager.getDevice": [{
31860
+ name: "deviceId",
31861
+ form: "single",
31862
+ optional: false
31863
+ }],
31864
+ "deviceManager.getDeviceAggregate": [{
31865
+ name: "deviceId",
31866
+ form: "single",
31867
+ optional: false
31868
+ }],
31869
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31870
+ name: "deviceId",
31871
+ form: "single",
31872
+ optional: false
31873
+ }],
31874
+ "deviceManager.getDeviceSettingsAggregate": [{
31875
+ name: "deviceId",
31876
+ form: "single",
31877
+ optional: false
31878
+ }],
31879
+ "deviceManager.getDeviceStatusAggregate": [{
31880
+ name: "deviceId",
31881
+ form: "single",
31882
+ optional: false
31883
+ }],
31884
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31885
+ name: "deviceIds",
31886
+ form: "array",
31887
+ optional: false
31888
+ }],
31889
+ "deviceManager.getLinkedDevices": [{
31890
+ name: "deviceId",
31891
+ form: "single",
31892
+ optional: false
31893
+ }],
31894
+ "deviceManager.getSettingsSchema": [{
31895
+ name: "deviceId",
31896
+ form: "single",
31897
+ optional: false
31898
+ }],
31899
+ "deviceManager.getStreamProfileMap": [{
31900
+ name: "deviceId",
31901
+ form: "single",
31902
+ optional: false
31903
+ }],
31904
+ "deviceManager.getStreamSources": [{
31905
+ name: "deviceId",
31906
+ form: "single",
31907
+ optional: false
31908
+ }],
31909
+ "deviceManager.getWireableFields": [{
31910
+ name: "deviceId",
31911
+ form: "single",
31912
+ optional: false
31913
+ }],
31914
+ "deviceManager.loadConfig": [{
31915
+ name: "deviceId",
31916
+ form: "single",
31917
+ optional: false
31918
+ }],
31919
+ "deviceManager.loadMeta": [{
31920
+ name: "deviceId",
31921
+ form: "single",
31922
+ optional: false
31923
+ }],
31924
+ "deviceManager.loadRuntimeState": [{
31925
+ name: "deviceId",
31926
+ form: "single",
31927
+ optional: false
31928
+ }],
31929
+ "deviceManager.persistConfig": [{
31930
+ name: "deviceId",
31931
+ form: "single",
31932
+ optional: false
31933
+ }],
31934
+ "deviceManager.probeStreams": [{
31935
+ name: "deviceId",
31936
+ form: "single",
31937
+ optional: false
31938
+ }],
31939
+ "deviceManager.registerDevice": [{
31940
+ name: "parentDeviceId",
31941
+ form: "single",
31942
+ optional: true
31943
+ }],
31944
+ "deviceManager.remove": [{
31945
+ name: "deviceId",
31946
+ form: "single",
31947
+ optional: false
31948
+ }],
31949
+ "deviceManager.removeDevice": [{
31950
+ name: "deviceId",
31951
+ form: "single",
31952
+ optional: false
31953
+ }],
31954
+ "deviceManager.runDeviceAction": [{
31955
+ name: "deviceId",
31956
+ form: "single",
31957
+ optional: false
31958
+ }],
31959
+ "deviceManager.setChildLayout": [{
31960
+ name: "deviceId",
31961
+ form: "single",
31962
+ optional: false
31963
+ }],
31964
+ "deviceManager.setDisabled": [{
31965
+ name: "deviceId",
31966
+ form: "single",
31967
+ optional: false
31968
+ }],
31969
+ "deviceManager.setDisplay": [{
31970
+ name: "deviceId",
31971
+ form: "single",
31972
+ optional: false
31973
+ }],
31974
+ "deviceManager.setIntegrationId": [{
31975
+ name: "deviceId",
31976
+ form: "single",
31977
+ optional: false
31978
+ }],
31979
+ "deviceManager.setLinkDeviceId": [{
31980
+ name: "deviceId",
31981
+ form: "single",
31982
+ optional: false
31983
+ }, {
31984
+ name: "linkDeviceId",
31985
+ form: "single",
31986
+ optional: true
31987
+ }],
31988
+ "deviceManager.setLocation": [{
31989
+ name: "deviceId",
31990
+ form: "single",
31991
+ optional: false
31992
+ }],
31993
+ "deviceManager.setMetadata": [{
31994
+ name: "deviceId",
31995
+ form: "single",
31996
+ optional: false
31997
+ }],
31998
+ "deviceManager.setName": [{
31999
+ name: "deviceId",
32000
+ form: "single",
32001
+ optional: false
32002
+ }],
32003
+ "deviceManager.setPrimaryChildEntityId": [{
32004
+ name: "deviceId",
32005
+ form: "single",
32006
+ optional: false
32007
+ }],
32008
+ "deviceManager.setRole": [{
32009
+ name: "deviceId",
32010
+ form: "single",
32011
+ optional: false
32012
+ }],
32013
+ "deviceManager.setStreamProfileMap": [{
32014
+ name: "deviceId",
32015
+ form: "single",
32016
+ optional: false
32017
+ }],
32018
+ "deviceManager.setType": [{
32019
+ name: "deviceId",
32020
+ form: "single",
32021
+ optional: false
32022
+ }],
32023
+ "deviceManager.setWrapperActive": [{
32024
+ name: "deviceId",
32025
+ form: "single",
32026
+ optional: false
32027
+ }],
32028
+ "deviceManager.testField": [{
32029
+ name: "deviceId",
32030
+ form: "single",
32031
+ optional: false
32032
+ }],
32033
+ "deviceManager.updateConfig": [{
32034
+ name: "deviceId",
32035
+ form: "single",
32036
+ optional: false
32037
+ }],
32038
+ "deviceManager.updateDeviceField": [{
32039
+ name: "deviceId",
32040
+ form: "single",
32041
+ optional: false
32042
+ }],
32043
+ "deviceManager.updateDeviceFieldsBatch": [{
32044
+ name: "deviceId",
32045
+ form: "single",
32046
+ optional: false
32047
+ }],
32048
+ "deviceOps.getConfigEntries": [{
32049
+ name: "deviceId",
32050
+ form: "single",
32051
+ optional: false
32052
+ }],
32053
+ "deviceOps.getRawState": [{
32054
+ name: "deviceId",
32055
+ form: "single",
32056
+ optional: false
32057
+ }],
32058
+ "deviceOps.getSettingsSchema": [{
32059
+ name: "deviceId",
32060
+ form: "single",
32061
+ optional: false
32062
+ }],
32063
+ "deviceOps.getStreamSources": [{
32064
+ name: "deviceId",
32065
+ form: "single",
32066
+ optional: false
32067
+ }],
32068
+ "deviceOps.removeDevice": [{
32069
+ name: "deviceId",
32070
+ form: "single",
32071
+ optional: false
32072
+ }],
32073
+ "deviceOps.runAction": [{
32074
+ name: "deviceId",
32075
+ form: "single",
32076
+ optional: false
32077
+ }],
32078
+ "deviceOps.setConfig": [{
32079
+ name: "deviceId",
32080
+ form: "single",
32081
+ optional: false
32082
+ }],
32083
+ "deviceState.getCapSlice": [{
32084
+ name: "deviceId",
32085
+ form: "single",
32086
+ optional: false
32087
+ }],
32088
+ "deviceState.getSnapshot": [{
32089
+ name: "deviceId",
32090
+ form: "single",
32091
+ optional: false
32092
+ }],
32093
+ "deviceState.setCapSlice": [{
32094
+ name: "deviceId",
32095
+ form: "single",
32096
+ optional: false
32097
+ }],
32098
+ "events.getEventClipUrl": [{
32099
+ name: "deviceId",
32100
+ form: "single",
32101
+ optional: false
32102
+ }],
32103
+ "events.getEvents": [{
32104
+ name: "deviceId",
32105
+ form: "single",
32106
+ optional: false
32107
+ }],
32108
+ "events.getEventThumbnail": [{
32109
+ name: "deviceId",
32110
+ form: "single",
32111
+ optional: false
32112
+ }],
32113
+ "faceGallery.getFaceByTrack": [{
32114
+ name: "deviceId",
32115
+ form: "single",
32116
+ optional: false
32117
+ }],
32118
+ "faceGallery.listRecentFaces": [{
32119
+ name: "deviceId",
32120
+ form: "single",
32121
+ optional: true
32122
+ }],
32123
+ "fanControl.setDirection": [{
32124
+ name: "deviceId",
32125
+ form: "single",
32126
+ optional: false
32127
+ }],
32128
+ "fanControl.setOscillating": [{
32129
+ name: "deviceId",
32130
+ form: "single",
32131
+ optional: false
32132
+ }],
32133
+ "fanControl.setPercentage": [{
32134
+ name: "deviceId",
32135
+ form: "single",
32136
+ optional: false
32137
+ }],
32138
+ "fanControl.setPreset": [{
32139
+ name: "deviceId",
32140
+ form: "single",
32141
+ optional: false
32142
+ }],
32143
+ "humidifier.setMode": [{
32144
+ name: "deviceId",
32145
+ form: "single",
32146
+ optional: false
32147
+ }],
32148
+ "humidifier.setOn": [{
32149
+ name: "deviceId",
32150
+ form: "single",
32151
+ optional: false
32152
+ }],
32153
+ "humidifier.setTargetHumidity": [{
32154
+ name: "deviceId",
32155
+ form: "single",
32156
+ optional: false
32157
+ }],
32158
+ "imageSettings.getOptions": [{
32159
+ name: "deviceId",
32160
+ form: "single",
32161
+ optional: false
32162
+ }],
32163
+ "imageSettings.setSettings": [{
32164
+ name: "deviceId",
32165
+ form: "single",
32166
+ optional: false
32167
+ }],
32168
+ "intercom.endTalkSession": [{
32169
+ name: "deviceId",
32170
+ form: "single",
32171
+ optional: false
32172
+ }],
32173
+ "intercom.handleAnswer": [{
32174
+ name: "deviceId",
32175
+ form: "single",
32176
+ optional: false
32177
+ }],
32178
+ "intercom.pushTalkAudio": [{
32179
+ name: "deviceId",
32180
+ form: "single",
32181
+ optional: false
32182
+ }],
32183
+ "intercom.startSession": [{
32184
+ name: "deviceId",
32185
+ form: "single",
32186
+ optional: false
32187
+ }],
32188
+ "intercom.startTalkSession": [{
32189
+ name: "deviceId",
32190
+ form: "single",
32191
+ optional: false
32192
+ }],
32193
+ "intercom.stopSession": [{
32194
+ name: "deviceId",
32195
+ form: "single",
32196
+ optional: false
32197
+ }],
32198
+ "lawnMowerControl.dock": [{
32199
+ name: "deviceId",
32200
+ form: "single",
32201
+ optional: false
32202
+ }],
32203
+ "lawnMowerControl.pause": [{
32204
+ name: "deviceId",
32205
+ form: "single",
32206
+ optional: false
32207
+ }],
32208
+ "lawnMowerControl.startMowing": [{
32209
+ name: "deviceId",
32210
+ form: "single",
32211
+ optional: false
32212
+ }],
32213
+ "lockControl.lock": [{
32214
+ name: "deviceId",
32215
+ form: "single",
32216
+ optional: false
32217
+ }],
32218
+ "lockControl.open": [{
32219
+ name: "deviceId",
32220
+ form: "single",
32221
+ optional: false
32222
+ }],
32223
+ "lockControl.unlock": [{
32224
+ name: "deviceId",
32225
+ form: "single",
32226
+ optional: false
32227
+ }],
32228
+ "mediaPlayer.next": [{
32229
+ name: "deviceId",
32230
+ form: "single",
32231
+ optional: false
32232
+ }],
32233
+ "mediaPlayer.pause": [{
32234
+ name: "deviceId",
32235
+ form: "single",
32236
+ optional: false
32237
+ }],
32238
+ "mediaPlayer.play": [{
32239
+ name: "deviceId",
32240
+ form: "single",
32241
+ optional: false
32242
+ }],
32243
+ "mediaPlayer.playMedia": [{
32244
+ name: "deviceId",
32245
+ form: "single",
32246
+ optional: false
32247
+ }],
32248
+ "mediaPlayer.previous": [{
32249
+ name: "deviceId",
32250
+ form: "single",
32251
+ optional: false
32252
+ }],
32253
+ "mediaPlayer.seek": [{
32254
+ name: "deviceId",
32255
+ form: "single",
32256
+ optional: false
32257
+ }],
32258
+ "mediaPlayer.selectSource": [{
32259
+ name: "deviceId",
32260
+ form: "single",
32261
+ optional: false
32262
+ }],
32263
+ "mediaPlayer.setMute": [{
32264
+ name: "deviceId",
32265
+ form: "single",
32266
+ optional: false
32267
+ }],
32268
+ "mediaPlayer.setRepeat": [{
32269
+ name: "deviceId",
32270
+ form: "single",
32271
+ optional: false
32272
+ }],
32273
+ "mediaPlayer.setShuffle": [{
32274
+ name: "deviceId",
32275
+ form: "single",
32276
+ optional: false
32277
+ }],
32278
+ "mediaPlayer.setVolume": [{
32279
+ name: "deviceId",
32280
+ form: "single",
32281
+ optional: false
32282
+ }],
32283
+ "mediaPlayer.stop": [{
32284
+ name: "deviceId",
32285
+ form: "single",
32286
+ optional: false
32287
+ }],
32288
+ "motion.isDetected": [{
32289
+ name: "deviceId",
32290
+ form: "single",
32291
+ optional: false
32292
+ }],
32293
+ "motionDetection.analyze": [{
32294
+ name: "deviceId",
32295
+ form: "single",
32296
+ optional: false
32297
+ }],
32298
+ "motionDetection.removeCamera": [{
32299
+ name: "deviceId",
32300
+ form: "single",
32301
+ optional: false
32302
+ }],
32303
+ "motionTrigger.setMotionTrigger": [{
32304
+ name: "deviceId",
32305
+ form: "single",
32306
+ optional: false
32307
+ }],
32308
+ "motionZones.getOptions": [{
32309
+ name: "deviceId",
32310
+ form: "single",
32311
+ optional: false
32312
+ }],
32313
+ "motionZones.setZone": [{
32314
+ name: "deviceId",
32315
+ form: "single",
32316
+ optional: false
32317
+ }],
32318
+ "nativeObjectDetection.setEnabled": [{
32319
+ name: "deviceId",
32320
+ form: "single",
32321
+ optional: false
32322
+ }],
32323
+ "networkQuality.getDeviceStats": [{
32324
+ name: "deviceId",
32325
+ form: "single",
32326
+ optional: false
32327
+ }],
32328
+ "networkQuality.reportClientStats": [{
32329
+ name: "deviceId",
32330
+ form: "single",
32331
+ optional: false
32332
+ }],
32333
+ "notificationRules.setDeviceMuted": [{
32334
+ name: "deviceId",
32335
+ form: "single",
32336
+ optional: false
32337
+ }],
32338
+ "notifier.cancel": [{
32339
+ name: "deviceId",
32340
+ form: "single",
32341
+ optional: false
32342
+ }],
32343
+ "notifier.send": [{
32344
+ name: "deviceId",
32345
+ form: "single",
32346
+ optional: false
32347
+ }],
32348
+ "osd.setOverlay": [{
32349
+ name: "deviceId",
32350
+ form: "single",
32351
+ optional: false
32352
+ }],
32353
+ "osdManager.clearSlotBinding": [{
32354
+ name: "deviceId",
32355
+ form: "single",
32356
+ optional: false
32357
+ }],
32358
+ "osdManager.copyDeviceConfiguration": [{
32359
+ name: "sourceDeviceId",
32360
+ form: "single",
32361
+ optional: false
32362
+ }, {
32363
+ name: "targetDeviceId",
32364
+ form: "single",
32365
+ optional: false
32366
+ }],
32367
+ "osdManager.getDeviceOsd": [{
32368
+ name: "deviceId",
32369
+ form: "single",
32370
+ optional: false
32371
+ }],
32372
+ "osdManager.getSourceCatalog": [{
32373
+ name: "deviceId",
32374
+ form: "single",
32375
+ optional: false
32376
+ }],
32377
+ "osdManager.previewSlot": [{
32378
+ name: "deviceId",
32379
+ form: "single",
32380
+ optional: false
32381
+ }],
32382
+ "osdManager.renderDevice": [{
32383
+ name: "deviceId",
32384
+ form: "single",
32385
+ optional: false
32386
+ }],
32387
+ "osdManager.setSlotBinding": [{
32388
+ name: "deviceId",
32389
+ form: "single",
32390
+ optional: false
32391
+ }],
32392
+ "petFeeder.callPet": [{
32393
+ name: "deviceId",
32394
+ form: "single",
32395
+ optional: false
32396
+ }],
32397
+ "petFeeder.cancelFeed": [{
32398
+ name: "deviceId",
32399
+ form: "single",
32400
+ optional: false
32401
+ }],
32402
+ "petFeeder.feed": [{
32403
+ name: "deviceId",
32404
+ form: "single",
32405
+ optional: false
32406
+ }],
32407
+ "petFeeder.markFoodReplenished": [{
32408
+ name: "deviceId",
32409
+ form: "single",
32410
+ optional: false
32411
+ }],
32412
+ "petFeeder.playSound": [{
32413
+ name: "deviceId",
32414
+ form: "single",
32415
+ optional: false
32416
+ }],
32417
+ "petFeeder.resetDesiccant": [{
32418
+ name: "deviceId",
32419
+ form: "single",
32420
+ optional: false
32421
+ }],
32422
+ "petFeeder.setChildLock": [{
32423
+ name: "deviceId",
32424
+ form: "single",
32425
+ optional: false
32426
+ }],
32427
+ "petFeeder.setFeedSound": [{
32428
+ name: "deviceId",
32429
+ form: "single",
32430
+ optional: false
32431
+ }],
32432
+ "petFeeder.setIndicatorLight": [{
32433
+ name: "deviceId",
32434
+ form: "single",
32435
+ optional: false
32436
+ }],
32437
+ "petFeeder.setVolume": [{
32438
+ name: "deviceId",
32439
+ form: "single",
32440
+ optional: false
32441
+ }],
32442
+ "pipelineAnalytics.clearTracks": [{
32443
+ name: "deviceId",
32444
+ form: "single",
32445
+ optional: false
32446
+ }],
32447
+ "pipelineAnalytics.completeRetrainTrack": [{
32448
+ name: "deviceId",
32449
+ form: "single",
32450
+ optional: false
32451
+ }],
32452
+ "pipelineAnalytics.deleteDeviceEvents": [{
32453
+ name: "deviceId",
32454
+ form: "single",
32455
+ optional: false
32456
+ }],
32457
+ "pipelineAnalytics.deleteTracks": [{
32458
+ name: "deviceId",
32459
+ form: "single",
32460
+ optional: false
32461
+ }],
32462
+ "pipelineAnalytics.deselectRetrainFrame": [{
32463
+ name: "deviceId",
32464
+ form: "single",
32465
+ optional: false
32466
+ }],
32467
+ "pipelineAnalytics.getActiveTracks": [{
32468
+ name: "deviceId",
32469
+ form: "single",
32470
+ optional: false
32471
+ }],
32472
+ "pipelineAnalytics.getAudioEvents": [{
32473
+ name: "deviceId",
32474
+ form: "single",
32475
+ optional: false
32476
+ }],
32477
+ "pipelineAnalytics.getEventDensity": [{
32478
+ name: "deviceId",
32479
+ form: "single",
32480
+ optional: false
32481
+ }],
32482
+ "pipelineAnalytics.getEventMedia": [{
32483
+ name: "deviceId",
32484
+ form: "single",
32485
+ optional: false
32486
+ }],
32487
+ "pipelineAnalytics.getKeyEvents": [{
32488
+ name: "deviceId",
32489
+ form: "single",
32490
+ optional: false
32491
+ }],
32492
+ "pipelineAnalytics.getMotionEvents": [{
32493
+ name: "deviceId",
32494
+ form: "single",
32495
+ optional: false
32496
+ }],
32497
+ "pipelineAnalytics.getObjectEvents": [{
32498
+ name: "deviceId",
32499
+ form: "single",
32500
+ optional: false
32501
+ }],
32502
+ "pipelineAnalytics.getRetrainExportUrl": [{
32503
+ name: "deviceIds",
32504
+ form: "array",
32505
+ optional: true
32506
+ }],
32507
+ "pipelineAnalytics.getSensorEvents": [{
32508
+ name: "deviceId",
32509
+ form: "single",
32510
+ optional: false
32511
+ }],
32512
+ "pipelineAnalytics.getTrack": [{
32513
+ name: "deviceId",
32514
+ form: "single",
32515
+ optional: false
32516
+ }],
32517
+ "pipelineAnalytics.getTrackMedia": [{
32518
+ name: "deviceId",
32519
+ form: "single",
32520
+ optional: false
32521
+ }],
32522
+ "pipelineAnalytics.getTrainingExportSummary": [{
32523
+ name: "deviceIds",
32524
+ form: "array",
32525
+ optional: true
32526
+ }],
32527
+ "pipelineAnalytics.getTrainingExportUrl": [{
32528
+ name: "deviceIds",
32529
+ form: "array",
32530
+ optional: true
32531
+ }],
32532
+ "pipelineAnalytics.listEventKinds": [{
32533
+ name: "deviceId",
32534
+ form: "single",
32535
+ optional: false
32536
+ }],
32537
+ "pipelineAnalytics.listEventKindsBatch": [{
32538
+ name: "deviceIds",
32539
+ form: "array",
32540
+ optional: false
32541
+ }],
32542
+ "pipelineAnalytics.listOpsLog": [{
32543
+ name: "deviceId",
32544
+ form: "single",
32545
+ optional: true
32546
+ }],
32547
+ "pipelineAnalytics.listRecentTracks": [{
32548
+ name: "deviceIds",
32549
+ form: "array",
32550
+ optional: false
32551
+ }],
32552
+ "pipelineAnalytics.listRetrainStaging": [{
32553
+ name: "deviceIds",
32554
+ form: "array",
32555
+ optional: true
32556
+ }],
32557
+ "pipelineAnalytics.listTrackMedia": [{
32558
+ name: "deviceId",
32559
+ form: "single",
32560
+ optional: false
32561
+ }],
32562
+ "pipelineAnalytics.listTracks": [{
32563
+ name: "deviceId",
32564
+ form: "single",
32565
+ optional: false
32566
+ }],
32567
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32568
+ name: "deviceId",
32569
+ form: "single",
32570
+ optional: false
32571
+ }],
32572
+ "pipelineAnalytics.pruneEventsBefore": [{
32573
+ name: "deviceId",
32574
+ form: "single",
32575
+ optional: false
32576
+ }],
32577
+ "pipelineAnalytics.pruneTracksBefore": [{
32578
+ name: "deviceId",
32579
+ form: "single",
32580
+ optional: false
32581
+ }],
32582
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32583
+ name: "deviceId",
32584
+ form: "single",
32585
+ optional: true
32586
+ }],
32587
+ "pipelineAnalytics.restageRetrainTrack": [{
32588
+ name: "deviceId",
32589
+ form: "single",
32590
+ optional: false
32591
+ }],
32592
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32593
+ name: "deviceId",
32594
+ form: "single",
32595
+ optional: false
32596
+ }],
32597
+ "pipelineAnalytics.searchObjectEvents": [{
32598
+ name: "deviceId",
32599
+ form: "single",
32600
+ optional: true
32601
+ }],
32602
+ "pipelineAnalytics.selectRetrainFrames": [{
32603
+ name: "deviceId",
32604
+ form: "single",
32605
+ optional: false
32606
+ }],
32607
+ "pipelineAnalytics.setTrackFlags": [{
32608
+ name: "deviceId",
32609
+ form: "single",
32610
+ optional: false
32611
+ }],
32612
+ "pipelineAnalytics.wipeAllAnalytics": [{
32613
+ name: "deviceId",
32614
+ form: "single",
32615
+ optional: false
32616
+ }],
32617
+ "pipelineExecutor.runPipeline": [{
32618
+ name: "deviceId",
32619
+ form: "single",
32620
+ optional: true
32621
+ }],
32622
+ "pipelineExecutor.runPipelineBatch": [{
32623
+ name: "deviceId",
32624
+ form: "single",
32625
+ optional: true
32626
+ }],
32627
+ "pipelineOrchestrator.assignAudio": [{
32628
+ name: "deviceId",
32629
+ form: "single",
32630
+ optional: false
32631
+ }],
32632
+ "pipelineOrchestrator.assignPipeline": [{
32633
+ name: "deviceId",
32634
+ form: "single",
32635
+ optional: false
32636
+ }],
32637
+ "pipelineOrchestrator.getAudioAssignment": [{
32638
+ name: "deviceId",
32639
+ form: "single",
32640
+ optional: false
32641
+ }],
32642
+ "pipelineOrchestrator.getCameraMetrics": [{
32643
+ name: "deviceId",
32644
+ form: "single",
32645
+ optional: false
32646
+ }],
32647
+ "pipelineOrchestrator.getCameraSettings": [{
32648
+ name: "deviceId",
32649
+ form: "single",
32650
+ optional: false
32651
+ }],
32652
+ "pipelineOrchestrator.getCameraStatus": [{
32653
+ name: "deviceId",
32654
+ form: "single",
32655
+ optional: false
32656
+ }],
32657
+ "pipelineOrchestrator.getCameraStatuses": [{
32658
+ name: "deviceIds",
32659
+ form: "array",
32660
+ optional: true
32661
+ }],
32662
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32663
+ name: "deviceId",
32664
+ form: "single",
32665
+ optional: false
32666
+ }],
32667
+ "pipelineOrchestrator.getCameraSwitches": [{
32668
+ name: "deviceId",
32669
+ form: "single",
32670
+ optional: false
32671
+ }],
32672
+ "pipelineOrchestrator.getPipelineAssignment": [{
32673
+ name: "deviceId",
32674
+ form: "single",
32675
+ optional: false
32676
+ }],
32677
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32678
+ name: "deviceId",
32679
+ form: "single",
32680
+ optional: false
32681
+ }],
32682
+ "pipelineOrchestrator.resolvePipeline": [{
32683
+ name: "deviceId",
32684
+ form: "single",
32685
+ optional: false
32686
+ }],
32687
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32688
+ name: "deviceId",
32689
+ form: "single",
32690
+ optional: false
32691
+ }],
32692
+ "pipelineOrchestrator.setCameraStepOverride": [{
32693
+ name: "deviceId",
32694
+ form: "single",
32695
+ optional: false
32696
+ }],
32697
+ "pipelineOrchestrator.setCameraStepToggle": [{
32698
+ name: "deviceId",
32699
+ form: "single",
32700
+ optional: false
32701
+ }],
32702
+ "pipelineOrchestrator.setCameraSwitch": [{
32703
+ name: "deviceId",
32704
+ form: "single",
32705
+ optional: false
32706
+ }],
32707
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32708
+ name: "deviceId",
32709
+ form: "single",
32710
+ optional: false
32711
+ }],
32712
+ "pipelineOrchestrator.unassignAudio": [{
32713
+ name: "deviceId",
32714
+ form: "single",
32715
+ optional: false
32716
+ }],
32717
+ "pipelineOrchestrator.unassignPipeline": [{
32718
+ name: "deviceId",
32719
+ form: "single",
32720
+ optional: false
32721
+ }],
32722
+ "pipelineRunner.attachCamera": [{
32723
+ name: "deviceId",
32724
+ form: "single",
32725
+ optional: false
32726
+ }],
32727
+ "pipelineRunner.detachCamera": [{
32728
+ name: "deviceId",
32729
+ form: "single",
32730
+ optional: false
32731
+ }],
32732
+ "pipelineRunner.getCameraMetrics": [{
32733
+ name: "deviceId",
32734
+ form: "single",
32735
+ optional: false
32736
+ }],
32737
+ "pipelineRunner.reportMotion": [{
32738
+ name: "deviceId",
32739
+ form: "single",
32740
+ optional: false
32741
+ }],
32742
+ "pipelineRunner.runDetailSubtree": [{
32743
+ name: "deviceId",
32744
+ form: "single",
32745
+ optional: false
32746
+ }],
32747
+ "pipelineRunner.runStatelessStep": [{
32748
+ name: "sourceDeviceId",
32749
+ form: "single",
32750
+ optional: false
32751
+ }],
32752
+ "plateGallery.getPlateByTrack": [{
32753
+ name: "deviceId",
32754
+ form: "single",
32755
+ optional: false
32756
+ }],
32757
+ "plateGallery.listPlates": [{
32758
+ name: "deviceId",
32759
+ form: "single",
32760
+ optional: true
32761
+ }],
32762
+ "privacyMask.getOptions": [{
32763
+ name: "deviceId",
32764
+ form: "single",
32765
+ optional: false
32766
+ }],
32767
+ "privacyMask.setAudioEnabled": [{
32768
+ name: "deviceId",
32769
+ form: "single",
32770
+ optional: false
32771
+ }],
32772
+ "privacyMask.setMask": [{
32773
+ name: "deviceId",
32774
+ form: "single",
32775
+ optional: false
32776
+ }],
32777
+ "ptz.continuousMove": [{
32778
+ name: "deviceId",
32779
+ form: "single",
32780
+ optional: false
32781
+ }],
32782
+ "ptz.deletePreset": [{
32783
+ name: "deviceId",
32784
+ form: "single",
32785
+ optional: false
32786
+ }],
32787
+ "ptz.getOptions": [{
32788
+ name: "deviceId",
32789
+ form: "single",
32790
+ optional: false
32791
+ }],
32792
+ "ptz.getPosition": [{
32793
+ name: "deviceId",
32794
+ form: "single",
32795
+ optional: false
32796
+ }],
32797
+ "ptz.getPresets": [{
32798
+ name: "deviceId",
32799
+ form: "single",
32800
+ optional: false
32801
+ }],
32802
+ "ptz.goHome": [{
32803
+ name: "deviceId",
32804
+ form: "single",
32805
+ optional: false
32806
+ }],
32807
+ "ptz.goToPreset": [{
32808
+ name: "deviceId",
32809
+ form: "single",
32810
+ optional: false
32811
+ }],
32812
+ "ptz.move": [{
32813
+ name: "deviceId",
32814
+ form: "single",
32815
+ optional: false
32816
+ }],
32817
+ "ptz.savePreset": [{
32818
+ name: "deviceId",
32819
+ form: "single",
32820
+ optional: false
32821
+ }],
32822
+ "ptz.setAutofocus": [{
32823
+ name: "deviceId",
32824
+ form: "single",
32825
+ optional: false
32826
+ }],
32827
+ "ptz.stop": [{
32828
+ name: "deviceId",
32829
+ form: "single",
32830
+ optional: false
32831
+ }],
32832
+ "ptzAutotrack.getSettings": [{
32833
+ name: "deviceId",
32834
+ form: "single",
32835
+ optional: false
32836
+ }],
32837
+ "ptzAutotrack.getStatus": [{
32838
+ name: "deviceId",
32839
+ form: "single",
32840
+ optional: false
32841
+ }],
32842
+ "ptzAutotrack.setEnabled": [{
32843
+ name: "deviceId",
32844
+ form: "single",
32845
+ optional: false
32846
+ }],
32847
+ "ptzAutotrack.setSettings": [{
32848
+ name: "deviceId",
32849
+ form: "single",
32850
+ optional: false
32851
+ }],
32852
+ "reboot.reboot": [{
32853
+ name: "deviceId",
32854
+ form: "single",
32855
+ optional: false
32856
+ }],
32857
+ "recording.deleteFootprint": [{
32858
+ name: "deviceId",
32859
+ form: "single",
32860
+ optional: false
32861
+ }],
32862
+ "recording.getAvailability": [{
32863
+ name: "deviceId",
32864
+ form: "single",
32865
+ optional: false
32866
+ }],
32867
+ "recording.getDaysWithRecordings": [{
32868
+ name: "deviceId",
32869
+ form: "single",
32870
+ optional: false
32871
+ }],
32872
+ "recording.getDeviceConfig": [{
32873
+ name: "deviceId",
32874
+ form: "single",
32875
+ optional: false
32876
+ }],
32877
+ "recording.getPlaybackManifest": [{
32878
+ name: "deviceId",
32879
+ form: "single",
32880
+ optional: false
32881
+ }],
32882
+ "recording.listOpsLog": [{
32883
+ name: "deviceId",
32884
+ form: "single",
32885
+ optional: true
32886
+ }],
32887
+ "recording.locateSegment": [{
32888
+ name: "deviceId",
32889
+ form: "single",
32890
+ optional: false
32891
+ }],
32892
+ "recording.pruneFootage": [{
32893
+ name: "deviceId",
32894
+ form: "single",
32895
+ optional: false
32896
+ }],
32897
+ "recording.readGopBytes": [{
32898
+ name: "deviceId",
32899
+ form: "single",
32900
+ optional: false
32901
+ }],
32902
+ "recording.readSegmentBytes": [{
32903
+ name: "deviceId",
32904
+ form: "single",
32905
+ optional: false
32906
+ }],
32907
+ "recording.relocateFootage": [{
32908
+ name: "deviceId",
32909
+ form: "single",
32910
+ optional: true
32911
+ }],
32912
+ "recording.renderClip": [{
32913
+ name: "deviceId",
32914
+ form: "single",
32915
+ optional: false
32916
+ }],
32917
+ "recording.renderGif": [{
32918
+ name: "deviceId",
32919
+ form: "single",
32920
+ optional: false
32921
+ }],
32922
+ "recording.rescanStorage": [{
32923
+ name: "deviceId",
32924
+ form: "single",
32925
+ optional: false
32926
+ }],
32927
+ "recording.setDeviceConfig": [{
32928
+ name: "deviceId",
32929
+ form: "single",
32930
+ optional: false
32931
+ }],
32932
+ "recording.startStorageMigrationMove": [{
32933
+ name: "deviceId",
32934
+ form: "single",
32935
+ optional: true
32936
+ }],
32937
+ "recordingExport.createExport": [{
32938
+ name: "deviceId",
32939
+ form: "single",
32940
+ optional: false
32941
+ }],
32942
+ "recordingExport.listExports": [{
32943
+ name: "deviceId",
32944
+ form: "single",
32945
+ optional: true
32946
+ }],
32947
+ "sceneMonitor.captureReference": [{
32948
+ name: "deviceId",
32949
+ form: "single",
32950
+ optional: false
32951
+ }],
32952
+ "sceneMonitor.createScene": [{
32953
+ name: "deviceId",
32954
+ form: "single",
32955
+ optional: false
32956
+ }],
32957
+ "sceneMonitor.deleteReference": [{
32958
+ name: "deviceId",
32959
+ form: "single",
32960
+ optional: false
32961
+ }],
32962
+ "sceneMonitor.deleteScene": [{
32963
+ name: "deviceId",
32964
+ form: "single",
32965
+ optional: false
32966
+ }],
32967
+ "sceneMonitor.listScenes": [{
32968
+ name: "deviceId",
32969
+ form: "single",
32970
+ optional: false
32971
+ }],
32972
+ "sceneMonitor.recheckNow": [{
32973
+ name: "deviceId",
32974
+ form: "single",
32975
+ optional: false
32976
+ }],
32977
+ "sceneMonitor.resetScene": [{
32978
+ name: "deviceId",
32979
+ form: "single",
32980
+ optional: false
32981
+ }],
32982
+ "sceneMonitor.updateScene": [{
32983
+ name: "deviceId",
32984
+ form: "single",
32985
+ optional: false
32986
+ }],
32987
+ "scriptRunner.run": [{
32988
+ name: "deviceId",
32989
+ form: "single",
32990
+ optional: false
32991
+ }],
32992
+ "scriptRunner.stop": [{
32993
+ name: "deviceId",
32994
+ form: "single",
32995
+ optional: false
32996
+ }],
32997
+ "snapshot.getDebugState": [{
32998
+ name: "deviceId",
32999
+ form: "single",
33000
+ optional: false
33001
+ }],
33002
+ "snapshot.getSnapshot": [{
33003
+ name: "deviceId",
33004
+ form: "single",
33005
+ optional: false
33006
+ }],
33007
+ "snapshot.getSnapshotLinks": [{
33008
+ name: "targets",
33009
+ form: "object-array",
33010
+ optional: false,
33011
+ itemField: "deviceId"
33012
+ }],
33013
+ "snapshot.getSnapshotOverview": [{
33014
+ name: "deviceIds",
33015
+ form: "array",
33016
+ optional: false
33017
+ }],
33018
+ "snapshot.invalidateCache": [{
33019
+ name: "deviceId",
33020
+ form: "single",
33021
+ optional: false
33022
+ }],
33023
+ "streamBroker.acquireEgressTranscode": [{
33024
+ name: "deviceId",
33025
+ form: "single",
33026
+ optional: false
33027
+ }],
33028
+ "streamBroker.assignProfile": [{
33029
+ name: "deviceId",
33030
+ form: "single",
33031
+ optional: false
33032
+ }],
33033
+ "streamBroker.getDeviceAudioMute": [{
33034
+ name: "deviceId",
33035
+ form: "single",
33036
+ optional: false
33037
+ }],
33038
+ "streamBroker.getStreamWithCodec": [{
33039
+ name: "deviceId",
33040
+ form: "single",
33041
+ optional: false
33042
+ }],
33043
+ "streamBroker.produceEventMedia": [{
33044
+ name: "deviceId",
33045
+ form: "single",
33046
+ optional: false
33047
+ }],
33048
+ "streamBroker.publishCameraStream": [{
33049
+ name: "deviceId",
33050
+ form: "single",
33051
+ optional: false
33052
+ }],
33053
+ "streamBroker.renderPreBufferClip": [{
33054
+ name: "deviceId",
33055
+ form: "single",
33056
+ optional: false
33057
+ }],
33058
+ "streamBroker.restartProfile": [{
33059
+ name: "deviceId",
33060
+ form: "single",
33061
+ optional: false
33062
+ }],
33063
+ "streamBroker.retractCameraStream": [{
33064
+ name: "deviceId",
33065
+ form: "single",
33066
+ optional: false
33067
+ }],
33068
+ "streamBroker.setDeviceAudioMute": [{
33069
+ name: "deviceId",
33070
+ form: "single",
33071
+ optional: false
33072
+ }],
33073
+ "streamBroker.unassignProfile": [{
33074
+ name: "deviceId",
33075
+ form: "single",
33076
+ optional: false
33077
+ }],
33078
+ "streamCatalog.getCatalog": [{
33079
+ name: "deviceId",
33080
+ form: "single",
33081
+ optional: false
33082
+ }],
33083
+ "streamParams.getConfigSchema": [{
33084
+ name: "deviceId",
33085
+ form: "single",
33086
+ optional: false
33087
+ }],
33088
+ "streamParams.getOptions": [{
33089
+ name: "deviceId",
33090
+ form: "single",
33091
+ optional: false
33092
+ }],
33093
+ "streamParams.setProfile": [{
33094
+ name: "deviceId",
33095
+ form: "single",
33096
+ optional: false
33097
+ }],
33098
+ "switch.setState": [{
33099
+ name: "deviceId",
33100
+ form: "single",
33101
+ optional: false
33102
+ }],
33103
+ "vacuumControl.locate": [{
33104
+ name: "deviceId",
33105
+ form: "single",
33106
+ optional: false
33107
+ }],
33108
+ "vacuumControl.pause": [{
33109
+ name: "deviceId",
33110
+ form: "single",
33111
+ optional: false
33112
+ }],
33113
+ "vacuumControl.returnToBase": [{
33114
+ name: "deviceId",
33115
+ form: "single",
33116
+ optional: false
33117
+ }],
33118
+ "vacuumControl.setFanSpeed": [{
33119
+ name: "deviceId",
33120
+ form: "single",
33121
+ optional: false
33122
+ }],
33123
+ "vacuumControl.start": [{
33124
+ name: "deviceId",
33125
+ form: "single",
33126
+ optional: false
33127
+ }],
33128
+ "vacuumControl.stop": [{
33129
+ name: "deviceId",
33130
+ form: "single",
33131
+ optional: false
33132
+ }],
33133
+ "valve.close": [{
33134
+ name: "deviceId",
33135
+ form: "single",
33136
+ optional: false
33137
+ }],
33138
+ "valve.open": [{
33139
+ name: "deviceId",
33140
+ form: "single",
33141
+ optional: false
33142
+ }],
33143
+ "valve.setPosition": [{
33144
+ name: "deviceId",
33145
+ form: "single",
33146
+ optional: false
33147
+ }],
33148
+ "valve.stop": [{
33149
+ name: "deviceId",
33150
+ form: "single",
33151
+ optional: false
33152
+ }],
33153
+ "videoclips.getClipPlayback": [{
33154
+ name: "deviceId",
33155
+ form: "single",
33156
+ optional: false
33157
+ }],
33158
+ "videoclips.listClips": [{
33159
+ name: "deviceId",
33160
+ form: "single",
33161
+ optional: false
33162
+ }],
33163
+ "waterHeater.setAway": [{
33164
+ name: "deviceId",
33165
+ form: "single",
33166
+ optional: false
33167
+ }],
33168
+ "waterHeater.setOperationMode": [{
33169
+ name: "deviceId",
33170
+ form: "single",
33171
+ optional: false
33172
+ }],
33173
+ "waterHeater.setTargetTemp": [{
33174
+ name: "deviceId",
33175
+ form: "single",
33176
+ optional: false
33177
+ }],
33178
+ "webrtcSession.addIceCandidate": [{
33179
+ name: "deviceId",
33180
+ form: "single",
33181
+ optional: false
33182
+ }],
33183
+ "webrtcSession.closeSession": [{
33184
+ name: "deviceId",
33185
+ form: "single",
33186
+ optional: false
33187
+ }],
33188
+ "webrtcSession.createSession": [{
33189
+ name: "deviceId",
33190
+ form: "single",
33191
+ optional: false
33192
+ }],
33193
+ "webrtcSession.getIceCandidates": [{
33194
+ name: "deviceId",
33195
+ form: "single",
33196
+ optional: false
33197
+ }],
33198
+ "webrtcSession.getSessionState": [{
33199
+ name: "deviceId",
33200
+ form: "single",
33201
+ optional: false
33202
+ }],
33203
+ "webrtcSession.handleAnswer": [{
33204
+ name: "deviceId",
33205
+ form: "single",
33206
+ optional: false
33207
+ }],
33208
+ "webrtcSession.handleOffer": [{
33209
+ name: "deviceId",
33210
+ form: "single",
33211
+ optional: false
33212
+ }],
33213
+ "webrtcSession.hasAdaptiveBitrate": [{
33214
+ name: "deviceId",
33215
+ form: "single",
33216
+ optional: false
33217
+ }],
33218
+ "webrtcSession.listStreams": [{
33219
+ name: "deviceId",
33220
+ form: "single",
33221
+ optional: false
33222
+ }],
33223
+ "zoneAnalytics.getCameraHistory": [{
33224
+ name: "deviceId",
33225
+ form: "single",
33226
+ optional: false
33227
+ }],
33228
+ "zoneAnalytics.getCurrentSnapshot": [{
33229
+ name: "deviceId",
33230
+ form: "single",
33231
+ optional: false
33232
+ }],
33233
+ "zoneAnalytics.getUnzonedHistory": [{
33234
+ name: "deviceId",
33235
+ form: "single",
33236
+ optional: false
33237
+ }],
33238
+ "zoneAnalytics.getZoneHistory": [{
33239
+ name: "deviceId",
33240
+ form: "single",
33241
+ optional: false
33242
+ }],
33243
+ "zoneRules.listRules": [{
33244
+ name: "deviceId",
33245
+ form: "single",
33246
+ optional: false
33247
+ }],
33248
+ "zoneRules.setRules": [{
33249
+ name: "deviceId",
33250
+ form: "single",
33251
+ optional: false
33252
+ }],
33253
+ "zones.addZone": [{
33254
+ name: "deviceId",
33255
+ form: "single",
33256
+ optional: false
33257
+ }],
33258
+ "zones.listZones": [{
33259
+ name: "deviceId",
33260
+ form: "single",
33261
+ optional: false
33262
+ }],
33263
+ "zones.removeZone": [{
33264
+ name: "deviceId",
33265
+ form: "single",
33266
+ optional: false
33267
+ }],
33268
+ "zones.updateZone": [{
33269
+ name: "deviceId",
33270
+ form: "single",
33271
+ optional: false
33272
+ }]
33273
+ });
30669
33274
  Object.freeze({
30670
33275
  "broker": "broker",
30671
33276
  "device-export": "device-export",