@camstack/addon-matter-broker 0.1.16 → 0.1.18

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 +681 -288
  2. package/dist/addon.mjs +681 -288
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4656,7 +4656,7 @@ function preprocess(fn, schema) {
4656
4656
  });
4657
4657
  }
4658
4658
  //#endregion
4659
- //#region ../types/dist/sleep-CZDdRBua.mjs
4659
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4660
4660
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4661
4661
  EventCategory["SystemBoot"] = "system.boot";
4662
4662
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4842,6 +4842,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4842
4842
  */
4843
4843
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4844
4844
  /**
4845
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4846
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4847
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4848
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4849
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4850
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4851
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4852
+ * topology change, so a dropped event self-heals on the next one (plus the
4853
+ * broker's long backstop reconcile query).
4854
+ */
4855
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4856
+ /**
4845
4857
  * Periodic snapshot of per-node pipeline-runner load
4846
4858
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4847
4859
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5365,10 +5377,6 @@ function hydrateField(field, values) {
5365
5377
  };
5366
5378
  }
5367
5379
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5368
- if (field.type === "password") return {
5369
- ...field,
5370
- value: ""
5371
- };
5372
5380
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5373
5381
  return {
5374
5382
  ...field,
@@ -6752,10 +6760,25 @@ function method(input, output, options) {
6752
6760
  timeoutMs: options?.timeoutMs
6753
6761
  };
6754
6762
  }
6763
+ /**
6764
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6765
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6766
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6767
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6768
+ */
6769
+ function systemMethod(input, output, options) {
6770
+ return {
6771
+ ...method(input, output, options),
6772
+ systemOnly: true
6773
+ };
6774
+ }
6755
6775
  /** Shorthand to define an event schema */
6756
6776
  function event$1(data) {
6757
6777
  return { data };
6758
6778
  }
6779
+ var StaticDirOutputSchema$1 = object({ staticDir: string$2() });
6780
+ var VersionOutputSchema$1 = object({ version: string$2() });
6781
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6759
6782
  var StaticDirOutputSchema = object({ staticDir: string$2() });
6760
6783
  var VersionOutputSchema = object({ version: string$2() });
6761
6784
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6937,6 +6960,36 @@ var ModelFormatsSchema = object({
6937
6960
  tflite: ModelFormatEntrySchema.optional(),
6938
6961
  pt: ModelFormatEntrySchema.optional()
6939
6962
  });
6963
+ /**
6964
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6965
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6966
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6967
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6968
+ * resolution/download/persistence; this is a presentation overlay resolved back
6969
+ * to an `id`.
6970
+ */
6971
+ var ModelVariantGroupSchema = object({
6972
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6973
+ family: string$2(),
6974
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6975
+ tier: string$2(),
6976
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6977
+ precision: _enum(["fp32", "int8"]).optional(),
6978
+ /**
6979
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6980
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6981
+ * future performance variants plug into.
6982
+ */
6983
+ optimization: _enum(["standard", "fast"]).optional(),
6984
+ /**
6985
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6986
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6987
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6988
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6989
+ * the group so the selector can offer it as a variant axis.
6990
+ */
6991
+ resolution: number().int().positive().optional()
6992
+ });
6940
6993
  var ModelCatalogEntrySchema = object({
6941
6994
  id: string$2(),
6942
6995
  name: string$2(),
@@ -6966,7 +7019,43 @@ var ModelCatalogEntrySchema = object({
6966
7019
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6967
7020
  * Downloaded into the same modelsDir alongside the model file.
6968
7021
  */
6969
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7022
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7023
+ /**
7024
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7025
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7026
+ * model list and excluded from the auto format-default pick. Set on the
7027
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7028
+ * the active lineup stays the coherent curated ladder without deleting a
7029
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7030
+ * an explicit legacy id that has a build for the node's format.
7031
+ */
7032
+ legacy: boolean().optional(),
7033
+ /**
7034
+ * Measured quality/latency metadata — populated from the benchmark addon on
7035
+ * the real node classes. Absent = not yet measured (most entries today; the
7036
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7037
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7038
+ */
7039
+ metrics: object({
7040
+ map50: number().optional(),
7041
+ p95LatencyMs: record(string$2(), number()).optional()
7042
+ }).optional(),
7043
+ /**
7044
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7045
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7046
+ * the retraining addon and any future commercial distribution.
7047
+ */
7048
+ license: string$2().optional(),
7049
+ /**
7050
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7051
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7052
+ * of a family's sizes and quantizations collapse into one grouped picker
7053
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7054
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7055
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7056
+ * is a presentation overlay resolved back to an `id`.
7057
+ */
7058
+ group: ModelVariantGroupSchema.optional()
6970
7059
  });
6971
7060
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6972
7061
  format: literal("openvino"),
@@ -7027,8 +7116,8 @@ var RecordingModeSchema = _enum([
7027
7116
  "onAudioThreshold"
7028
7117
  ]);
7029
7118
  /**
7030
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7031
- * reads directly (never inferred from `rules`):
7119
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7120
+ * UI reads directly (never inferred from `rules`):
7032
7121
  * - `off` — not recording.
7033
7122
  * - `events` — record only around triggers (motion / audio threshold),
7034
7123
  * with pre/post-buffer.
@@ -9191,26 +9280,13 @@ onBrightnessChanged: { data: object({
9191
9280
  */
9192
9281
  runtimeState: BrightnessStatusSchema
9193
9282
  };
9283
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9194
9284
  var StreamFormatSchema = _enum([
9195
9285
  "webrtc",
9196
9286
  "hls",
9197
9287
  "mjpeg",
9198
9288
  "rtsp"
9199
9289
  ]);
9200
- var StreamInfoSchema = object({
9201
- streamId: string$2(),
9202
- format: StreamFormatSchema,
9203
- url: string$2().nullable(),
9204
- active: boolean()
9205
- });
9206
- method(object({
9207
- streamId: string$2(),
9208
- sourceUrl: string$2(),
9209
- codec: string$2().optional()
9210
- }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), _void(), { kind: "mutation" }), method(object({
9211
- streamId: string$2(),
9212
- format: StreamFormatSchema
9213
- }), string$2().nullable()), method(_void(), array(StreamInfoSchema));
9214
9290
  var RtspRestreamEntrySchema = object({
9215
9291
  brokerId: string$2(),
9216
9292
  url: string$2(),
@@ -10078,37 +10154,7 @@ var consumablesCapability = {
10078
10154
  scope: "device",
10079
10155
  deviceNative: true,
10080
10156
  mode: "singleton",
10081
- deviceTypes: [
10082
- DeviceType.Camera,
10083
- DeviceType.Hub,
10084
- DeviceType.Light,
10085
- DeviceType.Siren,
10086
- DeviceType.Switch,
10087
- DeviceType.Sensor,
10088
- DeviceType.Thermostat,
10089
- DeviceType.Button,
10090
- DeviceType.EventEmitter,
10091
- DeviceType.Update,
10092
- DeviceType.Generic,
10093
- DeviceType.Notifier,
10094
- DeviceType.Script,
10095
- DeviceType.Automation,
10096
- DeviceType.Lock,
10097
- DeviceType.Cover,
10098
- DeviceType.Valve,
10099
- DeviceType.Humidifier,
10100
- DeviceType.WaterHeater,
10101
- DeviceType.Fan,
10102
- DeviceType.MediaPlayer,
10103
- DeviceType.AlarmPanel,
10104
- DeviceType.Control,
10105
- DeviceType.Presence,
10106
- DeviceType.Weather,
10107
- DeviceType.Vacuum,
10108
- DeviceType.LawnMower,
10109
- DeviceType.Container,
10110
- DeviceType.Image
10111
- ],
10157
+ deviceTypes: Object.values(DeviceType),
10112
10158
  deviceConfig: { ui: {
10113
10159
  kind: "widget",
10114
10160
  widgetId: "host/consumables-panel",
@@ -11566,7 +11612,7 @@ var BoundingBoxSchema = object({
11566
11612
  w: number(),
11567
11613
  h: number()
11568
11614
  });
11569
- var SpatialDetectionSchema = object({
11615
+ object({
11570
11616
  class: string$2(),
11571
11617
  originalClass: string$2(),
11572
11618
  score: number(),
@@ -11701,7 +11747,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11701
11747
  enabled: boolean(),
11702
11748
  modelId: string$2(),
11703
11749
  children: array(PipelineDefaultStepSchema).readonly(),
11704
- engine: PipelineEngineChoiceSchema.optional(),
11705
11750
  group: string$2().optional(),
11706
11751
  settings: record(string$2(), unknown()).optional()
11707
11752
  }));
@@ -11726,7 +11771,9 @@ var PipelineModelOptionSchema = object({
11726
11771
  formats: record(string$2(), object({
11727
11772
  downloaded: boolean(),
11728
11773
  sizeMB: number()
11729
- }))
11774
+ })),
11775
+ group: ModelVariantGroupSchema.optional(),
11776
+ legacy: boolean().optional()
11730
11777
  });
11731
11778
  var ConfigFieldBridge = custom();
11732
11779
  var PipelineAddonSchemaSchema = object({
@@ -11740,6 +11787,7 @@ var PipelineAddonSchemaSchema = object({
11740
11787
  defaultModelId: string$2(),
11741
11788
  defaultModelIdByFormat: record(string$2(), string$2()).optional(),
11742
11789
  enabledByDefault: boolean().optional(),
11790
+ backfillIntoExistingOverrides: boolean().optional(),
11743
11791
  defaultConfidence: number(),
11744
11792
  group: string$2().optional(),
11745
11793
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11756,11 +11804,6 @@ var PipelineSchemaSchema = object({
11756
11804
  selectedEngine: PipelineEngineChoiceSchema,
11757
11805
  slots: array(PipelineSlotSchemaSchema).readonly()
11758
11806
  });
11759
- var DetectorOutputSchema = object({
11760
- detections: array(SpatialDetectionSchema).readonly(),
11761
- inferenceMs: number(),
11762
- modelId: string$2()
11763
- });
11764
11807
  var EngineProvisioningSchema = object({
11765
11808
  runtimeId: _enum([
11766
11809
  "onnx",
@@ -11777,15 +11820,42 @@ var EngineProvisioningSchema = object({
11777
11820
  ]),
11778
11821
  progress: number().optional(),
11779
11822
  error: string$2().optional(),
11780
- nextRetryAt: number().optional()
11823
+ nextRetryAt: number().optional(),
11824
+ /**
11825
+ * Gate A (config-correctness gate at engine change): human-readable
11826
+ * config issues surfaced EAGERLY when the node's engine changes — model
11827
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11828
+ * has a <format> build"). Additive/optional: informational only, never
11829
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11830
+ * Absent/empty when the node-default tree resolves cleanly.
11831
+ */
11832
+ configIssues: array(string$2()).optional()
11781
11833
  });
11782
11834
  var PipelineStepInputSchema = lazy(() => object({
11783
11835
  addonId: string$2(),
11784
- modelId: string$2(),
11836
+ modelId: string$2().optional(),
11785
11837
  enabled: boolean().default(true),
11786
11838
  children: array(PipelineStepInputSchema).optional(),
11787
11839
  settings: record(string$2(), unknown()).optional()
11788
11840
  }));
11841
+ var ModelSubstitutionSchema = object({
11842
+ addonId: string$2(),
11843
+ chosen: string$2(),
11844
+ running: string$2(),
11845
+ format: string$2()
11846
+ });
11847
+ var PipelineValidationIssueSchema = object({
11848
+ addonId: string$2(),
11849
+ kind: _enum(["unknown-addon", "no-format-build"]),
11850
+ detail: string$2()
11851
+ });
11852
+ var PipelineValidationResultSchema = object({
11853
+ ok: boolean(),
11854
+ issues: array(PipelineValidationIssueSchema).readonly(),
11855
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11856
+ /** The node's `currentEngine.format` this validation ran against. */
11857
+ format: string$2()
11858
+ });
11789
11859
  var ReferenceImageEntrySchema = object({
11790
11860
  filename: string$2(),
11791
11861
  stepIds: array(string$2()).readonly().optional()
@@ -11856,7 +11926,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11856
11926
  })) }), object({ success: literal(true) }), {
11857
11927
  kind: "mutation",
11858
11928
  auth: "admin"
11859
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11929
+ }), method(object({ nodeId: string$2() }), object({
11930
+ success: literal(true),
11931
+ clearedDevices: number()
11932
+ }), {
11933
+ kind: "mutation",
11934
+ auth: "admin"
11935
+ }), 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({
11860
11936
  name: string$2(),
11861
11937
  steps: array(PipelineTemplateStepSchema).readonly(),
11862
11938
  engine: PipelineEngineChoiceSchema
@@ -11873,10 +11949,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11873
11949
  modelId: string$2(),
11874
11950
  format: ModelFormatSchema$1
11875
11951
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11876
- addonId: string$2(),
11877
- frame: FrameInputSchema,
11878
- config: record(string$2(), unknown()).optional()
11879
- }), DetectorOutputSchema), method(object({
11880
11952
  engine: PipelineEngineChoiceSchema.optional(),
11881
11953
  steps: array(PipelineStepInputSchema).min(1),
11882
11954
  frame: FrameInputSchema.optional(),
@@ -12055,6 +12127,25 @@ var zonesCapability = {
12055
12127
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12056
12128
  };
12057
12129
  /**
12130
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12131
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12132
+ * so the caller supplies only the detection-res bbox divided by the detection
12133
+ * dims — no native resolution to plumb.
12134
+ */
12135
+ var NativeCropBboxSchema = object({
12136
+ x: number(),
12137
+ y: number(),
12138
+ w: number(),
12139
+ h: number()
12140
+ });
12141
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12142
+ var NativeCropResultSchema = object({
12143
+ /** Packed rgb (24-bit) pixels of the crop. */
12144
+ bytes: _instanceof(Uint8Array),
12145
+ width: number().int().positive(),
12146
+ height: number().int().positive()
12147
+ });
12148
+ /**
12058
12149
  * Per-camera tunable ranges + defaults. Single source of truth used
12059
12150
  * by both the Zod data schema (validation + default fallback) and
12060
12151
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12149,6 +12240,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12149
12240
  kind: literal("remote-restream"),
12150
12241
  /** The camera's source-owner node (slice 1: always the hub). */
12151
12242
  ownerNodeId: string$2(),
12243
+ /**
12244
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12245
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12246
+ * dials THIS host for the owner's restream, in preference to the
12247
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12248
+ */
12249
+ ownerReachableHost: string$2().optional(),
12152
12250
  /** Operator override for the owner host the runner dials. */
12153
12251
  hubHostnameOverride: string$2().optional()
12154
12252
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12157,13 +12255,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12157
12255
  * specific runner instance via `attachCamera`. Carries everything the
12158
12256
  * runner needs to subscribe to the local broker and execute inference.
12159
12257
  *
12160
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12161
- * optional `audio`) travels with the attach payload. The runner keeps it
12162
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12163
- * restart the orchestrator re-sends the latest snapshot.
12164
- *
12165
- * `engine`/`steps`/`audio` are optional during the additive migration
12166
- * window; once orchestrator + UI are migrated they become required.
12258
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12259
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12260
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12261
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12262
+ * node-local, resolved by the executing runner at dispatch time.
12167
12263
  */
12168
12264
  var RunnerCameraConfigSchema = object({
12169
12265
  deviceId: number(),
@@ -12214,14 +12310,11 @@ var RunnerCameraConfigSchema = object({
12214
12310
  */
12215
12311
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12216
12312
  pipelineEnabled: boolean().default(true),
12217
- /** Engine choice for video steps (runtime+backend+format). */
12218
- engine: PipelineEngineChoiceSchema.optional(),
12219
12313
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12220
12314
  steps: array(PipelineStepInputSchema).readonly().optional(),
12221
12315
  /** Audio classification branch. `enabled:false` disables, null skips. */
12222
12316
  audio: object({
12223
- engine: PipelineEngineChoiceSchema,
12224
- modelId: string$2(),
12317
+ modelId: string$2().optional(),
12225
12318
  enabled: boolean()
12226
12319
  }).nullable().optional(),
12227
12320
  /**
@@ -12308,7 +12401,11 @@ var RunnerLocalMetricsSchema = object({
12308
12401
  avgInferenceTimeMs: number(),
12309
12402
  queueDepth: number()
12310
12403
  });
12311
- 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());
12404
+ 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({
12405
+ handle: FrameHandleSchema,
12406
+ bbox: NativeCropBboxSchema,
12407
+ maxWidth: number().int().positive().optional()
12408
+ }), NativeCropResultSchema.nullable());
12312
12409
  /**
12313
12410
  * Hardware / firmware motion sensor cap — binary detected state plus
12314
12411
  * a timestamp of the last observation. Distinct from
@@ -15239,7 +15336,9 @@ var AddonPageDeclarationSchema$1 = object({
15239
15336
  icon: string$2(),
15240
15337
  path: string$2(),
15241
15338
  remoteName: string$2(),
15242
- bundle: string$2()
15339
+ bundle: string$2(),
15340
+ section: string$2().optional(),
15341
+ sectionLabel: string$2().optional()
15243
15342
  });
15244
15343
  var AddonPageInfoSchema = object({
15245
15344
  addonId: string$2(),
@@ -15279,7 +15378,18 @@ var AddonPageDeclarationSchema = object({
15279
15378
  * the static-file route can compute an mtime-based cache-buster URL
15280
15379
  * without a separate filesystem stat.
15281
15380
  */
15282
- bundle: string$2()
15381
+ bundle: string$2(),
15382
+ /**
15383
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15384
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15385
+ * Any OTHER string creates (or joins) a custom section rendered after
15386
+ * the built-in groups; its label comes from `sectionLabel` (first
15387
+ * declaration wins), falling back to the id. Absent → the legacy
15388
+ * "Addon Pages" group.
15389
+ */
15390
+ section: string$2().optional(),
15391
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15392
+ sectionLabel: string$2().optional()
15283
15393
  });
15284
15394
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15285
15395
  var AddonHttpRouteSchema = object({
@@ -15495,6 +15605,17 @@ var WidgetMetadataSchema = object({
15495
15605
  deviceContext: boolean().default(false),
15496
15606
  integrationContext: boolean().default(false)
15497
15607
  }),
15608
+ /**
15609
+ * Loadable BEFORE authentication. The normal widget registry listing
15610
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15611
+ * (the login page) cannot discover a widget through it. A widget that
15612
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15613
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15614
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15615
+ * than the authenticated registry, and its bundle is served by the
15616
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15617
+ */
15618
+ preAuth: boolean().optional().default(false),
15498
15619
  /** Dashboard placement HINTS (operator can override per instance). */
15499
15620
  defaultSize: WidgetSizeEnum.default("md"),
15500
15621
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15796,6 +15917,66 @@ method(object({
15796
15917
  password: string$2()
15797
15918
  }), 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());
15798
15919
  /**
15920
+ * `login-method` — collection cap through which auth addons contribute
15921
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15922
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15923
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15924
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15925
+ * procedure aggregates them for the unauthenticated login page.
15926
+ *
15927
+ * A contribution is a discriminated union on `kind`:
15928
+ *
15929
+ * - `redirect` — a declarative button. The login page renders a generic
15930
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15931
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15932
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15933
+ * login page needs NO change.
15934
+ *
15935
+ * - `widget` — a Module-Federation widget the login page mounts (via
15936
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15937
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15938
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15939
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15940
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15941
+ *
15942
+ * Every contribution carries a `stage`:
15943
+ * - `primary` — shown on the first credentials screen (OIDC /
15944
+ * magic-link buttons; a future usernameless passkey).
15945
+ * - `second-factor` — shown AFTER the password leg, gated on the
15946
+ * returned `factors` (passkey-as-2FA today).
15947
+ *
15948
+ * `mount: skip` — the cap is read server-side by the core auth router
15949
+ * (`registry.getCollection('login-method')`), never mounted as its own
15950
+ * tRPC router.
15951
+ */
15952
+ /** When a login method renders in the two-phase login flow. */
15953
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15954
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15955
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15956
+ kind: literal("redirect"),
15957
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15958
+ id: string$2(),
15959
+ /** Operator-facing button label. */
15960
+ label: string$2(),
15961
+ /** lucide-react icon name. */
15962
+ icon: string$2().optional(),
15963
+ /** Addon-owned HTTP route the button navigates to (GET). */
15964
+ startUrl: string$2(),
15965
+ stage: LoginStageEnum
15966
+ }), object({
15967
+ kind: literal("widget"),
15968
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15969
+ id: string$2(),
15970
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15971
+ addonId: string$2(),
15972
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15973
+ bundle: string$2(),
15974
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15975
+ remote: WidgetRemoteSchema,
15976
+ stage: LoginStageEnum
15977
+ })]);
15978
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15979
+ /**
15799
15980
  * Orchestrator-side destination metadata. The orchestrator computes
15800
15981
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15801
15982
  * (admin UI, restore flow) see one canonical key.
@@ -17965,7 +18146,17 @@ var TrackSchema = object({
17965
18146
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17966
18147
  totalDistance: number(),
17967
18148
  state: TrackStateSchema,
17968
- active: boolean()
18149
+ active: boolean(),
18150
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18151
+ * track expiry, recomputed on late label). Absent on legacy rows written
18152
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18153
+ importance: number().optional(),
18154
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18155
+ * "best" frame). Absent when the track produced no object events. */
18156
+ bestEventId: string$2().optional(),
18157
+ /** Tag of the importance sub-signal that dominated the score
18158
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18159
+ importanceReason: string$2().optional()
17969
18160
  });
17970
18161
  var BaseEventFields = {
17971
18162
  id: string$2(),
@@ -18030,8 +18221,18 @@ var ObjectEventSchema = object({
18030
18221
  frameHeight: number().optional(),
18031
18222
  /** MediaStore key for the crop attached to this event (if any). */
18032
18223
  mediaKey: string$2().optional(),
18224
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18225
+ * best-detection full frame). Resolve via the event-media data-plane
18226
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18227
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18228
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18229
+ keyFrameMediaKey: string$2().optional(),
18033
18230
  /** Populated by B5 (recording playback URL for this event). */
18034
- mediaUrl: string$2().optional()
18231
+ mediaUrl: string$2().optional(),
18232
+ /** The parent track's key-event importance [0,1], propagated to every object
18233
+ * event of the track (so an event row can be sorted by importance without a
18234
+ * track join). Absent on legacy rows / before the track was scored. */
18235
+ importance: number().optional()
18035
18236
  });
18036
18237
  var AudioEventSchema = object({
18037
18238
  ...BaseEventFields,
@@ -18055,7 +18256,8 @@ var MediaFileKindEnum = _enum([
18055
18256
  "fullFrame",
18056
18257
  "fullFrameBoxed",
18057
18258
  "faceCrop",
18058
- "plateCrop"
18259
+ "plateCrop",
18260
+ "keyFrame"
18059
18261
  ]);
18060
18262
  var MediaFileSchema = object({
18061
18263
  key: string$2(),
@@ -18076,6 +18278,32 @@ var DeviceEventQueryInput = object({
18076
18278
  projection: _enum(["full", "slim"]).optional()
18077
18279
  });
18078
18280
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string$2().optional() });
18281
+ var KeyEventQueryInput = object({
18282
+ deviceId: number(),
18283
+ /** Window lower bound (track firstSeen ≥ since). */
18284
+ since: number(),
18285
+ /** Window upper bound (track firstSeen ≤ until). */
18286
+ until: number(),
18287
+ limit: number().int().min(1).max(200).default(50),
18288
+ /** Drop tracks scoring below this importance. */
18289
+ minImportance: number().min(0).max(1).optional(),
18290
+ /** Restrict to a single class (e.g. 'person'). */
18291
+ classFilter: string$2().optional()
18292
+ });
18293
+ var KeyEventSchema = object({
18294
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18295
+ id: string$2(),
18296
+ trackId: string$2(),
18297
+ /** Track start time (firstSeen). */
18298
+ timestamp: number(),
18299
+ className: string$2(),
18300
+ label: string$2().optional(),
18301
+ importance: number(),
18302
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18303
+ bestEventId: string$2(),
18304
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18305
+ windowMs: number().optional()
18306
+ });
18079
18307
  var TrackedDetectionSchema = object({
18080
18308
  trackId: string$2(),
18081
18309
  className: string$2(),
@@ -18105,7 +18333,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18105
18333
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18106
18334
  kind: "mutation",
18107
18335
  auth: "admin"
18108
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18336
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18109
18337
  deviceId: number(),
18110
18338
  since: number(),
18111
18339
  until: number(),
@@ -18150,11 +18378,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18150
18378
  timestamp: number()
18151
18379
  });
18152
18380
  var CameraPipelineConfigSchema = object({
18153
- engine: PipelineEngineChoiceSchema,
18381
+ engine: PipelineEngineChoiceSchema.optional(),
18154
18382
  steps: array(PipelineStepInputSchema).readonly(),
18155
18383
  audio: object({
18156
- engine: PipelineEngineChoiceSchema,
18157
- modelId: string$2(),
18384
+ engine: PipelineEngineChoiceSchema.optional(),
18385
+ modelId: string$2().optional(),
18158
18386
  enabled: boolean(),
18159
18387
  settings: record(string$2(), unknown()).readonly().optional()
18160
18388
  }).nullable().optional()
@@ -18169,7 +18397,7 @@ var PipelineTemplateSchema = object({
18169
18397
  });
18170
18398
  var AgentAddonConfigSchema = object({
18171
18399
  enabled: boolean(),
18172
- modelId: string$2(),
18400
+ modelId: string$2().optional(),
18173
18401
  settings: record(string$2(), unknown()).readonly()
18174
18402
  });
18175
18403
  var AgentPipelineSettingsSchema = object({
@@ -18179,12 +18407,25 @@ var AgentPipelineSettingsSchema = object({
18179
18407
  detectWeight: number().positive().optional(),
18180
18408
  /** Node is eligible to run the detection pipeline (decode + inference). */
18181
18409
  detect: boolean().optional(),
18182
- /** Node is eligible to host decoder sessions. */
18410
+ /**
18411
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18412
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18413
+ * the schema ONLY so persisted stores written before the removal still
18414
+ * parse — no code reads it and no write path emits it.
18415
+ */
18183
18416
  decode: boolean().optional(),
18184
18417
  /** Node is eligible to run audio-analyzer sessions. */
18185
18418
  audio: boolean().optional(),
18186
18419
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18187
- ingest: boolean().optional()
18420
+ ingest: boolean().optional(),
18421
+ /**
18422
+ * Operator override for the LAN host a cross-node decoder dials to reach
18423
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18424
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18425
+ * it already uses to reach the hub). Set this only when the auto-detected
18426
+ * address is wrong (multi-homed host, NAT, custom interface).
18427
+ */
18428
+ reachableHost: string$2().optional()
18188
18429
  });
18189
18430
  var CameraPipelineForAgentSchema = object({
18190
18431
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18232,25 +18473,6 @@ var PipelineAssignmentSchema = object({
18232
18473
  assignedAt: number()
18233
18474
  });
18234
18475
  /**
18235
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18236
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18237
- * → co-located with pipeline → capacity).
18238
- */
18239
- var DecoderAssignmentSchema = object({
18240
- deviceId: number(),
18241
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18242
- decoderNodeId: string$2(),
18243
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18244
- pinned: boolean(),
18245
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18246
- reason: _enum([
18247
- "manual",
18248
- "co-located",
18249
- "capacity",
18250
- "hardware-affinity"
18251
- ])
18252
- });
18253
- /**
18254
18476
  * Per-agent load summary surfaced to the load balancer + dashboards.
18255
18477
  * Aggregated from each runner's `getLocalLoad` cap call.
18256
18478
  */
@@ -18290,6 +18512,15 @@ var GlobalMetricsSchema = object({
18290
18512
  * capability providers.
18291
18513
  */
18292
18514
  var CapabilityBindingsSchema = record(string$2(), string$2());
18515
+ /**
18516
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18517
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18518
+ */
18519
+ var IngestOwnerSchema = object({
18520
+ ownerNodeId: string$2(),
18521
+ reachableHost: string$2().optional(),
18522
+ configIssue: string$2().optional()
18523
+ });
18293
18524
  /** Source block — always present; derives from the stream catalog. */
18294
18525
  var CameraSourceStatusSchema = object({ streams: array(object({
18295
18526
  camStreamId: string$2(),
@@ -18304,6 +18535,14 @@ var CameraAssignmentStatusSchema = object({
18304
18535
  detectionNodeId: string$2().nullable(),
18305
18536
  decoderNodeId: string$2().nullable(),
18306
18537
  audioNodeId: string$2().nullable(),
18538
+ /**
18539
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18540
+ * hosts the broker/restream) — the cluster ingest owner today
18541
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18542
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18543
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18544
+ */
18545
+ sourceNodeId: string$2().nullable(),
18307
18546
  pinned: object({
18308
18547
  detection: boolean(),
18309
18548
  decoder: boolean(),
@@ -18436,16 +18675,7 @@ method(object({
18436
18675
  }), object({ success: literal(true) }), {
18437
18676
  kind: "mutation",
18438
18677
  auth: "admin"
18439
- }), method(object({
18440
- deviceId: number(),
18441
- nodeId: string$2()
18442
- }), _void(), {
18443
- kind: "mutation",
18444
- auth: "admin"
18445
- }), method(object({ deviceId: number() }), _void(), {
18446
- kind: "mutation",
18447
- auth: "admin"
18448
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18678
+ }), method(_void(), IngestOwnerSchema), method(object({
18449
18679
  deviceId: number(),
18450
18680
  nodeId: string$2()
18451
18681
  }), object({ success: literal(true) }), {
@@ -18466,10 +18696,7 @@ method(object({
18466
18696
  nodeId: string$2(),
18467
18697
  pinned: boolean(),
18468
18698
  assignedAt: number()
18469
- }))), method(object({
18470
- deviceId: number(),
18471
- pipelineNodeId: string$2().optional()
18472
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string$2() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18699
+ }))), method(object({ agentNodeId: string$2() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18473
18700
  nodeId: string$2(),
18474
18701
  settings: AgentPipelineSettingsSchema
18475
18702
  })).readonly()), method(object({
@@ -18499,12 +18726,26 @@ method(object({
18499
18726
  }), method(object({
18500
18727
  agentNodeId: string$2(),
18501
18728
  detect: boolean().nullable().optional(),
18502
- decode: boolean().nullable().optional(),
18503
18729
  audio: boolean().nullable().optional(),
18504
18730
  ingest: boolean().nullable().optional()
18505
18731
  }), object({ success: literal(true) }), {
18506
18732
  kind: "mutation",
18507
18733
  auth: "admin"
18734
+ }), method(object({
18735
+ agentNodeId: string$2(),
18736
+ reachableHost: string$2().nullable()
18737
+ }), object({ success: literal(true) }), {
18738
+ kind: "mutation",
18739
+ auth: "admin"
18740
+ }), method(object({ agentNodeId: string$2() }), object({
18741
+ success: literal(true),
18742
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18743
+ effectiveModelId: string$2().nullable(),
18744
+ /** Number of cameras whose node-scoped overrides were cleared. */
18745
+ clearedCameraOverrides: number()
18746
+ }), {
18747
+ kind: "mutation",
18748
+ auth: "admin"
18508
18749
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18509
18750
  deviceId: number(),
18510
18751
  addonId: string$2(),
@@ -18549,22 +18790,131 @@ method(object({
18549
18790
  kind: "mutation",
18550
18791
  auth: "admin"
18551
18792
  });
18552
- var RegisteredStreamSchema = object({
18553
- streamId: string$2(),
18554
- label: string$2().optional(),
18555
- codec: string$2(),
18556
- type: _enum(["video", "audio"]),
18557
- sourceUrl: string$2()
18793
+ /**
18794
+ * server-management — per-NODE singleton capability for a node's ROOT
18795
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18796
+ * agents).
18797
+ *
18798
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18799
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18800
+ * version describes the node. Updates install into
18801
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18802
+ * starter (probation boot + auto-rollback to N-1).
18803
+ *
18804
+ * Providers:
18805
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18806
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18807
+ * unpinned calls.
18808
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18809
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18810
+ * `$hub.registerNode` manifest.
18811
+ *
18812
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18813
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18814
+ * SDK) routes the call to that node's provider via the standard remote
18815
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18816
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18817
+ *
18818
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18819
+ */
18820
+ /**
18821
+ * Where the running hub's code was loaded from:
18822
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18823
+ * plain resolution and runtime updates are refused.
18824
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18825
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18826
+ */
18827
+ var ServerBootModeSchema = _enum([
18828
+ "workspace",
18829
+ "baked",
18830
+ "data-root"
18831
+ ]);
18832
+ /**
18833
+ * Update lifecycle state:
18834
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18835
+ * - `pending-restart` — a version is staged and the node has NOT yet
18836
+ * restarted onto it (still running the OLD version).
18837
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18838
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18839
+ * Apply/rollback are refused in this state and the node must NOT be
18840
+ * manually restarted, or the probation boot auto-rolls-back.
18841
+ */
18842
+ var ServerUpdateStateSchema = _enum([
18843
+ "idle",
18844
+ "checking",
18845
+ "staging",
18846
+ "pending-restart",
18847
+ "awaiting-confirmation"
18848
+ ]);
18849
+ var ServerRollbackInfoSchema = object({
18850
+ /** The version that failed (or was manually rolled back). */
18851
+ fromVersion: string$2(),
18852
+ /** The version rolled back to; null = the baked seed. */
18853
+ toVersion: string$2().nullable(),
18854
+ atMs: number(),
18855
+ reason: string$2()
18558
18856
  });
18559
- var ExposedResourceSchema = object({
18560
- streamId: string$2(),
18561
- format: string$2(),
18562
- value: string$2()
18857
+ var ServerPackageStatusSchema = object({
18858
+ /** Root package name (`@camstack/server` on the hub). */
18859
+ packageName: string$2(),
18860
+ /** Version of the code the running process ACTUALLY loaded. */
18861
+ runningVersion: string$2().nullable(),
18862
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18863
+ nodeRuntimeVersion: string$2().nullable(),
18864
+ /** Active data-dir root version; null when booted from seed/workspace. */
18865
+ activeVersion: string$2().nullable(),
18866
+ /** N-1 version kept for rollback; null when no previous version exists. */
18867
+ previousVersion: string$2().nullable(),
18868
+ /** Version of the immutable baked seed closure (image fallback). */
18869
+ seedVersion: string$2().nullable(),
18870
+ /** Latest registry version from the most recent check (null = never checked). */
18871
+ latestVersion: string$2().nullable(),
18872
+ updateAvailable: boolean(),
18873
+ bootMode: ServerBootModeSchema,
18874
+ updateState: ServerUpdateStateSchema,
18875
+ /** Version staged + awaiting its probation boot, when one is pending. */
18876
+ pendingVersion: string$2().nullable(),
18877
+ /** Set when the last freshly-activated version failed its boot health-check. */
18878
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18879
+ /**
18880
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18881
+ * hub is running from the baked seed (or workspace) while installed data-dir
18882
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18883
+ */
18884
+ stateFileCorrupt: boolean(),
18885
+ lastCheckedAtMs: number().nullable()
18886
+ });
18887
+ var ServerUpdateCheckResultSchema = object({
18888
+ packageName: string$2(),
18889
+ runningVersion: string$2().nullable(),
18890
+ latestVersion: string$2().nullable(),
18891
+ updateAvailable: boolean(),
18892
+ checkedAtMs: number(),
18893
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18894
+ error: string$2().nullable()
18895
+ });
18896
+ var ServerUpdateActionResultSchema = object({
18897
+ accepted: boolean(),
18898
+ targetVersion: string$2().nullable(),
18899
+ /** True when a graceful restart was scheduled to apply the change. */
18900
+ restarting: boolean(),
18901
+ message: string$2()
18902
+ });
18903
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18904
+ kind: "mutation",
18905
+ auth: "admin"
18906
+ }), method(object({
18907
+ /** Explicit target version; omitted = latest from the registry. */
18908
+ version: string$2().optional() }), ServerUpdateActionResultSchema, {
18909
+ kind: "mutation",
18910
+ auth: "admin"
18911
+ }), method(_void(), ServerUpdateActionResultSchema, {
18912
+ kind: "mutation",
18913
+ auth: "admin"
18914
+ }), method(_void(), ServerUpdateActionResultSchema, {
18915
+ kind: "mutation",
18916
+ auth: "admin"
18563
18917
  });
18564
- method(object({
18565
- deviceId: number(),
18566
- streams: array(RegisteredStreamSchema).readonly()
18567
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18568
18918
  /**
18569
18919
  * Query filter for settings-store collections.
18570
18920
  */
@@ -18717,9 +19067,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18717
19067
  /**
18718
19068
  * A single device snapshot returned as base64 JPEG/PNG.
18719
19069
  *
18720
- * Shared with the `snapshot-provider` collection cap the orchestrator
18721
- * receives the same shape from each native provider and from the
18722
- * broker-based fallback.
19070
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19071
+ * the device-native provider (onboard capture) or from the stream-broker
19072
+ * prebuffer fallback.
18723
19073
  */
18724
19074
  var SnapshotImageSchema = object({
18725
19075
  base64: string$2(),
@@ -18750,11 +19100,12 @@ DeviceType.Camera, method(object({
18750
19100
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18751
19101
  kind: "mutation",
18752
19102
  auth: "admin"
18753
- });
18754
- method(object({ deviceId: number() }), boolean()), method(object({
19103
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18755
19104
  deviceId: number(),
18756
- streamId: string$2().optional()
18757
- }), SnapshotImageSchema.nullable());
19105
+ lastCapturedAt: number().nullable(),
19106
+ cacheAgeMs: number().nullable(),
19107
+ etag: string$2().nullable()
19108
+ })));
18758
19109
  /**
18759
19110
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18760
19111
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19005,10 +19356,32 @@ method(_void(), array(TurnServerSchema).readonly());
19005
19356
  * b. `finishAuthentication({userId, response})` → server verifies
19006
19357
  * the assertion, bumps the credential counter, returns ok.
19007
19358
  *
19359
+ * 2b. Usernameless (discoverable-credential) authentication — the
19360
+ * passkey IS the primary factor, no password leg:
19361
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19362
+ * EMPTY `allowCredentials` (the browser offers every resident
19363
+ * passkey it holds for this RP) + `userVerification: 'required'`
19364
+ * (the passkey replaces both factors, so UV is mandatory).
19365
+ * The challenge is stored server-side, NOT bound to any user.
19366
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19367
+ * resolves the credential by the response's credential id,
19368
+ * verifies the assertion against the stored challenge + that
19369
+ * credential's public key/counter, and returns the OWNING
19370
+ * `userId` — the caller (core auth router) mints the session.
19371
+ *
19008
19372
  * 3. Management:
19009
19373
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19010
19374
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19011
19375
  *
19376
+ * 4. Second-factor preference (opt-in, default OFF):
19377
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19378
+ * demanded as a second factor after a password login ONLY when the
19379
+ * user explicitly opts in via `setSecondFactorPreference`.
19380
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19381
+ * row ⇒ `enabled: false`).
19382
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19383
+ * the providing addon beside its credentials.
19384
+ *
19012
19385
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19013
19386
  * the admin-ui composes the begin/finish round-trip and never exposes
19014
19387
  * the cap to non-admins.
@@ -19051,6 +19424,17 @@ method(object({
19051
19424
  }), object({ verified: boolean() }), {
19052
19425
  kind: "mutation",
19053
19426
  access: "view"
19427
+ }), method(object({}), object({ optionsJSON: record(string$2(), unknown()) }), {
19428
+ kind: "mutation",
19429
+ access: "view"
19430
+ }), method(object({
19431
+ /** AuthenticationResponseJSON from the browser. */
19432
+ response: record(string$2(), unknown()) }), object({
19433
+ verified: boolean(),
19434
+ userId: string$2().nullable()
19435
+ }), {
19436
+ kind: "mutation",
19437
+ access: "view"
19054
19438
  }), method(object({ userId: string$2() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19055
19439
  userId: string$2(),
19056
19440
  credentialId: string$2()
@@ -19058,6 +19442,13 @@ method(object({
19058
19442
  kind: "mutation",
19059
19443
  auth: "admin",
19060
19444
  access: "delete"
19445
+ }), method(object({ userId: string$2() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19446
+ userId: string$2(),
19447
+ enabled: boolean()
19448
+ }), object({ success: literal(true) }), {
19449
+ kind: "mutation",
19450
+ auth: "admin",
19451
+ access: "create"
19061
19452
  });
19062
19453
  /**
19063
19454
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19115,9 +19506,10 @@ method(object({
19115
19506
  auth: "admin"
19116
19507
  });
19117
19508
  /**
19118
- * Optional client-side hints sent at session creation to help the
19119
- * provider pick the best native source. All fields are optional —
19120
- * a viewer that knows nothing still gets a sane default.
19509
+ * Optional client-side hints sent at session creation to help the provider
19510
+ * pick the best native source. All fields optional — a viewer that knows
19511
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19512
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19121
19513
  */
19122
19514
  var webrtcClientHintsSchema = object({
19123
19515
  viewportWidth: number().int().positive().optional(),
@@ -19128,22 +19520,6 @@ var webrtcClientHintsSchema = object({
19128
19520
  /** Hard tier override; takes precedence over scoring when registered. */
19129
19521
  prefersTier: string$2().optional()
19130
19522
  }).partial();
19131
- method(object({
19132
- streamId: string$2(),
19133
- sdpOffer: string$2()
19134
- }), string$2(), { kind: "mutation" }), method(object({ streamId: string$2() }), boolean()), method(object({
19135
- streamId: string$2(),
19136
- codec: string$2()
19137
- }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), _void(), { kind: "mutation" }), method(object({
19138
- streamId: string$2(),
19139
- hints: webrtcClientHintsSchema.optional()
19140
- }), object({
19141
- sessionId: string$2(),
19142
- sdpOffer: string$2()
19143
- }), { kind: "mutation" }), method(object({
19144
- sessionId: string$2(),
19145
- sdpAnswer: string$2()
19146
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string$2() }), _void(), { kind: "mutation" }), method(object({ streamId: string$2() }), boolean());
19147
19523
  /**
19148
19524
  * Discriminated target for a WebRTC session. The client sends this
19149
19525
  * structured object instead of building / parsing brokerId strings;
@@ -19630,7 +20006,15 @@ var FrameworkPackageStatusSchema = object({
19630
20006
  latestVersion: string$2().nullable(),
19631
20007
  hasUpdate: boolean(),
19632
20008
  /** Optional manifest description for the row tooltip. */
19633
- description: string$2().optional()
20009
+ description: string$2().optional(),
20010
+ /**
20011
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
20012
+ * ACTUALLY loaded. Framework packages ship code changes without always
20013
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
20014
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
20015
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
20016
+ */
20017
+ buildId: string$2().nullable()
19634
20018
  });
19635
20019
  var LogStreamEntrySchema = object({
19636
20020
  timestamp: string$2(),
@@ -19883,7 +20267,17 @@ var FaceInfoSchema = object({
19883
20267
  recognizedIdentityId: string$2().optional(),
19884
20268
  identityName: string$2().optional(),
19885
20269
  assigned: boolean(),
19886
- base64: string$2().optional()
20270
+ base64: string$2().optional(),
20271
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20272
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20273
+ * legacy rows written before design B. */
20274
+ faceBbox: BoundingBoxSchema.optional(),
20275
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20276
+ * Fetch the native JPEG via the event-media data-plane
20277
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20278
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20279
+ * back to the inline `base64` face crop. */
20280
+ keyFrameMediaKey: string$2().optional()
19887
20281
  });
19888
20282
  var FaceFilterEnum = _enum([
19889
20283
  "unassigned",
@@ -20580,6 +20974,16 @@ var TopologyCategorySchema = object({
20580
20974
  healthy: number(),
20581
20975
  addons: array(TopologyCategoryAddonSchema).readonly()
20582
20976
  });
20977
+ /**
20978
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20979
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20980
+ * version visibility for the Server management surface. Nullable: offline
20981
+ * rows and pre-phase-2 nodes report none.
20982
+ */
20983
+ var TopologyRootPackageSchema = object({
20984
+ name: string$2(),
20985
+ version: string$2()
20986
+ });
20583
20987
  var TopologyNodeSchema = object({
20584
20988
  id: string$2(),
20585
20989
  name: string$2(),
@@ -20603,7 +21007,8 @@ var TopologyNodeSchema = object({
20603
21007
  status: string$2()
20604
21008
  })).readonly(),
20605
21009
  processes: array(TopologyProcessSchema).readonly(),
20606
- categories: array(TopologyCategorySchema).readonly()
21010
+ categories: array(TopologyCategorySchema).readonly(),
21011
+ rootPackage: TopologyRootPackageSchema.nullable()
20607
21012
  });
20608
21013
  var CapUsageEdgeSchema = object({
20609
21014
  callerAddonId: string$2(),
@@ -23403,6 +23808,12 @@ Object.freeze({
23403
23808
  addonId: null,
23404
23809
  access: "create"
23405
23810
  },
23811
+ "loginMethod.getLoginMethods": {
23812
+ capName: "login-method",
23813
+ capScope: "system",
23814
+ addonId: null,
23815
+ access: "view"
23816
+ },
23406
23817
  "mediaPlayer.next": {
23407
23818
  capName: "media-player",
23408
23819
  capScope: "device",
@@ -23985,6 +24396,12 @@ Object.freeze({
23985
24396
  addonId: null,
23986
24397
  access: "view"
23987
24398
  },
24399
+ "pipelineAnalytics.getKeyEvents": {
24400
+ capName: "pipeline-analytics",
24401
+ capScope: "device",
24402
+ addonId: null,
24403
+ access: "view"
24404
+ },
23988
24405
  "pipelineAnalytics.getMotionEvents": {
23989
24406
  capName: "pipeline-analytics",
23990
24407
  capScope: "device",
@@ -24033,23 +24450,23 @@ Object.freeze({
24033
24450
  addonId: null,
24034
24451
  access: "create"
24035
24452
  },
24036
- "pipelineExecutor.deleteModel": {
24453
+ "pipelineExecutor.clearDeviceOverrides": {
24037
24454
  capName: "pipeline-executor",
24038
24455
  capScope: "system",
24039
24456
  addonId: null,
24040
24457
  access: "delete"
24041
24458
  },
24042
- "pipelineExecutor.deleteTemplate": {
24459
+ "pipelineExecutor.deleteModel": {
24043
24460
  capName: "pipeline-executor",
24044
24461
  capScope: "system",
24045
24462
  addonId: null,
24046
24463
  access: "delete"
24047
24464
  },
24048
- "pipelineExecutor.detect": {
24465
+ "pipelineExecutor.deleteTemplate": {
24049
24466
  capName: "pipeline-executor",
24050
24467
  capScope: "system",
24051
24468
  addonId: null,
24052
- access: "view"
24469
+ access: "delete"
24053
24470
  },
24054
24471
  "pipelineExecutor.downloadModel": {
24055
24472
  capName: "pipeline-executor",
@@ -24243,13 +24660,13 @@ Object.freeze({
24243
24660
  addonId: null,
24244
24661
  access: "create"
24245
24662
  },
24246
- "pipelineOrchestrator.assignAudio": {
24247
- capName: "pipeline-orchestrator",
24663
+ "pipelineExecutor.validatePipeline": {
24664
+ capName: "pipeline-executor",
24248
24665
  capScope: "system",
24249
24666
  addonId: null,
24250
- access: "create"
24667
+ access: "view"
24251
24668
  },
24252
- "pipelineOrchestrator.assignDecoder": {
24669
+ "pipelineOrchestrator.assignAudio": {
24253
24670
  capName: "pipeline-orchestrator",
24254
24671
  capScope: "system",
24255
24672
  addonId: null,
@@ -24333,19 +24750,13 @@ Object.freeze({
24333
24750
  addonId: null,
24334
24751
  access: "view"
24335
24752
  },
24336
- "pipelineOrchestrator.getDecoderAssignment": {
24337
- capName: "pipeline-orchestrator",
24338
- capScope: "system",
24339
- addonId: null,
24340
- access: "view"
24341
- },
24342
- "pipelineOrchestrator.getDecoderAssignments": {
24753
+ "pipelineOrchestrator.getGlobalMetrics": {
24343
24754
  capName: "pipeline-orchestrator",
24344
24755
  capScope: "system",
24345
24756
  addonId: null,
24346
24757
  access: "view"
24347
24758
  },
24348
- "pipelineOrchestrator.getGlobalMetrics": {
24759
+ "pipelineOrchestrator.getIngestOwner": {
24349
24760
  capName: "pipeline-orchestrator",
24350
24761
  capScope: "system",
24351
24762
  addonId: null,
@@ -24387,6 +24798,12 @@ Object.freeze({
24387
24798
  addonId: null,
24388
24799
  access: "delete"
24389
24800
  },
24801
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24802
+ capName: "pipeline-orchestrator",
24803
+ capScope: "system",
24804
+ addonId: null,
24805
+ access: "delete"
24806
+ },
24390
24807
  "pipelineOrchestrator.resolvePipeline": {
24391
24808
  capName: "pipeline-orchestrator",
24392
24809
  capScope: "system",
@@ -24423,37 +24840,37 @@ Object.freeze({
24423
24840
  addonId: null,
24424
24841
  access: "create"
24425
24842
  },
24426
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24843
+ "pipelineOrchestrator.setAgentReachableHost": {
24427
24844
  capName: "pipeline-orchestrator",
24428
24845
  capScope: "system",
24429
24846
  addonId: null,
24430
24847
  access: "create"
24431
24848
  },
24432
- "pipelineOrchestrator.setCameraStepOverride": {
24849
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24433
24850
  capName: "pipeline-orchestrator",
24434
24851
  capScope: "system",
24435
24852
  addonId: null,
24436
24853
  access: "create"
24437
24854
  },
24438
- "pipelineOrchestrator.setCameraStepToggle": {
24855
+ "pipelineOrchestrator.setCameraStepOverride": {
24439
24856
  capName: "pipeline-orchestrator",
24440
24857
  capScope: "system",
24441
24858
  addonId: null,
24442
24859
  access: "create"
24443
24860
  },
24444
- "pipelineOrchestrator.setCapabilityBinding": {
24861
+ "pipelineOrchestrator.setCameraStepToggle": {
24445
24862
  capName: "pipeline-orchestrator",
24446
24863
  capScope: "system",
24447
24864
  addonId: null,
24448
24865
  access: "create"
24449
24866
  },
24450
- "pipelineOrchestrator.unassignAudio": {
24867
+ "pipelineOrchestrator.setCapabilityBinding": {
24451
24868
  capName: "pipeline-orchestrator",
24452
24869
  capScope: "system",
24453
24870
  addonId: null,
24454
24871
  access: "create"
24455
24872
  },
24456
- "pipelineOrchestrator.unassignDecoder": {
24873
+ "pipelineOrchestrator.unassignAudio": {
24457
24874
  capName: "pipeline-orchestrator",
24458
24875
  capScope: "system",
24459
24876
  addonId: null,
@@ -24513,6 +24930,12 @@ Object.freeze({
24513
24930
  addonId: null,
24514
24931
  access: "view"
24515
24932
  },
24933
+ "pipelineRunner.getNativeCrop": {
24934
+ capName: "pipeline-runner",
24935
+ capScope: "system",
24936
+ addonId: null,
24937
+ access: "view"
24938
+ },
24516
24939
  "pipelineRunner.reportMotion": {
24517
24940
  capName: "pipeline-runner",
24518
24941
  capScope: "system",
@@ -24753,33 +25176,45 @@ Object.freeze({
24753
25176
  addonId: null,
24754
25177
  access: "create"
24755
25178
  },
24756
- "restreamer.getExposedResources": {
24757
- capName: "restreamer",
25179
+ "scriptRunner.run": {
25180
+ capName: "script-runner",
25181
+ capScope: "device",
25182
+ addonId: null,
25183
+ access: "create"
25184
+ },
25185
+ "scriptRunner.stop": {
25186
+ capName: "script-runner",
25187
+ capScope: "device",
25188
+ addonId: null,
25189
+ access: "create"
25190
+ },
25191
+ "serverManagement.applyServerUpdate": {
25192
+ capName: "server-management",
24758
25193
  capScope: "system",
24759
25194
  addonId: null,
24760
- access: "view"
25195
+ access: "create"
24761
25196
  },
24762
- "restreamer.registerDevice": {
24763
- capName: "restreamer",
25197
+ "serverManagement.checkServerUpdate": {
25198
+ capName: "server-management",
24764
25199
  capScope: "system",
24765
25200
  addonId: null,
24766
25201
  access: "create"
24767
25202
  },
24768
- "restreamer.unregisterDevice": {
24769
- capName: "restreamer",
25203
+ "serverManagement.getServerPackageStatus": {
25204
+ capName: "server-management",
24770
25205
  capScope: "system",
24771
25206
  addonId: null,
24772
- access: "delete"
25207
+ access: "view"
24773
25208
  },
24774
- "scriptRunner.run": {
24775
- capName: "script-runner",
24776
- capScope: "device",
25209
+ "serverManagement.restartServer": {
25210
+ capName: "server-management",
25211
+ capScope: "system",
24777
25212
  addonId: null,
24778
25213
  access: "create"
24779
25214
  },
24780
- "scriptRunner.stop": {
24781
- capName: "script-runner",
24782
- capScope: "device",
25215
+ "serverManagement.rollbackServerUpdate": {
25216
+ capName: "server-management",
25217
+ capScope: "system",
24783
25218
  addonId: null,
24784
25219
  access: "create"
24785
25220
  },
@@ -24867,23 +25302,17 @@ Object.freeze({
24867
25302
  addonId: null,
24868
25303
  access: "view"
24869
25304
  },
24870
- "snapshot.invalidateCache": {
25305
+ "snapshot.getSnapshotOverview": {
24871
25306
  capName: "snapshot",
24872
25307
  capScope: "device",
24873
25308
  addonId: null,
24874
- access: "create"
24875
- },
24876
- "snapshotProvider.getSnapshot": {
24877
- capName: "snapshot-provider",
24878
- capScope: "system",
24879
- addonId: null,
24880
25309
  access: "view"
24881
25310
  },
24882
- "snapshotProvider.supportsDevice": {
24883
- capName: "snapshot-provider",
24884
- capScope: "system",
25311
+ "snapshot.invalidateCache": {
25312
+ capName: "snapshot",
25313
+ capScope: "device",
24885
25314
  addonId: null,
24886
- access: "view"
25315
+ access: "create"
24887
25316
  },
24888
25317
  "ssoBridge.signBridgeToken": {
24889
25318
  capName: "sso-bridge",
@@ -25311,30 +25740,6 @@ Object.freeze({
25311
25740
  addonId: null,
25312
25741
  access: "view"
25313
25742
  },
25314
- "streamingEngine.getStreamUrl": {
25315
- capName: "streaming-engine",
25316
- capScope: "system",
25317
- addonId: null,
25318
- access: "view"
25319
- },
25320
- "streamingEngine.listStreams": {
25321
- capName: "streaming-engine",
25322
- capScope: "system",
25323
- addonId: null,
25324
- access: "view"
25325
- },
25326
- "streamingEngine.registerStream": {
25327
- capName: "streaming-engine",
25328
- capScope: "system",
25329
- addonId: null,
25330
- access: "create"
25331
- },
25332
- "streamingEngine.unregisterStream": {
25333
- capName: "streaming-engine",
25334
- capScope: "system",
25335
- addonId: null,
25336
- access: "delete"
25337
- },
25338
25743
  "streamParams.getConfigSchema": {
25339
25744
  capName: "stream-params",
25340
25745
  capScope: "device",
@@ -25581,6 +25986,12 @@ Object.freeze({
25581
25986
  addonId: null,
25582
25987
  access: "view"
25583
25988
  },
25989
+ "userPasskeys.beginDiscoverableAuthentication": {
25990
+ capName: "user-passkeys",
25991
+ capScope: "system",
25992
+ addonId: null,
25993
+ access: "view"
25994
+ },
25584
25995
  "userPasskeys.beginRegistration": {
25585
25996
  capName: "user-passkeys",
25586
25997
  capScope: "system",
@@ -25593,12 +26004,24 @@ Object.freeze({
25593
26004
  addonId: null,
25594
26005
  access: "view"
25595
26006
  },
26007
+ "userPasskeys.finishDiscoverableAuthentication": {
26008
+ capName: "user-passkeys",
26009
+ capScope: "system",
26010
+ addonId: null,
26011
+ access: "view"
26012
+ },
25596
26013
  "userPasskeys.finishRegistration": {
25597
26014
  capName: "user-passkeys",
25598
26015
  capScope: "system",
25599
26016
  addonId: null,
25600
26017
  access: "create"
25601
26018
  },
26019
+ "userPasskeys.getSecondFactorPreference": {
26020
+ capName: "user-passkeys",
26021
+ capScope: "system",
26022
+ addonId: null,
26023
+ access: "view"
26024
+ },
25602
26025
  "userPasskeys.listPasskeys": {
25603
26026
  capName: "user-passkeys",
25604
26027
  capScope: "system",
@@ -25611,6 +26034,12 @@ Object.freeze({
25611
26034
  addonId: null,
25612
26035
  access: "delete"
25613
26036
  },
26037
+ "userPasskeys.setSecondFactorPreference": {
26038
+ capName: "user-passkeys",
26039
+ capScope: "system",
26040
+ addonId: null,
26041
+ access: "create"
26042
+ },
25614
26043
  "vacuumControl.locate": {
25615
26044
  capName: "vacuum-control",
25616
26045
  capScope: "device",
@@ -25683,6 +26112,18 @@ Object.freeze({
25683
26112
  addonId: null,
25684
26113
  access: "view"
25685
26114
  },
26115
+ "viewerUi.getStaticDir": {
26116
+ capName: "viewer-ui",
26117
+ capScope: "system",
26118
+ addonId: null,
26119
+ access: "view"
26120
+ },
26121
+ "viewerUi.getVersion": {
26122
+ capName: "viewer-ui",
26123
+ capScope: "system",
26124
+ addonId: null,
26125
+ access: "view"
26126
+ },
25686
26127
  "waterHeater.setAway": {
25687
26128
  capName: "water-heater",
25688
26129
  capScope: "device",
@@ -25701,54 +26142,6 @@ Object.freeze({
25701
26142
  addonId: null,
25702
26143
  access: "create"
25703
26144
  },
25704
- "webrtc.closeSession": {
25705
- capName: "webrtc",
25706
- capScope: "system",
25707
- addonId: null,
25708
- access: "create"
25709
- },
25710
- "webrtc.createSession": {
25711
- capName: "webrtc",
25712
- capScope: "system",
25713
- addonId: null,
25714
- access: "create"
25715
- },
25716
- "webrtc.handleAnswer": {
25717
- capName: "webrtc",
25718
- capScope: "system",
25719
- addonId: null,
25720
- access: "create"
25721
- },
25722
- "webrtc.handleOffer": {
25723
- capName: "webrtc",
25724
- capScope: "system",
25725
- addonId: null,
25726
- access: "create"
25727
- },
25728
- "webrtc.hasAdaptiveBitrate": {
25729
- capName: "webrtc",
25730
- capScope: "system",
25731
- addonId: null,
25732
- access: "view"
25733
- },
25734
- "webrtc.registerStream": {
25735
- capName: "webrtc",
25736
- capScope: "system",
25737
- addonId: null,
25738
- access: "create"
25739
- },
25740
- "webrtc.supportsStream": {
25741
- capName: "webrtc",
25742
- capScope: "system",
25743
- addonId: null,
25744
- access: "view"
25745
- },
25746
- "webrtc.unregisterStream": {
25747
- capName: "webrtc",
25748
- capScope: "system",
25749
- addonId: null,
25750
- access: "delete"
25751
- },
25752
26145
  "webrtcSession.addIceCandidate": {
25753
26146
  capName: "webrtc-session",
25754
26147
  capScope: "device",