@camstack/addon-provider-rademacher 0.1.6 → 0.1.8

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 +715 -288
  2. package/dist/addon.mjs +715 -288
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5627,7 +5627,7 @@ function preprocess(fn, schema) {
5627
5627
  });
5628
5628
  }
5629
5629
  //#endregion
5630
- //#region ../types/dist/sleep-CZDdRBua.mjs
5630
+ //#region ../types/dist/sleep-Baang_XW.mjs
5631
5631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5632
5632
  EventCategory["SystemBoot"] = "system.boot";
5633
5633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5813,6 +5813,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
5813
5813
  */
5814
5814
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
5815
5815
  /**
5816
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
5817
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
5818
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
5819
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
5820
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
5821
+ * cross-process `getIngestOwner` query (push the authority's decision instead
5822
+ * of polling it on the hot path). Idempotent state — re-emitted on every
5823
+ * topology change, so a dropped event self-heals on the next one (plus the
5824
+ * broker's long backstop reconcile query).
5825
+ */
5826
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
5827
+ /**
5816
5828
  * Periodic snapshot of per-node pipeline-runner load
5817
5829
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
5818
5830
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -6336,10 +6348,6 @@ function hydrateField(field, values) {
6336
6348
  };
6337
6349
  }
6338
6350
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
6339
- if (field.type === "password") return {
6340
- ...field,
6341
- value: ""
6342
- };
6343
6351
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
6344
6352
  return {
6345
6353
  ...field,
@@ -7723,10 +7731,25 @@ function method(input, output, options) {
7723
7731
  timeoutMs: options?.timeoutMs
7724
7732
  };
7725
7733
  }
7734
+ /**
7735
+ * A wrapper/system-only method: served exclusively by the cap's system-level
7736
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
7737
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
7738
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
7739
+ */
7740
+ function systemMethod(input, output, options) {
7741
+ return {
7742
+ ...method(input, output, options),
7743
+ systemOnly: true
7744
+ };
7745
+ }
7726
7746
  /** Shorthand to define an event schema */
7727
7747
  function event(data) {
7728
7748
  return { data };
7729
7749
  }
7750
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
7751
+ var VersionOutputSchema$1 = object({ version: string() });
7752
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
7730
7753
  var StaticDirOutputSchema = object({ staticDir: string() });
7731
7754
  var VersionOutputSchema = object({ version: string() });
7732
7755
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -7908,6 +7931,36 @@ var ModelFormatsSchema = object({
7908
7931
  tflite: ModelFormatEntrySchema.optional(),
7909
7932
  pt: ModelFormatEntrySchema.optional()
7910
7933
  });
7934
+ /**
7935
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
7936
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
7937
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
7938
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
7939
+ * resolution/download/persistence; this is a presentation overlay resolved back
7940
+ * to an `id`.
7941
+ */
7942
+ var ModelVariantGroupSchema = object({
7943
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
7944
+ family: string(),
7945
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
7946
+ tier: string(),
7947
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
7948
+ precision: _enum(["fp32", "int8"]).optional(),
7949
+ /**
7950
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
7951
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
7952
+ * future performance variants plug into.
7953
+ */
7954
+ optimization: _enum(["standard", "fast"]).optional(),
7955
+ /**
7956
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
7957
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
7958
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
7959
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
7960
+ * the group so the selector can offer it as a variant axis.
7961
+ */
7962
+ resolution: number().int().positive().optional()
7963
+ });
7911
7964
  var ModelCatalogEntrySchema = object({
7912
7965
  id: string(),
7913
7966
  name: string(),
@@ -7937,7 +7990,43 @@ var ModelCatalogEntrySchema = object({
7937
7990
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
7938
7991
  * Downloaded into the same modelsDir alongside the model file.
7939
7992
  */
7940
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7993
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7994
+ /**
7995
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7996
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7997
+ * model list and excluded from the auto format-default pick. Set on the
7998
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7999
+ * the active lineup stays the coherent curated ladder without deleting a
8000
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
8001
+ * an explicit legacy id that has a build for the node's format.
8002
+ */
8003
+ legacy: boolean().optional(),
8004
+ /**
8005
+ * Measured quality/latency metadata — populated from the benchmark addon on
8006
+ * the real node classes. Absent = not yet measured (most entries today; the
8007
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
8008
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
8009
+ */
8010
+ metrics: object({
8011
+ map50: number().optional(),
8012
+ p95LatencyMs: record(string(), number()).optional()
8013
+ }).optional(),
8014
+ /**
8015
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
8016
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
8017
+ * the retraining addon and any future commercial distribution.
8018
+ */
8019
+ license: string().optional(),
8020
+ /**
8021
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
8022
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
8023
+ * of a family's sizes and quantizations collapse into one grouped picker
8024
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
8025
+ * (legacy / custom models) — never shown in the grouped selector. The flat
8026
+ * `id` stays the source of truth for resolution/download/persistence; grouping
8027
+ * is a presentation overlay resolved back to an `id`.
8028
+ */
8029
+ group: ModelVariantGroupSchema.optional()
7941
8030
  });
7942
8031
  var ConvertTargetSchema = discriminatedUnion("format", [object({
7943
8032
  format: literal("openvino"),
@@ -7998,8 +8087,8 @@ var RecordingModeSchema = _enum([
7998
8087
  "onAudioThreshold"
7999
8088
  ]);
8000
8089
  /**
8001
- * First-class, authoritative per-camera storage mode — the netta choice the UI
8002
- * reads directly (never inferred from `rules`):
8090
+ * First-class, authoritative per-camera storage mode — the explicit choice the
8091
+ * UI reads directly (never inferred from `rules`):
8003
8092
  * - `off` — not recording.
8004
8093
  * - `events` — record only around triggers (motion / audio threshold),
8005
8094
  * with pre/post-buffer.
@@ -10162,26 +10251,13 @@ onBrightnessChanged: { data: object({
10162
10251
  */
10163
10252
  runtimeState: BrightnessStatusSchema
10164
10253
  };
10254
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
10165
10255
  var StreamFormatSchema = _enum([
10166
10256
  "webrtc",
10167
10257
  "hls",
10168
10258
  "mjpeg",
10169
10259
  "rtsp"
10170
10260
  ]);
10171
- var StreamInfoSchema = object({
10172
- streamId: string(),
10173
- format: StreamFormatSchema,
10174
- url: string().nullable(),
10175
- active: boolean()
10176
- });
10177
- method(object({
10178
- streamId: string(),
10179
- sourceUrl: string(),
10180
- codec: string().optional()
10181
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
10182
- streamId: string(),
10183
- format: StreamFormatSchema
10184
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
10185
10261
  var RtspRestreamEntrySchema = object({
10186
10262
  brokerId: string(),
10187
10263
  url: string(),
@@ -11049,37 +11125,7 @@ var consumablesCapability = {
11049
11125
  scope: "device",
11050
11126
  deviceNative: true,
11051
11127
  mode: "singleton",
11052
- deviceTypes: [
11053
- DeviceType.Camera,
11054
- DeviceType.Hub,
11055
- DeviceType.Light,
11056
- DeviceType.Siren,
11057
- DeviceType.Switch,
11058
- DeviceType.Sensor,
11059
- DeviceType.Thermostat,
11060
- DeviceType.Button,
11061
- DeviceType.EventEmitter,
11062
- DeviceType.Update,
11063
- DeviceType.Generic,
11064
- DeviceType.Notifier,
11065
- DeviceType.Script,
11066
- DeviceType.Automation,
11067
- DeviceType.Lock,
11068
- DeviceType.Cover,
11069
- DeviceType.Valve,
11070
- DeviceType.Humidifier,
11071
- DeviceType.WaterHeater,
11072
- DeviceType.Fan,
11073
- DeviceType.MediaPlayer,
11074
- DeviceType.AlarmPanel,
11075
- DeviceType.Control,
11076
- DeviceType.Presence,
11077
- DeviceType.Weather,
11078
- DeviceType.Vacuum,
11079
- DeviceType.LawnMower,
11080
- DeviceType.Container,
11081
- DeviceType.Image
11082
- ],
11128
+ deviceTypes: Object.values(DeviceType),
11083
11129
  deviceConfig: { ui: {
11084
11130
  kind: "widget",
11085
11131
  widgetId: "host/consumables-panel",
@@ -12537,7 +12583,7 @@ var BoundingBoxSchema = object({
12537
12583
  w: number(),
12538
12584
  h: number()
12539
12585
  });
12540
- var SpatialDetectionSchema = object({
12586
+ object({
12541
12587
  class: string(),
12542
12588
  originalClass: string(),
12543
12589
  score: number(),
@@ -12672,7 +12718,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
12672
12718
  enabled: boolean(),
12673
12719
  modelId: string(),
12674
12720
  children: array(PipelineDefaultStepSchema).readonly(),
12675
- engine: PipelineEngineChoiceSchema.optional(),
12676
12721
  group: string().optional(),
12677
12722
  settings: record(string(), unknown()).optional()
12678
12723
  }));
@@ -12697,7 +12742,9 @@ var PipelineModelOptionSchema = object({
12697
12742
  formats: record(string(), object({
12698
12743
  downloaded: boolean(),
12699
12744
  sizeMB: number()
12700
- }))
12745
+ })),
12746
+ group: ModelVariantGroupSchema.optional(),
12747
+ legacy: boolean().optional()
12701
12748
  });
12702
12749
  var ConfigFieldBridge = custom();
12703
12750
  var PipelineAddonSchemaSchema = object({
@@ -12711,6 +12758,7 @@ var PipelineAddonSchemaSchema = object({
12711
12758
  defaultModelId: string(),
12712
12759
  defaultModelIdByFormat: record(string(), string()).optional(),
12713
12760
  enabledByDefault: boolean().optional(),
12761
+ backfillIntoExistingOverrides: boolean().optional(),
12714
12762
  defaultConfidence: number(),
12715
12763
  group: string().optional(),
12716
12764
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -12727,11 +12775,6 @@ var PipelineSchemaSchema = object({
12727
12775
  selectedEngine: PipelineEngineChoiceSchema,
12728
12776
  slots: array(PipelineSlotSchemaSchema).readonly()
12729
12777
  });
12730
- var DetectorOutputSchema = object({
12731
- detections: array(SpatialDetectionSchema).readonly(),
12732
- inferenceMs: number(),
12733
- modelId: string()
12734
- });
12735
12778
  var EngineProvisioningSchema = object({
12736
12779
  runtimeId: _enum([
12737
12780
  "onnx",
@@ -12748,15 +12791,42 @@ var EngineProvisioningSchema = object({
12748
12791
  ]),
12749
12792
  progress: number().optional(),
12750
12793
  error: string().optional(),
12751
- nextRetryAt: number().optional()
12794
+ nextRetryAt: number().optional(),
12795
+ /**
12796
+ * Gate A (config-correctness gate at engine change): human-readable
12797
+ * config issues surfaced EAGERLY when the node's engine changes — model
12798
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
12799
+ * has a <format> build"). Additive/optional: informational only, never
12800
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
12801
+ * Absent/empty when the node-default tree resolves cleanly.
12802
+ */
12803
+ configIssues: array(string()).optional()
12752
12804
  });
12753
12805
  var PipelineStepInputSchema = lazy(() => object({
12754
12806
  addonId: string(),
12755
- modelId: string(),
12807
+ modelId: string().optional(),
12756
12808
  enabled: boolean().default(true),
12757
12809
  children: array(PipelineStepInputSchema).optional(),
12758
12810
  settings: record(string(), unknown()).optional()
12759
12811
  }));
12812
+ var ModelSubstitutionSchema = object({
12813
+ addonId: string(),
12814
+ chosen: string(),
12815
+ running: string(),
12816
+ format: string()
12817
+ });
12818
+ var PipelineValidationIssueSchema = object({
12819
+ addonId: string(),
12820
+ kind: _enum(["unknown-addon", "no-format-build"]),
12821
+ detail: string()
12822
+ });
12823
+ var PipelineValidationResultSchema = object({
12824
+ ok: boolean(),
12825
+ issues: array(PipelineValidationIssueSchema).readonly(),
12826
+ substitutions: array(ModelSubstitutionSchema).readonly(),
12827
+ /** The node's `currentEngine.format` this validation ran against. */
12828
+ format: string()
12829
+ });
12760
12830
  var ReferenceImageEntrySchema = object({
12761
12831
  filename: string(),
12762
12832
  stepIds: array(string()).readonly().optional()
@@ -12827,7 +12897,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12827
12897
  })) }), object({ success: literal(true) }), {
12828
12898
  kind: "mutation",
12829
12899
  auth: "admin"
12830
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
12900
+ }), method(object({ nodeId: string() }), object({
12901
+ success: literal(true),
12902
+ clearedDevices: number()
12903
+ }), {
12904
+ kind: "mutation",
12905
+ auth: "admin"
12906
+ }), 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({
12831
12907
  name: string(),
12832
12908
  steps: array(PipelineTemplateStepSchema).readonly(),
12833
12909
  engine: PipelineEngineChoiceSchema
@@ -12844,10 +12920,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12844
12920
  modelId: string(),
12845
12921
  format: ModelFormatSchema$1
12846
12922
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
12847
- addonId: string(),
12848
- frame: FrameInputSchema,
12849
- config: record(string(), unknown()).optional()
12850
- }), DetectorOutputSchema), method(object({
12851
12923
  engine: PipelineEngineChoiceSchema.optional(),
12852
12924
  steps: array(PipelineStepInputSchema).min(1),
12853
12925
  frame: FrameInputSchema.optional(),
@@ -12868,7 +12940,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12868
12940
  image: _instanceof(Uint8Array).optional(),
12869
12941
  referenceImage: string().optional(),
12870
12942
  deviceId: number().optional(),
12871
- sessionId: string().optional()
12943
+ sessionId: string().optional(),
12944
+ /**
12945
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
12946
+ * reference-image, and detail-subtree calls. 'frame' is the live
12947
+ * per-frame dispatch: ONLY root-plane steps run; crop children
12948
+ * (inputClasses ≠ null) are skipped and served per-track via
12949
+ * pipelineRunner.runDetailSubtree (two-plane design).
12950
+ */
12951
+ plane: _enum(["full", "frame"]).optional()
12872
12952
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
12873
12953
  engine: PipelineEngineChoiceSchema.optional(),
12874
12954
  steps: array(PipelineStepInputSchema).min(1),
@@ -13026,6 +13106,47 @@ var zonesCapability = {
13026
13106
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
13027
13107
  };
13028
13108
  /**
13109
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
13110
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
13111
+ * so the caller supplies only the detection-res bbox divided by the detection
13112
+ * dims — no native resolution to plumb.
13113
+ */
13114
+ var NativeCropBboxSchema = object({
13115
+ x: number(),
13116
+ y: number(),
13117
+ w: number(),
13118
+ h: number()
13119
+ });
13120
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
13121
+ var NativeCropResultSchema = object({
13122
+ /** Packed rgb (24-bit) pixels of the crop. */
13123
+ bytes: _instanceof(Uint8Array),
13124
+ width: number().int().positive(),
13125
+ height: number().int().positive()
13126
+ });
13127
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
13128
+ * originating detection, in FRAME-space coordinates. Reuses
13129
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
13130
+ * the coordinates are frame-space rather than getNativeCrop's
13131
+ * normalized [0,1] convention). */
13132
+ var DetailParentSchema = object({
13133
+ bbox: NativeCropBboxSchema,
13134
+ className: string()
13135
+ });
13136
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
13137
+ * or refined detection produced by running the crop-subtree on a
13138
+ * single tracked detection. */
13139
+ var DetailResultSchema = object({
13140
+ stepId: string(),
13141
+ className: string(),
13142
+ score: number(),
13143
+ /** FRAME-space bbox (already mapped back from crop space). */
13144
+ bbox: NativeCropBboxSchema.optional(),
13145
+ embedding: string().optional(),
13146
+ label: string().optional(),
13147
+ alignedCropJpeg: string().optional()
13148
+ });
13149
+ /**
13029
13150
  * Per-camera tunable ranges + defaults. Single source of truth used
13030
13151
  * by both the Zod data schema (validation + default fallback) and
13031
13152
  * the device settings UI (slider min/max/step). Touch one place and
@@ -13120,6 +13241,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
13120
13241
  kind: literal("remote-restream"),
13121
13242
  /** The camera's source-owner node (slice 1: always the hub). */
13122
13243
  ownerNodeId: string(),
13244
+ /**
13245
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
13246
+ * per-node `reachableHost` override (Cluster UI). When present the runner
13247
+ * dials THIS host for the owner's restream, in preference to the
13248
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
13249
+ */
13250
+ ownerReachableHost: string().optional(),
13123
13251
  /** Operator override for the owner host the runner dials. */
13124
13252
  hubHostnameOverride: string().optional()
13125
13253
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -13128,13 +13256,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
13128
13256
  * specific runner instance via `attachCamera`. Carries everything the
13129
13257
  * runner needs to subscribe to the local broker and execute inference.
13130
13258
  *
13131
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
13132
- * optional `audio`) travels with the attach payload. The runner keeps it
13133
- * in RAM for the lifetime of the attach — on rebalance, edit, or
13134
- * restart the orchestrator re-sends the latest snapshot.
13135
- *
13136
- * `engine`/`steps`/`audio` are optional during the additive migration
13137
- * window; once orchestrator + UI are migrated they become required.
13259
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
13260
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
13261
+ * for the lifetime of the attach — on rebalance, edit, or restart the
13262
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
13263
+ * node-local, resolved by the executing runner at dispatch time.
13138
13264
  */
13139
13265
  var RunnerCameraConfigSchema = object({
13140
13266
  deviceId: number(),
@@ -13185,14 +13311,11 @@ var RunnerCameraConfigSchema = object({
13185
13311
  */
13186
13312
  motionSources: MotionSourcesSchema.default(["analyzer"]),
13187
13313
  pipelineEnabled: boolean().default(true),
13188
- /** Engine choice for video steps (runtime+backend+format). */
13189
- engine: PipelineEngineChoiceSchema.optional(),
13190
13314
  /** Ordered tree of video steps. Absent → runner skips video detection. */
13191
13315
  steps: array(PipelineStepInputSchema).readonly().optional(),
13192
13316
  /** Audio classification branch. `enabled:false` disables, null skips. */
13193
13317
  audio: object({
13194
- engine: PipelineEngineChoiceSchema,
13195
- modelId: string(),
13318
+ modelId: string().optional(),
13196
13319
  enabled: boolean()
13197
13320
  }).nullable().optional(),
13198
13321
  /**
@@ -13279,7 +13402,17 @@ var RunnerLocalMetricsSchema = object({
13279
13402
  avgInferenceTimeMs: number(),
13280
13403
  queueDepth: number()
13281
13404
  });
13282
- 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());
13405
+ 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({
13406
+ handle: FrameHandleSchema,
13407
+ bbox: NativeCropBboxSchema,
13408
+ maxWidth: number().int().positive().optional()
13409
+ }), NativeCropResultSchema.nullable()), method(object({
13410
+ deviceId: number(),
13411
+ frameHandle: FrameHandleSchema.optional(),
13412
+ cropJpeg: string().optional(),
13413
+ parent: DetailParentSchema,
13414
+ steps: array(string()).optional()
13415
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
13283
13416
  /**
13284
13417
  * Hardware / firmware motion sensor cap — binary detected state plus
13285
13418
  * a timestamp of the last observation. Distinct from
@@ -16210,7 +16343,9 @@ var AddonPageDeclarationSchema$1 = object({
16210
16343
  icon: string(),
16211
16344
  path: string(),
16212
16345
  remoteName: string(),
16213
- bundle: string()
16346
+ bundle: string(),
16347
+ section: string().optional(),
16348
+ sectionLabel: string().optional()
16214
16349
  });
16215
16350
  var AddonPageInfoSchema = object({
16216
16351
  addonId: string(),
@@ -16250,7 +16385,18 @@ var AddonPageDeclarationSchema = object({
16250
16385
  * the static-file route can compute an mtime-based cache-buster URL
16251
16386
  * without a separate filesystem stat.
16252
16387
  */
16253
- bundle: string()
16388
+ bundle: string(),
16389
+ /**
16390
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
16391
+ * `'cluster'`, `'administration'` — the page renders inside that group.
16392
+ * Any OTHER string creates (or joins) a custom section rendered after
16393
+ * the built-in groups; its label comes from `sectionLabel` (first
16394
+ * declaration wins), falling back to the id. Absent → the legacy
16395
+ * "Addon Pages" group.
16396
+ */
16397
+ section: string().optional(),
16398
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
16399
+ sectionLabel: string().optional()
16254
16400
  });
16255
16401
  method(_void(), array(AddonPageDeclarationSchema).readonly());
16256
16402
  var AddonHttpRouteSchema = object({
@@ -16466,6 +16612,17 @@ var WidgetMetadataSchema = object({
16466
16612
  deviceContext: boolean().default(false),
16467
16613
  integrationContext: boolean().default(false)
16468
16614
  }),
16615
+ /**
16616
+ * Loadable BEFORE authentication. The normal widget registry listing
16617
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
16618
+ * (the login page) cannot discover a widget through it. A widget that
16619
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
16620
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
16621
+ * login-method contribution channel (see `login-method.cap.ts`) rather
16622
+ * than the authenticated registry, and its bundle is served by the
16623
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
16624
+ */
16625
+ preAuth: boolean().optional().default(false),
16469
16626
  /** Dashboard placement HINTS (operator can override per instance). */
16470
16627
  defaultSize: WidgetSizeEnum.default("md"),
16471
16628
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -16767,6 +16924,66 @@ method(object({
16767
16924
  password: string()
16768
16925
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
16769
16926
  /**
16927
+ * `login-method` — collection cap through which auth addons contribute
16928
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
16929
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
16930
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
16931
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
16932
+ * procedure aggregates them for the unauthenticated login page.
16933
+ *
16934
+ * A contribution is a discriminated union on `kind`:
16935
+ *
16936
+ * - `redirect` — a declarative button. The login page renders a generic
16937
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
16938
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
16939
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
16940
+ * login page needs NO change.
16941
+ *
16942
+ * - `widget` — a Module-Federation widget the login page mounts (via
16943
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
16944
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
16945
+ * addon bundle. The referenced widget also declares `preAuth: true` in
16946
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
16947
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
16948
+ *
16949
+ * Every contribution carries a `stage`:
16950
+ * - `primary` — shown on the first credentials screen (OIDC /
16951
+ * magic-link buttons; a future usernameless passkey).
16952
+ * - `second-factor` — shown AFTER the password leg, gated on the
16953
+ * returned `factors` (passkey-as-2FA today).
16954
+ *
16955
+ * `mount: skip` — the cap is read server-side by the core auth router
16956
+ * (`registry.getCollection('login-method')`), never mounted as its own
16957
+ * tRPC router.
16958
+ */
16959
+ /** When a login method renders in the two-phase login flow. */
16960
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
16961
+ /** One login-method contribution — redirect button OR pre-auth widget. */
16962
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
16963
+ kind: literal("redirect"),
16964
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
16965
+ id: string(),
16966
+ /** Operator-facing button label. */
16967
+ label: string(),
16968
+ /** lucide-react icon name. */
16969
+ icon: string().optional(),
16970
+ /** Addon-owned HTTP route the button navigates to (GET). */
16971
+ startUrl: string(),
16972
+ stage: LoginStageEnum
16973
+ }), object({
16974
+ kind: literal("widget"),
16975
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
16976
+ id: string(),
16977
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
16978
+ addonId: string(),
16979
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
16980
+ bundle: string(),
16981
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
16982
+ remote: WidgetRemoteSchema,
16983
+ stage: LoginStageEnum
16984
+ })]);
16985
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16986
+ /**
16770
16987
  * Orchestrator-side destination metadata. The orchestrator computes
16771
16988
  * `id = <addonId>:<subId>` from its provider lookup so consumers
16772
16989
  * (admin UI, restore flow) see one canonical key.
@@ -18870,7 +19087,17 @@ var TrackSchema = object({
18870
19087
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
18871
19088
  totalDistance: number(),
18872
19089
  state: TrackStateSchema,
18873
- active: boolean()
19090
+ active: boolean(),
19091
+ /** Deterministic key-event importance score in [0,1] (server-computed at
19092
+ * track expiry, recomputed on late label). Absent on legacy rows written
19093
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
19094
+ importance: number().optional(),
19095
+ /** Id of the track's highest-confidence ObjectEvent (its representative
19096
+ * "best" frame). Absent when the track produced no object events. */
19097
+ bestEventId: string().optional(),
19098
+ /** Tag of the importance sub-signal that dominated the score
19099
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
19100
+ importanceReason: string().optional()
18874
19101
  });
18875
19102
  var BaseEventFields = {
18876
19103
  id: string(),
@@ -18935,8 +19162,18 @@ var ObjectEventSchema = object({
18935
19162
  frameHeight: number().optional(),
18936
19163
  /** MediaStore key for the crop attached to this event (if any). */
18937
19164
  mediaKey: string().optional(),
19165
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
19166
+ * best-detection full frame). Resolve via the event-media data-plane
19167
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
19168
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
19169
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
19170
+ keyFrameMediaKey: string().optional(),
18938
19171
  /** Populated by B5 (recording playback URL for this event). */
18939
- mediaUrl: string().optional()
19172
+ mediaUrl: string().optional(),
19173
+ /** The parent track's key-event importance [0,1], propagated to every object
19174
+ * event of the track (so an event row can be sorted by importance without a
19175
+ * track join). Absent on legacy rows / before the track was scored. */
19176
+ importance: number().optional()
18940
19177
  });
18941
19178
  var AudioEventSchema = object({
18942
19179
  ...BaseEventFields,
@@ -18960,7 +19197,8 @@ var MediaFileKindEnum = _enum([
18960
19197
  "fullFrame",
18961
19198
  "fullFrameBoxed",
18962
19199
  "faceCrop",
18963
- "plateCrop"
19200
+ "plateCrop",
19201
+ "keyFrame"
18964
19202
  ]);
18965
19203
  var MediaFileSchema = object({
18966
19204
  key: string(),
@@ -18981,6 +19219,32 @@ var DeviceEventQueryInput = object({
18981
19219
  projection: _enum(["full", "slim"]).optional()
18982
19220
  });
18983
19221
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
19222
+ var KeyEventQueryInput = object({
19223
+ deviceId: number(),
19224
+ /** Window lower bound (track firstSeen ≥ since). */
19225
+ since: number(),
19226
+ /** Window upper bound (track firstSeen ≤ until). */
19227
+ until: number(),
19228
+ limit: number().int().min(1).max(200).default(50),
19229
+ /** Drop tracks scoring below this importance. */
19230
+ minImportance: number().min(0).max(1).optional(),
19231
+ /** Restrict to a single class (e.g. 'person'). */
19232
+ classFilter: string().optional()
19233
+ });
19234
+ var KeyEventSchema = object({
19235
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
19236
+ id: string(),
19237
+ trackId: string(),
19238
+ /** Track start time (firstSeen). */
19239
+ timestamp: number(),
19240
+ className: string(),
19241
+ label: string().optional(),
19242
+ importance: number(),
19243
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
19244
+ bestEventId: string(),
19245
+ /** Track lifetime in ms (lastSeen - firstSeen). */
19246
+ windowMs: number().optional()
19247
+ });
18984
19248
  var TrackedDetectionSchema = object({
18985
19249
  trackId: string(),
18986
19250
  className: string(),
@@ -19010,7 +19274,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19010
19274
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
19011
19275
  kind: "mutation",
19012
19276
  auth: "admin"
19013
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
19277
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
19014
19278
  deviceId: number(),
19015
19279
  since: number(),
19016
19280
  until: number(),
@@ -19055,11 +19319,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19055
19319
  timestamp: number()
19056
19320
  });
19057
19321
  var CameraPipelineConfigSchema = object({
19058
- engine: PipelineEngineChoiceSchema,
19322
+ engine: PipelineEngineChoiceSchema.optional(),
19059
19323
  steps: array(PipelineStepInputSchema).readonly(),
19060
19324
  audio: object({
19061
- engine: PipelineEngineChoiceSchema,
19062
- modelId: string(),
19325
+ engine: PipelineEngineChoiceSchema.optional(),
19326
+ modelId: string().optional(),
19063
19327
  enabled: boolean(),
19064
19328
  settings: record(string(), unknown()).readonly().optional()
19065
19329
  }).nullable().optional()
@@ -19074,7 +19338,7 @@ var PipelineTemplateSchema = object({
19074
19338
  });
19075
19339
  var AgentAddonConfigSchema = object({
19076
19340
  enabled: boolean(),
19077
- modelId: string(),
19341
+ modelId: string().optional(),
19078
19342
  settings: record(string(), unknown()).readonly()
19079
19343
  });
19080
19344
  var AgentPipelineSettingsSchema = object({
@@ -19084,12 +19348,25 @@ var AgentPipelineSettingsSchema = object({
19084
19348
  detectWeight: number().positive().optional(),
19085
19349
  /** Node is eligible to run the detection pipeline (decode + inference). */
19086
19350
  detect: boolean().optional(),
19087
- /** Node is eligible to host decoder sessions. */
19351
+ /**
19352
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
19353
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
19354
+ * the schema ONLY so persisted stores written before the removal still
19355
+ * parse — no code reads it and no write path emits it.
19356
+ */
19088
19357
  decode: boolean().optional(),
19089
19358
  /** Node is eligible to run audio-analyzer sessions. */
19090
19359
  audio: boolean().optional(),
19091
19360
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
19092
- ingest: boolean().optional()
19361
+ ingest: boolean().optional(),
19362
+ /**
19363
+ * Operator override for the LAN host a cross-node decoder dials to reach
19364
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
19365
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
19366
+ * it already uses to reach the hub). Set this only when the auto-detected
19367
+ * address is wrong (multi-homed host, NAT, custom interface).
19368
+ */
19369
+ reachableHost: string().optional()
19093
19370
  });
19094
19371
  var CameraPipelineForAgentSchema = object({
19095
19372
  steps: array(PipelineStepInputSchema).readonly(),
@@ -19137,25 +19414,6 @@ var PipelineAssignmentSchema = object({
19137
19414
  assignedAt: number()
19138
19415
  });
19139
19416
  /**
19140
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
19141
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
19142
- * → co-located with pipeline → capacity).
19143
- */
19144
- var DecoderAssignmentSchema = object({
19145
- deviceId: number(),
19146
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
19147
- decoderNodeId: string(),
19148
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
19149
- pinned: boolean(),
19150
- /** Why this assignment was made — useful for debugging the decoder balancer. */
19151
- reason: _enum([
19152
- "manual",
19153
- "co-located",
19154
- "capacity",
19155
- "hardware-affinity"
19156
- ])
19157
- });
19158
- /**
19159
19417
  * Per-agent load summary surfaced to the load balancer + dashboards.
19160
19418
  * Aggregated from each runner's `getLocalLoad` cap call.
19161
19419
  */
@@ -19195,6 +19453,15 @@ var GlobalMetricsSchema = object({
19195
19453
  * capability providers.
19196
19454
  */
19197
19455
  var CapabilityBindingsSchema = record(string(), string());
19456
+ /**
19457
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
19458
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
19459
+ */
19460
+ var IngestOwnerSchema = object({
19461
+ ownerNodeId: string(),
19462
+ reachableHost: string().optional(),
19463
+ configIssue: string().optional()
19464
+ });
19198
19465
  /** Source block — always present; derives from the stream catalog. */
19199
19466
  var CameraSourceStatusSchema = object({ streams: array(object({
19200
19467
  camStreamId: string(),
@@ -19209,6 +19476,14 @@ var CameraAssignmentStatusSchema = object({
19209
19476
  detectionNodeId: string().nullable(),
19210
19477
  decoderNodeId: string().nullable(),
19211
19478
  audioNodeId: string().nullable(),
19479
+ /**
19480
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
19481
+ * hosts the broker/restream) — the cluster ingest owner today
19482
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
19483
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
19484
+ * broker block below was read from (pinned). Nullable only pre-wiring.
19485
+ */
19486
+ sourceNodeId: string().nullable(),
19212
19487
  pinned: object({
19213
19488
  detection: boolean(),
19214
19489
  decoder: boolean(),
@@ -19341,16 +19616,7 @@ method(object({
19341
19616
  }), object({ success: literal(true) }), {
19342
19617
  kind: "mutation",
19343
19618
  auth: "admin"
19344
- }), method(object({
19345
- deviceId: number(),
19346
- nodeId: string()
19347
- }), _void(), {
19348
- kind: "mutation",
19349
- auth: "admin"
19350
- }), method(object({ deviceId: number() }), _void(), {
19351
- kind: "mutation",
19352
- auth: "admin"
19353
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
19619
+ }), method(_void(), IngestOwnerSchema), method(object({
19354
19620
  deviceId: number(),
19355
19621
  nodeId: string()
19356
19622
  }), object({ success: literal(true) }), {
@@ -19371,10 +19637,7 @@ method(object({
19371
19637
  nodeId: string(),
19372
19638
  pinned: boolean(),
19373
19639
  assignedAt: number()
19374
- }))), method(object({
19375
- deviceId: number(),
19376
- pipelineNodeId: string().optional()
19377
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
19640
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
19378
19641
  nodeId: string(),
19379
19642
  settings: AgentPipelineSettingsSchema
19380
19643
  })).readonly()), method(object({
@@ -19404,12 +19667,26 @@ method(object({
19404
19667
  }), method(object({
19405
19668
  agentNodeId: string(),
19406
19669
  detect: boolean().nullable().optional(),
19407
- decode: boolean().nullable().optional(),
19408
19670
  audio: boolean().nullable().optional(),
19409
19671
  ingest: boolean().nullable().optional()
19410
19672
  }), object({ success: literal(true) }), {
19411
19673
  kind: "mutation",
19412
19674
  auth: "admin"
19675
+ }), method(object({
19676
+ agentNodeId: string(),
19677
+ reachableHost: string().nullable()
19678
+ }), object({ success: literal(true) }), {
19679
+ kind: "mutation",
19680
+ auth: "admin"
19681
+ }), method(object({ agentNodeId: string() }), object({
19682
+ success: literal(true),
19683
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
19684
+ effectiveModelId: string().nullable(),
19685
+ /** Number of cameras whose node-scoped overrides were cleared. */
19686
+ clearedCameraOverrides: number()
19687
+ }), {
19688
+ kind: "mutation",
19689
+ auth: "admin"
19413
19690
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
19414
19691
  deviceId: number(),
19415
19692
  addonId: string(),
@@ -19454,22 +19731,131 @@ method(object({
19454
19731
  kind: "mutation",
19455
19732
  auth: "admin"
19456
19733
  });
19457
- var RegisteredStreamSchema = object({
19458
- streamId: string(),
19459
- label: string().optional(),
19460
- codec: string(),
19461
- type: _enum(["video", "audio"]),
19462
- sourceUrl: string()
19734
+ /**
19735
+ * server-management — per-NODE singleton capability for a node's ROOT
19736
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
19737
+ * agents).
19738
+ *
19739
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
19740
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
19741
+ * version describes the node. Updates install into
19742
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
19743
+ * starter (probation boot + auto-rollback to N-1).
19744
+ *
19745
+ * Providers:
19746
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
19747
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
19748
+ * unpinned calls.
19749
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
19750
+ * the synthetic `agent-runtime` addonId and declared in the agent's
19751
+ * `$hub.registerNode` manifest.
19752
+ *
19753
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
19754
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
19755
+ * SDK) routes the call to that node's provider via the standard remote
19756
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
19757
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
19758
+ *
19759
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
19760
+ */
19761
+ /**
19762
+ * Where the running hub's code was loaded from:
19763
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
19764
+ * plain resolution and runtime updates are refused.
19765
+ * - `baked` — the immutable image seed closure (no data-dir root active).
19766
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
19767
+ */
19768
+ var ServerBootModeSchema = _enum([
19769
+ "workspace",
19770
+ "baked",
19771
+ "data-root"
19772
+ ]);
19773
+ /**
19774
+ * Update lifecycle state:
19775
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
19776
+ * - `pending-restart` — a version is staged and the node has NOT yet
19777
+ * restarted onto it (still running the OLD version).
19778
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
19779
+ * (it is the active probation boot) and is waiting to confirm boot-health.
19780
+ * Apply/rollback are refused in this state and the node must NOT be
19781
+ * manually restarted, or the probation boot auto-rolls-back.
19782
+ */
19783
+ var ServerUpdateStateSchema = _enum([
19784
+ "idle",
19785
+ "checking",
19786
+ "staging",
19787
+ "pending-restart",
19788
+ "awaiting-confirmation"
19789
+ ]);
19790
+ var ServerRollbackInfoSchema = object({
19791
+ /** The version that failed (or was manually rolled back). */
19792
+ fromVersion: string(),
19793
+ /** The version rolled back to; null = the baked seed. */
19794
+ toVersion: string().nullable(),
19795
+ atMs: number(),
19796
+ reason: string()
19463
19797
  });
19464
- var ExposedResourceSchema = object({
19465
- streamId: string(),
19466
- format: string(),
19467
- value: string()
19798
+ var ServerPackageStatusSchema = object({
19799
+ /** Root package name (`@camstack/server` on the hub). */
19800
+ packageName: string(),
19801
+ /** Version of the code the running process ACTUALLY loaded. */
19802
+ runningVersion: string().nullable(),
19803
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
19804
+ nodeRuntimeVersion: string().nullable(),
19805
+ /** Active data-dir root version; null when booted from seed/workspace. */
19806
+ activeVersion: string().nullable(),
19807
+ /** N-1 version kept for rollback; null when no previous version exists. */
19808
+ previousVersion: string().nullable(),
19809
+ /** Version of the immutable baked seed closure (image fallback). */
19810
+ seedVersion: string().nullable(),
19811
+ /** Latest registry version from the most recent check (null = never checked). */
19812
+ latestVersion: string().nullable(),
19813
+ updateAvailable: boolean(),
19814
+ bootMode: ServerBootModeSchema,
19815
+ updateState: ServerUpdateStateSchema,
19816
+ /** Version staged + awaiting its probation boot, when one is pending. */
19817
+ pendingVersion: string().nullable(),
19818
+ /** Set when the last freshly-activated version failed its boot health-check. */
19819
+ rolledBack: ServerRollbackInfoSchema.nullable(),
19820
+ /**
19821
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
19822
+ * hub is running from the baked seed (or workspace) while installed data-dir
19823
+ * versions are being IGNORED. Surfaced as a warning in the UI.
19824
+ */
19825
+ stateFileCorrupt: boolean(),
19826
+ lastCheckedAtMs: number().nullable()
19827
+ });
19828
+ var ServerUpdateCheckResultSchema = object({
19829
+ packageName: string(),
19830
+ runningVersion: string().nullable(),
19831
+ latestVersion: string().nullable(),
19832
+ updateAvailable: boolean(),
19833
+ checkedAtMs: number(),
19834
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
19835
+ error: string().nullable()
19836
+ });
19837
+ var ServerUpdateActionResultSchema = object({
19838
+ accepted: boolean(),
19839
+ targetVersion: string().nullable(),
19840
+ /** True when a graceful restart was scheduled to apply the change. */
19841
+ restarting: boolean(),
19842
+ message: string()
19843
+ });
19844
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
19845
+ kind: "mutation",
19846
+ auth: "admin"
19847
+ }), method(object({
19848
+ /** Explicit target version; omitted = latest from the registry. */
19849
+ version: string().optional() }), ServerUpdateActionResultSchema, {
19850
+ kind: "mutation",
19851
+ auth: "admin"
19852
+ }), method(_void(), ServerUpdateActionResultSchema, {
19853
+ kind: "mutation",
19854
+ auth: "admin"
19855
+ }), method(_void(), ServerUpdateActionResultSchema, {
19856
+ kind: "mutation",
19857
+ auth: "admin"
19468
19858
  });
19469
- method(object({
19470
- deviceId: number(),
19471
- streams: array(RegisteredStreamSchema).readonly()
19472
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
19473
19859
  /**
19474
19860
  * Query filter for settings-store collections.
19475
19861
  */
@@ -19622,9 +20008,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
19622
20008
  /**
19623
20009
  * A single device snapshot returned as base64 JPEG/PNG.
19624
20010
  *
19625
- * Shared with the `snapshot-provider` collection cap the orchestrator
19626
- * receives the same shape from each native provider and from the
19627
- * broker-based fallback.
20011
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
20012
+ * the device-native provider (onboard capture) or from the stream-broker
20013
+ * prebuffer fallback.
19628
20014
  */
19629
20015
  var SnapshotImageSchema = object({
19630
20016
  base64: string(),
@@ -19655,11 +20041,12 @@ DeviceType.Camera, method(object({
19655
20041
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
19656
20042
  kind: "mutation",
19657
20043
  auth: "admin"
19658
- });
19659
- method(object({ deviceId: number() }), boolean()), method(object({
20044
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
19660
20045
  deviceId: number(),
19661
- streamId: string().optional()
19662
- }), SnapshotImageSchema.nullable());
20046
+ lastCapturedAt: number().nullable(),
20047
+ cacheAgeMs: number().nullable(),
20048
+ etag: string().nullable()
20049
+ })));
19663
20050
  /**
19664
20051
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
19665
20052
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19910,10 +20297,32 @@ method(_void(), array(TurnServerSchema).readonly());
19910
20297
  * b. `finishAuthentication({userId, response})` → server verifies
19911
20298
  * the assertion, bumps the credential counter, returns ok.
19912
20299
  *
20300
+ * 2b. Usernameless (discoverable-credential) authentication — the
20301
+ * passkey IS the primary factor, no password leg:
20302
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
20303
+ * EMPTY `allowCredentials` (the browser offers every resident
20304
+ * passkey it holds for this RP) + `userVerification: 'required'`
20305
+ * (the passkey replaces both factors, so UV is mandatory).
20306
+ * The challenge is stored server-side, NOT bound to any user.
20307
+ * b. `finishDiscoverableAuthentication({response})` → the provider
20308
+ * resolves the credential by the response's credential id,
20309
+ * verifies the assertion against the stored challenge + that
20310
+ * credential's public key/counter, and returns the OWNING
20311
+ * `userId` — the caller (core auth router) mints the session.
20312
+ *
19913
20313
  * 3. Management:
19914
20314
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19915
20315
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19916
20316
  *
20317
+ * 4. Second-factor preference (opt-in, default OFF):
20318
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
20319
+ * demanded as a second factor after a password login ONLY when the
20320
+ * user explicitly opts in via `setSecondFactorPreference`.
20321
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
20322
+ * row ⇒ `enabled: false`).
20323
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
20324
+ * the providing addon beside its credentials.
20325
+ *
19917
20326
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19918
20327
  * the admin-ui composes the begin/finish round-trip and never exposes
19919
20328
  * the cap to non-admins.
@@ -19956,6 +20365,17 @@ method(object({
19956
20365
  }), object({ verified: boolean() }), {
19957
20366
  kind: "mutation",
19958
20367
  access: "view"
20368
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
20369
+ kind: "mutation",
20370
+ access: "view"
20371
+ }), method(object({
20372
+ /** AuthenticationResponseJSON from the browser. */
20373
+ response: record(string(), unknown()) }), object({
20374
+ verified: boolean(),
20375
+ userId: string().nullable()
20376
+ }), {
20377
+ kind: "mutation",
20378
+ access: "view"
19959
20379
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19960
20380
  userId: string(),
19961
20381
  credentialId: string()
@@ -19963,6 +20383,13 @@ method(object({
19963
20383
  kind: "mutation",
19964
20384
  auth: "admin",
19965
20385
  access: "delete"
20386
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
20387
+ userId: string(),
20388
+ enabled: boolean()
20389
+ }), object({ success: literal(true) }), {
20390
+ kind: "mutation",
20391
+ auth: "admin",
20392
+ access: "create"
19966
20393
  });
19967
20394
  /**
19968
20395
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -20020,9 +20447,10 @@ method(object({
20020
20447
  auth: "admin"
20021
20448
  });
20022
20449
  /**
20023
- * Optional client-side hints sent at session creation to help the
20024
- * provider pick the best native source. All fields are optional —
20025
- * a viewer that knows nothing still gets a sane default.
20450
+ * Optional client-side hints sent at session creation to help the provider
20451
+ * pick the best native source. All fields optional — a viewer that knows
20452
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
20453
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
20026
20454
  */
20027
20455
  var webrtcClientHintsSchema = object({
20028
20456
  viewportWidth: number().int().positive().optional(),
@@ -20033,22 +20461,6 @@ var webrtcClientHintsSchema = object({
20033
20461
  /** Hard tier override; takes precedence over scoring when registered. */
20034
20462
  prefersTier: string().optional()
20035
20463
  }).partial();
20036
- method(object({
20037
- streamId: string(),
20038
- sdpOffer: string()
20039
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
20040
- streamId: string(),
20041
- codec: string()
20042
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
20043
- streamId: string(),
20044
- hints: webrtcClientHintsSchema.optional()
20045
- }), object({
20046
- sessionId: string(),
20047
- sdpOffer: string()
20048
- }), { kind: "mutation" }), method(object({
20049
- sessionId: string(),
20050
- sdpAnswer: string()
20051
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
20052
20464
  /**
20053
20465
  * Discriminated target for a WebRTC session. The client sends this
20054
20466
  * structured object instead of building / parsing brokerId strings;
@@ -20779,7 +21191,17 @@ var FaceInfoSchema = object({
20779
21191
  recognizedIdentityId: string().optional(),
20780
21192
  identityName: string().optional(),
20781
21193
  assigned: boolean(),
20782
- base64: string().optional()
21194
+ base64: string().optional(),
21195
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
21196
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
21197
+ * legacy rows written before design B. */
21198
+ faceBbox: BoundingBoxSchema.optional(),
21199
+ /** Design B: MediaStore key of the track's native-resolution key frame.
21200
+ * Fetch the native JPEG via the event-media data-plane
21201
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
21202
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
21203
+ * back to the inline `base64` face crop. */
21204
+ keyFrameMediaKey: string().optional()
20783
21205
  });
20784
21206
  var FaceFilterEnum = _enum([
20785
21207
  "unassigned",
@@ -21476,6 +21898,16 @@ var TopologyCategorySchema = object({
21476
21898
  healthy: number(),
21477
21899
  addons: array(TopologyCategoryAddonSchema).readonly()
21478
21900
  });
21901
+ /**
21902
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
21903
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
21904
+ * version visibility for the Server management surface. Nullable: offline
21905
+ * rows and pre-phase-2 nodes report none.
21906
+ */
21907
+ var TopologyRootPackageSchema = object({
21908
+ name: string(),
21909
+ version: string()
21910
+ });
21479
21911
  var TopologyNodeSchema = object({
21480
21912
  id: string(),
21481
21913
  name: string(),
@@ -21499,7 +21931,8 @@ var TopologyNodeSchema = object({
21499
21931
  status: string()
21500
21932
  })).readonly(),
21501
21933
  processes: array(TopologyProcessSchema).readonly(),
21502
- categories: array(TopologyCategorySchema).readonly()
21934
+ categories: array(TopologyCategorySchema).readonly(),
21935
+ rootPackage: TopologyRootPackageSchema.nullable()
21503
21936
  });
21504
21937
  var CapUsageEdgeSchema = object({
21505
21938
  callerAddonId: string(),
@@ -24299,6 +24732,12 @@ Object.freeze({
24299
24732
  addonId: null,
24300
24733
  access: "create"
24301
24734
  },
24735
+ "loginMethod.getLoginMethods": {
24736
+ capName: "login-method",
24737
+ capScope: "system",
24738
+ addonId: null,
24739
+ access: "view"
24740
+ },
24302
24741
  "mediaPlayer.next": {
24303
24742
  capName: "media-player",
24304
24743
  capScope: "device",
@@ -24881,6 +25320,12 @@ Object.freeze({
24881
25320
  addonId: null,
24882
25321
  access: "view"
24883
25322
  },
25323
+ "pipelineAnalytics.getKeyEvents": {
25324
+ capName: "pipeline-analytics",
25325
+ capScope: "device",
25326
+ addonId: null,
25327
+ access: "view"
25328
+ },
24884
25329
  "pipelineAnalytics.getMotionEvents": {
24885
25330
  capName: "pipeline-analytics",
24886
25331
  capScope: "device",
@@ -24929,23 +25374,23 @@ Object.freeze({
24929
25374
  addonId: null,
24930
25375
  access: "create"
24931
25376
  },
24932
- "pipelineExecutor.deleteModel": {
25377
+ "pipelineExecutor.clearDeviceOverrides": {
24933
25378
  capName: "pipeline-executor",
24934
25379
  capScope: "system",
24935
25380
  addonId: null,
24936
25381
  access: "delete"
24937
25382
  },
24938
- "pipelineExecutor.deleteTemplate": {
25383
+ "pipelineExecutor.deleteModel": {
24939
25384
  capName: "pipeline-executor",
24940
25385
  capScope: "system",
24941
25386
  addonId: null,
24942
25387
  access: "delete"
24943
25388
  },
24944
- "pipelineExecutor.detect": {
25389
+ "pipelineExecutor.deleteTemplate": {
24945
25390
  capName: "pipeline-executor",
24946
25391
  capScope: "system",
24947
25392
  addonId: null,
24948
- access: "view"
25393
+ access: "delete"
24949
25394
  },
24950
25395
  "pipelineExecutor.downloadModel": {
24951
25396
  capName: "pipeline-executor",
@@ -25139,13 +25584,13 @@ Object.freeze({
25139
25584
  addonId: null,
25140
25585
  access: "create"
25141
25586
  },
25142
- "pipelineOrchestrator.assignAudio": {
25143
- capName: "pipeline-orchestrator",
25587
+ "pipelineExecutor.validatePipeline": {
25588
+ capName: "pipeline-executor",
25144
25589
  capScope: "system",
25145
25590
  addonId: null,
25146
- access: "create"
25591
+ access: "view"
25147
25592
  },
25148
- "pipelineOrchestrator.assignDecoder": {
25593
+ "pipelineOrchestrator.assignAudio": {
25149
25594
  capName: "pipeline-orchestrator",
25150
25595
  capScope: "system",
25151
25596
  addonId: null,
@@ -25229,19 +25674,13 @@ Object.freeze({
25229
25674
  addonId: null,
25230
25675
  access: "view"
25231
25676
  },
25232
- "pipelineOrchestrator.getDecoderAssignment": {
25233
- capName: "pipeline-orchestrator",
25234
- capScope: "system",
25235
- addonId: null,
25236
- access: "view"
25237
- },
25238
- "pipelineOrchestrator.getDecoderAssignments": {
25677
+ "pipelineOrchestrator.getGlobalMetrics": {
25239
25678
  capName: "pipeline-orchestrator",
25240
25679
  capScope: "system",
25241
25680
  addonId: null,
25242
25681
  access: "view"
25243
25682
  },
25244
- "pipelineOrchestrator.getGlobalMetrics": {
25683
+ "pipelineOrchestrator.getIngestOwner": {
25245
25684
  capName: "pipeline-orchestrator",
25246
25685
  capScope: "system",
25247
25686
  addonId: null,
@@ -25283,6 +25722,12 @@ Object.freeze({
25283
25722
  addonId: null,
25284
25723
  access: "delete"
25285
25724
  },
25725
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
25726
+ capName: "pipeline-orchestrator",
25727
+ capScope: "system",
25728
+ addonId: null,
25729
+ access: "delete"
25730
+ },
25286
25731
  "pipelineOrchestrator.resolvePipeline": {
25287
25732
  capName: "pipeline-orchestrator",
25288
25733
  capScope: "system",
@@ -25319,37 +25764,37 @@ Object.freeze({
25319
25764
  addonId: null,
25320
25765
  access: "create"
25321
25766
  },
25322
- "pipelineOrchestrator.setCameraPipelineForAgent": {
25767
+ "pipelineOrchestrator.setAgentReachableHost": {
25323
25768
  capName: "pipeline-orchestrator",
25324
25769
  capScope: "system",
25325
25770
  addonId: null,
25326
25771
  access: "create"
25327
25772
  },
25328
- "pipelineOrchestrator.setCameraStepOverride": {
25773
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
25329
25774
  capName: "pipeline-orchestrator",
25330
25775
  capScope: "system",
25331
25776
  addonId: null,
25332
25777
  access: "create"
25333
25778
  },
25334
- "pipelineOrchestrator.setCameraStepToggle": {
25779
+ "pipelineOrchestrator.setCameraStepOverride": {
25335
25780
  capName: "pipeline-orchestrator",
25336
25781
  capScope: "system",
25337
25782
  addonId: null,
25338
25783
  access: "create"
25339
25784
  },
25340
- "pipelineOrchestrator.setCapabilityBinding": {
25785
+ "pipelineOrchestrator.setCameraStepToggle": {
25341
25786
  capName: "pipeline-orchestrator",
25342
25787
  capScope: "system",
25343
25788
  addonId: null,
25344
25789
  access: "create"
25345
25790
  },
25346
- "pipelineOrchestrator.unassignAudio": {
25791
+ "pipelineOrchestrator.setCapabilityBinding": {
25347
25792
  capName: "pipeline-orchestrator",
25348
25793
  capScope: "system",
25349
25794
  addonId: null,
25350
25795
  access: "create"
25351
25796
  },
25352
- "pipelineOrchestrator.unassignDecoder": {
25797
+ "pipelineOrchestrator.unassignAudio": {
25353
25798
  capName: "pipeline-orchestrator",
25354
25799
  capScope: "system",
25355
25800
  addonId: null,
@@ -25409,12 +25854,24 @@ Object.freeze({
25409
25854
  addonId: null,
25410
25855
  access: "view"
25411
25856
  },
25857
+ "pipelineRunner.getNativeCrop": {
25858
+ capName: "pipeline-runner",
25859
+ capScope: "system",
25860
+ addonId: null,
25861
+ access: "view"
25862
+ },
25412
25863
  "pipelineRunner.reportMotion": {
25413
25864
  capName: "pipeline-runner",
25414
25865
  capScope: "system",
25415
25866
  addonId: null,
25416
25867
  access: "create"
25417
25868
  },
25869
+ "pipelineRunner.runDetailSubtree": {
25870
+ capName: "pipeline-runner",
25871
+ capScope: "system",
25872
+ addonId: null,
25873
+ access: "create"
25874
+ },
25418
25875
  "plateGallery.correctPlateText": {
25419
25876
  capName: "plate-gallery",
25420
25877
  capScope: "system",
@@ -25649,33 +26106,45 @@ Object.freeze({
25649
26106
  addonId: null,
25650
26107
  access: "create"
25651
26108
  },
25652
- "restreamer.getExposedResources": {
25653
- capName: "restreamer",
26109
+ "scriptRunner.run": {
26110
+ capName: "script-runner",
26111
+ capScope: "device",
26112
+ addonId: null,
26113
+ access: "create"
26114
+ },
26115
+ "scriptRunner.stop": {
26116
+ capName: "script-runner",
26117
+ capScope: "device",
26118
+ addonId: null,
26119
+ access: "create"
26120
+ },
26121
+ "serverManagement.applyServerUpdate": {
26122
+ capName: "server-management",
25654
26123
  capScope: "system",
25655
26124
  addonId: null,
25656
- access: "view"
26125
+ access: "create"
25657
26126
  },
25658
- "restreamer.registerDevice": {
25659
- capName: "restreamer",
26127
+ "serverManagement.checkServerUpdate": {
26128
+ capName: "server-management",
25660
26129
  capScope: "system",
25661
26130
  addonId: null,
25662
26131
  access: "create"
25663
26132
  },
25664
- "restreamer.unregisterDevice": {
25665
- capName: "restreamer",
26133
+ "serverManagement.getServerPackageStatus": {
26134
+ capName: "server-management",
25666
26135
  capScope: "system",
25667
26136
  addonId: null,
25668
- access: "delete"
26137
+ access: "view"
25669
26138
  },
25670
- "scriptRunner.run": {
25671
- capName: "script-runner",
25672
- capScope: "device",
26139
+ "serverManagement.restartServer": {
26140
+ capName: "server-management",
26141
+ capScope: "system",
25673
26142
  addonId: null,
25674
26143
  access: "create"
25675
26144
  },
25676
- "scriptRunner.stop": {
25677
- capName: "script-runner",
25678
- capScope: "device",
26145
+ "serverManagement.rollbackServerUpdate": {
26146
+ capName: "server-management",
26147
+ capScope: "system",
25679
26148
  addonId: null,
25680
26149
  access: "create"
25681
26150
  },
@@ -25763,23 +26232,17 @@ Object.freeze({
25763
26232
  addonId: null,
25764
26233
  access: "view"
25765
26234
  },
25766
- "snapshot.invalidateCache": {
26235
+ "snapshot.getSnapshotOverview": {
25767
26236
  capName: "snapshot",
25768
26237
  capScope: "device",
25769
26238
  addonId: null,
25770
- access: "create"
25771
- },
25772
- "snapshotProvider.getSnapshot": {
25773
- capName: "snapshot-provider",
25774
- capScope: "system",
25775
- addonId: null,
25776
26239
  access: "view"
25777
26240
  },
25778
- "snapshotProvider.supportsDevice": {
25779
- capName: "snapshot-provider",
25780
- capScope: "system",
26241
+ "snapshot.invalidateCache": {
26242
+ capName: "snapshot",
26243
+ capScope: "device",
25781
26244
  addonId: null,
25782
- access: "view"
26245
+ access: "create"
25783
26246
  },
25784
26247
  "ssoBridge.signBridgeToken": {
25785
26248
  capName: "sso-bridge",
@@ -26207,30 +26670,6 @@ Object.freeze({
26207
26670
  addonId: null,
26208
26671
  access: "view"
26209
26672
  },
26210
- "streamingEngine.getStreamUrl": {
26211
- capName: "streaming-engine",
26212
- capScope: "system",
26213
- addonId: null,
26214
- access: "view"
26215
- },
26216
- "streamingEngine.listStreams": {
26217
- capName: "streaming-engine",
26218
- capScope: "system",
26219
- addonId: null,
26220
- access: "view"
26221
- },
26222
- "streamingEngine.registerStream": {
26223
- capName: "streaming-engine",
26224
- capScope: "system",
26225
- addonId: null,
26226
- access: "create"
26227
- },
26228
- "streamingEngine.unregisterStream": {
26229
- capName: "streaming-engine",
26230
- capScope: "system",
26231
- addonId: null,
26232
- access: "delete"
26233
- },
26234
26673
  "streamParams.getConfigSchema": {
26235
26674
  capName: "stream-params",
26236
26675
  capScope: "device",
@@ -26477,6 +26916,12 @@ Object.freeze({
26477
26916
  addonId: null,
26478
26917
  access: "view"
26479
26918
  },
26919
+ "userPasskeys.beginDiscoverableAuthentication": {
26920
+ capName: "user-passkeys",
26921
+ capScope: "system",
26922
+ addonId: null,
26923
+ access: "view"
26924
+ },
26480
26925
  "userPasskeys.beginRegistration": {
26481
26926
  capName: "user-passkeys",
26482
26927
  capScope: "system",
@@ -26489,12 +26934,24 @@ Object.freeze({
26489
26934
  addonId: null,
26490
26935
  access: "view"
26491
26936
  },
26937
+ "userPasskeys.finishDiscoverableAuthentication": {
26938
+ capName: "user-passkeys",
26939
+ capScope: "system",
26940
+ addonId: null,
26941
+ access: "view"
26942
+ },
26492
26943
  "userPasskeys.finishRegistration": {
26493
26944
  capName: "user-passkeys",
26494
26945
  capScope: "system",
26495
26946
  addonId: null,
26496
26947
  access: "create"
26497
26948
  },
26949
+ "userPasskeys.getSecondFactorPreference": {
26950
+ capName: "user-passkeys",
26951
+ capScope: "system",
26952
+ addonId: null,
26953
+ access: "view"
26954
+ },
26498
26955
  "userPasskeys.listPasskeys": {
26499
26956
  capName: "user-passkeys",
26500
26957
  capScope: "system",
@@ -26507,6 +26964,12 @@ Object.freeze({
26507
26964
  addonId: null,
26508
26965
  access: "delete"
26509
26966
  },
26967
+ "userPasskeys.setSecondFactorPreference": {
26968
+ capName: "user-passkeys",
26969
+ capScope: "system",
26970
+ addonId: null,
26971
+ access: "create"
26972
+ },
26510
26973
  "vacuumControl.locate": {
26511
26974
  capName: "vacuum-control",
26512
26975
  capScope: "device",
@@ -26579,6 +27042,18 @@ Object.freeze({
26579
27042
  addonId: null,
26580
27043
  access: "view"
26581
27044
  },
27045
+ "viewerUi.getStaticDir": {
27046
+ capName: "viewer-ui",
27047
+ capScope: "system",
27048
+ addonId: null,
27049
+ access: "view"
27050
+ },
27051
+ "viewerUi.getVersion": {
27052
+ capName: "viewer-ui",
27053
+ capScope: "system",
27054
+ addonId: null,
27055
+ access: "view"
27056
+ },
26582
27057
  "waterHeater.setAway": {
26583
27058
  capName: "water-heater",
26584
27059
  capScope: "device",
@@ -26597,54 +27072,6 @@ Object.freeze({
26597
27072
  addonId: null,
26598
27073
  access: "create"
26599
27074
  },
26600
- "webrtc.closeSession": {
26601
- capName: "webrtc",
26602
- capScope: "system",
26603
- addonId: null,
26604
- access: "create"
26605
- },
26606
- "webrtc.createSession": {
26607
- capName: "webrtc",
26608
- capScope: "system",
26609
- addonId: null,
26610
- access: "create"
26611
- },
26612
- "webrtc.handleAnswer": {
26613
- capName: "webrtc",
26614
- capScope: "system",
26615
- addonId: null,
26616
- access: "create"
26617
- },
26618
- "webrtc.handleOffer": {
26619
- capName: "webrtc",
26620
- capScope: "system",
26621
- addonId: null,
26622
- access: "create"
26623
- },
26624
- "webrtc.hasAdaptiveBitrate": {
26625
- capName: "webrtc",
26626
- capScope: "system",
26627
- addonId: null,
26628
- access: "view"
26629
- },
26630
- "webrtc.registerStream": {
26631
- capName: "webrtc",
26632
- capScope: "system",
26633
- addonId: null,
26634
- access: "create"
26635
- },
26636
- "webrtc.supportsStream": {
26637
- capName: "webrtc",
26638
- capScope: "system",
26639
- addonId: null,
26640
- access: "view"
26641
- },
26642
- "webrtc.unregisterStream": {
26643
- capName: "webrtc",
26644
- capScope: "system",
26645
- addonId: null,
26646
- access: "delete"
26647
- },
26648
27075
  "webrtcSession.addIceCandidate": {
26649
27076
  capName: "webrtc-session",
26650
27077
  capScope: "device",