@camstack/addon-export-ha-mqtt 1.1.18 → 1.1.20

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.
@@ -4677,7 +4677,7 @@ function number(params) {
4677
4677
  return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
4678
4678
  }
4679
4679
  //#endregion
4680
- //#region ../types/dist/sleep-CZDdRBua.mjs
4680
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4681
4681
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4682
4682
  EventCategory["SystemBoot"] = "system.boot";
4683
4683
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4863,6 +4863,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4863
4863
  */
4864
4864
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4865
4865
  /**
4866
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4867
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4868
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4869
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4870
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4871
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4872
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4873
+ * topology change, so a dropped event self-heals on the next one (plus the
4874
+ * broker's long backstop reconcile query).
4875
+ */
4876
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4877
+ /**
4866
4878
  * Periodic snapshot of per-node pipeline-runner load
4867
4879
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4868
4880
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5386,10 +5398,6 @@ function hydrateField(field, values) {
5386
5398
  };
5387
5399
  }
5388
5400
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5389
- if (field.type === "password") return {
5390
- ...field,
5391
- value: ""
5392
- };
5393
5401
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5394
5402
  return {
5395
5403
  ...field,
@@ -6773,6 +6781,21 @@ function method(input, output, options) {
6773
6781
  timeoutMs: options?.timeoutMs
6774
6782
  };
6775
6783
  }
6784
+ /**
6785
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6786
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6787
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6788
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6789
+ */
6790
+ function systemMethod(input, output, options) {
6791
+ return {
6792
+ ...method(input, output, options),
6793
+ systemOnly: true
6794
+ };
6795
+ }
6796
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6797
+ var VersionOutputSchema$1 = object({ version: string() });
6798
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6776
6799
  var StaticDirOutputSchema = object({ staticDir: string() });
6777
6800
  var VersionOutputSchema = object({ version: string() });
6778
6801
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6942,6 +6965,36 @@ var ModelFormatsSchema = object({
6942
6965
  tflite: ModelFormatEntrySchema.optional(),
6943
6966
  pt: ModelFormatEntrySchema.optional()
6944
6967
  });
6968
+ /**
6969
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6970
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6971
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6972
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6973
+ * resolution/download/persistence; this is a presentation overlay resolved back
6974
+ * to an `id`.
6975
+ */
6976
+ var ModelVariantGroupSchema = object({
6977
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6978
+ family: string(),
6979
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6980
+ tier: string(),
6981
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6982
+ precision: _enum(["fp32", "int8"]).optional(),
6983
+ /**
6984
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6985
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6986
+ * future performance variants plug into.
6987
+ */
6988
+ optimization: _enum(["standard", "fast"]).optional(),
6989
+ /**
6990
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6991
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6992
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6993
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6994
+ * the group so the selector can offer it as a variant axis.
6995
+ */
6996
+ resolution: number$1().int().positive().optional()
6997
+ });
6945
6998
  var ModelCatalogEntrySchema = object({
6946
6999
  id: string(),
6947
7000
  name: string(),
@@ -6971,7 +7024,43 @@ var ModelCatalogEntrySchema = object({
6971
7024
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6972
7025
  * Downloaded into the same modelsDir alongside the model file.
6973
7026
  */
6974
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7027
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7028
+ /**
7029
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7030
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7031
+ * model list and excluded from the auto format-default pick. Set on the
7032
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7033
+ * the active lineup stays the coherent curated ladder without deleting a
7034
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7035
+ * an explicit legacy id that has a build for the node's format.
7036
+ */
7037
+ legacy: boolean().optional(),
7038
+ /**
7039
+ * Measured quality/latency metadata — populated from the benchmark addon on
7040
+ * the real node classes. Absent = not yet measured (most entries today; the
7041
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7042
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7043
+ */
7044
+ metrics: object({
7045
+ map50: number$1().optional(),
7046
+ p95LatencyMs: record(string(), number$1()).optional()
7047
+ }).optional(),
7048
+ /**
7049
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7050
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7051
+ * the retraining addon and any future commercial distribution.
7052
+ */
7053
+ license: string().optional(),
7054
+ /**
7055
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7056
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7057
+ * of a family's sizes and quantizations collapse into one grouped picker
7058
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7059
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7060
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7061
+ * is a presentation overlay resolved back to an `id`.
7062
+ */
7063
+ group: ModelVariantGroupSchema.optional()
6975
7064
  });
6976
7065
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6977
7066
  format: literal("openvino"),
@@ -7032,8 +7121,8 @@ var RecordingModeSchema = _enum([
7032
7121
  "onAudioThreshold"
7033
7122
  ]);
7034
7123
  /**
7035
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7036
- * reads directly (never inferred from `rules`):
7124
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7125
+ * UI reads directly (never inferred from `rules`):
7037
7126
  * - `off` — not recording.
7038
7127
  * - `events` — record only around triggers (motion / audio threshold),
7039
7128
  * with pre/post-buffer.
@@ -8681,26 +8770,13 @@ DeviceType.Light, method(object({
8681
8770
  percentage: number$1().min(0).max(100),
8682
8771
  lastChangedAt: number$1()
8683
8772
  });
8773
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8684
8774
  var StreamFormatSchema = _enum([
8685
8775
  "webrtc",
8686
8776
  "hls",
8687
8777
  "mjpeg",
8688
8778
  "rtsp"
8689
8779
  ]);
8690
- var StreamInfoSchema = object({
8691
- streamId: string(),
8692
- format: StreamFormatSchema,
8693
- url: string().nullable(),
8694
- active: boolean()
8695
- });
8696
- method(object({
8697
- streamId: string(),
8698
- sourceUrl: string(),
8699
- codec: string().optional()
8700
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8701
- streamId: string(),
8702
- format: StreamFormatSchema
8703
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8704
8780
  var RtspRestreamEntrySchema = object({
8705
8781
  brokerId: string(),
8706
8782
  url: string(),
@@ -9365,7 +9441,7 @@ var ConsumablesStatusSchema = object({
9365
9441
  })),
9366
9442
  lastChangedAt: number$1()
9367
9443
  });
9368
- 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({
9444
+ Object.values(DeviceType), method(object({
9369
9445
  deviceId: number$1().int().nonnegative(),
9370
9446
  key: string().min(1)
9371
9447
  }), _void(), {
@@ -10280,7 +10356,7 @@ var BoundingBoxSchema = object({
10280
10356
  w: number$1(),
10281
10357
  h: number$1()
10282
10358
  });
10283
- var SpatialDetectionSchema = object({
10359
+ object({
10284
10360
  class: string(),
10285
10361
  originalClass: string(),
10286
10362
  score: number$1(),
@@ -10415,7 +10491,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10415
10491
  enabled: boolean(),
10416
10492
  modelId: string(),
10417
10493
  children: array(PipelineDefaultStepSchema).readonly(),
10418
- engine: PipelineEngineChoiceSchema.optional(),
10419
10494
  group: string().optional(),
10420
10495
  settings: record(string(), unknown()).optional()
10421
10496
  }));
@@ -10440,7 +10515,9 @@ var PipelineModelOptionSchema = object({
10440
10515
  formats: record(string(), object({
10441
10516
  downloaded: boolean(),
10442
10517
  sizeMB: number$1()
10443
- }))
10518
+ })),
10519
+ group: ModelVariantGroupSchema.optional(),
10520
+ legacy: boolean().optional()
10444
10521
  });
10445
10522
  var ConfigFieldBridge = custom();
10446
10523
  var PipelineAddonSchemaSchema = object({
@@ -10454,6 +10531,7 @@ var PipelineAddonSchemaSchema = object({
10454
10531
  defaultModelId: string(),
10455
10532
  defaultModelIdByFormat: record(string(), string()).optional(),
10456
10533
  enabledByDefault: boolean().optional(),
10534
+ backfillIntoExistingOverrides: boolean().optional(),
10457
10535
  defaultConfidence: number$1(),
10458
10536
  group: string().optional(),
10459
10537
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10470,11 +10548,6 @@ var PipelineSchemaSchema = object({
10470
10548
  selectedEngine: PipelineEngineChoiceSchema,
10471
10549
  slots: array(PipelineSlotSchemaSchema).readonly()
10472
10550
  });
10473
- var DetectorOutputSchema = object({
10474
- detections: array(SpatialDetectionSchema).readonly(),
10475
- inferenceMs: number$1(),
10476
- modelId: string()
10477
- });
10478
10551
  var EngineProvisioningSchema = object({
10479
10552
  runtimeId: _enum([
10480
10553
  "onnx",
@@ -10491,15 +10564,42 @@ var EngineProvisioningSchema = object({
10491
10564
  ]),
10492
10565
  progress: number$1().optional(),
10493
10566
  error: string().optional(),
10494
- nextRetryAt: number$1().optional()
10567
+ nextRetryAt: number$1().optional(),
10568
+ /**
10569
+ * Gate A (config-correctness gate at engine change): human-readable
10570
+ * config issues surfaced EAGERLY when the node's engine changes — model
10571
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10572
+ * has a <format> build"). Additive/optional: informational only, never
10573
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10574
+ * Absent/empty when the node-default tree resolves cleanly.
10575
+ */
10576
+ configIssues: array(string()).optional()
10495
10577
  });
10496
10578
  var PipelineStepInputSchema = lazy(() => object({
10497
10579
  addonId: string(),
10498
- modelId: string(),
10580
+ modelId: string().optional(),
10499
10581
  enabled: boolean().default(true),
10500
10582
  children: array(PipelineStepInputSchema).optional(),
10501
10583
  settings: record(string(), unknown()).optional()
10502
10584
  }));
10585
+ var ModelSubstitutionSchema = object({
10586
+ addonId: string(),
10587
+ chosen: string(),
10588
+ running: string(),
10589
+ format: string()
10590
+ });
10591
+ var PipelineValidationIssueSchema = object({
10592
+ addonId: string(),
10593
+ kind: _enum(["unknown-addon", "no-format-build"]),
10594
+ detail: string()
10595
+ });
10596
+ var PipelineValidationResultSchema = object({
10597
+ ok: boolean(),
10598
+ issues: array(PipelineValidationIssueSchema).readonly(),
10599
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10600
+ /** The node's `currentEngine.format` this validation ran against. */
10601
+ format: string()
10602
+ });
10503
10603
  var ReferenceImageEntrySchema = object({
10504
10604
  filename: string(),
10505
10605
  stepIds: array(string()).readonly().optional()
@@ -10570,7 +10670,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10570
10670
  })) }), object({ success: literal(true) }), {
10571
10671
  kind: "mutation",
10572
10672
  auth: "admin"
10573
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10673
+ }), method(object({ nodeId: string() }), object({
10674
+ success: literal(true),
10675
+ clearedDevices: number$1()
10676
+ }), {
10677
+ kind: "mutation",
10678
+ auth: "admin"
10679
+ }), 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({
10574
10680
  name: string(),
10575
10681
  steps: array(PipelineTemplateStepSchema).readonly(),
10576
10682
  engine: PipelineEngineChoiceSchema
@@ -10587,10 +10693,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10587
10693
  modelId: string(),
10588
10694
  format: ModelFormatSchema$1
10589
10695
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10590
- addonId: string(),
10591
- frame: FrameInputSchema,
10592
- config: record(string(), unknown()).optional()
10593
- }), DetectorOutputSchema), method(object({
10594
10696
  engine: PipelineEngineChoiceSchema.optional(),
10595
10697
  steps: array(PipelineStepInputSchema).min(1),
10596
10698
  frame: FrameInputSchema.optional(),
@@ -10736,6 +10838,25 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(ZoneSchema).re
10736
10838
  auth: "admin"
10737
10839
  }), object({ zones: array(ZoneSchema).readonly() });
10738
10840
  /**
10841
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10842
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10843
+ * so the caller supplies only the detection-res bbox divided by the detection
10844
+ * dims — no native resolution to plumb.
10845
+ */
10846
+ var NativeCropBboxSchema = object({
10847
+ x: number$1(),
10848
+ y: number$1(),
10849
+ w: number$1(),
10850
+ h: number$1()
10851
+ });
10852
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10853
+ var NativeCropResultSchema = object({
10854
+ /** Packed rgb (24-bit) pixels of the crop. */
10855
+ bytes: _instanceof(Uint8Array),
10856
+ width: number$1().int().positive(),
10857
+ height: number$1().int().positive()
10858
+ });
10859
+ /**
10739
10860
  * Per-camera tunable ranges + defaults. Single source of truth used
10740
10861
  * by both the Zod data schema (validation + default fallback) and
10741
10862
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10830,6 +10951,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10830
10951
  kind: literal("remote-restream"),
10831
10952
  /** The camera's source-owner node (slice 1: always the hub). */
10832
10953
  ownerNodeId: string(),
10954
+ /**
10955
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10956
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10957
+ * dials THIS host for the owner's restream, in preference to the
10958
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10959
+ */
10960
+ ownerReachableHost: string().optional(),
10833
10961
  /** Operator override for the owner host the runner dials. */
10834
10962
  hubHostnameOverride: string().optional()
10835
10963
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10838,13 +10966,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10838
10966
  * specific runner instance via `attachCamera`. Carries everything the
10839
10967
  * runner needs to subscribe to the local broker and execute inference.
10840
10968
  *
10841
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10842
- * optional `audio`) travels with the attach payload. The runner keeps it
10843
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10844
- * restart the orchestrator re-sends the latest snapshot.
10845
- *
10846
- * `engine`/`steps`/`audio` are optional during the additive migration
10847
- * window; once orchestrator + UI are migrated they become required.
10969
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10970
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10971
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10972
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10973
+ * node-local, resolved by the executing runner at dispatch time.
10848
10974
  */
10849
10975
  var RunnerCameraConfigSchema = object({
10850
10976
  deviceId: number$1(),
@@ -10895,14 +11021,11 @@ var RunnerCameraConfigSchema = object({
10895
11021
  */
10896
11022
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10897
11023
  pipelineEnabled: boolean().default(true),
10898
- /** Engine choice for video steps (runtime+backend+format). */
10899
- engine: PipelineEngineChoiceSchema.optional(),
10900
11024
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10901
11025
  steps: array(PipelineStepInputSchema).readonly().optional(),
10902
11026
  /** Audio classification branch. `enabled:false` disables, null skips. */
10903
11027
  audio: object({
10904
- engine: PipelineEngineChoiceSchema,
10905
- modelId: string(),
11028
+ modelId: string().optional(),
10906
11029
  enabled: boolean()
10907
11030
  }).nullable().optional(),
10908
11031
  /**
@@ -10989,7 +11112,11 @@ var RunnerLocalMetricsSchema = object({
10989
11112
  avgInferenceTimeMs: number$1(),
10990
11113
  queueDepth: number$1()
10991
11114
  });
10992
- method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly());
11115
+ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly()), method(object({
11116
+ handle: FrameHandleSchema,
11117
+ bbox: NativeCropBboxSchema,
11118
+ maxWidth: number$1().int().positive().optional()
11119
+ }), NativeCropResultSchema.nullable());
10993
11120
  object({
10994
11121
  detected: boolean(),
10995
11122
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12283,7 +12410,9 @@ var AddonPageDeclarationSchema$1 = object({
12283
12410
  icon: string(),
12284
12411
  path: string(),
12285
12412
  remoteName: string(),
12286
- bundle: string()
12413
+ bundle: string(),
12414
+ section: string().optional(),
12415
+ sectionLabel: string().optional()
12287
12416
  });
12288
12417
  var AddonPageInfoSchema = object({
12289
12418
  addonId: string(),
@@ -12323,7 +12452,18 @@ var AddonPageDeclarationSchema = object({
12323
12452
  * the static-file route can compute an mtime-based cache-buster URL
12324
12453
  * without a separate filesystem stat.
12325
12454
  */
12326
- bundle: string()
12455
+ bundle: string(),
12456
+ /**
12457
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12458
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12459
+ * Any OTHER string creates (or joins) a custom section rendered after
12460
+ * the built-in groups; its label comes from `sectionLabel` (first
12461
+ * declaration wins), falling back to the id. Absent → the legacy
12462
+ * "Addon Pages" group.
12463
+ */
12464
+ section: string().optional(),
12465
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12466
+ sectionLabel: string().optional()
12327
12467
  });
12328
12468
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12329
12469
  var AddonHttpRouteSchema = object({
@@ -12539,6 +12679,17 @@ var WidgetMetadataSchema = object({
12539
12679
  deviceContext: boolean().default(false),
12540
12680
  integrationContext: boolean().default(false)
12541
12681
  }),
12682
+ /**
12683
+ * Loadable BEFORE authentication. The normal widget registry listing
12684
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12685
+ * (the login page) cannot discover a widget through it. A widget that
12686
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12687
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12688
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12689
+ * than the authenticated registry, and its bundle is served by the
12690
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12691
+ */
12692
+ preAuth: boolean().optional().default(false),
12542
12693
  /** Dashboard placement HINTS (operator can override per instance). */
12543
12694
  defaultSize: WidgetSizeEnum.default("md"),
12544
12695
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12840,6 +12991,66 @@ method(object({
12840
12991
  password: string()
12841
12992
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12842
12993
  /**
12994
+ * `login-method` — collection cap through which auth addons contribute
12995
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12996
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12997
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12998
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12999
+ * procedure aggregates them for the unauthenticated login page.
13000
+ *
13001
+ * A contribution is a discriminated union on `kind`:
13002
+ *
13003
+ * - `redirect` — a declarative button. The login page renders a generic
13004
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13005
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13006
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13007
+ * login page needs NO change.
13008
+ *
13009
+ * - `widget` — a Module-Federation widget the login page mounts (via
13010
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13011
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13012
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13013
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13014
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13015
+ *
13016
+ * Every contribution carries a `stage`:
13017
+ * - `primary` — shown on the first credentials screen (OIDC /
13018
+ * magic-link buttons; a future usernameless passkey).
13019
+ * - `second-factor` — shown AFTER the password leg, gated on the
13020
+ * returned `factors` (passkey-as-2FA today).
13021
+ *
13022
+ * `mount: skip` — the cap is read server-side by the core auth router
13023
+ * (`registry.getCollection('login-method')`), never mounted as its own
13024
+ * tRPC router.
13025
+ */
13026
+ /** When a login method renders in the two-phase login flow. */
13027
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13028
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13029
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13030
+ kind: literal("redirect"),
13031
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13032
+ id: string(),
13033
+ /** Operator-facing button label. */
13034
+ label: string(),
13035
+ /** lucide-react icon name. */
13036
+ icon: string().optional(),
13037
+ /** Addon-owned HTTP route the button navigates to (GET). */
13038
+ startUrl: string(),
13039
+ stage: LoginStageEnum
13040
+ }), object({
13041
+ kind: literal("widget"),
13042
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13043
+ id: string(),
13044
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13045
+ addonId: string(),
13046
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13047
+ bundle: string(),
13048
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13049
+ remote: WidgetRemoteSchema,
13050
+ stage: LoginStageEnum
13051
+ })]);
13052
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13053
+ /**
12843
13054
  * Orchestrator-side destination metadata. The orchestrator computes
12844
13055
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12845
13056
  * (admin UI, restore flow) see one canonical key.
@@ -14968,7 +15179,17 @@ var TrackSchema = object({
14968
15179
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14969
15180
  totalDistance: number$1(),
14970
15181
  state: TrackStateSchema,
14971
- active: boolean()
15182
+ active: boolean(),
15183
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15184
+ * track expiry, recomputed on late label). Absent on legacy rows written
15185
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15186
+ importance: number$1().optional(),
15187
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15188
+ * "best" frame). Absent when the track produced no object events. */
15189
+ bestEventId: string().optional(),
15190
+ /** Tag of the importance sub-signal that dominated the score
15191
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15192
+ importanceReason: string().optional()
14972
15193
  });
14973
15194
  var BaseEventFields = {
14974
15195
  id: string(),
@@ -15033,8 +15254,18 @@ var ObjectEventSchema = object({
15033
15254
  frameHeight: number$1().optional(),
15034
15255
  /** MediaStore key for the crop attached to this event (if any). */
15035
15256
  mediaKey: string().optional(),
15257
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15258
+ * best-detection full frame). Resolve via the event-media data-plane
15259
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15260
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15261
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15262
+ keyFrameMediaKey: string().optional(),
15036
15263
  /** Populated by B5 (recording playback URL for this event). */
15037
- mediaUrl: string().optional()
15264
+ mediaUrl: string().optional(),
15265
+ /** The parent track's key-event importance [0,1], propagated to every object
15266
+ * event of the track (so an event row can be sorted by importance without a
15267
+ * track join). Absent on legacy rows / before the track was scored. */
15268
+ importance: number$1().optional()
15038
15269
  });
15039
15270
  var AudioEventSchema = object({
15040
15271
  ...BaseEventFields,
@@ -15058,7 +15289,8 @@ var MediaFileKindEnum = _enum([
15058
15289
  "fullFrame",
15059
15290
  "fullFrameBoxed",
15060
15291
  "faceCrop",
15061
- "plateCrop"
15292
+ "plateCrop",
15293
+ "keyFrame"
15062
15294
  ]);
15063
15295
  var MediaFileSchema = object({
15064
15296
  key: string(),
@@ -15079,6 +15311,32 @@ var DeviceEventQueryInput = object({
15079
15311
  projection: _enum(["full", "slim"]).optional()
15080
15312
  });
15081
15313
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15314
+ var KeyEventQueryInput = object({
15315
+ deviceId: number$1(),
15316
+ /** Window lower bound (track firstSeen ≥ since). */
15317
+ since: number$1(),
15318
+ /** Window upper bound (track firstSeen ≤ until). */
15319
+ until: number$1(),
15320
+ limit: number$1().int().min(1).max(200).default(50),
15321
+ /** Drop tracks scoring below this importance. */
15322
+ minImportance: number$1().min(0).max(1).optional(),
15323
+ /** Restrict to a single class (e.g. 'person'). */
15324
+ classFilter: string().optional()
15325
+ });
15326
+ var KeyEventSchema = object({
15327
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15328
+ id: string(),
15329
+ trackId: string(),
15330
+ /** Track start time (firstSeen). */
15331
+ timestamp: number$1(),
15332
+ className: string(),
15333
+ label: string().optional(),
15334
+ importance: number$1(),
15335
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15336
+ bestEventId: string(),
15337
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15338
+ windowMs: number$1().optional()
15339
+ });
15082
15340
  var TrackedDetectionSchema = object({
15083
15341
  trackId: string(),
15084
15342
  className: string(),
@@ -15108,7 +15366,7 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
15108
15366
  }), array(TrackSchema).readonly()), method(object({ deviceId: number$1() }), _void(), {
15109
15367
  kind: "mutation",
15110
15368
  auth: "admin"
15111
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15369
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15112
15370
  deviceId: number$1(),
15113
15371
  since: number$1(),
15114
15372
  until: number$1(),
@@ -15153,11 +15411,11 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
15153
15411
  timestamp: number$1()
15154
15412
  });
15155
15413
  var CameraPipelineConfigSchema = object({
15156
- engine: PipelineEngineChoiceSchema,
15414
+ engine: PipelineEngineChoiceSchema.optional(),
15157
15415
  steps: array(PipelineStepInputSchema).readonly(),
15158
15416
  audio: object({
15159
- engine: PipelineEngineChoiceSchema,
15160
- modelId: string(),
15417
+ engine: PipelineEngineChoiceSchema.optional(),
15418
+ modelId: string().optional(),
15161
15419
  enabled: boolean(),
15162
15420
  settings: record(string(), unknown()).readonly().optional()
15163
15421
  }).nullable().optional()
@@ -15172,7 +15430,7 @@ var PipelineTemplateSchema = object({
15172
15430
  });
15173
15431
  var AgentAddonConfigSchema = object({
15174
15432
  enabled: boolean(),
15175
- modelId: string(),
15433
+ modelId: string().optional(),
15176
15434
  settings: record(string(), unknown()).readonly()
15177
15435
  });
15178
15436
  var AgentPipelineSettingsSchema = object({
@@ -15182,12 +15440,25 @@ var AgentPipelineSettingsSchema = object({
15182
15440
  detectWeight: number$1().positive().optional(),
15183
15441
  /** Node is eligible to run the detection pipeline (decode + inference). */
15184
15442
  detect: boolean().optional(),
15185
- /** Node is eligible to host decoder sessions. */
15443
+ /**
15444
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15445
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15446
+ * the schema ONLY so persisted stores written before the removal still
15447
+ * parse — no code reads it and no write path emits it.
15448
+ */
15186
15449
  decode: boolean().optional(),
15187
15450
  /** Node is eligible to run audio-analyzer sessions. */
15188
15451
  audio: boolean().optional(),
15189
15452
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15190
- ingest: boolean().optional()
15453
+ ingest: boolean().optional(),
15454
+ /**
15455
+ * Operator override for the LAN host a cross-node decoder dials to reach
15456
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15457
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15458
+ * it already uses to reach the hub). Set this only when the auto-detected
15459
+ * address is wrong (multi-homed host, NAT, custom interface).
15460
+ */
15461
+ reachableHost: string().optional()
15191
15462
  });
15192
15463
  var CameraPipelineForAgentSchema = object({
15193
15464
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15235,25 +15506,6 @@ var PipelineAssignmentSchema = object({
15235
15506
  assignedAt: number$1()
15236
15507
  });
15237
15508
  /**
15238
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15239
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15240
- * → co-located with pipeline → capacity).
15241
- */
15242
- var DecoderAssignmentSchema = object({
15243
- deviceId: number$1(),
15244
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15245
- decoderNodeId: string(),
15246
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15247
- pinned: boolean(),
15248
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15249
- reason: _enum([
15250
- "manual",
15251
- "co-located",
15252
- "capacity",
15253
- "hardware-affinity"
15254
- ])
15255
- });
15256
- /**
15257
15509
  * Per-agent load summary surfaced to the load balancer + dashboards.
15258
15510
  * Aggregated from each runner's `getLocalLoad` cap call.
15259
15511
  */
@@ -15293,6 +15545,15 @@ var GlobalMetricsSchema = object({
15293
15545
  * capability providers.
15294
15546
  */
15295
15547
  var CapabilityBindingsSchema = record(string(), string());
15548
+ /**
15549
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15550
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15551
+ */
15552
+ var IngestOwnerSchema = object({
15553
+ ownerNodeId: string(),
15554
+ reachableHost: string().optional(),
15555
+ configIssue: string().optional()
15556
+ });
15296
15557
  /** Source block — always present; derives from the stream catalog. */
15297
15558
  var CameraSourceStatusSchema = object({ streams: array(object({
15298
15559
  camStreamId: string(),
@@ -15307,6 +15568,14 @@ var CameraAssignmentStatusSchema = object({
15307
15568
  detectionNodeId: string().nullable(),
15308
15569
  decoderNodeId: string().nullable(),
15309
15570
  audioNodeId: string().nullable(),
15571
+ /**
15572
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15573
+ * hosts the broker/restream) — the cluster ingest owner today
15574
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15575
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15576
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15577
+ */
15578
+ sourceNodeId: string().nullable(),
15310
15579
  pinned: object({
15311
15580
  detection: boolean(),
15312
15581
  decoder: boolean(),
@@ -15439,16 +15708,7 @@ method(object({
15439
15708
  }), object({ success: literal(true) }), {
15440
15709
  kind: "mutation",
15441
15710
  auth: "admin"
15442
- }), method(object({
15443
- deviceId: number$1(),
15444
- nodeId: string()
15445
- }), _void(), {
15446
- kind: "mutation",
15447
- auth: "admin"
15448
- }), method(object({ deviceId: number$1() }), _void(), {
15449
- kind: "mutation",
15450
- auth: "admin"
15451
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15711
+ }), method(_void(), IngestOwnerSchema), method(object({
15452
15712
  deviceId: number$1(),
15453
15713
  nodeId: string()
15454
15714
  }), object({ success: literal(true) }), {
@@ -15469,10 +15729,7 @@ method(object({
15469
15729
  nodeId: string(),
15470
15730
  pinned: boolean(),
15471
15731
  assignedAt: number$1()
15472
- }))), method(object({
15473
- deviceId: number$1(),
15474
- pipelineNodeId: string().optional()
15475
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15732
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15476
15733
  nodeId: string(),
15477
15734
  settings: AgentPipelineSettingsSchema
15478
15735
  })).readonly()), method(object({
@@ -15502,12 +15759,26 @@ method(object({
15502
15759
  }), method(object({
15503
15760
  agentNodeId: string(),
15504
15761
  detect: boolean().nullable().optional(),
15505
- decode: boolean().nullable().optional(),
15506
15762
  audio: boolean().nullable().optional(),
15507
15763
  ingest: boolean().nullable().optional()
15508
15764
  }), object({ success: literal(true) }), {
15509
15765
  kind: "mutation",
15510
15766
  auth: "admin"
15767
+ }), method(object({
15768
+ agentNodeId: string(),
15769
+ reachableHost: string().nullable()
15770
+ }), object({ success: literal(true) }), {
15771
+ kind: "mutation",
15772
+ auth: "admin"
15773
+ }), method(object({ agentNodeId: string() }), object({
15774
+ success: literal(true),
15775
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15776
+ effectiveModelId: string().nullable(),
15777
+ /** Number of cameras whose node-scoped overrides were cleared. */
15778
+ clearedCameraOverrides: number$1()
15779
+ }), {
15780
+ kind: "mutation",
15781
+ auth: "admin"
15511
15782
  }), method(object({ deviceId: number$1() }), CameraPipelineSettingsSchema.nullable()), method(object({
15512
15783
  deviceId: number$1(),
15513
15784
  addonId: string(),
@@ -15552,22 +15823,131 @@ method(object({
15552
15823
  kind: "mutation",
15553
15824
  auth: "admin"
15554
15825
  });
15555
- var RegisteredStreamSchema = object({
15556
- streamId: string(),
15557
- label: string().optional(),
15558
- codec: string(),
15559
- type: _enum(["video", "audio"]),
15560
- sourceUrl: string()
15826
+ /**
15827
+ * server-management — per-NODE singleton capability for a node's ROOT
15828
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15829
+ * agents).
15830
+ *
15831
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15832
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15833
+ * version describes the node. Updates install into
15834
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15835
+ * starter (probation boot + auto-rollback to N-1).
15836
+ *
15837
+ * Providers:
15838
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15839
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15840
+ * unpinned calls.
15841
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15842
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15843
+ * `$hub.registerNode` manifest.
15844
+ *
15845
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15846
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15847
+ * SDK) routes the call to that node's provider via the standard remote
15848
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15849
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15850
+ *
15851
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15852
+ */
15853
+ /**
15854
+ * Where the running hub's code was loaded from:
15855
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15856
+ * plain resolution and runtime updates are refused.
15857
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15858
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15859
+ */
15860
+ var ServerBootModeSchema = _enum([
15861
+ "workspace",
15862
+ "baked",
15863
+ "data-root"
15864
+ ]);
15865
+ /**
15866
+ * Update lifecycle state:
15867
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15868
+ * - `pending-restart` — a version is staged and the node has NOT yet
15869
+ * restarted onto it (still running the OLD version).
15870
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15871
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15872
+ * Apply/rollback are refused in this state and the node must NOT be
15873
+ * manually restarted, or the probation boot auto-rolls-back.
15874
+ */
15875
+ var ServerUpdateStateSchema = _enum([
15876
+ "idle",
15877
+ "checking",
15878
+ "staging",
15879
+ "pending-restart",
15880
+ "awaiting-confirmation"
15881
+ ]);
15882
+ var ServerRollbackInfoSchema = object({
15883
+ /** The version that failed (or was manually rolled back). */
15884
+ fromVersion: string(),
15885
+ /** The version rolled back to; null = the baked seed. */
15886
+ toVersion: string().nullable(),
15887
+ atMs: number$1(),
15888
+ reason: string()
15561
15889
  });
15562
- var ExposedResourceSchema = object({
15563
- streamId: string(),
15564
- format: string(),
15565
- value: string()
15890
+ var ServerPackageStatusSchema = object({
15891
+ /** Root package name (`@camstack/server` on the hub). */
15892
+ packageName: string(),
15893
+ /** Version of the code the running process ACTUALLY loaded. */
15894
+ runningVersion: string().nullable(),
15895
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15896
+ nodeRuntimeVersion: string().nullable(),
15897
+ /** Active data-dir root version; null when booted from seed/workspace. */
15898
+ activeVersion: string().nullable(),
15899
+ /** N-1 version kept for rollback; null when no previous version exists. */
15900
+ previousVersion: string().nullable(),
15901
+ /** Version of the immutable baked seed closure (image fallback). */
15902
+ seedVersion: string().nullable(),
15903
+ /** Latest registry version from the most recent check (null = never checked). */
15904
+ latestVersion: string().nullable(),
15905
+ updateAvailable: boolean(),
15906
+ bootMode: ServerBootModeSchema,
15907
+ updateState: ServerUpdateStateSchema,
15908
+ /** Version staged + awaiting its probation boot, when one is pending. */
15909
+ pendingVersion: string().nullable(),
15910
+ /** Set when the last freshly-activated version failed its boot health-check. */
15911
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15912
+ /**
15913
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15914
+ * hub is running from the baked seed (or workspace) while installed data-dir
15915
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15916
+ */
15917
+ stateFileCorrupt: boolean(),
15918
+ lastCheckedAtMs: number$1().nullable()
15919
+ });
15920
+ var ServerUpdateCheckResultSchema = object({
15921
+ packageName: string(),
15922
+ runningVersion: string().nullable(),
15923
+ latestVersion: string().nullable(),
15924
+ updateAvailable: boolean(),
15925
+ checkedAtMs: number$1(),
15926
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15927
+ error: string().nullable()
15928
+ });
15929
+ var ServerUpdateActionResultSchema = object({
15930
+ accepted: boolean(),
15931
+ targetVersion: string().nullable(),
15932
+ /** True when a graceful restart was scheduled to apply the change. */
15933
+ restarting: boolean(),
15934
+ message: string()
15935
+ });
15936
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15937
+ kind: "mutation",
15938
+ auth: "admin"
15939
+ }), method(object({
15940
+ /** Explicit target version; omitted = latest from the registry. */
15941
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15942
+ kind: "mutation",
15943
+ auth: "admin"
15944
+ }), method(_void(), ServerUpdateActionResultSchema, {
15945
+ kind: "mutation",
15946
+ auth: "admin"
15947
+ }), method(_void(), ServerUpdateActionResultSchema, {
15948
+ kind: "mutation",
15949
+ auth: "admin"
15566
15950
  });
15567
- method(object({
15568
- deviceId: number$1(),
15569
- streams: array(RegisteredStreamSchema).readonly()
15570
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), array(ExposedResourceSchema).readonly());
15571
15951
  /**
15572
15952
  * Query filter for settings-store collections.
15573
15953
  */
@@ -15720,9 +16100,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15720
16100
  /**
15721
16101
  * A single device snapshot returned as base64 JPEG/PNG.
15722
16102
  *
15723
- * Shared with the `snapshot-provider` collection cap the orchestrator
15724
- * receives the same shape from each native provider and from the
15725
- * broker-based fallback.
16103
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16104
+ * the device-native provider (onboard capture) or from the stream-broker
16105
+ * prebuffer fallback.
15726
16106
  */
15727
16107
  var SnapshotImageSchema = object({
15728
16108
  base64: string(),
@@ -15753,11 +16133,12 @@ DeviceType.Camera, method(object({
15753
16133
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number$1() }), _void(), {
15754
16134
  kind: "mutation",
15755
16135
  auth: "admin"
15756
- });
15757
- method(object({ deviceId: number$1() }), boolean()), method(object({
16136
+ }), systemMethod(object({ deviceIds: array(number$1()).min(1).max(200) }), array(object({
15758
16137
  deviceId: number$1(),
15759
- streamId: string().optional()
15760
- }), SnapshotImageSchema.nullable());
16138
+ lastCapturedAt: number$1().nullable(),
16139
+ cacheAgeMs: number$1().nullable(),
16140
+ etag: string().nullable()
16141
+ })));
15761
16142
  /**
15762
16143
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15763
16144
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16008,10 +16389,32 @@ method(_void(), array(TurnServerSchema).readonly());
16008
16389
  * b. `finishAuthentication({userId, response})` → server verifies
16009
16390
  * the assertion, bumps the credential counter, returns ok.
16010
16391
  *
16392
+ * 2b. Usernameless (discoverable-credential) authentication — the
16393
+ * passkey IS the primary factor, no password leg:
16394
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16395
+ * EMPTY `allowCredentials` (the browser offers every resident
16396
+ * passkey it holds for this RP) + `userVerification: 'required'`
16397
+ * (the passkey replaces both factors, so UV is mandatory).
16398
+ * The challenge is stored server-side, NOT bound to any user.
16399
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16400
+ * resolves the credential by the response's credential id,
16401
+ * verifies the assertion against the stored challenge + that
16402
+ * credential's public key/counter, and returns the OWNING
16403
+ * `userId` — the caller (core auth router) mints the session.
16404
+ *
16011
16405
  * 3. Management:
16012
16406
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16013
16407
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16014
16408
  *
16409
+ * 4. Second-factor preference (opt-in, default OFF):
16410
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16411
+ * demanded as a second factor after a password login ONLY when the
16412
+ * user explicitly opts in via `setSecondFactorPreference`.
16413
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16414
+ * row ⇒ `enabled: false`).
16415
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16416
+ * the providing addon beside its credentials.
16417
+ *
16015
16418
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16016
16419
  * the admin-ui composes the begin/finish round-trip and never exposes
16017
16420
  * the cap to non-admins.
@@ -16054,6 +16457,17 @@ method(object({
16054
16457
  }), object({ verified: boolean() }), {
16055
16458
  kind: "mutation",
16056
16459
  access: "view"
16460
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16461
+ kind: "mutation",
16462
+ access: "view"
16463
+ }), method(object({
16464
+ /** AuthenticationResponseJSON from the browser. */
16465
+ response: record(string(), unknown()) }), object({
16466
+ verified: boolean(),
16467
+ userId: string().nullable()
16468
+ }), {
16469
+ kind: "mutation",
16470
+ access: "view"
16057
16471
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16058
16472
  userId: string(),
16059
16473
  credentialId: string()
@@ -16061,6 +16475,13 @@ method(object({
16061
16475
  kind: "mutation",
16062
16476
  auth: "admin",
16063
16477
  access: "delete"
16478
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16479
+ userId: string(),
16480
+ enabled: boolean()
16481
+ }), object({ success: literal(true) }), {
16482
+ kind: "mutation",
16483
+ auth: "admin",
16484
+ access: "create"
16064
16485
  });
16065
16486
  /**
16066
16487
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16118,9 +16539,10 @@ method(object({
16118
16539
  auth: "admin"
16119
16540
  });
16120
16541
  /**
16121
- * Optional client-side hints sent at session creation to help the
16122
- * provider pick the best native source. All fields are optional —
16123
- * a viewer that knows nothing still gets a sane default.
16542
+ * Optional client-side hints sent at session creation to help the provider
16543
+ * pick the best native source. All fields optional — a viewer that knows
16544
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16545
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16124
16546
  */
16125
16547
  var webrtcClientHintsSchema = object({
16126
16548
  viewportWidth: number$1().int().positive().optional(),
@@ -16131,22 +16553,6 @@ var webrtcClientHintsSchema = object({
16131
16553
  /** Hard tier override; takes precedence over scoring when registered. */
16132
16554
  prefersTier: string().optional()
16133
16555
  }).partial();
16134
- method(object({
16135
- streamId: string(),
16136
- sdpOffer: string()
16137
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16138
- streamId: string(),
16139
- codec: string()
16140
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16141
- streamId: string(),
16142
- hints: webrtcClientHintsSchema.optional()
16143
- }), object({
16144
- sessionId: string(),
16145
- sdpOffer: string()
16146
- }), { kind: "mutation" }), method(object({
16147
- sessionId: string(),
16148
- sdpAnswer: string()
16149
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16150
16556
  /**
16151
16557
  * Discriminated target for a WebRTC session. The client sends this
16152
16558
  * structured object instead of building / parsing brokerId strings;
@@ -16633,7 +17039,15 @@ var FrameworkPackageStatusSchema = object({
16633
17039
  latestVersion: string().nullable(),
16634
17040
  hasUpdate: boolean(),
16635
17041
  /** Optional manifest description for the row tooltip. */
16636
- description: string().optional()
17042
+ description: string().optional(),
17043
+ /**
17044
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
17045
+ * ACTUALLY loaded. Framework packages ship code changes without always
17046
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
17047
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
17048
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
17049
+ */
17050
+ buildId: string().nullable()
16637
17051
  });
16638
17052
  var LogStreamEntrySchema = object({
16639
17053
  timestamp: string(),
@@ -16869,7 +17283,17 @@ var FaceInfoSchema = object({
16869
17283
  recognizedIdentityId: string().optional(),
16870
17284
  identityName: string().optional(),
16871
17285
  assigned: boolean(),
16872
- base64: string().optional()
17286
+ base64: string().optional(),
17287
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17288
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17289
+ * legacy rows written before design B. */
17290
+ faceBbox: BoundingBoxSchema.optional(),
17291
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17292
+ * Fetch the native JPEG via the event-media data-plane
17293
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17294
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17295
+ * back to the inline `base64` face crop. */
17296
+ keyFrameMediaKey: string().optional()
16873
17297
  });
16874
17298
  var FaceFilterEnum = _enum([
16875
17299
  "unassigned",
@@ -17566,6 +17990,16 @@ var TopologyCategorySchema = object({
17566
17990
  healthy: number$1(),
17567
17991
  addons: array(TopologyCategoryAddonSchema).readonly()
17568
17992
  });
17993
+ /**
17994
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17995
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17996
+ * version visibility for the Server management surface. Nullable: offline
17997
+ * rows and pre-phase-2 nodes report none.
17998
+ */
17999
+ var TopologyRootPackageSchema = object({
18000
+ name: string(),
18001
+ version: string()
18002
+ });
17569
18003
  var TopologyNodeSchema = object({
17570
18004
  id: string(),
17571
18005
  name: string(),
@@ -17589,7 +18023,8 @@ var TopologyNodeSchema = object({
17589
18023
  status: string()
17590
18024
  })).readonly(),
17591
18025
  processes: array(TopologyProcessSchema).readonly(),
17592
- categories: array(TopologyCategorySchema).readonly()
18026
+ categories: array(TopologyCategorySchema).readonly(),
18027
+ rootPackage: TopologyRootPackageSchema.nullable()
17593
18028
  });
17594
18029
  var CapUsageEdgeSchema = object({
17595
18030
  callerAddonId: string(),
@@ -20389,6 +20824,12 @@ Object.freeze({
20389
20824
  addonId: null,
20390
20825
  access: "create"
20391
20826
  },
20827
+ "loginMethod.getLoginMethods": {
20828
+ capName: "login-method",
20829
+ capScope: "system",
20830
+ addonId: null,
20831
+ access: "view"
20832
+ },
20392
20833
  "mediaPlayer.next": {
20393
20834
  capName: "media-player",
20394
20835
  capScope: "device",
@@ -20971,6 +21412,12 @@ Object.freeze({
20971
21412
  addonId: null,
20972
21413
  access: "view"
20973
21414
  },
21415
+ "pipelineAnalytics.getKeyEvents": {
21416
+ capName: "pipeline-analytics",
21417
+ capScope: "device",
21418
+ addonId: null,
21419
+ access: "view"
21420
+ },
20974
21421
  "pipelineAnalytics.getMotionEvents": {
20975
21422
  capName: "pipeline-analytics",
20976
21423
  capScope: "device",
@@ -21019,23 +21466,23 @@ Object.freeze({
21019
21466
  addonId: null,
21020
21467
  access: "create"
21021
21468
  },
21022
- "pipelineExecutor.deleteModel": {
21469
+ "pipelineExecutor.clearDeviceOverrides": {
21023
21470
  capName: "pipeline-executor",
21024
21471
  capScope: "system",
21025
21472
  addonId: null,
21026
21473
  access: "delete"
21027
21474
  },
21028
- "pipelineExecutor.deleteTemplate": {
21475
+ "pipelineExecutor.deleteModel": {
21029
21476
  capName: "pipeline-executor",
21030
21477
  capScope: "system",
21031
21478
  addonId: null,
21032
21479
  access: "delete"
21033
21480
  },
21034
- "pipelineExecutor.detect": {
21481
+ "pipelineExecutor.deleteTemplate": {
21035
21482
  capName: "pipeline-executor",
21036
21483
  capScope: "system",
21037
21484
  addonId: null,
21038
- access: "view"
21485
+ access: "delete"
21039
21486
  },
21040
21487
  "pipelineExecutor.downloadModel": {
21041
21488
  capName: "pipeline-executor",
@@ -21229,13 +21676,13 @@ Object.freeze({
21229
21676
  addonId: null,
21230
21677
  access: "create"
21231
21678
  },
21232
- "pipelineOrchestrator.assignAudio": {
21233
- capName: "pipeline-orchestrator",
21679
+ "pipelineExecutor.validatePipeline": {
21680
+ capName: "pipeline-executor",
21234
21681
  capScope: "system",
21235
21682
  addonId: null,
21236
- access: "create"
21683
+ access: "view"
21237
21684
  },
21238
- "pipelineOrchestrator.assignDecoder": {
21685
+ "pipelineOrchestrator.assignAudio": {
21239
21686
  capName: "pipeline-orchestrator",
21240
21687
  capScope: "system",
21241
21688
  addonId: null,
@@ -21319,19 +21766,13 @@ Object.freeze({
21319
21766
  addonId: null,
21320
21767
  access: "view"
21321
21768
  },
21322
- "pipelineOrchestrator.getDecoderAssignment": {
21323
- capName: "pipeline-orchestrator",
21324
- capScope: "system",
21325
- addonId: null,
21326
- access: "view"
21327
- },
21328
- "pipelineOrchestrator.getDecoderAssignments": {
21769
+ "pipelineOrchestrator.getGlobalMetrics": {
21329
21770
  capName: "pipeline-orchestrator",
21330
21771
  capScope: "system",
21331
21772
  addonId: null,
21332
21773
  access: "view"
21333
21774
  },
21334
- "pipelineOrchestrator.getGlobalMetrics": {
21775
+ "pipelineOrchestrator.getIngestOwner": {
21335
21776
  capName: "pipeline-orchestrator",
21336
21777
  capScope: "system",
21337
21778
  addonId: null,
@@ -21373,6 +21814,12 @@ Object.freeze({
21373
21814
  addonId: null,
21374
21815
  access: "delete"
21375
21816
  },
21817
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21818
+ capName: "pipeline-orchestrator",
21819
+ capScope: "system",
21820
+ addonId: null,
21821
+ access: "delete"
21822
+ },
21376
21823
  "pipelineOrchestrator.resolvePipeline": {
21377
21824
  capName: "pipeline-orchestrator",
21378
21825
  capScope: "system",
@@ -21409,37 +21856,37 @@ Object.freeze({
21409
21856
  addonId: null,
21410
21857
  access: "create"
21411
21858
  },
21412
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21859
+ "pipelineOrchestrator.setAgentReachableHost": {
21413
21860
  capName: "pipeline-orchestrator",
21414
21861
  capScope: "system",
21415
21862
  addonId: null,
21416
21863
  access: "create"
21417
21864
  },
21418
- "pipelineOrchestrator.setCameraStepOverride": {
21865
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21419
21866
  capName: "pipeline-orchestrator",
21420
21867
  capScope: "system",
21421
21868
  addonId: null,
21422
21869
  access: "create"
21423
21870
  },
21424
- "pipelineOrchestrator.setCameraStepToggle": {
21871
+ "pipelineOrchestrator.setCameraStepOverride": {
21425
21872
  capName: "pipeline-orchestrator",
21426
21873
  capScope: "system",
21427
21874
  addonId: null,
21428
21875
  access: "create"
21429
21876
  },
21430
- "pipelineOrchestrator.setCapabilityBinding": {
21877
+ "pipelineOrchestrator.setCameraStepToggle": {
21431
21878
  capName: "pipeline-orchestrator",
21432
21879
  capScope: "system",
21433
21880
  addonId: null,
21434
21881
  access: "create"
21435
21882
  },
21436
- "pipelineOrchestrator.unassignAudio": {
21883
+ "pipelineOrchestrator.setCapabilityBinding": {
21437
21884
  capName: "pipeline-orchestrator",
21438
21885
  capScope: "system",
21439
21886
  addonId: null,
21440
21887
  access: "create"
21441
21888
  },
21442
- "pipelineOrchestrator.unassignDecoder": {
21889
+ "pipelineOrchestrator.unassignAudio": {
21443
21890
  capName: "pipeline-orchestrator",
21444
21891
  capScope: "system",
21445
21892
  addonId: null,
@@ -21499,6 +21946,12 @@ Object.freeze({
21499
21946
  addonId: null,
21500
21947
  access: "view"
21501
21948
  },
21949
+ "pipelineRunner.getNativeCrop": {
21950
+ capName: "pipeline-runner",
21951
+ capScope: "system",
21952
+ addonId: null,
21953
+ access: "view"
21954
+ },
21502
21955
  "pipelineRunner.reportMotion": {
21503
21956
  capName: "pipeline-runner",
21504
21957
  capScope: "system",
@@ -21739,33 +22192,45 @@ Object.freeze({
21739
22192
  addonId: null,
21740
22193
  access: "create"
21741
22194
  },
21742
- "restreamer.getExposedResources": {
21743
- capName: "restreamer",
22195
+ "scriptRunner.run": {
22196
+ capName: "script-runner",
22197
+ capScope: "device",
22198
+ addonId: null,
22199
+ access: "create"
22200
+ },
22201
+ "scriptRunner.stop": {
22202
+ capName: "script-runner",
22203
+ capScope: "device",
22204
+ addonId: null,
22205
+ access: "create"
22206
+ },
22207
+ "serverManagement.applyServerUpdate": {
22208
+ capName: "server-management",
21744
22209
  capScope: "system",
21745
22210
  addonId: null,
21746
- access: "view"
22211
+ access: "create"
21747
22212
  },
21748
- "restreamer.registerDevice": {
21749
- capName: "restreamer",
22213
+ "serverManagement.checkServerUpdate": {
22214
+ capName: "server-management",
21750
22215
  capScope: "system",
21751
22216
  addonId: null,
21752
22217
  access: "create"
21753
22218
  },
21754
- "restreamer.unregisterDevice": {
21755
- capName: "restreamer",
22219
+ "serverManagement.getServerPackageStatus": {
22220
+ capName: "server-management",
21756
22221
  capScope: "system",
21757
22222
  addonId: null,
21758
- access: "delete"
22223
+ access: "view"
21759
22224
  },
21760
- "scriptRunner.run": {
21761
- capName: "script-runner",
21762
- capScope: "device",
22225
+ "serverManagement.restartServer": {
22226
+ capName: "server-management",
22227
+ capScope: "system",
21763
22228
  addonId: null,
21764
22229
  access: "create"
21765
22230
  },
21766
- "scriptRunner.stop": {
21767
- capName: "script-runner",
21768
- capScope: "device",
22231
+ "serverManagement.rollbackServerUpdate": {
22232
+ capName: "server-management",
22233
+ capScope: "system",
21769
22234
  addonId: null,
21770
22235
  access: "create"
21771
22236
  },
@@ -21853,23 +22318,17 @@ Object.freeze({
21853
22318
  addonId: null,
21854
22319
  access: "view"
21855
22320
  },
21856
- "snapshot.invalidateCache": {
22321
+ "snapshot.getSnapshotOverview": {
21857
22322
  capName: "snapshot",
21858
22323
  capScope: "device",
21859
22324
  addonId: null,
21860
- access: "create"
21861
- },
21862
- "snapshotProvider.getSnapshot": {
21863
- capName: "snapshot-provider",
21864
- capScope: "system",
21865
- addonId: null,
21866
22325
  access: "view"
21867
22326
  },
21868
- "snapshotProvider.supportsDevice": {
21869
- capName: "snapshot-provider",
21870
- capScope: "system",
22327
+ "snapshot.invalidateCache": {
22328
+ capName: "snapshot",
22329
+ capScope: "device",
21871
22330
  addonId: null,
21872
- access: "view"
22331
+ access: "create"
21873
22332
  },
21874
22333
  "ssoBridge.signBridgeToken": {
21875
22334
  capName: "sso-bridge",
@@ -22297,30 +22756,6 @@ Object.freeze({
22297
22756
  addonId: null,
22298
22757
  access: "view"
22299
22758
  },
22300
- "streamingEngine.getStreamUrl": {
22301
- capName: "streaming-engine",
22302
- capScope: "system",
22303
- addonId: null,
22304
- access: "view"
22305
- },
22306
- "streamingEngine.listStreams": {
22307
- capName: "streaming-engine",
22308
- capScope: "system",
22309
- addonId: null,
22310
- access: "view"
22311
- },
22312
- "streamingEngine.registerStream": {
22313
- capName: "streaming-engine",
22314
- capScope: "system",
22315
- addonId: null,
22316
- access: "create"
22317
- },
22318
- "streamingEngine.unregisterStream": {
22319
- capName: "streaming-engine",
22320
- capScope: "system",
22321
- addonId: null,
22322
- access: "delete"
22323
- },
22324
22759
  "streamParams.getConfigSchema": {
22325
22760
  capName: "stream-params",
22326
22761
  capScope: "device",
@@ -22567,6 +23002,12 @@ Object.freeze({
22567
23002
  addonId: null,
22568
23003
  access: "view"
22569
23004
  },
23005
+ "userPasskeys.beginDiscoverableAuthentication": {
23006
+ capName: "user-passkeys",
23007
+ capScope: "system",
23008
+ addonId: null,
23009
+ access: "view"
23010
+ },
22570
23011
  "userPasskeys.beginRegistration": {
22571
23012
  capName: "user-passkeys",
22572
23013
  capScope: "system",
@@ -22579,12 +23020,24 @@ Object.freeze({
22579
23020
  addonId: null,
22580
23021
  access: "view"
22581
23022
  },
23023
+ "userPasskeys.finishDiscoverableAuthentication": {
23024
+ capName: "user-passkeys",
23025
+ capScope: "system",
23026
+ addonId: null,
23027
+ access: "view"
23028
+ },
22582
23029
  "userPasskeys.finishRegistration": {
22583
23030
  capName: "user-passkeys",
22584
23031
  capScope: "system",
22585
23032
  addonId: null,
22586
23033
  access: "create"
22587
23034
  },
23035
+ "userPasskeys.getSecondFactorPreference": {
23036
+ capName: "user-passkeys",
23037
+ capScope: "system",
23038
+ addonId: null,
23039
+ access: "view"
23040
+ },
22588
23041
  "userPasskeys.listPasskeys": {
22589
23042
  capName: "user-passkeys",
22590
23043
  capScope: "system",
@@ -22597,6 +23050,12 @@ Object.freeze({
22597
23050
  addonId: null,
22598
23051
  access: "delete"
22599
23052
  },
23053
+ "userPasskeys.setSecondFactorPreference": {
23054
+ capName: "user-passkeys",
23055
+ capScope: "system",
23056
+ addonId: null,
23057
+ access: "create"
23058
+ },
22600
23059
  "vacuumControl.locate": {
22601
23060
  capName: "vacuum-control",
22602
23061
  capScope: "device",
@@ -22669,6 +23128,18 @@ Object.freeze({
22669
23128
  addonId: null,
22670
23129
  access: "view"
22671
23130
  },
23131
+ "viewerUi.getStaticDir": {
23132
+ capName: "viewer-ui",
23133
+ capScope: "system",
23134
+ addonId: null,
23135
+ access: "view"
23136
+ },
23137
+ "viewerUi.getVersion": {
23138
+ capName: "viewer-ui",
23139
+ capScope: "system",
23140
+ addonId: null,
23141
+ access: "view"
23142
+ },
22672
23143
  "waterHeater.setAway": {
22673
23144
  capName: "water-heater",
22674
23145
  capScope: "device",
@@ -22687,54 +23158,6 @@ Object.freeze({
22687
23158
  addonId: null,
22688
23159
  access: "create"
22689
23160
  },
22690
- "webrtc.closeSession": {
22691
- capName: "webrtc",
22692
- capScope: "system",
22693
- addonId: null,
22694
- access: "create"
22695
- },
22696
- "webrtc.createSession": {
22697
- capName: "webrtc",
22698
- capScope: "system",
22699
- addonId: null,
22700
- access: "create"
22701
- },
22702
- "webrtc.handleAnswer": {
22703
- capName: "webrtc",
22704
- capScope: "system",
22705
- addonId: null,
22706
- access: "create"
22707
- },
22708
- "webrtc.handleOffer": {
22709
- capName: "webrtc",
22710
- capScope: "system",
22711
- addonId: null,
22712
- access: "create"
22713
- },
22714
- "webrtc.hasAdaptiveBitrate": {
22715
- capName: "webrtc",
22716
- capScope: "system",
22717
- addonId: null,
22718
- access: "view"
22719
- },
22720
- "webrtc.registerStream": {
22721
- capName: "webrtc",
22722
- capScope: "system",
22723
- addonId: null,
22724
- access: "create"
22725
- },
22726
- "webrtc.supportsStream": {
22727
- capName: "webrtc",
22728
- capScope: "system",
22729
- addonId: null,
22730
- access: "view"
22731
- },
22732
- "webrtc.unregisterStream": {
22733
- capName: "webrtc",
22734
- capScope: "system",
22735
- addonId: null,
22736
- access: "delete"
22737
- },
22738
23161
  "webrtcSession.addIceCandidate": {
22739
23162
  capName: "webrtc-session",
22740
23163
  capScope: "device",