@camstack/addon-export-alexa 1.1.18 → 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.
@@ -4629,7 +4629,7 @@ function _instanceof(cls, params = {}) {
4629
4629
  return inst;
4630
4630
  }
4631
4631
  //#endregion
4632
- //#region ../types/dist/sleep-CZDdRBua.mjs
4632
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4633
4633
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4634
4634
  EventCategory["SystemBoot"] = "system.boot";
4635
4635
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4815,6 +4815,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4815
4815
  */
4816
4816
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4817
4817
  /**
4818
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4819
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4820
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4821
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4822
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4823
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4824
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4825
+ * topology change, so a dropped event self-heals on the next one (plus the
4826
+ * broker's long backstop reconcile query).
4827
+ */
4828
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4829
+ /**
4818
4830
  * Periodic snapshot of per-node pipeline-runner load
4819
4831
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4820
4832
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5338,10 +5350,6 @@ function hydrateField(field, values) {
5338
5350
  };
5339
5351
  }
5340
5352
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5341
- if (field.type === "password") return {
5342
- ...field,
5343
- value: ""
5344
- };
5345
5353
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5346
5354
  return {
5347
5355
  ...field,
@@ -6736,6 +6744,21 @@ function method(input, output, options) {
6736
6744
  timeoutMs: options?.timeoutMs
6737
6745
  };
6738
6746
  }
6747
+ /**
6748
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6749
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6750
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6751
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6752
+ */
6753
+ function systemMethod(input, output, options) {
6754
+ return {
6755
+ ...method(input, output, options),
6756
+ systemOnly: true
6757
+ };
6758
+ }
6759
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6760
+ var VersionOutputSchema$1 = object({ version: string() });
6761
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6739
6762
  var StaticDirOutputSchema = object({ staticDir: string() });
6740
6763
  var VersionOutputSchema = object({ version: string() });
6741
6764
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6917,6 +6940,36 @@ var ModelFormatsSchema = object({
6917
6940
  tflite: ModelFormatEntrySchema.optional(),
6918
6941
  pt: ModelFormatEntrySchema.optional()
6919
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
+ });
6920
6973
  var ModelCatalogEntrySchema = object({
6921
6974
  id: string(),
6922
6975
  name: string(),
@@ -6946,7 +6999,43 @@ var ModelCatalogEntrySchema = object({
6946
6999
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6947
7000
  * Downloaded into the same modelsDir alongside the model file.
6948
7001
  */
6949
- 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()
6950
7039
  });
6951
7040
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6952
7041
  format: literal("openvino"),
@@ -7124,8 +7213,8 @@ var RecordingModeSchema = _enum([
7124
7213
  "onAudioThreshold"
7125
7214
  ]);
7126
7215
  /**
7127
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7128
- * reads directly (never inferred from `rules`):
7216
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7217
+ * UI reads directly (never inferred from `rules`):
7129
7218
  * - `off` — not recording.
7130
7219
  * - `events` — record only around triggers (motion / audio threshold),
7131
7220
  * with pre/post-buffer.
@@ -8827,26 +8916,13 @@ DeviceType.Light, method(object({
8827
8916
  percentage: number().min(0).max(100),
8828
8917
  lastChangedAt: number()
8829
8918
  });
8919
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
8830
8920
  var StreamFormatSchema = _enum([
8831
8921
  "webrtc",
8832
8922
  "hls",
8833
8923
  "mjpeg",
8834
8924
  "rtsp"
8835
8925
  ]);
8836
- var StreamInfoSchema = object({
8837
- streamId: string(),
8838
- format: StreamFormatSchema,
8839
- url: string().nullable(),
8840
- active: boolean()
8841
- });
8842
- method(object({
8843
- streamId: string(),
8844
- sourceUrl: string(),
8845
- codec: string().optional()
8846
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
8847
- streamId: string(),
8848
- format: StreamFormatSchema
8849
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
8850
8926
  var RtspRestreamEntrySchema = object({
8851
8927
  brokerId: string(),
8852
8928
  url: string(),
@@ -9511,7 +9587,7 @@ var ConsumablesStatusSchema = object({
9511
9587
  })),
9512
9588
  lastChangedAt: number()
9513
9589
  });
9514
- 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({
9590
+ Object.values(DeviceType), method(object({
9515
9591
  deviceId: number().int().nonnegative(),
9516
9592
  key: string().min(1)
9517
9593
  }), _void(), {
@@ -10426,7 +10502,7 @@ var BoundingBoxSchema = object({
10426
10502
  w: number(),
10427
10503
  h: number()
10428
10504
  });
10429
- var SpatialDetectionSchema = object({
10505
+ object({
10430
10506
  class: string(),
10431
10507
  originalClass: string(),
10432
10508
  score: number(),
@@ -10561,7 +10637,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
10561
10637
  enabled: boolean(),
10562
10638
  modelId: string(),
10563
10639
  children: array(PipelineDefaultStepSchema).readonly(),
10564
- engine: PipelineEngineChoiceSchema.optional(),
10565
10640
  group: string().optional(),
10566
10641
  settings: record(string(), unknown()).optional()
10567
10642
  }));
@@ -10586,7 +10661,9 @@ var PipelineModelOptionSchema = object({
10586
10661
  formats: record(string(), object({
10587
10662
  downloaded: boolean(),
10588
10663
  sizeMB: number()
10589
- }))
10664
+ })),
10665
+ group: ModelVariantGroupSchema.optional(),
10666
+ legacy: boolean().optional()
10590
10667
  });
10591
10668
  var ConfigFieldBridge = custom();
10592
10669
  var PipelineAddonSchemaSchema = object({
@@ -10600,6 +10677,7 @@ var PipelineAddonSchemaSchema = object({
10600
10677
  defaultModelId: string(),
10601
10678
  defaultModelIdByFormat: record(string(), string()).optional(),
10602
10679
  enabledByDefault: boolean().optional(),
10680
+ backfillIntoExistingOverrides: boolean().optional(),
10603
10681
  defaultConfidence: number(),
10604
10682
  group: string().optional(),
10605
10683
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -10616,11 +10694,6 @@ var PipelineSchemaSchema = object({
10616
10694
  selectedEngine: PipelineEngineChoiceSchema,
10617
10695
  slots: array(PipelineSlotSchemaSchema).readonly()
10618
10696
  });
10619
- var DetectorOutputSchema = object({
10620
- detections: array(SpatialDetectionSchema).readonly(),
10621
- inferenceMs: number(),
10622
- modelId: string()
10623
- });
10624
10697
  var EngineProvisioningSchema = object({
10625
10698
  runtimeId: _enum([
10626
10699
  "onnx",
@@ -10637,15 +10710,42 @@ var EngineProvisioningSchema = object({
10637
10710
  ]),
10638
10711
  progress: number().optional(),
10639
10712
  error: string().optional(),
10640
- nextRetryAt: number().optional()
10713
+ nextRetryAt: number().optional(),
10714
+ /**
10715
+ * Gate A (config-correctness gate at engine change): human-readable
10716
+ * config issues surfaced EAGERLY when the node's engine changes — model
10717
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
10718
+ * has a <format> build"). Additive/optional: informational only, never
10719
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
10720
+ * Absent/empty when the node-default tree resolves cleanly.
10721
+ */
10722
+ configIssues: array(string()).optional()
10641
10723
  });
10642
10724
  var PipelineStepInputSchema = lazy(() => object({
10643
10725
  addonId: string(),
10644
- modelId: string(),
10726
+ modelId: string().optional(),
10645
10727
  enabled: boolean().default(true),
10646
10728
  children: array(PipelineStepInputSchema).optional(),
10647
10729
  settings: record(string(), unknown()).optional()
10648
10730
  }));
10731
+ var ModelSubstitutionSchema = object({
10732
+ addonId: string(),
10733
+ chosen: string(),
10734
+ running: string(),
10735
+ format: string()
10736
+ });
10737
+ var PipelineValidationIssueSchema = object({
10738
+ addonId: string(),
10739
+ kind: _enum(["unknown-addon", "no-format-build"]),
10740
+ detail: string()
10741
+ });
10742
+ var PipelineValidationResultSchema = object({
10743
+ ok: boolean(),
10744
+ issues: array(PipelineValidationIssueSchema).readonly(),
10745
+ substitutions: array(ModelSubstitutionSchema).readonly(),
10746
+ /** The node's `currentEngine.format` this validation ran against. */
10747
+ format: string()
10748
+ });
10649
10749
  var ReferenceImageEntrySchema = object({
10650
10750
  filename: string(),
10651
10751
  stepIds: array(string()).readonly().optional()
@@ -10716,7 +10816,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10716
10816
  })) }), object({ success: literal(true) }), {
10717
10817
  kind: "mutation",
10718
10818
  auth: "admin"
10719
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
10819
+ }), method(object({ nodeId: string() }), object({
10820
+ success: literal(true),
10821
+ clearedDevices: number()
10822
+ }), {
10823
+ kind: "mutation",
10824
+ auth: "admin"
10825
+ }), 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({
10720
10826
  name: string(),
10721
10827
  steps: array(PipelineTemplateStepSchema).readonly(),
10722
10828
  engine: PipelineEngineChoiceSchema
@@ -10733,10 +10839,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10733
10839
  modelId: string(),
10734
10840
  format: ModelFormatSchema$1
10735
10841
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
10736
- addonId: string(),
10737
- frame: FrameInputSchema,
10738
- config: record(string(), unknown()).optional()
10739
- }), DetectorOutputSchema), method(object({
10740
10842
  engine: PipelineEngineChoiceSchema.optional(),
10741
10843
  steps: array(PipelineStepInputSchema).min(1),
10742
10844
  frame: FrameInputSchema.optional(),
@@ -10882,6 +10984,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(ZoneSchema).read
10882
10984
  auth: "admin"
10883
10985
  }), object({ zones: array(ZoneSchema).readonly() });
10884
10986
  /**
10987
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
10988
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
10989
+ * so the caller supplies only the detection-res bbox divided by the detection
10990
+ * dims — no native resolution to plumb.
10991
+ */
10992
+ var NativeCropBboxSchema = object({
10993
+ x: number(),
10994
+ y: number(),
10995
+ w: number(),
10996
+ h: number()
10997
+ });
10998
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
10999
+ var NativeCropResultSchema = object({
11000
+ /** Packed rgb (24-bit) pixels of the crop. */
11001
+ bytes: _instanceof(Uint8Array),
11002
+ width: number().int().positive(),
11003
+ height: number().int().positive()
11004
+ });
11005
+ /**
10885
11006
  * Per-camera tunable ranges + defaults. Single source of truth used
10886
11007
  * by both the Zod data schema (validation + default fallback) and
10887
11008
  * the device settings UI (slider min/max/step). Touch one place and
@@ -10976,6 +11097,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10976
11097
  kind: literal("remote-restream"),
10977
11098
  /** The camera's source-owner node (slice 1: always the hub). */
10978
11099
  ownerNodeId: string(),
11100
+ /**
11101
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
11102
+ * per-node `reachableHost` override (Cluster UI). When present the runner
11103
+ * dials THIS host for the owner's restream, in preference to the
11104
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
11105
+ */
11106
+ ownerReachableHost: string().optional(),
10979
11107
  /** Operator override for the owner host the runner dials. */
10980
11108
  hubHostnameOverride: string().optional()
10981
11109
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -10984,13 +11112,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
10984
11112
  * specific runner instance via `attachCamera`. Carries everything the
10985
11113
  * runner needs to subscribe to the local broker and execute inference.
10986
11114
  *
10987
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
10988
- * optional `audio`) travels with the attach payload. The runner keeps it
10989
- * in RAM for the lifetime of the attach — on rebalance, edit, or
10990
- * restart the orchestrator re-sends the latest snapshot.
10991
- *
10992
- * `engine`/`steps`/`audio` are optional during the additive migration
10993
- * window; once orchestrator + UI are migrated they become required.
11115
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
11116
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
11117
+ * for the lifetime of the attach — on rebalance, edit, or restart the
11118
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
11119
+ * node-local, resolved by the executing runner at dispatch time.
10994
11120
  */
10995
11121
  var RunnerCameraConfigSchema = object({
10996
11122
  deviceId: number(),
@@ -11041,14 +11167,11 @@ var RunnerCameraConfigSchema = object({
11041
11167
  */
11042
11168
  motionSources: MotionSourcesSchema.default(["analyzer"]),
11043
11169
  pipelineEnabled: boolean().default(true),
11044
- /** Engine choice for video steps (runtime+backend+format). */
11045
- engine: PipelineEngineChoiceSchema.optional(),
11046
11170
  /** Ordered tree of video steps. Absent → runner skips video detection. */
11047
11171
  steps: array(PipelineStepInputSchema).readonly().optional(),
11048
11172
  /** Audio classification branch. `enabled:false` disables, null skips. */
11049
11173
  audio: object({
11050
- engine: PipelineEngineChoiceSchema,
11051
- modelId: string(),
11174
+ modelId: string().optional(),
11052
11175
  enabled: boolean()
11053
11176
  }).nullable().optional(),
11054
11177
  /**
@@ -11135,7 +11258,11 @@ var RunnerLocalMetricsSchema = object({
11135
11258
  avgInferenceTimeMs: number(),
11136
11259
  queueDepth: number()
11137
11260
  });
11138
- 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());
11261
+ 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({
11262
+ handle: FrameHandleSchema,
11263
+ bbox: NativeCropBboxSchema,
11264
+ maxWidth: number().int().positive().optional()
11265
+ }), NativeCropResultSchema.nullable());
11139
11266
  object({
11140
11267
  detected: boolean(),
11141
11268
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -12429,7 +12556,9 @@ var AddonPageDeclarationSchema$1 = object({
12429
12556
  icon: string(),
12430
12557
  path: string(),
12431
12558
  remoteName: string(),
12432
- bundle: string()
12559
+ bundle: string(),
12560
+ section: string().optional(),
12561
+ sectionLabel: string().optional()
12433
12562
  });
12434
12563
  var AddonPageInfoSchema = object({
12435
12564
  addonId: string(),
@@ -12469,7 +12598,18 @@ var AddonPageDeclarationSchema = object({
12469
12598
  * the static-file route can compute an mtime-based cache-buster URL
12470
12599
  * without a separate filesystem stat.
12471
12600
  */
12472
- bundle: string()
12601
+ bundle: string(),
12602
+ /**
12603
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
12604
+ * `'cluster'`, `'administration'` — the page renders inside that group.
12605
+ * Any OTHER string creates (or joins) a custom section rendered after
12606
+ * the built-in groups; its label comes from `sectionLabel` (first
12607
+ * declaration wins), falling back to the id. Absent → the legacy
12608
+ * "Addon Pages" group.
12609
+ */
12610
+ section: string().optional(),
12611
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
12612
+ sectionLabel: string().optional()
12473
12613
  });
12474
12614
  method(_void(), array(AddonPageDeclarationSchema).readonly());
12475
12615
  var AddonHttpRouteSchema = object({
@@ -12704,6 +12844,17 @@ var WidgetMetadataSchema = object({
12704
12844
  deviceContext: boolean().default(false),
12705
12845
  integrationContext: boolean().default(false)
12706
12846
  }),
12847
+ /**
12848
+ * Loadable BEFORE authentication. The normal widget registry listing
12849
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
12850
+ * (the login page) cannot discover a widget through it. A widget that
12851
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
12852
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
12853
+ * login-method contribution channel (see `login-method.cap.ts`) rather
12854
+ * than the authenticated registry, and its bundle is served by the
12855
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
12856
+ */
12857
+ preAuth: boolean().optional().default(false),
12707
12858
  /** Dashboard placement HINTS (operator can override per instance). */
12708
12859
  defaultSize: WidgetSizeEnum.default("md"),
12709
12860
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -13005,6 +13156,66 @@ method(object({
13005
13156
  password: string()
13006
13157
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
13007
13158
  /**
13159
+ * `login-method` — collection cap through which auth addons contribute
13160
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
13161
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
13162
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
13163
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
13164
+ * procedure aggregates them for the unauthenticated login page.
13165
+ *
13166
+ * A contribution is a discriminated union on `kind`:
13167
+ *
13168
+ * - `redirect` — a declarative button. The login page renders a generic
13169
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
13170
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
13171
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
13172
+ * login page needs NO change.
13173
+ *
13174
+ * - `widget` — a Module-Federation widget the login page mounts (via
13175
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
13176
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
13177
+ * addon bundle. The referenced widget also declares `preAuth: true` in
13178
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
13179
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
13180
+ *
13181
+ * Every contribution carries a `stage`:
13182
+ * - `primary` — shown on the first credentials screen (OIDC /
13183
+ * magic-link buttons; a future usernameless passkey).
13184
+ * - `second-factor` — shown AFTER the password leg, gated on the
13185
+ * returned `factors` (passkey-as-2FA today).
13186
+ *
13187
+ * `mount: skip` — the cap is read server-side by the core auth router
13188
+ * (`registry.getCollection('login-method')`), never mounted as its own
13189
+ * tRPC router.
13190
+ */
13191
+ /** When a login method renders in the two-phase login flow. */
13192
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
13193
+ /** One login-method contribution — redirect button OR pre-auth widget. */
13194
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
13195
+ kind: literal("redirect"),
13196
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
13197
+ id: string(),
13198
+ /** Operator-facing button label. */
13199
+ label: string(),
13200
+ /** lucide-react icon name. */
13201
+ icon: string().optional(),
13202
+ /** Addon-owned HTTP route the button navigates to (GET). */
13203
+ startUrl: string(),
13204
+ stage: LoginStageEnum
13205
+ }), object({
13206
+ kind: literal("widget"),
13207
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
13208
+ id: string(),
13209
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
13210
+ addonId: string(),
13211
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
13212
+ bundle: string(),
13213
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
13214
+ remote: WidgetRemoteSchema,
13215
+ stage: LoginStageEnum
13216
+ })]);
13217
+ method(_void(), array(LoginMethodContributionSchema).readonly());
13218
+ /**
13008
13219
  * Orchestrator-side destination metadata. The orchestrator computes
13009
13220
  * `id = <addonId>:<subId>` from its provider lookup so consumers
13010
13221
  * (admin UI, restore flow) see one canonical key.
@@ -15160,7 +15371,17 @@ var TrackSchema = object({
15160
15371
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
15161
15372
  totalDistance: number(),
15162
15373
  state: TrackStateSchema,
15163
- active: boolean()
15374
+ active: boolean(),
15375
+ /** Deterministic key-event importance score in [0,1] (server-computed at
15376
+ * track expiry, recomputed on late label). Absent on legacy rows written
15377
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
15378
+ importance: number().optional(),
15379
+ /** Id of the track's highest-confidence ObjectEvent (its representative
15380
+ * "best" frame). Absent when the track produced no object events. */
15381
+ bestEventId: string().optional(),
15382
+ /** Tag of the importance sub-signal that dominated the score
15383
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
15384
+ importanceReason: string().optional()
15164
15385
  });
15165
15386
  var BaseEventFields = {
15166
15387
  id: string(),
@@ -15225,8 +15446,18 @@ var ObjectEventSchema = object({
15225
15446
  frameHeight: number().optional(),
15226
15447
  /** MediaStore key for the crop attached to this event (if any). */
15227
15448
  mediaKey: string().optional(),
15449
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
15450
+ * best-detection full frame). Resolve via the event-media data-plane
15451
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
15452
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
15453
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
15454
+ keyFrameMediaKey: string().optional(),
15228
15455
  /** Populated by B5 (recording playback URL for this event). */
15229
- mediaUrl: string().optional()
15456
+ mediaUrl: string().optional(),
15457
+ /** The parent track's key-event importance [0,1], propagated to every object
15458
+ * event of the track (so an event row can be sorted by importance without a
15459
+ * track join). Absent on legacy rows / before the track was scored. */
15460
+ importance: number().optional()
15230
15461
  });
15231
15462
  var AudioEventSchema = object({
15232
15463
  ...BaseEventFields,
@@ -15250,7 +15481,8 @@ var MediaFileKindEnum = _enum([
15250
15481
  "fullFrame",
15251
15482
  "fullFrameBoxed",
15252
15483
  "faceCrop",
15253
- "plateCrop"
15484
+ "plateCrop",
15485
+ "keyFrame"
15254
15486
  ]);
15255
15487
  var MediaFileSchema = object({
15256
15488
  key: string(),
@@ -15271,6 +15503,32 @@ var DeviceEventQueryInput = object({
15271
15503
  projection: _enum(["full", "slim"]).optional()
15272
15504
  });
15273
15505
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
15506
+ var KeyEventQueryInput = object({
15507
+ deviceId: number(),
15508
+ /** Window lower bound (track firstSeen ≥ since). */
15509
+ since: number(),
15510
+ /** Window upper bound (track firstSeen ≤ until). */
15511
+ until: number(),
15512
+ limit: number().int().min(1).max(200).default(50),
15513
+ /** Drop tracks scoring below this importance. */
15514
+ minImportance: number().min(0).max(1).optional(),
15515
+ /** Restrict to a single class (e.g. 'person'). */
15516
+ classFilter: string().optional()
15517
+ });
15518
+ var KeyEventSchema = object({
15519
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
15520
+ id: string(),
15521
+ trackId: string(),
15522
+ /** Track start time (firstSeen). */
15523
+ timestamp: number(),
15524
+ className: string(),
15525
+ label: string().optional(),
15526
+ importance: number(),
15527
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
15528
+ bestEventId: string(),
15529
+ /** Track lifetime in ms (lastSeen - firstSeen). */
15530
+ windowMs: number().optional()
15531
+ });
15274
15532
  var TrackedDetectionSchema = object({
15275
15533
  trackId: string(),
15276
15534
  className: string(),
@@ -15300,7 +15558,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15300
15558
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
15301
15559
  kind: "mutation",
15302
15560
  auth: "admin"
15303
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
15561
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
15304
15562
  deviceId: number(),
15305
15563
  since: number(),
15306
15564
  until: number(),
@@ -15345,11 +15603,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
15345
15603
  timestamp: number()
15346
15604
  });
15347
15605
  var CameraPipelineConfigSchema = object({
15348
- engine: PipelineEngineChoiceSchema,
15606
+ engine: PipelineEngineChoiceSchema.optional(),
15349
15607
  steps: array(PipelineStepInputSchema).readonly(),
15350
15608
  audio: object({
15351
- engine: PipelineEngineChoiceSchema,
15352
- modelId: string(),
15609
+ engine: PipelineEngineChoiceSchema.optional(),
15610
+ modelId: string().optional(),
15353
15611
  enabled: boolean(),
15354
15612
  settings: record(string(), unknown()).readonly().optional()
15355
15613
  }).nullable().optional()
@@ -15364,7 +15622,7 @@ var PipelineTemplateSchema = object({
15364
15622
  });
15365
15623
  var AgentAddonConfigSchema = object({
15366
15624
  enabled: boolean(),
15367
- modelId: string(),
15625
+ modelId: string().optional(),
15368
15626
  settings: record(string(), unknown()).readonly()
15369
15627
  });
15370
15628
  var AgentPipelineSettingsSchema = object({
@@ -15374,12 +15632,25 @@ var AgentPipelineSettingsSchema = object({
15374
15632
  detectWeight: number().positive().optional(),
15375
15633
  /** Node is eligible to run the detection pipeline (decode + inference). */
15376
15634
  detect: boolean().optional(),
15377
- /** Node is eligible to host decoder sessions. */
15635
+ /**
15636
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
15637
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
15638
+ * the schema ONLY so persisted stores written before the removal still
15639
+ * parse — no code reads it and no write path emits it.
15640
+ */
15378
15641
  decode: boolean().optional(),
15379
15642
  /** Node is eligible to run audio-analyzer sessions. */
15380
15643
  audio: boolean().optional(),
15381
15644
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
15382
- ingest: boolean().optional()
15645
+ ingest: boolean().optional(),
15646
+ /**
15647
+ * Operator override for the LAN host a cross-node decoder dials to reach
15648
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
15649
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
15650
+ * it already uses to reach the hub). Set this only when the auto-detected
15651
+ * address is wrong (multi-homed host, NAT, custom interface).
15652
+ */
15653
+ reachableHost: string().optional()
15383
15654
  });
15384
15655
  var CameraPipelineForAgentSchema = object({
15385
15656
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15427,25 +15698,6 @@ var PipelineAssignmentSchema = object({
15427
15698
  assignedAt: number()
15428
15699
  });
15429
15700
  /**
15430
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
15431
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
15432
- * → co-located with pipeline → capacity).
15433
- */
15434
- var DecoderAssignmentSchema = object({
15435
- deviceId: number(),
15436
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
15437
- decoderNodeId: string(),
15438
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
15439
- pinned: boolean(),
15440
- /** Why this assignment was made — useful for debugging the decoder balancer. */
15441
- reason: _enum([
15442
- "manual",
15443
- "co-located",
15444
- "capacity",
15445
- "hardware-affinity"
15446
- ])
15447
- });
15448
- /**
15449
15701
  * Per-agent load summary surfaced to the load balancer + dashboards.
15450
15702
  * Aggregated from each runner's `getLocalLoad` cap call.
15451
15703
  */
@@ -15485,6 +15737,15 @@ var GlobalMetricsSchema = object({
15485
15737
  * capability providers.
15486
15738
  */
15487
15739
  var CapabilityBindingsSchema = record(string(), string());
15740
+ /**
15741
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
15742
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
15743
+ */
15744
+ var IngestOwnerSchema = object({
15745
+ ownerNodeId: string(),
15746
+ reachableHost: string().optional(),
15747
+ configIssue: string().optional()
15748
+ });
15488
15749
  /** Source block — always present; derives from the stream catalog. */
15489
15750
  var CameraSourceStatusSchema = object({ streams: array(object({
15490
15751
  camStreamId: string(),
@@ -15499,6 +15760,14 @@ var CameraAssignmentStatusSchema = object({
15499
15760
  detectionNodeId: string().nullable(),
15500
15761
  decoderNodeId: string().nullable(),
15501
15762
  audioNodeId: string().nullable(),
15763
+ /**
15764
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
15765
+ * hosts the broker/restream) — the cluster ingest owner today
15766
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
15767
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
15768
+ * broker block below was read from (pinned). Nullable only pre-wiring.
15769
+ */
15770
+ sourceNodeId: string().nullable(),
15502
15771
  pinned: object({
15503
15772
  detection: boolean(),
15504
15773
  decoder: boolean(),
@@ -15631,16 +15900,7 @@ method(object({
15631
15900
  }), object({ success: literal(true) }), {
15632
15901
  kind: "mutation",
15633
15902
  auth: "admin"
15634
- }), method(object({
15635
- deviceId: number(),
15636
- nodeId: string()
15637
- }), _void(), {
15638
- kind: "mutation",
15639
- auth: "admin"
15640
- }), method(object({ deviceId: number() }), _void(), {
15641
- kind: "mutation",
15642
- auth: "admin"
15643
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
15903
+ }), method(_void(), IngestOwnerSchema), method(object({
15644
15904
  deviceId: number(),
15645
15905
  nodeId: string()
15646
15906
  }), object({ success: literal(true) }), {
@@ -15661,10 +15921,7 @@ method(object({
15661
15921
  nodeId: string(),
15662
15922
  pinned: boolean(),
15663
15923
  assignedAt: number()
15664
- }))), method(object({
15665
- deviceId: number(),
15666
- pipelineNodeId: string().optional()
15667
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15924
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
15668
15925
  nodeId: string(),
15669
15926
  settings: AgentPipelineSettingsSchema
15670
15927
  })).readonly()), method(object({
@@ -15694,12 +15951,26 @@ method(object({
15694
15951
  }), method(object({
15695
15952
  agentNodeId: string(),
15696
15953
  detect: boolean().nullable().optional(),
15697
- decode: boolean().nullable().optional(),
15698
15954
  audio: boolean().nullable().optional(),
15699
15955
  ingest: boolean().nullable().optional()
15700
15956
  }), object({ success: literal(true) }), {
15701
15957
  kind: "mutation",
15702
15958
  auth: "admin"
15959
+ }), method(object({
15960
+ agentNodeId: string(),
15961
+ reachableHost: string().nullable()
15962
+ }), object({ success: literal(true) }), {
15963
+ kind: "mutation",
15964
+ auth: "admin"
15965
+ }), method(object({ agentNodeId: string() }), object({
15966
+ success: literal(true),
15967
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
15968
+ effectiveModelId: string().nullable(),
15969
+ /** Number of cameras whose node-scoped overrides were cleared. */
15970
+ clearedCameraOverrides: number()
15971
+ }), {
15972
+ kind: "mutation",
15973
+ auth: "admin"
15703
15974
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15704
15975
  deviceId: number(),
15705
15976
  addonId: string(),
@@ -15744,22 +16015,131 @@ method(object({
15744
16015
  kind: "mutation",
15745
16016
  auth: "admin"
15746
16017
  });
15747
- var RegisteredStreamSchema = object({
15748
- streamId: string(),
15749
- label: string().optional(),
15750
- codec: string(),
15751
- type: _enum(["video", "audio"]),
15752
- sourceUrl: string()
16018
+ /**
16019
+ * server-management — per-NODE singleton capability for a node's ROOT
16020
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
16021
+ * agents).
16022
+ *
16023
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
16024
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
16025
+ * version describes the node. Updates install into
16026
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
16027
+ * starter (probation boot + auto-rollback to N-1).
16028
+ *
16029
+ * Providers:
16030
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
16031
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
16032
+ * unpinned calls.
16033
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
16034
+ * the synthetic `agent-runtime` addonId and declared in the agent's
16035
+ * `$hub.registerNode` manifest.
16036
+ *
16037
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
16038
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
16039
+ * SDK) routes the call to that node's provider via the standard remote
16040
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
16041
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
16042
+ *
16043
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
16044
+ */
16045
+ /**
16046
+ * Where the running hub's code was loaded from:
16047
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
16048
+ * plain resolution and runtime updates are refused.
16049
+ * - `baked` — the immutable image seed closure (no data-dir root active).
16050
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
16051
+ */
16052
+ var ServerBootModeSchema = _enum([
16053
+ "workspace",
16054
+ "baked",
16055
+ "data-root"
16056
+ ]);
16057
+ /**
16058
+ * Update lifecycle state:
16059
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
16060
+ * - `pending-restart` — a version is staged and the node has NOT yet
16061
+ * restarted onto it (still running the OLD version).
16062
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
16063
+ * (it is the active probation boot) and is waiting to confirm boot-health.
16064
+ * Apply/rollback are refused in this state and the node must NOT be
16065
+ * manually restarted, or the probation boot auto-rolls-back.
16066
+ */
16067
+ var ServerUpdateStateSchema = _enum([
16068
+ "idle",
16069
+ "checking",
16070
+ "staging",
16071
+ "pending-restart",
16072
+ "awaiting-confirmation"
16073
+ ]);
16074
+ var ServerRollbackInfoSchema = object({
16075
+ /** The version that failed (or was manually rolled back). */
16076
+ fromVersion: string(),
16077
+ /** The version rolled back to; null = the baked seed. */
16078
+ toVersion: string().nullable(),
16079
+ atMs: number(),
16080
+ reason: string()
15753
16081
  });
15754
- var ExposedResourceSchema = object({
15755
- streamId: string(),
15756
- format: string(),
15757
- value: string()
16082
+ var ServerPackageStatusSchema = object({
16083
+ /** Root package name (`@camstack/server` on the hub). */
16084
+ packageName: string(),
16085
+ /** Version of the code the running process ACTUALLY loaded. */
16086
+ runningVersion: string().nullable(),
16087
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
16088
+ nodeRuntimeVersion: string().nullable(),
16089
+ /** Active data-dir root version; null when booted from seed/workspace. */
16090
+ activeVersion: string().nullable(),
16091
+ /** N-1 version kept for rollback; null when no previous version exists. */
16092
+ previousVersion: string().nullable(),
16093
+ /** Version of the immutable baked seed closure (image fallback). */
16094
+ seedVersion: string().nullable(),
16095
+ /** Latest registry version from the most recent check (null = never checked). */
16096
+ latestVersion: string().nullable(),
16097
+ updateAvailable: boolean(),
16098
+ bootMode: ServerBootModeSchema,
16099
+ updateState: ServerUpdateStateSchema,
16100
+ /** Version staged + awaiting its probation boot, when one is pending. */
16101
+ pendingVersion: string().nullable(),
16102
+ /** Set when the last freshly-activated version failed its boot health-check. */
16103
+ rolledBack: ServerRollbackInfoSchema.nullable(),
16104
+ /**
16105
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
16106
+ * hub is running from the baked seed (or workspace) while installed data-dir
16107
+ * versions are being IGNORED. Surfaced as a warning in the UI.
16108
+ */
16109
+ stateFileCorrupt: boolean(),
16110
+ lastCheckedAtMs: number().nullable()
16111
+ });
16112
+ var ServerUpdateCheckResultSchema = object({
16113
+ packageName: string(),
16114
+ runningVersion: string().nullable(),
16115
+ latestVersion: string().nullable(),
16116
+ updateAvailable: boolean(),
16117
+ checkedAtMs: number(),
16118
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
16119
+ error: string().nullable()
16120
+ });
16121
+ var ServerUpdateActionResultSchema = object({
16122
+ accepted: boolean(),
16123
+ targetVersion: string().nullable(),
16124
+ /** True when a graceful restart was scheduled to apply the change. */
16125
+ restarting: boolean(),
16126
+ message: string()
16127
+ });
16128
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
16129
+ kind: "mutation",
16130
+ auth: "admin"
16131
+ }), method(object({
16132
+ /** Explicit target version; omitted = latest from the registry. */
16133
+ version: string().optional() }), ServerUpdateActionResultSchema, {
16134
+ kind: "mutation",
16135
+ auth: "admin"
16136
+ }), method(_void(), ServerUpdateActionResultSchema, {
16137
+ kind: "mutation",
16138
+ auth: "admin"
16139
+ }), method(_void(), ServerUpdateActionResultSchema, {
16140
+ kind: "mutation",
16141
+ auth: "admin"
15758
16142
  });
15759
- method(object({
15760
- deviceId: number(),
15761
- streams: array(RegisteredStreamSchema).readonly()
15762
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
15763
16143
  /**
15764
16144
  * Query filter for settings-store collections.
15765
16145
  */
@@ -15912,9 +16292,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
15912
16292
  /**
15913
16293
  * A single device snapshot returned as base64 JPEG/PNG.
15914
16294
  *
15915
- * Shared with the `snapshot-provider` collection cap the orchestrator
15916
- * receives the same shape from each native provider and from the
15917
- * broker-based fallback.
16295
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
16296
+ * the device-native provider (onboard capture) or from the stream-broker
16297
+ * prebuffer fallback.
15918
16298
  */
15919
16299
  var SnapshotImageSchema = object({
15920
16300
  base64: string(),
@@ -15945,11 +16325,12 @@ DeviceType.Camera, method(object({
15945
16325
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
15946
16326
  kind: "mutation",
15947
16327
  auth: "admin"
15948
- });
15949
- method(object({ deviceId: number() }), boolean()), method(object({
16328
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
15950
16329
  deviceId: number(),
15951
- streamId: string().optional()
15952
- }), SnapshotImageSchema.nullable());
16330
+ lastCapturedAt: number().nullable(),
16331
+ cacheAgeMs: number().nullable(),
16332
+ etag: string().nullable()
16333
+ })));
15953
16334
  /**
15954
16335
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
15955
16336
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -16200,10 +16581,32 @@ method(_void(), array(TurnServerSchema).readonly());
16200
16581
  * b. `finishAuthentication({userId, response})` → server verifies
16201
16582
  * the assertion, bumps the credential counter, returns ok.
16202
16583
  *
16584
+ * 2b. Usernameless (discoverable-credential) authentication — the
16585
+ * passkey IS the primary factor, no password leg:
16586
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
16587
+ * EMPTY `allowCredentials` (the browser offers every resident
16588
+ * passkey it holds for this RP) + `userVerification: 'required'`
16589
+ * (the passkey replaces both factors, so UV is mandatory).
16590
+ * The challenge is stored server-side, NOT bound to any user.
16591
+ * b. `finishDiscoverableAuthentication({response})` → the provider
16592
+ * resolves the credential by the response's credential id,
16593
+ * verifies the assertion against the stored challenge + that
16594
+ * credential's public key/counter, and returns the OWNING
16595
+ * `userId` — the caller (core auth router) mints the session.
16596
+ *
16203
16597
  * 3. Management:
16204
16598
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
16205
16599
  * - `removePasskey({userId, credentialId})` — revoke one credential.
16206
16600
  *
16601
+ * 4. Second-factor preference (opt-in, default OFF):
16602
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
16603
+ * demanded as a second factor after a password login ONLY when the
16604
+ * user explicitly opts in via `setSecondFactorPreference`.
16605
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
16606
+ * row ⇒ `enabled: false`).
16607
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
16608
+ * the providing addon beside its credentials.
16609
+ *
16207
16610
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
16208
16611
  * the admin-ui composes the begin/finish round-trip and never exposes
16209
16612
  * the cap to non-admins.
@@ -16246,6 +16649,17 @@ method(object({
16246
16649
  }), object({ verified: boolean() }), {
16247
16650
  kind: "mutation",
16248
16651
  access: "view"
16652
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
16653
+ kind: "mutation",
16654
+ access: "view"
16655
+ }), method(object({
16656
+ /** AuthenticationResponseJSON from the browser. */
16657
+ response: record(string(), unknown()) }), object({
16658
+ verified: boolean(),
16659
+ userId: string().nullable()
16660
+ }), {
16661
+ kind: "mutation",
16662
+ access: "view"
16249
16663
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
16250
16664
  userId: string(),
16251
16665
  credentialId: string()
@@ -16253,6 +16667,13 @@ method(object({
16253
16667
  kind: "mutation",
16254
16668
  auth: "admin",
16255
16669
  access: "delete"
16670
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
16671
+ userId: string(),
16672
+ enabled: boolean()
16673
+ }), object({ success: literal(true) }), {
16674
+ kind: "mutation",
16675
+ auth: "admin",
16676
+ access: "create"
16256
16677
  });
16257
16678
  /**
16258
16679
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -16310,9 +16731,10 @@ method(object({
16310
16731
  auth: "admin"
16311
16732
  });
16312
16733
  /**
16313
- * Optional client-side hints sent at session creation to help the
16314
- * provider pick the best native source. All fields are optional —
16315
- * a viewer that knows nothing still gets a sane default.
16734
+ * Optional client-side hints sent at session creation to help the provider
16735
+ * pick the best native source. All fields optional — a viewer that knows
16736
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
16737
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
16316
16738
  */
16317
16739
  var webrtcClientHintsSchema = object({
16318
16740
  viewportWidth: number().int().positive().optional(),
@@ -16323,22 +16745,6 @@ var webrtcClientHintsSchema = object({
16323
16745
  /** Hard tier override; takes precedence over scoring when registered. */
16324
16746
  prefersTier: string().optional()
16325
16747
  }).partial();
16326
- method(object({
16327
- streamId: string(),
16328
- sdpOffer: string()
16329
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
16330
- streamId: string(),
16331
- codec: string()
16332
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
16333
- streamId: string(),
16334
- hints: webrtcClientHintsSchema.optional()
16335
- }), object({
16336
- sessionId: string(),
16337
- sdpOffer: string()
16338
- }), { kind: "mutation" }), method(object({
16339
- sessionId: string(),
16340
- sdpAnswer: string()
16341
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
16342
16748
  /**
16343
16749
  * Discriminated target for a WebRTC session. The client sends this
16344
16750
  * structured object instead of building / parsing brokerId strings;
@@ -16825,7 +17231,15 @@ var FrameworkPackageStatusSchema = object({
16825
17231
  latestVersion: string().nullable(),
16826
17232
  hasUpdate: boolean(),
16827
17233
  /** Optional manifest description for the row tooltip. */
16828
- description: string().optional()
17234
+ description: string().optional(),
17235
+ /**
17236
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
17237
+ * ACTUALLY loaded. Framework packages ship code changes without always
17238
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
17239
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
17240
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
17241
+ */
17242
+ buildId: string().nullable()
16829
17243
  });
16830
17244
  var LogStreamEntrySchema = object({
16831
17245
  timestamp: string(),
@@ -17061,7 +17475,17 @@ var FaceInfoSchema = object({
17061
17475
  recognizedIdentityId: string().optional(),
17062
17476
  identityName: string().optional(),
17063
17477
  assigned: boolean(),
17064
- base64: string().optional()
17478
+ base64: string().optional(),
17479
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
17480
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
17481
+ * legacy rows written before design B. */
17482
+ faceBbox: BoundingBoxSchema.optional(),
17483
+ /** Design B: MediaStore key of the track's native-resolution key frame.
17484
+ * Fetch the native JPEG via the event-media data-plane
17485
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
17486
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
17487
+ * back to the inline `base64` face crop. */
17488
+ keyFrameMediaKey: string().optional()
17065
17489
  });
17066
17490
  var FaceFilterEnum = _enum([
17067
17491
  "unassigned",
@@ -17758,6 +18182,16 @@ var TopologyCategorySchema = object({
17758
18182
  healthy: number(),
17759
18183
  addons: array(TopologyCategoryAddonSchema).readonly()
17760
18184
  });
18185
+ /**
18186
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
18187
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
18188
+ * version visibility for the Server management surface. Nullable: offline
18189
+ * rows and pre-phase-2 nodes report none.
18190
+ */
18191
+ var TopologyRootPackageSchema = object({
18192
+ name: string(),
18193
+ version: string()
18194
+ });
17761
18195
  var TopologyNodeSchema = object({
17762
18196
  id: string(),
17763
18197
  name: string(),
@@ -17781,7 +18215,8 @@ var TopologyNodeSchema = object({
17781
18215
  status: string()
17782
18216
  })).readonly(),
17783
18217
  processes: array(TopologyProcessSchema).readonly(),
17784
- categories: array(TopologyCategorySchema).readonly()
18218
+ categories: array(TopologyCategorySchema).readonly(),
18219
+ rootPackage: TopologyRootPackageSchema.nullable()
17785
18220
  });
17786
18221
  var CapUsageEdgeSchema = object({
17787
18222
  callerAddonId: string(),
@@ -20581,6 +21016,12 @@ Object.freeze({
20581
21016
  addonId: null,
20582
21017
  access: "create"
20583
21018
  },
21019
+ "loginMethod.getLoginMethods": {
21020
+ capName: "login-method",
21021
+ capScope: "system",
21022
+ addonId: null,
21023
+ access: "view"
21024
+ },
20584
21025
  "mediaPlayer.next": {
20585
21026
  capName: "media-player",
20586
21027
  capScope: "device",
@@ -21163,6 +21604,12 @@ Object.freeze({
21163
21604
  addonId: null,
21164
21605
  access: "view"
21165
21606
  },
21607
+ "pipelineAnalytics.getKeyEvents": {
21608
+ capName: "pipeline-analytics",
21609
+ capScope: "device",
21610
+ addonId: null,
21611
+ access: "view"
21612
+ },
21166
21613
  "pipelineAnalytics.getMotionEvents": {
21167
21614
  capName: "pipeline-analytics",
21168
21615
  capScope: "device",
@@ -21211,23 +21658,23 @@ Object.freeze({
21211
21658
  addonId: null,
21212
21659
  access: "create"
21213
21660
  },
21214
- "pipelineExecutor.deleteModel": {
21661
+ "pipelineExecutor.clearDeviceOverrides": {
21215
21662
  capName: "pipeline-executor",
21216
21663
  capScope: "system",
21217
21664
  addonId: null,
21218
21665
  access: "delete"
21219
21666
  },
21220
- "pipelineExecutor.deleteTemplate": {
21667
+ "pipelineExecutor.deleteModel": {
21221
21668
  capName: "pipeline-executor",
21222
21669
  capScope: "system",
21223
21670
  addonId: null,
21224
21671
  access: "delete"
21225
21672
  },
21226
- "pipelineExecutor.detect": {
21673
+ "pipelineExecutor.deleteTemplate": {
21227
21674
  capName: "pipeline-executor",
21228
21675
  capScope: "system",
21229
21676
  addonId: null,
21230
- access: "view"
21677
+ access: "delete"
21231
21678
  },
21232
21679
  "pipelineExecutor.downloadModel": {
21233
21680
  capName: "pipeline-executor",
@@ -21421,13 +21868,13 @@ Object.freeze({
21421
21868
  addonId: null,
21422
21869
  access: "create"
21423
21870
  },
21424
- "pipelineOrchestrator.assignAudio": {
21425
- capName: "pipeline-orchestrator",
21871
+ "pipelineExecutor.validatePipeline": {
21872
+ capName: "pipeline-executor",
21426
21873
  capScope: "system",
21427
21874
  addonId: null,
21428
- access: "create"
21875
+ access: "view"
21429
21876
  },
21430
- "pipelineOrchestrator.assignDecoder": {
21877
+ "pipelineOrchestrator.assignAudio": {
21431
21878
  capName: "pipeline-orchestrator",
21432
21879
  capScope: "system",
21433
21880
  addonId: null,
@@ -21511,19 +21958,13 @@ Object.freeze({
21511
21958
  addonId: null,
21512
21959
  access: "view"
21513
21960
  },
21514
- "pipelineOrchestrator.getDecoderAssignment": {
21515
- capName: "pipeline-orchestrator",
21516
- capScope: "system",
21517
- addonId: null,
21518
- access: "view"
21519
- },
21520
- "pipelineOrchestrator.getDecoderAssignments": {
21961
+ "pipelineOrchestrator.getGlobalMetrics": {
21521
21962
  capName: "pipeline-orchestrator",
21522
21963
  capScope: "system",
21523
21964
  addonId: null,
21524
21965
  access: "view"
21525
21966
  },
21526
- "pipelineOrchestrator.getGlobalMetrics": {
21967
+ "pipelineOrchestrator.getIngestOwner": {
21527
21968
  capName: "pipeline-orchestrator",
21528
21969
  capScope: "system",
21529
21970
  addonId: null,
@@ -21565,6 +22006,12 @@ Object.freeze({
21565
22006
  addonId: null,
21566
22007
  access: "delete"
21567
22008
  },
22009
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
22010
+ capName: "pipeline-orchestrator",
22011
+ capScope: "system",
22012
+ addonId: null,
22013
+ access: "delete"
22014
+ },
21568
22015
  "pipelineOrchestrator.resolvePipeline": {
21569
22016
  capName: "pipeline-orchestrator",
21570
22017
  capScope: "system",
@@ -21601,37 +22048,37 @@ Object.freeze({
21601
22048
  addonId: null,
21602
22049
  access: "create"
21603
22050
  },
21604
- "pipelineOrchestrator.setCameraPipelineForAgent": {
22051
+ "pipelineOrchestrator.setAgentReachableHost": {
21605
22052
  capName: "pipeline-orchestrator",
21606
22053
  capScope: "system",
21607
22054
  addonId: null,
21608
22055
  access: "create"
21609
22056
  },
21610
- "pipelineOrchestrator.setCameraStepOverride": {
22057
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
21611
22058
  capName: "pipeline-orchestrator",
21612
22059
  capScope: "system",
21613
22060
  addonId: null,
21614
22061
  access: "create"
21615
22062
  },
21616
- "pipelineOrchestrator.setCameraStepToggle": {
22063
+ "pipelineOrchestrator.setCameraStepOverride": {
21617
22064
  capName: "pipeline-orchestrator",
21618
22065
  capScope: "system",
21619
22066
  addonId: null,
21620
22067
  access: "create"
21621
22068
  },
21622
- "pipelineOrchestrator.setCapabilityBinding": {
22069
+ "pipelineOrchestrator.setCameraStepToggle": {
21623
22070
  capName: "pipeline-orchestrator",
21624
22071
  capScope: "system",
21625
22072
  addonId: null,
21626
22073
  access: "create"
21627
22074
  },
21628
- "pipelineOrchestrator.unassignAudio": {
22075
+ "pipelineOrchestrator.setCapabilityBinding": {
21629
22076
  capName: "pipeline-orchestrator",
21630
22077
  capScope: "system",
21631
22078
  addonId: null,
21632
22079
  access: "create"
21633
22080
  },
21634
- "pipelineOrchestrator.unassignDecoder": {
22081
+ "pipelineOrchestrator.unassignAudio": {
21635
22082
  capName: "pipeline-orchestrator",
21636
22083
  capScope: "system",
21637
22084
  addonId: null,
@@ -21691,6 +22138,12 @@ Object.freeze({
21691
22138
  addonId: null,
21692
22139
  access: "view"
21693
22140
  },
22141
+ "pipelineRunner.getNativeCrop": {
22142
+ capName: "pipeline-runner",
22143
+ capScope: "system",
22144
+ addonId: null,
22145
+ access: "view"
22146
+ },
21694
22147
  "pipelineRunner.reportMotion": {
21695
22148
  capName: "pipeline-runner",
21696
22149
  capScope: "system",
@@ -21931,33 +22384,45 @@ Object.freeze({
21931
22384
  addonId: null,
21932
22385
  access: "create"
21933
22386
  },
21934
- "restreamer.getExposedResources": {
21935
- capName: "restreamer",
22387
+ "scriptRunner.run": {
22388
+ capName: "script-runner",
22389
+ capScope: "device",
22390
+ addonId: null,
22391
+ access: "create"
22392
+ },
22393
+ "scriptRunner.stop": {
22394
+ capName: "script-runner",
22395
+ capScope: "device",
22396
+ addonId: null,
22397
+ access: "create"
22398
+ },
22399
+ "serverManagement.applyServerUpdate": {
22400
+ capName: "server-management",
21936
22401
  capScope: "system",
21937
22402
  addonId: null,
21938
- access: "view"
22403
+ access: "create"
21939
22404
  },
21940
- "restreamer.registerDevice": {
21941
- capName: "restreamer",
22405
+ "serverManagement.checkServerUpdate": {
22406
+ capName: "server-management",
21942
22407
  capScope: "system",
21943
22408
  addonId: null,
21944
22409
  access: "create"
21945
22410
  },
21946
- "restreamer.unregisterDevice": {
21947
- capName: "restreamer",
22411
+ "serverManagement.getServerPackageStatus": {
22412
+ capName: "server-management",
21948
22413
  capScope: "system",
21949
22414
  addonId: null,
21950
- access: "delete"
22415
+ access: "view"
21951
22416
  },
21952
- "scriptRunner.run": {
21953
- capName: "script-runner",
21954
- capScope: "device",
22417
+ "serverManagement.restartServer": {
22418
+ capName: "server-management",
22419
+ capScope: "system",
21955
22420
  addonId: null,
21956
22421
  access: "create"
21957
22422
  },
21958
- "scriptRunner.stop": {
21959
- capName: "script-runner",
21960
- capScope: "device",
22423
+ "serverManagement.rollbackServerUpdate": {
22424
+ capName: "server-management",
22425
+ capScope: "system",
21961
22426
  addonId: null,
21962
22427
  access: "create"
21963
22428
  },
@@ -22045,23 +22510,17 @@ Object.freeze({
22045
22510
  addonId: null,
22046
22511
  access: "view"
22047
22512
  },
22048
- "snapshot.invalidateCache": {
22513
+ "snapshot.getSnapshotOverview": {
22049
22514
  capName: "snapshot",
22050
22515
  capScope: "device",
22051
22516
  addonId: null,
22052
- access: "create"
22053
- },
22054
- "snapshotProvider.getSnapshot": {
22055
- capName: "snapshot-provider",
22056
- capScope: "system",
22057
- addonId: null,
22058
22517
  access: "view"
22059
22518
  },
22060
- "snapshotProvider.supportsDevice": {
22061
- capName: "snapshot-provider",
22062
- capScope: "system",
22519
+ "snapshot.invalidateCache": {
22520
+ capName: "snapshot",
22521
+ capScope: "device",
22063
22522
  addonId: null,
22064
- access: "view"
22523
+ access: "create"
22065
22524
  },
22066
22525
  "ssoBridge.signBridgeToken": {
22067
22526
  capName: "sso-bridge",
@@ -22489,30 +22948,6 @@ Object.freeze({
22489
22948
  addonId: null,
22490
22949
  access: "view"
22491
22950
  },
22492
- "streamingEngine.getStreamUrl": {
22493
- capName: "streaming-engine",
22494
- capScope: "system",
22495
- addonId: null,
22496
- access: "view"
22497
- },
22498
- "streamingEngine.listStreams": {
22499
- capName: "streaming-engine",
22500
- capScope: "system",
22501
- addonId: null,
22502
- access: "view"
22503
- },
22504
- "streamingEngine.registerStream": {
22505
- capName: "streaming-engine",
22506
- capScope: "system",
22507
- addonId: null,
22508
- access: "create"
22509
- },
22510
- "streamingEngine.unregisterStream": {
22511
- capName: "streaming-engine",
22512
- capScope: "system",
22513
- addonId: null,
22514
- access: "delete"
22515
- },
22516
22951
  "streamParams.getConfigSchema": {
22517
22952
  capName: "stream-params",
22518
22953
  capScope: "device",
@@ -22759,6 +23194,12 @@ Object.freeze({
22759
23194
  addonId: null,
22760
23195
  access: "view"
22761
23196
  },
23197
+ "userPasskeys.beginDiscoverableAuthentication": {
23198
+ capName: "user-passkeys",
23199
+ capScope: "system",
23200
+ addonId: null,
23201
+ access: "view"
23202
+ },
22762
23203
  "userPasskeys.beginRegistration": {
22763
23204
  capName: "user-passkeys",
22764
23205
  capScope: "system",
@@ -22771,12 +23212,24 @@ Object.freeze({
22771
23212
  addonId: null,
22772
23213
  access: "view"
22773
23214
  },
23215
+ "userPasskeys.finishDiscoverableAuthentication": {
23216
+ capName: "user-passkeys",
23217
+ capScope: "system",
23218
+ addonId: null,
23219
+ access: "view"
23220
+ },
22774
23221
  "userPasskeys.finishRegistration": {
22775
23222
  capName: "user-passkeys",
22776
23223
  capScope: "system",
22777
23224
  addonId: null,
22778
23225
  access: "create"
22779
23226
  },
23227
+ "userPasskeys.getSecondFactorPreference": {
23228
+ capName: "user-passkeys",
23229
+ capScope: "system",
23230
+ addonId: null,
23231
+ access: "view"
23232
+ },
22780
23233
  "userPasskeys.listPasskeys": {
22781
23234
  capName: "user-passkeys",
22782
23235
  capScope: "system",
@@ -22789,6 +23242,12 @@ Object.freeze({
22789
23242
  addonId: null,
22790
23243
  access: "delete"
22791
23244
  },
23245
+ "userPasskeys.setSecondFactorPreference": {
23246
+ capName: "user-passkeys",
23247
+ capScope: "system",
23248
+ addonId: null,
23249
+ access: "create"
23250
+ },
22792
23251
  "vacuumControl.locate": {
22793
23252
  capName: "vacuum-control",
22794
23253
  capScope: "device",
@@ -22861,6 +23320,18 @@ Object.freeze({
22861
23320
  addonId: null,
22862
23321
  access: "view"
22863
23322
  },
23323
+ "viewerUi.getStaticDir": {
23324
+ capName: "viewer-ui",
23325
+ capScope: "system",
23326
+ addonId: null,
23327
+ access: "view"
23328
+ },
23329
+ "viewerUi.getVersion": {
23330
+ capName: "viewer-ui",
23331
+ capScope: "system",
23332
+ addonId: null,
23333
+ access: "view"
23334
+ },
22864
23335
  "waterHeater.setAway": {
22865
23336
  capName: "water-heater",
22866
23337
  capScope: "device",
@@ -22879,54 +23350,6 @@ Object.freeze({
22879
23350
  addonId: null,
22880
23351
  access: "create"
22881
23352
  },
22882
- "webrtc.closeSession": {
22883
- capName: "webrtc",
22884
- capScope: "system",
22885
- addonId: null,
22886
- access: "create"
22887
- },
22888
- "webrtc.createSession": {
22889
- capName: "webrtc",
22890
- capScope: "system",
22891
- addonId: null,
22892
- access: "create"
22893
- },
22894
- "webrtc.handleAnswer": {
22895
- capName: "webrtc",
22896
- capScope: "system",
22897
- addonId: null,
22898
- access: "create"
22899
- },
22900
- "webrtc.handleOffer": {
22901
- capName: "webrtc",
22902
- capScope: "system",
22903
- addonId: null,
22904
- access: "create"
22905
- },
22906
- "webrtc.hasAdaptiveBitrate": {
22907
- capName: "webrtc",
22908
- capScope: "system",
22909
- addonId: null,
22910
- access: "view"
22911
- },
22912
- "webrtc.registerStream": {
22913
- capName: "webrtc",
22914
- capScope: "system",
22915
- addonId: null,
22916
- access: "create"
22917
- },
22918
- "webrtc.supportsStream": {
22919
- capName: "webrtc",
22920
- capScope: "system",
22921
- addonId: null,
22922
- access: "view"
22923
- },
22924
- "webrtc.unregisterStream": {
22925
- capName: "webrtc",
22926
- capScope: "system",
22927
- addonId: null,
22928
- access: "delete"
22929
- },
22930
23353
  "webrtcSession.addIceCandidate": {
22931
23354
  capName: "webrtc-session",
22932
23355
  capScope: "device",