@camstack/addon-notifiers 1.2.21 → 1.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +2690 -85
  2. package/dist/addon.mjs +2690 -85
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -2,7 +2,7 @@ import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
2
2
  import { readFileSync } from "node:fs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
- //#region ../types/dist/event-category-Cv9dO26A.mjs
5
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -209,6 +209,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
209
209
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
210
210
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
211
211
  /**
212
+ * A node the orchestrator would otherwise place cameras on has NO usable
213
+ * inference device: the operator enabled one or more accelerators there and
214
+ * the live probe reports every one of them unavailable. Emitted once per
215
+ * TRANSITION into that state (never per dispatch), and the node is dropped
216
+ * from the placement candidate set for as long as it holds.
217
+ *
218
+ * This exists because the state was previously invisible: little-unraid
219
+ * absorbed 283k inference errors in a day while still being handed cameras,
220
+ * and nothing in the system said so.
221
+ *
222
+ * A node with no accelerators configured at all is NOT this — its devices
223
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
224
+ * serves it exactly as before.
225
+ */
226
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
227
+ /**
228
+ * A camera has an OPEN detection session and has produced no detection at
229
+ * all for longer than the blind threshold — the camera is being decoded and
230
+ * inferred and is returning nothing. Emitted once per transition into blind,
231
+ * per camera.
232
+ *
233
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
234
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
235
+ * camera" produce byte-identical silence.
236
+ */
237
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
238
+ /**
212
239
  * Per-camera pipeline config was mutated by the orchestrator
213
240
  * (3-level settings change via `setAgentAddonDefaults` /
214
241
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3000,6 +3027,9 @@ function handlePipeResult(left, next, ctx) {
3000
3027
  fallback: left.fallback
3001
3028
  }, ctx);
3002
3029
  }
3030
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3031
+ $ZodPipe.init(inst, def);
3032
+ });
3003
3033
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3004
3034
  $ZodType.init(inst, def);
3005
3035
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5185,6 +5215,10 @@ function pipe(in_, out) {
5185
5215
  out
5186
5216
  });
5187
5217
  }
5218
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5219
+ ZodPipe.init(inst, def);
5220
+ $ZodPreprocess.init(inst, def);
5221
+ });
5188
5222
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5189
5223
  $ZodReadonly.init(inst, def);
5190
5224
  ZodType.init(inst, def);
@@ -5243,6 +5277,13 @@ function _instanceof(cls, params = {}) {
5243
5277
  };
5244
5278
  return inst;
5245
5279
  }
5280
+ function preprocess(fn, schema) {
5281
+ return new ZodPreprocess({
5282
+ type: "pipe",
5283
+ in: transform(fn),
5284
+ out: schema
5285
+ });
5286
+ }
5246
5287
  //#endregion
5247
5288
  //#region ../../node_modules/zod/v4/classic/compat.js
5248
5289
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10921,6 +10962,8 @@ var QueryFilterSchema = object({
10921
10962
  where: record(string(), unknown()).optional(),
10922
10963
  whereIn: record(string(), array(unknown())).optional(),
10923
10964
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10965
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10966
+ whereNot: record(string(), unknown()).optional(),
10924
10967
  orderBy: object({
10925
10968
  field: string(),
10926
10969
  direction: _enum(["asc", "desc"])
@@ -10940,7 +10983,8 @@ var QueryFilterSchema = object({
10940
10983
  var MutationFilterSchema = object({
10941
10984
  where: record(string(), unknown()).optional(),
10942
10985
  whereIn: record(string(), array(unknown())).optional(),
10943
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10986
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10987
+ whereNot: record(string(), unknown()).optional()
10944
10988
  });
10945
10989
  /** A single stored record: `{ id, data }`. */
10946
10990
  var SettingsRecordSchema = object({
@@ -12297,6 +12341,17 @@ var LlmImageSchema = object({
12297
12341
  bytes: _instanceof(Uint8Array),
12298
12342
  mimeType: string()
12299
12343
  });
12344
+ /**
12345
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12346
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12347
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12348
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12349
+ */
12350
+ var LlmRetryPolicySchema = object({
12351
+ enabled: boolean().default(false),
12352
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12353
+ maxAttempts: number().int().min(1).max(5).default(1)
12354
+ });
12300
12355
  var LlmGenerateBaseInputSchema = object({
12301
12356
  /** Collection routing (the notification-output posture). */
12302
12357
  addonId: string().optional(),
@@ -12311,7 +12366,28 @@ var LlmGenerateBaseInputSchema = object({
12311
12366
  jsonSchema: record(string(), unknown()).optional(),
12312
12367
  /** Per-call override of the profile default. */
12313
12368
  maxTokens: number().int().positive().optional(),
12314
- temperature: number().optional()
12369
+ temperature: number().optional(),
12370
+ /** Per-call override of the profile default (nucleus sampling). */
12371
+ topP: number().min(0).max(1).optional(),
12372
+ /** Per-call override of the profile default (top-k sampling). */
12373
+ topK: number().int().positive().optional(),
12374
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12375
+ timeoutMs: number().int().positive().optional(),
12376
+ /** Per-call override; beats both the consumer table and the profile. */
12377
+ retry: LlmRetryPolicySchema.optional(),
12378
+ /**
12379
+ * Caller-minted id that makes this generation CANCELLABLE.
12380
+ *
12381
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12382
+ * the call against 8 s and free their own slot when the timer wins, while the
12383
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12384
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12385
+ * not generations, and the real load is unbounded.
12386
+ *
12387
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12388
+ * `llm.cancel({ requestId })` tears the socket down.
12389
+ */
12390
+ requestId: string().optional()
12315
12391
  });
12316
12392
  /**
12317
12393
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12324,6 +12400,18 @@ var LlmGenerateBaseInputSchema = object({
12324
12400
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12325
12401
  * watchdog — operator decision #3).
12326
12402
  */
12403
+ /**
12404
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12405
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12406
+ * REF rather than looked up at install time, so what the operator approved in
12407
+ * the preview is exactly what the node downloads.
12408
+ */
12409
+ var ManagedModelExtraFileSchema = object({
12410
+ url: string(),
12411
+ filename: string(),
12412
+ sizeBytes: number(),
12413
+ sha256: string().optional()
12414
+ });
12327
12415
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12328
12416
  object({
12329
12417
  kind: literal("catalog"),
@@ -12332,7 +12420,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12332
12420
  object({
12333
12421
  kind: literal("url"),
12334
12422
  url: string(),
12335
- sha256: string().optional()
12423
+ sha256: string().optional(),
12424
+ /** Picker/status label; the file basename when absent. */
12425
+ label: string().optional(),
12426
+ sizeBytes: number().optional(),
12427
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12336
12428
  }),
12337
12429
  object({
12338
12430
  kind: literal("path"),
@@ -12350,13 +12442,82 @@ var ManagedRuntimeConfigSchema = object({
12350
12442
  gpuLayers: number().int().default(0),
12351
12443
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12352
12444
  threads: number().int().optional(),
12353
- /** Concurrent slots. */
12445
+ /** Concurrent slots (`--parallel`). */
12354
12446
  parallel: number().int().default(1),
12447
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12448
+ batchSize: number().int().positive().optional(),
12449
+ /** Physical batch / micro-batch (`-ub`). */
12450
+ ubatchSize: number().int().positive().optional(),
12451
+ /**
12452
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12453
+ * is a no-op elsewhere, so it is offered rather than assumed.
12454
+ */
12455
+ flashAttention: boolean().default(false),
12456
+ /**
12457
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12458
+ * inference. Costs the full model size in resident memory — which is exactly
12459
+ * what the RAM budget is counting.
12460
+ */
12461
+ mlock: boolean().default(false),
12462
+ /**
12463
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12464
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12465
+ * store produces on every first token.
12466
+ */
12467
+ noMmap: boolean().default(false),
12468
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12469
+ * cheapest way to fit a longer context in the same RAM. */
12470
+ cacheTypeK: _enum([
12471
+ "f32",
12472
+ "f16",
12473
+ "q8_0",
12474
+ "q5_1",
12475
+ "q5_0",
12476
+ "q4_1",
12477
+ "q4_0"
12478
+ ]).optional(),
12479
+ cacheTypeV: _enum([
12480
+ "f32",
12481
+ "f16",
12482
+ "q8_0",
12483
+ "q5_1",
12484
+ "q5_0",
12485
+ "q4_1",
12486
+ "q4_0"
12487
+ ]).optional(),
12488
+ /**
12489
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12490
+ * (which most vision chat templates need and some language-only models
12491
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12492
+ *
12493
+ * It is NOT a second place to set the flags above. A token that collides
12494
+ * with a typed field is REJECTED at start, naming the field that owns it
12495
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12496
+ * the "two switches that disagree" failure this repo has already shipped
12497
+ * twice (D62).
12498
+ */
12499
+ extraArgs: array(string()).default([]),
12355
12500
  /** Else lazy: first generate boots it. */
12356
12501
  autoStart: boolean().default(false),
12357
12502
  /** 0 = never; frees RAM after quiet periods. */
12358
12503
  idleStopMinutes: number().int().default(30)
12359
12504
  });
12505
+ /**
12506
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12507
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12508
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12509
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12510
+ */
12511
+ var LlmDownloadProgressSchema = object({
12512
+ phase: _enum(["downloading", "verifying"]),
12513
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12514
+ file: string(),
12515
+ fileIndex: number().int(),
12516
+ fileCount: number().int(),
12517
+ /** Across the WHOLE install, not the current file. */
12518
+ downloadedBytes: number(),
12519
+ totalBytes: number().optional()
12520
+ });
12360
12521
  var LlmRuntimeStatusSchema = object({
12361
12522
  /** Status is ALWAYS node-qualified. */
12362
12523
  nodeId: string(),
@@ -12373,6 +12534,8 @@ var LlmRuntimeStatusSchema = object({
12373
12534
  modelPath: string().optional(),
12374
12535
  modelId: string().optional(),
12375
12536
  downloadProgress: number().min(0).max(1).optional(),
12537
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12538
+ download: LlmDownloadProgressSchema.optional(),
12376
12539
  lastError: string().optional(),
12377
12540
  crashesInWindow: number(),
12378
12541
  /** Child RSS (sampled best-effort). */
@@ -12383,7 +12546,14 @@ var LlmNodeModelSchema = object({
12383
12546
  file: string(),
12384
12547
  sizeBytes: number(),
12385
12548
  catalogId: string().optional(),
12386
- installedAt: number().optional()
12549
+ installedAt: number().optional(),
12550
+ /**
12551
+ * Absolute path on the node. Present so a file that is on disk but matches
12552
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12553
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12554
+ * it the picker could list such a file and do nothing with it.
12555
+ */
12556
+ path: string().optional()
12387
12557
  });
12388
12558
  var LlmRuntimeDiskUsageSchema = object({
12389
12559
  nodeId: string(),
@@ -12439,10 +12609,47 @@ var LlmProfileSchema = object({
12439
12609
  baseUrl: string().optional(),
12440
12610
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12441
12611
  apiKey: string().optional(),
12612
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12613
+ * degraded to text — that shipped once and produced a confident answer to a
12614
+ * question about a picture nobody sent. */
12442
12615
  supportsVision: boolean(),
12443
12616
  temperature: number().min(0).max(2).optional(),
12617
+ /** Nucleus sampling. Every wire we speak has it. */
12618
+ topP: number().min(0).max(1).optional(),
12619
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12620
+ * wire does, and the client drops it there (measured: the request body gets
12621
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12622
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12623
+ topK: number().int().positive().optional(),
12444
12624
  maxTokens: number().int().positive().optional(),
12625
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12626
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12627
+ * the model with, so it is the one field that changes a PROCESS. */
12628
+ contextLength: number().int().positive().optional(),
12629
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12630
+ * two system prompts fighting is worse than either alone). */
12631
+ systemPrompt: string().optional(),
12632
+ /** Total generation bound — the only one a unary call has. */
12445
12633
  timeoutMs: number().int().positive().default(6e4),
12634
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12635
+ * response headers: on the LM Studio / llama-server wire those are written
12636
+ * once the model has finished loading, so they belong to the bound below. */
12637
+ connectTimeoutMs: number().int().positive().default(1e4),
12638
+ /** Accepted, but no output yet — response headers included, because a cold
12639
+ * GPU load is exactly what happens before them. */
12640
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12641
+ /** Output started then stopped. */
12642
+ idleTimeoutMs: number().int().positive().default(6e4),
12643
+ /** Profile-level default. The per-consumer table and a per-call override
12644
+ * both beat it — see `resolveRetryPolicy`. */
12645
+ retry: LlmRetryPolicySchema.default({
12646
+ enabled: false,
12647
+ maxAttempts: 1
12648
+ }),
12649
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12650
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12651
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12652
+ toolsEnabled: boolean().default(false),
12446
12653
  extraHeaders: record(string(), string()).optional(),
12447
12654
  /** kind === 'managed-local' only (spec §4). */
12448
12655
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12492,6 +12699,36 @@ var ManagedModelCatalogEntrySchema = object({
12492
12699
  /** Vision models: companion projector file. */
12493
12700
  mmprojUrl: string().optional()
12494
12701
  });
12702
+ /**
12703
+ * The outcome of turning one operator-typed Hugging Face reference into a
12704
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12705
+ * I will not pick for you" is a normal answer the UI has to render, not an
12706
+ * exception.
12707
+ *
12708
+ * `candidates` is the whole reason the refusal is usable — every string in it
12709
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12710
+ */
12711
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12712
+ ok: literal(true),
12713
+ /** Ready to hand to `installModel` unchanged. */
12714
+ model: ManagedModelRefSchema,
12715
+ label: string(),
12716
+ repo: string(),
12717
+ quantization: string(),
12718
+ purpose: _enum(["text", "vision"]),
12719
+ totalBytes: number(),
12720
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12721
+ * see that 0.9 GB of it is a projector they did not name. */
12722
+ extraFilenames: array(string())
12723
+ }), object({
12724
+ ok: literal(false),
12725
+ code: string(),
12726
+ message: string(),
12727
+ candidates: array(string()).optional(),
12728
+ /** Set when the refusal was only the ceiling: re-calling with
12729
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12730
+ requiredBytes: number().optional()
12731
+ })]);
12495
12732
  var LlmRuntimeNodeSchema = object({
12496
12733
  nodeId: string(),
12497
12734
  reachable: boolean(),
@@ -12504,7 +12741,10 @@ var ProfileRefInputSchema = object({
12504
12741
  addonId: string(),
12505
12742
  profileId: string()
12506
12743
  });
12507
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12744
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12745
+ addonId: string().optional(),
12746
+ requestId: string()
12747
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12508
12748
  kind: "mutation",
12509
12749
  auth: "admin"
12510
12750
  }), method(ProfileRefInputSchema, _void(), {
@@ -12525,6 +12765,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12525
12765
  consumer: string().optional(),
12526
12766
  profileId: string().optional()
12527
12767
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12768
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12769
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12770
+ ref: string(),
12771
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12772
+ maxBytes: number().positive().optional()
12773
+ }), HfModelResolutionSchema, {
12774
+ kind: "mutation",
12775
+ auth: "admin"
12776
+ }), method(object({
12528
12777
  nodeId: string(),
12529
12778
  model: ManagedModelRefSchema
12530
12779
  }), _void(), {
@@ -14148,6 +14397,8 @@ var NcSystemEventKindSchema = _enum([
14148
14397
  "stream-offline",
14149
14398
  "node-online",
14150
14399
  "node-offline",
14400
+ "node-inference-unavailable",
14401
+ "detection-blind",
14151
14402
  "addon-update-available",
14152
14403
  "server-update-available",
14153
14404
  "alarm-triggered",
@@ -14209,7 +14460,16 @@ var NcScheduleSchema = object({
14209
14460
  });
14210
14461
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14211
14462
  var NcPlateMatcherSchema = object({
14212
- values: array(string().min(1)).min(1),
14463
+ /**
14464
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14465
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14466
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14467
+ * rather than merely seen. A subject carrying no plate still fails.
14468
+ *
14469
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14470
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14471
+ */
14472
+ values: array(string().min(1)),
14213
14473
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14214
14474
  maxDistance: number().int().min(0).max(3).default(1)
14215
14475
  });
@@ -14243,28 +14503,36 @@ var NcOccupancyConditionSchema = object({
14243
14503
  /**
14244
14504
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14245
14505
  *
14246
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14247
- * reference notifier uses, so an operator moving between them re-uses what
14248
- * they already know): a rule matches when, over a sampling window of
14249
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14250
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14251
- *
14252
- * - `dbThreshold` its level is at or above this many dBFS (see
14253
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14254
- * - `labels` the classifier put at least one of these labels on it.
14255
- *
14256
- * Both are OPTIONAL and independent, which is the point of the shape: a
14257
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14258
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14259
- * is given** a window in which every sample is trivially a hit would fire on
14260
- * silence, so the engine refuses such a condition rather than notifying on
14261
- * nothing (the schema cannot express "at least one of" without becoming a
14262
- * ZodEffects the cap path would have to special-case).
14263
- *
14264
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14265
- * must be FULL before it can match a window that has been open for two
14266
- * seconds of its ten is 100% of nothing, and firing on it would make
14267
- * `samplingSeconds` decorative.
14506
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14507
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14508
+ * there is no second switch that can disagree with the first and every rule
14509
+ * authored before the decision migrates for free (`audioModeOf`):
14510
+ *
14511
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14512
+ * classifier labels with one of them. No window, no percentage:
14513
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14514
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14515
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14516
+ * reaches this condition if the classifier was already confident enough.
14517
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14518
+ * the condition: at least `hitPercent`% of the samples over
14519
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14520
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14521
+ * must be FULL before it can match a window open for two of its ten
14522
+ * seconds is 100% of nothing.
14523
+ *
14524
+ * **Why label mode has no window.** It had one, and it never fired: the
14525
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14526
+ * of them per episode, even through continuous crying. The measured maximum
14527
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14528
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14529
+ * the wrong question to ask of a sparse classifier.
14530
+ *
14531
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14532
+ * and the rule would fire on silence. The schema cannot express "exactly one
14533
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14534
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14535
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14268
14536
  *
14269
14537
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14270
14538
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14272,13 +14540,13 @@ var NcOccupancyConditionSchema = object({
14272
14540
  * an operator who typed `dog` mean the same thing.
14273
14541
  */
14274
14542
  var NcAudioConditionSchema = object({
14275
- /** Audio macro labels; absent = any sound (level-only rule). */
14543
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14276
14544
  labels: array(string().min(1)).min(1).optional(),
14277
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14545
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14278
14546
  dbThreshold: number().min(-96).max(0).optional(),
14279
- /** Percentage of the window's samples that must be hits (1–100). */
14547
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14280
14548
  hitPercent: number().int().min(1).max(100).default(60),
14281
- /** Length of the sampling window in seconds. */
14549
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14282
14550
  samplingSeconds: number().int().min(1).max(300).default(10)
14283
14551
  });
14284
14552
  /**
@@ -14416,13 +14684,81 @@ var NcRuleActionsSchema = object({
14416
14684
  */
14417
14685
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14418
14686
  });
14687
+ /**
14688
+ * "This rule applies only while `deviceId` is in one of `states`."
14689
+ *
14690
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14691
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14692
+ * make the condition lie about devices whose states have no equivalent.
14693
+ *
14694
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14695
+ * condition that fired on "I could not read it" would be worse than no gate.
14696
+ */
14697
+ var NcDeviceStateConditionSchema = object({
14698
+ deviceId: number().int(),
14699
+ /** Any of these matches. */
14700
+ states: array(string().min(1)).min(1)
14701
+ });
14702
+ /**
14703
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14704
+ *
14705
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14706
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14707
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14708
+ * already has a trigger ("tell me about a person at the front door, but only
14709
+ * while the bin is still out"). That is why it composes with every delivery
14710
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14711
+ * kind exist for it — see D159.
14712
+ *
14713
+ * ── Identity ───────────────────────────────────────────────────────────────
14714
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14715
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14716
+ * carried as a HINT for the editor and for the log line, never as part of the
14717
+ * lookup key: a rule whose hint drifted must still gate correctly.
14718
+ *
14719
+ * ── Which boolean ──────────────────────────────────────────────────────────
14720
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14721
+ * already declares which boolean drives notification rules, and a second knob
14722
+ * that could disagree with it is exactly the D62 failure. Set it only to
14723
+ * override one rule against the scene's own default.
14724
+ *
14725
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14726
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14727
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14728
+ * evidence, in either direction.
14729
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14730
+ * The latch is a durable fact about the past ("it has diverged since I armed
14731
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14732
+ * reason the operator asked for a latch.
14733
+ *
14734
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14735
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14736
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14737
+ * said out loud in the log rather than dropped in silence.
14738
+ */
14739
+ var NcSceneConditionSchema = object({
14740
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14741
+ sceneId: string().min(1),
14742
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14743
+ deviceId: number().int().optional(),
14744
+ /** The state the scene must be in for the rule to fire. */
14745
+ requiredState: _enum(["matched", "diverged"]),
14746
+ /**
14747
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14748
+ * scene's own `emit` field, which is the only place that decision belongs.
14749
+ */
14750
+ latched: boolean().optional()
14751
+ });
14419
14752
  var NcConditionsSchema = object({
14420
14753
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14421
- deviceState: object({
14422
- deviceId: number().int(),
14423
- /** Any of these matches. */
14424
- states: array(string().min(1)).min(1)
14425
- }).optional(),
14754
+ deviceState: NcDeviceStateConditionSchema.optional(),
14755
+ /**
14756
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14757
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14758
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14759
+ * {@link NcSceneCondition} and D159.
14760
+ */
14761
+ scene: NcSceneConditionSchema.optional(),
14426
14762
  /** Device scope — absent = all devices. */
14427
14763
  devices: array(number()).optional(),
14428
14764
  /** Detector class names (any overlap with the record's class set). */
@@ -14448,18 +14784,47 @@ var NcConditionsSchema = object({
14448
14784
  */
14449
14785
  labelEquals: array(string().min(1)).optional(),
14450
14786
  /**
14451
- * Identity matcher. P1 boundary: matched against the record's collapsed
14452
- * `label` (the identity display name propagated by the face pipeline) —
14453
- * identity-ID matching rides in P2 when identity ids reach the record.
14787
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14788
+ * is about recognised people at all.
14789
+ *
14790
+ * Three states, and the empty one is the point:
14791
+ *
14792
+ * | value | meaning |
14793
+ * | --- | --- |
14794
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14795
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14796
+ * | a list | only these identities |
14797
+ *
14798
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14799
+ * `devices` list is every device), applied one level down: the operator has
14800
+ * turned the face scope ON and narrowed it to nothing, which is every known
14801
+ * face. No second field states the same thing — a switch that can disagree
14802
+ * with the list under it is worse than no switch (D62).
14803
+ *
14804
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14805
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14806
+ * the operator fixed the spelling. The id reaches the record on
14807
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14808
+ * `{{label}}` renders.
14809
+ *
14810
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14811
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14812
+ * for is left as it stands and reported, never dropped. The engine also
14813
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14814
+ * migration could not resolve keeps matching exactly what it matched before.
14454
14815
  */
14455
14816
  identities: array(string().min(1)).optional(),
14456
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14817
+ /**
14818
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14819
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14820
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14821
+ */
14457
14822
  plates: NcPlateMatcherSchema.optional(),
14458
14823
  /**
14459
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14460
- * Same P1 boundary: matched against the record's collapsed `label` (the
14461
- * identity display name). A record with NO label passes (nothing to
14462
- * exclude), unlike the include variant which fails on an absent label.
14824
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14825
+ * the same id members and the same lazy name→id migration. A record with NO
14826
+ * identity passes (nothing to exclude), unlike the include variant which
14827
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14463
14828
  */
14464
14829
  identitiesExclude: array(string().min(1)).optional(),
14465
14830
  /**
@@ -14851,7 +15216,80 @@ var NcRuleInputSchema = object({
14851
15216
  * a rule that predates the gate must keep delivering byte-for-byte as it
14852
15217
  * did, and absent is the only way to say that without a migration.
14853
15218
  */
14854
- confirm: NcConfirmSchema.optional()
15219
+ confirm: NcConfirmSchema.optional(),
15220
+ /**
15221
+ * WAIT for face/plate recognition before saying anything.
15222
+ *
15223
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15224
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15225
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15226
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15227
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15228
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15229
+ *
15230
+ * Only two honest answers exist, and this flag picks between them. It has
15231
+ * effect ONLY on a rule that declares a recognition scope
15232
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15233
+ * other rule there is nothing to wait for and the flag is inert.
15234
+ *
15235
+ * | value | what happens |
15236
+ * | --- | --- |
15237
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15238
+ * | 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) |
15239
+ *
15240
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15241
+ * on the addon cap path, and absent has to keep meaning exactly what every
15242
+ * rule authored before this field meant.
15243
+ *
15244
+ * The cost of `true` is stated here because the editor states it too: a rule
15245
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15246
+ * tests every zone the track visited and a `crossing` condition can no longer
15247
+ * be satisfied, because a closed track carries no crossing.
15248
+ */
15249
+ waitForEnhancement: boolean().optional(),
15250
+ /**
15251
+ * GROUP a burst of subjects into ONE notification that grows.
15252
+ *
15253
+ * Seconds of quiet after the last matching subject before the burst is
15254
+ * considered over. While it is open, the first subject enqueues immediately —
15255
+ * **exactly as today, with no added latency** — and every real growth (a new
15256
+ * subject, or a name confirmed on one already in it) REPLACES that
15257
+ * notification with an updated one naming everybody. The push carries the
15258
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15259
+ *
15260
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15261
+ *
15262
+ * ### Why an idle cutoff and not a window
15263
+ *
15264
+ * The measured seven-person arrival on device 590 spans 110 s with every
15265
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15266
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15267
+ * 30 is Frigate's shipped value for the same decision.
15268
+ *
15269
+ * ### What it replaces
15270
+ *
15271
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15272
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15273
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15274
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15275
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15276
+ * budget over GROUPS — which is what it always meant — and a growth is never
15277
+ * throttled by the window its own first member spent.
15278
+ *
15279
+ * ### Interaction with {@link waitForEnhancement}
15280
+ *
15281
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15282
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15283
+ * CLOSE — already carrying its name — and grows as later members close. That
15284
+ * is later, and complete. With grouping alone the group opens on the first
15285
+ * object event and picks up names as they are confirmed, through the growth
15286
+ * path. Neither combination fires twice for one subject.
15287
+ *
15288
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15289
+ * on the addon cap path, so absent must keep meaning what it meant before this
15290
+ * field existed.
15291
+ */
15292
+ groupIdleSec: number().int().min(0).max(600).optional()
14855
15293
  });
14856
15294
  /**
14857
15295
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14958,6 +15396,7 @@ var NcConditionDescriptorSchema = object({
14958
15396
  "occupancy",
14959
15397
  "audio",
14960
15398
  "deviceState",
15399
+ "scene",
14961
15400
  "systemEvent"
14962
15401
  ]),
14963
15402
  operator: _enum([
@@ -15363,7 +15802,87 @@ var MethodAccessSchema = _enum([
15363
15802
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15364
15803
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15365
15804
  var CapScopeSchema = _enum(["device", "system"]);
15366
- var TokenScopeSchema = discriminatedUnion("type", [
15805
+ /**
15806
+ * DeviceSelector (scope model v3 — 2026-08-12).
15807
+ *
15808
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15809
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15810
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15811
+ * AFTER the grant was minted — no re-grant, no re-login.
15812
+ *
15813
+ * - `all` — every device in the deployment. The broad viewer/operator
15814
+ * lever without a `category` grant (a `category` grant also covers device
15815
+ * caps that carry no deviceId; `all` is specifically the device set).
15816
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15817
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15818
+ * is NOT covered until the grant is edited.
15819
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15820
+ * DYNAMIC. A device that changes type, or a new device of the type,
15821
+ * re-resolves on the next request.
15822
+ * - `locations` — every device whose operator-assigned `location` label is
15823
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15824
+ * null/unset location matches NO `locations` selector.
15825
+ */
15826
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15827
+ object({ kind: literal("all") }),
15828
+ object({
15829
+ kind: literal("ids"),
15830
+ ids: array(number().int()).min(1)
15831
+ }),
15832
+ object({
15833
+ kind: literal("types"),
15834
+ types: array(_enum(DeviceType)).min(1)
15835
+ }),
15836
+ object({
15837
+ kind: literal("locations"),
15838
+ locations: array(string().min(1)).min(1)
15839
+ })
15840
+ ]);
15841
+ var DeviceTokenScopeSchema = object({
15842
+ type: literal("device"),
15843
+ /** The device SET this grant covers — resolved against the live fleet. */
15844
+ selector: DeviceSelectorSchema,
15845
+ access: array(MethodAccessSchema).min(1),
15846
+ /**
15847
+ * Whether a grant on a PARENT device transparently covers its accessory
15848
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15849
+ * Direction is parent → children ONLY.
15850
+ *
15851
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15852
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15853
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15854
+ * operator must grant on the child, not inherit from the parent). Set it
15855
+ * explicitly to override that default per grant.
15856
+ */
15857
+ includeLinked: boolean().optional()
15858
+ });
15859
+ /**
15860
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15861
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15862
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15863
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15864
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15865
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15866
+ * migration cannot reach a JWT already in a client's hands; parse-time
15867
+ * migration covers both without a flag day. No cast — the raw object is read
15868
+ * through `Reflect.get` (its static type is `unknown`).
15869
+ */
15870
+ function migrateLegacyTokenScope(raw) {
15871
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15872
+ if (Reflect.get(raw, "type") !== "device") return raw;
15873
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15874
+ const targets = Reflect.get(raw, "targets");
15875
+ if (!Array.isArray(targets)) return raw;
15876
+ return {
15877
+ type: "device",
15878
+ selector: {
15879
+ kind: "ids",
15880
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15881
+ },
15882
+ access: Reflect.get(raw, "access")
15883
+ };
15884
+ }
15885
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15367
15886
  object({
15368
15887
  type: literal("category"),
15369
15888
  target: CapScopeSchema,
@@ -15379,18 +15898,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15379
15898
  target: string(),
15380
15899
  access: array(MethodAccessSchema).min(1)
15381
15900
  }),
15382
- object({
15383
- type: literal("device"),
15384
- /**
15385
- * One or more deviceIds (serialised as strings for wire-format
15386
- * consistency with the rest of the union). Matcher accepts if
15387
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15388
- * of one scope-per-device when granting access to a set of cameras.
15389
- */
15390
- targets: array(string()).min(1),
15391
- access: array(MethodAccessSchema).min(1)
15392
- })
15393
- ]);
15901
+ DeviceTokenScopeSchema
15902
+ ]));
15394
15903
  object({
15395
15904
  id: string(),
15396
15905
  username: string(),
@@ -15707,7 +16216,7 @@ var TrackEnvelopeSchema = object({
15707
16216
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15708
16217
  * keeps every scalar the list surfaces actually render (ids, class(es),
15709
16218
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15710
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16219
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15711
16220
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15712
16221
  * `getTrack`. Mirrors the event-store `projection` convention
15713
16222
  * (`getObjectEvents` et al.).
@@ -15843,7 +16352,21 @@ union([literal(1), literal(2)]);
15843
16352
  var LabelAttributionSchema = object({
15844
16353
  stepId: string(),
15845
16354
  modelId: string().optional(),
15846
- decidedAt: number()
16355
+ decidedAt: number(),
16356
+ /**
16357
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16358
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16359
+ *
16360
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16361
+ * notification rule authored on "Gianluca" stopped matching the moment the
16362
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16363
+ * the thing that does not move, so it is what a rule matches on
16364
+ * (`NcConditions.identities`) and the text is what a human is shown.
16365
+ *
16366
+ * Absent when the label names no gallery row — a plate the OCR read but no
16367
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16368
+ */
16369
+ identityId: string().optional()
15847
16370
  });
15848
16371
  /**
15849
16372
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15980,6 +16503,28 @@ var TrackSchema = object({
15980
16503
  * `=== true` and render nothing otherwise, never infer "no face".
15981
16504
  */
15982
16505
  hasFace: boolean().optional(),
16506
+ /**
16507
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16508
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16509
+ * so the passage is tracked once and as a VEHICLE.
16510
+ *
16511
+ * It exists because the fold's record was dishonest. D34 and the code both
16512
+ * said "the person is not lost — it is reported so both entities stay on the
16513
+ * record"; in fact the pair went into a per-processor RAM field behind an
16514
+ * accessor nobody called, and every durable surface said `vehicle`, full
16515
+ * stop. This is the composition note that makes the row true.
16516
+ *
16517
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16518
+ * person" is not an answer to "what is this" — both label tiers would refuse
16519
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16520
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16521
+ * and a `person` rule still does not fire for someone cycling past.
16522
+ *
16523
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16524
+ * the column, and every hub that predates the field, omits it. Test
16525
+ * `=== true` and render nothing otherwise — never infer "no rider".
16526
+ */
16527
+ hasRider: boolean().optional(),
15983
16528
  ...TrackFlagFields,
15984
16529
  ...TrackRetrainFields
15985
16530
  });
@@ -16329,7 +16874,10 @@ var RecentTracksQueryInput = object({
16329
16874
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16330
16875
  cursor: string().optional(),
16331
16876
  /** See {@link TrackProjectionSchema}. Default `full`. */
16332
- projection: TrackProjectionSchema.optional()
16877
+ projection: TrackProjectionSchema.optional(),
16878
+ /** Include stationary-promoted rows (parked objects). Default false: the
16879
+ * feed lists passages; parking records live on the stationary registry. */
16880
+ includeStationary: boolean().optional()
16333
16881
  });
16334
16882
  var RecentTracksPageSchema = object({
16335
16883
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16547,7 +17095,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16547
17095
  zone: TrackZoneFilterSchema.optional(),
16548
17096
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16549
17097
  * compatible — omitting the field keeps today's exact behaviour). */
16550
- projection: TrackProjectionSchema.optional()
17098
+ projection: TrackProjectionSchema.optional(),
17099
+ /** Include stationary-promoted rows (parked objects handed to the
17100
+ * stationary registry). Default false: the timeline lists passages,
17101
+ * not parking records (operator decision, 2026-08-15). */
17102
+ includeStationary: boolean().optional()
16551
17103
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16552
17104
  kind: "mutation",
16553
17105
  auth: "admin"
@@ -16711,11 +17263,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16711
17263
  auth: "admin"
16712
17264
  }), method(object({
16713
17265
  eventId: string(),
16714
- kind: MediaFileKindEnum.optional()
17266
+ kind: MediaFileKindEnum.optional(),
17267
+ deviceId: number()
16715
17268
  }), array(MediaFileSchema).readonly()), method(object({
16716
17269
  trackId: string(),
16717
- kinds: array(MediaFileKindEnum).optional()
16718
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17270
+ kinds: array(MediaFileKindEnum).optional(),
17271
+ deviceId: number()
17272
+ }), array(MediaFileSchema).readonly()), method(object({
17273
+ trackId: string(),
17274
+ deviceId: number()
17275
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16719
17276
  kind: "mutation",
16720
17277
  auth: "admin"
16721
17278
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17375,6 +17932,17 @@ var maxSessionHoldMsField = {
17375
17932
  default: 12e4,
17376
17933
  step: 5e3
17377
17934
  };
17935
+ /**
17936
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17937
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17938
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17939
+ */
17940
+ var audioMotionWindowMsField = {
17941
+ min: 5e3,
17942
+ max: 6e5,
17943
+ default: 9e4,
17944
+ step: 5e3
17945
+ };
17378
17946
  var motionFpsField = {
17379
17947
  min: 1,
17380
17948
  max: 30,
@@ -17406,7 +17974,7 @@ var detectionFpsField = {
17406
17974
  var occupancyRecheckSecField = {
17407
17975
  min: 0,
17408
17976
  max: 300,
17409
- default: 30,
17977
+ default: 300,
17410
17978
  step: 5
17411
17979
  };
17412
17980
  var occupancyRecheckFramesField = {
@@ -17551,6 +18119,27 @@ var RunnerCameraConfigSchema = object({
17551
18119
  * resolved `CameraDetectionConfig`.
17552
18120
  */
17553
18121
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18122
+ /**
18123
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18124
+ * 'on-motion'` audio window, measured from the LAST motion event.
18125
+ *
18126
+ * This exists because the falling edge cannot be relied on. Camera-native
18127
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18128
+ * its email-push SMTP path both emit `detected: true` and never the
18129
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18130
+ * onboard-only camera a window that closed only on `detected: false` never
18131
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18132
+ * battery camera, the one failure mode the mode exists to prevent.
18133
+ *
18134
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18135
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18136
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18137
+ *
18138
+ * Not consumed by the runner: carried here so it shares the per-camera
18139
+ * device-settings surface with `motionCooldownMs`, exactly like
18140
+ * `maxSessionHoldMs`.
18141
+ */
18142
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17554
18143
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17555
18144
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17556
18145
  motionStreamId: string(),
@@ -17646,7 +18235,7 @@ var RunnerCameraConfigSchema = object({
17646
18235
  */
17647
18236
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17648
18237
  });
17649
- 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;
18238
+ 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;
17650
18239
  /**
17651
18240
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17652
18241
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18632,7 +19221,31 @@ DeviceType.Camera, method(object({
18632
19221
  lastCapturedAt: number().nullable(),
18633
19222
  cacheAgeMs: number().nullable(),
18634
19223
  etag: string().nullable()
18635
- }))), systemMethod(object({
19224
+ }))), systemMethod(object({ deviceId: number() }), object({
19225
+ /** The battery slice as read, or null when the device has none. */
19226
+ battery: object({
19227
+ sleeping: boolean(),
19228
+ lastUpdated: number(),
19229
+ lastContactAt: number().optional()
19230
+ }).nullable(),
19231
+ /** The resolved snapshot state (what the overlay decision used). */
19232
+ state: object({
19233
+ isBattery: boolean(),
19234
+ reason: _enum([
19235
+ "disabled",
19236
+ "sleeping",
19237
+ "unreachable",
19238
+ "waking"
19239
+ ]).nullable()
19240
+ }),
19241
+ /** The cached frame behind the next paint. */
19242
+ frame: object({
19243
+ capturedAt: number().nullable(),
19244
+ ageMs: number().nullable()
19245
+ }),
19246
+ /** A wake window is currently open (the Waking overlay's source). */
19247
+ waking: boolean()
19248
+ })), systemMethod(object({
18636
19249
  /** The tiles a surface is actually rendering. One entry per (device,
18637
19250
  * width) the caller will paint — the width is snapped to the server's
18638
19251
  * ladder and becomes part of the link's SIGNED identity. */
@@ -18662,7 +19275,16 @@ targets: array(object({
18662
19275
  /** A sleeping battery camera: the frame is deliberately stale and will
18663
19276
  * NOT refresh in the background. A surface should say so rather than
18664
19277
  * present it as current. */
18665
- sleeping: boolean()
19278
+ sleeping: boolean(),
19279
+ /** Current device state rendered over the cached frame. State images
19280
+ * remain authoritative even when their photographic background is
19281
+ * old; null means the link must carry a current camera frame. */
19282
+ stateReason: _enum([
19283
+ "disabled",
19284
+ "sleeping",
19285
+ "unreachable",
19286
+ "waking"
19287
+ ]).nullable()
18666
19288
  })));
18667
19289
  /**
18668
19290
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20184,6 +20806,25 @@ var BatteryStatusSchema = object({
20184
20806
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20185
20807
  lastUpdated: number(),
20186
20808
  /**
20809
+ * Ms epoch of the last time the device PROVED it was reachable — a
20810
+ * completed firmware round-trip, an observed wake, or an inbound push
20811
+ * (firmware event, email). `0`/absent = never since this slice was born.
20812
+ *
20813
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20814
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20815
+ * for the radio, because a poll that confirms reachability is the same
20816
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20817
+ * single derivation every consumer must use; no surface computes its own.
20818
+ *
20819
+ * It is deliberately NOT a clock in the
20820
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20821
+ * observation itself, and it is the only thing a 30-hour silence is
20822
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20823
+ * Reolink provider) so a value that means "recently" cannot cost a
20824
+ * SQLite commit per round-trip.
20825
+ */
20826
+ lastContactAt: number().optional(),
20827
+ /**
20187
20828
  * True when the source is a BINARY low-battery indicator (HA
20188
20829
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20189
20830
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23721,7 +24362,7 @@ method(object({
23721
24362
  toMs: number()
23722
24363
  }), RecordingAvailabilitySchema, {
23723
24364
  kind: "query",
23724
- auth: "admin"
24365
+ auth: "protected"
23725
24366
  }), method(object({
23726
24367
  deviceId: number(),
23727
24368
  fromMs: number(),
@@ -23729,14 +24370,14 @@ method(object({
23729
24370
  tzOffsetMinutes: number()
23730
24371
  }), RecordingDaysSchema, {
23731
24372
  kind: "query",
23732
- auth: "admin"
24373
+ auth: "protected"
23733
24374
  }), method(object({
23734
24375
  deviceId: number(),
23735
24376
  fromMs: number(),
23736
24377
  toMs: number()
23737
24378
  }), RecordingManifestSchema, {
23738
24379
  kind: "query",
23739
- auth: "admin"
24380
+ auth: "protected"
23740
24381
  }), method(object({}), RecordingStorageUsageSchema, {
23741
24382
  kind: "query",
23742
24383
  auth: "admin"
@@ -24026,14 +24667,77 @@ method(object({
24026
24667
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
24027
24668
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
24028
24669
  *
24029
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
24030
- * derives the device-detail contribution; the provider carries NO hand-written
24031
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
24032
- * every hysteresis flip / availability change; consumers never poll.
24033
- */
24034
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
24035
- * be added without a wire break (matching falls back to any-condition refs). */
24670
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24671
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24672
+ * for the thing: a scene is a standing question about the property ("is the bin
24673
+ * still out"), and the operator's question is "which of my scenes have tripped",
24674
+ * across every camera at once — not "what does camera 617 think". Buried one
24675
+ * camera deep it also could not be found. The surface is now a top-level admin
24676
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24677
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24678
+ *
24679
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24680
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24681
+ * directions, so a registration nobody declares fails exactly as loudly as a
24682
+ * declaration nobody registers. The editor is imported directly by the page.
24683
+ *
24684
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24685
+ * availability change; consumers never poll.
24686
+ */
24687
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24688
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24689
+ * Open by design so more can be added without a wire break.
24690
+ *
24691
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24692
+ * not comparable, so "I have never seen this scene in this light" is reported
24693
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24694
+ * collapses the cosine and would latch a false alarm every single night. */
24036
24695
  var SceneConditionSchema = string();
24696
+ /**
24697
+ * What a scene does when the CURRENT light has no reference of its own.
24698
+ *
24699
+ * The lighting variants are not equally likely to exist. Almost every operator
24700
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24701
+ * scene that is only ever going to be asked about a daytime question ("is the
24702
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24703
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24704
+ * working without it rather than degrading into a permanent complaint.
24705
+ *
24706
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24707
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24708
+ * last covered light left it at, the latch is untouched, and the hysteresis
24709
+ * run is neither spent nor cleared. The scene resumes by itself at first
24710
+ * light. This is the only behaviour under which "I never captured IR" is a
24711
+ * configuration choice instead of a nightly fault.
24712
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24713
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24714
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24715
+ * cross-condition cosines are not comparable, so a day reference against a
24716
+ * true IR frame collapses and the scene reports a theft at 21:40.
24717
+ *
24718
+ * Never applies when the scene has NO comparable reference at all — that is
24719
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24720
+ * there would hide a scene the operator never finished setting up.
24721
+ */
24722
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24723
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24724
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24725
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24726
+ * and never counts toward hysteresis in either direction. */
24727
+ var SceneVerdictSchema = _enum([
24728
+ "matched",
24729
+ "diverged",
24730
+ "unknown"
24731
+ ]);
24732
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24733
+ * silence that reads as "nothing has happened". */
24734
+ var SceneUnavailableSchema = _enum([
24735
+ "no-reference-for-condition",
24736
+ "view-shifted",
24737
+ "no-vision-profile",
24738
+ "encoder-model-changed",
24739
+ "no-snapshot"
24740
+ ]);
24037
24741
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
24038
24742
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
24039
24743
  var SceneReferenceSchema = object({
@@ -24041,7 +24745,14 @@ var SceneReferenceSchema = object({
24041
24745
  modelId: string(),
24042
24746
  condition: SceneConditionSchema,
24043
24747
  capturedAt: number(),
24044
- thumbnailMediaId: string().optional()
24748
+ thumbnailMediaId: string().optional(),
24749
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24750
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24751
+ * normalized rect frame a different piece of world, and the scene would
24752
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24753
+ * when hysteresis is about to flip — one extra encode per candidate
24754
+ * transition, not per poll. */
24755
+ anchorEmbedding: array(number()).optional()
24045
24756
  });
24046
24757
  var SceneMonitorStateSchema = object({
24047
24758
  id: string(),
@@ -24063,6 +24774,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
24063
24774
  profileId: string().optional(),
24064
24775
  hysteresisCount: number().int().positive()
24065
24776
  })]);
24777
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24778
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24779
+ * out in silence rather than reporting a fault every night. */
24780
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24781
+ /**
24782
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24783
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24784
+ *
24785
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24786
+ * fail-open: a notification suppressed is the worse error there, but a vision
24787
+ * model that timed out has not told us the bin is gone, and a latch is a
24788
+ * stateful claim that costs the operator a trip to reset.
24789
+ */
24790
+ var SceneConfirmSchema = object({
24791
+ enabled: boolean().default(false),
24792
+ prompt: string().min(1).max(1e3),
24793
+ profileId: string().optional(),
24794
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24795
+ maxImagePx: number().int().min(64).max(2048).default(448),
24796
+ /** What a timeout / unavailable model means for the PENDING flip. */
24797
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24798
+ });
24066
24799
  var SceneMonitorSchema = object({
24067
24800
  id: string(),
24068
24801
  label: string(),
@@ -24081,7 +24814,56 @@ var SceneMonitorSchema = object({
24081
24814
  lastConfidence: number().nullable(),
24082
24815
  currentCondition: SceneConditionSchema.nullable(),
24083
24816
  availability: _enum(["ok", "unavailable"]),
24084
- unavailableReason: string().nullable()
24817
+ unavailableReason: string().nullable(),
24818
+ /** Which state is "the initial screen". `null` until the first capture. */
24819
+ baselineStateId: string().nullable(),
24820
+ /** Which boolean drives notification rules and any export. */
24821
+ emit: _enum(["latched", "live"]).default("latched"),
24822
+ /** Live: does the region match the baseline RIGHT NOW. */
24823
+ verdict: SceneVerdictSchema,
24824
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24825
+ latched: boolean(),
24826
+ /** Last reset (or creation). */
24827
+ armedAt: number(),
24828
+ divergedAt: number().nullable(),
24829
+ restoredAt: number().nullable(),
24830
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24831
+ * during the window DISCARDS the observation — a car pulling up in front of
24832
+ * the bin must not be able to spend hysteresis credit. */
24833
+ quietSeconds: number().int().min(0).max(3600).default(60),
24834
+ /** An observation only advances the pending count when it is at least this
24835
+ * far from the previously counted one, so N agreeing checks span real time
24836
+ * rather than N adjacent polls inside one occlusion. */
24837
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24838
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24839
+ confirm: SceneConfirmSchema.optional(),
24840
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24841
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24842
+ /** Clear the latch on its own when the scene matches again? Default false —
24843
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24844
+ * automation can react to the bin coming back without the operator's own
24845
+ * alarm silently clearing itself. */
24846
+ autoRestore: boolean().default(false),
24847
+ /** What to do when the current light has no reference of its own. See
24848
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24849
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24850
+ /**
24851
+ * The light whose checks are currently being SAT OUT under
24852
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24853
+ *
24854
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24855
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24856
+ * nothing captured in this light"* in the same calm voice as the coverage
24857
+ * line, because the alternative is a scene that silently stops answering
24858
+ * after sunset with nothing anywhere saying why. A skipped check must never
24859
+ * read as a broken one.
24860
+ */
24861
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24862
+ /** Named cause when `verdict === 'unknown'`. */
24863
+ unavailable: SceneUnavailableSchema.nullable(),
24864
+ /** Conditions that have at least one comparable reference — the coverage line
24865
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24866
+ coveredConditions: array(SceneConditionSchema)
24085
24867
  });
24086
24868
  var SceneMonitorStatusSchema = object({
24087
24869
  monitors: array(SceneMonitorSchema),
@@ -24114,7 +24896,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24114
24896
  "both"
24115
24897
  ]).optional(),
24116
24898
  checkIntervalSec: number().optional(),
24117
- check: SceneCheckSchema.optional()
24899
+ check: SceneCheckSchema.optional(),
24900
+ emit: _enum(["latched", "live"]).optional(),
24901
+ quietSeconds: number().int().min(0).max(3600).optional(),
24902
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24903
+ anchorThreshold: number().min(0).max(1).optional(),
24904
+ autoRestore: boolean().optional(),
24905
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24906
+ /** `null` clears the vision-model adjudicator. */
24907
+ confirm: SceneConfirmSchema.nullable().optional()
24118
24908
  })
24119
24909
  }), _void(), {
24120
24910
  kind: "mutation",
@@ -24151,6 +24941,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24151
24941
  }), _void(), {
24152
24942
  kind: "mutation",
24153
24943
  auth: "admin"
24944
+ }), method(object({
24945
+ deviceId: number(),
24946
+ monitorId: string(),
24947
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24948
+ recapture: boolean().optional()
24949
+ }), _void(), {
24950
+ kind: "mutation",
24951
+ auth: "admin"
24154
24952
  });
24155
24953
  /**
24156
24954
  * Per-stage gating mode applied to the zones a rule references.
@@ -24304,6 +25102,16 @@ var CamStreamDescriptorSchema = object({
24304
25102
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24305
25103
  metadata: record(string(), unknown()).optional()
24306
25104
  });
25105
+ object({
25106
+ /** The descriptors as last built from a real camera response. Never a guess:
25107
+ * a failed or refused build writes NOTHING, so a restored catalog is always
25108
+ * one the camera itself once produced. */
25109
+ descriptors: array(CamStreamDescriptorSchema),
25110
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
25111
+ * path decide whether the camera's own awake window is worth spending on a
25112
+ * re-read. */
25113
+ lastFetchedAt: number()
25114
+ });
24307
25115
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24308
25116
  /** One of the camera's stream profiles. */
24309
25117
  var StreamProfileSchema = _enum([
@@ -24459,12 +25267,64 @@ var NetworkAddressSchema = object({
24459
25267
  family: string(),
24460
25268
  internal: boolean()
24461
25269
  });
25270
+ /**
25271
+ * Provenance of the site coordinates, and the whole reason this is not just two
25272
+ * numbers.
25273
+ *
25274
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25275
+ * nothing overwrites it.
25276
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25277
+ * default that is right to a few kilometres beats the coarse UTC clock split
25278
+ * the sun-times consumers otherwise fall back to.
25279
+ *
25280
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25281
+ * own input will eventually trust the guess.
25282
+ */
25283
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25284
+ /**
25285
+ * The read shape: the location plus the honest state of the one-shot derivation.
25286
+ *
25287
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25288
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25289
+ * failed; the hub will NOT try again on its own — the fallback is declared
25290
+ * (consumers degrade to their own last resort) and the operator either types the
25291
+ * coordinates or presses detect.
25292
+ */
25293
+ var SiteLocationStatusSchema = object({
25294
+ location: object({
25295
+ /** WGS84 decimal degrees. */
25296
+ latitude: number().min(-90).max(90),
25297
+ longitude: number().min(-180).max(180),
25298
+ source: SiteLocationSourceSchema,
25299
+ /** Epoch ms the value was last written. */
25300
+ updatedAt: number(),
25301
+ /**
25302
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25303
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25304
+ */
25305
+ label: string().optional()
25306
+ }).nullable(),
25307
+ derivationAttemptedAt: number().nullable(),
25308
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25309
+ derivationError: string().nullable()
25310
+ });
25311
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25312
+ var SetSiteLocationInputSchema = object({
25313
+ latitude: number().min(-90).max(90),
25314
+ longitude: number().min(-180).max(180)
25315
+ }).nullable();
24462
25316
  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(), {
24463
25317
  kind: "mutation",
24464
25318
  auth: "admin"
24465
25319
  }), method(_void(), _void(), {
24466
25320
  kind: "mutation",
24467
25321
  auth: "admin"
25322
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25323
+ kind: "mutation",
25324
+ auth: "admin"
25325
+ }), method(_void(), SiteLocationStatusSchema, {
25326
+ kind: "mutation",
25327
+ auth: "admin"
24468
25328
  });
24469
25329
  object({
24470
25330
  /** True when the device's tamper switch / case-open contact is
@@ -27194,6 +28054,12 @@ Object.freeze({
27194
28054
  addonId: null,
27195
28055
  access: "create"
27196
28056
  },
28057
+ "llm.cancel": {
28058
+ capName: "llm",
28059
+ capScope: "system",
28060
+ addonId: null,
28061
+ access: "create"
28062
+ },
27197
28063
  "llm.deleteModel": {
27198
28064
  capName: "llm",
27199
28065
  capScope: "system",
@@ -27278,6 +28144,12 @@ Object.freeze({
27278
28144
  addonId: null,
27279
28145
  access: "view"
27280
28146
  },
28147
+ "llm.resolveModelRef": {
28148
+ capName: "llm",
28149
+ capScope: "system",
28150
+ addonId: null,
28151
+ access: "create"
28152
+ },
27281
28153
  "llm.setDefault": {
27282
28154
  capName: "llm",
27283
28155
  capScope: "system",
@@ -29444,6 +30316,12 @@ Object.freeze({
29444
30316
  addonId: null,
29445
30317
  access: "create"
29446
30318
  },
30319
+ "sceneMonitor.resetScene": {
30320
+ capName: "scene-monitor",
30321
+ capScope: "device",
30322
+ addonId: null,
30323
+ access: "delete"
30324
+ },
29447
30325
  "sceneMonitor.updateScene": {
29448
30326
  capName: "scene-monitor",
29449
30327
  capScope: "device",
@@ -29582,6 +30460,12 @@ Object.freeze({
29582
30460
  addonId: null,
29583
30461
  access: "view"
29584
30462
  },
30463
+ "snapshot.getDebugState": {
30464
+ capName: "snapshot",
30465
+ capScope: "device",
30466
+ addonId: null,
30467
+ access: "view"
30468
+ },
29585
30469
  "snapshot.getSnapshot": {
29586
30470
  capName: "snapshot",
29587
30471
  capScope: "device",
@@ -30122,6 +31006,12 @@ Object.freeze({
30122
31006
  addonId: null,
30123
31007
  access: "create"
30124
31008
  },
31009
+ "system.detectSiteLocation": {
31010
+ capName: "system",
31011
+ capScope: "system",
31012
+ addonId: null,
31013
+ access: "create"
31014
+ },
30125
31015
  "system.featureFlags": {
30126
31016
  capName: "system",
30127
31017
  capScope: "system",
@@ -30140,6 +31030,12 @@ Object.freeze({
30140
31030
  addonId: null,
30141
31031
  access: "view"
30142
31032
  },
31033
+ "system.getSiteLocation": {
31034
+ capName: "system",
31035
+ capScope: "system",
31036
+ addonId: null,
31037
+ access: "view"
31038
+ },
30143
31039
  "system.health": {
30144
31040
  capName: "system",
30145
31041
  capScope: "system",
@@ -30164,6 +31060,12 @@ Object.freeze({
30164
31060
  addonId: null,
30165
31061
  access: "create"
30166
31062
  },
31063
+ "system.setSiteLocation": {
31064
+ capName: "system",
31065
+ capScope: "system",
31066
+ addonId: null,
31067
+ access: "create"
31068
+ },
30167
31069
  "terminalSession.adoptLegacyMonitor": {
30168
31070
  capName: "terminal-session",
30169
31071
  capScope: "system",
@@ -30735,6 +31637,1709 @@ Object.freeze({
30735
31637
  access: "create"
30736
31638
  }
30737
31639
  });
31640
+ Object.freeze({
31641
+ "accessories.setChildHidden": [{
31642
+ name: "childDeviceId",
31643
+ form: "single",
31644
+ optional: false
31645
+ }, {
31646
+ name: "deviceId",
31647
+ form: "single",
31648
+ optional: false
31649
+ }],
31650
+ "addonSettings.getDeviceSettings": [{
31651
+ name: "deviceId",
31652
+ form: "single",
31653
+ optional: false
31654
+ }],
31655
+ "addonSettings.updateDeviceSettings": [{
31656
+ name: "deviceId",
31657
+ form: "single",
31658
+ optional: false
31659
+ }],
31660
+ "alarmPanel.arm": [{
31661
+ name: "deviceId",
31662
+ form: "single",
31663
+ optional: false
31664
+ }],
31665
+ "alarmPanel.disarm": [{
31666
+ name: "deviceId",
31667
+ form: "single",
31668
+ optional: false
31669
+ }],
31670
+ "alarmPanel.trigger": [{
31671
+ name: "deviceId",
31672
+ form: "single",
31673
+ optional: false
31674
+ }],
31675
+ "audioAnalysis.resolveDeviceSettings": [{
31676
+ name: "deviceId",
31677
+ form: "single",
31678
+ optional: false
31679
+ }],
31680
+ "audioAnalyzer.classify": [{
31681
+ name: "deviceId",
31682
+ form: "single",
31683
+ optional: true
31684
+ }],
31685
+ "audioMetrics.getCurrentSnapshot": [{
31686
+ name: "deviceId",
31687
+ form: "single",
31688
+ optional: false
31689
+ }],
31690
+ "audioMetrics.getHistory": [{
31691
+ name: "deviceId",
31692
+ form: "single",
31693
+ optional: false
31694
+ }],
31695
+ "automationControl.disable": [{
31696
+ name: "deviceId",
31697
+ form: "single",
31698
+ optional: false
31699
+ }],
31700
+ "automationControl.enable": [{
31701
+ name: "deviceId",
31702
+ form: "single",
31703
+ optional: false
31704
+ }],
31705
+ "automationControl.trigger": [{
31706
+ name: "deviceId",
31707
+ form: "single",
31708
+ optional: false
31709
+ }],
31710
+ "battery.wakeForStream": [{
31711
+ name: "deviceId",
31712
+ form: "single",
31713
+ optional: false
31714
+ }],
31715
+ "brightness.setBrightness": [{
31716
+ name: "deviceId",
31717
+ form: "single",
31718
+ optional: false
31719
+ }],
31720
+ "button.press": [{
31721
+ name: "deviceId",
31722
+ form: "single",
31723
+ optional: false
31724
+ }],
31725
+ "cameraCredentials.getCredentials": [{
31726
+ name: "deviceId",
31727
+ form: "single",
31728
+ optional: false
31729
+ }],
31730
+ "cameraStreams.getBrokerStreams": [{
31731
+ name: "deviceId",
31732
+ form: "single",
31733
+ optional: false
31734
+ }],
31735
+ "cameraStreams.getCameraStreams": [{
31736
+ name: "deviceId",
31737
+ form: "single",
31738
+ optional: false
31739
+ }],
31740
+ "cameraStreams.getProfileRtspEntries": [{
31741
+ name: "deviceId",
31742
+ form: "single",
31743
+ optional: false
31744
+ }],
31745
+ "cameraStreams.getRtspEntries": [{
31746
+ name: "deviceId",
31747
+ form: "single",
31748
+ optional: false
31749
+ }],
31750
+ "cameraStreams.pickStream": [{
31751
+ name: "deviceId",
31752
+ form: "single",
31753
+ optional: false
31754
+ }],
31755
+ "climateControl.setFanMode": [{
31756
+ name: "deviceId",
31757
+ form: "single",
31758
+ optional: false
31759
+ }],
31760
+ "climateControl.setMode": [{
31761
+ name: "deviceId",
31762
+ form: "single",
31763
+ optional: false
31764
+ }],
31765
+ "climateControl.setPreset": [{
31766
+ name: "deviceId",
31767
+ form: "single",
31768
+ optional: false
31769
+ }],
31770
+ "climateControl.setSwingHorizontal": [{
31771
+ name: "deviceId",
31772
+ form: "single",
31773
+ optional: false
31774
+ }],
31775
+ "climateControl.setSwingVertical": [{
31776
+ name: "deviceId",
31777
+ form: "single",
31778
+ optional: false
31779
+ }],
31780
+ "climateControl.setTarget": [{
31781
+ name: "deviceId",
31782
+ form: "single",
31783
+ optional: false
31784
+ }],
31785
+ "climateControl.setTargetHumidity": [{
31786
+ name: "deviceId",
31787
+ form: "single",
31788
+ optional: false
31789
+ }],
31790
+ "climateControl.setTargetRange": [{
31791
+ name: "deviceId",
31792
+ form: "single",
31793
+ optional: false
31794
+ }],
31795
+ "color.setColor": [{
31796
+ name: "deviceId",
31797
+ form: "single",
31798
+ optional: false
31799
+ }],
31800
+ "consumables.reset": [{
31801
+ name: "deviceId",
31802
+ form: "single",
31803
+ optional: false
31804
+ }],
31805
+ "control.setValue": [{
31806
+ name: "deviceId",
31807
+ form: "single",
31808
+ optional: false
31809
+ }],
31810
+ "cover.close": [{
31811
+ name: "deviceId",
31812
+ form: "single",
31813
+ optional: false
31814
+ }],
31815
+ "cover.open": [{
31816
+ name: "deviceId",
31817
+ form: "single",
31818
+ optional: false
31819
+ }],
31820
+ "cover.setPosition": [{
31821
+ name: "deviceId",
31822
+ form: "single",
31823
+ optional: false
31824
+ }],
31825
+ "cover.setTiltPosition": [{
31826
+ name: "deviceId",
31827
+ form: "single",
31828
+ optional: false
31829
+ }],
31830
+ "cover.stop": [{
31831
+ name: "deviceId",
31832
+ form: "single",
31833
+ optional: false
31834
+ }],
31835
+ "dayNight.getOptions": [{
31836
+ name: "deviceId",
31837
+ form: "single",
31838
+ optional: false
31839
+ }],
31840
+ "dayNight.setSettings": [{
31841
+ name: "deviceId",
31842
+ form: "single",
31843
+ optional: false
31844
+ }],
31845
+ "decoder.createSession": [{
31846
+ name: "deviceId",
31847
+ form: "single",
31848
+ optional: true
31849
+ }],
31850
+ "deviceAdoption.release": [{
31851
+ name: "camDeviceId",
31852
+ form: "single",
31853
+ optional: false
31854
+ }],
31855
+ "deviceAdoption.resync": [{
31856
+ name: "camDeviceId",
31857
+ form: "single",
31858
+ optional: false
31859
+ }],
31860
+ "deviceDiscovery.adoptDevice": [{
31861
+ name: "deviceId",
31862
+ form: "single",
31863
+ optional: false
31864
+ }],
31865
+ "deviceDiscovery.listDiscovered": [{
31866
+ name: "deviceId",
31867
+ form: "single",
31868
+ optional: false
31869
+ }],
31870
+ "deviceDiscovery.refreshDiscovery": [{
31871
+ name: "deviceId",
31872
+ form: "single",
31873
+ optional: false
31874
+ }],
31875
+ "deviceDiscovery.releaseDevice": [{
31876
+ name: "childDeviceId",
31877
+ form: "single",
31878
+ optional: false
31879
+ }, {
31880
+ name: "deviceId",
31881
+ form: "single",
31882
+ optional: false
31883
+ }],
31884
+ "deviceManager.adoptionRelease": [{
31885
+ name: "camDeviceId",
31886
+ form: "single",
31887
+ optional: false
31888
+ }],
31889
+ "deviceManager.adoptionResync": [{
31890
+ name: "camDeviceId",
31891
+ form: "single",
31892
+ optional: false
31893
+ }],
31894
+ "deviceManager.applyInitialMeta": [{
31895
+ name: "deviceId",
31896
+ form: "single",
31897
+ optional: false
31898
+ }, {
31899
+ name: "linkDeviceId",
31900
+ form: "single",
31901
+ optional: true
31902
+ }],
31903
+ "deviceManager.disable": [{
31904
+ name: "deviceId",
31905
+ form: "single",
31906
+ optional: false
31907
+ }],
31908
+ "deviceManager.enable": [{
31909
+ name: "deviceId",
31910
+ form: "single",
31911
+ optional: false
31912
+ }],
31913
+ "deviceManager.getBindings": [{
31914
+ name: "deviceId",
31915
+ form: "single",
31916
+ optional: false
31917
+ }],
31918
+ "deviceManager.getChildren": [{
31919
+ name: "parentDeviceId",
31920
+ form: "single",
31921
+ optional: false
31922
+ }],
31923
+ "deviceManager.getConfigSchema": [{
31924
+ name: "deviceId",
31925
+ form: "single",
31926
+ optional: false
31927
+ }],
31928
+ "deviceManager.getDevice": [{
31929
+ name: "deviceId",
31930
+ form: "single",
31931
+ optional: false
31932
+ }],
31933
+ "deviceManager.getDeviceAggregate": [{
31934
+ name: "deviceId",
31935
+ form: "single",
31936
+ optional: false
31937
+ }],
31938
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31939
+ name: "deviceId",
31940
+ form: "single",
31941
+ optional: false
31942
+ }],
31943
+ "deviceManager.getDeviceSettingsAggregate": [{
31944
+ name: "deviceId",
31945
+ form: "single",
31946
+ optional: false
31947
+ }],
31948
+ "deviceManager.getDeviceStatusAggregate": [{
31949
+ name: "deviceId",
31950
+ form: "single",
31951
+ optional: false
31952
+ }],
31953
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31954
+ name: "deviceIds",
31955
+ form: "array",
31956
+ optional: false
31957
+ }],
31958
+ "deviceManager.getLinkedDevices": [{
31959
+ name: "deviceId",
31960
+ form: "single",
31961
+ optional: false
31962
+ }],
31963
+ "deviceManager.getSettingsSchema": [{
31964
+ name: "deviceId",
31965
+ form: "single",
31966
+ optional: false
31967
+ }],
31968
+ "deviceManager.getStreamProfileMap": [{
31969
+ name: "deviceId",
31970
+ form: "single",
31971
+ optional: false
31972
+ }],
31973
+ "deviceManager.getStreamSources": [{
31974
+ name: "deviceId",
31975
+ form: "single",
31976
+ optional: false
31977
+ }],
31978
+ "deviceManager.getWireableFields": [{
31979
+ name: "deviceId",
31980
+ form: "single",
31981
+ optional: false
31982
+ }],
31983
+ "deviceManager.loadConfig": [{
31984
+ name: "deviceId",
31985
+ form: "single",
31986
+ optional: false
31987
+ }],
31988
+ "deviceManager.loadMeta": [{
31989
+ name: "deviceId",
31990
+ form: "single",
31991
+ optional: false
31992
+ }],
31993
+ "deviceManager.loadRuntimeState": [{
31994
+ name: "deviceId",
31995
+ form: "single",
31996
+ optional: false
31997
+ }],
31998
+ "deviceManager.persistConfig": [{
31999
+ name: "deviceId",
32000
+ form: "single",
32001
+ optional: false
32002
+ }],
32003
+ "deviceManager.probeStreams": [{
32004
+ name: "deviceId",
32005
+ form: "single",
32006
+ optional: false
32007
+ }],
32008
+ "deviceManager.registerDevice": [{
32009
+ name: "parentDeviceId",
32010
+ form: "single",
32011
+ optional: true
32012
+ }],
32013
+ "deviceManager.remove": [{
32014
+ name: "deviceId",
32015
+ form: "single",
32016
+ optional: false
32017
+ }],
32018
+ "deviceManager.removeDevice": [{
32019
+ name: "deviceId",
32020
+ form: "single",
32021
+ optional: false
32022
+ }],
32023
+ "deviceManager.runDeviceAction": [{
32024
+ name: "deviceId",
32025
+ form: "single",
32026
+ optional: false
32027
+ }],
32028
+ "deviceManager.setChildLayout": [{
32029
+ name: "deviceId",
32030
+ form: "single",
32031
+ optional: false
32032
+ }],
32033
+ "deviceManager.setDisabled": [{
32034
+ name: "deviceId",
32035
+ form: "single",
32036
+ optional: false
32037
+ }],
32038
+ "deviceManager.setDisplay": [{
32039
+ name: "deviceId",
32040
+ form: "single",
32041
+ optional: false
32042
+ }],
32043
+ "deviceManager.setIntegrationId": [{
32044
+ name: "deviceId",
32045
+ form: "single",
32046
+ optional: false
32047
+ }],
32048
+ "deviceManager.setLinkDeviceId": [{
32049
+ name: "deviceId",
32050
+ form: "single",
32051
+ optional: false
32052
+ }, {
32053
+ name: "linkDeviceId",
32054
+ form: "single",
32055
+ optional: true
32056
+ }],
32057
+ "deviceManager.setLocation": [{
32058
+ name: "deviceId",
32059
+ form: "single",
32060
+ optional: false
32061
+ }],
32062
+ "deviceManager.setMetadata": [{
32063
+ name: "deviceId",
32064
+ form: "single",
32065
+ optional: false
32066
+ }],
32067
+ "deviceManager.setName": [{
32068
+ name: "deviceId",
32069
+ form: "single",
32070
+ optional: false
32071
+ }],
32072
+ "deviceManager.setPrimaryChildEntityId": [{
32073
+ name: "deviceId",
32074
+ form: "single",
32075
+ optional: false
32076
+ }],
32077
+ "deviceManager.setRole": [{
32078
+ name: "deviceId",
32079
+ form: "single",
32080
+ optional: false
32081
+ }],
32082
+ "deviceManager.setStreamProfileMap": [{
32083
+ name: "deviceId",
32084
+ form: "single",
32085
+ optional: false
32086
+ }],
32087
+ "deviceManager.setType": [{
32088
+ name: "deviceId",
32089
+ form: "single",
32090
+ optional: false
32091
+ }],
32092
+ "deviceManager.setWrapperActive": [{
32093
+ name: "deviceId",
32094
+ form: "single",
32095
+ optional: false
32096
+ }],
32097
+ "deviceManager.testField": [{
32098
+ name: "deviceId",
32099
+ form: "single",
32100
+ optional: false
32101
+ }],
32102
+ "deviceManager.updateConfig": [{
32103
+ name: "deviceId",
32104
+ form: "single",
32105
+ optional: false
32106
+ }],
32107
+ "deviceManager.updateDeviceField": [{
32108
+ name: "deviceId",
32109
+ form: "single",
32110
+ optional: false
32111
+ }],
32112
+ "deviceManager.updateDeviceFieldsBatch": [{
32113
+ name: "deviceId",
32114
+ form: "single",
32115
+ optional: false
32116
+ }],
32117
+ "deviceOps.getConfigEntries": [{
32118
+ name: "deviceId",
32119
+ form: "single",
32120
+ optional: false
32121
+ }],
32122
+ "deviceOps.getRawState": [{
32123
+ name: "deviceId",
32124
+ form: "single",
32125
+ optional: false
32126
+ }],
32127
+ "deviceOps.getSettingsSchema": [{
32128
+ name: "deviceId",
32129
+ form: "single",
32130
+ optional: false
32131
+ }],
32132
+ "deviceOps.getStreamSources": [{
32133
+ name: "deviceId",
32134
+ form: "single",
32135
+ optional: false
32136
+ }],
32137
+ "deviceOps.removeDevice": [{
32138
+ name: "deviceId",
32139
+ form: "single",
32140
+ optional: false
32141
+ }],
32142
+ "deviceOps.runAction": [{
32143
+ name: "deviceId",
32144
+ form: "single",
32145
+ optional: false
32146
+ }],
32147
+ "deviceOps.setConfig": [{
32148
+ name: "deviceId",
32149
+ form: "single",
32150
+ optional: false
32151
+ }],
32152
+ "deviceState.getCapSlice": [{
32153
+ name: "deviceId",
32154
+ form: "single",
32155
+ optional: false
32156
+ }],
32157
+ "deviceState.getSnapshot": [{
32158
+ name: "deviceId",
32159
+ form: "single",
32160
+ optional: false
32161
+ }],
32162
+ "deviceState.setCapSlice": [{
32163
+ name: "deviceId",
32164
+ form: "single",
32165
+ optional: false
32166
+ }],
32167
+ "events.getEventClipUrl": [{
32168
+ name: "deviceId",
32169
+ form: "single",
32170
+ optional: false
32171
+ }],
32172
+ "events.getEvents": [{
32173
+ name: "deviceId",
32174
+ form: "single",
32175
+ optional: false
32176
+ }],
32177
+ "events.getEventThumbnail": [{
32178
+ name: "deviceId",
32179
+ form: "single",
32180
+ optional: false
32181
+ }],
32182
+ "faceGallery.getFaceByTrack": [{
32183
+ name: "deviceId",
32184
+ form: "single",
32185
+ optional: false
32186
+ }],
32187
+ "faceGallery.listRecentFaces": [{
32188
+ name: "deviceId",
32189
+ form: "single",
32190
+ optional: true
32191
+ }],
32192
+ "fanControl.setDirection": [{
32193
+ name: "deviceId",
32194
+ form: "single",
32195
+ optional: false
32196
+ }],
32197
+ "fanControl.setOscillating": [{
32198
+ name: "deviceId",
32199
+ form: "single",
32200
+ optional: false
32201
+ }],
32202
+ "fanControl.setPercentage": [{
32203
+ name: "deviceId",
32204
+ form: "single",
32205
+ optional: false
32206
+ }],
32207
+ "fanControl.setPreset": [{
32208
+ name: "deviceId",
32209
+ form: "single",
32210
+ optional: false
32211
+ }],
32212
+ "humidifier.setMode": [{
32213
+ name: "deviceId",
32214
+ form: "single",
32215
+ optional: false
32216
+ }],
32217
+ "humidifier.setOn": [{
32218
+ name: "deviceId",
32219
+ form: "single",
32220
+ optional: false
32221
+ }],
32222
+ "humidifier.setTargetHumidity": [{
32223
+ name: "deviceId",
32224
+ form: "single",
32225
+ optional: false
32226
+ }],
32227
+ "imageSettings.getOptions": [{
32228
+ name: "deviceId",
32229
+ form: "single",
32230
+ optional: false
32231
+ }],
32232
+ "imageSettings.setSettings": [{
32233
+ name: "deviceId",
32234
+ form: "single",
32235
+ optional: false
32236
+ }],
32237
+ "intercom.endTalkSession": [{
32238
+ name: "deviceId",
32239
+ form: "single",
32240
+ optional: false
32241
+ }],
32242
+ "intercom.handleAnswer": [{
32243
+ name: "deviceId",
32244
+ form: "single",
32245
+ optional: false
32246
+ }],
32247
+ "intercom.pushTalkAudio": [{
32248
+ name: "deviceId",
32249
+ form: "single",
32250
+ optional: false
32251
+ }],
32252
+ "intercom.startSession": [{
32253
+ name: "deviceId",
32254
+ form: "single",
32255
+ optional: false
32256
+ }],
32257
+ "intercom.startTalkSession": [{
32258
+ name: "deviceId",
32259
+ form: "single",
32260
+ optional: false
32261
+ }],
32262
+ "intercom.stopSession": [{
32263
+ name: "deviceId",
32264
+ form: "single",
32265
+ optional: false
32266
+ }],
32267
+ "lawnMowerControl.dock": [{
32268
+ name: "deviceId",
32269
+ form: "single",
32270
+ optional: false
32271
+ }],
32272
+ "lawnMowerControl.pause": [{
32273
+ name: "deviceId",
32274
+ form: "single",
32275
+ optional: false
32276
+ }],
32277
+ "lawnMowerControl.startMowing": [{
32278
+ name: "deviceId",
32279
+ form: "single",
32280
+ optional: false
32281
+ }],
32282
+ "lockControl.lock": [{
32283
+ name: "deviceId",
32284
+ form: "single",
32285
+ optional: false
32286
+ }],
32287
+ "lockControl.open": [{
32288
+ name: "deviceId",
32289
+ form: "single",
32290
+ optional: false
32291
+ }],
32292
+ "lockControl.unlock": [{
32293
+ name: "deviceId",
32294
+ form: "single",
32295
+ optional: false
32296
+ }],
32297
+ "mediaPlayer.next": [{
32298
+ name: "deviceId",
32299
+ form: "single",
32300
+ optional: false
32301
+ }],
32302
+ "mediaPlayer.pause": [{
32303
+ name: "deviceId",
32304
+ form: "single",
32305
+ optional: false
32306
+ }],
32307
+ "mediaPlayer.play": [{
32308
+ name: "deviceId",
32309
+ form: "single",
32310
+ optional: false
32311
+ }],
32312
+ "mediaPlayer.playMedia": [{
32313
+ name: "deviceId",
32314
+ form: "single",
32315
+ optional: false
32316
+ }],
32317
+ "mediaPlayer.previous": [{
32318
+ name: "deviceId",
32319
+ form: "single",
32320
+ optional: false
32321
+ }],
32322
+ "mediaPlayer.seek": [{
32323
+ name: "deviceId",
32324
+ form: "single",
32325
+ optional: false
32326
+ }],
32327
+ "mediaPlayer.selectSource": [{
32328
+ name: "deviceId",
32329
+ form: "single",
32330
+ optional: false
32331
+ }],
32332
+ "mediaPlayer.setMute": [{
32333
+ name: "deviceId",
32334
+ form: "single",
32335
+ optional: false
32336
+ }],
32337
+ "mediaPlayer.setRepeat": [{
32338
+ name: "deviceId",
32339
+ form: "single",
32340
+ optional: false
32341
+ }],
32342
+ "mediaPlayer.setShuffle": [{
32343
+ name: "deviceId",
32344
+ form: "single",
32345
+ optional: false
32346
+ }],
32347
+ "mediaPlayer.setVolume": [{
32348
+ name: "deviceId",
32349
+ form: "single",
32350
+ optional: false
32351
+ }],
32352
+ "mediaPlayer.stop": [{
32353
+ name: "deviceId",
32354
+ form: "single",
32355
+ optional: false
32356
+ }],
32357
+ "motion.isDetected": [{
32358
+ name: "deviceId",
32359
+ form: "single",
32360
+ optional: false
32361
+ }],
32362
+ "motionDetection.analyze": [{
32363
+ name: "deviceId",
32364
+ form: "single",
32365
+ optional: false
32366
+ }],
32367
+ "motionDetection.removeCamera": [{
32368
+ name: "deviceId",
32369
+ form: "single",
32370
+ optional: false
32371
+ }],
32372
+ "motionTrigger.setMotionTrigger": [{
32373
+ name: "deviceId",
32374
+ form: "single",
32375
+ optional: false
32376
+ }],
32377
+ "motionZones.getOptions": [{
32378
+ name: "deviceId",
32379
+ form: "single",
32380
+ optional: false
32381
+ }],
32382
+ "motionZones.setZone": [{
32383
+ name: "deviceId",
32384
+ form: "single",
32385
+ optional: false
32386
+ }],
32387
+ "nativeObjectDetection.setEnabled": [{
32388
+ name: "deviceId",
32389
+ form: "single",
32390
+ optional: false
32391
+ }],
32392
+ "networkQuality.getDeviceStats": [{
32393
+ name: "deviceId",
32394
+ form: "single",
32395
+ optional: false
32396
+ }],
32397
+ "networkQuality.reportClientStats": [{
32398
+ name: "deviceId",
32399
+ form: "single",
32400
+ optional: false
32401
+ }],
32402
+ "notificationRules.setDeviceMuted": [{
32403
+ name: "deviceId",
32404
+ form: "single",
32405
+ optional: false
32406
+ }],
32407
+ "notifier.cancel": [{
32408
+ name: "deviceId",
32409
+ form: "single",
32410
+ optional: false
32411
+ }],
32412
+ "notifier.send": [{
32413
+ name: "deviceId",
32414
+ form: "single",
32415
+ optional: false
32416
+ }],
32417
+ "osd.setOverlay": [{
32418
+ name: "deviceId",
32419
+ form: "single",
32420
+ optional: false
32421
+ }],
32422
+ "osdManager.clearSlotBinding": [{
32423
+ name: "deviceId",
32424
+ form: "single",
32425
+ optional: false
32426
+ }],
32427
+ "osdManager.copyDeviceConfiguration": [{
32428
+ name: "sourceDeviceId",
32429
+ form: "single",
32430
+ optional: false
32431
+ }, {
32432
+ name: "targetDeviceId",
32433
+ form: "single",
32434
+ optional: false
32435
+ }],
32436
+ "osdManager.getDeviceOsd": [{
32437
+ name: "deviceId",
32438
+ form: "single",
32439
+ optional: false
32440
+ }],
32441
+ "osdManager.getSourceCatalog": [{
32442
+ name: "deviceId",
32443
+ form: "single",
32444
+ optional: false
32445
+ }],
32446
+ "osdManager.previewSlot": [{
32447
+ name: "deviceId",
32448
+ form: "single",
32449
+ optional: false
32450
+ }],
32451
+ "osdManager.renderDevice": [{
32452
+ name: "deviceId",
32453
+ form: "single",
32454
+ optional: false
32455
+ }],
32456
+ "osdManager.setSlotBinding": [{
32457
+ name: "deviceId",
32458
+ form: "single",
32459
+ optional: false
32460
+ }],
32461
+ "petFeeder.callPet": [{
32462
+ name: "deviceId",
32463
+ form: "single",
32464
+ optional: false
32465
+ }],
32466
+ "petFeeder.cancelFeed": [{
32467
+ name: "deviceId",
32468
+ form: "single",
32469
+ optional: false
32470
+ }],
32471
+ "petFeeder.feed": [{
32472
+ name: "deviceId",
32473
+ form: "single",
32474
+ optional: false
32475
+ }],
32476
+ "petFeeder.markFoodReplenished": [{
32477
+ name: "deviceId",
32478
+ form: "single",
32479
+ optional: false
32480
+ }],
32481
+ "petFeeder.playSound": [{
32482
+ name: "deviceId",
32483
+ form: "single",
32484
+ optional: false
32485
+ }],
32486
+ "petFeeder.resetDesiccant": [{
32487
+ name: "deviceId",
32488
+ form: "single",
32489
+ optional: false
32490
+ }],
32491
+ "petFeeder.setChildLock": [{
32492
+ name: "deviceId",
32493
+ form: "single",
32494
+ optional: false
32495
+ }],
32496
+ "petFeeder.setFeedSound": [{
32497
+ name: "deviceId",
32498
+ form: "single",
32499
+ optional: false
32500
+ }],
32501
+ "petFeeder.setIndicatorLight": [{
32502
+ name: "deviceId",
32503
+ form: "single",
32504
+ optional: false
32505
+ }],
32506
+ "petFeeder.setVolume": [{
32507
+ name: "deviceId",
32508
+ form: "single",
32509
+ optional: false
32510
+ }],
32511
+ "pipelineAnalytics.clearTracks": [{
32512
+ name: "deviceId",
32513
+ form: "single",
32514
+ optional: false
32515
+ }],
32516
+ "pipelineAnalytics.completeRetrainTrack": [{
32517
+ name: "deviceId",
32518
+ form: "single",
32519
+ optional: false
32520
+ }],
32521
+ "pipelineAnalytics.deleteDeviceEvents": [{
32522
+ name: "deviceId",
32523
+ form: "single",
32524
+ optional: false
32525
+ }],
32526
+ "pipelineAnalytics.deleteTracks": [{
32527
+ name: "deviceId",
32528
+ form: "single",
32529
+ optional: false
32530
+ }],
32531
+ "pipelineAnalytics.deselectRetrainFrame": [{
32532
+ name: "deviceId",
32533
+ form: "single",
32534
+ optional: false
32535
+ }],
32536
+ "pipelineAnalytics.getActiveTracks": [{
32537
+ name: "deviceId",
32538
+ form: "single",
32539
+ optional: false
32540
+ }],
32541
+ "pipelineAnalytics.getAudioEvents": [{
32542
+ name: "deviceId",
32543
+ form: "single",
32544
+ optional: false
32545
+ }],
32546
+ "pipelineAnalytics.getEventDensity": [{
32547
+ name: "deviceId",
32548
+ form: "single",
32549
+ optional: false
32550
+ }],
32551
+ "pipelineAnalytics.getEventMedia": [{
32552
+ name: "deviceId",
32553
+ form: "single",
32554
+ optional: false
32555
+ }],
32556
+ "pipelineAnalytics.getKeyEvents": [{
32557
+ name: "deviceId",
32558
+ form: "single",
32559
+ optional: false
32560
+ }],
32561
+ "pipelineAnalytics.getMotionEvents": [{
32562
+ name: "deviceId",
32563
+ form: "single",
32564
+ optional: false
32565
+ }],
32566
+ "pipelineAnalytics.getObjectEvents": [{
32567
+ name: "deviceId",
32568
+ form: "single",
32569
+ optional: false
32570
+ }],
32571
+ "pipelineAnalytics.getRetrainExportUrl": [{
32572
+ name: "deviceIds",
32573
+ form: "array",
32574
+ optional: true
32575
+ }],
32576
+ "pipelineAnalytics.getSensorEvents": [{
32577
+ name: "deviceId",
32578
+ form: "single",
32579
+ optional: false
32580
+ }],
32581
+ "pipelineAnalytics.getTrack": [{
32582
+ name: "deviceId",
32583
+ form: "single",
32584
+ optional: false
32585
+ }],
32586
+ "pipelineAnalytics.getTrackMedia": [{
32587
+ name: "deviceId",
32588
+ form: "single",
32589
+ optional: false
32590
+ }],
32591
+ "pipelineAnalytics.getTrainingExportSummary": [{
32592
+ name: "deviceIds",
32593
+ form: "array",
32594
+ optional: true
32595
+ }],
32596
+ "pipelineAnalytics.getTrainingExportUrl": [{
32597
+ name: "deviceIds",
32598
+ form: "array",
32599
+ optional: true
32600
+ }],
32601
+ "pipelineAnalytics.listEventKinds": [{
32602
+ name: "deviceId",
32603
+ form: "single",
32604
+ optional: false
32605
+ }],
32606
+ "pipelineAnalytics.listEventKindsBatch": [{
32607
+ name: "deviceIds",
32608
+ form: "array",
32609
+ optional: false
32610
+ }],
32611
+ "pipelineAnalytics.listOpsLog": [{
32612
+ name: "deviceId",
32613
+ form: "single",
32614
+ optional: true
32615
+ }],
32616
+ "pipelineAnalytics.listRecentTracks": [{
32617
+ name: "deviceIds",
32618
+ form: "array",
32619
+ optional: false
32620
+ }],
32621
+ "pipelineAnalytics.listRetrainStaging": [{
32622
+ name: "deviceIds",
32623
+ form: "array",
32624
+ optional: true
32625
+ }],
32626
+ "pipelineAnalytics.listTrackMedia": [{
32627
+ name: "deviceId",
32628
+ form: "single",
32629
+ optional: false
32630
+ }],
32631
+ "pipelineAnalytics.listTracks": [{
32632
+ name: "deviceId",
32633
+ form: "single",
32634
+ optional: false
32635
+ }],
32636
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32637
+ name: "deviceId",
32638
+ form: "single",
32639
+ optional: false
32640
+ }],
32641
+ "pipelineAnalytics.pruneEventsBefore": [{
32642
+ name: "deviceId",
32643
+ form: "single",
32644
+ optional: false
32645
+ }],
32646
+ "pipelineAnalytics.pruneTracksBefore": [{
32647
+ name: "deviceId",
32648
+ form: "single",
32649
+ optional: false
32650
+ }],
32651
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32652
+ name: "deviceId",
32653
+ form: "single",
32654
+ optional: true
32655
+ }],
32656
+ "pipelineAnalytics.restageRetrainTrack": [{
32657
+ name: "deviceId",
32658
+ form: "single",
32659
+ optional: false
32660
+ }],
32661
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32662
+ name: "deviceId",
32663
+ form: "single",
32664
+ optional: false
32665
+ }],
32666
+ "pipelineAnalytics.searchObjectEvents": [{
32667
+ name: "deviceId",
32668
+ form: "single",
32669
+ optional: true
32670
+ }],
32671
+ "pipelineAnalytics.selectRetrainFrames": [{
32672
+ name: "deviceId",
32673
+ form: "single",
32674
+ optional: false
32675
+ }],
32676
+ "pipelineAnalytics.setTrackFlags": [{
32677
+ name: "deviceId",
32678
+ form: "single",
32679
+ optional: false
32680
+ }],
32681
+ "pipelineAnalytics.wipeAllAnalytics": [{
32682
+ name: "deviceId",
32683
+ form: "single",
32684
+ optional: false
32685
+ }],
32686
+ "pipelineExecutor.runPipeline": [{
32687
+ name: "deviceId",
32688
+ form: "single",
32689
+ optional: true
32690
+ }],
32691
+ "pipelineExecutor.runPipelineBatch": [{
32692
+ name: "deviceId",
32693
+ form: "single",
32694
+ optional: true
32695
+ }],
32696
+ "pipelineOrchestrator.assignAudio": [{
32697
+ name: "deviceId",
32698
+ form: "single",
32699
+ optional: false
32700
+ }],
32701
+ "pipelineOrchestrator.assignPipeline": [{
32702
+ name: "deviceId",
32703
+ form: "single",
32704
+ optional: false
32705
+ }],
32706
+ "pipelineOrchestrator.getAudioAssignment": [{
32707
+ name: "deviceId",
32708
+ form: "single",
32709
+ optional: false
32710
+ }],
32711
+ "pipelineOrchestrator.getCameraMetrics": [{
32712
+ name: "deviceId",
32713
+ form: "single",
32714
+ optional: false
32715
+ }],
32716
+ "pipelineOrchestrator.getCameraSettings": [{
32717
+ name: "deviceId",
32718
+ form: "single",
32719
+ optional: false
32720
+ }],
32721
+ "pipelineOrchestrator.getCameraStatus": [{
32722
+ name: "deviceId",
32723
+ form: "single",
32724
+ optional: false
32725
+ }],
32726
+ "pipelineOrchestrator.getCameraStatuses": [{
32727
+ name: "deviceIds",
32728
+ form: "array",
32729
+ optional: true
32730
+ }],
32731
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32732
+ name: "deviceId",
32733
+ form: "single",
32734
+ optional: false
32735
+ }],
32736
+ "pipelineOrchestrator.getCameraSwitches": [{
32737
+ name: "deviceId",
32738
+ form: "single",
32739
+ optional: false
32740
+ }],
32741
+ "pipelineOrchestrator.getPipelineAssignment": [{
32742
+ name: "deviceId",
32743
+ form: "single",
32744
+ optional: false
32745
+ }],
32746
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32747
+ name: "deviceId",
32748
+ form: "single",
32749
+ optional: false
32750
+ }],
32751
+ "pipelineOrchestrator.resolvePipeline": [{
32752
+ name: "deviceId",
32753
+ form: "single",
32754
+ optional: false
32755
+ }],
32756
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32757
+ name: "deviceId",
32758
+ form: "single",
32759
+ optional: false
32760
+ }],
32761
+ "pipelineOrchestrator.setCameraStepOverride": [{
32762
+ name: "deviceId",
32763
+ form: "single",
32764
+ optional: false
32765
+ }],
32766
+ "pipelineOrchestrator.setCameraStepToggle": [{
32767
+ name: "deviceId",
32768
+ form: "single",
32769
+ optional: false
32770
+ }],
32771
+ "pipelineOrchestrator.setCameraSwitch": [{
32772
+ name: "deviceId",
32773
+ form: "single",
32774
+ optional: false
32775
+ }],
32776
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32777
+ name: "deviceId",
32778
+ form: "single",
32779
+ optional: false
32780
+ }],
32781
+ "pipelineOrchestrator.unassignAudio": [{
32782
+ name: "deviceId",
32783
+ form: "single",
32784
+ optional: false
32785
+ }],
32786
+ "pipelineOrchestrator.unassignPipeline": [{
32787
+ name: "deviceId",
32788
+ form: "single",
32789
+ optional: false
32790
+ }],
32791
+ "pipelineRunner.attachCamera": [{
32792
+ name: "deviceId",
32793
+ form: "single",
32794
+ optional: false
32795
+ }],
32796
+ "pipelineRunner.detachCamera": [{
32797
+ name: "deviceId",
32798
+ form: "single",
32799
+ optional: false
32800
+ }],
32801
+ "pipelineRunner.getCameraMetrics": [{
32802
+ name: "deviceId",
32803
+ form: "single",
32804
+ optional: false
32805
+ }],
32806
+ "pipelineRunner.reportMotion": [{
32807
+ name: "deviceId",
32808
+ form: "single",
32809
+ optional: false
32810
+ }],
32811
+ "pipelineRunner.runDetailSubtree": [{
32812
+ name: "deviceId",
32813
+ form: "single",
32814
+ optional: false
32815
+ }],
32816
+ "pipelineRunner.runStatelessStep": [{
32817
+ name: "sourceDeviceId",
32818
+ form: "single",
32819
+ optional: false
32820
+ }],
32821
+ "plateGallery.getPlateByTrack": [{
32822
+ name: "deviceId",
32823
+ form: "single",
32824
+ optional: false
32825
+ }],
32826
+ "plateGallery.listPlates": [{
32827
+ name: "deviceId",
32828
+ form: "single",
32829
+ optional: true
32830
+ }],
32831
+ "privacyMask.getOptions": [{
32832
+ name: "deviceId",
32833
+ form: "single",
32834
+ optional: false
32835
+ }],
32836
+ "privacyMask.setAudioEnabled": [{
32837
+ name: "deviceId",
32838
+ form: "single",
32839
+ optional: false
32840
+ }],
32841
+ "privacyMask.setMask": [{
32842
+ name: "deviceId",
32843
+ form: "single",
32844
+ optional: false
32845
+ }],
32846
+ "ptz.continuousMove": [{
32847
+ name: "deviceId",
32848
+ form: "single",
32849
+ optional: false
32850
+ }],
32851
+ "ptz.deletePreset": [{
32852
+ name: "deviceId",
32853
+ form: "single",
32854
+ optional: false
32855
+ }],
32856
+ "ptz.getOptions": [{
32857
+ name: "deviceId",
32858
+ form: "single",
32859
+ optional: false
32860
+ }],
32861
+ "ptz.getPosition": [{
32862
+ name: "deviceId",
32863
+ form: "single",
32864
+ optional: false
32865
+ }],
32866
+ "ptz.getPresets": [{
32867
+ name: "deviceId",
32868
+ form: "single",
32869
+ optional: false
32870
+ }],
32871
+ "ptz.goHome": [{
32872
+ name: "deviceId",
32873
+ form: "single",
32874
+ optional: false
32875
+ }],
32876
+ "ptz.goToPreset": [{
32877
+ name: "deviceId",
32878
+ form: "single",
32879
+ optional: false
32880
+ }],
32881
+ "ptz.move": [{
32882
+ name: "deviceId",
32883
+ form: "single",
32884
+ optional: false
32885
+ }],
32886
+ "ptz.savePreset": [{
32887
+ name: "deviceId",
32888
+ form: "single",
32889
+ optional: false
32890
+ }],
32891
+ "ptz.setAutofocus": [{
32892
+ name: "deviceId",
32893
+ form: "single",
32894
+ optional: false
32895
+ }],
32896
+ "ptz.stop": [{
32897
+ name: "deviceId",
32898
+ form: "single",
32899
+ optional: false
32900
+ }],
32901
+ "ptzAutotrack.getSettings": [{
32902
+ name: "deviceId",
32903
+ form: "single",
32904
+ optional: false
32905
+ }],
32906
+ "ptzAutotrack.getStatus": [{
32907
+ name: "deviceId",
32908
+ form: "single",
32909
+ optional: false
32910
+ }],
32911
+ "ptzAutotrack.setEnabled": [{
32912
+ name: "deviceId",
32913
+ form: "single",
32914
+ optional: false
32915
+ }],
32916
+ "ptzAutotrack.setSettings": [{
32917
+ name: "deviceId",
32918
+ form: "single",
32919
+ optional: false
32920
+ }],
32921
+ "reboot.reboot": [{
32922
+ name: "deviceId",
32923
+ form: "single",
32924
+ optional: false
32925
+ }],
32926
+ "recording.deleteFootprint": [{
32927
+ name: "deviceId",
32928
+ form: "single",
32929
+ optional: false
32930
+ }],
32931
+ "recording.getAvailability": [{
32932
+ name: "deviceId",
32933
+ form: "single",
32934
+ optional: false
32935
+ }],
32936
+ "recording.getDaysWithRecordings": [{
32937
+ name: "deviceId",
32938
+ form: "single",
32939
+ optional: false
32940
+ }],
32941
+ "recording.getDeviceConfig": [{
32942
+ name: "deviceId",
32943
+ form: "single",
32944
+ optional: false
32945
+ }],
32946
+ "recording.getPlaybackManifest": [{
32947
+ name: "deviceId",
32948
+ form: "single",
32949
+ optional: false
32950
+ }],
32951
+ "recording.listOpsLog": [{
32952
+ name: "deviceId",
32953
+ form: "single",
32954
+ optional: true
32955
+ }],
32956
+ "recording.locateSegment": [{
32957
+ name: "deviceId",
32958
+ form: "single",
32959
+ optional: false
32960
+ }],
32961
+ "recording.pruneFootage": [{
32962
+ name: "deviceId",
32963
+ form: "single",
32964
+ optional: false
32965
+ }],
32966
+ "recording.readGopBytes": [{
32967
+ name: "deviceId",
32968
+ form: "single",
32969
+ optional: false
32970
+ }],
32971
+ "recording.readSegmentBytes": [{
32972
+ name: "deviceId",
32973
+ form: "single",
32974
+ optional: false
32975
+ }],
32976
+ "recording.relocateFootage": [{
32977
+ name: "deviceId",
32978
+ form: "single",
32979
+ optional: true
32980
+ }],
32981
+ "recording.renderClip": [{
32982
+ name: "deviceId",
32983
+ form: "single",
32984
+ optional: false
32985
+ }],
32986
+ "recording.renderGif": [{
32987
+ name: "deviceId",
32988
+ form: "single",
32989
+ optional: false
32990
+ }],
32991
+ "recording.rescanStorage": [{
32992
+ name: "deviceId",
32993
+ form: "single",
32994
+ optional: false
32995
+ }],
32996
+ "recording.setDeviceConfig": [{
32997
+ name: "deviceId",
32998
+ form: "single",
32999
+ optional: false
33000
+ }],
33001
+ "recording.startStorageMigrationMove": [{
33002
+ name: "deviceId",
33003
+ form: "single",
33004
+ optional: true
33005
+ }],
33006
+ "recordingExport.createExport": [{
33007
+ name: "deviceId",
33008
+ form: "single",
33009
+ optional: false
33010
+ }],
33011
+ "recordingExport.listExports": [{
33012
+ name: "deviceId",
33013
+ form: "single",
33014
+ optional: true
33015
+ }],
33016
+ "sceneMonitor.captureReference": [{
33017
+ name: "deviceId",
33018
+ form: "single",
33019
+ optional: false
33020
+ }],
33021
+ "sceneMonitor.createScene": [{
33022
+ name: "deviceId",
33023
+ form: "single",
33024
+ optional: false
33025
+ }],
33026
+ "sceneMonitor.deleteReference": [{
33027
+ name: "deviceId",
33028
+ form: "single",
33029
+ optional: false
33030
+ }],
33031
+ "sceneMonitor.deleteScene": [{
33032
+ name: "deviceId",
33033
+ form: "single",
33034
+ optional: false
33035
+ }],
33036
+ "sceneMonitor.listScenes": [{
33037
+ name: "deviceId",
33038
+ form: "single",
33039
+ optional: false
33040
+ }],
33041
+ "sceneMonitor.recheckNow": [{
33042
+ name: "deviceId",
33043
+ form: "single",
33044
+ optional: false
33045
+ }],
33046
+ "sceneMonitor.resetScene": [{
33047
+ name: "deviceId",
33048
+ form: "single",
33049
+ optional: false
33050
+ }],
33051
+ "sceneMonitor.updateScene": [{
33052
+ name: "deviceId",
33053
+ form: "single",
33054
+ optional: false
33055
+ }],
33056
+ "scriptRunner.run": [{
33057
+ name: "deviceId",
33058
+ form: "single",
33059
+ optional: false
33060
+ }],
33061
+ "scriptRunner.stop": [{
33062
+ name: "deviceId",
33063
+ form: "single",
33064
+ optional: false
33065
+ }],
33066
+ "snapshot.getDebugState": [{
33067
+ name: "deviceId",
33068
+ form: "single",
33069
+ optional: false
33070
+ }],
33071
+ "snapshot.getSnapshot": [{
33072
+ name: "deviceId",
33073
+ form: "single",
33074
+ optional: false
33075
+ }],
33076
+ "snapshot.getSnapshotLinks": [{
33077
+ name: "targets",
33078
+ form: "object-array",
33079
+ optional: false,
33080
+ itemField: "deviceId"
33081
+ }],
33082
+ "snapshot.getSnapshotOverview": [{
33083
+ name: "deviceIds",
33084
+ form: "array",
33085
+ optional: false
33086
+ }],
33087
+ "snapshot.invalidateCache": [{
33088
+ name: "deviceId",
33089
+ form: "single",
33090
+ optional: false
33091
+ }],
33092
+ "streamBroker.acquireEgressTranscode": [{
33093
+ name: "deviceId",
33094
+ form: "single",
33095
+ optional: false
33096
+ }],
33097
+ "streamBroker.assignProfile": [{
33098
+ name: "deviceId",
33099
+ form: "single",
33100
+ optional: false
33101
+ }],
33102
+ "streamBroker.getDeviceAudioMute": [{
33103
+ name: "deviceId",
33104
+ form: "single",
33105
+ optional: false
33106
+ }],
33107
+ "streamBroker.getStreamWithCodec": [{
33108
+ name: "deviceId",
33109
+ form: "single",
33110
+ optional: false
33111
+ }],
33112
+ "streamBroker.produceEventMedia": [{
33113
+ name: "deviceId",
33114
+ form: "single",
33115
+ optional: false
33116
+ }],
33117
+ "streamBroker.publishCameraStream": [{
33118
+ name: "deviceId",
33119
+ form: "single",
33120
+ optional: false
33121
+ }],
33122
+ "streamBroker.renderPreBufferClip": [{
33123
+ name: "deviceId",
33124
+ form: "single",
33125
+ optional: false
33126
+ }],
33127
+ "streamBroker.restartProfile": [{
33128
+ name: "deviceId",
33129
+ form: "single",
33130
+ optional: false
33131
+ }],
33132
+ "streamBroker.retractCameraStream": [{
33133
+ name: "deviceId",
33134
+ form: "single",
33135
+ optional: false
33136
+ }],
33137
+ "streamBroker.setDeviceAudioMute": [{
33138
+ name: "deviceId",
33139
+ form: "single",
33140
+ optional: false
33141
+ }],
33142
+ "streamBroker.unassignProfile": [{
33143
+ name: "deviceId",
33144
+ form: "single",
33145
+ optional: false
33146
+ }],
33147
+ "streamCatalog.getCatalog": [{
33148
+ name: "deviceId",
33149
+ form: "single",
33150
+ optional: false
33151
+ }],
33152
+ "streamParams.getConfigSchema": [{
33153
+ name: "deviceId",
33154
+ form: "single",
33155
+ optional: false
33156
+ }],
33157
+ "streamParams.getOptions": [{
33158
+ name: "deviceId",
33159
+ form: "single",
33160
+ optional: false
33161
+ }],
33162
+ "streamParams.setProfile": [{
33163
+ name: "deviceId",
33164
+ form: "single",
33165
+ optional: false
33166
+ }],
33167
+ "switch.setState": [{
33168
+ name: "deviceId",
33169
+ form: "single",
33170
+ optional: false
33171
+ }],
33172
+ "vacuumControl.locate": [{
33173
+ name: "deviceId",
33174
+ form: "single",
33175
+ optional: false
33176
+ }],
33177
+ "vacuumControl.pause": [{
33178
+ name: "deviceId",
33179
+ form: "single",
33180
+ optional: false
33181
+ }],
33182
+ "vacuumControl.returnToBase": [{
33183
+ name: "deviceId",
33184
+ form: "single",
33185
+ optional: false
33186
+ }],
33187
+ "vacuumControl.setFanSpeed": [{
33188
+ name: "deviceId",
33189
+ form: "single",
33190
+ optional: false
33191
+ }],
33192
+ "vacuumControl.start": [{
33193
+ name: "deviceId",
33194
+ form: "single",
33195
+ optional: false
33196
+ }],
33197
+ "vacuumControl.stop": [{
33198
+ name: "deviceId",
33199
+ form: "single",
33200
+ optional: false
33201
+ }],
33202
+ "valve.close": [{
33203
+ name: "deviceId",
33204
+ form: "single",
33205
+ optional: false
33206
+ }],
33207
+ "valve.open": [{
33208
+ name: "deviceId",
33209
+ form: "single",
33210
+ optional: false
33211
+ }],
33212
+ "valve.setPosition": [{
33213
+ name: "deviceId",
33214
+ form: "single",
33215
+ optional: false
33216
+ }],
33217
+ "valve.stop": [{
33218
+ name: "deviceId",
33219
+ form: "single",
33220
+ optional: false
33221
+ }],
33222
+ "videoclips.getClipPlayback": [{
33223
+ name: "deviceId",
33224
+ form: "single",
33225
+ optional: false
33226
+ }],
33227
+ "videoclips.listClips": [{
33228
+ name: "deviceId",
33229
+ form: "single",
33230
+ optional: false
33231
+ }],
33232
+ "waterHeater.setAway": [{
33233
+ name: "deviceId",
33234
+ form: "single",
33235
+ optional: false
33236
+ }],
33237
+ "waterHeater.setOperationMode": [{
33238
+ name: "deviceId",
33239
+ form: "single",
33240
+ optional: false
33241
+ }],
33242
+ "waterHeater.setTargetTemp": [{
33243
+ name: "deviceId",
33244
+ form: "single",
33245
+ optional: false
33246
+ }],
33247
+ "webrtcSession.addIceCandidate": [{
33248
+ name: "deviceId",
33249
+ form: "single",
33250
+ optional: false
33251
+ }],
33252
+ "webrtcSession.closeSession": [{
33253
+ name: "deviceId",
33254
+ form: "single",
33255
+ optional: false
33256
+ }],
33257
+ "webrtcSession.createSession": [{
33258
+ name: "deviceId",
33259
+ form: "single",
33260
+ optional: false
33261
+ }],
33262
+ "webrtcSession.getIceCandidates": [{
33263
+ name: "deviceId",
33264
+ form: "single",
33265
+ optional: false
33266
+ }],
33267
+ "webrtcSession.getSessionState": [{
33268
+ name: "deviceId",
33269
+ form: "single",
33270
+ optional: false
33271
+ }],
33272
+ "webrtcSession.handleAnswer": [{
33273
+ name: "deviceId",
33274
+ form: "single",
33275
+ optional: false
33276
+ }],
33277
+ "webrtcSession.handleOffer": [{
33278
+ name: "deviceId",
33279
+ form: "single",
33280
+ optional: false
33281
+ }],
33282
+ "webrtcSession.hasAdaptiveBitrate": [{
33283
+ name: "deviceId",
33284
+ form: "single",
33285
+ optional: false
33286
+ }],
33287
+ "webrtcSession.listStreams": [{
33288
+ name: "deviceId",
33289
+ form: "single",
33290
+ optional: false
33291
+ }],
33292
+ "zoneAnalytics.getCameraHistory": [{
33293
+ name: "deviceId",
33294
+ form: "single",
33295
+ optional: false
33296
+ }],
33297
+ "zoneAnalytics.getCurrentSnapshot": [{
33298
+ name: "deviceId",
33299
+ form: "single",
33300
+ optional: false
33301
+ }],
33302
+ "zoneAnalytics.getUnzonedHistory": [{
33303
+ name: "deviceId",
33304
+ form: "single",
33305
+ optional: false
33306
+ }],
33307
+ "zoneAnalytics.getZoneHistory": [{
33308
+ name: "deviceId",
33309
+ form: "single",
33310
+ optional: false
33311
+ }],
33312
+ "zoneRules.listRules": [{
33313
+ name: "deviceId",
33314
+ form: "single",
33315
+ optional: false
33316
+ }],
33317
+ "zoneRules.setRules": [{
33318
+ name: "deviceId",
33319
+ form: "single",
33320
+ optional: false
33321
+ }],
33322
+ "zones.addZone": [{
33323
+ name: "deviceId",
33324
+ form: "single",
33325
+ optional: false
33326
+ }],
33327
+ "zones.listZones": [{
33328
+ name: "deviceId",
33329
+ form: "single",
33330
+ optional: false
33331
+ }],
33332
+ "zones.removeZone": [{
33333
+ name: "deviceId",
33334
+ form: "single",
33335
+ optional: false
33336
+ }],
33337
+ "zones.updateZone": [{
33338
+ name: "deviceId",
33339
+ form: "single",
33340
+ optional: false
33341
+ }]
33342
+ });
30738
33343
  Object.freeze({
30739
33344
  "broker": "broker",
30740
33345
  "device-export": "device-export",