@camstack/addon-matter-broker 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +672 -287
  2. package/dist/addon.mjs +672 -287
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4656,7 +4656,7 @@ function preprocess(fn, schema) {
4656
4656
  });
4657
4657
  }
4658
4658
  //#endregion
4659
- //#region ../types/dist/sleep-CZDdRBua.mjs
4659
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4660
4660
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4661
4661
  EventCategory["SystemBoot"] = "system.boot";
4662
4662
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4842,6 +4842,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4842
4842
  */
4843
4843
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4844
4844
  /**
4845
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4846
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4847
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4848
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4849
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4850
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4851
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4852
+ * topology change, so a dropped event self-heals on the next one (plus the
4853
+ * broker's long backstop reconcile query).
4854
+ */
4855
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4856
+ /**
4845
4857
  * Periodic snapshot of per-node pipeline-runner load
4846
4858
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4847
4859
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5365,10 +5377,6 @@ function hydrateField(field, values) {
5365
5377
  };
5366
5378
  }
5367
5379
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5368
- if (field.type === "password") return {
5369
- ...field,
5370
- value: ""
5371
- };
5372
5380
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5373
5381
  return {
5374
5382
  ...field,
@@ -6752,10 +6760,25 @@ function method(input, output, options) {
6752
6760
  timeoutMs: options?.timeoutMs
6753
6761
  };
6754
6762
  }
6763
+ /**
6764
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6765
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6766
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6767
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6768
+ */
6769
+ function systemMethod(input, output, options) {
6770
+ return {
6771
+ ...method(input, output, options),
6772
+ systemOnly: true
6773
+ };
6774
+ }
6755
6775
  /** Shorthand to define an event schema */
6756
6776
  function event$1(data) {
6757
6777
  return { data };
6758
6778
  }
6779
+ var StaticDirOutputSchema$1 = object({ staticDir: string$2() });
6780
+ var VersionOutputSchema$1 = object({ version: string$2() });
6781
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6759
6782
  var StaticDirOutputSchema = object({ staticDir: string$2() });
6760
6783
  var VersionOutputSchema = object({ version: string$2() });
6761
6784
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6937,6 +6960,36 @@ var ModelFormatsSchema = object({
6937
6960
  tflite: ModelFormatEntrySchema.optional(),
6938
6961
  pt: ModelFormatEntrySchema.optional()
6939
6962
  });
6963
+ /**
6964
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6965
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6966
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6967
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6968
+ * resolution/download/persistence; this is a presentation overlay resolved back
6969
+ * to an `id`.
6970
+ */
6971
+ var ModelVariantGroupSchema = object({
6972
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6973
+ family: string$2(),
6974
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6975
+ tier: string$2(),
6976
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6977
+ precision: _enum(["fp32", "int8"]).optional(),
6978
+ /**
6979
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6980
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6981
+ * future performance variants plug into.
6982
+ */
6983
+ optimization: _enum(["standard", "fast"]).optional(),
6984
+ /**
6985
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6986
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6987
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6988
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6989
+ * the group so the selector can offer it as a variant axis.
6990
+ */
6991
+ resolution: number().int().positive().optional()
6992
+ });
6940
6993
  var ModelCatalogEntrySchema = object({
6941
6994
  id: string$2(),
6942
6995
  name: string$2(),
@@ -6966,7 +7019,43 @@ var ModelCatalogEntrySchema = object({
6966
7019
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6967
7020
  * Downloaded into the same modelsDir alongside the model file.
6968
7021
  */
6969
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7022
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7023
+ /**
7024
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7025
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7026
+ * model list and excluded from the auto format-default pick. Set on the
7027
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7028
+ * the active lineup stays the coherent curated ladder without deleting a
7029
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7030
+ * an explicit legacy id that has a build for the node's format.
7031
+ */
7032
+ legacy: boolean().optional(),
7033
+ /**
7034
+ * Measured quality/latency metadata — populated from the benchmark addon on
7035
+ * the real node classes. Absent = not yet measured (most entries today; the
7036
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7037
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7038
+ */
7039
+ metrics: object({
7040
+ map50: number().optional(),
7041
+ p95LatencyMs: record(string$2(), number()).optional()
7042
+ }).optional(),
7043
+ /**
7044
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7045
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7046
+ * the retraining addon and any future commercial distribution.
7047
+ */
7048
+ license: string$2().optional(),
7049
+ /**
7050
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7051
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7052
+ * of a family's sizes and quantizations collapse into one grouped picker
7053
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7054
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7055
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7056
+ * is a presentation overlay resolved back to an `id`.
7057
+ */
7058
+ group: ModelVariantGroupSchema.optional()
6970
7059
  });
6971
7060
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6972
7061
  format: literal("openvino"),
@@ -7027,8 +7116,8 @@ var RecordingModeSchema = _enum([
7027
7116
  "onAudioThreshold"
7028
7117
  ]);
7029
7118
  /**
7030
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7031
- * reads directly (never inferred from `rules`):
7119
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7120
+ * UI reads directly (never inferred from `rules`):
7032
7121
  * - `off` — not recording.
7033
7122
  * - `events` — record only around triggers (motion / audio threshold),
7034
7123
  * with pre/post-buffer.
@@ -9191,26 +9280,13 @@ onBrightnessChanged: { data: object({
9191
9280
  */
9192
9281
  runtimeState: BrightnessStatusSchema
9193
9282
  };
9283
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9194
9284
  var StreamFormatSchema = _enum([
9195
9285
  "webrtc",
9196
9286
  "hls",
9197
9287
  "mjpeg",
9198
9288
  "rtsp"
9199
9289
  ]);
9200
- var StreamInfoSchema = object({
9201
- streamId: string$2(),
9202
- format: StreamFormatSchema,
9203
- url: string$2().nullable(),
9204
- active: boolean()
9205
- });
9206
- method(object({
9207
- streamId: string$2(),
9208
- sourceUrl: string$2(),
9209
- codec: string$2().optional()
9210
- }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), _void(), { kind: "mutation" }), method(object({
9211
- streamId: string$2(),
9212
- format: StreamFormatSchema
9213
- }), string$2().nullable()), method(_void(), array(StreamInfoSchema));
9214
9290
  var RtspRestreamEntrySchema = object({
9215
9291
  brokerId: string$2(),
9216
9292
  url: string$2(),
@@ -10078,37 +10154,7 @@ var consumablesCapability = {
10078
10154
  scope: "device",
10079
10155
  deviceNative: true,
10080
10156
  mode: "singleton",
10081
- deviceTypes: [
10082
- DeviceType.Camera,
10083
- DeviceType.Hub,
10084
- DeviceType.Light,
10085
- DeviceType.Siren,
10086
- DeviceType.Switch,
10087
- DeviceType.Sensor,
10088
- DeviceType.Thermostat,
10089
- DeviceType.Button,
10090
- DeviceType.EventEmitter,
10091
- DeviceType.Update,
10092
- DeviceType.Generic,
10093
- DeviceType.Notifier,
10094
- DeviceType.Script,
10095
- DeviceType.Automation,
10096
- DeviceType.Lock,
10097
- DeviceType.Cover,
10098
- DeviceType.Valve,
10099
- DeviceType.Humidifier,
10100
- DeviceType.WaterHeater,
10101
- DeviceType.Fan,
10102
- DeviceType.MediaPlayer,
10103
- DeviceType.AlarmPanel,
10104
- DeviceType.Control,
10105
- DeviceType.Presence,
10106
- DeviceType.Weather,
10107
- DeviceType.Vacuum,
10108
- DeviceType.LawnMower,
10109
- DeviceType.Container,
10110
- DeviceType.Image
10111
- ],
10157
+ deviceTypes: Object.values(DeviceType),
10112
10158
  deviceConfig: { ui: {
10113
10159
  kind: "widget",
10114
10160
  widgetId: "host/consumables-panel",
@@ -11566,7 +11612,7 @@ var BoundingBoxSchema = object({
11566
11612
  w: number(),
11567
11613
  h: number()
11568
11614
  });
11569
- var SpatialDetectionSchema = object({
11615
+ object({
11570
11616
  class: string$2(),
11571
11617
  originalClass: string$2(),
11572
11618
  score: number(),
@@ -11701,7 +11747,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11701
11747
  enabled: boolean(),
11702
11748
  modelId: string$2(),
11703
11749
  children: array(PipelineDefaultStepSchema).readonly(),
11704
- engine: PipelineEngineChoiceSchema.optional(),
11705
11750
  group: string$2().optional(),
11706
11751
  settings: record(string$2(), unknown()).optional()
11707
11752
  }));
@@ -11726,7 +11771,9 @@ var PipelineModelOptionSchema = object({
11726
11771
  formats: record(string$2(), object({
11727
11772
  downloaded: boolean(),
11728
11773
  sizeMB: number()
11729
- }))
11774
+ })),
11775
+ group: ModelVariantGroupSchema.optional(),
11776
+ legacy: boolean().optional()
11730
11777
  });
11731
11778
  var ConfigFieldBridge = custom();
11732
11779
  var PipelineAddonSchemaSchema = object({
@@ -11740,6 +11787,7 @@ var PipelineAddonSchemaSchema = object({
11740
11787
  defaultModelId: string$2(),
11741
11788
  defaultModelIdByFormat: record(string$2(), string$2()).optional(),
11742
11789
  enabledByDefault: boolean().optional(),
11790
+ backfillIntoExistingOverrides: boolean().optional(),
11743
11791
  defaultConfidence: number(),
11744
11792
  group: string$2().optional(),
11745
11793
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11756,11 +11804,6 @@ var PipelineSchemaSchema = object({
11756
11804
  selectedEngine: PipelineEngineChoiceSchema,
11757
11805
  slots: array(PipelineSlotSchemaSchema).readonly()
11758
11806
  });
11759
- var DetectorOutputSchema = object({
11760
- detections: array(SpatialDetectionSchema).readonly(),
11761
- inferenceMs: number(),
11762
- modelId: string$2()
11763
- });
11764
11807
  var EngineProvisioningSchema = object({
11765
11808
  runtimeId: _enum([
11766
11809
  "onnx",
@@ -11777,15 +11820,42 @@ var EngineProvisioningSchema = object({
11777
11820
  ]),
11778
11821
  progress: number().optional(),
11779
11822
  error: string$2().optional(),
11780
- nextRetryAt: number().optional()
11823
+ nextRetryAt: number().optional(),
11824
+ /**
11825
+ * Gate A (config-correctness gate at engine change): human-readable
11826
+ * config issues surfaced EAGERLY when the node's engine changes — model
11827
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11828
+ * has a <format> build"). Additive/optional: informational only, never
11829
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11830
+ * Absent/empty when the node-default tree resolves cleanly.
11831
+ */
11832
+ configIssues: array(string$2()).optional()
11781
11833
  });
11782
11834
  var PipelineStepInputSchema = lazy(() => object({
11783
11835
  addonId: string$2(),
11784
- modelId: string$2(),
11836
+ modelId: string$2().optional(),
11785
11837
  enabled: boolean().default(true),
11786
11838
  children: array(PipelineStepInputSchema).optional(),
11787
11839
  settings: record(string$2(), unknown()).optional()
11788
11840
  }));
11841
+ var ModelSubstitutionSchema = object({
11842
+ addonId: string$2(),
11843
+ chosen: string$2(),
11844
+ running: string$2(),
11845
+ format: string$2()
11846
+ });
11847
+ var PipelineValidationIssueSchema = object({
11848
+ addonId: string$2(),
11849
+ kind: _enum(["unknown-addon", "no-format-build"]),
11850
+ detail: string$2()
11851
+ });
11852
+ var PipelineValidationResultSchema = object({
11853
+ ok: boolean(),
11854
+ issues: array(PipelineValidationIssueSchema).readonly(),
11855
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11856
+ /** The node's `currentEngine.format` this validation ran against. */
11857
+ format: string$2()
11858
+ });
11789
11859
  var ReferenceImageEntrySchema = object({
11790
11860
  filename: string$2(),
11791
11861
  stepIds: array(string$2()).readonly().optional()
@@ -11856,7 +11926,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11856
11926
  })) }), object({ success: literal(true) }), {
11857
11927
  kind: "mutation",
11858
11928
  auth: "admin"
11859
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11929
+ }), method(object({ nodeId: string$2() }), object({
11930
+ success: literal(true),
11931
+ clearedDevices: number()
11932
+ }), {
11933
+ kind: "mutation",
11934
+ auth: "admin"
11935
+ }), 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({
11860
11936
  name: string$2(),
11861
11937
  steps: array(PipelineTemplateStepSchema).readonly(),
11862
11938
  engine: PipelineEngineChoiceSchema
@@ -11873,10 +11949,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11873
11949
  modelId: string$2(),
11874
11950
  format: ModelFormatSchema$1
11875
11951
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11876
- addonId: string$2(),
11877
- frame: FrameInputSchema,
11878
- config: record(string$2(), unknown()).optional()
11879
- }), DetectorOutputSchema), method(object({
11880
11952
  engine: PipelineEngineChoiceSchema.optional(),
11881
11953
  steps: array(PipelineStepInputSchema).min(1),
11882
11954
  frame: FrameInputSchema.optional(),
@@ -12055,6 +12127,25 @@ var zonesCapability = {
12055
12127
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12056
12128
  };
12057
12129
  /**
12130
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12131
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12132
+ * so the caller supplies only the detection-res bbox divided by the detection
12133
+ * dims — no native resolution to plumb.
12134
+ */
12135
+ var NativeCropBboxSchema = object({
12136
+ x: number(),
12137
+ y: number(),
12138
+ w: number(),
12139
+ h: number()
12140
+ });
12141
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12142
+ var NativeCropResultSchema = object({
12143
+ /** Packed rgb (24-bit) pixels of the crop. */
12144
+ bytes: _instanceof(Uint8Array),
12145
+ width: number().int().positive(),
12146
+ height: number().int().positive()
12147
+ });
12148
+ /**
12058
12149
  * Per-camera tunable ranges + defaults. Single source of truth used
12059
12150
  * by both the Zod data schema (validation + default fallback) and
12060
12151
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12149,6 +12240,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12149
12240
  kind: literal("remote-restream"),
12150
12241
  /** The camera's source-owner node (slice 1: always the hub). */
12151
12242
  ownerNodeId: string$2(),
12243
+ /**
12244
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12245
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12246
+ * dials THIS host for the owner's restream, in preference to the
12247
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12248
+ */
12249
+ ownerReachableHost: string$2().optional(),
12152
12250
  /** Operator override for the owner host the runner dials. */
12153
12251
  hubHostnameOverride: string$2().optional()
12154
12252
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12157,13 +12255,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12157
12255
  * specific runner instance via `attachCamera`. Carries everything the
12158
12256
  * runner needs to subscribe to the local broker and execute inference.
12159
12257
  *
12160
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12161
- * optional `audio`) travels with the attach payload. The runner keeps it
12162
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12163
- * restart the orchestrator re-sends the latest snapshot.
12164
- *
12165
- * `engine`/`steps`/`audio` are optional during the additive migration
12166
- * window; once orchestrator + UI are migrated they become required.
12258
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12259
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12260
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12261
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12262
+ * node-local, resolved by the executing runner at dispatch time.
12167
12263
  */
12168
12264
  var RunnerCameraConfigSchema = object({
12169
12265
  deviceId: number(),
@@ -12214,14 +12310,11 @@ var RunnerCameraConfigSchema = object({
12214
12310
  */
12215
12311
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12216
12312
  pipelineEnabled: boolean().default(true),
12217
- /** Engine choice for video steps (runtime+backend+format). */
12218
- engine: PipelineEngineChoiceSchema.optional(),
12219
12313
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12220
12314
  steps: array(PipelineStepInputSchema).readonly().optional(),
12221
12315
  /** Audio classification branch. `enabled:false` disables, null skips. */
12222
12316
  audio: object({
12223
- engine: PipelineEngineChoiceSchema,
12224
- modelId: string$2(),
12317
+ modelId: string$2().optional(),
12225
12318
  enabled: boolean()
12226
12319
  }).nullable().optional(),
12227
12320
  /**
@@ -12308,7 +12401,11 @@ var RunnerLocalMetricsSchema = object({
12308
12401
  avgInferenceTimeMs: number(),
12309
12402
  queueDepth: number()
12310
12403
  });
12311
- 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());
12404
+ 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({
12405
+ handle: FrameHandleSchema,
12406
+ bbox: NativeCropBboxSchema,
12407
+ maxWidth: number().int().positive().optional()
12408
+ }), NativeCropResultSchema.nullable());
12312
12409
  /**
12313
12410
  * Hardware / firmware motion sensor cap — binary detected state plus
12314
12411
  * a timestamp of the last observation. Distinct from
@@ -15239,7 +15336,9 @@ var AddonPageDeclarationSchema$1 = object({
15239
15336
  icon: string$2(),
15240
15337
  path: string$2(),
15241
15338
  remoteName: string$2(),
15242
- bundle: string$2()
15339
+ bundle: string$2(),
15340
+ section: string$2().optional(),
15341
+ sectionLabel: string$2().optional()
15243
15342
  });
15244
15343
  var AddonPageInfoSchema = object({
15245
15344
  addonId: string$2(),
@@ -15279,7 +15378,18 @@ var AddonPageDeclarationSchema = object({
15279
15378
  * the static-file route can compute an mtime-based cache-buster URL
15280
15379
  * without a separate filesystem stat.
15281
15380
  */
15282
- bundle: string$2()
15381
+ bundle: string$2(),
15382
+ /**
15383
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15384
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15385
+ * Any OTHER string creates (or joins) a custom section rendered after
15386
+ * the built-in groups; its label comes from `sectionLabel` (first
15387
+ * declaration wins), falling back to the id. Absent → the legacy
15388
+ * "Addon Pages" group.
15389
+ */
15390
+ section: string$2().optional(),
15391
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15392
+ sectionLabel: string$2().optional()
15283
15393
  });
15284
15394
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15285
15395
  var AddonHttpRouteSchema = object({
@@ -15495,6 +15605,17 @@ var WidgetMetadataSchema = object({
15495
15605
  deviceContext: boolean().default(false),
15496
15606
  integrationContext: boolean().default(false)
15497
15607
  }),
15608
+ /**
15609
+ * Loadable BEFORE authentication. The normal widget registry listing
15610
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15611
+ * (the login page) cannot discover a widget through it. A widget that
15612
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15613
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15614
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15615
+ * than the authenticated registry, and its bundle is served by the
15616
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15617
+ */
15618
+ preAuth: boolean().optional().default(false),
15498
15619
  /** Dashboard placement HINTS (operator can override per instance). */
15499
15620
  defaultSize: WidgetSizeEnum.default("md"),
15500
15621
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15796,6 +15917,66 @@ method(object({
15796
15917
  password: string$2()
15797
15918
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string$2() }), string$2()), method(record(string$2(), string$2()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string$2() }), AuthResultSchema.nullable());
15798
15919
  /**
15920
+ * `login-method` — collection cap through which auth addons contribute
15921
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15922
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15923
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15924
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15925
+ * procedure aggregates them for the unauthenticated login page.
15926
+ *
15927
+ * A contribution is a discriminated union on `kind`:
15928
+ *
15929
+ * - `redirect` — a declarative button. The login page renders a generic
15930
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15931
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15932
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15933
+ * login page needs NO change.
15934
+ *
15935
+ * - `widget` — a Module-Federation widget the login page mounts (via
15936
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15937
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15938
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15939
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15940
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15941
+ *
15942
+ * Every contribution carries a `stage`:
15943
+ * - `primary` — shown on the first credentials screen (OIDC /
15944
+ * magic-link buttons; a future usernameless passkey).
15945
+ * - `second-factor` — shown AFTER the password leg, gated on the
15946
+ * returned `factors` (passkey-as-2FA today).
15947
+ *
15948
+ * `mount: skip` — the cap is read server-side by the core auth router
15949
+ * (`registry.getCollection('login-method')`), never mounted as its own
15950
+ * tRPC router.
15951
+ */
15952
+ /** When a login method renders in the two-phase login flow. */
15953
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15954
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15955
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15956
+ kind: literal("redirect"),
15957
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15958
+ id: string$2(),
15959
+ /** Operator-facing button label. */
15960
+ label: string$2(),
15961
+ /** lucide-react icon name. */
15962
+ icon: string$2().optional(),
15963
+ /** Addon-owned HTTP route the button navigates to (GET). */
15964
+ startUrl: string$2(),
15965
+ stage: LoginStageEnum
15966
+ }), object({
15967
+ kind: literal("widget"),
15968
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15969
+ id: string$2(),
15970
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15971
+ addonId: string$2(),
15972
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15973
+ bundle: string$2(),
15974
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15975
+ remote: WidgetRemoteSchema,
15976
+ stage: LoginStageEnum
15977
+ })]);
15978
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15979
+ /**
15799
15980
  * Orchestrator-side destination metadata. The orchestrator computes
15800
15981
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15801
15982
  * (admin UI, restore flow) see one canonical key.
@@ -17965,7 +18146,17 @@ var TrackSchema = object({
17965
18146
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17966
18147
  totalDistance: number(),
17967
18148
  state: TrackStateSchema,
17968
- active: boolean()
18149
+ active: boolean(),
18150
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18151
+ * track expiry, recomputed on late label). Absent on legacy rows written
18152
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18153
+ importance: number().optional(),
18154
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18155
+ * "best" frame). Absent when the track produced no object events. */
18156
+ bestEventId: string$2().optional(),
18157
+ /** Tag of the importance sub-signal that dominated the score
18158
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18159
+ importanceReason: string$2().optional()
17969
18160
  });
17970
18161
  var BaseEventFields = {
17971
18162
  id: string$2(),
@@ -18030,8 +18221,18 @@ var ObjectEventSchema = object({
18030
18221
  frameHeight: number().optional(),
18031
18222
  /** MediaStore key for the crop attached to this event (if any). */
18032
18223
  mediaKey: string$2().optional(),
18224
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18225
+ * best-detection full frame). Resolve via the event-media data-plane
18226
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18227
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18228
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18229
+ keyFrameMediaKey: string$2().optional(),
18033
18230
  /** Populated by B5 (recording playback URL for this event). */
18034
- mediaUrl: string$2().optional()
18231
+ mediaUrl: string$2().optional(),
18232
+ /** The parent track's key-event importance [0,1], propagated to every object
18233
+ * event of the track (so an event row can be sorted by importance without a
18234
+ * track join). Absent on legacy rows / before the track was scored. */
18235
+ importance: number().optional()
18035
18236
  });
18036
18237
  var AudioEventSchema = object({
18037
18238
  ...BaseEventFields,
@@ -18055,7 +18256,8 @@ var MediaFileKindEnum = _enum([
18055
18256
  "fullFrame",
18056
18257
  "fullFrameBoxed",
18057
18258
  "faceCrop",
18058
- "plateCrop"
18259
+ "plateCrop",
18260
+ "keyFrame"
18059
18261
  ]);
18060
18262
  var MediaFileSchema = object({
18061
18263
  key: string$2(),
@@ -18076,6 +18278,32 @@ var DeviceEventQueryInput = object({
18076
18278
  projection: _enum(["full", "slim"]).optional()
18077
18279
  });
18078
18280
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string$2().optional() });
18281
+ var KeyEventQueryInput = object({
18282
+ deviceId: number(),
18283
+ /** Window lower bound (track firstSeen ≥ since). */
18284
+ since: number(),
18285
+ /** Window upper bound (track firstSeen ≤ until). */
18286
+ until: number(),
18287
+ limit: number().int().min(1).max(200).default(50),
18288
+ /** Drop tracks scoring below this importance. */
18289
+ minImportance: number().min(0).max(1).optional(),
18290
+ /** Restrict to a single class (e.g. 'person'). */
18291
+ classFilter: string$2().optional()
18292
+ });
18293
+ var KeyEventSchema = object({
18294
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18295
+ id: string$2(),
18296
+ trackId: string$2(),
18297
+ /** Track start time (firstSeen). */
18298
+ timestamp: number(),
18299
+ className: string$2(),
18300
+ label: string$2().optional(),
18301
+ importance: number(),
18302
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18303
+ bestEventId: string$2(),
18304
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18305
+ windowMs: number().optional()
18306
+ });
18079
18307
  var TrackedDetectionSchema = object({
18080
18308
  trackId: string$2(),
18081
18309
  className: string$2(),
@@ -18105,7 +18333,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18105
18333
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18106
18334
  kind: "mutation",
18107
18335
  auth: "admin"
18108
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18336
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18109
18337
  deviceId: number(),
18110
18338
  since: number(),
18111
18339
  until: number(),
@@ -18150,11 +18378,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18150
18378
  timestamp: number()
18151
18379
  });
18152
18380
  var CameraPipelineConfigSchema = object({
18153
- engine: PipelineEngineChoiceSchema,
18381
+ engine: PipelineEngineChoiceSchema.optional(),
18154
18382
  steps: array(PipelineStepInputSchema).readonly(),
18155
18383
  audio: object({
18156
- engine: PipelineEngineChoiceSchema,
18157
- modelId: string$2(),
18384
+ engine: PipelineEngineChoiceSchema.optional(),
18385
+ modelId: string$2().optional(),
18158
18386
  enabled: boolean(),
18159
18387
  settings: record(string$2(), unknown()).readonly().optional()
18160
18388
  }).nullable().optional()
@@ -18169,7 +18397,7 @@ var PipelineTemplateSchema = object({
18169
18397
  });
18170
18398
  var AgentAddonConfigSchema = object({
18171
18399
  enabled: boolean(),
18172
- modelId: string$2(),
18400
+ modelId: string$2().optional(),
18173
18401
  settings: record(string$2(), unknown()).readonly()
18174
18402
  });
18175
18403
  var AgentPipelineSettingsSchema = object({
@@ -18179,12 +18407,25 @@ var AgentPipelineSettingsSchema = object({
18179
18407
  detectWeight: number().positive().optional(),
18180
18408
  /** Node is eligible to run the detection pipeline (decode + inference). */
18181
18409
  detect: boolean().optional(),
18182
- /** Node is eligible to host decoder sessions. */
18410
+ /**
18411
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18412
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18413
+ * the schema ONLY so persisted stores written before the removal still
18414
+ * parse — no code reads it and no write path emits it.
18415
+ */
18183
18416
  decode: boolean().optional(),
18184
18417
  /** Node is eligible to run audio-analyzer sessions. */
18185
18418
  audio: boolean().optional(),
18186
18419
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18187
- ingest: boolean().optional()
18420
+ ingest: boolean().optional(),
18421
+ /**
18422
+ * Operator override for the LAN host a cross-node decoder dials to reach
18423
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18424
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18425
+ * it already uses to reach the hub). Set this only when the auto-detected
18426
+ * address is wrong (multi-homed host, NAT, custom interface).
18427
+ */
18428
+ reachableHost: string$2().optional()
18188
18429
  });
18189
18430
  var CameraPipelineForAgentSchema = object({
18190
18431
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18232,25 +18473,6 @@ var PipelineAssignmentSchema = object({
18232
18473
  assignedAt: number()
18233
18474
  });
18234
18475
  /**
18235
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18236
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18237
- * → co-located with pipeline → capacity).
18238
- */
18239
- var DecoderAssignmentSchema = object({
18240
- deviceId: number(),
18241
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18242
- decoderNodeId: string$2(),
18243
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18244
- pinned: boolean(),
18245
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18246
- reason: _enum([
18247
- "manual",
18248
- "co-located",
18249
- "capacity",
18250
- "hardware-affinity"
18251
- ])
18252
- });
18253
- /**
18254
18476
  * Per-agent load summary surfaced to the load balancer + dashboards.
18255
18477
  * Aggregated from each runner's `getLocalLoad` cap call.
18256
18478
  */
@@ -18290,6 +18512,15 @@ var GlobalMetricsSchema = object({
18290
18512
  * capability providers.
18291
18513
  */
18292
18514
  var CapabilityBindingsSchema = record(string$2(), string$2());
18515
+ /**
18516
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18517
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18518
+ */
18519
+ var IngestOwnerSchema = object({
18520
+ ownerNodeId: string$2(),
18521
+ reachableHost: string$2().optional(),
18522
+ configIssue: string$2().optional()
18523
+ });
18293
18524
  /** Source block — always present; derives from the stream catalog. */
18294
18525
  var CameraSourceStatusSchema = object({ streams: array(object({
18295
18526
  camStreamId: string$2(),
@@ -18304,6 +18535,14 @@ var CameraAssignmentStatusSchema = object({
18304
18535
  detectionNodeId: string$2().nullable(),
18305
18536
  decoderNodeId: string$2().nullable(),
18306
18537
  audioNodeId: string$2().nullable(),
18538
+ /**
18539
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18540
+ * hosts the broker/restream) — the cluster ingest owner today
18541
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18542
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18543
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18544
+ */
18545
+ sourceNodeId: string$2().nullable(),
18307
18546
  pinned: object({
18308
18547
  detection: boolean(),
18309
18548
  decoder: boolean(),
@@ -18436,16 +18675,7 @@ method(object({
18436
18675
  }), object({ success: literal(true) }), {
18437
18676
  kind: "mutation",
18438
18677
  auth: "admin"
18439
- }), method(object({
18440
- deviceId: number(),
18441
- nodeId: string$2()
18442
- }), _void(), {
18443
- kind: "mutation",
18444
- auth: "admin"
18445
- }), method(object({ deviceId: number() }), _void(), {
18446
- kind: "mutation",
18447
- auth: "admin"
18448
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18678
+ }), method(_void(), IngestOwnerSchema), method(object({
18449
18679
  deviceId: number(),
18450
18680
  nodeId: string$2()
18451
18681
  }), object({ success: literal(true) }), {
@@ -18466,10 +18696,7 @@ method(object({
18466
18696
  nodeId: string$2(),
18467
18697
  pinned: boolean(),
18468
18698
  assignedAt: number()
18469
- }))), method(object({
18470
- deviceId: number(),
18471
- pipelineNodeId: string$2().optional()
18472
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string$2() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18699
+ }))), method(object({ agentNodeId: string$2() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18473
18700
  nodeId: string$2(),
18474
18701
  settings: AgentPipelineSettingsSchema
18475
18702
  })).readonly()), method(object({
@@ -18499,12 +18726,26 @@ method(object({
18499
18726
  }), method(object({
18500
18727
  agentNodeId: string$2(),
18501
18728
  detect: boolean().nullable().optional(),
18502
- decode: boolean().nullable().optional(),
18503
18729
  audio: boolean().nullable().optional(),
18504
18730
  ingest: boolean().nullable().optional()
18505
18731
  }), object({ success: literal(true) }), {
18506
18732
  kind: "mutation",
18507
18733
  auth: "admin"
18734
+ }), method(object({
18735
+ agentNodeId: string$2(),
18736
+ reachableHost: string$2().nullable()
18737
+ }), object({ success: literal(true) }), {
18738
+ kind: "mutation",
18739
+ auth: "admin"
18740
+ }), method(object({ agentNodeId: string$2() }), object({
18741
+ success: literal(true),
18742
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18743
+ effectiveModelId: string$2().nullable(),
18744
+ /** Number of cameras whose node-scoped overrides were cleared. */
18745
+ clearedCameraOverrides: number()
18746
+ }), {
18747
+ kind: "mutation",
18748
+ auth: "admin"
18508
18749
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18509
18750
  deviceId: number(),
18510
18751
  addonId: string$2(),
@@ -18549,22 +18790,131 @@ method(object({
18549
18790
  kind: "mutation",
18550
18791
  auth: "admin"
18551
18792
  });
18552
- var RegisteredStreamSchema = object({
18553
- streamId: string$2(),
18554
- label: string$2().optional(),
18555
- codec: string$2(),
18556
- type: _enum(["video", "audio"]),
18557
- sourceUrl: string$2()
18793
+ /**
18794
+ * server-management — per-NODE singleton capability for a node's ROOT
18795
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18796
+ * agents).
18797
+ *
18798
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18799
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18800
+ * version describes the node. Updates install into
18801
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18802
+ * starter (probation boot + auto-rollback to N-1).
18803
+ *
18804
+ * Providers:
18805
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18806
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18807
+ * unpinned calls.
18808
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18809
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18810
+ * `$hub.registerNode` manifest.
18811
+ *
18812
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18813
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18814
+ * SDK) routes the call to that node's provider via the standard remote
18815
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18816
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18817
+ *
18818
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18819
+ */
18820
+ /**
18821
+ * Where the running hub's code was loaded from:
18822
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18823
+ * plain resolution and runtime updates are refused.
18824
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18825
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18826
+ */
18827
+ var ServerBootModeSchema = _enum([
18828
+ "workspace",
18829
+ "baked",
18830
+ "data-root"
18831
+ ]);
18832
+ /**
18833
+ * Update lifecycle state:
18834
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18835
+ * - `pending-restart` — a version is staged and the node has NOT yet
18836
+ * restarted onto it (still running the OLD version).
18837
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18838
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18839
+ * Apply/rollback are refused in this state and the node must NOT be
18840
+ * manually restarted, or the probation boot auto-rolls-back.
18841
+ */
18842
+ var ServerUpdateStateSchema = _enum([
18843
+ "idle",
18844
+ "checking",
18845
+ "staging",
18846
+ "pending-restart",
18847
+ "awaiting-confirmation"
18848
+ ]);
18849
+ var ServerRollbackInfoSchema = object({
18850
+ /** The version that failed (or was manually rolled back). */
18851
+ fromVersion: string$2(),
18852
+ /** The version rolled back to; null = the baked seed. */
18853
+ toVersion: string$2().nullable(),
18854
+ atMs: number(),
18855
+ reason: string$2()
18558
18856
  });
18559
- var ExposedResourceSchema = object({
18560
- streamId: string$2(),
18561
- format: string$2(),
18562
- value: string$2()
18857
+ var ServerPackageStatusSchema = object({
18858
+ /** Root package name (`@camstack/server` on the hub). */
18859
+ packageName: string$2(),
18860
+ /** Version of the code the running process ACTUALLY loaded. */
18861
+ runningVersion: string$2().nullable(),
18862
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18863
+ nodeRuntimeVersion: string$2().nullable(),
18864
+ /** Active data-dir root version; null when booted from seed/workspace. */
18865
+ activeVersion: string$2().nullable(),
18866
+ /** N-1 version kept for rollback; null when no previous version exists. */
18867
+ previousVersion: string$2().nullable(),
18868
+ /** Version of the immutable baked seed closure (image fallback). */
18869
+ seedVersion: string$2().nullable(),
18870
+ /** Latest registry version from the most recent check (null = never checked). */
18871
+ latestVersion: string$2().nullable(),
18872
+ updateAvailable: boolean(),
18873
+ bootMode: ServerBootModeSchema,
18874
+ updateState: ServerUpdateStateSchema,
18875
+ /** Version staged + awaiting its probation boot, when one is pending. */
18876
+ pendingVersion: string$2().nullable(),
18877
+ /** Set when the last freshly-activated version failed its boot health-check. */
18878
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18879
+ /**
18880
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18881
+ * hub is running from the baked seed (or workspace) while installed data-dir
18882
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18883
+ */
18884
+ stateFileCorrupt: boolean(),
18885
+ lastCheckedAtMs: number().nullable()
18886
+ });
18887
+ var ServerUpdateCheckResultSchema = object({
18888
+ packageName: string$2(),
18889
+ runningVersion: string$2().nullable(),
18890
+ latestVersion: string$2().nullable(),
18891
+ updateAvailable: boolean(),
18892
+ checkedAtMs: number(),
18893
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18894
+ error: string$2().nullable()
18895
+ });
18896
+ var ServerUpdateActionResultSchema = object({
18897
+ accepted: boolean(),
18898
+ targetVersion: string$2().nullable(),
18899
+ /** True when a graceful restart was scheduled to apply the change. */
18900
+ restarting: boolean(),
18901
+ message: string$2()
18902
+ });
18903
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18904
+ kind: "mutation",
18905
+ auth: "admin"
18906
+ }), method(object({
18907
+ /** Explicit target version; omitted = latest from the registry. */
18908
+ version: string$2().optional() }), ServerUpdateActionResultSchema, {
18909
+ kind: "mutation",
18910
+ auth: "admin"
18911
+ }), method(_void(), ServerUpdateActionResultSchema, {
18912
+ kind: "mutation",
18913
+ auth: "admin"
18914
+ }), method(_void(), ServerUpdateActionResultSchema, {
18915
+ kind: "mutation",
18916
+ auth: "admin"
18563
18917
  });
18564
- method(object({
18565
- deviceId: number(),
18566
- streams: array(RegisteredStreamSchema).readonly()
18567
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18568
18918
  /**
18569
18919
  * Query filter for settings-store collections.
18570
18920
  */
@@ -18717,9 +19067,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18717
19067
  /**
18718
19068
  * A single device snapshot returned as base64 JPEG/PNG.
18719
19069
  *
18720
- * Shared with the `snapshot-provider` collection cap the orchestrator
18721
- * receives the same shape from each native provider and from the
18722
- * broker-based fallback.
19070
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19071
+ * the device-native provider (onboard capture) or from the stream-broker
19072
+ * prebuffer fallback.
18723
19073
  */
18724
19074
  var SnapshotImageSchema = object({
18725
19075
  base64: string$2(),
@@ -18750,11 +19100,12 @@ DeviceType.Camera, method(object({
18750
19100
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18751
19101
  kind: "mutation",
18752
19102
  auth: "admin"
18753
- });
18754
- method(object({ deviceId: number() }), boolean()), method(object({
19103
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18755
19104
  deviceId: number(),
18756
- streamId: string$2().optional()
18757
- }), SnapshotImageSchema.nullable());
19105
+ lastCapturedAt: number().nullable(),
19106
+ cacheAgeMs: number().nullable(),
19107
+ etag: string$2().nullable()
19108
+ })));
18758
19109
  /**
18759
19110
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18760
19111
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19005,10 +19356,32 @@ method(_void(), array(TurnServerSchema).readonly());
19005
19356
  * b. `finishAuthentication({userId, response})` → server verifies
19006
19357
  * the assertion, bumps the credential counter, returns ok.
19007
19358
  *
19359
+ * 2b. Usernameless (discoverable-credential) authentication — the
19360
+ * passkey IS the primary factor, no password leg:
19361
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19362
+ * EMPTY `allowCredentials` (the browser offers every resident
19363
+ * passkey it holds for this RP) + `userVerification: 'required'`
19364
+ * (the passkey replaces both factors, so UV is mandatory).
19365
+ * The challenge is stored server-side, NOT bound to any user.
19366
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19367
+ * resolves the credential by the response's credential id,
19368
+ * verifies the assertion against the stored challenge + that
19369
+ * credential's public key/counter, and returns the OWNING
19370
+ * `userId` — the caller (core auth router) mints the session.
19371
+ *
19008
19372
  * 3. Management:
19009
19373
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19010
19374
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19011
19375
  *
19376
+ * 4. Second-factor preference (opt-in, default OFF):
19377
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19378
+ * demanded as a second factor after a password login ONLY when the
19379
+ * user explicitly opts in via `setSecondFactorPreference`.
19380
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19381
+ * row ⇒ `enabled: false`).
19382
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19383
+ * the providing addon beside its credentials.
19384
+ *
19012
19385
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19013
19386
  * the admin-ui composes the begin/finish round-trip and never exposes
19014
19387
  * the cap to non-admins.
@@ -19051,6 +19424,17 @@ method(object({
19051
19424
  }), object({ verified: boolean() }), {
19052
19425
  kind: "mutation",
19053
19426
  access: "view"
19427
+ }), method(object({}), object({ optionsJSON: record(string$2(), unknown()) }), {
19428
+ kind: "mutation",
19429
+ access: "view"
19430
+ }), method(object({
19431
+ /** AuthenticationResponseJSON from the browser. */
19432
+ response: record(string$2(), unknown()) }), object({
19433
+ verified: boolean(),
19434
+ userId: string$2().nullable()
19435
+ }), {
19436
+ kind: "mutation",
19437
+ access: "view"
19054
19438
  }), method(object({ userId: string$2() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19055
19439
  userId: string$2(),
19056
19440
  credentialId: string$2()
@@ -19058,6 +19442,13 @@ method(object({
19058
19442
  kind: "mutation",
19059
19443
  auth: "admin",
19060
19444
  access: "delete"
19445
+ }), method(object({ userId: string$2() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19446
+ userId: string$2(),
19447
+ enabled: boolean()
19448
+ }), object({ success: literal(true) }), {
19449
+ kind: "mutation",
19450
+ auth: "admin",
19451
+ access: "create"
19061
19452
  });
19062
19453
  /**
19063
19454
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19115,9 +19506,10 @@ method(object({
19115
19506
  auth: "admin"
19116
19507
  });
19117
19508
  /**
19118
- * Optional client-side hints sent at session creation to help the
19119
- * provider pick the best native source. All fields are optional —
19120
- * a viewer that knows nothing still gets a sane default.
19509
+ * Optional client-side hints sent at session creation to help the provider
19510
+ * pick the best native source. All fields optional — a viewer that knows
19511
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19512
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19121
19513
  */
19122
19514
  var webrtcClientHintsSchema = object({
19123
19515
  viewportWidth: number().int().positive().optional(),
@@ -19128,22 +19520,6 @@ var webrtcClientHintsSchema = object({
19128
19520
  /** Hard tier override; takes precedence over scoring when registered. */
19129
19521
  prefersTier: string$2().optional()
19130
19522
  }).partial();
19131
- method(object({
19132
- streamId: string$2(),
19133
- sdpOffer: string$2()
19134
- }), string$2(), { kind: "mutation" }), method(object({ streamId: string$2() }), boolean()), method(object({
19135
- streamId: string$2(),
19136
- codec: string$2()
19137
- }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), _void(), { kind: "mutation" }), method(object({
19138
- streamId: string$2(),
19139
- hints: webrtcClientHintsSchema.optional()
19140
- }), object({
19141
- sessionId: string$2(),
19142
- sdpOffer: string$2()
19143
- }), { kind: "mutation" }), method(object({
19144
- sessionId: string$2(),
19145
- sdpAnswer: string$2()
19146
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string$2() }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), boolean());
19147
19523
  /**
19148
19524
  * Discriminated target for a WebRTC session. The client sends this
19149
19525
  * structured object instead of building / parsing brokerId strings;
@@ -19891,7 +20267,17 @@ var FaceInfoSchema = object({
19891
20267
  recognizedIdentityId: string$2().optional(),
19892
20268
  identityName: string$2().optional(),
19893
20269
  assigned: boolean(),
19894
- base64: string$2().optional()
20270
+ base64: string$2().optional(),
20271
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20272
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20273
+ * legacy rows written before design B. */
20274
+ faceBbox: BoundingBoxSchema.optional(),
20275
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20276
+ * Fetch the native JPEG via the event-media data-plane
20277
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20278
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20279
+ * back to the inline `base64` face crop. */
20280
+ keyFrameMediaKey: string$2().optional()
19895
20281
  });
19896
20282
  var FaceFilterEnum = _enum([
19897
20283
  "unassigned",
@@ -20588,6 +20974,16 @@ var TopologyCategorySchema = object({
20588
20974
  healthy: number(),
20589
20975
  addons: array(TopologyCategoryAddonSchema).readonly()
20590
20976
  });
20977
+ /**
20978
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20979
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20980
+ * version visibility for the Server management surface. Nullable: offline
20981
+ * rows and pre-phase-2 nodes report none.
20982
+ */
20983
+ var TopologyRootPackageSchema = object({
20984
+ name: string$2(),
20985
+ version: string$2()
20986
+ });
20591
20987
  var TopologyNodeSchema = object({
20592
20988
  id: string$2(),
20593
20989
  name: string$2(),
@@ -20611,7 +21007,8 @@ var TopologyNodeSchema = object({
20611
21007
  status: string$2()
20612
21008
  })).readonly(),
20613
21009
  processes: array(TopologyProcessSchema).readonly(),
20614
- categories: array(TopologyCategorySchema).readonly()
21010
+ categories: array(TopologyCategorySchema).readonly(),
21011
+ rootPackage: TopologyRootPackageSchema.nullable()
20615
21012
  });
20616
21013
  var CapUsageEdgeSchema = object({
20617
21014
  callerAddonId: string$2(),
@@ -23411,6 +23808,12 @@ Object.freeze({
23411
23808
  addonId: null,
23412
23809
  access: "create"
23413
23810
  },
23811
+ "loginMethod.getLoginMethods": {
23812
+ capName: "login-method",
23813
+ capScope: "system",
23814
+ addonId: null,
23815
+ access: "view"
23816
+ },
23414
23817
  "mediaPlayer.next": {
23415
23818
  capName: "media-player",
23416
23819
  capScope: "device",
@@ -23993,6 +24396,12 @@ Object.freeze({
23993
24396
  addonId: null,
23994
24397
  access: "view"
23995
24398
  },
24399
+ "pipelineAnalytics.getKeyEvents": {
24400
+ capName: "pipeline-analytics",
24401
+ capScope: "device",
24402
+ addonId: null,
24403
+ access: "view"
24404
+ },
23996
24405
  "pipelineAnalytics.getMotionEvents": {
23997
24406
  capName: "pipeline-analytics",
23998
24407
  capScope: "device",
@@ -24041,23 +24450,23 @@ Object.freeze({
24041
24450
  addonId: null,
24042
24451
  access: "create"
24043
24452
  },
24044
- "pipelineExecutor.deleteModel": {
24453
+ "pipelineExecutor.clearDeviceOverrides": {
24045
24454
  capName: "pipeline-executor",
24046
24455
  capScope: "system",
24047
24456
  addonId: null,
24048
24457
  access: "delete"
24049
24458
  },
24050
- "pipelineExecutor.deleteTemplate": {
24459
+ "pipelineExecutor.deleteModel": {
24051
24460
  capName: "pipeline-executor",
24052
24461
  capScope: "system",
24053
24462
  addonId: null,
24054
24463
  access: "delete"
24055
24464
  },
24056
- "pipelineExecutor.detect": {
24465
+ "pipelineExecutor.deleteTemplate": {
24057
24466
  capName: "pipeline-executor",
24058
24467
  capScope: "system",
24059
24468
  addonId: null,
24060
- access: "view"
24469
+ access: "delete"
24061
24470
  },
24062
24471
  "pipelineExecutor.downloadModel": {
24063
24472
  capName: "pipeline-executor",
@@ -24251,13 +24660,13 @@ Object.freeze({
24251
24660
  addonId: null,
24252
24661
  access: "create"
24253
24662
  },
24254
- "pipelineOrchestrator.assignAudio": {
24255
- capName: "pipeline-orchestrator",
24663
+ "pipelineExecutor.validatePipeline": {
24664
+ capName: "pipeline-executor",
24256
24665
  capScope: "system",
24257
24666
  addonId: null,
24258
- access: "create"
24667
+ access: "view"
24259
24668
  },
24260
- "pipelineOrchestrator.assignDecoder": {
24669
+ "pipelineOrchestrator.assignAudio": {
24261
24670
  capName: "pipeline-orchestrator",
24262
24671
  capScope: "system",
24263
24672
  addonId: null,
@@ -24341,19 +24750,13 @@ Object.freeze({
24341
24750
  addonId: null,
24342
24751
  access: "view"
24343
24752
  },
24344
- "pipelineOrchestrator.getDecoderAssignment": {
24345
- capName: "pipeline-orchestrator",
24346
- capScope: "system",
24347
- addonId: null,
24348
- access: "view"
24349
- },
24350
- "pipelineOrchestrator.getDecoderAssignments": {
24753
+ "pipelineOrchestrator.getGlobalMetrics": {
24351
24754
  capName: "pipeline-orchestrator",
24352
24755
  capScope: "system",
24353
24756
  addonId: null,
24354
24757
  access: "view"
24355
24758
  },
24356
- "pipelineOrchestrator.getGlobalMetrics": {
24759
+ "pipelineOrchestrator.getIngestOwner": {
24357
24760
  capName: "pipeline-orchestrator",
24358
24761
  capScope: "system",
24359
24762
  addonId: null,
@@ -24395,6 +24798,12 @@ Object.freeze({
24395
24798
  addonId: null,
24396
24799
  access: "delete"
24397
24800
  },
24801
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24802
+ capName: "pipeline-orchestrator",
24803
+ capScope: "system",
24804
+ addonId: null,
24805
+ access: "delete"
24806
+ },
24398
24807
  "pipelineOrchestrator.resolvePipeline": {
24399
24808
  capName: "pipeline-orchestrator",
24400
24809
  capScope: "system",
@@ -24431,37 +24840,37 @@ Object.freeze({
24431
24840
  addonId: null,
24432
24841
  access: "create"
24433
24842
  },
24434
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24843
+ "pipelineOrchestrator.setAgentReachableHost": {
24435
24844
  capName: "pipeline-orchestrator",
24436
24845
  capScope: "system",
24437
24846
  addonId: null,
24438
24847
  access: "create"
24439
24848
  },
24440
- "pipelineOrchestrator.setCameraStepOverride": {
24849
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24441
24850
  capName: "pipeline-orchestrator",
24442
24851
  capScope: "system",
24443
24852
  addonId: null,
24444
24853
  access: "create"
24445
24854
  },
24446
- "pipelineOrchestrator.setCameraStepToggle": {
24855
+ "pipelineOrchestrator.setCameraStepOverride": {
24447
24856
  capName: "pipeline-orchestrator",
24448
24857
  capScope: "system",
24449
24858
  addonId: null,
24450
24859
  access: "create"
24451
24860
  },
24452
- "pipelineOrchestrator.setCapabilityBinding": {
24861
+ "pipelineOrchestrator.setCameraStepToggle": {
24453
24862
  capName: "pipeline-orchestrator",
24454
24863
  capScope: "system",
24455
24864
  addonId: null,
24456
24865
  access: "create"
24457
24866
  },
24458
- "pipelineOrchestrator.unassignAudio": {
24867
+ "pipelineOrchestrator.setCapabilityBinding": {
24459
24868
  capName: "pipeline-orchestrator",
24460
24869
  capScope: "system",
24461
24870
  addonId: null,
24462
24871
  access: "create"
24463
24872
  },
24464
- "pipelineOrchestrator.unassignDecoder": {
24873
+ "pipelineOrchestrator.unassignAudio": {
24465
24874
  capName: "pipeline-orchestrator",
24466
24875
  capScope: "system",
24467
24876
  addonId: null,
@@ -24521,6 +24930,12 @@ Object.freeze({
24521
24930
  addonId: null,
24522
24931
  access: "view"
24523
24932
  },
24933
+ "pipelineRunner.getNativeCrop": {
24934
+ capName: "pipeline-runner",
24935
+ capScope: "system",
24936
+ addonId: null,
24937
+ access: "view"
24938
+ },
24524
24939
  "pipelineRunner.reportMotion": {
24525
24940
  capName: "pipeline-runner",
24526
24941
  capScope: "system",
@@ -24761,33 +25176,45 @@ Object.freeze({
24761
25176
  addonId: null,
24762
25177
  access: "create"
24763
25178
  },
24764
- "restreamer.getExposedResources": {
24765
- capName: "restreamer",
25179
+ "scriptRunner.run": {
25180
+ capName: "script-runner",
25181
+ capScope: "device",
25182
+ addonId: null,
25183
+ access: "create"
25184
+ },
25185
+ "scriptRunner.stop": {
25186
+ capName: "script-runner",
25187
+ capScope: "device",
25188
+ addonId: null,
25189
+ access: "create"
25190
+ },
25191
+ "serverManagement.applyServerUpdate": {
25192
+ capName: "server-management",
24766
25193
  capScope: "system",
24767
25194
  addonId: null,
24768
- access: "view"
25195
+ access: "create"
24769
25196
  },
24770
- "restreamer.registerDevice": {
24771
- capName: "restreamer",
25197
+ "serverManagement.checkServerUpdate": {
25198
+ capName: "server-management",
24772
25199
  capScope: "system",
24773
25200
  addonId: null,
24774
25201
  access: "create"
24775
25202
  },
24776
- "restreamer.unregisterDevice": {
24777
- capName: "restreamer",
25203
+ "serverManagement.getServerPackageStatus": {
25204
+ capName: "server-management",
24778
25205
  capScope: "system",
24779
25206
  addonId: null,
24780
- access: "delete"
25207
+ access: "view"
24781
25208
  },
24782
- "scriptRunner.run": {
24783
- capName: "script-runner",
24784
- capScope: "device",
25209
+ "serverManagement.restartServer": {
25210
+ capName: "server-management",
25211
+ capScope: "system",
24785
25212
  addonId: null,
24786
25213
  access: "create"
24787
25214
  },
24788
- "scriptRunner.stop": {
24789
- capName: "script-runner",
24790
- capScope: "device",
25215
+ "serverManagement.rollbackServerUpdate": {
25216
+ capName: "server-management",
25217
+ capScope: "system",
24791
25218
  addonId: null,
24792
25219
  access: "create"
24793
25220
  },
@@ -24875,23 +25302,17 @@ Object.freeze({
24875
25302
  addonId: null,
24876
25303
  access: "view"
24877
25304
  },
24878
- "snapshot.invalidateCache": {
25305
+ "snapshot.getSnapshotOverview": {
24879
25306
  capName: "snapshot",
24880
25307
  capScope: "device",
24881
25308
  addonId: null,
24882
- access: "create"
24883
- },
24884
- "snapshotProvider.getSnapshot": {
24885
- capName: "snapshot-provider",
24886
- capScope: "system",
24887
- addonId: null,
24888
25309
  access: "view"
24889
25310
  },
24890
- "snapshotProvider.supportsDevice": {
24891
- capName: "snapshot-provider",
24892
- capScope: "system",
25311
+ "snapshot.invalidateCache": {
25312
+ capName: "snapshot",
25313
+ capScope: "device",
24893
25314
  addonId: null,
24894
- access: "view"
25315
+ access: "create"
24895
25316
  },
24896
25317
  "ssoBridge.signBridgeToken": {
24897
25318
  capName: "sso-bridge",
@@ -25319,30 +25740,6 @@ Object.freeze({
25319
25740
  addonId: null,
25320
25741
  access: "view"
25321
25742
  },
25322
- "streamingEngine.getStreamUrl": {
25323
- capName: "streaming-engine",
25324
- capScope: "system",
25325
- addonId: null,
25326
- access: "view"
25327
- },
25328
- "streamingEngine.listStreams": {
25329
- capName: "streaming-engine",
25330
- capScope: "system",
25331
- addonId: null,
25332
- access: "view"
25333
- },
25334
- "streamingEngine.registerStream": {
25335
- capName: "streaming-engine",
25336
- capScope: "system",
25337
- addonId: null,
25338
- access: "create"
25339
- },
25340
- "streamingEngine.unregisterStream": {
25341
- capName: "streaming-engine",
25342
- capScope: "system",
25343
- addonId: null,
25344
- access: "delete"
25345
- },
25346
25743
  "streamParams.getConfigSchema": {
25347
25744
  capName: "stream-params",
25348
25745
  capScope: "device",
@@ -25589,6 +25986,12 @@ Object.freeze({
25589
25986
  addonId: null,
25590
25987
  access: "view"
25591
25988
  },
25989
+ "userPasskeys.beginDiscoverableAuthentication": {
25990
+ capName: "user-passkeys",
25991
+ capScope: "system",
25992
+ addonId: null,
25993
+ access: "view"
25994
+ },
25592
25995
  "userPasskeys.beginRegistration": {
25593
25996
  capName: "user-passkeys",
25594
25997
  capScope: "system",
@@ -25601,12 +26004,24 @@ Object.freeze({
25601
26004
  addonId: null,
25602
26005
  access: "view"
25603
26006
  },
26007
+ "userPasskeys.finishDiscoverableAuthentication": {
26008
+ capName: "user-passkeys",
26009
+ capScope: "system",
26010
+ addonId: null,
26011
+ access: "view"
26012
+ },
25604
26013
  "userPasskeys.finishRegistration": {
25605
26014
  capName: "user-passkeys",
25606
26015
  capScope: "system",
25607
26016
  addonId: null,
25608
26017
  access: "create"
25609
26018
  },
26019
+ "userPasskeys.getSecondFactorPreference": {
26020
+ capName: "user-passkeys",
26021
+ capScope: "system",
26022
+ addonId: null,
26023
+ access: "view"
26024
+ },
25610
26025
  "userPasskeys.listPasskeys": {
25611
26026
  capName: "user-passkeys",
25612
26027
  capScope: "system",
@@ -25619,6 +26034,12 @@ Object.freeze({
25619
26034
  addonId: null,
25620
26035
  access: "delete"
25621
26036
  },
26037
+ "userPasskeys.setSecondFactorPreference": {
26038
+ capName: "user-passkeys",
26039
+ capScope: "system",
26040
+ addonId: null,
26041
+ access: "create"
26042
+ },
25622
26043
  "vacuumControl.locate": {
25623
26044
  capName: "vacuum-control",
25624
26045
  capScope: "device",
@@ -25691,6 +26112,18 @@ Object.freeze({
25691
26112
  addonId: null,
25692
26113
  access: "view"
25693
26114
  },
26115
+ "viewerUi.getStaticDir": {
26116
+ capName: "viewer-ui",
26117
+ capScope: "system",
26118
+ addonId: null,
26119
+ access: "view"
26120
+ },
26121
+ "viewerUi.getVersion": {
26122
+ capName: "viewer-ui",
26123
+ capScope: "system",
26124
+ addonId: null,
26125
+ access: "view"
26126
+ },
25694
26127
  "waterHeater.setAway": {
25695
26128
  capName: "water-heater",
25696
26129
  capScope: "device",
@@ -25709,54 +26142,6 @@ Object.freeze({
25709
26142
  addonId: null,
25710
26143
  access: "create"
25711
26144
  },
25712
- "webrtc.closeSession": {
25713
- capName: "webrtc",
25714
- capScope: "system",
25715
- addonId: null,
25716
- access: "create"
25717
- },
25718
- "webrtc.createSession": {
25719
- capName: "webrtc",
25720
- capScope: "system",
25721
- addonId: null,
25722
- access: "create"
25723
- },
25724
- "webrtc.handleAnswer": {
25725
- capName: "webrtc",
25726
- capScope: "system",
25727
- addonId: null,
25728
- access: "create"
25729
- },
25730
- "webrtc.handleOffer": {
25731
- capName: "webrtc",
25732
- capScope: "system",
25733
- addonId: null,
25734
- access: "create"
25735
- },
25736
- "webrtc.hasAdaptiveBitrate": {
25737
- capName: "webrtc",
25738
- capScope: "system",
25739
- addonId: null,
25740
- access: "view"
25741
- },
25742
- "webrtc.registerStream": {
25743
- capName: "webrtc",
25744
- capScope: "system",
25745
- addonId: null,
25746
- access: "create"
25747
- },
25748
- "webrtc.supportsStream": {
25749
- capName: "webrtc",
25750
- capScope: "system",
25751
- addonId: null,
25752
- access: "view"
25753
- },
25754
- "webrtc.unregisterStream": {
25755
- capName: "webrtc",
25756
- capScope: "system",
25757
- addonId: null,
25758
- access: "delete"
25759
- },
25760
26145
  "webrtcSession.addIceCandidate": {
25761
26146
  capName: "webrtc-session",
25762
26147
  capScope: "device",