@camstack/addon-notifiers 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
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-CZDdRBua.mjs
4630
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4813,6 +4813,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4813
4813
  */
4814
4814
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4815
4815
  /**
4816
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4817
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4818
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4819
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4820
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4821
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4822
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4823
+ * topology change, so a dropped event self-heals on the next one (plus the
4824
+ * broker's long backstop reconcile query).
4825
+ */
4826
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4827
+ /**
4816
4828
  * Periodic snapshot of per-node pipeline-runner load
4817
4829
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4818
4830
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5336,10 +5348,6 @@ function hydrateField(field, values) {
5336
5348
  };
5337
5349
  }
5338
5350
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5339
- if (field.type === "password") return {
5340
- ...field,
5341
- value: ""
5342
- };
5343
5351
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5344
5352
  return {
5345
5353
  ...field,
@@ -6723,6 +6731,21 @@ function method(input, output, options) {
6723
6731
  timeoutMs: options?.timeoutMs
6724
6732
  };
6725
6733
  }
6734
+ /**
6735
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6736
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6737
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6738
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6739
+ */
6740
+ function systemMethod(input, output, options) {
6741
+ return {
6742
+ ...method(input, output, options),
6743
+ systemOnly: true
6744
+ };
6745
+ }
6746
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6747
+ var VersionOutputSchema$1 = object({ version: string() });
6748
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6726
6749
  var StaticDirOutputSchema = object({ staticDir: string() });
6727
6750
  var VersionOutputSchema = object({ version: string() });
6728
6751
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6892,6 +6915,36 @@ var ModelFormatsSchema = object({
6892
6915
  tflite: ModelFormatEntrySchema.optional(),
6893
6916
  pt: ModelFormatEntrySchema.optional()
6894
6917
  });
6918
+ /**
6919
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6920
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6921
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6922
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6923
+ * resolution/download/persistence; this is a presentation overlay resolved back
6924
+ * to an `id`.
6925
+ */
6926
+ var ModelVariantGroupSchema = object({
6927
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6928
+ family: string(),
6929
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6930
+ tier: string(),
6931
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6932
+ precision: _enum(["fp32", "int8"]).optional(),
6933
+ /**
6934
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6935
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6936
+ * future performance variants plug into.
6937
+ */
6938
+ optimization: _enum(["standard", "fast"]).optional(),
6939
+ /**
6940
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6941
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6942
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6943
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6944
+ * the group so the selector can offer it as a variant axis.
6945
+ */
6946
+ resolution: number().int().positive().optional()
6947
+ });
6895
6948
  var ModelCatalogEntrySchema = object({
6896
6949
  id: string(),
6897
6950
  name: string(),
@@ -6921,7 +6974,43 @@ var ModelCatalogEntrySchema = object({
6921
6974
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6922
6975
  * Downloaded into the same modelsDir alongside the model file.
6923
6976
  */
6924
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6977
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6978
+ /**
6979
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6980
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6981
+ * model list and excluded from the auto format-default pick. Set on the
6982
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6983
+ * the active lineup stays the coherent curated ladder without deleting a
6984
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6985
+ * an explicit legacy id that has a build for the node's format.
6986
+ */
6987
+ legacy: boolean().optional(),
6988
+ /**
6989
+ * Measured quality/latency metadata — populated from the benchmark addon on
6990
+ * the real node classes. Absent = not yet measured (most entries today; the
6991
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
6992
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
6993
+ */
6994
+ metrics: object({
6995
+ map50: number().optional(),
6996
+ p95LatencyMs: record(string(), number()).optional()
6997
+ }).optional(),
6998
+ /**
6999
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7000
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7001
+ * the retraining addon and any future commercial distribution.
7002
+ */
7003
+ license: string().optional(),
7004
+ /**
7005
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7006
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7007
+ * of a family's sizes and quantizations collapse into one grouped picker
7008
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7009
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7010
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7011
+ * is a presentation overlay resolved back to an `id`.
7012
+ */
7013
+ group: ModelVariantGroupSchema.optional()
6925
7014
  });
6926
7015
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6927
7016
  format: literal("openvino"),
@@ -6982,8 +7071,8 @@ var RecordingModeSchema = _enum([
6982
7071
  "onAudioThreshold"
6983
7072
  ]);
6984
7073
  /**
6985
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6986
- * reads directly (never inferred from `rules`):
7074
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7075
+ * UI reads directly (never inferred from `rules`):
6987
7076
  * - `off` — not recording.
6988
7077
  * - `events` — record only around triggers (motion / audio threshold),
6989
7078
  * with pre/post-buffer.
@@ -8824,26 +8913,13 @@ DeviceType.Light, method(object({
8824
8913
  percentage: number().min(0).max(100),
8825
8914
  lastChangedAt: number()
8826
8915
  });
8916
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8827
8917
  var StreamFormatSchema = _enum([
8828
8918
  "webrtc",
8829
8919
  "hls",
8830
8920
  "mjpeg",
8831
8921
  "rtsp"
8832
8922
  ]);
8833
- var StreamInfoSchema = object({
8834
- streamId: string(),
8835
- format: StreamFormatSchema,
8836
- url: string().nullable(),
8837
- active: boolean()
8838
- });
8839
- method(object({
8840
- streamId: string(),
8841
- sourceUrl: string(),
8842
- codec: string().optional()
8843
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8844
- streamId: string(),
8845
- format: StreamFormatSchema
8846
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8847
8923
  var RtspRestreamEntrySchema = object({
8848
8924
  brokerId: string(),
8849
8925
  url: string(),
@@ -9508,7 +9584,7 @@ var ConsumablesStatusSchema = object({
9508
9584
  })),
9509
9585
  lastChangedAt: number()
9510
9586
  });
9511
- 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({
9587
+ Object.values(DeviceType), method(object({
9512
9588
  deviceId: number().int().nonnegative(),
9513
9589
  key: string().min(1)
9514
9590
  }), _void(), {
@@ -10423,7 +10499,7 @@ var BoundingBoxSchema = object({
10423
10499
  w: number(),
10424
10500
  h: number()
10425
10501
  });
10426
- var SpatialDetectionSchema = object({
10502
+ object({
10427
10503
  class: string(),
10428
10504
  originalClass: string(),
10429
10505
  score: number(),
@@ -10558,7 +10634,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10558
10634
  enabled: boolean(),
10559
10635
  modelId: string(),
10560
10636
  children: array(PipelineDefaultStepSchema).readonly(),
10561
- engine: PipelineEngineChoiceSchema.optional(),
10562
10637
  group: string().optional(),
10563
10638
  settings: record(string(), unknown()).optional()
10564
10639
  }));
@@ -10583,7 +10658,9 @@ var PipelineModelOptionSchema = object({
10583
10658
  formats: record(string(), object({
10584
10659
  downloaded: boolean(),
10585
10660
  sizeMB: number()
10586
- }))
10661
+ })),
10662
+ group: ModelVariantGroupSchema.optional(),
10663
+ legacy: boolean().optional()
10587
10664
  });
10588
10665
  var ConfigFieldBridge = custom();
10589
10666
  var PipelineAddonSchemaSchema = object({
@@ -10597,6 +10674,7 @@ var PipelineAddonSchemaSchema = object({
10597
10674
  defaultModelId: string(),
10598
10675
  defaultModelIdByFormat: record(string(), string()).optional(),
10599
10676
  enabledByDefault: boolean().optional(),
10677
+ backfillIntoExistingOverrides: boolean().optional(),
10600
10678
  defaultConfidence: number(),
10601
10679
  group: string().optional(),
10602
10680
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10613,11 +10691,6 @@ var PipelineSchemaSchema = object({
10613
10691
  selectedEngine: PipelineEngineChoiceSchema,
10614
10692
  slots: array(PipelineSlotSchemaSchema).readonly()
10615
10693
  });
10616
- var DetectorOutputSchema = object({
10617
- detections: array(SpatialDetectionSchema).readonly(),
10618
- inferenceMs: number(),
10619
- modelId: string()
10620
- });
10621
10694
  var EngineProvisioningSchema = object({
10622
10695
  runtimeId: _enum([
10623
10696
  "onnx",
@@ -10634,15 +10707,42 @@ var EngineProvisioningSchema = object({
10634
10707
  ]),
10635
10708
  progress: number().optional(),
10636
10709
  error: string().optional(),
10637
- nextRetryAt: number().optional()
10710
+ nextRetryAt: number().optional(),
10711
+ /**
10712
+ * Gate A (config-correctness gate at engine change): human-readable
10713
+ * config issues surfaced EAGERLY when the node's engine changes — model
10714
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10715
+ * has a <format> build"). Additive/optional: informational only, never
10716
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10717
+ * Absent/empty when the node-default tree resolves cleanly.
10718
+ */
10719
+ configIssues: array(string()).optional()
10638
10720
  });
10639
10721
  var PipelineStepInputSchema = lazy(() => object({
10640
10722
  addonId: string(),
10641
- modelId: string(),
10723
+ modelId: string().optional(),
10642
10724
  enabled: boolean().default(true),
10643
10725
  children: array(PipelineStepInputSchema).optional(),
10644
10726
  settings: record(string(), unknown()).optional()
10645
10727
  }));
10728
+ var ModelSubstitutionSchema = object({
10729
+ addonId: string(),
10730
+ chosen: string(),
10731
+ running: string(),
10732
+ format: string()
10733
+ });
10734
+ var PipelineValidationIssueSchema = object({
10735
+ addonId: string(),
10736
+ kind: _enum(["unknown-addon", "no-format-build"]),
10737
+ detail: string()
10738
+ });
10739
+ var PipelineValidationResultSchema = object({
10740
+ ok: boolean(),
10741
+ issues: array(PipelineValidationIssueSchema).readonly(),
10742
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10743
+ /** The node's `currentEngine.format` this validation ran against. */
10744
+ format: string()
10745
+ });
10646
10746
  var ReferenceImageEntrySchema = object({
10647
10747
  filename: string(),
10648
10748
  stepIds: array(string()).readonly().optional()
@@ -10713,7 +10813,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10713
10813
  })) }), object({ success: literal(true) }), {
10714
10814
  kind: "mutation",
10715
10815
  auth: "admin"
10716
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10816
+ }), method(object({ nodeId: string() }), object({
10817
+ success: literal(true),
10818
+ clearedDevices: number()
10819
+ }), {
10820
+ kind: "mutation",
10821
+ auth: "admin"
10822
+ }), 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({
10717
10823
  name: string(),
10718
10824
  steps: array(PipelineTemplateStepSchema).readonly(),
10719
10825
  engine: PipelineEngineChoiceSchema
@@ -10730,10 +10836,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10730
10836
  modelId: string(),
10731
10837
  format: ModelFormatSchema$1
10732
10838
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10733
- addonId: string(),
10734
- frame: FrameInputSchema,
10735
- config: record(string(), unknown()).optional()
10736
- }), DetectorOutputSchema), method(object({
10737
10839
  engine: PipelineEngineChoiceSchema.optional(),
10738
10840
  steps: array(PipelineStepInputSchema).min(1),
10739
10841
  frame: FrameInputSchema.optional(),
@@ -10879,6 +10981,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10879
10981
  auth: "admin"
10880
10982
  }), object({ zones: array(ZoneSchema).readonly() });
10881
10983
  /**
10984
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10985
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10986
+ * so the caller supplies only the detection-res bbox divided by the detection
10987
+ * dims — no native resolution to plumb.
10988
+ */
10989
+ var NativeCropBboxSchema = object({
10990
+ x: number(),
10991
+ y: number(),
10992
+ w: number(),
10993
+ h: number()
10994
+ });
10995
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10996
+ var NativeCropResultSchema = object({
10997
+ /** Packed rgb (24-bit) pixels of the crop. */
10998
+ bytes: _instanceof(Uint8Array),
10999
+ width: number().int().positive(),
11000
+ height: number().int().positive()
11001
+ });
11002
+ /**
10882
11003
  * Per-camera tunable ranges + defaults. Single source of truth used
10883
11004
  * by both the Zod data schema (validation + default fallback) and
10884
11005
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10973,6 +11094,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10973
11094
  kind: literal("remote-restream"),
10974
11095
  /** The camera's source-owner node (slice 1: always the hub). */
10975
11096
  ownerNodeId: string(),
11097
+ /**
11098
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
11099
+ * per-node `reachableHost` override (Cluster UI). When present the runner
11100
+ * dials THIS host for the owner's restream, in preference to the
11101
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
11102
+ */
11103
+ ownerReachableHost: string().optional(),
10976
11104
  /** Operator override for the owner host the runner dials. */
10977
11105
  hubHostnameOverride: string().optional()
10978
11106
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10981,13 +11109,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10981
11109
  * specific runner instance via `attachCamera`. Carries everything the
10982
11110
  * runner needs to subscribe to the local broker and execute inference.
10983
11111
  *
10984
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10985
- * optional `audio`) travels with the attach payload. The runner keeps it
10986
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10987
- * restart the orchestrator re-sends the latest snapshot.
10988
- *
10989
- * `engine`/`steps`/`audio` are optional during the additive migration
10990
- * window; once orchestrator + UI are migrated they become required.
11112
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
11113
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
11114
+ * for the lifetime of the attach — on rebalance, edit, or restart the
11115
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
11116
+ * node-local, resolved by the executing runner at dispatch time.
10991
11117
  */
10992
11118
  var RunnerCameraConfigSchema = object({
10993
11119
  deviceId: number(),
@@ -11038,14 +11164,11 @@ var RunnerCameraConfigSchema = object({
11038
11164
  */
11039
11165
  motionSources: MotionSourcesSchema.default(["analyzer"]),
11040
11166
  pipelineEnabled: boolean().default(true),
11041
- /** Engine choice for video steps (runtime+backend+format). */
11042
- engine: PipelineEngineChoiceSchema.optional(),
11043
11167
  /** Ordered tree of video steps. Absent → runner skips video detection. */
11044
11168
  steps: array(PipelineStepInputSchema).readonly().optional(),
11045
11169
  /** Audio classification branch. `enabled:false` disables, null skips. */
11046
11170
  audio: object({
11047
- engine: PipelineEngineChoiceSchema,
11048
- modelId: string(),
11171
+ modelId: string().optional(),
11049
11172
  enabled: boolean()
11050
11173
  }).nullable().optional(),
11051
11174
  /**
@@ -11132,7 +11255,11 @@ var RunnerLocalMetricsSchema = object({
11132
11255
  avgInferenceTimeMs: number(),
11133
11256
  queueDepth: number()
11134
11257
  });
11135
- 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());
11258
+ 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({
11259
+ handle: FrameHandleSchema,
11260
+ bbox: NativeCropBboxSchema,
11261
+ maxWidth: number().int().positive().optional()
11262
+ }), NativeCropResultSchema.nullable());
11136
11263
  object({
11137
11264
  detected: boolean(),
11138
11265
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12426,7 +12553,9 @@ var AddonPageDeclarationSchema$1 = object({
12426
12553
  icon: string(),
12427
12554
  path: string(),
12428
12555
  remoteName: string(),
12429
- bundle: string()
12556
+ bundle: string(),
12557
+ section: string().optional(),
12558
+ sectionLabel: string().optional()
12430
12559
  });
12431
12560
  var AddonPageInfoSchema = object({
12432
12561
  addonId: string(),
@@ -12466,7 +12595,18 @@ var AddonPageDeclarationSchema = object({
12466
12595
  * the static-file route can compute an mtime-based cache-buster URL
12467
12596
  * without a separate filesystem stat.
12468
12597
  */
12469
- bundle: string()
12598
+ bundle: string(),
12599
+ /**
12600
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12601
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12602
+ * Any OTHER string creates (or joins) a custom section rendered after
12603
+ * the built-in groups; its label comes from `sectionLabel` (first
12604
+ * declaration wins), falling back to the id. Absent → the legacy
12605
+ * "Addon Pages" group.
12606
+ */
12607
+ section: string().optional(),
12608
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12609
+ sectionLabel: string().optional()
12470
12610
  });
12471
12611
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12472
12612
  var AddonHttpRouteSchema = object({
@@ -12682,6 +12822,17 @@ var WidgetMetadataSchema = object({
12682
12822
  deviceContext: boolean().default(false),
12683
12823
  integrationContext: boolean().default(false)
12684
12824
  }),
12825
+ /**
12826
+ * Loadable BEFORE authentication. The normal widget registry listing
12827
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12828
+ * (the login page) cannot discover a widget through it. A widget that
12829
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12830
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12831
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12832
+ * than the authenticated registry, and its bundle is served by the
12833
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12834
+ */
12835
+ preAuth: boolean().optional().default(false),
12685
12836
  /** Dashboard placement HINTS (operator can override per instance). */
12686
12837
  defaultSize: WidgetSizeEnum.default("md"),
12687
12838
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12983,6 +13134,66 @@ method(object({
12983
13134
  password: string()
12984
13135
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12985
13136
  /**
13137
+ * `login-method` — collection cap through which auth addons contribute
13138
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13139
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13140
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13141
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13142
+ * procedure aggregates them for the unauthenticated login page.
13143
+ *
13144
+ * A contribution is a discriminated union on `kind`:
13145
+ *
13146
+ * - `redirect` — a declarative button. The login page renders a generic
13147
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13148
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13149
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13150
+ * login page needs NO change.
13151
+ *
13152
+ * - `widget` — a Module-Federation widget the login page mounts (via
13153
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13154
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13155
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13156
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13157
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13158
+ *
13159
+ * Every contribution carries a `stage`:
13160
+ * - `primary` — shown on the first credentials screen (OIDC /
13161
+ * magic-link buttons; a future usernameless passkey).
13162
+ * - `second-factor` — shown AFTER the password leg, gated on the
13163
+ * returned `factors` (passkey-as-2FA today).
13164
+ *
13165
+ * `mount: skip` — the cap is read server-side by the core auth router
13166
+ * (`registry.getCollection('login-method')`), never mounted as its own
13167
+ * tRPC router.
13168
+ */
13169
+ /** When a login method renders in the two-phase login flow. */
13170
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13171
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13172
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13173
+ kind: literal("redirect"),
13174
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13175
+ id: string(),
13176
+ /** Operator-facing button label. */
13177
+ label: string(),
13178
+ /** lucide-react icon name. */
13179
+ icon: string().optional(),
13180
+ /** Addon-owned HTTP route the button navigates to (GET). */
13181
+ startUrl: string(),
13182
+ stage: LoginStageEnum
13183
+ }), object({
13184
+ kind: literal("widget"),
13185
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13186
+ id: string(),
13187
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13188
+ addonId: string(),
13189
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13190
+ bundle: string(),
13191
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13192
+ remote: WidgetRemoteSchema,
13193
+ stage: LoginStageEnum
13194
+ })]);
13195
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13196
+ /**
12986
13197
  * Orchestrator-side destination metadata. The orchestrator computes
12987
13198
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12988
13199
  * (admin UI, restore flow) see one canonical key.
@@ -15100,7 +15311,17 @@ var TrackSchema = object({
15100
15311
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
15101
15312
  totalDistance: number(),
15102
15313
  state: TrackStateSchema,
15103
- active: boolean()
15314
+ active: boolean(),
15315
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15316
+ * track expiry, recomputed on late label). Absent on legacy rows written
15317
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15318
+ importance: number().optional(),
15319
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15320
+ * "best" frame). Absent when the track produced no object events. */
15321
+ bestEventId: string().optional(),
15322
+ /** Tag of the importance sub-signal that dominated the score
15323
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15324
+ importanceReason: string().optional()
15104
15325
  });
15105
15326
  var BaseEventFields = {
15106
15327
  id: string(),
@@ -15165,8 +15386,18 @@ var ObjectEventSchema = object({
15165
15386
  frameHeight: number().optional(),
15166
15387
  /** MediaStore key for the crop attached to this event (if any). */
15167
15388
  mediaKey: string().optional(),
15389
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15390
+ * best-detection full frame). Resolve via the event-media data-plane
15391
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15392
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15393
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15394
+ keyFrameMediaKey: string().optional(),
15168
15395
  /** Populated by B5 (recording playback URL for this event). */
15169
- mediaUrl: string().optional()
15396
+ mediaUrl: string().optional(),
15397
+ /** The parent track's key-event importance [0,1], propagated to every object
15398
+ * event of the track (so an event row can be sorted by importance without a
15399
+ * track join). Absent on legacy rows / before the track was scored. */
15400
+ importance: number().optional()
15170
15401
  });
15171
15402
  var AudioEventSchema = object({
15172
15403
  ...BaseEventFields,
@@ -15190,7 +15421,8 @@ var MediaFileKindEnum = _enum([
15190
15421
  "fullFrame",
15191
15422
  "fullFrameBoxed",
15192
15423
  "faceCrop",
15193
- "plateCrop"
15424
+ "plateCrop",
15425
+ "keyFrame"
15194
15426
  ]);
15195
15427
  var MediaFileSchema = object({
15196
15428
  key: string(),
@@ -15211,6 +15443,32 @@ var DeviceEventQueryInput = object({
15211
15443
  projection: _enum(["full", "slim"]).optional()
15212
15444
  });
15213
15445
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15446
+ var KeyEventQueryInput = object({
15447
+ deviceId: number(),
15448
+ /** Window lower bound (track firstSeen ≥ since). */
15449
+ since: number(),
15450
+ /** Window upper bound (track firstSeen ≤ until). */
15451
+ until: number(),
15452
+ limit: number().int().min(1).max(200).default(50),
15453
+ /** Drop tracks scoring below this importance. */
15454
+ minImportance: number().min(0).max(1).optional(),
15455
+ /** Restrict to a single class (e.g. 'person'). */
15456
+ classFilter: string().optional()
15457
+ });
15458
+ var KeyEventSchema = object({
15459
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15460
+ id: string(),
15461
+ trackId: string(),
15462
+ /** Track start time (firstSeen). */
15463
+ timestamp: number(),
15464
+ className: string(),
15465
+ label: string().optional(),
15466
+ importance: number(),
15467
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15468
+ bestEventId: string(),
15469
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15470
+ windowMs: number().optional()
15471
+ });
15214
15472
  var TrackedDetectionSchema = object({
15215
15473
  trackId: string(),
15216
15474
  className: string(),
@@ -15240,7 +15498,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15240
15498
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15241
15499
  kind: "mutation",
15242
15500
  auth: "admin"
15243
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15501
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15244
15502
  deviceId: number(),
15245
15503
  since: number(),
15246
15504
  until: number(),
@@ -15285,11 +15543,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15285
15543
  timestamp: number()
15286
15544
  });
15287
15545
  var CameraPipelineConfigSchema = object({
15288
- engine: PipelineEngineChoiceSchema,
15546
+ engine: PipelineEngineChoiceSchema.optional(),
15289
15547
  steps: array(PipelineStepInputSchema).readonly(),
15290
15548
  audio: object({
15291
- engine: PipelineEngineChoiceSchema,
15292
- modelId: string(),
15549
+ engine: PipelineEngineChoiceSchema.optional(),
15550
+ modelId: string().optional(),
15293
15551
  enabled: boolean(),
15294
15552
  settings: record(string(), unknown()).readonly().optional()
15295
15553
  }).nullable().optional()
@@ -15304,7 +15562,7 @@ var PipelineTemplateSchema = object({
15304
15562
  });
15305
15563
  var AgentAddonConfigSchema = object({
15306
15564
  enabled: boolean(),
15307
- modelId: string(),
15565
+ modelId: string().optional(),
15308
15566
  settings: record(string(), unknown()).readonly()
15309
15567
  });
15310
15568
  var AgentPipelineSettingsSchema = object({
@@ -15314,12 +15572,25 @@ var AgentPipelineSettingsSchema = object({
15314
15572
  detectWeight: number().positive().optional(),
15315
15573
  /** Node is eligible to run the detection pipeline (decode + inference). */
15316
15574
  detect: boolean().optional(),
15317
- /** Node is eligible to host decoder sessions. */
15575
+ /**
15576
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15577
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15578
+ * the schema ONLY so persisted stores written before the removal still
15579
+ * parse — no code reads it and no write path emits it.
15580
+ */
15318
15581
  decode: boolean().optional(),
15319
15582
  /** Node is eligible to run audio-analyzer sessions. */
15320
15583
  audio: boolean().optional(),
15321
15584
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15322
- ingest: boolean().optional()
15585
+ ingest: boolean().optional(),
15586
+ /**
15587
+ * Operator override for the LAN host a cross-node decoder dials to reach
15588
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15589
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15590
+ * it already uses to reach the hub). Set this only when the auto-detected
15591
+ * address is wrong (multi-homed host, NAT, custom interface).
15592
+ */
15593
+ reachableHost: string().optional()
15323
15594
  });
15324
15595
  var CameraPipelineForAgentSchema = object({
15325
15596
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15367,25 +15638,6 @@ var PipelineAssignmentSchema = object({
15367
15638
  assignedAt: number()
15368
15639
  });
15369
15640
  /**
15370
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15371
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15372
- * → co-located with pipeline → capacity).
15373
- */
15374
- var DecoderAssignmentSchema = object({
15375
- deviceId: number(),
15376
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15377
- decoderNodeId: string(),
15378
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15379
- pinned: boolean(),
15380
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15381
- reason: _enum([
15382
- "manual",
15383
- "co-located",
15384
- "capacity",
15385
- "hardware-affinity"
15386
- ])
15387
- });
15388
- /**
15389
15641
  * Per-agent load summary surfaced to the load balancer + dashboards.
15390
15642
  * Aggregated from each runner's `getLocalLoad` cap call.
15391
15643
  */
@@ -15425,6 +15677,15 @@ var GlobalMetricsSchema = object({
15425
15677
  * capability providers.
15426
15678
  */
15427
15679
  var CapabilityBindingsSchema = record(string(), string());
15680
+ /**
15681
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15682
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15683
+ */
15684
+ var IngestOwnerSchema = object({
15685
+ ownerNodeId: string(),
15686
+ reachableHost: string().optional(),
15687
+ configIssue: string().optional()
15688
+ });
15428
15689
  /** Source block — always present; derives from the stream catalog. */
15429
15690
  var CameraSourceStatusSchema = object({ streams: array(object({
15430
15691
  camStreamId: string(),
@@ -15439,6 +15700,14 @@ var CameraAssignmentStatusSchema = object({
15439
15700
  detectionNodeId: string().nullable(),
15440
15701
  decoderNodeId: string().nullable(),
15441
15702
  audioNodeId: string().nullable(),
15703
+ /**
15704
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15705
+ * hosts the broker/restream) — the cluster ingest owner today
15706
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15707
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15708
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15709
+ */
15710
+ sourceNodeId: string().nullable(),
15442
15711
  pinned: object({
15443
15712
  detection: boolean(),
15444
15713
  decoder: boolean(),
@@ -15571,16 +15840,7 @@ method(object({
15571
15840
  }), object({ success: literal(true) }), {
15572
15841
  kind: "mutation",
15573
15842
  auth: "admin"
15574
- }), method(object({
15575
- deviceId: number(),
15576
- nodeId: string()
15577
- }), _void(), {
15578
- kind: "mutation",
15579
- auth: "admin"
15580
- }), method(object({ deviceId: number() }), _void(), {
15581
- kind: "mutation",
15582
- auth: "admin"
15583
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15843
+ }), method(_void(), IngestOwnerSchema), method(object({
15584
15844
  deviceId: number(),
15585
15845
  nodeId: string()
15586
15846
  }), object({ success: literal(true) }), {
@@ -15601,10 +15861,7 @@ method(object({
15601
15861
  nodeId: string(),
15602
15862
  pinned: boolean(),
15603
15863
  assignedAt: number()
15604
- }))), method(object({
15605
- deviceId: number(),
15606
- pipelineNodeId: string().optional()
15607
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15864
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15608
15865
  nodeId: string(),
15609
15866
  settings: AgentPipelineSettingsSchema
15610
15867
  })).readonly()), method(object({
@@ -15634,12 +15891,26 @@ method(object({
15634
15891
  }), method(object({
15635
15892
  agentNodeId: string(),
15636
15893
  detect: boolean().nullable().optional(),
15637
- decode: boolean().nullable().optional(),
15638
15894
  audio: boolean().nullable().optional(),
15639
15895
  ingest: boolean().nullable().optional()
15640
15896
  }), object({ success: literal(true) }), {
15641
15897
  kind: "mutation",
15642
15898
  auth: "admin"
15899
+ }), method(object({
15900
+ agentNodeId: string(),
15901
+ reachableHost: string().nullable()
15902
+ }), object({ success: literal(true) }), {
15903
+ kind: "mutation",
15904
+ auth: "admin"
15905
+ }), method(object({ agentNodeId: string() }), object({
15906
+ success: literal(true),
15907
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15908
+ effectiveModelId: string().nullable(),
15909
+ /** Number of cameras whose node-scoped overrides were cleared. */
15910
+ clearedCameraOverrides: number()
15911
+ }), {
15912
+ kind: "mutation",
15913
+ auth: "admin"
15643
15914
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15644
15915
  deviceId: number(),
15645
15916
  addonId: string(),
@@ -15684,22 +15955,131 @@ method(object({
15684
15955
  kind: "mutation",
15685
15956
  auth: "admin"
15686
15957
  });
15687
- var RegisteredStreamSchema = object({
15688
- streamId: string(),
15689
- label: string().optional(),
15690
- codec: string(),
15691
- type: _enum(["video", "audio"]),
15692
- sourceUrl: string()
15958
+ /**
15959
+ * server-management — per-NODE singleton capability for a node's ROOT
15960
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15961
+ * agents).
15962
+ *
15963
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15964
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15965
+ * version describes the node. Updates install into
15966
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15967
+ * starter (probation boot + auto-rollback to N-1).
15968
+ *
15969
+ * Providers:
15970
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15971
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15972
+ * unpinned calls.
15973
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15974
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15975
+ * `$hub.registerNode` manifest.
15976
+ *
15977
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15978
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15979
+ * SDK) routes the call to that node's provider via the standard remote
15980
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15981
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15982
+ *
15983
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15984
+ */
15985
+ /**
15986
+ * Where the running hub's code was loaded from:
15987
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15988
+ * plain resolution and runtime updates are refused.
15989
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15990
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15991
+ */
15992
+ var ServerBootModeSchema = _enum([
15993
+ "workspace",
15994
+ "baked",
15995
+ "data-root"
15996
+ ]);
15997
+ /**
15998
+ * Update lifecycle state:
15999
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
16000
+ * - `pending-restart` — a version is staged and the node has NOT yet
16001
+ * restarted onto it (still running the OLD version).
16002
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
16003
+ * (it is the active probation boot) and is waiting to confirm boot-health.
16004
+ * Apply/rollback are refused in this state and the node must NOT be
16005
+ * manually restarted, or the probation boot auto-rolls-back.
16006
+ */
16007
+ var ServerUpdateStateSchema = _enum([
16008
+ "idle",
16009
+ "checking",
16010
+ "staging",
16011
+ "pending-restart",
16012
+ "awaiting-confirmation"
16013
+ ]);
16014
+ var ServerRollbackInfoSchema = object({
16015
+ /** The version that failed (or was manually rolled back). */
16016
+ fromVersion: string(),
16017
+ /** The version rolled back to; null = the baked seed. */
16018
+ toVersion: string().nullable(),
16019
+ atMs: number(),
16020
+ reason: string()
15693
16021
  });
15694
- var ExposedResourceSchema = object({
15695
- streamId: string(),
15696
- format: string(),
15697
- value: string()
16022
+ var ServerPackageStatusSchema = object({
16023
+ /** Root package name (`@camstack/server` on the hub). */
16024
+ packageName: string(),
16025
+ /** Version of the code the running process ACTUALLY loaded. */
16026
+ runningVersion: string().nullable(),
16027
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
16028
+ nodeRuntimeVersion: string().nullable(),
16029
+ /** Active data-dir root version; null when booted from seed/workspace. */
16030
+ activeVersion: string().nullable(),
16031
+ /** N-1 version kept for rollback; null when no previous version exists. */
16032
+ previousVersion: string().nullable(),
16033
+ /** Version of the immutable baked seed closure (image fallback). */
16034
+ seedVersion: string().nullable(),
16035
+ /** Latest registry version from the most recent check (null = never checked). */
16036
+ latestVersion: string().nullable(),
16037
+ updateAvailable: boolean(),
16038
+ bootMode: ServerBootModeSchema,
16039
+ updateState: ServerUpdateStateSchema,
16040
+ /** Version staged + awaiting its probation boot, when one is pending. */
16041
+ pendingVersion: string().nullable(),
16042
+ /** Set when the last freshly-activated version failed its boot health-check. */
16043
+ rolledBack: ServerRollbackInfoSchema.nullable(),
16044
+ /**
16045
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
16046
+ * hub is running from the baked seed (or workspace) while installed data-dir
16047
+ * versions are being IGNORED. Surfaced as a warning in the UI.
16048
+ */
16049
+ stateFileCorrupt: boolean(),
16050
+ lastCheckedAtMs: number().nullable()
16051
+ });
16052
+ var ServerUpdateCheckResultSchema = object({
16053
+ packageName: string(),
16054
+ runningVersion: string().nullable(),
16055
+ latestVersion: string().nullable(),
16056
+ updateAvailable: boolean(),
16057
+ checkedAtMs: number(),
16058
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
16059
+ error: string().nullable()
16060
+ });
16061
+ var ServerUpdateActionResultSchema = object({
16062
+ accepted: boolean(),
16063
+ targetVersion: string().nullable(),
16064
+ /** True when a graceful restart was scheduled to apply the change. */
16065
+ restarting: boolean(),
16066
+ message: string()
16067
+ });
16068
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
16069
+ kind: "mutation",
16070
+ auth: "admin"
16071
+ }), method(object({
16072
+ /** Explicit target version; omitted = latest from the registry. */
16073
+ version: string().optional() }), ServerUpdateActionResultSchema, {
16074
+ kind: "mutation",
16075
+ auth: "admin"
16076
+ }), method(_void(), ServerUpdateActionResultSchema, {
16077
+ kind: "mutation",
16078
+ auth: "admin"
16079
+ }), method(_void(), ServerUpdateActionResultSchema, {
16080
+ kind: "mutation",
16081
+ auth: "admin"
15698
16082
  });
15699
- method(object({
15700
- deviceId: number(),
15701
- streams: array(RegisteredStreamSchema).readonly()
15702
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15703
16083
  /**
15704
16084
  * Query filter for settings-store collections.
15705
16085
  */
@@ -15852,9 +16232,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15852
16232
  /**
15853
16233
  * A single device snapshot returned as base64 JPEG/PNG.
15854
16234
  *
15855
- * Shared with the `snapshot-provider` collection cap the orchestrator
15856
- * receives the same shape from each native provider and from the
15857
- * broker-based fallback.
16235
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16236
+ * the device-native provider (onboard capture) or from the stream-broker
16237
+ * prebuffer fallback.
15858
16238
  */
15859
16239
  var SnapshotImageSchema = object({
15860
16240
  base64: string(),
@@ -15885,11 +16265,12 @@ DeviceType.Camera, method(object({
15885
16265
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15886
16266
  kind: "mutation",
15887
16267
  auth: "admin"
15888
- });
15889
- method(object({ deviceId: number() }), boolean()), method(object({
16268
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15890
16269
  deviceId: number(),
15891
- streamId: string().optional()
15892
- }), SnapshotImageSchema.nullable());
16270
+ lastCapturedAt: number().nullable(),
16271
+ cacheAgeMs: number().nullable(),
16272
+ etag: string().nullable()
16273
+ })));
15893
16274
  /**
15894
16275
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15895
16276
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16140,10 +16521,32 @@ method(_void(), array(TurnServerSchema).readonly());
16140
16521
  * b. `finishAuthentication({userId, response})` → server verifies
16141
16522
  * the assertion, bumps the credential counter, returns ok.
16142
16523
  *
16524
+ * 2b. Usernameless (discoverable-credential) authentication — the
16525
+ * passkey IS the primary factor, no password leg:
16526
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16527
+ * EMPTY `allowCredentials` (the browser offers every resident
16528
+ * passkey it holds for this RP) + `userVerification: 'required'`
16529
+ * (the passkey replaces both factors, so UV is mandatory).
16530
+ * The challenge is stored server-side, NOT bound to any user.
16531
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16532
+ * resolves the credential by the response's credential id,
16533
+ * verifies the assertion against the stored challenge + that
16534
+ * credential's public key/counter, and returns the OWNING
16535
+ * `userId` — the caller (core auth router) mints the session.
16536
+ *
16143
16537
  * 3. Management:
16144
16538
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16145
16539
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16146
16540
  *
16541
+ * 4. Second-factor preference (opt-in, default OFF):
16542
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16543
+ * demanded as a second factor after a password login ONLY when the
16544
+ * user explicitly opts in via `setSecondFactorPreference`.
16545
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16546
+ * row ⇒ `enabled: false`).
16547
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16548
+ * the providing addon beside its credentials.
16549
+ *
16147
16550
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16148
16551
  * the admin-ui composes the begin/finish round-trip and never exposes
16149
16552
  * the cap to non-admins.
@@ -16186,6 +16589,17 @@ method(object({
16186
16589
  }), object({ verified: boolean() }), {
16187
16590
  kind: "mutation",
16188
16591
  access: "view"
16592
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16593
+ kind: "mutation",
16594
+ access: "view"
16595
+ }), method(object({
16596
+ /** AuthenticationResponseJSON from the browser. */
16597
+ response: record(string(), unknown()) }), object({
16598
+ verified: boolean(),
16599
+ userId: string().nullable()
16600
+ }), {
16601
+ kind: "mutation",
16602
+ access: "view"
16189
16603
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16190
16604
  userId: string(),
16191
16605
  credentialId: string()
@@ -16193,6 +16607,13 @@ method(object({
16193
16607
  kind: "mutation",
16194
16608
  auth: "admin",
16195
16609
  access: "delete"
16610
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16611
+ userId: string(),
16612
+ enabled: boolean()
16613
+ }), object({ success: literal(true) }), {
16614
+ kind: "mutation",
16615
+ auth: "admin",
16616
+ access: "create"
16196
16617
  });
16197
16618
  /**
16198
16619
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16250,9 +16671,10 @@ method(object({
16250
16671
  auth: "admin"
16251
16672
  });
16252
16673
  /**
16253
- * Optional client-side hints sent at session creation to help the
16254
- * provider pick the best native source. All fields are optional —
16255
- * a viewer that knows nothing still gets a sane default.
16674
+ * Optional client-side hints sent at session creation to help the provider
16675
+ * pick the best native source. All fields optional — a viewer that knows
16676
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16677
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16256
16678
  */
16257
16679
  var webrtcClientHintsSchema = object({
16258
16680
  viewportWidth: number().int().positive().optional(),
@@ -16263,22 +16685,6 @@ var webrtcClientHintsSchema = object({
16263
16685
  /** Hard tier override; takes precedence over scoring when registered. */
16264
16686
  prefersTier: string().optional()
16265
16687
  }).partial();
16266
- method(object({
16267
- streamId: string(),
16268
- sdpOffer: string()
16269
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16270
- streamId: string(),
16271
- codec: string()
16272
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16273
- streamId: string(),
16274
- hints: webrtcClientHintsSchema.optional()
16275
- }), object({
16276
- sessionId: string(),
16277
- sdpOffer: string()
16278
- }), { kind: "mutation" }), method(object({
16279
- sessionId: string(),
16280
- sdpAnswer: string()
16281
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16282
16688
  /**
16283
16689
  * Discriminated target for a WebRTC session. The client sends this
16284
16690
  * structured object instead of building / parsing brokerId strings;
@@ -16765,7 +17171,15 @@ var FrameworkPackageStatusSchema = object({
16765
17171
  latestVersion: string().nullable(),
16766
17172
  hasUpdate: boolean(),
16767
17173
  /** Optional manifest description for the row tooltip. */
16768
- description: string().optional()
17174
+ description: string().optional(),
17175
+ /**
17176
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
17177
+ * ACTUALLY loaded. Framework packages ship code changes without always
17178
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
17179
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
17180
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
17181
+ */
17182
+ buildId: string().nullable()
16769
17183
  });
16770
17184
  var LogStreamEntrySchema = object({
16771
17185
  timestamp: string(),
@@ -17001,7 +17415,17 @@ var FaceInfoSchema = object({
17001
17415
  recognizedIdentityId: string().optional(),
17002
17416
  identityName: string().optional(),
17003
17417
  assigned: boolean(),
17004
- base64: string().optional()
17418
+ base64: string().optional(),
17419
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17420
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17421
+ * legacy rows written before design B. */
17422
+ faceBbox: BoundingBoxSchema.optional(),
17423
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17424
+ * Fetch the native JPEG via the event-media data-plane
17425
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17426
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17427
+ * back to the inline `base64` face crop. */
17428
+ keyFrameMediaKey: string().optional()
17005
17429
  });
17006
17430
  var FaceFilterEnum = _enum([
17007
17431
  "unassigned",
@@ -17698,6 +18122,16 @@ var TopologyCategorySchema = object({
17698
18122
  healthy: number(),
17699
18123
  addons: array(TopologyCategoryAddonSchema).readonly()
17700
18124
  });
18125
+ /**
18126
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18127
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18128
+ * version visibility for the Server management surface. Nullable: offline
18129
+ * rows and pre-phase-2 nodes report none.
18130
+ */
18131
+ var TopologyRootPackageSchema = object({
18132
+ name: string(),
18133
+ version: string()
18134
+ });
17701
18135
  var TopologyNodeSchema = object({
17702
18136
  id: string(),
17703
18137
  name: string(),
@@ -17721,7 +18155,8 @@ var TopologyNodeSchema = object({
17721
18155
  status: string()
17722
18156
  })).readonly(),
17723
18157
  processes: array(TopologyProcessSchema).readonly(),
17724
- categories: array(TopologyCategorySchema).readonly()
18158
+ categories: array(TopologyCategorySchema).readonly(),
18159
+ rootPackage: TopologyRootPackageSchema.nullable()
17725
18160
  });
17726
18161
  var CapUsageEdgeSchema = object({
17727
18162
  callerAddonId: string(),
@@ -20521,6 +20956,12 @@ Object.freeze({
20521
20956
  addonId: null,
20522
20957
  access: "create"
20523
20958
  },
20959
+ "loginMethod.getLoginMethods": {
20960
+ capName: "login-method",
20961
+ capScope: "system",
20962
+ addonId: null,
20963
+ access: "view"
20964
+ },
20524
20965
  "mediaPlayer.next": {
20525
20966
  capName: "media-player",
20526
20967
  capScope: "device",
@@ -21103,6 +21544,12 @@ Object.freeze({
21103
21544
  addonId: null,
21104
21545
  access: "view"
21105
21546
  },
21547
+ "pipelineAnalytics.getKeyEvents": {
21548
+ capName: "pipeline-analytics",
21549
+ capScope: "device",
21550
+ addonId: null,
21551
+ access: "view"
21552
+ },
21106
21553
  "pipelineAnalytics.getMotionEvents": {
21107
21554
  capName: "pipeline-analytics",
21108
21555
  capScope: "device",
@@ -21151,23 +21598,23 @@ Object.freeze({
21151
21598
  addonId: null,
21152
21599
  access: "create"
21153
21600
  },
21154
- "pipelineExecutor.deleteModel": {
21601
+ "pipelineExecutor.clearDeviceOverrides": {
21155
21602
  capName: "pipeline-executor",
21156
21603
  capScope: "system",
21157
21604
  addonId: null,
21158
21605
  access: "delete"
21159
21606
  },
21160
- "pipelineExecutor.deleteTemplate": {
21607
+ "pipelineExecutor.deleteModel": {
21161
21608
  capName: "pipeline-executor",
21162
21609
  capScope: "system",
21163
21610
  addonId: null,
21164
21611
  access: "delete"
21165
21612
  },
21166
- "pipelineExecutor.detect": {
21613
+ "pipelineExecutor.deleteTemplate": {
21167
21614
  capName: "pipeline-executor",
21168
21615
  capScope: "system",
21169
21616
  addonId: null,
21170
- access: "view"
21617
+ access: "delete"
21171
21618
  },
21172
21619
  "pipelineExecutor.downloadModel": {
21173
21620
  capName: "pipeline-executor",
@@ -21361,13 +21808,13 @@ Object.freeze({
21361
21808
  addonId: null,
21362
21809
  access: "create"
21363
21810
  },
21364
- "pipelineOrchestrator.assignAudio": {
21365
- capName: "pipeline-orchestrator",
21811
+ "pipelineExecutor.validatePipeline": {
21812
+ capName: "pipeline-executor",
21366
21813
  capScope: "system",
21367
21814
  addonId: null,
21368
- access: "create"
21815
+ access: "view"
21369
21816
  },
21370
- "pipelineOrchestrator.assignDecoder": {
21817
+ "pipelineOrchestrator.assignAudio": {
21371
21818
  capName: "pipeline-orchestrator",
21372
21819
  capScope: "system",
21373
21820
  addonId: null,
@@ -21451,19 +21898,13 @@ Object.freeze({
21451
21898
  addonId: null,
21452
21899
  access: "view"
21453
21900
  },
21454
- "pipelineOrchestrator.getDecoderAssignment": {
21455
- capName: "pipeline-orchestrator",
21456
- capScope: "system",
21457
- addonId: null,
21458
- access: "view"
21459
- },
21460
- "pipelineOrchestrator.getDecoderAssignments": {
21901
+ "pipelineOrchestrator.getGlobalMetrics": {
21461
21902
  capName: "pipeline-orchestrator",
21462
21903
  capScope: "system",
21463
21904
  addonId: null,
21464
21905
  access: "view"
21465
21906
  },
21466
- "pipelineOrchestrator.getGlobalMetrics": {
21907
+ "pipelineOrchestrator.getIngestOwner": {
21467
21908
  capName: "pipeline-orchestrator",
21468
21909
  capScope: "system",
21469
21910
  addonId: null,
@@ -21505,6 +21946,12 @@ Object.freeze({
21505
21946
  addonId: null,
21506
21947
  access: "delete"
21507
21948
  },
21949
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21950
+ capName: "pipeline-orchestrator",
21951
+ capScope: "system",
21952
+ addonId: null,
21953
+ access: "delete"
21954
+ },
21508
21955
  "pipelineOrchestrator.resolvePipeline": {
21509
21956
  capName: "pipeline-orchestrator",
21510
21957
  capScope: "system",
@@ -21541,37 +21988,37 @@ Object.freeze({
21541
21988
  addonId: null,
21542
21989
  access: "create"
21543
21990
  },
21544
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21991
+ "pipelineOrchestrator.setAgentReachableHost": {
21545
21992
  capName: "pipeline-orchestrator",
21546
21993
  capScope: "system",
21547
21994
  addonId: null,
21548
21995
  access: "create"
21549
21996
  },
21550
- "pipelineOrchestrator.setCameraStepOverride": {
21997
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21551
21998
  capName: "pipeline-orchestrator",
21552
21999
  capScope: "system",
21553
22000
  addonId: null,
21554
22001
  access: "create"
21555
22002
  },
21556
- "pipelineOrchestrator.setCameraStepToggle": {
22003
+ "pipelineOrchestrator.setCameraStepOverride": {
21557
22004
  capName: "pipeline-orchestrator",
21558
22005
  capScope: "system",
21559
22006
  addonId: null,
21560
22007
  access: "create"
21561
22008
  },
21562
- "pipelineOrchestrator.setCapabilityBinding": {
22009
+ "pipelineOrchestrator.setCameraStepToggle": {
21563
22010
  capName: "pipeline-orchestrator",
21564
22011
  capScope: "system",
21565
22012
  addonId: null,
21566
22013
  access: "create"
21567
22014
  },
21568
- "pipelineOrchestrator.unassignAudio": {
22015
+ "pipelineOrchestrator.setCapabilityBinding": {
21569
22016
  capName: "pipeline-orchestrator",
21570
22017
  capScope: "system",
21571
22018
  addonId: null,
21572
22019
  access: "create"
21573
22020
  },
21574
- "pipelineOrchestrator.unassignDecoder": {
22021
+ "pipelineOrchestrator.unassignAudio": {
21575
22022
  capName: "pipeline-orchestrator",
21576
22023
  capScope: "system",
21577
22024
  addonId: null,
@@ -21631,6 +22078,12 @@ Object.freeze({
21631
22078
  addonId: null,
21632
22079
  access: "view"
21633
22080
  },
22081
+ "pipelineRunner.getNativeCrop": {
22082
+ capName: "pipeline-runner",
22083
+ capScope: "system",
22084
+ addonId: null,
22085
+ access: "view"
22086
+ },
21634
22087
  "pipelineRunner.reportMotion": {
21635
22088
  capName: "pipeline-runner",
21636
22089
  capScope: "system",
@@ -21871,33 +22324,45 @@ Object.freeze({
21871
22324
  addonId: null,
21872
22325
  access: "create"
21873
22326
  },
21874
- "restreamer.getExposedResources": {
21875
- capName: "restreamer",
22327
+ "scriptRunner.run": {
22328
+ capName: "script-runner",
22329
+ capScope: "device",
22330
+ addonId: null,
22331
+ access: "create"
22332
+ },
22333
+ "scriptRunner.stop": {
22334
+ capName: "script-runner",
22335
+ capScope: "device",
22336
+ addonId: null,
22337
+ access: "create"
22338
+ },
22339
+ "serverManagement.applyServerUpdate": {
22340
+ capName: "server-management",
21876
22341
  capScope: "system",
21877
22342
  addonId: null,
21878
- access: "view"
22343
+ access: "create"
21879
22344
  },
21880
- "restreamer.registerDevice": {
21881
- capName: "restreamer",
22345
+ "serverManagement.checkServerUpdate": {
22346
+ capName: "server-management",
21882
22347
  capScope: "system",
21883
22348
  addonId: null,
21884
22349
  access: "create"
21885
22350
  },
21886
- "restreamer.unregisterDevice": {
21887
- capName: "restreamer",
22351
+ "serverManagement.getServerPackageStatus": {
22352
+ capName: "server-management",
21888
22353
  capScope: "system",
21889
22354
  addonId: null,
21890
- access: "delete"
22355
+ access: "view"
21891
22356
  },
21892
- "scriptRunner.run": {
21893
- capName: "script-runner",
21894
- capScope: "device",
22357
+ "serverManagement.restartServer": {
22358
+ capName: "server-management",
22359
+ capScope: "system",
21895
22360
  addonId: null,
21896
22361
  access: "create"
21897
22362
  },
21898
- "scriptRunner.stop": {
21899
- capName: "script-runner",
21900
- capScope: "device",
22363
+ "serverManagement.rollbackServerUpdate": {
22364
+ capName: "server-management",
22365
+ capScope: "system",
21901
22366
  addonId: null,
21902
22367
  access: "create"
21903
22368
  },
@@ -21985,23 +22450,17 @@ Object.freeze({
21985
22450
  addonId: null,
21986
22451
  access: "view"
21987
22452
  },
21988
- "snapshot.invalidateCache": {
22453
+ "snapshot.getSnapshotOverview": {
21989
22454
  capName: "snapshot",
21990
22455
  capScope: "device",
21991
22456
  addonId: null,
21992
- access: "create"
21993
- },
21994
- "snapshotProvider.getSnapshot": {
21995
- capName: "snapshot-provider",
21996
- capScope: "system",
21997
- addonId: null,
21998
22457
  access: "view"
21999
22458
  },
22000
- "snapshotProvider.supportsDevice": {
22001
- capName: "snapshot-provider",
22002
- capScope: "system",
22459
+ "snapshot.invalidateCache": {
22460
+ capName: "snapshot",
22461
+ capScope: "device",
22003
22462
  addonId: null,
22004
- access: "view"
22463
+ access: "create"
22005
22464
  },
22006
22465
  "ssoBridge.signBridgeToken": {
22007
22466
  capName: "sso-bridge",
@@ -22429,30 +22888,6 @@ Object.freeze({
22429
22888
  addonId: null,
22430
22889
  access: "view"
22431
22890
  },
22432
- "streamingEngine.getStreamUrl": {
22433
- capName: "streaming-engine",
22434
- capScope: "system",
22435
- addonId: null,
22436
- access: "view"
22437
- },
22438
- "streamingEngine.listStreams": {
22439
- capName: "streaming-engine",
22440
- capScope: "system",
22441
- addonId: null,
22442
- access: "view"
22443
- },
22444
- "streamingEngine.registerStream": {
22445
- capName: "streaming-engine",
22446
- capScope: "system",
22447
- addonId: null,
22448
- access: "create"
22449
- },
22450
- "streamingEngine.unregisterStream": {
22451
- capName: "streaming-engine",
22452
- capScope: "system",
22453
- addonId: null,
22454
- access: "delete"
22455
- },
22456
22891
  "streamParams.getConfigSchema": {
22457
22892
  capName: "stream-params",
22458
22893
  capScope: "device",
@@ -22699,6 +23134,12 @@ Object.freeze({
22699
23134
  addonId: null,
22700
23135
  access: "view"
22701
23136
  },
23137
+ "userPasskeys.beginDiscoverableAuthentication": {
23138
+ capName: "user-passkeys",
23139
+ capScope: "system",
23140
+ addonId: null,
23141
+ access: "view"
23142
+ },
22702
23143
  "userPasskeys.beginRegistration": {
22703
23144
  capName: "user-passkeys",
22704
23145
  capScope: "system",
@@ -22711,12 +23152,24 @@ Object.freeze({
22711
23152
  addonId: null,
22712
23153
  access: "view"
22713
23154
  },
23155
+ "userPasskeys.finishDiscoverableAuthentication": {
23156
+ capName: "user-passkeys",
23157
+ capScope: "system",
23158
+ addonId: null,
23159
+ access: "view"
23160
+ },
22714
23161
  "userPasskeys.finishRegistration": {
22715
23162
  capName: "user-passkeys",
22716
23163
  capScope: "system",
22717
23164
  addonId: null,
22718
23165
  access: "create"
22719
23166
  },
23167
+ "userPasskeys.getSecondFactorPreference": {
23168
+ capName: "user-passkeys",
23169
+ capScope: "system",
23170
+ addonId: null,
23171
+ access: "view"
23172
+ },
22720
23173
  "userPasskeys.listPasskeys": {
22721
23174
  capName: "user-passkeys",
22722
23175
  capScope: "system",
@@ -22729,6 +23182,12 @@ Object.freeze({
22729
23182
  addonId: null,
22730
23183
  access: "delete"
22731
23184
  },
23185
+ "userPasskeys.setSecondFactorPreference": {
23186
+ capName: "user-passkeys",
23187
+ capScope: "system",
23188
+ addonId: null,
23189
+ access: "create"
23190
+ },
22732
23191
  "vacuumControl.locate": {
22733
23192
  capName: "vacuum-control",
22734
23193
  capScope: "device",
@@ -22801,6 +23260,18 @@ Object.freeze({
22801
23260
  addonId: null,
22802
23261
  access: "view"
22803
23262
  },
23263
+ "viewerUi.getStaticDir": {
23264
+ capName: "viewer-ui",
23265
+ capScope: "system",
23266
+ addonId: null,
23267
+ access: "view"
23268
+ },
23269
+ "viewerUi.getVersion": {
23270
+ capName: "viewer-ui",
23271
+ capScope: "system",
23272
+ addonId: null,
23273
+ access: "view"
23274
+ },
22804
23275
  "waterHeater.setAway": {
22805
23276
  capName: "water-heater",
22806
23277
  capScope: "device",
@@ -22819,54 +23290,6 @@ Object.freeze({
22819
23290
  addonId: null,
22820
23291
  access: "create"
22821
23292
  },
22822
- "webrtc.closeSession": {
22823
- capName: "webrtc",
22824
- capScope: "system",
22825
- addonId: null,
22826
- access: "create"
22827
- },
22828
- "webrtc.createSession": {
22829
- capName: "webrtc",
22830
- capScope: "system",
22831
- addonId: null,
22832
- access: "create"
22833
- },
22834
- "webrtc.handleAnswer": {
22835
- capName: "webrtc",
22836
- capScope: "system",
22837
- addonId: null,
22838
- access: "create"
22839
- },
22840
- "webrtc.handleOffer": {
22841
- capName: "webrtc",
22842
- capScope: "system",
22843
- addonId: null,
22844
- access: "create"
22845
- },
22846
- "webrtc.hasAdaptiveBitrate": {
22847
- capName: "webrtc",
22848
- capScope: "system",
22849
- addonId: null,
22850
- access: "view"
22851
- },
22852
- "webrtc.registerStream": {
22853
- capName: "webrtc",
22854
- capScope: "system",
22855
- addonId: null,
22856
- access: "create"
22857
- },
22858
- "webrtc.supportsStream": {
22859
- capName: "webrtc",
22860
- capScope: "system",
22861
- addonId: null,
22862
- access: "view"
22863
- },
22864
- "webrtc.unregisterStream": {
22865
- capName: "webrtc",
22866
- capScope: "system",
22867
- addonId: null,
22868
- access: "delete"
22869
- },
22870
23293
  "webrtcSession.addIceCandidate": {
22871
23294
  capName: "webrtc-session",
22872
23295
  capScope: "device",