@camstack/addon-provider-homematic 1.1.19 → 1.1.21

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
@@ -4652,7 +4652,7 @@ function preprocess(fn, schema) {
4652
4652
  });
4653
4653
  }
4654
4654
  //#endregion
4655
- //#region ../types/dist/sleep-CZDdRBua.mjs
4655
+ //#region ../types/dist/sleep-Baang_XW.mjs
4656
4656
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4657
4657
  EventCategory["SystemBoot"] = "system.boot";
4658
4658
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4838,6 +4838,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4838
4838
  */
4839
4839
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4840
4840
  /**
4841
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4842
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4843
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4844
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4845
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4846
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4847
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4848
+ * topology change, so a dropped event self-heals on the next one (plus the
4849
+ * broker's long backstop reconcile query).
4850
+ */
4851
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4852
+ /**
4841
4853
  * Periodic snapshot of per-node pipeline-runner load
4842
4854
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4843
4855
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5361,10 +5373,6 @@ function hydrateField(field, values) {
5361
5373
  };
5362
5374
  }
5363
5375
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5364
- if (field.type === "password") return {
5365
- ...field,
5366
- value: ""
5367
- };
5368
5376
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5369
5377
  return {
5370
5378
  ...field,
@@ -6748,10 +6756,25 @@ function method(input, output, options) {
6748
6756
  timeoutMs: options?.timeoutMs
6749
6757
  };
6750
6758
  }
6759
+ /**
6760
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6761
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6762
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6763
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6764
+ */
6765
+ function systemMethod(input, output, options) {
6766
+ return {
6767
+ ...method(input, output, options),
6768
+ systemOnly: true
6769
+ };
6770
+ }
6751
6771
  /** Shorthand to define an event schema */
6752
6772
  function event(data) {
6753
6773
  return { data };
6754
6774
  }
6775
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6776
+ var VersionOutputSchema$1 = object({ version: string() });
6777
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6755
6778
  var StaticDirOutputSchema = object({ staticDir: string() });
6756
6779
  var VersionOutputSchema = object({ version: string() });
6757
6780
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6933,6 +6956,36 @@ var ModelFormatsSchema = object({
6933
6956
  tflite: ModelFormatEntrySchema.optional(),
6934
6957
  pt: ModelFormatEntrySchema.optional()
6935
6958
  });
6959
+ /**
6960
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6961
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6962
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6963
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6964
+ * resolution/download/persistence; this is a presentation overlay resolved back
6965
+ * to an `id`.
6966
+ */
6967
+ var ModelVariantGroupSchema = object({
6968
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6969
+ family: string(),
6970
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6971
+ tier: string(),
6972
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6973
+ precision: _enum(["fp32", "int8"]).optional(),
6974
+ /**
6975
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6976
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6977
+ * future performance variants plug into.
6978
+ */
6979
+ optimization: _enum(["standard", "fast"]).optional(),
6980
+ /**
6981
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6982
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6983
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6984
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6985
+ * the group so the selector can offer it as a variant axis.
6986
+ */
6987
+ resolution: number().int().positive().optional()
6988
+ });
6936
6989
  var ModelCatalogEntrySchema = object({
6937
6990
  id: string(),
6938
6991
  name: string(),
@@ -6962,7 +7015,43 @@ var ModelCatalogEntrySchema = object({
6962
7015
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6963
7016
  * Downloaded into the same modelsDir alongside the model file.
6964
7017
  */
6965
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7018
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7019
+ /**
7020
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7021
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7022
+ * model list and excluded from the auto format-default pick. Set on the
7023
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7024
+ * the active lineup stays the coherent curated ladder without deleting a
7025
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7026
+ * an explicit legacy id that has a build for the node's format.
7027
+ */
7028
+ legacy: boolean().optional(),
7029
+ /**
7030
+ * Measured quality/latency metadata — populated from the benchmark addon on
7031
+ * the real node classes. Absent = not yet measured (most entries today; the
7032
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7033
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7034
+ */
7035
+ metrics: object({
7036
+ map50: number().optional(),
7037
+ p95LatencyMs: record(string(), number()).optional()
7038
+ }).optional(),
7039
+ /**
7040
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7041
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7042
+ * the retraining addon and any future commercial distribution.
7043
+ */
7044
+ license: string().optional(),
7045
+ /**
7046
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7047
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7048
+ * of a family's sizes and quantizations collapse into one grouped picker
7049
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7050
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7051
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7052
+ * is a presentation overlay resolved back to an `id`.
7053
+ */
7054
+ group: ModelVariantGroupSchema.optional()
6966
7055
  });
6967
7056
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6968
7057
  format: literal("openvino"),
@@ -7023,8 +7112,8 @@ var RecordingModeSchema = _enum([
7023
7112
  "onAudioThreshold"
7024
7113
  ]);
7025
7114
  /**
7026
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7027
- * reads directly (never inferred from `rules`):
7115
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7116
+ * UI reads directly (never inferred from `rules`):
7028
7117
  * - `off` — not recording.
7029
7118
  * - `events` — record only around triggers (motion / audio threshold),
7030
7119
  * with pre/post-buffer.
@@ -9187,26 +9276,13 @@ onBrightnessChanged: { data: object({
9187
9276
  */
9188
9277
  runtimeState: BrightnessStatusSchema
9189
9278
  };
9279
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9190
9280
  var StreamFormatSchema = _enum([
9191
9281
  "webrtc",
9192
9282
  "hls",
9193
9283
  "mjpeg",
9194
9284
  "rtsp"
9195
9285
  ]);
9196
- var StreamInfoSchema = object({
9197
- streamId: string(),
9198
- format: StreamFormatSchema,
9199
- url: string().nullable(),
9200
- active: boolean()
9201
- });
9202
- method(object({
9203
- streamId: string(),
9204
- sourceUrl: string(),
9205
- codec: string().optional()
9206
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9207
- streamId: string(),
9208
- format: StreamFormatSchema
9209
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9210
9286
  var RtspRestreamEntrySchema = object({
9211
9287
  brokerId: string(),
9212
9288
  url: string(),
@@ -10074,37 +10150,7 @@ var consumablesCapability = {
10074
10150
  scope: "device",
10075
10151
  deviceNative: true,
10076
10152
  mode: "singleton",
10077
- deviceTypes: [
10078
- DeviceType.Camera,
10079
- DeviceType.Hub,
10080
- DeviceType.Light,
10081
- DeviceType.Siren,
10082
- DeviceType.Switch,
10083
- DeviceType.Sensor,
10084
- DeviceType.Thermostat,
10085
- DeviceType.Button,
10086
- DeviceType.EventEmitter,
10087
- DeviceType.Update,
10088
- DeviceType.Generic,
10089
- DeviceType.Notifier,
10090
- DeviceType.Script,
10091
- DeviceType.Automation,
10092
- DeviceType.Lock,
10093
- DeviceType.Cover,
10094
- DeviceType.Valve,
10095
- DeviceType.Humidifier,
10096
- DeviceType.WaterHeater,
10097
- DeviceType.Fan,
10098
- DeviceType.MediaPlayer,
10099
- DeviceType.AlarmPanel,
10100
- DeviceType.Control,
10101
- DeviceType.Presence,
10102
- DeviceType.Weather,
10103
- DeviceType.Vacuum,
10104
- DeviceType.LawnMower,
10105
- DeviceType.Container,
10106
- DeviceType.Image
10107
- ],
10153
+ deviceTypes: Object.values(DeviceType),
10108
10154
  deviceConfig: { ui: {
10109
10155
  kind: "widget",
10110
10156
  widgetId: "host/consumables-panel",
@@ -11562,7 +11608,7 @@ var BoundingBoxSchema = object({
11562
11608
  w: number(),
11563
11609
  h: number()
11564
11610
  });
11565
- var SpatialDetectionSchema = object({
11611
+ object({
11566
11612
  class: string(),
11567
11613
  originalClass: string(),
11568
11614
  score: number(),
@@ -11697,7 +11743,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11697
11743
  enabled: boolean(),
11698
11744
  modelId: string(),
11699
11745
  children: array(PipelineDefaultStepSchema).readonly(),
11700
- engine: PipelineEngineChoiceSchema.optional(),
11701
11746
  group: string().optional(),
11702
11747
  settings: record(string(), unknown()).optional()
11703
11748
  }));
@@ -11722,7 +11767,9 @@ var PipelineModelOptionSchema = object({
11722
11767
  formats: record(string(), object({
11723
11768
  downloaded: boolean(),
11724
11769
  sizeMB: number()
11725
- }))
11770
+ })),
11771
+ group: ModelVariantGroupSchema.optional(),
11772
+ legacy: boolean().optional()
11726
11773
  });
11727
11774
  var ConfigFieldBridge = custom();
11728
11775
  var PipelineAddonSchemaSchema = object({
@@ -11736,6 +11783,7 @@ var PipelineAddonSchemaSchema = object({
11736
11783
  defaultModelId: string(),
11737
11784
  defaultModelIdByFormat: record(string(), string()).optional(),
11738
11785
  enabledByDefault: boolean().optional(),
11786
+ backfillIntoExistingOverrides: boolean().optional(),
11739
11787
  defaultConfidence: number(),
11740
11788
  group: string().optional(),
11741
11789
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11752,11 +11800,6 @@ var PipelineSchemaSchema = object({
11752
11800
  selectedEngine: PipelineEngineChoiceSchema,
11753
11801
  slots: array(PipelineSlotSchemaSchema).readonly()
11754
11802
  });
11755
- var DetectorOutputSchema = object({
11756
- detections: array(SpatialDetectionSchema).readonly(),
11757
- inferenceMs: number(),
11758
- modelId: string()
11759
- });
11760
11803
  var EngineProvisioningSchema = object({
11761
11804
  runtimeId: _enum([
11762
11805
  "onnx",
@@ -11773,15 +11816,42 @@ var EngineProvisioningSchema = object({
11773
11816
  ]),
11774
11817
  progress: number().optional(),
11775
11818
  error: string().optional(),
11776
- nextRetryAt: number().optional()
11819
+ nextRetryAt: number().optional(),
11820
+ /**
11821
+ * Gate A (config-correctness gate at engine change): human-readable
11822
+ * config issues surfaced EAGERLY when the node's engine changes — model
11823
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11824
+ * has a <format> build"). Additive/optional: informational only, never
11825
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11826
+ * Absent/empty when the node-default tree resolves cleanly.
11827
+ */
11828
+ configIssues: array(string()).optional()
11777
11829
  });
11778
11830
  var PipelineStepInputSchema = lazy(() => object({
11779
11831
  addonId: string(),
11780
- modelId: string(),
11832
+ modelId: string().optional(),
11781
11833
  enabled: boolean().default(true),
11782
11834
  children: array(PipelineStepInputSchema).optional(),
11783
11835
  settings: record(string(), unknown()).optional()
11784
11836
  }));
11837
+ var ModelSubstitutionSchema = object({
11838
+ addonId: string(),
11839
+ chosen: string(),
11840
+ running: string(),
11841
+ format: string()
11842
+ });
11843
+ var PipelineValidationIssueSchema = object({
11844
+ addonId: string(),
11845
+ kind: _enum(["unknown-addon", "no-format-build"]),
11846
+ detail: string()
11847
+ });
11848
+ var PipelineValidationResultSchema = object({
11849
+ ok: boolean(),
11850
+ issues: array(PipelineValidationIssueSchema).readonly(),
11851
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11852
+ /** The node's `currentEngine.format` this validation ran against. */
11853
+ format: string()
11854
+ });
11785
11855
  var ReferenceImageEntrySchema = object({
11786
11856
  filename: string(),
11787
11857
  stepIds: array(string()).readonly().optional()
@@ -11852,7 +11922,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11852
11922
  })) }), object({ success: literal(true) }), {
11853
11923
  kind: "mutation",
11854
11924
  auth: "admin"
11855
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11925
+ }), method(object({ nodeId: string() }), object({
11926
+ success: literal(true),
11927
+ clearedDevices: number()
11928
+ }), {
11929
+ kind: "mutation",
11930
+ auth: "admin"
11931
+ }), 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({
11856
11932
  name: string(),
11857
11933
  steps: array(PipelineTemplateStepSchema).readonly(),
11858
11934
  engine: PipelineEngineChoiceSchema
@@ -11869,10 +11945,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11869
11945
  modelId: string(),
11870
11946
  format: ModelFormatSchema$1
11871
11947
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11872
- addonId: string(),
11873
- frame: FrameInputSchema,
11874
- config: record(string(), unknown()).optional()
11875
- }), DetectorOutputSchema), method(object({
11876
11948
  engine: PipelineEngineChoiceSchema.optional(),
11877
11949
  steps: array(PipelineStepInputSchema).min(1),
11878
11950
  frame: FrameInputSchema.optional(),
@@ -11893,7 +11965,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11893
11965
  image: _instanceof(Uint8Array).optional(),
11894
11966
  referenceImage: string().optional(),
11895
11967
  deviceId: number().optional(),
11896
- sessionId: string().optional()
11968
+ sessionId: string().optional(),
11969
+ /**
11970
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
11971
+ * reference-image, and detail-subtree calls. 'frame' is the live
11972
+ * per-frame dispatch: ONLY root-plane steps run; crop children
11973
+ * (inputClasses ≠ null) are skipped and served per-track via
11974
+ * pipelineRunner.runDetailSubtree (two-plane design).
11975
+ */
11976
+ plane: _enum(["full", "frame"]).optional()
11897
11977
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
11898
11978
  engine: PipelineEngineChoiceSchema.optional(),
11899
11979
  steps: array(PipelineStepInputSchema).min(1),
@@ -12051,6 +12131,47 @@ var zonesCapability = {
12051
12131
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12052
12132
  };
12053
12133
  /**
12134
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12135
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12136
+ * so the caller supplies only the detection-res bbox divided by the detection
12137
+ * dims — no native resolution to plumb.
12138
+ */
12139
+ var NativeCropBboxSchema = object({
12140
+ x: number(),
12141
+ y: number(),
12142
+ w: number(),
12143
+ h: number()
12144
+ });
12145
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12146
+ var NativeCropResultSchema = object({
12147
+ /** Packed rgb (24-bit) pixels of the crop. */
12148
+ bytes: _instanceof(Uint8Array),
12149
+ width: number().int().positive(),
12150
+ height: number().int().positive()
12151
+ });
12152
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12153
+ * originating detection, in FRAME-space coordinates. Reuses
12154
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12155
+ * the coordinates are frame-space rather than getNativeCrop's
12156
+ * normalized [0,1] convention). */
12157
+ var DetailParentSchema = object({
12158
+ bbox: NativeCropBboxSchema,
12159
+ className: string()
12160
+ });
12161
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12162
+ * or refined detection produced by running the crop-subtree on a
12163
+ * single tracked detection. */
12164
+ var DetailResultSchema = object({
12165
+ stepId: string(),
12166
+ className: string(),
12167
+ score: number(),
12168
+ /** FRAME-space bbox (already mapped back from crop space). */
12169
+ bbox: NativeCropBboxSchema.optional(),
12170
+ embedding: string().optional(),
12171
+ label: string().optional(),
12172
+ alignedCropJpeg: string().optional()
12173
+ });
12174
+ /**
12054
12175
  * Per-camera tunable ranges + defaults. Single source of truth used
12055
12176
  * by both the Zod data schema (validation + default fallback) and
12056
12177
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12145,6 +12266,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12145
12266
  kind: literal("remote-restream"),
12146
12267
  /** The camera's source-owner node (slice 1: always the hub). */
12147
12268
  ownerNodeId: string(),
12269
+ /**
12270
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12271
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12272
+ * dials THIS host for the owner's restream, in preference to the
12273
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12274
+ */
12275
+ ownerReachableHost: string().optional(),
12148
12276
  /** Operator override for the owner host the runner dials. */
12149
12277
  hubHostnameOverride: string().optional()
12150
12278
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12153,13 +12281,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12153
12281
  * specific runner instance via `attachCamera`. Carries everything the
12154
12282
  * runner needs to subscribe to the local broker and execute inference.
12155
12283
  *
12156
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12157
- * optional `audio`) travels with the attach payload. The runner keeps it
12158
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12159
- * restart the orchestrator re-sends the latest snapshot.
12160
- *
12161
- * `engine`/`steps`/`audio` are optional during the additive migration
12162
- * window; once orchestrator + UI are migrated they become required.
12284
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12285
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12286
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12287
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12288
+ * node-local, resolved by the executing runner at dispatch time.
12163
12289
  */
12164
12290
  var RunnerCameraConfigSchema = object({
12165
12291
  deviceId: number(),
@@ -12210,14 +12336,11 @@ var RunnerCameraConfigSchema = object({
12210
12336
  */
12211
12337
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12212
12338
  pipelineEnabled: boolean().default(true),
12213
- /** Engine choice for video steps (runtime+backend+format). */
12214
- engine: PipelineEngineChoiceSchema.optional(),
12215
12339
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12216
12340
  steps: array(PipelineStepInputSchema).readonly().optional(),
12217
12341
  /** Audio classification branch. `enabled:false` disables, null skips. */
12218
12342
  audio: object({
12219
- engine: PipelineEngineChoiceSchema,
12220
- modelId: string(),
12343
+ modelId: string().optional(),
12221
12344
  enabled: boolean()
12222
12345
  }).nullable().optional(),
12223
12346
  /**
@@ -12304,7 +12427,17 @@ var RunnerLocalMetricsSchema = object({
12304
12427
  avgInferenceTimeMs: number(),
12305
12428
  queueDepth: number()
12306
12429
  });
12307
- 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());
12430
+ 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({
12431
+ handle: FrameHandleSchema,
12432
+ bbox: NativeCropBboxSchema,
12433
+ maxWidth: number().int().positive().optional()
12434
+ }), NativeCropResultSchema.nullable()), method(object({
12435
+ deviceId: number(),
12436
+ frameHandle: FrameHandleSchema.optional(),
12437
+ cropJpeg: string().optional(),
12438
+ parent: DetailParentSchema,
12439
+ steps: array(string()).optional()
12440
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12308
12441
  /**
12309
12442
  * Hardware / firmware motion sensor cap — binary detected state plus
12310
12443
  * a timestamp of the last observation. Distinct from
@@ -15235,7 +15368,9 @@ var AddonPageDeclarationSchema$1 = object({
15235
15368
  icon: string(),
15236
15369
  path: string(),
15237
15370
  remoteName: string(),
15238
- bundle: string()
15371
+ bundle: string(),
15372
+ section: string().optional(),
15373
+ sectionLabel: string().optional()
15239
15374
  });
15240
15375
  var AddonPageInfoSchema = object({
15241
15376
  addonId: string(),
@@ -15275,7 +15410,18 @@ var AddonPageDeclarationSchema = object({
15275
15410
  * the static-file route can compute an mtime-based cache-buster URL
15276
15411
  * without a separate filesystem stat.
15277
15412
  */
15278
- bundle: string()
15413
+ bundle: string(),
15414
+ /**
15415
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15416
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15417
+ * Any OTHER string creates (or joins) a custom section rendered after
15418
+ * the built-in groups; its label comes from `sectionLabel` (first
15419
+ * declaration wins), falling back to the id. Absent → the legacy
15420
+ * "Addon Pages" group.
15421
+ */
15422
+ section: string().optional(),
15423
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15424
+ sectionLabel: string().optional()
15279
15425
  });
15280
15426
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15281
15427
  var AddonHttpRouteSchema = object({
@@ -15491,6 +15637,17 @@ var WidgetMetadataSchema = object({
15491
15637
  deviceContext: boolean().default(false),
15492
15638
  integrationContext: boolean().default(false)
15493
15639
  }),
15640
+ /**
15641
+ * Loadable BEFORE authentication. The normal widget registry listing
15642
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15643
+ * (the login page) cannot discover a widget through it. A widget that
15644
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15645
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15646
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15647
+ * than the authenticated registry, and its bundle is served by the
15648
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15649
+ */
15650
+ preAuth: boolean().optional().default(false),
15494
15651
  /** Dashboard placement HINTS (operator can override per instance). */
15495
15652
  defaultSize: WidgetSizeEnum.default("md"),
15496
15653
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15792,6 +15949,66 @@ method(object({
15792
15949
  password: string()
15793
15950
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15794
15951
  /**
15952
+ * `login-method` — collection cap through which auth addons contribute
15953
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15954
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15955
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15956
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15957
+ * procedure aggregates them for the unauthenticated login page.
15958
+ *
15959
+ * A contribution is a discriminated union on `kind`:
15960
+ *
15961
+ * - `redirect` — a declarative button. The login page renders a generic
15962
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15963
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15964
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15965
+ * login page needs NO change.
15966
+ *
15967
+ * - `widget` — a Module-Federation widget the login page mounts (via
15968
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15969
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15970
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15971
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15972
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15973
+ *
15974
+ * Every contribution carries a `stage`:
15975
+ * - `primary` — shown on the first credentials screen (OIDC /
15976
+ * magic-link buttons; a future usernameless passkey).
15977
+ * - `second-factor` — shown AFTER the password leg, gated on the
15978
+ * returned `factors` (passkey-as-2FA today).
15979
+ *
15980
+ * `mount: skip` — the cap is read server-side by the core auth router
15981
+ * (`registry.getCollection('login-method')`), never mounted as its own
15982
+ * tRPC router.
15983
+ */
15984
+ /** When a login method renders in the two-phase login flow. */
15985
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15986
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15987
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15988
+ kind: literal("redirect"),
15989
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15990
+ id: string(),
15991
+ /** Operator-facing button label. */
15992
+ label: string(),
15993
+ /** lucide-react icon name. */
15994
+ icon: string().optional(),
15995
+ /** Addon-owned HTTP route the button navigates to (GET). */
15996
+ startUrl: string(),
15997
+ stage: LoginStageEnum
15998
+ }), object({
15999
+ kind: literal("widget"),
16000
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
16001
+ id: string(),
16002
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
16003
+ addonId: string(),
16004
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
16005
+ bundle: string(),
16006
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
16007
+ remote: WidgetRemoteSchema,
16008
+ stage: LoginStageEnum
16009
+ })]);
16010
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16011
+ /**
15795
16012
  * Orchestrator-side destination metadata. The orchestrator computes
15796
16013
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15797
16014
  * (admin UI, restore flow) see one canonical key.
@@ -17961,7 +18178,17 @@ var TrackSchema = object({
17961
18178
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17962
18179
  totalDistance: number(),
17963
18180
  state: TrackStateSchema,
17964
- active: boolean()
18181
+ active: boolean(),
18182
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18183
+ * track expiry, recomputed on late label). Absent on legacy rows written
18184
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18185
+ importance: number().optional(),
18186
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18187
+ * "best" frame). Absent when the track produced no object events. */
18188
+ bestEventId: string().optional(),
18189
+ /** Tag of the importance sub-signal that dominated the score
18190
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18191
+ importanceReason: string().optional()
17965
18192
  });
17966
18193
  var BaseEventFields = {
17967
18194
  id: string(),
@@ -18026,8 +18253,18 @@ var ObjectEventSchema = object({
18026
18253
  frameHeight: number().optional(),
18027
18254
  /** MediaStore key for the crop attached to this event (if any). */
18028
18255
  mediaKey: string().optional(),
18256
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18257
+ * best-detection full frame). Resolve via the event-media data-plane
18258
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18259
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18260
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18261
+ keyFrameMediaKey: string().optional(),
18029
18262
  /** Populated by B5 (recording playback URL for this event). */
18030
- mediaUrl: string().optional()
18263
+ mediaUrl: string().optional(),
18264
+ /** The parent track's key-event importance [0,1], propagated to every object
18265
+ * event of the track (so an event row can be sorted by importance without a
18266
+ * track join). Absent on legacy rows / before the track was scored. */
18267
+ importance: number().optional()
18031
18268
  });
18032
18269
  var AudioEventSchema = object({
18033
18270
  ...BaseEventFields,
@@ -18051,7 +18288,8 @@ var MediaFileKindEnum = _enum([
18051
18288
  "fullFrame",
18052
18289
  "fullFrameBoxed",
18053
18290
  "faceCrop",
18054
- "plateCrop"
18291
+ "plateCrop",
18292
+ "keyFrame"
18055
18293
  ]);
18056
18294
  var MediaFileSchema = object({
18057
18295
  key: string(),
@@ -18072,6 +18310,32 @@ var DeviceEventQueryInput = object({
18072
18310
  projection: _enum(["full", "slim"]).optional()
18073
18311
  });
18074
18312
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18313
+ var KeyEventQueryInput = object({
18314
+ deviceId: number(),
18315
+ /** Window lower bound (track firstSeen ≥ since). */
18316
+ since: number(),
18317
+ /** Window upper bound (track firstSeen ≤ until). */
18318
+ until: number(),
18319
+ limit: number().int().min(1).max(200).default(50),
18320
+ /** Drop tracks scoring below this importance. */
18321
+ minImportance: number().min(0).max(1).optional(),
18322
+ /** Restrict to a single class (e.g. 'person'). */
18323
+ classFilter: string().optional()
18324
+ });
18325
+ var KeyEventSchema = object({
18326
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18327
+ id: string(),
18328
+ trackId: string(),
18329
+ /** Track start time (firstSeen). */
18330
+ timestamp: number(),
18331
+ className: string(),
18332
+ label: string().optional(),
18333
+ importance: number(),
18334
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18335
+ bestEventId: string(),
18336
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18337
+ windowMs: number().optional()
18338
+ });
18075
18339
  var TrackedDetectionSchema = object({
18076
18340
  trackId: string(),
18077
18341
  className: string(),
@@ -18101,7 +18365,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18101
18365
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18102
18366
  kind: "mutation",
18103
18367
  auth: "admin"
18104
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18368
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18105
18369
  deviceId: number(),
18106
18370
  since: number(),
18107
18371
  until: number(),
@@ -18146,11 +18410,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18146
18410
  timestamp: number()
18147
18411
  });
18148
18412
  var CameraPipelineConfigSchema = object({
18149
- engine: PipelineEngineChoiceSchema,
18413
+ engine: PipelineEngineChoiceSchema.optional(),
18150
18414
  steps: array(PipelineStepInputSchema).readonly(),
18151
18415
  audio: object({
18152
- engine: PipelineEngineChoiceSchema,
18153
- modelId: string(),
18416
+ engine: PipelineEngineChoiceSchema.optional(),
18417
+ modelId: string().optional(),
18154
18418
  enabled: boolean(),
18155
18419
  settings: record(string(), unknown()).readonly().optional()
18156
18420
  }).nullable().optional()
@@ -18165,7 +18429,7 @@ var PipelineTemplateSchema = object({
18165
18429
  });
18166
18430
  var AgentAddonConfigSchema = object({
18167
18431
  enabled: boolean(),
18168
- modelId: string(),
18432
+ modelId: string().optional(),
18169
18433
  settings: record(string(), unknown()).readonly()
18170
18434
  });
18171
18435
  var AgentPipelineSettingsSchema = object({
@@ -18175,12 +18439,25 @@ var AgentPipelineSettingsSchema = object({
18175
18439
  detectWeight: number().positive().optional(),
18176
18440
  /** Node is eligible to run the detection pipeline (decode + inference). */
18177
18441
  detect: boolean().optional(),
18178
- /** Node is eligible to host decoder sessions. */
18442
+ /**
18443
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18444
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18445
+ * the schema ONLY so persisted stores written before the removal still
18446
+ * parse — no code reads it and no write path emits it.
18447
+ */
18179
18448
  decode: boolean().optional(),
18180
18449
  /** Node is eligible to run audio-analyzer sessions. */
18181
18450
  audio: boolean().optional(),
18182
18451
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18183
- ingest: boolean().optional()
18452
+ ingest: boolean().optional(),
18453
+ /**
18454
+ * Operator override for the LAN host a cross-node decoder dials to reach
18455
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18456
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18457
+ * it already uses to reach the hub). Set this only when the auto-detected
18458
+ * address is wrong (multi-homed host, NAT, custom interface).
18459
+ */
18460
+ reachableHost: string().optional()
18184
18461
  });
18185
18462
  var CameraPipelineForAgentSchema = object({
18186
18463
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18228,25 +18505,6 @@ var PipelineAssignmentSchema = object({
18228
18505
  assignedAt: number()
18229
18506
  });
18230
18507
  /**
18231
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18232
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18233
- * → co-located with pipeline → capacity).
18234
- */
18235
- var DecoderAssignmentSchema = object({
18236
- deviceId: number(),
18237
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18238
- decoderNodeId: string(),
18239
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18240
- pinned: boolean(),
18241
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18242
- reason: _enum([
18243
- "manual",
18244
- "co-located",
18245
- "capacity",
18246
- "hardware-affinity"
18247
- ])
18248
- });
18249
- /**
18250
18508
  * Per-agent load summary surfaced to the load balancer + dashboards.
18251
18509
  * Aggregated from each runner's `getLocalLoad` cap call.
18252
18510
  */
@@ -18286,6 +18544,15 @@ var GlobalMetricsSchema = object({
18286
18544
  * capability providers.
18287
18545
  */
18288
18546
  var CapabilityBindingsSchema = record(string(), string());
18547
+ /**
18548
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18549
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18550
+ */
18551
+ var IngestOwnerSchema = object({
18552
+ ownerNodeId: string(),
18553
+ reachableHost: string().optional(),
18554
+ configIssue: string().optional()
18555
+ });
18289
18556
  /** Source block — always present; derives from the stream catalog. */
18290
18557
  var CameraSourceStatusSchema = object({ streams: array(object({
18291
18558
  camStreamId: string(),
@@ -18300,6 +18567,14 @@ var CameraAssignmentStatusSchema = object({
18300
18567
  detectionNodeId: string().nullable(),
18301
18568
  decoderNodeId: string().nullable(),
18302
18569
  audioNodeId: string().nullable(),
18570
+ /**
18571
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18572
+ * hosts the broker/restream) — the cluster ingest owner today
18573
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18574
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18575
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18576
+ */
18577
+ sourceNodeId: string().nullable(),
18303
18578
  pinned: object({
18304
18579
  detection: boolean(),
18305
18580
  decoder: boolean(),
@@ -18432,16 +18707,7 @@ method(object({
18432
18707
  }), object({ success: literal(true) }), {
18433
18708
  kind: "mutation",
18434
18709
  auth: "admin"
18435
- }), method(object({
18436
- deviceId: number(),
18437
- nodeId: string()
18438
- }), _void(), {
18439
- kind: "mutation",
18440
- auth: "admin"
18441
- }), method(object({ deviceId: number() }), _void(), {
18442
- kind: "mutation",
18443
- auth: "admin"
18444
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18710
+ }), method(_void(), IngestOwnerSchema), method(object({
18445
18711
  deviceId: number(),
18446
18712
  nodeId: string()
18447
18713
  }), object({ success: literal(true) }), {
@@ -18462,10 +18728,7 @@ method(object({
18462
18728
  nodeId: string(),
18463
18729
  pinned: boolean(),
18464
18730
  assignedAt: number()
18465
- }))), method(object({
18466
- deviceId: number(),
18467
- pipelineNodeId: string().optional()
18468
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18731
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18469
18732
  nodeId: string(),
18470
18733
  settings: AgentPipelineSettingsSchema
18471
18734
  })).readonly()), method(object({
@@ -18495,12 +18758,26 @@ method(object({
18495
18758
  }), method(object({
18496
18759
  agentNodeId: string(),
18497
18760
  detect: boolean().nullable().optional(),
18498
- decode: boolean().nullable().optional(),
18499
18761
  audio: boolean().nullable().optional(),
18500
18762
  ingest: boolean().nullable().optional()
18501
18763
  }), object({ success: literal(true) }), {
18502
18764
  kind: "mutation",
18503
18765
  auth: "admin"
18766
+ }), method(object({
18767
+ agentNodeId: string(),
18768
+ reachableHost: string().nullable()
18769
+ }), object({ success: literal(true) }), {
18770
+ kind: "mutation",
18771
+ auth: "admin"
18772
+ }), method(object({ agentNodeId: string() }), object({
18773
+ success: literal(true),
18774
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18775
+ effectiveModelId: string().nullable(),
18776
+ /** Number of cameras whose node-scoped overrides were cleared. */
18777
+ clearedCameraOverrides: number()
18778
+ }), {
18779
+ kind: "mutation",
18780
+ auth: "admin"
18504
18781
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18505
18782
  deviceId: number(),
18506
18783
  addonId: string(),
@@ -18545,22 +18822,131 @@ method(object({
18545
18822
  kind: "mutation",
18546
18823
  auth: "admin"
18547
18824
  });
18548
- var RegisteredStreamSchema = object({
18549
- streamId: string(),
18550
- label: string().optional(),
18551
- codec: string(),
18552
- type: _enum(["video", "audio"]),
18553
- sourceUrl: string()
18825
+ /**
18826
+ * server-management — per-NODE singleton capability for a node's ROOT
18827
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18828
+ * agents).
18829
+ *
18830
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18831
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18832
+ * version describes the node. Updates install into
18833
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18834
+ * starter (probation boot + auto-rollback to N-1).
18835
+ *
18836
+ * Providers:
18837
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18838
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18839
+ * unpinned calls.
18840
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18841
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18842
+ * `$hub.registerNode` manifest.
18843
+ *
18844
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18845
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18846
+ * SDK) routes the call to that node's provider via the standard remote
18847
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18848
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18849
+ *
18850
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18851
+ */
18852
+ /**
18853
+ * Where the running hub's code was loaded from:
18854
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18855
+ * plain resolution and runtime updates are refused.
18856
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18857
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18858
+ */
18859
+ var ServerBootModeSchema = _enum([
18860
+ "workspace",
18861
+ "baked",
18862
+ "data-root"
18863
+ ]);
18864
+ /**
18865
+ * Update lifecycle state:
18866
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18867
+ * - `pending-restart` — a version is staged and the node has NOT yet
18868
+ * restarted onto it (still running the OLD version).
18869
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18870
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18871
+ * Apply/rollback are refused in this state and the node must NOT be
18872
+ * manually restarted, or the probation boot auto-rolls-back.
18873
+ */
18874
+ var ServerUpdateStateSchema = _enum([
18875
+ "idle",
18876
+ "checking",
18877
+ "staging",
18878
+ "pending-restart",
18879
+ "awaiting-confirmation"
18880
+ ]);
18881
+ var ServerRollbackInfoSchema = object({
18882
+ /** The version that failed (or was manually rolled back). */
18883
+ fromVersion: string(),
18884
+ /** The version rolled back to; null = the baked seed. */
18885
+ toVersion: string().nullable(),
18886
+ atMs: number(),
18887
+ reason: string()
18554
18888
  });
18555
- var ExposedResourceSchema = object({
18556
- streamId: string(),
18557
- format: string(),
18558
- value: string()
18889
+ var ServerPackageStatusSchema = object({
18890
+ /** Root package name (`@camstack/server` on the hub). */
18891
+ packageName: string(),
18892
+ /** Version of the code the running process ACTUALLY loaded. */
18893
+ runningVersion: string().nullable(),
18894
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18895
+ nodeRuntimeVersion: string().nullable(),
18896
+ /** Active data-dir root version; null when booted from seed/workspace. */
18897
+ activeVersion: string().nullable(),
18898
+ /** N-1 version kept for rollback; null when no previous version exists. */
18899
+ previousVersion: string().nullable(),
18900
+ /** Version of the immutable baked seed closure (image fallback). */
18901
+ seedVersion: string().nullable(),
18902
+ /** Latest registry version from the most recent check (null = never checked). */
18903
+ latestVersion: string().nullable(),
18904
+ updateAvailable: boolean(),
18905
+ bootMode: ServerBootModeSchema,
18906
+ updateState: ServerUpdateStateSchema,
18907
+ /** Version staged + awaiting its probation boot, when one is pending. */
18908
+ pendingVersion: string().nullable(),
18909
+ /** Set when the last freshly-activated version failed its boot health-check. */
18910
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18911
+ /**
18912
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18913
+ * hub is running from the baked seed (or workspace) while installed data-dir
18914
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18915
+ */
18916
+ stateFileCorrupt: boolean(),
18917
+ lastCheckedAtMs: number().nullable()
18918
+ });
18919
+ var ServerUpdateCheckResultSchema = object({
18920
+ packageName: string(),
18921
+ runningVersion: string().nullable(),
18922
+ latestVersion: string().nullable(),
18923
+ updateAvailable: boolean(),
18924
+ checkedAtMs: number(),
18925
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18926
+ error: string().nullable()
18927
+ });
18928
+ var ServerUpdateActionResultSchema = object({
18929
+ accepted: boolean(),
18930
+ targetVersion: string().nullable(),
18931
+ /** True when a graceful restart was scheduled to apply the change. */
18932
+ restarting: boolean(),
18933
+ message: string()
18934
+ });
18935
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18936
+ kind: "mutation",
18937
+ auth: "admin"
18938
+ }), method(object({
18939
+ /** Explicit target version; omitted = latest from the registry. */
18940
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18941
+ kind: "mutation",
18942
+ auth: "admin"
18943
+ }), method(_void(), ServerUpdateActionResultSchema, {
18944
+ kind: "mutation",
18945
+ auth: "admin"
18946
+ }), method(_void(), ServerUpdateActionResultSchema, {
18947
+ kind: "mutation",
18948
+ auth: "admin"
18559
18949
  });
18560
- method(object({
18561
- deviceId: number(),
18562
- streams: array(RegisteredStreamSchema).readonly()
18563
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18564
18950
  /**
18565
18951
  * Query filter for settings-store collections.
18566
18952
  */
@@ -18713,9 +19099,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18713
19099
  /**
18714
19100
  * A single device snapshot returned as base64 JPEG/PNG.
18715
19101
  *
18716
- * Shared with the `snapshot-provider` collection cap — the orchestrator
18717
- * receives the same shape from each native provider and from the
18718
- * broker-based fallback.
19102
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19103
+ * the device-native provider (onboard capture) or from the stream-broker
19104
+ * prebuffer fallback.
18719
19105
  */
18720
19106
  var SnapshotImageSchema = object({
18721
19107
  base64: string(),
@@ -18746,11 +19132,12 @@ DeviceType.Camera, method(object({
18746
19132
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18747
19133
  kind: "mutation",
18748
19134
  auth: "admin"
18749
- });
18750
- method(object({ deviceId: number() }), boolean()), method(object({
19135
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18751
19136
  deviceId: number(),
18752
- streamId: string().optional()
18753
- }), SnapshotImageSchema.nullable());
19137
+ lastCapturedAt: number().nullable(),
19138
+ cacheAgeMs: number().nullable(),
19139
+ etag: string().nullable()
19140
+ })));
18754
19141
  /**
18755
19142
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18756
19143
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19001,10 +19388,32 @@ method(_void(), array(TurnServerSchema).readonly());
19001
19388
  * b. `finishAuthentication({userId, response})` → server verifies
19002
19389
  * the assertion, bumps the credential counter, returns ok.
19003
19390
  *
19391
+ * 2b. Usernameless (discoverable-credential) authentication — the
19392
+ * passkey IS the primary factor, no password leg:
19393
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19394
+ * EMPTY `allowCredentials` (the browser offers every resident
19395
+ * passkey it holds for this RP) + `userVerification: 'required'`
19396
+ * (the passkey replaces both factors, so UV is mandatory).
19397
+ * The challenge is stored server-side, NOT bound to any user.
19398
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19399
+ * resolves the credential by the response's credential id,
19400
+ * verifies the assertion against the stored challenge + that
19401
+ * credential's public key/counter, and returns the OWNING
19402
+ * `userId` — the caller (core auth router) mints the session.
19403
+ *
19004
19404
  * 3. Management:
19005
19405
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19006
19406
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19007
19407
  *
19408
+ * 4. Second-factor preference (opt-in, default OFF):
19409
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19410
+ * demanded as a second factor after a password login ONLY when the
19411
+ * user explicitly opts in via `setSecondFactorPreference`.
19412
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19413
+ * row ⇒ `enabled: false`).
19414
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19415
+ * the providing addon beside its credentials.
19416
+ *
19008
19417
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19009
19418
  * the admin-ui composes the begin/finish round-trip and never exposes
19010
19419
  * the cap to non-admins.
@@ -19047,6 +19456,17 @@ method(object({
19047
19456
  }), object({ verified: boolean() }), {
19048
19457
  kind: "mutation",
19049
19458
  access: "view"
19459
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19460
+ kind: "mutation",
19461
+ access: "view"
19462
+ }), method(object({
19463
+ /** AuthenticationResponseJSON from the browser. */
19464
+ response: record(string(), unknown()) }), object({
19465
+ verified: boolean(),
19466
+ userId: string().nullable()
19467
+ }), {
19468
+ kind: "mutation",
19469
+ access: "view"
19050
19470
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19051
19471
  userId: string(),
19052
19472
  credentialId: string()
@@ -19054,6 +19474,13 @@ method(object({
19054
19474
  kind: "mutation",
19055
19475
  auth: "admin",
19056
19476
  access: "delete"
19477
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19478
+ userId: string(),
19479
+ enabled: boolean()
19480
+ }), object({ success: literal(true) }), {
19481
+ kind: "mutation",
19482
+ auth: "admin",
19483
+ access: "create"
19057
19484
  });
19058
19485
  /**
19059
19486
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19111,9 +19538,10 @@ method(object({
19111
19538
  auth: "admin"
19112
19539
  });
19113
19540
  /**
19114
- * Optional client-side hints sent at session creation to help the
19115
- * provider pick the best native source. All fields are optional —
19116
- * a viewer that knows nothing still gets a sane default.
19541
+ * Optional client-side hints sent at session creation to help the provider
19542
+ * pick the best native source. All fields optional — a viewer that knows
19543
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19544
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19117
19545
  */
19118
19546
  var webrtcClientHintsSchema = object({
19119
19547
  viewportWidth: number().int().positive().optional(),
@@ -19124,22 +19552,6 @@ var webrtcClientHintsSchema = object({
19124
19552
  /** Hard tier override; takes precedence over scoring when registered. */
19125
19553
  prefersTier: string().optional()
19126
19554
  }).partial();
19127
- method(object({
19128
- streamId: string(),
19129
- sdpOffer: string()
19130
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19131
- streamId: string(),
19132
- codec: string()
19133
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19134
- streamId: string(),
19135
- hints: webrtcClientHintsSchema.optional()
19136
- }), object({
19137
- sessionId: string(),
19138
- sdpOffer: string()
19139
- }), { kind: "mutation" }), method(object({
19140
- sessionId: string(),
19141
- sdpAnswer: string()
19142
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19143
19555
  /**
19144
19556
  * Discriminated target for a WebRTC session. The client sends this
19145
19557
  * structured object instead of building / parsing brokerId strings;
@@ -19870,7 +20282,17 @@ var FaceInfoSchema = object({
19870
20282
  recognizedIdentityId: string().optional(),
19871
20283
  identityName: string().optional(),
19872
20284
  assigned: boolean(),
19873
- base64: string().optional()
20285
+ base64: string().optional(),
20286
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20287
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20288
+ * legacy rows written before design B. */
20289
+ faceBbox: BoundingBoxSchema.optional(),
20290
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20291
+ * Fetch the native JPEG via the event-media data-plane
20292
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20293
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20294
+ * back to the inline `base64` face crop. */
20295
+ keyFrameMediaKey: string().optional()
19874
20296
  });
19875
20297
  var FaceFilterEnum = _enum([
19876
20298
  "unassigned",
@@ -20567,6 +20989,16 @@ var TopologyCategorySchema = object({
20567
20989
  healthy: number(),
20568
20990
  addons: array(TopologyCategoryAddonSchema).readonly()
20569
20991
  });
20992
+ /**
20993
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20994
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20995
+ * version visibility for the Server management surface. Nullable: offline
20996
+ * rows and pre-phase-2 nodes report none.
20997
+ */
20998
+ var TopologyRootPackageSchema = object({
20999
+ name: string(),
21000
+ version: string()
21001
+ });
20570
21002
  var TopologyNodeSchema = object({
20571
21003
  id: string(),
20572
21004
  name: string(),
@@ -20590,7 +21022,8 @@ var TopologyNodeSchema = object({
20590
21022
  status: string()
20591
21023
  })).readonly(),
20592
21024
  processes: array(TopologyProcessSchema).readonly(),
20593
- categories: array(TopologyCategorySchema).readonly()
21025
+ categories: array(TopologyCategorySchema).readonly(),
21026
+ rootPackage: TopologyRootPackageSchema.nullable()
20594
21027
  });
20595
21028
  var CapUsageEdgeSchema = object({
20596
21029
  callerAddonId: string(),
@@ -23390,6 +23823,12 @@ Object.freeze({
23390
23823
  addonId: null,
23391
23824
  access: "create"
23392
23825
  },
23826
+ "loginMethod.getLoginMethods": {
23827
+ capName: "login-method",
23828
+ capScope: "system",
23829
+ addonId: null,
23830
+ access: "view"
23831
+ },
23393
23832
  "mediaPlayer.next": {
23394
23833
  capName: "media-player",
23395
23834
  capScope: "device",
@@ -23972,6 +24411,12 @@ Object.freeze({
23972
24411
  addonId: null,
23973
24412
  access: "view"
23974
24413
  },
24414
+ "pipelineAnalytics.getKeyEvents": {
24415
+ capName: "pipeline-analytics",
24416
+ capScope: "device",
24417
+ addonId: null,
24418
+ access: "view"
24419
+ },
23975
24420
  "pipelineAnalytics.getMotionEvents": {
23976
24421
  capName: "pipeline-analytics",
23977
24422
  capScope: "device",
@@ -24020,23 +24465,23 @@ Object.freeze({
24020
24465
  addonId: null,
24021
24466
  access: "create"
24022
24467
  },
24023
- "pipelineExecutor.deleteModel": {
24468
+ "pipelineExecutor.clearDeviceOverrides": {
24024
24469
  capName: "pipeline-executor",
24025
24470
  capScope: "system",
24026
24471
  addonId: null,
24027
24472
  access: "delete"
24028
24473
  },
24029
- "pipelineExecutor.deleteTemplate": {
24474
+ "pipelineExecutor.deleteModel": {
24030
24475
  capName: "pipeline-executor",
24031
24476
  capScope: "system",
24032
24477
  addonId: null,
24033
24478
  access: "delete"
24034
24479
  },
24035
- "pipelineExecutor.detect": {
24480
+ "pipelineExecutor.deleteTemplate": {
24036
24481
  capName: "pipeline-executor",
24037
24482
  capScope: "system",
24038
24483
  addonId: null,
24039
- access: "view"
24484
+ access: "delete"
24040
24485
  },
24041
24486
  "pipelineExecutor.downloadModel": {
24042
24487
  capName: "pipeline-executor",
@@ -24230,13 +24675,13 @@ Object.freeze({
24230
24675
  addonId: null,
24231
24676
  access: "create"
24232
24677
  },
24233
- "pipelineOrchestrator.assignAudio": {
24234
- capName: "pipeline-orchestrator",
24678
+ "pipelineExecutor.validatePipeline": {
24679
+ capName: "pipeline-executor",
24235
24680
  capScope: "system",
24236
24681
  addonId: null,
24237
- access: "create"
24682
+ access: "view"
24238
24683
  },
24239
- "pipelineOrchestrator.assignDecoder": {
24684
+ "pipelineOrchestrator.assignAudio": {
24240
24685
  capName: "pipeline-orchestrator",
24241
24686
  capScope: "system",
24242
24687
  addonId: null,
@@ -24320,19 +24765,13 @@ Object.freeze({
24320
24765
  addonId: null,
24321
24766
  access: "view"
24322
24767
  },
24323
- "pipelineOrchestrator.getDecoderAssignment": {
24768
+ "pipelineOrchestrator.getGlobalMetrics": {
24324
24769
  capName: "pipeline-orchestrator",
24325
24770
  capScope: "system",
24326
24771
  addonId: null,
24327
24772
  access: "view"
24328
24773
  },
24329
- "pipelineOrchestrator.getDecoderAssignments": {
24330
- capName: "pipeline-orchestrator",
24331
- capScope: "system",
24332
- addonId: null,
24333
- access: "view"
24334
- },
24335
- "pipelineOrchestrator.getGlobalMetrics": {
24774
+ "pipelineOrchestrator.getIngestOwner": {
24336
24775
  capName: "pipeline-orchestrator",
24337
24776
  capScope: "system",
24338
24777
  addonId: null,
@@ -24374,6 +24813,12 @@ Object.freeze({
24374
24813
  addonId: null,
24375
24814
  access: "delete"
24376
24815
  },
24816
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24817
+ capName: "pipeline-orchestrator",
24818
+ capScope: "system",
24819
+ addonId: null,
24820
+ access: "delete"
24821
+ },
24377
24822
  "pipelineOrchestrator.resolvePipeline": {
24378
24823
  capName: "pipeline-orchestrator",
24379
24824
  capScope: "system",
@@ -24410,37 +24855,37 @@ Object.freeze({
24410
24855
  addonId: null,
24411
24856
  access: "create"
24412
24857
  },
24413
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24858
+ "pipelineOrchestrator.setAgentReachableHost": {
24414
24859
  capName: "pipeline-orchestrator",
24415
24860
  capScope: "system",
24416
24861
  addonId: null,
24417
24862
  access: "create"
24418
24863
  },
24419
- "pipelineOrchestrator.setCameraStepOverride": {
24864
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24420
24865
  capName: "pipeline-orchestrator",
24421
24866
  capScope: "system",
24422
24867
  addonId: null,
24423
24868
  access: "create"
24424
24869
  },
24425
- "pipelineOrchestrator.setCameraStepToggle": {
24870
+ "pipelineOrchestrator.setCameraStepOverride": {
24426
24871
  capName: "pipeline-orchestrator",
24427
24872
  capScope: "system",
24428
24873
  addonId: null,
24429
24874
  access: "create"
24430
24875
  },
24431
- "pipelineOrchestrator.setCapabilityBinding": {
24876
+ "pipelineOrchestrator.setCameraStepToggle": {
24432
24877
  capName: "pipeline-orchestrator",
24433
24878
  capScope: "system",
24434
24879
  addonId: null,
24435
24880
  access: "create"
24436
24881
  },
24437
- "pipelineOrchestrator.unassignAudio": {
24882
+ "pipelineOrchestrator.setCapabilityBinding": {
24438
24883
  capName: "pipeline-orchestrator",
24439
24884
  capScope: "system",
24440
24885
  addonId: null,
24441
24886
  access: "create"
24442
24887
  },
24443
- "pipelineOrchestrator.unassignDecoder": {
24888
+ "pipelineOrchestrator.unassignAudio": {
24444
24889
  capName: "pipeline-orchestrator",
24445
24890
  capScope: "system",
24446
24891
  addonId: null,
@@ -24500,12 +24945,24 @@ Object.freeze({
24500
24945
  addonId: null,
24501
24946
  access: "view"
24502
24947
  },
24948
+ "pipelineRunner.getNativeCrop": {
24949
+ capName: "pipeline-runner",
24950
+ capScope: "system",
24951
+ addonId: null,
24952
+ access: "view"
24953
+ },
24503
24954
  "pipelineRunner.reportMotion": {
24504
24955
  capName: "pipeline-runner",
24505
24956
  capScope: "system",
24506
24957
  addonId: null,
24507
24958
  access: "create"
24508
24959
  },
24960
+ "pipelineRunner.runDetailSubtree": {
24961
+ capName: "pipeline-runner",
24962
+ capScope: "system",
24963
+ addonId: null,
24964
+ access: "create"
24965
+ },
24509
24966
  "plateGallery.correctPlateText": {
24510
24967
  capName: "plate-gallery",
24511
24968
  capScope: "system",
@@ -24740,33 +25197,45 @@ Object.freeze({
24740
25197
  addonId: null,
24741
25198
  access: "create"
24742
25199
  },
24743
- "restreamer.getExposedResources": {
24744
- capName: "restreamer",
25200
+ "scriptRunner.run": {
25201
+ capName: "script-runner",
25202
+ capScope: "device",
25203
+ addonId: null,
25204
+ access: "create"
25205
+ },
25206
+ "scriptRunner.stop": {
25207
+ capName: "script-runner",
25208
+ capScope: "device",
25209
+ addonId: null,
25210
+ access: "create"
25211
+ },
25212
+ "serverManagement.applyServerUpdate": {
25213
+ capName: "server-management",
24745
25214
  capScope: "system",
24746
25215
  addonId: null,
24747
- access: "view"
25216
+ access: "create"
24748
25217
  },
24749
- "restreamer.registerDevice": {
24750
- capName: "restreamer",
25218
+ "serverManagement.checkServerUpdate": {
25219
+ capName: "server-management",
24751
25220
  capScope: "system",
24752
25221
  addonId: null,
24753
25222
  access: "create"
24754
25223
  },
24755
- "restreamer.unregisterDevice": {
24756
- capName: "restreamer",
25224
+ "serverManagement.getServerPackageStatus": {
25225
+ capName: "server-management",
24757
25226
  capScope: "system",
24758
25227
  addonId: null,
24759
- access: "delete"
25228
+ access: "view"
24760
25229
  },
24761
- "scriptRunner.run": {
24762
- capName: "script-runner",
24763
- capScope: "device",
25230
+ "serverManagement.restartServer": {
25231
+ capName: "server-management",
25232
+ capScope: "system",
24764
25233
  addonId: null,
24765
25234
  access: "create"
24766
25235
  },
24767
- "scriptRunner.stop": {
24768
- capName: "script-runner",
24769
- capScope: "device",
25236
+ "serverManagement.rollbackServerUpdate": {
25237
+ capName: "server-management",
25238
+ capScope: "system",
24770
25239
  addonId: null,
24771
25240
  access: "create"
24772
25241
  },
@@ -24854,23 +25323,17 @@ Object.freeze({
24854
25323
  addonId: null,
24855
25324
  access: "view"
24856
25325
  },
24857
- "snapshot.invalidateCache": {
25326
+ "snapshot.getSnapshotOverview": {
24858
25327
  capName: "snapshot",
24859
25328
  capScope: "device",
24860
25329
  addonId: null,
24861
- access: "create"
24862
- },
24863
- "snapshotProvider.getSnapshot": {
24864
- capName: "snapshot-provider",
24865
- capScope: "system",
24866
- addonId: null,
24867
25330
  access: "view"
24868
25331
  },
24869
- "snapshotProvider.supportsDevice": {
24870
- capName: "snapshot-provider",
24871
- capScope: "system",
25332
+ "snapshot.invalidateCache": {
25333
+ capName: "snapshot",
25334
+ capScope: "device",
24872
25335
  addonId: null,
24873
- access: "view"
25336
+ access: "create"
24874
25337
  },
24875
25338
  "ssoBridge.signBridgeToken": {
24876
25339
  capName: "sso-bridge",
@@ -25298,30 +25761,6 @@ Object.freeze({
25298
25761
  addonId: null,
25299
25762
  access: "view"
25300
25763
  },
25301
- "streamingEngine.getStreamUrl": {
25302
- capName: "streaming-engine",
25303
- capScope: "system",
25304
- addonId: null,
25305
- access: "view"
25306
- },
25307
- "streamingEngine.listStreams": {
25308
- capName: "streaming-engine",
25309
- capScope: "system",
25310
- addonId: null,
25311
- access: "view"
25312
- },
25313
- "streamingEngine.registerStream": {
25314
- capName: "streaming-engine",
25315
- capScope: "system",
25316
- addonId: null,
25317
- access: "create"
25318
- },
25319
- "streamingEngine.unregisterStream": {
25320
- capName: "streaming-engine",
25321
- capScope: "system",
25322
- addonId: null,
25323
- access: "delete"
25324
- },
25325
25764
  "streamParams.getConfigSchema": {
25326
25765
  capName: "stream-params",
25327
25766
  capScope: "device",
@@ -25568,6 +26007,12 @@ Object.freeze({
25568
26007
  addonId: null,
25569
26008
  access: "view"
25570
26009
  },
26010
+ "userPasskeys.beginDiscoverableAuthentication": {
26011
+ capName: "user-passkeys",
26012
+ capScope: "system",
26013
+ addonId: null,
26014
+ access: "view"
26015
+ },
25571
26016
  "userPasskeys.beginRegistration": {
25572
26017
  capName: "user-passkeys",
25573
26018
  capScope: "system",
@@ -25580,12 +26025,24 @@ Object.freeze({
25580
26025
  addonId: null,
25581
26026
  access: "view"
25582
26027
  },
26028
+ "userPasskeys.finishDiscoverableAuthentication": {
26029
+ capName: "user-passkeys",
26030
+ capScope: "system",
26031
+ addonId: null,
26032
+ access: "view"
26033
+ },
25583
26034
  "userPasskeys.finishRegistration": {
25584
26035
  capName: "user-passkeys",
25585
26036
  capScope: "system",
25586
26037
  addonId: null,
25587
26038
  access: "create"
25588
26039
  },
26040
+ "userPasskeys.getSecondFactorPreference": {
26041
+ capName: "user-passkeys",
26042
+ capScope: "system",
26043
+ addonId: null,
26044
+ access: "view"
26045
+ },
25589
26046
  "userPasskeys.listPasskeys": {
25590
26047
  capName: "user-passkeys",
25591
26048
  capScope: "system",
@@ -25598,6 +26055,12 @@ Object.freeze({
25598
26055
  addonId: null,
25599
26056
  access: "delete"
25600
26057
  },
26058
+ "userPasskeys.setSecondFactorPreference": {
26059
+ capName: "user-passkeys",
26060
+ capScope: "system",
26061
+ addonId: null,
26062
+ access: "create"
26063
+ },
25601
26064
  "vacuumControl.locate": {
25602
26065
  capName: "vacuum-control",
25603
26066
  capScope: "device",
@@ -25670,6 +26133,18 @@ Object.freeze({
25670
26133
  addonId: null,
25671
26134
  access: "view"
25672
26135
  },
26136
+ "viewerUi.getStaticDir": {
26137
+ capName: "viewer-ui",
26138
+ capScope: "system",
26139
+ addonId: null,
26140
+ access: "view"
26141
+ },
26142
+ "viewerUi.getVersion": {
26143
+ capName: "viewer-ui",
26144
+ capScope: "system",
26145
+ addonId: null,
26146
+ access: "view"
26147
+ },
25673
26148
  "waterHeater.setAway": {
25674
26149
  capName: "water-heater",
25675
26150
  capScope: "device",
@@ -25688,54 +26163,6 @@ Object.freeze({
25688
26163
  addonId: null,
25689
26164
  access: "create"
25690
26165
  },
25691
- "webrtc.closeSession": {
25692
- capName: "webrtc",
25693
- capScope: "system",
25694
- addonId: null,
25695
- access: "create"
25696
- },
25697
- "webrtc.createSession": {
25698
- capName: "webrtc",
25699
- capScope: "system",
25700
- addonId: null,
25701
- access: "create"
25702
- },
25703
- "webrtc.handleAnswer": {
25704
- capName: "webrtc",
25705
- capScope: "system",
25706
- addonId: null,
25707
- access: "create"
25708
- },
25709
- "webrtc.handleOffer": {
25710
- capName: "webrtc",
25711
- capScope: "system",
25712
- addonId: null,
25713
- access: "create"
25714
- },
25715
- "webrtc.hasAdaptiveBitrate": {
25716
- capName: "webrtc",
25717
- capScope: "system",
25718
- addonId: null,
25719
- access: "view"
25720
- },
25721
- "webrtc.registerStream": {
25722
- capName: "webrtc",
25723
- capScope: "system",
25724
- addonId: null,
25725
- access: "create"
25726
- },
25727
- "webrtc.supportsStream": {
25728
- capName: "webrtc",
25729
- capScope: "system",
25730
- addonId: null,
25731
- access: "view"
25732
- },
25733
- "webrtc.unregisterStream": {
25734
- capName: "webrtc",
25735
- capScope: "system",
25736
- addonId: null,
25737
- access: "delete"
25738
- },
25739
26166
  "webrtcSession.addIceCandidate": {
25740
26167
  capName: "webrtc-session",
25741
26168
  capScope: "device",