@camstack/addon-static-turn 1.2.16 → 1.2.17

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