@camstack/addon-export-hap 1.1.19 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4639,7 +4639,7 @@ function _instanceof(cls, params = {}) {
4639
4639
  return inst;
4640
4640
  }
4641
4641
  //#endregion
4642
- //#region ../types/dist/sleep-CZDdRBua.mjs
4642
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4643
4643
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4644
4644
  EventCategory["SystemBoot"] = "system.boot";
4645
4645
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4825,6 +4825,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4825
4825
  */
4826
4826
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4827
4827
  /**
4828
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4829
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4830
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4831
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4832
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4833
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4834
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4835
+ * topology change, so a dropped event self-heals on the next one (plus the
4836
+ * broker's long backstop reconcile query).
4837
+ */
4838
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4839
+ /**
4828
4840
  * Periodic snapshot of per-node pipeline-runner load
4829
4841
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4830
4842
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5348,10 +5360,6 @@ function hydrateField(field, values) {
5348
5360
  };
5349
5361
  }
5350
5362
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5351
- if (field.type === "password") return {
5352
- ...field,
5353
- value: ""
5354
- };
5355
5363
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5356
5364
  return {
5357
5365
  ...field,
@@ -6735,6 +6743,21 @@ function method(input, output, options) {
6735
6743
  timeoutMs: options?.timeoutMs
6736
6744
  };
6737
6745
  }
6746
+ /**
6747
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6748
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6749
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6750
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6751
+ */
6752
+ function systemMethod(input, output, options) {
6753
+ return {
6754
+ ...method(input, output, options),
6755
+ systemOnly: true
6756
+ };
6757
+ }
6758
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6759
+ var VersionOutputSchema$1 = object({ version: string() });
6760
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6738
6761
  var StaticDirOutputSchema = object({ staticDir: string() });
6739
6762
  var VersionOutputSchema = object({ version: string() });
6740
6763
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6904,6 +6927,36 @@ var ModelFormatsSchema = object({
6904
6927
  tflite: ModelFormatEntrySchema.optional(),
6905
6928
  pt: ModelFormatEntrySchema.optional()
6906
6929
  });
6930
+ /**
6931
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6932
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6933
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6934
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6935
+ * resolution/download/persistence; this is a presentation overlay resolved back
6936
+ * to an `id`.
6937
+ */
6938
+ var ModelVariantGroupSchema = object({
6939
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6940
+ family: string(),
6941
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6942
+ tier: string(),
6943
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6944
+ precision: _enum(["fp32", "int8"]).optional(),
6945
+ /**
6946
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6947
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6948
+ * future performance variants plug into.
6949
+ */
6950
+ optimization: _enum(["standard", "fast"]).optional(),
6951
+ /**
6952
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6953
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6954
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6955
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6956
+ * the group so the selector can offer it as a variant axis.
6957
+ */
6958
+ resolution: number().int().positive().optional()
6959
+ });
6907
6960
  var ModelCatalogEntrySchema = object({
6908
6961
  id: string(),
6909
6962
  name: string(),
@@ -6933,7 +6986,43 @@ var ModelCatalogEntrySchema = object({
6933
6986
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6934
6987
  * Downloaded into the same modelsDir alongside the model file.
6935
6988
  */
6936
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6989
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6990
+ /**
6991
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6992
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6993
+ * model list and excluded from the auto format-default pick. Set on the
6994
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6995
+ * the active lineup stays the coherent curated ladder without deleting a
6996
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6997
+ * an explicit legacy id that has a build for the node's format.
6998
+ */
6999
+ legacy: boolean().optional(),
7000
+ /**
7001
+ * Measured quality/latency metadata — populated from the benchmark addon on
7002
+ * the real node classes. Absent = not yet measured (most entries today; the
7003
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7004
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7005
+ */
7006
+ metrics: object({
7007
+ map50: number().optional(),
7008
+ p95LatencyMs: record(string(), number()).optional()
7009
+ }).optional(),
7010
+ /**
7011
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7012
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7013
+ * the retraining addon and any future commercial distribution.
7014
+ */
7015
+ license: string().optional(),
7016
+ /**
7017
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7018
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7019
+ * of a family's sizes and quantizations collapse into one grouped picker
7020
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7021
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7022
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7023
+ * is a presentation overlay resolved back to an `id`.
7024
+ */
7025
+ group: ModelVariantGroupSchema.optional()
6937
7026
  });
6938
7027
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6939
7028
  format: literal("openvino"),
@@ -6994,8 +7083,8 @@ var RecordingModeSchema = _enum([
6994
7083
  "onAudioThreshold"
6995
7084
  ]);
6996
7085
  /**
6997
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6998
- * reads directly (never inferred from `rules`):
7086
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7087
+ * UI reads directly (never inferred from `rules`):
6999
7088
  * - `off` — not recording.
7000
7089
  * - `events` — record only around triggers (motion / audio threshold),
7001
7090
  * with pre/post-buffer.
@@ -8697,26 +8786,13 @@ DeviceType.Light, method(object({
8697
8786
  percentage: number().min(0).max(100),
8698
8787
  lastChangedAt: number()
8699
8788
  });
8789
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8700
8790
  var StreamFormatSchema = _enum([
8701
8791
  "webrtc",
8702
8792
  "hls",
8703
8793
  "mjpeg",
8704
8794
  "rtsp"
8705
8795
  ]);
8706
- var StreamInfoSchema = object({
8707
- streamId: string(),
8708
- format: StreamFormatSchema,
8709
- url: string().nullable(),
8710
- active: boolean()
8711
- });
8712
- method(object({
8713
- streamId: string(),
8714
- sourceUrl: string(),
8715
- codec: string().optional()
8716
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8717
- streamId: string(),
8718
- format: StreamFormatSchema
8719
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8720
8796
  var RtspRestreamEntrySchema = object({
8721
8797
  brokerId: string(),
8722
8798
  url: string(),
@@ -9381,7 +9457,7 @@ var ConsumablesStatusSchema = object({
9381
9457
  })),
9382
9458
  lastChangedAt: number()
9383
9459
  });
9384
- 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({
9460
+ Object.values(DeviceType), method(object({
9385
9461
  deviceId: number().int().nonnegative(),
9386
9462
  key: string().min(1)
9387
9463
  }), _void(), {
@@ -10296,7 +10372,7 @@ var BoundingBoxSchema = object({
10296
10372
  w: number(),
10297
10373
  h: number()
10298
10374
  });
10299
- var SpatialDetectionSchema = object({
10375
+ object({
10300
10376
  class: string(),
10301
10377
  originalClass: string(),
10302
10378
  score: number(),
@@ -10431,7 +10507,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10431
10507
  enabled: boolean(),
10432
10508
  modelId: string(),
10433
10509
  children: array(PipelineDefaultStepSchema).readonly(),
10434
- engine: PipelineEngineChoiceSchema.optional(),
10435
10510
  group: string().optional(),
10436
10511
  settings: record(string(), unknown()).optional()
10437
10512
  }));
@@ -10456,7 +10531,9 @@ var PipelineModelOptionSchema = object({
10456
10531
  formats: record(string(), object({
10457
10532
  downloaded: boolean(),
10458
10533
  sizeMB: number()
10459
- }))
10534
+ })),
10535
+ group: ModelVariantGroupSchema.optional(),
10536
+ legacy: boolean().optional()
10460
10537
  });
10461
10538
  var ConfigFieldBridge = custom();
10462
10539
  var PipelineAddonSchemaSchema = object({
@@ -10470,6 +10547,7 @@ var PipelineAddonSchemaSchema = object({
10470
10547
  defaultModelId: string(),
10471
10548
  defaultModelIdByFormat: record(string(), string()).optional(),
10472
10549
  enabledByDefault: boolean().optional(),
10550
+ backfillIntoExistingOverrides: boolean().optional(),
10473
10551
  defaultConfidence: number(),
10474
10552
  group: string().optional(),
10475
10553
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10486,11 +10564,6 @@ var PipelineSchemaSchema = object({
10486
10564
  selectedEngine: PipelineEngineChoiceSchema,
10487
10565
  slots: array(PipelineSlotSchemaSchema).readonly()
10488
10566
  });
10489
- var DetectorOutputSchema = object({
10490
- detections: array(SpatialDetectionSchema).readonly(),
10491
- inferenceMs: number(),
10492
- modelId: string()
10493
- });
10494
10567
  var EngineProvisioningSchema = object({
10495
10568
  runtimeId: _enum([
10496
10569
  "onnx",
@@ -10507,15 +10580,42 @@ var EngineProvisioningSchema = object({
10507
10580
  ]),
10508
10581
  progress: number().optional(),
10509
10582
  error: string().optional(),
10510
- nextRetryAt: number().optional()
10583
+ nextRetryAt: number().optional(),
10584
+ /**
10585
+ * Gate A (config-correctness gate at engine change): human-readable
10586
+ * config issues surfaced EAGERLY when the node's engine changes — model
10587
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10588
+ * has a <format> build"). Additive/optional: informational only, never
10589
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10590
+ * Absent/empty when the node-default tree resolves cleanly.
10591
+ */
10592
+ configIssues: array(string()).optional()
10511
10593
  });
10512
10594
  var PipelineStepInputSchema = lazy(() => object({
10513
10595
  addonId: string(),
10514
- modelId: string(),
10596
+ modelId: string().optional(),
10515
10597
  enabled: boolean().default(true),
10516
10598
  children: array(PipelineStepInputSchema).optional(),
10517
10599
  settings: record(string(), unknown()).optional()
10518
10600
  }));
10601
+ var ModelSubstitutionSchema = object({
10602
+ addonId: string(),
10603
+ chosen: string(),
10604
+ running: string(),
10605
+ format: string()
10606
+ });
10607
+ var PipelineValidationIssueSchema = object({
10608
+ addonId: string(),
10609
+ kind: _enum(["unknown-addon", "no-format-build"]),
10610
+ detail: string()
10611
+ });
10612
+ var PipelineValidationResultSchema = object({
10613
+ ok: boolean(),
10614
+ issues: array(PipelineValidationIssueSchema).readonly(),
10615
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10616
+ /** The node's `currentEngine.format` this validation ran against. */
10617
+ format: string()
10618
+ });
10519
10619
  var ReferenceImageEntrySchema = object({
10520
10620
  filename: string(),
10521
10621
  stepIds: array(string()).readonly().optional()
@@ -10586,7 +10686,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10586
10686
  })) }), object({ success: literal(true) }), {
10587
10687
  kind: "mutation",
10588
10688
  auth: "admin"
10589
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10689
+ }), method(object({ nodeId: string() }), object({
10690
+ success: literal(true),
10691
+ clearedDevices: number()
10692
+ }), {
10693
+ kind: "mutation",
10694
+ auth: "admin"
10695
+ }), 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({
10590
10696
  name: string(),
10591
10697
  steps: array(PipelineTemplateStepSchema).readonly(),
10592
10698
  engine: PipelineEngineChoiceSchema
@@ -10603,10 +10709,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10603
10709
  modelId: string(),
10604
10710
  format: ModelFormatSchema$1
10605
10711
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10606
- addonId: string(),
10607
- frame: FrameInputSchema,
10608
- config: record(string(), unknown()).optional()
10609
- }), DetectorOutputSchema), method(object({
10610
10712
  engine: PipelineEngineChoiceSchema.optional(),
10611
10713
  steps: array(PipelineStepInputSchema).min(1),
10612
10714
  frame: FrameInputSchema.optional(),
@@ -10752,6 +10854,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10752
10854
  auth: "admin"
10753
10855
  }), object({ zones: array(ZoneSchema).readonly() });
10754
10856
  /**
10857
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10858
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10859
+ * so the caller supplies only the detection-res bbox divided by the detection
10860
+ * dims — no native resolution to plumb.
10861
+ */
10862
+ var NativeCropBboxSchema = object({
10863
+ x: number(),
10864
+ y: number(),
10865
+ w: number(),
10866
+ h: number()
10867
+ });
10868
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10869
+ var NativeCropResultSchema = object({
10870
+ /** Packed rgb (24-bit) pixels of the crop. */
10871
+ bytes: _instanceof(Uint8Array),
10872
+ width: number().int().positive(),
10873
+ height: number().int().positive()
10874
+ });
10875
+ /**
10755
10876
  * Per-camera tunable ranges + defaults. Single source of truth used
10756
10877
  * by both the Zod data schema (validation + default fallback) and
10757
10878
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10846,6 +10967,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10846
10967
  kind: literal("remote-restream"),
10847
10968
  /** The camera's source-owner node (slice 1: always the hub). */
10848
10969
  ownerNodeId: string(),
10970
+ /**
10971
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10972
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10973
+ * dials THIS host for the owner's restream, in preference to the
10974
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10975
+ */
10976
+ ownerReachableHost: string().optional(),
10849
10977
  /** Operator override for the owner host the runner dials. */
10850
10978
  hubHostnameOverride: string().optional()
10851
10979
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10854,13 +10982,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10854
10982
  * specific runner instance via `attachCamera`. Carries everything the
10855
10983
  * runner needs to subscribe to the local broker and execute inference.
10856
10984
  *
10857
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10858
- * optional `audio`) travels with the attach payload. The runner keeps it
10859
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10860
- * restart the orchestrator re-sends the latest snapshot.
10861
- *
10862
- * `engine`/`steps`/`audio` are optional during the additive migration
10863
- * window; once orchestrator + UI are migrated they become required.
10985
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10986
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10987
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10988
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10989
+ * node-local, resolved by the executing runner at dispatch time.
10864
10990
  */
10865
10991
  var RunnerCameraConfigSchema = object({
10866
10992
  deviceId: number(),
@@ -10911,14 +11037,11 @@ var RunnerCameraConfigSchema = object({
10911
11037
  */
10912
11038
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10913
11039
  pipelineEnabled: boolean().default(true),
10914
- /** Engine choice for video steps (runtime+backend+format). */
10915
- engine: PipelineEngineChoiceSchema.optional(),
10916
11040
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10917
11041
  steps: array(PipelineStepInputSchema).readonly().optional(),
10918
11042
  /** Audio classification branch. `enabled:false` disables, null skips. */
10919
11043
  audio: object({
10920
- engine: PipelineEngineChoiceSchema,
10921
- modelId: string(),
11044
+ modelId: string().optional(),
10922
11045
  enabled: boolean()
10923
11046
  }).nullable().optional(),
10924
11047
  /**
@@ -11005,7 +11128,11 @@ var RunnerLocalMetricsSchema = object({
11005
11128
  avgInferenceTimeMs: number(),
11006
11129
  queueDepth: number()
11007
11130
  });
11008
- 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());
11131
+ 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({
11132
+ handle: FrameHandleSchema,
11133
+ bbox: NativeCropBboxSchema,
11134
+ maxWidth: number().int().positive().optional()
11135
+ }), NativeCropResultSchema.nullable());
11009
11136
  object({
11010
11137
  detected: boolean(),
11011
11138
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12299,7 +12426,9 @@ var AddonPageDeclarationSchema$1 = object({
12299
12426
  icon: string(),
12300
12427
  path: string(),
12301
12428
  remoteName: string(),
12302
- bundle: string()
12429
+ bundle: string(),
12430
+ section: string().optional(),
12431
+ sectionLabel: string().optional()
12303
12432
  });
12304
12433
  var AddonPageInfoSchema = object({
12305
12434
  addonId: string(),
@@ -12339,7 +12468,18 @@ var AddonPageDeclarationSchema = object({
12339
12468
  * the static-file route can compute an mtime-based cache-buster URL
12340
12469
  * without a separate filesystem stat.
12341
12470
  */
12342
- bundle: string()
12471
+ bundle: string(),
12472
+ /**
12473
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12474
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12475
+ * Any OTHER string creates (or joins) a custom section rendered after
12476
+ * the built-in groups; its label comes from `sectionLabel` (first
12477
+ * declaration wins), falling back to the id. Absent → the legacy
12478
+ * "Addon Pages" group.
12479
+ */
12480
+ section: string().optional(),
12481
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12482
+ sectionLabel: string().optional()
12343
12483
  });
12344
12484
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12345
12485
  var AddonHttpRouteSchema = object({
@@ -12555,6 +12695,17 @@ var WidgetMetadataSchema = object({
12555
12695
  deviceContext: boolean().default(false),
12556
12696
  integrationContext: boolean().default(false)
12557
12697
  }),
12698
+ /**
12699
+ * Loadable BEFORE authentication. The normal widget registry listing
12700
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12701
+ * (the login page) cannot discover a widget through it. A widget that
12702
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12703
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12704
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12705
+ * than the authenticated registry, and its bundle is served by the
12706
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12707
+ */
12708
+ preAuth: boolean().optional().default(false),
12558
12709
  /** Dashboard placement HINTS (operator can override per instance). */
12559
12710
  defaultSize: WidgetSizeEnum.default("md"),
12560
12711
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12856,6 +13007,66 @@ method(object({
12856
13007
  password: string()
12857
13008
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12858
13009
  /**
13010
+ * `login-method` — collection cap through which auth addons contribute
13011
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13012
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13013
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13014
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13015
+ * procedure aggregates them for the unauthenticated login page.
13016
+ *
13017
+ * A contribution is a discriminated union on `kind`:
13018
+ *
13019
+ * - `redirect` — a declarative button. The login page renders a generic
13020
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13021
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13022
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13023
+ * login page needs NO change.
13024
+ *
13025
+ * - `widget` — a Module-Federation widget the login page mounts (via
13026
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13027
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13028
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13029
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13030
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13031
+ *
13032
+ * Every contribution carries a `stage`:
13033
+ * - `primary` — shown on the first credentials screen (OIDC /
13034
+ * magic-link buttons; a future usernameless passkey).
13035
+ * - `second-factor` — shown AFTER the password leg, gated on the
13036
+ * returned `factors` (passkey-as-2FA today).
13037
+ *
13038
+ * `mount: skip` — the cap is read server-side by the core auth router
13039
+ * (`registry.getCollection('login-method')`), never mounted as its own
13040
+ * tRPC router.
13041
+ */
13042
+ /** When a login method renders in the two-phase login flow. */
13043
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13044
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13045
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13046
+ kind: literal("redirect"),
13047
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13048
+ id: string(),
13049
+ /** Operator-facing button label. */
13050
+ label: string(),
13051
+ /** lucide-react icon name. */
13052
+ icon: string().optional(),
13053
+ /** Addon-owned HTTP route the button navigates to (GET). */
13054
+ startUrl: string(),
13055
+ stage: LoginStageEnum
13056
+ }), object({
13057
+ kind: literal("widget"),
13058
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13059
+ id: string(),
13060
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13061
+ addonId: string(),
13062
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13063
+ bundle: string(),
13064
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13065
+ remote: WidgetRemoteSchema,
13066
+ stage: LoginStageEnum
13067
+ })]);
13068
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13069
+ /**
12859
13070
  * Orchestrator-side destination metadata. The orchestrator computes
12860
13071
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12861
13072
  * (admin UI, restore flow) see one canonical key.
@@ -14984,7 +15195,17 @@ var TrackSchema = object({
14984
15195
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14985
15196
  totalDistance: number(),
14986
15197
  state: TrackStateSchema,
14987
- active: boolean()
15198
+ active: boolean(),
15199
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15200
+ * track expiry, recomputed on late label). Absent on legacy rows written
15201
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15202
+ importance: number().optional(),
15203
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15204
+ * "best" frame). Absent when the track produced no object events. */
15205
+ bestEventId: string().optional(),
15206
+ /** Tag of the importance sub-signal that dominated the score
15207
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15208
+ importanceReason: string().optional()
14988
15209
  });
14989
15210
  var BaseEventFields = {
14990
15211
  id: string(),
@@ -15049,8 +15270,18 @@ var ObjectEventSchema = object({
15049
15270
  frameHeight: number().optional(),
15050
15271
  /** MediaStore key for the crop attached to this event (if any). */
15051
15272
  mediaKey: string().optional(),
15273
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15274
+ * best-detection full frame). Resolve via the event-media data-plane
15275
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15276
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15277
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15278
+ keyFrameMediaKey: string().optional(),
15052
15279
  /** Populated by B5 (recording playback URL for this event). */
15053
- mediaUrl: string().optional()
15280
+ mediaUrl: string().optional(),
15281
+ /** The parent track's key-event importance [0,1], propagated to every object
15282
+ * event of the track (so an event row can be sorted by importance without a
15283
+ * track join). Absent on legacy rows / before the track was scored. */
15284
+ importance: number().optional()
15054
15285
  });
15055
15286
  var AudioEventSchema = object({
15056
15287
  ...BaseEventFields,
@@ -15074,7 +15305,8 @@ var MediaFileKindEnum = _enum([
15074
15305
  "fullFrame",
15075
15306
  "fullFrameBoxed",
15076
15307
  "faceCrop",
15077
- "plateCrop"
15308
+ "plateCrop",
15309
+ "keyFrame"
15078
15310
  ]);
15079
15311
  var MediaFileSchema = object({
15080
15312
  key: string(),
@@ -15095,6 +15327,32 @@ var DeviceEventQueryInput = object({
15095
15327
  projection: _enum(["full", "slim"]).optional()
15096
15328
  });
15097
15329
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15330
+ var KeyEventQueryInput = object({
15331
+ deviceId: number(),
15332
+ /** Window lower bound (track firstSeen ≥ since). */
15333
+ since: number(),
15334
+ /** Window upper bound (track firstSeen ≤ until). */
15335
+ until: number(),
15336
+ limit: number().int().min(1).max(200).default(50),
15337
+ /** Drop tracks scoring below this importance. */
15338
+ minImportance: number().min(0).max(1).optional(),
15339
+ /** Restrict to a single class (e.g. 'person'). */
15340
+ classFilter: string().optional()
15341
+ });
15342
+ var KeyEventSchema = object({
15343
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15344
+ id: string(),
15345
+ trackId: string(),
15346
+ /** Track start time (firstSeen). */
15347
+ timestamp: number(),
15348
+ className: string(),
15349
+ label: string().optional(),
15350
+ importance: number(),
15351
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15352
+ bestEventId: string(),
15353
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15354
+ windowMs: number().optional()
15355
+ });
15098
15356
  var TrackedDetectionSchema = object({
15099
15357
  trackId: string(),
15100
15358
  className: string(),
@@ -15124,7 +15382,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15124
15382
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15125
15383
  kind: "mutation",
15126
15384
  auth: "admin"
15127
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15385
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15128
15386
  deviceId: number(),
15129
15387
  since: number(),
15130
15388
  until: number(),
@@ -15169,11 +15427,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15169
15427
  timestamp: number()
15170
15428
  });
15171
15429
  var CameraPipelineConfigSchema = object({
15172
- engine: PipelineEngineChoiceSchema,
15430
+ engine: PipelineEngineChoiceSchema.optional(),
15173
15431
  steps: array(PipelineStepInputSchema).readonly(),
15174
15432
  audio: object({
15175
- engine: PipelineEngineChoiceSchema,
15176
- modelId: string(),
15433
+ engine: PipelineEngineChoiceSchema.optional(),
15434
+ modelId: string().optional(),
15177
15435
  enabled: boolean(),
15178
15436
  settings: record(string(), unknown()).readonly().optional()
15179
15437
  }).nullable().optional()
@@ -15188,7 +15446,7 @@ var PipelineTemplateSchema = object({
15188
15446
  });
15189
15447
  var AgentAddonConfigSchema = object({
15190
15448
  enabled: boolean(),
15191
- modelId: string(),
15449
+ modelId: string().optional(),
15192
15450
  settings: record(string(), unknown()).readonly()
15193
15451
  });
15194
15452
  var AgentPipelineSettingsSchema = object({
@@ -15198,12 +15456,25 @@ var AgentPipelineSettingsSchema = object({
15198
15456
  detectWeight: number().positive().optional(),
15199
15457
  /** Node is eligible to run the detection pipeline (decode + inference). */
15200
15458
  detect: boolean().optional(),
15201
- /** Node is eligible to host decoder sessions. */
15459
+ /**
15460
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15461
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15462
+ * the schema ONLY so persisted stores written before the removal still
15463
+ * parse — no code reads it and no write path emits it.
15464
+ */
15202
15465
  decode: boolean().optional(),
15203
15466
  /** Node is eligible to run audio-analyzer sessions. */
15204
15467
  audio: boolean().optional(),
15205
15468
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15206
- ingest: boolean().optional()
15469
+ ingest: boolean().optional(),
15470
+ /**
15471
+ * Operator override for the LAN host a cross-node decoder dials to reach
15472
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15473
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15474
+ * it already uses to reach the hub). Set this only when the auto-detected
15475
+ * address is wrong (multi-homed host, NAT, custom interface).
15476
+ */
15477
+ reachableHost: string().optional()
15207
15478
  });
15208
15479
  var CameraPipelineForAgentSchema = object({
15209
15480
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15251,25 +15522,6 @@ var PipelineAssignmentSchema = object({
15251
15522
  assignedAt: number()
15252
15523
  });
15253
15524
  /**
15254
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15255
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15256
- * → co-located with pipeline → capacity).
15257
- */
15258
- var DecoderAssignmentSchema = object({
15259
- deviceId: number(),
15260
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15261
- decoderNodeId: string(),
15262
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15263
- pinned: boolean(),
15264
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15265
- reason: _enum([
15266
- "manual",
15267
- "co-located",
15268
- "capacity",
15269
- "hardware-affinity"
15270
- ])
15271
- });
15272
- /**
15273
15525
  * Per-agent load summary surfaced to the load balancer + dashboards.
15274
15526
  * Aggregated from each runner's `getLocalLoad` cap call.
15275
15527
  */
@@ -15309,6 +15561,15 @@ var GlobalMetricsSchema = object({
15309
15561
  * capability providers.
15310
15562
  */
15311
15563
  var CapabilityBindingsSchema = record(string(), string());
15564
+ /**
15565
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15566
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15567
+ */
15568
+ var IngestOwnerSchema = object({
15569
+ ownerNodeId: string(),
15570
+ reachableHost: string().optional(),
15571
+ configIssue: string().optional()
15572
+ });
15312
15573
  /** Source block — always present; derives from the stream catalog. */
15313
15574
  var CameraSourceStatusSchema = object({ streams: array(object({
15314
15575
  camStreamId: string(),
@@ -15323,6 +15584,14 @@ var CameraAssignmentStatusSchema = object({
15323
15584
  detectionNodeId: string().nullable(),
15324
15585
  decoderNodeId: string().nullable(),
15325
15586
  audioNodeId: string().nullable(),
15587
+ /**
15588
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15589
+ * hosts the broker/restream) — the cluster ingest owner today
15590
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15591
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15592
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15593
+ */
15594
+ sourceNodeId: string().nullable(),
15326
15595
  pinned: object({
15327
15596
  detection: boolean(),
15328
15597
  decoder: boolean(),
@@ -15455,16 +15724,7 @@ method(object({
15455
15724
  }), object({ success: literal(true) }), {
15456
15725
  kind: "mutation",
15457
15726
  auth: "admin"
15458
- }), method(object({
15459
- deviceId: number(),
15460
- nodeId: string()
15461
- }), _void(), {
15462
- kind: "mutation",
15463
- auth: "admin"
15464
- }), method(object({ deviceId: number() }), _void(), {
15465
- kind: "mutation",
15466
- auth: "admin"
15467
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15727
+ }), method(_void(), IngestOwnerSchema), method(object({
15468
15728
  deviceId: number(),
15469
15729
  nodeId: string()
15470
15730
  }), object({ success: literal(true) }), {
@@ -15485,10 +15745,7 @@ method(object({
15485
15745
  nodeId: string(),
15486
15746
  pinned: boolean(),
15487
15747
  assignedAt: number()
15488
- }))), method(object({
15489
- deviceId: number(),
15490
- pipelineNodeId: string().optional()
15491
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15748
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15492
15749
  nodeId: string(),
15493
15750
  settings: AgentPipelineSettingsSchema
15494
15751
  })).readonly()), method(object({
@@ -15518,12 +15775,26 @@ method(object({
15518
15775
  }), method(object({
15519
15776
  agentNodeId: string(),
15520
15777
  detect: boolean().nullable().optional(),
15521
- decode: boolean().nullable().optional(),
15522
15778
  audio: boolean().nullable().optional(),
15523
15779
  ingest: boolean().nullable().optional()
15524
15780
  }), object({ success: literal(true) }), {
15525
15781
  kind: "mutation",
15526
15782
  auth: "admin"
15783
+ }), method(object({
15784
+ agentNodeId: string(),
15785
+ reachableHost: string().nullable()
15786
+ }), object({ success: literal(true) }), {
15787
+ kind: "mutation",
15788
+ auth: "admin"
15789
+ }), method(object({ agentNodeId: string() }), object({
15790
+ success: literal(true),
15791
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15792
+ effectiveModelId: string().nullable(),
15793
+ /** Number of cameras whose node-scoped overrides were cleared. */
15794
+ clearedCameraOverrides: number()
15795
+ }), {
15796
+ kind: "mutation",
15797
+ auth: "admin"
15527
15798
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15528
15799
  deviceId: number(),
15529
15800
  addonId: string(),
@@ -15568,22 +15839,131 @@ method(object({
15568
15839
  kind: "mutation",
15569
15840
  auth: "admin"
15570
15841
  });
15571
- var RegisteredStreamSchema = object({
15572
- streamId: string(),
15573
- label: string().optional(),
15574
- codec: string(),
15575
- type: _enum(["video", "audio"]),
15576
- sourceUrl: string()
15842
+ /**
15843
+ * server-management — per-NODE singleton capability for a node's ROOT
15844
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15845
+ * agents).
15846
+ *
15847
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15848
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15849
+ * version describes the node. Updates install into
15850
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15851
+ * starter (probation boot + auto-rollback to N-1).
15852
+ *
15853
+ * Providers:
15854
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15855
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15856
+ * unpinned calls.
15857
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15858
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15859
+ * `$hub.registerNode` manifest.
15860
+ *
15861
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15862
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15863
+ * SDK) routes the call to that node's provider via the standard remote
15864
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15865
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15866
+ *
15867
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15868
+ */
15869
+ /**
15870
+ * Where the running hub's code was loaded from:
15871
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15872
+ * plain resolution and runtime updates are refused.
15873
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15874
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15875
+ */
15876
+ var ServerBootModeSchema = _enum([
15877
+ "workspace",
15878
+ "baked",
15879
+ "data-root"
15880
+ ]);
15881
+ /**
15882
+ * Update lifecycle state:
15883
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15884
+ * - `pending-restart` — a version is staged and the node has NOT yet
15885
+ * restarted onto it (still running the OLD version).
15886
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15887
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15888
+ * Apply/rollback are refused in this state and the node must NOT be
15889
+ * manually restarted, or the probation boot auto-rolls-back.
15890
+ */
15891
+ var ServerUpdateStateSchema = _enum([
15892
+ "idle",
15893
+ "checking",
15894
+ "staging",
15895
+ "pending-restart",
15896
+ "awaiting-confirmation"
15897
+ ]);
15898
+ var ServerRollbackInfoSchema = object({
15899
+ /** The version that failed (or was manually rolled back). */
15900
+ fromVersion: string(),
15901
+ /** The version rolled back to; null = the baked seed. */
15902
+ toVersion: string().nullable(),
15903
+ atMs: number(),
15904
+ reason: string()
15577
15905
  });
15578
- var ExposedResourceSchema = object({
15579
- streamId: string(),
15580
- format: string(),
15581
- value: string()
15906
+ var ServerPackageStatusSchema = object({
15907
+ /** Root package name (`@camstack/server` on the hub). */
15908
+ packageName: string(),
15909
+ /** Version of the code the running process ACTUALLY loaded. */
15910
+ runningVersion: string().nullable(),
15911
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15912
+ nodeRuntimeVersion: string().nullable(),
15913
+ /** Active data-dir root version; null when booted from seed/workspace. */
15914
+ activeVersion: string().nullable(),
15915
+ /** N-1 version kept for rollback; null when no previous version exists. */
15916
+ previousVersion: string().nullable(),
15917
+ /** Version of the immutable baked seed closure (image fallback). */
15918
+ seedVersion: string().nullable(),
15919
+ /** Latest registry version from the most recent check (null = never checked). */
15920
+ latestVersion: string().nullable(),
15921
+ updateAvailable: boolean(),
15922
+ bootMode: ServerBootModeSchema,
15923
+ updateState: ServerUpdateStateSchema,
15924
+ /** Version staged + awaiting its probation boot, when one is pending. */
15925
+ pendingVersion: string().nullable(),
15926
+ /** Set when the last freshly-activated version failed its boot health-check. */
15927
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15928
+ /**
15929
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15930
+ * hub is running from the baked seed (or workspace) while installed data-dir
15931
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15932
+ */
15933
+ stateFileCorrupt: boolean(),
15934
+ lastCheckedAtMs: number().nullable()
15935
+ });
15936
+ var ServerUpdateCheckResultSchema = object({
15937
+ packageName: string(),
15938
+ runningVersion: string().nullable(),
15939
+ latestVersion: string().nullable(),
15940
+ updateAvailable: boolean(),
15941
+ checkedAtMs: number(),
15942
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15943
+ error: string().nullable()
15944
+ });
15945
+ var ServerUpdateActionResultSchema = object({
15946
+ accepted: boolean(),
15947
+ targetVersion: string().nullable(),
15948
+ /** True when a graceful restart was scheduled to apply the change. */
15949
+ restarting: boolean(),
15950
+ message: string()
15951
+ });
15952
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15953
+ kind: "mutation",
15954
+ auth: "admin"
15955
+ }), method(object({
15956
+ /** Explicit target version; omitted = latest from the registry. */
15957
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15958
+ kind: "mutation",
15959
+ auth: "admin"
15960
+ }), method(_void(), ServerUpdateActionResultSchema, {
15961
+ kind: "mutation",
15962
+ auth: "admin"
15963
+ }), method(_void(), ServerUpdateActionResultSchema, {
15964
+ kind: "mutation",
15965
+ auth: "admin"
15582
15966
  });
15583
- method(object({
15584
- deviceId: number(),
15585
- streams: array(RegisteredStreamSchema).readonly()
15586
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15587
15967
  /**
15588
15968
  * Query filter for settings-store collections.
15589
15969
  */
@@ -15736,9 +16116,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15736
16116
  /**
15737
16117
  * A single device snapshot returned as base64 JPEG/PNG.
15738
16118
  *
15739
- * Shared with the `snapshot-provider` collection cap the orchestrator
15740
- * receives the same shape from each native provider and from the
15741
- * broker-based fallback.
16119
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16120
+ * the device-native provider (onboard capture) or from the stream-broker
16121
+ * prebuffer fallback.
15742
16122
  */
15743
16123
  var SnapshotImageSchema = object({
15744
16124
  base64: string(),
@@ -15769,11 +16149,12 @@ DeviceType.Camera, method(object({
15769
16149
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15770
16150
  kind: "mutation",
15771
16151
  auth: "admin"
15772
- });
15773
- method(object({ deviceId: number() }), boolean()), method(object({
16152
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15774
16153
  deviceId: number(),
15775
- streamId: string().optional()
15776
- }), SnapshotImageSchema.nullable());
16154
+ lastCapturedAt: number().nullable(),
16155
+ cacheAgeMs: number().nullable(),
16156
+ etag: string().nullable()
16157
+ })));
15777
16158
  /**
15778
16159
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15779
16160
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16024,10 +16405,32 @@ method(_void(), array(TurnServerSchema).readonly());
16024
16405
  * b. `finishAuthentication({userId, response})` → server verifies
16025
16406
  * the assertion, bumps the credential counter, returns ok.
16026
16407
  *
16408
+ * 2b. Usernameless (discoverable-credential) authentication — the
16409
+ * passkey IS the primary factor, no password leg:
16410
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16411
+ * EMPTY `allowCredentials` (the browser offers every resident
16412
+ * passkey it holds for this RP) + `userVerification: 'required'`
16413
+ * (the passkey replaces both factors, so UV is mandatory).
16414
+ * The challenge is stored server-side, NOT bound to any user.
16415
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16416
+ * resolves the credential by the response's credential id,
16417
+ * verifies the assertion against the stored challenge + that
16418
+ * credential's public key/counter, and returns the OWNING
16419
+ * `userId` — the caller (core auth router) mints the session.
16420
+ *
16027
16421
  * 3. Management:
16028
16422
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16029
16423
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16030
16424
  *
16425
+ * 4. Second-factor preference (opt-in, default OFF):
16426
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16427
+ * demanded as a second factor after a password login ONLY when the
16428
+ * user explicitly opts in via `setSecondFactorPreference`.
16429
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16430
+ * row ⇒ `enabled: false`).
16431
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16432
+ * the providing addon beside its credentials.
16433
+ *
16031
16434
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16032
16435
  * the admin-ui composes the begin/finish round-trip and never exposes
16033
16436
  * the cap to non-admins.
@@ -16070,6 +16473,17 @@ method(object({
16070
16473
  }), object({ verified: boolean() }), {
16071
16474
  kind: "mutation",
16072
16475
  access: "view"
16476
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16477
+ kind: "mutation",
16478
+ access: "view"
16479
+ }), method(object({
16480
+ /** AuthenticationResponseJSON from the browser. */
16481
+ response: record(string(), unknown()) }), object({
16482
+ verified: boolean(),
16483
+ userId: string().nullable()
16484
+ }), {
16485
+ kind: "mutation",
16486
+ access: "view"
16073
16487
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16074
16488
  userId: string(),
16075
16489
  credentialId: string()
@@ -16077,6 +16491,13 @@ method(object({
16077
16491
  kind: "mutation",
16078
16492
  auth: "admin",
16079
16493
  access: "delete"
16494
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16495
+ userId: string(),
16496
+ enabled: boolean()
16497
+ }), object({ success: literal(true) }), {
16498
+ kind: "mutation",
16499
+ auth: "admin",
16500
+ access: "create"
16080
16501
  });
16081
16502
  /**
16082
16503
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16134,9 +16555,10 @@ method(object({
16134
16555
  auth: "admin"
16135
16556
  });
16136
16557
  /**
16137
- * Optional client-side hints sent at session creation to help the
16138
- * provider pick the best native source. All fields are optional —
16139
- * a viewer that knows nothing still gets a sane default.
16558
+ * Optional client-side hints sent at session creation to help the provider
16559
+ * pick the best native source. All fields optional — a viewer that knows
16560
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16561
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16140
16562
  */
16141
16563
  var webrtcClientHintsSchema = object({
16142
16564
  viewportWidth: number().int().positive().optional(),
@@ -16147,22 +16569,6 @@ var webrtcClientHintsSchema = object({
16147
16569
  /** Hard tier override; takes precedence over scoring when registered. */
16148
16570
  prefersTier: string().optional()
16149
16571
  }).partial();
16150
- method(object({
16151
- streamId: string(),
16152
- sdpOffer: string()
16153
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16154
- streamId: string(),
16155
- codec: string()
16156
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16157
- streamId: string(),
16158
- hints: webrtcClientHintsSchema.optional()
16159
- }), object({
16160
- sessionId: string(),
16161
- sdpOffer: string()
16162
- }), { kind: "mutation" }), method(object({
16163
- sessionId: string(),
16164
- sdpAnswer: string()
16165
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16166
16572
  /**
16167
16573
  * Discriminated target for a WebRTC session. The client sends this
16168
16574
  * structured object instead of building / parsing brokerId strings;
@@ -16893,7 +17299,17 @@ var FaceInfoSchema = object({
16893
17299
  recognizedIdentityId: string().optional(),
16894
17300
  identityName: string().optional(),
16895
17301
  assigned: boolean(),
16896
- base64: string().optional()
17302
+ base64: string().optional(),
17303
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17304
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17305
+ * legacy rows written before design B. */
17306
+ faceBbox: BoundingBoxSchema.optional(),
17307
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17308
+ * Fetch the native JPEG via the event-media data-plane
17309
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17310
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17311
+ * back to the inline `base64` face crop. */
17312
+ keyFrameMediaKey: string().optional()
16897
17313
  });
16898
17314
  var FaceFilterEnum = _enum([
16899
17315
  "unassigned",
@@ -17590,6 +18006,16 @@ var TopologyCategorySchema = object({
17590
18006
  healthy: number(),
17591
18007
  addons: array(TopologyCategoryAddonSchema).readonly()
17592
18008
  });
18009
+ /**
18010
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18011
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18012
+ * version visibility for the Server management surface. Nullable: offline
18013
+ * rows and pre-phase-2 nodes report none.
18014
+ */
18015
+ var TopologyRootPackageSchema = object({
18016
+ name: string(),
18017
+ version: string()
18018
+ });
17593
18019
  var TopologyNodeSchema = object({
17594
18020
  id: string(),
17595
18021
  name: string(),
@@ -17613,7 +18039,8 @@ var TopologyNodeSchema = object({
17613
18039
  status: string()
17614
18040
  })).readonly(),
17615
18041
  processes: array(TopologyProcessSchema).readonly(),
17616
- categories: array(TopologyCategorySchema).readonly()
18042
+ categories: array(TopologyCategorySchema).readonly(),
18043
+ rootPackage: TopologyRootPackageSchema.nullable()
17617
18044
  });
17618
18045
  var CapUsageEdgeSchema = object({
17619
18046
  callerAddonId: string(),
@@ -20413,6 +20840,12 @@ Object.freeze({
20413
20840
  addonId: null,
20414
20841
  access: "create"
20415
20842
  },
20843
+ "loginMethod.getLoginMethods": {
20844
+ capName: "login-method",
20845
+ capScope: "system",
20846
+ addonId: null,
20847
+ access: "view"
20848
+ },
20416
20849
  "mediaPlayer.next": {
20417
20850
  capName: "media-player",
20418
20851
  capScope: "device",
@@ -20995,6 +21428,12 @@ Object.freeze({
20995
21428
  addonId: null,
20996
21429
  access: "view"
20997
21430
  },
21431
+ "pipelineAnalytics.getKeyEvents": {
21432
+ capName: "pipeline-analytics",
21433
+ capScope: "device",
21434
+ addonId: null,
21435
+ access: "view"
21436
+ },
20998
21437
  "pipelineAnalytics.getMotionEvents": {
20999
21438
  capName: "pipeline-analytics",
21000
21439
  capScope: "device",
@@ -21043,23 +21482,23 @@ Object.freeze({
21043
21482
  addonId: null,
21044
21483
  access: "create"
21045
21484
  },
21046
- "pipelineExecutor.deleteModel": {
21485
+ "pipelineExecutor.clearDeviceOverrides": {
21047
21486
  capName: "pipeline-executor",
21048
21487
  capScope: "system",
21049
21488
  addonId: null,
21050
21489
  access: "delete"
21051
21490
  },
21052
- "pipelineExecutor.deleteTemplate": {
21491
+ "pipelineExecutor.deleteModel": {
21053
21492
  capName: "pipeline-executor",
21054
21493
  capScope: "system",
21055
21494
  addonId: null,
21056
21495
  access: "delete"
21057
21496
  },
21058
- "pipelineExecutor.detect": {
21497
+ "pipelineExecutor.deleteTemplate": {
21059
21498
  capName: "pipeline-executor",
21060
21499
  capScope: "system",
21061
21500
  addonId: null,
21062
- access: "view"
21501
+ access: "delete"
21063
21502
  },
21064
21503
  "pipelineExecutor.downloadModel": {
21065
21504
  capName: "pipeline-executor",
@@ -21253,13 +21692,13 @@ Object.freeze({
21253
21692
  addonId: null,
21254
21693
  access: "create"
21255
21694
  },
21256
- "pipelineOrchestrator.assignAudio": {
21257
- capName: "pipeline-orchestrator",
21695
+ "pipelineExecutor.validatePipeline": {
21696
+ capName: "pipeline-executor",
21258
21697
  capScope: "system",
21259
21698
  addonId: null,
21260
- access: "create"
21699
+ access: "view"
21261
21700
  },
21262
- "pipelineOrchestrator.assignDecoder": {
21701
+ "pipelineOrchestrator.assignAudio": {
21263
21702
  capName: "pipeline-orchestrator",
21264
21703
  capScope: "system",
21265
21704
  addonId: null,
@@ -21343,19 +21782,13 @@ Object.freeze({
21343
21782
  addonId: null,
21344
21783
  access: "view"
21345
21784
  },
21346
- "pipelineOrchestrator.getDecoderAssignment": {
21347
- capName: "pipeline-orchestrator",
21348
- capScope: "system",
21349
- addonId: null,
21350
- access: "view"
21351
- },
21352
- "pipelineOrchestrator.getDecoderAssignments": {
21785
+ "pipelineOrchestrator.getGlobalMetrics": {
21353
21786
  capName: "pipeline-orchestrator",
21354
21787
  capScope: "system",
21355
21788
  addonId: null,
21356
21789
  access: "view"
21357
21790
  },
21358
- "pipelineOrchestrator.getGlobalMetrics": {
21791
+ "pipelineOrchestrator.getIngestOwner": {
21359
21792
  capName: "pipeline-orchestrator",
21360
21793
  capScope: "system",
21361
21794
  addonId: null,
@@ -21397,6 +21830,12 @@ Object.freeze({
21397
21830
  addonId: null,
21398
21831
  access: "delete"
21399
21832
  },
21833
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21834
+ capName: "pipeline-orchestrator",
21835
+ capScope: "system",
21836
+ addonId: null,
21837
+ access: "delete"
21838
+ },
21400
21839
  "pipelineOrchestrator.resolvePipeline": {
21401
21840
  capName: "pipeline-orchestrator",
21402
21841
  capScope: "system",
@@ -21433,37 +21872,37 @@ Object.freeze({
21433
21872
  addonId: null,
21434
21873
  access: "create"
21435
21874
  },
21436
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21875
+ "pipelineOrchestrator.setAgentReachableHost": {
21437
21876
  capName: "pipeline-orchestrator",
21438
21877
  capScope: "system",
21439
21878
  addonId: null,
21440
21879
  access: "create"
21441
21880
  },
21442
- "pipelineOrchestrator.setCameraStepOverride": {
21881
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21443
21882
  capName: "pipeline-orchestrator",
21444
21883
  capScope: "system",
21445
21884
  addonId: null,
21446
21885
  access: "create"
21447
21886
  },
21448
- "pipelineOrchestrator.setCameraStepToggle": {
21887
+ "pipelineOrchestrator.setCameraStepOverride": {
21449
21888
  capName: "pipeline-orchestrator",
21450
21889
  capScope: "system",
21451
21890
  addonId: null,
21452
21891
  access: "create"
21453
21892
  },
21454
- "pipelineOrchestrator.setCapabilityBinding": {
21893
+ "pipelineOrchestrator.setCameraStepToggle": {
21455
21894
  capName: "pipeline-orchestrator",
21456
21895
  capScope: "system",
21457
21896
  addonId: null,
21458
21897
  access: "create"
21459
21898
  },
21460
- "pipelineOrchestrator.unassignAudio": {
21899
+ "pipelineOrchestrator.setCapabilityBinding": {
21461
21900
  capName: "pipeline-orchestrator",
21462
21901
  capScope: "system",
21463
21902
  addonId: null,
21464
21903
  access: "create"
21465
21904
  },
21466
- "pipelineOrchestrator.unassignDecoder": {
21905
+ "pipelineOrchestrator.unassignAudio": {
21467
21906
  capName: "pipeline-orchestrator",
21468
21907
  capScope: "system",
21469
21908
  addonId: null,
@@ -21523,6 +21962,12 @@ Object.freeze({
21523
21962
  addonId: null,
21524
21963
  access: "view"
21525
21964
  },
21965
+ "pipelineRunner.getNativeCrop": {
21966
+ capName: "pipeline-runner",
21967
+ capScope: "system",
21968
+ addonId: null,
21969
+ access: "view"
21970
+ },
21526
21971
  "pipelineRunner.reportMotion": {
21527
21972
  capName: "pipeline-runner",
21528
21973
  capScope: "system",
@@ -21763,33 +22208,45 @@ Object.freeze({
21763
22208
  addonId: null,
21764
22209
  access: "create"
21765
22210
  },
21766
- "restreamer.getExposedResources": {
21767
- capName: "restreamer",
22211
+ "scriptRunner.run": {
22212
+ capName: "script-runner",
22213
+ capScope: "device",
22214
+ addonId: null,
22215
+ access: "create"
22216
+ },
22217
+ "scriptRunner.stop": {
22218
+ capName: "script-runner",
22219
+ capScope: "device",
22220
+ addonId: null,
22221
+ access: "create"
22222
+ },
22223
+ "serverManagement.applyServerUpdate": {
22224
+ capName: "server-management",
21768
22225
  capScope: "system",
21769
22226
  addonId: null,
21770
- access: "view"
22227
+ access: "create"
21771
22228
  },
21772
- "restreamer.registerDevice": {
21773
- capName: "restreamer",
22229
+ "serverManagement.checkServerUpdate": {
22230
+ capName: "server-management",
21774
22231
  capScope: "system",
21775
22232
  addonId: null,
21776
22233
  access: "create"
21777
22234
  },
21778
- "restreamer.unregisterDevice": {
21779
- capName: "restreamer",
22235
+ "serverManagement.getServerPackageStatus": {
22236
+ capName: "server-management",
21780
22237
  capScope: "system",
21781
22238
  addonId: null,
21782
- access: "delete"
22239
+ access: "view"
21783
22240
  },
21784
- "scriptRunner.run": {
21785
- capName: "script-runner",
21786
- capScope: "device",
22241
+ "serverManagement.restartServer": {
22242
+ capName: "server-management",
22243
+ capScope: "system",
21787
22244
  addonId: null,
21788
22245
  access: "create"
21789
22246
  },
21790
- "scriptRunner.stop": {
21791
- capName: "script-runner",
21792
- capScope: "device",
22247
+ "serverManagement.rollbackServerUpdate": {
22248
+ capName: "server-management",
22249
+ capScope: "system",
21793
22250
  addonId: null,
21794
22251
  access: "create"
21795
22252
  },
@@ -21877,23 +22334,17 @@ Object.freeze({
21877
22334
  addonId: null,
21878
22335
  access: "view"
21879
22336
  },
21880
- "snapshot.invalidateCache": {
22337
+ "snapshot.getSnapshotOverview": {
21881
22338
  capName: "snapshot",
21882
22339
  capScope: "device",
21883
22340
  addonId: null,
21884
- access: "create"
21885
- },
21886
- "snapshotProvider.getSnapshot": {
21887
- capName: "snapshot-provider",
21888
- capScope: "system",
21889
- addonId: null,
21890
22341
  access: "view"
21891
22342
  },
21892
- "snapshotProvider.supportsDevice": {
21893
- capName: "snapshot-provider",
21894
- capScope: "system",
22343
+ "snapshot.invalidateCache": {
22344
+ capName: "snapshot",
22345
+ capScope: "device",
21895
22346
  addonId: null,
21896
- access: "view"
22347
+ access: "create"
21897
22348
  },
21898
22349
  "ssoBridge.signBridgeToken": {
21899
22350
  capName: "sso-bridge",
@@ -22321,30 +22772,6 @@ Object.freeze({
22321
22772
  addonId: null,
22322
22773
  access: "view"
22323
22774
  },
22324
- "streamingEngine.getStreamUrl": {
22325
- capName: "streaming-engine",
22326
- capScope: "system",
22327
- addonId: null,
22328
- access: "view"
22329
- },
22330
- "streamingEngine.listStreams": {
22331
- capName: "streaming-engine",
22332
- capScope: "system",
22333
- addonId: null,
22334
- access: "view"
22335
- },
22336
- "streamingEngine.registerStream": {
22337
- capName: "streaming-engine",
22338
- capScope: "system",
22339
- addonId: null,
22340
- access: "create"
22341
- },
22342
- "streamingEngine.unregisterStream": {
22343
- capName: "streaming-engine",
22344
- capScope: "system",
22345
- addonId: null,
22346
- access: "delete"
22347
- },
22348
22775
  "streamParams.getConfigSchema": {
22349
22776
  capName: "stream-params",
22350
22777
  capScope: "device",
@@ -22591,6 +23018,12 @@ Object.freeze({
22591
23018
  addonId: null,
22592
23019
  access: "view"
22593
23020
  },
23021
+ "userPasskeys.beginDiscoverableAuthentication": {
23022
+ capName: "user-passkeys",
23023
+ capScope: "system",
23024
+ addonId: null,
23025
+ access: "view"
23026
+ },
22594
23027
  "userPasskeys.beginRegistration": {
22595
23028
  capName: "user-passkeys",
22596
23029
  capScope: "system",
@@ -22603,12 +23036,24 @@ Object.freeze({
22603
23036
  addonId: null,
22604
23037
  access: "view"
22605
23038
  },
23039
+ "userPasskeys.finishDiscoverableAuthentication": {
23040
+ capName: "user-passkeys",
23041
+ capScope: "system",
23042
+ addonId: null,
23043
+ access: "view"
23044
+ },
22606
23045
  "userPasskeys.finishRegistration": {
22607
23046
  capName: "user-passkeys",
22608
23047
  capScope: "system",
22609
23048
  addonId: null,
22610
23049
  access: "create"
22611
23050
  },
23051
+ "userPasskeys.getSecondFactorPreference": {
23052
+ capName: "user-passkeys",
23053
+ capScope: "system",
23054
+ addonId: null,
23055
+ access: "view"
23056
+ },
22612
23057
  "userPasskeys.listPasskeys": {
22613
23058
  capName: "user-passkeys",
22614
23059
  capScope: "system",
@@ -22621,6 +23066,12 @@ Object.freeze({
22621
23066
  addonId: null,
22622
23067
  access: "delete"
22623
23068
  },
23069
+ "userPasskeys.setSecondFactorPreference": {
23070
+ capName: "user-passkeys",
23071
+ capScope: "system",
23072
+ addonId: null,
23073
+ access: "create"
23074
+ },
22624
23075
  "vacuumControl.locate": {
22625
23076
  capName: "vacuum-control",
22626
23077
  capScope: "device",
@@ -22693,6 +23144,18 @@ Object.freeze({
22693
23144
  addonId: null,
22694
23145
  access: "view"
22695
23146
  },
23147
+ "viewerUi.getStaticDir": {
23148
+ capName: "viewer-ui",
23149
+ capScope: "system",
23150
+ addonId: null,
23151
+ access: "view"
23152
+ },
23153
+ "viewerUi.getVersion": {
23154
+ capName: "viewer-ui",
23155
+ capScope: "system",
23156
+ addonId: null,
23157
+ access: "view"
23158
+ },
22696
23159
  "waterHeater.setAway": {
22697
23160
  capName: "water-heater",
22698
23161
  capScope: "device",
@@ -22711,54 +23174,6 @@ Object.freeze({
22711
23174
  addonId: null,
22712
23175
  access: "create"
22713
23176
  },
22714
- "webrtc.closeSession": {
22715
- capName: "webrtc",
22716
- capScope: "system",
22717
- addonId: null,
22718
- access: "create"
22719
- },
22720
- "webrtc.createSession": {
22721
- capName: "webrtc",
22722
- capScope: "system",
22723
- addonId: null,
22724
- access: "create"
22725
- },
22726
- "webrtc.handleAnswer": {
22727
- capName: "webrtc",
22728
- capScope: "system",
22729
- addonId: null,
22730
- access: "create"
22731
- },
22732
- "webrtc.handleOffer": {
22733
- capName: "webrtc",
22734
- capScope: "system",
22735
- addonId: null,
22736
- access: "create"
22737
- },
22738
- "webrtc.hasAdaptiveBitrate": {
22739
- capName: "webrtc",
22740
- capScope: "system",
22741
- addonId: null,
22742
- access: "view"
22743
- },
22744
- "webrtc.registerStream": {
22745
- capName: "webrtc",
22746
- capScope: "system",
22747
- addonId: null,
22748
- access: "create"
22749
- },
22750
- "webrtc.supportsStream": {
22751
- capName: "webrtc",
22752
- capScope: "system",
22753
- addonId: null,
22754
- access: "view"
22755
- },
22756
- "webrtc.unregisterStream": {
22757
- capName: "webrtc",
22758
- capScope: "system",
22759
- addonId: null,
22760
- access: "delete"
22761
- },
22762
23177
  "webrtcSession.addIceCandidate": {
22763
23178
  capName: "webrtc-session",
22764
23179
  capScope: "device",