@camstack/addon-model-studio 1.0.19 → 1.0.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.
@@ -4638,7 +4638,7 @@ function _instanceof(cls, params = {}) {
4638
4638
  return inst;
4639
4639
  }
4640
4640
  //#endregion
4641
- //#region ../types/dist/sleep-CZDdRBua.mjs
4641
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4642
4642
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4643
4643
  EventCategory["SystemBoot"] = "system.boot";
4644
4644
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4824,6 +4824,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4824
4824
  */
4825
4825
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4826
4826
  /**
4827
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4828
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4829
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4830
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4831
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4832
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4833
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4834
+ * topology change, so a dropped event self-heals on the next one (plus the
4835
+ * broker's long backstop reconcile query).
4836
+ */
4837
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4838
+ /**
4827
4839
  * Periodic snapshot of per-node pipeline-runner load
4828
4840
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4829
4841
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5347,10 +5359,6 @@ function hydrateField(field, values) {
5347
5359
  };
5348
5360
  }
5349
5361
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5350
- if (field.type === "password") return {
5351
- ...field,
5352
- value: ""
5353
- };
5354
5362
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5355
5363
  return {
5356
5364
  ...field,
@@ -6734,6 +6742,21 @@ function method(input, output, options) {
6734
6742
  timeoutMs: options?.timeoutMs
6735
6743
  };
6736
6744
  }
6745
+ /**
6746
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6747
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6748
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6749
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6750
+ */
6751
+ function systemMethod(input, output, options) {
6752
+ return {
6753
+ ...method(input, output, options),
6754
+ systemOnly: true
6755
+ };
6756
+ }
6757
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6758
+ var VersionOutputSchema$1 = object({ version: string() });
6759
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6737
6760
  var StaticDirOutputSchema = object({ staticDir: string() });
6738
6761
  var VersionOutputSchema = object({ version: string() });
6739
6762
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6903,6 +6926,36 @@ var ModelFormatsSchema = object({
6903
6926
  tflite: ModelFormatEntrySchema.optional(),
6904
6927
  pt: ModelFormatEntrySchema.optional()
6905
6928
  });
6929
+ /**
6930
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6931
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6932
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6933
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6934
+ * resolution/download/persistence; this is a presentation overlay resolved back
6935
+ * to an `id`.
6936
+ */
6937
+ var ModelVariantGroupSchema = object({
6938
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6939
+ family: string(),
6940
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6941
+ tier: string(),
6942
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6943
+ precision: _enum(["fp32", "int8"]).optional(),
6944
+ /**
6945
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6946
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6947
+ * future performance variants plug into.
6948
+ */
6949
+ optimization: _enum(["standard", "fast"]).optional(),
6950
+ /**
6951
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6952
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6953
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6954
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6955
+ * the group so the selector can offer it as a variant axis.
6956
+ */
6957
+ resolution: number().int().positive().optional()
6958
+ });
6906
6959
  var ModelCatalogEntrySchema = object({
6907
6960
  id: string(),
6908
6961
  name: string(),
@@ -6932,7 +6985,43 @@ var ModelCatalogEntrySchema = object({
6932
6985
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6933
6986
  * Downloaded into the same modelsDir alongside the model file.
6934
6987
  */
6935
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6988
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6989
+ /**
6990
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6991
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6992
+ * model list and excluded from the auto format-default pick. Set on the
6993
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6994
+ * the active lineup stays the coherent curated ladder without deleting a
6995
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6996
+ * an explicit legacy id that has a build for the node's format.
6997
+ */
6998
+ legacy: boolean().optional(),
6999
+ /**
7000
+ * Measured quality/latency metadata — populated from the benchmark addon on
7001
+ * the real node classes. Absent = not yet measured (most entries today; the
7002
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7003
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7004
+ */
7005
+ metrics: object({
7006
+ map50: number().optional(),
7007
+ p95LatencyMs: record(string(), number()).optional()
7008
+ }).optional(),
7009
+ /**
7010
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7011
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7012
+ * the retraining addon and any future commercial distribution.
7013
+ */
7014
+ license: string().optional(),
7015
+ /**
7016
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7017
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7018
+ * of a family's sizes and quantizations collapse into one grouped picker
7019
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7020
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7021
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7022
+ * is a presentation overlay resolved back to an `id`.
7023
+ */
7024
+ group: ModelVariantGroupSchema.optional()
6936
7025
  });
6937
7026
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6938
7027
  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.
@@ -8673,26 +8762,13 @@ DeviceType.Light, method(object({
8673
8762
  percentage: number().min(0).max(100),
8674
8763
  lastChangedAt: number()
8675
8764
  });
8765
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8676
8766
  var StreamFormatSchema = _enum([
8677
8767
  "webrtc",
8678
8768
  "hls",
8679
8769
  "mjpeg",
8680
8770
  "rtsp"
8681
8771
  ]);
8682
- var StreamInfoSchema = object({
8683
- streamId: string(),
8684
- format: StreamFormatSchema,
8685
- url: string().nullable(),
8686
- active: boolean()
8687
- });
8688
- method(object({
8689
- streamId: string(),
8690
- sourceUrl: string(),
8691
- codec: string().optional()
8692
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8693
- streamId: string(),
8694
- format: StreamFormatSchema
8695
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8696
8772
  var RtspRestreamEntrySchema = object({
8697
8773
  brokerId: string(),
8698
8774
  url: string(),
@@ -9357,7 +9433,7 @@ var ConsumablesStatusSchema = object({
9357
9433
  })),
9358
9434
  lastChangedAt: number()
9359
9435
  });
9360
- 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({
9436
+ Object.values(DeviceType), method(object({
9361
9437
  deviceId: number().int().nonnegative(),
9362
9438
  key: string().min(1)
9363
9439
  }), _void(), {
@@ -10272,7 +10348,7 @@ var BoundingBoxSchema = object({
10272
10348
  w: number(),
10273
10349
  h: number()
10274
10350
  });
10275
- var SpatialDetectionSchema = object({
10351
+ object({
10276
10352
  class: string(),
10277
10353
  originalClass: string(),
10278
10354
  score: number(),
@@ -10407,7 +10483,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10407
10483
  enabled: boolean(),
10408
10484
  modelId: string(),
10409
10485
  children: array(PipelineDefaultStepSchema).readonly(),
10410
- engine: PipelineEngineChoiceSchema.optional(),
10411
10486
  group: string().optional(),
10412
10487
  settings: record(string(), unknown()).optional()
10413
10488
  }));
@@ -10432,7 +10507,9 @@ var PipelineModelOptionSchema = object({
10432
10507
  formats: record(string(), object({
10433
10508
  downloaded: boolean(),
10434
10509
  sizeMB: number()
10435
- }))
10510
+ })),
10511
+ group: ModelVariantGroupSchema.optional(),
10512
+ legacy: boolean().optional()
10436
10513
  });
10437
10514
  var ConfigFieldBridge = custom();
10438
10515
  var PipelineAddonSchemaSchema = object({
@@ -10446,6 +10523,7 @@ var PipelineAddonSchemaSchema = object({
10446
10523
  defaultModelId: string(),
10447
10524
  defaultModelIdByFormat: record(string(), string()).optional(),
10448
10525
  enabledByDefault: boolean().optional(),
10526
+ backfillIntoExistingOverrides: boolean().optional(),
10449
10527
  defaultConfidence: number(),
10450
10528
  group: string().optional(),
10451
10529
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10462,11 +10540,6 @@ var PipelineSchemaSchema = object({
10462
10540
  selectedEngine: PipelineEngineChoiceSchema,
10463
10541
  slots: array(PipelineSlotSchemaSchema).readonly()
10464
10542
  });
10465
- var DetectorOutputSchema = object({
10466
- detections: array(SpatialDetectionSchema).readonly(),
10467
- inferenceMs: number(),
10468
- modelId: string()
10469
- });
10470
10543
  var EngineProvisioningSchema = object({
10471
10544
  runtimeId: _enum([
10472
10545
  "onnx",
@@ -10483,15 +10556,42 @@ var EngineProvisioningSchema = object({
10483
10556
  ]),
10484
10557
  progress: number().optional(),
10485
10558
  error: string().optional(),
10486
- nextRetryAt: number().optional()
10559
+ nextRetryAt: number().optional(),
10560
+ /**
10561
+ * Gate A (config-correctness gate at engine change): human-readable
10562
+ * config issues surfaced EAGERLY when the node's engine changes — model
10563
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10564
+ * has a <format> build"). Additive/optional: informational only, never
10565
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10566
+ * Absent/empty when the node-default tree resolves cleanly.
10567
+ */
10568
+ configIssues: array(string()).optional()
10487
10569
  });
10488
10570
  var PipelineStepInputSchema = lazy(() => object({
10489
10571
  addonId: string(),
10490
- modelId: string(),
10572
+ modelId: string().optional(),
10491
10573
  enabled: boolean().default(true),
10492
10574
  children: array(PipelineStepInputSchema).optional(),
10493
10575
  settings: record(string(), unknown()).optional()
10494
10576
  }));
10577
+ var ModelSubstitutionSchema = object({
10578
+ addonId: string(),
10579
+ chosen: string(),
10580
+ running: string(),
10581
+ format: string()
10582
+ });
10583
+ var PipelineValidationIssueSchema = object({
10584
+ addonId: string(),
10585
+ kind: _enum(["unknown-addon", "no-format-build"]),
10586
+ detail: string()
10587
+ });
10588
+ var PipelineValidationResultSchema = object({
10589
+ ok: boolean(),
10590
+ issues: array(PipelineValidationIssueSchema).readonly(),
10591
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10592
+ /** The node's `currentEngine.format` this validation ran against. */
10593
+ format: string()
10594
+ });
10495
10595
  var ReferenceImageEntrySchema = object({
10496
10596
  filename: string(),
10497
10597
  stepIds: array(string()).readonly().optional()
@@ -10562,7 +10662,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10562
10662
  })) }), object({ success: literal(true) }), {
10563
10663
  kind: "mutation",
10564
10664
  auth: "admin"
10565
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10665
+ }), method(object({ nodeId: string() }), object({
10666
+ success: literal(true),
10667
+ clearedDevices: number()
10668
+ }), {
10669
+ kind: "mutation",
10670
+ auth: "admin"
10671
+ }), 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({
10566
10672
  name: string(),
10567
10673
  steps: array(PipelineTemplateStepSchema).readonly(),
10568
10674
  engine: PipelineEngineChoiceSchema
@@ -10579,10 +10685,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10579
10685
  modelId: string(),
10580
10686
  format: ModelFormatSchema$1
10581
10687
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10582
- addonId: string(),
10583
- frame: FrameInputSchema,
10584
- config: record(string(), unknown()).optional()
10585
- }), DetectorOutputSchema), method(object({
10586
10688
  engine: PipelineEngineChoiceSchema.optional(),
10587
10689
  steps: array(PipelineStepInputSchema).min(1),
10588
10690
  frame: FrameInputSchema.optional(),
@@ -10728,6 +10830,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10728
10830
  auth: "admin"
10729
10831
  }), object({ zones: array(ZoneSchema).readonly() });
10730
10832
  /**
10833
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10834
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10835
+ * so the caller supplies only the detection-res bbox divided by the detection
10836
+ * dims — no native resolution to plumb.
10837
+ */
10838
+ var NativeCropBboxSchema = object({
10839
+ x: number(),
10840
+ y: number(),
10841
+ w: number(),
10842
+ h: number()
10843
+ });
10844
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10845
+ var NativeCropResultSchema = object({
10846
+ /** Packed rgb (24-bit) pixels of the crop. */
10847
+ bytes: _instanceof(Uint8Array),
10848
+ width: number().int().positive(),
10849
+ height: number().int().positive()
10850
+ });
10851
+ /**
10731
10852
  * Per-camera tunable ranges + defaults. Single source of truth used
10732
10853
  * by both the Zod data schema (validation + default fallback) and
10733
10854
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10822,6 +10943,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10822
10943
  kind: literal("remote-restream"),
10823
10944
  /** The camera's source-owner node (slice 1: always the hub). */
10824
10945
  ownerNodeId: string(),
10946
+ /**
10947
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10948
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10949
+ * dials THIS host for the owner's restream, in preference to the
10950
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10951
+ */
10952
+ ownerReachableHost: string().optional(),
10825
10953
  /** Operator override for the owner host the runner dials. */
10826
10954
  hubHostnameOverride: string().optional()
10827
10955
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10830,13 +10958,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10830
10958
  * specific runner instance via `attachCamera`. Carries everything the
10831
10959
  * runner needs to subscribe to the local broker and execute inference.
10832
10960
  *
10833
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10834
- * optional `audio`) travels with the attach payload. The runner keeps it
10835
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10836
- * restart the orchestrator re-sends the latest snapshot.
10837
- *
10838
- * `engine`/`steps`/`audio` are optional during the additive migration
10839
- * window; once orchestrator + UI are migrated they become required.
10961
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10962
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10963
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10964
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10965
+ * node-local, resolved by the executing runner at dispatch time.
10840
10966
  */
10841
10967
  var RunnerCameraConfigSchema = object({
10842
10968
  deviceId: number(),
@@ -10887,14 +11013,11 @@ var RunnerCameraConfigSchema = object({
10887
11013
  */
10888
11014
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10889
11015
  pipelineEnabled: boolean().default(true),
10890
- /** Engine choice for video steps (runtime+backend+format). */
10891
- engine: PipelineEngineChoiceSchema.optional(),
10892
11016
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10893
11017
  steps: array(PipelineStepInputSchema).readonly().optional(),
10894
11018
  /** Audio classification branch. `enabled:false` disables, null skips. */
10895
11019
  audio: object({
10896
- engine: PipelineEngineChoiceSchema,
10897
- modelId: string(),
11020
+ modelId: string().optional(),
10898
11021
  enabled: boolean()
10899
11022
  }).nullable().optional(),
10900
11023
  /**
@@ -10981,7 +11104,11 @@ var RunnerLocalMetricsSchema = object({
10981
11104
  avgInferenceTimeMs: number(),
10982
11105
  queueDepth: number()
10983
11106
  });
10984
- 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());
11107
+ 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({
11108
+ handle: FrameHandleSchema,
11109
+ bbox: NativeCropBboxSchema,
11110
+ maxWidth: number().int().positive().optional()
11111
+ }), NativeCropResultSchema.nullable());
10985
11112
  object({
10986
11113
  detected: boolean(),
10987
11114
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12275,7 +12402,9 @@ var AddonPageDeclarationSchema$1 = object({
12275
12402
  icon: string(),
12276
12403
  path: string(),
12277
12404
  remoteName: string(),
12278
- bundle: string()
12405
+ bundle: string(),
12406
+ section: string().optional(),
12407
+ sectionLabel: string().optional()
12279
12408
  });
12280
12409
  var AddonPageInfoSchema = object({
12281
12410
  addonId: string(),
@@ -12315,7 +12444,18 @@ var AddonPageDeclarationSchema = object({
12315
12444
  * the static-file route can compute an mtime-based cache-buster URL
12316
12445
  * without a separate filesystem stat.
12317
12446
  */
12318
- bundle: string()
12447
+ bundle: string(),
12448
+ /**
12449
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12450
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12451
+ * Any OTHER string creates (or joins) a custom section rendered after
12452
+ * the built-in groups; its label comes from `sectionLabel` (first
12453
+ * declaration wins), falling back to the id. Absent → the legacy
12454
+ * "Addon Pages" group.
12455
+ */
12456
+ section: string().optional(),
12457
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12458
+ sectionLabel: string().optional()
12319
12459
  });
12320
12460
  var addonPagesSourceCapability = {
12321
12461
  name: "addon-pages-source",
@@ -12537,6 +12677,17 @@ var WidgetMetadataSchema = object({
12537
12677
  deviceContext: boolean().default(false),
12538
12678
  integrationContext: boolean().default(false)
12539
12679
  }),
12680
+ /**
12681
+ * Loadable BEFORE authentication. The normal widget registry listing
12682
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12683
+ * (the login page) cannot discover a widget through it. A widget that
12684
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12685
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12686
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12687
+ * than the authenticated registry, and its bundle is served by the
12688
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12689
+ */
12690
+ preAuth: boolean().optional().default(false),
12540
12691
  /** Dashboard placement HINTS (operator can override per instance). */
12541
12692
  defaultSize: WidgetSizeEnum.default("md"),
12542
12693
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12838,6 +12989,66 @@ method(object({
12838
12989
  password: string()
12839
12990
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12840
12991
  /**
12992
+ * `login-method` — collection cap through which auth addons contribute
12993
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12994
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12995
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12996
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12997
+ * procedure aggregates them for the unauthenticated login page.
12998
+ *
12999
+ * A contribution is a discriminated union on `kind`:
13000
+ *
13001
+ * - `redirect` — a declarative button. The login page renders a generic
13002
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13003
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13004
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13005
+ * login page needs NO change.
13006
+ *
13007
+ * - `widget` — a Module-Federation widget the login page mounts (via
13008
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13009
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13010
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13011
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13012
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13013
+ *
13014
+ * Every contribution carries a `stage`:
13015
+ * - `primary` — shown on the first credentials screen (OIDC /
13016
+ * magic-link buttons; a future usernameless passkey).
13017
+ * - `second-factor` — shown AFTER the password leg, gated on the
13018
+ * returned `factors` (passkey-as-2FA today).
13019
+ *
13020
+ * `mount: skip` — the cap is read server-side by the core auth router
13021
+ * (`registry.getCollection('login-method')`), never mounted as its own
13022
+ * tRPC router.
13023
+ */
13024
+ /** When a login method renders in the two-phase login flow. */
13025
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13026
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13027
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13028
+ kind: literal("redirect"),
13029
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13030
+ id: string(),
13031
+ /** Operator-facing button label. */
13032
+ label: string(),
13033
+ /** lucide-react icon name. */
13034
+ icon: string().optional(),
13035
+ /** Addon-owned HTTP route the button navigates to (GET). */
13036
+ startUrl: string(),
13037
+ stage: LoginStageEnum
13038
+ }), object({
13039
+ kind: literal("widget"),
13040
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13041
+ id: string(),
13042
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13043
+ addonId: string(),
13044
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13045
+ bundle: string(),
13046
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13047
+ remote: WidgetRemoteSchema,
13048
+ stage: LoginStageEnum
13049
+ })]);
13050
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13051
+ /**
12841
13052
  * Orchestrator-side destination metadata. The orchestrator computes
12842
13053
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12843
13054
  * (admin UI, restore flow) see one canonical key.
@@ -14974,7 +15185,17 @@ var TrackSchema = object({
14974
15185
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14975
15186
  totalDistance: number(),
14976
15187
  state: TrackStateSchema,
14977
- active: boolean()
15188
+ active: boolean(),
15189
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15190
+ * track expiry, recomputed on late label). Absent on legacy rows written
15191
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15192
+ importance: number().optional(),
15193
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15194
+ * "best" frame). Absent when the track produced no object events. */
15195
+ bestEventId: string().optional(),
15196
+ /** Tag of the importance sub-signal that dominated the score
15197
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15198
+ importanceReason: string().optional()
14978
15199
  });
14979
15200
  var BaseEventFields = {
14980
15201
  id: string(),
@@ -15039,8 +15260,18 @@ var ObjectEventSchema = object({
15039
15260
  frameHeight: number().optional(),
15040
15261
  /** MediaStore key for the crop attached to this event (if any). */
15041
15262
  mediaKey: string().optional(),
15263
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15264
+ * best-detection full frame). Resolve via the event-media data-plane
15265
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15266
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15267
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15268
+ keyFrameMediaKey: string().optional(),
15042
15269
  /** Populated by B5 (recording playback URL for this event). */
15043
- mediaUrl: string().optional()
15270
+ mediaUrl: string().optional(),
15271
+ /** The parent track's key-event importance [0,1], propagated to every object
15272
+ * event of the track (so an event row can be sorted by importance without a
15273
+ * track join). Absent on legacy rows / before the track was scored. */
15274
+ importance: number().optional()
15044
15275
  });
15045
15276
  var AudioEventSchema = object({
15046
15277
  ...BaseEventFields,
@@ -15064,7 +15295,8 @@ var MediaFileKindEnum = _enum([
15064
15295
  "fullFrame",
15065
15296
  "fullFrameBoxed",
15066
15297
  "faceCrop",
15067
- "plateCrop"
15298
+ "plateCrop",
15299
+ "keyFrame"
15068
15300
  ]);
15069
15301
  var MediaFileSchema = object({
15070
15302
  key: string(),
@@ -15085,6 +15317,32 @@ var DeviceEventQueryInput = object({
15085
15317
  projection: _enum(["full", "slim"]).optional()
15086
15318
  });
15087
15319
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15320
+ var KeyEventQueryInput = object({
15321
+ deviceId: number(),
15322
+ /** Window lower bound (track firstSeen ≥ since). */
15323
+ since: number(),
15324
+ /** Window upper bound (track firstSeen ≤ until). */
15325
+ until: number(),
15326
+ limit: number().int().min(1).max(200).default(50),
15327
+ /** Drop tracks scoring below this importance. */
15328
+ minImportance: number().min(0).max(1).optional(),
15329
+ /** Restrict to a single class (e.g. 'person'). */
15330
+ classFilter: string().optional()
15331
+ });
15332
+ var KeyEventSchema = object({
15333
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15334
+ id: string(),
15335
+ trackId: string(),
15336
+ /** Track start time (firstSeen). */
15337
+ timestamp: number(),
15338
+ className: string(),
15339
+ label: string().optional(),
15340
+ importance: number(),
15341
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15342
+ bestEventId: string(),
15343
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15344
+ windowMs: number().optional()
15345
+ });
15088
15346
  var TrackedDetectionSchema = object({
15089
15347
  trackId: string(),
15090
15348
  className: string(),
@@ -15114,7 +15372,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15114
15372
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15115
15373
  kind: "mutation",
15116
15374
  auth: "admin"
15117
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15375
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15118
15376
  deviceId: number(),
15119
15377
  since: number(),
15120
15378
  until: number(),
@@ -15159,11 +15417,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15159
15417
  timestamp: number()
15160
15418
  });
15161
15419
  var CameraPipelineConfigSchema = object({
15162
- engine: PipelineEngineChoiceSchema,
15420
+ engine: PipelineEngineChoiceSchema.optional(),
15163
15421
  steps: array(PipelineStepInputSchema).readonly(),
15164
15422
  audio: object({
15165
- engine: PipelineEngineChoiceSchema,
15166
- modelId: string(),
15423
+ engine: PipelineEngineChoiceSchema.optional(),
15424
+ modelId: string().optional(),
15167
15425
  enabled: boolean(),
15168
15426
  settings: record(string(), unknown()).readonly().optional()
15169
15427
  }).nullable().optional()
@@ -15178,7 +15436,7 @@ var PipelineTemplateSchema = object({
15178
15436
  });
15179
15437
  var AgentAddonConfigSchema = object({
15180
15438
  enabled: boolean(),
15181
- modelId: string(),
15439
+ modelId: string().optional(),
15182
15440
  settings: record(string(), unknown()).readonly()
15183
15441
  });
15184
15442
  var AgentPipelineSettingsSchema = object({
@@ -15188,12 +15446,25 @@ var AgentPipelineSettingsSchema = object({
15188
15446
  detectWeight: number().positive().optional(),
15189
15447
  /** Node is eligible to run the detection pipeline (decode + inference). */
15190
15448
  detect: boolean().optional(),
15191
- /** Node is eligible to host decoder sessions. */
15449
+ /**
15450
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15451
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15452
+ * the schema ONLY so persisted stores written before the removal still
15453
+ * parse — no code reads it and no write path emits it.
15454
+ */
15192
15455
  decode: boolean().optional(),
15193
15456
  /** Node is eligible to run audio-analyzer sessions. */
15194
15457
  audio: boolean().optional(),
15195
15458
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15196
- ingest: boolean().optional()
15459
+ ingest: boolean().optional(),
15460
+ /**
15461
+ * Operator override for the LAN host a cross-node decoder dials to reach
15462
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15463
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15464
+ * it already uses to reach the hub). Set this only when the auto-detected
15465
+ * address is wrong (multi-homed host, NAT, custom interface).
15466
+ */
15467
+ reachableHost: string().optional()
15197
15468
  });
15198
15469
  var CameraPipelineForAgentSchema = object({
15199
15470
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15241,25 +15512,6 @@ var PipelineAssignmentSchema = object({
15241
15512
  assignedAt: number()
15242
15513
  });
15243
15514
  /**
15244
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15245
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15246
- * → co-located with pipeline → capacity).
15247
- */
15248
- var DecoderAssignmentSchema = object({
15249
- deviceId: number(),
15250
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15251
- decoderNodeId: string(),
15252
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15253
- pinned: boolean(),
15254
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15255
- reason: _enum([
15256
- "manual",
15257
- "co-located",
15258
- "capacity",
15259
- "hardware-affinity"
15260
- ])
15261
- });
15262
- /**
15263
15515
  * Per-agent load summary surfaced to the load balancer + dashboards.
15264
15516
  * Aggregated from each runner's `getLocalLoad` cap call.
15265
15517
  */
@@ -15299,6 +15551,15 @@ var GlobalMetricsSchema = object({
15299
15551
  * capability providers.
15300
15552
  */
15301
15553
  var CapabilityBindingsSchema = record(string(), string());
15554
+ /**
15555
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15556
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15557
+ */
15558
+ var IngestOwnerSchema = object({
15559
+ ownerNodeId: string(),
15560
+ reachableHost: string().optional(),
15561
+ configIssue: string().optional()
15562
+ });
15302
15563
  /** Source block — always present; derives from the stream catalog. */
15303
15564
  var CameraSourceStatusSchema = object({ streams: array(object({
15304
15565
  camStreamId: string(),
@@ -15313,6 +15574,14 @@ var CameraAssignmentStatusSchema = object({
15313
15574
  detectionNodeId: string().nullable(),
15314
15575
  decoderNodeId: string().nullable(),
15315
15576
  audioNodeId: string().nullable(),
15577
+ /**
15578
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15579
+ * hosts the broker/restream) — the cluster ingest owner today
15580
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15581
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15582
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15583
+ */
15584
+ sourceNodeId: string().nullable(),
15316
15585
  pinned: object({
15317
15586
  detection: boolean(),
15318
15587
  decoder: boolean(),
@@ -15445,16 +15714,7 @@ method(object({
15445
15714
  }), object({ success: literal(true) }), {
15446
15715
  kind: "mutation",
15447
15716
  auth: "admin"
15448
- }), method(object({
15449
- deviceId: number(),
15450
- nodeId: string()
15451
- }), _void(), {
15452
- kind: "mutation",
15453
- auth: "admin"
15454
- }), method(object({ deviceId: number() }), _void(), {
15455
- kind: "mutation",
15456
- auth: "admin"
15457
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15717
+ }), method(_void(), IngestOwnerSchema), method(object({
15458
15718
  deviceId: number(),
15459
15719
  nodeId: string()
15460
15720
  }), object({ success: literal(true) }), {
@@ -15475,10 +15735,7 @@ method(object({
15475
15735
  nodeId: string(),
15476
15736
  pinned: boolean(),
15477
15737
  assignedAt: number()
15478
- }))), method(object({
15479
- deviceId: number(),
15480
- pipelineNodeId: string().optional()
15481
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15738
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15482
15739
  nodeId: string(),
15483
15740
  settings: AgentPipelineSettingsSchema
15484
15741
  })).readonly()), method(object({
@@ -15508,12 +15765,26 @@ method(object({
15508
15765
  }), method(object({
15509
15766
  agentNodeId: string(),
15510
15767
  detect: boolean().nullable().optional(),
15511
- decode: boolean().nullable().optional(),
15512
15768
  audio: boolean().nullable().optional(),
15513
15769
  ingest: boolean().nullable().optional()
15514
15770
  }), object({ success: literal(true) }), {
15515
15771
  kind: "mutation",
15516
15772
  auth: "admin"
15773
+ }), method(object({
15774
+ agentNodeId: string(),
15775
+ reachableHost: string().nullable()
15776
+ }), object({ success: literal(true) }), {
15777
+ kind: "mutation",
15778
+ auth: "admin"
15779
+ }), method(object({ agentNodeId: string() }), object({
15780
+ success: literal(true),
15781
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15782
+ effectiveModelId: string().nullable(),
15783
+ /** Number of cameras whose node-scoped overrides were cleared. */
15784
+ clearedCameraOverrides: number()
15785
+ }), {
15786
+ kind: "mutation",
15787
+ auth: "admin"
15517
15788
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15518
15789
  deviceId: number(),
15519
15790
  addonId: string(),
@@ -15558,22 +15829,131 @@ method(object({
15558
15829
  kind: "mutation",
15559
15830
  auth: "admin"
15560
15831
  });
15561
- var RegisteredStreamSchema = object({
15562
- streamId: string(),
15563
- label: string().optional(),
15564
- codec: string(),
15565
- type: _enum(["video", "audio"]),
15566
- sourceUrl: string()
15832
+ /**
15833
+ * server-management — per-NODE singleton capability for a node's ROOT
15834
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15835
+ * agents).
15836
+ *
15837
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15838
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15839
+ * version describes the node. Updates install into
15840
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15841
+ * starter (probation boot + auto-rollback to N-1).
15842
+ *
15843
+ * Providers:
15844
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15845
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15846
+ * unpinned calls.
15847
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15848
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15849
+ * `$hub.registerNode` manifest.
15850
+ *
15851
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15852
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15853
+ * SDK) routes the call to that node's provider via the standard remote
15854
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15855
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15856
+ *
15857
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15858
+ */
15859
+ /**
15860
+ * Where the running hub's code was loaded from:
15861
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15862
+ * plain resolution and runtime updates are refused.
15863
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15864
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15865
+ */
15866
+ var ServerBootModeSchema = _enum([
15867
+ "workspace",
15868
+ "baked",
15869
+ "data-root"
15870
+ ]);
15871
+ /**
15872
+ * Update lifecycle state:
15873
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15874
+ * - `pending-restart` — a version is staged and the node has NOT yet
15875
+ * restarted onto it (still running the OLD version).
15876
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15877
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15878
+ * Apply/rollback are refused in this state and the node must NOT be
15879
+ * manually restarted, or the probation boot auto-rolls-back.
15880
+ */
15881
+ var ServerUpdateStateSchema = _enum([
15882
+ "idle",
15883
+ "checking",
15884
+ "staging",
15885
+ "pending-restart",
15886
+ "awaiting-confirmation"
15887
+ ]);
15888
+ var ServerRollbackInfoSchema = object({
15889
+ /** The version that failed (or was manually rolled back). */
15890
+ fromVersion: string(),
15891
+ /** The version rolled back to; null = the baked seed. */
15892
+ toVersion: string().nullable(),
15893
+ atMs: number(),
15894
+ reason: string()
15567
15895
  });
15568
- var ExposedResourceSchema = object({
15569
- streamId: string(),
15570
- format: string(),
15571
- value: string()
15896
+ var ServerPackageStatusSchema = object({
15897
+ /** Root package name (`@camstack/server` on the hub). */
15898
+ packageName: string(),
15899
+ /** Version of the code the running process ACTUALLY loaded. */
15900
+ runningVersion: string().nullable(),
15901
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15902
+ nodeRuntimeVersion: string().nullable(),
15903
+ /** Active data-dir root version; null when booted from seed/workspace. */
15904
+ activeVersion: string().nullable(),
15905
+ /** N-1 version kept for rollback; null when no previous version exists. */
15906
+ previousVersion: string().nullable(),
15907
+ /** Version of the immutable baked seed closure (image fallback). */
15908
+ seedVersion: string().nullable(),
15909
+ /** Latest registry version from the most recent check (null = never checked). */
15910
+ latestVersion: string().nullable(),
15911
+ updateAvailable: boolean(),
15912
+ bootMode: ServerBootModeSchema,
15913
+ updateState: ServerUpdateStateSchema,
15914
+ /** Version staged + awaiting its probation boot, when one is pending. */
15915
+ pendingVersion: string().nullable(),
15916
+ /** Set when the last freshly-activated version failed its boot health-check. */
15917
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15918
+ /**
15919
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15920
+ * hub is running from the baked seed (or workspace) while installed data-dir
15921
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15922
+ */
15923
+ stateFileCorrupt: boolean(),
15924
+ lastCheckedAtMs: number().nullable()
15925
+ });
15926
+ var ServerUpdateCheckResultSchema = object({
15927
+ packageName: string(),
15928
+ runningVersion: string().nullable(),
15929
+ latestVersion: string().nullable(),
15930
+ updateAvailable: boolean(),
15931
+ checkedAtMs: number(),
15932
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15933
+ error: string().nullable()
15934
+ });
15935
+ var ServerUpdateActionResultSchema = object({
15936
+ accepted: boolean(),
15937
+ targetVersion: string().nullable(),
15938
+ /** True when a graceful restart was scheduled to apply the change. */
15939
+ restarting: boolean(),
15940
+ message: string()
15941
+ });
15942
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15943
+ kind: "mutation",
15944
+ auth: "admin"
15945
+ }), method(object({
15946
+ /** Explicit target version; omitted = latest from the registry. */
15947
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15948
+ kind: "mutation",
15949
+ auth: "admin"
15950
+ }), method(_void(), ServerUpdateActionResultSchema, {
15951
+ kind: "mutation",
15952
+ auth: "admin"
15953
+ }), method(_void(), ServerUpdateActionResultSchema, {
15954
+ kind: "mutation",
15955
+ auth: "admin"
15572
15956
  });
15573
- method(object({
15574
- deviceId: number(),
15575
- streams: array(RegisteredStreamSchema).readonly()
15576
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15577
15957
  /**
15578
15958
  * Query filter for settings-store collections.
15579
15959
  */
@@ -15726,9 +16106,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15726
16106
  /**
15727
16107
  * A single device snapshot returned as base64 JPEG/PNG.
15728
16108
  *
15729
- * Shared with the `snapshot-provider` collection cap the orchestrator
15730
- * receives the same shape from each native provider and from the
15731
- * broker-based fallback.
16109
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16110
+ * the device-native provider (onboard capture) or from the stream-broker
16111
+ * prebuffer fallback.
15732
16112
  */
15733
16113
  var SnapshotImageSchema = object({
15734
16114
  base64: string(),
@@ -15759,11 +16139,12 @@ DeviceType.Camera, method(object({
15759
16139
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15760
16140
  kind: "mutation",
15761
16141
  auth: "admin"
15762
- });
15763
- method(object({ deviceId: number() }), boolean()), method(object({
16142
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15764
16143
  deviceId: number(),
15765
- streamId: string().optional()
15766
- }), SnapshotImageSchema.nullable());
16144
+ lastCapturedAt: number().nullable(),
16145
+ cacheAgeMs: number().nullable(),
16146
+ etag: string().nullable()
16147
+ })));
15767
16148
  /**
15768
16149
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15769
16150
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16014,10 +16395,32 @@ method(_void(), array(TurnServerSchema).readonly());
16014
16395
  * b. `finishAuthentication({userId, response})` → server verifies
16015
16396
  * the assertion, bumps the credential counter, returns ok.
16016
16397
  *
16398
+ * 2b. Usernameless (discoverable-credential) authentication — the
16399
+ * passkey IS the primary factor, no password leg:
16400
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16401
+ * EMPTY `allowCredentials` (the browser offers every resident
16402
+ * passkey it holds for this RP) + `userVerification: 'required'`
16403
+ * (the passkey replaces both factors, so UV is mandatory).
16404
+ * The challenge is stored server-side, NOT bound to any user.
16405
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16406
+ * resolves the credential by the response's credential id,
16407
+ * verifies the assertion against the stored challenge + that
16408
+ * credential's public key/counter, and returns the OWNING
16409
+ * `userId` — the caller (core auth router) mints the session.
16410
+ *
16017
16411
  * 3. Management:
16018
16412
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16019
16413
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16020
16414
  *
16415
+ * 4. Second-factor preference (opt-in, default OFF):
16416
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16417
+ * demanded as a second factor after a password login ONLY when the
16418
+ * user explicitly opts in via `setSecondFactorPreference`.
16419
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16420
+ * row ⇒ `enabled: false`).
16421
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16422
+ * the providing addon beside its credentials.
16423
+ *
16021
16424
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16022
16425
  * the admin-ui composes the begin/finish round-trip and never exposes
16023
16426
  * the cap to non-admins.
@@ -16060,6 +16463,17 @@ method(object({
16060
16463
  }), object({ verified: boolean() }), {
16061
16464
  kind: "mutation",
16062
16465
  access: "view"
16466
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16467
+ kind: "mutation",
16468
+ access: "view"
16469
+ }), method(object({
16470
+ /** AuthenticationResponseJSON from the browser. */
16471
+ response: record(string(), unknown()) }), object({
16472
+ verified: boolean(),
16473
+ userId: string().nullable()
16474
+ }), {
16475
+ kind: "mutation",
16476
+ access: "view"
16063
16477
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16064
16478
  userId: string(),
16065
16479
  credentialId: string()
@@ -16067,6 +16481,13 @@ method(object({
16067
16481
  kind: "mutation",
16068
16482
  auth: "admin",
16069
16483
  access: "delete"
16484
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16485
+ userId: string(),
16486
+ enabled: boolean()
16487
+ }), object({ success: literal(true) }), {
16488
+ kind: "mutation",
16489
+ auth: "admin",
16490
+ access: "create"
16070
16491
  });
16071
16492
  /**
16072
16493
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16124,9 +16545,10 @@ method(object({
16124
16545
  auth: "admin"
16125
16546
  });
16126
16547
  /**
16127
- * Optional client-side hints sent at session creation to help the
16128
- * provider pick the best native source. All fields are optional —
16129
- * a viewer that knows nothing still gets a sane default.
16548
+ * Optional client-side hints sent at session creation to help the provider
16549
+ * pick the best native source. All fields optional — a viewer that knows
16550
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16551
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16130
16552
  */
16131
16553
  var webrtcClientHintsSchema = object({
16132
16554
  viewportWidth: number().int().positive().optional(),
@@ -16137,22 +16559,6 @@ var webrtcClientHintsSchema = object({
16137
16559
  /** Hard tier override; takes precedence over scoring when registered. */
16138
16560
  prefersTier: string().optional()
16139
16561
  }).partial();
16140
- method(object({
16141
- streamId: string(),
16142
- sdpOffer: string()
16143
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16144
- streamId: string(),
16145
- codec: string()
16146
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16147
- streamId: string(),
16148
- hints: webrtcClientHintsSchema.optional()
16149
- }), object({
16150
- sessionId: string(),
16151
- sdpOffer: string()
16152
- }), { kind: "mutation" }), method(object({
16153
- sessionId: string(),
16154
- sdpAnswer: string()
16155
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16156
16562
  /**
16157
16563
  * Discriminated target for a WebRTC session. The client sends this
16158
16564
  * structured object instead of building / parsing brokerId strings;
@@ -16883,7 +17289,17 @@ var FaceInfoSchema = object({
16883
17289
  recognizedIdentityId: string().optional(),
16884
17290
  identityName: string().optional(),
16885
17291
  assigned: boolean(),
16886
- base64: string().optional()
17292
+ base64: string().optional(),
17293
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17294
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17295
+ * legacy rows written before design B. */
17296
+ faceBbox: BoundingBoxSchema.optional(),
17297
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17298
+ * Fetch the native JPEG via the event-media data-plane
17299
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17300
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17301
+ * back to the inline `base64` face crop. */
17302
+ keyFrameMediaKey: string().optional()
16887
17303
  });
16888
17304
  var FaceFilterEnum = _enum([
16889
17305
  "unassigned",
@@ -17580,6 +17996,16 @@ var TopologyCategorySchema = object({
17580
17996
  healthy: number(),
17581
17997
  addons: array(TopologyCategoryAddonSchema).readonly()
17582
17998
  });
17999
+ /**
18000
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18001
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18002
+ * version visibility for the Server management surface. Nullable: offline
18003
+ * rows and pre-phase-2 nodes report none.
18004
+ */
18005
+ var TopologyRootPackageSchema = object({
18006
+ name: string(),
18007
+ version: string()
18008
+ });
17583
18009
  var TopologyNodeSchema = object({
17584
18010
  id: string(),
17585
18011
  name: string(),
@@ -17603,7 +18029,8 @@ var TopologyNodeSchema = object({
17603
18029
  status: string()
17604
18030
  })).readonly(),
17605
18031
  processes: array(TopologyProcessSchema).readonly(),
17606
- categories: array(TopologyCategorySchema).readonly()
18032
+ categories: array(TopologyCategorySchema).readonly(),
18033
+ rootPackage: TopologyRootPackageSchema.nullable()
17607
18034
  });
17608
18035
  var CapUsageEdgeSchema = object({
17609
18036
  callerAddonId: string(),
@@ -20403,6 +20830,12 @@ Object.freeze({
20403
20830
  addonId: null,
20404
20831
  access: "create"
20405
20832
  },
20833
+ "loginMethod.getLoginMethods": {
20834
+ capName: "login-method",
20835
+ capScope: "system",
20836
+ addonId: null,
20837
+ access: "view"
20838
+ },
20406
20839
  "mediaPlayer.next": {
20407
20840
  capName: "media-player",
20408
20841
  capScope: "device",
@@ -20985,6 +21418,12 @@ Object.freeze({
20985
21418
  addonId: null,
20986
21419
  access: "view"
20987
21420
  },
21421
+ "pipelineAnalytics.getKeyEvents": {
21422
+ capName: "pipeline-analytics",
21423
+ capScope: "device",
21424
+ addonId: null,
21425
+ access: "view"
21426
+ },
20988
21427
  "pipelineAnalytics.getMotionEvents": {
20989
21428
  capName: "pipeline-analytics",
20990
21429
  capScope: "device",
@@ -21033,23 +21472,23 @@ Object.freeze({
21033
21472
  addonId: null,
21034
21473
  access: "create"
21035
21474
  },
21036
- "pipelineExecutor.deleteModel": {
21475
+ "pipelineExecutor.clearDeviceOverrides": {
21037
21476
  capName: "pipeline-executor",
21038
21477
  capScope: "system",
21039
21478
  addonId: null,
21040
21479
  access: "delete"
21041
21480
  },
21042
- "pipelineExecutor.deleteTemplate": {
21481
+ "pipelineExecutor.deleteModel": {
21043
21482
  capName: "pipeline-executor",
21044
21483
  capScope: "system",
21045
21484
  addonId: null,
21046
21485
  access: "delete"
21047
21486
  },
21048
- "pipelineExecutor.detect": {
21487
+ "pipelineExecutor.deleteTemplate": {
21049
21488
  capName: "pipeline-executor",
21050
21489
  capScope: "system",
21051
21490
  addonId: null,
21052
- access: "view"
21491
+ access: "delete"
21053
21492
  },
21054
21493
  "pipelineExecutor.downloadModel": {
21055
21494
  capName: "pipeline-executor",
@@ -21243,13 +21682,13 @@ Object.freeze({
21243
21682
  addonId: null,
21244
21683
  access: "create"
21245
21684
  },
21246
- "pipelineOrchestrator.assignAudio": {
21247
- capName: "pipeline-orchestrator",
21685
+ "pipelineExecutor.validatePipeline": {
21686
+ capName: "pipeline-executor",
21248
21687
  capScope: "system",
21249
21688
  addonId: null,
21250
- access: "create"
21689
+ access: "view"
21251
21690
  },
21252
- "pipelineOrchestrator.assignDecoder": {
21691
+ "pipelineOrchestrator.assignAudio": {
21253
21692
  capName: "pipeline-orchestrator",
21254
21693
  capScope: "system",
21255
21694
  addonId: null,
@@ -21333,19 +21772,13 @@ Object.freeze({
21333
21772
  addonId: null,
21334
21773
  access: "view"
21335
21774
  },
21336
- "pipelineOrchestrator.getDecoderAssignment": {
21337
- capName: "pipeline-orchestrator",
21338
- capScope: "system",
21339
- addonId: null,
21340
- access: "view"
21341
- },
21342
- "pipelineOrchestrator.getDecoderAssignments": {
21775
+ "pipelineOrchestrator.getGlobalMetrics": {
21343
21776
  capName: "pipeline-orchestrator",
21344
21777
  capScope: "system",
21345
21778
  addonId: null,
21346
21779
  access: "view"
21347
21780
  },
21348
- "pipelineOrchestrator.getGlobalMetrics": {
21781
+ "pipelineOrchestrator.getIngestOwner": {
21349
21782
  capName: "pipeline-orchestrator",
21350
21783
  capScope: "system",
21351
21784
  addonId: null,
@@ -21387,6 +21820,12 @@ Object.freeze({
21387
21820
  addonId: null,
21388
21821
  access: "delete"
21389
21822
  },
21823
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21824
+ capName: "pipeline-orchestrator",
21825
+ capScope: "system",
21826
+ addonId: null,
21827
+ access: "delete"
21828
+ },
21390
21829
  "pipelineOrchestrator.resolvePipeline": {
21391
21830
  capName: "pipeline-orchestrator",
21392
21831
  capScope: "system",
@@ -21423,37 +21862,37 @@ Object.freeze({
21423
21862
  addonId: null,
21424
21863
  access: "create"
21425
21864
  },
21426
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21865
+ "pipelineOrchestrator.setAgentReachableHost": {
21427
21866
  capName: "pipeline-orchestrator",
21428
21867
  capScope: "system",
21429
21868
  addonId: null,
21430
21869
  access: "create"
21431
21870
  },
21432
- "pipelineOrchestrator.setCameraStepOverride": {
21871
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21433
21872
  capName: "pipeline-orchestrator",
21434
21873
  capScope: "system",
21435
21874
  addonId: null,
21436
21875
  access: "create"
21437
21876
  },
21438
- "pipelineOrchestrator.setCameraStepToggle": {
21877
+ "pipelineOrchestrator.setCameraStepOverride": {
21439
21878
  capName: "pipeline-orchestrator",
21440
21879
  capScope: "system",
21441
21880
  addonId: null,
21442
21881
  access: "create"
21443
21882
  },
21444
- "pipelineOrchestrator.setCapabilityBinding": {
21883
+ "pipelineOrchestrator.setCameraStepToggle": {
21445
21884
  capName: "pipeline-orchestrator",
21446
21885
  capScope: "system",
21447
21886
  addonId: null,
21448
21887
  access: "create"
21449
21888
  },
21450
- "pipelineOrchestrator.unassignAudio": {
21889
+ "pipelineOrchestrator.setCapabilityBinding": {
21451
21890
  capName: "pipeline-orchestrator",
21452
21891
  capScope: "system",
21453
21892
  addonId: null,
21454
21893
  access: "create"
21455
21894
  },
21456
- "pipelineOrchestrator.unassignDecoder": {
21895
+ "pipelineOrchestrator.unassignAudio": {
21457
21896
  capName: "pipeline-orchestrator",
21458
21897
  capScope: "system",
21459
21898
  addonId: null,
@@ -21513,6 +21952,12 @@ Object.freeze({
21513
21952
  addonId: null,
21514
21953
  access: "view"
21515
21954
  },
21955
+ "pipelineRunner.getNativeCrop": {
21956
+ capName: "pipeline-runner",
21957
+ capScope: "system",
21958
+ addonId: null,
21959
+ access: "view"
21960
+ },
21516
21961
  "pipelineRunner.reportMotion": {
21517
21962
  capName: "pipeline-runner",
21518
21963
  capScope: "system",
@@ -21753,33 +22198,45 @@ Object.freeze({
21753
22198
  addonId: null,
21754
22199
  access: "create"
21755
22200
  },
21756
- "restreamer.getExposedResources": {
21757
- capName: "restreamer",
22201
+ "scriptRunner.run": {
22202
+ capName: "script-runner",
22203
+ capScope: "device",
22204
+ addonId: null,
22205
+ access: "create"
22206
+ },
22207
+ "scriptRunner.stop": {
22208
+ capName: "script-runner",
22209
+ capScope: "device",
22210
+ addonId: null,
22211
+ access: "create"
22212
+ },
22213
+ "serverManagement.applyServerUpdate": {
22214
+ capName: "server-management",
21758
22215
  capScope: "system",
21759
22216
  addonId: null,
21760
- access: "view"
22217
+ access: "create"
21761
22218
  },
21762
- "restreamer.registerDevice": {
21763
- capName: "restreamer",
22219
+ "serverManagement.checkServerUpdate": {
22220
+ capName: "server-management",
21764
22221
  capScope: "system",
21765
22222
  addonId: null,
21766
22223
  access: "create"
21767
22224
  },
21768
- "restreamer.unregisterDevice": {
21769
- capName: "restreamer",
22225
+ "serverManagement.getServerPackageStatus": {
22226
+ capName: "server-management",
21770
22227
  capScope: "system",
21771
22228
  addonId: null,
21772
- access: "delete"
22229
+ access: "view"
21773
22230
  },
21774
- "scriptRunner.run": {
21775
- capName: "script-runner",
21776
- capScope: "device",
22231
+ "serverManagement.restartServer": {
22232
+ capName: "server-management",
22233
+ capScope: "system",
21777
22234
  addonId: null,
21778
22235
  access: "create"
21779
22236
  },
21780
- "scriptRunner.stop": {
21781
- capName: "script-runner",
21782
- capScope: "device",
22237
+ "serverManagement.rollbackServerUpdate": {
22238
+ capName: "server-management",
22239
+ capScope: "system",
21783
22240
  addonId: null,
21784
22241
  access: "create"
21785
22242
  },
@@ -21867,23 +22324,17 @@ Object.freeze({
21867
22324
  addonId: null,
21868
22325
  access: "view"
21869
22326
  },
21870
- "snapshot.invalidateCache": {
22327
+ "snapshot.getSnapshotOverview": {
21871
22328
  capName: "snapshot",
21872
22329
  capScope: "device",
21873
22330
  addonId: null,
21874
- access: "create"
21875
- },
21876
- "snapshotProvider.getSnapshot": {
21877
- capName: "snapshot-provider",
21878
- capScope: "system",
21879
- addonId: null,
21880
22331
  access: "view"
21881
22332
  },
21882
- "snapshotProvider.supportsDevice": {
21883
- capName: "snapshot-provider",
21884
- capScope: "system",
22333
+ "snapshot.invalidateCache": {
22334
+ capName: "snapshot",
22335
+ capScope: "device",
21885
22336
  addonId: null,
21886
- access: "view"
22337
+ access: "create"
21887
22338
  },
21888
22339
  "ssoBridge.signBridgeToken": {
21889
22340
  capName: "sso-bridge",
@@ -22311,30 +22762,6 @@ Object.freeze({
22311
22762
  addonId: null,
22312
22763
  access: "view"
22313
22764
  },
22314
- "streamingEngine.getStreamUrl": {
22315
- capName: "streaming-engine",
22316
- capScope: "system",
22317
- addonId: null,
22318
- access: "view"
22319
- },
22320
- "streamingEngine.listStreams": {
22321
- capName: "streaming-engine",
22322
- capScope: "system",
22323
- addonId: null,
22324
- access: "view"
22325
- },
22326
- "streamingEngine.registerStream": {
22327
- capName: "streaming-engine",
22328
- capScope: "system",
22329
- addonId: null,
22330
- access: "create"
22331
- },
22332
- "streamingEngine.unregisterStream": {
22333
- capName: "streaming-engine",
22334
- capScope: "system",
22335
- addonId: null,
22336
- access: "delete"
22337
- },
22338
22765
  "streamParams.getConfigSchema": {
22339
22766
  capName: "stream-params",
22340
22767
  capScope: "device",
@@ -22581,6 +23008,12 @@ Object.freeze({
22581
23008
  addonId: null,
22582
23009
  access: "view"
22583
23010
  },
23011
+ "userPasskeys.beginDiscoverableAuthentication": {
23012
+ capName: "user-passkeys",
23013
+ capScope: "system",
23014
+ addonId: null,
23015
+ access: "view"
23016
+ },
22584
23017
  "userPasskeys.beginRegistration": {
22585
23018
  capName: "user-passkeys",
22586
23019
  capScope: "system",
@@ -22593,12 +23026,24 @@ Object.freeze({
22593
23026
  addonId: null,
22594
23027
  access: "view"
22595
23028
  },
23029
+ "userPasskeys.finishDiscoverableAuthentication": {
23030
+ capName: "user-passkeys",
23031
+ capScope: "system",
23032
+ addonId: null,
23033
+ access: "view"
23034
+ },
22596
23035
  "userPasskeys.finishRegistration": {
22597
23036
  capName: "user-passkeys",
22598
23037
  capScope: "system",
22599
23038
  addonId: null,
22600
23039
  access: "create"
22601
23040
  },
23041
+ "userPasskeys.getSecondFactorPreference": {
23042
+ capName: "user-passkeys",
23043
+ capScope: "system",
23044
+ addonId: null,
23045
+ access: "view"
23046
+ },
22602
23047
  "userPasskeys.listPasskeys": {
22603
23048
  capName: "user-passkeys",
22604
23049
  capScope: "system",
@@ -22611,6 +23056,12 @@ Object.freeze({
22611
23056
  addonId: null,
22612
23057
  access: "delete"
22613
23058
  },
23059
+ "userPasskeys.setSecondFactorPreference": {
23060
+ capName: "user-passkeys",
23061
+ capScope: "system",
23062
+ addonId: null,
23063
+ access: "create"
23064
+ },
22614
23065
  "vacuumControl.locate": {
22615
23066
  capName: "vacuum-control",
22616
23067
  capScope: "device",
@@ -22683,6 +23134,18 @@ Object.freeze({
22683
23134
  addonId: null,
22684
23135
  access: "view"
22685
23136
  },
23137
+ "viewerUi.getStaticDir": {
23138
+ capName: "viewer-ui",
23139
+ capScope: "system",
23140
+ addonId: null,
23141
+ access: "view"
23142
+ },
23143
+ "viewerUi.getVersion": {
23144
+ capName: "viewer-ui",
23145
+ capScope: "system",
23146
+ addonId: null,
23147
+ access: "view"
23148
+ },
22686
23149
  "waterHeater.setAway": {
22687
23150
  capName: "water-heater",
22688
23151
  capScope: "device",
@@ -22701,54 +23164,6 @@ Object.freeze({
22701
23164
  addonId: null,
22702
23165
  access: "create"
22703
23166
  },
22704
- "webrtc.closeSession": {
22705
- capName: "webrtc",
22706
- capScope: "system",
22707
- addonId: null,
22708
- access: "create"
22709
- },
22710
- "webrtc.createSession": {
22711
- capName: "webrtc",
22712
- capScope: "system",
22713
- addonId: null,
22714
- access: "create"
22715
- },
22716
- "webrtc.handleAnswer": {
22717
- capName: "webrtc",
22718
- capScope: "system",
22719
- addonId: null,
22720
- access: "create"
22721
- },
22722
- "webrtc.handleOffer": {
22723
- capName: "webrtc",
22724
- capScope: "system",
22725
- addonId: null,
22726
- access: "create"
22727
- },
22728
- "webrtc.hasAdaptiveBitrate": {
22729
- capName: "webrtc",
22730
- capScope: "system",
22731
- addonId: null,
22732
- access: "view"
22733
- },
22734
- "webrtc.registerStream": {
22735
- capName: "webrtc",
22736
- capScope: "system",
22737
- addonId: null,
22738
- access: "create"
22739
- },
22740
- "webrtc.supportsStream": {
22741
- capName: "webrtc",
22742
- capScope: "system",
22743
- addonId: null,
22744
- access: "view"
22745
- },
22746
- "webrtc.unregisterStream": {
22747
- capName: "webrtc",
22748
- capScope: "system",
22749
- addonId: null,
22750
- access: "delete"
22751
- },
22752
23167
  "webrtcSession.addIceCandidate": {
22753
23168
  capName: "webrtc-session",
22754
23169
  capScope: "device",
@@ -23262,7 +23677,8 @@ var ModelStudioAddon = class extends BaseAddon {
23262
23677
  icon: "boxes",
23263
23678
  path: "/addon/model-studio",
23264
23679
  remoteName: "addon_model_studio_page",
23265
- bundle: "remoteEntry.js"
23680
+ bundle: "remoteEntry.js",
23681
+ section: "detection"
23266
23682
  }];
23267
23683
  constructor() {
23268
23684
  super({});