@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
@@ -67,7 +67,7 @@ async function downloadFile(url, destPath, onProgress) {
67
67
  promisify(brotliCompress);
68
68
  promisify(gzip);
69
69
  //#endregion
70
- //#region ../types/dist/event-category-Cv9dO26A.mjs
70
+ //#region ../types/dist/event-category-Bxo5yJjt.mjs
71
71
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
72
72
  EventCategory["SystemBoot"] = "system.boot";
73
73
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -274,6 +274,33 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
274
274
  EventCategory["PipelineCameraAssigned"] = "pipeline.camera-assigned";
275
275
  EventCategory["PipelineCameraUnassigned"] = "pipeline.camera-unassigned";
276
276
  /**
277
+ * A node the orchestrator would otherwise place cameras on has NO usable
278
+ * inference device: the operator enabled one or more accelerators there and
279
+ * the live probe reports every one of them unavailable. Emitted once per
280
+ * TRANSITION into that state (never per dispatch), and the node is dropped
281
+ * from the placement candidate set for as long as it holds.
282
+ *
283
+ * This exists because the state was previously invisible: little-unraid
284
+ * absorbed 283k inference errors in a day while still being handed cameras,
285
+ * and nothing in the system said so.
286
+ *
287
+ * A node with no accelerators configured at all is NOT this — its devices
288
+ * are `disabled`, not `unavailable`, and the runner's default CPU pool
289
+ * serves it exactly as before.
290
+ */
291
+ EventCategory["PipelineNodeInferenceUnavailable"] = "pipeline.node-inference-unavailable";
292
+ /**
293
+ * A camera has an OPEN detection session and has produced no detection at
294
+ * all for longer than the blind threshold — the camera is being decoded and
295
+ * inferred and is returning nothing. Emitted once per transition into blind,
296
+ * per camera.
297
+ *
298
+ * The failure it reports: a 1h43 detection blackout on the entrance camera
299
+ * that nobody noticed, because "a camera that detects nothing" and "a quiet
300
+ * camera" produce byte-identical silence.
301
+ */
302
+ EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
303
+ /**
277
304
  * Per-camera pipeline config was mutated by the orchestrator
278
305
  * (3-level settings change via `setAgentAddonDefaults` /
279
306
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -3065,6 +3092,9 @@ function handlePipeResult(left, next, ctx) {
3065
3092
  fallback: left.fallback
3066
3093
  }, ctx);
3067
3094
  }
3095
+ var $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
3096
+ $ZodPipe.init(inst, def);
3097
+ });
3068
3098
  var $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
3069
3099
  $ZodType.init(inst, def);
3070
3100
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -5250,6 +5280,10 @@ function pipe(in_, out) {
5250
5280
  out
5251
5281
  });
5252
5282
  }
5283
+ var ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
5284
+ ZodPipe.init(inst, def);
5285
+ $ZodPreprocess.init(inst, def);
5286
+ });
5253
5287
  var ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5254
5288
  $ZodReadonly.init(inst, def);
5255
5289
  ZodType.init(inst, def);
@@ -5308,6 +5342,13 @@ function _instanceof(cls, params = {}) {
5308
5342
  };
5309
5343
  return inst;
5310
5344
  }
5345
+ function preprocess(fn, schema) {
5346
+ return new ZodPreprocess({
5347
+ type: "pipe",
5348
+ in: transform(fn),
5349
+ out: schema
5350
+ });
5351
+ }
5311
5352
  //#endregion
5312
5353
  //#region ../../node_modules/zod/v4/classic/compat.js
5313
5354
  /** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
@@ -10920,6 +10961,8 @@ var QueryFilterSchema = object({
10920
10961
  where: record(string(), unknown()).optional(),
10921
10962
  whereIn: record(string(), array(unknown())).optional(),
10922
10963
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10964
+ /** NULL-safe exclusion: matches rows whose field is NULL OR != the value. */
10965
+ whereNot: record(string(), unknown()).optional(),
10923
10966
  orderBy: object({
10924
10967
  field: string(),
10925
10968
  direction: _enum(["asc", "desc"])
@@ -10939,7 +10982,8 @@ var QueryFilterSchema = object({
10939
10982
  var MutationFilterSchema = object({
10940
10983
  where: record(string(), unknown()).optional(),
10941
10984
  whereIn: record(string(), array(unknown())).optional(),
10942
- whereBetween: record(string(), tuple([unknown(), unknown()])).optional()
10985
+ whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
10986
+ whereNot: record(string(), unknown()).optional()
10943
10987
  });
10944
10988
  /** A single stored record: `{ id, data }`. */
10945
10989
  var SettingsRecordSchema = object({
@@ -12296,6 +12340,17 @@ var LlmImageSchema = object({
12296
12340
  bytes: _instanceof(Uint8Array),
12297
12341
  mimeType: string()
12298
12342
  });
12343
+ /**
12344
+ * Retry policy. `enabled: false` is NOT the same as `maxAttempts: 1` in intent —
12345
+ * the flag is what a consumer table flips, the count is what the operator tunes.
12346
+ * A retry doubles the wall time of a call, so the two gates that run inside a
12347
+ * notification's budget keep it off (see `CONSUMER_RETRY_POLICY` in addon-ai).
12348
+ */
12349
+ var LlmRetryPolicySchema = object({
12350
+ enabled: boolean().default(false),
12351
+ /** Total attempts INCLUDING the first. 1 = no retry. */
12352
+ maxAttempts: number().int().min(1).max(5).default(1)
12353
+ });
12299
12354
  var LlmGenerateBaseInputSchema = object({
12300
12355
  /** Collection routing (the notification-output posture). */
12301
12356
  addonId: string().optional(),
@@ -12310,7 +12365,28 @@ var LlmGenerateBaseInputSchema = object({
12310
12365
  jsonSchema: record(string(), unknown()).optional(),
12311
12366
  /** Per-call override of the profile default. */
12312
12367
  maxTokens: number().int().positive().optional(),
12313
- temperature: number().optional()
12368
+ temperature: number().optional(),
12369
+ /** Per-call override of the profile default (nucleus sampling). */
12370
+ topP: number().min(0).max(1).optional(),
12371
+ /** Per-call override of the profile default (top-k sampling). */
12372
+ topK: number().int().positive().optional(),
12373
+ /** Per-call override of `profile.timeoutMs` — the total generation bound. */
12374
+ timeoutMs: number().int().positive().optional(),
12375
+ /** Per-call override; beats both the consumer table and the profile. */
12376
+ retry: LlmRetryPolicySchema.optional(),
12377
+ /**
12378
+ * Caller-minted id that makes this generation CANCELLABLE.
12379
+ *
12380
+ * Without it a caller that stops waiting cannot stop the work: the gates race
12381
+ * the call against 8 s and free their own slot when the timer wins, while the
12382
+ * generation upstream keeps running to `profile.timeoutMs` — 60 s by default,
12383
+ * on a single-threaded local model. The per-camera bound then counts WAITS,
12384
+ * not generations, and the real load is unbounded.
12385
+ *
12386
+ * `AbortSignal` cannot cross a process boundary; an id can. Pass one here and
12387
+ * `llm.cancel({ requestId })` tears the socket down.
12388
+ */
12389
+ requestId: string().optional()
12314
12390
  });
12315
12391
  /**
12316
12392
  * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
@@ -12323,6 +12399,18 @@ var LlmGenerateBaseInputSchema = object({
12323
12399
  * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
12324
12400
  * watchdog — operator decision #3).
12325
12401
  */
12402
+ /**
12403
+ * A companion artifact that MUST land beside the main GGUF: the `mmproj`
12404
+ * projector of a vision model, or shards 2..N of a split GGUF. Carried on the
12405
+ * REF rather than looked up at install time, so what the operator approved in
12406
+ * the preview is exactly what the node downloads.
12407
+ */
12408
+ var ManagedModelExtraFileSchema = object({
12409
+ url: string(),
12410
+ filename: string(),
12411
+ sizeBytes: number(),
12412
+ sha256: string().optional()
12413
+ });
12326
12414
  var ManagedModelRefSchema = discriminatedUnion("kind", [
12327
12415
  object({
12328
12416
  kind: literal("catalog"),
@@ -12331,7 +12419,11 @@ var ManagedModelRefSchema = discriminatedUnion("kind", [
12331
12419
  object({
12332
12420
  kind: literal("url"),
12333
12421
  url: string(),
12334
- sha256: string().optional()
12422
+ sha256: string().optional(),
12423
+ /** Picker/status label; the file basename when absent. */
12424
+ label: string().optional(),
12425
+ sizeBytes: number().optional(),
12426
+ extraFiles: array(ManagedModelExtraFileSchema).optional()
12335
12427
  }),
12336
12428
  object({
12337
12429
  kind: literal("path"),
@@ -12349,13 +12441,82 @@ var ManagedRuntimeConfigSchema = object({
12349
12441
  gpuLayers: number().int().default(0),
12350
12442
  /** Default: cpus-2, clamped ≥1 (resolved node-side). */
12351
12443
  threads: number().int().optional(),
12352
- /** Concurrent slots. */
12444
+ /** Concurrent slots (`--parallel`). */
12353
12445
  parallel: number().int().default(1),
12446
+ /** Logical batch size (`-b`). Larger = faster prompt ingest, more RAM. */
12447
+ batchSize: number().int().positive().optional(),
12448
+ /** Physical batch / micro-batch (`-ub`). */
12449
+ ubatchSize: number().int().positive().optional(),
12450
+ /**
12451
+ * `--flash-attn`. Cuts KV-cache memory on the backends that implement it and
12452
+ * is a no-op elsewhere, so it is offered rather than assumed.
12453
+ */
12454
+ flashAttention: boolean().default(false),
12455
+ /**
12456
+ * `--mlock`. Pins the weights in RAM so the OS cannot page them out mid
12457
+ * inference. Costs the full model size in resident memory — which is exactly
12458
+ * what the RAM budget is counting.
12459
+ */
12460
+ mlock: boolean().default(false),
12461
+ /**
12462
+ * `--no-mmap`. Reads the whole GGUF up front instead of mapping it. Slower to
12463
+ * start, but avoids the page-fault stalls a network or spinning-disk model
12464
+ * store produces on every first token.
12465
+ */
12466
+ noMmap: boolean().default(false),
12467
+ /** `--cache-type-k` / `--cache-type-v` — quantising the KV cache is the
12468
+ * cheapest way to fit a longer context in the same RAM. */
12469
+ cacheTypeK: _enum([
12470
+ "f32",
12471
+ "f16",
12472
+ "q8_0",
12473
+ "q5_1",
12474
+ "q5_0",
12475
+ "q4_1",
12476
+ "q4_0"
12477
+ ]).optional(),
12478
+ cacheTypeV: _enum([
12479
+ "f32",
12480
+ "f16",
12481
+ "q8_0",
12482
+ "q5_1",
12483
+ "q5_0",
12484
+ "q4_1",
12485
+ "q4_0"
12486
+ ]).optional(),
12487
+ /**
12488
+ * Escape hatch for llama-server flags this schema does NOT model — `--jinja`
12489
+ * (which most vision chat templates need and some language-only models
12490
+ * dislike), `--cont-batching`, `--rope-scaling`, …
12491
+ *
12492
+ * It is NOT a second place to set the flags above. A token that collides
12493
+ * with a typed field is REJECTED at start, naming the field that owns it
12494
+ * (`assertNoOwnedFlags`), because two knobs writing the same argv is exactly
12495
+ * the "two switches that disagree" failure this repo has already shipped
12496
+ * twice (D62).
12497
+ */
12498
+ extraArgs: array(string()).default([]),
12354
12499
  /** Else lazy: first generate boots it. */
12355
12500
  autoStart: boolean().default(false),
12356
12501
  /** 0 = never; frees RAM after quiet periods. */
12357
12502
  idleStopMinutes: number().int().default(30)
12358
12503
  });
12504
+ /**
12505
+ * Where a multi-GB install currently is. A single 0..1 fraction cannot answer
12506
+ * "is it stuck?" for an install that is three files (shards + mmproj) followed
12507
+ * by a sha256 pass over 22 GB — during which the fraction sat at 1.0 and the
12508
+ * node looked hung. Phase + file + bytes is the smallest shape that does.
12509
+ */
12510
+ var LlmDownloadProgressSchema = object({
12511
+ phase: _enum(["downloading", "verifying"]),
12512
+ /** The artifact currently moving, e.g. `mmproj-F16.gguf`. */
12513
+ file: string(),
12514
+ fileIndex: number().int(),
12515
+ fileCount: number().int(),
12516
+ /** Across the WHOLE install, not the current file. */
12517
+ downloadedBytes: number(),
12518
+ totalBytes: number().optional()
12519
+ });
12359
12520
  var LlmRuntimeStatusSchema = object({
12360
12521
  /** Status is ALWAYS node-qualified. */
12361
12522
  nodeId: string(),
@@ -12372,6 +12533,8 @@ var LlmRuntimeStatusSchema = object({
12372
12533
  modelPath: string().optional(),
12373
12534
  modelId: string().optional(),
12374
12535
  downloadProgress: number().min(0).max(1).optional(),
12536
+ /** Detail behind `downloadProgress`; present for the same lifetime. */
12537
+ download: LlmDownloadProgressSchema.optional(),
12375
12538
  lastError: string().optional(),
12376
12539
  crashesInWindow: number(),
12377
12540
  /** Child RSS (sampled best-effort). */
@@ -12382,7 +12545,14 @@ var LlmNodeModelSchema = object({
12382
12545
  file: string(),
12383
12546
  sizeBytes: number(),
12384
12547
  catalogId: string().optional(),
12385
- installedAt: number().optional()
12548
+ installedAt: number().optional(),
12549
+ /**
12550
+ * Absolute path on the node. Present so a file that is on disk but matches
12551
+ * no catalog entry — a custom Hugging Face install, or a GGUF the operator
12552
+ * copied in by hand — is still SELECTABLE, as a `{kind:'path'}` ref. Without
12553
+ * it the picker could list such a file and do nothing with it.
12554
+ */
12555
+ path: string().optional()
12386
12556
  });
12387
12557
  var LlmRuntimeDiskUsageSchema = object({
12388
12558
  nodeId: string(),
@@ -12438,10 +12608,47 @@ var LlmProfileSchema = object({
12438
12608
  baseUrl: string().optional(),
12439
12609
  /** ConfigUISchema type:'password' — never round-trips (spec §5). */
12440
12610
  apiKey: string().optional(),
12611
+ /** Vision on/off. A vision call against a `false` profile is REFUSED, never
12612
+ * degraded to text — that shipped once and produced a confident answer to a
12613
+ * question about a picture nobody sent. */
12441
12614
  supportsVision: boolean(),
12442
12615
  temperature: number().min(0).max(2).optional(),
12616
+ /** Nucleus sampling. Every wire we speak has it. */
12617
+ topP: number().min(0).max(1).optional(),
12618
+ /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
12619
+ * wire does, and the client drops it there (measured: the request body gets
12620
+ * `top_p` and no `top_k`). The profile editor hides the field wherever it
12621
+ * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
12622
+ topK: number().int().positive().optional(),
12443
12623
  maxTokens: number().int().positive().optional(),
12624
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own);
12625
+ * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
12626
+ * the model with, so it is the one field that changes a PROCESS. */
12627
+ contextLength: number().int().positive().optional(),
12628
+ /** Default system prompt. A caller's `system` REPLACES it (never appends —
12629
+ * two system prompts fighting is worse than either alone). */
12630
+ systemPrompt: string().optional(),
12631
+ /** Total generation bound — the only one a unary call has. */
12444
12632
  timeoutMs: number().int().positive().default(6e4),
12633
+ /** The TCP handshake only — "is the port even open". NOT the wait for
12634
+ * response headers: on the LM Studio / llama-server wire those are written
12635
+ * once the model has finished loading, so they belong to the bound below. */
12636
+ connectTimeoutMs: number().int().positive().default(1e4),
12637
+ /** Accepted, but no output yet — response headers included, because a cold
12638
+ * GPU load is exactly what happens before them. */
12639
+ firstTokenTimeoutMs: number().int().positive().default(12e4),
12640
+ /** Output started then stopped. */
12641
+ idleTimeoutMs: number().int().positive().default(6e4),
12642
+ /** Profile-level default. The per-consumer table and a per-call override
12643
+ * both beat it — see `resolveRetryPolicy`. */
12644
+ retry: LlmRetryPolicySchema.default({
12645
+ enabled: false,
12646
+ maxAttempts: 1
12647
+ }),
12648
+ /** Whether this profile may use tools. The tool-call plumbing rides the
12649
+ * library; the REGISTRY of callable tools is ours and is empty in v1, so a
12650
+ * `true` here buys the wiring, not behaviour, until tools are registered. */
12651
+ toolsEnabled: boolean().default(false),
12445
12652
  extraHeaders: record(string(), string()).optional(),
12446
12653
  /** kind === 'managed-local' only (spec §4). */
12447
12654
  runtime: ManagedRuntimeConfigSchema.optional()
@@ -12491,6 +12698,36 @@ var ManagedModelCatalogEntrySchema = object({
12491
12698
  /** Vision models: companion projector file. */
12492
12699
  mmprojUrl: string().optional()
12493
12700
  });
12701
+ /**
12702
+ * The outcome of turning one operator-typed Hugging Face reference into a
12703
+ * download plan. A RESULT, never a throw: "this repo has 24 quantizations and
12704
+ * I will not pick for you" is a normal answer the UI has to render, not an
12705
+ * exception.
12706
+ *
12707
+ * `candidates` is the whole reason the refusal is usable — every string in it
12708
+ * is a tag that resolves when pasted back as `<org>/<repo>:<TAG>`.
12709
+ */
12710
+ var HfModelResolutionSchema = discriminatedUnion("ok", [object({
12711
+ ok: literal(true),
12712
+ /** Ready to hand to `installModel` unchanged. */
12713
+ model: ManagedModelRefSchema,
12714
+ label: string(),
12715
+ repo: string(),
12716
+ quantization: string(),
12717
+ purpose: _enum(["text", "vision"]),
12718
+ totalBytes: number(),
12719
+ /** mmproj + shards, for the preview: an operator approving 23 GB should
12720
+ * see that 0.9 GB of it is a projector they did not name. */
12721
+ extraFilenames: array(string())
12722
+ }), object({
12723
+ ok: literal(false),
12724
+ code: string(),
12725
+ message: string(),
12726
+ candidates: array(string()).optional(),
12727
+ /** Set when the refusal was only the ceiling: re-calling with
12728
+ * `maxBytes: requiredBytes` is the operator's explicit override. */
12729
+ requiredBytes: number().optional()
12730
+ })]);
12494
12731
  var LlmRuntimeNodeSchema = object({
12495
12732
  nodeId: string(),
12496
12733
  reachable: boolean(),
@@ -12503,7 +12740,10 @@ var ProfileRefInputSchema = object({
12503
12740
  addonId: string(),
12504
12741
  profileId: string()
12505
12742
  });
12506
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12743
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
12744
+ addonId: string().optional(),
12745
+ requestId: string()
12746
+ }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
12507
12747
  kind: "mutation",
12508
12748
  auth: "admin"
12509
12749
  }), method(ProfileRefInputSchema, _void(), {
@@ -12524,6 +12764,15 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
12524
12764
  consumer: string().optional(),
12525
12765
  profileId: string().optional()
12526
12766
  }), array(LlmUsageRollupSchema)), method(object({}), array(ManagedModelCatalogEntrySchema)), method(object({}), array(LlmRuntimeNodeSchema)), method(object({ nodeId: string() }), array(LlmNodeModelSchema)), method(object({
12767
+ /** `https://huggingface.co/<org>/<repo>/resolve/main/<f>.gguf`,
12768
+ * `<org>/<repo>/<f>.gguf`, `<org>/<repo>` or `<org>/<repo>:<QUANT>`. */
12769
+ ref: string(),
12770
+ /** Explicit ceiling override, in bytes. Absent = the built-in ceiling. */
12771
+ maxBytes: number().positive().optional()
12772
+ }), HfModelResolutionSchema, {
12773
+ kind: "mutation",
12774
+ auth: "admin"
12775
+ }), method(object({
12527
12776
  nodeId: string(),
12528
12777
  model: ManagedModelRefSchema
12529
12778
  }), _void(), {
@@ -13089,11 +13338,33 @@ var NotificationFormatSchema = _enum([
13089
13338
  * Named by INTENT, never by glyph. "check" would tie the vocabulary to one
13090
13339
  * renderer's icon set; "acknowledge" survives an adapter that draws it
13091
13340
  * differently.
13341
+ *
13342
+ * ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
13343
+ *
13344
+ * These names are for US. **No adapter may forward one verbatim.** Each maps
13345
+ * the whole set onto its own renderer's vocabulary through a
13346
+ * `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
13347
+ * fallback, so adding a member here fails every adapter's build until someone
13348
+ * decides its glyph, which is the only place that decision can be made
13349
+ * honestly.
13350
+ *
13351
+ * This paragraph is the bug. Zentik declared `actionIcons: true` and passed
13352
+ * `disarm` straight through; iOS feeds that string to
13353
+ * `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
13354
+ * and every snooze and alarm button arrived BLANK. A pass-through is not a
13355
+ * mapping, and "the field is documented" is not "the value renders".
13356
+ *
13357
+ * Adding a member is TRAIN-BOUND. The enum lives in the published
13358
+ * `@camstack/server` closure and the cap seam validates against the HUB's copy,
13359
+ * so an addon that emits a token the running hub does not know does not lose an
13360
+ * icon — its whole `send` fails Zod validation and the notification never
13361
+ * arrives. Never emit a new token from an addon before the train carrying it.
13092
13362
  */
13093
13363
  var NotificationActionIconSchema = _enum([
13094
13364
  "acknowledge",
13095
13365
  "dismiss",
13096
13366
  "silence",
13367
+ "snooze",
13097
13368
  "view",
13098
13369
  "play",
13099
13370
  "open",
@@ -13101,9 +13372,13 @@ var NotificationActionIconSchema = _enum([
13101
13372
  "lock",
13102
13373
  "unlock",
13103
13374
  "arm",
13375
+ "arm-home",
13376
+ "arm-away",
13377
+ "arm-night",
13104
13378
  "disarm",
13105
13379
  "light",
13106
- "alert"
13380
+ "alert",
13381
+ "camera"
13107
13382
  ]);
13108
13383
  /** A single tap-through action button. */
13109
13384
  var NotificationActionSchema = object({
@@ -13303,6 +13578,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
13303
13578
  targetId: string(),
13304
13579
  enabled: boolean()
13305
13580
  }), _void(), { kind: "mutation" });
13581
+ new Set([
13582
+ {
13583
+ id: "person",
13584
+ name: "Person"
13585
+ },
13586
+ {
13587
+ id: "vehicle",
13588
+ name: "Vehicle"
13589
+ },
13590
+ {
13591
+ id: "animal",
13592
+ name: "Animal"
13593
+ },
13594
+ {
13595
+ id: "package",
13596
+ name: "Package"
13597
+ }
13598
+ ].map((l) => l.id));
13306
13599
  var COCO_TO_MACRO = {
13307
13600
  mapping: {
13308
13601
  person: "person",
@@ -14095,11 +14388,15 @@ var NcSystemEventKindSchema = _enum([
14095
14388
  "stream-offline",
14096
14389
  "node-online",
14097
14390
  "node-offline",
14391
+ "node-inference-unavailable",
14392
+ "detection-blind",
14098
14393
  "addon-update-available",
14099
14394
  "server-update-available",
14100
14395
  "alarm-triggered",
14101
14396
  "alarm-armed",
14102
14397
  "alarm-disarmed",
14398
+ "alarm-arming",
14399
+ "alarm-arm-refused",
14103
14400
  "camera-online",
14104
14401
  "camera-offline",
14105
14402
  "camera-disabled",
@@ -14154,7 +14451,16 @@ var NcScheduleSchema = object({
14154
14451
  });
14155
14452
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
14156
14453
  var NcPlateMatcherSchema = object({
14157
- values: array(string().min(1)).min(1),
14454
+ /**
14455
+ * Plate texts (or gallery vehicle names) to match. EMPTY = **any plate the
14456
+ * pipeline could read** — the plate half of "no selection = no narrowing",
14457
+ * and the switch that says this rule is about vehicles that were IDENTIFIED
14458
+ * rather than merely seen. A subject carrying no plate still fails.
14459
+ *
14460
+ * The `.min(1)` this used to carry made that state unauthorable; nothing has
14461
+ * ever persisted an empty list, so widening it cannot change an existing rule.
14462
+ */
14463
+ values: array(string().min(1)),
14158
14464
  /** Max Levenshtein distance after normalization (uppercase alphanumeric). */
14159
14465
  maxDistance: number().int().min(0).max(3).default(1)
14160
14466
  });
@@ -14188,28 +14494,36 @@ var NcOccupancyConditionSchema = object({
14188
14494
  /**
14189
14495
  * Audio condition (IMMEDIATE trigger) — a rule on SOUND, not on a picture.
14190
14496
  *
14191
- * Operator-approved vocabulary (2026-08-12, option A — the same one the
14192
- * reference notifier uses, so an operator moving between them re-uses what
14193
- * they already know): a rule matches when, over a sampling window of
14194
- * `samplingSeconds`, at least `hitPercent`% of the audio samples in that
14195
- * window are HITS. A sample is a hit when it satisfies BOTH present filters:
14196
- *
14197
- * - `dbThreshold` its level is at or above this many dBFS (see
14198
- * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale);
14199
- * - `labels` the classifier put at least one of these labels on it.
14200
- *
14201
- * Both are OPTIONAL and independent, which is the point of the shape: a
14202
- * loudness rule ("something loud at 3am") needs no model to be right, and a
14203
- * label rule ("a dog barked") needs no threshold. **Fail-closed when NEITHER
14204
- * is given** a window in which every sample is trivially a hit would fire on
14205
- * silence, so the engine refuses such a condition rather than notifying on
14206
- * nothing (the schema cannot express "at least one of" without becoming a
14207
- * ZodEffects the cap path would have to special-case).
14208
- *
14209
- * `hitPercent` is over the samples the window actually HOLDS, and the window
14210
- * must be FULL before it can match a window that has been open for two
14211
- * seconds of its ten is 100% of nothing, and firing on it would make
14212
- * `samplingSeconds` decorative.
14497
+ * **TWO EXCLUSIVE MODES** (operator decision 2026-08-14, D157). Which one a
14498
+ * rule is in is not a stored field it is WHICH FILTER the rule carries, so
14499
+ * there is no second switch that can disagree with the first and every rule
14500
+ * authored before the decision migrates for free (`audioModeOf`):
14501
+ *
14502
+ * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14503
+ * classifier labels with one of them. No window, no percentage:
14504
+ * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14505
+ * `throttle` cooldown is the only brake. The per-label confidence floor is
14506
+ * the analyzer's (`classificationMinScore`, per device) — a label only
14507
+ * reaches this condition if the classifier was already confident enough.
14508
+ * - **LEVEL mode `dbThreshold` present, no labels.** The sampling window IS
14509
+ * the condition: at least `hitPercent`% of the samples over
14510
+ * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
14511
+ * {@link NC_AUDIO_DBFS_FLOOR}: negative-going, `0` = full scale). The window
14512
+ * must be FULL before it can match a window open for two of its ten
14513
+ * seconds is 100% of nothing.
14514
+ *
14515
+ * **Why label mode has no window.** It had one, and it never fired: the
14516
+ * analyzer emits ~1 audio frame per second but YAMNet only LABELS one to three
14517
+ * of them per episode, even through continuous crying. The measured maximum
14518
+ * `hitPercent` over the whole live history was 40 — under the shipped default
14519
+ * of 60, so a label rule could not fire at all, ever. A percentage of frames is
14520
+ * the wrong question to ask of a sparse classifier.
14521
+ *
14522
+ * **Fail-closed when NEITHER is given** — every sample would be a trivial hit
14523
+ * and the rule would fire on silence. The schema cannot express "exactly one
14524
+ * of" without becoming a ZodEffects the cap path would have to special-case, so
14525
+ * the exclusivity is enforced where every editor writes (`patchAudio`) and a
14526
+ * legacy rule carrying both resolves to LABEL (the mode that fires).
14213
14527
  *
14214
14528
  * Labels are the audio macro classes (`AUDIO_MACRO_LABELS` / the NC taxonomy's
14215
14529
  * `audio-*` ids). Both spellings are accepted — the matcher normalizes the
@@ -14217,13 +14531,13 @@ var NcOccupancyConditionSchema = object({
14217
14531
  * an operator who typed `dog` mean the same thing.
14218
14532
  */
14219
14533
  var NcAudioConditionSchema = object({
14220
- /** Audio macro labels; absent = any sound (level-only rule). */
14534
+ /** LABEL MODE: audio macro labels. Present fires on the first labelled frame. */
14221
14535
  labels: array(string().min(1)).min(1).optional(),
14222
- /** Level floor in dBFS (negative-going, `0` = full scale); absent = any level. */
14536
+ /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14223
14537
  dbThreshold: number().min(-96).max(0).optional(),
14224
- /** Percentage of the window's samples that must be hits (1–100). */
14538
+ /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14225
14539
  hitPercent: number().int().min(1).max(100).default(60),
14226
- /** Length of the sampling window in seconds. */
14540
+ /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14227
14541
  samplingSeconds: number().int().min(1).max(300).default(10)
14228
14542
  });
14229
14543
  /**
@@ -14361,13 +14675,81 @@ var NcRuleActionsSchema = object({
14361
14675
  */
14362
14676
  buttons: array(NcRuleNotificationButtonSchema).max(8).optional()
14363
14677
  });
14678
+ /**
14679
+ * "This rule applies only while `deviceId` is in one of `states`."
14680
+ *
14681
+ * The states are the DEVICE's own vocabulary — `AlarmState` for a panel,
14682
+ * `on`/`off` for a switch — not a normalised set, because normalising would
14683
+ * make the condition lie about devices whose states have no equivalent.
14684
+ *
14685
+ * An unreadable state does NOT match: see the engine's fail-closed gate. A
14686
+ * condition that fired on "I could not read it" would be worse than no gate.
14687
+ */
14688
+ var NcDeviceStateConditionSchema = object({
14689
+ deviceId: number().int(),
14690
+ /** Any of these matches. */
14691
+ states: array(string().min(1)).min(1)
14692
+ });
14693
+ /**
14694
+ * "This rule applies only while scene `sceneId` is `matched` / `diverged`."
14695
+ *
14696
+ * A GATE, not a trigger. `occupancy` and `audio` each DISCRIMINATE their rule —
14697
+ * carrying one makes the rule fire on that subject and nothing else. Scene is
14698
+ * the other shape entirely, the `deviceState` shape: it narrows a rule that
14699
+ * already has a trigger ("tell me about a person at the front door, but only
14700
+ * while the bin is still out"). That is why it composes with every delivery
14701
+ * instead of owning one, and why no new `NcDelivery` member and no new subject
14702
+ * kind exist for it — see D159.
14703
+ *
14704
+ * ── Identity ───────────────────────────────────────────────────────────────
14705
+ * `sceneId` is `SceneMonitor.id`, a `randomUUID()` minted by `createScene` —
14706
+ * globally unique, so it needs no device to disambiguate it. `deviceId` is
14707
+ * carried as a HINT for the editor and for the log line, never as part of the
14708
+ * lookup key: a rule whose hint drifted must still gate correctly.
14709
+ *
14710
+ * ── Which boolean ──────────────────────────────────────────────────────────
14711
+ * `latched` ABSENT means "whatever the scene itself says" — `SceneMonitor.emit`
14712
+ * already declares which boolean drives notification rules, and a second knob
14713
+ * that could disagree with it is exactly the D62 failure. Set it only to
14714
+ * override one rule against the scene's own default.
14715
+ *
14716
+ * - LIVE reading (`emit`/`latched` resolve to live): passes iff
14717
+ * `verdict === requiredState`. `unknown` — no reference for this light, view
14718
+ * shifted, no snapshot — passes NEITHER. A scene that cannot judge is not
14719
+ * evidence, in either direction.
14720
+ * - LATCHED reading: passes iff `latched === (requiredState === 'diverged')`.
14721
+ * The latch is a durable fact about the past ("it has diverged since I armed
14722
+ * it"), so a camera that has gone dark does not clear it — that is the whole
14723
+ * reason the operator asked for a latch.
14724
+ *
14725
+ * The gate reads an in-memory mirror (`NcSceneStateCache`) refreshed OFF the
14726
+ * event path, never the cap: D49. A mirror that has never loaded, or a scene it
14727
+ * does not carry, reads absent and the rule does NOT fire — fail closed, and
14728
+ * said out loud in the log rather than dropped in silence.
14729
+ */
14730
+ var NcSceneConditionSchema = object({
14731
+ /** `SceneMonitor.id` — the uuid the cap mints. The whole lookup key. */
14732
+ sceneId: string().min(1),
14733
+ /** The camera the scene lives on. A hint for the editor and the log line. */
14734
+ deviceId: number().int().optional(),
14735
+ /** The state the scene must be in for the rule to fire. */
14736
+ requiredState: _enum(["matched", "diverged"]),
14737
+ /**
14738
+ * Read the LATCH (`true`) or the LIVE verdict (`false`). Absent = follow the
14739
+ * scene's own `emit` field, which is the only place that decision belongs.
14740
+ */
14741
+ latched: boolean().optional()
14742
+ });
14364
14743
  var NcConditionsSchema = object({
14365
14744
  /** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
14366
- deviceState: object({
14367
- deviceId: number().int(),
14368
- /** Any of these matches. */
14369
- states: array(string().min(1)).min(1)
14370
- }).optional(),
14745
+ deviceState: NcDeviceStateConditionSchema.optional(),
14746
+ /**
14747
+ * Gate on a SCENE's state — "only while the bin is still out". Composes with
14748
+ * every trigger (detection, occupancy, audio, sensor, package, track-end);
14749
+ * unlike `occupancy`/`audio` it discriminates nothing. See
14750
+ * {@link NcSceneCondition} and D159.
14751
+ */
14752
+ scene: NcSceneConditionSchema.optional(),
14371
14753
  /** Device scope — absent = all devices. */
14372
14754
  devices: array(number()).optional(),
14373
14755
  /** Detector class names (any overlap with the record's class set). */
@@ -14393,18 +14775,47 @@ var NcConditionsSchema = object({
14393
14775
  */
14394
14776
  labelEquals: array(string().min(1)).optional(),
14395
14777
  /**
14396
- * Identity matcher. P1 boundary: matched against the record's collapsed
14397
- * `label` (the identity display name propagated by the face pipeline) —
14398
- * identity-ID matching rides in P2 when identity ids reach the record.
14778
+ * KNOWN FACES the rule's identity scope, and the switch that says the rule
14779
+ * is about recognised people at all.
14780
+ *
14781
+ * Three states, and the empty one is the point:
14782
+ *
14783
+ * | value | meaning |
14784
+ * | --- | --- |
14785
+ * | absent | the rule does not care who it is; an unrecognised person matches |
14786
+ * | `[]` | **only known faces** — any identity in the gallery, nobody in particular |
14787
+ * | a list | only these identities |
14788
+ *
14789
+ * `[]` is the repo-wide "no selection = no narrowing" reading (an absent
14790
+ * `devices` list is every device), applied one level down: the operator has
14791
+ * turned the face scope ON and narrowed it to nothing, which is every known
14792
+ * face. No second field states the same thing — a switch that can disagree
14793
+ * with the list under it is worse than no switch (D62).
14794
+ *
14795
+ * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
14796
+ * renameable, and a rule authored on "Gianluca" went silently dark the moment
14797
+ * the operator fixed the spelling. The id reaches the record on
14798
+ * `LabelAttribution.identityId`; the name is what the editor shows and what
14799
+ * `{{label}}` renders.
14800
+ *
14801
+ * Rules written before this carry NAMES, and are resolved to ids lazily at
14802
+ * load (`NcRuleStore.load`) against the live gallery — a name nothing answers
14803
+ * for is left as it stands and reported, never dropped. The engine also
14804
+ * accepts a display-name hit as a compatibility leg, so a rule whose
14805
+ * migration could not resolve keeps matching exactly what it matched before.
14399
14806
  */
14400
14807
  identities: array(string().min(1)).optional(),
14401
- /** Fuzzy plate matcher against the record's `label` (plate text). */
14808
+ /**
14809
+ * KNOWN PLATES / VEHICLES — the plate mirror of {@link identities}, including
14810
+ * the empty-list reading: `values: []` is "any plate the OCR could read",
14811
+ * a non-empty list is those plates (fuzzily). See {@link NcPlateMatcherSchema}.
14812
+ */
14402
14813
  plates: NcPlateMatcherSchema.optional(),
14403
14814
  /**
14404
- * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
14405
- * Same P1 boundary: matched against the record's collapsed `label` (the
14406
- * identity display name). A record with NO label passes (nothing to
14407
- * exclude), unlike the include variant which fails on an absent label.
14815
+ * Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics, and
14816
+ * the same id members and the same lazy name→id migration. A record with NO
14817
+ * identity passes (nothing to exclude), unlike the include variant which
14818
+ * fails on an unrecognised subject. An EMPTY list excludes nobody.
14408
14819
  */
14409
14820
  identitiesExclude: array(string().min(1)).optional(),
14410
14821
  /**
@@ -14796,7 +15207,80 @@ var NcRuleInputSchema = object({
14796
15207
  * a rule that predates the gate must keep delivering byte-for-byte as it
14797
15208
  * did, and absent is the only way to say that without a migration.
14798
15209
  */
14799
- confirm: NcConfirmSchema.optional()
15210
+ confirm: NcConfirmSchema.optional(),
15211
+ /**
15212
+ * WAIT for face/plate recognition before saying anything.
15213
+ *
15214
+ * A notification's TEXT is frozen at enqueue and its media is re-resolved at
15215
+ * send; the identity is neither. A face is confirmed after `confirmFrames`
15216
+ * agreeing observations — p50 **11.4 s** after the track was first seen,
15217
+ * measured on this hub — and an `immediate` rule enqueues on the first object
15218
+ * event, seconds before that. So "Gianluca è arrivato" is unsayable on the
15219
+ * immediate path, and no amount of media re-resolution fixes a sentence.
15220
+ *
15221
+ * Only two honest answers exist, and this flag picks between them. It has
15222
+ * effect ONLY on a rule that declares a recognition scope
15223
+ * ({@link NcConditions.identities} or {@link NcConditions.plates}) — on any
15224
+ * other rule there is nothing to wait for and the flag is inert.
15225
+ *
15226
+ * | value | what happens |
15227
+ * | --- | --- |
15228
+ * | `true` | the rule stops firing on the object event and fires at TRACK CLOSE instead, once, with the name — later, and complete |
15229
+ * | 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) |
15230
+ *
15231
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15232
+ * on the addon cap path, and absent has to keep meaning exactly what every
15233
+ * rule authored before this field meant.
15234
+ *
15235
+ * The cost of `true` is stated here because the editor states it too: a rule
15236
+ * that waits also inherits track-close SEMANTICS — its `zones` condition
15237
+ * tests every zone the track visited and a `crossing` condition can no longer
15238
+ * be satisfied, because a closed track carries no crossing.
15239
+ */
15240
+ waitForEnhancement: boolean().optional(),
15241
+ /**
15242
+ * GROUP a burst of subjects into ONE notification that grows.
15243
+ *
15244
+ * Seconds of quiet after the last matching subject before the burst is
15245
+ * considered over. While it is open, the first subject enqueues immediately —
15246
+ * **exactly as today, with no added latency** — and every real growth (a new
15247
+ * subject, or a name confirmed on one already in it) REPLACES that
15248
+ * notification with an updated one naming everybody. The push carries the
15249
+ * group's own coalescing tag, so the phone replaces rather than stacks.
15250
+ *
15251
+ * `0` / absent = off, and off is today's behaviour byte for byte.
15252
+ *
15253
+ * ### Why an idle cutoff and not a window
15254
+ *
15255
+ * The measured seven-person arrival on device 590 spans 110 s with every
15256
+ * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
15257
+ * idle cutoff holds it as one and ends it when the arrival actually ends.
15258
+ * 30 is Frigate's shipped value for the same decision.
15259
+ *
15260
+ * ### What it replaces
15261
+ *
15262
+ * The blind cooldown, which collapses a burst by DISCARDING it. Measured on
15263
+ * device 615 / *Persona su Uscio* over six days: 116 qualifying tracks → 74
15264
+ * notifications, **44 (37.9%) suppressed outright**, 23 of them overlapping a
15265
+ * track that did fire and 7 carrying a confirmed identity nobody heard about.
15266
+ * A group collapses the same volume by MERGING, so the cooldown becomes a
15267
+ * budget over GROUPS — which is what it always meant — and a growth is never
15268
+ * throttled by the window its own first member spent.
15269
+ *
15270
+ * ### Interaction with {@link waitForEnhancement}
15271
+ *
15272
+ * They compose, and the order matters. `waitForEnhancement` defers the rule to
15273
+ * TRACK CLOSE, so with both set the group is opened by the first member to
15274
+ * CLOSE — already carrying its name — and grows as later members close. That
15275
+ * is later, and complete. With grouping alone the group opens on the first
15276
+ * object event and picks up names as they are confirmed, through the growth
15277
+ * path. Neither combination fires twice for one subject.
15278
+ *
15279
+ * `.optional()` and deliberately NOT `.default()`: a Zod default does not run
15280
+ * on the addon cap path, so absent must keep meaning what it meant before this
15281
+ * field existed.
15282
+ */
15283
+ groupIdleSec: number().int().min(0).max(600).optional()
14800
15284
  });
14801
15285
  /**
14802
15286
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -14903,6 +15387,7 @@ var NcConditionDescriptorSchema = object({
14903
15387
  "occupancy",
14904
15388
  "audio",
14905
15389
  "deviceState",
15390
+ "scene",
14906
15391
  "systemEvent"
14907
15392
  ]),
14908
15393
  operator: _enum([
@@ -15308,7 +15793,87 @@ var MethodAccessSchema = _enum([
15308
15793
  var AllowedProviderSchema = union([literal("*"), array(string())]);
15309
15794
  var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
15310
15795
  var CapScopeSchema = _enum(["device", "system"]);
15311
- var TokenScopeSchema = discriminatedUnion("type", [
15796
+ /**
15797
+ * DeviceSelector (scope model v3 — 2026-08-12).
15798
+ *
15799
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
15800
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
15801
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
15802
+ * AFTER the grant was minted — no re-grant, no re-login.
15803
+ *
15804
+ * - `all` — every device in the deployment. The broad viewer/operator
15805
+ * lever without a `category` grant (a `category` grant also covers device
15806
+ * caps that carry no deviceId; `all` is specifically the device set).
15807
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
15808
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
15809
+ * is NOT covered until the grant is edited.
15810
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
15811
+ * DYNAMIC. A device that changes type, or a new device of the type,
15812
+ * re-resolves on the next request.
15813
+ * - `locations` — every device whose operator-assigned `location` label is
15814
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
15815
+ * null/unset location matches NO `locations` selector.
15816
+ */
15817
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
15818
+ object({ kind: literal("all") }),
15819
+ object({
15820
+ kind: literal("ids"),
15821
+ ids: array(number().int()).min(1)
15822
+ }),
15823
+ object({
15824
+ kind: literal("types"),
15825
+ types: array(_enum(DeviceType)).min(1)
15826
+ }),
15827
+ object({
15828
+ kind: literal("locations"),
15829
+ locations: array(string().min(1)).min(1)
15830
+ })
15831
+ ]);
15832
+ var DeviceTokenScopeSchema = object({
15833
+ type: literal("device"),
15834
+ /** The device SET this grant covers — resolved against the live fleet. */
15835
+ selector: DeviceSelectorSchema,
15836
+ access: array(MethodAccessSchema).min(1),
15837
+ /**
15838
+ * Whether a grant on a PARENT device transparently covers its accessory
15839
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
15840
+ * Direction is parent → children ONLY.
15841
+ *
15842
+ * Absent → the matcher DERIVES it from the access flavour: `view`
15843
+ * inherits (a camera viewer sees the camera's accessories), `create` /
15844
+ * `delete` do NOT (actuating/removing a child is an explicit act the
15845
+ * operator must grant on the child, not inherit from the parent). Set it
15846
+ * explicitly to override that default per grant.
15847
+ */
15848
+ includeLinked: boolean().optional()
15849
+ });
15850
+ /**
15851
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
15852
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
15853
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
15854
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
15855
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
15856
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
15857
+ * migration cannot reach a JWT already in a client's hands; parse-time
15858
+ * migration covers both without a flag day. No cast — the raw object is read
15859
+ * through `Reflect.get` (its static type is `unknown`).
15860
+ */
15861
+ function migrateLegacyTokenScope(raw) {
15862
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
15863
+ if (Reflect.get(raw, "type") !== "device") return raw;
15864
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
15865
+ const targets = Reflect.get(raw, "targets");
15866
+ if (!Array.isArray(targets)) return raw;
15867
+ return {
15868
+ type: "device",
15869
+ selector: {
15870
+ kind: "ids",
15871
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
15872
+ },
15873
+ access: Reflect.get(raw, "access")
15874
+ };
15875
+ }
15876
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
15312
15877
  object({
15313
15878
  type: literal("category"),
15314
15879
  target: CapScopeSchema,
@@ -15324,18 +15889,8 @@ var TokenScopeSchema = discriminatedUnion("type", [
15324
15889
  target: string(),
15325
15890
  access: array(MethodAccessSchema).min(1)
15326
15891
  }),
15327
- object({
15328
- type: literal("device"),
15329
- /**
15330
- * One or more deviceIds (serialised as strings for wire-format
15331
- * consistency with the rest of the union). Matcher accepts if
15332
- * `input.deviceId` ∈ `targets`. Array shape avoids the row-explosion
15333
- * of one scope-per-device when granting access to a set of cameras.
15334
- */
15335
- targets: array(string()).min(1),
15336
- access: array(MethodAccessSchema).min(1)
15337
- })
15338
- ]);
15892
+ DeviceTokenScopeSchema
15893
+ ]));
15339
15894
  object({
15340
15895
  id: string(),
15341
15896
  username: string(),
@@ -15652,7 +16207,7 @@ var TrackEnvelopeSchema = object({
15652
16207
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
15653
16208
  * keeps every scalar the list surfaces actually render (ids, class(es),
15654
16209
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
15655
- * zonesVisited, bestEventId, envelope, hasFace) and returns `positions` /
16210
+ * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
15656
16211
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
15657
16212
  * `getTrack`. Mirrors the event-store `projection` convention
15658
16213
  * (`getObjectEvents` et al.).
@@ -15788,7 +16343,21 @@ union([literal(1), literal(2)]);
15788
16343
  var LabelAttributionSchema = object({
15789
16344
  stepId: string(),
15790
16345
  modelId: string().optional(),
15791
- decidedAt: number()
16346
+ decidedAt: number(),
16347
+ /**
16348
+ * The GALLERY id behind a recognised tier-2 label — a face-gallery
16349
+ * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
16350
+ *
16351
+ * The text alone is a DISPLAY NAME, and a display name is renameable: a
16352
+ * notification rule authored on "Gianluca" stopped matching the moment the
16353
+ * operator fixed the spelling in the gallery, and nothing said so. The id is
16354
+ * the thing that does not move, so it is what a rule matches on
16355
+ * (`NcConditions.identities`) and the text is what a human is shown.
16356
+ *
16357
+ * Absent when the label names no gallery row — a plate the OCR read but no
16358
+ * vehicle claims, a sub-class, a species, any tier-1 value.
16359
+ */
16360
+ identityId: string().optional()
15792
16361
  });
15793
16362
  /**
15794
16363
  * The TIERED label model (roadmap 4g), spread into `TrackSchema` and
@@ -15925,6 +16494,28 @@ var TrackSchema = object({
15925
16494
  * `=== true` and render nothing otherwise, never infer "no face".
15926
16495
  */
15927
16496
  hasFace: boolean().optional(),
16497
+ /**
16498
+ * This subject CONTAINS a folded rider — a person the rider-pairing step
16499
+ * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16500
+ * so the passage is tracked once and as a VEHICLE.
16501
+ *
16502
+ * It exists because the fold's record was dishonest. D34 and the code both
16503
+ * said "the person is not lost — it is reported so both entities stay on the
16504
+ * record"; in fact the pair went into a per-processor RAM field behind an
16505
+ * accessor nobody called, and every durable surface said `vehicle`, full
16506
+ * stop. This is the composition note that makes the row true.
16507
+ *
16508
+ * A COMPOSITION, never a class and never a label. "This vehicle contains a
16509
+ * person" is not an answer to "what is this" — both label tiers would refuse
16510
+ * a macro token anyway (D89), and correctly. Nothing here changes what the
16511
+ * subject IS: a cyclist stays one vehicle track, occupancy still counts one,
16512
+ * and a `person` rule still does not fire for someone cycling past.
16513
+ *
16514
+ * **Absent ≠ false**, exactly like {@link hasFace}: every row written before
16515
+ * the column, and every hub that predates the field, omits it. Test
16516
+ * `=== true` and render nothing otherwise — never infer "no rider".
16517
+ */
16518
+ hasRider: boolean().optional(),
15928
16519
  ...TrackFlagFields,
15929
16520
  ...TrackRetrainFields
15930
16521
  });
@@ -16274,7 +16865,10 @@ var RecentTracksQueryInput = object({
16274
16865
  * Encodes the (lastSeen, trackId) sort position — treat as opaque. */
16275
16866
  cursor: string().optional(),
16276
16867
  /** See {@link TrackProjectionSchema}. Default `full`. */
16277
- projection: TrackProjectionSchema.optional()
16868
+ projection: TrackProjectionSchema.optional(),
16869
+ /** Include stationary-promoted rows (parked objects). Default false: the
16870
+ * feed lists passages; parking records live on the stationary registry. */
16871
+ includeStationary: boolean().optional()
16278
16872
  });
16279
16873
  var RecentTracksPageSchema = object({
16280
16874
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -16492,7 +17086,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16492
17086
  zone: TrackZoneFilterSchema.optional(),
16493
17087
  /** See {@link TrackProjectionSchema}. Default `full` (backward
16494
17088
  * compatible — omitting the field keeps today's exact behaviour). */
16495
- projection: TrackProjectionSchema.optional()
17089
+ projection: TrackProjectionSchema.optional(),
17090
+ /** Include stationary-promoted rows (parked objects handed to the
17091
+ * stationary registry). Default false: the timeline lists passages,
17092
+ * not parking records (operator decision, 2026-08-15). */
17093
+ includeStationary: boolean().optional()
16496
17094
  }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
16497
17095
  kind: "mutation",
16498
17096
  auth: "admin"
@@ -16656,11 +17254,16 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
16656
17254
  auth: "admin"
16657
17255
  }), method(object({
16658
17256
  eventId: string(),
16659
- kind: MediaFileKindEnum.optional()
17257
+ kind: MediaFileKindEnum.optional(),
17258
+ deviceId: number()
16660
17259
  }), array(MediaFileSchema).readonly()), method(object({
16661
17260
  trackId: string(),
16662
- kinds: array(MediaFileKindEnum).optional()
16663
- }), array(MediaFileSchema).readonly()), method(object({ trackId: string() }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
17261
+ kinds: array(MediaFileKindEnum).optional(),
17262
+ deviceId: number()
17263
+ }), array(MediaFileSchema).readonly()), method(object({
17264
+ trackId: string(),
17265
+ deviceId: number()
17266
+ }), array(MediaFileInfoSchema).readonly()), method(SearchObjectEventsInput, array(ScoredObjectEventSchema).readonly()), method(object({}), WipeObjectEmbeddingsResultSchema, {
16664
17267
  kind: "mutation",
16665
17268
  auth: "admin"
16666
17269
  }), method(RebuildObjectEmbeddingsInput, RebuildObjectEmbeddingsResultSchema, {
@@ -17320,6 +17923,17 @@ var maxSessionHoldMsField = {
17320
17923
  default: 12e4,
17321
17924
  step: 5e3
17322
17925
  };
17926
+ /**
17927
+ * Quiet period that closes an `audioMode: 'on-motion'` audio window. Floor of
17928
+ * 5s so a rearm can never degenerate into per-event stream churn; default 90s
17929
+ * comfortably outlives the gap between two PIR wakes on a battery camera.
17930
+ */
17931
+ var audioMotionWindowMsField = {
17932
+ min: 5e3,
17933
+ max: 6e5,
17934
+ default: 9e4,
17935
+ step: 5e3
17936
+ };
17323
17937
  var motionFpsField = {
17324
17938
  min: 1,
17325
17939
  max: 30,
@@ -17332,10 +17946,26 @@ var detectionFpsField = {
17332
17946
  default: 10,
17333
17947
  step: 1
17334
17948
  };
17949
+ /**
17950
+ * The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
17951
+ *
17952
+ * The recheck is now on by default (a parked car is invisible to occupancy
17953
+ * rules until the stationary registry has been rebuilt by motion, which after a
17954
+ * restart may be never on a quiet camera). Each cycle re-subscribes a detection
17955
+ * session — an RTSP re-dial — so the switch is only affordable at a WIDE
17956
+ * interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
17957
+ * 30 s. A parked car is therefore counted within 5 minutes of a restart.
17958
+ *
17959
+ * Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
17960
+ * the host validates `attachCamera` against ITS copy of this schema, so a
17961
+ * runner asked for 600 would be rejected by the hub until a `@camstack/server`
17962
+ * carrying the wider bound is installed everywhere. 300 is the widest value
17963
+ * that ships with an addon deploy.
17964
+ */
17335
17965
  var occupancyRecheckSecField = {
17336
17966
  min: 0,
17337
17967
  max: 300,
17338
- default: 30,
17968
+ default: 300,
17339
17969
  step: 5
17340
17970
  };
17341
17971
  var occupancyRecheckFramesField = {
@@ -17480,6 +18110,27 @@ var RunnerCameraConfigSchema = object({
17480
18110
  * resolved `CameraDetectionConfig`.
17481
18111
  */
17482
18112
  maxSessionHoldMs: number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
18113
+ /**
18114
+ * Orchestrator-side quiet period (ms) that closes an `audioMode:
18115
+ * 'on-motion'` audio window, measured from the LAST motion event.
18116
+ *
18117
+ * This exists because the falling edge cannot be relied on. Camera-native
18118
+ * providers emit motion as a RISING EDGE ONLY (Reolink's Baichuan push and
18119
+ * its email-push SMTP path both emit `detected: true` and never the
18120
+ * counterpart); only the frame-diff analyzer emits falls. So on an
18121
+ * onboard-only camera a window that closed only on `detected: false` never
18122
+ * closed at all, and `on-motion` silently behaved as `always-on` — on a
18123
+ * battery camera, the one failure mode the mode exists to prevent.
18124
+ *
18125
+ * Every motion event rearms this timer WITHOUT restarting the stream, so a
18126
+ * burst of re-fires costs nothing. A falling edge, when one does arrive,
18127
+ * still closes earlier via `motionCooldownMs` — whichever comes first wins.
18128
+ *
18129
+ * Not consumed by the runner: carried here so it shares the per-camera
18130
+ * device-settings surface with `motionCooldownMs`, exactly like
18131
+ * `maxSessionHoldMs`.
18132
+ */
18133
+ audioMotionWindowMs: number().min(audioMotionWindowMsField.min).max(audioMotionWindowMsField.max).optional(),
17483
18134
  motionFps: number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
17484
18135
  detectionFps: number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
17485
18136
  motionStreamId: string(),
@@ -17533,15 +18184,21 @@ var RunnerCameraConfigSchema = object({
17533
18184
  */
17534
18185
  onboardMotionDrivesAnalyzer: boolean().default(true),
17535
18186
  /**
17536
- * Master toggle for the occupancy re-check. When `false` (DEFAULT) the runner
17537
- * never arms the periodic recheck timer, regardless of `occupancyRecheckSec`
17538
- * this is off by default because the recheck re-subscribes a detection session
17539
- * every N seconds while `watching`, a major source of pull-decoder re-dial
17540
- * churn (each cycle creates+tears a session → RTSP re-dial → latency). The
18187
+ * Master toggle for the occupancy re-check. When `false` the runner never arms
18188
+ * the periodic recheck timer, regardless of `occupancyRecheckSec`; the
17541
18189
  * `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
17542
18190
  * (and only render) when this is enabled.
17543
- */
17544
- occupancyRecheckEnabled: boolean().default(false),
18191
+ *
18192
+ * DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
18193
+ * recheck re-subscribes a detection session every N seconds while `watching`
18194
+ * — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
18195
+ * pull-decoder churn source. What that bought was a blind spot: a STATIONARY
18196
+ * object is counted only while the stationary registry holds it, and the
18197
+ * registry rebuilds from motion, so after a restart a parked car was invisible
18198
+ * to every occupancy rule until something moved in front of it. The churn is
18199
+ * now paid on the interval instead — see `occupancyRecheckSecField`.
18200
+ */
18201
+ occupancyRecheckEnabled: boolean().default(true),
17545
18202
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
17546
18203
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
17547
18204
  /**
@@ -17569,7 +18226,7 @@ var RunnerCameraConfigSchema = object({
17569
18226
  */
17570
18227
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
17571
18228
  });
17572
- 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;
18229
+ 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;
17573
18230
  /**
17574
18231
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
17575
18232
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -18585,7 +19242,16 @@ targets: array(object({
18585
19242
  /** A sleeping battery camera: the frame is deliberately stale and will
18586
19243
  * NOT refresh in the background. A surface should say so rather than
18587
19244
  * present it as current. */
18588
- sleeping: boolean()
19245
+ sleeping: boolean(),
19246
+ /** Current device state rendered over the cached frame. State images
19247
+ * remain authoritative even when their photographic background is
19248
+ * old; null means the link must carry a current camera frame. */
19249
+ stateReason: _enum([
19250
+ "disabled",
19251
+ "sleeping",
19252
+ "unreachable",
19253
+ "waking"
19254
+ ]).nullable()
18589
19255
  })));
18590
19256
  /**
18591
19257
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
@@ -20107,6 +20773,25 @@ var BatteryStatusSchema = object({
20107
20773
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
20108
20774
  lastUpdated: number(),
20109
20775
  /**
20776
+ * Ms epoch of the last time the device PROVED it was reachable — a
20777
+ * completed firmware round-trip, an observed wake, or an inbound push
20778
+ * (firmware event, email). `0`/absent = never since this slice was born.
20779
+ *
20780
+ * This is the ONLY input that separates "asleep" from "gone", and it is
20781
+ * fed exclusively by PASSIVE signals: nothing may write it by reaching
20782
+ * for the radio, because a poll that confirms reachability is the same
20783
+ * poll that drains the battery. See {@link deriveBatteryPresence} — the
20784
+ * single derivation every consumer must use; no surface computes its own.
20785
+ *
20786
+ * It is deliberately NOT a clock in the
20787
+ * `scripts/check-runtime-state-durability.ts` sense: it is the
20788
+ * observation itself, and it is the only thing a 30-hour silence is
20789
+ * visible in. Writers quantise it (see `CONTACT_WRITE_QUANTUM_MS` in the
20790
+ * Reolink provider) so a value that means "recently" cannot cost a
20791
+ * SQLite commit per round-trip.
20792
+ */
20793
+ lastContactAt: number().optional(),
20794
+ /**
20110
20795
  * True when the source is a BINARY low-battery indicator (HA
20111
20796
  * `binary_sensor` device_class=battery / `LOW_BAT`) that has no real
20112
20797
  * charge level — `percentage` is then a coarse stand-in (100 = normal,
@@ -23644,7 +24329,7 @@ method(object({
23644
24329
  toMs: number()
23645
24330
  }), RecordingAvailabilitySchema, {
23646
24331
  kind: "query",
23647
- auth: "admin"
24332
+ auth: "protected"
23648
24333
  }), method(object({
23649
24334
  deviceId: number(),
23650
24335
  fromMs: number(),
@@ -23652,14 +24337,14 @@ method(object({
23652
24337
  tzOffsetMinutes: number()
23653
24338
  }), RecordingDaysSchema, {
23654
24339
  kind: "query",
23655
- auth: "admin"
24340
+ auth: "protected"
23656
24341
  }), method(object({
23657
24342
  deviceId: number(),
23658
24343
  fromMs: number(),
23659
24344
  toMs: number()
23660
24345
  }), RecordingManifestSchema, {
23661
24346
  kind: "query",
23662
- auth: "admin"
24347
+ auth: "protected"
23663
24348
  }), method(object({}), RecordingStorageUsageSchema, {
23664
24349
  kind: "query",
23665
24350
  auth: "admin"
@@ -23949,14 +24634,77 @@ method(object({
23949
24634
  * thing except the comparator: `similarity` (CLIP cosine at the same ROI coords
23950
24635
  * vs condition-tagged references) and `llm` (vision-LLM judgment over the crop).
23951
24636
  *
23952
- * D14 device-config archetype (`deviceConfig.ui.kind:'widget'`) the framework
23953
- * derives the device-detail contribution; the provider carries NO hand-written
23954
- * settings-contribution methods. `status.kind:'push'` the engine pushes on
23955
- * every hysteresis flip / availability change; consumers never poll.
23956
- */
23957
- /** Extensible condition tag. Seeded 'day' | 'night'; open by design so more can
23958
- * be added without a wire break (matching falls back to any-condition refs). */
24637
+ * **No `deviceConfig`, deliberately.** This shipped as the D14 widget archetype,
24638
+ * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
24639
+ * for the thing: a scene is a standing question about the property ("is the bin
24640
+ * still out"), and the operator's question is "which of my scenes have tripped",
24641
+ * across every camera at once — not "what does camera 617 think". Buried one
24642
+ * camera deep it also could not be found. The surface is now a top-level admin
24643
+ * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
24644
+ * picks the camera inside the create flow, the same shape Events and Faces have.
24645
+ *
24646
+ * The consequence to keep in mind: `host/scene-monitor-editor` is gone from
24647
+ * `HOST_WIDGETS` too. `scripts/check-host-widget-resolves.ts` asserts BOTH
24648
+ * directions, so a registration nobody declares fails exactly as loudly as a
24649
+ * declaration nobody registers. The editor is imported directly by the page.
24650
+ *
24651
+ * `status.kind:'push'` — the engine pushes on every hysteresis flip /
24652
+ * availability change; consumers never poll.
24653
+ */
24654
+ /** Extensible condition tag. Seeded 'day' | 'ir' (the two variants the operator
24655
+ * captures) plus 'night' | 'dawn' | 'dusk' from the resolver's sun-times band.
24656
+ * Open by design so more can be added without a wire break.
24657
+ *
24658
+ * Matching does NOT fall back across conditions: cross-condition cosines are
24659
+ * not comparable, so "I have never seen this scene in this light" is reported
24660
+ * as `unknown`, never guessed. A day reference scored against an IR frame
24661
+ * collapses the cosine and would latch a false alarm every single night. */
23959
24662
  var SceneConditionSchema = string();
24663
+ /**
24664
+ * What a scene does when the CURRENT light has no reference of its own.
24665
+ *
24666
+ * The lighting variants are not equally likely to exist. Almost every operator
24667
+ * captures daylight and then never stands outside at 22:00 to capture IR, and a
24668
+ * scene that is only ever going to be asked about a daytime question ("is the
24669
+ * bin still on the kerb at 08:00") does not need a night reference at all. The
24670
+ * night half must therefore be OPTIONAL, and optional means the scene keeps
24671
+ * working without it rather than degrading into a permanent complaint.
24672
+ *
24673
+ * - `skip` (default) — the check in that light is not made. Not a verdict, not
24674
+ * an alarm, not even an `unknown`: the live state simply stays whatever the
24675
+ * last covered light left it at, the latch is untouched, and the hysteresis
24676
+ * run is neither spent nor cleared. The scene resumes by itself at first
24677
+ * light. This is the only behaviour under which "I never captured IR" is a
24678
+ * configuration choice instead of a nightly fault.
24679
+ * - `judge-anyway` — score against the OTHER conditions' references. Available
24680
+ * for cameras whose IR frame is close enough to daylight (a floodlit
24681
+ * driveway, an always-white-light doorbell), and wrong for everything else:
24682
+ * cross-condition cosines are not comparable, so a day reference against a
24683
+ * true IR frame collapses and the scene reports a theft at 21:40.
24684
+ *
24685
+ * Never applies when the scene has NO comparable reference at all — that is
24686
+ * "not armed yet", it is reported as `no-reference-for-condition`, and silence
24687
+ * there would hide a scene the operator never finished setting up.
24688
+ */
24689
+ var SceneUncoveredPolicySchema = _enum(["skip", "judge-anyway"]);
24690
+ /** `matched` = the baseline is what we see; `diverged` = it demonstrably is not;
24691
+ * `unknown` = we cannot judge (no reference for this condition, encoder model
24692
+ * changed, view shifted, no snapshot). `unknown` is a real value, not a null,
24693
+ * and never counts toward hysteresis in either direction. */
24694
+ var SceneVerdictSchema = _enum([
24695
+ "matched",
24696
+ "diverged",
24697
+ "unknown"
24698
+ ]);
24699
+ /** Why a scene cannot judge. Named, because this feature's failure mode is
24700
+ * silence that reads as "nothing has happened". */
24701
+ var SceneUnavailableSchema = _enum([
24702
+ "no-reference-for-condition",
24703
+ "view-shifted",
24704
+ "no-vision-profile",
24705
+ "encoder-model-changed",
24706
+ "no-snapshot"
24707
+ ]);
23960
24708
  /** One captured reference — condition-tagged, model-version-gated. `embedding`
23961
24709
  * is `number[]` (Float32Array does NOT survive MsgPack/UDS). */
23962
24710
  var SceneReferenceSchema = object({
@@ -23964,7 +24712,14 @@ var SceneReferenceSchema = object({
23964
24712
  modelId: string(),
23965
24713
  condition: SceneConditionSchema,
23966
24714
  capturedAt: number(),
23967
- thumbnailMediaId: string().optional()
24715
+ thumbnailMediaId: string().optional(),
24716
+ /** Whole-frame (downscaled) embedding captured alongside the ROI crop. The
24717
+ * anti-view-shift anchor: a bumped camera, a PTZ preset or a re-aim makes the
24718
+ * normalized rect frame a different piece of world, and the scene would
24719
+ * diverge forever with a perfectly plausible cosine. Checked LAZILY, only
24720
+ * when hysteresis is about to flip — one extra encode per candidate
24721
+ * transition, not per poll. */
24722
+ anchorEmbedding: array(number()).optional()
23968
24723
  });
23969
24724
  var SceneMonitorStateSchema = object({
23970
24725
  id: string(),
@@ -23986,6 +24741,28 @@ var SceneCheckSchema = discriminatedUnion("mode", [object({
23986
24741
  profileId: string().optional(),
23987
24742
  hysteresisCount: number().int().positive()
23988
24743
  })]);
24744
+ var SCENE_DEFAULT_ANCHOR_THRESHOLD = .85;
24745
+ /** Night is OPTIONAL. A scene with only a daylight reference sits the IR hours
24746
+ * out in silence rather than reporting a fault every night. */
24747
+ var SCENE_DEFAULT_UNCOVERED_POLICY = "skip";
24748
+ /**
24749
+ * Vision-model adjudication of a candidate flip. Field names deliberately
24750
+ * mirror `NcConfirmSchema` so an operator meets one vocabulary, not two.
24751
+ *
24752
+ * `onTimeout` defaults to **'hold'**, the OPPOSITE of `NcConfirmGate`'s
24753
+ * fail-open: a notification suppressed is the worse error there, but a vision
24754
+ * model that timed out has not told us the bin is gone, and a latch is a
24755
+ * stateful claim that costs the operator a trip to reset.
24756
+ */
24757
+ var SceneConfirmSchema = object({
24758
+ enabled: boolean().default(false),
24759
+ prompt: string().min(1).max(1e3),
24760
+ profileId: string().optional(),
24761
+ timeoutMs: number().int().min(1e3).max(2e4).default(8e3),
24762
+ maxImagePx: number().int().min(64).max(2048).default(448),
24763
+ /** What a timeout / unavailable model means for the PENDING flip. */
24764
+ onTimeout: _enum(["flip", "hold"]).default("hold")
24765
+ });
23989
24766
  var SceneMonitorSchema = object({
23990
24767
  id: string(),
23991
24768
  label: string(),
@@ -24004,7 +24781,56 @@ var SceneMonitorSchema = object({
24004
24781
  lastConfidence: number().nullable(),
24005
24782
  currentCondition: SceneConditionSchema.nullable(),
24006
24783
  availability: _enum(["ok", "unavailable"]),
24007
- unavailableReason: string().nullable()
24784
+ unavailableReason: string().nullable(),
24785
+ /** Which state is "the initial screen". `null` until the first capture. */
24786
+ baselineStateId: string().nullable(),
24787
+ /** Which boolean drives notification rules and any export. */
24788
+ emit: _enum(["latched", "live"]).default("latched"),
24789
+ /** Live: does the region match the baseline RIGHT NOW. */
24790
+ verdict: SceneVerdictSchema,
24791
+ /** Has it been `diverged` at least once since `armedAt` — the operator's boolean. */
24792
+ latched: boolean(),
24793
+ /** Last reset (or creation). */
24794
+ armedAt: number(),
24795
+ divergedAt: number().nullable(),
24796
+ restoredAt: number().nullable(),
24797
+ /** A check is only COUNTED when the device has been quiet this long. Motion
24798
+ * during the window DISCARDS the observation — a car pulling up in front of
24799
+ * the bin must not be able to spend hysteresis credit. */
24800
+ quietSeconds: number().int().min(0).max(3600).default(60),
24801
+ /** An observation only advances the pending count when it is at least this
24802
+ * far from the previously counted one, so N agreeing checks span real time
24803
+ * rather than N adjacent polls inside one occlusion. */
24804
+ minObservationSpacingSec: number().int().min(0).max(3600).default(120),
24805
+ /** Vision-model adjudication of a candidate flip. Similarity primary only. */
24806
+ confirm: SceneConfirmSchema.optional(),
24807
+ /** Whole-frame anchor cosine below which a flip is REFUSED as `view-shifted`. */
24808
+ anchorThreshold: number().min(0).max(1).default(SCENE_DEFAULT_ANCHOR_THRESHOLD),
24809
+ /** Clear the latch on its own when the scene matches again? Default false —
24810
+ * `restoredAt` and the `scene-restored` edge are recorded regardless, so an
24811
+ * automation can react to the bin coming back without the operator's own
24812
+ * alarm silently clearing itself. */
24813
+ autoRestore: boolean().default(false),
24814
+ /** What to do when the current light has no reference of its own. See
24815
+ * {@link SceneUncoveredPolicySchema} — the default makes night OPTIONAL. */
24816
+ onUncoveredCondition: SceneUncoveredPolicySchema.default(SCENE_DEFAULT_UNCOVERED_POLICY),
24817
+ /**
24818
+ * The light whose checks are currently being SAT OUT under
24819
+ * `onUncoveredCondition: 'skip'` — `null` when the scene is checking normally.
24820
+ *
24821
+ * Engine-reported and advisory only: it moves no verdict, no latch and no
24822
+ * hysteresis. It exists so the card can say *"night (IR) — checks paused,
24823
+ * nothing captured in this light"* in the same calm voice as the coverage
24824
+ * line, because the alternative is a scene that silently stops answering
24825
+ * after sunset with nothing anywhere saying why. A skipped check must never
24826
+ * read as a broken one.
24827
+ */
24828
+ suspendedCondition: SceneConditionSchema.nullable().default(null),
24829
+ /** Named cause when `verdict === 'unknown'`. */
24830
+ unavailable: SceneUnavailableSchema.nullable(),
24831
+ /** Conditions that have at least one comparable reference — the coverage line
24832
+ * ("day ✓ · ir ✓ · dusk ✗") that turns a silent fallback into a visible fact. */
24833
+ coveredConditions: array(SceneConditionSchema)
24008
24834
  });
24009
24835
  var SceneMonitorStatusSchema = object({
24010
24836
  monitors: array(SceneMonitorSchema),
@@ -24037,7 +24863,15 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24037
24863
  "both"
24038
24864
  ]).optional(),
24039
24865
  checkIntervalSec: number().optional(),
24040
- check: SceneCheckSchema.optional()
24866
+ check: SceneCheckSchema.optional(),
24867
+ emit: _enum(["latched", "live"]).optional(),
24868
+ quietSeconds: number().int().min(0).max(3600).optional(),
24869
+ minObservationSpacingSec: number().int().min(0).max(3600).optional(),
24870
+ anchorThreshold: number().min(0).max(1).optional(),
24871
+ autoRestore: boolean().optional(),
24872
+ onUncoveredCondition: SceneUncoveredPolicySchema.optional(),
24873
+ /** `null` clears the vision-model adjudicator. */
24874
+ confirm: SceneConfirmSchema.nullable().optional()
24041
24875
  })
24042
24876
  }), _void(), {
24043
24877
  kind: "mutation",
@@ -24074,6 +24908,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), SceneMonitorStatusSche
24074
24908
  }), _void(), {
24075
24909
  kind: "mutation",
24076
24910
  auth: "admin"
24911
+ }), method(object({
24912
+ deviceId: number(),
24913
+ monitorId: string(),
24914
+ /** Defaults to TRUE at the provider seam — see `SCENE_RESET_RECAPTURES`. */
24915
+ recapture: boolean().optional()
24916
+ }), _void(), {
24917
+ kind: "mutation",
24918
+ auth: "admin"
24077
24919
  });
24078
24920
  /**
24079
24921
  * Per-stage gating mode applied to the zones a rule references.
@@ -24227,6 +25069,16 @@ var CamStreamDescriptorSchema = object({
24227
25069
  /** Transport-specific opaque metadata (e.g. rfc4571 SDP). */
24228
25070
  metadata: record(string(), unknown()).optional()
24229
25071
  });
25072
+ object({
25073
+ /** The descriptors as last built from a real camera response. Never a guess:
25074
+ * a failed or refused build writes NOTHING, so a restored catalog is always
25075
+ * one the camera itself once produced. */
25076
+ descriptors: array(CamStreamDescriptorSchema),
25077
+ /** Ms epoch of the build that produced {@link descriptors}. Lets the wake
25078
+ * path decide whether the camera's own awake window is worth spending on a
25079
+ * re-read. */
25080
+ lastFetchedAt: number()
25081
+ });
24230
25082
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CamStreamDescriptorSchema).readonly());
24231
25083
  /** One of the camera's stream profiles. */
24232
25084
  var StreamProfileSchema = _enum([
@@ -24382,12 +25234,64 @@ var NetworkAddressSchema = object({
24382
25234
  family: string(),
24383
25235
  internal: boolean()
24384
25236
  });
25237
+ /**
25238
+ * Provenance of the site coordinates, and the whole reason this is not just two
25239
+ * numbers.
25240
+ *
25241
+ * - `operator-set` — a human typed it, or accepted a detection. Authoritative;
25242
+ * nothing overwrites it.
25243
+ * - `derived-from-ip` — the hub geolocated its own public IP once, because a
25244
+ * default that is right to a few kilometres beats the coarse UTC clock split
25245
+ * the sun-times consumers otherwise fall back to.
25246
+ *
25247
+ * The UI shows which one it is. An operator who cannot tell a guess from their
25248
+ * own input will eventually trust the guess.
25249
+ */
25250
+ var SiteLocationSourceSchema = _enum(["operator-set", "derived-from-ip"]);
25251
+ /**
25252
+ * The read shape: the location plus the honest state of the one-shot derivation.
25253
+ *
25254
+ * `derivationAttemptedAt` is what makes the "one call, ever" contract
25255
+ * inspectable. When it is set and `location` is null, the geo-IP lookup ran and
25256
+ * failed; the hub will NOT try again on its own — the fallback is declared
25257
+ * (consumers degrade to their own last resort) and the operator either types the
25258
+ * coordinates or presses detect.
25259
+ */
25260
+ var SiteLocationStatusSchema = object({
25261
+ location: object({
25262
+ /** WGS84 decimal degrees. */
25263
+ latitude: number().min(-90).max(90),
25264
+ longitude: number().min(-180).max(180),
25265
+ source: SiteLocationSourceSchema,
25266
+ /** Epoch ms the value was last written. */
25267
+ updatedAt: number(),
25268
+ /**
25269
+ * Human-readable place the geo-IP service reported ("Napoli, IT"). Display
25270
+ * only — never parsed, never matched on. Absent for an operator-typed value.
25271
+ */
25272
+ label: string().optional()
25273
+ }).nullable(),
25274
+ derivationAttemptedAt: number().nullable(),
25275
+ /** Why the last derivation failed, for the UI to show instead of a shrug. */
25276
+ derivationError: string().nullable()
25277
+ });
25278
+ /** `null` clears the location and re-arms nothing — the derivation stays spent. */
25279
+ var SetSiteLocationInputSchema = object({
25280
+ latitude: number().min(-90).max(90),
25281
+ longitude: number().min(-180).max(180)
25282
+ }).nullable();
24385
25283
  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(), {
24386
25284
  kind: "mutation",
24387
25285
  auth: "admin"
24388
25286
  }), method(_void(), _void(), {
24389
25287
  kind: "mutation",
24390
25288
  auth: "admin"
25289
+ }), method(_void(), SiteLocationStatusSchema), method(SetSiteLocationInputSchema, SiteLocationStatusSchema, {
25290
+ kind: "mutation",
25291
+ auth: "admin"
25292
+ }), method(_void(), SiteLocationStatusSchema, {
25293
+ kind: "mutation",
25294
+ auth: "admin"
24391
25295
  });
24392
25296
  object({
24393
25297
  /** True when the device's tamper switch / case-open contact is
@@ -27117,6 +28021,12 @@ Object.freeze({
27117
28021
  addonId: null,
27118
28022
  access: "create"
27119
28023
  },
28024
+ "llm.cancel": {
28025
+ capName: "llm",
28026
+ capScope: "system",
28027
+ addonId: null,
28028
+ access: "create"
28029
+ },
27120
28030
  "llm.deleteModel": {
27121
28031
  capName: "llm",
27122
28032
  capScope: "system",
@@ -27201,6 +28111,12 @@ Object.freeze({
27201
28111
  addonId: null,
27202
28112
  access: "view"
27203
28113
  },
28114
+ "llm.resolveModelRef": {
28115
+ capName: "llm",
28116
+ capScope: "system",
28117
+ addonId: null,
28118
+ access: "create"
28119
+ },
27204
28120
  "llm.setDefault": {
27205
28121
  capName: "llm",
27206
28122
  capScope: "system",
@@ -29367,6 +30283,12 @@ Object.freeze({
29367
30283
  addonId: null,
29368
30284
  access: "create"
29369
30285
  },
30286
+ "sceneMonitor.resetScene": {
30287
+ capName: "scene-monitor",
30288
+ capScope: "device",
30289
+ addonId: null,
30290
+ access: "delete"
30291
+ },
29370
30292
  "sceneMonitor.updateScene": {
29371
30293
  capName: "scene-monitor",
29372
30294
  capScope: "device",
@@ -30045,6 +30967,12 @@ Object.freeze({
30045
30967
  addonId: null,
30046
30968
  access: "create"
30047
30969
  },
30970
+ "system.detectSiteLocation": {
30971
+ capName: "system",
30972
+ capScope: "system",
30973
+ addonId: null,
30974
+ access: "create"
30975
+ },
30048
30976
  "system.featureFlags": {
30049
30977
  capName: "system",
30050
30978
  capScope: "system",
@@ -30063,6 +30991,12 @@ Object.freeze({
30063
30991
  addonId: null,
30064
30992
  access: "view"
30065
30993
  },
30994
+ "system.getSiteLocation": {
30995
+ capName: "system",
30996
+ capScope: "system",
30997
+ addonId: null,
30998
+ access: "view"
30999
+ },
30066
31000
  "system.health": {
30067
31001
  capName: "system",
30068
31002
  capScope: "system",
@@ -30087,6 +31021,12 @@ Object.freeze({
30087
31021
  addonId: null,
30088
31022
  access: "create"
30089
31023
  },
31024
+ "system.setSiteLocation": {
31025
+ capName: "system",
31026
+ capScope: "system",
31027
+ addonId: null,
31028
+ access: "create"
31029
+ },
30090
31030
  "terminalSession.adoptLegacyMonitor": {
30091
31031
  capName: "terminal-session",
30092
31032
  capScope: "system",
@@ -30658,6 +31598,1704 @@ Object.freeze({
30658
31598
  access: "create"
30659
31599
  }
30660
31600
  });
31601
+ Object.freeze({
31602
+ "accessories.setChildHidden": [{
31603
+ name: "childDeviceId",
31604
+ form: "single",
31605
+ optional: false
31606
+ }, {
31607
+ name: "deviceId",
31608
+ form: "single",
31609
+ optional: false
31610
+ }],
31611
+ "addonSettings.getDeviceSettings": [{
31612
+ name: "deviceId",
31613
+ form: "single",
31614
+ optional: false
31615
+ }],
31616
+ "addonSettings.updateDeviceSettings": [{
31617
+ name: "deviceId",
31618
+ form: "single",
31619
+ optional: false
31620
+ }],
31621
+ "alarmPanel.arm": [{
31622
+ name: "deviceId",
31623
+ form: "single",
31624
+ optional: false
31625
+ }],
31626
+ "alarmPanel.disarm": [{
31627
+ name: "deviceId",
31628
+ form: "single",
31629
+ optional: false
31630
+ }],
31631
+ "alarmPanel.trigger": [{
31632
+ name: "deviceId",
31633
+ form: "single",
31634
+ optional: false
31635
+ }],
31636
+ "audioAnalysis.resolveDeviceSettings": [{
31637
+ name: "deviceId",
31638
+ form: "single",
31639
+ optional: false
31640
+ }],
31641
+ "audioAnalyzer.classify": [{
31642
+ name: "deviceId",
31643
+ form: "single",
31644
+ optional: true
31645
+ }],
31646
+ "audioMetrics.getCurrentSnapshot": [{
31647
+ name: "deviceId",
31648
+ form: "single",
31649
+ optional: false
31650
+ }],
31651
+ "audioMetrics.getHistory": [{
31652
+ name: "deviceId",
31653
+ form: "single",
31654
+ optional: false
31655
+ }],
31656
+ "automationControl.disable": [{
31657
+ name: "deviceId",
31658
+ form: "single",
31659
+ optional: false
31660
+ }],
31661
+ "automationControl.enable": [{
31662
+ name: "deviceId",
31663
+ form: "single",
31664
+ optional: false
31665
+ }],
31666
+ "automationControl.trigger": [{
31667
+ name: "deviceId",
31668
+ form: "single",
31669
+ optional: false
31670
+ }],
31671
+ "battery.wakeForStream": [{
31672
+ name: "deviceId",
31673
+ form: "single",
31674
+ optional: false
31675
+ }],
31676
+ "brightness.setBrightness": [{
31677
+ name: "deviceId",
31678
+ form: "single",
31679
+ optional: false
31680
+ }],
31681
+ "button.press": [{
31682
+ name: "deviceId",
31683
+ form: "single",
31684
+ optional: false
31685
+ }],
31686
+ "cameraCredentials.getCredentials": [{
31687
+ name: "deviceId",
31688
+ form: "single",
31689
+ optional: false
31690
+ }],
31691
+ "cameraStreams.getBrokerStreams": [{
31692
+ name: "deviceId",
31693
+ form: "single",
31694
+ optional: false
31695
+ }],
31696
+ "cameraStreams.getCameraStreams": [{
31697
+ name: "deviceId",
31698
+ form: "single",
31699
+ optional: false
31700
+ }],
31701
+ "cameraStreams.getProfileRtspEntries": [{
31702
+ name: "deviceId",
31703
+ form: "single",
31704
+ optional: false
31705
+ }],
31706
+ "cameraStreams.getRtspEntries": [{
31707
+ name: "deviceId",
31708
+ form: "single",
31709
+ optional: false
31710
+ }],
31711
+ "cameraStreams.pickStream": [{
31712
+ name: "deviceId",
31713
+ form: "single",
31714
+ optional: false
31715
+ }],
31716
+ "climateControl.setFanMode": [{
31717
+ name: "deviceId",
31718
+ form: "single",
31719
+ optional: false
31720
+ }],
31721
+ "climateControl.setMode": [{
31722
+ name: "deviceId",
31723
+ form: "single",
31724
+ optional: false
31725
+ }],
31726
+ "climateControl.setPreset": [{
31727
+ name: "deviceId",
31728
+ form: "single",
31729
+ optional: false
31730
+ }],
31731
+ "climateControl.setSwingHorizontal": [{
31732
+ name: "deviceId",
31733
+ form: "single",
31734
+ optional: false
31735
+ }],
31736
+ "climateControl.setSwingVertical": [{
31737
+ name: "deviceId",
31738
+ form: "single",
31739
+ optional: false
31740
+ }],
31741
+ "climateControl.setTarget": [{
31742
+ name: "deviceId",
31743
+ form: "single",
31744
+ optional: false
31745
+ }],
31746
+ "climateControl.setTargetHumidity": [{
31747
+ name: "deviceId",
31748
+ form: "single",
31749
+ optional: false
31750
+ }],
31751
+ "climateControl.setTargetRange": [{
31752
+ name: "deviceId",
31753
+ form: "single",
31754
+ optional: false
31755
+ }],
31756
+ "color.setColor": [{
31757
+ name: "deviceId",
31758
+ form: "single",
31759
+ optional: false
31760
+ }],
31761
+ "consumables.reset": [{
31762
+ name: "deviceId",
31763
+ form: "single",
31764
+ optional: false
31765
+ }],
31766
+ "control.setValue": [{
31767
+ name: "deviceId",
31768
+ form: "single",
31769
+ optional: false
31770
+ }],
31771
+ "cover.close": [{
31772
+ name: "deviceId",
31773
+ form: "single",
31774
+ optional: false
31775
+ }],
31776
+ "cover.open": [{
31777
+ name: "deviceId",
31778
+ form: "single",
31779
+ optional: false
31780
+ }],
31781
+ "cover.setPosition": [{
31782
+ name: "deviceId",
31783
+ form: "single",
31784
+ optional: false
31785
+ }],
31786
+ "cover.setTiltPosition": [{
31787
+ name: "deviceId",
31788
+ form: "single",
31789
+ optional: false
31790
+ }],
31791
+ "cover.stop": [{
31792
+ name: "deviceId",
31793
+ form: "single",
31794
+ optional: false
31795
+ }],
31796
+ "dayNight.getOptions": [{
31797
+ name: "deviceId",
31798
+ form: "single",
31799
+ optional: false
31800
+ }],
31801
+ "dayNight.setSettings": [{
31802
+ name: "deviceId",
31803
+ form: "single",
31804
+ optional: false
31805
+ }],
31806
+ "decoder.createSession": [{
31807
+ name: "deviceId",
31808
+ form: "single",
31809
+ optional: true
31810
+ }],
31811
+ "deviceAdoption.release": [{
31812
+ name: "camDeviceId",
31813
+ form: "single",
31814
+ optional: false
31815
+ }],
31816
+ "deviceAdoption.resync": [{
31817
+ name: "camDeviceId",
31818
+ form: "single",
31819
+ optional: false
31820
+ }],
31821
+ "deviceDiscovery.adoptDevice": [{
31822
+ name: "deviceId",
31823
+ form: "single",
31824
+ optional: false
31825
+ }],
31826
+ "deviceDiscovery.listDiscovered": [{
31827
+ name: "deviceId",
31828
+ form: "single",
31829
+ optional: false
31830
+ }],
31831
+ "deviceDiscovery.refreshDiscovery": [{
31832
+ name: "deviceId",
31833
+ form: "single",
31834
+ optional: false
31835
+ }],
31836
+ "deviceDiscovery.releaseDevice": [{
31837
+ name: "childDeviceId",
31838
+ form: "single",
31839
+ optional: false
31840
+ }, {
31841
+ name: "deviceId",
31842
+ form: "single",
31843
+ optional: false
31844
+ }],
31845
+ "deviceManager.adoptionRelease": [{
31846
+ name: "camDeviceId",
31847
+ form: "single",
31848
+ optional: false
31849
+ }],
31850
+ "deviceManager.adoptionResync": [{
31851
+ name: "camDeviceId",
31852
+ form: "single",
31853
+ optional: false
31854
+ }],
31855
+ "deviceManager.applyInitialMeta": [{
31856
+ name: "deviceId",
31857
+ form: "single",
31858
+ optional: false
31859
+ }, {
31860
+ name: "linkDeviceId",
31861
+ form: "single",
31862
+ optional: true
31863
+ }],
31864
+ "deviceManager.disable": [{
31865
+ name: "deviceId",
31866
+ form: "single",
31867
+ optional: false
31868
+ }],
31869
+ "deviceManager.enable": [{
31870
+ name: "deviceId",
31871
+ form: "single",
31872
+ optional: false
31873
+ }],
31874
+ "deviceManager.getBindings": [{
31875
+ name: "deviceId",
31876
+ form: "single",
31877
+ optional: false
31878
+ }],
31879
+ "deviceManager.getChildren": [{
31880
+ name: "parentDeviceId",
31881
+ form: "single",
31882
+ optional: false
31883
+ }],
31884
+ "deviceManager.getConfigSchema": [{
31885
+ name: "deviceId",
31886
+ form: "single",
31887
+ optional: false
31888
+ }],
31889
+ "deviceManager.getDevice": [{
31890
+ name: "deviceId",
31891
+ form: "single",
31892
+ optional: false
31893
+ }],
31894
+ "deviceManager.getDeviceAggregate": [{
31895
+ name: "deviceId",
31896
+ form: "single",
31897
+ optional: false
31898
+ }],
31899
+ "deviceManager.getDeviceLiveInfoAggregate": [{
31900
+ name: "deviceId",
31901
+ form: "single",
31902
+ optional: false
31903
+ }],
31904
+ "deviceManager.getDeviceSettingsAggregate": [{
31905
+ name: "deviceId",
31906
+ form: "single",
31907
+ optional: false
31908
+ }],
31909
+ "deviceManager.getDeviceStatusAggregate": [{
31910
+ name: "deviceId",
31911
+ form: "single",
31912
+ optional: false
31913
+ }],
31914
+ "deviceManager.getDeviceStatusAggregateBatch": [{
31915
+ name: "deviceIds",
31916
+ form: "array",
31917
+ optional: false
31918
+ }],
31919
+ "deviceManager.getLinkedDevices": [{
31920
+ name: "deviceId",
31921
+ form: "single",
31922
+ optional: false
31923
+ }],
31924
+ "deviceManager.getSettingsSchema": [{
31925
+ name: "deviceId",
31926
+ form: "single",
31927
+ optional: false
31928
+ }],
31929
+ "deviceManager.getStreamProfileMap": [{
31930
+ name: "deviceId",
31931
+ form: "single",
31932
+ optional: false
31933
+ }],
31934
+ "deviceManager.getStreamSources": [{
31935
+ name: "deviceId",
31936
+ form: "single",
31937
+ optional: false
31938
+ }],
31939
+ "deviceManager.getWireableFields": [{
31940
+ name: "deviceId",
31941
+ form: "single",
31942
+ optional: false
31943
+ }],
31944
+ "deviceManager.loadConfig": [{
31945
+ name: "deviceId",
31946
+ form: "single",
31947
+ optional: false
31948
+ }],
31949
+ "deviceManager.loadMeta": [{
31950
+ name: "deviceId",
31951
+ form: "single",
31952
+ optional: false
31953
+ }],
31954
+ "deviceManager.loadRuntimeState": [{
31955
+ name: "deviceId",
31956
+ form: "single",
31957
+ optional: false
31958
+ }],
31959
+ "deviceManager.persistConfig": [{
31960
+ name: "deviceId",
31961
+ form: "single",
31962
+ optional: false
31963
+ }],
31964
+ "deviceManager.probeStreams": [{
31965
+ name: "deviceId",
31966
+ form: "single",
31967
+ optional: false
31968
+ }],
31969
+ "deviceManager.registerDevice": [{
31970
+ name: "parentDeviceId",
31971
+ form: "single",
31972
+ optional: true
31973
+ }],
31974
+ "deviceManager.remove": [{
31975
+ name: "deviceId",
31976
+ form: "single",
31977
+ optional: false
31978
+ }],
31979
+ "deviceManager.removeDevice": [{
31980
+ name: "deviceId",
31981
+ form: "single",
31982
+ optional: false
31983
+ }],
31984
+ "deviceManager.runDeviceAction": [{
31985
+ name: "deviceId",
31986
+ form: "single",
31987
+ optional: false
31988
+ }],
31989
+ "deviceManager.setChildLayout": [{
31990
+ name: "deviceId",
31991
+ form: "single",
31992
+ optional: false
31993
+ }],
31994
+ "deviceManager.setDisabled": [{
31995
+ name: "deviceId",
31996
+ form: "single",
31997
+ optional: false
31998
+ }],
31999
+ "deviceManager.setDisplay": [{
32000
+ name: "deviceId",
32001
+ form: "single",
32002
+ optional: false
32003
+ }],
32004
+ "deviceManager.setIntegrationId": [{
32005
+ name: "deviceId",
32006
+ form: "single",
32007
+ optional: false
32008
+ }],
32009
+ "deviceManager.setLinkDeviceId": [{
32010
+ name: "deviceId",
32011
+ form: "single",
32012
+ optional: false
32013
+ }, {
32014
+ name: "linkDeviceId",
32015
+ form: "single",
32016
+ optional: true
32017
+ }],
32018
+ "deviceManager.setLocation": [{
32019
+ name: "deviceId",
32020
+ form: "single",
32021
+ optional: false
32022
+ }],
32023
+ "deviceManager.setMetadata": [{
32024
+ name: "deviceId",
32025
+ form: "single",
32026
+ optional: false
32027
+ }],
32028
+ "deviceManager.setName": [{
32029
+ name: "deviceId",
32030
+ form: "single",
32031
+ optional: false
32032
+ }],
32033
+ "deviceManager.setPrimaryChildEntityId": [{
32034
+ name: "deviceId",
32035
+ form: "single",
32036
+ optional: false
32037
+ }],
32038
+ "deviceManager.setRole": [{
32039
+ name: "deviceId",
32040
+ form: "single",
32041
+ optional: false
32042
+ }],
32043
+ "deviceManager.setStreamProfileMap": [{
32044
+ name: "deviceId",
32045
+ form: "single",
32046
+ optional: false
32047
+ }],
32048
+ "deviceManager.setType": [{
32049
+ name: "deviceId",
32050
+ form: "single",
32051
+ optional: false
32052
+ }],
32053
+ "deviceManager.setWrapperActive": [{
32054
+ name: "deviceId",
32055
+ form: "single",
32056
+ optional: false
32057
+ }],
32058
+ "deviceManager.testField": [{
32059
+ name: "deviceId",
32060
+ form: "single",
32061
+ optional: false
32062
+ }],
32063
+ "deviceManager.updateConfig": [{
32064
+ name: "deviceId",
32065
+ form: "single",
32066
+ optional: false
32067
+ }],
32068
+ "deviceManager.updateDeviceField": [{
32069
+ name: "deviceId",
32070
+ form: "single",
32071
+ optional: false
32072
+ }],
32073
+ "deviceManager.updateDeviceFieldsBatch": [{
32074
+ name: "deviceId",
32075
+ form: "single",
32076
+ optional: false
32077
+ }],
32078
+ "deviceOps.getConfigEntries": [{
32079
+ name: "deviceId",
32080
+ form: "single",
32081
+ optional: false
32082
+ }],
32083
+ "deviceOps.getRawState": [{
32084
+ name: "deviceId",
32085
+ form: "single",
32086
+ optional: false
32087
+ }],
32088
+ "deviceOps.getSettingsSchema": [{
32089
+ name: "deviceId",
32090
+ form: "single",
32091
+ optional: false
32092
+ }],
32093
+ "deviceOps.getStreamSources": [{
32094
+ name: "deviceId",
32095
+ form: "single",
32096
+ optional: false
32097
+ }],
32098
+ "deviceOps.removeDevice": [{
32099
+ name: "deviceId",
32100
+ form: "single",
32101
+ optional: false
32102
+ }],
32103
+ "deviceOps.runAction": [{
32104
+ name: "deviceId",
32105
+ form: "single",
32106
+ optional: false
32107
+ }],
32108
+ "deviceOps.setConfig": [{
32109
+ name: "deviceId",
32110
+ form: "single",
32111
+ optional: false
32112
+ }],
32113
+ "deviceState.getCapSlice": [{
32114
+ name: "deviceId",
32115
+ form: "single",
32116
+ optional: false
32117
+ }],
32118
+ "deviceState.getSnapshot": [{
32119
+ name: "deviceId",
32120
+ form: "single",
32121
+ optional: false
32122
+ }],
32123
+ "deviceState.setCapSlice": [{
32124
+ name: "deviceId",
32125
+ form: "single",
32126
+ optional: false
32127
+ }],
32128
+ "events.getEventClipUrl": [{
32129
+ name: "deviceId",
32130
+ form: "single",
32131
+ optional: false
32132
+ }],
32133
+ "events.getEvents": [{
32134
+ name: "deviceId",
32135
+ form: "single",
32136
+ optional: false
32137
+ }],
32138
+ "events.getEventThumbnail": [{
32139
+ name: "deviceId",
32140
+ form: "single",
32141
+ optional: false
32142
+ }],
32143
+ "faceGallery.getFaceByTrack": [{
32144
+ name: "deviceId",
32145
+ form: "single",
32146
+ optional: false
32147
+ }],
32148
+ "faceGallery.listRecentFaces": [{
32149
+ name: "deviceId",
32150
+ form: "single",
32151
+ optional: true
32152
+ }],
32153
+ "fanControl.setDirection": [{
32154
+ name: "deviceId",
32155
+ form: "single",
32156
+ optional: false
32157
+ }],
32158
+ "fanControl.setOscillating": [{
32159
+ name: "deviceId",
32160
+ form: "single",
32161
+ optional: false
32162
+ }],
32163
+ "fanControl.setPercentage": [{
32164
+ name: "deviceId",
32165
+ form: "single",
32166
+ optional: false
32167
+ }],
32168
+ "fanControl.setPreset": [{
32169
+ name: "deviceId",
32170
+ form: "single",
32171
+ optional: false
32172
+ }],
32173
+ "humidifier.setMode": [{
32174
+ name: "deviceId",
32175
+ form: "single",
32176
+ optional: false
32177
+ }],
32178
+ "humidifier.setOn": [{
32179
+ name: "deviceId",
32180
+ form: "single",
32181
+ optional: false
32182
+ }],
32183
+ "humidifier.setTargetHumidity": [{
32184
+ name: "deviceId",
32185
+ form: "single",
32186
+ optional: false
32187
+ }],
32188
+ "imageSettings.getOptions": [{
32189
+ name: "deviceId",
32190
+ form: "single",
32191
+ optional: false
32192
+ }],
32193
+ "imageSettings.setSettings": [{
32194
+ name: "deviceId",
32195
+ form: "single",
32196
+ optional: false
32197
+ }],
32198
+ "intercom.endTalkSession": [{
32199
+ name: "deviceId",
32200
+ form: "single",
32201
+ optional: false
32202
+ }],
32203
+ "intercom.handleAnswer": [{
32204
+ name: "deviceId",
32205
+ form: "single",
32206
+ optional: false
32207
+ }],
32208
+ "intercom.pushTalkAudio": [{
32209
+ name: "deviceId",
32210
+ form: "single",
32211
+ optional: false
32212
+ }],
32213
+ "intercom.startSession": [{
32214
+ name: "deviceId",
32215
+ form: "single",
32216
+ optional: false
32217
+ }],
32218
+ "intercom.startTalkSession": [{
32219
+ name: "deviceId",
32220
+ form: "single",
32221
+ optional: false
32222
+ }],
32223
+ "intercom.stopSession": [{
32224
+ name: "deviceId",
32225
+ form: "single",
32226
+ optional: false
32227
+ }],
32228
+ "lawnMowerControl.dock": [{
32229
+ name: "deviceId",
32230
+ form: "single",
32231
+ optional: false
32232
+ }],
32233
+ "lawnMowerControl.pause": [{
32234
+ name: "deviceId",
32235
+ form: "single",
32236
+ optional: false
32237
+ }],
32238
+ "lawnMowerControl.startMowing": [{
32239
+ name: "deviceId",
32240
+ form: "single",
32241
+ optional: false
32242
+ }],
32243
+ "lockControl.lock": [{
32244
+ name: "deviceId",
32245
+ form: "single",
32246
+ optional: false
32247
+ }],
32248
+ "lockControl.open": [{
32249
+ name: "deviceId",
32250
+ form: "single",
32251
+ optional: false
32252
+ }],
32253
+ "lockControl.unlock": [{
32254
+ name: "deviceId",
32255
+ form: "single",
32256
+ optional: false
32257
+ }],
32258
+ "mediaPlayer.next": [{
32259
+ name: "deviceId",
32260
+ form: "single",
32261
+ optional: false
32262
+ }],
32263
+ "mediaPlayer.pause": [{
32264
+ name: "deviceId",
32265
+ form: "single",
32266
+ optional: false
32267
+ }],
32268
+ "mediaPlayer.play": [{
32269
+ name: "deviceId",
32270
+ form: "single",
32271
+ optional: false
32272
+ }],
32273
+ "mediaPlayer.playMedia": [{
32274
+ name: "deviceId",
32275
+ form: "single",
32276
+ optional: false
32277
+ }],
32278
+ "mediaPlayer.previous": [{
32279
+ name: "deviceId",
32280
+ form: "single",
32281
+ optional: false
32282
+ }],
32283
+ "mediaPlayer.seek": [{
32284
+ name: "deviceId",
32285
+ form: "single",
32286
+ optional: false
32287
+ }],
32288
+ "mediaPlayer.selectSource": [{
32289
+ name: "deviceId",
32290
+ form: "single",
32291
+ optional: false
32292
+ }],
32293
+ "mediaPlayer.setMute": [{
32294
+ name: "deviceId",
32295
+ form: "single",
32296
+ optional: false
32297
+ }],
32298
+ "mediaPlayer.setRepeat": [{
32299
+ name: "deviceId",
32300
+ form: "single",
32301
+ optional: false
32302
+ }],
32303
+ "mediaPlayer.setShuffle": [{
32304
+ name: "deviceId",
32305
+ form: "single",
32306
+ optional: false
32307
+ }],
32308
+ "mediaPlayer.setVolume": [{
32309
+ name: "deviceId",
32310
+ form: "single",
32311
+ optional: false
32312
+ }],
32313
+ "mediaPlayer.stop": [{
32314
+ name: "deviceId",
32315
+ form: "single",
32316
+ optional: false
32317
+ }],
32318
+ "motion.isDetected": [{
32319
+ name: "deviceId",
32320
+ form: "single",
32321
+ optional: false
32322
+ }],
32323
+ "motionDetection.analyze": [{
32324
+ name: "deviceId",
32325
+ form: "single",
32326
+ optional: false
32327
+ }],
32328
+ "motionDetection.removeCamera": [{
32329
+ name: "deviceId",
32330
+ form: "single",
32331
+ optional: false
32332
+ }],
32333
+ "motionTrigger.setMotionTrigger": [{
32334
+ name: "deviceId",
32335
+ form: "single",
32336
+ optional: false
32337
+ }],
32338
+ "motionZones.getOptions": [{
32339
+ name: "deviceId",
32340
+ form: "single",
32341
+ optional: false
32342
+ }],
32343
+ "motionZones.setZone": [{
32344
+ name: "deviceId",
32345
+ form: "single",
32346
+ optional: false
32347
+ }],
32348
+ "nativeObjectDetection.setEnabled": [{
32349
+ name: "deviceId",
32350
+ form: "single",
32351
+ optional: false
32352
+ }],
32353
+ "networkQuality.getDeviceStats": [{
32354
+ name: "deviceId",
32355
+ form: "single",
32356
+ optional: false
32357
+ }],
32358
+ "networkQuality.reportClientStats": [{
32359
+ name: "deviceId",
32360
+ form: "single",
32361
+ optional: false
32362
+ }],
32363
+ "notificationRules.setDeviceMuted": [{
32364
+ name: "deviceId",
32365
+ form: "single",
32366
+ optional: false
32367
+ }],
32368
+ "notifier.cancel": [{
32369
+ name: "deviceId",
32370
+ form: "single",
32371
+ optional: false
32372
+ }],
32373
+ "notifier.send": [{
32374
+ name: "deviceId",
32375
+ form: "single",
32376
+ optional: false
32377
+ }],
32378
+ "osd.setOverlay": [{
32379
+ name: "deviceId",
32380
+ form: "single",
32381
+ optional: false
32382
+ }],
32383
+ "osdManager.clearSlotBinding": [{
32384
+ name: "deviceId",
32385
+ form: "single",
32386
+ optional: false
32387
+ }],
32388
+ "osdManager.copyDeviceConfiguration": [{
32389
+ name: "sourceDeviceId",
32390
+ form: "single",
32391
+ optional: false
32392
+ }, {
32393
+ name: "targetDeviceId",
32394
+ form: "single",
32395
+ optional: false
32396
+ }],
32397
+ "osdManager.getDeviceOsd": [{
32398
+ name: "deviceId",
32399
+ form: "single",
32400
+ optional: false
32401
+ }],
32402
+ "osdManager.getSourceCatalog": [{
32403
+ name: "deviceId",
32404
+ form: "single",
32405
+ optional: false
32406
+ }],
32407
+ "osdManager.previewSlot": [{
32408
+ name: "deviceId",
32409
+ form: "single",
32410
+ optional: false
32411
+ }],
32412
+ "osdManager.renderDevice": [{
32413
+ name: "deviceId",
32414
+ form: "single",
32415
+ optional: false
32416
+ }],
32417
+ "osdManager.setSlotBinding": [{
32418
+ name: "deviceId",
32419
+ form: "single",
32420
+ optional: false
32421
+ }],
32422
+ "petFeeder.callPet": [{
32423
+ name: "deviceId",
32424
+ form: "single",
32425
+ optional: false
32426
+ }],
32427
+ "petFeeder.cancelFeed": [{
32428
+ name: "deviceId",
32429
+ form: "single",
32430
+ optional: false
32431
+ }],
32432
+ "petFeeder.feed": [{
32433
+ name: "deviceId",
32434
+ form: "single",
32435
+ optional: false
32436
+ }],
32437
+ "petFeeder.markFoodReplenished": [{
32438
+ name: "deviceId",
32439
+ form: "single",
32440
+ optional: false
32441
+ }],
32442
+ "petFeeder.playSound": [{
32443
+ name: "deviceId",
32444
+ form: "single",
32445
+ optional: false
32446
+ }],
32447
+ "petFeeder.resetDesiccant": [{
32448
+ name: "deviceId",
32449
+ form: "single",
32450
+ optional: false
32451
+ }],
32452
+ "petFeeder.setChildLock": [{
32453
+ name: "deviceId",
32454
+ form: "single",
32455
+ optional: false
32456
+ }],
32457
+ "petFeeder.setFeedSound": [{
32458
+ name: "deviceId",
32459
+ form: "single",
32460
+ optional: false
32461
+ }],
32462
+ "petFeeder.setIndicatorLight": [{
32463
+ name: "deviceId",
32464
+ form: "single",
32465
+ optional: false
32466
+ }],
32467
+ "petFeeder.setVolume": [{
32468
+ name: "deviceId",
32469
+ form: "single",
32470
+ optional: false
32471
+ }],
32472
+ "pipelineAnalytics.clearTracks": [{
32473
+ name: "deviceId",
32474
+ form: "single",
32475
+ optional: false
32476
+ }],
32477
+ "pipelineAnalytics.completeRetrainTrack": [{
32478
+ name: "deviceId",
32479
+ form: "single",
32480
+ optional: false
32481
+ }],
32482
+ "pipelineAnalytics.deleteDeviceEvents": [{
32483
+ name: "deviceId",
32484
+ form: "single",
32485
+ optional: false
32486
+ }],
32487
+ "pipelineAnalytics.deleteTracks": [{
32488
+ name: "deviceId",
32489
+ form: "single",
32490
+ optional: false
32491
+ }],
32492
+ "pipelineAnalytics.deselectRetrainFrame": [{
32493
+ name: "deviceId",
32494
+ form: "single",
32495
+ optional: false
32496
+ }],
32497
+ "pipelineAnalytics.getActiveTracks": [{
32498
+ name: "deviceId",
32499
+ form: "single",
32500
+ optional: false
32501
+ }],
32502
+ "pipelineAnalytics.getAudioEvents": [{
32503
+ name: "deviceId",
32504
+ form: "single",
32505
+ optional: false
32506
+ }],
32507
+ "pipelineAnalytics.getEventDensity": [{
32508
+ name: "deviceId",
32509
+ form: "single",
32510
+ optional: false
32511
+ }],
32512
+ "pipelineAnalytics.getEventMedia": [{
32513
+ name: "deviceId",
32514
+ form: "single",
32515
+ optional: false
32516
+ }],
32517
+ "pipelineAnalytics.getKeyEvents": [{
32518
+ name: "deviceId",
32519
+ form: "single",
32520
+ optional: false
32521
+ }],
32522
+ "pipelineAnalytics.getMotionEvents": [{
32523
+ name: "deviceId",
32524
+ form: "single",
32525
+ optional: false
32526
+ }],
32527
+ "pipelineAnalytics.getObjectEvents": [{
32528
+ name: "deviceId",
32529
+ form: "single",
32530
+ optional: false
32531
+ }],
32532
+ "pipelineAnalytics.getRetrainExportUrl": [{
32533
+ name: "deviceIds",
32534
+ form: "array",
32535
+ optional: true
32536
+ }],
32537
+ "pipelineAnalytics.getSensorEvents": [{
32538
+ name: "deviceId",
32539
+ form: "single",
32540
+ optional: false
32541
+ }],
32542
+ "pipelineAnalytics.getTrack": [{
32543
+ name: "deviceId",
32544
+ form: "single",
32545
+ optional: false
32546
+ }],
32547
+ "pipelineAnalytics.getTrackMedia": [{
32548
+ name: "deviceId",
32549
+ form: "single",
32550
+ optional: false
32551
+ }],
32552
+ "pipelineAnalytics.getTrainingExportSummary": [{
32553
+ name: "deviceIds",
32554
+ form: "array",
32555
+ optional: true
32556
+ }],
32557
+ "pipelineAnalytics.getTrainingExportUrl": [{
32558
+ name: "deviceIds",
32559
+ form: "array",
32560
+ optional: true
32561
+ }],
32562
+ "pipelineAnalytics.listEventKinds": [{
32563
+ name: "deviceId",
32564
+ form: "single",
32565
+ optional: false
32566
+ }],
32567
+ "pipelineAnalytics.listEventKindsBatch": [{
32568
+ name: "deviceIds",
32569
+ form: "array",
32570
+ optional: false
32571
+ }],
32572
+ "pipelineAnalytics.listOpsLog": [{
32573
+ name: "deviceId",
32574
+ form: "single",
32575
+ optional: true
32576
+ }],
32577
+ "pipelineAnalytics.listRecentTracks": [{
32578
+ name: "deviceIds",
32579
+ form: "array",
32580
+ optional: false
32581
+ }],
32582
+ "pipelineAnalytics.listRetrainStaging": [{
32583
+ name: "deviceIds",
32584
+ form: "array",
32585
+ optional: true
32586
+ }],
32587
+ "pipelineAnalytics.listTrackMedia": [{
32588
+ name: "deviceId",
32589
+ form: "single",
32590
+ optional: false
32591
+ }],
32592
+ "pipelineAnalytics.listTracks": [{
32593
+ name: "deviceId",
32594
+ form: "single",
32595
+ optional: false
32596
+ }],
32597
+ "pipelineAnalytics.proposeRetrainAnnotations": [{
32598
+ name: "deviceId",
32599
+ form: "single",
32600
+ optional: false
32601
+ }],
32602
+ "pipelineAnalytics.pruneEventsBefore": [{
32603
+ name: "deviceId",
32604
+ form: "single",
32605
+ optional: false
32606
+ }],
32607
+ "pipelineAnalytics.pruneTracksBefore": [{
32608
+ name: "deviceId",
32609
+ form: "single",
32610
+ optional: false
32611
+ }],
32612
+ "pipelineAnalytics.rebuildObjectEmbeddings": [{
32613
+ name: "deviceId",
32614
+ form: "single",
32615
+ optional: true
32616
+ }],
32617
+ "pipelineAnalytics.restageRetrainTrack": [{
32618
+ name: "deviceId",
32619
+ form: "single",
32620
+ optional: false
32621
+ }],
32622
+ "pipelineAnalytics.saveRetrainAnnotations": [{
32623
+ name: "deviceId",
32624
+ form: "single",
32625
+ optional: false
32626
+ }],
32627
+ "pipelineAnalytics.searchObjectEvents": [{
32628
+ name: "deviceId",
32629
+ form: "single",
32630
+ optional: true
32631
+ }],
32632
+ "pipelineAnalytics.selectRetrainFrames": [{
32633
+ name: "deviceId",
32634
+ form: "single",
32635
+ optional: false
32636
+ }],
32637
+ "pipelineAnalytics.setTrackFlags": [{
32638
+ name: "deviceId",
32639
+ form: "single",
32640
+ optional: false
32641
+ }],
32642
+ "pipelineAnalytics.wipeAllAnalytics": [{
32643
+ name: "deviceId",
32644
+ form: "single",
32645
+ optional: false
32646
+ }],
32647
+ "pipelineExecutor.runPipeline": [{
32648
+ name: "deviceId",
32649
+ form: "single",
32650
+ optional: true
32651
+ }],
32652
+ "pipelineExecutor.runPipelineBatch": [{
32653
+ name: "deviceId",
32654
+ form: "single",
32655
+ optional: true
32656
+ }],
32657
+ "pipelineOrchestrator.assignAudio": [{
32658
+ name: "deviceId",
32659
+ form: "single",
32660
+ optional: false
32661
+ }],
32662
+ "pipelineOrchestrator.assignPipeline": [{
32663
+ name: "deviceId",
32664
+ form: "single",
32665
+ optional: false
32666
+ }],
32667
+ "pipelineOrchestrator.getAudioAssignment": [{
32668
+ name: "deviceId",
32669
+ form: "single",
32670
+ optional: false
32671
+ }],
32672
+ "pipelineOrchestrator.getCameraMetrics": [{
32673
+ name: "deviceId",
32674
+ form: "single",
32675
+ optional: false
32676
+ }],
32677
+ "pipelineOrchestrator.getCameraSettings": [{
32678
+ name: "deviceId",
32679
+ form: "single",
32680
+ optional: false
32681
+ }],
32682
+ "pipelineOrchestrator.getCameraStatus": [{
32683
+ name: "deviceId",
32684
+ form: "single",
32685
+ optional: false
32686
+ }],
32687
+ "pipelineOrchestrator.getCameraStatuses": [{
32688
+ name: "deviceIds",
32689
+ form: "array",
32690
+ optional: true
32691
+ }],
32692
+ "pipelineOrchestrator.getCameraStepOverrides": [{
32693
+ name: "deviceId",
32694
+ form: "single",
32695
+ optional: false
32696
+ }],
32697
+ "pipelineOrchestrator.getCameraSwitches": [{
32698
+ name: "deviceId",
32699
+ form: "single",
32700
+ optional: false
32701
+ }],
32702
+ "pipelineOrchestrator.getPipelineAssignment": [{
32703
+ name: "deviceId",
32704
+ form: "single",
32705
+ optional: false
32706
+ }],
32707
+ "pipelineOrchestrator.getPipelineDevicePin": [{
32708
+ name: "deviceId",
32709
+ form: "single",
32710
+ optional: false
32711
+ }],
32712
+ "pipelineOrchestrator.resolvePipeline": [{
32713
+ name: "deviceId",
32714
+ form: "single",
32715
+ optional: false
32716
+ }],
32717
+ "pipelineOrchestrator.setCameraPipelineForAgent": [{
32718
+ name: "deviceId",
32719
+ form: "single",
32720
+ optional: false
32721
+ }],
32722
+ "pipelineOrchestrator.setCameraStepOverride": [{
32723
+ name: "deviceId",
32724
+ form: "single",
32725
+ optional: false
32726
+ }],
32727
+ "pipelineOrchestrator.setCameraStepToggle": [{
32728
+ name: "deviceId",
32729
+ form: "single",
32730
+ optional: false
32731
+ }],
32732
+ "pipelineOrchestrator.setCameraSwitch": [{
32733
+ name: "deviceId",
32734
+ form: "single",
32735
+ optional: false
32736
+ }],
32737
+ "pipelineOrchestrator.setPipelineDevicePin": [{
32738
+ name: "deviceId",
32739
+ form: "single",
32740
+ optional: false
32741
+ }],
32742
+ "pipelineOrchestrator.unassignAudio": [{
32743
+ name: "deviceId",
32744
+ form: "single",
32745
+ optional: false
32746
+ }],
32747
+ "pipelineOrchestrator.unassignPipeline": [{
32748
+ name: "deviceId",
32749
+ form: "single",
32750
+ optional: false
32751
+ }],
32752
+ "pipelineRunner.attachCamera": [{
32753
+ name: "deviceId",
32754
+ form: "single",
32755
+ optional: false
32756
+ }],
32757
+ "pipelineRunner.detachCamera": [{
32758
+ name: "deviceId",
32759
+ form: "single",
32760
+ optional: false
32761
+ }],
32762
+ "pipelineRunner.getCameraMetrics": [{
32763
+ name: "deviceId",
32764
+ form: "single",
32765
+ optional: false
32766
+ }],
32767
+ "pipelineRunner.reportMotion": [{
32768
+ name: "deviceId",
32769
+ form: "single",
32770
+ optional: false
32771
+ }],
32772
+ "pipelineRunner.runDetailSubtree": [{
32773
+ name: "deviceId",
32774
+ form: "single",
32775
+ optional: false
32776
+ }],
32777
+ "pipelineRunner.runStatelessStep": [{
32778
+ name: "sourceDeviceId",
32779
+ form: "single",
32780
+ optional: false
32781
+ }],
32782
+ "plateGallery.getPlateByTrack": [{
32783
+ name: "deviceId",
32784
+ form: "single",
32785
+ optional: false
32786
+ }],
32787
+ "plateGallery.listPlates": [{
32788
+ name: "deviceId",
32789
+ form: "single",
32790
+ optional: true
32791
+ }],
32792
+ "privacyMask.getOptions": [{
32793
+ name: "deviceId",
32794
+ form: "single",
32795
+ optional: false
32796
+ }],
32797
+ "privacyMask.setAudioEnabled": [{
32798
+ name: "deviceId",
32799
+ form: "single",
32800
+ optional: false
32801
+ }],
32802
+ "privacyMask.setMask": [{
32803
+ name: "deviceId",
32804
+ form: "single",
32805
+ optional: false
32806
+ }],
32807
+ "ptz.continuousMove": [{
32808
+ name: "deviceId",
32809
+ form: "single",
32810
+ optional: false
32811
+ }],
32812
+ "ptz.deletePreset": [{
32813
+ name: "deviceId",
32814
+ form: "single",
32815
+ optional: false
32816
+ }],
32817
+ "ptz.getOptions": [{
32818
+ name: "deviceId",
32819
+ form: "single",
32820
+ optional: false
32821
+ }],
32822
+ "ptz.getPosition": [{
32823
+ name: "deviceId",
32824
+ form: "single",
32825
+ optional: false
32826
+ }],
32827
+ "ptz.getPresets": [{
32828
+ name: "deviceId",
32829
+ form: "single",
32830
+ optional: false
32831
+ }],
32832
+ "ptz.goHome": [{
32833
+ name: "deviceId",
32834
+ form: "single",
32835
+ optional: false
32836
+ }],
32837
+ "ptz.goToPreset": [{
32838
+ name: "deviceId",
32839
+ form: "single",
32840
+ optional: false
32841
+ }],
32842
+ "ptz.move": [{
32843
+ name: "deviceId",
32844
+ form: "single",
32845
+ optional: false
32846
+ }],
32847
+ "ptz.savePreset": [{
32848
+ name: "deviceId",
32849
+ form: "single",
32850
+ optional: false
32851
+ }],
32852
+ "ptz.setAutofocus": [{
32853
+ name: "deviceId",
32854
+ form: "single",
32855
+ optional: false
32856
+ }],
32857
+ "ptz.stop": [{
32858
+ name: "deviceId",
32859
+ form: "single",
32860
+ optional: false
32861
+ }],
32862
+ "ptzAutotrack.getSettings": [{
32863
+ name: "deviceId",
32864
+ form: "single",
32865
+ optional: false
32866
+ }],
32867
+ "ptzAutotrack.getStatus": [{
32868
+ name: "deviceId",
32869
+ form: "single",
32870
+ optional: false
32871
+ }],
32872
+ "ptzAutotrack.setEnabled": [{
32873
+ name: "deviceId",
32874
+ form: "single",
32875
+ optional: false
32876
+ }],
32877
+ "ptzAutotrack.setSettings": [{
32878
+ name: "deviceId",
32879
+ form: "single",
32880
+ optional: false
32881
+ }],
32882
+ "reboot.reboot": [{
32883
+ name: "deviceId",
32884
+ form: "single",
32885
+ optional: false
32886
+ }],
32887
+ "recording.deleteFootprint": [{
32888
+ name: "deviceId",
32889
+ form: "single",
32890
+ optional: false
32891
+ }],
32892
+ "recording.getAvailability": [{
32893
+ name: "deviceId",
32894
+ form: "single",
32895
+ optional: false
32896
+ }],
32897
+ "recording.getDaysWithRecordings": [{
32898
+ name: "deviceId",
32899
+ form: "single",
32900
+ optional: false
32901
+ }],
32902
+ "recording.getDeviceConfig": [{
32903
+ name: "deviceId",
32904
+ form: "single",
32905
+ optional: false
32906
+ }],
32907
+ "recording.getPlaybackManifest": [{
32908
+ name: "deviceId",
32909
+ form: "single",
32910
+ optional: false
32911
+ }],
32912
+ "recording.listOpsLog": [{
32913
+ name: "deviceId",
32914
+ form: "single",
32915
+ optional: true
32916
+ }],
32917
+ "recording.locateSegment": [{
32918
+ name: "deviceId",
32919
+ form: "single",
32920
+ optional: false
32921
+ }],
32922
+ "recording.pruneFootage": [{
32923
+ name: "deviceId",
32924
+ form: "single",
32925
+ optional: false
32926
+ }],
32927
+ "recording.readGopBytes": [{
32928
+ name: "deviceId",
32929
+ form: "single",
32930
+ optional: false
32931
+ }],
32932
+ "recording.readSegmentBytes": [{
32933
+ name: "deviceId",
32934
+ form: "single",
32935
+ optional: false
32936
+ }],
32937
+ "recording.relocateFootage": [{
32938
+ name: "deviceId",
32939
+ form: "single",
32940
+ optional: true
32941
+ }],
32942
+ "recording.renderClip": [{
32943
+ name: "deviceId",
32944
+ form: "single",
32945
+ optional: false
32946
+ }],
32947
+ "recording.renderGif": [{
32948
+ name: "deviceId",
32949
+ form: "single",
32950
+ optional: false
32951
+ }],
32952
+ "recording.rescanStorage": [{
32953
+ name: "deviceId",
32954
+ form: "single",
32955
+ optional: false
32956
+ }],
32957
+ "recording.setDeviceConfig": [{
32958
+ name: "deviceId",
32959
+ form: "single",
32960
+ optional: false
32961
+ }],
32962
+ "recording.startStorageMigrationMove": [{
32963
+ name: "deviceId",
32964
+ form: "single",
32965
+ optional: true
32966
+ }],
32967
+ "recordingExport.createExport": [{
32968
+ name: "deviceId",
32969
+ form: "single",
32970
+ optional: false
32971
+ }],
32972
+ "recordingExport.listExports": [{
32973
+ name: "deviceId",
32974
+ form: "single",
32975
+ optional: true
32976
+ }],
32977
+ "sceneMonitor.captureReference": [{
32978
+ name: "deviceId",
32979
+ form: "single",
32980
+ optional: false
32981
+ }],
32982
+ "sceneMonitor.createScene": [{
32983
+ name: "deviceId",
32984
+ form: "single",
32985
+ optional: false
32986
+ }],
32987
+ "sceneMonitor.deleteReference": [{
32988
+ name: "deviceId",
32989
+ form: "single",
32990
+ optional: false
32991
+ }],
32992
+ "sceneMonitor.deleteScene": [{
32993
+ name: "deviceId",
32994
+ form: "single",
32995
+ optional: false
32996
+ }],
32997
+ "sceneMonitor.listScenes": [{
32998
+ name: "deviceId",
32999
+ form: "single",
33000
+ optional: false
33001
+ }],
33002
+ "sceneMonitor.recheckNow": [{
33003
+ name: "deviceId",
33004
+ form: "single",
33005
+ optional: false
33006
+ }],
33007
+ "sceneMonitor.resetScene": [{
33008
+ name: "deviceId",
33009
+ form: "single",
33010
+ optional: false
33011
+ }],
33012
+ "sceneMonitor.updateScene": [{
33013
+ name: "deviceId",
33014
+ form: "single",
33015
+ optional: false
33016
+ }],
33017
+ "scriptRunner.run": [{
33018
+ name: "deviceId",
33019
+ form: "single",
33020
+ optional: false
33021
+ }],
33022
+ "scriptRunner.stop": [{
33023
+ name: "deviceId",
33024
+ form: "single",
33025
+ optional: false
33026
+ }],
33027
+ "snapshot.getSnapshot": [{
33028
+ name: "deviceId",
33029
+ form: "single",
33030
+ optional: false
33031
+ }],
33032
+ "snapshot.getSnapshotLinks": [{
33033
+ name: "targets",
33034
+ form: "object-array",
33035
+ optional: false,
33036
+ itemField: "deviceId"
33037
+ }],
33038
+ "snapshot.getSnapshotOverview": [{
33039
+ name: "deviceIds",
33040
+ form: "array",
33041
+ optional: false
33042
+ }],
33043
+ "snapshot.invalidateCache": [{
33044
+ name: "deviceId",
33045
+ form: "single",
33046
+ optional: false
33047
+ }],
33048
+ "streamBroker.acquireEgressTranscode": [{
33049
+ name: "deviceId",
33050
+ form: "single",
33051
+ optional: false
33052
+ }],
33053
+ "streamBroker.assignProfile": [{
33054
+ name: "deviceId",
33055
+ form: "single",
33056
+ optional: false
33057
+ }],
33058
+ "streamBroker.getDeviceAudioMute": [{
33059
+ name: "deviceId",
33060
+ form: "single",
33061
+ optional: false
33062
+ }],
33063
+ "streamBroker.getStreamWithCodec": [{
33064
+ name: "deviceId",
33065
+ form: "single",
33066
+ optional: false
33067
+ }],
33068
+ "streamBroker.produceEventMedia": [{
33069
+ name: "deviceId",
33070
+ form: "single",
33071
+ optional: false
33072
+ }],
33073
+ "streamBroker.publishCameraStream": [{
33074
+ name: "deviceId",
33075
+ form: "single",
33076
+ optional: false
33077
+ }],
33078
+ "streamBroker.renderPreBufferClip": [{
33079
+ name: "deviceId",
33080
+ form: "single",
33081
+ optional: false
33082
+ }],
33083
+ "streamBroker.restartProfile": [{
33084
+ name: "deviceId",
33085
+ form: "single",
33086
+ optional: false
33087
+ }],
33088
+ "streamBroker.retractCameraStream": [{
33089
+ name: "deviceId",
33090
+ form: "single",
33091
+ optional: false
33092
+ }],
33093
+ "streamBroker.setDeviceAudioMute": [{
33094
+ name: "deviceId",
33095
+ form: "single",
33096
+ optional: false
33097
+ }],
33098
+ "streamBroker.unassignProfile": [{
33099
+ name: "deviceId",
33100
+ form: "single",
33101
+ optional: false
33102
+ }],
33103
+ "streamCatalog.getCatalog": [{
33104
+ name: "deviceId",
33105
+ form: "single",
33106
+ optional: false
33107
+ }],
33108
+ "streamParams.getConfigSchema": [{
33109
+ name: "deviceId",
33110
+ form: "single",
33111
+ optional: false
33112
+ }],
33113
+ "streamParams.getOptions": [{
33114
+ name: "deviceId",
33115
+ form: "single",
33116
+ optional: false
33117
+ }],
33118
+ "streamParams.setProfile": [{
33119
+ name: "deviceId",
33120
+ form: "single",
33121
+ optional: false
33122
+ }],
33123
+ "switch.setState": [{
33124
+ name: "deviceId",
33125
+ form: "single",
33126
+ optional: false
33127
+ }],
33128
+ "vacuumControl.locate": [{
33129
+ name: "deviceId",
33130
+ form: "single",
33131
+ optional: false
33132
+ }],
33133
+ "vacuumControl.pause": [{
33134
+ name: "deviceId",
33135
+ form: "single",
33136
+ optional: false
33137
+ }],
33138
+ "vacuumControl.returnToBase": [{
33139
+ name: "deviceId",
33140
+ form: "single",
33141
+ optional: false
33142
+ }],
33143
+ "vacuumControl.setFanSpeed": [{
33144
+ name: "deviceId",
33145
+ form: "single",
33146
+ optional: false
33147
+ }],
33148
+ "vacuumControl.start": [{
33149
+ name: "deviceId",
33150
+ form: "single",
33151
+ optional: false
33152
+ }],
33153
+ "vacuumControl.stop": [{
33154
+ name: "deviceId",
33155
+ form: "single",
33156
+ optional: false
33157
+ }],
33158
+ "valve.close": [{
33159
+ name: "deviceId",
33160
+ form: "single",
33161
+ optional: false
33162
+ }],
33163
+ "valve.open": [{
33164
+ name: "deviceId",
33165
+ form: "single",
33166
+ optional: false
33167
+ }],
33168
+ "valve.setPosition": [{
33169
+ name: "deviceId",
33170
+ form: "single",
33171
+ optional: false
33172
+ }],
33173
+ "valve.stop": [{
33174
+ name: "deviceId",
33175
+ form: "single",
33176
+ optional: false
33177
+ }],
33178
+ "videoclips.getClipPlayback": [{
33179
+ name: "deviceId",
33180
+ form: "single",
33181
+ optional: false
33182
+ }],
33183
+ "videoclips.listClips": [{
33184
+ name: "deviceId",
33185
+ form: "single",
33186
+ optional: false
33187
+ }],
33188
+ "waterHeater.setAway": [{
33189
+ name: "deviceId",
33190
+ form: "single",
33191
+ optional: false
33192
+ }],
33193
+ "waterHeater.setOperationMode": [{
33194
+ name: "deviceId",
33195
+ form: "single",
33196
+ optional: false
33197
+ }],
33198
+ "waterHeater.setTargetTemp": [{
33199
+ name: "deviceId",
33200
+ form: "single",
33201
+ optional: false
33202
+ }],
33203
+ "webrtcSession.addIceCandidate": [{
33204
+ name: "deviceId",
33205
+ form: "single",
33206
+ optional: false
33207
+ }],
33208
+ "webrtcSession.closeSession": [{
33209
+ name: "deviceId",
33210
+ form: "single",
33211
+ optional: false
33212
+ }],
33213
+ "webrtcSession.createSession": [{
33214
+ name: "deviceId",
33215
+ form: "single",
33216
+ optional: false
33217
+ }],
33218
+ "webrtcSession.getIceCandidates": [{
33219
+ name: "deviceId",
33220
+ form: "single",
33221
+ optional: false
33222
+ }],
33223
+ "webrtcSession.getSessionState": [{
33224
+ name: "deviceId",
33225
+ form: "single",
33226
+ optional: false
33227
+ }],
33228
+ "webrtcSession.handleAnswer": [{
33229
+ name: "deviceId",
33230
+ form: "single",
33231
+ optional: false
33232
+ }],
33233
+ "webrtcSession.handleOffer": [{
33234
+ name: "deviceId",
33235
+ form: "single",
33236
+ optional: false
33237
+ }],
33238
+ "webrtcSession.hasAdaptiveBitrate": [{
33239
+ name: "deviceId",
33240
+ form: "single",
33241
+ optional: false
33242
+ }],
33243
+ "webrtcSession.listStreams": [{
33244
+ name: "deviceId",
33245
+ form: "single",
33246
+ optional: false
33247
+ }],
33248
+ "zoneAnalytics.getCameraHistory": [{
33249
+ name: "deviceId",
33250
+ form: "single",
33251
+ optional: false
33252
+ }],
33253
+ "zoneAnalytics.getCurrentSnapshot": [{
33254
+ name: "deviceId",
33255
+ form: "single",
33256
+ optional: false
33257
+ }],
33258
+ "zoneAnalytics.getUnzonedHistory": [{
33259
+ name: "deviceId",
33260
+ form: "single",
33261
+ optional: false
33262
+ }],
33263
+ "zoneAnalytics.getZoneHistory": [{
33264
+ name: "deviceId",
33265
+ form: "single",
33266
+ optional: false
33267
+ }],
33268
+ "zoneRules.listRules": [{
33269
+ name: "deviceId",
33270
+ form: "single",
33271
+ optional: false
33272
+ }],
33273
+ "zoneRules.setRules": [{
33274
+ name: "deviceId",
33275
+ form: "single",
33276
+ optional: false
33277
+ }],
33278
+ "zones.addZone": [{
33279
+ name: "deviceId",
33280
+ form: "single",
33281
+ optional: false
33282
+ }],
33283
+ "zones.listZones": [{
33284
+ name: "deviceId",
33285
+ form: "single",
33286
+ optional: false
33287
+ }],
33288
+ "zones.removeZone": [{
33289
+ name: "deviceId",
33290
+ form: "single",
33291
+ optional: false
33292
+ }],
33293
+ "zones.updateZone": [{
33294
+ name: "deviceId",
33295
+ form: "single",
33296
+ optional: false
33297
+ }]
33298
+ });
30661
33299
  Object.freeze({
30662
33300
  "broker": "broker",
30663
33301
  "device-export": "device-export",