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