@camstack/addon-remote-storage 1.1.20 → 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.
@@ -4652,7 +4652,7 @@ function _instanceof(cls, params = {}) {
4652
4652
  return inst;
4653
4653
  }
4654
4654
  //#endregion
4655
- //#region ../types/dist/sleep-CZDdRBua.mjs
4655
+ //#region ../types/dist/sleep-DJaTV2D7.mjs
4656
4656
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4657
4657
  EventCategory["SystemBoot"] = "system.boot";
4658
4658
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4838,6 +4838,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4838
4838
  */
4839
4839
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4840
4840
  /**
4841
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4842
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4843
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4844
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4845
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4846
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4847
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4848
+ * topology change, so a dropped event self-heals on the next one (plus the
4849
+ * broker's long backstop reconcile query).
4850
+ */
4851
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4852
+ /**
4841
4853
  * Periodic snapshot of per-node pipeline-runner load
4842
4854
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4843
4855
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5361,10 +5373,6 @@ function hydrateField(field, values) {
5361
5373
  };
5362
5374
  }
5363
5375
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5364
- if (field.type === "password") return {
5365
- ...field,
5366
- value: ""
5367
- };
5368
5376
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5369
5377
  return {
5370
5378
  ...field,
@@ -6748,6 +6756,9 @@ function method(input, output, options) {
6748
6756
  timeoutMs: options?.timeoutMs
6749
6757
  };
6750
6758
  }
6759
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6760
+ var VersionOutputSchema$1 = object({ version: string() });
6761
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6751
6762
  var StaticDirOutputSchema = object({ staticDir: string() });
6752
6763
  var VersionOutputSchema = object({ version: string() });
6753
6764
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6917,6 +6928,36 @@ var ModelFormatsSchema = object({
6917
6928
  tflite: ModelFormatEntrySchema.optional(),
6918
6929
  pt: ModelFormatEntrySchema.optional()
6919
6930
  });
6931
+ /**
6932
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6933
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6934
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6935
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6936
+ * resolution/download/persistence; this is a presentation overlay resolved back
6937
+ * to an `id`.
6938
+ */
6939
+ var ModelVariantGroupSchema = object({
6940
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6941
+ family: string(),
6942
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6943
+ tier: string(),
6944
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6945
+ precision: _enum(["fp32", "int8"]).optional(),
6946
+ /**
6947
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6948
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6949
+ * future performance variants plug into.
6950
+ */
6951
+ optimization: _enum(["standard", "fast"]).optional(),
6952
+ /**
6953
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6954
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6955
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6956
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6957
+ * the group so the selector can offer it as a variant axis.
6958
+ */
6959
+ resolution: number().int().positive().optional()
6960
+ });
6920
6961
  var ModelCatalogEntrySchema = object({
6921
6962
  id: string(),
6922
6963
  name: string(),
@@ -6946,7 +6987,43 @@ var ModelCatalogEntrySchema = object({
6946
6987
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6947
6988
  * Downloaded into the same modelsDir alongside the model file.
6948
6989
  */
6949
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6990
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6991
+ /**
6992
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6993
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6994
+ * model list and excluded from the auto format-default pick. Set on the
6995
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6996
+ * the active lineup stays the coherent curated ladder without deleting a
6997
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6998
+ * an explicit legacy id that has a build for the node's format.
6999
+ */
7000
+ legacy: boolean().optional(),
7001
+ /**
7002
+ * Measured quality/latency metadata — populated from the benchmark addon on
7003
+ * the real node classes. Absent = not yet measured (most entries today; the
7004
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7005
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7006
+ */
7007
+ metrics: object({
7008
+ map50: number().optional(),
7009
+ p95LatencyMs: record(string(), number()).optional()
7010
+ }).optional(),
7011
+ /**
7012
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7013
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7014
+ * the retraining addon and any future commercial distribution.
7015
+ */
7016
+ license: string().optional(),
7017
+ /**
7018
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7019
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7020
+ * of a family's sizes and quantizations collapse into one grouped picker
7021
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7022
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7023
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7024
+ * is a presentation overlay resolved back to an `id`.
7025
+ */
7026
+ group: ModelVariantGroupSchema.optional()
6950
7027
  });
6951
7028
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6952
7029
  format: literal("openvino"),
@@ -7007,8 +7084,8 @@ var RecordingModeSchema = _enum([
7007
7084
  "onAudioThreshold"
7008
7085
  ]);
7009
7086
  /**
7010
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7011
- * reads directly (never inferred from `rules`):
7087
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7088
+ * UI reads directly (never inferred from `rules`):
7012
7089
  * - `off` — not recording.
7013
7090
  * - `events` — record only around triggers (motion / audio threshold),
7014
7091
  * with pre/post-buffer.
@@ -8656,26 +8733,13 @@ DeviceType.Light, method(object({
8656
8733
  percentage: number().min(0).max(100),
8657
8734
  lastChangedAt: number()
8658
8735
  });
8736
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8659
8737
  var StreamFormatSchema = _enum([
8660
8738
  "webrtc",
8661
8739
  "hls",
8662
8740
  "mjpeg",
8663
8741
  "rtsp"
8664
8742
  ]);
8665
- var StreamInfoSchema = object({
8666
- streamId: string(),
8667
- format: StreamFormatSchema,
8668
- url: string().nullable(),
8669
- active: boolean()
8670
- });
8671
- method(object({
8672
- streamId: string(),
8673
- sourceUrl: string(),
8674
- codec: string().optional()
8675
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8676
- streamId: string(),
8677
- format: StreamFormatSchema
8678
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8679
8743
  var RtspRestreamEntrySchema = object({
8680
8744
  brokerId: string(),
8681
8745
  url: string(),
@@ -9340,7 +9404,7 @@ var ConsumablesStatusSchema = object({
9340
9404
  })),
9341
9405
  lastChangedAt: number()
9342
9406
  });
9343
- 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({
9407
+ Object.values(DeviceType), method(object({
9344
9408
  deviceId: number().int().nonnegative(),
9345
9409
  key: string().min(1)
9346
9410
  }), _void(), {
@@ -10255,7 +10319,7 @@ var BoundingBoxSchema = object({
10255
10319
  w: number(),
10256
10320
  h: number()
10257
10321
  });
10258
- var SpatialDetectionSchema = object({
10322
+ object({
10259
10323
  class: string(),
10260
10324
  originalClass: string(),
10261
10325
  score: number(),
@@ -10390,7 +10454,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10390
10454
  enabled: boolean(),
10391
10455
  modelId: string(),
10392
10456
  children: array(PipelineDefaultStepSchema).readonly(),
10393
- engine: PipelineEngineChoiceSchema.optional(),
10394
10457
  group: string().optional(),
10395
10458
  settings: record(string(), unknown()).optional()
10396
10459
  }));
@@ -10415,7 +10478,9 @@ var PipelineModelOptionSchema = object({
10415
10478
  formats: record(string(), object({
10416
10479
  downloaded: boolean(),
10417
10480
  sizeMB: number()
10418
- }))
10481
+ })),
10482
+ group: ModelVariantGroupSchema.optional(),
10483
+ legacy: boolean().optional()
10419
10484
  });
10420
10485
  var ConfigFieldBridge = custom();
10421
10486
  var PipelineAddonSchemaSchema = object({
@@ -10445,11 +10510,6 @@ var PipelineSchemaSchema = object({
10445
10510
  selectedEngine: PipelineEngineChoiceSchema,
10446
10511
  slots: array(PipelineSlotSchemaSchema).readonly()
10447
10512
  });
10448
- var DetectorOutputSchema = object({
10449
- detections: array(SpatialDetectionSchema).readonly(),
10450
- inferenceMs: number(),
10451
- modelId: string()
10452
- });
10453
10513
  var EngineProvisioningSchema = object({
10454
10514
  runtimeId: _enum([
10455
10515
  "onnx",
@@ -10466,15 +10526,42 @@ var EngineProvisioningSchema = object({
10466
10526
  ]),
10467
10527
  progress: number().optional(),
10468
10528
  error: string().optional(),
10469
- nextRetryAt: number().optional()
10529
+ nextRetryAt: number().optional(),
10530
+ /**
10531
+ * Gate A (config-correctness gate at engine change): human-readable
10532
+ * config issues surfaced EAGERLY when the node's engine changes — model
10533
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10534
+ * has a <format> build"). Additive/optional: informational only, never
10535
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10536
+ * Absent/empty when the node-default tree resolves cleanly.
10537
+ */
10538
+ configIssues: array(string()).optional()
10470
10539
  });
10471
10540
  var PipelineStepInputSchema = lazy(() => object({
10472
10541
  addonId: string(),
10473
- modelId: string(),
10542
+ modelId: string().optional(),
10474
10543
  enabled: boolean().default(true),
10475
10544
  children: array(PipelineStepInputSchema).optional(),
10476
10545
  settings: record(string(), unknown()).optional()
10477
10546
  }));
10547
+ var ModelSubstitutionSchema = object({
10548
+ addonId: string(),
10549
+ chosen: string(),
10550
+ running: string(),
10551
+ format: string()
10552
+ });
10553
+ var PipelineValidationIssueSchema = object({
10554
+ addonId: string(),
10555
+ kind: _enum(["unknown-addon", "no-format-build"]),
10556
+ detail: string()
10557
+ });
10558
+ var PipelineValidationResultSchema = object({
10559
+ ok: boolean(),
10560
+ issues: array(PipelineValidationIssueSchema).readonly(),
10561
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10562
+ /** The node's `currentEngine.format` this validation ran against. */
10563
+ format: string()
10564
+ });
10478
10565
  var ReferenceImageEntrySchema = object({
10479
10566
  filename: string(),
10480
10567
  stepIds: array(string()).readonly().optional()
@@ -10545,7 +10632,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10545
10632
  })) }), object({ success: literal(true) }), {
10546
10633
  kind: "mutation",
10547
10634
  auth: "admin"
10548
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10635
+ }), method(object({ nodeId: string() }), object({
10636
+ success: literal(true),
10637
+ clearedDevices: number()
10638
+ }), {
10639
+ kind: "mutation",
10640
+ auth: "admin"
10641
+ }), 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({
10549
10642
  name: string(),
10550
10643
  steps: array(PipelineTemplateStepSchema).readonly(),
10551
10644
  engine: PipelineEngineChoiceSchema
@@ -10562,10 +10655,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10562
10655
  modelId: string(),
10563
10656
  format: ModelFormatSchema$1
10564
10657
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10565
- addonId: string(),
10566
- frame: FrameInputSchema,
10567
- config: record(string(), unknown()).optional()
10568
- }), DetectorOutputSchema), method(object({
10569
10658
  engine: PipelineEngineChoiceSchema.optional(),
10570
10659
  steps: array(PipelineStepInputSchema).min(1),
10571
10660
  frame: FrameInputSchema.optional(),
@@ -10805,6 +10894,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10805
10894
  kind: literal("remote-restream"),
10806
10895
  /** The camera's source-owner node (slice 1: always the hub). */
10807
10896
  ownerNodeId: string(),
10897
+ /**
10898
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10899
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10900
+ * dials THIS host for the owner's restream, in preference to the
10901
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10902
+ */
10903
+ ownerReachableHost: string().optional(),
10808
10904
  /** Operator override for the owner host the runner dials. */
10809
10905
  hubHostnameOverride: string().optional()
10810
10906
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10813,13 +10909,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10813
10909
  * specific runner instance via `attachCamera`. Carries everything the
10814
10910
  * runner needs to subscribe to the local broker and execute inference.
10815
10911
  *
10816
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10817
- * optional `audio`) travels with the attach payload. The runner keeps it
10818
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10819
- * restart the orchestrator re-sends the latest snapshot.
10820
- *
10821
- * `engine`/`steps`/`audio` are optional during the additive migration
10822
- * window; once orchestrator + UI are migrated they become required.
10912
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10913
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10914
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10915
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10916
+ * node-local, resolved by the executing runner at dispatch time.
10823
10917
  */
10824
10918
  var RunnerCameraConfigSchema = object({
10825
10919
  deviceId: number(),
@@ -10870,14 +10964,11 @@ var RunnerCameraConfigSchema = object({
10870
10964
  */
10871
10965
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10872
10966
  pipelineEnabled: boolean().default(true),
10873
- /** Engine choice for video steps (runtime+backend+format). */
10874
- engine: PipelineEngineChoiceSchema.optional(),
10875
10967
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10876
10968
  steps: array(PipelineStepInputSchema).readonly().optional(),
10877
10969
  /** Audio classification branch. `enabled:false` disables, null skips. */
10878
10970
  audio: object({
10879
- engine: PipelineEngineChoiceSchema,
10880
- modelId: string(),
10971
+ modelId: string().optional(),
10881
10972
  enabled: boolean()
10882
10973
  }).nullable().optional(),
10883
10974
  /**
@@ -12258,7 +12349,9 @@ var AddonPageDeclarationSchema$1 = object({
12258
12349
  icon: string(),
12259
12350
  path: string(),
12260
12351
  remoteName: string(),
12261
- bundle: string()
12352
+ bundle: string(),
12353
+ section: string().optional(),
12354
+ sectionLabel: string().optional()
12262
12355
  });
12263
12356
  var AddonPageInfoSchema = object({
12264
12357
  addonId: string(),
@@ -12298,7 +12391,18 @@ var AddonPageDeclarationSchema = object({
12298
12391
  * the static-file route can compute an mtime-based cache-buster URL
12299
12392
  * without a separate filesystem stat.
12300
12393
  */
12301
- bundle: string()
12394
+ bundle: string(),
12395
+ /**
12396
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12397
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12398
+ * Any OTHER string creates (or joins) a custom section rendered after
12399
+ * the built-in groups; its label comes from `sectionLabel` (first
12400
+ * declaration wins), falling back to the id. Absent → the legacy
12401
+ * "Addon Pages" group.
12402
+ */
12403
+ section: string().optional(),
12404
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12405
+ sectionLabel: string().optional()
12302
12406
  });
12303
12407
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12304
12408
  var AddonHttpRouteSchema = object({
@@ -12514,6 +12618,17 @@ var WidgetMetadataSchema = object({
12514
12618
  deviceContext: boolean().default(false),
12515
12619
  integrationContext: boolean().default(false)
12516
12620
  }),
12621
+ /**
12622
+ * Loadable BEFORE authentication. The normal widget registry listing
12623
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12624
+ * (the login page) cannot discover a widget through it. A widget that
12625
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12626
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12627
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12628
+ * than the authenticated registry, and its bundle is served by the
12629
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12630
+ */
12631
+ preAuth: boolean().optional().default(false),
12517
12632
  /** Dashboard placement HINTS (operator can override per instance). */
12518
12633
  defaultSize: WidgetSizeEnum.default("md"),
12519
12634
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12815,6 +12930,66 @@ method(object({
12815
12930
  password: string()
12816
12931
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12817
12932
  /**
12933
+ * `login-method` — collection cap through which auth addons contribute
12934
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12935
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12936
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12937
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12938
+ * procedure aggregates them for the unauthenticated login page.
12939
+ *
12940
+ * A contribution is a discriminated union on `kind`:
12941
+ *
12942
+ * - `redirect` — a declarative button. The login page renders a generic
12943
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
12944
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
12945
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
12946
+ * login page needs NO change.
12947
+ *
12948
+ * - `widget` — a Module-Federation widget the login page mounts (via
12949
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
12950
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
12951
+ * addon bundle. The referenced widget also declares `preAuth: true` in
12952
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
12953
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
12954
+ *
12955
+ * Every contribution carries a `stage`:
12956
+ * - `primary` — shown on the first credentials screen (OIDC /
12957
+ * magic-link buttons; a future usernameless passkey).
12958
+ * - `second-factor` — shown AFTER the password leg, gated on the
12959
+ * returned `factors` (passkey-as-2FA today).
12960
+ *
12961
+ * `mount: skip` — the cap is read server-side by the core auth router
12962
+ * (`registry.getCollection('login-method')`), never mounted as its own
12963
+ * tRPC router.
12964
+ */
12965
+ /** When a login method renders in the two-phase login flow. */
12966
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
12967
+ /** One login-method contribution — redirect button OR pre-auth widget. */
12968
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
12969
+ kind: literal("redirect"),
12970
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
12971
+ id: string(),
12972
+ /** Operator-facing button label. */
12973
+ label: string(),
12974
+ /** lucide-react icon name. */
12975
+ icon: string().optional(),
12976
+ /** Addon-owned HTTP route the button navigates to (GET). */
12977
+ startUrl: string(),
12978
+ stage: LoginStageEnum
12979
+ }), object({
12980
+ kind: literal("widget"),
12981
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
12982
+ id: string(),
12983
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
12984
+ addonId: string(),
12985
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
12986
+ bundle: string(),
12987
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
12988
+ remote: WidgetRemoteSchema,
12989
+ stage: LoginStageEnum
12990
+ })]);
12991
+ method(_void(), array(LoginMethodContributionSchema).readonly());
12992
+ /**
12818
12993
  * Orchestrator-side destination metadata. The orchestrator computes
12819
12994
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12820
12995
  * (admin UI, restore flow) see one canonical key.
@@ -15103,11 +15278,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15103
15278
  timestamp: number()
15104
15279
  });
15105
15280
  var CameraPipelineConfigSchema = object({
15106
- engine: PipelineEngineChoiceSchema,
15281
+ engine: PipelineEngineChoiceSchema.optional(),
15107
15282
  steps: array(PipelineStepInputSchema).readonly(),
15108
15283
  audio: object({
15109
- engine: PipelineEngineChoiceSchema,
15110
- modelId: string(),
15284
+ engine: PipelineEngineChoiceSchema.optional(),
15285
+ modelId: string().optional(),
15111
15286
  enabled: boolean(),
15112
15287
  settings: record(string(), unknown()).readonly().optional()
15113
15288
  }).nullable().optional()
@@ -15122,7 +15297,7 @@ var PipelineTemplateSchema = object({
15122
15297
  });
15123
15298
  var AgentAddonConfigSchema = object({
15124
15299
  enabled: boolean(),
15125
- modelId: string(),
15300
+ modelId: string().optional(),
15126
15301
  settings: record(string(), unknown()).readonly()
15127
15302
  });
15128
15303
  var AgentPipelineSettingsSchema = object({
@@ -15132,12 +15307,25 @@ var AgentPipelineSettingsSchema = object({
15132
15307
  detectWeight: number().positive().optional(),
15133
15308
  /** Node is eligible to run the detection pipeline (decode + inference). */
15134
15309
  detect: boolean().optional(),
15135
- /** Node is eligible to host decoder sessions. */
15310
+ /**
15311
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15312
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15313
+ * the schema ONLY so persisted stores written before the removal still
15314
+ * parse — no code reads it and no write path emits it.
15315
+ */
15136
15316
  decode: boolean().optional(),
15137
15317
  /** Node is eligible to run audio-analyzer sessions. */
15138
15318
  audio: boolean().optional(),
15139
15319
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15140
- ingest: boolean().optional()
15320
+ ingest: boolean().optional(),
15321
+ /**
15322
+ * Operator override for the LAN host a cross-node decoder dials to reach
15323
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15324
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15325
+ * it already uses to reach the hub). Set this only when the auto-detected
15326
+ * address is wrong (multi-homed host, NAT, custom interface).
15327
+ */
15328
+ reachableHost: string().optional()
15141
15329
  });
15142
15330
  var CameraPipelineForAgentSchema = object({
15143
15331
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15185,25 +15373,6 @@ var PipelineAssignmentSchema = object({
15185
15373
  assignedAt: number()
15186
15374
  });
15187
15375
  /**
15188
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15189
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15190
- * → co-located with pipeline → capacity).
15191
- */
15192
- var DecoderAssignmentSchema = object({
15193
- deviceId: number(),
15194
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15195
- decoderNodeId: string(),
15196
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15197
- pinned: boolean(),
15198
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15199
- reason: _enum([
15200
- "manual",
15201
- "co-located",
15202
- "capacity",
15203
- "hardware-affinity"
15204
- ])
15205
- });
15206
- /**
15207
15376
  * Per-agent load summary surfaced to the load balancer + dashboards.
15208
15377
  * Aggregated from each runner's `getLocalLoad` cap call.
15209
15378
  */
@@ -15243,6 +15412,15 @@ var GlobalMetricsSchema = object({
15243
15412
  * capability providers.
15244
15413
  */
15245
15414
  var CapabilityBindingsSchema = record(string(), string());
15415
+ /**
15416
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15417
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15418
+ */
15419
+ var IngestOwnerSchema = object({
15420
+ ownerNodeId: string(),
15421
+ reachableHost: string().optional(),
15422
+ configIssue: string().optional()
15423
+ });
15246
15424
  /** Source block — always present; derives from the stream catalog. */
15247
15425
  var CameraSourceStatusSchema = object({ streams: array(object({
15248
15426
  camStreamId: string(),
@@ -15257,6 +15435,14 @@ var CameraAssignmentStatusSchema = object({
15257
15435
  detectionNodeId: string().nullable(),
15258
15436
  decoderNodeId: string().nullable(),
15259
15437
  audioNodeId: string().nullable(),
15438
+ /**
15439
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15440
+ * hosts the broker/restream) — the cluster ingest owner today
15441
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15442
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15443
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15444
+ */
15445
+ sourceNodeId: string().nullable(),
15260
15446
  pinned: object({
15261
15447
  detection: boolean(),
15262
15448
  decoder: boolean(),
@@ -15389,16 +15575,7 @@ method(object({
15389
15575
  }), object({ success: literal(true) }), {
15390
15576
  kind: "mutation",
15391
15577
  auth: "admin"
15392
- }), method(object({
15393
- deviceId: number(),
15394
- nodeId: string()
15395
- }), _void(), {
15396
- kind: "mutation",
15397
- auth: "admin"
15398
- }), method(object({ deviceId: number() }), _void(), {
15399
- kind: "mutation",
15400
- auth: "admin"
15401
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15578
+ }), method(_void(), IngestOwnerSchema), method(object({
15402
15579
  deviceId: number(),
15403
15580
  nodeId: string()
15404
15581
  }), object({ success: literal(true) }), {
@@ -15419,10 +15596,7 @@ method(object({
15419
15596
  nodeId: string(),
15420
15597
  pinned: boolean(),
15421
15598
  assignedAt: number()
15422
- }))), method(object({
15423
- deviceId: number(),
15424
- pipelineNodeId: string().optional()
15425
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15599
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15426
15600
  nodeId: string(),
15427
15601
  settings: AgentPipelineSettingsSchema
15428
15602
  })).readonly()), method(object({
@@ -15452,12 +15626,26 @@ method(object({
15452
15626
  }), method(object({
15453
15627
  agentNodeId: string(),
15454
15628
  detect: boolean().nullable().optional(),
15455
- decode: boolean().nullable().optional(),
15456
15629
  audio: boolean().nullable().optional(),
15457
15630
  ingest: boolean().nullable().optional()
15458
15631
  }), object({ success: literal(true) }), {
15459
15632
  kind: "mutation",
15460
15633
  auth: "admin"
15634
+ }), method(object({
15635
+ agentNodeId: string(),
15636
+ reachableHost: string().nullable()
15637
+ }), object({ success: literal(true) }), {
15638
+ kind: "mutation",
15639
+ auth: "admin"
15640
+ }), method(object({ agentNodeId: string() }), object({
15641
+ success: literal(true),
15642
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15643
+ effectiveModelId: string().nullable(),
15644
+ /** Number of cameras whose node-scoped overrides were cleared. */
15645
+ clearedCameraOverrides: number()
15646
+ }), {
15647
+ kind: "mutation",
15648
+ auth: "admin"
15461
15649
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15462
15650
  deviceId: number(),
15463
15651
  addonId: string(),
@@ -15502,22 +15690,131 @@ method(object({
15502
15690
  kind: "mutation",
15503
15691
  auth: "admin"
15504
15692
  });
15505
- var RegisteredStreamSchema = object({
15506
- streamId: string(),
15507
- label: string().optional(),
15508
- codec: string(),
15509
- type: _enum(["video", "audio"]),
15510
- sourceUrl: string()
15693
+ /**
15694
+ * server-management — per-NODE singleton capability for a node's ROOT
15695
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15696
+ * agents).
15697
+ *
15698
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15699
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15700
+ * version describes the node. Updates install into
15701
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15702
+ * starter (probation boot + auto-rollback to N-1).
15703
+ *
15704
+ * Providers:
15705
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15706
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15707
+ * unpinned calls.
15708
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15709
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15710
+ * `$hub.registerNode` manifest.
15711
+ *
15712
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15713
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15714
+ * SDK) routes the call to that node's provider via the standard remote
15715
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15716
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15717
+ *
15718
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15719
+ */
15720
+ /**
15721
+ * Where the running hub's code was loaded from:
15722
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15723
+ * plain resolution and runtime updates are refused.
15724
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15725
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15726
+ */
15727
+ var ServerBootModeSchema = _enum([
15728
+ "workspace",
15729
+ "baked",
15730
+ "data-root"
15731
+ ]);
15732
+ /**
15733
+ * Update lifecycle state:
15734
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15735
+ * - `pending-restart` — a version is staged and the node has NOT yet
15736
+ * restarted onto it (still running the OLD version).
15737
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15738
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15739
+ * Apply/rollback are refused in this state and the node must NOT be
15740
+ * manually restarted, or the probation boot auto-rolls-back.
15741
+ */
15742
+ var ServerUpdateStateSchema = _enum([
15743
+ "idle",
15744
+ "checking",
15745
+ "staging",
15746
+ "pending-restart",
15747
+ "awaiting-confirmation"
15748
+ ]);
15749
+ var ServerRollbackInfoSchema = object({
15750
+ /** The version that failed (or was manually rolled back). */
15751
+ fromVersion: string(),
15752
+ /** The version rolled back to; null = the baked seed. */
15753
+ toVersion: string().nullable(),
15754
+ atMs: number(),
15755
+ reason: string()
15511
15756
  });
15512
- var ExposedResourceSchema = object({
15513
- streamId: string(),
15514
- format: string(),
15515
- value: string()
15757
+ var ServerPackageStatusSchema = object({
15758
+ /** Root package name (`@camstack/server` on the hub). */
15759
+ packageName: string(),
15760
+ /** Version of the code the running process ACTUALLY loaded. */
15761
+ runningVersion: string().nullable(),
15762
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15763
+ nodeRuntimeVersion: string().nullable(),
15764
+ /** Active data-dir root version; null when booted from seed/workspace. */
15765
+ activeVersion: string().nullable(),
15766
+ /** N-1 version kept for rollback; null when no previous version exists. */
15767
+ previousVersion: string().nullable(),
15768
+ /** Version of the immutable baked seed closure (image fallback). */
15769
+ seedVersion: string().nullable(),
15770
+ /** Latest registry version from the most recent check (null = never checked). */
15771
+ latestVersion: string().nullable(),
15772
+ updateAvailable: boolean(),
15773
+ bootMode: ServerBootModeSchema,
15774
+ updateState: ServerUpdateStateSchema,
15775
+ /** Version staged + awaiting its probation boot, when one is pending. */
15776
+ pendingVersion: string().nullable(),
15777
+ /** Set when the last freshly-activated version failed its boot health-check. */
15778
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15779
+ /**
15780
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15781
+ * hub is running from the baked seed (or workspace) while installed data-dir
15782
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15783
+ */
15784
+ stateFileCorrupt: boolean(),
15785
+ lastCheckedAtMs: number().nullable()
15786
+ });
15787
+ var ServerUpdateCheckResultSchema = object({
15788
+ packageName: string(),
15789
+ runningVersion: string().nullable(),
15790
+ latestVersion: string().nullable(),
15791
+ updateAvailable: boolean(),
15792
+ checkedAtMs: number(),
15793
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15794
+ error: string().nullable()
15795
+ });
15796
+ var ServerUpdateActionResultSchema = object({
15797
+ accepted: boolean(),
15798
+ targetVersion: string().nullable(),
15799
+ /** True when a graceful restart was scheduled to apply the change. */
15800
+ restarting: boolean(),
15801
+ message: string()
15802
+ });
15803
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15804
+ kind: "mutation",
15805
+ auth: "admin"
15806
+ }), method(object({
15807
+ /** Explicit target version; omitted = latest from the registry. */
15808
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15809
+ kind: "mutation",
15810
+ auth: "admin"
15811
+ }), method(_void(), ServerUpdateActionResultSchema, {
15812
+ kind: "mutation",
15813
+ auth: "admin"
15814
+ }), method(_void(), ServerUpdateActionResultSchema, {
15815
+ kind: "mutation",
15816
+ auth: "admin"
15516
15817
  });
15517
- method(object({
15518
- deviceId: number(),
15519
- streams: array(RegisteredStreamSchema).readonly()
15520
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15521
15818
  /**
15522
15819
  * Query filter for settings-store collections.
15523
15820
  */
@@ -15670,9 +15967,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15670
15967
  /**
15671
15968
  * A single device snapshot returned as base64 JPEG/PNG.
15672
15969
  *
15673
- * Shared with the `snapshot-provider` collection cap the orchestrator
15674
- * receives the same shape from each native provider and from the
15675
- * broker-based fallback.
15970
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
15971
+ * the device-native provider (onboard capture) or from the stream-broker
15972
+ * prebuffer fallback.
15676
15973
  */
15677
15974
  var SnapshotImageSchema = object({
15678
15975
  base64: string(),
@@ -15704,10 +16001,6 @@ DeviceType.Camera, method(object({
15704
16001
  kind: "mutation",
15705
16002
  auth: "admin"
15706
16003
  });
15707
- method(object({ deviceId: number() }), boolean()), method(object({
15708
- deviceId: number(),
15709
- streamId: string().optional()
15710
- }), SnapshotImageSchema.nullable());
15711
16004
  /**
15712
16005
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15713
16006
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16113,9 +16406,10 @@ method(object({
16113
16406
  auth: "admin"
16114
16407
  });
16115
16408
  /**
16116
- * Optional client-side hints sent at session creation to help the
16117
- * provider pick the best native source. All fields are optional —
16118
- * a viewer that knows nothing still gets a sane default.
16409
+ * Optional client-side hints sent at session creation to help the provider
16410
+ * pick the best native source. All fields optional — a viewer that knows
16411
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16412
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16119
16413
  */
16120
16414
  var webrtcClientHintsSchema = object({
16121
16415
  viewportWidth: number().int().positive().optional(),
@@ -16126,22 +16420,6 @@ var webrtcClientHintsSchema = object({
16126
16420
  /** Hard tier override; takes precedence over scoring when registered. */
16127
16421
  prefersTier: string().optional()
16128
16422
  }).partial();
16129
- method(object({
16130
- streamId: string(),
16131
- sdpOffer: string()
16132
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16133
- streamId: string(),
16134
- codec: string()
16135
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16136
- streamId: string(),
16137
- hints: webrtcClientHintsSchema.optional()
16138
- }), object({
16139
- sessionId: string(),
16140
- sdpOffer: string()
16141
- }), { kind: "mutation" }), method(object({
16142
- sessionId: string(),
16143
- sdpAnswer: string()
16144
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16145
16423
  /**
16146
16424
  * Discriminated target for a WebRTC session. The client sends this
16147
16425
  * structured object instead of building / parsing brokerId strings;
@@ -17569,6 +17847,16 @@ var TopologyCategorySchema = object({
17569
17847
  healthy: number(),
17570
17848
  addons: array(TopologyCategoryAddonSchema).readonly()
17571
17849
  });
17850
+ /**
17851
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17852
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17853
+ * version visibility for the Server management surface. Nullable: offline
17854
+ * rows and pre-phase-2 nodes report none.
17855
+ */
17856
+ var TopologyRootPackageSchema = object({
17857
+ name: string(),
17858
+ version: string()
17859
+ });
17572
17860
  var TopologyNodeSchema = object({
17573
17861
  id: string(),
17574
17862
  name: string(),
@@ -17592,7 +17880,8 @@ var TopologyNodeSchema = object({
17592
17880
  status: string()
17593
17881
  })).readonly(),
17594
17882
  processes: array(TopologyProcessSchema).readonly(),
17595
- categories: array(TopologyCategorySchema).readonly()
17883
+ categories: array(TopologyCategorySchema).readonly(),
17884
+ rootPackage: TopologyRootPackageSchema.nullable()
17596
17885
  });
17597
17886
  var CapUsageEdgeSchema = object({
17598
17887
  callerAddonId: string(),
@@ -20392,6 +20681,12 @@ Object.freeze({
20392
20681
  addonId: null,
20393
20682
  access: "create"
20394
20683
  },
20684
+ "loginMethod.getLoginMethods": {
20685
+ capName: "login-method",
20686
+ capScope: "system",
20687
+ addonId: null,
20688
+ access: "view"
20689
+ },
20395
20690
  "mediaPlayer.next": {
20396
20691
  capName: "media-player",
20397
20692
  capScope: "device",
@@ -21022,23 +21317,23 @@ Object.freeze({
21022
21317
  addonId: null,
21023
21318
  access: "create"
21024
21319
  },
21025
- "pipelineExecutor.deleteModel": {
21320
+ "pipelineExecutor.clearDeviceOverrides": {
21026
21321
  capName: "pipeline-executor",
21027
21322
  capScope: "system",
21028
21323
  addonId: null,
21029
21324
  access: "delete"
21030
21325
  },
21031
- "pipelineExecutor.deleteTemplate": {
21326
+ "pipelineExecutor.deleteModel": {
21032
21327
  capName: "pipeline-executor",
21033
21328
  capScope: "system",
21034
21329
  addonId: null,
21035
21330
  access: "delete"
21036
21331
  },
21037
- "pipelineExecutor.detect": {
21332
+ "pipelineExecutor.deleteTemplate": {
21038
21333
  capName: "pipeline-executor",
21039
21334
  capScope: "system",
21040
21335
  addonId: null,
21041
- access: "view"
21336
+ access: "delete"
21042
21337
  },
21043
21338
  "pipelineExecutor.downloadModel": {
21044
21339
  capName: "pipeline-executor",
@@ -21232,13 +21527,13 @@ Object.freeze({
21232
21527
  addonId: null,
21233
21528
  access: "create"
21234
21529
  },
21235
- "pipelineOrchestrator.assignAudio": {
21236
- capName: "pipeline-orchestrator",
21530
+ "pipelineExecutor.validatePipeline": {
21531
+ capName: "pipeline-executor",
21237
21532
  capScope: "system",
21238
21533
  addonId: null,
21239
- access: "create"
21534
+ access: "view"
21240
21535
  },
21241
- "pipelineOrchestrator.assignDecoder": {
21536
+ "pipelineOrchestrator.assignAudio": {
21242
21537
  capName: "pipeline-orchestrator",
21243
21538
  capScope: "system",
21244
21539
  addonId: null,
@@ -21322,19 +21617,13 @@ Object.freeze({
21322
21617
  addonId: null,
21323
21618
  access: "view"
21324
21619
  },
21325
- "pipelineOrchestrator.getDecoderAssignment": {
21620
+ "pipelineOrchestrator.getGlobalMetrics": {
21326
21621
  capName: "pipeline-orchestrator",
21327
21622
  capScope: "system",
21328
21623
  addonId: null,
21329
21624
  access: "view"
21330
21625
  },
21331
- "pipelineOrchestrator.getDecoderAssignments": {
21332
- capName: "pipeline-orchestrator",
21333
- capScope: "system",
21334
- addonId: null,
21335
- access: "view"
21336
- },
21337
- "pipelineOrchestrator.getGlobalMetrics": {
21626
+ "pipelineOrchestrator.getIngestOwner": {
21338
21627
  capName: "pipeline-orchestrator",
21339
21628
  capScope: "system",
21340
21629
  addonId: null,
@@ -21376,6 +21665,12 @@ Object.freeze({
21376
21665
  addonId: null,
21377
21666
  access: "delete"
21378
21667
  },
21668
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21669
+ capName: "pipeline-orchestrator",
21670
+ capScope: "system",
21671
+ addonId: null,
21672
+ access: "delete"
21673
+ },
21379
21674
  "pipelineOrchestrator.resolvePipeline": {
21380
21675
  capName: "pipeline-orchestrator",
21381
21676
  capScope: "system",
@@ -21412,37 +21707,37 @@ Object.freeze({
21412
21707
  addonId: null,
21413
21708
  access: "create"
21414
21709
  },
21415
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21710
+ "pipelineOrchestrator.setAgentReachableHost": {
21416
21711
  capName: "pipeline-orchestrator",
21417
21712
  capScope: "system",
21418
21713
  addonId: null,
21419
21714
  access: "create"
21420
21715
  },
21421
- "pipelineOrchestrator.setCameraStepOverride": {
21716
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21422
21717
  capName: "pipeline-orchestrator",
21423
21718
  capScope: "system",
21424
21719
  addonId: null,
21425
21720
  access: "create"
21426
21721
  },
21427
- "pipelineOrchestrator.setCameraStepToggle": {
21722
+ "pipelineOrchestrator.setCameraStepOverride": {
21428
21723
  capName: "pipeline-orchestrator",
21429
21724
  capScope: "system",
21430
21725
  addonId: null,
21431
21726
  access: "create"
21432
21727
  },
21433
- "pipelineOrchestrator.setCapabilityBinding": {
21728
+ "pipelineOrchestrator.setCameraStepToggle": {
21434
21729
  capName: "pipeline-orchestrator",
21435
21730
  capScope: "system",
21436
21731
  addonId: null,
21437
21732
  access: "create"
21438
21733
  },
21439
- "pipelineOrchestrator.unassignAudio": {
21734
+ "pipelineOrchestrator.setCapabilityBinding": {
21440
21735
  capName: "pipeline-orchestrator",
21441
21736
  capScope: "system",
21442
21737
  addonId: null,
21443
21738
  access: "create"
21444
21739
  },
21445
- "pipelineOrchestrator.unassignDecoder": {
21740
+ "pipelineOrchestrator.unassignAudio": {
21446
21741
  capName: "pipeline-orchestrator",
21447
21742
  capScope: "system",
21448
21743
  addonId: null,
@@ -21742,33 +22037,45 @@ Object.freeze({
21742
22037
  addonId: null,
21743
22038
  access: "create"
21744
22039
  },
21745
- "restreamer.getExposedResources": {
21746
- capName: "restreamer",
22040
+ "scriptRunner.run": {
22041
+ capName: "script-runner",
22042
+ capScope: "device",
22043
+ addonId: null,
22044
+ access: "create"
22045
+ },
22046
+ "scriptRunner.stop": {
22047
+ capName: "script-runner",
22048
+ capScope: "device",
22049
+ addonId: null,
22050
+ access: "create"
22051
+ },
22052
+ "serverManagement.applyServerUpdate": {
22053
+ capName: "server-management",
21747
22054
  capScope: "system",
21748
22055
  addonId: null,
21749
- access: "view"
22056
+ access: "create"
21750
22057
  },
21751
- "restreamer.registerDevice": {
21752
- capName: "restreamer",
22058
+ "serverManagement.checkServerUpdate": {
22059
+ capName: "server-management",
21753
22060
  capScope: "system",
21754
22061
  addonId: null,
21755
22062
  access: "create"
21756
22063
  },
21757
- "restreamer.unregisterDevice": {
21758
- capName: "restreamer",
22064
+ "serverManagement.getServerPackageStatus": {
22065
+ capName: "server-management",
21759
22066
  capScope: "system",
21760
22067
  addonId: null,
21761
- access: "delete"
22068
+ access: "view"
21762
22069
  },
21763
- "scriptRunner.run": {
21764
- capName: "script-runner",
21765
- capScope: "device",
22070
+ "serverManagement.restartServer": {
22071
+ capName: "server-management",
22072
+ capScope: "system",
21766
22073
  addonId: null,
21767
22074
  access: "create"
21768
22075
  },
21769
- "scriptRunner.stop": {
21770
- capName: "script-runner",
21771
- capScope: "device",
22076
+ "serverManagement.rollbackServerUpdate": {
22077
+ capName: "server-management",
22078
+ capScope: "system",
21772
22079
  addonId: null,
21773
22080
  access: "create"
21774
22081
  },
@@ -21862,18 +22169,6 @@ Object.freeze({
21862
22169
  addonId: null,
21863
22170
  access: "create"
21864
22171
  },
21865
- "snapshotProvider.getSnapshot": {
21866
- capName: "snapshot-provider",
21867
- capScope: "system",
21868
- addonId: null,
21869
- access: "view"
21870
- },
21871
- "snapshotProvider.supportsDevice": {
21872
- capName: "snapshot-provider",
21873
- capScope: "system",
21874
- addonId: null,
21875
- access: "view"
21876
- },
21877
22172
  "ssoBridge.signBridgeToken": {
21878
22173
  capName: "sso-bridge",
21879
22174
  capScope: "system",
@@ -22300,30 +22595,6 @@ Object.freeze({
22300
22595
  addonId: null,
22301
22596
  access: "view"
22302
22597
  },
22303
- "streamingEngine.getStreamUrl": {
22304
- capName: "streaming-engine",
22305
- capScope: "system",
22306
- addonId: null,
22307
- access: "view"
22308
- },
22309
- "streamingEngine.listStreams": {
22310
- capName: "streaming-engine",
22311
- capScope: "system",
22312
- addonId: null,
22313
- access: "view"
22314
- },
22315
- "streamingEngine.registerStream": {
22316
- capName: "streaming-engine",
22317
- capScope: "system",
22318
- addonId: null,
22319
- access: "create"
22320
- },
22321
- "streamingEngine.unregisterStream": {
22322
- capName: "streaming-engine",
22323
- capScope: "system",
22324
- addonId: null,
22325
- access: "delete"
22326
- },
22327
22598
  "streamParams.getConfigSchema": {
22328
22599
  capName: "stream-params",
22329
22600
  capScope: "device",
@@ -22672,6 +22943,18 @@ Object.freeze({
22672
22943
  addonId: null,
22673
22944
  access: "view"
22674
22945
  },
22946
+ "viewerUi.getStaticDir": {
22947
+ capName: "viewer-ui",
22948
+ capScope: "system",
22949
+ addonId: null,
22950
+ access: "view"
22951
+ },
22952
+ "viewerUi.getVersion": {
22953
+ capName: "viewer-ui",
22954
+ capScope: "system",
22955
+ addonId: null,
22956
+ access: "view"
22957
+ },
22675
22958
  "waterHeater.setAway": {
22676
22959
  capName: "water-heater",
22677
22960
  capScope: "device",
@@ -22690,54 +22973,6 @@ Object.freeze({
22690
22973
  addonId: null,
22691
22974
  access: "create"
22692
22975
  },
22693
- "webrtc.closeSession": {
22694
- capName: "webrtc",
22695
- capScope: "system",
22696
- addonId: null,
22697
- access: "create"
22698
- },
22699
- "webrtc.createSession": {
22700
- capName: "webrtc",
22701
- capScope: "system",
22702
- addonId: null,
22703
- access: "create"
22704
- },
22705
- "webrtc.handleAnswer": {
22706
- capName: "webrtc",
22707
- capScope: "system",
22708
- addonId: null,
22709
- access: "create"
22710
- },
22711
- "webrtc.handleOffer": {
22712
- capName: "webrtc",
22713
- capScope: "system",
22714
- addonId: null,
22715
- access: "create"
22716
- },
22717
- "webrtc.hasAdaptiveBitrate": {
22718
- capName: "webrtc",
22719
- capScope: "system",
22720
- addonId: null,
22721
- access: "view"
22722
- },
22723
- "webrtc.registerStream": {
22724
- capName: "webrtc",
22725
- capScope: "system",
22726
- addonId: null,
22727
- access: "create"
22728
- },
22729
- "webrtc.supportsStream": {
22730
- capName: "webrtc",
22731
- capScope: "system",
22732
- addonId: null,
22733
- access: "view"
22734
- },
22735
- "webrtc.unregisterStream": {
22736
- capName: "webrtc",
22737
- capScope: "system",
22738
- addonId: null,
22739
- access: "delete"
22740
- },
22741
22976
  "webrtcSession.addIceCandidate": {
22742
22977
  capName: "webrtc-session",
22743
22978
  capScope: "device",