@camstack/addon-provider-homematic 1.1.18 → 1.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
@@ -4652,7 +4652,7 @@ function preprocess(fn, schema) {
4652
4652
  });
4653
4653
  }
4654
4654
  //#endregion
4655
- //#region ../types/dist/sleep-CZDdRBua.mjs
4655
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4656
4656
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4657
4657
  EventCategory["SystemBoot"] = "system.boot";
4658
4658
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4838,6 +4838,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4838
4838
  */
4839
4839
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4840
4840
  /**
4841
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4842
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4843
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4844
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4845
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4846
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4847
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4848
+ * topology change, so a dropped event self-heals on the next one (plus the
4849
+ * broker's long backstop reconcile query).
4850
+ */
4851
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4852
+ /**
4841
4853
  * Periodic snapshot of per-node pipeline-runner load
4842
4854
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4843
4855
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5361,10 +5373,6 @@ function hydrateField(field, values) {
5361
5373
  };
5362
5374
  }
5363
5375
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5364
- if (field.type === "password") return {
5365
- ...field,
5366
- value: ""
5367
- };
5368
5376
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5369
5377
  return {
5370
5378
  ...field,
@@ -6748,10 +6756,25 @@ function method(input, output, options) {
6748
6756
  timeoutMs: options?.timeoutMs
6749
6757
  };
6750
6758
  }
6759
+ /**
6760
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6761
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6762
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6763
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6764
+ */
6765
+ function systemMethod(input, output, options) {
6766
+ return {
6767
+ ...method(input, output, options),
6768
+ systemOnly: true
6769
+ };
6770
+ }
6751
6771
  /** Shorthand to define an event schema */
6752
6772
  function event(data) {
6753
6773
  return { data };
6754
6774
  }
6775
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6776
+ var VersionOutputSchema$1 = object({ version: string() });
6777
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6755
6778
  var StaticDirOutputSchema = object({ staticDir: string() });
6756
6779
  var VersionOutputSchema = object({ version: string() });
6757
6780
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6933,6 +6956,36 @@ var ModelFormatsSchema = object({
6933
6956
  tflite: ModelFormatEntrySchema.optional(),
6934
6957
  pt: ModelFormatEntrySchema.optional()
6935
6958
  });
6959
+ /**
6960
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6961
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6962
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6963
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6964
+ * resolution/download/persistence; this is a presentation overlay resolved back
6965
+ * to an `id`.
6966
+ */
6967
+ var ModelVariantGroupSchema = object({
6968
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6969
+ family: string(),
6970
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6971
+ tier: string(),
6972
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6973
+ precision: _enum(["fp32", "int8"]).optional(),
6974
+ /**
6975
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6976
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6977
+ * future performance variants plug into.
6978
+ */
6979
+ optimization: _enum(["standard", "fast"]).optional(),
6980
+ /**
6981
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6982
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6983
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6984
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6985
+ * the group so the selector can offer it as a variant axis.
6986
+ */
6987
+ resolution: number().int().positive().optional()
6988
+ });
6936
6989
  var ModelCatalogEntrySchema = object({
6937
6990
  id: string(),
6938
6991
  name: string(),
@@ -6962,7 +7015,43 @@ var ModelCatalogEntrySchema = object({
6962
7015
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6963
7016
  * Downloaded into the same modelsDir alongside the model file.
6964
7017
  */
6965
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7018
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7019
+ /**
7020
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7021
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7022
+ * model list and excluded from the auto format-default pick. Set on the
7023
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7024
+ * the active lineup stays the coherent curated ladder without deleting a
7025
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7026
+ * an explicit legacy id that has a build for the node's format.
7027
+ */
7028
+ legacy: boolean().optional(),
7029
+ /**
7030
+ * Measured quality/latency metadata — populated from the benchmark addon on
7031
+ * the real node classes. Absent = not yet measured (most entries today; the
7032
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7033
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7034
+ */
7035
+ metrics: object({
7036
+ map50: number().optional(),
7037
+ p95LatencyMs: record(string(), number()).optional()
7038
+ }).optional(),
7039
+ /**
7040
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7041
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7042
+ * the retraining addon and any future commercial distribution.
7043
+ */
7044
+ license: string().optional(),
7045
+ /**
7046
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7047
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7048
+ * of a family's sizes and quantizations collapse into one grouped picker
7049
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7050
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7051
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7052
+ * is a presentation overlay resolved back to an `id`.
7053
+ */
7054
+ group: ModelVariantGroupSchema.optional()
6966
7055
  });
6967
7056
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6968
7057
  format: literal("openvino"),
@@ -7023,8 +7112,8 @@ var RecordingModeSchema = _enum([
7023
7112
  "onAudioThreshold"
7024
7113
  ]);
7025
7114
  /**
7026
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7027
- * reads directly (never inferred from `rules`):
7115
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7116
+ * UI reads directly (never inferred from `rules`):
7028
7117
  * - `off` — not recording.
7029
7118
  * - `events` — record only around triggers (motion / audio threshold),
7030
7119
  * with pre/post-buffer.
@@ -9187,26 +9276,13 @@ onBrightnessChanged: { data: object({
9187
9276
  */
9188
9277
  runtimeState: BrightnessStatusSchema
9189
9278
  };
9279
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9190
9280
  var StreamFormatSchema = _enum([
9191
9281
  "webrtc",
9192
9282
  "hls",
9193
9283
  "mjpeg",
9194
9284
  "rtsp"
9195
9285
  ]);
9196
- var StreamInfoSchema = object({
9197
- streamId: string(),
9198
- format: StreamFormatSchema,
9199
- url: string().nullable(),
9200
- active: boolean()
9201
- });
9202
- method(object({
9203
- streamId: string(),
9204
- sourceUrl: string(),
9205
- codec: string().optional()
9206
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9207
- streamId: string(),
9208
- format: StreamFormatSchema
9209
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9210
9286
  var RtspRestreamEntrySchema = object({
9211
9287
  brokerId: string(),
9212
9288
  url: string(),
@@ -10074,37 +10150,7 @@ var consumablesCapability = {
10074
10150
  scope: "device",
10075
10151
  deviceNative: true,
10076
10152
  mode: "singleton",
10077
- deviceTypes: [
10078
- DeviceType.Camera,
10079
- DeviceType.Hub,
10080
- DeviceType.Light,
10081
- DeviceType.Siren,
10082
- DeviceType.Switch,
10083
- DeviceType.Sensor,
10084
- DeviceType.Thermostat,
10085
- DeviceType.Button,
10086
- DeviceType.EventEmitter,
10087
- DeviceType.Update,
10088
- DeviceType.Generic,
10089
- DeviceType.Notifier,
10090
- DeviceType.Script,
10091
- DeviceType.Automation,
10092
- DeviceType.Lock,
10093
- DeviceType.Cover,
10094
- DeviceType.Valve,
10095
- DeviceType.Humidifier,
10096
- DeviceType.WaterHeater,
10097
- DeviceType.Fan,
10098
- DeviceType.MediaPlayer,
10099
- DeviceType.AlarmPanel,
10100
- DeviceType.Control,
10101
- DeviceType.Presence,
10102
- DeviceType.Weather,
10103
- DeviceType.Vacuum,
10104
- DeviceType.LawnMower,
10105
- DeviceType.Container,
10106
- DeviceType.Image
10107
- ],
10153
+ deviceTypes: Object.values(DeviceType),
10108
10154
  deviceConfig: { ui: {
10109
10155
  kind: "widget",
10110
10156
  widgetId: "host/consumables-panel",
@@ -11562,7 +11608,7 @@ var BoundingBoxSchema = object({
11562
11608
  w: number(),
11563
11609
  h: number()
11564
11610
  });
11565
- var SpatialDetectionSchema = object({
11611
+ object({
11566
11612
  class: string(),
11567
11613
  originalClass: string(),
11568
11614
  score: number(),
@@ -11697,7 +11743,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11697
11743
  enabled: boolean(),
11698
11744
  modelId: string(),
11699
11745
  children: array(PipelineDefaultStepSchema).readonly(),
11700
- engine: PipelineEngineChoiceSchema.optional(),
11701
11746
  group: string().optional(),
11702
11747
  settings: record(string(), unknown()).optional()
11703
11748
  }));
@@ -11722,7 +11767,9 @@ var PipelineModelOptionSchema = object({
11722
11767
  formats: record(string(), object({
11723
11768
  downloaded: boolean(),
11724
11769
  sizeMB: number()
11725
- }))
11770
+ })),
11771
+ group: ModelVariantGroupSchema.optional(),
11772
+ legacy: boolean().optional()
11726
11773
  });
11727
11774
  var ConfigFieldBridge = custom();
11728
11775
  var PipelineAddonSchemaSchema = object({
@@ -11736,6 +11783,7 @@ var PipelineAddonSchemaSchema = object({
11736
11783
  defaultModelId: string(),
11737
11784
  defaultModelIdByFormat: record(string(), string()).optional(),
11738
11785
  enabledByDefault: boolean().optional(),
11786
+ backfillIntoExistingOverrides: boolean().optional(),
11739
11787
  defaultConfidence: number(),
11740
11788
  group: string().optional(),
11741
11789
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11752,11 +11800,6 @@ var PipelineSchemaSchema = object({
11752
11800
  selectedEngine: PipelineEngineChoiceSchema,
11753
11801
  slots: array(PipelineSlotSchemaSchema).readonly()
11754
11802
  });
11755
- var DetectorOutputSchema = object({
11756
- detections: array(SpatialDetectionSchema).readonly(),
11757
- inferenceMs: number(),
11758
- modelId: string()
11759
- });
11760
11803
  var EngineProvisioningSchema = object({
11761
11804
  runtimeId: _enum([
11762
11805
  "onnx",
@@ -11773,15 +11816,42 @@ var EngineProvisioningSchema = object({
11773
11816
  ]),
11774
11817
  progress: number().optional(),
11775
11818
  error: string().optional(),
11776
- nextRetryAt: number().optional()
11819
+ nextRetryAt: number().optional(),
11820
+ /**
11821
+ * Gate A (config-correctness gate at engine change): human-readable
11822
+ * config issues surfaced EAGERLY when the node's engine changes — model
11823
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11824
+ * has a <format> build"). Additive/optional: informational only, never
11825
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11826
+ * Absent/empty when the node-default tree resolves cleanly.
11827
+ */
11828
+ configIssues: array(string()).optional()
11777
11829
  });
11778
11830
  var PipelineStepInputSchema = lazy(() => object({
11779
11831
  addonId: string(),
11780
- modelId: string(),
11832
+ modelId: string().optional(),
11781
11833
  enabled: boolean().default(true),
11782
11834
  children: array(PipelineStepInputSchema).optional(),
11783
11835
  settings: record(string(), unknown()).optional()
11784
11836
  }));
11837
+ var ModelSubstitutionSchema = object({
11838
+ addonId: string(),
11839
+ chosen: string(),
11840
+ running: string(),
11841
+ format: string()
11842
+ });
11843
+ var PipelineValidationIssueSchema = object({
11844
+ addonId: string(),
11845
+ kind: _enum(["unknown-addon", "no-format-build"]),
11846
+ detail: string()
11847
+ });
11848
+ var PipelineValidationResultSchema = object({
11849
+ ok: boolean(),
11850
+ issues: array(PipelineValidationIssueSchema).readonly(),
11851
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11852
+ /** The node's `currentEngine.format` this validation ran against. */
11853
+ format: string()
11854
+ });
11785
11855
  var ReferenceImageEntrySchema = object({
11786
11856
  filename: string(),
11787
11857
  stepIds: array(string()).readonly().optional()
@@ -11852,7 +11922,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11852
11922
  })) }), object({ success: literal(true) }), {
11853
11923
  kind: "mutation",
11854
11924
  auth: "admin"
11855
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11925
+ }), method(object({ nodeId: string() }), object({
11926
+ success: literal(true),
11927
+ clearedDevices: number()
11928
+ }), {
11929
+ kind: "mutation",
11930
+ auth: "admin"
11931
+ }), 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({
11856
11932
  name: string(),
11857
11933
  steps: array(PipelineTemplateStepSchema).readonly(),
11858
11934
  engine: PipelineEngineChoiceSchema
@@ -11869,10 +11945,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11869
11945
  modelId: string(),
11870
11946
  format: ModelFormatSchema$1
11871
11947
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11872
- addonId: string(),
11873
- frame: FrameInputSchema,
11874
- config: record(string(), unknown()).optional()
11875
- }), DetectorOutputSchema), method(object({
11876
11948
  engine: PipelineEngineChoiceSchema.optional(),
11877
11949
  steps: array(PipelineStepInputSchema).min(1),
11878
11950
  frame: FrameInputSchema.optional(),
@@ -12051,6 +12123,25 @@ var zonesCapability = {
12051
12123
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12052
12124
  };
12053
12125
  /**
12126
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12127
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12128
+ * so the caller supplies only the detection-res bbox divided by the detection
12129
+ * dims — no native resolution to plumb.
12130
+ */
12131
+ var NativeCropBboxSchema = object({
12132
+ x: number(),
12133
+ y: number(),
12134
+ w: number(),
12135
+ h: number()
12136
+ });
12137
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12138
+ var NativeCropResultSchema = object({
12139
+ /** Packed rgb (24-bit) pixels of the crop. */
12140
+ bytes: _instanceof(Uint8Array),
12141
+ width: number().int().positive(),
12142
+ height: number().int().positive()
12143
+ });
12144
+ /**
12054
12145
  * Per-camera tunable ranges + defaults. Single source of truth used
12055
12146
  * by both the Zod data schema (validation + default fallback) and
12056
12147
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12145,6 +12236,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12145
12236
  kind: literal("remote-restream"),
12146
12237
  /** The camera's source-owner node (slice 1: always the hub). */
12147
12238
  ownerNodeId: string(),
12239
+ /**
12240
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12241
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12242
+ * dials THIS host for the owner's restream, in preference to the
12243
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12244
+ */
12245
+ ownerReachableHost: string().optional(),
12148
12246
  /** Operator override for the owner host the runner dials. */
12149
12247
  hubHostnameOverride: string().optional()
12150
12248
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12153,13 +12251,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12153
12251
  * specific runner instance via `attachCamera`. Carries everything the
12154
12252
  * runner needs to subscribe to the local broker and execute inference.
12155
12253
  *
12156
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12157
- * optional `audio`) travels with the attach payload. The runner keeps it
12158
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12159
- * restart the orchestrator re-sends the latest snapshot.
12160
- *
12161
- * `engine`/`steps`/`audio` are optional during the additive migration
12162
- * window; once orchestrator + UI are migrated they become required.
12254
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12255
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12256
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12257
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12258
+ * node-local, resolved by the executing runner at dispatch time.
12163
12259
  */
12164
12260
  var RunnerCameraConfigSchema = object({
12165
12261
  deviceId: number(),
@@ -12210,14 +12306,11 @@ var RunnerCameraConfigSchema = object({
12210
12306
  */
12211
12307
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12212
12308
  pipelineEnabled: boolean().default(true),
12213
- /** Engine choice for video steps (runtime+backend+format). */
12214
- engine: PipelineEngineChoiceSchema.optional(),
12215
12309
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12216
12310
  steps: array(PipelineStepInputSchema).readonly().optional(),
12217
12311
  /** Audio classification branch. `enabled:false` disables, null skips. */
12218
12312
  audio: object({
12219
- engine: PipelineEngineChoiceSchema,
12220
- modelId: string(),
12313
+ modelId: string().optional(),
12221
12314
  enabled: boolean()
12222
12315
  }).nullable().optional(),
12223
12316
  /**
@@ -12304,7 +12397,11 @@ var RunnerLocalMetricsSchema = object({
12304
12397
  avgInferenceTimeMs: number(),
12305
12398
  queueDepth: number()
12306
12399
  });
12307
- 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());
12400
+ 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({
12401
+ handle: FrameHandleSchema,
12402
+ bbox: NativeCropBboxSchema,
12403
+ maxWidth: number().int().positive().optional()
12404
+ }), NativeCropResultSchema.nullable());
12308
12405
  /**
12309
12406
  * Hardware / firmware motion sensor cap — binary detected state plus
12310
12407
  * a timestamp of the last observation. Distinct from
@@ -15235,7 +15332,9 @@ var AddonPageDeclarationSchema$1 = object({
15235
15332
  icon: string(),
15236
15333
  path: string(),
15237
15334
  remoteName: string(),
15238
- bundle: string()
15335
+ bundle: string(),
15336
+ section: string().optional(),
15337
+ sectionLabel: string().optional()
15239
15338
  });
15240
15339
  var AddonPageInfoSchema = object({
15241
15340
  addonId: string(),
@@ -15275,7 +15374,18 @@ var AddonPageDeclarationSchema = object({
15275
15374
  * the static-file route can compute an mtime-based cache-buster URL
15276
15375
  * without a separate filesystem stat.
15277
15376
  */
15278
- bundle: string()
15377
+ bundle: string(),
15378
+ /**
15379
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15380
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15381
+ * Any OTHER string creates (or joins) a custom section rendered after
15382
+ * the built-in groups; its label comes from `sectionLabel` (first
15383
+ * declaration wins), falling back to the id. Absent → the legacy
15384
+ * "Addon Pages" group.
15385
+ */
15386
+ section: string().optional(),
15387
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15388
+ sectionLabel: string().optional()
15279
15389
  });
15280
15390
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15281
15391
  var AddonHttpRouteSchema = object({
@@ -15491,6 +15601,17 @@ var WidgetMetadataSchema = object({
15491
15601
  deviceContext: boolean().default(false),
15492
15602
  integrationContext: boolean().default(false)
15493
15603
  }),
15604
+ /**
15605
+ * Loadable BEFORE authentication. The normal widget registry listing
15606
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15607
+ * (the login page) cannot discover a widget through it. A widget that
15608
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15609
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15610
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15611
+ * than the authenticated registry, and its bundle is served by the
15612
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15613
+ */
15614
+ preAuth: boolean().optional().default(false),
15494
15615
  /** Dashboard placement HINTS (operator can override per instance). */
15495
15616
  defaultSize: WidgetSizeEnum.default("md"),
15496
15617
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15792,6 +15913,66 @@ method(object({
15792
15913
  password: string()
15793
15914
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15794
15915
  /**
15916
+ * `login-method` — collection cap through which auth addons contribute
15917
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15918
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15919
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15920
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15921
+ * procedure aggregates them for the unauthenticated login page.
15922
+ *
15923
+ * A contribution is a discriminated union on `kind`:
15924
+ *
15925
+ * - `redirect` — a declarative button. The login page renders a generic
15926
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15927
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15928
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15929
+ * login page needs NO change.
15930
+ *
15931
+ * - `widget` — a Module-Federation widget the login page mounts (via
15932
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15933
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15934
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15935
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15936
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15937
+ *
15938
+ * Every contribution carries a `stage`:
15939
+ * - `primary` — shown on the first credentials screen (OIDC /
15940
+ * magic-link buttons; a future usernameless passkey).
15941
+ * - `second-factor` — shown AFTER the password leg, gated on the
15942
+ * returned `factors` (passkey-as-2FA today).
15943
+ *
15944
+ * `mount: skip` — the cap is read server-side by the core auth router
15945
+ * (`registry.getCollection('login-method')`), never mounted as its own
15946
+ * tRPC router.
15947
+ */
15948
+ /** When a login method renders in the two-phase login flow. */
15949
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15950
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15951
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15952
+ kind: literal("redirect"),
15953
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15954
+ id: string(),
15955
+ /** Operator-facing button label. */
15956
+ label: string(),
15957
+ /** lucide-react icon name. */
15958
+ icon: string().optional(),
15959
+ /** Addon-owned HTTP route the button navigates to (GET). */
15960
+ startUrl: string(),
15961
+ stage: LoginStageEnum
15962
+ }), object({
15963
+ kind: literal("widget"),
15964
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15965
+ id: string(),
15966
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15967
+ addonId: string(),
15968
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15969
+ bundle: string(),
15970
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15971
+ remote: WidgetRemoteSchema,
15972
+ stage: LoginStageEnum
15973
+ })]);
15974
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15975
+ /**
15795
15976
  * Orchestrator-side destination metadata. The orchestrator computes
15796
15977
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15797
15978
  * (admin UI, restore flow) see one canonical key.
@@ -17961,7 +18142,17 @@ var TrackSchema = object({
17961
18142
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17962
18143
  totalDistance: number(),
17963
18144
  state: TrackStateSchema,
17964
- active: boolean()
18145
+ active: boolean(),
18146
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18147
+ * track expiry, recomputed on late label). Absent on legacy rows written
18148
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18149
+ importance: number().optional(),
18150
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18151
+ * "best" frame). Absent when the track produced no object events. */
18152
+ bestEventId: string().optional(),
18153
+ /** Tag of the importance sub-signal that dominated the score
18154
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18155
+ importanceReason: string().optional()
17965
18156
  });
17966
18157
  var BaseEventFields = {
17967
18158
  id: string(),
@@ -18026,8 +18217,18 @@ var ObjectEventSchema = object({
18026
18217
  frameHeight: number().optional(),
18027
18218
  /** MediaStore key for the crop attached to this event (if any). */
18028
18219
  mediaKey: string().optional(),
18220
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18221
+ * best-detection full frame). Resolve via the event-media data-plane
18222
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18223
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18224
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18225
+ keyFrameMediaKey: string().optional(),
18029
18226
  /** Populated by B5 (recording playback URL for this event). */
18030
- mediaUrl: string().optional()
18227
+ mediaUrl: string().optional(),
18228
+ /** The parent track's key-event importance [0,1], propagated to every object
18229
+ * event of the track (so an event row can be sorted by importance without a
18230
+ * track join). Absent on legacy rows / before the track was scored. */
18231
+ importance: number().optional()
18031
18232
  });
18032
18233
  var AudioEventSchema = object({
18033
18234
  ...BaseEventFields,
@@ -18051,7 +18252,8 @@ var MediaFileKindEnum = _enum([
18051
18252
  "fullFrame",
18052
18253
  "fullFrameBoxed",
18053
18254
  "faceCrop",
18054
- "plateCrop"
18255
+ "plateCrop",
18256
+ "keyFrame"
18055
18257
  ]);
18056
18258
  var MediaFileSchema = object({
18057
18259
  key: string(),
@@ -18072,6 +18274,32 @@ var DeviceEventQueryInput = object({
18072
18274
  projection: _enum(["full", "slim"]).optional()
18073
18275
  });
18074
18276
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18277
+ var KeyEventQueryInput = object({
18278
+ deviceId: number(),
18279
+ /** Window lower bound (track firstSeen ≥ since). */
18280
+ since: number(),
18281
+ /** Window upper bound (track firstSeen ≤ until). */
18282
+ until: number(),
18283
+ limit: number().int().min(1).max(200).default(50),
18284
+ /** Drop tracks scoring below this importance. */
18285
+ minImportance: number().min(0).max(1).optional(),
18286
+ /** Restrict to a single class (e.g. 'person'). */
18287
+ classFilter: string().optional()
18288
+ });
18289
+ var KeyEventSchema = object({
18290
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18291
+ id: string(),
18292
+ trackId: string(),
18293
+ /** Track start time (firstSeen). */
18294
+ timestamp: number(),
18295
+ className: string(),
18296
+ label: string().optional(),
18297
+ importance: number(),
18298
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18299
+ bestEventId: string(),
18300
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18301
+ windowMs: number().optional()
18302
+ });
18075
18303
  var TrackedDetectionSchema = object({
18076
18304
  trackId: string(),
18077
18305
  className: string(),
@@ -18101,7 +18329,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18101
18329
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18102
18330
  kind: "mutation",
18103
18331
  auth: "admin"
18104
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18332
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18105
18333
  deviceId: number(),
18106
18334
  since: number(),
18107
18335
  until: number(),
@@ -18146,11 +18374,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18146
18374
  timestamp: number()
18147
18375
  });
18148
18376
  var CameraPipelineConfigSchema = object({
18149
- engine: PipelineEngineChoiceSchema,
18377
+ engine: PipelineEngineChoiceSchema.optional(),
18150
18378
  steps: array(PipelineStepInputSchema).readonly(),
18151
18379
  audio: object({
18152
- engine: PipelineEngineChoiceSchema,
18153
- modelId: string(),
18380
+ engine: PipelineEngineChoiceSchema.optional(),
18381
+ modelId: string().optional(),
18154
18382
  enabled: boolean(),
18155
18383
  settings: record(string(), unknown()).readonly().optional()
18156
18384
  }).nullable().optional()
@@ -18165,7 +18393,7 @@ var PipelineTemplateSchema = object({
18165
18393
  });
18166
18394
  var AgentAddonConfigSchema = object({
18167
18395
  enabled: boolean(),
18168
- modelId: string(),
18396
+ modelId: string().optional(),
18169
18397
  settings: record(string(), unknown()).readonly()
18170
18398
  });
18171
18399
  var AgentPipelineSettingsSchema = object({
@@ -18175,12 +18403,25 @@ var AgentPipelineSettingsSchema = object({
18175
18403
  detectWeight: number().positive().optional(),
18176
18404
  /** Node is eligible to run the detection pipeline (decode + inference). */
18177
18405
  detect: boolean().optional(),
18178
- /** Node is eligible to host decoder sessions. */
18406
+ /**
18407
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18408
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18409
+ * the schema ONLY so persisted stores written before the removal still
18410
+ * parse — no code reads it and no write path emits it.
18411
+ */
18179
18412
  decode: boolean().optional(),
18180
18413
  /** Node is eligible to run audio-analyzer sessions. */
18181
18414
  audio: boolean().optional(),
18182
18415
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18183
- ingest: boolean().optional()
18416
+ ingest: boolean().optional(),
18417
+ /**
18418
+ * Operator override for the LAN host a cross-node decoder dials to reach
18419
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18420
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18421
+ * it already uses to reach the hub). Set this only when the auto-detected
18422
+ * address is wrong (multi-homed host, NAT, custom interface).
18423
+ */
18424
+ reachableHost: string().optional()
18184
18425
  });
18185
18426
  var CameraPipelineForAgentSchema = object({
18186
18427
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18228,25 +18469,6 @@ var PipelineAssignmentSchema = object({
18228
18469
  assignedAt: number()
18229
18470
  });
18230
18471
  /**
18231
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18232
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18233
- * → co-located with pipeline → capacity).
18234
- */
18235
- var DecoderAssignmentSchema = object({
18236
- deviceId: number(),
18237
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18238
- decoderNodeId: string(),
18239
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18240
- pinned: boolean(),
18241
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18242
- reason: _enum([
18243
- "manual",
18244
- "co-located",
18245
- "capacity",
18246
- "hardware-affinity"
18247
- ])
18248
- });
18249
- /**
18250
18472
  * Per-agent load summary surfaced to the load balancer + dashboards.
18251
18473
  * Aggregated from each runner's `getLocalLoad` cap call.
18252
18474
  */
@@ -18286,6 +18508,15 @@ var GlobalMetricsSchema = object({
18286
18508
  * capability providers.
18287
18509
  */
18288
18510
  var CapabilityBindingsSchema = record(string(), string());
18511
+ /**
18512
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18513
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18514
+ */
18515
+ var IngestOwnerSchema = object({
18516
+ ownerNodeId: string(),
18517
+ reachableHost: string().optional(),
18518
+ configIssue: string().optional()
18519
+ });
18289
18520
  /** Source block — always present; derives from the stream catalog. */
18290
18521
  var CameraSourceStatusSchema = object({ streams: array(object({
18291
18522
  camStreamId: string(),
@@ -18300,6 +18531,14 @@ var CameraAssignmentStatusSchema = object({
18300
18531
  detectionNodeId: string().nullable(),
18301
18532
  decoderNodeId: string().nullable(),
18302
18533
  audioNodeId: string().nullable(),
18534
+ /**
18535
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18536
+ * hosts the broker/restream) — the cluster ingest owner today
18537
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18538
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18539
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18540
+ */
18541
+ sourceNodeId: string().nullable(),
18303
18542
  pinned: object({
18304
18543
  detection: boolean(),
18305
18544
  decoder: boolean(),
@@ -18432,16 +18671,7 @@ method(object({
18432
18671
  }), object({ success: literal(true) }), {
18433
18672
  kind: "mutation",
18434
18673
  auth: "admin"
18435
- }), method(object({
18436
- deviceId: number(),
18437
- nodeId: string()
18438
- }), _void(), {
18439
- kind: "mutation",
18440
- auth: "admin"
18441
- }), method(object({ deviceId: number() }), _void(), {
18442
- kind: "mutation",
18443
- auth: "admin"
18444
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18674
+ }), method(_void(), IngestOwnerSchema), method(object({
18445
18675
  deviceId: number(),
18446
18676
  nodeId: string()
18447
18677
  }), object({ success: literal(true) }), {
@@ -18462,10 +18692,7 @@ method(object({
18462
18692
  nodeId: string(),
18463
18693
  pinned: boolean(),
18464
18694
  assignedAt: number()
18465
- }))), method(object({
18466
- deviceId: number(),
18467
- pipelineNodeId: string().optional()
18468
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18695
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18469
18696
  nodeId: string(),
18470
18697
  settings: AgentPipelineSettingsSchema
18471
18698
  })).readonly()), method(object({
@@ -18495,12 +18722,26 @@ method(object({
18495
18722
  }), method(object({
18496
18723
  agentNodeId: string(),
18497
18724
  detect: boolean().nullable().optional(),
18498
- decode: boolean().nullable().optional(),
18499
18725
  audio: boolean().nullable().optional(),
18500
18726
  ingest: boolean().nullable().optional()
18501
18727
  }), object({ success: literal(true) }), {
18502
18728
  kind: "mutation",
18503
18729
  auth: "admin"
18730
+ }), method(object({
18731
+ agentNodeId: string(),
18732
+ reachableHost: string().nullable()
18733
+ }), object({ success: literal(true) }), {
18734
+ kind: "mutation",
18735
+ auth: "admin"
18736
+ }), method(object({ agentNodeId: string() }), object({
18737
+ success: literal(true),
18738
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18739
+ effectiveModelId: string().nullable(),
18740
+ /** Number of cameras whose node-scoped overrides were cleared. */
18741
+ clearedCameraOverrides: number()
18742
+ }), {
18743
+ kind: "mutation",
18744
+ auth: "admin"
18504
18745
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18505
18746
  deviceId: number(),
18506
18747
  addonId: string(),
@@ -18545,22 +18786,131 @@ method(object({
18545
18786
  kind: "mutation",
18546
18787
  auth: "admin"
18547
18788
  });
18548
- var RegisteredStreamSchema = object({
18549
- streamId: string(),
18550
- label: string().optional(),
18551
- codec: string(),
18552
- type: _enum(["video", "audio"]),
18553
- sourceUrl: string()
18789
+ /**
18790
+ * server-management — per-NODE singleton capability for a node's ROOT
18791
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18792
+ * agents).
18793
+ *
18794
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18795
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18796
+ * version describes the node. Updates install into
18797
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18798
+ * starter (probation boot + auto-rollback to N-1).
18799
+ *
18800
+ * Providers:
18801
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18802
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18803
+ * unpinned calls.
18804
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18805
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18806
+ * `$hub.registerNode` manifest.
18807
+ *
18808
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18809
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18810
+ * SDK) routes the call to that node's provider via the standard remote
18811
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18812
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18813
+ *
18814
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18815
+ */
18816
+ /**
18817
+ * Where the running hub's code was loaded from:
18818
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18819
+ * plain resolution and runtime updates are refused.
18820
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18821
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18822
+ */
18823
+ var ServerBootModeSchema = _enum([
18824
+ "workspace",
18825
+ "baked",
18826
+ "data-root"
18827
+ ]);
18828
+ /**
18829
+ * Update lifecycle state:
18830
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18831
+ * - `pending-restart` — a version is staged and the node has NOT yet
18832
+ * restarted onto it (still running the OLD version).
18833
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18834
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18835
+ * Apply/rollback are refused in this state and the node must NOT be
18836
+ * manually restarted, or the probation boot auto-rolls-back.
18837
+ */
18838
+ var ServerUpdateStateSchema = _enum([
18839
+ "idle",
18840
+ "checking",
18841
+ "staging",
18842
+ "pending-restart",
18843
+ "awaiting-confirmation"
18844
+ ]);
18845
+ var ServerRollbackInfoSchema = object({
18846
+ /** The version that failed (or was manually rolled back). */
18847
+ fromVersion: string(),
18848
+ /** The version rolled back to; null = the baked seed. */
18849
+ toVersion: string().nullable(),
18850
+ atMs: number(),
18851
+ reason: string()
18554
18852
  });
18555
- var ExposedResourceSchema = object({
18556
- streamId: string(),
18557
- format: string(),
18558
- value: string()
18853
+ var ServerPackageStatusSchema = object({
18854
+ /** Root package name (`@camstack/server` on the hub). */
18855
+ packageName: string(),
18856
+ /** Version of the code the running process ACTUALLY loaded. */
18857
+ runningVersion: string().nullable(),
18858
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18859
+ nodeRuntimeVersion: string().nullable(),
18860
+ /** Active data-dir root version; null when booted from seed/workspace. */
18861
+ activeVersion: string().nullable(),
18862
+ /** N-1 version kept for rollback; null when no previous version exists. */
18863
+ previousVersion: string().nullable(),
18864
+ /** Version of the immutable baked seed closure (image fallback). */
18865
+ seedVersion: string().nullable(),
18866
+ /** Latest registry version from the most recent check (null = never checked). */
18867
+ latestVersion: string().nullable(),
18868
+ updateAvailable: boolean(),
18869
+ bootMode: ServerBootModeSchema,
18870
+ updateState: ServerUpdateStateSchema,
18871
+ /** Version staged + awaiting its probation boot, when one is pending. */
18872
+ pendingVersion: string().nullable(),
18873
+ /** Set when the last freshly-activated version failed its boot health-check. */
18874
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18875
+ /**
18876
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18877
+ * hub is running from the baked seed (or workspace) while installed data-dir
18878
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18879
+ */
18880
+ stateFileCorrupt: boolean(),
18881
+ lastCheckedAtMs: number().nullable()
18882
+ });
18883
+ var ServerUpdateCheckResultSchema = object({
18884
+ packageName: string(),
18885
+ runningVersion: string().nullable(),
18886
+ latestVersion: string().nullable(),
18887
+ updateAvailable: boolean(),
18888
+ checkedAtMs: number(),
18889
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18890
+ error: string().nullable()
18891
+ });
18892
+ var ServerUpdateActionResultSchema = object({
18893
+ accepted: boolean(),
18894
+ targetVersion: string().nullable(),
18895
+ /** True when a graceful restart was scheduled to apply the change. */
18896
+ restarting: boolean(),
18897
+ message: string()
18898
+ });
18899
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18900
+ kind: "mutation",
18901
+ auth: "admin"
18902
+ }), method(object({
18903
+ /** Explicit target version; omitted = latest from the registry. */
18904
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18905
+ kind: "mutation",
18906
+ auth: "admin"
18907
+ }), method(_void(), ServerUpdateActionResultSchema, {
18908
+ kind: "mutation",
18909
+ auth: "admin"
18910
+ }), method(_void(), ServerUpdateActionResultSchema, {
18911
+ kind: "mutation",
18912
+ auth: "admin"
18559
18913
  });
18560
- method(object({
18561
- deviceId: number(),
18562
- streams: array(RegisteredStreamSchema).readonly()
18563
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18564
18914
  /**
18565
18915
  * Query filter for settings-store collections.
18566
18916
  */
@@ -18713,9 +19063,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18713
19063
  /**
18714
19064
  * A single device snapshot returned as base64 JPEG/PNG.
18715
19065
  *
18716
- * Shared with the `snapshot-provider` collection cap — the orchestrator
18717
- * receives the same shape from each native provider and from the
18718
- * broker-based fallback.
19066
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19067
+ * the device-native provider (onboard capture) or from the stream-broker
19068
+ * prebuffer fallback.
18719
19069
  */
18720
19070
  var SnapshotImageSchema = object({
18721
19071
  base64: string(),
@@ -18746,11 +19096,12 @@ DeviceType.Camera, method(object({
18746
19096
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18747
19097
  kind: "mutation",
18748
19098
  auth: "admin"
18749
- });
18750
- method(object({ deviceId: number() }), boolean()), method(object({
19099
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18751
19100
  deviceId: number(),
18752
- streamId: string().optional()
18753
- }), SnapshotImageSchema.nullable());
19101
+ lastCapturedAt: number().nullable(),
19102
+ cacheAgeMs: number().nullable(),
19103
+ etag: string().nullable()
19104
+ })));
18754
19105
  /**
18755
19106
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18756
19107
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19001,10 +19352,32 @@ method(_void(), array(TurnServerSchema).readonly());
19001
19352
  * b. `finishAuthentication({userId, response})` → server verifies
19002
19353
  * the assertion, bumps the credential counter, returns ok.
19003
19354
  *
19355
+ * 2b. Usernameless (discoverable-credential) authentication — the
19356
+ * passkey IS the primary factor, no password leg:
19357
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19358
+ * EMPTY `allowCredentials` (the browser offers every resident
19359
+ * passkey it holds for this RP) + `userVerification: 'required'`
19360
+ * (the passkey replaces both factors, so UV is mandatory).
19361
+ * The challenge is stored server-side, NOT bound to any user.
19362
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19363
+ * resolves the credential by the response's credential id,
19364
+ * verifies the assertion against the stored challenge + that
19365
+ * credential's public key/counter, and returns the OWNING
19366
+ * `userId` — the caller (core auth router) mints the session.
19367
+ *
19004
19368
  * 3. Management:
19005
19369
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19006
19370
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19007
19371
  *
19372
+ * 4. Second-factor preference (opt-in, default OFF):
19373
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19374
+ * demanded as a second factor after a password login ONLY when the
19375
+ * user explicitly opts in via `setSecondFactorPreference`.
19376
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19377
+ * row ⇒ `enabled: false`).
19378
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19379
+ * the providing addon beside its credentials.
19380
+ *
19008
19381
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19009
19382
  * the admin-ui composes the begin/finish round-trip and never exposes
19010
19383
  * the cap to non-admins.
@@ -19047,6 +19420,17 @@ method(object({
19047
19420
  }), object({ verified: boolean() }), {
19048
19421
  kind: "mutation",
19049
19422
  access: "view"
19423
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19424
+ kind: "mutation",
19425
+ access: "view"
19426
+ }), method(object({
19427
+ /** AuthenticationResponseJSON from the browser. */
19428
+ response: record(string(), unknown()) }), object({
19429
+ verified: boolean(),
19430
+ userId: string().nullable()
19431
+ }), {
19432
+ kind: "mutation",
19433
+ access: "view"
19050
19434
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19051
19435
  userId: string(),
19052
19436
  credentialId: string()
@@ -19054,6 +19438,13 @@ method(object({
19054
19438
  kind: "mutation",
19055
19439
  auth: "admin",
19056
19440
  access: "delete"
19441
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19442
+ userId: string(),
19443
+ enabled: boolean()
19444
+ }), object({ success: literal(true) }), {
19445
+ kind: "mutation",
19446
+ auth: "admin",
19447
+ access: "create"
19057
19448
  });
19058
19449
  /**
19059
19450
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19111,9 +19502,10 @@ method(object({
19111
19502
  auth: "admin"
19112
19503
  });
19113
19504
  /**
19114
- * Optional client-side hints sent at session creation to help the
19115
- * provider pick the best native source. All fields are optional —
19116
- * a viewer that knows nothing still gets a sane default.
19505
+ * Optional client-side hints sent at session creation to help the provider
19506
+ * pick the best native source. All fields optional — a viewer that knows
19507
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19508
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19117
19509
  */
19118
19510
  var webrtcClientHintsSchema = object({
19119
19511
  viewportWidth: number().int().positive().optional(),
@@ -19124,22 +19516,6 @@ var webrtcClientHintsSchema = object({
19124
19516
  /** Hard tier override; takes precedence over scoring when registered. */
19125
19517
  prefersTier: string().optional()
19126
19518
  }).partial();
19127
- method(object({
19128
- streamId: string(),
19129
- sdpOffer: string()
19130
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19131
- streamId: string(),
19132
- codec: string()
19133
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19134
- streamId: string(),
19135
- hints: webrtcClientHintsSchema.optional()
19136
- }), object({
19137
- sessionId: string(),
19138
- sdpOffer: string()
19139
- }), { kind: "mutation" }), method(object({
19140
- sessionId: string(),
19141
- sdpAnswer: string()
19142
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19143
19519
  /**
19144
19520
  * Discriminated target for a WebRTC session. The client sends this
19145
19521
  * structured object instead of building / parsing brokerId strings;
@@ -19626,7 +20002,15 @@ var FrameworkPackageStatusSchema = object({
19626
20002
  latestVersion: string().nullable(),
19627
20003
  hasUpdate: boolean(),
19628
20004
  /** Optional manifest description for the row tooltip. */
19629
- description: string().optional()
20005
+ description: string().optional(),
20006
+ /**
20007
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
20008
+ * ACTUALLY loaded. Framework packages ship code changes without always
20009
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
20010
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
20011
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
20012
+ */
20013
+ buildId: string().nullable()
19630
20014
  });
19631
20015
  var LogStreamEntrySchema = object({
19632
20016
  timestamp: string(),
@@ -19862,7 +20246,17 @@ var FaceInfoSchema = object({
19862
20246
  recognizedIdentityId: string().optional(),
19863
20247
  identityName: string().optional(),
19864
20248
  assigned: boolean(),
19865
- base64: string().optional()
20249
+ base64: string().optional(),
20250
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20251
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20252
+ * legacy rows written before design B. */
20253
+ faceBbox: BoundingBoxSchema.optional(),
20254
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20255
+ * Fetch the native JPEG via the event-media data-plane
20256
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20257
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20258
+ * back to the inline `base64` face crop. */
20259
+ keyFrameMediaKey: string().optional()
19866
20260
  });
19867
20261
  var FaceFilterEnum = _enum([
19868
20262
  "unassigned",
@@ -20559,6 +20953,16 @@ var TopologyCategorySchema = object({
20559
20953
  healthy: number(),
20560
20954
  addons: array(TopologyCategoryAddonSchema).readonly()
20561
20955
  });
20956
+ /**
20957
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20958
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20959
+ * version visibility for the Server management surface. Nullable: offline
20960
+ * rows and pre-phase-2 nodes report none.
20961
+ */
20962
+ var TopologyRootPackageSchema = object({
20963
+ name: string(),
20964
+ version: string()
20965
+ });
20562
20966
  var TopologyNodeSchema = object({
20563
20967
  id: string(),
20564
20968
  name: string(),
@@ -20582,7 +20986,8 @@ var TopologyNodeSchema = object({
20582
20986
  status: string()
20583
20987
  })).readonly(),
20584
20988
  processes: array(TopologyProcessSchema).readonly(),
20585
- categories: array(TopologyCategorySchema).readonly()
20989
+ categories: array(TopologyCategorySchema).readonly(),
20990
+ rootPackage: TopologyRootPackageSchema.nullable()
20586
20991
  });
20587
20992
  var CapUsageEdgeSchema = object({
20588
20993
  callerAddonId: string(),
@@ -23382,6 +23787,12 @@ Object.freeze({
23382
23787
  addonId: null,
23383
23788
  access: "create"
23384
23789
  },
23790
+ "loginMethod.getLoginMethods": {
23791
+ capName: "login-method",
23792
+ capScope: "system",
23793
+ addonId: null,
23794
+ access: "view"
23795
+ },
23385
23796
  "mediaPlayer.next": {
23386
23797
  capName: "media-player",
23387
23798
  capScope: "device",
@@ -23964,6 +24375,12 @@ Object.freeze({
23964
24375
  addonId: null,
23965
24376
  access: "view"
23966
24377
  },
24378
+ "pipelineAnalytics.getKeyEvents": {
24379
+ capName: "pipeline-analytics",
24380
+ capScope: "device",
24381
+ addonId: null,
24382
+ access: "view"
24383
+ },
23967
24384
  "pipelineAnalytics.getMotionEvents": {
23968
24385
  capName: "pipeline-analytics",
23969
24386
  capScope: "device",
@@ -24012,23 +24429,23 @@ Object.freeze({
24012
24429
  addonId: null,
24013
24430
  access: "create"
24014
24431
  },
24015
- "pipelineExecutor.deleteModel": {
24432
+ "pipelineExecutor.clearDeviceOverrides": {
24016
24433
  capName: "pipeline-executor",
24017
24434
  capScope: "system",
24018
24435
  addonId: null,
24019
24436
  access: "delete"
24020
24437
  },
24021
- "pipelineExecutor.deleteTemplate": {
24438
+ "pipelineExecutor.deleteModel": {
24022
24439
  capName: "pipeline-executor",
24023
24440
  capScope: "system",
24024
24441
  addonId: null,
24025
24442
  access: "delete"
24026
24443
  },
24027
- "pipelineExecutor.detect": {
24444
+ "pipelineExecutor.deleteTemplate": {
24028
24445
  capName: "pipeline-executor",
24029
24446
  capScope: "system",
24030
24447
  addonId: null,
24031
- access: "view"
24448
+ access: "delete"
24032
24449
  },
24033
24450
  "pipelineExecutor.downloadModel": {
24034
24451
  capName: "pipeline-executor",
@@ -24222,13 +24639,13 @@ Object.freeze({
24222
24639
  addonId: null,
24223
24640
  access: "create"
24224
24641
  },
24225
- "pipelineOrchestrator.assignAudio": {
24226
- capName: "pipeline-orchestrator",
24642
+ "pipelineExecutor.validatePipeline": {
24643
+ capName: "pipeline-executor",
24227
24644
  capScope: "system",
24228
24645
  addonId: null,
24229
- access: "create"
24646
+ access: "view"
24230
24647
  },
24231
- "pipelineOrchestrator.assignDecoder": {
24648
+ "pipelineOrchestrator.assignAudio": {
24232
24649
  capName: "pipeline-orchestrator",
24233
24650
  capScope: "system",
24234
24651
  addonId: null,
@@ -24312,19 +24729,13 @@ Object.freeze({
24312
24729
  addonId: null,
24313
24730
  access: "view"
24314
24731
  },
24315
- "pipelineOrchestrator.getDecoderAssignment": {
24316
- capName: "pipeline-orchestrator",
24317
- capScope: "system",
24318
- addonId: null,
24319
- access: "view"
24320
- },
24321
- "pipelineOrchestrator.getDecoderAssignments": {
24732
+ "pipelineOrchestrator.getGlobalMetrics": {
24322
24733
  capName: "pipeline-orchestrator",
24323
24734
  capScope: "system",
24324
24735
  addonId: null,
24325
24736
  access: "view"
24326
24737
  },
24327
- "pipelineOrchestrator.getGlobalMetrics": {
24738
+ "pipelineOrchestrator.getIngestOwner": {
24328
24739
  capName: "pipeline-orchestrator",
24329
24740
  capScope: "system",
24330
24741
  addonId: null,
@@ -24366,6 +24777,12 @@ Object.freeze({
24366
24777
  addonId: null,
24367
24778
  access: "delete"
24368
24779
  },
24780
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24781
+ capName: "pipeline-orchestrator",
24782
+ capScope: "system",
24783
+ addonId: null,
24784
+ access: "delete"
24785
+ },
24369
24786
  "pipelineOrchestrator.resolvePipeline": {
24370
24787
  capName: "pipeline-orchestrator",
24371
24788
  capScope: "system",
@@ -24402,37 +24819,37 @@ Object.freeze({
24402
24819
  addonId: null,
24403
24820
  access: "create"
24404
24821
  },
24405
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24822
+ "pipelineOrchestrator.setAgentReachableHost": {
24406
24823
  capName: "pipeline-orchestrator",
24407
24824
  capScope: "system",
24408
24825
  addonId: null,
24409
24826
  access: "create"
24410
24827
  },
24411
- "pipelineOrchestrator.setCameraStepOverride": {
24828
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24412
24829
  capName: "pipeline-orchestrator",
24413
24830
  capScope: "system",
24414
24831
  addonId: null,
24415
24832
  access: "create"
24416
24833
  },
24417
- "pipelineOrchestrator.setCameraStepToggle": {
24834
+ "pipelineOrchestrator.setCameraStepOverride": {
24418
24835
  capName: "pipeline-orchestrator",
24419
24836
  capScope: "system",
24420
24837
  addonId: null,
24421
24838
  access: "create"
24422
24839
  },
24423
- "pipelineOrchestrator.setCapabilityBinding": {
24840
+ "pipelineOrchestrator.setCameraStepToggle": {
24424
24841
  capName: "pipeline-orchestrator",
24425
24842
  capScope: "system",
24426
24843
  addonId: null,
24427
24844
  access: "create"
24428
24845
  },
24429
- "pipelineOrchestrator.unassignAudio": {
24846
+ "pipelineOrchestrator.setCapabilityBinding": {
24430
24847
  capName: "pipeline-orchestrator",
24431
24848
  capScope: "system",
24432
24849
  addonId: null,
24433
24850
  access: "create"
24434
24851
  },
24435
- "pipelineOrchestrator.unassignDecoder": {
24852
+ "pipelineOrchestrator.unassignAudio": {
24436
24853
  capName: "pipeline-orchestrator",
24437
24854
  capScope: "system",
24438
24855
  addonId: null,
@@ -24492,6 +24909,12 @@ Object.freeze({
24492
24909
  addonId: null,
24493
24910
  access: "view"
24494
24911
  },
24912
+ "pipelineRunner.getNativeCrop": {
24913
+ capName: "pipeline-runner",
24914
+ capScope: "system",
24915
+ addonId: null,
24916
+ access: "view"
24917
+ },
24495
24918
  "pipelineRunner.reportMotion": {
24496
24919
  capName: "pipeline-runner",
24497
24920
  capScope: "system",
@@ -24732,33 +25155,45 @@ Object.freeze({
24732
25155
  addonId: null,
24733
25156
  access: "create"
24734
25157
  },
24735
- "restreamer.getExposedResources": {
24736
- capName: "restreamer",
25158
+ "scriptRunner.run": {
25159
+ capName: "script-runner",
25160
+ capScope: "device",
25161
+ addonId: null,
25162
+ access: "create"
25163
+ },
25164
+ "scriptRunner.stop": {
25165
+ capName: "script-runner",
25166
+ capScope: "device",
25167
+ addonId: null,
25168
+ access: "create"
25169
+ },
25170
+ "serverManagement.applyServerUpdate": {
25171
+ capName: "server-management",
24737
25172
  capScope: "system",
24738
25173
  addonId: null,
24739
- access: "view"
25174
+ access: "create"
24740
25175
  },
24741
- "restreamer.registerDevice": {
24742
- capName: "restreamer",
25176
+ "serverManagement.checkServerUpdate": {
25177
+ capName: "server-management",
24743
25178
  capScope: "system",
24744
25179
  addonId: null,
24745
25180
  access: "create"
24746
25181
  },
24747
- "restreamer.unregisterDevice": {
24748
- capName: "restreamer",
25182
+ "serverManagement.getServerPackageStatus": {
25183
+ capName: "server-management",
24749
25184
  capScope: "system",
24750
25185
  addonId: null,
24751
- access: "delete"
25186
+ access: "view"
24752
25187
  },
24753
- "scriptRunner.run": {
24754
- capName: "script-runner",
24755
- capScope: "device",
25188
+ "serverManagement.restartServer": {
25189
+ capName: "server-management",
25190
+ capScope: "system",
24756
25191
  addonId: null,
24757
25192
  access: "create"
24758
25193
  },
24759
- "scriptRunner.stop": {
24760
- capName: "script-runner",
24761
- capScope: "device",
25194
+ "serverManagement.rollbackServerUpdate": {
25195
+ capName: "server-management",
25196
+ capScope: "system",
24762
25197
  addonId: null,
24763
25198
  access: "create"
24764
25199
  },
@@ -24846,23 +25281,17 @@ Object.freeze({
24846
25281
  addonId: null,
24847
25282
  access: "view"
24848
25283
  },
24849
- "snapshot.invalidateCache": {
25284
+ "snapshot.getSnapshotOverview": {
24850
25285
  capName: "snapshot",
24851
25286
  capScope: "device",
24852
25287
  addonId: null,
24853
- access: "create"
24854
- },
24855
- "snapshotProvider.getSnapshot": {
24856
- capName: "snapshot-provider",
24857
- capScope: "system",
24858
- addonId: null,
24859
25288
  access: "view"
24860
25289
  },
24861
- "snapshotProvider.supportsDevice": {
24862
- capName: "snapshot-provider",
24863
- capScope: "system",
25290
+ "snapshot.invalidateCache": {
25291
+ capName: "snapshot",
25292
+ capScope: "device",
24864
25293
  addonId: null,
24865
- access: "view"
25294
+ access: "create"
24866
25295
  },
24867
25296
  "ssoBridge.signBridgeToken": {
24868
25297
  capName: "sso-bridge",
@@ -25290,30 +25719,6 @@ Object.freeze({
25290
25719
  addonId: null,
25291
25720
  access: "view"
25292
25721
  },
25293
- "streamingEngine.getStreamUrl": {
25294
- capName: "streaming-engine",
25295
- capScope: "system",
25296
- addonId: null,
25297
- access: "view"
25298
- },
25299
- "streamingEngine.listStreams": {
25300
- capName: "streaming-engine",
25301
- capScope: "system",
25302
- addonId: null,
25303
- access: "view"
25304
- },
25305
- "streamingEngine.registerStream": {
25306
- capName: "streaming-engine",
25307
- capScope: "system",
25308
- addonId: null,
25309
- access: "create"
25310
- },
25311
- "streamingEngine.unregisterStream": {
25312
- capName: "streaming-engine",
25313
- capScope: "system",
25314
- addonId: null,
25315
- access: "delete"
25316
- },
25317
25722
  "streamParams.getConfigSchema": {
25318
25723
  capName: "stream-params",
25319
25724
  capScope: "device",
@@ -25560,6 +25965,12 @@ Object.freeze({
25560
25965
  addonId: null,
25561
25966
  access: "view"
25562
25967
  },
25968
+ "userPasskeys.beginDiscoverableAuthentication": {
25969
+ capName: "user-passkeys",
25970
+ capScope: "system",
25971
+ addonId: null,
25972
+ access: "view"
25973
+ },
25563
25974
  "userPasskeys.beginRegistration": {
25564
25975
  capName: "user-passkeys",
25565
25976
  capScope: "system",
@@ -25572,12 +25983,24 @@ Object.freeze({
25572
25983
  addonId: null,
25573
25984
  access: "view"
25574
25985
  },
25986
+ "userPasskeys.finishDiscoverableAuthentication": {
25987
+ capName: "user-passkeys",
25988
+ capScope: "system",
25989
+ addonId: null,
25990
+ access: "view"
25991
+ },
25575
25992
  "userPasskeys.finishRegistration": {
25576
25993
  capName: "user-passkeys",
25577
25994
  capScope: "system",
25578
25995
  addonId: null,
25579
25996
  access: "create"
25580
25997
  },
25998
+ "userPasskeys.getSecondFactorPreference": {
25999
+ capName: "user-passkeys",
26000
+ capScope: "system",
26001
+ addonId: null,
26002
+ access: "view"
26003
+ },
25581
26004
  "userPasskeys.listPasskeys": {
25582
26005
  capName: "user-passkeys",
25583
26006
  capScope: "system",
@@ -25590,6 +26013,12 @@ Object.freeze({
25590
26013
  addonId: null,
25591
26014
  access: "delete"
25592
26015
  },
26016
+ "userPasskeys.setSecondFactorPreference": {
26017
+ capName: "user-passkeys",
26018
+ capScope: "system",
26019
+ addonId: null,
26020
+ access: "create"
26021
+ },
25593
26022
  "vacuumControl.locate": {
25594
26023
  capName: "vacuum-control",
25595
26024
  capScope: "device",
@@ -25662,6 +26091,18 @@ Object.freeze({
25662
26091
  addonId: null,
25663
26092
  access: "view"
25664
26093
  },
26094
+ "viewerUi.getStaticDir": {
26095
+ capName: "viewer-ui",
26096
+ capScope: "system",
26097
+ addonId: null,
26098
+ access: "view"
26099
+ },
26100
+ "viewerUi.getVersion": {
26101
+ capName: "viewer-ui",
26102
+ capScope: "system",
26103
+ addonId: null,
26104
+ access: "view"
26105
+ },
25665
26106
  "waterHeater.setAway": {
25666
26107
  capName: "water-heater",
25667
26108
  capScope: "device",
@@ -25680,54 +26121,6 @@ Object.freeze({
25680
26121
  addonId: null,
25681
26122
  access: "create"
25682
26123
  },
25683
- "webrtc.closeSession": {
25684
- capName: "webrtc",
25685
- capScope: "system",
25686
- addonId: null,
25687
- access: "create"
25688
- },
25689
- "webrtc.createSession": {
25690
- capName: "webrtc",
25691
- capScope: "system",
25692
- addonId: null,
25693
- access: "create"
25694
- },
25695
- "webrtc.handleAnswer": {
25696
- capName: "webrtc",
25697
- capScope: "system",
25698
- addonId: null,
25699
- access: "create"
25700
- },
25701
- "webrtc.handleOffer": {
25702
- capName: "webrtc",
25703
- capScope: "system",
25704
- addonId: null,
25705
- access: "create"
25706
- },
25707
- "webrtc.hasAdaptiveBitrate": {
25708
- capName: "webrtc",
25709
- capScope: "system",
25710
- addonId: null,
25711
- access: "view"
25712
- },
25713
- "webrtc.registerStream": {
25714
- capName: "webrtc",
25715
- capScope: "system",
25716
- addonId: null,
25717
- access: "create"
25718
- },
25719
- "webrtc.supportsStream": {
25720
- capName: "webrtc",
25721
- capScope: "system",
25722
- addonId: null,
25723
- access: "view"
25724
- },
25725
- "webrtc.unregisterStream": {
25726
- capName: "webrtc",
25727
- capScope: "system",
25728
- addonId: null,
25729
- access: "delete"
25730
- },
25731
26124
  "webrtcSession.addIceCandidate": {
25732
26125
  capName: "webrtc-session",
25733
26126
  capScope: "device",