@camstack/addon-export-hap 1.1.19 → 1.1.20

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.
@@ -4664,7 +4664,7 @@ function _instanceof(cls, params = {}) {
4664
4664
  return inst;
4665
4665
  }
4666
4666
  //#endregion
4667
- //#region ../types/dist/sleep-CZDdRBua.mjs
4667
+ //#region ../types/dist/sleep-DJaTV2D7.mjs
4668
4668
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4669
4669
  EventCategory["SystemBoot"] = "system.boot";
4670
4670
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4850,6 +4850,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4850
4850
  */
4851
4851
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4852
4852
  /**
4853
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4854
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4855
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4856
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4857
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4858
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4859
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4860
+ * topology change, so a dropped event self-heals on the next one (plus the
4861
+ * broker's long backstop reconcile query).
4862
+ */
4863
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4864
+ /**
4853
4865
  * Periodic snapshot of per-node pipeline-runner load
4854
4866
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4855
4867
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5373,10 +5385,6 @@ function hydrateField(field, values) {
5373
5385
  };
5374
5386
  }
5375
5387
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5376
- if (field.type === "password") return {
5377
- ...field,
5378
- value: ""
5379
- };
5380
5388
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5381
5389
  return {
5382
5390
  ...field,
@@ -6760,6 +6768,9 @@ function method(input, output, options) {
6760
6768
  timeoutMs: options?.timeoutMs
6761
6769
  };
6762
6770
  }
6771
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6772
+ var VersionOutputSchema$1 = object({ version: string() });
6773
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6763
6774
  var StaticDirOutputSchema = object({ staticDir: string() });
6764
6775
  var VersionOutputSchema = object({ version: string() });
6765
6776
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6929,6 +6940,36 @@ var ModelFormatsSchema = object({
6929
6940
  tflite: ModelFormatEntrySchema.optional(),
6930
6941
  pt: ModelFormatEntrySchema.optional()
6931
6942
  });
6943
+ /**
6944
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6945
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6946
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6947
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6948
+ * resolution/download/persistence; this is a presentation overlay resolved back
6949
+ * to an `id`.
6950
+ */
6951
+ var ModelVariantGroupSchema = object({
6952
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6953
+ family: string(),
6954
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6955
+ tier: string(),
6956
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6957
+ precision: _enum(["fp32", "int8"]).optional(),
6958
+ /**
6959
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6960
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6961
+ * future performance variants plug into.
6962
+ */
6963
+ optimization: _enum(["standard", "fast"]).optional(),
6964
+ /**
6965
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6966
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6967
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6968
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6969
+ * the group so the selector can offer it as a variant axis.
6970
+ */
6971
+ resolution: number().int().positive().optional()
6972
+ });
6932
6973
  var ModelCatalogEntrySchema = object({
6933
6974
  id: string(),
6934
6975
  name: string(),
@@ -6958,7 +6999,43 @@ var ModelCatalogEntrySchema = object({
6958
6999
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6959
7000
  * Downloaded into the same modelsDir alongside the model file.
6960
7001
  */
6961
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7002
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7003
+ /**
7004
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7005
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7006
+ * model list and excluded from the auto format-default pick. Set on the
7007
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7008
+ * the active lineup stays the coherent curated ladder without deleting a
7009
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7010
+ * an explicit legacy id that has a build for the node's format.
7011
+ */
7012
+ legacy: boolean().optional(),
7013
+ /**
7014
+ * Measured quality/latency metadata — populated from the benchmark addon on
7015
+ * the real node classes. Absent = not yet measured (most entries today; the
7016
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7017
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7018
+ */
7019
+ metrics: object({
7020
+ map50: number().optional(),
7021
+ p95LatencyMs: record(string(), number()).optional()
7022
+ }).optional(),
7023
+ /**
7024
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7025
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7026
+ * the retraining addon and any future commercial distribution.
7027
+ */
7028
+ license: string().optional(),
7029
+ /**
7030
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7031
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7032
+ * of a family's sizes and quantizations collapse into one grouped picker
7033
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7034
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7035
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7036
+ * is a presentation overlay resolved back to an `id`.
7037
+ */
7038
+ group: ModelVariantGroupSchema.optional()
6962
7039
  });
6963
7040
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6964
7041
  format: literal("openvino"),
@@ -7019,8 +7096,8 @@ var RecordingModeSchema = _enum([
7019
7096
  "onAudioThreshold"
7020
7097
  ]);
7021
7098
  /**
7022
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7023
- * reads directly (never inferred from `rules`):
7099
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7100
+ * UI reads directly (never inferred from `rules`):
7024
7101
  * - `off` — not recording.
7025
7102
  * - `events` — record only around triggers (motion / audio threshold),
7026
7103
  * with pre/post-buffer.
@@ -8722,26 +8799,13 @@ DeviceType.Light, method(object({
8722
8799
  percentage: number().min(0).max(100),
8723
8800
  lastChangedAt: number()
8724
8801
  });
8802
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8725
8803
  var StreamFormatSchema = _enum([
8726
8804
  "webrtc",
8727
8805
  "hls",
8728
8806
  "mjpeg",
8729
8807
  "rtsp"
8730
8808
  ]);
8731
- var StreamInfoSchema = object({
8732
- streamId: string(),
8733
- format: StreamFormatSchema,
8734
- url: string().nullable(),
8735
- active: boolean()
8736
- });
8737
- method(object({
8738
- streamId: string(),
8739
- sourceUrl: string(),
8740
- codec: string().optional()
8741
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8742
- streamId: string(),
8743
- format: StreamFormatSchema
8744
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8745
8809
  var RtspRestreamEntrySchema = object({
8746
8810
  brokerId: string(),
8747
8811
  url: string(),
@@ -9406,7 +9470,7 @@ var ConsumablesStatusSchema = object({
9406
9470
  })),
9407
9471
  lastChangedAt: number()
9408
9472
  });
9409
- 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({
9473
+ Object.values(DeviceType), method(object({
9410
9474
  deviceId: number().int().nonnegative(),
9411
9475
  key: string().min(1)
9412
9476
  }), _void(), {
@@ -10321,7 +10385,7 @@ var BoundingBoxSchema = object({
10321
10385
  w: number(),
10322
10386
  h: number()
10323
10387
  });
10324
- var SpatialDetectionSchema = object({
10388
+ object({
10325
10389
  class: string(),
10326
10390
  originalClass: string(),
10327
10391
  score: number(),
@@ -10456,7 +10520,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10456
10520
  enabled: boolean(),
10457
10521
  modelId: string(),
10458
10522
  children: array(PipelineDefaultStepSchema).readonly(),
10459
- engine: PipelineEngineChoiceSchema.optional(),
10460
10523
  group: string().optional(),
10461
10524
  settings: record(string(), unknown()).optional()
10462
10525
  }));
@@ -10481,7 +10544,9 @@ var PipelineModelOptionSchema = object({
10481
10544
  formats: record(string(), object({
10482
10545
  downloaded: boolean(),
10483
10546
  sizeMB: number()
10484
- }))
10547
+ })),
10548
+ group: ModelVariantGroupSchema.optional(),
10549
+ legacy: boolean().optional()
10485
10550
  });
10486
10551
  var ConfigFieldBridge = custom();
10487
10552
  var PipelineAddonSchemaSchema = object({
@@ -10511,11 +10576,6 @@ var PipelineSchemaSchema = object({
10511
10576
  selectedEngine: PipelineEngineChoiceSchema,
10512
10577
  slots: array(PipelineSlotSchemaSchema).readonly()
10513
10578
  });
10514
- var DetectorOutputSchema = object({
10515
- detections: array(SpatialDetectionSchema).readonly(),
10516
- inferenceMs: number(),
10517
- modelId: string()
10518
- });
10519
10579
  var EngineProvisioningSchema = object({
10520
10580
  runtimeId: _enum([
10521
10581
  "onnx",
@@ -10532,15 +10592,42 @@ var EngineProvisioningSchema = object({
10532
10592
  ]),
10533
10593
  progress: number().optional(),
10534
10594
  error: string().optional(),
10535
- nextRetryAt: number().optional()
10595
+ nextRetryAt: number().optional(),
10596
+ /**
10597
+ * Gate A (config-correctness gate at engine change): human-readable
10598
+ * config issues surfaced EAGERLY when the node's engine changes — model
10599
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10600
+ * has a <format> build"). Additive/optional: informational only, never
10601
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10602
+ * Absent/empty when the node-default tree resolves cleanly.
10603
+ */
10604
+ configIssues: array(string()).optional()
10536
10605
  });
10537
10606
  var PipelineStepInputSchema = lazy(() => object({
10538
10607
  addonId: string(),
10539
- modelId: string(),
10608
+ modelId: string().optional(),
10540
10609
  enabled: boolean().default(true),
10541
10610
  children: array(PipelineStepInputSchema).optional(),
10542
10611
  settings: record(string(), unknown()).optional()
10543
10612
  }));
10613
+ var ModelSubstitutionSchema = object({
10614
+ addonId: string(),
10615
+ chosen: string(),
10616
+ running: string(),
10617
+ format: string()
10618
+ });
10619
+ var PipelineValidationIssueSchema = object({
10620
+ addonId: string(),
10621
+ kind: _enum(["unknown-addon", "no-format-build"]),
10622
+ detail: string()
10623
+ });
10624
+ var PipelineValidationResultSchema = object({
10625
+ ok: boolean(),
10626
+ issues: array(PipelineValidationIssueSchema).readonly(),
10627
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10628
+ /** The node's `currentEngine.format` this validation ran against. */
10629
+ format: string()
10630
+ });
10544
10631
  var ReferenceImageEntrySchema = object({
10545
10632
  filename: string(),
10546
10633
  stepIds: array(string()).readonly().optional()
@@ -10611,7 +10698,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10611
10698
  })) }), object({ success: literal(true) }), {
10612
10699
  kind: "mutation",
10613
10700
  auth: "admin"
10614
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10701
+ }), method(object({ nodeId: string() }), object({
10702
+ success: literal(true),
10703
+ clearedDevices: number()
10704
+ }), {
10705
+ kind: "mutation",
10706
+ auth: "admin"
10707
+ }), 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({
10615
10708
  name: string(),
10616
10709
  steps: array(PipelineTemplateStepSchema).readonly(),
10617
10710
  engine: PipelineEngineChoiceSchema
@@ -10628,10 +10721,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10628
10721
  modelId: string(),
10629
10722
  format: ModelFormatSchema$1
10630
10723
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10631
- addonId: string(),
10632
- frame: FrameInputSchema,
10633
- config: record(string(), unknown()).optional()
10634
- }), DetectorOutputSchema), method(object({
10635
10724
  engine: PipelineEngineChoiceSchema.optional(),
10636
10725
  steps: array(PipelineStepInputSchema).min(1),
10637
10726
  frame: FrameInputSchema.optional(),
@@ -10871,6 +10960,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10871
10960
  kind: literal("remote-restream"),
10872
10961
  /** The camera's source-owner node (slice 1: always the hub). */
10873
10962
  ownerNodeId: string(),
10963
+ /**
10964
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
10965
+ * per-node `reachableHost` override (Cluster UI). When present the runner
10966
+ * dials THIS host for the owner's restream, in preference to the
10967
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
10968
+ */
10969
+ ownerReachableHost: string().optional(),
10874
10970
  /** Operator override for the owner host the runner dials. */
10875
10971
  hubHostnameOverride: string().optional()
10876
10972
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10879,13 +10975,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10879
10975
  * specific runner instance via `attachCamera`. Carries everything the
10880
10976
  * runner needs to subscribe to the local broker and execute inference.
10881
10977
  *
10882
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10883
- * optional `audio`) travels with the attach payload. The runner keeps it
10884
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10885
- * restart the orchestrator re-sends the latest snapshot.
10886
- *
10887
- * `engine`/`steps`/`audio` are optional during the additive migration
10888
- * window; once orchestrator + UI are migrated they become required.
10978
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
10979
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
10980
+ * for the lifetime of the attach — on rebalance, edit, or restart the
10981
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
10982
+ * node-local, resolved by the executing runner at dispatch time.
10889
10983
  */
10890
10984
  var RunnerCameraConfigSchema = object({
10891
10985
  deviceId: number(),
@@ -10936,14 +11030,11 @@ var RunnerCameraConfigSchema = object({
10936
11030
  */
10937
11031
  motionSources: MotionSourcesSchema.default(["analyzer"]),
10938
11032
  pipelineEnabled: boolean().default(true),
10939
- /** Engine choice for video steps (runtime+backend+format). */
10940
- engine: PipelineEngineChoiceSchema.optional(),
10941
11033
  /** Ordered tree of video steps. Absent → runner skips video detection. */
10942
11034
  steps: array(PipelineStepInputSchema).readonly().optional(),
10943
11035
  /** Audio classification branch. `enabled:false` disables, null skips. */
10944
11036
  audio: object({
10945
- engine: PipelineEngineChoiceSchema,
10946
- modelId: string(),
11037
+ modelId: string().optional(),
10947
11038
  enabled: boolean()
10948
11039
  }).nullable().optional(),
10949
11040
  /**
@@ -12324,7 +12415,9 @@ var AddonPageDeclarationSchema$1 = object({
12324
12415
  icon: string(),
12325
12416
  path: string(),
12326
12417
  remoteName: string(),
12327
- bundle: string()
12418
+ bundle: string(),
12419
+ section: string().optional(),
12420
+ sectionLabel: string().optional()
12328
12421
  });
12329
12422
  var AddonPageInfoSchema = object({
12330
12423
  addonId: string(),
@@ -12364,7 +12457,18 @@ var AddonPageDeclarationSchema = object({
12364
12457
  * the static-file route can compute an mtime-based cache-buster URL
12365
12458
  * without a separate filesystem stat.
12366
12459
  */
12367
- bundle: string()
12460
+ bundle: string(),
12461
+ /**
12462
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12463
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12464
+ * Any OTHER string creates (or joins) a custom section rendered after
12465
+ * the built-in groups; its label comes from `sectionLabel` (first
12466
+ * declaration wins), falling back to the id. Absent → the legacy
12467
+ * "Addon Pages" group.
12468
+ */
12469
+ section: string().optional(),
12470
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12471
+ sectionLabel: string().optional()
12368
12472
  });
12369
12473
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12370
12474
  var AddonHttpRouteSchema = object({
@@ -12580,6 +12684,17 @@ var WidgetMetadataSchema = object({
12580
12684
  deviceContext: boolean().default(false),
12581
12685
  integrationContext: boolean().default(false)
12582
12686
  }),
12687
+ /**
12688
+ * Loadable BEFORE authentication. The normal widget registry listing
12689
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12690
+ * (the login page) cannot discover a widget through it. A widget that
12691
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12692
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12693
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12694
+ * than the authenticated registry, and its bundle is served by the
12695
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12696
+ */
12697
+ preAuth: boolean().optional().default(false),
12583
12698
  /** Dashboard placement HINTS (operator can override per instance). */
12584
12699
  defaultSize: WidgetSizeEnum.default("md"),
12585
12700
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -12881,6 +12996,66 @@ method(object({
12881
12996
  password: string()
12882
12997
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12883
12998
  /**
12999
+ * `login-method` — collection cap through which auth addons contribute
13000
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13001
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13002
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13003
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13004
+ * procedure aggregates them for the unauthenticated login page.
13005
+ *
13006
+ * A contribution is a discriminated union on `kind`:
13007
+ *
13008
+ * - `redirect` — a declarative button. The login page renders a generic
13009
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13010
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13011
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13012
+ * login page needs NO change.
13013
+ *
13014
+ * - `widget` — a Module-Federation widget the login page mounts (via
13015
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13016
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13017
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13018
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13019
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13020
+ *
13021
+ * Every contribution carries a `stage`:
13022
+ * - `primary` — shown on the first credentials screen (OIDC /
13023
+ * magic-link buttons; a future usernameless passkey).
13024
+ * - `second-factor` — shown AFTER the password leg, gated on the
13025
+ * returned `factors` (passkey-as-2FA today).
13026
+ *
13027
+ * `mount: skip` — the cap is read server-side by the core auth router
13028
+ * (`registry.getCollection('login-method')`), never mounted as its own
13029
+ * tRPC router.
13030
+ */
13031
+ /** When a login method renders in the two-phase login flow. */
13032
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13033
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13034
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13035
+ kind: literal("redirect"),
13036
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13037
+ id: string(),
13038
+ /** Operator-facing button label. */
13039
+ label: string(),
13040
+ /** lucide-react icon name. */
13041
+ icon: string().optional(),
13042
+ /** Addon-owned HTTP route the button navigates to (GET). */
13043
+ startUrl: string(),
13044
+ stage: LoginStageEnum
13045
+ }), object({
13046
+ kind: literal("widget"),
13047
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13048
+ id: string(),
13049
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13050
+ addonId: string(),
13051
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13052
+ bundle: string(),
13053
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13054
+ remote: WidgetRemoteSchema,
13055
+ stage: LoginStageEnum
13056
+ })]);
13057
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13058
+ /**
12884
13059
  * Orchestrator-side destination metadata. The orchestrator computes
12885
13060
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12886
13061
  * (admin UI, restore flow) see one canonical key.
@@ -15194,11 +15369,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15194
15369
  timestamp: number()
15195
15370
  });
15196
15371
  var CameraPipelineConfigSchema = object({
15197
- engine: PipelineEngineChoiceSchema,
15372
+ engine: PipelineEngineChoiceSchema.optional(),
15198
15373
  steps: array(PipelineStepInputSchema).readonly(),
15199
15374
  audio: object({
15200
- engine: PipelineEngineChoiceSchema,
15201
- modelId: string(),
15375
+ engine: PipelineEngineChoiceSchema.optional(),
15376
+ modelId: string().optional(),
15202
15377
  enabled: boolean(),
15203
15378
  settings: record(string(), unknown()).readonly().optional()
15204
15379
  }).nullable().optional()
@@ -15213,7 +15388,7 @@ var PipelineTemplateSchema = object({
15213
15388
  });
15214
15389
  var AgentAddonConfigSchema = object({
15215
15390
  enabled: boolean(),
15216
- modelId: string(),
15391
+ modelId: string().optional(),
15217
15392
  settings: record(string(), unknown()).readonly()
15218
15393
  });
15219
15394
  var AgentPipelineSettingsSchema = object({
@@ -15223,12 +15398,25 @@ var AgentPipelineSettingsSchema = object({
15223
15398
  detectWeight: number().positive().optional(),
15224
15399
  /** Node is eligible to run the detection pipeline (decode + inference). */
15225
15400
  detect: boolean().optional(),
15226
- /** Node is eligible to host decoder sessions. */
15401
+ /**
15402
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15403
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15404
+ * the schema ONLY so persisted stores written before the removal still
15405
+ * parse — no code reads it and no write path emits it.
15406
+ */
15227
15407
  decode: boolean().optional(),
15228
15408
  /** Node is eligible to run audio-analyzer sessions. */
15229
15409
  audio: boolean().optional(),
15230
15410
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15231
- ingest: boolean().optional()
15411
+ ingest: boolean().optional(),
15412
+ /**
15413
+ * Operator override for the LAN host a cross-node decoder dials to reach
15414
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15415
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15416
+ * it already uses to reach the hub). Set this only when the auto-detected
15417
+ * address is wrong (multi-homed host, NAT, custom interface).
15418
+ */
15419
+ reachableHost: string().optional()
15232
15420
  });
15233
15421
  var CameraPipelineForAgentSchema = object({
15234
15422
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15276,25 +15464,6 @@ var PipelineAssignmentSchema = object({
15276
15464
  assignedAt: number()
15277
15465
  });
15278
15466
  /**
15279
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15280
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15281
- * → co-located with pipeline → capacity).
15282
- */
15283
- var DecoderAssignmentSchema = object({
15284
- deviceId: number(),
15285
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15286
- decoderNodeId: string(),
15287
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15288
- pinned: boolean(),
15289
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15290
- reason: _enum([
15291
- "manual",
15292
- "co-located",
15293
- "capacity",
15294
- "hardware-affinity"
15295
- ])
15296
- });
15297
- /**
15298
15467
  * Per-agent load summary surfaced to the load balancer + dashboards.
15299
15468
  * Aggregated from each runner's `getLocalLoad` cap call.
15300
15469
  */
@@ -15334,6 +15503,15 @@ var GlobalMetricsSchema = object({
15334
15503
  * capability providers.
15335
15504
  */
15336
15505
  var CapabilityBindingsSchema = record(string(), string());
15506
+ /**
15507
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15508
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15509
+ */
15510
+ var IngestOwnerSchema = object({
15511
+ ownerNodeId: string(),
15512
+ reachableHost: string().optional(),
15513
+ configIssue: string().optional()
15514
+ });
15337
15515
  /** Source block — always present; derives from the stream catalog. */
15338
15516
  var CameraSourceStatusSchema = object({ streams: array(object({
15339
15517
  camStreamId: string(),
@@ -15348,6 +15526,14 @@ var CameraAssignmentStatusSchema = object({
15348
15526
  detectionNodeId: string().nullable(),
15349
15527
  decoderNodeId: string().nullable(),
15350
15528
  audioNodeId: string().nullable(),
15529
+ /**
15530
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15531
+ * hosts the broker/restream) — the cluster ingest owner today
15532
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15533
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15534
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15535
+ */
15536
+ sourceNodeId: string().nullable(),
15351
15537
  pinned: object({
15352
15538
  detection: boolean(),
15353
15539
  decoder: boolean(),
@@ -15480,16 +15666,7 @@ method(object({
15480
15666
  }), object({ success: literal(true) }), {
15481
15667
  kind: "mutation",
15482
15668
  auth: "admin"
15483
- }), method(object({
15484
- deviceId: number(),
15485
- nodeId: string()
15486
- }), _void(), {
15487
- kind: "mutation",
15488
- auth: "admin"
15489
- }), method(object({ deviceId: number() }), _void(), {
15490
- kind: "mutation",
15491
- auth: "admin"
15492
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15669
+ }), method(_void(), IngestOwnerSchema), method(object({
15493
15670
  deviceId: number(),
15494
15671
  nodeId: string()
15495
15672
  }), object({ success: literal(true) }), {
@@ -15510,10 +15687,7 @@ method(object({
15510
15687
  nodeId: string(),
15511
15688
  pinned: boolean(),
15512
15689
  assignedAt: number()
15513
- }))), method(object({
15514
- deviceId: number(),
15515
- pipelineNodeId: string().optional()
15516
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15690
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15517
15691
  nodeId: string(),
15518
15692
  settings: AgentPipelineSettingsSchema
15519
15693
  })).readonly()), method(object({
@@ -15543,12 +15717,26 @@ method(object({
15543
15717
  }), method(object({
15544
15718
  agentNodeId: string(),
15545
15719
  detect: boolean().nullable().optional(),
15546
- decode: boolean().nullable().optional(),
15547
15720
  audio: boolean().nullable().optional(),
15548
15721
  ingest: boolean().nullable().optional()
15549
15722
  }), object({ success: literal(true) }), {
15550
15723
  kind: "mutation",
15551
15724
  auth: "admin"
15725
+ }), method(object({
15726
+ agentNodeId: string(),
15727
+ reachableHost: string().nullable()
15728
+ }), object({ success: literal(true) }), {
15729
+ kind: "mutation",
15730
+ auth: "admin"
15731
+ }), method(object({ agentNodeId: string() }), object({
15732
+ success: literal(true),
15733
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15734
+ effectiveModelId: string().nullable(),
15735
+ /** Number of cameras whose node-scoped overrides were cleared. */
15736
+ clearedCameraOverrides: number()
15737
+ }), {
15738
+ kind: "mutation",
15739
+ auth: "admin"
15552
15740
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15553
15741
  deviceId: number(),
15554
15742
  addonId: string(),
@@ -15593,22 +15781,131 @@ method(object({
15593
15781
  kind: "mutation",
15594
15782
  auth: "admin"
15595
15783
  });
15596
- var RegisteredStreamSchema = object({
15597
- streamId: string(),
15598
- label: string().optional(),
15599
- codec: string(),
15600
- type: _enum(["video", "audio"]),
15601
- sourceUrl: string()
15784
+ /**
15785
+ * server-management — per-NODE singleton capability for a node's ROOT
15786
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
15787
+ * agents).
15788
+ *
15789
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
15790
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
15791
+ * version describes the node. Updates install into
15792
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
15793
+ * starter (probation boot + auto-rollback to N-1).
15794
+ *
15795
+ * Providers:
15796
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
15797
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
15798
+ * unpinned calls.
15799
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
15800
+ * the synthetic `agent-runtime` addonId and declared in the agent's
15801
+ * `$hub.registerNode` manifest.
15802
+ *
15803
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
15804
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
15805
+ * SDK) routes the call to that node's provider via the standard remote
15806
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
15807
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
15808
+ *
15809
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
15810
+ */
15811
+ /**
15812
+ * Where the running hub's code was loaded from:
15813
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
15814
+ * plain resolution and runtime updates are refused.
15815
+ * - `baked` — the immutable image seed closure (no data-dir root active).
15816
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
15817
+ */
15818
+ var ServerBootModeSchema = _enum([
15819
+ "workspace",
15820
+ "baked",
15821
+ "data-root"
15822
+ ]);
15823
+ /**
15824
+ * Update lifecycle state:
15825
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
15826
+ * - `pending-restart` — a version is staged and the node has NOT yet
15827
+ * restarted onto it (still running the OLD version).
15828
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
15829
+ * (it is the active probation boot) and is waiting to confirm boot-health.
15830
+ * Apply/rollback are refused in this state and the node must NOT be
15831
+ * manually restarted, or the probation boot auto-rolls-back.
15832
+ */
15833
+ var ServerUpdateStateSchema = _enum([
15834
+ "idle",
15835
+ "checking",
15836
+ "staging",
15837
+ "pending-restart",
15838
+ "awaiting-confirmation"
15839
+ ]);
15840
+ var ServerRollbackInfoSchema = object({
15841
+ /** The version that failed (or was manually rolled back). */
15842
+ fromVersion: string(),
15843
+ /** The version rolled back to; null = the baked seed. */
15844
+ toVersion: string().nullable(),
15845
+ atMs: number(),
15846
+ reason: string()
15602
15847
  });
15603
- var ExposedResourceSchema = object({
15604
- streamId: string(),
15605
- format: string(),
15606
- value: string()
15848
+ var ServerPackageStatusSchema = object({
15849
+ /** Root package name (`@camstack/server` on the hub). */
15850
+ packageName: string(),
15851
+ /** Version of the code the running process ACTUALLY loaded. */
15852
+ runningVersion: string().nullable(),
15853
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
15854
+ nodeRuntimeVersion: string().nullable(),
15855
+ /** Active data-dir root version; null when booted from seed/workspace. */
15856
+ activeVersion: string().nullable(),
15857
+ /** N-1 version kept for rollback; null when no previous version exists. */
15858
+ previousVersion: string().nullable(),
15859
+ /** Version of the immutable baked seed closure (image fallback). */
15860
+ seedVersion: string().nullable(),
15861
+ /** Latest registry version from the most recent check (null = never checked). */
15862
+ latestVersion: string().nullable(),
15863
+ updateAvailable: boolean(),
15864
+ bootMode: ServerBootModeSchema,
15865
+ updateState: ServerUpdateStateSchema,
15866
+ /** Version staged + awaiting its probation boot, when one is pending. */
15867
+ pendingVersion: string().nullable(),
15868
+ /** Set when the last freshly-activated version failed its boot health-check. */
15869
+ rolledBack: ServerRollbackInfoSchema.nullable(),
15870
+ /**
15871
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
15872
+ * hub is running from the baked seed (or workspace) while installed data-dir
15873
+ * versions are being IGNORED. Surfaced as a warning in the UI.
15874
+ */
15875
+ stateFileCorrupt: boolean(),
15876
+ lastCheckedAtMs: number().nullable()
15877
+ });
15878
+ var ServerUpdateCheckResultSchema = object({
15879
+ packageName: string(),
15880
+ runningVersion: string().nullable(),
15881
+ latestVersion: string().nullable(),
15882
+ updateAvailable: boolean(),
15883
+ checkedAtMs: number(),
15884
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
15885
+ error: string().nullable()
15886
+ });
15887
+ var ServerUpdateActionResultSchema = object({
15888
+ accepted: boolean(),
15889
+ targetVersion: string().nullable(),
15890
+ /** True when a graceful restart was scheduled to apply the change. */
15891
+ restarting: boolean(),
15892
+ message: string()
15893
+ });
15894
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
15895
+ kind: "mutation",
15896
+ auth: "admin"
15897
+ }), method(object({
15898
+ /** Explicit target version; omitted = latest from the registry. */
15899
+ version: string().optional() }), ServerUpdateActionResultSchema, {
15900
+ kind: "mutation",
15901
+ auth: "admin"
15902
+ }), method(_void(), ServerUpdateActionResultSchema, {
15903
+ kind: "mutation",
15904
+ auth: "admin"
15905
+ }), method(_void(), ServerUpdateActionResultSchema, {
15906
+ kind: "mutation",
15907
+ auth: "admin"
15607
15908
  });
15608
- method(object({
15609
- deviceId: number(),
15610
- streams: array(RegisteredStreamSchema).readonly()
15611
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15612
15909
  /**
15613
15910
  * Query filter for settings-store collections.
15614
15911
  */
@@ -15761,9 +16058,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15761
16058
  /**
15762
16059
  * A single device snapshot returned as base64 JPEG/PNG.
15763
16060
  *
15764
- * Shared with the `snapshot-provider` collection cap the orchestrator
15765
- * receives the same shape from each native provider and from the
15766
- * broker-based fallback.
16061
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16062
+ * the device-native provider (onboard capture) or from the stream-broker
16063
+ * prebuffer fallback.
15767
16064
  */
15768
16065
  var SnapshotImageSchema = object({
15769
16066
  base64: string(),
@@ -15795,10 +16092,6 @@ DeviceType.Camera, method(object({
15795
16092
  kind: "mutation",
15796
16093
  auth: "admin"
15797
16094
  });
15798
- method(object({ deviceId: number() }), boolean()), method(object({
15799
- deviceId: number(),
15800
- streamId: string().optional()
15801
- }), SnapshotImageSchema.nullable());
15802
16095
  /**
15803
16096
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15804
16097
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16159,9 +16452,10 @@ method(object({
16159
16452
  auth: "admin"
16160
16453
  });
16161
16454
  /**
16162
- * Optional client-side hints sent at session creation to help the
16163
- * provider pick the best native source. All fields are optional —
16164
- * a viewer that knows nothing still gets a sane default.
16455
+ * Optional client-side hints sent at session creation to help the provider
16456
+ * pick the best native source. All fields optional — a viewer that knows
16457
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16458
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16165
16459
  */
16166
16460
  var webrtcClientHintsSchema = object({
16167
16461
  viewportWidth: number().int().positive().optional(),
@@ -16172,22 +16466,6 @@ var webrtcClientHintsSchema = object({
16172
16466
  /** Hard tier override; takes precedence over scoring when registered. */
16173
16467
  prefersTier: string().optional()
16174
16468
  }).partial();
16175
- method(object({
16176
- streamId: string(),
16177
- sdpOffer: string()
16178
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16179
- streamId: string(),
16180
- codec: string()
16181
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16182
- streamId: string(),
16183
- hints: webrtcClientHintsSchema.optional()
16184
- }), object({
16185
- sessionId: string(),
16186
- sdpOffer: string()
16187
- }), { kind: "mutation" }), method(object({
16188
- sessionId: string(),
16189
- sdpAnswer: string()
16190
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16191
16469
  /**
16192
16470
  * Discriminated target for a WebRTC session. The client sends this
16193
16471
  * structured object instead of building / parsing brokerId strings;
@@ -17615,6 +17893,16 @@ var TopologyCategorySchema = object({
17615
17893
  healthy: number(),
17616
17894
  addons: array(TopologyCategoryAddonSchema).readonly()
17617
17895
  });
17896
+ /**
17897
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
17898
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
17899
+ * version visibility for the Server management surface. Nullable: offline
17900
+ * rows and pre-phase-2 nodes report none.
17901
+ */
17902
+ var TopologyRootPackageSchema = object({
17903
+ name: string(),
17904
+ version: string()
17905
+ });
17618
17906
  var TopologyNodeSchema = object({
17619
17907
  id: string(),
17620
17908
  name: string(),
@@ -17638,7 +17926,8 @@ var TopologyNodeSchema = object({
17638
17926
  status: string()
17639
17927
  })).readonly(),
17640
17928
  processes: array(TopologyProcessSchema).readonly(),
17641
- categories: array(TopologyCategorySchema).readonly()
17929
+ categories: array(TopologyCategorySchema).readonly(),
17930
+ rootPackage: TopologyRootPackageSchema.nullable()
17642
17931
  });
17643
17932
  var CapUsageEdgeSchema = object({
17644
17933
  callerAddonId: string(),
@@ -20438,6 +20727,12 @@ Object.freeze({
20438
20727
  addonId: null,
20439
20728
  access: "create"
20440
20729
  },
20730
+ "loginMethod.getLoginMethods": {
20731
+ capName: "login-method",
20732
+ capScope: "system",
20733
+ addonId: null,
20734
+ access: "view"
20735
+ },
20441
20736
  "mediaPlayer.next": {
20442
20737
  capName: "media-player",
20443
20738
  capScope: "device",
@@ -21068,23 +21363,23 @@ Object.freeze({
21068
21363
  addonId: null,
21069
21364
  access: "create"
21070
21365
  },
21071
- "pipelineExecutor.deleteModel": {
21366
+ "pipelineExecutor.clearDeviceOverrides": {
21072
21367
  capName: "pipeline-executor",
21073
21368
  capScope: "system",
21074
21369
  addonId: null,
21075
21370
  access: "delete"
21076
21371
  },
21077
- "pipelineExecutor.deleteTemplate": {
21372
+ "pipelineExecutor.deleteModel": {
21078
21373
  capName: "pipeline-executor",
21079
21374
  capScope: "system",
21080
21375
  addonId: null,
21081
21376
  access: "delete"
21082
21377
  },
21083
- "pipelineExecutor.detect": {
21378
+ "pipelineExecutor.deleteTemplate": {
21084
21379
  capName: "pipeline-executor",
21085
21380
  capScope: "system",
21086
21381
  addonId: null,
21087
- access: "view"
21382
+ access: "delete"
21088
21383
  },
21089
21384
  "pipelineExecutor.downloadModel": {
21090
21385
  capName: "pipeline-executor",
@@ -21278,13 +21573,13 @@ Object.freeze({
21278
21573
  addonId: null,
21279
21574
  access: "create"
21280
21575
  },
21281
- "pipelineOrchestrator.assignAudio": {
21282
- capName: "pipeline-orchestrator",
21576
+ "pipelineExecutor.validatePipeline": {
21577
+ capName: "pipeline-executor",
21283
21578
  capScope: "system",
21284
21579
  addonId: null,
21285
- access: "create"
21580
+ access: "view"
21286
21581
  },
21287
- "pipelineOrchestrator.assignDecoder": {
21582
+ "pipelineOrchestrator.assignAudio": {
21288
21583
  capName: "pipeline-orchestrator",
21289
21584
  capScope: "system",
21290
21585
  addonId: null,
@@ -21368,19 +21663,13 @@ Object.freeze({
21368
21663
  addonId: null,
21369
21664
  access: "view"
21370
21665
  },
21371
- "pipelineOrchestrator.getDecoderAssignment": {
21666
+ "pipelineOrchestrator.getGlobalMetrics": {
21372
21667
  capName: "pipeline-orchestrator",
21373
21668
  capScope: "system",
21374
21669
  addonId: null,
21375
21670
  access: "view"
21376
21671
  },
21377
- "pipelineOrchestrator.getDecoderAssignments": {
21378
- capName: "pipeline-orchestrator",
21379
- capScope: "system",
21380
- addonId: null,
21381
- access: "view"
21382
- },
21383
- "pipelineOrchestrator.getGlobalMetrics": {
21672
+ "pipelineOrchestrator.getIngestOwner": {
21384
21673
  capName: "pipeline-orchestrator",
21385
21674
  capScope: "system",
21386
21675
  addonId: null,
@@ -21422,6 +21711,12 @@ Object.freeze({
21422
21711
  addonId: null,
21423
21712
  access: "delete"
21424
21713
  },
21714
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
21715
+ capName: "pipeline-orchestrator",
21716
+ capScope: "system",
21717
+ addonId: null,
21718
+ access: "delete"
21719
+ },
21425
21720
  "pipelineOrchestrator.resolvePipeline": {
21426
21721
  capName: "pipeline-orchestrator",
21427
21722
  capScope: "system",
@@ -21458,37 +21753,37 @@ Object.freeze({
21458
21753
  addonId: null,
21459
21754
  access: "create"
21460
21755
  },
21461
- "pipelineOrchestrator.setCameraPipelineForAgent": {
21756
+ "pipelineOrchestrator.setAgentReachableHost": {
21462
21757
  capName: "pipeline-orchestrator",
21463
21758
  capScope: "system",
21464
21759
  addonId: null,
21465
21760
  access: "create"
21466
21761
  },
21467
- "pipelineOrchestrator.setCameraStepOverride": {
21762
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21468
21763
  capName: "pipeline-orchestrator",
21469
21764
  capScope: "system",
21470
21765
  addonId: null,
21471
21766
  access: "create"
21472
21767
  },
21473
- "pipelineOrchestrator.setCameraStepToggle": {
21768
+ "pipelineOrchestrator.setCameraStepOverride": {
21474
21769
  capName: "pipeline-orchestrator",
21475
21770
  capScope: "system",
21476
21771
  addonId: null,
21477
21772
  access: "create"
21478
21773
  },
21479
- "pipelineOrchestrator.setCapabilityBinding": {
21774
+ "pipelineOrchestrator.setCameraStepToggle": {
21480
21775
  capName: "pipeline-orchestrator",
21481
21776
  capScope: "system",
21482
21777
  addonId: null,
21483
21778
  access: "create"
21484
21779
  },
21485
- "pipelineOrchestrator.unassignAudio": {
21780
+ "pipelineOrchestrator.setCapabilityBinding": {
21486
21781
  capName: "pipeline-orchestrator",
21487
21782
  capScope: "system",
21488
21783
  addonId: null,
21489
21784
  access: "create"
21490
21785
  },
21491
- "pipelineOrchestrator.unassignDecoder": {
21786
+ "pipelineOrchestrator.unassignAudio": {
21492
21787
  capName: "pipeline-orchestrator",
21493
21788
  capScope: "system",
21494
21789
  addonId: null,
@@ -21788,33 +22083,45 @@ Object.freeze({
21788
22083
  addonId: null,
21789
22084
  access: "create"
21790
22085
  },
21791
- "restreamer.getExposedResources": {
21792
- capName: "restreamer",
22086
+ "scriptRunner.run": {
22087
+ capName: "script-runner",
22088
+ capScope: "device",
22089
+ addonId: null,
22090
+ access: "create"
22091
+ },
22092
+ "scriptRunner.stop": {
22093
+ capName: "script-runner",
22094
+ capScope: "device",
22095
+ addonId: null,
22096
+ access: "create"
22097
+ },
22098
+ "serverManagement.applyServerUpdate": {
22099
+ capName: "server-management",
21793
22100
  capScope: "system",
21794
22101
  addonId: null,
21795
- access: "view"
22102
+ access: "create"
21796
22103
  },
21797
- "restreamer.registerDevice": {
21798
- capName: "restreamer",
22104
+ "serverManagement.checkServerUpdate": {
22105
+ capName: "server-management",
21799
22106
  capScope: "system",
21800
22107
  addonId: null,
21801
22108
  access: "create"
21802
22109
  },
21803
- "restreamer.unregisterDevice": {
21804
- capName: "restreamer",
22110
+ "serverManagement.getServerPackageStatus": {
22111
+ capName: "server-management",
21805
22112
  capScope: "system",
21806
22113
  addonId: null,
21807
- access: "delete"
22114
+ access: "view"
21808
22115
  },
21809
- "scriptRunner.run": {
21810
- capName: "script-runner",
21811
- capScope: "device",
22116
+ "serverManagement.restartServer": {
22117
+ capName: "server-management",
22118
+ capScope: "system",
21812
22119
  addonId: null,
21813
22120
  access: "create"
21814
22121
  },
21815
- "scriptRunner.stop": {
21816
- capName: "script-runner",
21817
- capScope: "device",
22122
+ "serverManagement.rollbackServerUpdate": {
22123
+ capName: "server-management",
22124
+ capScope: "system",
21818
22125
  addonId: null,
21819
22126
  access: "create"
21820
22127
  },
@@ -21908,18 +22215,6 @@ Object.freeze({
21908
22215
  addonId: null,
21909
22216
  access: "create"
21910
22217
  },
21911
- "snapshotProvider.getSnapshot": {
21912
- capName: "snapshot-provider",
21913
- capScope: "system",
21914
- addonId: null,
21915
- access: "view"
21916
- },
21917
- "snapshotProvider.supportsDevice": {
21918
- capName: "snapshot-provider",
21919
- capScope: "system",
21920
- addonId: null,
21921
- access: "view"
21922
- },
21923
22218
  "ssoBridge.signBridgeToken": {
21924
22219
  capName: "sso-bridge",
21925
22220
  capScope: "system",
@@ -22346,30 +22641,6 @@ Object.freeze({
22346
22641
  addonId: null,
22347
22642
  access: "view"
22348
22643
  },
22349
- "streamingEngine.getStreamUrl": {
22350
- capName: "streaming-engine",
22351
- capScope: "system",
22352
- addonId: null,
22353
- access: "view"
22354
- },
22355
- "streamingEngine.listStreams": {
22356
- capName: "streaming-engine",
22357
- capScope: "system",
22358
- addonId: null,
22359
- access: "view"
22360
- },
22361
- "streamingEngine.registerStream": {
22362
- capName: "streaming-engine",
22363
- capScope: "system",
22364
- addonId: null,
22365
- access: "create"
22366
- },
22367
- "streamingEngine.unregisterStream": {
22368
- capName: "streaming-engine",
22369
- capScope: "system",
22370
- addonId: null,
22371
- access: "delete"
22372
- },
22373
22644
  "streamParams.getConfigSchema": {
22374
22645
  capName: "stream-params",
22375
22646
  capScope: "device",
@@ -22718,6 +22989,18 @@ Object.freeze({
22718
22989
  addonId: null,
22719
22990
  access: "view"
22720
22991
  },
22992
+ "viewerUi.getStaticDir": {
22993
+ capName: "viewer-ui",
22994
+ capScope: "system",
22995
+ addonId: null,
22996
+ access: "view"
22997
+ },
22998
+ "viewerUi.getVersion": {
22999
+ capName: "viewer-ui",
23000
+ capScope: "system",
23001
+ addonId: null,
23002
+ access: "view"
23003
+ },
22721
23004
  "waterHeater.setAway": {
22722
23005
  capName: "water-heater",
22723
23006
  capScope: "device",
@@ -22736,54 +23019,6 @@ Object.freeze({
22736
23019
  addonId: null,
22737
23020
  access: "create"
22738
23021
  },
22739
- "webrtc.closeSession": {
22740
- capName: "webrtc",
22741
- capScope: "system",
22742
- addonId: null,
22743
- access: "create"
22744
- },
22745
- "webrtc.createSession": {
22746
- capName: "webrtc",
22747
- capScope: "system",
22748
- addonId: null,
22749
- access: "create"
22750
- },
22751
- "webrtc.handleAnswer": {
22752
- capName: "webrtc",
22753
- capScope: "system",
22754
- addonId: null,
22755
- access: "create"
22756
- },
22757
- "webrtc.handleOffer": {
22758
- capName: "webrtc",
22759
- capScope: "system",
22760
- addonId: null,
22761
- access: "create"
22762
- },
22763
- "webrtc.hasAdaptiveBitrate": {
22764
- capName: "webrtc",
22765
- capScope: "system",
22766
- addonId: null,
22767
- access: "view"
22768
- },
22769
- "webrtc.registerStream": {
22770
- capName: "webrtc",
22771
- capScope: "system",
22772
- addonId: null,
22773
- access: "create"
22774
- },
22775
- "webrtc.supportsStream": {
22776
- capName: "webrtc",
22777
- capScope: "system",
22778
- addonId: null,
22779
- access: "view"
22780
- },
22781
- "webrtc.unregisterStream": {
22782
- capName: "webrtc",
22783
- capScope: "system",
22784
- addonId: null,
22785
- access: "delete"
22786
- },
22787
23022
  "webrtcSession.addIceCandidate": {
22788
23023
  capName: "webrtc-session",
22789
23024
  capScope: "device",