@camstack/addon-matter-broker 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 +715 -288
  2. package/dist/addon.mjs +715 -288
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -4654,7 +4654,7 @@ function preprocess(fn, schema) {
4654
4654
  });
4655
4655
  }
4656
4656
  //#endregion
4657
- //#region ../types/dist/sleep-CZDdRBua.mjs
4657
+ //#region ../types/dist/sleep-Baang_XW.mjs
4658
4658
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4659
4659
  EventCategory["SystemBoot"] = "system.boot";
4660
4660
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4840,6 +4840,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4840
4840
  */
4841
4841
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4842
4842
  /**
4843
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4844
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4845
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4846
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4847
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4848
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4849
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4850
+ * topology change, so a dropped event self-heals on the next one (plus the
4851
+ * broker's long backstop reconcile query).
4852
+ */
4853
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4854
+ /**
4843
4855
  * Periodic snapshot of per-node pipeline-runner load
4844
4856
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4845
4857
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5363,10 +5375,6 @@ function hydrateField(field, values) {
5363
5375
  };
5364
5376
  }
5365
5377
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5366
- if (field.type === "password") return {
5367
- ...field,
5368
- value: ""
5369
- };
5370
5378
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5371
5379
  return {
5372
5380
  ...field,
@@ -6750,10 +6758,25 @@ function method(input, output, options) {
6750
6758
  timeoutMs: options?.timeoutMs
6751
6759
  };
6752
6760
  }
6761
+ /**
6762
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6763
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6764
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6765
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6766
+ */
6767
+ function systemMethod(input, output, options) {
6768
+ return {
6769
+ ...method(input, output, options),
6770
+ systemOnly: true
6771
+ };
6772
+ }
6753
6773
  /** Shorthand to define an event schema */
6754
6774
  function event$1(data) {
6755
6775
  return { data };
6756
6776
  }
6777
+ var StaticDirOutputSchema$1 = object({ staticDir: string$2() });
6778
+ var VersionOutputSchema$1 = object({ version: string$2() });
6779
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6757
6780
  var StaticDirOutputSchema = object({ staticDir: string$2() });
6758
6781
  var VersionOutputSchema = object({ version: string$2() });
6759
6782
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6935,6 +6958,36 @@ var ModelFormatsSchema = object({
6935
6958
  tflite: ModelFormatEntrySchema.optional(),
6936
6959
  pt: ModelFormatEntrySchema.optional()
6937
6960
  });
6961
+ /**
6962
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6963
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6964
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6965
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6966
+ * resolution/download/persistence; this is a presentation overlay resolved back
6967
+ * to an `id`.
6968
+ */
6969
+ var ModelVariantGroupSchema = object({
6970
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6971
+ family: string$2(),
6972
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6973
+ tier: string$2(),
6974
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6975
+ precision: _enum(["fp32", "int8"]).optional(),
6976
+ /**
6977
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6978
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6979
+ * future performance variants plug into.
6980
+ */
6981
+ optimization: _enum(["standard", "fast"]).optional(),
6982
+ /**
6983
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6984
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6985
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6986
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6987
+ * the group so the selector can offer it as a variant axis.
6988
+ */
6989
+ resolution: number().int().positive().optional()
6990
+ });
6938
6991
  var ModelCatalogEntrySchema = object({
6939
6992
  id: string$2(),
6940
6993
  name: string$2(),
@@ -6964,7 +7017,43 @@ var ModelCatalogEntrySchema = object({
6964
7017
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6965
7018
  * Downloaded into the same modelsDir alongside the model file.
6966
7019
  */
6967
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7020
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7021
+ /**
7022
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7023
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7024
+ * model list and excluded from the auto format-default pick. Set on the
7025
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7026
+ * the active lineup stays the coherent curated ladder without deleting a
7027
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7028
+ * an explicit legacy id that has a build for the node's format.
7029
+ */
7030
+ legacy: boolean().optional(),
7031
+ /**
7032
+ * Measured quality/latency metadata — populated from the benchmark addon on
7033
+ * the real node classes. Absent = not yet measured (most entries today; the
7034
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7035
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7036
+ */
7037
+ metrics: object({
7038
+ map50: number().optional(),
7039
+ p95LatencyMs: record(string$2(), number()).optional()
7040
+ }).optional(),
7041
+ /**
7042
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7043
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7044
+ * the retraining addon and any future commercial distribution.
7045
+ */
7046
+ license: string$2().optional(),
7047
+ /**
7048
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7049
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7050
+ * of a family's sizes and quantizations collapse into one grouped picker
7051
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7052
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7053
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7054
+ * is a presentation overlay resolved back to an `id`.
7055
+ */
7056
+ group: ModelVariantGroupSchema.optional()
6968
7057
  });
6969
7058
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6970
7059
  format: literal("openvino"),
@@ -7025,8 +7114,8 @@ var RecordingModeSchema = _enum([
7025
7114
  "onAudioThreshold"
7026
7115
  ]);
7027
7116
  /**
7028
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7029
- * reads directly (never inferred from `rules`):
7117
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7118
+ * UI reads directly (never inferred from `rules`):
7030
7119
  * - `off` — not recording.
7031
7120
  * - `events` — record only around triggers (motion / audio threshold),
7032
7121
  * with pre/post-buffer.
@@ -9189,26 +9278,13 @@ onBrightnessChanged: { data: object({
9189
9278
  */
9190
9279
  runtimeState: BrightnessStatusSchema
9191
9280
  };
9281
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9192
9282
  var StreamFormatSchema = _enum([
9193
9283
  "webrtc",
9194
9284
  "hls",
9195
9285
  "mjpeg",
9196
9286
  "rtsp"
9197
9287
  ]);
9198
- var StreamInfoSchema = object({
9199
- streamId: string$2(),
9200
- format: StreamFormatSchema,
9201
- url: string$2().nullable(),
9202
- active: boolean()
9203
- });
9204
- method(object({
9205
- streamId: string$2(),
9206
- sourceUrl: string$2(),
9207
- codec: string$2().optional()
9208
- }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), _void(), { kind: "mutation" }), method(object({
9209
- streamId: string$2(),
9210
- format: StreamFormatSchema
9211
- }), string$2().nullable()), method(_void(), array(StreamInfoSchema));
9212
9288
  var RtspRestreamEntrySchema = object({
9213
9289
  brokerId: string$2(),
9214
9290
  url: string$2(),
@@ -10076,37 +10152,7 @@ var consumablesCapability = {
10076
10152
  scope: "device",
10077
10153
  deviceNative: true,
10078
10154
  mode: "singleton",
10079
- deviceTypes: [
10080
- DeviceType.Camera,
10081
- DeviceType.Hub,
10082
- DeviceType.Light,
10083
- DeviceType.Siren,
10084
- DeviceType.Switch,
10085
- DeviceType.Sensor,
10086
- DeviceType.Thermostat,
10087
- DeviceType.Button,
10088
- DeviceType.EventEmitter,
10089
- DeviceType.Update,
10090
- DeviceType.Generic,
10091
- DeviceType.Notifier,
10092
- DeviceType.Script,
10093
- DeviceType.Automation,
10094
- DeviceType.Lock,
10095
- DeviceType.Cover,
10096
- DeviceType.Valve,
10097
- DeviceType.Humidifier,
10098
- DeviceType.WaterHeater,
10099
- DeviceType.Fan,
10100
- DeviceType.MediaPlayer,
10101
- DeviceType.AlarmPanel,
10102
- DeviceType.Control,
10103
- DeviceType.Presence,
10104
- DeviceType.Weather,
10105
- DeviceType.Vacuum,
10106
- DeviceType.LawnMower,
10107
- DeviceType.Container,
10108
- DeviceType.Image
10109
- ],
10155
+ deviceTypes: Object.values(DeviceType),
10110
10156
  deviceConfig: { ui: {
10111
10157
  kind: "widget",
10112
10158
  widgetId: "host/consumables-panel",
@@ -11564,7 +11610,7 @@ var BoundingBoxSchema = object({
11564
11610
  w: number(),
11565
11611
  h: number()
11566
11612
  });
11567
- var SpatialDetectionSchema = object({
11613
+ object({
11568
11614
  class: string$2(),
11569
11615
  originalClass: string$2(),
11570
11616
  score: number(),
@@ -11699,7 +11745,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11699
11745
  enabled: boolean(),
11700
11746
  modelId: string$2(),
11701
11747
  children: array(PipelineDefaultStepSchema).readonly(),
11702
- engine: PipelineEngineChoiceSchema.optional(),
11703
11748
  group: string$2().optional(),
11704
11749
  settings: record(string$2(), unknown()).optional()
11705
11750
  }));
@@ -11724,7 +11769,9 @@ var PipelineModelOptionSchema = object({
11724
11769
  formats: record(string$2(), object({
11725
11770
  downloaded: boolean(),
11726
11771
  sizeMB: number()
11727
- }))
11772
+ })),
11773
+ group: ModelVariantGroupSchema.optional(),
11774
+ legacy: boolean().optional()
11728
11775
  });
11729
11776
  var ConfigFieldBridge = custom();
11730
11777
  var PipelineAddonSchemaSchema = object({
@@ -11738,6 +11785,7 @@ var PipelineAddonSchemaSchema = object({
11738
11785
  defaultModelId: string$2(),
11739
11786
  defaultModelIdByFormat: record(string$2(), string$2()).optional(),
11740
11787
  enabledByDefault: boolean().optional(),
11788
+ backfillIntoExistingOverrides: boolean().optional(),
11741
11789
  defaultConfidence: number(),
11742
11790
  group: string$2().optional(),
11743
11791
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11754,11 +11802,6 @@ var PipelineSchemaSchema = object({
11754
11802
  selectedEngine: PipelineEngineChoiceSchema,
11755
11803
  slots: array(PipelineSlotSchemaSchema).readonly()
11756
11804
  });
11757
- var DetectorOutputSchema = object({
11758
- detections: array(SpatialDetectionSchema).readonly(),
11759
- inferenceMs: number(),
11760
- modelId: string$2()
11761
- });
11762
11805
  var EngineProvisioningSchema = object({
11763
11806
  runtimeId: _enum([
11764
11807
  "onnx",
@@ -11775,15 +11818,42 @@ var EngineProvisioningSchema = object({
11775
11818
  ]),
11776
11819
  progress: number().optional(),
11777
11820
  error: string$2().optional(),
11778
- nextRetryAt: number().optional()
11821
+ nextRetryAt: number().optional(),
11822
+ /**
11823
+ * Gate A (config-correctness gate at engine change): human-readable
11824
+ * config issues surfaced EAGERLY when the node's engine changes — model
11825
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11826
+ * has a <format> build"). Additive/optional: informational only, never
11827
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11828
+ * Absent/empty when the node-default tree resolves cleanly.
11829
+ */
11830
+ configIssues: array(string$2()).optional()
11779
11831
  });
11780
11832
  var PipelineStepInputSchema = lazy(() => object({
11781
11833
  addonId: string$2(),
11782
- modelId: string$2(),
11834
+ modelId: string$2().optional(),
11783
11835
  enabled: boolean().default(true),
11784
11836
  children: array(PipelineStepInputSchema).optional(),
11785
11837
  settings: record(string$2(), unknown()).optional()
11786
11838
  }));
11839
+ var ModelSubstitutionSchema = object({
11840
+ addonId: string$2(),
11841
+ chosen: string$2(),
11842
+ running: string$2(),
11843
+ format: string$2()
11844
+ });
11845
+ var PipelineValidationIssueSchema = object({
11846
+ addonId: string$2(),
11847
+ kind: _enum(["unknown-addon", "no-format-build"]),
11848
+ detail: string$2()
11849
+ });
11850
+ var PipelineValidationResultSchema = object({
11851
+ ok: boolean(),
11852
+ issues: array(PipelineValidationIssueSchema).readonly(),
11853
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11854
+ /** The node's `currentEngine.format` this validation ran against. */
11855
+ format: string$2()
11856
+ });
11787
11857
  var ReferenceImageEntrySchema = object({
11788
11858
  filename: string$2(),
11789
11859
  stepIds: array(string$2()).readonly().optional()
@@ -11854,7 +11924,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11854
11924
  })) }), object({ success: literal(true) }), {
11855
11925
  kind: "mutation",
11856
11926
  auth: "admin"
11857
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11927
+ }), method(object({ nodeId: string$2() }), object({
11928
+ success: literal(true),
11929
+ clearedDevices: number()
11930
+ }), {
11931
+ kind: "mutation",
11932
+ auth: "admin"
11933
+ }), 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({
11858
11934
  name: string$2(),
11859
11935
  steps: array(PipelineTemplateStepSchema).readonly(),
11860
11936
  engine: PipelineEngineChoiceSchema
@@ -11871,10 +11947,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11871
11947
  modelId: string$2(),
11872
11948
  format: ModelFormatSchema$1
11873
11949
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11874
- addonId: string$2(),
11875
- frame: FrameInputSchema,
11876
- config: record(string$2(), unknown()).optional()
11877
- }), DetectorOutputSchema), method(object({
11878
11950
  engine: PipelineEngineChoiceSchema.optional(),
11879
11951
  steps: array(PipelineStepInputSchema).min(1),
11880
11952
  frame: FrameInputSchema.optional(),
@@ -11895,7 +11967,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11895
11967
  image: _instanceof(Uint8Array).optional(),
11896
11968
  referenceImage: string$2().optional(),
11897
11969
  deviceId: number().optional(),
11898
- sessionId: string$2().optional()
11970
+ sessionId: string$2().optional(),
11971
+ /**
11972
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
11973
+ * reference-image, and detail-subtree calls. 'frame' is the live
11974
+ * per-frame dispatch: ONLY root-plane steps run; crop children
11975
+ * (inputClasses ≠ null) are skipped and served per-track via
11976
+ * pipelineRunner.runDetailSubtree (two-plane design).
11977
+ */
11978
+ plane: _enum(["full", "frame"]).optional()
11899
11979
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
11900
11980
  engine: PipelineEngineChoiceSchema.optional(),
11901
11981
  steps: array(PipelineStepInputSchema).min(1),
@@ -12053,6 +12133,47 @@ var zonesCapability = {
12053
12133
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12054
12134
  };
12055
12135
  /**
12136
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12137
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12138
+ * so the caller supplies only the detection-res bbox divided by the detection
12139
+ * dims — no native resolution to plumb.
12140
+ */
12141
+ var NativeCropBboxSchema = object({
12142
+ x: number(),
12143
+ y: number(),
12144
+ w: number(),
12145
+ h: number()
12146
+ });
12147
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12148
+ var NativeCropResultSchema = object({
12149
+ /** Packed rgb (24-bit) pixels of the crop. */
12150
+ bytes: _instanceof(Uint8Array),
12151
+ width: number().int().positive(),
12152
+ height: number().int().positive()
12153
+ });
12154
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12155
+ * originating detection, in FRAME-space coordinates. Reuses
12156
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12157
+ * the coordinates are frame-space rather than getNativeCrop's
12158
+ * normalized [0,1] convention). */
12159
+ var DetailParentSchema = object({
12160
+ bbox: NativeCropBboxSchema,
12161
+ className: string$2()
12162
+ });
12163
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12164
+ * or refined detection produced by running the crop-subtree on a
12165
+ * single tracked detection. */
12166
+ var DetailResultSchema = object({
12167
+ stepId: string$2(),
12168
+ className: string$2(),
12169
+ score: number(),
12170
+ /** FRAME-space bbox (already mapped back from crop space). */
12171
+ bbox: NativeCropBboxSchema.optional(),
12172
+ embedding: string$2().optional(),
12173
+ label: string$2().optional(),
12174
+ alignedCropJpeg: string$2().optional()
12175
+ });
12176
+ /**
12056
12177
  * Per-camera tunable ranges + defaults. Single source of truth used
12057
12178
  * by both the Zod data schema (validation + default fallback) and
12058
12179
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12147,6 +12268,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12147
12268
  kind: literal("remote-restream"),
12148
12269
  /** The camera's source-owner node (slice 1: always the hub). */
12149
12270
  ownerNodeId: string$2(),
12271
+ /**
12272
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12273
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12274
+ * dials THIS host for the owner's restream, in preference to the
12275
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12276
+ */
12277
+ ownerReachableHost: string$2().optional(),
12150
12278
  /** Operator override for the owner host the runner dials. */
12151
12279
  hubHostnameOverride: string$2().optional()
12152
12280
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12155,13 +12283,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12155
12283
  * specific runner instance via `attachCamera`. Carries everything the
12156
12284
  * runner needs to subscribe to the local broker and execute inference.
12157
12285
  *
12158
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12159
- * optional `audio`) travels with the attach payload. The runner keeps it
12160
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12161
- * restart the orchestrator re-sends the latest snapshot.
12162
- *
12163
- * `engine`/`steps`/`audio` are optional during the additive migration
12164
- * window; once orchestrator + UI are migrated they become required.
12286
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12287
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12288
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12289
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12290
+ * node-local, resolved by the executing runner at dispatch time.
12165
12291
  */
12166
12292
  var RunnerCameraConfigSchema = object({
12167
12293
  deviceId: number(),
@@ -12212,14 +12338,11 @@ var RunnerCameraConfigSchema = object({
12212
12338
  */
12213
12339
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12214
12340
  pipelineEnabled: boolean().default(true),
12215
- /** Engine choice for video steps (runtime+backend+format). */
12216
- engine: PipelineEngineChoiceSchema.optional(),
12217
12341
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12218
12342
  steps: array(PipelineStepInputSchema).readonly().optional(),
12219
12343
  /** Audio classification branch. `enabled:false` disables, null skips. */
12220
12344
  audio: object({
12221
- engine: PipelineEngineChoiceSchema,
12222
- modelId: string$2(),
12345
+ modelId: string$2().optional(),
12223
12346
  enabled: boolean()
12224
12347
  }).nullable().optional(),
12225
12348
  /**
@@ -12306,7 +12429,17 @@ var RunnerLocalMetricsSchema = object({
12306
12429
  avgInferenceTimeMs: number(),
12307
12430
  queueDepth: number()
12308
12431
  });
12309
- 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());
12432
+ 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({
12433
+ handle: FrameHandleSchema,
12434
+ bbox: NativeCropBboxSchema,
12435
+ maxWidth: number().int().positive().optional()
12436
+ }), NativeCropResultSchema.nullable()), method(object({
12437
+ deviceId: number(),
12438
+ frameHandle: FrameHandleSchema.optional(),
12439
+ cropJpeg: string$2().optional(),
12440
+ parent: DetailParentSchema,
12441
+ steps: array(string$2()).optional()
12442
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12310
12443
  /**
12311
12444
  * Hardware / firmware motion sensor cap — binary detected state plus
12312
12445
  * a timestamp of the last observation. Distinct from
@@ -15237,7 +15370,9 @@ var AddonPageDeclarationSchema$1 = object({
15237
15370
  icon: string$2(),
15238
15371
  path: string$2(),
15239
15372
  remoteName: string$2(),
15240
- bundle: string$2()
15373
+ bundle: string$2(),
15374
+ section: string$2().optional(),
15375
+ sectionLabel: string$2().optional()
15241
15376
  });
15242
15377
  var AddonPageInfoSchema = object({
15243
15378
  addonId: string$2(),
@@ -15277,7 +15412,18 @@ var AddonPageDeclarationSchema = object({
15277
15412
  * the static-file route can compute an mtime-based cache-buster URL
15278
15413
  * without a separate filesystem stat.
15279
15414
  */
15280
- bundle: string$2()
15415
+ bundle: string$2(),
15416
+ /**
15417
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15418
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15419
+ * Any OTHER string creates (or joins) a custom section rendered after
15420
+ * the built-in groups; its label comes from `sectionLabel` (first
15421
+ * declaration wins), falling back to the id. Absent → the legacy
15422
+ * "Addon Pages" group.
15423
+ */
15424
+ section: string$2().optional(),
15425
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15426
+ sectionLabel: string$2().optional()
15281
15427
  });
15282
15428
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15283
15429
  var AddonHttpRouteSchema = object({
@@ -15493,6 +15639,17 @@ var WidgetMetadataSchema = object({
15493
15639
  deviceContext: boolean().default(false),
15494
15640
  integrationContext: boolean().default(false)
15495
15641
  }),
15642
+ /**
15643
+ * Loadable BEFORE authentication. The normal widget registry listing
15644
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15645
+ * (the login page) cannot discover a widget through it. A widget that
15646
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15647
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15648
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15649
+ * than the authenticated registry, and its bundle is served by the
15650
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15651
+ */
15652
+ preAuth: boolean().optional().default(false),
15496
15653
  /** Dashboard placement HINTS (operator can override per instance). */
15497
15654
  defaultSize: WidgetSizeEnum.default("md"),
15498
15655
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15794,6 +15951,66 @@ method(object({
15794
15951
  password: string$2()
15795
15952
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string$2() }), string$2()), method(record(string$2(), string$2()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string$2() }), AuthResultSchema.nullable());
15796
15953
  /**
15954
+ * `login-method` — collection cap through which auth addons contribute
15955
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15956
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15957
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15958
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15959
+ * procedure aggregates them for the unauthenticated login page.
15960
+ *
15961
+ * A contribution is a discriminated union on `kind`:
15962
+ *
15963
+ * - `redirect` — a declarative button. The login page renders a generic
15964
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15965
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15966
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15967
+ * login page needs NO change.
15968
+ *
15969
+ * - `widget` — a Module-Federation widget the login page mounts (via
15970
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15971
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15972
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15973
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15974
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15975
+ *
15976
+ * Every contribution carries a `stage`:
15977
+ * - `primary` — shown on the first credentials screen (OIDC /
15978
+ * magic-link buttons; a future usernameless passkey).
15979
+ * - `second-factor` — shown AFTER the password leg, gated on the
15980
+ * returned `factors` (passkey-as-2FA today).
15981
+ *
15982
+ * `mount: skip` — the cap is read server-side by the core auth router
15983
+ * (`registry.getCollection('login-method')`), never mounted as its own
15984
+ * tRPC router.
15985
+ */
15986
+ /** When a login method renders in the two-phase login flow. */
15987
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15988
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15989
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15990
+ kind: literal("redirect"),
15991
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15992
+ id: string$2(),
15993
+ /** Operator-facing button label. */
15994
+ label: string$2(),
15995
+ /** lucide-react icon name. */
15996
+ icon: string$2().optional(),
15997
+ /** Addon-owned HTTP route the button navigates to (GET). */
15998
+ startUrl: string$2(),
15999
+ stage: LoginStageEnum
16000
+ }), object({
16001
+ kind: literal("widget"),
16002
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
16003
+ id: string$2(),
16004
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
16005
+ addonId: string$2(),
16006
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
16007
+ bundle: string$2(),
16008
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
16009
+ remote: WidgetRemoteSchema,
16010
+ stage: LoginStageEnum
16011
+ })]);
16012
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16013
+ /**
15797
16014
  * Orchestrator-side destination metadata. The orchestrator computes
15798
16015
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15799
16016
  * (admin UI, restore flow) see one canonical key.
@@ -17963,7 +18180,17 @@ var TrackSchema = object({
17963
18180
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17964
18181
  totalDistance: number(),
17965
18182
  state: TrackStateSchema,
17966
- active: boolean()
18183
+ active: boolean(),
18184
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18185
+ * track expiry, recomputed on late label). Absent on legacy rows written
18186
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18187
+ importance: number().optional(),
18188
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18189
+ * "best" frame). Absent when the track produced no object events. */
18190
+ bestEventId: string$2().optional(),
18191
+ /** Tag of the importance sub-signal that dominated the score
18192
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18193
+ importanceReason: string$2().optional()
17967
18194
  });
17968
18195
  var BaseEventFields = {
17969
18196
  id: string$2(),
@@ -18028,8 +18255,18 @@ var ObjectEventSchema = object({
18028
18255
  frameHeight: number().optional(),
18029
18256
  /** MediaStore key for the crop attached to this event (if any). */
18030
18257
  mediaKey: string$2().optional(),
18258
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18259
+ * best-detection full frame). Resolve via the event-media data-plane
18260
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18261
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18262
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18263
+ keyFrameMediaKey: string$2().optional(),
18031
18264
  /** Populated by B5 (recording playback URL for this event). */
18032
- mediaUrl: string$2().optional()
18265
+ mediaUrl: string$2().optional(),
18266
+ /** The parent track's key-event importance [0,1], propagated to every object
18267
+ * event of the track (so an event row can be sorted by importance without a
18268
+ * track join). Absent on legacy rows / before the track was scored. */
18269
+ importance: number().optional()
18033
18270
  });
18034
18271
  var AudioEventSchema = object({
18035
18272
  ...BaseEventFields,
@@ -18053,7 +18290,8 @@ var MediaFileKindEnum = _enum([
18053
18290
  "fullFrame",
18054
18291
  "fullFrameBoxed",
18055
18292
  "faceCrop",
18056
- "plateCrop"
18293
+ "plateCrop",
18294
+ "keyFrame"
18057
18295
  ]);
18058
18296
  var MediaFileSchema = object({
18059
18297
  key: string$2(),
@@ -18074,6 +18312,32 @@ var DeviceEventQueryInput = object({
18074
18312
  projection: _enum(["full", "slim"]).optional()
18075
18313
  });
18076
18314
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string$2().optional() });
18315
+ var KeyEventQueryInput = object({
18316
+ deviceId: number(),
18317
+ /** Window lower bound (track firstSeen ≥ since). */
18318
+ since: number(),
18319
+ /** Window upper bound (track firstSeen ≤ until). */
18320
+ until: number(),
18321
+ limit: number().int().min(1).max(200).default(50),
18322
+ /** Drop tracks scoring below this importance. */
18323
+ minImportance: number().min(0).max(1).optional(),
18324
+ /** Restrict to a single class (e.g. 'person'). */
18325
+ classFilter: string$2().optional()
18326
+ });
18327
+ var KeyEventSchema = object({
18328
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18329
+ id: string$2(),
18330
+ trackId: string$2(),
18331
+ /** Track start time (firstSeen). */
18332
+ timestamp: number(),
18333
+ className: string$2(),
18334
+ label: string$2().optional(),
18335
+ importance: number(),
18336
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18337
+ bestEventId: string$2(),
18338
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18339
+ windowMs: number().optional()
18340
+ });
18077
18341
  var TrackedDetectionSchema = object({
18078
18342
  trackId: string$2(),
18079
18343
  className: string$2(),
@@ -18103,7 +18367,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18103
18367
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18104
18368
  kind: "mutation",
18105
18369
  auth: "admin"
18106
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18370
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18107
18371
  deviceId: number(),
18108
18372
  since: number(),
18109
18373
  until: number(),
@@ -18148,11 +18412,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18148
18412
  timestamp: number()
18149
18413
  });
18150
18414
  var CameraPipelineConfigSchema = object({
18151
- engine: PipelineEngineChoiceSchema,
18415
+ engine: PipelineEngineChoiceSchema.optional(),
18152
18416
  steps: array(PipelineStepInputSchema).readonly(),
18153
18417
  audio: object({
18154
- engine: PipelineEngineChoiceSchema,
18155
- modelId: string$2(),
18418
+ engine: PipelineEngineChoiceSchema.optional(),
18419
+ modelId: string$2().optional(),
18156
18420
  enabled: boolean(),
18157
18421
  settings: record(string$2(), unknown()).readonly().optional()
18158
18422
  }).nullable().optional()
@@ -18167,7 +18431,7 @@ var PipelineTemplateSchema = object({
18167
18431
  });
18168
18432
  var AgentAddonConfigSchema = object({
18169
18433
  enabled: boolean(),
18170
- modelId: string$2(),
18434
+ modelId: string$2().optional(),
18171
18435
  settings: record(string$2(), unknown()).readonly()
18172
18436
  });
18173
18437
  var AgentPipelineSettingsSchema = object({
@@ -18177,12 +18441,25 @@ var AgentPipelineSettingsSchema = object({
18177
18441
  detectWeight: number().positive().optional(),
18178
18442
  /** Node is eligible to run the detection pipeline (decode + inference). */
18179
18443
  detect: boolean().optional(),
18180
- /** Node is eligible to host decoder sessions. */
18444
+ /**
18445
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18446
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18447
+ * the schema ONLY so persisted stores written before the removal still
18448
+ * parse — no code reads it and no write path emits it.
18449
+ */
18181
18450
  decode: boolean().optional(),
18182
18451
  /** Node is eligible to run audio-analyzer sessions. */
18183
18452
  audio: boolean().optional(),
18184
18453
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18185
- ingest: boolean().optional()
18454
+ ingest: boolean().optional(),
18455
+ /**
18456
+ * Operator override for the LAN host a cross-node decoder dials to reach
18457
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18458
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18459
+ * it already uses to reach the hub). Set this only when the auto-detected
18460
+ * address is wrong (multi-homed host, NAT, custom interface).
18461
+ */
18462
+ reachableHost: string$2().optional()
18186
18463
  });
18187
18464
  var CameraPipelineForAgentSchema = object({
18188
18465
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18230,25 +18507,6 @@ var PipelineAssignmentSchema = object({
18230
18507
  assignedAt: number()
18231
18508
  });
18232
18509
  /**
18233
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18234
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18235
- * → co-located with pipeline → capacity).
18236
- */
18237
- var DecoderAssignmentSchema = object({
18238
- deviceId: number(),
18239
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18240
- decoderNodeId: string$2(),
18241
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18242
- pinned: boolean(),
18243
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18244
- reason: _enum([
18245
- "manual",
18246
- "co-located",
18247
- "capacity",
18248
- "hardware-affinity"
18249
- ])
18250
- });
18251
- /**
18252
18510
  * Per-agent load summary surfaced to the load balancer + dashboards.
18253
18511
  * Aggregated from each runner's `getLocalLoad` cap call.
18254
18512
  */
@@ -18288,6 +18546,15 @@ var GlobalMetricsSchema = object({
18288
18546
  * capability providers.
18289
18547
  */
18290
18548
  var CapabilityBindingsSchema = record(string$2(), string$2());
18549
+ /**
18550
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18551
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18552
+ */
18553
+ var IngestOwnerSchema = object({
18554
+ ownerNodeId: string$2(),
18555
+ reachableHost: string$2().optional(),
18556
+ configIssue: string$2().optional()
18557
+ });
18291
18558
  /** Source block — always present; derives from the stream catalog. */
18292
18559
  var CameraSourceStatusSchema = object({ streams: array(object({
18293
18560
  camStreamId: string$2(),
@@ -18302,6 +18569,14 @@ var CameraAssignmentStatusSchema = object({
18302
18569
  detectionNodeId: string$2().nullable(),
18303
18570
  decoderNodeId: string$2().nullable(),
18304
18571
  audioNodeId: string$2().nullable(),
18572
+ /**
18573
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18574
+ * hosts the broker/restream) — the cluster ingest owner today
18575
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18576
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18577
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18578
+ */
18579
+ sourceNodeId: string$2().nullable(),
18305
18580
  pinned: object({
18306
18581
  detection: boolean(),
18307
18582
  decoder: boolean(),
@@ -18434,16 +18709,7 @@ method(object({
18434
18709
  }), object({ success: literal(true) }), {
18435
18710
  kind: "mutation",
18436
18711
  auth: "admin"
18437
- }), method(object({
18438
- deviceId: number(),
18439
- nodeId: string$2()
18440
- }), _void(), {
18441
- kind: "mutation",
18442
- auth: "admin"
18443
- }), method(object({ deviceId: number() }), _void(), {
18444
- kind: "mutation",
18445
- auth: "admin"
18446
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18712
+ }), method(_void(), IngestOwnerSchema), method(object({
18447
18713
  deviceId: number(),
18448
18714
  nodeId: string$2()
18449
18715
  }), object({ success: literal(true) }), {
@@ -18464,10 +18730,7 @@ method(object({
18464
18730
  nodeId: string$2(),
18465
18731
  pinned: boolean(),
18466
18732
  assignedAt: number()
18467
- }))), method(object({
18468
- deviceId: number(),
18469
- pipelineNodeId: string$2().optional()
18470
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string$2() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18733
+ }))), method(object({ agentNodeId: string$2() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18471
18734
  nodeId: string$2(),
18472
18735
  settings: AgentPipelineSettingsSchema
18473
18736
  })).readonly()), method(object({
@@ -18497,12 +18760,26 @@ method(object({
18497
18760
  }), method(object({
18498
18761
  agentNodeId: string$2(),
18499
18762
  detect: boolean().nullable().optional(),
18500
- decode: boolean().nullable().optional(),
18501
18763
  audio: boolean().nullable().optional(),
18502
18764
  ingest: boolean().nullable().optional()
18503
18765
  }), object({ success: literal(true) }), {
18504
18766
  kind: "mutation",
18505
18767
  auth: "admin"
18768
+ }), method(object({
18769
+ agentNodeId: string$2(),
18770
+ reachableHost: string$2().nullable()
18771
+ }), object({ success: literal(true) }), {
18772
+ kind: "mutation",
18773
+ auth: "admin"
18774
+ }), method(object({ agentNodeId: string$2() }), object({
18775
+ success: literal(true),
18776
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18777
+ effectiveModelId: string$2().nullable(),
18778
+ /** Number of cameras whose node-scoped overrides were cleared. */
18779
+ clearedCameraOverrides: number()
18780
+ }), {
18781
+ kind: "mutation",
18782
+ auth: "admin"
18506
18783
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18507
18784
  deviceId: number(),
18508
18785
  addonId: string$2(),
@@ -18547,22 +18824,131 @@ method(object({
18547
18824
  kind: "mutation",
18548
18825
  auth: "admin"
18549
18826
  });
18550
- var RegisteredStreamSchema = object({
18551
- streamId: string$2(),
18552
- label: string$2().optional(),
18553
- codec: string$2(),
18554
- type: _enum(["video", "audio"]),
18555
- sourceUrl: string$2()
18827
+ /**
18828
+ * server-management — per-NODE singleton capability for a node's ROOT
18829
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18830
+ * agents).
18831
+ *
18832
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18833
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18834
+ * version describes the node. Updates install into
18835
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18836
+ * starter (probation boot + auto-rollback to N-1).
18837
+ *
18838
+ * Providers:
18839
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18840
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18841
+ * unpinned calls.
18842
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18843
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18844
+ * `$hub.registerNode` manifest.
18845
+ *
18846
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18847
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18848
+ * SDK) routes the call to that node's provider via the standard remote
18849
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18850
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18851
+ *
18852
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18853
+ */
18854
+ /**
18855
+ * Where the running hub's code was loaded from:
18856
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18857
+ * plain resolution and runtime updates are refused.
18858
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18859
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18860
+ */
18861
+ var ServerBootModeSchema = _enum([
18862
+ "workspace",
18863
+ "baked",
18864
+ "data-root"
18865
+ ]);
18866
+ /**
18867
+ * Update lifecycle state:
18868
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18869
+ * - `pending-restart` — a version is staged and the node has NOT yet
18870
+ * restarted onto it (still running the OLD version).
18871
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18872
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18873
+ * Apply/rollback are refused in this state and the node must NOT be
18874
+ * manually restarted, or the probation boot auto-rolls-back.
18875
+ */
18876
+ var ServerUpdateStateSchema = _enum([
18877
+ "idle",
18878
+ "checking",
18879
+ "staging",
18880
+ "pending-restart",
18881
+ "awaiting-confirmation"
18882
+ ]);
18883
+ var ServerRollbackInfoSchema = object({
18884
+ /** The version that failed (or was manually rolled back). */
18885
+ fromVersion: string$2(),
18886
+ /** The version rolled back to; null = the baked seed. */
18887
+ toVersion: string$2().nullable(),
18888
+ atMs: number(),
18889
+ reason: string$2()
18556
18890
  });
18557
- var ExposedResourceSchema = object({
18558
- streamId: string$2(),
18559
- format: string$2(),
18560
- value: string$2()
18891
+ var ServerPackageStatusSchema = object({
18892
+ /** Root package name (`@camstack/server` on the hub). */
18893
+ packageName: string$2(),
18894
+ /** Version of the code the running process ACTUALLY loaded. */
18895
+ runningVersion: string$2().nullable(),
18896
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18897
+ nodeRuntimeVersion: string$2().nullable(),
18898
+ /** Active data-dir root version; null when booted from seed/workspace. */
18899
+ activeVersion: string$2().nullable(),
18900
+ /** N-1 version kept for rollback; null when no previous version exists. */
18901
+ previousVersion: string$2().nullable(),
18902
+ /** Version of the immutable baked seed closure (image fallback). */
18903
+ seedVersion: string$2().nullable(),
18904
+ /** Latest registry version from the most recent check (null = never checked). */
18905
+ latestVersion: string$2().nullable(),
18906
+ updateAvailable: boolean(),
18907
+ bootMode: ServerBootModeSchema,
18908
+ updateState: ServerUpdateStateSchema,
18909
+ /** Version staged + awaiting its probation boot, when one is pending. */
18910
+ pendingVersion: string$2().nullable(),
18911
+ /** Set when the last freshly-activated version failed its boot health-check. */
18912
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18913
+ /**
18914
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18915
+ * hub is running from the baked seed (or workspace) while installed data-dir
18916
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18917
+ */
18918
+ stateFileCorrupt: boolean(),
18919
+ lastCheckedAtMs: number().nullable()
18920
+ });
18921
+ var ServerUpdateCheckResultSchema = object({
18922
+ packageName: string$2(),
18923
+ runningVersion: string$2().nullable(),
18924
+ latestVersion: string$2().nullable(),
18925
+ updateAvailable: boolean(),
18926
+ checkedAtMs: number(),
18927
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18928
+ error: string$2().nullable()
18929
+ });
18930
+ var ServerUpdateActionResultSchema = object({
18931
+ accepted: boolean(),
18932
+ targetVersion: string$2().nullable(),
18933
+ /** True when a graceful restart was scheduled to apply the change. */
18934
+ restarting: boolean(),
18935
+ message: string$2()
18936
+ });
18937
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18938
+ kind: "mutation",
18939
+ auth: "admin"
18940
+ }), method(object({
18941
+ /** Explicit target version; omitted = latest from the registry. */
18942
+ version: string$2().optional() }), ServerUpdateActionResultSchema, {
18943
+ kind: "mutation",
18944
+ auth: "admin"
18945
+ }), method(_void(), ServerUpdateActionResultSchema, {
18946
+ kind: "mutation",
18947
+ auth: "admin"
18948
+ }), method(_void(), ServerUpdateActionResultSchema, {
18949
+ kind: "mutation",
18950
+ auth: "admin"
18561
18951
  });
18562
- method(object({
18563
- deviceId: number(),
18564
- streams: array(RegisteredStreamSchema).readonly()
18565
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18566
18952
  /**
18567
18953
  * Query filter for settings-store collections.
18568
18954
  */
@@ -18715,9 +19101,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18715
19101
  /**
18716
19102
  * A single device snapshot returned as base64 JPEG/PNG.
18717
19103
  *
18718
- * Shared with the `snapshot-provider` collection cap the orchestrator
18719
- * receives the same shape from each native provider and from the
18720
- * broker-based fallback.
19104
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19105
+ * the device-native provider (onboard capture) or from the stream-broker
19106
+ * prebuffer fallback.
18721
19107
  */
18722
19108
  var SnapshotImageSchema = object({
18723
19109
  base64: string$2(),
@@ -18748,11 +19134,12 @@ DeviceType.Camera, method(object({
18748
19134
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18749
19135
  kind: "mutation",
18750
19136
  auth: "admin"
18751
- });
18752
- method(object({ deviceId: number() }), boolean()), method(object({
19137
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18753
19138
  deviceId: number(),
18754
- streamId: string$2().optional()
18755
- }), SnapshotImageSchema.nullable());
19139
+ lastCapturedAt: number().nullable(),
19140
+ cacheAgeMs: number().nullable(),
19141
+ etag: string$2().nullable()
19142
+ })));
18756
19143
  /**
18757
19144
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18758
19145
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19003,10 +19390,32 @@ method(_void(), array(TurnServerSchema).readonly());
19003
19390
  * b. `finishAuthentication({userId, response})` → server verifies
19004
19391
  * the assertion, bumps the credential counter, returns ok.
19005
19392
  *
19393
+ * 2b. Usernameless (discoverable-credential) authentication — the
19394
+ * passkey IS the primary factor, no password leg:
19395
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19396
+ * EMPTY `allowCredentials` (the browser offers every resident
19397
+ * passkey it holds for this RP) + `userVerification: 'required'`
19398
+ * (the passkey replaces both factors, so UV is mandatory).
19399
+ * The challenge is stored server-side, NOT bound to any user.
19400
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19401
+ * resolves the credential by the response's credential id,
19402
+ * verifies the assertion against the stored challenge + that
19403
+ * credential's public key/counter, and returns the OWNING
19404
+ * `userId` — the caller (core auth router) mints the session.
19405
+ *
19006
19406
  * 3. Management:
19007
19407
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19008
19408
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19009
19409
  *
19410
+ * 4. Second-factor preference (opt-in, default OFF):
19411
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19412
+ * demanded as a second factor after a password login ONLY when the
19413
+ * user explicitly opts in via `setSecondFactorPreference`.
19414
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19415
+ * row ⇒ `enabled: false`).
19416
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19417
+ * the providing addon beside its credentials.
19418
+ *
19010
19419
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19011
19420
  * the admin-ui composes the begin/finish round-trip and never exposes
19012
19421
  * the cap to non-admins.
@@ -19049,6 +19458,17 @@ method(object({
19049
19458
  }), object({ verified: boolean() }), {
19050
19459
  kind: "mutation",
19051
19460
  access: "view"
19461
+ }), method(object({}), object({ optionsJSON: record(string$2(), unknown()) }), {
19462
+ kind: "mutation",
19463
+ access: "view"
19464
+ }), method(object({
19465
+ /** AuthenticationResponseJSON from the browser. */
19466
+ response: record(string$2(), unknown()) }), object({
19467
+ verified: boolean(),
19468
+ userId: string$2().nullable()
19469
+ }), {
19470
+ kind: "mutation",
19471
+ access: "view"
19052
19472
  }), method(object({ userId: string$2() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19053
19473
  userId: string$2(),
19054
19474
  credentialId: string$2()
@@ -19056,6 +19476,13 @@ method(object({
19056
19476
  kind: "mutation",
19057
19477
  auth: "admin",
19058
19478
  access: "delete"
19479
+ }), method(object({ userId: string$2() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19480
+ userId: string$2(),
19481
+ enabled: boolean()
19482
+ }), object({ success: literal(true) }), {
19483
+ kind: "mutation",
19484
+ auth: "admin",
19485
+ access: "create"
19059
19486
  });
19060
19487
  /**
19061
19488
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19113,9 +19540,10 @@ method(object({
19113
19540
  auth: "admin"
19114
19541
  });
19115
19542
  /**
19116
- * Optional client-side hints sent at session creation to help the
19117
- * provider pick the best native source. All fields are optional —
19118
- * a viewer that knows nothing still gets a sane default.
19543
+ * Optional client-side hints sent at session creation to help the provider
19544
+ * pick the best native source. All fields optional — a viewer that knows
19545
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19546
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19119
19547
  */
19120
19548
  var webrtcClientHintsSchema = object({
19121
19549
  viewportWidth: number().int().positive().optional(),
@@ -19126,22 +19554,6 @@ var webrtcClientHintsSchema = object({
19126
19554
  /** Hard tier override; takes precedence over scoring when registered. */
19127
19555
  prefersTier: string$2().optional()
19128
19556
  }).partial();
19129
- method(object({
19130
- streamId: string$2(),
19131
- sdpOffer: string$2()
19132
- }), string$2(), { kind: "mutation" }), method(object({ streamId: string$2() }), boolean()), method(object({
19133
- streamId: string$2(),
19134
- codec: string$2()
19135
- }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), _void(), { kind: "mutation" }), method(object({
19136
- streamId: string$2(),
19137
- hints: webrtcClientHintsSchema.optional()
19138
- }), object({
19139
- sessionId: string$2(),
19140
- sdpOffer: string$2()
19141
- }), { kind: "mutation" }), method(object({
19142
- sessionId: string$2(),
19143
- sdpAnswer: string$2()
19144
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string$2() }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), boolean());
19145
19557
  /**
19146
19558
  * Discriminated target for a WebRTC session. The client sends this
19147
19559
  * structured object instead of building / parsing brokerId strings;
@@ -19889,7 +20301,17 @@ var FaceInfoSchema = object({
19889
20301
  recognizedIdentityId: string$2().optional(),
19890
20302
  identityName: string$2().optional(),
19891
20303
  assigned: boolean(),
19892
- base64: string$2().optional()
20304
+ base64: string$2().optional(),
20305
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20306
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20307
+ * legacy rows written before design B. */
20308
+ faceBbox: BoundingBoxSchema.optional(),
20309
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20310
+ * Fetch the native JPEG via the event-media data-plane
20311
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20312
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20313
+ * back to the inline `base64` face crop. */
20314
+ keyFrameMediaKey: string$2().optional()
19893
20315
  });
19894
20316
  var FaceFilterEnum = _enum([
19895
20317
  "unassigned",
@@ -20586,6 +21008,16 @@ var TopologyCategorySchema = object({
20586
21008
  healthy: number(),
20587
21009
  addons: array(TopologyCategoryAddonSchema).readonly()
20588
21010
  });
21011
+ /**
21012
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
21013
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
21014
+ * version visibility for the Server management surface. Nullable: offline
21015
+ * rows and pre-phase-2 nodes report none.
21016
+ */
21017
+ var TopologyRootPackageSchema = object({
21018
+ name: string$2(),
21019
+ version: string$2()
21020
+ });
20589
21021
  var TopologyNodeSchema = object({
20590
21022
  id: string$2(),
20591
21023
  name: string$2(),
@@ -20609,7 +21041,8 @@ var TopologyNodeSchema = object({
20609
21041
  status: string$2()
20610
21042
  })).readonly(),
20611
21043
  processes: array(TopologyProcessSchema).readonly(),
20612
- categories: array(TopologyCategorySchema).readonly()
21044
+ categories: array(TopologyCategorySchema).readonly(),
21045
+ rootPackage: TopologyRootPackageSchema.nullable()
20613
21046
  });
20614
21047
  var CapUsageEdgeSchema = object({
20615
21048
  callerAddonId: string$2(),
@@ -23409,6 +23842,12 @@ Object.freeze({
23409
23842
  addonId: null,
23410
23843
  access: "create"
23411
23844
  },
23845
+ "loginMethod.getLoginMethods": {
23846
+ capName: "login-method",
23847
+ capScope: "system",
23848
+ addonId: null,
23849
+ access: "view"
23850
+ },
23412
23851
  "mediaPlayer.next": {
23413
23852
  capName: "media-player",
23414
23853
  capScope: "device",
@@ -23991,6 +24430,12 @@ Object.freeze({
23991
24430
  addonId: null,
23992
24431
  access: "view"
23993
24432
  },
24433
+ "pipelineAnalytics.getKeyEvents": {
24434
+ capName: "pipeline-analytics",
24435
+ capScope: "device",
24436
+ addonId: null,
24437
+ access: "view"
24438
+ },
23994
24439
  "pipelineAnalytics.getMotionEvents": {
23995
24440
  capName: "pipeline-analytics",
23996
24441
  capScope: "device",
@@ -24039,23 +24484,23 @@ Object.freeze({
24039
24484
  addonId: null,
24040
24485
  access: "create"
24041
24486
  },
24042
- "pipelineExecutor.deleteModel": {
24487
+ "pipelineExecutor.clearDeviceOverrides": {
24043
24488
  capName: "pipeline-executor",
24044
24489
  capScope: "system",
24045
24490
  addonId: null,
24046
24491
  access: "delete"
24047
24492
  },
24048
- "pipelineExecutor.deleteTemplate": {
24493
+ "pipelineExecutor.deleteModel": {
24049
24494
  capName: "pipeline-executor",
24050
24495
  capScope: "system",
24051
24496
  addonId: null,
24052
24497
  access: "delete"
24053
24498
  },
24054
- "pipelineExecutor.detect": {
24499
+ "pipelineExecutor.deleteTemplate": {
24055
24500
  capName: "pipeline-executor",
24056
24501
  capScope: "system",
24057
24502
  addonId: null,
24058
- access: "view"
24503
+ access: "delete"
24059
24504
  },
24060
24505
  "pipelineExecutor.downloadModel": {
24061
24506
  capName: "pipeline-executor",
@@ -24249,13 +24694,13 @@ Object.freeze({
24249
24694
  addonId: null,
24250
24695
  access: "create"
24251
24696
  },
24252
- "pipelineOrchestrator.assignAudio": {
24253
- capName: "pipeline-orchestrator",
24697
+ "pipelineExecutor.validatePipeline": {
24698
+ capName: "pipeline-executor",
24254
24699
  capScope: "system",
24255
24700
  addonId: null,
24256
- access: "create"
24701
+ access: "view"
24257
24702
  },
24258
- "pipelineOrchestrator.assignDecoder": {
24703
+ "pipelineOrchestrator.assignAudio": {
24259
24704
  capName: "pipeline-orchestrator",
24260
24705
  capScope: "system",
24261
24706
  addonId: null,
@@ -24339,19 +24784,13 @@ Object.freeze({
24339
24784
  addonId: null,
24340
24785
  access: "view"
24341
24786
  },
24342
- "pipelineOrchestrator.getDecoderAssignment": {
24343
- capName: "pipeline-orchestrator",
24344
- capScope: "system",
24345
- addonId: null,
24346
- access: "view"
24347
- },
24348
- "pipelineOrchestrator.getDecoderAssignments": {
24787
+ "pipelineOrchestrator.getGlobalMetrics": {
24349
24788
  capName: "pipeline-orchestrator",
24350
24789
  capScope: "system",
24351
24790
  addonId: null,
24352
24791
  access: "view"
24353
24792
  },
24354
- "pipelineOrchestrator.getGlobalMetrics": {
24793
+ "pipelineOrchestrator.getIngestOwner": {
24355
24794
  capName: "pipeline-orchestrator",
24356
24795
  capScope: "system",
24357
24796
  addonId: null,
@@ -24393,6 +24832,12 @@ Object.freeze({
24393
24832
  addonId: null,
24394
24833
  access: "delete"
24395
24834
  },
24835
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24836
+ capName: "pipeline-orchestrator",
24837
+ capScope: "system",
24838
+ addonId: null,
24839
+ access: "delete"
24840
+ },
24396
24841
  "pipelineOrchestrator.resolvePipeline": {
24397
24842
  capName: "pipeline-orchestrator",
24398
24843
  capScope: "system",
@@ -24429,37 +24874,37 @@ Object.freeze({
24429
24874
  addonId: null,
24430
24875
  access: "create"
24431
24876
  },
24432
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24877
+ "pipelineOrchestrator.setAgentReachableHost": {
24433
24878
  capName: "pipeline-orchestrator",
24434
24879
  capScope: "system",
24435
24880
  addonId: null,
24436
24881
  access: "create"
24437
24882
  },
24438
- "pipelineOrchestrator.setCameraStepOverride": {
24883
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24439
24884
  capName: "pipeline-orchestrator",
24440
24885
  capScope: "system",
24441
24886
  addonId: null,
24442
24887
  access: "create"
24443
24888
  },
24444
- "pipelineOrchestrator.setCameraStepToggle": {
24889
+ "pipelineOrchestrator.setCameraStepOverride": {
24445
24890
  capName: "pipeline-orchestrator",
24446
24891
  capScope: "system",
24447
24892
  addonId: null,
24448
24893
  access: "create"
24449
24894
  },
24450
- "pipelineOrchestrator.setCapabilityBinding": {
24895
+ "pipelineOrchestrator.setCameraStepToggle": {
24451
24896
  capName: "pipeline-orchestrator",
24452
24897
  capScope: "system",
24453
24898
  addonId: null,
24454
24899
  access: "create"
24455
24900
  },
24456
- "pipelineOrchestrator.unassignAudio": {
24901
+ "pipelineOrchestrator.setCapabilityBinding": {
24457
24902
  capName: "pipeline-orchestrator",
24458
24903
  capScope: "system",
24459
24904
  addonId: null,
24460
24905
  access: "create"
24461
24906
  },
24462
- "pipelineOrchestrator.unassignDecoder": {
24907
+ "pipelineOrchestrator.unassignAudio": {
24463
24908
  capName: "pipeline-orchestrator",
24464
24909
  capScope: "system",
24465
24910
  addonId: null,
@@ -24519,12 +24964,24 @@ Object.freeze({
24519
24964
  addonId: null,
24520
24965
  access: "view"
24521
24966
  },
24967
+ "pipelineRunner.getNativeCrop": {
24968
+ capName: "pipeline-runner",
24969
+ capScope: "system",
24970
+ addonId: null,
24971
+ access: "view"
24972
+ },
24522
24973
  "pipelineRunner.reportMotion": {
24523
24974
  capName: "pipeline-runner",
24524
24975
  capScope: "system",
24525
24976
  addonId: null,
24526
24977
  access: "create"
24527
24978
  },
24979
+ "pipelineRunner.runDetailSubtree": {
24980
+ capName: "pipeline-runner",
24981
+ capScope: "system",
24982
+ addonId: null,
24983
+ access: "create"
24984
+ },
24528
24985
  "plateGallery.correctPlateText": {
24529
24986
  capName: "plate-gallery",
24530
24987
  capScope: "system",
@@ -24759,33 +25216,45 @@ Object.freeze({
24759
25216
  addonId: null,
24760
25217
  access: "create"
24761
25218
  },
24762
- "restreamer.getExposedResources": {
24763
- capName: "restreamer",
25219
+ "scriptRunner.run": {
25220
+ capName: "script-runner",
25221
+ capScope: "device",
25222
+ addonId: null,
25223
+ access: "create"
25224
+ },
25225
+ "scriptRunner.stop": {
25226
+ capName: "script-runner",
25227
+ capScope: "device",
25228
+ addonId: null,
25229
+ access: "create"
25230
+ },
25231
+ "serverManagement.applyServerUpdate": {
25232
+ capName: "server-management",
24764
25233
  capScope: "system",
24765
25234
  addonId: null,
24766
- access: "view"
25235
+ access: "create"
24767
25236
  },
24768
- "restreamer.registerDevice": {
24769
- capName: "restreamer",
25237
+ "serverManagement.checkServerUpdate": {
25238
+ capName: "server-management",
24770
25239
  capScope: "system",
24771
25240
  addonId: null,
24772
25241
  access: "create"
24773
25242
  },
24774
- "restreamer.unregisterDevice": {
24775
- capName: "restreamer",
25243
+ "serverManagement.getServerPackageStatus": {
25244
+ capName: "server-management",
24776
25245
  capScope: "system",
24777
25246
  addonId: null,
24778
- access: "delete"
25247
+ access: "view"
24779
25248
  },
24780
- "scriptRunner.run": {
24781
- capName: "script-runner",
24782
- capScope: "device",
25249
+ "serverManagement.restartServer": {
25250
+ capName: "server-management",
25251
+ capScope: "system",
24783
25252
  addonId: null,
24784
25253
  access: "create"
24785
25254
  },
24786
- "scriptRunner.stop": {
24787
- capName: "script-runner",
24788
- capScope: "device",
25255
+ "serverManagement.rollbackServerUpdate": {
25256
+ capName: "server-management",
25257
+ capScope: "system",
24789
25258
  addonId: null,
24790
25259
  access: "create"
24791
25260
  },
@@ -24873,23 +25342,17 @@ Object.freeze({
24873
25342
  addonId: null,
24874
25343
  access: "view"
24875
25344
  },
24876
- "snapshot.invalidateCache": {
25345
+ "snapshot.getSnapshotOverview": {
24877
25346
  capName: "snapshot",
24878
25347
  capScope: "device",
24879
25348
  addonId: null,
24880
- access: "create"
24881
- },
24882
- "snapshotProvider.getSnapshot": {
24883
- capName: "snapshot-provider",
24884
- capScope: "system",
24885
- addonId: null,
24886
25349
  access: "view"
24887
25350
  },
24888
- "snapshotProvider.supportsDevice": {
24889
- capName: "snapshot-provider",
24890
- capScope: "system",
25351
+ "snapshot.invalidateCache": {
25352
+ capName: "snapshot",
25353
+ capScope: "device",
24891
25354
  addonId: null,
24892
- access: "view"
25355
+ access: "create"
24893
25356
  },
24894
25357
  "ssoBridge.signBridgeToken": {
24895
25358
  capName: "sso-bridge",
@@ -25317,30 +25780,6 @@ Object.freeze({
25317
25780
  addonId: null,
25318
25781
  access: "view"
25319
25782
  },
25320
- "streamingEngine.getStreamUrl": {
25321
- capName: "streaming-engine",
25322
- capScope: "system",
25323
- addonId: null,
25324
- access: "view"
25325
- },
25326
- "streamingEngine.listStreams": {
25327
- capName: "streaming-engine",
25328
- capScope: "system",
25329
- addonId: null,
25330
- access: "view"
25331
- },
25332
- "streamingEngine.registerStream": {
25333
- capName: "streaming-engine",
25334
- capScope: "system",
25335
- addonId: null,
25336
- access: "create"
25337
- },
25338
- "streamingEngine.unregisterStream": {
25339
- capName: "streaming-engine",
25340
- capScope: "system",
25341
- addonId: null,
25342
- access: "delete"
25343
- },
25344
25783
  "streamParams.getConfigSchema": {
25345
25784
  capName: "stream-params",
25346
25785
  capScope: "device",
@@ -25587,6 +26026,12 @@ Object.freeze({
25587
26026
  addonId: null,
25588
26027
  access: "view"
25589
26028
  },
26029
+ "userPasskeys.beginDiscoverableAuthentication": {
26030
+ capName: "user-passkeys",
26031
+ capScope: "system",
26032
+ addonId: null,
26033
+ access: "view"
26034
+ },
25590
26035
  "userPasskeys.beginRegistration": {
25591
26036
  capName: "user-passkeys",
25592
26037
  capScope: "system",
@@ -25599,12 +26044,24 @@ Object.freeze({
25599
26044
  addonId: null,
25600
26045
  access: "view"
25601
26046
  },
26047
+ "userPasskeys.finishDiscoverableAuthentication": {
26048
+ capName: "user-passkeys",
26049
+ capScope: "system",
26050
+ addonId: null,
26051
+ access: "view"
26052
+ },
25602
26053
  "userPasskeys.finishRegistration": {
25603
26054
  capName: "user-passkeys",
25604
26055
  capScope: "system",
25605
26056
  addonId: null,
25606
26057
  access: "create"
25607
26058
  },
26059
+ "userPasskeys.getSecondFactorPreference": {
26060
+ capName: "user-passkeys",
26061
+ capScope: "system",
26062
+ addonId: null,
26063
+ access: "view"
26064
+ },
25608
26065
  "userPasskeys.listPasskeys": {
25609
26066
  capName: "user-passkeys",
25610
26067
  capScope: "system",
@@ -25617,6 +26074,12 @@ Object.freeze({
25617
26074
  addonId: null,
25618
26075
  access: "delete"
25619
26076
  },
26077
+ "userPasskeys.setSecondFactorPreference": {
26078
+ capName: "user-passkeys",
26079
+ capScope: "system",
26080
+ addonId: null,
26081
+ access: "create"
26082
+ },
25620
26083
  "vacuumControl.locate": {
25621
26084
  capName: "vacuum-control",
25622
26085
  capScope: "device",
@@ -25689,6 +26152,18 @@ Object.freeze({
25689
26152
  addonId: null,
25690
26153
  access: "view"
25691
26154
  },
26155
+ "viewerUi.getStaticDir": {
26156
+ capName: "viewer-ui",
26157
+ capScope: "system",
26158
+ addonId: null,
26159
+ access: "view"
26160
+ },
26161
+ "viewerUi.getVersion": {
26162
+ capName: "viewer-ui",
26163
+ capScope: "system",
26164
+ addonId: null,
26165
+ access: "view"
26166
+ },
25692
26167
  "waterHeater.setAway": {
25693
26168
  capName: "water-heater",
25694
26169
  capScope: "device",
@@ -25707,54 +26182,6 @@ Object.freeze({
25707
26182
  addonId: null,
25708
26183
  access: "create"
25709
26184
  },
25710
- "webrtc.closeSession": {
25711
- capName: "webrtc",
25712
- capScope: "system",
25713
- addonId: null,
25714
- access: "create"
25715
- },
25716
- "webrtc.createSession": {
25717
- capName: "webrtc",
25718
- capScope: "system",
25719
- addonId: null,
25720
- access: "create"
25721
- },
25722
- "webrtc.handleAnswer": {
25723
- capName: "webrtc",
25724
- capScope: "system",
25725
- addonId: null,
25726
- access: "create"
25727
- },
25728
- "webrtc.handleOffer": {
25729
- capName: "webrtc",
25730
- capScope: "system",
25731
- addonId: null,
25732
- access: "create"
25733
- },
25734
- "webrtc.hasAdaptiveBitrate": {
25735
- capName: "webrtc",
25736
- capScope: "system",
25737
- addonId: null,
25738
- access: "view"
25739
- },
25740
- "webrtc.registerStream": {
25741
- capName: "webrtc",
25742
- capScope: "system",
25743
- addonId: null,
25744
- access: "create"
25745
- },
25746
- "webrtc.supportsStream": {
25747
- capName: "webrtc",
25748
- capScope: "system",
25749
- addonId: null,
25750
- access: "view"
25751
- },
25752
- "webrtc.unregisterStream": {
25753
- capName: "webrtc",
25754
- capScope: "system",
25755
- addonId: null,
25756
- access: "delete"
25757
- },
25758
26185
  "webrtcSession.addIceCandidate": {
25759
26186
  capName: "webrtc-session",
25760
26187
  capScope: "device",