@camstack/addon-provider-dreo 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +672 -287
  2. package/dist/addon.mjs +672 -287
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -4665,7 +4665,7 @@ function _instanceof(cls, params = {}) {
4665
4665
  return inst;
4666
4666
  }
4667
4667
  //#endregion
4668
- //#region ../types/dist/sleep-CZDdRBua.mjs
4668
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4669
4669
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4670
4670
  EventCategory["SystemBoot"] = "system.boot";
4671
4671
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4851,6 +4851,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4851
4851
  */
4852
4852
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4853
4853
  /**
4854
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4855
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4856
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4857
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4858
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4859
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4860
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4861
+ * topology change, so a dropped event self-heals on the next one (plus the
4862
+ * broker's long backstop reconcile query).
4863
+ */
4864
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4865
+ /**
4854
4866
  * Periodic snapshot of per-node pipeline-runner load
4855
4867
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4856
4868
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5374,10 +5386,6 @@ function hydrateField(field, values) {
5374
5386
  };
5375
5387
  }
5376
5388
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5377
- if (field.type === "password") return {
5378
- ...field,
5379
- value: ""
5380
- };
5381
5389
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5382
5390
  return {
5383
5391
  ...field,
@@ -6761,10 +6769,25 @@ function method(input, output, options) {
6761
6769
  timeoutMs: options?.timeoutMs
6762
6770
  };
6763
6771
  }
6772
+ /**
6773
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6774
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6775
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6776
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6777
+ */
6778
+ function systemMethod(input, output, options) {
6779
+ return {
6780
+ ...method(input, output, options),
6781
+ systemOnly: true
6782
+ };
6783
+ }
6764
6784
  /** Shorthand to define an event schema */
6765
6785
  function event(data) {
6766
6786
  return { data };
6767
6787
  }
6788
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6789
+ var VersionOutputSchema$1 = object({ version: string() });
6790
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6768
6791
  var StaticDirOutputSchema = object({ staticDir: string() });
6769
6792
  var VersionOutputSchema = object({ version: string() });
6770
6793
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6946,6 +6969,36 @@ var ModelFormatsSchema = object({
6946
6969
  tflite: ModelFormatEntrySchema.optional(),
6947
6970
  pt: ModelFormatEntrySchema.optional()
6948
6971
  });
6972
+ /**
6973
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6974
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6975
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6976
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6977
+ * resolution/download/persistence; this is a presentation overlay resolved back
6978
+ * to an `id`.
6979
+ */
6980
+ var ModelVariantGroupSchema = object({
6981
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6982
+ family: string(),
6983
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6984
+ tier: string(),
6985
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6986
+ precision: _enum(["fp32", "int8"]).optional(),
6987
+ /**
6988
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6989
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6990
+ * future performance variants plug into.
6991
+ */
6992
+ optimization: _enum(["standard", "fast"]).optional(),
6993
+ /**
6994
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6995
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6996
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6997
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6998
+ * the group so the selector can offer it as a variant axis.
6999
+ */
7000
+ resolution: number().int().positive().optional()
7001
+ });
6949
7002
  var ModelCatalogEntrySchema = object({
6950
7003
  id: string(),
6951
7004
  name: string(),
@@ -6975,7 +7028,43 @@ var ModelCatalogEntrySchema = object({
6975
7028
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6976
7029
  * Downloaded into the same modelsDir alongside the model file.
6977
7030
  */
6978
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7031
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7032
+ /**
7033
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7034
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7035
+ * model list and excluded from the auto format-default pick. Set on the
7036
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7037
+ * the active lineup stays the coherent curated ladder without deleting a
7038
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7039
+ * an explicit legacy id that has a build for the node's format.
7040
+ */
7041
+ legacy: boolean().optional(),
7042
+ /**
7043
+ * Measured quality/latency metadata — populated from the benchmark addon on
7044
+ * the real node classes. Absent = not yet measured (most entries today; the
7045
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7046
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7047
+ */
7048
+ metrics: object({
7049
+ map50: number().optional(),
7050
+ p95LatencyMs: record(string(), number()).optional()
7051
+ }).optional(),
7052
+ /**
7053
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7054
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7055
+ * the retraining addon and any future commercial distribution.
7056
+ */
7057
+ license: string().optional(),
7058
+ /**
7059
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7060
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7061
+ * of a family's sizes and quantizations collapse into one grouped picker
7062
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7063
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7064
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7065
+ * is a presentation overlay resolved back to an `id`.
7066
+ */
7067
+ group: ModelVariantGroupSchema.optional()
6979
7068
  });
6980
7069
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6981
7070
  format: literal("openvino"),
@@ -7036,8 +7125,8 @@ var RecordingModeSchema = _enum([
7036
7125
  "onAudioThreshold"
7037
7126
  ]);
7038
7127
  /**
7039
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7040
- * reads directly (never inferred from `rules`):
7128
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7129
+ * UI reads directly (never inferred from `rules`):
7041
7130
  * - `off` — not recording.
7042
7131
  * - `events` — record only around triggers (motion / audio threshold),
7043
7132
  * with pre/post-buffer.
@@ -9200,26 +9289,13 @@ onBrightnessChanged: { data: object({
9200
9289
  */
9201
9290
  runtimeState: BrightnessStatusSchema
9202
9291
  };
9292
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9203
9293
  var StreamFormatSchema = _enum([
9204
9294
  "webrtc",
9205
9295
  "hls",
9206
9296
  "mjpeg",
9207
9297
  "rtsp"
9208
9298
  ]);
9209
- var StreamInfoSchema = object({
9210
- streamId: string(),
9211
- format: StreamFormatSchema,
9212
- url: string().nullable(),
9213
- active: boolean()
9214
- });
9215
- method(object({
9216
- streamId: string(),
9217
- sourceUrl: string(),
9218
- codec: string().optional()
9219
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9220
- streamId: string(),
9221
- format: StreamFormatSchema
9222
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9223
9299
  var RtspRestreamEntrySchema = object({
9224
9300
  brokerId: string(),
9225
9301
  url: string(),
@@ -10087,37 +10163,7 @@ var consumablesCapability = {
10087
10163
  scope: "device",
10088
10164
  deviceNative: true,
10089
10165
  mode: "singleton",
10090
- deviceTypes: [
10091
- DeviceType.Camera,
10092
- DeviceType.Hub,
10093
- DeviceType.Light,
10094
- DeviceType.Siren,
10095
- DeviceType.Switch,
10096
- DeviceType.Sensor,
10097
- DeviceType.Thermostat,
10098
- DeviceType.Button,
10099
- DeviceType.EventEmitter,
10100
- DeviceType.Update,
10101
- DeviceType.Generic,
10102
- DeviceType.Notifier,
10103
- DeviceType.Script,
10104
- DeviceType.Automation,
10105
- DeviceType.Lock,
10106
- DeviceType.Cover,
10107
- DeviceType.Valve,
10108
- DeviceType.Humidifier,
10109
- DeviceType.WaterHeater,
10110
- DeviceType.Fan,
10111
- DeviceType.MediaPlayer,
10112
- DeviceType.AlarmPanel,
10113
- DeviceType.Control,
10114
- DeviceType.Presence,
10115
- DeviceType.Weather,
10116
- DeviceType.Vacuum,
10117
- DeviceType.LawnMower,
10118
- DeviceType.Container,
10119
- DeviceType.Image
10120
- ],
10166
+ deviceTypes: Object.values(DeviceType),
10121
10167
  deviceConfig: { ui: {
10122
10168
  kind: "widget",
10123
10169
  widgetId: "host/consumables-panel",
@@ -11575,7 +11621,7 @@ var BoundingBoxSchema = object({
11575
11621
  w: number(),
11576
11622
  h: number()
11577
11623
  });
11578
- var SpatialDetectionSchema = object({
11624
+ object({
11579
11625
  class: string(),
11580
11626
  originalClass: string(),
11581
11627
  score: number(),
@@ -11710,7 +11756,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11710
11756
  enabled: boolean(),
11711
11757
  modelId: string(),
11712
11758
  children: array(PipelineDefaultStepSchema).readonly(),
11713
- engine: PipelineEngineChoiceSchema.optional(),
11714
11759
  group: string().optional(),
11715
11760
  settings: record(string(), unknown()).optional()
11716
11761
  }));
@@ -11735,7 +11780,9 @@ var PipelineModelOptionSchema = object({
11735
11780
  formats: record(string(), object({
11736
11781
  downloaded: boolean(),
11737
11782
  sizeMB: number()
11738
- }))
11783
+ })),
11784
+ group: ModelVariantGroupSchema.optional(),
11785
+ legacy: boolean().optional()
11739
11786
  });
11740
11787
  var ConfigFieldBridge = custom();
11741
11788
  var PipelineAddonSchemaSchema = object({
@@ -11749,6 +11796,7 @@ var PipelineAddonSchemaSchema = object({
11749
11796
  defaultModelId: string(),
11750
11797
  defaultModelIdByFormat: record(string(), string()).optional(),
11751
11798
  enabledByDefault: boolean().optional(),
11799
+ backfillIntoExistingOverrides: boolean().optional(),
11752
11800
  defaultConfidence: number(),
11753
11801
  group: string().optional(),
11754
11802
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11765,11 +11813,6 @@ var PipelineSchemaSchema = object({
11765
11813
  selectedEngine: PipelineEngineChoiceSchema,
11766
11814
  slots: array(PipelineSlotSchemaSchema).readonly()
11767
11815
  });
11768
- var DetectorOutputSchema = object({
11769
- detections: array(SpatialDetectionSchema).readonly(),
11770
- inferenceMs: number(),
11771
- modelId: string()
11772
- });
11773
11816
  var EngineProvisioningSchema = object({
11774
11817
  runtimeId: _enum([
11775
11818
  "onnx",
@@ -11786,15 +11829,42 @@ var EngineProvisioningSchema = object({
11786
11829
  ]),
11787
11830
  progress: number().optional(),
11788
11831
  error: string().optional(),
11789
- nextRetryAt: number().optional()
11832
+ nextRetryAt: number().optional(),
11833
+ /**
11834
+ * Gate A (config-correctness gate at engine change): human-readable
11835
+ * config issues surfaced EAGERLY when the node's engine changes — model
11836
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11837
+ * has a <format> build"). Additive/optional: informational only, never
11838
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11839
+ * Absent/empty when the node-default tree resolves cleanly.
11840
+ */
11841
+ configIssues: array(string()).optional()
11790
11842
  });
11791
11843
  var PipelineStepInputSchema = lazy(() => object({
11792
11844
  addonId: string(),
11793
- modelId: string(),
11845
+ modelId: string().optional(),
11794
11846
  enabled: boolean().default(true),
11795
11847
  children: array(PipelineStepInputSchema).optional(),
11796
11848
  settings: record(string(), unknown()).optional()
11797
11849
  }));
11850
+ var ModelSubstitutionSchema = object({
11851
+ addonId: string(),
11852
+ chosen: string(),
11853
+ running: string(),
11854
+ format: string()
11855
+ });
11856
+ var PipelineValidationIssueSchema = object({
11857
+ addonId: string(),
11858
+ kind: _enum(["unknown-addon", "no-format-build"]),
11859
+ detail: string()
11860
+ });
11861
+ var PipelineValidationResultSchema = object({
11862
+ ok: boolean(),
11863
+ issues: array(PipelineValidationIssueSchema).readonly(),
11864
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11865
+ /** The node's `currentEngine.format` this validation ran against. */
11866
+ format: string()
11867
+ });
11798
11868
  var ReferenceImageEntrySchema = object({
11799
11869
  filename: string(),
11800
11870
  stepIds: array(string()).readonly().optional()
@@ -11865,7 +11935,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11865
11935
  })) }), object({ success: literal(true) }), {
11866
11936
  kind: "mutation",
11867
11937
  auth: "admin"
11868
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11938
+ }), method(object({ nodeId: string() }), object({
11939
+ success: literal(true),
11940
+ clearedDevices: number()
11941
+ }), {
11942
+ kind: "mutation",
11943
+ auth: "admin"
11944
+ }), 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({
11869
11945
  name: string(),
11870
11946
  steps: array(PipelineTemplateStepSchema).readonly(),
11871
11947
  engine: PipelineEngineChoiceSchema
@@ -11882,10 +11958,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11882
11958
  modelId: string(),
11883
11959
  format: ModelFormatSchema$1
11884
11960
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11885
- addonId: string(),
11886
- frame: FrameInputSchema,
11887
- config: record(string(), unknown()).optional()
11888
- }), DetectorOutputSchema), method(object({
11889
11961
  engine: PipelineEngineChoiceSchema.optional(),
11890
11962
  steps: array(PipelineStepInputSchema).min(1),
11891
11963
  frame: FrameInputSchema.optional(),
@@ -12064,6 +12136,25 @@ var zonesCapability = {
12064
12136
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12065
12137
  };
12066
12138
  /**
12139
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12140
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12141
+ * so the caller supplies only the detection-res bbox divided by the detection
12142
+ * dims — no native resolution to plumb.
12143
+ */
12144
+ var NativeCropBboxSchema = object({
12145
+ x: number(),
12146
+ y: number(),
12147
+ w: number(),
12148
+ h: number()
12149
+ });
12150
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12151
+ var NativeCropResultSchema = object({
12152
+ /** Packed rgb (24-bit) pixels of the crop. */
12153
+ bytes: _instanceof(Uint8Array),
12154
+ width: number().int().positive(),
12155
+ height: number().int().positive()
12156
+ });
12157
+ /**
12067
12158
  * Per-camera tunable ranges + defaults. Single source of truth used
12068
12159
  * by both the Zod data schema (validation + default fallback) and
12069
12160
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12158,6 +12249,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12158
12249
  kind: literal("remote-restream"),
12159
12250
  /** The camera's source-owner node (slice 1: always the hub). */
12160
12251
  ownerNodeId: string(),
12252
+ /**
12253
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12254
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12255
+ * dials THIS host for the owner's restream, in preference to the
12256
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12257
+ */
12258
+ ownerReachableHost: string().optional(),
12161
12259
  /** Operator override for the owner host the runner dials. */
12162
12260
  hubHostnameOverride: string().optional()
12163
12261
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12166,13 +12264,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12166
12264
  * specific runner instance via `attachCamera`. Carries everything the
12167
12265
  * runner needs to subscribe to the local broker and execute inference.
12168
12266
  *
12169
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12170
- * optional `audio`) travels with the attach payload. The runner keeps it
12171
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12172
- * restart the orchestrator re-sends the latest snapshot.
12173
- *
12174
- * `engine`/`steps`/`audio` are optional during the additive migration
12175
- * window; once orchestrator + UI are migrated they become required.
12267
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12268
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12269
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12270
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12271
+ * node-local, resolved by the executing runner at dispatch time.
12176
12272
  */
12177
12273
  var RunnerCameraConfigSchema = object({
12178
12274
  deviceId: number(),
@@ -12223,14 +12319,11 @@ var RunnerCameraConfigSchema = object({
12223
12319
  */
12224
12320
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12225
12321
  pipelineEnabled: boolean().default(true),
12226
- /** Engine choice for video steps (runtime+backend+format). */
12227
- engine: PipelineEngineChoiceSchema.optional(),
12228
12322
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12229
12323
  steps: array(PipelineStepInputSchema).readonly().optional(),
12230
12324
  /** Audio classification branch. `enabled:false` disables, null skips. */
12231
12325
  audio: object({
12232
- engine: PipelineEngineChoiceSchema,
12233
- modelId: string(),
12326
+ modelId: string().optional(),
12234
12327
  enabled: boolean()
12235
12328
  }).nullable().optional(),
12236
12329
  /**
@@ -12317,7 +12410,11 @@ var RunnerLocalMetricsSchema = object({
12317
12410
  avgInferenceTimeMs: number(),
12318
12411
  queueDepth: number()
12319
12412
  });
12320
- method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly());
12413
+ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
12414
+ handle: FrameHandleSchema,
12415
+ bbox: NativeCropBboxSchema,
12416
+ maxWidth: number().int().positive().optional()
12417
+ }), NativeCropResultSchema.nullable());
12321
12418
  /**
12322
12419
  * Hardware / firmware motion sensor cap — binary detected state plus
12323
12420
  * a timestamp of the last observation. Distinct from
@@ -15248,7 +15345,9 @@ var AddonPageDeclarationSchema$1 = object({
15248
15345
  icon: string(),
15249
15346
  path: string(),
15250
15347
  remoteName: string(),
15251
- bundle: string()
15348
+ bundle: string(),
15349
+ section: string().optional(),
15350
+ sectionLabel: string().optional()
15252
15351
  });
15253
15352
  var AddonPageInfoSchema = object({
15254
15353
  addonId: string(),
@@ -15288,7 +15387,18 @@ var AddonPageDeclarationSchema = object({
15288
15387
  * the static-file route can compute an mtime-based cache-buster URL
15289
15388
  * without a separate filesystem stat.
15290
15389
  */
15291
- bundle: string()
15390
+ bundle: string(),
15391
+ /**
15392
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15393
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15394
+ * Any OTHER string creates (or joins) a custom section rendered after
15395
+ * the built-in groups; its label comes from `sectionLabel` (first
15396
+ * declaration wins), falling back to the id. Absent → the legacy
15397
+ * "Addon Pages" group.
15398
+ */
15399
+ section: string().optional(),
15400
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15401
+ sectionLabel: string().optional()
15292
15402
  });
15293
15403
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15294
15404
  var AddonHttpRouteSchema = object({
@@ -15504,6 +15614,17 @@ var WidgetMetadataSchema = object({
15504
15614
  deviceContext: boolean().default(false),
15505
15615
  integrationContext: boolean().default(false)
15506
15616
  }),
15617
+ /**
15618
+ * Loadable BEFORE authentication. The normal widget registry listing
15619
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15620
+ * (the login page) cannot discover a widget through it. A widget that
15621
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15622
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15623
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15624
+ * than the authenticated registry, and its bundle is served by the
15625
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15626
+ */
15627
+ preAuth: boolean().optional().default(false),
15507
15628
  /** Dashboard placement HINTS (operator can override per instance). */
15508
15629
  defaultSize: WidgetSizeEnum.default("md"),
15509
15630
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15805,6 +15926,66 @@ method(object({
15805
15926
  password: string()
15806
15927
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15807
15928
  /**
15929
+ * `login-method` — collection cap through which auth addons contribute
15930
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15931
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15932
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15933
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15934
+ * procedure aggregates them for the unauthenticated login page.
15935
+ *
15936
+ * A contribution is a discriminated union on `kind`:
15937
+ *
15938
+ * - `redirect` — a declarative button. The login page renders a generic
15939
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15940
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15941
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15942
+ * login page needs NO change.
15943
+ *
15944
+ * - `widget` — a Module-Federation widget the login page mounts (via
15945
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15946
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15947
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15948
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15949
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15950
+ *
15951
+ * Every contribution carries a `stage`:
15952
+ * - `primary` — shown on the first credentials screen (OIDC /
15953
+ * magic-link buttons; a future usernameless passkey).
15954
+ * - `second-factor` — shown AFTER the password leg, gated on the
15955
+ * returned `factors` (passkey-as-2FA today).
15956
+ *
15957
+ * `mount: skip` — the cap is read server-side by the core auth router
15958
+ * (`registry.getCollection('login-method')`), never mounted as its own
15959
+ * tRPC router.
15960
+ */
15961
+ /** When a login method renders in the two-phase login flow. */
15962
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15963
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15964
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15965
+ kind: literal("redirect"),
15966
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15967
+ id: string(),
15968
+ /** Operator-facing button label. */
15969
+ label: string(),
15970
+ /** lucide-react icon name. */
15971
+ icon: string().optional(),
15972
+ /** Addon-owned HTTP route the button navigates to (GET). */
15973
+ startUrl: string(),
15974
+ stage: LoginStageEnum
15975
+ }), object({
15976
+ kind: literal("widget"),
15977
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15978
+ id: string(),
15979
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15980
+ addonId: string(),
15981
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15982
+ bundle: string(),
15983
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15984
+ remote: WidgetRemoteSchema,
15985
+ stage: LoginStageEnum
15986
+ })]);
15987
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15988
+ /**
15808
15989
  * Orchestrator-side destination metadata. The orchestrator computes
15809
15990
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15810
15991
  * (admin UI, restore flow) see one canonical key.
@@ -17925,7 +18106,17 @@ var TrackSchema = object({
17925
18106
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17926
18107
  totalDistance: number(),
17927
18108
  state: TrackStateSchema,
17928
- active: boolean()
18109
+ active: boolean(),
18110
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18111
+ * track expiry, recomputed on late label). Absent on legacy rows written
18112
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18113
+ importance: number().optional(),
18114
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18115
+ * "best" frame). Absent when the track produced no object events. */
18116
+ bestEventId: string().optional(),
18117
+ /** Tag of the importance sub-signal that dominated the score
18118
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18119
+ importanceReason: string().optional()
17929
18120
  });
17930
18121
  var BaseEventFields = {
17931
18122
  id: string(),
@@ -17990,8 +18181,18 @@ var ObjectEventSchema = object({
17990
18181
  frameHeight: number().optional(),
17991
18182
  /** MediaStore key for the crop attached to this event (if any). */
17992
18183
  mediaKey: string().optional(),
18184
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18185
+ * best-detection full frame). Resolve via the event-media data-plane
18186
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18187
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18188
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18189
+ keyFrameMediaKey: string().optional(),
17993
18190
  /** Populated by B5 (recording playback URL for this event). */
17994
- mediaUrl: string().optional()
18191
+ mediaUrl: string().optional(),
18192
+ /** The parent track's key-event importance [0,1], propagated to every object
18193
+ * event of the track (so an event row can be sorted by importance without a
18194
+ * track join). Absent on legacy rows / before the track was scored. */
18195
+ importance: number().optional()
17995
18196
  });
17996
18197
  var AudioEventSchema = object({
17997
18198
  ...BaseEventFields,
@@ -18015,7 +18216,8 @@ var MediaFileKindEnum = _enum([
18015
18216
  "fullFrame",
18016
18217
  "fullFrameBoxed",
18017
18218
  "faceCrop",
18018
- "plateCrop"
18219
+ "plateCrop",
18220
+ "keyFrame"
18019
18221
  ]);
18020
18222
  var MediaFileSchema = object({
18021
18223
  key: string(),
@@ -18036,6 +18238,32 @@ var DeviceEventQueryInput = object({
18036
18238
  projection: _enum(["full", "slim"]).optional()
18037
18239
  });
18038
18240
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18241
+ var KeyEventQueryInput = object({
18242
+ deviceId: number(),
18243
+ /** Window lower bound (track firstSeen ≥ since). */
18244
+ since: number(),
18245
+ /** Window upper bound (track firstSeen ≤ until). */
18246
+ until: number(),
18247
+ limit: number().int().min(1).max(200).default(50),
18248
+ /** Drop tracks scoring below this importance. */
18249
+ minImportance: number().min(0).max(1).optional(),
18250
+ /** Restrict to a single class (e.g. 'person'). */
18251
+ classFilter: string().optional()
18252
+ });
18253
+ var KeyEventSchema = object({
18254
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18255
+ id: string(),
18256
+ trackId: string(),
18257
+ /** Track start time (firstSeen). */
18258
+ timestamp: number(),
18259
+ className: string(),
18260
+ label: string().optional(),
18261
+ importance: number(),
18262
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18263
+ bestEventId: string(),
18264
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18265
+ windowMs: number().optional()
18266
+ });
18039
18267
  var TrackedDetectionSchema = object({
18040
18268
  trackId: string(),
18041
18269
  className: string(),
@@ -18065,7 +18293,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18065
18293
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18066
18294
  kind: "mutation",
18067
18295
  auth: "admin"
18068
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18296
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18069
18297
  deviceId: number(),
18070
18298
  since: number(),
18071
18299
  until: number(),
@@ -18110,11 +18338,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18110
18338
  timestamp: number()
18111
18339
  });
18112
18340
  var CameraPipelineConfigSchema = object({
18113
- engine: PipelineEngineChoiceSchema,
18341
+ engine: PipelineEngineChoiceSchema.optional(),
18114
18342
  steps: array(PipelineStepInputSchema).readonly(),
18115
18343
  audio: object({
18116
- engine: PipelineEngineChoiceSchema,
18117
- modelId: string(),
18344
+ engine: PipelineEngineChoiceSchema.optional(),
18345
+ modelId: string().optional(),
18118
18346
  enabled: boolean(),
18119
18347
  settings: record(string(), unknown()).readonly().optional()
18120
18348
  }).nullable().optional()
@@ -18129,7 +18357,7 @@ var PipelineTemplateSchema = object({
18129
18357
  });
18130
18358
  var AgentAddonConfigSchema = object({
18131
18359
  enabled: boolean(),
18132
- modelId: string(),
18360
+ modelId: string().optional(),
18133
18361
  settings: record(string(), unknown()).readonly()
18134
18362
  });
18135
18363
  var AgentPipelineSettingsSchema = object({
@@ -18139,12 +18367,25 @@ var AgentPipelineSettingsSchema = object({
18139
18367
  detectWeight: number().positive().optional(),
18140
18368
  /** Node is eligible to run the detection pipeline (decode + inference). */
18141
18369
  detect: boolean().optional(),
18142
- /** Node is eligible to host decoder sessions. */
18370
+ /**
18371
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18372
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18373
+ * the schema ONLY so persisted stores written before the removal still
18374
+ * parse — no code reads it and no write path emits it.
18375
+ */
18143
18376
  decode: boolean().optional(),
18144
18377
  /** Node is eligible to run audio-analyzer sessions. */
18145
18378
  audio: boolean().optional(),
18146
18379
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18147
- ingest: boolean().optional()
18380
+ ingest: boolean().optional(),
18381
+ /**
18382
+ * Operator override for the LAN host a cross-node decoder dials to reach
18383
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18384
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18385
+ * it already uses to reach the hub). Set this only when the auto-detected
18386
+ * address is wrong (multi-homed host, NAT, custom interface).
18387
+ */
18388
+ reachableHost: string().optional()
18148
18389
  });
18149
18390
  var CameraPipelineForAgentSchema = object({
18150
18391
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18192,25 +18433,6 @@ var PipelineAssignmentSchema = object({
18192
18433
  assignedAt: number()
18193
18434
  });
18194
18435
  /**
18195
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18196
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18197
- * → co-located with pipeline → capacity).
18198
- */
18199
- var DecoderAssignmentSchema = object({
18200
- deviceId: number(),
18201
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18202
- decoderNodeId: string(),
18203
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18204
- pinned: boolean(),
18205
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18206
- reason: _enum([
18207
- "manual",
18208
- "co-located",
18209
- "capacity",
18210
- "hardware-affinity"
18211
- ])
18212
- });
18213
- /**
18214
18436
  * Per-agent load summary surfaced to the load balancer + dashboards.
18215
18437
  * Aggregated from each runner's `getLocalLoad` cap call.
18216
18438
  */
@@ -18250,6 +18472,15 @@ var GlobalMetricsSchema = object({
18250
18472
  * capability providers.
18251
18473
  */
18252
18474
  var CapabilityBindingsSchema = record(string(), string());
18475
+ /**
18476
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18477
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18478
+ */
18479
+ var IngestOwnerSchema = object({
18480
+ ownerNodeId: string(),
18481
+ reachableHost: string().optional(),
18482
+ configIssue: string().optional()
18483
+ });
18253
18484
  /** Source block — always present; derives from the stream catalog. */
18254
18485
  var CameraSourceStatusSchema = object({ streams: array(object({
18255
18486
  camStreamId: string(),
@@ -18264,6 +18495,14 @@ var CameraAssignmentStatusSchema = object({
18264
18495
  detectionNodeId: string().nullable(),
18265
18496
  decoderNodeId: string().nullable(),
18266
18497
  audioNodeId: string().nullable(),
18498
+ /**
18499
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18500
+ * hosts the broker/restream) — the cluster ingest owner today
18501
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18502
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18503
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18504
+ */
18505
+ sourceNodeId: string().nullable(),
18267
18506
  pinned: object({
18268
18507
  detection: boolean(),
18269
18508
  decoder: boolean(),
@@ -18396,16 +18635,7 @@ method(object({
18396
18635
  }), object({ success: literal(true) }), {
18397
18636
  kind: "mutation",
18398
18637
  auth: "admin"
18399
- }), method(object({
18400
- deviceId: number(),
18401
- nodeId: string()
18402
- }), _void(), {
18403
- kind: "mutation",
18404
- auth: "admin"
18405
- }), method(object({ deviceId: number() }), _void(), {
18406
- kind: "mutation",
18407
- auth: "admin"
18408
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18638
+ }), method(_void(), IngestOwnerSchema), method(object({
18409
18639
  deviceId: number(),
18410
18640
  nodeId: string()
18411
18641
  }), object({ success: literal(true) }), {
@@ -18426,10 +18656,7 @@ method(object({
18426
18656
  nodeId: string(),
18427
18657
  pinned: boolean(),
18428
18658
  assignedAt: number()
18429
- }))), method(object({
18430
- deviceId: number(),
18431
- pipelineNodeId: string().optional()
18432
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18659
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18433
18660
  nodeId: string(),
18434
18661
  settings: AgentPipelineSettingsSchema
18435
18662
  })).readonly()), method(object({
@@ -18459,12 +18686,26 @@ method(object({
18459
18686
  }), method(object({
18460
18687
  agentNodeId: string(),
18461
18688
  detect: boolean().nullable().optional(),
18462
- decode: boolean().nullable().optional(),
18463
18689
  audio: boolean().nullable().optional(),
18464
18690
  ingest: boolean().nullable().optional()
18465
18691
  }), object({ success: literal(true) }), {
18466
18692
  kind: "mutation",
18467
18693
  auth: "admin"
18694
+ }), method(object({
18695
+ agentNodeId: string(),
18696
+ reachableHost: string().nullable()
18697
+ }), object({ success: literal(true) }), {
18698
+ kind: "mutation",
18699
+ auth: "admin"
18700
+ }), method(object({ agentNodeId: string() }), object({
18701
+ success: literal(true),
18702
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18703
+ effectiveModelId: string().nullable(),
18704
+ /** Number of cameras whose node-scoped overrides were cleared. */
18705
+ clearedCameraOverrides: number()
18706
+ }), {
18707
+ kind: "mutation",
18708
+ auth: "admin"
18468
18709
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18469
18710
  deviceId: number(),
18470
18711
  addonId: string(),
@@ -18509,22 +18750,131 @@ method(object({
18509
18750
  kind: "mutation",
18510
18751
  auth: "admin"
18511
18752
  });
18512
- var RegisteredStreamSchema = object({
18513
- streamId: string(),
18514
- label: string().optional(),
18515
- codec: string(),
18516
- type: _enum(["video", "audio"]),
18517
- sourceUrl: string()
18753
+ /**
18754
+ * server-management — per-NODE singleton capability for a node's ROOT
18755
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18756
+ * agents).
18757
+ *
18758
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18759
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18760
+ * version describes the node. Updates install into
18761
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18762
+ * starter (probation boot + auto-rollback to N-1).
18763
+ *
18764
+ * Providers:
18765
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18766
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18767
+ * unpinned calls.
18768
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18769
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18770
+ * `$hub.registerNode` manifest.
18771
+ *
18772
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18773
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18774
+ * SDK) routes the call to that node's provider via the standard remote
18775
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18776
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18777
+ *
18778
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18779
+ */
18780
+ /**
18781
+ * Where the running hub's code was loaded from:
18782
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18783
+ * plain resolution and runtime updates are refused.
18784
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18785
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18786
+ */
18787
+ var ServerBootModeSchema = _enum([
18788
+ "workspace",
18789
+ "baked",
18790
+ "data-root"
18791
+ ]);
18792
+ /**
18793
+ * Update lifecycle state:
18794
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18795
+ * - `pending-restart` — a version is staged and the node has NOT yet
18796
+ * restarted onto it (still running the OLD version).
18797
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18798
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18799
+ * Apply/rollback are refused in this state and the node must NOT be
18800
+ * manually restarted, or the probation boot auto-rolls-back.
18801
+ */
18802
+ var ServerUpdateStateSchema = _enum([
18803
+ "idle",
18804
+ "checking",
18805
+ "staging",
18806
+ "pending-restart",
18807
+ "awaiting-confirmation"
18808
+ ]);
18809
+ var ServerRollbackInfoSchema = object({
18810
+ /** The version that failed (or was manually rolled back). */
18811
+ fromVersion: string(),
18812
+ /** The version rolled back to; null = the baked seed. */
18813
+ toVersion: string().nullable(),
18814
+ atMs: number(),
18815
+ reason: string()
18518
18816
  });
18519
- var ExposedResourceSchema = object({
18520
- streamId: string(),
18521
- format: string(),
18522
- value: string()
18817
+ var ServerPackageStatusSchema = object({
18818
+ /** Root package name (`@camstack/server` on the hub). */
18819
+ packageName: string(),
18820
+ /** Version of the code the running process ACTUALLY loaded. */
18821
+ runningVersion: string().nullable(),
18822
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18823
+ nodeRuntimeVersion: string().nullable(),
18824
+ /** Active data-dir root version; null when booted from seed/workspace. */
18825
+ activeVersion: string().nullable(),
18826
+ /** N-1 version kept for rollback; null when no previous version exists. */
18827
+ previousVersion: string().nullable(),
18828
+ /** Version of the immutable baked seed closure (image fallback). */
18829
+ seedVersion: string().nullable(),
18830
+ /** Latest registry version from the most recent check (null = never checked). */
18831
+ latestVersion: string().nullable(),
18832
+ updateAvailable: boolean(),
18833
+ bootMode: ServerBootModeSchema,
18834
+ updateState: ServerUpdateStateSchema,
18835
+ /** Version staged + awaiting its probation boot, when one is pending. */
18836
+ pendingVersion: string().nullable(),
18837
+ /** Set when the last freshly-activated version failed its boot health-check. */
18838
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18839
+ /**
18840
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18841
+ * hub is running from the baked seed (or workspace) while installed data-dir
18842
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18843
+ */
18844
+ stateFileCorrupt: boolean(),
18845
+ lastCheckedAtMs: number().nullable()
18846
+ });
18847
+ var ServerUpdateCheckResultSchema = object({
18848
+ packageName: string(),
18849
+ runningVersion: string().nullable(),
18850
+ latestVersion: string().nullable(),
18851
+ updateAvailable: boolean(),
18852
+ checkedAtMs: number(),
18853
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18854
+ error: string().nullable()
18855
+ });
18856
+ var ServerUpdateActionResultSchema = object({
18857
+ accepted: boolean(),
18858
+ targetVersion: string().nullable(),
18859
+ /** True when a graceful restart was scheduled to apply the change. */
18860
+ restarting: boolean(),
18861
+ message: string()
18862
+ });
18863
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18864
+ kind: "mutation",
18865
+ auth: "admin"
18866
+ }), method(object({
18867
+ /** Explicit target version; omitted = latest from the registry. */
18868
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18869
+ kind: "mutation",
18870
+ auth: "admin"
18871
+ }), method(_void(), ServerUpdateActionResultSchema, {
18872
+ kind: "mutation",
18873
+ auth: "admin"
18874
+ }), method(_void(), ServerUpdateActionResultSchema, {
18875
+ kind: "mutation",
18876
+ auth: "admin"
18523
18877
  });
18524
- method(object({
18525
- deviceId: number(),
18526
- streams: array(RegisteredStreamSchema).readonly()
18527
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18528
18878
  /**
18529
18879
  * Query filter for settings-store collections.
18530
18880
  */
@@ -18677,9 +19027,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18677
19027
  /**
18678
19028
  * A single device snapshot returned as base64 JPEG/PNG.
18679
19029
  *
18680
- * Shared with the `snapshot-provider` collection cap the orchestrator
18681
- * receives the same shape from each native provider and from the
18682
- * broker-based fallback.
19030
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19031
+ * the device-native provider (onboard capture) or from the stream-broker
19032
+ * prebuffer fallback.
18683
19033
  */
18684
19034
  var SnapshotImageSchema = object({
18685
19035
  base64: string(),
@@ -18710,11 +19060,12 @@ DeviceType.Camera, method(object({
18710
19060
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18711
19061
  kind: "mutation",
18712
19062
  auth: "admin"
18713
- });
18714
- method(object({ deviceId: number() }), boolean()), method(object({
19063
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18715
19064
  deviceId: number(),
18716
- streamId: string().optional()
18717
- }), SnapshotImageSchema.nullable());
19065
+ lastCapturedAt: number().nullable(),
19066
+ cacheAgeMs: number().nullable(),
19067
+ etag: string().nullable()
19068
+ })));
18718
19069
  /**
18719
19070
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18720
19071
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18965,10 +19316,32 @@ method(_void(), array(TurnServerSchema).readonly());
18965
19316
  * b. `finishAuthentication({userId, response})` → server verifies
18966
19317
  * the assertion, bumps the credential counter, returns ok.
18967
19318
  *
19319
+ * 2b. Usernameless (discoverable-credential) authentication — the
19320
+ * passkey IS the primary factor, no password leg:
19321
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19322
+ * EMPTY `allowCredentials` (the browser offers every resident
19323
+ * passkey it holds for this RP) + `userVerification: 'required'`
19324
+ * (the passkey replaces both factors, so UV is mandatory).
19325
+ * The challenge is stored server-side, NOT bound to any user.
19326
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19327
+ * resolves the credential by the response's credential id,
19328
+ * verifies the assertion against the stored challenge + that
19329
+ * credential's public key/counter, and returns the OWNING
19330
+ * `userId` — the caller (core auth router) mints the session.
19331
+ *
18968
19332
  * 3. Management:
18969
19333
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18970
19334
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18971
19335
  *
19336
+ * 4. Second-factor preference (opt-in, default OFF):
19337
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19338
+ * demanded as a second factor after a password login ONLY when the
19339
+ * user explicitly opts in via `setSecondFactorPreference`.
19340
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19341
+ * row ⇒ `enabled: false`).
19342
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19343
+ * the providing addon beside its credentials.
19344
+ *
18972
19345
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18973
19346
  * the admin-ui composes the begin/finish round-trip and never exposes
18974
19347
  * the cap to non-admins.
@@ -19011,6 +19384,17 @@ method(object({
19011
19384
  }), object({ verified: boolean() }), {
19012
19385
  kind: "mutation",
19013
19386
  access: "view"
19387
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19388
+ kind: "mutation",
19389
+ access: "view"
19390
+ }), method(object({
19391
+ /** AuthenticationResponseJSON from the browser. */
19392
+ response: record(string(), unknown()) }), object({
19393
+ verified: boolean(),
19394
+ userId: string().nullable()
19395
+ }), {
19396
+ kind: "mutation",
19397
+ access: "view"
19014
19398
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19015
19399
  userId: string(),
19016
19400
  credentialId: string()
@@ -19018,6 +19402,13 @@ method(object({
19018
19402
  kind: "mutation",
19019
19403
  auth: "admin",
19020
19404
  access: "delete"
19405
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19406
+ userId: string(),
19407
+ enabled: boolean()
19408
+ }), object({ success: literal(true) }), {
19409
+ kind: "mutation",
19410
+ auth: "admin",
19411
+ access: "create"
19021
19412
  });
19022
19413
  /**
19023
19414
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19075,9 +19466,10 @@ method(object({
19075
19466
  auth: "admin"
19076
19467
  });
19077
19468
  /**
19078
- * Optional client-side hints sent at session creation to help the
19079
- * provider pick the best native source. All fields are optional —
19080
- * a viewer that knows nothing still gets a sane default.
19469
+ * Optional client-side hints sent at session creation to help the provider
19470
+ * pick the best native source. All fields optional — a viewer that knows
19471
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19472
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19081
19473
  */
19082
19474
  var webrtcClientHintsSchema = object({
19083
19475
  viewportWidth: number().int().positive().optional(),
@@ -19088,22 +19480,6 @@ var webrtcClientHintsSchema = object({
19088
19480
  /** Hard tier override; takes precedence over scoring when registered. */
19089
19481
  prefersTier: string().optional()
19090
19482
  }).partial();
19091
- method(object({
19092
- streamId: string(),
19093
- sdpOffer: string()
19094
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19095
- streamId: string(),
19096
- codec: string()
19097
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19098
- streamId: string(),
19099
- hints: webrtcClientHintsSchema.optional()
19100
- }), object({
19101
- sessionId: string(),
19102
- sdpOffer: string()
19103
- }), { kind: "mutation" }), method(object({
19104
- sessionId: string(),
19105
- sdpAnswer: string()
19106
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19107
19483
  /**
19108
19484
  * Discriminated target for a WebRTC session. The client sends this
19109
19485
  * structured object instead of building / parsing brokerId strings;
@@ -19834,7 +20210,17 @@ var FaceInfoSchema = object({
19834
20210
  recognizedIdentityId: string().optional(),
19835
20211
  identityName: string().optional(),
19836
20212
  assigned: boolean(),
19837
- base64: string().optional()
20213
+ base64: string().optional(),
20214
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20215
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20216
+ * legacy rows written before design B. */
20217
+ faceBbox: BoundingBoxSchema.optional(),
20218
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20219
+ * Fetch the native JPEG via the event-media data-plane
20220
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20221
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20222
+ * back to the inline `base64` face crop. */
20223
+ keyFrameMediaKey: string().optional()
19838
20224
  });
19839
20225
  var FaceFilterEnum = _enum([
19840
20226
  "unassigned",
@@ -20531,6 +20917,16 @@ var TopologyCategorySchema = object({
20531
20917
  healthy: number(),
20532
20918
  addons: array(TopologyCategoryAddonSchema).readonly()
20533
20919
  });
20920
+ /**
20921
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20922
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20923
+ * version visibility for the Server management surface. Nullable: offline
20924
+ * rows and pre-phase-2 nodes report none.
20925
+ */
20926
+ var TopologyRootPackageSchema = object({
20927
+ name: string(),
20928
+ version: string()
20929
+ });
20534
20930
  var TopologyNodeSchema = object({
20535
20931
  id: string(),
20536
20932
  name: string(),
@@ -20554,7 +20950,8 @@ var TopologyNodeSchema = object({
20554
20950
  status: string()
20555
20951
  })).readonly(),
20556
20952
  processes: array(TopologyProcessSchema).readonly(),
20557
- categories: array(TopologyCategorySchema).readonly()
20953
+ categories: array(TopologyCategorySchema).readonly(),
20954
+ rootPackage: TopologyRootPackageSchema.nullable()
20558
20955
  });
20559
20956
  var CapUsageEdgeSchema = object({
20560
20957
  callerAddonId: string(),
@@ -23354,6 +23751,12 @@ Object.freeze({
23354
23751
  addonId: null,
23355
23752
  access: "create"
23356
23753
  },
23754
+ "loginMethod.getLoginMethods": {
23755
+ capName: "login-method",
23756
+ capScope: "system",
23757
+ addonId: null,
23758
+ access: "view"
23759
+ },
23357
23760
  "mediaPlayer.next": {
23358
23761
  capName: "media-player",
23359
23762
  capScope: "device",
@@ -23936,6 +24339,12 @@ Object.freeze({
23936
24339
  addonId: null,
23937
24340
  access: "view"
23938
24341
  },
24342
+ "pipelineAnalytics.getKeyEvents": {
24343
+ capName: "pipeline-analytics",
24344
+ capScope: "device",
24345
+ addonId: null,
24346
+ access: "view"
24347
+ },
23939
24348
  "pipelineAnalytics.getMotionEvents": {
23940
24349
  capName: "pipeline-analytics",
23941
24350
  capScope: "device",
@@ -23984,23 +24393,23 @@ Object.freeze({
23984
24393
  addonId: null,
23985
24394
  access: "create"
23986
24395
  },
23987
- "pipelineExecutor.deleteModel": {
24396
+ "pipelineExecutor.clearDeviceOverrides": {
23988
24397
  capName: "pipeline-executor",
23989
24398
  capScope: "system",
23990
24399
  addonId: null,
23991
24400
  access: "delete"
23992
24401
  },
23993
- "pipelineExecutor.deleteTemplate": {
24402
+ "pipelineExecutor.deleteModel": {
23994
24403
  capName: "pipeline-executor",
23995
24404
  capScope: "system",
23996
24405
  addonId: null,
23997
24406
  access: "delete"
23998
24407
  },
23999
- "pipelineExecutor.detect": {
24408
+ "pipelineExecutor.deleteTemplate": {
24000
24409
  capName: "pipeline-executor",
24001
24410
  capScope: "system",
24002
24411
  addonId: null,
24003
- access: "view"
24412
+ access: "delete"
24004
24413
  },
24005
24414
  "pipelineExecutor.downloadModel": {
24006
24415
  capName: "pipeline-executor",
@@ -24194,13 +24603,13 @@ Object.freeze({
24194
24603
  addonId: null,
24195
24604
  access: "create"
24196
24605
  },
24197
- "pipelineOrchestrator.assignAudio": {
24198
- capName: "pipeline-orchestrator",
24606
+ "pipelineExecutor.validatePipeline": {
24607
+ capName: "pipeline-executor",
24199
24608
  capScope: "system",
24200
24609
  addonId: null,
24201
- access: "create"
24610
+ access: "view"
24202
24611
  },
24203
- "pipelineOrchestrator.assignDecoder": {
24612
+ "pipelineOrchestrator.assignAudio": {
24204
24613
  capName: "pipeline-orchestrator",
24205
24614
  capScope: "system",
24206
24615
  addonId: null,
@@ -24284,19 +24693,13 @@ Object.freeze({
24284
24693
  addonId: null,
24285
24694
  access: "view"
24286
24695
  },
24287
- "pipelineOrchestrator.getDecoderAssignment": {
24288
- capName: "pipeline-orchestrator",
24289
- capScope: "system",
24290
- addonId: null,
24291
- access: "view"
24292
- },
24293
- "pipelineOrchestrator.getDecoderAssignments": {
24696
+ "pipelineOrchestrator.getGlobalMetrics": {
24294
24697
  capName: "pipeline-orchestrator",
24295
24698
  capScope: "system",
24296
24699
  addonId: null,
24297
24700
  access: "view"
24298
24701
  },
24299
- "pipelineOrchestrator.getGlobalMetrics": {
24702
+ "pipelineOrchestrator.getIngestOwner": {
24300
24703
  capName: "pipeline-orchestrator",
24301
24704
  capScope: "system",
24302
24705
  addonId: null,
@@ -24338,6 +24741,12 @@ Object.freeze({
24338
24741
  addonId: null,
24339
24742
  access: "delete"
24340
24743
  },
24744
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24745
+ capName: "pipeline-orchestrator",
24746
+ capScope: "system",
24747
+ addonId: null,
24748
+ access: "delete"
24749
+ },
24341
24750
  "pipelineOrchestrator.resolvePipeline": {
24342
24751
  capName: "pipeline-orchestrator",
24343
24752
  capScope: "system",
@@ -24374,37 +24783,37 @@ Object.freeze({
24374
24783
  addonId: null,
24375
24784
  access: "create"
24376
24785
  },
24377
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24786
+ "pipelineOrchestrator.setAgentReachableHost": {
24378
24787
  capName: "pipeline-orchestrator",
24379
24788
  capScope: "system",
24380
24789
  addonId: null,
24381
24790
  access: "create"
24382
24791
  },
24383
- "pipelineOrchestrator.setCameraStepOverride": {
24792
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24384
24793
  capName: "pipeline-orchestrator",
24385
24794
  capScope: "system",
24386
24795
  addonId: null,
24387
24796
  access: "create"
24388
24797
  },
24389
- "pipelineOrchestrator.setCameraStepToggle": {
24798
+ "pipelineOrchestrator.setCameraStepOverride": {
24390
24799
  capName: "pipeline-orchestrator",
24391
24800
  capScope: "system",
24392
24801
  addonId: null,
24393
24802
  access: "create"
24394
24803
  },
24395
- "pipelineOrchestrator.setCapabilityBinding": {
24804
+ "pipelineOrchestrator.setCameraStepToggle": {
24396
24805
  capName: "pipeline-orchestrator",
24397
24806
  capScope: "system",
24398
24807
  addonId: null,
24399
24808
  access: "create"
24400
24809
  },
24401
- "pipelineOrchestrator.unassignAudio": {
24810
+ "pipelineOrchestrator.setCapabilityBinding": {
24402
24811
  capName: "pipeline-orchestrator",
24403
24812
  capScope: "system",
24404
24813
  addonId: null,
24405
24814
  access: "create"
24406
24815
  },
24407
- "pipelineOrchestrator.unassignDecoder": {
24816
+ "pipelineOrchestrator.unassignAudio": {
24408
24817
  capName: "pipeline-orchestrator",
24409
24818
  capScope: "system",
24410
24819
  addonId: null,
@@ -24464,6 +24873,12 @@ Object.freeze({
24464
24873
  addonId: null,
24465
24874
  access: "view"
24466
24875
  },
24876
+ "pipelineRunner.getNativeCrop": {
24877
+ capName: "pipeline-runner",
24878
+ capScope: "system",
24879
+ addonId: null,
24880
+ access: "view"
24881
+ },
24467
24882
  "pipelineRunner.reportMotion": {
24468
24883
  capName: "pipeline-runner",
24469
24884
  capScope: "system",
@@ -24704,33 +25119,45 @@ Object.freeze({
24704
25119
  addonId: null,
24705
25120
  access: "create"
24706
25121
  },
24707
- "restreamer.getExposedResources": {
24708
- capName: "restreamer",
25122
+ "scriptRunner.run": {
25123
+ capName: "script-runner",
25124
+ capScope: "device",
25125
+ addonId: null,
25126
+ access: "create"
25127
+ },
25128
+ "scriptRunner.stop": {
25129
+ capName: "script-runner",
25130
+ capScope: "device",
25131
+ addonId: null,
25132
+ access: "create"
25133
+ },
25134
+ "serverManagement.applyServerUpdate": {
25135
+ capName: "server-management",
24709
25136
  capScope: "system",
24710
25137
  addonId: null,
24711
- access: "view"
25138
+ access: "create"
24712
25139
  },
24713
- "restreamer.registerDevice": {
24714
- capName: "restreamer",
25140
+ "serverManagement.checkServerUpdate": {
25141
+ capName: "server-management",
24715
25142
  capScope: "system",
24716
25143
  addonId: null,
24717
25144
  access: "create"
24718
25145
  },
24719
- "restreamer.unregisterDevice": {
24720
- capName: "restreamer",
25146
+ "serverManagement.getServerPackageStatus": {
25147
+ capName: "server-management",
24721
25148
  capScope: "system",
24722
25149
  addonId: null,
24723
- access: "delete"
25150
+ access: "view"
24724
25151
  },
24725
- "scriptRunner.run": {
24726
- capName: "script-runner",
24727
- capScope: "device",
25152
+ "serverManagement.restartServer": {
25153
+ capName: "server-management",
25154
+ capScope: "system",
24728
25155
  addonId: null,
24729
25156
  access: "create"
24730
25157
  },
24731
- "scriptRunner.stop": {
24732
- capName: "script-runner",
24733
- capScope: "device",
25158
+ "serverManagement.rollbackServerUpdate": {
25159
+ capName: "server-management",
25160
+ capScope: "system",
24734
25161
  addonId: null,
24735
25162
  access: "create"
24736
25163
  },
@@ -24818,23 +25245,17 @@ Object.freeze({
24818
25245
  addonId: null,
24819
25246
  access: "view"
24820
25247
  },
24821
- "snapshot.invalidateCache": {
25248
+ "snapshot.getSnapshotOverview": {
24822
25249
  capName: "snapshot",
24823
25250
  capScope: "device",
24824
25251
  addonId: null,
24825
- access: "create"
24826
- },
24827
- "snapshotProvider.getSnapshot": {
24828
- capName: "snapshot-provider",
24829
- capScope: "system",
24830
- addonId: null,
24831
25252
  access: "view"
24832
25253
  },
24833
- "snapshotProvider.supportsDevice": {
24834
- capName: "snapshot-provider",
24835
- capScope: "system",
25254
+ "snapshot.invalidateCache": {
25255
+ capName: "snapshot",
25256
+ capScope: "device",
24836
25257
  addonId: null,
24837
- access: "view"
25258
+ access: "create"
24838
25259
  },
24839
25260
  "ssoBridge.signBridgeToken": {
24840
25261
  capName: "sso-bridge",
@@ -25262,30 +25683,6 @@ Object.freeze({
25262
25683
  addonId: null,
25263
25684
  access: "view"
25264
25685
  },
25265
- "streamingEngine.getStreamUrl": {
25266
- capName: "streaming-engine",
25267
- capScope: "system",
25268
- addonId: null,
25269
- access: "view"
25270
- },
25271
- "streamingEngine.listStreams": {
25272
- capName: "streaming-engine",
25273
- capScope: "system",
25274
- addonId: null,
25275
- access: "view"
25276
- },
25277
- "streamingEngine.registerStream": {
25278
- capName: "streaming-engine",
25279
- capScope: "system",
25280
- addonId: null,
25281
- access: "create"
25282
- },
25283
- "streamingEngine.unregisterStream": {
25284
- capName: "streaming-engine",
25285
- capScope: "system",
25286
- addonId: null,
25287
- access: "delete"
25288
- },
25289
25686
  "streamParams.getConfigSchema": {
25290
25687
  capName: "stream-params",
25291
25688
  capScope: "device",
@@ -25532,6 +25929,12 @@ Object.freeze({
25532
25929
  addonId: null,
25533
25930
  access: "view"
25534
25931
  },
25932
+ "userPasskeys.beginDiscoverableAuthentication": {
25933
+ capName: "user-passkeys",
25934
+ capScope: "system",
25935
+ addonId: null,
25936
+ access: "view"
25937
+ },
25535
25938
  "userPasskeys.beginRegistration": {
25536
25939
  capName: "user-passkeys",
25537
25940
  capScope: "system",
@@ -25544,12 +25947,24 @@ Object.freeze({
25544
25947
  addonId: null,
25545
25948
  access: "view"
25546
25949
  },
25950
+ "userPasskeys.finishDiscoverableAuthentication": {
25951
+ capName: "user-passkeys",
25952
+ capScope: "system",
25953
+ addonId: null,
25954
+ access: "view"
25955
+ },
25547
25956
  "userPasskeys.finishRegistration": {
25548
25957
  capName: "user-passkeys",
25549
25958
  capScope: "system",
25550
25959
  addonId: null,
25551
25960
  access: "create"
25552
25961
  },
25962
+ "userPasskeys.getSecondFactorPreference": {
25963
+ capName: "user-passkeys",
25964
+ capScope: "system",
25965
+ addonId: null,
25966
+ access: "view"
25967
+ },
25553
25968
  "userPasskeys.listPasskeys": {
25554
25969
  capName: "user-passkeys",
25555
25970
  capScope: "system",
@@ -25562,6 +25977,12 @@ Object.freeze({
25562
25977
  addonId: null,
25563
25978
  access: "delete"
25564
25979
  },
25980
+ "userPasskeys.setSecondFactorPreference": {
25981
+ capName: "user-passkeys",
25982
+ capScope: "system",
25983
+ addonId: null,
25984
+ access: "create"
25985
+ },
25565
25986
  "vacuumControl.locate": {
25566
25987
  capName: "vacuum-control",
25567
25988
  capScope: "device",
@@ -25634,6 +26055,18 @@ Object.freeze({
25634
26055
  addonId: null,
25635
26056
  access: "view"
25636
26057
  },
26058
+ "viewerUi.getStaticDir": {
26059
+ capName: "viewer-ui",
26060
+ capScope: "system",
26061
+ addonId: null,
26062
+ access: "view"
26063
+ },
26064
+ "viewerUi.getVersion": {
26065
+ capName: "viewer-ui",
26066
+ capScope: "system",
26067
+ addonId: null,
26068
+ access: "view"
26069
+ },
25637
26070
  "waterHeater.setAway": {
25638
26071
  capName: "water-heater",
25639
26072
  capScope: "device",
@@ -25652,54 +26085,6 @@ Object.freeze({
25652
26085
  addonId: null,
25653
26086
  access: "create"
25654
26087
  },
25655
- "webrtc.closeSession": {
25656
- capName: "webrtc",
25657
- capScope: "system",
25658
- addonId: null,
25659
- access: "create"
25660
- },
25661
- "webrtc.createSession": {
25662
- capName: "webrtc",
25663
- capScope: "system",
25664
- addonId: null,
25665
- access: "create"
25666
- },
25667
- "webrtc.handleAnswer": {
25668
- capName: "webrtc",
25669
- capScope: "system",
25670
- addonId: null,
25671
- access: "create"
25672
- },
25673
- "webrtc.handleOffer": {
25674
- capName: "webrtc",
25675
- capScope: "system",
25676
- addonId: null,
25677
- access: "create"
25678
- },
25679
- "webrtc.hasAdaptiveBitrate": {
25680
- capName: "webrtc",
25681
- capScope: "system",
25682
- addonId: null,
25683
- access: "view"
25684
- },
25685
- "webrtc.registerStream": {
25686
- capName: "webrtc",
25687
- capScope: "system",
25688
- addonId: null,
25689
- access: "create"
25690
- },
25691
- "webrtc.supportsStream": {
25692
- capName: "webrtc",
25693
- capScope: "system",
25694
- addonId: null,
25695
- access: "view"
25696
- },
25697
- "webrtc.unregisterStream": {
25698
- capName: "webrtc",
25699
- capScope: "system",
25700
- addonId: null,
25701
- access: "delete"
25702
- },
25703
26088
  "webrtcSession.addIceCandidate": {
25704
26089
  capName: "webrtc-session",
25705
26090
  capScope: "device",