@camstack/addon-provider-vesync 0.1.6 → 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 +672 -287
  2. package/dist/addon.mjs +672 -287
  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;
@@ -19793,7 +20169,17 @@ var FaceInfoSchema = object({
19793
20169
  recognizedIdentityId: string().optional(),
19794
20170
  identityName: string().optional(),
19795
20171
  assigned: boolean(),
19796
- base64: string().optional()
20172
+ base64: string().optional(),
20173
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20174
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20175
+ * legacy rows written before design B. */
20176
+ faceBbox: BoundingBoxSchema.optional(),
20177
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20178
+ * Fetch the native JPEG via the event-media data-plane
20179
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20180
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20181
+ * back to the inline `base64` face crop. */
20182
+ keyFrameMediaKey: string().optional()
19797
20183
  });
19798
20184
  var FaceFilterEnum = _enum([
19799
20185
  "unassigned",
@@ -20490,6 +20876,16 @@ var TopologyCategorySchema = object({
20490
20876
  healthy: number(),
20491
20877
  addons: array(TopologyCategoryAddonSchema).readonly()
20492
20878
  });
20879
+ /**
20880
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20881
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20882
+ * version visibility for the Server management surface. Nullable: offline
20883
+ * rows and pre-phase-2 nodes report none.
20884
+ */
20885
+ var TopologyRootPackageSchema = object({
20886
+ name: string(),
20887
+ version: string()
20888
+ });
20493
20889
  var TopologyNodeSchema = object({
20494
20890
  id: string(),
20495
20891
  name: string(),
@@ -20513,7 +20909,8 @@ var TopologyNodeSchema = object({
20513
20909
  status: string()
20514
20910
  })).readonly(),
20515
20911
  processes: array(TopologyProcessSchema).readonly(),
20516
- categories: array(TopologyCategorySchema).readonly()
20912
+ categories: array(TopologyCategorySchema).readonly(),
20913
+ rootPackage: TopologyRootPackageSchema.nullable()
20517
20914
  });
20518
20915
  var CapUsageEdgeSchema = object({
20519
20916
  callerAddonId: string(),
@@ -23313,6 +23710,12 @@ Object.freeze({
23313
23710
  addonId: null,
23314
23711
  access: "create"
23315
23712
  },
23713
+ "loginMethod.getLoginMethods": {
23714
+ capName: "login-method",
23715
+ capScope: "system",
23716
+ addonId: null,
23717
+ access: "view"
23718
+ },
23316
23719
  "mediaPlayer.next": {
23317
23720
  capName: "media-player",
23318
23721
  capScope: "device",
@@ -23895,6 +24298,12 @@ Object.freeze({
23895
24298
  addonId: null,
23896
24299
  access: "view"
23897
24300
  },
24301
+ "pipelineAnalytics.getKeyEvents": {
24302
+ capName: "pipeline-analytics",
24303
+ capScope: "device",
24304
+ addonId: null,
24305
+ access: "view"
24306
+ },
23898
24307
  "pipelineAnalytics.getMotionEvents": {
23899
24308
  capName: "pipeline-analytics",
23900
24309
  capScope: "device",
@@ -23943,23 +24352,23 @@ Object.freeze({
23943
24352
  addonId: null,
23944
24353
  access: "create"
23945
24354
  },
23946
- "pipelineExecutor.deleteModel": {
24355
+ "pipelineExecutor.clearDeviceOverrides": {
23947
24356
  capName: "pipeline-executor",
23948
24357
  capScope: "system",
23949
24358
  addonId: null,
23950
24359
  access: "delete"
23951
24360
  },
23952
- "pipelineExecutor.deleteTemplate": {
24361
+ "pipelineExecutor.deleteModel": {
23953
24362
  capName: "pipeline-executor",
23954
24363
  capScope: "system",
23955
24364
  addonId: null,
23956
24365
  access: "delete"
23957
24366
  },
23958
- "pipelineExecutor.detect": {
24367
+ "pipelineExecutor.deleteTemplate": {
23959
24368
  capName: "pipeline-executor",
23960
24369
  capScope: "system",
23961
24370
  addonId: null,
23962
- access: "view"
24371
+ access: "delete"
23963
24372
  },
23964
24373
  "pipelineExecutor.downloadModel": {
23965
24374
  capName: "pipeline-executor",
@@ -24153,13 +24562,13 @@ Object.freeze({
24153
24562
  addonId: null,
24154
24563
  access: "create"
24155
24564
  },
24156
- "pipelineOrchestrator.assignAudio": {
24157
- capName: "pipeline-orchestrator",
24565
+ "pipelineExecutor.validatePipeline": {
24566
+ capName: "pipeline-executor",
24158
24567
  capScope: "system",
24159
24568
  addonId: null,
24160
- access: "create"
24569
+ access: "view"
24161
24570
  },
24162
- "pipelineOrchestrator.assignDecoder": {
24571
+ "pipelineOrchestrator.assignAudio": {
24163
24572
  capName: "pipeline-orchestrator",
24164
24573
  capScope: "system",
24165
24574
  addonId: null,
@@ -24243,19 +24652,13 @@ Object.freeze({
24243
24652
  addonId: null,
24244
24653
  access: "view"
24245
24654
  },
24246
- "pipelineOrchestrator.getDecoderAssignment": {
24247
- capName: "pipeline-orchestrator",
24248
- capScope: "system",
24249
- addonId: null,
24250
- access: "view"
24251
- },
24252
- "pipelineOrchestrator.getDecoderAssignments": {
24655
+ "pipelineOrchestrator.getGlobalMetrics": {
24253
24656
  capName: "pipeline-orchestrator",
24254
24657
  capScope: "system",
24255
24658
  addonId: null,
24256
24659
  access: "view"
24257
24660
  },
24258
- "pipelineOrchestrator.getGlobalMetrics": {
24661
+ "pipelineOrchestrator.getIngestOwner": {
24259
24662
  capName: "pipeline-orchestrator",
24260
24663
  capScope: "system",
24261
24664
  addonId: null,
@@ -24297,6 +24700,12 @@ Object.freeze({
24297
24700
  addonId: null,
24298
24701
  access: "delete"
24299
24702
  },
24703
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24704
+ capName: "pipeline-orchestrator",
24705
+ capScope: "system",
24706
+ addonId: null,
24707
+ access: "delete"
24708
+ },
24300
24709
  "pipelineOrchestrator.resolvePipeline": {
24301
24710
  capName: "pipeline-orchestrator",
24302
24711
  capScope: "system",
@@ -24333,37 +24742,37 @@ Object.freeze({
24333
24742
  addonId: null,
24334
24743
  access: "create"
24335
24744
  },
24336
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24745
+ "pipelineOrchestrator.setAgentReachableHost": {
24337
24746
  capName: "pipeline-orchestrator",
24338
24747
  capScope: "system",
24339
24748
  addonId: null,
24340
24749
  access: "create"
24341
24750
  },
24342
- "pipelineOrchestrator.setCameraStepOverride": {
24751
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24343
24752
  capName: "pipeline-orchestrator",
24344
24753
  capScope: "system",
24345
24754
  addonId: null,
24346
24755
  access: "create"
24347
24756
  },
24348
- "pipelineOrchestrator.setCameraStepToggle": {
24757
+ "pipelineOrchestrator.setCameraStepOverride": {
24349
24758
  capName: "pipeline-orchestrator",
24350
24759
  capScope: "system",
24351
24760
  addonId: null,
24352
24761
  access: "create"
24353
24762
  },
24354
- "pipelineOrchestrator.setCapabilityBinding": {
24763
+ "pipelineOrchestrator.setCameraStepToggle": {
24355
24764
  capName: "pipeline-orchestrator",
24356
24765
  capScope: "system",
24357
24766
  addonId: null,
24358
24767
  access: "create"
24359
24768
  },
24360
- "pipelineOrchestrator.unassignAudio": {
24769
+ "pipelineOrchestrator.setCapabilityBinding": {
24361
24770
  capName: "pipeline-orchestrator",
24362
24771
  capScope: "system",
24363
24772
  addonId: null,
24364
24773
  access: "create"
24365
24774
  },
24366
- "pipelineOrchestrator.unassignDecoder": {
24775
+ "pipelineOrchestrator.unassignAudio": {
24367
24776
  capName: "pipeline-orchestrator",
24368
24777
  capScope: "system",
24369
24778
  addonId: null,
@@ -24423,6 +24832,12 @@ Object.freeze({
24423
24832
  addonId: null,
24424
24833
  access: "view"
24425
24834
  },
24835
+ "pipelineRunner.getNativeCrop": {
24836
+ capName: "pipeline-runner",
24837
+ capScope: "system",
24838
+ addonId: null,
24839
+ access: "view"
24840
+ },
24426
24841
  "pipelineRunner.reportMotion": {
24427
24842
  capName: "pipeline-runner",
24428
24843
  capScope: "system",
@@ -24663,33 +25078,45 @@ Object.freeze({
24663
25078
  addonId: null,
24664
25079
  access: "create"
24665
25080
  },
24666
- "restreamer.getExposedResources": {
24667
- capName: "restreamer",
25081
+ "scriptRunner.run": {
25082
+ capName: "script-runner",
25083
+ capScope: "device",
25084
+ addonId: null,
25085
+ access: "create"
25086
+ },
25087
+ "scriptRunner.stop": {
25088
+ capName: "script-runner",
25089
+ capScope: "device",
25090
+ addonId: null,
25091
+ access: "create"
25092
+ },
25093
+ "serverManagement.applyServerUpdate": {
25094
+ capName: "server-management",
24668
25095
  capScope: "system",
24669
25096
  addonId: null,
24670
- access: "view"
25097
+ access: "create"
24671
25098
  },
24672
- "restreamer.registerDevice": {
24673
- capName: "restreamer",
25099
+ "serverManagement.checkServerUpdate": {
25100
+ capName: "server-management",
24674
25101
  capScope: "system",
24675
25102
  addonId: null,
24676
25103
  access: "create"
24677
25104
  },
24678
- "restreamer.unregisterDevice": {
24679
- capName: "restreamer",
25105
+ "serverManagement.getServerPackageStatus": {
25106
+ capName: "server-management",
24680
25107
  capScope: "system",
24681
25108
  addonId: null,
24682
- access: "delete"
25109
+ access: "view"
24683
25110
  },
24684
- "scriptRunner.run": {
24685
- capName: "script-runner",
24686
- capScope: "device",
25111
+ "serverManagement.restartServer": {
25112
+ capName: "server-management",
25113
+ capScope: "system",
24687
25114
  addonId: null,
24688
25115
  access: "create"
24689
25116
  },
24690
- "scriptRunner.stop": {
24691
- capName: "script-runner",
24692
- capScope: "device",
25117
+ "serverManagement.rollbackServerUpdate": {
25118
+ capName: "server-management",
25119
+ capScope: "system",
24693
25120
  addonId: null,
24694
25121
  access: "create"
24695
25122
  },
@@ -24777,23 +25204,17 @@ Object.freeze({
24777
25204
  addonId: null,
24778
25205
  access: "view"
24779
25206
  },
24780
- "snapshot.invalidateCache": {
25207
+ "snapshot.getSnapshotOverview": {
24781
25208
  capName: "snapshot",
24782
25209
  capScope: "device",
24783
25210
  addonId: null,
24784
- access: "create"
24785
- },
24786
- "snapshotProvider.getSnapshot": {
24787
- capName: "snapshot-provider",
24788
- capScope: "system",
24789
- addonId: null,
24790
25211
  access: "view"
24791
25212
  },
24792
- "snapshotProvider.supportsDevice": {
24793
- capName: "snapshot-provider",
24794
- capScope: "system",
25213
+ "snapshot.invalidateCache": {
25214
+ capName: "snapshot",
25215
+ capScope: "device",
24795
25216
  addonId: null,
24796
- access: "view"
25217
+ access: "create"
24797
25218
  },
24798
25219
  "ssoBridge.signBridgeToken": {
24799
25220
  capName: "sso-bridge",
@@ -25221,30 +25642,6 @@ Object.freeze({
25221
25642
  addonId: null,
25222
25643
  access: "view"
25223
25644
  },
25224
- "streamingEngine.getStreamUrl": {
25225
- capName: "streaming-engine",
25226
- capScope: "system",
25227
- addonId: null,
25228
- access: "view"
25229
- },
25230
- "streamingEngine.listStreams": {
25231
- capName: "streaming-engine",
25232
- capScope: "system",
25233
- addonId: null,
25234
- access: "view"
25235
- },
25236
- "streamingEngine.registerStream": {
25237
- capName: "streaming-engine",
25238
- capScope: "system",
25239
- addonId: null,
25240
- access: "create"
25241
- },
25242
- "streamingEngine.unregisterStream": {
25243
- capName: "streaming-engine",
25244
- capScope: "system",
25245
- addonId: null,
25246
- access: "delete"
25247
- },
25248
25645
  "streamParams.getConfigSchema": {
25249
25646
  capName: "stream-params",
25250
25647
  capScope: "device",
@@ -25491,6 +25888,12 @@ Object.freeze({
25491
25888
  addonId: null,
25492
25889
  access: "view"
25493
25890
  },
25891
+ "userPasskeys.beginDiscoverableAuthentication": {
25892
+ capName: "user-passkeys",
25893
+ capScope: "system",
25894
+ addonId: null,
25895
+ access: "view"
25896
+ },
25494
25897
  "userPasskeys.beginRegistration": {
25495
25898
  capName: "user-passkeys",
25496
25899
  capScope: "system",
@@ -25503,12 +25906,24 @@ Object.freeze({
25503
25906
  addonId: null,
25504
25907
  access: "view"
25505
25908
  },
25909
+ "userPasskeys.finishDiscoverableAuthentication": {
25910
+ capName: "user-passkeys",
25911
+ capScope: "system",
25912
+ addonId: null,
25913
+ access: "view"
25914
+ },
25506
25915
  "userPasskeys.finishRegistration": {
25507
25916
  capName: "user-passkeys",
25508
25917
  capScope: "system",
25509
25918
  addonId: null,
25510
25919
  access: "create"
25511
25920
  },
25921
+ "userPasskeys.getSecondFactorPreference": {
25922
+ capName: "user-passkeys",
25923
+ capScope: "system",
25924
+ addonId: null,
25925
+ access: "view"
25926
+ },
25512
25927
  "userPasskeys.listPasskeys": {
25513
25928
  capName: "user-passkeys",
25514
25929
  capScope: "system",
@@ -25521,6 +25936,12 @@ Object.freeze({
25521
25936
  addonId: null,
25522
25937
  access: "delete"
25523
25938
  },
25939
+ "userPasskeys.setSecondFactorPreference": {
25940
+ capName: "user-passkeys",
25941
+ capScope: "system",
25942
+ addonId: null,
25943
+ access: "create"
25944
+ },
25524
25945
  "vacuumControl.locate": {
25525
25946
  capName: "vacuum-control",
25526
25947
  capScope: "device",
@@ -25593,6 +26014,18 @@ Object.freeze({
25593
26014
  addonId: null,
25594
26015
  access: "view"
25595
26016
  },
26017
+ "viewerUi.getStaticDir": {
26018
+ capName: "viewer-ui",
26019
+ capScope: "system",
26020
+ addonId: null,
26021
+ access: "view"
26022
+ },
26023
+ "viewerUi.getVersion": {
26024
+ capName: "viewer-ui",
26025
+ capScope: "system",
26026
+ addonId: null,
26027
+ access: "view"
26028
+ },
25596
26029
  "waterHeater.setAway": {
25597
26030
  capName: "water-heater",
25598
26031
  capScope: "device",
@@ -25611,54 +26044,6 @@ Object.freeze({
25611
26044
  addonId: null,
25612
26045
  access: "create"
25613
26046
  },
25614
- "webrtc.closeSession": {
25615
- capName: "webrtc",
25616
- capScope: "system",
25617
- addonId: null,
25618
- access: "create"
25619
- },
25620
- "webrtc.createSession": {
25621
- capName: "webrtc",
25622
- capScope: "system",
25623
- addonId: null,
25624
- access: "create"
25625
- },
25626
- "webrtc.handleAnswer": {
25627
- capName: "webrtc",
25628
- capScope: "system",
25629
- addonId: null,
25630
- access: "create"
25631
- },
25632
- "webrtc.handleOffer": {
25633
- capName: "webrtc",
25634
- capScope: "system",
25635
- addonId: null,
25636
- access: "create"
25637
- },
25638
- "webrtc.hasAdaptiveBitrate": {
25639
- capName: "webrtc",
25640
- capScope: "system",
25641
- addonId: null,
25642
- access: "view"
25643
- },
25644
- "webrtc.registerStream": {
25645
- capName: "webrtc",
25646
- capScope: "system",
25647
- addonId: null,
25648
- access: "create"
25649
- },
25650
- "webrtc.supportsStream": {
25651
- capName: "webrtc",
25652
- capScope: "system",
25653
- addonId: null,
25654
- access: "view"
25655
- },
25656
- "webrtc.unregisterStream": {
25657
- capName: "webrtc",
25658
- capScope: "system",
25659
- addonId: null,
25660
- access: "delete"
25661
- },
25662
26047
  "webrtcSession.addIceCandidate": {
25663
26048
  capName: "webrtc-session",
25664
26049
  capScope: "device",