@camstack/addon-advanced-notifier 1.1.20 → 1.1.22

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 -258
  2. package/dist/addon.mjs +681 -258
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -4628,7 +4628,7 @@ function _instanceof(cls, params = {}) {
4628
4628
  return inst;
4629
4629
  }
4630
4630
  //#endregion
4631
- //#region ../types/dist/sleep-CZDdRBua.mjs
4631
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4632
4632
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4633
4633
  EventCategory["SystemBoot"] = "system.boot";
4634
4634
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4814,6 +4814,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4814
4814
  */
4815
4815
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4816
4816
  /**
4817
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4818
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4819
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4820
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4821
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4822
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4823
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4824
+ * topology change, so a dropped event self-heals on the next one (plus the
4825
+ * broker's long backstop reconcile query).
4826
+ */
4827
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4828
+ /**
4817
4829
  * Periodic snapshot of per-node pipeline-runner load
4818
4830
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4819
4831
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5337,10 +5349,6 @@ function hydrateField(field, values) {
5337
5349
  };
5338
5350
  }
5339
5351
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5340
- if (field.type === "password") return {
5341
- ...field,
5342
- value: ""
5343
- };
5344
5352
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5345
5353
  return {
5346
5354
  ...field,
@@ -6724,6 +6732,21 @@ function method(input, output, options) {
6724
6732
  timeoutMs: options?.timeoutMs
6725
6733
  };
6726
6734
  }
6735
+ /**
6736
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6737
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6738
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6739
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6740
+ */
6741
+ function systemMethod(input, output, options) {
6742
+ return {
6743
+ ...method(input, output, options),
6744
+ systemOnly: true
6745
+ };
6746
+ }
6747
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6748
+ var VersionOutputSchema$1 = object({ version: string() });
6749
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6727
6750
  var StaticDirOutputSchema = object({ staticDir: string() });
6728
6751
  var VersionOutputSchema = object({ version: string() });
6729
6752
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6893,6 +6916,36 @@ var ModelFormatsSchema = object({
6893
6916
  tflite: ModelFormatEntrySchema.optional(),
6894
6917
  pt: ModelFormatEntrySchema.optional()
6895
6918
  });
6919
+ /**
6920
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6921
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6922
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6923
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6924
+ * resolution/download/persistence; this is a presentation overlay resolved back
6925
+ * to an `id`.
6926
+ */
6927
+ var ModelVariantGroupSchema = object({
6928
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6929
+ family: string(),
6930
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6931
+ tier: string(),
6932
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6933
+ precision: _enum(["fp32", "int8"]).optional(),
6934
+ /**
6935
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6936
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6937
+ * future performance variants plug into.
6938
+ */
6939
+ optimization: _enum(["standard", "fast"]).optional(),
6940
+ /**
6941
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6942
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6943
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6944
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6945
+ * the group so the selector can offer it as a variant axis.
6946
+ */
6947
+ resolution: number().int().positive().optional()
6948
+ });
6896
6949
  var ModelCatalogEntrySchema = object({
6897
6950
  id: string(),
6898
6951
  name: string(),
@@ -6922,7 +6975,43 @@ var ModelCatalogEntrySchema = object({
6922
6975
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6923
6976
  * Downloaded into the same modelsDir alongside the model file.
6924
6977
  */
6925
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6978
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6979
+ /**
6980
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6981
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6982
+ * model list and excluded from the auto format-default pick. Set on the
6983
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6984
+ * the active lineup stays the coherent curated ladder without deleting a
6985
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6986
+ * an explicit legacy id that has a build for the node's format.
6987
+ */
6988
+ legacy: boolean().optional(),
6989
+ /**
6990
+ * Measured quality/latency metadata — populated from the benchmark addon on
6991
+ * the real node classes. Absent = not yet measured (most entries today; the
6992
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
6993
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
6994
+ */
6995
+ metrics: object({
6996
+ map50: number().optional(),
6997
+ p95LatencyMs: record(string(), number()).optional()
6998
+ }).optional(),
6999
+ /**
7000
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7001
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7002
+ * the retraining addon and any future commercial distribution.
7003
+ */
7004
+ license: string().optional(),
7005
+ /**
7006
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7007
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7008
+ * of a family's sizes and quantizations collapse into one grouped picker
7009
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7010
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7011
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7012
+ * is a presentation overlay resolved back to an `id`.
7013
+ */
7014
+ group: ModelVariantGroupSchema.optional()
6926
7015
  });
6927
7016
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6928
7017
  format: literal("openvino"),
@@ -6983,8 +7072,8 @@ var RecordingModeSchema = _enum([
6983
7072
  "onAudioThreshold"
6984
7073
  ]);
6985
7074
  /**
6986
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6987
- * reads directly (never inferred from `rules`):
7075
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7076
+ * UI reads directly (never inferred from `rules`):
6988
7077
  * - `off` — not recording.
6989
7078
  * - `events` — record only around triggers (motion / audio threshold),
6990
7079
  * with pre/post-buffer.
@@ -8646,26 +8735,13 @@ DeviceType.Light, method(object({
8646
8735
  percentage: number().min(0).max(100),
8647
8736
  lastChangedAt: number()
8648
8737
  });
8738
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8649
8739
  var StreamFormatSchema = _enum([
8650
8740
  "webrtc",
8651
8741
  "hls",
8652
8742
  "mjpeg",
8653
8743
  "rtsp"
8654
8744
  ]);
8655
- var StreamInfoSchema = object({
8656
- streamId: string(),
8657
- format: StreamFormatSchema,
8658
- url: string().nullable(),
8659
- active: boolean()
8660
- });
8661
- method(object({
8662
- streamId: string(),
8663
- sourceUrl: string(),
8664
- codec: string().optional()
8665
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8666
- streamId: string(),
8667
- format: StreamFormatSchema
8668
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8669
8745
  var RtspRestreamEntrySchema = object({
8670
8746
  brokerId: string(),
8671
8747
  url: string(),
@@ -9330,7 +9406,7 @@ var ConsumablesStatusSchema = object({
9330
9406
  })),
9331
9407
  lastChangedAt: number()
9332
9408
  });
9333
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, method(object({
9409
+ Object.values(DeviceType), method(object({
9334
9410
  deviceId: number().int().nonnegative(),
9335
9411
  key: string().min(1)
9336
9412
  }), _void(), {
@@ -10245,7 +10321,7 @@ var BoundingBoxSchema = object({
10245
10321
  w: number(),
10246
10322
  h: number()
10247
10323
  });
10248
- var SpatialDetectionSchema = object({
10324
+ object({
10249
10325
  class: string(),
10250
10326
  originalClass: string(),
10251
10327
  score: number(),
@@ -10380,7 +10456,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10380
10456
  enabled: boolean(),
10381
10457
  modelId: string(),
10382
10458
  children: array(PipelineDefaultStepSchema).readonly(),
10383
- engine: PipelineEngineChoiceSchema.optional(),
10384
10459
  group: string().optional(),
10385
10460
  settings: record(string(), unknown()).optional()
10386
10461
  }));
@@ -10405,7 +10480,9 @@ var PipelineModelOptionSchema = object({
10405
10480
  formats: record(string(), object({
10406
10481
  downloaded: boolean(),
10407
10482
  sizeMB: number()
10408
- }))
10483
+ })),
10484
+ group: ModelVariantGroupSchema.optional(),
10485
+ legacy: boolean().optional()
10409
10486
  });
10410
10487
  var ConfigFieldBridge = custom();
10411
10488
  var PipelineAddonSchemaSchema = object({
@@ -10419,6 +10496,7 @@ var PipelineAddonSchemaSchema = object({
10419
10496
  defaultModelId: string(),
10420
10497
  defaultModelIdByFormat: record(string(), string()).optional(),
10421
10498
  enabledByDefault: boolean().optional(),
10499
+ backfillIntoExistingOverrides: boolean().optional(),
10422
10500
  defaultConfidence: number(),
10423
10501
  group: string().optional(),
10424
10502
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10435,11 +10513,6 @@ var PipelineSchemaSchema = object({
10435
10513
  selectedEngine: PipelineEngineChoiceSchema,
10436
10514
  slots: array(PipelineSlotSchemaSchema).readonly()
10437
10515
  });
10438
- var DetectorOutputSchema = object({
10439
- detections: array(SpatialDetectionSchema).readonly(),
10440
- inferenceMs: number(),
10441
- modelId: string()
10442
- });
10443
10516
  var EngineProvisioningSchema = object({
10444
10517
  runtimeId: _enum([
10445
10518
  "onnx",
@@ -10456,15 +10529,42 @@ var EngineProvisioningSchema = object({
10456
10529
  ]),
10457
10530
  progress: number().optional(),
10458
10531
  error: string().optional(),
10459
- nextRetryAt: number().optional()
10532
+ nextRetryAt: number().optional(),
10533
+ /**
10534
+ * Gate A (config-correctness gate at engine change): human-readable
10535
+ * config issues surfaced EAGERLY when the node's engine changes — model
10536
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10537
+ * has a <format> build"). Additive/optional: informational only, never
10538
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10539
+ * Absent/empty when the node-default tree resolves cleanly.
10540
+ */
10541
+ configIssues: array(string()).optional()
10460
10542
  });
10461
10543
  var PipelineStepInputSchema = lazy(() => object({
10462
10544
  addonId: string(),
10463
- modelId: string(),
10545
+ modelId: string().optional(),
10464
10546
  enabled: boolean().default(true),
10465
10547
  children: array(PipelineStepInputSchema).optional(),
10466
10548
  settings: record(string(), unknown()).optional()
10467
10549
  }));
10550
+ var ModelSubstitutionSchema = object({
10551
+ addonId: string(),
10552
+ chosen: string(),
10553
+ running: string(),
10554
+ format: string()
10555
+ });
10556
+ var PipelineValidationIssueSchema = object({
10557
+ addonId: string(),
10558
+ kind: _enum(["unknown-addon", "no-format-build"]),
10559
+ detail: string()
10560
+ });
10561
+ var PipelineValidationResultSchema = object({
10562
+ ok: boolean(),
10563
+ issues: array(PipelineValidationIssueSchema).readonly(),
10564
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10565
+ /** The node's `currentEngine.format` this validation ran against. */
10566
+ format: string()
10567
+ });
10468
10568
  var ReferenceImageEntrySchema = object({
10469
10569
  filename: string(),
10470
10570
  stepIds: array(string()).readonly().optional()
@@ -10535,7 +10635,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10535
10635
  })) }), object({ success: literal(true) }), {
10536
10636
  kind: "mutation",
10537
10637
  auth: "admin"
10538
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10638
+ }), method(object({ nodeId: string() }), object({
10639
+ success: literal(true),
10640
+ clearedDevices: number()
10641
+ }), {
10642
+ kind: "mutation",
10643
+ auth: "admin"
10644
+ }), 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({
10539
10645
  name: string(),
10540
10646
  steps: array(PipelineTemplateStepSchema).readonly(),
10541
10647
  engine: PipelineEngineChoiceSchema
@@ -10552,10 +10658,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10552
10658
  modelId: string(),
10553
10659
  format: ModelFormatSchema$1
10554
10660
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10555
- addonId: string(),
10556
- frame: FrameInputSchema,
10557
- config: record(string(), unknown()).optional()
10558
- }), DetectorOutputSchema), method(object({
10559
10661
  engine: PipelineEngineChoiceSchema.optional(),
10560
10662
  steps: array(PipelineStepInputSchema).min(1),
10561
10663
  frame: FrameInputSchema.optional(),
@@ -10701,6 +10803,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10701
10803
  auth: "admin"
10702
10804
  }), object({ zones: array(ZoneSchema).readonly() });
10703
10805
  /**
10806
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10807
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10808
+ * so the caller supplies only the detection-res bbox divided by the detection
10809
+ * dims — no native resolution to plumb.
10810
+ */
10811
+ var NativeCropBboxSchema = object({
10812
+ x: number(),
10813
+ y: number(),
10814
+ w: number(),
10815
+ h: number()
10816
+ });
10817
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10818
+ var NativeCropResultSchema = object({
10819
+ /** Packed rgb (24-bit) pixels of the crop. */
10820
+ bytes: _instanceof(Uint8Array),
10821
+ width: number().int().positive(),
10822
+ height: number().int().positive()
10823
+ });
10824
+ /**
10704
10825
  * Per-camera tunable ranges + defaults. Single source of truth used
10705
10826
  * by both the Zod data schema (validation + default fallback) and
10706
10827
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10795,6 +10916,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10795
10916
  kind: literal("remote-restream"),
10796
10917
  /** The camera's source-owner node (slice 1: always the hub). */
10797
10918
  ownerNodeId: string(),
10919
+ /**
10920
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10921
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10922
+ * dials THIS host for the owner's restream, in preference to the
10923
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10924
+ */
10925
+ ownerReachableHost: string().optional(),
10798
10926
  /** Operator override for the owner host the runner dials. */
10799
10927
  hubHostnameOverride: string().optional()
10800
10928
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10803,13 +10931,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10803
10931
  * specific runner instance via `attachCamera`. Carries everything the
10804
10932
  * runner needs to subscribe to the local broker and execute inference.
10805
10933
  *
10806
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10807
- * optional `audio`) travels with the attach payload. The runner keeps it
10808
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10809
- * restart the orchestrator re-sends the latest snapshot.
10810
- *
10811
- * `engine`/`steps`/`audio` are optional during the additive migration
10812
- * window; once orchestrator + UI are migrated they become required.
10934
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10935
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10936
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10937
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10938
+ * node-local, resolved by the executing runner at dispatch time.
10813
10939
  */
10814
10940
  var RunnerCameraConfigSchema = object({
10815
10941
  deviceId: number(),
@@ -10860,14 +10986,11 @@ var RunnerCameraConfigSchema = object({
10860
10986
  */
10861
10987
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10862
10988
  pipelineEnabled: boolean().default(true),
10863
- /** Engine choice for video steps (runtime+backend+format). */
10864
- engine: PipelineEngineChoiceSchema.optional(),
10865
10989
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10866
10990
  steps: array(PipelineStepInputSchema).readonly().optional(),
10867
10991
  /** Audio classification branch. `enabled:false` disables, null skips. */
10868
10992
  audio: object({
10869
- engine: PipelineEngineChoiceSchema,
10870
- modelId: string(),
10993
+ modelId: string().optional(),
10871
10994
  enabled: boolean()
10872
10995
  }).nullable().optional(),
10873
10996
  /**
@@ -10954,7 +11077,11 @@ var RunnerLocalMetricsSchema = object({
10954
11077
  avgInferenceTimeMs: number(),
10955
11078
  queueDepth: number()
10956
11079
  });
10957
- 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());
11080
+ 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({
11081
+ handle: FrameHandleSchema,
11082
+ bbox: NativeCropBboxSchema,
11083
+ maxWidth: number().int().positive().optional()
11084
+ }), NativeCropResultSchema.nullable());
10958
11085
  object({
10959
11086
  detected: boolean(),
10960
11087
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12248,7 +12375,9 @@ var AddonPageDeclarationSchema$1 = object({
12248
12375
  icon: string(),
12249
12376
  path: string(),
12250
12377
  remoteName: string(),
12251
- bundle: string()
12378
+ bundle: string(),
12379
+ section: string().optional(),
12380
+ sectionLabel: string().optional()
12252
12381
  });
12253
12382
  var AddonPageInfoSchema = object({
12254
12383
  addonId: string(),
@@ -12288,7 +12417,18 @@ var AddonPageDeclarationSchema = object({
12288
12417
  * the static-file route can compute an mtime-based cache-buster URL
12289
12418
  * without a separate filesystem stat.
12290
12419
  */
12291
- bundle: string()
12420
+ bundle: string(),
12421
+ /**
12422
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12423
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12424
+ * Any OTHER string creates (or joins) a custom section rendered after
12425
+ * the built-in groups; its label comes from `sectionLabel` (first
12426
+ * declaration wins), falling back to the id. Absent → the legacy
12427
+ * "Addon Pages" group.
12428
+ */
12429
+ section: string().optional(),
12430
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12431
+ sectionLabel: string().optional()
12292
12432
  });
12293
12433
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12294
12434
  var AddonHttpRouteSchema = object({
@@ -12504,6 +12644,17 @@ var WidgetMetadataSchema = object({
12504
12644
  deviceContext: boolean().default(false),
12505
12645
  integrationContext: boolean().default(false)
12506
12646
  }),
12647
+ /**
12648
+ * Loadable BEFORE authentication. The normal widget registry listing
12649
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12650
+ * (the login page) cannot discover a widget through it. A widget that
12651
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12652
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12653
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12654
+ * than the authenticated registry, and its bundle is served by the
12655
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12656
+ */
12657
+ preAuth: boolean().optional().default(false),
12507
12658
  /** Dashboard placement HINTS (operator can override per instance). */
12508
12659
  defaultSize: WidgetSizeEnum.default("md"),
12509
12660
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12817,6 +12968,66 @@ method(object({
12817
12968
  password: string()
12818
12969
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12819
12970
  /**
12971
+ * `login-method` — collection cap through which auth addons contribute
12972
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12973
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12974
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12975
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12976
+ * procedure aggregates them for the unauthenticated login page.
12977
+ *
12978
+ * A contribution is a discriminated union on `kind`:
12979
+ *
12980
+ * - `redirect` — a declarative button. The login page renders a generic
12981
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
12982
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
12983
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
12984
+ * login page needs NO change.
12985
+ *
12986
+ * - `widget` — a Module-Federation widget the login page mounts (via
12987
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
12988
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
12989
+ * addon bundle. The referenced widget also declares `preAuth: true` in
12990
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
12991
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
12992
+ *
12993
+ * Every contribution carries a `stage`:
12994
+ * - `primary` — shown on the first credentials screen (OIDC /
12995
+ * magic-link buttons; a future usernameless passkey).
12996
+ * - `second-factor` — shown AFTER the password leg, gated on the
12997
+ * returned `factors` (passkey-as-2FA today).
12998
+ *
12999
+ * `mount: skip` — the cap is read server-side by the core auth router
13000
+ * (`registry.getCollection('login-method')`), never mounted as its own
13001
+ * tRPC router.
13002
+ */
13003
+ /** When a login method renders in the two-phase login flow. */
13004
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13005
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13006
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13007
+ kind: literal("redirect"),
13008
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13009
+ id: string(),
13010
+ /** Operator-facing button label. */
13011
+ label: string(),
13012
+ /** lucide-react icon name. */
13013
+ icon: string().optional(),
13014
+ /** Addon-owned HTTP route the button navigates to (GET). */
13015
+ startUrl: string(),
13016
+ stage: LoginStageEnum
13017
+ }), object({
13018
+ kind: literal("widget"),
13019
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13020
+ id: string(),
13021
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13022
+ addonId: string(),
13023
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13024
+ bundle: string(),
13025
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13026
+ remote: WidgetRemoteSchema,
13027
+ stage: LoginStageEnum
13028
+ })]);
13029
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13030
+ /**
12820
13031
  * Orchestrator-side destination metadata. The orchestrator computes
12821
13032
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12822
13033
  * (admin UI, restore flow) see one canonical key.
@@ -14934,7 +15145,17 @@ var TrackSchema = object({
14934
15145
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14935
15146
  totalDistance: number(),
14936
15147
  state: TrackStateSchema,
14937
- active: boolean()
15148
+ active: boolean(),
15149
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15150
+ * track expiry, recomputed on late label). Absent on legacy rows written
15151
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15152
+ importance: number().optional(),
15153
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15154
+ * "best" frame). Absent when the track produced no object events. */
15155
+ bestEventId: string().optional(),
15156
+ /** Tag of the importance sub-signal that dominated the score
15157
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15158
+ importanceReason: string().optional()
14938
15159
  });
14939
15160
  var BaseEventFields = {
14940
15161
  id: string(),
@@ -14999,8 +15220,18 @@ var ObjectEventSchema = object({
14999
15220
  frameHeight: number().optional(),
15000
15221
  /** MediaStore key for the crop attached to this event (if any). */
15001
15222
  mediaKey: string().optional(),
15223
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15224
+ * best-detection full frame). Resolve via the event-media data-plane
15225
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15226
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15227
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15228
+ keyFrameMediaKey: string().optional(),
15002
15229
  /** Populated by B5 (recording playback URL for this event). */
15003
- mediaUrl: string().optional()
15230
+ mediaUrl: string().optional(),
15231
+ /** The parent track's key-event importance [0,1], propagated to every object
15232
+ * event of the track (so an event row can be sorted by importance without a
15233
+ * track join). Absent on legacy rows / before the track was scored. */
15234
+ importance: number().optional()
15004
15235
  });
15005
15236
  var AudioEventSchema = object({
15006
15237
  ...BaseEventFields,
@@ -15024,7 +15255,8 @@ var MediaFileKindEnum = _enum([
15024
15255
  "fullFrame",
15025
15256
  "fullFrameBoxed",
15026
15257
  "faceCrop",
15027
- "plateCrop"
15258
+ "plateCrop",
15259
+ "keyFrame"
15028
15260
  ]);
15029
15261
  var MediaFileSchema = object({
15030
15262
  key: string(),
@@ -15045,6 +15277,32 @@ var DeviceEventQueryInput = object({
15045
15277
  projection: _enum(["full", "slim"]).optional()
15046
15278
  });
15047
15279
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15280
+ var KeyEventQueryInput = object({
15281
+ deviceId: number(),
15282
+ /** Window lower bound (track firstSeen ≥ since). */
15283
+ since: number(),
15284
+ /** Window upper bound (track firstSeen ≤ until). */
15285
+ until: number(),
15286
+ limit: number().int().min(1).max(200).default(50),
15287
+ /** Drop tracks scoring below this importance. */
15288
+ minImportance: number().min(0).max(1).optional(),
15289
+ /** Restrict to a single class (e.g. 'person'). */
15290
+ classFilter: string().optional()
15291
+ });
15292
+ var KeyEventSchema = object({
15293
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15294
+ id: string(),
15295
+ trackId: string(),
15296
+ /** Track start time (firstSeen). */
15297
+ timestamp: number(),
15298
+ className: string(),
15299
+ label: string().optional(),
15300
+ importance: number(),
15301
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15302
+ bestEventId: string(),
15303
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15304
+ windowMs: number().optional()
15305
+ });
15048
15306
  var TrackedDetectionSchema = object({
15049
15307
  trackId: string(),
15050
15308
  className: string(),
@@ -15074,7 +15332,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15074
15332
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15075
15333
  kind: "mutation",
15076
15334
  auth: "admin"
15077
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15335
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15078
15336
  deviceId: number(),
15079
15337
  since: number(),
15080
15338
  until: number(),
@@ -15119,11 +15377,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15119
15377
  timestamp: number()
15120
15378
  });
15121
15379
  var CameraPipelineConfigSchema = object({
15122
- engine: PipelineEngineChoiceSchema,
15380
+ engine: PipelineEngineChoiceSchema.optional(),
15123
15381
  steps: array(PipelineStepInputSchema).readonly(),
15124
15382
  audio: object({
15125
- engine: PipelineEngineChoiceSchema,
15126
- modelId: string(),
15383
+ engine: PipelineEngineChoiceSchema.optional(),
15384
+ modelId: string().optional(),
15127
15385
  enabled: boolean(),
15128
15386
  settings: record(string(), unknown()).readonly().optional()
15129
15387
  }).nullable().optional()
@@ -15138,7 +15396,7 @@ var PipelineTemplateSchema = object({
15138
15396
  });
15139
15397
  var AgentAddonConfigSchema = object({
15140
15398
  enabled: boolean(),
15141
- modelId: string(),
15399
+ modelId: string().optional(),
15142
15400
  settings: record(string(), unknown()).readonly()
15143
15401
  });
15144
15402
  var AgentPipelineSettingsSchema = object({
@@ -15148,12 +15406,25 @@ var AgentPipelineSettingsSchema = object({
15148
15406
  detectWeight: number().positive().optional(),
15149
15407
  /** Node is eligible to run the detection pipeline (decode + inference). */
15150
15408
  detect: boolean().optional(),
15151
- /** Node is eligible to host decoder sessions. */
15409
+ /**
15410
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15411
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15412
+ * the schema ONLY so persisted stores written before the removal still
15413
+ * parse — no code reads it and no write path emits it.
15414
+ */
15152
15415
  decode: boolean().optional(),
15153
15416
  /** Node is eligible to run audio-analyzer sessions. */
15154
15417
  audio: boolean().optional(),
15155
15418
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15156
- ingest: boolean().optional()
15419
+ ingest: boolean().optional(),
15420
+ /**
15421
+ * Operator override for the LAN host a cross-node decoder dials to reach
15422
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15423
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15424
+ * it already uses to reach the hub). Set this only when the auto-detected
15425
+ * address is wrong (multi-homed host, NAT, custom interface).
15426
+ */
15427
+ reachableHost: string().optional()
15157
15428
  });
15158
15429
  var CameraPipelineForAgentSchema = object({
15159
15430
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15201,25 +15472,6 @@ var PipelineAssignmentSchema = object({
15201
15472
  assignedAt: number()
15202
15473
  });
15203
15474
  /**
15204
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15205
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15206
- * → co-located with pipeline → capacity).
15207
- */
15208
- var DecoderAssignmentSchema = object({
15209
- deviceId: number(),
15210
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15211
- decoderNodeId: string(),
15212
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15213
- pinned: boolean(),
15214
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15215
- reason: _enum([
15216
- "manual",
15217
- "co-located",
15218
- "capacity",
15219
- "hardware-affinity"
15220
- ])
15221
- });
15222
- /**
15223
15475
  * Per-agent load summary surfaced to the load balancer + dashboards.
15224
15476
  * Aggregated from each runner's `getLocalLoad` cap call.
15225
15477
  */
@@ -15259,6 +15511,15 @@ var GlobalMetricsSchema = object({
15259
15511
  * capability providers.
15260
15512
  */
15261
15513
  var CapabilityBindingsSchema = record(string(), string());
15514
+ /**
15515
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15516
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15517
+ */
15518
+ var IngestOwnerSchema = object({
15519
+ ownerNodeId: string(),
15520
+ reachableHost: string().optional(),
15521
+ configIssue: string().optional()
15522
+ });
15262
15523
  /** Source block — always present; derives from the stream catalog. */
15263
15524
  var CameraSourceStatusSchema = object({ streams: array(object({
15264
15525
  camStreamId: string(),
@@ -15273,6 +15534,14 @@ var CameraAssignmentStatusSchema = object({
15273
15534
  detectionNodeId: string().nullable(),
15274
15535
  decoderNodeId: string().nullable(),
15275
15536
  audioNodeId: string().nullable(),
15537
+ /**
15538
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15539
+ * hosts the broker/restream) — the cluster ingest owner today
15540
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15541
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15542
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15543
+ */
15544
+ sourceNodeId: string().nullable(),
15276
15545
  pinned: object({
15277
15546
  detection: boolean(),
15278
15547
  decoder: boolean(),
@@ -15405,16 +15674,7 @@ method(object({
15405
15674
  }), object({ success: literal(true) }), {
15406
15675
  kind: "mutation",
15407
15676
  auth: "admin"
15408
- }), method(object({
15409
- deviceId: number(),
15410
- nodeId: string()
15411
- }), _void(), {
15412
- kind: "mutation",
15413
- auth: "admin"
15414
- }), method(object({ deviceId: number() }), _void(), {
15415
- kind: "mutation",
15416
- auth: "admin"
15417
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15677
+ }), method(_void(), IngestOwnerSchema), method(object({
15418
15678
  deviceId: number(),
15419
15679
  nodeId: string()
15420
15680
  }), object({ success: literal(true) }), {
@@ -15435,10 +15695,7 @@ method(object({
15435
15695
  nodeId: string(),
15436
15696
  pinned: boolean(),
15437
15697
  assignedAt: number()
15438
- }))), method(object({
15439
- deviceId: number(),
15440
- pipelineNodeId: string().optional()
15441
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15698
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15442
15699
  nodeId: string(),
15443
15700
  settings: AgentPipelineSettingsSchema
15444
15701
  })).readonly()), method(object({
@@ -15468,12 +15725,26 @@ method(object({
15468
15725
  }), method(object({
15469
15726
  agentNodeId: string(),
15470
15727
  detect: boolean().nullable().optional(),
15471
- decode: boolean().nullable().optional(),
15472
15728
  audio: boolean().nullable().optional(),
15473
15729
  ingest: boolean().nullable().optional()
15474
15730
  }), object({ success: literal(true) }), {
15475
15731
  kind: "mutation",
15476
15732
  auth: "admin"
15733
+ }), method(object({
15734
+ agentNodeId: string(),
15735
+ reachableHost: string().nullable()
15736
+ }), object({ success: literal(true) }), {
15737
+ kind: "mutation",
15738
+ auth: "admin"
15739
+ }), method(object({ agentNodeId: string() }), object({
15740
+ success: literal(true),
15741
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15742
+ effectiveModelId: string().nullable(),
15743
+ /** Number of cameras whose node-scoped overrides were cleared. */
15744
+ clearedCameraOverrides: number()
15745
+ }), {
15746
+ kind: "mutation",
15747
+ auth: "admin"
15477
15748
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15478
15749
  deviceId: number(),
15479
15750
  addonId: string(),
@@ -15518,22 +15789,131 @@ method(object({
15518
15789
  kind: "mutation",
15519
15790
  auth: "admin"
15520
15791
  });
15521
- var RegisteredStreamSchema = object({
15522
- streamId: string(),
15523
- label: string().optional(),
15524
- codec: string(),
15525
- type: _enum(["video", "audio"]),
15526
- sourceUrl: string()
15792
+ /**
15793
+ * server-management — per-NODE singleton capability for a node's ROOT
15794
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15795
+ * agents).
15796
+ *
15797
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15798
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15799
+ * version describes the node. Updates install into
15800
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15801
+ * starter (probation boot + auto-rollback to N-1).
15802
+ *
15803
+ * Providers:
15804
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15805
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15806
+ * unpinned calls.
15807
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15808
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15809
+ * `$hub.registerNode` manifest.
15810
+ *
15811
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15812
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15813
+ * SDK) routes the call to that node's provider via the standard remote
15814
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15815
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15816
+ *
15817
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15818
+ */
15819
+ /**
15820
+ * Where the running hub's code was loaded from:
15821
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15822
+ * plain resolution and runtime updates are refused.
15823
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15824
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15825
+ */
15826
+ var ServerBootModeSchema = _enum([
15827
+ "workspace",
15828
+ "baked",
15829
+ "data-root"
15830
+ ]);
15831
+ /**
15832
+ * Update lifecycle state:
15833
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15834
+ * - `pending-restart` — a version is staged and the node has NOT yet
15835
+ * restarted onto it (still running the OLD version).
15836
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15837
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15838
+ * Apply/rollback are refused in this state and the node must NOT be
15839
+ * manually restarted, or the probation boot auto-rolls-back.
15840
+ */
15841
+ var ServerUpdateStateSchema = _enum([
15842
+ "idle",
15843
+ "checking",
15844
+ "staging",
15845
+ "pending-restart",
15846
+ "awaiting-confirmation"
15847
+ ]);
15848
+ var ServerRollbackInfoSchema = object({
15849
+ /** The version that failed (or was manually rolled back). */
15850
+ fromVersion: string(),
15851
+ /** The version rolled back to; null = the baked seed. */
15852
+ toVersion: string().nullable(),
15853
+ atMs: number(),
15854
+ reason: string()
15527
15855
  });
15528
- var ExposedResourceSchema = object({
15529
- streamId: string(),
15530
- format: string(),
15531
- value: string()
15856
+ var ServerPackageStatusSchema = object({
15857
+ /** Root package name (`@camstack/server` on the hub). */
15858
+ packageName: string(),
15859
+ /** Version of the code the running process ACTUALLY loaded. */
15860
+ runningVersion: string().nullable(),
15861
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15862
+ nodeRuntimeVersion: string().nullable(),
15863
+ /** Active data-dir root version; null when booted from seed/workspace. */
15864
+ activeVersion: string().nullable(),
15865
+ /** N-1 version kept for rollback; null when no previous version exists. */
15866
+ previousVersion: string().nullable(),
15867
+ /** Version of the immutable baked seed closure (image fallback). */
15868
+ seedVersion: string().nullable(),
15869
+ /** Latest registry version from the most recent check (null = never checked). */
15870
+ latestVersion: string().nullable(),
15871
+ updateAvailable: boolean(),
15872
+ bootMode: ServerBootModeSchema,
15873
+ updateState: ServerUpdateStateSchema,
15874
+ /** Version staged + awaiting its probation boot, when one is pending. */
15875
+ pendingVersion: string().nullable(),
15876
+ /** Set when the last freshly-activated version failed its boot health-check. */
15877
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15878
+ /**
15879
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15880
+ * hub is running from the baked seed (or workspace) while installed data-dir
15881
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15882
+ */
15883
+ stateFileCorrupt: boolean(),
15884
+ lastCheckedAtMs: number().nullable()
15885
+ });
15886
+ var ServerUpdateCheckResultSchema = object({
15887
+ packageName: string(),
15888
+ runningVersion: string().nullable(),
15889
+ latestVersion: string().nullable(),
15890
+ updateAvailable: boolean(),
15891
+ checkedAtMs: number(),
15892
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15893
+ error: string().nullable()
15894
+ });
15895
+ var ServerUpdateActionResultSchema = object({
15896
+ accepted: boolean(),
15897
+ targetVersion: string().nullable(),
15898
+ /** True when a graceful restart was scheduled to apply the change. */
15899
+ restarting: boolean(),
15900
+ message: string()
15901
+ });
15902
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15903
+ kind: "mutation",
15904
+ auth: "admin"
15905
+ }), method(object({
15906
+ /** Explicit target version; omitted = latest from the registry. */
15907
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15908
+ kind: "mutation",
15909
+ auth: "admin"
15910
+ }), method(_void(), ServerUpdateActionResultSchema, {
15911
+ kind: "mutation",
15912
+ auth: "admin"
15913
+ }), method(_void(), ServerUpdateActionResultSchema, {
15914
+ kind: "mutation",
15915
+ auth: "admin"
15532
15916
  });
15533
- method(object({
15534
- deviceId: number(),
15535
- streams: array(RegisteredStreamSchema).readonly()
15536
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15537
15917
  /**
15538
15918
  * Query filter for settings-store collections.
15539
15919
  */
@@ -15686,9 +16066,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15686
16066
  /**
15687
16067
  * A single device snapshot returned as base64 JPEG/PNG.
15688
16068
  *
15689
- * Shared with the `snapshot-provider` collection cap the orchestrator
15690
- * receives the same shape from each native provider and from the
15691
- * broker-based fallback.
16069
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16070
+ * the device-native provider (onboard capture) or from the stream-broker
16071
+ * prebuffer fallback.
15692
16072
  */
15693
16073
  var SnapshotImageSchema = object({
15694
16074
  base64: string(),
@@ -15719,11 +16099,12 @@ DeviceType.Camera, method(object({
15719
16099
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15720
16100
  kind: "mutation",
15721
16101
  auth: "admin"
15722
- });
15723
- method(object({ deviceId: number() }), boolean()), method(object({
16102
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15724
16103
  deviceId: number(),
15725
- streamId: string().optional()
15726
- }), SnapshotImageSchema.nullable());
16104
+ lastCapturedAt: number().nullable(),
16105
+ cacheAgeMs: number().nullable(),
16106
+ etag: string().nullable()
16107
+ })));
15727
16108
  /**
15728
16109
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15729
16110
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -15974,10 +16355,32 @@ method(_void(), array(TurnServerSchema).readonly());
15974
16355
  * b. `finishAuthentication({userId, response})` → server verifies
15975
16356
  * the assertion, bumps the credential counter, returns ok.
15976
16357
  *
16358
+ * 2b. Usernameless (discoverable-credential) authentication — the
16359
+ * passkey IS the primary factor, no password leg:
16360
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16361
+ * EMPTY `allowCredentials` (the browser offers every resident
16362
+ * passkey it holds for this RP) + `userVerification: 'required'`
16363
+ * (the passkey replaces both factors, so UV is mandatory).
16364
+ * The challenge is stored server-side, NOT bound to any user.
16365
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16366
+ * resolves the credential by the response's credential id,
16367
+ * verifies the assertion against the stored challenge + that
16368
+ * credential's public key/counter, and returns the OWNING
16369
+ * `userId` — the caller (core auth router) mints the session.
16370
+ *
15977
16371
  * 3. Management:
15978
16372
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
15979
16373
  * - `removePasskey({userId, credentialId})` — revoke one credential.
15980
16374
  *
16375
+ * 4. Second-factor preference (opt-in, default OFF):
16376
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16377
+ * demanded as a second factor after a password login ONLY when the
16378
+ * user explicitly opts in via `setSecondFactorPreference`.
16379
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16380
+ * row ⇒ `enabled: false`).
16381
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16382
+ * the providing addon beside its credentials.
16383
+ *
15981
16384
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
15982
16385
  * the admin-ui composes the begin/finish round-trip and never exposes
15983
16386
  * the cap to non-admins.
@@ -16020,6 +16423,17 @@ method(object({
16020
16423
  }), object({ verified: boolean() }), {
16021
16424
  kind: "mutation",
16022
16425
  access: "view"
16426
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16427
+ kind: "mutation",
16428
+ access: "view"
16429
+ }), method(object({
16430
+ /** AuthenticationResponseJSON from the browser. */
16431
+ response: record(string(), unknown()) }), object({
16432
+ verified: boolean(),
16433
+ userId: string().nullable()
16434
+ }), {
16435
+ kind: "mutation",
16436
+ access: "view"
16023
16437
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16024
16438
  userId: string(),
16025
16439
  credentialId: string()
@@ -16027,6 +16441,13 @@ method(object({
16027
16441
  kind: "mutation",
16028
16442
  auth: "admin",
16029
16443
  access: "delete"
16444
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16445
+ userId: string(),
16446
+ enabled: boolean()
16447
+ }), object({ success: literal(true) }), {
16448
+ kind: "mutation",
16449
+ auth: "admin",
16450
+ access: "create"
16030
16451
  });
16031
16452
  /**
16032
16453
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16084,9 +16505,10 @@ method(object({
16084
16505
  auth: "admin"
16085
16506
  });
16086
16507
  /**
16087
- * Optional client-side hints sent at session creation to help the
16088
- * provider pick the best native source. All fields are optional —
16089
- * a viewer that knows nothing still gets a sane default.
16508
+ * Optional client-side hints sent at session creation to help the provider
16509
+ * pick the best native source. All fields optional — a viewer that knows
16510
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16511
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16090
16512
  */
16091
16513
  var webrtcClientHintsSchema = object({
16092
16514
  viewportWidth: number().int().positive().optional(),
@@ -16097,22 +16519,6 @@ var webrtcClientHintsSchema = object({
16097
16519
  /** Hard tier override; takes precedence over scoring when registered. */
16098
16520
  prefersTier: string().optional()
16099
16521
  }).partial();
16100
- method(object({
16101
- streamId: string(),
16102
- sdpOffer: string()
16103
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16104
- streamId: string(),
16105
- codec: string()
16106
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16107
- streamId: string(),
16108
- hints: webrtcClientHintsSchema.optional()
16109
- }), object({
16110
- sessionId: string(),
16111
- sdpOffer: string()
16112
- }), { kind: "mutation" }), method(object({
16113
- sessionId: string(),
16114
- sdpAnswer: string()
16115
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16116
16522
  /**
16117
16523
  * Discriminated target for a WebRTC session. The client sends this
16118
16524
  * structured object instead of building / parsing brokerId strings;
@@ -16599,7 +17005,15 @@ var FrameworkPackageStatusSchema = object({
16599
17005
  latestVersion: string().nullable(),
16600
17006
  hasUpdate: boolean(),
16601
17007
  /** Optional manifest description for the row tooltip. */
16602
- description: string().optional()
17008
+ description: string().optional(),
17009
+ /**
17010
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
17011
+ * ACTUALLY loaded. Framework packages ship code changes without always
17012
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
17013
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
17014
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
17015
+ */
17016
+ buildId: string().nullable()
16603
17017
  });
16604
17018
  var LogStreamEntrySchema = object({
16605
17019
  timestamp: string(),
@@ -16835,7 +17249,17 @@ var FaceInfoSchema = object({
16835
17249
  recognizedIdentityId: string().optional(),
16836
17250
  identityName: string().optional(),
16837
17251
  assigned: boolean(),
16838
- base64: string().optional()
17252
+ base64: string().optional(),
17253
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17254
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17255
+ * legacy rows written before design B. */
17256
+ faceBbox: BoundingBoxSchema.optional(),
17257
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17258
+ * Fetch the native JPEG via the event-media data-plane
17259
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17260
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17261
+ * back to the inline `base64` face crop. */
17262
+ keyFrameMediaKey: string().optional()
16839
17263
  });
16840
17264
  var FaceFilterEnum = _enum([
16841
17265
  "unassigned",
@@ -17532,6 +17956,16 @@ var TopologyCategorySchema = object({
17532
17956
  healthy: number(),
17533
17957
  addons: array(TopologyCategoryAddonSchema).readonly()
17534
17958
  });
17959
+ /**
17960
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17961
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17962
+ * version visibility for the Server management surface. Nullable: offline
17963
+ * rows and pre-phase-2 nodes report none.
17964
+ */
17965
+ var TopologyRootPackageSchema = object({
17966
+ name: string(),
17967
+ version: string()
17968
+ });
17535
17969
  var TopologyNodeSchema = object({
17536
17970
  id: string(),
17537
17971
  name: string(),
@@ -17555,7 +17989,8 @@ var TopologyNodeSchema = object({
17555
17989
  status: string()
17556
17990
  })).readonly(),
17557
17991
  processes: array(TopologyProcessSchema).readonly(),
17558
- categories: array(TopologyCategorySchema).readonly()
17992
+ categories: array(TopologyCategorySchema).readonly(),
17993
+ rootPackage: TopologyRootPackageSchema.nullable()
17559
17994
  });
17560
17995
  var CapUsageEdgeSchema = object({
17561
17996
  callerAddonId: string(),
@@ -20355,6 +20790,12 @@ Object.freeze({
20355
20790
  addonId: null,
20356
20791
  access: "create"
20357
20792
  },
20793
+ "loginMethod.getLoginMethods": {
20794
+ capName: "login-method",
20795
+ capScope: "system",
20796
+ addonId: null,
20797
+ access: "view"
20798
+ },
20358
20799
  "mediaPlayer.next": {
20359
20800
  capName: "media-player",
20360
20801
  capScope: "device",
@@ -20937,6 +21378,12 @@ Object.freeze({
20937
21378
  addonId: null,
20938
21379
  access: "view"
20939
21380
  },
21381
+ "pipelineAnalytics.getKeyEvents": {
21382
+ capName: "pipeline-analytics",
21383
+ capScope: "device",
21384
+ addonId: null,
21385
+ access: "view"
21386
+ },
20940
21387
  "pipelineAnalytics.getMotionEvents": {
20941
21388
  capName: "pipeline-analytics",
20942
21389
  capScope: "device",
@@ -20985,23 +21432,23 @@ Object.freeze({
20985
21432
  addonId: null,
20986
21433
  access: "create"
20987
21434
  },
20988
- "pipelineExecutor.deleteModel": {
21435
+ "pipelineExecutor.clearDeviceOverrides": {
20989
21436
  capName: "pipeline-executor",
20990
21437
  capScope: "system",
20991
21438
  addonId: null,
20992
21439
  access: "delete"
20993
21440
  },
20994
- "pipelineExecutor.deleteTemplate": {
21441
+ "pipelineExecutor.deleteModel": {
20995
21442
  capName: "pipeline-executor",
20996
21443
  capScope: "system",
20997
21444
  addonId: null,
20998
21445
  access: "delete"
20999
21446
  },
21000
- "pipelineExecutor.detect": {
21447
+ "pipelineExecutor.deleteTemplate": {
21001
21448
  capName: "pipeline-executor",
21002
21449
  capScope: "system",
21003
21450
  addonId: null,
21004
- access: "view"
21451
+ access: "delete"
21005
21452
  },
21006
21453
  "pipelineExecutor.downloadModel": {
21007
21454
  capName: "pipeline-executor",
@@ -21195,13 +21642,13 @@ Object.freeze({
21195
21642
  addonId: null,
21196
21643
  access: "create"
21197
21644
  },
21198
- "pipelineOrchestrator.assignAudio": {
21199
- capName: "pipeline-orchestrator",
21645
+ "pipelineExecutor.validatePipeline": {
21646
+ capName: "pipeline-executor",
21200
21647
  capScope: "system",
21201
21648
  addonId: null,
21202
- access: "create"
21649
+ access: "view"
21203
21650
  },
21204
- "pipelineOrchestrator.assignDecoder": {
21651
+ "pipelineOrchestrator.assignAudio": {
21205
21652
  capName: "pipeline-orchestrator",
21206
21653
  capScope: "system",
21207
21654
  addonId: null,
@@ -21285,19 +21732,13 @@ Object.freeze({
21285
21732
  addonId: null,
21286
21733
  access: "view"
21287
21734
  },
21288
- "pipelineOrchestrator.getDecoderAssignment": {
21289
- capName: "pipeline-orchestrator",
21290
- capScope: "system",
21291
- addonId: null,
21292
- access: "view"
21293
- },
21294
- "pipelineOrchestrator.getDecoderAssignments": {
21735
+ "pipelineOrchestrator.getGlobalMetrics": {
21295
21736
  capName: "pipeline-orchestrator",
21296
21737
  capScope: "system",
21297
21738
  addonId: null,
21298
21739
  access: "view"
21299
21740
  },
21300
- "pipelineOrchestrator.getGlobalMetrics": {
21741
+ "pipelineOrchestrator.getIngestOwner": {
21301
21742
  capName: "pipeline-orchestrator",
21302
21743
  capScope: "system",
21303
21744
  addonId: null,
@@ -21339,6 +21780,12 @@ Object.freeze({
21339
21780
  addonId: null,
21340
21781
  access: "delete"
21341
21782
  },
21783
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21784
+ capName: "pipeline-orchestrator",
21785
+ capScope: "system",
21786
+ addonId: null,
21787
+ access: "delete"
21788
+ },
21342
21789
  "pipelineOrchestrator.resolvePipeline": {
21343
21790
  capName: "pipeline-orchestrator",
21344
21791
  capScope: "system",
@@ -21375,37 +21822,37 @@ Object.freeze({
21375
21822
  addonId: null,
21376
21823
  access: "create"
21377
21824
  },
21378
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21825
+ "pipelineOrchestrator.setAgentReachableHost": {
21379
21826
  capName: "pipeline-orchestrator",
21380
21827
  capScope: "system",
21381
21828
  addonId: null,
21382
21829
  access: "create"
21383
21830
  },
21384
- "pipelineOrchestrator.setCameraStepOverride": {
21831
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21385
21832
  capName: "pipeline-orchestrator",
21386
21833
  capScope: "system",
21387
21834
  addonId: null,
21388
21835
  access: "create"
21389
21836
  },
21390
- "pipelineOrchestrator.setCameraStepToggle": {
21837
+ "pipelineOrchestrator.setCameraStepOverride": {
21391
21838
  capName: "pipeline-orchestrator",
21392
21839
  capScope: "system",
21393
21840
  addonId: null,
21394
21841
  access: "create"
21395
21842
  },
21396
- "pipelineOrchestrator.setCapabilityBinding": {
21843
+ "pipelineOrchestrator.setCameraStepToggle": {
21397
21844
  capName: "pipeline-orchestrator",
21398
21845
  capScope: "system",
21399
21846
  addonId: null,
21400
21847
  access: "create"
21401
21848
  },
21402
- "pipelineOrchestrator.unassignAudio": {
21849
+ "pipelineOrchestrator.setCapabilityBinding": {
21403
21850
  capName: "pipeline-orchestrator",
21404
21851
  capScope: "system",
21405
21852
  addonId: null,
21406
21853
  access: "create"
21407
21854
  },
21408
- "pipelineOrchestrator.unassignDecoder": {
21855
+ "pipelineOrchestrator.unassignAudio": {
21409
21856
  capName: "pipeline-orchestrator",
21410
21857
  capScope: "system",
21411
21858
  addonId: null,
@@ -21465,6 +21912,12 @@ Object.freeze({
21465
21912
  addonId: null,
21466
21913
  access: "view"
21467
21914
  },
21915
+ "pipelineRunner.getNativeCrop": {
21916
+ capName: "pipeline-runner",
21917
+ capScope: "system",
21918
+ addonId: null,
21919
+ access: "view"
21920
+ },
21468
21921
  "pipelineRunner.reportMotion": {
21469
21922
  capName: "pipeline-runner",
21470
21923
  capScope: "system",
@@ -21705,33 +22158,45 @@ Object.freeze({
21705
22158
  addonId: null,
21706
22159
  access: "create"
21707
22160
  },
21708
- "restreamer.getExposedResources": {
21709
- capName: "restreamer",
22161
+ "scriptRunner.run": {
22162
+ capName: "script-runner",
22163
+ capScope: "device",
22164
+ addonId: null,
22165
+ access: "create"
22166
+ },
22167
+ "scriptRunner.stop": {
22168
+ capName: "script-runner",
22169
+ capScope: "device",
22170
+ addonId: null,
22171
+ access: "create"
22172
+ },
22173
+ "serverManagement.applyServerUpdate": {
22174
+ capName: "server-management",
21710
22175
  capScope: "system",
21711
22176
  addonId: null,
21712
- access: "view"
22177
+ access: "create"
21713
22178
  },
21714
- "restreamer.registerDevice": {
21715
- capName: "restreamer",
22179
+ "serverManagement.checkServerUpdate": {
22180
+ capName: "server-management",
21716
22181
  capScope: "system",
21717
22182
  addonId: null,
21718
22183
  access: "create"
21719
22184
  },
21720
- "restreamer.unregisterDevice": {
21721
- capName: "restreamer",
22185
+ "serverManagement.getServerPackageStatus": {
22186
+ capName: "server-management",
21722
22187
  capScope: "system",
21723
22188
  addonId: null,
21724
- access: "delete"
22189
+ access: "view"
21725
22190
  },
21726
- "scriptRunner.run": {
21727
- capName: "script-runner",
21728
- capScope: "device",
22191
+ "serverManagement.restartServer": {
22192
+ capName: "server-management",
22193
+ capScope: "system",
21729
22194
  addonId: null,
21730
22195
  access: "create"
21731
22196
  },
21732
- "scriptRunner.stop": {
21733
- capName: "script-runner",
21734
- capScope: "device",
22197
+ "serverManagement.rollbackServerUpdate": {
22198
+ capName: "server-management",
22199
+ capScope: "system",
21735
22200
  addonId: null,
21736
22201
  access: "create"
21737
22202
  },
@@ -21819,23 +22284,17 @@ Object.freeze({
21819
22284
  addonId: null,
21820
22285
  access: "view"
21821
22286
  },
21822
- "snapshot.invalidateCache": {
22287
+ "snapshot.getSnapshotOverview": {
21823
22288
  capName: "snapshot",
21824
22289
  capScope: "device",
21825
22290
  addonId: null,
21826
- access: "create"
21827
- },
21828
- "snapshotProvider.getSnapshot": {
21829
- capName: "snapshot-provider",
21830
- capScope: "system",
21831
- addonId: null,
21832
22291
  access: "view"
21833
22292
  },
21834
- "snapshotProvider.supportsDevice": {
21835
- capName: "snapshot-provider",
21836
- capScope: "system",
22293
+ "snapshot.invalidateCache": {
22294
+ capName: "snapshot",
22295
+ capScope: "device",
21837
22296
  addonId: null,
21838
- access: "view"
22297
+ access: "create"
21839
22298
  },
21840
22299
  "ssoBridge.signBridgeToken": {
21841
22300
  capName: "sso-bridge",
@@ -22263,30 +22722,6 @@ Object.freeze({
22263
22722
  addonId: null,
22264
22723
  access: "view"
22265
22724
  },
22266
- "streamingEngine.getStreamUrl": {
22267
- capName: "streaming-engine",
22268
- capScope: "system",
22269
- addonId: null,
22270
- access: "view"
22271
- },
22272
- "streamingEngine.listStreams": {
22273
- capName: "streaming-engine",
22274
- capScope: "system",
22275
- addonId: null,
22276
- access: "view"
22277
- },
22278
- "streamingEngine.registerStream": {
22279
- capName: "streaming-engine",
22280
- capScope: "system",
22281
- addonId: null,
22282
- access: "create"
22283
- },
22284
- "streamingEngine.unregisterStream": {
22285
- capName: "streaming-engine",
22286
- capScope: "system",
22287
- addonId: null,
22288
- access: "delete"
22289
- },
22290
22725
  "streamParams.getConfigSchema": {
22291
22726
  capName: "stream-params",
22292
22727
  capScope: "device",
@@ -22533,6 +22968,12 @@ Object.freeze({
22533
22968
  addonId: null,
22534
22969
  access: "view"
22535
22970
  },
22971
+ "userPasskeys.beginDiscoverableAuthentication": {
22972
+ capName: "user-passkeys",
22973
+ capScope: "system",
22974
+ addonId: null,
22975
+ access: "view"
22976
+ },
22536
22977
  "userPasskeys.beginRegistration": {
22537
22978
  capName: "user-passkeys",
22538
22979
  capScope: "system",
@@ -22545,12 +22986,24 @@ Object.freeze({
22545
22986
  addonId: null,
22546
22987
  access: "view"
22547
22988
  },
22989
+ "userPasskeys.finishDiscoverableAuthentication": {
22990
+ capName: "user-passkeys",
22991
+ capScope: "system",
22992
+ addonId: null,
22993
+ access: "view"
22994
+ },
22548
22995
  "userPasskeys.finishRegistration": {
22549
22996
  capName: "user-passkeys",
22550
22997
  capScope: "system",
22551
22998
  addonId: null,
22552
22999
  access: "create"
22553
23000
  },
23001
+ "userPasskeys.getSecondFactorPreference": {
23002
+ capName: "user-passkeys",
23003
+ capScope: "system",
23004
+ addonId: null,
23005
+ access: "view"
23006
+ },
22554
23007
  "userPasskeys.listPasskeys": {
22555
23008
  capName: "user-passkeys",
22556
23009
  capScope: "system",
@@ -22563,6 +23016,12 @@ Object.freeze({
22563
23016
  addonId: null,
22564
23017
  access: "delete"
22565
23018
  },
23019
+ "userPasskeys.setSecondFactorPreference": {
23020
+ capName: "user-passkeys",
23021
+ capScope: "system",
23022
+ addonId: null,
23023
+ access: "create"
23024
+ },
22566
23025
  "vacuumControl.locate": {
22567
23026
  capName: "vacuum-control",
22568
23027
  capScope: "device",
@@ -22635,6 +23094,18 @@ Object.freeze({
22635
23094
  addonId: null,
22636
23095
  access: "view"
22637
23096
  },
23097
+ "viewerUi.getStaticDir": {
23098
+ capName: "viewer-ui",
23099
+ capScope: "system",
23100
+ addonId: null,
23101
+ access: "view"
23102
+ },
23103
+ "viewerUi.getVersion": {
23104
+ capName: "viewer-ui",
23105
+ capScope: "system",
23106
+ addonId: null,
23107
+ access: "view"
23108
+ },
22638
23109
  "waterHeater.setAway": {
22639
23110
  capName: "water-heater",
22640
23111
  capScope: "device",
@@ -22653,54 +23124,6 @@ Object.freeze({
22653
23124
  addonId: null,
22654
23125
  access: "create"
22655
23126
  },
22656
- "webrtc.closeSession": {
22657
- capName: "webrtc",
22658
- capScope: "system",
22659
- addonId: null,
22660
- access: "create"
22661
- },
22662
- "webrtc.createSession": {
22663
- capName: "webrtc",
22664
- capScope: "system",
22665
- addonId: null,
22666
- access: "create"
22667
- },
22668
- "webrtc.handleAnswer": {
22669
- capName: "webrtc",
22670
- capScope: "system",
22671
- addonId: null,
22672
- access: "create"
22673
- },
22674
- "webrtc.handleOffer": {
22675
- capName: "webrtc",
22676
- capScope: "system",
22677
- addonId: null,
22678
- access: "create"
22679
- },
22680
- "webrtc.hasAdaptiveBitrate": {
22681
- capName: "webrtc",
22682
- capScope: "system",
22683
- addonId: null,
22684
- access: "view"
22685
- },
22686
- "webrtc.registerStream": {
22687
- capName: "webrtc",
22688
- capScope: "system",
22689
- addonId: null,
22690
- access: "create"
22691
- },
22692
- "webrtc.supportsStream": {
22693
- capName: "webrtc",
22694
- capScope: "system",
22695
- addonId: null,
22696
- access: "view"
22697
- },
22698
- "webrtc.unregisterStream": {
22699
- capName: "webrtc",
22700
- capScope: "system",
22701
- addonId: null,
22702
- access: "delete"
22703
- },
22704
23127
  "webrtcSession.addIceCandidate": {
22705
23128
  capName: "webrtc-session",
22706
23129
  capScope: "device",