@camstack/addon-provider-wyze 0.1.17 → 0.1.19

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 +724 -289
  2. package/dist/addon.mjs +724 -289
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4659,7 +4659,7 @@ function _instanceof(cls, params = {}) {
4659
4659
  return inst;
4660
4660
  }
4661
4661
  //#endregion
4662
- //#region ../types/dist/sleep-CZDdRBua.mjs
4662
+ //#region ../types/dist/sleep-Baang_XW.mjs
4663
4663
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4664
4664
  EventCategory["SystemBoot"] = "system.boot";
4665
4665
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4845,6 +4845,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4845
4845
  */
4846
4846
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4847
4847
  /**
4848
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4849
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4850
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4851
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4852
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4853
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4854
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4855
+ * topology change, so a dropped event self-heals on the next one (plus the
4856
+ * broker's long backstop reconcile query).
4857
+ */
4858
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4859
+ /**
4848
4860
  * Periodic snapshot of per-node pipeline-runner load
4849
4861
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4850
4862
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5368,10 +5380,6 @@ function hydrateField(field, values) {
5368
5380
  };
5369
5381
  }
5370
5382
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5371
- if (field.type === "password") return {
5372
- ...field,
5373
- value: ""
5374
- };
5375
5383
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5376
5384
  return {
5377
5385
  ...field,
@@ -6755,10 +6763,25 @@ function method(input, output, options) {
6755
6763
  timeoutMs: options?.timeoutMs
6756
6764
  };
6757
6765
  }
6766
+ /**
6767
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6768
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6769
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6770
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6771
+ */
6772
+ function systemMethod(input, output, options) {
6773
+ return {
6774
+ ...method(input, output, options),
6775
+ systemOnly: true
6776
+ };
6777
+ }
6758
6778
  /** Shorthand to define an event schema */
6759
6779
  function event(data) {
6760
6780
  return { data };
6761
6781
  }
6782
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6783
+ var VersionOutputSchema$1 = object({ version: string() });
6784
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6762
6785
  var StaticDirOutputSchema = object({ staticDir: string() });
6763
6786
  var VersionOutputSchema = object({ version: string() });
6764
6787
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6940,6 +6963,36 @@ var ModelFormatsSchema = object({
6940
6963
  tflite: ModelFormatEntrySchema.optional(),
6941
6964
  pt: ModelFormatEntrySchema.optional()
6942
6965
  });
6966
+ /**
6967
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6968
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6969
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6970
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6971
+ * resolution/download/persistence; this is a presentation overlay resolved back
6972
+ * to an `id`.
6973
+ */
6974
+ var ModelVariantGroupSchema = object({
6975
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6976
+ family: string(),
6977
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6978
+ tier: string(),
6979
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6980
+ precision: _enum(["fp32", "int8"]).optional(),
6981
+ /**
6982
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6983
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6984
+ * future performance variants plug into.
6985
+ */
6986
+ optimization: _enum(["standard", "fast"]).optional(),
6987
+ /**
6988
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6989
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6990
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6991
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6992
+ * the group so the selector can offer it as a variant axis.
6993
+ */
6994
+ resolution: number().int().positive().optional()
6995
+ });
6943
6996
  var ModelCatalogEntrySchema = object({
6944
6997
  id: string(),
6945
6998
  name: string(),
@@ -6969,7 +7022,43 @@ var ModelCatalogEntrySchema = object({
6969
7022
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6970
7023
  * Downloaded into the same modelsDir alongside the model file.
6971
7024
  */
6972
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7025
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7026
+ /**
7027
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7028
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7029
+ * model list and excluded from the auto format-default pick. Set on the
7030
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7031
+ * the active lineup stays the coherent curated ladder without deleting a
7032
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7033
+ * an explicit legacy id that has a build for the node's format.
7034
+ */
7035
+ legacy: boolean().optional(),
7036
+ /**
7037
+ * Measured quality/latency metadata — populated from the benchmark addon on
7038
+ * the real node classes. Absent = not yet measured (most entries today; the
7039
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7040
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7041
+ */
7042
+ metrics: object({
7043
+ map50: number().optional(),
7044
+ p95LatencyMs: record(string(), number()).optional()
7045
+ }).optional(),
7046
+ /**
7047
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7048
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7049
+ * the retraining addon and any future commercial distribution.
7050
+ */
7051
+ license: string().optional(),
7052
+ /**
7053
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7054
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7055
+ * of a family's sizes and quantizations collapse into one grouped picker
7056
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7057
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7058
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7059
+ * is a presentation overlay resolved back to an `id`.
7060
+ */
7061
+ group: ModelVariantGroupSchema.optional()
6973
7062
  });
6974
7063
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6975
7064
  format: literal("openvino"),
@@ -7030,8 +7119,8 @@ var RecordingModeSchema = _enum([
7030
7119
  "onAudioThreshold"
7031
7120
  ]);
7032
7121
  /**
7033
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7034
- * reads directly (never inferred from `rules`):
7122
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7123
+ * UI reads directly (never inferred from `rules`):
7035
7124
  * - `off` — not recording.
7036
7125
  * - `events` — record only around triggers (motion / audio threshold),
7037
7126
  * with pre/post-buffer.
@@ -9194,26 +9283,13 @@ onBrightnessChanged: { data: object({
9194
9283
  */
9195
9284
  runtimeState: BrightnessStatusSchema
9196
9285
  };
9286
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9197
9287
  var StreamFormatSchema = _enum([
9198
9288
  "webrtc",
9199
9289
  "hls",
9200
9290
  "mjpeg",
9201
9291
  "rtsp"
9202
9292
  ]);
9203
- var StreamInfoSchema = object({
9204
- streamId: string(),
9205
- format: StreamFormatSchema,
9206
- url: string().nullable(),
9207
- active: boolean()
9208
- });
9209
- method(object({
9210
- streamId: string(),
9211
- sourceUrl: string(),
9212
- codec: string().optional()
9213
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9214
- streamId: string(),
9215
- format: StreamFormatSchema
9216
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9217
9293
  var RtspRestreamEntrySchema = object({
9218
9294
  brokerId: string(),
9219
9295
  url: string(),
@@ -10081,37 +10157,7 @@ var consumablesCapability = {
10081
10157
  scope: "device",
10082
10158
  deviceNative: true,
10083
10159
  mode: "singleton",
10084
- deviceTypes: [
10085
- DeviceType.Camera,
10086
- DeviceType.Hub,
10087
- DeviceType.Light,
10088
- DeviceType.Siren,
10089
- DeviceType.Switch,
10090
- DeviceType.Sensor,
10091
- DeviceType.Thermostat,
10092
- DeviceType.Button,
10093
- DeviceType.EventEmitter,
10094
- DeviceType.Update,
10095
- DeviceType.Generic,
10096
- DeviceType.Notifier,
10097
- DeviceType.Script,
10098
- DeviceType.Automation,
10099
- DeviceType.Lock,
10100
- DeviceType.Cover,
10101
- DeviceType.Valve,
10102
- DeviceType.Humidifier,
10103
- DeviceType.WaterHeater,
10104
- DeviceType.Fan,
10105
- DeviceType.MediaPlayer,
10106
- DeviceType.AlarmPanel,
10107
- DeviceType.Control,
10108
- DeviceType.Presence,
10109
- DeviceType.Weather,
10110
- DeviceType.Vacuum,
10111
- DeviceType.LawnMower,
10112
- DeviceType.Container,
10113
- DeviceType.Image
10114
- ],
10160
+ deviceTypes: Object.values(DeviceType),
10115
10161
  deviceConfig: { ui: {
10116
10162
  kind: "widget",
10117
10163
  widgetId: "host/consumables-panel",
@@ -11569,7 +11615,7 @@ var BoundingBoxSchema = object({
11569
11615
  w: number(),
11570
11616
  h: number()
11571
11617
  });
11572
- var SpatialDetectionSchema = object({
11618
+ object({
11573
11619
  class: string(),
11574
11620
  originalClass: string(),
11575
11621
  score: number(),
@@ -11704,7 +11750,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11704
11750
  enabled: boolean(),
11705
11751
  modelId: string(),
11706
11752
  children: array(PipelineDefaultStepSchema).readonly(),
11707
- engine: PipelineEngineChoiceSchema.optional(),
11708
11753
  group: string().optional(),
11709
11754
  settings: record(string(), unknown()).optional()
11710
11755
  }));
@@ -11729,7 +11774,9 @@ var PipelineModelOptionSchema = object({
11729
11774
  formats: record(string(), object({
11730
11775
  downloaded: boolean(),
11731
11776
  sizeMB: number()
11732
- }))
11777
+ })),
11778
+ group: ModelVariantGroupSchema.optional(),
11779
+ legacy: boolean().optional()
11733
11780
  });
11734
11781
  var ConfigFieldBridge = custom();
11735
11782
  var PipelineAddonSchemaSchema = object({
@@ -11743,6 +11790,7 @@ var PipelineAddonSchemaSchema = object({
11743
11790
  defaultModelId: string(),
11744
11791
  defaultModelIdByFormat: record(string(), string()).optional(),
11745
11792
  enabledByDefault: boolean().optional(),
11793
+ backfillIntoExistingOverrides: boolean().optional(),
11746
11794
  defaultConfidence: number(),
11747
11795
  group: string().optional(),
11748
11796
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11759,11 +11807,6 @@ var PipelineSchemaSchema = object({
11759
11807
  selectedEngine: PipelineEngineChoiceSchema,
11760
11808
  slots: array(PipelineSlotSchemaSchema).readonly()
11761
11809
  });
11762
- var DetectorOutputSchema = object({
11763
- detections: array(SpatialDetectionSchema).readonly(),
11764
- inferenceMs: number(),
11765
- modelId: string()
11766
- });
11767
11810
  var EngineProvisioningSchema = object({
11768
11811
  runtimeId: _enum([
11769
11812
  "onnx",
@@ -11780,15 +11823,42 @@ var EngineProvisioningSchema = object({
11780
11823
  ]),
11781
11824
  progress: number().optional(),
11782
11825
  error: string().optional(),
11783
- nextRetryAt: number().optional()
11826
+ nextRetryAt: number().optional(),
11827
+ /**
11828
+ * Gate A (config-correctness gate at engine change): human-readable
11829
+ * config issues surfaced EAGERLY when the node's engine changes — model
11830
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11831
+ * has a <format> build"). Additive/optional: informational only, never
11832
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11833
+ * Absent/empty when the node-default tree resolves cleanly.
11834
+ */
11835
+ configIssues: array(string()).optional()
11784
11836
  });
11785
11837
  var PipelineStepInputSchema = lazy(() => object({
11786
11838
  addonId: string(),
11787
- modelId: string(),
11839
+ modelId: string().optional(),
11788
11840
  enabled: boolean().default(true),
11789
11841
  children: array(PipelineStepInputSchema).optional(),
11790
11842
  settings: record(string(), unknown()).optional()
11791
11843
  }));
11844
+ var ModelSubstitutionSchema = object({
11845
+ addonId: string(),
11846
+ chosen: string(),
11847
+ running: string(),
11848
+ format: string()
11849
+ });
11850
+ var PipelineValidationIssueSchema = object({
11851
+ addonId: string(),
11852
+ kind: _enum(["unknown-addon", "no-format-build"]),
11853
+ detail: string()
11854
+ });
11855
+ var PipelineValidationResultSchema = object({
11856
+ ok: boolean(),
11857
+ issues: array(PipelineValidationIssueSchema).readonly(),
11858
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11859
+ /** The node's `currentEngine.format` this validation ran against. */
11860
+ format: string()
11861
+ });
11792
11862
  var ReferenceImageEntrySchema = object({
11793
11863
  filename: string(),
11794
11864
  stepIds: array(string()).readonly().optional()
@@ -11859,7 +11929,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11859
11929
  })) }), object({ success: literal(true) }), {
11860
11930
  kind: "mutation",
11861
11931
  auth: "admin"
11862
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11932
+ }), method(object({ nodeId: string() }), object({
11933
+ success: literal(true),
11934
+ clearedDevices: number()
11935
+ }), {
11936
+ kind: "mutation",
11937
+ auth: "admin"
11938
+ }), 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({
11863
11939
  name: string(),
11864
11940
  steps: array(PipelineTemplateStepSchema).readonly(),
11865
11941
  engine: PipelineEngineChoiceSchema
@@ -11876,10 +11952,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11876
11952
  modelId: string(),
11877
11953
  format: ModelFormatSchema$1
11878
11954
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11879
- addonId: string(),
11880
- frame: FrameInputSchema,
11881
- config: record(string(), unknown()).optional()
11882
- }), DetectorOutputSchema), method(object({
11883
11955
  engine: PipelineEngineChoiceSchema.optional(),
11884
11956
  steps: array(PipelineStepInputSchema).min(1),
11885
11957
  frame: FrameInputSchema.optional(),
@@ -11900,7 +11972,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11900
11972
  image: _instanceof(Uint8Array).optional(),
11901
11973
  referenceImage: string().optional(),
11902
11974
  deviceId: number().optional(),
11903
- sessionId: string().optional()
11975
+ sessionId: string().optional(),
11976
+ /**
11977
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
11978
+ * reference-image, and detail-subtree calls. 'frame' is the live
11979
+ * per-frame dispatch: ONLY root-plane steps run; crop children
11980
+ * (inputClasses ≠ null) are skipped and served per-track via
11981
+ * pipelineRunner.runDetailSubtree (two-plane design).
11982
+ */
11983
+ plane: _enum(["full", "frame"]).optional()
11904
11984
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
11905
11985
  engine: PipelineEngineChoiceSchema.optional(),
11906
11986
  steps: array(PipelineStepInputSchema).min(1),
@@ -12058,6 +12138,47 @@ var zonesCapability = {
12058
12138
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12059
12139
  };
12060
12140
  /**
12141
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12142
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12143
+ * so the caller supplies only the detection-res bbox divided by the detection
12144
+ * dims — no native resolution to plumb.
12145
+ */
12146
+ var NativeCropBboxSchema = object({
12147
+ x: number(),
12148
+ y: number(),
12149
+ w: number(),
12150
+ h: number()
12151
+ });
12152
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12153
+ var NativeCropResultSchema = object({
12154
+ /** Packed rgb (24-bit) pixels of the crop. */
12155
+ bytes: _instanceof(Uint8Array),
12156
+ width: number().int().positive(),
12157
+ height: number().int().positive()
12158
+ });
12159
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12160
+ * originating detection, in FRAME-space coordinates. Reuses
12161
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12162
+ * the coordinates are frame-space rather than getNativeCrop's
12163
+ * normalized [0,1] convention). */
12164
+ var DetailParentSchema = object({
12165
+ bbox: NativeCropBboxSchema,
12166
+ className: string()
12167
+ });
12168
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12169
+ * or refined detection produced by running the crop-subtree on a
12170
+ * single tracked detection. */
12171
+ var DetailResultSchema = object({
12172
+ stepId: string(),
12173
+ className: string(),
12174
+ score: number(),
12175
+ /** FRAME-space bbox (already mapped back from crop space). */
12176
+ bbox: NativeCropBboxSchema.optional(),
12177
+ embedding: string().optional(),
12178
+ label: string().optional(),
12179
+ alignedCropJpeg: string().optional()
12180
+ });
12181
+ /**
12061
12182
  * Per-camera tunable ranges + defaults. Single source of truth used
12062
12183
  * by both the Zod data schema (validation + default fallback) and
12063
12184
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12152,6 +12273,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12152
12273
  kind: literal("remote-restream"),
12153
12274
  /** The camera's source-owner node (slice 1: always the hub). */
12154
12275
  ownerNodeId: string(),
12276
+ /**
12277
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12278
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12279
+ * dials THIS host for the owner's restream, in preference to the
12280
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12281
+ */
12282
+ ownerReachableHost: string().optional(),
12155
12283
  /** Operator override for the owner host the runner dials. */
12156
12284
  hubHostnameOverride: string().optional()
12157
12285
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12160,13 +12288,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12160
12288
  * specific runner instance via `attachCamera`. Carries everything the
12161
12289
  * runner needs to subscribe to the local broker and execute inference.
12162
12290
  *
12163
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12164
- * optional `audio`) travels with the attach payload. The runner keeps it
12165
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12166
- * restart the orchestrator re-sends the latest snapshot.
12167
- *
12168
- * `engine`/`steps`/`audio` are optional during the additive migration
12169
- * window; once orchestrator + UI are migrated they become required.
12291
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12292
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12293
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12294
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12295
+ * node-local, resolved by the executing runner at dispatch time.
12170
12296
  */
12171
12297
  var RunnerCameraConfigSchema = object({
12172
12298
  deviceId: number(),
@@ -12217,14 +12343,11 @@ var RunnerCameraConfigSchema = object({
12217
12343
  */
12218
12344
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12219
12345
  pipelineEnabled: boolean().default(true),
12220
- /** Engine choice for video steps (runtime+backend+format). */
12221
- engine: PipelineEngineChoiceSchema.optional(),
12222
12346
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12223
12347
  steps: array(PipelineStepInputSchema).readonly().optional(),
12224
12348
  /** Audio classification branch. `enabled:false` disables, null skips. */
12225
12349
  audio: object({
12226
- engine: PipelineEngineChoiceSchema,
12227
- modelId: string(),
12350
+ modelId: string().optional(),
12228
12351
  enabled: boolean()
12229
12352
  }).nullable().optional(),
12230
12353
  /**
@@ -12311,7 +12434,17 @@ var RunnerLocalMetricsSchema = object({
12311
12434
  avgInferenceTimeMs: number(),
12312
12435
  queueDepth: number()
12313
12436
  });
12314
- 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());
12437
+ 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({
12438
+ handle: FrameHandleSchema,
12439
+ bbox: NativeCropBboxSchema,
12440
+ maxWidth: number().int().positive().optional()
12441
+ }), NativeCropResultSchema.nullable()), method(object({
12442
+ deviceId: number(),
12443
+ frameHandle: FrameHandleSchema.optional(),
12444
+ cropJpeg: string().optional(),
12445
+ parent: DetailParentSchema,
12446
+ steps: array(string()).optional()
12447
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12315
12448
  /**
12316
12449
  * Hardware / firmware motion sensor cap — binary detected state plus
12317
12450
  * a timestamp of the last observation. Distinct from
@@ -15242,7 +15375,9 @@ var AddonPageDeclarationSchema$1 = object({
15242
15375
  icon: string(),
15243
15376
  path: string(),
15244
15377
  remoteName: string(),
15245
- bundle: string()
15378
+ bundle: string(),
15379
+ section: string().optional(),
15380
+ sectionLabel: string().optional()
15246
15381
  });
15247
15382
  var AddonPageInfoSchema = object({
15248
15383
  addonId: string(),
@@ -15282,7 +15417,18 @@ var AddonPageDeclarationSchema = object({
15282
15417
  * the static-file route can compute an mtime-based cache-buster URL
15283
15418
  * without a separate filesystem stat.
15284
15419
  */
15285
- bundle: string()
15420
+ bundle: string(),
15421
+ /**
15422
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15423
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15424
+ * Any OTHER string creates (or joins) a custom section rendered after
15425
+ * the built-in groups; its label comes from `sectionLabel` (first
15426
+ * declaration wins), falling back to the id. Absent → the legacy
15427
+ * "Addon Pages" group.
15428
+ */
15429
+ section: string().optional(),
15430
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15431
+ sectionLabel: string().optional()
15286
15432
  });
15287
15433
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15288
15434
  var AddonHttpRouteSchema = object({
@@ -15498,6 +15644,17 @@ var WidgetMetadataSchema = object({
15498
15644
  deviceContext: boolean().default(false),
15499
15645
  integrationContext: boolean().default(false)
15500
15646
  }),
15647
+ /**
15648
+ * Loadable BEFORE authentication. The normal widget registry listing
15649
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15650
+ * (the login page) cannot discover a widget through it. A widget that
15651
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15652
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15653
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15654
+ * than the authenticated registry, and its bundle is served by the
15655
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15656
+ */
15657
+ preAuth: boolean().optional().default(false),
15501
15658
  /** Dashboard placement HINTS (operator can override per instance). */
15502
15659
  defaultSize: WidgetSizeEnum.default("md"),
15503
15660
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15799,6 +15956,66 @@ method(object({
15799
15956
  password: string()
15800
15957
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15801
15958
  /**
15959
+ * `login-method` — collection cap through which auth addons contribute
15960
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15961
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15962
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15963
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15964
+ * procedure aggregates them for the unauthenticated login page.
15965
+ *
15966
+ * A contribution is a discriminated union on `kind`:
15967
+ *
15968
+ * - `redirect` — a declarative button. The login page renders a generic
15969
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15970
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15971
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15972
+ * login page needs NO change.
15973
+ *
15974
+ * - `widget` — a Module-Federation widget the login page mounts (via
15975
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15976
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15977
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15978
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15979
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15980
+ *
15981
+ * Every contribution carries a `stage`:
15982
+ * - `primary` — shown on the first credentials screen (OIDC /
15983
+ * magic-link buttons; a future usernameless passkey).
15984
+ * - `second-factor` — shown AFTER the password leg, gated on the
15985
+ * returned `factors` (passkey-as-2FA today).
15986
+ *
15987
+ * `mount: skip` — the cap is read server-side by the core auth router
15988
+ * (`registry.getCollection('login-method')`), never mounted as its own
15989
+ * tRPC router.
15990
+ */
15991
+ /** When a login method renders in the two-phase login flow. */
15992
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15993
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15994
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15995
+ kind: literal("redirect"),
15996
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15997
+ id: string(),
15998
+ /** Operator-facing button label. */
15999
+ label: string(),
16000
+ /** lucide-react icon name. */
16001
+ icon: string().optional(),
16002
+ /** Addon-owned HTTP route the button navigates to (GET). */
16003
+ startUrl: string(),
16004
+ stage: LoginStageEnum
16005
+ }), object({
16006
+ kind: literal("widget"),
16007
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
16008
+ id: string(),
16009
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
16010
+ addonId: string(),
16011
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
16012
+ bundle: string(),
16013
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
16014
+ remote: WidgetRemoteSchema,
16015
+ stage: LoginStageEnum
16016
+ })]);
16017
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16018
+ /**
15802
16019
  * Orchestrator-side destination metadata. The orchestrator computes
15803
16020
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15804
16021
  * (admin UI, restore flow) see one canonical key.
@@ -17919,7 +18136,17 @@ var TrackSchema = object({
17919
18136
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17920
18137
  totalDistance: number(),
17921
18138
  state: TrackStateSchema,
17922
- active: boolean()
18139
+ active: boolean(),
18140
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18141
+ * track expiry, recomputed on late label). Absent on legacy rows written
18142
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18143
+ importance: number().optional(),
18144
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18145
+ * "best" frame). Absent when the track produced no object events. */
18146
+ bestEventId: string().optional(),
18147
+ /** Tag of the importance sub-signal that dominated the score
18148
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18149
+ importanceReason: string().optional()
17923
18150
  });
17924
18151
  var BaseEventFields = {
17925
18152
  id: string(),
@@ -17984,8 +18211,18 @@ var ObjectEventSchema = object({
17984
18211
  frameHeight: number().optional(),
17985
18212
  /** MediaStore key for the crop attached to this event (if any). */
17986
18213
  mediaKey: string().optional(),
18214
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18215
+ * best-detection full frame). Resolve via the event-media data-plane
18216
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18217
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18218
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18219
+ keyFrameMediaKey: string().optional(),
17987
18220
  /** Populated by B5 (recording playback URL for this event). */
17988
- mediaUrl: string().optional()
18221
+ mediaUrl: string().optional(),
18222
+ /** The parent track's key-event importance [0,1], propagated to every object
18223
+ * event of the track (so an event row can be sorted by importance without a
18224
+ * track join). Absent on legacy rows / before the track was scored. */
18225
+ importance: number().optional()
17989
18226
  });
17990
18227
  var AudioEventSchema = object({
17991
18228
  ...BaseEventFields,
@@ -18009,7 +18246,8 @@ var MediaFileKindEnum = _enum([
18009
18246
  "fullFrame",
18010
18247
  "fullFrameBoxed",
18011
18248
  "faceCrop",
18012
- "plateCrop"
18249
+ "plateCrop",
18250
+ "keyFrame"
18013
18251
  ]);
18014
18252
  var MediaFileSchema = object({
18015
18253
  key: string(),
@@ -18030,6 +18268,32 @@ var DeviceEventQueryInput = object({
18030
18268
  projection: _enum(["full", "slim"]).optional()
18031
18269
  });
18032
18270
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18271
+ var KeyEventQueryInput = object({
18272
+ deviceId: number(),
18273
+ /** Window lower bound (track firstSeen ≥ since). */
18274
+ since: number(),
18275
+ /** Window upper bound (track firstSeen ≤ until). */
18276
+ until: number(),
18277
+ limit: number().int().min(1).max(200).default(50),
18278
+ /** Drop tracks scoring below this importance. */
18279
+ minImportance: number().min(0).max(1).optional(),
18280
+ /** Restrict to a single class (e.g. 'person'). */
18281
+ classFilter: string().optional()
18282
+ });
18283
+ var KeyEventSchema = object({
18284
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18285
+ id: string(),
18286
+ trackId: string(),
18287
+ /** Track start time (firstSeen). */
18288
+ timestamp: number(),
18289
+ className: string(),
18290
+ label: string().optional(),
18291
+ importance: number(),
18292
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18293
+ bestEventId: string(),
18294
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18295
+ windowMs: number().optional()
18296
+ });
18033
18297
  var TrackedDetectionSchema = object({
18034
18298
  trackId: string(),
18035
18299
  className: string(),
@@ -18059,7 +18323,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18059
18323
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18060
18324
  kind: "mutation",
18061
18325
  auth: "admin"
18062
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18326
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18063
18327
  deviceId: number(),
18064
18328
  since: number(),
18065
18329
  until: number(),
@@ -18104,11 +18368,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18104
18368
  timestamp: number()
18105
18369
  });
18106
18370
  var CameraPipelineConfigSchema = object({
18107
- engine: PipelineEngineChoiceSchema,
18371
+ engine: PipelineEngineChoiceSchema.optional(),
18108
18372
  steps: array(PipelineStepInputSchema).readonly(),
18109
18373
  audio: object({
18110
- engine: PipelineEngineChoiceSchema,
18111
- modelId: string(),
18374
+ engine: PipelineEngineChoiceSchema.optional(),
18375
+ modelId: string().optional(),
18112
18376
  enabled: boolean(),
18113
18377
  settings: record(string(), unknown()).readonly().optional()
18114
18378
  }).nullable().optional()
@@ -18123,7 +18387,7 @@ var PipelineTemplateSchema = object({
18123
18387
  });
18124
18388
  var AgentAddonConfigSchema = object({
18125
18389
  enabled: boolean(),
18126
- modelId: string(),
18390
+ modelId: string().optional(),
18127
18391
  settings: record(string(), unknown()).readonly()
18128
18392
  });
18129
18393
  var AgentPipelineSettingsSchema = object({
@@ -18133,12 +18397,25 @@ var AgentPipelineSettingsSchema = object({
18133
18397
  detectWeight: number().positive().optional(),
18134
18398
  /** Node is eligible to run the detection pipeline (decode + inference). */
18135
18399
  detect: boolean().optional(),
18136
- /** Node is eligible to host decoder sessions. */
18400
+ /**
18401
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18402
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18403
+ * the schema ONLY so persisted stores written before the removal still
18404
+ * parse — no code reads it and no write path emits it.
18405
+ */
18137
18406
  decode: boolean().optional(),
18138
18407
  /** Node is eligible to run audio-analyzer sessions. */
18139
18408
  audio: boolean().optional(),
18140
18409
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18141
- ingest: boolean().optional()
18410
+ ingest: boolean().optional(),
18411
+ /**
18412
+ * Operator override for the LAN host a cross-node decoder dials to reach
18413
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18414
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18415
+ * it already uses to reach the hub). Set this only when the auto-detected
18416
+ * address is wrong (multi-homed host, NAT, custom interface).
18417
+ */
18418
+ reachableHost: string().optional()
18142
18419
  });
18143
18420
  var CameraPipelineForAgentSchema = object({
18144
18421
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18186,25 +18463,6 @@ var PipelineAssignmentSchema = object({
18186
18463
  assignedAt: number()
18187
18464
  });
18188
18465
  /**
18189
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18190
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18191
- * → co-located with pipeline → capacity).
18192
- */
18193
- var DecoderAssignmentSchema = object({
18194
- deviceId: number(),
18195
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18196
- decoderNodeId: string(),
18197
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18198
- pinned: boolean(),
18199
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18200
- reason: _enum([
18201
- "manual",
18202
- "co-located",
18203
- "capacity",
18204
- "hardware-affinity"
18205
- ])
18206
- });
18207
- /**
18208
18466
  * Per-agent load summary surfaced to the load balancer + dashboards.
18209
18467
  * Aggregated from each runner's `getLocalLoad` cap call.
18210
18468
  */
@@ -18244,6 +18502,15 @@ var GlobalMetricsSchema = object({
18244
18502
  * capability providers.
18245
18503
  */
18246
18504
  var CapabilityBindingsSchema = record(string(), string());
18505
+ /**
18506
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18507
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18508
+ */
18509
+ var IngestOwnerSchema = object({
18510
+ ownerNodeId: string(),
18511
+ reachableHost: string().optional(),
18512
+ configIssue: string().optional()
18513
+ });
18247
18514
  /** Source block — always present; derives from the stream catalog. */
18248
18515
  var CameraSourceStatusSchema = object({ streams: array(object({
18249
18516
  camStreamId: string(),
@@ -18258,6 +18525,14 @@ var CameraAssignmentStatusSchema = object({
18258
18525
  detectionNodeId: string().nullable(),
18259
18526
  decoderNodeId: string().nullable(),
18260
18527
  audioNodeId: string().nullable(),
18528
+ /**
18529
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18530
+ * hosts the broker/restream) — the cluster ingest owner today
18531
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18532
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18533
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18534
+ */
18535
+ sourceNodeId: string().nullable(),
18261
18536
  pinned: object({
18262
18537
  detection: boolean(),
18263
18538
  decoder: boolean(),
@@ -18390,16 +18665,7 @@ method(object({
18390
18665
  }), object({ success: literal(true) }), {
18391
18666
  kind: "mutation",
18392
18667
  auth: "admin"
18393
- }), method(object({
18394
- deviceId: number(),
18395
- nodeId: string()
18396
- }), _void(), {
18397
- kind: "mutation",
18398
- auth: "admin"
18399
- }), method(object({ deviceId: number() }), _void(), {
18400
- kind: "mutation",
18401
- auth: "admin"
18402
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18668
+ }), method(_void(), IngestOwnerSchema), method(object({
18403
18669
  deviceId: number(),
18404
18670
  nodeId: string()
18405
18671
  }), object({ success: literal(true) }), {
@@ -18420,10 +18686,7 @@ method(object({
18420
18686
  nodeId: string(),
18421
18687
  pinned: boolean(),
18422
18688
  assignedAt: number()
18423
- }))), method(object({
18424
- deviceId: number(),
18425
- pipelineNodeId: string().optional()
18426
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18689
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18427
18690
  nodeId: string(),
18428
18691
  settings: AgentPipelineSettingsSchema
18429
18692
  })).readonly()), method(object({
@@ -18453,12 +18716,26 @@ method(object({
18453
18716
  }), method(object({
18454
18717
  agentNodeId: string(),
18455
18718
  detect: boolean().nullable().optional(),
18456
- decode: boolean().nullable().optional(),
18457
18719
  audio: boolean().nullable().optional(),
18458
18720
  ingest: boolean().nullable().optional()
18459
18721
  }), object({ success: literal(true) }), {
18460
18722
  kind: "mutation",
18461
18723
  auth: "admin"
18724
+ }), method(object({
18725
+ agentNodeId: string(),
18726
+ reachableHost: string().nullable()
18727
+ }), object({ success: literal(true) }), {
18728
+ kind: "mutation",
18729
+ auth: "admin"
18730
+ }), method(object({ agentNodeId: string() }), object({
18731
+ success: literal(true),
18732
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18733
+ effectiveModelId: string().nullable(),
18734
+ /** Number of cameras whose node-scoped overrides were cleared. */
18735
+ clearedCameraOverrides: number()
18736
+ }), {
18737
+ kind: "mutation",
18738
+ auth: "admin"
18462
18739
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18463
18740
  deviceId: number(),
18464
18741
  addonId: string(),
@@ -18503,22 +18780,131 @@ method(object({
18503
18780
  kind: "mutation",
18504
18781
  auth: "admin"
18505
18782
  });
18506
- var RegisteredStreamSchema = object({
18507
- streamId: string(),
18508
- label: string().optional(),
18509
- codec: string(),
18510
- type: _enum(["video", "audio"]),
18511
- sourceUrl: string()
18783
+ /**
18784
+ * server-management — per-NODE singleton capability for a node's ROOT
18785
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18786
+ * agents).
18787
+ *
18788
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18789
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18790
+ * version describes the node. Updates install into
18791
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18792
+ * starter (probation boot + auto-rollback to N-1).
18793
+ *
18794
+ * Providers:
18795
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18796
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18797
+ * unpinned calls.
18798
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18799
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18800
+ * `$hub.registerNode` manifest.
18801
+ *
18802
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18803
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18804
+ * SDK) routes the call to that node's provider via the standard remote
18805
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18806
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18807
+ *
18808
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18809
+ */
18810
+ /**
18811
+ * Where the running hub's code was loaded from:
18812
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18813
+ * plain resolution and runtime updates are refused.
18814
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18815
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18816
+ */
18817
+ var ServerBootModeSchema = _enum([
18818
+ "workspace",
18819
+ "baked",
18820
+ "data-root"
18821
+ ]);
18822
+ /**
18823
+ * Update lifecycle state:
18824
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18825
+ * - `pending-restart` — a version is staged and the node has NOT yet
18826
+ * restarted onto it (still running the OLD version).
18827
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18828
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18829
+ * Apply/rollback are refused in this state and the node must NOT be
18830
+ * manually restarted, or the probation boot auto-rolls-back.
18831
+ */
18832
+ var ServerUpdateStateSchema = _enum([
18833
+ "idle",
18834
+ "checking",
18835
+ "staging",
18836
+ "pending-restart",
18837
+ "awaiting-confirmation"
18838
+ ]);
18839
+ var ServerRollbackInfoSchema = object({
18840
+ /** The version that failed (or was manually rolled back). */
18841
+ fromVersion: string(),
18842
+ /** The version rolled back to; null = the baked seed. */
18843
+ toVersion: string().nullable(),
18844
+ atMs: number(),
18845
+ reason: string()
18512
18846
  });
18513
- var ExposedResourceSchema = object({
18514
- streamId: string(),
18515
- format: string(),
18516
- value: string()
18847
+ var ServerPackageStatusSchema = object({
18848
+ /** Root package name (`@camstack/server` on the hub). */
18849
+ packageName: string(),
18850
+ /** Version of the code the running process ACTUALLY loaded. */
18851
+ runningVersion: string().nullable(),
18852
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18853
+ nodeRuntimeVersion: string().nullable(),
18854
+ /** Active data-dir root version; null when booted from seed/workspace. */
18855
+ activeVersion: string().nullable(),
18856
+ /** N-1 version kept for rollback; null when no previous version exists. */
18857
+ previousVersion: string().nullable(),
18858
+ /** Version of the immutable baked seed closure (image fallback). */
18859
+ seedVersion: string().nullable(),
18860
+ /** Latest registry version from the most recent check (null = never checked). */
18861
+ latestVersion: string().nullable(),
18862
+ updateAvailable: boolean(),
18863
+ bootMode: ServerBootModeSchema,
18864
+ updateState: ServerUpdateStateSchema,
18865
+ /** Version staged + awaiting its probation boot, when one is pending. */
18866
+ pendingVersion: string().nullable(),
18867
+ /** Set when the last freshly-activated version failed its boot health-check. */
18868
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18869
+ /**
18870
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18871
+ * hub is running from the baked seed (or workspace) while installed data-dir
18872
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18873
+ */
18874
+ stateFileCorrupt: boolean(),
18875
+ lastCheckedAtMs: number().nullable()
18876
+ });
18877
+ var ServerUpdateCheckResultSchema = object({
18878
+ packageName: string(),
18879
+ runningVersion: string().nullable(),
18880
+ latestVersion: string().nullable(),
18881
+ updateAvailable: boolean(),
18882
+ checkedAtMs: number(),
18883
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18884
+ error: string().nullable()
18885
+ });
18886
+ var ServerUpdateActionResultSchema = object({
18887
+ accepted: boolean(),
18888
+ targetVersion: string().nullable(),
18889
+ /** True when a graceful restart was scheduled to apply the change. */
18890
+ restarting: boolean(),
18891
+ message: string()
18892
+ });
18893
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18894
+ kind: "mutation",
18895
+ auth: "admin"
18896
+ }), method(object({
18897
+ /** Explicit target version; omitted = latest from the registry. */
18898
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18899
+ kind: "mutation",
18900
+ auth: "admin"
18901
+ }), method(_void(), ServerUpdateActionResultSchema, {
18902
+ kind: "mutation",
18903
+ auth: "admin"
18904
+ }), method(_void(), ServerUpdateActionResultSchema, {
18905
+ kind: "mutation",
18906
+ auth: "admin"
18517
18907
  });
18518
- method(object({
18519
- deviceId: number(),
18520
- streams: array(RegisteredStreamSchema).readonly()
18521
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18522
18908
  /**
18523
18909
  * Query filter for settings-store collections.
18524
18910
  */
@@ -18671,9 +19057,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18671
19057
  /**
18672
19058
  * A single device snapshot returned as base64 JPEG/PNG.
18673
19059
  *
18674
- * Shared with the `snapshot-provider` collection cap the orchestrator
18675
- * receives the same shape from each native provider and from the
18676
- * broker-based fallback.
19060
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19061
+ * the device-native provider (onboard capture) or from the stream-broker
19062
+ * prebuffer fallback.
18677
19063
  */
18678
19064
  var SnapshotImageSchema = object({
18679
19065
  base64: string(),
@@ -18741,17 +19127,26 @@ var snapshotCapability = {
18741
19127
  invalidateCache: method(object({ deviceId: number() }), _void(), {
18742
19128
  kind: "mutation",
18743
19129
  auth: "admin"
18744
- })
19130
+ }),
19131
+ /**
19132
+ * Cache-only batch overview — answers from the wrapper's in-memory cache in
19133
+ * O(n) and NEVER triggers a capture. Lets a grid skip requesting images for
19134
+ * devices that never produced a frame, and gives it an ETag per device for
19135
+ * conditional (304-able) image fetches. `lastCapturedAt`/`cacheAgeMs`/`etag`
19136
+ * are null for a device with no cached frame.
19137
+ */
19138
+ getSnapshotOverview: systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
19139
+ deviceId: number(),
19140
+ lastCapturedAt: number().nullable(),
19141
+ cacheAgeMs: number().nullable(),
19142
+ etag: string().nullable()
19143
+ })))
18745
19144
  },
18746
19145
  status: {
18747
19146
  schema: SnapshotStatusSchema,
18748
19147
  kind: "poll"
18749
19148
  }
18750
19149
  };
18751
- method(object({ deviceId: number() }), boolean()), method(object({
18752
- deviceId: number(),
18753
- streamId: string().optional()
18754
- }), SnapshotImageSchema.nullable());
18755
19150
  /**
18756
19151
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18757
19152
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19002,10 +19397,32 @@ method(_void(), array(TurnServerSchema).readonly());
19002
19397
  * b. `finishAuthentication({userId, response})` → server verifies
19003
19398
  * the assertion, bumps the credential counter, returns ok.
19004
19399
  *
19400
+ * 2b. Usernameless (discoverable-credential) authentication — the
19401
+ * passkey IS the primary factor, no password leg:
19402
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19403
+ * EMPTY `allowCredentials` (the browser offers every resident
19404
+ * passkey it holds for this RP) + `userVerification: 'required'`
19405
+ * (the passkey replaces both factors, so UV is mandatory).
19406
+ * The challenge is stored server-side, NOT bound to any user.
19407
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19408
+ * resolves the credential by the response's credential id,
19409
+ * verifies the assertion against the stored challenge + that
19410
+ * credential's public key/counter, and returns the OWNING
19411
+ * `userId` — the caller (core auth router) mints the session.
19412
+ *
19005
19413
  * 3. Management:
19006
19414
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19007
19415
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19008
19416
  *
19417
+ * 4. Second-factor preference (opt-in, default OFF):
19418
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19419
+ * demanded as a second factor after a password login ONLY when the
19420
+ * user explicitly opts in via `setSecondFactorPreference`.
19421
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19422
+ * row ⇒ `enabled: false`).
19423
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19424
+ * the providing addon beside its credentials.
19425
+ *
19009
19426
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19010
19427
  * the admin-ui composes the begin/finish round-trip and never exposes
19011
19428
  * the cap to non-admins.
@@ -19048,6 +19465,17 @@ method(object({
19048
19465
  }), object({ verified: boolean() }), {
19049
19466
  kind: "mutation",
19050
19467
  access: "view"
19468
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19469
+ kind: "mutation",
19470
+ access: "view"
19471
+ }), method(object({
19472
+ /** AuthenticationResponseJSON from the browser. */
19473
+ response: record(string(), unknown()) }), object({
19474
+ verified: boolean(),
19475
+ userId: string().nullable()
19476
+ }), {
19477
+ kind: "mutation",
19478
+ access: "view"
19051
19479
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19052
19480
  userId: string(),
19053
19481
  credentialId: string()
@@ -19055,6 +19483,13 @@ method(object({
19055
19483
  kind: "mutation",
19056
19484
  auth: "admin",
19057
19485
  access: "delete"
19486
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19487
+ userId: string(),
19488
+ enabled: boolean()
19489
+ }), object({ success: literal(true) }), {
19490
+ kind: "mutation",
19491
+ auth: "admin",
19492
+ access: "create"
19058
19493
  });
19059
19494
  /**
19060
19495
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19112,9 +19547,10 @@ method(object({
19112
19547
  auth: "admin"
19113
19548
  });
19114
19549
  /**
19115
- * Optional client-side hints sent at session creation to help the
19116
- * provider pick the best native source. All fields are optional —
19117
- * a viewer that knows nothing still gets a sane default.
19550
+ * Optional client-side hints sent at session creation to help the provider
19551
+ * pick the best native source. All fields optional — a viewer that knows
19552
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19553
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19118
19554
  */
19119
19555
  var webrtcClientHintsSchema = object({
19120
19556
  viewportWidth: number().int().positive().optional(),
@@ -19125,22 +19561,6 @@ var webrtcClientHintsSchema = object({
19125
19561
  /** Hard tier override; takes precedence over scoring when registered. */
19126
19562
  prefersTier: string().optional()
19127
19563
  }).partial();
19128
- method(object({
19129
- streamId: string(),
19130
- sdpOffer: string()
19131
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19132
- streamId: string(),
19133
- codec: string()
19134
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19135
- streamId: string(),
19136
- hints: webrtcClientHintsSchema.optional()
19137
- }), object({
19138
- sessionId: string(),
19139
- sdpOffer: string()
19140
- }), { kind: "mutation" }), method(object({
19141
- sessionId: string(),
19142
- sdpAnswer: string()
19143
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19144
19564
  /**
19145
19565
  * Discriminated target for a WebRTC session. The client sends this
19146
19566
  * structured object instead of building / parsing brokerId strings;
@@ -19871,7 +20291,17 @@ var FaceInfoSchema = object({
19871
20291
  recognizedIdentityId: string().optional(),
19872
20292
  identityName: string().optional(),
19873
20293
  assigned: boolean(),
19874
- base64: string().optional()
20294
+ base64: string().optional(),
20295
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20296
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20297
+ * legacy rows written before design B. */
20298
+ faceBbox: BoundingBoxSchema.optional(),
20299
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20300
+ * Fetch the native JPEG via the event-media data-plane
20301
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20302
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20303
+ * back to the inline `base64` face crop. */
20304
+ keyFrameMediaKey: string().optional()
19875
20305
  });
19876
20306
  var FaceFilterEnum = _enum([
19877
20307
  "unassigned",
@@ -20619,6 +21049,16 @@ var TopologyCategorySchema = object({
20619
21049
  healthy: number(),
20620
21050
  addons: array(TopologyCategoryAddonSchema).readonly()
20621
21051
  });
21052
+ /**
21053
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
21054
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
21055
+ * version visibility for the Server management surface. Nullable: offline
21056
+ * rows and pre-phase-2 nodes report none.
21057
+ */
21058
+ var TopologyRootPackageSchema = object({
21059
+ name: string(),
21060
+ version: string()
21061
+ });
20622
21062
  var TopologyNodeSchema = object({
20623
21063
  id: string(),
20624
21064
  name: string(),
@@ -20642,7 +21082,8 @@ var TopologyNodeSchema = object({
20642
21082
  status: string()
20643
21083
  })).readonly(),
20644
21084
  processes: array(TopologyProcessSchema).readonly(),
20645
- categories: array(TopologyCategorySchema).readonly()
21085
+ categories: array(TopologyCategorySchema).readonly(),
21086
+ rootPackage: TopologyRootPackageSchema.nullable()
20646
21087
  });
20647
21088
  var CapUsageEdgeSchema = object({
20648
21089
  callerAddonId: string(),
@@ -23455,6 +23896,12 @@ Object.freeze({
23455
23896
  addonId: null,
23456
23897
  access: "create"
23457
23898
  },
23899
+ "loginMethod.getLoginMethods": {
23900
+ capName: "login-method",
23901
+ capScope: "system",
23902
+ addonId: null,
23903
+ access: "view"
23904
+ },
23458
23905
  "mediaPlayer.next": {
23459
23906
  capName: "media-player",
23460
23907
  capScope: "device",
@@ -24037,6 +24484,12 @@ Object.freeze({
24037
24484
  addonId: null,
24038
24485
  access: "view"
24039
24486
  },
24487
+ "pipelineAnalytics.getKeyEvents": {
24488
+ capName: "pipeline-analytics",
24489
+ capScope: "device",
24490
+ addonId: null,
24491
+ access: "view"
24492
+ },
24040
24493
  "pipelineAnalytics.getMotionEvents": {
24041
24494
  capName: "pipeline-analytics",
24042
24495
  capScope: "device",
@@ -24085,23 +24538,23 @@ Object.freeze({
24085
24538
  addonId: null,
24086
24539
  access: "create"
24087
24540
  },
24088
- "pipelineExecutor.deleteModel": {
24541
+ "pipelineExecutor.clearDeviceOverrides": {
24089
24542
  capName: "pipeline-executor",
24090
24543
  capScope: "system",
24091
24544
  addonId: null,
24092
24545
  access: "delete"
24093
24546
  },
24094
- "pipelineExecutor.deleteTemplate": {
24547
+ "pipelineExecutor.deleteModel": {
24095
24548
  capName: "pipeline-executor",
24096
24549
  capScope: "system",
24097
24550
  addonId: null,
24098
24551
  access: "delete"
24099
24552
  },
24100
- "pipelineExecutor.detect": {
24553
+ "pipelineExecutor.deleteTemplate": {
24101
24554
  capName: "pipeline-executor",
24102
24555
  capScope: "system",
24103
24556
  addonId: null,
24104
- access: "view"
24557
+ access: "delete"
24105
24558
  },
24106
24559
  "pipelineExecutor.downloadModel": {
24107
24560
  capName: "pipeline-executor",
@@ -24295,13 +24748,13 @@ Object.freeze({
24295
24748
  addonId: null,
24296
24749
  access: "create"
24297
24750
  },
24298
- "pipelineOrchestrator.assignAudio": {
24299
- capName: "pipeline-orchestrator",
24751
+ "pipelineExecutor.validatePipeline": {
24752
+ capName: "pipeline-executor",
24300
24753
  capScope: "system",
24301
24754
  addonId: null,
24302
- access: "create"
24755
+ access: "view"
24303
24756
  },
24304
- "pipelineOrchestrator.assignDecoder": {
24757
+ "pipelineOrchestrator.assignAudio": {
24305
24758
  capName: "pipeline-orchestrator",
24306
24759
  capScope: "system",
24307
24760
  addonId: null,
@@ -24385,19 +24838,13 @@ Object.freeze({
24385
24838
  addonId: null,
24386
24839
  access: "view"
24387
24840
  },
24388
- "pipelineOrchestrator.getDecoderAssignment": {
24841
+ "pipelineOrchestrator.getGlobalMetrics": {
24389
24842
  capName: "pipeline-orchestrator",
24390
24843
  capScope: "system",
24391
24844
  addonId: null,
24392
24845
  access: "view"
24393
24846
  },
24394
- "pipelineOrchestrator.getDecoderAssignments": {
24395
- capName: "pipeline-orchestrator",
24396
- capScope: "system",
24397
- addonId: null,
24398
- access: "view"
24399
- },
24400
- "pipelineOrchestrator.getGlobalMetrics": {
24847
+ "pipelineOrchestrator.getIngestOwner": {
24401
24848
  capName: "pipeline-orchestrator",
24402
24849
  capScope: "system",
24403
24850
  addonId: null,
@@ -24439,6 +24886,12 @@ Object.freeze({
24439
24886
  addonId: null,
24440
24887
  access: "delete"
24441
24888
  },
24889
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24890
+ capName: "pipeline-orchestrator",
24891
+ capScope: "system",
24892
+ addonId: null,
24893
+ access: "delete"
24894
+ },
24442
24895
  "pipelineOrchestrator.resolvePipeline": {
24443
24896
  capName: "pipeline-orchestrator",
24444
24897
  capScope: "system",
@@ -24475,37 +24928,37 @@ Object.freeze({
24475
24928
  addonId: null,
24476
24929
  access: "create"
24477
24930
  },
24478
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24931
+ "pipelineOrchestrator.setAgentReachableHost": {
24479
24932
  capName: "pipeline-orchestrator",
24480
24933
  capScope: "system",
24481
24934
  addonId: null,
24482
24935
  access: "create"
24483
24936
  },
24484
- "pipelineOrchestrator.setCameraStepOverride": {
24937
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24485
24938
  capName: "pipeline-orchestrator",
24486
24939
  capScope: "system",
24487
24940
  addonId: null,
24488
24941
  access: "create"
24489
24942
  },
24490
- "pipelineOrchestrator.setCameraStepToggle": {
24943
+ "pipelineOrchestrator.setCameraStepOverride": {
24491
24944
  capName: "pipeline-orchestrator",
24492
24945
  capScope: "system",
24493
24946
  addonId: null,
24494
24947
  access: "create"
24495
24948
  },
24496
- "pipelineOrchestrator.setCapabilityBinding": {
24949
+ "pipelineOrchestrator.setCameraStepToggle": {
24497
24950
  capName: "pipeline-orchestrator",
24498
24951
  capScope: "system",
24499
24952
  addonId: null,
24500
24953
  access: "create"
24501
24954
  },
24502
- "pipelineOrchestrator.unassignAudio": {
24955
+ "pipelineOrchestrator.setCapabilityBinding": {
24503
24956
  capName: "pipeline-orchestrator",
24504
24957
  capScope: "system",
24505
24958
  addonId: null,
24506
24959
  access: "create"
24507
24960
  },
24508
- "pipelineOrchestrator.unassignDecoder": {
24961
+ "pipelineOrchestrator.unassignAudio": {
24509
24962
  capName: "pipeline-orchestrator",
24510
24963
  capScope: "system",
24511
24964
  addonId: null,
@@ -24565,12 +25018,24 @@ Object.freeze({
24565
25018
  addonId: null,
24566
25019
  access: "view"
24567
25020
  },
25021
+ "pipelineRunner.getNativeCrop": {
25022
+ capName: "pipeline-runner",
25023
+ capScope: "system",
25024
+ addonId: null,
25025
+ access: "view"
25026
+ },
24568
25027
  "pipelineRunner.reportMotion": {
24569
25028
  capName: "pipeline-runner",
24570
25029
  capScope: "system",
24571
25030
  addonId: null,
24572
25031
  access: "create"
24573
25032
  },
25033
+ "pipelineRunner.runDetailSubtree": {
25034
+ capName: "pipeline-runner",
25035
+ capScope: "system",
25036
+ addonId: null,
25037
+ access: "create"
25038
+ },
24574
25039
  "plateGallery.correctPlateText": {
24575
25040
  capName: "plate-gallery",
24576
25041
  capScope: "system",
@@ -24805,33 +25270,45 @@ Object.freeze({
24805
25270
  addonId: null,
24806
25271
  access: "create"
24807
25272
  },
24808
- "restreamer.getExposedResources": {
24809
- capName: "restreamer",
25273
+ "scriptRunner.run": {
25274
+ capName: "script-runner",
25275
+ capScope: "device",
25276
+ addonId: null,
25277
+ access: "create"
25278
+ },
25279
+ "scriptRunner.stop": {
25280
+ capName: "script-runner",
25281
+ capScope: "device",
25282
+ addonId: null,
25283
+ access: "create"
25284
+ },
25285
+ "serverManagement.applyServerUpdate": {
25286
+ capName: "server-management",
24810
25287
  capScope: "system",
24811
25288
  addonId: null,
24812
- access: "view"
25289
+ access: "create"
24813
25290
  },
24814
- "restreamer.registerDevice": {
24815
- capName: "restreamer",
25291
+ "serverManagement.checkServerUpdate": {
25292
+ capName: "server-management",
24816
25293
  capScope: "system",
24817
25294
  addonId: null,
24818
25295
  access: "create"
24819
25296
  },
24820
- "restreamer.unregisterDevice": {
24821
- capName: "restreamer",
25297
+ "serverManagement.getServerPackageStatus": {
25298
+ capName: "server-management",
24822
25299
  capScope: "system",
24823
25300
  addonId: null,
24824
- access: "delete"
25301
+ access: "view"
24825
25302
  },
24826
- "scriptRunner.run": {
24827
- capName: "script-runner",
24828
- capScope: "device",
25303
+ "serverManagement.restartServer": {
25304
+ capName: "server-management",
25305
+ capScope: "system",
24829
25306
  addonId: null,
24830
25307
  access: "create"
24831
25308
  },
24832
- "scriptRunner.stop": {
24833
- capName: "script-runner",
24834
- capScope: "device",
25309
+ "serverManagement.rollbackServerUpdate": {
25310
+ capName: "server-management",
25311
+ capScope: "system",
24835
25312
  addonId: null,
24836
25313
  access: "create"
24837
25314
  },
@@ -24919,23 +25396,17 @@ Object.freeze({
24919
25396
  addonId: null,
24920
25397
  access: "view"
24921
25398
  },
24922
- "snapshot.invalidateCache": {
25399
+ "snapshot.getSnapshotOverview": {
24923
25400
  capName: "snapshot",
24924
25401
  capScope: "device",
24925
25402
  addonId: null,
24926
- access: "create"
24927
- },
24928
- "snapshotProvider.getSnapshot": {
24929
- capName: "snapshot-provider",
24930
- capScope: "system",
24931
- addonId: null,
24932
25403
  access: "view"
24933
25404
  },
24934
- "snapshotProvider.supportsDevice": {
24935
- capName: "snapshot-provider",
24936
- capScope: "system",
25405
+ "snapshot.invalidateCache": {
25406
+ capName: "snapshot",
25407
+ capScope: "device",
24937
25408
  addonId: null,
24938
- access: "view"
25409
+ access: "create"
24939
25410
  },
24940
25411
  "ssoBridge.signBridgeToken": {
24941
25412
  capName: "sso-bridge",
@@ -25363,30 +25834,6 @@ Object.freeze({
25363
25834
  addonId: null,
25364
25835
  access: "view"
25365
25836
  },
25366
- "streamingEngine.getStreamUrl": {
25367
- capName: "streaming-engine",
25368
- capScope: "system",
25369
- addonId: null,
25370
- access: "view"
25371
- },
25372
- "streamingEngine.listStreams": {
25373
- capName: "streaming-engine",
25374
- capScope: "system",
25375
- addonId: null,
25376
- access: "view"
25377
- },
25378
- "streamingEngine.registerStream": {
25379
- capName: "streaming-engine",
25380
- capScope: "system",
25381
- addonId: null,
25382
- access: "create"
25383
- },
25384
- "streamingEngine.unregisterStream": {
25385
- capName: "streaming-engine",
25386
- capScope: "system",
25387
- addonId: null,
25388
- access: "delete"
25389
- },
25390
25837
  "streamParams.getConfigSchema": {
25391
25838
  capName: "stream-params",
25392
25839
  capScope: "device",
@@ -25633,6 +26080,12 @@ Object.freeze({
25633
26080
  addonId: null,
25634
26081
  access: "view"
25635
26082
  },
26083
+ "userPasskeys.beginDiscoverableAuthentication": {
26084
+ capName: "user-passkeys",
26085
+ capScope: "system",
26086
+ addonId: null,
26087
+ access: "view"
26088
+ },
25636
26089
  "userPasskeys.beginRegistration": {
25637
26090
  capName: "user-passkeys",
25638
26091
  capScope: "system",
@@ -25645,12 +26098,24 @@ Object.freeze({
25645
26098
  addonId: null,
25646
26099
  access: "view"
25647
26100
  },
26101
+ "userPasskeys.finishDiscoverableAuthentication": {
26102
+ capName: "user-passkeys",
26103
+ capScope: "system",
26104
+ addonId: null,
26105
+ access: "view"
26106
+ },
25648
26107
  "userPasskeys.finishRegistration": {
25649
26108
  capName: "user-passkeys",
25650
26109
  capScope: "system",
25651
26110
  addonId: null,
25652
26111
  access: "create"
25653
26112
  },
26113
+ "userPasskeys.getSecondFactorPreference": {
26114
+ capName: "user-passkeys",
26115
+ capScope: "system",
26116
+ addonId: null,
26117
+ access: "view"
26118
+ },
25654
26119
  "userPasskeys.listPasskeys": {
25655
26120
  capName: "user-passkeys",
25656
26121
  capScope: "system",
@@ -25663,6 +26128,12 @@ Object.freeze({
25663
26128
  addonId: null,
25664
26129
  access: "delete"
25665
26130
  },
26131
+ "userPasskeys.setSecondFactorPreference": {
26132
+ capName: "user-passkeys",
26133
+ capScope: "system",
26134
+ addonId: null,
26135
+ access: "create"
26136
+ },
25666
26137
  "vacuumControl.locate": {
25667
26138
  capName: "vacuum-control",
25668
26139
  capScope: "device",
@@ -25735,6 +26206,18 @@ Object.freeze({
25735
26206
  addonId: null,
25736
26207
  access: "view"
25737
26208
  },
26209
+ "viewerUi.getStaticDir": {
26210
+ capName: "viewer-ui",
26211
+ capScope: "system",
26212
+ addonId: null,
26213
+ access: "view"
26214
+ },
26215
+ "viewerUi.getVersion": {
26216
+ capName: "viewer-ui",
26217
+ capScope: "system",
26218
+ addonId: null,
26219
+ access: "view"
26220
+ },
25738
26221
  "waterHeater.setAway": {
25739
26222
  capName: "water-heater",
25740
26223
  capScope: "device",
@@ -25753,54 +26236,6 @@ Object.freeze({
25753
26236
  addonId: null,
25754
26237
  access: "create"
25755
26238
  },
25756
- "webrtc.closeSession": {
25757
- capName: "webrtc",
25758
- capScope: "system",
25759
- addonId: null,
25760
- access: "create"
25761
- },
25762
- "webrtc.createSession": {
25763
- capName: "webrtc",
25764
- capScope: "system",
25765
- addonId: null,
25766
- access: "create"
25767
- },
25768
- "webrtc.handleAnswer": {
25769
- capName: "webrtc",
25770
- capScope: "system",
25771
- addonId: null,
25772
- access: "create"
25773
- },
25774
- "webrtc.handleOffer": {
25775
- capName: "webrtc",
25776
- capScope: "system",
25777
- addonId: null,
25778
- access: "create"
25779
- },
25780
- "webrtc.hasAdaptiveBitrate": {
25781
- capName: "webrtc",
25782
- capScope: "system",
25783
- addonId: null,
25784
- access: "view"
25785
- },
25786
- "webrtc.registerStream": {
25787
- capName: "webrtc",
25788
- capScope: "system",
25789
- addonId: null,
25790
- access: "create"
25791
- },
25792
- "webrtc.supportsStream": {
25793
- capName: "webrtc",
25794
- capScope: "system",
25795
- addonId: null,
25796
- access: "view"
25797
- },
25798
- "webrtc.unregisterStream": {
25799
- capName: "webrtc",
25800
- capScope: "system",
25801
- addonId: null,
25802
- access: "delete"
25803
- },
25804
26239
  "webrtcSession.addIceCandidate": {
25805
26240
  capName: "webrtc-session",
25806
26241
  capScope: "device",