@camstack/addon-post-analysis 1.1.23 → 1.1.24

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.
@@ -4649,7 +4649,7 @@ function _instanceof(cls, params = {}) {
4649
4649
  return inst;
4650
4650
  }
4651
4651
  //#endregion
4652
- //#region ../types/dist/sleep-CZDdRBua.mjs
4652
+ //#region ../types/dist/sleep-b4Jf2n33.mjs
4653
4653
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4654
4654
  EventCategory["SystemBoot"] = "system.boot";
4655
4655
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4835,6 +4835,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4835
4835
  */
4836
4836
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4837
4837
  /**
4838
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4839
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4840
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4841
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4842
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4843
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4844
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4845
+ * topology change, so a dropped event self-heals on the next one (plus the
4846
+ * broker's long backstop reconcile query).
4847
+ */
4848
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4849
+ /**
4838
4850
  * Periodic snapshot of per-node pipeline-runner load
4839
4851
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4840
4852
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5358,10 +5370,6 @@ function hydrateField(field, values) {
5358
5370
  };
5359
5371
  }
5360
5372
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5361
- if (field.type === "password") return {
5362
- ...field,
5363
- value: ""
5364
- };
5365
5373
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5366
5374
  return {
5367
5375
  ...field,
@@ -6750,6 +6758,21 @@ function method(input, output, options) {
6750
6758
  timeoutMs: options?.timeoutMs
6751
6759
  };
6752
6760
  }
6761
+ /**
6762
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6763
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6764
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6765
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6766
+ */
6767
+ function systemMethod(input, output, options) {
6768
+ return {
6769
+ ...method(input, output, options),
6770
+ systemOnly: true
6771
+ };
6772
+ }
6773
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6774
+ var VersionOutputSchema$1 = object({ version: string() });
6775
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6753
6776
  var StaticDirOutputSchema = object({ staticDir: string() });
6754
6777
  var VersionOutputSchema = object({ version: string() });
6755
6778
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6931,6 +6954,36 @@ var ModelFormatsSchema = object({
6931
6954
  tflite: ModelFormatEntrySchema.optional(),
6932
6955
  pt: ModelFormatEntrySchema.optional()
6933
6956
  });
6957
+ /**
6958
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6959
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6960
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6961
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6962
+ * resolution/download/persistence; this is a presentation overlay resolved back
6963
+ * to an `id`.
6964
+ */
6965
+ var ModelVariantGroupSchema = object({
6966
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6967
+ family: string(),
6968
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6969
+ tier: string(),
6970
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6971
+ precision: _enum(["fp32", "int8"]).optional(),
6972
+ /**
6973
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6974
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6975
+ * future performance variants plug into.
6976
+ */
6977
+ optimization: _enum(["standard", "fast"]).optional(),
6978
+ /**
6979
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6980
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6981
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6982
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6983
+ * the group so the selector can offer it as a variant axis.
6984
+ */
6985
+ resolution: number().int().positive().optional()
6986
+ });
6934
6987
  var ModelCatalogEntrySchema = object({
6935
6988
  id: string(),
6936
6989
  name: string(),
@@ -6960,7 +7013,43 @@ var ModelCatalogEntrySchema = object({
6960
7013
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6961
7014
  * Downloaded into the same modelsDir alongside the model file.
6962
7015
  */
6963
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7016
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7017
+ /**
7018
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7019
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7020
+ * model list and excluded from the auto format-default pick. Set on the
7021
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7022
+ * the active lineup stays the coherent curated ladder without deleting a
7023
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7024
+ * an explicit legacy id that has a build for the node's format.
7025
+ */
7026
+ legacy: boolean().optional(),
7027
+ /**
7028
+ * Measured quality/latency metadata — populated from the benchmark addon on
7029
+ * the real node classes. Absent = not yet measured (most entries today; the
7030
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7031
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7032
+ */
7033
+ metrics: object({
7034
+ map50: number().optional(),
7035
+ p95LatencyMs: record(string(), number()).optional()
7036
+ }).optional(),
7037
+ /**
7038
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7039
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7040
+ * the retraining addon and any future commercial distribution.
7041
+ */
7042
+ license: string().optional(),
7043
+ /**
7044
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7045
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7046
+ * of a family's sizes and quantizations collapse into one grouped picker
7047
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7048
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7049
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7050
+ * is a presentation overlay resolved back to an `id`.
7051
+ */
7052
+ group: ModelVariantGroupSchema.optional()
6964
7053
  });
6965
7054
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6966
7055
  format: literal("openvino"),
@@ -7040,8 +7129,8 @@ var RecordingModeSchema = _enum([
7040
7129
  "onAudioThreshold"
7041
7130
  ]);
7042
7131
  /**
7043
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7044
- * reads directly (never inferred from `rules`):
7132
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7133
+ * UI reads directly (never inferred from `rules`):
7045
7134
  * - `off` — not recording.
7046
7135
  * - `events` — record only around triggers (motion / audio threshold),
7047
7136
  * with pre/post-buffer.
@@ -8735,26 +8824,13 @@ DeviceType.Light, method(object({
8735
8824
  percentage: number().min(0).max(100),
8736
8825
  lastChangedAt: number()
8737
8826
  });
8827
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8738
8828
  var StreamFormatSchema = _enum([
8739
8829
  "webrtc",
8740
8830
  "hls",
8741
8831
  "mjpeg",
8742
8832
  "rtsp"
8743
8833
  ]);
8744
- var StreamInfoSchema = object({
8745
- streamId: string(),
8746
- format: StreamFormatSchema,
8747
- url: string().nullable(),
8748
- active: boolean()
8749
- });
8750
- method(object({
8751
- streamId: string(),
8752
- sourceUrl: string(),
8753
- codec: string().optional()
8754
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8755
- streamId: string(),
8756
- format: StreamFormatSchema
8757
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8758
8834
  var RtspRestreamEntrySchema = object({
8759
8835
  brokerId: string(),
8760
8836
  url: string(),
@@ -9419,7 +9495,7 @@ var ConsumablesStatusSchema = object({
9419
9495
  })),
9420
9496
  lastChangedAt: number()
9421
9497
  });
9422
- 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({
9498
+ Object.values(DeviceType), method(object({
9423
9499
  deviceId: number().int().nonnegative(),
9424
9500
  key: string().min(1)
9425
9501
  }), _void(), {
@@ -10334,7 +10410,7 @@ var BoundingBoxSchema = object({
10334
10410
  w: number(),
10335
10411
  h: number()
10336
10412
  });
10337
- var SpatialDetectionSchema = object({
10413
+ object({
10338
10414
  class: string(),
10339
10415
  originalClass: string(),
10340
10416
  score: number(),
@@ -10469,7 +10545,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10469
10545
  enabled: boolean(),
10470
10546
  modelId: string(),
10471
10547
  children: array(PipelineDefaultStepSchema).readonly(),
10472
- engine: PipelineEngineChoiceSchema.optional(),
10473
10548
  group: string().optional(),
10474
10549
  settings: record(string(), unknown()).optional()
10475
10550
  }));
@@ -10494,7 +10569,9 @@ var PipelineModelOptionSchema = object({
10494
10569
  formats: record(string(), object({
10495
10570
  downloaded: boolean(),
10496
10571
  sizeMB: number()
10497
- }))
10572
+ })),
10573
+ group: ModelVariantGroupSchema.optional(),
10574
+ legacy: boolean().optional()
10498
10575
  });
10499
10576
  var ConfigFieldBridge = custom();
10500
10577
  var PipelineAddonSchemaSchema = object({
@@ -10524,11 +10601,6 @@ var PipelineSchemaSchema = object({
10524
10601
  selectedEngine: PipelineEngineChoiceSchema,
10525
10602
  slots: array(PipelineSlotSchemaSchema).readonly()
10526
10603
  });
10527
- var DetectorOutputSchema = object({
10528
- detections: array(SpatialDetectionSchema).readonly(),
10529
- inferenceMs: number(),
10530
- modelId: string()
10531
- });
10532
10604
  var EngineProvisioningSchema = object({
10533
10605
  runtimeId: _enum([
10534
10606
  "onnx",
@@ -10545,15 +10617,42 @@ var EngineProvisioningSchema = object({
10545
10617
  ]),
10546
10618
  progress: number().optional(),
10547
10619
  error: string().optional(),
10548
- nextRetryAt: number().optional()
10620
+ nextRetryAt: number().optional(),
10621
+ /**
10622
+ * Gate A (config-correctness gate at engine change): human-readable
10623
+ * config issues surfaced EAGERLY when the node's engine changes — model
10624
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10625
+ * has a <format> build"). Additive/optional: informational only, never
10626
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10627
+ * Absent/empty when the node-default tree resolves cleanly.
10628
+ */
10629
+ configIssues: array(string()).optional()
10549
10630
  });
10550
10631
  var PipelineStepInputSchema = lazy(() => object({
10551
10632
  addonId: string(),
10552
- modelId: string(),
10633
+ modelId: string().optional(),
10553
10634
  enabled: boolean().default(true),
10554
10635
  children: array(PipelineStepInputSchema).optional(),
10555
10636
  settings: record(string(), unknown()).optional()
10556
10637
  }));
10638
+ var ModelSubstitutionSchema = object({
10639
+ addonId: string(),
10640
+ chosen: string(),
10641
+ running: string(),
10642
+ format: string()
10643
+ });
10644
+ var PipelineValidationIssueSchema = object({
10645
+ addonId: string(),
10646
+ kind: _enum(["unknown-addon", "no-format-build"]),
10647
+ detail: string()
10648
+ });
10649
+ var PipelineValidationResultSchema = object({
10650
+ ok: boolean(),
10651
+ issues: array(PipelineValidationIssueSchema).readonly(),
10652
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10653
+ /** The node's `currentEngine.format` this validation ran against. */
10654
+ format: string()
10655
+ });
10557
10656
  var ReferenceImageEntrySchema = object({
10558
10657
  filename: string(),
10559
10658
  stepIds: array(string()).readonly().optional()
@@ -10624,7 +10723,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10624
10723
  })) }), object({ success: literal(true) }), {
10625
10724
  kind: "mutation",
10626
10725
  auth: "admin"
10627
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10726
+ }), method(object({ nodeId: string() }), object({
10727
+ success: literal(true),
10728
+ clearedDevices: number()
10729
+ }), {
10730
+ kind: "mutation",
10731
+ auth: "admin"
10732
+ }), 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({
10628
10733
  name: string(),
10629
10734
  steps: array(PipelineTemplateStepSchema).readonly(),
10630
10735
  engine: PipelineEngineChoiceSchema
@@ -10641,10 +10746,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10641
10746
  modelId: string(),
10642
10747
  format: ModelFormatSchema$1
10643
10748
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10644
- addonId: string(),
10645
- frame: FrameInputSchema,
10646
- config: record(string(), unknown()).optional()
10647
- }), DetectorOutputSchema), method(object({
10648
10749
  engine: PipelineEngineChoiceSchema.optional(),
10649
10750
  steps: array(PipelineStepInputSchema).min(1),
10650
10751
  frame: FrameInputSchema.optional(),
@@ -10884,6 +10985,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10884
10985
  kind: literal("remote-restream"),
10885
10986
  /** The camera's source-owner node (slice 1: always the hub). */
10886
10987
  ownerNodeId: string(),
10988
+ /**
10989
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10990
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10991
+ * dials THIS host for the owner's restream, in preference to the
10992
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10993
+ */
10994
+ ownerReachableHost: string().optional(),
10887
10995
  /** Operator override for the owner host the runner dials. */
10888
10996
  hubHostnameOverride: string().optional()
10889
10997
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10892,13 +11000,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10892
11000
  * specific runner instance via `attachCamera`. Carries everything the
10893
11001
  * runner needs to subscribe to the local broker and execute inference.
10894
11002
  *
10895
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10896
- * optional `audio`) travels with the attach payload. The runner keeps it
10897
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10898
- * restart the orchestrator re-sends the latest snapshot.
10899
- *
10900
- * `engine`/`steps`/`audio` are optional during the additive migration
10901
- * window; once orchestrator + UI are migrated they become required.
11003
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
11004
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
11005
+ * for the lifetime of the attach — on rebalance, edit, or restart the
11006
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
11007
+ * node-local, resolved by the executing runner at dispatch time.
10902
11008
  */
10903
11009
  var RunnerCameraConfigSchema = object({
10904
11010
  deviceId: number(),
@@ -10949,14 +11055,11 @@ var RunnerCameraConfigSchema = object({
10949
11055
  */
10950
11056
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10951
11057
  pipelineEnabled: boolean().default(true),
10952
- /** Engine choice for video steps (runtime+backend+format). */
10953
- engine: PipelineEngineChoiceSchema.optional(),
10954
11058
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10955
11059
  steps: array(PipelineStepInputSchema).readonly().optional(),
10956
11060
  /** Audio classification branch. `enabled:false` disables, null skips. */
10957
11061
  audio: object({
10958
- engine: PipelineEngineChoiceSchema,
10959
- modelId: string(),
11062
+ modelId: string().optional(),
10960
11063
  enabled: boolean()
10961
11064
  }).nullable().optional(),
10962
11065
  /**
@@ -12386,7 +12489,9 @@ var AddonPageDeclarationSchema$1 = object({
12386
12489
  icon: string(),
12387
12490
  path: string(),
12388
12491
  remoteName: string(),
12389
- bundle: string()
12492
+ bundle: string(),
12493
+ section: string().optional(),
12494
+ sectionLabel: string().optional()
12390
12495
  });
12391
12496
  var AddonPageInfoSchema = object({
12392
12497
  addonId: string(),
@@ -12426,7 +12531,18 @@ var AddonPageDeclarationSchema = object({
12426
12531
  * the static-file route can compute an mtime-based cache-buster URL
12427
12532
  * without a separate filesystem stat.
12428
12533
  */
12429
- bundle: string()
12534
+ bundle: string(),
12535
+ /**
12536
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12537
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12538
+ * Any OTHER string creates (or joins) a custom section rendered after
12539
+ * the built-in groups; its label comes from `sectionLabel` (first
12540
+ * declaration wins), falling back to the id. Absent → the legacy
12541
+ * "Addon Pages" group.
12542
+ */
12543
+ section: string().optional(),
12544
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12545
+ sectionLabel: string().optional()
12430
12546
  });
12431
12547
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12432
12548
  var AddonHttpRouteSchema = object({
@@ -12642,6 +12758,17 @@ var WidgetMetadataSchema = object({
12642
12758
  deviceContext: boolean().default(false),
12643
12759
  integrationContext: boolean().default(false)
12644
12760
  }),
12761
+ /**
12762
+ * Loadable BEFORE authentication. The normal widget registry listing
12763
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12764
+ * (the login page) cannot discover a widget through it. A widget that
12765
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12766
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12767
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12768
+ * than the authenticated registry, and its bundle is served by the
12769
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12770
+ */
12771
+ preAuth: boolean().optional().default(false),
12645
12772
  /** Dashboard placement HINTS (operator can override per instance). */
12646
12773
  defaultSize: WidgetSizeEnum.default("md"),
12647
12774
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12949,6 +13076,66 @@ method(object({
12949
13076
  password: string()
12950
13077
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12951
13078
  /**
13079
+ * `login-method` — collection cap through which auth addons contribute
13080
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13081
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13082
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13083
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13084
+ * procedure aggregates them for the unauthenticated login page.
13085
+ *
13086
+ * A contribution is a discriminated union on `kind`:
13087
+ *
13088
+ * - `redirect` — a declarative button. The login page renders a generic
13089
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13090
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13091
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13092
+ * login page needs NO change.
13093
+ *
13094
+ * - `widget` — a Module-Federation widget the login page mounts (via
13095
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13096
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13097
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13098
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13099
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13100
+ *
13101
+ * Every contribution carries a `stage`:
13102
+ * - `primary` — shown on the first credentials screen (OIDC /
13103
+ * magic-link buttons; a future usernameless passkey).
13104
+ * - `second-factor` — shown AFTER the password leg, gated on the
13105
+ * returned `factors` (passkey-as-2FA today).
13106
+ *
13107
+ * `mount: skip` — the cap is read server-side by the core auth router
13108
+ * (`registry.getCollection('login-method')`), never mounted as its own
13109
+ * tRPC router.
13110
+ */
13111
+ /** When a login method renders in the two-phase login flow. */
13112
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13113
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13114
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13115
+ kind: literal("redirect"),
13116
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13117
+ id: string(),
13118
+ /** Operator-facing button label. */
13119
+ label: string(),
13120
+ /** lucide-react icon name. */
13121
+ icon: string().optional(),
13122
+ /** Addon-owned HTTP route the button navigates to (GET). */
13123
+ startUrl: string(),
13124
+ stage: LoginStageEnum
13125
+ }), object({
13126
+ kind: literal("widget"),
13127
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13128
+ id: string(),
13129
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13130
+ addonId: string(),
13131
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13132
+ bundle: string(),
13133
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13134
+ remote: WidgetRemoteSchema,
13135
+ stage: LoginStageEnum
13136
+ })]);
13137
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13138
+ /**
12952
13139
  * Orchestrator-side destination metadata. The orchestrator computes
12953
13140
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12954
13141
  * (admin UI, restore flow) see one canonical key.
@@ -15305,11 +15492,11 @@ var pipelineAnalyticsCapability = {
15305
15492
  }
15306
15493
  };
15307
15494
  var CameraPipelineConfigSchema = object({
15308
- engine: PipelineEngineChoiceSchema,
15495
+ engine: PipelineEngineChoiceSchema.optional(),
15309
15496
  steps: array(PipelineStepInputSchema).readonly(),
15310
15497
  audio: object({
15311
- engine: PipelineEngineChoiceSchema,
15312
- modelId: string(),
15498
+ engine: PipelineEngineChoiceSchema.optional(),
15499
+ modelId: string().optional(),
15313
15500
  enabled: boolean(),
15314
15501
  settings: record(string(), unknown()).readonly().optional()
15315
15502
  }).nullable().optional()
@@ -15324,7 +15511,7 @@ var PipelineTemplateSchema = object({
15324
15511
  });
15325
15512
  var AgentAddonConfigSchema = object({
15326
15513
  enabled: boolean(),
15327
- modelId: string(),
15514
+ modelId: string().optional(),
15328
15515
  settings: record(string(), unknown()).readonly()
15329
15516
  });
15330
15517
  var AgentPipelineSettingsSchema = object({
@@ -15334,12 +15521,25 @@ var AgentPipelineSettingsSchema = object({
15334
15521
  detectWeight: number().positive().optional(),
15335
15522
  /** Node is eligible to run the detection pipeline (decode + inference). */
15336
15523
  detect: boolean().optional(),
15337
- /** Node is eligible to host decoder sessions. */
15524
+ /**
15525
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15526
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15527
+ * the schema ONLY so persisted stores written before the removal still
15528
+ * parse — no code reads it and no write path emits it.
15529
+ */
15338
15530
  decode: boolean().optional(),
15339
15531
  /** Node is eligible to run audio-analyzer sessions. */
15340
15532
  audio: boolean().optional(),
15341
15533
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15342
- ingest: boolean().optional()
15534
+ ingest: boolean().optional(),
15535
+ /**
15536
+ * Operator override for the LAN host a cross-node decoder dials to reach
15537
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15538
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15539
+ * it already uses to reach the hub). Set this only when the auto-detected
15540
+ * address is wrong (multi-homed host, NAT, custom interface).
15541
+ */
15542
+ reachableHost: string().optional()
15343
15543
  });
15344
15544
  var CameraPipelineForAgentSchema = object({
15345
15545
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15387,25 +15587,6 @@ var PipelineAssignmentSchema = object({
15387
15587
  assignedAt: number()
15388
15588
  });
15389
15589
  /**
15390
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15391
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15392
- * → co-located with pipeline → capacity).
15393
- */
15394
- var DecoderAssignmentSchema = object({
15395
- deviceId: number(),
15396
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15397
- decoderNodeId: string(),
15398
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15399
- pinned: boolean(),
15400
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15401
- reason: _enum([
15402
- "manual",
15403
- "co-located",
15404
- "capacity",
15405
- "hardware-affinity"
15406
- ])
15407
- });
15408
- /**
15409
15590
  * Per-agent load summary surfaced to the load balancer + dashboards.
15410
15591
  * Aggregated from each runner's `getLocalLoad` cap call.
15411
15592
  */
@@ -15445,6 +15626,15 @@ var GlobalMetricsSchema = object({
15445
15626
  * capability providers.
15446
15627
  */
15447
15628
  var CapabilityBindingsSchema = record(string(), string());
15629
+ /**
15630
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15631
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15632
+ */
15633
+ var IngestOwnerSchema = object({
15634
+ ownerNodeId: string(),
15635
+ reachableHost: string().optional(),
15636
+ configIssue: string().optional()
15637
+ });
15448
15638
  /** Source block — always present; derives from the stream catalog. */
15449
15639
  var CameraSourceStatusSchema = object({ streams: array(object({
15450
15640
  camStreamId: string(),
@@ -15459,6 +15649,14 @@ var CameraAssignmentStatusSchema = object({
15459
15649
  detectionNodeId: string().nullable(),
15460
15650
  decoderNodeId: string().nullable(),
15461
15651
  audioNodeId: string().nullable(),
15652
+ /**
15653
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15654
+ * hosts the broker/restream) — the cluster ingest owner today
15655
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15656
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15657
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15658
+ */
15659
+ sourceNodeId: string().nullable(),
15462
15660
  pinned: object({
15463
15661
  detection: boolean(),
15464
15662
  decoder: boolean(),
@@ -15591,16 +15789,7 @@ method(object({
15591
15789
  }), object({ success: literal(true) }), {
15592
15790
  kind: "mutation",
15593
15791
  auth: "admin"
15594
- }), method(object({
15595
- deviceId: number(),
15596
- nodeId: string()
15597
- }), _void(), {
15598
- kind: "mutation",
15599
- auth: "admin"
15600
- }), method(object({ deviceId: number() }), _void(), {
15601
- kind: "mutation",
15602
- auth: "admin"
15603
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15792
+ }), method(_void(), IngestOwnerSchema), method(object({
15604
15793
  deviceId: number(),
15605
15794
  nodeId: string()
15606
15795
  }), object({ success: literal(true) }), {
@@ -15621,10 +15810,7 @@ method(object({
15621
15810
  nodeId: string(),
15622
15811
  pinned: boolean(),
15623
15812
  assignedAt: number()
15624
- }))), method(object({
15625
- deviceId: number(),
15626
- pipelineNodeId: string().optional()
15627
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15813
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15628
15814
  nodeId: string(),
15629
15815
  settings: AgentPipelineSettingsSchema
15630
15816
  })).readonly()), method(object({
@@ -15654,12 +15840,26 @@ method(object({
15654
15840
  }), method(object({
15655
15841
  agentNodeId: string(),
15656
15842
  detect: boolean().nullable().optional(),
15657
- decode: boolean().nullable().optional(),
15658
15843
  audio: boolean().nullable().optional(),
15659
15844
  ingest: boolean().nullable().optional()
15660
15845
  }), object({ success: literal(true) }), {
15661
15846
  kind: "mutation",
15662
15847
  auth: "admin"
15848
+ }), method(object({
15849
+ agentNodeId: string(),
15850
+ reachableHost: string().nullable()
15851
+ }), object({ success: literal(true) }), {
15852
+ kind: "mutation",
15853
+ auth: "admin"
15854
+ }), method(object({ agentNodeId: string() }), object({
15855
+ success: literal(true),
15856
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15857
+ effectiveModelId: string().nullable(),
15858
+ /** Number of cameras whose node-scoped overrides were cleared. */
15859
+ clearedCameraOverrides: number()
15860
+ }), {
15861
+ kind: "mutation",
15862
+ auth: "admin"
15663
15863
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15664
15864
  deviceId: number(),
15665
15865
  addonId: string(),
@@ -15704,22 +15904,131 @@ method(object({
15704
15904
  kind: "mutation",
15705
15905
  auth: "admin"
15706
15906
  });
15707
- var RegisteredStreamSchema = object({
15708
- streamId: string(),
15709
- label: string().optional(),
15710
- codec: string(),
15711
- type: _enum(["video", "audio"]),
15712
- sourceUrl: string()
15907
+ /**
15908
+ * server-management — per-NODE singleton capability for a node's ROOT
15909
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15910
+ * agents).
15911
+ *
15912
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15913
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15914
+ * version describes the node. Updates install into
15915
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15916
+ * starter (probation boot + auto-rollback to N-1).
15917
+ *
15918
+ * Providers:
15919
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15920
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15921
+ * unpinned calls.
15922
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15923
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15924
+ * `$hub.registerNode` manifest.
15925
+ *
15926
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15927
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15928
+ * SDK) routes the call to that node's provider via the standard remote
15929
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15930
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15931
+ *
15932
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15933
+ */
15934
+ /**
15935
+ * Where the running hub's code was loaded from:
15936
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15937
+ * plain resolution and runtime updates are refused.
15938
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15939
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15940
+ */
15941
+ var ServerBootModeSchema = _enum([
15942
+ "workspace",
15943
+ "baked",
15944
+ "data-root"
15945
+ ]);
15946
+ /**
15947
+ * Update lifecycle state:
15948
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15949
+ * - `pending-restart` — a version is staged and the node has NOT yet
15950
+ * restarted onto it (still running the OLD version).
15951
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15952
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15953
+ * Apply/rollback are refused in this state and the node must NOT be
15954
+ * manually restarted, or the probation boot auto-rolls-back.
15955
+ */
15956
+ var ServerUpdateStateSchema = _enum([
15957
+ "idle",
15958
+ "checking",
15959
+ "staging",
15960
+ "pending-restart",
15961
+ "awaiting-confirmation"
15962
+ ]);
15963
+ var ServerRollbackInfoSchema = object({
15964
+ /** The version that failed (or was manually rolled back). */
15965
+ fromVersion: string(),
15966
+ /** The version rolled back to; null = the baked seed. */
15967
+ toVersion: string().nullable(),
15968
+ atMs: number(),
15969
+ reason: string()
15713
15970
  });
15714
- var ExposedResourceSchema = object({
15715
- streamId: string(),
15716
- format: string(),
15717
- value: string()
15971
+ var ServerPackageStatusSchema = object({
15972
+ /** Root package name (`@camstack/server` on the hub). */
15973
+ packageName: string(),
15974
+ /** Version of the code the running process ACTUALLY loaded. */
15975
+ runningVersion: string().nullable(),
15976
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15977
+ nodeRuntimeVersion: string().nullable(),
15978
+ /** Active data-dir root version; null when booted from seed/workspace. */
15979
+ activeVersion: string().nullable(),
15980
+ /** N-1 version kept for rollback; null when no previous version exists. */
15981
+ previousVersion: string().nullable(),
15982
+ /** Version of the immutable baked seed closure (image fallback). */
15983
+ seedVersion: string().nullable(),
15984
+ /** Latest registry version from the most recent check (null = never checked). */
15985
+ latestVersion: string().nullable(),
15986
+ updateAvailable: boolean(),
15987
+ bootMode: ServerBootModeSchema,
15988
+ updateState: ServerUpdateStateSchema,
15989
+ /** Version staged + awaiting its probation boot, when one is pending. */
15990
+ pendingVersion: string().nullable(),
15991
+ /** Set when the last freshly-activated version failed its boot health-check. */
15992
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15993
+ /**
15994
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15995
+ * hub is running from the baked seed (or workspace) while installed data-dir
15996
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15997
+ */
15998
+ stateFileCorrupt: boolean(),
15999
+ lastCheckedAtMs: number().nullable()
16000
+ });
16001
+ var ServerUpdateCheckResultSchema = object({
16002
+ packageName: string(),
16003
+ runningVersion: string().nullable(),
16004
+ latestVersion: string().nullable(),
16005
+ updateAvailable: boolean(),
16006
+ checkedAtMs: number(),
16007
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
16008
+ error: string().nullable()
16009
+ });
16010
+ var ServerUpdateActionResultSchema = object({
16011
+ accepted: boolean(),
16012
+ targetVersion: string().nullable(),
16013
+ /** True when a graceful restart was scheduled to apply the change. */
16014
+ restarting: boolean(),
16015
+ message: string()
16016
+ });
16017
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
16018
+ kind: "mutation",
16019
+ auth: "admin"
16020
+ }), method(object({
16021
+ /** Explicit target version; omitted = latest from the registry. */
16022
+ version: string().optional() }), ServerUpdateActionResultSchema, {
16023
+ kind: "mutation",
16024
+ auth: "admin"
16025
+ }), method(_void(), ServerUpdateActionResultSchema, {
16026
+ kind: "mutation",
16027
+ auth: "admin"
16028
+ }), method(_void(), ServerUpdateActionResultSchema, {
16029
+ kind: "mutation",
16030
+ auth: "admin"
15718
16031
  });
15719
- method(object({
15720
- deviceId: number(),
15721
- streams: array(RegisteredStreamSchema).readonly()
15722
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15723
16032
  /**
15724
16033
  * Query filter for settings-store collections.
15725
16034
  */
@@ -15872,9 +16181,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15872
16181
  /**
15873
16182
  * A single device snapshot returned as base64 JPEG/PNG.
15874
16183
  *
15875
- * Shared with the `snapshot-provider` collection cap the orchestrator
15876
- * receives the same shape from each native provider and from the
15877
- * broker-based fallback.
16184
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16185
+ * the device-native provider (onboard capture) or from the stream-broker
16186
+ * prebuffer fallback.
15878
16187
  */
15879
16188
  var SnapshotImageSchema = object({
15880
16189
  base64: string(),
@@ -15905,11 +16214,12 @@ DeviceType.Camera, method(object({
15905
16214
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15906
16215
  kind: "mutation",
15907
16216
  auth: "admin"
15908
- });
15909
- method(object({ deviceId: number() }), boolean()), method(object({
16217
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15910
16218
  deviceId: number(),
15911
- streamId: string().optional()
15912
- }), SnapshotImageSchema.nullable());
16219
+ lastCapturedAt: number().nullable(),
16220
+ cacheAgeMs: number().nullable(),
16221
+ etag: string().nullable()
16222
+ })));
15913
16223
  /**
15914
16224
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15915
16225
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16160,10 +16470,32 @@ method(_void(), array(TurnServerSchema).readonly());
16160
16470
  * b. `finishAuthentication({userId, response})` → server verifies
16161
16471
  * the assertion, bumps the credential counter, returns ok.
16162
16472
  *
16473
+ * 2b. Usernameless (discoverable-credential) authentication — the
16474
+ * passkey IS the primary factor, no password leg:
16475
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16476
+ * EMPTY `allowCredentials` (the browser offers every resident
16477
+ * passkey it holds for this RP) + `userVerification: 'required'`
16478
+ * (the passkey replaces both factors, so UV is mandatory).
16479
+ * The challenge is stored server-side, NOT bound to any user.
16480
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16481
+ * resolves the credential by the response's credential id,
16482
+ * verifies the assertion against the stored challenge + that
16483
+ * credential's public key/counter, and returns the OWNING
16484
+ * `userId` — the caller (core auth router) mints the session.
16485
+ *
16163
16486
  * 3. Management:
16164
16487
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16165
16488
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16166
16489
  *
16490
+ * 4. Second-factor preference (opt-in, default OFF):
16491
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16492
+ * demanded as a second factor after a password login ONLY when the
16493
+ * user explicitly opts in via `setSecondFactorPreference`.
16494
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16495
+ * row ⇒ `enabled: false`).
16496
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16497
+ * the providing addon beside its credentials.
16498
+ *
16167
16499
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16168
16500
  * the admin-ui composes the begin/finish round-trip and never exposes
16169
16501
  * the cap to non-admins.
@@ -16206,6 +16538,17 @@ method(object({
16206
16538
  }), object({ verified: boolean() }), {
16207
16539
  kind: "mutation",
16208
16540
  access: "view"
16541
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16542
+ kind: "mutation",
16543
+ access: "view"
16544
+ }), method(object({
16545
+ /** AuthenticationResponseJSON from the browser. */
16546
+ response: record(string(), unknown()) }), object({
16547
+ verified: boolean(),
16548
+ userId: string().nullable()
16549
+ }), {
16550
+ kind: "mutation",
16551
+ access: "view"
16209
16552
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16210
16553
  userId: string(),
16211
16554
  credentialId: string()
@@ -16213,6 +16556,13 @@ method(object({
16213
16556
  kind: "mutation",
16214
16557
  auth: "admin",
16215
16558
  access: "delete"
16559
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16560
+ userId: string(),
16561
+ enabled: boolean()
16562
+ }), object({ success: literal(true) }), {
16563
+ kind: "mutation",
16564
+ auth: "admin",
16565
+ access: "create"
16216
16566
  });
16217
16567
  /**
16218
16568
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16280,9 +16630,10 @@ var videoclipsCapability = {
16280
16630
  }
16281
16631
  };
16282
16632
  /**
16283
- * Optional client-side hints sent at session creation to help the
16284
- * provider pick the best native source. All fields are optional —
16285
- * a viewer that knows nothing still gets a sane default.
16633
+ * Optional client-side hints sent at session creation to help the provider
16634
+ * pick the best native source. All fields optional — a viewer that knows
16635
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16636
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16286
16637
  */
16287
16638
  var webrtcClientHintsSchema = object({
16288
16639
  viewportWidth: number().int().positive().optional(),
@@ -16293,22 +16644,6 @@ var webrtcClientHintsSchema = object({
16293
16644
  /** Hard tier override; takes precedence over scoring when registered. */
16294
16645
  prefersTier: string().optional()
16295
16646
  }).partial();
16296
- method(object({
16297
- streamId: string(),
16298
- sdpOffer: string()
16299
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16300
- streamId: string(),
16301
- codec: string()
16302
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16303
- streamId: string(),
16304
- hints: webrtcClientHintsSchema.optional()
16305
- }), object({
16306
- sessionId: string(),
16307
- sdpOffer: string()
16308
- }), { kind: "mutation" }), method(object({
16309
- sessionId: string(),
16310
- sdpAnswer: string()
16311
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16312
16647
  /**
16313
16648
  * Discriminated target for a WebRTC session. The client sends this
16314
16649
  * structured object instead of building / parsing brokerId strings;
@@ -17762,6 +18097,16 @@ var TopologyCategorySchema = object({
17762
18097
  healthy: number(),
17763
18098
  addons: array(TopologyCategoryAddonSchema).readonly()
17764
18099
  });
18100
+ /**
18101
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18102
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18103
+ * version visibility for the Server management surface. Nullable: offline
18104
+ * rows and pre-phase-2 nodes report none.
18105
+ */
18106
+ var TopologyRootPackageSchema = object({
18107
+ name: string(),
18108
+ version: string()
18109
+ });
17765
18110
  var TopologyNodeSchema = object({
17766
18111
  id: string(),
17767
18112
  name: string(),
@@ -17785,7 +18130,8 @@ var TopologyNodeSchema = object({
17785
18130
  status: string()
17786
18131
  })).readonly(),
17787
18132
  processes: array(TopologyProcessSchema).readonly(),
17788
- categories: array(TopologyCategorySchema).readonly()
18133
+ categories: array(TopologyCategorySchema).readonly(),
18134
+ rootPackage: TopologyRootPackageSchema.nullable()
17789
18135
  });
17790
18136
  var CapUsageEdgeSchema = object({
17791
18137
  callerAddonId: string(),
@@ -20609,6 +20955,12 @@ Object.freeze({
20609
20955
  addonId: null,
20610
20956
  access: "create"
20611
20957
  },
20958
+ "loginMethod.getLoginMethods": {
20959
+ capName: "login-method",
20960
+ capScope: "system",
20961
+ addonId: null,
20962
+ access: "view"
20963
+ },
20612
20964
  "mediaPlayer.next": {
20613
20965
  capName: "media-player",
20614
20966
  capScope: "device",
@@ -21239,23 +21591,23 @@ Object.freeze({
21239
21591
  addonId: null,
21240
21592
  access: "create"
21241
21593
  },
21242
- "pipelineExecutor.deleteModel": {
21594
+ "pipelineExecutor.clearDeviceOverrides": {
21243
21595
  capName: "pipeline-executor",
21244
21596
  capScope: "system",
21245
21597
  addonId: null,
21246
21598
  access: "delete"
21247
21599
  },
21248
- "pipelineExecutor.deleteTemplate": {
21600
+ "pipelineExecutor.deleteModel": {
21249
21601
  capName: "pipeline-executor",
21250
21602
  capScope: "system",
21251
21603
  addonId: null,
21252
21604
  access: "delete"
21253
21605
  },
21254
- "pipelineExecutor.detect": {
21606
+ "pipelineExecutor.deleteTemplate": {
21255
21607
  capName: "pipeline-executor",
21256
21608
  capScope: "system",
21257
21609
  addonId: null,
21258
- access: "view"
21610
+ access: "delete"
21259
21611
  },
21260
21612
  "pipelineExecutor.downloadModel": {
21261
21613
  capName: "pipeline-executor",
@@ -21449,13 +21801,13 @@ Object.freeze({
21449
21801
  addonId: null,
21450
21802
  access: "create"
21451
21803
  },
21452
- "pipelineOrchestrator.assignAudio": {
21453
- capName: "pipeline-orchestrator",
21804
+ "pipelineExecutor.validatePipeline": {
21805
+ capName: "pipeline-executor",
21454
21806
  capScope: "system",
21455
21807
  addonId: null,
21456
- access: "create"
21808
+ access: "view"
21457
21809
  },
21458
- "pipelineOrchestrator.assignDecoder": {
21810
+ "pipelineOrchestrator.assignAudio": {
21459
21811
  capName: "pipeline-orchestrator",
21460
21812
  capScope: "system",
21461
21813
  addonId: null,
@@ -21539,19 +21891,13 @@ Object.freeze({
21539
21891
  addonId: null,
21540
21892
  access: "view"
21541
21893
  },
21542
- "pipelineOrchestrator.getDecoderAssignment": {
21543
- capName: "pipeline-orchestrator",
21544
- capScope: "system",
21545
- addonId: null,
21546
- access: "view"
21547
- },
21548
- "pipelineOrchestrator.getDecoderAssignments": {
21894
+ "pipelineOrchestrator.getGlobalMetrics": {
21549
21895
  capName: "pipeline-orchestrator",
21550
21896
  capScope: "system",
21551
21897
  addonId: null,
21552
21898
  access: "view"
21553
21899
  },
21554
- "pipelineOrchestrator.getGlobalMetrics": {
21900
+ "pipelineOrchestrator.getIngestOwner": {
21555
21901
  capName: "pipeline-orchestrator",
21556
21902
  capScope: "system",
21557
21903
  addonId: null,
@@ -21593,6 +21939,12 @@ Object.freeze({
21593
21939
  addonId: null,
21594
21940
  access: "delete"
21595
21941
  },
21942
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21943
+ capName: "pipeline-orchestrator",
21944
+ capScope: "system",
21945
+ addonId: null,
21946
+ access: "delete"
21947
+ },
21596
21948
  "pipelineOrchestrator.resolvePipeline": {
21597
21949
  capName: "pipeline-orchestrator",
21598
21950
  capScope: "system",
@@ -21629,37 +21981,37 @@ Object.freeze({
21629
21981
  addonId: null,
21630
21982
  access: "create"
21631
21983
  },
21632
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21984
+ "pipelineOrchestrator.setAgentReachableHost": {
21633
21985
  capName: "pipeline-orchestrator",
21634
21986
  capScope: "system",
21635
21987
  addonId: null,
21636
21988
  access: "create"
21637
21989
  },
21638
- "pipelineOrchestrator.setCameraStepOverride": {
21990
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21639
21991
  capName: "pipeline-orchestrator",
21640
21992
  capScope: "system",
21641
21993
  addonId: null,
21642
21994
  access: "create"
21643
21995
  },
21644
- "pipelineOrchestrator.setCameraStepToggle": {
21996
+ "pipelineOrchestrator.setCameraStepOverride": {
21645
21997
  capName: "pipeline-orchestrator",
21646
21998
  capScope: "system",
21647
21999
  addonId: null,
21648
22000
  access: "create"
21649
22001
  },
21650
- "pipelineOrchestrator.setCapabilityBinding": {
22002
+ "pipelineOrchestrator.setCameraStepToggle": {
21651
22003
  capName: "pipeline-orchestrator",
21652
22004
  capScope: "system",
21653
22005
  addonId: null,
21654
22006
  access: "create"
21655
22007
  },
21656
- "pipelineOrchestrator.unassignAudio": {
22008
+ "pipelineOrchestrator.setCapabilityBinding": {
21657
22009
  capName: "pipeline-orchestrator",
21658
22010
  capScope: "system",
21659
22011
  addonId: null,
21660
22012
  access: "create"
21661
22013
  },
21662
- "pipelineOrchestrator.unassignDecoder": {
22014
+ "pipelineOrchestrator.unassignAudio": {
21663
22015
  capName: "pipeline-orchestrator",
21664
22016
  capScope: "system",
21665
22017
  addonId: null,
@@ -21959,33 +22311,45 @@ Object.freeze({
21959
22311
  addonId: null,
21960
22312
  access: "create"
21961
22313
  },
21962
- "restreamer.getExposedResources": {
21963
- capName: "restreamer",
22314
+ "scriptRunner.run": {
22315
+ capName: "script-runner",
22316
+ capScope: "device",
22317
+ addonId: null,
22318
+ access: "create"
22319
+ },
22320
+ "scriptRunner.stop": {
22321
+ capName: "script-runner",
22322
+ capScope: "device",
22323
+ addonId: null,
22324
+ access: "create"
22325
+ },
22326
+ "serverManagement.applyServerUpdate": {
22327
+ capName: "server-management",
21964
22328
  capScope: "system",
21965
22329
  addonId: null,
21966
- access: "view"
22330
+ access: "create"
21967
22331
  },
21968
- "restreamer.registerDevice": {
21969
- capName: "restreamer",
22332
+ "serverManagement.checkServerUpdate": {
22333
+ capName: "server-management",
21970
22334
  capScope: "system",
21971
22335
  addonId: null,
21972
22336
  access: "create"
21973
22337
  },
21974
- "restreamer.unregisterDevice": {
21975
- capName: "restreamer",
22338
+ "serverManagement.getServerPackageStatus": {
22339
+ capName: "server-management",
21976
22340
  capScope: "system",
21977
22341
  addonId: null,
21978
- access: "delete"
22342
+ access: "view"
21979
22343
  },
21980
- "scriptRunner.run": {
21981
- capName: "script-runner",
21982
- capScope: "device",
22344
+ "serverManagement.restartServer": {
22345
+ capName: "server-management",
22346
+ capScope: "system",
21983
22347
  addonId: null,
21984
22348
  access: "create"
21985
22349
  },
21986
- "scriptRunner.stop": {
21987
- capName: "script-runner",
21988
- capScope: "device",
22350
+ "serverManagement.rollbackServerUpdate": {
22351
+ capName: "server-management",
22352
+ capScope: "system",
21989
22353
  addonId: null,
21990
22354
  access: "create"
21991
22355
  },
@@ -22073,23 +22437,17 @@ Object.freeze({
22073
22437
  addonId: null,
22074
22438
  access: "view"
22075
22439
  },
22076
- "snapshot.invalidateCache": {
22440
+ "snapshot.getSnapshotOverview": {
22077
22441
  capName: "snapshot",
22078
22442
  capScope: "device",
22079
22443
  addonId: null,
22080
- access: "create"
22081
- },
22082
- "snapshotProvider.getSnapshot": {
22083
- capName: "snapshot-provider",
22084
- capScope: "system",
22085
- addonId: null,
22086
22444
  access: "view"
22087
22445
  },
22088
- "snapshotProvider.supportsDevice": {
22089
- capName: "snapshot-provider",
22090
- capScope: "system",
22446
+ "snapshot.invalidateCache": {
22447
+ capName: "snapshot",
22448
+ capScope: "device",
22091
22449
  addonId: null,
22092
- access: "view"
22450
+ access: "create"
22093
22451
  },
22094
22452
  "ssoBridge.signBridgeToken": {
22095
22453
  capName: "sso-bridge",
@@ -22517,30 +22875,6 @@ Object.freeze({
22517
22875
  addonId: null,
22518
22876
  access: "view"
22519
22877
  },
22520
- "streamingEngine.getStreamUrl": {
22521
- capName: "streaming-engine",
22522
- capScope: "system",
22523
- addonId: null,
22524
- access: "view"
22525
- },
22526
- "streamingEngine.listStreams": {
22527
- capName: "streaming-engine",
22528
- capScope: "system",
22529
- addonId: null,
22530
- access: "view"
22531
- },
22532
- "streamingEngine.registerStream": {
22533
- capName: "streaming-engine",
22534
- capScope: "system",
22535
- addonId: null,
22536
- access: "create"
22537
- },
22538
- "streamingEngine.unregisterStream": {
22539
- capName: "streaming-engine",
22540
- capScope: "system",
22541
- addonId: null,
22542
- access: "delete"
22543
- },
22544
22878
  "streamParams.getConfigSchema": {
22545
22879
  capName: "stream-params",
22546
22880
  capScope: "device",
@@ -22787,6 +23121,12 @@ Object.freeze({
22787
23121
  addonId: null,
22788
23122
  access: "view"
22789
23123
  },
23124
+ "userPasskeys.beginDiscoverableAuthentication": {
23125
+ capName: "user-passkeys",
23126
+ capScope: "system",
23127
+ addonId: null,
23128
+ access: "view"
23129
+ },
22790
23130
  "userPasskeys.beginRegistration": {
22791
23131
  capName: "user-passkeys",
22792
23132
  capScope: "system",
@@ -22799,12 +23139,24 @@ Object.freeze({
22799
23139
  addonId: null,
22800
23140
  access: "view"
22801
23141
  },
23142
+ "userPasskeys.finishDiscoverableAuthentication": {
23143
+ capName: "user-passkeys",
23144
+ capScope: "system",
23145
+ addonId: null,
23146
+ access: "view"
23147
+ },
22802
23148
  "userPasskeys.finishRegistration": {
22803
23149
  capName: "user-passkeys",
22804
23150
  capScope: "system",
22805
23151
  addonId: null,
22806
23152
  access: "create"
22807
23153
  },
23154
+ "userPasskeys.getSecondFactorPreference": {
23155
+ capName: "user-passkeys",
23156
+ capScope: "system",
23157
+ addonId: null,
23158
+ access: "view"
23159
+ },
22808
23160
  "userPasskeys.listPasskeys": {
22809
23161
  capName: "user-passkeys",
22810
23162
  capScope: "system",
@@ -22817,6 +23169,12 @@ Object.freeze({
22817
23169
  addonId: null,
22818
23170
  access: "delete"
22819
23171
  },
23172
+ "userPasskeys.setSecondFactorPreference": {
23173
+ capName: "user-passkeys",
23174
+ capScope: "system",
23175
+ addonId: null,
23176
+ access: "create"
23177
+ },
22820
23178
  "vacuumControl.locate": {
22821
23179
  capName: "vacuum-control",
22822
23180
  capScope: "device",
@@ -22889,6 +23247,18 @@ Object.freeze({
22889
23247
  addonId: null,
22890
23248
  access: "view"
22891
23249
  },
23250
+ "viewerUi.getStaticDir": {
23251
+ capName: "viewer-ui",
23252
+ capScope: "system",
23253
+ addonId: null,
23254
+ access: "view"
23255
+ },
23256
+ "viewerUi.getVersion": {
23257
+ capName: "viewer-ui",
23258
+ capScope: "system",
23259
+ addonId: null,
23260
+ access: "view"
23261
+ },
22892
23262
  "waterHeater.setAway": {
22893
23263
  capName: "water-heater",
22894
23264
  capScope: "device",
@@ -22907,54 +23277,6 @@ Object.freeze({
22907
23277
  addonId: null,
22908
23278
  access: "create"
22909
23279
  },
22910
- "webrtc.closeSession": {
22911
- capName: "webrtc",
22912
- capScope: "system",
22913
- addonId: null,
22914
- access: "create"
22915
- },
22916
- "webrtc.createSession": {
22917
- capName: "webrtc",
22918
- capScope: "system",
22919
- addonId: null,
22920
- access: "create"
22921
- },
22922
- "webrtc.handleAnswer": {
22923
- capName: "webrtc",
22924
- capScope: "system",
22925
- addonId: null,
22926
- access: "create"
22927
- },
22928
- "webrtc.handleOffer": {
22929
- capName: "webrtc",
22930
- capScope: "system",
22931
- addonId: null,
22932
- access: "create"
22933
- },
22934
- "webrtc.hasAdaptiveBitrate": {
22935
- capName: "webrtc",
22936
- capScope: "system",
22937
- addonId: null,
22938
- access: "view"
22939
- },
22940
- "webrtc.registerStream": {
22941
- capName: "webrtc",
22942
- capScope: "system",
22943
- addonId: null,
22944
- access: "create"
22945
- },
22946
- "webrtc.supportsStream": {
22947
- capName: "webrtc",
22948
- capScope: "system",
22949
- addonId: null,
22950
- access: "view"
22951
- },
22952
- "webrtc.unregisterStream": {
22953
- capName: "webrtc",
22954
- capScope: "system",
22955
- addonId: null,
22956
- access: "delete"
22957
- },
22958
23280
  "webrtcSession.addIceCandidate": {
22959
23281
  capName: "webrtc-session",
22960
23282
  capScope: "device",