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