@camstack/addon-agent-ui 1.2.16 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/addon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region ../types/dist/event-category-Cv9dO26A.mjs
3
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -207,6 +207,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
207
207
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
208
208
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
209
209
  /**
210
+ * A node the orchestrator would otherwise place cameras on has NO usable
211
+ * inference device: the operator enabled one or more accelerators there and
212
+ * the live probe reports every one of them unavailable. Emitted once per
213
+ * TRANSITION into that state (never per dispatch), and the node is dropped
214
+ * from the placement candidate set for as long as it holds.
215
+ *
216
+ * This exists because the state was previously invisible: little-unraid
217
+ * absorbed 283k inference errors in a day while still being handed cameras,
218
+ * and nothing in the system said so.
219
+ *
220
+ * A node with no accelerators configured at all is NOT this — its devices
221
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
222
+ * serves it exactly as before.
223
+ */
224
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
225
+ /**
226
+ * A camera has an OPEN detection session and has produced no detection at
227
+ * all for longer than the blind threshold — the camera is being decoded and
228
+ * inferred and is returning nothing. Emitted once per transition into blind,
229
+ * per camera.
230
+ *
231
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
232
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
233
+ * camera" produce byte-identical silence.
234
+ */
235
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
236
+ /**
210
237
  * Per-camera pipeline config was mutated by the orchestrator
211
238
  * (3-level settings change via `setAgentAddonDefaults` /
212
239
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -2998,6 +3025,9 @@ function handlePipeResult(left, next, ctx) {
2998
3025
  fallback: left.fallback
2999
3026
  }, ctx);
3000
3027
  }
3028
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3029
+ $ZodPipe.init(inst, def);
3030
+ });
3001
3031
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3002
3032
  $ZodType.init(inst, def);
3003
3033
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5183,6 +5213,10 @@ function pipe(in_, out) {
5183
5213
  out
5184
5214
  });
5185
5215
  }
5216
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5217
+ ZodPipe.init(inst, def);
5218
+ $ZodPreprocess.init(inst, def);
5219
+ });
5186
5220
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5187
5221
  $ZodReadonly.init(inst, def);
5188
5222
  ZodType.init(inst, def);
@@ -5241,6 +5275,13 @@ function _instanceof(cls, params = {}) {
5241
5275
  };
5242
5276
  return inst;
5243
5277
  }
5278
+ function preprocess(fn, schema) {
5279
+ return new ZodPreprocess({
5280
+ type: "pipe",
5281
+ in: transform(fn),
5282
+ out: schema
5283
+ });
5284
+ }
5244
5285
  //#endregion
5245
5286
  //#region ../../node_modules/zod/v4/classic/compat.js
5246
5287
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10768,6 +10809,8 @@ var QueryFilterSchema = object({
10768
10809
  where: record(string(), unknown()).optional(),
10769
10810
  whereIn: record(string(), array(unknown())).optional(),
10770
10811
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10812
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10813
+ whereNot: record(string(), unknown()).optional(),
10771
10814
  orderBy: object({
10772
10815
  field: string(),
10773
10816
  direction: _enum(["asc", "desc"])
@@ -10787,7 +10830,8 @@ var QueryFilterSchema = object({
10787
10830
  var MutationFilterSchema = object({
10788
10831
  where: record(string(), unknown()).optional(),
10789
10832
  whereIn: record(string(), array(unknown())).optional(),
10790
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10833
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10834
+ whereNot: record(string(), unknown()).optional()
10791
10835
  });
10792
10836
  /** A single stored record: `{ id, data }`. */
10793
10837
  var SettingsRecordSchema = object({
@@ -12144,6 +12188,17 @@ var LlmImageSchema = object({
12144
12188
  bytes: _instanceof(Uint8Array),
12145
12189
  mimeType: string()
12146
12190
  });
12191
+ /**
12192
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12193
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12194
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12195
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12196
+ */
12197
+ var LlmRetryPolicySchema = object({
12198
+ enabled: boolean().default(false),
12199
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12200
+ maxAttempts: number().int().min(1).max(5).default(1)
12201
+ });
12147
12202
  var LlmGenerateBaseInputSchema = object({
12148
12203
  /** Collection routing (the notification-output posture). */
12149
12204
  addonId: string().optional(),
@@ -12158,7 +12213,28 @@ var LlmGenerateBaseInputSchema = object({
12158
12213
  jsonSchema: record(string(), unknown()).optional(),
12159
12214
  /** Per-call override of the profile default. */
12160
12215
  maxTokens: number().int().positive().optional(),
12161
- temperature: number().optional()
12216
+ temperature: number().optional(),
12217
+ /** Per-call override of the profile default (nucleus sampling). */
12218
+ topP: number().min(0).max(1).optional(),
12219
+ /** Per-call override of the profile default (top-k sampling). */
12220
+ topK: number().int().positive().optional(),
12221
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12222
+ timeoutMs: number().int().positive().optional(),
12223
+ /** Per-call override; beats both the consumer table and the profile. */
12224
+ retry: LlmRetryPolicySchema.optional(),
12225
+ /**
12226
+ * Caller-minted id that makes this generation CANCELLABLE.
12227
+ *
12228
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12229
+ * the call against 8 s and free their own slot when the timer wins, while the
12230
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12231
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12232
+ * not generations, and the real load is unbounded.
12233
+ *
12234
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12235
+ * `llm.cancel({ requestId })` tears the socket down.
12236
+ */
12237
+ requestId: string().optional()
12162
12238
  });
12163
12239
  /**
12164
12240
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12171,6 +12247,18 @@ var LlmGenerateBaseInputSchema = object({
12171
12247
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12172
12248
  * watchdog — operator decision #3).
12173
12249
  */
12250
+ /**
12251
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12252
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12253
+ * REF rather than looked up at install time, so what the operator approved in
12254
+ * the preview is exactly what the node downloads.
12255
+ */
12256
+ var ManagedModelExtraFileSchema = object({
12257
+ url: string(),
12258
+ filename: string(),
12259
+ sizeBytes: number(),
12260
+ sha256: string().optional()
12261
+ });
12174
12262
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12175
12263
  object({
12176
12264
  kind: literal("catalog"),
@@ -12179,7 +12267,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12179
12267
  object({
12180
12268
  kind: literal("url"),
12181
12269
  url: string(),
12182
- sha256: string().optional()
12270
+ sha256: string().optional(),
12271
+ /** Picker/status label; the file basename when absent. */
12272
+ label: string().optional(),
12273
+ sizeBytes: number().optional(),
12274
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12183
12275
  }),
12184
12276
  object({
12185
12277
  kind: literal("path"),
@@ -12197,13 +12289,82 @@ var ManagedRuntimeConfigSchema = object({
12197
12289
  gpuLayers: number().int().default(0),
12198
12290
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12199
12291
  threads: number().int().optional(),
12200
- /** Concurrent slots. */
12292
+ /** Concurrent slots (`--parallel`). */
12201
12293
  parallel: number().int().default(1),
12294
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12295
+ batchSize: number().int().positive().optional(),
12296
+ /** Physical batch / micro-batch (`-ub`). */
12297
+ ubatchSize: number().int().positive().optional(),
12298
+ /**
12299
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12300
+ * is a no-op elsewhere, so it is offered rather than assumed.
12301
+ */
12302
+ flashAttention: boolean().default(false),
12303
+ /**
12304
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12305
+ * inference. Costs the full model size in resident memory — which is exactly
12306
+ * what the RAM budget is counting.
12307
+ */
12308
+ mlock: boolean().default(false),
12309
+ /**
12310
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12311
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12312
+ * store produces on every first token.
12313
+ */
12314
+ noMmap: boolean().default(false),
12315
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12316
+ * cheapest way to fit a longer context in the same RAM. */
12317
+ cacheTypeK: _enum([
12318
+ "f32",
12319
+ "f16",
12320
+ "q8_0",
12321
+ "q5_1",
12322
+ "q5_0",
12323
+ "q4_1",
12324
+ "q4_0"
12325
+ ]).optional(),
12326
+ cacheTypeV: _enum([
12327
+ "f32",
12328
+ "f16",
12329
+ "q8_0",
12330
+ "q5_1",
12331
+ "q5_0",
12332
+ "q4_1",
12333
+ "q4_0"
12334
+ ]).optional(),
12335
+ /**
12336
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12337
+ * (which most vision chat templates need and some language-only models
12338
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12339
+ *
12340
+ * It is NOT a second place to set the flags above. A token that collides
12341
+ * with a typed field is REJECTED at start, naming the field that owns it
12342
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12343
+ * the "two switches that disagree" failure this repo has already shipped
12344
+ * twice (D62).
12345
+ */
12346
+ extraArgs: array(string()).default([]),
12202
12347
  /** Else lazy: first generate boots it. */
12203
12348
  autoStart: boolean().default(false),
12204
12349
  /** 0 = never; frees RAM after quiet periods. */
12205
12350
  idleStopMinutes: number().int().default(30)
12206
12351
  });
12352
+ /**
12353
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12354
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12355
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12356
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12357
+ */
12358
+ var LlmDownloadProgressSchema = object({
12359
+ phase: _enum(["downloading", "verifying"]),
12360
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12361
+ file: string(),
12362
+ fileIndex: number().int(),
12363
+ fileCount: number().int(),
12364
+ /** Across the WHOLE install, not the current file. */
12365
+ downloadedBytes: number(),
12366
+ totalBytes: number().optional()
12367
+ });
12207
12368
  var LlmRuntimeStatusSchema = object({
12208
12369
  /** Status is ALWAYS node-qualified. */
12209
12370
  nodeId: string(),
@@ -12220,6 +12381,8 @@ var LlmRuntimeStatusSchema = object({
12220
12381
  modelPath: string().optional(),
12221
12382
  modelId: string().optional(),
12222
12383
  downloadProgress: number().min(0).max(1).optional(),
12384
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12385
+ download: LlmDownloadProgressSchema.optional(),
12223
12386
  lastError: string().optional(),
12224
12387
  crashesInWindow: number(),
12225
12388
  /** Child RSS (sampled best-effort). */
@@ -12230,7 +12393,14 @@ var LlmNodeModelSchema = object({
12230
12393
  file: string(),
12231
12394
  sizeBytes: number(),
12232
12395
  catalogId: string().optional(),
12233
- installedAt: number().optional()
12396
+ installedAt: number().optional(),
12397
+ /**
12398
+ * Absolute path on the node. Present so a file that is on disk but matches
12399
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12400
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12401
+ * it the picker could list such a file and do nothing with it.
12402
+ */
12403
+ path: string().optional()
12234
12404
  });
12235
12405
  var LlmRuntimeDiskUsageSchema = object({
12236
12406
  nodeId: string(),
@@ -12286,10 +12456,47 @@ var LlmProfileSchema = object({
12286
12456
  baseUrl: string().optional(),
12287
12457
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12288
12458
  apiKey: string().optional(),
12459
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12460
+ * degraded to text — that shipped once and produced a confident answer to a
12461
+ * question about a picture nobody sent. */
12289
12462
  supportsVision: boolean(),
12290
12463
  temperature: number().min(0).max(2).optional(),
12464
+ /** Nucleus sampling. Every wire we speak has it. */
12465
+ topP: number().min(0).max(1).optional(),
12466
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12467
+ * wire does, and the client drops it there (measured: the request body gets
12468
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12469
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12470
+ topK: number().int().positive().optional(),
12291
12471
  maxTokens: number().int().positive().optional(),
12472
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12473
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12474
+ * the model with, so it is the one field that changes a PROCESS. */
12475
+ contextLength: number().int().positive().optional(),
12476
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12477
+ * two system prompts fighting is worse than either alone). */
12478
+ systemPrompt: string().optional(),
12479
+ /** Total generation bound — the only one a unary call has. */
12292
12480
  timeoutMs: number().int().positive().default(6e4),
12481
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12482
+ * response headers: on the LM Studio / llama-server wire those are written
12483
+ * once the model has finished loading, so they belong to the bound below. */
12484
+ connectTimeoutMs: number().int().positive().default(1e4),
12485
+ /** Accepted, but no output yet — response headers included, because a cold
12486
+ * GPU load is exactly what happens before them. */
12487
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12488
+ /** Output started then stopped. */
12489
+ idleTimeoutMs: number().int().positive().default(6e4),
12490
+ /** Profile-level default. The per-consumer table and a per-call override
12491
+ * both beat it — see `resolveRetryPolicy`. */
12492
+ retry: LlmRetryPolicySchema.default({
12493
+ enabled: false,
12494
+ maxAttempts: 1
12495
+ }),
12496
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12497
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12498
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12499
+ toolsEnabled: boolean().default(false),
12293
12500
  extraHeaders: record(string(), string()).optional(),
12294
12501
  /** kind === 'managed-local' only (spec §4). */
12295
12502
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12339,6 +12546,36 @@ var ManagedModelCatalogEntrySchema = object({
12339
12546
  /** Vision models: companion projector file. */
12340
12547
  mmprojUrl: string().optional()
12341
12548
  });
12549
+ /**
12550
+ * The outcome of turning one operator-typed Hugging Face reference into a
12551
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12552
+ * I will not pick for you" is a normal answer the UI has to render, not an
12553
+ * exception.
12554
+ *
12555
+ * `candidates` is the whole reason the refusal is usable — every string in it
12556
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12557
+ */
12558
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12559
+ ok: literal(true),
12560
+ /** Ready to hand to `installModel` unchanged. */
12561
+ model: ManagedModelRefSchema,
12562
+ label: string(),
12563
+ repo: string(),
12564
+ quantization: string(),
12565
+ purpose: _enum(["text", "vision"]),
12566
+ totalBytes: number(),
12567
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12568
+ * see that 0.9 GB of it is a projector they did not name. */
12569
+ extraFilenames: array(string())
12570
+ }), object({
12571
+ ok: literal(false),
12572
+ code: string(),
12573
+ message: string(),
12574
+ candidates: array(string()).optional(),
12575
+ /** Set when the refusal was only the ceiling: re-calling with
12576
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12577
+ requiredBytes: number().optional()
12578
+ })]);
12342
12579
  var LlmRuntimeNodeSchema = object({
12343
12580
  nodeId: string(),
12344
12581
  reachable: boolean(),
@@ -12351,7 +12588,10 @@ var ProfileRefInputSchema = object({
12351
12588
  addonId: string(),
12352
12589
  profileId: string()
12353
12590
  });
12354
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12591
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12592
+ addonId: string().optional(),
12593
+ requestId: string()
12594
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12355
12595
  kind: "mutation",
12356
12596
  auth: "admin"
12357
12597
  }), method(ProfileRefInputSchema, _void(), {
@@ -12372,6 +12612,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12372
12612
  consumer: string().optional(),
12373
12613
  profileId: string().optional()
12374
12614
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12615
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12616
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12617
+ ref: string(),
12618
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12619
+ maxBytes: number().positive().optional()
12620
+ }), HfModelResolutionSchema, {
12621
+ kind: "mutation",
12622
+ auth: "admin"
12623
+ }), method(object({
12375
12624
  nodeId: string(),
12376
12625
  model: ManagedModelRefSchema
12377
12626
  }), _void(), {
@@ -12931,11 +13180,33 @@ var NotificationFormatSchema = _enum([
12931
13180
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
12932
13181
  * renderer's icon set; "acknowledge" survives an adapter that draws it
12933
13182
  * differently.
13183
+ *
13184
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13185
+ *
13186
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13187
+ * the whole set onto its own renderer's vocabulary through a
13188
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13189
+ * fallback, so adding a member here fails every adapter's build until someone
13190
+ * decides its glyph, which is the only place that decision can be made
13191
+ * honestly.
13192
+ *
13193
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13194
+ * `disarm` straight through; iOS feeds that string to
13195
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13196
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13197
+ * mapping, and "the field is documented" is not "the value renders".
13198
+ *
13199
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13200
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13201
+ * so an addon that emits a token the running hub does not know does not lose an
13202
+ * icon — its whole `send` fails Zod validation and the notification never
13203
+ * arrives. Never emit a new token from an addon before the train carrying it.
12934
13204
  */
12935
13205
  var NotificationActionIconSchema = _enum([
12936
13206
  "acknowledge",
12937
13207
  "dismiss",
12938
13208
  "silence",
13209
+ "snooze",
12939
13210
  "view",
12940
13211
  "play",
12941
13212
  "open",
@@ -12943,9 +13214,13 @@ var NotificationActionIconSchema = _enum([
12943
13214
  "lock",
12944
13215
  "unlock",
12945
13216
  "arm",
13217
+ "arm-home",
13218
+ "arm-away",
13219
+ "arm-night",
12946
13220
  "disarm",
12947
13221
  "light",
12948
- "alert"
13222
+ "alert",
13223
+ "camera"
12949
13224
  ]);
12950
13225
  /** A single tap-through action button. */
12951
13226
  var NotificationActionSchema = object({
@@ -13145,6 +13420,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13145
13420
  targetId: string(),
13146
13421
  enabled: boolean()
13147
13422
  }), _void(), { kind: "mutation" });
13423
+ new Set([
13424
+ {
13425
+ id: "person",
13426
+ name: "Person"
13427
+ },
13428
+ {
13429
+ id: "vehicle",
13430
+ name: "Vehicle"
13431
+ },
13432
+ {
13433
+ id: "animal",
13434
+ name: "Animal"
13435
+ },
13436
+ {
13437
+ id: "package",
13438
+ name: "Package"
13439
+ }
13440
+ ].map((l) => l.id));
13148
13441
  var COCO_TO_MACRO = {
13149
13442
  mapping: {
13150
13443
  person: "person",
@@ -13937,11 +14230,15 @@ var NcSystemEventKindSchema = _enum([
13937
14230
  "stream-offline",
13938
14231
  "node-online",
13939
14232
  "node-offline",
14233
+ "node-inference-unavailable",
14234
+ "detection-blind",
13940
14235
  "addon-update-available",
13941
14236
  "server-update-available",
13942
14237
  "alarm-triggered",
13943
14238
  "alarm-armed",
13944
14239
  "alarm-disarmed",
14240
+ "alarm-arming",
14241
+ "alarm-arm-refused",
13945
14242
  "camera-online",
13946
14243
  "camera-offline",
13947
14244
  "camera-disabled",
@@ -13996,7 +14293,16 @@ var NcScheduleSchema = object({
13996
14293
  });
13997
14294
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
13998
14295
  var NcPlateMatcherSchema = object({
13999
- values: array(string().min(1)).min(1),
14296
+ /**
14297
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14298
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14299
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14300
+ * rather than merely seen. A subject carrying no plate still fails.
14301
+ *
14302
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14303
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14304
+ */
14305
+ values: array(string().min(1)),
14000
14306
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14001
14307
  maxDistance: number().int().min(0).max(3).default(1)
14002
14308
  });
@@ -14030,28 +14336,36 @@ var NcOccupancyConditionSchema = object({
14030
14336
  /**
14031
14337
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14032
14338
  *
14033
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14034
- * reference notifier uses, so an operator moving between them re-uses what
14035
- * they already know): a rule matches when, over a sampling window of
14036
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14037
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14038
- *
14039
- * - `dbThreshold` its level is at or above this many dBFS (see
14040
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14041
- * - `labels` the classifier put at least one of these labels on it.
14042
- *
14043
- * Both are OPTIONAL and independent, which is the point of the shape: a
14044
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14045
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14046
- * is given** a window in which every sample is trivially a hit would fire on
14047
- * silence, so the engine refuses such a condition rather than notifying on
14048
- * nothing (the schema cannot express "at least one of" without becoming a
14049
- * ZodEffects the cap path would have to special-case).
14050
- *
14051
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14052
- * must be FULL before it can match a window that has been open for two
14053
- * seconds of its ten is 100% of nothing, and firing on it would make
14054
- * `samplingSeconds` decorative.
14339
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14340
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14341
+ * there is no second switch that can disagree with the first and every rule
14342
+ * authored before the decision migrates for free (`audioModeOf`):
14343
+ *
14344
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14345
+ * classifier labels with one of them. No window, no percentage:
14346
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14347
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14348
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14349
+ * reaches this condition if the classifier was already confident enough.
14350
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14351
+ * the condition: at least `hitPercent`% of the samples over
14352
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14353
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14354
+ * must be FULL before it can match a window open for two of its ten
14355
+ * seconds is 100% of nothing.
14356
+ *
14357
+ * **Why label mode has no window.** It had one, and it never fired: the
14358
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14359
+ * of them per episode, even through continuous crying. The measured maximum
14360
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14361
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14362
+ * the wrong question to ask of a sparse classifier.
14363
+ *
14364
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14365
+ * and the rule would fire on silence. The schema cannot express "exactly one
14366
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14367
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14368
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14055
14369
  *
14056
14370
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14057
14371
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14059,13 +14373,13 @@ var NcOccupancyConditionSchema = object({
14059
14373
  * an operator who typed `dog` mean the same thing.
14060
14374
  */
14061
14375
  var NcAudioConditionSchema = object({
14062
- /** Audio macro labels; absent = any sound (level-only rule). */
14376
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14063
14377
  labels: array(string().min(1)).min(1).optional(),
14064
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14378
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14065
14379
  dbThreshold: number().min(-96).max(0).optional(),
14066
- /** Percentage of the window's samples that must be hits (1–100). */
14380
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14067
14381
  hitPercent: number().int().min(1).max(100).default(60),
14068
- /** Length of the sampling window in seconds. */
14382
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14069
14383
  samplingSeconds: number().int().min(1).max(300).default(10)
14070
14384
  });
14071
14385
  /**
@@ -14203,13 +14517,81 @@ var NcRuleActionsSchema = object({
14203
14517
  */
14204
14518
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14205
14519
  });
14520
+ /**
14521
+ * "This rule applies only while `deviceId` is in one of `states`."
14522
+ *
14523
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14524
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14525
+ * make the condition lie about devices whose states have no equivalent.
14526
+ *
14527
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14528
+ * condition that fired on "I could not read it" would be worse than no gate.
14529
+ */
14530
+ var NcDeviceStateConditionSchema = object({
14531
+ deviceId: number().int(),
14532
+ /** Any of these matches. */
14533
+ states: array(string().min(1)).min(1)
14534
+ });
14535
+ /**
14536
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14537
+ *
14538
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14539
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14540
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14541
+ * already has a trigger ("tell me about a person at the front door, but only
14542
+ * while the bin is still out"). That is why it composes with every delivery
14543
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14544
+ * kind exist for it — see D159.
14545
+ *
14546
+ * ── Identity ───────────────────────────────────────────────────────────────
14547
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14548
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14549
+ * carried as a HINT for the editor and for the log line, never as part of the
14550
+ * lookup key: a rule whose hint drifted must still gate correctly.
14551
+ *
14552
+ * ── Which boolean ──────────────────────────────────────────────────────────
14553
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14554
+ * already declares which boolean drives notification rules, and a second knob
14555
+ * that could disagree with it is exactly the D62 failure. Set it only to
14556
+ * override one rule against the scene's own default.
14557
+ *
14558
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14559
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14560
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14561
+ * evidence, in either direction.
14562
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14563
+ * The latch is a durable fact about the past ("it has diverged since I armed
14564
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14565
+ * reason the operator asked for a latch.
14566
+ *
14567
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14568
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14569
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14570
+ * said out loud in the log rather than dropped in silence.
14571
+ */
14572
+ var NcSceneConditionSchema = object({
14573
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14574
+ sceneId: string().min(1),
14575
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14576
+ deviceId: number().int().optional(),
14577
+ /** The state the scene must be in for the rule to fire. */
14578
+ requiredState: _enum(["matched", "diverged"]),
14579
+ /**
14580
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14581
+ * scene's own `emit` field, which is the only place that decision belongs.
14582
+ */
14583
+ latched: boolean().optional()
14584
+ });
14206
14585
  var NcConditionsSchema = object({
14207
14586
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14208
- deviceState: object({
14209
- deviceId: number().int(),
14210
- /** Any of these matches. */
14211
- states: array(string().min(1)).min(1)
14212
- }).optional(),
14587
+ deviceState: NcDeviceStateConditionSchema.optional(),
14588
+ /**
14589
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14590
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14591
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14592
+ * {@link NcSceneCondition} and D159.
14593
+ */
14594
+ scene: NcSceneConditionSchema.optional(),
14213
14595
  /** Device scope — absent = all devices. */
14214
14596
  devices: array(number()).optional(),
14215
14597
  /** Detector class names (any overlap with the record's class set). */
@@ -14235,18 +14617,47 @@ var NcConditionsSchema = object({
14235
14617
  */
14236
14618
  labelEquals: array(string().min(1)).optional(),
14237
14619
  /**
14238
- * Identity matcher. P1 boundary: matched against the record's collapsed
14239
- * `label` (the identity display name propagated by the face pipeline) —
14240
- * identity-ID matching rides in P2 when identity ids reach the record.
14620
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14621
+ * is about recognised people at all.
14622
+ *
14623
+ * Three states, and the empty one is the point:
14624
+ *
14625
+ * | value | meaning |
14626
+ * | --- | --- |
14627
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14628
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14629
+ * | a list | only these identities |
14630
+ *
14631
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14632
+ * `devices` list is every device), applied one level down: the operator has
14633
+ * turned the face scope ON and narrowed it to nothing, which is every known
14634
+ * face. No second field states the same thing — a switch that can disagree
14635
+ * with the list under it is worse than no switch (D62).
14636
+ *
14637
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14638
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14639
+ * the operator fixed the spelling. The id reaches the record on
14640
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14641
+ * `{{label}}` renders.
14642
+ *
14643
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14644
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14645
+ * for is left as it stands and reported, never dropped. The engine also
14646
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14647
+ * migration could not resolve keeps matching exactly what it matched before.
14241
14648
  */
14242
14649
  identities: array(string().min(1)).optional(),
14243
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14650
+ /**
14651
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14652
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14653
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14654
+ */
14244
14655
  plates: NcPlateMatcherSchema.optional(),
14245
14656
  /**
14246
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14247
- * Same P1 boundary: matched against the record's collapsed `label` (the
14248
- * identity display name). A record with NO label passes (nothing to
14249
- * exclude), unlike the include variant which fails on an absent label.
14657
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14658
+ * the same id members and the same lazy name→id migration. A record with NO
14659
+ * identity passes (nothing to exclude), unlike the include variant which
14660
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14250
14661
  */
14251
14662
  identitiesExclude: array(string().min(1)).optional(),
14252
14663
  /**
@@ -14638,7 +15049,80 @@ var NcRuleInputSchema = object({
14638
15049
  * a rule that predates the gate must keep delivering byte-for-byte as it
14639
15050
  * did, and absent is the only way to say that without a migration.
14640
15051
  */
14641
- confirm: NcConfirmSchema.optional()
15052
+ confirm: NcConfirmSchema.optional(),
15053
+ /**
15054
+ * WAIT for face/plate recognition before saying anything.
15055
+ *
15056
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15057
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15058
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15059
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15060
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15061
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15062
+ *
15063
+ * Only two honest answers exist, and this flag picks between them. It has
15064
+ * effect ONLY on a rule that declares a recognition scope
15065
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15066
+ * other rule there is nothing to wait for and the flag is inert.
15067
+ *
15068
+ * | value | what happens |
15069
+ * | --- | --- |
15070
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15071
+ * | 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) |
15072
+ *
15073
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15074
+ * on the addon cap path, and absent has to keep meaning exactly what every
15075
+ * rule authored before this field meant.
15076
+ *
15077
+ * The cost of `true` is stated here because the editor states it too: a rule
15078
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15079
+ * tests every zone the track visited and a `crossing` condition can no longer
15080
+ * be satisfied, because a closed track carries no crossing.
15081
+ */
15082
+ waitForEnhancement: boolean().optional(),
15083
+ /**
15084
+ * GROUP a burst of subjects into ONE notification that grows.
15085
+ *
15086
+ * Seconds of quiet after the last matching subject before the burst is
15087
+ * considered over. While it is open, the first subject enqueues immediately —
15088
+ * **exactly as today, with no added latency** — and every real growth (a new
15089
+ * subject, or a name confirmed on one already in it) REPLACES that
15090
+ * notification with an updated one naming everybody. The push carries the
15091
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15092
+ *
15093
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15094
+ *
15095
+ * ### Why an idle cutoff and not a window
15096
+ *
15097
+ * The measured seven-person arrival on device 590 spans 110 s with every
15098
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15099
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15100
+ * 30 is Frigate's shipped value for the same decision.
15101
+ *
15102
+ * ### What it replaces
15103
+ *
15104
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15105
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15106
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15107
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15108
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15109
+ * budget over GROUPS — which is what it always meant — and a growth is never
15110
+ * throttled by the window its own first member spent.
15111
+ *
15112
+ * ### Interaction with {@link waitForEnhancement}
15113
+ *
15114
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15115
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15116
+ * CLOSE — already carrying its name — and grows as later members close. That
15117
+ * is later, and complete. With grouping alone the group opens on the first
15118
+ * object event and picks up names as they are confirmed, through the growth
15119
+ * path. Neither combination fires twice for one subject.
15120
+ *
15121
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15122
+ * on the addon cap path, so absent must keep meaning what it meant before this
15123
+ * field existed.
15124
+ */
15125
+ groupIdleSec: number().int().min(0).max(600).optional()
14642
15126
  });
14643
15127
  /**
14644
15128
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14745,6 +15229,7 @@ var NcConditionDescriptorSchema = object({
14745
15229
  "occupancy",
14746
15230
  "audio",
14747
15231
  "deviceState",
15232
+ "scene",
14748
15233
  "systemEvent"
14749
15234
  ]),
14750
15235
  operator: _enum([
@@ -15150,7 +15635,87 @@ var MethodAccessSchema = _enum([
15150
15635
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15151
15636
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15152
15637
  var CapScopeSchema = _enum(["device", "system"]);
15153
- var TokenScopeSchema = discriminatedUnion("type", [
15638
+ /**
15639
+ * DeviceSelector (scope model v3 — 2026-08-12).
15640
+ *
15641
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15642
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15643
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15644
+ * AFTER the grant was minted — no re-grant, no re-login.
15645
+ *
15646
+ * - `all` — every device in the deployment. The broad viewer/operator
15647
+ * lever without a `category` grant (a `category` grant also covers device
15648
+ * caps that carry no deviceId; `all` is specifically the device set).
15649
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15650
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15651
+ * is NOT covered until the grant is edited.
15652
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15653
+ * DYNAMIC. A device that changes type, or a new device of the type,
15654
+ * re-resolves on the next request.
15655
+ * - `locations` — every device whose operator-assigned `location` label is
15656
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15657
+ * null/unset location matches NO `locations` selector.
15658
+ */
15659
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15660
+ object({ kind: literal("all") }),
15661
+ object({
15662
+ kind: literal("ids"),
15663
+ ids: array(number().int()).min(1)
15664
+ }),
15665
+ object({
15666
+ kind: literal("types"),
15667
+ types: array(_enum(DeviceType)).min(1)
15668
+ }),
15669
+ object({
15670
+ kind: literal("locations"),
15671
+ locations: array(string().min(1)).min(1)
15672
+ })
15673
+ ]);
15674
+ var DeviceTokenScopeSchema = object({
15675
+ type: literal("device"),
15676
+ /** The device SET this grant covers — resolved against the live fleet. */
15677
+ selector: DeviceSelectorSchema,
15678
+ access: array(MethodAccessSchema).min(1),
15679
+ /**
15680
+ * Whether a grant on a PARENT device transparently covers its accessory
15681
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15682
+ * Direction is parent → children ONLY.
15683
+ *
15684
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15685
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15686
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15687
+ * operator must grant on the child, not inherit from the parent). Set it
15688
+ * explicitly to override that default per grant.
15689
+ */
15690
+ includeLinked: boolean().optional()
15691
+ });
15692
+ /**
15693
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15694
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15695
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15696
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15697
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15698
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15699
+ * migration cannot reach a JWT already in a client's hands; parse-time
15700
+ * migration covers both without a flag day. No cast — the raw object is read
15701
+ * through `Reflect.get` (its static type is `unknown`).
15702
+ */
15703
+ function migrateLegacyTokenScope(raw) {
15704
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15705
+ if (Reflect.get(raw, "type") !== "device") return raw;
15706
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15707
+ const targets = Reflect.get(raw, "targets");
15708
+ if (!Array.isArray(targets)) return raw;
15709
+ return {
15710
+ type: "device",
15711
+ selector: {
15712
+ kind: "ids",
15713
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15714
+ },
15715
+ access: Reflect.get(raw, "access")
15716
+ };
15717
+ }
15718
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15154
15719
  object({
15155
15720
  type: literal("category"),
15156
15721
  target: CapScopeSchema,
@@ -15166,18 +15731,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15166
15731
  target: string(),
15167
15732
  access: array(MethodAccessSchema).min(1)
15168
15733
  }),
15169
- object({
15170
- type: literal("device"),
15171
- /**
15172
- * One or more deviceIds (serialised as strings for wire-format
15173
- * consistency with the rest of the union). Matcher accepts if
15174
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15175
- * of one scope-per-device when granting access to a set of cameras.
15176
- */
15177
- targets: array(string()).min(1),
15178
- access: array(MethodAccessSchema).min(1)
15179
- })
15180
- ]);
15734
+ DeviceTokenScopeSchema
15735
+ ]));
15181
15736
  object({
15182
15737
  id: string(),
15183
15738
  username: string(),
@@ -15494,7 +16049,7 @@ var TrackEnvelopeSchema = object({
15494
16049
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15495
16050
  * keeps every scalar the list surfaces actually render (ids, class(es),
15496
16051
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15497
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16052
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15498
16053
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15499
16054
  * `getTrack`. Mirrors the event-store `projection` convention
15500
16055
  * (`getObjectEvents` et al.).
@@ -15630,7 +16185,21 @@ union([literal(1), literal(2)]);
15630
16185
  var LabelAttributionSchema = object({
15631
16186
  stepId: string(),
15632
16187
  modelId: string().optional(),
15633
- decidedAt: number()
16188
+ decidedAt: number(),
16189
+ /**
16190
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16191
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16192
+ *
16193
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16194
+ * notification rule authored on "Gianluca" stopped matching the moment the
16195
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16196
+ * the thing that does not move, so it is what a rule matches on
16197
+ * (`NcConditions.identities`) and the text is what a human is shown.
16198
+ *
16199
+ * Absent when the label names no gallery row — a plate the OCR read but no
16200
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16201
+ */
16202
+ identityId: string().optional()
15634
16203
  });
15635
16204
  /**
15636
16205
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15767,6 +16336,28 @@ var TrackSchema = object({
15767
16336
  * `=== true` and render nothing otherwise, never infer "no face".
15768
16337
  */
15769
16338
  hasFace: boolean().optional(),
16339
+ /**
16340
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16341
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16342
+ * so the passage is tracked once and as a VEHICLE.
16343
+ *
16344
+ * It exists because the fold's record was dishonest. D34 and the code both
16345
+ * said "the person is not lost — it is reported so both entities stay on the
16346
+ * record"; in fact the pair went into a per-processor RAM field behind an
16347
+ * accessor nobody called, and every durable surface said `vehicle`, full
16348
+ * stop. This is the composition note that makes the row true.
16349
+ *
16350
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16351
+ * person" is not an answer to "what is this" — both label tiers would refuse
16352
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16353
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16354
+ * and a `person` rule still does not fire for someone cycling past.
16355
+ *
16356
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16357
+ * the column, and every hub that predates the field, omits it. Test
16358
+ * `=== true` and render nothing otherwise — never infer "no rider".
16359
+ */
16360
+ hasRider: boolean().optional(),
15770
16361
  ...TrackFlagFields,
15771
16362
  ...TrackRetrainFields
15772
16363
  });
@@ -16116,7 +16707,10 @@ var RecentTracksQueryInput = object({
16116
16707
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16117
16708
  cursor: string().optional(),
16118
16709
  /** See {@link TrackProjectionSchema}. Default `full`. */
16119
- projection: TrackProjectionSchema.optional()
16710
+ projection: TrackProjectionSchema.optional(),
16711
+ /** Include stationary-promoted rows (parked objects). Default false: the
16712
+ * feed lists passages; parking records live on the stationary registry. */
16713
+ includeStationary: boolean().optional()
16120
16714
  });
16121
16715
  var RecentTracksPageSchema = object({
16122
16716
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16334,7 +16928,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16334
16928
  zone: TrackZoneFilterSchema.optional(),
16335
16929
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16336
16930
  * compatible — omitting the field keeps today's exact behaviour). */
16337
- projection: TrackProjectionSchema.optional()
16931
+ projection: TrackProjectionSchema.optional(),
16932
+ /** Include stationary-promoted rows (parked objects handed to the
16933
+ * stationary registry). Default false: the timeline lists passages,
16934
+ * not parking records (operator decision, 2026-08-15). */
16935
+ includeStationary: boolean().optional()
16338
16936
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16339
16937
  kind: "mutation",
16340
16938
  auth: "admin"
@@ -16498,11 +17096,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16498
17096
  auth: "admin"
16499
17097
  }), method(object({
16500
17098
  eventId: string(),
16501
- kind: MediaFileKindEnum.optional()
17099
+ kind: MediaFileKindEnum.optional(),
17100
+ deviceId: number()
16502
17101
  }), array(MediaFileSchema).readonly()), method(object({
16503
17102
  trackId: string(),
16504
- kinds: array(MediaFileKindEnum).optional()
16505
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17103
+ kinds: array(MediaFileKindEnum).optional(),
17104
+ deviceId: number()
17105
+ }), array(MediaFileSchema).readonly()), method(object({
17106
+ trackId: string(),
17107
+ deviceId: number()
17108
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16506
17109
  kind: "mutation",
16507
17110
  auth: "admin"
16508
17111
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17162,6 +17765,17 @@ var maxSessionHoldMsField = {
17162
17765
  default: 12e4,
17163
17766
  step: 5e3
17164
17767
  };
17768
+ /**
17769
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17770
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17771
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17772
+ */
17773
+ var audioMotionWindowMsField = {
17774
+ min: 5e3,
17775
+ max: 6e5,
17776
+ default: 9e4,
17777
+ step: 5e3
17778
+ };
17165
17779
  var motionFpsField = {
17166
17780
  min: 1,
17167
17781
  max: 30,
@@ -17174,10 +17788,26 @@ var detectionFpsField = {
17174
17788
  default: 10,
17175
17789
  step: 1
17176
17790
  };
17791
+ /**
17792
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17793
+ *
17794
+ * The recheck is now on by default (a parked car is invisible to occupancy
17795
+ * rules until the stationary registry has been rebuilt by motion, which after a
17796
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17797
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17798
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17799
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17800
+ *
17801
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17802
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17803
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17804
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17805
+ * that ships with an addon deploy.
17806
+ */
17177
17807
  var occupancyRecheckSecField = {
17178
17808
  min: 0,
17179
17809
  max: 300,
17180
- default: 30,
17810
+ default: 300,
17181
17811
  step: 5
17182
17812
  };
17183
17813
  var occupancyRecheckFramesField = {
@@ -17322,6 +17952,27 @@ var RunnerCameraConfigSchema = object({
17322
17952
  * resolved `CameraDetectionConfig`.
17323
17953
  */
17324
17954
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
17955
+ /**
17956
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
17957
+ * 'on-motion'` audio window, measured from the LAST motion event.
17958
+ *
17959
+ * This exists because the falling edge cannot be relied on. Camera-native
17960
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
17961
+ * its email-push SMTP path both emit `detected: true` and never the
17962
+ * counterpart); only the frame-diff analyzer emits falls. So on an
17963
+ * onboard-only camera a window that closed only on `detected: false` never
17964
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
17965
+ * battery camera, the one failure mode the mode exists to prevent.
17966
+ *
17967
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
17968
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
17969
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
17970
+ *
17971
+ * Not consumed by the runner: carried here so it shares the per-camera
17972
+ * device-settings surface with `motionCooldownMs`, exactly like
17973
+ * `maxSessionHoldMs`.
17974
+ */
17975
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17325
17976
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17326
17977
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17327
17978
  motionStreamId: string(),
@@ -17375,15 +18026,21 @@ var RunnerCameraConfigSchema = object({
17375
18026
  */
17376
18027
  onboardMotionDrivesAnalyzer: boolean().default(true),
17377
18028
  /**
17378
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17379
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17380
- * this is off by default because the recheck re-subscribes a detection session
17381
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17382
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
18029
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
18030
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17383
18031
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17384
18032
  * (and only render) when this is enabled.
17385
- */
17386
- occupancyRecheckEnabled: boolean().default(false),
18033
+ *
18034
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
18035
+ * recheck re-subscribes a detection session every N seconds while `watching`
18036
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
18037
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
18038
+ * object is counted only while the stationary registry holds it, and the
18039
+ * registry rebuilds from motion, so after a restart a parked car was invisible
18040
+ * to every occupancy rule until something moved in front of it. The churn is
18041
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
18042
+ */
18043
+ occupancyRecheckEnabled: boolean().default(true),
17387
18044
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17388
18045
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17389
18046
  /**
@@ -17411,7 +18068,7 @@ var RunnerCameraConfigSchema = object({
17411
18068
  */
17412
18069
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17413
18070
  });
17414
- 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;
18071
+ 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;
17415
18072
  /**
17416
18073
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17417
18074
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18427,7 +19084,16 @@ targets: array(object({
18427
19084
  /** A sleeping battery camera: the frame is deliberately stale and will
18428
19085
  * NOT refresh in the background. A surface should say so rather than
18429
19086
  * present it as current. */
18430
- sleeping: boolean()
19087
+ sleeping: boolean(),
19088
+ /** Current device state rendered over the cached frame. State images
19089
+ * remain authoritative even when their photographic background is
19090
+ * old; null means the link must carry a current camera frame. */
19091
+ stateReason: _enum([
19092
+ "disabled",
19093
+ "sleeping",
19094
+ "unreachable",
19095
+ "waking"
19096
+ ]).nullable()
18431
19097
  })));
18432
19098
  /**
18433
19099
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -19949,6 +20615,25 @@ var BatteryStatusSchema = object({
19949
20615
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
19950
20616
  lastUpdated: number(),
19951
20617
  /**
20618
+ * Ms epoch of the last time the device PROVED it was reachable — a
20619
+ * completed firmware round-trip, an observed wake, or an inbound push
20620
+ * (firmware event, email). `0`/absent = never since this slice was born.
20621
+ *
20622
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20623
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20624
+ * for the radio, because a poll that confirms reachability is the same
20625
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20626
+ * single derivation every consumer must use; no surface computes its own.
20627
+ *
20628
+ * It is deliberately NOT a clock in the
20629
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20630
+ * observation itself, and it is the only thing a 30-hour silence is
20631
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20632
+ * Reolink provider) so a value that means "recently" cannot cost a
20633
+ * SQLite commit per round-trip.
20634
+ */
20635
+ lastContactAt: number().optional(),
20636
+ /**
19952
20637
  * True when the source is a BINARY low-battery indicator (HA
19953
20638
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
19954
20639
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23486,7 +24171,7 @@ method(object({
23486
24171
  toMs: number()
23487
24172
  }), RecordingAvailabilitySchema, {
23488
24173
  kind: "query",
23489
- auth: "admin"
24174
+ auth: "protected"
23490
24175
  }), method(object({
23491
24176
  deviceId: number(),
23492
24177
  fromMs: number(),
@@ -23494,14 +24179,14 @@ method(object({
23494
24179
  tzOffsetMinutes: number()
23495
24180
  }), RecordingDaysSchema, {
23496
24181
  kind: "query",
23497
- auth: "admin"
24182
+ auth: "protected"
23498
24183
  }), method(object({
23499
24184
  deviceId: number(),
23500
24185
  fromMs: number(),
23501
24186
  toMs: number()
23502
24187
  }), RecordingManifestSchema, {
23503
24188
  kind: "query",
23504
- auth: "admin"
24189
+ auth: "protected"
23505
24190
  }), method(object({}), RecordingStorageUsageSchema, {
23506
24191
  kind: "query",
23507
24192
  auth: "admin"
@@ -23791,14 +24476,77 @@ method(object({
23791
24476
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23792
24477
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23793
24478
  *
23794
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
23795
- * derives the device-detail contribution; the provider carries NO hand-written
23796
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
23797
- * every hysteresis flip / availability change; consumers never poll.
23798
- */
23799
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23800
- * be added without a wire break (matching falls back to any-condition refs). */
24479
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24480
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24481
+ * for the thing: a scene is a standing question about the property ("is the bin
24482
+ * still out"), and the operator's question is "which of my scenes have tripped",
24483
+ * across every camera at once — not "what does camera 617 think". Buried one
24484
+ * camera deep it also could not be found. The surface is now a top-level admin
24485
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24486
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24487
+ *
24488
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24489
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24490
+ * directions, so a registration nobody declares fails exactly as loudly as a
24491
+ * declaration nobody registers. The editor is imported directly by the page.
24492
+ *
24493
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24494
+ * availability change; consumers never poll.
24495
+ */
24496
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24497
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24498
+ * Open by design so more can be added without a wire break.
24499
+ *
24500
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24501
+ * not comparable, so "I have never seen this scene in this light" is reported
24502
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24503
+ * collapses the cosine and would latch a false alarm every single night. */
23801
24504
  var SceneConditionSchema = string();
24505
+ /**
24506
+ * What a scene does when the CURRENT light has no reference of its own.
24507
+ *
24508
+ * The lighting variants are not equally likely to exist. Almost every operator
24509
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24510
+ * scene that is only ever going to be asked about a daytime question ("is the
24511
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24512
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24513
+ * working without it rather than degrading into a permanent complaint.
24514
+ *
24515
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24516
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24517
+ * last covered light left it at, the latch is untouched, and the hysteresis
24518
+ * run is neither spent nor cleared. The scene resumes by itself at first
24519
+ * light. This is the only behaviour under which "I never captured IR" is a
24520
+ * configuration choice instead of a nightly fault.
24521
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24522
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24523
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24524
+ * cross-condition cosines are not comparable, so a day reference against a
24525
+ * true IR frame collapses and the scene reports a theft at 21:40.
24526
+ *
24527
+ * Never applies when the scene has NO comparable reference at all — that is
24528
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24529
+ * there would hide a scene the operator never finished setting up.
24530
+ */
24531
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24532
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24533
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24534
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24535
+ * and never counts toward hysteresis in either direction. */
24536
+ var SceneVerdictSchema = _enum([
24537
+ "matched",
24538
+ "diverged",
24539
+ "unknown"
24540
+ ]);
24541
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24542
+ * silence that reads as "nothing has happened". */
24543
+ var SceneUnavailableSchema = _enum([
24544
+ "no-reference-for-condition",
24545
+ "view-shifted",
24546
+ "no-vision-profile",
24547
+ "encoder-model-changed",
24548
+ "no-snapshot"
24549
+ ]);
23802
24550
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23803
24551
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23804
24552
  var SceneReferenceSchema = object({
@@ -23806,7 +24554,14 @@ var SceneReferenceSchema = object({
23806
24554
  modelId: string(),
23807
24555
  condition: SceneConditionSchema,
23808
24556
  capturedAt: number(),
23809
- thumbnailMediaId: string().optional()
24557
+ thumbnailMediaId: string().optional(),
24558
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24559
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24560
+ * normalized rect frame a different piece of world, and the scene would
24561
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24562
+ * when hysteresis is about to flip — one extra encode per candidate
24563
+ * transition, not per poll. */
24564
+ anchorEmbedding: array(number()).optional()
23810
24565
  });
23811
24566
  var SceneMonitorStateSchema = object({
23812
24567
  id: string(),
@@ -23828,6 +24583,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
23828
24583
  profileId: string().optional(),
23829
24584
  hysteresisCount: number().int().positive()
23830
24585
  })]);
24586
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24587
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24588
+ * out in silence rather than reporting a fault every night. */
24589
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24590
+ /**
24591
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24592
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24593
+ *
24594
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24595
+ * fail-open: a notification suppressed is the worse error there, but a vision
24596
+ * model that timed out has not told us the bin is gone, and a latch is a
24597
+ * stateful claim that costs the operator a trip to reset.
24598
+ */
24599
+ var SceneConfirmSchema = object({
24600
+ enabled: boolean().default(false),
24601
+ prompt: string().min(1).max(1e3),
24602
+ profileId: string().optional(),
24603
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24604
+ maxImagePx: number().int().min(64).max(2048).default(448),
24605
+ /** What a timeout / unavailable model means for the PENDING flip. */
24606
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24607
+ });
23831
24608
  var SceneMonitorSchema = object({
23832
24609
  id: string(),
23833
24610
  label: string(),
@@ -23846,7 +24623,56 @@ var SceneMonitorSchema = object({
23846
24623
  lastConfidence: number().nullable(),
23847
24624
  currentCondition: SceneConditionSchema.nullable(),
23848
24625
  availability: _enum(["ok", "unavailable"]),
23849
- unavailableReason: string().nullable()
24626
+ unavailableReason: string().nullable(),
24627
+ /** Which state is "the initial screen". `null` until the first capture. */
24628
+ baselineStateId: string().nullable(),
24629
+ /** Which boolean drives notification rules and any export. */
24630
+ emit: _enum(["latched", "live"]).default("latched"),
24631
+ /** Live: does the region match the baseline RIGHT NOW. */
24632
+ verdict: SceneVerdictSchema,
24633
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24634
+ latched: boolean(),
24635
+ /** Last reset (or creation). */
24636
+ armedAt: number(),
24637
+ divergedAt: number().nullable(),
24638
+ restoredAt: number().nullable(),
24639
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24640
+ * during the window DISCARDS the observation — a car pulling up in front of
24641
+ * the bin must not be able to spend hysteresis credit. */
24642
+ quietSeconds: number().int().min(0).max(3600).default(60),
24643
+ /** An observation only advances the pending count when it is at least this
24644
+ * far from the previously counted one, so N agreeing checks span real time
24645
+ * rather than N adjacent polls inside one occlusion. */
24646
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24647
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24648
+ confirm: SceneConfirmSchema.optional(),
24649
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24650
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24651
+ /** Clear the latch on its own when the scene matches again? Default false —
24652
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24653
+ * automation can react to the bin coming back without the operator's own
24654
+ * alarm silently clearing itself. */
24655
+ autoRestore: boolean().default(false),
24656
+ /** What to do when the current light has no reference of its own. See
24657
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24658
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24659
+ /**
24660
+ * The light whose checks are currently being SAT OUT under
24661
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24662
+ *
24663
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24664
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24665
+ * nothing captured in this light"* in the same calm voice as the coverage
24666
+ * line, because the alternative is a scene that silently stops answering
24667
+ * after sunset with nothing anywhere saying why. A skipped check must never
24668
+ * read as a broken one.
24669
+ */
24670
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24671
+ /** Named cause when `verdict === 'unknown'`. */
24672
+ unavailable: SceneUnavailableSchema.nullable(),
24673
+ /** Conditions that have at least one comparable reference — the coverage line
24674
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24675
+ coveredConditions: array(SceneConditionSchema)
23850
24676
  });
23851
24677
  var SceneMonitorStatusSchema = object({
23852
24678
  monitors: array(SceneMonitorSchema),
@@ -23879,7 +24705,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
23879
24705
  "both"
23880
24706
  ]).optional(),
23881
24707
  checkIntervalSec: number().optional(),
23882
- check: SceneCheckSchema.optional()
24708
+ check: SceneCheckSchema.optional(),
24709
+ emit: _enum(["latched", "live"]).optional(),
24710
+ quietSeconds: number().int().min(0).max(3600).optional(),
24711
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24712
+ anchorThreshold: number().min(0).max(1).optional(),
24713
+ autoRestore: boolean().optional(),
24714
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24715
+ /** `null` clears the vision-model adjudicator. */
24716
+ confirm: SceneConfirmSchema.nullable().optional()
23883
24717
  })
23884
24718
  }), _void(), {
23885
24719
  kind: "mutation",
@@ -23916,6 +24750,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
23916
24750
  }), _void(), {
23917
24751
  kind: "mutation",
23918
24752
  auth: "admin"
24753
+ }), method(object({
24754
+ deviceId: number(),
24755
+ monitorId: string(),
24756
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24757
+ recapture: boolean().optional()
24758
+ }), _void(), {
24759
+ kind: "mutation",
24760
+ auth: "admin"
23919
24761
  });
23920
24762
  /**
23921
24763
  * Per-stage gating mode applied to the zones a rule references.
@@ -24069,6 +24911,16 @@ var CamStreamDescriptorSchema = object({
24069
24911
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24070
24912
  metadata: record(string(), unknown()).optional()
24071
24913
  });
24914
+ object({
24915
+ /** The descriptors as last built from a real camera response. Never a guess:
24916
+ * a failed or refused build writes NOTHING, so a restored catalog is always
24917
+ * one the camera itself once produced. */
24918
+ descriptors: array(CamStreamDescriptorSchema),
24919
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
24920
+ * path decide whether the camera's own awake window is worth spending on a
24921
+ * re-read. */
24922
+ lastFetchedAt: number()
24923
+ });
24072
24924
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24073
24925
  /** One of the camera's stream profiles. */
24074
24926
  var StreamProfileSchema = _enum([
@@ -24224,12 +25076,64 @@ var NetworkAddressSchema = object({
24224
25076
  family: string(),
24225
25077
  internal: boolean()
24226
25078
  });
25079
+ /**
25080
+ * Provenance of the site coordinates, and the whole reason this is not just two
25081
+ * numbers.
25082
+ *
25083
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25084
+ * nothing overwrites it.
25085
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25086
+ * default that is right to a few kilometres beats the coarse UTC clock split
25087
+ * the sun-times consumers otherwise fall back to.
25088
+ *
25089
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25090
+ * own input will eventually trust the guess.
25091
+ */
25092
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25093
+ /**
25094
+ * The read shape: the location plus the honest state of the one-shot derivation.
25095
+ *
25096
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25097
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25098
+ * failed; the hub will NOT try again on its own — the fallback is declared
25099
+ * (consumers degrade to their own last resort) and the operator either types the
25100
+ * coordinates or presses detect.
25101
+ */
25102
+ var SiteLocationStatusSchema = object({
25103
+ location: object({
25104
+ /** WGS84 decimal degrees. */
25105
+ latitude: number().min(-90).max(90),
25106
+ longitude: number().min(-180).max(180),
25107
+ source: SiteLocationSourceSchema,
25108
+ /** Epoch ms the value was last written. */
25109
+ updatedAt: number(),
25110
+ /**
25111
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25112
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25113
+ */
25114
+ label: string().optional()
25115
+ }).nullable(),
25116
+ derivationAttemptedAt: number().nullable(),
25117
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25118
+ derivationError: string().nullable()
25119
+ });
25120
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25121
+ var SetSiteLocationInputSchema = object({
25122
+ latitude: number().min(-90).max(90),
25123
+ longitude: number().min(-180).max(180)
25124
+ }).nullable();
24227
25125
  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(), {
24228
25126
  kind: "mutation",
24229
25127
  auth: "admin"
24230
25128
  }), method(_void(), _void(), {
24231
25129
  kind: "mutation",
24232
25130
  auth: "admin"
25131
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25132
+ kind: "mutation",
25133
+ auth: "admin"
25134
+ }), method(_void(), SiteLocationStatusSchema, {
25135
+ kind: "mutation",
25136
+ auth: "admin"
24233
25137
  });
24234
25138
  object({
24235
25139
  /** True when the device's tamper switch / case-open contact is
@@ -26959,6 +27863,12 @@ Object.freeze({
26959
27863
  addonId: null,
26960
27864
  access: "create"
26961
27865
  },
27866
+ "llm.cancel": {
27867
+ capName: "llm",
27868
+ capScope: "system",
27869
+ addonId: null,
27870
+ access: "create"
27871
+ },
26962
27872
  "llm.deleteModel": {
26963
27873
  capName: "llm",
26964
27874
  capScope: "system",
@@ -27043,6 +27953,12 @@ Object.freeze({
27043
27953
  addonId: null,
27044
27954
  access: "view"
27045
27955
  },
27956
+ "llm.resolveModelRef": {
27957
+ capName: "llm",
27958
+ capScope: "system",
27959
+ addonId: null,
27960
+ access: "create"
27961
+ },
27046
27962
  "llm.setDefault": {
27047
27963
  capName: "llm",
27048
27964
  capScope: "system",
@@ -29209,6 +30125,12 @@ Object.freeze({
29209
30125
  addonId: null,
29210
30126
  access: "create"
29211
30127
  },
30128
+ "sceneMonitor.resetScene": {
30129
+ capName: "scene-monitor",
30130
+ capScope: "device",
30131
+ addonId: null,
30132
+ access: "delete"
30133
+ },
29212
30134
  "sceneMonitor.updateScene": {
29213
30135
  capName: "scene-monitor",
29214
30136
  capScope: "device",
@@ -29887,6 +30809,12 @@ Object.freeze({
29887
30809
  addonId: null,
29888
30810
  access: "create"
29889
30811
  },
30812
+ "system.detectSiteLocation": {
30813
+ capName: "system",
30814
+ capScope: "system",
30815
+ addonId: null,
30816
+ access: "create"
30817
+ },
29890
30818
  "system.featureFlags": {
29891
30819
  capName: "system",
29892
30820
  capScope: "system",
@@ -29905,6 +30833,12 @@ Object.freeze({
29905
30833
  addonId: null,
29906
30834
  access: "view"
29907
30835
  },
30836
+ "system.getSiteLocation": {
30837
+ capName: "system",
30838
+ capScope: "system",
30839
+ addonId: null,
30840
+ access: "view"
30841
+ },
29908
30842
  "system.health": {
29909
30843
  capName: "system",
29910
30844
  capScope: "system",
@@ -29929,6 +30863,12 @@ Object.freeze({
29929
30863
  addonId: null,
29930
30864
  access: "create"
29931
30865
  },
30866
+ "system.setSiteLocation": {
30867
+ capName: "system",
30868
+ capScope: "system",
30869
+ addonId: null,
30870
+ access: "create"
30871
+ },
29932
30872
  "terminalSession.adoptLegacyMonitor": {
29933
30873
  capName: "terminal-session",
29934
30874
  capScope: "system",
@@ -30500,6 +31440,1704 @@ Object.freeze({
30500
31440
  access: "create"
30501
31441
  }
30502
31442
  });
31443
+ Object.freeze({
31444
+ "accessories.setChildHidden": [{
31445
+ name: "childDeviceId",
31446
+ form: "single",
31447
+ optional: false
31448
+ }, {
31449
+ name: "deviceId",
31450
+ form: "single",
31451
+ optional: false
31452
+ }],
31453
+ "addonSettings.getDeviceSettings": [{
31454
+ name: "deviceId",
31455
+ form: "single",
31456
+ optional: false
31457
+ }],
31458
+ "addonSettings.updateDeviceSettings": [{
31459
+ name: "deviceId",
31460
+ form: "single",
31461
+ optional: false
31462
+ }],
31463
+ "alarmPanel.arm": [{
31464
+ name: "deviceId",
31465
+ form: "single",
31466
+ optional: false
31467
+ }],
31468
+ "alarmPanel.disarm": [{
31469
+ name: "deviceId",
31470
+ form: "single",
31471
+ optional: false
31472
+ }],
31473
+ "alarmPanel.trigger": [{
31474
+ name: "deviceId",
31475
+ form: "single",
31476
+ optional: false
31477
+ }],
31478
+ "audioAnalysis.resolveDeviceSettings": [{
31479
+ name: "deviceId",
31480
+ form: "single",
31481
+ optional: false
31482
+ }],
31483
+ "audioAnalyzer.classify": [{
31484
+ name: "deviceId",
31485
+ form: "single",
31486
+ optional: true
31487
+ }],
31488
+ "audioMetrics.getCurrentSnapshot": [{
31489
+ name: "deviceId",
31490
+ form: "single",
31491
+ optional: false
31492
+ }],
31493
+ "audioMetrics.getHistory": [{
31494
+ name: "deviceId",
31495
+ form: "single",
31496
+ optional: false
31497
+ }],
31498
+ "automationControl.disable": [{
31499
+ name: "deviceId",
31500
+ form: "single",
31501
+ optional: false
31502
+ }],
31503
+ "automationControl.enable": [{
31504
+ name: "deviceId",
31505
+ form: "single",
31506
+ optional: false
31507
+ }],
31508
+ "automationControl.trigger": [{
31509
+ name: "deviceId",
31510
+ form: "single",
31511
+ optional: false
31512
+ }],
31513
+ "battery.wakeForStream": [{
31514
+ name: "deviceId",
31515
+ form: "single",
31516
+ optional: false
31517
+ }],
31518
+ "brightness.setBrightness": [{
31519
+ name: "deviceId",
31520
+ form: "single",
31521
+ optional: false
31522
+ }],
31523
+ "button.press": [{
31524
+ name: "deviceId",
31525
+ form: "single",
31526
+ optional: false
31527
+ }],
31528
+ "cameraCredentials.getCredentials": [{
31529
+ name: "deviceId",
31530
+ form: "single",
31531
+ optional: false
31532
+ }],
31533
+ "cameraStreams.getBrokerStreams": [{
31534
+ name: "deviceId",
31535
+ form: "single",
31536
+ optional: false
31537
+ }],
31538
+ "cameraStreams.getCameraStreams": [{
31539
+ name: "deviceId",
31540
+ form: "single",
31541
+ optional: false
31542
+ }],
31543
+ "cameraStreams.getProfileRtspEntries": [{
31544
+ name: "deviceId",
31545
+ form: "single",
31546
+ optional: false
31547
+ }],
31548
+ "cameraStreams.getRtspEntries": [{
31549
+ name: "deviceId",
31550
+ form: "single",
31551
+ optional: false
31552
+ }],
31553
+ "cameraStreams.pickStream": [{
31554
+ name: "deviceId",
31555
+ form: "single",
31556
+ optional: false
31557
+ }],
31558
+ "climateControl.setFanMode": [{
31559
+ name: "deviceId",
31560
+ form: "single",
31561
+ optional: false
31562
+ }],
31563
+ "climateControl.setMode": [{
31564
+ name: "deviceId",
31565
+ form: "single",
31566
+ optional: false
31567
+ }],
31568
+ "climateControl.setPreset": [{
31569
+ name: "deviceId",
31570
+ form: "single",
31571
+ optional: false
31572
+ }],
31573
+ "climateControl.setSwingHorizontal": [{
31574
+ name: "deviceId",
31575
+ form: "single",
31576
+ optional: false
31577
+ }],
31578
+ "climateControl.setSwingVertical": [{
31579
+ name: "deviceId",
31580
+ form: "single",
31581
+ optional: false
31582
+ }],
31583
+ "climateControl.setTarget": [{
31584
+ name: "deviceId",
31585
+ form: "single",
31586
+ optional: false
31587
+ }],
31588
+ "climateControl.setTargetHumidity": [{
31589
+ name: "deviceId",
31590
+ form: "single",
31591
+ optional: false
31592
+ }],
31593
+ "climateControl.setTargetRange": [{
31594
+ name: "deviceId",
31595
+ form: "single",
31596
+ optional: false
31597
+ }],
31598
+ "color.setColor": [{
31599
+ name: "deviceId",
31600
+ form: "single",
31601
+ optional: false
31602
+ }],
31603
+ "consumables.reset": [{
31604
+ name: "deviceId",
31605
+ form: "single",
31606
+ optional: false
31607
+ }],
31608
+ "control.setValue": [{
31609
+ name: "deviceId",
31610
+ form: "single",
31611
+ optional: false
31612
+ }],
31613
+ "cover.close": [{
31614
+ name: "deviceId",
31615
+ form: "single",
31616
+ optional: false
31617
+ }],
31618
+ "cover.open": [{
31619
+ name: "deviceId",
31620
+ form: "single",
31621
+ optional: false
31622
+ }],
31623
+ "cover.setPosition": [{
31624
+ name: "deviceId",
31625
+ form: "single",
31626
+ optional: false
31627
+ }],
31628
+ "cover.setTiltPosition": [{
31629
+ name: "deviceId",
31630
+ form: "single",
31631
+ optional: false
31632
+ }],
31633
+ "cover.stop": [{
31634
+ name: "deviceId",
31635
+ form: "single",
31636
+ optional: false
31637
+ }],
31638
+ "dayNight.getOptions": [{
31639
+ name: "deviceId",
31640
+ form: "single",
31641
+ optional: false
31642
+ }],
31643
+ "dayNight.setSettings": [{
31644
+ name: "deviceId",
31645
+ form: "single",
31646
+ optional: false
31647
+ }],
31648
+ "decoder.createSession": [{
31649
+ name: "deviceId",
31650
+ form: "single",
31651
+ optional: true
31652
+ }],
31653
+ "deviceAdoption.release": [{
31654
+ name: "camDeviceId",
31655
+ form: "single",
31656
+ optional: false
31657
+ }],
31658
+ "deviceAdoption.resync": [{
31659
+ name: "camDeviceId",
31660
+ form: "single",
31661
+ optional: false
31662
+ }],
31663
+ "deviceDiscovery.adoptDevice": [{
31664
+ name: "deviceId",
31665
+ form: "single",
31666
+ optional: false
31667
+ }],
31668
+ "deviceDiscovery.listDiscovered": [{
31669
+ name: "deviceId",
31670
+ form: "single",
31671
+ optional: false
31672
+ }],
31673
+ "deviceDiscovery.refreshDiscovery": [{
31674
+ name: "deviceId",
31675
+ form: "single",
31676
+ optional: false
31677
+ }],
31678
+ "deviceDiscovery.releaseDevice": [{
31679
+ name: "childDeviceId",
31680
+ form: "single",
31681
+ optional: false
31682
+ }, {
31683
+ name: "deviceId",
31684
+ form: "single",
31685
+ optional: false
31686
+ }],
31687
+ "deviceManager.adoptionRelease": [{
31688
+ name: "camDeviceId",
31689
+ form: "single",
31690
+ optional: false
31691
+ }],
31692
+ "deviceManager.adoptionResync": [{
31693
+ name: "camDeviceId",
31694
+ form: "single",
31695
+ optional: false
31696
+ }],
31697
+ "deviceManager.applyInitialMeta": [{
31698
+ name: "deviceId",
31699
+ form: "single",
31700
+ optional: false
31701
+ }, {
31702
+ name: "linkDeviceId",
31703
+ form: "single",
31704
+ optional: true
31705
+ }],
31706
+ "deviceManager.disable": [{
31707
+ name: "deviceId",
31708
+ form: "single",
31709
+ optional: false
31710
+ }],
31711
+ "deviceManager.enable": [{
31712
+ name: "deviceId",
31713
+ form: "single",
31714
+ optional: false
31715
+ }],
31716
+ "deviceManager.getBindings": [{
31717
+ name: "deviceId",
31718
+ form: "single",
31719
+ optional: false
31720
+ }],
31721
+ "deviceManager.getChildren": [{
31722
+ name: "parentDeviceId",
31723
+ form: "single",
31724
+ optional: false
31725
+ }],
31726
+ "deviceManager.getConfigSchema": [{
31727
+ name: "deviceId",
31728
+ form: "single",
31729
+ optional: false
31730
+ }],
31731
+ "deviceManager.getDevice": [{
31732
+ name: "deviceId",
31733
+ form: "single",
31734
+ optional: false
31735
+ }],
31736
+ "deviceManager.getDeviceAggregate": [{
31737
+ name: "deviceId",
31738
+ form: "single",
31739
+ optional: false
31740
+ }],
31741
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31742
+ name: "deviceId",
31743
+ form: "single",
31744
+ optional: false
31745
+ }],
31746
+ "deviceManager.getDeviceSettingsAggregate": [{
31747
+ name: "deviceId",
31748
+ form: "single",
31749
+ optional: false
31750
+ }],
31751
+ "deviceManager.getDeviceStatusAggregate": [{
31752
+ name: "deviceId",
31753
+ form: "single",
31754
+ optional: false
31755
+ }],
31756
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31757
+ name: "deviceIds",
31758
+ form: "array",
31759
+ optional: false
31760
+ }],
31761
+ "deviceManager.getLinkedDevices": [{
31762
+ name: "deviceId",
31763
+ form: "single",
31764
+ optional: false
31765
+ }],
31766
+ "deviceManager.getSettingsSchema": [{
31767
+ name: "deviceId",
31768
+ form: "single",
31769
+ optional: false
31770
+ }],
31771
+ "deviceManager.getStreamProfileMap": [{
31772
+ name: "deviceId",
31773
+ form: "single",
31774
+ optional: false
31775
+ }],
31776
+ "deviceManager.getStreamSources": [{
31777
+ name: "deviceId",
31778
+ form: "single",
31779
+ optional: false
31780
+ }],
31781
+ "deviceManager.getWireableFields": [{
31782
+ name: "deviceId",
31783
+ form: "single",
31784
+ optional: false
31785
+ }],
31786
+ "deviceManager.loadConfig": [{
31787
+ name: "deviceId",
31788
+ form: "single",
31789
+ optional: false
31790
+ }],
31791
+ "deviceManager.loadMeta": [{
31792
+ name: "deviceId",
31793
+ form: "single",
31794
+ optional: false
31795
+ }],
31796
+ "deviceManager.loadRuntimeState": [{
31797
+ name: "deviceId",
31798
+ form: "single",
31799
+ optional: false
31800
+ }],
31801
+ "deviceManager.persistConfig": [{
31802
+ name: "deviceId",
31803
+ form: "single",
31804
+ optional: false
31805
+ }],
31806
+ "deviceManager.probeStreams": [{
31807
+ name: "deviceId",
31808
+ form: "single",
31809
+ optional: false
31810
+ }],
31811
+ "deviceManager.registerDevice": [{
31812
+ name: "parentDeviceId",
31813
+ form: "single",
31814
+ optional: true
31815
+ }],
31816
+ "deviceManager.remove": [{
31817
+ name: "deviceId",
31818
+ form: "single",
31819
+ optional: false
31820
+ }],
31821
+ "deviceManager.removeDevice": [{
31822
+ name: "deviceId",
31823
+ form: "single",
31824
+ optional: false
31825
+ }],
31826
+ "deviceManager.runDeviceAction": [{
31827
+ name: "deviceId",
31828
+ form: "single",
31829
+ optional: false
31830
+ }],
31831
+ "deviceManager.setChildLayout": [{
31832
+ name: "deviceId",
31833
+ form: "single",
31834
+ optional: false
31835
+ }],
31836
+ "deviceManager.setDisabled": [{
31837
+ name: "deviceId",
31838
+ form: "single",
31839
+ optional: false
31840
+ }],
31841
+ "deviceManager.setDisplay": [{
31842
+ name: "deviceId",
31843
+ form: "single",
31844
+ optional: false
31845
+ }],
31846
+ "deviceManager.setIntegrationId": [{
31847
+ name: "deviceId",
31848
+ form: "single",
31849
+ optional: false
31850
+ }],
31851
+ "deviceManager.setLinkDeviceId": [{
31852
+ name: "deviceId",
31853
+ form: "single",
31854
+ optional: false
31855
+ }, {
31856
+ name: "linkDeviceId",
31857
+ form: "single",
31858
+ optional: true
31859
+ }],
31860
+ "deviceManager.setLocation": [{
31861
+ name: "deviceId",
31862
+ form: "single",
31863
+ optional: false
31864
+ }],
31865
+ "deviceManager.setMetadata": [{
31866
+ name: "deviceId",
31867
+ form: "single",
31868
+ optional: false
31869
+ }],
31870
+ "deviceManager.setName": [{
31871
+ name: "deviceId",
31872
+ form: "single",
31873
+ optional: false
31874
+ }],
31875
+ "deviceManager.setPrimaryChildEntityId": [{
31876
+ name: "deviceId",
31877
+ form: "single",
31878
+ optional: false
31879
+ }],
31880
+ "deviceManager.setRole": [{
31881
+ name: "deviceId",
31882
+ form: "single",
31883
+ optional: false
31884
+ }],
31885
+ "deviceManager.setStreamProfileMap": [{
31886
+ name: "deviceId",
31887
+ form: "single",
31888
+ optional: false
31889
+ }],
31890
+ "deviceManager.setType": [{
31891
+ name: "deviceId",
31892
+ form: "single",
31893
+ optional: false
31894
+ }],
31895
+ "deviceManager.setWrapperActive": [{
31896
+ name: "deviceId",
31897
+ form: "single",
31898
+ optional: false
31899
+ }],
31900
+ "deviceManager.testField": [{
31901
+ name: "deviceId",
31902
+ form: "single",
31903
+ optional: false
31904
+ }],
31905
+ "deviceManager.updateConfig": [{
31906
+ name: "deviceId",
31907
+ form: "single",
31908
+ optional: false
31909
+ }],
31910
+ "deviceManager.updateDeviceField": [{
31911
+ name: "deviceId",
31912
+ form: "single",
31913
+ optional: false
31914
+ }],
31915
+ "deviceManager.updateDeviceFieldsBatch": [{
31916
+ name: "deviceId",
31917
+ form: "single",
31918
+ optional: false
31919
+ }],
31920
+ "deviceOps.getConfigEntries": [{
31921
+ name: "deviceId",
31922
+ form: "single",
31923
+ optional: false
31924
+ }],
31925
+ "deviceOps.getRawState": [{
31926
+ name: "deviceId",
31927
+ form: "single",
31928
+ optional: false
31929
+ }],
31930
+ "deviceOps.getSettingsSchema": [{
31931
+ name: "deviceId",
31932
+ form: "single",
31933
+ optional: false
31934
+ }],
31935
+ "deviceOps.getStreamSources": [{
31936
+ name: "deviceId",
31937
+ form: "single",
31938
+ optional: false
31939
+ }],
31940
+ "deviceOps.removeDevice": [{
31941
+ name: "deviceId",
31942
+ form: "single",
31943
+ optional: false
31944
+ }],
31945
+ "deviceOps.runAction": [{
31946
+ name: "deviceId",
31947
+ form: "single",
31948
+ optional: false
31949
+ }],
31950
+ "deviceOps.setConfig": [{
31951
+ name: "deviceId",
31952
+ form: "single",
31953
+ optional: false
31954
+ }],
31955
+ "deviceState.getCapSlice": [{
31956
+ name: "deviceId",
31957
+ form: "single",
31958
+ optional: false
31959
+ }],
31960
+ "deviceState.getSnapshot": [{
31961
+ name: "deviceId",
31962
+ form: "single",
31963
+ optional: false
31964
+ }],
31965
+ "deviceState.setCapSlice": [{
31966
+ name: "deviceId",
31967
+ form: "single",
31968
+ optional: false
31969
+ }],
31970
+ "events.getEventClipUrl": [{
31971
+ name: "deviceId",
31972
+ form: "single",
31973
+ optional: false
31974
+ }],
31975
+ "events.getEvents": [{
31976
+ name: "deviceId",
31977
+ form: "single",
31978
+ optional: false
31979
+ }],
31980
+ "events.getEventThumbnail": [{
31981
+ name: "deviceId",
31982
+ form: "single",
31983
+ optional: false
31984
+ }],
31985
+ "faceGallery.getFaceByTrack": [{
31986
+ name: "deviceId",
31987
+ form: "single",
31988
+ optional: false
31989
+ }],
31990
+ "faceGallery.listRecentFaces": [{
31991
+ name: "deviceId",
31992
+ form: "single",
31993
+ optional: true
31994
+ }],
31995
+ "fanControl.setDirection": [{
31996
+ name: "deviceId",
31997
+ form: "single",
31998
+ optional: false
31999
+ }],
32000
+ "fanControl.setOscillating": [{
32001
+ name: "deviceId",
32002
+ form: "single",
32003
+ optional: false
32004
+ }],
32005
+ "fanControl.setPercentage": [{
32006
+ name: "deviceId",
32007
+ form: "single",
32008
+ optional: false
32009
+ }],
32010
+ "fanControl.setPreset": [{
32011
+ name: "deviceId",
32012
+ form: "single",
32013
+ optional: false
32014
+ }],
32015
+ "humidifier.setMode": [{
32016
+ name: "deviceId",
32017
+ form: "single",
32018
+ optional: false
32019
+ }],
32020
+ "humidifier.setOn": [{
32021
+ name: "deviceId",
32022
+ form: "single",
32023
+ optional: false
32024
+ }],
32025
+ "humidifier.setTargetHumidity": [{
32026
+ name: "deviceId",
32027
+ form: "single",
32028
+ optional: false
32029
+ }],
32030
+ "imageSettings.getOptions": [{
32031
+ name: "deviceId",
32032
+ form: "single",
32033
+ optional: false
32034
+ }],
32035
+ "imageSettings.setSettings": [{
32036
+ name: "deviceId",
32037
+ form: "single",
32038
+ optional: false
32039
+ }],
32040
+ "intercom.endTalkSession": [{
32041
+ name: "deviceId",
32042
+ form: "single",
32043
+ optional: false
32044
+ }],
32045
+ "intercom.handleAnswer": [{
32046
+ name: "deviceId",
32047
+ form: "single",
32048
+ optional: false
32049
+ }],
32050
+ "intercom.pushTalkAudio": [{
32051
+ name: "deviceId",
32052
+ form: "single",
32053
+ optional: false
32054
+ }],
32055
+ "intercom.startSession": [{
32056
+ name: "deviceId",
32057
+ form: "single",
32058
+ optional: false
32059
+ }],
32060
+ "intercom.startTalkSession": [{
32061
+ name: "deviceId",
32062
+ form: "single",
32063
+ optional: false
32064
+ }],
32065
+ "intercom.stopSession": [{
32066
+ name: "deviceId",
32067
+ form: "single",
32068
+ optional: false
32069
+ }],
32070
+ "lawnMowerControl.dock": [{
32071
+ name: "deviceId",
32072
+ form: "single",
32073
+ optional: false
32074
+ }],
32075
+ "lawnMowerControl.pause": [{
32076
+ name: "deviceId",
32077
+ form: "single",
32078
+ optional: false
32079
+ }],
32080
+ "lawnMowerControl.startMowing": [{
32081
+ name: "deviceId",
32082
+ form: "single",
32083
+ optional: false
32084
+ }],
32085
+ "lockControl.lock": [{
32086
+ name: "deviceId",
32087
+ form: "single",
32088
+ optional: false
32089
+ }],
32090
+ "lockControl.open": [{
32091
+ name: "deviceId",
32092
+ form: "single",
32093
+ optional: false
32094
+ }],
32095
+ "lockControl.unlock": [{
32096
+ name: "deviceId",
32097
+ form: "single",
32098
+ optional: false
32099
+ }],
32100
+ "mediaPlayer.next": [{
32101
+ name: "deviceId",
32102
+ form: "single",
32103
+ optional: false
32104
+ }],
32105
+ "mediaPlayer.pause": [{
32106
+ name: "deviceId",
32107
+ form: "single",
32108
+ optional: false
32109
+ }],
32110
+ "mediaPlayer.play": [{
32111
+ name: "deviceId",
32112
+ form: "single",
32113
+ optional: false
32114
+ }],
32115
+ "mediaPlayer.playMedia": [{
32116
+ name: "deviceId",
32117
+ form: "single",
32118
+ optional: false
32119
+ }],
32120
+ "mediaPlayer.previous": [{
32121
+ name: "deviceId",
32122
+ form: "single",
32123
+ optional: false
32124
+ }],
32125
+ "mediaPlayer.seek": [{
32126
+ name: "deviceId",
32127
+ form: "single",
32128
+ optional: false
32129
+ }],
32130
+ "mediaPlayer.selectSource": [{
32131
+ name: "deviceId",
32132
+ form: "single",
32133
+ optional: false
32134
+ }],
32135
+ "mediaPlayer.setMute": [{
32136
+ name: "deviceId",
32137
+ form: "single",
32138
+ optional: false
32139
+ }],
32140
+ "mediaPlayer.setRepeat": [{
32141
+ name: "deviceId",
32142
+ form: "single",
32143
+ optional: false
32144
+ }],
32145
+ "mediaPlayer.setShuffle": [{
32146
+ name: "deviceId",
32147
+ form: "single",
32148
+ optional: false
32149
+ }],
32150
+ "mediaPlayer.setVolume": [{
32151
+ name: "deviceId",
32152
+ form: "single",
32153
+ optional: false
32154
+ }],
32155
+ "mediaPlayer.stop": [{
32156
+ name: "deviceId",
32157
+ form: "single",
32158
+ optional: false
32159
+ }],
32160
+ "motion.isDetected": [{
32161
+ name: "deviceId",
32162
+ form: "single",
32163
+ optional: false
32164
+ }],
32165
+ "motionDetection.analyze": [{
32166
+ name: "deviceId",
32167
+ form: "single",
32168
+ optional: false
32169
+ }],
32170
+ "motionDetection.removeCamera": [{
32171
+ name: "deviceId",
32172
+ form: "single",
32173
+ optional: false
32174
+ }],
32175
+ "motionTrigger.setMotionTrigger": [{
32176
+ name: "deviceId",
32177
+ form: "single",
32178
+ optional: false
32179
+ }],
32180
+ "motionZones.getOptions": [{
32181
+ name: "deviceId",
32182
+ form: "single",
32183
+ optional: false
32184
+ }],
32185
+ "motionZones.setZone": [{
32186
+ name: "deviceId",
32187
+ form: "single",
32188
+ optional: false
32189
+ }],
32190
+ "nativeObjectDetection.setEnabled": [{
32191
+ name: "deviceId",
32192
+ form: "single",
32193
+ optional: false
32194
+ }],
32195
+ "networkQuality.getDeviceStats": [{
32196
+ name: "deviceId",
32197
+ form: "single",
32198
+ optional: false
32199
+ }],
32200
+ "networkQuality.reportClientStats": [{
32201
+ name: "deviceId",
32202
+ form: "single",
32203
+ optional: false
32204
+ }],
32205
+ "notificationRules.setDeviceMuted": [{
32206
+ name: "deviceId",
32207
+ form: "single",
32208
+ optional: false
32209
+ }],
32210
+ "notifier.cancel": [{
32211
+ name: "deviceId",
32212
+ form: "single",
32213
+ optional: false
32214
+ }],
32215
+ "notifier.send": [{
32216
+ name: "deviceId",
32217
+ form: "single",
32218
+ optional: false
32219
+ }],
32220
+ "osd.setOverlay": [{
32221
+ name: "deviceId",
32222
+ form: "single",
32223
+ optional: false
32224
+ }],
32225
+ "osdManager.clearSlotBinding": [{
32226
+ name: "deviceId",
32227
+ form: "single",
32228
+ optional: false
32229
+ }],
32230
+ "osdManager.copyDeviceConfiguration": [{
32231
+ name: "sourceDeviceId",
32232
+ form: "single",
32233
+ optional: false
32234
+ }, {
32235
+ name: "targetDeviceId",
32236
+ form: "single",
32237
+ optional: false
32238
+ }],
32239
+ "osdManager.getDeviceOsd": [{
32240
+ name: "deviceId",
32241
+ form: "single",
32242
+ optional: false
32243
+ }],
32244
+ "osdManager.getSourceCatalog": [{
32245
+ name: "deviceId",
32246
+ form: "single",
32247
+ optional: false
32248
+ }],
32249
+ "osdManager.previewSlot": [{
32250
+ name: "deviceId",
32251
+ form: "single",
32252
+ optional: false
32253
+ }],
32254
+ "osdManager.renderDevice": [{
32255
+ name: "deviceId",
32256
+ form: "single",
32257
+ optional: false
32258
+ }],
32259
+ "osdManager.setSlotBinding": [{
32260
+ name: "deviceId",
32261
+ form: "single",
32262
+ optional: false
32263
+ }],
32264
+ "petFeeder.callPet": [{
32265
+ name: "deviceId",
32266
+ form: "single",
32267
+ optional: false
32268
+ }],
32269
+ "petFeeder.cancelFeed": [{
32270
+ name: "deviceId",
32271
+ form: "single",
32272
+ optional: false
32273
+ }],
32274
+ "petFeeder.feed": [{
32275
+ name: "deviceId",
32276
+ form: "single",
32277
+ optional: false
32278
+ }],
32279
+ "petFeeder.markFoodReplenished": [{
32280
+ name: "deviceId",
32281
+ form: "single",
32282
+ optional: false
32283
+ }],
32284
+ "petFeeder.playSound": [{
32285
+ name: "deviceId",
32286
+ form: "single",
32287
+ optional: false
32288
+ }],
32289
+ "petFeeder.resetDesiccant": [{
32290
+ name: "deviceId",
32291
+ form: "single",
32292
+ optional: false
32293
+ }],
32294
+ "petFeeder.setChildLock": [{
32295
+ name: "deviceId",
32296
+ form: "single",
32297
+ optional: false
32298
+ }],
32299
+ "petFeeder.setFeedSound": [{
32300
+ name: "deviceId",
32301
+ form: "single",
32302
+ optional: false
32303
+ }],
32304
+ "petFeeder.setIndicatorLight": [{
32305
+ name: "deviceId",
32306
+ form: "single",
32307
+ optional: false
32308
+ }],
32309
+ "petFeeder.setVolume": [{
32310
+ name: "deviceId",
32311
+ form: "single",
32312
+ optional: false
32313
+ }],
32314
+ "pipelineAnalytics.clearTracks": [{
32315
+ name: "deviceId",
32316
+ form: "single",
32317
+ optional: false
32318
+ }],
32319
+ "pipelineAnalytics.completeRetrainTrack": [{
32320
+ name: "deviceId",
32321
+ form: "single",
32322
+ optional: false
32323
+ }],
32324
+ "pipelineAnalytics.deleteDeviceEvents": [{
32325
+ name: "deviceId",
32326
+ form: "single",
32327
+ optional: false
32328
+ }],
32329
+ "pipelineAnalytics.deleteTracks": [{
32330
+ name: "deviceId",
32331
+ form: "single",
32332
+ optional: false
32333
+ }],
32334
+ "pipelineAnalytics.deselectRetrainFrame": [{
32335
+ name: "deviceId",
32336
+ form: "single",
32337
+ optional: false
32338
+ }],
32339
+ "pipelineAnalytics.getActiveTracks": [{
32340
+ name: "deviceId",
32341
+ form: "single",
32342
+ optional: false
32343
+ }],
32344
+ "pipelineAnalytics.getAudioEvents": [{
32345
+ name: "deviceId",
32346
+ form: "single",
32347
+ optional: false
32348
+ }],
32349
+ "pipelineAnalytics.getEventDensity": [{
32350
+ name: "deviceId",
32351
+ form: "single",
32352
+ optional: false
32353
+ }],
32354
+ "pipelineAnalytics.getEventMedia": [{
32355
+ name: "deviceId",
32356
+ form: "single",
32357
+ optional: false
32358
+ }],
32359
+ "pipelineAnalytics.getKeyEvents": [{
32360
+ name: "deviceId",
32361
+ form: "single",
32362
+ optional: false
32363
+ }],
32364
+ "pipelineAnalytics.getMotionEvents": [{
32365
+ name: "deviceId",
32366
+ form: "single",
32367
+ optional: false
32368
+ }],
32369
+ "pipelineAnalytics.getObjectEvents": [{
32370
+ name: "deviceId",
32371
+ form: "single",
32372
+ optional: false
32373
+ }],
32374
+ "pipelineAnalytics.getRetrainExportUrl": [{
32375
+ name: "deviceIds",
32376
+ form: "array",
32377
+ optional: true
32378
+ }],
32379
+ "pipelineAnalytics.getSensorEvents": [{
32380
+ name: "deviceId",
32381
+ form: "single",
32382
+ optional: false
32383
+ }],
32384
+ "pipelineAnalytics.getTrack": [{
32385
+ name: "deviceId",
32386
+ form: "single",
32387
+ optional: false
32388
+ }],
32389
+ "pipelineAnalytics.getTrackMedia": [{
32390
+ name: "deviceId",
32391
+ form: "single",
32392
+ optional: false
32393
+ }],
32394
+ "pipelineAnalytics.getTrainingExportSummary": [{
32395
+ name: "deviceIds",
32396
+ form: "array",
32397
+ optional: true
32398
+ }],
32399
+ "pipelineAnalytics.getTrainingExportUrl": [{
32400
+ name: "deviceIds",
32401
+ form: "array",
32402
+ optional: true
32403
+ }],
32404
+ "pipelineAnalytics.listEventKinds": [{
32405
+ name: "deviceId",
32406
+ form: "single",
32407
+ optional: false
32408
+ }],
32409
+ "pipelineAnalytics.listEventKindsBatch": [{
32410
+ name: "deviceIds",
32411
+ form: "array",
32412
+ optional: false
32413
+ }],
32414
+ "pipelineAnalytics.listOpsLog": [{
32415
+ name: "deviceId",
32416
+ form: "single",
32417
+ optional: true
32418
+ }],
32419
+ "pipelineAnalytics.listRecentTracks": [{
32420
+ name: "deviceIds",
32421
+ form: "array",
32422
+ optional: false
32423
+ }],
32424
+ "pipelineAnalytics.listRetrainStaging": [{
32425
+ name: "deviceIds",
32426
+ form: "array",
32427
+ optional: true
32428
+ }],
32429
+ "pipelineAnalytics.listTrackMedia": [{
32430
+ name: "deviceId",
32431
+ form: "single",
32432
+ optional: false
32433
+ }],
32434
+ "pipelineAnalytics.listTracks": [{
32435
+ name: "deviceId",
32436
+ form: "single",
32437
+ optional: false
32438
+ }],
32439
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32440
+ name: "deviceId",
32441
+ form: "single",
32442
+ optional: false
32443
+ }],
32444
+ "pipelineAnalytics.pruneEventsBefore": [{
32445
+ name: "deviceId",
32446
+ form: "single",
32447
+ optional: false
32448
+ }],
32449
+ "pipelineAnalytics.pruneTracksBefore": [{
32450
+ name: "deviceId",
32451
+ form: "single",
32452
+ optional: false
32453
+ }],
32454
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32455
+ name: "deviceId",
32456
+ form: "single",
32457
+ optional: true
32458
+ }],
32459
+ "pipelineAnalytics.restageRetrainTrack": [{
32460
+ name: "deviceId",
32461
+ form: "single",
32462
+ optional: false
32463
+ }],
32464
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32465
+ name: "deviceId",
32466
+ form: "single",
32467
+ optional: false
32468
+ }],
32469
+ "pipelineAnalytics.searchObjectEvents": [{
32470
+ name: "deviceId",
32471
+ form: "single",
32472
+ optional: true
32473
+ }],
32474
+ "pipelineAnalytics.selectRetrainFrames": [{
32475
+ name: "deviceId",
32476
+ form: "single",
32477
+ optional: false
32478
+ }],
32479
+ "pipelineAnalytics.setTrackFlags": [{
32480
+ name: "deviceId",
32481
+ form: "single",
32482
+ optional: false
32483
+ }],
32484
+ "pipelineAnalytics.wipeAllAnalytics": [{
32485
+ name: "deviceId",
32486
+ form: "single",
32487
+ optional: false
32488
+ }],
32489
+ "pipelineExecutor.runPipeline": [{
32490
+ name: "deviceId",
32491
+ form: "single",
32492
+ optional: true
32493
+ }],
32494
+ "pipelineExecutor.runPipelineBatch": [{
32495
+ name: "deviceId",
32496
+ form: "single",
32497
+ optional: true
32498
+ }],
32499
+ "pipelineOrchestrator.assignAudio": [{
32500
+ name: "deviceId",
32501
+ form: "single",
32502
+ optional: false
32503
+ }],
32504
+ "pipelineOrchestrator.assignPipeline": [{
32505
+ name: "deviceId",
32506
+ form: "single",
32507
+ optional: false
32508
+ }],
32509
+ "pipelineOrchestrator.getAudioAssignment": [{
32510
+ name: "deviceId",
32511
+ form: "single",
32512
+ optional: false
32513
+ }],
32514
+ "pipelineOrchestrator.getCameraMetrics": [{
32515
+ name: "deviceId",
32516
+ form: "single",
32517
+ optional: false
32518
+ }],
32519
+ "pipelineOrchestrator.getCameraSettings": [{
32520
+ name: "deviceId",
32521
+ form: "single",
32522
+ optional: false
32523
+ }],
32524
+ "pipelineOrchestrator.getCameraStatus": [{
32525
+ name: "deviceId",
32526
+ form: "single",
32527
+ optional: false
32528
+ }],
32529
+ "pipelineOrchestrator.getCameraStatuses": [{
32530
+ name: "deviceIds",
32531
+ form: "array",
32532
+ optional: true
32533
+ }],
32534
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32535
+ name: "deviceId",
32536
+ form: "single",
32537
+ optional: false
32538
+ }],
32539
+ "pipelineOrchestrator.getCameraSwitches": [{
32540
+ name: "deviceId",
32541
+ form: "single",
32542
+ optional: false
32543
+ }],
32544
+ "pipelineOrchestrator.getPipelineAssignment": [{
32545
+ name: "deviceId",
32546
+ form: "single",
32547
+ optional: false
32548
+ }],
32549
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32550
+ name: "deviceId",
32551
+ form: "single",
32552
+ optional: false
32553
+ }],
32554
+ "pipelineOrchestrator.resolvePipeline": [{
32555
+ name: "deviceId",
32556
+ form: "single",
32557
+ optional: false
32558
+ }],
32559
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32560
+ name: "deviceId",
32561
+ form: "single",
32562
+ optional: false
32563
+ }],
32564
+ "pipelineOrchestrator.setCameraStepOverride": [{
32565
+ name: "deviceId",
32566
+ form: "single",
32567
+ optional: false
32568
+ }],
32569
+ "pipelineOrchestrator.setCameraStepToggle": [{
32570
+ name: "deviceId",
32571
+ form: "single",
32572
+ optional: false
32573
+ }],
32574
+ "pipelineOrchestrator.setCameraSwitch": [{
32575
+ name: "deviceId",
32576
+ form: "single",
32577
+ optional: false
32578
+ }],
32579
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32580
+ name: "deviceId",
32581
+ form: "single",
32582
+ optional: false
32583
+ }],
32584
+ "pipelineOrchestrator.unassignAudio": [{
32585
+ name: "deviceId",
32586
+ form: "single",
32587
+ optional: false
32588
+ }],
32589
+ "pipelineOrchestrator.unassignPipeline": [{
32590
+ name: "deviceId",
32591
+ form: "single",
32592
+ optional: false
32593
+ }],
32594
+ "pipelineRunner.attachCamera": [{
32595
+ name: "deviceId",
32596
+ form: "single",
32597
+ optional: false
32598
+ }],
32599
+ "pipelineRunner.detachCamera": [{
32600
+ name: "deviceId",
32601
+ form: "single",
32602
+ optional: false
32603
+ }],
32604
+ "pipelineRunner.getCameraMetrics": [{
32605
+ name: "deviceId",
32606
+ form: "single",
32607
+ optional: false
32608
+ }],
32609
+ "pipelineRunner.reportMotion": [{
32610
+ name: "deviceId",
32611
+ form: "single",
32612
+ optional: false
32613
+ }],
32614
+ "pipelineRunner.runDetailSubtree": [{
32615
+ name: "deviceId",
32616
+ form: "single",
32617
+ optional: false
32618
+ }],
32619
+ "pipelineRunner.runStatelessStep": [{
32620
+ name: "sourceDeviceId",
32621
+ form: "single",
32622
+ optional: false
32623
+ }],
32624
+ "plateGallery.getPlateByTrack": [{
32625
+ name: "deviceId",
32626
+ form: "single",
32627
+ optional: false
32628
+ }],
32629
+ "plateGallery.listPlates": [{
32630
+ name: "deviceId",
32631
+ form: "single",
32632
+ optional: true
32633
+ }],
32634
+ "privacyMask.getOptions": [{
32635
+ name: "deviceId",
32636
+ form: "single",
32637
+ optional: false
32638
+ }],
32639
+ "privacyMask.setAudioEnabled": [{
32640
+ name: "deviceId",
32641
+ form: "single",
32642
+ optional: false
32643
+ }],
32644
+ "privacyMask.setMask": [{
32645
+ name: "deviceId",
32646
+ form: "single",
32647
+ optional: false
32648
+ }],
32649
+ "ptz.continuousMove": [{
32650
+ name: "deviceId",
32651
+ form: "single",
32652
+ optional: false
32653
+ }],
32654
+ "ptz.deletePreset": [{
32655
+ name: "deviceId",
32656
+ form: "single",
32657
+ optional: false
32658
+ }],
32659
+ "ptz.getOptions": [{
32660
+ name: "deviceId",
32661
+ form: "single",
32662
+ optional: false
32663
+ }],
32664
+ "ptz.getPosition": [{
32665
+ name: "deviceId",
32666
+ form: "single",
32667
+ optional: false
32668
+ }],
32669
+ "ptz.getPresets": [{
32670
+ name: "deviceId",
32671
+ form: "single",
32672
+ optional: false
32673
+ }],
32674
+ "ptz.goHome": [{
32675
+ name: "deviceId",
32676
+ form: "single",
32677
+ optional: false
32678
+ }],
32679
+ "ptz.goToPreset": [{
32680
+ name: "deviceId",
32681
+ form: "single",
32682
+ optional: false
32683
+ }],
32684
+ "ptz.move": [{
32685
+ name: "deviceId",
32686
+ form: "single",
32687
+ optional: false
32688
+ }],
32689
+ "ptz.savePreset": [{
32690
+ name: "deviceId",
32691
+ form: "single",
32692
+ optional: false
32693
+ }],
32694
+ "ptz.setAutofocus": [{
32695
+ name: "deviceId",
32696
+ form: "single",
32697
+ optional: false
32698
+ }],
32699
+ "ptz.stop": [{
32700
+ name: "deviceId",
32701
+ form: "single",
32702
+ optional: false
32703
+ }],
32704
+ "ptzAutotrack.getSettings": [{
32705
+ name: "deviceId",
32706
+ form: "single",
32707
+ optional: false
32708
+ }],
32709
+ "ptzAutotrack.getStatus": [{
32710
+ name: "deviceId",
32711
+ form: "single",
32712
+ optional: false
32713
+ }],
32714
+ "ptzAutotrack.setEnabled": [{
32715
+ name: "deviceId",
32716
+ form: "single",
32717
+ optional: false
32718
+ }],
32719
+ "ptzAutotrack.setSettings": [{
32720
+ name: "deviceId",
32721
+ form: "single",
32722
+ optional: false
32723
+ }],
32724
+ "reboot.reboot": [{
32725
+ name: "deviceId",
32726
+ form: "single",
32727
+ optional: false
32728
+ }],
32729
+ "recording.deleteFootprint": [{
32730
+ name: "deviceId",
32731
+ form: "single",
32732
+ optional: false
32733
+ }],
32734
+ "recording.getAvailability": [{
32735
+ name: "deviceId",
32736
+ form: "single",
32737
+ optional: false
32738
+ }],
32739
+ "recording.getDaysWithRecordings": [{
32740
+ name: "deviceId",
32741
+ form: "single",
32742
+ optional: false
32743
+ }],
32744
+ "recording.getDeviceConfig": [{
32745
+ name: "deviceId",
32746
+ form: "single",
32747
+ optional: false
32748
+ }],
32749
+ "recording.getPlaybackManifest": [{
32750
+ name: "deviceId",
32751
+ form: "single",
32752
+ optional: false
32753
+ }],
32754
+ "recording.listOpsLog": [{
32755
+ name: "deviceId",
32756
+ form: "single",
32757
+ optional: true
32758
+ }],
32759
+ "recording.locateSegment": [{
32760
+ name: "deviceId",
32761
+ form: "single",
32762
+ optional: false
32763
+ }],
32764
+ "recording.pruneFootage": [{
32765
+ name: "deviceId",
32766
+ form: "single",
32767
+ optional: false
32768
+ }],
32769
+ "recording.readGopBytes": [{
32770
+ name: "deviceId",
32771
+ form: "single",
32772
+ optional: false
32773
+ }],
32774
+ "recording.readSegmentBytes": [{
32775
+ name: "deviceId",
32776
+ form: "single",
32777
+ optional: false
32778
+ }],
32779
+ "recording.relocateFootage": [{
32780
+ name: "deviceId",
32781
+ form: "single",
32782
+ optional: true
32783
+ }],
32784
+ "recording.renderClip": [{
32785
+ name: "deviceId",
32786
+ form: "single",
32787
+ optional: false
32788
+ }],
32789
+ "recording.renderGif": [{
32790
+ name: "deviceId",
32791
+ form: "single",
32792
+ optional: false
32793
+ }],
32794
+ "recording.rescanStorage": [{
32795
+ name: "deviceId",
32796
+ form: "single",
32797
+ optional: false
32798
+ }],
32799
+ "recording.setDeviceConfig": [{
32800
+ name: "deviceId",
32801
+ form: "single",
32802
+ optional: false
32803
+ }],
32804
+ "recording.startStorageMigrationMove": [{
32805
+ name: "deviceId",
32806
+ form: "single",
32807
+ optional: true
32808
+ }],
32809
+ "recordingExport.createExport": [{
32810
+ name: "deviceId",
32811
+ form: "single",
32812
+ optional: false
32813
+ }],
32814
+ "recordingExport.listExports": [{
32815
+ name: "deviceId",
32816
+ form: "single",
32817
+ optional: true
32818
+ }],
32819
+ "sceneMonitor.captureReference": [{
32820
+ name: "deviceId",
32821
+ form: "single",
32822
+ optional: false
32823
+ }],
32824
+ "sceneMonitor.createScene": [{
32825
+ name: "deviceId",
32826
+ form: "single",
32827
+ optional: false
32828
+ }],
32829
+ "sceneMonitor.deleteReference": [{
32830
+ name: "deviceId",
32831
+ form: "single",
32832
+ optional: false
32833
+ }],
32834
+ "sceneMonitor.deleteScene": [{
32835
+ name: "deviceId",
32836
+ form: "single",
32837
+ optional: false
32838
+ }],
32839
+ "sceneMonitor.listScenes": [{
32840
+ name: "deviceId",
32841
+ form: "single",
32842
+ optional: false
32843
+ }],
32844
+ "sceneMonitor.recheckNow": [{
32845
+ name: "deviceId",
32846
+ form: "single",
32847
+ optional: false
32848
+ }],
32849
+ "sceneMonitor.resetScene": [{
32850
+ name: "deviceId",
32851
+ form: "single",
32852
+ optional: false
32853
+ }],
32854
+ "sceneMonitor.updateScene": [{
32855
+ name: "deviceId",
32856
+ form: "single",
32857
+ optional: false
32858
+ }],
32859
+ "scriptRunner.run": [{
32860
+ name: "deviceId",
32861
+ form: "single",
32862
+ optional: false
32863
+ }],
32864
+ "scriptRunner.stop": [{
32865
+ name: "deviceId",
32866
+ form: "single",
32867
+ optional: false
32868
+ }],
32869
+ "snapshot.getSnapshot": [{
32870
+ name: "deviceId",
32871
+ form: "single",
32872
+ optional: false
32873
+ }],
32874
+ "snapshot.getSnapshotLinks": [{
32875
+ name: "targets",
32876
+ form: "object-array",
32877
+ optional: false,
32878
+ itemField: "deviceId"
32879
+ }],
32880
+ "snapshot.getSnapshotOverview": [{
32881
+ name: "deviceIds",
32882
+ form: "array",
32883
+ optional: false
32884
+ }],
32885
+ "snapshot.invalidateCache": [{
32886
+ name: "deviceId",
32887
+ form: "single",
32888
+ optional: false
32889
+ }],
32890
+ "streamBroker.acquireEgressTranscode": [{
32891
+ name: "deviceId",
32892
+ form: "single",
32893
+ optional: false
32894
+ }],
32895
+ "streamBroker.assignProfile": [{
32896
+ name: "deviceId",
32897
+ form: "single",
32898
+ optional: false
32899
+ }],
32900
+ "streamBroker.getDeviceAudioMute": [{
32901
+ name: "deviceId",
32902
+ form: "single",
32903
+ optional: false
32904
+ }],
32905
+ "streamBroker.getStreamWithCodec": [{
32906
+ name: "deviceId",
32907
+ form: "single",
32908
+ optional: false
32909
+ }],
32910
+ "streamBroker.produceEventMedia": [{
32911
+ name: "deviceId",
32912
+ form: "single",
32913
+ optional: false
32914
+ }],
32915
+ "streamBroker.publishCameraStream": [{
32916
+ name: "deviceId",
32917
+ form: "single",
32918
+ optional: false
32919
+ }],
32920
+ "streamBroker.renderPreBufferClip": [{
32921
+ name: "deviceId",
32922
+ form: "single",
32923
+ optional: false
32924
+ }],
32925
+ "streamBroker.restartProfile": [{
32926
+ name: "deviceId",
32927
+ form: "single",
32928
+ optional: false
32929
+ }],
32930
+ "streamBroker.retractCameraStream": [{
32931
+ name: "deviceId",
32932
+ form: "single",
32933
+ optional: false
32934
+ }],
32935
+ "streamBroker.setDeviceAudioMute": [{
32936
+ name: "deviceId",
32937
+ form: "single",
32938
+ optional: false
32939
+ }],
32940
+ "streamBroker.unassignProfile": [{
32941
+ name: "deviceId",
32942
+ form: "single",
32943
+ optional: false
32944
+ }],
32945
+ "streamCatalog.getCatalog": [{
32946
+ name: "deviceId",
32947
+ form: "single",
32948
+ optional: false
32949
+ }],
32950
+ "streamParams.getConfigSchema": [{
32951
+ name: "deviceId",
32952
+ form: "single",
32953
+ optional: false
32954
+ }],
32955
+ "streamParams.getOptions": [{
32956
+ name: "deviceId",
32957
+ form: "single",
32958
+ optional: false
32959
+ }],
32960
+ "streamParams.setProfile": [{
32961
+ name: "deviceId",
32962
+ form: "single",
32963
+ optional: false
32964
+ }],
32965
+ "switch.setState": [{
32966
+ name: "deviceId",
32967
+ form: "single",
32968
+ optional: false
32969
+ }],
32970
+ "vacuumControl.locate": [{
32971
+ name: "deviceId",
32972
+ form: "single",
32973
+ optional: false
32974
+ }],
32975
+ "vacuumControl.pause": [{
32976
+ name: "deviceId",
32977
+ form: "single",
32978
+ optional: false
32979
+ }],
32980
+ "vacuumControl.returnToBase": [{
32981
+ name: "deviceId",
32982
+ form: "single",
32983
+ optional: false
32984
+ }],
32985
+ "vacuumControl.setFanSpeed": [{
32986
+ name: "deviceId",
32987
+ form: "single",
32988
+ optional: false
32989
+ }],
32990
+ "vacuumControl.start": [{
32991
+ name: "deviceId",
32992
+ form: "single",
32993
+ optional: false
32994
+ }],
32995
+ "vacuumControl.stop": [{
32996
+ name: "deviceId",
32997
+ form: "single",
32998
+ optional: false
32999
+ }],
33000
+ "valve.close": [{
33001
+ name: "deviceId",
33002
+ form: "single",
33003
+ optional: false
33004
+ }],
33005
+ "valve.open": [{
33006
+ name: "deviceId",
33007
+ form: "single",
33008
+ optional: false
33009
+ }],
33010
+ "valve.setPosition": [{
33011
+ name: "deviceId",
33012
+ form: "single",
33013
+ optional: false
33014
+ }],
33015
+ "valve.stop": [{
33016
+ name: "deviceId",
33017
+ form: "single",
33018
+ optional: false
33019
+ }],
33020
+ "videoclips.getClipPlayback": [{
33021
+ name: "deviceId",
33022
+ form: "single",
33023
+ optional: false
33024
+ }],
33025
+ "videoclips.listClips": [{
33026
+ name: "deviceId",
33027
+ form: "single",
33028
+ optional: false
33029
+ }],
33030
+ "waterHeater.setAway": [{
33031
+ name: "deviceId",
33032
+ form: "single",
33033
+ optional: false
33034
+ }],
33035
+ "waterHeater.setOperationMode": [{
33036
+ name: "deviceId",
33037
+ form: "single",
33038
+ optional: false
33039
+ }],
33040
+ "waterHeater.setTargetTemp": [{
33041
+ name: "deviceId",
33042
+ form: "single",
33043
+ optional: false
33044
+ }],
33045
+ "webrtcSession.addIceCandidate": [{
33046
+ name: "deviceId",
33047
+ form: "single",
33048
+ optional: false
33049
+ }],
33050
+ "webrtcSession.closeSession": [{
33051
+ name: "deviceId",
33052
+ form: "single",
33053
+ optional: false
33054
+ }],
33055
+ "webrtcSession.createSession": [{
33056
+ name: "deviceId",
33057
+ form: "single",
33058
+ optional: false
33059
+ }],
33060
+ "webrtcSession.getIceCandidates": [{
33061
+ name: "deviceId",
33062
+ form: "single",
33063
+ optional: false
33064
+ }],
33065
+ "webrtcSession.getSessionState": [{
33066
+ name: "deviceId",
33067
+ form: "single",
33068
+ optional: false
33069
+ }],
33070
+ "webrtcSession.handleAnswer": [{
33071
+ name: "deviceId",
33072
+ form: "single",
33073
+ optional: false
33074
+ }],
33075
+ "webrtcSession.handleOffer": [{
33076
+ name: "deviceId",
33077
+ form: "single",
33078
+ optional: false
33079
+ }],
33080
+ "webrtcSession.hasAdaptiveBitrate": [{
33081
+ name: "deviceId",
33082
+ form: "single",
33083
+ optional: false
33084
+ }],
33085
+ "webrtcSession.listStreams": [{
33086
+ name: "deviceId",
33087
+ form: "single",
33088
+ optional: false
33089
+ }],
33090
+ "zoneAnalytics.getCameraHistory": [{
33091
+ name: "deviceId",
33092
+ form: "single",
33093
+ optional: false
33094
+ }],
33095
+ "zoneAnalytics.getCurrentSnapshot": [{
33096
+ name: "deviceId",
33097
+ form: "single",
33098
+ optional: false
33099
+ }],
33100
+ "zoneAnalytics.getUnzonedHistory": [{
33101
+ name: "deviceId",
33102
+ form: "single",
33103
+ optional: false
33104
+ }],
33105
+ "zoneAnalytics.getZoneHistory": [{
33106
+ name: "deviceId",
33107
+ form: "single",
33108
+ optional: false
33109
+ }],
33110
+ "zoneRules.listRules": [{
33111
+ name: "deviceId",
33112
+ form: "single",
33113
+ optional: false
33114
+ }],
33115
+ "zoneRules.setRules": [{
33116
+ name: "deviceId",
33117
+ form: "single",
33118
+ optional: false
33119
+ }],
33120
+ "zones.addZone": [{
33121
+ name: "deviceId",
33122
+ form: "single",
33123
+ optional: false
33124
+ }],
33125
+ "zones.listZones": [{
33126
+ name: "deviceId",
33127
+ form: "single",
33128
+ optional: false
33129
+ }],
33130
+ "zones.removeZone": [{
33131
+ name: "deviceId",
33132
+ form: "single",
33133
+ optional: false
33134
+ }],
33135
+ "zones.updateZone": [{
33136
+ name: "deviceId",
33137
+ form: "single",
33138
+ optional: false
33139
+ }]
33140
+ });
30503
33141
  Object.freeze({
30504
33142
  "broker": "broker",
30505
33143
  "device-export": "device-export",
@@ -30899,7 +33537,7 @@ var AgentUIAddon = class extends BaseAddon {
30899
33537
  capability: adminUiCapability,
30900
33538
  provider: {
30901
33539
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
30902
- getVersion: async () => ({ version: "1.2.16" })
33540
+ getVersion: async () => ({ version: "1.2.18" })
30903
33541
  }
30904
33542
  }];
30905
33543
  }