@camstack/addon-remote-storage 1.1.20 → 1.1.22

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.
@@ -4652,7 +4652,7 @@ function _instanceof(cls, params = {}) {
4652
4652
  return inst;
4653
4653
  }
4654
4654
  //#endregion
4655
- //#region ../types/dist/sleep-CZDdRBua.mjs
4655
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4656
4656
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4657
4657
  EventCategory["SystemBoot"] = "system.boot";
4658
4658
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4838,6 +4838,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4838
4838
  */
4839
4839
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4840
4840
  /**
4841
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4842
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4843
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4844
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4845
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4846
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4847
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4848
+ * topology change, so a dropped event self-heals on the next one (plus the
4849
+ * broker's long backstop reconcile query).
4850
+ */
4851
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4852
+ /**
4841
4853
  * Periodic snapshot of per-node pipeline-runner load
4842
4854
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4843
4855
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5361,10 +5373,6 @@ function hydrateField(field, values) {
5361
5373
  };
5362
5374
  }
5363
5375
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5364
- if (field.type === "password") return {
5365
- ...field,
5366
- value: ""
5367
- };
5368
5376
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5369
5377
  return {
5370
5378
  ...field,
@@ -6748,6 +6756,21 @@ function method(input, output, options) {
6748
6756
  timeoutMs: options?.timeoutMs
6749
6757
  };
6750
6758
  }
6759
+ /**
6760
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6761
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6762
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6763
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6764
+ */
6765
+ function systemMethod(input, output, options) {
6766
+ return {
6767
+ ...method(input, output, options),
6768
+ systemOnly: true
6769
+ };
6770
+ }
6771
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6772
+ var VersionOutputSchema$1 = object({ version: string() });
6773
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6751
6774
  var StaticDirOutputSchema = object({ staticDir: string() });
6752
6775
  var VersionOutputSchema = object({ version: string() });
6753
6776
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6917,6 +6940,36 @@ var ModelFormatsSchema = object({
6917
6940
  tflite: ModelFormatEntrySchema.optional(),
6918
6941
  pt: ModelFormatEntrySchema.optional()
6919
6942
  });
6943
+ /**
6944
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6945
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6946
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6947
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6948
+ * resolution/download/persistence; this is a presentation overlay resolved back
6949
+ * to an `id`.
6950
+ */
6951
+ var ModelVariantGroupSchema = object({
6952
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6953
+ family: string(),
6954
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6955
+ tier: string(),
6956
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6957
+ precision: _enum(["fp32", "int8"]).optional(),
6958
+ /**
6959
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6960
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6961
+ * future performance variants plug into.
6962
+ */
6963
+ optimization: _enum(["standard", "fast"]).optional(),
6964
+ /**
6965
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6966
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6967
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6968
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6969
+ * the group so the selector can offer it as a variant axis.
6970
+ */
6971
+ resolution: number().int().positive().optional()
6972
+ });
6920
6973
  var ModelCatalogEntrySchema = object({
6921
6974
  id: string(),
6922
6975
  name: string(),
@@ -6946,7 +6999,43 @@ var ModelCatalogEntrySchema = object({
6946
6999
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6947
7000
  * Downloaded into the same modelsDir alongside the model file.
6948
7001
  */
6949
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7002
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7003
+ /**
7004
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7005
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7006
+ * model list and excluded from the auto format-default pick. Set on the
7007
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7008
+ * the active lineup stays the coherent curated ladder without deleting a
7009
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7010
+ * an explicit legacy id that has a build for the node's format.
7011
+ */
7012
+ legacy: boolean().optional(),
7013
+ /**
7014
+ * Measured quality/latency metadata — populated from the benchmark addon on
7015
+ * the real node classes. Absent = not yet measured (most entries today; the
7016
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7017
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7018
+ */
7019
+ metrics: object({
7020
+ map50: number().optional(),
7021
+ p95LatencyMs: record(string(), number()).optional()
7022
+ }).optional(),
7023
+ /**
7024
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7025
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7026
+ * the retraining addon and any future commercial distribution.
7027
+ */
7028
+ license: string().optional(),
7029
+ /**
7030
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7031
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7032
+ * of a family's sizes and quantizations collapse into one grouped picker
7033
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7034
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7035
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7036
+ * is a presentation overlay resolved back to an `id`.
7037
+ */
7038
+ group: ModelVariantGroupSchema.optional()
6950
7039
  });
6951
7040
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6952
7041
  format: literal("openvino"),
@@ -7007,8 +7096,8 @@ var RecordingModeSchema = _enum([
7007
7096
  "onAudioThreshold"
7008
7097
  ]);
7009
7098
  /**
7010
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7011
- * reads directly (never inferred from `rules`):
7099
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7100
+ * UI reads directly (never inferred from `rules`):
7012
7101
  * - `off` — not recording.
7013
7102
  * - `events` — record only around triggers (motion / audio threshold),
7014
7103
  * with pre/post-buffer.
@@ -8656,26 +8745,13 @@ DeviceType.Light, method(object({
8656
8745
  percentage: number().min(0).max(100),
8657
8746
  lastChangedAt: number()
8658
8747
  });
8748
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8659
8749
  var StreamFormatSchema = _enum([
8660
8750
  "webrtc",
8661
8751
  "hls",
8662
8752
  "mjpeg",
8663
8753
  "rtsp"
8664
8754
  ]);
8665
- var StreamInfoSchema = object({
8666
- streamId: string(),
8667
- format: StreamFormatSchema,
8668
- url: string().nullable(),
8669
- active: boolean()
8670
- });
8671
- method(object({
8672
- streamId: string(),
8673
- sourceUrl: string(),
8674
- codec: string().optional()
8675
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8676
- streamId: string(),
8677
- format: StreamFormatSchema
8678
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8679
8755
  var RtspRestreamEntrySchema = object({
8680
8756
  brokerId: string(),
8681
8757
  url: string(),
@@ -9340,7 +9416,7 @@ var ConsumablesStatusSchema = object({
9340
9416
  })),
9341
9417
  lastChangedAt: number()
9342
9418
  });
9343
- 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({
9419
+ Object.values(DeviceType), method(object({
9344
9420
  deviceId: number().int().nonnegative(),
9345
9421
  key: string().min(1)
9346
9422
  }), _void(), {
@@ -10255,7 +10331,7 @@ var BoundingBoxSchema = object({
10255
10331
  w: number(),
10256
10332
  h: number()
10257
10333
  });
10258
- var SpatialDetectionSchema = object({
10334
+ object({
10259
10335
  class: string(),
10260
10336
  originalClass: string(),
10261
10337
  score: number(),
@@ -10390,7 +10466,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10390
10466
  enabled: boolean(),
10391
10467
  modelId: string(),
10392
10468
  children: array(PipelineDefaultStepSchema).readonly(),
10393
- engine: PipelineEngineChoiceSchema.optional(),
10394
10469
  group: string().optional(),
10395
10470
  settings: record(string(), unknown()).optional()
10396
10471
  }));
@@ -10415,7 +10490,9 @@ var PipelineModelOptionSchema = object({
10415
10490
  formats: record(string(), object({
10416
10491
  downloaded: boolean(),
10417
10492
  sizeMB: number()
10418
- }))
10493
+ })),
10494
+ group: ModelVariantGroupSchema.optional(),
10495
+ legacy: boolean().optional()
10419
10496
  });
10420
10497
  var ConfigFieldBridge = custom();
10421
10498
  var PipelineAddonSchemaSchema = object({
@@ -10429,6 +10506,7 @@ var PipelineAddonSchemaSchema = object({
10429
10506
  defaultModelId: string(),
10430
10507
  defaultModelIdByFormat: record(string(), string()).optional(),
10431
10508
  enabledByDefault: boolean().optional(),
10509
+ backfillIntoExistingOverrides: boolean().optional(),
10432
10510
  defaultConfidence: number(),
10433
10511
  group: string().optional(),
10434
10512
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10445,11 +10523,6 @@ var PipelineSchemaSchema = object({
10445
10523
  selectedEngine: PipelineEngineChoiceSchema,
10446
10524
  slots: array(PipelineSlotSchemaSchema).readonly()
10447
10525
  });
10448
- var DetectorOutputSchema = object({
10449
- detections: array(SpatialDetectionSchema).readonly(),
10450
- inferenceMs: number(),
10451
- modelId: string()
10452
- });
10453
10526
  var EngineProvisioningSchema = object({
10454
10527
  runtimeId: _enum([
10455
10528
  "onnx",
@@ -10466,15 +10539,42 @@ var EngineProvisioningSchema = object({
10466
10539
  ]),
10467
10540
  progress: number().optional(),
10468
10541
  error: string().optional(),
10469
- nextRetryAt: number().optional()
10542
+ nextRetryAt: number().optional(),
10543
+ /**
10544
+ * Gate A (config-correctness gate at engine change): human-readable
10545
+ * config issues surfaced EAGERLY when the node's engine changes — model
10546
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10547
+ * has a <format> build"). Additive/optional: informational only, never
10548
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10549
+ * Absent/empty when the node-default tree resolves cleanly.
10550
+ */
10551
+ configIssues: array(string()).optional()
10470
10552
  });
10471
10553
  var PipelineStepInputSchema = lazy(() => object({
10472
10554
  addonId: string(),
10473
- modelId: string(),
10555
+ modelId: string().optional(),
10474
10556
  enabled: boolean().default(true),
10475
10557
  children: array(PipelineStepInputSchema).optional(),
10476
10558
  settings: record(string(), unknown()).optional()
10477
10559
  }));
10560
+ var ModelSubstitutionSchema = object({
10561
+ addonId: string(),
10562
+ chosen: string(),
10563
+ running: string(),
10564
+ format: string()
10565
+ });
10566
+ var PipelineValidationIssueSchema = object({
10567
+ addonId: string(),
10568
+ kind: _enum(["unknown-addon", "no-format-build"]),
10569
+ detail: string()
10570
+ });
10571
+ var PipelineValidationResultSchema = object({
10572
+ ok: boolean(),
10573
+ issues: array(PipelineValidationIssueSchema).readonly(),
10574
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10575
+ /** The node's `currentEngine.format` this validation ran against. */
10576
+ format: string()
10577
+ });
10478
10578
  var ReferenceImageEntrySchema = object({
10479
10579
  filename: string(),
10480
10580
  stepIds: array(string()).readonly().optional()
@@ -10545,7 +10645,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10545
10645
  })) }), object({ success: literal(true) }), {
10546
10646
  kind: "mutation",
10547
10647
  auth: "admin"
10548
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10648
+ }), method(object({ nodeId: string() }), object({
10649
+ success: literal(true),
10650
+ clearedDevices: number()
10651
+ }), {
10652
+ kind: "mutation",
10653
+ auth: "admin"
10654
+ }), 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({
10549
10655
  name: string(),
10550
10656
  steps: array(PipelineTemplateStepSchema).readonly(),
10551
10657
  engine: PipelineEngineChoiceSchema
@@ -10562,10 +10668,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10562
10668
  modelId: string(),
10563
10669
  format: ModelFormatSchema$1
10564
10670
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10565
- addonId: string(),
10566
- frame: FrameInputSchema,
10567
- config: record(string(), unknown()).optional()
10568
- }), DetectorOutputSchema), method(object({
10569
10671
  engine: PipelineEngineChoiceSchema.optional(),
10570
10672
  steps: array(PipelineStepInputSchema).min(1),
10571
10673
  frame: FrameInputSchema.optional(),
@@ -10711,6 +10813,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10711
10813
  auth: "admin"
10712
10814
  }), object({ zones: array(ZoneSchema).readonly() });
10713
10815
  /**
10816
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10817
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10818
+ * so the caller supplies only the detection-res bbox divided by the detection
10819
+ * dims — no native resolution to plumb.
10820
+ */
10821
+ var NativeCropBboxSchema = object({
10822
+ x: number(),
10823
+ y: number(),
10824
+ w: number(),
10825
+ h: number()
10826
+ });
10827
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10828
+ var NativeCropResultSchema = object({
10829
+ /** Packed rgb (24-bit) pixels of the crop. */
10830
+ bytes: _instanceof(Uint8Array),
10831
+ width: number().int().positive(),
10832
+ height: number().int().positive()
10833
+ });
10834
+ /**
10714
10835
  * Per-camera tunable ranges + defaults. Single source of truth used
10715
10836
  * by both the Zod data schema (validation + default fallback) and
10716
10837
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10805,6 +10926,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10805
10926
  kind: literal("remote-restream"),
10806
10927
  /** The camera's source-owner node (slice 1: always the hub). */
10807
10928
  ownerNodeId: string(),
10929
+ /**
10930
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10931
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10932
+ * dials THIS host for the owner's restream, in preference to the
10933
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10934
+ */
10935
+ ownerReachableHost: string().optional(),
10808
10936
  /** Operator override for the owner host the runner dials. */
10809
10937
  hubHostnameOverride: string().optional()
10810
10938
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10813,13 +10941,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10813
10941
  * specific runner instance via `attachCamera`. Carries everything the
10814
10942
  * runner needs to subscribe to the local broker and execute inference.
10815
10943
  *
10816
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10817
- * optional `audio`) travels with the attach payload. The runner keeps it
10818
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10819
- * restart the orchestrator re-sends the latest snapshot.
10820
- *
10821
- * `engine`/`steps`/`audio` are optional during the additive migration
10822
- * window; once orchestrator + UI are migrated they become required.
10944
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10945
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10946
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10947
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10948
+ * node-local, resolved by the executing runner at dispatch time.
10823
10949
  */
10824
10950
  var RunnerCameraConfigSchema = object({
10825
10951
  deviceId: number(),
@@ -10870,14 +10996,11 @@ var RunnerCameraConfigSchema = object({
10870
10996
  */
10871
10997
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10872
10998
  pipelineEnabled: boolean().default(true),
10873
- /** Engine choice for video steps (runtime+backend+format). */
10874
- engine: PipelineEngineChoiceSchema.optional(),
10875
10999
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10876
11000
  steps: array(PipelineStepInputSchema).readonly().optional(),
10877
11001
  /** Audio classification branch. `enabled:false` disables, null skips. */
10878
11002
  audio: object({
10879
- engine: PipelineEngineChoiceSchema,
10880
- modelId: string(),
11003
+ modelId: string().optional(),
10881
11004
  enabled: boolean()
10882
11005
  }).nullable().optional(),
10883
11006
  /**
@@ -10964,7 +11087,11 @@ var RunnerLocalMetricsSchema = object({
10964
11087
  avgInferenceTimeMs: number(),
10965
11088
  queueDepth: number()
10966
11089
  });
10967
- 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());
11090
+ 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({
11091
+ handle: FrameHandleSchema,
11092
+ bbox: NativeCropBboxSchema,
11093
+ maxWidth: number().int().positive().optional()
11094
+ }), NativeCropResultSchema.nullable());
10968
11095
  object({
10969
11096
  detected: boolean(),
10970
11097
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12258,7 +12385,9 @@ var AddonPageDeclarationSchema$1 = object({
12258
12385
  icon: string(),
12259
12386
  path: string(),
12260
12387
  remoteName: string(),
12261
- bundle: string()
12388
+ bundle: string(),
12389
+ section: string().optional(),
12390
+ sectionLabel: string().optional()
12262
12391
  });
12263
12392
  var AddonPageInfoSchema = object({
12264
12393
  addonId: string(),
@@ -12298,7 +12427,18 @@ var AddonPageDeclarationSchema = object({
12298
12427
  * the static-file route can compute an mtime-based cache-buster URL
12299
12428
  * without a separate filesystem stat.
12300
12429
  */
12301
- bundle: string()
12430
+ bundle: string(),
12431
+ /**
12432
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12433
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12434
+ * Any OTHER string creates (or joins) a custom section rendered after
12435
+ * the built-in groups; its label comes from `sectionLabel` (first
12436
+ * declaration wins), falling back to the id. Absent → the legacy
12437
+ * "Addon Pages" group.
12438
+ */
12439
+ section: string().optional(),
12440
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12441
+ sectionLabel: string().optional()
12302
12442
  });
12303
12443
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12304
12444
  var AddonHttpRouteSchema = object({
@@ -12514,6 +12654,17 @@ var WidgetMetadataSchema = object({
12514
12654
  deviceContext: boolean().default(false),
12515
12655
  integrationContext: boolean().default(false)
12516
12656
  }),
12657
+ /**
12658
+ * Loadable BEFORE authentication. The normal widget registry listing
12659
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12660
+ * (the login page) cannot discover a widget through it. A widget that
12661
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12662
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12663
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12664
+ * than the authenticated registry, and its bundle is served by the
12665
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12666
+ */
12667
+ preAuth: boolean().optional().default(false),
12517
12668
  /** Dashboard placement HINTS (operator can override per instance). */
12518
12669
  defaultSize: WidgetSizeEnum.default("md"),
12519
12670
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12815,6 +12966,66 @@ method(object({
12815
12966
  password: string()
12816
12967
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12817
12968
  /**
12969
+ * `login-method` — collection cap through which auth addons contribute
12970
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12971
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12972
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12973
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12974
+ * procedure aggregates them for the unauthenticated login page.
12975
+ *
12976
+ * A contribution is a discriminated union on `kind`:
12977
+ *
12978
+ * - `redirect` — a declarative button. The login page renders a generic
12979
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
12980
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
12981
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
12982
+ * login page needs NO change.
12983
+ *
12984
+ * - `widget` — a Module-Federation widget the login page mounts (via
12985
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
12986
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
12987
+ * addon bundle. The referenced widget also declares `preAuth: true` in
12988
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
12989
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
12990
+ *
12991
+ * Every contribution carries a `stage`:
12992
+ * - `primary` — shown on the first credentials screen (OIDC /
12993
+ * magic-link buttons; a future usernameless passkey).
12994
+ * - `second-factor` — shown AFTER the password leg, gated on the
12995
+ * returned `factors` (passkey-as-2FA today).
12996
+ *
12997
+ * `mount: skip` — the cap is read server-side by the core auth router
12998
+ * (`registry.getCollection('login-method')`), never mounted as its own
12999
+ * tRPC router.
13000
+ */
13001
+ /** When a login method renders in the two-phase login flow. */
13002
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13003
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13004
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13005
+ kind: literal("redirect"),
13006
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13007
+ id: string(),
13008
+ /** Operator-facing button label. */
13009
+ label: string(),
13010
+ /** lucide-react icon name. */
13011
+ icon: string().optional(),
13012
+ /** Addon-owned HTTP route the button navigates to (GET). */
13013
+ startUrl: string(),
13014
+ stage: LoginStageEnum
13015
+ }), object({
13016
+ kind: literal("widget"),
13017
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13018
+ id: string(),
13019
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13020
+ addonId: string(),
13021
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13022
+ bundle: string(),
13023
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13024
+ remote: WidgetRemoteSchema,
13025
+ stage: LoginStageEnum
13026
+ })]);
13027
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13028
+ /**
12818
13029
  * Orchestrator-side destination metadata. The orchestrator computes
12819
13030
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12820
13031
  * (admin UI, restore flow) see one canonical key.
@@ -14918,7 +15129,17 @@ var TrackSchema = object({
14918
15129
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14919
15130
  totalDistance: number(),
14920
15131
  state: TrackStateSchema,
14921
- active: boolean()
15132
+ active: boolean(),
15133
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15134
+ * track expiry, recomputed on late label). Absent on legacy rows written
15135
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15136
+ importance: number().optional(),
15137
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15138
+ * "best" frame). Absent when the track produced no object events. */
15139
+ bestEventId: string().optional(),
15140
+ /** Tag of the importance sub-signal that dominated the score
15141
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15142
+ importanceReason: string().optional()
14922
15143
  });
14923
15144
  var BaseEventFields = {
14924
15145
  id: string(),
@@ -14983,8 +15204,18 @@ var ObjectEventSchema = object({
14983
15204
  frameHeight: number().optional(),
14984
15205
  /** MediaStore key for the crop attached to this event (if any). */
14985
15206
  mediaKey: string().optional(),
15207
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15208
+ * best-detection full frame). Resolve via the event-media data-plane
15209
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15210
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15211
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15212
+ keyFrameMediaKey: string().optional(),
14986
15213
  /** Populated by B5 (recording playback URL for this event). */
14987
- mediaUrl: string().optional()
15214
+ mediaUrl: string().optional(),
15215
+ /** The parent track's key-event importance [0,1], propagated to every object
15216
+ * event of the track (so an event row can be sorted by importance without a
15217
+ * track join). Absent on legacy rows / before the track was scored. */
15218
+ importance: number().optional()
14988
15219
  });
14989
15220
  var AudioEventSchema = object({
14990
15221
  ...BaseEventFields,
@@ -15008,7 +15239,8 @@ var MediaFileKindEnum = _enum([
15008
15239
  "fullFrame",
15009
15240
  "fullFrameBoxed",
15010
15241
  "faceCrop",
15011
- "plateCrop"
15242
+ "plateCrop",
15243
+ "keyFrame"
15012
15244
  ]);
15013
15245
  var MediaFileSchema = object({
15014
15246
  key: string(),
@@ -15029,6 +15261,32 @@ var DeviceEventQueryInput = object({
15029
15261
  projection: _enum(["full", "slim"]).optional()
15030
15262
  });
15031
15263
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15264
+ var KeyEventQueryInput = object({
15265
+ deviceId: number(),
15266
+ /** Window lower bound (track firstSeen ≥ since). */
15267
+ since: number(),
15268
+ /** Window upper bound (track firstSeen ≤ until). */
15269
+ until: number(),
15270
+ limit: number().int().min(1).max(200).default(50),
15271
+ /** Drop tracks scoring below this importance. */
15272
+ minImportance: number().min(0).max(1).optional(),
15273
+ /** Restrict to a single class (e.g. 'person'). */
15274
+ classFilter: string().optional()
15275
+ });
15276
+ var KeyEventSchema = object({
15277
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15278
+ id: string(),
15279
+ trackId: string(),
15280
+ /** Track start time (firstSeen). */
15281
+ timestamp: number(),
15282
+ className: string(),
15283
+ label: string().optional(),
15284
+ importance: number(),
15285
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15286
+ bestEventId: string(),
15287
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15288
+ windowMs: number().optional()
15289
+ });
15032
15290
  var TrackedDetectionSchema = object({
15033
15291
  trackId: string(),
15034
15292
  className: string(),
@@ -15058,7 +15316,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15058
15316
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15059
15317
  kind: "mutation",
15060
15318
  auth: "admin"
15061
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15319
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15062
15320
  deviceId: number(),
15063
15321
  since: number(),
15064
15322
  until: number(),
@@ -15103,11 +15361,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15103
15361
  timestamp: number()
15104
15362
  });
15105
15363
  var CameraPipelineConfigSchema = object({
15106
- engine: PipelineEngineChoiceSchema,
15364
+ engine: PipelineEngineChoiceSchema.optional(),
15107
15365
  steps: array(PipelineStepInputSchema).readonly(),
15108
15366
  audio: object({
15109
- engine: PipelineEngineChoiceSchema,
15110
- modelId: string(),
15367
+ engine: PipelineEngineChoiceSchema.optional(),
15368
+ modelId: string().optional(),
15111
15369
  enabled: boolean(),
15112
15370
  settings: record(string(), unknown()).readonly().optional()
15113
15371
  }).nullable().optional()
@@ -15122,7 +15380,7 @@ var PipelineTemplateSchema = object({
15122
15380
  });
15123
15381
  var AgentAddonConfigSchema = object({
15124
15382
  enabled: boolean(),
15125
- modelId: string(),
15383
+ modelId: string().optional(),
15126
15384
  settings: record(string(), unknown()).readonly()
15127
15385
  });
15128
15386
  var AgentPipelineSettingsSchema = object({
@@ -15132,12 +15390,25 @@ var AgentPipelineSettingsSchema = object({
15132
15390
  detectWeight: number().positive().optional(),
15133
15391
  /** Node is eligible to run the detection pipeline (decode + inference). */
15134
15392
  detect: boolean().optional(),
15135
- /** Node is eligible to host decoder sessions. */
15393
+ /**
15394
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15395
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15396
+ * the schema ONLY so persisted stores written before the removal still
15397
+ * parse — no code reads it and no write path emits it.
15398
+ */
15136
15399
  decode: boolean().optional(),
15137
15400
  /** Node is eligible to run audio-analyzer sessions. */
15138
15401
  audio: boolean().optional(),
15139
15402
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15140
- ingest: boolean().optional()
15403
+ ingest: boolean().optional(),
15404
+ /**
15405
+ * Operator override for the LAN host a cross-node decoder dials to reach
15406
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15407
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15408
+ * it already uses to reach the hub). Set this only when the auto-detected
15409
+ * address is wrong (multi-homed host, NAT, custom interface).
15410
+ */
15411
+ reachableHost: string().optional()
15141
15412
  });
15142
15413
  var CameraPipelineForAgentSchema = object({
15143
15414
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15185,25 +15456,6 @@ var PipelineAssignmentSchema = object({
15185
15456
  assignedAt: number()
15186
15457
  });
15187
15458
  /**
15188
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15189
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15190
- * → co-located with pipeline → capacity).
15191
- */
15192
- var DecoderAssignmentSchema = object({
15193
- deviceId: number(),
15194
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15195
- decoderNodeId: string(),
15196
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15197
- pinned: boolean(),
15198
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15199
- reason: _enum([
15200
- "manual",
15201
- "co-located",
15202
- "capacity",
15203
- "hardware-affinity"
15204
- ])
15205
- });
15206
- /**
15207
15459
  * Per-agent load summary surfaced to the load balancer + dashboards.
15208
15460
  * Aggregated from each runner's `getLocalLoad` cap call.
15209
15461
  */
@@ -15243,6 +15495,15 @@ var GlobalMetricsSchema = object({
15243
15495
  * capability providers.
15244
15496
  */
15245
15497
  var CapabilityBindingsSchema = record(string(), string());
15498
+ /**
15499
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15500
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15501
+ */
15502
+ var IngestOwnerSchema = object({
15503
+ ownerNodeId: string(),
15504
+ reachableHost: string().optional(),
15505
+ configIssue: string().optional()
15506
+ });
15246
15507
  /** Source block — always present; derives from the stream catalog. */
15247
15508
  var CameraSourceStatusSchema = object({ streams: array(object({
15248
15509
  camStreamId: string(),
@@ -15257,6 +15518,14 @@ var CameraAssignmentStatusSchema = object({
15257
15518
  detectionNodeId: string().nullable(),
15258
15519
  decoderNodeId: string().nullable(),
15259
15520
  audioNodeId: string().nullable(),
15521
+ /**
15522
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15523
+ * hosts the broker/restream) — the cluster ingest owner today
15524
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15525
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15526
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15527
+ */
15528
+ sourceNodeId: string().nullable(),
15260
15529
  pinned: object({
15261
15530
  detection: boolean(),
15262
15531
  decoder: boolean(),
@@ -15389,16 +15658,7 @@ method(object({
15389
15658
  }), object({ success: literal(true) }), {
15390
15659
  kind: "mutation",
15391
15660
  auth: "admin"
15392
- }), method(object({
15393
- deviceId: number(),
15394
- nodeId: string()
15395
- }), _void(), {
15396
- kind: "mutation",
15397
- auth: "admin"
15398
- }), method(object({ deviceId: number() }), _void(), {
15399
- kind: "mutation",
15400
- auth: "admin"
15401
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15661
+ }), method(_void(), IngestOwnerSchema), method(object({
15402
15662
  deviceId: number(),
15403
15663
  nodeId: string()
15404
15664
  }), object({ success: literal(true) }), {
@@ -15419,10 +15679,7 @@ method(object({
15419
15679
  nodeId: string(),
15420
15680
  pinned: boolean(),
15421
15681
  assignedAt: number()
15422
- }))), method(object({
15423
- deviceId: number(),
15424
- pipelineNodeId: string().optional()
15425
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15682
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15426
15683
  nodeId: string(),
15427
15684
  settings: AgentPipelineSettingsSchema
15428
15685
  })).readonly()), method(object({
@@ -15452,12 +15709,26 @@ method(object({
15452
15709
  }), method(object({
15453
15710
  agentNodeId: string(),
15454
15711
  detect: boolean().nullable().optional(),
15455
- decode: boolean().nullable().optional(),
15456
15712
  audio: boolean().nullable().optional(),
15457
15713
  ingest: boolean().nullable().optional()
15458
15714
  }), object({ success: literal(true) }), {
15459
15715
  kind: "mutation",
15460
15716
  auth: "admin"
15717
+ }), method(object({
15718
+ agentNodeId: string(),
15719
+ reachableHost: string().nullable()
15720
+ }), object({ success: literal(true) }), {
15721
+ kind: "mutation",
15722
+ auth: "admin"
15723
+ }), method(object({ agentNodeId: string() }), object({
15724
+ success: literal(true),
15725
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15726
+ effectiveModelId: string().nullable(),
15727
+ /** Number of cameras whose node-scoped overrides were cleared. */
15728
+ clearedCameraOverrides: number()
15729
+ }), {
15730
+ kind: "mutation",
15731
+ auth: "admin"
15461
15732
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15462
15733
  deviceId: number(),
15463
15734
  addonId: string(),
@@ -15502,22 +15773,131 @@ method(object({
15502
15773
  kind: "mutation",
15503
15774
  auth: "admin"
15504
15775
  });
15505
- var RegisteredStreamSchema = object({
15506
- streamId: string(),
15507
- label: string().optional(),
15508
- codec: string(),
15509
- type: _enum(["video", "audio"]),
15510
- sourceUrl: string()
15776
+ /**
15777
+ * server-management — per-NODE singleton capability for a node's ROOT
15778
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15779
+ * agents).
15780
+ *
15781
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15782
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15783
+ * version describes the node. Updates install into
15784
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15785
+ * starter (probation boot + auto-rollback to N-1).
15786
+ *
15787
+ * Providers:
15788
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15789
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15790
+ * unpinned calls.
15791
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15792
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15793
+ * `$hub.registerNode` manifest.
15794
+ *
15795
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15796
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15797
+ * SDK) routes the call to that node's provider via the standard remote
15798
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15799
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15800
+ *
15801
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15802
+ */
15803
+ /**
15804
+ * Where the running hub's code was loaded from:
15805
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15806
+ * plain resolution and runtime updates are refused.
15807
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15808
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15809
+ */
15810
+ var ServerBootModeSchema = _enum([
15811
+ "workspace",
15812
+ "baked",
15813
+ "data-root"
15814
+ ]);
15815
+ /**
15816
+ * Update lifecycle state:
15817
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15818
+ * - `pending-restart` — a version is staged and the node has NOT yet
15819
+ * restarted onto it (still running the OLD version).
15820
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15821
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15822
+ * Apply/rollback are refused in this state and the node must NOT be
15823
+ * manually restarted, or the probation boot auto-rolls-back.
15824
+ */
15825
+ var ServerUpdateStateSchema = _enum([
15826
+ "idle",
15827
+ "checking",
15828
+ "staging",
15829
+ "pending-restart",
15830
+ "awaiting-confirmation"
15831
+ ]);
15832
+ var ServerRollbackInfoSchema = object({
15833
+ /** The version that failed (or was manually rolled back). */
15834
+ fromVersion: string(),
15835
+ /** The version rolled back to; null = the baked seed. */
15836
+ toVersion: string().nullable(),
15837
+ atMs: number(),
15838
+ reason: string()
15511
15839
  });
15512
- var ExposedResourceSchema = object({
15513
- streamId: string(),
15514
- format: string(),
15515
- value: string()
15840
+ var ServerPackageStatusSchema = object({
15841
+ /** Root package name (`@camstack/server` on the hub). */
15842
+ packageName: string(),
15843
+ /** Version of the code the running process ACTUALLY loaded. */
15844
+ runningVersion: string().nullable(),
15845
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15846
+ nodeRuntimeVersion: string().nullable(),
15847
+ /** Active data-dir root version; null when booted from seed/workspace. */
15848
+ activeVersion: string().nullable(),
15849
+ /** N-1 version kept for rollback; null when no previous version exists. */
15850
+ previousVersion: string().nullable(),
15851
+ /** Version of the immutable baked seed closure (image fallback). */
15852
+ seedVersion: string().nullable(),
15853
+ /** Latest registry version from the most recent check (null = never checked). */
15854
+ latestVersion: string().nullable(),
15855
+ updateAvailable: boolean(),
15856
+ bootMode: ServerBootModeSchema,
15857
+ updateState: ServerUpdateStateSchema,
15858
+ /** Version staged + awaiting its probation boot, when one is pending. */
15859
+ pendingVersion: string().nullable(),
15860
+ /** Set when the last freshly-activated version failed its boot health-check. */
15861
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15862
+ /**
15863
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15864
+ * hub is running from the baked seed (or workspace) while installed data-dir
15865
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15866
+ */
15867
+ stateFileCorrupt: boolean(),
15868
+ lastCheckedAtMs: number().nullable()
15869
+ });
15870
+ var ServerUpdateCheckResultSchema = object({
15871
+ packageName: string(),
15872
+ runningVersion: string().nullable(),
15873
+ latestVersion: string().nullable(),
15874
+ updateAvailable: boolean(),
15875
+ checkedAtMs: number(),
15876
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15877
+ error: string().nullable()
15878
+ });
15879
+ var ServerUpdateActionResultSchema = object({
15880
+ accepted: boolean(),
15881
+ targetVersion: string().nullable(),
15882
+ /** True when a graceful restart was scheduled to apply the change. */
15883
+ restarting: boolean(),
15884
+ message: string()
15885
+ });
15886
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15887
+ kind: "mutation",
15888
+ auth: "admin"
15889
+ }), method(object({
15890
+ /** Explicit target version; omitted = latest from the registry. */
15891
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15892
+ kind: "mutation",
15893
+ auth: "admin"
15894
+ }), method(_void(), ServerUpdateActionResultSchema, {
15895
+ kind: "mutation",
15896
+ auth: "admin"
15897
+ }), method(_void(), ServerUpdateActionResultSchema, {
15898
+ kind: "mutation",
15899
+ auth: "admin"
15516
15900
  });
15517
- method(object({
15518
- deviceId: number(),
15519
- streams: array(RegisteredStreamSchema).readonly()
15520
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15521
15901
  /**
15522
15902
  * Query filter for settings-store collections.
15523
15903
  */
@@ -15670,9 +16050,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15670
16050
  /**
15671
16051
  * A single device snapshot returned as base64 JPEG/PNG.
15672
16052
  *
15673
- * Shared with the `snapshot-provider` collection cap the orchestrator
15674
- * receives the same shape from each native provider and from the
15675
- * broker-based fallback.
16053
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16054
+ * the device-native provider (onboard capture) or from the stream-broker
16055
+ * prebuffer fallback.
15676
16056
  */
15677
16057
  var SnapshotImageSchema = object({
15678
16058
  base64: string(),
@@ -15703,11 +16083,12 @@ DeviceType.Camera, method(object({
15703
16083
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15704
16084
  kind: "mutation",
15705
16085
  auth: "admin"
15706
- });
15707
- method(object({ deviceId: number() }), boolean()), method(object({
16086
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15708
16087
  deviceId: number(),
15709
- streamId: string().optional()
15710
- }), SnapshotImageSchema.nullable());
16088
+ lastCapturedAt: number().nullable(),
16089
+ cacheAgeMs: number().nullable(),
16090
+ etag: string().nullable()
16091
+ })));
15711
16092
  /**
15712
16093
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15713
16094
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16003,10 +16384,32 @@ method(_void(), array(TurnServerSchema).readonly());
16003
16384
  * b. `finishAuthentication({userId, response})` → server verifies
16004
16385
  * the assertion, bumps the credential counter, returns ok.
16005
16386
  *
16387
+ * 2b. Usernameless (discoverable-credential) authentication — the
16388
+ * passkey IS the primary factor, no password leg:
16389
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16390
+ * EMPTY `allowCredentials` (the browser offers every resident
16391
+ * passkey it holds for this RP) + `userVerification: 'required'`
16392
+ * (the passkey replaces both factors, so UV is mandatory).
16393
+ * The challenge is stored server-side, NOT bound to any user.
16394
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16395
+ * resolves the credential by the response's credential id,
16396
+ * verifies the assertion against the stored challenge + that
16397
+ * credential's public key/counter, and returns the OWNING
16398
+ * `userId` — the caller (core auth router) mints the session.
16399
+ *
16006
16400
  * 3. Management:
16007
16401
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16008
16402
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16009
16403
  *
16404
+ * 4. Second-factor preference (opt-in, default OFF):
16405
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16406
+ * demanded as a second factor after a password login ONLY when the
16407
+ * user explicitly opts in via `setSecondFactorPreference`.
16408
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16409
+ * row ⇒ `enabled: false`).
16410
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16411
+ * the providing addon beside its credentials.
16412
+ *
16010
16413
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16011
16414
  * the admin-ui composes the begin/finish round-trip and never exposes
16012
16415
  * the cap to non-admins.
@@ -16049,6 +16452,17 @@ method(object({
16049
16452
  }), object({ verified: boolean() }), {
16050
16453
  kind: "mutation",
16051
16454
  access: "view"
16455
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16456
+ kind: "mutation",
16457
+ access: "view"
16458
+ }), method(object({
16459
+ /** AuthenticationResponseJSON from the browser. */
16460
+ response: record(string(), unknown()) }), object({
16461
+ verified: boolean(),
16462
+ userId: string().nullable()
16463
+ }), {
16464
+ kind: "mutation",
16465
+ access: "view"
16052
16466
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16053
16467
  userId: string(),
16054
16468
  credentialId: string()
@@ -16056,6 +16470,13 @@ method(object({
16056
16470
  kind: "mutation",
16057
16471
  auth: "admin",
16058
16472
  access: "delete"
16473
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16474
+ userId: string(),
16475
+ enabled: boolean()
16476
+ }), object({ success: literal(true) }), {
16477
+ kind: "mutation",
16478
+ auth: "admin",
16479
+ access: "create"
16059
16480
  });
16060
16481
  /**
16061
16482
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16113,9 +16534,10 @@ method(object({
16113
16534
  auth: "admin"
16114
16535
  });
16115
16536
  /**
16116
- * Optional client-side hints sent at session creation to help the
16117
- * provider pick the best native source. All fields are optional —
16118
- * a viewer that knows nothing still gets a sane default.
16537
+ * Optional client-side hints sent at session creation to help the provider
16538
+ * pick the best native source. All fields optional — a viewer that knows
16539
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16540
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16119
16541
  */
16120
16542
  var webrtcClientHintsSchema = object({
16121
16543
  viewportWidth: number().int().positive().optional(),
@@ -16126,22 +16548,6 @@ var webrtcClientHintsSchema = object({
16126
16548
  /** Hard tier override; takes precedence over scoring when registered. */
16127
16549
  prefersTier: string().optional()
16128
16550
  }).partial();
16129
- method(object({
16130
- streamId: string(),
16131
- sdpOffer: string()
16132
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16133
- streamId: string(),
16134
- codec: string()
16135
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16136
- streamId: string(),
16137
- hints: webrtcClientHintsSchema.optional()
16138
- }), object({
16139
- sessionId: string(),
16140
- sdpOffer: string()
16141
- }), { kind: "mutation" }), method(object({
16142
- sessionId: string(),
16143
- sdpAnswer: string()
16144
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16145
16551
  /**
16146
16552
  * Discriminated target for a WebRTC session. The client sends this
16147
16553
  * structured object instead of building / parsing brokerId strings;
@@ -16872,7 +17278,17 @@ var FaceInfoSchema = object({
16872
17278
  recognizedIdentityId: string().optional(),
16873
17279
  identityName: string().optional(),
16874
17280
  assigned: boolean(),
16875
- base64: string().optional()
17281
+ base64: string().optional(),
17282
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17283
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17284
+ * legacy rows written before design B. */
17285
+ faceBbox: BoundingBoxSchema.optional(),
17286
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17287
+ * Fetch the native JPEG via the event-media data-plane
17288
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17289
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17290
+ * back to the inline `base64` face crop. */
17291
+ keyFrameMediaKey: string().optional()
16876
17292
  });
16877
17293
  var FaceFilterEnum = _enum([
16878
17294
  "unassigned",
@@ -17569,6 +17985,16 @@ var TopologyCategorySchema = object({
17569
17985
  healthy: number(),
17570
17986
  addons: array(TopologyCategoryAddonSchema).readonly()
17571
17987
  });
17988
+ /**
17989
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17990
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17991
+ * version visibility for the Server management surface. Nullable: offline
17992
+ * rows and pre-phase-2 nodes report none.
17993
+ */
17994
+ var TopologyRootPackageSchema = object({
17995
+ name: string(),
17996
+ version: string()
17997
+ });
17572
17998
  var TopologyNodeSchema = object({
17573
17999
  id: string(),
17574
18000
  name: string(),
@@ -17592,7 +18018,8 @@ var TopologyNodeSchema = object({
17592
18018
  status: string()
17593
18019
  })).readonly(),
17594
18020
  processes: array(TopologyProcessSchema).readonly(),
17595
- categories: array(TopologyCategorySchema).readonly()
18021
+ categories: array(TopologyCategorySchema).readonly(),
18022
+ rootPackage: TopologyRootPackageSchema.nullable()
17596
18023
  });
17597
18024
  var CapUsageEdgeSchema = object({
17598
18025
  callerAddonId: string(),
@@ -20392,6 +20819,12 @@ Object.freeze({
20392
20819
  addonId: null,
20393
20820
  access: "create"
20394
20821
  },
20822
+ "loginMethod.getLoginMethods": {
20823
+ capName: "login-method",
20824
+ capScope: "system",
20825
+ addonId: null,
20826
+ access: "view"
20827
+ },
20395
20828
  "mediaPlayer.next": {
20396
20829
  capName: "media-player",
20397
20830
  capScope: "device",
@@ -20974,6 +21407,12 @@ Object.freeze({
20974
21407
  addonId: null,
20975
21408
  access: "view"
20976
21409
  },
21410
+ "pipelineAnalytics.getKeyEvents": {
21411
+ capName: "pipeline-analytics",
21412
+ capScope: "device",
21413
+ addonId: null,
21414
+ access: "view"
21415
+ },
20977
21416
  "pipelineAnalytics.getMotionEvents": {
20978
21417
  capName: "pipeline-analytics",
20979
21418
  capScope: "device",
@@ -21022,23 +21461,23 @@ Object.freeze({
21022
21461
  addonId: null,
21023
21462
  access: "create"
21024
21463
  },
21025
- "pipelineExecutor.deleteModel": {
21464
+ "pipelineExecutor.clearDeviceOverrides": {
21026
21465
  capName: "pipeline-executor",
21027
21466
  capScope: "system",
21028
21467
  addonId: null,
21029
21468
  access: "delete"
21030
21469
  },
21031
- "pipelineExecutor.deleteTemplate": {
21470
+ "pipelineExecutor.deleteModel": {
21032
21471
  capName: "pipeline-executor",
21033
21472
  capScope: "system",
21034
21473
  addonId: null,
21035
21474
  access: "delete"
21036
21475
  },
21037
- "pipelineExecutor.detect": {
21476
+ "pipelineExecutor.deleteTemplate": {
21038
21477
  capName: "pipeline-executor",
21039
21478
  capScope: "system",
21040
21479
  addonId: null,
21041
- access: "view"
21480
+ access: "delete"
21042
21481
  },
21043
21482
  "pipelineExecutor.downloadModel": {
21044
21483
  capName: "pipeline-executor",
@@ -21232,13 +21671,13 @@ Object.freeze({
21232
21671
  addonId: null,
21233
21672
  access: "create"
21234
21673
  },
21235
- "pipelineOrchestrator.assignAudio": {
21236
- capName: "pipeline-orchestrator",
21674
+ "pipelineExecutor.validatePipeline": {
21675
+ capName: "pipeline-executor",
21237
21676
  capScope: "system",
21238
21677
  addonId: null,
21239
- access: "create"
21678
+ access: "view"
21240
21679
  },
21241
- "pipelineOrchestrator.assignDecoder": {
21680
+ "pipelineOrchestrator.assignAudio": {
21242
21681
  capName: "pipeline-orchestrator",
21243
21682
  capScope: "system",
21244
21683
  addonId: null,
@@ -21322,19 +21761,13 @@ Object.freeze({
21322
21761
  addonId: null,
21323
21762
  access: "view"
21324
21763
  },
21325
- "pipelineOrchestrator.getDecoderAssignment": {
21326
- capName: "pipeline-orchestrator",
21327
- capScope: "system",
21328
- addonId: null,
21329
- access: "view"
21330
- },
21331
- "pipelineOrchestrator.getDecoderAssignments": {
21764
+ "pipelineOrchestrator.getGlobalMetrics": {
21332
21765
  capName: "pipeline-orchestrator",
21333
21766
  capScope: "system",
21334
21767
  addonId: null,
21335
21768
  access: "view"
21336
21769
  },
21337
- "pipelineOrchestrator.getGlobalMetrics": {
21770
+ "pipelineOrchestrator.getIngestOwner": {
21338
21771
  capName: "pipeline-orchestrator",
21339
21772
  capScope: "system",
21340
21773
  addonId: null,
@@ -21376,6 +21809,12 @@ Object.freeze({
21376
21809
  addonId: null,
21377
21810
  access: "delete"
21378
21811
  },
21812
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21813
+ capName: "pipeline-orchestrator",
21814
+ capScope: "system",
21815
+ addonId: null,
21816
+ access: "delete"
21817
+ },
21379
21818
  "pipelineOrchestrator.resolvePipeline": {
21380
21819
  capName: "pipeline-orchestrator",
21381
21820
  capScope: "system",
@@ -21412,37 +21851,37 @@ Object.freeze({
21412
21851
  addonId: null,
21413
21852
  access: "create"
21414
21853
  },
21415
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21854
+ "pipelineOrchestrator.setAgentReachableHost": {
21416
21855
  capName: "pipeline-orchestrator",
21417
21856
  capScope: "system",
21418
21857
  addonId: null,
21419
21858
  access: "create"
21420
21859
  },
21421
- "pipelineOrchestrator.setCameraStepOverride": {
21860
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21422
21861
  capName: "pipeline-orchestrator",
21423
21862
  capScope: "system",
21424
21863
  addonId: null,
21425
21864
  access: "create"
21426
21865
  },
21427
- "pipelineOrchestrator.setCameraStepToggle": {
21866
+ "pipelineOrchestrator.setCameraStepOverride": {
21428
21867
  capName: "pipeline-orchestrator",
21429
21868
  capScope: "system",
21430
21869
  addonId: null,
21431
21870
  access: "create"
21432
21871
  },
21433
- "pipelineOrchestrator.setCapabilityBinding": {
21872
+ "pipelineOrchestrator.setCameraStepToggle": {
21434
21873
  capName: "pipeline-orchestrator",
21435
21874
  capScope: "system",
21436
21875
  addonId: null,
21437
21876
  access: "create"
21438
21877
  },
21439
- "pipelineOrchestrator.unassignAudio": {
21878
+ "pipelineOrchestrator.setCapabilityBinding": {
21440
21879
  capName: "pipeline-orchestrator",
21441
21880
  capScope: "system",
21442
21881
  addonId: null,
21443
21882
  access: "create"
21444
21883
  },
21445
- "pipelineOrchestrator.unassignDecoder": {
21884
+ "pipelineOrchestrator.unassignAudio": {
21446
21885
  capName: "pipeline-orchestrator",
21447
21886
  capScope: "system",
21448
21887
  addonId: null,
@@ -21502,6 +21941,12 @@ Object.freeze({
21502
21941
  addonId: null,
21503
21942
  access: "view"
21504
21943
  },
21944
+ "pipelineRunner.getNativeCrop": {
21945
+ capName: "pipeline-runner",
21946
+ capScope: "system",
21947
+ addonId: null,
21948
+ access: "view"
21949
+ },
21505
21950
  "pipelineRunner.reportMotion": {
21506
21951
  capName: "pipeline-runner",
21507
21952
  capScope: "system",
@@ -21742,33 +22187,45 @@ Object.freeze({
21742
22187
  addonId: null,
21743
22188
  access: "create"
21744
22189
  },
21745
- "restreamer.getExposedResources": {
21746
- capName: "restreamer",
22190
+ "scriptRunner.run": {
22191
+ capName: "script-runner",
22192
+ capScope: "device",
22193
+ addonId: null,
22194
+ access: "create"
22195
+ },
22196
+ "scriptRunner.stop": {
22197
+ capName: "script-runner",
22198
+ capScope: "device",
22199
+ addonId: null,
22200
+ access: "create"
22201
+ },
22202
+ "serverManagement.applyServerUpdate": {
22203
+ capName: "server-management",
21747
22204
  capScope: "system",
21748
22205
  addonId: null,
21749
- access: "view"
22206
+ access: "create"
21750
22207
  },
21751
- "restreamer.registerDevice": {
21752
- capName: "restreamer",
22208
+ "serverManagement.checkServerUpdate": {
22209
+ capName: "server-management",
21753
22210
  capScope: "system",
21754
22211
  addonId: null,
21755
22212
  access: "create"
21756
22213
  },
21757
- "restreamer.unregisterDevice": {
21758
- capName: "restreamer",
22214
+ "serverManagement.getServerPackageStatus": {
22215
+ capName: "server-management",
21759
22216
  capScope: "system",
21760
22217
  addonId: null,
21761
- access: "delete"
22218
+ access: "view"
21762
22219
  },
21763
- "scriptRunner.run": {
21764
- capName: "script-runner",
21765
- capScope: "device",
22220
+ "serverManagement.restartServer": {
22221
+ capName: "server-management",
22222
+ capScope: "system",
21766
22223
  addonId: null,
21767
22224
  access: "create"
21768
22225
  },
21769
- "scriptRunner.stop": {
21770
- capName: "script-runner",
21771
- capScope: "device",
22226
+ "serverManagement.rollbackServerUpdate": {
22227
+ capName: "server-management",
22228
+ capScope: "system",
21772
22229
  addonId: null,
21773
22230
  access: "create"
21774
22231
  },
@@ -21856,23 +22313,17 @@ Object.freeze({
21856
22313
  addonId: null,
21857
22314
  access: "view"
21858
22315
  },
21859
- "snapshot.invalidateCache": {
22316
+ "snapshot.getSnapshotOverview": {
21860
22317
  capName: "snapshot",
21861
22318
  capScope: "device",
21862
22319
  addonId: null,
21863
- access: "create"
21864
- },
21865
- "snapshotProvider.getSnapshot": {
21866
- capName: "snapshot-provider",
21867
- capScope: "system",
21868
- addonId: null,
21869
22320
  access: "view"
21870
22321
  },
21871
- "snapshotProvider.supportsDevice": {
21872
- capName: "snapshot-provider",
21873
- capScope: "system",
22322
+ "snapshot.invalidateCache": {
22323
+ capName: "snapshot",
22324
+ capScope: "device",
21874
22325
  addonId: null,
21875
- access: "view"
22326
+ access: "create"
21876
22327
  },
21877
22328
  "ssoBridge.signBridgeToken": {
21878
22329
  capName: "sso-bridge",
@@ -22300,30 +22751,6 @@ Object.freeze({
22300
22751
  addonId: null,
22301
22752
  access: "view"
22302
22753
  },
22303
- "streamingEngine.getStreamUrl": {
22304
- capName: "streaming-engine",
22305
- capScope: "system",
22306
- addonId: null,
22307
- access: "view"
22308
- },
22309
- "streamingEngine.listStreams": {
22310
- capName: "streaming-engine",
22311
- capScope: "system",
22312
- addonId: null,
22313
- access: "view"
22314
- },
22315
- "streamingEngine.registerStream": {
22316
- capName: "streaming-engine",
22317
- capScope: "system",
22318
- addonId: null,
22319
- access: "create"
22320
- },
22321
- "streamingEngine.unregisterStream": {
22322
- capName: "streaming-engine",
22323
- capScope: "system",
22324
- addonId: null,
22325
- access: "delete"
22326
- },
22327
22754
  "streamParams.getConfigSchema": {
22328
22755
  capName: "stream-params",
22329
22756
  capScope: "device",
@@ -22570,6 +22997,12 @@ Object.freeze({
22570
22997
  addonId: null,
22571
22998
  access: "view"
22572
22999
  },
23000
+ "userPasskeys.beginDiscoverableAuthentication": {
23001
+ capName: "user-passkeys",
23002
+ capScope: "system",
23003
+ addonId: null,
23004
+ access: "view"
23005
+ },
22573
23006
  "userPasskeys.beginRegistration": {
22574
23007
  capName: "user-passkeys",
22575
23008
  capScope: "system",
@@ -22582,12 +23015,24 @@ Object.freeze({
22582
23015
  addonId: null,
22583
23016
  access: "view"
22584
23017
  },
23018
+ "userPasskeys.finishDiscoverableAuthentication": {
23019
+ capName: "user-passkeys",
23020
+ capScope: "system",
23021
+ addonId: null,
23022
+ access: "view"
23023
+ },
22585
23024
  "userPasskeys.finishRegistration": {
22586
23025
  capName: "user-passkeys",
22587
23026
  capScope: "system",
22588
23027
  addonId: null,
22589
23028
  access: "create"
22590
23029
  },
23030
+ "userPasskeys.getSecondFactorPreference": {
23031
+ capName: "user-passkeys",
23032
+ capScope: "system",
23033
+ addonId: null,
23034
+ access: "view"
23035
+ },
22591
23036
  "userPasskeys.listPasskeys": {
22592
23037
  capName: "user-passkeys",
22593
23038
  capScope: "system",
@@ -22600,6 +23045,12 @@ Object.freeze({
22600
23045
  addonId: null,
22601
23046
  access: "delete"
22602
23047
  },
23048
+ "userPasskeys.setSecondFactorPreference": {
23049
+ capName: "user-passkeys",
23050
+ capScope: "system",
23051
+ addonId: null,
23052
+ access: "create"
23053
+ },
22603
23054
  "vacuumControl.locate": {
22604
23055
  capName: "vacuum-control",
22605
23056
  capScope: "device",
@@ -22672,6 +23123,18 @@ Object.freeze({
22672
23123
  addonId: null,
22673
23124
  access: "view"
22674
23125
  },
23126
+ "viewerUi.getStaticDir": {
23127
+ capName: "viewer-ui",
23128
+ capScope: "system",
23129
+ addonId: null,
23130
+ access: "view"
23131
+ },
23132
+ "viewerUi.getVersion": {
23133
+ capName: "viewer-ui",
23134
+ capScope: "system",
23135
+ addonId: null,
23136
+ access: "view"
23137
+ },
22675
23138
  "waterHeater.setAway": {
22676
23139
  capName: "water-heater",
22677
23140
  capScope: "device",
@@ -22690,54 +23153,6 @@ Object.freeze({
22690
23153
  addonId: null,
22691
23154
  access: "create"
22692
23155
  },
22693
- "webrtc.closeSession": {
22694
- capName: "webrtc",
22695
- capScope: "system",
22696
- addonId: null,
22697
- access: "create"
22698
- },
22699
- "webrtc.createSession": {
22700
- capName: "webrtc",
22701
- capScope: "system",
22702
- addonId: null,
22703
- access: "create"
22704
- },
22705
- "webrtc.handleAnswer": {
22706
- capName: "webrtc",
22707
- capScope: "system",
22708
- addonId: null,
22709
- access: "create"
22710
- },
22711
- "webrtc.handleOffer": {
22712
- capName: "webrtc",
22713
- capScope: "system",
22714
- addonId: null,
22715
- access: "create"
22716
- },
22717
- "webrtc.hasAdaptiveBitrate": {
22718
- capName: "webrtc",
22719
- capScope: "system",
22720
- addonId: null,
22721
- access: "view"
22722
- },
22723
- "webrtc.registerStream": {
22724
- capName: "webrtc",
22725
- capScope: "system",
22726
- addonId: null,
22727
- access: "create"
22728
- },
22729
- "webrtc.supportsStream": {
22730
- capName: "webrtc",
22731
- capScope: "system",
22732
- addonId: null,
22733
- access: "view"
22734
- },
22735
- "webrtc.unregisterStream": {
22736
- capName: "webrtc",
22737
- capScope: "system",
22738
- addonId: null,
22739
- access: "delete"
22740
- },
22741
23156
  "webrtcSession.addIceCandidate": {
22742
23157
  capName: "webrtc-session",
22743
23158
  capScope: "device",