@camstack/addon-notifiers 1.1.21 → 1.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +672 -257
  2. package/dist/addon.mjs +672 -257
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4631,7 +4631,7 @@ function _instanceof(cls, params = {}) {
4631
4631
  return inst;
4632
4632
  }
4633
4633
  //#endregion
4634
- //#region ../types/dist/sleep-CZDdRBua.mjs
4634
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4635
4635
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4636
4636
  EventCategory["SystemBoot"] = "system.boot";
4637
4637
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4817,6 +4817,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4817
4817
  */
4818
4818
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4819
4819
  /**
4820
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4821
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4822
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4823
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4824
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4825
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4826
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4827
+ * topology change, so a dropped event self-heals on the next one (plus the
4828
+ * broker's long backstop reconcile query).
4829
+ */
4830
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4831
+ /**
4820
4832
  * Periodic snapshot of per-node pipeline-runner load
4821
4833
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4822
4834
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5340,10 +5352,6 @@ function hydrateField(field, values) {
5340
5352
  };
5341
5353
  }
5342
5354
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5343
- if (field.type === "password") return {
5344
- ...field,
5345
- value: ""
5346
- };
5347
5355
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5348
5356
  return {
5349
5357
  ...field,
@@ -6727,6 +6735,21 @@ function method(input, output, options) {
6727
6735
  timeoutMs: options?.timeoutMs
6728
6736
  };
6729
6737
  }
6738
+ /**
6739
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6740
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6741
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6742
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6743
+ */
6744
+ function systemMethod(input, output, options) {
6745
+ return {
6746
+ ...method(input, output, options),
6747
+ systemOnly: true
6748
+ };
6749
+ }
6750
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6751
+ var VersionOutputSchema$1 = object({ version: string() });
6752
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6730
6753
  var StaticDirOutputSchema = object({ staticDir: string() });
6731
6754
  var VersionOutputSchema = object({ version: string() });
6732
6755
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6896,6 +6919,36 @@ var ModelFormatsSchema = object({
6896
6919
  tflite: ModelFormatEntrySchema.optional(),
6897
6920
  pt: ModelFormatEntrySchema.optional()
6898
6921
  });
6922
+ /**
6923
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6924
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6925
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6926
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6927
+ * resolution/download/persistence; this is a presentation overlay resolved back
6928
+ * to an `id`.
6929
+ */
6930
+ var ModelVariantGroupSchema = object({
6931
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6932
+ family: string(),
6933
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6934
+ tier: string(),
6935
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6936
+ precision: _enum(["fp32", "int8"]).optional(),
6937
+ /**
6938
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6939
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6940
+ * future performance variants plug into.
6941
+ */
6942
+ optimization: _enum(["standard", "fast"]).optional(),
6943
+ /**
6944
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6945
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6946
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6947
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6948
+ * the group so the selector can offer it as a variant axis.
6949
+ */
6950
+ resolution: number().int().positive().optional()
6951
+ });
6899
6952
  var ModelCatalogEntrySchema = object({
6900
6953
  id: string(),
6901
6954
  name: string(),
@@ -6925,7 +6978,43 @@ var ModelCatalogEntrySchema = object({
6925
6978
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6926
6979
  * Downloaded into the same modelsDir alongside the model file.
6927
6980
  */
6928
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6981
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6982
+ /**
6983
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6984
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6985
+ * model list and excluded from the auto format-default pick. Set on the
6986
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6987
+ * the active lineup stays the coherent curated ladder without deleting a
6988
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6989
+ * an explicit legacy id that has a build for the node's format.
6990
+ */
6991
+ legacy: boolean().optional(),
6992
+ /**
6993
+ * Measured quality/latency metadata — populated from the benchmark addon on
6994
+ * the real node classes. Absent = not yet measured (most entries today; the
6995
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
6996
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
6997
+ */
6998
+ metrics: object({
6999
+ map50: number().optional(),
7000
+ p95LatencyMs: record(string(), number()).optional()
7001
+ }).optional(),
7002
+ /**
7003
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7004
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7005
+ * the retraining addon and any future commercial distribution.
7006
+ */
7007
+ license: string().optional(),
7008
+ /**
7009
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7010
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7011
+ * of a family's sizes and quantizations collapse into one grouped picker
7012
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7013
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7014
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7015
+ * is a presentation overlay resolved back to an `id`.
7016
+ */
7017
+ group: ModelVariantGroupSchema.optional()
6929
7018
  });
6930
7019
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6931
7020
  format: literal("openvino"),
@@ -6986,8 +7075,8 @@ var RecordingModeSchema = _enum([
6986
7075
  "onAudioThreshold"
6987
7076
  ]);
6988
7077
  /**
6989
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6990
- * reads directly (never inferred from `rules`):
7078
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7079
+ * UI reads directly (never inferred from `rules`):
6991
7080
  * - `off` — not recording.
6992
7081
  * - `events` — record only around triggers (motion / audio threshold),
6993
7082
  * with pre/post-buffer.
@@ -8828,26 +8917,13 @@ DeviceType.Light, method(object({
8828
8917
  percentage: number().min(0).max(100),
8829
8918
  lastChangedAt: number()
8830
8919
  });
8920
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8831
8921
  var StreamFormatSchema = _enum([
8832
8922
  "webrtc",
8833
8923
  "hls",
8834
8924
  "mjpeg",
8835
8925
  "rtsp"
8836
8926
  ]);
8837
- var StreamInfoSchema = object({
8838
- streamId: string(),
8839
- format: StreamFormatSchema,
8840
- url: string().nullable(),
8841
- active: boolean()
8842
- });
8843
- method(object({
8844
- streamId: string(),
8845
- sourceUrl: string(),
8846
- codec: string().optional()
8847
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8848
- streamId: string(),
8849
- format: StreamFormatSchema
8850
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8851
8927
  var RtspRestreamEntrySchema = object({
8852
8928
  brokerId: string(),
8853
8929
  url: string(),
@@ -9512,7 +9588,7 @@ var ConsumablesStatusSchema = object({
9512
9588
  })),
9513
9589
  lastChangedAt: number()
9514
9590
  });
9515
- 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({
9591
+ Object.values(DeviceType), method(object({
9516
9592
  deviceId: number().int().nonnegative(),
9517
9593
  key: string().min(1)
9518
9594
  }), _void(), {
@@ -10427,7 +10503,7 @@ var BoundingBoxSchema = object({
10427
10503
  w: number(),
10428
10504
  h: number()
10429
10505
  });
10430
- var SpatialDetectionSchema = object({
10506
+ object({
10431
10507
  class: string(),
10432
10508
  originalClass: string(),
10433
10509
  score: number(),
@@ -10562,7 +10638,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10562
10638
  enabled: boolean(),
10563
10639
  modelId: string(),
10564
10640
  children: array(PipelineDefaultStepSchema).readonly(),
10565
- engine: PipelineEngineChoiceSchema.optional(),
10566
10641
  group: string().optional(),
10567
10642
  settings: record(string(), unknown()).optional()
10568
10643
  }));
@@ -10587,7 +10662,9 @@ var PipelineModelOptionSchema = object({
10587
10662
  formats: record(string(), object({
10588
10663
  downloaded: boolean(),
10589
10664
  sizeMB: number()
10590
- }))
10665
+ })),
10666
+ group: ModelVariantGroupSchema.optional(),
10667
+ legacy: boolean().optional()
10591
10668
  });
10592
10669
  var ConfigFieldBridge = custom();
10593
10670
  var PipelineAddonSchemaSchema = object({
@@ -10601,6 +10678,7 @@ var PipelineAddonSchemaSchema = object({
10601
10678
  defaultModelId: string(),
10602
10679
  defaultModelIdByFormat: record(string(), string()).optional(),
10603
10680
  enabledByDefault: boolean().optional(),
10681
+ backfillIntoExistingOverrides: boolean().optional(),
10604
10682
  defaultConfidence: number(),
10605
10683
  group: string().optional(),
10606
10684
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10617,11 +10695,6 @@ var PipelineSchemaSchema = object({
10617
10695
  selectedEngine: PipelineEngineChoiceSchema,
10618
10696
  slots: array(PipelineSlotSchemaSchema).readonly()
10619
10697
  });
10620
- var DetectorOutputSchema = object({
10621
- detections: array(SpatialDetectionSchema).readonly(),
10622
- inferenceMs: number(),
10623
- modelId: string()
10624
- });
10625
10698
  var EngineProvisioningSchema = object({
10626
10699
  runtimeId: _enum([
10627
10700
  "onnx",
@@ -10638,15 +10711,42 @@ var EngineProvisioningSchema = object({
10638
10711
  ]),
10639
10712
  progress: number().optional(),
10640
10713
  error: string().optional(),
10641
- nextRetryAt: number().optional()
10714
+ nextRetryAt: number().optional(),
10715
+ /**
10716
+ * Gate A (config-correctness gate at engine change): human-readable
10717
+ * config issues surfaced EAGERLY when the node's engine changes — model
10718
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10719
+ * has a <format> build"). Additive/optional: informational only, never
10720
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10721
+ * Absent/empty when the node-default tree resolves cleanly.
10722
+ */
10723
+ configIssues: array(string()).optional()
10642
10724
  });
10643
10725
  var PipelineStepInputSchema = lazy(() => object({
10644
10726
  addonId: string(),
10645
- modelId: string(),
10727
+ modelId: string().optional(),
10646
10728
  enabled: boolean().default(true),
10647
10729
  children: array(PipelineStepInputSchema).optional(),
10648
10730
  settings: record(string(), unknown()).optional()
10649
10731
  }));
10732
+ var ModelSubstitutionSchema = object({
10733
+ addonId: string(),
10734
+ chosen: string(),
10735
+ running: string(),
10736
+ format: string()
10737
+ });
10738
+ var PipelineValidationIssueSchema = object({
10739
+ addonId: string(),
10740
+ kind: _enum(["unknown-addon", "no-format-build"]),
10741
+ detail: string()
10742
+ });
10743
+ var PipelineValidationResultSchema = object({
10744
+ ok: boolean(),
10745
+ issues: array(PipelineValidationIssueSchema).readonly(),
10746
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10747
+ /** The node's `currentEngine.format` this validation ran against. */
10748
+ format: string()
10749
+ });
10650
10750
  var ReferenceImageEntrySchema = object({
10651
10751
  filename: string(),
10652
10752
  stepIds: array(string()).readonly().optional()
@@ -10717,7 +10817,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10717
10817
  })) }), object({ success: literal(true) }), {
10718
10818
  kind: "mutation",
10719
10819
  auth: "admin"
10720
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10820
+ }), method(object({ nodeId: string() }), object({
10821
+ success: literal(true),
10822
+ clearedDevices: number()
10823
+ }), {
10824
+ kind: "mutation",
10825
+ auth: "admin"
10826
+ }), 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({
10721
10827
  name: string(),
10722
10828
  steps: array(PipelineTemplateStepSchema).readonly(),
10723
10829
  engine: PipelineEngineChoiceSchema
@@ -10734,10 +10840,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10734
10840
  modelId: string(),
10735
10841
  format: ModelFormatSchema$1
10736
10842
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10737
- addonId: string(),
10738
- frame: FrameInputSchema,
10739
- config: record(string(), unknown()).optional()
10740
- }), DetectorOutputSchema), method(object({
10741
10843
  engine: PipelineEngineChoiceSchema.optional(),
10742
10844
  steps: array(PipelineStepInputSchema).min(1),
10743
10845
  frame: FrameInputSchema.optional(),
@@ -10883,6 +10985,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10883
10985
  auth: "admin"
10884
10986
  }), object({ zones: array(ZoneSchema).readonly() });
10885
10987
  /**
10988
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10989
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10990
+ * so the caller supplies only the detection-res bbox divided by the detection
10991
+ * dims — no native resolution to plumb.
10992
+ */
10993
+ var NativeCropBboxSchema = object({
10994
+ x: number(),
10995
+ y: number(),
10996
+ w: number(),
10997
+ h: number()
10998
+ });
10999
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
11000
+ var NativeCropResultSchema = object({
11001
+ /** Packed rgb (24-bit) pixels of the crop. */
11002
+ bytes: _instanceof(Uint8Array),
11003
+ width: number().int().positive(),
11004
+ height: number().int().positive()
11005
+ });
11006
+ /**
10886
11007
  * Per-camera tunable ranges + defaults. Single source of truth used
10887
11008
  * by both the Zod data schema (validation + default fallback) and
10888
11009
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10977,6 +11098,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10977
11098
  kind: literal("remote-restream"),
10978
11099
  /** The camera's source-owner node (slice 1: always the hub). */
10979
11100
  ownerNodeId: string(),
11101
+ /**
11102
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
11103
+ * per-node `reachableHost` override (Cluster UI). When present the runner
11104
+ * dials THIS host for the owner's restream, in preference to the
11105
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
11106
+ */
11107
+ ownerReachableHost: string().optional(),
10980
11108
  /** Operator override for the owner host the runner dials. */
10981
11109
  hubHostnameOverride: string().optional()
10982
11110
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10985,13 +11113,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10985
11113
  * specific runner instance via `attachCamera`. Carries everything the
10986
11114
  * runner needs to subscribe to the local broker and execute inference.
10987
11115
  *
10988
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10989
- * optional `audio`) travels with the attach payload. The runner keeps it
10990
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10991
- * restart the orchestrator re-sends the latest snapshot.
10992
- *
10993
- * `engine`/`steps`/`audio` are optional during the additive migration
10994
- * window; once orchestrator + UI are migrated they become required.
11116
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
11117
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
11118
+ * for the lifetime of the attach — on rebalance, edit, or restart the
11119
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
11120
+ * node-local, resolved by the executing runner at dispatch time.
10995
11121
  */
10996
11122
  var RunnerCameraConfigSchema = object({
10997
11123
  deviceId: number(),
@@ -11042,14 +11168,11 @@ var RunnerCameraConfigSchema = object({
11042
11168
  */
11043
11169
  motionSources: MotionSourcesSchema.default(["analyzer"]),
11044
11170
  pipelineEnabled: boolean().default(true),
11045
- /** Engine choice for video steps (runtime+backend+format). */
11046
- engine: PipelineEngineChoiceSchema.optional(),
11047
11171
  /** Ordered tree of video steps. Absent → runner skips video detection. */
11048
11172
  steps: array(PipelineStepInputSchema).readonly().optional(),
11049
11173
  /** Audio classification branch. `enabled:false` disables, null skips. */
11050
11174
  audio: object({
11051
- engine: PipelineEngineChoiceSchema,
11052
- modelId: string(),
11175
+ modelId: string().optional(),
11053
11176
  enabled: boolean()
11054
11177
  }).nullable().optional(),
11055
11178
  /**
@@ -11136,7 +11259,11 @@ var RunnerLocalMetricsSchema = object({
11136
11259
  avgInferenceTimeMs: number(),
11137
11260
  queueDepth: number()
11138
11261
  });
11139
- 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());
11262
+ 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({
11263
+ handle: FrameHandleSchema,
11264
+ bbox: NativeCropBboxSchema,
11265
+ maxWidth: number().int().positive().optional()
11266
+ }), NativeCropResultSchema.nullable());
11140
11267
  object({
11141
11268
  detected: boolean(),
11142
11269
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12430,7 +12557,9 @@ var AddonPageDeclarationSchema$1 = object({
12430
12557
  icon: string(),
12431
12558
  path: string(),
12432
12559
  remoteName: string(),
12433
- bundle: string()
12560
+ bundle: string(),
12561
+ section: string().optional(),
12562
+ sectionLabel: string().optional()
12434
12563
  });
12435
12564
  var AddonPageInfoSchema = object({
12436
12565
  addonId: string(),
@@ -12470,7 +12599,18 @@ var AddonPageDeclarationSchema = object({
12470
12599
  * the static-file route can compute an mtime-based cache-buster URL
12471
12600
  * without a separate filesystem stat.
12472
12601
  */
12473
- bundle: string()
12602
+ bundle: string(),
12603
+ /**
12604
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12605
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12606
+ * Any OTHER string creates (or joins) a custom section rendered after
12607
+ * the built-in groups; its label comes from `sectionLabel` (first
12608
+ * declaration wins), falling back to the id. Absent → the legacy
12609
+ * "Addon Pages" group.
12610
+ */
12611
+ section: string().optional(),
12612
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12613
+ sectionLabel: string().optional()
12474
12614
  });
12475
12615
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12476
12616
  var AddonHttpRouteSchema = object({
@@ -12686,6 +12826,17 @@ var WidgetMetadataSchema = object({
12686
12826
  deviceContext: boolean().default(false),
12687
12827
  integrationContext: boolean().default(false)
12688
12828
  }),
12829
+ /**
12830
+ * Loadable BEFORE authentication. The normal widget registry listing
12831
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12832
+ * (the login page) cannot discover a widget through it. A widget that
12833
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12834
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12835
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12836
+ * than the authenticated registry, and its bundle is served by the
12837
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12838
+ */
12839
+ preAuth: boolean().optional().default(false),
12689
12840
  /** Dashboard placement HINTS (operator can override per instance). */
12690
12841
  defaultSize: WidgetSizeEnum.default("md"),
12691
12842
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12987,6 +13138,66 @@ method(object({
12987
13138
  password: string()
12988
13139
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12989
13140
  /**
13141
+ * `login-method` — collection cap through which auth addons contribute
13142
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13143
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13144
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13145
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13146
+ * procedure aggregates them for the unauthenticated login page.
13147
+ *
13148
+ * A contribution is a discriminated union on `kind`:
13149
+ *
13150
+ * - `redirect` — a declarative button. The login page renders a generic
13151
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13152
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13153
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13154
+ * login page needs NO change.
13155
+ *
13156
+ * - `widget` — a Module-Federation widget the login page mounts (via
13157
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13158
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13159
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13160
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13161
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13162
+ *
13163
+ * Every contribution carries a `stage`:
13164
+ * - `primary` — shown on the first credentials screen (OIDC /
13165
+ * magic-link buttons; a future usernameless passkey).
13166
+ * - `second-factor` — shown AFTER the password leg, gated on the
13167
+ * returned `factors` (passkey-as-2FA today).
13168
+ *
13169
+ * `mount: skip` — the cap is read server-side by the core auth router
13170
+ * (`registry.getCollection('login-method')`), never mounted as its own
13171
+ * tRPC router.
13172
+ */
13173
+ /** When a login method renders in the two-phase login flow. */
13174
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13175
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13176
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13177
+ kind: literal("redirect"),
13178
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13179
+ id: string(),
13180
+ /** Operator-facing button label. */
13181
+ label: string(),
13182
+ /** lucide-react icon name. */
13183
+ icon: string().optional(),
13184
+ /** Addon-owned HTTP route the button navigates to (GET). */
13185
+ startUrl: string(),
13186
+ stage: LoginStageEnum
13187
+ }), object({
13188
+ kind: literal("widget"),
13189
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13190
+ id: string(),
13191
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13192
+ addonId: string(),
13193
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13194
+ bundle: string(),
13195
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13196
+ remote: WidgetRemoteSchema,
13197
+ stage: LoginStageEnum
13198
+ })]);
13199
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13200
+ /**
12990
13201
  * Orchestrator-side destination metadata. The orchestrator computes
12991
13202
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12992
13203
  * (admin UI, restore flow) see one canonical key.
@@ -15104,7 +15315,17 @@ var TrackSchema = object({
15104
15315
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
15105
15316
  totalDistance: number(),
15106
15317
  state: TrackStateSchema,
15107
- active: boolean()
15318
+ active: boolean(),
15319
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15320
+ * track expiry, recomputed on late label). Absent on legacy rows written
15321
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15322
+ importance: number().optional(),
15323
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15324
+ * "best" frame). Absent when the track produced no object events. */
15325
+ bestEventId: string().optional(),
15326
+ /** Tag of the importance sub-signal that dominated the score
15327
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15328
+ importanceReason: string().optional()
15108
15329
  });
15109
15330
  var BaseEventFields = {
15110
15331
  id: string(),
@@ -15169,8 +15390,18 @@ var ObjectEventSchema = object({
15169
15390
  frameHeight: number().optional(),
15170
15391
  /** MediaStore key for the crop attached to this event (if any). */
15171
15392
  mediaKey: string().optional(),
15393
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15394
+ * best-detection full frame). Resolve via the event-media data-plane
15395
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15396
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15397
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15398
+ keyFrameMediaKey: string().optional(),
15172
15399
  /** Populated by B5 (recording playback URL for this event). */
15173
- mediaUrl: string().optional()
15400
+ mediaUrl: string().optional(),
15401
+ /** The parent track's key-event importance [0,1], propagated to every object
15402
+ * event of the track (so an event row can be sorted by importance without a
15403
+ * track join). Absent on legacy rows / before the track was scored. */
15404
+ importance: number().optional()
15174
15405
  });
15175
15406
  var AudioEventSchema = object({
15176
15407
  ...BaseEventFields,
@@ -15194,7 +15425,8 @@ var MediaFileKindEnum = _enum([
15194
15425
  "fullFrame",
15195
15426
  "fullFrameBoxed",
15196
15427
  "faceCrop",
15197
- "plateCrop"
15428
+ "plateCrop",
15429
+ "keyFrame"
15198
15430
  ]);
15199
15431
  var MediaFileSchema = object({
15200
15432
  key: string(),
@@ -15215,6 +15447,32 @@ var DeviceEventQueryInput = object({
15215
15447
  projection: _enum(["full", "slim"]).optional()
15216
15448
  });
15217
15449
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15450
+ var KeyEventQueryInput = object({
15451
+ deviceId: number(),
15452
+ /** Window lower bound (track firstSeen ≥ since). */
15453
+ since: number(),
15454
+ /** Window upper bound (track firstSeen ≤ until). */
15455
+ until: number(),
15456
+ limit: number().int().min(1).max(200).default(50),
15457
+ /** Drop tracks scoring below this importance. */
15458
+ minImportance: number().min(0).max(1).optional(),
15459
+ /** Restrict to a single class (e.g. 'person'). */
15460
+ classFilter: string().optional()
15461
+ });
15462
+ var KeyEventSchema = object({
15463
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15464
+ id: string(),
15465
+ trackId: string(),
15466
+ /** Track start time (firstSeen). */
15467
+ timestamp: number(),
15468
+ className: string(),
15469
+ label: string().optional(),
15470
+ importance: number(),
15471
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15472
+ bestEventId: string(),
15473
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15474
+ windowMs: number().optional()
15475
+ });
15218
15476
  var TrackedDetectionSchema = object({
15219
15477
  trackId: string(),
15220
15478
  className: string(),
@@ -15244,7 +15502,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15244
15502
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15245
15503
  kind: "mutation",
15246
15504
  auth: "admin"
15247
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15505
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15248
15506
  deviceId: number(),
15249
15507
  since: number(),
15250
15508
  until: number(),
@@ -15289,11 +15547,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15289
15547
  timestamp: number()
15290
15548
  });
15291
15549
  var CameraPipelineConfigSchema = object({
15292
- engine: PipelineEngineChoiceSchema,
15550
+ engine: PipelineEngineChoiceSchema.optional(),
15293
15551
  steps: array(PipelineStepInputSchema).readonly(),
15294
15552
  audio: object({
15295
- engine: PipelineEngineChoiceSchema,
15296
- modelId: string(),
15553
+ engine: PipelineEngineChoiceSchema.optional(),
15554
+ modelId: string().optional(),
15297
15555
  enabled: boolean(),
15298
15556
  settings: record(string(), unknown()).readonly().optional()
15299
15557
  }).nullable().optional()
@@ -15308,7 +15566,7 @@ var PipelineTemplateSchema = object({
15308
15566
  });
15309
15567
  var AgentAddonConfigSchema = object({
15310
15568
  enabled: boolean(),
15311
- modelId: string(),
15569
+ modelId: string().optional(),
15312
15570
  settings: record(string(), unknown()).readonly()
15313
15571
  });
15314
15572
  var AgentPipelineSettingsSchema = object({
@@ -15318,12 +15576,25 @@ var AgentPipelineSettingsSchema = object({
15318
15576
  detectWeight: number().positive().optional(),
15319
15577
  /** Node is eligible to run the detection pipeline (decode + inference). */
15320
15578
  detect: boolean().optional(),
15321
- /** Node is eligible to host decoder sessions. */
15579
+ /**
15580
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15581
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15582
+ * the schema ONLY so persisted stores written before the removal still
15583
+ * parse — no code reads it and no write path emits it.
15584
+ */
15322
15585
  decode: boolean().optional(),
15323
15586
  /** Node is eligible to run audio-analyzer sessions. */
15324
15587
  audio: boolean().optional(),
15325
15588
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15326
- ingest: boolean().optional()
15589
+ ingest: boolean().optional(),
15590
+ /**
15591
+ * Operator override for the LAN host a cross-node decoder dials to reach
15592
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15593
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15594
+ * it already uses to reach the hub). Set this only when the auto-detected
15595
+ * address is wrong (multi-homed host, NAT, custom interface).
15596
+ */
15597
+ reachableHost: string().optional()
15327
15598
  });
15328
15599
  var CameraPipelineForAgentSchema = object({
15329
15600
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15371,25 +15642,6 @@ var PipelineAssignmentSchema = object({
15371
15642
  assignedAt: number()
15372
15643
  });
15373
15644
  /**
15374
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15375
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15376
- * → co-located with pipeline → capacity).
15377
- */
15378
- var DecoderAssignmentSchema = object({
15379
- deviceId: number(),
15380
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15381
- decoderNodeId: string(),
15382
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15383
- pinned: boolean(),
15384
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15385
- reason: _enum([
15386
- "manual",
15387
- "co-located",
15388
- "capacity",
15389
- "hardware-affinity"
15390
- ])
15391
- });
15392
- /**
15393
15645
  * Per-agent load summary surfaced to the load balancer + dashboards.
15394
15646
  * Aggregated from each runner's `getLocalLoad` cap call.
15395
15647
  */
@@ -15429,6 +15681,15 @@ var GlobalMetricsSchema = object({
15429
15681
  * capability providers.
15430
15682
  */
15431
15683
  var CapabilityBindingsSchema = record(string(), string());
15684
+ /**
15685
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15686
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15687
+ */
15688
+ var IngestOwnerSchema = object({
15689
+ ownerNodeId: string(),
15690
+ reachableHost: string().optional(),
15691
+ configIssue: string().optional()
15692
+ });
15432
15693
  /** Source block — always present; derives from the stream catalog. */
15433
15694
  var CameraSourceStatusSchema = object({ streams: array(object({
15434
15695
  camStreamId: string(),
@@ -15443,6 +15704,14 @@ var CameraAssignmentStatusSchema = object({
15443
15704
  detectionNodeId: string().nullable(),
15444
15705
  decoderNodeId: string().nullable(),
15445
15706
  audioNodeId: string().nullable(),
15707
+ /**
15708
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15709
+ * hosts the broker/restream) — the cluster ingest owner today
15710
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15711
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15712
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15713
+ */
15714
+ sourceNodeId: string().nullable(),
15446
15715
  pinned: object({
15447
15716
  detection: boolean(),
15448
15717
  decoder: boolean(),
@@ -15575,16 +15844,7 @@ method(object({
15575
15844
  }), object({ success: literal(true) }), {
15576
15845
  kind: "mutation",
15577
15846
  auth: "admin"
15578
- }), method(object({
15579
- deviceId: number(),
15580
- nodeId: string()
15581
- }), _void(), {
15582
- kind: "mutation",
15583
- auth: "admin"
15584
- }), method(object({ deviceId: number() }), _void(), {
15585
- kind: "mutation",
15586
- auth: "admin"
15587
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15847
+ }), method(_void(), IngestOwnerSchema), method(object({
15588
15848
  deviceId: number(),
15589
15849
  nodeId: string()
15590
15850
  }), object({ success: literal(true) }), {
@@ -15605,10 +15865,7 @@ method(object({
15605
15865
  nodeId: string(),
15606
15866
  pinned: boolean(),
15607
15867
  assignedAt: number()
15608
- }))), method(object({
15609
- deviceId: number(),
15610
- pipelineNodeId: string().optional()
15611
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15868
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15612
15869
  nodeId: string(),
15613
15870
  settings: AgentPipelineSettingsSchema
15614
15871
  })).readonly()), method(object({
@@ -15638,12 +15895,26 @@ method(object({
15638
15895
  }), method(object({
15639
15896
  agentNodeId: string(),
15640
15897
  detect: boolean().nullable().optional(),
15641
- decode: boolean().nullable().optional(),
15642
15898
  audio: boolean().nullable().optional(),
15643
15899
  ingest: boolean().nullable().optional()
15644
15900
  }), object({ success: literal(true) }), {
15645
15901
  kind: "mutation",
15646
15902
  auth: "admin"
15903
+ }), method(object({
15904
+ agentNodeId: string(),
15905
+ reachableHost: string().nullable()
15906
+ }), object({ success: literal(true) }), {
15907
+ kind: "mutation",
15908
+ auth: "admin"
15909
+ }), method(object({ agentNodeId: string() }), object({
15910
+ success: literal(true),
15911
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15912
+ effectiveModelId: string().nullable(),
15913
+ /** Number of cameras whose node-scoped overrides were cleared. */
15914
+ clearedCameraOverrides: number()
15915
+ }), {
15916
+ kind: "mutation",
15917
+ auth: "admin"
15647
15918
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15648
15919
  deviceId: number(),
15649
15920
  addonId: string(),
@@ -15688,22 +15959,131 @@ method(object({
15688
15959
  kind: "mutation",
15689
15960
  auth: "admin"
15690
15961
  });
15691
- var RegisteredStreamSchema = object({
15692
- streamId: string(),
15693
- label: string().optional(),
15694
- codec: string(),
15695
- type: _enum(["video", "audio"]),
15696
- sourceUrl: string()
15962
+ /**
15963
+ * server-management — per-NODE singleton capability for a node's ROOT
15964
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15965
+ * agents).
15966
+ *
15967
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15968
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15969
+ * version describes the node. Updates install into
15970
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15971
+ * starter (probation boot + auto-rollback to N-1).
15972
+ *
15973
+ * Providers:
15974
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15975
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15976
+ * unpinned calls.
15977
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15978
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15979
+ * `$hub.registerNode` manifest.
15980
+ *
15981
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15982
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15983
+ * SDK) routes the call to that node's provider via the standard remote
15984
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15985
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15986
+ *
15987
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15988
+ */
15989
+ /**
15990
+ * Where the running hub's code was loaded from:
15991
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15992
+ * plain resolution and runtime updates are refused.
15993
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15994
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15995
+ */
15996
+ var ServerBootModeSchema = _enum([
15997
+ "workspace",
15998
+ "baked",
15999
+ "data-root"
16000
+ ]);
16001
+ /**
16002
+ * Update lifecycle state:
16003
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
16004
+ * - `pending-restart` — a version is staged and the node has NOT yet
16005
+ * restarted onto it (still running the OLD version).
16006
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
16007
+ * (it is the active probation boot) and is waiting to confirm boot-health.
16008
+ * Apply/rollback are refused in this state and the node must NOT be
16009
+ * manually restarted, or the probation boot auto-rolls-back.
16010
+ */
16011
+ var ServerUpdateStateSchema = _enum([
16012
+ "idle",
16013
+ "checking",
16014
+ "staging",
16015
+ "pending-restart",
16016
+ "awaiting-confirmation"
16017
+ ]);
16018
+ var ServerRollbackInfoSchema = object({
16019
+ /** The version that failed (or was manually rolled back). */
16020
+ fromVersion: string(),
16021
+ /** The version rolled back to; null = the baked seed. */
16022
+ toVersion: string().nullable(),
16023
+ atMs: number(),
16024
+ reason: string()
15697
16025
  });
15698
- var ExposedResourceSchema = object({
15699
- streamId: string(),
15700
- format: string(),
15701
- value: string()
16026
+ var ServerPackageStatusSchema = object({
16027
+ /** Root package name (`@camstack/server` on the hub). */
16028
+ packageName: string(),
16029
+ /** Version of the code the running process ACTUALLY loaded. */
16030
+ runningVersion: string().nullable(),
16031
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
16032
+ nodeRuntimeVersion: string().nullable(),
16033
+ /** Active data-dir root version; null when booted from seed/workspace. */
16034
+ activeVersion: string().nullable(),
16035
+ /** N-1 version kept for rollback; null when no previous version exists. */
16036
+ previousVersion: string().nullable(),
16037
+ /** Version of the immutable baked seed closure (image fallback). */
16038
+ seedVersion: string().nullable(),
16039
+ /** Latest registry version from the most recent check (null = never checked). */
16040
+ latestVersion: string().nullable(),
16041
+ updateAvailable: boolean(),
16042
+ bootMode: ServerBootModeSchema,
16043
+ updateState: ServerUpdateStateSchema,
16044
+ /** Version staged + awaiting its probation boot, when one is pending. */
16045
+ pendingVersion: string().nullable(),
16046
+ /** Set when the last freshly-activated version failed its boot health-check. */
16047
+ rolledBack: ServerRollbackInfoSchema.nullable(),
16048
+ /**
16049
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
16050
+ * hub is running from the baked seed (or workspace) while installed data-dir
16051
+ * versions are being IGNORED. Surfaced as a warning in the UI.
16052
+ */
16053
+ stateFileCorrupt: boolean(),
16054
+ lastCheckedAtMs: number().nullable()
16055
+ });
16056
+ var ServerUpdateCheckResultSchema = object({
16057
+ packageName: string(),
16058
+ runningVersion: string().nullable(),
16059
+ latestVersion: string().nullable(),
16060
+ updateAvailable: boolean(),
16061
+ checkedAtMs: number(),
16062
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
16063
+ error: string().nullable()
16064
+ });
16065
+ var ServerUpdateActionResultSchema = object({
16066
+ accepted: boolean(),
16067
+ targetVersion: string().nullable(),
16068
+ /** True when a graceful restart was scheduled to apply the change. */
16069
+ restarting: boolean(),
16070
+ message: string()
16071
+ });
16072
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
16073
+ kind: "mutation",
16074
+ auth: "admin"
16075
+ }), method(object({
16076
+ /** Explicit target version; omitted = latest from the registry. */
16077
+ version: string().optional() }), ServerUpdateActionResultSchema, {
16078
+ kind: "mutation",
16079
+ auth: "admin"
16080
+ }), method(_void(), ServerUpdateActionResultSchema, {
16081
+ kind: "mutation",
16082
+ auth: "admin"
16083
+ }), method(_void(), ServerUpdateActionResultSchema, {
16084
+ kind: "mutation",
16085
+ auth: "admin"
15702
16086
  });
15703
- method(object({
15704
- deviceId: number(),
15705
- streams: array(RegisteredStreamSchema).readonly()
15706
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15707
16087
  /**
15708
16088
  * Query filter for settings-store collections.
15709
16089
  */
@@ -15856,9 +16236,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15856
16236
  /**
15857
16237
  * A single device snapshot returned as base64 JPEG/PNG.
15858
16238
  *
15859
- * Shared with the `snapshot-provider` collection cap the orchestrator
15860
- * receives the same shape from each native provider and from the
15861
- * broker-based fallback.
16239
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16240
+ * the device-native provider (onboard capture) or from the stream-broker
16241
+ * prebuffer fallback.
15862
16242
  */
15863
16243
  var SnapshotImageSchema = object({
15864
16244
  base64: string(),
@@ -15889,11 +16269,12 @@ DeviceType.Camera, method(object({
15889
16269
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15890
16270
  kind: "mutation",
15891
16271
  auth: "admin"
15892
- });
15893
- method(object({ deviceId: number() }), boolean()), method(object({
16272
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15894
16273
  deviceId: number(),
15895
- streamId: string().optional()
15896
- }), SnapshotImageSchema.nullable());
16274
+ lastCapturedAt: number().nullable(),
16275
+ cacheAgeMs: number().nullable(),
16276
+ etag: string().nullable()
16277
+ })));
15897
16278
  /**
15898
16279
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15899
16280
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16144,10 +16525,32 @@ method(_void(), array(TurnServerSchema).readonly());
16144
16525
  * b. `finishAuthentication({userId, response})` → server verifies
16145
16526
  * the assertion, bumps the credential counter, returns ok.
16146
16527
  *
16528
+ * 2b. Usernameless (discoverable-credential) authentication — the
16529
+ * passkey IS the primary factor, no password leg:
16530
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16531
+ * EMPTY `allowCredentials` (the browser offers every resident
16532
+ * passkey it holds for this RP) + `userVerification: 'required'`
16533
+ * (the passkey replaces both factors, so UV is mandatory).
16534
+ * The challenge is stored server-side, NOT bound to any user.
16535
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16536
+ * resolves the credential by the response's credential id,
16537
+ * verifies the assertion against the stored challenge + that
16538
+ * credential's public key/counter, and returns the OWNING
16539
+ * `userId` — the caller (core auth router) mints the session.
16540
+ *
16147
16541
  * 3. Management:
16148
16542
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16149
16543
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16150
16544
  *
16545
+ * 4. Second-factor preference (opt-in, default OFF):
16546
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16547
+ * demanded as a second factor after a password login ONLY when the
16548
+ * user explicitly opts in via `setSecondFactorPreference`.
16549
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16550
+ * row ⇒ `enabled: false`).
16551
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16552
+ * the providing addon beside its credentials.
16553
+ *
16151
16554
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16152
16555
  * the admin-ui composes the begin/finish round-trip and never exposes
16153
16556
  * the cap to non-admins.
@@ -16190,6 +16593,17 @@ method(object({
16190
16593
  }), object({ verified: boolean() }), {
16191
16594
  kind: "mutation",
16192
16595
  access: "view"
16596
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16597
+ kind: "mutation",
16598
+ access: "view"
16599
+ }), method(object({
16600
+ /** AuthenticationResponseJSON from the browser. */
16601
+ response: record(string(), unknown()) }), object({
16602
+ verified: boolean(),
16603
+ userId: string().nullable()
16604
+ }), {
16605
+ kind: "mutation",
16606
+ access: "view"
16193
16607
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16194
16608
  userId: string(),
16195
16609
  credentialId: string()
@@ -16197,6 +16611,13 @@ method(object({
16197
16611
  kind: "mutation",
16198
16612
  auth: "admin",
16199
16613
  access: "delete"
16614
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16615
+ userId: string(),
16616
+ enabled: boolean()
16617
+ }), object({ success: literal(true) }), {
16618
+ kind: "mutation",
16619
+ auth: "admin",
16620
+ access: "create"
16200
16621
  });
16201
16622
  /**
16202
16623
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16254,9 +16675,10 @@ method(object({
16254
16675
  auth: "admin"
16255
16676
  });
16256
16677
  /**
16257
- * Optional client-side hints sent at session creation to help the
16258
- * provider pick the best native source. All fields are optional —
16259
- * a viewer that knows nothing still gets a sane default.
16678
+ * Optional client-side hints sent at session creation to help the provider
16679
+ * pick the best native source. All fields optional — a viewer that knows
16680
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16681
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16260
16682
  */
16261
16683
  var webrtcClientHintsSchema = object({
16262
16684
  viewportWidth: number().int().positive().optional(),
@@ -16267,22 +16689,6 @@ var webrtcClientHintsSchema = object({
16267
16689
  /** Hard tier override; takes precedence over scoring when registered. */
16268
16690
  prefersTier: string().optional()
16269
16691
  }).partial();
16270
- method(object({
16271
- streamId: string(),
16272
- sdpOffer: string()
16273
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16274
- streamId: string(),
16275
- codec: string()
16276
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16277
- streamId: string(),
16278
- hints: webrtcClientHintsSchema.optional()
16279
- }), object({
16280
- sessionId: string(),
16281
- sdpOffer: string()
16282
- }), { kind: "mutation" }), method(object({
16283
- sessionId: string(),
16284
- sdpAnswer: string()
16285
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16286
16692
  /**
16287
16693
  * Discriminated target for a WebRTC session. The client sends this
16288
16694
  * structured object instead of building / parsing brokerId strings;
@@ -17013,7 +17419,17 @@ var FaceInfoSchema = object({
17013
17419
  recognizedIdentityId: string().optional(),
17014
17420
  identityName: string().optional(),
17015
17421
  assigned: boolean(),
17016
- base64: string().optional()
17422
+ base64: string().optional(),
17423
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17424
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17425
+ * legacy rows written before design B. */
17426
+ faceBbox: BoundingBoxSchema.optional(),
17427
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17428
+ * Fetch the native JPEG via the event-media data-plane
17429
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17430
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17431
+ * back to the inline `base64` face crop. */
17432
+ keyFrameMediaKey: string().optional()
17017
17433
  });
17018
17434
  var FaceFilterEnum = _enum([
17019
17435
  "unassigned",
@@ -17710,6 +18126,16 @@ var TopologyCategorySchema = object({
17710
18126
  healthy: number(),
17711
18127
  addons: array(TopologyCategoryAddonSchema).readonly()
17712
18128
  });
18129
+ /**
18130
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18131
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18132
+ * version visibility for the Server management surface. Nullable: offline
18133
+ * rows and pre-phase-2 nodes report none.
18134
+ */
18135
+ var TopologyRootPackageSchema = object({
18136
+ name: string(),
18137
+ version: string()
18138
+ });
17713
18139
  var TopologyNodeSchema = object({
17714
18140
  id: string(),
17715
18141
  name: string(),
@@ -17733,7 +18159,8 @@ var TopologyNodeSchema = object({
17733
18159
  status: string()
17734
18160
  })).readonly(),
17735
18161
  processes: array(TopologyProcessSchema).readonly(),
17736
- categories: array(TopologyCategorySchema).readonly()
18162
+ categories: array(TopologyCategorySchema).readonly(),
18163
+ rootPackage: TopologyRootPackageSchema.nullable()
17737
18164
  });
17738
18165
  var CapUsageEdgeSchema = object({
17739
18166
  callerAddonId: string(),
@@ -20533,6 +20960,12 @@ Object.freeze({
20533
20960
  addonId: null,
20534
20961
  access: "create"
20535
20962
  },
20963
+ "loginMethod.getLoginMethods": {
20964
+ capName: "login-method",
20965
+ capScope: "system",
20966
+ addonId: null,
20967
+ access: "view"
20968
+ },
20536
20969
  "mediaPlayer.next": {
20537
20970
  capName: "media-player",
20538
20971
  capScope: "device",
@@ -21115,6 +21548,12 @@ Object.freeze({
21115
21548
  addonId: null,
21116
21549
  access: "view"
21117
21550
  },
21551
+ "pipelineAnalytics.getKeyEvents": {
21552
+ capName: "pipeline-analytics",
21553
+ capScope: "device",
21554
+ addonId: null,
21555
+ access: "view"
21556
+ },
21118
21557
  "pipelineAnalytics.getMotionEvents": {
21119
21558
  capName: "pipeline-analytics",
21120
21559
  capScope: "device",
@@ -21163,23 +21602,23 @@ Object.freeze({
21163
21602
  addonId: null,
21164
21603
  access: "create"
21165
21604
  },
21166
- "pipelineExecutor.deleteModel": {
21605
+ "pipelineExecutor.clearDeviceOverrides": {
21167
21606
  capName: "pipeline-executor",
21168
21607
  capScope: "system",
21169
21608
  addonId: null,
21170
21609
  access: "delete"
21171
21610
  },
21172
- "pipelineExecutor.deleteTemplate": {
21611
+ "pipelineExecutor.deleteModel": {
21173
21612
  capName: "pipeline-executor",
21174
21613
  capScope: "system",
21175
21614
  addonId: null,
21176
21615
  access: "delete"
21177
21616
  },
21178
- "pipelineExecutor.detect": {
21617
+ "pipelineExecutor.deleteTemplate": {
21179
21618
  capName: "pipeline-executor",
21180
21619
  capScope: "system",
21181
21620
  addonId: null,
21182
- access: "view"
21621
+ access: "delete"
21183
21622
  },
21184
21623
  "pipelineExecutor.downloadModel": {
21185
21624
  capName: "pipeline-executor",
@@ -21373,13 +21812,13 @@ Object.freeze({
21373
21812
  addonId: null,
21374
21813
  access: "create"
21375
21814
  },
21376
- "pipelineOrchestrator.assignAudio": {
21377
- capName: "pipeline-orchestrator",
21815
+ "pipelineExecutor.validatePipeline": {
21816
+ capName: "pipeline-executor",
21378
21817
  capScope: "system",
21379
21818
  addonId: null,
21380
- access: "create"
21819
+ access: "view"
21381
21820
  },
21382
- "pipelineOrchestrator.assignDecoder": {
21821
+ "pipelineOrchestrator.assignAudio": {
21383
21822
  capName: "pipeline-orchestrator",
21384
21823
  capScope: "system",
21385
21824
  addonId: null,
@@ -21463,19 +21902,13 @@ Object.freeze({
21463
21902
  addonId: null,
21464
21903
  access: "view"
21465
21904
  },
21466
- "pipelineOrchestrator.getDecoderAssignment": {
21467
- capName: "pipeline-orchestrator",
21468
- capScope: "system",
21469
- addonId: null,
21470
- access: "view"
21471
- },
21472
- "pipelineOrchestrator.getDecoderAssignments": {
21905
+ "pipelineOrchestrator.getGlobalMetrics": {
21473
21906
  capName: "pipeline-orchestrator",
21474
21907
  capScope: "system",
21475
21908
  addonId: null,
21476
21909
  access: "view"
21477
21910
  },
21478
- "pipelineOrchestrator.getGlobalMetrics": {
21911
+ "pipelineOrchestrator.getIngestOwner": {
21479
21912
  capName: "pipeline-orchestrator",
21480
21913
  capScope: "system",
21481
21914
  addonId: null,
@@ -21517,6 +21950,12 @@ Object.freeze({
21517
21950
  addonId: null,
21518
21951
  access: "delete"
21519
21952
  },
21953
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21954
+ capName: "pipeline-orchestrator",
21955
+ capScope: "system",
21956
+ addonId: null,
21957
+ access: "delete"
21958
+ },
21520
21959
  "pipelineOrchestrator.resolvePipeline": {
21521
21960
  capName: "pipeline-orchestrator",
21522
21961
  capScope: "system",
@@ -21553,37 +21992,37 @@ Object.freeze({
21553
21992
  addonId: null,
21554
21993
  access: "create"
21555
21994
  },
21556
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21995
+ "pipelineOrchestrator.setAgentReachableHost": {
21557
21996
  capName: "pipeline-orchestrator",
21558
21997
  capScope: "system",
21559
21998
  addonId: null,
21560
21999
  access: "create"
21561
22000
  },
21562
- "pipelineOrchestrator.setCameraStepOverride": {
22001
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21563
22002
  capName: "pipeline-orchestrator",
21564
22003
  capScope: "system",
21565
22004
  addonId: null,
21566
22005
  access: "create"
21567
22006
  },
21568
- "pipelineOrchestrator.setCameraStepToggle": {
22007
+ "pipelineOrchestrator.setCameraStepOverride": {
21569
22008
  capName: "pipeline-orchestrator",
21570
22009
  capScope: "system",
21571
22010
  addonId: null,
21572
22011
  access: "create"
21573
22012
  },
21574
- "pipelineOrchestrator.setCapabilityBinding": {
22013
+ "pipelineOrchestrator.setCameraStepToggle": {
21575
22014
  capName: "pipeline-orchestrator",
21576
22015
  capScope: "system",
21577
22016
  addonId: null,
21578
22017
  access: "create"
21579
22018
  },
21580
- "pipelineOrchestrator.unassignAudio": {
22019
+ "pipelineOrchestrator.setCapabilityBinding": {
21581
22020
  capName: "pipeline-orchestrator",
21582
22021
  capScope: "system",
21583
22022
  addonId: null,
21584
22023
  access: "create"
21585
22024
  },
21586
- "pipelineOrchestrator.unassignDecoder": {
22025
+ "pipelineOrchestrator.unassignAudio": {
21587
22026
  capName: "pipeline-orchestrator",
21588
22027
  capScope: "system",
21589
22028
  addonId: null,
@@ -21643,6 +22082,12 @@ Object.freeze({
21643
22082
  addonId: null,
21644
22083
  access: "view"
21645
22084
  },
22085
+ "pipelineRunner.getNativeCrop": {
22086
+ capName: "pipeline-runner",
22087
+ capScope: "system",
22088
+ addonId: null,
22089
+ access: "view"
22090
+ },
21646
22091
  "pipelineRunner.reportMotion": {
21647
22092
  capName: "pipeline-runner",
21648
22093
  capScope: "system",
@@ -21883,33 +22328,45 @@ Object.freeze({
21883
22328
  addonId: null,
21884
22329
  access: "create"
21885
22330
  },
21886
- "restreamer.getExposedResources": {
21887
- capName: "restreamer",
22331
+ "scriptRunner.run": {
22332
+ capName: "script-runner",
22333
+ capScope: "device",
22334
+ addonId: null,
22335
+ access: "create"
22336
+ },
22337
+ "scriptRunner.stop": {
22338
+ capName: "script-runner",
22339
+ capScope: "device",
22340
+ addonId: null,
22341
+ access: "create"
22342
+ },
22343
+ "serverManagement.applyServerUpdate": {
22344
+ capName: "server-management",
21888
22345
  capScope: "system",
21889
22346
  addonId: null,
21890
- access: "view"
22347
+ access: "create"
21891
22348
  },
21892
- "restreamer.registerDevice": {
21893
- capName: "restreamer",
22349
+ "serverManagement.checkServerUpdate": {
22350
+ capName: "server-management",
21894
22351
  capScope: "system",
21895
22352
  addonId: null,
21896
22353
  access: "create"
21897
22354
  },
21898
- "restreamer.unregisterDevice": {
21899
- capName: "restreamer",
22355
+ "serverManagement.getServerPackageStatus": {
22356
+ capName: "server-management",
21900
22357
  capScope: "system",
21901
22358
  addonId: null,
21902
- access: "delete"
22359
+ access: "view"
21903
22360
  },
21904
- "scriptRunner.run": {
21905
- capName: "script-runner",
21906
- capScope: "device",
22361
+ "serverManagement.restartServer": {
22362
+ capName: "server-management",
22363
+ capScope: "system",
21907
22364
  addonId: null,
21908
22365
  access: "create"
21909
22366
  },
21910
- "scriptRunner.stop": {
21911
- capName: "script-runner",
21912
- capScope: "device",
22367
+ "serverManagement.rollbackServerUpdate": {
22368
+ capName: "server-management",
22369
+ capScope: "system",
21913
22370
  addonId: null,
21914
22371
  access: "create"
21915
22372
  },
@@ -21997,23 +22454,17 @@ Object.freeze({
21997
22454
  addonId: null,
21998
22455
  access: "view"
21999
22456
  },
22000
- "snapshot.invalidateCache": {
22457
+ "snapshot.getSnapshotOverview": {
22001
22458
  capName: "snapshot",
22002
22459
  capScope: "device",
22003
22460
  addonId: null,
22004
- access: "create"
22005
- },
22006
- "snapshotProvider.getSnapshot": {
22007
- capName: "snapshot-provider",
22008
- capScope: "system",
22009
- addonId: null,
22010
22461
  access: "view"
22011
22462
  },
22012
- "snapshotProvider.supportsDevice": {
22013
- capName: "snapshot-provider",
22014
- capScope: "system",
22463
+ "snapshot.invalidateCache": {
22464
+ capName: "snapshot",
22465
+ capScope: "device",
22015
22466
  addonId: null,
22016
- access: "view"
22467
+ access: "create"
22017
22468
  },
22018
22469
  "ssoBridge.signBridgeToken": {
22019
22470
  capName: "sso-bridge",
@@ -22441,30 +22892,6 @@ Object.freeze({
22441
22892
  addonId: null,
22442
22893
  access: "view"
22443
22894
  },
22444
- "streamingEngine.getStreamUrl": {
22445
- capName: "streaming-engine",
22446
- capScope: "system",
22447
- addonId: null,
22448
- access: "view"
22449
- },
22450
- "streamingEngine.listStreams": {
22451
- capName: "streaming-engine",
22452
- capScope: "system",
22453
- addonId: null,
22454
- access: "view"
22455
- },
22456
- "streamingEngine.registerStream": {
22457
- capName: "streaming-engine",
22458
- capScope: "system",
22459
- addonId: null,
22460
- access: "create"
22461
- },
22462
- "streamingEngine.unregisterStream": {
22463
- capName: "streaming-engine",
22464
- capScope: "system",
22465
- addonId: null,
22466
- access: "delete"
22467
- },
22468
22895
  "streamParams.getConfigSchema": {
22469
22896
  capName: "stream-params",
22470
22897
  capScope: "device",
@@ -22711,6 +23138,12 @@ Object.freeze({
22711
23138
  addonId: null,
22712
23139
  access: "view"
22713
23140
  },
23141
+ "userPasskeys.beginDiscoverableAuthentication": {
23142
+ capName: "user-passkeys",
23143
+ capScope: "system",
23144
+ addonId: null,
23145
+ access: "view"
23146
+ },
22714
23147
  "userPasskeys.beginRegistration": {
22715
23148
  capName: "user-passkeys",
22716
23149
  capScope: "system",
@@ -22723,12 +23156,24 @@ Object.freeze({
22723
23156
  addonId: null,
22724
23157
  access: "view"
22725
23158
  },
23159
+ "userPasskeys.finishDiscoverableAuthentication": {
23160
+ capName: "user-passkeys",
23161
+ capScope: "system",
23162
+ addonId: null,
23163
+ access: "view"
23164
+ },
22726
23165
  "userPasskeys.finishRegistration": {
22727
23166
  capName: "user-passkeys",
22728
23167
  capScope: "system",
22729
23168
  addonId: null,
22730
23169
  access: "create"
22731
23170
  },
23171
+ "userPasskeys.getSecondFactorPreference": {
23172
+ capName: "user-passkeys",
23173
+ capScope: "system",
23174
+ addonId: null,
23175
+ access: "view"
23176
+ },
22732
23177
  "userPasskeys.listPasskeys": {
22733
23178
  capName: "user-passkeys",
22734
23179
  capScope: "system",
@@ -22741,6 +23186,12 @@ Object.freeze({
22741
23186
  addonId: null,
22742
23187
  access: "delete"
22743
23188
  },
23189
+ "userPasskeys.setSecondFactorPreference": {
23190
+ capName: "user-passkeys",
23191
+ capScope: "system",
23192
+ addonId: null,
23193
+ access: "create"
23194
+ },
22744
23195
  "vacuumControl.locate": {
22745
23196
  capName: "vacuum-control",
22746
23197
  capScope: "device",
@@ -22813,6 +23264,18 @@ Object.freeze({
22813
23264
  addonId: null,
22814
23265
  access: "view"
22815
23266
  },
23267
+ "viewerUi.getStaticDir": {
23268
+ capName: "viewer-ui",
23269
+ capScope: "system",
23270
+ addonId: null,
23271
+ access: "view"
23272
+ },
23273
+ "viewerUi.getVersion": {
23274
+ capName: "viewer-ui",
23275
+ capScope: "system",
23276
+ addonId: null,
23277
+ access: "view"
23278
+ },
22816
23279
  "waterHeater.setAway": {
22817
23280
  capName: "water-heater",
22818
23281
  capScope: "device",
@@ -22831,54 +23294,6 @@ Object.freeze({
22831
23294
  addonId: null,
22832
23295
  access: "create"
22833
23296
  },
22834
- "webrtc.closeSession": {
22835
- capName: "webrtc",
22836
- capScope: "system",
22837
- addonId: null,
22838
- access: "create"
22839
- },
22840
- "webrtc.createSession": {
22841
- capName: "webrtc",
22842
- capScope: "system",
22843
- addonId: null,
22844
- access: "create"
22845
- },
22846
- "webrtc.handleAnswer": {
22847
- capName: "webrtc",
22848
- capScope: "system",
22849
- addonId: null,
22850
- access: "create"
22851
- },
22852
- "webrtc.handleOffer": {
22853
- capName: "webrtc",
22854
- capScope: "system",
22855
- addonId: null,
22856
- access: "create"
22857
- },
22858
- "webrtc.hasAdaptiveBitrate": {
22859
- capName: "webrtc",
22860
- capScope: "system",
22861
- addonId: null,
22862
- access: "view"
22863
- },
22864
- "webrtc.registerStream": {
22865
- capName: "webrtc",
22866
- capScope: "system",
22867
- addonId: null,
22868
- access: "create"
22869
- },
22870
- "webrtc.supportsStream": {
22871
- capName: "webrtc",
22872
- capScope: "system",
22873
- addonId: null,
22874
- access: "view"
22875
- },
22876
- "webrtc.unregisterStream": {
22877
- capName: "webrtc",
22878
- capScope: "system",
22879
- addonId: null,
22880
- access: "delete"
22881
- },
22882
23297
  "webrtcSession.addIceCandidate": {
22883
23298
  capName: "webrtc-session",
22884
23299
  capScope: "device",