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