@camstack/addon-tailscale 1.1.20 → 1.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-CZDdRBua.mjs
4630
+ //#region ../types/dist/sleep-Baang_XW.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4813,6 +4813,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4813
4813
  */
4814
4814
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4815
4815
  /**
4816
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4817
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4818
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4819
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4820
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4821
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4822
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4823
+ * topology change, so a dropped event self-heals on the next one (plus the
4824
+ * broker's long backstop reconcile query).
4825
+ */
4826
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4827
+ /**
4816
4828
  * Periodic snapshot of per-node pipeline-runner load
4817
4829
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4818
4830
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5336,10 +5348,6 @@ function hydrateField(field, values) {
5336
5348
  };
5337
5349
  }
5338
5350
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5339
- if (field.type === "password") return {
5340
- ...field,
5341
- value: ""
5342
- };
5343
5351
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5344
5352
  return {
5345
5353
  ...field,
@@ -6723,6 +6731,21 @@ function method(input, output, options) {
6723
6731
  timeoutMs: options?.timeoutMs
6724
6732
  };
6725
6733
  }
6734
+ /**
6735
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6736
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6737
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6738
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6739
+ */
6740
+ function systemMethod(input, output, options) {
6741
+ return {
6742
+ ...method(input, output, options),
6743
+ systemOnly: true
6744
+ };
6745
+ }
6746
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6747
+ var VersionOutputSchema$1 = object({ version: string() });
6748
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6726
6749
  var StaticDirOutputSchema = object({ staticDir: string() });
6727
6750
  var VersionOutputSchema = object({ version: string() });
6728
6751
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6892,6 +6915,36 @@ var ModelFormatsSchema = object({
6892
6915
  tflite: ModelFormatEntrySchema.optional(),
6893
6916
  pt: ModelFormatEntrySchema.optional()
6894
6917
  });
6918
+ /**
6919
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6920
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6921
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6922
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6923
+ * resolution/download/persistence; this is a presentation overlay resolved back
6924
+ * to an `id`.
6925
+ */
6926
+ var ModelVariantGroupSchema = object({
6927
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6928
+ family: string(),
6929
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6930
+ tier: string(),
6931
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6932
+ precision: _enum(["fp32", "int8"]).optional(),
6933
+ /**
6934
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6935
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6936
+ * future performance variants plug into.
6937
+ */
6938
+ optimization: _enum(["standard", "fast"]).optional(),
6939
+ /**
6940
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6941
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6942
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6943
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6944
+ * the group so the selector can offer it as a variant axis.
6945
+ */
6946
+ resolution: number().int().positive().optional()
6947
+ });
6895
6948
  var ModelCatalogEntrySchema = object({
6896
6949
  id: string(),
6897
6950
  name: string(),
@@ -6921,7 +6974,43 @@ var ModelCatalogEntrySchema = object({
6921
6974
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6922
6975
  * Downloaded into the same modelsDir alongside the model file.
6923
6976
  */
6924
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6977
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6978
+ /**
6979
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6980
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6981
+ * model list and excluded from the auto format-default pick. Set on the
6982
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6983
+ * the active lineup stays the coherent curated ladder without deleting a
6984
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6985
+ * an explicit legacy id that has a build for the node's format.
6986
+ */
6987
+ legacy: boolean().optional(),
6988
+ /**
6989
+ * Measured quality/latency metadata — populated from the benchmark addon on
6990
+ * the real node classes. Absent = not yet measured (most entries today; the
6991
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
6992
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
6993
+ */
6994
+ metrics: object({
6995
+ map50: number().optional(),
6996
+ p95LatencyMs: record(string(), number()).optional()
6997
+ }).optional(),
6998
+ /**
6999
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7000
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7001
+ * the retraining addon and any future commercial distribution.
7002
+ */
7003
+ license: string().optional(),
7004
+ /**
7005
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7006
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7007
+ * of a family's sizes and quantizations collapse into one grouped picker
7008
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7009
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7010
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7011
+ * is a presentation overlay resolved back to an `id`.
7012
+ */
7013
+ group: ModelVariantGroupSchema.optional()
6925
7014
  });
6926
7015
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6927
7016
  format: literal("openvino"),
@@ -6982,8 +7071,8 @@ var RecordingModeSchema = _enum([
6982
7071
  "onAudioThreshold"
6983
7072
  ]);
6984
7073
  /**
6985
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6986
- * reads directly (never inferred from `rules`):
7074
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7075
+ * UI reads directly (never inferred from `rules`):
6987
7076
  * - `off` — not recording.
6988
7077
  * - `events` — record only around triggers (motion / audio threshold),
6989
7078
  * with pre/post-buffer.
@@ -8631,26 +8720,13 @@ DeviceType.Light, method(object({
8631
8720
  percentage: number().min(0).max(100),
8632
8721
  lastChangedAt: number()
8633
8722
  });
8723
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8634
8724
  var StreamFormatSchema = _enum([
8635
8725
  "webrtc",
8636
8726
  "hls",
8637
8727
  "mjpeg",
8638
8728
  "rtsp"
8639
8729
  ]);
8640
- var StreamInfoSchema = object({
8641
- streamId: string(),
8642
- format: StreamFormatSchema,
8643
- url: string().nullable(),
8644
- active: boolean()
8645
- });
8646
- method(object({
8647
- streamId: string(),
8648
- sourceUrl: string(),
8649
- codec: string().optional()
8650
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8651
- streamId: string(),
8652
- format: StreamFormatSchema
8653
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8654
8730
  var RtspRestreamEntrySchema = object({
8655
8731
  brokerId: string(),
8656
8732
  url: string(),
@@ -9315,7 +9391,7 @@ var ConsumablesStatusSchema = object({
9315
9391
  })),
9316
9392
  lastChangedAt: number()
9317
9393
  });
9318
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, method(object({
9394
+ Object.values(DeviceType), method(object({
9319
9395
  deviceId: number().int().nonnegative(),
9320
9396
  key: string().min(1)
9321
9397
  }), _void(), {
@@ -10230,7 +10306,7 @@ var BoundingBoxSchema = object({
10230
10306
  w: number(),
10231
10307
  h: number()
10232
10308
  });
10233
- var SpatialDetectionSchema = object({
10309
+ object({
10234
10310
  class: string(),
10235
10311
  originalClass: string(),
10236
10312
  score: number(),
@@ -10365,7 +10441,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10365
10441
  enabled: boolean(),
10366
10442
  modelId: string(),
10367
10443
  children: array(PipelineDefaultStepSchema).readonly(),
10368
- engine: PipelineEngineChoiceSchema.optional(),
10369
10444
  group: string().optional(),
10370
10445
  settings: record(string(), unknown()).optional()
10371
10446
  }));
@@ -10390,7 +10465,9 @@ var PipelineModelOptionSchema = object({
10390
10465
  formats: record(string(), object({
10391
10466
  downloaded: boolean(),
10392
10467
  sizeMB: number()
10393
- }))
10468
+ })),
10469
+ group: ModelVariantGroupSchema.optional(),
10470
+ legacy: boolean().optional()
10394
10471
  });
10395
10472
  var ConfigFieldBridge = custom();
10396
10473
  var PipelineAddonSchemaSchema = object({
@@ -10404,6 +10481,7 @@ var PipelineAddonSchemaSchema = object({
10404
10481
  defaultModelId: string(),
10405
10482
  defaultModelIdByFormat: record(string(), string()).optional(),
10406
10483
  enabledByDefault: boolean().optional(),
10484
+ backfillIntoExistingOverrides: boolean().optional(),
10407
10485
  defaultConfidence: number(),
10408
10486
  group: string().optional(),
10409
10487
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10420,11 +10498,6 @@ var PipelineSchemaSchema = object({
10420
10498
  selectedEngine: PipelineEngineChoiceSchema,
10421
10499
  slots: array(PipelineSlotSchemaSchema).readonly()
10422
10500
  });
10423
- var DetectorOutputSchema = object({
10424
- detections: array(SpatialDetectionSchema).readonly(),
10425
- inferenceMs: number(),
10426
- modelId: string()
10427
- });
10428
10501
  var EngineProvisioningSchema = object({
10429
10502
  runtimeId: _enum([
10430
10503
  "onnx",
@@ -10441,15 +10514,42 @@ var EngineProvisioningSchema = object({
10441
10514
  ]),
10442
10515
  progress: number().optional(),
10443
10516
  error: string().optional(),
10444
- nextRetryAt: number().optional()
10517
+ nextRetryAt: number().optional(),
10518
+ /**
10519
+ * Gate A (config-correctness gate at engine change): human-readable
10520
+ * config issues surfaced EAGERLY when the node's engine changes — model
10521
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10522
+ * has a <format> build"). Additive/optional: informational only, never
10523
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10524
+ * Absent/empty when the node-default tree resolves cleanly.
10525
+ */
10526
+ configIssues: array(string()).optional()
10445
10527
  });
10446
10528
  var PipelineStepInputSchema = lazy(() => object({
10447
10529
  addonId: string(),
10448
- modelId: string(),
10530
+ modelId: string().optional(),
10449
10531
  enabled: boolean().default(true),
10450
10532
  children: array(PipelineStepInputSchema).optional(),
10451
10533
  settings: record(string(), unknown()).optional()
10452
10534
  }));
10535
+ var ModelSubstitutionSchema = object({
10536
+ addonId: string(),
10537
+ chosen: string(),
10538
+ running: string(),
10539
+ format: string()
10540
+ });
10541
+ var PipelineValidationIssueSchema = object({
10542
+ addonId: string(),
10543
+ kind: _enum(["unknown-addon", "no-format-build"]),
10544
+ detail: string()
10545
+ });
10546
+ var PipelineValidationResultSchema = object({
10547
+ ok: boolean(),
10548
+ issues: array(PipelineValidationIssueSchema).readonly(),
10549
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10550
+ /** The node's `currentEngine.format` this validation ran against. */
10551
+ format: string()
10552
+ });
10453
10553
  var ReferenceImageEntrySchema = object({
10454
10554
  filename: string(),
10455
10555
  stepIds: array(string()).readonly().optional()
@@ -10520,7 +10620,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10520
10620
  })) }), object({ success: literal(true) }), {
10521
10621
  kind: "mutation",
10522
10622
  auth: "admin"
10523
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10623
+ }), method(object({ nodeId: string() }), object({
10624
+ success: literal(true),
10625
+ clearedDevices: number()
10626
+ }), {
10627
+ kind: "mutation",
10628
+ auth: "admin"
10629
+ }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({ steps: array(PipelineStepInputSchema) }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10524
10630
  name: string(),
10525
10631
  steps: array(PipelineTemplateStepSchema).readonly(),
10526
10632
  engine: PipelineEngineChoiceSchema
@@ -10537,10 +10643,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10537
10643
  modelId: string(),
10538
10644
  format: ModelFormatSchema$1
10539
10645
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10540
- addonId: string(),
10541
- frame: FrameInputSchema,
10542
- config: record(string(), unknown()).optional()
10543
- }), DetectorOutputSchema), method(object({
10544
10646
  engine: PipelineEngineChoiceSchema.optional(),
10545
10647
  steps: array(PipelineStepInputSchema).min(1),
10546
10648
  frame: FrameInputSchema.optional(),
@@ -10561,7 +10663,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10561
10663
  image: _instanceof(Uint8Array).optional(),
10562
10664
  referenceImage: string().optional(),
10563
10665
  deviceId: number().optional(),
10564
- sessionId: string().optional()
10666
+ sessionId: string().optional(),
10667
+ /**
10668
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10669
+ * reference-image, and detail-subtree calls. 'frame' is the live
10670
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10671
+ * (inputClasses ≠ null) are skipped and served per-track via
10672
+ * pipelineRunner.runDetailSubtree (two-plane design).
10673
+ */
10674
+ plane: _enum(["full", "frame"]).optional()
10565
10675
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10566
10676
  engine: PipelineEngineChoiceSchema.optional(),
10567
10677
  steps: array(PipelineStepInputSchema).min(1),
@@ -10686,6 +10796,47 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10686
10796
  auth: "admin"
10687
10797
  }), object({ zones: array(ZoneSchema).readonly() });
10688
10798
  /**
10799
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10800
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10801
+ * so the caller supplies only the detection-res bbox divided by the detection
10802
+ * dims — no native resolution to plumb.
10803
+ */
10804
+ var NativeCropBboxSchema = object({
10805
+ x: number(),
10806
+ y: number(),
10807
+ w: number(),
10808
+ h: number()
10809
+ });
10810
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10811
+ var NativeCropResultSchema = object({
10812
+ /** Packed rgb (24-bit) pixels of the crop. */
10813
+ bytes: _instanceof(Uint8Array),
10814
+ width: number().int().positive(),
10815
+ height: number().int().positive()
10816
+ });
10817
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10818
+ * originating detection, in FRAME-space coordinates. Reuses
10819
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10820
+ * the coordinates are frame-space rather than getNativeCrop's
10821
+ * normalized [0,1] convention). */
10822
+ var DetailParentSchema = object({
10823
+ bbox: NativeCropBboxSchema,
10824
+ className: string()
10825
+ });
10826
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10827
+ * or refined detection produced by running the crop-subtree on a
10828
+ * single tracked detection. */
10829
+ var DetailResultSchema = object({
10830
+ stepId: string(),
10831
+ className: string(),
10832
+ score: number(),
10833
+ /** FRAME-space bbox (already mapped back from crop space). */
10834
+ bbox: NativeCropBboxSchema.optional(),
10835
+ embedding: string().optional(),
10836
+ label: string().optional(),
10837
+ alignedCropJpeg: string().optional()
10838
+ });
10839
+ /**
10689
10840
  * Per-camera tunable ranges + defaults. Single source of truth used
10690
10841
  * by both the Zod data schema (validation + default fallback) and
10691
10842
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10780,6 +10931,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10780
10931
  kind: literal("remote-restream"),
10781
10932
  /** The camera's source-owner node (slice 1: always the hub). */
10782
10933
  ownerNodeId: string(),
10934
+ /**
10935
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10936
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10937
+ * dials THIS host for the owner's restream, in preference to the
10938
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10939
+ */
10940
+ ownerReachableHost: string().optional(),
10783
10941
  /** Operator override for the owner host the runner dials. */
10784
10942
  hubHostnameOverride: string().optional()
10785
10943
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10788,13 +10946,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10788
10946
  * specific runner instance via `attachCamera`. Carries everything the
10789
10947
  * runner needs to subscribe to the local broker and execute inference.
10790
10948
  *
10791
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10792
- * optional `audio`) travels with the attach payload. The runner keeps it
10793
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10794
- * restart the orchestrator re-sends the latest snapshot.
10795
- *
10796
- * `engine`/`steps`/`audio` are optional during the additive migration
10797
- * window; once orchestrator + UI are migrated they become required.
10949
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10950
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10951
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10952
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10953
+ * node-local, resolved by the executing runner at dispatch time.
10798
10954
  */
10799
10955
  var RunnerCameraConfigSchema = object({
10800
10956
  deviceId: number(),
@@ -10845,14 +11001,11 @@ var RunnerCameraConfigSchema = object({
10845
11001
  */
10846
11002
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10847
11003
  pipelineEnabled: boolean().default(true),
10848
- /** Engine choice for video steps (runtime+backend+format). */
10849
- engine: PipelineEngineChoiceSchema.optional(),
10850
11004
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10851
11005
  steps: array(PipelineStepInputSchema).readonly().optional(),
10852
11006
  /** Audio classification branch. `enabled:false` disables, null skips. */
10853
11007
  audio: object({
10854
- engine: PipelineEngineChoiceSchema,
10855
- modelId: string(),
11008
+ modelId: string().optional(),
10856
11009
  enabled: boolean()
10857
11010
  }).nullable().optional(),
10858
11011
  /**
@@ -10939,7 +11092,17 @@ var RunnerLocalMetricsSchema = object({
10939
11092
  avgInferenceTimeMs: number(),
10940
11093
  queueDepth: number()
10941
11094
  });
10942
- method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly());
11095
+ 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({
11096
+ handle: FrameHandleSchema,
11097
+ bbox: NativeCropBboxSchema,
11098
+ maxWidth: number().int().positive().optional()
11099
+ }), NativeCropResultSchema.nullable()), method(object({
11100
+ deviceId: number(),
11101
+ frameHandle: FrameHandleSchema.optional(),
11102
+ cropJpeg: string().optional(),
11103
+ parent: DetailParentSchema,
11104
+ steps: array(string()).optional()
11105
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
10943
11106
  object({
10944
11107
  detected: boolean(),
10945
11108
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12233,7 +12396,9 @@ var AddonPageDeclarationSchema$1 = object({
12233
12396
  icon: string(),
12234
12397
  path: string(),
12235
12398
  remoteName: string(),
12236
- bundle: string()
12399
+ bundle: string(),
12400
+ section: string().optional(),
12401
+ sectionLabel: string().optional()
12237
12402
  });
12238
12403
  var AddonPageInfoSchema = object({
12239
12404
  addonId: string(),
@@ -12273,7 +12438,18 @@ var AddonPageDeclarationSchema = object({
12273
12438
  * the static-file route can compute an mtime-based cache-buster URL
12274
12439
  * without a separate filesystem stat.
12275
12440
  */
12276
- bundle: string()
12441
+ bundle: string(),
12442
+ /**
12443
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12444
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12445
+ * Any OTHER string creates (or joins) a custom section rendered after
12446
+ * the built-in groups; its label comes from `sectionLabel` (first
12447
+ * declaration wins), falling back to the id. Absent → the legacy
12448
+ * "Addon Pages" group.
12449
+ */
12450
+ section: string().optional(),
12451
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12452
+ sectionLabel: string().optional()
12277
12453
  });
12278
12454
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12279
12455
  var AddonHttpRouteSchema = object({
@@ -12489,6 +12665,17 @@ var WidgetMetadataSchema = object({
12489
12665
  deviceContext: boolean().default(false),
12490
12666
  integrationContext: boolean().default(false)
12491
12667
  }),
12668
+ /**
12669
+ * Loadable BEFORE authentication. The normal widget registry listing
12670
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12671
+ * (the login page) cannot discover a widget through it. A widget that
12672
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12673
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12674
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12675
+ * than the authenticated registry, and its bundle is served by the
12676
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12677
+ */
12678
+ preAuth: boolean().optional().default(false),
12492
12679
  /** Dashboard placement HINTS (operator can override per instance). */
12493
12680
  defaultSize: WidgetSizeEnum.default("md"),
12494
12681
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12790,6 +12977,66 @@ method(object({
12790
12977
  password: string()
12791
12978
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12792
12979
  /**
12980
+ * `login-method` — collection cap through which auth addons contribute
12981
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12982
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12983
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12984
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12985
+ * procedure aggregates them for the unauthenticated login page.
12986
+ *
12987
+ * A contribution is a discriminated union on `kind`:
12988
+ *
12989
+ * - `redirect` — a declarative button. The login page renders a generic
12990
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
12991
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
12992
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
12993
+ * login page needs NO change.
12994
+ *
12995
+ * - `widget` — a Module-Federation widget the login page mounts (via
12996
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
12997
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
12998
+ * addon bundle. The referenced widget also declares `preAuth: true` in
12999
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13000
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13001
+ *
13002
+ * Every contribution carries a `stage`:
13003
+ * - `primary` — shown on the first credentials screen (OIDC /
13004
+ * magic-link buttons; a future usernameless passkey).
13005
+ * - `second-factor` — shown AFTER the password leg, gated on the
13006
+ * returned `factors` (passkey-as-2FA today).
13007
+ *
13008
+ * `mount: skip` — the cap is read server-side by the core auth router
13009
+ * (`registry.getCollection('login-method')`), never mounted as its own
13010
+ * tRPC router.
13011
+ */
13012
+ /** When a login method renders in the two-phase login flow. */
13013
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13014
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13015
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13016
+ kind: literal("redirect"),
13017
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13018
+ id: string(),
13019
+ /** Operator-facing button label. */
13020
+ label: string(),
13021
+ /** lucide-react icon name. */
13022
+ icon: string().optional(),
13023
+ /** Addon-owned HTTP route the button navigates to (GET). */
13024
+ startUrl: string(),
13025
+ stage: LoginStageEnum
13026
+ }), object({
13027
+ kind: literal("widget"),
13028
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13029
+ id: string(),
13030
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13031
+ addonId: string(),
13032
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13033
+ bundle: string(),
13034
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13035
+ remote: WidgetRemoteSchema,
13036
+ stage: LoginStageEnum
13037
+ })]);
13038
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13039
+ /**
12793
13040
  * Orchestrator-side destination metadata. The orchestrator computes
12794
13041
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12795
13042
  * (admin UI, restore flow) see one canonical key.
@@ -14910,7 +15157,17 @@ var TrackSchema = object({
14910
15157
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14911
15158
  totalDistance: number(),
14912
15159
  state: TrackStateSchema,
14913
- active: boolean()
15160
+ active: boolean(),
15161
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15162
+ * track expiry, recomputed on late label). Absent on legacy rows written
15163
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15164
+ importance: number().optional(),
15165
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15166
+ * "best" frame). Absent when the track produced no object events. */
15167
+ bestEventId: string().optional(),
15168
+ /** Tag of the importance sub-signal that dominated the score
15169
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15170
+ importanceReason: string().optional()
14914
15171
  });
14915
15172
  var BaseEventFields = {
14916
15173
  id: string(),
@@ -14975,8 +15232,18 @@ var ObjectEventSchema = object({
14975
15232
  frameHeight: number().optional(),
14976
15233
  /** MediaStore key for the crop attached to this event (if any). */
14977
15234
  mediaKey: string().optional(),
15235
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15236
+ * best-detection full frame). Resolve via the event-media data-plane
15237
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15238
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15239
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15240
+ keyFrameMediaKey: string().optional(),
14978
15241
  /** Populated by B5 (recording playback URL for this event). */
14979
- mediaUrl: string().optional()
15242
+ mediaUrl: string().optional(),
15243
+ /** The parent track's key-event importance [0,1], propagated to every object
15244
+ * event of the track (so an event row can be sorted by importance without a
15245
+ * track join). Absent on legacy rows / before the track was scored. */
15246
+ importance: number().optional()
14980
15247
  });
14981
15248
  var AudioEventSchema = object({
14982
15249
  ...BaseEventFields,
@@ -15000,7 +15267,8 @@ var MediaFileKindEnum = _enum([
15000
15267
  "fullFrame",
15001
15268
  "fullFrameBoxed",
15002
15269
  "faceCrop",
15003
- "plateCrop"
15270
+ "plateCrop",
15271
+ "keyFrame"
15004
15272
  ]);
15005
15273
  var MediaFileSchema = object({
15006
15274
  key: string(),
@@ -15021,6 +15289,32 @@ var DeviceEventQueryInput = object({
15021
15289
  projection: _enum(["full", "slim"]).optional()
15022
15290
  });
15023
15291
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15292
+ var KeyEventQueryInput = object({
15293
+ deviceId: number(),
15294
+ /** Window lower bound (track firstSeen ≥ since). */
15295
+ since: number(),
15296
+ /** Window upper bound (track firstSeen ≤ until). */
15297
+ until: number(),
15298
+ limit: number().int().min(1).max(200).default(50),
15299
+ /** Drop tracks scoring below this importance. */
15300
+ minImportance: number().min(0).max(1).optional(),
15301
+ /** Restrict to a single class (e.g. 'person'). */
15302
+ classFilter: string().optional()
15303
+ });
15304
+ var KeyEventSchema = object({
15305
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15306
+ id: string(),
15307
+ trackId: string(),
15308
+ /** Track start time (firstSeen). */
15309
+ timestamp: number(),
15310
+ className: string(),
15311
+ label: string().optional(),
15312
+ importance: number(),
15313
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15314
+ bestEventId: string(),
15315
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15316
+ windowMs: number().optional()
15317
+ });
15024
15318
  var TrackedDetectionSchema = object({
15025
15319
  trackId: string(),
15026
15320
  className: string(),
@@ -15050,7 +15344,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15050
15344
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15051
15345
  kind: "mutation",
15052
15346
  auth: "admin"
15053
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15347
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15054
15348
  deviceId: number(),
15055
15349
  since: number(),
15056
15350
  until: number(),
@@ -15095,11 +15389,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15095
15389
  timestamp: number()
15096
15390
  });
15097
15391
  var CameraPipelineConfigSchema = object({
15098
- engine: PipelineEngineChoiceSchema,
15392
+ engine: PipelineEngineChoiceSchema.optional(),
15099
15393
  steps: array(PipelineStepInputSchema).readonly(),
15100
15394
  audio: object({
15101
- engine: PipelineEngineChoiceSchema,
15102
- modelId: string(),
15395
+ engine: PipelineEngineChoiceSchema.optional(),
15396
+ modelId: string().optional(),
15103
15397
  enabled: boolean(),
15104
15398
  settings: record(string(), unknown()).readonly().optional()
15105
15399
  }).nullable().optional()
@@ -15114,7 +15408,7 @@ var PipelineTemplateSchema = object({
15114
15408
  });
15115
15409
  var AgentAddonConfigSchema = object({
15116
15410
  enabled: boolean(),
15117
- modelId: string(),
15411
+ modelId: string().optional(),
15118
15412
  settings: record(string(), unknown()).readonly()
15119
15413
  });
15120
15414
  var AgentPipelineSettingsSchema = object({
@@ -15124,12 +15418,25 @@ var AgentPipelineSettingsSchema = object({
15124
15418
  detectWeight: number().positive().optional(),
15125
15419
  /** Node is eligible to run the detection pipeline (decode + inference). */
15126
15420
  detect: boolean().optional(),
15127
- /** Node is eligible to host decoder sessions. */
15421
+ /**
15422
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15423
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15424
+ * the schema ONLY so persisted stores written before the removal still
15425
+ * parse — no code reads it and no write path emits it.
15426
+ */
15128
15427
  decode: boolean().optional(),
15129
15428
  /** Node is eligible to run audio-analyzer sessions. */
15130
15429
  audio: boolean().optional(),
15131
15430
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15132
- ingest: boolean().optional()
15431
+ ingest: boolean().optional(),
15432
+ /**
15433
+ * Operator override for the LAN host a cross-node decoder dials to reach
15434
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15435
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15436
+ * it already uses to reach the hub). Set this only when the auto-detected
15437
+ * address is wrong (multi-homed host, NAT, custom interface).
15438
+ */
15439
+ reachableHost: string().optional()
15133
15440
  });
15134
15441
  var CameraPipelineForAgentSchema = object({
15135
15442
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15177,25 +15484,6 @@ var PipelineAssignmentSchema = object({
15177
15484
  assignedAt: number()
15178
15485
  });
15179
15486
  /**
15180
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15181
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15182
- * → co-located with pipeline → capacity).
15183
- */
15184
- var DecoderAssignmentSchema = object({
15185
- deviceId: number(),
15186
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15187
- decoderNodeId: string(),
15188
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15189
- pinned: boolean(),
15190
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15191
- reason: _enum([
15192
- "manual",
15193
- "co-located",
15194
- "capacity",
15195
- "hardware-affinity"
15196
- ])
15197
- });
15198
- /**
15199
15487
  * Per-agent load summary surfaced to the load balancer + dashboards.
15200
15488
  * Aggregated from each runner's `getLocalLoad` cap call.
15201
15489
  */
@@ -15235,6 +15523,15 @@ var GlobalMetricsSchema = object({
15235
15523
  * capability providers.
15236
15524
  */
15237
15525
  var CapabilityBindingsSchema = record(string(), string());
15526
+ /**
15527
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15528
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15529
+ */
15530
+ var IngestOwnerSchema = object({
15531
+ ownerNodeId: string(),
15532
+ reachableHost: string().optional(),
15533
+ configIssue: string().optional()
15534
+ });
15238
15535
  /** Source block — always present; derives from the stream catalog. */
15239
15536
  var CameraSourceStatusSchema = object({ streams: array(object({
15240
15537
  camStreamId: string(),
@@ -15249,6 +15546,14 @@ var CameraAssignmentStatusSchema = object({
15249
15546
  detectionNodeId: string().nullable(),
15250
15547
  decoderNodeId: string().nullable(),
15251
15548
  audioNodeId: string().nullable(),
15549
+ /**
15550
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15551
+ * hosts the broker/restream) — the cluster ingest owner today
15552
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15553
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15554
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15555
+ */
15556
+ sourceNodeId: string().nullable(),
15252
15557
  pinned: object({
15253
15558
  detection: boolean(),
15254
15559
  decoder: boolean(),
@@ -15381,16 +15686,7 @@ method(object({
15381
15686
  }), object({ success: literal(true) }), {
15382
15687
  kind: "mutation",
15383
15688
  auth: "admin"
15384
- }), method(object({
15385
- deviceId: number(),
15386
- nodeId: string()
15387
- }), _void(), {
15388
- kind: "mutation",
15389
- auth: "admin"
15390
- }), method(object({ deviceId: number() }), _void(), {
15391
- kind: "mutation",
15392
- auth: "admin"
15393
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15689
+ }), method(_void(), IngestOwnerSchema), method(object({
15394
15690
  deviceId: number(),
15395
15691
  nodeId: string()
15396
15692
  }), object({ success: literal(true) }), {
@@ -15411,10 +15707,7 @@ method(object({
15411
15707
  nodeId: string(),
15412
15708
  pinned: boolean(),
15413
15709
  assignedAt: number()
15414
- }))), method(object({
15415
- deviceId: number(),
15416
- pipelineNodeId: string().optional()
15417
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15710
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15418
15711
  nodeId: string(),
15419
15712
  settings: AgentPipelineSettingsSchema
15420
15713
  })).readonly()), method(object({
@@ -15444,12 +15737,26 @@ method(object({
15444
15737
  }), method(object({
15445
15738
  agentNodeId: string(),
15446
15739
  detect: boolean().nullable().optional(),
15447
- decode: boolean().nullable().optional(),
15448
15740
  audio: boolean().nullable().optional(),
15449
15741
  ingest: boolean().nullable().optional()
15450
15742
  }), object({ success: literal(true) }), {
15451
15743
  kind: "mutation",
15452
15744
  auth: "admin"
15745
+ }), method(object({
15746
+ agentNodeId: string(),
15747
+ reachableHost: string().nullable()
15748
+ }), object({ success: literal(true) }), {
15749
+ kind: "mutation",
15750
+ auth: "admin"
15751
+ }), method(object({ agentNodeId: string() }), object({
15752
+ success: literal(true),
15753
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15754
+ effectiveModelId: string().nullable(),
15755
+ /** Number of cameras whose node-scoped overrides were cleared. */
15756
+ clearedCameraOverrides: number()
15757
+ }), {
15758
+ kind: "mutation",
15759
+ auth: "admin"
15453
15760
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15454
15761
  deviceId: number(),
15455
15762
  addonId: string(),
@@ -15494,22 +15801,131 @@ method(object({
15494
15801
  kind: "mutation",
15495
15802
  auth: "admin"
15496
15803
  });
15497
- var RegisteredStreamSchema = object({
15498
- streamId: string(),
15499
- label: string().optional(),
15500
- codec: string(),
15501
- type: _enum(["video", "audio"]),
15502
- sourceUrl: string()
15804
+ /**
15805
+ * server-management — per-NODE singleton capability for a node's ROOT
15806
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15807
+ * agents).
15808
+ *
15809
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15810
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15811
+ * version describes the node. Updates install into
15812
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15813
+ * starter (probation boot + auto-rollback to N-1).
15814
+ *
15815
+ * Providers:
15816
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15817
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15818
+ * unpinned calls.
15819
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15820
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15821
+ * `$hub.registerNode` manifest.
15822
+ *
15823
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15824
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15825
+ * SDK) routes the call to that node's provider via the standard remote
15826
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15827
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15828
+ *
15829
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15830
+ */
15831
+ /**
15832
+ * Where the running hub's code was loaded from:
15833
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15834
+ * plain resolution and runtime updates are refused.
15835
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15836
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15837
+ */
15838
+ var ServerBootModeSchema = _enum([
15839
+ "workspace",
15840
+ "baked",
15841
+ "data-root"
15842
+ ]);
15843
+ /**
15844
+ * Update lifecycle state:
15845
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15846
+ * - `pending-restart` — a version is staged and the node has NOT yet
15847
+ * restarted onto it (still running the OLD version).
15848
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15849
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15850
+ * Apply/rollback are refused in this state and the node must NOT be
15851
+ * manually restarted, or the probation boot auto-rolls-back.
15852
+ */
15853
+ var ServerUpdateStateSchema = _enum([
15854
+ "idle",
15855
+ "checking",
15856
+ "staging",
15857
+ "pending-restart",
15858
+ "awaiting-confirmation"
15859
+ ]);
15860
+ var ServerRollbackInfoSchema = object({
15861
+ /** The version that failed (or was manually rolled back). */
15862
+ fromVersion: string(),
15863
+ /** The version rolled back to; null = the baked seed. */
15864
+ toVersion: string().nullable(),
15865
+ atMs: number(),
15866
+ reason: string()
15503
15867
  });
15504
- var ExposedResourceSchema = object({
15505
- streamId: string(),
15506
- format: string(),
15507
- value: string()
15868
+ var ServerPackageStatusSchema = object({
15869
+ /** Root package name (`@camstack/server` on the hub). */
15870
+ packageName: string(),
15871
+ /** Version of the code the running process ACTUALLY loaded. */
15872
+ runningVersion: string().nullable(),
15873
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15874
+ nodeRuntimeVersion: string().nullable(),
15875
+ /** Active data-dir root version; null when booted from seed/workspace. */
15876
+ activeVersion: string().nullable(),
15877
+ /** N-1 version kept for rollback; null when no previous version exists. */
15878
+ previousVersion: string().nullable(),
15879
+ /** Version of the immutable baked seed closure (image fallback). */
15880
+ seedVersion: string().nullable(),
15881
+ /** Latest registry version from the most recent check (null = never checked). */
15882
+ latestVersion: string().nullable(),
15883
+ updateAvailable: boolean(),
15884
+ bootMode: ServerBootModeSchema,
15885
+ updateState: ServerUpdateStateSchema,
15886
+ /** Version staged + awaiting its probation boot, when one is pending. */
15887
+ pendingVersion: string().nullable(),
15888
+ /** Set when the last freshly-activated version failed its boot health-check. */
15889
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15890
+ /**
15891
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15892
+ * hub is running from the baked seed (or workspace) while installed data-dir
15893
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15894
+ */
15895
+ stateFileCorrupt: boolean(),
15896
+ lastCheckedAtMs: number().nullable()
15897
+ });
15898
+ var ServerUpdateCheckResultSchema = object({
15899
+ packageName: string(),
15900
+ runningVersion: string().nullable(),
15901
+ latestVersion: string().nullable(),
15902
+ updateAvailable: boolean(),
15903
+ checkedAtMs: number(),
15904
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15905
+ error: string().nullable()
15906
+ });
15907
+ var ServerUpdateActionResultSchema = object({
15908
+ accepted: boolean(),
15909
+ targetVersion: string().nullable(),
15910
+ /** True when a graceful restart was scheduled to apply the change. */
15911
+ restarting: boolean(),
15912
+ message: string()
15913
+ });
15914
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15915
+ kind: "mutation",
15916
+ auth: "admin"
15917
+ }), method(object({
15918
+ /** Explicit target version; omitted = latest from the registry. */
15919
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15920
+ kind: "mutation",
15921
+ auth: "admin"
15922
+ }), method(_void(), ServerUpdateActionResultSchema, {
15923
+ kind: "mutation",
15924
+ auth: "admin"
15925
+ }), method(_void(), ServerUpdateActionResultSchema, {
15926
+ kind: "mutation",
15927
+ auth: "admin"
15508
15928
  });
15509
- method(object({
15510
- deviceId: number(),
15511
- streams: array(RegisteredStreamSchema).readonly()
15512
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15513
15929
  /**
15514
15930
  * Query filter for settings-store collections.
15515
15931
  */
@@ -15662,9 +16078,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15662
16078
  /**
15663
16079
  * A single device snapshot returned as base64 JPEG/PNG.
15664
16080
  *
15665
- * Shared with the `snapshot-provider` collection cap the orchestrator
15666
- * receives the same shape from each native provider and from the
15667
- * broker-based fallback.
16081
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16082
+ * the device-native provider (onboard capture) or from the stream-broker
16083
+ * prebuffer fallback.
15668
16084
  */
15669
16085
  var SnapshotImageSchema = object({
15670
16086
  base64: string(),
@@ -15695,11 +16111,12 @@ DeviceType.Camera, method(object({
15695
16111
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15696
16112
  kind: "mutation",
15697
16113
  auth: "admin"
15698
- });
15699
- method(object({ deviceId: number() }), boolean()), method(object({
16114
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15700
16115
  deviceId: number(),
15701
- streamId: string().optional()
15702
- }), SnapshotImageSchema.nullable());
16116
+ lastCapturedAt: number().nullable(),
16117
+ cacheAgeMs: number().nullable(),
16118
+ etag: string().nullable()
16119
+ })));
15703
16120
  /**
15704
16121
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15705
16122
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -15950,10 +16367,32 @@ method(_void(), array(TurnServerSchema).readonly());
15950
16367
  * b. `finishAuthentication({userId, response})` → server verifies
15951
16368
  * the assertion, bumps the credential counter, returns ok.
15952
16369
  *
16370
+ * 2b. Usernameless (discoverable-credential) authentication — the
16371
+ * passkey IS the primary factor, no password leg:
16372
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16373
+ * EMPTY `allowCredentials` (the browser offers every resident
16374
+ * passkey it holds for this RP) + `userVerification: 'required'`
16375
+ * (the passkey replaces both factors, so UV is mandatory).
16376
+ * The challenge is stored server-side, NOT bound to any user.
16377
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16378
+ * resolves the credential by the response's credential id,
16379
+ * verifies the assertion against the stored challenge + that
16380
+ * credential's public key/counter, and returns the OWNING
16381
+ * `userId` — the caller (core auth router) mints the session.
16382
+ *
15953
16383
  * 3. Management:
15954
16384
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
15955
16385
  * - `removePasskey({userId, credentialId})` — revoke one credential.
15956
16386
  *
16387
+ * 4. Second-factor preference (opt-in, default OFF):
16388
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16389
+ * demanded as a second factor after a password login ONLY when the
16390
+ * user explicitly opts in via `setSecondFactorPreference`.
16391
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16392
+ * row ⇒ `enabled: false`).
16393
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16394
+ * the providing addon beside its credentials.
16395
+ *
15957
16396
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
15958
16397
  * the admin-ui composes the begin/finish round-trip and never exposes
15959
16398
  * the cap to non-admins.
@@ -15996,6 +16435,17 @@ method(object({
15996
16435
  }), object({ verified: boolean() }), {
15997
16436
  kind: "mutation",
15998
16437
  access: "view"
16438
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16439
+ kind: "mutation",
16440
+ access: "view"
16441
+ }), method(object({
16442
+ /** AuthenticationResponseJSON from the browser. */
16443
+ response: record(string(), unknown()) }), object({
16444
+ verified: boolean(),
16445
+ userId: string().nullable()
16446
+ }), {
16447
+ kind: "mutation",
16448
+ access: "view"
15999
16449
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16000
16450
  userId: string(),
16001
16451
  credentialId: string()
@@ -16003,6 +16453,13 @@ method(object({
16003
16453
  kind: "mutation",
16004
16454
  auth: "admin",
16005
16455
  access: "delete"
16456
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16457
+ userId: string(),
16458
+ enabled: boolean()
16459
+ }), object({ success: literal(true) }), {
16460
+ kind: "mutation",
16461
+ auth: "admin",
16462
+ access: "create"
16006
16463
  });
16007
16464
  /**
16008
16465
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16060,9 +16517,10 @@ method(object({
16060
16517
  auth: "admin"
16061
16518
  });
16062
16519
  /**
16063
- * Optional client-side hints sent at session creation to help the
16064
- * provider pick the best native source. All fields are optional —
16065
- * a viewer that knows nothing still gets a sane default.
16520
+ * Optional client-side hints sent at session creation to help the provider
16521
+ * pick the best native source. All fields optional — a viewer that knows
16522
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16523
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16066
16524
  */
16067
16525
  var webrtcClientHintsSchema = object({
16068
16526
  viewportWidth: number().int().positive().optional(),
@@ -16073,22 +16531,6 @@ var webrtcClientHintsSchema = object({
16073
16531
  /** Hard tier override; takes precedence over scoring when registered. */
16074
16532
  prefersTier: string().optional()
16075
16533
  }).partial();
16076
- method(object({
16077
- streamId: string(),
16078
- sdpOffer: string()
16079
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16080
- streamId: string(),
16081
- codec: string()
16082
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16083
- streamId: string(),
16084
- hints: webrtcClientHintsSchema.optional()
16085
- }), object({
16086
- sessionId: string(),
16087
- sdpOffer: string()
16088
- }), { kind: "mutation" }), method(object({
16089
- sessionId: string(),
16090
- sdpAnswer: string()
16091
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16092
16534
  /**
16093
16535
  * Discriminated target for a WebRTC session. The client sends this
16094
16536
  * structured object instead of building / parsing brokerId strings;
@@ -16819,7 +17261,17 @@ var FaceInfoSchema = object({
16819
17261
  recognizedIdentityId: string().optional(),
16820
17262
  identityName: string().optional(),
16821
17263
  assigned: boolean(),
16822
- base64: string().optional()
17264
+ base64: string().optional(),
17265
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17266
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17267
+ * legacy rows written before design B. */
17268
+ faceBbox: BoundingBoxSchema.optional(),
17269
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17270
+ * Fetch the native JPEG via the event-media data-plane
17271
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17272
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17273
+ * back to the inline `base64` face crop. */
17274
+ keyFrameMediaKey: string().optional()
16823
17275
  });
16824
17276
  var FaceFilterEnum = _enum([
16825
17277
  "unassigned",
@@ -17577,6 +18029,16 @@ var TopologyCategorySchema = object({
17577
18029
  healthy: number(),
17578
18030
  addons: array(TopologyCategoryAddonSchema).readonly()
17579
18031
  });
18032
+ /**
18033
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18034
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18035
+ * version visibility for the Server management surface. Nullable: offline
18036
+ * rows and pre-phase-2 nodes report none.
18037
+ */
18038
+ var TopologyRootPackageSchema = object({
18039
+ name: string(),
18040
+ version: string()
18041
+ });
17580
18042
  var TopologyNodeSchema = object({
17581
18043
  id: string(),
17582
18044
  name: string(),
@@ -17600,7 +18062,8 @@ var TopologyNodeSchema = object({
17600
18062
  status: string()
17601
18063
  })).readonly(),
17602
18064
  processes: array(TopologyProcessSchema).readonly(),
17603
- categories: array(TopologyCategorySchema).readonly()
18065
+ categories: array(TopologyCategorySchema).readonly(),
18066
+ rootPackage: TopologyRootPackageSchema.nullable()
17604
18067
  });
17605
18068
  var CapUsageEdgeSchema = object({
17606
18069
  callerAddonId: string(),
@@ -20400,6 +20863,12 @@ Object.freeze({
20400
20863
  addonId: null,
20401
20864
  access: "create"
20402
20865
  },
20866
+ "loginMethod.getLoginMethods": {
20867
+ capName: "login-method",
20868
+ capScope: "system",
20869
+ addonId: null,
20870
+ access: "view"
20871
+ },
20403
20872
  "mediaPlayer.next": {
20404
20873
  capName: "media-player",
20405
20874
  capScope: "device",
@@ -20982,6 +21451,12 @@ Object.freeze({
20982
21451
  addonId: null,
20983
21452
  access: "view"
20984
21453
  },
21454
+ "pipelineAnalytics.getKeyEvents": {
21455
+ capName: "pipeline-analytics",
21456
+ capScope: "device",
21457
+ addonId: null,
21458
+ access: "view"
21459
+ },
20985
21460
  "pipelineAnalytics.getMotionEvents": {
20986
21461
  capName: "pipeline-analytics",
20987
21462
  capScope: "device",
@@ -21030,23 +21505,23 @@ Object.freeze({
21030
21505
  addonId: null,
21031
21506
  access: "create"
21032
21507
  },
21033
- "pipelineExecutor.deleteModel": {
21508
+ "pipelineExecutor.clearDeviceOverrides": {
21034
21509
  capName: "pipeline-executor",
21035
21510
  capScope: "system",
21036
21511
  addonId: null,
21037
21512
  access: "delete"
21038
21513
  },
21039
- "pipelineExecutor.deleteTemplate": {
21514
+ "pipelineExecutor.deleteModel": {
21040
21515
  capName: "pipeline-executor",
21041
21516
  capScope: "system",
21042
21517
  addonId: null,
21043
21518
  access: "delete"
21044
21519
  },
21045
- "pipelineExecutor.detect": {
21520
+ "pipelineExecutor.deleteTemplate": {
21046
21521
  capName: "pipeline-executor",
21047
21522
  capScope: "system",
21048
21523
  addonId: null,
21049
- access: "view"
21524
+ access: "delete"
21050
21525
  },
21051
21526
  "pipelineExecutor.downloadModel": {
21052
21527
  capName: "pipeline-executor",
@@ -21240,13 +21715,13 @@ Object.freeze({
21240
21715
  addonId: null,
21241
21716
  access: "create"
21242
21717
  },
21243
- "pipelineOrchestrator.assignAudio": {
21244
- capName: "pipeline-orchestrator",
21718
+ "pipelineExecutor.validatePipeline": {
21719
+ capName: "pipeline-executor",
21245
21720
  capScope: "system",
21246
21721
  addonId: null,
21247
- access: "create"
21722
+ access: "view"
21248
21723
  },
21249
- "pipelineOrchestrator.assignDecoder": {
21724
+ "pipelineOrchestrator.assignAudio": {
21250
21725
  capName: "pipeline-orchestrator",
21251
21726
  capScope: "system",
21252
21727
  addonId: null,
@@ -21330,19 +21805,13 @@ Object.freeze({
21330
21805
  addonId: null,
21331
21806
  access: "view"
21332
21807
  },
21333
- "pipelineOrchestrator.getDecoderAssignment": {
21808
+ "pipelineOrchestrator.getGlobalMetrics": {
21334
21809
  capName: "pipeline-orchestrator",
21335
21810
  capScope: "system",
21336
21811
  addonId: null,
21337
21812
  access: "view"
21338
21813
  },
21339
- "pipelineOrchestrator.getDecoderAssignments": {
21340
- capName: "pipeline-orchestrator",
21341
- capScope: "system",
21342
- addonId: null,
21343
- access: "view"
21344
- },
21345
- "pipelineOrchestrator.getGlobalMetrics": {
21814
+ "pipelineOrchestrator.getIngestOwner": {
21346
21815
  capName: "pipeline-orchestrator",
21347
21816
  capScope: "system",
21348
21817
  addonId: null,
@@ -21384,6 +21853,12 @@ Object.freeze({
21384
21853
  addonId: null,
21385
21854
  access: "delete"
21386
21855
  },
21856
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21857
+ capName: "pipeline-orchestrator",
21858
+ capScope: "system",
21859
+ addonId: null,
21860
+ access: "delete"
21861
+ },
21387
21862
  "pipelineOrchestrator.resolvePipeline": {
21388
21863
  capName: "pipeline-orchestrator",
21389
21864
  capScope: "system",
@@ -21420,37 +21895,37 @@ Object.freeze({
21420
21895
  addonId: null,
21421
21896
  access: "create"
21422
21897
  },
21423
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21898
+ "pipelineOrchestrator.setAgentReachableHost": {
21424
21899
  capName: "pipeline-orchestrator",
21425
21900
  capScope: "system",
21426
21901
  addonId: null,
21427
21902
  access: "create"
21428
21903
  },
21429
- "pipelineOrchestrator.setCameraStepOverride": {
21904
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21430
21905
  capName: "pipeline-orchestrator",
21431
21906
  capScope: "system",
21432
21907
  addonId: null,
21433
21908
  access: "create"
21434
21909
  },
21435
- "pipelineOrchestrator.setCameraStepToggle": {
21910
+ "pipelineOrchestrator.setCameraStepOverride": {
21436
21911
  capName: "pipeline-orchestrator",
21437
21912
  capScope: "system",
21438
21913
  addonId: null,
21439
21914
  access: "create"
21440
21915
  },
21441
- "pipelineOrchestrator.setCapabilityBinding": {
21916
+ "pipelineOrchestrator.setCameraStepToggle": {
21442
21917
  capName: "pipeline-orchestrator",
21443
21918
  capScope: "system",
21444
21919
  addonId: null,
21445
21920
  access: "create"
21446
21921
  },
21447
- "pipelineOrchestrator.unassignAudio": {
21922
+ "pipelineOrchestrator.setCapabilityBinding": {
21448
21923
  capName: "pipeline-orchestrator",
21449
21924
  capScope: "system",
21450
21925
  addonId: null,
21451
21926
  access: "create"
21452
21927
  },
21453
- "pipelineOrchestrator.unassignDecoder": {
21928
+ "pipelineOrchestrator.unassignAudio": {
21454
21929
  capName: "pipeline-orchestrator",
21455
21930
  capScope: "system",
21456
21931
  addonId: null,
@@ -21510,12 +21985,24 @@ Object.freeze({
21510
21985
  addonId: null,
21511
21986
  access: "view"
21512
21987
  },
21988
+ "pipelineRunner.getNativeCrop": {
21989
+ capName: "pipeline-runner",
21990
+ capScope: "system",
21991
+ addonId: null,
21992
+ access: "view"
21993
+ },
21513
21994
  "pipelineRunner.reportMotion": {
21514
21995
  capName: "pipeline-runner",
21515
21996
  capScope: "system",
21516
21997
  addonId: null,
21517
21998
  access: "create"
21518
21999
  },
22000
+ "pipelineRunner.runDetailSubtree": {
22001
+ capName: "pipeline-runner",
22002
+ capScope: "system",
22003
+ addonId: null,
22004
+ access: "create"
22005
+ },
21519
22006
  "plateGallery.correctPlateText": {
21520
22007
  capName: "plate-gallery",
21521
22008
  capScope: "system",
@@ -21750,33 +22237,45 @@ Object.freeze({
21750
22237
  addonId: null,
21751
22238
  access: "create"
21752
22239
  },
21753
- "restreamer.getExposedResources": {
21754
- capName: "restreamer",
22240
+ "scriptRunner.run": {
22241
+ capName: "script-runner",
22242
+ capScope: "device",
22243
+ addonId: null,
22244
+ access: "create"
22245
+ },
22246
+ "scriptRunner.stop": {
22247
+ capName: "script-runner",
22248
+ capScope: "device",
22249
+ addonId: null,
22250
+ access: "create"
22251
+ },
22252
+ "serverManagement.applyServerUpdate": {
22253
+ capName: "server-management",
21755
22254
  capScope: "system",
21756
22255
  addonId: null,
21757
- access: "view"
22256
+ access: "create"
21758
22257
  },
21759
- "restreamer.registerDevice": {
21760
- capName: "restreamer",
22258
+ "serverManagement.checkServerUpdate": {
22259
+ capName: "server-management",
21761
22260
  capScope: "system",
21762
22261
  addonId: null,
21763
22262
  access: "create"
21764
22263
  },
21765
- "restreamer.unregisterDevice": {
21766
- capName: "restreamer",
22264
+ "serverManagement.getServerPackageStatus": {
22265
+ capName: "server-management",
21767
22266
  capScope: "system",
21768
22267
  addonId: null,
21769
- access: "delete"
22268
+ access: "view"
21770
22269
  },
21771
- "scriptRunner.run": {
21772
- capName: "script-runner",
21773
- capScope: "device",
22270
+ "serverManagement.restartServer": {
22271
+ capName: "server-management",
22272
+ capScope: "system",
21774
22273
  addonId: null,
21775
22274
  access: "create"
21776
22275
  },
21777
- "scriptRunner.stop": {
21778
- capName: "script-runner",
21779
- capScope: "device",
22276
+ "serverManagement.rollbackServerUpdate": {
22277
+ capName: "server-management",
22278
+ capScope: "system",
21780
22279
  addonId: null,
21781
22280
  access: "create"
21782
22281
  },
@@ -21864,23 +22363,17 @@ Object.freeze({
21864
22363
  addonId: null,
21865
22364
  access: "view"
21866
22365
  },
21867
- "snapshot.invalidateCache": {
22366
+ "snapshot.getSnapshotOverview": {
21868
22367
  capName: "snapshot",
21869
22368
  capScope: "device",
21870
22369
  addonId: null,
21871
- access: "create"
21872
- },
21873
- "snapshotProvider.getSnapshot": {
21874
- capName: "snapshot-provider",
21875
- capScope: "system",
21876
- addonId: null,
21877
22370
  access: "view"
21878
22371
  },
21879
- "snapshotProvider.supportsDevice": {
21880
- capName: "snapshot-provider",
21881
- capScope: "system",
22372
+ "snapshot.invalidateCache": {
22373
+ capName: "snapshot",
22374
+ capScope: "device",
21882
22375
  addonId: null,
21883
- access: "view"
22376
+ access: "create"
21884
22377
  },
21885
22378
  "ssoBridge.signBridgeToken": {
21886
22379
  capName: "sso-bridge",
@@ -22308,30 +22801,6 @@ Object.freeze({
22308
22801
  addonId: null,
22309
22802
  access: "view"
22310
22803
  },
22311
- "streamingEngine.getStreamUrl": {
22312
- capName: "streaming-engine",
22313
- capScope: "system",
22314
- addonId: null,
22315
- access: "view"
22316
- },
22317
- "streamingEngine.listStreams": {
22318
- capName: "streaming-engine",
22319
- capScope: "system",
22320
- addonId: null,
22321
- access: "view"
22322
- },
22323
- "streamingEngine.registerStream": {
22324
- capName: "streaming-engine",
22325
- capScope: "system",
22326
- addonId: null,
22327
- access: "create"
22328
- },
22329
- "streamingEngine.unregisterStream": {
22330
- capName: "streaming-engine",
22331
- capScope: "system",
22332
- addonId: null,
22333
- access: "delete"
22334
- },
22335
22804
  "streamParams.getConfigSchema": {
22336
22805
  capName: "stream-params",
22337
22806
  capScope: "device",
@@ -22578,6 +23047,12 @@ Object.freeze({
22578
23047
  addonId: null,
22579
23048
  access: "view"
22580
23049
  },
23050
+ "userPasskeys.beginDiscoverableAuthentication": {
23051
+ capName: "user-passkeys",
23052
+ capScope: "system",
23053
+ addonId: null,
23054
+ access: "view"
23055
+ },
22581
23056
  "userPasskeys.beginRegistration": {
22582
23057
  capName: "user-passkeys",
22583
23058
  capScope: "system",
@@ -22590,12 +23065,24 @@ Object.freeze({
22590
23065
  addonId: null,
22591
23066
  access: "view"
22592
23067
  },
23068
+ "userPasskeys.finishDiscoverableAuthentication": {
23069
+ capName: "user-passkeys",
23070
+ capScope: "system",
23071
+ addonId: null,
23072
+ access: "view"
23073
+ },
22593
23074
  "userPasskeys.finishRegistration": {
22594
23075
  capName: "user-passkeys",
22595
23076
  capScope: "system",
22596
23077
  addonId: null,
22597
23078
  access: "create"
22598
23079
  },
23080
+ "userPasskeys.getSecondFactorPreference": {
23081
+ capName: "user-passkeys",
23082
+ capScope: "system",
23083
+ addonId: null,
23084
+ access: "view"
23085
+ },
22599
23086
  "userPasskeys.listPasskeys": {
22600
23087
  capName: "user-passkeys",
22601
23088
  capScope: "system",
@@ -22608,6 +23095,12 @@ Object.freeze({
22608
23095
  addonId: null,
22609
23096
  access: "delete"
22610
23097
  },
23098
+ "userPasskeys.setSecondFactorPreference": {
23099
+ capName: "user-passkeys",
23100
+ capScope: "system",
23101
+ addonId: null,
23102
+ access: "create"
23103
+ },
22611
23104
  "vacuumControl.locate": {
22612
23105
  capName: "vacuum-control",
22613
23106
  capScope: "device",
@@ -22680,6 +23173,18 @@ Object.freeze({
22680
23173
  addonId: null,
22681
23174
  access: "view"
22682
23175
  },
23176
+ "viewerUi.getStaticDir": {
23177
+ capName: "viewer-ui",
23178
+ capScope: "system",
23179
+ addonId: null,
23180
+ access: "view"
23181
+ },
23182
+ "viewerUi.getVersion": {
23183
+ capName: "viewer-ui",
23184
+ capScope: "system",
23185
+ addonId: null,
23186
+ access: "view"
23187
+ },
22683
23188
  "waterHeater.setAway": {
22684
23189
  capName: "water-heater",
22685
23190
  capScope: "device",
@@ -22698,54 +23203,6 @@ Object.freeze({
22698
23203
  addonId: null,
22699
23204
  access: "create"
22700
23205
  },
22701
- "webrtc.closeSession": {
22702
- capName: "webrtc",
22703
- capScope: "system",
22704
- addonId: null,
22705
- access: "create"
22706
- },
22707
- "webrtc.createSession": {
22708
- capName: "webrtc",
22709
- capScope: "system",
22710
- addonId: null,
22711
- access: "create"
22712
- },
22713
- "webrtc.handleAnswer": {
22714
- capName: "webrtc",
22715
- capScope: "system",
22716
- addonId: null,
22717
- access: "create"
22718
- },
22719
- "webrtc.handleOffer": {
22720
- capName: "webrtc",
22721
- capScope: "system",
22722
- addonId: null,
22723
- access: "create"
22724
- },
22725
- "webrtc.hasAdaptiveBitrate": {
22726
- capName: "webrtc",
22727
- capScope: "system",
22728
- addonId: null,
22729
- access: "view"
22730
- },
22731
- "webrtc.registerStream": {
22732
- capName: "webrtc",
22733
- capScope: "system",
22734
- addonId: null,
22735
- access: "create"
22736
- },
22737
- "webrtc.supportsStream": {
22738
- capName: "webrtc",
22739
- capScope: "system",
22740
- addonId: null,
22741
- access: "view"
22742
- },
22743
- "webrtc.unregisterStream": {
22744
- capName: "webrtc",
22745
- capScope: "system",
22746
- addonId: null,
22747
- access: "delete"
22748
- },
22749
23206
  "webrtcSession.addIceCandidate": {
22750
23207
  capName: "webrtc-session",
22751
23208
  capScope: "device",