@camstack/addon-smtp-nodemailer 1.1.19 → 1.1.21

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.
@@ -4665,7 +4665,7 @@ function _instanceof(cls, params = {}) {
4665
4665
  return inst;
4666
4666
  }
4667
4667
  //#endregion
4668
- //#region ../types/dist/sleep-CZDdRBua.mjs
4668
+ //#region ../types/dist/sleep-Baang_XW.mjs
4669
4669
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4670
4670
  EventCategory["SystemBoot"] = "system.boot";
4671
4671
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4851,6 +4851,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4851
4851
  */
4852
4852
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4853
4853
  /**
4854
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4855
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4856
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4857
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4858
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4859
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4860
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4861
+ * topology change, so a dropped event self-heals on the next one (plus the
4862
+ * broker's long backstop reconcile query).
4863
+ */
4864
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4865
+ /**
4854
4866
  * Periodic snapshot of per-node pipeline-runner load
4855
4867
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4856
4868
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5374,10 +5386,6 @@ function hydrateField(field, values) {
5374
5386
  };
5375
5387
  }
5376
5388
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5377
- if (field.type === "password") return {
5378
- ...field,
5379
- value: ""
5380
- };
5381
5389
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5382
5390
  return {
5383
5391
  ...field,
@@ -6761,6 +6769,21 @@ function method(input, output, options) {
6761
6769
  timeoutMs: options?.timeoutMs
6762
6770
  };
6763
6771
  }
6772
+ /**
6773
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6774
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6775
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6776
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6777
+ */
6778
+ function systemMethod(input, output, options) {
6779
+ return {
6780
+ ...method(input, output, options),
6781
+ systemOnly: true
6782
+ };
6783
+ }
6784
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6785
+ var VersionOutputSchema$1 = object({ version: string() });
6786
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6764
6787
  var StaticDirOutputSchema = object({ staticDir: string() });
6765
6788
  var VersionOutputSchema = object({ version: string() });
6766
6789
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6930,6 +6953,36 @@ var ModelFormatsSchema = object({
6930
6953
  tflite: ModelFormatEntrySchema.optional(),
6931
6954
  pt: ModelFormatEntrySchema.optional()
6932
6955
  });
6956
+ /**
6957
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6958
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6959
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6960
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6961
+ * resolution/download/persistence; this is a presentation overlay resolved back
6962
+ * to an `id`.
6963
+ */
6964
+ var ModelVariantGroupSchema = object({
6965
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6966
+ family: string(),
6967
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6968
+ tier: string(),
6969
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6970
+ precision: _enum(["fp32", "int8"]).optional(),
6971
+ /**
6972
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6973
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6974
+ * future performance variants plug into.
6975
+ */
6976
+ optimization: _enum(["standard", "fast"]).optional(),
6977
+ /**
6978
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6979
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6980
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6981
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6982
+ * the group so the selector can offer it as a variant axis.
6983
+ */
6984
+ resolution: number().int().positive().optional()
6985
+ });
6933
6986
  var ModelCatalogEntrySchema = object({
6934
6987
  id: string(),
6935
6988
  name: string(),
@@ -6959,7 +7012,43 @@ var ModelCatalogEntrySchema = object({
6959
7012
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6960
7013
  * Downloaded into the same modelsDir alongside the model file.
6961
7014
  */
6962
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7015
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7016
+ /**
7017
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7018
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7019
+ * model list and excluded from the auto format-default pick. Set on the
7020
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7021
+ * the active lineup stays the coherent curated ladder without deleting a
7022
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7023
+ * an explicit legacy id that has a build for the node's format.
7024
+ */
7025
+ legacy: boolean().optional(),
7026
+ /**
7027
+ * Measured quality/latency metadata — populated from the benchmark addon on
7028
+ * the real node classes. Absent = not yet measured (most entries today; the
7029
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7030
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7031
+ */
7032
+ metrics: object({
7033
+ map50: number().optional(),
7034
+ p95LatencyMs: record(string(), number()).optional()
7035
+ }).optional(),
7036
+ /**
7037
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7038
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7039
+ * the retraining addon and any future commercial distribution.
7040
+ */
7041
+ license: string().optional(),
7042
+ /**
7043
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7044
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7045
+ * of a family's sizes and quantizations collapse into one grouped picker
7046
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7047
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7048
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7049
+ * is a presentation overlay resolved back to an `id`.
7050
+ */
7051
+ group: ModelVariantGroupSchema.optional()
6963
7052
  });
6964
7053
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6965
7054
  format: literal("openvino"),
@@ -7020,8 +7109,8 @@ var RecordingModeSchema = _enum([
7020
7109
  "onAudioThreshold"
7021
7110
  ]);
7022
7111
  /**
7023
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7024
- * reads directly (never inferred from `rules`):
7112
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7113
+ * UI reads directly (never inferred from `rules`):
7025
7114
  * - `off` — not recording.
7026
7115
  * - `events` — record only around triggers (motion / audio threshold),
7027
7116
  * with pre/post-buffer.
@@ -8669,26 +8758,13 @@ DeviceType.Light, method(object({
8669
8758
  percentage: number().min(0).max(100),
8670
8759
  lastChangedAt: number()
8671
8760
  });
8761
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8672
8762
  var StreamFormatSchema = _enum([
8673
8763
  "webrtc",
8674
8764
  "hls",
8675
8765
  "mjpeg",
8676
8766
  "rtsp"
8677
8767
  ]);
8678
- var StreamInfoSchema = object({
8679
- streamId: string(),
8680
- format: StreamFormatSchema,
8681
- url: string().nullable(),
8682
- active: boolean()
8683
- });
8684
- method(object({
8685
- streamId: string(),
8686
- sourceUrl: string(),
8687
- codec: string().optional()
8688
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8689
- streamId: string(),
8690
- format: StreamFormatSchema
8691
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8692
8768
  var RtspRestreamEntrySchema = object({
8693
8769
  brokerId: string(),
8694
8770
  url: string(),
@@ -9353,7 +9429,7 @@ var ConsumablesStatusSchema = object({
9353
9429
  })),
9354
9430
  lastChangedAt: number()
9355
9431
  });
9356
- 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({
9432
+ Object.values(DeviceType), method(object({
9357
9433
  deviceId: number().int().nonnegative(),
9358
9434
  key: string().min(1)
9359
9435
  }), _void(), {
@@ -10268,7 +10344,7 @@ var BoundingBoxSchema = object({
10268
10344
  w: number(),
10269
10345
  h: number()
10270
10346
  });
10271
- var SpatialDetectionSchema = object({
10347
+ object({
10272
10348
  class: string(),
10273
10349
  originalClass: string(),
10274
10350
  score: number(),
@@ -10403,7 +10479,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10403
10479
  enabled: boolean(),
10404
10480
  modelId: string(),
10405
10481
  children: array(PipelineDefaultStepSchema).readonly(),
10406
- engine: PipelineEngineChoiceSchema.optional(),
10407
10482
  group: string().optional(),
10408
10483
  settings: record(string(), unknown()).optional()
10409
10484
  }));
@@ -10428,7 +10503,9 @@ var PipelineModelOptionSchema = object({
10428
10503
  formats: record(string(), object({
10429
10504
  downloaded: boolean(),
10430
10505
  sizeMB: number()
10431
- }))
10506
+ })),
10507
+ group: ModelVariantGroupSchema.optional(),
10508
+ legacy: boolean().optional()
10432
10509
  });
10433
10510
  var ConfigFieldBridge = custom();
10434
10511
  var PipelineAddonSchemaSchema = object({
@@ -10442,6 +10519,7 @@ var PipelineAddonSchemaSchema = object({
10442
10519
  defaultModelId: string(),
10443
10520
  defaultModelIdByFormat: record(string(), string()).optional(),
10444
10521
  enabledByDefault: boolean().optional(),
10522
+ backfillIntoExistingOverrides: boolean().optional(),
10445
10523
  defaultConfidence: number(),
10446
10524
  group: string().optional(),
10447
10525
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10458,11 +10536,6 @@ var PipelineSchemaSchema = object({
10458
10536
  selectedEngine: PipelineEngineChoiceSchema,
10459
10537
  slots: array(PipelineSlotSchemaSchema).readonly()
10460
10538
  });
10461
- var DetectorOutputSchema = object({
10462
- detections: array(SpatialDetectionSchema).readonly(),
10463
- inferenceMs: number(),
10464
- modelId: string()
10465
- });
10466
10539
  var EngineProvisioningSchema = object({
10467
10540
  runtimeId: _enum([
10468
10541
  "onnx",
@@ -10479,15 +10552,42 @@ var EngineProvisioningSchema = object({
10479
10552
  ]),
10480
10553
  progress: number().optional(),
10481
10554
  error: string().optional(),
10482
- nextRetryAt: number().optional()
10555
+ nextRetryAt: number().optional(),
10556
+ /**
10557
+ * Gate A (config-correctness gate at engine change): human-readable
10558
+ * config issues surfaced EAGERLY when the node's engine changes — model
10559
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10560
+ * has a <format> build"). Additive/optional: informational only, never
10561
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10562
+ * Absent/empty when the node-default tree resolves cleanly.
10563
+ */
10564
+ configIssues: array(string()).optional()
10483
10565
  });
10484
10566
  var PipelineStepInputSchema = lazy(() => object({
10485
10567
  addonId: string(),
10486
- modelId: string(),
10568
+ modelId: string().optional(),
10487
10569
  enabled: boolean().default(true),
10488
10570
  children: array(PipelineStepInputSchema).optional(),
10489
10571
  settings: record(string(), unknown()).optional()
10490
10572
  }));
10573
+ var ModelSubstitutionSchema = object({
10574
+ addonId: string(),
10575
+ chosen: string(),
10576
+ running: string(),
10577
+ format: string()
10578
+ });
10579
+ var PipelineValidationIssueSchema = object({
10580
+ addonId: string(),
10581
+ kind: _enum(["unknown-addon", "no-format-build"]),
10582
+ detail: string()
10583
+ });
10584
+ var PipelineValidationResultSchema = object({
10585
+ ok: boolean(),
10586
+ issues: array(PipelineValidationIssueSchema).readonly(),
10587
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10588
+ /** The node's `currentEngine.format` this validation ran against. */
10589
+ format: string()
10590
+ });
10491
10591
  var ReferenceImageEntrySchema = object({
10492
10592
  filename: string(),
10493
10593
  stepIds: array(string()).readonly().optional()
@@ -10558,7 +10658,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10558
10658
  })) }), object({ success: literal(true) }), {
10559
10659
  kind: "mutation",
10560
10660
  auth: "admin"
10561
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10661
+ }), method(object({ nodeId: string() }), object({
10662
+ success: literal(true),
10663
+ clearedDevices: number()
10664
+ }), {
10665
+ kind: "mutation",
10666
+ auth: "admin"
10667
+ }), 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({
10562
10668
  name: string(),
10563
10669
  steps: array(PipelineTemplateStepSchema).readonly(),
10564
10670
  engine: PipelineEngineChoiceSchema
@@ -10575,10 +10681,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10575
10681
  modelId: string(),
10576
10682
  format: ModelFormatSchema$1
10577
10683
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10578
- addonId: string(),
10579
- frame: FrameInputSchema,
10580
- config: record(string(), unknown()).optional()
10581
- }), DetectorOutputSchema), method(object({
10582
10684
  engine: PipelineEngineChoiceSchema.optional(),
10583
10685
  steps: array(PipelineStepInputSchema).min(1),
10584
10686
  frame: FrameInputSchema.optional(),
@@ -10599,7 +10701,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10599
10701
  image: _instanceof(Uint8Array).optional(),
10600
10702
  referenceImage: string().optional(),
10601
10703
  deviceId: number().optional(),
10602
- sessionId: string().optional()
10704
+ sessionId: string().optional(),
10705
+ /**
10706
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10707
+ * reference-image, and detail-subtree calls. 'frame' is the live
10708
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10709
+ * (inputClasses ≠ null) are skipped and served per-track via
10710
+ * pipelineRunner.runDetailSubtree (two-plane design).
10711
+ */
10712
+ plane: _enum(["full", "frame"]).optional()
10603
10713
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10604
10714
  engine: PipelineEngineChoiceSchema.optional(),
10605
10715
  steps: array(PipelineStepInputSchema).min(1),
@@ -10724,6 +10834,47 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10724
10834
  auth: "admin"
10725
10835
  }), object({ zones: array(ZoneSchema).readonly() });
10726
10836
  /**
10837
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10838
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10839
+ * so the caller supplies only the detection-res bbox divided by the detection
10840
+ * dims — no native resolution to plumb.
10841
+ */
10842
+ var NativeCropBboxSchema = object({
10843
+ x: number(),
10844
+ y: number(),
10845
+ w: number(),
10846
+ h: number()
10847
+ });
10848
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10849
+ var NativeCropResultSchema = object({
10850
+ /** Packed rgb (24-bit) pixels of the crop. */
10851
+ bytes: _instanceof(Uint8Array),
10852
+ width: number().int().positive(),
10853
+ height: number().int().positive()
10854
+ });
10855
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10856
+ * originating detection, in FRAME-space coordinates. Reuses
10857
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10858
+ * the coordinates are frame-space rather than getNativeCrop's
10859
+ * normalized [0,1] convention). */
10860
+ var DetailParentSchema = object({
10861
+ bbox: NativeCropBboxSchema,
10862
+ className: string()
10863
+ });
10864
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10865
+ * or refined detection produced by running the crop-subtree on a
10866
+ * single tracked detection. */
10867
+ var DetailResultSchema = object({
10868
+ stepId: string(),
10869
+ className: string(),
10870
+ score: number(),
10871
+ /** FRAME-space bbox (already mapped back from crop space). */
10872
+ bbox: NativeCropBboxSchema.optional(),
10873
+ embedding: string().optional(),
10874
+ label: string().optional(),
10875
+ alignedCropJpeg: string().optional()
10876
+ });
10877
+ /**
10727
10878
  * Per-camera tunable ranges + defaults. Single source of truth used
10728
10879
  * by both the Zod data schema (validation + default fallback) and
10729
10880
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10818,6 +10969,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10818
10969
  kind: literal("remote-restream"),
10819
10970
  /** The camera's source-owner node (slice 1: always the hub). */
10820
10971
  ownerNodeId: string(),
10972
+ /**
10973
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10974
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10975
+ * dials THIS host for the owner's restream, in preference to the
10976
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10977
+ */
10978
+ ownerReachableHost: string().optional(),
10821
10979
  /** Operator override for the owner host the runner dials. */
10822
10980
  hubHostnameOverride: string().optional()
10823
10981
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10826,13 +10984,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10826
10984
  * specific runner instance via `attachCamera`. Carries everything the
10827
10985
  * runner needs to subscribe to the local broker and execute inference.
10828
10986
  *
10829
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10830
- * optional `audio`) travels with the attach payload. The runner keeps it
10831
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10832
- * restart the orchestrator re-sends the latest snapshot.
10833
- *
10834
- * `engine`/`steps`/`audio` are optional during the additive migration
10835
- * window; once orchestrator + UI are migrated they become required.
10987
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10988
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10989
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10990
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10991
+ * node-local, resolved by the executing runner at dispatch time.
10836
10992
  */
10837
10993
  var RunnerCameraConfigSchema = object({
10838
10994
  deviceId: number(),
@@ -10883,14 +11039,11 @@ var RunnerCameraConfigSchema = object({
10883
11039
  */
10884
11040
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10885
11041
  pipelineEnabled: boolean().default(true),
10886
- /** Engine choice for video steps (runtime+backend+format). */
10887
- engine: PipelineEngineChoiceSchema.optional(),
10888
11042
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10889
11043
  steps: array(PipelineStepInputSchema).readonly().optional(),
10890
11044
  /** Audio classification branch. `enabled:false` disables, null skips. */
10891
11045
  audio: object({
10892
- engine: PipelineEngineChoiceSchema,
10893
- modelId: string(),
11046
+ modelId: string().optional(),
10894
11047
  enabled: boolean()
10895
11048
  }).nullable().optional(),
10896
11049
  /**
@@ -10977,7 +11130,17 @@ var RunnerLocalMetricsSchema = object({
10977
11130
  avgInferenceTimeMs: number(),
10978
11131
  queueDepth: number()
10979
11132
  });
10980
- 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());
11133
+ 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({
11134
+ handle: FrameHandleSchema,
11135
+ bbox: NativeCropBboxSchema,
11136
+ maxWidth: number().int().positive().optional()
11137
+ }), NativeCropResultSchema.nullable()), method(object({
11138
+ deviceId: number(),
11139
+ frameHandle: FrameHandleSchema.optional(),
11140
+ cropJpeg: string().optional(),
11141
+ parent: DetailParentSchema,
11142
+ steps: array(string()).optional()
11143
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
10981
11144
  object({
10982
11145
  detected: boolean(),
10983
11146
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12271,7 +12434,9 @@ var AddonPageDeclarationSchema$1 = object({
12271
12434
  icon: string(),
12272
12435
  path: string(),
12273
12436
  remoteName: string(),
12274
- bundle: string()
12437
+ bundle: string(),
12438
+ section: string().optional(),
12439
+ sectionLabel: string().optional()
12275
12440
  });
12276
12441
  var AddonPageInfoSchema = object({
12277
12442
  addonId: string(),
@@ -12311,7 +12476,18 @@ var AddonPageDeclarationSchema = object({
12311
12476
  * the static-file route can compute an mtime-based cache-buster URL
12312
12477
  * without a separate filesystem stat.
12313
12478
  */
12314
- bundle: string()
12479
+ bundle: string(),
12480
+ /**
12481
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12482
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12483
+ * Any OTHER string creates (or joins) a custom section rendered after
12484
+ * the built-in groups; its label comes from `sectionLabel` (first
12485
+ * declaration wins), falling back to the id. Absent → the legacy
12486
+ * "Addon Pages" group.
12487
+ */
12488
+ section: string().optional(),
12489
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12490
+ sectionLabel: string().optional()
12315
12491
  });
12316
12492
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12317
12493
  var AddonHttpRouteSchema = object({
@@ -12527,6 +12703,17 @@ var WidgetMetadataSchema = object({
12527
12703
  deviceContext: boolean().default(false),
12528
12704
  integrationContext: boolean().default(false)
12529
12705
  }),
12706
+ /**
12707
+ * Loadable BEFORE authentication. The normal widget registry listing
12708
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12709
+ * (the login page) cannot discover a widget through it. A widget that
12710
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12711
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12712
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12713
+ * than the authenticated registry, and its bundle is served by the
12714
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12715
+ */
12716
+ preAuth: boolean().optional().default(false),
12530
12717
  /** Dashboard placement HINTS (operator can override per instance). */
12531
12718
  defaultSize: WidgetSizeEnum.default("md"),
12532
12719
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12828,6 +13015,66 @@ method(object({
12828
13015
  password: string()
12829
13016
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12830
13017
  /**
13018
+ * `login-method` — collection cap through which auth addons contribute
13019
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13020
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13021
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13022
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13023
+ * procedure aggregates them for the unauthenticated login page.
13024
+ *
13025
+ * A contribution is a discriminated union on `kind`:
13026
+ *
13027
+ * - `redirect` — a declarative button. The login page renders a generic
13028
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13029
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13030
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13031
+ * login page needs NO change.
13032
+ *
13033
+ * - `widget` — a Module-Federation widget the login page mounts (via
13034
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13035
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13036
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13037
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13038
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13039
+ *
13040
+ * Every contribution carries a `stage`:
13041
+ * - `primary` — shown on the first credentials screen (OIDC /
13042
+ * magic-link buttons; a future usernameless passkey).
13043
+ * - `second-factor` — shown AFTER the password leg, gated on the
13044
+ * returned `factors` (passkey-as-2FA today).
13045
+ *
13046
+ * `mount: skip` — the cap is read server-side by the core auth router
13047
+ * (`registry.getCollection('login-method')`), never mounted as its own
13048
+ * tRPC router.
13049
+ */
13050
+ /** When a login method renders in the two-phase login flow. */
13051
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13052
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13053
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13054
+ kind: literal("redirect"),
13055
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13056
+ id: string(),
13057
+ /** Operator-facing button label. */
13058
+ label: string(),
13059
+ /** lucide-react icon name. */
13060
+ icon: string().optional(),
13061
+ /** Addon-owned HTTP route the button navigates to (GET). */
13062
+ startUrl: string(),
13063
+ stage: LoginStageEnum
13064
+ }), object({
13065
+ kind: literal("widget"),
13066
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13067
+ id: string(),
13068
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13069
+ addonId: string(),
13070
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13071
+ bundle: string(),
13072
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13073
+ remote: WidgetRemoteSchema,
13074
+ stage: LoginStageEnum
13075
+ })]);
13076
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13077
+ /**
12831
13078
  * Orchestrator-side destination metadata. The orchestrator computes
12832
13079
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12833
13080
  * (admin UI, restore flow) see one canonical key.
@@ -14931,7 +15178,17 @@ var TrackSchema = object({
14931
15178
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14932
15179
  totalDistance: number(),
14933
15180
  state: TrackStateSchema,
14934
- active: boolean()
15181
+ active: boolean(),
15182
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15183
+ * track expiry, recomputed on late label). Absent on legacy rows written
15184
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15185
+ importance: number().optional(),
15186
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15187
+ * "best" frame). Absent when the track produced no object events. */
15188
+ bestEventId: string().optional(),
15189
+ /** Tag of the importance sub-signal that dominated the score
15190
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15191
+ importanceReason: string().optional()
14935
15192
  });
14936
15193
  var BaseEventFields = {
14937
15194
  id: string(),
@@ -14996,8 +15253,18 @@ var ObjectEventSchema = object({
14996
15253
  frameHeight: number().optional(),
14997
15254
  /** MediaStore key for the crop attached to this event (if any). */
14998
15255
  mediaKey: string().optional(),
15256
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15257
+ * best-detection full frame). Resolve via the event-media data-plane
15258
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15259
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15260
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15261
+ keyFrameMediaKey: string().optional(),
14999
15262
  /** Populated by B5 (recording playback URL for this event). */
15000
- mediaUrl: string().optional()
15263
+ mediaUrl: string().optional(),
15264
+ /** The parent track's key-event importance [0,1], propagated to every object
15265
+ * event of the track (so an event row can be sorted by importance without a
15266
+ * track join). Absent on legacy rows / before the track was scored. */
15267
+ importance: number().optional()
15001
15268
  });
15002
15269
  var AudioEventSchema = object({
15003
15270
  ...BaseEventFields,
@@ -15021,7 +15288,8 @@ var MediaFileKindEnum = _enum([
15021
15288
  "fullFrame",
15022
15289
  "fullFrameBoxed",
15023
15290
  "faceCrop",
15024
- "plateCrop"
15291
+ "plateCrop",
15292
+ "keyFrame"
15025
15293
  ]);
15026
15294
  var MediaFileSchema = object({
15027
15295
  key: string(),
@@ -15042,6 +15310,32 @@ var DeviceEventQueryInput = object({
15042
15310
  projection: _enum(["full", "slim"]).optional()
15043
15311
  });
15044
15312
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15313
+ var KeyEventQueryInput = object({
15314
+ deviceId: number(),
15315
+ /** Window lower bound (track firstSeen ≥ since). */
15316
+ since: number(),
15317
+ /** Window upper bound (track firstSeen ≤ until). */
15318
+ until: number(),
15319
+ limit: number().int().min(1).max(200).default(50),
15320
+ /** Drop tracks scoring below this importance. */
15321
+ minImportance: number().min(0).max(1).optional(),
15322
+ /** Restrict to a single class (e.g. 'person'). */
15323
+ classFilter: string().optional()
15324
+ });
15325
+ var KeyEventSchema = object({
15326
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15327
+ id: string(),
15328
+ trackId: string(),
15329
+ /** Track start time (firstSeen). */
15330
+ timestamp: number(),
15331
+ className: string(),
15332
+ label: string().optional(),
15333
+ importance: number(),
15334
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15335
+ bestEventId: string(),
15336
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15337
+ windowMs: number().optional()
15338
+ });
15045
15339
  var TrackedDetectionSchema = object({
15046
15340
  trackId: string(),
15047
15341
  className: string(),
@@ -15071,7 +15365,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15071
15365
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15072
15366
  kind: "mutation",
15073
15367
  auth: "admin"
15074
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15368
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15075
15369
  deviceId: number(),
15076
15370
  since: number(),
15077
15371
  until: number(),
@@ -15116,11 +15410,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15116
15410
  timestamp: number()
15117
15411
  });
15118
15412
  var CameraPipelineConfigSchema = object({
15119
- engine: PipelineEngineChoiceSchema,
15413
+ engine: PipelineEngineChoiceSchema.optional(),
15120
15414
  steps: array(PipelineStepInputSchema).readonly(),
15121
15415
  audio: object({
15122
- engine: PipelineEngineChoiceSchema,
15123
- modelId: string(),
15416
+ engine: PipelineEngineChoiceSchema.optional(),
15417
+ modelId: string().optional(),
15124
15418
  enabled: boolean(),
15125
15419
  settings: record(string(), unknown()).readonly().optional()
15126
15420
  }).nullable().optional()
@@ -15135,7 +15429,7 @@ var PipelineTemplateSchema = object({
15135
15429
  });
15136
15430
  var AgentAddonConfigSchema = object({
15137
15431
  enabled: boolean(),
15138
- modelId: string(),
15432
+ modelId: string().optional(),
15139
15433
  settings: record(string(), unknown()).readonly()
15140
15434
  });
15141
15435
  var AgentPipelineSettingsSchema = object({
@@ -15145,12 +15439,25 @@ var AgentPipelineSettingsSchema = object({
15145
15439
  detectWeight: number().positive().optional(),
15146
15440
  /** Node is eligible to run the detection pipeline (decode + inference). */
15147
15441
  detect: boolean().optional(),
15148
- /** Node is eligible to host decoder sessions. */
15442
+ /**
15443
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15444
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15445
+ * the schema ONLY so persisted stores written before the removal still
15446
+ * parse — no code reads it and no write path emits it.
15447
+ */
15149
15448
  decode: boolean().optional(),
15150
15449
  /** Node is eligible to run audio-analyzer sessions. */
15151
15450
  audio: boolean().optional(),
15152
15451
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15153
- ingest: boolean().optional()
15452
+ ingest: boolean().optional(),
15453
+ /**
15454
+ * Operator override for the LAN host a cross-node decoder dials to reach
15455
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15456
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15457
+ * it already uses to reach the hub). Set this only when the auto-detected
15458
+ * address is wrong (multi-homed host, NAT, custom interface).
15459
+ */
15460
+ reachableHost: string().optional()
15154
15461
  });
15155
15462
  var CameraPipelineForAgentSchema = object({
15156
15463
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15198,25 +15505,6 @@ var PipelineAssignmentSchema = object({
15198
15505
  assignedAt: number()
15199
15506
  });
15200
15507
  /**
15201
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15202
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15203
- * → co-located with pipeline → capacity).
15204
- */
15205
- var DecoderAssignmentSchema = object({
15206
- deviceId: number(),
15207
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15208
- decoderNodeId: string(),
15209
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15210
- pinned: boolean(),
15211
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15212
- reason: _enum([
15213
- "manual",
15214
- "co-located",
15215
- "capacity",
15216
- "hardware-affinity"
15217
- ])
15218
- });
15219
- /**
15220
15508
  * Per-agent load summary surfaced to the load balancer + dashboards.
15221
15509
  * Aggregated from each runner's `getLocalLoad` cap call.
15222
15510
  */
@@ -15256,6 +15544,15 @@ var GlobalMetricsSchema = object({
15256
15544
  * capability providers.
15257
15545
  */
15258
15546
  var CapabilityBindingsSchema = record(string(), string());
15547
+ /**
15548
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15549
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15550
+ */
15551
+ var IngestOwnerSchema = object({
15552
+ ownerNodeId: string(),
15553
+ reachableHost: string().optional(),
15554
+ configIssue: string().optional()
15555
+ });
15259
15556
  /** Source block — always present; derives from the stream catalog. */
15260
15557
  var CameraSourceStatusSchema = object({ streams: array(object({
15261
15558
  camStreamId: string(),
@@ -15270,6 +15567,14 @@ var CameraAssignmentStatusSchema = object({
15270
15567
  detectionNodeId: string().nullable(),
15271
15568
  decoderNodeId: string().nullable(),
15272
15569
  audioNodeId: string().nullable(),
15570
+ /**
15571
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15572
+ * hosts the broker/restream) — the cluster ingest owner today
15573
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15574
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15575
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15576
+ */
15577
+ sourceNodeId: string().nullable(),
15273
15578
  pinned: object({
15274
15579
  detection: boolean(),
15275
15580
  decoder: boolean(),
@@ -15402,16 +15707,7 @@ method(object({
15402
15707
  }), object({ success: literal(true) }), {
15403
15708
  kind: "mutation",
15404
15709
  auth: "admin"
15405
- }), method(object({
15406
- deviceId: number(),
15407
- nodeId: string()
15408
- }), _void(), {
15409
- kind: "mutation",
15410
- auth: "admin"
15411
- }), method(object({ deviceId: number() }), _void(), {
15412
- kind: "mutation",
15413
- auth: "admin"
15414
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15710
+ }), method(_void(), IngestOwnerSchema), method(object({
15415
15711
  deviceId: number(),
15416
15712
  nodeId: string()
15417
15713
  }), object({ success: literal(true) }), {
@@ -15432,10 +15728,7 @@ method(object({
15432
15728
  nodeId: string(),
15433
15729
  pinned: boolean(),
15434
15730
  assignedAt: number()
15435
- }))), method(object({
15436
- deviceId: number(),
15437
- pipelineNodeId: string().optional()
15438
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15731
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15439
15732
  nodeId: string(),
15440
15733
  settings: AgentPipelineSettingsSchema
15441
15734
  })).readonly()), method(object({
@@ -15465,12 +15758,26 @@ method(object({
15465
15758
  }), method(object({
15466
15759
  agentNodeId: string(),
15467
15760
  detect: boolean().nullable().optional(),
15468
- decode: boolean().nullable().optional(),
15469
15761
  audio: boolean().nullable().optional(),
15470
15762
  ingest: boolean().nullable().optional()
15471
15763
  }), object({ success: literal(true) }), {
15472
15764
  kind: "mutation",
15473
15765
  auth: "admin"
15766
+ }), method(object({
15767
+ agentNodeId: string(),
15768
+ reachableHost: string().nullable()
15769
+ }), object({ success: literal(true) }), {
15770
+ kind: "mutation",
15771
+ auth: "admin"
15772
+ }), method(object({ agentNodeId: string() }), object({
15773
+ success: literal(true),
15774
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15775
+ effectiveModelId: string().nullable(),
15776
+ /** Number of cameras whose node-scoped overrides were cleared. */
15777
+ clearedCameraOverrides: number()
15778
+ }), {
15779
+ kind: "mutation",
15780
+ auth: "admin"
15474
15781
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15475
15782
  deviceId: number(),
15476
15783
  addonId: string(),
@@ -15515,22 +15822,131 @@ method(object({
15515
15822
  kind: "mutation",
15516
15823
  auth: "admin"
15517
15824
  });
15518
- var RegisteredStreamSchema = object({
15519
- streamId: string(),
15520
- label: string().optional(),
15521
- codec: string(),
15522
- type: _enum(["video", "audio"]),
15523
- sourceUrl: string()
15825
+ /**
15826
+ * server-management — per-NODE singleton capability for a node's ROOT
15827
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15828
+ * agents).
15829
+ *
15830
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15831
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15832
+ * version describes the node. Updates install into
15833
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15834
+ * starter (probation boot + auto-rollback to N-1).
15835
+ *
15836
+ * Providers:
15837
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15838
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15839
+ * unpinned calls.
15840
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15841
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15842
+ * `$hub.registerNode` manifest.
15843
+ *
15844
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15845
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15846
+ * SDK) routes the call to that node's provider via the standard remote
15847
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15848
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15849
+ *
15850
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15851
+ */
15852
+ /**
15853
+ * Where the running hub's code was loaded from:
15854
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15855
+ * plain resolution and runtime updates are refused.
15856
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15857
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15858
+ */
15859
+ var ServerBootModeSchema = _enum([
15860
+ "workspace",
15861
+ "baked",
15862
+ "data-root"
15863
+ ]);
15864
+ /**
15865
+ * Update lifecycle state:
15866
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15867
+ * - `pending-restart` — a version is staged and the node has NOT yet
15868
+ * restarted onto it (still running the OLD version).
15869
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15870
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15871
+ * Apply/rollback are refused in this state and the node must NOT be
15872
+ * manually restarted, or the probation boot auto-rolls-back.
15873
+ */
15874
+ var ServerUpdateStateSchema = _enum([
15875
+ "idle",
15876
+ "checking",
15877
+ "staging",
15878
+ "pending-restart",
15879
+ "awaiting-confirmation"
15880
+ ]);
15881
+ var ServerRollbackInfoSchema = object({
15882
+ /** The version that failed (or was manually rolled back). */
15883
+ fromVersion: string(),
15884
+ /** The version rolled back to; null = the baked seed. */
15885
+ toVersion: string().nullable(),
15886
+ atMs: number(),
15887
+ reason: string()
15524
15888
  });
15525
- var ExposedResourceSchema = object({
15526
- streamId: string(),
15527
- format: string(),
15528
- value: string()
15889
+ var ServerPackageStatusSchema = object({
15890
+ /** Root package name (`@camstack/server` on the hub). */
15891
+ packageName: string(),
15892
+ /** Version of the code the running process ACTUALLY loaded. */
15893
+ runningVersion: string().nullable(),
15894
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15895
+ nodeRuntimeVersion: string().nullable(),
15896
+ /** Active data-dir root version; null when booted from seed/workspace. */
15897
+ activeVersion: string().nullable(),
15898
+ /** N-1 version kept for rollback; null when no previous version exists. */
15899
+ previousVersion: string().nullable(),
15900
+ /** Version of the immutable baked seed closure (image fallback). */
15901
+ seedVersion: string().nullable(),
15902
+ /** Latest registry version from the most recent check (null = never checked). */
15903
+ latestVersion: string().nullable(),
15904
+ updateAvailable: boolean(),
15905
+ bootMode: ServerBootModeSchema,
15906
+ updateState: ServerUpdateStateSchema,
15907
+ /** Version staged + awaiting its probation boot, when one is pending. */
15908
+ pendingVersion: string().nullable(),
15909
+ /** Set when the last freshly-activated version failed its boot health-check. */
15910
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15911
+ /**
15912
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15913
+ * hub is running from the baked seed (or workspace) while installed data-dir
15914
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15915
+ */
15916
+ stateFileCorrupt: boolean(),
15917
+ lastCheckedAtMs: number().nullable()
15918
+ });
15919
+ var ServerUpdateCheckResultSchema = object({
15920
+ packageName: string(),
15921
+ runningVersion: string().nullable(),
15922
+ latestVersion: string().nullable(),
15923
+ updateAvailable: boolean(),
15924
+ checkedAtMs: number(),
15925
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15926
+ error: string().nullable()
15927
+ });
15928
+ var ServerUpdateActionResultSchema = object({
15929
+ accepted: boolean(),
15930
+ targetVersion: string().nullable(),
15931
+ /** True when a graceful restart was scheduled to apply the change. */
15932
+ restarting: boolean(),
15933
+ message: string()
15934
+ });
15935
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15936
+ kind: "mutation",
15937
+ auth: "admin"
15938
+ }), method(object({
15939
+ /** Explicit target version; omitted = latest from the registry. */
15940
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15941
+ kind: "mutation",
15942
+ auth: "admin"
15943
+ }), method(_void(), ServerUpdateActionResultSchema, {
15944
+ kind: "mutation",
15945
+ auth: "admin"
15946
+ }), method(_void(), ServerUpdateActionResultSchema, {
15947
+ kind: "mutation",
15948
+ auth: "admin"
15529
15949
  });
15530
- method(object({
15531
- deviceId: number(),
15532
- streams: array(RegisteredStreamSchema).readonly()
15533
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15534
15950
  /**
15535
15951
  * Query filter for settings-store collections.
15536
15952
  */
@@ -15696,9 +16112,9 @@ var smtpProviderCapability = {
15696
16112
  /**
15697
16113
  * A single device snapshot returned as base64 JPEG/PNG.
15698
16114
  *
15699
- * Shared with the `snapshot-provider` collection cap the orchestrator
15700
- * receives the same shape from each native provider and from the
15701
- * broker-based fallback.
16115
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16116
+ * the device-native provider (onboard capture) or from the stream-broker
16117
+ * prebuffer fallback.
15702
16118
  */
15703
16119
  var SnapshotImageSchema = object({
15704
16120
  base64: string(),
@@ -15729,11 +16145,12 @@ DeviceType.Camera, method(object({
15729
16145
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15730
16146
  kind: "mutation",
15731
16147
  auth: "admin"
15732
- });
15733
- method(object({ deviceId: number() }), boolean()), method(object({
16148
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15734
16149
  deviceId: number(),
15735
- streamId: string().optional()
15736
- }), SnapshotImageSchema.nullable());
16150
+ lastCapturedAt: number().nullable(),
16151
+ cacheAgeMs: number().nullable(),
16152
+ etag: string().nullable()
16153
+ })));
15737
16154
  /**
15738
16155
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15739
16156
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -15984,10 +16401,32 @@ method(_void(), array(TurnServerSchema).readonly());
15984
16401
  * b. `finishAuthentication({userId, response})` → server verifies
15985
16402
  * the assertion, bumps the credential counter, returns ok.
15986
16403
  *
16404
+ * 2b. Usernameless (discoverable-credential) authentication — the
16405
+ * passkey IS the primary factor, no password leg:
16406
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16407
+ * EMPTY `allowCredentials` (the browser offers every resident
16408
+ * passkey it holds for this RP) + `userVerification: 'required'`
16409
+ * (the passkey replaces both factors, so UV is mandatory).
16410
+ * The challenge is stored server-side, NOT bound to any user.
16411
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16412
+ * resolves the credential by the response's credential id,
16413
+ * verifies the assertion against the stored challenge + that
16414
+ * credential's public key/counter, and returns the OWNING
16415
+ * `userId` — the caller (core auth router) mints the session.
16416
+ *
15987
16417
  * 3. Management:
15988
16418
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
15989
16419
  * - `removePasskey({userId, credentialId})` — revoke one credential.
15990
16420
  *
16421
+ * 4. Second-factor preference (opt-in, default OFF):
16422
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16423
+ * demanded as a second factor after a password login ONLY when the
16424
+ * user explicitly opts in via `setSecondFactorPreference`.
16425
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16426
+ * row ⇒ `enabled: false`).
16427
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16428
+ * the providing addon beside its credentials.
16429
+ *
15991
16430
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
15992
16431
  * the admin-ui composes the begin/finish round-trip and never exposes
15993
16432
  * the cap to non-admins.
@@ -16030,6 +16469,17 @@ method(object({
16030
16469
  }), object({ verified: boolean() }), {
16031
16470
  kind: "mutation",
16032
16471
  access: "view"
16472
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16473
+ kind: "mutation",
16474
+ access: "view"
16475
+ }), method(object({
16476
+ /** AuthenticationResponseJSON from the browser. */
16477
+ response: record(string(), unknown()) }), object({
16478
+ verified: boolean(),
16479
+ userId: string().nullable()
16480
+ }), {
16481
+ kind: "mutation",
16482
+ access: "view"
16033
16483
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16034
16484
  userId: string(),
16035
16485
  credentialId: string()
@@ -16037,6 +16487,13 @@ method(object({
16037
16487
  kind: "mutation",
16038
16488
  auth: "admin",
16039
16489
  access: "delete"
16490
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16491
+ userId: string(),
16492
+ enabled: boolean()
16493
+ }), object({ success: literal(true) }), {
16494
+ kind: "mutation",
16495
+ auth: "admin",
16496
+ access: "create"
16040
16497
  });
16041
16498
  /**
16042
16499
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16094,9 +16551,10 @@ method(object({
16094
16551
  auth: "admin"
16095
16552
  });
16096
16553
  /**
16097
- * Optional client-side hints sent at session creation to help the
16098
- * provider pick the best native source. All fields are optional —
16099
- * a viewer that knows nothing still gets a sane default.
16554
+ * Optional client-side hints sent at session creation to help the provider
16555
+ * pick the best native source. All fields optional — a viewer that knows
16556
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16557
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16100
16558
  */
16101
16559
  var webrtcClientHintsSchema = object({
16102
16560
  viewportWidth: number().int().positive().optional(),
@@ -16107,22 +16565,6 @@ var webrtcClientHintsSchema = object({
16107
16565
  /** Hard tier override; takes precedence over scoring when registered. */
16108
16566
  prefersTier: string().optional()
16109
16567
  }).partial();
16110
- method(object({
16111
- streamId: string(),
16112
- sdpOffer: string()
16113
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16114
- streamId: string(),
16115
- codec: string()
16116
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16117
- streamId: string(),
16118
- hints: webrtcClientHintsSchema.optional()
16119
- }), object({
16120
- sessionId: string(),
16121
- sdpOffer: string()
16122
- }), { kind: "mutation" }), method(object({
16123
- sessionId: string(),
16124
- sdpAnswer: string()
16125
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16126
16568
  /**
16127
16569
  * Discriminated target for a WebRTC session. The client sends this
16128
16570
  * structured object instead of building / parsing brokerId strings;
@@ -16853,7 +17295,17 @@ var FaceInfoSchema = object({
16853
17295
  recognizedIdentityId: string().optional(),
16854
17296
  identityName: string().optional(),
16855
17297
  assigned: boolean(),
16856
- base64: string().optional()
17298
+ base64: string().optional(),
17299
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17300
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17301
+ * legacy rows written before design B. */
17302
+ faceBbox: BoundingBoxSchema.optional(),
17303
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17304
+ * Fetch the native JPEG via the event-media data-plane
17305
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17306
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17307
+ * back to the inline `base64` face crop. */
17308
+ keyFrameMediaKey: string().optional()
16857
17309
  });
16858
17310
  var FaceFilterEnum = _enum([
16859
17311
  "unassigned",
@@ -17550,6 +18002,16 @@ var TopologyCategorySchema = object({
17550
18002
  healthy: number(),
17551
18003
  addons: array(TopologyCategoryAddonSchema).readonly()
17552
18004
  });
18005
+ /**
18006
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18007
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18008
+ * version visibility for the Server management surface. Nullable: offline
18009
+ * rows and pre-phase-2 nodes report none.
18010
+ */
18011
+ var TopologyRootPackageSchema = object({
18012
+ name: string(),
18013
+ version: string()
18014
+ });
17553
18015
  var TopologyNodeSchema = object({
17554
18016
  id: string(),
17555
18017
  name: string(),
@@ -17573,7 +18035,8 @@ var TopologyNodeSchema = object({
17573
18035
  status: string()
17574
18036
  })).readonly(),
17575
18037
  processes: array(TopologyProcessSchema).readonly(),
17576
- categories: array(TopologyCategorySchema).readonly()
18038
+ categories: array(TopologyCategorySchema).readonly(),
18039
+ rootPackage: TopologyRootPackageSchema.nullable()
17577
18040
  });
17578
18041
  var CapUsageEdgeSchema = object({
17579
18042
  callerAddonId: string(),
@@ -20373,6 +20836,12 @@ Object.freeze({
20373
20836
  addonId: null,
20374
20837
  access: "create"
20375
20838
  },
20839
+ "loginMethod.getLoginMethods": {
20840
+ capName: "login-method",
20841
+ capScope: "system",
20842
+ addonId: null,
20843
+ access: "view"
20844
+ },
20376
20845
  "mediaPlayer.next": {
20377
20846
  capName: "media-player",
20378
20847
  capScope: "device",
@@ -20955,6 +21424,12 @@ Object.freeze({
20955
21424
  addonId: null,
20956
21425
  access: "view"
20957
21426
  },
21427
+ "pipelineAnalytics.getKeyEvents": {
21428
+ capName: "pipeline-analytics",
21429
+ capScope: "device",
21430
+ addonId: null,
21431
+ access: "view"
21432
+ },
20958
21433
  "pipelineAnalytics.getMotionEvents": {
20959
21434
  capName: "pipeline-analytics",
20960
21435
  capScope: "device",
@@ -21003,23 +21478,23 @@ Object.freeze({
21003
21478
  addonId: null,
21004
21479
  access: "create"
21005
21480
  },
21006
- "pipelineExecutor.deleteModel": {
21481
+ "pipelineExecutor.clearDeviceOverrides": {
21007
21482
  capName: "pipeline-executor",
21008
21483
  capScope: "system",
21009
21484
  addonId: null,
21010
21485
  access: "delete"
21011
21486
  },
21012
- "pipelineExecutor.deleteTemplate": {
21487
+ "pipelineExecutor.deleteModel": {
21013
21488
  capName: "pipeline-executor",
21014
21489
  capScope: "system",
21015
21490
  addonId: null,
21016
21491
  access: "delete"
21017
21492
  },
21018
- "pipelineExecutor.detect": {
21493
+ "pipelineExecutor.deleteTemplate": {
21019
21494
  capName: "pipeline-executor",
21020
21495
  capScope: "system",
21021
21496
  addonId: null,
21022
- access: "view"
21497
+ access: "delete"
21023
21498
  },
21024
21499
  "pipelineExecutor.downloadModel": {
21025
21500
  capName: "pipeline-executor",
@@ -21213,13 +21688,13 @@ Object.freeze({
21213
21688
  addonId: null,
21214
21689
  access: "create"
21215
21690
  },
21216
- "pipelineOrchestrator.assignAudio": {
21217
- capName: "pipeline-orchestrator",
21691
+ "pipelineExecutor.validatePipeline": {
21692
+ capName: "pipeline-executor",
21218
21693
  capScope: "system",
21219
21694
  addonId: null,
21220
- access: "create"
21695
+ access: "view"
21221
21696
  },
21222
- "pipelineOrchestrator.assignDecoder": {
21697
+ "pipelineOrchestrator.assignAudio": {
21223
21698
  capName: "pipeline-orchestrator",
21224
21699
  capScope: "system",
21225
21700
  addonId: null,
@@ -21303,19 +21778,13 @@ Object.freeze({
21303
21778
  addonId: null,
21304
21779
  access: "view"
21305
21780
  },
21306
- "pipelineOrchestrator.getDecoderAssignment": {
21781
+ "pipelineOrchestrator.getGlobalMetrics": {
21307
21782
  capName: "pipeline-orchestrator",
21308
21783
  capScope: "system",
21309
21784
  addonId: null,
21310
21785
  access: "view"
21311
21786
  },
21312
- "pipelineOrchestrator.getDecoderAssignments": {
21313
- capName: "pipeline-orchestrator",
21314
- capScope: "system",
21315
- addonId: null,
21316
- access: "view"
21317
- },
21318
- "pipelineOrchestrator.getGlobalMetrics": {
21787
+ "pipelineOrchestrator.getIngestOwner": {
21319
21788
  capName: "pipeline-orchestrator",
21320
21789
  capScope: "system",
21321
21790
  addonId: null,
@@ -21357,6 +21826,12 @@ Object.freeze({
21357
21826
  addonId: null,
21358
21827
  access: "delete"
21359
21828
  },
21829
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21830
+ capName: "pipeline-orchestrator",
21831
+ capScope: "system",
21832
+ addonId: null,
21833
+ access: "delete"
21834
+ },
21360
21835
  "pipelineOrchestrator.resolvePipeline": {
21361
21836
  capName: "pipeline-orchestrator",
21362
21837
  capScope: "system",
@@ -21393,37 +21868,37 @@ Object.freeze({
21393
21868
  addonId: null,
21394
21869
  access: "create"
21395
21870
  },
21396
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21871
+ "pipelineOrchestrator.setAgentReachableHost": {
21397
21872
  capName: "pipeline-orchestrator",
21398
21873
  capScope: "system",
21399
21874
  addonId: null,
21400
21875
  access: "create"
21401
21876
  },
21402
- "pipelineOrchestrator.setCameraStepOverride": {
21877
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21403
21878
  capName: "pipeline-orchestrator",
21404
21879
  capScope: "system",
21405
21880
  addonId: null,
21406
21881
  access: "create"
21407
21882
  },
21408
- "pipelineOrchestrator.setCameraStepToggle": {
21883
+ "pipelineOrchestrator.setCameraStepOverride": {
21409
21884
  capName: "pipeline-orchestrator",
21410
21885
  capScope: "system",
21411
21886
  addonId: null,
21412
21887
  access: "create"
21413
21888
  },
21414
- "pipelineOrchestrator.setCapabilityBinding": {
21889
+ "pipelineOrchestrator.setCameraStepToggle": {
21415
21890
  capName: "pipeline-orchestrator",
21416
21891
  capScope: "system",
21417
21892
  addonId: null,
21418
21893
  access: "create"
21419
21894
  },
21420
- "pipelineOrchestrator.unassignAudio": {
21895
+ "pipelineOrchestrator.setCapabilityBinding": {
21421
21896
  capName: "pipeline-orchestrator",
21422
21897
  capScope: "system",
21423
21898
  addonId: null,
21424
21899
  access: "create"
21425
21900
  },
21426
- "pipelineOrchestrator.unassignDecoder": {
21901
+ "pipelineOrchestrator.unassignAudio": {
21427
21902
  capName: "pipeline-orchestrator",
21428
21903
  capScope: "system",
21429
21904
  addonId: null,
@@ -21483,12 +21958,24 @@ Object.freeze({
21483
21958
  addonId: null,
21484
21959
  access: "view"
21485
21960
  },
21961
+ "pipelineRunner.getNativeCrop": {
21962
+ capName: "pipeline-runner",
21963
+ capScope: "system",
21964
+ addonId: null,
21965
+ access: "view"
21966
+ },
21486
21967
  "pipelineRunner.reportMotion": {
21487
21968
  capName: "pipeline-runner",
21488
21969
  capScope: "system",
21489
21970
  addonId: null,
21490
21971
  access: "create"
21491
21972
  },
21973
+ "pipelineRunner.runDetailSubtree": {
21974
+ capName: "pipeline-runner",
21975
+ capScope: "system",
21976
+ addonId: null,
21977
+ access: "create"
21978
+ },
21492
21979
  "plateGallery.correctPlateText": {
21493
21980
  capName: "plate-gallery",
21494
21981
  capScope: "system",
@@ -21723,33 +22210,45 @@ Object.freeze({
21723
22210
  addonId: null,
21724
22211
  access: "create"
21725
22212
  },
21726
- "restreamer.getExposedResources": {
21727
- capName: "restreamer",
22213
+ "scriptRunner.run": {
22214
+ capName: "script-runner",
22215
+ capScope: "device",
22216
+ addonId: null,
22217
+ access: "create"
22218
+ },
22219
+ "scriptRunner.stop": {
22220
+ capName: "script-runner",
22221
+ capScope: "device",
22222
+ addonId: null,
22223
+ access: "create"
22224
+ },
22225
+ "serverManagement.applyServerUpdate": {
22226
+ capName: "server-management",
21728
22227
  capScope: "system",
21729
22228
  addonId: null,
21730
- access: "view"
22229
+ access: "create"
21731
22230
  },
21732
- "restreamer.registerDevice": {
21733
- capName: "restreamer",
22231
+ "serverManagement.checkServerUpdate": {
22232
+ capName: "server-management",
21734
22233
  capScope: "system",
21735
22234
  addonId: null,
21736
22235
  access: "create"
21737
22236
  },
21738
- "restreamer.unregisterDevice": {
21739
- capName: "restreamer",
22237
+ "serverManagement.getServerPackageStatus": {
22238
+ capName: "server-management",
21740
22239
  capScope: "system",
21741
22240
  addonId: null,
21742
- access: "delete"
22241
+ access: "view"
21743
22242
  },
21744
- "scriptRunner.run": {
21745
- capName: "script-runner",
21746
- capScope: "device",
22243
+ "serverManagement.restartServer": {
22244
+ capName: "server-management",
22245
+ capScope: "system",
21747
22246
  addonId: null,
21748
22247
  access: "create"
21749
22248
  },
21750
- "scriptRunner.stop": {
21751
- capName: "script-runner",
21752
- capScope: "device",
22249
+ "serverManagement.rollbackServerUpdate": {
22250
+ capName: "server-management",
22251
+ capScope: "system",
21753
22252
  addonId: null,
21754
22253
  access: "create"
21755
22254
  },
@@ -21837,23 +22336,17 @@ Object.freeze({
21837
22336
  addonId: null,
21838
22337
  access: "view"
21839
22338
  },
21840
- "snapshot.invalidateCache": {
22339
+ "snapshot.getSnapshotOverview": {
21841
22340
  capName: "snapshot",
21842
22341
  capScope: "device",
21843
22342
  addonId: null,
21844
- access: "create"
21845
- },
21846
- "snapshotProvider.getSnapshot": {
21847
- capName: "snapshot-provider",
21848
- capScope: "system",
21849
- addonId: null,
21850
22343
  access: "view"
21851
22344
  },
21852
- "snapshotProvider.supportsDevice": {
21853
- capName: "snapshot-provider",
21854
- capScope: "system",
22345
+ "snapshot.invalidateCache": {
22346
+ capName: "snapshot",
22347
+ capScope: "device",
21855
22348
  addonId: null,
21856
- access: "view"
22349
+ access: "create"
21857
22350
  },
21858
22351
  "ssoBridge.signBridgeToken": {
21859
22352
  capName: "sso-bridge",
@@ -22281,30 +22774,6 @@ Object.freeze({
22281
22774
  addonId: null,
22282
22775
  access: "view"
22283
22776
  },
22284
- "streamingEngine.getStreamUrl": {
22285
- capName: "streaming-engine",
22286
- capScope: "system",
22287
- addonId: null,
22288
- access: "view"
22289
- },
22290
- "streamingEngine.listStreams": {
22291
- capName: "streaming-engine",
22292
- capScope: "system",
22293
- addonId: null,
22294
- access: "view"
22295
- },
22296
- "streamingEngine.registerStream": {
22297
- capName: "streaming-engine",
22298
- capScope: "system",
22299
- addonId: null,
22300
- access: "create"
22301
- },
22302
- "streamingEngine.unregisterStream": {
22303
- capName: "streaming-engine",
22304
- capScope: "system",
22305
- addonId: null,
22306
- access: "delete"
22307
- },
22308
22777
  "streamParams.getConfigSchema": {
22309
22778
  capName: "stream-params",
22310
22779
  capScope: "device",
@@ -22551,6 +23020,12 @@ Object.freeze({
22551
23020
  addonId: null,
22552
23021
  access: "view"
22553
23022
  },
23023
+ "userPasskeys.beginDiscoverableAuthentication": {
23024
+ capName: "user-passkeys",
23025
+ capScope: "system",
23026
+ addonId: null,
23027
+ access: "view"
23028
+ },
22554
23029
  "userPasskeys.beginRegistration": {
22555
23030
  capName: "user-passkeys",
22556
23031
  capScope: "system",
@@ -22563,12 +23038,24 @@ Object.freeze({
22563
23038
  addonId: null,
22564
23039
  access: "view"
22565
23040
  },
23041
+ "userPasskeys.finishDiscoverableAuthentication": {
23042
+ capName: "user-passkeys",
23043
+ capScope: "system",
23044
+ addonId: null,
23045
+ access: "view"
23046
+ },
22566
23047
  "userPasskeys.finishRegistration": {
22567
23048
  capName: "user-passkeys",
22568
23049
  capScope: "system",
22569
23050
  addonId: null,
22570
23051
  access: "create"
22571
23052
  },
23053
+ "userPasskeys.getSecondFactorPreference": {
23054
+ capName: "user-passkeys",
23055
+ capScope: "system",
23056
+ addonId: null,
23057
+ access: "view"
23058
+ },
22572
23059
  "userPasskeys.listPasskeys": {
22573
23060
  capName: "user-passkeys",
22574
23061
  capScope: "system",
@@ -22581,6 +23068,12 @@ Object.freeze({
22581
23068
  addonId: null,
22582
23069
  access: "delete"
22583
23070
  },
23071
+ "userPasskeys.setSecondFactorPreference": {
23072
+ capName: "user-passkeys",
23073
+ capScope: "system",
23074
+ addonId: null,
23075
+ access: "create"
23076
+ },
22584
23077
  "vacuumControl.locate": {
22585
23078
  capName: "vacuum-control",
22586
23079
  capScope: "device",
@@ -22653,6 +23146,18 @@ Object.freeze({
22653
23146
  addonId: null,
22654
23147
  access: "view"
22655
23148
  },
23149
+ "viewerUi.getStaticDir": {
23150
+ capName: "viewer-ui",
23151
+ capScope: "system",
23152
+ addonId: null,
23153
+ access: "view"
23154
+ },
23155
+ "viewerUi.getVersion": {
23156
+ capName: "viewer-ui",
23157
+ capScope: "system",
23158
+ addonId: null,
23159
+ access: "view"
23160
+ },
22656
23161
  "waterHeater.setAway": {
22657
23162
  capName: "water-heater",
22658
23163
  capScope: "device",
@@ -22671,54 +23176,6 @@ Object.freeze({
22671
23176
  addonId: null,
22672
23177
  access: "create"
22673
23178
  },
22674
- "webrtc.closeSession": {
22675
- capName: "webrtc",
22676
- capScope: "system",
22677
- addonId: null,
22678
- access: "create"
22679
- },
22680
- "webrtc.createSession": {
22681
- capName: "webrtc",
22682
- capScope: "system",
22683
- addonId: null,
22684
- access: "create"
22685
- },
22686
- "webrtc.handleAnswer": {
22687
- capName: "webrtc",
22688
- capScope: "system",
22689
- addonId: null,
22690
- access: "create"
22691
- },
22692
- "webrtc.handleOffer": {
22693
- capName: "webrtc",
22694
- capScope: "system",
22695
- addonId: null,
22696
- access: "create"
22697
- },
22698
- "webrtc.hasAdaptiveBitrate": {
22699
- capName: "webrtc",
22700
- capScope: "system",
22701
- addonId: null,
22702
- access: "view"
22703
- },
22704
- "webrtc.registerStream": {
22705
- capName: "webrtc",
22706
- capScope: "system",
22707
- addonId: null,
22708
- access: "create"
22709
- },
22710
- "webrtc.supportsStream": {
22711
- capName: "webrtc",
22712
- capScope: "system",
22713
- addonId: null,
22714
- access: "view"
22715
- },
22716
- "webrtc.unregisterStream": {
22717
- capName: "webrtc",
22718
- capScope: "system",
22719
- addonId: null,
22720
- access: "delete"
22721
- },
22722
23179
  "webrtcSession.addIceCandidate": {
22723
23180
  capName: "webrtc-session",
22724
23181
  capScope: "device",