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