@camstack/addon-smtp-nodemailer 1.2.16 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
38
  //#endregion
39
- //#region ../types/dist/event-category-Cv9dO26A.mjs
39
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
40
40
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
41
41
  EventCategory["SystemBoot"] = "system.boot";
42
42
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -243,6 +243,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
243
243
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
244
244
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
245
245
  /**
246
+ * A node the orchestrator would otherwise place cameras on has NO usable
247
+ * inference device: the operator enabled one or more accelerators there and
248
+ * the live probe reports every one of them unavailable. Emitted once per
249
+ * TRANSITION into that state (never per dispatch), and the node is dropped
250
+ * from the placement candidate set for as long as it holds.
251
+ *
252
+ * This exists because the state was previously invisible: little-unraid
253
+ * absorbed 283k inference errors in a day while still being handed cameras,
254
+ * and nothing in the system said so.
255
+ *
256
+ * A node with no accelerators configured at all is NOT this — its devices
257
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
258
+ * serves it exactly as before.
259
+ */
260
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
261
+ /**
262
+ * A camera has an OPEN detection session and has produced no detection at
263
+ * all for longer than the blind threshold — the camera is being decoded and
264
+ * inferred and is returning nothing. Emitted once per transition into blind,
265
+ * per camera.
266
+ *
267
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
268
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
269
+ * camera" produce byte-identical silence.
270
+ */
271
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
272
+ /**
246
273
  * Per-camera pipeline config was mutated by the orchestrator
247
274
  * (3-level settings change via `setAgentAddonDefaults` /
248
275
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3034,6 +3061,9 @@ function handlePipeResult(left, next, ctx) {
3034
3061
  fallback: left.fallback
3035
3062
  }, ctx);
3036
3063
  }
3064
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3065
+ $ZodPipe.init(inst, def);
3066
+ });
3037
3067
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3038
3068
  $ZodType.init(inst, def);
3039
3069
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5219,6 +5249,10 @@ function pipe(in_, out) {
5219
5249
  out
5220
5250
  });
5221
5251
  }
5252
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5253
+ ZodPipe.init(inst, def);
5254
+ $ZodPreprocess.init(inst, def);
5255
+ });
5222
5256
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5223
5257
  $ZodReadonly.init(inst, def);
5224
5258
  ZodType.init(inst, def);
@@ -5277,6 +5311,13 @@ function _instanceof(cls, params = {}) {
5277
5311
  };
5278
5312
  return inst;
5279
5313
  }
5314
+ function preprocess(fn, schema) {
5315
+ return new ZodPreprocess({
5316
+ type: "pipe",
5317
+ in: transform(fn),
5318
+ out: schema
5319
+ });
5320
+ }
5280
5321
  //#endregion
5281
5322
  //#region ../../node_modules/zod/v4/classic/compat.js
5282
5323
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10795,6 +10836,8 @@ var QueryFilterSchema = object({
10795
10836
  where: record(string(), unknown()).optional(),
10796
10837
  whereIn: record(string(), array(unknown())).optional(),
10797
10838
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10839
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10840
+ whereNot: record(string(), unknown()).optional(),
10798
10841
  orderBy: object({
10799
10842
  field: string(),
10800
10843
  direction: _enum(["asc", "desc"])
@@ -10814,7 +10857,8 @@ var QueryFilterSchema = object({
10814
10857
  var MutationFilterSchema = object({
10815
10858
  where: record(string(), unknown()).optional(),
10816
10859
  whereIn: record(string(), array(unknown())).optional(),
10817
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10860
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10861
+ whereNot: record(string(), unknown()).optional()
10818
10862
  });
10819
10863
  /** A single stored record: `{ id, data }`. */
10820
10864
  var SettingsRecordSchema = object({
@@ -12171,6 +12215,17 @@ var LlmImageSchema = object({
12171
12215
  bytes: _instanceof(Uint8Array),
12172
12216
  mimeType: string()
12173
12217
  });
12218
+ /**
12219
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12220
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12221
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12222
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12223
+ */
12224
+ var LlmRetryPolicySchema = object({
12225
+ enabled: boolean().default(false),
12226
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12227
+ maxAttempts: number().int().min(1).max(5).default(1)
12228
+ });
12174
12229
  var LlmGenerateBaseInputSchema = object({
12175
12230
  /** Collection routing (the notification-output posture). */
12176
12231
  addonId: string().optional(),
@@ -12185,7 +12240,28 @@ var LlmGenerateBaseInputSchema = object({
12185
12240
  jsonSchema: record(string(), unknown()).optional(),
12186
12241
  /** Per-call override of the profile default. */
12187
12242
  maxTokens: number().int().positive().optional(),
12188
- temperature: number().optional()
12243
+ temperature: number().optional(),
12244
+ /** Per-call override of the profile default (nucleus sampling). */
12245
+ topP: number().min(0).max(1).optional(),
12246
+ /** Per-call override of the profile default (top-k sampling). */
12247
+ topK: number().int().positive().optional(),
12248
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12249
+ timeoutMs: number().int().positive().optional(),
12250
+ /** Per-call override; beats both the consumer table and the profile. */
12251
+ retry: LlmRetryPolicySchema.optional(),
12252
+ /**
12253
+ * Caller-minted id that makes this generation CANCELLABLE.
12254
+ *
12255
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12256
+ * the call against 8 s and free their own slot when the timer wins, while the
12257
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12258
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12259
+ * not generations, and the real load is unbounded.
12260
+ *
12261
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12262
+ * `llm.cancel({ requestId })` tears the socket down.
12263
+ */
12264
+ requestId: string().optional()
12189
12265
  });
12190
12266
  /**
12191
12267
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12198,6 +12274,18 @@ var LlmGenerateBaseInputSchema = object({
12198
12274
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12199
12275
  * watchdog — operator decision #3).
12200
12276
  */
12277
+ /**
12278
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12279
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12280
+ * REF rather than looked up at install time, so what the operator approved in
12281
+ * the preview is exactly what the node downloads.
12282
+ */
12283
+ var ManagedModelExtraFileSchema = object({
12284
+ url: string(),
12285
+ filename: string(),
12286
+ sizeBytes: number(),
12287
+ sha256: string().optional()
12288
+ });
12201
12289
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12202
12290
  object({
12203
12291
  kind: literal("catalog"),
@@ -12206,7 +12294,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12206
12294
  object({
12207
12295
  kind: literal("url"),
12208
12296
  url: string(),
12209
- sha256: string().optional()
12297
+ sha256: string().optional(),
12298
+ /** Picker/status label; the file basename when absent. */
12299
+ label: string().optional(),
12300
+ sizeBytes: number().optional(),
12301
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12210
12302
  }),
12211
12303
  object({
12212
12304
  kind: literal("path"),
@@ -12224,13 +12316,82 @@ var ManagedRuntimeConfigSchema = object({
12224
12316
  gpuLayers: number().int().default(0),
12225
12317
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12226
12318
  threads: number().int().optional(),
12227
- /** Concurrent slots. */
12319
+ /** Concurrent slots (`--parallel`). */
12228
12320
  parallel: number().int().default(1),
12321
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12322
+ batchSize: number().int().positive().optional(),
12323
+ /** Physical batch / micro-batch (`-ub`). */
12324
+ ubatchSize: number().int().positive().optional(),
12325
+ /**
12326
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12327
+ * is a no-op elsewhere, so it is offered rather than assumed.
12328
+ */
12329
+ flashAttention: boolean().default(false),
12330
+ /**
12331
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12332
+ * inference. Costs the full model size in resident memory — which is exactly
12333
+ * what the RAM budget is counting.
12334
+ */
12335
+ mlock: boolean().default(false),
12336
+ /**
12337
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12338
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12339
+ * store produces on every first token.
12340
+ */
12341
+ noMmap: boolean().default(false),
12342
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12343
+ * cheapest way to fit a longer context in the same RAM. */
12344
+ cacheTypeK: _enum([
12345
+ "f32",
12346
+ "f16",
12347
+ "q8_0",
12348
+ "q5_1",
12349
+ "q5_0",
12350
+ "q4_1",
12351
+ "q4_0"
12352
+ ]).optional(),
12353
+ cacheTypeV: _enum([
12354
+ "f32",
12355
+ "f16",
12356
+ "q8_0",
12357
+ "q5_1",
12358
+ "q5_0",
12359
+ "q4_1",
12360
+ "q4_0"
12361
+ ]).optional(),
12362
+ /**
12363
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12364
+ * (which most vision chat templates need and some language-only models
12365
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12366
+ *
12367
+ * It is NOT a second place to set the flags above. A token that collides
12368
+ * with a typed field is REJECTED at start, naming the field that owns it
12369
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12370
+ * the "two switches that disagree" failure this repo has already shipped
12371
+ * twice (D62).
12372
+ */
12373
+ extraArgs: array(string()).default([]),
12229
12374
  /** Else lazy: first generate boots it. */
12230
12375
  autoStart: boolean().default(false),
12231
12376
  /** 0 = never; frees RAM after quiet periods. */
12232
12377
  idleStopMinutes: number().int().default(30)
12233
12378
  });
12379
+ /**
12380
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12381
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12382
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12383
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12384
+ */
12385
+ var LlmDownloadProgressSchema = object({
12386
+ phase: _enum(["downloading", "verifying"]),
12387
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12388
+ file: string(),
12389
+ fileIndex: number().int(),
12390
+ fileCount: number().int(),
12391
+ /** Across the WHOLE install, not the current file. */
12392
+ downloadedBytes: number(),
12393
+ totalBytes: number().optional()
12394
+ });
12234
12395
  var LlmRuntimeStatusSchema = object({
12235
12396
  /** Status is ALWAYS node-qualified. */
12236
12397
  nodeId: string(),
@@ -12247,6 +12408,8 @@ var LlmRuntimeStatusSchema = object({
12247
12408
  modelPath: string().optional(),
12248
12409
  modelId: string().optional(),
12249
12410
  downloadProgress: number().min(0).max(1).optional(),
12411
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12412
+ download: LlmDownloadProgressSchema.optional(),
12250
12413
  lastError: string().optional(),
12251
12414
  crashesInWindow: number(),
12252
12415
  /** Child RSS (sampled best-effort). */
@@ -12257,7 +12420,14 @@ var LlmNodeModelSchema = object({
12257
12420
  file: string(),
12258
12421
  sizeBytes: number(),
12259
12422
  catalogId: string().optional(),
12260
- installedAt: number().optional()
12423
+ installedAt: number().optional(),
12424
+ /**
12425
+ * Absolute path on the node. Present so a file that is on disk but matches
12426
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12427
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12428
+ * it the picker could list such a file and do nothing with it.
12429
+ */
12430
+ path: string().optional()
12261
12431
  });
12262
12432
  var LlmRuntimeDiskUsageSchema = object({
12263
12433
  nodeId: string(),
@@ -12313,10 +12483,47 @@ var LlmProfileSchema = object({
12313
12483
  baseUrl: string().optional(),
12314
12484
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12315
12485
  apiKey: string().optional(),
12486
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12487
+ * degraded to text — that shipped once and produced a confident answer to a
12488
+ * question about a picture nobody sent. */
12316
12489
  supportsVision: boolean(),
12317
12490
  temperature: number().min(0).max(2).optional(),
12491
+ /** Nucleus sampling. Every wire we speak has it. */
12492
+ topP: number().min(0).max(1).optional(),
12493
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12494
+ * wire does, and the client drops it there (measured: the request body gets
12495
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12496
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12497
+ topK: number().int().positive().optional(),
12318
12498
  maxTokens: number().int().positive().optional(),
12499
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12500
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12501
+ * the model with, so it is the one field that changes a PROCESS. */
12502
+ contextLength: number().int().positive().optional(),
12503
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12504
+ * two system prompts fighting is worse than either alone). */
12505
+ systemPrompt: string().optional(),
12506
+ /** Total generation bound — the only one a unary call has. */
12319
12507
  timeoutMs: number().int().positive().default(6e4),
12508
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12509
+ * response headers: on the LM Studio / llama-server wire those are written
12510
+ * once the model has finished loading, so they belong to the bound below. */
12511
+ connectTimeoutMs: number().int().positive().default(1e4),
12512
+ /** Accepted, but no output yet — response headers included, because a cold
12513
+ * GPU load is exactly what happens before them. */
12514
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12515
+ /** Output started then stopped. */
12516
+ idleTimeoutMs: number().int().positive().default(6e4),
12517
+ /** Profile-level default. The per-consumer table and a per-call override
12518
+ * both beat it — see `resolveRetryPolicy`. */
12519
+ retry: LlmRetryPolicySchema.default({
12520
+ enabled: false,
12521
+ maxAttempts: 1
12522
+ }),
12523
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12524
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12525
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12526
+ toolsEnabled: boolean().default(false),
12320
12527
  extraHeaders: record(string(), string()).optional(),
12321
12528
  /** kind === 'managed-local' only (spec §4). */
12322
12529
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12366,6 +12573,36 @@ var ManagedModelCatalogEntrySchema = object({
12366
12573
  /** Vision models: companion projector file. */
12367
12574
  mmprojUrl: string().optional()
12368
12575
  });
12576
+ /**
12577
+ * The outcome of turning one operator-typed Hugging Face reference into a
12578
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12579
+ * I will not pick for you" is a normal answer the UI has to render, not an
12580
+ * exception.
12581
+ *
12582
+ * `candidates` is the whole reason the refusal is usable — every string in it
12583
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12584
+ */
12585
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12586
+ ok: literal(true),
12587
+ /** Ready to hand to `installModel` unchanged. */
12588
+ model: ManagedModelRefSchema,
12589
+ label: string(),
12590
+ repo: string(),
12591
+ quantization: string(),
12592
+ purpose: _enum(["text", "vision"]),
12593
+ totalBytes: number(),
12594
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12595
+ * see that 0.9 GB of it is a projector they did not name. */
12596
+ extraFilenames: array(string())
12597
+ }), object({
12598
+ ok: literal(false),
12599
+ code: string(),
12600
+ message: string(),
12601
+ candidates: array(string()).optional(),
12602
+ /** Set when the refusal was only the ceiling: re-calling with
12603
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12604
+ requiredBytes: number().optional()
12605
+ })]);
12369
12606
  var LlmRuntimeNodeSchema = object({
12370
12607
  nodeId: string(),
12371
12608
  reachable: boolean(),
@@ -12378,7 +12615,10 @@ var ProfileRefInputSchema = object({
12378
12615
  addonId: string(),
12379
12616
  profileId: string()
12380
12617
  });
12381
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12618
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12619
+ addonId: string().optional(),
12620
+ requestId: string()
12621
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12382
12622
  kind: "mutation",
12383
12623
  auth: "admin"
12384
12624
  }), method(ProfileRefInputSchema, _void(), {
@@ -12399,6 +12639,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12399
12639
  consumer: string().optional(),
12400
12640
  profileId: string().optional()
12401
12641
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12642
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12643
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12644
+ ref: string(),
12645
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12646
+ maxBytes: number().positive().optional()
12647
+ }), HfModelResolutionSchema, {
12648
+ kind: "mutation",
12649
+ auth: "admin"
12650
+ }), method(object({
12402
12651
  nodeId: string(),
12403
12652
  model: ManagedModelRefSchema
12404
12653
  }), _void(), {
@@ -14008,6 +14257,8 @@ var NcSystemEventKindSchema = _enum([
14008
14257
  "stream-offline",
14009
14258
  "node-online",
14010
14259
  "node-offline",
14260
+ "node-inference-unavailable",
14261
+ "detection-blind",
14011
14262
  "addon-update-available",
14012
14263
  "server-update-available",
14013
14264
  "alarm-triggered",
@@ -14069,7 +14320,16 @@ var NcScheduleSchema = object({
14069
14320
  });
14070
14321
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14071
14322
  var NcPlateMatcherSchema = object({
14072
- values: array(string().min(1)).min(1),
14323
+ /**
14324
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14325
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14326
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14327
+ * rather than merely seen. A subject carrying no plate still fails.
14328
+ *
14329
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14330
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14331
+ */
14332
+ values: array(string().min(1)),
14073
14333
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14074
14334
  maxDistance: number().int().min(0).max(3).default(1)
14075
14335
  });
@@ -14103,28 +14363,36 @@ var NcOccupancyConditionSchema = object({
14103
14363
  /**
14104
14364
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14105
14365
  *
14106
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14107
- * reference notifier uses, so an operator moving between them re-uses what
14108
- * they already know): a rule matches when, over a sampling window of
14109
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14110
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14111
- *
14112
- * - `dbThreshold` its level is at or above this many dBFS (see
14113
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14114
- * - `labels` the classifier put at least one of these labels on it.
14115
- *
14116
- * Both are OPTIONAL and independent, which is the point of the shape: a
14117
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14118
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14119
- * is given** a window in which every sample is trivially a hit would fire on
14120
- * silence, so the engine refuses such a condition rather than notifying on
14121
- * nothing (the schema cannot express "at least one of" without becoming a
14122
- * ZodEffects the cap path would have to special-case).
14123
- *
14124
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14125
- * must be FULL before it can match a window that has been open for two
14126
- * seconds of its ten is 100% of nothing, and firing on it would make
14127
- * `samplingSeconds` decorative.
14366
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14367
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14368
+ * there is no second switch that can disagree with the first and every rule
14369
+ * authored before the decision migrates for free (`audioModeOf`):
14370
+ *
14371
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14372
+ * classifier labels with one of them. No window, no percentage:
14373
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14374
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14375
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14376
+ * reaches this condition if the classifier was already confident enough.
14377
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14378
+ * the condition: at least `hitPercent`% of the samples over
14379
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14380
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14381
+ * must be FULL before it can match a window open for two of its ten
14382
+ * seconds is 100% of nothing.
14383
+ *
14384
+ * **Why label mode has no window.** It had one, and it never fired: the
14385
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14386
+ * of them per episode, even through continuous crying. The measured maximum
14387
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14388
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14389
+ * the wrong question to ask of a sparse classifier.
14390
+ *
14391
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14392
+ * and the rule would fire on silence. The schema cannot express "exactly one
14393
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14394
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14395
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14128
14396
  *
14129
14397
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14130
14398
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14132,13 +14400,13 @@ var NcOccupancyConditionSchema = object({
14132
14400
  * an operator who typed `dog` mean the same thing.
14133
14401
  */
14134
14402
  var NcAudioConditionSchema = object({
14135
- /** Audio macro labels; absent = any sound (level-only rule). */
14403
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14136
14404
  labels: array(string().min(1)).min(1).optional(),
14137
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14405
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14138
14406
  dbThreshold: number().min(-96).max(0).optional(),
14139
- /** Percentage of the window's samples that must be hits (1–100). */
14407
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14140
14408
  hitPercent: number().int().min(1).max(100).default(60),
14141
- /** Length of the sampling window in seconds. */
14409
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14142
14410
  samplingSeconds: number().int().min(1).max(300).default(10)
14143
14411
  });
14144
14412
  /**
@@ -14276,13 +14544,81 @@ var NcRuleActionsSchema = object({
14276
14544
  */
14277
14545
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14278
14546
  });
14547
+ /**
14548
+ * "This rule applies only while `deviceId` is in one of `states`."
14549
+ *
14550
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14551
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14552
+ * make the condition lie about devices whose states have no equivalent.
14553
+ *
14554
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14555
+ * condition that fired on "I could not read it" would be worse than no gate.
14556
+ */
14557
+ var NcDeviceStateConditionSchema = object({
14558
+ deviceId: number().int(),
14559
+ /** Any of these matches. */
14560
+ states: array(string().min(1)).min(1)
14561
+ });
14562
+ /**
14563
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14564
+ *
14565
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14566
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14567
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14568
+ * already has a trigger ("tell me about a person at the front door, but only
14569
+ * while the bin is still out"). That is why it composes with every delivery
14570
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14571
+ * kind exist for it — see D159.
14572
+ *
14573
+ * ── Identity ───────────────────────────────────────────────────────────────
14574
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14575
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14576
+ * carried as a HINT for the editor and for the log line, never as part of the
14577
+ * lookup key: a rule whose hint drifted must still gate correctly.
14578
+ *
14579
+ * ── Which boolean ──────────────────────────────────────────────────────────
14580
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14581
+ * already declares which boolean drives notification rules, and a second knob
14582
+ * that could disagree with it is exactly the D62 failure. Set it only to
14583
+ * override one rule against the scene's own default.
14584
+ *
14585
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14586
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14587
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14588
+ * evidence, in either direction.
14589
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14590
+ * The latch is a durable fact about the past ("it has diverged since I armed
14591
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14592
+ * reason the operator asked for a latch.
14593
+ *
14594
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14595
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14596
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14597
+ * said out loud in the log rather than dropped in silence.
14598
+ */
14599
+ var NcSceneConditionSchema = object({
14600
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14601
+ sceneId: string().min(1),
14602
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14603
+ deviceId: number().int().optional(),
14604
+ /** The state the scene must be in for the rule to fire. */
14605
+ requiredState: _enum(["matched", "diverged"]),
14606
+ /**
14607
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14608
+ * scene's own `emit` field, which is the only place that decision belongs.
14609
+ */
14610
+ latched: boolean().optional()
14611
+ });
14279
14612
  var NcConditionsSchema = object({
14280
14613
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14281
- deviceState: object({
14282
- deviceId: number().int(),
14283
- /** Any of these matches. */
14284
- states: array(string().min(1)).min(1)
14285
- }).optional(),
14614
+ deviceState: NcDeviceStateConditionSchema.optional(),
14615
+ /**
14616
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14617
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14618
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14619
+ * {@link NcSceneCondition} and D159.
14620
+ */
14621
+ scene: NcSceneConditionSchema.optional(),
14286
14622
  /** Device scope — absent = all devices. */
14287
14623
  devices: array(number()).optional(),
14288
14624
  /** Detector class names (any overlap with the record's class set). */
@@ -14308,18 +14644,47 @@ var NcConditionsSchema = object({
14308
14644
  */
14309
14645
  labelEquals: array(string().min(1)).optional(),
14310
14646
  /**
14311
- * Identity matcher. P1 boundary: matched against the record's collapsed
14312
- * `label` (the identity display name propagated by the face pipeline) —
14313
- * identity-ID matching rides in P2 when identity ids reach the record.
14647
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14648
+ * is about recognised people at all.
14649
+ *
14650
+ * Three states, and the empty one is the point:
14651
+ *
14652
+ * | value | meaning |
14653
+ * | --- | --- |
14654
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14655
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14656
+ * | a list | only these identities |
14657
+ *
14658
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14659
+ * `devices` list is every device), applied one level down: the operator has
14660
+ * turned the face scope ON and narrowed it to nothing, which is every known
14661
+ * face. No second field states the same thing — a switch that can disagree
14662
+ * with the list under it is worse than no switch (D62).
14663
+ *
14664
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14665
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14666
+ * the operator fixed the spelling. The id reaches the record on
14667
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14668
+ * `{{label}}` renders.
14669
+ *
14670
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14671
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14672
+ * for is left as it stands and reported, never dropped. The engine also
14673
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14674
+ * migration could not resolve keeps matching exactly what it matched before.
14314
14675
  */
14315
14676
  identities: array(string().min(1)).optional(),
14316
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14677
+ /**
14678
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14679
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14680
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14681
+ */
14317
14682
  plates: NcPlateMatcherSchema.optional(),
14318
14683
  /**
14319
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14320
- * Same P1 boundary: matched against the record's collapsed `label` (the
14321
- * identity display name). A record with NO label passes (nothing to
14322
- * exclude), unlike the include variant which fails on an absent label.
14684
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14685
+ * the same id members and the same lazy name→id migration. A record with NO
14686
+ * identity passes (nothing to exclude), unlike the include variant which
14687
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14323
14688
  */
14324
14689
  identitiesExclude: array(string().min(1)).optional(),
14325
14690
  /**
@@ -14711,7 +15076,80 @@ var NcRuleInputSchema = object({
14711
15076
  * a rule that predates the gate must keep delivering byte-for-byte as it
14712
15077
  * did, and absent is the only way to say that without a migration.
14713
15078
  */
14714
- confirm: NcConfirmSchema.optional()
15079
+ confirm: NcConfirmSchema.optional(),
15080
+ /**
15081
+ * WAIT for face/plate recognition before saying anything.
15082
+ *
15083
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15084
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15085
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15086
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15087
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15088
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15089
+ *
15090
+ * Only two honest answers exist, and this flag picks between them. It has
15091
+ * effect ONLY on a rule that declares a recognition scope
15092
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15093
+ * other rule there is nothing to wait for and the flag is inert.
15094
+ *
15095
+ * | value | what happens |
15096
+ * | --- | --- |
15097
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15098
+ * | 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) |
15099
+ *
15100
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15101
+ * on the addon cap path, and absent has to keep meaning exactly what every
15102
+ * rule authored before this field meant.
15103
+ *
15104
+ * The cost of `true` is stated here because the editor states it too: a rule
15105
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15106
+ * tests every zone the track visited and a `crossing` condition can no longer
15107
+ * be satisfied, because a closed track carries no crossing.
15108
+ */
15109
+ waitForEnhancement: boolean().optional(),
15110
+ /**
15111
+ * GROUP a burst of subjects into ONE notification that grows.
15112
+ *
15113
+ * Seconds of quiet after the last matching subject before the burst is
15114
+ * considered over. While it is open, the first subject enqueues immediately —
15115
+ * **exactly as today, with no added latency** — and every real growth (a new
15116
+ * subject, or a name confirmed on one already in it) REPLACES that
15117
+ * notification with an updated one naming everybody. The push carries the
15118
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15119
+ *
15120
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15121
+ *
15122
+ * ### Why an idle cutoff and not a window
15123
+ *
15124
+ * The measured seven-person arrival on device 590 spans 110 s with every
15125
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15126
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15127
+ * 30 is Frigate's shipped value for the same decision.
15128
+ *
15129
+ * ### What it replaces
15130
+ *
15131
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15132
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15133
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15134
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15135
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15136
+ * budget over GROUPS — which is what it always meant — and a growth is never
15137
+ * throttled by the window its own first member spent.
15138
+ *
15139
+ * ### Interaction with {@link waitForEnhancement}
15140
+ *
15141
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15142
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15143
+ * CLOSE — already carrying its name — and grows as later members close. That
15144
+ * is later, and complete. With grouping alone the group opens on the first
15145
+ * object event and picks up names as they are confirmed, through the growth
15146
+ * path. Neither combination fires twice for one subject.
15147
+ *
15148
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15149
+ * on the addon cap path, so absent must keep meaning what it meant before this
15150
+ * field existed.
15151
+ */
15152
+ groupIdleSec: number().int().min(0).max(600).optional()
14715
15153
  });
14716
15154
  /**
14717
15155
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14818,6 +15256,7 @@ var NcConditionDescriptorSchema = object({
14818
15256
  "occupancy",
14819
15257
  "audio",
14820
15258
  "deviceState",
15259
+ "scene",
14821
15260
  "systemEvent"
14822
15261
  ]),
14823
15262
  operator: _enum([
@@ -15223,7 +15662,87 @@ var MethodAccessSchema = _enum([
15223
15662
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15224
15663
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15225
15664
  var CapScopeSchema = _enum(["device", "system"]);
15226
- var TokenScopeSchema = discriminatedUnion("type", [
15665
+ /**
15666
+ * DeviceSelector (scope model v3 — 2026-08-12).
15667
+ *
15668
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15669
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15670
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15671
+ * AFTER the grant was minted — no re-grant, no re-login.
15672
+ *
15673
+ * - `all` — every device in the deployment. The broad viewer/operator
15674
+ * lever without a `category` grant (a `category` grant also covers device
15675
+ * caps that carry no deviceId; `all` is specifically the device set).
15676
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15677
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15678
+ * is NOT covered until the grant is edited.
15679
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15680
+ * DYNAMIC. A device that changes type, or a new device of the type,
15681
+ * re-resolves on the next request.
15682
+ * - `locations` — every device whose operator-assigned `location` label is
15683
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15684
+ * null/unset location matches NO `locations` selector.
15685
+ */
15686
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15687
+ object({ kind: literal("all") }),
15688
+ object({
15689
+ kind: literal("ids"),
15690
+ ids: array(number().int()).min(1)
15691
+ }),
15692
+ object({
15693
+ kind: literal("types"),
15694
+ types: array(_enum(DeviceType)).min(1)
15695
+ }),
15696
+ object({
15697
+ kind: literal("locations"),
15698
+ locations: array(string().min(1)).min(1)
15699
+ })
15700
+ ]);
15701
+ var DeviceTokenScopeSchema = object({
15702
+ type: literal("device"),
15703
+ /** The device SET this grant covers — resolved against the live fleet. */
15704
+ selector: DeviceSelectorSchema,
15705
+ access: array(MethodAccessSchema).min(1),
15706
+ /**
15707
+ * Whether a grant on a PARENT device transparently covers its accessory
15708
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15709
+ * Direction is parent → children ONLY.
15710
+ *
15711
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15712
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15713
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15714
+ * operator must grant on the child, not inherit from the parent). Set it
15715
+ * explicitly to override that default per grant.
15716
+ */
15717
+ includeLinked: boolean().optional()
15718
+ });
15719
+ /**
15720
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15721
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15722
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15723
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15724
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15725
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15726
+ * migration cannot reach a JWT already in a client's hands; parse-time
15727
+ * migration covers both without a flag day. No cast — the raw object is read
15728
+ * through `Reflect.get` (its static type is `unknown`).
15729
+ */
15730
+ function migrateLegacyTokenScope(raw) {
15731
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15732
+ if (Reflect.get(raw, "type") !== "device") return raw;
15733
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15734
+ const targets = Reflect.get(raw, "targets");
15735
+ if (!Array.isArray(targets)) return raw;
15736
+ return {
15737
+ type: "device",
15738
+ selector: {
15739
+ kind: "ids",
15740
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15741
+ },
15742
+ access: Reflect.get(raw, "access")
15743
+ };
15744
+ }
15745
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15227
15746
  object({
15228
15747
  type: literal("category"),
15229
15748
  target: CapScopeSchema,
@@ -15239,18 +15758,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15239
15758
  target: string(),
15240
15759
  access: array(MethodAccessSchema).min(1)
15241
15760
  }),
15242
- object({
15243
- type: literal("device"),
15244
- /**
15245
- * One or more deviceIds (serialised as strings for wire-format
15246
- * consistency with the rest of the union). Matcher accepts if
15247
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15248
- * of one scope-per-device when granting access to a set of cameras.
15249
- */
15250
- targets: array(string()).min(1),
15251
- access: array(MethodAccessSchema).min(1)
15252
- })
15253
- ]);
15761
+ DeviceTokenScopeSchema
15762
+ ]));
15254
15763
  object({
15255
15764
  id: string(),
15256
15765
  username: string(),
@@ -15567,7 +16076,7 @@ var TrackEnvelopeSchema = object({
15567
16076
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15568
16077
  * keeps every scalar the list surfaces actually render (ids, class(es),
15569
16078
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15570
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16079
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15571
16080
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15572
16081
  * `getTrack`. Mirrors the event-store `projection` convention
15573
16082
  * (`getObjectEvents` et al.).
@@ -15703,7 +16212,21 @@ union([literal(1), literal(2)]);
15703
16212
  var LabelAttributionSchema = object({
15704
16213
  stepId: string(),
15705
16214
  modelId: string().optional(),
15706
- decidedAt: number()
16215
+ decidedAt: number(),
16216
+ /**
16217
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16218
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16219
+ *
16220
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16221
+ * notification rule authored on "Gianluca" stopped matching the moment the
16222
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16223
+ * the thing that does not move, so it is what a rule matches on
16224
+ * (`NcConditions.identities`) and the text is what a human is shown.
16225
+ *
16226
+ * Absent when the label names no gallery row — a plate the OCR read but no
16227
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16228
+ */
16229
+ identityId: string().optional()
15707
16230
  });
15708
16231
  /**
15709
16232
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15840,6 +16363,28 @@ var TrackSchema = object({
15840
16363
  * `=== true` and render nothing otherwise, never infer "no face".
15841
16364
  */
15842
16365
  hasFace: boolean().optional(),
16366
+ /**
16367
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16368
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16369
+ * so the passage is tracked once and as a VEHICLE.
16370
+ *
16371
+ * It exists because the fold's record was dishonest. D34 and the code both
16372
+ * said "the person is not lost — it is reported so both entities stay on the
16373
+ * record"; in fact the pair went into a per-processor RAM field behind an
16374
+ * accessor nobody called, and every durable surface said `vehicle`, full
16375
+ * stop. This is the composition note that makes the row true.
16376
+ *
16377
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16378
+ * person" is not an answer to "what is this" — both label tiers would refuse
16379
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16380
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16381
+ * and a `person` rule still does not fire for someone cycling past.
16382
+ *
16383
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16384
+ * the column, and every hub that predates the field, omits it. Test
16385
+ * `=== true` and render nothing otherwise — never infer "no rider".
16386
+ */
16387
+ hasRider: boolean().optional(),
15843
16388
  ...TrackFlagFields,
15844
16389
  ...TrackRetrainFields
15845
16390
  });
@@ -16189,7 +16734,10 @@ var RecentTracksQueryInput = object({
16189
16734
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16190
16735
  cursor: string().optional(),
16191
16736
  /** See {@link TrackProjectionSchema}. Default `full`. */
16192
- projection: TrackProjectionSchema.optional()
16737
+ projection: TrackProjectionSchema.optional(),
16738
+ /** Include stationary-promoted rows (parked objects). Default false: the
16739
+ * feed lists passages; parking records live on the stationary registry. */
16740
+ includeStationary: boolean().optional()
16193
16741
  });
16194
16742
  var RecentTracksPageSchema = object({
16195
16743
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16407,7 +16955,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16407
16955
  zone: TrackZoneFilterSchema.optional(),
16408
16956
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16409
16957
  * compatible — omitting the field keeps today's exact behaviour). */
16410
- projection: TrackProjectionSchema.optional()
16958
+ projection: TrackProjectionSchema.optional(),
16959
+ /** Include stationary-promoted rows (parked objects handed to the
16960
+ * stationary registry). Default false: the timeline lists passages,
16961
+ * not parking records (operator decision, 2026-08-15). */
16962
+ includeStationary: boolean().optional()
16411
16963
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16412
16964
  kind: "mutation",
16413
16965
  auth: "admin"
@@ -16571,11 +17123,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16571
17123
  auth: "admin"
16572
17124
  }), method(object({
16573
17125
  eventId: string(),
16574
- kind: MediaFileKindEnum.optional()
17126
+ kind: MediaFileKindEnum.optional(),
17127
+ deviceId: number()
16575
17128
  }), array(MediaFileSchema).readonly()), method(object({
16576
17129
  trackId: string(),
16577
- kinds: array(MediaFileKindEnum).optional()
16578
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17130
+ kinds: array(MediaFileKindEnum).optional(),
17131
+ deviceId: number()
17132
+ }), array(MediaFileSchema).readonly()), method(object({
17133
+ trackId: string(),
17134
+ deviceId: number()
17135
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16579
17136
  kind: "mutation",
16580
17137
  auth: "admin"
16581
17138
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17235,6 +17792,17 @@ var maxSessionHoldMsField = {
17235
17792
  default: 12e4,
17236
17793
  step: 5e3
17237
17794
  };
17795
+ /**
17796
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17797
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17798
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17799
+ */
17800
+ var audioMotionWindowMsField = {
17801
+ min: 5e3,
17802
+ max: 6e5,
17803
+ default: 9e4,
17804
+ step: 5e3
17805
+ };
17238
17806
  var motionFpsField = {
17239
17807
  min: 1,
17240
17808
  max: 30,
@@ -17266,7 +17834,7 @@ var detectionFpsField = {
17266
17834
  var occupancyRecheckSecField = {
17267
17835
  min: 0,
17268
17836
  max: 300,
17269
- default: 30,
17837
+ default: 300,
17270
17838
  step: 5
17271
17839
  };
17272
17840
  var occupancyRecheckFramesField = {
@@ -17411,6 +17979,27 @@ var RunnerCameraConfigSchema = object({
17411
17979
  * resolved `CameraDetectionConfig`.
17412
17980
  */
17413
17981
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
17982
+ /**
17983
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
17984
+ * 'on-motion'` audio window, measured from the LAST motion event.
17985
+ *
17986
+ * This exists because the falling edge cannot be relied on. Camera-native
17987
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
17988
+ * its email-push SMTP path both emit `detected: true` and never the
17989
+ * counterpart); only the frame-diff analyzer emits falls. So on an
17990
+ * onboard-only camera a window that closed only on `detected: false` never
17991
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
17992
+ * battery camera, the one failure mode the mode exists to prevent.
17993
+ *
17994
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
17995
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
17996
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
17997
+ *
17998
+ * Not consumed by the runner: carried here so it shares the per-camera
17999
+ * device-settings surface with `motionCooldownMs`, exactly like
18000
+ * `maxSessionHoldMs`.
18001
+ */
18002
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17414
18003
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17415
18004
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17416
18005
  motionStreamId: string(),
@@ -17506,7 +18095,7 @@ var RunnerCameraConfigSchema = object({
17506
18095
  */
17507
18096
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17508
18097
  });
17509
- 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;
18098
+ 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;
17510
18099
  /**
17511
18100
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17512
18101
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18505,7 +19094,31 @@ DeviceType.Camera, method(object({
18505
19094
  lastCapturedAt: number().nullable(),
18506
19095
  cacheAgeMs: number().nullable(),
18507
19096
  etag: string().nullable()
18508
- }))), systemMethod(object({
19097
+ }))), systemMethod(object({ deviceId: number() }), object({
19098
+ /** The battery slice as read, or null when the device has none. */
19099
+ battery: object({
19100
+ sleeping: boolean(),
19101
+ lastUpdated: number(),
19102
+ lastContactAt: number().optional()
19103
+ }).nullable(),
19104
+ /** The resolved snapshot state (what the overlay decision used). */
19105
+ state: object({
19106
+ isBattery: boolean(),
19107
+ reason: _enum([
19108
+ "disabled",
19109
+ "sleeping",
19110
+ "unreachable",
19111
+ "waking"
19112
+ ]).nullable()
19113
+ }),
19114
+ /** The cached frame behind the next paint. */
19115
+ frame: object({
19116
+ capturedAt: number().nullable(),
19117
+ ageMs: number().nullable()
19118
+ }),
19119
+ /** A wake window is currently open (the Waking overlay's source). */
19120
+ waking: boolean()
19121
+ })), systemMethod(object({
18509
19122
  /** The tiles a surface is actually rendering. One entry per (device,
18510
19123
  * width) the caller will paint — the width is snapped to the server's
18511
19124
  * ladder and becomes part of the link's SIGNED identity. */
@@ -18535,7 +19148,16 @@ targets: array(object({
18535
19148
  /** A sleeping battery camera: the frame is deliberately stale and will
18536
19149
  * NOT refresh in the background. A surface should say so rather than
18537
19150
  * present it as current. */
18538
- sleeping: boolean()
19151
+ sleeping: boolean(),
19152
+ /** Current device state rendered over the cached frame. State images
19153
+ * remain authoritative even when their photographic background is
19154
+ * old; null means the link must carry a current camera frame. */
19155
+ stateReason: _enum([
19156
+ "disabled",
19157
+ "sleeping",
19158
+ "unreachable",
19159
+ "waking"
19160
+ ]).nullable()
18539
19161
  })));
18540
19162
  /**
18541
19163
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20057,6 +20679,25 @@ var BatteryStatusSchema = object({
20057
20679
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20058
20680
  lastUpdated: number(),
20059
20681
  /**
20682
+ * Ms epoch of the last time the device PROVED it was reachable — a
20683
+ * completed firmware round-trip, an observed wake, or an inbound push
20684
+ * (firmware event, email). `0`/absent = never since this slice was born.
20685
+ *
20686
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20687
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20688
+ * for the radio, because a poll that confirms reachability is the same
20689
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20690
+ * single derivation every consumer must use; no surface computes its own.
20691
+ *
20692
+ * It is deliberately NOT a clock in the
20693
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20694
+ * observation itself, and it is the only thing a 30-hour silence is
20695
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20696
+ * Reolink provider) so a value that means "recently" cannot cost a
20697
+ * SQLite commit per round-trip.
20698
+ */
20699
+ lastContactAt: number().optional(),
20700
+ /**
20060
20701
  * True when the source is a BINARY low-battery indicator (HA
20061
20702
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20062
20703
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23594,7 +24235,7 @@ method(object({
23594
24235
  toMs: number()
23595
24236
  }), RecordingAvailabilitySchema, {
23596
24237
  kind: "query",
23597
- auth: "admin"
24238
+ auth: "protected"
23598
24239
  }), method(object({
23599
24240
  deviceId: number(),
23600
24241
  fromMs: number(),
@@ -23602,14 +24243,14 @@ method(object({
23602
24243
  tzOffsetMinutes: number()
23603
24244
  }), RecordingDaysSchema, {
23604
24245
  kind: "query",
23605
- auth: "admin"
24246
+ auth: "protected"
23606
24247
  }), method(object({
23607
24248
  deviceId: number(),
23608
24249
  fromMs: number(),
23609
24250
  toMs: number()
23610
24251
  }), RecordingManifestSchema, {
23611
24252
  kind: "query",
23612
- auth: "admin"
24253
+ auth: "protected"
23613
24254
  }), method(object({}), RecordingStorageUsageSchema, {
23614
24255
  kind: "query",
23615
24256
  auth: "admin"
@@ -23899,14 +24540,77 @@ method(object({
23899
24540
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23900
24541
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23901
24542
  *
23902
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
23903
- * derives the device-detail contribution; the provider carries NO hand-written
23904
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
23905
- * every hysteresis flip / availability change; consumers never poll.
23906
- */
23907
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23908
- * be added without a wire break (matching falls back to any-condition refs). */
24543
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24544
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24545
+ * for the thing: a scene is a standing question about the property ("is the bin
24546
+ * still out"), and the operator's question is "which of my scenes have tripped",
24547
+ * across every camera at once — not "what does camera 617 think". Buried one
24548
+ * camera deep it also could not be found. The surface is now a top-level admin
24549
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24550
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24551
+ *
24552
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24553
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24554
+ * directions, so a registration nobody declares fails exactly as loudly as a
24555
+ * declaration nobody registers. The editor is imported directly by the page.
24556
+ *
24557
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24558
+ * availability change; consumers never poll.
24559
+ */
24560
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24561
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24562
+ * Open by design so more can be added without a wire break.
24563
+ *
24564
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24565
+ * not comparable, so "I have never seen this scene in this light" is reported
24566
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24567
+ * collapses the cosine and would latch a false alarm every single night. */
23909
24568
  var SceneConditionSchema = string();
24569
+ /**
24570
+ * What a scene does when the CURRENT light has no reference of its own.
24571
+ *
24572
+ * The lighting variants are not equally likely to exist. Almost every operator
24573
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24574
+ * scene that is only ever going to be asked about a daytime question ("is the
24575
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24576
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24577
+ * working without it rather than degrading into a permanent complaint.
24578
+ *
24579
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24580
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24581
+ * last covered light left it at, the latch is untouched, and the hysteresis
24582
+ * run is neither spent nor cleared. The scene resumes by itself at first
24583
+ * light. This is the only behaviour under which "I never captured IR" is a
24584
+ * configuration choice instead of a nightly fault.
24585
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24586
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24587
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24588
+ * cross-condition cosines are not comparable, so a day reference against a
24589
+ * true IR frame collapses and the scene reports a theft at 21:40.
24590
+ *
24591
+ * Never applies when the scene has NO comparable reference at all — that is
24592
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24593
+ * there would hide a scene the operator never finished setting up.
24594
+ */
24595
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24596
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24597
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24598
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24599
+ * and never counts toward hysteresis in either direction. */
24600
+ var SceneVerdictSchema = _enum([
24601
+ "matched",
24602
+ "diverged",
24603
+ "unknown"
24604
+ ]);
24605
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24606
+ * silence that reads as "nothing has happened". */
24607
+ var SceneUnavailableSchema = _enum([
24608
+ "no-reference-for-condition",
24609
+ "view-shifted",
24610
+ "no-vision-profile",
24611
+ "encoder-model-changed",
24612
+ "no-snapshot"
24613
+ ]);
23910
24614
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23911
24615
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23912
24616
  var SceneReferenceSchema = object({
@@ -23914,7 +24618,14 @@ var SceneReferenceSchema = object({
23914
24618
  modelId: string(),
23915
24619
  condition: SceneConditionSchema,
23916
24620
  capturedAt: number(),
23917
- thumbnailMediaId: string().optional()
24621
+ thumbnailMediaId: string().optional(),
24622
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24623
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24624
+ * normalized rect frame a different piece of world, and the scene would
24625
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24626
+ * when hysteresis is about to flip — one extra encode per candidate
24627
+ * transition, not per poll. */
24628
+ anchorEmbedding: array(number()).optional()
23918
24629
  });
23919
24630
  var SceneMonitorStateSchema = object({
23920
24631
  id: string(),
@@ -23936,6 +24647,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
23936
24647
  profileId: string().optional(),
23937
24648
  hysteresisCount: number().int().positive()
23938
24649
  })]);
24650
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24651
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24652
+ * out in silence rather than reporting a fault every night. */
24653
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24654
+ /**
24655
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24656
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24657
+ *
24658
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24659
+ * fail-open: a notification suppressed is the worse error there, but a vision
24660
+ * model that timed out has not told us the bin is gone, and a latch is a
24661
+ * stateful claim that costs the operator a trip to reset.
24662
+ */
24663
+ var SceneConfirmSchema = object({
24664
+ enabled: boolean().default(false),
24665
+ prompt: string().min(1).max(1e3),
24666
+ profileId: string().optional(),
24667
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24668
+ maxImagePx: number().int().min(64).max(2048).default(448),
24669
+ /** What a timeout / unavailable model means for the PENDING flip. */
24670
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24671
+ });
23939
24672
  var SceneMonitorSchema = object({
23940
24673
  id: string(),
23941
24674
  label: string(),
@@ -23954,7 +24687,56 @@ var SceneMonitorSchema = object({
23954
24687
  lastConfidence: number().nullable(),
23955
24688
  currentCondition: SceneConditionSchema.nullable(),
23956
24689
  availability: _enum(["ok", "unavailable"]),
23957
- unavailableReason: string().nullable()
24690
+ unavailableReason: string().nullable(),
24691
+ /** Which state is "the initial screen". `null` until the first capture. */
24692
+ baselineStateId: string().nullable(),
24693
+ /** Which boolean drives notification rules and any export. */
24694
+ emit: _enum(["latched", "live"]).default("latched"),
24695
+ /** Live: does the region match the baseline RIGHT NOW. */
24696
+ verdict: SceneVerdictSchema,
24697
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24698
+ latched: boolean(),
24699
+ /** Last reset (or creation). */
24700
+ armedAt: number(),
24701
+ divergedAt: number().nullable(),
24702
+ restoredAt: number().nullable(),
24703
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24704
+ * during the window DISCARDS the observation — a car pulling up in front of
24705
+ * the bin must not be able to spend hysteresis credit. */
24706
+ quietSeconds: number().int().min(0).max(3600).default(60),
24707
+ /** An observation only advances the pending count when it is at least this
24708
+ * far from the previously counted one, so N agreeing checks span real time
24709
+ * rather than N adjacent polls inside one occlusion. */
24710
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24711
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24712
+ confirm: SceneConfirmSchema.optional(),
24713
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24714
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24715
+ /** Clear the latch on its own when the scene matches again? Default false —
24716
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24717
+ * automation can react to the bin coming back without the operator's own
24718
+ * alarm silently clearing itself. */
24719
+ autoRestore: boolean().default(false),
24720
+ /** What to do when the current light has no reference of its own. See
24721
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24722
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24723
+ /**
24724
+ * The light whose checks are currently being SAT OUT under
24725
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24726
+ *
24727
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24728
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24729
+ * nothing captured in this light"* in the same calm voice as the coverage
24730
+ * line, because the alternative is a scene that silently stops answering
24731
+ * after sunset with nothing anywhere saying why. A skipped check must never
24732
+ * read as a broken one.
24733
+ */
24734
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24735
+ /** Named cause when `verdict === 'unknown'`. */
24736
+ unavailable: SceneUnavailableSchema.nullable(),
24737
+ /** Conditions that have at least one comparable reference — the coverage line
24738
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24739
+ coveredConditions: array(SceneConditionSchema)
23958
24740
  });
23959
24741
  var SceneMonitorStatusSchema = object({
23960
24742
  monitors: array(SceneMonitorSchema),
@@ -23987,7 +24769,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
23987
24769
  "both"
23988
24770
  ]).optional(),
23989
24771
  checkIntervalSec: number().optional(),
23990
- check: SceneCheckSchema.optional()
24772
+ check: SceneCheckSchema.optional(),
24773
+ emit: _enum(["latched", "live"]).optional(),
24774
+ quietSeconds: number().int().min(0).max(3600).optional(),
24775
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24776
+ anchorThreshold: number().min(0).max(1).optional(),
24777
+ autoRestore: boolean().optional(),
24778
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24779
+ /** `null` clears the vision-model adjudicator. */
24780
+ confirm: SceneConfirmSchema.nullable().optional()
23991
24781
  })
23992
24782
  }), _void(), {
23993
24783
  kind: "mutation",
@@ -24024,6 +24814,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24024
24814
  }), _void(), {
24025
24815
  kind: "mutation",
24026
24816
  auth: "admin"
24817
+ }), method(object({
24818
+ deviceId: number(),
24819
+ monitorId: string(),
24820
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24821
+ recapture: boolean().optional()
24822
+ }), _void(), {
24823
+ kind: "mutation",
24824
+ auth: "admin"
24027
24825
  });
24028
24826
  /**
24029
24827
  * Per-stage gating mode applied to the zones a rule references.
@@ -24177,6 +24975,16 @@ var CamStreamDescriptorSchema = object({
24177
24975
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24178
24976
  metadata: record(string(), unknown()).optional()
24179
24977
  });
24978
+ object({
24979
+ /** The descriptors as last built from a real camera response. Never a guess:
24980
+ * a failed or refused build writes NOTHING, so a restored catalog is always
24981
+ * one the camera itself once produced. */
24982
+ descriptors: array(CamStreamDescriptorSchema),
24983
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
24984
+ * path decide whether the camera's own awake window is worth spending on a
24985
+ * re-read. */
24986
+ lastFetchedAt: number()
24987
+ });
24180
24988
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24181
24989
  /** One of the camera's stream profiles. */
24182
24990
  var StreamProfileSchema = _enum([
@@ -24332,12 +25140,64 @@ var NetworkAddressSchema = object({
24332
25140
  family: string(),
24333
25141
  internal: boolean()
24334
25142
  });
25143
+ /**
25144
+ * Provenance of the site coordinates, and the whole reason this is not just two
25145
+ * numbers.
25146
+ *
25147
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25148
+ * nothing overwrites it.
25149
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25150
+ * default that is right to a few kilometres beats the coarse UTC clock split
25151
+ * the sun-times consumers otherwise fall back to.
25152
+ *
25153
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25154
+ * own input will eventually trust the guess.
25155
+ */
25156
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25157
+ /**
25158
+ * The read shape: the location plus the honest state of the one-shot derivation.
25159
+ *
25160
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25161
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25162
+ * failed; the hub will NOT try again on its own — the fallback is declared
25163
+ * (consumers degrade to their own last resort) and the operator either types the
25164
+ * coordinates or presses detect.
25165
+ */
25166
+ var SiteLocationStatusSchema = object({
25167
+ location: object({
25168
+ /** WGS84 decimal degrees. */
25169
+ latitude: number().min(-90).max(90),
25170
+ longitude: number().min(-180).max(180),
25171
+ source: SiteLocationSourceSchema,
25172
+ /** Epoch ms the value was last written. */
25173
+ updatedAt: number(),
25174
+ /**
25175
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25176
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25177
+ */
25178
+ label: string().optional()
25179
+ }).nullable(),
25180
+ derivationAttemptedAt: number().nullable(),
25181
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25182
+ derivationError: string().nullable()
25183
+ });
25184
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25185
+ var SetSiteLocationInputSchema = object({
25186
+ latitude: number().min(-90).max(90),
25187
+ longitude: number().min(-180).max(180)
25188
+ }).nullable();
24335
25189
  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(), {
24336
25190
  kind: "mutation",
24337
25191
  auth: "admin"
24338
25192
  }), method(_void(), _void(), {
24339
25193
  kind: "mutation",
24340
25194
  auth: "admin"
25195
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25196
+ kind: "mutation",
25197
+ auth: "admin"
25198
+ }), method(_void(), SiteLocationStatusSchema, {
25199
+ kind: "mutation",
25200
+ auth: "admin"
24341
25201
  });
24342
25202
  object({
24343
25203
  /** True when the device's tamper switch / case-open contact is
@@ -27067,6 +27927,12 @@ Object.freeze({
27067
27927
  addonId: null,
27068
27928
  access: "create"
27069
27929
  },
27930
+ "llm.cancel": {
27931
+ capName: "llm",
27932
+ capScope: "system",
27933
+ addonId: null,
27934
+ access: "create"
27935
+ },
27070
27936
  "llm.deleteModel": {
27071
27937
  capName: "llm",
27072
27938
  capScope: "system",
@@ -27151,6 +28017,12 @@ Object.freeze({
27151
28017
  addonId: null,
27152
28018
  access: "view"
27153
28019
  },
28020
+ "llm.resolveModelRef": {
28021
+ capName: "llm",
28022
+ capScope: "system",
28023
+ addonId: null,
28024
+ access: "create"
28025
+ },
27154
28026
  "llm.setDefault": {
27155
28027
  capName: "llm",
27156
28028
  capScope: "system",
@@ -29317,6 +30189,12 @@ Object.freeze({
29317
30189
  addonId: null,
29318
30190
  access: "create"
29319
30191
  },
30192
+ "sceneMonitor.resetScene": {
30193
+ capName: "scene-monitor",
30194
+ capScope: "device",
30195
+ addonId: null,
30196
+ access: "delete"
30197
+ },
29320
30198
  "sceneMonitor.updateScene": {
29321
30199
  capName: "scene-monitor",
29322
30200
  capScope: "device",
@@ -29455,6 +30333,12 @@ Object.freeze({
29455
30333
  addonId: null,
29456
30334
  access: "view"
29457
30335
  },
30336
+ "snapshot.getDebugState": {
30337
+ capName: "snapshot",
30338
+ capScope: "device",
30339
+ addonId: null,
30340
+ access: "view"
30341
+ },
29458
30342
  "snapshot.getSnapshot": {
29459
30343
  capName: "snapshot",
29460
30344
  capScope: "device",
@@ -29995,6 +30879,12 @@ Object.freeze({
29995
30879
  addonId: null,
29996
30880
  access: "create"
29997
30881
  },
30882
+ "system.detectSiteLocation": {
30883
+ capName: "system",
30884
+ capScope: "system",
30885
+ addonId: null,
30886
+ access: "create"
30887
+ },
29998
30888
  "system.featureFlags": {
29999
30889
  capName: "system",
30000
30890
  capScope: "system",
@@ -30013,6 +30903,12 @@ Object.freeze({
30013
30903
  addonId: null,
30014
30904
  access: "view"
30015
30905
  },
30906
+ "system.getSiteLocation": {
30907
+ capName: "system",
30908
+ capScope: "system",
30909
+ addonId: null,
30910
+ access: "view"
30911
+ },
30016
30912
  "system.health": {
30017
30913
  capName: "system",
30018
30914
  capScope: "system",
@@ -30037,6 +30933,12 @@ Object.freeze({
30037
30933
  addonId: null,
30038
30934
  access: "create"
30039
30935
  },
30936
+ "system.setSiteLocation": {
30937
+ capName: "system",
30938
+ capScope: "system",
30939
+ addonId: null,
30940
+ access: "create"
30941
+ },
30040
30942
  "terminalSession.adoptLegacyMonitor": {
30041
30943
  capName: "terminal-session",
30042
30944
  capScope: "system",
@@ -30608,6 +31510,1709 @@ Object.freeze({
30608
31510
  access: "create"
30609
31511
  }
30610
31512
  });
31513
+ Object.freeze({
31514
+ "accessories.setChildHidden": [{
31515
+ name: "childDeviceId",
31516
+ form: "single",
31517
+ optional: false
31518
+ }, {
31519
+ name: "deviceId",
31520
+ form: "single",
31521
+ optional: false
31522
+ }],
31523
+ "addonSettings.getDeviceSettings": [{
31524
+ name: "deviceId",
31525
+ form: "single",
31526
+ optional: false
31527
+ }],
31528
+ "addonSettings.updateDeviceSettings": [{
31529
+ name: "deviceId",
31530
+ form: "single",
31531
+ optional: false
31532
+ }],
31533
+ "alarmPanel.arm": [{
31534
+ name: "deviceId",
31535
+ form: "single",
31536
+ optional: false
31537
+ }],
31538
+ "alarmPanel.disarm": [{
31539
+ name: "deviceId",
31540
+ form: "single",
31541
+ optional: false
31542
+ }],
31543
+ "alarmPanel.trigger": [{
31544
+ name: "deviceId",
31545
+ form: "single",
31546
+ optional: false
31547
+ }],
31548
+ "audioAnalysis.resolveDeviceSettings": [{
31549
+ name: "deviceId",
31550
+ form: "single",
31551
+ optional: false
31552
+ }],
31553
+ "audioAnalyzer.classify": [{
31554
+ name: "deviceId",
31555
+ form: "single",
31556
+ optional: true
31557
+ }],
31558
+ "audioMetrics.getCurrentSnapshot": [{
31559
+ name: "deviceId",
31560
+ form: "single",
31561
+ optional: false
31562
+ }],
31563
+ "audioMetrics.getHistory": [{
31564
+ name: "deviceId",
31565
+ form: "single",
31566
+ optional: false
31567
+ }],
31568
+ "automationControl.disable": [{
31569
+ name: "deviceId",
31570
+ form: "single",
31571
+ optional: false
31572
+ }],
31573
+ "automationControl.enable": [{
31574
+ name: "deviceId",
31575
+ form: "single",
31576
+ optional: false
31577
+ }],
31578
+ "automationControl.trigger": [{
31579
+ name: "deviceId",
31580
+ form: "single",
31581
+ optional: false
31582
+ }],
31583
+ "battery.wakeForStream": [{
31584
+ name: "deviceId",
31585
+ form: "single",
31586
+ optional: false
31587
+ }],
31588
+ "brightness.setBrightness": [{
31589
+ name: "deviceId",
31590
+ form: "single",
31591
+ optional: false
31592
+ }],
31593
+ "button.press": [{
31594
+ name: "deviceId",
31595
+ form: "single",
31596
+ optional: false
31597
+ }],
31598
+ "cameraCredentials.getCredentials": [{
31599
+ name: "deviceId",
31600
+ form: "single",
31601
+ optional: false
31602
+ }],
31603
+ "cameraStreams.getBrokerStreams": [{
31604
+ name: "deviceId",
31605
+ form: "single",
31606
+ optional: false
31607
+ }],
31608
+ "cameraStreams.getCameraStreams": [{
31609
+ name: "deviceId",
31610
+ form: "single",
31611
+ optional: false
31612
+ }],
31613
+ "cameraStreams.getProfileRtspEntries": [{
31614
+ name: "deviceId",
31615
+ form: "single",
31616
+ optional: false
31617
+ }],
31618
+ "cameraStreams.getRtspEntries": [{
31619
+ name: "deviceId",
31620
+ form: "single",
31621
+ optional: false
31622
+ }],
31623
+ "cameraStreams.pickStream": [{
31624
+ name: "deviceId",
31625
+ form: "single",
31626
+ optional: false
31627
+ }],
31628
+ "climateControl.setFanMode": [{
31629
+ name: "deviceId",
31630
+ form: "single",
31631
+ optional: false
31632
+ }],
31633
+ "climateControl.setMode": [{
31634
+ name: "deviceId",
31635
+ form: "single",
31636
+ optional: false
31637
+ }],
31638
+ "climateControl.setPreset": [{
31639
+ name: "deviceId",
31640
+ form: "single",
31641
+ optional: false
31642
+ }],
31643
+ "climateControl.setSwingHorizontal": [{
31644
+ name: "deviceId",
31645
+ form: "single",
31646
+ optional: false
31647
+ }],
31648
+ "climateControl.setSwingVertical": [{
31649
+ name: "deviceId",
31650
+ form: "single",
31651
+ optional: false
31652
+ }],
31653
+ "climateControl.setTarget": [{
31654
+ name: "deviceId",
31655
+ form: "single",
31656
+ optional: false
31657
+ }],
31658
+ "climateControl.setTargetHumidity": [{
31659
+ name: "deviceId",
31660
+ form: "single",
31661
+ optional: false
31662
+ }],
31663
+ "climateControl.setTargetRange": [{
31664
+ name: "deviceId",
31665
+ form: "single",
31666
+ optional: false
31667
+ }],
31668
+ "color.setColor": [{
31669
+ name: "deviceId",
31670
+ form: "single",
31671
+ optional: false
31672
+ }],
31673
+ "consumables.reset": [{
31674
+ name: "deviceId",
31675
+ form: "single",
31676
+ optional: false
31677
+ }],
31678
+ "control.setValue": [{
31679
+ name: "deviceId",
31680
+ form: "single",
31681
+ optional: false
31682
+ }],
31683
+ "cover.close": [{
31684
+ name: "deviceId",
31685
+ form: "single",
31686
+ optional: false
31687
+ }],
31688
+ "cover.open": [{
31689
+ name: "deviceId",
31690
+ form: "single",
31691
+ optional: false
31692
+ }],
31693
+ "cover.setPosition": [{
31694
+ name: "deviceId",
31695
+ form: "single",
31696
+ optional: false
31697
+ }],
31698
+ "cover.setTiltPosition": [{
31699
+ name: "deviceId",
31700
+ form: "single",
31701
+ optional: false
31702
+ }],
31703
+ "cover.stop": [{
31704
+ name: "deviceId",
31705
+ form: "single",
31706
+ optional: false
31707
+ }],
31708
+ "dayNight.getOptions": [{
31709
+ name: "deviceId",
31710
+ form: "single",
31711
+ optional: false
31712
+ }],
31713
+ "dayNight.setSettings": [{
31714
+ name: "deviceId",
31715
+ form: "single",
31716
+ optional: false
31717
+ }],
31718
+ "decoder.createSession": [{
31719
+ name: "deviceId",
31720
+ form: "single",
31721
+ optional: true
31722
+ }],
31723
+ "deviceAdoption.release": [{
31724
+ name: "camDeviceId",
31725
+ form: "single",
31726
+ optional: false
31727
+ }],
31728
+ "deviceAdoption.resync": [{
31729
+ name: "camDeviceId",
31730
+ form: "single",
31731
+ optional: false
31732
+ }],
31733
+ "deviceDiscovery.adoptDevice": [{
31734
+ name: "deviceId",
31735
+ form: "single",
31736
+ optional: false
31737
+ }],
31738
+ "deviceDiscovery.listDiscovered": [{
31739
+ name: "deviceId",
31740
+ form: "single",
31741
+ optional: false
31742
+ }],
31743
+ "deviceDiscovery.refreshDiscovery": [{
31744
+ name: "deviceId",
31745
+ form: "single",
31746
+ optional: false
31747
+ }],
31748
+ "deviceDiscovery.releaseDevice": [{
31749
+ name: "childDeviceId",
31750
+ form: "single",
31751
+ optional: false
31752
+ }, {
31753
+ name: "deviceId",
31754
+ form: "single",
31755
+ optional: false
31756
+ }],
31757
+ "deviceManager.adoptionRelease": [{
31758
+ name: "camDeviceId",
31759
+ form: "single",
31760
+ optional: false
31761
+ }],
31762
+ "deviceManager.adoptionResync": [{
31763
+ name: "camDeviceId",
31764
+ form: "single",
31765
+ optional: false
31766
+ }],
31767
+ "deviceManager.applyInitialMeta": [{
31768
+ name: "deviceId",
31769
+ form: "single",
31770
+ optional: false
31771
+ }, {
31772
+ name: "linkDeviceId",
31773
+ form: "single",
31774
+ optional: true
31775
+ }],
31776
+ "deviceManager.disable": [{
31777
+ name: "deviceId",
31778
+ form: "single",
31779
+ optional: false
31780
+ }],
31781
+ "deviceManager.enable": [{
31782
+ name: "deviceId",
31783
+ form: "single",
31784
+ optional: false
31785
+ }],
31786
+ "deviceManager.getBindings": [{
31787
+ name: "deviceId",
31788
+ form: "single",
31789
+ optional: false
31790
+ }],
31791
+ "deviceManager.getChildren": [{
31792
+ name: "parentDeviceId",
31793
+ form: "single",
31794
+ optional: false
31795
+ }],
31796
+ "deviceManager.getConfigSchema": [{
31797
+ name: "deviceId",
31798
+ form: "single",
31799
+ optional: false
31800
+ }],
31801
+ "deviceManager.getDevice": [{
31802
+ name: "deviceId",
31803
+ form: "single",
31804
+ optional: false
31805
+ }],
31806
+ "deviceManager.getDeviceAggregate": [{
31807
+ name: "deviceId",
31808
+ form: "single",
31809
+ optional: false
31810
+ }],
31811
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31812
+ name: "deviceId",
31813
+ form: "single",
31814
+ optional: false
31815
+ }],
31816
+ "deviceManager.getDeviceSettingsAggregate": [{
31817
+ name: "deviceId",
31818
+ form: "single",
31819
+ optional: false
31820
+ }],
31821
+ "deviceManager.getDeviceStatusAggregate": [{
31822
+ name: "deviceId",
31823
+ form: "single",
31824
+ optional: false
31825
+ }],
31826
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31827
+ name: "deviceIds",
31828
+ form: "array",
31829
+ optional: false
31830
+ }],
31831
+ "deviceManager.getLinkedDevices": [{
31832
+ name: "deviceId",
31833
+ form: "single",
31834
+ optional: false
31835
+ }],
31836
+ "deviceManager.getSettingsSchema": [{
31837
+ name: "deviceId",
31838
+ form: "single",
31839
+ optional: false
31840
+ }],
31841
+ "deviceManager.getStreamProfileMap": [{
31842
+ name: "deviceId",
31843
+ form: "single",
31844
+ optional: false
31845
+ }],
31846
+ "deviceManager.getStreamSources": [{
31847
+ name: "deviceId",
31848
+ form: "single",
31849
+ optional: false
31850
+ }],
31851
+ "deviceManager.getWireableFields": [{
31852
+ name: "deviceId",
31853
+ form: "single",
31854
+ optional: false
31855
+ }],
31856
+ "deviceManager.loadConfig": [{
31857
+ name: "deviceId",
31858
+ form: "single",
31859
+ optional: false
31860
+ }],
31861
+ "deviceManager.loadMeta": [{
31862
+ name: "deviceId",
31863
+ form: "single",
31864
+ optional: false
31865
+ }],
31866
+ "deviceManager.loadRuntimeState": [{
31867
+ name: "deviceId",
31868
+ form: "single",
31869
+ optional: false
31870
+ }],
31871
+ "deviceManager.persistConfig": [{
31872
+ name: "deviceId",
31873
+ form: "single",
31874
+ optional: false
31875
+ }],
31876
+ "deviceManager.probeStreams": [{
31877
+ name: "deviceId",
31878
+ form: "single",
31879
+ optional: false
31880
+ }],
31881
+ "deviceManager.registerDevice": [{
31882
+ name: "parentDeviceId",
31883
+ form: "single",
31884
+ optional: true
31885
+ }],
31886
+ "deviceManager.remove": [{
31887
+ name: "deviceId",
31888
+ form: "single",
31889
+ optional: false
31890
+ }],
31891
+ "deviceManager.removeDevice": [{
31892
+ name: "deviceId",
31893
+ form: "single",
31894
+ optional: false
31895
+ }],
31896
+ "deviceManager.runDeviceAction": [{
31897
+ name: "deviceId",
31898
+ form: "single",
31899
+ optional: false
31900
+ }],
31901
+ "deviceManager.setChildLayout": [{
31902
+ name: "deviceId",
31903
+ form: "single",
31904
+ optional: false
31905
+ }],
31906
+ "deviceManager.setDisabled": [{
31907
+ name: "deviceId",
31908
+ form: "single",
31909
+ optional: false
31910
+ }],
31911
+ "deviceManager.setDisplay": [{
31912
+ name: "deviceId",
31913
+ form: "single",
31914
+ optional: false
31915
+ }],
31916
+ "deviceManager.setIntegrationId": [{
31917
+ name: "deviceId",
31918
+ form: "single",
31919
+ optional: false
31920
+ }],
31921
+ "deviceManager.setLinkDeviceId": [{
31922
+ name: "deviceId",
31923
+ form: "single",
31924
+ optional: false
31925
+ }, {
31926
+ name: "linkDeviceId",
31927
+ form: "single",
31928
+ optional: true
31929
+ }],
31930
+ "deviceManager.setLocation": [{
31931
+ name: "deviceId",
31932
+ form: "single",
31933
+ optional: false
31934
+ }],
31935
+ "deviceManager.setMetadata": [{
31936
+ name: "deviceId",
31937
+ form: "single",
31938
+ optional: false
31939
+ }],
31940
+ "deviceManager.setName": [{
31941
+ name: "deviceId",
31942
+ form: "single",
31943
+ optional: false
31944
+ }],
31945
+ "deviceManager.setPrimaryChildEntityId": [{
31946
+ name: "deviceId",
31947
+ form: "single",
31948
+ optional: false
31949
+ }],
31950
+ "deviceManager.setRole": [{
31951
+ name: "deviceId",
31952
+ form: "single",
31953
+ optional: false
31954
+ }],
31955
+ "deviceManager.setStreamProfileMap": [{
31956
+ name: "deviceId",
31957
+ form: "single",
31958
+ optional: false
31959
+ }],
31960
+ "deviceManager.setType": [{
31961
+ name: "deviceId",
31962
+ form: "single",
31963
+ optional: false
31964
+ }],
31965
+ "deviceManager.setWrapperActive": [{
31966
+ name: "deviceId",
31967
+ form: "single",
31968
+ optional: false
31969
+ }],
31970
+ "deviceManager.testField": [{
31971
+ name: "deviceId",
31972
+ form: "single",
31973
+ optional: false
31974
+ }],
31975
+ "deviceManager.updateConfig": [{
31976
+ name: "deviceId",
31977
+ form: "single",
31978
+ optional: false
31979
+ }],
31980
+ "deviceManager.updateDeviceField": [{
31981
+ name: "deviceId",
31982
+ form: "single",
31983
+ optional: false
31984
+ }],
31985
+ "deviceManager.updateDeviceFieldsBatch": [{
31986
+ name: "deviceId",
31987
+ form: "single",
31988
+ optional: false
31989
+ }],
31990
+ "deviceOps.getConfigEntries": [{
31991
+ name: "deviceId",
31992
+ form: "single",
31993
+ optional: false
31994
+ }],
31995
+ "deviceOps.getRawState": [{
31996
+ name: "deviceId",
31997
+ form: "single",
31998
+ optional: false
31999
+ }],
32000
+ "deviceOps.getSettingsSchema": [{
32001
+ name: "deviceId",
32002
+ form: "single",
32003
+ optional: false
32004
+ }],
32005
+ "deviceOps.getStreamSources": [{
32006
+ name: "deviceId",
32007
+ form: "single",
32008
+ optional: false
32009
+ }],
32010
+ "deviceOps.removeDevice": [{
32011
+ name: "deviceId",
32012
+ form: "single",
32013
+ optional: false
32014
+ }],
32015
+ "deviceOps.runAction": [{
32016
+ name: "deviceId",
32017
+ form: "single",
32018
+ optional: false
32019
+ }],
32020
+ "deviceOps.setConfig": [{
32021
+ name: "deviceId",
32022
+ form: "single",
32023
+ optional: false
32024
+ }],
32025
+ "deviceState.getCapSlice": [{
32026
+ name: "deviceId",
32027
+ form: "single",
32028
+ optional: false
32029
+ }],
32030
+ "deviceState.getSnapshot": [{
32031
+ name: "deviceId",
32032
+ form: "single",
32033
+ optional: false
32034
+ }],
32035
+ "deviceState.setCapSlice": [{
32036
+ name: "deviceId",
32037
+ form: "single",
32038
+ optional: false
32039
+ }],
32040
+ "events.getEventClipUrl": [{
32041
+ name: "deviceId",
32042
+ form: "single",
32043
+ optional: false
32044
+ }],
32045
+ "events.getEvents": [{
32046
+ name: "deviceId",
32047
+ form: "single",
32048
+ optional: false
32049
+ }],
32050
+ "events.getEventThumbnail": [{
32051
+ name: "deviceId",
32052
+ form: "single",
32053
+ optional: false
32054
+ }],
32055
+ "faceGallery.getFaceByTrack": [{
32056
+ name: "deviceId",
32057
+ form: "single",
32058
+ optional: false
32059
+ }],
32060
+ "faceGallery.listRecentFaces": [{
32061
+ name: "deviceId",
32062
+ form: "single",
32063
+ optional: true
32064
+ }],
32065
+ "fanControl.setDirection": [{
32066
+ name: "deviceId",
32067
+ form: "single",
32068
+ optional: false
32069
+ }],
32070
+ "fanControl.setOscillating": [{
32071
+ name: "deviceId",
32072
+ form: "single",
32073
+ optional: false
32074
+ }],
32075
+ "fanControl.setPercentage": [{
32076
+ name: "deviceId",
32077
+ form: "single",
32078
+ optional: false
32079
+ }],
32080
+ "fanControl.setPreset": [{
32081
+ name: "deviceId",
32082
+ form: "single",
32083
+ optional: false
32084
+ }],
32085
+ "humidifier.setMode": [{
32086
+ name: "deviceId",
32087
+ form: "single",
32088
+ optional: false
32089
+ }],
32090
+ "humidifier.setOn": [{
32091
+ name: "deviceId",
32092
+ form: "single",
32093
+ optional: false
32094
+ }],
32095
+ "humidifier.setTargetHumidity": [{
32096
+ name: "deviceId",
32097
+ form: "single",
32098
+ optional: false
32099
+ }],
32100
+ "imageSettings.getOptions": [{
32101
+ name: "deviceId",
32102
+ form: "single",
32103
+ optional: false
32104
+ }],
32105
+ "imageSettings.setSettings": [{
32106
+ name: "deviceId",
32107
+ form: "single",
32108
+ optional: false
32109
+ }],
32110
+ "intercom.endTalkSession": [{
32111
+ name: "deviceId",
32112
+ form: "single",
32113
+ optional: false
32114
+ }],
32115
+ "intercom.handleAnswer": [{
32116
+ name: "deviceId",
32117
+ form: "single",
32118
+ optional: false
32119
+ }],
32120
+ "intercom.pushTalkAudio": [{
32121
+ name: "deviceId",
32122
+ form: "single",
32123
+ optional: false
32124
+ }],
32125
+ "intercom.startSession": [{
32126
+ name: "deviceId",
32127
+ form: "single",
32128
+ optional: false
32129
+ }],
32130
+ "intercom.startTalkSession": [{
32131
+ name: "deviceId",
32132
+ form: "single",
32133
+ optional: false
32134
+ }],
32135
+ "intercom.stopSession": [{
32136
+ name: "deviceId",
32137
+ form: "single",
32138
+ optional: false
32139
+ }],
32140
+ "lawnMowerControl.dock": [{
32141
+ name: "deviceId",
32142
+ form: "single",
32143
+ optional: false
32144
+ }],
32145
+ "lawnMowerControl.pause": [{
32146
+ name: "deviceId",
32147
+ form: "single",
32148
+ optional: false
32149
+ }],
32150
+ "lawnMowerControl.startMowing": [{
32151
+ name: "deviceId",
32152
+ form: "single",
32153
+ optional: false
32154
+ }],
32155
+ "lockControl.lock": [{
32156
+ name: "deviceId",
32157
+ form: "single",
32158
+ optional: false
32159
+ }],
32160
+ "lockControl.open": [{
32161
+ name: "deviceId",
32162
+ form: "single",
32163
+ optional: false
32164
+ }],
32165
+ "lockControl.unlock": [{
32166
+ name: "deviceId",
32167
+ form: "single",
32168
+ optional: false
32169
+ }],
32170
+ "mediaPlayer.next": [{
32171
+ name: "deviceId",
32172
+ form: "single",
32173
+ optional: false
32174
+ }],
32175
+ "mediaPlayer.pause": [{
32176
+ name: "deviceId",
32177
+ form: "single",
32178
+ optional: false
32179
+ }],
32180
+ "mediaPlayer.play": [{
32181
+ name: "deviceId",
32182
+ form: "single",
32183
+ optional: false
32184
+ }],
32185
+ "mediaPlayer.playMedia": [{
32186
+ name: "deviceId",
32187
+ form: "single",
32188
+ optional: false
32189
+ }],
32190
+ "mediaPlayer.previous": [{
32191
+ name: "deviceId",
32192
+ form: "single",
32193
+ optional: false
32194
+ }],
32195
+ "mediaPlayer.seek": [{
32196
+ name: "deviceId",
32197
+ form: "single",
32198
+ optional: false
32199
+ }],
32200
+ "mediaPlayer.selectSource": [{
32201
+ name: "deviceId",
32202
+ form: "single",
32203
+ optional: false
32204
+ }],
32205
+ "mediaPlayer.setMute": [{
32206
+ name: "deviceId",
32207
+ form: "single",
32208
+ optional: false
32209
+ }],
32210
+ "mediaPlayer.setRepeat": [{
32211
+ name: "deviceId",
32212
+ form: "single",
32213
+ optional: false
32214
+ }],
32215
+ "mediaPlayer.setShuffle": [{
32216
+ name: "deviceId",
32217
+ form: "single",
32218
+ optional: false
32219
+ }],
32220
+ "mediaPlayer.setVolume": [{
32221
+ name: "deviceId",
32222
+ form: "single",
32223
+ optional: false
32224
+ }],
32225
+ "mediaPlayer.stop": [{
32226
+ name: "deviceId",
32227
+ form: "single",
32228
+ optional: false
32229
+ }],
32230
+ "motion.isDetected": [{
32231
+ name: "deviceId",
32232
+ form: "single",
32233
+ optional: false
32234
+ }],
32235
+ "motionDetection.analyze": [{
32236
+ name: "deviceId",
32237
+ form: "single",
32238
+ optional: false
32239
+ }],
32240
+ "motionDetection.removeCamera": [{
32241
+ name: "deviceId",
32242
+ form: "single",
32243
+ optional: false
32244
+ }],
32245
+ "motionTrigger.setMotionTrigger": [{
32246
+ name: "deviceId",
32247
+ form: "single",
32248
+ optional: false
32249
+ }],
32250
+ "motionZones.getOptions": [{
32251
+ name: "deviceId",
32252
+ form: "single",
32253
+ optional: false
32254
+ }],
32255
+ "motionZones.setZone": [{
32256
+ name: "deviceId",
32257
+ form: "single",
32258
+ optional: false
32259
+ }],
32260
+ "nativeObjectDetection.setEnabled": [{
32261
+ name: "deviceId",
32262
+ form: "single",
32263
+ optional: false
32264
+ }],
32265
+ "networkQuality.getDeviceStats": [{
32266
+ name: "deviceId",
32267
+ form: "single",
32268
+ optional: false
32269
+ }],
32270
+ "networkQuality.reportClientStats": [{
32271
+ name: "deviceId",
32272
+ form: "single",
32273
+ optional: false
32274
+ }],
32275
+ "notificationRules.setDeviceMuted": [{
32276
+ name: "deviceId",
32277
+ form: "single",
32278
+ optional: false
32279
+ }],
32280
+ "notifier.cancel": [{
32281
+ name: "deviceId",
32282
+ form: "single",
32283
+ optional: false
32284
+ }],
32285
+ "notifier.send": [{
32286
+ name: "deviceId",
32287
+ form: "single",
32288
+ optional: false
32289
+ }],
32290
+ "osd.setOverlay": [{
32291
+ name: "deviceId",
32292
+ form: "single",
32293
+ optional: false
32294
+ }],
32295
+ "osdManager.clearSlotBinding": [{
32296
+ name: "deviceId",
32297
+ form: "single",
32298
+ optional: false
32299
+ }],
32300
+ "osdManager.copyDeviceConfiguration": [{
32301
+ name: "sourceDeviceId",
32302
+ form: "single",
32303
+ optional: false
32304
+ }, {
32305
+ name: "targetDeviceId",
32306
+ form: "single",
32307
+ optional: false
32308
+ }],
32309
+ "osdManager.getDeviceOsd": [{
32310
+ name: "deviceId",
32311
+ form: "single",
32312
+ optional: false
32313
+ }],
32314
+ "osdManager.getSourceCatalog": [{
32315
+ name: "deviceId",
32316
+ form: "single",
32317
+ optional: false
32318
+ }],
32319
+ "osdManager.previewSlot": [{
32320
+ name: "deviceId",
32321
+ form: "single",
32322
+ optional: false
32323
+ }],
32324
+ "osdManager.renderDevice": [{
32325
+ name: "deviceId",
32326
+ form: "single",
32327
+ optional: false
32328
+ }],
32329
+ "osdManager.setSlotBinding": [{
32330
+ name: "deviceId",
32331
+ form: "single",
32332
+ optional: false
32333
+ }],
32334
+ "petFeeder.callPet": [{
32335
+ name: "deviceId",
32336
+ form: "single",
32337
+ optional: false
32338
+ }],
32339
+ "petFeeder.cancelFeed": [{
32340
+ name: "deviceId",
32341
+ form: "single",
32342
+ optional: false
32343
+ }],
32344
+ "petFeeder.feed": [{
32345
+ name: "deviceId",
32346
+ form: "single",
32347
+ optional: false
32348
+ }],
32349
+ "petFeeder.markFoodReplenished": [{
32350
+ name: "deviceId",
32351
+ form: "single",
32352
+ optional: false
32353
+ }],
32354
+ "petFeeder.playSound": [{
32355
+ name: "deviceId",
32356
+ form: "single",
32357
+ optional: false
32358
+ }],
32359
+ "petFeeder.resetDesiccant": [{
32360
+ name: "deviceId",
32361
+ form: "single",
32362
+ optional: false
32363
+ }],
32364
+ "petFeeder.setChildLock": [{
32365
+ name: "deviceId",
32366
+ form: "single",
32367
+ optional: false
32368
+ }],
32369
+ "petFeeder.setFeedSound": [{
32370
+ name: "deviceId",
32371
+ form: "single",
32372
+ optional: false
32373
+ }],
32374
+ "petFeeder.setIndicatorLight": [{
32375
+ name: "deviceId",
32376
+ form: "single",
32377
+ optional: false
32378
+ }],
32379
+ "petFeeder.setVolume": [{
32380
+ name: "deviceId",
32381
+ form: "single",
32382
+ optional: false
32383
+ }],
32384
+ "pipelineAnalytics.clearTracks": [{
32385
+ name: "deviceId",
32386
+ form: "single",
32387
+ optional: false
32388
+ }],
32389
+ "pipelineAnalytics.completeRetrainTrack": [{
32390
+ name: "deviceId",
32391
+ form: "single",
32392
+ optional: false
32393
+ }],
32394
+ "pipelineAnalytics.deleteDeviceEvents": [{
32395
+ name: "deviceId",
32396
+ form: "single",
32397
+ optional: false
32398
+ }],
32399
+ "pipelineAnalytics.deleteTracks": [{
32400
+ name: "deviceId",
32401
+ form: "single",
32402
+ optional: false
32403
+ }],
32404
+ "pipelineAnalytics.deselectRetrainFrame": [{
32405
+ name: "deviceId",
32406
+ form: "single",
32407
+ optional: false
32408
+ }],
32409
+ "pipelineAnalytics.getActiveTracks": [{
32410
+ name: "deviceId",
32411
+ form: "single",
32412
+ optional: false
32413
+ }],
32414
+ "pipelineAnalytics.getAudioEvents": [{
32415
+ name: "deviceId",
32416
+ form: "single",
32417
+ optional: false
32418
+ }],
32419
+ "pipelineAnalytics.getEventDensity": [{
32420
+ name: "deviceId",
32421
+ form: "single",
32422
+ optional: false
32423
+ }],
32424
+ "pipelineAnalytics.getEventMedia": [{
32425
+ name: "deviceId",
32426
+ form: "single",
32427
+ optional: false
32428
+ }],
32429
+ "pipelineAnalytics.getKeyEvents": [{
32430
+ name: "deviceId",
32431
+ form: "single",
32432
+ optional: false
32433
+ }],
32434
+ "pipelineAnalytics.getMotionEvents": [{
32435
+ name: "deviceId",
32436
+ form: "single",
32437
+ optional: false
32438
+ }],
32439
+ "pipelineAnalytics.getObjectEvents": [{
32440
+ name: "deviceId",
32441
+ form: "single",
32442
+ optional: false
32443
+ }],
32444
+ "pipelineAnalytics.getRetrainExportUrl": [{
32445
+ name: "deviceIds",
32446
+ form: "array",
32447
+ optional: true
32448
+ }],
32449
+ "pipelineAnalytics.getSensorEvents": [{
32450
+ name: "deviceId",
32451
+ form: "single",
32452
+ optional: false
32453
+ }],
32454
+ "pipelineAnalytics.getTrack": [{
32455
+ name: "deviceId",
32456
+ form: "single",
32457
+ optional: false
32458
+ }],
32459
+ "pipelineAnalytics.getTrackMedia": [{
32460
+ name: "deviceId",
32461
+ form: "single",
32462
+ optional: false
32463
+ }],
32464
+ "pipelineAnalytics.getTrainingExportSummary": [{
32465
+ name: "deviceIds",
32466
+ form: "array",
32467
+ optional: true
32468
+ }],
32469
+ "pipelineAnalytics.getTrainingExportUrl": [{
32470
+ name: "deviceIds",
32471
+ form: "array",
32472
+ optional: true
32473
+ }],
32474
+ "pipelineAnalytics.listEventKinds": [{
32475
+ name: "deviceId",
32476
+ form: "single",
32477
+ optional: false
32478
+ }],
32479
+ "pipelineAnalytics.listEventKindsBatch": [{
32480
+ name: "deviceIds",
32481
+ form: "array",
32482
+ optional: false
32483
+ }],
32484
+ "pipelineAnalytics.listOpsLog": [{
32485
+ name: "deviceId",
32486
+ form: "single",
32487
+ optional: true
32488
+ }],
32489
+ "pipelineAnalytics.listRecentTracks": [{
32490
+ name: "deviceIds",
32491
+ form: "array",
32492
+ optional: false
32493
+ }],
32494
+ "pipelineAnalytics.listRetrainStaging": [{
32495
+ name: "deviceIds",
32496
+ form: "array",
32497
+ optional: true
32498
+ }],
32499
+ "pipelineAnalytics.listTrackMedia": [{
32500
+ name: "deviceId",
32501
+ form: "single",
32502
+ optional: false
32503
+ }],
32504
+ "pipelineAnalytics.listTracks": [{
32505
+ name: "deviceId",
32506
+ form: "single",
32507
+ optional: false
32508
+ }],
32509
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32510
+ name: "deviceId",
32511
+ form: "single",
32512
+ optional: false
32513
+ }],
32514
+ "pipelineAnalytics.pruneEventsBefore": [{
32515
+ name: "deviceId",
32516
+ form: "single",
32517
+ optional: false
32518
+ }],
32519
+ "pipelineAnalytics.pruneTracksBefore": [{
32520
+ name: "deviceId",
32521
+ form: "single",
32522
+ optional: false
32523
+ }],
32524
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32525
+ name: "deviceId",
32526
+ form: "single",
32527
+ optional: true
32528
+ }],
32529
+ "pipelineAnalytics.restageRetrainTrack": [{
32530
+ name: "deviceId",
32531
+ form: "single",
32532
+ optional: false
32533
+ }],
32534
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32535
+ name: "deviceId",
32536
+ form: "single",
32537
+ optional: false
32538
+ }],
32539
+ "pipelineAnalytics.searchObjectEvents": [{
32540
+ name: "deviceId",
32541
+ form: "single",
32542
+ optional: true
32543
+ }],
32544
+ "pipelineAnalytics.selectRetrainFrames": [{
32545
+ name: "deviceId",
32546
+ form: "single",
32547
+ optional: false
32548
+ }],
32549
+ "pipelineAnalytics.setTrackFlags": [{
32550
+ name: "deviceId",
32551
+ form: "single",
32552
+ optional: false
32553
+ }],
32554
+ "pipelineAnalytics.wipeAllAnalytics": [{
32555
+ name: "deviceId",
32556
+ form: "single",
32557
+ optional: false
32558
+ }],
32559
+ "pipelineExecutor.runPipeline": [{
32560
+ name: "deviceId",
32561
+ form: "single",
32562
+ optional: true
32563
+ }],
32564
+ "pipelineExecutor.runPipelineBatch": [{
32565
+ name: "deviceId",
32566
+ form: "single",
32567
+ optional: true
32568
+ }],
32569
+ "pipelineOrchestrator.assignAudio": [{
32570
+ name: "deviceId",
32571
+ form: "single",
32572
+ optional: false
32573
+ }],
32574
+ "pipelineOrchestrator.assignPipeline": [{
32575
+ name: "deviceId",
32576
+ form: "single",
32577
+ optional: false
32578
+ }],
32579
+ "pipelineOrchestrator.getAudioAssignment": [{
32580
+ name: "deviceId",
32581
+ form: "single",
32582
+ optional: false
32583
+ }],
32584
+ "pipelineOrchestrator.getCameraMetrics": [{
32585
+ name: "deviceId",
32586
+ form: "single",
32587
+ optional: false
32588
+ }],
32589
+ "pipelineOrchestrator.getCameraSettings": [{
32590
+ name: "deviceId",
32591
+ form: "single",
32592
+ optional: false
32593
+ }],
32594
+ "pipelineOrchestrator.getCameraStatus": [{
32595
+ name: "deviceId",
32596
+ form: "single",
32597
+ optional: false
32598
+ }],
32599
+ "pipelineOrchestrator.getCameraStatuses": [{
32600
+ name: "deviceIds",
32601
+ form: "array",
32602
+ optional: true
32603
+ }],
32604
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32605
+ name: "deviceId",
32606
+ form: "single",
32607
+ optional: false
32608
+ }],
32609
+ "pipelineOrchestrator.getCameraSwitches": [{
32610
+ name: "deviceId",
32611
+ form: "single",
32612
+ optional: false
32613
+ }],
32614
+ "pipelineOrchestrator.getPipelineAssignment": [{
32615
+ name: "deviceId",
32616
+ form: "single",
32617
+ optional: false
32618
+ }],
32619
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32620
+ name: "deviceId",
32621
+ form: "single",
32622
+ optional: false
32623
+ }],
32624
+ "pipelineOrchestrator.resolvePipeline": [{
32625
+ name: "deviceId",
32626
+ form: "single",
32627
+ optional: false
32628
+ }],
32629
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32630
+ name: "deviceId",
32631
+ form: "single",
32632
+ optional: false
32633
+ }],
32634
+ "pipelineOrchestrator.setCameraStepOverride": [{
32635
+ name: "deviceId",
32636
+ form: "single",
32637
+ optional: false
32638
+ }],
32639
+ "pipelineOrchestrator.setCameraStepToggle": [{
32640
+ name: "deviceId",
32641
+ form: "single",
32642
+ optional: false
32643
+ }],
32644
+ "pipelineOrchestrator.setCameraSwitch": [{
32645
+ name: "deviceId",
32646
+ form: "single",
32647
+ optional: false
32648
+ }],
32649
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32650
+ name: "deviceId",
32651
+ form: "single",
32652
+ optional: false
32653
+ }],
32654
+ "pipelineOrchestrator.unassignAudio": [{
32655
+ name: "deviceId",
32656
+ form: "single",
32657
+ optional: false
32658
+ }],
32659
+ "pipelineOrchestrator.unassignPipeline": [{
32660
+ name: "deviceId",
32661
+ form: "single",
32662
+ optional: false
32663
+ }],
32664
+ "pipelineRunner.attachCamera": [{
32665
+ name: "deviceId",
32666
+ form: "single",
32667
+ optional: false
32668
+ }],
32669
+ "pipelineRunner.detachCamera": [{
32670
+ name: "deviceId",
32671
+ form: "single",
32672
+ optional: false
32673
+ }],
32674
+ "pipelineRunner.getCameraMetrics": [{
32675
+ name: "deviceId",
32676
+ form: "single",
32677
+ optional: false
32678
+ }],
32679
+ "pipelineRunner.reportMotion": [{
32680
+ name: "deviceId",
32681
+ form: "single",
32682
+ optional: false
32683
+ }],
32684
+ "pipelineRunner.runDetailSubtree": [{
32685
+ name: "deviceId",
32686
+ form: "single",
32687
+ optional: false
32688
+ }],
32689
+ "pipelineRunner.runStatelessStep": [{
32690
+ name: "sourceDeviceId",
32691
+ form: "single",
32692
+ optional: false
32693
+ }],
32694
+ "plateGallery.getPlateByTrack": [{
32695
+ name: "deviceId",
32696
+ form: "single",
32697
+ optional: false
32698
+ }],
32699
+ "plateGallery.listPlates": [{
32700
+ name: "deviceId",
32701
+ form: "single",
32702
+ optional: true
32703
+ }],
32704
+ "privacyMask.getOptions": [{
32705
+ name: "deviceId",
32706
+ form: "single",
32707
+ optional: false
32708
+ }],
32709
+ "privacyMask.setAudioEnabled": [{
32710
+ name: "deviceId",
32711
+ form: "single",
32712
+ optional: false
32713
+ }],
32714
+ "privacyMask.setMask": [{
32715
+ name: "deviceId",
32716
+ form: "single",
32717
+ optional: false
32718
+ }],
32719
+ "ptz.continuousMove": [{
32720
+ name: "deviceId",
32721
+ form: "single",
32722
+ optional: false
32723
+ }],
32724
+ "ptz.deletePreset": [{
32725
+ name: "deviceId",
32726
+ form: "single",
32727
+ optional: false
32728
+ }],
32729
+ "ptz.getOptions": [{
32730
+ name: "deviceId",
32731
+ form: "single",
32732
+ optional: false
32733
+ }],
32734
+ "ptz.getPosition": [{
32735
+ name: "deviceId",
32736
+ form: "single",
32737
+ optional: false
32738
+ }],
32739
+ "ptz.getPresets": [{
32740
+ name: "deviceId",
32741
+ form: "single",
32742
+ optional: false
32743
+ }],
32744
+ "ptz.goHome": [{
32745
+ name: "deviceId",
32746
+ form: "single",
32747
+ optional: false
32748
+ }],
32749
+ "ptz.goToPreset": [{
32750
+ name: "deviceId",
32751
+ form: "single",
32752
+ optional: false
32753
+ }],
32754
+ "ptz.move": [{
32755
+ name: "deviceId",
32756
+ form: "single",
32757
+ optional: false
32758
+ }],
32759
+ "ptz.savePreset": [{
32760
+ name: "deviceId",
32761
+ form: "single",
32762
+ optional: false
32763
+ }],
32764
+ "ptz.setAutofocus": [{
32765
+ name: "deviceId",
32766
+ form: "single",
32767
+ optional: false
32768
+ }],
32769
+ "ptz.stop": [{
32770
+ name: "deviceId",
32771
+ form: "single",
32772
+ optional: false
32773
+ }],
32774
+ "ptzAutotrack.getSettings": [{
32775
+ name: "deviceId",
32776
+ form: "single",
32777
+ optional: false
32778
+ }],
32779
+ "ptzAutotrack.getStatus": [{
32780
+ name: "deviceId",
32781
+ form: "single",
32782
+ optional: false
32783
+ }],
32784
+ "ptzAutotrack.setEnabled": [{
32785
+ name: "deviceId",
32786
+ form: "single",
32787
+ optional: false
32788
+ }],
32789
+ "ptzAutotrack.setSettings": [{
32790
+ name: "deviceId",
32791
+ form: "single",
32792
+ optional: false
32793
+ }],
32794
+ "reboot.reboot": [{
32795
+ name: "deviceId",
32796
+ form: "single",
32797
+ optional: false
32798
+ }],
32799
+ "recording.deleteFootprint": [{
32800
+ name: "deviceId",
32801
+ form: "single",
32802
+ optional: false
32803
+ }],
32804
+ "recording.getAvailability": [{
32805
+ name: "deviceId",
32806
+ form: "single",
32807
+ optional: false
32808
+ }],
32809
+ "recording.getDaysWithRecordings": [{
32810
+ name: "deviceId",
32811
+ form: "single",
32812
+ optional: false
32813
+ }],
32814
+ "recording.getDeviceConfig": [{
32815
+ name: "deviceId",
32816
+ form: "single",
32817
+ optional: false
32818
+ }],
32819
+ "recording.getPlaybackManifest": [{
32820
+ name: "deviceId",
32821
+ form: "single",
32822
+ optional: false
32823
+ }],
32824
+ "recording.listOpsLog": [{
32825
+ name: "deviceId",
32826
+ form: "single",
32827
+ optional: true
32828
+ }],
32829
+ "recording.locateSegment": [{
32830
+ name: "deviceId",
32831
+ form: "single",
32832
+ optional: false
32833
+ }],
32834
+ "recording.pruneFootage": [{
32835
+ name: "deviceId",
32836
+ form: "single",
32837
+ optional: false
32838
+ }],
32839
+ "recording.readGopBytes": [{
32840
+ name: "deviceId",
32841
+ form: "single",
32842
+ optional: false
32843
+ }],
32844
+ "recording.readSegmentBytes": [{
32845
+ name: "deviceId",
32846
+ form: "single",
32847
+ optional: false
32848
+ }],
32849
+ "recording.relocateFootage": [{
32850
+ name: "deviceId",
32851
+ form: "single",
32852
+ optional: true
32853
+ }],
32854
+ "recording.renderClip": [{
32855
+ name: "deviceId",
32856
+ form: "single",
32857
+ optional: false
32858
+ }],
32859
+ "recording.renderGif": [{
32860
+ name: "deviceId",
32861
+ form: "single",
32862
+ optional: false
32863
+ }],
32864
+ "recording.rescanStorage": [{
32865
+ name: "deviceId",
32866
+ form: "single",
32867
+ optional: false
32868
+ }],
32869
+ "recording.setDeviceConfig": [{
32870
+ name: "deviceId",
32871
+ form: "single",
32872
+ optional: false
32873
+ }],
32874
+ "recording.startStorageMigrationMove": [{
32875
+ name: "deviceId",
32876
+ form: "single",
32877
+ optional: true
32878
+ }],
32879
+ "recordingExport.createExport": [{
32880
+ name: "deviceId",
32881
+ form: "single",
32882
+ optional: false
32883
+ }],
32884
+ "recordingExport.listExports": [{
32885
+ name: "deviceId",
32886
+ form: "single",
32887
+ optional: true
32888
+ }],
32889
+ "sceneMonitor.captureReference": [{
32890
+ name: "deviceId",
32891
+ form: "single",
32892
+ optional: false
32893
+ }],
32894
+ "sceneMonitor.createScene": [{
32895
+ name: "deviceId",
32896
+ form: "single",
32897
+ optional: false
32898
+ }],
32899
+ "sceneMonitor.deleteReference": [{
32900
+ name: "deviceId",
32901
+ form: "single",
32902
+ optional: false
32903
+ }],
32904
+ "sceneMonitor.deleteScene": [{
32905
+ name: "deviceId",
32906
+ form: "single",
32907
+ optional: false
32908
+ }],
32909
+ "sceneMonitor.listScenes": [{
32910
+ name: "deviceId",
32911
+ form: "single",
32912
+ optional: false
32913
+ }],
32914
+ "sceneMonitor.recheckNow": [{
32915
+ name: "deviceId",
32916
+ form: "single",
32917
+ optional: false
32918
+ }],
32919
+ "sceneMonitor.resetScene": [{
32920
+ name: "deviceId",
32921
+ form: "single",
32922
+ optional: false
32923
+ }],
32924
+ "sceneMonitor.updateScene": [{
32925
+ name: "deviceId",
32926
+ form: "single",
32927
+ optional: false
32928
+ }],
32929
+ "scriptRunner.run": [{
32930
+ name: "deviceId",
32931
+ form: "single",
32932
+ optional: false
32933
+ }],
32934
+ "scriptRunner.stop": [{
32935
+ name: "deviceId",
32936
+ form: "single",
32937
+ optional: false
32938
+ }],
32939
+ "snapshot.getDebugState": [{
32940
+ name: "deviceId",
32941
+ form: "single",
32942
+ optional: false
32943
+ }],
32944
+ "snapshot.getSnapshot": [{
32945
+ name: "deviceId",
32946
+ form: "single",
32947
+ optional: false
32948
+ }],
32949
+ "snapshot.getSnapshotLinks": [{
32950
+ name: "targets",
32951
+ form: "object-array",
32952
+ optional: false,
32953
+ itemField: "deviceId"
32954
+ }],
32955
+ "snapshot.getSnapshotOverview": [{
32956
+ name: "deviceIds",
32957
+ form: "array",
32958
+ optional: false
32959
+ }],
32960
+ "snapshot.invalidateCache": [{
32961
+ name: "deviceId",
32962
+ form: "single",
32963
+ optional: false
32964
+ }],
32965
+ "streamBroker.acquireEgressTranscode": [{
32966
+ name: "deviceId",
32967
+ form: "single",
32968
+ optional: false
32969
+ }],
32970
+ "streamBroker.assignProfile": [{
32971
+ name: "deviceId",
32972
+ form: "single",
32973
+ optional: false
32974
+ }],
32975
+ "streamBroker.getDeviceAudioMute": [{
32976
+ name: "deviceId",
32977
+ form: "single",
32978
+ optional: false
32979
+ }],
32980
+ "streamBroker.getStreamWithCodec": [{
32981
+ name: "deviceId",
32982
+ form: "single",
32983
+ optional: false
32984
+ }],
32985
+ "streamBroker.produceEventMedia": [{
32986
+ name: "deviceId",
32987
+ form: "single",
32988
+ optional: false
32989
+ }],
32990
+ "streamBroker.publishCameraStream": [{
32991
+ name: "deviceId",
32992
+ form: "single",
32993
+ optional: false
32994
+ }],
32995
+ "streamBroker.renderPreBufferClip": [{
32996
+ name: "deviceId",
32997
+ form: "single",
32998
+ optional: false
32999
+ }],
33000
+ "streamBroker.restartProfile": [{
33001
+ name: "deviceId",
33002
+ form: "single",
33003
+ optional: false
33004
+ }],
33005
+ "streamBroker.retractCameraStream": [{
33006
+ name: "deviceId",
33007
+ form: "single",
33008
+ optional: false
33009
+ }],
33010
+ "streamBroker.setDeviceAudioMute": [{
33011
+ name: "deviceId",
33012
+ form: "single",
33013
+ optional: false
33014
+ }],
33015
+ "streamBroker.unassignProfile": [{
33016
+ name: "deviceId",
33017
+ form: "single",
33018
+ optional: false
33019
+ }],
33020
+ "streamCatalog.getCatalog": [{
33021
+ name: "deviceId",
33022
+ form: "single",
33023
+ optional: false
33024
+ }],
33025
+ "streamParams.getConfigSchema": [{
33026
+ name: "deviceId",
33027
+ form: "single",
33028
+ optional: false
33029
+ }],
33030
+ "streamParams.getOptions": [{
33031
+ name: "deviceId",
33032
+ form: "single",
33033
+ optional: false
33034
+ }],
33035
+ "streamParams.setProfile": [{
33036
+ name: "deviceId",
33037
+ form: "single",
33038
+ optional: false
33039
+ }],
33040
+ "switch.setState": [{
33041
+ name: "deviceId",
33042
+ form: "single",
33043
+ optional: false
33044
+ }],
33045
+ "vacuumControl.locate": [{
33046
+ name: "deviceId",
33047
+ form: "single",
33048
+ optional: false
33049
+ }],
33050
+ "vacuumControl.pause": [{
33051
+ name: "deviceId",
33052
+ form: "single",
33053
+ optional: false
33054
+ }],
33055
+ "vacuumControl.returnToBase": [{
33056
+ name: "deviceId",
33057
+ form: "single",
33058
+ optional: false
33059
+ }],
33060
+ "vacuumControl.setFanSpeed": [{
33061
+ name: "deviceId",
33062
+ form: "single",
33063
+ optional: false
33064
+ }],
33065
+ "vacuumControl.start": [{
33066
+ name: "deviceId",
33067
+ form: "single",
33068
+ optional: false
33069
+ }],
33070
+ "vacuumControl.stop": [{
33071
+ name: "deviceId",
33072
+ form: "single",
33073
+ optional: false
33074
+ }],
33075
+ "valve.close": [{
33076
+ name: "deviceId",
33077
+ form: "single",
33078
+ optional: false
33079
+ }],
33080
+ "valve.open": [{
33081
+ name: "deviceId",
33082
+ form: "single",
33083
+ optional: false
33084
+ }],
33085
+ "valve.setPosition": [{
33086
+ name: "deviceId",
33087
+ form: "single",
33088
+ optional: false
33089
+ }],
33090
+ "valve.stop": [{
33091
+ name: "deviceId",
33092
+ form: "single",
33093
+ optional: false
33094
+ }],
33095
+ "videoclips.getClipPlayback": [{
33096
+ name: "deviceId",
33097
+ form: "single",
33098
+ optional: false
33099
+ }],
33100
+ "videoclips.listClips": [{
33101
+ name: "deviceId",
33102
+ form: "single",
33103
+ optional: false
33104
+ }],
33105
+ "waterHeater.setAway": [{
33106
+ name: "deviceId",
33107
+ form: "single",
33108
+ optional: false
33109
+ }],
33110
+ "waterHeater.setOperationMode": [{
33111
+ name: "deviceId",
33112
+ form: "single",
33113
+ optional: false
33114
+ }],
33115
+ "waterHeater.setTargetTemp": [{
33116
+ name: "deviceId",
33117
+ form: "single",
33118
+ optional: false
33119
+ }],
33120
+ "webrtcSession.addIceCandidate": [{
33121
+ name: "deviceId",
33122
+ form: "single",
33123
+ optional: false
33124
+ }],
33125
+ "webrtcSession.closeSession": [{
33126
+ name: "deviceId",
33127
+ form: "single",
33128
+ optional: false
33129
+ }],
33130
+ "webrtcSession.createSession": [{
33131
+ name: "deviceId",
33132
+ form: "single",
33133
+ optional: false
33134
+ }],
33135
+ "webrtcSession.getIceCandidates": [{
33136
+ name: "deviceId",
33137
+ form: "single",
33138
+ optional: false
33139
+ }],
33140
+ "webrtcSession.getSessionState": [{
33141
+ name: "deviceId",
33142
+ form: "single",
33143
+ optional: false
33144
+ }],
33145
+ "webrtcSession.handleAnswer": [{
33146
+ name: "deviceId",
33147
+ form: "single",
33148
+ optional: false
33149
+ }],
33150
+ "webrtcSession.handleOffer": [{
33151
+ name: "deviceId",
33152
+ form: "single",
33153
+ optional: false
33154
+ }],
33155
+ "webrtcSession.hasAdaptiveBitrate": [{
33156
+ name: "deviceId",
33157
+ form: "single",
33158
+ optional: false
33159
+ }],
33160
+ "webrtcSession.listStreams": [{
33161
+ name: "deviceId",
33162
+ form: "single",
33163
+ optional: false
33164
+ }],
33165
+ "zoneAnalytics.getCameraHistory": [{
33166
+ name: "deviceId",
33167
+ form: "single",
33168
+ optional: false
33169
+ }],
33170
+ "zoneAnalytics.getCurrentSnapshot": [{
33171
+ name: "deviceId",
33172
+ form: "single",
33173
+ optional: false
33174
+ }],
33175
+ "zoneAnalytics.getUnzonedHistory": [{
33176
+ name: "deviceId",
33177
+ form: "single",
33178
+ optional: false
33179
+ }],
33180
+ "zoneAnalytics.getZoneHistory": [{
33181
+ name: "deviceId",
33182
+ form: "single",
33183
+ optional: false
33184
+ }],
33185
+ "zoneRules.listRules": [{
33186
+ name: "deviceId",
33187
+ form: "single",
33188
+ optional: false
33189
+ }],
33190
+ "zoneRules.setRules": [{
33191
+ name: "deviceId",
33192
+ form: "single",
33193
+ optional: false
33194
+ }],
33195
+ "zones.addZone": [{
33196
+ name: "deviceId",
33197
+ form: "single",
33198
+ optional: false
33199
+ }],
33200
+ "zones.listZones": [{
33201
+ name: "deviceId",
33202
+ form: "single",
33203
+ optional: false
33204
+ }],
33205
+ "zones.removeZone": [{
33206
+ name: "deviceId",
33207
+ form: "single",
33208
+ optional: false
33209
+ }],
33210
+ "zones.updateZone": [{
33211
+ name: "deviceId",
33212
+ form: "single",
33213
+ optional: false
33214
+ }]
33215
+ });
30611
33216
  Object.freeze({
30612
33217
  "broker": "broker",
30613
33218
  "device-export": "device-export",