@camstack/addon-provider-ecowitt 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.js CHANGED
@@ -4645,7 +4645,7 @@ function preprocess(fn, schema) {
4645
4645
  });
4646
4646
  }
4647
4647
  //#endregion
4648
- //#region ../types/dist/sleep-CZDdRBua.mjs
4648
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4649
4649
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4650
4650
  EventCategory["SystemBoot"] = "system.boot";
4651
4651
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4831,6 +4831,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4831
4831
  */
4832
4832
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4833
4833
  /**
4834
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4835
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4836
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4837
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4838
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4839
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4840
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4841
+ * topology change, so a dropped event self-heals on the next one (plus the
4842
+ * broker's long backstop reconcile query).
4843
+ */
4844
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4845
+ /**
4834
4846
  * Periodic snapshot of per-node pipeline-runner load
4835
4847
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4836
4848
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5354,10 +5366,6 @@ function hydrateField(field, values) {
5354
5366
  };
5355
5367
  }
5356
5368
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5357
- if (field.type === "password") return {
5358
- ...field,
5359
- value: ""
5360
- };
5361
5369
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5362
5370
  return {
5363
5371
  ...field,
@@ -6741,10 +6749,25 @@ function method(input, output, options) {
6741
6749
  timeoutMs: options?.timeoutMs
6742
6750
  };
6743
6751
  }
6752
+ /**
6753
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6754
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6755
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6756
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6757
+ */
6758
+ function systemMethod(input, output, options) {
6759
+ return {
6760
+ ...method(input, output, options),
6761
+ systemOnly: true
6762
+ };
6763
+ }
6744
6764
  /** Shorthand to define an event schema */
6745
6765
  function event(data) {
6746
6766
  return { data };
6747
6767
  }
6768
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6769
+ var VersionOutputSchema$1 = object({ version: string() });
6770
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6748
6771
  var StaticDirOutputSchema = object({ staticDir: string() });
6749
6772
  var VersionOutputSchema = object({ version: string() });
6750
6773
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6926,6 +6949,36 @@ var ModelFormatsSchema = object({
6926
6949
  tflite: ModelFormatEntrySchema.optional(),
6927
6950
  pt: ModelFormatEntrySchema.optional()
6928
6951
  });
6952
+ /**
6953
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6954
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6955
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6956
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6957
+ * resolution/download/persistence; this is a presentation overlay resolved back
6958
+ * to an `id`.
6959
+ */
6960
+ var ModelVariantGroupSchema = object({
6961
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6962
+ family: string(),
6963
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6964
+ tier: string(),
6965
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6966
+ precision: _enum(["fp32", "int8"]).optional(),
6967
+ /**
6968
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6969
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6970
+ * future performance variants plug into.
6971
+ */
6972
+ optimization: _enum(["standard", "fast"]).optional(),
6973
+ /**
6974
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6975
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6976
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6977
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6978
+ * the group so the selector can offer it as a variant axis.
6979
+ */
6980
+ resolution: number().int().positive().optional()
6981
+ });
6929
6982
  var ModelCatalogEntrySchema = object({
6930
6983
  id: string(),
6931
6984
  name: string(),
@@ -6955,7 +7008,43 @@ var ModelCatalogEntrySchema = object({
6955
7008
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6956
7009
  * Downloaded into the same modelsDir alongside the model file.
6957
7010
  */
6958
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7011
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7012
+ /**
7013
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7014
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7015
+ * model list and excluded from the auto format-default pick. Set on the
7016
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7017
+ * the active lineup stays the coherent curated ladder without deleting a
7018
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7019
+ * an explicit legacy id that has a build for the node's format.
7020
+ */
7021
+ legacy: boolean().optional(),
7022
+ /**
7023
+ * Measured quality/latency metadata — populated from the benchmark addon on
7024
+ * the real node classes. Absent = not yet measured (most entries today; the
7025
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7026
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7027
+ */
7028
+ metrics: object({
7029
+ map50: number().optional(),
7030
+ p95LatencyMs: record(string(), number()).optional()
7031
+ }).optional(),
7032
+ /**
7033
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7034
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7035
+ * the retraining addon and any future commercial distribution.
7036
+ */
7037
+ license: string().optional(),
7038
+ /**
7039
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7040
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7041
+ * of a family's sizes and quantizations collapse into one grouped picker
7042
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7043
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7044
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7045
+ * is a presentation overlay resolved back to an `id`.
7046
+ */
7047
+ group: ModelVariantGroupSchema.optional()
6959
7048
  });
6960
7049
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6961
7050
  format: literal("openvino"),
@@ -7016,8 +7105,8 @@ var RecordingModeSchema = _enum([
7016
7105
  "onAudioThreshold"
7017
7106
  ]);
7018
7107
  /**
7019
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7020
- * reads directly (never inferred from `rules`):
7108
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7109
+ * UI reads directly (never inferred from `rules`):
7021
7110
  * - `off` — not recording.
7022
7111
  * - `events` — record only around triggers (motion / audio threshold),
7023
7112
  * with pre/post-buffer.
@@ -9180,26 +9269,13 @@ onBrightnessChanged: { data: object({
9180
9269
  */
9181
9270
  runtimeState: BrightnessStatusSchema
9182
9271
  };
9272
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9183
9273
  var StreamFormatSchema = _enum([
9184
9274
  "webrtc",
9185
9275
  "hls",
9186
9276
  "mjpeg",
9187
9277
  "rtsp"
9188
9278
  ]);
9189
- var StreamInfoSchema = object({
9190
- streamId: string(),
9191
- format: StreamFormatSchema,
9192
- url: string().nullable(),
9193
- active: boolean()
9194
- });
9195
- method(object({
9196
- streamId: string(),
9197
- sourceUrl: string(),
9198
- codec: string().optional()
9199
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9200
- streamId: string(),
9201
- format: StreamFormatSchema
9202
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9203
9279
  var RtspRestreamEntrySchema = object({
9204
9280
  brokerId: string(),
9205
9281
  url: string(),
@@ -10067,37 +10143,7 @@ var consumablesCapability = {
10067
10143
  scope: "device",
10068
10144
  deviceNative: true,
10069
10145
  mode: "singleton",
10070
- deviceTypes: [
10071
- DeviceType.Camera,
10072
- DeviceType.Hub,
10073
- DeviceType.Light,
10074
- DeviceType.Siren,
10075
- DeviceType.Switch,
10076
- DeviceType.Sensor,
10077
- DeviceType.Thermostat,
10078
- DeviceType.Button,
10079
- DeviceType.EventEmitter,
10080
- DeviceType.Update,
10081
- DeviceType.Generic,
10082
- DeviceType.Notifier,
10083
- DeviceType.Script,
10084
- DeviceType.Automation,
10085
- DeviceType.Lock,
10086
- DeviceType.Cover,
10087
- DeviceType.Valve,
10088
- DeviceType.Humidifier,
10089
- DeviceType.WaterHeater,
10090
- DeviceType.Fan,
10091
- DeviceType.MediaPlayer,
10092
- DeviceType.AlarmPanel,
10093
- DeviceType.Control,
10094
- DeviceType.Presence,
10095
- DeviceType.Weather,
10096
- DeviceType.Vacuum,
10097
- DeviceType.LawnMower,
10098
- DeviceType.Container,
10099
- DeviceType.Image
10100
- ],
10146
+ deviceTypes: Object.values(DeviceType),
10101
10147
  deviceConfig: { ui: {
10102
10148
  kind: "widget",
10103
10149
  widgetId: "host/consumables-panel",
@@ -11555,7 +11601,7 @@ var BoundingBoxSchema = object({
11555
11601
  w: number(),
11556
11602
  h: number()
11557
11603
  });
11558
- var SpatialDetectionSchema = object({
11604
+ object({
11559
11605
  class: string(),
11560
11606
  originalClass: string(),
11561
11607
  score: number(),
@@ -11690,7 +11736,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11690
11736
  enabled: boolean(),
11691
11737
  modelId: string(),
11692
11738
  children: array(PipelineDefaultStepSchema).readonly(),
11693
- engine: PipelineEngineChoiceSchema.optional(),
11694
11739
  group: string().optional(),
11695
11740
  settings: record(string(), unknown()).optional()
11696
11741
  }));
@@ -11715,7 +11760,9 @@ var PipelineModelOptionSchema = object({
11715
11760
  formats: record(string(), object({
11716
11761
  downloaded: boolean(),
11717
11762
  sizeMB: number()
11718
- }))
11763
+ })),
11764
+ group: ModelVariantGroupSchema.optional(),
11765
+ legacy: boolean().optional()
11719
11766
  });
11720
11767
  var ConfigFieldBridge = custom();
11721
11768
  var PipelineAddonSchemaSchema = object({
@@ -11729,6 +11776,7 @@ var PipelineAddonSchemaSchema = object({
11729
11776
  defaultModelId: string(),
11730
11777
  defaultModelIdByFormat: record(string(), string()).optional(),
11731
11778
  enabledByDefault: boolean().optional(),
11779
+ backfillIntoExistingOverrides: boolean().optional(),
11732
11780
  defaultConfidence: number(),
11733
11781
  group: string().optional(),
11734
11782
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11745,11 +11793,6 @@ var PipelineSchemaSchema = object({
11745
11793
  selectedEngine: PipelineEngineChoiceSchema,
11746
11794
  slots: array(PipelineSlotSchemaSchema).readonly()
11747
11795
  });
11748
- var DetectorOutputSchema = object({
11749
- detections: array(SpatialDetectionSchema).readonly(),
11750
- inferenceMs: number(),
11751
- modelId: string()
11752
- });
11753
11796
  var EngineProvisioningSchema = object({
11754
11797
  runtimeId: _enum([
11755
11798
  "onnx",
@@ -11766,15 +11809,42 @@ var EngineProvisioningSchema = object({
11766
11809
  ]),
11767
11810
  progress: number().optional(),
11768
11811
  error: string().optional(),
11769
- nextRetryAt: number().optional()
11812
+ nextRetryAt: number().optional(),
11813
+ /**
11814
+ * Gate A (config-correctness gate at engine change): human-readable
11815
+ * config issues surfaced EAGERLY when the node's engine changes — model
11816
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11817
+ * has a <format> build"). Additive/optional: informational only, never
11818
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11819
+ * Absent/empty when the node-default tree resolves cleanly.
11820
+ */
11821
+ configIssues: array(string()).optional()
11770
11822
  });
11771
11823
  var PipelineStepInputSchema = lazy(() => object({
11772
11824
  addonId: string(),
11773
- modelId: string(),
11825
+ modelId: string().optional(),
11774
11826
  enabled: boolean().default(true),
11775
11827
  children: array(PipelineStepInputSchema).optional(),
11776
11828
  settings: record(string(), unknown()).optional()
11777
11829
  }));
11830
+ var ModelSubstitutionSchema = object({
11831
+ addonId: string(),
11832
+ chosen: string(),
11833
+ running: string(),
11834
+ format: string()
11835
+ });
11836
+ var PipelineValidationIssueSchema = object({
11837
+ addonId: string(),
11838
+ kind: _enum(["unknown-addon", "no-format-build"]),
11839
+ detail: string()
11840
+ });
11841
+ var PipelineValidationResultSchema = object({
11842
+ ok: boolean(),
11843
+ issues: array(PipelineValidationIssueSchema).readonly(),
11844
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11845
+ /** The node's `currentEngine.format` this validation ran against. */
11846
+ format: string()
11847
+ });
11778
11848
  var ReferenceImageEntrySchema = object({
11779
11849
  filename: string(),
11780
11850
  stepIds: array(string()).readonly().optional()
@@ -11845,7 +11915,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11845
11915
  })) }), object({ success: literal(true) }), {
11846
11916
  kind: "mutation",
11847
11917
  auth: "admin"
11848
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11918
+ }), method(object({ nodeId: string() }), object({
11919
+ success: literal(true),
11920
+ clearedDevices: number()
11921
+ }), {
11922
+ kind: "mutation",
11923
+ auth: "admin"
11924
+ }), 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({
11849
11925
  name: string(),
11850
11926
  steps: array(PipelineTemplateStepSchema).readonly(),
11851
11927
  engine: PipelineEngineChoiceSchema
@@ -11862,10 +11938,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11862
11938
  modelId: string(),
11863
11939
  format: ModelFormatSchema$1
11864
11940
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11865
- addonId: string(),
11866
- frame: FrameInputSchema,
11867
- config: record(string(), unknown()).optional()
11868
- }), DetectorOutputSchema), method(object({
11869
11941
  engine: PipelineEngineChoiceSchema.optional(),
11870
11942
  steps: array(PipelineStepInputSchema).min(1),
11871
11943
  frame: FrameInputSchema.optional(),
@@ -12044,6 +12116,25 @@ var zonesCapability = {
12044
12116
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12045
12117
  };
12046
12118
  /**
12119
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12120
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12121
+ * so the caller supplies only the detection-res bbox divided by the detection
12122
+ * dims — no native resolution to plumb.
12123
+ */
12124
+ var NativeCropBboxSchema = object({
12125
+ x: number(),
12126
+ y: number(),
12127
+ w: number(),
12128
+ h: number()
12129
+ });
12130
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12131
+ var NativeCropResultSchema = object({
12132
+ /** Packed rgb (24-bit) pixels of the crop. */
12133
+ bytes: _instanceof(Uint8Array),
12134
+ width: number().int().positive(),
12135
+ height: number().int().positive()
12136
+ });
12137
+ /**
12047
12138
  * Per-camera tunable ranges + defaults. Single source of truth used
12048
12139
  * by both the Zod data schema (validation + default fallback) and
12049
12140
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12138,6 +12229,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12138
12229
  kind: literal("remote-restream"),
12139
12230
  /** The camera's source-owner node (slice 1: always the hub). */
12140
12231
  ownerNodeId: string(),
12232
+ /**
12233
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12234
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12235
+ * dials THIS host for the owner's restream, in preference to the
12236
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12237
+ */
12238
+ ownerReachableHost: string().optional(),
12141
12239
  /** Operator override for the owner host the runner dials. */
12142
12240
  hubHostnameOverride: string().optional()
12143
12241
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12146,13 +12244,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12146
12244
  * specific runner instance via `attachCamera`. Carries everything the
12147
12245
  * runner needs to subscribe to the local broker and execute inference.
12148
12246
  *
12149
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12150
- * optional `audio`) travels with the attach payload. The runner keeps it
12151
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12152
- * restart the orchestrator re-sends the latest snapshot.
12153
- *
12154
- * `engine`/`steps`/`audio` are optional during the additive migration
12155
- * window; once orchestrator + UI are migrated they become required.
12247
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12248
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12249
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12250
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12251
+ * node-local, resolved by the executing runner at dispatch time.
12156
12252
  */
12157
12253
  var RunnerCameraConfigSchema = object({
12158
12254
  deviceId: number(),
@@ -12203,14 +12299,11 @@ var RunnerCameraConfigSchema = object({
12203
12299
  */
12204
12300
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12205
12301
  pipelineEnabled: boolean().default(true),
12206
- /** Engine choice for video steps (runtime+backend+format). */
12207
- engine: PipelineEngineChoiceSchema.optional(),
12208
12302
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12209
12303
  steps: array(PipelineStepInputSchema).readonly().optional(),
12210
12304
  /** Audio classification branch. `enabled:false` disables, null skips. */
12211
12305
  audio: object({
12212
- engine: PipelineEngineChoiceSchema,
12213
- modelId: string(),
12306
+ modelId: string().optional(),
12214
12307
  enabled: boolean()
12215
12308
  }).nullable().optional(),
12216
12309
  /**
@@ -12297,7 +12390,11 @@ var RunnerLocalMetricsSchema = object({
12297
12390
  avgInferenceTimeMs: number(),
12298
12391
  queueDepth: number()
12299
12392
  });
12300
- 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());
12393
+ 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({
12394
+ handle: FrameHandleSchema,
12395
+ bbox: NativeCropBboxSchema,
12396
+ maxWidth: number().int().positive().optional()
12397
+ }), NativeCropResultSchema.nullable());
12301
12398
  /**
12302
12399
  * Hardware / firmware motion sensor cap — binary detected state plus
12303
12400
  * a timestamp of the last observation. Distinct from
@@ -15228,7 +15325,9 @@ var AddonPageDeclarationSchema$1 = object({
15228
15325
  icon: string(),
15229
15326
  path: string(),
15230
15327
  remoteName: string(),
15231
- bundle: string()
15328
+ bundle: string(),
15329
+ section: string().optional(),
15330
+ sectionLabel: string().optional()
15232
15331
  });
15233
15332
  var AddonPageInfoSchema = object({
15234
15333
  addonId: string(),
@@ -15268,7 +15367,18 @@ var AddonPageDeclarationSchema = object({
15268
15367
  * the static-file route can compute an mtime-based cache-buster URL
15269
15368
  * without a separate filesystem stat.
15270
15369
  */
15271
- bundle: string()
15370
+ bundle: string(),
15371
+ /**
15372
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15373
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15374
+ * Any OTHER string creates (or joins) a custom section rendered after
15375
+ * the built-in groups; its label comes from `sectionLabel` (first
15376
+ * declaration wins), falling back to the id. Absent → the legacy
15377
+ * "Addon Pages" group.
15378
+ */
15379
+ section: string().optional(),
15380
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15381
+ sectionLabel: string().optional()
15272
15382
  });
15273
15383
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15274
15384
  var AddonHttpRouteSchema = object({
@@ -15484,6 +15594,17 @@ var WidgetMetadataSchema = object({
15484
15594
  deviceContext: boolean().default(false),
15485
15595
  integrationContext: boolean().default(false)
15486
15596
  }),
15597
+ /**
15598
+ * Loadable BEFORE authentication. The normal widget registry listing
15599
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15600
+ * (the login page) cannot discover a widget through it. A widget that
15601
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15602
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15603
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15604
+ * than the authenticated registry, and its bundle is served by the
15605
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15606
+ */
15607
+ preAuth: boolean().optional().default(false),
15487
15608
  /** Dashboard placement HINTS (operator can override per instance). */
15488
15609
  defaultSize: WidgetSizeEnum.default("md"),
15489
15610
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15785,6 +15906,66 @@ method(object({
15785
15906
  password: string()
15786
15907
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15787
15908
  /**
15909
+ * `login-method` — collection cap through which auth addons contribute
15910
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15911
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15912
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15913
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15914
+ * procedure aggregates them for the unauthenticated login page.
15915
+ *
15916
+ * A contribution is a discriminated union on `kind`:
15917
+ *
15918
+ * - `redirect` — a declarative button. The login page renders a generic
15919
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15920
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15921
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15922
+ * login page needs NO change.
15923
+ *
15924
+ * - `widget` — a Module-Federation widget the login page mounts (via
15925
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15926
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15927
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15928
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15929
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15930
+ *
15931
+ * Every contribution carries a `stage`:
15932
+ * - `primary` — shown on the first credentials screen (OIDC /
15933
+ * magic-link buttons; a future usernameless passkey).
15934
+ * - `second-factor` — shown AFTER the password leg, gated on the
15935
+ * returned `factors` (passkey-as-2FA today).
15936
+ *
15937
+ * `mount: skip` — the cap is read server-side by the core auth router
15938
+ * (`registry.getCollection('login-method')`), never mounted as its own
15939
+ * tRPC router.
15940
+ */
15941
+ /** When a login method renders in the two-phase login flow. */
15942
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15943
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15944
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15945
+ kind: literal("redirect"),
15946
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15947
+ id: string(),
15948
+ /** Operator-facing button label. */
15949
+ label: string(),
15950
+ /** lucide-react icon name. */
15951
+ icon: string().optional(),
15952
+ /** Addon-owned HTTP route the button navigates to (GET). */
15953
+ startUrl: string(),
15954
+ stage: LoginStageEnum
15955
+ }), object({
15956
+ kind: literal("widget"),
15957
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15958
+ id: string(),
15959
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15960
+ addonId: string(),
15961
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15962
+ bundle: string(),
15963
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15964
+ remote: WidgetRemoteSchema,
15965
+ stage: LoginStageEnum
15966
+ })]);
15967
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15968
+ /**
15788
15969
  * Orchestrator-side destination metadata. The orchestrator computes
15789
15970
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15790
15971
  * (admin UI, restore flow) see one canonical key.
@@ -17888,7 +18069,17 @@ var TrackSchema = object({
17888
18069
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17889
18070
  totalDistance: number(),
17890
18071
  state: TrackStateSchema,
17891
- active: boolean()
18072
+ active: boolean(),
18073
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18074
+ * track expiry, recomputed on late label). Absent on legacy rows written
18075
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18076
+ importance: number().optional(),
18077
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18078
+ * "best" frame). Absent when the track produced no object events. */
18079
+ bestEventId: string().optional(),
18080
+ /** Tag of the importance sub-signal that dominated the score
18081
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18082
+ importanceReason: string().optional()
17892
18083
  });
17893
18084
  var BaseEventFields = {
17894
18085
  id: string(),
@@ -17953,8 +18144,18 @@ var ObjectEventSchema = object({
17953
18144
  frameHeight: number().optional(),
17954
18145
  /** MediaStore key for the crop attached to this event (if any). */
17955
18146
  mediaKey: string().optional(),
18147
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18148
+ * best-detection full frame). Resolve via the event-media data-plane
18149
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18150
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18151
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18152
+ keyFrameMediaKey: string().optional(),
17956
18153
  /** Populated by B5 (recording playback URL for this event). */
17957
- mediaUrl: string().optional()
18154
+ mediaUrl: string().optional(),
18155
+ /** The parent track's key-event importance [0,1], propagated to every object
18156
+ * event of the track (so an event row can be sorted by importance without a
18157
+ * track join). Absent on legacy rows / before the track was scored. */
18158
+ importance: number().optional()
17958
18159
  });
17959
18160
  var AudioEventSchema = object({
17960
18161
  ...BaseEventFields,
@@ -17978,7 +18179,8 @@ var MediaFileKindEnum = _enum([
17978
18179
  "fullFrame",
17979
18180
  "fullFrameBoxed",
17980
18181
  "faceCrop",
17981
- "plateCrop"
18182
+ "plateCrop",
18183
+ "keyFrame"
17982
18184
  ]);
17983
18185
  var MediaFileSchema = object({
17984
18186
  key: string(),
@@ -17999,6 +18201,32 @@ var DeviceEventQueryInput = object({
17999
18201
  projection: _enum(["full", "slim"]).optional()
18000
18202
  });
18001
18203
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18204
+ var KeyEventQueryInput = object({
18205
+ deviceId: number(),
18206
+ /** Window lower bound (track firstSeen ≥ since). */
18207
+ since: number(),
18208
+ /** Window upper bound (track firstSeen ≤ until). */
18209
+ until: number(),
18210
+ limit: number().int().min(1).max(200).default(50),
18211
+ /** Drop tracks scoring below this importance. */
18212
+ minImportance: number().min(0).max(1).optional(),
18213
+ /** Restrict to a single class (e.g. 'person'). */
18214
+ classFilter: string().optional()
18215
+ });
18216
+ var KeyEventSchema = object({
18217
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18218
+ id: string(),
18219
+ trackId: string(),
18220
+ /** Track start time (firstSeen). */
18221
+ timestamp: number(),
18222
+ className: string(),
18223
+ label: string().optional(),
18224
+ importance: number(),
18225
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18226
+ bestEventId: string(),
18227
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18228
+ windowMs: number().optional()
18229
+ });
18002
18230
  var TrackedDetectionSchema = object({
18003
18231
  trackId: string(),
18004
18232
  className: string(),
@@ -18028,7 +18256,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18028
18256
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18029
18257
  kind: "mutation",
18030
18258
  auth: "admin"
18031
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18259
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18032
18260
  deviceId: number(),
18033
18261
  since: number(),
18034
18262
  until: number(),
@@ -18073,11 +18301,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18073
18301
  timestamp: number()
18074
18302
  });
18075
18303
  var CameraPipelineConfigSchema = object({
18076
- engine: PipelineEngineChoiceSchema,
18304
+ engine: PipelineEngineChoiceSchema.optional(),
18077
18305
  steps: array(PipelineStepInputSchema).readonly(),
18078
18306
  audio: object({
18079
- engine: PipelineEngineChoiceSchema,
18080
- modelId: string(),
18307
+ engine: PipelineEngineChoiceSchema.optional(),
18308
+ modelId: string().optional(),
18081
18309
  enabled: boolean(),
18082
18310
  settings: record(string(), unknown()).readonly().optional()
18083
18311
  }).nullable().optional()
@@ -18092,7 +18320,7 @@ var PipelineTemplateSchema = object({
18092
18320
  });
18093
18321
  var AgentAddonConfigSchema = object({
18094
18322
  enabled: boolean(),
18095
- modelId: string(),
18323
+ modelId: string().optional(),
18096
18324
  settings: record(string(), unknown()).readonly()
18097
18325
  });
18098
18326
  var AgentPipelineSettingsSchema = object({
@@ -18102,12 +18330,25 @@ var AgentPipelineSettingsSchema = object({
18102
18330
  detectWeight: number().positive().optional(),
18103
18331
  /** Node is eligible to run the detection pipeline (decode + inference). */
18104
18332
  detect: boolean().optional(),
18105
- /** Node is eligible to host decoder sessions. */
18333
+ /**
18334
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18335
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18336
+ * the schema ONLY so persisted stores written before the removal still
18337
+ * parse — no code reads it and no write path emits it.
18338
+ */
18106
18339
  decode: boolean().optional(),
18107
18340
  /** Node is eligible to run audio-analyzer sessions. */
18108
18341
  audio: boolean().optional(),
18109
18342
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18110
- ingest: boolean().optional()
18343
+ ingest: boolean().optional(),
18344
+ /**
18345
+ * Operator override for the LAN host a cross-node decoder dials to reach
18346
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18347
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18348
+ * it already uses to reach the hub). Set this only when the auto-detected
18349
+ * address is wrong (multi-homed host, NAT, custom interface).
18350
+ */
18351
+ reachableHost: string().optional()
18111
18352
  });
18112
18353
  var CameraPipelineForAgentSchema = object({
18113
18354
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18155,25 +18396,6 @@ var PipelineAssignmentSchema = object({
18155
18396
  assignedAt: number()
18156
18397
  });
18157
18398
  /**
18158
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18159
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18160
- * → co-located with pipeline → capacity).
18161
- */
18162
- var DecoderAssignmentSchema = object({
18163
- deviceId: number(),
18164
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18165
- decoderNodeId: string(),
18166
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18167
- pinned: boolean(),
18168
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18169
- reason: _enum([
18170
- "manual",
18171
- "co-located",
18172
- "capacity",
18173
- "hardware-affinity"
18174
- ])
18175
- });
18176
- /**
18177
18399
  * Per-agent load summary surfaced to the load balancer + dashboards.
18178
18400
  * Aggregated from each runner's `getLocalLoad` cap call.
18179
18401
  */
@@ -18213,6 +18435,15 @@ var GlobalMetricsSchema = object({
18213
18435
  * capability providers.
18214
18436
  */
18215
18437
  var CapabilityBindingsSchema = record(string(), string());
18438
+ /**
18439
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18440
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18441
+ */
18442
+ var IngestOwnerSchema = object({
18443
+ ownerNodeId: string(),
18444
+ reachableHost: string().optional(),
18445
+ configIssue: string().optional()
18446
+ });
18216
18447
  /** Source block — always present; derives from the stream catalog. */
18217
18448
  var CameraSourceStatusSchema = object({ streams: array(object({
18218
18449
  camStreamId: string(),
@@ -18227,6 +18458,14 @@ var CameraAssignmentStatusSchema = object({
18227
18458
  detectionNodeId: string().nullable(),
18228
18459
  decoderNodeId: string().nullable(),
18229
18460
  audioNodeId: string().nullable(),
18461
+ /**
18462
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18463
+ * hosts the broker/restream) — the cluster ingest owner today
18464
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18465
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18466
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18467
+ */
18468
+ sourceNodeId: string().nullable(),
18230
18469
  pinned: object({
18231
18470
  detection: boolean(),
18232
18471
  decoder: boolean(),
@@ -18359,16 +18598,7 @@ method(object({
18359
18598
  }), object({ success: literal(true) }), {
18360
18599
  kind: "mutation",
18361
18600
  auth: "admin"
18362
- }), method(object({
18363
- deviceId: number(),
18364
- nodeId: string()
18365
- }), _void(), {
18366
- kind: "mutation",
18367
- auth: "admin"
18368
- }), method(object({ deviceId: number() }), _void(), {
18369
- kind: "mutation",
18370
- auth: "admin"
18371
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18601
+ }), method(_void(), IngestOwnerSchema), method(object({
18372
18602
  deviceId: number(),
18373
18603
  nodeId: string()
18374
18604
  }), object({ success: literal(true) }), {
@@ -18389,10 +18619,7 @@ method(object({
18389
18619
  nodeId: string(),
18390
18620
  pinned: boolean(),
18391
18621
  assignedAt: number()
18392
- }))), method(object({
18393
- deviceId: number(),
18394
- pipelineNodeId: string().optional()
18395
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18622
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18396
18623
  nodeId: string(),
18397
18624
  settings: AgentPipelineSettingsSchema
18398
18625
  })).readonly()), method(object({
@@ -18422,12 +18649,26 @@ method(object({
18422
18649
  }), method(object({
18423
18650
  agentNodeId: string(),
18424
18651
  detect: boolean().nullable().optional(),
18425
- decode: boolean().nullable().optional(),
18426
18652
  audio: boolean().nullable().optional(),
18427
18653
  ingest: boolean().nullable().optional()
18428
18654
  }), object({ success: literal(true) }), {
18429
18655
  kind: "mutation",
18430
18656
  auth: "admin"
18657
+ }), method(object({
18658
+ agentNodeId: string(),
18659
+ reachableHost: string().nullable()
18660
+ }), object({ success: literal(true) }), {
18661
+ kind: "mutation",
18662
+ auth: "admin"
18663
+ }), method(object({ agentNodeId: string() }), object({
18664
+ success: literal(true),
18665
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18666
+ effectiveModelId: string().nullable(),
18667
+ /** Number of cameras whose node-scoped overrides were cleared. */
18668
+ clearedCameraOverrides: number()
18669
+ }), {
18670
+ kind: "mutation",
18671
+ auth: "admin"
18431
18672
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18432
18673
  deviceId: number(),
18433
18674
  addonId: string(),
@@ -18472,22 +18713,131 @@ method(object({
18472
18713
  kind: "mutation",
18473
18714
  auth: "admin"
18474
18715
  });
18475
- var RegisteredStreamSchema = object({
18476
- streamId: string(),
18477
- label: string().optional(),
18478
- codec: string(),
18479
- type: _enum(["video", "audio"]),
18480
- sourceUrl: string()
18716
+ /**
18717
+ * server-management — per-NODE singleton capability for a node's ROOT
18718
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18719
+ * agents).
18720
+ *
18721
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18722
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18723
+ * version describes the node. Updates install into
18724
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18725
+ * starter (probation boot + auto-rollback to N-1).
18726
+ *
18727
+ * Providers:
18728
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18729
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18730
+ * unpinned calls.
18731
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18732
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18733
+ * `$hub.registerNode` manifest.
18734
+ *
18735
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18736
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18737
+ * SDK) routes the call to that node's provider via the standard remote
18738
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18739
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18740
+ *
18741
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18742
+ */
18743
+ /**
18744
+ * Where the running hub's code was loaded from:
18745
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18746
+ * plain resolution and runtime updates are refused.
18747
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18748
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18749
+ */
18750
+ var ServerBootModeSchema = _enum([
18751
+ "workspace",
18752
+ "baked",
18753
+ "data-root"
18754
+ ]);
18755
+ /**
18756
+ * Update lifecycle state:
18757
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18758
+ * - `pending-restart` — a version is staged and the node has NOT yet
18759
+ * restarted onto it (still running the OLD version).
18760
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18761
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18762
+ * Apply/rollback are refused in this state and the node must NOT be
18763
+ * manually restarted, or the probation boot auto-rolls-back.
18764
+ */
18765
+ var ServerUpdateStateSchema = _enum([
18766
+ "idle",
18767
+ "checking",
18768
+ "staging",
18769
+ "pending-restart",
18770
+ "awaiting-confirmation"
18771
+ ]);
18772
+ var ServerRollbackInfoSchema = object({
18773
+ /** The version that failed (or was manually rolled back). */
18774
+ fromVersion: string(),
18775
+ /** The version rolled back to; null = the baked seed. */
18776
+ toVersion: string().nullable(),
18777
+ atMs: number(),
18778
+ reason: string()
18481
18779
  });
18482
- var ExposedResourceSchema = object({
18483
- streamId: string(),
18484
- format: string(),
18485
- value: string()
18780
+ var ServerPackageStatusSchema = object({
18781
+ /** Root package name (`@camstack/server` on the hub). */
18782
+ packageName: string(),
18783
+ /** Version of the code the running process ACTUALLY loaded. */
18784
+ runningVersion: string().nullable(),
18785
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18786
+ nodeRuntimeVersion: string().nullable(),
18787
+ /** Active data-dir root version; null when booted from seed/workspace. */
18788
+ activeVersion: string().nullable(),
18789
+ /** N-1 version kept for rollback; null when no previous version exists. */
18790
+ previousVersion: string().nullable(),
18791
+ /** Version of the immutable baked seed closure (image fallback). */
18792
+ seedVersion: string().nullable(),
18793
+ /** Latest registry version from the most recent check (null = never checked). */
18794
+ latestVersion: string().nullable(),
18795
+ updateAvailable: boolean(),
18796
+ bootMode: ServerBootModeSchema,
18797
+ updateState: ServerUpdateStateSchema,
18798
+ /** Version staged + awaiting its probation boot, when one is pending. */
18799
+ pendingVersion: string().nullable(),
18800
+ /** Set when the last freshly-activated version failed its boot health-check. */
18801
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18802
+ /**
18803
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18804
+ * hub is running from the baked seed (or workspace) while installed data-dir
18805
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18806
+ */
18807
+ stateFileCorrupt: boolean(),
18808
+ lastCheckedAtMs: number().nullable()
18809
+ });
18810
+ var ServerUpdateCheckResultSchema = object({
18811
+ packageName: string(),
18812
+ runningVersion: string().nullable(),
18813
+ latestVersion: string().nullable(),
18814
+ updateAvailable: boolean(),
18815
+ checkedAtMs: number(),
18816
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18817
+ error: string().nullable()
18818
+ });
18819
+ var ServerUpdateActionResultSchema = object({
18820
+ accepted: boolean(),
18821
+ targetVersion: string().nullable(),
18822
+ /** True when a graceful restart was scheduled to apply the change. */
18823
+ restarting: boolean(),
18824
+ message: string()
18825
+ });
18826
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18827
+ kind: "mutation",
18828
+ auth: "admin"
18829
+ }), method(object({
18830
+ /** Explicit target version; omitted = latest from the registry. */
18831
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18832
+ kind: "mutation",
18833
+ auth: "admin"
18834
+ }), method(_void(), ServerUpdateActionResultSchema, {
18835
+ kind: "mutation",
18836
+ auth: "admin"
18837
+ }), method(_void(), ServerUpdateActionResultSchema, {
18838
+ kind: "mutation",
18839
+ auth: "admin"
18486
18840
  });
18487
- method(object({
18488
- deviceId: number(),
18489
- streams: array(RegisteredStreamSchema).readonly()
18490
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18491
18841
  /**
18492
18842
  * Query filter for settings-store collections.
18493
18843
  */
@@ -18640,9 +18990,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18640
18990
  /**
18641
18991
  * A single device snapshot returned as base64 JPEG/PNG.
18642
18992
  *
18643
- * Shared with the `snapshot-provider` collection cap the orchestrator
18644
- * receives the same shape from each native provider and from the
18645
- * broker-based fallback.
18993
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
18994
+ * the device-native provider (onboard capture) or from the stream-broker
18995
+ * prebuffer fallback.
18646
18996
  */
18647
18997
  var SnapshotImageSchema = object({
18648
18998
  base64: string(),
@@ -18673,11 +19023,12 @@ DeviceType.Camera, method(object({
18673
19023
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18674
19024
  kind: "mutation",
18675
19025
  auth: "admin"
18676
- });
18677
- method(object({ deviceId: number() }), boolean()), method(object({
19026
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18678
19027
  deviceId: number(),
18679
- streamId: string().optional()
18680
- }), SnapshotImageSchema.nullable());
19028
+ lastCapturedAt: number().nullable(),
19029
+ cacheAgeMs: number().nullable(),
19030
+ etag: string().nullable()
19031
+ })));
18681
19032
  /**
18682
19033
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18683
19034
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18928,10 +19279,32 @@ method(_void(), array(TurnServerSchema).readonly());
18928
19279
  * b. `finishAuthentication({userId, response})` → server verifies
18929
19280
  * the assertion, bumps the credential counter, returns ok.
18930
19281
  *
19282
+ * 2b. Usernameless (discoverable-credential) authentication — the
19283
+ * passkey IS the primary factor, no password leg:
19284
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19285
+ * EMPTY `allowCredentials` (the browser offers every resident
19286
+ * passkey it holds for this RP) + `userVerification: 'required'`
19287
+ * (the passkey replaces both factors, so UV is mandatory).
19288
+ * The challenge is stored server-side, NOT bound to any user.
19289
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19290
+ * resolves the credential by the response's credential id,
19291
+ * verifies the assertion against the stored challenge + that
19292
+ * credential's public key/counter, and returns the OWNING
19293
+ * `userId` — the caller (core auth router) mints the session.
19294
+ *
18931
19295
  * 3. Management:
18932
19296
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18933
19297
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18934
19298
  *
19299
+ * 4. Second-factor preference (opt-in, default OFF):
19300
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19301
+ * demanded as a second factor after a password login ONLY when the
19302
+ * user explicitly opts in via `setSecondFactorPreference`.
19303
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19304
+ * row ⇒ `enabled: false`).
19305
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19306
+ * the providing addon beside its credentials.
19307
+ *
18935
19308
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18936
19309
  * the admin-ui composes the begin/finish round-trip and never exposes
18937
19310
  * the cap to non-admins.
@@ -18974,6 +19347,17 @@ method(object({
18974
19347
  }), object({ verified: boolean() }), {
18975
19348
  kind: "mutation",
18976
19349
  access: "view"
19350
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19351
+ kind: "mutation",
19352
+ access: "view"
19353
+ }), method(object({
19354
+ /** AuthenticationResponseJSON from the browser. */
19355
+ response: record(string(), unknown()) }), object({
19356
+ verified: boolean(),
19357
+ userId: string().nullable()
19358
+ }), {
19359
+ kind: "mutation",
19360
+ access: "view"
18977
19361
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
18978
19362
  userId: string(),
18979
19363
  credentialId: string()
@@ -18981,6 +19365,13 @@ method(object({
18981
19365
  kind: "mutation",
18982
19366
  auth: "admin",
18983
19367
  access: "delete"
19368
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19369
+ userId: string(),
19370
+ enabled: boolean()
19371
+ }), object({ success: literal(true) }), {
19372
+ kind: "mutation",
19373
+ auth: "admin",
19374
+ access: "create"
18984
19375
  });
18985
19376
  /**
18986
19377
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19038,9 +19429,10 @@ method(object({
19038
19429
  auth: "admin"
19039
19430
  });
19040
19431
  /**
19041
- * Optional client-side hints sent at session creation to help the
19042
- * provider pick the best native source. All fields are optional —
19043
- * a viewer that knows nothing still gets a sane default.
19432
+ * Optional client-side hints sent at session creation to help the provider
19433
+ * pick the best native source. All fields optional — a viewer that knows
19434
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19435
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19044
19436
  */
19045
19437
  var webrtcClientHintsSchema = object({
19046
19438
  viewportWidth: number().int().positive().optional(),
@@ -19051,22 +19443,6 @@ var webrtcClientHintsSchema = object({
19051
19443
  /** Hard tier override; takes precedence over scoring when registered. */
19052
19444
  prefersTier: string().optional()
19053
19445
  }).partial();
19054
- method(object({
19055
- streamId: string(),
19056
- sdpOffer: string()
19057
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19058
- streamId: string(),
19059
- codec: string()
19060
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19061
- streamId: string(),
19062
- hints: webrtcClientHintsSchema.optional()
19063
- }), object({
19064
- sessionId: string(),
19065
- sdpOffer: string()
19066
- }), { kind: "mutation" }), method(object({
19067
- sessionId: string(),
19068
- sdpAnswer: string()
19069
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19070
19446
  /**
19071
19447
  * Discriminated target for a WebRTC session. The client sends this
19072
19448
  * structured object instead of building / parsing brokerId strings;
@@ -19797,7 +20173,17 @@ var FaceInfoSchema = object({
19797
20173
  recognizedIdentityId: string().optional(),
19798
20174
  identityName: string().optional(),
19799
20175
  assigned: boolean(),
19800
- base64: string().optional()
20176
+ base64: string().optional(),
20177
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20178
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20179
+ * legacy rows written before design B. */
20180
+ faceBbox: BoundingBoxSchema.optional(),
20181
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20182
+ * Fetch the native JPEG via the event-media data-plane
20183
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20184
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20185
+ * back to the inline `base64` face crop. */
20186
+ keyFrameMediaKey: string().optional()
19801
20187
  });
19802
20188
  var FaceFilterEnum = _enum([
19803
20189
  "unassigned",
@@ -20494,6 +20880,16 @@ var TopologyCategorySchema = object({
20494
20880
  healthy: number(),
20495
20881
  addons: array(TopologyCategoryAddonSchema).readonly()
20496
20882
  });
20883
+ /**
20884
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20885
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20886
+ * version visibility for the Server management surface. Nullable: offline
20887
+ * rows and pre-phase-2 nodes report none.
20888
+ */
20889
+ var TopologyRootPackageSchema = object({
20890
+ name: string(),
20891
+ version: string()
20892
+ });
20497
20893
  var TopologyNodeSchema = object({
20498
20894
  id: string(),
20499
20895
  name: string(),
@@ -20517,7 +20913,8 @@ var TopologyNodeSchema = object({
20517
20913
  status: string()
20518
20914
  })).readonly(),
20519
20915
  processes: array(TopologyProcessSchema).readonly(),
20520
- categories: array(TopologyCategorySchema).readonly()
20916
+ categories: array(TopologyCategorySchema).readonly(),
20917
+ rootPackage: TopologyRootPackageSchema.nullable()
20521
20918
  });
20522
20919
  var CapUsageEdgeSchema = object({
20523
20920
  callerAddonId: string(),
@@ -23317,6 +23714,12 @@ Object.freeze({
23317
23714
  addonId: null,
23318
23715
  access: "create"
23319
23716
  },
23717
+ "loginMethod.getLoginMethods": {
23718
+ capName: "login-method",
23719
+ capScope: "system",
23720
+ addonId: null,
23721
+ access: "view"
23722
+ },
23320
23723
  "mediaPlayer.next": {
23321
23724
  capName: "media-player",
23322
23725
  capScope: "device",
@@ -23899,6 +24302,12 @@ Object.freeze({
23899
24302
  addonId: null,
23900
24303
  access: "view"
23901
24304
  },
24305
+ "pipelineAnalytics.getKeyEvents": {
24306
+ capName: "pipeline-analytics",
24307
+ capScope: "device",
24308
+ addonId: null,
24309
+ access: "view"
24310
+ },
23902
24311
  "pipelineAnalytics.getMotionEvents": {
23903
24312
  capName: "pipeline-analytics",
23904
24313
  capScope: "device",
@@ -23947,23 +24356,23 @@ Object.freeze({
23947
24356
  addonId: null,
23948
24357
  access: "create"
23949
24358
  },
23950
- "pipelineExecutor.deleteModel": {
24359
+ "pipelineExecutor.clearDeviceOverrides": {
23951
24360
  capName: "pipeline-executor",
23952
24361
  capScope: "system",
23953
24362
  addonId: null,
23954
24363
  access: "delete"
23955
24364
  },
23956
- "pipelineExecutor.deleteTemplate": {
24365
+ "pipelineExecutor.deleteModel": {
23957
24366
  capName: "pipeline-executor",
23958
24367
  capScope: "system",
23959
24368
  addonId: null,
23960
24369
  access: "delete"
23961
24370
  },
23962
- "pipelineExecutor.detect": {
24371
+ "pipelineExecutor.deleteTemplate": {
23963
24372
  capName: "pipeline-executor",
23964
24373
  capScope: "system",
23965
24374
  addonId: null,
23966
- access: "view"
24375
+ access: "delete"
23967
24376
  },
23968
24377
  "pipelineExecutor.downloadModel": {
23969
24378
  capName: "pipeline-executor",
@@ -24157,13 +24566,13 @@ Object.freeze({
24157
24566
  addonId: null,
24158
24567
  access: "create"
24159
24568
  },
24160
- "pipelineOrchestrator.assignAudio": {
24161
- capName: "pipeline-orchestrator",
24569
+ "pipelineExecutor.validatePipeline": {
24570
+ capName: "pipeline-executor",
24162
24571
  capScope: "system",
24163
24572
  addonId: null,
24164
- access: "create"
24573
+ access: "view"
24165
24574
  },
24166
- "pipelineOrchestrator.assignDecoder": {
24575
+ "pipelineOrchestrator.assignAudio": {
24167
24576
  capName: "pipeline-orchestrator",
24168
24577
  capScope: "system",
24169
24578
  addonId: null,
@@ -24247,19 +24656,13 @@ Object.freeze({
24247
24656
  addonId: null,
24248
24657
  access: "view"
24249
24658
  },
24250
- "pipelineOrchestrator.getDecoderAssignment": {
24251
- capName: "pipeline-orchestrator",
24252
- capScope: "system",
24253
- addonId: null,
24254
- access: "view"
24255
- },
24256
- "pipelineOrchestrator.getDecoderAssignments": {
24659
+ "pipelineOrchestrator.getGlobalMetrics": {
24257
24660
  capName: "pipeline-orchestrator",
24258
24661
  capScope: "system",
24259
24662
  addonId: null,
24260
24663
  access: "view"
24261
24664
  },
24262
- "pipelineOrchestrator.getGlobalMetrics": {
24665
+ "pipelineOrchestrator.getIngestOwner": {
24263
24666
  capName: "pipeline-orchestrator",
24264
24667
  capScope: "system",
24265
24668
  addonId: null,
@@ -24301,6 +24704,12 @@ Object.freeze({
24301
24704
  addonId: null,
24302
24705
  access: "delete"
24303
24706
  },
24707
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24708
+ capName: "pipeline-orchestrator",
24709
+ capScope: "system",
24710
+ addonId: null,
24711
+ access: "delete"
24712
+ },
24304
24713
  "pipelineOrchestrator.resolvePipeline": {
24305
24714
  capName: "pipeline-orchestrator",
24306
24715
  capScope: "system",
@@ -24337,37 +24746,37 @@ Object.freeze({
24337
24746
  addonId: null,
24338
24747
  access: "create"
24339
24748
  },
24340
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24749
+ "pipelineOrchestrator.setAgentReachableHost": {
24341
24750
  capName: "pipeline-orchestrator",
24342
24751
  capScope: "system",
24343
24752
  addonId: null,
24344
24753
  access: "create"
24345
24754
  },
24346
- "pipelineOrchestrator.setCameraStepOverride": {
24755
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24347
24756
  capName: "pipeline-orchestrator",
24348
24757
  capScope: "system",
24349
24758
  addonId: null,
24350
24759
  access: "create"
24351
24760
  },
24352
- "pipelineOrchestrator.setCameraStepToggle": {
24761
+ "pipelineOrchestrator.setCameraStepOverride": {
24353
24762
  capName: "pipeline-orchestrator",
24354
24763
  capScope: "system",
24355
24764
  addonId: null,
24356
24765
  access: "create"
24357
24766
  },
24358
- "pipelineOrchestrator.setCapabilityBinding": {
24767
+ "pipelineOrchestrator.setCameraStepToggle": {
24359
24768
  capName: "pipeline-orchestrator",
24360
24769
  capScope: "system",
24361
24770
  addonId: null,
24362
24771
  access: "create"
24363
24772
  },
24364
- "pipelineOrchestrator.unassignAudio": {
24773
+ "pipelineOrchestrator.setCapabilityBinding": {
24365
24774
  capName: "pipeline-orchestrator",
24366
24775
  capScope: "system",
24367
24776
  addonId: null,
24368
24777
  access: "create"
24369
24778
  },
24370
- "pipelineOrchestrator.unassignDecoder": {
24779
+ "pipelineOrchestrator.unassignAudio": {
24371
24780
  capName: "pipeline-orchestrator",
24372
24781
  capScope: "system",
24373
24782
  addonId: null,
@@ -24427,6 +24836,12 @@ Object.freeze({
24427
24836
  addonId: null,
24428
24837
  access: "view"
24429
24838
  },
24839
+ "pipelineRunner.getNativeCrop": {
24840
+ capName: "pipeline-runner",
24841
+ capScope: "system",
24842
+ addonId: null,
24843
+ access: "view"
24844
+ },
24430
24845
  "pipelineRunner.reportMotion": {
24431
24846
  capName: "pipeline-runner",
24432
24847
  capScope: "system",
@@ -24667,33 +25082,45 @@ Object.freeze({
24667
25082
  addonId: null,
24668
25083
  access: "create"
24669
25084
  },
24670
- "restreamer.getExposedResources": {
24671
- capName: "restreamer",
25085
+ "scriptRunner.run": {
25086
+ capName: "script-runner",
25087
+ capScope: "device",
25088
+ addonId: null,
25089
+ access: "create"
25090
+ },
25091
+ "scriptRunner.stop": {
25092
+ capName: "script-runner",
25093
+ capScope: "device",
25094
+ addonId: null,
25095
+ access: "create"
25096
+ },
25097
+ "serverManagement.applyServerUpdate": {
25098
+ capName: "server-management",
24672
25099
  capScope: "system",
24673
25100
  addonId: null,
24674
- access: "view"
25101
+ access: "create"
24675
25102
  },
24676
- "restreamer.registerDevice": {
24677
- capName: "restreamer",
25103
+ "serverManagement.checkServerUpdate": {
25104
+ capName: "server-management",
24678
25105
  capScope: "system",
24679
25106
  addonId: null,
24680
25107
  access: "create"
24681
25108
  },
24682
- "restreamer.unregisterDevice": {
24683
- capName: "restreamer",
25109
+ "serverManagement.getServerPackageStatus": {
25110
+ capName: "server-management",
24684
25111
  capScope: "system",
24685
25112
  addonId: null,
24686
- access: "delete"
25113
+ access: "view"
24687
25114
  },
24688
- "scriptRunner.run": {
24689
- capName: "script-runner",
24690
- capScope: "device",
25115
+ "serverManagement.restartServer": {
25116
+ capName: "server-management",
25117
+ capScope: "system",
24691
25118
  addonId: null,
24692
25119
  access: "create"
24693
25120
  },
24694
- "scriptRunner.stop": {
24695
- capName: "script-runner",
24696
- capScope: "device",
25121
+ "serverManagement.rollbackServerUpdate": {
25122
+ capName: "server-management",
25123
+ capScope: "system",
24697
25124
  addonId: null,
24698
25125
  access: "create"
24699
25126
  },
@@ -24781,23 +25208,17 @@ Object.freeze({
24781
25208
  addonId: null,
24782
25209
  access: "view"
24783
25210
  },
24784
- "snapshot.invalidateCache": {
25211
+ "snapshot.getSnapshotOverview": {
24785
25212
  capName: "snapshot",
24786
25213
  capScope: "device",
24787
25214
  addonId: null,
24788
- access: "create"
24789
- },
24790
- "snapshotProvider.getSnapshot": {
24791
- capName: "snapshot-provider",
24792
- capScope: "system",
24793
- addonId: null,
24794
25215
  access: "view"
24795
25216
  },
24796
- "snapshotProvider.supportsDevice": {
24797
- capName: "snapshot-provider",
24798
- capScope: "system",
25217
+ "snapshot.invalidateCache": {
25218
+ capName: "snapshot",
25219
+ capScope: "device",
24799
25220
  addonId: null,
24800
- access: "view"
25221
+ access: "create"
24801
25222
  },
24802
25223
  "ssoBridge.signBridgeToken": {
24803
25224
  capName: "sso-bridge",
@@ -25225,30 +25646,6 @@ Object.freeze({
25225
25646
  addonId: null,
25226
25647
  access: "view"
25227
25648
  },
25228
- "streamingEngine.getStreamUrl": {
25229
- capName: "streaming-engine",
25230
- capScope: "system",
25231
- addonId: null,
25232
- access: "view"
25233
- },
25234
- "streamingEngine.listStreams": {
25235
- capName: "streaming-engine",
25236
- capScope: "system",
25237
- addonId: null,
25238
- access: "view"
25239
- },
25240
- "streamingEngine.registerStream": {
25241
- capName: "streaming-engine",
25242
- capScope: "system",
25243
- addonId: null,
25244
- access: "create"
25245
- },
25246
- "streamingEngine.unregisterStream": {
25247
- capName: "streaming-engine",
25248
- capScope: "system",
25249
- addonId: null,
25250
- access: "delete"
25251
- },
25252
25649
  "streamParams.getConfigSchema": {
25253
25650
  capName: "stream-params",
25254
25651
  capScope: "device",
@@ -25495,6 +25892,12 @@ Object.freeze({
25495
25892
  addonId: null,
25496
25893
  access: "view"
25497
25894
  },
25895
+ "userPasskeys.beginDiscoverableAuthentication": {
25896
+ capName: "user-passkeys",
25897
+ capScope: "system",
25898
+ addonId: null,
25899
+ access: "view"
25900
+ },
25498
25901
  "userPasskeys.beginRegistration": {
25499
25902
  capName: "user-passkeys",
25500
25903
  capScope: "system",
@@ -25507,12 +25910,24 @@ Object.freeze({
25507
25910
  addonId: null,
25508
25911
  access: "view"
25509
25912
  },
25913
+ "userPasskeys.finishDiscoverableAuthentication": {
25914
+ capName: "user-passkeys",
25915
+ capScope: "system",
25916
+ addonId: null,
25917
+ access: "view"
25918
+ },
25510
25919
  "userPasskeys.finishRegistration": {
25511
25920
  capName: "user-passkeys",
25512
25921
  capScope: "system",
25513
25922
  addonId: null,
25514
25923
  access: "create"
25515
25924
  },
25925
+ "userPasskeys.getSecondFactorPreference": {
25926
+ capName: "user-passkeys",
25927
+ capScope: "system",
25928
+ addonId: null,
25929
+ access: "view"
25930
+ },
25516
25931
  "userPasskeys.listPasskeys": {
25517
25932
  capName: "user-passkeys",
25518
25933
  capScope: "system",
@@ -25525,6 +25940,12 @@ Object.freeze({
25525
25940
  addonId: null,
25526
25941
  access: "delete"
25527
25942
  },
25943
+ "userPasskeys.setSecondFactorPreference": {
25944
+ capName: "user-passkeys",
25945
+ capScope: "system",
25946
+ addonId: null,
25947
+ access: "create"
25948
+ },
25528
25949
  "vacuumControl.locate": {
25529
25950
  capName: "vacuum-control",
25530
25951
  capScope: "device",
@@ -25597,6 +26018,18 @@ Object.freeze({
25597
26018
  addonId: null,
25598
26019
  access: "view"
25599
26020
  },
26021
+ "viewerUi.getStaticDir": {
26022
+ capName: "viewer-ui",
26023
+ capScope: "system",
26024
+ addonId: null,
26025
+ access: "view"
26026
+ },
26027
+ "viewerUi.getVersion": {
26028
+ capName: "viewer-ui",
26029
+ capScope: "system",
26030
+ addonId: null,
26031
+ access: "view"
26032
+ },
25600
26033
  "waterHeater.setAway": {
25601
26034
  capName: "water-heater",
25602
26035
  capScope: "device",
@@ -25615,54 +26048,6 @@ Object.freeze({
25615
26048
  addonId: null,
25616
26049
  access: "create"
25617
26050
  },
25618
- "webrtc.closeSession": {
25619
- capName: "webrtc",
25620
- capScope: "system",
25621
- addonId: null,
25622
- access: "create"
25623
- },
25624
- "webrtc.createSession": {
25625
- capName: "webrtc",
25626
- capScope: "system",
25627
- addonId: null,
25628
- access: "create"
25629
- },
25630
- "webrtc.handleAnswer": {
25631
- capName: "webrtc",
25632
- capScope: "system",
25633
- addonId: null,
25634
- access: "create"
25635
- },
25636
- "webrtc.handleOffer": {
25637
- capName: "webrtc",
25638
- capScope: "system",
25639
- addonId: null,
25640
- access: "create"
25641
- },
25642
- "webrtc.hasAdaptiveBitrate": {
25643
- capName: "webrtc",
25644
- capScope: "system",
25645
- addonId: null,
25646
- access: "view"
25647
- },
25648
- "webrtc.registerStream": {
25649
- capName: "webrtc",
25650
- capScope: "system",
25651
- addonId: null,
25652
- access: "create"
25653
- },
25654
- "webrtc.supportsStream": {
25655
- capName: "webrtc",
25656
- capScope: "system",
25657
- addonId: null,
25658
- access: "view"
25659
- },
25660
- "webrtc.unregisterStream": {
25661
- capName: "webrtc",
25662
- capScope: "system",
25663
- addonId: null,
25664
- access: "delete"
25665
- },
25666
26051
  "webrtcSession.addIceCandidate": {
25667
26052
  capName: "webrtc-session",
25668
26053
  capScope: "device",