@camstack/addon-cloudflare 1.1.19 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-CZDdRBua.mjs
4630
+ //#region ../types/dist/sleep-DJaTV2D7.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4813,6 +4813,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4813
4813
  */
4814
4814
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4815
4815
  /**
4816
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4817
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4818
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4819
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4820
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4821
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4822
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4823
+ * topology change, so a dropped event self-heals on the next one (plus the
4824
+ * broker's long backstop reconcile query).
4825
+ */
4826
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4827
+ /**
4816
4828
  * Periodic snapshot of per-node pipeline-runner load
4817
4829
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4818
4830
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5336,10 +5348,6 @@ function hydrateField(field, values) {
5336
5348
  };
5337
5349
  }
5338
5350
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5339
- if (field.type === "password") return {
5340
- ...field,
5341
- value: ""
5342
- };
5343
5351
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5344
5352
  return {
5345
5353
  ...field,
@@ -6723,6 +6731,9 @@ function method(input, output, options) {
6723
6731
  timeoutMs: options?.timeoutMs
6724
6732
  };
6725
6733
  }
6734
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6735
+ var VersionOutputSchema$1 = object({ version: string() });
6736
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6726
6737
  var StaticDirOutputSchema = object({ staticDir: string() });
6727
6738
  var VersionOutputSchema = object({ version: string() });
6728
6739
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6892,6 +6903,36 @@ var ModelFormatsSchema = object({
6892
6903
  tflite: ModelFormatEntrySchema.optional(),
6893
6904
  pt: ModelFormatEntrySchema.optional()
6894
6905
  });
6906
+ /**
6907
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6908
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6909
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6910
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6911
+ * resolution/download/persistence; this is a presentation overlay resolved back
6912
+ * to an `id`.
6913
+ */
6914
+ var ModelVariantGroupSchema = object({
6915
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6916
+ family: string(),
6917
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6918
+ tier: string(),
6919
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6920
+ precision: _enum(["fp32", "int8"]).optional(),
6921
+ /**
6922
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6923
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6924
+ * future performance variants plug into.
6925
+ */
6926
+ optimization: _enum(["standard", "fast"]).optional(),
6927
+ /**
6928
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6929
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6930
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6931
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6932
+ * the group so the selector can offer it as a variant axis.
6933
+ */
6934
+ resolution: number().int().positive().optional()
6935
+ });
6895
6936
  var ModelCatalogEntrySchema = object({
6896
6937
  id: string(),
6897
6938
  name: string(),
@@ -6921,7 +6962,43 @@ var ModelCatalogEntrySchema = object({
6921
6962
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6922
6963
  * Downloaded into the same modelsDir alongside the model file.
6923
6964
  */
6924
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6965
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6966
+ /**
6967
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6968
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6969
+ * model list and excluded from the auto format-default pick. Set on the
6970
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
6971
+ * the active lineup stays the coherent curated ladder without deleting a
6972
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
6973
+ * an explicit legacy id that has a build for the node's format.
6974
+ */
6975
+ legacy: boolean().optional(),
6976
+ /**
6977
+ * Measured quality/latency metadata — populated from the benchmark addon on
6978
+ * the real node classes. Absent = not yet measured (most entries today; the
6979
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
6980
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
6981
+ */
6982
+ metrics: object({
6983
+ map50: number().optional(),
6984
+ p95LatencyMs: record(string(), number()).optional()
6985
+ }).optional(),
6986
+ /**
6987
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
6988
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
6989
+ * the retraining addon and any future commercial distribution.
6990
+ */
6991
+ license: string().optional(),
6992
+ /**
6993
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
6994
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
6995
+ * of a family's sizes and quantizations collapse into one grouped picker
6996
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
6997
+ * (legacy / custom models) — never shown in the grouped selector. The flat
6998
+ * `id` stays the source of truth for resolution/download/persistence; grouping
6999
+ * is a presentation overlay resolved back to an `id`.
7000
+ */
7001
+ group: ModelVariantGroupSchema.optional()
6925
7002
  });
6926
7003
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6927
7004
  format: literal("openvino"),
@@ -6982,8 +7059,8 @@ var RecordingModeSchema = _enum([
6982
7059
  "onAudioThreshold"
6983
7060
  ]);
6984
7061
  /**
6985
- * First-class, authoritative per-camera storage mode — the netta choice the UI
6986
- * reads directly (never inferred from `rules`):
7062
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7063
+ * UI reads directly (never inferred from `rules`):
6987
7064
  * - `off` — not recording.
6988
7065
  * - `events` — record only around triggers (motion / audio threshold),
6989
7066
  * with pre/post-buffer.
@@ -8631,26 +8708,13 @@ DeviceType.Light, method(object({
8631
8708
  percentage: number().min(0).max(100),
8632
8709
  lastChangedAt: number()
8633
8710
  });
8711
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8634
8712
  var StreamFormatSchema = _enum([
8635
8713
  "webrtc",
8636
8714
  "hls",
8637
8715
  "mjpeg",
8638
8716
  "rtsp"
8639
8717
  ]);
8640
- var StreamInfoSchema = object({
8641
- streamId: string(),
8642
- format: StreamFormatSchema,
8643
- url: string().nullable(),
8644
- active: boolean()
8645
- });
8646
- method(object({
8647
- streamId: string(),
8648
- sourceUrl: string(),
8649
- codec: string().optional()
8650
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8651
- streamId: string(),
8652
- format: StreamFormatSchema
8653
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8654
8718
  var RtspRestreamEntrySchema = object({
8655
8719
  brokerId: string(),
8656
8720
  url: string(),
@@ -9315,7 +9379,7 @@ var ConsumablesStatusSchema = object({
9315
9379
  })),
9316
9380
  lastChangedAt: number()
9317
9381
  });
9318
- 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({
9382
+ Object.values(DeviceType), method(object({
9319
9383
  deviceId: number().int().nonnegative(),
9320
9384
  key: string().min(1)
9321
9385
  }), _void(), {
@@ -10230,7 +10294,7 @@ var BoundingBoxSchema = object({
10230
10294
  w: number(),
10231
10295
  h: number()
10232
10296
  });
10233
- var SpatialDetectionSchema = object({
10297
+ object({
10234
10298
  class: string(),
10235
10299
  originalClass: string(),
10236
10300
  score: number(),
@@ -10365,7 +10429,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10365
10429
  enabled: boolean(),
10366
10430
  modelId: string(),
10367
10431
  children: array(PipelineDefaultStepSchema).readonly(),
10368
- engine: PipelineEngineChoiceSchema.optional(),
10369
10432
  group: string().optional(),
10370
10433
  settings: record(string(), unknown()).optional()
10371
10434
  }));
@@ -10390,7 +10453,9 @@ var PipelineModelOptionSchema = object({
10390
10453
  formats: record(string(), object({
10391
10454
  downloaded: boolean(),
10392
10455
  sizeMB: number()
10393
- }))
10456
+ })),
10457
+ group: ModelVariantGroupSchema.optional(),
10458
+ legacy: boolean().optional()
10394
10459
  });
10395
10460
  var ConfigFieldBridge = custom();
10396
10461
  var PipelineAddonSchemaSchema = object({
@@ -10420,11 +10485,6 @@ var PipelineSchemaSchema = object({
10420
10485
  selectedEngine: PipelineEngineChoiceSchema,
10421
10486
  slots: array(PipelineSlotSchemaSchema).readonly()
10422
10487
  });
10423
- var DetectorOutputSchema = object({
10424
- detections: array(SpatialDetectionSchema).readonly(),
10425
- inferenceMs: number(),
10426
- modelId: string()
10427
- });
10428
10488
  var EngineProvisioningSchema = object({
10429
10489
  runtimeId: _enum([
10430
10490
  "onnx",
@@ -10441,15 +10501,42 @@ var EngineProvisioningSchema = object({
10441
10501
  ]),
10442
10502
  progress: number().optional(),
10443
10503
  error: string().optional(),
10444
- nextRetryAt: number().optional()
10504
+ nextRetryAt: number().optional(),
10505
+ /**
10506
+ * Gate A (config-correctness gate at engine change): human-readable
10507
+ * config issues surfaced EAGERLY when the node's engine changes — model
10508
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10509
+ * has a <format> build"). Additive/optional: informational only, never
10510
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10511
+ * Absent/empty when the node-default tree resolves cleanly.
10512
+ */
10513
+ configIssues: array(string()).optional()
10445
10514
  });
10446
10515
  var PipelineStepInputSchema = lazy(() => object({
10447
10516
  addonId: string(),
10448
- modelId: string(),
10517
+ modelId: string().optional(),
10449
10518
  enabled: boolean().default(true),
10450
10519
  children: array(PipelineStepInputSchema).optional(),
10451
10520
  settings: record(string(), unknown()).optional()
10452
10521
  }));
10522
+ var ModelSubstitutionSchema = object({
10523
+ addonId: string(),
10524
+ chosen: string(),
10525
+ running: string(),
10526
+ format: string()
10527
+ });
10528
+ var PipelineValidationIssueSchema = object({
10529
+ addonId: string(),
10530
+ kind: _enum(["unknown-addon", "no-format-build"]),
10531
+ detail: string()
10532
+ });
10533
+ var PipelineValidationResultSchema = object({
10534
+ ok: boolean(),
10535
+ issues: array(PipelineValidationIssueSchema).readonly(),
10536
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10537
+ /** The node's `currentEngine.format` this validation ran against. */
10538
+ format: string()
10539
+ });
10453
10540
  var ReferenceImageEntrySchema = object({
10454
10541
  filename: string(),
10455
10542
  stepIds: array(string()).readonly().optional()
@@ -10520,7 +10607,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10520
10607
  })) }), object({ success: literal(true) }), {
10521
10608
  kind: "mutation",
10522
10609
  auth: "admin"
10523
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10610
+ }), method(object({ nodeId: string() }), object({
10611
+ success: literal(true),
10612
+ clearedDevices: number()
10613
+ }), {
10614
+ kind: "mutation",
10615
+ auth: "admin"
10616
+ }), 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({
10524
10617
  name: string(),
10525
10618
  steps: array(PipelineTemplateStepSchema).readonly(),
10526
10619
  engine: PipelineEngineChoiceSchema
@@ -10537,10 +10630,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10537
10630
  modelId: string(),
10538
10631
  format: ModelFormatSchema$1
10539
10632
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10540
- addonId: string(),
10541
- frame: FrameInputSchema,
10542
- config: record(string(), unknown()).optional()
10543
- }), DetectorOutputSchema), method(object({
10544
10633
  engine: PipelineEngineChoiceSchema.optional(),
10545
10634
  steps: array(PipelineStepInputSchema).min(1),
10546
10635
  frame: FrameInputSchema.optional(),
@@ -10780,6 +10869,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10780
10869
  kind: literal("remote-restream"),
10781
10870
  /** The camera's source-owner node (slice 1: always the hub). */
10782
10871
  ownerNodeId: string(),
10872
+ /**
10873
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10874
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10875
+ * dials THIS host for the owner's restream, in preference to the
10876
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10877
+ */
10878
+ ownerReachableHost: string().optional(),
10783
10879
  /** Operator override for the owner host the runner dials. */
10784
10880
  hubHostnameOverride: string().optional()
10785
10881
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10788,13 +10884,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10788
10884
  * specific runner instance via `attachCamera`. Carries everything the
10789
10885
  * runner needs to subscribe to the local broker and execute inference.
10790
10886
  *
10791
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10792
- * optional `audio`) travels with the attach payload. The runner keeps it
10793
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10794
- * restart the orchestrator re-sends the latest snapshot.
10795
- *
10796
- * `engine`/`steps`/`audio` are optional during the additive migration
10797
- * window; once orchestrator + UI are migrated they become required.
10887
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10888
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10889
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10890
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10891
+ * node-local, resolved by the executing runner at dispatch time.
10798
10892
  */
10799
10893
  var RunnerCameraConfigSchema = object({
10800
10894
  deviceId: number(),
@@ -10845,14 +10939,11 @@ var RunnerCameraConfigSchema = object({
10845
10939
  */
10846
10940
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10847
10941
  pipelineEnabled: boolean().default(true),
10848
- /** Engine choice for video steps (runtime+backend+format). */
10849
- engine: PipelineEngineChoiceSchema.optional(),
10850
10942
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10851
10943
  steps: array(PipelineStepInputSchema).readonly().optional(),
10852
10944
  /** Audio classification branch. `enabled:false` disables, null skips. */
10853
10945
  audio: object({
10854
- engine: PipelineEngineChoiceSchema,
10855
- modelId: string(),
10946
+ modelId: string().optional(),
10856
10947
  enabled: boolean()
10857
10948
  }).nullable().optional(),
10858
10949
  /**
@@ -12233,7 +12324,9 @@ var AddonPageDeclarationSchema$1 = object({
12233
12324
  icon: string(),
12234
12325
  path: string(),
12235
12326
  remoteName: string(),
12236
- bundle: string()
12327
+ bundle: string(),
12328
+ section: string().optional(),
12329
+ sectionLabel: string().optional()
12237
12330
  });
12238
12331
  var AddonPageInfoSchema = object({
12239
12332
  addonId: string(),
@@ -12273,7 +12366,18 @@ var AddonPageDeclarationSchema = object({
12273
12366
  * the static-file route can compute an mtime-based cache-buster URL
12274
12367
  * without a separate filesystem stat.
12275
12368
  */
12276
- bundle: string()
12369
+ bundle: string(),
12370
+ /**
12371
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12372
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12373
+ * Any OTHER string creates (or joins) a custom section rendered after
12374
+ * the built-in groups; its label comes from `sectionLabel` (first
12375
+ * declaration wins), falling back to the id. Absent → the legacy
12376
+ * "Addon Pages" group.
12377
+ */
12378
+ section: string().optional(),
12379
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12380
+ sectionLabel: string().optional()
12277
12381
  });
12278
12382
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12279
12383
  var AddonHttpRouteSchema = object({
@@ -12489,6 +12593,17 @@ var WidgetMetadataSchema = object({
12489
12593
  deviceContext: boolean().default(false),
12490
12594
  integrationContext: boolean().default(false)
12491
12595
  }),
12596
+ /**
12597
+ * Loadable BEFORE authentication. The normal widget registry listing
12598
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12599
+ * (the login page) cannot discover a widget through it. A widget that
12600
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12601
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12602
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12603
+ * than the authenticated registry, and its bundle is served by the
12604
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12605
+ */
12606
+ preAuth: boolean().optional().default(false),
12492
12607
  /** Dashboard placement HINTS (operator can override per instance). */
12493
12608
  defaultSize: WidgetSizeEnum.default("md"),
12494
12609
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12790,6 +12905,66 @@ method(object({
12790
12905
  password: string()
12791
12906
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12792
12907
  /**
12908
+ * `login-method` — collection cap through which auth addons contribute
12909
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
12910
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
12911
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
12912
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
12913
+ * procedure aggregates them for the unauthenticated login page.
12914
+ *
12915
+ * A contribution is a discriminated union on `kind`:
12916
+ *
12917
+ * - `redirect` — a declarative button. The login page renders a generic
12918
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
12919
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
12920
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
12921
+ * login page needs NO change.
12922
+ *
12923
+ * - `widget` — a Module-Federation widget the login page mounts (via
12924
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
12925
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
12926
+ * addon bundle. The referenced widget also declares `preAuth: true` in
12927
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
12928
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
12929
+ *
12930
+ * Every contribution carries a `stage`:
12931
+ * - `primary` — shown on the first credentials screen (OIDC /
12932
+ * magic-link buttons; a future usernameless passkey).
12933
+ * - `second-factor` — shown AFTER the password leg, gated on the
12934
+ * returned `factors` (passkey-as-2FA today).
12935
+ *
12936
+ * `mount: skip` — the cap is read server-side by the core auth router
12937
+ * (`registry.getCollection('login-method')`), never mounted as its own
12938
+ * tRPC router.
12939
+ */
12940
+ /** When a login method renders in the two-phase login flow. */
12941
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
12942
+ /** One login-method contribution — redirect button OR pre-auth widget. */
12943
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
12944
+ kind: literal("redirect"),
12945
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
12946
+ id: string(),
12947
+ /** Operator-facing button label. */
12948
+ label: string(),
12949
+ /** lucide-react icon name. */
12950
+ icon: string().optional(),
12951
+ /** Addon-owned HTTP route the button navigates to (GET). */
12952
+ startUrl: string(),
12953
+ stage: LoginStageEnum
12954
+ }), object({
12955
+ kind: literal("widget"),
12956
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
12957
+ id: string(),
12958
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
12959
+ addonId: string(),
12960
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
12961
+ bundle: string(),
12962
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
12963
+ remote: WidgetRemoteSchema,
12964
+ stage: LoginStageEnum
12965
+ })]);
12966
+ method(_void(), array(LoginMethodContributionSchema).readonly());
12967
+ /**
12793
12968
  * Orchestrator-side destination metadata. The orchestrator computes
12794
12969
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12795
12970
  * (admin UI, restore flow) see one canonical key.
@@ -15116,11 +15291,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15116
15291
  timestamp: number()
15117
15292
  });
15118
15293
  var CameraPipelineConfigSchema = object({
15119
- engine: PipelineEngineChoiceSchema,
15294
+ engine: PipelineEngineChoiceSchema.optional(),
15120
15295
  steps: array(PipelineStepInputSchema).readonly(),
15121
15296
  audio: object({
15122
- engine: PipelineEngineChoiceSchema,
15123
- modelId: string(),
15297
+ engine: PipelineEngineChoiceSchema.optional(),
15298
+ modelId: string().optional(),
15124
15299
  enabled: boolean(),
15125
15300
  settings: record(string(), unknown()).readonly().optional()
15126
15301
  }).nullable().optional()
@@ -15135,7 +15310,7 @@ var PipelineTemplateSchema = object({
15135
15310
  });
15136
15311
  var AgentAddonConfigSchema = object({
15137
15312
  enabled: boolean(),
15138
- modelId: string(),
15313
+ modelId: string().optional(),
15139
15314
  settings: record(string(), unknown()).readonly()
15140
15315
  });
15141
15316
  var AgentPipelineSettingsSchema = object({
@@ -15145,12 +15320,25 @@ var AgentPipelineSettingsSchema = object({
15145
15320
  detectWeight: number().positive().optional(),
15146
15321
  /** Node is eligible to run the detection pipeline (decode + inference). */
15147
15322
  detect: boolean().optional(),
15148
- /** Node is eligible to host decoder sessions. */
15323
+ /**
15324
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15325
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15326
+ * the schema ONLY so persisted stores written before the removal still
15327
+ * parse — no code reads it and no write path emits it.
15328
+ */
15149
15329
  decode: boolean().optional(),
15150
15330
  /** Node is eligible to run audio-analyzer sessions. */
15151
15331
  audio: boolean().optional(),
15152
15332
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15153
- ingest: boolean().optional()
15333
+ ingest: boolean().optional(),
15334
+ /**
15335
+ * Operator override for the LAN host a cross-node decoder dials to reach
15336
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15337
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15338
+ * it already uses to reach the hub). Set this only when the auto-detected
15339
+ * address is wrong (multi-homed host, NAT, custom interface).
15340
+ */
15341
+ reachableHost: string().optional()
15154
15342
  });
15155
15343
  var CameraPipelineForAgentSchema = object({
15156
15344
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15198,25 +15386,6 @@ var PipelineAssignmentSchema = object({
15198
15386
  assignedAt: number()
15199
15387
  });
15200
15388
  /**
15201
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15202
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15203
- * → co-located with pipeline → capacity).
15204
- */
15205
- var DecoderAssignmentSchema = object({
15206
- deviceId: number(),
15207
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15208
- decoderNodeId: string(),
15209
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15210
- pinned: boolean(),
15211
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15212
- reason: _enum([
15213
- "manual",
15214
- "co-located",
15215
- "capacity",
15216
- "hardware-affinity"
15217
- ])
15218
- });
15219
- /**
15220
15389
  * Per-agent load summary surfaced to the load balancer + dashboards.
15221
15390
  * Aggregated from each runner's `getLocalLoad` cap call.
15222
15391
  */
@@ -15256,6 +15425,15 @@ var GlobalMetricsSchema = object({
15256
15425
  * capability providers.
15257
15426
  */
15258
15427
  var CapabilityBindingsSchema = record(string(), string());
15428
+ /**
15429
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15430
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15431
+ */
15432
+ var IngestOwnerSchema = object({
15433
+ ownerNodeId: string(),
15434
+ reachableHost: string().optional(),
15435
+ configIssue: string().optional()
15436
+ });
15259
15437
  /** Source block — always present; derives from the stream catalog. */
15260
15438
  var CameraSourceStatusSchema = object({ streams: array(object({
15261
15439
  camStreamId: string(),
@@ -15270,6 +15448,14 @@ var CameraAssignmentStatusSchema = object({
15270
15448
  detectionNodeId: string().nullable(),
15271
15449
  decoderNodeId: string().nullable(),
15272
15450
  audioNodeId: string().nullable(),
15451
+ /**
15452
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15453
+ * hosts the broker/restream) — the cluster ingest owner today
15454
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15455
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15456
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15457
+ */
15458
+ sourceNodeId: string().nullable(),
15273
15459
  pinned: object({
15274
15460
  detection: boolean(),
15275
15461
  decoder: boolean(),
@@ -15402,16 +15588,7 @@ method(object({
15402
15588
  }), object({ success: literal(true) }), {
15403
15589
  kind: "mutation",
15404
15590
  auth: "admin"
15405
- }), method(object({
15406
- deviceId: number(),
15407
- nodeId: string()
15408
- }), _void(), {
15409
- kind: "mutation",
15410
- auth: "admin"
15411
- }), method(object({ deviceId: number() }), _void(), {
15412
- kind: "mutation",
15413
- auth: "admin"
15414
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15591
+ }), method(_void(), IngestOwnerSchema), method(object({
15415
15592
  deviceId: number(),
15416
15593
  nodeId: string()
15417
15594
  }), object({ success: literal(true) }), {
@@ -15432,10 +15609,7 @@ method(object({
15432
15609
  nodeId: string(),
15433
15610
  pinned: boolean(),
15434
15611
  assignedAt: number()
15435
- }))), method(object({
15436
- deviceId: number(),
15437
- pipelineNodeId: string().optional()
15438
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15612
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15439
15613
  nodeId: string(),
15440
15614
  settings: AgentPipelineSettingsSchema
15441
15615
  })).readonly()), method(object({
@@ -15465,12 +15639,26 @@ method(object({
15465
15639
  }), method(object({
15466
15640
  agentNodeId: string(),
15467
15641
  detect: boolean().nullable().optional(),
15468
- decode: boolean().nullable().optional(),
15469
15642
  audio: boolean().nullable().optional(),
15470
15643
  ingest: boolean().nullable().optional()
15471
15644
  }), object({ success: literal(true) }), {
15472
15645
  kind: "mutation",
15473
15646
  auth: "admin"
15647
+ }), method(object({
15648
+ agentNodeId: string(),
15649
+ reachableHost: string().nullable()
15650
+ }), object({ success: literal(true) }), {
15651
+ kind: "mutation",
15652
+ auth: "admin"
15653
+ }), method(object({ agentNodeId: string() }), object({
15654
+ success: literal(true),
15655
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15656
+ effectiveModelId: string().nullable(),
15657
+ /** Number of cameras whose node-scoped overrides were cleared. */
15658
+ clearedCameraOverrides: number()
15659
+ }), {
15660
+ kind: "mutation",
15661
+ auth: "admin"
15474
15662
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15475
15663
  deviceId: number(),
15476
15664
  addonId: string(),
@@ -15515,22 +15703,131 @@ method(object({
15515
15703
  kind: "mutation",
15516
15704
  auth: "admin"
15517
15705
  });
15518
- var RegisteredStreamSchema = object({
15519
- streamId: string(),
15520
- label: string().optional(),
15521
- codec: string(),
15522
- type: _enum(["video", "audio"]),
15523
- sourceUrl: string()
15706
+ /**
15707
+ * server-management — per-NODE singleton capability for a node's ROOT
15708
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15709
+ * agents).
15710
+ *
15711
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15712
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15713
+ * version describes the node. Updates install into
15714
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15715
+ * starter (probation boot + auto-rollback to N-1).
15716
+ *
15717
+ * Providers:
15718
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15719
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15720
+ * unpinned calls.
15721
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15722
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15723
+ * `$hub.registerNode` manifest.
15724
+ *
15725
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15726
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15727
+ * SDK) routes the call to that node's provider via the standard remote
15728
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15729
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15730
+ *
15731
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15732
+ */
15733
+ /**
15734
+ * Where the running hub's code was loaded from:
15735
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15736
+ * plain resolution and runtime updates are refused.
15737
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15738
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15739
+ */
15740
+ var ServerBootModeSchema = _enum([
15741
+ "workspace",
15742
+ "baked",
15743
+ "data-root"
15744
+ ]);
15745
+ /**
15746
+ * Update lifecycle state:
15747
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15748
+ * - `pending-restart` — a version is staged and the node has NOT yet
15749
+ * restarted onto it (still running the OLD version).
15750
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15751
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15752
+ * Apply/rollback are refused in this state and the node must NOT be
15753
+ * manually restarted, or the probation boot auto-rolls-back.
15754
+ */
15755
+ var ServerUpdateStateSchema = _enum([
15756
+ "idle",
15757
+ "checking",
15758
+ "staging",
15759
+ "pending-restart",
15760
+ "awaiting-confirmation"
15761
+ ]);
15762
+ var ServerRollbackInfoSchema = object({
15763
+ /** The version that failed (or was manually rolled back). */
15764
+ fromVersion: string(),
15765
+ /** The version rolled back to; null = the baked seed. */
15766
+ toVersion: string().nullable(),
15767
+ atMs: number(),
15768
+ reason: string()
15524
15769
  });
15525
- var ExposedResourceSchema = object({
15526
- streamId: string(),
15527
- format: string(),
15528
- value: string()
15770
+ var ServerPackageStatusSchema = object({
15771
+ /** Root package name (`@camstack/server` on the hub). */
15772
+ packageName: string(),
15773
+ /** Version of the code the running process ACTUALLY loaded. */
15774
+ runningVersion: string().nullable(),
15775
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15776
+ nodeRuntimeVersion: string().nullable(),
15777
+ /** Active data-dir root version; null when booted from seed/workspace. */
15778
+ activeVersion: string().nullable(),
15779
+ /** N-1 version kept for rollback; null when no previous version exists. */
15780
+ previousVersion: string().nullable(),
15781
+ /** Version of the immutable baked seed closure (image fallback). */
15782
+ seedVersion: string().nullable(),
15783
+ /** Latest registry version from the most recent check (null = never checked). */
15784
+ latestVersion: string().nullable(),
15785
+ updateAvailable: boolean(),
15786
+ bootMode: ServerBootModeSchema,
15787
+ updateState: ServerUpdateStateSchema,
15788
+ /** Version staged + awaiting its probation boot, when one is pending. */
15789
+ pendingVersion: string().nullable(),
15790
+ /** Set when the last freshly-activated version failed its boot health-check. */
15791
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15792
+ /**
15793
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15794
+ * hub is running from the baked seed (or workspace) while installed data-dir
15795
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15796
+ */
15797
+ stateFileCorrupt: boolean(),
15798
+ lastCheckedAtMs: number().nullable()
15799
+ });
15800
+ var ServerUpdateCheckResultSchema = object({
15801
+ packageName: string(),
15802
+ runningVersion: string().nullable(),
15803
+ latestVersion: string().nullable(),
15804
+ updateAvailable: boolean(),
15805
+ checkedAtMs: number(),
15806
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15807
+ error: string().nullable()
15808
+ });
15809
+ var ServerUpdateActionResultSchema = object({
15810
+ accepted: boolean(),
15811
+ targetVersion: string().nullable(),
15812
+ /** True when a graceful restart was scheduled to apply the change. */
15813
+ restarting: boolean(),
15814
+ message: string()
15815
+ });
15816
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15817
+ kind: "mutation",
15818
+ auth: "admin"
15819
+ }), method(object({
15820
+ /** Explicit target version; omitted = latest from the registry. */
15821
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15822
+ kind: "mutation",
15823
+ auth: "admin"
15824
+ }), method(_void(), ServerUpdateActionResultSchema, {
15825
+ kind: "mutation",
15826
+ auth: "admin"
15827
+ }), method(_void(), ServerUpdateActionResultSchema, {
15828
+ kind: "mutation",
15829
+ auth: "admin"
15529
15830
  });
15530
- method(object({
15531
- deviceId: number(),
15532
- streams: array(RegisteredStreamSchema).readonly()
15533
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15534
15831
  /**
15535
15832
  * Query filter for settings-store collections.
15536
15833
  */
@@ -15683,9 +15980,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15683
15980
  /**
15684
15981
  * A single device snapshot returned as base64 JPEG/PNG.
15685
15982
  *
15686
- * Shared with the `snapshot-provider` collection cap the orchestrator
15687
- * receives the same shape from each native provider and from the
15688
- * broker-based fallback.
15983
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
15984
+ * the device-native provider (onboard capture) or from the stream-broker
15985
+ * prebuffer fallback.
15689
15986
  */
15690
15987
  var SnapshotImageSchema = object({
15691
15988
  base64: string(),
@@ -15717,10 +16014,6 @@ DeviceType.Camera, method(object({
15717
16014
  kind: "mutation",
15718
16015
  auth: "admin"
15719
16016
  });
15720
- method(object({ deviceId: number() }), boolean()), method(object({
15721
- deviceId: number(),
15722
- streamId: string().optional()
15723
- }), SnapshotImageSchema.nullable());
15724
16017
  /**
15725
16018
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15726
16019
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16104,9 +16397,10 @@ method(object({
16104
16397
  auth: "admin"
16105
16398
  });
16106
16399
  /**
16107
- * Optional client-side hints sent at session creation to help the
16108
- * provider pick the best native source. All fields are optional —
16109
- * a viewer that knows nothing still gets a sane default.
16400
+ * Optional client-side hints sent at session creation to help the provider
16401
+ * pick the best native source. All fields optional — a viewer that knows
16402
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16403
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16110
16404
  */
16111
16405
  var webrtcClientHintsSchema = object({
16112
16406
  viewportWidth: number().int().positive().optional(),
@@ -16117,22 +16411,6 @@ var webrtcClientHintsSchema = object({
16117
16411
  /** Hard tier override; takes precedence over scoring when registered. */
16118
16412
  prefersTier: string().optional()
16119
16413
  }).partial();
16120
- method(object({
16121
- streamId: string(),
16122
- sdpOffer: string()
16123
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16124
- streamId: string(),
16125
- codec: string()
16126
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16127
- streamId: string(),
16128
- hints: webrtcClientHintsSchema.optional()
16129
- }), object({
16130
- sessionId: string(),
16131
- sdpOffer: string()
16132
- }), { kind: "mutation" }), method(object({
16133
- sessionId: string(),
16134
- sdpAnswer: string()
16135
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16136
16414
  /**
16137
16415
  * Discriminated target for a WebRTC session. The client sends this
16138
16416
  * structured object instead of building / parsing brokerId strings;
@@ -16619,7 +16897,15 @@ var FrameworkPackageStatusSchema = object({
16619
16897
  latestVersion: string().nullable(),
16620
16898
  hasUpdate: boolean(),
16621
16899
  /** Optional manifest description for the row tooltip. */
16622
- description: string().optional()
16900
+ description: string().optional(),
16901
+ /**
16902
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
16903
+ * ACTUALLY loaded. Framework packages ship code changes without always
16904
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
16905
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
16906
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
16907
+ */
16908
+ buildId: string().nullable()
16623
16909
  });
16624
16910
  var LogStreamEntrySchema = object({
16625
16911
  timestamp: string(),
@@ -17552,6 +17838,16 @@ var TopologyCategorySchema = object({
17552
17838
  healthy: number(),
17553
17839
  addons: array(TopologyCategoryAddonSchema).readonly()
17554
17840
  });
17841
+ /**
17842
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17843
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17844
+ * version visibility for the Server management surface. Nullable: offline
17845
+ * rows and pre-phase-2 nodes report none.
17846
+ */
17847
+ var TopologyRootPackageSchema = object({
17848
+ name: string(),
17849
+ version: string()
17850
+ });
17555
17851
  var TopologyNodeSchema = object({
17556
17852
  id: string(),
17557
17853
  name: string(),
@@ -17575,7 +17871,8 @@ var TopologyNodeSchema = object({
17575
17871
  status: string()
17576
17872
  })).readonly(),
17577
17873
  processes: array(TopologyProcessSchema).readonly(),
17578
- categories: array(TopologyCategorySchema).readonly()
17874
+ categories: array(TopologyCategorySchema).readonly(),
17875
+ rootPackage: TopologyRootPackageSchema.nullable()
17579
17876
  });
17580
17877
  var CapUsageEdgeSchema = object({
17581
17878
  callerAddonId: string(),
@@ -20375,6 +20672,12 @@ Object.freeze({
20375
20672
  addonId: null,
20376
20673
  access: "create"
20377
20674
  },
20675
+ "loginMethod.getLoginMethods": {
20676
+ capName: "login-method",
20677
+ capScope: "system",
20678
+ addonId: null,
20679
+ access: "view"
20680
+ },
20378
20681
  "mediaPlayer.next": {
20379
20682
  capName: "media-player",
20380
20683
  capScope: "device",
@@ -21005,23 +21308,23 @@ Object.freeze({
21005
21308
  addonId: null,
21006
21309
  access: "create"
21007
21310
  },
21008
- "pipelineExecutor.deleteModel": {
21311
+ "pipelineExecutor.clearDeviceOverrides": {
21009
21312
  capName: "pipeline-executor",
21010
21313
  capScope: "system",
21011
21314
  addonId: null,
21012
21315
  access: "delete"
21013
21316
  },
21014
- "pipelineExecutor.deleteTemplate": {
21317
+ "pipelineExecutor.deleteModel": {
21015
21318
  capName: "pipeline-executor",
21016
21319
  capScope: "system",
21017
21320
  addonId: null,
21018
21321
  access: "delete"
21019
21322
  },
21020
- "pipelineExecutor.detect": {
21323
+ "pipelineExecutor.deleteTemplate": {
21021
21324
  capName: "pipeline-executor",
21022
21325
  capScope: "system",
21023
21326
  addonId: null,
21024
- access: "view"
21327
+ access: "delete"
21025
21328
  },
21026
21329
  "pipelineExecutor.downloadModel": {
21027
21330
  capName: "pipeline-executor",
@@ -21215,13 +21518,13 @@ Object.freeze({
21215
21518
  addonId: null,
21216
21519
  access: "create"
21217
21520
  },
21218
- "pipelineOrchestrator.assignAudio": {
21219
- capName: "pipeline-orchestrator",
21521
+ "pipelineExecutor.validatePipeline": {
21522
+ capName: "pipeline-executor",
21220
21523
  capScope: "system",
21221
21524
  addonId: null,
21222
- access: "create"
21525
+ access: "view"
21223
21526
  },
21224
- "pipelineOrchestrator.assignDecoder": {
21527
+ "pipelineOrchestrator.assignAudio": {
21225
21528
  capName: "pipeline-orchestrator",
21226
21529
  capScope: "system",
21227
21530
  addonId: null,
@@ -21305,19 +21608,13 @@ Object.freeze({
21305
21608
  addonId: null,
21306
21609
  access: "view"
21307
21610
  },
21308
- "pipelineOrchestrator.getDecoderAssignment": {
21309
- capName: "pipeline-orchestrator",
21310
- capScope: "system",
21311
- addonId: null,
21312
- access: "view"
21313
- },
21314
- "pipelineOrchestrator.getDecoderAssignments": {
21611
+ "pipelineOrchestrator.getGlobalMetrics": {
21315
21612
  capName: "pipeline-orchestrator",
21316
21613
  capScope: "system",
21317
21614
  addonId: null,
21318
21615
  access: "view"
21319
21616
  },
21320
- "pipelineOrchestrator.getGlobalMetrics": {
21617
+ "pipelineOrchestrator.getIngestOwner": {
21321
21618
  capName: "pipeline-orchestrator",
21322
21619
  capScope: "system",
21323
21620
  addonId: null,
@@ -21359,6 +21656,12 @@ Object.freeze({
21359
21656
  addonId: null,
21360
21657
  access: "delete"
21361
21658
  },
21659
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21660
+ capName: "pipeline-orchestrator",
21661
+ capScope: "system",
21662
+ addonId: null,
21663
+ access: "delete"
21664
+ },
21362
21665
  "pipelineOrchestrator.resolvePipeline": {
21363
21666
  capName: "pipeline-orchestrator",
21364
21667
  capScope: "system",
@@ -21395,37 +21698,37 @@ Object.freeze({
21395
21698
  addonId: null,
21396
21699
  access: "create"
21397
21700
  },
21398
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21701
+ "pipelineOrchestrator.setAgentReachableHost": {
21399
21702
  capName: "pipeline-orchestrator",
21400
21703
  capScope: "system",
21401
21704
  addonId: null,
21402
21705
  access: "create"
21403
21706
  },
21404
- "pipelineOrchestrator.setCameraStepOverride": {
21707
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21405
21708
  capName: "pipeline-orchestrator",
21406
21709
  capScope: "system",
21407
21710
  addonId: null,
21408
21711
  access: "create"
21409
21712
  },
21410
- "pipelineOrchestrator.setCameraStepToggle": {
21713
+ "pipelineOrchestrator.setCameraStepOverride": {
21411
21714
  capName: "pipeline-orchestrator",
21412
21715
  capScope: "system",
21413
21716
  addonId: null,
21414
21717
  access: "create"
21415
21718
  },
21416
- "pipelineOrchestrator.setCapabilityBinding": {
21719
+ "pipelineOrchestrator.setCameraStepToggle": {
21417
21720
  capName: "pipeline-orchestrator",
21418
21721
  capScope: "system",
21419
21722
  addonId: null,
21420
21723
  access: "create"
21421
21724
  },
21422
- "pipelineOrchestrator.unassignAudio": {
21725
+ "pipelineOrchestrator.setCapabilityBinding": {
21423
21726
  capName: "pipeline-orchestrator",
21424
21727
  capScope: "system",
21425
21728
  addonId: null,
21426
21729
  access: "create"
21427
21730
  },
21428
- "pipelineOrchestrator.unassignDecoder": {
21731
+ "pipelineOrchestrator.unassignAudio": {
21429
21732
  capName: "pipeline-orchestrator",
21430
21733
  capScope: "system",
21431
21734
  addonId: null,
@@ -21725,33 +22028,45 @@ Object.freeze({
21725
22028
  addonId: null,
21726
22029
  access: "create"
21727
22030
  },
21728
- "restreamer.getExposedResources": {
21729
- capName: "restreamer",
22031
+ "scriptRunner.run": {
22032
+ capName: "script-runner",
22033
+ capScope: "device",
22034
+ addonId: null,
22035
+ access: "create"
22036
+ },
22037
+ "scriptRunner.stop": {
22038
+ capName: "script-runner",
22039
+ capScope: "device",
22040
+ addonId: null,
22041
+ access: "create"
22042
+ },
22043
+ "serverManagement.applyServerUpdate": {
22044
+ capName: "server-management",
21730
22045
  capScope: "system",
21731
22046
  addonId: null,
21732
- access: "view"
22047
+ access: "create"
21733
22048
  },
21734
- "restreamer.registerDevice": {
21735
- capName: "restreamer",
22049
+ "serverManagement.checkServerUpdate": {
22050
+ capName: "server-management",
21736
22051
  capScope: "system",
21737
22052
  addonId: null,
21738
22053
  access: "create"
21739
22054
  },
21740
- "restreamer.unregisterDevice": {
21741
- capName: "restreamer",
22055
+ "serverManagement.getServerPackageStatus": {
22056
+ capName: "server-management",
21742
22057
  capScope: "system",
21743
22058
  addonId: null,
21744
- access: "delete"
22059
+ access: "view"
21745
22060
  },
21746
- "scriptRunner.run": {
21747
- capName: "script-runner",
21748
- capScope: "device",
22061
+ "serverManagement.restartServer": {
22062
+ capName: "server-management",
22063
+ capScope: "system",
21749
22064
  addonId: null,
21750
22065
  access: "create"
21751
22066
  },
21752
- "scriptRunner.stop": {
21753
- capName: "script-runner",
21754
- capScope: "device",
22067
+ "serverManagement.rollbackServerUpdate": {
22068
+ capName: "server-management",
22069
+ capScope: "system",
21755
22070
  addonId: null,
21756
22071
  access: "create"
21757
22072
  },
@@ -21845,18 +22160,6 @@ Object.freeze({
21845
22160
  addonId: null,
21846
22161
  access: "create"
21847
22162
  },
21848
- "snapshotProvider.getSnapshot": {
21849
- capName: "snapshot-provider",
21850
- capScope: "system",
21851
- addonId: null,
21852
- access: "view"
21853
- },
21854
- "snapshotProvider.supportsDevice": {
21855
- capName: "snapshot-provider",
21856
- capScope: "system",
21857
- addonId: null,
21858
- access: "view"
21859
- },
21860
22163
  "ssoBridge.signBridgeToken": {
21861
22164
  capName: "sso-bridge",
21862
22165
  capScope: "system",
@@ -22283,30 +22586,6 @@ Object.freeze({
22283
22586
  addonId: null,
22284
22587
  access: "view"
22285
22588
  },
22286
- "streamingEngine.getStreamUrl": {
22287
- capName: "streaming-engine",
22288
- capScope: "system",
22289
- addonId: null,
22290
- access: "view"
22291
- },
22292
- "streamingEngine.listStreams": {
22293
- capName: "streaming-engine",
22294
- capScope: "system",
22295
- addonId: null,
22296
- access: "view"
22297
- },
22298
- "streamingEngine.registerStream": {
22299
- capName: "streaming-engine",
22300
- capScope: "system",
22301
- addonId: null,
22302
- access: "create"
22303
- },
22304
- "streamingEngine.unregisterStream": {
22305
- capName: "streaming-engine",
22306
- capScope: "system",
22307
- addonId: null,
22308
- access: "delete"
22309
- },
22310
22589
  "streamParams.getConfigSchema": {
22311
22590
  capName: "stream-params",
22312
22591
  capScope: "device",
@@ -22655,6 +22934,18 @@ Object.freeze({
22655
22934
  addonId: null,
22656
22935
  access: "view"
22657
22936
  },
22937
+ "viewerUi.getStaticDir": {
22938
+ capName: "viewer-ui",
22939
+ capScope: "system",
22940
+ addonId: null,
22941
+ access: "view"
22942
+ },
22943
+ "viewerUi.getVersion": {
22944
+ capName: "viewer-ui",
22945
+ capScope: "system",
22946
+ addonId: null,
22947
+ access: "view"
22948
+ },
22658
22949
  "waterHeater.setAway": {
22659
22950
  capName: "water-heater",
22660
22951
  capScope: "device",
@@ -22673,54 +22964,6 @@ Object.freeze({
22673
22964
  addonId: null,
22674
22965
  access: "create"
22675
22966
  },
22676
- "webrtc.closeSession": {
22677
- capName: "webrtc",
22678
- capScope: "system",
22679
- addonId: null,
22680
- access: "create"
22681
- },
22682
- "webrtc.createSession": {
22683
- capName: "webrtc",
22684
- capScope: "system",
22685
- addonId: null,
22686
- access: "create"
22687
- },
22688
- "webrtc.handleAnswer": {
22689
- capName: "webrtc",
22690
- capScope: "system",
22691
- addonId: null,
22692
- access: "create"
22693
- },
22694
- "webrtc.handleOffer": {
22695
- capName: "webrtc",
22696
- capScope: "system",
22697
- addonId: null,
22698
- access: "create"
22699
- },
22700
- "webrtc.hasAdaptiveBitrate": {
22701
- capName: "webrtc",
22702
- capScope: "system",
22703
- addonId: null,
22704
- access: "view"
22705
- },
22706
- "webrtc.registerStream": {
22707
- capName: "webrtc",
22708
- capScope: "system",
22709
- addonId: null,
22710
- access: "create"
22711
- },
22712
- "webrtc.supportsStream": {
22713
- capName: "webrtc",
22714
- capScope: "system",
22715
- addonId: null,
22716
- access: "view"
22717
- },
22718
- "webrtc.unregisterStream": {
22719
- capName: "webrtc",
22720
- capScope: "system",
22721
- addonId: null,
22722
- access: "delete"
22723
- },
22724
22967
  "webrtcSession.addIceCandidate": {
22725
22968
  capName: "webrtc-session",
22726
22969
  capScope: "device",