@camstack/addon-advanced-notifier 1.1.21 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +715 -258
  2. package/dist/addon.mjs +715 -258
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4632,7 +4632,7 @@ function _instanceof(cls, params = {}) {
4632
4632
  return inst;
4633
4633
  }
4634
4634
  //#endregion
4635
- //#region ../types/dist/sleep-CZDdRBua.mjs
4635
+ //#region ../types/dist/sleep-Baang_XW.mjs
4636
4636
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4637
4637
  EventCategory["SystemBoot"] = "system.boot";
4638
4638
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4818,6 +4818,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4818
4818
  */
4819
4819
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4820
4820
  /**
4821
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4822
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4823
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4824
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4825
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4826
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4827
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4828
+ * topology change, so a dropped event self-heals on the next one (plus the
4829
+ * broker's long backstop reconcile query).
4830
+ */
4831
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4832
+ /**
4821
4833
  * Periodic snapshot of per-node pipeline-runner load
4822
4834
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4823
4835
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5341,10 +5353,6 @@ function hydrateField(field, values) {
5341
5353
  };
5342
5354
  }
5343
5355
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5344
- if (field.type === "password") return {
5345
- ...field,
5346
- value: ""
5347
- };
5348
5356
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5349
5357
  return {
5350
5358
  ...field,
@@ -6728,6 +6736,21 @@ function method(input, output, options) {
6728
6736
  timeoutMs: options?.timeoutMs
6729
6737
  };
6730
6738
  }
6739
+ /**
6740
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6741
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6742
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6743
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6744
+ */
6745
+ function systemMethod(input, output, options) {
6746
+ return {
6747
+ ...method(input, output, options),
6748
+ systemOnly: true
6749
+ };
6750
+ }
6751
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6752
+ var VersionOutputSchema$1 = object({ version: string() });
6753
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6731
6754
  var StaticDirOutputSchema = object({ staticDir: string() });
6732
6755
  var VersionOutputSchema = object({ version: string() });
6733
6756
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6897,6 +6920,36 @@ var ModelFormatsSchema = object({
6897
6920
  tflite: ModelFormatEntrySchema.optional(),
6898
6921
  pt: ModelFormatEntrySchema.optional()
6899
6922
  });
6923
+ /**
6924
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6925
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6926
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6927
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6928
+ * resolution/download/persistence; this is a presentation overlay resolved back
6929
+ * to an `id`.
6930
+ */
6931
+ var ModelVariantGroupSchema = object({
6932
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6933
+ family: string(),
6934
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6935
+ tier: string(),
6936
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6937
+ precision: _enum(["fp32", "int8"]).optional(),
6938
+ /**
6939
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6940
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6941
+ * future performance variants plug into.
6942
+ */
6943
+ optimization: _enum(["standard", "fast"]).optional(),
6944
+ /**
6945
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6946
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6947
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6948
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6949
+ * the group so the selector can offer it as a variant axis.
6950
+ */
6951
+ resolution: number().int().positive().optional()
6952
+ });
6900
6953
  var ModelCatalogEntrySchema = object({
6901
6954
  id: string(),
6902
6955
  name: string(),
@@ -6926,7 +6979,43 @@ var ModelCatalogEntrySchema = object({
6926
6979
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6927
6980
  * Downloaded into the same modelsDir alongside the model file.
6928
6981
  */
6929
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6982
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6983
+ /**
6984
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6985
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6986
+ * model list and excluded from the auto format-default pick. Set on the
6987
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6988
+ * the active lineup stays the coherent curated ladder without deleting a
6989
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6990
+ * an explicit legacy id that has a build for the node's format.
6991
+ */
6992
+ legacy: boolean().optional(),
6993
+ /**
6994
+ * Measured quality/latency metadata — populated from the benchmark addon on
6995
+ * the real node classes. Absent = not yet measured (most entries today; the
6996
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
6997
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
6998
+ */
6999
+ metrics: object({
7000
+ map50: number().optional(),
7001
+ p95LatencyMs: record(string(), number()).optional()
7002
+ }).optional(),
7003
+ /**
7004
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7005
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7006
+ * the retraining addon and any future commercial distribution.
7007
+ */
7008
+ license: string().optional(),
7009
+ /**
7010
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7011
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7012
+ * of a family's sizes and quantizations collapse into one grouped picker
7013
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7014
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7015
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7016
+ * is a presentation overlay resolved back to an `id`.
7017
+ */
7018
+ group: ModelVariantGroupSchema.optional()
6930
7019
  });
6931
7020
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6932
7021
  format: literal("openvino"),
@@ -6987,8 +7076,8 @@ var RecordingModeSchema = _enum([
6987
7076
  "onAudioThreshold"
6988
7077
  ]);
6989
7078
  /**
6990
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6991
- * reads directly (never inferred from `rules`):
7079
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7080
+ * UI reads directly (never inferred from `rules`):
6992
7081
  * - `off` — not recording.
6993
7082
  * - `events` — record only around triggers (motion / audio threshold),
6994
7083
  * with pre/post-buffer.
@@ -8650,26 +8739,13 @@ DeviceType.Light, method(object({
8650
8739
  percentage: number().min(0).max(100),
8651
8740
  lastChangedAt: number()
8652
8741
  });
8742
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8653
8743
  var StreamFormatSchema = _enum([
8654
8744
  "webrtc",
8655
8745
  "hls",
8656
8746
  "mjpeg",
8657
8747
  "rtsp"
8658
8748
  ]);
8659
- var StreamInfoSchema = object({
8660
- streamId: string(),
8661
- format: StreamFormatSchema,
8662
- url: string().nullable(),
8663
- active: boolean()
8664
- });
8665
- method(object({
8666
- streamId: string(),
8667
- sourceUrl: string(),
8668
- codec: string().optional()
8669
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8670
- streamId: string(),
8671
- format: StreamFormatSchema
8672
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8673
8749
  var RtspRestreamEntrySchema = object({
8674
8750
  brokerId: string(),
8675
8751
  url: string(),
@@ -9334,7 +9410,7 @@ var ConsumablesStatusSchema = object({
9334
9410
  })),
9335
9411
  lastChangedAt: number()
9336
9412
  });
9337
- 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({
9413
+ Object.values(DeviceType), method(object({
9338
9414
  deviceId: number().int().nonnegative(),
9339
9415
  key: string().min(1)
9340
9416
  }), _void(), {
@@ -10249,7 +10325,7 @@ var BoundingBoxSchema = object({
10249
10325
  w: number(),
10250
10326
  h: number()
10251
10327
  });
10252
- var SpatialDetectionSchema = object({
10328
+ object({
10253
10329
  class: string(),
10254
10330
  originalClass: string(),
10255
10331
  score: number(),
@@ -10384,7 +10460,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10384
10460
  enabled: boolean(),
10385
10461
  modelId: string(),
10386
10462
  children: array(PipelineDefaultStepSchema).readonly(),
10387
- engine: PipelineEngineChoiceSchema.optional(),
10388
10463
  group: string().optional(),
10389
10464
  settings: record(string(), unknown()).optional()
10390
10465
  }));
@@ -10409,7 +10484,9 @@ var PipelineModelOptionSchema = object({
10409
10484
  formats: record(string(), object({
10410
10485
  downloaded: boolean(),
10411
10486
  sizeMB: number()
10412
- }))
10487
+ })),
10488
+ group: ModelVariantGroupSchema.optional(),
10489
+ legacy: boolean().optional()
10413
10490
  });
10414
10491
  var ConfigFieldBridge = custom();
10415
10492
  var PipelineAddonSchemaSchema = object({
@@ -10423,6 +10500,7 @@ var PipelineAddonSchemaSchema = object({
10423
10500
  defaultModelId: string(),
10424
10501
  defaultModelIdByFormat: record(string(), string()).optional(),
10425
10502
  enabledByDefault: boolean().optional(),
10503
+ backfillIntoExistingOverrides: boolean().optional(),
10426
10504
  defaultConfidence: number(),
10427
10505
  group: string().optional(),
10428
10506
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10439,11 +10517,6 @@ var PipelineSchemaSchema = object({
10439
10517
  selectedEngine: PipelineEngineChoiceSchema,
10440
10518
  slots: array(PipelineSlotSchemaSchema).readonly()
10441
10519
  });
10442
- var DetectorOutputSchema = object({
10443
- detections: array(SpatialDetectionSchema).readonly(),
10444
- inferenceMs: number(),
10445
- modelId: string()
10446
- });
10447
10520
  var EngineProvisioningSchema = object({
10448
10521
  runtimeId: _enum([
10449
10522
  "onnx",
@@ -10460,15 +10533,42 @@ var EngineProvisioningSchema = object({
10460
10533
  ]),
10461
10534
  progress: number().optional(),
10462
10535
  error: string().optional(),
10463
- nextRetryAt: number().optional()
10536
+ nextRetryAt: number().optional(),
10537
+ /**
10538
+ * Gate A (config-correctness gate at engine change): human-readable
10539
+ * config issues surfaced EAGERLY when the node's engine changes — model
10540
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10541
+ * has a <format> build"). Additive/optional: informational only, never
10542
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10543
+ * Absent/empty when the node-default tree resolves cleanly.
10544
+ */
10545
+ configIssues: array(string()).optional()
10464
10546
  });
10465
10547
  var PipelineStepInputSchema = lazy(() => object({
10466
10548
  addonId: string(),
10467
- modelId: string(),
10549
+ modelId: string().optional(),
10468
10550
  enabled: boolean().default(true),
10469
10551
  children: array(PipelineStepInputSchema).optional(),
10470
10552
  settings: record(string(), unknown()).optional()
10471
10553
  }));
10554
+ var ModelSubstitutionSchema = object({
10555
+ addonId: string(),
10556
+ chosen: string(),
10557
+ running: string(),
10558
+ format: string()
10559
+ });
10560
+ var PipelineValidationIssueSchema = object({
10561
+ addonId: string(),
10562
+ kind: _enum(["unknown-addon", "no-format-build"]),
10563
+ detail: string()
10564
+ });
10565
+ var PipelineValidationResultSchema = object({
10566
+ ok: boolean(),
10567
+ issues: array(PipelineValidationIssueSchema).readonly(),
10568
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10569
+ /** The node's `currentEngine.format` this validation ran against. */
10570
+ format: string()
10571
+ });
10472
10572
  var ReferenceImageEntrySchema = object({
10473
10573
  filename: string(),
10474
10574
  stepIds: array(string()).readonly().optional()
@@ -10539,7 +10639,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10539
10639
  })) }), object({ success: literal(true) }), {
10540
10640
  kind: "mutation",
10541
10641
  auth: "admin"
10542
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10642
+ }), method(object({ nodeId: string() }), object({
10643
+ success: literal(true),
10644
+ clearedDevices: number()
10645
+ }), {
10646
+ kind: "mutation",
10647
+ auth: "admin"
10648
+ }), 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({
10543
10649
  name: string(),
10544
10650
  steps: array(PipelineTemplateStepSchema).readonly(),
10545
10651
  engine: PipelineEngineChoiceSchema
@@ -10556,10 +10662,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10556
10662
  modelId: string(),
10557
10663
  format: ModelFormatSchema$1
10558
10664
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10559
- addonId: string(),
10560
- frame: FrameInputSchema,
10561
- config: record(string(), unknown()).optional()
10562
- }), DetectorOutputSchema), method(object({
10563
10665
  engine: PipelineEngineChoiceSchema.optional(),
10564
10666
  steps: array(PipelineStepInputSchema).min(1),
10565
10667
  frame: FrameInputSchema.optional(),
@@ -10580,7 +10682,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10580
10682
  image: _instanceof(Uint8Array).optional(),
10581
10683
  referenceImage: string().optional(),
10582
10684
  deviceId: number().optional(),
10583
- sessionId: string().optional()
10685
+ sessionId: string().optional(),
10686
+ /**
10687
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10688
+ * reference-image, and detail-subtree calls. 'frame' is the live
10689
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10690
+ * (inputClasses ≠ null) are skipped and served per-track via
10691
+ * pipelineRunner.runDetailSubtree (two-plane design).
10692
+ */
10693
+ plane: _enum(["full", "frame"]).optional()
10584
10694
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10585
10695
  engine: PipelineEngineChoiceSchema.optional(),
10586
10696
  steps: array(PipelineStepInputSchema).min(1),
@@ -10705,6 +10815,47 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10705
10815
  auth: "admin"
10706
10816
  }), object({ zones: array(ZoneSchema).readonly() });
10707
10817
  /**
10818
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10819
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10820
+ * so the caller supplies only the detection-res bbox divided by the detection
10821
+ * dims — no native resolution to plumb.
10822
+ */
10823
+ var NativeCropBboxSchema = object({
10824
+ x: number(),
10825
+ y: number(),
10826
+ w: number(),
10827
+ h: number()
10828
+ });
10829
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10830
+ var NativeCropResultSchema = object({
10831
+ /** Packed rgb (24-bit) pixels of the crop. */
10832
+ bytes: _instanceof(Uint8Array),
10833
+ width: number().int().positive(),
10834
+ height: number().int().positive()
10835
+ });
10836
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10837
+ * originating detection, in FRAME-space coordinates. Reuses
10838
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10839
+ * the coordinates are frame-space rather than getNativeCrop's
10840
+ * normalized [0,1] convention). */
10841
+ var DetailParentSchema = object({
10842
+ bbox: NativeCropBboxSchema,
10843
+ className: string()
10844
+ });
10845
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10846
+ * or refined detection produced by running the crop-subtree on a
10847
+ * single tracked detection. */
10848
+ var DetailResultSchema = object({
10849
+ stepId: string(),
10850
+ className: string(),
10851
+ score: number(),
10852
+ /** FRAME-space bbox (already mapped back from crop space). */
10853
+ bbox: NativeCropBboxSchema.optional(),
10854
+ embedding: string().optional(),
10855
+ label: string().optional(),
10856
+ alignedCropJpeg: string().optional()
10857
+ });
10858
+ /**
10708
10859
  * Per-camera tunable ranges + defaults. Single source of truth used
10709
10860
  * by both the Zod data schema (validation + default fallback) and
10710
10861
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10799,6 +10950,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10799
10950
  kind: literal("remote-restream"),
10800
10951
  /** The camera's source-owner node (slice 1: always the hub). */
10801
10952
  ownerNodeId: string(),
10953
+ /**
10954
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10955
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10956
+ * dials THIS host for the owner's restream, in preference to the
10957
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10958
+ */
10959
+ ownerReachableHost: string().optional(),
10802
10960
  /** Operator override for the owner host the runner dials. */
10803
10961
  hubHostnameOverride: string().optional()
10804
10962
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10807,13 +10965,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10807
10965
  * specific runner instance via `attachCamera`. Carries everything the
10808
10966
  * runner needs to subscribe to the local broker and execute inference.
10809
10967
  *
10810
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10811
- * optional `audio`) travels with the attach payload. The runner keeps it
10812
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10813
- * restart the orchestrator re-sends the latest snapshot.
10814
- *
10815
- * `engine`/`steps`/`audio` are optional during the additive migration
10816
- * window; once orchestrator + UI are migrated they become required.
10968
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10969
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10970
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10971
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10972
+ * node-local, resolved by the executing runner at dispatch time.
10817
10973
  */
10818
10974
  var RunnerCameraConfigSchema = object({
10819
10975
  deviceId: number(),
@@ -10864,14 +11020,11 @@ var RunnerCameraConfigSchema = object({
10864
11020
  */
10865
11021
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10866
11022
  pipelineEnabled: boolean().default(true),
10867
- /** Engine choice for video steps (runtime+backend+format). */
10868
- engine: PipelineEngineChoiceSchema.optional(),
10869
11023
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10870
11024
  steps: array(PipelineStepInputSchema).readonly().optional(),
10871
11025
  /** Audio classification branch. `enabled:false` disables, null skips. */
10872
11026
  audio: object({
10873
- engine: PipelineEngineChoiceSchema,
10874
- modelId: string(),
11027
+ modelId: string().optional(),
10875
11028
  enabled: boolean()
10876
11029
  }).nullable().optional(),
10877
11030
  /**
@@ -10958,7 +11111,17 @@ var RunnerLocalMetricsSchema = object({
10958
11111
  avgInferenceTimeMs: number(),
10959
11112
  queueDepth: number()
10960
11113
  });
10961
- 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());
11114
+ 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({
11115
+ handle: FrameHandleSchema,
11116
+ bbox: NativeCropBboxSchema,
11117
+ maxWidth: number().int().positive().optional()
11118
+ }), NativeCropResultSchema.nullable()), method(object({
11119
+ deviceId: number(),
11120
+ frameHandle: FrameHandleSchema.optional(),
11121
+ cropJpeg: string().optional(),
11122
+ parent: DetailParentSchema,
11123
+ steps: array(string()).optional()
11124
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
10962
11125
  object({
10963
11126
  detected: boolean(),
10964
11127
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12252,7 +12415,9 @@ var AddonPageDeclarationSchema$1 = object({
12252
12415
  icon: string(),
12253
12416
  path: string(),
12254
12417
  remoteName: string(),
12255
- bundle: string()
12418
+ bundle: string(),
12419
+ section: string().optional(),
12420
+ sectionLabel: string().optional()
12256
12421
  });
12257
12422
  var AddonPageInfoSchema = object({
12258
12423
  addonId: string(),
@@ -12292,7 +12457,18 @@ var AddonPageDeclarationSchema = object({
12292
12457
  * the static-file route can compute an mtime-based cache-buster URL
12293
12458
  * without a separate filesystem stat.
12294
12459
  */
12295
- bundle: string()
12460
+ bundle: string(),
12461
+ /**
12462
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12463
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12464
+ * Any OTHER string creates (or joins) a custom section rendered after
12465
+ * the built-in groups; its label comes from `sectionLabel` (first
12466
+ * declaration wins), falling back to the id. Absent → the legacy
12467
+ * "Addon Pages" group.
12468
+ */
12469
+ section: string().optional(),
12470
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12471
+ sectionLabel: string().optional()
12296
12472
  });
12297
12473
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12298
12474
  var AddonHttpRouteSchema = object({
@@ -12508,6 +12684,17 @@ var WidgetMetadataSchema = object({
12508
12684
  deviceContext: boolean().default(false),
12509
12685
  integrationContext: boolean().default(false)
12510
12686
  }),
12687
+ /**
12688
+ * Loadable BEFORE authentication. The normal widget registry listing
12689
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12690
+ * (the login page) cannot discover a widget through it. A widget that
12691
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12692
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12693
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12694
+ * than the authenticated registry, and its bundle is served by the
12695
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12696
+ */
12697
+ preAuth: boolean().optional().default(false),
12511
12698
  /** Dashboard placement HINTS (operator can override per instance). */
12512
12699
  defaultSize: WidgetSizeEnum.default("md"),
12513
12700
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12821,6 +13008,66 @@ method(object({
12821
13008
  password: string()
12822
13009
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12823
13010
  /**
13011
+ * `login-method` — collection cap through which auth addons contribute
13012
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13013
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13014
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13015
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13016
+ * procedure aggregates them for the unauthenticated login page.
13017
+ *
13018
+ * A contribution is a discriminated union on `kind`:
13019
+ *
13020
+ * - `redirect` — a declarative button. The login page renders a generic
13021
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13022
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13023
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13024
+ * login page needs NO change.
13025
+ *
13026
+ * - `widget` — a Module-Federation widget the login page mounts (via
13027
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13028
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13029
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13030
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13031
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13032
+ *
13033
+ * Every contribution carries a `stage`:
13034
+ * - `primary` — shown on the first credentials screen (OIDC /
13035
+ * magic-link buttons; a future usernameless passkey).
13036
+ * - `second-factor` — shown AFTER the password leg, gated on the
13037
+ * returned `factors` (passkey-as-2FA today).
13038
+ *
13039
+ * `mount: skip` — the cap is read server-side by the core auth router
13040
+ * (`registry.getCollection('login-method')`), never mounted as its own
13041
+ * tRPC router.
13042
+ */
13043
+ /** When a login method renders in the two-phase login flow. */
13044
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13045
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13046
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13047
+ kind: literal("redirect"),
13048
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13049
+ id: string(),
13050
+ /** Operator-facing button label. */
13051
+ label: string(),
13052
+ /** lucide-react icon name. */
13053
+ icon: string().optional(),
13054
+ /** Addon-owned HTTP route the button navigates to (GET). */
13055
+ startUrl: string(),
13056
+ stage: LoginStageEnum
13057
+ }), object({
13058
+ kind: literal("widget"),
13059
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13060
+ id: string(),
13061
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13062
+ addonId: string(),
13063
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13064
+ bundle: string(),
13065
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13066
+ remote: WidgetRemoteSchema,
13067
+ stage: LoginStageEnum
13068
+ })]);
13069
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13070
+ /**
12824
13071
  * Orchestrator-side destination metadata. The orchestrator computes
12825
13072
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12826
13073
  * (admin UI, restore flow) see one canonical key.
@@ -14938,7 +15185,17 @@ var TrackSchema = object({
14938
15185
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14939
15186
  totalDistance: number(),
14940
15187
  state: TrackStateSchema,
14941
- active: boolean()
15188
+ active: boolean(),
15189
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15190
+ * track expiry, recomputed on late label). Absent on legacy rows written
15191
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15192
+ importance: number().optional(),
15193
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15194
+ * "best" frame). Absent when the track produced no object events. */
15195
+ bestEventId: string().optional(),
15196
+ /** Tag of the importance sub-signal that dominated the score
15197
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15198
+ importanceReason: string().optional()
14942
15199
  });
14943
15200
  var BaseEventFields = {
14944
15201
  id: string(),
@@ -15003,8 +15260,18 @@ var ObjectEventSchema = object({
15003
15260
  frameHeight: number().optional(),
15004
15261
  /** MediaStore key for the crop attached to this event (if any). */
15005
15262
  mediaKey: string().optional(),
15263
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15264
+ * best-detection full frame). Resolve via the event-media data-plane
15265
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15266
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15267
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15268
+ keyFrameMediaKey: string().optional(),
15006
15269
  /** Populated by B5 (recording playback URL for this event). */
15007
- mediaUrl: string().optional()
15270
+ mediaUrl: string().optional(),
15271
+ /** The parent track's key-event importance [0,1], propagated to every object
15272
+ * event of the track (so an event row can be sorted by importance without a
15273
+ * track join). Absent on legacy rows / before the track was scored. */
15274
+ importance: number().optional()
15008
15275
  });
15009
15276
  var AudioEventSchema = object({
15010
15277
  ...BaseEventFields,
@@ -15028,7 +15295,8 @@ var MediaFileKindEnum = _enum([
15028
15295
  "fullFrame",
15029
15296
  "fullFrameBoxed",
15030
15297
  "faceCrop",
15031
- "plateCrop"
15298
+ "plateCrop",
15299
+ "keyFrame"
15032
15300
  ]);
15033
15301
  var MediaFileSchema = object({
15034
15302
  key: string(),
@@ -15049,6 +15317,32 @@ var DeviceEventQueryInput = object({
15049
15317
  projection: _enum(["full", "slim"]).optional()
15050
15318
  });
15051
15319
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15320
+ var KeyEventQueryInput = object({
15321
+ deviceId: number(),
15322
+ /** Window lower bound (track firstSeen ≥ since). */
15323
+ since: number(),
15324
+ /** Window upper bound (track firstSeen ≤ until). */
15325
+ until: number(),
15326
+ limit: number().int().min(1).max(200).default(50),
15327
+ /** Drop tracks scoring below this importance. */
15328
+ minImportance: number().min(0).max(1).optional(),
15329
+ /** Restrict to a single class (e.g. 'person'). */
15330
+ classFilter: string().optional()
15331
+ });
15332
+ var KeyEventSchema = object({
15333
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15334
+ id: string(),
15335
+ trackId: string(),
15336
+ /** Track start time (firstSeen). */
15337
+ timestamp: number(),
15338
+ className: string(),
15339
+ label: string().optional(),
15340
+ importance: number(),
15341
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15342
+ bestEventId: string(),
15343
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15344
+ windowMs: number().optional()
15345
+ });
15052
15346
  var TrackedDetectionSchema = object({
15053
15347
  trackId: string(),
15054
15348
  className: string(),
@@ -15078,7 +15372,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15078
15372
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15079
15373
  kind: "mutation",
15080
15374
  auth: "admin"
15081
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15375
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15082
15376
  deviceId: number(),
15083
15377
  since: number(),
15084
15378
  until: number(),
@@ -15123,11 +15417,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15123
15417
  timestamp: number()
15124
15418
  });
15125
15419
  var CameraPipelineConfigSchema = object({
15126
- engine: PipelineEngineChoiceSchema,
15420
+ engine: PipelineEngineChoiceSchema.optional(),
15127
15421
  steps: array(PipelineStepInputSchema).readonly(),
15128
15422
  audio: object({
15129
- engine: PipelineEngineChoiceSchema,
15130
- modelId: string(),
15423
+ engine: PipelineEngineChoiceSchema.optional(),
15424
+ modelId: string().optional(),
15131
15425
  enabled: boolean(),
15132
15426
  settings: record(string(), unknown()).readonly().optional()
15133
15427
  }).nullable().optional()
@@ -15142,7 +15436,7 @@ var PipelineTemplateSchema = object({
15142
15436
  });
15143
15437
  var AgentAddonConfigSchema = object({
15144
15438
  enabled: boolean(),
15145
- modelId: string(),
15439
+ modelId: string().optional(),
15146
15440
  settings: record(string(), unknown()).readonly()
15147
15441
  });
15148
15442
  var AgentPipelineSettingsSchema = object({
@@ -15152,12 +15446,25 @@ var AgentPipelineSettingsSchema = object({
15152
15446
  detectWeight: number().positive().optional(),
15153
15447
  /** Node is eligible to run the detection pipeline (decode + inference). */
15154
15448
  detect: boolean().optional(),
15155
- /** Node is eligible to host decoder sessions. */
15449
+ /**
15450
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15451
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15452
+ * the schema ONLY so persisted stores written before the removal still
15453
+ * parse — no code reads it and no write path emits it.
15454
+ */
15156
15455
  decode: boolean().optional(),
15157
15456
  /** Node is eligible to run audio-analyzer sessions. */
15158
15457
  audio: boolean().optional(),
15159
15458
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15160
- ingest: boolean().optional()
15459
+ ingest: boolean().optional(),
15460
+ /**
15461
+ * Operator override for the LAN host a cross-node decoder dials to reach
15462
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15463
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15464
+ * it already uses to reach the hub). Set this only when the auto-detected
15465
+ * address is wrong (multi-homed host, NAT, custom interface).
15466
+ */
15467
+ reachableHost: string().optional()
15161
15468
  });
15162
15469
  var CameraPipelineForAgentSchema = object({
15163
15470
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15205,25 +15512,6 @@ var PipelineAssignmentSchema = object({
15205
15512
  assignedAt: number()
15206
15513
  });
15207
15514
  /**
15208
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15209
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15210
- * → co-located with pipeline → capacity).
15211
- */
15212
- var DecoderAssignmentSchema = object({
15213
- deviceId: number(),
15214
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15215
- decoderNodeId: string(),
15216
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15217
- pinned: boolean(),
15218
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15219
- reason: _enum([
15220
- "manual",
15221
- "co-located",
15222
- "capacity",
15223
- "hardware-affinity"
15224
- ])
15225
- });
15226
- /**
15227
15515
  * Per-agent load summary surfaced to the load balancer + dashboards.
15228
15516
  * Aggregated from each runner's `getLocalLoad` cap call.
15229
15517
  */
@@ -15263,6 +15551,15 @@ var GlobalMetricsSchema = object({
15263
15551
  * capability providers.
15264
15552
  */
15265
15553
  var CapabilityBindingsSchema = record(string(), string());
15554
+ /**
15555
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15556
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15557
+ */
15558
+ var IngestOwnerSchema = object({
15559
+ ownerNodeId: string(),
15560
+ reachableHost: string().optional(),
15561
+ configIssue: string().optional()
15562
+ });
15266
15563
  /** Source block — always present; derives from the stream catalog. */
15267
15564
  var CameraSourceStatusSchema = object({ streams: array(object({
15268
15565
  camStreamId: string(),
@@ -15277,6 +15574,14 @@ var CameraAssignmentStatusSchema = object({
15277
15574
  detectionNodeId: string().nullable(),
15278
15575
  decoderNodeId: string().nullable(),
15279
15576
  audioNodeId: string().nullable(),
15577
+ /**
15578
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15579
+ * hosts the broker/restream) — the cluster ingest owner today
15580
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15581
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15582
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15583
+ */
15584
+ sourceNodeId: string().nullable(),
15280
15585
  pinned: object({
15281
15586
  detection: boolean(),
15282
15587
  decoder: boolean(),
@@ -15409,16 +15714,7 @@ method(object({
15409
15714
  }), object({ success: literal(true) }), {
15410
15715
  kind: "mutation",
15411
15716
  auth: "admin"
15412
- }), method(object({
15413
- deviceId: number(),
15414
- nodeId: string()
15415
- }), _void(), {
15416
- kind: "mutation",
15417
- auth: "admin"
15418
- }), method(object({ deviceId: number() }), _void(), {
15419
- kind: "mutation",
15420
- auth: "admin"
15421
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15717
+ }), method(_void(), IngestOwnerSchema), method(object({
15422
15718
  deviceId: number(),
15423
15719
  nodeId: string()
15424
15720
  }), object({ success: literal(true) }), {
@@ -15439,10 +15735,7 @@ method(object({
15439
15735
  nodeId: string(),
15440
15736
  pinned: boolean(),
15441
15737
  assignedAt: number()
15442
- }))), method(object({
15443
- deviceId: number(),
15444
- pipelineNodeId: string().optional()
15445
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15738
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15446
15739
  nodeId: string(),
15447
15740
  settings: AgentPipelineSettingsSchema
15448
15741
  })).readonly()), method(object({
@@ -15472,12 +15765,26 @@ method(object({
15472
15765
  }), method(object({
15473
15766
  agentNodeId: string(),
15474
15767
  detect: boolean().nullable().optional(),
15475
- decode: boolean().nullable().optional(),
15476
15768
  audio: boolean().nullable().optional(),
15477
15769
  ingest: boolean().nullable().optional()
15478
15770
  }), object({ success: literal(true) }), {
15479
15771
  kind: "mutation",
15480
15772
  auth: "admin"
15773
+ }), method(object({
15774
+ agentNodeId: string(),
15775
+ reachableHost: string().nullable()
15776
+ }), object({ success: literal(true) }), {
15777
+ kind: "mutation",
15778
+ auth: "admin"
15779
+ }), method(object({ agentNodeId: string() }), object({
15780
+ success: literal(true),
15781
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15782
+ effectiveModelId: string().nullable(),
15783
+ /** Number of cameras whose node-scoped overrides were cleared. */
15784
+ clearedCameraOverrides: number()
15785
+ }), {
15786
+ kind: "mutation",
15787
+ auth: "admin"
15481
15788
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15482
15789
  deviceId: number(),
15483
15790
  addonId: string(),
@@ -15522,22 +15829,131 @@ method(object({
15522
15829
  kind: "mutation",
15523
15830
  auth: "admin"
15524
15831
  });
15525
- var RegisteredStreamSchema = object({
15526
- streamId: string(),
15527
- label: string().optional(),
15528
- codec: string(),
15529
- type: _enum(["video", "audio"]),
15530
- sourceUrl: string()
15832
+ /**
15833
+ * server-management — per-NODE singleton capability for a node's ROOT
15834
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15835
+ * agents).
15836
+ *
15837
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15838
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15839
+ * version describes the node. Updates install into
15840
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15841
+ * starter (probation boot + auto-rollback to N-1).
15842
+ *
15843
+ * Providers:
15844
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15845
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15846
+ * unpinned calls.
15847
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15848
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15849
+ * `$hub.registerNode` manifest.
15850
+ *
15851
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15852
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15853
+ * SDK) routes the call to that node's provider via the standard remote
15854
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15855
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15856
+ *
15857
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15858
+ */
15859
+ /**
15860
+ * Where the running hub's code was loaded from:
15861
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15862
+ * plain resolution and runtime updates are refused.
15863
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15864
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15865
+ */
15866
+ var ServerBootModeSchema = _enum([
15867
+ "workspace",
15868
+ "baked",
15869
+ "data-root"
15870
+ ]);
15871
+ /**
15872
+ * Update lifecycle state:
15873
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15874
+ * - `pending-restart` — a version is staged and the node has NOT yet
15875
+ * restarted onto it (still running the OLD version).
15876
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15877
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15878
+ * Apply/rollback are refused in this state and the node must NOT be
15879
+ * manually restarted, or the probation boot auto-rolls-back.
15880
+ */
15881
+ var ServerUpdateStateSchema = _enum([
15882
+ "idle",
15883
+ "checking",
15884
+ "staging",
15885
+ "pending-restart",
15886
+ "awaiting-confirmation"
15887
+ ]);
15888
+ var ServerRollbackInfoSchema = object({
15889
+ /** The version that failed (or was manually rolled back). */
15890
+ fromVersion: string(),
15891
+ /** The version rolled back to; null = the baked seed. */
15892
+ toVersion: string().nullable(),
15893
+ atMs: number(),
15894
+ reason: string()
15531
15895
  });
15532
- var ExposedResourceSchema = object({
15533
- streamId: string(),
15534
- format: string(),
15535
- value: string()
15896
+ var ServerPackageStatusSchema = object({
15897
+ /** Root package name (`@camstack/server` on the hub). */
15898
+ packageName: string(),
15899
+ /** Version of the code the running process ACTUALLY loaded. */
15900
+ runningVersion: string().nullable(),
15901
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15902
+ nodeRuntimeVersion: string().nullable(),
15903
+ /** Active data-dir root version; null when booted from seed/workspace. */
15904
+ activeVersion: string().nullable(),
15905
+ /** N-1 version kept for rollback; null when no previous version exists. */
15906
+ previousVersion: string().nullable(),
15907
+ /** Version of the immutable baked seed closure (image fallback). */
15908
+ seedVersion: string().nullable(),
15909
+ /** Latest registry version from the most recent check (null = never checked). */
15910
+ latestVersion: string().nullable(),
15911
+ updateAvailable: boolean(),
15912
+ bootMode: ServerBootModeSchema,
15913
+ updateState: ServerUpdateStateSchema,
15914
+ /** Version staged + awaiting its probation boot, when one is pending. */
15915
+ pendingVersion: string().nullable(),
15916
+ /** Set when the last freshly-activated version failed its boot health-check. */
15917
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15918
+ /**
15919
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15920
+ * hub is running from the baked seed (or workspace) while installed data-dir
15921
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15922
+ */
15923
+ stateFileCorrupt: boolean(),
15924
+ lastCheckedAtMs: number().nullable()
15925
+ });
15926
+ var ServerUpdateCheckResultSchema = object({
15927
+ packageName: string(),
15928
+ runningVersion: string().nullable(),
15929
+ latestVersion: string().nullable(),
15930
+ updateAvailable: boolean(),
15931
+ checkedAtMs: number(),
15932
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15933
+ error: string().nullable()
15934
+ });
15935
+ var ServerUpdateActionResultSchema = object({
15936
+ accepted: boolean(),
15937
+ targetVersion: string().nullable(),
15938
+ /** True when a graceful restart was scheduled to apply the change. */
15939
+ restarting: boolean(),
15940
+ message: string()
15941
+ });
15942
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15943
+ kind: "mutation",
15944
+ auth: "admin"
15945
+ }), method(object({
15946
+ /** Explicit target version; omitted = latest from the registry. */
15947
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15948
+ kind: "mutation",
15949
+ auth: "admin"
15950
+ }), method(_void(), ServerUpdateActionResultSchema, {
15951
+ kind: "mutation",
15952
+ auth: "admin"
15953
+ }), method(_void(), ServerUpdateActionResultSchema, {
15954
+ kind: "mutation",
15955
+ auth: "admin"
15536
15956
  });
15537
- method(object({
15538
- deviceId: number(),
15539
- streams: array(RegisteredStreamSchema).readonly()
15540
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15541
15957
  /**
15542
15958
  * Query filter for settings-store collections.
15543
15959
  */
@@ -15690,9 +16106,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15690
16106
  /**
15691
16107
  * A single device snapshot returned as base64 JPEG/PNG.
15692
16108
  *
15693
- * Shared with the `snapshot-provider` collection cap the orchestrator
15694
- * receives the same shape from each native provider and from the
15695
- * broker-based fallback.
16109
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16110
+ * the device-native provider (onboard capture) or from the stream-broker
16111
+ * prebuffer fallback.
15696
16112
  */
15697
16113
  var SnapshotImageSchema = object({
15698
16114
  base64: string(),
@@ -15723,11 +16139,12 @@ DeviceType.Camera, method(object({
15723
16139
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15724
16140
  kind: "mutation",
15725
16141
  auth: "admin"
15726
- });
15727
- method(object({ deviceId: number() }), boolean()), method(object({
16142
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15728
16143
  deviceId: number(),
15729
- streamId: string().optional()
15730
- }), SnapshotImageSchema.nullable());
16144
+ lastCapturedAt: number().nullable(),
16145
+ cacheAgeMs: number().nullable(),
16146
+ etag: string().nullable()
16147
+ })));
15731
16148
  /**
15732
16149
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15733
16150
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -15978,10 +16395,32 @@ method(_void(), array(TurnServerSchema).readonly());
15978
16395
  * b. `finishAuthentication({userId, response})` → server verifies
15979
16396
  * the assertion, bumps the credential counter, returns ok.
15980
16397
  *
16398
+ * 2b. Usernameless (discoverable-credential) authentication — the
16399
+ * passkey IS the primary factor, no password leg:
16400
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16401
+ * EMPTY `allowCredentials` (the browser offers every resident
16402
+ * passkey it holds for this RP) + `userVerification: 'required'`
16403
+ * (the passkey replaces both factors, so UV is mandatory).
16404
+ * The challenge is stored server-side, NOT bound to any user.
16405
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16406
+ * resolves the credential by the response's credential id,
16407
+ * verifies the assertion against the stored challenge + that
16408
+ * credential's public key/counter, and returns the OWNING
16409
+ * `userId` — the caller (core auth router) mints the session.
16410
+ *
15981
16411
  * 3. Management:
15982
16412
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
15983
16413
  * - `removePasskey({userId, credentialId})` — revoke one credential.
15984
16414
  *
16415
+ * 4. Second-factor preference (opt-in, default OFF):
16416
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16417
+ * demanded as a second factor after a password login ONLY when the
16418
+ * user explicitly opts in via `setSecondFactorPreference`.
16419
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16420
+ * row ⇒ `enabled: false`).
16421
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16422
+ * the providing addon beside its credentials.
16423
+ *
15985
16424
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
15986
16425
  * the admin-ui composes the begin/finish round-trip and never exposes
15987
16426
  * the cap to non-admins.
@@ -16024,6 +16463,17 @@ method(object({
16024
16463
  }), object({ verified: boolean() }), {
16025
16464
  kind: "mutation",
16026
16465
  access: "view"
16466
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16467
+ kind: "mutation",
16468
+ access: "view"
16469
+ }), method(object({
16470
+ /** AuthenticationResponseJSON from the browser. */
16471
+ response: record(string(), unknown()) }), object({
16472
+ verified: boolean(),
16473
+ userId: string().nullable()
16474
+ }), {
16475
+ kind: "mutation",
16476
+ access: "view"
16027
16477
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16028
16478
  userId: string(),
16029
16479
  credentialId: string()
@@ -16031,6 +16481,13 @@ method(object({
16031
16481
  kind: "mutation",
16032
16482
  auth: "admin",
16033
16483
  access: "delete"
16484
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16485
+ userId: string(),
16486
+ enabled: boolean()
16487
+ }), object({ success: literal(true) }), {
16488
+ kind: "mutation",
16489
+ auth: "admin",
16490
+ access: "create"
16034
16491
  });
16035
16492
  /**
16036
16493
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16088,9 +16545,10 @@ method(object({
16088
16545
  auth: "admin"
16089
16546
  });
16090
16547
  /**
16091
- * Optional client-side hints sent at session creation to help the
16092
- * provider pick the best native source. All fields are optional —
16093
- * a viewer that knows nothing still gets a sane default.
16548
+ * Optional client-side hints sent at session creation to help the provider
16549
+ * pick the best native source. All fields optional — a viewer that knows
16550
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16551
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16094
16552
  */
16095
16553
  var webrtcClientHintsSchema = object({
16096
16554
  viewportWidth: number().int().positive().optional(),
@@ -16101,22 +16559,6 @@ var webrtcClientHintsSchema = object({
16101
16559
  /** Hard tier override; takes precedence over scoring when registered. */
16102
16560
  prefersTier: string().optional()
16103
16561
  }).partial();
16104
- method(object({
16105
- streamId: string(),
16106
- sdpOffer: string()
16107
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16108
- streamId: string(),
16109
- codec: string()
16110
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16111
- streamId: string(),
16112
- hints: webrtcClientHintsSchema.optional()
16113
- }), object({
16114
- sessionId: string(),
16115
- sdpOffer: string()
16116
- }), { kind: "mutation" }), method(object({
16117
- sessionId: string(),
16118
- sdpAnswer: string()
16119
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16120
16562
  /**
16121
16563
  * Discriminated target for a WebRTC session. The client sends this
16122
16564
  * structured object instead of building / parsing brokerId strings;
@@ -16847,7 +17289,17 @@ var FaceInfoSchema = object({
16847
17289
  recognizedIdentityId: string().optional(),
16848
17290
  identityName: string().optional(),
16849
17291
  assigned: boolean(),
16850
- base64: string().optional()
17292
+ base64: string().optional(),
17293
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17294
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17295
+ * legacy rows written before design B. */
17296
+ faceBbox: BoundingBoxSchema.optional(),
17297
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17298
+ * Fetch the native JPEG via the event-media data-plane
17299
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17300
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17301
+ * back to the inline `base64` face crop. */
17302
+ keyFrameMediaKey: string().optional()
16851
17303
  });
16852
17304
  var FaceFilterEnum = _enum([
16853
17305
  "unassigned",
@@ -17544,6 +17996,16 @@ var TopologyCategorySchema = object({
17544
17996
  healthy: number(),
17545
17997
  addons: array(TopologyCategoryAddonSchema).readonly()
17546
17998
  });
17999
+ /**
18000
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18001
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18002
+ * version visibility for the Server management surface. Nullable: offline
18003
+ * rows and pre-phase-2 nodes report none.
18004
+ */
18005
+ var TopologyRootPackageSchema = object({
18006
+ name: string(),
18007
+ version: string()
18008
+ });
17547
18009
  var TopologyNodeSchema = object({
17548
18010
  id: string(),
17549
18011
  name: string(),
@@ -17567,7 +18029,8 @@ var TopologyNodeSchema = object({
17567
18029
  status: string()
17568
18030
  })).readonly(),
17569
18031
  processes: array(TopologyProcessSchema).readonly(),
17570
- categories: array(TopologyCategorySchema).readonly()
18032
+ categories: array(TopologyCategorySchema).readonly(),
18033
+ rootPackage: TopologyRootPackageSchema.nullable()
17571
18034
  });
17572
18035
  var CapUsageEdgeSchema = object({
17573
18036
  callerAddonId: string(),
@@ -20367,6 +20830,12 @@ Object.freeze({
20367
20830
  addonId: null,
20368
20831
  access: "create"
20369
20832
  },
20833
+ "loginMethod.getLoginMethods": {
20834
+ capName: "login-method",
20835
+ capScope: "system",
20836
+ addonId: null,
20837
+ access: "view"
20838
+ },
20370
20839
  "mediaPlayer.next": {
20371
20840
  capName: "media-player",
20372
20841
  capScope: "device",
@@ -20949,6 +21418,12 @@ Object.freeze({
20949
21418
  addonId: null,
20950
21419
  access: "view"
20951
21420
  },
21421
+ "pipelineAnalytics.getKeyEvents": {
21422
+ capName: "pipeline-analytics",
21423
+ capScope: "device",
21424
+ addonId: null,
21425
+ access: "view"
21426
+ },
20952
21427
  "pipelineAnalytics.getMotionEvents": {
20953
21428
  capName: "pipeline-analytics",
20954
21429
  capScope: "device",
@@ -20997,23 +21472,23 @@ Object.freeze({
20997
21472
  addonId: null,
20998
21473
  access: "create"
20999
21474
  },
21000
- "pipelineExecutor.deleteModel": {
21475
+ "pipelineExecutor.clearDeviceOverrides": {
21001
21476
  capName: "pipeline-executor",
21002
21477
  capScope: "system",
21003
21478
  addonId: null,
21004
21479
  access: "delete"
21005
21480
  },
21006
- "pipelineExecutor.deleteTemplate": {
21481
+ "pipelineExecutor.deleteModel": {
21007
21482
  capName: "pipeline-executor",
21008
21483
  capScope: "system",
21009
21484
  addonId: null,
21010
21485
  access: "delete"
21011
21486
  },
21012
- "pipelineExecutor.detect": {
21487
+ "pipelineExecutor.deleteTemplate": {
21013
21488
  capName: "pipeline-executor",
21014
21489
  capScope: "system",
21015
21490
  addonId: null,
21016
- access: "view"
21491
+ access: "delete"
21017
21492
  },
21018
21493
  "pipelineExecutor.downloadModel": {
21019
21494
  capName: "pipeline-executor",
@@ -21207,13 +21682,13 @@ Object.freeze({
21207
21682
  addonId: null,
21208
21683
  access: "create"
21209
21684
  },
21210
- "pipelineOrchestrator.assignAudio": {
21211
- capName: "pipeline-orchestrator",
21685
+ "pipelineExecutor.validatePipeline": {
21686
+ capName: "pipeline-executor",
21212
21687
  capScope: "system",
21213
21688
  addonId: null,
21214
- access: "create"
21689
+ access: "view"
21215
21690
  },
21216
- "pipelineOrchestrator.assignDecoder": {
21691
+ "pipelineOrchestrator.assignAudio": {
21217
21692
  capName: "pipeline-orchestrator",
21218
21693
  capScope: "system",
21219
21694
  addonId: null,
@@ -21297,19 +21772,13 @@ Object.freeze({
21297
21772
  addonId: null,
21298
21773
  access: "view"
21299
21774
  },
21300
- "pipelineOrchestrator.getDecoderAssignment": {
21775
+ "pipelineOrchestrator.getGlobalMetrics": {
21301
21776
  capName: "pipeline-orchestrator",
21302
21777
  capScope: "system",
21303
21778
  addonId: null,
21304
21779
  access: "view"
21305
21780
  },
21306
- "pipelineOrchestrator.getDecoderAssignments": {
21307
- capName: "pipeline-orchestrator",
21308
- capScope: "system",
21309
- addonId: null,
21310
- access: "view"
21311
- },
21312
- "pipelineOrchestrator.getGlobalMetrics": {
21781
+ "pipelineOrchestrator.getIngestOwner": {
21313
21782
  capName: "pipeline-orchestrator",
21314
21783
  capScope: "system",
21315
21784
  addonId: null,
@@ -21351,6 +21820,12 @@ Object.freeze({
21351
21820
  addonId: null,
21352
21821
  access: "delete"
21353
21822
  },
21823
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21824
+ capName: "pipeline-orchestrator",
21825
+ capScope: "system",
21826
+ addonId: null,
21827
+ access: "delete"
21828
+ },
21354
21829
  "pipelineOrchestrator.resolvePipeline": {
21355
21830
  capName: "pipeline-orchestrator",
21356
21831
  capScope: "system",
@@ -21387,37 +21862,37 @@ Object.freeze({
21387
21862
  addonId: null,
21388
21863
  access: "create"
21389
21864
  },
21390
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21865
+ "pipelineOrchestrator.setAgentReachableHost": {
21391
21866
  capName: "pipeline-orchestrator",
21392
21867
  capScope: "system",
21393
21868
  addonId: null,
21394
21869
  access: "create"
21395
21870
  },
21396
- "pipelineOrchestrator.setCameraStepOverride": {
21871
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21397
21872
  capName: "pipeline-orchestrator",
21398
21873
  capScope: "system",
21399
21874
  addonId: null,
21400
21875
  access: "create"
21401
21876
  },
21402
- "pipelineOrchestrator.setCameraStepToggle": {
21877
+ "pipelineOrchestrator.setCameraStepOverride": {
21403
21878
  capName: "pipeline-orchestrator",
21404
21879
  capScope: "system",
21405
21880
  addonId: null,
21406
21881
  access: "create"
21407
21882
  },
21408
- "pipelineOrchestrator.setCapabilityBinding": {
21883
+ "pipelineOrchestrator.setCameraStepToggle": {
21409
21884
  capName: "pipeline-orchestrator",
21410
21885
  capScope: "system",
21411
21886
  addonId: null,
21412
21887
  access: "create"
21413
21888
  },
21414
- "pipelineOrchestrator.unassignAudio": {
21889
+ "pipelineOrchestrator.setCapabilityBinding": {
21415
21890
  capName: "pipeline-orchestrator",
21416
21891
  capScope: "system",
21417
21892
  addonId: null,
21418
21893
  access: "create"
21419
21894
  },
21420
- "pipelineOrchestrator.unassignDecoder": {
21895
+ "pipelineOrchestrator.unassignAudio": {
21421
21896
  capName: "pipeline-orchestrator",
21422
21897
  capScope: "system",
21423
21898
  addonId: null,
@@ -21477,12 +21952,24 @@ Object.freeze({
21477
21952
  addonId: null,
21478
21953
  access: "view"
21479
21954
  },
21955
+ "pipelineRunner.getNativeCrop": {
21956
+ capName: "pipeline-runner",
21957
+ capScope: "system",
21958
+ addonId: null,
21959
+ access: "view"
21960
+ },
21480
21961
  "pipelineRunner.reportMotion": {
21481
21962
  capName: "pipeline-runner",
21482
21963
  capScope: "system",
21483
21964
  addonId: null,
21484
21965
  access: "create"
21485
21966
  },
21967
+ "pipelineRunner.runDetailSubtree": {
21968
+ capName: "pipeline-runner",
21969
+ capScope: "system",
21970
+ addonId: null,
21971
+ access: "create"
21972
+ },
21486
21973
  "plateGallery.correctPlateText": {
21487
21974
  capName: "plate-gallery",
21488
21975
  capScope: "system",
@@ -21717,33 +22204,45 @@ Object.freeze({
21717
22204
  addonId: null,
21718
22205
  access: "create"
21719
22206
  },
21720
- "restreamer.getExposedResources": {
21721
- capName: "restreamer",
22207
+ "scriptRunner.run": {
22208
+ capName: "script-runner",
22209
+ capScope: "device",
22210
+ addonId: null,
22211
+ access: "create"
22212
+ },
22213
+ "scriptRunner.stop": {
22214
+ capName: "script-runner",
22215
+ capScope: "device",
22216
+ addonId: null,
22217
+ access: "create"
22218
+ },
22219
+ "serverManagement.applyServerUpdate": {
22220
+ capName: "server-management",
21722
22221
  capScope: "system",
21723
22222
  addonId: null,
21724
- access: "view"
22223
+ access: "create"
21725
22224
  },
21726
- "restreamer.registerDevice": {
21727
- capName: "restreamer",
22225
+ "serverManagement.checkServerUpdate": {
22226
+ capName: "server-management",
21728
22227
  capScope: "system",
21729
22228
  addonId: null,
21730
22229
  access: "create"
21731
22230
  },
21732
- "restreamer.unregisterDevice": {
21733
- capName: "restreamer",
22231
+ "serverManagement.getServerPackageStatus": {
22232
+ capName: "server-management",
21734
22233
  capScope: "system",
21735
22234
  addonId: null,
21736
- access: "delete"
22235
+ access: "view"
21737
22236
  },
21738
- "scriptRunner.run": {
21739
- capName: "script-runner",
21740
- capScope: "device",
22237
+ "serverManagement.restartServer": {
22238
+ capName: "server-management",
22239
+ capScope: "system",
21741
22240
  addonId: null,
21742
22241
  access: "create"
21743
22242
  },
21744
- "scriptRunner.stop": {
21745
- capName: "script-runner",
21746
- capScope: "device",
22243
+ "serverManagement.rollbackServerUpdate": {
22244
+ capName: "server-management",
22245
+ capScope: "system",
21747
22246
  addonId: null,
21748
22247
  access: "create"
21749
22248
  },
@@ -21831,23 +22330,17 @@ Object.freeze({
21831
22330
  addonId: null,
21832
22331
  access: "view"
21833
22332
  },
21834
- "snapshot.invalidateCache": {
22333
+ "snapshot.getSnapshotOverview": {
21835
22334
  capName: "snapshot",
21836
22335
  capScope: "device",
21837
22336
  addonId: null,
21838
- access: "create"
21839
- },
21840
- "snapshotProvider.getSnapshot": {
21841
- capName: "snapshot-provider",
21842
- capScope: "system",
21843
- addonId: null,
21844
22337
  access: "view"
21845
22338
  },
21846
- "snapshotProvider.supportsDevice": {
21847
- capName: "snapshot-provider",
21848
- capScope: "system",
22339
+ "snapshot.invalidateCache": {
22340
+ capName: "snapshot",
22341
+ capScope: "device",
21849
22342
  addonId: null,
21850
- access: "view"
22343
+ access: "create"
21851
22344
  },
21852
22345
  "ssoBridge.signBridgeToken": {
21853
22346
  capName: "sso-bridge",
@@ -22275,30 +22768,6 @@ Object.freeze({
22275
22768
  addonId: null,
22276
22769
  access: "view"
22277
22770
  },
22278
- "streamingEngine.getStreamUrl": {
22279
- capName: "streaming-engine",
22280
- capScope: "system",
22281
- addonId: null,
22282
- access: "view"
22283
- },
22284
- "streamingEngine.listStreams": {
22285
- capName: "streaming-engine",
22286
- capScope: "system",
22287
- addonId: null,
22288
- access: "view"
22289
- },
22290
- "streamingEngine.registerStream": {
22291
- capName: "streaming-engine",
22292
- capScope: "system",
22293
- addonId: null,
22294
- access: "create"
22295
- },
22296
- "streamingEngine.unregisterStream": {
22297
- capName: "streaming-engine",
22298
- capScope: "system",
22299
- addonId: null,
22300
- access: "delete"
22301
- },
22302
22771
  "streamParams.getConfigSchema": {
22303
22772
  capName: "stream-params",
22304
22773
  capScope: "device",
@@ -22545,6 +23014,12 @@ Object.freeze({
22545
23014
  addonId: null,
22546
23015
  access: "view"
22547
23016
  },
23017
+ "userPasskeys.beginDiscoverableAuthentication": {
23018
+ capName: "user-passkeys",
23019
+ capScope: "system",
23020
+ addonId: null,
23021
+ access: "view"
23022
+ },
22548
23023
  "userPasskeys.beginRegistration": {
22549
23024
  capName: "user-passkeys",
22550
23025
  capScope: "system",
@@ -22557,12 +23032,24 @@ Object.freeze({
22557
23032
  addonId: null,
22558
23033
  access: "view"
22559
23034
  },
23035
+ "userPasskeys.finishDiscoverableAuthentication": {
23036
+ capName: "user-passkeys",
23037
+ capScope: "system",
23038
+ addonId: null,
23039
+ access: "view"
23040
+ },
22560
23041
  "userPasskeys.finishRegistration": {
22561
23042
  capName: "user-passkeys",
22562
23043
  capScope: "system",
22563
23044
  addonId: null,
22564
23045
  access: "create"
22565
23046
  },
23047
+ "userPasskeys.getSecondFactorPreference": {
23048
+ capName: "user-passkeys",
23049
+ capScope: "system",
23050
+ addonId: null,
23051
+ access: "view"
23052
+ },
22566
23053
  "userPasskeys.listPasskeys": {
22567
23054
  capName: "user-passkeys",
22568
23055
  capScope: "system",
@@ -22575,6 +23062,12 @@ Object.freeze({
22575
23062
  addonId: null,
22576
23063
  access: "delete"
22577
23064
  },
23065
+ "userPasskeys.setSecondFactorPreference": {
23066
+ capName: "user-passkeys",
23067
+ capScope: "system",
23068
+ addonId: null,
23069
+ access: "create"
23070
+ },
22578
23071
  "vacuumControl.locate": {
22579
23072
  capName: "vacuum-control",
22580
23073
  capScope: "device",
@@ -22647,6 +23140,18 @@ Object.freeze({
22647
23140
  addonId: null,
22648
23141
  access: "view"
22649
23142
  },
23143
+ "viewerUi.getStaticDir": {
23144
+ capName: "viewer-ui",
23145
+ capScope: "system",
23146
+ addonId: null,
23147
+ access: "view"
23148
+ },
23149
+ "viewerUi.getVersion": {
23150
+ capName: "viewer-ui",
23151
+ capScope: "system",
23152
+ addonId: null,
23153
+ access: "view"
23154
+ },
22650
23155
  "waterHeater.setAway": {
22651
23156
  capName: "water-heater",
22652
23157
  capScope: "device",
@@ -22665,54 +23170,6 @@ Object.freeze({
22665
23170
  addonId: null,
22666
23171
  access: "create"
22667
23172
  },
22668
- "webrtc.closeSession": {
22669
- capName: "webrtc",
22670
- capScope: "system",
22671
- addonId: null,
22672
- access: "create"
22673
- },
22674
- "webrtc.createSession": {
22675
- capName: "webrtc",
22676
- capScope: "system",
22677
- addonId: null,
22678
- access: "create"
22679
- },
22680
- "webrtc.handleAnswer": {
22681
- capName: "webrtc",
22682
- capScope: "system",
22683
- addonId: null,
22684
- access: "create"
22685
- },
22686
- "webrtc.handleOffer": {
22687
- capName: "webrtc",
22688
- capScope: "system",
22689
- addonId: null,
22690
- access: "create"
22691
- },
22692
- "webrtc.hasAdaptiveBitrate": {
22693
- capName: "webrtc",
22694
- capScope: "system",
22695
- addonId: null,
22696
- access: "view"
22697
- },
22698
- "webrtc.registerStream": {
22699
- capName: "webrtc",
22700
- capScope: "system",
22701
- addonId: null,
22702
- access: "create"
22703
- },
22704
- "webrtc.supportsStream": {
22705
- capName: "webrtc",
22706
- capScope: "system",
22707
- addonId: null,
22708
- access: "view"
22709
- },
22710
- "webrtc.unregisterStream": {
22711
- capName: "webrtc",
22712
- capScope: "system",
22713
- addonId: null,
22714
- access: "delete"
22715
- },
22716
23173
  "webrtcSession.addIceCandidate": {
22717
23174
  capName: "webrtc-session",
22718
23175
  capScope: "device",