@camstack/addon-smtp-nodemailer 1.1.19 → 1.1.20

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-BC9Yqte7.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(),
@@ -10724,6 +10826,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10724
10826
  auth: "admin"
10725
10827
  }), object({ zones: array(ZoneSchema).readonly() });
10726
10828
  /**
10829
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10830
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10831
+ * so the caller supplies only the detection-res bbox divided by the detection
10832
+ * dims — no native resolution to plumb.
10833
+ */
10834
+ var NativeCropBboxSchema = object({
10835
+ x: number(),
10836
+ y: number(),
10837
+ w: number(),
10838
+ h: number()
10839
+ });
10840
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10841
+ var NativeCropResultSchema = object({
10842
+ /** Packed rgb (24-bit) pixels of the crop. */
10843
+ bytes: _instanceof(Uint8Array),
10844
+ width: number().int().positive(),
10845
+ height: number().int().positive()
10846
+ });
10847
+ /**
10727
10848
  * Per-camera tunable ranges + defaults. Single source of truth used
10728
10849
  * by both the Zod data schema (validation + default fallback) and
10729
10850
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10818,6 +10939,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10818
10939
  kind: literal("remote-restream"),
10819
10940
  /** The camera's source-owner node (slice 1: always the hub). */
10820
10941
  ownerNodeId: string(),
10942
+ /**
10943
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10944
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10945
+ * dials THIS host for the owner's restream, in preference to the
10946
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10947
+ */
10948
+ ownerReachableHost: string().optional(),
10821
10949
  /** Operator override for the owner host the runner dials. */
10822
10950
  hubHostnameOverride: string().optional()
10823
10951
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10826,13 +10954,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10826
10954
  * specific runner instance via `attachCamera`. Carries everything the
10827
10955
  * runner needs to subscribe to the local broker and execute inference.
10828
10956
  *
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.
10957
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10958
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10959
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10960
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10961
+ * node-local, resolved by the executing runner at dispatch time.
10836
10962
  */
10837
10963
  var RunnerCameraConfigSchema = object({
10838
10964
  deviceId: number(),
@@ -10883,14 +11009,11 @@ var RunnerCameraConfigSchema = object({
10883
11009
  */
10884
11010
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10885
11011
  pipelineEnabled: boolean().default(true),
10886
- /** Engine choice for video steps (runtime+backend+format). */
10887
- engine: PipelineEngineChoiceSchema.optional(),
10888
11012
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10889
11013
  steps: array(PipelineStepInputSchema).readonly().optional(),
10890
11014
  /** Audio classification branch. `enabled:false` disables, null skips. */
10891
11015
  audio: object({
10892
- engine: PipelineEngineChoiceSchema,
10893
- modelId: string(),
11016
+ modelId: string().optional(),
10894
11017
  enabled: boolean()
10895
11018
  }).nullable().optional(),
10896
11019
  /**
@@ -10977,7 +11100,11 @@ var RunnerLocalMetricsSchema = object({
10977
11100
  avgInferenceTimeMs: number(),
10978
11101
  queueDepth: number()
10979
11102
  });
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());
11103
+ 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({
11104
+ handle: FrameHandleSchema,
11105
+ bbox: NativeCropBboxSchema,
11106
+ maxWidth: number().int().positive().optional()
11107
+ }), NativeCropResultSchema.nullable());
10981
11108
  object({
10982
11109
  detected: boolean(),
10983
11110
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12271,7 +12398,9 @@ var AddonPageDeclarationSchema$1 = object({
12271
12398
  icon: string(),
12272
12399
  path: string(),
12273
12400
  remoteName: string(),
12274
- bundle: string()
12401
+ bundle: string(),
12402
+ section: string().optional(),
12403
+ sectionLabel: string().optional()
12275
12404
  });
12276
12405
  var AddonPageInfoSchema = object({
12277
12406
  addonId: string(),
@@ -12311,7 +12440,18 @@ var AddonPageDeclarationSchema = object({
12311
12440
  * the static-file route can compute an mtime-based cache-buster URL
12312
12441
  * without a separate filesystem stat.
12313
12442
  */
12314
- bundle: string()
12443
+ bundle: string(),
12444
+ /**
12445
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12446
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12447
+ * Any OTHER string creates (or joins) a custom section rendered after
12448
+ * the built-in groups; its label comes from `sectionLabel` (first
12449
+ * declaration wins), falling back to the id. Absent → the legacy
12450
+ * "Addon Pages" group.
12451
+ */
12452
+ section: string().optional(),
12453
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12454
+ sectionLabel: string().optional()
12315
12455
  });
12316
12456
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12317
12457
  var AddonHttpRouteSchema = object({
@@ -12527,6 +12667,17 @@ var WidgetMetadataSchema = object({
12527
12667
  deviceContext: boolean().default(false),
12528
12668
  integrationContext: boolean().default(false)
12529
12669
  }),
12670
+ /**
12671
+ * Loadable BEFORE authentication. The normal widget registry listing
12672
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12673
+ * (the login page) cannot discover a widget through it. A widget that
12674
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12675
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12676
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12677
+ * than the authenticated registry, and its bundle is served by the
12678
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12679
+ */
12680
+ preAuth: boolean().optional().default(false),
12530
12681
  /** Dashboard placement HINTS (operator can override per instance). */
12531
12682
  defaultSize: WidgetSizeEnum.default("md"),
12532
12683
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12828,6 +12979,66 @@ method(object({
12828
12979
  password: string()
12829
12980
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12830
12981
  /**
12982
+ * `login-method` — collection cap through which auth addons contribute
12983
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12984
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12985
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12986
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12987
+ * procedure aggregates them for the unauthenticated login page.
12988
+ *
12989
+ * A contribution is a discriminated union on `kind`:
12990
+ *
12991
+ * - `redirect` — a declarative button. The login page renders a generic
12992
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
12993
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
12994
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
12995
+ * login page needs NO change.
12996
+ *
12997
+ * - `widget` — a Module-Federation widget the login page mounts (via
12998
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
12999
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13000
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13001
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13002
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13003
+ *
13004
+ * Every contribution carries a `stage`:
13005
+ * - `primary` — shown on the first credentials screen (OIDC /
13006
+ * magic-link buttons; a future usernameless passkey).
13007
+ * - `second-factor` — shown AFTER the password leg, gated on the
13008
+ * returned `factors` (passkey-as-2FA today).
13009
+ *
13010
+ * `mount: skip` — the cap is read server-side by the core auth router
13011
+ * (`registry.getCollection('login-method')`), never mounted as its own
13012
+ * tRPC router.
13013
+ */
13014
+ /** When a login method renders in the two-phase login flow. */
13015
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13016
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13017
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13018
+ kind: literal("redirect"),
13019
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13020
+ id: string(),
13021
+ /** Operator-facing button label. */
13022
+ label: string(),
13023
+ /** lucide-react icon name. */
13024
+ icon: string().optional(),
13025
+ /** Addon-owned HTTP route the button navigates to (GET). */
13026
+ startUrl: string(),
13027
+ stage: LoginStageEnum
13028
+ }), object({
13029
+ kind: literal("widget"),
13030
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13031
+ id: string(),
13032
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13033
+ addonId: string(),
13034
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13035
+ bundle: string(),
13036
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13037
+ remote: WidgetRemoteSchema,
13038
+ stage: LoginStageEnum
13039
+ })]);
13040
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13041
+ /**
12831
13042
  * Orchestrator-side destination metadata. The orchestrator computes
12832
13043
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12833
13044
  * (admin UI, restore flow) see one canonical key.
@@ -14931,7 +15142,17 @@ var TrackSchema = object({
14931
15142
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14932
15143
  totalDistance: number(),
14933
15144
  state: TrackStateSchema,
14934
- active: boolean()
15145
+ active: boolean(),
15146
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15147
+ * track expiry, recomputed on late label). Absent on legacy rows written
15148
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15149
+ importance: number().optional(),
15150
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15151
+ * "best" frame). Absent when the track produced no object events. */
15152
+ bestEventId: string().optional(),
15153
+ /** Tag of the importance sub-signal that dominated the score
15154
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15155
+ importanceReason: string().optional()
14935
15156
  });
14936
15157
  var BaseEventFields = {
14937
15158
  id: string(),
@@ -14996,8 +15217,18 @@ var ObjectEventSchema = object({
14996
15217
  frameHeight: number().optional(),
14997
15218
  /** MediaStore key for the crop attached to this event (if any). */
14998
15219
  mediaKey: string().optional(),
15220
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15221
+ * best-detection full frame). Resolve via the event-media data-plane
15222
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15223
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15224
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15225
+ keyFrameMediaKey: string().optional(),
14999
15226
  /** Populated by B5 (recording playback URL for this event). */
15000
- mediaUrl: string().optional()
15227
+ mediaUrl: string().optional(),
15228
+ /** The parent track's key-event importance [0,1], propagated to every object
15229
+ * event of the track (so an event row can be sorted by importance without a
15230
+ * track join). Absent on legacy rows / before the track was scored. */
15231
+ importance: number().optional()
15001
15232
  });
15002
15233
  var AudioEventSchema = object({
15003
15234
  ...BaseEventFields,
@@ -15021,7 +15252,8 @@ var MediaFileKindEnum = _enum([
15021
15252
  "fullFrame",
15022
15253
  "fullFrameBoxed",
15023
15254
  "faceCrop",
15024
- "plateCrop"
15255
+ "plateCrop",
15256
+ "keyFrame"
15025
15257
  ]);
15026
15258
  var MediaFileSchema = object({
15027
15259
  key: string(),
@@ -15042,6 +15274,32 @@ var DeviceEventQueryInput = object({
15042
15274
  projection: _enum(["full", "slim"]).optional()
15043
15275
  });
15044
15276
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15277
+ var KeyEventQueryInput = object({
15278
+ deviceId: number(),
15279
+ /** Window lower bound (track firstSeen ≥ since). */
15280
+ since: number(),
15281
+ /** Window upper bound (track firstSeen ≤ until). */
15282
+ until: number(),
15283
+ limit: number().int().min(1).max(200).default(50),
15284
+ /** Drop tracks scoring below this importance. */
15285
+ minImportance: number().min(0).max(1).optional(),
15286
+ /** Restrict to a single class (e.g. 'person'). */
15287
+ classFilter: string().optional()
15288
+ });
15289
+ var KeyEventSchema = object({
15290
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15291
+ id: string(),
15292
+ trackId: string(),
15293
+ /** Track start time (firstSeen). */
15294
+ timestamp: number(),
15295
+ className: string(),
15296
+ label: string().optional(),
15297
+ importance: number(),
15298
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15299
+ bestEventId: string(),
15300
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15301
+ windowMs: number().optional()
15302
+ });
15045
15303
  var TrackedDetectionSchema = object({
15046
15304
  trackId: string(),
15047
15305
  className: string(),
@@ -15071,7 +15329,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15071
15329
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15072
15330
  kind: "mutation",
15073
15331
  auth: "admin"
15074
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15332
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15075
15333
  deviceId: number(),
15076
15334
  since: number(),
15077
15335
  until: number(),
@@ -15116,11 +15374,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15116
15374
  timestamp: number()
15117
15375
  });
15118
15376
  var CameraPipelineConfigSchema = object({
15119
- engine: PipelineEngineChoiceSchema,
15377
+ engine: PipelineEngineChoiceSchema.optional(),
15120
15378
  steps: array(PipelineStepInputSchema).readonly(),
15121
15379
  audio: object({
15122
- engine: PipelineEngineChoiceSchema,
15123
- modelId: string(),
15380
+ engine: PipelineEngineChoiceSchema.optional(),
15381
+ modelId: string().optional(),
15124
15382
  enabled: boolean(),
15125
15383
  settings: record(string(), unknown()).readonly().optional()
15126
15384
  }).nullable().optional()
@@ -15135,7 +15393,7 @@ var PipelineTemplateSchema = object({
15135
15393
  });
15136
15394
  var AgentAddonConfigSchema = object({
15137
15395
  enabled: boolean(),
15138
- modelId: string(),
15396
+ modelId: string().optional(),
15139
15397
  settings: record(string(), unknown()).readonly()
15140
15398
  });
15141
15399
  var AgentPipelineSettingsSchema = object({
@@ -15145,12 +15403,25 @@ var AgentPipelineSettingsSchema = object({
15145
15403
  detectWeight: number().positive().optional(),
15146
15404
  /** Node is eligible to run the detection pipeline (decode + inference). */
15147
15405
  detect: boolean().optional(),
15148
- /** Node is eligible to host decoder sessions. */
15406
+ /**
15407
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15408
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15409
+ * the schema ONLY so persisted stores written before the removal still
15410
+ * parse — no code reads it and no write path emits it.
15411
+ */
15149
15412
  decode: boolean().optional(),
15150
15413
  /** Node is eligible to run audio-analyzer sessions. */
15151
15414
  audio: boolean().optional(),
15152
15415
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15153
- ingest: boolean().optional()
15416
+ ingest: boolean().optional(),
15417
+ /**
15418
+ * Operator override for the LAN host a cross-node decoder dials to reach
15419
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15420
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15421
+ * it already uses to reach the hub). Set this only when the auto-detected
15422
+ * address is wrong (multi-homed host, NAT, custom interface).
15423
+ */
15424
+ reachableHost: string().optional()
15154
15425
  });
15155
15426
  var CameraPipelineForAgentSchema = object({
15156
15427
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15198,25 +15469,6 @@ var PipelineAssignmentSchema = object({
15198
15469
  assignedAt: number()
15199
15470
  });
15200
15471
  /**
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
15472
  * Per-agent load summary surfaced to the load balancer + dashboards.
15221
15473
  * Aggregated from each runner's `getLocalLoad` cap call.
15222
15474
  */
@@ -15256,6 +15508,15 @@ var GlobalMetricsSchema = object({
15256
15508
  * capability providers.
15257
15509
  */
15258
15510
  var CapabilityBindingsSchema = record(string(), string());
15511
+ /**
15512
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15513
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15514
+ */
15515
+ var IngestOwnerSchema = object({
15516
+ ownerNodeId: string(),
15517
+ reachableHost: string().optional(),
15518
+ configIssue: string().optional()
15519
+ });
15259
15520
  /** Source block — always present; derives from the stream catalog. */
15260
15521
  var CameraSourceStatusSchema = object({ streams: array(object({
15261
15522
  camStreamId: string(),
@@ -15270,6 +15531,14 @@ var CameraAssignmentStatusSchema = object({
15270
15531
  detectionNodeId: string().nullable(),
15271
15532
  decoderNodeId: string().nullable(),
15272
15533
  audioNodeId: string().nullable(),
15534
+ /**
15535
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15536
+ * hosts the broker/restream) — the cluster ingest owner today
15537
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15538
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15539
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15540
+ */
15541
+ sourceNodeId: string().nullable(),
15273
15542
  pinned: object({
15274
15543
  detection: boolean(),
15275
15544
  decoder: boolean(),
@@ -15402,16 +15671,7 @@ method(object({
15402
15671
  }), object({ success: literal(true) }), {
15403
15672
  kind: "mutation",
15404
15673
  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({
15674
+ }), method(_void(), IngestOwnerSchema), method(object({
15415
15675
  deviceId: number(),
15416
15676
  nodeId: string()
15417
15677
  }), object({ success: literal(true) }), {
@@ -15432,10 +15692,7 @@ method(object({
15432
15692
  nodeId: string(),
15433
15693
  pinned: boolean(),
15434
15694
  assignedAt: number()
15435
- }))), method(object({
15436
- deviceId: number(),
15437
- pipelineNodeId: string().optional()
15438
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15695
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15439
15696
  nodeId: string(),
15440
15697
  settings: AgentPipelineSettingsSchema
15441
15698
  })).readonly()), method(object({
@@ -15465,12 +15722,26 @@ method(object({
15465
15722
  }), method(object({
15466
15723
  agentNodeId: string(),
15467
15724
  detect: boolean().nullable().optional(),
15468
- decode: boolean().nullable().optional(),
15469
15725
  audio: boolean().nullable().optional(),
15470
15726
  ingest: boolean().nullable().optional()
15471
15727
  }), object({ success: literal(true) }), {
15472
15728
  kind: "mutation",
15473
15729
  auth: "admin"
15730
+ }), method(object({
15731
+ agentNodeId: string(),
15732
+ reachableHost: string().nullable()
15733
+ }), object({ success: literal(true) }), {
15734
+ kind: "mutation",
15735
+ auth: "admin"
15736
+ }), method(object({ agentNodeId: string() }), object({
15737
+ success: literal(true),
15738
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15739
+ effectiveModelId: string().nullable(),
15740
+ /** Number of cameras whose node-scoped overrides were cleared. */
15741
+ clearedCameraOverrides: number()
15742
+ }), {
15743
+ kind: "mutation",
15744
+ auth: "admin"
15474
15745
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15475
15746
  deviceId: number(),
15476
15747
  addonId: string(),
@@ -15515,22 +15786,131 @@ method(object({
15515
15786
  kind: "mutation",
15516
15787
  auth: "admin"
15517
15788
  });
15518
- var RegisteredStreamSchema = object({
15519
- streamId: string(),
15520
- label: string().optional(),
15521
- codec: string(),
15522
- type: _enum(["video", "audio"]),
15523
- sourceUrl: string()
15789
+ /**
15790
+ * server-management — per-NODE singleton capability for a node's ROOT
15791
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15792
+ * agents).
15793
+ *
15794
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15795
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15796
+ * version describes the node. Updates install into
15797
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15798
+ * starter (probation boot + auto-rollback to N-1).
15799
+ *
15800
+ * Providers:
15801
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15802
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15803
+ * unpinned calls.
15804
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15805
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15806
+ * `$hub.registerNode` manifest.
15807
+ *
15808
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15809
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15810
+ * SDK) routes the call to that node's provider via the standard remote
15811
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15812
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15813
+ *
15814
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15815
+ */
15816
+ /**
15817
+ * Where the running hub's code was loaded from:
15818
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15819
+ * plain resolution and runtime updates are refused.
15820
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15821
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15822
+ */
15823
+ var ServerBootModeSchema = _enum([
15824
+ "workspace",
15825
+ "baked",
15826
+ "data-root"
15827
+ ]);
15828
+ /**
15829
+ * Update lifecycle state:
15830
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15831
+ * - `pending-restart` — a version is staged and the node has NOT yet
15832
+ * restarted onto it (still running the OLD version).
15833
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15834
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15835
+ * Apply/rollback are refused in this state and the node must NOT be
15836
+ * manually restarted, or the probation boot auto-rolls-back.
15837
+ */
15838
+ var ServerUpdateStateSchema = _enum([
15839
+ "idle",
15840
+ "checking",
15841
+ "staging",
15842
+ "pending-restart",
15843
+ "awaiting-confirmation"
15844
+ ]);
15845
+ var ServerRollbackInfoSchema = object({
15846
+ /** The version that failed (or was manually rolled back). */
15847
+ fromVersion: string(),
15848
+ /** The version rolled back to; null = the baked seed. */
15849
+ toVersion: string().nullable(),
15850
+ atMs: number(),
15851
+ reason: string()
15524
15852
  });
15525
- var ExposedResourceSchema = object({
15526
- streamId: string(),
15527
- format: string(),
15528
- value: string()
15853
+ var ServerPackageStatusSchema = object({
15854
+ /** Root package name (`@camstack/server` on the hub). */
15855
+ packageName: string(),
15856
+ /** Version of the code the running process ACTUALLY loaded. */
15857
+ runningVersion: string().nullable(),
15858
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15859
+ nodeRuntimeVersion: string().nullable(),
15860
+ /** Active data-dir root version; null when booted from seed/workspace. */
15861
+ activeVersion: string().nullable(),
15862
+ /** N-1 version kept for rollback; null when no previous version exists. */
15863
+ previousVersion: string().nullable(),
15864
+ /** Version of the immutable baked seed closure (image fallback). */
15865
+ seedVersion: string().nullable(),
15866
+ /** Latest registry version from the most recent check (null = never checked). */
15867
+ latestVersion: string().nullable(),
15868
+ updateAvailable: boolean(),
15869
+ bootMode: ServerBootModeSchema,
15870
+ updateState: ServerUpdateStateSchema,
15871
+ /** Version staged + awaiting its probation boot, when one is pending. */
15872
+ pendingVersion: string().nullable(),
15873
+ /** Set when the last freshly-activated version failed its boot health-check. */
15874
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15875
+ /**
15876
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15877
+ * hub is running from the baked seed (or workspace) while installed data-dir
15878
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15879
+ */
15880
+ stateFileCorrupt: boolean(),
15881
+ lastCheckedAtMs: number().nullable()
15882
+ });
15883
+ var ServerUpdateCheckResultSchema = object({
15884
+ packageName: string(),
15885
+ runningVersion: string().nullable(),
15886
+ latestVersion: string().nullable(),
15887
+ updateAvailable: boolean(),
15888
+ checkedAtMs: number(),
15889
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15890
+ error: string().nullable()
15891
+ });
15892
+ var ServerUpdateActionResultSchema = object({
15893
+ accepted: boolean(),
15894
+ targetVersion: string().nullable(),
15895
+ /** True when a graceful restart was scheduled to apply the change. */
15896
+ restarting: boolean(),
15897
+ message: string()
15898
+ });
15899
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15900
+ kind: "mutation",
15901
+ auth: "admin"
15902
+ }), method(object({
15903
+ /** Explicit target version; omitted = latest from the registry. */
15904
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15905
+ kind: "mutation",
15906
+ auth: "admin"
15907
+ }), method(_void(), ServerUpdateActionResultSchema, {
15908
+ kind: "mutation",
15909
+ auth: "admin"
15910
+ }), method(_void(), ServerUpdateActionResultSchema, {
15911
+ kind: "mutation",
15912
+ auth: "admin"
15529
15913
  });
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
15914
  /**
15535
15915
  * Query filter for settings-store collections.
15536
15916
  */
@@ -15696,9 +16076,9 @@ var smtpProviderCapability = {
15696
16076
  /**
15697
16077
  * A single device snapshot returned as base64 JPEG/PNG.
15698
16078
  *
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.
16079
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16080
+ * the device-native provider (onboard capture) or from the stream-broker
16081
+ * prebuffer fallback.
15702
16082
  */
15703
16083
  var SnapshotImageSchema = object({
15704
16084
  base64: string(),
@@ -15729,11 +16109,12 @@ DeviceType.Camera, method(object({
15729
16109
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15730
16110
  kind: "mutation",
15731
16111
  auth: "admin"
15732
- });
15733
- method(object({ deviceId: number() }), boolean()), method(object({
16112
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15734
16113
  deviceId: number(),
15735
- streamId: string().optional()
15736
- }), SnapshotImageSchema.nullable());
16114
+ lastCapturedAt: number().nullable(),
16115
+ cacheAgeMs: number().nullable(),
16116
+ etag: string().nullable()
16117
+ })));
15737
16118
  /**
15738
16119
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15739
16120
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -15984,10 +16365,32 @@ method(_void(), array(TurnServerSchema).readonly());
15984
16365
  * b. `finishAuthentication({userId, response})` → server verifies
15985
16366
  * the assertion, bumps the credential counter, returns ok.
15986
16367
  *
16368
+ * 2b. Usernameless (discoverable-credential) authentication — the
16369
+ * passkey IS the primary factor, no password leg:
16370
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16371
+ * EMPTY `allowCredentials` (the browser offers every resident
16372
+ * passkey it holds for this RP) + `userVerification: 'required'`
16373
+ * (the passkey replaces both factors, so UV is mandatory).
16374
+ * The challenge is stored server-side, NOT bound to any user.
16375
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16376
+ * resolves the credential by the response's credential id,
16377
+ * verifies the assertion against the stored challenge + that
16378
+ * credential's public key/counter, and returns the OWNING
16379
+ * `userId` — the caller (core auth router) mints the session.
16380
+ *
15987
16381
  * 3. Management:
15988
16382
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
15989
16383
  * - `removePasskey({userId, credentialId})` — revoke one credential.
15990
16384
  *
16385
+ * 4. Second-factor preference (opt-in, default OFF):
16386
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16387
+ * demanded as a second factor after a password login ONLY when the
16388
+ * user explicitly opts in via `setSecondFactorPreference`.
16389
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16390
+ * row ⇒ `enabled: false`).
16391
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16392
+ * the providing addon beside its credentials.
16393
+ *
15991
16394
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
15992
16395
  * the admin-ui composes the begin/finish round-trip and never exposes
15993
16396
  * the cap to non-admins.
@@ -16030,6 +16433,17 @@ method(object({
16030
16433
  }), object({ verified: boolean() }), {
16031
16434
  kind: "mutation",
16032
16435
  access: "view"
16436
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16437
+ kind: "mutation",
16438
+ access: "view"
16439
+ }), method(object({
16440
+ /** AuthenticationResponseJSON from the browser. */
16441
+ response: record(string(), unknown()) }), object({
16442
+ verified: boolean(),
16443
+ userId: string().nullable()
16444
+ }), {
16445
+ kind: "mutation",
16446
+ access: "view"
16033
16447
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16034
16448
  userId: string(),
16035
16449
  credentialId: string()
@@ -16037,6 +16451,13 @@ method(object({
16037
16451
  kind: "mutation",
16038
16452
  auth: "admin",
16039
16453
  access: "delete"
16454
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16455
+ userId: string(),
16456
+ enabled: boolean()
16457
+ }), object({ success: literal(true) }), {
16458
+ kind: "mutation",
16459
+ auth: "admin",
16460
+ access: "create"
16040
16461
  });
16041
16462
  /**
16042
16463
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16094,9 +16515,10 @@ method(object({
16094
16515
  auth: "admin"
16095
16516
  });
16096
16517
  /**
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.
16518
+ * Optional client-side hints sent at session creation to help the provider
16519
+ * pick the best native source. All fields optional — a viewer that knows
16520
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16521
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16100
16522
  */
16101
16523
  var webrtcClientHintsSchema = object({
16102
16524
  viewportWidth: number().int().positive().optional(),
@@ -16107,22 +16529,6 @@ var webrtcClientHintsSchema = object({
16107
16529
  /** Hard tier override; takes precedence over scoring when registered. */
16108
16530
  prefersTier: string().optional()
16109
16531
  }).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
16532
  /**
16127
16533
  * Discriminated target for a WebRTC session. The client sends this
16128
16534
  * structured object instead of building / parsing brokerId strings;
@@ -16853,7 +17259,17 @@ var FaceInfoSchema = object({
16853
17259
  recognizedIdentityId: string().optional(),
16854
17260
  identityName: string().optional(),
16855
17261
  assigned: boolean(),
16856
- base64: string().optional()
17262
+ base64: string().optional(),
17263
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17264
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17265
+ * legacy rows written before design B. */
17266
+ faceBbox: BoundingBoxSchema.optional(),
17267
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17268
+ * Fetch the native JPEG via the event-media data-plane
17269
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17270
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17271
+ * back to the inline `base64` face crop. */
17272
+ keyFrameMediaKey: string().optional()
16857
17273
  });
16858
17274
  var FaceFilterEnum = _enum([
16859
17275
  "unassigned",
@@ -17550,6 +17966,16 @@ var TopologyCategorySchema = object({
17550
17966
  healthy: number(),
17551
17967
  addons: array(TopologyCategoryAddonSchema).readonly()
17552
17968
  });
17969
+ /**
17970
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17971
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17972
+ * version visibility for the Server management surface. Nullable: offline
17973
+ * rows and pre-phase-2 nodes report none.
17974
+ */
17975
+ var TopologyRootPackageSchema = object({
17976
+ name: string(),
17977
+ version: string()
17978
+ });
17553
17979
  var TopologyNodeSchema = object({
17554
17980
  id: string(),
17555
17981
  name: string(),
@@ -17573,7 +17999,8 @@ var TopologyNodeSchema = object({
17573
17999
  status: string()
17574
18000
  })).readonly(),
17575
18001
  processes: array(TopologyProcessSchema).readonly(),
17576
- categories: array(TopologyCategorySchema).readonly()
18002
+ categories: array(TopologyCategorySchema).readonly(),
18003
+ rootPackage: TopologyRootPackageSchema.nullable()
17577
18004
  });
17578
18005
  var CapUsageEdgeSchema = object({
17579
18006
  callerAddonId: string(),
@@ -20373,6 +20800,12 @@ Object.freeze({
20373
20800
  addonId: null,
20374
20801
  access: "create"
20375
20802
  },
20803
+ "loginMethod.getLoginMethods": {
20804
+ capName: "login-method",
20805
+ capScope: "system",
20806
+ addonId: null,
20807
+ access: "view"
20808
+ },
20376
20809
  "mediaPlayer.next": {
20377
20810
  capName: "media-player",
20378
20811
  capScope: "device",
@@ -20955,6 +21388,12 @@ Object.freeze({
20955
21388
  addonId: null,
20956
21389
  access: "view"
20957
21390
  },
21391
+ "pipelineAnalytics.getKeyEvents": {
21392
+ capName: "pipeline-analytics",
21393
+ capScope: "device",
21394
+ addonId: null,
21395
+ access: "view"
21396
+ },
20958
21397
  "pipelineAnalytics.getMotionEvents": {
20959
21398
  capName: "pipeline-analytics",
20960
21399
  capScope: "device",
@@ -21003,23 +21442,23 @@ Object.freeze({
21003
21442
  addonId: null,
21004
21443
  access: "create"
21005
21444
  },
21006
- "pipelineExecutor.deleteModel": {
21445
+ "pipelineExecutor.clearDeviceOverrides": {
21007
21446
  capName: "pipeline-executor",
21008
21447
  capScope: "system",
21009
21448
  addonId: null,
21010
21449
  access: "delete"
21011
21450
  },
21012
- "pipelineExecutor.deleteTemplate": {
21451
+ "pipelineExecutor.deleteModel": {
21013
21452
  capName: "pipeline-executor",
21014
21453
  capScope: "system",
21015
21454
  addonId: null,
21016
21455
  access: "delete"
21017
21456
  },
21018
- "pipelineExecutor.detect": {
21457
+ "pipelineExecutor.deleteTemplate": {
21019
21458
  capName: "pipeline-executor",
21020
21459
  capScope: "system",
21021
21460
  addonId: null,
21022
- access: "view"
21461
+ access: "delete"
21023
21462
  },
21024
21463
  "pipelineExecutor.downloadModel": {
21025
21464
  capName: "pipeline-executor",
@@ -21213,13 +21652,13 @@ Object.freeze({
21213
21652
  addonId: null,
21214
21653
  access: "create"
21215
21654
  },
21216
- "pipelineOrchestrator.assignAudio": {
21217
- capName: "pipeline-orchestrator",
21655
+ "pipelineExecutor.validatePipeline": {
21656
+ capName: "pipeline-executor",
21218
21657
  capScope: "system",
21219
21658
  addonId: null,
21220
- access: "create"
21659
+ access: "view"
21221
21660
  },
21222
- "pipelineOrchestrator.assignDecoder": {
21661
+ "pipelineOrchestrator.assignAudio": {
21223
21662
  capName: "pipeline-orchestrator",
21224
21663
  capScope: "system",
21225
21664
  addonId: null,
@@ -21303,19 +21742,13 @@ Object.freeze({
21303
21742
  addonId: null,
21304
21743
  access: "view"
21305
21744
  },
21306
- "pipelineOrchestrator.getDecoderAssignment": {
21307
- capName: "pipeline-orchestrator",
21308
- capScope: "system",
21309
- addonId: null,
21310
- access: "view"
21311
- },
21312
- "pipelineOrchestrator.getDecoderAssignments": {
21745
+ "pipelineOrchestrator.getGlobalMetrics": {
21313
21746
  capName: "pipeline-orchestrator",
21314
21747
  capScope: "system",
21315
21748
  addonId: null,
21316
21749
  access: "view"
21317
21750
  },
21318
- "pipelineOrchestrator.getGlobalMetrics": {
21751
+ "pipelineOrchestrator.getIngestOwner": {
21319
21752
  capName: "pipeline-orchestrator",
21320
21753
  capScope: "system",
21321
21754
  addonId: null,
@@ -21357,6 +21790,12 @@ Object.freeze({
21357
21790
  addonId: null,
21358
21791
  access: "delete"
21359
21792
  },
21793
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21794
+ capName: "pipeline-orchestrator",
21795
+ capScope: "system",
21796
+ addonId: null,
21797
+ access: "delete"
21798
+ },
21360
21799
  "pipelineOrchestrator.resolvePipeline": {
21361
21800
  capName: "pipeline-orchestrator",
21362
21801
  capScope: "system",
@@ -21393,37 +21832,37 @@ Object.freeze({
21393
21832
  addonId: null,
21394
21833
  access: "create"
21395
21834
  },
21396
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21835
+ "pipelineOrchestrator.setAgentReachableHost": {
21397
21836
  capName: "pipeline-orchestrator",
21398
21837
  capScope: "system",
21399
21838
  addonId: null,
21400
21839
  access: "create"
21401
21840
  },
21402
- "pipelineOrchestrator.setCameraStepOverride": {
21841
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21403
21842
  capName: "pipeline-orchestrator",
21404
21843
  capScope: "system",
21405
21844
  addonId: null,
21406
21845
  access: "create"
21407
21846
  },
21408
- "pipelineOrchestrator.setCameraStepToggle": {
21847
+ "pipelineOrchestrator.setCameraStepOverride": {
21409
21848
  capName: "pipeline-orchestrator",
21410
21849
  capScope: "system",
21411
21850
  addonId: null,
21412
21851
  access: "create"
21413
21852
  },
21414
- "pipelineOrchestrator.setCapabilityBinding": {
21853
+ "pipelineOrchestrator.setCameraStepToggle": {
21415
21854
  capName: "pipeline-orchestrator",
21416
21855
  capScope: "system",
21417
21856
  addonId: null,
21418
21857
  access: "create"
21419
21858
  },
21420
- "pipelineOrchestrator.unassignAudio": {
21859
+ "pipelineOrchestrator.setCapabilityBinding": {
21421
21860
  capName: "pipeline-orchestrator",
21422
21861
  capScope: "system",
21423
21862
  addonId: null,
21424
21863
  access: "create"
21425
21864
  },
21426
- "pipelineOrchestrator.unassignDecoder": {
21865
+ "pipelineOrchestrator.unassignAudio": {
21427
21866
  capName: "pipeline-orchestrator",
21428
21867
  capScope: "system",
21429
21868
  addonId: null,
@@ -21483,6 +21922,12 @@ Object.freeze({
21483
21922
  addonId: null,
21484
21923
  access: "view"
21485
21924
  },
21925
+ "pipelineRunner.getNativeCrop": {
21926
+ capName: "pipeline-runner",
21927
+ capScope: "system",
21928
+ addonId: null,
21929
+ access: "view"
21930
+ },
21486
21931
  "pipelineRunner.reportMotion": {
21487
21932
  capName: "pipeline-runner",
21488
21933
  capScope: "system",
@@ -21723,33 +22168,45 @@ Object.freeze({
21723
22168
  addonId: null,
21724
22169
  access: "create"
21725
22170
  },
21726
- "restreamer.getExposedResources": {
21727
- capName: "restreamer",
22171
+ "scriptRunner.run": {
22172
+ capName: "script-runner",
22173
+ capScope: "device",
22174
+ addonId: null,
22175
+ access: "create"
22176
+ },
22177
+ "scriptRunner.stop": {
22178
+ capName: "script-runner",
22179
+ capScope: "device",
22180
+ addonId: null,
22181
+ access: "create"
22182
+ },
22183
+ "serverManagement.applyServerUpdate": {
22184
+ capName: "server-management",
21728
22185
  capScope: "system",
21729
22186
  addonId: null,
21730
- access: "view"
22187
+ access: "create"
21731
22188
  },
21732
- "restreamer.registerDevice": {
21733
- capName: "restreamer",
22189
+ "serverManagement.checkServerUpdate": {
22190
+ capName: "server-management",
21734
22191
  capScope: "system",
21735
22192
  addonId: null,
21736
22193
  access: "create"
21737
22194
  },
21738
- "restreamer.unregisterDevice": {
21739
- capName: "restreamer",
22195
+ "serverManagement.getServerPackageStatus": {
22196
+ capName: "server-management",
21740
22197
  capScope: "system",
21741
22198
  addonId: null,
21742
- access: "delete"
22199
+ access: "view"
21743
22200
  },
21744
- "scriptRunner.run": {
21745
- capName: "script-runner",
21746
- capScope: "device",
22201
+ "serverManagement.restartServer": {
22202
+ capName: "server-management",
22203
+ capScope: "system",
21747
22204
  addonId: null,
21748
22205
  access: "create"
21749
22206
  },
21750
- "scriptRunner.stop": {
21751
- capName: "script-runner",
21752
- capScope: "device",
22207
+ "serverManagement.rollbackServerUpdate": {
22208
+ capName: "server-management",
22209
+ capScope: "system",
21753
22210
  addonId: null,
21754
22211
  access: "create"
21755
22212
  },
@@ -21837,23 +22294,17 @@ Object.freeze({
21837
22294
  addonId: null,
21838
22295
  access: "view"
21839
22296
  },
21840
- "snapshot.invalidateCache": {
22297
+ "snapshot.getSnapshotOverview": {
21841
22298
  capName: "snapshot",
21842
22299
  capScope: "device",
21843
22300
  addonId: null,
21844
- access: "create"
21845
- },
21846
- "snapshotProvider.getSnapshot": {
21847
- capName: "snapshot-provider",
21848
- capScope: "system",
21849
- addonId: null,
21850
22301
  access: "view"
21851
22302
  },
21852
- "snapshotProvider.supportsDevice": {
21853
- capName: "snapshot-provider",
21854
- capScope: "system",
22303
+ "snapshot.invalidateCache": {
22304
+ capName: "snapshot",
22305
+ capScope: "device",
21855
22306
  addonId: null,
21856
- access: "view"
22307
+ access: "create"
21857
22308
  },
21858
22309
  "ssoBridge.signBridgeToken": {
21859
22310
  capName: "sso-bridge",
@@ -22281,30 +22732,6 @@ Object.freeze({
22281
22732
  addonId: null,
22282
22733
  access: "view"
22283
22734
  },
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
22735
  "streamParams.getConfigSchema": {
22309
22736
  capName: "stream-params",
22310
22737
  capScope: "device",
@@ -22551,6 +22978,12 @@ Object.freeze({
22551
22978
  addonId: null,
22552
22979
  access: "view"
22553
22980
  },
22981
+ "userPasskeys.beginDiscoverableAuthentication": {
22982
+ capName: "user-passkeys",
22983
+ capScope: "system",
22984
+ addonId: null,
22985
+ access: "view"
22986
+ },
22554
22987
  "userPasskeys.beginRegistration": {
22555
22988
  capName: "user-passkeys",
22556
22989
  capScope: "system",
@@ -22563,12 +22996,24 @@ Object.freeze({
22563
22996
  addonId: null,
22564
22997
  access: "view"
22565
22998
  },
22999
+ "userPasskeys.finishDiscoverableAuthentication": {
23000
+ capName: "user-passkeys",
23001
+ capScope: "system",
23002
+ addonId: null,
23003
+ access: "view"
23004
+ },
22566
23005
  "userPasskeys.finishRegistration": {
22567
23006
  capName: "user-passkeys",
22568
23007
  capScope: "system",
22569
23008
  addonId: null,
22570
23009
  access: "create"
22571
23010
  },
23011
+ "userPasskeys.getSecondFactorPreference": {
23012
+ capName: "user-passkeys",
23013
+ capScope: "system",
23014
+ addonId: null,
23015
+ access: "view"
23016
+ },
22572
23017
  "userPasskeys.listPasskeys": {
22573
23018
  capName: "user-passkeys",
22574
23019
  capScope: "system",
@@ -22581,6 +23026,12 @@ Object.freeze({
22581
23026
  addonId: null,
22582
23027
  access: "delete"
22583
23028
  },
23029
+ "userPasskeys.setSecondFactorPreference": {
23030
+ capName: "user-passkeys",
23031
+ capScope: "system",
23032
+ addonId: null,
23033
+ access: "create"
23034
+ },
22584
23035
  "vacuumControl.locate": {
22585
23036
  capName: "vacuum-control",
22586
23037
  capScope: "device",
@@ -22653,6 +23104,18 @@ Object.freeze({
22653
23104
  addonId: null,
22654
23105
  access: "view"
22655
23106
  },
23107
+ "viewerUi.getStaticDir": {
23108
+ capName: "viewer-ui",
23109
+ capScope: "system",
23110
+ addonId: null,
23111
+ access: "view"
23112
+ },
23113
+ "viewerUi.getVersion": {
23114
+ capName: "viewer-ui",
23115
+ capScope: "system",
23116
+ addonId: null,
23117
+ access: "view"
23118
+ },
22656
23119
  "waterHeater.setAway": {
22657
23120
  capName: "water-heater",
22658
23121
  capScope: "device",
@@ -22671,54 +23134,6 @@ Object.freeze({
22671
23134
  addonId: null,
22672
23135
  access: "create"
22673
23136
  },
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
23137
  "webrtcSession.addIceCandidate": {
22723
23138
  capName: "webrtc-session",
22724
23139
  capScope: "device",