@camstack/addon-provider-tuya 0.1.6 → 0.1.7

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 +672 -287
  2. package/dist/addon.mjs +672 -287
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -4645,7 +4645,7 @@ function preprocess(fn, schema) {
4645
4645
  });
4646
4646
  }
4647
4647
  //#endregion
4648
- //#region ../types/dist/sleep-CZDdRBua.mjs
4648
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4649
4649
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4650
4650
  EventCategory["SystemBoot"] = "system.boot";
4651
4651
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4831,6 +4831,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4831
4831
  */
4832
4832
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4833
4833
  /**
4834
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4835
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4836
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4837
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4838
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4839
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4840
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4841
+ * topology change, so a dropped event self-heals on the next one (plus the
4842
+ * broker's long backstop reconcile query).
4843
+ */
4844
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4845
+ /**
4834
4846
  * Periodic snapshot of per-node pipeline-runner load
4835
4847
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4836
4848
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5354,10 +5366,6 @@ function hydrateField(field, values) {
5354
5366
  };
5355
5367
  }
5356
5368
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5357
- if (field.type === "password") return {
5358
- ...field,
5359
- value: ""
5360
- };
5361
5369
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5362
5370
  return {
5363
5371
  ...field,
@@ -6741,10 +6749,25 @@ function method(input, output, options) {
6741
6749
  timeoutMs: options?.timeoutMs
6742
6750
  };
6743
6751
  }
6752
+ /**
6753
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6754
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6755
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6756
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6757
+ */
6758
+ function systemMethod(input, output, options) {
6759
+ return {
6760
+ ...method(input, output, options),
6761
+ systemOnly: true
6762
+ };
6763
+ }
6744
6764
  /** Shorthand to define an event schema */
6745
6765
  function event(data) {
6746
6766
  return { data };
6747
6767
  }
6768
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6769
+ var VersionOutputSchema$1 = object({ version: string() });
6770
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6748
6771
  var StaticDirOutputSchema = object({ staticDir: string() });
6749
6772
  var VersionOutputSchema = object({ version: string() });
6750
6773
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6926,6 +6949,36 @@ var ModelFormatsSchema = object({
6926
6949
  tflite: ModelFormatEntrySchema.optional(),
6927
6950
  pt: ModelFormatEntrySchema.optional()
6928
6951
  });
6952
+ /**
6953
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6954
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6955
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6956
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6957
+ * resolution/download/persistence; this is a presentation overlay resolved back
6958
+ * to an `id`.
6959
+ */
6960
+ var ModelVariantGroupSchema = object({
6961
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6962
+ family: string(),
6963
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6964
+ tier: string(),
6965
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6966
+ precision: _enum(["fp32", "int8"]).optional(),
6967
+ /**
6968
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6969
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6970
+ * future performance variants plug into.
6971
+ */
6972
+ optimization: _enum(["standard", "fast"]).optional(),
6973
+ /**
6974
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6975
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6976
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6977
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6978
+ * the group so the selector can offer it as a variant axis.
6979
+ */
6980
+ resolution: number().int().positive().optional()
6981
+ });
6929
6982
  var ModelCatalogEntrySchema = object({
6930
6983
  id: string(),
6931
6984
  name: string(),
@@ -6955,7 +7008,43 @@ var ModelCatalogEntrySchema = object({
6955
7008
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6956
7009
  * Downloaded into the same modelsDir alongside the model file.
6957
7010
  */
6958
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7011
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7012
+ /**
7013
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7014
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7015
+ * model list and excluded from the auto format-default pick. Set on the
7016
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7017
+ * the active lineup stays the coherent curated ladder without deleting a
7018
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7019
+ * an explicit legacy id that has a build for the node's format.
7020
+ */
7021
+ legacy: boolean().optional(),
7022
+ /**
7023
+ * Measured quality/latency metadata — populated from the benchmark addon on
7024
+ * the real node classes. Absent = not yet measured (most entries today; the
7025
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7026
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7027
+ */
7028
+ metrics: object({
7029
+ map50: number().optional(),
7030
+ p95LatencyMs: record(string(), number()).optional()
7031
+ }).optional(),
7032
+ /**
7033
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7034
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7035
+ * the retraining addon and any future commercial distribution.
7036
+ */
7037
+ license: string().optional(),
7038
+ /**
7039
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7040
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7041
+ * of a family's sizes and quantizations collapse into one grouped picker
7042
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7043
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7044
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7045
+ * is a presentation overlay resolved back to an `id`.
7046
+ */
7047
+ group: ModelVariantGroupSchema.optional()
6959
7048
  });
6960
7049
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6961
7050
  format: literal("openvino"),
@@ -7016,8 +7105,8 @@ var RecordingModeSchema = _enum([
7016
7105
  "onAudioThreshold"
7017
7106
  ]);
7018
7107
  /**
7019
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7020
- * reads directly (never inferred from `rules`):
7108
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7109
+ * UI reads directly (never inferred from `rules`):
7021
7110
  * - `off` — not recording.
7022
7111
  * - `events` — record only around triggers (motion / audio threshold),
7023
7112
  * with pre/post-buffer.
@@ -9180,26 +9269,13 @@ onBrightnessChanged: { data: object({
9180
9269
  */
9181
9270
  runtimeState: BrightnessStatusSchema
9182
9271
  };
9272
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9183
9273
  var StreamFormatSchema = _enum([
9184
9274
  "webrtc",
9185
9275
  "hls",
9186
9276
  "mjpeg",
9187
9277
  "rtsp"
9188
9278
  ]);
9189
- var StreamInfoSchema = object({
9190
- streamId: string(),
9191
- format: StreamFormatSchema,
9192
- url: string().nullable(),
9193
- active: boolean()
9194
- });
9195
- method(object({
9196
- streamId: string(),
9197
- sourceUrl: string(),
9198
- codec: string().optional()
9199
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9200
- streamId: string(),
9201
- format: StreamFormatSchema
9202
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9203
9279
  var RtspRestreamEntrySchema = object({
9204
9280
  brokerId: string(),
9205
9281
  url: string(),
@@ -10067,37 +10143,7 @@ var consumablesCapability = {
10067
10143
  scope: "device",
10068
10144
  deviceNative: true,
10069
10145
  mode: "singleton",
10070
- deviceTypes: [
10071
- DeviceType.Camera,
10072
- DeviceType.Hub,
10073
- DeviceType.Light,
10074
- DeviceType.Siren,
10075
- DeviceType.Switch,
10076
- DeviceType.Sensor,
10077
- DeviceType.Thermostat,
10078
- DeviceType.Button,
10079
- DeviceType.EventEmitter,
10080
- DeviceType.Update,
10081
- DeviceType.Generic,
10082
- DeviceType.Notifier,
10083
- DeviceType.Script,
10084
- DeviceType.Automation,
10085
- DeviceType.Lock,
10086
- DeviceType.Cover,
10087
- DeviceType.Valve,
10088
- DeviceType.Humidifier,
10089
- DeviceType.WaterHeater,
10090
- DeviceType.Fan,
10091
- DeviceType.MediaPlayer,
10092
- DeviceType.AlarmPanel,
10093
- DeviceType.Control,
10094
- DeviceType.Presence,
10095
- DeviceType.Weather,
10096
- DeviceType.Vacuum,
10097
- DeviceType.LawnMower,
10098
- DeviceType.Container,
10099
- DeviceType.Image
10100
- ],
10146
+ deviceTypes: Object.values(DeviceType),
10101
10147
  deviceConfig: { ui: {
10102
10148
  kind: "widget",
10103
10149
  widgetId: "host/consumables-panel",
@@ -11555,7 +11601,7 @@ var BoundingBoxSchema = object({
11555
11601
  w: number(),
11556
11602
  h: number()
11557
11603
  });
11558
- var SpatialDetectionSchema = object({
11604
+ object({
11559
11605
  class: string(),
11560
11606
  originalClass: string(),
11561
11607
  score: number(),
@@ -11690,7 +11736,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11690
11736
  enabled: boolean(),
11691
11737
  modelId: string(),
11692
11738
  children: array(PipelineDefaultStepSchema).readonly(),
11693
- engine: PipelineEngineChoiceSchema.optional(),
11694
11739
  group: string().optional(),
11695
11740
  settings: record(string(), unknown()).optional()
11696
11741
  }));
@@ -11715,7 +11760,9 @@ var PipelineModelOptionSchema = object({
11715
11760
  formats: record(string(), object({
11716
11761
  downloaded: boolean(),
11717
11762
  sizeMB: number()
11718
- }))
11763
+ })),
11764
+ group: ModelVariantGroupSchema.optional(),
11765
+ legacy: boolean().optional()
11719
11766
  });
11720
11767
  var ConfigFieldBridge = custom();
11721
11768
  var PipelineAddonSchemaSchema = object({
@@ -11729,6 +11776,7 @@ var PipelineAddonSchemaSchema = object({
11729
11776
  defaultModelId: string(),
11730
11777
  defaultModelIdByFormat: record(string(), string()).optional(),
11731
11778
  enabledByDefault: boolean().optional(),
11779
+ backfillIntoExistingOverrides: boolean().optional(),
11732
11780
  defaultConfidence: number(),
11733
11781
  group: string().optional(),
11734
11782
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11745,11 +11793,6 @@ var PipelineSchemaSchema = object({
11745
11793
  selectedEngine: PipelineEngineChoiceSchema,
11746
11794
  slots: array(PipelineSlotSchemaSchema).readonly()
11747
11795
  });
11748
- var DetectorOutputSchema = object({
11749
- detections: array(SpatialDetectionSchema).readonly(),
11750
- inferenceMs: number(),
11751
- modelId: string()
11752
- });
11753
11796
  var EngineProvisioningSchema = object({
11754
11797
  runtimeId: _enum([
11755
11798
  "onnx",
@@ -11766,15 +11809,42 @@ var EngineProvisioningSchema = object({
11766
11809
  ]),
11767
11810
  progress: number().optional(),
11768
11811
  error: string().optional(),
11769
- nextRetryAt: number().optional()
11812
+ nextRetryAt: number().optional(),
11813
+ /**
11814
+ * Gate A (config-correctness gate at engine change): human-readable
11815
+ * config issues surfaced EAGERLY when the node's engine changes — model
11816
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11817
+ * has a <format> build"). Additive/optional: informational only, never
11818
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11819
+ * Absent/empty when the node-default tree resolves cleanly.
11820
+ */
11821
+ configIssues: array(string()).optional()
11770
11822
  });
11771
11823
  var PipelineStepInputSchema = lazy(() => object({
11772
11824
  addonId: string(),
11773
- modelId: string(),
11825
+ modelId: string().optional(),
11774
11826
  enabled: boolean().default(true),
11775
11827
  children: array(PipelineStepInputSchema).optional(),
11776
11828
  settings: record(string(), unknown()).optional()
11777
11829
  }));
11830
+ var ModelSubstitutionSchema = object({
11831
+ addonId: string(),
11832
+ chosen: string(),
11833
+ running: string(),
11834
+ format: string()
11835
+ });
11836
+ var PipelineValidationIssueSchema = object({
11837
+ addonId: string(),
11838
+ kind: _enum(["unknown-addon", "no-format-build"]),
11839
+ detail: string()
11840
+ });
11841
+ var PipelineValidationResultSchema = object({
11842
+ ok: boolean(),
11843
+ issues: array(PipelineValidationIssueSchema).readonly(),
11844
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11845
+ /** The node's `currentEngine.format` this validation ran against. */
11846
+ format: string()
11847
+ });
11778
11848
  var ReferenceImageEntrySchema = object({
11779
11849
  filename: string(),
11780
11850
  stepIds: array(string()).readonly().optional()
@@ -11845,7 +11915,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11845
11915
  })) }), object({ success: literal(true) }), {
11846
11916
  kind: "mutation",
11847
11917
  auth: "admin"
11848
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11918
+ }), method(object({ nodeId: string() }), object({
11919
+ success: literal(true),
11920
+ clearedDevices: number()
11921
+ }), {
11922
+ kind: "mutation",
11923
+ auth: "admin"
11924
+ }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({ steps: array(PipelineStepInputSchema) }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11849
11925
  name: string(),
11850
11926
  steps: array(PipelineTemplateStepSchema).readonly(),
11851
11927
  engine: PipelineEngineChoiceSchema
@@ -11862,10 +11938,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11862
11938
  modelId: string(),
11863
11939
  format: ModelFormatSchema$1
11864
11940
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11865
- addonId: string(),
11866
- frame: FrameInputSchema,
11867
- config: record(string(), unknown()).optional()
11868
- }), DetectorOutputSchema), method(object({
11869
11941
  engine: PipelineEngineChoiceSchema.optional(),
11870
11942
  steps: array(PipelineStepInputSchema).min(1),
11871
11943
  frame: FrameInputSchema.optional(),
@@ -12044,6 +12116,25 @@ var zonesCapability = {
12044
12116
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12045
12117
  };
12046
12118
  /**
12119
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12120
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12121
+ * so the caller supplies only the detection-res bbox divided by the detection
12122
+ * dims — no native resolution to plumb.
12123
+ */
12124
+ var NativeCropBboxSchema = object({
12125
+ x: number(),
12126
+ y: number(),
12127
+ w: number(),
12128
+ h: number()
12129
+ });
12130
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12131
+ var NativeCropResultSchema = object({
12132
+ /** Packed rgb (24-bit) pixels of the crop. */
12133
+ bytes: _instanceof(Uint8Array),
12134
+ width: number().int().positive(),
12135
+ height: number().int().positive()
12136
+ });
12137
+ /**
12047
12138
  * Per-camera tunable ranges + defaults. Single source of truth used
12048
12139
  * by both the Zod data schema (validation + default fallback) and
12049
12140
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12138,6 +12229,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12138
12229
  kind: literal("remote-restream"),
12139
12230
  /** The camera's source-owner node (slice 1: always the hub). */
12140
12231
  ownerNodeId: string(),
12232
+ /**
12233
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12234
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12235
+ * dials THIS host for the owner's restream, in preference to the
12236
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12237
+ */
12238
+ ownerReachableHost: string().optional(),
12141
12239
  /** Operator override for the owner host the runner dials. */
12142
12240
  hubHostnameOverride: string().optional()
12143
12241
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12146,13 +12244,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12146
12244
  * specific runner instance via `attachCamera`. Carries everything the
12147
12245
  * runner needs to subscribe to the local broker and execute inference.
12148
12246
  *
12149
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12150
- * optional `audio`) travels with the attach payload. The runner keeps it
12151
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12152
- * restart the orchestrator re-sends the latest snapshot.
12153
- *
12154
- * `engine`/`steps`/`audio` are optional during the additive migration
12155
- * window; once orchestrator + UI are migrated they become required.
12247
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12248
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12249
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12250
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12251
+ * node-local, resolved by the executing runner at dispatch time.
12156
12252
  */
12157
12253
  var RunnerCameraConfigSchema = object({
12158
12254
  deviceId: number(),
@@ -12203,14 +12299,11 @@ var RunnerCameraConfigSchema = object({
12203
12299
  */
12204
12300
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12205
12301
  pipelineEnabled: boolean().default(true),
12206
- /** Engine choice for video steps (runtime+backend+format). */
12207
- engine: PipelineEngineChoiceSchema.optional(),
12208
12302
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12209
12303
  steps: array(PipelineStepInputSchema).readonly().optional(),
12210
12304
  /** Audio classification branch. `enabled:false` disables, null skips. */
12211
12305
  audio: object({
12212
- engine: PipelineEngineChoiceSchema,
12213
- modelId: string(),
12306
+ modelId: string().optional(),
12214
12307
  enabled: boolean()
12215
12308
  }).nullable().optional(),
12216
12309
  /**
@@ -12297,7 +12390,11 @@ var RunnerLocalMetricsSchema = object({
12297
12390
  avgInferenceTimeMs: number(),
12298
12391
  queueDepth: number()
12299
12392
  });
12300
- method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly());
12393
+ 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({
12394
+ handle: FrameHandleSchema,
12395
+ bbox: NativeCropBboxSchema,
12396
+ maxWidth: number().int().positive().optional()
12397
+ }), NativeCropResultSchema.nullable());
12301
12398
  /**
12302
12399
  * Hardware / firmware motion sensor cap — binary detected state plus
12303
12400
  * a timestamp of the last observation. Distinct from
@@ -15228,7 +15325,9 @@ var AddonPageDeclarationSchema$1 = object({
15228
15325
  icon: string(),
15229
15326
  path: string(),
15230
15327
  remoteName: string(),
15231
- bundle: string()
15328
+ bundle: string(),
15329
+ section: string().optional(),
15330
+ sectionLabel: string().optional()
15232
15331
  });
15233
15332
  var AddonPageInfoSchema = object({
15234
15333
  addonId: string(),
@@ -15268,7 +15367,18 @@ var AddonPageDeclarationSchema = object({
15268
15367
  * the static-file route can compute an mtime-based cache-buster URL
15269
15368
  * without a separate filesystem stat.
15270
15369
  */
15271
- bundle: string()
15370
+ bundle: string(),
15371
+ /**
15372
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15373
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15374
+ * Any OTHER string creates (or joins) a custom section rendered after
15375
+ * the built-in groups; its label comes from `sectionLabel` (first
15376
+ * declaration wins), falling back to the id. Absent → the legacy
15377
+ * "Addon Pages" group.
15378
+ */
15379
+ section: string().optional(),
15380
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15381
+ sectionLabel: string().optional()
15272
15382
  });
15273
15383
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15274
15384
  var AddonHttpRouteSchema = object({
@@ -15484,6 +15594,17 @@ var WidgetMetadataSchema = object({
15484
15594
  deviceContext: boolean().default(false),
15485
15595
  integrationContext: boolean().default(false)
15486
15596
  }),
15597
+ /**
15598
+ * Loadable BEFORE authentication. The normal widget registry listing
15599
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15600
+ * (the login page) cannot discover a widget through it. A widget that
15601
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15602
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15603
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15604
+ * than the authenticated registry, and its bundle is served by the
15605
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15606
+ */
15607
+ preAuth: boolean().optional().default(false),
15487
15608
  /** Dashboard placement HINTS (operator can override per instance). */
15488
15609
  defaultSize: WidgetSizeEnum.default("md"),
15489
15610
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15785,6 +15906,66 @@ method(object({
15785
15906
  password: string()
15786
15907
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15787
15908
  /**
15909
+ * `login-method` — collection cap through which auth addons contribute
15910
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15911
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15912
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15913
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15914
+ * procedure aggregates them for the unauthenticated login page.
15915
+ *
15916
+ * A contribution is a discriminated union on `kind`:
15917
+ *
15918
+ * - `redirect` — a declarative button. The login page renders a generic
15919
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15920
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15921
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15922
+ * login page needs NO change.
15923
+ *
15924
+ * - `widget` — a Module-Federation widget the login page mounts (via
15925
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15926
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15927
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15928
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15929
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15930
+ *
15931
+ * Every contribution carries a `stage`:
15932
+ * - `primary` — shown on the first credentials screen (OIDC /
15933
+ * magic-link buttons; a future usernameless passkey).
15934
+ * - `second-factor` — shown AFTER the password leg, gated on the
15935
+ * returned `factors` (passkey-as-2FA today).
15936
+ *
15937
+ * `mount: skip` — the cap is read server-side by the core auth router
15938
+ * (`registry.getCollection('login-method')`), never mounted as its own
15939
+ * tRPC router.
15940
+ */
15941
+ /** When a login method renders in the two-phase login flow. */
15942
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15943
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15944
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15945
+ kind: literal("redirect"),
15946
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15947
+ id: string(),
15948
+ /** Operator-facing button label. */
15949
+ label: string(),
15950
+ /** lucide-react icon name. */
15951
+ icon: string().optional(),
15952
+ /** Addon-owned HTTP route the button navigates to (GET). */
15953
+ startUrl: string(),
15954
+ stage: LoginStageEnum
15955
+ }), object({
15956
+ kind: literal("widget"),
15957
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15958
+ id: string(),
15959
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15960
+ addonId: string(),
15961
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15962
+ bundle: string(),
15963
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15964
+ remote: WidgetRemoteSchema,
15965
+ stage: LoginStageEnum
15966
+ })]);
15967
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15968
+ /**
15788
15969
  * Orchestrator-side destination metadata. The orchestrator computes
15789
15970
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15790
15971
  * (admin UI, restore flow) see one canonical key.
@@ -17905,7 +18086,17 @@ var TrackSchema = object({
17905
18086
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17906
18087
  totalDistance: number(),
17907
18088
  state: TrackStateSchema,
17908
- active: boolean()
18089
+ active: boolean(),
18090
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18091
+ * track expiry, recomputed on late label). Absent on legacy rows written
18092
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18093
+ importance: number().optional(),
18094
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18095
+ * "best" frame). Absent when the track produced no object events. */
18096
+ bestEventId: string().optional(),
18097
+ /** Tag of the importance sub-signal that dominated the score
18098
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18099
+ importanceReason: string().optional()
17909
18100
  });
17910
18101
  var BaseEventFields = {
17911
18102
  id: string(),
@@ -17970,8 +18161,18 @@ var ObjectEventSchema = object({
17970
18161
  frameHeight: number().optional(),
17971
18162
  /** MediaStore key for the crop attached to this event (if any). */
17972
18163
  mediaKey: string().optional(),
18164
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18165
+ * best-detection full frame). Resolve via the event-media data-plane
18166
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18167
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18168
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18169
+ keyFrameMediaKey: string().optional(),
17973
18170
  /** Populated by B5 (recording playback URL for this event). */
17974
- mediaUrl: string().optional()
18171
+ mediaUrl: string().optional(),
18172
+ /** The parent track's key-event importance [0,1], propagated to every object
18173
+ * event of the track (so an event row can be sorted by importance without a
18174
+ * track join). Absent on legacy rows / before the track was scored. */
18175
+ importance: number().optional()
17975
18176
  });
17976
18177
  var AudioEventSchema = object({
17977
18178
  ...BaseEventFields,
@@ -17995,7 +18196,8 @@ var MediaFileKindEnum = _enum([
17995
18196
  "fullFrame",
17996
18197
  "fullFrameBoxed",
17997
18198
  "faceCrop",
17998
- "plateCrop"
18199
+ "plateCrop",
18200
+ "keyFrame"
17999
18201
  ]);
18000
18202
  var MediaFileSchema = object({
18001
18203
  key: string(),
@@ -18016,6 +18218,32 @@ var DeviceEventQueryInput = object({
18016
18218
  projection: _enum(["full", "slim"]).optional()
18017
18219
  });
18018
18220
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18221
+ var KeyEventQueryInput = object({
18222
+ deviceId: number(),
18223
+ /** Window lower bound (track firstSeen ≥ since). */
18224
+ since: number(),
18225
+ /** Window upper bound (track firstSeen ≤ until). */
18226
+ until: number(),
18227
+ limit: number().int().min(1).max(200).default(50),
18228
+ /** Drop tracks scoring below this importance. */
18229
+ minImportance: number().min(0).max(1).optional(),
18230
+ /** Restrict to a single class (e.g. 'person'). */
18231
+ classFilter: string().optional()
18232
+ });
18233
+ var KeyEventSchema = object({
18234
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18235
+ id: string(),
18236
+ trackId: string(),
18237
+ /** Track start time (firstSeen). */
18238
+ timestamp: number(),
18239
+ className: string(),
18240
+ label: string().optional(),
18241
+ importance: number(),
18242
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18243
+ bestEventId: string(),
18244
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18245
+ windowMs: number().optional()
18246
+ });
18019
18247
  var TrackedDetectionSchema = object({
18020
18248
  trackId: string(),
18021
18249
  className: string(),
@@ -18045,7 +18273,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18045
18273
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18046
18274
  kind: "mutation",
18047
18275
  auth: "admin"
18048
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18276
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18049
18277
  deviceId: number(),
18050
18278
  since: number(),
18051
18279
  until: number(),
@@ -18090,11 +18318,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18090
18318
  timestamp: number()
18091
18319
  });
18092
18320
  var CameraPipelineConfigSchema = object({
18093
- engine: PipelineEngineChoiceSchema,
18321
+ engine: PipelineEngineChoiceSchema.optional(),
18094
18322
  steps: array(PipelineStepInputSchema).readonly(),
18095
18323
  audio: object({
18096
- engine: PipelineEngineChoiceSchema,
18097
- modelId: string(),
18324
+ engine: PipelineEngineChoiceSchema.optional(),
18325
+ modelId: string().optional(),
18098
18326
  enabled: boolean(),
18099
18327
  settings: record(string(), unknown()).readonly().optional()
18100
18328
  }).nullable().optional()
@@ -18109,7 +18337,7 @@ var PipelineTemplateSchema = object({
18109
18337
  });
18110
18338
  var AgentAddonConfigSchema = object({
18111
18339
  enabled: boolean(),
18112
- modelId: string(),
18340
+ modelId: string().optional(),
18113
18341
  settings: record(string(), unknown()).readonly()
18114
18342
  });
18115
18343
  var AgentPipelineSettingsSchema = object({
@@ -18119,12 +18347,25 @@ var AgentPipelineSettingsSchema = object({
18119
18347
  detectWeight: number().positive().optional(),
18120
18348
  /** Node is eligible to run the detection pipeline (decode + inference). */
18121
18349
  detect: boolean().optional(),
18122
- /** Node is eligible to host decoder sessions. */
18350
+ /**
18351
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18352
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18353
+ * the schema ONLY so persisted stores written before the removal still
18354
+ * parse — no code reads it and no write path emits it.
18355
+ */
18123
18356
  decode: boolean().optional(),
18124
18357
  /** Node is eligible to run audio-analyzer sessions. */
18125
18358
  audio: boolean().optional(),
18126
18359
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18127
- ingest: boolean().optional()
18360
+ ingest: boolean().optional(),
18361
+ /**
18362
+ * Operator override for the LAN host a cross-node decoder dials to reach
18363
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18364
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18365
+ * it already uses to reach the hub). Set this only when the auto-detected
18366
+ * address is wrong (multi-homed host, NAT, custom interface).
18367
+ */
18368
+ reachableHost: string().optional()
18128
18369
  });
18129
18370
  var CameraPipelineForAgentSchema = object({
18130
18371
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18172,25 +18413,6 @@ var PipelineAssignmentSchema = object({
18172
18413
  assignedAt: number()
18173
18414
  });
18174
18415
  /**
18175
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18176
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18177
- * → co-located with pipeline → capacity).
18178
- */
18179
- var DecoderAssignmentSchema = object({
18180
- deviceId: number(),
18181
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18182
- decoderNodeId: string(),
18183
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18184
- pinned: boolean(),
18185
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18186
- reason: _enum([
18187
- "manual",
18188
- "co-located",
18189
- "capacity",
18190
- "hardware-affinity"
18191
- ])
18192
- });
18193
- /**
18194
18416
  * Per-agent load summary surfaced to the load balancer + dashboards.
18195
18417
  * Aggregated from each runner's `getLocalLoad` cap call.
18196
18418
  */
@@ -18230,6 +18452,15 @@ var GlobalMetricsSchema = object({
18230
18452
  * capability providers.
18231
18453
  */
18232
18454
  var CapabilityBindingsSchema = record(string(), string());
18455
+ /**
18456
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18457
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18458
+ */
18459
+ var IngestOwnerSchema = object({
18460
+ ownerNodeId: string(),
18461
+ reachableHost: string().optional(),
18462
+ configIssue: string().optional()
18463
+ });
18233
18464
  /** Source block — always present; derives from the stream catalog. */
18234
18465
  var CameraSourceStatusSchema = object({ streams: array(object({
18235
18466
  camStreamId: string(),
@@ -18244,6 +18475,14 @@ var CameraAssignmentStatusSchema = object({
18244
18475
  detectionNodeId: string().nullable(),
18245
18476
  decoderNodeId: string().nullable(),
18246
18477
  audioNodeId: string().nullable(),
18478
+ /**
18479
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18480
+ * hosts the broker/restream) — the cluster ingest owner today
18481
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18482
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18483
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18484
+ */
18485
+ sourceNodeId: string().nullable(),
18247
18486
  pinned: object({
18248
18487
  detection: boolean(),
18249
18488
  decoder: boolean(),
@@ -18376,16 +18615,7 @@ method(object({
18376
18615
  }), object({ success: literal(true) }), {
18377
18616
  kind: "mutation",
18378
18617
  auth: "admin"
18379
- }), method(object({
18380
- deviceId: number(),
18381
- nodeId: string()
18382
- }), _void(), {
18383
- kind: "mutation",
18384
- auth: "admin"
18385
- }), method(object({ deviceId: number() }), _void(), {
18386
- kind: "mutation",
18387
- auth: "admin"
18388
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18618
+ }), method(_void(), IngestOwnerSchema), method(object({
18389
18619
  deviceId: number(),
18390
18620
  nodeId: string()
18391
18621
  }), object({ success: literal(true) }), {
@@ -18406,10 +18636,7 @@ method(object({
18406
18636
  nodeId: string(),
18407
18637
  pinned: boolean(),
18408
18638
  assignedAt: number()
18409
- }))), method(object({
18410
- deviceId: number(),
18411
- pipelineNodeId: string().optional()
18412
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18639
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18413
18640
  nodeId: string(),
18414
18641
  settings: AgentPipelineSettingsSchema
18415
18642
  })).readonly()), method(object({
@@ -18439,12 +18666,26 @@ method(object({
18439
18666
  }), method(object({
18440
18667
  agentNodeId: string(),
18441
18668
  detect: boolean().nullable().optional(),
18442
- decode: boolean().nullable().optional(),
18443
18669
  audio: boolean().nullable().optional(),
18444
18670
  ingest: boolean().nullable().optional()
18445
18671
  }), object({ success: literal(true) }), {
18446
18672
  kind: "mutation",
18447
18673
  auth: "admin"
18674
+ }), method(object({
18675
+ agentNodeId: string(),
18676
+ reachableHost: string().nullable()
18677
+ }), object({ success: literal(true) }), {
18678
+ kind: "mutation",
18679
+ auth: "admin"
18680
+ }), method(object({ agentNodeId: string() }), object({
18681
+ success: literal(true),
18682
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18683
+ effectiveModelId: string().nullable(),
18684
+ /** Number of cameras whose node-scoped overrides were cleared. */
18685
+ clearedCameraOverrides: number()
18686
+ }), {
18687
+ kind: "mutation",
18688
+ auth: "admin"
18448
18689
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18449
18690
  deviceId: number(),
18450
18691
  addonId: string(),
@@ -18489,22 +18730,131 @@ method(object({
18489
18730
  kind: "mutation",
18490
18731
  auth: "admin"
18491
18732
  });
18492
- var RegisteredStreamSchema = object({
18493
- streamId: string(),
18494
- label: string().optional(),
18495
- codec: string(),
18496
- type: _enum(["video", "audio"]),
18497
- sourceUrl: string()
18733
+ /**
18734
+ * server-management — per-NODE singleton capability for a node's ROOT
18735
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18736
+ * agents).
18737
+ *
18738
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18739
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18740
+ * version describes the node. Updates install into
18741
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18742
+ * starter (probation boot + auto-rollback to N-1).
18743
+ *
18744
+ * Providers:
18745
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18746
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18747
+ * unpinned calls.
18748
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18749
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18750
+ * `$hub.registerNode` manifest.
18751
+ *
18752
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18753
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18754
+ * SDK) routes the call to that node's provider via the standard remote
18755
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18756
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18757
+ *
18758
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18759
+ */
18760
+ /**
18761
+ * Where the running hub's code was loaded from:
18762
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18763
+ * plain resolution and runtime updates are refused.
18764
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18765
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18766
+ */
18767
+ var ServerBootModeSchema = _enum([
18768
+ "workspace",
18769
+ "baked",
18770
+ "data-root"
18771
+ ]);
18772
+ /**
18773
+ * Update lifecycle state:
18774
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18775
+ * - `pending-restart` — a version is staged and the node has NOT yet
18776
+ * restarted onto it (still running the OLD version).
18777
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18778
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18779
+ * Apply/rollback are refused in this state and the node must NOT be
18780
+ * manually restarted, or the probation boot auto-rolls-back.
18781
+ */
18782
+ var ServerUpdateStateSchema = _enum([
18783
+ "idle",
18784
+ "checking",
18785
+ "staging",
18786
+ "pending-restart",
18787
+ "awaiting-confirmation"
18788
+ ]);
18789
+ var ServerRollbackInfoSchema = object({
18790
+ /** The version that failed (or was manually rolled back). */
18791
+ fromVersion: string(),
18792
+ /** The version rolled back to; null = the baked seed. */
18793
+ toVersion: string().nullable(),
18794
+ atMs: number(),
18795
+ reason: string()
18498
18796
  });
18499
- var ExposedResourceSchema = object({
18500
- streamId: string(),
18501
- format: string(),
18502
- value: string()
18797
+ var ServerPackageStatusSchema = object({
18798
+ /** Root package name (`@camstack/server` on the hub). */
18799
+ packageName: string(),
18800
+ /** Version of the code the running process ACTUALLY loaded. */
18801
+ runningVersion: string().nullable(),
18802
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18803
+ nodeRuntimeVersion: string().nullable(),
18804
+ /** Active data-dir root version; null when booted from seed/workspace. */
18805
+ activeVersion: string().nullable(),
18806
+ /** N-1 version kept for rollback; null when no previous version exists. */
18807
+ previousVersion: string().nullable(),
18808
+ /** Version of the immutable baked seed closure (image fallback). */
18809
+ seedVersion: string().nullable(),
18810
+ /** Latest registry version from the most recent check (null = never checked). */
18811
+ latestVersion: string().nullable(),
18812
+ updateAvailable: boolean(),
18813
+ bootMode: ServerBootModeSchema,
18814
+ updateState: ServerUpdateStateSchema,
18815
+ /** Version staged + awaiting its probation boot, when one is pending. */
18816
+ pendingVersion: string().nullable(),
18817
+ /** Set when the last freshly-activated version failed its boot health-check. */
18818
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18819
+ /**
18820
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18821
+ * hub is running from the baked seed (or workspace) while installed data-dir
18822
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18823
+ */
18824
+ stateFileCorrupt: boolean(),
18825
+ lastCheckedAtMs: number().nullable()
18826
+ });
18827
+ var ServerUpdateCheckResultSchema = object({
18828
+ packageName: string(),
18829
+ runningVersion: string().nullable(),
18830
+ latestVersion: string().nullable(),
18831
+ updateAvailable: boolean(),
18832
+ checkedAtMs: number(),
18833
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18834
+ error: string().nullable()
18835
+ });
18836
+ var ServerUpdateActionResultSchema = object({
18837
+ accepted: boolean(),
18838
+ targetVersion: string().nullable(),
18839
+ /** True when a graceful restart was scheduled to apply the change. */
18840
+ restarting: boolean(),
18841
+ message: string()
18842
+ });
18843
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18844
+ kind: "mutation",
18845
+ auth: "admin"
18846
+ }), method(object({
18847
+ /** Explicit target version; omitted = latest from the registry. */
18848
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18849
+ kind: "mutation",
18850
+ auth: "admin"
18851
+ }), method(_void(), ServerUpdateActionResultSchema, {
18852
+ kind: "mutation",
18853
+ auth: "admin"
18854
+ }), method(_void(), ServerUpdateActionResultSchema, {
18855
+ kind: "mutation",
18856
+ auth: "admin"
18503
18857
  });
18504
- method(object({
18505
- deviceId: number(),
18506
- streams: array(RegisteredStreamSchema).readonly()
18507
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18508
18858
  /**
18509
18859
  * Query filter for settings-store collections.
18510
18860
  */
@@ -18657,9 +19007,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18657
19007
  /**
18658
19008
  * A single device snapshot returned as base64 JPEG/PNG.
18659
19009
  *
18660
- * Shared with the `snapshot-provider` collection cap the orchestrator
18661
- * receives the same shape from each native provider and from the
18662
- * broker-based fallback.
19010
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19011
+ * the device-native provider (onboard capture) or from the stream-broker
19012
+ * prebuffer fallback.
18663
19013
  */
18664
19014
  var SnapshotImageSchema = object({
18665
19015
  base64: string(),
@@ -18690,11 +19040,12 @@ DeviceType.Camera, method(object({
18690
19040
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18691
19041
  kind: "mutation",
18692
19042
  auth: "admin"
18693
- });
18694
- method(object({ deviceId: number() }), boolean()), method(object({
19043
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18695
19044
  deviceId: number(),
18696
- streamId: string().optional()
18697
- }), SnapshotImageSchema.nullable());
19045
+ lastCapturedAt: number().nullable(),
19046
+ cacheAgeMs: number().nullable(),
19047
+ etag: string().nullable()
19048
+ })));
18698
19049
  /**
18699
19050
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18700
19051
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18945,10 +19296,32 @@ method(_void(), array(TurnServerSchema).readonly());
18945
19296
  * b. `finishAuthentication({userId, response})` → server verifies
18946
19297
  * the assertion, bumps the credential counter, returns ok.
18947
19298
  *
19299
+ * 2b. Usernameless (discoverable-credential) authentication — the
19300
+ * passkey IS the primary factor, no password leg:
19301
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19302
+ * EMPTY `allowCredentials` (the browser offers every resident
19303
+ * passkey it holds for this RP) + `userVerification: 'required'`
19304
+ * (the passkey replaces both factors, so UV is mandatory).
19305
+ * The challenge is stored server-side, NOT bound to any user.
19306
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19307
+ * resolves the credential by the response's credential id,
19308
+ * verifies the assertion against the stored challenge + that
19309
+ * credential's public key/counter, and returns the OWNING
19310
+ * `userId` — the caller (core auth router) mints the session.
19311
+ *
18948
19312
  * 3. Management:
18949
19313
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18950
19314
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18951
19315
  *
19316
+ * 4. Second-factor preference (opt-in, default OFF):
19317
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19318
+ * demanded as a second factor after a password login ONLY when the
19319
+ * user explicitly opts in via `setSecondFactorPreference`.
19320
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19321
+ * row ⇒ `enabled: false`).
19322
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19323
+ * the providing addon beside its credentials.
19324
+ *
18952
19325
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18953
19326
  * the admin-ui composes the begin/finish round-trip and never exposes
18954
19327
  * the cap to non-admins.
@@ -18991,6 +19364,17 @@ method(object({
18991
19364
  }), object({ verified: boolean() }), {
18992
19365
  kind: "mutation",
18993
19366
  access: "view"
19367
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19368
+ kind: "mutation",
19369
+ access: "view"
19370
+ }), method(object({
19371
+ /** AuthenticationResponseJSON from the browser. */
19372
+ response: record(string(), unknown()) }), object({
19373
+ verified: boolean(),
19374
+ userId: string().nullable()
19375
+ }), {
19376
+ kind: "mutation",
19377
+ access: "view"
18994
19378
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
18995
19379
  userId: string(),
18996
19380
  credentialId: string()
@@ -18998,6 +19382,13 @@ method(object({
18998
19382
  kind: "mutation",
18999
19383
  auth: "admin",
19000
19384
  access: "delete"
19385
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19386
+ userId: string(),
19387
+ enabled: boolean()
19388
+ }), object({ success: literal(true) }), {
19389
+ kind: "mutation",
19390
+ auth: "admin",
19391
+ access: "create"
19001
19392
  });
19002
19393
  /**
19003
19394
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19055,9 +19446,10 @@ method(object({
19055
19446
  auth: "admin"
19056
19447
  });
19057
19448
  /**
19058
- * Optional client-side hints sent at session creation to help the
19059
- * provider pick the best native source. All fields are optional —
19060
- * a viewer that knows nothing still gets a sane default.
19449
+ * Optional client-side hints sent at session creation to help the provider
19450
+ * pick the best native source. All fields optional — a viewer that knows
19451
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19452
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19061
19453
  */
19062
19454
  var webrtcClientHintsSchema = object({
19063
19455
  viewportWidth: number().int().positive().optional(),
@@ -19068,22 +19460,6 @@ var webrtcClientHintsSchema = object({
19068
19460
  /** Hard tier override; takes precedence over scoring when registered. */
19069
19461
  prefersTier: string().optional()
19070
19462
  }).partial();
19071
- method(object({
19072
- streamId: string(),
19073
- sdpOffer: string()
19074
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19075
- streamId: string(),
19076
- codec: string()
19077
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19078
- streamId: string(),
19079
- hints: webrtcClientHintsSchema.optional()
19080
- }), object({
19081
- sessionId: string(),
19082
- sdpOffer: string()
19083
- }), { kind: "mutation" }), method(object({
19084
- sessionId: string(),
19085
- sdpAnswer: string()
19086
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19087
19463
  /**
19088
19464
  * Discriminated target for a WebRTC session. The client sends this
19089
19465
  * structured object instead of building / parsing brokerId strings;
@@ -19814,7 +20190,17 @@ var FaceInfoSchema = object({
19814
20190
  recognizedIdentityId: string().optional(),
19815
20191
  identityName: string().optional(),
19816
20192
  assigned: boolean(),
19817
- base64: string().optional()
20193
+ base64: string().optional(),
20194
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20195
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20196
+ * legacy rows written before design B. */
20197
+ faceBbox: BoundingBoxSchema.optional(),
20198
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20199
+ * Fetch the native JPEG via the event-media data-plane
20200
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20201
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20202
+ * back to the inline `base64` face crop. */
20203
+ keyFrameMediaKey: string().optional()
19818
20204
  });
19819
20205
  var FaceFilterEnum = _enum([
19820
20206
  "unassigned",
@@ -20511,6 +20897,16 @@ var TopologyCategorySchema = object({
20511
20897
  healthy: number(),
20512
20898
  addons: array(TopologyCategoryAddonSchema).readonly()
20513
20899
  });
20900
+ /**
20901
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20902
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20903
+ * version visibility for the Server management surface. Nullable: offline
20904
+ * rows and pre-phase-2 nodes report none.
20905
+ */
20906
+ var TopologyRootPackageSchema = object({
20907
+ name: string(),
20908
+ version: string()
20909
+ });
20514
20910
  var TopologyNodeSchema = object({
20515
20911
  id: string(),
20516
20912
  name: string(),
@@ -20534,7 +20930,8 @@ var TopologyNodeSchema = object({
20534
20930
  status: string()
20535
20931
  })).readonly(),
20536
20932
  processes: array(TopologyProcessSchema).readonly(),
20537
- categories: array(TopologyCategorySchema).readonly()
20933
+ categories: array(TopologyCategorySchema).readonly(),
20934
+ rootPackage: TopologyRootPackageSchema.nullable()
20538
20935
  });
20539
20936
  var CapUsageEdgeSchema = object({
20540
20937
  callerAddonId: string(),
@@ -23334,6 +23731,12 @@ Object.freeze({
23334
23731
  addonId: null,
23335
23732
  access: "create"
23336
23733
  },
23734
+ "loginMethod.getLoginMethods": {
23735
+ capName: "login-method",
23736
+ capScope: "system",
23737
+ addonId: null,
23738
+ access: "view"
23739
+ },
23337
23740
  "mediaPlayer.next": {
23338
23741
  capName: "media-player",
23339
23742
  capScope: "device",
@@ -23916,6 +24319,12 @@ Object.freeze({
23916
24319
  addonId: null,
23917
24320
  access: "view"
23918
24321
  },
24322
+ "pipelineAnalytics.getKeyEvents": {
24323
+ capName: "pipeline-analytics",
24324
+ capScope: "device",
24325
+ addonId: null,
24326
+ access: "view"
24327
+ },
23919
24328
  "pipelineAnalytics.getMotionEvents": {
23920
24329
  capName: "pipeline-analytics",
23921
24330
  capScope: "device",
@@ -23964,23 +24373,23 @@ Object.freeze({
23964
24373
  addonId: null,
23965
24374
  access: "create"
23966
24375
  },
23967
- "pipelineExecutor.deleteModel": {
24376
+ "pipelineExecutor.clearDeviceOverrides": {
23968
24377
  capName: "pipeline-executor",
23969
24378
  capScope: "system",
23970
24379
  addonId: null,
23971
24380
  access: "delete"
23972
24381
  },
23973
- "pipelineExecutor.deleteTemplate": {
24382
+ "pipelineExecutor.deleteModel": {
23974
24383
  capName: "pipeline-executor",
23975
24384
  capScope: "system",
23976
24385
  addonId: null,
23977
24386
  access: "delete"
23978
24387
  },
23979
- "pipelineExecutor.detect": {
24388
+ "pipelineExecutor.deleteTemplate": {
23980
24389
  capName: "pipeline-executor",
23981
24390
  capScope: "system",
23982
24391
  addonId: null,
23983
- access: "view"
24392
+ access: "delete"
23984
24393
  },
23985
24394
  "pipelineExecutor.downloadModel": {
23986
24395
  capName: "pipeline-executor",
@@ -24174,13 +24583,13 @@ Object.freeze({
24174
24583
  addonId: null,
24175
24584
  access: "create"
24176
24585
  },
24177
- "pipelineOrchestrator.assignAudio": {
24178
- capName: "pipeline-orchestrator",
24586
+ "pipelineExecutor.validatePipeline": {
24587
+ capName: "pipeline-executor",
24179
24588
  capScope: "system",
24180
24589
  addonId: null,
24181
- access: "create"
24590
+ access: "view"
24182
24591
  },
24183
- "pipelineOrchestrator.assignDecoder": {
24592
+ "pipelineOrchestrator.assignAudio": {
24184
24593
  capName: "pipeline-orchestrator",
24185
24594
  capScope: "system",
24186
24595
  addonId: null,
@@ -24264,19 +24673,13 @@ Object.freeze({
24264
24673
  addonId: null,
24265
24674
  access: "view"
24266
24675
  },
24267
- "pipelineOrchestrator.getDecoderAssignment": {
24268
- capName: "pipeline-orchestrator",
24269
- capScope: "system",
24270
- addonId: null,
24271
- access: "view"
24272
- },
24273
- "pipelineOrchestrator.getDecoderAssignments": {
24676
+ "pipelineOrchestrator.getGlobalMetrics": {
24274
24677
  capName: "pipeline-orchestrator",
24275
24678
  capScope: "system",
24276
24679
  addonId: null,
24277
24680
  access: "view"
24278
24681
  },
24279
- "pipelineOrchestrator.getGlobalMetrics": {
24682
+ "pipelineOrchestrator.getIngestOwner": {
24280
24683
  capName: "pipeline-orchestrator",
24281
24684
  capScope: "system",
24282
24685
  addonId: null,
@@ -24318,6 +24721,12 @@ Object.freeze({
24318
24721
  addonId: null,
24319
24722
  access: "delete"
24320
24723
  },
24724
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24725
+ capName: "pipeline-orchestrator",
24726
+ capScope: "system",
24727
+ addonId: null,
24728
+ access: "delete"
24729
+ },
24321
24730
  "pipelineOrchestrator.resolvePipeline": {
24322
24731
  capName: "pipeline-orchestrator",
24323
24732
  capScope: "system",
@@ -24354,37 +24763,37 @@ Object.freeze({
24354
24763
  addonId: null,
24355
24764
  access: "create"
24356
24765
  },
24357
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24766
+ "pipelineOrchestrator.setAgentReachableHost": {
24358
24767
  capName: "pipeline-orchestrator",
24359
24768
  capScope: "system",
24360
24769
  addonId: null,
24361
24770
  access: "create"
24362
24771
  },
24363
- "pipelineOrchestrator.setCameraStepOverride": {
24772
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24364
24773
  capName: "pipeline-orchestrator",
24365
24774
  capScope: "system",
24366
24775
  addonId: null,
24367
24776
  access: "create"
24368
24777
  },
24369
- "pipelineOrchestrator.setCameraStepToggle": {
24778
+ "pipelineOrchestrator.setCameraStepOverride": {
24370
24779
  capName: "pipeline-orchestrator",
24371
24780
  capScope: "system",
24372
24781
  addonId: null,
24373
24782
  access: "create"
24374
24783
  },
24375
- "pipelineOrchestrator.setCapabilityBinding": {
24784
+ "pipelineOrchestrator.setCameraStepToggle": {
24376
24785
  capName: "pipeline-orchestrator",
24377
24786
  capScope: "system",
24378
24787
  addonId: null,
24379
24788
  access: "create"
24380
24789
  },
24381
- "pipelineOrchestrator.unassignAudio": {
24790
+ "pipelineOrchestrator.setCapabilityBinding": {
24382
24791
  capName: "pipeline-orchestrator",
24383
24792
  capScope: "system",
24384
24793
  addonId: null,
24385
24794
  access: "create"
24386
24795
  },
24387
- "pipelineOrchestrator.unassignDecoder": {
24796
+ "pipelineOrchestrator.unassignAudio": {
24388
24797
  capName: "pipeline-orchestrator",
24389
24798
  capScope: "system",
24390
24799
  addonId: null,
@@ -24444,6 +24853,12 @@ Object.freeze({
24444
24853
  addonId: null,
24445
24854
  access: "view"
24446
24855
  },
24856
+ "pipelineRunner.getNativeCrop": {
24857
+ capName: "pipeline-runner",
24858
+ capScope: "system",
24859
+ addonId: null,
24860
+ access: "view"
24861
+ },
24447
24862
  "pipelineRunner.reportMotion": {
24448
24863
  capName: "pipeline-runner",
24449
24864
  capScope: "system",
@@ -24684,33 +25099,45 @@ Object.freeze({
24684
25099
  addonId: null,
24685
25100
  access: "create"
24686
25101
  },
24687
- "restreamer.getExposedResources": {
24688
- capName: "restreamer",
25102
+ "scriptRunner.run": {
25103
+ capName: "script-runner",
25104
+ capScope: "device",
25105
+ addonId: null,
25106
+ access: "create"
25107
+ },
25108
+ "scriptRunner.stop": {
25109
+ capName: "script-runner",
25110
+ capScope: "device",
25111
+ addonId: null,
25112
+ access: "create"
25113
+ },
25114
+ "serverManagement.applyServerUpdate": {
25115
+ capName: "server-management",
24689
25116
  capScope: "system",
24690
25117
  addonId: null,
24691
- access: "view"
25118
+ access: "create"
24692
25119
  },
24693
- "restreamer.registerDevice": {
24694
- capName: "restreamer",
25120
+ "serverManagement.checkServerUpdate": {
25121
+ capName: "server-management",
24695
25122
  capScope: "system",
24696
25123
  addonId: null,
24697
25124
  access: "create"
24698
25125
  },
24699
- "restreamer.unregisterDevice": {
24700
- capName: "restreamer",
25126
+ "serverManagement.getServerPackageStatus": {
25127
+ capName: "server-management",
24701
25128
  capScope: "system",
24702
25129
  addonId: null,
24703
- access: "delete"
25130
+ access: "view"
24704
25131
  },
24705
- "scriptRunner.run": {
24706
- capName: "script-runner",
24707
- capScope: "device",
25132
+ "serverManagement.restartServer": {
25133
+ capName: "server-management",
25134
+ capScope: "system",
24708
25135
  addonId: null,
24709
25136
  access: "create"
24710
25137
  },
24711
- "scriptRunner.stop": {
24712
- capName: "script-runner",
24713
- capScope: "device",
25138
+ "serverManagement.rollbackServerUpdate": {
25139
+ capName: "server-management",
25140
+ capScope: "system",
24714
25141
  addonId: null,
24715
25142
  access: "create"
24716
25143
  },
@@ -24798,23 +25225,17 @@ Object.freeze({
24798
25225
  addonId: null,
24799
25226
  access: "view"
24800
25227
  },
24801
- "snapshot.invalidateCache": {
25228
+ "snapshot.getSnapshotOverview": {
24802
25229
  capName: "snapshot",
24803
25230
  capScope: "device",
24804
25231
  addonId: null,
24805
- access: "create"
24806
- },
24807
- "snapshotProvider.getSnapshot": {
24808
- capName: "snapshot-provider",
24809
- capScope: "system",
24810
- addonId: null,
24811
25232
  access: "view"
24812
25233
  },
24813
- "snapshotProvider.supportsDevice": {
24814
- capName: "snapshot-provider",
24815
- capScope: "system",
25234
+ "snapshot.invalidateCache": {
25235
+ capName: "snapshot",
25236
+ capScope: "device",
24816
25237
  addonId: null,
24817
- access: "view"
25238
+ access: "create"
24818
25239
  },
24819
25240
  "ssoBridge.signBridgeToken": {
24820
25241
  capName: "sso-bridge",
@@ -25242,30 +25663,6 @@ Object.freeze({
25242
25663
  addonId: null,
25243
25664
  access: "view"
25244
25665
  },
25245
- "streamingEngine.getStreamUrl": {
25246
- capName: "streaming-engine",
25247
- capScope: "system",
25248
- addonId: null,
25249
- access: "view"
25250
- },
25251
- "streamingEngine.listStreams": {
25252
- capName: "streaming-engine",
25253
- capScope: "system",
25254
- addonId: null,
25255
- access: "view"
25256
- },
25257
- "streamingEngine.registerStream": {
25258
- capName: "streaming-engine",
25259
- capScope: "system",
25260
- addonId: null,
25261
- access: "create"
25262
- },
25263
- "streamingEngine.unregisterStream": {
25264
- capName: "streaming-engine",
25265
- capScope: "system",
25266
- addonId: null,
25267
- access: "delete"
25268
- },
25269
25666
  "streamParams.getConfigSchema": {
25270
25667
  capName: "stream-params",
25271
25668
  capScope: "device",
@@ -25512,6 +25909,12 @@ Object.freeze({
25512
25909
  addonId: null,
25513
25910
  access: "view"
25514
25911
  },
25912
+ "userPasskeys.beginDiscoverableAuthentication": {
25913
+ capName: "user-passkeys",
25914
+ capScope: "system",
25915
+ addonId: null,
25916
+ access: "view"
25917
+ },
25515
25918
  "userPasskeys.beginRegistration": {
25516
25919
  capName: "user-passkeys",
25517
25920
  capScope: "system",
@@ -25524,12 +25927,24 @@ Object.freeze({
25524
25927
  addonId: null,
25525
25928
  access: "view"
25526
25929
  },
25930
+ "userPasskeys.finishDiscoverableAuthentication": {
25931
+ capName: "user-passkeys",
25932
+ capScope: "system",
25933
+ addonId: null,
25934
+ access: "view"
25935
+ },
25527
25936
  "userPasskeys.finishRegistration": {
25528
25937
  capName: "user-passkeys",
25529
25938
  capScope: "system",
25530
25939
  addonId: null,
25531
25940
  access: "create"
25532
25941
  },
25942
+ "userPasskeys.getSecondFactorPreference": {
25943
+ capName: "user-passkeys",
25944
+ capScope: "system",
25945
+ addonId: null,
25946
+ access: "view"
25947
+ },
25533
25948
  "userPasskeys.listPasskeys": {
25534
25949
  capName: "user-passkeys",
25535
25950
  capScope: "system",
@@ -25542,6 +25957,12 @@ Object.freeze({
25542
25957
  addonId: null,
25543
25958
  access: "delete"
25544
25959
  },
25960
+ "userPasskeys.setSecondFactorPreference": {
25961
+ capName: "user-passkeys",
25962
+ capScope: "system",
25963
+ addonId: null,
25964
+ access: "create"
25965
+ },
25545
25966
  "vacuumControl.locate": {
25546
25967
  capName: "vacuum-control",
25547
25968
  capScope: "device",
@@ -25614,6 +26035,18 @@ Object.freeze({
25614
26035
  addonId: null,
25615
26036
  access: "view"
25616
26037
  },
26038
+ "viewerUi.getStaticDir": {
26039
+ capName: "viewer-ui",
26040
+ capScope: "system",
26041
+ addonId: null,
26042
+ access: "view"
26043
+ },
26044
+ "viewerUi.getVersion": {
26045
+ capName: "viewer-ui",
26046
+ capScope: "system",
26047
+ addonId: null,
26048
+ access: "view"
26049
+ },
25617
26050
  "waterHeater.setAway": {
25618
26051
  capName: "water-heater",
25619
26052
  capScope: "device",
@@ -25632,54 +26065,6 @@ Object.freeze({
25632
26065
  addonId: null,
25633
26066
  access: "create"
25634
26067
  },
25635
- "webrtc.closeSession": {
25636
- capName: "webrtc",
25637
- capScope: "system",
25638
- addonId: null,
25639
- access: "create"
25640
- },
25641
- "webrtc.createSession": {
25642
- capName: "webrtc",
25643
- capScope: "system",
25644
- addonId: null,
25645
- access: "create"
25646
- },
25647
- "webrtc.handleAnswer": {
25648
- capName: "webrtc",
25649
- capScope: "system",
25650
- addonId: null,
25651
- access: "create"
25652
- },
25653
- "webrtc.handleOffer": {
25654
- capName: "webrtc",
25655
- capScope: "system",
25656
- addonId: null,
25657
- access: "create"
25658
- },
25659
- "webrtc.hasAdaptiveBitrate": {
25660
- capName: "webrtc",
25661
- capScope: "system",
25662
- addonId: null,
25663
- access: "view"
25664
- },
25665
- "webrtc.registerStream": {
25666
- capName: "webrtc",
25667
- capScope: "system",
25668
- addonId: null,
25669
- access: "create"
25670
- },
25671
- "webrtc.supportsStream": {
25672
- capName: "webrtc",
25673
- capScope: "system",
25674
- addonId: null,
25675
- access: "view"
25676
- },
25677
- "webrtc.unregisterStream": {
25678
- capName: "webrtc",
25679
- capScope: "system",
25680
- addonId: null,
25681
- access: "delete"
25682
- },
25683
26068
  "webrtcSession.addIceCandidate": {
25684
26069
  capName: "webrtc-session",
25685
26070
  capScope: "device",