@camstack/addon-model-studio 1.1.22 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/MotionZonesSettings-_-XEVHEZ.mjs +310 -0
  2. package/dist/PrivacyMaskSettings-DhUyAvCl.mjs +370 -0
  3. package/dist/SceneMonitorEditor-C4wYmwFS.mjs +828 -0
  4. package/dist/_stub.js +13501 -13523
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DLrVxdSd.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BTCD2DxC.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BORoB5aU.mjs +26 -0
  7. package/dist/addon-model-studio.css +1 -1
  8. package/dist/{hostInit-4ilKnbP0.mjs → hostInit-BgPhCX0Z.mjs} +3 -3
  9. package/dist/model-studio.addon.js +2730 -92
  10. package/dist/model-studio.addon.mjs +2730 -92
  11. package/dist/player-overlays-BSAsJHSV.mjs +44 -0
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/responsive-C8Kdh2lc.mjs +122 -0
  14. package/dist/{trash-2-B52D3CTz.mjs → square-oVzM4XlH.mjs} +3 -24
  15. package/dist/trash-2-CaY5pr7F.mjs +25 -0
  16. package/dist/use-device-snapshot-_XUfjX-Y.mjs +149 -0
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-C0lWeSYH.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CM_o7YAU.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/MotionZonesSettings-DG6lbNZk.mjs +0 -309
  20. package/dist/PrivacyMaskSettings-Ba_onhD4.mjs +0 -368
  21. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CiO5eZYn.mjs +0 -26
  22. package/dist/player-overlays-Djb228qI.mjs +0 -163
@@ -90,7 +90,7 @@ async function downloadFile(url, destPath, onProgress) {
90
90
  (0, node_util.promisify)(node_zlib.brotliCompress);
91
91
  (0, node_util.promisify)(node_zlib.gzip);
92
92
  //#endregion
93
- //#region ../types/dist/event-category-Cv9dO26A.mjs
93
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
94
94
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
95
95
  EventCategory["SystemBoot"] = "system.boot";
96
96
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -297,6 +297,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
297
297
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
298
298
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
299
299
  /**
300
+ * A node the orchestrator would otherwise place cameras on has NO usable
301
+ * inference device: the operator enabled one or more accelerators there and
302
+ * the live probe reports every one of them unavailable. Emitted once per
303
+ * TRANSITION into that state (never per dispatch), and the node is dropped
304
+ * from the placement candidate set for as long as it holds.
305
+ *
306
+ * This exists because the state was previously invisible: little-unraid
307
+ * absorbed 283k inference errors in a day while still being handed cameras,
308
+ * and nothing in the system said so.
309
+ *
310
+ * A node with no accelerators configured at all is NOT this — its devices
311
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
312
+ * serves it exactly as before.
313
+ */
314
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
315
+ /**
316
+ * A camera has an OPEN detection session and has produced no detection at
317
+ * all for longer than the blind threshold — the camera is being decoded and
318
+ * inferred and is returning nothing. Emitted once per transition into blind,
319
+ * per camera.
320
+ *
321
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
322
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
323
+ * camera" produce byte-identical silence.
324
+ */
325
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
326
+ /**
300
327
  * Per-camera pipeline config was mutated by the orchestrator
301
328
  * (3-level settings change via `setAgentAddonDefaults` /
302
329
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3088,6 +3115,9 @@ function handlePipeResult(left, next, ctx) {
3088
3115
  fallback: left.fallback
3089
3116
  }, ctx);
3090
3117
  }
3118
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3119
+ $ZodPipe.init(inst, def);
3120
+ });
3091
3121
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3092
3122
  $ZodType.init(inst, def);
3093
3123
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5273,6 +5303,10 @@ function pipe(in_, out) {
5273
5303
  out
5274
5304
  });
5275
5305
  }
5306
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5307
+ ZodPipe.init(inst, def);
5308
+ $ZodPreprocess.init(inst, def);
5309
+ });
5276
5310
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5277
5311
  $ZodReadonly.init(inst, def);
5278
5312
  ZodType.init(inst, def);
@@ -5331,6 +5365,13 @@ function _instanceof(cls, params = {}) {
5331
5365
  };
5332
5366
  return inst;
5333
5367
  }
5368
+ function preprocess(fn, schema) {
5369
+ return new ZodPreprocess({
5370
+ type: "pipe",
5371
+ in: transform(fn),
5372
+ out: schema
5373
+ });
5374
+ }
5334
5375
  //#endregion
5335
5376
  //#region ../../node_modules/zod/v4/classic/compat.js
5336
5377
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10943,6 +10984,8 @@ var QueryFilterSchema = object({
10943
10984
  where: record(string(), unknown()).optional(),
10944
10985
  whereIn: record(string(), array(unknown())).optional(),
10945
10986
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10987
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10988
+ whereNot: record(string(), unknown()).optional(),
10946
10989
  orderBy: object({
10947
10990
  field: string(),
10948
10991
  direction: _enum(["asc", "desc"])
@@ -10962,7 +11005,8 @@ var QueryFilterSchema = object({
10962
11005
  var MutationFilterSchema = object({
10963
11006
  where: record(string(), unknown()).optional(),
10964
11007
  whereIn: record(string(), array(unknown())).optional(),
10965
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
11008
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11009
+ whereNot: record(string(), unknown()).optional()
10966
11010
  });
10967
11011
  /** A single stored record: `{ id, data }`. */
10968
11012
  var SettingsRecordSchema = object({
@@ -12319,6 +12363,17 @@ var LlmImageSchema = object({
12319
12363
  bytes: _instanceof(Uint8Array),
12320
12364
  mimeType: string()
12321
12365
  });
12366
+ /**
12367
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12368
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12369
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12370
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12371
+ */
12372
+ var LlmRetryPolicySchema = object({
12373
+ enabled: boolean().default(false),
12374
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12375
+ maxAttempts: number().int().min(1).max(5).default(1)
12376
+ });
12322
12377
  var LlmGenerateBaseInputSchema = object({
12323
12378
  /** Collection routing (the notification-output posture). */
12324
12379
  addonId: string().optional(),
@@ -12333,7 +12388,28 @@ var LlmGenerateBaseInputSchema = object({
12333
12388
  jsonSchema: record(string(), unknown()).optional(),
12334
12389
  /** Per-call override of the profile default. */
12335
12390
  maxTokens: number().int().positive().optional(),
12336
- temperature: number().optional()
12391
+ temperature: number().optional(),
12392
+ /** Per-call override of the profile default (nucleus sampling). */
12393
+ topP: number().min(0).max(1).optional(),
12394
+ /** Per-call override of the profile default (top-k sampling). */
12395
+ topK: number().int().positive().optional(),
12396
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12397
+ timeoutMs: number().int().positive().optional(),
12398
+ /** Per-call override; beats both the consumer table and the profile. */
12399
+ retry: LlmRetryPolicySchema.optional(),
12400
+ /**
12401
+ * Caller-minted id that makes this generation CANCELLABLE.
12402
+ *
12403
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12404
+ * the call against 8 s and free their own slot when the timer wins, while the
12405
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12406
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12407
+ * not generations, and the real load is unbounded.
12408
+ *
12409
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12410
+ * `llm.cancel({ requestId })` tears the socket down.
12411
+ */
12412
+ requestId: string().optional()
12337
12413
  });
12338
12414
  /**
12339
12415
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12346,6 +12422,18 @@ var LlmGenerateBaseInputSchema = object({
12346
12422
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12347
12423
  * watchdog — operator decision #3).
12348
12424
  */
12425
+ /**
12426
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12427
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12428
+ * REF rather than looked up at install time, so what the operator approved in
12429
+ * the preview is exactly what the node downloads.
12430
+ */
12431
+ var ManagedModelExtraFileSchema = object({
12432
+ url: string(),
12433
+ filename: string(),
12434
+ sizeBytes: number(),
12435
+ sha256: string().optional()
12436
+ });
12349
12437
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12350
12438
  object({
12351
12439
  kind: literal("catalog"),
@@ -12354,7 +12442,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12354
12442
  object({
12355
12443
  kind: literal("url"),
12356
12444
  url: string(),
12357
- sha256: string().optional()
12445
+ sha256: string().optional(),
12446
+ /** Picker/status label; the file basename when absent. */
12447
+ label: string().optional(),
12448
+ sizeBytes: number().optional(),
12449
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12358
12450
  }),
12359
12451
  object({
12360
12452
  kind: literal("path"),
@@ -12372,13 +12464,82 @@ var ManagedRuntimeConfigSchema = object({
12372
12464
  gpuLayers: number().int().default(0),
12373
12465
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12374
12466
  threads: number().int().optional(),
12375
- /** Concurrent slots. */
12467
+ /** Concurrent slots (`--parallel`). */
12376
12468
  parallel: number().int().default(1),
12469
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12470
+ batchSize: number().int().positive().optional(),
12471
+ /** Physical batch / micro-batch (`-ub`). */
12472
+ ubatchSize: number().int().positive().optional(),
12473
+ /**
12474
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12475
+ * is a no-op elsewhere, so it is offered rather than assumed.
12476
+ */
12477
+ flashAttention: boolean().default(false),
12478
+ /**
12479
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12480
+ * inference. Costs the full model size in resident memory — which is exactly
12481
+ * what the RAM budget is counting.
12482
+ */
12483
+ mlock: boolean().default(false),
12484
+ /**
12485
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12486
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12487
+ * store produces on every first token.
12488
+ */
12489
+ noMmap: boolean().default(false),
12490
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12491
+ * cheapest way to fit a longer context in the same RAM. */
12492
+ cacheTypeK: _enum([
12493
+ "f32",
12494
+ "f16",
12495
+ "q8_0",
12496
+ "q5_1",
12497
+ "q5_0",
12498
+ "q4_1",
12499
+ "q4_0"
12500
+ ]).optional(),
12501
+ cacheTypeV: _enum([
12502
+ "f32",
12503
+ "f16",
12504
+ "q8_0",
12505
+ "q5_1",
12506
+ "q5_0",
12507
+ "q4_1",
12508
+ "q4_0"
12509
+ ]).optional(),
12510
+ /**
12511
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12512
+ * (which most vision chat templates need and some language-only models
12513
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12514
+ *
12515
+ * It is NOT a second place to set the flags above. A token that collides
12516
+ * with a typed field is REJECTED at start, naming the field that owns it
12517
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12518
+ * the "two switches that disagree" failure this repo has already shipped
12519
+ * twice (D62).
12520
+ */
12521
+ extraArgs: array(string()).default([]),
12377
12522
  /** Else lazy: first generate boots it. */
12378
12523
  autoStart: boolean().default(false),
12379
12524
  /** 0 = never; frees RAM after quiet periods. */
12380
12525
  idleStopMinutes: number().int().default(30)
12381
12526
  });
12527
+ /**
12528
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12529
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12530
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12531
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12532
+ */
12533
+ var LlmDownloadProgressSchema = object({
12534
+ phase: _enum(["downloading", "verifying"]),
12535
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12536
+ file: string(),
12537
+ fileIndex: number().int(),
12538
+ fileCount: number().int(),
12539
+ /** Across the WHOLE install, not the current file. */
12540
+ downloadedBytes: number(),
12541
+ totalBytes: number().optional()
12542
+ });
12382
12543
  var LlmRuntimeStatusSchema = object({
12383
12544
  /** Status is ALWAYS node-qualified. */
12384
12545
  nodeId: string(),
@@ -12395,6 +12556,8 @@ var LlmRuntimeStatusSchema = object({
12395
12556
  modelPath: string().optional(),
12396
12557
  modelId: string().optional(),
12397
12558
  downloadProgress: number().min(0).max(1).optional(),
12559
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12560
+ download: LlmDownloadProgressSchema.optional(),
12398
12561
  lastError: string().optional(),
12399
12562
  crashesInWindow: number(),
12400
12563
  /** Child RSS (sampled best-effort). */
@@ -12405,7 +12568,14 @@ var LlmNodeModelSchema = object({
12405
12568
  file: string(),
12406
12569
  sizeBytes: number(),
12407
12570
  catalogId: string().optional(),
12408
- installedAt: number().optional()
12571
+ installedAt: number().optional(),
12572
+ /**
12573
+ * Absolute path on the node. Present so a file that is on disk but matches
12574
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12575
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12576
+ * it the picker could list such a file and do nothing with it.
12577
+ */
12578
+ path: string().optional()
12409
12579
  });
12410
12580
  var LlmRuntimeDiskUsageSchema = object({
12411
12581
  nodeId: string(),
@@ -12461,10 +12631,47 @@ var LlmProfileSchema = object({
12461
12631
  baseUrl: string().optional(),
12462
12632
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12463
12633
  apiKey: string().optional(),
12634
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12635
+ * degraded to text — that shipped once and produced a confident answer to a
12636
+ * question about a picture nobody sent. */
12464
12637
  supportsVision: boolean(),
12465
12638
  temperature: number().min(0).max(2).optional(),
12639
+ /** Nucleus sampling. Every wire we speak has it. */
12640
+ topP: number().min(0).max(1).optional(),
12641
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12642
+ * wire does, and the client drops it there (measured: the request body gets
12643
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12644
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12645
+ topK: number().int().positive().optional(),
12466
12646
  maxTokens: number().int().positive().optional(),
12647
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12648
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12649
+ * the model with, so it is the one field that changes a PROCESS. */
12650
+ contextLength: number().int().positive().optional(),
12651
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12652
+ * two system prompts fighting is worse than either alone). */
12653
+ systemPrompt: string().optional(),
12654
+ /** Total generation bound — the only one a unary call has. */
12467
12655
  timeoutMs: number().int().positive().default(6e4),
12656
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12657
+ * response headers: on the LM Studio / llama-server wire those are written
12658
+ * once the model has finished loading, so they belong to the bound below. */
12659
+ connectTimeoutMs: number().int().positive().default(1e4),
12660
+ /** Accepted, but no output yet — response headers included, because a cold
12661
+ * GPU load is exactly what happens before them. */
12662
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12663
+ /** Output started then stopped. */
12664
+ idleTimeoutMs: number().int().positive().default(6e4),
12665
+ /** Profile-level default. The per-consumer table and a per-call override
12666
+ * both beat it — see `resolveRetryPolicy`. */
12667
+ retry: LlmRetryPolicySchema.default({
12668
+ enabled: false,
12669
+ maxAttempts: 1
12670
+ }),
12671
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12672
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12673
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12674
+ toolsEnabled: boolean().default(false),
12468
12675
  extraHeaders: record(string(), string()).optional(),
12469
12676
  /** kind === 'managed-local' only (spec §4). */
12470
12677
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12514,6 +12721,36 @@ var ManagedModelCatalogEntrySchema = object({
12514
12721
  /** Vision models: companion projector file. */
12515
12722
  mmprojUrl: string().optional()
12516
12723
  });
12724
+ /**
12725
+ * The outcome of turning one operator-typed Hugging Face reference into a
12726
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12727
+ * I will not pick for you" is a normal answer the UI has to render, not an
12728
+ * exception.
12729
+ *
12730
+ * `candidates` is the whole reason the refusal is usable — every string in it
12731
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12732
+ */
12733
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12734
+ ok: literal(true),
12735
+ /** Ready to hand to `installModel` unchanged. */
12736
+ model: ManagedModelRefSchema,
12737
+ label: string(),
12738
+ repo: string(),
12739
+ quantization: string(),
12740
+ purpose: _enum(["text", "vision"]),
12741
+ totalBytes: number(),
12742
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12743
+ * see that 0.9 GB of it is a projector they did not name. */
12744
+ extraFilenames: array(string())
12745
+ }), object({
12746
+ ok: literal(false),
12747
+ code: string(),
12748
+ message: string(),
12749
+ candidates: array(string()).optional(),
12750
+ /** Set when the refusal was only the ceiling: re-calling with
12751
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12752
+ requiredBytes: number().optional()
12753
+ })]);
12517
12754
  var LlmRuntimeNodeSchema = object({
12518
12755
  nodeId: string(),
12519
12756
  reachable: boolean(),
@@ -12526,7 +12763,10 @@ var ProfileRefInputSchema = object({
12526
12763
  addonId: string(),
12527
12764
  profileId: string()
12528
12765
  });
12529
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12766
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12767
+ addonId: string().optional(),
12768
+ requestId: string()
12769
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12530
12770
  kind: "mutation",
12531
12771
  auth: "admin"
12532
12772
  }), method(ProfileRefInputSchema, _void(), {
@@ -12547,6 +12787,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12547
12787
  consumer: string().optional(),
12548
12788
  profileId: string().optional()
12549
12789
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12790
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12791
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12792
+ ref: string(),
12793
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12794
+ maxBytes: number().positive().optional()
12795
+ }), HfModelResolutionSchema, {
12796
+ kind: "mutation",
12797
+ auth: "admin"
12798
+ }), method(object({
12550
12799
  nodeId: string(),
12551
12800
  model: ManagedModelRefSchema
12552
12801
  }), _void(), {
@@ -13112,11 +13361,33 @@ var NotificationFormatSchema = _enum([
13112
13361
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13113
13362
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13114
13363
  * differently.
13364
+ *
13365
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13366
+ *
13367
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13368
+ * the whole set onto its own renderer's vocabulary through a
13369
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13370
+ * fallback, so adding a member here fails every adapter's build until someone
13371
+ * decides its glyph, which is the only place that decision can be made
13372
+ * honestly.
13373
+ *
13374
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13375
+ * `disarm` straight through; iOS feeds that string to
13376
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13377
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13378
+ * mapping, and "the field is documented" is not "the value renders".
13379
+ *
13380
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13381
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13382
+ * so an addon that emits a token the running hub does not know does not lose an
13383
+ * icon — its whole `send` fails Zod validation and the notification never
13384
+ * arrives. Never emit a new token from an addon before the train carrying it.
13115
13385
  */
13116
13386
  var NotificationActionIconSchema = _enum([
13117
13387
  "acknowledge",
13118
13388
  "dismiss",
13119
13389
  "silence",
13390
+ "snooze",
13120
13391
  "view",
13121
13392
  "play",
13122
13393
  "open",
@@ -13124,9 +13395,13 @@ var NotificationActionIconSchema = _enum([
13124
13395
  "lock",
13125
13396
  "unlock",
13126
13397
  "arm",
13398
+ "arm-home",
13399
+ "arm-away",
13400
+ "arm-night",
13127
13401
  "disarm",
13128
13402
  "light",
13129
- "alert"
13403
+ "alert",
13404
+ "camera"
13130
13405
  ]);
13131
13406
  /** A single tap-through action button. */
13132
13407
  var NotificationActionSchema = object({
@@ -13326,6 +13601,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13326
13601
  targetId: string(),
13327
13602
  enabled: boolean()
13328
13603
  }), _void(), { kind: "mutation" });
13604
+ new Set([
13605
+ {
13606
+ id: "person",
13607
+ name: "Person"
13608
+ },
13609
+ {
13610
+ id: "vehicle",
13611
+ name: "Vehicle"
13612
+ },
13613
+ {
13614
+ id: "animal",
13615
+ name: "Animal"
13616
+ },
13617
+ {
13618
+ id: "package",
13619
+ name: "Package"
13620
+ }
13621
+ ].map((l) => l.id));
13329
13622
  var COCO_TO_MACRO = {
13330
13623
  mapping: {
13331
13624
  person: "person",
@@ -14118,11 +14411,15 @@ var NcSystemEventKindSchema = _enum([
14118
14411
  "stream-offline",
14119
14412
  "node-online",
14120
14413
  "node-offline",
14414
+ "node-inference-unavailable",
14415
+ "detection-blind",
14121
14416
  "addon-update-available",
14122
14417
  "server-update-available",
14123
14418
  "alarm-triggered",
14124
14419
  "alarm-armed",
14125
14420
  "alarm-disarmed",
14421
+ "alarm-arming",
14422
+ "alarm-arm-refused",
14126
14423
  "camera-online",
14127
14424
  "camera-offline",
14128
14425
  "camera-disabled",
@@ -14177,7 +14474,16 @@ var NcScheduleSchema = object({
14177
14474
  });
14178
14475
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14179
14476
  var NcPlateMatcherSchema = object({
14180
- values: array(string().min(1)).min(1),
14477
+ /**
14478
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14479
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14480
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14481
+ * rather than merely seen. A subject carrying no plate still fails.
14482
+ *
14483
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14484
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14485
+ */
14486
+ values: array(string().min(1)),
14181
14487
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14182
14488
  maxDistance: number().int().min(0).max(3).default(1)
14183
14489
  });
@@ -14211,28 +14517,36 @@ var NcOccupancyConditionSchema = object({
14211
14517
  /**
14212
14518
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14213
14519
  *
14214
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14215
- * reference notifier uses, so an operator moving between them re-uses what
14216
- * they already know): a rule matches when, over a sampling window of
14217
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14218
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14219
- *
14220
- * - `dbThreshold` its level is at or above this many dBFS (see
14221
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14222
- * - `labels` the classifier put at least one of these labels on it.
14223
- *
14224
- * Both are OPTIONAL and independent, which is the point of the shape: a
14225
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14226
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14227
- * is given** a window in which every sample is trivially a hit would fire on
14228
- * silence, so the engine refuses such a condition rather than notifying on
14229
- * nothing (the schema cannot express "at least one of" without becoming a
14230
- * ZodEffects the cap path would have to special-case).
14231
- *
14232
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14233
- * must be FULL before it can match a window that has been open for two
14234
- * seconds of its ten is 100% of nothing, and firing on it would make
14235
- * `samplingSeconds` decorative.
14520
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14521
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14522
+ * there is no second switch that can disagree with the first and every rule
14523
+ * authored before the decision migrates for free (`audioModeOf`):
14524
+ *
14525
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14526
+ * classifier labels with one of them. No window, no percentage:
14527
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14528
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14529
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14530
+ * reaches this condition if the classifier was already confident enough.
14531
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14532
+ * the condition: at least `hitPercent`% of the samples over
14533
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14534
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14535
+ * must be FULL before it can match a window open for two of its ten
14536
+ * seconds is 100% of nothing.
14537
+ *
14538
+ * **Why label mode has no window.** It had one, and it never fired: the
14539
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14540
+ * of them per episode, even through continuous crying. The measured maximum
14541
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14542
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14543
+ * the wrong question to ask of a sparse classifier.
14544
+ *
14545
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14546
+ * and the rule would fire on silence. The schema cannot express "exactly one
14547
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14548
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14549
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14236
14550
  *
14237
14551
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14238
14552
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14240,13 +14554,13 @@ var NcOccupancyConditionSchema = object({
14240
14554
  * an operator who typed `dog` mean the same thing.
14241
14555
  */
14242
14556
  var NcAudioConditionSchema = object({
14243
- /** Audio macro labels; absent = any sound (level-only rule). */
14557
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14244
14558
  labels: array(string().min(1)).min(1).optional(),
14245
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14559
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14246
14560
  dbThreshold: number().min(-96).max(0).optional(),
14247
- /** Percentage of the window's samples that must be hits (1–100). */
14561
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14248
14562
  hitPercent: number().int().min(1).max(100).default(60),
14249
- /** Length of the sampling window in seconds. */
14563
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14250
14564
  samplingSeconds: number().int().min(1).max(300).default(10)
14251
14565
  });
14252
14566
  /**
@@ -14384,13 +14698,81 @@ var NcRuleActionsSchema = object({
14384
14698
  */
14385
14699
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14386
14700
  });
14701
+ /**
14702
+ * "This rule applies only while `deviceId` is in one of `states`."
14703
+ *
14704
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14705
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14706
+ * make the condition lie about devices whose states have no equivalent.
14707
+ *
14708
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14709
+ * condition that fired on "I could not read it" would be worse than no gate.
14710
+ */
14711
+ var NcDeviceStateConditionSchema = object({
14712
+ deviceId: number().int(),
14713
+ /** Any of these matches. */
14714
+ states: array(string().min(1)).min(1)
14715
+ });
14716
+ /**
14717
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14718
+ *
14719
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14720
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14721
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14722
+ * already has a trigger ("tell me about a person at the front door, but only
14723
+ * while the bin is still out"). That is why it composes with every delivery
14724
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14725
+ * kind exist for it — see D159.
14726
+ *
14727
+ * ── Identity ───────────────────────────────────────────────────────────────
14728
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14729
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14730
+ * carried as a HINT for the editor and for the log line, never as part of the
14731
+ * lookup key: a rule whose hint drifted must still gate correctly.
14732
+ *
14733
+ * ── Which boolean ──────────────────────────────────────────────────────────
14734
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14735
+ * already declares which boolean drives notification rules, and a second knob
14736
+ * that could disagree with it is exactly the D62 failure. Set it only to
14737
+ * override one rule against the scene's own default.
14738
+ *
14739
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14740
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14741
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14742
+ * evidence, in either direction.
14743
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14744
+ * The latch is a durable fact about the past ("it has diverged since I armed
14745
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14746
+ * reason the operator asked for a latch.
14747
+ *
14748
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14749
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14750
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14751
+ * said out loud in the log rather than dropped in silence.
14752
+ */
14753
+ var NcSceneConditionSchema = object({
14754
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14755
+ sceneId: string().min(1),
14756
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14757
+ deviceId: number().int().optional(),
14758
+ /** The state the scene must be in for the rule to fire. */
14759
+ requiredState: _enum(["matched", "diverged"]),
14760
+ /**
14761
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14762
+ * scene's own `emit` field, which is the only place that decision belongs.
14763
+ */
14764
+ latched: boolean().optional()
14765
+ });
14387
14766
  var NcConditionsSchema = object({
14388
14767
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14389
- deviceState: object({
14390
- deviceId: number().int(),
14391
- /** Any of these matches. */
14392
- states: array(string().min(1)).min(1)
14393
- }).optional(),
14768
+ deviceState: NcDeviceStateConditionSchema.optional(),
14769
+ /**
14770
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14771
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14772
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14773
+ * {@link NcSceneCondition} and D159.
14774
+ */
14775
+ scene: NcSceneConditionSchema.optional(),
14394
14776
  /** Device scope — absent = all devices. */
14395
14777
  devices: array(number()).optional(),
14396
14778
  /** Detector class names (any overlap with the record's class set). */
@@ -14416,18 +14798,47 @@ var NcConditionsSchema = object({
14416
14798
  */
14417
14799
  labelEquals: array(string().min(1)).optional(),
14418
14800
  /**
14419
- * Identity matcher. P1 boundary: matched against the record's collapsed
14420
- * `label` (the identity display name propagated by the face pipeline) —
14421
- * identity-ID matching rides in P2 when identity ids reach the record.
14801
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14802
+ * is about recognised people at all.
14803
+ *
14804
+ * Three states, and the empty one is the point:
14805
+ *
14806
+ * | value | meaning |
14807
+ * | --- | --- |
14808
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14809
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14810
+ * | a list | only these identities |
14811
+ *
14812
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14813
+ * `devices` list is every device), applied one level down: the operator has
14814
+ * turned the face scope ON and narrowed it to nothing, which is every known
14815
+ * face. No second field states the same thing — a switch that can disagree
14816
+ * with the list under it is worse than no switch (D62).
14817
+ *
14818
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14819
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14820
+ * the operator fixed the spelling. The id reaches the record on
14821
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14822
+ * `{{label}}` renders.
14823
+ *
14824
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14825
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14826
+ * for is left as it stands and reported, never dropped. The engine also
14827
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14828
+ * migration could not resolve keeps matching exactly what it matched before.
14422
14829
  */
14423
14830
  identities: array(string().min(1)).optional(),
14424
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14831
+ /**
14832
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14833
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14834
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14835
+ */
14425
14836
  plates: NcPlateMatcherSchema.optional(),
14426
14837
  /**
14427
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14428
- * Same P1 boundary: matched against the record's collapsed `label` (the
14429
- * identity display name). A record with NO label passes (nothing to
14430
- * exclude), unlike the include variant which fails on an absent label.
14838
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14839
+ * the same id members and the same lazy name→id migration. A record with NO
14840
+ * identity passes (nothing to exclude), unlike the include variant which
14841
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14431
14842
  */
14432
14843
  identitiesExclude: array(string().min(1)).optional(),
14433
14844
  /**
@@ -14819,7 +15230,80 @@ var NcRuleInputSchema = object({
14819
15230
  * a rule that predates the gate must keep delivering byte-for-byte as it
14820
15231
  * did, and absent is the only way to say that without a migration.
14821
15232
  */
14822
- confirm: NcConfirmSchema.optional()
15233
+ confirm: NcConfirmSchema.optional(),
15234
+ /**
15235
+ * WAIT for face/plate recognition before saying anything.
15236
+ *
15237
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15238
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15239
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15240
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15241
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15242
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15243
+ *
15244
+ * Only two honest answers exist, and this flag picks between them. It has
15245
+ * effect ONLY on a rule that declares a recognition scope
15246
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15247
+ * other rule there is nothing to wait for and the flag is inert.
15248
+ *
15249
+ * | value | what happens |
15250
+ * | --- | --- |
15251
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15252
+ * | 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) |
15253
+ *
15254
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15255
+ * on the addon cap path, and absent has to keep meaning exactly what every
15256
+ * rule authored before this field meant.
15257
+ *
15258
+ * The cost of `true` is stated here because the editor states it too: a rule
15259
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15260
+ * tests every zone the track visited and a `crossing` condition can no longer
15261
+ * be satisfied, because a closed track carries no crossing.
15262
+ */
15263
+ waitForEnhancement: boolean().optional(),
15264
+ /**
15265
+ * GROUP a burst of subjects into ONE notification that grows.
15266
+ *
15267
+ * Seconds of quiet after the last matching subject before the burst is
15268
+ * considered over. While it is open, the first subject enqueues immediately —
15269
+ * **exactly as today, with no added latency** — and every real growth (a new
15270
+ * subject, or a name confirmed on one already in it) REPLACES that
15271
+ * notification with an updated one naming everybody. The push carries the
15272
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15273
+ *
15274
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15275
+ *
15276
+ * ### Why an idle cutoff and not a window
15277
+ *
15278
+ * The measured seven-person arrival on device 590 spans 110 s with every
15279
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15280
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15281
+ * 30 is Frigate's shipped value for the same decision.
15282
+ *
15283
+ * ### What it replaces
15284
+ *
15285
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15286
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15287
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15288
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15289
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15290
+ * budget over GROUPS — which is what it always meant — and a growth is never
15291
+ * throttled by the window its own first member spent.
15292
+ *
15293
+ * ### Interaction with {@link waitForEnhancement}
15294
+ *
15295
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15296
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15297
+ * CLOSE — already carrying its name — and grows as later members close. That
15298
+ * is later, and complete. With grouping alone the group opens on the first
15299
+ * object event and picks up names as they are confirmed, through the growth
15300
+ * path. Neither combination fires twice for one subject.
15301
+ *
15302
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15303
+ * on the addon cap path, so absent must keep meaning what it meant before this
15304
+ * field existed.
15305
+ */
15306
+ groupIdleSec: number().int().min(0).max(600).optional()
14823
15307
  });
14824
15308
  /**
14825
15309
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14926,6 +15410,7 @@ var NcConditionDescriptorSchema = object({
14926
15410
  "occupancy",
14927
15411
  "audio",
14928
15412
  "deviceState",
15413
+ "scene",
14929
15414
  "systemEvent"
14930
15415
  ]),
14931
15416
  operator: _enum([
@@ -15331,7 +15816,87 @@ var MethodAccessSchema = _enum([
15331
15816
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15332
15817
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15333
15818
  var CapScopeSchema = _enum(["device", "system"]);
15334
- var TokenScopeSchema = discriminatedUnion("type", [
15819
+ /**
15820
+ * DeviceSelector (scope model v3 — 2026-08-12).
15821
+ *
15822
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15823
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15824
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15825
+ * AFTER the grant was minted — no re-grant, no re-login.
15826
+ *
15827
+ * - `all` — every device in the deployment. The broad viewer/operator
15828
+ * lever without a `category` grant (a `category` grant also covers device
15829
+ * caps that carry no deviceId; `all` is specifically the device set).
15830
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15831
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15832
+ * is NOT covered until the grant is edited.
15833
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15834
+ * DYNAMIC. A device that changes type, or a new device of the type,
15835
+ * re-resolves on the next request.
15836
+ * - `locations` — every device whose operator-assigned `location` label is
15837
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15838
+ * null/unset location matches NO `locations` selector.
15839
+ */
15840
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15841
+ object({ kind: literal("all") }),
15842
+ object({
15843
+ kind: literal("ids"),
15844
+ ids: array(number().int()).min(1)
15845
+ }),
15846
+ object({
15847
+ kind: literal("types"),
15848
+ types: array(_enum(DeviceType)).min(1)
15849
+ }),
15850
+ object({
15851
+ kind: literal("locations"),
15852
+ locations: array(string().min(1)).min(1)
15853
+ })
15854
+ ]);
15855
+ var DeviceTokenScopeSchema = object({
15856
+ type: literal("device"),
15857
+ /** The device SET this grant covers — resolved against the live fleet. */
15858
+ selector: DeviceSelectorSchema,
15859
+ access: array(MethodAccessSchema).min(1),
15860
+ /**
15861
+ * Whether a grant on a PARENT device transparently covers its accessory
15862
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15863
+ * Direction is parent → children ONLY.
15864
+ *
15865
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15866
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15867
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15868
+ * operator must grant on the child, not inherit from the parent). Set it
15869
+ * explicitly to override that default per grant.
15870
+ */
15871
+ includeLinked: boolean().optional()
15872
+ });
15873
+ /**
15874
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15875
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15876
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15877
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15878
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15879
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15880
+ * migration cannot reach a JWT already in a client's hands; parse-time
15881
+ * migration covers both without a flag day. No cast — the raw object is read
15882
+ * through `Reflect.get` (its static type is `unknown`).
15883
+ */
15884
+ function migrateLegacyTokenScope(raw) {
15885
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15886
+ if (Reflect.get(raw, "type") !== "device") return raw;
15887
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15888
+ const targets = Reflect.get(raw, "targets");
15889
+ if (!Array.isArray(targets)) return raw;
15890
+ return {
15891
+ type: "device",
15892
+ selector: {
15893
+ kind: "ids",
15894
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15895
+ },
15896
+ access: Reflect.get(raw, "access")
15897
+ };
15898
+ }
15899
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15335
15900
  object({
15336
15901
  type: literal("category"),
15337
15902
  target: CapScopeSchema,
@@ -15347,18 +15912,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15347
15912
  target: string(),
15348
15913
  access: array(MethodAccessSchema).min(1)
15349
15914
  }),
15350
- object({
15351
- type: literal("device"),
15352
- /**
15353
- * One or more deviceIds (serialised as strings for wire-format
15354
- * consistency with the rest of the union). Matcher accepts if
15355
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15356
- * of one scope-per-device when granting access to a set of cameras.
15357
- */
15358
- targets: array(string()).min(1),
15359
- access: array(MethodAccessSchema).min(1)
15360
- })
15361
- ]);
15915
+ DeviceTokenScopeSchema
15916
+ ]));
15362
15917
  object({
15363
15918
  id: string(),
15364
15919
  username: string(),
@@ -15675,7 +16230,7 @@ var TrackEnvelopeSchema = object({
15675
16230
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15676
16231
  * keeps every scalar the list surfaces actually render (ids, class(es),
15677
16232
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15678
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16233
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15679
16234
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15680
16235
  * `getTrack`. Mirrors the event-store `projection` convention
15681
16236
  * (`getObjectEvents` et al.).
@@ -15811,7 +16366,21 @@ union([literal(1), literal(2)]);
15811
16366
  var LabelAttributionSchema = object({
15812
16367
  stepId: string(),
15813
16368
  modelId: string().optional(),
15814
- decidedAt: number()
16369
+ decidedAt: number(),
16370
+ /**
16371
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16372
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16373
+ *
16374
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16375
+ * notification rule authored on "Gianluca" stopped matching the moment the
16376
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16377
+ * the thing that does not move, so it is what a rule matches on
16378
+ * (`NcConditions.identities`) and the text is what a human is shown.
16379
+ *
16380
+ * Absent when the label names no gallery row — a plate the OCR read but no
16381
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16382
+ */
16383
+ identityId: string().optional()
15815
16384
  });
15816
16385
  /**
15817
16386
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15948,6 +16517,28 @@ var TrackSchema = object({
15948
16517
  * `=== true` and render nothing otherwise, never infer "no face".
15949
16518
  */
15950
16519
  hasFace: boolean().optional(),
16520
+ /**
16521
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16522
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16523
+ * so the passage is tracked once and as a VEHICLE.
16524
+ *
16525
+ * It exists because the fold's record was dishonest. D34 and the code both
16526
+ * said "the person is not lost — it is reported so both entities stay on the
16527
+ * record"; in fact the pair went into a per-processor RAM field behind an
16528
+ * accessor nobody called, and every durable surface said `vehicle`, full
16529
+ * stop. This is the composition note that makes the row true.
16530
+ *
16531
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16532
+ * person" is not an answer to "what is this" — both label tiers would refuse
16533
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16534
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16535
+ * and a `person` rule still does not fire for someone cycling past.
16536
+ *
16537
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16538
+ * the column, and every hub that predates the field, omits it. Test
16539
+ * `=== true` and render nothing otherwise — never infer "no rider".
16540
+ */
16541
+ hasRider: boolean().optional(),
15951
16542
  ...TrackFlagFields,
15952
16543
  ...TrackRetrainFields
15953
16544
  });
@@ -16297,7 +16888,10 @@ var RecentTracksQueryInput = object({
16297
16888
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16298
16889
  cursor: string().optional(),
16299
16890
  /** See {@link TrackProjectionSchema}. Default `full`. */
16300
- projection: TrackProjectionSchema.optional()
16891
+ projection: TrackProjectionSchema.optional(),
16892
+ /** Include stationary-promoted rows (parked objects). Default false: the
16893
+ * feed lists passages; parking records live on the stationary registry. */
16894
+ includeStationary: boolean().optional()
16301
16895
  });
16302
16896
  var RecentTracksPageSchema = object({
16303
16897
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16515,7 +17109,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16515
17109
  zone: TrackZoneFilterSchema.optional(),
16516
17110
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16517
17111
  * compatible — omitting the field keeps today's exact behaviour). */
16518
- projection: TrackProjectionSchema.optional()
17112
+ projection: TrackProjectionSchema.optional(),
17113
+ /** Include stationary-promoted rows (parked objects handed to the
17114
+ * stationary registry). Default false: the timeline lists passages,
17115
+ * not parking records (operator decision, 2026-08-15). */
17116
+ includeStationary: boolean().optional()
16519
17117
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16520
17118
  kind: "mutation",
16521
17119
  auth: "admin"
@@ -16679,11 +17277,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16679
17277
  auth: "admin"
16680
17278
  }), method(object({
16681
17279
  eventId: string(),
16682
- kind: MediaFileKindEnum.optional()
17280
+ kind: MediaFileKindEnum.optional(),
17281
+ deviceId: number()
16683
17282
  }), array(MediaFileSchema).readonly()), method(object({
16684
17283
  trackId: string(),
16685
- kinds: array(MediaFileKindEnum).optional()
16686
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17284
+ kinds: array(MediaFileKindEnum).optional(),
17285
+ deviceId: number()
17286
+ }), array(MediaFileSchema).readonly()), method(object({
17287
+ trackId: string(),
17288
+ deviceId: number()
17289
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16687
17290
  kind: "mutation",
16688
17291
  auth: "admin"
16689
17292
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17343,6 +17946,17 @@ var maxSessionHoldMsField = {
17343
17946
  default: 12e4,
17344
17947
  step: 5e3
17345
17948
  };
17949
+ /**
17950
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17951
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17952
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17953
+ */
17954
+ var audioMotionWindowMsField = {
17955
+ min: 5e3,
17956
+ max: 6e5,
17957
+ default: 9e4,
17958
+ step: 5e3
17959
+ };
17346
17960
  var motionFpsField = {
17347
17961
  min: 1,
17348
17962
  max: 30,
@@ -17355,10 +17969,26 @@ var detectionFpsField = {
17355
17969
  default: 10,
17356
17970
  step: 1
17357
17971
  };
17972
+ /**
17973
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17974
+ *
17975
+ * The recheck is now on by default (a parked car is invisible to occupancy
17976
+ * rules until the stationary registry has been rebuilt by motion, which after a
17977
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17978
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17979
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17980
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17981
+ *
17982
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17983
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17984
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17985
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17986
+ * that ships with an addon deploy.
17987
+ */
17358
17988
  var occupancyRecheckSecField = {
17359
17989
  min: 0,
17360
17990
  max: 300,
17361
- default: 30,
17991
+ default: 300,
17362
17992
  step: 5
17363
17993
  };
17364
17994
  var occupancyRecheckFramesField = {
@@ -17503,6 +18133,27 @@ var RunnerCameraConfigSchema = object({
17503
18133
  * resolved `CameraDetectionConfig`.
17504
18134
  */
17505
18135
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18136
+ /**
18137
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18138
+ * 'on-motion'` audio window, measured from the LAST motion event.
18139
+ *
18140
+ * This exists because the falling edge cannot be relied on. Camera-native
18141
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18142
+ * its email-push SMTP path both emit `detected: true` and never the
18143
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18144
+ * onboard-only camera a window that closed only on `detected: false` never
18145
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18146
+ * battery camera, the one failure mode the mode exists to prevent.
18147
+ *
18148
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18149
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18150
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18151
+ *
18152
+ * Not consumed by the runner: carried here so it shares the per-camera
18153
+ * device-settings surface with `motionCooldownMs`, exactly like
18154
+ * `maxSessionHoldMs`.
18155
+ */
18156
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17506
18157
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17507
18158
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17508
18159
  motionStreamId: string(),
@@ -17556,15 +18207,21 @@ var RunnerCameraConfigSchema = object({
17556
18207
  */
17557
18208
  onboardMotionDrivesAnalyzer: boolean().default(true),
17558
18209
  /**
17559
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17560
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17561
- * this is off by default because the recheck re-subscribes a detection session
17562
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17563
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
18210
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
18211
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17564
18212
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17565
18213
  * (and only render) when this is enabled.
17566
- */
17567
- occupancyRecheckEnabled: boolean().default(false),
18214
+ *
18215
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
18216
+ * recheck re-subscribes a detection session every N seconds while `watching`
18217
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
18218
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
18219
+ * object is counted only while the stationary registry holds it, and the
18220
+ * registry rebuilds from motion, so after a restart a parked car was invisible
18221
+ * to every occupancy rule until something moved in front of it. The churn is
18222
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
18223
+ */
18224
+ occupancyRecheckEnabled: boolean().default(true),
17568
18225
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17569
18226
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17570
18227
  /**
@@ -17592,7 +18249,7 @@ var RunnerCameraConfigSchema = object({
17592
18249
  */
17593
18250
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17594
18251
  });
17595
- 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;
18252
+ 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;
17596
18253
  /**
17597
18254
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17598
18255
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18608,7 +19265,16 @@ targets: array(object({
18608
19265
  /** A sleeping battery camera: the frame is deliberately stale and will
18609
19266
  * NOT refresh in the background. A surface should say so rather than
18610
19267
  * present it as current. */
18611
- sleeping: boolean()
19268
+ sleeping: boolean(),
19269
+ /** Current device state rendered over the cached frame. State images
19270
+ * remain authoritative even when their photographic background is
19271
+ * old; null means the link must carry a current camera frame. */
19272
+ stateReason: _enum([
19273
+ "disabled",
19274
+ "sleeping",
19275
+ "unreachable",
19276
+ "waking"
19277
+ ]).nullable()
18612
19278
  })));
18613
19279
  /**
18614
19280
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20130,6 +20796,25 @@ var BatteryStatusSchema = object({
20130
20796
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20131
20797
  lastUpdated: number(),
20132
20798
  /**
20799
+ * Ms epoch of the last time the device PROVED it was reachable — a
20800
+ * completed firmware round-trip, an observed wake, or an inbound push
20801
+ * (firmware event, email). `0`/absent = never since this slice was born.
20802
+ *
20803
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20804
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20805
+ * for the radio, because a poll that confirms reachability is the same
20806
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20807
+ * single derivation every consumer must use; no surface computes its own.
20808
+ *
20809
+ * It is deliberately NOT a clock in the
20810
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20811
+ * observation itself, and it is the only thing a 30-hour silence is
20812
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20813
+ * Reolink provider) so a value that means "recently" cannot cost a
20814
+ * SQLite commit per round-trip.
20815
+ */
20816
+ lastContactAt: number().optional(),
20817
+ /**
20133
20818
  * True when the source is a BINARY low-battery indicator (HA
20134
20819
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20135
20820
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23667,7 +24352,7 @@ method(object({
23667
24352
  toMs: number()
23668
24353
  }), RecordingAvailabilitySchema, {
23669
24354
  kind: "query",
23670
- auth: "admin"
24355
+ auth: "protected"
23671
24356
  }), method(object({
23672
24357
  deviceId: number(),
23673
24358
  fromMs: number(),
@@ -23675,14 +24360,14 @@ method(object({
23675
24360
  tzOffsetMinutes: number()
23676
24361
  }), RecordingDaysSchema, {
23677
24362
  kind: "query",
23678
- auth: "admin"
24363
+ auth: "protected"
23679
24364
  }), method(object({
23680
24365
  deviceId: number(),
23681
24366
  fromMs: number(),
23682
24367
  toMs: number()
23683
24368
  }), RecordingManifestSchema, {
23684
24369
  kind: "query",
23685
- auth: "admin"
24370
+ auth: "protected"
23686
24371
  }), method(object({}), RecordingStorageUsageSchema, {
23687
24372
  kind: "query",
23688
24373
  auth: "admin"
@@ -23972,14 +24657,77 @@ method(object({
23972
24657
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23973
24658
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23974
24659
  *
23975
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
23976
- * derives the device-detail contribution; the provider carries NO hand-written
23977
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
23978
- * every hysteresis flip / availability change; consumers never poll.
23979
- */
23980
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23981
- * be added without a wire break (matching falls back to any-condition refs). */
24660
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24661
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24662
+ * for the thing: a scene is a standing question about the property ("is the bin
24663
+ * still out"), and the operator's question is "which of my scenes have tripped",
24664
+ * across every camera at once — not "what does camera 617 think". Buried one
24665
+ * camera deep it also could not be found. The surface is now a top-level admin
24666
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24667
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24668
+ *
24669
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24670
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24671
+ * directions, so a registration nobody declares fails exactly as loudly as a
24672
+ * declaration nobody registers. The editor is imported directly by the page.
24673
+ *
24674
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24675
+ * availability change; consumers never poll.
24676
+ */
24677
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24678
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24679
+ * Open by design so more can be added without a wire break.
24680
+ *
24681
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24682
+ * not comparable, so "I have never seen this scene in this light" is reported
24683
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24684
+ * collapses the cosine and would latch a false alarm every single night. */
23982
24685
  var SceneConditionSchema = string();
24686
+ /**
24687
+ * What a scene does when the CURRENT light has no reference of its own.
24688
+ *
24689
+ * The lighting variants are not equally likely to exist. Almost every operator
24690
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24691
+ * scene that is only ever going to be asked about a daytime question ("is the
24692
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24693
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24694
+ * working without it rather than degrading into a permanent complaint.
24695
+ *
24696
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24697
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24698
+ * last covered light left it at, the latch is untouched, and the hysteresis
24699
+ * run is neither spent nor cleared. The scene resumes by itself at first
24700
+ * light. This is the only behaviour under which "I never captured IR" is a
24701
+ * configuration choice instead of a nightly fault.
24702
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24703
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24704
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24705
+ * cross-condition cosines are not comparable, so a day reference against a
24706
+ * true IR frame collapses and the scene reports a theft at 21:40.
24707
+ *
24708
+ * Never applies when the scene has NO comparable reference at all — that is
24709
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24710
+ * there would hide a scene the operator never finished setting up.
24711
+ */
24712
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24713
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24714
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24715
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24716
+ * and never counts toward hysteresis in either direction. */
24717
+ var SceneVerdictSchema = _enum([
24718
+ "matched",
24719
+ "diverged",
24720
+ "unknown"
24721
+ ]);
24722
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24723
+ * silence that reads as "nothing has happened". */
24724
+ var SceneUnavailableSchema = _enum([
24725
+ "no-reference-for-condition",
24726
+ "view-shifted",
24727
+ "no-vision-profile",
24728
+ "encoder-model-changed",
24729
+ "no-snapshot"
24730
+ ]);
23983
24731
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23984
24732
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23985
24733
  var SceneReferenceSchema = object({
@@ -23987,7 +24735,14 @@ var SceneReferenceSchema = object({
23987
24735
  modelId: string(),
23988
24736
  condition: SceneConditionSchema,
23989
24737
  capturedAt: number(),
23990
- thumbnailMediaId: string().optional()
24738
+ thumbnailMediaId: string().optional(),
24739
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24740
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24741
+ * normalized rect frame a different piece of world, and the scene would
24742
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24743
+ * when hysteresis is about to flip — one extra encode per candidate
24744
+ * transition, not per poll. */
24745
+ anchorEmbedding: array(number()).optional()
23991
24746
  });
23992
24747
  var SceneMonitorStateSchema = object({
23993
24748
  id: string(),
@@ -24009,6 +24764,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
24009
24764
  profileId: string().optional(),
24010
24765
  hysteresisCount: number().int().positive()
24011
24766
  })]);
24767
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24768
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24769
+ * out in silence rather than reporting a fault every night. */
24770
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24771
+ /**
24772
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24773
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24774
+ *
24775
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24776
+ * fail-open: a notification suppressed is the worse error there, but a vision
24777
+ * model that timed out has not told us the bin is gone, and a latch is a
24778
+ * stateful claim that costs the operator a trip to reset.
24779
+ */
24780
+ var SceneConfirmSchema = object({
24781
+ enabled: boolean().default(false),
24782
+ prompt: string().min(1).max(1e3),
24783
+ profileId: string().optional(),
24784
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24785
+ maxImagePx: number().int().min(64).max(2048).default(448),
24786
+ /** What a timeout / unavailable model means for the PENDING flip. */
24787
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24788
+ });
24012
24789
  var SceneMonitorSchema = object({
24013
24790
  id: string(),
24014
24791
  label: string(),
@@ -24027,7 +24804,56 @@ var SceneMonitorSchema = object({
24027
24804
  lastConfidence: number().nullable(),
24028
24805
  currentCondition: SceneConditionSchema.nullable(),
24029
24806
  availability: _enum(["ok", "unavailable"]),
24030
- unavailableReason: string().nullable()
24807
+ unavailableReason: string().nullable(),
24808
+ /** Which state is "the initial screen". `null` until the first capture. */
24809
+ baselineStateId: string().nullable(),
24810
+ /** Which boolean drives notification rules and any export. */
24811
+ emit: _enum(["latched", "live"]).default("latched"),
24812
+ /** Live: does the region match the baseline RIGHT NOW. */
24813
+ verdict: SceneVerdictSchema,
24814
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24815
+ latched: boolean(),
24816
+ /** Last reset (or creation). */
24817
+ armedAt: number(),
24818
+ divergedAt: number().nullable(),
24819
+ restoredAt: number().nullable(),
24820
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24821
+ * during the window DISCARDS the observation — a car pulling up in front of
24822
+ * the bin must not be able to spend hysteresis credit. */
24823
+ quietSeconds: number().int().min(0).max(3600).default(60),
24824
+ /** An observation only advances the pending count when it is at least this
24825
+ * far from the previously counted one, so N agreeing checks span real time
24826
+ * rather than N adjacent polls inside one occlusion. */
24827
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24828
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24829
+ confirm: SceneConfirmSchema.optional(),
24830
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24831
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24832
+ /** Clear the latch on its own when the scene matches again? Default false —
24833
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24834
+ * automation can react to the bin coming back without the operator's own
24835
+ * alarm silently clearing itself. */
24836
+ autoRestore: boolean().default(false),
24837
+ /** What to do when the current light has no reference of its own. See
24838
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24839
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24840
+ /**
24841
+ * The light whose checks are currently being SAT OUT under
24842
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24843
+ *
24844
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24845
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24846
+ * nothing captured in this light"* in the same calm voice as the coverage
24847
+ * line, because the alternative is a scene that silently stops answering
24848
+ * after sunset with nothing anywhere saying why. A skipped check must never
24849
+ * read as a broken one.
24850
+ */
24851
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24852
+ /** Named cause when `verdict === 'unknown'`. */
24853
+ unavailable: SceneUnavailableSchema.nullable(),
24854
+ /** Conditions that have at least one comparable reference — the coverage line
24855
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24856
+ coveredConditions: array(SceneConditionSchema)
24031
24857
  });
24032
24858
  var SceneMonitorStatusSchema = object({
24033
24859
  monitors: array(SceneMonitorSchema),
@@ -24060,7 +24886,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24060
24886
  "both"
24061
24887
  ]).optional(),
24062
24888
  checkIntervalSec: number().optional(),
24063
- check: SceneCheckSchema.optional()
24889
+ check: SceneCheckSchema.optional(),
24890
+ emit: _enum(["latched", "live"]).optional(),
24891
+ quietSeconds: number().int().min(0).max(3600).optional(),
24892
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24893
+ anchorThreshold: number().min(0).max(1).optional(),
24894
+ autoRestore: boolean().optional(),
24895
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24896
+ /** `null` clears the vision-model adjudicator. */
24897
+ confirm: SceneConfirmSchema.nullable().optional()
24064
24898
  })
24065
24899
  }), _void(), {
24066
24900
  kind: "mutation",
@@ -24097,6 +24931,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24097
24931
  }), _void(), {
24098
24932
  kind: "mutation",
24099
24933
  auth: "admin"
24934
+ }), method(object({
24935
+ deviceId: number(),
24936
+ monitorId: string(),
24937
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24938
+ recapture: boolean().optional()
24939
+ }), _void(), {
24940
+ kind: "mutation",
24941
+ auth: "admin"
24100
24942
  });
24101
24943
  /**
24102
24944
  * Per-stage gating mode applied to the zones a rule references.
@@ -24250,6 +25092,16 @@ var CamStreamDescriptorSchema = object({
24250
25092
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24251
25093
  metadata: record(string(), unknown()).optional()
24252
25094
  });
25095
+ object({
25096
+ /** The descriptors as last built from a real camera response. Never a guess:
25097
+ * a failed or refused build writes NOTHING, so a restored catalog is always
25098
+ * one the camera itself once produced. */
25099
+ descriptors: array(CamStreamDescriptorSchema),
25100
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
25101
+ * path decide whether the camera's own awake window is worth spending on a
25102
+ * re-read. */
25103
+ lastFetchedAt: number()
25104
+ });
24253
25105
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24254
25106
  /** One of the camera's stream profiles. */
24255
25107
  var StreamProfileSchema = _enum([
@@ -24405,12 +25257,64 @@ var NetworkAddressSchema = object({
24405
25257
  family: string(),
24406
25258
  internal: boolean()
24407
25259
  });
25260
+ /**
25261
+ * Provenance of the site coordinates, and the whole reason this is not just two
25262
+ * numbers.
25263
+ *
25264
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25265
+ * nothing overwrites it.
25266
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25267
+ * default that is right to a few kilometres beats the coarse UTC clock split
25268
+ * the sun-times consumers otherwise fall back to.
25269
+ *
25270
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25271
+ * own input will eventually trust the guess.
25272
+ */
25273
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25274
+ /**
25275
+ * The read shape: the location plus the honest state of the one-shot derivation.
25276
+ *
25277
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25278
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25279
+ * failed; the hub will NOT try again on its own — the fallback is declared
25280
+ * (consumers degrade to their own last resort) and the operator either types the
25281
+ * coordinates or presses detect.
25282
+ */
25283
+ var SiteLocationStatusSchema = object({
25284
+ location: object({
25285
+ /** WGS84 decimal degrees. */
25286
+ latitude: number().min(-90).max(90),
25287
+ longitude: number().min(-180).max(180),
25288
+ source: SiteLocationSourceSchema,
25289
+ /** Epoch ms the value was last written. */
25290
+ updatedAt: number(),
25291
+ /**
25292
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25293
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25294
+ */
25295
+ label: string().optional()
25296
+ }).nullable(),
25297
+ derivationAttemptedAt: number().nullable(),
25298
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25299
+ derivationError: string().nullable()
25300
+ });
25301
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25302
+ var SetSiteLocationInputSchema = object({
25303
+ latitude: number().min(-90).max(90),
25304
+ longitude: number().min(-180).max(180)
25305
+ }).nullable();
24408
25306
  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(), {
24409
25307
  kind: "mutation",
24410
25308
  auth: "admin"
24411
25309
  }), method(_void(), _void(), {
24412
25310
  kind: "mutation",
24413
25311
  auth: "admin"
25312
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25313
+ kind: "mutation",
25314
+ auth: "admin"
25315
+ }), method(_void(), SiteLocationStatusSchema, {
25316
+ kind: "mutation",
25317
+ auth: "admin"
24414
25318
  });
24415
25319
  object({
24416
25320
  /** True when the device's tamper switch / case-open contact is
@@ -27140,6 +28044,12 @@ Object.freeze({
27140
28044
  addonId: null,
27141
28045
  access: "create"
27142
28046
  },
28047
+ "llm.cancel": {
28048
+ capName: "llm",
28049
+ capScope: "system",
28050
+ addonId: null,
28051
+ access: "create"
28052
+ },
27143
28053
  "llm.deleteModel": {
27144
28054
  capName: "llm",
27145
28055
  capScope: "system",
@@ -27224,6 +28134,12 @@ Object.freeze({
27224
28134
  addonId: null,
27225
28135
  access: "view"
27226
28136
  },
28137
+ "llm.resolveModelRef": {
28138
+ capName: "llm",
28139
+ capScope: "system",
28140
+ addonId: null,
28141
+ access: "create"
28142
+ },
27227
28143
  "llm.setDefault": {
27228
28144
  capName: "llm",
27229
28145
  capScope: "system",
@@ -29390,6 +30306,12 @@ Object.freeze({
29390
30306
  addonId: null,
29391
30307
  access: "create"
29392
30308
  },
30309
+ "sceneMonitor.resetScene": {
30310
+ capName: "scene-monitor",
30311
+ capScope: "device",
30312
+ addonId: null,
30313
+ access: "delete"
30314
+ },
29393
30315
  "sceneMonitor.updateScene": {
29394
30316
  capName: "scene-monitor",
29395
30317
  capScope: "device",
@@ -30068,6 +30990,12 @@ Object.freeze({
30068
30990
  addonId: null,
30069
30991
  access: "create"
30070
30992
  },
30993
+ "system.detectSiteLocation": {
30994
+ capName: "system",
30995
+ capScope: "system",
30996
+ addonId: null,
30997
+ access: "create"
30998
+ },
30071
30999
  "system.featureFlags": {
30072
31000
  capName: "system",
30073
31001
  capScope: "system",
@@ -30086,6 +31014,12 @@ Object.freeze({
30086
31014
  addonId: null,
30087
31015
  access: "view"
30088
31016
  },
31017
+ "system.getSiteLocation": {
31018
+ capName: "system",
31019
+ capScope: "system",
31020
+ addonId: null,
31021
+ access: "view"
31022
+ },
30089
31023
  "system.health": {
30090
31024
  capName: "system",
30091
31025
  capScope: "system",
@@ -30110,6 +31044,12 @@ Object.freeze({
30110
31044
  addonId: null,
30111
31045
  access: "create"
30112
31046
  },
31047
+ "system.setSiteLocation": {
31048
+ capName: "system",
31049
+ capScope: "system",
31050
+ addonId: null,
31051
+ access: "create"
31052
+ },
30113
31053
  "terminalSession.adoptLegacyMonitor": {
30114
31054
  capName: "terminal-session",
30115
31055
  capScope: "system",
@@ -30681,6 +31621,1704 @@ Object.freeze({
30681
31621
  access: "create"
30682
31622
  }
30683
31623
  });
31624
+ Object.freeze({
31625
+ "accessories.setChildHidden": [{
31626
+ name: "childDeviceId",
31627
+ form: "single",
31628
+ optional: false
31629
+ }, {
31630
+ name: "deviceId",
31631
+ form: "single",
31632
+ optional: false
31633
+ }],
31634
+ "addonSettings.getDeviceSettings": [{
31635
+ name: "deviceId",
31636
+ form: "single",
31637
+ optional: false
31638
+ }],
31639
+ "addonSettings.updateDeviceSettings": [{
31640
+ name: "deviceId",
31641
+ form: "single",
31642
+ optional: false
31643
+ }],
31644
+ "alarmPanel.arm": [{
31645
+ name: "deviceId",
31646
+ form: "single",
31647
+ optional: false
31648
+ }],
31649
+ "alarmPanel.disarm": [{
31650
+ name: "deviceId",
31651
+ form: "single",
31652
+ optional: false
31653
+ }],
31654
+ "alarmPanel.trigger": [{
31655
+ name: "deviceId",
31656
+ form: "single",
31657
+ optional: false
31658
+ }],
31659
+ "audioAnalysis.resolveDeviceSettings": [{
31660
+ name: "deviceId",
31661
+ form: "single",
31662
+ optional: false
31663
+ }],
31664
+ "audioAnalyzer.classify": [{
31665
+ name: "deviceId",
31666
+ form: "single",
31667
+ optional: true
31668
+ }],
31669
+ "audioMetrics.getCurrentSnapshot": [{
31670
+ name: "deviceId",
31671
+ form: "single",
31672
+ optional: false
31673
+ }],
31674
+ "audioMetrics.getHistory": [{
31675
+ name: "deviceId",
31676
+ form: "single",
31677
+ optional: false
31678
+ }],
31679
+ "automationControl.disable": [{
31680
+ name: "deviceId",
31681
+ form: "single",
31682
+ optional: false
31683
+ }],
31684
+ "automationControl.enable": [{
31685
+ name: "deviceId",
31686
+ form: "single",
31687
+ optional: false
31688
+ }],
31689
+ "automationControl.trigger": [{
31690
+ name: "deviceId",
31691
+ form: "single",
31692
+ optional: false
31693
+ }],
31694
+ "battery.wakeForStream": [{
31695
+ name: "deviceId",
31696
+ form: "single",
31697
+ optional: false
31698
+ }],
31699
+ "brightness.setBrightness": [{
31700
+ name: "deviceId",
31701
+ form: "single",
31702
+ optional: false
31703
+ }],
31704
+ "button.press": [{
31705
+ name: "deviceId",
31706
+ form: "single",
31707
+ optional: false
31708
+ }],
31709
+ "cameraCredentials.getCredentials": [{
31710
+ name: "deviceId",
31711
+ form: "single",
31712
+ optional: false
31713
+ }],
31714
+ "cameraStreams.getBrokerStreams": [{
31715
+ name: "deviceId",
31716
+ form: "single",
31717
+ optional: false
31718
+ }],
31719
+ "cameraStreams.getCameraStreams": [{
31720
+ name: "deviceId",
31721
+ form: "single",
31722
+ optional: false
31723
+ }],
31724
+ "cameraStreams.getProfileRtspEntries": [{
31725
+ name: "deviceId",
31726
+ form: "single",
31727
+ optional: false
31728
+ }],
31729
+ "cameraStreams.getRtspEntries": [{
31730
+ name: "deviceId",
31731
+ form: "single",
31732
+ optional: false
31733
+ }],
31734
+ "cameraStreams.pickStream": [{
31735
+ name: "deviceId",
31736
+ form: "single",
31737
+ optional: false
31738
+ }],
31739
+ "climateControl.setFanMode": [{
31740
+ name: "deviceId",
31741
+ form: "single",
31742
+ optional: false
31743
+ }],
31744
+ "climateControl.setMode": [{
31745
+ name: "deviceId",
31746
+ form: "single",
31747
+ optional: false
31748
+ }],
31749
+ "climateControl.setPreset": [{
31750
+ name: "deviceId",
31751
+ form: "single",
31752
+ optional: false
31753
+ }],
31754
+ "climateControl.setSwingHorizontal": [{
31755
+ name: "deviceId",
31756
+ form: "single",
31757
+ optional: false
31758
+ }],
31759
+ "climateControl.setSwingVertical": [{
31760
+ name: "deviceId",
31761
+ form: "single",
31762
+ optional: false
31763
+ }],
31764
+ "climateControl.setTarget": [{
31765
+ name: "deviceId",
31766
+ form: "single",
31767
+ optional: false
31768
+ }],
31769
+ "climateControl.setTargetHumidity": [{
31770
+ name: "deviceId",
31771
+ form: "single",
31772
+ optional: false
31773
+ }],
31774
+ "climateControl.setTargetRange": [{
31775
+ name: "deviceId",
31776
+ form: "single",
31777
+ optional: false
31778
+ }],
31779
+ "color.setColor": [{
31780
+ name: "deviceId",
31781
+ form: "single",
31782
+ optional: false
31783
+ }],
31784
+ "consumables.reset": [{
31785
+ name: "deviceId",
31786
+ form: "single",
31787
+ optional: false
31788
+ }],
31789
+ "control.setValue": [{
31790
+ name: "deviceId",
31791
+ form: "single",
31792
+ optional: false
31793
+ }],
31794
+ "cover.close": [{
31795
+ name: "deviceId",
31796
+ form: "single",
31797
+ optional: false
31798
+ }],
31799
+ "cover.open": [{
31800
+ name: "deviceId",
31801
+ form: "single",
31802
+ optional: false
31803
+ }],
31804
+ "cover.setPosition": [{
31805
+ name: "deviceId",
31806
+ form: "single",
31807
+ optional: false
31808
+ }],
31809
+ "cover.setTiltPosition": [{
31810
+ name: "deviceId",
31811
+ form: "single",
31812
+ optional: false
31813
+ }],
31814
+ "cover.stop": [{
31815
+ name: "deviceId",
31816
+ form: "single",
31817
+ optional: false
31818
+ }],
31819
+ "dayNight.getOptions": [{
31820
+ name: "deviceId",
31821
+ form: "single",
31822
+ optional: false
31823
+ }],
31824
+ "dayNight.setSettings": [{
31825
+ name: "deviceId",
31826
+ form: "single",
31827
+ optional: false
31828
+ }],
31829
+ "decoder.createSession": [{
31830
+ name: "deviceId",
31831
+ form: "single",
31832
+ optional: true
31833
+ }],
31834
+ "deviceAdoption.release": [{
31835
+ name: "camDeviceId",
31836
+ form: "single",
31837
+ optional: false
31838
+ }],
31839
+ "deviceAdoption.resync": [{
31840
+ name: "camDeviceId",
31841
+ form: "single",
31842
+ optional: false
31843
+ }],
31844
+ "deviceDiscovery.adoptDevice": [{
31845
+ name: "deviceId",
31846
+ form: "single",
31847
+ optional: false
31848
+ }],
31849
+ "deviceDiscovery.listDiscovered": [{
31850
+ name: "deviceId",
31851
+ form: "single",
31852
+ optional: false
31853
+ }],
31854
+ "deviceDiscovery.refreshDiscovery": [{
31855
+ name: "deviceId",
31856
+ form: "single",
31857
+ optional: false
31858
+ }],
31859
+ "deviceDiscovery.releaseDevice": [{
31860
+ name: "childDeviceId",
31861
+ form: "single",
31862
+ optional: false
31863
+ }, {
31864
+ name: "deviceId",
31865
+ form: "single",
31866
+ optional: false
31867
+ }],
31868
+ "deviceManager.adoptionRelease": [{
31869
+ name: "camDeviceId",
31870
+ form: "single",
31871
+ optional: false
31872
+ }],
31873
+ "deviceManager.adoptionResync": [{
31874
+ name: "camDeviceId",
31875
+ form: "single",
31876
+ optional: false
31877
+ }],
31878
+ "deviceManager.applyInitialMeta": [{
31879
+ name: "deviceId",
31880
+ form: "single",
31881
+ optional: false
31882
+ }, {
31883
+ name: "linkDeviceId",
31884
+ form: "single",
31885
+ optional: true
31886
+ }],
31887
+ "deviceManager.disable": [{
31888
+ name: "deviceId",
31889
+ form: "single",
31890
+ optional: false
31891
+ }],
31892
+ "deviceManager.enable": [{
31893
+ name: "deviceId",
31894
+ form: "single",
31895
+ optional: false
31896
+ }],
31897
+ "deviceManager.getBindings": [{
31898
+ name: "deviceId",
31899
+ form: "single",
31900
+ optional: false
31901
+ }],
31902
+ "deviceManager.getChildren": [{
31903
+ name: "parentDeviceId",
31904
+ form: "single",
31905
+ optional: false
31906
+ }],
31907
+ "deviceManager.getConfigSchema": [{
31908
+ name: "deviceId",
31909
+ form: "single",
31910
+ optional: false
31911
+ }],
31912
+ "deviceManager.getDevice": [{
31913
+ name: "deviceId",
31914
+ form: "single",
31915
+ optional: false
31916
+ }],
31917
+ "deviceManager.getDeviceAggregate": [{
31918
+ name: "deviceId",
31919
+ form: "single",
31920
+ optional: false
31921
+ }],
31922
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31923
+ name: "deviceId",
31924
+ form: "single",
31925
+ optional: false
31926
+ }],
31927
+ "deviceManager.getDeviceSettingsAggregate": [{
31928
+ name: "deviceId",
31929
+ form: "single",
31930
+ optional: false
31931
+ }],
31932
+ "deviceManager.getDeviceStatusAggregate": [{
31933
+ name: "deviceId",
31934
+ form: "single",
31935
+ optional: false
31936
+ }],
31937
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31938
+ name: "deviceIds",
31939
+ form: "array",
31940
+ optional: false
31941
+ }],
31942
+ "deviceManager.getLinkedDevices": [{
31943
+ name: "deviceId",
31944
+ form: "single",
31945
+ optional: false
31946
+ }],
31947
+ "deviceManager.getSettingsSchema": [{
31948
+ name: "deviceId",
31949
+ form: "single",
31950
+ optional: false
31951
+ }],
31952
+ "deviceManager.getStreamProfileMap": [{
31953
+ name: "deviceId",
31954
+ form: "single",
31955
+ optional: false
31956
+ }],
31957
+ "deviceManager.getStreamSources": [{
31958
+ name: "deviceId",
31959
+ form: "single",
31960
+ optional: false
31961
+ }],
31962
+ "deviceManager.getWireableFields": [{
31963
+ name: "deviceId",
31964
+ form: "single",
31965
+ optional: false
31966
+ }],
31967
+ "deviceManager.loadConfig": [{
31968
+ name: "deviceId",
31969
+ form: "single",
31970
+ optional: false
31971
+ }],
31972
+ "deviceManager.loadMeta": [{
31973
+ name: "deviceId",
31974
+ form: "single",
31975
+ optional: false
31976
+ }],
31977
+ "deviceManager.loadRuntimeState": [{
31978
+ name: "deviceId",
31979
+ form: "single",
31980
+ optional: false
31981
+ }],
31982
+ "deviceManager.persistConfig": [{
31983
+ name: "deviceId",
31984
+ form: "single",
31985
+ optional: false
31986
+ }],
31987
+ "deviceManager.probeStreams": [{
31988
+ name: "deviceId",
31989
+ form: "single",
31990
+ optional: false
31991
+ }],
31992
+ "deviceManager.registerDevice": [{
31993
+ name: "parentDeviceId",
31994
+ form: "single",
31995
+ optional: true
31996
+ }],
31997
+ "deviceManager.remove": [{
31998
+ name: "deviceId",
31999
+ form: "single",
32000
+ optional: false
32001
+ }],
32002
+ "deviceManager.removeDevice": [{
32003
+ name: "deviceId",
32004
+ form: "single",
32005
+ optional: false
32006
+ }],
32007
+ "deviceManager.runDeviceAction": [{
32008
+ name: "deviceId",
32009
+ form: "single",
32010
+ optional: false
32011
+ }],
32012
+ "deviceManager.setChildLayout": [{
32013
+ name: "deviceId",
32014
+ form: "single",
32015
+ optional: false
32016
+ }],
32017
+ "deviceManager.setDisabled": [{
32018
+ name: "deviceId",
32019
+ form: "single",
32020
+ optional: false
32021
+ }],
32022
+ "deviceManager.setDisplay": [{
32023
+ name: "deviceId",
32024
+ form: "single",
32025
+ optional: false
32026
+ }],
32027
+ "deviceManager.setIntegrationId": [{
32028
+ name: "deviceId",
32029
+ form: "single",
32030
+ optional: false
32031
+ }],
32032
+ "deviceManager.setLinkDeviceId": [{
32033
+ name: "deviceId",
32034
+ form: "single",
32035
+ optional: false
32036
+ }, {
32037
+ name: "linkDeviceId",
32038
+ form: "single",
32039
+ optional: true
32040
+ }],
32041
+ "deviceManager.setLocation": [{
32042
+ name: "deviceId",
32043
+ form: "single",
32044
+ optional: false
32045
+ }],
32046
+ "deviceManager.setMetadata": [{
32047
+ name: "deviceId",
32048
+ form: "single",
32049
+ optional: false
32050
+ }],
32051
+ "deviceManager.setName": [{
32052
+ name: "deviceId",
32053
+ form: "single",
32054
+ optional: false
32055
+ }],
32056
+ "deviceManager.setPrimaryChildEntityId": [{
32057
+ name: "deviceId",
32058
+ form: "single",
32059
+ optional: false
32060
+ }],
32061
+ "deviceManager.setRole": [{
32062
+ name: "deviceId",
32063
+ form: "single",
32064
+ optional: false
32065
+ }],
32066
+ "deviceManager.setStreamProfileMap": [{
32067
+ name: "deviceId",
32068
+ form: "single",
32069
+ optional: false
32070
+ }],
32071
+ "deviceManager.setType": [{
32072
+ name: "deviceId",
32073
+ form: "single",
32074
+ optional: false
32075
+ }],
32076
+ "deviceManager.setWrapperActive": [{
32077
+ name: "deviceId",
32078
+ form: "single",
32079
+ optional: false
32080
+ }],
32081
+ "deviceManager.testField": [{
32082
+ name: "deviceId",
32083
+ form: "single",
32084
+ optional: false
32085
+ }],
32086
+ "deviceManager.updateConfig": [{
32087
+ name: "deviceId",
32088
+ form: "single",
32089
+ optional: false
32090
+ }],
32091
+ "deviceManager.updateDeviceField": [{
32092
+ name: "deviceId",
32093
+ form: "single",
32094
+ optional: false
32095
+ }],
32096
+ "deviceManager.updateDeviceFieldsBatch": [{
32097
+ name: "deviceId",
32098
+ form: "single",
32099
+ optional: false
32100
+ }],
32101
+ "deviceOps.getConfigEntries": [{
32102
+ name: "deviceId",
32103
+ form: "single",
32104
+ optional: false
32105
+ }],
32106
+ "deviceOps.getRawState": [{
32107
+ name: "deviceId",
32108
+ form: "single",
32109
+ optional: false
32110
+ }],
32111
+ "deviceOps.getSettingsSchema": [{
32112
+ name: "deviceId",
32113
+ form: "single",
32114
+ optional: false
32115
+ }],
32116
+ "deviceOps.getStreamSources": [{
32117
+ name: "deviceId",
32118
+ form: "single",
32119
+ optional: false
32120
+ }],
32121
+ "deviceOps.removeDevice": [{
32122
+ name: "deviceId",
32123
+ form: "single",
32124
+ optional: false
32125
+ }],
32126
+ "deviceOps.runAction": [{
32127
+ name: "deviceId",
32128
+ form: "single",
32129
+ optional: false
32130
+ }],
32131
+ "deviceOps.setConfig": [{
32132
+ name: "deviceId",
32133
+ form: "single",
32134
+ optional: false
32135
+ }],
32136
+ "deviceState.getCapSlice": [{
32137
+ name: "deviceId",
32138
+ form: "single",
32139
+ optional: false
32140
+ }],
32141
+ "deviceState.getSnapshot": [{
32142
+ name: "deviceId",
32143
+ form: "single",
32144
+ optional: false
32145
+ }],
32146
+ "deviceState.setCapSlice": [{
32147
+ name: "deviceId",
32148
+ form: "single",
32149
+ optional: false
32150
+ }],
32151
+ "events.getEventClipUrl": [{
32152
+ name: "deviceId",
32153
+ form: "single",
32154
+ optional: false
32155
+ }],
32156
+ "events.getEvents": [{
32157
+ name: "deviceId",
32158
+ form: "single",
32159
+ optional: false
32160
+ }],
32161
+ "events.getEventThumbnail": [{
32162
+ name: "deviceId",
32163
+ form: "single",
32164
+ optional: false
32165
+ }],
32166
+ "faceGallery.getFaceByTrack": [{
32167
+ name: "deviceId",
32168
+ form: "single",
32169
+ optional: false
32170
+ }],
32171
+ "faceGallery.listRecentFaces": [{
32172
+ name: "deviceId",
32173
+ form: "single",
32174
+ optional: true
32175
+ }],
32176
+ "fanControl.setDirection": [{
32177
+ name: "deviceId",
32178
+ form: "single",
32179
+ optional: false
32180
+ }],
32181
+ "fanControl.setOscillating": [{
32182
+ name: "deviceId",
32183
+ form: "single",
32184
+ optional: false
32185
+ }],
32186
+ "fanControl.setPercentage": [{
32187
+ name: "deviceId",
32188
+ form: "single",
32189
+ optional: false
32190
+ }],
32191
+ "fanControl.setPreset": [{
32192
+ name: "deviceId",
32193
+ form: "single",
32194
+ optional: false
32195
+ }],
32196
+ "humidifier.setMode": [{
32197
+ name: "deviceId",
32198
+ form: "single",
32199
+ optional: false
32200
+ }],
32201
+ "humidifier.setOn": [{
32202
+ name: "deviceId",
32203
+ form: "single",
32204
+ optional: false
32205
+ }],
32206
+ "humidifier.setTargetHumidity": [{
32207
+ name: "deviceId",
32208
+ form: "single",
32209
+ optional: false
32210
+ }],
32211
+ "imageSettings.getOptions": [{
32212
+ name: "deviceId",
32213
+ form: "single",
32214
+ optional: false
32215
+ }],
32216
+ "imageSettings.setSettings": [{
32217
+ name: "deviceId",
32218
+ form: "single",
32219
+ optional: false
32220
+ }],
32221
+ "intercom.endTalkSession": [{
32222
+ name: "deviceId",
32223
+ form: "single",
32224
+ optional: false
32225
+ }],
32226
+ "intercom.handleAnswer": [{
32227
+ name: "deviceId",
32228
+ form: "single",
32229
+ optional: false
32230
+ }],
32231
+ "intercom.pushTalkAudio": [{
32232
+ name: "deviceId",
32233
+ form: "single",
32234
+ optional: false
32235
+ }],
32236
+ "intercom.startSession": [{
32237
+ name: "deviceId",
32238
+ form: "single",
32239
+ optional: false
32240
+ }],
32241
+ "intercom.startTalkSession": [{
32242
+ name: "deviceId",
32243
+ form: "single",
32244
+ optional: false
32245
+ }],
32246
+ "intercom.stopSession": [{
32247
+ name: "deviceId",
32248
+ form: "single",
32249
+ optional: false
32250
+ }],
32251
+ "lawnMowerControl.dock": [{
32252
+ name: "deviceId",
32253
+ form: "single",
32254
+ optional: false
32255
+ }],
32256
+ "lawnMowerControl.pause": [{
32257
+ name: "deviceId",
32258
+ form: "single",
32259
+ optional: false
32260
+ }],
32261
+ "lawnMowerControl.startMowing": [{
32262
+ name: "deviceId",
32263
+ form: "single",
32264
+ optional: false
32265
+ }],
32266
+ "lockControl.lock": [{
32267
+ name: "deviceId",
32268
+ form: "single",
32269
+ optional: false
32270
+ }],
32271
+ "lockControl.open": [{
32272
+ name: "deviceId",
32273
+ form: "single",
32274
+ optional: false
32275
+ }],
32276
+ "lockControl.unlock": [{
32277
+ name: "deviceId",
32278
+ form: "single",
32279
+ optional: false
32280
+ }],
32281
+ "mediaPlayer.next": [{
32282
+ name: "deviceId",
32283
+ form: "single",
32284
+ optional: false
32285
+ }],
32286
+ "mediaPlayer.pause": [{
32287
+ name: "deviceId",
32288
+ form: "single",
32289
+ optional: false
32290
+ }],
32291
+ "mediaPlayer.play": [{
32292
+ name: "deviceId",
32293
+ form: "single",
32294
+ optional: false
32295
+ }],
32296
+ "mediaPlayer.playMedia": [{
32297
+ name: "deviceId",
32298
+ form: "single",
32299
+ optional: false
32300
+ }],
32301
+ "mediaPlayer.previous": [{
32302
+ name: "deviceId",
32303
+ form: "single",
32304
+ optional: false
32305
+ }],
32306
+ "mediaPlayer.seek": [{
32307
+ name: "deviceId",
32308
+ form: "single",
32309
+ optional: false
32310
+ }],
32311
+ "mediaPlayer.selectSource": [{
32312
+ name: "deviceId",
32313
+ form: "single",
32314
+ optional: false
32315
+ }],
32316
+ "mediaPlayer.setMute": [{
32317
+ name: "deviceId",
32318
+ form: "single",
32319
+ optional: false
32320
+ }],
32321
+ "mediaPlayer.setRepeat": [{
32322
+ name: "deviceId",
32323
+ form: "single",
32324
+ optional: false
32325
+ }],
32326
+ "mediaPlayer.setShuffle": [{
32327
+ name: "deviceId",
32328
+ form: "single",
32329
+ optional: false
32330
+ }],
32331
+ "mediaPlayer.setVolume": [{
32332
+ name: "deviceId",
32333
+ form: "single",
32334
+ optional: false
32335
+ }],
32336
+ "mediaPlayer.stop": [{
32337
+ name: "deviceId",
32338
+ form: "single",
32339
+ optional: false
32340
+ }],
32341
+ "motion.isDetected": [{
32342
+ name: "deviceId",
32343
+ form: "single",
32344
+ optional: false
32345
+ }],
32346
+ "motionDetection.analyze": [{
32347
+ name: "deviceId",
32348
+ form: "single",
32349
+ optional: false
32350
+ }],
32351
+ "motionDetection.removeCamera": [{
32352
+ name: "deviceId",
32353
+ form: "single",
32354
+ optional: false
32355
+ }],
32356
+ "motionTrigger.setMotionTrigger": [{
32357
+ name: "deviceId",
32358
+ form: "single",
32359
+ optional: false
32360
+ }],
32361
+ "motionZones.getOptions": [{
32362
+ name: "deviceId",
32363
+ form: "single",
32364
+ optional: false
32365
+ }],
32366
+ "motionZones.setZone": [{
32367
+ name: "deviceId",
32368
+ form: "single",
32369
+ optional: false
32370
+ }],
32371
+ "nativeObjectDetection.setEnabled": [{
32372
+ name: "deviceId",
32373
+ form: "single",
32374
+ optional: false
32375
+ }],
32376
+ "networkQuality.getDeviceStats": [{
32377
+ name: "deviceId",
32378
+ form: "single",
32379
+ optional: false
32380
+ }],
32381
+ "networkQuality.reportClientStats": [{
32382
+ name: "deviceId",
32383
+ form: "single",
32384
+ optional: false
32385
+ }],
32386
+ "notificationRules.setDeviceMuted": [{
32387
+ name: "deviceId",
32388
+ form: "single",
32389
+ optional: false
32390
+ }],
32391
+ "notifier.cancel": [{
32392
+ name: "deviceId",
32393
+ form: "single",
32394
+ optional: false
32395
+ }],
32396
+ "notifier.send": [{
32397
+ name: "deviceId",
32398
+ form: "single",
32399
+ optional: false
32400
+ }],
32401
+ "osd.setOverlay": [{
32402
+ name: "deviceId",
32403
+ form: "single",
32404
+ optional: false
32405
+ }],
32406
+ "osdManager.clearSlotBinding": [{
32407
+ name: "deviceId",
32408
+ form: "single",
32409
+ optional: false
32410
+ }],
32411
+ "osdManager.copyDeviceConfiguration": [{
32412
+ name: "sourceDeviceId",
32413
+ form: "single",
32414
+ optional: false
32415
+ }, {
32416
+ name: "targetDeviceId",
32417
+ form: "single",
32418
+ optional: false
32419
+ }],
32420
+ "osdManager.getDeviceOsd": [{
32421
+ name: "deviceId",
32422
+ form: "single",
32423
+ optional: false
32424
+ }],
32425
+ "osdManager.getSourceCatalog": [{
32426
+ name: "deviceId",
32427
+ form: "single",
32428
+ optional: false
32429
+ }],
32430
+ "osdManager.previewSlot": [{
32431
+ name: "deviceId",
32432
+ form: "single",
32433
+ optional: false
32434
+ }],
32435
+ "osdManager.renderDevice": [{
32436
+ name: "deviceId",
32437
+ form: "single",
32438
+ optional: false
32439
+ }],
32440
+ "osdManager.setSlotBinding": [{
32441
+ name: "deviceId",
32442
+ form: "single",
32443
+ optional: false
32444
+ }],
32445
+ "petFeeder.callPet": [{
32446
+ name: "deviceId",
32447
+ form: "single",
32448
+ optional: false
32449
+ }],
32450
+ "petFeeder.cancelFeed": [{
32451
+ name: "deviceId",
32452
+ form: "single",
32453
+ optional: false
32454
+ }],
32455
+ "petFeeder.feed": [{
32456
+ name: "deviceId",
32457
+ form: "single",
32458
+ optional: false
32459
+ }],
32460
+ "petFeeder.markFoodReplenished": [{
32461
+ name: "deviceId",
32462
+ form: "single",
32463
+ optional: false
32464
+ }],
32465
+ "petFeeder.playSound": [{
32466
+ name: "deviceId",
32467
+ form: "single",
32468
+ optional: false
32469
+ }],
32470
+ "petFeeder.resetDesiccant": [{
32471
+ name: "deviceId",
32472
+ form: "single",
32473
+ optional: false
32474
+ }],
32475
+ "petFeeder.setChildLock": [{
32476
+ name: "deviceId",
32477
+ form: "single",
32478
+ optional: false
32479
+ }],
32480
+ "petFeeder.setFeedSound": [{
32481
+ name: "deviceId",
32482
+ form: "single",
32483
+ optional: false
32484
+ }],
32485
+ "petFeeder.setIndicatorLight": [{
32486
+ name: "deviceId",
32487
+ form: "single",
32488
+ optional: false
32489
+ }],
32490
+ "petFeeder.setVolume": [{
32491
+ name: "deviceId",
32492
+ form: "single",
32493
+ optional: false
32494
+ }],
32495
+ "pipelineAnalytics.clearTracks": [{
32496
+ name: "deviceId",
32497
+ form: "single",
32498
+ optional: false
32499
+ }],
32500
+ "pipelineAnalytics.completeRetrainTrack": [{
32501
+ name: "deviceId",
32502
+ form: "single",
32503
+ optional: false
32504
+ }],
32505
+ "pipelineAnalytics.deleteDeviceEvents": [{
32506
+ name: "deviceId",
32507
+ form: "single",
32508
+ optional: false
32509
+ }],
32510
+ "pipelineAnalytics.deleteTracks": [{
32511
+ name: "deviceId",
32512
+ form: "single",
32513
+ optional: false
32514
+ }],
32515
+ "pipelineAnalytics.deselectRetrainFrame": [{
32516
+ name: "deviceId",
32517
+ form: "single",
32518
+ optional: false
32519
+ }],
32520
+ "pipelineAnalytics.getActiveTracks": [{
32521
+ name: "deviceId",
32522
+ form: "single",
32523
+ optional: false
32524
+ }],
32525
+ "pipelineAnalytics.getAudioEvents": [{
32526
+ name: "deviceId",
32527
+ form: "single",
32528
+ optional: false
32529
+ }],
32530
+ "pipelineAnalytics.getEventDensity": [{
32531
+ name: "deviceId",
32532
+ form: "single",
32533
+ optional: false
32534
+ }],
32535
+ "pipelineAnalytics.getEventMedia": [{
32536
+ name: "deviceId",
32537
+ form: "single",
32538
+ optional: false
32539
+ }],
32540
+ "pipelineAnalytics.getKeyEvents": [{
32541
+ name: "deviceId",
32542
+ form: "single",
32543
+ optional: false
32544
+ }],
32545
+ "pipelineAnalytics.getMotionEvents": [{
32546
+ name: "deviceId",
32547
+ form: "single",
32548
+ optional: false
32549
+ }],
32550
+ "pipelineAnalytics.getObjectEvents": [{
32551
+ name: "deviceId",
32552
+ form: "single",
32553
+ optional: false
32554
+ }],
32555
+ "pipelineAnalytics.getRetrainExportUrl": [{
32556
+ name: "deviceIds",
32557
+ form: "array",
32558
+ optional: true
32559
+ }],
32560
+ "pipelineAnalytics.getSensorEvents": [{
32561
+ name: "deviceId",
32562
+ form: "single",
32563
+ optional: false
32564
+ }],
32565
+ "pipelineAnalytics.getTrack": [{
32566
+ name: "deviceId",
32567
+ form: "single",
32568
+ optional: false
32569
+ }],
32570
+ "pipelineAnalytics.getTrackMedia": [{
32571
+ name: "deviceId",
32572
+ form: "single",
32573
+ optional: false
32574
+ }],
32575
+ "pipelineAnalytics.getTrainingExportSummary": [{
32576
+ name: "deviceIds",
32577
+ form: "array",
32578
+ optional: true
32579
+ }],
32580
+ "pipelineAnalytics.getTrainingExportUrl": [{
32581
+ name: "deviceIds",
32582
+ form: "array",
32583
+ optional: true
32584
+ }],
32585
+ "pipelineAnalytics.listEventKinds": [{
32586
+ name: "deviceId",
32587
+ form: "single",
32588
+ optional: false
32589
+ }],
32590
+ "pipelineAnalytics.listEventKindsBatch": [{
32591
+ name: "deviceIds",
32592
+ form: "array",
32593
+ optional: false
32594
+ }],
32595
+ "pipelineAnalytics.listOpsLog": [{
32596
+ name: "deviceId",
32597
+ form: "single",
32598
+ optional: true
32599
+ }],
32600
+ "pipelineAnalytics.listRecentTracks": [{
32601
+ name: "deviceIds",
32602
+ form: "array",
32603
+ optional: false
32604
+ }],
32605
+ "pipelineAnalytics.listRetrainStaging": [{
32606
+ name: "deviceIds",
32607
+ form: "array",
32608
+ optional: true
32609
+ }],
32610
+ "pipelineAnalytics.listTrackMedia": [{
32611
+ name: "deviceId",
32612
+ form: "single",
32613
+ optional: false
32614
+ }],
32615
+ "pipelineAnalytics.listTracks": [{
32616
+ name: "deviceId",
32617
+ form: "single",
32618
+ optional: false
32619
+ }],
32620
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32621
+ name: "deviceId",
32622
+ form: "single",
32623
+ optional: false
32624
+ }],
32625
+ "pipelineAnalytics.pruneEventsBefore": [{
32626
+ name: "deviceId",
32627
+ form: "single",
32628
+ optional: false
32629
+ }],
32630
+ "pipelineAnalytics.pruneTracksBefore": [{
32631
+ name: "deviceId",
32632
+ form: "single",
32633
+ optional: false
32634
+ }],
32635
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32636
+ name: "deviceId",
32637
+ form: "single",
32638
+ optional: true
32639
+ }],
32640
+ "pipelineAnalytics.restageRetrainTrack": [{
32641
+ name: "deviceId",
32642
+ form: "single",
32643
+ optional: false
32644
+ }],
32645
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32646
+ name: "deviceId",
32647
+ form: "single",
32648
+ optional: false
32649
+ }],
32650
+ "pipelineAnalytics.searchObjectEvents": [{
32651
+ name: "deviceId",
32652
+ form: "single",
32653
+ optional: true
32654
+ }],
32655
+ "pipelineAnalytics.selectRetrainFrames": [{
32656
+ name: "deviceId",
32657
+ form: "single",
32658
+ optional: false
32659
+ }],
32660
+ "pipelineAnalytics.setTrackFlags": [{
32661
+ name: "deviceId",
32662
+ form: "single",
32663
+ optional: false
32664
+ }],
32665
+ "pipelineAnalytics.wipeAllAnalytics": [{
32666
+ name: "deviceId",
32667
+ form: "single",
32668
+ optional: false
32669
+ }],
32670
+ "pipelineExecutor.runPipeline": [{
32671
+ name: "deviceId",
32672
+ form: "single",
32673
+ optional: true
32674
+ }],
32675
+ "pipelineExecutor.runPipelineBatch": [{
32676
+ name: "deviceId",
32677
+ form: "single",
32678
+ optional: true
32679
+ }],
32680
+ "pipelineOrchestrator.assignAudio": [{
32681
+ name: "deviceId",
32682
+ form: "single",
32683
+ optional: false
32684
+ }],
32685
+ "pipelineOrchestrator.assignPipeline": [{
32686
+ name: "deviceId",
32687
+ form: "single",
32688
+ optional: false
32689
+ }],
32690
+ "pipelineOrchestrator.getAudioAssignment": [{
32691
+ name: "deviceId",
32692
+ form: "single",
32693
+ optional: false
32694
+ }],
32695
+ "pipelineOrchestrator.getCameraMetrics": [{
32696
+ name: "deviceId",
32697
+ form: "single",
32698
+ optional: false
32699
+ }],
32700
+ "pipelineOrchestrator.getCameraSettings": [{
32701
+ name: "deviceId",
32702
+ form: "single",
32703
+ optional: false
32704
+ }],
32705
+ "pipelineOrchestrator.getCameraStatus": [{
32706
+ name: "deviceId",
32707
+ form: "single",
32708
+ optional: false
32709
+ }],
32710
+ "pipelineOrchestrator.getCameraStatuses": [{
32711
+ name: "deviceIds",
32712
+ form: "array",
32713
+ optional: true
32714
+ }],
32715
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32716
+ name: "deviceId",
32717
+ form: "single",
32718
+ optional: false
32719
+ }],
32720
+ "pipelineOrchestrator.getCameraSwitches": [{
32721
+ name: "deviceId",
32722
+ form: "single",
32723
+ optional: false
32724
+ }],
32725
+ "pipelineOrchestrator.getPipelineAssignment": [{
32726
+ name: "deviceId",
32727
+ form: "single",
32728
+ optional: false
32729
+ }],
32730
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32731
+ name: "deviceId",
32732
+ form: "single",
32733
+ optional: false
32734
+ }],
32735
+ "pipelineOrchestrator.resolvePipeline": [{
32736
+ name: "deviceId",
32737
+ form: "single",
32738
+ optional: false
32739
+ }],
32740
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32741
+ name: "deviceId",
32742
+ form: "single",
32743
+ optional: false
32744
+ }],
32745
+ "pipelineOrchestrator.setCameraStepOverride": [{
32746
+ name: "deviceId",
32747
+ form: "single",
32748
+ optional: false
32749
+ }],
32750
+ "pipelineOrchestrator.setCameraStepToggle": [{
32751
+ name: "deviceId",
32752
+ form: "single",
32753
+ optional: false
32754
+ }],
32755
+ "pipelineOrchestrator.setCameraSwitch": [{
32756
+ name: "deviceId",
32757
+ form: "single",
32758
+ optional: false
32759
+ }],
32760
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32761
+ name: "deviceId",
32762
+ form: "single",
32763
+ optional: false
32764
+ }],
32765
+ "pipelineOrchestrator.unassignAudio": [{
32766
+ name: "deviceId",
32767
+ form: "single",
32768
+ optional: false
32769
+ }],
32770
+ "pipelineOrchestrator.unassignPipeline": [{
32771
+ name: "deviceId",
32772
+ form: "single",
32773
+ optional: false
32774
+ }],
32775
+ "pipelineRunner.attachCamera": [{
32776
+ name: "deviceId",
32777
+ form: "single",
32778
+ optional: false
32779
+ }],
32780
+ "pipelineRunner.detachCamera": [{
32781
+ name: "deviceId",
32782
+ form: "single",
32783
+ optional: false
32784
+ }],
32785
+ "pipelineRunner.getCameraMetrics": [{
32786
+ name: "deviceId",
32787
+ form: "single",
32788
+ optional: false
32789
+ }],
32790
+ "pipelineRunner.reportMotion": [{
32791
+ name: "deviceId",
32792
+ form: "single",
32793
+ optional: false
32794
+ }],
32795
+ "pipelineRunner.runDetailSubtree": [{
32796
+ name: "deviceId",
32797
+ form: "single",
32798
+ optional: false
32799
+ }],
32800
+ "pipelineRunner.runStatelessStep": [{
32801
+ name: "sourceDeviceId",
32802
+ form: "single",
32803
+ optional: false
32804
+ }],
32805
+ "plateGallery.getPlateByTrack": [{
32806
+ name: "deviceId",
32807
+ form: "single",
32808
+ optional: false
32809
+ }],
32810
+ "plateGallery.listPlates": [{
32811
+ name: "deviceId",
32812
+ form: "single",
32813
+ optional: true
32814
+ }],
32815
+ "privacyMask.getOptions": [{
32816
+ name: "deviceId",
32817
+ form: "single",
32818
+ optional: false
32819
+ }],
32820
+ "privacyMask.setAudioEnabled": [{
32821
+ name: "deviceId",
32822
+ form: "single",
32823
+ optional: false
32824
+ }],
32825
+ "privacyMask.setMask": [{
32826
+ name: "deviceId",
32827
+ form: "single",
32828
+ optional: false
32829
+ }],
32830
+ "ptz.continuousMove": [{
32831
+ name: "deviceId",
32832
+ form: "single",
32833
+ optional: false
32834
+ }],
32835
+ "ptz.deletePreset": [{
32836
+ name: "deviceId",
32837
+ form: "single",
32838
+ optional: false
32839
+ }],
32840
+ "ptz.getOptions": [{
32841
+ name: "deviceId",
32842
+ form: "single",
32843
+ optional: false
32844
+ }],
32845
+ "ptz.getPosition": [{
32846
+ name: "deviceId",
32847
+ form: "single",
32848
+ optional: false
32849
+ }],
32850
+ "ptz.getPresets": [{
32851
+ name: "deviceId",
32852
+ form: "single",
32853
+ optional: false
32854
+ }],
32855
+ "ptz.goHome": [{
32856
+ name: "deviceId",
32857
+ form: "single",
32858
+ optional: false
32859
+ }],
32860
+ "ptz.goToPreset": [{
32861
+ name: "deviceId",
32862
+ form: "single",
32863
+ optional: false
32864
+ }],
32865
+ "ptz.move": [{
32866
+ name: "deviceId",
32867
+ form: "single",
32868
+ optional: false
32869
+ }],
32870
+ "ptz.savePreset": [{
32871
+ name: "deviceId",
32872
+ form: "single",
32873
+ optional: false
32874
+ }],
32875
+ "ptz.setAutofocus": [{
32876
+ name: "deviceId",
32877
+ form: "single",
32878
+ optional: false
32879
+ }],
32880
+ "ptz.stop": [{
32881
+ name: "deviceId",
32882
+ form: "single",
32883
+ optional: false
32884
+ }],
32885
+ "ptzAutotrack.getSettings": [{
32886
+ name: "deviceId",
32887
+ form: "single",
32888
+ optional: false
32889
+ }],
32890
+ "ptzAutotrack.getStatus": [{
32891
+ name: "deviceId",
32892
+ form: "single",
32893
+ optional: false
32894
+ }],
32895
+ "ptzAutotrack.setEnabled": [{
32896
+ name: "deviceId",
32897
+ form: "single",
32898
+ optional: false
32899
+ }],
32900
+ "ptzAutotrack.setSettings": [{
32901
+ name: "deviceId",
32902
+ form: "single",
32903
+ optional: false
32904
+ }],
32905
+ "reboot.reboot": [{
32906
+ name: "deviceId",
32907
+ form: "single",
32908
+ optional: false
32909
+ }],
32910
+ "recording.deleteFootprint": [{
32911
+ name: "deviceId",
32912
+ form: "single",
32913
+ optional: false
32914
+ }],
32915
+ "recording.getAvailability": [{
32916
+ name: "deviceId",
32917
+ form: "single",
32918
+ optional: false
32919
+ }],
32920
+ "recording.getDaysWithRecordings": [{
32921
+ name: "deviceId",
32922
+ form: "single",
32923
+ optional: false
32924
+ }],
32925
+ "recording.getDeviceConfig": [{
32926
+ name: "deviceId",
32927
+ form: "single",
32928
+ optional: false
32929
+ }],
32930
+ "recording.getPlaybackManifest": [{
32931
+ name: "deviceId",
32932
+ form: "single",
32933
+ optional: false
32934
+ }],
32935
+ "recording.listOpsLog": [{
32936
+ name: "deviceId",
32937
+ form: "single",
32938
+ optional: true
32939
+ }],
32940
+ "recording.locateSegment": [{
32941
+ name: "deviceId",
32942
+ form: "single",
32943
+ optional: false
32944
+ }],
32945
+ "recording.pruneFootage": [{
32946
+ name: "deviceId",
32947
+ form: "single",
32948
+ optional: false
32949
+ }],
32950
+ "recording.readGopBytes": [{
32951
+ name: "deviceId",
32952
+ form: "single",
32953
+ optional: false
32954
+ }],
32955
+ "recording.readSegmentBytes": [{
32956
+ name: "deviceId",
32957
+ form: "single",
32958
+ optional: false
32959
+ }],
32960
+ "recording.relocateFootage": [{
32961
+ name: "deviceId",
32962
+ form: "single",
32963
+ optional: true
32964
+ }],
32965
+ "recording.renderClip": [{
32966
+ name: "deviceId",
32967
+ form: "single",
32968
+ optional: false
32969
+ }],
32970
+ "recording.renderGif": [{
32971
+ name: "deviceId",
32972
+ form: "single",
32973
+ optional: false
32974
+ }],
32975
+ "recording.rescanStorage": [{
32976
+ name: "deviceId",
32977
+ form: "single",
32978
+ optional: false
32979
+ }],
32980
+ "recording.setDeviceConfig": [{
32981
+ name: "deviceId",
32982
+ form: "single",
32983
+ optional: false
32984
+ }],
32985
+ "recording.startStorageMigrationMove": [{
32986
+ name: "deviceId",
32987
+ form: "single",
32988
+ optional: true
32989
+ }],
32990
+ "recordingExport.createExport": [{
32991
+ name: "deviceId",
32992
+ form: "single",
32993
+ optional: false
32994
+ }],
32995
+ "recordingExport.listExports": [{
32996
+ name: "deviceId",
32997
+ form: "single",
32998
+ optional: true
32999
+ }],
33000
+ "sceneMonitor.captureReference": [{
33001
+ name: "deviceId",
33002
+ form: "single",
33003
+ optional: false
33004
+ }],
33005
+ "sceneMonitor.createScene": [{
33006
+ name: "deviceId",
33007
+ form: "single",
33008
+ optional: false
33009
+ }],
33010
+ "sceneMonitor.deleteReference": [{
33011
+ name: "deviceId",
33012
+ form: "single",
33013
+ optional: false
33014
+ }],
33015
+ "sceneMonitor.deleteScene": [{
33016
+ name: "deviceId",
33017
+ form: "single",
33018
+ optional: false
33019
+ }],
33020
+ "sceneMonitor.listScenes": [{
33021
+ name: "deviceId",
33022
+ form: "single",
33023
+ optional: false
33024
+ }],
33025
+ "sceneMonitor.recheckNow": [{
33026
+ name: "deviceId",
33027
+ form: "single",
33028
+ optional: false
33029
+ }],
33030
+ "sceneMonitor.resetScene": [{
33031
+ name: "deviceId",
33032
+ form: "single",
33033
+ optional: false
33034
+ }],
33035
+ "sceneMonitor.updateScene": [{
33036
+ name: "deviceId",
33037
+ form: "single",
33038
+ optional: false
33039
+ }],
33040
+ "scriptRunner.run": [{
33041
+ name: "deviceId",
33042
+ form: "single",
33043
+ optional: false
33044
+ }],
33045
+ "scriptRunner.stop": [{
33046
+ name: "deviceId",
33047
+ form: "single",
33048
+ optional: false
33049
+ }],
33050
+ "snapshot.getSnapshot": [{
33051
+ name: "deviceId",
33052
+ form: "single",
33053
+ optional: false
33054
+ }],
33055
+ "snapshot.getSnapshotLinks": [{
33056
+ name: "targets",
33057
+ form: "object-array",
33058
+ optional: false,
33059
+ itemField: "deviceId"
33060
+ }],
33061
+ "snapshot.getSnapshotOverview": [{
33062
+ name: "deviceIds",
33063
+ form: "array",
33064
+ optional: false
33065
+ }],
33066
+ "snapshot.invalidateCache": [{
33067
+ name: "deviceId",
33068
+ form: "single",
33069
+ optional: false
33070
+ }],
33071
+ "streamBroker.acquireEgressTranscode": [{
33072
+ name: "deviceId",
33073
+ form: "single",
33074
+ optional: false
33075
+ }],
33076
+ "streamBroker.assignProfile": [{
33077
+ name: "deviceId",
33078
+ form: "single",
33079
+ optional: false
33080
+ }],
33081
+ "streamBroker.getDeviceAudioMute": [{
33082
+ name: "deviceId",
33083
+ form: "single",
33084
+ optional: false
33085
+ }],
33086
+ "streamBroker.getStreamWithCodec": [{
33087
+ name: "deviceId",
33088
+ form: "single",
33089
+ optional: false
33090
+ }],
33091
+ "streamBroker.produceEventMedia": [{
33092
+ name: "deviceId",
33093
+ form: "single",
33094
+ optional: false
33095
+ }],
33096
+ "streamBroker.publishCameraStream": [{
33097
+ name: "deviceId",
33098
+ form: "single",
33099
+ optional: false
33100
+ }],
33101
+ "streamBroker.renderPreBufferClip": [{
33102
+ name: "deviceId",
33103
+ form: "single",
33104
+ optional: false
33105
+ }],
33106
+ "streamBroker.restartProfile": [{
33107
+ name: "deviceId",
33108
+ form: "single",
33109
+ optional: false
33110
+ }],
33111
+ "streamBroker.retractCameraStream": [{
33112
+ name: "deviceId",
33113
+ form: "single",
33114
+ optional: false
33115
+ }],
33116
+ "streamBroker.setDeviceAudioMute": [{
33117
+ name: "deviceId",
33118
+ form: "single",
33119
+ optional: false
33120
+ }],
33121
+ "streamBroker.unassignProfile": [{
33122
+ name: "deviceId",
33123
+ form: "single",
33124
+ optional: false
33125
+ }],
33126
+ "streamCatalog.getCatalog": [{
33127
+ name: "deviceId",
33128
+ form: "single",
33129
+ optional: false
33130
+ }],
33131
+ "streamParams.getConfigSchema": [{
33132
+ name: "deviceId",
33133
+ form: "single",
33134
+ optional: false
33135
+ }],
33136
+ "streamParams.getOptions": [{
33137
+ name: "deviceId",
33138
+ form: "single",
33139
+ optional: false
33140
+ }],
33141
+ "streamParams.setProfile": [{
33142
+ name: "deviceId",
33143
+ form: "single",
33144
+ optional: false
33145
+ }],
33146
+ "switch.setState": [{
33147
+ name: "deviceId",
33148
+ form: "single",
33149
+ optional: false
33150
+ }],
33151
+ "vacuumControl.locate": [{
33152
+ name: "deviceId",
33153
+ form: "single",
33154
+ optional: false
33155
+ }],
33156
+ "vacuumControl.pause": [{
33157
+ name: "deviceId",
33158
+ form: "single",
33159
+ optional: false
33160
+ }],
33161
+ "vacuumControl.returnToBase": [{
33162
+ name: "deviceId",
33163
+ form: "single",
33164
+ optional: false
33165
+ }],
33166
+ "vacuumControl.setFanSpeed": [{
33167
+ name: "deviceId",
33168
+ form: "single",
33169
+ optional: false
33170
+ }],
33171
+ "vacuumControl.start": [{
33172
+ name: "deviceId",
33173
+ form: "single",
33174
+ optional: false
33175
+ }],
33176
+ "vacuumControl.stop": [{
33177
+ name: "deviceId",
33178
+ form: "single",
33179
+ optional: false
33180
+ }],
33181
+ "valve.close": [{
33182
+ name: "deviceId",
33183
+ form: "single",
33184
+ optional: false
33185
+ }],
33186
+ "valve.open": [{
33187
+ name: "deviceId",
33188
+ form: "single",
33189
+ optional: false
33190
+ }],
33191
+ "valve.setPosition": [{
33192
+ name: "deviceId",
33193
+ form: "single",
33194
+ optional: false
33195
+ }],
33196
+ "valve.stop": [{
33197
+ name: "deviceId",
33198
+ form: "single",
33199
+ optional: false
33200
+ }],
33201
+ "videoclips.getClipPlayback": [{
33202
+ name: "deviceId",
33203
+ form: "single",
33204
+ optional: false
33205
+ }],
33206
+ "videoclips.listClips": [{
33207
+ name: "deviceId",
33208
+ form: "single",
33209
+ optional: false
33210
+ }],
33211
+ "waterHeater.setAway": [{
33212
+ name: "deviceId",
33213
+ form: "single",
33214
+ optional: false
33215
+ }],
33216
+ "waterHeater.setOperationMode": [{
33217
+ name: "deviceId",
33218
+ form: "single",
33219
+ optional: false
33220
+ }],
33221
+ "waterHeater.setTargetTemp": [{
33222
+ name: "deviceId",
33223
+ form: "single",
33224
+ optional: false
33225
+ }],
33226
+ "webrtcSession.addIceCandidate": [{
33227
+ name: "deviceId",
33228
+ form: "single",
33229
+ optional: false
33230
+ }],
33231
+ "webrtcSession.closeSession": [{
33232
+ name: "deviceId",
33233
+ form: "single",
33234
+ optional: false
33235
+ }],
33236
+ "webrtcSession.createSession": [{
33237
+ name: "deviceId",
33238
+ form: "single",
33239
+ optional: false
33240
+ }],
33241
+ "webrtcSession.getIceCandidates": [{
33242
+ name: "deviceId",
33243
+ form: "single",
33244
+ optional: false
33245
+ }],
33246
+ "webrtcSession.getSessionState": [{
33247
+ name: "deviceId",
33248
+ form: "single",
33249
+ optional: false
33250
+ }],
33251
+ "webrtcSession.handleAnswer": [{
33252
+ name: "deviceId",
33253
+ form: "single",
33254
+ optional: false
33255
+ }],
33256
+ "webrtcSession.handleOffer": [{
33257
+ name: "deviceId",
33258
+ form: "single",
33259
+ optional: false
33260
+ }],
33261
+ "webrtcSession.hasAdaptiveBitrate": [{
33262
+ name: "deviceId",
33263
+ form: "single",
33264
+ optional: false
33265
+ }],
33266
+ "webrtcSession.listStreams": [{
33267
+ name: "deviceId",
33268
+ form: "single",
33269
+ optional: false
33270
+ }],
33271
+ "zoneAnalytics.getCameraHistory": [{
33272
+ name: "deviceId",
33273
+ form: "single",
33274
+ optional: false
33275
+ }],
33276
+ "zoneAnalytics.getCurrentSnapshot": [{
33277
+ name: "deviceId",
33278
+ form: "single",
33279
+ optional: false
33280
+ }],
33281
+ "zoneAnalytics.getUnzonedHistory": [{
33282
+ name: "deviceId",
33283
+ form: "single",
33284
+ optional: false
33285
+ }],
33286
+ "zoneAnalytics.getZoneHistory": [{
33287
+ name: "deviceId",
33288
+ form: "single",
33289
+ optional: false
33290
+ }],
33291
+ "zoneRules.listRules": [{
33292
+ name: "deviceId",
33293
+ form: "single",
33294
+ optional: false
33295
+ }],
33296
+ "zoneRules.setRules": [{
33297
+ name: "deviceId",
33298
+ form: "single",
33299
+ optional: false
33300
+ }],
33301
+ "zones.addZone": [{
33302
+ name: "deviceId",
33303
+ form: "single",
33304
+ optional: false
33305
+ }],
33306
+ "zones.listZones": [{
33307
+ name: "deviceId",
33308
+ form: "single",
33309
+ optional: false
33310
+ }],
33311
+ "zones.removeZone": [{
33312
+ name: "deviceId",
33313
+ form: "single",
33314
+ optional: false
33315
+ }],
33316
+ "zones.updateZone": [{
33317
+ name: "deviceId",
33318
+ form: "single",
33319
+ optional: false
33320
+ }]
33321
+ });
30684
33322
  Object.freeze({
30685
33323
  "broker": "broker",
30686
33324
  "device-export": "device-export",