@camstack/addon-export-ha-mqtt 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.
@@ -4677,7 +4677,7 @@ function number(params) {
4677
4677
  return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
4678
4678
  }
4679
4679
  //#endregion
4680
- //#region ../types/dist/sleep-CZDdRBua.mjs
4680
+ //#region ../types/dist/sleep-Baang_XW.mjs
4681
4681
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4682
4682
  EventCategory["SystemBoot"] = "system.boot";
4683
4683
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4863,6 +4863,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4863
4863
  */
4864
4864
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4865
4865
  /**
4866
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4867
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4868
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4869
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4870
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4871
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4872
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4873
+ * topology change, so a dropped event self-heals on the next one (plus the
4874
+ * broker's long backstop reconcile query).
4875
+ */
4876
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4877
+ /**
4866
4878
  * Periodic snapshot of per-node pipeline-runner load
4867
4879
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4868
4880
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5386,10 +5398,6 @@ function hydrateField(field, values) {
5386
5398
  };
5387
5399
  }
5388
5400
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5389
- if (field.type === "password") return {
5390
- ...field,
5391
- value: ""
5392
- };
5393
5401
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5394
5402
  return {
5395
5403
  ...field,
@@ -6773,6 +6781,21 @@ function method(input, output, options) {
6773
6781
  timeoutMs: options?.timeoutMs
6774
6782
  };
6775
6783
  }
6784
+ /**
6785
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6786
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6787
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6788
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6789
+ */
6790
+ function systemMethod(input, output, options) {
6791
+ return {
6792
+ ...method(input, output, options),
6793
+ systemOnly: true
6794
+ };
6795
+ }
6796
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6797
+ var VersionOutputSchema$1 = object({ version: string() });
6798
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6776
6799
  var StaticDirOutputSchema = object({ staticDir: string() });
6777
6800
  var VersionOutputSchema = object({ version: string() });
6778
6801
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6942,6 +6965,36 @@ var ModelFormatsSchema = object({
6942
6965
  tflite: ModelFormatEntrySchema.optional(),
6943
6966
  pt: ModelFormatEntrySchema.optional()
6944
6967
  });
6968
+ /**
6969
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6970
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6971
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6972
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6973
+ * resolution/download/persistence; this is a presentation overlay resolved back
6974
+ * to an `id`.
6975
+ */
6976
+ var ModelVariantGroupSchema = object({
6977
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6978
+ family: string(),
6979
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6980
+ tier: string(),
6981
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6982
+ precision: _enum(["fp32", "int8"]).optional(),
6983
+ /**
6984
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6985
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6986
+ * future performance variants plug into.
6987
+ */
6988
+ optimization: _enum(["standard", "fast"]).optional(),
6989
+ /**
6990
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6991
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6992
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6993
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6994
+ * the group so the selector can offer it as a variant axis.
6995
+ */
6996
+ resolution: number$1().int().positive().optional()
6997
+ });
6945
6998
  var ModelCatalogEntrySchema = object({
6946
6999
  id: string(),
6947
7000
  name: string(),
@@ -6971,7 +7024,43 @@ var ModelCatalogEntrySchema = object({
6971
7024
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6972
7025
  * Downloaded into the same modelsDir alongside the model file.
6973
7026
  */
6974
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7027
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7028
+ /**
7029
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7030
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7031
+ * model list and excluded from the auto format-default pick. Set on the
7032
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7033
+ * the active lineup stays the coherent curated ladder without deleting a
7034
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7035
+ * an explicit legacy id that has a build for the node's format.
7036
+ */
7037
+ legacy: boolean().optional(),
7038
+ /**
7039
+ * Measured quality/latency metadata — populated from the benchmark addon on
7040
+ * the real node classes. Absent = not yet measured (most entries today; the
7041
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7042
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7043
+ */
7044
+ metrics: object({
7045
+ map50: number$1().optional(),
7046
+ p95LatencyMs: record(string(), number$1()).optional()
7047
+ }).optional(),
7048
+ /**
7049
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7050
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7051
+ * the retraining addon and any future commercial distribution.
7052
+ */
7053
+ license: string().optional(),
7054
+ /**
7055
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7056
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7057
+ * of a family's sizes and quantizations collapse into one grouped picker
7058
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7059
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7060
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7061
+ * is a presentation overlay resolved back to an `id`.
7062
+ */
7063
+ group: ModelVariantGroupSchema.optional()
6975
7064
  });
6976
7065
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6977
7066
  format: literal("openvino"),
@@ -7032,8 +7121,8 @@ var RecordingModeSchema = _enum([
7032
7121
  "onAudioThreshold"
7033
7122
  ]);
7034
7123
  /**
7035
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7036
- * reads directly (never inferred from `rules`):
7124
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7125
+ * UI reads directly (never inferred from `rules`):
7037
7126
  * - `off` — not recording.
7038
7127
  * - `events` — record only around triggers (motion / audio threshold),
7039
7128
  * with pre/post-buffer.
@@ -8681,26 +8770,13 @@ DeviceType.Light, method(object({
8681
8770
  percentage: number$1().min(0).max(100),
8682
8771
  lastChangedAt: number$1()
8683
8772
  });
8773
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8684
8774
  var StreamFormatSchema = _enum([
8685
8775
  "webrtc",
8686
8776
  "hls",
8687
8777
  "mjpeg",
8688
8778
  "rtsp"
8689
8779
  ]);
8690
- var StreamInfoSchema = object({
8691
- streamId: string(),
8692
- format: StreamFormatSchema,
8693
- url: string().nullable(),
8694
- active: boolean()
8695
- });
8696
- method(object({
8697
- streamId: string(),
8698
- sourceUrl: string(),
8699
- codec: string().optional()
8700
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8701
- streamId: string(),
8702
- format: StreamFormatSchema
8703
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8704
8780
  var RtspRestreamEntrySchema = object({
8705
8781
  brokerId: string(),
8706
8782
  url: string(),
@@ -9365,7 +9441,7 @@ var ConsumablesStatusSchema = object({
9365
9441
  })),
9366
9442
  lastChangedAt: number$1()
9367
9443
  });
9368
- 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({
9444
+ Object.values(DeviceType), method(object({
9369
9445
  deviceId: number$1().int().nonnegative(),
9370
9446
  key: string().min(1)
9371
9447
  }), _void(), {
@@ -10280,7 +10356,7 @@ var BoundingBoxSchema = object({
10280
10356
  w: number$1(),
10281
10357
  h: number$1()
10282
10358
  });
10283
- var SpatialDetectionSchema = object({
10359
+ object({
10284
10360
  class: string(),
10285
10361
  originalClass: string(),
10286
10362
  score: number$1(),
@@ -10415,7 +10491,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10415
10491
  enabled: boolean(),
10416
10492
  modelId: string(),
10417
10493
  children: array(PipelineDefaultStepSchema).readonly(),
10418
- engine: PipelineEngineChoiceSchema.optional(),
10419
10494
  group: string().optional(),
10420
10495
  settings: record(string(), unknown()).optional()
10421
10496
  }));
@@ -10440,7 +10515,9 @@ var PipelineModelOptionSchema = object({
10440
10515
  formats: record(string(), object({
10441
10516
  downloaded: boolean(),
10442
10517
  sizeMB: number$1()
10443
- }))
10518
+ })),
10519
+ group: ModelVariantGroupSchema.optional(),
10520
+ legacy: boolean().optional()
10444
10521
  });
10445
10522
  var ConfigFieldBridge = custom();
10446
10523
  var PipelineAddonSchemaSchema = object({
@@ -10454,6 +10531,7 @@ var PipelineAddonSchemaSchema = object({
10454
10531
  defaultModelId: string(),
10455
10532
  defaultModelIdByFormat: record(string(), string()).optional(),
10456
10533
  enabledByDefault: boolean().optional(),
10534
+ backfillIntoExistingOverrides: boolean().optional(),
10457
10535
  defaultConfidence: number$1(),
10458
10536
  group: string().optional(),
10459
10537
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10470,11 +10548,6 @@ var PipelineSchemaSchema = object({
10470
10548
  selectedEngine: PipelineEngineChoiceSchema,
10471
10549
  slots: array(PipelineSlotSchemaSchema).readonly()
10472
10550
  });
10473
- var DetectorOutputSchema = object({
10474
- detections: array(SpatialDetectionSchema).readonly(),
10475
- inferenceMs: number$1(),
10476
- modelId: string()
10477
- });
10478
10551
  var EngineProvisioningSchema = object({
10479
10552
  runtimeId: _enum([
10480
10553
  "onnx",
@@ -10491,15 +10564,42 @@ var EngineProvisioningSchema = object({
10491
10564
  ]),
10492
10565
  progress: number$1().optional(),
10493
10566
  error: string().optional(),
10494
- nextRetryAt: number$1().optional()
10567
+ nextRetryAt: number$1().optional(),
10568
+ /**
10569
+ * Gate A (config-correctness gate at engine change): human-readable
10570
+ * config issues surfaced EAGERLY when the node's engine changes — model
10571
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10572
+ * has a <format> build"). Additive/optional: informational only, never
10573
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10574
+ * Absent/empty when the node-default tree resolves cleanly.
10575
+ */
10576
+ configIssues: array(string()).optional()
10495
10577
  });
10496
10578
  var PipelineStepInputSchema = lazy(() => object({
10497
10579
  addonId: string(),
10498
- modelId: string(),
10580
+ modelId: string().optional(),
10499
10581
  enabled: boolean().default(true),
10500
10582
  children: array(PipelineStepInputSchema).optional(),
10501
10583
  settings: record(string(), unknown()).optional()
10502
10584
  }));
10585
+ var ModelSubstitutionSchema = object({
10586
+ addonId: string(),
10587
+ chosen: string(),
10588
+ running: string(),
10589
+ format: string()
10590
+ });
10591
+ var PipelineValidationIssueSchema = object({
10592
+ addonId: string(),
10593
+ kind: _enum(["unknown-addon", "no-format-build"]),
10594
+ detail: string()
10595
+ });
10596
+ var PipelineValidationResultSchema = object({
10597
+ ok: boolean(),
10598
+ issues: array(PipelineValidationIssueSchema).readonly(),
10599
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10600
+ /** The node's `currentEngine.format` this validation ran against. */
10601
+ format: string()
10602
+ });
10503
10603
  var ReferenceImageEntrySchema = object({
10504
10604
  filename: string(),
10505
10605
  stepIds: array(string()).readonly().optional()
@@ -10570,7 +10670,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10570
10670
  })) }), object({ success: literal(true) }), {
10571
10671
  kind: "mutation",
10572
10672
  auth: "admin"
10573
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10673
+ }), method(object({ nodeId: string() }), object({
10674
+ success: literal(true),
10675
+ clearedDevices: number$1()
10676
+ }), {
10677
+ kind: "mutation",
10678
+ auth: "admin"
10679
+ }), 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({
10574
10680
  name: string(),
10575
10681
  steps: array(PipelineTemplateStepSchema).readonly(),
10576
10682
  engine: PipelineEngineChoiceSchema
@@ -10587,10 +10693,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10587
10693
  modelId: string(),
10588
10694
  format: ModelFormatSchema$1
10589
10695
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10590
- addonId: string(),
10591
- frame: FrameInputSchema,
10592
- config: record(string(), unknown()).optional()
10593
- }), DetectorOutputSchema), method(object({
10594
10696
  engine: PipelineEngineChoiceSchema.optional(),
10595
10697
  steps: array(PipelineStepInputSchema).min(1),
10596
10698
  frame: FrameInputSchema.optional(),
@@ -10611,7 +10713,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10611
10713
  image: _instanceof(Uint8Array).optional(),
10612
10714
  referenceImage: string().optional(),
10613
10715
  deviceId: number$1().optional(),
10614
- sessionId: string().optional()
10716
+ sessionId: string().optional(),
10717
+ /**
10718
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10719
+ * reference-image, and detail-subtree calls. 'frame' is the live
10720
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10721
+ * (inputClasses ≠ null) are skipped and served per-track via
10722
+ * pipelineRunner.runDetailSubtree (two-plane design).
10723
+ */
10724
+ plane: _enum(["full", "frame"]).optional()
10615
10725
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10616
10726
  engine: PipelineEngineChoiceSchema.optional(),
10617
10727
  steps: array(PipelineStepInputSchema).min(1),
@@ -10736,6 +10846,47 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(ZoneSchema).re
10736
10846
  auth: "admin"
10737
10847
  }), object({ zones: array(ZoneSchema).readonly() });
10738
10848
  /**
10849
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10850
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10851
+ * so the caller supplies only the detection-res bbox divided by the detection
10852
+ * dims — no native resolution to plumb.
10853
+ */
10854
+ var NativeCropBboxSchema = object({
10855
+ x: number$1(),
10856
+ y: number$1(),
10857
+ w: number$1(),
10858
+ h: number$1()
10859
+ });
10860
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10861
+ var NativeCropResultSchema = object({
10862
+ /** Packed rgb (24-bit) pixels of the crop. */
10863
+ bytes: _instanceof(Uint8Array),
10864
+ width: number$1().int().positive(),
10865
+ height: number$1().int().positive()
10866
+ });
10867
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10868
+ * originating detection, in FRAME-space coordinates. Reuses
10869
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10870
+ * the coordinates are frame-space rather than getNativeCrop's
10871
+ * normalized [0,1] convention). */
10872
+ var DetailParentSchema = object({
10873
+ bbox: NativeCropBboxSchema,
10874
+ className: string()
10875
+ });
10876
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10877
+ * or refined detection produced by running the crop-subtree on a
10878
+ * single tracked detection. */
10879
+ var DetailResultSchema = object({
10880
+ stepId: string(),
10881
+ className: string(),
10882
+ score: number$1(),
10883
+ /** FRAME-space bbox (already mapped back from crop space). */
10884
+ bbox: NativeCropBboxSchema.optional(),
10885
+ embedding: string().optional(),
10886
+ label: string().optional(),
10887
+ alignedCropJpeg: string().optional()
10888
+ });
10889
+ /**
10739
10890
  * Per-camera tunable ranges + defaults. Single source of truth used
10740
10891
  * by both the Zod data schema (validation + default fallback) and
10741
10892
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10830,6 +10981,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10830
10981
  kind: literal("remote-restream"),
10831
10982
  /** The camera's source-owner node (slice 1: always the hub). */
10832
10983
  ownerNodeId: string(),
10984
+ /**
10985
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10986
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10987
+ * dials THIS host for the owner's restream, in preference to the
10988
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10989
+ */
10990
+ ownerReachableHost: string().optional(),
10833
10991
  /** Operator override for the owner host the runner dials. */
10834
10992
  hubHostnameOverride: string().optional()
10835
10993
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10838,13 +10996,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10838
10996
  * specific runner instance via `attachCamera`. Carries everything the
10839
10997
  * runner needs to subscribe to the local broker and execute inference.
10840
10998
  *
10841
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10842
- * optional `audio`) travels with the attach payload. The runner keeps it
10843
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10844
- * restart the orchestrator re-sends the latest snapshot.
10845
- *
10846
- * `engine`/`steps`/`audio` are optional during the additive migration
10847
- * window; once orchestrator + UI are migrated they become required.
10999
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
11000
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
11001
+ * for the lifetime of the attach — on rebalance, edit, or restart the
11002
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
11003
+ * node-local, resolved by the executing runner at dispatch time.
10848
11004
  */
10849
11005
  var RunnerCameraConfigSchema = object({
10850
11006
  deviceId: number$1(),
@@ -10895,14 +11051,11 @@ var RunnerCameraConfigSchema = object({
10895
11051
  */
10896
11052
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10897
11053
  pipelineEnabled: boolean().default(true),
10898
- /** Engine choice for video steps (runtime+backend+format). */
10899
- engine: PipelineEngineChoiceSchema.optional(),
10900
11054
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10901
11055
  steps: array(PipelineStepInputSchema).readonly().optional(),
10902
11056
  /** Audio classification branch. `enabled:false` disables, null skips. */
10903
11057
  audio: object({
10904
- engine: PipelineEngineChoiceSchema,
10905
- modelId: string(),
11058
+ modelId: string().optional(),
10906
11059
  enabled: boolean()
10907
11060
  }).nullable().optional(),
10908
11061
  /**
@@ -10989,7 +11142,17 @@ var RunnerLocalMetricsSchema = object({
10989
11142
  avgInferenceTimeMs: number$1(),
10990
11143
  queueDepth: number$1()
10991
11144
  });
10992
- method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly());
11145
+ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly()), method(object({
11146
+ handle: FrameHandleSchema,
11147
+ bbox: NativeCropBboxSchema,
11148
+ maxWidth: number$1().int().positive().optional()
11149
+ }), NativeCropResultSchema.nullable()), method(object({
11150
+ deviceId: number$1(),
11151
+ frameHandle: FrameHandleSchema.optional(),
11152
+ cropJpeg: string().optional(),
11153
+ parent: DetailParentSchema,
11154
+ steps: array(string()).optional()
11155
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
10993
11156
  object({
10994
11157
  detected: boolean(),
10995
11158
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12283,7 +12446,9 @@ var AddonPageDeclarationSchema$1 = object({
12283
12446
  icon: string(),
12284
12447
  path: string(),
12285
12448
  remoteName: string(),
12286
- bundle: string()
12449
+ bundle: string(),
12450
+ section: string().optional(),
12451
+ sectionLabel: string().optional()
12287
12452
  });
12288
12453
  var AddonPageInfoSchema = object({
12289
12454
  addonId: string(),
@@ -12323,7 +12488,18 @@ var AddonPageDeclarationSchema = object({
12323
12488
  * the static-file route can compute an mtime-based cache-buster URL
12324
12489
  * without a separate filesystem stat.
12325
12490
  */
12326
- bundle: string()
12491
+ bundle: string(),
12492
+ /**
12493
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12494
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12495
+ * Any OTHER string creates (or joins) a custom section rendered after
12496
+ * the built-in groups; its label comes from `sectionLabel` (first
12497
+ * declaration wins), falling back to the id. Absent → the legacy
12498
+ * "Addon Pages" group.
12499
+ */
12500
+ section: string().optional(),
12501
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12502
+ sectionLabel: string().optional()
12327
12503
  });
12328
12504
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12329
12505
  var AddonHttpRouteSchema = object({
@@ -12539,6 +12715,17 @@ var WidgetMetadataSchema = object({
12539
12715
  deviceContext: boolean().default(false),
12540
12716
  integrationContext: boolean().default(false)
12541
12717
  }),
12718
+ /**
12719
+ * Loadable BEFORE authentication. The normal widget registry listing
12720
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12721
+ * (the login page) cannot discover a widget through it. A widget that
12722
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12723
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12724
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12725
+ * than the authenticated registry, and its bundle is served by the
12726
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12727
+ */
12728
+ preAuth: boolean().optional().default(false),
12542
12729
  /** Dashboard placement HINTS (operator can override per instance). */
12543
12730
  defaultSize: WidgetSizeEnum.default("md"),
12544
12731
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12840,6 +13027,66 @@ method(object({
12840
13027
  password: string()
12841
13028
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12842
13029
  /**
13030
+ * `login-method` — collection cap through which auth addons contribute
13031
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13032
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13033
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13034
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13035
+ * procedure aggregates them for the unauthenticated login page.
13036
+ *
13037
+ * A contribution is a discriminated union on `kind`:
13038
+ *
13039
+ * - `redirect` — a declarative button. The login page renders a generic
13040
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13041
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13042
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13043
+ * login page needs NO change.
13044
+ *
13045
+ * - `widget` — a Module-Federation widget the login page mounts (via
13046
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13047
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13048
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13049
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13050
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13051
+ *
13052
+ * Every contribution carries a `stage`:
13053
+ * - `primary` — shown on the first credentials screen (OIDC /
13054
+ * magic-link buttons; a future usernameless passkey).
13055
+ * - `second-factor` — shown AFTER the password leg, gated on the
13056
+ * returned `factors` (passkey-as-2FA today).
13057
+ *
13058
+ * `mount: skip` — the cap is read server-side by the core auth router
13059
+ * (`registry.getCollection('login-method')`), never mounted as its own
13060
+ * tRPC router.
13061
+ */
13062
+ /** When a login method renders in the two-phase login flow. */
13063
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13064
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13065
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13066
+ kind: literal("redirect"),
13067
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13068
+ id: string(),
13069
+ /** Operator-facing button label. */
13070
+ label: string(),
13071
+ /** lucide-react icon name. */
13072
+ icon: string().optional(),
13073
+ /** Addon-owned HTTP route the button navigates to (GET). */
13074
+ startUrl: string(),
13075
+ stage: LoginStageEnum
13076
+ }), object({
13077
+ kind: literal("widget"),
13078
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13079
+ id: string(),
13080
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13081
+ addonId: string(),
13082
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13083
+ bundle: string(),
13084
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13085
+ remote: WidgetRemoteSchema,
13086
+ stage: LoginStageEnum
13087
+ })]);
13088
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13089
+ /**
12843
13090
  * Orchestrator-side destination metadata. The orchestrator computes
12844
13091
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12845
13092
  * (admin UI, restore flow) see one canonical key.
@@ -14968,7 +15215,17 @@ var TrackSchema = object({
14968
15215
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
14969
15216
  totalDistance: number$1(),
14970
15217
  state: TrackStateSchema,
14971
- active: boolean()
15218
+ active: boolean(),
15219
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15220
+ * track expiry, recomputed on late label). Absent on legacy rows written
15221
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15222
+ importance: number$1().optional(),
15223
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15224
+ * "best" frame). Absent when the track produced no object events. */
15225
+ bestEventId: string().optional(),
15226
+ /** Tag of the importance sub-signal that dominated the score
15227
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15228
+ importanceReason: string().optional()
14972
15229
  });
14973
15230
  var BaseEventFields = {
14974
15231
  id: string(),
@@ -15033,8 +15290,18 @@ var ObjectEventSchema = object({
15033
15290
  frameHeight: number$1().optional(),
15034
15291
  /** MediaStore key for the crop attached to this event (if any). */
15035
15292
  mediaKey: string().optional(),
15293
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15294
+ * best-detection full frame). Resolve via the event-media data-plane
15295
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15296
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15297
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15298
+ keyFrameMediaKey: string().optional(),
15036
15299
  /** Populated by B5 (recording playback URL for this event). */
15037
- mediaUrl: string().optional()
15300
+ mediaUrl: string().optional(),
15301
+ /** The parent track's key-event importance [0,1], propagated to every object
15302
+ * event of the track (so an event row can be sorted by importance without a
15303
+ * track join). Absent on legacy rows / before the track was scored. */
15304
+ importance: number$1().optional()
15038
15305
  });
15039
15306
  var AudioEventSchema = object({
15040
15307
  ...BaseEventFields,
@@ -15058,7 +15325,8 @@ var MediaFileKindEnum = _enum([
15058
15325
  "fullFrame",
15059
15326
  "fullFrameBoxed",
15060
15327
  "faceCrop",
15061
- "plateCrop"
15328
+ "plateCrop",
15329
+ "keyFrame"
15062
15330
  ]);
15063
15331
  var MediaFileSchema = object({
15064
15332
  key: string(),
@@ -15079,6 +15347,32 @@ var DeviceEventQueryInput = object({
15079
15347
  projection: _enum(["full", "slim"]).optional()
15080
15348
  });
15081
15349
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15350
+ var KeyEventQueryInput = object({
15351
+ deviceId: number$1(),
15352
+ /** Window lower bound (track firstSeen ≥ since). */
15353
+ since: number$1(),
15354
+ /** Window upper bound (track firstSeen ≤ until). */
15355
+ until: number$1(),
15356
+ limit: number$1().int().min(1).max(200).default(50),
15357
+ /** Drop tracks scoring below this importance. */
15358
+ minImportance: number$1().min(0).max(1).optional(),
15359
+ /** Restrict to a single class (e.g. 'person'). */
15360
+ classFilter: string().optional()
15361
+ });
15362
+ var KeyEventSchema = object({
15363
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15364
+ id: string(),
15365
+ trackId: string(),
15366
+ /** Track start time (firstSeen). */
15367
+ timestamp: number$1(),
15368
+ className: string(),
15369
+ label: string().optional(),
15370
+ importance: number$1(),
15371
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15372
+ bestEventId: string(),
15373
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15374
+ windowMs: number$1().optional()
15375
+ });
15082
15376
  var TrackedDetectionSchema = object({
15083
15377
  trackId: string(),
15084
15378
  className: string(),
@@ -15108,7 +15402,7 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
15108
15402
  }), array(TrackSchema).readonly()), method(object({ deviceId: number$1() }), _void(), {
15109
15403
  kind: "mutation",
15110
15404
  auth: "admin"
15111
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15405
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15112
15406
  deviceId: number$1(),
15113
15407
  since: number$1(),
15114
15408
  until: number$1(),
@@ -15153,11 +15447,11 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
15153
15447
  timestamp: number$1()
15154
15448
  });
15155
15449
  var CameraPipelineConfigSchema = object({
15156
- engine: PipelineEngineChoiceSchema,
15450
+ engine: PipelineEngineChoiceSchema.optional(),
15157
15451
  steps: array(PipelineStepInputSchema).readonly(),
15158
15452
  audio: object({
15159
- engine: PipelineEngineChoiceSchema,
15160
- modelId: string(),
15453
+ engine: PipelineEngineChoiceSchema.optional(),
15454
+ modelId: string().optional(),
15161
15455
  enabled: boolean(),
15162
15456
  settings: record(string(), unknown()).readonly().optional()
15163
15457
  }).nullable().optional()
@@ -15172,7 +15466,7 @@ var PipelineTemplateSchema = object({
15172
15466
  });
15173
15467
  var AgentAddonConfigSchema = object({
15174
15468
  enabled: boolean(),
15175
- modelId: string(),
15469
+ modelId: string().optional(),
15176
15470
  settings: record(string(), unknown()).readonly()
15177
15471
  });
15178
15472
  var AgentPipelineSettingsSchema = object({
@@ -15182,12 +15476,25 @@ var AgentPipelineSettingsSchema = object({
15182
15476
  detectWeight: number$1().positive().optional(),
15183
15477
  /** Node is eligible to run the detection pipeline (decode + inference). */
15184
15478
  detect: boolean().optional(),
15185
- /** Node is eligible to host decoder sessions. */
15479
+ /**
15480
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15481
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15482
+ * the schema ONLY so persisted stores written before the removal still
15483
+ * parse — no code reads it and no write path emits it.
15484
+ */
15186
15485
  decode: boolean().optional(),
15187
15486
  /** Node is eligible to run audio-analyzer sessions. */
15188
15487
  audio: boolean().optional(),
15189
15488
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15190
- ingest: boolean().optional()
15489
+ ingest: boolean().optional(),
15490
+ /**
15491
+ * Operator override for the LAN host a cross-node decoder dials to reach
15492
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15493
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15494
+ * it already uses to reach the hub). Set this only when the auto-detected
15495
+ * address is wrong (multi-homed host, NAT, custom interface).
15496
+ */
15497
+ reachableHost: string().optional()
15191
15498
  });
15192
15499
  var CameraPipelineForAgentSchema = object({
15193
15500
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15235,25 +15542,6 @@ var PipelineAssignmentSchema = object({
15235
15542
  assignedAt: number$1()
15236
15543
  });
15237
15544
  /**
15238
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15239
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15240
- * → co-located with pipeline → capacity).
15241
- */
15242
- var DecoderAssignmentSchema = object({
15243
- deviceId: number$1(),
15244
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15245
- decoderNodeId: string(),
15246
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15247
- pinned: boolean(),
15248
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15249
- reason: _enum([
15250
- "manual",
15251
- "co-located",
15252
- "capacity",
15253
- "hardware-affinity"
15254
- ])
15255
- });
15256
- /**
15257
15545
  * Per-agent load summary surfaced to the load balancer + dashboards.
15258
15546
  * Aggregated from each runner's `getLocalLoad` cap call.
15259
15547
  */
@@ -15293,6 +15581,15 @@ var GlobalMetricsSchema = object({
15293
15581
  * capability providers.
15294
15582
  */
15295
15583
  var CapabilityBindingsSchema = record(string(), string());
15584
+ /**
15585
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15586
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15587
+ */
15588
+ var IngestOwnerSchema = object({
15589
+ ownerNodeId: string(),
15590
+ reachableHost: string().optional(),
15591
+ configIssue: string().optional()
15592
+ });
15296
15593
  /** Source block — always present; derives from the stream catalog. */
15297
15594
  var CameraSourceStatusSchema = object({ streams: array(object({
15298
15595
  camStreamId: string(),
@@ -15307,6 +15604,14 @@ var CameraAssignmentStatusSchema = object({
15307
15604
  detectionNodeId: string().nullable(),
15308
15605
  decoderNodeId: string().nullable(),
15309
15606
  audioNodeId: string().nullable(),
15607
+ /**
15608
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15609
+ * hosts the broker/restream) — the cluster ingest owner today
15610
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15611
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15612
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15613
+ */
15614
+ sourceNodeId: string().nullable(),
15310
15615
  pinned: object({
15311
15616
  detection: boolean(),
15312
15617
  decoder: boolean(),
@@ -15439,16 +15744,7 @@ method(object({
15439
15744
  }), object({ success: literal(true) }), {
15440
15745
  kind: "mutation",
15441
15746
  auth: "admin"
15442
- }), method(object({
15443
- deviceId: number$1(),
15444
- nodeId: string()
15445
- }), _void(), {
15446
- kind: "mutation",
15447
- auth: "admin"
15448
- }), method(object({ deviceId: number$1() }), _void(), {
15449
- kind: "mutation",
15450
- auth: "admin"
15451
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15747
+ }), method(_void(), IngestOwnerSchema), method(object({
15452
15748
  deviceId: number$1(),
15453
15749
  nodeId: string()
15454
15750
  }), object({ success: literal(true) }), {
@@ -15469,10 +15765,7 @@ method(object({
15469
15765
  nodeId: string(),
15470
15766
  pinned: boolean(),
15471
15767
  assignedAt: number$1()
15472
- }))), method(object({
15473
- deviceId: number$1(),
15474
- pipelineNodeId: string().optional()
15475
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15768
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15476
15769
  nodeId: string(),
15477
15770
  settings: AgentPipelineSettingsSchema
15478
15771
  })).readonly()), method(object({
@@ -15502,12 +15795,26 @@ method(object({
15502
15795
  }), method(object({
15503
15796
  agentNodeId: string(),
15504
15797
  detect: boolean().nullable().optional(),
15505
- decode: boolean().nullable().optional(),
15506
15798
  audio: boolean().nullable().optional(),
15507
15799
  ingest: boolean().nullable().optional()
15508
15800
  }), object({ success: literal(true) }), {
15509
15801
  kind: "mutation",
15510
15802
  auth: "admin"
15803
+ }), method(object({
15804
+ agentNodeId: string(),
15805
+ reachableHost: string().nullable()
15806
+ }), object({ success: literal(true) }), {
15807
+ kind: "mutation",
15808
+ auth: "admin"
15809
+ }), method(object({ agentNodeId: string() }), object({
15810
+ success: literal(true),
15811
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15812
+ effectiveModelId: string().nullable(),
15813
+ /** Number of cameras whose node-scoped overrides were cleared. */
15814
+ clearedCameraOverrides: number$1()
15815
+ }), {
15816
+ kind: "mutation",
15817
+ auth: "admin"
15511
15818
  }), method(object({ deviceId: number$1() }), CameraPipelineSettingsSchema.nullable()), method(object({
15512
15819
  deviceId: number$1(),
15513
15820
  addonId: string(),
@@ -15552,22 +15859,131 @@ method(object({
15552
15859
  kind: "mutation",
15553
15860
  auth: "admin"
15554
15861
  });
15555
- var RegisteredStreamSchema = object({
15556
- streamId: string(),
15557
- label: string().optional(),
15558
- codec: string(),
15559
- type: _enum(["video", "audio"]),
15560
- sourceUrl: string()
15862
+ /**
15863
+ * server-management — per-NODE singleton capability for a node's ROOT
15864
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15865
+ * agents).
15866
+ *
15867
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15868
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15869
+ * version describes the node. Updates install into
15870
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15871
+ * starter (probation boot + auto-rollback to N-1).
15872
+ *
15873
+ * Providers:
15874
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15875
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15876
+ * unpinned calls.
15877
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15878
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15879
+ * `$hub.registerNode` manifest.
15880
+ *
15881
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15882
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15883
+ * SDK) routes the call to that node's provider via the standard remote
15884
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15885
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15886
+ *
15887
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15888
+ */
15889
+ /**
15890
+ * Where the running hub's code was loaded from:
15891
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15892
+ * plain resolution and runtime updates are refused.
15893
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15894
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15895
+ */
15896
+ var ServerBootModeSchema = _enum([
15897
+ "workspace",
15898
+ "baked",
15899
+ "data-root"
15900
+ ]);
15901
+ /**
15902
+ * Update lifecycle state:
15903
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15904
+ * - `pending-restart` — a version is staged and the node has NOT yet
15905
+ * restarted onto it (still running the OLD version).
15906
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15907
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15908
+ * Apply/rollback are refused in this state and the node must NOT be
15909
+ * manually restarted, or the probation boot auto-rolls-back.
15910
+ */
15911
+ var ServerUpdateStateSchema = _enum([
15912
+ "idle",
15913
+ "checking",
15914
+ "staging",
15915
+ "pending-restart",
15916
+ "awaiting-confirmation"
15917
+ ]);
15918
+ var ServerRollbackInfoSchema = object({
15919
+ /** The version that failed (or was manually rolled back). */
15920
+ fromVersion: string(),
15921
+ /** The version rolled back to; null = the baked seed. */
15922
+ toVersion: string().nullable(),
15923
+ atMs: number$1(),
15924
+ reason: string()
15561
15925
  });
15562
- var ExposedResourceSchema = object({
15563
- streamId: string(),
15564
- format: string(),
15565
- value: string()
15926
+ var ServerPackageStatusSchema = object({
15927
+ /** Root package name (`@camstack/server` on the hub). */
15928
+ packageName: string(),
15929
+ /** Version of the code the running process ACTUALLY loaded. */
15930
+ runningVersion: string().nullable(),
15931
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15932
+ nodeRuntimeVersion: string().nullable(),
15933
+ /** Active data-dir root version; null when booted from seed/workspace. */
15934
+ activeVersion: string().nullable(),
15935
+ /** N-1 version kept for rollback; null when no previous version exists. */
15936
+ previousVersion: string().nullable(),
15937
+ /** Version of the immutable baked seed closure (image fallback). */
15938
+ seedVersion: string().nullable(),
15939
+ /** Latest registry version from the most recent check (null = never checked). */
15940
+ latestVersion: string().nullable(),
15941
+ updateAvailable: boolean(),
15942
+ bootMode: ServerBootModeSchema,
15943
+ updateState: ServerUpdateStateSchema,
15944
+ /** Version staged + awaiting its probation boot, when one is pending. */
15945
+ pendingVersion: string().nullable(),
15946
+ /** Set when the last freshly-activated version failed its boot health-check. */
15947
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15948
+ /**
15949
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15950
+ * hub is running from the baked seed (or workspace) while installed data-dir
15951
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15952
+ */
15953
+ stateFileCorrupt: boolean(),
15954
+ lastCheckedAtMs: number$1().nullable()
15955
+ });
15956
+ var ServerUpdateCheckResultSchema = object({
15957
+ packageName: string(),
15958
+ runningVersion: string().nullable(),
15959
+ latestVersion: string().nullable(),
15960
+ updateAvailable: boolean(),
15961
+ checkedAtMs: number$1(),
15962
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15963
+ error: string().nullable()
15964
+ });
15965
+ var ServerUpdateActionResultSchema = object({
15966
+ accepted: boolean(),
15967
+ targetVersion: string().nullable(),
15968
+ /** True when a graceful restart was scheduled to apply the change. */
15969
+ restarting: boolean(),
15970
+ message: string()
15971
+ });
15972
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15973
+ kind: "mutation",
15974
+ auth: "admin"
15975
+ }), method(object({
15976
+ /** Explicit target version; omitted = latest from the registry. */
15977
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15978
+ kind: "mutation",
15979
+ auth: "admin"
15980
+ }), method(_void(), ServerUpdateActionResultSchema, {
15981
+ kind: "mutation",
15982
+ auth: "admin"
15983
+ }), method(_void(), ServerUpdateActionResultSchema, {
15984
+ kind: "mutation",
15985
+ auth: "admin"
15566
15986
  });
15567
- method(object({
15568
- deviceId: number$1(),
15569
- streams: array(RegisteredStreamSchema).readonly()
15570
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), _void(), { kind: "mutation" }), method(object({ deviceId: number$1() }), array(ExposedResourceSchema).readonly());
15571
15987
  /**
15572
15988
  * Query filter for settings-store collections.
15573
15989
  */
@@ -15720,9 +16136,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15720
16136
  /**
15721
16137
  * A single device snapshot returned as base64 JPEG/PNG.
15722
16138
  *
15723
- * Shared with the `snapshot-provider` collection cap the orchestrator
15724
- * receives the same shape from each native provider and from the
15725
- * broker-based fallback.
16139
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16140
+ * the device-native provider (onboard capture) or from the stream-broker
16141
+ * prebuffer fallback.
15726
16142
  */
15727
16143
  var SnapshotImageSchema = object({
15728
16144
  base64: string(),
@@ -15753,11 +16169,12 @@ DeviceType.Camera, method(object({
15753
16169
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number$1() }), _void(), {
15754
16170
  kind: "mutation",
15755
16171
  auth: "admin"
15756
- });
15757
- method(object({ deviceId: number$1() }), boolean()), method(object({
16172
+ }), systemMethod(object({ deviceIds: array(number$1()).min(1).max(200) }), array(object({
15758
16173
  deviceId: number$1(),
15759
- streamId: string().optional()
15760
- }), SnapshotImageSchema.nullable());
16174
+ lastCapturedAt: number$1().nullable(),
16175
+ cacheAgeMs: number$1().nullable(),
16176
+ etag: string().nullable()
16177
+ })));
15761
16178
  /**
15762
16179
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15763
16180
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16008,10 +16425,32 @@ method(_void(), array(TurnServerSchema).readonly());
16008
16425
  * b. `finishAuthentication({userId, response})` → server verifies
16009
16426
  * the assertion, bumps the credential counter, returns ok.
16010
16427
  *
16428
+ * 2b. Usernameless (discoverable-credential) authentication — the
16429
+ * passkey IS the primary factor, no password leg:
16430
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16431
+ * EMPTY `allowCredentials` (the browser offers every resident
16432
+ * passkey it holds for this RP) + `userVerification: 'required'`
16433
+ * (the passkey replaces both factors, so UV is mandatory).
16434
+ * The challenge is stored server-side, NOT bound to any user.
16435
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16436
+ * resolves the credential by the response's credential id,
16437
+ * verifies the assertion against the stored challenge + that
16438
+ * credential's public key/counter, and returns the OWNING
16439
+ * `userId` — the caller (core auth router) mints the session.
16440
+ *
16011
16441
  * 3. Management:
16012
16442
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16013
16443
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16014
16444
  *
16445
+ * 4. Second-factor preference (opt-in, default OFF):
16446
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16447
+ * demanded as a second factor after a password login ONLY when the
16448
+ * user explicitly opts in via `setSecondFactorPreference`.
16449
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16450
+ * row ⇒ `enabled: false`).
16451
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16452
+ * the providing addon beside its credentials.
16453
+ *
16015
16454
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16016
16455
  * the admin-ui composes the begin/finish round-trip and never exposes
16017
16456
  * the cap to non-admins.
@@ -16054,6 +16493,17 @@ method(object({
16054
16493
  }), object({ verified: boolean() }), {
16055
16494
  kind: "mutation",
16056
16495
  access: "view"
16496
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16497
+ kind: "mutation",
16498
+ access: "view"
16499
+ }), method(object({
16500
+ /** AuthenticationResponseJSON from the browser. */
16501
+ response: record(string(), unknown()) }), object({
16502
+ verified: boolean(),
16503
+ userId: string().nullable()
16504
+ }), {
16505
+ kind: "mutation",
16506
+ access: "view"
16057
16507
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16058
16508
  userId: string(),
16059
16509
  credentialId: string()
@@ -16061,6 +16511,13 @@ method(object({
16061
16511
  kind: "mutation",
16062
16512
  auth: "admin",
16063
16513
  access: "delete"
16514
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16515
+ userId: string(),
16516
+ enabled: boolean()
16517
+ }), object({ success: literal(true) }), {
16518
+ kind: "mutation",
16519
+ auth: "admin",
16520
+ access: "create"
16064
16521
  });
16065
16522
  /**
16066
16523
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16118,9 +16575,10 @@ method(object({
16118
16575
  auth: "admin"
16119
16576
  });
16120
16577
  /**
16121
- * Optional client-side hints sent at session creation to help the
16122
- * provider pick the best native source. All fields are optional —
16123
- * a viewer that knows nothing still gets a sane default.
16578
+ * Optional client-side hints sent at session creation to help the provider
16579
+ * pick the best native source. All fields optional — a viewer that knows
16580
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16581
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16124
16582
  */
16125
16583
  var webrtcClientHintsSchema = object({
16126
16584
  viewportWidth: number$1().int().positive().optional(),
@@ -16131,22 +16589,6 @@ var webrtcClientHintsSchema = object({
16131
16589
  /** Hard tier override; takes precedence over scoring when registered. */
16132
16590
  prefersTier: string().optional()
16133
16591
  }).partial();
16134
- method(object({
16135
- streamId: string(),
16136
- sdpOffer: string()
16137
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16138
- streamId: string(),
16139
- codec: string()
16140
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16141
- streamId: string(),
16142
- hints: webrtcClientHintsSchema.optional()
16143
- }), object({
16144
- sessionId: string(),
16145
- sdpOffer: string()
16146
- }), { kind: "mutation" }), method(object({
16147
- sessionId: string(),
16148
- sdpAnswer: string()
16149
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16150
16592
  /**
16151
16593
  * Discriminated target for a WebRTC session. The client sends this
16152
16594
  * structured object instead of building / parsing brokerId strings;
@@ -16877,7 +17319,17 @@ var FaceInfoSchema = object({
16877
17319
  recognizedIdentityId: string().optional(),
16878
17320
  identityName: string().optional(),
16879
17321
  assigned: boolean(),
16880
- base64: string().optional()
17322
+ base64: string().optional(),
17323
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17324
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17325
+ * legacy rows written before design B. */
17326
+ faceBbox: BoundingBoxSchema.optional(),
17327
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17328
+ * Fetch the native JPEG via the event-media data-plane
17329
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17330
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17331
+ * back to the inline `base64` face crop. */
17332
+ keyFrameMediaKey: string().optional()
16881
17333
  });
16882
17334
  var FaceFilterEnum = _enum([
16883
17335
  "unassigned",
@@ -17574,6 +18026,16 @@ var TopologyCategorySchema = object({
17574
18026
  healthy: number$1(),
17575
18027
  addons: array(TopologyCategoryAddonSchema).readonly()
17576
18028
  });
18029
+ /**
18030
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18031
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18032
+ * version visibility for the Server management surface. Nullable: offline
18033
+ * rows and pre-phase-2 nodes report none.
18034
+ */
18035
+ var TopologyRootPackageSchema = object({
18036
+ name: string(),
18037
+ version: string()
18038
+ });
17577
18039
  var TopologyNodeSchema = object({
17578
18040
  id: string(),
17579
18041
  name: string(),
@@ -17597,7 +18059,8 @@ var TopologyNodeSchema = object({
17597
18059
  status: string()
17598
18060
  })).readonly(),
17599
18061
  processes: array(TopologyProcessSchema).readonly(),
17600
- categories: array(TopologyCategorySchema).readonly()
18062
+ categories: array(TopologyCategorySchema).readonly(),
18063
+ rootPackage: TopologyRootPackageSchema.nullable()
17601
18064
  });
17602
18065
  var CapUsageEdgeSchema = object({
17603
18066
  callerAddonId: string(),
@@ -20397,6 +20860,12 @@ Object.freeze({
20397
20860
  addonId: null,
20398
20861
  access: "create"
20399
20862
  },
20863
+ "loginMethod.getLoginMethods": {
20864
+ capName: "login-method",
20865
+ capScope: "system",
20866
+ addonId: null,
20867
+ access: "view"
20868
+ },
20400
20869
  "mediaPlayer.next": {
20401
20870
  capName: "media-player",
20402
20871
  capScope: "device",
@@ -20979,6 +21448,12 @@ Object.freeze({
20979
21448
  addonId: null,
20980
21449
  access: "view"
20981
21450
  },
21451
+ "pipelineAnalytics.getKeyEvents": {
21452
+ capName: "pipeline-analytics",
21453
+ capScope: "device",
21454
+ addonId: null,
21455
+ access: "view"
21456
+ },
20982
21457
  "pipelineAnalytics.getMotionEvents": {
20983
21458
  capName: "pipeline-analytics",
20984
21459
  capScope: "device",
@@ -21027,23 +21502,23 @@ Object.freeze({
21027
21502
  addonId: null,
21028
21503
  access: "create"
21029
21504
  },
21030
- "pipelineExecutor.deleteModel": {
21505
+ "pipelineExecutor.clearDeviceOverrides": {
21031
21506
  capName: "pipeline-executor",
21032
21507
  capScope: "system",
21033
21508
  addonId: null,
21034
21509
  access: "delete"
21035
21510
  },
21036
- "pipelineExecutor.deleteTemplate": {
21511
+ "pipelineExecutor.deleteModel": {
21037
21512
  capName: "pipeline-executor",
21038
21513
  capScope: "system",
21039
21514
  addonId: null,
21040
21515
  access: "delete"
21041
21516
  },
21042
- "pipelineExecutor.detect": {
21517
+ "pipelineExecutor.deleteTemplate": {
21043
21518
  capName: "pipeline-executor",
21044
21519
  capScope: "system",
21045
21520
  addonId: null,
21046
- access: "view"
21521
+ access: "delete"
21047
21522
  },
21048
21523
  "pipelineExecutor.downloadModel": {
21049
21524
  capName: "pipeline-executor",
@@ -21237,13 +21712,13 @@ Object.freeze({
21237
21712
  addonId: null,
21238
21713
  access: "create"
21239
21714
  },
21240
- "pipelineOrchestrator.assignAudio": {
21241
- capName: "pipeline-orchestrator",
21715
+ "pipelineExecutor.validatePipeline": {
21716
+ capName: "pipeline-executor",
21242
21717
  capScope: "system",
21243
21718
  addonId: null,
21244
- access: "create"
21719
+ access: "view"
21245
21720
  },
21246
- "pipelineOrchestrator.assignDecoder": {
21721
+ "pipelineOrchestrator.assignAudio": {
21247
21722
  capName: "pipeline-orchestrator",
21248
21723
  capScope: "system",
21249
21724
  addonId: null,
@@ -21327,19 +21802,13 @@ Object.freeze({
21327
21802
  addonId: null,
21328
21803
  access: "view"
21329
21804
  },
21330
- "pipelineOrchestrator.getDecoderAssignment": {
21331
- capName: "pipeline-orchestrator",
21332
- capScope: "system",
21333
- addonId: null,
21334
- access: "view"
21335
- },
21336
- "pipelineOrchestrator.getDecoderAssignments": {
21805
+ "pipelineOrchestrator.getGlobalMetrics": {
21337
21806
  capName: "pipeline-orchestrator",
21338
21807
  capScope: "system",
21339
21808
  addonId: null,
21340
21809
  access: "view"
21341
21810
  },
21342
- "pipelineOrchestrator.getGlobalMetrics": {
21811
+ "pipelineOrchestrator.getIngestOwner": {
21343
21812
  capName: "pipeline-orchestrator",
21344
21813
  capScope: "system",
21345
21814
  addonId: null,
@@ -21381,6 +21850,12 @@ Object.freeze({
21381
21850
  addonId: null,
21382
21851
  access: "delete"
21383
21852
  },
21853
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21854
+ capName: "pipeline-orchestrator",
21855
+ capScope: "system",
21856
+ addonId: null,
21857
+ access: "delete"
21858
+ },
21384
21859
  "pipelineOrchestrator.resolvePipeline": {
21385
21860
  capName: "pipeline-orchestrator",
21386
21861
  capScope: "system",
@@ -21417,37 +21892,37 @@ Object.freeze({
21417
21892
  addonId: null,
21418
21893
  access: "create"
21419
21894
  },
21420
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21895
+ "pipelineOrchestrator.setAgentReachableHost": {
21421
21896
  capName: "pipeline-orchestrator",
21422
21897
  capScope: "system",
21423
21898
  addonId: null,
21424
21899
  access: "create"
21425
21900
  },
21426
- "pipelineOrchestrator.setCameraStepOverride": {
21901
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21427
21902
  capName: "pipeline-orchestrator",
21428
21903
  capScope: "system",
21429
21904
  addonId: null,
21430
21905
  access: "create"
21431
21906
  },
21432
- "pipelineOrchestrator.setCameraStepToggle": {
21907
+ "pipelineOrchestrator.setCameraStepOverride": {
21433
21908
  capName: "pipeline-orchestrator",
21434
21909
  capScope: "system",
21435
21910
  addonId: null,
21436
21911
  access: "create"
21437
21912
  },
21438
- "pipelineOrchestrator.setCapabilityBinding": {
21913
+ "pipelineOrchestrator.setCameraStepToggle": {
21439
21914
  capName: "pipeline-orchestrator",
21440
21915
  capScope: "system",
21441
21916
  addonId: null,
21442
21917
  access: "create"
21443
21918
  },
21444
- "pipelineOrchestrator.unassignAudio": {
21919
+ "pipelineOrchestrator.setCapabilityBinding": {
21445
21920
  capName: "pipeline-orchestrator",
21446
21921
  capScope: "system",
21447
21922
  addonId: null,
21448
21923
  access: "create"
21449
21924
  },
21450
- "pipelineOrchestrator.unassignDecoder": {
21925
+ "pipelineOrchestrator.unassignAudio": {
21451
21926
  capName: "pipeline-orchestrator",
21452
21927
  capScope: "system",
21453
21928
  addonId: null,
@@ -21507,12 +21982,24 @@ Object.freeze({
21507
21982
  addonId: null,
21508
21983
  access: "view"
21509
21984
  },
21985
+ "pipelineRunner.getNativeCrop": {
21986
+ capName: "pipeline-runner",
21987
+ capScope: "system",
21988
+ addonId: null,
21989
+ access: "view"
21990
+ },
21510
21991
  "pipelineRunner.reportMotion": {
21511
21992
  capName: "pipeline-runner",
21512
21993
  capScope: "system",
21513
21994
  addonId: null,
21514
21995
  access: "create"
21515
21996
  },
21997
+ "pipelineRunner.runDetailSubtree": {
21998
+ capName: "pipeline-runner",
21999
+ capScope: "system",
22000
+ addonId: null,
22001
+ access: "create"
22002
+ },
21516
22003
  "plateGallery.correctPlateText": {
21517
22004
  capName: "plate-gallery",
21518
22005
  capScope: "system",
@@ -21747,33 +22234,45 @@ Object.freeze({
21747
22234
  addonId: null,
21748
22235
  access: "create"
21749
22236
  },
21750
- "restreamer.getExposedResources": {
21751
- capName: "restreamer",
22237
+ "scriptRunner.run": {
22238
+ capName: "script-runner",
22239
+ capScope: "device",
22240
+ addonId: null,
22241
+ access: "create"
22242
+ },
22243
+ "scriptRunner.stop": {
22244
+ capName: "script-runner",
22245
+ capScope: "device",
22246
+ addonId: null,
22247
+ access: "create"
22248
+ },
22249
+ "serverManagement.applyServerUpdate": {
22250
+ capName: "server-management",
21752
22251
  capScope: "system",
21753
22252
  addonId: null,
21754
- access: "view"
22253
+ access: "create"
21755
22254
  },
21756
- "restreamer.registerDevice": {
21757
- capName: "restreamer",
22255
+ "serverManagement.checkServerUpdate": {
22256
+ capName: "server-management",
21758
22257
  capScope: "system",
21759
22258
  addonId: null,
21760
22259
  access: "create"
21761
22260
  },
21762
- "restreamer.unregisterDevice": {
21763
- capName: "restreamer",
22261
+ "serverManagement.getServerPackageStatus": {
22262
+ capName: "server-management",
21764
22263
  capScope: "system",
21765
22264
  addonId: null,
21766
- access: "delete"
22265
+ access: "view"
21767
22266
  },
21768
- "scriptRunner.run": {
21769
- capName: "script-runner",
21770
- capScope: "device",
22267
+ "serverManagement.restartServer": {
22268
+ capName: "server-management",
22269
+ capScope: "system",
21771
22270
  addonId: null,
21772
22271
  access: "create"
21773
22272
  },
21774
- "scriptRunner.stop": {
21775
- capName: "script-runner",
21776
- capScope: "device",
22273
+ "serverManagement.rollbackServerUpdate": {
22274
+ capName: "server-management",
22275
+ capScope: "system",
21777
22276
  addonId: null,
21778
22277
  access: "create"
21779
22278
  },
@@ -21861,23 +22360,17 @@ Object.freeze({
21861
22360
  addonId: null,
21862
22361
  access: "view"
21863
22362
  },
21864
- "snapshot.invalidateCache": {
22363
+ "snapshot.getSnapshotOverview": {
21865
22364
  capName: "snapshot",
21866
22365
  capScope: "device",
21867
22366
  addonId: null,
21868
- access: "create"
21869
- },
21870
- "snapshotProvider.getSnapshot": {
21871
- capName: "snapshot-provider",
21872
- capScope: "system",
21873
- addonId: null,
21874
22367
  access: "view"
21875
22368
  },
21876
- "snapshotProvider.supportsDevice": {
21877
- capName: "snapshot-provider",
21878
- capScope: "system",
22369
+ "snapshot.invalidateCache": {
22370
+ capName: "snapshot",
22371
+ capScope: "device",
21879
22372
  addonId: null,
21880
- access: "view"
22373
+ access: "create"
21881
22374
  },
21882
22375
  "ssoBridge.signBridgeToken": {
21883
22376
  capName: "sso-bridge",
@@ -22305,30 +22798,6 @@ Object.freeze({
22305
22798
  addonId: null,
22306
22799
  access: "view"
22307
22800
  },
22308
- "streamingEngine.getStreamUrl": {
22309
- capName: "streaming-engine",
22310
- capScope: "system",
22311
- addonId: null,
22312
- access: "view"
22313
- },
22314
- "streamingEngine.listStreams": {
22315
- capName: "streaming-engine",
22316
- capScope: "system",
22317
- addonId: null,
22318
- access: "view"
22319
- },
22320
- "streamingEngine.registerStream": {
22321
- capName: "streaming-engine",
22322
- capScope: "system",
22323
- addonId: null,
22324
- access: "create"
22325
- },
22326
- "streamingEngine.unregisterStream": {
22327
- capName: "streaming-engine",
22328
- capScope: "system",
22329
- addonId: null,
22330
- access: "delete"
22331
- },
22332
22801
  "streamParams.getConfigSchema": {
22333
22802
  capName: "stream-params",
22334
22803
  capScope: "device",
@@ -22575,6 +23044,12 @@ Object.freeze({
22575
23044
  addonId: null,
22576
23045
  access: "view"
22577
23046
  },
23047
+ "userPasskeys.beginDiscoverableAuthentication": {
23048
+ capName: "user-passkeys",
23049
+ capScope: "system",
23050
+ addonId: null,
23051
+ access: "view"
23052
+ },
22578
23053
  "userPasskeys.beginRegistration": {
22579
23054
  capName: "user-passkeys",
22580
23055
  capScope: "system",
@@ -22587,12 +23062,24 @@ Object.freeze({
22587
23062
  addonId: null,
22588
23063
  access: "view"
22589
23064
  },
23065
+ "userPasskeys.finishDiscoverableAuthentication": {
23066
+ capName: "user-passkeys",
23067
+ capScope: "system",
23068
+ addonId: null,
23069
+ access: "view"
23070
+ },
22590
23071
  "userPasskeys.finishRegistration": {
22591
23072
  capName: "user-passkeys",
22592
23073
  capScope: "system",
22593
23074
  addonId: null,
22594
23075
  access: "create"
22595
23076
  },
23077
+ "userPasskeys.getSecondFactorPreference": {
23078
+ capName: "user-passkeys",
23079
+ capScope: "system",
23080
+ addonId: null,
23081
+ access: "view"
23082
+ },
22596
23083
  "userPasskeys.listPasskeys": {
22597
23084
  capName: "user-passkeys",
22598
23085
  capScope: "system",
@@ -22605,6 +23092,12 @@ Object.freeze({
22605
23092
  addonId: null,
22606
23093
  access: "delete"
22607
23094
  },
23095
+ "userPasskeys.setSecondFactorPreference": {
23096
+ capName: "user-passkeys",
23097
+ capScope: "system",
23098
+ addonId: null,
23099
+ access: "create"
23100
+ },
22608
23101
  "vacuumControl.locate": {
22609
23102
  capName: "vacuum-control",
22610
23103
  capScope: "device",
@@ -22677,6 +23170,18 @@ Object.freeze({
22677
23170
  addonId: null,
22678
23171
  access: "view"
22679
23172
  },
23173
+ "viewerUi.getStaticDir": {
23174
+ capName: "viewer-ui",
23175
+ capScope: "system",
23176
+ addonId: null,
23177
+ access: "view"
23178
+ },
23179
+ "viewerUi.getVersion": {
23180
+ capName: "viewer-ui",
23181
+ capScope: "system",
23182
+ addonId: null,
23183
+ access: "view"
23184
+ },
22680
23185
  "waterHeater.setAway": {
22681
23186
  capName: "water-heater",
22682
23187
  capScope: "device",
@@ -22695,54 +23200,6 @@ Object.freeze({
22695
23200
  addonId: null,
22696
23201
  access: "create"
22697
23202
  },
22698
- "webrtc.closeSession": {
22699
- capName: "webrtc",
22700
- capScope: "system",
22701
- addonId: null,
22702
- access: "create"
22703
- },
22704
- "webrtc.createSession": {
22705
- capName: "webrtc",
22706
- capScope: "system",
22707
- addonId: null,
22708
- access: "create"
22709
- },
22710
- "webrtc.handleAnswer": {
22711
- capName: "webrtc",
22712
- capScope: "system",
22713
- addonId: null,
22714
- access: "create"
22715
- },
22716
- "webrtc.handleOffer": {
22717
- capName: "webrtc",
22718
- capScope: "system",
22719
- addonId: null,
22720
- access: "create"
22721
- },
22722
- "webrtc.hasAdaptiveBitrate": {
22723
- capName: "webrtc",
22724
- capScope: "system",
22725
- addonId: null,
22726
- access: "view"
22727
- },
22728
- "webrtc.registerStream": {
22729
- capName: "webrtc",
22730
- capScope: "system",
22731
- addonId: null,
22732
- access: "create"
22733
- },
22734
- "webrtc.supportsStream": {
22735
- capName: "webrtc",
22736
- capScope: "system",
22737
- addonId: null,
22738
- access: "view"
22739
- },
22740
- "webrtc.unregisterStream": {
22741
- capName: "webrtc",
22742
- capScope: "system",
22743
- addonId: null,
22744
- access: "delete"
22745
- },
22746
23203
  "webrtcSession.addIceCandidate": {
22747
23204
  capName: "webrtc-session",
22748
23205
  capScope: "device",