@camstack/addon-provider-reolink 1.1.21 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +681 -288
  2. package/dist/addon.mjs +681 -288
  3. package/package.json +4 -1
package/dist/addon.js CHANGED
@@ -4655,7 +4655,7 @@ function _instanceof(cls, params = {}) {
4655
4655
  return inst;
4656
4656
  }
4657
4657
  //#endregion
4658
- //#region ../types/dist/sleep-CZDdRBua.mjs
4658
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4659
4659
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4660
4660
  EventCategory["SystemBoot"] = "system.boot";
4661
4661
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4841,6 +4841,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4841
4841
  */
4842
4842
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4843
4843
  /**
4844
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4845
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4846
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4847
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4848
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4849
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4850
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4851
+ * topology change, so a dropped event self-heals on the next one (plus the
4852
+ * broker's long backstop reconcile query).
4853
+ */
4854
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4855
+ /**
4844
4856
  * Periodic snapshot of per-node pipeline-runner load
4845
4857
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4846
4858
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5364,10 +5376,6 @@ function hydrateField(field, values) {
5364
5376
  };
5365
5377
  }
5366
5378
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5367
- if (field.type === "password") return {
5368
- ...field,
5369
- value: ""
5370
- };
5371
5379
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5372
5380
  return {
5373
5381
  ...field,
@@ -6751,10 +6759,25 @@ function method(input, output, options) {
6751
6759
  timeoutMs: options?.timeoutMs
6752
6760
  };
6753
6761
  }
6762
+ /**
6763
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6764
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6765
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6766
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6767
+ */
6768
+ function systemMethod(input, output, options) {
6769
+ return {
6770
+ ...method(input, output, options),
6771
+ systemOnly: true
6772
+ };
6773
+ }
6754
6774
  /** Shorthand to define an event schema */
6755
6775
  function event(data) {
6756
6776
  return { data };
6757
6777
  }
6778
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6779
+ var VersionOutputSchema$1 = object({ version: string() });
6780
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6758
6781
  var StaticDirOutputSchema = object({ staticDir: string() });
6759
6782
  var VersionOutputSchema = object({ version: string() });
6760
6783
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6948,6 +6971,36 @@ var ModelFormatsSchema = object({
6948
6971
  tflite: ModelFormatEntrySchema.optional(),
6949
6972
  pt: ModelFormatEntrySchema.optional()
6950
6973
  });
6974
+ /**
6975
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6976
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6977
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6978
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6979
+ * resolution/download/persistence; this is a presentation overlay resolved back
6980
+ * to an `id`.
6981
+ */
6982
+ var ModelVariantGroupSchema = object({
6983
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6984
+ family: string(),
6985
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6986
+ tier: string(),
6987
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6988
+ precision: _enum(["fp32", "int8"]).optional(),
6989
+ /**
6990
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6991
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6992
+ * future performance variants plug into.
6993
+ */
6994
+ optimization: _enum(["standard", "fast"]).optional(),
6995
+ /**
6996
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6997
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6998
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6999
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
7000
+ * the group so the selector can offer it as a variant axis.
7001
+ */
7002
+ resolution: number().int().positive().optional()
7003
+ });
6951
7004
  var ModelCatalogEntrySchema = object({
6952
7005
  id: string(),
6953
7006
  name: string(),
@@ -6977,7 +7030,43 @@ var ModelCatalogEntrySchema = object({
6977
7030
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6978
7031
  * Downloaded into the same modelsDir alongside the model file.
6979
7032
  */
6980
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7033
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7034
+ /**
7035
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7036
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7037
+ * model list and excluded from the auto format-default pick. Set on the
7038
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7039
+ * the active lineup stays the coherent curated ladder without deleting a
7040
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7041
+ * an explicit legacy id that has a build for the node's format.
7042
+ */
7043
+ legacy: boolean().optional(),
7044
+ /**
7045
+ * Measured quality/latency metadata — populated from the benchmark addon on
7046
+ * the real node classes. Absent = not yet measured (most entries today; the
7047
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7048
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7049
+ */
7050
+ metrics: object({
7051
+ map50: number().optional(),
7052
+ p95LatencyMs: record(string(), number()).optional()
7053
+ }).optional(),
7054
+ /**
7055
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7056
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7057
+ * the retraining addon and any future commercial distribution.
7058
+ */
7059
+ license: string().optional(),
7060
+ /**
7061
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7062
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7063
+ * of a family's sizes and quantizations collapse into one grouped picker
7064
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7065
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7066
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7067
+ * is a presentation overlay resolved back to an `id`.
7068
+ */
7069
+ group: ModelVariantGroupSchema.optional()
6981
7070
  });
6982
7071
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6983
7072
  format: literal("openvino"),
@@ -7213,8 +7302,8 @@ var RecordingModeSchema = _enum([
7213
7302
  "onAudioThreshold"
7214
7303
  ]);
7215
7304
  /**
7216
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7217
- * reads directly (never inferred from `rules`):
7305
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7306
+ * UI reads directly (never inferred from `rules`):
7218
7307
  * - `off` — not recording.
7219
7308
  * - `events` — record only around triggers (motion / audio threshold),
7220
7309
  * with pre/post-buffer.
@@ -9416,26 +9505,13 @@ onBrightnessChanged: { data: object({
9416
9505
  */
9417
9506
  runtimeState: BrightnessStatusSchema
9418
9507
  };
9508
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9419
9509
  var StreamFormatSchema = _enum([
9420
9510
  "webrtc",
9421
9511
  "hls",
9422
9512
  "mjpeg",
9423
9513
  "rtsp"
9424
9514
  ]);
9425
- var StreamInfoSchema = object({
9426
- streamId: string(),
9427
- format: StreamFormatSchema,
9428
- url: string().nullable(),
9429
- active: boolean()
9430
- });
9431
- method(object({
9432
- streamId: string(),
9433
- sourceUrl: string(),
9434
- codec: string().optional()
9435
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9436
- streamId: string(),
9437
- format: StreamFormatSchema
9438
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9439
9515
  var RtspRestreamEntrySchema = object({
9440
9516
  brokerId: string(),
9441
9517
  url: string(),
@@ -10303,37 +10379,7 @@ var consumablesCapability = {
10303
10379
  scope: "device",
10304
10380
  deviceNative: true,
10305
10381
  mode: "singleton",
10306
- deviceTypes: [
10307
- DeviceType.Camera,
10308
- DeviceType.Hub,
10309
- DeviceType.Light,
10310
- DeviceType.Siren,
10311
- DeviceType.Switch,
10312
- DeviceType.Sensor,
10313
- DeviceType.Thermostat,
10314
- DeviceType.Button,
10315
- DeviceType.EventEmitter,
10316
- DeviceType.Update,
10317
- DeviceType.Generic,
10318
- DeviceType.Notifier,
10319
- DeviceType.Script,
10320
- DeviceType.Automation,
10321
- DeviceType.Lock,
10322
- DeviceType.Cover,
10323
- DeviceType.Valve,
10324
- DeviceType.Humidifier,
10325
- DeviceType.WaterHeater,
10326
- DeviceType.Fan,
10327
- DeviceType.MediaPlayer,
10328
- DeviceType.AlarmPanel,
10329
- DeviceType.Control,
10330
- DeviceType.Presence,
10331
- DeviceType.Weather,
10332
- DeviceType.Vacuum,
10333
- DeviceType.LawnMower,
10334
- DeviceType.Container,
10335
- DeviceType.Image
10336
- ],
10382
+ deviceTypes: Object.values(DeviceType),
10337
10383
  deviceConfig: { ui: {
10338
10384
  kind: "widget",
10339
10385
  widgetId: "host/consumables-panel",
@@ -11791,7 +11837,7 @@ var BoundingBoxSchema = object({
11791
11837
  w: number(),
11792
11838
  h: number()
11793
11839
  });
11794
- var SpatialDetectionSchema = object({
11840
+ object({
11795
11841
  class: string(),
11796
11842
  originalClass: string(),
11797
11843
  score: number(),
@@ -11926,7 +11972,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11926
11972
  enabled: boolean(),
11927
11973
  modelId: string(),
11928
11974
  children: array(PipelineDefaultStepSchema).readonly(),
11929
- engine: PipelineEngineChoiceSchema.optional(),
11930
11975
  group: string().optional(),
11931
11976
  settings: record(string(), unknown()).optional()
11932
11977
  }));
@@ -11951,7 +11996,9 @@ var PipelineModelOptionSchema = object({
11951
11996
  formats: record(string(), object({
11952
11997
  downloaded: boolean(),
11953
11998
  sizeMB: number()
11954
- }))
11999
+ })),
12000
+ group: ModelVariantGroupSchema.optional(),
12001
+ legacy: boolean().optional()
11955
12002
  });
11956
12003
  var ConfigFieldBridge = custom$2();
11957
12004
  var PipelineAddonSchemaSchema = object({
@@ -11965,6 +12012,7 @@ var PipelineAddonSchemaSchema = object({
11965
12012
  defaultModelId: string(),
11966
12013
  defaultModelIdByFormat: record(string(), string()).optional(),
11967
12014
  enabledByDefault: boolean().optional(),
12015
+ backfillIntoExistingOverrides: boolean().optional(),
11968
12016
  defaultConfidence: number(),
11969
12017
  group: string().optional(),
11970
12018
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11981,11 +12029,6 @@ var PipelineSchemaSchema = object({
11981
12029
  selectedEngine: PipelineEngineChoiceSchema,
11982
12030
  slots: array(PipelineSlotSchemaSchema).readonly()
11983
12031
  });
11984
- var DetectorOutputSchema = object({
11985
- detections: array(SpatialDetectionSchema).readonly(),
11986
- inferenceMs: number(),
11987
- modelId: string()
11988
- });
11989
12032
  var EngineProvisioningSchema = object({
11990
12033
  runtimeId: _enum([
11991
12034
  "onnx",
@@ -12002,15 +12045,42 @@ var EngineProvisioningSchema = object({
12002
12045
  ]),
12003
12046
  progress: number().optional(),
12004
12047
  error: string().optional(),
12005
- nextRetryAt: number().optional()
12048
+ nextRetryAt: number().optional(),
12049
+ /**
12050
+ * Gate A (config-correctness gate at engine change): human-readable
12051
+ * config issues surfaced EAGERLY when the node's engine changes — model
12052
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
12053
+ * has a <format> build"). Additive/optional: informational only, never
12054
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
12055
+ * Absent/empty when the node-default tree resolves cleanly.
12056
+ */
12057
+ configIssues: array(string()).optional()
12006
12058
  });
12007
12059
  var PipelineStepInputSchema = lazy(() => object({
12008
12060
  addonId: string(),
12009
- modelId: string(),
12061
+ modelId: string().optional(),
12010
12062
  enabled: boolean().default(true),
12011
12063
  children: array(PipelineStepInputSchema).optional(),
12012
12064
  settings: record(string(), unknown()).optional()
12013
12065
  }));
12066
+ var ModelSubstitutionSchema = object({
12067
+ addonId: string(),
12068
+ chosen: string(),
12069
+ running: string(),
12070
+ format: string()
12071
+ });
12072
+ var PipelineValidationIssueSchema = object({
12073
+ addonId: string(),
12074
+ kind: _enum(["unknown-addon", "no-format-build"]),
12075
+ detail: string()
12076
+ });
12077
+ var PipelineValidationResultSchema = object({
12078
+ ok: boolean(),
12079
+ issues: array(PipelineValidationIssueSchema).readonly(),
12080
+ substitutions: array(ModelSubstitutionSchema).readonly(),
12081
+ /** The node's `currentEngine.format` this validation ran against. */
12082
+ format: string()
12083
+ });
12014
12084
  var ReferenceImageEntrySchema = object({
12015
12085
  filename: string(),
12016
12086
  stepIds: array(string()).readonly().optional()
@@ -12081,7 +12151,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12081
12151
  })) }), object({ success: literal(true) }), {
12082
12152
  kind: "mutation",
12083
12153
  auth: "admin"
12084
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
12154
+ }), method(object({ nodeId: string() }), object({
12155
+ success: literal(true),
12156
+ clearedDevices: number()
12157
+ }), {
12158
+ kind: "mutation",
12159
+ auth: "admin"
12160
+ }), 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({
12085
12161
  name: string(),
12086
12162
  steps: array(PipelineTemplateStepSchema).readonly(),
12087
12163
  engine: PipelineEngineChoiceSchema
@@ -12098,10 +12174,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12098
12174
  modelId: string(),
12099
12175
  format: ModelFormatSchema$1
12100
12176
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
12101
- addonId: string(),
12102
- frame: FrameInputSchema,
12103
- config: record(string(), unknown()).optional()
12104
- }), DetectorOutputSchema), method(object({
12105
12177
  engine: PipelineEngineChoiceSchema.optional(),
12106
12178
  steps: array(PipelineStepInputSchema).min(1),
12107
12179
  frame: FrameInputSchema.optional(),
@@ -12280,6 +12352,25 @@ var zonesCapability = {
12280
12352
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12281
12353
  };
12282
12354
  /**
12355
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12356
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12357
+ * so the caller supplies only the detection-res bbox divided by the detection
12358
+ * dims — no native resolution to plumb.
12359
+ */
12360
+ var NativeCropBboxSchema = object({
12361
+ x: number(),
12362
+ y: number(),
12363
+ w: number(),
12364
+ h: number()
12365
+ });
12366
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12367
+ var NativeCropResultSchema = object({
12368
+ /** Packed rgb (24-bit) pixels of the crop. */
12369
+ bytes: _instanceof(Uint8Array),
12370
+ width: number().int().positive(),
12371
+ height: number().int().positive()
12372
+ });
12373
+ /**
12283
12374
  * Per-camera tunable ranges + defaults. Single source of truth used
12284
12375
  * by both the Zod data schema (validation + default fallback) and
12285
12376
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12374,6 +12465,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12374
12465
  kind: literal("remote-restream"),
12375
12466
  /** The camera's source-owner node (slice 1: always the hub). */
12376
12467
  ownerNodeId: string(),
12468
+ /**
12469
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12470
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12471
+ * dials THIS host for the owner's restream, in preference to the
12472
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12473
+ */
12474
+ ownerReachableHost: string().optional(),
12377
12475
  /** Operator override for the owner host the runner dials. */
12378
12476
  hubHostnameOverride: string().optional()
12379
12477
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12382,13 +12480,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12382
12480
  * specific runner instance via `attachCamera`. Carries everything the
12383
12481
  * runner needs to subscribe to the local broker and execute inference.
12384
12482
  *
12385
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12386
- * optional `audio`) travels with the attach payload. The runner keeps it
12387
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12388
- * restart the orchestrator re-sends the latest snapshot.
12389
- *
12390
- * `engine`/`steps`/`audio` are optional during the additive migration
12391
- * window; once orchestrator + UI are migrated they become required.
12483
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12484
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12485
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12486
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12487
+ * node-local, resolved by the executing runner at dispatch time.
12392
12488
  */
12393
12489
  var RunnerCameraConfigSchema = object({
12394
12490
  deviceId: number(),
@@ -12439,14 +12535,11 @@ var RunnerCameraConfigSchema = object({
12439
12535
  */
12440
12536
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12441
12537
  pipelineEnabled: boolean().default(true),
12442
- /** Engine choice for video steps (runtime+backend+format). */
12443
- engine: PipelineEngineChoiceSchema.optional(),
12444
12538
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12445
12539
  steps: array(PipelineStepInputSchema).readonly().optional(),
12446
12540
  /** Audio classification branch. `enabled:false` disables, null skips. */
12447
12541
  audio: object({
12448
- engine: PipelineEngineChoiceSchema,
12449
- modelId: string(),
12542
+ modelId: string().optional(),
12450
12543
  enabled: boolean()
12451
12544
  }).nullable().optional(),
12452
12545
  /**
@@ -12533,7 +12626,11 @@ var RunnerLocalMetricsSchema = object({
12533
12626
  avgInferenceTimeMs: number(),
12534
12627
  queueDepth: number()
12535
12628
  });
12536
- 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());
12629
+ 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({
12630
+ handle: FrameHandleSchema,
12631
+ bbox: NativeCropBboxSchema,
12632
+ maxWidth: number().int().positive().optional()
12633
+ }), NativeCropResultSchema.nullable());
12537
12634
  /**
12538
12635
  * Hardware / firmware motion sensor cap — binary detected state plus
12539
12636
  * a timestamp of the last observation. Distinct from
@@ -15464,7 +15561,9 @@ var AddonPageDeclarationSchema$1 = object({
15464
15561
  icon: string(),
15465
15562
  path: string(),
15466
15563
  remoteName: string(),
15467
- bundle: string()
15564
+ bundle: string(),
15565
+ section: string().optional(),
15566
+ sectionLabel: string().optional()
15468
15567
  });
15469
15568
  var AddonPageInfoSchema = object({
15470
15569
  addonId: string(),
@@ -15504,7 +15603,18 @@ var AddonPageDeclarationSchema = object({
15504
15603
  * the static-file route can compute an mtime-based cache-buster URL
15505
15604
  * without a separate filesystem stat.
15506
15605
  */
15507
- bundle: string()
15606
+ bundle: string(),
15607
+ /**
15608
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15609
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15610
+ * Any OTHER string creates (or joins) a custom section rendered after
15611
+ * the built-in groups; its label comes from `sectionLabel` (first
15612
+ * declaration wins), falling back to the id. Absent → the legacy
15613
+ * "Addon Pages" group.
15614
+ */
15615
+ section: string().optional(),
15616
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15617
+ sectionLabel: string().optional()
15508
15618
  });
15509
15619
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15510
15620
  var AddonHttpRouteSchema = object({
@@ -15720,6 +15830,17 @@ var WidgetMetadataSchema = object({
15720
15830
  deviceContext: boolean().default(false),
15721
15831
  integrationContext: boolean().default(false)
15722
15832
  }),
15833
+ /**
15834
+ * Loadable BEFORE authentication. The normal widget registry listing
15835
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15836
+ * (the login page) cannot discover a widget through it. A widget that
15837
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15838
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15839
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15840
+ * than the authenticated registry, and its bundle is served by the
15841
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15842
+ */
15843
+ preAuth: boolean().optional().default(false),
15723
15844
  /** Dashboard placement HINTS (operator can override per instance). */
15724
15845
  defaultSize: WidgetSizeEnum.default("md"),
15725
15846
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -16021,6 +16142,66 @@ method(object({
16021
16142
  password: string()
16022
16143
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
16023
16144
  /**
16145
+ * `login-method` — collection cap through which auth addons contribute
16146
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
16147
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
16148
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
16149
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
16150
+ * procedure aggregates them for the unauthenticated login page.
16151
+ *
16152
+ * A contribution is a discriminated union on `kind`:
16153
+ *
16154
+ * - `redirect` — a declarative button. The login page renders a generic
16155
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
16156
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
16157
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
16158
+ * login page needs NO change.
16159
+ *
16160
+ * - `widget` — a Module-Federation widget the login page mounts (via
16161
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
16162
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
16163
+ * addon bundle. The referenced widget also declares `preAuth: true` in
16164
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
16165
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
16166
+ *
16167
+ * Every contribution carries a `stage`:
16168
+ * - `primary` — shown on the first credentials screen (OIDC /
16169
+ * magic-link buttons; a future usernameless passkey).
16170
+ * - `second-factor` — shown AFTER the password leg, gated on the
16171
+ * returned `factors` (passkey-as-2FA today).
16172
+ *
16173
+ * `mount: skip` — the cap is read server-side by the core auth router
16174
+ * (`registry.getCollection('login-method')`), never mounted as its own
16175
+ * tRPC router.
16176
+ */
16177
+ /** When a login method renders in the two-phase login flow. */
16178
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
16179
+ /** One login-method contribution — redirect button OR pre-auth widget. */
16180
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
16181
+ kind: literal("redirect"),
16182
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
16183
+ id: string(),
16184
+ /** Operator-facing button label. */
16185
+ label: string(),
16186
+ /** lucide-react icon name. */
16187
+ icon: string().optional(),
16188
+ /** Addon-owned HTTP route the button navigates to (GET). */
16189
+ startUrl: string(),
16190
+ stage: LoginStageEnum
16191
+ }), object({
16192
+ kind: literal("widget"),
16193
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
16194
+ id: string(),
16195
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
16196
+ addonId: string(),
16197
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
16198
+ bundle: string(),
16199
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
16200
+ remote: WidgetRemoteSchema,
16201
+ stage: LoginStageEnum
16202
+ })]);
16203
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16204
+ /**
16024
16205
  * Orchestrator-side destination metadata. The orchestrator computes
16025
16206
  * `id = <addonId>:<subId>` from its provider lookup so consumers
16026
16207
  * (admin UI, restore flow) see one canonical key.
@@ -18136,7 +18317,17 @@ var TrackSchema = object({
18136
18317
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
18137
18318
  totalDistance: number(),
18138
18319
  state: TrackStateSchema,
18139
- active: boolean()
18320
+ active: boolean(),
18321
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18322
+ * track expiry, recomputed on late label). Absent on legacy rows written
18323
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18324
+ importance: number().optional(),
18325
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18326
+ * "best" frame). Absent when the track produced no object events. */
18327
+ bestEventId: string().optional(),
18328
+ /** Tag of the importance sub-signal that dominated the score
18329
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18330
+ importanceReason: string().optional()
18140
18331
  });
18141
18332
  var BaseEventFields = {
18142
18333
  id: string(),
@@ -18201,8 +18392,18 @@ var ObjectEventSchema = object({
18201
18392
  frameHeight: number().optional(),
18202
18393
  /** MediaStore key for the crop attached to this event (if any). */
18203
18394
  mediaKey: string().optional(),
18395
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18396
+ * best-detection full frame). Resolve via the event-media data-plane
18397
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18398
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18399
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18400
+ keyFrameMediaKey: string().optional(),
18204
18401
  /** Populated by B5 (recording playback URL for this event). */
18205
- mediaUrl: string().optional()
18402
+ mediaUrl: string().optional(),
18403
+ /** The parent track's key-event importance [0,1], propagated to every object
18404
+ * event of the track (so an event row can be sorted by importance without a
18405
+ * track join). Absent on legacy rows / before the track was scored. */
18406
+ importance: number().optional()
18206
18407
  });
18207
18408
  var AudioEventSchema = object({
18208
18409
  ...BaseEventFields,
@@ -18226,7 +18427,8 @@ var MediaFileKindEnum = _enum([
18226
18427
  "fullFrame",
18227
18428
  "fullFrameBoxed",
18228
18429
  "faceCrop",
18229
- "plateCrop"
18430
+ "plateCrop",
18431
+ "keyFrame"
18230
18432
  ]);
18231
18433
  var MediaFileSchema = object({
18232
18434
  key: string(),
@@ -18247,6 +18449,32 @@ var DeviceEventQueryInput = object({
18247
18449
  projection: _enum(["full", "slim"]).optional()
18248
18450
  });
18249
18451
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18452
+ var KeyEventQueryInput = object({
18453
+ deviceId: number(),
18454
+ /** Window lower bound (track firstSeen ≥ since). */
18455
+ since: number(),
18456
+ /** Window upper bound (track firstSeen ≤ until). */
18457
+ until: number(),
18458
+ limit: number().int().min(1).max(200).default(50),
18459
+ /** Drop tracks scoring below this importance. */
18460
+ minImportance: number().min(0).max(1).optional(),
18461
+ /** Restrict to a single class (e.g. 'person'). */
18462
+ classFilter: string().optional()
18463
+ });
18464
+ var KeyEventSchema = object({
18465
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18466
+ id: string(),
18467
+ trackId: string(),
18468
+ /** Track start time (firstSeen). */
18469
+ timestamp: number(),
18470
+ className: string(),
18471
+ label: string().optional(),
18472
+ importance: number(),
18473
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18474
+ bestEventId: string(),
18475
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18476
+ windowMs: number().optional()
18477
+ });
18250
18478
  var TrackedDetectionSchema = object({
18251
18479
  trackId: string(),
18252
18480
  className: string(),
@@ -18276,7 +18504,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18276
18504
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18277
18505
  kind: "mutation",
18278
18506
  auth: "admin"
18279
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18507
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18280
18508
  deviceId: number(),
18281
18509
  since: number(),
18282
18510
  until: number(),
@@ -18321,11 +18549,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18321
18549
  timestamp: number()
18322
18550
  });
18323
18551
  var CameraPipelineConfigSchema = object({
18324
- engine: PipelineEngineChoiceSchema,
18552
+ engine: PipelineEngineChoiceSchema.optional(),
18325
18553
  steps: array(PipelineStepInputSchema).readonly(),
18326
18554
  audio: object({
18327
- engine: PipelineEngineChoiceSchema,
18328
- modelId: string(),
18555
+ engine: PipelineEngineChoiceSchema.optional(),
18556
+ modelId: string().optional(),
18329
18557
  enabled: boolean(),
18330
18558
  settings: record(string(), unknown()).readonly().optional()
18331
18559
  }).nullable().optional()
@@ -18340,7 +18568,7 @@ var PipelineTemplateSchema = object({
18340
18568
  });
18341
18569
  var AgentAddonConfigSchema = object({
18342
18570
  enabled: boolean(),
18343
- modelId: string(),
18571
+ modelId: string().optional(),
18344
18572
  settings: record(string(), unknown()).readonly()
18345
18573
  });
18346
18574
  var AgentPipelineSettingsSchema = object({
@@ -18350,12 +18578,25 @@ var AgentPipelineSettingsSchema = object({
18350
18578
  detectWeight: number().positive().optional(),
18351
18579
  /** Node is eligible to run the detection pipeline (decode + inference). */
18352
18580
  detect: boolean().optional(),
18353
- /** Node is eligible to host decoder sessions. */
18581
+ /**
18582
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18583
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18584
+ * the schema ONLY so persisted stores written before the removal still
18585
+ * parse — no code reads it and no write path emits it.
18586
+ */
18354
18587
  decode: boolean().optional(),
18355
18588
  /** Node is eligible to run audio-analyzer sessions. */
18356
18589
  audio: boolean().optional(),
18357
18590
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18358
- ingest: boolean().optional()
18591
+ ingest: boolean().optional(),
18592
+ /**
18593
+ * Operator override for the LAN host a cross-node decoder dials to reach
18594
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18595
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18596
+ * it already uses to reach the hub). Set this only when the auto-detected
18597
+ * address is wrong (multi-homed host, NAT, custom interface).
18598
+ */
18599
+ reachableHost: string().optional()
18359
18600
  });
18360
18601
  var CameraPipelineForAgentSchema = object({
18361
18602
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18403,25 +18644,6 @@ var PipelineAssignmentSchema = object({
18403
18644
  assignedAt: number()
18404
18645
  });
18405
18646
  /**
18406
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18407
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18408
- * → co-located with pipeline → capacity).
18409
- */
18410
- var DecoderAssignmentSchema = object({
18411
- deviceId: number(),
18412
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18413
- decoderNodeId: string(),
18414
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18415
- pinned: boolean(),
18416
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18417
- reason: _enum([
18418
- "manual",
18419
- "co-located",
18420
- "capacity",
18421
- "hardware-affinity"
18422
- ])
18423
- });
18424
- /**
18425
18647
  * Per-agent load summary surfaced to the load balancer + dashboards.
18426
18648
  * Aggregated from each runner's `getLocalLoad` cap call.
18427
18649
  */
@@ -18461,6 +18683,15 @@ var GlobalMetricsSchema = object({
18461
18683
  * capability providers.
18462
18684
  */
18463
18685
  var CapabilityBindingsSchema = record(string(), string());
18686
+ /**
18687
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18688
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18689
+ */
18690
+ var IngestOwnerSchema = object({
18691
+ ownerNodeId: string(),
18692
+ reachableHost: string().optional(),
18693
+ configIssue: string().optional()
18694
+ });
18464
18695
  /** Source block — always present; derives from the stream catalog. */
18465
18696
  var CameraSourceStatusSchema = object({ streams: array(object({
18466
18697
  camStreamId: string(),
@@ -18475,6 +18706,14 @@ var CameraAssignmentStatusSchema = object({
18475
18706
  detectionNodeId: string().nullable(),
18476
18707
  decoderNodeId: string().nullable(),
18477
18708
  audioNodeId: string().nullable(),
18709
+ /**
18710
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18711
+ * hosts the broker/restream) — the cluster ingest owner today
18712
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18713
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18714
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18715
+ */
18716
+ sourceNodeId: string().nullable(),
18478
18717
  pinned: object({
18479
18718
  detection: boolean(),
18480
18719
  decoder: boolean(),
@@ -18607,16 +18846,7 @@ method(object({
18607
18846
  }), object({ success: literal(true) }), {
18608
18847
  kind: "mutation",
18609
18848
  auth: "admin"
18610
- }), method(object({
18611
- deviceId: number(),
18612
- nodeId: string()
18613
- }), _void(), {
18614
- kind: "mutation",
18615
- auth: "admin"
18616
- }), method(object({ deviceId: number() }), _void(), {
18617
- kind: "mutation",
18618
- auth: "admin"
18619
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18849
+ }), method(_void(), IngestOwnerSchema), method(object({
18620
18850
  deviceId: number(),
18621
18851
  nodeId: string()
18622
18852
  }), object({ success: literal(true) }), {
@@ -18637,10 +18867,7 @@ method(object({
18637
18867
  nodeId: string(),
18638
18868
  pinned: boolean(),
18639
18869
  assignedAt: number()
18640
- }))), method(object({
18641
- deviceId: number(),
18642
- pipelineNodeId: string().optional()
18643
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18870
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18644
18871
  nodeId: string(),
18645
18872
  settings: AgentPipelineSettingsSchema
18646
18873
  })).readonly()), method(object({
@@ -18670,12 +18897,26 @@ method(object({
18670
18897
  }), method(object({
18671
18898
  agentNodeId: string(),
18672
18899
  detect: boolean().nullable().optional(),
18673
- decode: boolean().nullable().optional(),
18674
18900
  audio: boolean().nullable().optional(),
18675
18901
  ingest: boolean().nullable().optional()
18676
18902
  }), object({ success: literal(true) }), {
18677
18903
  kind: "mutation",
18678
18904
  auth: "admin"
18905
+ }), method(object({
18906
+ agentNodeId: string(),
18907
+ reachableHost: string().nullable()
18908
+ }), object({ success: literal(true) }), {
18909
+ kind: "mutation",
18910
+ auth: "admin"
18911
+ }), method(object({ agentNodeId: string() }), object({
18912
+ success: literal(true),
18913
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18914
+ effectiveModelId: string().nullable(),
18915
+ /** Number of cameras whose node-scoped overrides were cleared. */
18916
+ clearedCameraOverrides: number()
18917
+ }), {
18918
+ kind: "mutation",
18919
+ auth: "admin"
18679
18920
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18680
18921
  deviceId: number(),
18681
18922
  addonId: string(),
@@ -18720,22 +18961,131 @@ method(object({
18720
18961
  kind: "mutation",
18721
18962
  auth: "admin"
18722
18963
  });
18723
- var RegisteredStreamSchema = object({
18724
- streamId: string(),
18725
- label: string().optional(),
18726
- codec: string(),
18727
- type: _enum(["video", "audio"]),
18728
- sourceUrl: string()
18964
+ /**
18965
+ * server-management — per-NODE singleton capability for a node's ROOT
18966
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18967
+ * agents).
18968
+ *
18969
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18970
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18971
+ * version describes the node. Updates install into
18972
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18973
+ * starter (probation boot + auto-rollback to N-1).
18974
+ *
18975
+ * Providers:
18976
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18977
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18978
+ * unpinned calls.
18979
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18980
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18981
+ * `$hub.registerNode` manifest.
18982
+ *
18983
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18984
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18985
+ * SDK) routes the call to that node's provider via the standard remote
18986
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18987
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18988
+ *
18989
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18990
+ */
18991
+ /**
18992
+ * Where the running hub's code was loaded from:
18993
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18994
+ * plain resolution and runtime updates are refused.
18995
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18996
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18997
+ */
18998
+ var ServerBootModeSchema = _enum([
18999
+ "workspace",
19000
+ "baked",
19001
+ "data-root"
19002
+ ]);
19003
+ /**
19004
+ * Update lifecycle state:
19005
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
19006
+ * - `pending-restart` — a version is staged and the node has NOT yet
19007
+ * restarted onto it (still running the OLD version).
19008
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
19009
+ * (it is the active probation boot) and is waiting to confirm boot-health.
19010
+ * Apply/rollback are refused in this state and the node must NOT be
19011
+ * manually restarted, or the probation boot auto-rolls-back.
19012
+ */
19013
+ var ServerUpdateStateSchema = _enum([
19014
+ "idle",
19015
+ "checking",
19016
+ "staging",
19017
+ "pending-restart",
19018
+ "awaiting-confirmation"
19019
+ ]);
19020
+ var ServerRollbackInfoSchema = object({
19021
+ /** The version that failed (or was manually rolled back). */
19022
+ fromVersion: string(),
19023
+ /** The version rolled back to; null = the baked seed. */
19024
+ toVersion: string().nullable(),
19025
+ atMs: number(),
19026
+ reason: string()
18729
19027
  });
18730
- var ExposedResourceSchema = object({
18731
- streamId: string(),
18732
- format: string(),
18733
- value: string()
19028
+ var ServerPackageStatusSchema = object({
19029
+ /** Root package name (`@camstack/server` on the hub). */
19030
+ packageName: string(),
19031
+ /** Version of the code the running process ACTUALLY loaded. */
19032
+ runningVersion: string().nullable(),
19033
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
19034
+ nodeRuntimeVersion: string().nullable(),
19035
+ /** Active data-dir root version; null when booted from seed/workspace. */
19036
+ activeVersion: string().nullable(),
19037
+ /** N-1 version kept for rollback; null when no previous version exists. */
19038
+ previousVersion: string().nullable(),
19039
+ /** Version of the immutable baked seed closure (image fallback). */
19040
+ seedVersion: string().nullable(),
19041
+ /** Latest registry version from the most recent check (null = never checked). */
19042
+ latestVersion: string().nullable(),
19043
+ updateAvailable: boolean(),
19044
+ bootMode: ServerBootModeSchema,
19045
+ updateState: ServerUpdateStateSchema,
19046
+ /** Version staged + awaiting its probation boot, when one is pending. */
19047
+ pendingVersion: string().nullable(),
19048
+ /** Set when the last freshly-activated version failed its boot health-check. */
19049
+ rolledBack: ServerRollbackInfoSchema.nullable(),
19050
+ /**
19051
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
19052
+ * hub is running from the baked seed (or workspace) while installed data-dir
19053
+ * versions are being IGNORED. Surfaced as a warning in the UI.
19054
+ */
19055
+ stateFileCorrupt: boolean(),
19056
+ lastCheckedAtMs: number().nullable()
19057
+ });
19058
+ var ServerUpdateCheckResultSchema = object({
19059
+ packageName: string(),
19060
+ runningVersion: string().nullable(),
19061
+ latestVersion: string().nullable(),
19062
+ updateAvailable: boolean(),
19063
+ checkedAtMs: number(),
19064
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
19065
+ error: string().nullable()
19066
+ });
19067
+ var ServerUpdateActionResultSchema = object({
19068
+ accepted: boolean(),
19069
+ targetVersion: string().nullable(),
19070
+ /** True when a graceful restart was scheduled to apply the change. */
19071
+ restarting: boolean(),
19072
+ message: string()
19073
+ });
19074
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
19075
+ kind: "mutation",
19076
+ auth: "admin"
19077
+ }), method(object({
19078
+ /** Explicit target version; omitted = latest from the registry. */
19079
+ version: string().optional() }), ServerUpdateActionResultSchema, {
19080
+ kind: "mutation",
19081
+ auth: "admin"
19082
+ }), method(_void(), ServerUpdateActionResultSchema, {
19083
+ kind: "mutation",
19084
+ auth: "admin"
19085
+ }), method(_void(), ServerUpdateActionResultSchema, {
19086
+ kind: "mutation",
19087
+ auth: "admin"
18734
19088
  });
18735
- method(object({
18736
- deviceId: number(),
18737
- streams: array(RegisteredStreamSchema).readonly()
18738
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18739
19089
  /**
18740
19090
  * Query filter for settings-store collections.
18741
19091
  */
@@ -18888,9 +19238,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18888
19238
  /**
18889
19239
  * A single device snapshot returned as base64 JPEG/PNG.
18890
19240
  *
18891
- * Shared with the `snapshot-provider` collection cap the orchestrator
18892
- * receives the same shape from each native provider and from the
18893
- * broker-based fallback.
19241
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19242
+ * the device-native provider (onboard capture) or from the stream-broker
19243
+ * prebuffer fallback.
18894
19244
  */
18895
19245
  var SnapshotImageSchema = object({
18896
19246
  base64: string(),
@@ -18958,17 +19308,26 @@ var snapshotCapability = {
18958
19308
  invalidateCache: method(object({ deviceId: number() }), _void(), {
18959
19309
  kind: "mutation",
18960
19310
  auth: "admin"
18961
- })
19311
+ }),
19312
+ /**
19313
+ * Cache-only batch overview — answers from the wrapper's in-memory cache in
19314
+ * O(n) and NEVER triggers a capture. Lets a grid skip requesting images for
19315
+ * devices that never produced a frame, and gives it an ETag per device for
19316
+ * conditional (304-able) image fetches. `lastCapturedAt`/`cacheAgeMs`/`etag`
19317
+ * are null for a device with no cached frame.
19318
+ */
19319
+ getSnapshotOverview: systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
19320
+ deviceId: number(),
19321
+ lastCapturedAt: number().nullable(),
19322
+ cacheAgeMs: number().nullable(),
19323
+ etag: string().nullable()
19324
+ })))
18962
19325
  },
18963
19326
  status: {
18964
19327
  schema: SnapshotStatusSchema,
18965
19328
  kind: "poll"
18966
19329
  }
18967
19330
  };
18968
- method(object({ deviceId: number() }), boolean()), method(object({
18969
- deviceId: number(),
18970
- streamId: string().optional()
18971
- }), SnapshotImageSchema.nullable());
18972
19331
  /**
18973
19332
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18974
19333
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19219,10 +19578,32 @@ method(_void(), array(TurnServerSchema).readonly());
19219
19578
  * b. `finishAuthentication({userId, response})` → server verifies
19220
19579
  * the assertion, bumps the credential counter, returns ok.
19221
19580
  *
19581
+ * 2b. Usernameless (discoverable-credential) authentication — the
19582
+ * passkey IS the primary factor, no password leg:
19583
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19584
+ * EMPTY `allowCredentials` (the browser offers every resident
19585
+ * passkey it holds for this RP) + `userVerification: 'required'`
19586
+ * (the passkey replaces both factors, so UV is mandatory).
19587
+ * The challenge is stored server-side, NOT bound to any user.
19588
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19589
+ * resolves the credential by the response's credential id,
19590
+ * verifies the assertion against the stored challenge + that
19591
+ * credential's public key/counter, and returns the OWNING
19592
+ * `userId` — the caller (core auth router) mints the session.
19593
+ *
19222
19594
  * 3. Management:
19223
19595
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19224
19596
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19225
19597
  *
19598
+ * 4. Second-factor preference (opt-in, default OFF):
19599
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19600
+ * demanded as a second factor after a password login ONLY when the
19601
+ * user explicitly opts in via `setSecondFactorPreference`.
19602
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19603
+ * row ⇒ `enabled: false`).
19604
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19605
+ * the providing addon beside its credentials.
19606
+ *
19226
19607
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19227
19608
  * the admin-ui composes the begin/finish round-trip and never exposes
19228
19609
  * the cap to non-admins.
@@ -19265,6 +19646,17 @@ method(object({
19265
19646
  }), object({ verified: boolean() }), {
19266
19647
  kind: "mutation",
19267
19648
  access: "view"
19649
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19650
+ kind: "mutation",
19651
+ access: "view"
19652
+ }), method(object({
19653
+ /** AuthenticationResponseJSON from the browser. */
19654
+ response: record(string(), unknown()) }), object({
19655
+ verified: boolean(),
19656
+ userId: string().nullable()
19657
+ }), {
19658
+ kind: "mutation",
19659
+ access: "view"
19268
19660
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19269
19661
  userId: string(),
19270
19662
  credentialId: string()
@@ -19272,6 +19664,13 @@ method(object({
19272
19664
  kind: "mutation",
19273
19665
  auth: "admin",
19274
19666
  access: "delete"
19667
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19668
+ userId: string(),
19669
+ enabled: boolean()
19670
+ }), object({ success: literal(true) }), {
19671
+ kind: "mutation",
19672
+ auth: "admin",
19673
+ access: "create"
19275
19674
  });
19276
19675
  /**
19277
19676
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19329,9 +19728,10 @@ method(object({
19329
19728
  auth: "admin"
19330
19729
  });
19331
19730
  /**
19332
- * Optional client-side hints sent at session creation to help the
19333
- * provider pick the best native source. All fields are optional —
19334
- * a viewer that knows nothing still gets a sane default.
19731
+ * Optional client-side hints sent at session creation to help the provider
19732
+ * pick the best native source. All fields optional — a viewer that knows
19733
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19734
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19335
19735
  */
19336
19736
  var webrtcClientHintsSchema = object({
19337
19737
  viewportWidth: number().int().positive().optional(),
@@ -19342,22 +19742,6 @@ var webrtcClientHintsSchema = object({
19342
19742
  /** Hard tier override; takes precedence over scoring when registered. */
19343
19743
  prefersTier: string().optional()
19344
19744
  }).partial();
19345
- method(object({
19346
- streamId: string(),
19347
- sdpOffer: string()
19348
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19349
- streamId: string(),
19350
- codec: string()
19351
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19352
- streamId: string(),
19353
- hints: webrtcClientHintsSchema.optional()
19354
- }), object({
19355
- sessionId: string(),
19356
- sdpOffer: string()
19357
- }), { kind: "mutation" }), method(object({
19358
- sessionId: string(),
19359
- sdpAnswer: string()
19360
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19361
19745
  /**
19362
19746
  * Discriminated target for a WebRTC session. The client sends this
19363
19747
  * structured object instead of building / parsing brokerId strings;
@@ -20088,7 +20472,17 @@ var FaceInfoSchema = object({
20088
20472
  recognizedIdentityId: string().optional(),
20089
20473
  identityName: string().optional(),
20090
20474
  assigned: boolean(),
20091
- base64: string().optional()
20475
+ base64: string().optional(),
20476
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20477
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20478
+ * legacy rows written before design B. */
20479
+ faceBbox: BoundingBoxSchema.optional(),
20480
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20481
+ * Fetch the native JPEG via the event-media data-plane
20482
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20483
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20484
+ * back to the inline `base64` face crop. */
20485
+ keyFrameMediaKey: string().optional()
20092
20486
  });
20093
20487
  var FaceFilterEnum = _enum([
20094
20488
  "unassigned",
@@ -20836,6 +21230,16 @@ var TopologyCategorySchema = object({
20836
21230
  healthy: number(),
20837
21231
  addons: array(TopologyCategoryAddonSchema).readonly()
20838
21232
  });
21233
+ /**
21234
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
21235
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
21236
+ * version visibility for the Server management surface. Nullable: offline
21237
+ * rows and pre-phase-2 nodes report none.
21238
+ */
21239
+ var TopologyRootPackageSchema = object({
21240
+ name: string(),
21241
+ version: string()
21242
+ });
20839
21243
  var TopologyNodeSchema = object({
20840
21244
  id: string(),
20841
21245
  name: string(),
@@ -20859,7 +21263,8 @@ var TopologyNodeSchema = object({
20859
21263
  status: string()
20860
21264
  })).readonly(),
20861
21265
  processes: array(TopologyProcessSchema).readonly(),
20862
- categories: array(TopologyCategorySchema).readonly()
21266
+ categories: array(TopologyCategorySchema).readonly(),
21267
+ rootPackage: TopologyRootPackageSchema.nullable()
20863
21268
  });
20864
21269
  var CapUsageEdgeSchema = object({
20865
21270
  callerAddonId: string(),
@@ -23937,6 +24342,12 @@ Object.freeze({
23937
24342
  addonId: null,
23938
24343
  access: "create"
23939
24344
  },
24345
+ "loginMethod.getLoginMethods": {
24346
+ capName: "login-method",
24347
+ capScope: "system",
24348
+ addonId: null,
24349
+ access: "view"
24350
+ },
23940
24351
  "mediaPlayer.next": {
23941
24352
  capName: "media-player",
23942
24353
  capScope: "device",
@@ -24519,6 +24930,12 @@ Object.freeze({
24519
24930
  addonId: null,
24520
24931
  access: "view"
24521
24932
  },
24933
+ "pipelineAnalytics.getKeyEvents": {
24934
+ capName: "pipeline-analytics",
24935
+ capScope: "device",
24936
+ addonId: null,
24937
+ access: "view"
24938
+ },
24522
24939
  "pipelineAnalytics.getMotionEvents": {
24523
24940
  capName: "pipeline-analytics",
24524
24941
  capScope: "device",
@@ -24567,23 +24984,23 @@ Object.freeze({
24567
24984
  addonId: null,
24568
24985
  access: "create"
24569
24986
  },
24570
- "pipelineExecutor.deleteModel": {
24987
+ "pipelineExecutor.clearDeviceOverrides": {
24571
24988
  capName: "pipeline-executor",
24572
24989
  capScope: "system",
24573
24990
  addonId: null,
24574
24991
  access: "delete"
24575
24992
  },
24576
- "pipelineExecutor.deleteTemplate": {
24993
+ "pipelineExecutor.deleteModel": {
24577
24994
  capName: "pipeline-executor",
24578
24995
  capScope: "system",
24579
24996
  addonId: null,
24580
24997
  access: "delete"
24581
24998
  },
24582
- "pipelineExecutor.detect": {
24999
+ "pipelineExecutor.deleteTemplate": {
24583
25000
  capName: "pipeline-executor",
24584
25001
  capScope: "system",
24585
25002
  addonId: null,
24586
- access: "view"
25003
+ access: "delete"
24587
25004
  },
24588
25005
  "pipelineExecutor.downloadModel": {
24589
25006
  capName: "pipeline-executor",
@@ -24777,13 +25194,13 @@ Object.freeze({
24777
25194
  addonId: null,
24778
25195
  access: "create"
24779
25196
  },
24780
- "pipelineOrchestrator.assignAudio": {
24781
- capName: "pipeline-orchestrator",
25197
+ "pipelineExecutor.validatePipeline": {
25198
+ capName: "pipeline-executor",
24782
25199
  capScope: "system",
24783
25200
  addonId: null,
24784
- access: "create"
25201
+ access: "view"
24785
25202
  },
24786
- "pipelineOrchestrator.assignDecoder": {
25203
+ "pipelineOrchestrator.assignAudio": {
24787
25204
  capName: "pipeline-orchestrator",
24788
25205
  capScope: "system",
24789
25206
  addonId: null,
@@ -24867,19 +25284,13 @@ Object.freeze({
24867
25284
  addonId: null,
24868
25285
  access: "view"
24869
25286
  },
24870
- "pipelineOrchestrator.getDecoderAssignment": {
24871
- capName: "pipeline-orchestrator",
24872
- capScope: "system",
24873
- addonId: null,
24874
- access: "view"
24875
- },
24876
- "pipelineOrchestrator.getDecoderAssignments": {
25287
+ "pipelineOrchestrator.getGlobalMetrics": {
24877
25288
  capName: "pipeline-orchestrator",
24878
25289
  capScope: "system",
24879
25290
  addonId: null,
24880
25291
  access: "view"
24881
25292
  },
24882
- "pipelineOrchestrator.getGlobalMetrics": {
25293
+ "pipelineOrchestrator.getIngestOwner": {
24883
25294
  capName: "pipeline-orchestrator",
24884
25295
  capScope: "system",
24885
25296
  addonId: null,
@@ -24921,6 +25332,12 @@ Object.freeze({
24921
25332
  addonId: null,
24922
25333
  access: "delete"
24923
25334
  },
25335
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
25336
+ capName: "pipeline-orchestrator",
25337
+ capScope: "system",
25338
+ addonId: null,
25339
+ access: "delete"
25340
+ },
24924
25341
  "pipelineOrchestrator.resolvePipeline": {
24925
25342
  capName: "pipeline-orchestrator",
24926
25343
  capScope: "system",
@@ -24957,37 +25374,37 @@ Object.freeze({
24957
25374
  addonId: null,
24958
25375
  access: "create"
24959
25376
  },
24960
- "pipelineOrchestrator.setCameraPipelineForAgent": {
25377
+ "pipelineOrchestrator.setAgentReachableHost": {
24961
25378
  capName: "pipeline-orchestrator",
24962
25379
  capScope: "system",
24963
25380
  addonId: null,
24964
25381
  access: "create"
24965
25382
  },
24966
- "pipelineOrchestrator.setCameraStepOverride": {
25383
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24967
25384
  capName: "pipeline-orchestrator",
24968
25385
  capScope: "system",
24969
25386
  addonId: null,
24970
25387
  access: "create"
24971
25388
  },
24972
- "pipelineOrchestrator.setCameraStepToggle": {
25389
+ "pipelineOrchestrator.setCameraStepOverride": {
24973
25390
  capName: "pipeline-orchestrator",
24974
25391
  capScope: "system",
24975
25392
  addonId: null,
24976
25393
  access: "create"
24977
25394
  },
24978
- "pipelineOrchestrator.setCapabilityBinding": {
25395
+ "pipelineOrchestrator.setCameraStepToggle": {
24979
25396
  capName: "pipeline-orchestrator",
24980
25397
  capScope: "system",
24981
25398
  addonId: null,
24982
25399
  access: "create"
24983
25400
  },
24984
- "pipelineOrchestrator.unassignAudio": {
25401
+ "pipelineOrchestrator.setCapabilityBinding": {
24985
25402
  capName: "pipeline-orchestrator",
24986
25403
  capScope: "system",
24987
25404
  addonId: null,
24988
25405
  access: "create"
24989
25406
  },
24990
- "pipelineOrchestrator.unassignDecoder": {
25407
+ "pipelineOrchestrator.unassignAudio": {
24991
25408
  capName: "pipeline-orchestrator",
24992
25409
  capScope: "system",
24993
25410
  addonId: null,
@@ -25047,6 +25464,12 @@ Object.freeze({
25047
25464
  addonId: null,
25048
25465
  access: "view"
25049
25466
  },
25467
+ "pipelineRunner.getNativeCrop": {
25468
+ capName: "pipeline-runner",
25469
+ capScope: "system",
25470
+ addonId: null,
25471
+ access: "view"
25472
+ },
25050
25473
  "pipelineRunner.reportMotion": {
25051
25474
  capName: "pipeline-runner",
25052
25475
  capScope: "system",
@@ -25287,33 +25710,45 @@ Object.freeze({
25287
25710
  addonId: null,
25288
25711
  access: "create"
25289
25712
  },
25290
- "restreamer.getExposedResources": {
25291
- capName: "restreamer",
25713
+ "scriptRunner.run": {
25714
+ capName: "script-runner",
25715
+ capScope: "device",
25716
+ addonId: null,
25717
+ access: "create"
25718
+ },
25719
+ "scriptRunner.stop": {
25720
+ capName: "script-runner",
25721
+ capScope: "device",
25722
+ addonId: null,
25723
+ access: "create"
25724
+ },
25725
+ "serverManagement.applyServerUpdate": {
25726
+ capName: "server-management",
25292
25727
  capScope: "system",
25293
25728
  addonId: null,
25294
- access: "view"
25729
+ access: "create"
25295
25730
  },
25296
- "restreamer.registerDevice": {
25297
- capName: "restreamer",
25731
+ "serverManagement.checkServerUpdate": {
25732
+ capName: "server-management",
25298
25733
  capScope: "system",
25299
25734
  addonId: null,
25300
25735
  access: "create"
25301
25736
  },
25302
- "restreamer.unregisterDevice": {
25303
- capName: "restreamer",
25737
+ "serverManagement.getServerPackageStatus": {
25738
+ capName: "server-management",
25304
25739
  capScope: "system",
25305
25740
  addonId: null,
25306
- access: "delete"
25741
+ access: "view"
25307
25742
  },
25308
- "scriptRunner.run": {
25309
- capName: "script-runner",
25310
- capScope: "device",
25743
+ "serverManagement.restartServer": {
25744
+ capName: "server-management",
25745
+ capScope: "system",
25311
25746
  addonId: null,
25312
25747
  access: "create"
25313
25748
  },
25314
- "scriptRunner.stop": {
25315
- capName: "script-runner",
25316
- capScope: "device",
25749
+ "serverManagement.rollbackServerUpdate": {
25750
+ capName: "server-management",
25751
+ capScope: "system",
25317
25752
  addonId: null,
25318
25753
  access: "create"
25319
25754
  },
@@ -25401,23 +25836,17 @@ Object.freeze({
25401
25836
  addonId: null,
25402
25837
  access: "view"
25403
25838
  },
25404
- "snapshot.invalidateCache": {
25839
+ "snapshot.getSnapshotOverview": {
25405
25840
  capName: "snapshot",
25406
25841
  capScope: "device",
25407
25842
  addonId: null,
25408
- access: "create"
25409
- },
25410
- "snapshotProvider.getSnapshot": {
25411
- capName: "snapshot-provider",
25412
- capScope: "system",
25413
- addonId: null,
25414
25843
  access: "view"
25415
25844
  },
25416
- "snapshotProvider.supportsDevice": {
25417
- capName: "snapshot-provider",
25418
- capScope: "system",
25845
+ "snapshot.invalidateCache": {
25846
+ capName: "snapshot",
25847
+ capScope: "device",
25419
25848
  addonId: null,
25420
- access: "view"
25849
+ access: "create"
25421
25850
  },
25422
25851
  "ssoBridge.signBridgeToken": {
25423
25852
  capName: "sso-bridge",
@@ -25845,30 +26274,6 @@ Object.freeze({
25845
26274
  addonId: null,
25846
26275
  access: "view"
25847
26276
  },
25848
- "streamingEngine.getStreamUrl": {
25849
- capName: "streaming-engine",
25850
- capScope: "system",
25851
- addonId: null,
25852
- access: "view"
25853
- },
25854
- "streamingEngine.listStreams": {
25855
- capName: "streaming-engine",
25856
- capScope: "system",
25857
- addonId: null,
25858
- access: "view"
25859
- },
25860
- "streamingEngine.registerStream": {
25861
- capName: "streaming-engine",
25862
- capScope: "system",
25863
- addonId: null,
25864
- access: "create"
25865
- },
25866
- "streamingEngine.unregisterStream": {
25867
- capName: "streaming-engine",
25868
- capScope: "system",
25869
- addonId: null,
25870
- access: "delete"
25871
- },
25872
26277
  "streamParams.getConfigSchema": {
25873
26278
  capName: "stream-params",
25874
26279
  capScope: "device",
@@ -26115,6 +26520,12 @@ Object.freeze({
26115
26520
  addonId: null,
26116
26521
  access: "view"
26117
26522
  },
26523
+ "userPasskeys.beginDiscoverableAuthentication": {
26524
+ capName: "user-passkeys",
26525
+ capScope: "system",
26526
+ addonId: null,
26527
+ access: "view"
26528
+ },
26118
26529
  "userPasskeys.beginRegistration": {
26119
26530
  capName: "user-passkeys",
26120
26531
  capScope: "system",
@@ -26127,12 +26538,24 @@ Object.freeze({
26127
26538
  addonId: null,
26128
26539
  access: "view"
26129
26540
  },
26541
+ "userPasskeys.finishDiscoverableAuthentication": {
26542
+ capName: "user-passkeys",
26543
+ capScope: "system",
26544
+ addonId: null,
26545
+ access: "view"
26546
+ },
26130
26547
  "userPasskeys.finishRegistration": {
26131
26548
  capName: "user-passkeys",
26132
26549
  capScope: "system",
26133
26550
  addonId: null,
26134
26551
  access: "create"
26135
26552
  },
26553
+ "userPasskeys.getSecondFactorPreference": {
26554
+ capName: "user-passkeys",
26555
+ capScope: "system",
26556
+ addonId: null,
26557
+ access: "view"
26558
+ },
26136
26559
  "userPasskeys.listPasskeys": {
26137
26560
  capName: "user-passkeys",
26138
26561
  capScope: "system",
@@ -26145,6 +26568,12 @@ Object.freeze({
26145
26568
  addonId: null,
26146
26569
  access: "delete"
26147
26570
  },
26571
+ "userPasskeys.setSecondFactorPreference": {
26572
+ capName: "user-passkeys",
26573
+ capScope: "system",
26574
+ addonId: null,
26575
+ access: "create"
26576
+ },
26148
26577
  "vacuumControl.locate": {
26149
26578
  capName: "vacuum-control",
26150
26579
  capScope: "device",
@@ -26217,6 +26646,18 @@ Object.freeze({
26217
26646
  addonId: null,
26218
26647
  access: "view"
26219
26648
  },
26649
+ "viewerUi.getStaticDir": {
26650
+ capName: "viewer-ui",
26651
+ capScope: "system",
26652
+ addonId: null,
26653
+ access: "view"
26654
+ },
26655
+ "viewerUi.getVersion": {
26656
+ capName: "viewer-ui",
26657
+ capScope: "system",
26658
+ addonId: null,
26659
+ access: "view"
26660
+ },
26220
26661
  "waterHeater.setAway": {
26221
26662
  capName: "water-heater",
26222
26663
  capScope: "device",
@@ -26235,54 +26676,6 @@ Object.freeze({
26235
26676
  addonId: null,
26236
26677
  access: "create"
26237
26678
  },
26238
- "webrtc.closeSession": {
26239
- capName: "webrtc",
26240
- capScope: "system",
26241
- addonId: null,
26242
- access: "create"
26243
- },
26244
- "webrtc.createSession": {
26245
- capName: "webrtc",
26246
- capScope: "system",
26247
- addonId: null,
26248
- access: "create"
26249
- },
26250
- "webrtc.handleAnswer": {
26251
- capName: "webrtc",
26252
- capScope: "system",
26253
- addonId: null,
26254
- access: "create"
26255
- },
26256
- "webrtc.handleOffer": {
26257
- capName: "webrtc",
26258
- capScope: "system",
26259
- addonId: null,
26260
- access: "create"
26261
- },
26262
- "webrtc.hasAdaptiveBitrate": {
26263
- capName: "webrtc",
26264
- capScope: "system",
26265
- addonId: null,
26266
- access: "view"
26267
- },
26268
- "webrtc.registerStream": {
26269
- capName: "webrtc",
26270
- capScope: "system",
26271
- addonId: null,
26272
- access: "create"
26273
- },
26274
- "webrtc.supportsStream": {
26275
- capName: "webrtc",
26276
- capScope: "system",
26277
- addonId: null,
26278
- access: "view"
26279
- },
26280
- "webrtc.unregisterStream": {
26281
- capName: "webrtc",
26282
- capScope: "system",
26283
- addonId: null,
26284
- access: "delete"
26285
- },
26286
26679
  "webrtcSession.addIceCandidate": {
26287
26680
  capName: "webrtc-session",
26288
26681
  capScope: "device",