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