@camstack/addon-provider-unraid 0.1.5 → 0.1.7

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 +681 -288
  2. package/dist/addon.mjs +681 -288
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -4641,7 +4641,7 @@ function preprocess(fn, schema) {
4641
4641
  });
4642
4642
  }
4643
4643
  //#endregion
4644
- //#region ../types/dist/sleep-CZDdRBua.mjs
4644
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4645
4645
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4646
4646
  EventCategory["SystemBoot"] = "system.boot";
4647
4647
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4827,6 +4827,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4827
4827
  */
4828
4828
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4829
4829
  /**
4830
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4831
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4832
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4833
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4834
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4835
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4836
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4837
+ * topology change, so a dropped event self-heals on the next one (plus the
4838
+ * broker's long backstop reconcile query).
4839
+ */
4840
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4841
+ /**
4830
4842
  * Periodic snapshot of per-node pipeline-runner load
4831
4843
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4832
4844
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5350,10 +5362,6 @@ function hydrateField(field, values) {
5350
5362
  };
5351
5363
  }
5352
5364
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5353
- if (field.type === "password") return {
5354
- ...field,
5355
- value: ""
5356
- };
5357
5365
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5358
5366
  return {
5359
5367
  ...field,
@@ -6737,10 +6745,25 @@ function method(input, output, options) {
6737
6745
  timeoutMs: options?.timeoutMs
6738
6746
  };
6739
6747
  }
6748
+ /**
6749
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6750
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6751
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6752
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6753
+ */
6754
+ function systemMethod(input, output, options) {
6755
+ return {
6756
+ ...method(input, output, options),
6757
+ systemOnly: true
6758
+ };
6759
+ }
6740
6760
  /** Shorthand to define an event schema */
6741
6761
  function event(data) {
6742
6762
  return { data };
6743
6763
  }
6764
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6765
+ var VersionOutputSchema$1 = object({ version: string() });
6766
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6744
6767
  var StaticDirOutputSchema = object({ staticDir: string() });
6745
6768
  var VersionOutputSchema = object({ version: string() });
6746
6769
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6922,6 +6945,36 @@ var ModelFormatsSchema = object({
6922
6945
  tflite: ModelFormatEntrySchema.optional(),
6923
6946
  pt: ModelFormatEntrySchema.optional()
6924
6947
  });
6948
+ /**
6949
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6950
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6951
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6952
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6953
+ * resolution/download/persistence; this is a presentation overlay resolved back
6954
+ * to an `id`.
6955
+ */
6956
+ var ModelVariantGroupSchema = object({
6957
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6958
+ family: string(),
6959
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6960
+ tier: string(),
6961
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6962
+ precision: _enum(["fp32", "int8"]).optional(),
6963
+ /**
6964
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6965
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6966
+ * future performance variants plug into.
6967
+ */
6968
+ optimization: _enum(["standard", "fast"]).optional(),
6969
+ /**
6970
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6971
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6972
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6973
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6974
+ * the group so the selector can offer it as a variant axis.
6975
+ */
6976
+ resolution: number().int().positive().optional()
6977
+ });
6925
6978
  var ModelCatalogEntrySchema = object({
6926
6979
  id: string(),
6927
6980
  name: string(),
@@ -6951,7 +7004,43 @@ var ModelCatalogEntrySchema = object({
6951
7004
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6952
7005
  * Downloaded into the same modelsDir alongside the model file.
6953
7006
  */
6954
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7007
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7008
+ /**
7009
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7010
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7011
+ * model list and excluded from the auto format-default pick. Set on the
7012
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7013
+ * the active lineup stays the coherent curated ladder without deleting a
7014
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7015
+ * an explicit legacy id that has a build for the node's format.
7016
+ */
7017
+ legacy: boolean().optional(),
7018
+ /**
7019
+ * Measured quality/latency metadata — populated from the benchmark addon on
7020
+ * the real node classes. Absent = not yet measured (most entries today; the
7021
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7022
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7023
+ */
7024
+ metrics: object({
7025
+ map50: number().optional(),
7026
+ p95LatencyMs: record(string(), number()).optional()
7027
+ }).optional(),
7028
+ /**
7029
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7030
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7031
+ * the retraining addon and any future commercial distribution.
7032
+ */
7033
+ license: string().optional(),
7034
+ /**
7035
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7036
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7037
+ * of a family's sizes and quantizations collapse into one grouped picker
7038
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7039
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7040
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7041
+ * is a presentation overlay resolved back to an `id`.
7042
+ */
7043
+ group: ModelVariantGroupSchema.optional()
6955
7044
  });
6956
7045
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6957
7046
  format: literal("openvino"),
@@ -7012,8 +7101,8 @@ var RecordingModeSchema = _enum([
7012
7101
  "onAudioThreshold"
7013
7102
  ]);
7014
7103
  /**
7015
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7016
- * reads directly (never inferred from `rules`):
7104
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7105
+ * UI reads directly (never inferred from `rules`):
7017
7106
  * - `off` — not recording.
7018
7107
  * - `events` — record only around triggers (motion / audio threshold),
7019
7108
  * with pre/post-buffer.
@@ -9176,26 +9265,13 @@ onBrightnessChanged: { data: object({
9176
9265
  */
9177
9266
  runtimeState: BrightnessStatusSchema
9178
9267
  };
9268
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9179
9269
  var StreamFormatSchema = _enum([
9180
9270
  "webrtc",
9181
9271
  "hls",
9182
9272
  "mjpeg",
9183
9273
  "rtsp"
9184
9274
  ]);
9185
- var StreamInfoSchema = object({
9186
- streamId: string(),
9187
- format: StreamFormatSchema,
9188
- url: string().nullable(),
9189
- active: boolean()
9190
- });
9191
- method(object({
9192
- streamId: string(),
9193
- sourceUrl: string(),
9194
- codec: string().optional()
9195
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9196
- streamId: string(),
9197
- format: StreamFormatSchema
9198
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9199
9275
  var RtspRestreamEntrySchema = object({
9200
9276
  brokerId: string(),
9201
9277
  url: string(),
@@ -10063,37 +10139,7 @@ var consumablesCapability = {
10063
10139
  scope: "device",
10064
10140
  deviceNative: true,
10065
10141
  mode: "singleton",
10066
- deviceTypes: [
10067
- DeviceType.Camera,
10068
- DeviceType.Hub,
10069
- DeviceType.Light,
10070
- DeviceType.Siren,
10071
- DeviceType.Switch,
10072
- DeviceType.Sensor,
10073
- DeviceType.Thermostat,
10074
- DeviceType.Button,
10075
- DeviceType.EventEmitter,
10076
- DeviceType.Update,
10077
- DeviceType.Generic,
10078
- DeviceType.Notifier,
10079
- DeviceType.Script,
10080
- DeviceType.Automation,
10081
- DeviceType.Lock,
10082
- DeviceType.Cover,
10083
- DeviceType.Valve,
10084
- DeviceType.Humidifier,
10085
- DeviceType.WaterHeater,
10086
- DeviceType.Fan,
10087
- DeviceType.MediaPlayer,
10088
- DeviceType.AlarmPanel,
10089
- DeviceType.Control,
10090
- DeviceType.Presence,
10091
- DeviceType.Weather,
10092
- DeviceType.Vacuum,
10093
- DeviceType.LawnMower,
10094
- DeviceType.Container,
10095
- DeviceType.Image
10096
- ],
10142
+ deviceTypes: Object.values(DeviceType),
10097
10143
  deviceConfig: { ui: {
10098
10144
  kind: "widget",
10099
10145
  widgetId: "host/consumables-panel",
@@ -11551,7 +11597,7 @@ var BoundingBoxSchema = object({
11551
11597
  w: number(),
11552
11598
  h: number()
11553
11599
  });
11554
- var SpatialDetectionSchema = object({
11600
+ object({
11555
11601
  class: string(),
11556
11602
  originalClass: string(),
11557
11603
  score: number(),
@@ -11686,7 +11732,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11686
11732
  enabled: boolean(),
11687
11733
  modelId: string(),
11688
11734
  children: array(PipelineDefaultStepSchema).readonly(),
11689
- engine: PipelineEngineChoiceSchema.optional(),
11690
11735
  group: string().optional(),
11691
11736
  settings: record(string(), unknown()).optional()
11692
11737
  }));
@@ -11711,7 +11756,9 @@ var PipelineModelOptionSchema = object({
11711
11756
  formats: record(string(), object({
11712
11757
  downloaded: boolean(),
11713
11758
  sizeMB: number()
11714
- }))
11759
+ })),
11760
+ group: ModelVariantGroupSchema.optional(),
11761
+ legacy: boolean().optional()
11715
11762
  });
11716
11763
  var ConfigFieldBridge = custom();
11717
11764
  var PipelineAddonSchemaSchema = object({
@@ -11725,6 +11772,7 @@ var PipelineAddonSchemaSchema = object({
11725
11772
  defaultModelId: string(),
11726
11773
  defaultModelIdByFormat: record(string(), string()).optional(),
11727
11774
  enabledByDefault: boolean().optional(),
11775
+ backfillIntoExistingOverrides: boolean().optional(),
11728
11776
  defaultConfidence: number(),
11729
11777
  group: string().optional(),
11730
11778
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11741,11 +11789,6 @@ var PipelineSchemaSchema = object({
11741
11789
  selectedEngine: PipelineEngineChoiceSchema,
11742
11790
  slots: array(PipelineSlotSchemaSchema).readonly()
11743
11791
  });
11744
- var DetectorOutputSchema = object({
11745
- detections: array(SpatialDetectionSchema).readonly(),
11746
- inferenceMs: number(),
11747
- modelId: string()
11748
- });
11749
11792
  var EngineProvisioningSchema = object({
11750
11793
  runtimeId: _enum([
11751
11794
  "onnx",
@@ -11762,15 +11805,42 @@ var EngineProvisioningSchema = object({
11762
11805
  ]),
11763
11806
  progress: number().optional(),
11764
11807
  error: string().optional(),
11765
- nextRetryAt: number().optional()
11808
+ nextRetryAt: number().optional(),
11809
+ /**
11810
+ * Gate A (config-correctness gate at engine change): human-readable
11811
+ * config issues surfaced EAGERLY when the node's engine changes — model
11812
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11813
+ * has a <format> build"). Additive/optional: informational only, never
11814
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11815
+ * Absent/empty when the node-default tree resolves cleanly.
11816
+ */
11817
+ configIssues: array(string()).optional()
11766
11818
  });
11767
11819
  var PipelineStepInputSchema = lazy(() => object({
11768
11820
  addonId: string(),
11769
- modelId: string(),
11821
+ modelId: string().optional(),
11770
11822
  enabled: boolean().default(true),
11771
11823
  children: array(PipelineStepInputSchema).optional(),
11772
11824
  settings: record(string(), unknown()).optional()
11773
11825
  }));
11826
+ var ModelSubstitutionSchema = object({
11827
+ addonId: string(),
11828
+ chosen: string(),
11829
+ running: string(),
11830
+ format: string()
11831
+ });
11832
+ var PipelineValidationIssueSchema = object({
11833
+ addonId: string(),
11834
+ kind: _enum(["unknown-addon", "no-format-build"]),
11835
+ detail: string()
11836
+ });
11837
+ var PipelineValidationResultSchema = object({
11838
+ ok: boolean(),
11839
+ issues: array(PipelineValidationIssueSchema).readonly(),
11840
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11841
+ /** The node's `currentEngine.format` this validation ran against. */
11842
+ format: string()
11843
+ });
11774
11844
  var ReferenceImageEntrySchema = object({
11775
11845
  filename: string(),
11776
11846
  stepIds: array(string()).readonly().optional()
@@ -11841,7 +11911,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11841
11911
  })) }), object({ success: literal(true) }), {
11842
11912
  kind: "mutation",
11843
11913
  auth: "admin"
11844
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11914
+ }), method(object({ nodeId: string() }), object({
11915
+ success: literal(true),
11916
+ clearedDevices: number()
11917
+ }), {
11918
+ kind: "mutation",
11919
+ auth: "admin"
11920
+ }), 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({
11845
11921
  name: string(),
11846
11922
  steps: array(PipelineTemplateStepSchema).readonly(),
11847
11923
  engine: PipelineEngineChoiceSchema
@@ -11858,10 +11934,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11858
11934
  modelId: string(),
11859
11935
  format: ModelFormatSchema$1
11860
11936
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11861
- addonId: string(),
11862
- frame: FrameInputSchema,
11863
- config: record(string(), unknown()).optional()
11864
- }), DetectorOutputSchema), method(object({
11865
11937
  engine: PipelineEngineChoiceSchema.optional(),
11866
11938
  steps: array(PipelineStepInputSchema).min(1),
11867
11939
  frame: FrameInputSchema.optional(),
@@ -12040,6 +12112,25 @@ var zonesCapability = {
12040
12112
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12041
12113
  };
12042
12114
  /**
12115
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12116
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12117
+ * so the caller supplies only the detection-res bbox divided by the detection
12118
+ * dims — no native resolution to plumb.
12119
+ */
12120
+ var NativeCropBboxSchema = object({
12121
+ x: number(),
12122
+ y: number(),
12123
+ w: number(),
12124
+ h: number()
12125
+ });
12126
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12127
+ var NativeCropResultSchema = object({
12128
+ /** Packed rgb (24-bit) pixels of the crop. */
12129
+ bytes: _instanceof(Uint8Array),
12130
+ width: number().int().positive(),
12131
+ height: number().int().positive()
12132
+ });
12133
+ /**
12043
12134
  * Per-camera tunable ranges + defaults. Single source of truth used
12044
12135
  * by both the Zod data schema (validation + default fallback) and
12045
12136
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12134,6 +12225,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12134
12225
  kind: literal("remote-restream"),
12135
12226
  /** The camera's source-owner node (slice 1: always the hub). */
12136
12227
  ownerNodeId: string(),
12228
+ /**
12229
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12230
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12231
+ * dials THIS host for the owner's restream, in preference to the
12232
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12233
+ */
12234
+ ownerReachableHost: string().optional(),
12137
12235
  /** Operator override for the owner host the runner dials. */
12138
12236
  hubHostnameOverride: string().optional()
12139
12237
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12142,13 +12240,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12142
12240
  * specific runner instance via `attachCamera`. Carries everything the
12143
12241
  * runner needs to subscribe to the local broker and execute inference.
12144
12242
  *
12145
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12146
- * optional `audio`) travels with the attach payload. The runner keeps it
12147
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12148
- * restart the orchestrator re-sends the latest snapshot.
12149
- *
12150
- * `engine`/`steps`/`audio` are optional during the additive migration
12151
- * window; once orchestrator + UI are migrated they become required.
12243
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12244
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12245
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12246
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12247
+ * node-local, resolved by the executing runner at dispatch time.
12152
12248
  */
12153
12249
  var RunnerCameraConfigSchema = object({
12154
12250
  deviceId: number(),
@@ -12199,14 +12295,11 @@ var RunnerCameraConfigSchema = object({
12199
12295
  */
12200
12296
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12201
12297
  pipelineEnabled: boolean().default(true),
12202
- /** Engine choice for video steps (runtime+backend+format). */
12203
- engine: PipelineEngineChoiceSchema.optional(),
12204
12298
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12205
12299
  steps: array(PipelineStepInputSchema).readonly().optional(),
12206
12300
  /** Audio classification branch. `enabled:false` disables, null skips. */
12207
12301
  audio: object({
12208
- engine: PipelineEngineChoiceSchema,
12209
- modelId: string(),
12302
+ modelId: string().optional(),
12210
12303
  enabled: boolean()
12211
12304
  }).nullable().optional(),
12212
12305
  /**
@@ -12293,7 +12386,11 @@ var RunnerLocalMetricsSchema = object({
12293
12386
  avgInferenceTimeMs: number(),
12294
12387
  queueDepth: number()
12295
12388
  });
12296
- 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());
12389
+ 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({
12390
+ handle: FrameHandleSchema,
12391
+ bbox: NativeCropBboxSchema,
12392
+ maxWidth: number().int().positive().optional()
12393
+ }), NativeCropResultSchema.nullable());
12297
12394
  /**
12298
12395
  * Hardware / firmware motion sensor cap — binary detected state plus
12299
12396
  * a timestamp of the last observation. Distinct from
@@ -15224,7 +15321,9 @@ var AddonPageDeclarationSchema$1 = object({
15224
15321
  icon: string(),
15225
15322
  path: string(),
15226
15323
  remoteName: string(),
15227
- bundle: string()
15324
+ bundle: string(),
15325
+ section: string().optional(),
15326
+ sectionLabel: string().optional()
15228
15327
  });
15229
15328
  var AddonPageInfoSchema = object({
15230
15329
  addonId: string(),
@@ -15264,7 +15363,18 @@ var AddonPageDeclarationSchema = object({
15264
15363
  * the static-file route can compute an mtime-based cache-buster URL
15265
15364
  * without a separate filesystem stat.
15266
15365
  */
15267
- bundle: string()
15366
+ bundle: string(),
15367
+ /**
15368
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15369
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15370
+ * Any OTHER string creates (or joins) a custom section rendered after
15371
+ * the built-in groups; its label comes from `sectionLabel` (first
15372
+ * declaration wins), falling back to the id. Absent → the legacy
15373
+ * "Addon Pages" group.
15374
+ */
15375
+ section: string().optional(),
15376
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15377
+ sectionLabel: string().optional()
15268
15378
  });
15269
15379
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15270
15380
  var AddonHttpRouteSchema = object({
@@ -15480,6 +15590,17 @@ var WidgetMetadataSchema = object({
15480
15590
  deviceContext: boolean().default(false),
15481
15591
  integrationContext: boolean().default(false)
15482
15592
  }),
15593
+ /**
15594
+ * Loadable BEFORE authentication. The normal widget registry listing
15595
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15596
+ * (the login page) cannot discover a widget through it. A widget that
15597
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15598
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15599
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15600
+ * than the authenticated registry, and its bundle is served by the
15601
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15602
+ */
15603
+ preAuth: boolean().optional().default(false),
15483
15604
  /** Dashboard placement HINTS (operator can override per instance). */
15484
15605
  defaultSize: WidgetSizeEnum.default("md"),
15485
15606
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15781,6 +15902,66 @@ method(object({
15781
15902
  password: string()
15782
15903
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15783
15904
  /**
15905
+ * `login-method` — collection cap through which auth addons contribute
15906
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15907
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15908
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15909
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15910
+ * procedure aggregates them for the unauthenticated login page.
15911
+ *
15912
+ * A contribution is a discriminated union on `kind`:
15913
+ *
15914
+ * - `redirect` — a declarative button. The login page renders a generic
15915
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15916
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15917
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15918
+ * login page needs NO change.
15919
+ *
15920
+ * - `widget` — a Module-Federation widget the login page mounts (via
15921
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15922
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15923
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15924
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15925
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15926
+ *
15927
+ * Every contribution carries a `stage`:
15928
+ * - `primary` — shown on the first credentials screen (OIDC /
15929
+ * magic-link buttons; a future usernameless passkey).
15930
+ * - `second-factor` — shown AFTER the password leg, gated on the
15931
+ * returned `factors` (passkey-as-2FA today).
15932
+ *
15933
+ * `mount: skip` — the cap is read server-side by the core auth router
15934
+ * (`registry.getCollection('login-method')`), never mounted as its own
15935
+ * tRPC router.
15936
+ */
15937
+ /** When a login method renders in the two-phase login flow. */
15938
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15939
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15940
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15941
+ kind: literal("redirect"),
15942
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15943
+ id: string(),
15944
+ /** Operator-facing button label. */
15945
+ label: string(),
15946
+ /** lucide-react icon name. */
15947
+ icon: string().optional(),
15948
+ /** Addon-owned HTTP route the button navigates to (GET). */
15949
+ startUrl: string(),
15950
+ stage: LoginStageEnum
15951
+ }), object({
15952
+ kind: literal("widget"),
15953
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15954
+ id: string(),
15955
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15956
+ addonId: string(),
15957
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15958
+ bundle: string(),
15959
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15960
+ remote: WidgetRemoteSchema,
15961
+ stage: LoginStageEnum
15962
+ })]);
15963
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15964
+ /**
15784
15965
  * Orchestrator-side destination metadata. The orchestrator computes
15785
15966
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15786
15967
  * (admin UI, restore flow) see one canonical key.
@@ -17884,7 +18065,17 @@ var TrackSchema = object({
17884
18065
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17885
18066
  totalDistance: number(),
17886
18067
  state: TrackStateSchema,
17887
- active: boolean()
18068
+ active: boolean(),
18069
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18070
+ * track expiry, recomputed on late label). Absent on legacy rows written
18071
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18072
+ importance: number().optional(),
18073
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18074
+ * "best" frame). Absent when the track produced no object events. */
18075
+ bestEventId: string().optional(),
18076
+ /** Tag of the importance sub-signal that dominated the score
18077
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18078
+ importanceReason: string().optional()
17888
18079
  });
17889
18080
  var BaseEventFields = {
17890
18081
  id: string(),
@@ -17949,8 +18140,18 @@ var ObjectEventSchema = object({
17949
18140
  frameHeight: number().optional(),
17950
18141
  /** MediaStore key for the crop attached to this event (if any). */
17951
18142
  mediaKey: string().optional(),
18143
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18144
+ * best-detection full frame). Resolve via the event-media data-plane
18145
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18146
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18147
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18148
+ keyFrameMediaKey: string().optional(),
17952
18149
  /** Populated by B5 (recording playback URL for this event). */
17953
- mediaUrl: string().optional()
18150
+ mediaUrl: string().optional(),
18151
+ /** The parent track's key-event importance [0,1], propagated to every object
18152
+ * event of the track (so an event row can be sorted by importance without a
18153
+ * track join). Absent on legacy rows / before the track was scored. */
18154
+ importance: number().optional()
17954
18155
  });
17955
18156
  var AudioEventSchema = object({
17956
18157
  ...BaseEventFields,
@@ -17974,7 +18175,8 @@ var MediaFileKindEnum = _enum([
17974
18175
  "fullFrame",
17975
18176
  "fullFrameBoxed",
17976
18177
  "faceCrop",
17977
- "plateCrop"
18178
+ "plateCrop",
18179
+ "keyFrame"
17978
18180
  ]);
17979
18181
  var MediaFileSchema = object({
17980
18182
  key: string(),
@@ -17995,6 +18197,32 @@ var DeviceEventQueryInput = object({
17995
18197
  projection: _enum(["full", "slim"]).optional()
17996
18198
  });
17997
18199
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18200
+ var KeyEventQueryInput = object({
18201
+ deviceId: number(),
18202
+ /** Window lower bound (track firstSeen ≥ since). */
18203
+ since: number(),
18204
+ /** Window upper bound (track firstSeen ≤ until). */
18205
+ until: number(),
18206
+ limit: number().int().min(1).max(200).default(50),
18207
+ /** Drop tracks scoring below this importance. */
18208
+ minImportance: number().min(0).max(1).optional(),
18209
+ /** Restrict to a single class (e.g. 'person'). */
18210
+ classFilter: string().optional()
18211
+ });
18212
+ var KeyEventSchema = object({
18213
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18214
+ id: string(),
18215
+ trackId: string(),
18216
+ /** Track start time (firstSeen). */
18217
+ timestamp: number(),
18218
+ className: string(),
18219
+ label: string().optional(),
18220
+ importance: number(),
18221
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18222
+ bestEventId: string(),
18223
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18224
+ windowMs: number().optional()
18225
+ });
17998
18226
  var TrackedDetectionSchema = object({
17999
18227
  trackId: string(),
18000
18228
  className: string(),
@@ -18024,7 +18252,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18024
18252
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18025
18253
  kind: "mutation",
18026
18254
  auth: "admin"
18027
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18255
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18028
18256
  deviceId: number(),
18029
18257
  since: number(),
18030
18258
  until: number(),
@@ -18069,11 +18297,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18069
18297
  timestamp: number()
18070
18298
  });
18071
18299
  var CameraPipelineConfigSchema = object({
18072
- engine: PipelineEngineChoiceSchema,
18300
+ engine: PipelineEngineChoiceSchema.optional(),
18073
18301
  steps: array(PipelineStepInputSchema).readonly(),
18074
18302
  audio: object({
18075
- engine: PipelineEngineChoiceSchema,
18076
- modelId: string(),
18303
+ engine: PipelineEngineChoiceSchema.optional(),
18304
+ modelId: string().optional(),
18077
18305
  enabled: boolean(),
18078
18306
  settings: record(string(), unknown()).readonly().optional()
18079
18307
  }).nullable().optional()
@@ -18088,7 +18316,7 @@ var PipelineTemplateSchema = object({
18088
18316
  });
18089
18317
  var AgentAddonConfigSchema = object({
18090
18318
  enabled: boolean(),
18091
- modelId: string(),
18319
+ modelId: string().optional(),
18092
18320
  settings: record(string(), unknown()).readonly()
18093
18321
  });
18094
18322
  var AgentPipelineSettingsSchema = object({
@@ -18098,12 +18326,25 @@ var AgentPipelineSettingsSchema = object({
18098
18326
  detectWeight: number().positive().optional(),
18099
18327
  /** Node is eligible to run the detection pipeline (decode + inference). */
18100
18328
  detect: boolean().optional(),
18101
- /** Node is eligible to host decoder sessions. */
18329
+ /**
18330
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18331
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18332
+ * the schema ONLY so persisted stores written before the removal still
18333
+ * parse — no code reads it and no write path emits it.
18334
+ */
18102
18335
  decode: boolean().optional(),
18103
18336
  /** Node is eligible to run audio-analyzer sessions. */
18104
18337
  audio: boolean().optional(),
18105
18338
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18106
- ingest: boolean().optional()
18339
+ ingest: boolean().optional(),
18340
+ /**
18341
+ * Operator override for the LAN host a cross-node decoder dials to reach
18342
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18343
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18344
+ * it already uses to reach the hub). Set this only when the auto-detected
18345
+ * address is wrong (multi-homed host, NAT, custom interface).
18346
+ */
18347
+ reachableHost: string().optional()
18107
18348
  });
18108
18349
  var CameraPipelineForAgentSchema = object({
18109
18350
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18151,25 +18392,6 @@ var PipelineAssignmentSchema = object({
18151
18392
  assignedAt: number()
18152
18393
  });
18153
18394
  /**
18154
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18155
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18156
- * → co-located with pipeline → capacity).
18157
- */
18158
- var DecoderAssignmentSchema = object({
18159
- deviceId: number(),
18160
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18161
- decoderNodeId: string(),
18162
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18163
- pinned: boolean(),
18164
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18165
- reason: _enum([
18166
- "manual",
18167
- "co-located",
18168
- "capacity",
18169
- "hardware-affinity"
18170
- ])
18171
- });
18172
- /**
18173
18395
  * Per-agent load summary surfaced to the load balancer + dashboards.
18174
18396
  * Aggregated from each runner's `getLocalLoad` cap call.
18175
18397
  */
@@ -18209,6 +18431,15 @@ var GlobalMetricsSchema = object({
18209
18431
  * capability providers.
18210
18432
  */
18211
18433
  var CapabilityBindingsSchema = record(string(), string());
18434
+ /**
18435
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18436
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18437
+ */
18438
+ var IngestOwnerSchema = object({
18439
+ ownerNodeId: string(),
18440
+ reachableHost: string().optional(),
18441
+ configIssue: string().optional()
18442
+ });
18212
18443
  /** Source block — always present; derives from the stream catalog. */
18213
18444
  var CameraSourceStatusSchema = object({ streams: array(object({
18214
18445
  camStreamId: string(),
@@ -18223,6 +18454,14 @@ var CameraAssignmentStatusSchema = object({
18223
18454
  detectionNodeId: string().nullable(),
18224
18455
  decoderNodeId: string().nullable(),
18225
18456
  audioNodeId: string().nullable(),
18457
+ /**
18458
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18459
+ * hosts the broker/restream) — the cluster ingest owner today
18460
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18461
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18462
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18463
+ */
18464
+ sourceNodeId: string().nullable(),
18226
18465
  pinned: object({
18227
18466
  detection: boolean(),
18228
18467
  decoder: boolean(),
@@ -18355,16 +18594,7 @@ method(object({
18355
18594
  }), object({ success: literal(true) }), {
18356
18595
  kind: "mutation",
18357
18596
  auth: "admin"
18358
- }), method(object({
18359
- deviceId: number(),
18360
- nodeId: string()
18361
- }), _void(), {
18362
- kind: "mutation",
18363
- auth: "admin"
18364
- }), method(object({ deviceId: number() }), _void(), {
18365
- kind: "mutation",
18366
- auth: "admin"
18367
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18597
+ }), method(_void(), IngestOwnerSchema), method(object({
18368
18598
  deviceId: number(),
18369
18599
  nodeId: string()
18370
18600
  }), object({ success: literal(true) }), {
@@ -18385,10 +18615,7 @@ method(object({
18385
18615
  nodeId: string(),
18386
18616
  pinned: boolean(),
18387
18617
  assignedAt: number()
18388
- }))), method(object({
18389
- deviceId: number(),
18390
- pipelineNodeId: string().optional()
18391
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18618
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18392
18619
  nodeId: string(),
18393
18620
  settings: AgentPipelineSettingsSchema
18394
18621
  })).readonly()), method(object({
@@ -18418,12 +18645,26 @@ method(object({
18418
18645
  }), method(object({
18419
18646
  agentNodeId: string(),
18420
18647
  detect: boolean().nullable().optional(),
18421
- decode: boolean().nullable().optional(),
18422
18648
  audio: boolean().nullable().optional(),
18423
18649
  ingest: boolean().nullable().optional()
18424
18650
  }), object({ success: literal(true) }), {
18425
18651
  kind: "mutation",
18426
18652
  auth: "admin"
18653
+ }), method(object({
18654
+ agentNodeId: string(),
18655
+ reachableHost: string().nullable()
18656
+ }), object({ success: literal(true) }), {
18657
+ kind: "mutation",
18658
+ auth: "admin"
18659
+ }), method(object({ agentNodeId: string() }), object({
18660
+ success: literal(true),
18661
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18662
+ effectiveModelId: string().nullable(),
18663
+ /** Number of cameras whose node-scoped overrides were cleared. */
18664
+ clearedCameraOverrides: number()
18665
+ }), {
18666
+ kind: "mutation",
18667
+ auth: "admin"
18427
18668
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18428
18669
  deviceId: number(),
18429
18670
  addonId: string(),
@@ -18468,22 +18709,131 @@ method(object({
18468
18709
  kind: "mutation",
18469
18710
  auth: "admin"
18470
18711
  });
18471
- var RegisteredStreamSchema = object({
18472
- streamId: string(),
18473
- label: string().optional(),
18474
- codec: string(),
18475
- type: _enum(["video", "audio"]),
18476
- sourceUrl: string()
18712
+ /**
18713
+ * server-management — per-NODE singleton capability for a node's ROOT
18714
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18715
+ * agents).
18716
+ *
18717
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18718
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18719
+ * version describes the node. Updates install into
18720
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18721
+ * starter (probation boot + auto-rollback to N-1).
18722
+ *
18723
+ * Providers:
18724
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18725
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18726
+ * unpinned calls.
18727
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18728
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18729
+ * `$hub.registerNode` manifest.
18730
+ *
18731
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18732
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18733
+ * SDK) routes the call to that node's provider via the standard remote
18734
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18735
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18736
+ *
18737
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18738
+ */
18739
+ /**
18740
+ * Where the running hub's code was loaded from:
18741
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18742
+ * plain resolution and runtime updates are refused.
18743
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18744
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18745
+ */
18746
+ var ServerBootModeSchema = _enum([
18747
+ "workspace",
18748
+ "baked",
18749
+ "data-root"
18750
+ ]);
18751
+ /**
18752
+ * Update lifecycle state:
18753
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18754
+ * - `pending-restart` — a version is staged and the node has NOT yet
18755
+ * restarted onto it (still running the OLD version).
18756
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18757
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18758
+ * Apply/rollback are refused in this state and the node must NOT be
18759
+ * manually restarted, or the probation boot auto-rolls-back.
18760
+ */
18761
+ var ServerUpdateStateSchema = _enum([
18762
+ "idle",
18763
+ "checking",
18764
+ "staging",
18765
+ "pending-restart",
18766
+ "awaiting-confirmation"
18767
+ ]);
18768
+ var ServerRollbackInfoSchema = object({
18769
+ /** The version that failed (or was manually rolled back). */
18770
+ fromVersion: string(),
18771
+ /** The version rolled back to; null = the baked seed. */
18772
+ toVersion: string().nullable(),
18773
+ atMs: number(),
18774
+ reason: string()
18477
18775
  });
18478
- var ExposedResourceSchema = object({
18479
- streamId: string(),
18480
- format: string(),
18481
- value: string()
18776
+ var ServerPackageStatusSchema = object({
18777
+ /** Root package name (`@camstack/server` on the hub). */
18778
+ packageName: string(),
18779
+ /** Version of the code the running process ACTUALLY loaded. */
18780
+ runningVersion: string().nullable(),
18781
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18782
+ nodeRuntimeVersion: string().nullable(),
18783
+ /** Active data-dir root version; null when booted from seed/workspace. */
18784
+ activeVersion: string().nullable(),
18785
+ /** N-1 version kept for rollback; null when no previous version exists. */
18786
+ previousVersion: string().nullable(),
18787
+ /** Version of the immutable baked seed closure (image fallback). */
18788
+ seedVersion: string().nullable(),
18789
+ /** Latest registry version from the most recent check (null = never checked). */
18790
+ latestVersion: string().nullable(),
18791
+ updateAvailable: boolean(),
18792
+ bootMode: ServerBootModeSchema,
18793
+ updateState: ServerUpdateStateSchema,
18794
+ /** Version staged + awaiting its probation boot, when one is pending. */
18795
+ pendingVersion: string().nullable(),
18796
+ /** Set when the last freshly-activated version failed its boot health-check. */
18797
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18798
+ /**
18799
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18800
+ * hub is running from the baked seed (or workspace) while installed data-dir
18801
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18802
+ */
18803
+ stateFileCorrupt: boolean(),
18804
+ lastCheckedAtMs: number().nullable()
18805
+ });
18806
+ var ServerUpdateCheckResultSchema = object({
18807
+ packageName: string(),
18808
+ runningVersion: string().nullable(),
18809
+ latestVersion: string().nullable(),
18810
+ updateAvailable: boolean(),
18811
+ checkedAtMs: number(),
18812
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18813
+ error: string().nullable()
18814
+ });
18815
+ var ServerUpdateActionResultSchema = object({
18816
+ accepted: boolean(),
18817
+ targetVersion: string().nullable(),
18818
+ /** True when a graceful restart was scheduled to apply the change. */
18819
+ restarting: boolean(),
18820
+ message: string()
18821
+ });
18822
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18823
+ kind: "mutation",
18824
+ auth: "admin"
18825
+ }), method(object({
18826
+ /** Explicit target version; omitted = latest from the registry. */
18827
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18828
+ kind: "mutation",
18829
+ auth: "admin"
18830
+ }), method(_void(), ServerUpdateActionResultSchema, {
18831
+ kind: "mutation",
18832
+ auth: "admin"
18833
+ }), method(_void(), ServerUpdateActionResultSchema, {
18834
+ kind: "mutation",
18835
+ auth: "admin"
18482
18836
  });
18483
- method(object({
18484
- deviceId: number(),
18485
- streams: array(RegisteredStreamSchema).readonly()
18486
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18487
18837
  /**
18488
18838
  * Query filter for settings-store collections.
18489
18839
  */
@@ -18636,9 +18986,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18636
18986
  /**
18637
18987
  * A single device snapshot returned as base64 JPEG/PNG.
18638
18988
  *
18639
- * Shared with the `snapshot-provider` collection cap the orchestrator
18640
- * receives the same shape from each native provider and from the
18641
- * broker-based fallback.
18989
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
18990
+ * the device-native provider (onboard capture) or from the stream-broker
18991
+ * prebuffer fallback.
18642
18992
  */
18643
18993
  var SnapshotImageSchema = object({
18644
18994
  base64: string(),
@@ -18669,11 +19019,12 @@ DeviceType.Camera, method(object({
18669
19019
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18670
19020
  kind: "mutation",
18671
19021
  auth: "admin"
18672
- });
18673
- method(object({ deviceId: number() }), boolean()), method(object({
19022
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18674
19023
  deviceId: number(),
18675
- streamId: string().optional()
18676
- }), SnapshotImageSchema.nullable());
19024
+ lastCapturedAt: number().nullable(),
19025
+ cacheAgeMs: number().nullable(),
19026
+ etag: string().nullable()
19027
+ })));
18677
19028
  /**
18678
19029
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18679
19030
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18924,10 +19275,32 @@ method(_void(), array(TurnServerSchema).readonly());
18924
19275
  * b. `finishAuthentication({userId, response})` → server verifies
18925
19276
  * the assertion, bumps the credential counter, returns ok.
18926
19277
  *
19278
+ * 2b. Usernameless (discoverable-credential) authentication — the
19279
+ * passkey IS the primary factor, no password leg:
19280
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19281
+ * EMPTY `allowCredentials` (the browser offers every resident
19282
+ * passkey it holds for this RP) + `userVerification: 'required'`
19283
+ * (the passkey replaces both factors, so UV is mandatory).
19284
+ * The challenge is stored server-side, NOT bound to any user.
19285
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19286
+ * resolves the credential by the response's credential id,
19287
+ * verifies the assertion against the stored challenge + that
19288
+ * credential's public key/counter, and returns the OWNING
19289
+ * `userId` — the caller (core auth router) mints the session.
19290
+ *
18927
19291
  * 3. Management:
18928
19292
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18929
19293
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18930
19294
  *
19295
+ * 4. Second-factor preference (opt-in, default OFF):
19296
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19297
+ * demanded as a second factor after a password login ONLY when the
19298
+ * user explicitly opts in via `setSecondFactorPreference`.
19299
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19300
+ * row ⇒ `enabled: false`).
19301
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19302
+ * the providing addon beside its credentials.
19303
+ *
18931
19304
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18932
19305
  * the admin-ui composes the begin/finish round-trip and never exposes
18933
19306
  * the cap to non-admins.
@@ -18970,6 +19343,17 @@ method(object({
18970
19343
  }), object({ verified: boolean() }), {
18971
19344
  kind: "mutation",
18972
19345
  access: "view"
19346
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19347
+ kind: "mutation",
19348
+ access: "view"
19349
+ }), method(object({
19350
+ /** AuthenticationResponseJSON from the browser. */
19351
+ response: record(string(), unknown()) }), object({
19352
+ verified: boolean(),
19353
+ userId: string().nullable()
19354
+ }), {
19355
+ kind: "mutation",
19356
+ access: "view"
18973
19357
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
18974
19358
  userId: string(),
18975
19359
  credentialId: string()
@@ -18977,6 +19361,13 @@ method(object({
18977
19361
  kind: "mutation",
18978
19362
  auth: "admin",
18979
19363
  access: "delete"
19364
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19365
+ userId: string(),
19366
+ enabled: boolean()
19367
+ }), object({ success: literal(true) }), {
19368
+ kind: "mutation",
19369
+ auth: "admin",
19370
+ access: "create"
18980
19371
  });
18981
19372
  /**
18982
19373
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19034,9 +19425,10 @@ method(object({
19034
19425
  auth: "admin"
19035
19426
  });
19036
19427
  /**
19037
- * Optional client-side hints sent at session creation to help the
19038
- * provider pick the best native source. All fields are optional —
19039
- * a viewer that knows nothing still gets a sane default.
19428
+ * Optional client-side hints sent at session creation to help the provider
19429
+ * pick the best native source. All fields optional — a viewer that knows
19430
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19431
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19040
19432
  */
19041
19433
  var webrtcClientHintsSchema = object({
19042
19434
  viewportWidth: number().int().positive().optional(),
@@ -19047,22 +19439,6 @@ var webrtcClientHintsSchema = object({
19047
19439
  /** Hard tier override; takes precedence over scoring when registered. */
19048
19440
  prefersTier: string().optional()
19049
19441
  }).partial();
19050
- method(object({
19051
- streamId: string(),
19052
- sdpOffer: string()
19053
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19054
- streamId: string(),
19055
- codec: string()
19056
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19057
- streamId: string(),
19058
- hints: webrtcClientHintsSchema.optional()
19059
- }), object({
19060
- sessionId: string(),
19061
- sdpOffer: string()
19062
- }), { kind: "mutation" }), method(object({
19063
- sessionId: string(),
19064
- sdpAnswer: string()
19065
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19066
19442
  /**
19067
19443
  * Discriminated target for a WebRTC session. The client sends this
19068
19444
  * structured object instead of building / parsing brokerId strings;
@@ -19549,7 +19925,15 @@ var FrameworkPackageStatusSchema = object({
19549
19925
  latestVersion: string().nullable(),
19550
19926
  hasUpdate: boolean(),
19551
19927
  /** Optional manifest description for the row tooltip. */
19552
- description: string().optional()
19928
+ description: string().optional(),
19929
+ /**
19930
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
19931
+ * ACTUALLY loaded. Framework packages ship code changes without always
19932
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
19933
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
19934
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
19935
+ */
19936
+ buildId: string().nullable()
19553
19937
  });
19554
19938
  var LogStreamEntrySchema = object({
19555
19939
  timestamp: string(),
@@ -19802,7 +20186,17 @@ var FaceInfoSchema = object({
19802
20186
  recognizedIdentityId: string().optional(),
19803
20187
  identityName: string().optional(),
19804
20188
  assigned: boolean(),
19805
- base64: string().optional()
20189
+ base64: string().optional(),
20190
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20191
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20192
+ * legacy rows written before design B. */
20193
+ faceBbox: BoundingBoxSchema.optional(),
20194
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20195
+ * Fetch the native JPEG via the event-media data-plane
20196
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20197
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20198
+ * back to the inline `base64` face crop. */
20199
+ keyFrameMediaKey: string().optional()
19806
20200
  });
19807
20201
  var FaceFilterEnum = _enum([
19808
20202
  "unassigned",
@@ -20499,6 +20893,16 @@ var TopologyCategorySchema = object({
20499
20893
  healthy: number(),
20500
20894
  addons: array(TopologyCategoryAddonSchema).readonly()
20501
20895
  });
20896
+ /**
20897
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20898
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20899
+ * version visibility for the Server management surface. Nullable: offline
20900
+ * rows and pre-phase-2 nodes report none.
20901
+ */
20902
+ var TopologyRootPackageSchema = object({
20903
+ name: string(),
20904
+ version: string()
20905
+ });
20502
20906
  var TopologyNodeSchema = object({
20503
20907
  id: string(),
20504
20908
  name: string(),
@@ -20522,7 +20926,8 @@ var TopologyNodeSchema = object({
20522
20926
  status: string()
20523
20927
  })).readonly(),
20524
20928
  processes: array(TopologyProcessSchema).readonly(),
20525
- categories: array(TopologyCategorySchema).readonly()
20929
+ categories: array(TopologyCategorySchema).readonly(),
20930
+ rootPackage: TopologyRootPackageSchema.nullable()
20526
20931
  });
20527
20932
  var CapUsageEdgeSchema = object({
20528
20933
  callerAddonId: string(),
@@ -23322,6 +23727,12 @@ Object.freeze({
23322
23727
  addonId: null,
23323
23728
  access: "create"
23324
23729
  },
23730
+ "loginMethod.getLoginMethods": {
23731
+ capName: "login-method",
23732
+ capScope: "system",
23733
+ addonId: null,
23734
+ access: "view"
23735
+ },
23325
23736
  "mediaPlayer.next": {
23326
23737
  capName: "media-player",
23327
23738
  capScope: "device",
@@ -23904,6 +24315,12 @@ Object.freeze({
23904
24315
  addonId: null,
23905
24316
  access: "view"
23906
24317
  },
24318
+ "pipelineAnalytics.getKeyEvents": {
24319
+ capName: "pipeline-analytics",
24320
+ capScope: "device",
24321
+ addonId: null,
24322
+ access: "view"
24323
+ },
23907
24324
  "pipelineAnalytics.getMotionEvents": {
23908
24325
  capName: "pipeline-analytics",
23909
24326
  capScope: "device",
@@ -23952,23 +24369,23 @@ Object.freeze({
23952
24369
  addonId: null,
23953
24370
  access: "create"
23954
24371
  },
23955
- "pipelineExecutor.deleteModel": {
24372
+ "pipelineExecutor.clearDeviceOverrides": {
23956
24373
  capName: "pipeline-executor",
23957
24374
  capScope: "system",
23958
24375
  addonId: null,
23959
24376
  access: "delete"
23960
24377
  },
23961
- "pipelineExecutor.deleteTemplate": {
24378
+ "pipelineExecutor.deleteModel": {
23962
24379
  capName: "pipeline-executor",
23963
24380
  capScope: "system",
23964
24381
  addonId: null,
23965
24382
  access: "delete"
23966
24383
  },
23967
- "pipelineExecutor.detect": {
24384
+ "pipelineExecutor.deleteTemplate": {
23968
24385
  capName: "pipeline-executor",
23969
24386
  capScope: "system",
23970
24387
  addonId: null,
23971
- access: "view"
24388
+ access: "delete"
23972
24389
  },
23973
24390
  "pipelineExecutor.downloadModel": {
23974
24391
  capName: "pipeline-executor",
@@ -24162,13 +24579,13 @@ Object.freeze({
24162
24579
  addonId: null,
24163
24580
  access: "create"
24164
24581
  },
24165
- "pipelineOrchestrator.assignAudio": {
24166
- capName: "pipeline-orchestrator",
24582
+ "pipelineExecutor.validatePipeline": {
24583
+ capName: "pipeline-executor",
24167
24584
  capScope: "system",
24168
24585
  addonId: null,
24169
- access: "create"
24586
+ access: "view"
24170
24587
  },
24171
- "pipelineOrchestrator.assignDecoder": {
24588
+ "pipelineOrchestrator.assignAudio": {
24172
24589
  capName: "pipeline-orchestrator",
24173
24590
  capScope: "system",
24174
24591
  addonId: null,
@@ -24252,19 +24669,13 @@ Object.freeze({
24252
24669
  addonId: null,
24253
24670
  access: "view"
24254
24671
  },
24255
- "pipelineOrchestrator.getDecoderAssignment": {
24256
- capName: "pipeline-orchestrator",
24257
- capScope: "system",
24258
- addonId: null,
24259
- access: "view"
24260
- },
24261
- "pipelineOrchestrator.getDecoderAssignments": {
24672
+ "pipelineOrchestrator.getGlobalMetrics": {
24262
24673
  capName: "pipeline-orchestrator",
24263
24674
  capScope: "system",
24264
24675
  addonId: null,
24265
24676
  access: "view"
24266
24677
  },
24267
- "pipelineOrchestrator.getGlobalMetrics": {
24678
+ "pipelineOrchestrator.getIngestOwner": {
24268
24679
  capName: "pipeline-orchestrator",
24269
24680
  capScope: "system",
24270
24681
  addonId: null,
@@ -24306,6 +24717,12 @@ Object.freeze({
24306
24717
  addonId: null,
24307
24718
  access: "delete"
24308
24719
  },
24720
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24721
+ capName: "pipeline-orchestrator",
24722
+ capScope: "system",
24723
+ addonId: null,
24724
+ access: "delete"
24725
+ },
24309
24726
  "pipelineOrchestrator.resolvePipeline": {
24310
24727
  capName: "pipeline-orchestrator",
24311
24728
  capScope: "system",
@@ -24342,37 +24759,37 @@ Object.freeze({
24342
24759
  addonId: null,
24343
24760
  access: "create"
24344
24761
  },
24345
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24762
+ "pipelineOrchestrator.setAgentReachableHost": {
24346
24763
  capName: "pipeline-orchestrator",
24347
24764
  capScope: "system",
24348
24765
  addonId: null,
24349
24766
  access: "create"
24350
24767
  },
24351
- "pipelineOrchestrator.setCameraStepOverride": {
24768
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24352
24769
  capName: "pipeline-orchestrator",
24353
24770
  capScope: "system",
24354
24771
  addonId: null,
24355
24772
  access: "create"
24356
24773
  },
24357
- "pipelineOrchestrator.setCameraStepToggle": {
24774
+ "pipelineOrchestrator.setCameraStepOverride": {
24358
24775
  capName: "pipeline-orchestrator",
24359
24776
  capScope: "system",
24360
24777
  addonId: null,
24361
24778
  access: "create"
24362
24779
  },
24363
- "pipelineOrchestrator.setCapabilityBinding": {
24780
+ "pipelineOrchestrator.setCameraStepToggle": {
24364
24781
  capName: "pipeline-orchestrator",
24365
24782
  capScope: "system",
24366
24783
  addonId: null,
24367
24784
  access: "create"
24368
24785
  },
24369
- "pipelineOrchestrator.unassignAudio": {
24786
+ "pipelineOrchestrator.setCapabilityBinding": {
24370
24787
  capName: "pipeline-orchestrator",
24371
24788
  capScope: "system",
24372
24789
  addonId: null,
24373
24790
  access: "create"
24374
24791
  },
24375
- "pipelineOrchestrator.unassignDecoder": {
24792
+ "pipelineOrchestrator.unassignAudio": {
24376
24793
  capName: "pipeline-orchestrator",
24377
24794
  capScope: "system",
24378
24795
  addonId: null,
@@ -24432,6 +24849,12 @@ Object.freeze({
24432
24849
  addonId: null,
24433
24850
  access: "view"
24434
24851
  },
24852
+ "pipelineRunner.getNativeCrop": {
24853
+ capName: "pipeline-runner",
24854
+ capScope: "system",
24855
+ addonId: null,
24856
+ access: "view"
24857
+ },
24435
24858
  "pipelineRunner.reportMotion": {
24436
24859
  capName: "pipeline-runner",
24437
24860
  capScope: "system",
@@ -24672,33 +25095,45 @@ Object.freeze({
24672
25095
  addonId: null,
24673
25096
  access: "create"
24674
25097
  },
24675
- "restreamer.getExposedResources": {
24676
- capName: "restreamer",
25098
+ "scriptRunner.run": {
25099
+ capName: "script-runner",
25100
+ capScope: "device",
25101
+ addonId: null,
25102
+ access: "create"
25103
+ },
25104
+ "scriptRunner.stop": {
25105
+ capName: "script-runner",
25106
+ capScope: "device",
25107
+ addonId: null,
25108
+ access: "create"
25109
+ },
25110
+ "serverManagement.applyServerUpdate": {
25111
+ capName: "server-management",
24677
25112
  capScope: "system",
24678
25113
  addonId: null,
24679
- access: "view"
25114
+ access: "create"
24680
25115
  },
24681
- "restreamer.registerDevice": {
24682
- capName: "restreamer",
25116
+ "serverManagement.checkServerUpdate": {
25117
+ capName: "server-management",
24683
25118
  capScope: "system",
24684
25119
  addonId: null,
24685
25120
  access: "create"
24686
25121
  },
24687
- "restreamer.unregisterDevice": {
24688
- capName: "restreamer",
25122
+ "serverManagement.getServerPackageStatus": {
25123
+ capName: "server-management",
24689
25124
  capScope: "system",
24690
25125
  addonId: null,
24691
- access: "delete"
25126
+ access: "view"
24692
25127
  },
24693
- "scriptRunner.run": {
24694
- capName: "script-runner",
24695
- capScope: "device",
25128
+ "serverManagement.restartServer": {
25129
+ capName: "server-management",
25130
+ capScope: "system",
24696
25131
  addonId: null,
24697
25132
  access: "create"
24698
25133
  },
24699
- "scriptRunner.stop": {
24700
- capName: "script-runner",
24701
- capScope: "device",
25134
+ "serverManagement.rollbackServerUpdate": {
25135
+ capName: "server-management",
25136
+ capScope: "system",
24702
25137
  addonId: null,
24703
25138
  access: "create"
24704
25139
  },
@@ -24786,23 +25221,17 @@ Object.freeze({
24786
25221
  addonId: null,
24787
25222
  access: "view"
24788
25223
  },
24789
- "snapshot.invalidateCache": {
25224
+ "snapshot.getSnapshotOverview": {
24790
25225
  capName: "snapshot",
24791
25226
  capScope: "device",
24792
25227
  addonId: null,
24793
- access: "create"
24794
- },
24795
- "snapshotProvider.getSnapshot": {
24796
- capName: "snapshot-provider",
24797
- capScope: "system",
24798
- addonId: null,
24799
25228
  access: "view"
24800
25229
  },
24801
- "snapshotProvider.supportsDevice": {
24802
- capName: "snapshot-provider",
24803
- capScope: "system",
25230
+ "snapshot.invalidateCache": {
25231
+ capName: "snapshot",
25232
+ capScope: "device",
24804
25233
  addonId: null,
24805
- access: "view"
25234
+ access: "create"
24806
25235
  },
24807
25236
  "ssoBridge.signBridgeToken": {
24808
25237
  capName: "sso-bridge",
@@ -25230,30 +25659,6 @@ Object.freeze({
25230
25659
  addonId: null,
25231
25660
  access: "view"
25232
25661
  },
25233
- "streamingEngine.getStreamUrl": {
25234
- capName: "streaming-engine",
25235
- capScope: "system",
25236
- addonId: null,
25237
- access: "view"
25238
- },
25239
- "streamingEngine.listStreams": {
25240
- capName: "streaming-engine",
25241
- capScope: "system",
25242
- addonId: null,
25243
- access: "view"
25244
- },
25245
- "streamingEngine.registerStream": {
25246
- capName: "streaming-engine",
25247
- capScope: "system",
25248
- addonId: null,
25249
- access: "create"
25250
- },
25251
- "streamingEngine.unregisterStream": {
25252
- capName: "streaming-engine",
25253
- capScope: "system",
25254
- addonId: null,
25255
- access: "delete"
25256
- },
25257
25662
  "streamParams.getConfigSchema": {
25258
25663
  capName: "stream-params",
25259
25664
  capScope: "device",
@@ -25500,6 +25905,12 @@ Object.freeze({
25500
25905
  addonId: null,
25501
25906
  access: "view"
25502
25907
  },
25908
+ "userPasskeys.beginDiscoverableAuthentication": {
25909
+ capName: "user-passkeys",
25910
+ capScope: "system",
25911
+ addonId: null,
25912
+ access: "view"
25913
+ },
25503
25914
  "userPasskeys.beginRegistration": {
25504
25915
  capName: "user-passkeys",
25505
25916
  capScope: "system",
@@ -25512,12 +25923,24 @@ Object.freeze({
25512
25923
  addonId: null,
25513
25924
  access: "view"
25514
25925
  },
25926
+ "userPasskeys.finishDiscoverableAuthentication": {
25927
+ capName: "user-passkeys",
25928
+ capScope: "system",
25929
+ addonId: null,
25930
+ access: "view"
25931
+ },
25515
25932
  "userPasskeys.finishRegistration": {
25516
25933
  capName: "user-passkeys",
25517
25934
  capScope: "system",
25518
25935
  addonId: null,
25519
25936
  access: "create"
25520
25937
  },
25938
+ "userPasskeys.getSecondFactorPreference": {
25939
+ capName: "user-passkeys",
25940
+ capScope: "system",
25941
+ addonId: null,
25942
+ access: "view"
25943
+ },
25521
25944
  "userPasskeys.listPasskeys": {
25522
25945
  capName: "user-passkeys",
25523
25946
  capScope: "system",
@@ -25530,6 +25953,12 @@ Object.freeze({
25530
25953
  addonId: null,
25531
25954
  access: "delete"
25532
25955
  },
25956
+ "userPasskeys.setSecondFactorPreference": {
25957
+ capName: "user-passkeys",
25958
+ capScope: "system",
25959
+ addonId: null,
25960
+ access: "create"
25961
+ },
25533
25962
  "vacuumControl.locate": {
25534
25963
  capName: "vacuum-control",
25535
25964
  capScope: "device",
@@ -25602,6 +26031,18 @@ Object.freeze({
25602
26031
  addonId: null,
25603
26032
  access: "view"
25604
26033
  },
26034
+ "viewerUi.getStaticDir": {
26035
+ capName: "viewer-ui",
26036
+ capScope: "system",
26037
+ addonId: null,
26038
+ access: "view"
26039
+ },
26040
+ "viewerUi.getVersion": {
26041
+ capName: "viewer-ui",
26042
+ capScope: "system",
26043
+ addonId: null,
26044
+ access: "view"
26045
+ },
25605
26046
  "waterHeater.setAway": {
25606
26047
  capName: "water-heater",
25607
26048
  capScope: "device",
@@ -25620,54 +26061,6 @@ Object.freeze({
25620
26061
  addonId: null,
25621
26062
  access: "create"
25622
26063
  },
25623
- "webrtc.closeSession": {
25624
- capName: "webrtc",
25625
- capScope: "system",
25626
- addonId: null,
25627
- access: "create"
25628
- },
25629
- "webrtc.createSession": {
25630
- capName: "webrtc",
25631
- capScope: "system",
25632
- addonId: null,
25633
- access: "create"
25634
- },
25635
- "webrtc.handleAnswer": {
25636
- capName: "webrtc",
25637
- capScope: "system",
25638
- addonId: null,
25639
- access: "create"
25640
- },
25641
- "webrtc.handleOffer": {
25642
- capName: "webrtc",
25643
- capScope: "system",
25644
- addonId: null,
25645
- access: "create"
25646
- },
25647
- "webrtc.hasAdaptiveBitrate": {
25648
- capName: "webrtc",
25649
- capScope: "system",
25650
- addonId: null,
25651
- access: "view"
25652
- },
25653
- "webrtc.registerStream": {
25654
- capName: "webrtc",
25655
- capScope: "system",
25656
- addonId: null,
25657
- access: "create"
25658
- },
25659
- "webrtc.supportsStream": {
25660
- capName: "webrtc",
25661
- capScope: "system",
25662
- addonId: null,
25663
- access: "view"
25664
- },
25665
- "webrtc.unregisterStream": {
25666
- capName: "webrtc",
25667
- capScope: "system",
25668
- addonId: null,
25669
- access: "delete"
25670
- },
25671
26064
  "webrtcSession.addIceCandidate": {
25672
26065
  capName: "webrtc-session",
25673
26066
  capScope: "device",