@camstack/addon-provider-ecowitt 0.1.19 → 0.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
@@ -4644,7 +4644,7 @@ function preprocess(fn, schema) {
4644
4644
  });
4645
4645
  }
4646
4646
  //#endregion
4647
- //#region ../types/dist/sleep-CZDdRBua.mjs
4647
+ //#region ../types/dist/sleep-Baang_XW.mjs
4648
4648
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4649
4649
  EventCategory["SystemBoot"] = "system.boot";
4650
4650
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4830,6 +4830,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4830
4830
  */
4831
4831
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4832
4832
  /**
4833
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4834
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4835
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4836
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4837
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4838
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4839
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4840
+ * topology change, so a dropped event self-heals on the next one (plus the
4841
+ * broker's long backstop reconcile query).
4842
+ */
4843
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4844
+ /**
4833
4845
  * Periodic snapshot of per-node pipeline-runner load
4834
4846
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4835
4847
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5353,10 +5365,6 @@ function hydrateField(field, values) {
5353
5365
  };
5354
5366
  }
5355
5367
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5356
- if (field.type === "password") return {
5357
- ...field,
5358
- value: ""
5359
- };
5360
5368
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5361
5369
  return {
5362
5370
  ...field,
@@ -6740,10 +6748,25 @@ function method(input, output, options) {
6740
6748
  timeoutMs: options?.timeoutMs
6741
6749
  };
6742
6750
  }
6751
+ /**
6752
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6753
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6754
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6755
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6756
+ */
6757
+ function systemMethod(input, output, options) {
6758
+ return {
6759
+ ...method(input, output, options),
6760
+ systemOnly: true
6761
+ };
6762
+ }
6743
6763
  /** Shorthand to define an event schema */
6744
6764
  function event(data) {
6745
6765
  return { data };
6746
6766
  }
6767
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6768
+ var VersionOutputSchema$1 = object({ version: string() });
6769
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6747
6770
  var StaticDirOutputSchema = object({ staticDir: string() });
6748
6771
  var VersionOutputSchema = object({ version: string() });
6749
6772
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6925,6 +6948,36 @@ var ModelFormatsSchema = object({
6925
6948
  tflite: ModelFormatEntrySchema.optional(),
6926
6949
  pt: ModelFormatEntrySchema.optional()
6927
6950
  });
6951
+ /**
6952
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6953
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6954
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6955
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6956
+ * resolution/download/persistence; this is a presentation overlay resolved back
6957
+ * to an `id`.
6958
+ */
6959
+ var ModelVariantGroupSchema = object({
6960
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6961
+ family: string(),
6962
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6963
+ tier: string(),
6964
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6965
+ precision: _enum(["fp32", "int8"]).optional(),
6966
+ /**
6967
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6968
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6969
+ * future performance variants plug into.
6970
+ */
6971
+ optimization: _enum(["standard", "fast"]).optional(),
6972
+ /**
6973
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6974
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6975
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6976
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6977
+ * the group so the selector can offer it as a variant axis.
6978
+ */
6979
+ resolution: number().int().positive().optional()
6980
+ });
6928
6981
  var ModelCatalogEntrySchema = object({
6929
6982
  id: string(),
6930
6983
  name: string(),
@@ -6954,7 +7007,43 @@ var ModelCatalogEntrySchema = object({
6954
7007
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6955
7008
  * Downloaded into the same modelsDir alongside the model file.
6956
7009
  */
6957
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7010
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7011
+ /**
7012
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7013
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7014
+ * model list and excluded from the auto format-default pick. Set on the
7015
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7016
+ * the active lineup stays the coherent curated ladder without deleting a
7017
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7018
+ * an explicit legacy id that has a build for the node's format.
7019
+ */
7020
+ legacy: boolean().optional(),
7021
+ /**
7022
+ * Measured quality/latency metadata — populated from the benchmark addon on
7023
+ * the real node classes. Absent = not yet measured (most entries today; the
7024
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7025
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7026
+ */
7027
+ metrics: object({
7028
+ map50: number().optional(),
7029
+ p95LatencyMs: record(string(), number()).optional()
7030
+ }).optional(),
7031
+ /**
7032
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7033
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7034
+ * the retraining addon and any future commercial distribution.
7035
+ */
7036
+ license: string().optional(),
7037
+ /**
7038
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7039
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7040
+ * of a family's sizes and quantizations collapse into one grouped picker
7041
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7042
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7043
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7044
+ * is a presentation overlay resolved back to an `id`.
7045
+ */
7046
+ group: ModelVariantGroupSchema.optional()
6958
7047
  });
6959
7048
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6960
7049
  format: literal("openvino"),
@@ -7015,8 +7104,8 @@ var RecordingModeSchema = _enum([
7015
7104
  "onAudioThreshold"
7016
7105
  ]);
7017
7106
  /**
7018
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7019
- * reads directly (never inferred from `rules`):
7107
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7108
+ * UI reads directly (never inferred from `rules`):
7020
7109
  * - `off` — not recording.
7021
7110
  * - `events` — record only around triggers (motion / audio threshold),
7022
7111
  * with pre/post-buffer.
@@ -9179,26 +9268,13 @@ onBrightnessChanged: { data: object({
9179
9268
  */
9180
9269
  runtimeState: BrightnessStatusSchema
9181
9270
  };
9271
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9182
9272
  var StreamFormatSchema = _enum([
9183
9273
  "webrtc",
9184
9274
  "hls",
9185
9275
  "mjpeg",
9186
9276
  "rtsp"
9187
9277
  ]);
9188
- var StreamInfoSchema = object({
9189
- streamId: string(),
9190
- format: StreamFormatSchema,
9191
- url: string().nullable(),
9192
- active: boolean()
9193
- });
9194
- method(object({
9195
- streamId: string(),
9196
- sourceUrl: string(),
9197
- codec: string().optional()
9198
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9199
- streamId: string(),
9200
- format: StreamFormatSchema
9201
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9202
9278
  var RtspRestreamEntrySchema = object({
9203
9279
  brokerId: string(),
9204
9280
  url: string(),
@@ -10066,37 +10142,7 @@ var consumablesCapability = {
10066
10142
  scope: "device",
10067
10143
  deviceNative: true,
10068
10144
  mode: "singleton",
10069
- deviceTypes: [
10070
- DeviceType.Camera,
10071
- DeviceType.Hub,
10072
- DeviceType.Light,
10073
- DeviceType.Siren,
10074
- DeviceType.Switch,
10075
- DeviceType.Sensor,
10076
- DeviceType.Thermostat,
10077
- DeviceType.Button,
10078
- DeviceType.EventEmitter,
10079
- DeviceType.Update,
10080
- DeviceType.Generic,
10081
- DeviceType.Notifier,
10082
- DeviceType.Script,
10083
- DeviceType.Automation,
10084
- DeviceType.Lock,
10085
- DeviceType.Cover,
10086
- DeviceType.Valve,
10087
- DeviceType.Humidifier,
10088
- DeviceType.WaterHeater,
10089
- DeviceType.Fan,
10090
- DeviceType.MediaPlayer,
10091
- DeviceType.AlarmPanel,
10092
- DeviceType.Control,
10093
- DeviceType.Presence,
10094
- DeviceType.Weather,
10095
- DeviceType.Vacuum,
10096
- DeviceType.LawnMower,
10097
- DeviceType.Container,
10098
- DeviceType.Image
10099
- ],
10145
+ deviceTypes: Object.values(DeviceType),
10100
10146
  deviceConfig: { ui: {
10101
10147
  kind: "widget",
10102
10148
  widgetId: "host/consumables-panel",
@@ -11554,7 +11600,7 @@ var BoundingBoxSchema = object({
11554
11600
  w: number(),
11555
11601
  h: number()
11556
11602
  });
11557
- var SpatialDetectionSchema = object({
11603
+ object({
11558
11604
  class: string(),
11559
11605
  originalClass: string(),
11560
11606
  score: number(),
@@ -11689,7 +11735,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11689
11735
  enabled: boolean(),
11690
11736
  modelId: string(),
11691
11737
  children: array(PipelineDefaultStepSchema).readonly(),
11692
- engine: PipelineEngineChoiceSchema.optional(),
11693
11738
  group: string().optional(),
11694
11739
  settings: record(string(), unknown()).optional()
11695
11740
  }));
@@ -11714,7 +11759,9 @@ var PipelineModelOptionSchema = object({
11714
11759
  formats: record(string(), object({
11715
11760
  downloaded: boolean(),
11716
11761
  sizeMB: number()
11717
- }))
11762
+ })),
11763
+ group: ModelVariantGroupSchema.optional(),
11764
+ legacy: boolean().optional()
11718
11765
  });
11719
11766
  var ConfigFieldBridge = custom();
11720
11767
  var PipelineAddonSchemaSchema = object({
@@ -11728,6 +11775,7 @@ var PipelineAddonSchemaSchema = object({
11728
11775
  defaultModelId: string(),
11729
11776
  defaultModelIdByFormat: record(string(), string()).optional(),
11730
11777
  enabledByDefault: boolean().optional(),
11778
+ backfillIntoExistingOverrides: boolean().optional(),
11731
11779
  defaultConfidence: number(),
11732
11780
  group: string().optional(),
11733
11781
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11744,11 +11792,6 @@ var PipelineSchemaSchema = object({
11744
11792
  selectedEngine: PipelineEngineChoiceSchema,
11745
11793
  slots: array(PipelineSlotSchemaSchema).readonly()
11746
11794
  });
11747
- var DetectorOutputSchema = object({
11748
- detections: array(SpatialDetectionSchema).readonly(),
11749
- inferenceMs: number(),
11750
- modelId: string()
11751
- });
11752
11795
  var EngineProvisioningSchema = object({
11753
11796
  runtimeId: _enum([
11754
11797
  "onnx",
@@ -11765,15 +11808,42 @@ var EngineProvisioningSchema = object({
11765
11808
  ]),
11766
11809
  progress: number().optional(),
11767
11810
  error: string().optional(),
11768
- nextRetryAt: number().optional()
11811
+ nextRetryAt: number().optional(),
11812
+ /**
11813
+ * Gate A (config-correctness gate at engine change): human-readable
11814
+ * config issues surfaced EAGERLY when the node's engine changes — model
11815
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11816
+ * has a <format> build"). Additive/optional: informational only, never
11817
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11818
+ * Absent/empty when the node-default tree resolves cleanly.
11819
+ */
11820
+ configIssues: array(string()).optional()
11769
11821
  });
11770
11822
  var PipelineStepInputSchema = lazy(() => object({
11771
11823
  addonId: string(),
11772
- modelId: string(),
11824
+ modelId: string().optional(),
11773
11825
  enabled: boolean().default(true),
11774
11826
  children: array(PipelineStepInputSchema).optional(),
11775
11827
  settings: record(string(), unknown()).optional()
11776
11828
  }));
11829
+ var ModelSubstitutionSchema = object({
11830
+ addonId: string(),
11831
+ chosen: string(),
11832
+ running: string(),
11833
+ format: string()
11834
+ });
11835
+ var PipelineValidationIssueSchema = object({
11836
+ addonId: string(),
11837
+ kind: _enum(["unknown-addon", "no-format-build"]),
11838
+ detail: string()
11839
+ });
11840
+ var PipelineValidationResultSchema = object({
11841
+ ok: boolean(),
11842
+ issues: array(PipelineValidationIssueSchema).readonly(),
11843
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11844
+ /** The node's `currentEngine.format` this validation ran against. */
11845
+ format: string()
11846
+ });
11777
11847
  var ReferenceImageEntrySchema = object({
11778
11848
  filename: string(),
11779
11849
  stepIds: array(string()).readonly().optional()
@@ -11844,7 +11914,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11844
11914
  })) }), object({ success: literal(true) }), {
11845
11915
  kind: "mutation",
11846
11916
  auth: "admin"
11847
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11917
+ }), method(object({ nodeId: string() }), object({
11918
+ success: literal(true),
11919
+ clearedDevices: number()
11920
+ }), {
11921
+ kind: "mutation",
11922
+ auth: "admin"
11923
+ }), 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({
11848
11924
  name: string(),
11849
11925
  steps: array(PipelineTemplateStepSchema).readonly(),
11850
11926
  engine: PipelineEngineChoiceSchema
@@ -11861,10 +11937,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11861
11937
  modelId: string(),
11862
11938
  format: ModelFormatSchema$1
11863
11939
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11864
- addonId: string(),
11865
- frame: FrameInputSchema,
11866
- config: record(string(), unknown()).optional()
11867
- }), DetectorOutputSchema), method(object({
11868
11940
  engine: PipelineEngineChoiceSchema.optional(),
11869
11941
  steps: array(PipelineStepInputSchema).min(1),
11870
11942
  frame: FrameInputSchema.optional(),
@@ -11885,7 +11957,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11885
11957
  image: _instanceof(Uint8Array).optional(),
11886
11958
  referenceImage: string().optional(),
11887
11959
  deviceId: number().optional(),
11888
- sessionId: string().optional()
11960
+ sessionId: string().optional(),
11961
+ /**
11962
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
11963
+ * reference-image, and detail-subtree calls. 'frame' is the live
11964
+ * per-frame dispatch: ONLY root-plane steps run; crop children
11965
+ * (inputClasses ≠ null) are skipped and served per-track via
11966
+ * pipelineRunner.runDetailSubtree (two-plane design).
11967
+ */
11968
+ plane: _enum(["full", "frame"]).optional()
11889
11969
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
11890
11970
  engine: PipelineEngineChoiceSchema.optional(),
11891
11971
  steps: array(PipelineStepInputSchema).min(1),
@@ -12043,6 +12123,47 @@ var zonesCapability = {
12043
12123
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12044
12124
  };
12045
12125
  /**
12126
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12127
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12128
+ * so the caller supplies only the detection-res bbox divided by the detection
12129
+ * dims — no native resolution to plumb.
12130
+ */
12131
+ var NativeCropBboxSchema = object({
12132
+ x: number(),
12133
+ y: number(),
12134
+ w: number(),
12135
+ h: number()
12136
+ });
12137
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12138
+ var NativeCropResultSchema = object({
12139
+ /** Packed rgb (24-bit) pixels of the crop. */
12140
+ bytes: _instanceof(Uint8Array),
12141
+ width: number().int().positive(),
12142
+ height: number().int().positive()
12143
+ });
12144
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12145
+ * originating detection, in FRAME-space coordinates. Reuses
12146
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12147
+ * the coordinates are frame-space rather than getNativeCrop's
12148
+ * normalized [0,1] convention). */
12149
+ var DetailParentSchema = object({
12150
+ bbox: NativeCropBboxSchema,
12151
+ className: string()
12152
+ });
12153
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12154
+ * or refined detection produced by running the crop-subtree on a
12155
+ * single tracked detection. */
12156
+ var DetailResultSchema = object({
12157
+ stepId: string(),
12158
+ className: string(),
12159
+ score: number(),
12160
+ /** FRAME-space bbox (already mapped back from crop space). */
12161
+ bbox: NativeCropBboxSchema.optional(),
12162
+ embedding: string().optional(),
12163
+ label: string().optional(),
12164
+ alignedCropJpeg: string().optional()
12165
+ });
12166
+ /**
12046
12167
  * Per-camera tunable ranges + defaults. Single source of truth used
12047
12168
  * by both the Zod data schema (validation + default fallback) and
12048
12169
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12137,6 +12258,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12137
12258
  kind: literal("remote-restream"),
12138
12259
  /** The camera's source-owner node (slice 1: always the hub). */
12139
12260
  ownerNodeId: string(),
12261
+ /**
12262
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12263
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12264
+ * dials THIS host for the owner's restream, in preference to the
12265
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12266
+ */
12267
+ ownerReachableHost: string().optional(),
12140
12268
  /** Operator override for the owner host the runner dials. */
12141
12269
  hubHostnameOverride: string().optional()
12142
12270
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12145,13 +12273,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12145
12273
  * specific runner instance via `attachCamera`. Carries everything the
12146
12274
  * runner needs to subscribe to the local broker and execute inference.
12147
12275
  *
12148
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12149
- * optional `audio`) travels with the attach payload. The runner keeps it
12150
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12151
- * restart the orchestrator re-sends the latest snapshot.
12152
- *
12153
- * `engine`/`steps`/`audio` are optional during the additive migration
12154
- * window; once orchestrator + UI are migrated they become required.
12276
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12277
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12278
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12279
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12280
+ * node-local, resolved by the executing runner at dispatch time.
12155
12281
  */
12156
12282
  var RunnerCameraConfigSchema = object({
12157
12283
  deviceId: number(),
@@ -12202,14 +12328,11 @@ var RunnerCameraConfigSchema = object({
12202
12328
  */
12203
12329
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12204
12330
  pipelineEnabled: boolean().default(true),
12205
- /** Engine choice for video steps (runtime+backend+format). */
12206
- engine: PipelineEngineChoiceSchema.optional(),
12207
12331
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12208
12332
  steps: array(PipelineStepInputSchema).readonly().optional(),
12209
12333
  /** Audio classification branch. `enabled:false` disables, null skips. */
12210
12334
  audio: object({
12211
- engine: PipelineEngineChoiceSchema,
12212
- modelId: string(),
12335
+ modelId: string().optional(),
12213
12336
  enabled: boolean()
12214
12337
  }).nullable().optional(),
12215
12338
  /**
@@ -12296,7 +12419,17 @@ var RunnerLocalMetricsSchema = object({
12296
12419
  avgInferenceTimeMs: number(),
12297
12420
  queueDepth: number()
12298
12421
  });
12299
- 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());
12422
+ 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({
12423
+ handle: FrameHandleSchema,
12424
+ bbox: NativeCropBboxSchema,
12425
+ maxWidth: number().int().positive().optional()
12426
+ }), NativeCropResultSchema.nullable()), method(object({
12427
+ deviceId: number(),
12428
+ frameHandle: FrameHandleSchema.optional(),
12429
+ cropJpeg: string().optional(),
12430
+ parent: DetailParentSchema,
12431
+ steps: array(string()).optional()
12432
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12300
12433
  /**
12301
12434
  * Hardware / firmware motion sensor cap — binary detected state plus
12302
12435
  * a timestamp of the last observation. Distinct from
@@ -15227,7 +15360,9 @@ var AddonPageDeclarationSchema$1 = object({
15227
15360
  icon: string(),
15228
15361
  path: string(),
15229
15362
  remoteName: string(),
15230
- bundle: string()
15363
+ bundle: string(),
15364
+ section: string().optional(),
15365
+ sectionLabel: string().optional()
15231
15366
  });
15232
15367
  var AddonPageInfoSchema = object({
15233
15368
  addonId: string(),
@@ -15267,7 +15402,18 @@ var AddonPageDeclarationSchema = object({
15267
15402
  * the static-file route can compute an mtime-based cache-buster URL
15268
15403
  * without a separate filesystem stat.
15269
15404
  */
15270
- bundle: string()
15405
+ bundle: string(),
15406
+ /**
15407
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15408
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15409
+ * Any OTHER string creates (or joins) a custom section rendered after
15410
+ * the built-in groups; its label comes from `sectionLabel` (first
15411
+ * declaration wins), falling back to the id. Absent → the legacy
15412
+ * "Addon Pages" group.
15413
+ */
15414
+ section: string().optional(),
15415
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15416
+ sectionLabel: string().optional()
15271
15417
  });
15272
15418
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15273
15419
  var AddonHttpRouteSchema = object({
@@ -15483,6 +15629,17 @@ var WidgetMetadataSchema = object({
15483
15629
  deviceContext: boolean().default(false),
15484
15630
  integrationContext: boolean().default(false)
15485
15631
  }),
15632
+ /**
15633
+ * Loadable BEFORE authentication. The normal widget registry listing
15634
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15635
+ * (the login page) cannot discover a widget through it. A widget that
15636
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15637
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15638
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15639
+ * than the authenticated registry, and its bundle is served by the
15640
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15641
+ */
15642
+ preAuth: boolean().optional().default(false),
15486
15643
  /** Dashboard placement HINTS (operator can override per instance). */
15487
15644
  defaultSize: WidgetSizeEnum.default("md"),
15488
15645
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15784,6 +15941,66 @@ method(object({
15784
15941
  password: string()
15785
15942
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15786
15943
  /**
15944
+ * `login-method` — collection cap through which auth addons contribute
15945
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15946
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15947
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15948
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15949
+ * procedure aggregates them for the unauthenticated login page.
15950
+ *
15951
+ * A contribution is a discriminated union on `kind`:
15952
+ *
15953
+ * - `redirect` — a declarative button. The login page renders a generic
15954
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15955
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15956
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15957
+ * login page needs NO change.
15958
+ *
15959
+ * - `widget` — a Module-Federation widget the login page mounts (via
15960
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15961
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15962
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15963
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15964
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15965
+ *
15966
+ * Every contribution carries a `stage`:
15967
+ * - `primary` — shown on the first credentials screen (OIDC /
15968
+ * magic-link buttons; a future usernameless passkey).
15969
+ * - `second-factor` — shown AFTER the password leg, gated on the
15970
+ * returned `factors` (passkey-as-2FA today).
15971
+ *
15972
+ * `mount: skip` — the cap is read server-side by the core auth router
15973
+ * (`registry.getCollection('login-method')`), never mounted as its own
15974
+ * tRPC router.
15975
+ */
15976
+ /** When a login method renders in the two-phase login flow. */
15977
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15978
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15979
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15980
+ kind: literal("redirect"),
15981
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15982
+ id: string(),
15983
+ /** Operator-facing button label. */
15984
+ label: string(),
15985
+ /** lucide-react icon name. */
15986
+ icon: string().optional(),
15987
+ /** Addon-owned HTTP route the button navigates to (GET). */
15988
+ startUrl: string(),
15989
+ stage: LoginStageEnum
15990
+ }), object({
15991
+ kind: literal("widget"),
15992
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15993
+ id: string(),
15994
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15995
+ addonId: string(),
15996
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15997
+ bundle: string(),
15998
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15999
+ remote: WidgetRemoteSchema,
16000
+ stage: LoginStageEnum
16001
+ })]);
16002
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16003
+ /**
15787
16004
  * Orchestrator-side destination metadata. The orchestrator computes
15788
16005
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15789
16006
  * (admin UI, restore flow) see one canonical key.
@@ -17887,7 +18104,17 @@ var TrackSchema = object({
17887
18104
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17888
18105
  totalDistance: number(),
17889
18106
  state: TrackStateSchema,
17890
- active: boolean()
18107
+ active: boolean(),
18108
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18109
+ * track expiry, recomputed on late label). Absent on legacy rows written
18110
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18111
+ importance: number().optional(),
18112
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18113
+ * "best" frame). Absent when the track produced no object events. */
18114
+ bestEventId: string().optional(),
18115
+ /** Tag of the importance sub-signal that dominated the score
18116
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18117
+ importanceReason: string().optional()
17891
18118
  });
17892
18119
  var BaseEventFields = {
17893
18120
  id: string(),
@@ -17952,8 +18179,18 @@ var ObjectEventSchema = object({
17952
18179
  frameHeight: number().optional(),
17953
18180
  /** MediaStore key for the crop attached to this event (if any). */
17954
18181
  mediaKey: string().optional(),
18182
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18183
+ * best-detection full frame). Resolve via the event-media data-plane
18184
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18185
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18186
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18187
+ keyFrameMediaKey: string().optional(),
17955
18188
  /** Populated by B5 (recording playback URL for this event). */
17956
- mediaUrl: string().optional()
18189
+ mediaUrl: string().optional(),
18190
+ /** The parent track's key-event importance [0,1], propagated to every object
18191
+ * event of the track (so an event row can be sorted by importance without a
18192
+ * track join). Absent on legacy rows / before the track was scored. */
18193
+ importance: number().optional()
17957
18194
  });
17958
18195
  var AudioEventSchema = object({
17959
18196
  ...BaseEventFields,
@@ -17977,7 +18214,8 @@ var MediaFileKindEnum = _enum([
17977
18214
  "fullFrame",
17978
18215
  "fullFrameBoxed",
17979
18216
  "faceCrop",
17980
- "plateCrop"
18217
+ "plateCrop",
18218
+ "keyFrame"
17981
18219
  ]);
17982
18220
  var MediaFileSchema = object({
17983
18221
  key: string(),
@@ -17998,6 +18236,32 @@ var DeviceEventQueryInput = object({
17998
18236
  projection: _enum(["full", "slim"]).optional()
17999
18237
  });
18000
18238
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18239
+ var KeyEventQueryInput = object({
18240
+ deviceId: number(),
18241
+ /** Window lower bound (track firstSeen ≥ since). */
18242
+ since: number(),
18243
+ /** Window upper bound (track firstSeen ≤ until). */
18244
+ until: number(),
18245
+ limit: number().int().min(1).max(200).default(50),
18246
+ /** Drop tracks scoring below this importance. */
18247
+ minImportance: number().min(0).max(1).optional(),
18248
+ /** Restrict to a single class (e.g. 'person'). */
18249
+ classFilter: string().optional()
18250
+ });
18251
+ var KeyEventSchema = object({
18252
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18253
+ id: string(),
18254
+ trackId: string(),
18255
+ /** Track start time (firstSeen). */
18256
+ timestamp: number(),
18257
+ className: string(),
18258
+ label: string().optional(),
18259
+ importance: number(),
18260
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18261
+ bestEventId: string(),
18262
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18263
+ windowMs: number().optional()
18264
+ });
18001
18265
  var TrackedDetectionSchema = object({
18002
18266
  trackId: string(),
18003
18267
  className: string(),
@@ -18027,7 +18291,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18027
18291
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18028
18292
  kind: "mutation",
18029
18293
  auth: "admin"
18030
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18294
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18031
18295
  deviceId: number(),
18032
18296
  since: number(),
18033
18297
  until: number(),
@@ -18072,11 +18336,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18072
18336
  timestamp: number()
18073
18337
  });
18074
18338
  var CameraPipelineConfigSchema = object({
18075
- engine: PipelineEngineChoiceSchema,
18339
+ engine: PipelineEngineChoiceSchema.optional(),
18076
18340
  steps: array(PipelineStepInputSchema).readonly(),
18077
18341
  audio: object({
18078
- engine: PipelineEngineChoiceSchema,
18079
- modelId: string(),
18342
+ engine: PipelineEngineChoiceSchema.optional(),
18343
+ modelId: string().optional(),
18080
18344
  enabled: boolean(),
18081
18345
  settings: record(string(), unknown()).readonly().optional()
18082
18346
  }).nullable().optional()
@@ -18091,7 +18355,7 @@ var PipelineTemplateSchema = object({
18091
18355
  });
18092
18356
  var AgentAddonConfigSchema = object({
18093
18357
  enabled: boolean(),
18094
- modelId: string(),
18358
+ modelId: string().optional(),
18095
18359
  settings: record(string(), unknown()).readonly()
18096
18360
  });
18097
18361
  var AgentPipelineSettingsSchema = object({
@@ -18101,12 +18365,25 @@ var AgentPipelineSettingsSchema = object({
18101
18365
  detectWeight: number().positive().optional(),
18102
18366
  /** Node is eligible to run the detection pipeline (decode + inference). */
18103
18367
  detect: boolean().optional(),
18104
- /** Node is eligible to host decoder sessions. */
18368
+ /**
18369
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18370
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18371
+ * the schema ONLY so persisted stores written before the removal still
18372
+ * parse — no code reads it and no write path emits it.
18373
+ */
18105
18374
  decode: boolean().optional(),
18106
18375
  /** Node is eligible to run audio-analyzer sessions. */
18107
18376
  audio: boolean().optional(),
18108
18377
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18109
- ingest: boolean().optional()
18378
+ ingest: boolean().optional(),
18379
+ /**
18380
+ * Operator override for the LAN host a cross-node decoder dials to reach
18381
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18382
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18383
+ * it already uses to reach the hub). Set this only when the auto-detected
18384
+ * address is wrong (multi-homed host, NAT, custom interface).
18385
+ */
18386
+ reachableHost: string().optional()
18110
18387
  });
18111
18388
  var CameraPipelineForAgentSchema = object({
18112
18389
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18154,25 +18431,6 @@ var PipelineAssignmentSchema = object({
18154
18431
  assignedAt: number()
18155
18432
  });
18156
18433
  /**
18157
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18158
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18159
- * → co-located with pipeline → capacity).
18160
- */
18161
- var DecoderAssignmentSchema = object({
18162
- deviceId: number(),
18163
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18164
- decoderNodeId: string(),
18165
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18166
- pinned: boolean(),
18167
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18168
- reason: _enum([
18169
- "manual",
18170
- "co-located",
18171
- "capacity",
18172
- "hardware-affinity"
18173
- ])
18174
- });
18175
- /**
18176
18434
  * Per-agent load summary surfaced to the load balancer + dashboards.
18177
18435
  * Aggregated from each runner's `getLocalLoad` cap call.
18178
18436
  */
@@ -18212,6 +18470,15 @@ var GlobalMetricsSchema = object({
18212
18470
  * capability providers.
18213
18471
  */
18214
18472
  var CapabilityBindingsSchema = record(string(), string());
18473
+ /**
18474
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18475
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18476
+ */
18477
+ var IngestOwnerSchema = object({
18478
+ ownerNodeId: string(),
18479
+ reachableHost: string().optional(),
18480
+ configIssue: string().optional()
18481
+ });
18215
18482
  /** Source block — always present; derives from the stream catalog. */
18216
18483
  var CameraSourceStatusSchema = object({ streams: array(object({
18217
18484
  camStreamId: string(),
@@ -18226,6 +18493,14 @@ var CameraAssignmentStatusSchema = object({
18226
18493
  detectionNodeId: string().nullable(),
18227
18494
  decoderNodeId: string().nullable(),
18228
18495
  audioNodeId: string().nullable(),
18496
+ /**
18497
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18498
+ * hosts the broker/restream) — the cluster ingest owner today
18499
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18500
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18501
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18502
+ */
18503
+ sourceNodeId: string().nullable(),
18229
18504
  pinned: object({
18230
18505
  detection: boolean(),
18231
18506
  decoder: boolean(),
@@ -18358,16 +18633,7 @@ method(object({
18358
18633
  }), object({ success: literal(true) }), {
18359
18634
  kind: "mutation",
18360
18635
  auth: "admin"
18361
- }), method(object({
18362
- deviceId: number(),
18363
- nodeId: string()
18364
- }), _void(), {
18365
- kind: "mutation",
18366
- auth: "admin"
18367
- }), method(object({ deviceId: number() }), _void(), {
18368
- kind: "mutation",
18369
- auth: "admin"
18370
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18636
+ }), method(_void(), IngestOwnerSchema), method(object({
18371
18637
  deviceId: number(),
18372
18638
  nodeId: string()
18373
18639
  }), object({ success: literal(true) }), {
@@ -18388,10 +18654,7 @@ method(object({
18388
18654
  nodeId: string(),
18389
18655
  pinned: boolean(),
18390
18656
  assignedAt: number()
18391
- }))), method(object({
18392
- deviceId: number(),
18393
- pipelineNodeId: string().optional()
18394
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18657
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18395
18658
  nodeId: string(),
18396
18659
  settings: AgentPipelineSettingsSchema
18397
18660
  })).readonly()), method(object({
@@ -18421,12 +18684,26 @@ method(object({
18421
18684
  }), method(object({
18422
18685
  agentNodeId: string(),
18423
18686
  detect: boolean().nullable().optional(),
18424
- decode: boolean().nullable().optional(),
18425
18687
  audio: boolean().nullable().optional(),
18426
18688
  ingest: boolean().nullable().optional()
18427
18689
  }), object({ success: literal(true) }), {
18428
18690
  kind: "mutation",
18429
18691
  auth: "admin"
18692
+ }), method(object({
18693
+ agentNodeId: string(),
18694
+ reachableHost: string().nullable()
18695
+ }), object({ success: literal(true) }), {
18696
+ kind: "mutation",
18697
+ auth: "admin"
18698
+ }), method(object({ agentNodeId: string() }), object({
18699
+ success: literal(true),
18700
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18701
+ effectiveModelId: string().nullable(),
18702
+ /** Number of cameras whose node-scoped overrides were cleared. */
18703
+ clearedCameraOverrides: number()
18704
+ }), {
18705
+ kind: "mutation",
18706
+ auth: "admin"
18430
18707
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18431
18708
  deviceId: number(),
18432
18709
  addonId: string(),
@@ -18471,22 +18748,131 @@ method(object({
18471
18748
  kind: "mutation",
18472
18749
  auth: "admin"
18473
18750
  });
18474
- var RegisteredStreamSchema = object({
18475
- streamId: string(),
18476
- label: string().optional(),
18477
- codec: string(),
18478
- type: _enum(["video", "audio"]),
18479
- sourceUrl: string()
18751
+ /**
18752
+ * server-management — per-NODE singleton capability for a node's ROOT
18753
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18754
+ * agents).
18755
+ *
18756
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18757
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18758
+ * version describes the node. Updates install into
18759
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18760
+ * starter (probation boot + auto-rollback to N-1).
18761
+ *
18762
+ * Providers:
18763
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18764
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18765
+ * unpinned calls.
18766
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18767
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18768
+ * `$hub.registerNode` manifest.
18769
+ *
18770
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18771
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18772
+ * SDK) routes the call to that node's provider via the standard remote
18773
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18774
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18775
+ *
18776
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18777
+ */
18778
+ /**
18779
+ * Where the running hub's code was loaded from:
18780
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18781
+ * plain resolution and runtime updates are refused.
18782
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18783
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18784
+ */
18785
+ var ServerBootModeSchema = _enum([
18786
+ "workspace",
18787
+ "baked",
18788
+ "data-root"
18789
+ ]);
18790
+ /**
18791
+ * Update lifecycle state:
18792
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18793
+ * - `pending-restart` — a version is staged and the node has NOT yet
18794
+ * restarted onto it (still running the OLD version).
18795
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18796
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18797
+ * Apply/rollback are refused in this state and the node must NOT be
18798
+ * manually restarted, or the probation boot auto-rolls-back.
18799
+ */
18800
+ var ServerUpdateStateSchema = _enum([
18801
+ "idle",
18802
+ "checking",
18803
+ "staging",
18804
+ "pending-restart",
18805
+ "awaiting-confirmation"
18806
+ ]);
18807
+ var ServerRollbackInfoSchema = object({
18808
+ /** The version that failed (or was manually rolled back). */
18809
+ fromVersion: string(),
18810
+ /** The version rolled back to; null = the baked seed. */
18811
+ toVersion: string().nullable(),
18812
+ atMs: number(),
18813
+ reason: string()
18480
18814
  });
18481
- var ExposedResourceSchema = object({
18482
- streamId: string(),
18483
- format: string(),
18484
- value: string()
18815
+ var ServerPackageStatusSchema = object({
18816
+ /** Root package name (`@camstack/server` on the hub). */
18817
+ packageName: string(),
18818
+ /** Version of the code the running process ACTUALLY loaded. */
18819
+ runningVersion: string().nullable(),
18820
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18821
+ nodeRuntimeVersion: string().nullable(),
18822
+ /** Active data-dir root version; null when booted from seed/workspace. */
18823
+ activeVersion: string().nullable(),
18824
+ /** N-1 version kept for rollback; null when no previous version exists. */
18825
+ previousVersion: string().nullable(),
18826
+ /** Version of the immutable baked seed closure (image fallback). */
18827
+ seedVersion: string().nullable(),
18828
+ /** Latest registry version from the most recent check (null = never checked). */
18829
+ latestVersion: string().nullable(),
18830
+ updateAvailable: boolean(),
18831
+ bootMode: ServerBootModeSchema,
18832
+ updateState: ServerUpdateStateSchema,
18833
+ /** Version staged + awaiting its probation boot, when one is pending. */
18834
+ pendingVersion: string().nullable(),
18835
+ /** Set when the last freshly-activated version failed its boot health-check. */
18836
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18837
+ /**
18838
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18839
+ * hub is running from the baked seed (or workspace) while installed data-dir
18840
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18841
+ */
18842
+ stateFileCorrupt: boolean(),
18843
+ lastCheckedAtMs: number().nullable()
18844
+ });
18845
+ var ServerUpdateCheckResultSchema = object({
18846
+ packageName: string(),
18847
+ runningVersion: string().nullable(),
18848
+ latestVersion: string().nullable(),
18849
+ updateAvailable: boolean(),
18850
+ checkedAtMs: number(),
18851
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18852
+ error: string().nullable()
18853
+ });
18854
+ var ServerUpdateActionResultSchema = object({
18855
+ accepted: boolean(),
18856
+ targetVersion: string().nullable(),
18857
+ /** True when a graceful restart was scheduled to apply the change. */
18858
+ restarting: boolean(),
18859
+ message: string()
18860
+ });
18861
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18862
+ kind: "mutation",
18863
+ auth: "admin"
18864
+ }), method(object({
18865
+ /** Explicit target version; omitted = latest from the registry. */
18866
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18867
+ kind: "mutation",
18868
+ auth: "admin"
18869
+ }), method(_void(), ServerUpdateActionResultSchema, {
18870
+ kind: "mutation",
18871
+ auth: "admin"
18872
+ }), method(_void(), ServerUpdateActionResultSchema, {
18873
+ kind: "mutation",
18874
+ auth: "admin"
18485
18875
  });
18486
- method(object({
18487
- deviceId: number(),
18488
- streams: array(RegisteredStreamSchema).readonly()
18489
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18490
18876
  /**
18491
18877
  * Query filter for settings-store collections.
18492
18878
  */
@@ -18639,9 +19025,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18639
19025
  /**
18640
19026
  * A single device snapshot returned as base64 JPEG/PNG.
18641
19027
  *
18642
- * Shared with the `snapshot-provider` collection cap the orchestrator
18643
- * receives the same shape from each native provider and from the
18644
- * broker-based fallback.
19028
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19029
+ * the device-native provider (onboard capture) or from the stream-broker
19030
+ * prebuffer fallback.
18645
19031
  */
18646
19032
  var SnapshotImageSchema = object({
18647
19033
  base64: string(),
@@ -18672,11 +19058,12 @@ DeviceType.Camera, method(object({
18672
19058
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18673
19059
  kind: "mutation",
18674
19060
  auth: "admin"
18675
- });
18676
- method(object({ deviceId: number() }), boolean()), method(object({
19061
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18677
19062
  deviceId: number(),
18678
- streamId: string().optional()
18679
- }), SnapshotImageSchema.nullable());
19063
+ lastCapturedAt: number().nullable(),
19064
+ cacheAgeMs: number().nullable(),
19065
+ etag: string().nullable()
19066
+ })));
18680
19067
  /**
18681
19068
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18682
19069
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18927,10 +19314,32 @@ method(_void(), array(TurnServerSchema).readonly());
18927
19314
  * b. `finishAuthentication({userId, response})` → server verifies
18928
19315
  * the assertion, bumps the credential counter, returns ok.
18929
19316
  *
19317
+ * 2b. Usernameless (discoverable-credential) authentication — the
19318
+ * passkey IS the primary factor, no password leg:
19319
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19320
+ * EMPTY `allowCredentials` (the browser offers every resident
19321
+ * passkey it holds for this RP) + `userVerification: 'required'`
19322
+ * (the passkey replaces both factors, so UV is mandatory).
19323
+ * The challenge is stored server-side, NOT bound to any user.
19324
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19325
+ * resolves the credential by the response's credential id,
19326
+ * verifies the assertion against the stored challenge + that
19327
+ * credential's public key/counter, and returns the OWNING
19328
+ * `userId` — the caller (core auth router) mints the session.
19329
+ *
18930
19330
  * 3. Management:
18931
19331
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18932
19332
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18933
19333
  *
19334
+ * 4. Second-factor preference (opt-in, default OFF):
19335
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19336
+ * demanded as a second factor after a password login ONLY when the
19337
+ * user explicitly opts in via `setSecondFactorPreference`.
19338
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19339
+ * row ⇒ `enabled: false`).
19340
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19341
+ * the providing addon beside its credentials.
19342
+ *
18934
19343
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18935
19344
  * the admin-ui composes the begin/finish round-trip and never exposes
18936
19345
  * the cap to non-admins.
@@ -18973,6 +19382,17 @@ method(object({
18973
19382
  }), object({ verified: boolean() }), {
18974
19383
  kind: "mutation",
18975
19384
  access: "view"
19385
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19386
+ kind: "mutation",
19387
+ access: "view"
19388
+ }), method(object({
19389
+ /** AuthenticationResponseJSON from the browser. */
19390
+ response: record(string(), unknown()) }), object({
19391
+ verified: boolean(),
19392
+ userId: string().nullable()
19393
+ }), {
19394
+ kind: "mutation",
19395
+ access: "view"
18976
19396
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
18977
19397
  userId: string(),
18978
19398
  credentialId: string()
@@ -18980,6 +19400,13 @@ method(object({
18980
19400
  kind: "mutation",
18981
19401
  auth: "admin",
18982
19402
  access: "delete"
19403
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19404
+ userId: string(),
19405
+ enabled: boolean()
19406
+ }), object({ success: literal(true) }), {
19407
+ kind: "mutation",
19408
+ auth: "admin",
19409
+ access: "create"
18983
19410
  });
18984
19411
  /**
18985
19412
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19037,9 +19464,10 @@ method(object({
19037
19464
  auth: "admin"
19038
19465
  });
19039
19466
  /**
19040
- * Optional client-side hints sent at session creation to help the
19041
- * provider pick the best native source. All fields are optional —
19042
- * a viewer that knows nothing still gets a sane default.
19467
+ * Optional client-side hints sent at session creation to help the provider
19468
+ * pick the best native source. All fields optional — a viewer that knows
19469
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19470
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19043
19471
  */
19044
19472
  var webrtcClientHintsSchema = object({
19045
19473
  viewportWidth: number().int().positive().optional(),
@@ -19050,22 +19478,6 @@ var webrtcClientHintsSchema = object({
19050
19478
  /** Hard tier override; takes precedence over scoring when registered. */
19051
19479
  prefersTier: string().optional()
19052
19480
  }).partial();
19053
- method(object({
19054
- streamId: string(),
19055
- sdpOffer: string()
19056
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19057
- streamId: string(),
19058
- codec: string()
19059
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19060
- streamId: string(),
19061
- hints: webrtcClientHintsSchema.optional()
19062
- }), object({
19063
- sessionId: string(),
19064
- sdpOffer: string()
19065
- }), { kind: "mutation" }), method(object({
19066
- sessionId: string(),
19067
- sdpAnswer: string()
19068
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19069
19481
  /**
19070
19482
  * Discriminated target for a WebRTC session. The client sends this
19071
19483
  * structured object instead of building / parsing brokerId strings;
@@ -19796,7 +20208,17 @@ var FaceInfoSchema = object({
19796
20208
  recognizedIdentityId: string().optional(),
19797
20209
  identityName: string().optional(),
19798
20210
  assigned: boolean(),
19799
- base64: string().optional()
20211
+ base64: string().optional(),
20212
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20213
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20214
+ * legacy rows written before design B. */
20215
+ faceBbox: BoundingBoxSchema.optional(),
20216
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20217
+ * Fetch the native JPEG via the event-media data-plane
20218
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20219
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20220
+ * back to the inline `base64` face crop. */
20221
+ keyFrameMediaKey: string().optional()
19800
20222
  });
19801
20223
  var FaceFilterEnum = _enum([
19802
20224
  "unassigned",
@@ -20493,6 +20915,16 @@ var TopologyCategorySchema = object({
20493
20915
  healthy: number(),
20494
20916
  addons: array(TopologyCategoryAddonSchema).readonly()
20495
20917
  });
20918
+ /**
20919
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20920
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20921
+ * version visibility for the Server management surface. Nullable: offline
20922
+ * rows and pre-phase-2 nodes report none.
20923
+ */
20924
+ var TopologyRootPackageSchema = object({
20925
+ name: string(),
20926
+ version: string()
20927
+ });
20496
20928
  var TopologyNodeSchema = object({
20497
20929
  id: string(),
20498
20930
  name: string(),
@@ -20516,7 +20948,8 @@ var TopologyNodeSchema = object({
20516
20948
  status: string()
20517
20949
  })).readonly(),
20518
20950
  processes: array(TopologyProcessSchema).readonly(),
20519
- categories: array(TopologyCategorySchema).readonly()
20951
+ categories: array(TopologyCategorySchema).readonly(),
20952
+ rootPackage: TopologyRootPackageSchema.nullable()
20520
20953
  });
20521
20954
  var CapUsageEdgeSchema = object({
20522
20955
  callerAddonId: string(),
@@ -23316,6 +23749,12 @@ Object.freeze({
23316
23749
  addonId: null,
23317
23750
  access: "create"
23318
23751
  },
23752
+ "loginMethod.getLoginMethods": {
23753
+ capName: "login-method",
23754
+ capScope: "system",
23755
+ addonId: null,
23756
+ access: "view"
23757
+ },
23319
23758
  "mediaPlayer.next": {
23320
23759
  capName: "media-player",
23321
23760
  capScope: "device",
@@ -23898,6 +24337,12 @@ Object.freeze({
23898
24337
  addonId: null,
23899
24338
  access: "view"
23900
24339
  },
24340
+ "pipelineAnalytics.getKeyEvents": {
24341
+ capName: "pipeline-analytics",
24342
+ capScope: "device",
24343
+ addonId: null,
24344
+ access: "view"
24345
+ },
23901
24346
  "pipelineAnalytics.getMotionEvents": {
23902
24347
  capName: "pipeline-analytics",
23903
24348
  capScope: "device",
@@ -23946,23 +24391,23 @@ Object.freeze({
23946
24391
  addonId: null,
23947
24392
  access: "create"
23948
24393
  },
23949
- "pipelineExecutor.deleteModel": {
24394
+ "pipelineExecutor.clearDeviceOverrides": {
23950
24395
  capName: "pipeline-executor",
23951
24396
  capScope: "system",
23952
24397
  addonId: null,
23953
24398
  access: "delete"
23954
24399
  },
23955
- "pipelineExecutor.deleteTemplate": {
24400
+ "pipelineExecutor.deleteModel": {
23956
24401
  capName: "pipeline-executor",
23957
24402
  capScope: "system",
23958
24403
  addonId: null,
23959
24404
  access: "delete"
23960
24405
  },
23961
- "pipelineExecutor.detect": {
24406
+ "pipelineExecutor.deleteTemplate": {
23962
24407
  capName: "pipeline-executor",
23963
24408
  capScope: "system",
23964
24409
  addonId: null,
23965
- access: "view"
24410
+ access: "delete"
23966
24411
  },
23967
24412
  "pipelineExecutor.downloadModel": {
23968
24413
  capName: "pipeline-executor",
@@ -24156,13 +24601,13 @@ Object.freeze({
24156
24601
  addonId: null,
24157
24602
  access: "create"
24158
24603
  },
24159
- "pipelineOrchestrator.assignAudio": {
24160
- capName: "pipeline-orchestrator",
24604
+ "pipelineExecutor.validatePipeline": {
24605
+ capName: "pipeline-executor",
24161
24606
  capScope: "system",
24162
24607
  addonId: null,
24163
- access: "create"
24608
+ access: "view"
24164
24609
  },
24165
- "pipelineOrchestrator.assignDecoder": {
24610
+ "pipelineOrchestrator.assignAudio": {
24166
24611
  capName: "pipeline-orchestrator",
24167
24612
  capScope: "system",
24168
24613
  addonId: null,
@@ -24246,19 +24691,13 @@ Object.freeze({
24246
24691
  addonId: null,
24247
24692
  access: "view"
24248
24693
  },
24249
- "pipelineOrchestrator.getDecoderAssignment": {
24694
+ "pipelineOrchestrator.getGlobalMetrics": {
24250
24695
  capName: "pipeline-orchestrator",
24251
24696
  capScope: "system",
24252
24697
  addonId: null,
24253
24698
  access: "view"
24254
24699
  },
24255
- "pipelineOrchestrator.getDecoderAssignments": {
24256
- capName: "pipeline-orchestrator",
24257
- capScope: "system",
24258
- addonId: null,
24259
- access: "view"
24260
- },
24261
- "pipelineOrchestrator.getGlobalMetrics": {
24700
+ "pipelineOrchestrator.getIngestOwner": {
24262
24701
  capName: "pipeline-orchestrator",
24263
24702
  capScope: "system",
24264
24703
  addonId: null,
@@ -24300,6 +24739,12 @@ Object.freeze({
24300
24739
  addonId: null,
24301
24740
  access: "delete"
24302
24741
  },
24742
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24743
+ capName: "pipeline-orchestrator",
24744
+ capScope: "system",
24745
+ addonId: null,
24746
+ access: "delete"
24747
+ },
24303
24748
  "pipelineOrchestrator.resolvePipeline": {
24304
24749
  capName: "pipeline-orchestrator",
24305
24750
  capScope: "system",
@@ -24336,37 +24781,37 @@ Object.freeze({
24336
24781
  addonId: null,
24337
24782
  access: "create"
24338
24783
  },
24339
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24784
+ "pipelineOrchestrator.setAgentReachableHost": {
24340
24785
  capName: "pipeline-orchestrator",
24341
24786
  capScope: "system",
24342
24787
  addonId: null,
24343
24788
  access: "create"
24344
24789
  },
24345
- "pipelineOrchestrator.setCameraStepOverride": {
24790
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24346
24791
  capName: "pipeline-orchestrator",
24347
24792
  capScope: "system",
24348
24793
  addonId: null,
24349
24794
  access: "create"
24350
24795
  },
24351
- "pipelineOrchestrator.setCameraStepToggle": {
24796
+ "pipelineOrchestrator.setCameraStepOverride": {
24352
24797
  capName: "pipeline-orchestrator",
24353
24798
  capScope: "system",
24354
24799
  addonId: null,
24355
24800
  access: "create"
24356
24801
  },
24357
- "pipelineOrchestrator.setCapabilityBinding": {
24802
+ "pipelineOrchestrator.setCameraStepToggle": {
24358
24803
  capName: "pipeline-orchestrator",
24359
24804
  capScope: "system",
24360
24805
  addonId: null,
24361
24806
  access: "create"
24362
24807
  },
24363
- "pipelineOrchestrator.unassignAudio": {
24808
+ "pipelineOrchestrator.setCapabilityBinding": {
24364
24809
  capName: "pipeline-orchestrator",
24365
24810
  capScope: "system",
24366
24811
  addonId: null,
24367
24812
  access: "create"
24368
24813
  },
24369
- "pipelineOrchestrator.unassignDecoder": {
24814
+ "pipelineOrchestrator.unassignAudio": {
24370
24815
  capName: "pipeline-orchestrator",
24371
24816
  capScope: "system",
24372
24817
  addonId: null,
@@ -24426,12 +24871,24 @@ Object.freeze({
24426
24871
  addonId: null,
24427
24872
  access: "view"
24428
24873
  },
24874
+ "pipelineRunner.getNativeCrop": {
24875
+ capName: "pipeline-runner",
24876
+ capScope: "system",
24877
+ addonId: null,
24878
+ access: "view"
24879
+ },
24429
24880
  "pipelineRunner.reportMotion": {
24430
24881
  capName: "pipeline-runner",
24431
24882
  capScope: "system",
24432
24883
  addonId: null,
24433
24884
  access: "create"
24434
24885
  },
24886
+ "pipelineRunner.runDetailSubtree": {
24887
+ capName: "pipeline-runner",
24888
+ capScope: "system",
24889
+ addonId: null,
24890
+ access: "create"
24891
+ },
24435
24892
  "plateGallery.correctPlateText": {
24436
24893
  capName: "plate-gallery",
24437
24894
  capScope: "system",
@@ -24666,33 +25123,45 @@ Object.freeze({
24666
25123
  addonId: null,
24667
25124
  access: "create"
24668
25125
  },
24669
- "restreamer.getExposedResources": {
24670
- capName: "restreamer",
25126
+ "scriptRunner.run": {
25127
+ capName: "script-runner",
25128
+ capScope: "device",
25129
+ addonId: null,
25130
+ access: "create"
25131
+ },
25132
+ "scriptRunner.stop": {
25133
+ capName: "script-runner",
25134
+ capScope: "device",
25135
+ addonId: null,
25136
+ access: "create"
25137
+ },
25138
+ "serverManagement.applyServerUpdate": {
25139
+ capName: "server-management",
24671
25140
  capScope: "system",
24672
25141
  addonId: null,
24673
- access: "view"
25142
+ access: "create"
24674
25143
  },
24675
- "restreamer.registerDevice": {
24676
- capName: "restreamer",
25144
+ "serverManagement.checkServerUpdate": {
25145
+ capName: "server-management",
24677
25146
  capScope: "system",
24678
25147
  addonId: null,
24679
25148
  access: "create"
24680
25149
  },
24681
- "restreamer.unregisterDevice": {
24682
- capName: "restreamer",
25150
+ "serverManagement.getServerPackageStatus": {
25151
+ capName: "server-management",
24683
25152
  capScope: "system",
24684
25153
  addonId: null,
24685
- access: "delete"
25154
+ access: "view"
24686
25155
  },
24687
- "scriptRunner.run": {
24688
- capName: "script-runner",
24689
- capScope: "device",
25156
+ "serverManagement.restartServer": {
25157
+ capName: "server-management",
25158
+ capScope: "system",
24690
25159
  addonId: null,
24691
25160
  access: "create"
24692
25161
  },
24693
- "scriptRunner.stop": {
24694
- capName: "script-runner",
24695
- capScope: "device",
25162
+ "serverManagement.rollbackServerUpdate": {
25163
+ capName: "server-management",
25164
+ capScope: "system",
24696
25165
  addonId: null,
24697
25166
  access: "create"
24698
25167
  },
@@ -24780,23 +25249,17 @@ Object.freeze({
24780
25249
  addonId: null,
24781
25250
  access: "view"
24782
25251
  },
24783
- "snapshot.invalidateCache": {
25252
+ "snapshot.getSnapshotOverview": {
24784
25253
  capName: "snapshot",
24785
25254
  capScope: "device",
24786
25255
  addonId: null,
24787
- access: "create"
24788
- },
24789
- "snapshotProvider.getSnapshot": {
24790
- capName: "snapshot-provider",
24791
- capScope: "system",
24792
- addonId: null,
24793
25256
  access: "view"
24794
25257
  },
24795
- "snapshotProvider.supportsDevice": {
24796
- capName: "snapshot-provider",
24797
- capScope: "system",
25258
+ "snapshot.invalidateCache": {
25259
+ capName: "snapshot",
25260
+ capScope: "device",
24798
25261
  addonId: null,
24799
- access: "view"
25262
+ access: "create"
24800
25263
  },
24801
25264
  "ssoBridge.signBridgeToken": {
24802
25265
  capName: "sso-bridge",
@@ -25224,30 +25687,6 @@ Object.freeze({
25224
25687
  addonId: null,
25225
25688
  access: "view"
25226
25689
  },
25227
- "streamingEngine.getStreamUrl": {
25228
- capName: "streaming-engine",
25229
- capScope: "system",
25230
- addonId: null,
25231
- access: "view"
25232
- },
25233
- "streamingEngine.listStreams": {
25234
- capName: "streaming-engine",
25235
- capScope: "system",
25236
- addonId: null,
25237
- access: "view"
25238
- },
25239
- "streamingEngine.registerStream": {
25240
- capName: "streaming-engine",
25241
- capScope: "system",
25242
- addonId: null,
25243
- access: "create"
25244
- },
25245
- "streamingEngine.unregisterStream": {
25246
- capName: "streaming-engine",
25247
- capScope: "system",
25248
- addonId: null,
25249
- access: "delete"
25250
- },
25251
25690
  "streamParams.getConfigSchema": {
25252
25691
  capName: "stream-params",
25253
25692
  capScope: "device",
@@ -25494,6 +25933,12 @@ Object.freeze({
25494
25933
  addonId: null,
25495
25934
  access: "view"
25496
25935
  },
25936
+ "userPasskeys.beginDiscoverableAuthentication": {
25937
+ capName: "user-passkeys",
25938
+ capScope: "system",
25939
+ addonId: null,
25940
+ access: "view"
25941
+ },
25497
25942
  "userPasskeys.beginRegistration": {
25498
25943
  capName: "user-passkeys",
25499
25944
  capScope: "system",
@@ -25506,12 +25951,24 @@ Object.freeze({
25506
25951
  addonId: null,
25507
25952
  access: "view"
25508
25953
  },
25954
+ "userPasskeys.finishDiscoverableAuthentication": {
25955
+ capName: "user-passkeys",
25956
+ capScope: "system",
25957
+ addonId: null,
25958
+ access: "view"
25959
+ },
25509
25960
  "userPasskeys.finishRegistration": {
25510
25961
  capName: "user-passkeys",
25511
25962
  capScope: "system",
25512
25963
  addonId: null,
25513
25964
  access: "create"
25514
25965
  },
25966
+ "userPasskeys.getSecondFactorPreference": {
25967
+ capName: "user-passkeys",
25968
+ capScope: "system",
25969
+ addonId: null,
25970
+ access: "view"
25971
+ },
25515
25972
  "userPasskeys.listPasskeys": {
25516
25973
  capName: "user-passkeys",
25517
25974
  capScope: "system",
@@ -25524,6 +25981,12 @@ Object.freeze({
25524
25981
  addonId: null,
25525
25982
  access: "delete"
25526
25983
  },
25984
+ "userPasskeys.setSecondFactorPreference": {
25985
+ capName: "user-passkeys",
25986
+ capScope: "system",
25987
+ addonId: null,
25988
+ access: "create"
25989
+ },
25527
25990
  "vacuumControl.locate": {
25528
25991
  capName: "vacuum-control",
25529
25992
  capScope: "device",
@@ -25596,6 +26059,18 @@ Object.freeze({
25596
26059
  addonId: null,
25597
26060
  access: "view"
25598
26061
  },
26062
+ "viewerUi.getStaticDir": {
26063
+ capName: "viewer-ui",
26064
+ capScope: "system",
26065
+ addonId: null,
26066
+ access: "view"
26067
+ },
26068
+ "viewerUi.getVersion": {
26069
+ capName: "viewer-ui",
26070
+ capScope: "system",
26071
+ addonId: null,
26072
+ access: "view"
26073
+ },
25599
26074
  "waterHeater.setAway": {
25600
26075
  capName: "water-heater",
25601
26076
  capScope: "device",
@@ -25614,54 +26089,6 @@ Object.freeze({
25614
26089
  addonId: null,
25615
26090
  access: "create"
25616
26091
  },
25617
- "webrtc.closeSession": {
25618
- capName: "webrtc",
25619
- capScope: "system",
25620
- addonId: null,
25621
- access: "create"
25622
- },
25623
- "webrtc.createSession": {
25624
- capName: "webrtc",
25625
- capScope: "system",
25626
- addonId: null,
25627
- access: "create"
25628
- },
25629
- "webrtc.handleAnswer": {
25630
- capName: "webrtc",
25631
- capScope: "system",
25632
- addonId: null,
25633
- access: "create"
25634
- },
25635
- "webrtc.handleOffer": {
25636
- capName: "webrtc",
25637
- capScope: "system",
25638
- addonId: null,
25639
- access: "create"
25640
- },
25641
- "webrtc.hasAdaptiveBitrate": {
25642
- capName: "webrtc",
25643
- capScope: "system",
25644
- addonId: null,
25645
- access: "view"
25646
- },
25647
- "webrtc.registerStream": {
25648
- capName: "webrtc",
25649
- capScope: "system",
25650
- addonId: null,
25651
- access: "create"
25652
- },
25653
- "webrtc.supportsStream": {
25654
- capName: "webrtc",
25655
- capScope: "system",
25656
- addonId: null,
25657
- access: "view"
25658
- },
25659
- "webrtc.unregisterStream": {
25660
- capName: "webrtc",
25661
- capScope: "system",
25662
- addonId: null,
25663
- access: "delete"
25664
- },
25665
26092
  "webrtcSession.addIceCandidate": {
25666
26093
  capName: "webrtc-session",
25667
26094
  capScope: "device",