@camstack/addon-static-turn 1.1.19 → 1.1.21

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.
@@ -4628,7 +4628,7 @@ function _instanceof(cls, params = {}) {
4628
4628
  return inst;
4629
4629
  }
4630
4630
  //#endregion
4631
- //#region ../types/dist/sleep-CZDdRBua.mjs
4631
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4632
4632
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4633
4633
  EventCategory["SystemBoot"] = "system.boot";
4634
4634
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4814,6 +4814,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4814
4814
  */
4815
4815
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4816
4816
  /**
4817
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4818
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4819
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4820
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4821
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4822
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4823
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4824
+ * topology change, so a dropped event self-heals on the next one (plus the
4825
+ * broker's long backstop reconcile query).
4826
+ */
4827
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4828
+ /**
4817
4829
  * Periodic snapshot of per-node pipeline-runner load
4818
4830
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4819
4831
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5337,10 +5349,6 @@ function hydrateField(field, values) {
5337
5349
  };
5338
5350
  }
5339
5351
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5340
- if (field.type === "password") return {
5341
- ...field,
5342
- value: ""
5343
- };
5344
5352
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5345
5353
  return {
5346
5354
  ...field,
@@ -6724,6 +6732,21 @@ function method(input, output, options) {
6724
6732
  timeoutMs: options?.timeoutMs
6725
6733
  };
6726
6734
  }
6735
+ /**
6736
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6737
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6738
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6739
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6740
+ */
6741
+ function systemMethod(input, output, options) {
6742
+ return {
6743
+ ...method(input, output, options),
6744
+ systemOnly: true
6745
+ };
6746
+ }
6747
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6748
+ var VersionOutputSchema$1 = object({ version: string() });
6749
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6727
6750
  var StaticDirOutputSchema = object({ staticDir: string() });
6728
6751
  var VersionOutputSchema = object({ version: string() });
6729
6752
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6893,6 +6916,36 @@ var ModelFormatsSchema = object({
6893
6916
  tflite: ModelFormatEntrySchema.optional(),
6894
6917
  pt: ModelFormatEntrySchema.optional()
6895
6918
  });
6919
+ /**
6920
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6921
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6922
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6923
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6924
+ * resolution/download/persistence; this is a presentation overlay resolved back
6925
+ * to an `id`.
6926
+ */
6927
+ var ModelVariantGroupSchema = object({
6928
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6929
+ family: string(),
6930
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6931
+ tier: string(),
6932
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6933
+ precision: _enum(["fp32", "int8"]).optional(),
6934
+ /**
6935
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6936
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6937
+ * future performance variants plug into.
6938
+ */
6939
+ optimization: _enum(["standard", "fast"]).optional(),
6940
+ /**
6941
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6942
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6943
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6944
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6945
+ * the group so the selector can offer it as a variant axis.
6946
+ */
6947
+ resolution: number().int().positive().optional()
6948
+ });
6896
6949
  var ModelCatalogEntrySchema = object({
6897
6950
  id: string(),
6898
6951
  name: string(),
@@ -6922,7 +6975,43 @@ var ModelCatalogEntrySchema = object({
6922
6975
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6923
6976
  * Downloaded into the same modelsDir alongside the model file.
6924
6977
  */
6925
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6978
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6979
+ /**
6980
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6981
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6982
+ * model list and excluded from the auto format-default pick. Set on the
6983
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6984
+ * the active lineup stays the coherent curated ladder without deleting a
6985
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6986
+ * an explicit legacy id that has a build for the node's format.
6987
+ */
6988
+ legacy: boolean().optional(),
6989
+ /**
6990
+ * Measured quality/latency metadata — populated from the benchmark addon on
6991
+ * the real node classes. Absent = not yet measured (most entries today; the
6992
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
6993
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
6994
+ */
6995
+ metrics: object({
6996
+ map50: number().optional(),
6997
+ p95LatencyMs: record(string(), number()).optional()
6998
+ }).optional(),
6999
+ /**
7000
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7001
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7002
+ * the retraining addon and any future commercial distribution.
7003
+ */
7004
+ license: string().optional(),
7005
+ /**
7006
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7007
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7008
+ * of a family's sizes and quantizations collapse into one grouped picker
7009
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7010
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7011
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7012
+ * is a presentation overlay resolved back to an `id`.
7013
+ */
7014
+ group: ModelVariantGroupSchema.optional()
6926
7015
  });
6927
7016
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6928
7017
  format: literal("openvino"),
@@ -6983,8 +7072,8 @@ var RecordingModeSchema = _enum([
6983
7072
  "onAudioThreshold"
6984
7073
  ]);
6985
7074
  /**
6986
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6987
- * reads directly (never inferred from `rules`):
7075
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7076
+ * UI reads directly (never inferred from `rules`):
6988
7077
  * - `off` — not recording.
6989
7078
  * - `events` — record only around triggers (motion / audio threshold),
6990
7079
  * with pre/post-buffer.
@@ -8632,26 +8721,13 @@ DeviceType.Light, method(object({
8632
8721
  percentage: number().min(0).max(100),
8633
8722
  lastChangedAt: number()
8634
8723
  });
8724
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8635
8725
  var StreamFormatSchema = _enum([
8636
8726
  "webrtc",
8637
8727
  "hls",
8638
8728
  "mjpeg",
8639
8729
  "rtsp"
8640
8730
  ]);
8641
- var StreamInfoSchema = object({
8642
- streamId: string(),
8643
- format: StreamFormatSchema,
8644
- url: string().nullable(),
8645
- active: boolean()
8646
- });
8647
- method(object({
8648
- streamId: string(),
8649
- sourceUrl: string(),
8650
- codec: string().optional()
8651
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8652
- streamId: string(),
8653
- format: StreamFormatSchema
8654
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8655
8731
  var RtspRestreamEntrySchema = object({
8656
8732
  brokerId: string(),
8657
8733
  url: string(),
@@ -9316,7 +9392,7 @@ var ConsumablesStatusSchema = object({
9316
9392
  })),
9317
9393
  lastChangedAt: number()
9318
9394
  });
9319
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, method(object({
9395
+ Object.values(DeviceType), method(object({
9320
9396
  deviceId: number().int().nonnegative(),
9321
9397
  key: string().min(1)
9322
9398
  }), _void(), {
@@ -10231,7 +10307,7 @@ var BoundingBoxSchema = object({
10231
10307
  w: number(),
10232
10308
  h: number()
10233
10309
  });
10234
- var SpatialDetectionSchema = object({
10310
+ object({
10235
10311
  class: string(),
10236
10312
  originalClass: string(),
10237
10313
  score: number(),
@@ -10366,7 +10442,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10366
10442
  enabled: boolean(),
10367
10443
  modelId: string(),
10368
10444
  children: array(PipelineDefaultStepSchema).readonly(),
10369
- engine: PipelineEngineChoiceSchema.optional(),
10370
10445
  group: string().optional(),
10371
10446
  settings: record(string(), unknown()).optional()
10372
10447
  }));
@@ -10391,7 +10466,9 @@ var PipelineModelOptionSchema = object({
10391
10466
  formats: record(string(), object({
10392
10467
  downloaded: boolean(),
10393
10468
  sizeMB: number()
10394
- }))
10469
+ })),
10470
+ group: ModelVariantGroupSchema.optional(),
10471
+ legacy: boolean().optional()
10395
10472
  });
10396
10473
  var ConfigFieldBridge = custom();
10397
10474
  var PipelineAddonSchemaSchema = object({
@@ -10405,6 +10482,7 @@ var PipelineAddonSchemaSchema = object({
10405
10482
  defaultModelId: string(),
10406
10483
  defaultModelIdByFormat: record(string(), string()).optional(),
10407
10484
  enabledByDefault: boolean().optional(),
10485
+ backfillIntoExistingOverrides: boolean().optional(),
10408
10486
  defaultConfidence: number(),
10409
10487
  group: string().optional(),
10410
10488
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10421,11 +10499,6 @@ var PipelineSchemaSchema = object({
10421
10499
  selectedEngine: PipelineEngineChoiceSchema,
10422
10500
  slots: array(PipelineSlotSchemaSchema).readonly()
10423
10501
  });
10424
- var DetectorOutputSchema = object({
10425
- detections: array(SpatialDetectionSchema).readonly(),
10426
- inferenceMs: number(),
10427
- modelId: string()
10428
- });
10429
10502
  var EngineProvisioningSchema = object({
10430
10503
  runtimeId: _enum([
10431
10504
  "onnx",
@@ -10442,15 +10515,42 @@ var EngineProvisioningSchema = object({
10442
10515
  ]),
10443
10516
  progress: number().optional(),
10444
10517
  error: string().optional(),
10445
- nextRetryAt: number().optional()
10518
+ nextRetryAt: number().optional(),
10519
+ /**
10520
+ * Gate A (config-correctness gate at engine change): human-readable
10521
+ * config issues surfaced EAGERLY when the node's engine changes — model
10522
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10523
+ * has a <format> build"). Additive/optional: informational only, never
10524
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10525
+ * Absent/empty when the node-default tree resolves cleanly.
10526
+ */
10527
+ configIssues: array(string()).optional()
10446
10528
  });
10447
10529
  var PipelineStepInputSchema = lazy(() => object({
10448
10530
  addonId: string(),
10449
- modelId: string(),
10531
+ modelId: string().optional(),
10450
10532
  enabled: boolean().default(true),
10451
10533
  children: array(PipelineStepInputSchema).optional(),
10452
10534
  settings: record(string(), unknown()).optional()
10453
10535
  }));
10536
+ var ModelSubstitutionSchema = object({
10537
+ addonId: string(),
10538
+ chosen: string(),
10539
+ running: string(),
10540
+ format: string()
10541
+ });
10542
+ var PipelineValidationIssueSchema = object({
10543
+ addonId: string(),
10544
+ kind: _enum(["unknown-addon", "no-format-build"]),
10545
+ detail: string()
10546
+ });
10547
+ var PipelineValidationResultSchema = object({
10548
+ ok: boolean(),
10549
+ issues: array(PipelineValidationIssueSchema).readonly(),
10550
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10551
+ /** The node's `currentEngine.format` this validation ran against. */
10552
+ format: string()
10553
+ });
10454
10554
  var ReferenceImageEntrySchema = object({
10455
10555
  filename: string(),
10456
10556
  stepIds: array(string()).readonly().optional()
@@ -10521,7 +10621,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10521
10621
  })) }), object({ success: literal(true) }), {
10522
10622
  kind: "mutation",
10523
10623
  auth: "admin"
10524
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10624
+ }), method(object({ nodeId: string() }), object({
10625
+ success: literal(true),
10626
+ clearedDevices: number()
10627
+ }), {
10628
+ kind: "mutation",
10629
+ auth: "admin"
10630
+ }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({ steps: array(PipelineStepInputSchema) }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10525
10631
  name: string(),
10526
10632
  steps: array(PipelineTemplateStepSchema).readonly(),
10527
10633
  engine: PipelineEngineChoiceSchema
@@ -10538,10 +10644,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10538
10644
  modelId: string(),
10539
10645
  format: ModelFormatSchema$1
10540
10646
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10541
- addonId: string(),
10542
- frame: FrameInputSchema,
10543
- config: record(string(), unknown()).optional()
10544
- }), DetectorOutputSchema), method(object({
10545
10647
  engine: PipelineEngineChoiceSchema.optional(),
10546
10648
  steps: array(PipelineStepInputSchema).min(1),
10547
10649
  frame: FrameInputSchema.optional(),
@@ -10687,6 +10789,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10687
10789
  auth: "admin"
10688
10790
  }), object({ zones: array(ZoneSchema).readonly() });
10689
10791
  /**
10792
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10793
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10794
+ * so the caller supplies only the detection-res bbox divided by the detection
10795
+ * dims — no native resolution to plumb.
10796
+ */
10797
+ var NativeCropBboxSchema = object({
10798
+ x: number(),
10799
+ y: number(),
10800
+ w: number(),
10801
+ h: number()
10802
+ });
10803
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10804
+ var NativeCropResultSchema = object({
10805
+ /** Packed rgb (24-bit) pixels of the crop. */
10806
+ bytes: _instanceof(Uint8Array),
10807
+ width: number().int().positive(),
10808
+ height: number().int().positive()
10809
+ });
10810
+ /**
10690
10811
  * Per-camera tunable ranges + defaults. Single source of truth used
10691
10812
  * by both the Zod data schema (validation + default fallback) and
10692
10813
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10781,6 +10902,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10781
10902
  kind: literal("remote-restream"),
10782
10903
  /** The camera's source-owner node (slice 1: always the hub). */
10783
10904
  ownerNodeId: string(),
10905
+ /**
10906
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10907
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10908
+ * dials THIS host for the owner's restream, in preference to the
10909
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10910
+ */
10911
+ ownerReachableHost: string().optional(),
10784
10912
  /** Operator override for the owner host the runner dials. */
10785
10913
  hubHostnameOverride: string().optional()
10786
10914
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10789,13 +10917,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10789
10917
  * specific runner instance via `attachCamera`. Carries everything the
10790
10918
  * runner needs to subscribe to the local broker and execute inference.
10791
10919
  *
10792
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10793
- * optional `audio`) travels with the attach payload. The runner keeps it
10794
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10795
- * restart the orchestrator re-sends the latest snapshot.
10796
- *
10797
- * `engine`/`steps`/`audio` are optional during the additive migration
10798
- * window; once orchestrator + UI are migrated they become required.
10920
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10921
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10922
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10923
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10924
+ * node-local, resolved by the executing runner at dispatch time.
10799
10925
  */
10800
10926
  var RunnerCameraConfigSchema = object({
10801
10927
  deviceId: number(),
@@ -10846,14 +10972,11 @@ var RunnerCameraConfigSchema = object({
10846
10972
  */
10847
10973
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10848
10974
  pipelineEnabled: boolean().default(true),
10849
- /** Engine choice for video steps (runtime+backend+format). */
10850
- engine: PipelineEngineChoiceSchema.optional(),
10851
10975
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10852
10976
  steps: array(PipelineStepInputSchema).readonly().optional(),
10853
10977
  /** Audio classification branch. `enabled:false` disables, null skips. */
10854
10978
  audio: object({
10855
- engine: PipelineEngineChoiceSchema,
10856
- modelId: string(),
10979
+ modelId: string().optional(),
10857
10980
  enabled: boolean()
10858
10981
  }).nullable().optional(),
10859
10982
  /**
@@ -10940,7 +11063,11 @@ var RunnerLocalMetricsSchema = object({
10940
11063
  avgInferenceTimeMs: number(),
10941
11064
  queueDepth: number()
10942
11065
  });
10943
- method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly());
11066
+ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
11067
+ handle: FrameHandleSchema,
11068
+ bbox: NativeCropBboxSchema,
11069
+ maxWidth: number().int().positive().optional()
11070
+ }), NativeCropResultSchema.nullable());
10944
11071
  object({
10945
11072
  detected: boolean(),
10946
11073
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12234,7 +12361,9 @@ var AddonPageDeclarationSchema$1 = object({
12234
12361
  icon: string(),
12235
12362
  path: string(),
12236
12363
  remoteName: string(),
12237
- bundle: string()
12364
+ bundle: string(),
12365
+ section: string().optional(),
12366
+ sectionLabel: string().optional()
12238
12367
  });
12239
12368
  var AddonPageInfoSchema = object({
12240
12369
  addonId: string(),
@@ -12274,7 +12403,18 @@ var AddonPageDeclarationSchema = object({
12274
12403
  * the static-file route can compute an mtime-based cache-buster URL
12275
12404
  * without a separate filesystem stat.
12276
12405
  */
12277
- bundle: string()
12406
+ bundle: string(),
12407
+ /**
12408
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12409
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12410
+ * Any OTHER string creates (or joins) a custom section rendered after
12411
+ * the built-in groups; its label comes from `sectionLabel` (first
12412
+ * declaration wins), falling back to the id. Absent → the legacy
12413
+ * "Addon Pages" group.
12414
+ */
12415
+ section: string().optional(),
12416
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12417
+ sectionLabel: string().optional()
12278
12418
  });
12279
12419
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12280
12420
  var AddonHttpRouteSchema = object({
@@ -12490,6 +12630,17 @@ var WidgetMetadataSchema = object({
12490
12630
  deviceContext: boolean().default(false),
12491
12631
  integrationContext: boolean().default(false)
12492
12632
  }),
12633
+ /**
12634
+ * Loadable BEFORE authentication. The normal widget registry listing
12635
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12636
+ * (the login page) cannot discover a widget through it. A widget that
12637
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12638
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12639
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12640
+ * than the authenticated registry, and its bundle is served by the
12641
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12642
+ */
12643
+ preAuth: boolean().optional().default(false),
12493
12644
  /** Dashboard placement HINTS (operator can override per instance). */
12494
12645
  defaultSize: WidgetSizeEnum.default("md"),
12495
12646
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12791,6 +12942,66 @@ method(object({
12791
12942
  password: string()
12792
12943
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12793
12944
  /**
12945
+ * `login-method` — collection cap through which auth addons contribute
12946
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12947
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12948
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12949
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12950
+ * procedure aggregates them for the unauthenticated login page.
12951
+ *
12952
+ * A contribution is a discriminated union on `kind`:
12953
+ *
12954
+ * - `redirect` — a declarative button. The login page renders a generic
12955
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
12956
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
12957
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
12958
+ * login page needs NO change.
12959
+ *
12960
+ * - `widget` — a Module-Federation widget the login page mounts (via
12961
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
12962
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
12963
+ * addon bundle. The referenced widget also declares `preAuth: true` in
12964
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
12965
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
12966
+ *
12967
+ * Every contribution carries a `stage`:
12968
+ * - `primary` — shown on the first credentials screen (OIDC /
12969
+ * magic-link buttons; a future usernameless passkey).
12970
+ * - `second-factor` — shown AFTER the password leg, gated on the
12971
+ * returned `factors` (passkey-as-2FA today).
12972
+ *
12973
+ * `mount: skip` — the cap is read server-side by the core auth router
12974
+ * (`registry.getCollection('login-method')`), never mounted as its own
12975
+ * tRPC router.
12976
+ */
12977
+ /** When a login method renders in the two-phase login flow. */
12978
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
12979
+ /** One login-method contribution — redirect button OR pre-auth widget. */
12980
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
12981
+ kind: literal("redirect"),
12982
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
12983
+ id: string(),
12984
+ /** Operator-facing button label. */
12985
+ label: string(),
12986
+ /** lucide-react icon name. */
12987
+ icon: string().optional(),
12988
+ /** Addon-owned HTTP route the button navigates to (GET). */
12989
+ startUrl: string(),
12990
+ stage: LoginStageEnum
12991
+ }), object({
12992
+ kind: literal("widget"),
12993
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
12994
+ id: string(),
12995
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
12996
+ addonId: string(),
12997
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
12998
+ bundle: string(),
12999
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13000
+ remote: WidgetRemoteSchema,
13001
+ stage: LoginStageEnum
13002
+ })]);
13003
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13004
+ /**
12794
13005
  * Orchestrator-side destination metadata. The orchestrator computes
12795
13006
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12796
13007
  * (admin UI, restore flow) see one canonical key.
@@ -14894,7 +15105,17 @@ var TrackSchema = object({
14894
15105
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14895
15106
  totalDistance: number(),
14896
15107
  state: TrackStateSchema,
14897
- active: boolean()
15108
+ active: boolean(),
15109
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15110
+ * track expiry, recomputed on late label). Absent on legacy rows written
15111
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15112
+ importance: number().optional(),
15113
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15114
+ * "best" frame). Absent when the track produced no object events. */
15115
+ bestEventId: string().optional(),
15116
+ /** Tag of the importance sub-signal that dominated the score
15117
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15118
+ importanceReason: string().optional()
14898
15119
  });
14899
15120
  var BaseEventFields = {
14900
15121
  id: string(),
@@ -14959,8 +15180,18 @@ var ObjectEventSchema = object({
14959
15180
  frameHeight: number().optional(),
14960
15181
  /** MediaStore key for the crop attached to this event (if any). */
14961
15182
  mediaKey: string().optional(),
15183
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15184
+ * best-detection full frame). Resolve via the event-media data-plane
15185
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15186
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15187
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15188
+ keyFrameMediaKey: string().optional(),
14962
15189
  /** Populated by B5 (recording playback URL for this event). */
14963
- mediaUrl: string().optional()
15190
+ mediaUrl: string().optional(),
15191
+ /** The parent track's key-event importance [0,1], propagated to every object
15192
+ * event of the track (so an event row can be sorted by importance without a
15193
+ * track join). Absent on legacy rows / before the track was scored. */
15194
+ importance: number().optional()
14964
15195
  });
14965
15196
  var AudioEventSchema = object({
14966
15197
  ...BaseEventFields,
@@ -14984,7 +15215,8 @@ var MediaFileKindEnum = _enum([
14984
15215
  "fullFrame",
14985
15216
  "fullFrameBoxed",
14986
15217
  "faceCrop",
14987
- "plateCrop"
15218
+ "plateCrop",
15219
+ "keyFrame"
14988
15220
  ]);
14989
15221
  var MediaFileSchema = object({
14990
15222
  key: string(),
@@ -15005,6 +15237,32 @@ var DeviceEventQueryInput = object({
15005
15237
  projection: _enum(["full", "slim"]).optional()
15006
15238
  });
15007
15239
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15240
+ var KeyEventQueryInput = object({
15241
+ deviceId: number(),
15242
+ /** Window lower bound (track firstSeen ≥ since). */
15243
+ since: number(),
15244
+ /** Window upper bound (track firstSeen ≤ until). */
15245
+ until: number(),
15246
+ limit: number().int().min(1).max(200).default(50),
15247
+ /** Drop tracks scoring below this importance. */
15248
+ minImportance: number().min(0).max(1).optional(),
15249
+ /** Restrict to a single class (e.g. 'person'). */
15250
+ classFilter: string().optional()
15251
+ });
15252
+ var KeyEventSchema = object({
15253
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15254
+ id: string(),
15255
+ trackId: string(),
15256
+ /** Track start time (firstSeen). */
15257
+ timestamp: number(),
15258
+ className: string(),
15259
+ label: string().optional(),
15260
+ importance: number(),
15261
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15262
+ bestEventId: string(),
15263
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15264
+ windowMs: number().optional()
15265
+ });
15008
15266
  var TrackedDetectionSchema = object({
15009
15267
  trackId: string(),
15010
15268
  className: string(),
@@ -15034,7 +15292,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15034
15292
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15035
15293
  kind: "mutation",
15036
15294
  auth: "admin"
15037
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15295
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15038
15296
  deviceId: number(),
15039
15297
  since: number(),
15040
15298
  until: number(),
@@ -15079,11 +15337,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15079
15337
  timestamp: number()
15080
15338
  });
15081
15339
  var CameraPipelineConfigSchema = object({
15082
- engine: PipelineEngineChoiceSchema,
15340
+ engine: PipelineEngineChoiceSchema.optional(),
15083
15341
  steps: array(PipelineStepInputSchema).readonly(),
15084
15342
  audio: object({
15085
- engine: PipelineEngineChoiceSchema,
15086
- modelId: string(),
15343
+ engine: PipelineEngineChoiceSchema.optional(),
15344
+ modelId: string().optional(),
15087
15345
  enabled: boolean(),
15088
15346
  settings: record(string(), unknown()).readonly().optional()
15089
15347
  }).nullable().optional()
@@ -15098,7 +15356,7 @@ var PipelineTemplateSchema = object({
15098
15356
  });
15099
15357
  var AgentAddonConfigSchema = object({
15100
15358
  enabled: boolean(),
15101
- modelId: string(),
15359
+ modelId: string().optional(),
15102
15360
  settings: record(string(), unknown()).readonly()
15103
15361
  });
15104
15362
  var AgentPipelineSettingsSchema = object({
@@ -15108,12 +15366,25 @@ var AgentPipelineSettingsSchema = object({
15108
15366
  detectWeight: number().positive().optional(),
15109
15367
  /** Node is eligible to run the detection pipeline (decode + inference). */
15110
15368
  detect: boolean().optional(),
15111
- /** Node is eligible to host decoder sessions. */
15369
+ /**
15370
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15371
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15372
+ * the schema ONLY so persisted stores written before the removal still
15373
+ * parse — no code reads it and no write path emits it.
15374
+ */
15112
15375
  decode: boolean().optional(),
15113
15376
  /** Node is eligible to run audio-analyzer sessions. */
15114
15377
  audio: boolean().optional(),
15115
15378
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15116
- ingest: boolean().optional()
15379
+ ingest: boolean().optional(),
15380
+ /**
15381
+ * Operator override for the LAN host a cross-node decoder dials to reach
15382
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15383
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15384
+ * it already uses to reach the hub). Set this only when the auto-detected
15385
+ * address is wrong (multi-homed host, NAT, custom interface).
15386
+ */
15387
+ reachableHost: string().optional()
15117
15388
  });
15118
15389
  var CameraPipelineForAgentSchema = object({
15119
15390
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15161,25 +15432,6 @@ var PipelineAssignmentSchema = object({
15161
15432
  assignedAt: number()
15162
15433
  });
15163
15434
  /**
15164
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15165
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15166
- * → co-located with pipeline → capacity).
15167
- */
15168
- var DecoderAssignmentSchema = object({
15169
- deviceId: number(),
15170
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15171
- decoderNodeId: string(),
15172
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15173
- pinned: boolean(),
15174
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15175
- reason: _enum([
15176
- "manual",
15177
- "co-located",
15178
- "capacity",
15179
- "hardware-affinity"
15180
- ])
15181
- });
15182
- /**
15183
15435
  * Per-agent load summary surfaced to the load balancer + dashboards.
15184
15436
  * Aggregated from each runner's `getLocalLoad` cap call.
15185
15437
  */
@@ -15219,6 +15471,15 @@ var GlobalMetricsSchema = object({
15219
15471
  * capability providers.
15220
15472
  */
15221
15473
  var CapabilityBindingsSchema = record(string(), string());
15474
+ /**
15475
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15476
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15477
+ */
15478
+ var IngestOwnerSchema = object({
15479
+ ownerNodeId: string(),
15480
+ reachableHost: string().optional(),
15481
+ configIssue: string().optional()
15482
+ });
15222
15483
  /** Source block — always present; derives from the stream catalog. */
15223
15484
  var CameraSourceStatusSchema = object({ streams: array(object({
15224
15485
  camStreamId: string(),
@@ -15233,6 +15494,14 @@ var CameraAssignmentStatusSchema = object({
15233
15494
  detectionNodeId: string().nullable(),
15234
15495
  decoderNodeId: string().nullable(),
15235
15496
  audioNodeId: string().nullable(),
15497
+ /**
15498
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15499
+ * hosts the broker/restream) — the cluster ingest owner today
15500
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15501
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15502
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15503
+ */
15504
+ sourceNodeId: string().nullable(),
15236
15505
  pinned: object({
15237
15506
  detection: boolean(),
15238
15507
  decoder: boolean(),
@@ -15365,16 +15634,7 @@ method(object({
15365
15634
  }), object({ success: literal(true) }), {
15366
15635
  kind: "mutation",
15367
15636
  auth: "admin"
15368
- }), method(object({
15369
- deviceId: number(),
15370
- nodeId: string()
15371
- }), _void(), {
15372
- kind: "mutation",
15373
- auth: "admin"
15374
- }), method(object({ deviceId: number() }), _void(), {
15375
- kind: "mutation",
15376
- auth: "admin"
15377
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15637
+ }), method(_void(), IngestOwnerSchema), method(object({
15378
15638
  deviceId: number(),
15379
15639
  nodeId: string()
15380
15640
  }), object({ success: literal(true) }), {
@@ -15395,10 +15655,7 @@ method(object({
15395
15655
  nodeId: string(),
15396
15656
  pinned: boolean(),
15397
15657
  assignedAt: number()
15398
- }))), method(object({
15399
- deviceId: number(),
15400
- pipelineNodeId: string().optional()
15401
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15658
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15402
15659
  nodeId: string(),
15403
15660
  settings: AgentPipelineSettingsSchema
15404
15661
  })).readonly()), method(object({
@@ -15428,12 +15685,26 @@ method(object({
15428
15685
  }), method(object({
15429
15686
  agentNodeId: string(),
15430
15687
  detect: boolean().nullable().optional(),
15431
- decode: boolean().nullable().optional(),
15432
15688
  audio: boolean().nullable().optional(),
15433
15689
  ingest: boolean().nullable().optional()
15434
15690
  }), object({ success: literal(true) }), {
15435
15691
  kind: "mutation",
15436
15692
  auth: "admin"
15693
+ }), method(object({
15694
+ agentNodeId: string(),
15695
+ reachableHost: string().nullable()
15696
+ }), object({ success: literal(true) }), {
15697
+ kind: "mutation",
15698
+ auth: "admin"
15699
+ }), method(object({ agentNodeId: string() }), object({
15700
+ success: literal(true),
15701
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15702
+ effectiveModelId: string().nullable(),
15703
+ /** Number of cameras whose node-scoped overrides were cleared. */
15704
+ clearedCameraOverrides: number()
15705
+ }), {
15706
+ kind: "mutation",
15707
+ auth: "admin"
15437
15708
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15438
15709
  deviceId: number(),
15439
15710
  addonId: string(),
@@ -15478,22 +15749,131 @@ method(object({
15478
15749
  kind: "mutation",
15479
15750
  auth: "admin"
15480
15751
  });
15481
- var RegisteredStreamSchema = object({
15482
- streamId: string(),
15483
- label: string().optional(),
15484
- codec: string(),
15485
- type: _enum(["video", "audio"]),
15486
- sourceUrl: string()
15752
+ /**
15753
+ * server-management — per-NODE singleton capability for a node's ROOT
15754
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15755
+ * agents).
15756
+ *
15757
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15758
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15759
+ * version describes the node. Updates install into
15760
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15761
+ * starter (probation boot + auto-rollback to N-1).
15762
+ *
15763
+ * Providers:
15764
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15765
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15766
+ * unpinned calls.
15767
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15768
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15769
+ * `$hub.registerNode` manifest.
15770
+ *
15771
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15772
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15773
+ * SDK) routes the call to that node's provider via the standard remote
15774
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15775
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15776
+ *
15777
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15778
+ */
15779
+ /**
15780
+ * Where the running hub's code was loaded from:
15781
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15782
+ * plain resolution and runtime updates are refused.
15783
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15784
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15785
+ */
15786
+ var ServerBootModeSchema = _enum([
15787
+ "workspace",
15788
+ "baked",
15789
+ "data-root"
15790
+ ]);
15791
+ /**
15792
+ * Update lifecycle state:
15793
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15794
+ * - `pending-restart` — a version is staged and the node has NOT yet
15795
+ * restarted onto it (still running the OLD version).
15796
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15797
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15798
+ * Apply/rollback are refused in this state and the node must NOT be
15799
+ * manually restarted, or the probation boot auto-rolls-back.
15800
+ */
15801
+ var ServerUpdateStateSchema = _enum([
15802
+ "idle",
15803
+ "checking",
15804
+ "staging",
15805
+ "pending-restart",
15806
+ "awaiting-confirmation"
15807
+ ]);
15808
+ var ServerRollbackInfoSchema = object({
15809
+ /** The version that failed (or was manually rolled back). */
15810
+ fromVersion: string(),
15811
+ /** The version rolled back to; null = the baked seed. */
15812
+ toVersion: string().nullable(),
15813
+ atMs: number(),
15814
+ reason: string()
15487
15815
  });
15488
- var ExposedResourceSchema = object({
15489
- streamId: string(),
15490
- format: string(),
15491
- value: string()
15816
+ var ServerPackageStatusSchema = object({
15817
+ /** Root package name (`@camstack/server` on the hub). */
15818
+ packageName: string(),
15819
+ /** Version of the code the running process ACTUALLY loaded. */
15820
+ runningVersion: string().nullable(),
15821
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15822
+ nodeRuntimeVersion: string().nullable(),
15823
+ /** Active data-dir root version; null when booted from seed/workspace. */
15824
+ activeVersion: string().nullable(),
15825
+ /** N-1 version kept for rollback; null when no previous version exists. */
15826
+ previousVersion: string().nullable(),
15827
+ /** Version of the immutable baked seed closure (image fallback). */
15828
+ seedVersion: string().nullable(),
15829
+ /** Latest registry version from the most recent check (null = never checked). */
15830
+ latestVersion: string().nullable(),
15831
+ updateAvailable: boolean(),
15832
+ bootMode: ServerBootModeSchema,
15833
+ updateState: ServerUpdateStateSchema,
15834
+ /** Version staged + awaiting its probation boot, when one is pending. */
15835
+ pendingVersion: string().nullable(),
15836
+ /** Set when the last freshly-activated version failed its boot health-check. */
15837
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15838
+ /**
15839
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15840
+ * hub is running from the baked seed (or workspace) while installed data-dir
15841
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15842
+ */
15843
+ stateFileCorrupt: boolean(),
15844
+ lastCheckedAtMs: number().nullable()
15845
+ });
15846
+ var ServerUpdateCheckResultSchema = object({
15847
+ packageName: string(),
15848
+ runningVersion: string().nullable(),
15849
+ latestVersion: string().nullable(),
15850
+ updateAvailable: boolean(),
15851
+ checkedAtMs: number(),
15852
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15853
+ error: string().nullable()
15854
+ });
15855
+ var ServerUpdateActionResultSchema = object({
15856
+ accepted: boolean(),
15857
+ targetVersion: string().nullable(),
15858
+ /** True when a graceful restart was scheduled to apply the change. */
15859
+ restarting: boolean(),
15860
+ message: string()
15861
+ });
15862
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15863
+ kind: "mutation",
15864
+ auth: "admin"
15865
+ }), method(object({
15866
+ /** Explicit target version; omitted = latest from the registry. */
15867
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15868
+ kind: "mutation",
15869
+ auth: "admin"
15870
+ }), method(_void(), ServerUpdateActionResultSchema, {
15871
+ kind: "mutation",
15872
+ auth: "admin"
15873
+ }), method(_void(), ServerUpdateActionResultSchema, {
15874
+ kind: "mutation",
15875
+ auth: "admin"
15492
15876
  });
15493
- method(object({
15494
- deviceId: number(),
15495
- streams: array(RegisteredStreamSchema).readonly()
15496
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15497
15877
  /**
15498
15878
  * Query filter for settings-store collections.
15499
15879
  */
@@ -15646,9 +16026,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15646
16026
  /**
15647
16027
  * A single device snapshot returned as base64 JPEG/PNG.
15648
16028
  *
15649
- * Shared with the `snapshot-provider` collection cap the orchestrator
15650
- * receives the same shape from each native provider and from the
15651
- * broker-based fallback.
16029
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16030
+ * the device-native provider (onboard capture) or from the stream-broker
16031
+ * prebuffer fallback.
15652
16032
  */
15653
16033
  var SnapshotImageSchema = object({
15654
16034
  base64: string(),
@@ -15679,11 +16059,12 @@ DeviceType.Camera, method(object({
15679
16059
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15680
16060
  kind: "mutation",
15681
16061
  auth: "admin"
15682
- });
15683
- method(object({ deviceId: number() }), boolean()), method(object({
16062
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15684
16063
  deviceId: number(),
15685
- streamId: string().optional()
15686
- }), SnapshotImageSchema.nullable());
16064
+ lastCapturedAt: number().nullable(),
16065
+ cacheAgeMs: number().nullable(),
16066
+ etag: string().nullable()
16067
+ })));
15687
16068
  /**
15688
16069
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15689
16070
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -15957,10 +16338,32 @@ getTurnServers: method(_void(), array(TurnServerSchema).readonly()) }
15957
16338
  * b. `finishAuthentication({userId, response})` → server verifies
15958
16339
  * the assertion, bumps the credential counter, returns ok.
15959
16340
  *
16341
+ * 2b. Usernameless (discoverable-credential) authentication — the
16342
+ * passkey IS the primary factor, no password leg:
16343
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16344
+ * EMPTY `allowCredentials` (the browser offers every resident
16345
+ * passkey it holds for this RP) + `userVerification: 'required'`
16346
+ * (the passkey replaces both factors, so UV is mandatory).
16347
+ * The challenge is stored server-side, NOT bound to any user.
16348
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16349
+ * resolves the credential by the response's credential id,
16350
+ * verifies the assertion against the stored challenge + that
16351
+ * credential's public key/counter, and returns the OWNING
16352
+ * `userId` — the caller (core auth router) mints the session.
16353
+ *
15960
16354
  * 3. Management:
15961
16355
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
15962
16356
  * - `removePasskey({userId, credentialId})` — revoke one credential.
15963
16357
  *
16358
+ * 4. Second-factor preference (opt-in, default OFF):
16359
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16360
+ * demanded as a second factor after a password login ONLY when the
16361
+ * user explicitly opts in via `setSecondFactorPreference`.
16362
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16363
+ * row ⇒ `enabled: false`).
16364
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16365
+ * the providing addon beside its credentials.
16366
+ *
15964
16367
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
15965
16368
  * the admin-ui composes the begin/finish round-trip and never exposes
15966
16369
  * the cap to non-admins.
@@ -16003,6 +16406,17 @@ method(object({
16003
16406
  }), object({ verified: boolean() }), {
16004
16407
  kind: "mutation",
16005
16408
  access: "view"
16409
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16410
+ kind: "mutation",
16411
+ access: "view"
16412
+ }), method(object({
16413
+ /** AuthenticationResponseJSON from the browser. */
16414
+ response: record(string(), unknown()) }), object({
16415
+ verified: boolean(),
16416
+ userId: string().nullable()
16417
+ }), {
16418
+ kind: "mutation",
16419
+ access: "view"
16006
16420
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16007
16421
  userId: string(),
16008
16422
  credentialId: string()
@@ -16010,6 +16424,13 @@ method(object({
16010
16424
  kind: "mutation",
16011
16425
  auth: "admin",
16012
16426
  access: "delete"
16427
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16428
+ userId: string(),
16429
+ enabled: boolean()
16430
+ }), object({ success: literal(true) }), {
16431
+ kind: "mutation",
16432
+ auth: "admin",
16433
+ access: "create"
16013
16434
  });
16014
16435
  /**
16015
16436
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16067,9 +16488,10 @@ method(object({
16067
16488
  auth: "admin"
16068
16489
  });
16069
16490
  /**
16070
- * Optional client-side hints sent at session creation to help the
16071
- * provider pick the best native source. All fields are optional —
16072
- * a viewer that knows nothing still gets a sane default.
16491
+ * Optional client-side hints sent at session creation to help the provider
16492
+ * pick the best native source. All fields optional — a viewer that knows
16493
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16494
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16073
16495
  */
16074
16496
  var webrtcClientHintsSchema = object({
16075
16497
  viewportWidth: number().int().positive().optional(),
@@ -16080,22 +16502,6 @@ var webrtcClientHintsSchema = object({
16080
16502
  /** Hard tier override; takes precedence over scoring when registered. */
16081
16503
  prefersTier: string().optional()
16082
16504
  }).partial();
16083
- method(object({
16084
- streamId: string(),
16085
- sdpOffer: string()
16086
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16087
- streamId: string(),
16088
- codec: string()
16089
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16090
- streamId: string(),
16091
- hints: webrtcClientHintsSchema.optional()
16092
- }), object({
16093
- sessionId: string(),
16094
- sdpOffer: string()
16095
- }), { kind: "mutation" }), method(object({
16096
- sessionId: string(),
16097
- sdpAnswer: string()
16098
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16099
16505
  /**
16100
16506
  * Discriminated target for a WebRTC session. The client sends this
16101
16507
  * structured object instead of building / parsing brokerId strings;
@@ -16582,7 +16988,15 @@ var FrameworkPackageStatusSchema = object({
16582
16988
  latestVersion: string().nullable(),
16583
16989
  hasUpdate: boolean(),
16584
16990
  /** Optional manifest description for the row tooltip. */
16585
- description: string().optional()
16991
+ description: string().optional(),
16992
+ /**
16993
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
16994
+ * ACTUALLY loaded. Framework packages ship code changes without always
16995
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
16996
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
16997
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
16998
+ */
16999
+ buildId: string().nullable()
16586
17000
  });
16587
17001
  var LogStreamEntrySchema = object({
16588
17002
  timestamp: string(),
@@ -16818,7 +17232,17 @@ var FaceInfoSchema = object({
16818
17232
  recognizedIdentityId: string().optional(),
16819
17233
  identityName: string().optional(),
16820
17234
  assigned: boolean(),
16821
- base64: string().optional()
17235
+ base64: string().optional(),
17236
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17237
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17238
+ * legacy rows written before design B. */
17239
+ faceBbox: BoundingBoxSchema.optional(),
17240
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17241
+ * Fetch the native JPEG via the event-media data-plane
17242
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17243
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17244
+ * back to the inline `base64` face crop. */
17245
+ keyFrameMediaKey: string().optional()
16822
17246
  });
16823
17247
  var FaceFilterEnum = _enum([
16824
17248
  "unassigned",
@@ -17515,6 +17939,16 @@ var TopologyCategorySchema = object({
17515
17939
  healthy: number(),
17516
17940
  addons: array(TopologyCategoryAddonSchema).readonly()
17517
17941
  });
17942
+ /**
17943
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17944
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17945
+ * version visibility for the Server management surface. Nullable: offline
17946
+ * rows and pre-phase-2 nodes report none.
17947
+ */
17948
+ var TopologyRootPackageSchema = object({
17949
+ name: string(),
17950
+ version: string()
17951
+ });
17518
17952
  var TopologyNodeSchema = object({
17519
17953
  id: string(),
17520
17954
  name: string(),
@@ -17538,7 +17972,8 @@ var TopologyNodeSchema = object({
17538
17972
  status: string()
17539
17973
  })).readonly(),
17540
17974
  processes: array(TopologyProcessSchema).readonly(),
17541
- categories: array(TopologyCategorySchema).readonly()
17975
+ categories: array(TopologyCategorySchema).readonly(),
17976
+ rootPackage: TopologyRootPackageSchema.nullable()
17542
17977
  });
17543
17978
  var CapUsageEdgeSchema = object({
17544
17979
  callerAddonId: string(),
@@ -20338,6 +20773,12 @@ Object.freeze({
20338
20773
  addonId: null,
20339
20774
  access: "create"
20340
20775
  },
20776
+ "loginMethod.getLoginMethods": {
20777
+ capName: "login-method",
20778
+ capScope: "system",
20779
+ addonId: null,
20780
+ access: "view"
20781
+ },
20341
20782
  "mediaPlayer.next": {
20342
20783
  capName: "media-player",
20343
20784
  capScope: "device",
@@ -20920,6 +21361,12 @@ Object.freeze({
20920
21361
  addonId: null,
20921
21362
  access: "view"
20922
21363
  },
21364
+ "pipelineAnalytics.getKeyEvents": {
21365
+ capName: "pipeline-analytics",
21366
+ capScope: "device",
21367
+ addonId: null,
21368
+ access: "view"
21369
+ },
20923
21370
  "pipelineAnalytics.getMotionEvents": {
20924
21371
  capName: "pipeline-analytics",
20925
21372
  capScope: "device",
@@ -20968,23 +21415,23 @@ Object.freeze({
20968
21415
  addonId: null,
20969
21416
  access: "create"
20970
21417
  },
20971
- "pipelineExecutor.deleteModel": {
21418
+ "pipelineExecutor.clearDeviceOverrides": {
20972
21419
  capName: "pipeline-executor",
20973
21420
  capScope: "system",
20974
21421
  addonId: null,
20975
21422
  access: "delete"
20976
21423
  },
20977
- "pipelineExecutor.deleteTemplate": {
21424
+ "pipelineExecutor.deleteModel": {
20978
21425
  capName: "pipeline-executor",
20979
21426
  capScope: "system",
20980
21427
  addonId: null,
20981
21428
  access: "delete"
20982
21429
  },
20983
- "pipelineExecutor.detect": {
21430
+ "pipelineExecutor.deleteTemplate": {
20984
21431
  capName: "pipeline-executor",
20985
21432
  capScope: "system",
20986
21433
  addonId: null,
20987
- access: "view"
21434
+ access: "delete"
20988
21435
  },
20989
21436
  "pipelineExecutor.downloadModel": {
20990
21437
  capName: "pipeline-executor",
@@ -21178,13 +21625,13 @@ Object.freeze({
21178
21625
  addonId: null,
21179
21626
  access: "create"
21180
21627
  },
21181
- "pipelineOrchestrator.assignAudio": {
21182
- capName: "pipeline-orchestrator",
21628
+ "pipelineExecutor.validatePipeline": {
21629
+ capName: "pipeline-executor",
21183
21630
  capScope: "system",
21184
21631
  addonId: null,
21185
- access: "create"
21632
+ access: "view"
21186
21633
  },
21187
- "pipelineOrchestrator.assignDecoder": {
21634
+ "pipelineOrchestrator.assignAudio": {
21188
21635
  capName: "pipeline-orchestrator",
21189
21636
  capScope: "system",
21190
21637
  addonId: null,
@@ -21268,19 +21715,13 @@ Object.freeze({
21268
21715
  addonId: null,
21269
21716
  access: "view"
21270
21717
  },
21271
- "pipelineOrchestrator.getDecoderAssignment": {
21272
- capName: "pipeline-orchestrator",
21273
- capScope: "system",
21274
- addonId: null,
21275
- access: "view"
21276
- },
21277
- "pipelineOrchestrator.getDecoderAssignments": {
21718
+ "pipelineOrchestrator.getGlobalMetrics": {
21278
21719
  capName: "pipeline-orchestrator",
21279
21720
  capScope: "system",
21280
21721
  addonId: null,
21281
21722
  access: "view"
21282
21723
  },
21283
- "pipelineOrchestrator.getGlobalMetrics": {
21724
+ "pipelineOrchestrator.getIngestOwner": {
21284
21725
  capName: "pipeline-orchestrator",
21285
21726
  capScope: "system",
21286
21727
  addonId: null,
@@ -21322,6 +21763,12 @@ Object.freeze({
21322
21763
  addonId: null,
21323
21764
  access: "delete"
21324
21765
  },
21766
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21767
+ capName: "pipeline-orchestrator",
21768
+ capScope: "system",
21769
+ addonId: null,
21770
+ access: "delete"
21771
+ },
21325
21772
  "pipelineOrchestrator.resolvePipeline": {
21326
21773
  capName: "pipeline-orchestrator",
21327
21774
  capScope: "system",
@@ -21358,37 +21805,37 @@ Object.freeze({
21358
21805
  addonId: null,
21359
21806
  access: "create"
21360
21807
  },
21361
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21808
+ "pipelineOrchestrator.setAgentReachableHost": {
21362
21809
  capName: "pipeline-orchestrator",
21363
21810
  capScope: "system",
21364
21811
  addonId: null,
21365
21812
  access: "create"
21366
21813
  },
21367
- "pipelineOrchestrator.setCameraStepOverride": {
21814
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21368
21815
  capName: "pipeline-orchestrator",
21369
21816
  capScope: "system",
21370
21817
  addonId: null,
21371
21818
  access: "create"
21372
21819
  },
21373
- "pipelineOrchestrator.setCameraStepToggle": {
21820
+ "pipelineOrchestrator.setCameraStepOverride": {
21374
21821
  capName: "pipeline-orchestrator",
21375
21822
  capScope: "system",
21376
21823
  addonId: null,
21377
21824
  access: "create"
21378
21825
  },
21379
- "pipelineOrchestrator.setCapabilityBinding": {
21826
+ "pipelineOrchestrator.setCameraStepToggle": {
21380
21827
  capName: "pipeline-orchestrator",
21381
21828
  capScope: "system",
21382
21829
  addonId: null,
21383
21830
  access: "create"
21384
21831
  },
21385
- "pipelineOrchestrator.unassignAudio": {
21832
+ "pipelineOrchestrator.setCapabilityBinding": {
21386
21833
  capName: "pipeline-orchestrator",
21387
21834
  capScope: "system",
21388
21835
  addonId: null,
21389
21836
  access: "create"
21390
21837
  },
21391
- "pipelineOrchestrator.unassignDecoder": {
21838
+ "pipelineOrchestrator.unassignAudio": {
21392
21839
  capName: "pipeline-orchestrator",
21393
21840
  capScope: "system",
21394
21841
  addonId: null,
@@ -21448,6 +21895,12 @@ Object.freeze({
21448
21895
  addonId: null,
21449
21896
  access: "view"
21450
21897
  },
21898
+ "pipelineRunner.getNativeCrop": {
21899
+ capName: "pipeline-runner",
21900
+ capScope: "system",
21901
+ addonId: null,
21902
+ access: "view"
21903
+ },
21451
21904
  "pipelineRunner.reportMotion": {
21452
21905
  capName: "pipeline-runner",
21453
21906
  capScope: "system",
@@ -21688,33 +22141,45 @@ Object.freeze({
21688
22141
  addonId: null,
21689
22142
  access: "create"
21690
22143
  },
21691
- "restreamer.getExposedResources": {
21692
- capName: "restreamer",
22144
+ "scriptRunner.run": {
22145
+ capName: "script-runner",
22146
+ capScope: "device",
22147
+ addonId: null,
22148
+ access: "create"
22149
+ },
22150
+ "scriptRunner.stop": {
22151
+ capName: "script-runner",
22152
+ capScope: "device",
22153
+ addonId: null,
22154
+ access: "create"
22155
+ },
22156
+ "serverManagement.applyServerUpdate": {
22157
+ capName: "server-management",
21693
22158
  capScope: "system",
21694
22159
  addonId: null,
21695
- access: "view"
22160
+ access: "create"
21696
22161
  },
21697
- "restreamer.registerDevice": {
21698
- capName: "restreamer",
22162
+ "serverManagement.checkServerUpdate": {
22163
+ capName: "server-management",
21699
22164
  capScope: "system",
21700
22165
  addonId: null,
21701
22166
  access: "create"
21702
22167
  },
21703
- "restreamer.unregisterDevice": {
21704
- capName: "restreamer",
22168
+ "serverManagement.getServerPackageStatus": {
22169
+ capName: "server-management",
21705
22170
  capScope: "system",
21706
22171
  addonId: null,
21707
- access: "delete"
22172
+ access: "view"
21708
22173
  },
21709
- "scriptRunner.run": {
21710
- capName: "script-runner",
21711
- capScope: "device",
22174
+ "serverManagement.restartServer": {
22175
+ capName: "server-management",
22176
+ capScope: "system",
21712
22177
  addonId: null,
21713
22178
  access: "create"
21714
22179
  },
21715
- "scriptRunner.stop": {
21716
- capName: "script-runner",
21717
- capScope: "device",
22180
+ "serverManagement.rollbackServerUpdate": {
22181
+ capName: "server-management",
22182
+ capScope: "system",
21718
22183
  addonId: null,
21719
22184
  access: "create"
21720
22185
  },
@@ -21802,23 +22267,17 @@ Object.freeze({
21802
22267
  addonId: null,
21803
22268
  access: "view"
21804
22269
  },
21805
- "snapshot.invalidateCache": {
22270
+ "snapshot.getSnapshotOverview": {
21806
22271
  capName: "snapshot",
21807
22272
  capScope: "device",
21808
22273
  addonId: null,
21809
- access: "create"
21810
- },
21811
- "snapshotProvider.getSnapshot": {
21812
- capName: "snapshot-provider",
21813
- capScope: "system",
21814
- addonId: null,
21815
22274
  access: "view"
21816
22275
  },
21817
- "snapshotProvider.supportsDevice": {
21818
- capName: "snapshot-provider",
21819
- capScope: "system",
22276
+ "snapshot.invalidateCache": {
22277
+ capName: "snapshot",
22278
+ capScope: "device",
21820
22279
  addonId: null,
21821
- access: "view"
22280
+ access: "create"
21822
22281
  },
21823
22282
  "ssoBridge.signBridgeToken": {
21824
22283
  capName: "sso-bridge",
@@ -22246,30 +22705,6 @@ Object.freeze({
22246
22705
  addonId: null,
22247
22706
  access: "view"
22248
22707
  },
22249
- "streamingEngine.getStreamUrl": {
22250
- capName: "streaming-engine",
22251
- capScope: "system",
22252
- addonId: null,
22253
- access: "view"
22254
- },
22255
- "streamingEngine.listStreams": {
22256
- capName: "streaming-engine",
22257
- capScope: "system",
22258
- addonId: null,
22259
- access: "view"
22260
- },
22261
- "streamingEngine.registerStream": {
22262
- capName: "streaming-engine",
22263
- capScope: "system",
22264
- addonId: null,
22265
- access: "create"
22266
- },
22267
- "streamingEngine.unregisterStream": {
22268
- capName: "streaming-engine",
22269
- capScope: "system",
22270
- addonId: null,
22271
- access: "delete"
22272
- },
22273
22708
  "streamParams.getConfigSchema": {
22274
22709
  capName: "stream-params",
22275
22710
  capScope: "device",
@@ -22516,6 +22951,12 @@ Object.freeze({
22516
22951
  addonId: null,
22517
22952
  access: "view"
22518
22953
  },
22954
+ "userPasskeys.beginDiscoverableAuthentication": {
22955
+ capName: "user-passkeys",
22956
+ capScope: "system",
22957
+ addonId: null,
22958
+ access: "view"
22959
+ },
22519
22960
  "userPasskeys.beginRegistration": {
22520
22961
  capName: "user-passkeys",
22521
22962
  capScope: "system",
@@ -22528,12 +22969,24 @@ Object.freeze({
22528
22969
  addonId: null,
22529
22970
  access: "view"
22530
22971
  },
22972
+ "userPasskeys.finishDiscoverableAuthentication": {
22973
+ capName: "user-passkeys",
22974
+ capScope: "system",
22975
+ addonId: null,
22976
+ access: "view"
22977
+ },
22531
22978
  "userPasskeys.finishRegistration": {
22532
22979
  capName: "user-passkeys",
22533
22980
  capScope: "system",
22534
22981
  addonId: null,
22535
22982
  access: "create"
22536
22983
  },
22984
+ "userPasskeys.getSecondFactorPreference": {
22985
+ capName: "user-passkeys",
22986
+ capScope: "system",
22987
+ addonId: null,
22988
+ access: "view"
22989
+ },
22537
22990
  "userPasskeys.listPasskeys": {
22538
22991
  capName: "user-passkeys",
22539
22992
  capScope: "system",
@@ -22546,6 +22999,12 @@ Object.freeze({
22546
22999
  addonId: null,
22547
23000
  access: "delete"
22548
23001
  },
23002
+ "userPasskeys.setSecondFactorPreference": {
23003
+ capName: "user-passkeys",
23004
+ capScope: "system",
23005
+ addonId: null,
23006
+ access: "create"
23007
+ },
22549
23008
  "vacuumControl.locate": {
22550
23009
  capName: "vacuum-control",
22551
23010
  capScope: "device",
@@ -22618,6 +23077,18 @@ Object.freeze({
22618
23077
  addonId: null,
22619
23078
  access: "view"
22620
23079
  },
23080
+ "viewerUi.getStaticDir": {
23081
+ capName: "viewer-ui",
23082
+ capScope: "system",
23083
+ addonId: null,
23084
+ access: "view"
23085
+ },
23086
+ "viewerUi.getVersion": {
23087
+ capName: "viewer-ui",
23088
+ capScope: "system",
23089
+ addonId: null,
23090
+ access: "view"
23091
+ },
22621
23092
  "waterHeater.setAway": {
22622
23093
  capName: "water-heater",
22623
23094
  capScope: "device",
@@ -22636,54 +23107,6 @@ Object.freeze({
22636
23107
  addonId: null,
22637
23108
  access: "create"
22638
23109
  },
22639
- "webrtc.closeSession": {
22640
- capName: "webrtc",
22641
- capScope: "system",
22642
- addonId: null,
22643
- access: "create"
22644
- },
22645
- "webrtc.createSession": {
22646
- capName: "webrtc",
22647
- capScope: "system",
22648
- addonId: null,
22649
- access: "create"
22650
- },
22651
- "webrtc.handleAnswer": {
22652
- capName: "webrtc",
22653
- capScope: "system",
22654
- addonId: null,
22655
- access: "create"
22656
- },
22657
- "webrtc.handleOffer": {
22658
- capName: "webrtc",
22659
- capScope: "system",
22660
- addonId: null,
22661
- access: "create"
22662
- },
22663
- "webrtc.hasAdaptiveBitrate": {
22664
- capName: "webrtc",
22665
- capScope: "system",
22666
- addonId: null,
22667
- access: "view"
22668
- },
22669
- "webrtc.registerStream": {
22670
- capName: "webrtc",
22671
- capScope: "system",
22672
- addonId: null,
22673
- access: "create"
22674
- },
22675
- "webrtc.supportsStream": {
22676
- capName: "webrtc",
22677
- capScope: "system",
22678
- addonId: null,
22679
- access: "view"
22680
- },
22681
- "webrtc.unregisterStream": {
22682
- capName: "webrtc",
22683
- capScope: "system",
22684
- addonId: null,
22685
- access: "delete"
22686
- },
22687
23110
  "webrtcSession.addIceCandidate": {
22688
23111
  capName: "webrtc-session",
22689
23112
  capScope: "device",