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