@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.mjs CHANGED
@@ -4628,7 +4628,7 @@ function _instanceof(cls, params = {}) {
4628
4628
  return inst;
4629
4629
  }
4630
4630
  //#endregion
4631
- //#region ../types/dist/sleep-CZDdRBua.mjs
4631
+ //#region ../types/dist/sleep-Baang_XW.mjs
4632
4632
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4633
4633
  EventCategory["SystemBoot"] = "system.boot";
4634
4634
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4814,6 +4814,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4814
4814
  */
4815
4815
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4816
4816
  /**
4817
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4818
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4819
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4820
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4821
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4822
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4823
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4824
+ * topology change, so a dropped event self-heals on the next one (plus the
4825
+ * broker's long backstop reconcile query).
4826
+ */
4827
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4828
+ /**
4817
4829
  * Periodic snapshot of per-node pipeline-runner load
4818
4830
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4819
4831
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5337,10 +5349,6 @@ function hydrateField(field, values) {
5337
5349
  };
5338
5350
  }
5339
5351
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5340
- if (field.type === "password") return {
5341
- ...field,
5342
- value: ""
5343
- };
5344
5352
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5345
5353
  return {
5346
5354
  ...field,
@@ -6724,6 +6732,21 @@ function method(input, output, options) {
6724
6732
  timeoutMs: options?.timeoutMs
6725
6733
  };
6726
6734
  }
6735
+ /**
6736
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6737
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6738
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6739
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6740
+ */
6741
+ function systemMethod(input, output, options) {
6742
+ return {
6743
+ ...method(input, output, options),
6744
+ systemOnly: true
6745
+ };
6746
+ }
6747
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6748
+ var VersionOutputSchema$1 = object({ version: string() });
6749
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6727
6750
  var StaticDirOutputSchema = object({ staticDir: string() });
6728
6751
  var VersionOutputSchema = object({ version: string() });
6729
6752
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6893,6 +6916,36 @@ var ModelFormatsSchema = object({
6893
6916
  tflite: ModelFormatEntrySchema.optional(),
6894
6917
  pt: ModelFormatEntrySchema.optional()
6895
6918
  });
6919
+ /**
6920
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6921
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6922
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6923
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6924
+ * resolution/download/persistence; this is a presentation overlay resolved back
6925
+ * to an `id`.
6926
+ */
6927
+ var ModelVariantGroupSchema = object({
6928
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6929
+ family: string(),
6930
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6931
+ tier: string(),
6932
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6933
+ precision: _enum(["fp32", "int8"]).optional(),
6934
+ /**
6935
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6936
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6937
+ * future performance variants plug into.
6938
+ */
6939
+ optimization: _enum(["standard", "fast"]).optional(),
6940
+ /**
6941
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6942
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6943
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6944
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6945
+ * the group so the selector can offer it as a variant axis.
6946
+ */
6947
+ resolution: number().int().positive().optional()
6948
+ });
6896
6949
  var ModelCatalogEntrySchema = object({
6897
6950
  id: string(),
6898
6951
  name: string(),
@@ -6922,7 +6975,43 @@ var ModelCatalogEntrySchema = object({
6922
6975
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6923
6976
  * Downloaded into the same modelsDir alongside the model file.
6924
6977
  */
6925
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6978
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6979
+ /**
6980
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6981
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6982
+ * model list and excluded from the auto format-default pick. Set on the
6983
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6984
+ * the active lineup stays the coherent curated ladder without deleting a
6985
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6986
+ * an explicit legacy id that has a build for the node's format.
6987
+ */
6988
+ legacy: boolean().optional(),
6989
+ /**
6990
+ * Measured quality/latency metadata — populated from the benchmark addon on
6991
+ * the real node classes. Absent = not yet measured (most entries today; the
6992
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
6993
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
6994
+ */
6995
+ metrics: object({
6996
+ map50: number().optional(),
6997
+ p95LatencyMs: record(string(), number()).optional()
6998
+ }).optional(),
6999
+ /**
7000
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7001
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7002
+ * the retraining addon and any future commercial distribution.
7003
+ */
7004
+ license: string().optional(),
7005
+ /**
7006
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7007
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7008
+ * of a family's sizes and quantizations collapse into one grouped picker
7009
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7010
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7011
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7012
+ * is a presentation overlay resolved back to an `id`.
7013
+ */
7014
+ group: ModelVariantGroupSchema.optional()
6926
7015
  });
6927
7016
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6928
7017
  format: literal("openvino"),
@@ -6983,8 +7072,8 @@ var RecordingModeSchema = _enum([
6983
7072
  "onAudioThreshold"
6984
7073
  ]);
6985
7074
  /**
6986
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6987
- * reads directly (never inferred from `rules`):
7075
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7076
+ * UI reads directly (never inferred from `rules`):
6988
7077
  * - `off` — not recording.
6989
7078
  * - `events` — record only around triggers (motion / audio threshold),
6990
7079
  * with pre/post-buffer.
@@ -8646,26 +8735,13 @@ DeviceType.Light, method(object({
8646
8735
  percentage: number().min(0).max(100),
8647
8736
  lastChangedAt: number()
8648
8737
  });
8738
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8649
8739
  var StreamFormatSchema = _enum([
8650
8740
  "webrtc",
8651
8741
  "hls",
8652
8742
  "mjpeg",
8653
8743
  "rtsp"
8654
8744
  ]);
8655
- var StreamInfoSchema = object({
8656
- streamId: string(),
8657
- format: StreamFormatSchema,
8658
- url: string().nullable(),
8659
- active: boolean()
8660
- });
8661
- method(object({
8662
- streamId: string(),
8663
- sourceUrl: string(),
8664
- codec: string().optional()
8665
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8666
- streamId: string(),
8667
- format: StreamFormatSchema
8668
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8669
8745
  var RtspRestreamEntrySchema = object({
8670
8746
  brokerId: string(),
8671
8747
  url: string(),
@@ -9330,7 +9406,7 @@ var ConsumablesStatusSchema = object({
9330
9406
  })),
9331
9407
  lastChangedAt: number()
9332
9408
  });
9333
- 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({
9409
+ Object.values(DeviceType), method(object({
9334
9410
  deviceId: number().int().nonnegative(),
9335
9411
  key: string().min(1)
9336
9412
  }), _void(), {
@@ -10245,7 +10321,7 @@ var BoundingBoxSchema = object({
10245
10321
  w: number(),
10246
10322
  h: number()
10247
10323
  });
10248
- var SpatialDetectionSchema = object({
10324
+ object({
10249
10325
  class: string(),
10250
10326
  originalClass: string(),
10251
10327
  score: number(),
@@ -10380,7 +10456,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10380
10456
  enabled: boolean(),
10381
10457
  modelId: string(),
10382
10458
  children: array(PipelineDefaultStepSchema).readonly(),
10383
- engine: PipelineEngineChoiceSchema.optional(),
10384
10459
  group: string().optional(),
10385
10460
  settings: record(string(), unknown()).optional()
10386
10461
  }));
@@ -10405,7 +10480,9 @@ var PipelineModelOptionSchema = object({
10405
10480
  formats: record(string(), object({
10406
10481
  downloaded: boolean(),
10407
10482
  sizeMB: number()
10408
- }))
10483
+ })),
10484
+ group: ModelVariantGroupSchema.optional(),
10485
+ legacy: boolean().optional()
10409
10486
  });
10410
10487
  var ConfigFieldBridge = custom();
10411
10488
  var PipelineAddonSchemaSchema = object({
@@ -10419,6 +10496,7 @@ var PipelineAddonSchemaSchema = object({
10419
10496
  defaultModelId: string(),
10420
10497
  defaultModelIdByFormat: record(string(), string()).optional(),
10421
10498
  enabledByDefault: boolean().optional(),
10499
+ backfillIntoExistingOverrides: boolean().optional(),
10422
10500
  defaultConfidence: number(),
10423
10501
  group: string().optional(),
10424
10502
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10435,11 +10513,6 @@ var PipelineSchemaSchema = object({
10435
10513
  selectedEngine: PipelineEngineChoiceSchema,
10436
10514
  slots: array(PipelineSlotSchemaSchema).readonly()
10437
10515
  });
10438
- var DetectorOutputSchema = object({
10439
- detections: array(SpatialDetectionSchema).readonly(),
10440
- inferenceMs: number(),
10441
- modelId: string()
10442
- });
10443
10516
  var EngineProvisioningSchema = object({
10444
10517
  runtimeId: _enum([
10445
10518
  "onnx",
@@ -10456,15 +10529,42 @@ var EngineProvisioningSchema = object({
10456
10529
  ]),
10457
10530
  progress: number().optional(),
10458
10531
  error: string().optional(),
10459
- nextRetryAt: number().optional()
10532
+ nextRetryAt: number().optional(),
10533
+ /**
10534
+ * Gate A (config-correctness gate at engine change): human-readable
10535
+ * config issues surfaced EAGERLY when the node's engine changes — model
10536
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10537
+ * has a <format> build"). Additive/optional: informational only, never
10538
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10539
+ * Absent/empty when the node-default tree resolves cleanly.
10540
+ */
10541
+ configIssues: array(string()).optional()
10460
10542
  });
10461
10543
  var PipelineStepInputSchema = lazy(() => object({
10462
10544
  addonId: string(),
10463
- modelId: string(),
10545
+ modelId: string().optional(),
10464
10546
  enabled: boolean().default(true),
10465
10547
  children: array(PipelineStepInputSchema).optional(),
10466
10548
  settings: record(string(), unknown()).optional()
10467
10549
  }));
10550
+ var ModelSubstitutionSchema = object({
10551
+ addonId: string(),
10552
+ chosen: string(),
10553
+ running: string(),
10554
+ format: string()
10555
+ });
10556
+ var PipelineValidationIssueSchema = object({
10557
+ addonId: string(),
10558
+ kind: _enum(["unknown-addon", "no-format-build"]),
10559
+ detail: string()
10560
+ });
10561
+ var PipelineValidationResultSchema = object({
10562
+ ok: boolean(),
10563
+ issues: array(PipelineValidationIssueSchema).readonly(),
10564
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10565
+ /** The node's `currentEngine.format` this validation ran against. */
10566
+ format: string()
10567
+ });
10468
10568
  var ReferenceImageEntrySchema = object({
10469
10569
  filename: string(),
10470
10570
  stepIds: array(string()).readonly().optional()
@@ -10535,7 +10635,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10535
10635
  })) }), object({ success: literal(true) }), {
10536
10636
  kind: "mutation",
10537
10637
  auth: "admin"
10538
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10638
+ }), method(object({ nodeId: string() }), object({
10639
+ success: literal(true),
10640
+ clearedDevices: number()
10641
+ }), {
10642
+ kind: "mutation",
10643
+ auth: "admin"
10644
+ }), 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({
10539
10645
  name: string(),
10540
10646
  steps: array(PipelineTemplateStepSchema).readonly(),
10541
10647
  engine: PipelineEngineChoiceSchema
@@ -10552,10 +10658,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10552
10658
  modelId: string(),
10553
10659
  format: ModelFormatSchema$1
10554
10660
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10555
- addonId: string(),
10556
- frame: FrameInputSchema,
10557
- config: record(string(), unknown()).optional()
10558
- }), DetectorOutputSchema), method(object({
10559
10661
  engine: PipelineEngineChoiceSchema.optional(),
10560
10662
  steps: array(PipelineStepInputSchema).min(1),
10561
10663
  frame: FrameInputSchema.optional(),
@@ -10576,7 +10678,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10576
10678
  image: _instanceof(Uint8Array).optional(),
10577
10679
  referenceImage: string().optional(),
10578
10680
  deviceId: number().optional(),
10579
- sessionId: string().optional()
10681
+ sessionId: string().optional(),
10682
+ /**
10683
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10684
+ * reference-image, and detail-subtree calls. 'frame' is the live
10685
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10686
+ * (inputClasses ≠ null) are skipped and served per-track via
10687
+ * pipelineRunner.runDetailSubtree (two-plane design).
10688
+ */
10689
+ plane: _enum(["full", "frame"]).optional()
10580
10690
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10581
10691
  engine: PipelineEngineChoiceSchema.optional(),
10582
10692
  steps: array(PipelineStepInputSchema).min(1),
@@ -10701,6 +10811,47 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10701
10811
  auth: "admin"
10702
10812
  }), object({ zones: array(ZoneSchema).readonly() });
10703
10813
  /**
10814
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10815
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10816
+ * so the caller supplies only the detection-res bbox divided by the detection
10817
+ * dims — no native resolution to plumb.
10818
+ */
10819
+ var NativeCropBboxSchema = object({
10820
+ x: number(),
10821
+ y: number(),
10822
+ w: number(),
10823
+ h: number()
10824
+ });
10825
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10826
+ var NativeCropResultSchema = object({
10827
+ /** Packed rgb (24-bit) pixels of the crop. */
10828
+ bytes: _instanceof(Uint8Array),
10829
+ width: number().int().positive(),
10830
+ height: number().int().positive()
10831
+ });
10832
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10833
+ * originating detection, in FRAME-space coordinates. Reuses
10834
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10835
+ * the coordinates are frame-space rather than getNativeCrop's
10836
+ * normalized [0,1] convention). */
10837
+ var DetailParentSchema = object({
10838
+ bbox: NativeCropBboxSchema,
10839
+ className: string()
10840
+ });
10841
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10842
+ * or refined detection produced by running the crop-subtree on a
10843
+ * single tracked detection. */
10844
+ var DetailResultSchema = object({
10845
+ stepId: string(),
10846
+ className: string(),
10847
+ score: number(),
10848
+ /** FRAME-space bbox (already mapped back from crop space). */
10849
+ bbox: NativeCropBboxSchema.optional(),
10850
+ embedding: string().optional(),
10851
+ label: string().optional(),
10852
+ alignedCropJpeg: string().optional()
10853
+ });
10854
+ /**
10704
10855
  * Per-camera tunable ranges + defaults. Single source of truth used
10705
10856
  * by both the Zod data schema (validation + default fallback) and
10706
10857
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10795,6 +10946,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10795
10946
  kind: literal("remote-restream"),
10796
10947
  /** The camera's source-owner node (slice 1: always the hub). */
10797
10948
  ownerNodeId: string(),
10949
+ /**
10950
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10951
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10952
+ * dials THIS host for the owner's restream, in preference to the
10953
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10954
+ */
10955
+ ownerReachableHost: string().optional(),
10798
10956
  /** Operator override for the owner host the runner dials. */
10799
10957
  hubHostnameOverride: string().optional()
10800
10958
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10803,13 +10961,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10803
10961
  * specific runner instance via `attachCamera`. Carries everything the
10804
10962
  * runner needs to subscribe to the local broker and execute inference.
10805
10963
  *
10806
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10807
- * optional `audio`) travels with the attach payload. The runner keeps it
10808
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10809
- * restart the orchestrator re-sends the latest snapshot.
10810
- *
10811
- * `engine`/`steps`/`audio` are optional during the additive migration
10812
- * window; once orchestrator + UI are migrated they become required.
10964
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10965
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10966
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10967
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10968
+ * node-local, resolved by the executing runner at dispatch time.
10813
10969
  */
10814
10970
  var RunnerCameraConfigSchema = object({
10815
10971
  deviceId: number(),
@@ -10860,14 +11016,11 @@ var RunnerCameraConfigSchema = object({
10860
11016
  */
10861
11017
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10862
11018
  pipelineEnabled: boolean().default(true),
10863
- /** Engine choice for video steps (runtime+backend+format). */
10864
- engine: PipelineEngineChoiceSchema.optional(),
10865
11019
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10866
11020
  steps: array(PipelineStepInputSchema).readonly().optional(),
10867
11021
  /** Audio classification branch. `enabled:false` disables, null skips. */
10868
11022
  audio: object({
10869
- engine: PipelineEngineChoiceSchema,
10870
- modelId: string(),
11023
+ modelId: string().optional(),
10871
11024
  enabled: boolean()
10872
11025
  }).nullable().optional(),
10873
11026
  /**
@@ -10954,7 +11107,17 @@ var RunnerLocalMetricsSchema = object({
10954
11107
  avgInferenceTimeMs: number(),
10955
11108
  queueDepth: number()
10956
11109
  });
10957
- 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());
11110
+ 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({
11111
+ handle: FrameHandleSchema,
11112
+ bbox: NativeCropBboxSchema,
11113
+ maxWidth: number().int().positive().optional()
11114
+ }), NativeCropResultSchema.nullable()), method(object({
11115
+ deviceId: number(),
11116
+ frameHandle: FrameHandleSchema.optional(),
11117
+ cropJpeg: string().optional(),
11118
+ parent: DetailParentSchema,
11119
+ steps: array(string()).optional()
11120
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
10958
11121
  object({
10959
11122
  detected: boolean(),
10960
11123
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12248,7 +12411,9 @@ var AddonPageDeclarationSchema$1 = object({
12248
12411
  icon: string(),
12249
12412
  path: string(),
12250
12413
  remoteName: string(),
12251
- bundle: string()
12414
+ bundle: string(),
12415
+ section: string().optional(),
12416
+ sectionLabel: string().optional()
12252
12417
  });
12253
12418
  var AddonPageInfoSchema = object({
12254
12419
  addonId: string(),
@@ -12288,7 +12453,18 @@ var AddonPageDeclarationSchema = object({
12288
12453
  * the static-file route can compute an mtime-based cache-buster URL
12289
12454
  * without a separate filesystem stat.
12290
12455
  */
12291
- bundle: string()
12456
+ bundle: string(),
12457
+ /**
12458
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12459
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12460
+ * Any OTHER string creates (or joins) a custom section rendered after
12461
+ * the built-in groups; its label comes from `sectionLabel` (first
12462
+ * declaration wins), falling back to the id. Absent → the legacy
12463
+ * "Addon Pages" group.
12464
+ */
12465
+ section: string().optional(),
12466
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12467
+ sectionLabel: string().optional()
12292
12468
  });
12293
12469
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12294
12470
  var AddonHttpRouteSchema = object({
@@ -12504,6 +12680,17 @@ var WidgetMetadataSchema = object({
12504
12680
  deviceContext: boolean().default(false),
12505
12681
  integrationContext: boolean().default(false)
12506
12682
  }),
12683
+ /**
12684
+ * Loadable BEFORE authentication. The normal widget registry listing
12685
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12686
+ * (the login page) cannot discover a widget through it. A widget that
12687
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12688
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12689
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12690
+ * than the authenticated registry, and its bundle is served by the
12691
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12692
+ */
12693
+ preAuth: boolean().optional().default(false),
12507
12694
  /** Dashboard placement HINTS (operator can override per instance). */
12508
12695
  defaultSize: WidgetSizeEnum.default("md"),
12509
12696
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12817,6 +13004,66 @@ method(object({
12817
13004
  password: string()
12818
13005
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12819
13006
  /**
13007
+ * `login-method` — collection cap through which auth addons contribute
13008
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13009
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13010
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13011
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13012
+ * procedure aggregates them for the unauthenticated login page.
13013
+ *
13014
+ * A contribution is a discriminated union on `kind`:
13015
+ *
13016
+ * - `redirect` — a declarative button. The login page renders a generic
13017
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13018
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13019
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13020
+ * login page needs NO change.
13021
+ *
13022
+ * - `widget` — a Module-Federation widget the login page mounts (via
13023
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13024
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13025
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13026
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13027
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13028
+ *
13029
+ * Every contribution carries a `stage`:
13030
+ * - `primary` — shown on the first credentials screen (OIDC /
13031
+ * magic-link buttons; a future usernameless passkey).
13032
+ * - `second-factor` — shown AFTER the password leg, gated on the
13033
+ * returned `factors` (passkey-as-2FA today).
13034
+ *
13035
+ * `mount: skip` — the cap is read server-side by the core auth router
13036
+ * (`registry.getCollection('login-method')`), never mounted as its own
13037
+ * tRPC router.
13038
+ */
13039
+ /** When a login method renders in the two-phase login flow. */
13040
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13041
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13042
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13043
+ kind: literal("redirect"),
13044
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13045
+ id: string(),
13046
+ /** Operator-facing button label. */
13047
+ label: string(),
13048
+ /** lucide-react icon name. */
13049
+ icon: string().optional(),
13050
+ /** Addon-owned HTTP route the button navigates to (GET). */
13051
+ startUrl: string(),
13052
+ stage: LoginStageEnum
13053
+ }), object({
13054
+ kind: literal("widget"),
13055
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13056
+ id: string(),
13057
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13058
+ addonId: string(),
13059
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13060
+ bundle: string(),
13061
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13062
+ remote: WidgetRemoteSchema,
13063
+ stage: LoginStageEnum
13064
+ })]);
13065
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13066
+ /**
12820
13067
  * Orchestrator-side destination metadata. The orchestrator computes
12821
13068
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12822
13069
  * (admin UI, restore flow) see one canonical key.
@@ -14934,7 +15181,17 @@ var TrackSchema = object({
14934
15181
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14935
15182
  totalDistance: number(),
14936
15183
  state: TrackStateSchema,
14937
- active: boolean()
15184
+ active: boolean(),
15185
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15186
+ * track expiry, recomputed on late label). Absent on legacy rows written
15187
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15188
+ importance: number().optional(),
15189
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15190
+ * "best" frame). Absent when the track produced no object events. */
15191
+ bestEventId: string().optional(),
15192
+ /** Tag of the importance sub-signal that dominated the score
15193
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15194
+ importanceReason: string().optional()
14938
15195
  });
14939
15196
  var BaseEventFields = {
14940
15197
  id: string(),
@@ -14999,8 +15256,18 @@ var ObjectEventSchema = object({
14999
15256
  frameHeight: number().optional(),
15000
15257
  /** MediaStore key for the crop attached to this event (if any). */
15001
15258
  mediaKey: string().optional(),
15259
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15260
+ * best-detection full frame). Resolve via the event-media data-plane
15261
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15262
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15263
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15264
+ keyFrameMediaKey: string().optional(),
15002
15265
  /** Populated by B5 (recording playback URL for this event). */
15003
- mediaUrl: string().optional()
15266
+ mediaUrl: string().optional(),
15267
+ /** The parent track's key-event importance [0,1], propagated to every object
15268
+ * event of the track (so an event row can be sorted by importance without a
15269
+ * track join). Absent on legacy rows / before the track was scored. */
15270
+ importance: number().optional()
15004
15271
  });
15005
15272
  var AudioEventSchema = object({
15006
15273
  ...BaseEventFields,
@@ -15024,7 +15291,8 @@ var MediaFileKindEnum = _enum([
15024
15291
  "fullFrame",
15025
15292
  "fullFrameBoxed",
15026
15293
  "faceCrop",
15027
- "plateCrop"
15294
+ "plateCrop",
15295
+ "keyFrame"
15028
15296
  ]);
15029
15297
  var MediaFileSchema = object({
15030
15298
  key: string(),
@@ -15045,6 +15313,32 @@ var DeviceEventQueryInput = object({
15045
15313
  projection: _enum(["full", "slim"]).optional()
15046
15314
  });
15047
15315
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15316
+ var KeyEventQueryInput = object({
15317
+ deviceId: number(),
15318
+ /** Window lower bound (track firstSeen ≥ since). */
15319
+ since: number(),
15320
+ /** Window upper bound (track firstSeen ≤ until). */
15321
+ until: number(),
15322
+ limit: number().int().min(1).max(200).default(50),
15323
+ /** Drop tracks scoring below this importance. */
15324
+ minImportance: number().min(0).max(1).optional(),
15325
+ /** Restrict to a single class (e.g. 'person'). */
15326
+ classFilter: string().optional()
15327
+ });
15328
+ var KeyEventSchema = object({
15329
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15330
+ id: string(),
15331
+ trackId: string(),
15332
+ /** Track start time (firstSeen). */
15333
+ timestamp: number(),
15334
+ className: string(),
15335
+ label: string().optional(),
15336
+ importance: number(),
15337
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15338
+ bestEventId: string(),
15339
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15340
+ windowMs: number().optional()
15341
+ });
15048
15342
  var TrackedDetectionSchema = object({
15049
15343
  trackId: string(),
15050
15344
  className: string(),
@@ -15074,7 +15368,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15074
15368
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15075
15369
  kind: "mutation",
15076
15370
  auth: "admin"
15077
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15371
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15078
15372
  deviceId: number(),
15079
15373
  since: number(),
15080
15374
  until: number(),
@@ -15119,11 +15413,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15119
15413
  timestamp: number()
15120
15414
  });
15121
15415
  var CameraPipelineConfigSchema = object({
15122
- engine: PipelineEngineChoiceSchema,
15416
+ engine: PipelineEngineChoiceSchema.optional(),
15123
15417
  steps: array(PipelineStepInputSchema).readonly(),
15124
15418
  audio: object({
15125
- engine: PipelineEngineChoiceSchema,
15126
- modelId: string(),
15419
+ engine: PipelineEngineChoiceSchema.optional(),
15420
+ modelId: string().optional(),
15127
15421
  enabled: boolean(),
15128
15422
  settings: record(string(), unknown()).readonly().optional()
15129
15423
  }).nullable().optional()
@@ -15138,7 +15432,7 @@ var PipelineTemplateSchema = object({
15138
15432
  });
15139
15433
  var AgentAddonConfigSchema = object({
15140
15434
  enabled: boolean(),
15141
- modelId: string(),
15435
+ modelId: string().optional(),
15142
15436
  settings: record(string(), unknown()).readonly()
15143
15437
  });
15144
15438
  var AgentPipelineSettingsSchema = object({
@@ -15148,12 +15442,25 @@ var AgentPipelineSettingsSchema = object({
15148
15442
  detectWeight: number().positive().optional(),
15149
15443
  /** Node is eligible to run the detection pipeline (decode + inference). */
15150
15444
  detect: boolean().optional(),
15151
- /** Node is eligible to host decoder sessions. */
15445
+ /**
15446
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15447
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15448
+ * the schema ONLY so persisted stores written before the removal still
15449
+ * parse — no code reads it and no write path emits it.
15450
+ */
15152
15451
  decode: boolean().optional(),
15153
15452
  /** Node is eligible to run audio-analyzer sessions. */
15154
15453
  audio: boolean().optional(),
15155
15454
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15156
- ingest: boolean().optional()
15455
+ ingest: boolean().optional(),
15456
+ /**
15457
+ * Operator override for the LAN host a cross-node decoder dials to reach
15458
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15459
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15460
+ * it already uses to reach the hub). Set this only when the auto-detected
15461
+ * address is wrong (multi-homed host, NAT, custom interface).
15462
+ */
15463
+ reachableHost: string().optional()
15157
15464
  });
15158
15465
  var CameraPipelineForAgentSchema = object({
15159
15466
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15201,25 +15508,6 @@ var PipelineAssignmentSchema = object({
15201
15508
  assignedAt: number()
15202
15509
  });
15203
15510
  /**
15204
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15205
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15206
- * → co-located with pipeline → capacity).
15207
- */
15208
- var DecoderAssignmentSchema = object({
15209
- deviceId: number(),
15210
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15211
- decoderNodeId: string(),
15212
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15213
- pinned: boolean(),
15214
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15215
- reason: _enum([
15216
- "manual",
15217
- "co-located",
15218
- "capacity",
15219
- "hardware-affinity"
15220
- ])
15221
- });
15222
- /**
15223
15511
  * Per-agent load summary surfaced to the load balancer + dashboards.
15224
15512
  * Aggregated from each runner's `getLocalLoad` cap call.
15225
15513
  */
@@ -15259,6 +15547,15 @@ var GlobalMetricsSchema = object({
15259
15547
  * capability providers.
15260
15548
  */
15261
15549
  var CapabilityBindingsSchema = record(string(), string());
15550
+ /**
15551
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15552
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15553
+ */
15554
+ var IngestOwnerSchema = object({
15555
+ ownerNodeId: string(),
15556
+ reachableHost: string().optional(),
15557
+ configIssue: string().optional()
15558
+ });
15262
15559
  /** Source block — always present; derives from the stream catalog. */
15263
15560
  var CameraSourceStatusSchema = object({ streams: array(object({
15264
15561
  camStreamId: string(),
@@ -15273,6 +15570,14 @@ var CameraAssignmentStatusSchema = object({
15273
15570
  detectionNodeId: string().nullable(),
15274
15571
  decoderNodeId: string().nullable(),
15275
15572
  audioNodeId: string().nullable(),
15573
+ /**
15574
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15575
+ * hosts the broker/restream) — the cluster ingest owner today
15576
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15577
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15578
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15579
+ */
15580
+ sourceNodeId: string().nullable(),
15276
15581
  pinned: object({
15277
15582
  detection: boolean(),
15278
15583
  decoder: boolean(),
@@ -15405,16 +15710,7 @@ method(object({
15405
15710
  }), object({ success: literal(true) }), {
15406
15711
  kind: "mutation",
15407
15712
  auth: "admin"
15408
- }), method(object({
15409
- deviceId: number(),
15410
- nodeId: string()
15411
- }), _void(), {
15412
- kind: "mutation",
15413
- auth: "admin"
15414
- }), method(object({ deviceId: number() }), _void(), {
15415
- kind: "mutation",
15416
- auth: "admin"
15417
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15713
+ }), method(_void(), IngestOwnerSchema), method(object({
15418
15714
  deviceId: number(),
15419
15715
  nodeId: string()
15420
15716
  }), object({ success: literal(true) }), {
@@ -15435,10 +15731,7 @@ method(object({
15435
15731
  nodeId: string(),
15436
15732
  pinned: boolean(),
15437
15733
  assignedAt: number()
15438
- }))), method(object({
15439
- deviceId: number(),
15440
- pipelineNodeId: string().optional()
15441
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15734
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15442
15735
  nodeId: string(),
15443
15736
  settings: AgentPipelineSettingsSchema
15444
15737
  })).readonly()), method(object({
@@ -15468,12 +15761,26 @@ method(object({
15468
15761
  }), method(object({
15469
15762
  agentNodeId: string(),
15470
15763
  detect: boolean().nullable().optional(),
15471
- decode: boolean().nullable().optional(),
15472
15764
  audio: boolean().nullable().optional(),
15473
15765
  ingest: boolean().nullable().optional()
15474
15766
  }), object({ success: literal(true) }), {
15475
15767
  kind: "mutation",
15476
15768
  auth: "admin"
15769
+ }), method(object({
15770
+ agentNodeId: string(),
15771
+ reachableHost: string().nullable()
15772
+ }), object({ success: literal(true) }), {
15773
+ kind: "mutation",
15774
+ auth: "admin"
15775
+ }), method(object({ agentNodeId: string() }), object({
15776
+ success: literal(true),
15777
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15778
+ effectiveModelId: string().nullable(),
15779
+ /** Number of cameras whose node-scoped overrides were cleared. */
15780
+ clearedCameraOverrides: number()
15781
+ }), {
15782
+ kind: "mutation",
15783
+ auth: "admin"
15477
15784
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15478
15785
  deviceId: number(),
15479
15786
  addonId: string(),
@@ -15518,22 +15825,131 @@ method(object({
15518
15825
  kind: "mutation",
15519
15826
  auth: "admin"
15520
15827
  });
15521
- var RegisteredStreamSchema = object({
15522
- streamId: string(),
15523
- label: string().optional(),
15524
- codec: string(),
15525
- type: _enum(["video", "audio"]),
15526
- sourceUrl: string()
15828
+ /**
15829
+ * server-management — per-NODE singleton capability for a node's ROOT
15830
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15831
+ * agents).
15832
+ *
15833
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15834
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15835
+ * version describes the node. Updates install into
15836
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15837
+ * starter (probation boot + auto-rollback to N-1).
15838
+ *
15839
+ * Providers:
15840
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15841
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15842
+ * unpinned calls.
15843
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15844
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15845
+ * `$hub.registerNode` manifest.
15846
+ *
15847
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15848
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15849
+ * SDK) routes the call to that node's provider via the standard remote
15850
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15851
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15852
+ *
15853
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15854
+ */
15855
+ /**
15856
+ * Where the running hub's code was loaded from:
15857
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15858
+ * plain resolution and runtime updates are refused.
15859
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15860
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15861
+ */
15862
+ var ServerBootModeSchema = _enum([
15863
+ "workspace",
15864
+ "baked",
15865
+ "data-root"
15866
+ ]);
15867
+ /**
15868
+ * Update lifecycle state:
15869
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15870
+ * - `pending-restart` — a version is staged and the node has NOT yet
15871
+ * restarted onto it (still running the OLD version).
15872
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15873
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15874
+ * Apply/rollback are refused in this state and the node must NOT be
15875
+ * manually restarted, or the probation boot auto-rolls-back.
15876
+ */
15877
+ var ServerUpdateStateSchema = _enum([
15878
+ "idle",
15879
+ "checking",
15880
+ "staging",
15881
+ "pending-restart",
15882
+ "awaiting-confirmation"
15883
+ ]);
15884
+ var ServerRollbackInfoSchema = object({
15885
+ /** The version that failed (or was manually rolled back). */
15886
+ fromVersion: string(),
15887
+ /** The version rolled back to; null = the baked seed. */
15888
+ toVersion: string().nullable(),
15889
+ atMs: number(),
15890
+ reason: string()
15527
15891
  });
15528
- var ExposedResourceSchema = object({
15529
- streamId: string(),
15530
- format: string(),
15531
- value: string()
15892
+ var ServerPackageStatusSchema = object({
15893
+ /** Root package name (`@camstack/server` on the hub). */
15894
+ packageName: string(),
15895
+ /** Version of the code the running process ACTUALLY loaded. */
15896
+ runningVersion: string().nullable(),
15897
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15898
+ nodeRuntimeVersion: string().nullable(),
15899
+ /** Active data-dir root version; null when booted from seed/workspace. */
15900
+ activeVersion: string().nullable(),
15901
+ /** N-1 version kept for rollback; null when no previous version exists. */
15902
+ previousVersion: string().nullable(),
15903
+ /** Version of the immutable baked seed closure (image fallback). */
15904
+ seedVersion: string().nullable(),
15905
+ /** Latest registry version from the most recent check (null = never checked). */
15906
+ latestVersion: string().nullable(),
15907
+ updateAvailable: boolean(),
15908
+ bootMode: ServerBootModeSchema,
15909
+ updateState: ServerUpdateStateSchema,
15910
+ /** Version staged + awaiting its probation boot, when one is pending. */
15911
+ pendingVersion: string().nullable(),
15912
+ /** Set when the last freshly-activated version failed its boot health-check. */
15913
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15914
+ /**
15915
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15916
+ * hub is running from the baked seed (or workspace) while installed data-dir
15917
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15918
+ */
15919
+ stateFileCorrupt: boolean(),
15920
+ lastCheckedAtMs: number().nullable()
15921
+ });
15922
+ var ServerUpdateCheckResultSchema = object({
15923
+ packageName: string(),
15924
+ runningVersion: string().nullable(),
15925
+ latestVersion: string().nullable(),
15926
+ updateAvailable: boolean(),
15927
+ checkedAtMs: number(),
15928
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15929
+ error: string().nullable()
15930
+ });
15931
+ var ServerUpdateActionResultSchema = object({
15932
+ accepted: boolean(),
15933
+ targetVersion: string().nullable(),
15934
+ /** True when a graceful restart was scheduled to apply the change. */
15935
+ restarting: boolean(),
15936
+ message: string()
15937
+ });
15938
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15939
+ kind: "mutation",
15940
+ auth: "admin"
15941
+ }), method(object({
15942
+ /** Explicit target version; omitted = latest from the registry. */
15943
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15944
+ kind: "mutation",
15945
+ auth: "admin"
15946
+ }), method(_void(), ServerUpdateActionResultSchema, {
15947
+ kind: "mutation",
15948
+ auth: "admin"
15949
+ }), method(_void(), ServerUpdateActionResultSchema, {
15950
+ kind: "mutation",
15951
+ auth: "admin"
15532
15952
  });
15533
- method(object({
15534
- deviceId: number(),
15535
- streams: array(RegisteredStreamSchema).readonly()
15536
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15537
15953
  /**
15538
15954
  * Query filter for settings-store collections.
15539
15955
  */
@@ -15686,9 +16102,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15686
16102
  /**
15687
16103
  * A single device snapshot returned as base64 JPEG/PNG.
15688
16104
  *
15689
- * Shared with the `snapshot-provider` collection cap the orchestrator
15690
- * receives the same shape from each native provider and from the
15691
- * broker-based fallback.
16105
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16106
+ * the device-native provider (onboard capture) or from the stream-broker
16107
+ * prebuffer fallback.
15692
16108
  */
15693
16109
  var SnapshotImageSchema = object({
15694
16110
  base64: string(),
@@ -15719,11 +16135,12 @@ DeviceType.Camera, method(object({
15719
16135
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15720
16136
  kind: "mutation",
15721
16137
  auth: "admin"
15722
- });
15723
- method(object({ deviceId: number() }), boolean()), method(object({
16138
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15724
16139
  deviceId: number(),
15725
- streamId: string().optional()
15726
- }), SnapshotImageSchema.nullable());
16140
+ lastCapturedAt: number().nullable(),
16141
+ cacheAgeMs: number().nullable(),
16142
+ etag: string().nullable()
16143
+ })));
15727
16144
  /**
15728
16145
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15729
16146
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -15974,10 +16391,32 @@ method(_void(), array(TurnServerSchema).readonly());
15974
16391
  * b. `finishAuthentication({userId, response})` → server verifies
15975
16392
  * the assertion, bumps the credential counter, returns ok.
15976
16393
  *
16394
+ * 2b. Usernameless (discoverable-credential) authentication — the
16395
+ * passkey IS the primary factor, no password leg:
16396
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16397
+ * EMPTY `allowCredentials` (the browser offers every resident
16398
+ * passkey it holds for this RP) + `userVerification: 'required'`
16399
+ * (the passkey replaces both factors, so UV is mandatory).
16400
+ * The challenge is stored server-side, NOT bound to any user.
16401
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16402
+ * resolves the credential by the response's credential id,
16403
+ * verifies the assertion against the stored challenge + that
16404
+ * credential's public key/counter, and returns the OWNING
16405
+ * `userId` — the caller (core auth router) mints the session.
16406
+ *
15977
16407
  * 3. Management:
15978
16408
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
15979
16409
  * - `removePasskey({userId, credentialId})` — revoke one credential.
15980
16410
  *
16411
+ * 4. Second-factor preference (opt-in, default OFF):
16412
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16413
+ * demanded as a second factor after a password login ONLY when the
16414
+ * user explicitly opts in via `setSecondFactorPreference`.
16415
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16416
+ * row ⇒ `enabled: false`).
16417
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16418
+ * the providing addon beside its credentials.
16419
+ *
15981
16420
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
15982
16421
  * the admin-ui composes the begin/finish round-trip and never exposes
15983
16422
  * the cap to non-admins.
@@ -16020,6 +16459,17 @@ method(object({
16020
16459
  }), object({ verified: boolean() }), {
16021
16460
  kind: "mutation",
16022
16461
  access: "view"
16462
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16463
+ kind: "mutation",
16464
+ access: "view"
16465
+ }), method(object({
16466
+ /** AuthenticationResponseJSON from the browser. */
16467
+ response: record(string(), unknown()) }), object({
16468
+ verified: boolean(),
16469
+ userId: string().nullable()
16470
+ }), {
16471
+ kind: "mutation",
16472
+ access: "view"
16023
16473
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16024
16474
  userId: string(),
16025
16475
  credentialId: string()
@@ -16027,6 +16477,13 @@ method(object({
16027
16477
  kind: "mutation",
16028
16478
  auth: "admin",
16029
16479
  access: "delete"
16480
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16481
+ userId: string(),
16482
+ enabled: boolean()
16483
+ }), object({ success: literal(true) }), {
16484
+ kind: "mutation",
16485
+ auth: "admin",
16486
+ access: "create"
16030
16487
  });
16031
16488
  /**
16032
16489
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16084,9 +16541,10 @@ method(object({
16084
16541
  auth: "admin"
16085
16542
  });
16086
16543
  /**
16087
- * Optional client-side hints sent at session creation to help the
16088
- * provider pick the best native source. All fields are optional —
16089
- * a viewer that knows nothing still gets a sane default.
16544
+ * Optional client-side hints sent at session creation to help the provider
16545
+ * pick the best native source. All fields optional — a viewer that knows
16546
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16547
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16090
16548
  */
16091
16549
  var webrtcClientHintsSchema = object({
16092
16550
  viewportWidth: number().int().positive().optional(),
@@ -16097,22 +16555,6 @@ var webrtcClientHintsSchema = object({
16097
16555
  /** Hard tier override; takes precedence over scoring when registered. */
16098
16556
  prefersTier: string().optional()
16099
16557
  }).partial();
16100
- method(object({
16101
- streamId: string(),
16102
- sdpOffer: string()
16103
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16104
- streamId: string(),
16105
- codec: string()
16106
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16107
- streamId: string(),
16108
- hints: webrtcClientHintsSchema.optional()
16109
- }), object({
16110
- sessionId: string(),
16111
- sdpOffer: string()
16112
- }), { kind: "mutation" }), method(object({
16113
- sessionId: string(),
16114
- sdpAnswer: string()
16115
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16116
16558
  /**
16117
16559
  * Discriminated target for a WebRTC session. The client sends this
16118
16560
  * structured object instead of building / parsing brokerId strings;
@@ -16843,7 +17285,17 @@ var FaceInfoSchema = object({
16843
17285
  recognizedIdentityId: string().optional(),
16844
17286
  identityName: string().optional(),
16845
17287
  assigned: boolean(),
16846
- base64: string().optional()
17288
+ base64: string().optional(),
17289
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17290
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17291
+ * legacy rows written before design B. */
17292
+ faceBbox: BoundingBoxSchema.optional(),
17293
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17294
+ * Fetch the native JPEG via the event-media data-plane
17295
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17296
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17297
+ * back to the inline `base64` face crop. */
17298
+ keyFrameMediaKey: string().optional()
16847
17299
  });
16848
17300
  var FaceFilterEnum = _enum([
16849
17301
  "unassigned",
@@ -17540,6 +17992,16 @@ var TopologyCategorySchema = object({
17540
17992
  healthy: number(),
17541
17993
  addons: array(TopologyCategoryAddonSchema).readonly()
17542
17994
  });
17995
+ /**
17996
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17997
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17998
+ * version visibility for the Server management surface. Nullable: offline
17999
+ * rows and pre-phase-2 nodes report none.
18000
+ */
18001
+ var TopologyRootPackageSchema = object({
18002
+ name: string(),
18003
+ version: string()
18004
+ });
17543
18005
  var TopologyNodeSchema = object({
17544
18006
  id: string(),
17545
18007
  name: string(),
@@ -17563,7 +18025,8 @@ var TopologyNodeSchema = object({
17563
18025
  status: string()
17564
18026
  })).readonly(),
17565
18027
  processes: array(TopologyProcessSchema).readonly(),
17566
- categories: array(TopologyCategorySchema).readonly()
18028
+ categories: array(TopologyCategorySchema).readonly(),
18029
+ rootPackage: TopologyRootPackageSchema.nullable()
17567
18030
  });
17568
18031
  var CapUsageEdgeSchema = object({
17569
18032
  callerAddonId: string(),
@@ -20363,6 +20826,12 @@ Object.freeze({
20363
20826
  addonId: null,
20364
20827
  access: "create"
20365
20828
  },
20829
+ "loginMethod.getLoginMethods": {
20830
+ capName: "login-method",
20831
+ capScope: "system",
20832
+ addonId: null,
20833
+ access: "view"
20834
+ },
20366
20835
  "mediaPlayer.next": {
20367
20836
  capName: "media-player",
20368
20837
  capScope: "device",
@@ -20945,6 +21414,12 @@ Object.freeze({
20945
21414
  addonId: null,
20946
21415
  access: "view"
20947
21416
  },
21417
+ "pipelineAnalytics.getKeyEvents": {
21418
+ capName: "pipeline-analytics",
21419
+ capScope: "device",
21420
+ addonId: null,
21421
+ access: "view"
21422
+ },
20948
21423
  "pipelineAnalytics.getMotionEvents": {
20949
21424
  capName: "pipeline-analytics",
20950
21425
  capScope: "device",
@@ -20993,23 +21468,23 @@ Object.freeze({
20993
21468
  addonId: null,
20994
21469
  access: "create"
20995
21470
  },
20996
- "pipelineExecutor.deleteModel": {
21471
+ "pipelineExecutor.clearDeviceOverrides": {
20997
21472
  capName: "pipeline-executor",
20998
21473
  capScope: "system",
20999
21474
  addonId: null,
21000
21475
  access: "delete"
21001
21476
  },
21002
- "pipelineExecutor.deleteTemplate": {
21477
+ "pipelineExecutor.deleteModel": {
21003
21478
  capName: "pipeline-executor",
21004
21479
  capScope: "system",
21005
21480
  addonId: null,
21006
21481
  access: "delete"
21007
21482
  },
21008
- "pipelineExecutor.detect": {
21483
+ "pipelineExecutor.deleteTemplate": {
21009
21484
  capName: "pipeline-executor",
21010
21485
  capScope: "system",
21011
21486
  addonId: null,
21012
- access: "view"
21487
+ access: "delete"
21013
21488
  },
21014
21489
  "pipelineExecutor.downloadModel": {
21015
21490
  capName: "pipeline-executor",
@@ -21203,13 +21678,13 @@ Object.freeze({
21203
21678
  addonId: null,
21204
21679
  access: "create"
21205
21680
  },
21206
- "pipelineOrchestrator.assignAudio": {
21207
- capName: "pipeline-orchestrator",
21681
+ "pipelineExecutor.validatePipeline": {
21682
+ capName: "pipeline-executor",
21208
21683
  capScope: "system",
21209
21684
  addonId: null,
21210
- access: "create"
21685
+ access: "view"
21211
21686
  },
21212
- "pipelineOrchestrator.assignDecoder": {
21687
+ "pipelineOrchestrator.assignAudio": {
21213
21688
  capName: "pipeline-orchestrator",
21214
21689
  capScope: "system",
21215
21690
  addonId: null,
@@ -21293,19 +21768,13 @@ Object.freeze({
21293
21768
  addonId: null,
21294
21769
  access: "view"
21295
21770
  },
21296
- "pipelineOrchestrator.getDecoderAssignment": {
21771
+ "pipelineOrchestrator.getGlobalMetrics": {
21297
21772
  capName: "pipeline-orchestrator",
21298
21773
  capScope: "system",
21299
21774
  addonId: null,
21300
21775
  access: "view"
21301
21776
  },
21302
- "pipelineOrchestrator.getDecoderAssignments": {
21303
- capName: "pipeline-orchestrator",
21304
- capScope: "system",
21305
- addonId: null,
21306
- access: "view"
21307
- },
21308
- "pipelineOrchestrator.getGlobalMetrics": {
21777
+ "pipelineOrchestrator.getIngestOwner": {
21309
21778
  capName: "pipeline-orchestrator",
21310
21779
  capScope: "system",
21311
21780
  addonId: null,
@@ -21347,6 +21816,12 @@ Object.freeze({
21347
21816
  addonId: null,
21348
21817
  access: "delete"
21349
21818
  },
21819
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21820
+ capName: "pipeline-orchestrator",
21821
+ capScope: "system",
21822
+ addonId: null,
21823
+ access: "delete"
21824
+ },
21350
21825
  "pipelineOrchestrator.resolvePipeline": {
21351
21826
  capName: "pipeline-orchestrator",
21352
21827
  capScope: "system",
@@ -21383,37 +21858,37 @@ Object.freeze({
21383
21858
  addonId: null,
21384
21859
  access: "create"
21385
21860
  },
21386
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21861
+ "pipelineOrchestrator.setAgentReachableHost": {
21387
21862
  capName: "pipeline-orchestrator",
21388
21863
  capScope: "system",
21389
21864
  addonId: null,
21390
21865
  access: "create"
21391
21866
  },
21392
- "pipelineOrchestrator.setCameraStepOverride": {
21867
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21393
21868
  capName: "pipeline-orchestrator",
21394
21869
  capScope: "system",
21395
21870
  addonId: null,
21396
21871
  access: "create"
21397
21872
  },
21398
- "pipelineOrchestrator.setCameraStepToggle": {
21873
+ "pipelineOrchestrator.setCameraStepOverride": {
21399
21874
  capName: "pipeline-orchestrator",
21400
21875
  capScope: "system",
21401
21876
  addonId: null,
21402
21877
  access: "create"
21403
21878
  },
21404
- "pipelineOrchestrator.setCapabilityBinding": {
21879
+ "pipelineOrchestrator.setCameraStepToggle": {
21405
21880
  capName: "pipeline-orchestrator",
21406
21881
  capScope: "system",
21407
21882
  addonId: null,
21408
21883
  access: "create"
21409
21884
  },
21410
- "pipelineOrchestrator.unassignAudio": {
21885
+ "pipelineOrchestrator.setCapabilityBinding": {
21411
21886
  capName: "pipeline-orchestrator",
21412
21887
  capScope: "system",
21413
21888
  addonId: null,
21414
21889
  access: "create"
21415
21890
  },
21416
- "pipelineOrchestrator.unassignDecoder": {
21891
+ "pipelineOrchestrator.unassignAudio": {
21417
21892
  capName: "pipeline-orchestrator",
21418
21893
  capScope: "system",
21419
21894
  addonId: null,
@@ -21473,12 +21948,24 @@ Object.freeze({
21473
21948
  addonId: null,
21474
21949
  access: "view"
21475
21950
  },
21951
+ "pipelineRunner.getNativeCrop": {
21952
+ capName: "pipeline-runner",
21953
+ capScope: "system",
21954
+ addonId: null,
21955
+ access: "view"
21956
+ },
21476
21957
  "pipelineRunner.reportMotion": {
21477
21958
  capName: "pipeline-runner",
21478
21959
  capScope: "system",
21479
21960
  addonId: null,
21480
21961
  access: "create"
21481
21962
  },
21963
+ "pipelineRunner.runDetailSubtree": {
21964
+ capName: "pipeline-runner",
21965
+ capScope: "system",
21966
+ addonId: null,
21967
+ access: "create"
21968
+ },
21482
21969
  "plateGallery.correctPlateText": {
21483
21970
  capName: "plate-gallery",
21484
21971
  capScope: "system",
@@ -21713,33 +22200,45 @@ Object.freeze({
21713
22200
  addonId: null,
21714
22201
  access: "create"
21715
22202
  },
21716
- "restreamer.getExposedResources": {
21717
- capName: "restreamer",
22203
+ "scriptRunner.run": {
22204
+ capName: "script-runner",
22205
+ capScope: "device",
22206
+ addonId: null,
22207
+ access: "create"
22208
+ },
22209
+ "scriptRunner.stop": {
22210
+ capName: "script-runner",
22211
+ capScope: "device",
22212
+ addonId: null,
22213
+ access: "create"
22214
+ },
22215
+ "serverManagement.applyServerUpdate": {
22216
+ capName: "server-management",
21718
22217
  capScope: "system",
21719
22218
  addonId: null,
21720
- access: "view"
22219
+ access: "create"
21721
22220
  },
21722
- "restreamer.registerDevice": {
21723
- capName: "restreamer",
22221
+ "serverManagement.checkServerUpdate": {
22222
+ capName: "server-management",
21724
22223
  capScope: "system",
21725
22224
  addonId: null,
21726
22225
  access: "create"
21727
22226
  },
21728
- "restreamer.unregisterDevice": {
21729
- capName: "restreamer",
22227
+ "serverManagement.getServerPackageStatus": {
22228
+ capName: "server-management",
21730
22229
  capScope: "system",
21731
22230
  addonId: null,
21732
- access: "delete"
22231
+ access: "view"
21733
22232
  },
21734
- "scriptRunner.run": {
21735
- capName: "script-runner",
21736
- capScope: "device",
22233
+ "serverManagement.restartServer": {
22234
+ capName: "server-management",
22235
+ capScope: "system",
21737
22236
  addonId: null,
21738
22237
  access: "create"
21739
22238
  },
21740
- "scriptRunner.stop": {
21741
- capName: "script-runner",
21742
- capScope: "device",
22239
+ "serverManagement.rollbackServerUpdate": {
22240
+ capName: "server-management",
22241
+ capScope: "system",
21743
22242
  addonId: null,
21744
22243
  access: "create"
21745
22244
  },
@@ -21827,23 +22326,17 @@ Object.freeze({
21827
22326
  addonId: null,
21828
22327
  access: "view"
21829
22328
  },
21830
- "snapshot.invalidateCache": {
22329
+ "snapshot.getSnapshotOverview": {
21831
22330
  capName: "snapshot",
21832
22331
  capScope: "device",
21833
22332
  addonId: null,
21834
- access: "create"
21835
- },
21836
- "snapshotProvider.getSnapshot": {
21837
- capName: "snapshot-provider",
21838
- capScope: "system",
21839
- addonId: null,
21840
22333
  access: "view"
21841
22334
  },
21842
- "snapshotProvider.supportsDevice": {
21843
- capName: "snapshot-provider",
21844
- capScope: "system",
22335
+ "snapshot.invalidateCache": {
22336
+ capName: "snapshot",
22337
+ capScope: "device",
21845
22338
  addonId: null,
21846
- access: "view"
22339
+ access: "create"
21847
22340
  },
21848
22341
  "ssoBridge.signBridgeToken": {
21849
22342
  capName: "sso-bridge",
@@ -22271,30 +22764,6 @@ Object.freeze({
22271
22764
  addonId: null,
22272
22765
  access: "view"
22273
22766
  },
22274
- "streamingEngine.getStreamUrl": {
22275
- capName: "streaming-engine",
22276
- capScope: "system",
22277
- addonId: null,
22278
- access: "view"
22279
- },
22280
- "streamingEngine.listStreams": {
22281
- capName: "streaming-engine",
22282
- capScope: "system",
22283
- addonId: null,
22284
- access: "view"
22285
- },
22286
- "streamingEngine.registerStream": {
22287
- capName: "streaming-engine",
22288
- capScope: "system",
22289
- addonId: null,
22290
- access: "create"
22291
- },
22292
- "streamingEngine.unregisterStream": {
22293
- capName: "streaming-engine",
22294
- capScope: "system",
22295
- addonId: null,
22296
- access: "delete"
22297
- },
22298
22767
  "streamParams.getConfigSchema": {
22299
22768
  capName: "stream-params",
22300
22769
  capScope: "device",
@@ -22541,6 +23010,12 @@ Object.freeze({
22541
23010
  addonId: null,
22542
23011
  access: "view"
22543
23012
  },
23013
+ "userPasskeys.beginDiscoverableAuthentication": {
23014
+ capName: "user-passkeys",
23015
+ capScope: "system",
23016
+ addonId: null,
23017
+ access: "view"
23018
+ },
22544
23019
  "userPasskeys.beginRegistration": {
22545
23020
  capName: "user-passkeys",
22546
23021
  capScope: "system",
@@ -22553,12 +23028,24 @@ Object.freeze({
22553
23028
  addonId: null,
22554
23029
  access: "view"
22555
23030
  },
23031
+ "userPasskeys.finishDiscoverableAuthentication": {
23032
+ capName: "user-passkeys",
23033
+ capScope: "system",
23034
+ addonId: null,
23035
+ access: "view"
23036
+ },
22556
23037
  "userPasskeys.finishRegistration": {
22557
23038
  capName: "user-passkeys",
22558
23039
  capScope: "system",
22559
23040
  addonId: null,
22560
23041
  access: "create"
22561
23042
  },
23043
+ "userPasskeys.getSecondFactorPreference": {
23044
+ capName: "user-passkeys",
23045
+ capScope: "system",
23046
+ addonId: null,
23047
+ access: "view"
23048
+ },
22562
23049
  "userPasskeys.listPasskeys": {
22563
23050
  capName: "user-passkeys",
22564
23051
  capScope: "system",
@@ -22571,6 +23058,12 @@ Object.freeze({
22571
23058
  addonId: null,
22572
23059
  access: "delete"
22573
23060
  },
23061
+ "userPasskeys.setSecondFactorPreference": {
23062
+ capName: "user-passkeys",
23063
+ capScope: "system",
23064
+ addonId: null,
23065
+ access: "create"
23066
+ },
22574
23067
  "vacuumControl.locate": {
22575
23068
  capName: "vacuum-control",
22576
23069
  capScope: "device",
@@ -22643,6 +23136,18 @@ Object.freeze({
22643
23136
  addonId: null,
22644
23137
  access: "view"
22645
23138
  },
23139
+ "viewerUi.getStaticDir": {
23140
+ capName: "viewer-ui",
23141
+ capScope: "system",
23142
+ addonId: null,
23143
+ access: "view"
23144
+ },
23145
+ "viewerUi.getVersion": {
23146
+ capName: "viewer-ui",
23147
+ capScope: "system",
23148
+ addonId: null,
23149
+ access: "view"
23150
+ },
22646
23151
  "waterHeater.setAway": {
22647
23152
  capName: "water-heater",
22648
23153
  capScope: "device",
@@ -22661,54 +23166,6 @@ Object.freeze({
22661
23166
  addonId: null,
22662
23167
  access: "create"
22663
23168
  },
22664
- "webrtc.closeSession": {
22665
- capName: "webrtc",
22666
- capScope: "system",
22667
- addonId: null,
22668
- access: "create"
22669
- },
22670
- "webrtc.createSession": {
22671
- capName: "webrtc",
22672
- capScope: "system",
22673
- addonId: null,
22674
- access: "create"
22675
- },
22676
- "webrtc.handleAnswer": {
22677
- capName: "webrtc",
22678
- capScope: "system",
22679
- addonId: null,
22680
- access: "create"
22681
- },
22682
- "webrtc.handleOffer": {
22683
- capName: "webrtc",
22684
- capScope: "system",
22685
- addonId: null,
22686
- access: "create"
22687
- },
22688
- "webrtc.hasAdaptiveBitrate": {
22689
- capName: "webrtc",
22690
- capScope: "system",
22691
- addonId: null,
22692
- access: "view"
22693
- },
22694
- "webrtc.registerStream": {
22695
- capName: "webrtc",
22696
- capScope: "system",
22697
- addonId: null,
22698
- access: "create"
22699
- },
22700
- "webrtc.supportsStream": {
22701
- capName: "webrtc",
22702
- capScope: "system",
22703
- addonId: null,
22704
- access: "view"
22705
- },
22706
- "webrtc.unregisterStream": {
22707
- capName: "webrtc",
22708
- capScope: "system",
22709
- addonId: null,
22710
- access: "delete"
22711
- },
22712
23169
  "webrtcSession.addIceCandidate": {
22713
23170
  capName: "webrtc-session",
22714
23171
  capScope: "device",