@camstack/addon-tailscale 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.
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-Cv9dO26A.mjs
1
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -205,6 +205,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
205
205
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
206
206
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
207
207
  /**
208
+ * A node the orchestrator would otherwise place cameras on has NO usable
209
+ * inference device: the operator enabled one or more accelerators there and
210
+ * the live probe reports every one of them unavailable. Emitted once per
211
+ * TRANSITION into that state (never per dispatch), and the node is dropped
212
+ * from the placement candidate set for as long as it holds.
213
+ *
214
+ * This exists because the state was previously invisible: little-unraid
215
+ * absorbed 283k inference errors in a day while still being handed cameras,
216
+ * and nothing in the system said so.
217
+ *
218
+ * A node with no accelerators configured at all is NOT this — its devices
219
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
220
+ * serves it exactly as before.
221
+ */
222
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
223
+ /**
224
+ * A camera has an OPEN detection session and has produced no detection at
225
+ * all for longer than the blind threshold — the camera is being decoded and
226
+ * inferred and is returning nothing. Emitted once per transition into blind,
227
+ * per camera.
228
+ *
229
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
230
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
231
+ * camera" produce byte-identical silence.
232
+ */
233
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
234
+ /**
208
235
  * Per-camera pipeline config was mutated by the orchestrator
209
236
  * (3-level settings change via `setAgentAddonDefaults` /
210
237
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -2996,6 +3023,9 @@ function handlePipeResult(left, next, ctx) {
2996
3023
  fallback: left.fallback
2997
3024
  }, ctx);
2998
3025
  }
3026
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3027
+ $ZodPipe.init(inst, def);
3028
+ });
2999
3029
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3000
3030
  $ZodType.init(inst, def);
3001
3031
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5181,6 +5211,10 @@ function pipe(in_, out) {
5181
5211
  out
5182
5212
  });
5183
5213
  }
5214
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5215
+ ZodPipe.init(inst, def);
5216
+ $ZodPreprocess.init(inst, def);
5217
+ });
5184
5218
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5185
5219
  $ZodReadonly.init(inst, def);
5186
5220
  ZodType.init(inst, def);
@@ -5239,6 +5273,13 @@ function _instanceof(cls, params = {}) {
5239
5273
  };
5240
5274
  return inst;
5241
5275
  }
5276
+ function preprocess(fn, schema) {
5277
+ return new ZodPreprocess({
5278
+ type: "pipe",
5279
+ in: transform(fn),
5280
+ out: schema
5281
+ });
5282
+ }
5242
5283
  //#endregion
5243
5284
  //#region ../../node_modules/zod/v4/classic/compat.js
5244
5285
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -6951,6 +6992,40 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
6951
6992
  action: string().min(1),
6952
6993
  input: unknown()
6953
6994
  }), unknown(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
6995
+ /**
6996
+ * The ONE retry schedule for work that can fail simply because the node was
6997
+ * still booting.
6998
+ *
6999
+ * The measured failure (docs/design/boot-to-usable-camera.md, item E): a hub
7000
+ * boot that serialised its addon graph starved every driver dial on it. Fifteen
7001
+ * Hikvision devices logged `Initial probe did not complete — scheduling retry
7002
+ * chain {firstRetryMs=300000}` and then sat unprobed for five minutes, long
7003
+ * after the condition that caused the failure had gone. The Tailscale addon's
7004
+ * auto-rejoin carried a byte-identical schedule, armed from `initialize()`, for
7005
+ * the same reason.
7006
+ *
7007
+ * The shape that fixes it: **two cheap attempts first, then the long tail.**
7008
+ *
7009
+ * - 15 s / 60 s — the boot window. Anything that failed because the node was
7010
+ * busy is recovered here, before an operator can open the UI and see a
7011
+ * camera that is wrong about itself.
7012
+ * - 5 m → 90 m — the genuinely-offline case. A battery cam that is asleep, a
7013
+ * VLAN that is down, a peer that has not come back. Unchanged in intent from
7014
+ * the schedule this replaces (~3 h 30 m of coverage): here ~3 h 21 m, then
7015
+ * the chain ends and manual re-arm (reprobe / restart) is the only path.
7016
+ *
7017
+ * Bounded on purpose — see D6. A chain that never gives up is a busy loop with
7018
+ * extra steps.
7019
+ */
7020
+ var BOOT_RECOVERY_BACKOFF_MS = [
7021
+ 15e3,
7022
+ 6e4,
7023
+ 5 * 6e4,
7024
+ 15 * 6e4,
7025
+ 30 * 6e4,
7026
+ 60 * 6e4,
7027
+ 90 * 6e4
7028
+ ];
6954
7029
  var EncodeProfileSchema = object({
6955
7030
  video: object({
6956
7031
  codec: _enum([
@@ -10757,6 +10832,8 @@ var QueryFilterSchema = object({
10757
10832
  where: record(string(), unknown()).optional(),
10758
10833
  whereIn: record(string(), array(unknown())).optional(),
10759
10834
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10835
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10836
+ whereNot: record(string(), unknown()).optional(),
10760
10837
  orderBy: object({
10761
10838
  field: string(),
10762
10839
  direction: _enum(["asc", "desc"])
@@ -10776,7 +10853,8 @@ var QueryFilterSchema = object({
10776
10853
  var MutationFilterSchema = object({
10777
10854
  where: record(string(), unknown()).optional(),
10778
10855
  whereIn: record(string(), array(unknown())).optional(),
10779
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10856
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10857
+ whereNot: record(string(), unknown()).optional()
10780
10858
  });
10781
10859
  /** A single stored record: `{ id, data }`. */
10782
10860
  var SettingsRecordSchema = object({
@@ -12133,6 +12211,17 @@ var LlmImageSchema = object({
12133
12211
  bytes: _instanceof(Uint8Array),
12134
12212
  mimeType: string()
12135
12213
  });
12214
+ /**
12215
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12216
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12217
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12218
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12219
+ */
12220
+ var LlmRetryPolicySchema = object({
12221
+ enabled: boolean().default(false),
12222
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12223
+ maxAttempts: number().int().min(1).max(5).default(1)
12224
+ });
12136
12225
  var LlmGenerateBaseInputSchema = object({
12137
12226
  /** Collection routing (the notification-output posture). */
12138
12227
  addonId: string().optional(),
@@ -12147,7 +12236,28 @@ var LlmGenerateBaseInputSchema = object({
12147
12236
  jsonSchema: record(string(), unknown()).optional(),
12148
12237
  /** Per-call override of the profile default. */
12149
12238
  maxTokens: number().int().positive().optional(),
12150
- temperature: number().optional()
12239
+ temperature: number().optional(),
12240
+ /** Per-call override of the profile default (nucleus sampling). */
12241
+ topP: number().min(0).max(1).optional(),
12242
+ /** Per-call override of the profile default (top-k sampling). */
12243
+ topK: number().int().positive().optional(),
12244
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12245
+ timeoutMs: number().int().positive().optional(),
12246
+ /** Per-call override; beats both the consumer table and the profile. */
12247
+ retry: LlmRetryPolicySchema.optional(),
12248
+ /**
12249
+ * Caller-minted id that makes this generation CANCELLABLE.
12250
+ *
12251
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12252
+ * the call against 8 s and free their own slot when the timer wins, while the
12253
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12254
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12255
+ * not generations, and the real load is unbounded.
12256
+ *
12257
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12258
+ * `llm.cancel({ requestId })` tears the socket down.
12259
+ */
12260
+ requestId: string().optional()
12151
12261
  });
12152
12262
  /**
12153
12263
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12160,6 +12270,18 @@ var LlmGenerateBaseInputSchema = object({
12160
12270
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12161
12271
  * watchdog — operator decision #3).
12162
12272
  */
12273
+ /**
12274
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12275
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12276
+ * REF rather than looked up at install time, so what the operator approved in
12277
+ * the preview is exactly what the node downloads.
12278
+ */
12279
+ var ManagedModelExtraFileSchema = object({
12280
+ url: string(),
12281
+ filename: string(),
12282
+ sizeBytes: number(),
12283
+ sha256: string().optional()
12284
+ });
12163
12285
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12164
12286
  object({
12165
12287
  kind: literal("catalog"),
@@ -12168,7 +12290,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12168
12290
  object({
12169
12291
  kind: literal("url"),
12170
12292
  url: string(),
12171
- sha256: string().optional()
12293
+ sha256: string().optional(),
12294
+ /** Picker/status label; the file basename when absent. */
12295
+ label: string().optional(),
12296
+ sizeBytes: number().optional(),
12297
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12172
12298
  }),
12173
12299
  object({
12174
12300
  kind: literal("path"),
@@ -12186,13 +12312,82 @@ var ManagedRuntimeConfigSchema = object({
12186
12312
  gpuLayers: number().int().default(0),
12187
12313
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12188
12314
  threads: number().int().optional(),
12189
- /** Concurrent slots. */
12315
+ /** Concurrent slots (`--parallel`). */
12190
12316
  parallel: number().int().default(1),
12317
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12318
+ batchSize: number().int().positive().optional(),
12319
+ /** Physical batch / micro-batch (`-ub`). */
12320
+ ubatchSize: number().int().positive().optional(),
12321
+ /**
12322
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12323
+ * is a no-op elsewhere, so it is offered rather than assumed.
12324
+ */
12325
+ flashAttention: boolean().default(false),
12326
+ /**
12327
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12328
+ * inference. Costs the full model size in resident memory — which is exactly
12329
+ * what the RAM budget is counting.
12330
+ */
12331
+ mlock: boolean().default(false),
12332
+ /**
12333
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12334
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12335
+ * store produces on every first token.
12336
+ */
12337
+ noMmap: boolean().default(false),
12338
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12339
+ * cheapest way to fit a longer context in the same RAM. */
12340
+ cacheTypeK: _enum([
12341
+ "f32",
12342
+ "f16",
12343
+ "q8_0",
12344
+ "q5_1",
12345
+ "q5_0",
12346
+ "q4_1",
12347
+ "q4_0"
12348
+ ]).optional(),
12349
+ cacheTypeV: _enum([
12350
+ "f32",
12351
+ "f16",
12352
+ "q8_0",
12353
+ "q5_1",
12354
+ "q5_0",
12355
+ "q4_1",
12356
+ "q4_0"
12357
+ ]).optional(),
12358
+ /**
12359
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12360
+ * (which most vision chat templates need and some language-only models
12361
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12362
+ *
12363
+ * It is NOT a second place to set the flags above. A token that collides
12364
+ * with a typed field is REJECTED at start, naming the field that owns it
12365
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12366
+ * the "two switches that disagree" failure this repo has already shipped
12367
+ * twice (D62).
12368
+ */
12369
+ extraArgs: array(string()).default([]),
12191
12370
  /** Else lazy: first generate boots it. */
12192
12371
  autoStart: boolean().default(false),
12193
12372
  /** 0 = never; frees RAM after quiet periods. */
12194
12373
  idleStopMinutes: number().int().default(30)
12195
12374
  });
12375
+ /**
12376
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12377
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12378
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12379
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12380
+ */
12381
+ var LlmDownloadProgressSchema = object({
12382
+ phase: _enum(["downloading", "verifying"]),
12383
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12384
+ file: string(),
12385
+ fileIndex: number().int(),
12386
+ fileCount: number().int(),
12387
+ /** Across the WHOLE install, not the current file. */
12388
+ downloadedBytes: number(),
12389
+ totalBytes: number().optional()
12390
+ });
12196
12391
  var LlmRuntimeStatusSchema = object({
12197
12392
  /** Status is ALWAYS node-qualified. */
12198
12393
  nodeId: string(),
@@ -12209,6 +12404,8 @@ var LlmRuntimeStatusSchema = object({
12209
12404
  modelPath: string().optional(),
12210
12405
  modelId: string().optional(),
12211
12406
  downloadProgress: number().min(0).max(1).optional(),
12407
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12408
+ download: LlmDownloadProgressSchema.optional(),
12212
12409
  lastError: string().optional(),
12213
12410
  crashesInWindow: number(),
12214
12411
  /** Child RSS (sampled best-effort). */
@@ -12219,7 +12416,14 @@ var LlmNodeModelSchema = object({
12219
12416
  file: string(),
12220
12417
  sizeBytes: number(),
12221
12418
  catalogId: string().optional(),
12222
- installedAt: number().optional()
12419
+ installedAt: number().optional(),
12420
+ /**
12421
+ * Absolute path on the node. Present so a file that is on disk but matches
12422
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12423
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12424
+ * it the picker could list such a file and do nothing with it.
12425
+ */
12426
+ path: string().optional()
12223
12427
  });
12224
12428
  var LlmRuntimeDiskUsageSchema = object({
12225
12429
  nodeId: string(),
@@ -12275,10 +12479,47 @@ var LlmProfileSchema = object({
12275
12479
  baseUrl: string().optional(),
12276
12480
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12277
12481
  apiKey: string().optional(),
12482
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12483
+ * degraded to text — that shipped once and produced a confident answer to a
12484
+ * question about a picture nobody sent. */
12278
12485
  supportsVision: boolean(),
12279
12486
  temperature: number().min(0).max(2).optional(),
12487
+ /** Nucleus sampling. Every wire we speak has it. */
12488
+ topP: number().min(0).max(1).optional(),
12489
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12490
+ * wire does, and the client drops it there (measured: the request body gets
12491
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12492
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12493
+ topK: number().int().positive().optional(),
12280
12494
  maxTokens: number().int().positive().optional(),
12495
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12496
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12497
+ * the model with, so it is the one field that changes a PROCESS. */
12498
+ contextLength: number().int().positive().optional(),
12499
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12500
+ * two system prompts fighting is worse than either alone). */
12501
+ systemPrompt: string().optional(),
12502
+ /** Total generation bound — the only one a unary call has. */
12281
12503
  timeoutMs: number().int().positive().default(6e4),
12504
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12505
+ * response headers: on the LM Studio / llama-server wire those are written
12506
+ * once the model has finished loading, so they belong to the bound below. */
12507
+ connectTimeoutMs: number().int().positive().default(1e4),
12508
+ /** Accepted, but no output yet — response headers included, because a cold
12509
+ * GPU load is exactly what happens before them. */
12510
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12511
+ /** Output started then stopped. */
12512
+ idleTimeoutMs: number().int().positive().default(6e4),
12513
+ /** Profile-level default. The per-consumer table and a per-call override
12514
+ * both beat it — see `resolveRetryPolicy`. */
12515
+ retry: LlmRetryPolicySchema.default({
12516
+ enabled: false,
12517
+ maxAttempts: 1
12518
+ }),
12519
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12520
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12521
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12522
+ toolsEnabled: boolean().default(false),
12282
12523
  extraHeaders: record(string(), string()).optional(),
12283
12524
  /** kind === 'managed-local' only (spec §4). */
12284
12525
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12328,6 +12569,36 @@ var ManagedModelCatalogEntrySchema = object({
12328
12569
  /** Vision models: companion projector file. */
12329
12570
  mmprojUrl: string().optional()
12330
12571
  });
12572
+ /**
12573
+ * The outcome of turning one operator-typed Hugging Face reference into a
12574
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12575
+ * I will not pick for you" is a normal answer the UI has to render, not an
12576
+ * exception.
12577
+ *
12578
+ * `candidates` is the whole reason the refusal is usable — every string in it
12579
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12580
+ */
12581
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12582
+ ok: literal(true),
12583
+ /** Ready to hand to `installModel` unchanged. */
12584
+ model: ManagedModelRefSchema,
12585
+ label: string(),
12586
+ repo: string(),
12587
+ quantization: string(),
12588
+ purpose: _enum(["text", "vision"]),
12589
+ totalBytes: number(),
12590
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12591
+ * see that 0.9 GB of it is a projector they did not name. */
12592
+ extraFilenames: array(string())
12593
+ }), object({
12594
+ ok: literal(false),
12595
+ code: string(),
12596
+ message: string(),
12597
+ candidates: array(string()).optional(),
12598
+ /** Set when the refusal was only the ceiling: re-calling with
12599
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12600
+ requiredBytes: number().optional()
12601
+ })]);
12331
12602
  var LlmRuntimeNodeSchema = object({
12332
12603
  nodeId: string(),
12333
12604
  reachable: boolean(),
@@ -12340,7 +12611,10 @@ var ProfileRefInputSchema = object({
12340
12611
  addonId: string(),
12341
12612
  profileId: string()
12342
12613
  });
12343
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12614
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12615
+ addonId: string().optional(),
12616
+ requestId: string()
12617
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12344
12618
  kind: "mutation",
12345
12619
  auth: "admin"
12346
12620
  }), method(ProfileRefInputSchema, _void(), {
@@ -12361,6 +12635,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12361
12635
  consumer: string().optional(),
12362
12636
  profileId: string().optional()
12363
12637
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12638
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12639
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12640
+ ref: string(),
12641
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12642
+ maxBytes: number().positive().optional()
12643
+ }), HfModelResolutionSchema, {
12644
+ kind: "mutation",
12645
+ auth: "admin"
12646
+ }), method(object({
12364
12647
  nodeId: string(),
12365
12648
  model: ManagedModelRefSchema
12366
12649
  }), _void(), {
@@ -13987,6 +14270,8 @@ var NcSystemEventKindSchema = _enum([
13987
14270
  "stream-offline",
13988
14271
  "node-online",
13989
14272
  "node-offline",
14273
+ "node-inference-unavailable",
14274
+ "detection-blind",
13990
14275
  "addon-update-available",
13991
14276
  "server-update-available",
13992
14277
  "alarm-triggered",
@@ -14048,7 +14333,16 @@ var NcScheduleSchema = object({
14048
14333
  });
14049
14334
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14050
14335
  var NcPlateMatcherSchema = object({
14051
- values: array(string().min(1)).min(1),
14336
+ /**
14337
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14338
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14339
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14340
+ * rather than merely seen. A subject carrying no plate still fails.
14341
+ *
14342
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14343
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14344
+ */
14345
+ values: array(string().min(1)),
14052
14346
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14053
14347
  maxDistance: number().int().min(0).max(3).default(1)
14054
14348
  });
@@ -14082,28 +14376,36 @@ var NcOccupancyConditionSchema = object({
14082
14376
  /**
14083
14377
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14084
14378
  *
14085
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14086
- * reference notifier uses, so an operator moving between them re-uses what
14087
- * they already know): a rule matches when, over a sampling window of
14088
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14089
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14090
- *
14091
- * - `dbThreshold` — its level is at or above this many dBFS (see
14092
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14093
- * - `labels` — the classifier put at least one of these labels on it.
14094
- *
14095
- * Both are OPTIONAL and independent, which is the point of the shape: a
14096
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14097
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14098
- * is given** — a window in which every sample is trivially a hit would fire on
14099
- * silence, so the engine refuses such a condition rather than notifying on
14100
- * nothing (the schema cannot express "at least one of" without becoming a
14101
- * ZodEffects the cap path would have to special-case).
14102
- *
14103
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14104
- * must be FULL before it can match — a window that has been open for two
14105
- * seconds of its ten is 100% of nothing, and firing on it would make
14106
- * `samplingSeconds` decorative.
14379
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14380
+ * rule is in is not a stored field — it is WHICH FILTER the rule carries, so
14381
+ * there is no second switch that can disagree with the first and every rule
14382
+ * authored before the decision migrates for free (`audioModeOf`):
14383
+ *
14384
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14385
+ * classifier labels with one of them. No window, no percentage:
14386
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14387
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14388
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14389
+ * reaches this condition if the classifier was already confident enough.
14390
+ * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14391
+ * the condition: at least `hitPercent`% of the samples over
14392
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14393
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14394
+ * must be FULL before it can match — a window open for two of its ten
14395
+ * seconds is 100% of nothing.
14396
+ *
14397
+ * **Why label mode has no window.** It had one, and it never fired: the
14398
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14399
+ * of them per episode, even through continuous crying. The measured maximum
14400
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14401
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14402
+ * the wrong question to ask of a sparse classifier.
14403
+ *
14404
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14405
+ * and the rule would fire on silence. The schema cannot express "exactly one
14406
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14407
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14408
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14107
14409
  *
14108
14410
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14109
14411
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14111,13 +14413,13 @@ var NcOccupancyConditionSchema = object({
14111
14413
  * an operator who typed `dog` mean the same thing.
14112
14414
  */
14113
14415
  var NcAudioConditionSchema = object({
14114
- /** Audio macro labels; absent = any sound (level-only rule). */
14416
+ /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14115
14417
  labels: array(string().min(1)).min(1).optional(),
14116
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14418
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14117
14419
  dbThreshold: number().min(-96).max(0).optional(),
14118
- /** Percentage of the window's samples that must be hits (1–100). */
14420
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14119
14421
  hitPercent: number().int().min(1).max(100).default(60),
14120
- /** Length of the sampling window in seconds. */
14422
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14121
14423
  samplingSeconds: number().int().min(1).max(300).default(10)
14122
14424
  });
14123
14425
  /**
@@ -14255,13 +14557,81 @@ var NcRuleActionsSchema = object({
14255
14557
  */
14256
14558
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14257
14559
  });
14560
+ /**
14561
+ * "This rule applies only while `deviceId` is in one of `states`."
14562
+ *
14563
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14564
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14565
+ * make the condition lie about devices whose states have no equivalent.
14566
+ *
14567
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14568
+ * condition that fired on "I could not read it" would be worse than no gate.
14569
+ */
14570
+ var NcDeviceStateConditionSchema = object({
14571
+ deviceId: number().int(),
14572
+ /** Any of these matches. */
14573
+ states: array(string().min(1)).min(1)
14574
+ });
14575
+ /**
14576
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14577
+ *
14578
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14579
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14580
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14581
+ * already has a trigger ("tell me about a person at the front door, but only
14582
+ * while the bin is still out"). That is why it composes with every delivery
14583
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14584
+ * kind exist for it — see D159.
14585
+ *
14586
+ * ── Identity ───────────────────────────────────────────────────────────────
14587
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14588
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14589
+ * carried as a HINT for the editor and for the log line, never as part of the
14590
+ * lookup key: a rule whose hint drifted must still gate correctly.
14591
+ *
14592
+ * ── Which boolean ──────────────────────────────────────────────────────────
14593
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14594
+ * already declares which boolean drives notification rules, and a second knob
14595
+ * that could disagree with it is exactly the D62 failure. Set it only to
14596
+ * override one rule against the scene's own default.
14597
+ *
14598
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14599
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14600
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14601
+ * evidence, in either direction.
14602
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14603
+ * The latch is a durable fact about the past ("it has diverged since I armed
14604
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14605
+ * reason the operator asked for a latch.
14606
+ *
14607
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14608
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14609
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14610
+ * said out loud in the log rather than dropped in silence.
14611
+ */
14612
+ var NcSceneConditionSchema = object({
14613
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14614
+ sceneId: string().min(1),
14615
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14616
+ deviceId: number().int().optional(),
14617
+ /** The state the scene must be in for the rule to fire. */
14618
+ requiredState: _enum(["matched", "diverged"]),
14619
+ /**
14620
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14621
+ * scene's own `emit` field, which is the only place that decision belongs.
14622
+ */
14623
+ latched: boolean().optional()
14624
+ });
14258
14625
  var NcConditionsSchema = object({
14259
14626
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14260
- deviceState: object({
14261
- deviceId: number().int(),
14262
- /** Any of these matches. */
14263
- states: array(string().min(1)).min(1)
14264
- }).optional(),
14627
+ deviceState: NcDeviceStateConditionSchema.optional(),
14628
+ /**
14629
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14630
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14631
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14632
+ * {@link NcSceneCondition} and D159.
14633
+ */
14634
+ scene: NcSceneConditionSchema.optional(),
14265
14635
  /** Device scope — absent = all devices. */
14266
14636
  devices: array(number()).optional(),
14267
14637
  /** Detector class names (any overlap with the record's class set). */
@@ -14287,18 +14657,47 @@ var NcConditionsSchema = object({
14287
14657
  */
14288
14658
  labelEquals: array(string().min(1)).optional(),
14289
14659
  /**
14290
- * Identity matcher. P1 boundary: matched against the record's collapsed
14291
- * `label` (the identity display name propagated by the face pipeline) —
14292
- * identity-ID matching rides in P2 when identity ids reach the record.
14660
+ * KNOWN FACES — the rule's identity scope, and the switch that says the rule
14661
+ * is about recognised people at all.
14662
+ *
14663
+ * Three states, and the empty one is the point:
14664
+ *
14665
+ * | value | meaning |
14666
+ * | --- | --- |
14667
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14668
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14669
+ * | a list | only these identities |
14670
+ *
14671
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14672
+ * `devices` list is every device), applied one level down: the operator has
14673
+ * turned the face scope ON and narrowed it to nothing, which is every known
14674
+ * face. No second field states the same thing — a switch that can disagree
14675
+ * with the list under it is worse than no switch (D62).
14676
+ *
14677
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14678
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14679
+ * the operator fixed the spelling. The id reaches the record on
14680
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14681
+ * `{{label}}` renders.
14682
+ *
14683
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14684
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14685
+ * for is left as it stands and reported, never dropped. The engine also
14686
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14687
+ * migration could not resolve keeps matching exactly what it matched before.
14293
14688
  */
14294
14689
  identities: array(string().min(1)).optional(),
14295
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14690
+ /**
14691
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14692
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14693
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14694
+ */
14296
14695
  plates: NcPlateMatcherSchema.optional(),
14297
14696
  /**
14298
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14299
- * Same P1 boundary: matched against the record's collapsed `label` (the
14300
- * identity display name). A record with NO label passes (nothing to
14301
- * exclude), unlike the include variant which fails on an absent label.
14697
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14698
+ * the same id members and the same lazy name→id migration. A record with NO
14699
+ * identity passes (nothing to exclude), unlike the include variant which
14700
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14302
14701
  */
14303
14702
  identitiesExclude: array(string().min(1)).optional(),
14304
14703
  /**
@@ -14690,7 +15089,80 @@ var NcRuleInputSchema = object({
14690
15089
  * a rule that predates the gate must keep delivering byte-for-byte as it
14691
15090
  * did, and absent is the only way to say that without a migration.
14692
15091
  */
14693
- confirm: NcConfirmSchema.optional()
15092
+ confirm: NcConfirmSchema.optional(),
15093
+ /**
15094
+ * WAIT for face/plate recognition before saying anything.
15095
+ *
15096
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15097
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15098
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15099
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15100
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15101
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15102
+ *
15103
+ * Only two honest answers exist, and this flag picks between them. It has
15104
+ * effect ONLY on a rule that declares a recognition scope
15105
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15106
+ * other rule there is nothing to wait for and the flag is inert.
15107
+ *
15108
+ * | value | what happens |
15109
+ * | --- | --- |
15110
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15111
+ * | 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) |
15112
+ *
15113
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15114
+ * on the addon cap path, and absent has to keep meaning exactly what every
15115
+ * rule authored before this field meant.
15116
+ *
15117
+ * The cost of `true` is stated here because the editor states it too: a rule
15118
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15119
+ * tests every zone the track visited and a `crossing` condition can no longer
15120
+ * be satisfied, because a closed track carries no crossing.
15121
+ */
15122
+ waitForEnhancement: boolean().optional(),
15123
+ /**
15124
+ * GROUP a burst of subjects into ONE notification that grows.
15125
+ *
15126
+ * Seconds of quiet after the last matching subject before the burst is
15127
+ * considered over. While it is open, the first subject enqueues immediately —
15128
+ * **exactly as today, with no added latency** — and every real growth (a new
15129
+ * subject, or a name confirmed on one already in it) REPLACES that
15130
+ * notification with an updated one naming everybody. The push carries the
15131
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15132
+ *
15133
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15134
+ *
15135
+ * ### Why an idle cutoff and not a window
15136
+ *
15137
+ * The measured seven-person arrival on device 590 spans 110 s with every
15138
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15139
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15140
+ * 30 is Frigate's shipped value for the same decision.
15141
+ *
15142
+ * ### What it replaces
15143
+ *
15144
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15145
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15146
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15147
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15148
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15149
+ * budget over GROUPS — which is what it always meant — and a growth is never
15150
+ * throttled by the window its own first member spent.
15151
+ *
15152
+ * ### Interaction with {@link waitForEnhancement}
15153
+ *
15154
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15155
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15156
+ * CLOSE — already carrying its name — and grows as later members close. That
15157
+ * is later, and complete. With grouping alone the group opens on the first
15158
+ * object event and picks up names as they are confirmed, through the growth
15159
+ * path. Neither combination fires twice for one subject.
15160
+ *
15161
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15162
+ * on the addon cap path, so absent must keep meaning what it meant before this
15163
+ * field existed.
15164
+ */
15165
+ groupIdleSec: number().int().min(0).max(600).optional()
14694
15166
  });
14695
15167
  /**
14696
15168
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14797,6 +15269,7 @@ var NcConditionDescriptorSchema = object({
14797
15269
  "occupancy",
14798
15270
  "audio",
14799
15271
  "deviceState",
15272
+ "scene",
14800
15273
  "systemEvent"
14801
15274
  ]),
14802
15275
  operator: _enum([
@@ -15202,7 +15675,87 @@ var MethodAccessSchema = _enum([
15202
15675
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15203
15676
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15204
15677
  var CapScopeSchema = _enum(["device", "system"]);
15205
- var TokenScopeSchema = discriminatedUnion("type", [
15678
+ /**
15679
+ * DeviceSelector (scope model v3 — 2026-08-12).
15680
+ *
15681
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15682
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15683
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15684
+ * AFTER the grant was minted — no re-grant, no re-login.
15685
+ *
15686
+ * - `all` — every device in the deployment. The broad viewer/operator
15687
+ * lever without a `category` grant (a `category` grant also covers device
15688
+ * caps that carry no deviceId; `all` is specifically the device set).
15689
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15690
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15691
+ * is NOT covered until the grant is edited.
15692
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15693
+ * DYNAMIC. A device that changes type, or a new device of the type,
15694
+ * re-resolves on the next request.
15695
+ * - `locations` — every device whose operator-assigned `location` label is
15696
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15697
+ * null/unset location matches NO `locations` selector.
15698
+ */
15699
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15700
+ object({ kind: literal("all") }),
15701
+ object({
15702
+ kind: literal("ids"),
15703
+ ids: array(number().int()).min(1)
15704
+ }),
15705
+ object({
15706
+ kind: literal("types"),
15707
+ types: array(_enum(DeviceType)).min(1)
15708
+ }),
15709
+ object({
15710
+ kind: literal("locations"),
15711
+ locations: array(string().min(1)).min(1)
15712
+ })
15713
+ ]);
15714
+ var DeviceTokenScopeSchema = object({
15715
+ type: literal("device"),
15716
+ /** The device SET this grant covers — resolved against the live fleet. */
15717
+ selector: DeviceSelectorSchema,
15718
+ access: array(MethodAccessSchema).min(1),
15719
+ /**
15720
+ * Whether a grant on a PARENT device transparently covers its accessory
15721
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15722
+ * Direction is parent → children ONLY.
15723
+ *
15724
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15725
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15726
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15727
+ * operator must grant on the child, not inherit from the parent). Set it
15728
+ * explicitly to override that default per grant.
15729
+ */
15730
+ includeLinked: boolean().optional()
15731
+ });
15732
+ /**
15733
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15734
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15735
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15736
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15737
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15738
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15739
+ * migration cannot reach a JWT already in a client's hands; parse-time
15740
+ * migration covers both without a flag day. No cast — the raw object is read
15741
+ * through `Reflect.get` (its static type is `unknown`).
15742
+ */
15743
+ function migrateLegacyTokenScope(raw) {
15744
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15745
+ if (Reflect.get(raw, "type") !== "device") return raw;
15746
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15747
+ const targets = Reflect.get(raw, "targets");
15748
+ if (!Array.isArray(targets)) return raw;
15749
+ return {
15750
+ type: "device",
15751
+ selector: {
15752
+ kind: "ids",
15753
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15754
+ },
15755
+ access: Reflect.get(raw, "access")
15756
+ };
15757
+ }
15758
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15206
15759
  object({
15207
15760
  type: literal("category"),
15208
15761
  target: CapScopeSchema,
@@ -15218,18 +15771,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15218
15771
  target: string(),
15219
15772
  access: array(MethodAccessSchema).min(1)
15220
15773
  }),
15221
- object({
15222
- type: literal("device"),
15223
- /**
15224
- * One or more deviceIds (serialised as strings for wire-format
15225
- * consistency with the rest of the union). Matcher accepts if
15226
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15227
- * of one scope-per-device when granting access to a set of cameras.
15228
- */
15229
- targets: array(string()).min(1),
15230
- access: array(MethodAccessSchema).min(1)
15231
- })
15232
- ]);
15774
+ DeviceTokenScopeSchema
15775
+ ]));
15233
15776
  object({
15234
15777
  id: string(),
15235
15778
  username: string(),
@@ -15546,7 +16089,7 @@ var TrackEnvelopeSchema = object({
15546
16089
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15547
16090
  * keeps every scalar the list surfaces actually render (ids, class(es),
15548
16091
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15549
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16092
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15550
16093
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15551
16094
  * `getTrack`. Mirrors the event-store `projection` convention
15552
16095
  * (`getObjectEvents` et al.).
@@ -15682,7 +16225,21 @@ union([literal(1), literal(2)]);
15682
16225
  var LabelAttributionSchema = object({
15683
16226
  stepId: string(),
15684
16227
  modelId: string().optional(),
15685
- decidedAt: number()
16228
+ decidedAt: number(),
16229
+ /**
16230
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16231
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16232
+ *
16233
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16234
+ * notification rule authored on "Gianluca" stopped matching the moment the
16235
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16236
+ * the thing that does not move, so it is what a rule matches on
16237
+ * (`NcConditions.identities`) and the text is what a human is shown.
16238
+ *
16239
+ * Absent when the label names no gallery row — a plate the OCR read but no
16240
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16241
+ */
16242
+ identityId: string().optional()
15686
16243
  });
15687
16244
  /**
15688
16245
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15819,6 +16376,28 @@ var TrackSchema = object({
15819
16376
  * `=== true` and render nothing otherwise, never infer "no face".
15820
16377
  */
15821
16378
  hasFace: boolean().optional(),
16379
+ /**
16380
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16381
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16382
+ * so the passage is tracked once and as a VEHICLE.
16383
+ *
16384
+ * It exists because the fold's record was dishonest. D34 and the code both
16385
+ * said "the person is not lost — it is reported so both entities stay on the
16386
+ * record"; in fact the pair went into a per-processor RAM field behind an
16387
+ * accessor nobody called, and every durable surface said `vehicle`, full
16388
+ * stop. This is the composition note that makes the row true.
16389
+ *
16390
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16391
+ * person" is not an answer to "what is this" — both label tiers would refuse
16392
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16393
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16394
+ * and a `person` rule still does not fire for someone cycling past.
16395
+ *
16396
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16397
+ * the column, and every hub that predates the field, omits it. Test
16398
+ * `=== true` and render nothing otherwise — never infer "no rider".
16399
+ */
16400
+ hasRider: boolean().optional(),
15822
16401
  ...TrackFlagFields,
15823
16402
  ...TrackRetrainFields
15824
16403
  });
@@ -16168,7 +16747,10 @@ var RecentTracksQueryInput = object({
16168
16747
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16169
16748
  cursor: string().optional(),
16170
16749
  /** See {@link TrackProjectionSchema}. Default `full`. */
16171
- projection: TrackProjectionSchema.optional()
16750
+ projection: TrackProjectionSchema.optional(),
16751
+ /** Include stationary-promoted rows (parked objects). Default false: the
16752
+ * feed lists passages; parking records live on the stationary registry. */
16753
+ includeStationary: boolean().optional()
16172
16754
  });
16173
16755
  var RecentTracksPageSchema = object({
16174
16756
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16386,7 +16968,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16386
16968
  zone: TrackZoneFilterSchema.optional(),
16387
16969
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16388
16970
  * compatible — omitting the field keeps today's exact behaviour). */
16389
- projection: TrackProjectionSchema.optional()
16971
+ projection: TrackProjectionSchema.optional(),
16972
+ /** Include stationary-promoted rows (parked objects handed to the
16973
+ * stationary registry). Default false: the timeline lists passages,
16974
+ * not parking records (operator decision, 2026-08-15). */
16975
+ includeStationary: boolean().optional()
16390
16976
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16391
16977
  kind: "mutation",
16392
16978
  auth: "admin"
@@ -16550,11 +17136,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16550
17136
  auth: "admin"
16551
17137
  }), method(object({
16552
17138
  eventId: string(),
16553
- kind: MediaFileKindEnum.optional()
17139
+ kind: MediaFileKindEnum.optional(),
17140
+ deviceId: number()
16554
17141
  }), array(MediaFileSchema).readonly()), method(object({
16555
17142
  trackId: string(),
16556
- kinds: array(MediaFileKindEnum).optional()
16557
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17143
+ kinds: array(MediaFileKindEnum).optional(),
17144
+ deviceId: number()
17145
+ }), array(MediaFileSchema).readonly()), method(object({
17146
+ trackId: string(),
17147
+ deviceId: number()
17148
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16558
17149
  kind: "mutation",
16559
17150
  auth: "admin"
16560
17151
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17214,6 +17805,17 @@ var maxSessionHoldMsField = {
17214
17805
  default: 12e4,
17215
17806
  step: 5e3
17216
17807
  };
17808
+ /**
17809
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17810
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17811
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17812
+ */
17813
+ var audioMotionWindowMsField = {
17814
+ min: 5e3,
17815
+ max: 6e5,
17816
+ default: 9e4,
17817
+ step: 5e3
17818
+ };
17217
17819
  var motionFpsField = {
17218
17820
  min: 1,
17219
17821
  max: 30,
@@ -17245,7 +17847,7 @@ var detectionFpsField = {
17245
17847
  var occupancyRecheckSecField = {
17246
17848
  min: 0,
17247
17849
  max: 300,
17248
- default: 30,
17850
+ default: 300,
17249
17851
  step: 5
17250
17852
  };
17251
17853
  var occupancyRecheckFramesField = {
@@ -17390,6 +17992,27 @@ var RunnerCameraConfigSchema = object({
17390
17992
  * resolved `CameraDetectionConfig`.
17391
17993
  */
17392
17994
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
17995
+ /**
17996
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
17997
+ * 'on-motion'` audio window, measured from the LAST motion event.
17998
+ *
17999
+ * This exists because the falling edge cannot be relied on. Camera-native
18000
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18001
+ * its email-push SMTP path both emit `detected: true` and never the
18002
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18003
+ * onboard-only camera a window that closed only on `detected: false` never
18004
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18005
+ * battery camera, the one failure mode the mode exists to prevent.
18006
+ *
18007
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18008
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18009
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18010
+ *
18011
+ * Not consumed by the runner: carried here so it shares the per-camera
18012
+ * device-settings surface with `motionCooldownMs`, exactly like
18013
+ * `maxSessionHoldMs`.
18014
+ */
18015
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17393
18016
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17394
18017
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17395
18018
  motionStreamId: string(),
@@ -17485,7 +18108,7 @@ var RunnerCameraConfigSchema = object({
17485
18108
  */
17486
18109
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17487
18110
  });
17488
- 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;
18111
+ 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;
17489
18112
  /**
17490
18113
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17491
18114
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18501,7 +19124,16 @@ targets: array(object({
18501
19124
  /** A sleeping battery camera: the frame is deliberately stale and will
18502
19125
  * NOT refresh in the background. A surface should say so rather than
18503
19126
  * present it as current. */
18504
- sleeping: boolean()
19127
+ sleeping: boolean(),
19128
+ /** Current device state rendered over the cached frame. State images
19129
+ * remain authoritative even when their photographic background is
19130
+ * old; null means the link must carry a current camera frame. */
19131
+ stateReason: _enum([
19132
+ "disabled",
19133
+ "sleeping",
19134
+ "unreachable",
19135
+ "waking"
19136
+ ]).nullable()
18505
19137
  })));
18506
19138
  /**
18507
19139
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20023,6 +20655,25 @@ var BatteryStatusSchema = object({
20023
20655
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20024
20656
  lastUpdated: number(),
20025
20657
  /**
20658
+ * Ms epoch of the last time the device PROVED it was reachable — a
20659
+ * completed firmware round-trip, an observed wake, or an inbound push
20660
+ * (firmware event, email). `0`/absent = never since this slice was born.
20661
+ *
20662
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20663
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20664
+ * for the radio, because a poll that confirms reachability is the same
20665
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20666
+ * single derivation every consumer must use; no surface computes its own.
20667
+ *
20668
+ * It is deliberately NOT a clock in the
20669
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20670
+ * observation itself, and it is the only thing a 30-hour silence is
20671
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20672
+ * Reolink provider) so a value that means "recently" cannot cost a
20673
+ * SQLite commit per round-trip.
20674
+ */
20675
+ lastContactAt: number().optional(),
20676
+ /**
20026
20677
  * True when the source is a BINARY low-battery indicator (HA
20027
20678
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20028
20679
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23621,7 +24272,7 @@ method(object({
23621
24272
  toMs: number()
23622
24273
  }), RecordingAvailabilitySchema, {
23623
24274
  kind: "query",
23624
- auth: "admin"
24275
+ auth: "protected"
23625
24276
  }), method(object({
23626
24277
  deviceId: number(),
23627
24278
  fromMs: number(),
@@ -23629,14 +24280,14 @@ method(object({
23629
24280
  tzOffsetMinutes: number()
23630
24281
  }), RecordingDaysSchema, {
23631
24282
  kind: "query",
23632
- auth: "admin"
24283
+ auth: "protected"
23633
24284
  }), method(object({
23634
24285
  deviceId: number(),
23635
24286
  fromMs: number(),
23636
24287
  toMs: number()
23637
24288
  }), RecordingManifestSchema, {
23638
24289
  kind: "query",
23639
- auth: "admin"
24290
+ auth: "protected"
23640
24291
  }), method(object({}), RecordingStorageUsageSchema, {
23641
24292
  kind: "query",
23642
24293
  auth: "admin"
@@ -23926,14 +24577,77 @@ method(object({
23926
24577
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23927
24578
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23928
24579
  *
23929
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) — the framework
23930
- * derives the device-detail contribution; the provider carries NO hand-written
23931
- * settings-contribution methods. `status.kind:'push'` — the engine pushes on
23932
- * every hysteresis flip / availability change; consumers never poll.
23933
- */
23934
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23935
- * be added without a wire break (matching falls back to any-condition refs). */
24580
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24581
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24582
+ * for the thing: a scene is a standing question about the property ("is the bin
24583
+ * still out"), and the operator's question is "which of my scenes have tripped",
24584
+ * across every camera at once — not "what does camera 617 think". Buried one
24585
+ * camera deep it also could not be found. The surface is now a top-level admin
24586
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24587
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24588
+ *
24589
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24590
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24591
+ * directions, so a registration nobody declares fails exactly as loudly as a
24592
+ * declaration nobody registers. The editor is imported directly by the page.
24593
+ *
24594
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24595
+ * availability change; consumers never poll.
24596
+ */
24597
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24598
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24599
+ * Open by design so more can be added without a wire break.
24600
+ *
24601
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24602
+ * not comparable, so "I have never seen this scene in this light" is reported
24603
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24604
+ * collapses the cosine and would latch a false alarm every single night. */
23936
24605
  var SceneConditionSchema = string();
24606
+ /**
24607
+ * What a scene does when the CURRENT light has no reference of its own.
24608
+ *
24609
+ * The lighting variants are not equally likely to exist. Almost every operator
24610
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24611
+ * scene that is only ever going to be asked about a daytime question ("is the
24612
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24613
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24614
+ * working without it rather than degrading into a permanent complaint.
24615
+ *
24616
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24617
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24618
+ * last covered light left it at, the latch is untouched, and the hysteresis
24619
+ * run is neither spent nor cleared. The scene resumes by itself at first
24620
+ * light. This is the only behaviour under which "I never captured IR" is a
24621
+ * configuration choice instead of a nightly fault.
24622
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24623
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24624
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24625
+ * cross-condition cosines are not comparable, so a day reference against a
24626
+ * true IR frame collapses and the scene reports a theft at 21:40.
24627
+ *
24628
+ * Never applies when the scene has NO comparable reference at all — that is
24629
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24630
+ * there would hide a scene the operator never finished setting up.
24631
+ */
24632
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24633
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24634
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24635
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24636
+ * and never counts toward hysteresis in either direction. */
24637
+ var SceneVerdictSchema = _enum([
24638
+ "matched",
24639
+ "diverged",
24640
+ "unknown"
24641
+ ]);
24642
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24643
+ * silence that reads as "nothing has happened". */
24644
+ var SceneUnavailableSchema = _enum([
24645
+ "no-reference-for-condition",
24646
+ "view-shifted",
24647
+ "no-vision-profile",
24648
+ "encoder-model-changed",
24649
+ "no-snapshot"
24650
+ ]);
23937
24651
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23938
24652
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23939
24653
  var SceneReferenceSchema = object({
@@ -23941,7 +24655,14 @@ var SceneReferenceSchema = object({
23941
24655
  modelId: string(),
23942
24656
  condition: SceneConditionSchema,
23943
24657
  capturedAt: number(),
23944
- thumbnailMediaId: string().optional()
24658
+ thumbnailMediaId: string().optional(),
24659
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24660
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24661
+ * normalized rect frame a different piece of world, and the scene would
24662
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24663
+ * when hysteresis is about to flip — one extra encode per candidate
24664
+ * transition, not per poll. */
24665
+ anchorEmbedding: array(number()).optional()
23945
24666
  });
23946
24667
  var SceneMonitorStateSchema = object({
23947
24668
  id: string(),
@@ -23963,6 +24684,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
23963
24684
  profileId: string().optional(),
23964
24685
  hysteresisCount: number().int().positive()
23965
24686
  })]);
24687
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24688
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24689
+ * out in silence rather than reporting a fault every night. */
24690
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24691
+ /**
24692
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24693
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24694
+ *
24695
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24696
+ * fail-open: a notification suppressed is the worse error there, but a vision
24697
+ * model that timed out has not told us the bin is gone, and a latch is a
24698
+ * stateful claim that costs the operator a trip to reset.
24699
+ */
24700
+ var SceneConfirmSchema = object({
24701
+ enabled: boolean().default(false),
24702
+ prompt: string().min(1).max(1e3),
24703
+ profileId: string().optional(),
24704
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24705
+ maxImagePx: number().int().min(64).max(2048).default(448),
24706
+ /** What a timeout / unavailable model means for the PENDING flip. */
24707
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24708
+ });
23966
24709
  var SceneMonitorSchema = object({
23967
24710
  id: string(),
23968
24711
  label: string(),
@@ -23981,7 +24724,56 @@ var SceneMonitorSchema = object({
23981
24724
  lastConfidence: number().nullable(),
23982
24725
  currentCondition: SceneConditionSchema.nullable(),
23983
24726
  availability: _enum(["ok", "unavailable"]),
23984
- unavailableReason: string().nullable()
24727
+ unavailableReason: string().nullable(),
24728
+ /** Which state is "the initial screen". `null` until the first capture. */
24729
+ baselineStateId: string().nullable(),
24730
+ /** Which boolean drives notification rules and any export. */
24731
+ emit: _enum(["latched", "live"]).default("latched"),
24732
+ /** Live: does the region match the baseline RIGHT NOW. */
24733
+ verdict: SceneVerdictSchema,
24734
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24735
+ latched: boolean(),
24736
+ /** Last reset (or creation). */
24737
+ armedAt: number(),
24738
+ divergedAt: number().nullable(),
24739
+ restoredAt: number().nullable(),
24740
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24741
+ * during the window DISCARDS the observation — a car pulling up in front of
24742
+ * the bin must not be able to spend hysteresis credit. */
24743
+ quietSeconds: number().int().min(0).max(3600).default(60),
24744
+ /** An observation only advances the pending count when it is at least this
24745
+ * far from the previously counted one, so N agreeing checks span real time
24746
+ * rather than N adjacent polls inside one occlusion. */
24747
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24748
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24749
+ confirm: SceneConfirmSchema.optional(),
24750
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24751
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24752
+ /** Clear the latch on its own when the scene matches again? Default false —
24753
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24754
+ * automation can react to the bin coming back without the operator's own
24755
+ * alarm silently clearing itself. */
24756
+ autoRestore: boolean().default(false),
24757
+ /** What to do when the current light has no reference of its own. See
24758
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24759
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24760
+ /**
24761
+ * The light whose checks are currently being SAT OUT under
24762
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24763
+ *
24764
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24765
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24766
+ * nothing captured in this light"* in the same calm voice as the coverage
24767
+ * line, because the alternative is a scene that silently stops answering
24768
+ * after sunset with nothing anywhere saying why. A skipped check must never
24769
+ * read as a broken one.
24770
+ */
24771
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24772
+ /** Named cause when `verdict === 'unknown'`. */
24773
+ unavailable: SceneUnavailableSchema.nullable(),
24774
+ /** Conditions that have at least one comparable reference — the coverage line
24775
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24776
+ coveredConditions: array(SceneConditionSchema)
23985
24777
  });
23986
24778
  var SceneMonitorStatusSchema = object({
23987
24779
  monitors: array(SceneMonitorSchema),
@@ -24014,7 +24806,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24014
24806
  "both"
24015
24807
  ]).optional(),
24016
24808
  checkIntervalSec: number().optional(),
24017
- check: SceneCheckSchema.optional()
24809
+ check: SceneCheckSchema.optional(),
24810
+ emit: _enum(["latched", "live"]).optional(),
24811
+ quietSeconds: number().int().min(0).max(3600).optional(),
24812
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24813
+ anchorThreshold: number().min(0).max(1).optional(),
24814
+ autoRestore: boolean().optional(),
24815
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24816
+ /** `null` clears the vision-model adjudicator. */
24817
+ confirm: SceneConfirmSchema.nullable().optional()
24018
24818
  })
24019
24819
  }), _void(), {
24020
24820
  kind: "mutation",
@@ -24051,6 +24851,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24051
24851
  }), _void(), {
24052
24852
  kind: "mutation",
24053
24853
  auth: "admin"
24854
+ }), method(object({
24855
+ deviceId: number(),
24856
+ monitorId: string(),
24857
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24858
+ recapture: boolean().optional()
24859
+ }), _void(), {
24860
+ kind: "mutation",
24861
+ auth: "admin"
24054
24862
  });
24055
24863
  /**
24056
24864
  * Per-stage gating mode applied to the zones a rule references.
@@ -24204,6 +25012,16 @@ var CamStreamDescriptorSchema = object({
24204
25012
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24205
25013
  metadata: record(string(), unknown()).optional()
24206
25014
  });
25015
+ object({
25016
+ /** The descriptors as last built from a real camera response. Never a guess:
25017
+ * a failed or refused build writes NOTHING, so a restored catalog is always
25018
+ * one the camera itself once produced. */
25019
+ descriptors: array(CamStreamDescriptorSchema),
25020
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
25021
+ * path decide whether the camera's own awake window is worth spending on a
25022
+ * re-read. */
25023
+ lastFetchedAt: number()
25024
+ });
24207
25025
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24208
25026
  /** One of the camera's stream profiles. */
24209
25027
  var StreamProfileSchema = _enum([
@@ -24359,12 +25177,64 @@ var NetworkAddressSchema = object({
24359
25177
  family: string(),
24360
25178
  internal: boolean()
24361
25179
  });
25180
+ /**
25181
+ * Provenance of the site coordinates, and the whole reason this is not just two
25182
+ * numbers.
25183
+ *
25184
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25185
+ * nothing overwrites it.
25186
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25187
+ * default that is right to a few kilometres beats the coarse UTC clock split
25188
+ * the sun-times consumers otherwise fall back to.
25189
+ *
25190
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25191
+ * own input will eventually trust the guess.
25192
+ */
25193
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25194
+ /**
25195
+ * The read shape: the location plus the honest state of the one-shot derivation.
25196
+ *
25197
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25198
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25199
+ * failed; the hub will NOT try again on its own — the fallback is declared
25200
+ * (consumers degrade to their own last resort) and the operator either types the
25201
+ * coordinates or presses detect.
25202
+ */
25203
+ var SiteLocationStatusSchema = object({
25204
+ location: object({
25205
+ /** WGS84 decimal degrees. */
25206
+ latitude: number().min(-90).max(90),
25207
+ longitude: number().min(-180).max(180),
25208
+ source: SiteLocationSourceSchema,
25209
+ /** Epoch ms the value was last written. */
25210
+ updatedAt: number(),
25211
+ /**
25212
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25213
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25214
+ */
25215
+ label: string().optional()
25216
+ }).nullable(),
25217
+ derivationAttemptedAt: number().nullable(),
25218
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25219
+ derivationError: string().nullable()
25220
+ });
25221
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25222
+ var SetSiteLocationInputSchema = object({
25223
+ latitude: number().min(-90).max(90),
25224
+ longitude: number().min(-180).max(180)
25225
+ }).nullable();
24362
25226
  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(), {
24363
25227
  kind: "mutation",
24364
25228
  auth: "admin"
24365
25229
  }), method(_void(), _void(), {
24366
25230
  kind: "mutation",
24367
25231
  auth: "admin"
25232
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25233
+ kind: "mutation",
25234
+ auth: "admin"
25235
+ }), method(_void(), SiteLocationStatusSchema, {
25236
+ kind: "mutation",
25237
+ auth: "admin"
24368
25238
  });
24369
25239
  object({
24370
25240
  /** True when the device's tamper switch / case-open contact is
@@ -27094,6 +27964,12 @@ Object.freeze({
27094
27964
  addonId: null,
27095
27965
  access: "create"
27096
27966
  },
27967
+ "llm.cancel": {
27968
+ capName: "llm",
27969
+ capScope: "system",
27970
+ addonId: null,
27971
+ access: "create"
27972
+ },
27097
27973
  "llm.deleteModel": {
27098
27974
  capName: "llm",
27099
27975
  capScope: "system",
@@ -27178,6 +28054,12 @@ Object.freeze({
27178
28054
  addonId: null,
27179
28055
  access: "view"
27180
28056
  },
28057
+ "llm.resolveModelRef": {
28058
+ capName: "llm",
28059
+ capScope: "system",
28060
+ addonId: null,
28061
+ access: "create"
28062
+ },
27181
28063
  "llm.setDefault": {
27182
28064
  capName: "llm",
27183
28065
  capScope: "system",
@@ -29344,6 +30226,12 @@ Object.freeze({
29344
30226
  addonId: null,
29345
30227
  access: "create"
29346
30228
  },
30229
+ "sceneMonitor.resetScene": {
30230
+ capName: "scene-monitor",
30231
+ capScope: "device",
30232
+ addonId: null,
30233
+ access: "delete"
30234
+ },
29347
30235
  "sceneMonitor.updateScene": {
29348
30236
  capName: "scene-monitor",
29349
30237
  capScope: "device",
@@ -30022,6 +30910,12 @@ Object.freeze({
30022
30910
  addonId: null,
30023
30911
  access: "create"
30024
30912
  },
30913
+ "system.detectSiteLocation": {
30914
+ capName: "system",
30915
+ capScope: "system",
30916
+ addonId: null,
30917
+ access: "create"
30918
+ },
30025
30919
  "system.featureFlags": {
30026
30920
  capName: "system",
30027
30921
  capScope: "system",
@@ -30040,6 +30934,12 @@ Object.freeze({
30040
30934
  addonId: null,
30041
30935
  access: "view"
30042
30936
  },
30937
+ "system.getSiteLocation": {
30938
+ capName: "system",
30939
+ capScope: "system",
30940
+ addonId: null,
30941
+ access: "view"
30942
+ },
30043
30943
  "system.health": {
30044
30944
  capName: "system",
30045
30945
  capScope: "system",
@@ -30064,6 +30964,12 @@ Object.freeze({
30064
30964
  addonId: null,
30065
30965
  access: "create"
30066
30966
  },
30967
+ "system.setSiteLocation": {
30968
+ capName: "system",
30969
+ capScope: "system",
30970
+ addonId: null,
30971
+ access: "create"
30972
+ },
30067
30973
  "terminalSession.adoptLegacyMonitor": {
30068
30974
  capName: "terminal-session",
30069
30975
  capScope: "system",
@@ -30635,6 +31541,1704 @@ Object.freeze({
30635
31541
  access: "create"
30636
31542
  }
30637
31543
  });
31544
+ Object.freeze({
31545
+ "accessories.setChildHidden": [{
31546
+ name: "childDeviceId",
31547
+ form: "single",
31548
+ optional: false
31549
+ }, {
31550
+ name: "deviceId",
31551
+ form: "single",
31552
+ optional: false
31553
+ }],
31554
+ "addonSettings.getDeviceSettings": [{
31555
+ name: "deviceId",
31556
+ form: "single",
31557
+ optional: false
31558
+ }],
31559
+ "addonSettings.updateDeviceSettings": [{
31560
+ name: "deviceId",
31561
+ form: "single",
31562
+ optional: false
31563
+ }],
31564
+ "alarmPanel.arm": [{
31565
+ name: "deviceId",
31566
+ form: "single",
31567
+ optional: false
31568
+ }],
31569
+ "alarmPanel.disarm": [{
31570
+ name: "deviceId",
31571
+ form: "single",
31572
+ optional: false
31573
+ }],
31574
+ "alarmPanel.trigger": [{
31575
+ name: "deviceId",
31576
+ form: "single",
31577
+ optional: false
31578
+ }],
31579
+ "audioAnalysis.resolveDeviceSettings": [{
31580
+ name: "deviceId",
31581
+ form: "single",
31582
+ optional: false
31583
+ }],
31584
+ "audioAnalyzer.classify": [{
31585
+ name: "deviceId",
31586
+ form: "single",
31587
+ optional: true
31588
+ }],
31589
+ "audioMetrics.getCurrentSnapshot": [{
31590
+ name: "deviceId",
31591
+ form: "single",
31592
+ optional: false
31593
+ }],
31594
+ "audioMetrics.getHistory": [{
31595
+ name: "deviceId",
31596
+ form: "single",
31597
+ optional: false
31598
+ }],
31599
+ "automationControl.disable": [{
31600
+ name: "deviceId",
31601
+ form: "single",
31602
+ optional: false
31603
+ }],
31604
+ "automationControl.enable": [{
31605
+ name: "deviceId",
31606
+ form: "single",
31607
+ optional: false
31608
+ }],
31609
+ "automationControl.trigger": [{
31610
+ name: "deviceId",
31611
+ form: "single",
31612
+ optional: false
31613
+ }],
31614
+ "battery.wakeForStream": [{
31615
+ name: "deviceId",
31616
+ form: "single",
31617
+ optional: false
31618
+ }],
31619
+ "brightness.setBrightness": [{
31620
+ name: "deviceId",
31621
+ form: "single",
31622
+ optional: false
31623
+ }],
31624
+ "button.press": [{
31625
+ name: "deviceId",
31626
+ form: "single",
31627
+ optional: false
31628
+ }],
31629
+ "cameraCredentials.getCredentials": [{
31630
+ name: "deviceId",
31631
+ form: "single",
31632
+ optional: false
31633
+ }],
31634
+ "cameraStreams.getBrokerStreams": [{
31635
+ name: "deviceId",
31636
+ form: "single",
31637
+ optional: false
31638
+ }],
31639
+ "cameraStreams.getCameraStreams": [{
31640
+ name: "deviceId",
31641
+ form: "single",
31642
+ optional: false
31643
+ }],
31644
+ "cameraStreams.getProfileRtspEntries": [{
31645
+ name: "deviceId",
31646
+ form: "single",
31647
+ optional: false
31648
+ }],
31649
+ "cameraStreams.getRtspEntries": [{
31650
+ name: "deviceId",
31651
+ form: "single",
31652
+ optional: false
31653
+ }],
31654
+ "cameraStreams.pickStream": [{
31655
+ name: "deviceId",
31656
+ form: "single",
31657
+ optional: false
31658
+ }],
31659
+ "climateControl.setFanMode": [{
31660
+ name: "deviceId",
31661
+ form: "single",
31662
+ optional: false
31663
+ }],
31664
+ "climateControl.setMode": [{
31665
+ name: "deviceId",
31666
+ form: "single",
31667
+ optional: false
31668
+ }],
31669
+ "climateControl.setPreset": [{
31670
+ name: "deviceId",
31671
+ form: "single",
31672
+ optional: false
31673
+ }],
31674
+ "climateControl.setSwingHorizontal": [{
31675
+ name: "deviceId",
31676
+ form: "single",
31677
+ optional: false
31678
+ }],
31679
+ "climateControl.setSwingVertical": [{
31680
+ name: "deviceId",
31681
+ form: "single",
31682
+ optional: false
31683
+ }],
31684
+ "climateControl.setTarget": [{
31685
+ name: "deviceId",
31686
+ form: "single",
31687
+ optional: false
31688
+ }],
31689
+ "climateControl.setTargetHumidity": [{
31690
+ name: "deviceId",
31691
+ form: "single",
31692
+ optional: false
31693
+ }],
31694
+ "climateControl.setTargetRange": [{
31695
+ name: "deviceId",
31696
+ form: "single",
31697
+ optional: false
31698
+ }],
31699
+ "color.setColor": [{
31700
+ name: "deviceId",
31701
+ form: "single",
31702
+ optional: false
31703
+ }],
31704
+ "consumables.reset": [{
31705
+ name: "deviceId",
31706
+ form: "single",
31707
+ optional: false
31708
+ }],
31709
+ "control.setValue": [{
31710
+ name: "deviceId",
31711
+ form: "single",
31712
+ optional: false
31713
+ }],
31714
+ "cover.close": [{
31715
+ name: "deviceId",
31716
+ form: "single",
31717
+ optional: false
31718
+ }],
31719
+ "cover.open": [{
31720
+ name: "deviceId",
31721
+ form: "single",
31722
+ optional: false
31723
+ }],
31724
+ "cover.setPosition": [{
31725
+ name: "deviceId",
31726
+ form: "single",
31727
+ optional: false
31728
+ }],
31729
+ "cover.setTiltPosition": [{
31730
+ name: "deviceId",
31731
+ form: "single",
31732
+ optional: false
31733
+ }],
31734
+ "cover.stop": [{
31735
+ name: "deviceId",
31736
+ form: "single",
31737
+ optional: false
31738
+ }],
31739
+ "dayNight.getOptions": [{
31740
+ name: "deviceId",
31741
+ form: "single",
31742
+ optional: false
31743
+ }],
31744
+ "dayNight.setSettings": [{
31745
+ name: "deviceId",
31746
+ form: "single",
31747
+ optional: false
31748
+ }],
31749
+ "decoder.createSession": [{
31750
+ name: "deviceId",
31751
+ form: "single",
31752
+ optional: true
31753
+ }],
31754
+ "deviceAdoption.release": [{
31755
+ name: "camDeviceId",
31756
+ form: "single",
31757
+ optional: false
31758
+ }],
31759
+ "deviceAdoption.resync": [{
31760
+ name: "camDeviceId",
31761
+ form: "single",
31762
+ optional: false
31763
+ }],
31764
+ "deviceDiscovery.adoptDevice": [{
31765
+ name: "deviceId",
31766
+ form: "single",
31767
+ optional: false
31768
+ }],
31769
+ "deviceDiscovery.listDiscovered": [{
31770
+ name: "deviceId",
31771
+ form: "single",
31772
+ optional: false
31773
+ }],
31774
+ "deviceDiscovery.refreshDiscovery": [{
31775
+ name: "deviceId",
31776
+ form: "single",
31777
+ optional: false
31778
+ }],
31779
+ "deviceDiscovery.releaseDevice": [{
31780
+ name: "childDeviceId",
31781
+ form: "single",
31782
+ optional: false
31783
+ }, {
31784
+ name: "deviceId",
31785
+ form: "single",
31786
+ optional: false
31787
+ }],
31788
+ "deviceManager.adoptionRelease": [{
31789
+ name: "camDeviceId",
31790
+ form: "single",
31791
+ optional: false
31792
+ }],
31793
+ "deviceManager.adoptionResync": [{
31794
+ name: "camDeviceId",
31795
+ form: "single",
31796
+ optional: false
31797
+ }],
31798
+ "deviceManager.applyInitialMeta": [{
31799
+ name: "deviceId",
31800
+ form: "single",
31801
+ optional: false
31802
+ }, {
31803
+ name: "linkDeviceId",
31804
+ form: "single",
31805
+ optional: true
31806
+ }],
31807
+ "deviceManager.disable": [{
31808
+ name: "deviceId",
31809
+ form: "single",
31810
+ optional: false
31811
+ }],
31812
+ "deviceManager.enable": [{
31813
+ name: "deviceId",
31814
+ form: "single",
31815
+ optional: false
31816
+ }],
31817
+ "deviceManager.getBindings": [{
31818
+ name: "deviceId",
31819
+ form: "single",
31820
+ optional: false
31821
+ }],
31822
+ "deviceManager.getChildren": [{
31823
+ name: "parentDeviceId",
31824
+ form: "single",
31825
+ optional: false
31826
+ }],
31827
+ "deviceManager.getConfigSchema": [{
31828
+ name: "deviceId",
31829
+ form: "single",
31830
+ optional: false
31831
+ }],
31832
+ "deviceManager.getDevice": [{
31833
+ name: "deviceId",
31834
+ form: "single",
31835
+ optional: false
31836
+ }],
31837
+ "deviceManager.getDeviceAggregate": [{
31838
+ name: "deviceId",
31839
+ form: "single",
31840
+ optional: false
31841
+ }],
31842
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31843
+ name: "deviceId",
31844
+ form: "single",
31845
+ optional: false
31846
+ }],
31847
+ "deviceManager.getDeviceSettingsAggregate": [{
31848
+ name: "deviceId",
31849
+ form: "single",
31850
+ optional: false
31851
+ }],
31852
+ "deviceManager.getDeviceStatusAggregate": [{
31853
+ name: "deviceId",
31854
+ form: "single",
31855
+ optional: false
31856
+ }],
31857
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31858
+ name: "deviceIds",
31859
+ form: "array",
31860
+ optional: false
31861
+ }],
31862
+ "deviceManager.getLinkedDevices": [{
31863
+ name: "deviceId",
31864
+ form: "single",
31865
+ optional: false
31866
+ }],
31867
+ "deviceManager.getSettingsSchema": [{
31868
+ name: "deviceId",
31869
+ form: "single",
31870
+ optional: false
31871
+ }],
31872
+ "deviceManager.getStreamProfileMap": [{
31873
+ name: "deviceId",
31874
+ form: "single",
31875
+ optional: false
31876
+ }],
31877
+ "deviceManager.getStreamSources": [{
31878
+ name: "deviceId",
31879
+ form: "single",
31880
+ optional: false
31881
+ }],
31882
+ "deviceManager.getWireableFields": [{
31883
+ name: "deviceId",
31884
+ form: "single",
31885
+ optional: false
31886
+ }],
31887
+ "deviceManager.loadConfig": [{
31888
+ name: "deviceId",
31889
+ form: "single",
31890
+ optional: false
31891
+ }],
31892
+ "deviceManager.loadMeta": [{
31893
+ name: "deviceId",
31894
+ form: "single",
31895
+ optional: false
31896
+ }],
31897
+ "deviceManager.loadRuntimeState": [{
31898
+ name: "deviceId",
31899
+ form: "single",
31900
+ optional: false
31901
+ }],
31902
+ "deviceManager.persistConfig": [{
31903
+ name: "deviceId",
31904
+ form: "single",
31905
+ optional: false
31906
+ }],
31907
+ "deviceManager.probeStreams": [{
31908
+ name: "deviceId",
31909
+ form: "single",
31910
+ optional: false
31911
+ }],
31912
+ "deviceManager.registerDevice": [{
31913
+ name: "parentDeviceId",
31914
+ form: "single",
31915
+ optional: true
31916
+ }],
31917
+ "deviceManager.remove": [{
31918
+ name: "deviceId",
31919
+ form: "single",
31920
+ optional: false
31921
+ }],
31922
+ "deviceManager.removeDevice": [{
31923
+ name: "deviceId",
31924
+ form: "single",
31925
+ optional: false
31926
+ }],
31927
+ "deviceManager.runDeviceAction": [{
31928
+ name: "deviceId",
31929
+ form: "single",
31930
+ optional: false
31931
+ }],
31932
+ "deviceManager.setChildLayout": [{
31933
+ name: "deviceId",
31934
+ form: "single",
31935
+ optional: false
31936
+ }],
31937
+ "deviceManager.setDisabled": [{
31938
+ name: "deviceId",
31939
+ form: "single",
31940
+ optional: false
31941
+ }],
31942
+ "deviceManager.setDisplay": [{
31943
+ name: "deviceId",
31944
+ form: "single",
31945
+ optional: false
31946
+ }],
31947
+ "deviceManager.setIntegrationId": [{
31948
+ name: "deviceId",
31949
+ form: "single",
31950
+ optional: false
31951
+ }],
31952
+ "deviceManager.setLinkDeviceId": [{
31953
+ name: "deviceId",
31954
+ form: "single",
31955
+ optional: false
31956
+ }, {
31957
+ name: "linkDeviceId",
31958
+ form: "single",
31959
+ optional: true
31960
+ }],
31961
+ "deviceManager.setLocation": [{
31962
+ name: "deviceId",
31963
+ form: "single",
31964
+ optional: false
31965
+ }],
31966
+ "deviceManager.setMetadata": [{
31967
+ name: "deviceId",
31968
+ form: "single",
31969
+ optional: false
31970
+ }],
31971
+ "deviceManager.setName": [{
31972
+ name: "deviceId",
31973
+ form: "single",
31974
+ optional: false
31975
+ }],
31976
+ "deviceManager.setPrimaryChildEntityId": [{
31977
+ name: "deviceId",
31978
+ form: "single",
31979
+ optional: false
31980
+ }],
31981
+ "deviceManager.setRole": [{
31982
+ name: "deviceId",
31983
+ form: "single",
31984
+ optional: false
31985
+ }],
31986
+ "deviceManager.setStreamProfileMap": [{
31987
+ name: "deviceId",
31988
+ form: "single",
31989
+ optional: false
31990
+ }],
31991
+ "deviceManager.setType": [{
31992
+ name: "deviceId",
31993
+ form: "single",
31994
+ optional: false
31995
+ }],
31996
+ "deviceManager.setWrapperActive": [{
31997
+ name: "deviceId",
31998
+ form: "single",
31999
+ optional: false
32000
+ }],
32001
+ "deviceManager.testField": [{
32002
+ name: "deviceId",
32003
+ form: "single",
32004
+ optional: false
32005
+ }],
32006
+ "deviceManager.updateConfig": [{
32007
+ name: "deviceId",
32008
+ form: "single",
32009
+ optional: false
32010
+ }],
32011
+ "deviceManager.updateDeviceField": [{
32012
+ name: "deviceId",
32013
+ form: "single",
32014
+ optional: false
32015
+ }],
32016
+ "deviceManager.updateDeviceFieldsBatch": [{
32017
+ name: "deviceId",
32018
+ form: "single",
32019
+ optional: false
32020
+ }],
32021
+ "deviceOps.getConfigEntries": [{
32022
+ name: "deviceId",
32023
+ form: "single",
32024
+ optional: false
32025
+ }],
32026
+ "deviceOps.getRawState": [{
32027
+ name: "deviceId",
32028
+ form: "single",
32029
+ optional: false
32030
+ }],
32031
+ "deviceOps.getSettingsSchema": [{
32032
+ name: "deviceId",
32033
+ form: "single",
32034
+ optional: false
32035
+ }],
32036
+ "deviceOps.getStreamSources": [{
32037
+ name: "deviceId",
32038
+ form: "single",
32039
+ optional: false
32040
+ }],
32041
+ "deviceOps.removeDevice": [{
32042
+ name: "deviceId",
32043
+ form: "single",
32044
+ optional: false
32045
+ }],
32046
+ "deviceOps.runAction": [{
32047
+ name: "deviceId",
32048
+ form: "single",
32049
+ optional: false
32050
+ }],
32051
+ "deviceOps.setConfig": [{
32052
+ name: "deviceId",
32053
+ form: "single",
32054
+ optional: false
32055
+ }],
32056
+ "deviceState.getCapSlice": [{
32057
+ name: "deviceId",
32058
+ form: "single",
32059
+ optional: false
32060
+ }],
32061
+ "deviceState.getSnapshot": [{
32062
+ name: "deviceId",
32063
+ form: "single",
32064
+ optional: false
32065
+ }],
32066
+ "deviceState.setCapSlice": [{
32067
+ name: "deviceId",
32068
+ form: "single",
32069
+ optional: false
32070
+ }],
32071
+ "events.getEventClipUrl": [{
32072
+ name: "deviceId",
32073
+ form: "single",
32074
+ optional: false
32075
+ }],
32076
+ "events.getEvents": [{
32077
+ name: "deviceId",
32078
+ form: "single",
32079
+ optional: false
32080
+ }],
32081
+ "events.getEventThumbnail": [{
32082
+ name: "deviceId",
32083
+ form: "single",
32084
+ optional: false
32085
+ }],
32086
+ "faceGallery.getFaceByTrack": [{
32087
+ name: "deviceId",
32088
+ form: "single",
32089
+ optional: false
32090
+ }],
32091
+ "faceGallery.listRecentFaces": [{
32092
+ name: "deviceId",
32093
+ form: "single",
32094
+ optional: true
32095
+ }],
32096
+ "fanControl.setDirection": [{
32097
+ name: "deviceId",
32098
+ form: "single",
32099
+ optional: false
32100
+ }],
32101
+ "fanControl.setOscillating": [{
32102
+ name: "deviceId",
32103
+ form: "single",
32104
+ optional: false
32105
+ }],
32106
+ "fanControl.setPercentage": [{
32107
+ name: "deviceId",
32108
+ form: "single",
32109
+ optional: false
32110
+ }],
32111
+ "fanControl.setPreset": [{
32112
+ name: "deviceId",
32113
+ form: "single",
32114
+ optional: false
32115
+ }],
32116
+ "humidifier.setMode": [{
32117
+ name: "deviceId",
32118
+ form: "single",
32119
+ optional: false
32120
+ }],
32121
+ "humidifier.setOn": [{
32122
+ name: "deviceId",
32123
+ form: "single",
32124
+ optional: false
32125
+ }],
32126
+ "humidifier.setTargetHumidity": [{
32127
+ name: "deviceId",
32128
+ form: "single",
32129
+ optional: false
32130
+ }],
32131
+ "imageSettings.getOptions": [{
32132
+ name: "deviceId",
32133
+ form: "single",
32134
+ optional: false
32135
+ }],
32136
+ "imageSettings.setSettings": [{
32137
+ name: "deviceId",
32138
+ form: "single",
32139
+ optional: false
32140
+ }],
32141
+ "intercom.endTalkSession": [{
32142
+ name: "deviceId",
32143
+ form: "single",
32144
+ optional: false
32145
+ }],
32146
+ "intercom.handleAnswer": [{
32147
+ name: "deviceId",
32148
+ form: "single",
32149
+ optional: false
32150
+ }],
32151
+ "intercom.pushTalkAudio": [{
32152
+ name: "deviceId",
32153
+ form: "single",
32154
+ optional: false
32155
+ }],
32156
+ "intercom.startSession": [{
32157
+ name: "deviceId",
32158
+ form: "single",
32159
+ optional: false
32160
+ }],
32161
+ "intercom.startTalkSession": [{
32162
+ name: "deviceId",
32163
+ form: "single",
32164
+ optional: false
32165
+ }],
32166
+ "intercom.stopSession": [{
32167
+ name: "deviceId",
32168
+ form: "single",
32169
+ optional: false
32170
+ }],
32171
+ "lawnMowerControl.dock": [{
32172
+ name: "deviceId",
32173
+ form: "single",
32174
+ optional: false
32175
+ }],
32176
+ "lawnMowerControl.pause": [{
32177
+ name: "deviceId",
32178
+ form: "single",
32179
+ optional: false
32180
+ }],
32181
+ "lawnMowerControl.startMowing": [{
32182
+ name: "deviceId",
32183
+ form: "single",
32184
+ optional: false
32185
+ }],
32186
+ "lockControl.lock": [{
32187
+ name: "deviceId",
32188
+ form: "single",
32189
+ optional: false
32190
+ }],
32191
+ "lockControl.open": [{
32192
+ name: "deviceId",
32193
+ form: "single",
32194
+ optional: false
32195
+ }],
32196
+ "lockControl.unlock": [{
32197
+ name: "deviceId",
32198
+ form: "single",
32199
+ optional: false
32200
+ }],
32201
+ "mediaPlayer.next": [{
32202
+ name: "deviceId",
32203
+ form: "single",
32204
+ optional: false
32205
+ }],
32206
+ "mediaPlayer.pause": [{
32207
+ name: "deviceId",
32208
+ form: "single",
32209
+ optional: false
32210
+ }],
32211
+ "mediaPlayer.play": [{
32212
+ name: "deviceId",
32213
+ form: "single",
32214
+ optional: false
32215
+ }],
32216
+ "mediaPlayer.playMedia": [{
32217
+ name: "deviceId",
32218
+ form: "single",
32219
+ optional: false
32220
+ }],
32221
+ "mediaPlayer.previous": [{
32222
+ name: "deviceId",
32223
+ form: "single",
32224
+ optional: false
32225
+ }],
32226
+ "mediaPlayer.seek": [{
32227
+ name: "deviceId",
32228
+ form: "single",
32229
+ optional: false
32230
+ }],
32231
+ "mediaPlayer.selectSource": [{
32232
+ name: "deviceId",
32233
+ form: "single",
32234
+ optional: false
32235
+ }],
32236
+ "mediaPlayer.setMute": [{
32237
+ name: "deviceId",
32238
+ form: "single",
32239
+ optional: false
32240
+ }],
32241
+ "mediaPlayer.setRepeat": [{
32242
+ name: "deviceId",
32243
+ form: "single",
32244
+ optional: false
32245
+ }],
32246
+ "mediaPlayer.setShuffle": [{
32247
+ name: "deviceId",
32248
+ form: "single",
32249
+ optional: false
32250
+ }],
32251
+ "mediaPlayer.setVolume": [{
32252
+ name: "deviceId",
32253
+ form: "single",
32254
+ optional: false
32255
+ }],
32256
+ "mediaPlayer.stop": [{
32257
+ name: "deviceId",
32258
+ form: "single",
32259
+ optional: false
32260
+ }],
32261
+ "motion.isDetected": [{
32262
+ name: "deviceId",
32263
+ form: "single",
32264
+ optional: false
32265
+ }],
32266
+ "motionDetection.analyze": [{
32267
+ name: "deviceId",
32268
+ form: "single",
32269
+ optional: false
32270
+ }],
32271
+ "motionDetection.removeCamera": [{
32272
+ name: "deviceId",
32273
+ form: "single",
32274
+ optional: false
32275
+ }],
32276
+ "motionTrigger.setMotionTrigger": [{
32277
+ name: "deviceId",
32278
+ form: "single",
32279
+ optional: false
32280
+ }],
32281
+ "motionZones.getOptions": [{
32282
+ name: "deviceId",
32283
+ form: "single",
32284
+ optional: false
32285
+ }],
32286
+ "motionZones.setZone": [{
32287
+ name: "deviceId",
32288
+ form: "single",
32289
+ optional: false
32290
+ }],
32291
+ "nativeObjectDetection.setEnabled": [{
32292
+ name: "deviceId",
32293
+ form: "single",
32294
+ optional: false
32295
+ }],
32296
+ "networkQuality.getDeviceStats": [{
32297
+ name: "deviceId",
32298
+ form: "single",
32299
+ optional: false
32300
+ }],
32301
+ "networkQuality.reportClientStats": [{
32302
+ name: "deviceId",
32303
+ form: "single",
32304
+ optional: false
32305
+ }],
32306
+ "notificationRules.setDeviceMuted": [{
32307
+ name: "deviceId",
32308
+ form: "single",
32309
+ optional: false
32310
+ }],
32311
+ "notifier.cancel": [{
32312
+ name: "deviceId",
32313
+ form: "single",
32314
+ optional: false
32315
+ }],
32316
+ "notifier.send": [{
32317
+ name: "deviceId",
32318
+ form: "single",
32319
+ optional: false
32320
+ }],
32321
+ "osd.setOverlay": [{
32322
+ name: "deviceId",
32323
+ form: "single",
32324
+ optional: false
32325
+ }],
32326
+ "osdManager.clearSlotBinding": [{
32327
+ name: "deviceId",
32328
+ form: "single",
32329
+ optional: false
32330
+ }],
32331
+ "osdManager.copyDeviceConfiguration": [{
32332
+ name: "sourceDeviceId",
32333
+ form: "single",
32334
+ optional: false
32335
+ }, {
32336
+ name: "targetDeviceId",
32337
+ form: "single",
32338
+ optional: false
32339
+ }],
32340
+ "osdManager.getDeviceOsd": [{
32341
+ name: "deviceId",
32342
+ form: "single",
32343
+ optional: false
32344
+ }],
32345
+ "osdManager.getSourceCatalog": [{
32346
+ name: "deviceId",
32347
+ form: "single",
32348
+ optional: false
32349
+ }],
32350
+ "osdManager.previewSlot": [{
32351
+ name: "deviceId",
32352
+ form: "single",
32353
+ optional: false
32354
+ }],
32355
+ "osdManager.renderDevice": [{
32356
+ name: "deviceId",
32357
+ form: "single",
32358
+ optional: false
32359
+ }],
32360
+ "osdManager.setSlotBinding": [{
32361
+ name: "deviceId",
32362
+ form: "single",
32363
+ optional: false
32364
+ }],
32365
+ "petFeeder.callPet": [{
32366
+ name: "deviceId",
32367
+ form: "single",
32368
+ optional: false
32369
+ }],
32370
+ "petFeeder.cancelFeed": [{
32371
+ name: "deviceId",
32372
+ form: "single",
32373
+ optional: false
32374
+ }],
32375
+ "petFeeder.feed": [{
32376
+ name: "deviceId",
32377
+ form: "single",
32378
+ optional: false
32379
+ }],
32380
+ "petFeeder.markFoodReplenished": [{
32381
+ name: "deviceId",
32382
+ form: "single",
32383
+ optional: false
32384
+ }],
32385
+ "petFeeder.playSound": [{
32386
+ name: "deviceId",
32387
+ form: "single",
32388
+ optional: false
32389
+ }],
32390
+ "petFeeder.resetDesiccant": [{
32391
+ name: "deviceId",
32392
+ form: "single",
32393
+ optional: false
32394
+ }],
32395
+ "petFeeder.setChildLock": [{
32396
+ name: "deviceId",
32397
+ form: "single",
32398
+ optional: false
32399
+ }],
32400
+ "petFeeder.setFeedSound": [{
32401
+ name: "deviceId",
32402
+ form: "single",
32403
+ optional: false
32404
+ }],
32405
+ "petFeeder.setIndicatorLight": [{
32406
+ name: "deviceId",
32407
+ form: "single",
32408
+ optional: false
32409
+ }],
32410
+ "petFeeder.setVolume": [{
32411
+ name: "deviceId",
32412
+ form: "single",
32413
+ optional: false
32414
+ }],
32415
+ "pipelineAnalytics.clearTracks": [{
32416
+ name: "deviceId",
32417
+ form: "single",
32418
+ optional: false
32419
+ }],
32420
+ "pipelineAnalytics.completeRetrainTrack": [{
32421
+ name: "deviceId",
32422
+ form: "single",
32423
+ optional: false
32424
+ }],
32425
+ "pipelineAnalytics.deleteDeviceEvents": [{
32426
+ name: "deviceId",
32427
+ form: "single",
32428
+ optional: false
32429
+ }],
32430
+ "pipelineAnalytics.deleteTracks": [{
32431
+ name: "deviceId",
32432
+ form: "single",
32433
+ optional: false
32434
+ }],
32435
+ "pipelineAnalytics.deselectRetrainFrame": [{
32436
+ name: "deviceId",
32437
+ form: "single",
32438
+ optional: false
32439
+ }],
32440
+ "pipelineAnalytics.getActiveTracks": [{
32441
+ name: "deviceId",
32442
+ form: "single",
32443
+ optional: false
32444
+ }],
32445
+ "pipelineAnalytics.getAudioEvents": [{
32446
+ name: "deviceId",
32447
+ form: "single",
32448
+ optional: false
32449
+ }],
32450
+ "pipelineAnalytics.getEventDensity": [{
32451
+ name: "deviceId",
32452
+ form: "single",
32453
+ optional: false
32454
+ }],
32455
+ "pipelineAnalytics.getEventMedia": [{
32456
+ name: "deviceId",
32457
+ form: "single",
32458
+ optional: false
32459
+ }],
32460
+ "pipelineAnalytics.getKeyEvents": [{
32461
+ name: "deviceId",
32462
+ form: "single",
32463
+ optional: false
32464
+ }],
32465
+ "pipelineAnalytics.getMotionEvents": [{
32466
+ name: "deviceId",
32467
+ form: "single",
32468
+ optional: false
32469
+ }],
32470
+ "pipelineAnalytics.getObjectEvents": [{
32471
+ name: "deviceId",
32472
+ form: "single",
32473
+ optional: false
32474
+ }],
32475
+ "pipelineAnalytics.getRetrainExportUrl": [{
32476
+ name: "deviceIds",
32477
+ form: "array",
32478
+ optional: true
32479
+ }],
32480
+ "pipelineAnalytics.getSensorEvents": [{
32481
+ name: "deviceId",
32482
+ form: "single",
32483
+ optional: false
32484
+ }],
32485
+ "pipelineAnalytics.getTrack": [{
32486
+ name: "deviceId",
32487
+ form: "single",
32488
+ optional: false
32489
+ }],
32490
+ "pipelineAnalytics.getTrackMedia": [{
32491
+ name: "deviceId",
32492
+ form: "single",
32493
+ optional: false
32494
+ }],
32495
+ "pipelineAnalytics.getTrainingExportSummary": [{
32496
+ name: "deviceIds",
32497
+ form: "array",
32498
+ optional: true
32499
+ }],
32500
+ "pipelineAnalytics.getTrainingExportUrl": [{
32501
+ name: "deviceIds",
32502
+ form: "array",
32503
+ optional: true
32504
+ }],
32505
+ "pipelineAnalytics.listEventKinds": [{
32506
+ name: "deviceId",
32507
+ form: "single",
32508
+ optional: false
32509
+ }],
32510
+ "pipelineAnalytics.listEventKindsBatch": [{
32511
+ name: "deviceIds",
32512
+ form: "array",
32513
+ optional: false
32514
+ }],
32515
+ "pipelineAnalytics.listOpsLog": [{
32516
+ name: "deviceId",
32517
+ form: "single",
32518
+ optional: true
32519
+ }],
32520
+ "pipelineAnalytics.listRecentTracks": [{
32521
+ name: "deviceIds",
32522
+ form: "array",
32523
+ optional: false
32524
+ }],
32525
+ "pipelineAnalytics.listRetrainStaging": [{
32526
+ name: "deviceIds",
32527
+ form: "array",
32528
+ optional: true
32529
+ }],
32530
+ "pipelineAnalytics.listTrackMedia": [{
32531
+ name: "deviceId",
32532
+ form: "single",
32533
+ optional: false
32534
+ }],
32535
+ "pipelineAnalytics.listTracks": [{
32536
+ name: "deviceId",
32537
+ form: "single",
32538
+ optional: false
32539
+ }],
32540
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32541
+ name: "deviceId",
32542
+ form: "single",
32543
+ optional: false
32544
+ }],
32545
+ "pipelineAnalytics.pruneEventsBefore": [{
32546
+ name: "deviceId",
32547
+ form: "single",
32548
+ optional: false
32549
+ }],
32550
+ "pipelineAnalytics.pruneTracksBefore": [{
32551
+ name: "deviceId",
32552
+ form: "single",
32553
+ optional: false
32554
+ }],
32555
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32556
+ name: "deviceId",
32557
+ form: "single",
32558
+ optional: true
32559
+ }],
32560
+ "pipelineAnalytics.restageRetrainTrack": [{
32561
+ name: "deviceId",
32562
+ form: "single",
32563
+ optional: false
32564
+ }],
32565
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32566
+ name: "deviceId",
32567
+ form: "single",
32568
+ optional: false
32569
+ }],
32570
+ "pipelineAnalytics.searchObjectEvents": [{
32571
+ name: "deviceId",
32572
+ form: "single",
32573
+ optional: true
32574
+ }],
32575
+ "pipelineAnalytics.selectRetrainFrames": [{
32576
+ name: "deviceId",
32577
+ form: "single",
32578
+ optional: false
32579
+ }],
32580
+ "pipelineAnalytics.setTrackFlags": [{
32581
+ name: "deviceId",
32582
+ form: "single",
32583
+ optional: false
32584
+ }],
32585
+ "pipelineAnalytics.wipeAllAnalytics": [{
32586
+ name: "deviceId",
32587
+ form: "single",
32588
+ optional: false
32589
+ }],
32590
+ "pipelineExecutor.runPipeline": [{
32591
+ name: "deviceId",
32592
+ form: "single",
32593
+ optional: true
32594
+ }],
32595
+ "pipelineExecutor.runPipelineBatch": [{
32596
+ name: "deviceId",
32597
+ form: "single",
32598
+ optional: true
32599
+ }],
32600
+ "pipelineOrchestrator.assignAudio": [{
32601
+ name: "deviceId",
32602
+ form: "single",
32603
+ optional: false
32604
+ }],
32605
+ "pipelineOrchestrator.assignPipeline": [{
32606
+ name: "deviceId",
32607
+ form: "single",
32608
+ optional: false
32609
+ }],
32610
+ "pipelineOrchestrator.getAudioAssignment": [{
32611
+ name: "deviceId",
32612
+ form: "single",
32613
+ optional: false
32614
+ }],
32615
+ "pipelineOrchestrator.getCameraMetrics": [{
32616
+ name: "deviceId",
32617
+ form: "single",
32618
+ optional: false
32619
+ }],
32620
+ "pipelineOrchestrator.getCameraSettings": [{
32621
+ name: "deviceId",
32622
+ form: "single",
32623
+ optional: false
32624
+ }],
32625
+ "pipelineOrchestrator.getCameraStatus": [{
32626
+ name: "deviceId",
32627
+ form: "single",
32628
+ optional: false
32629
+ }],
32630
+ "pipelineOrchestrator.getCameraStatuses": [{
32631
+ name: "deviceIds",
32632
+ form: "array",
32633
+ optional: true
32634
+ }],
32635
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32636
+ name: "deviceId",
32637
+ form: "single",
32638
+ optional: false
32639
+ }],
32640
+ "pipelineOrchestrator.getCameraSwitches": [{
32641
+ name: "deviceId",
32642
+ form: "single",
32643
+ optional: false
32644
+ }],
32645
+ "pipelineOrchestrator.getPipelineAssignment": [{
32646
+ name: "deviceId",
32647
+ form: "single",
32648
+ optional: false
32649
+ }],
32650
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32651
+ name: "deviceId",
32652
+ form: "single",
32653
+ optional: false
32654
+ }],
32655
+ "pipelineOrchestrator.resolvePipeline": [{
32656
+ name: "deviceId",
32657
+ form: "single",
32658
+ optional: false
32659
+ }],
32660
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32661
+ name: "deviceId",
32662
+ form: "single",
32663
+ optional: false
32664
+ }],
32665
+ "pipelineOrchestrator.setCameraStepOverride": [{
32666
+ name: "deviceId",
32667
+ form: "single",
32668
+ optional: false
32669
+ }],
32670
+ "pipelineOrchestrator.setCameraStepToggle": [{
32671
+ name: "deviceId",
32672
+ form: "single",
32673
+ optional: false
32674
+ }],
32675
+ "pipelineOrchestrator.setCameraSwitch": [{
32676
+ name: "deviceId",
32677
+ form: "single",
32678
+ optional: false
32679
+ }],
32680
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32681
+ name: "deviceId",
32682
+ form: "single",
32683
+ optional: false
32684
+ }],
32685
+ "pipelineOrchestrator.unassignAudio": [{
32686
+ name: "deviceId",
32687
+ form: "single",
32688
+ optional: false
32689
+ }],
32690
+ "pipelineOrchestrator.unassignPipeline": [{
32691
+ name: "deviceId",
32692
+ form: "single",
32693
+ optional: false
32694
+ }],
32695
+ "pipelineRunner.attachCamera": [{
32696
+ name: "deviceId",
32697
+ form: "single",
32698
+ optional: false
32699
+ }],
32700
+ "pipelineRunner.detachCamera": [{
32701
+ name: "deviceId",
32702
+ form: "single",
32703
+ optional: false
32704
+ }],
32705
+ "pipelineRunner.getCameraMetrics": [{
32706
+ name: "deviceId",
32707
+ form: "single",
32708
+ optional: false
32709
+ }],
32710
+ "pipelineRunner.reportMotion": [{
32711
+ name: "deviceId",
32712
+ form: "single",
32713
+ optional: false
32714
+ }],
32715
+ "pipelineRunner.runDetailSubtree": [{
32716
+ name: "deviceId",
32717
+ form: "single",
32718
+ optional: false
32719
+ }],
32720
+ "pipelineRunner.runStatelessStep": [{
32721
+ name: "sourceDeviceId",
32722
+ form: "single",
32723
+ optional: false
32724
+ }],
32725
+ "plateGallery.getPlateByTrack": [{
32726
+ name: "deviceId",
32727
+ form: "single",
32728
+ optional: false
32729
+ }],
32730
+ "plateGallery.listPlates": [{
32731
+ name: "deviceId",
32732
+ form: "single",
32733
+ optional: true
32734
+ }],
32735
+ "privacyMask.getOptions": [{
32736
+ name: "deviceId",
32737
+ form: "single",
32738
+ optional: false
32739
+ }],
32740
+ "privacyMask.setAudioEnabled": [{
32741
+ name: "deviceId",
32742
+ form: "single",
32743
+ optional: false
32744
+ }],
32745
+ "privacyMask.setMask": [{
32746
+ name: "deviceId",
32747
+ form: "single",
32748
+ optional: false
32749
+ }],
32750
+ "ptz.continuousMove": [{
32751
+ name: "deviceId",
32752
+ form: "single",
32753
+ optional: false
32754
+ }],
32755
+ "ptz.deletePreset": [{
32756
+ name: "deviceId",
32757
+ form: "single",
32758
+ optional: false
32759
+ }],
32760
+ "ptz.getOptions": [{
32761
+ name: "deviceId",
32762
+ form: "single",
32763
+ optional: false
32764
+ }],
32765
+ "ptz.getPosition": [{
32766
+ name: "deviceId",
32767
+ form: "single",
32768
+ optional: false
32769
+ }],
32770
+ "ptz.getPresets": [{
32771
+ name: "deviceId",
32772
+ form: "single",
32773
+ optional: false
32774
+ }],
32775
+ "ptz.goHome": [{
32776
+ name: "deviceId",
32777
+ form: "single",
32778
+ optional: false
32779
+ }],
32780
+ "ptz.goToPreset": [{
32781
+ name: "deviceId",
32782
+ form: "single",
32783
+ optional: false
32784
+ }],
32785
+ "ptz.move": [{
32786
+ name: "deviceId",
32787
+ form: "single",
32788
+ optional: false
32789
+ }],
32790
+ "ptz.savePreset": [{
32791
+ name: "deviceId",
32792
+ form: "single",
32793
+ optional: false
32794
+ }],
32795
+ "ptz.setAutofocus": [{
32796
+ name: "deviceId",
32797
+ form: "single",
32798
+ optional: false
32799
+ }],
32800
+ "ptz.stop": [{
32801
+ name: "deviceId",
32802
+ form: "single",
32803
+ optional: false
32804
+ }],
32805
+ "ptzAutotrack.getSettings": [{
32806
+ name: "deviceId",
32807
+ form: "single",
32808
+ optional: false
32809
+ }],
32810
+ "ptzAutotrack.getStatus": [{
32811
+ name: "deviceId",
32812
+ form: "single",
32813
+ optional: false
32814
+ }],
32815
+ "ptzAutotrack.setEnabled": [{
32816
+ name: "deviceId",
32817
+ form: "single",
32818
+ optional: false
32819
+ }],
32820
+ "ptzAutotrack.setSettings": [{
32821
+ name: "deviceId",
32822
+ form: "single",
32823
+ optional: false
32824
+ }],
32825
+ "reboot.reboot": [{
32826
+ name: "deviceId",
32827
+ form: "single",
32828
+ optional: false
32829
+ }],
32830
+ "recording.deleteFootprint": [{
32831
+ name: "deviceId",
32832
+ form: "single",
32833
+ optional: false
32834
+ }],
32835
+ "recording.getAvailability": [{
32836
+ name: "deviceId",
32837
+ form: "single",
32838
+ optional: false
32839
+ }],
32840
+ "recording.getDaysWithRecordings": [{
32841
+ name: "deviceId",
32842
+ form: "single",
32843
+ optional: false
32844
+ }],
32845
+ "recording.getDeviceConfig": [{
32846
+ name: "deviceId",
32847
+ form: "single",
32848
+ optional: false
32849
+ }],
32850
+ "recording.getPlaybackManifest": [{
32851
+ name: "deviceId",
32852
+ form: "single",
32853
+ optional: false
32854
+ }],
32855
+ "recording.listOpsLog": [{
32856
+ name: "deviceId",
32857
+ form: "single",
32858
+ optional: true
32859
+ }],
32860
+ "recording.locateSegment": [{
32861
+ name: "deviceId",
32862
+ form: "single",
32863
+ optional: false
32864
+ }],
32865
+ "recording.pruneFootage": [{
32866
+ name: "deviceId",
32867
+ form: "single",
32868
+ optional: false
32869
+ }],
32870
+ "recording.readGopBytes": [{
32871
+ name: "deviceId",
32872
+ form: "single",
32873
+ optional: false
32874
+ }],
32875
+ "recording.readSegmentBytes": [{
32876
+ name: "deviceId",
32877
+ form: "single",
32878
+ optional: false
32879
+ }],
32880
+ "recording.relocateFootage": [{
32881
+ name: "deviceId",
32882
+ form: "single",
32883
+ optional: true
32884
+ }],
32885
+ "recording.renderClip": [{
32886
+ name: "deviceId",
32887
+ form: "single",
32888
+ optional: false
32889
+ }],
32890
+ "recording.renderGif": [{
32891
+ name: "deviceId",
32892
+ form: "single",
32893
+ optional: false
32894
+ }],
32895
+ "recording.rescanStorage": [{
32896
+ name: "deviceId",
32897
+ form: "single",
32898
+ optional: false
32899
+ }],
32900
+ "recording.setDeviceConfig": [{
32901
+ name: "deviceId",
32902
+ form: "single",
32903
+ optional: false
32904
+ }],
32905
+ "recording.startStorageMigrationMove": [{
32906
+ name: "deviceId",
32907
+ form: "single",
32908
+ optional: true
32909
+ }],
32910
+ "recordingExport.createExport": [{
32911
+ name: "deviceId",
32912
+ form: "single",
32913
+ optional: false
32914
+ }],
32915
+ "recordingExport.listExports": [{
32916
+ name: "deviceId",
32917
+ form: "single",
32918
+ optional: true
32919
+ }],
32920
+ "sceneMonitor.captureReference": [{
32921
+ name: "deviceId",
32922
+ form: "single",
32923
+ optional: false
32924
+ }],
32925
+ "sceneMonitor.createScene": [{
32926
+ name: "deviceId",
32927
+ form: "single",
32928
+ optional: false
32929
+ }],
32930
+ "sceneMonitor.deleteReference": [{
32931
+ name: "deviceId",
32932
+ form: "single",
32933
+ optional: false
32934
+ }],
32935
+ "sceneMonitor.deleteScene": [{
32936
+ name: "deviceId",
32937
+ form: "single",
32938
+ optional: false
32939
+ }],
32940
+ "sceneMonitor.listScenes": [{
32941
+ name: "deviceId",
32942
+ form: "single",
32943
+ optional: false
32944
+ }],
32945
+ "sceneMonitor.recheckNow": [{
32946
+ name: "deviceId",
32947
+ form: "single",
32948
+ optional: false
32949
+ }],
32950
+ "sceneMonitor.resetScene": [{
32951
+ name: "deviceId",
32952
+ form: "single",
32953
+ optional: false
32954
+ }],
32955
+ "sceneMonitor.updateScene": [{
32956
+ name: "deviceId",
32957
+ form: "single",
32958
+ optional: false
32959
+ }],
32960
+ "scriptRunner.run": [{
32961
+ name: "deviceId",
32962
+ form: "single",
32963
+ optional: false
32964
+ }],
32965
+ "scriptRunner.stop": [{
32966
+ name: "deviceId",
32967
+ form: "single",
32968
+ optional: false
32969
+ }],
32970
+ "snapshot.getSnapshot": [{
32971
+ name: "deviceId",
32972
+ form: "single",
32973
+ optional: false
32974
+ }],
32975
+ "snapshot.getSnapshotLinks": [{
32976
+ name: "targets",
32977
+ form: "object-array",
32978
+ optional: false,
32979
+ itemField: "deviceId"
32980
+ }],
32981
+ "snapshot.getSnapshotOverview": [{
32982
+ name: "deviceIds",
32983
+ form: "array",
32984
+ optional: false
32985
+ }],
32986
+ "snapshot.invalidateCache": [{
32987
+ name: "deviceId",
32988
+ form: "single",
32989
+ optional: false
32990
+ }],
32991
+ "streamBroker.acquireEgressTranscode": [{
32992
+ name: "deviceId",
32993
+ form: "single",
32994
+ optional: false
32995
+ }],
32996
+ "streamBroker.assignProfile": [{
32997
+ name: "deviceId",
32998
+ form: "single",
32999
+ optional: false
33000
+ }],
33001
+ "streamBroker.getDeviceAudioMute": [{
33002
+ name: "deviceId",
33003
+ form: "single",
33004
+ optional: false
33005
+ }],
33006
+ "streamBroker.getStreamWithCodec": [{
33007
+ name: "deviceId",
33008
+ form: "single",
33009
+ optional: false
33010
+ }],
33011
+ "streamBroker.produceEventMedia": [{
33012
+ name: "deviceId",
33013
+ form: "single",
33014
+ optional: false
33015
+ }],
33016
+ "streamBroker.publishCameraStream": [{
33017
+ name: "deviceId",
33018
+ form: "single",
33019
+ optional: false
33020
+ }],
33021
+ "streamBroker.renderPreBufferClip": [{
33022
+ name: "deviceId",
33023
+ form: "single",
33024
+ optional: false
33025
+ }],
33026
+ "streamBroker.restartProfile": [{
33027
+ name: "deviceId",
33028
+ form: "single",
33029
+ optional: false
33030
+ }],
33031
+ "streamBroker.retractCameraStream": [{
33032
+ name: "deviceId",
33033
+ form: "single",
33034
+ optional: false
33035
+ }],
33036
+ "streamBroker.setDeviceAudioMute": [{
33037
+ name: "deviceId",
33038
+ form: "single",
33039
+ optional: false
33040
+ }],
33041
+ "streamBroker.unassignProfile": [{
33042
+ name: "deviceId",
33043
+ form: "single",
33044
+ optional: false
33045
+ }],
33046
+ "streamCatalog.getCatalog": [{
33047
+ name: "deviceId",
33048
+ form: "single",
33049
+ optional: false
33050
+ }],
33051
+ "streamParams.getConfigSchema": [{
33052
+ name: "deviceId",
33053
+ form: "single",
33054
+ optional: false
33055
+ }],
33056
+ "streamParams.getOptions": [{
33057
+ name: "deviceId",
33058
+ form: "single",
33059
+ optional: false
33060
+ }],
33061
+ "streamParams.setProfile": [{
33062
+ name: "deviceId",
33063
+ form: "single",
33064
+ optional: false
33065
+ }],
33066
+ "switch.setState": [{
33067
+ name: "deviceId",
33068
+ form: "single",
33069
+ optional: false
33070
+ }],
33071
+ "vacuumControl.locate": [{
33072
+ name: "deviceId",
33073
+ form: "single",
33074
+ optional: false
33075
+ }],
33076
+ "vacuumControl.pause": [{
33077
+ name: "deviceId",
33078
+ form: "single",
33079
+ optional: false
33080
+ }],
33081
+ "vacuumControl.returnToBase": [{
33082
+ name: "deviceId",
33083
+ form: "single",
33084
+ optional: false
33085
+ }],
33086
+ "vacuumControl.setFanSpeed": [{
33087
+ name: "deviceId",
33088
+ form: "single",
33089
+ optional: false
33090
+ }],
33091
+ "vacuumControl.start": [{
33092
+ name: "deviceId",
33093
+ form: "single",
33094
+ optional: false
33095
+ }],
33096
+ "vacuumControl.stop": [{
33097
+ name: "deviceId",
33098
+ form: "single",
33099
+ optional: false
33100
+ }],
33101
+ "valve.close": [{
33102
+ name: "deviceId",
33103
+ form: "single",
33104
+ optional: false
33105
+ }],
33106
+ "valve.open": [{
33107
+ name: "deviceId",
33108
+ form: "single",
33109
+ optional: false
33110
+ }],
33111
+ "valve.setPosition": [{
33112
+ name: "deviceId",
33113
+ form: "single",
33114
+ optional: false
33115
+ }],
33116
+ "valve.stop": [{
33117
+ name: "deviceId",
33118
+ form: "single",
33119
+ optional: false
33120
+ }],
33121
+ "videoclips.getClipPlayback": [{
33122
+ name: "deviceId",
33123
+ form: "single",
33124
+ optional: false
33125
+ }],
33126
+ "videoclips.listClips": [{
33127
+ name: "deviceId",
33128
+ form: "single",
33129
+ optional: false
33130
+ }],
33131
+ "waterHeater.setAway": [{
33132
+ name: "deviceId",
33133
+ form: "single",
33134
+ optional: false
33135
+ }],
33136
+ "waterHeater.setOperationMode": [{
33137
+ name: "deviceId",
33138
+ form: "single",
33139
+ optional: false
33140
+ }],
33141
+ "waterHeater.setTargetTemp": [{
33142
+ name: "deviceId",
33143
+ form: "single",
33144
+ optional: false
33145
+ }],
33146
+ "webrtcSession.addIceCandidate": [{
33147
+ name: "deviceId",
33148
+ form: "single",
33149
+ optional: false
33150
+ }],
33151
+ "webrtcSession.closeSession": [{
33152
+ name: "deviceId",
33153
+ form: "single",
33154
+ optional: false
33155
+ }],
33156
+ "webrtcSession.createSession": [{
33157
+ name: "deviceId",
33158
+ form: "single",
33159
+ optional: false
33160
+ }],
33161
+ "webrtcSession.getIceCandidates": [{
33162
+ name: "deviceId",
33163
+ form: "single",
33164
+ optional: false
33165
+ }],
33166
+ "webrtcSession.getSessionState": [{
33167
+ name: "deviceId",
33168
+ form: "single",
33169
+ optional: false
33170
+ }],
33171
+ "webrtcSession.handleAnswer": [{
33172
+ name: "deviceId",
33173
+ form: "single",
33174
+ optional: false
33175
+ }],
33176
+ "webrtcSession.handleOffer": [{
33177
+ name: "deviceId",
33178
+ form: "single",
33179
+ optional: false
33180
+ }],
33181
+ "webrtcSession.hasAdaptiveBitrate": [{
33182
+ name: "deviceId",
33183
+ form: "single",
33184
+ optional: false
33185
+ }],
33186
+ "webrtcSession.listStreams": [{
33187
+ name: "deviceId",
33188
+ form: "single",
33189
+ optional: false
33190
+ }],
33191
+ "zoneAnalytics.getCameraHistory": [{
33192
+ name: "deviceId",
33193
+ form: "single",
33194
+ optional: false
33195
+ }],
33196
+ "zoneAnalytics.getCurrentSnapshot": [{
33197
+ name: "deviceId",
33198
+ form: "single",
33199
+ optional: false
33200
+ }],
33201
+ "zoneAnalytics.getUnzonedHistory": [{
33202
+ name: "deviceId",
33203
+ form: "single",
33204
+ optional: false
33205
+ }],
33206
+ "zoneAnalytics.getZoneHistory": [{
33207
+ name: "deviceId",
33208
+ form: "single",
33209
+ optional: false
33210
+ }],
33211
+ "zoneRules.listRules": [{
33212
+ name: "deviceId",
33213
+ form: "single",
33214
+ optional: false
33215
+ }],
33216
+ "zoneRules.setRules": [{
33217
+ name: "deviceId",
33218
+ form: "single",
33219
+ optional: false
33220
+ }],
33221
+ "zones.addZone": [{
33222
+ name: "deviceId",
33223
+ form: "single",
33224
+ optional: false
33225
+ }],
33226
+ "zones.listZones": [{
33227
+ name: "deviceId",
33228
+ form: "single",
33229
+ optional: false
33230
+ }],
33231
+ "zones.removeZone": [{
33232
+ name: "deviceId",
33233
+ form: "single",
33234
+ optional: false
33235
+ }],
33236
+ "zones.updateZone": [{
33237
+ name: "deviceId",
33238
+ form: "single",
33239
+ optional: false
33240
+ }]
33241
+ });
30638
33242
  Object.freeze({
30639
33243
  "broker": "broker",
30640
33244
  "device-export": "device-export",
@@ -31014,6 +33618,12 @@ DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
31014
33618
  DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
31015
33619
  DEFAULT_NATIVE_LEASE_SETTINGS.admission;
31016
33620
  //#endregion
33621
+ Object.defineProperty(exports, "BOOT_RECOVERY_BACKOFF_MS", {
33622
+ enumerable: true,
33623
+ get: function() {
33624
+ return BOOT_RECOVERY_BACKOFF_MS;
33625
+ }
33626
+ });
31017
33627
  Object.defineProperty(exports, "BaseAddon", {
31018
33628
  enumerable: true,
31019
33629
  get: function() {