@camstack/addon-provider-unraid 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
@@ -4642,7 +4642,7 @@ function preprocess(fn, schema) {
4642
4642
  });
4643
4643
  }
4644
4644
  //#endregion
4645
- //#region ../types/dist/sleep-CZDdRBua.mjs
4645
+ //#region ../types/dist/sleep-Baang_XW.mjs
4646
4646
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4647
4647
  EventCategory["SystemBoot"] = "system.boot";
4648
4648
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4828,6 +4828,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4828
4828
  */
4829
4829
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4830
4830
  /**
4831
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4832
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4833
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4834
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4835
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4836
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4837
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4838
+ * topology change, so a dropped event self-heals on the next one (plus the
4839
+ * broker's long backstop reconcile query).
4840
+ */
4841
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4842
+ /**
4831
4843
  * Periodic snapshot of per-node pipeline-runner load
4832
4844
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4833
4845
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5351,10 +5363,6 @@ function hydrateField(field, values) {
5351
5363
  };
5352
5364
  }
5353
5365
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5354
- if (field.type === "password") return {
5355
- ...field,
5356
- value: ""
5357
- };
5358
5366
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5359
5367
  return {
5360
5368
  ...field,
@@ -6738,10 +6746,25 @@ function method(input, output, options) {
6738
6746
  timeoutMs: options?.timeoutMs
6739
6747
  };
6740
6748
  }
6749
+ /**
6750
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6751
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6752
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6753
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6754
+ */
6755
+ function systemMethod(input, output, options) {
6756
+ return {
6757
+ ...method(input, output, options),
6758
+ systemOnly: true
6759
+ };
6760
+ }
6741
6761
  /** Shorthand to define an event schema */
6742
6762
  function event(data) {
6743
6763
  return { data };
6744
6764
  }
6765
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6766
+ var VersionOutputSchema$1 = object({ version: string() });
6767
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6745
6768
  var StaticDirOutputSchema = object({ staticDir: string() });
6746
6769
  var VersionOutputSchema = object({ version: string() });
6747
6770
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6923,6 +6946,36 @@ var ModelFormatsSchema = object({
6923
6946
  tflite: ModelFormatEntrySchema.optional(),
6924
6947
  pt: ModelFormatEntrySchema.optional()
6925
6948
  });
6949
+ /**
6950
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6951
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6952
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6953
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6954
+ * resolution/download/persistence; this is a presentation overlay resolved back
6955
+ * to an `id`.
6956
+ */
6957
+ var ModelVariantGroupSchema = object({
6958
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6959
+ family: string(),
6960
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6961
+ tier: string(),
6962
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6963
+ precision: _enum(["fp32", "int8"]).optional(),
6964
+ /**
6965
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6966
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6967
+ * future performance variants plug into.
6968
+ */
6969
+ optimization: _enum(["standard", "fast"]).optional(),
6970
+ /**
6971
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6972
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6973
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6974
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6975
+ * the group so the selector can offer it as a variant axis.
6976
+ */
6977
+ resolution: number().int().positive().optional()
6978
+ });
6926
6979
  var ModelCatalogEntrySchema = object({
6927
6980
  id: string(),
6928
6981
  name: string(),
@@ -6952,7 +7005,43 @@ var ModelCatalogEntrySchema = object({
6952
7005
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6953
7006
  * Downloaded into the same modelsDir alongside the model file.
6954
7007
  */
6955
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7008
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7009
+ /**
7010
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7011
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7012
+ * model list and excluded from the auto format-default pick. Set on the
7013
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7014
+ * the active lineup stays the coherent curated ladder without deleting a
7015
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7016
+ * an explicit legacy id that has a build for the node's format.
7017
+ */
7018
+ legacy: boolean().optional(),
7019
+ /**
7020
+ * Measured quality/latency metadata — populated from the benchmark addon on
7021
+ * the real node classes. Absent = not yet measured (most entries today; the
7022
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7023
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7024
+ */
7025
+ metrics: object({
7026
+ map50: number().optional(),
7027
+ p95LatencyMs: record(string(), number()).optional()
7028
+ }).optional(),
7029
+ /**
7030
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7031
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7032
+ * the retraining addon and any future commercial distribution.
7033
+ */
7034
+ license: string().optional(),
7035
+ /**
7036
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7037
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7038
+ * of a family's sizes and quantizations collapse into one grouped picker
7039
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7040
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7041
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7042
+ * is a presentation overlay resolved back to an `id`.
7043
+ */
7044
+ group: ModelVariantGroupSchema.optional()
6956
7045
  });
6957
7046
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6958
7047
  format: literal("openvino"),
@@ -7013,8 +7102,8 @@ var RecordingModeSchema = _enum([
7013
7102
  "onAudioThreshold"
7014
7103
  ]);
7015
7104
  /**
7016
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7017
- * reads directly (never inferred from `rules`):
7105
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7106
+ * UI reads directly (never inferred from `rules`):
7018
7107
  * - `off` — not recording.
7019
7108
  * - `events` — record only around triggers (motion / audio threshold),
7020
7109
  * with pre/post-buffer.
@@ -9177,26 +9266,13 @@ onBrightnessChanged: { data: object({
9177
9266
  */
9178
9267
  runtimeState: BrightnessStatusSchema
9179
9268
  };
9269
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9180
9270
  var StreamFormatSchema = _enum([
9181
9271
  "webrtc",
9182
9272
  "hls",
9183
9273
  "mjpeg",
9184
9274
  "rtsp"
9185
9275
  ]);
9186
- var StreamInfoSchema = object({
9187
- streamId: string(),
9188
- format: StreamFormatSchema,
9189
- url: string().nullable(),
9190
- active: boolean()
9191
- });
9192
- method(object({
9193
- streamId: string(),
9194
- sourceUrl: string(),
9195
- codec: string().optional()
9196
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9197
- streamId: string(),
9198
- format: StreamFormatSchema
9199
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9200
9276
  var RtspRestreamEntrySchema = object({
9201
9277
  brokerId: string(),
9202
9278
  url: string(),
@@ -10064,37 +10140,7 @@ var consumablesCapability = {
10064
10140
  scope: "device",
10065
10141
  deviceNative: true,
10066
10142
  mode: "singleton",
10067
- deviceTypes: [
10068
- DeviceType.Camera,
10069
- DeviceType.Hub,
10070
- DeviceType.Light,
10071
- DeviceType.Siren,
10072
- DeviceType.Switch,
10073
- DeviceType.Sensor,
10074
- DeviceType.Thermostat,
10075
- DeviceType.Button,
10076
- DeviceType.EventEmitter,
10077
- DeviceType.Update,
10078
- DeviceType.Generic,
10079
- DeviceType.Notifier,
10080
- DeviceType.Script,
10081
- DeviceType.Automation,
10082
- DeviceType.Lock,
10083
- DeviceType.Cover,
10084
- DeviceType.Valve,
10085
- DeviceType.Humidifier,
10086
- DeviceType.WaterHeater,
10087
- DeviceType.Fan,
10088
- DeviceType.MediaPlayer,
10089
- DeviceType.AlarmPanel,
10090
- DeviceType.Control,
10091
- DeviceType.Presence,
10092
- DeviceType.Weather,
10093
- DeviceType.Vacuum,
10094
- DeviceType.LawnMower,
10095
- DeviceType.Container,
10096
- DeviceType.Image
10097
- ],
10143
+ deviceTypes: Object.values(DeviceType),
10098
10144
  deviceConfig: { ui: {
10099
10145
  kind: "widget",
10100
10146
  widgetId: "host/consumables-panel",
@@ -11552,7 +11598,7 @@ var BoundingBoxSchema = object({
11552
11598
  w: number(),
11553
11599
  h: number()
11554
11600
  });
11555
- var SpatialDetectionSchema = object({
11601
+ object({
11556
11602
  class: string(),
11557
11603
  originalClass: string(),
11558
11604
  score: number(),
@@ -11687,7 +11733,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11687
11733
  enabled: boolean(),
11688
11734
  modelId: string(),
11689
11735
  children: array(PipelineDefaultStepSchema).readonly(),
11690
- engine: PipelineEngineChoiceSchema.optional(),
11691
11736
  group: string().optional(),
11692
11737
  settings: record(string(), unknown()).optional()
11693
11738
  }));
@@ -11712,7 +11757,9 @@ var PipelineModelOptionSchema = object({
11712
11757
  formats: record(string(), object({
11713
11758
  downloaded: boolean(),
11714
11759
  sizeMB: number()
11715
- }))
11760
+ })),
11761
+ group: ModelVariantGroupSchema.optional(),
11762
+ legacy: boolean().optional()
11716
11763
  });
11717
11764
  var ConfigFieldBridge = custom();
11718
11765
  var PipelineAddonSchemaSchema = object({
@@ -11726,6 +11773,7 @@ var PipelineAddonSchemaSchema = object({
11726
11773
  defaultModelId: string(),
11727
11774
  defaultModelIdByFormat: record(string(), string()).optional(),
11728
11775
  enabledByDefault: boolean().optional(),
11776
+ backfillIntoExistingOverrides: boolean().optional(),
11729
11777
  defaultConfidence: number(),
11730
11778
  group: string().optional(),
11731
11779
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11742,11 +11790,6 @@ var PipelineSchemaSchema = object({
11742
11790
  selectedEngine: PipelineEngineChoiceSchema,
11743
11791
  slots: array(PipelineSlotSchemaSchema).readonly()
11744
11792
  });
11745
- var DetectorOutputSchema = object({
11746
- detections: array(SpatialDetectionSchema).readonly(),
11747
- inferenceMs: number(),
11748
- modelId: string()
11749
- });
11750
11793
  var EngineProvisioningSchema = object({
11751
11794
  runtimeId: _enum([
11752
11795
  "onnx",
@@ -11763,15 +11806,42 @@ var EngineProvisioningSchema = object({
11763
11806
  ]),
11764
11807
  progress: number().optional(),
11765
11808
  error: string().optional(),
11766
- nextRetryAt: number().optional()
11809
+ nextRetryAt: number().optional(),
11810
+ /**
11811
+ * Gate A (config-correctness gate at engine change): human-readable
11812
+ * config issues surfaced EAGERLY when the node's engine changes — model
11813
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11814
+ * has a <format> build"). Additive/optional: informational only, never
11815
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11816
+ * Absent/empty when the node-default tree resolves cleanly.
11817
+ */
11818
+ configIssues: array(string()).optional()
11767
11819
  });
11768
11820
  var PipelineStepInputSchema = lazy(() => object({
11769
11821
  addonId: string(),
11770
- modelId: string(),
11822
+ modelId: string().optional(),
11771
11823
  enabled: boolean().default(true),
11772
11824
  children: array(PipelineStepInputSchema).optional(),
11773
11825
  settings: record(string(), unknown()).optional()
11774
11826
  }));
11827
+ var ModelSubstitutionSchema = object({
11828
+ addonId: string(),
11829
+ chosen: string(),
11830
+ running: string(),
11831
+ format: string()
11832
+ });
11833
+ var PipelineValidationIssueSchema = object({
11834
+ addonId: string(),
11835
+ kind: _enum(["unknown-addon", "no-format-build"]),
11836
+ detail: string()
11837
+ });
11838
+ var PipelineValidationResultSchema = object({
11839
+ ok: boolean(),
11840
+ issues: array(PipelineValidationIssueSchema).readonly(),
11841
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11842
+ /** The node's `currentEngine.format` this validation ran against. */
11843
+ format: string()
11844
+ });
11775
11845
  var ReferenceImageEntrySchema = object({
11776
11846
  filename: string(),
11777
11847
  stepIds: array(string()).readonly().optional()
@@ -11842,7 +11912,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11842
11912
  })) }), object({ success: literal(true) }), {
11843
11913
  kind: "mutation",
11844
11914
  auth: "admin"
11845
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11915
+ }), method(object({ nodeId: string() }), object({
11916
+ success: literal(true),
11917
+ clearedDevices: number()
11918
+ }), {
11919
+ kind: "mutation",
11920
+ auth: "admin"
11921
+ }), 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({
11846
11922
  name: string(),
11847
11923
  steps: array(PipelineTemplateStepSchema).readonly(),
11848
11924
  engine: PipelineEngineChoiceSchema
@@ -11859,10 +11935,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11859
11935
  modelId: string(),
11860
11936
  format: ModelFormatSchema$1
11861
11937
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11862
- addonId: string(),
11863
- frame: FrameInputSchema,
11864
- config: record(string(), unknown()).optional()
11865
- }), DetectorOutputSchema), method(object({
11866
11938
  engine: PipelineEngineChoiceSchema.optional(),
11867
11939
  steps: array(PipelineStepInputSchema).min(1),
11868
11940
  frame: FrameInputSchema.optional(),
@@ -11883,7 +11955,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11883
11955
  image: _instanceof(Uint8Array).optional(),
11884
11956
  referenceImage: string().optional(),
11885
11957
  deviceId: number().optional(),
11886
- sessionId: string().optional()
11958
+ sessionId: string().optional(),
11959
+ /**
11960
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
11961
+ * reference-image, and detail-subtree calls. 'frame' is the live
11962
+ * per-frame dispatch: ONLY root-plane steps run; crop children
11963
+ * (inputClasses ≠ null) are skipped and served per-track via
11964
+ * pipelineRunner.runDetailSubtree (two-plane design).
11965
+ */
11966
+ plane: _enum(["full", "frame"]).optional()
11887
11967
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
11888
11968
  engine: PipelineEngineChoiceSchema.optional(),
11889
11969
  steps: array(PipelineStepInputSchema).min(1),
@@ -12041,6 +12121,47 @@ var zonesCapability = {
12041
12121
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12042
12122
  };
12043
12123
  /**
12124
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12125
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12126
+ * so the caller supplies only the detection-res bbox divided by the detection
12127
+ * dims — no native resolution to plumb.
12128
+ */
12129
+ var NativeCropBboxSchema = object({
12130
+ x: number(),
12131
+ y: number(),
12132
+ w: number(),
12133
+ h: number()
12134
+ });
12135
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12136
+ var NativeCropResultSchema = object({
12137
+ /** Packed rgb (24-bit) pixels of the crop. */
12138
+ bytes: _instanceof(Uint8Array),
12139
+ width: number().int().positive(),
12140
+ height: number().int().positive()
12141
+ });
12142
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12143
+ * originating detection, in FRAME-space coordinates. Reuses
12144
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12145
+ * the coordinates are frame-space rather than getNativeCrop's
12146
+ * normalized [0,1] convention). */
12147
+ var DetailParentSchema = object({
12148
+ bbox: NativeCropBboxSchema,
12149
+ className: string()
12150
+ });
12151
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12152
+ * or refined detection produced by running the crop-subtree on a
12153
+ * single tracked detection. */
12154
+ var DetailResultSchema = object({
12155
+ stepId: string(),
12156
+ className: string(),
12157
+ score: number(),
12158
+ /** FRAME-space bbox (already mapped back from crop space). */
12159
+ bbox: NativeCropBboxSchema.optional(),
12160
+ embedding: string().optional(),
12161
+ label: string().optional(),
12162
+ alignedCropJpeg: string().optional()
12163
+ });
12164
+ /**
12044
12165
  * Per-camera tunable ranges + defaults. Single source of truth used
12045
12166
  * by both the Zod data schema (validation + default fallback) and
12046
12167
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12135,6 +12256,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12135
12256
  kind: literal("remote-restream"),
12136
12257
  /** The camera's source-owner node (slice 1: always the hub). */
12137
12258
  ownerNodeId: string(),
12259
+ /**
12260
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12261
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12262
+ * dials THIS host for the owner's restream, in preference to the
12263
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12264
+ */
12265
+ ownerReachableHost: string().optional(),
12138
12266
  /** Operator override for the owner host the runner dials. */
12139
12267
  hubHostnameOverride: string().optional()
12140
12268
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12143,13 +12271,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12143
12271
  * specific runner instance via `attachCamera`. Carries everything the
12144
12272
  * runner needs to subscribe to the local broker and execute inference.
12145
12273
  *
12146
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12147
- * optional `audio`) travels with the attach payload. The runner keeps it
12148
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12149
- * restart the orchestrator re-sends the latest snapshot.
12150
- *
12151
- * `engine`/`steps`/`audio` are optional during the additive migration
12152
- * window; once orchestrator + UI are migrated they become required.
12274
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12275
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12276
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12277
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12278
+ * node-local, resolved by the executing runner at dispatch time.
12153
12279
  */
12154
12280
  var RunnerCameraConfigSchema = object({
12155
12281
  deviceId: number(),
@@ -12200,14 +12326,11 @@ var RunnerCameraConfigSchema = object({
12200
12326
  */
12201
12327
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12202
12328
  pipelineEnabled: boolean().default(true),
12203
- /** Engine choice for video steps (runtime+backend+format). */
12204
- engine: PipelineEngineChoiceSchema.optional(),
12205
12329
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12206
12330
  steps: array(PipelineStepInputSchema).readonly().optional(),
12207
12331
  /** Audio classification branch. `enabled:false` disables, null skips. */
12208
12332
  audio: object({
12209
- engine: PipelineEngineChoiceSchema,
12210
- modelId: string(),
12333
+ modelId: string().optional(),
12211
12334
  enabled: boolean()
12212
12335
  }).nullable().optional(),
12213
12336
  /**
@@ -12294,7 +12417,17 @@ var RunnerLocalMetricsSchema = object({
12294
12417
  avgInferenceTimeMs: number(),
12295
12418
  queueDepth: number()
12296
12419
  });
12297
- 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());
12420
+ 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({
12421
+ handle: FrameHandleSchema,
12422
+ bbox: NativeCropBboxSchema,
12423
+ maxWidth: number().int().positive().optional()
12424
+ }), NativeCropResultSchema.nullable()), method(object({
12425
+ deviceId: number(),
12426
+ frameHandle: FrameHandleSchema.optional(),
12427
+ cropJpeg: string().optional(),
12428
+ parent: DetailParentSchema,
12429
+ steps: array(string()).optional()
12430
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12298
12431
  /**
12299
12432
  * Hardware / firmware motion sensor cap — binary detected state plus
12300
12433
  * a timestamp of the last observation. Distinct from
@@ -15225,7 +15358,9 @@ var AddonPageDeclarationSchema$1 = object({
15225
15358
  icon: string(),
15226
15359
  path: string(),
15227
15360
  remoteName: string(),
15228
- bundle: string()
15361
+ bundle: string(),
15362
+ section: string().optional(),
15363
+ sectionLabel: string().optional()
15229
15364
  });
15230
15365
  var AddonPageInfoSchema = object({
15231
15366
  addonId: string(),
@@ -15265,7 +15400,18 @@ var AddonPageDeclarationSchema = object({
15265
15400
  * the static-file route can compute an mtime-based cache-buster URL
15266
15401
  * without a separate filesystem stat.
15267
15402
  */
15268
- bundle: string()
15403
+ bundle: string(),
15404
+ /**
15405
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15406
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15407
+ * Any OTHER string creates (or joins) a custom section rendered after
15408
+ * the built-in groups; its label comes from `sectionLabel` (first
15409
+ * declaration wins), falling back to the id. Absent → the legacy
15410
+ * "Addon Pages" group.
15411
+ */
15412
+ section: string().optional(),
15413
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15414
+ sectionLabel: string().optional()
15269
15415
  });
15270
15416
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15271
15417
  var AddonHttpRouteSchema = object({
@@ -15481,6 +15627,17 @@ var WidgetMetadataSchema = object({
15481
15627
  deviceContext: boolean().default(false),
15482
15628
  integrationContext: boolean().default(false)
15483
15629
  }),
15630
+ /**
15631
+ * Loadable BEFORE authentication. The normal widget registry listing
15632
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15633
+ * (the login page) cannot discover a widget through it. A widget that
15634
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15635
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15636
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15637
+ * than the authenticated registry, and its bundle is served by the
15638
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15639
+ */
15640
+ preAuth: boolean().optional().default(false),
15484
15641
  /** Dashboard placement HINTS (operator can override per instance). */
15485
15642
  defaultSize: WidgetSizeEnum.default("md"),
15486
15643
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15782,6 +15939,66 @@ method(object({
15782
15939
  password: string()
15783
15940
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15784
15941
  /**
15942
+ * `login-method` — collection cap through which auth addons contribute
15943
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15944
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15945
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15946
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15947
+ * procedure aggregates them for the unauthenticated login page.
15948
+ *
15949
+ * A contribution is a discriminated union on `kind`:
15950
+ *
15951
+ * - `redirect` — a declarative button. The login page renders a generic
15952
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15953
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15954
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15955
+ * login page needs NO change.
15956
+ *
15957
+ * - `widget` — a Module-Federation widget the login page mounts (via
15958
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15959
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15960
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15961
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15962
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15963
+ *
15964
+ * Every contribution carries a `stage`:
15965
+ * - `primary` — shown on the first credentials screen (OIDC /
15966
+ * magic-link buttons; a future usernameless passkey).
15967
+ * - `second-factor` — shown AFTER the password leg, gated on the
15968
+ * returned `factors` (passkey-as-2FA today).
15969
+ *
15970
+ * `mount: skip` — the cap is read server-side by the core auth router
15971
+ * (`registry.getCollection('login-method')`), never mounted as its own
15972
+ * tRPC router.
15973
+ */
15974
+ /** When a login method renders in the two-phase login flow. */
15975
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15976
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15977
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15978
+ kind: literal("redirect"),
15979
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15980
+ id: string(),
15981
+ /** Operator-facing button label. */
15982
+ label: string(),
15983
+ /** lucide-react icon name. */
15984
+ icon: string().optional(),
15985
+ /** Addon-owned HTTP route the button navigates to (GET). */
15986
+ startUrl: string(),
15987
+ stage: LoginStageEnum
15988
+ }), object({
15989
+ kind: literal("widget"),
15990
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15991
+ id: string(),
15992
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15993
+ addonId: string(),
15994
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15995
+ bundle: string(),
15996
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15997
+ remote: WidgetRemoteSchema,
15998
+ stage: LoginStageEnum
15999
+ })]);
16000
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16001
+ /**
15785
16002
  * Orchestrator-side destination metadata. The orchestrator computes
15786
16003
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15787
16004
  * (admin UI, restore flow) see one canonical key.
@@ -17885,7 +18102,17 @@ var TrackSchema = object({
17885
18102
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17886
18103
  totalDistance: number(),
17887
18104
  state: TrackStateSchema,
17888
- active: boolean()
18105
+ active: boolean(),
18106
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18107
+ * track expiry, recomputed on late label). Absent on legacy rows written
18108
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18109
+ importance: number().optional(),
18110
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18111
+ * "best" frame). Absent when the track produced no object events. */
18112
+ bestEventId: string().optional(),
18113
+ /** Tag of the importance sub-signal that dominated the score
18114
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18115
+ importanceReason: string().optional()
17889
18116
  });
17890
18117
  var BaseEventFields = {
17891
18118
  id: string(),
@@ -17950,8 +18177,18 @@ var ObjectEventSchema = object({
17950
18177
  frameHeight: number().optional(),
17951
18178
  /** MediaStore key for the crop attached to this event (if any). */
17952
18179
  mediaKey: string().optional(),
18180
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18181
+ * best-detection full frame). Resolve via the event-media data-plane
18182
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18183
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18184
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18185
+ keyFrameMediaKey: string().optional(),
17953
18186
  /** Populated by B5 (recording playback URL for this event). */
17954
- mediaUrl: string().optional()
18187
+ mediaUrl: string().optional(),
18188
+ /** The parent track's key-event importance [0,1], propagated to every object
18189
+ * event of the track (so an event row can be sorted by importance without a
18190
+ * track join). Absent on legacy rows / before the track was scored. */
18191
+ importance: number().optional()
17955
18192
  });
17956
18193
  var AudioEventSchema = object({
17957
18194
  ...BaseEventFields,
@@ -17975,7 +18212,8 @@ var MediaFileKindEnum = _enum([
17975
18212
  "fullFrame",
17976
18213
  "fullFrameBoxed",
17977
18214
  "faceCrop",
17978
- "plateCrop"
18215
+ "plateCrop",
18216
+ "keyFrame"
17979
18217
  ]);
17980
18218
  var MediaFileSchema = object({
17981
18219
  key: string(),
@@ -17996,6 +18234,32 @@ var DeviceEventQueryInput = object({
17996
18234
  projection: _enum(["full", "slim"]).optional()
17997
18235
  });
17998
18236
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18237
+ var KeyEventQueryInput = object({
18238
+ deviceId: number(),
18239
+ /** Window lower bound (track firstSeen ≥ since). */
18240
+ since: number(),
18241
+ /** Window upper bound (track firstSeen ≤ until). */
18242
+ until: number(),
18243
+ limit: number().int().min(1).max(200).default(50),
18244
+ /** Drop tracks scoring below this importance. */
18245
+ minImportance: number().min(0).max(1).optional(),
18246
+ /** Restrict to a single class (e.g. 'person'). */
18247
+ classFilter: string().optional()
18248
+ });
18249
+ var KeyEventSchema = object({
18250
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18251
+ id: string(),
18252
+ trackId: string(),
18253
+ /** Track start time (firstSeen). */
18254
+ timestamp: number(),
18255
+ className: string(),
18256
+ label: string().optional(),
18257
+ importance: number(),
18258
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18259
+ bestEventId: string(),
18260
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18261
+ windowMs: number().optional()
18262
+ });
17999
18263
  var TrackedDetectionSchema = object({
18000
18264
  trackId: string(),
18001
18265
  className: string(),
@@ -18025,7 +18289,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18025
18289
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18026
18290
  kind: "mutation",
18027
18291
  auth: "admin"
18028
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18292
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18029
18293
  deviceId: number(),
18030
18294
  since: number(),
18031
18295
  until: number(),
@@ -18070,11 +18334,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18070
18334
  timestamp: number()
18071
18335
  });
18072
18336
  var CameraPipelineConfigSchema = object({
18073
- engine: PipelineEngineChoiceSchema,
18337
+ engine: PipelineEngineChoiceSchema.optional(),
18074
18338
  steps: array(PipelineStepInputSchema).readonly(),
18075
18339
  audio: object({
18076
- engine: PipelineEngineChoiceSchema,
18077
- modelId: string(),
18340
+ engine: PipelineEngineChoiceSchema.optional(),
18341
+ modelId: string().optional(),
18078
18342
  enabled: boolean(),
18079
18343
  settings: record(string(), unknown()).readonly().optional()
18080
18344
  }).nullable().optional()
@@ -18089,7 +18353,7 @@ var PipelineTemplateSchema = object({
18089
18353
  });
18090
18354
  var AgentAddonConfigSchema = object({
18091
18355
  enabled: boolean(),
18092
- modelId: string(),
18356
+ modelId: string().optional(),
18093
18357
  settings: record(string(), unknown()).readonly()
18094
18358
  });
18095
18359
  var AgentPipelineSettingsSchema = object({
@@ -18099,12 +18363,25 @@ var AgentPipelineSettingsSchema = object({
18099
18363
  detectWeight: number().positive().optional(),
18100
18364
  /** Node is eligible to run the detection pipeline (decode + inference). */
18101
18365
  detect: boolean().optional(),
18102
- /** Node is eligible to host decoder sessions. */
18366
+ /**
18367
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18368
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18369
+ * the schema ONLY so persisted stores written before the removal still
18370
+ * parse — no code reads it and no write path emits it.
18371
+ */
18103
18372
  decode: boolean().optional(),
18104
18373
  /** Node is eligible to run audio-analyzer sessions. */
18105
18374
  audio: boolean().optional(),
18106
18375
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18107
- ingest: boolean().optional()
18376
+ ingest: boolean().optional(),
18377
+ /**
18378
+ * Operator override for the LAN host a cross-node decoder dials to reach
18379
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18380
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18381
+ * it already uses to reach the hub). Set this only when the auto-detected
18382
+ * address is wrong (multi-homed host, NAT, custom interface).
18383
+ */
18384
+ reachableHost: string().optional()
18108
18385
  });
18109
18386
  var CameraPipelineForAgentSchema = object({
18110
18387
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18152,25 +18429,6 @@ var PipelineAssignmentSchema = object({
18152
18429
  assignedAt: number()
18153
18430
  });
18154
18431
  /**
18155
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18156
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18157
- * → co-located with pipeline → capacity).
18158
- */
18159
- var DecoderAssignmentSchema = object({
18160
- deviceId: number(),
18161
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18162
- decoderNodeId: string(),
18163
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18164
- pinned: boolean(),
18165
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18166
- reason: _enum([
18167
- "manual",
18168
- "co-located",
18169
- "capacity",
18170
- "hardware-affinity"
18171
- ])
18172
- });
18173
- /**
18174
18432
  * Per-agent load summary surfaced to the load balancer + dashboards.
18175
18433
  * Aggregated from each runner's `getLocalLoad` cap call.
18176
18434
  */
@@ -18210,6 +18468,15 @@ var GlobalMetricsSchema = object({
18210
18468
  * capability providers.
18211
18469
  */
18212
18470
  var CapabilityBindingsSchema = record(string(), string());
18471
+ /**
18472
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18473
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18474
+ */
18475
+ var IngestOwnerSchema = object({
18476
+ ownerNodeId: string(),
18477
+ reachableHost: string().optional(),
18478
+ configIssue: string().optional()
18479
+ });
18213
18480
  /** Source block — always present; derives from the stream catalog. */
18214
18481
  var CameraSourceStatusSchema = object({ streams: array(object({
18215
18482
  camStreamId: string(),
@@ -18224,6 +18491,14 @@ var CameraAssignmentStatusSchema = object({
18224
18491
  detectionNodeId: string().nullable(),
18225
18492
  decoderNodeId: string().nullable(),
18226
18493
  audioNodeId: string().nullable(),
18494
+ /**
18495
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18496
+ * hosts the broker/restream) — the cluster ingest owner today
18497
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18498
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18499
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18500
+ */
18501
+ sourceNodeId: string().nullable(),
18227
18502
  pinned: object({
18228
18503
  detection: boolean(),
18229
18504
  decoder: boolean(),
@@ -18356,16 +18631,7 @@ method(object({
18356
18631
  }), object({ success: literal(true) }), {
18357
18632
  kind: "mutation",
18358
18633
  auth: "admin"
18359
- }), method(object({
18360
- deviceId: number(),
18361
- nodeId: string()
18362
- }), _void(), {
18363
- kind: "mutation",
18364
- auth: "admin"
18365
- }), method(object({ deviceId: number() }), _void(), {
18366
- kind: "mutation",
18367
- auth: "admin"
18368
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18634
+ }), method(_void(), IngestOwnerSchema), method(object({
18369
18635
  deviceId: number(),
18370
18636
  nodeId: string()
18371
18637
  }), object({ success: literal(true) }), {
@@ -18386,10 +18652,7 @@ method(object({
18386
18652
  nodeId: string(),
18387
18653
  pinned: boolean(),
18388
18654
  assignedAt: number()
18389
- }))), method(object({
18390
- deviceId: number(),
18391
- pipelineNodeId: string().optional()
18392
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18655
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18393
18656
  nodeId: string(),
18394
18657
  settings: AgentPipelineSettingsSchema
18395
18658
  })).readonly()), method(object({
@@ -18419,12 +18682,26 @@ method(object({
18419
18682
  }), method(object({
18420
18683
  agentNodeId: string(),
18421
18684
  detect: boolean().nullable().optional(),
18422
- decode: boolean().nullable().optional(),
18423
18685
  audio: boolean().nullable().optional(),
18424
18686
  ingest: boolean().nullable().optional()
18425
18687
  }), object({ success: literal(true) }), {
18426
18688
  kind: "mutation",
18427
18689
  auth: "admin"
18690
+ }), method(object({
18691
+ agentNodeId: string(),
18692
+ reachableHost: string().nullable()
18693
+ }), object({ success: literal(true) }), {
18694
+ kind: "mutation",
18695
+ auth: "admin"
18696
+ }), method(object({ agentNodeId: string() }), object({
18697
+ success: literal(true),
18698
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18699
+ effectiveModelId: string().nullable(),
18700
+ /** Number of cameras whose node-scoped overrides were cleared. */
18701
+ clearedCameraOverrides: number()
18702
+ }), {
18703
+ kind: "mutation",
18704
+ auth: "admin"
18428
18705
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18429
18706
  deviceId: number(),
18430
18707
  addonId: string(),
@@ -18469,22 +18746,131 @@ method(object({
18469
18746
  kind: "mutation",
18470
18747
  auth: "admin"
18471
18748
  });
18472
- var RegisteredStreamSchema = object({
18473
- streamId: string(),
18474
- label: string().optional(),
18475
- codec: string(),
18476
- type: _enum(["video", "audio"]),
18477
- sourceUrl: string()
18749
+ /**
18750
+ * server-management — per-NODE singleton capability for a node's ROOT
18751
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18752
+ * agents).
18753
+ *
18754
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18755
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18756
+ * version describes the node. Updates install into
18757
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18758
+ * starter (probation boot + auto-rollback to N-1).
18759
+ *
18760
+ * Providers:
18761
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18762
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18763
+ * unpinned calls.
18764
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18765
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18766
+ * `$hub.registerNode` manifest.
18767
+ *
18768
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18769
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18770
+ * SDK) routes the call to that node's provider via the standard remote
18771
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18772
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18773
+ *
18774
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18775
+ */
18776
+ /**
18777
+ * Where the running hub's code was loaded from:
18778
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18779
+ * plain resolution and runtime updates are refused.
18780
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18781
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18782
+ */
18783
+ var ServerBootModeSchema = _enum([
18784
+ "workspace",
18785
+ "baked",
18786
+ "data-root"
18787
+ ]);
18788
+ /**
18789
+ * Update lifecycle state:
18790
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18791
+ * - `pending-restart` — a version is staged and the node has NOT yet
18792
+ * restarted onto it (still running the OLD version).
18793
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18794
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18795
+ * Apply/rollback are refused in this state and the node must NOT be
18796
+ * manually restarted, or the probation boot auto-rolls-back.
18797
+ */
18798
+ var ServerUpdateStateSchema = _enum([
18799
+ "idle",
18800
+ "checking",
18801
+ "staging",
18802
+ "pending-restart",
18803
+ "awaiting-confirmation"
18804
+ ]);
18805
+ var ServerRollbackInfoSchema = object({
18806
+ /** The version that failed (or was manually rolled back). */
18807
+ fromVersion: string(),
18808
+ /** The version rolled back to; null = the baked seed. */
18809
+ toVersion: string().nullable(),
18810
+ atMs: number(),
18811
+ reason: string()
18478
18812
  });
18479
- var ExposedResourceSchema = object({
18480
- streamId: string(),
18481
- format: string(),
18482
- value: string()
18813
+ var ServerPackageStatusSchema = object({
18814
+ /** Root package name (`@camstack/server` on the hub). */
18815
+ packageName: string(),
18816
+ /** Version of the code the running process ACTUALLY loaded. */
18817
+ runningVersion: string().nullable(),
18818
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18819
+ nodeRuntimeVersion: string().nullable(),
18820
+ /** Active data-dir root version; null when booted from seed/workspace. */
18821
+ activeVersion: string().nullable(),
18822
+ /** N-1 version kept for rollback; null when no previous version exists. */
18823
+ previousVersion: string().nullable(),
18824
+ /** Version of the immutable baked seed closure (image fallback). */
18825
+ seedVersion: string().nullable(),
18826
+ /** Latest registry version from the most recent check (null = never checked). */
18827
+ latestVersion: string().nullable(),
18828
+ updateAvailable: boolean(),
18829
+ bootMode: ServerBootModeSchema,
18830
+ updateState: ServerUpdateStateSchema,
18831
+ /** Version staged + awaiting its probation boot, when one is pending. */
18832
+ pendingVersion: string().nullable(),
18833
+ /** Set when the last freshly-activated version failed its boot health-check. */
18834
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18835
+ /**
18836
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18837
+ * hub is running from the baked seed (or workspace) while installed data-dir
18838
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18839
+ */
18840
+ stateFileCorrupt: boolean(),
18841
+ lastCheckedAtMs: number().nullable()
18842
+ });
18843
+ var ServerUpdateCheckResultSchema = object({
18844
+ packageName: string(),
18845
+ runningVersion: string().nullable(),
18846
+ latestVersion: string().nullable(),
18847
+ updateAvailable: boolean(),
18848
+ checkedAtMs: number(),
18849
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18850
+ error: string().nullable()
18851
+ });
18852
+ var ServerUpdateActionResultSchema = object({
18853
+ accepted: boolean(),
18854
+ targetVersion: string().nullable(),
18855
+ /** True when a graceful restart was scheduled to apply the change. */
18856
+ restarting: boolean(),
18857
+ message: string()
18858
+ });
18859
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18860
+ kind: "mutation",
18861
+ auth: "admin"
18862
+ }), method(object({
18863
+ /** Explicit target version; omitted = latest from the registry. */
18864
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18865
+ kind: "mutation",
18866
+ auth: "admin"
18867
+ }), method(_void(), ServerUpdateActionResultSchema, {
18868
+ kind: "mutation",
18869
+ auth: "admin"
18870
+ }), method(_void(), ServerUpdateActionResultSchema, {
18871
+ kind: "mutation",
18872
+ auth: "admin"
18483
18873
  });
18484
- method(object({
18485
- deviceId: number(),
18486
- streams: array(RegisteredStreamSchema).readonly()
18487
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18488
18874
  /**
18489
18875
  * Query filter for settings-store collections.
18490
18876
  */
@@ -18637,9 +19023,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18637
19023
  /**
18638
19024
  * A single device snapshot returned as base64 JPEG/PNG.
18639
19025
  *
18640
- * Shared with the `snapshot-provider` collection cap the orchestrator
18641
- * receives the same shape from each native provider and from the
18642
- * broker-based fallback.
19026
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19027
+ * the device-native provider (onboard capture) or from the stream-broker
19028
+ * prebuffer fallback.
18643
19029
  */
18644
19030
  var SnapshotImageSchema = object({
18645
19031
  base64: string(),
@@ -18670,11 +19056,12 @@ DeviceType.Camera, method(object({
18670
19056
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18671
19057
  kind: "mutation",
18672
19058
  auth: "admin"
18673
- });
18674
- method(object({ deviceId: number() }), boolean()), method(object({
19059
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18675
19060
  deviceId: number(),
18676
- streamId: string().optional()
18677
- }), SnapshotImageSchema.nullable());
19061
+ lastCapturedAt: number().nullable(),
19062
+ cacheAgeMs: number().nullable(),
19063
+ etag: string().nullable()
19064
+ })));
18678
19065
  /**
18679
19066
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18680
19067
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18925,10 +19312,32 @@ method(_void(), array(TurnServerSchema).readonly());
18925
19312
  * b. `finishAuthentication({userId, response})` → server verifies
18926
19313
  * the assertion, bumps the credential counter, returns ok.
18927
19314
  *
19315
+ * 2b. Usernameless (discoverable-credential) authentication — the
19316
+ * passkey IS the primary factor, no password leg:
19317
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19318
+ * EMPTY `allowCredentials` (the browser offers every resident
19319
+ * passkey it holds for this RP) + `userVerification: 'required'`
19320
+ * (the passkey replaces both factors, so UV is mandatory).
19321
+ * The challenge is stored server-side, NOT bound to any user.
19322
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19323
+ * resolves the credential by the response's credential id,
19324
+ * verifies the assertion against the stored challenge + that
19325
+ * credential's public key/counter, and returns the OWNING
19326
+ * `userId` — the caller (core auth router) mints the session.
19327
+ *
18928
19328
  * 3. Management:
18929
19329
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18930
19330
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18931
19331
  *
19332
+ * 4. Second-factor preference (opt-in, default OFF):
19333
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19334
+ * demanded as a second factor after a password login ONLY when the
19335
+ * user explicitly opts in via `setSecondFactorPreference`.
19336
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19337
+ * row ⇒ `enabled: false`).
19338
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19339
+ * the providing addon beside its credentials.
19340
+ *
18932
19341
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18933
19342
  * the admin-ui composes the begin/finish round-trip and never exposes
18934
19343
  * the cap to non-admins.
@@ -18971,6 +19380,17 @@ method(object({
18971
19380
  }), object({ verified: boolean() }), {
18972
19381
  kind: "mutation",
18973
19382
  access: "view"
19383
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19384
+ kind: "mutation",
19385
+ access: "view"
19386
+ }), method(object({
19387
+ /** AuthenticationResponseJSON from the browser. */
19388
+ response: record(string(), unknown()) }), object({
19389
+ verified: boolean(),
19390
+ userId: string().nullable()
19391
+ }), {
19392
+ kind: "mutation",
19393
+ access: "view"
18974
19394
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
18975
19395
  userId: string(),
18976
19396
  credentialId: string()
@@ -18978,6 +19398,13 @@ method(object({
18978
19398
  kind: "mutation",
18979
19399
  auth: "admin",
18980
19400
  access: "delete"
19401
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19402
+ userId: string(),
19403
+ enabled: boolean()
19404
+ }), object({ success: literal(true) }), {
19405
+ kind: "mutation",
19406
+ auth: "admin",
19407
+ access: "create"
18981
19408
  });
18982
19409
  /**
18983
19410
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19035,9 +19462,10 @@ method(object({
19035
19462
  auth: "admin"
19036
19463
  });
19037
19464
  /**
19038
- * Optional client-side hints sent at session creation to help the
19039
- * provider pick the best native source. All fields are optional —
19040
- * a viewer that knows nothing still gets a sane default.
19465
+ * Optional client-side hints sent at session creation to help the provider
19466
+ * pick the best native source. All fields optional — a viewer that knows
19467
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19468
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19041
19469
  */
19042
19470
  var webrtcClientHintsSchema = object({
19043
19471
  viewportWidth: number().int().positive().optional(),
@@ -19048,22 +19476,6 @@ var webrtcClientHintsSchema = object({
19048
19476
  /** Hard tier override; takes precedence over scoring when registered. */
19049
19477
  prefersTier: string().optional()
19050
19478
  }).partial();
19051
- method(object({
19052
- streamId: string(),
19053
- sdpOffer: string()
19054
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19055
- streamId: string(),
19056
- codec: string()
19057
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19058
- streamId: string(),
19059
- hints: webrtcClientHintsSchema.optional()
19060
- }), object({
19061
- sessionId: string(),
19062
- sdpOffer: string()
19063
- }), { kind: "mutation" }), method(object({
19064
- sessionId: string(),
19065
- sdpAnswer: string()
19066
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19067
19479
  /**
19068
19480
  * Discriminated target for a WebRTC session. The client sends this
19069
19481
  * structured object instead of building / parsing brokerId strings;
@@ -19811,7 +20223,17 @@ var FaceInfoSchema = object({
19811
20223
  recognizedIdentityId: string().optional(),
19812
20224
  identityName: string().optional(),
19813
20225
  assigned: boolean(),
19814
- base64: string().optional()
20226
+ base64: string().optional(),
20227
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20228
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20229
+ * legacy rows written before design B. */
20230
+ faceBbox: BoundingBoxSchema.optional(),
20231
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20232
+ * Fetch the native JPEG via the event-media data-plane
20233
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20234
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20235
+ * back to the inline `base64` face crop. */
20236
+ keyFrameMediaKey: string().optional()
19815
20237
  });
19816
20238
  var FaceFilterEnum = _enum([
19817
20239
  "unassigned",
@@ -20508,6 +20930,16 @@ var TopologyCategorySchema = object({
20508
20930
  healthy: number(),
20509
20931
  addons: array(TopologyCategoryAddonSchema).readonly()
20510
20932
  });
20933
+ /**
20934
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20935
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20936
+ * version visibility for the Server management surface. Nullable: offline
20937
+ * rows and pre-phase-2 nodes report none.
20938
+ */
20939
+ var TopologyRootPackageSchema = object({
20940
+ name: string(),
20941
+ version: string()
20942
+ });
20511
20943
  var TopologyNodeSchema = object({
20512
20944
  id: string(),
20513
20945
  name: string(),
@@ -20531,7 +20963,8 @@ var TopologyNodeSchema = object({
20531
20963
  status: string()
20532
20964
  })).readonly(),
20533
20965
  processes: array(TopologyProcessSchema).readonly(),
20534
- categories: array(TopologyCategorySchema).readonly()
20966
+ categories: array(TopologyCategorySchema).readonly(),
20967
+ rootPackage: TopologyRootPackageSchema.nullable()
20535
20968
  });
20536
20969
  var CapUsageEdgeSchema = object({
20537
20970
  callerAddonId: string(),
@@ -23331,6 +23764,12 @@ Object.freeze({
23331
23764
  addonId: null,
23332
23765
  access: "create"
23333
23766
  },
23767
+ "loginMethod.getLoginMethods": {
23768
+ capName: "login-method",
23769
+ capScope: "system",
23770
+ addonId: null,
23771
+ access: "view"
23772
+ },
23334
23773
  "mediaPlayer.next": {
23335
23774
  capName: "media-player",
23336
23775
  capScope: "device",
@@ -23913,6 +24352,12 @@ Object.freeze({
23913
24352
  addonId: null,
23914
24353
  access: "view"
23915
24354
  },
24355
+ "pipelineAnalytics.getKeyEvents": {
24356
+ capName: "pipeline-analytics",
24357
+ capScope: "device",
24358
+ addonId: null,
24359
+ access: "view"
24360
+ },
23916
24361
  "pipelineAnalytics.getMotionEvents": {
23917
24362
  capName: "pipeline-analytics",
23918
24363
  capScope: "device",
@@ -23961,23 +24406,23 @@ Object.freeze({
23961
24406
  addonId: null,
23962
24407
  access: "create"
23963
24408
  },
23964
- "pipelineExecutor.deleteModel": {
24409
+ "pipelineExecutor.clearDeviceOverrides": {
23965
24410
  capName: "pipeline-executor",
23966
24411
  capScope: "system",
23967
24412
  addonId: null,
23968
24413
  access: "delete"
23969
24414
  },
23970
- "pipelineExecutor.deleteTemplate": {
24415
+ "pipelineExecutor.deleteModel": {
23971
24416
  capName: "pipeline-executor",
23972
24417
  capScope: "system",
23973
24418
  addonId: null,
23974
24419
  access: "delete"
23975
24420
  },
23976
- "pipelineExecutor.detect": {
24421
+ "pipelineExecutor.deleteTemplate": {
23977
24422
  capName: "pipeline-executor",
23978
24423
  capScope: "system",
23979
24424
  addonId: null,
23980
- access: "view"
24425
+ access: "delete"
23981
24426
  },
23982
24427
  "pipelineExecutor.downloadModel": {
23983
24428
  capName: "pipeline-executor",
@@ -24171,13 +24616,13 @@ Object.freeze({
24171
24616
  addonId: null,
24172
24617
  access: "create"
24173
24618
  },
24174
- "pipelineOrchestrator.assignAudio": {
24175
- capName: "pipeline-orchestrator",
24619
+ "pipelineExecutor.validatePipeline": {
24620
+ capName: "pipeline-executor",
24176
24621
  capScope: "system",
24177
24622
  addonId: null,
24178
- access: "create"
24623
+ access: "view"
24179
24624
  },
24180
- "pipelineOrchestrator.assignDecoder": {
24625
+ "pipelineOrchestrator.assignAudio": {
24181
24626
  capName: "pipeline-orchestrator",
24182
24627
  capScope: "system",
24183
24628
  addonId: null,
@@ -24261,19 +24706,13 @@ Object.freeze({
24261
24706
  addonId: null,
24262
24707
  access: "view"
24263
24708
  },
24264
- "pipelineOrchestrator.getDecoderAssignment": {
24265
- capName: "pipeline-orchestrator",
24266
- capScope: "system",
24267
- addonId: null,
24268
- access: "view"
24269
- },
24270
- "pipelineOrchestrator.getDecoderAssignments": {
24709
+ "pipelineOrchestrator.getGlobalMetrics": {
24271
24710
  capName: "pipeline-orchestrator",
24272
24711
  capScope: "system",
24273
24712
  addonId: null,
24274
24713
  access: "view"
24275
24714
  },
24276
- "pipelineOrchestrator.getGlobalMetrics": {
24715
+ "pipelineOrchestrator.getIngestOwner": {
24277
24716
  capName: "pipeline-orchestrator",
24278
24717
  capScope: "system",
24279
24718
  addonId: null,
@@ -24315,6 +24754,12 @@ Object.freeze({
24315
24754
  addonId: null,
24316
24755
  access: "delete"
24317
24756
  },
24757
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24758
+ capName: "pipeline-orchestrator",
24759
+ capScope: "system",
24760
+ addonId: null,
24761
+ access: "delete"
24762
+ },
24318
24763
  "pipelineOrchestrator.resolvePipeline": {
24319
24764
  capName: "pipeline-orchestrator",
24320
24765
  capScope: "system",
@@ -24351,37 +24796,37 @@ Object.freeze({
24351
24796
  addonId: null,
24352
24797
  access: "create"
24353
24798
  },
24354
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24799
+ "pipelineOrchestrator.setAgentReachableHost": {
24355
24800
  capName: "pipeline-orchestrator",
24356
24801
  capScope: "system",
24357
24802
  addonId: null,
24358
24803
  access: "create"
24359
24804
  },
24360
- "pipelineOrchestrator.setCameraStepOverride": {
24805
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24361
24806
  capName: "pipeline-orchestrator",
24362
24807
  capScope: "system",
24363
24808
  addonId: null,
24364
24809
  access: "create"
24365
24810
  },
24366
- "pipelineOrchestrator.setCameraStepToggle": {
24811
+ "pipelineOrchestrator.setCameraStepOverride": {
24367
24812
  capName: "pipeline-orchestrator",
24368
24813
  capScope: "system",
24369
24814
  addonId: null,
24370
24815
  access: "create"
24371
24816
  },
24372
- "pipelineOrchestrator.setCapabilityBinding": {
24817
+ "pipelineOrchestrator.setCameraStepToggle": {
24373
24818
  capName: "pipeline-orchestrator",
24374
24819
  capScope: "system",
24375
24820
  addonId: null,
24376
24821
  access: "create"
24377
24822
  },
24378
- "pipelineOrchestrator.unassignAudio": {
24823
+ "pipelineOrchestrator.setCapabilityBinding": {
24379
24824
  capName: "pipeline-orchestrator",
24380
24825
  capScope: "system",
24381
24826
  addonId: null,
24382
24827
  access: "create"
24383
24828
  },
24384
- "pipelineOrchestrator.unassignDecoder": {
24829
+ "pipelineOrchestrator.unassignAudio": {
24385
24830
  capName: "pipeline-orchestrator",
24386
24831
  capScope: "system",
24387
24832
  addonId: null,
@@ -24441,12 +24886,24 @@ Object.freeze({
24441
24886
  addonId: null,
24442
24887
  access: "view"
24443
24888
  },
24889
+ "pipelineRunner.getNativeCrop": {
24890
+ capName: "pipeline-runner",
24891
+ capScope: "system",
24892
+ addonId: null,
24893
+ access: "view"
24894
+ },
24444
24895
  "pipelineRunner.reportMotion": {
24445
24896
  capName: "pipeline-runner",
24446
24897
  capScope: "system",
24447
24898
  addonId: null,
24448
24899
  access: "create"
24449
24900
  },
24901
+ "pipelineRunner.runDetailSubtree": {
24902
+ capName: "pipeline-runner",
24903
+ capScope: "system",
24904
+ addonId: null,
24905
+ access: "create"
24906
+ },
24450
24907
  "plateGallery.correctPlateText": {
24451
24908
  capName: "plate-gallery",
24452
24909
  capScope: "system",
@@ -24681,33 +25138,45 @@ Object.freeze({
24681
25138
  addonId: null,
24682
25139
  access: "create"
24683
25140
  },
24684
- "restreamer.getExposedResources": {
24685
- capName: "restreamer",
25141
+ "scriptRunner.run": {
25142
+ capName: "script-runner",
25143
+ capScope: "device",
25144
+ addonId: null,
25145
+ access: "create"
25146
+ },
25147
+ "scriptRunner.stop": {
25148
+ capName: "script-runner",
25149
+ capScope: "device",
25150
+ addonId: null,
25151
+ access: "create"
25152
+ },
25153
+ "serverManagement.applyServerUpdate": {
25154
+ capName: "server-management",
24686
25155
  capScope: "system",
24687
25156
  addonId: null,
24688
- access: "view"
25157
+ access: "create"
24689
25158
  },
24690
- "restreamer.registerDevice": {
24691
- capName: "restreamer",
25159
+ "serverManagement.checkServerUpdate": {
25160
+ capName: "server-management",
24692
25161
  capScope: "system",
24693
25162
  addonId: null,
24694
25163
  access: "create"
24695
25164
  },
24696
- "restreamer.unregisterDevice": {
24697
- capName: "restreamer",
25165
+ "serverManagement.getServerPackageStatus": {
25166
+ capName: "server-management",
24698
25167
  capScope: "system",
24699
25168
  addonId: null,
24700
- access: "delete"
25169
+ access: "view"
24701
25170
  },
24702
- "scriptRunner.run": {
24703
- capName: "script-runner",
24704
- capScope: "device",
25171
+ "serverManagement.restartServer": {
25172
+ capName: "server-management",
25173
+ capScope: "system",
24705
25174
  addonId: null,
24706
25175
  access: "create"
24707
25176
  },
24708
- "scriptRunner.stop": {
24709
- capName: "script-runner",
24710
- capScope: "device",
25177
+ "serverManagement.rollbackServerUpdate": {
25178
+ capName: "server-management",
25179
+ capScope: "system",
24711
25180
  addonId: null,
24712
25181
  access: "create"
24713
25182
  },
@@ -24795,23 +25264,17 @@ Object.freeze({
24795
25264
  addonId: null,
24796
25265
  access: "view"
24797
25266
  },
24798
- "snapshot.invalidateCache": {
25267
+ "snapshot.getSnapshotOverview": {
24799
25268
  capName: "snapshot",
24800
25269
  capScope: "device",
24801
25270
  addonId: null,
24802
- access: "create"
24803
- },
24804
- "snapshotProvider.getSnapshot": {
24805
- capName: "snapshot-provider",
24806
- capScope: "system",
24807
- addonId: null,
24808
25271
  access: "view"
24809
25272
  },
24810
- "snapshotProvider.supportsDevice": {
24811
- capName: "snapshot-provider",
24812
- capScope: "system",
25273
+ "snapshot.invalidateCache": {
25274
+ capName: "snapshot",
25275
+ capScope: "device",
24813
25276
  addonId: null,
24814
- access: "view"
25277
+ access: "create"
24815
25278
  },
24816
25279
  "ssoBridge.signBridgeToken": {
24817
25280
  capName: "sso-bridge",
@@ -25239,30 +25702,6 @@ Object.freeze({
25239
25702
  addonId: null,
25240
25703
  access: "view"
25241
25704
  },
25242
- "streamingEngine.getStreamUrl": {
25243
- capName: "streaming-engine",
25244
- capScope: "system",
25245
- addonId: null,
25246
- access: "view"
25247
- },
25248
- "streamingEngine.listStreams": {
25249
- capName: "streaming-engine",
25250
- capScope: "system",
25251
- addonId: null,
25252
- access: "view"
25253
- },
25254
- "streamingEngine.registerStream": {
25255
- capName: "streaming-engine",
25256
- capScope: "system",
25257
- addonId: null,
25258
- access: "create"
25259
- },
25260
- "streamingEngine.unregisterStream": {
25261
- capName: "streaming-engine",
25262
- capScope: "system",
25263
- addonId: null,
25264
- access: "delete"
25265
- },
25266
25705
  "streamParams.getConfigSchema": {
25267
25706
  capName: "stream-params",
25268
25707
  capScope: "device",
@@ -25509,6 +25948,12 @@ Object.freeze({
25509
25948
  addonId: null,
25510
25949
  access: "view"
25511
25950
  },
25951
+ "userPasskeys.beginDiscoverableAuthentication": {
25952
+ capName: "user-passkeys",
25953
+ capScope: "system",
25954
+ addonId: null,
25955
+ access: "view"
25956
+ },
25512
25957
  "userPasskeys.beginRegistration": {
25513
25958
  capName: "user-passkeys",
25514
25959
  capScope: "system",
@@ -25521,12 +25966,24 @@ Object.freeze({
25521
25966
  addonId: null,
25522
25967
  access: "view"
25523
25968
  },
25969
+ "userPasskeys.finishDiscoverableAuthentication": {
25970
+ capName: "user-passkeys",
25971
+ capScope: "system",
25972
+ addonId: null,
25973
+ access: "view"
25974
+ },
25524
25975
  "userPasskeys.finishRegistration": {
25525
25976
  capName: "user-passkeys",
25526
25977
  capScope: "system",
25527
25978
  addonId: null,
25528
25979
  access: "create"
25529
25980
  },
25981
+ "userPasskeys.getSecondFactorPreference": {
25982
+ capName: "user-passkeys",
25983
+ capScope: "system",
25984
+ addonId: null,
25985
+ access: "view"
25986
+ },
25530
25987
  "userPasskeys.listPasskeys": {
25531
25988
  capName: "user-passkeys",
25532
25989
  capScope: "system",
@@ -25539,6 +25996,12 @@ Object.freeze({
25539
25996
  addonId: null,
25540
25997
  access: "delete"
25541
25998
  },
25999
+ "userPasskeys.setSecondFactorPreference": {
26000
+ capName: "user-passkeys",
26001
+ capScope: "system",
26002
+ addonId: null,
26003
+ access: "create"
26004
+ },
25542
26005
  "vacuumControl.locate": {
25543
26006
  capName: "vacuum-control",
25544
26007
  capScope: "device",
@@ -25611,6 +26074,18 @@ Object.freeze({
25611
26074
  addonId: null,
25612
26075
  access: "view"
25613
26076
  },
26077
+ "viewerUi.getStaticDir": {
26078
+ capName: "viewer-ui",
26079
+ capScope: "system",
26080
+ addonId: null,
26081
+ access: "view"
26082
+ },
26083
+ "viewerUi.getVersion": {
26084
+ capName: "viewer-ui",
26085
+ capScope: "system",
26086
+ addonId: null,
26087
+ access: "view"
26088
+ },
25614
26089
  "waterHeater.setAway": {
25615
26090
  capName: "water-heater",
25616
26091
  capScope: "device",
@@ -25629,54 +26104,6 @@ Object.freeze({
25629
26104
  addonId: null,
25630
26105
  access: "create"
25631
26106
  },
25632
- "webrtc.closeSession": {
25633
- capName: "webrtc",
25634
- capScope: "system",
25635
- addonId: null,
25636
- access: "create"
25637
- },
25638
- "webrtc.createSession": {
25639
- capName: "webrtc",
25640
- capScope: "system",
25641
- addonId: null,
25642
- access: "create"
25643
- },
25644
- "webrtc.handleAnswer": {
25645
- capName: "webrtc",
25646
- capScope: "system",
25647
- addonId: null,
25648
- access: "create"
25649
- },
25650
- "webrtc.handleOffer": {
25651
- capName: "webrtc",
25652
- capScope: "system",
25653
- addonId: null,
25654
- access: "create"
25655
- },
25656
- "webrtc.hasAdaptiveBitrate": {
25657
- capName: "webrtc",
25658
- capScope: "system",
25659
- addonId: null,
25660
- access: "view"
25661
- },
25662
- "webrtc.registerStream": {
25663
- capName: "webrtc",
25664
- capScope: "system",
25665
- addonId: null,
25666
- access: "create"
25667
- },
25668
- "webrtc.supportsStream": {
25669
- capName: "webrtc",
25670
- capScope: "system",
25671
- addonId: null,
25672
- access: "view"
25673
- },
25674
- "webrtc.unregisterStream": {
25675
- capName: "webrtc",
25676
- capScope: "system",
25677
- addonId: null,
25678
- access: "delete"
25679
- },
25680
26107
  "webrtcSession.addIceCandidate": {
25681
26108
  capName: "webrtc-session",
25682
26109
  capScope: "device",