@camstack/addon-provider-petkit 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +672 -287
  2. package/dist/addon.mjs +672 -287
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -4643,7 +4643,7 @@ function preprocess(fn, schema) {
4643
4643
  });
4644
4644
  }
4645
4645
  //#endregion
4646
- //#region ../types/dist/sleep-CZDdRBua.mjs
4646
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4647
4647
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4648
4648
  EventCategory["SystemBoot"] = "system.boot";
4649
4649
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4829,6 +4829,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4829
4829
  */
4830
4830
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4831
4831
  /**
4832
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4833
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4834
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4835
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4836
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4837
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4838
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4839
+ * topology change, so a dropped event self-heals on the next one (plus the
4840
+ * broker's long backstop reconcile query).
4841
+ */
4842
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4843
+ /**
4832
4844
  * Periodic snapshot of per-node pipeline-runner load
4833
4845
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4834
4846
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5352,10 +5364,6 @@ function hydrateField(field, values) {
5352
5364
  };
5353
5365
  }
5354
5366
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5355
- if (field.type === "password") return {
5356
- ...field,
5357
- value: ""
5358
- };
5359
5367
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5360
5368
  return {
5361
5369
  ...field,
@@ -6739,10 +6747,25 @@ function method(input, output, options) {
6739
6747
  timeoutMs: options?.timeoutMs
6740
6748
  };
6741
6749
  }
6750
+ /**
6751
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6752
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6753
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6754
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6755
+ */
6756
+ function systemMethod(input, output, options) {
6757
+ return {
6758
+ ...method(input, output, options),
6759
+ systemOnly: true
6760
+ };
6761
+ }
6742
6762
  /** Shorthand to define an event schema */
6743
6763
  function event(data) {
6744
6764
  return { data };
6745
6765
  }
6766
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6767
+ var VersionOutputSchema$1 = object({ version: string() });
6768
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6746
6769
  var StaticDirOutputSchema = object({ staticDir: string() });
6747
6770
  var VersionOutputSchema = object({ version: string() });
6748
6771
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6924,6 +6947,36 @@ var ModelFormatsSchema = object({
6924
6947
  tflite: ModelFormatEntrySchema.optional(),
6925
6948
  pt: ModelFormatEntrySchema.optional()
6926
6949
  });
6950
+ /**
6951
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6952
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6953
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6954
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6955
+ * resolution/download/persistence; this is a presentation overlay resolved back
6956
+ * to an `id`.
6957
+ */
6958
+ var ModelVariantGroupSchema = object({
6959
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6960
+ family: string(),
6961
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6962
+ tier: string(),
6963
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6964
+ precision: _enum(["fp32", "int8"]).optional(),
6965
+ /**
6966
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6967
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6968
+ * future performance variants plug into.
6969
+ */
6970
+ optimization: _enum(["standard", "fast"]).optional(),
6971
+ /**
6972
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6973
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6974
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6975
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6976
+ * the group so the selector can offer it as a variant axis.
6977
+ */
6978
+ resolution: number().int().positive().optional()
6979
+ });
6927
6980
  var ModelCatalogEntrySchema = object({
6928
6981
  id: string(),
6929
6982
  name: string(),
@@ -6953,7 +7006,43 @@ var ModelCatalogEntrySchema = object({
6953
7006
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6954
7007
  * Downloaded into the same modelsDir alongside the model file.
6955
7008
  */
6956
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7009
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7010
+ /**
7011
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7012
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7013
+ * model list and excluded from the auto format-default pick. Set on the
7014
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7015
+ * the active lineup stays the coherent curated ladder without deleting a
7016
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7017
+ * an explicit legacy id that has a build for the node's format.
7018
+ */
7019
+ legacy: boolean().optional(),
7020
+ /**
7021
+ * Measured quality/latency metadata — populated from the benchmark addon on
7022
+ * the real node classes. Absent = not yet measured (most entries today; the
7023
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7024
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7025
+ */
7026
+ metrics: object({
7027
+ map50: number().optional(),
7028
+ p95LatencyMs: record(string(), number()).optional()
7029
+ }).optional(),
7030
+ /**
7031
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7032
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7033
+ * the retraining addon and any future commercial distribution.
7034
+ */
7035
+ license: string().optional(),
7036
+ /**
7037
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7038
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7039
+ * of a family's sizes and quantizations collapse into one grouped picker
7040
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7041
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7042
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7043
+ * is a presentation overlay resolved back to an `id`.
7044
+ */
7045
+ group: ModelVariantGroupSchema.optional()
6957
7046
  });
6958
7047
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6959
7048
  format: literal("openvino"),
@@ -7014,8 +7103,8 @@ var RecordingModeSchema = _enum([
7014
7103
  "onAudioThreshold"
7015
7104
  ]);
7016
7105
  /**
7017
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7018
- * reads directly (never inferred from `rules`):
7106
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7107
+ * UI reads directly (never inferred from `rules`):
7019
7108
  * - `off` — not recording.
7020
7109
  * - `events` — record only around triggers (motion / audio threshold),
7021
7110
  * with pre/post-buffer.
@@ -9178,26 +9267,13 @@ onBrightnessChanged: { data: object({
9178
9267
  */
9179
9268
  runtimeState: BrightnessStatusSchema
9180
9269
  };
9270
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9181
9271
  var StreamFormatSchema = _enum([
9182
9272
  "webrtc",
9183
9273
  "hls",
9184
9274
  "mjpeg",
9185
9275
  "rtsp"
9186
9276
  ]);
9187
- var StreamInfoSchema = object({
9188
- streamId: string(),
9189
- format: StreamFormatSchema,
9190
- url: string().nullable(),
9191
- active: boolean()
9192
- });
9193
- method(object({
9194
- streamId: string(),
9195
- sourceUrl: string(),
9196
- codec: string().optional()
9197
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9198
- streamId: string(),
9199
- format: StreamFormatSchema
9200
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9201
9277
  var RtspRestreamEntrySchema = object({
9202
9278
  brokerId: string(),
9203
9279
  url: string(),
@@ -10065,37 +10141,7 @@ var consumablesCapability = {
10065
10141
  scope: "device",
10066
10142
  deviceNative: true,
10067
10143
  mode: "singleton",
10068
- deviceTypes: [
10069
- DeviceType.Camera,
10070
- DeviceType.Hub,
10071
- DeviceType.Light,
10072
- DeviceType.Siren,
10073
- DeviceType.Switch,
10074
- DeviceType.Sensor,
10075
- DeviceType.Thermostat,
10076
- DeviceType.Button,
10077
- DeviceType.EventEmitter,
10078
- DeviceType.Update,
10079
- DeviceType.Generic,
10080
- DeviceType.Notifier,
10081
- DeviceType.Script,
10082
- DeviceType.Automation,
10083
- DeviceType.Lock,
10084
- DeviceType.Cover,
10085
- DeviceType.Valve,
10086
- DeviceType.Humidifier,
10087
- DeviceType.WaterHeater,
10088
- DeviceType.Fan,
10089
- DeviceType.MediaPlayer,
10090
- DeviceType.AlarmPanel,
10091
- DeviceType.Control,
10092
- DeviceType.Presence,
10093
- DeviceType.Weather,
10094
- DeviceType.Vacuum,
10095
- DeviceType.LawnMower,
10096
- DeviceType.Container,
10097
- DeviceType.Image
10098
- ],
10144
+ deviceTypes: Object.values(DeviceType),
10099
10145
  deviceConfig: { ui: {
10100
10146
  kind: "widget",
10101
10147
  widgetId: "host/consumables-panel",
@@ -11553,7 +11599,7 @@ var BoundingBoxSchema = object({
11553
11599
  w: number(),
11554
11600
  h: number()
11555
11601
  });
11556
- var SpatialDetectionSchema = object({
11602
+ object({
11557
11603
  class: string(),
11558
11604
  originalClass: string(),
11559
11605
  score: number(),
@@ -11688,7 +11734,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11688
11734
  enabled: boolean(),
11689
11735
  modelId: string(),
11690
11736
  children: array(PipelineDefaultStepSchema).readonly(),
11691
- engine: PipelineEngineChoiceSchema.optional(),
11692
11737
  group: string().optional(),
11693
11738
  settings: record(string(), unknown()).optional()
11694
11739
  }));
@@ -11713,7 +11758,9 @@ var PipelineModelOptionSchema = object({
11713
11758
  formats: record(string(), object({
11714
11759
  downloaded: boolean(),
11715
11760
  sizeMB: number()
11716
- }))
11761
+ })),
11762
+ group: ModelVariantGroupSchema.optional(),
11763
+ legacy: boolean().optional()
11717
11764
  });
11718
11765
  var ConfigFieldBridge = custom();
11719
11766
  var PipelineAddonSchemaSchema = object({
@@ -11727,6 +11774,7 @@ var PipelineAddonSchemaSchema = object({
11727
11774
  defaultModelId: string(),
11728
11775
  defaultModelIdByFormat: record(string(), string()).optional(),
11729
11776
  enabledByDefault: boolean().optional(),
11777
+ backfillIntoExistingOverrides: boolean().optional(),
11730
11778
  defaultConfidence: number(),
11731
11779
  group: string().optional(),
11732
11780
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11743,11 +11791,6 @@ var PipelineSchemaSchema = object({
11743
11791
  selectedEngine: PipelineEngineChoiceSchema,
11744
11792
  slots: array(PipelineSlotSchemaSchema).readonly()
11745
11793
  });
11746
- var DetectorOutputSchema = object({
11747
- detections: array(SpatialDetectionSchema).readonly(),
11748
- inferenceMs: number(),
11749
- modelId: string()
11750
- });
11751
11794
  var EngineProvisioningSchema = object({
11752
11795
  runtimeId: _enum([
11753
11796
  "onnx",
@@ -11764,15 +11807,42 @@ var EngineProvisioningSchema = object({
11764
11807
  ]),
11765
11808
  progress: number().optional(),
11766
11809
  error: string().optional(),
11767
- nextRetryAt: number().optional()
11810
+ nextRetryAt: number().optional(),
11811
+ /**
11812
+ * Gate A (config-correctness gate at engine change): human-readable
11813
+ * config issues surfaced EAGERLY when the node's engine changes — model
11814
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11815
+ * has a <format> build"). Additive/optional: informational only, never
11816
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11817
+ * Absent/empty when the node-default tree resolves cleanly.
11818
+ */
11819
+ configIssues: array(string()).optional()
11768
11820
  });
11769
11821
  var PipelineStepInputSchema = lazy(() => object({
11770
11822
  addonId: string(),
11771
- modelId: string(),
11823
+ modelId: string().optional(),
11772
11824
  enabled: boolean().default(true),
11773
11825
  children: array(PipelineStepInputSchema).optional(),
11774
11826
  settings: record(string(), unknown()).optional()
11775
11827
  }));
11828
+ var ModelSubstitutionSchema = object({
11829
+ addonId: string(),
11830
+ chosen: string(),
11831
+ running: string(),
11832
+ format: string()
11833
+ });
11834
+ var PipelineValidationIssueSchema = object({
11835
+ addonId: string(),
11836
+ kind: _enum(["unknown-addon", "no-format-build"]),
11837
+ detail: string()
11838
+ });
11839
+ var PipelineValidationResultSchema = object({
11840
+ ok: boolean(),
11841
+ issues: array(PipelineValidationIssueSchema).readonly(),
11842
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11843
+ /** The node's `currentEngine.format` this validation ran against. */
11844
+ format: string()
11845
+ });
11776
11846
  var ReferenceImageEntrySchema = object({
11777
11847
  filename: string(),
11778
11848
  stepIds: array(string()).readonly().optional()
@@ -11843,7 +11913,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11843
11913
  })) }), object({ success: literal(true) }), {
11844
11914
  kind: "mutation",
11845
11915
  auth: "admin"
11846
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11916
+ }), method(object({ nodeId: string() }), object({
11917
+ success: literal(true),
11918
+ clearedDevices: number()
11919
+ }), {
11920
+ kind: "mutation",
11921
+ auth: "admin"
11922
+ }), 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({
11847
11923
  name: string(),
11848
11924
  steps: array(PipelineTemplateStepSchema).readonly(),
11849
11925
  engine: PipelineEngineChoiceSchema
@@ -11860,10 +11936,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11860
11936
  modelId: string(),
11861
11937
  format: ModelFormatSchema$1
11862
11938
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11863
- addonId: string(),
11864
- frame: FrameInputSchema,
11865
- config: record(string(), unknown()).optional()
11866
- }), DetectorOutputSchema), method(object({
11867
11939
  engine: PipelineEngineChoiceSchema.optional(),
11868
11940
  steps: array(PipelineStepInputSchema).min(1),
11869
11941
  frame: FrameInputSchema.optional(),
@@ -12042,6 +12114,25 @@ var zonesCapability = {
12042
12114
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12043
12115
  };
12044
12116
  /**
12117
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12118
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12119
+ * so the caller supplies only the detection-res bbox divided by the detection
12120
+ * dims — no native resolution to plumb.
12121
+ */
12122
+ var NativeCropBboxSchema = object({
12123
+ x: number(),
12124
+ y: number(),
12125
+ w: number(),
12126
+ h: number()
12127
+ });
12128
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12129
+ var NativeCropResultSchema = object({
12130
+ /** Packed rgb (24-bit) pixels of the crop. */
12131
+ bytes: _instanceof(Uint8Array),
12132
+ width: number().int().positive(),
12133
+ height: number().int().positive()
12134
+ });
12135
+ /**
12045
12136
  * Per-camera tunable ranges + defaults. Single source of truth used
12046
12137
  * by both the Zod data schema (validation + default fallback) and
12047
12138
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12136,6 +12227,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12136
12227
  kind: literal("remote-restream"),
12137
12228
  /** The camera's source-owner node (slice 1: always the hub). */
12138
12229
  ownerNodeId: string(),
12230
+ /**
12231
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12232
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12233
+ * dials THIS host for the owner's restream, in preference to the
12234
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12235
+ */
12236
+ ownerReachableHost: string().optional(),
12139
12237
  /** Operator override for the owner host the runner dials. */
12140
12238
  hubHostnameOverride: string().optional()
12141
12239
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12144,13 +12242,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12144
12242
  * specific runner instance via `attachCamera`. Carries everything the
12145
12243
  * runner needs to subscribe to the local broker and execute inference.
12146
12244
  *
12147
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12148
- * optional `audio`) travels with the attach payload. The runner keeps it
12149
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12150
- * restart the orchestrator re-sends the latest snapshot.
12151
- *
12152
- * `engine`/`steps`/`audio` are optional during the additive migration
12153
- * window; once orchestrator + UI are migrated they become required.
12245
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12246
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12247
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12248
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12249
+ * node-local, resolved by the executing runner at dispatch time.
12154
12250
  */
12155
12251
  var RunnerCameraConfigSchema = object({
12156
12252
  deviceId: number(),
@@ -12201,14 +12297,11 @@ var RunnerCameraConfigSchema = object({
12201
12297
  */
12202
12298
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12203
12299
  pipelineEnabled: boolean().default(true),
12204
- /** Engine choice for video steps (runtime+backend+format). */
12205
- engine: PipelineEngineChoiceSchema.optional(),
12206
12300
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12207
12301
  steps: array(PipelineStepInputSchema).readonly().optional(),
12208
12302
  /** Audio classification branch. `enabled:false` disables, null skips. */
12209
12303
  audio: object({
12210
- engine: PipelineEngineChoiceSchema,
12211
- modelId: string(),
12304
+ modelId: string().optional(),
12212
12305
  enabled: boolean()
12213
12306
  }).nullable().optional(),
12214
12307
  /**
@@ -12295,7 +12388,11 @@ var RunnerLocalMetricsSchema = object({
12295
12388
  avgInferenceTimeMs: number(),
12296
12389
  queueDepth: number()
12297
12390
  });
12298
- 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());
12391
+ 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({
12392
+ handle: FrameHandleSchema,
12393
+ bbox: NativeCropBboxSchema,
12394
+ maxWidth: number().int().positive().optional()
12395
+ }), NativeCropResultSchema.nullable());
12299
12396
  /**
12300
12397
  * Hardware / firmware motion sensor cap — binary detected state plus
12301
12398
  * a timestamp of the last observation. Distinct from
@@ -15226,7 +15323,9 @@ var AddonPageDeclarationSchema$1 = object({
15226
15323
  icon: string(),
15227
15324
  path: string(),
15228
15325
  remoteName: string(),
15229
- bundle: string()
15326
+ bundle: string(),
15327
+ section: string().optional(),
15328
+ sectionLabel: string().optional()
15230
15329
  });
15231
15330
  var AddonPageInfoSchema = object({
15232
15331
  addonId: string(),
@@ -15266,7 +15365,18 @@ var AddonPageDeclarationSchema = object({
15266
15365
  * the static-file route can compute an mtime-based cache-buster URL
15267
15366
  * without a separate filesystem stat.
15268
15367
  */
15269
- bundle: string()
15368
+ bundle: string(),
15369
+ /**
15370
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15371
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15372
+ * Any OTHER string creates (or joins) a custom section rendered after
15373
+ * the built-in groups; its label comes from `sectionLabel` (first
15374
+ * declaration wins), falling back to the id. Absent → the legacy
15375
+ * "Addon Pages" group.
15376
+ */
15377
+ section: string().optional(),
15378
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15379
+ sectionLabel: string().optional()
15270
15380
  });
15271
15381
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15272
15382
  var AddonHttpRouteSchema = object({
@@ -15482,6 +15592,17 @@ var WidgetMetadataSchema = object({
15482
15592
  deviceContext: boolean().default(false),
15483
15593
  integrationContext: boolean().default(false)
15484
15594
  }),
15595
+ /**
15596
+ * Loadable BEFORE authentication. The normal widget registry listing
15597
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15598
+ * (the login page) cannot discover a widget through it. A widget that
15599
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15600
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15601
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15602
+ * than the authenticated registry, and its bundle is served by the
15603
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15604
+ */
15605
+ preAuth: boolean().optional().default(false),
15485
15606
  /** Dashboard placement HINTS (operator can override per instance). */
15486
15607
  defaultSize: WidgetSizeEnum.default("md"),
15487
15608
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15783,6 +15904,66 @@ method(object({
15783
15904
  password: string()
15784
15905
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15785
15906
  /**
15907
+ * `login-method` — collection cap through which auth addons contribute
15908
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15909
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15910
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15911
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15912
+ * procedure aggregates them for the unauthenticated login page.
15913
+ *
15914
+ * A contribution is a discriminated union on `kind`:
15915
+ *
15916
+ * - `redirect` — a declarative button. The login page renders a generic
15917
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15918
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15919
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15920
+ * login page needs NO change.
15921
+ *
15922
+ * - `widget` — a Module-Federation widget the login page mounts (via
15923
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15924
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15925
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15926
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15927
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15928
+ *
15929
+ * Every contribution carries a `stage`:
15930
+ * - `primary` — shown on the first credentials screen (OIDC /
15931
+ * magic-link buttons; a future usernameless passkey).
15932
+ * - `second-factor` — shown AFTER the password leg, gated on the
15933
+ * returned `factors` (passkey-as-2FA today).
15934
+ *
15935
+ * `mount: skip` — the cap is read server-side by the core auth router
15936
+ * (`registry.getCollection('login-method')`), never mounted as its own
15937
+ * tRPC router.
15938
+ */
15939
+ /** When a login method renders in the two-phase login flow. */
15940
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15941
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15942
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15943
+ kind: literal("redirect"),
15944
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15945
+ id: string(),
15946
+ /** Operator-facing button label. */
15947
+ label: string(),
15948
+ /** lucide-react icon name. */
15949
+ icon: string().optional(),
15950
+ /** Addon-owned HTTP route the button navigates to (GET). */
15951
+ startUrl: string(),
15952
+ stage: LoginStageEnum
15953
+ }), object({
15954
+ kind: literal("widget"),
15955
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15956
+ id: string(),
15957
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15958
+ addonId: string(),
15959
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15960
+ bundle: string(),
15961
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15962
+ remote: WidgetRemoteSchema,
15963
+ stage: LoginStageEnum
15964
+ })]);
15965
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15966
+ /**
15786
15967
  * Orchestrator-side destination metadata. The orchestrator computes
15787
15968
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15788
15969
  * (admin UI, restore flow) see one canonical key.
@@ -17903,7 +18084,17 @@ var TrackSchema = object({
17903
18084
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17904
18085
  totalDistance: number(),
17905
18086
  state: TrackStateSchema,
17906
- active: boolean()
18087
+ active: boolean(),
18088
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18089
+ * track expiry, recomputed on late label). Absent on legacy rows written
18090
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18091
+ importance: number().optional(),
18092
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18093
+ * "best" frame). Absent when the track produced no object events. */
18094
+ bestEventId: string().optional(),
18095
+ /** Tag of the importance sub-signal that dominated the score
18096
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18097
+ importanceReason: string().optional()
17907
18098
  });
17908
18099
  var BaseEventFields = {
17909
18100
  id: string(),
@@ -17968,8 +18159,18 @@ var ObjectEventSchema = object({
17968
18159
  frameHeight: number().optional(),
17969
18160
  /** MediaStore key for the crop attached to this event (if any). */
17970
18161
  mediaKey: string().optional(),
18162
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18163
+ * best-detection full frame). Resolve via the event-media data-plane
18164
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18165
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18166
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18167
+ keyFrameMediaKey: string().optional(),
17971
18168
  /** Populated by B5 (recording playback URL for this event). */
17972
- mediaUrl: string().optional()
18169
+ mediaUrl: string().optional(),
18170
+ /** The parent track's key-event importance [0,1], propagated to every object
18171
+ * event of the track (so an event row can be sorted by importance without a
18172
+ * track join). Absent on legacy rows / before the track was scored. */
18173
+ importance: number().optional()
17973
18174
  });
17974
18175
  var AudioEventSchema = object({
17975
18176
  ...BaseEventFields,
@@ -17993,7 +18194,8 @@ var MediaFileKindEnum = _enum([
17993
18194
  "fullFrame",
17994
18195
  "fullFrameBoxed",
17995
18196
  "faceCrop",
17996
- "plateCrop"
18197
+ "plateCrop",
18198
+ "keyFrame"
17997
18199
  ]);
17998
18200
  var MediaFileSchema = object({
17999
18201
  key: string(),
@@ -18014,6 +18216,32 @@ var DeviceEventQueryInput = object({
18014
18216
  projection: _enum(["full", "slim"]).optional()
18015
18217
  });
18016
18218
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18219
+ var KeyEventQueryInput = object({
18220
+ deviceId: number(),
18221
+ /** Window lower bound (track firstSeen ≥ since). */
18222
+ since: number(),
18223
+ /** Window upper bound (track firstSeen ≤ until). */
18224
+ until: number(),
18225
+ limit: number().int().min(1).max(200).default(50),
18226
+ /** Drop tracks scoring below this importance. */
18227
+ minImportance: number().min(0).max(1).optional(),
18228
+ /** Restrict to a single class (e.g. 'person'). */
18229
+ classFilter: string().optional()
18230
+ });
18231
+ var KeyEventSchema = object({
18232
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18233
+ id: string(),
18234
+ trackId: string(),
18235
+ /** Track start time (firstSeen). */
18236
+ timestamp: number(),
18237
+ className: string(),
18238
+ label: string().optional(),
18239
+ importance: number(),
18240
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18241
+ bestEventId: string(),
18242
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18243
+ windowMs: number().optional()
18244
+ });
18017
18245
  var TrackedDetectionSchema = object({
18018
18246
  trackId: string(),
18019
18247
  className: string(),
@@ -18043,7 +18271,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18043
18271
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18044
18272
  kind: "mutation",
18045
18273
  auth: "admin"
18046
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18274
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18047
18275
  deviceId: number(),
18048
18276
  since: number(),
18049
18277
  until: number(),
@@ -18088,11 +18316,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18088
18316
  timestamp: number()
18089
18317
  });
18090
18318
  var CameraPipelineConfigSchema = object({
18091
- engine: PipelineEngineChoiceSchema,
18319
+ engine: PipelineEngineChoiceSchema.optional(),
18092
18320
  steps: array(PipelineStepInputSchema).readonly(),
18093
18321
  audio: object({
18094
- engine: PipelineEngineChoiceSchema,
18095
- modelId: string(),
18322
+ engine: PipelineEngineChoiceSchema.optional(),
18323
+ modelId: string().optional(),
18096
18324
  enabled: boolean(),
18097
18325
  settings: record(string(), unknown()).readonly().optional()
18098
18326
  }).nullable().optional()
@@ -18107,7 +18335,7 @@ var PipelineTemplateSchema = object({
18107
18335
  });
18108
18336
  var AgentAddonConfigSchema = object({
18109
18337
  enabled: boolean(),
18110
- modelId: string(),
18338
+ modelId: string().optional(),
18111
18339
  settings: record(string(), unknown()).readonly()
18112
18340
  });
18113
18341
  var AgentPipelineSettingsSchema = object({
@@ -18117,12 +18345,25 @@ var AgentPipelineSettingsSchema = object({
18117
18345
  detectWeight: number().positive().optional(),
18118
18346
  /** Node is eligible to run the detection pipeline (decode + inference). */
18119
18347
  detect: boolean().optional(),
18120
- /** Node is eligible to host decoder sessions. */
18348
+ /**
18349
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18350
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18351
+ * the schema ONLY so persisted stores written before the removal still
18352
+ * parse — no code reads it and no write path emits it.
18353
+ */
18121
18354
  decode: boolean().optional(),
18122
18355
  /** Node is eligible to run audio-analyzer sessions. */
18123
18356
  audio: boolean().optional(),
18124
18357
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18125
- ingest: boolean().optional()
18358
+ ingest: boolean().optional(),
18359
+ /**
18360
+ * Operator override for the LAN host a cross-node decoder dials to reach
18361
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18362
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18363
+ * it already uses to reach the hub). Set this only when the auto-detected
18364
+ * address is wrong (multi-homed host, NAT, custom interface).
18365
+ */
18366
+ reachableHost: string().optional()
18126
18367
  });
18127
18368
  var CameraPipelineForAgentSchema = object({
18128
18369
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18170,25 +18411,6 @@ var PipelineAssignmentSchema = object({
18170
18411
  assignedAt: number()
18171
18412
  });
18172
18413
  /**
18173
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18174
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18175
- * → co-located with pipeline → capacity).
18176
- */
18177
- var DecoderAssignmentSchema = object({
18178
- deviceId: number(),
18179
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18180
- decoderNodeId: string(),
18181
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18182
- pinned: boolean(),
18183
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18184
- reason: _enum([
18185
- "manual",
18186
- "co-located",
18187
- "capacity",
18188
- "hardware-affinity"
18189
- ])
18190
- });
18191
- /**
18192
18414
  * Per-agent load summary surfaced to the load balancer + dashboards.
18193
18415
  * Aggregated from each runner's `getLocalLoad` cap call.
18194
18416
  */
@@ -18228,6 +18450,15 @@ var GlobalMetricsSchema = object({
18228
18450
  * capability providers.
18229
18451
  */
18230
18452
  var CapabilityBindingsSchema = record(string(), string());
18453
+ /**
18454
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18455
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18456
+ */
18457
+ var IngestOwnerSchema = object({
18458
+ ownerNodeId: string(),
18459
+ reachableHost: string().optional(),
18460
+ configIssue: string().optional()
18461
+ });
18231
18462
  /** Source block — always present; derives from the stream catalog. */
18232
18463
  var CameraSourceStatusSchema = object({ streams: array(object({
18233
18464
  camStreamId: string(),
@@ -18242,6 +18473,14 @@ var CameraAssignmentStatusSchema = object({
18242
18473
  detectionNodeId: string().nullable(),
18243
18474
  decoderNodeId: string().nullable(),
18244
18475
  audioNodeId: string().nullable(),
18476
+ /**
18477
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18478
+ * hosts the broker/restream) — the cluster ingest owner today
18479
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18480
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18481
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18482
+ */
18483
+ sourceNodeId: string().nullable(),
18245
18484
  pinned: object({
18246
18485
  detection: boolean(),
18247
18486
  decoder: boolean(),
@@ -18374,16 +18613,7 @@ method(object({
18374
18613
  }), object({ success: literal(true) }), {
18375
18614
  kind: "mutation",
18376
18615
  auth: "admin"
18377
- }), method(object({
18378
- deviceId: number(),
18379
- nodeId: string()
18380
- }), _void(), {
18381
- kind: "mutation",
18382
- auth: "admin"
18383
- }), method(object({ deviceId: number() }), _void(), {
18384
- kind: "mutation",
18385
- auth: "admin"
18386
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18616
+ }), method(_void(), IngestOwnerSchema), method(object({
18387
18617
  deviceId: number(),
18388
18618
  nodeId: string()
18389
18619
  }), object({ success: literal(true) }), {
@@ -18404,10 +18634,7 @@ method(object({
18404
18634
  nodeId: string(),
18405
18635
  pinned: boolean(),
18406
18636
  assignedAt: number()
18407
- }))), method(object({
18408
- deviceId: number(),
18409
- pipelineNodeId: string().optional()
18410
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18637
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18411
18638
  nodeId: string(),
18412
18639
  settings: AgentPipelineSettingsSchema
18413
18640
  })).readonly()), method(object({
@@ -18437,12 +18664,26 @@ method(object({
18437
18664
  }), method(object({
18438
18665
  agentNodeId: string(),
18439
18666
  detect: boolean().nullable().optional(),
18440
- decode: boolean().nullable().optional(),
18441
18667
  audio: boolean().nullable().optional(),
18442
18668
  ingest: boolean().nullable().optional()
18443
18669
  }), object({ success: literal(true) }), {
18444
18670
  kind: "mutation",
18445
18671
  auth: "admin"
18672
+ }), method(object({
18673
+ agentNodeId: string(),
18674
+ reachableHost: string().nullable()
18675
+ }), object({ success: literal(true) }), {
18676
+ kind: "mutation",
18677
+ auth: "admin"
18678
+ }), method(object({ agentNodeId: string() }), object({
18679
+ success: literal(true),
18680
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18681
+ effectiveModelId: string().nullable(),
18682
+ /** Number of cameras whose node-scoped overrides were cleared. */
18683
+ clearedCameraOverrides: number()
18684
+ }), {
18685
+ kind: "mutation",
18686
+ auth: "admin"
18446
18687
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18447
18688
  deviceId: number(),
18448
18689
  addonId: string(),
@@ -18487,22 +18728,131 @@ method(object({
18487
18728
  kind: "mutation",
18488
18729
  auth: "admin"
18489
18730
  });
18490
- var RegisteredStreamSchema = object({
18491
- streamId: string(),
18492
- label: string().optional(),
18493
- codec: string(),
18494
- type: _enum(["video", "audio"]),
18495
- sourceUrl: string()
18731
+ /**
18732
+ * server-management — per-NODE singleton capability for a node's ROOT
18733
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18734
+ * agents).
18735
+ *
18736
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18737
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18738
+ * version describes the node. Updates install into
18739
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18740
+ * starter (probation boot + auto-rollback to N-1).
18741
+ *
18742
+ * Providers:
18743
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18744
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18745
+ * unpinned calls.
18746
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18747
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18748
+ * `$hub.registerNode` manifest.
18749
+ *
18750
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18751
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18752
+ * SDK) routes the call to that node's provider via the standard remote
18753
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18754
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18755
+ *
18756
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18757
+ */
18758
+ /**
18759
+ * Where the running hub's code was loaded from:
18760
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18761
+ * plain resolution and runtime updates are refused.
18762
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18763
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18764
+ */
18765
+ var ServerBootModeSchema = _enum([
18766
+ "workspace",
18767
+ "baked",
18768
+ "data-root"
18769
+ ]);
18770
+ /**
18771
+ * Update lifecycle state:
18772
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18773
+ * - `pending-restart` — a version is staged and the node has NOT yet
18774
+ * restarted onto it (still running the OLD version).
18775
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18776
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18777
+ * Apply/rollback are refused in this state and the node must NOT be
18778
+ * manually restarted, or the probation boot auto-rolls-back.
18779
+ */
18780
+ var ServerUpdateStateSchema = _enum([
18781
+ "idle",
18782
+ "checking",
18783
+ "staging",
18784
+ "pending-restart",
18785
+ "awaiting-confirmation"
18786
+ ]);
18787
+ var ServerRollbackInfoSchema = object({
18788
+ /** The version that failed (or was manually rolled back). */
18789
+ fromVersion: string(),
18790
+ /** The version rolled back to; null = the baked seed. */
18791
+ toVersion: string().nullable(),
18792
+ atMs: number(),
18793
+ reason: string()
18496
18794
  });
18497
- var ExposedResourceSchema = object({
18498
- streamId: string(),
18499
- format: string(),
18500
- value: string()
18795
+ var ServerPackageStatusSchema = object({
18796
+ /** Root package name (`@camstack/server` on the hub). */
18797
+ packageName: string(),
18798
+ /** Version of the code the running process ACTUALLY loaded. */
18799
+ runningVersion: string().nullable(),
18800
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18801
+ nodeRuntimeVersion: string().nullable(),
18802
+ /** Active data-dir root version; null when booted from seed/workspace. */
18803
+ activeVersion: string().nullable(),
18804
+ /** N-1 version kept for rollback; null when no previous version exists. */
18805
+ previousVersion: string().nullable(),
18806
+ /** Version of the immutable baked seed closure (image fallback). */
18807
+ seedVersion: string().nullable(),
18808
+ /** Latest registry version from the most recent check (null = never checked). */
18809
+ latestVersion: string().nullable(),
18810
+ updateAvailable: boolean(),
18811
+ bootMode: ServerBootModeSchema,
18812
+ updateState: ServerUpdateStateSchema,
18813
+ /** Version staged + awaiting its probation boot, when one is pending. */
18814
+ pendingVersion: string().nullable(),
18815
+ /** Set when the last freshly-activated version failed its boot health-check. */
18816
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18817
+ /**
18818
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18819
+ * hub is running from the baked seed (or workspace) while installed data-dir
18820
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18821
+ */
18822
+ stateFileCorrupt: boolean(),
18823
+ lastCheckedAtMs: number().nullable()
18824
+ });
18825
+ var ServerUpdateCheckResultSchema = object({
18826
+ packageName: string(),
18827
+ runningVersion: string().nullable(),
18828
+ latestVersion: string().nullable(),
18829
+ updateAvailable: boolean(),
18830
+ checkedAtMs: number(),
18831
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18832
+ error: string().nullable()
18833
+ });
18834
+ var ServerUpdateActionResultSchema = object({
18835
+ accepted: boolean(),
18836
+ targetVersion: string().nullable(),
18837
+ /** True when a graceful restart was scheduled to apply the change. */
18838
+ restarting: boolean(),
18839
+ message: string()
18840
+ });
18841
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18842
+ kind: "mutation",
18843
+ auth: "admin"
18844
+ }), method(object({
18845
+ /** Explicit target version; omitted = latest from the registry. */
18846
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18847
+ kind: "mutation",
18848
+ auth: "admin"
18849
+ }), method(_void(), ServerUpdateActionResultSchema, {
18850
+ kind: "mutation",
18851
+ auth: "admin"
18852
+ }), method(_void(), ServerUpdateActionResultSchema, {
18853
+ kind: "mutation",
18854
+ auth: "admin"
18501
18855
  });
18502
- method(object({
18503
- deviceId: number(),
18504
- streams: array(RegisteredStreamSchema).readonly()
18505
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18506
18856
  /**
18507
18857
  * Query filter for settings-store collections.
18508
18858
  */
@@ -18655,9 +19005,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18655
19005
  /**
18656
19006
  * A single device snapshot returned as base64 JPEG/PNG.
18657
19007
  *
18658
- * Shared with the `snapshot-provider` collection cap the orchestrator
18659
- * receives the same shape from each native provider and from the
18660
- * broker-based fallback.
19008
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19009
+ * the device-native provider (onboard capture) or from the stream-broker
19010
+ * prebuffer fallback.
18661
19011
  */
18662
19012
  var SnapshotImageSchema = object({
18663
19013
  base64: string(),
@@ -18688,11 +19038,12 @@ DeviceType.Camera, method(object({
18688
19038
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18689
19039
  kind: "mutation",
18690
19040
  auth: "admin"
18691
- });
18692
- method(object({ deviceId: number() }), boolean()), method(object({
19041
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18693
19042
  deviceId: number(),
18694
- streamId: string().optional()
18695
- }), SnapshotImageSchema.nullable());
19043
+ lastCapturedAt: number().nullable(),
19044
+ cacheAgeMs: number().nullable(),
19045
+ etag: string().nullable()
19046
+ })));
18696
19047
  /**
18697
19048
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18698
19049
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18943,10 +19294,32 @@ method(_void(), array(TurnServerSchema).readonly());
18943
19294
  * b. `finishAuthentication({userId, response})` → server verifies
18944
19295
  * the assertion, bumps the credential counter, returns ok.
18945
19296
  *
19297
+ * 2b. Usernameless (discoverable-credential) authentication — the
19298
+ * passkey IS the primary factor, no password leg:
19299
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19300
+ * EMPTY `allowCredentials` (the browser offers every resident
19301
+ * passkey it holds for this RP) + `userVerification: 'required'`
19302
+ * (the passkey replaces both factors, so UV is mandatory).
19303
+ * The challenge is stored server-side, NOT bound to any user.
19304
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19305
+ * resolves the credential by the response's credential id,
19306
+ * verifies the assertion against the stored challenge + that
19307
+ * credential's public key/counter, and returns the OWNING
19308
+ * `userId` — the caller (core auth router) mints the session.
19309
+ *
18946
19310
  * 3. Management:
18947
19311
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18948
19312
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18949
19313
  *
19314
+ * 4. Second-factor preference (opt-in, default OFF):
19315
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19316
+ * demanded as a second factor after a password login ONLY when the
19317
+ * user explicitly opts in via `setSecondFactorPreference`.
19318
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19319
+ * row ⇒ `enabled: false`).
19320
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19321
+ * the providing addon beside its credentials.
19322
+ *
18950
19323
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18951
19324
  * the admin-ui composes the begin/finish round-trip and never exposes
18952
19325
  * the cap to non-admins.
@@ -18989,6 +19362,17 @@ method(object({
18989
19362
  }), object({ verified: boolean() }), {
18990
19363
  kind: "mutation",
18991
19364
  access: "view"
19365
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19366
+ kind: "mutation",
19367
+ access: "view"
19368
+ }), method(object({
19369
+ /** AuthenticationResponseJSON from the browser. */
19370
+ response: record(string(), unknown()) }), object({
19371
+ verified: boolean(),
19372
+ userId: string().nullable()
19373
+ }), {
19374
+ kind: "mutation",
19375
+ access: "view"
18992
19376
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
18993
19377
  userId: string(),
18994
19378
  credentialId: string()
@@ -18996,6 +19380,13 @@ method(object({
18996
19380
  kind: "mutation",
18997
19381
  auth: "admin",
18998
19382
  access: "delete"
19383
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19384
+ userId: string(),
19385
+ enabled: boolean()
19386
+ }), object({ success: literal(true) }), {
19387
+ kind: "mutation",
19388
+ auth: "admin",
19389
+ access: "create"
18999
19390
  });
19000
19391
  /**
19001
19392
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19053,9 +19444,10 @@ method(object({
19053
19444
  auth: "admin"
19054
19445
  });
19055
19446
  /**
19056
- * Optional client-side hints sent at session creation to help the
19057
- * provider pick the best native source. All fields are optional —
19058
- * a viewer that knows nothing still gets a sane default.
19447
+ * Optional client-side hints sent at session creation to help the provider
19448
+ * pick the best native source. All fields optional — a viewer that knows
19449
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19450
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19059
19451
  */
19060
19452
  var webrtcClientHintsSchema = object({
19061
19453
  viewportWidth: number().int().positive().optional(),
@@ -19066,22 +19458,6 @@ var webrtcClientHintsSchema = object({
19066
19458
  /** Hard tier override; takes precedence over scoring when registered. */
19067
19459
  prefersTier: string().optional()
19068
19460
  }).partial();
19069
- method(object({
19070
- streamId: string(),
19071
- sdpOffer: string()
19072
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19073
- streamId: string(),
19074
- codec: string()
19075
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19076
- streamId: string(),
19077
- hints: webrtcClientHintsSchema.optional()
19078
- }), object({
19079
- sessionId: string(),
19080
- sdpOffer: string()
19081
- }), { kind: "mutation" }), method(object({
19082
- sessionId: string(),
19083
- sdpAnswer: string()
19084
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19085
19461
  /**
19086
19462
  * Discriminated target for a WebRTC session. The client sends this
19087
19463
  * structured object instead of building / parsing brokerId strings;
@@ -19812,7 +20188,17 @@ var FaceInfoSchema = object({
19812
20188
  recognizedIdentityId: string().optional(),
19813
20189
  identityName: string().optional(),
19814
20190
  assigned: boolean(),
19815
- base64: string().optional()
20191
+ base64: string().optional(),
20192
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20193
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20194
+ * legacy rows written before design B. */
20195
+ faceBbox: BoundingBoxSchema.optional(),
20196
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20197
+ * Fetch the native JPEG via the event-media data-plane
20198
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20199
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20200
+ * back to the inline `base64` face crop. */
20201
+ keyFrameMediaKey: string().optional()
19816
20202
  });
19817
20203
  var FaceFilterEnum = _enum([
19818
20204
  "unassigned",
@@ -20509,6 +20895,16 @@ var TopologyCategorySchema = object({
20509
20895
  healthy: number(),
20510
20896
  addons: array(TopologyCategoryAddonSchema).readonly()
20511
20897
  });
20898
+ /**
20899
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20900
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20901
+ * version visibility for the Server management surface. Nullable: offline
20902
+ * rows and pre-phase-2 nodes report none.
20903
+ */
20904
+ var TopologyRootPackageSchema = object({
20905
+ name: string(),
20906
+ version: string()
20907
+ });
20512
20908
  var TopologyNodeSchema = object({
20513
20909
  id: string(),
20514
20910
  name: string(),
@@ -20532,7 +20928,8 @@ var TopologyNodeSchema = object({
20532
20928
  status: string()
20533
20929
  })).readonly(),
20534
20930
  processes: array(TopologyProcessSchema).readonly(),
20535
- categories: array(TopologyCategorySchema).readonly()
20931
+ categories: array(TopologyCategorySchema).readonly(),
20932
+ rootPackage: TopologyRootPackageSchema.nullable()
20536
20933
  });
20537
20934
  var CapUsageEdgeSchema = object({
20538
20935
  callerAddonId: string(),
@@ -23332,6 +23729,12 @@ Object.freeze({
23332
23729
  addonId: null,
23333
23730
  access: "create"
23334
23731
  },
23732
+ "loginMethod.getLoginMethods": {
23733
+ capName: "login-method",
23734
+ capScope: "system",
23735
+ addonId: null,
23736
+ access: "view"
23737
+ },
23335
23738
  "mediaPlayer.next": {
23336
23739
  capName: "media-player",
23337
23740
  capScope: "device",
@@ -23914,6 +24317,12 @@ Object.freeze({
23914
24317
  addonId: null,
23915
24318
  access: "view"
23916
24319
  },
24320
+ "pipelineAnalytics.getKeyEvents": {
24321
+ capName: "pipeline-analytics",
24322
+ capScope: "device",
24323
+ addonId: null,
24324
+ access: "view"
24325
+ },
23917
24326
  "pipelineAnalytics.getMotionEvents": {
23918
24327
  capName: "pipeline-analytics",
23919
24328
  capScope: "device",
@@ -23962,23 +24371,23 @@ Object.freeze({
23962
24371
  addonId: null,
23963
24372
  access: "create"
23964
24373
  },
23965
- "pipelineExecutor.deleteModel": {
24374
+ "pipelineExecutor.clearDeviceOverrides": {
23966
24375
  capName: "pipeline-executor",
23967
24376
  capScope: "system",
23968
24377
  addonId: null,
23969
24378
  access: "delete"
23970
24379
  },
23971
- "pipelineExecutor.deleteTemplate": {
24380
+ "pipelineExecutor.deleteModel": {
23972
24381
  capName: "pipeline-executor",
23973
24382
  capScope: "system",
23974
24383
  addonId: null,
23975
24384
  access: "delete"
23976
24385
  },
23977
- "pipelineExecutor.detect": {
24386
+ "pipelineExecutor.deleteTemplate": {
23978
24387
  capName: "pipeline-executor",
23979
24388
  capScope: "system",
23980
24389
  addonId: null,
23981
- access: "view"
24390
+ access: "delete"
23982
24391
  },
23983
24392
  "pipelineExecutor.downloadModel": {
23984
24393
  capName: "pipeline-executor",
@@ -24172,13 +24581,13 @@ Object.freeze({
24172
24581
  addonId: null,
24173
24582
  access: "create"
24174
24583
  },
24175
- "pipelineOrchestrator.assignAudio": {
24176
- capName: "pipeline-orchestrator",
24584
+ "pipelineExecutor.validatePipeline": {
24585
+ capName: "pipeline-executor",
24177
24586
  capScope: "system",
24178
24587
  addonId: null,
24179
- access: "create"
24588
+ access: "view"
24180
24589
  },
24181
- "pipelineOrchestrator.assignDecoder": {
24590
+ "pipelineOrchestrator.assignAudio": {
24182
24591
  capName: "pipeline-orchestrator",
24183
24592
  capScope: "system",
24184
24593
  addonId: null,
@@ -24262,19 +24671,13 @@ Object.freeze({
24262
24671
  addonId: null,
24263
24672
  access: "view"
24264
24673
  },
24265
- "pipelineOrchestrator.getDecoderAssignment": {
24266
- capName: "pipeline-orchestrator",
24267
- capScope: "system",
24268
- addonId: null,
24269
- access: "view"
24270
- },
24271
- "pipelineOrchestrator.getDecoderAssignments": {
24674
+ "pipelineOrchestrator.getGlobalMetrics": {
24272
24675
  capName: "pipeline-orchestrator",
24273
24676
  capScope: "system",
24274
24677
  addonId: null,
24275
24678
  access: "view"
24276
24679
  },
24277
- "pipelineOrchestrator.getGlobalMetrics": {
24680
+ "pipelineOrchestrator.getIngestOwner": {
24278
24681
  capName: "pipeline-orchestrator",
24279
24682
  capScope: "system",
24280
24683
  addonId: null,
@@ -24316,6 +24719,12 @@ Object.freeze({
24316
24719
  addonId: null,
24317
24720
  access: "delete"
24318
24721
  },
24722
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24723
+ capName: "pipeline-orchestrator",
24724
+ capScope: "system",
24725
+ addonId: null,
24726
+ access: "delete"
24727
+ },
24319
24728
  "pipelineOrchestrator.resolvePipeline": {
24320
24729
  capName: "pipeline-orchestrator",
24321
24730
  capScope: "system",
@@ -24352,37 +24761,37 @@ Object.freeze({
24352
24761
  addonId: null,
24353
24762
  access: "create"
24354
24763
  },
24355
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24764
+ "pipelineOrchestrator.setAgentReachableHost": {
24356
24765
  capName: "pipeline-orchestrator",
24357
24766
  capScope: "system",
24358
24767
  addonId: null,
24359
24768
  access: "create"
24360
24769
  },
24361
- "pipelineOrchestrator.setCameraStepOverride": {
24770
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24362
24771
  capName: "pipeline-orchestrator",
24363
24772
  capScope: "system",
24364
24773
  addonId: null,
24365
24774
  access: "create"
24366
24775
  },
24367
- "pipelineOrchestrator.setCameraStepToggle": {
24776
+ "pipelineOrchestrator.setCameraStepOverride": {
24368
24777
  capName: "pipeline-orchestrator",
24369
24778
  capScope: "system",
24370
24779
  addonId: null,
24371
24780
  access: "create"
24372
24781
  },
24373
- "pipelineOrchestrator.setCapabilityBinding": {
24782
+ "pipelineOrchestrator.setCameraStepToggle": {
24374
24783
  capName: "pipeline-orchestrator",
24375
24784
  capScope: "system",
24376
24785
  addonId: null,
24377
24786
  access: "create"
24378
24787
  },
24379
- "pipelineOrchestrator.unassignAudio": {
24788
+ "pipelineOrchestrator.setCapabilityBinding": {
24380
24789
  capName: "pipeline-orchestrator",
24381
24790
  capScope: "system",
24382
24791
  addonId: null,
24383
24792
  access: "create"
24384
24793
  },
24385
- "pipelineOrchestrator.unassignDecoder": {
24794
+ "pipelineOrchestrator.unassignAudio": {
24386
24795
  capName: "pipeline-orchestrator",
24387
24796
  capScope: "system",
24388
24797
  addonId: null,
@@ -24442,6 +24851,12 @@ Object.freeze({
24442
24851
  addonId: null,
24443
24852
  access: "view"
24444
24853
  },
24854
+ "pipelineRunner.getNativeCrop": {
24855
+ capName: "pipeline-runner",
24856
+ capScope: "system",
24857
+ addonId: null,
24858
+ access: "view"
24859
+ },
24445
24860
  "pipelineRunner.reportMotion": {
24446
24861
  capName: "pipeline-runner",
24447
24862
  capScope: "system",
@@ -24682,33 +25097,45 @@ Object.freeze({
24682
25097
  addonId: null,
24683
25098
  access: "create"
24684
25099
  },
24685
- "restreamer.getExposedResources": {
24686
- capName: "restreamer",
25100
+ "scriptRunner.run": {
25101
+ capName: "script-runner",
25102
+ capScope: "device",
25103
+ addonId: null,
25104
+ access: "create"
25105
+ },
25106
+ "scriptRunner.stop": {
25107
+ capName: "script-runner",
25108
+ capScope: "device",
25109
+ addonId: null,
25110
+ access: "create"
25111
+ },
25112
+ "serverManagement.applyServerUpdate": {
25113
+ capName: "server-management",
24687
25114
  capScope: "system",
24688
25115
  addonId: null,
24689
- access: "view"
25116
+ access: "create"
24690
25117
  },
24691
- "restreamer.registerDevice": {
24692
- capName: "restreamer",
25118
+ "serverManagement.checkServerUpdate": {
25119
+ capName: "server-management",
24693
25120
  capScope: "system",
24694
25121
  addonId: null,
24695
25122
  access: "create"
24696
25123
  },
24697
- "restreamer.unregisterDevice": {
24698
- capName: "restreamer",
25124
+ "serverManagement.getServerPackageStatus": {
25125
+ capName: "server-management",
24699
25126
  capScope: "system",
24700
25127
  addonId: null,
24701
- access: "delete"
25128
+ access: "view"
24702
25129
  },
24703
- "scriptRunner.run": {
24704
- capName: "script-runner",
24705
- capScope: "device",
25130
+ "serverManagement.restartServer": {
25131
+ capName: "server-management",
25132
+ capScope: "system",
24706
25133
  addonId: null,
24707
25134
  access: "create"
24708
25135
  },
24709
- "scriptRunner.stop": {
24710
- capName: "script-runner",
24711
- capScope: "device",
25136
+ "serverManagement.rollbackServerUpdate": {
25137
+ capName: "server-management",
25138
+ capScope: "system",
24712
25139
  addonId: null,
24713
25140
  access: "create"
24714
25141
  },
@@ -24796,23 +25223,17 @@ Object.freeze({
24796
25223
  addonId: null,
24797
25224
  access: "view"
24798
25225
  },
24799
- "snapshot.invalidateCache": {
25226
+ "snapshot.getSnapshotOverview": {
24800
25227
  capName: "snapshot",
24801
25228
  capScope: "device",
24802
25229
  addonId: null,
24803
- access: "create"
24804
- },
24805
- "snapshotProvider.getSnapshot": {
24806
- capName: "snapshot-provider",
24807
- capScope: "system",
24808
- addonId: null,
24809
25230
  access: "view"
24810
25231
  },
24811
- "snapshotProvider.supportsDevice": {
24812
- capName: "snapshot-provider",
24813
- capScope: "system",
25232
+ "snapshot.invalidateCache": {
25233
+ capName: "snapshot",
25234
+ capScope: "device",
24814
25235
  addonId: null,
24815
- access: "view"
25236
+ access: "create"
24816
25237
  },
24817
25238
  "ssoBridge.signBridgeToken": {
24818
25239
  capName: "sso-bridge",
@@ -25240,30 +25661,6 @@ Object.freeze({
25240
25661
  addonId: null,
25241
25662
  access: "view"
25242
25663
  },
25243
- "streamingEngine.getStreamUrl": {
25244
- capName: "streaming-engine",
25245
- capScope: "system",
25246
- addonId: null,
25247
- access: "view"
25248
- },
25249
- "streamingEngine.listStreams": {
25250
- capName: "streaming-engine",
25251
- capScope: "system",
25252
- addonId: null,
25253
- access: "view"
25254
- },
25255
- "streamingEngine.registerStream": {
25256
- capName: "streaming-engine",
25257
- capScope: "system",
25258
- addonId: null,
25259
- access: "create"
25260
- },
25261
- "streamingEngine.unregisterStream": {
25262
- capName: "streaming-engine",
25263
- capScope: "system",
25264
- addonId: null,
25265
- access: "delete"
25266
- },
25267
25664
  "streamParams.getConfigSchema": {
25268
25665
  capName: "stream-params",
25269
25666
  capScope: "device",
@@ -25510,6 +25907,12 @@ Object.freeze({
25510
25907
  addonId: null,
25511
25908
  access: "view"
25512
25909
  },
25910
+ "userPasskeys.beginDiscoverableAuthentication": {
25911
+ capName: "user-passkeys",
25912
+ capScope: "system",
25913
+ addonId: null,
25914
+ access: "view"
25915
+ },
25513
25916
  "userPasskeys.beginRegistration": {
25514
25917
  capName: "user-passkeys",
25515
25918
  capScope: "system",
@@ -25522,12 +25925,24 @@ Object.freeze({
25522
25925
  addonId: null,
25523
25926
  access: "view"
25524
25927
  },
25928
+ "userPasskeys.finishDiscoverableAuthentication": {
25929
+ capName: "user-passkeys",
25930
+ capScope: "system",
25931
+ addonId: null,
25932
+ access: "view"
25933
+ },
25525
25934
  "userPasskeys.finishRegistration": {
25526
25935
  capName: "user-passkeys",
25527
25936
  capScope: "system",
25528
25937
  addonId: null,
25529
25938
  access: "create"
25530
25939
  },
25940
+ "userPasskeys.getSecondFactorPreference": {
25941
+ capName: "user-passkeys",
25942
+ capScope: "system",
25943
+ addonId: null,
25944
+ access: "view"
25945
+ },
25531
25946
  "userPasskeys.listPasskeys": {
25532
25947
  capName: "user-passkeys",
25533
25948
  capScope: "system",
@@ -25540,6 +25955,12 @@ Object.freeze({
25540
25955
  addonId: null,
25541
25956
  access: "delete"
25542
25957
  },
25958
+ "userPasskeys.setSecondFactorPreference": {
25959
+ capName: "user-passkeys",
25960
+ capScope: "system",
25961
+ addonId: null,
25962
+ access: "create"
25963
+ },
25543
25964
  "vacuumControl.locate": {
25544
25965
  capName: "vacuum-control",
25545
25966
  capScope: "device",
@@ -25612,6 +26033,18 @@ Object.freeze({
25612
26033
  addonId: null,
25613
26034
  access: "view"
25614
26035
  },
26036
+ "viewerUi.getStaticDir": {
26037
+ capName: "viewer-ui",
26038
+ capScope: "system",
26039
+ addonId: null,
26040
+ access: "view"
26041
+ },
26042
+ "viewerUi.getVersion": {
26043
+ capName: "viewer-ui",
26044
+ capScope: "system",
26045
+ addonId: null,
26046
+ access: "view"
26047
+ },
25615
26048
  "waterHeater.setAway": {
25616
26049
  capName: "water-heater",
25617
26050
  capScope: "device",
@@ -25630,54 +26063,6 @@ Object.freeze({
25630
26063
  addonId: null,
25631
26064
  access: "create"
25632
26065
  },
25633
- "webrtc.closeSession": {
25634
- capName: "webrtc",
25635
- capScope: "system",
25636
- addonId: null,
25637
- access: "create"
25638
- },
25639
- "webrtc.createSession": {
25640
- capName: "webrtc",
25641
- capScope: "system",
25642
- addonId: null,
25643
- access: "create"
25644
- },
25645
- "webrtc.handleAnswer": {
25646
- capName: "webrtc",
25647
- capScope: "system",
25648
- addonId: null,
25649
- access: "create"
25650
- },
25651
- "webrtc.handleOffer": {
25652
- capName: "webrtc",
25653
- capScope: "system",
25654
- addonId: null,
25655
- access: "create"
25656
- },
25657
- "webrtc.hasAdaptiveBitrate": {
25658
- capName: "webrtc",
25659
- capScope: "system",
25660
- addonId: null,
25661
- access: "view"
25662
- },
25663
- "webrtc.registerStream": {
25664
- capName: "webrtc",
25665
- capScope: "system",
25666
- addonId: null,
25667
- access: "create"
25668
- },
25669
- "webrtc.supportsStream": {
25670
- capName: "webrtc",
25671
- capScope: "system",
25672
- addonId: null,
25673
- access: "view"
25674
- },
25675
- "webrtc.unregisterStream": {
25676
- capName: "webrtc",
25677
- capScope: "system",
25678
- addonId: null,
25679
- access: "delete"
25680
- },
25681
26066
  "webrtcSession.addIceCandidate": {
25682
26067
  capName: "webrtc-session",
25683
26068
  capScope: "device",