@camstack/addon-export-alexa 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.
@@ -4655,7 +4655,7 @@ function _instanceof(cls, params = {}) {
4655
4655
  return inst;
4656
4656
  }
4657
4657
  //#endregion
4658
- //#region ../types/dist/sleep-CZDdRBua.mjs
4658
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4659
4659
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4660
4660
  EventCategory["SystemBoot"] = "system.boot";
4661
4661
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4841,6 +4841,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4841
4841
  */
4842
4842
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4843
4843
  /**
4844
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4845
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4846
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4847
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4848
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4849
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4850
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4851
+ * topology change, so a dropped event self-heals on the next one (plus the
4852
+ * broker's long backstop reconcile query).
4853
+ */
4854
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4855
+ /**
4844
4856
  * Periodic snapshot of per-node pipeline-runner load
4845
4857
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4846
4858
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5364,10 +5376,6 @@ function hydrateField(field, values) {
5364
5376
  };
5365
5377
  }
5366
5378
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5367
- if (field.type === "password") return {
5368
- ...field,
5369
- value: ""
5370
- };
5371
5379
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5372
5380
  return {
5373
5381
  ...field,
@@ -6762,6 +6770,21 @@ function method(input, output, options) {
6762
6770
  timeoutMs: options?.timeoutMs
6763
6771
  };
6764
6772
  }
6773
+ /**
6774
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6775
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6776
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6777
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6778
+ */
6779
+ function systemMethod(input, output, options) {
6780
+ return {
6781
+ ...method(input, output, options),
6782
+ systemOnly: true
6783
+ };
6784
+ }
6785
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6786
+ var VersionOutputSchema$1 = object({ version: string() });
6787
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6765
6788
  var StaticDirOutputSchema = object({ staticDir: string() });
6766
6789
  var VersionOutputSchema = object({ version: string() });
6767
6790
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6943,6 +6966,36 @@ var ModelFormatsSchema = object({
6943
6966
  tflite: ModelFormatEntrySchema.optional(),
6944
6967
  pt: ModelFormatEntrySchema.optional()
6945
6968
  });
6969
+ /**
6970
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6971
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6972
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6973
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6974
+ * resolution/download/persistence; this is a presentation overlay resolved back
6975
+ * to an `id`.
6976
+ */
6977
+ var ModelVariantGroupSchema = object({
6978
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6979
+ family: string(),
6980
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6981
+ tier: string(),
6982
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6983
+ precision: _enum(["fp32", "int8"]).optional(),
6984
+ /**
6985
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6986
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6987
+ * future performance variants plug into.
6988
+ */
6989
+ optimization: _enum(["standard", "fast"]).optional(),
6990
+ /**
6991
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6992
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6993
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6994
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6995
+ * the group so the selector can offer it as a variant axis.
6996
+ */
6997
+ resolution: number().int().positive().optional()
6998
+ });
6946
6999
  var ModelCatalogEntrySchema = object({
6947
7000
  id: string(),
6948
7001
  name: string(),
@@ -6972,7 +7025,43 @@ var ModelCatalogEntrySchema = object({
6972
7025
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6973
7026
  * Downloaded into the same modelsDir alongside the model file.
6974
7027
  */
6975
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7028
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7029
+ /**
7030
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7031
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7032
+ * model list and excluded from the auto format-default pick. Set on the
7033
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7034
+ * the active lineup stays the coherent curated ladder without deleting a
7035
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7036
+ * an explicit legacy id that has a build for the node's format.
7037
+ */
7038
+ legacy: boolean().optional(),
7039
+ /**
7040
+ * Measured quality/latency metadata — populated from the benchmark addon on
7041
+ * the real node classes. Absent = not yet measured (most entries today; the
7042
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7043
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7044
+ */
7045
+ metrics: object({
7046
+ map50: number().optional(),
7047
+ p95LatencyMs: record(string(), number()).optional()
7048
+ }).optional(),
7049
+ /**
7050
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7051
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7052
+ * the retraining addon and any future commercial distribution.
7053
+ */
7054
+ license: string().optional(),
7055
+ /**
7056
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7057
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7058
+ * of a family's sizes and quantizations collapse into one grouped picker
7059
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7060
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7061
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7062
+ * is a presentation overlay resolved back to an `id`.
7063
+ */
7064
+ group: ModelVariantGroupSchema.optional()
6976
7065
  });
6977
7066
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6978
7067
  format: literal("openvino"),
@@ -7150,8 +7239,8 @@ var RecordingModeSchema = _enum([
7150
7239
  "onAudioThreshold"
7151
7240
  ]);
7152
7241
  /**
7153
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7154
- * reads directly (never inferred from `rules`):
7242
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7243
+ * UI reads directly (never inferred from `rules`):
7155
7244
  * - `off` — not recording.
7156
7245
  * - `events` — record only around triggers (motion / audio threshold),
7157
7246
  * with pre/post-buffer.
@@ -8853,26 +8942,13 @@ DeviceType.Light, method(object({
8853
8942
  percentage: number().min(0).max(100),
8854
8943
  lastChangedAt: number()
8855
8944
  });
8945
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8856
8946
  var StreamFormatSchema = _enum([
8857
8947
  "webrtc",
8858
8948
  "hls",
8859
8949
  "mjpeg",
8860
8950
  "rtsp"
8861
8951
  ]);
8862
- var StreamInfoSchema = object({
8863
- streamId: string(),
8864
- format: StreamFormatSchema,
8865
- url: string().nullable(),
8866
- active: boolean()
8867
- });
8868
- method(object({
8869
- streamId: string(),
8870
- sourceUrl: string(),
8871
- codec: string().optional()
8872
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8873
- streamId: string(),
8874
- format: StreamFormatSchema
8875
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8876
8952
  var RtspRestreamEntrySchema = object({
8877
8953
  brokerId: string(),
8878
8954
  url: string(),
@@ -9537,7 +9613,7 @@ var ConsumablesStatusSchema = object({
9537
9613
  })),
9538
9614
  lastChangedAt: number()
9539
9615
  });
9540
- 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({
9616
+ Object.values(DeviceType), method(object({
9541
9617
  deviceId: number().int().nonnegative(),
9542
9618
  key: string().min(1)
9543
9619
  }), _void(), {
@@ -10452,7 +10528,7 @@ var BoundingBoxSchema = object({
10452
10528
  w: number(),
10453
10529
  h: number()
10454
10530
  });
10455
- var SpatialDetectionSchema = object({
10531
+ object({
10456
10532
  class: string(),
10457
10533
  originalClass: string(),
10458
10534
  score: number(),
@@ -10587,7 +10663,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10587
10663
  enabled: boolean(),
10588
10664
  modelId: string(),
10589
10665
  children: array(PipelineDefaultStepSchema).readonly(),
10590
- engine: PipelineEngineChoiceSchema.optional(),
10591
10666
  group: string().optional(),
10592
10667
  settings: record(string(), unknown()).optional()
10593
10668
  }));
@@ -10612,7 +10687,9 @@ var PipelineModelOptionSchema = object({
10612
10687
  formats: record(string(), object({
10613
10688
  downloaded: boolean(),
10614
10689
  sizeMB: number()
10615
- }))
10690
+ })),
10691
+ group: ModelVariantGroupSchema.optional(),
10692
+ legacy: boolean().optional()
10616
10693
  });
10617
10694
  var ConfigFieldBridge = custom();
10618
10695
  var PipelineAddonSchemaSchema = object({
@@ -10626,6 +10703,7 @@ var PipelineAddonSchemaSchema = object({
10626
10703
  defaultModelId: string(),
10627
10704
  defaultModelIdByFormat: record(string(), string()).optional(),
10628
10705
  enabledByDefault: boolean().optional(),
10706
+ backfillIntoExistingOverrides: boolean().optional(),
10629
10707
  defaultConfidence: number(),
10630
10708
  group: string().optional(),
10631
10709
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10642,11 +10720,6 @@ var PipelineSchemaSchema = object({
10642
10720
  selectedEngine: PipelineEngineChoiceSchema,
10643
10721
  slots: array(PipelineSlotSchemaSchema).readonly()
10644
10722
  });
10645
- var DetectorOutputSchema = object({
10646
- detections: array(SpatialDetectionSchema).readonly(),
10647
- inferenceMs: number(),
10648
- modelId: string()
10649
- });
10650
10723
  var EngineProvisioningSchema = object({
10651
10724
  runtimeId: _enum([
10652
10725
  "onnx",
@@ -10663,15 +10736,42 @@ var EngineProvisioningSchema = object({
10663
10736
  ]),
10664
10737
  progress: number().optional(),
10665
10738
  error: string().optional(),
10666
- nextRetryAt: number().optional()
10739
+ nextRetryAt: number().optional(),
10740
+ /**
10741
+ * Gate A (config-correctness gate at engine change): human-readable
10742
+ * config issues surfaced EAGERLY when the node's engine changes — model
10743
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10744
+ * has a <format> build"). Additive/optional: informational only, never
10745
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10746
+ * Absent/empty when the node-default tree resolves cleanly.
10747
+ */
10748
+ configIssues: array(string()).optional()
10667
10749
  });
10668
10750
  var PipelineStepInputSchema = lazy(() => object({
10669
10751
  addonId: string(),
10670
- modelId: string(),
10752
+ modelId: string().optional(),
10671
10753
  enabled: boolean().default(true),
10672
10754
  children: array(PipelineStepInputSchema).optional(),
10673
10755
  settings: record(string(), unknown()).optional()
10674
10756
  }));
10757
+ var ModelSubstitutionSchema = object({
10758
+ addonId: string(),
10759
+ chosen: string(),
10760
+ running: string(),
10761
+ format: string()
10762
+ });
10763
+ var PipelineValidationIssueSchema = object({
10764
+ addonId: string(),
10765
+ kind: _enum(["unknown-addon", "no-format-build"]),
10766
+ detail: string()
10767
+ });
10768
+ var PipelineValidationResultSchema = object({
10769
+ ok: boolean(),
10770
+ issues: array(PipelineValidationIssueSchema).readonly(),
10771
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10772
+ /** The node's `currentEngine.format` this validation ran against. */
10773
+ format: string()
10774
+ });
10675
10775
  var ReferenceImageEntrySchema = object({
10676
10776
  filename: string(),
10677
10777
  stepIds: array(string()).readonly().optional()
@@ -10742,7 +10842,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10742
10842
  })) }), object({ success: literal(true) }), {
10743
10843
  kind: "mutation",
10744
10844
  auth: "admin"
10745
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10845
+ }), method(object({ nodeId: string() }), object({
10846
+ success: literal(true),
10847
+ clearedDevices: number()
10848
+ }), {
10849
+ kind: "mutation",
10850
+ auth: "admin"
10851
+ }), 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({
10746
10852
  name: string(),
10747
10853
  steps: array(PipelineTemplateStepSchema).readonly(),
10748
10854
  engine: PipelineEngineChoiceSchema
@@ -10759,10 +10865,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10759
10865
  modelId: string(),
10760
10866
  format: ModelFormatSchema$1
10761
10867
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10762
- addonId: string(),
10763
- frame: FrameInputSchema,
10764
- config: record(string(), unknown()).optional()
10765
- }), DetectorOutputSchema), method(object({
10766
10868
  engine: PipelineEngineChoiceSchema.optional(),
10767
10869
  steps: array(PipelineStepInputSchema).min(1),
10768
10870
  frame: FrameInputSchema.optional(),
@@ -10908,6 +11010,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10908
11010
  auth: "admin"
10909
11011
  }), object({ zones: array(ZoneSchema).readonly() });
10910
11012
  /**
11013
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
11014
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
11015
+ * so the caller supplies only the detection-res bbox divided by the detection
11016
+ * dims — no native resolution to plumb.
11017
+ */
11018
+ var NativeCropBboxSchema = object({
11019
+ x: number(),
11020
+ y: number(),
11021
+ w: number(),
11022
+ h: number()
11023
+ });
11024
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
11025
+ var NativeCropResultSchema = object({
11026
+ /** Packed rgb (24-bit) pixels of the crop. */
11027
+ bytes: _instanceof(Uint8Array),
11028
+ width: number().int().positive(),
11029
+ height: number().int().positive()
11030
+ });
11031
+ /**
10911
11032
  * Per-camera tunable ranges + defaults. Single source of truth used
10912
11033
  * by both the Zod data schema (validation + default fallback) and
10913
11034
  * the device settings UI (slider min/max/step). Touch one place and
@@ -11002,6 +11123,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
11002
11123
  kind: literal("remote-restream"),
11003
11124
  /** The camera's source-owner node (slice 1: always the hub). */
11004
11125
  ownerNodeId: string(),
11126
+ /**
11127
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
11128
+ * per-node `reachableHost` override (Cluster UI). When present the runner
11129
+ * dials THIS host for the owner's restream, in preference to the
11130
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
11131
+ */
11132
+ ownerReachableHost: string().optional(),
11005
11133
  /** Operator override for the owner host the runner dials. */
11006
11134
  hubHostnameOverride: string().optional()
11007
11135
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -11010,13 +11138,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
11010
11138
  * specific runner instance via `attachCamera`. Carries everything the
11011
11139
  * runner needs to subscribe to the local broker and execute inference.
11012
11140
  *
11013
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
11014
- * optional `audio`) travels with the attach payload. The runner keeps it
11015
- * in RAM for the lifetime of the attach — on rebalance, edit, or
11016
- * restart the orchestrator re-sends the latest snapshot.
11017
- *
11018
- * `engine`/`steps`/`audio` are optional during the additive migration
11019
- * window; once orchestrator + UI are migrated they become required.
11141
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
11142
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
11143
+ * for the lifetime of the attach — on rebalance, edit, or restart the
11144
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
11145
+ * node-local, resolved by the executing runner at dispatch time.
11020
11146
  */
11021
11147
  var RunnerCameraConfigSchema = object({
11022
11148
  deviceId: number(),
@@ -11067,14 +11193,11 @@ var RunnerCameraConfigSchema = object({
11067
11193
  */
11068
11194
  motionSources: MotionSourcesSchema.default(["analyzer"]),
11069
11195
  pipelineEnabled: boolean().default(true),
11070
- /** Engine choice for video steps (runtime+backend+format). */
11071
- engine: PipelineEngineChoiceSchema.optional(),
11072
11196
  /** Ordered tree of video steps. Absent → runner skips video detection. */
11073
11197
  steps: array(PipelineStepInputSchema).readonly().optional(),
11074
11198
  /** Audio classification branch. `enabled:false` disables, null skips. */
11075
11199
  audio: object({
11076
- engine: PipelineEngineChoiceSchema,
11077
- modelId: string(),
11200
+ modelId: string().optional(),
11078
11201
  enabled: boolean()
11079
11202
  }).nullable().optional(),
11080
11203
  /**
@@ -11161,7 +11284,11 @@ var RunnerLocalMetricsSchema = object({
11161
11284
  avgInferenceTimeMs: number(),
11162
11285
  queueDepth: number()
11163
11286
  });
11164
- method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly());
11287
+ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
11288
+ handle: FrameHandleSchema,
11289
+ bbox: NativeCropBboxSchema,
11290
+ maxWidth: number().int().positive().optional()
11291
+ }), NativeCropResultSchema.nullable());
11165
11292
  object({
11166
11293
  detected: boolean(),
11167
11294
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12455,7 +12582,9 @@ var AddonPageDeclarationSchema$1 = object({
12455
12582
  icon: string(),
12456
12583
  path: string(),
12457
12584
  remoteName: string(),
12458
- bundle: string()
12585
+ bundle: string(),
12586
+ section: string().optional(),
12587
+ sectionLabel: string().optional()
12459
12588
  });
12460
12589
  var AddonPageInfoSchema = object({
12461
12590
  addonId: string(),
@@ -12495,7 +12624,18 @@ var AddonPageDeclarationSchema = object({
12495
12624
  * the static-file route can compute an mtime-based cache-buster URL
12496
12625
  * without a separate filesystem stat.
12497
12626
  */
12498
- bundle: string()
12627
+ bundle: string(),
12628
+ /**
12629
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12630
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12631
+ * Any OTHER string creates (or joins) a custom section rendered after
12632
+ * the built-in groups; its label comes from `sectionLabel` (first
12633
+ * declaration wins), falling back to the id. Absent → the legacy
12634
+ * "Addon Pages" group.
12635
+ */
12636
+ section: string().optional(),
12637
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12638
+ sectionLabel: string().optional()
12499
12639
  });
12500
12640
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12501
12641
  var AddonHttpRouteSchema = object({
@@ -12730,6 +12870,17 @@ var WidgetMetadataSchema = object({
12730
12870
  deviceContext: boolean().default(false),
12731
12871
  integrationContext: boolean().default(false)
12732
12872
  }),
12873
+ /**
12874
+ * Loadable BEFORE authentication. The normal widget registry listing
12875
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12876
+ * (the login page) cannot discover a widget through it. A widget that
12877
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12878
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12879
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12880
+ * than the authenticated registry, and its bundle is served by the
12881
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12882
+ */
12883
+ preAuth: boolean().optional().default(false),
12733
12884
  /** Dashboard placement HINTS (operator can override per instance). */
12734
12885
  defaultSize: WidgetSizeEnum.default("md"),
12735
12886
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -13031,6 +13182,66 @@ method(object({
13031
13182
  password: string()
13032
13183
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
13033
13184
  /**
13185
+ * `login-method` — collection cap through which auth addons contribute
13186
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13187
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13188
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13189
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13190
+ * procedure aggregates them for the unauthenticated login page.
13191
+ *
13192
+ * A contribution is a discriminated union on `kind`:
13193
+ *
13194
+ * - `redirect` — a declarative button. The login page renders a generic
13195
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13196
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13197
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13198
+ * login page needs NO change.
13199
+ *
13200
+ * - `widget` — a Module-Federation widget the login page mounts (via
13201
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13202
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13203
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13204
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13205
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13206
+ *
13207
+ * Every contribution carries a `stage`:
13208
+ * - `primary` — shown on the first credentials screen (OIDC /
13209
+ * magic-link buttons; a future usernameless passkey).
13210
+ * - `second-factor` — shown AFTER the password leg, gated on the
13211
+ * returned `factors` (passkey-as-2FA today).
13212
+ *
13213
+ * `mount: skip` — the cap is read server-side by the core auth router
13214
+ * (`registry.getCollection('login-method')`), never mounted as its own
13215
+ * tRPC router.
13216
+ */
13217
+ /** When a login method renders in the two-phase login flow. */
13218
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13219
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13220
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13221
+ kind: literal("redirect"),
13222
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13223
+ id: string(),
13224
+ /** Operator-facing button label. */
13225
+ label: string(),
13226
+ /** lucide-react icon name. */
13227
+ icon: string().optional(),
13228
+ /** Addon-owned HTTP route the button navigates to (GET). */
13229
+ startUrl: string(),
13230
+ stage: LoginStageEnum
13231
+ }), object({
13232
+ kind: literal("widget"),
13233
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13234
+ id: string(),
13235
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13236
+ addonId: string(),
13237
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13238
+ bundle: string(),
13239
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13240
+ remote: WidgetRemoteSchema,
13241
+ stage: LoginStageEnum
13242
+ })]);
13243
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13244
+ /**
13034
13245
  * Orchestrator-side destination metadata. The orchestrator computes
13035
13246
  * `id = <addonId>:<subId>` from its provider lookup so consumers
13036
13247
  * (admin UI, restore flow) see one canonical key.
@@ -15186,7 +15397,17 @@ var TrackSchema = object({
15186
15397
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
15187
15398
  totalDistance: number(),
15188
15399
  state: TrackStateSchema,
15189
- active: boolean()
15400
+ active: boolean(),
15401
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15402
+ * track expiry, recomputed on late label). Absent on legacy rows written
15403
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15404
+ importance: number().optional(),
15405
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15406
+ * "best" frame). Absent when the track produced no object events. */
15407
+ bestEventId: string().optional(),
15408
+ /** Tag of the importance sub-signal that dominated the score
15409
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15410
+ importanceReason: string().optional()
15190
15411
  });
15191
15412
  var BaseEventFields = {
15192
15413
  id: string(),
@@ -15251,8 +15472,18 @@ var ObjectEventSchema = object({
15251
15472
  frameHeight: number().optional(),
15252
15473
  /** MediaStore key for the crop attached to this event (if any). */
15253
15474
  mediaKey: string().optional(),
15475
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15476
+ * best-detection full frame). Resolve via the event-media data-plane
15477
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15478
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15479
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15480
+ keyFrameMediaKey: string().optional(),
15254
15481
  /** Populated by B5 (recording playback URL for this event). */
15255
- mediaUrl: string().optional()
15482
+ mediaUrl: string().optional(),
15483
+ /** The parent track's key-event importance [0,1], propagated to every object
15484
+ * event of the track (so an event row can be sorted by importance without a
15485
+ * track join). Absent on legacy rows / before the track was scored. */
15486
+ importance: number().optional()
15256
15487
  });
15257
15488
  var AudioEventSchema = object({
15258
15489
  ...BaseEventFields,
@@ -15276,7 +15507,8 @@ var MediaFileKindEnum = _enum([
15276
15507
  "fullFrame",
15277
15508
  "fullFrameBoxed",
15278
15509
  "faceCrop",
15279
- "plateCrop"
15510
+ "plateCrop",
15511
+ "keyFrame"
15280
15512
  ]);
15281
15513
  var MediaFileSchema = object({
15282
15514
  key: string(),
@@ -15297,6 +15529,32 @@ var DeviceEventQueryInput = object({
15297
15529
  projection: _enum(["full", "slim"]).optional()
15298
15530
  });
15299
15531
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15532
+ var KeyEventQueryInput = object({
15533
+ deviceId: number(),
15534
+ /** Window lower bound (track firstSeen ≥ since). */
15535
+ since: number(),
15536
+ /** Window upper bound (track firstSeen ≤ until). */
15537
+ until: number(),
15538
+ limit: number().int().min(1).max(200).default(50),
15539
+ /** Drop tracks scoring below this importance. */
15540
+ minImportance: number().min(0).max(1).optional(),
15541
+ /** Restrict to a single class (e.g. 'person'). */
15542
+ classFilter: string().optional()
15543
+ });
15544
+ var KeyEventSchema = object({
15545
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15546
+ id: string(),
15547
+ trackId: string(),
15548
+ /** Track start time (firstSeen). */
15549
+ timestamp: number(),
15550
+ className: string(),
15551
+ label: string().optional(),
15552
+ importance: number(),
15553
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15554
+ bestEventId: string(),
15555
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15556
+ windowMs: number().optional()
15557
+ });
15300
15558
  var TrackedDetectionSchema = object({
15301
15559
  trackId: string(),
15302
15560
  className: string(),
@@ -15326,7 +15584,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15326
15584
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15327
15585
  kind: "mutation",
15328
15586
  auth: "admin"
15329
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15587
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15330
15588
  deviceId: number(),
15331
15589
  since: number(),
15332
15590
  until: number(),
@@ -15371,11 +15629,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15371
15629
  timestamp: number()
15372
15630
  });
15373
15631
  var CameraPipelineConfigSchema = object({
15374
- engine: PipelineEngineChoiceSchema,
15632
+ engine: PipelineEngineChoiceSchema.optional(),
15375
15633
  steps: array(PipelineStepInputSchema).readonly(),
15376
15634
  audio: object({
15377
- engine: PipelineEngineChoiceSchema,
15378
- modelId: string(),
15635
+ engine: PipelineEngineChoiceSchema.optional(),
15636
+ modelId: string().optional(),
15379
15637
  enabled: boolean(),
15380
15638
  settings: record(string(), unknown()).readonly().optional()
15381
15639
  }).nullable().optional()
@@ -15390,7 +15648,7 @@ var PipelineTemplateSchema = object({
15390
15648
  });
15391
15649
  var AgentAddonConfigSchema = object({
15392
15650
  enabled: boolean(),
15393
- modelId: string(),
15651
+ modelId: string().optional(),
15394
15652
  settings: record(string(), unknown()).readonly()
15395
15653
  });
15396
15654
  var AgentPipelineSettingsSchema = object({
@@ -15400,12 +15658,25 @@ var AgentPipelineSettingsSchema = object({
15400
15658
  detectWeight: number().positive().optional(),
15401
15659
  /** Node is eligible to run the detection pipeline (decode + inference). */
15402
15660
  detect: boolean().optional(),
15403
- /** Node is eligible to host decoder sessions. */
15661
+ /**
15662
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15663
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15664
+ * the schema ONLY so persisted stores written before the removal still
15665
+ * parse — no code reads it and no write path emits it.
15666
+ */
15404
15667
  decode: boolean().optional(),
15405
15668
  /** Node is eligible to run audio-analyzer sessions. */
15406
15669
  audio: boolean().optional(),
15407
15670
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15408
- ingest: boolean().optional()
15671
+ ingest: boolean().optional(),
15672
+ /**
15673
+ * Operator override for the LAN host a cross-node decoder dials to reach
15674
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15675
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15676
+ * it already uses to reach the hub). Set this only when the auto-detected
15677
+ * address is wrong (multi-homed host, NAT, custom interface).
15678
+ */
15679
+ reachableHost: string().optional()
15409
15680
  });
15410
15681
  var CameraPipelineForAgentSchema = object({
15411
15682
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15453,25 +15724,6 @@ var PipelineAssignmentSchema = object({
15453
15724
  assignedAt: number()
15454
15725
  });
15455
15726
  /**
15456
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15457
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15458
- * → co-located with pipeline → capacity).
15459
- */
15460
- var DecoderAssignmentSchema = object({
15461
- deviceId: number(),
15462
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15463
- decoderNodeId: string(),
15464
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15465
- pinned: boolean(),
15466
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15467
- reason: _enum([
15468
- "manual",
15469
- "co-located",
15470
- "capacity",
15471
- "hardware-affinity"
15472
- ])
15473
- });
15474
- /**
15475
15727
  * Per-agent load summary surfaced to the load balancer + dashboards.
15476
15728
  * Aggregated from each runner's `getLocalLoad` cap call.
15477
15729
  */
@@ -15511,6 +15763,15 @@ var GlobalMetricsSchema = object({
15511
15763
  * capability providers.
15512
15764
  */
15513
15765
  var CapabilityBindingsSchema = record(string(), string());
15766
+ /**
15767
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15768
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15769
+ */
15770
+ var IngestOwnerSchema = object({
15771
+ ownerNodeId: string(),
15772
+ reachableHost: string().optional(),
15773
+ configIssue: string().optional()
15774
+ });
15514
15775
  /** Source block — always present; derives from the stream catalog. */
15515
15776
  var CameraSourceStatusSchema = object({ streams: array(object({
15516
15777
  camStreamId: string(),
@@ -15525,6 +15786,14 @@ var CameraAssignmentStatusSchema = object({
15525
15786
  detectionNodeId: string().nullable(),
15526
15787
  decoderNodeId: string().nullable(),
15527
15788
  audioNodeId: string().nullable(),
15789
+ /**
15790
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15791
+ * hosts the broker/restream) — the cluster ingest owner today
15792
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15793
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15794
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15795
+ */
15796
+ sourceNodeId: string().nullable(),
15528
15797
  pinned: object({
15529
15798
  detection: boolean(),
15530
15799
  decoder: boolean(),
@@ -15657,16 +15926,7 @@ method(object({
15657
15926
  }), object({ success: literal(true) }), {
15658
15927
  kind: "mutation",
15659
15928
  auth: "admin"
15660
- }), method(object({
15661
- deviceId: number(),
15662
- nodeId: string()
15663
- }), _void(), {
15664
- kind: "mutation",
15665
- auth: "admin"
15666
- }), method(object({ deviceId: number() }), _void(), {
15667
- kind: "mutation",
15668
- auth: "admin"
15669
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15929
+ }), method(_void(), IngestOwnerSchema), method(object({
15670
15930
  deviceId: number(),
15671
15931
  nodeId: string()
15672
15932
  }), object({ success: literal(true) }), {
@@ -15687,10 +15947,7 @@ method(object({
15687
15947
  nodeId: string(),
15688
15948
  pinned: boolean(),
15689
15949
  assignedAt: number()
15690
- }))), method(object({
15691
- deviceId: number(),
15692
- pipelineNodeId: string().optional()
15693
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15950
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15694
15951
  nodeId: string(),
15695
15952
  settings: AgentPipelineSettingsSchema
15696
15953
  })).readonly()), method(object({
@@ -15720,12 +15977,26 @@ method(object({
15720
15977
  }), method(object({
15721
15978
  agentNodeId: string(),
15722
15979
  detect: boolean().nullable().optional(),
15723
- decode: boolean().nullable().optional(),
15724
15980
  audio: boolean().nullable().optional(),
15725
15981
  ingest: boolean().nullable().optional()
15726
15982
  }), object({ success: literal(true) }), {
15727
15983
  kind: "mutation",
15728
15984
  auth: "admin"
15985
+ }), method(object({
15986
+ agentNodeId: string(),
15987
+ reachableHost: string().nullable()
15988
+ }), object({ success: literal(true) }), {
15989
+ kind: "mutation",
15990
+ auth: "admin"
15991
+ }), method(object({ agentNodeId: string() }), object({
15992
+ success: literal(true),
15993
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15994
+ effectiveModelId: string().nullable(),
15995
+ /** Number of cameras whose node-scoped overrides were cleared. */
15996
+ clearedCameraOverrides: number()
15997
+ }), {
15998
+ kind: "mutation",
15999
+ auth: "admin"
15729
16000
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15730
16001
  deviceId: number(),
15731
16002
  addonId: string(),
@@ -15770,22 +16041,131 @@ method(object({
15770
16041
  kind: "mutation",
15771
16042
  auth: "admin"
15772
16043
  });
15773
- var RegisteredStreamSchema = object({
15774
- streamId: string(),
15775
- label: string().optional(),
15776
- codec: string(),
15777
- type: _enum(["video", "audio"]),
15778
- sourceUrl: string()
16044
+ /**
16045
+ * server-management — per-NODE singleton capability for a node's ROOT
16046
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
16047
+ * agents).
16048
+ *
16049
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
16050
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
16051
+ * version describes the node. Updates install into
16052
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
16053
+ * starter (probation boot + auto-rollback to N-1).
16054
+ *
16055
+ * Providers:
16056
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
16057
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
16058
+ * unpinned calls.
16059
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
16060
+ * the synthetic `agent-runtime` addonId and declared in the agent's
16061
+ * `$hub.registerNode` manifest.
16062
+ *
16063
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
16064
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
16065
+ * SDK) routes the call to that node's provider via the standard remote
16066
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
16067
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
16068
+ *
16069
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
16070
+ */
16071
+ /**
16072
+ * Where the running hub's code was loaded from:
16073
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
16074
+ * plain resolution and runtime updates are refused.
16075
+ * - `baked` — the immutable image seed closure (no data-dir root active).
16076
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
16077
+ */
16078
+ var ServerBootModeSchema = _enum([
16079
+ "workspace",
16080
+ "baked",
16081
+ "data-root"
16082
+ ]);
16083
+ /**
16084
+ * Update lifecycle state:
16085
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
16086
+ * - `pending-restart` — a version is staged and the node has NOT yet
16087
+ * restarted onto it (still running the OLD version).
16088
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
16089
+ * (it is the active probation boot) and is waiting to confirm boot-health.
16090
+ * Apply/rollback are refused in this state and the node must NOT be
16091
+ * manually restarted, or the probation boot auto-rolls-back.
16092
+ */
16093
+ var ServerUpdateStateSchema = _enum([
16094
+ "idle",
16095
+ "checking",
16096
+ "staging",
16097
+ "pending-restart",
16098
+ "awaiting-confirmation"
16099
+ ]);
16100
+ var ServerRollbackInfoSchema = object({
16101
+ /** The version that failed (or was manually rolled back). */
16102
+ fromVersion: string(),
16103
+ /** The version rolled back to; null = the baked seed. */
16104
+ toVersion: string().nullable(),
16105
+ atMs: number(),
16106
+ reason: string()
15779
16107
  });
15780
- var ExposedResourceSchema = object({
15781
- streamId: string(),
15782
- format: string(),
15783
- value: string()
16108
+ var ServerPackageStatusSchema = object({
16109
+ /** Root package name (`@camstack/server` on the hub). */
16110
+ packageName: string(),
16111
+ /** Version of the code the running process ACTUALLY loaded. */
16112
+ runningVersion: string().nullable(),
16113
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
16114
+ nodeRuntimeVersion: string().nullable(),
16115
+ /** Active data-dir root version; null when booted from seed/workspace. */
16116
+ activeVersion: string().nullable(),
16117
+ /** N-1 version kept for rollback; null when no previous version exists. */
16118
+ previousVersion: string().nullable(),
16119
+ /** Version of the immutable baked seed closure (image fallback). */
16120
+ seedVersion: string().nullable(),
16121
+ /** Latest registry version from the most recent check (null = never checked). */
16122
+ latestVersion: string().nullable(),
16123
+ updateAvailable: boolean(),
16124
+ bootMode: ServerBootModeSchema,
16125
+ updateState: ServerUpdateStateSchema,
16126
+ /** Version staged + awaiting its probation boot, when one is pending. */
16127
+ pendingVersion: string().nullable(),
16128
+ /** Set when the last freshly-activated version failed its boot health-check. */
16129
+ rolledBack: ServerRollbackInfoSchema.nullable(),
16130
+ /**
16131
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
16132
+ * hub is running from the baked seed (or workspace) while installed data-dir
16133
+ * versions are being IGNORED. Surfaced as a warning in the UI.
16134
+ */
16135
+ stateFileCorrupt: boolean(),
16136
+ lastCheckedAtMs: number().nullable()
16137
+ });
16138
+ var ServerUpdateCheckResultSchema = object({
16139
+ packageName: string(),
16140
+ runningVersion: string().nullable(),
16141
+ latestVersion: string().nullable(),
16142
+ updateAvailable: boolean(),
16143
+ checkedAtMs: number(),
16144
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
16145
+ error: string().nullable()
16146
+ });
16147
+ var ServerUpdateActionResultSchema = object({
16148
+ accepted: boolean(),
16149
+ targetVersion: string().nullable(),
16150
+ /** True when a graceful restart was scheduled to apply the change. */
16151
+ restarting: boolean(),
16152
+ message: string()
16153
+ });
16154
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
16155
+ kind: "mutation",
16156
+ auth: "admin"
16157
+ }), method(object({
16158
+ /** Explicit target version; omitted = latest from the registry. */
16159
+ version: string().optional() }), ServerUpdateActionResultSchema, {
16160
+ kind: "mutation",
16161
+ auth: "admin"
16162
+ }), method(_void(), ServerUpdateActionResultSchema, {
16163
+ kind: "mutation",
16164
+ auth: "admin"
16165
+ }), method(_void(), ServerUpdateActionResultSchema, {
16166
+ kind: "mutation",
16167
+ auth: "admin"
15784
16168
  });
15785
- method(object({
15786
- deviceId: number(),
15787
- streams: array(RegisteredStreamSchema).readonly()
15788
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15789
16169
  /**
15790
16170
  * Query filter for settings-store collections.
15791
16171
  */
@@ -15938,9 +16318,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15938
16318
  /**
15939
16319
  * A single device snapshot returned as base64 JPEG/PNG.
15940
16320
  *
15941
- * Shared with the `snapshot-provider` collection cap the orchestrator
15942
- * receives the same shape from each native provider and from the
15943
- * broker-based fallback.
16321
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16322
+ * the device-native provider (onboard capture) or from the stream-broker
16323
+ * prebuffer fallback.
15944
16324
  */
15945
16325
  var SnapshotImageSchema = object({
15946
16326
  base64: string(),
@@ -15971,11 +16351,12 @@ DeviceType.Camera, method(object({
15971
16351
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15972
16352
  kind: "mutation",
15973
16353
  auth: "admin"
15974
- });
15975
- method(object({ deviceId: number() }), boolean()), method(object({
16354
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15976
16355
  deviceId: number(),
15977
- streamId: string().optional()
15978
- }), SnapshotImageSchema.nullable());
16356
+ lastCapturedAt: number().nullable(),
16357
+ cacheAgeMs: number().nullable(),
16358
+ etag: string().nullable()
16359
+ })));
15979
16360
  /**
15980
16361
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15981
16362
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16226,10 +16607,32 @@ method(_void(), array(TurnServerSchema).readonly());
16226
16607
  * b. `finishAuthentication({userId, response})` → server verifies
16227
16608
  * the assertion, bumps the credential counter, returns ok.
16228
16609
  *
16610
+ * 2b. Usernameless (discoverable-credential) authentication — the
16611
+ * passkey IS the primary factor, no password leg:
16612
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16613
+ * EMPTY `allowCredentials` (the browser offers every resident
16614
+ * passkey it holds for this RP) + `userVerification: 'required'`
16615
+ * (the passkey replaces both factors, so UV is mandatory).
16616
+ * The challenge is stored server-side, NOT bound to any user.
16617
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16618
+ * resolves the credential by the response's credential id,
16619
+ * verifies the assertion against the stored challenge + that
16620
+ * credential's public key/counter, and returns the OWNING
16621
+ * `userId` — the caller (core auth router) mints the session.
16622
+ *
16229
16623
  * 3. Management:
16230
16624
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16231
16625
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16232
16626
  *
16627
+ * 4. Second-factor preference (opt-in, default OFF):
16628
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16629
+ * demanded as a second factor after a password login ONLY when the
16630
+ * user explicitly opts in via `setSecondFactorPreference`.
16631
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16632
+ * row ⇒ `enabled: false`).
16633
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16634
+ * the providing addon beside its credentials.
16635
+ *
16233
16636
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16234
16637
  * the admin-ui composes the begin/finish round-trip and never exposes
16235
16638
  * the cap to non-admins.
@@ -16272,6 +16675,17 @@ method(object({
16272
16675
  }), object({ verified: boolean() }), {
16273
16676
  kind: "mutation",
16274
16677
  access: "view"
16678
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16679
+ kind: "mutation",
16680
+ access: "view"
16681
+ }), method(object({
16682
+ /** AuthenticationResponseJSON from the browser. */
16683
+ response: record(string(), unknown()) }), object({
16684
+ verified: boolean(),
16685
+ userId: string().nullable()
16686
+ }), {
16687
+ kind: "mutation",
16688
+ access: "view"
16275
16689
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16276
16690
  userId: string(),
16277
16691
  credentialId: string()
@@ -16279,6 +16693,13 @@ method(object({
16279
16693
  kind: "mutation",
16280
16694
  auth: "admin",
16281
16695
  access: "delete"
16696
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16697
+ userId: string(),
16698
+ enabled: boolean()
16699
+ }), object({ success: literal(true) }), {
16700
+ kind: "mutation",
16701
+ auth: "admin",
16702
+ access: "create"
16282
16703
  });
16283
16704
  /**
16284
16705
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16336,9 +16757,10 @@ method(object({
16336
16757
  auth: "admin"
16337
16758
  });
16338
16759
  /**
16339
- * Optional client-side hints sent at session creation to help the
16340
- * provider pick the best native source. All fields are optional —
16341
- * a viewer that knows nothing still gets a sane default.
16760
+ * Optional client-side hints sent at session creation to help the provider
16761
+ * pick the best native source. All fields optional — a viewer that knows
16762
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16763
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16342
16764
  */
16343
16765
  var webrtcClientHintsSchema = object({
16344
16766
  viewportWidth: number().int().positive().optional(),
@@ -16349,22 +16771,6 @@ var webrtcClientHintsSchema = object({
16349
16771
  /** Hard tier override; takes precedence over scoring when registered. */
16350
16772
  prefersTier: string().optional()
16351
16773
  }).partial();
16352
- method(object({
16353
- streamId: string(),
16354
- sdpOffer: string()
16355
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16356
- streamId: string(),
16357
- codec: string()
16358
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16359
- streamId: string(),
16360
- hints: webrtcClientHintsSchema.optional()
16361
- }), object({
16362
- sessionId: string(),
16363
- sdpOffer: string()
16364
- }), { kind: "mutation" }), method(object({
16365
- sessionId: string(),
16366
- sdpAnswer: string()
16367
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16368
16774
  /**
16369
16775
  * Discriminated target for a WebRTC session. The client sends this
16370
16776
  * structured object instead of building / parsing brokerId strings;
@@ -17095,7 +17501,17 @@ var FaceInfoSchema = object({
17095
17501
  recognizedIdentityId: string().optional(),
17096
17502
  identityName: string().optional(),
17097
17503
  assigned: boolean(),
17098
- base64: string().optional()
17504
+ base64: string().optional(),
17505
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17506
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17507
+ * legacy rows written before design B. */
17508
+ faceBbox: BoundingBoxSchema.optional(),
17509
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17510
+ * Fetch the native JPEG via the event-media data-plane
17511
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17512
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17513
+ * back to the inline `base64` face crop. */
17514
+ keyFrameMediaKey: string().optional()
17099
17515
  });
17100
17516
  var FaceFilterEnum = _enum([
17101
17517
  "unassigned",
@@ -17792,6 +18208,16 @@ var TopologyCategorySchema = object({
17792
18208
  healthy: number(),
17793
18209
  addons: array(TopologyCategoryAddonSchema).readonly()
17794
18210
  });
18211
+ /**
18212
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18213
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18214
+ * version visibility for the Server management surface. Nullable: offline
18215
+ * rows and pre-phase-2 nodes report none.
18216
+ */
18217
+ var TopologyRootPackageSchema = object({
18218
+ name: string(),
18219
+ version: string()
18220
+ });
17795
18221
  var TopologyNodeSchema = object({
17796
18222
  id: string(),
17797
18223
  name: string(),
@@ -17815,7 +18241,8 @@ var TopologyNodeSchema = object({
17815
18241
  status: string()
17816
18242
  })).readonly(),
17817
18243
  processes: array(TopologyProcessSchema).readonly(),
17818
- categories: array(TopologyCategorySchema).readonly()
18244
+ categories: array(TopologyCategorySchema).readonly(),
18245
+ rootPackage: TopologyRootPackageSchema.nullable()
17819
18246
  });
17820
18247
  var CapUsageEdgeSchema = object({
17821
18248
  callerAddonId: string(),
@@ -20615,6 +21042,12 @@ Object.freeze({
20615
21042
  addonId: null,
20616
21043
  access: "create"
20617
21044
  },
21045
+ "loginMethod.getLoginMethods": {
21046
+ capName: "login-method",
21047
+ capScope: "system",
21048
+ addonId: null,
21049
+ access: "view"
21050
+ },
20618
21051
  "mediaPlayer.next": {
20619
21052
  capName: "media-player",
20620
21053
  capScope: "device",
@@ -21197,6 +21630,12 @@ Object.freeze({
21197
21630
  addonId: null,
21198
21631
  access: "view"
21199
21632
  },
21633
+ "pipelineAnalytics.getKeyEvents": {
21634
+ capName: "pipeline-analytics",
21635
+ capScope: "device",
21636
+ addonId: null,
21637
+ access: "view"
21638
+ },
21200
21639
  "pipelineAnalytics.getMotionEvents": {
21201
21640
  capName: "pipeline-analytics",
21202
21641
  capScope: "device",
@@ -21245,23 +21684,23 @@ Object.freeze({
21245
21684
  addonId: null,
21246
21685
  access: "create"
21247
21686
  },
21248
- "pipelineExecutor.deleteModel": {
21687
+ "pipelineExecutor.clearDeviceOverrides": {
21249
21688
  capName: "pipeline-executor",
21250
21689
  capScope: "system",
21251
21690
  addonId: null,
21252
21691
  access: "delete"
21253
21692
  },
21254
- "pipelineExecutor.deleteTemplate": {
21693
+ "pipelineExecutor.deleteModel": {
21255
21694
  capName: "pipeline-executor",
21256
21695
  capScope: "system",
21257
21696
  addonId: null,
21258
21697
  access: "delete"
21259
21698
  },
21260
- "pipelineExecutor.detect": {
21699
+ "pipelineExecutor.deleteTemplate": {
21261
21700
  capName: "pipeline-executor",
21262
21701
  capScope: "system",
21263
21702
  addonId: null,
21264
- access: "view"
21703
+ access: "delete"
21265
21704
  },
21266
21705
  "pipelineExecutor.downloadModel": {
21267
21706
  capName: "pipeline-executor",
@@ -21455,13 +21894,13 @@ Object.freeze({
21455
21894
  addonId: null,
21456
21895
  access: "create"
21457
21896
  },
21458
- "pipelineOrchestrator.assignAudio": {
21459
- capName: "pipeline-orchestrator",
21897
+ "pipelineExecutor.validatePipeline": {
21898
+ capName: "pipeline-executor",
21460
21899
  capScope: "system",
21461
21900
  addonId: null,
21462
- access: "create"
21901
+ access: "view"
21463
21902
  },
21464
- "pipelineOrchestrator.assignDecoder": {
21903
+ "pipelineOrchestrator.assignAudio": {
21465
21904
  capName: "pipeline-orchestrator",
21466
21905
  capScope: "system",
21467
21906
  addonId: null,
@@ -21545,19 +21984,13 @@ Object.freeze({
21545
21984
  addonId: null,
21546
21985
  access: "view"
21547
21986
  },
21548
- "pipelineOrchestrator.getDecoderAssignment": {
21549
- capName: "pipeline-orchestrator",
21550
- capScope: "system",
21551
- addonId: null,
21552
- access: "view"
21553
- },
21554
- "pipelineOrchestrator.getDecoderAssignments": {
21987
+ "pipelineOrchestrator.getGlobalMetrics": {
21555
21988
  capName: "pipeline-orchestrator",
21556
21989
  capScope: "system",
21557
21990
  addonId: null,
21558
21991
  access: "view"
21559
21992
  },
21560
- "pipelineOrchestrator.getGlobalMetrics": {
21993
+ "pipelineOrchestrator.getIngestOwner": {
21561
21994
  capName: "pipeline-orchestrator",
21562
21995
  capScope: "system",
21563
21996
  addonId: null,
@@ -21599,6 +22032,12 @@ Object.freeze({
21599
22032
  addonId: null,
21600
22033
  access: "delete"
21601
22034
  },
22035
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
22036
+ capName: "pipeline-orchestrator",
22037
+ capScope: "system",
22038
+ addonId: null,
22039
+ access: "delete"
22040
+ },
21602
22041
  "pipelineOrchestrator.resolvePipeline": {
21603
22042
  capName: "pipeline-orchestrator",
21604
22043
  capScope: "system",
@@ -21635,37 +22074,37 @@ Object.freeze({
21635
22074
  addonId: null,
21636
22075
  access: "create"
21637
22076
  },
21638
- "pipelineOrchestrator.setCameraPipelineForAgent": {
22077
+ "pipelineOrchestrator.setAgentReachableHost": {
21639
22078
  capName: "pipeline-orchestrator",
21640
22079
  capScope: "system",
21641
22080
  addonId: null,
21642
22081
  access: "create"
21643
22082
  },
21644
- "pipelineOrchestrator.setCameraStepOverride": {
22083
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21645
22084
  capName: "pipeline-orchestrator",
21646
22085
  capScope: "system",
21647
22086
  addonId: null,
21648
22087
  access: "create"
21649
22088
  },
21650
- "pipelineOrchestrator.setCameraStepToggle": {
22089
+ "pipelineOrchestrator.setCameraStepOverride": {
21651
22090
  capName: "pipeline-orchestrator",
21652
22091
  capScope: "system",
21653
22092
  addonId: null,
21654
22093
  access: "create"
21655
22094
  },
21656
- "pipelineOrchestrator.setCapabilityBinding": {
22095
+ "pipelineOrchestrator.setCameraStepToggle": {
21657
22096
  capName: "pipeline-orchestrator",
21658
22097
  capScope: "system",
21659
22098
  addonId: null,
21660
22099
  access: "create"
21661
22100
  },
21662
- "pipelineOrchestrator.unassignAudio": {
22101
+ "pipelineOrchestrator.setCapabilityBinding": {
21663
22102
  capName: "pipeline-orchestrator",
21664
22103
  capScope: "system",
21665
22104
  addonId: null,
21666
22105
  access: "create"
21667
22106
  },
21668
- "pipelineOrchestrator.unassignDecoder": {
22107
+ "pipelineOrchestrator.unassignAudio": {
21669
22108
  capName: "pipeline-orchestrator",
21670
22109
  capScope: "system",
21671
22110
  addonId: null,
@@ -21725,6 +22164,12 @@ Object.freeze({
21725
22164
  addonId: null,
21726
22165
  access: "view"
21727
22166
  },
22167
+ "pipelineRunner.getNativeCrop": {
22168
+ capName: "pipeline-runner",
22169
+ capScope: "system",
22170
+ addonId: null,
22171
+ access: "view"
22172
+ },
21728
22173
  "pipelineRunner.reportMotion": {
21729
22174
  capName: "pipeline-runner",
21730
22175
  capScope: "system",
@@ -21965,33 +22410,45 @@ Object.freeze({
21965
22410
  addonId: null,
21966
22411
  access: "create"
21967
22412
  },
21968
- "restreamer.getExposedResources": {
21969
- capName: "restreamer",
22413
+ "scriptRunner.run": {
22414
+ capName: "script-runner",
22415
+ capScope: "device",
22416
+ addonId: null,
22417
+ access: "create"
22418
+ },
22419
+ "scriptRunner.stop": {
22420
+ capName: "script-runner",
22421
+ capScope: "device",
22422
+ addonId: null,
22423
+ access: "create"
22424
+ },
22425
+ "serverManagement.applyServerUpdate": {
22426
+ capName: "server-management",
21970
22427
  capScope: "system",
21971
22428
  addonId: null,
21972
- access: "view"
22429
+ access: "create"
21973
22430
  },
21974
- "restreamer.registerDevice": {
21975
- capName: "restreamer",
22431
+ "serverManagement.checkServerUpdate": {
22432
+ capName: "server-management",
21976
22433
  capScope: "system",
21977
22434
  addonId: null,
21978
22435
  access: "create"
21979
22436
  },
21980
- "restreamer.unregisterDevice": {
21981
- capName: "restreamer",
22437
+ "serverManagement.getServerPackageStatus": {
22438
+ capName: "server-management",
21982
22439
  capScope: "system",
21983
22440
  addonId: null,
21984
- access: "delete"
22441
+ access: "view"
21985
22442
  },
21986
- "scriptRunner.run": {
21987
- capName: "script-runner",
21988
- capScope: "device",
22443
+ "serverManagement.restartServer": {
22444
+ capName: "server-management",
22445
+ capScope: "system",
21989
22446
  addonId: null,
21990
22447
  access: "create"
21991
22448
  },
21992
- "scriptRunner.stop": {
21993
- capName: "script-runner",
21994
- capScope: "device",
22449
+ "serverManagement.rollbackServerUpdate": {
22450
+ capName: "server-management",
22451
+ capScope: "system",
21995
22452
  addonId: null,
21996
22453
  access: "create"
21997
22454
  },
@@ -22079,23 +22536,17 @@ Object.freeze({
22079
22536
  addonId: null,
22080
22537
  access: "view"
22081
22538
  },
22082
- "snapshot.invalidateCache": {
22539
+ "snapshot.getSnapshotOverview": {
22083
22540
  capName: "snapshot",
22084
22541
  capScope: "device",
22085
22542
  addonId: null,
22086
- access: "create"
22087
- },
22088
- "snapshotProvider.getSnapshot": {
22089
- capName: "snapshot-provider",
22090
- capScope: "system",
22091
- addonId: null,
22092
22543
  access: "view"
22093
22544
  },
22094
- "snapshotProvider.supportsDevice": {
22095
- capName: "snapshot-provider",
22096
- capScope: "system",
22545
+ "snapshot.invalidateCache": {
22546
+ capName: "snapshot",
22547
+ capScope: "device",
22097
22548
  addonId: null,
22098
- access: "view"
22549
+ access: "create"
22099
22550
  },
22100
22551
  "ssoBridge.signBridgeToken": {
22101
22552
  capName: "sso-bridge",
@@ -22523,30 +22974,6 @@ Object.freeze({
22523
22974
  addonId: null,
22524
22975
  access: "view"
22525
22976
  },
22526
- "streamingEngine.getStreamUrl": {
22527
- capName: "streaming-engine",
22528
- capScope: "system",
22529
- addonId: null,
22530
- access: "view"
22531
- },
22532
- "streamingEngine.listStreams": {
22533
- capName: "streaming-engine",
22534
- capScope: "system",
22535
- addonId: null,
22536
- access: "view"
22537
- },
22538
- "streamingEngine.registerStream": {
22539
- capName: "streaming-engine",
22540
- capScope: "system",
22541
- addonId: null,
22542
- access: "create"
22543
- },
22544
- "streamingEngine.unregisterStream": {
22545
- capName: "streaming-engine",
22546
- capScope: "system",
22547
- addonId: null,
22548
- access: "delete"
22549
- },
22550
22977
  "streamParams.getConfigSchema": {
22551
22978
  capName: "stream-params",
22552
22979
  capScope: "device",
@@ -22793,6 +23220,12 @@ Object.freeze({
22793
23220
  addonId: null,
22794
23221
  access: "view"
22795
23222
  },
23223
+ "userPasskeys.beginDiscoverableAuthentication": {
23224
+ capName: "user-passkeys",
23225
+ capScope: "system",
23226
+ addonId: null,
23227
+ access: "view"
23228
+ },
22796
23229
  "userPasskeys.beginRegistration": {
22797
23230
  capName: "user-passkeys",
22798
23231
  capScope: "system",
@@ -22805,12 +23238,24 @@ Object.freeze({
22805
23238
  addonId: null,
22806
23239
  access: "view"
22807
23240
  },
23241
+ "userPasskeys.finishDiscoverableAuthentication": {
23242
+ capName: "user-passkeys",
23243
+ capScope: "system",
23244
+ addonId: null,
23245
+ access: "view"
23246
+ },
22808
23247
  "userPasskeys.finishRegistration": {
22809
23248
  capName: "user-passkeys",
22810
23249
  capScope: "system",
22811
23250
  addonId: null,
22812
23251
  access: "create"
22813
23252
  },
23253
+ "userPasskeys.getSecondFactorPreference": {
23254
+ capName: "user-passkeys",
23255
+ capScope: "system",
23256
+ addonId: null,
23257
+ access: "view"
23258
+ },
22814
23259
  "userPasskeys.listPasskeys": {
22815
23260
  capName: "user-passkeys",
22816
23261
  capScope: "system",
@@ -22823,6 +23268,12 @@ Object.freeze({
22823
23268
  addonId: null,
22824
23269
  access: "delete"
22825
23270
  },
23271
+ "userPasskeys.setSecondFactorPreference": {
23272
+ capName: "user-passkeys",
23273
+ capScope: "system",
23274
+ addonId: null,
23275
+ access: "create"
23276
+ },
22826
23277
  "vacuumControl.locate": {
22827
23278
  capName: "vacuum-control",
22828
23279
  capScope: "device",
@@ -22895,6 +23346,18 @@ Object.freeze({
22895
23346
  addonId: null,
22896
23347
  access: "view"
22897
23348
  },
23349
+ "viewerUi.getStaticDir": {
23350
+ capName: "viewer-ui",
23351
+ capScope: "system",
23352
+ addonId: null,
23353
+ access: "view"
23354
+ },
23355
+ "viewerUi.getVersion": {
23356
+ capName: "viewer-ui",
23357
+ capScope: "system",
23358
+ addonId: null,
23359
+ access: "view"
23360
+ },
22898
23361
  "waterHeater.setAway": {
22899
23362
  capName: "water-heater",
22900
23363
  capScope: "device",
@@ -22913,54 +23376,6 @@ Object.freeze({
22913
23376
  addonId: null,
22914
23377
  access: "create"
22915
23378
  },
22916
- "webrtc.closeSession": {
22917
- capName: "webrtc",
22918
- capScope: "system",
22919
- addonId: null,
22920
- access: "create"
22921
- },
22922
- "webrtc.createSession": {
22923
- capName: "webrtc",
22924
- capScope: "system",
22925
- addonId: null,
22926
- access: "create"
22927
- },
22928
- "webrtc.handleAnswer": {
22929
- capName: "webrtc",
22930
- capScope: "system",
22931
- addonId: null,
22932
- access: "create"
22933
- },
22934
- "webrtc.handleOffer": {
22935
- capName: "webrtc",
22936
- capScope: "system",
22937
- addonId: null,
22938
- access: "create"
22939
- },
22940
- "webrtc.hasAdaptiveBitrate": {
22941
- capName: "webrtc",
22942
- capScope: "system",
22943
- addonId: null,
22944
- access: "view"
22945
- },
22946
- "webrtc.registerStream": {
22947
- capName: "webrtc",
22948
- capScope: "system",
22949
- addonId: null,
22950
- access: "create"
22951
- },
22952
- "webrtc.supportsStream": {
22953
- capName: "webrtc",
22954
- capScope: "system",
22955
- addonId: null,
22956
- access: "view"
22957
- },
22958
- "webrtc.unregisterStream": {
22959
- capName: "webrtc",
22960
- capScope: "system",
22961
- addonId: null,
22962
- access: "delete"
22963
- },
22964
23379
  "webrtcSession.addIceCandidate": {
22965
23380
  capName: "webrtc-session",
22966
23381
  capScope: "device",