@camstack/addon-provider-wyze 0.1.16 → 0.1.18

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.
Files changed (3) hide show
  1. package/dist/addon.js +690 -289
  2. package/dist/addon.mjs +690 -289
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -4638,7 +4638,7 @@ function _instanceof(cls, params = {}) {
4638
4638
  return inst;
4639
4639
  }
4640
4640
  //#endregion
4641
- //#region ../types/dist/sleep-CZDdRBua.mjs
4641
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4642
4642
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4643
4643
  EventCategory["SystemBoot"] = "system.boot";
4644
4644
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4824,6 +4824,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4824
4824
  */
4825
4825
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4826
4826
  /**
4827
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4828
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4829
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4830
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4831
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4832
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4833
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4834
+ * topology change, so a dropped event self-heals on the next one (plus the
4835
+ * broker's long backstop reconcile query).
4836
+ */
4837
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4838
+ /**
4827
4839
  * Periodic snapshot of per-node pipeline-runner load
4828
4840
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4829
4841
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5347,10 +5359,6 @@ function hydrateField(field, values) {
5347
5359
  };
5348
5360
  }
5349
5361
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5350
- if (field.type === "password") return {
5351
- ...field,
5352
- value: ""
5353
- };
5354
5362
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5355
5363
  return {
5356
5364
  ...field,
@@ -6734,10 +6742,25 @@ function method(input, output, options) {
6734
6742
  timeoutMs: options?.timeoutMs
6735
6743
  };
6736
6744
  }
6745
+ /**
6746
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6747
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6748
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6749
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6750
+ */
6751
+ function systemMethod(input, output, options) {
6752
+ return {
6753
+ ...method(input, output, options),
6754
+ systemOnly: true
6755
+ };
6756
+ }
6737
6757
  /** Shorthand to define an event schema */
6738
6758
  function event(data) {
6739
6759
  return { data };
6740
6760
  }
6761
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6762
+ var VersionOutputSchema$1 = object({ version: string() });
6763
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6741
6764
  var StaticDirOutputSchema = object({ staticDir: string() });
6742
6765
  var VersionOutputSchema = object({ version: string() });
6743
6766
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6919,6 +6942,36 @@ var ModelFormatsSchema = object({
6919
6942
  tflite: ModelFormatEntrySchema.optional(),
6920
6943
  pt: ModelFormatEntrySchema.optional()
6921
6944
  });
6945
+ /**
6946
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6947
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6948
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6949
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6950
+ * resolution/download/persistence; this is a presentation overlay resolved back
6951
+ * to an `id`.
6952
+ */
6953
+ var ModelVariantGroupSchema = object({
6954
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6955
+ family: string(),
6956
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6957
+ tier: string(),
6958
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6959
+ precision: _enum(["fp32", "int8"]).optional(),
6960
+ /**
6961
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6962
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6963
+ * future performance variants plug into.
6964
+ */
6965
+ optimization: _enum(["standard", "fast"]).optional(),
6966
+ /**
6967
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6968
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6969
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6970
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6971
+ * the group so the selector can offer it as a variant axis.
6972
+ */
6973
+ resolution: number().int().positive().optional()
6974
+ });
6922
6975
  var ModelCatalogEntrySchema = object({
6923
6976
  id: string(),
6924
6977
  name: string(),
@@ -6948,7 +7001,43 @@ var ModelCatalogEntrySchema = object({
6948
7001
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6949
7002
  * Downloaded into the same modelsDir alongside the model file.
6950
7003
  */
6951
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7004
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7005
+ /**
7006
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7007
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7008
+ * model list and excluded from the auto format-default pick. Set on the
7009
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7010
+ * the active lineup stays the coherent curated ladder without deleting a
7011
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7012
+ * an explicit legacy id that has a build for the node's format.
7013
+ */
7014
+ legacy: boolean().optional(),
7015
+ /**
7016
+ * Measured quality/latency metadata — populated from the benchmark addon on
7017
+ * the real node classes. Absent = not yet measured (most entries today; the
7018
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7019
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7020
+ */
7021
+ metrics: object({
7022
+ map50: number().optional(),
7023
+ p95LatencyMs: record(string(), number()).optional()
7024
+ }).optional(),
7025
+ /**
7026
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7027
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7028
+ * the retraining addon and any future commercial distribution.
7029
+ */
7030
+ license: string().optional(),
7031
+ /**
7032
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7033
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7034
+ * of a family's sizes and quantizations collapse into one grouped picker
7035
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7036
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7037
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7038
+ * is a presentation overlay resolved back to an `id`.
7039
+ */
7040
+ group: ModelVariantGroupSchema.optional()
6952
7041
  });
6953
7042
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6954
7043
  format: literal("openvino"),
@@ -7009,8 +7098,8 @@ var RecordingModeSchema = _enum([
7009
7098
  "onAudioThreshold"
7010
7099
  ]);
7011
7100
  /**
7012
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7013
- * reads directly (never inferred from `rules`):
7101
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7102
+ * UI reads directly (never inferred from `rules`):
7014
7103
  * - `off` — not recording.
7015
7104
  * - `events` — record only around triggers (motion / audio threshold),
7016
7105
  * with pre/post-buffer.
@@ -9173,26 +9262,13 @@ onBrightnessChanged: { data: object({
9173
9262
  */
9174
9263
  runtimeState: BrightnessStatusSchema
9175
9264
  };
9265
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9176
9266
  var StreamFormatSchema = _enum([
9177
9267
  "webrtc",
9178
9268
  "hls",
9179
9269
  "mjpeg",
9180
9270
  "rtsp"
9181
9271
  ]);
9182
- var StreamInfoSchema = object({
9183
- streamId: string(),
9184
- format: StreamFormatSchema,
9185
- url: string().nullable(),
9186
- active: boolean()
9187
- });
9188
- method(object({
9189
- streamId: string(),
9190
- sourceUrl: string(),
9191
- codec: string().optional()
9192
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9193
- streamId: string(),
9194
- format: StreamFormatSchema
9195
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9196
9272
  var RtspRestreamEntrySchema = object({
9197
9273
  brokerId: string(),
9198
9274
  url: string(),
@@ -10060,37 +10136,7 @@ var consumablesCapability = {
10060
10136
  scope: "device",
10061
10137
  deviceNative: true,
10062
10138
  mode: "singleton",
10063
- deviceTypes: [
10064
- DeviceType.Camera,
10065
- DeviceType.Hub,
10066
- DeviceType.Light,
10067
- DeviceType.Siren,
10068
- DeviceType.Switch,
10069
- DeviceType.Sensor,
10070
- DeviceType.Thermostat,
10071
- DeviceType.Button,
10072
- DeviceType.EventEmitter,
10073
- DeviceType.Update,
10074
- DeviceType.Generic,
10075
- DeviceType.Notifier,
10076
- DeviceType.Script,
10077
- DeviceType.Automation,
10078
- DeviceType.Lock,
10079
- DeviceType.Cover,
10080
- DeviceType.Valve,
10081
- DeviceType.Humidifier,
10082
- DeviceType.WaterHeater,
10083
- DeviceType.Fan,
10084
- DeviceType.MediaPlayer,
10085
- DeviceType.AlarmPanel,
10086
- DeviceType.Control,
10087
- DeviceType.Presence,
10088
- DeviceType.Weather,
10089
- DeviceType.Vacuum,
10090
- DeviceType.LawnMower,
10091
- DeviceType.Container,
10092
- DeviceType.Image
10093
- ],
10139
+ deviceTypes: Object.values(DeviceType),
10094
10140
  deviceConfig: { ui: {
10095
10141
  kind: "widget",
10096
10142
  widgetId: "host/consumables-panel",
@@ -11548,7 +11594,7 @@ var BoundingBoxSchema = object({
11548
11594
  w: number(),
11549
11595
  h: number()
11550
11596
  });
11551
- var SpatialDetectionSchema = object({
11597
+ object({
11552
11598
  class: string(),
11553
11599
  originalClass: string(),
11554
11600
  score: number(),
@@ -11683,7 +11729,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11683
11729
  enabled: boolean(),
11684
11730
  modelId: string(),
11685
11731
  children: array(PipelineDefaultStepSchema).readonly(),
11686
- engine: PipelineEngineChoiceSchema.optional(),
11687
11732
  group: string().optional(),
11688
11733
  settings: record(string(), unknown()).optional()
11689
11734
  }));
@@ -11708,7 +11753,9 @@ var PipelineModelOptionSchema = object({
11708
11753
  formats: record(string(), object({
11709
11754
  downloaded: boolean(),
11710
11755
  sizeMB: number()
11711
- }))
11756
+ })),
11757
+ group: ModelVariantGroupSchema.optional(),
11758
+ legacy: boolean().optional()
11712
11759
  });
11713
11760
  var ConfigFieldBridge = custom();
11714
11761
  var PipelineAddonSchemaSchema = object({
@@ -11722,6 +11769,7 @@ var PipelineAddonSchemaSchema = object({
11722
11769
  defaultModelId: string(),
11723
11770
  defaultModelIdByFormat: record(string(), string()).optional(),
11724
11771
  enabledByDefault: boolean().optional(),
11772
+ backfillIntoExistingOverrides: boolean().optional(),
11725
11773
  defaultConfidence: number(),
11726
11774
  group: string().optional(),
11727
11775
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11738,11 +11786,6 @@ var PipelineSchemaSchema = object({
11738
11786
  selectedEngine: PipelineEngineChoiceSchema,
11739
11787
  slots: array(PipelineSlotSchemaSchema).readonly()
11740
11788
  });
11741
- var DetectorOutputSchema = object({
11742
- detections: array(SpatialDetectionSchema).readonly(),
11743
- inferenceMs: number(),
11744
- modelId: string()
11745
- });
11746
11789
  var EngineProvisioningSchema = object({
11747
11790
  runtimeId: _enum([
11748
11791
  "onnx",
@@ -11759,15 +11802,42 @@ var EngineProvisioningSchema = object({
11759
11802
  ]),
11760
11803
  progress: number().optional(),
11761
11804
  error: string().optional(),
11762
- nextRetryAt: number().optional()
11805
+ nextRetryAt: number().optional(),
11806
+ /**
11807
+ * Gate A (config-correctness gate at engine change): human-readable
11808
+ * config issues surfaced EAGERLY when the node's engine changes — model
11809
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11810
+ * has a <format> build"). Additive/optional: informational only, never
11811
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11812
+ * Absent/empty when the node-default tree resolves cleanly.
11813
+ */
11814
+ configIssues: array(string()).optional()
11763
11815
  });
11764
11816
  var PipelineStepInputSchema = lazy(() => object({
11765
11817
  addonId: string(),
11766
- modelId: string(),
11818
+ modelId: string().optional(),
11767
11819
  enabled: boolean().default(true),
11768
11820
  children: array(PipelineStepInputSchema).optional(),
11769
11821
  settings: record(string(), unknown()).optional()
11770
11822
  }));
11823
+ var ModelSubstitutionSchema = object({
11824
+ addonId: string(),
11825
+ chosen: string(),
11826
+ running: string(),
11827
+ format: string()
11828
+ });
11829
+ var PipelineValidationIssueSchema = object({
11830
+ addonId: string(),
11831
+ kind: _enum(["unknown-addon", "no-format-build"]),
11832
+ detail: string()
11833
+ });
11834
+ var PipelineValidationResultSchema = object({
11835
+ ok: boolean(),
11836
+ issues: array(PipelineValidationIssueSchema).readonly(),
11837
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11838
+ /** The node's `currentEngine.format` this validation ran against. */
11839
+ format: string()
11840
+ });
11771
11841
  var ReferenceImageEntrySchema = object({
11772
11842
  filename: string(),
11773
11843
  stepIds: array(string()).readonly().optional()
@@ -11838,7 +11908,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11838
11908
  })) }), object({ success: literal(true) }), {
11839
11909
  kind: "mutation",
11840
11910
  auth: "admin"
11841
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11911
+ }), method(object({ nodeId: string() }), object({
11912
+ success: literal(true),
11913
+ clearedDevices: number()
11914
+ }), {
11915
+ kind: "mutation",
11916
+ auth: "admin"
11917
+ }), 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({
11842
11918
  name: string(),
11843
11919
  steps: array(PipelineTemplateStepSchema).readonly(),
11844
11920
  engine: PipelineEngineChoiceSchema
@@ -11855,10 +11931,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11855
11931
  modelId: string(),
11856
11932
  format: ModelFormatSchema$1
11857
11933
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11858
- addonId: string(),
11859
- frame: FrameInputSchema,
11860
- config: record(string(), unknown()).optional()
11861
- }), DetectorOutputSchema), method(object({
11862
11934
  engine: PipelineEngineChoiceSchema.optional(),
11863
11935
  steps: array(PipelineStepInputSchema).min(1),
11864
11936
  frame: FrameInputSchema.optional(),
@@ -12037,6 +12109,25 @@ var zonesCapability = {
12037
12109
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12038
12110
  };
12039
12111
  /**
12112
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12113
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12114
+ * so the caller supplies only the detection-res bbox divided by the detection
12115
+ * dims — no native resolution to plumb.
12116
+ */
12117
+ var NativeCropBboxSchema = object({
12118
+ x: number(),
12119
+ y: number(),
12120
+ w: number(),
12121
+ h: number()
12122
+ });
12123
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12124
+ var NativeCropResultSchema = object({
12125
+ /** Packed rgb (24-bit) pixels of the crop. */
12126
+ bytes: _instanceof(Uint8Array),
12127
+ width: number().int().positive(),
12128
+ height: number().int().positive()
12129
+ });
12130
+ /**
12040
12131
  * Per-camera tunable ranges + defaults. Single source of truth used
12041
12132
  * by both the Zod data schema (validation + default fallback) and
12042
12133
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12131,6 +12222,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12131
12222
  kind: literal("remote-restream"),
12132
12223
  /** The camera's source-owner node (slice 1: always the hub). */
12133
12224
  ownerNodeId: string(),
12225
+ /**
12226
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12227
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12228
+ * dials THIS host for the owner's restream, in preference to the
12229
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12230
+ */
12231
+ ownerReachableHost: string().optional(),
12134
12232
  /** Operator override for the owner host the runner dials. */
12135
12233
  hubHostnameOverride: string().optional()
12136
12234
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12139,13 +12237,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12139
12237
  * specific runner instance via `attachCamera`. Carries everything the
12140
12238
  * runner needs to subscribe to the local broker and execute inference.
12141
12239
  *
12142
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12143
- * optional `audio`) travels with the attach payload. The runner keeps it
12144
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12145
- * restart the orchestrator re-sends the latest snapshot.
12146
- *
12147
- * `engine`/`steps`/`audio` are optional during the additive migration
12148
- * window; once orchestrator + UI are migrated they become required.
12240
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12241
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12242
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12243
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12244
+ * node-local, resolved by the executing runner at dispatch time.
12149
12245
  */
12150
12246
  var RunnerCameraConfigSchema = object({
12151
12247
  deviceId: number(),
@@ -12196,14 +12292,11 @@ var RunnerCameraConfigSchema = object({
12196
12292
  */
12197
12293
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12198
12294
  pipelineEnabled: boolean().default(true),
12199
- /** Engine choice for video steps (runtime+backend+format). */
12200
- engine: PipelineEngineChoiceSchema.optional(),
12201
12295
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12202
12296
  steps: array(PipelineStepInputSchema).readonly().optional(),
12203
12297
  /** Audio classification branch. `enabled:false` disables, null skips. */
12204
12298
  audio: object({
12205
- engine: PipelineEngineChoiceSchema,
12206
- modelId: string(),
12299
+ modelId: string().optional(),
12207
12300
  enabled: boolean()
12208
12301
  }).nullable().optional(),
12209
12302
  /**
@@ -12290,7 +12383,11 @@ var RunnerLocalMetricsSchema = object({
12290
12383
  avgInferenceTimeMs: number(),
12291
12384
  queueDepth: number()
12292
12385
  });
12293
- 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());
12386
+ 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({
12387
+ handle: FrameHandleSchema,
12388
+ bbox: NativeCropBboxSchema,
12389
+ maxWidth: number().int().positive().optional()
12390
+ }), NativeCropResultSchema.nullable());
12294
12391
  /**
12295
12392
  * Hardware / firmware motion sensor cap — binary detected state plus
12296
12393
  * a timestamp of the last observation. Distinct from
@@ -15221,7 +15318,9 @@ var AddonPageDeclarationSchema$1 = object({
15221
15318
  icon: string(),
15222
15319
  path: string(),
15223
15320
  remoteName: string(),
15224
- bundle: string()
15321
+ bundle: string(),
15322
+ section: string().optional(),
15323
+ sectionLabel: string().optional()
15225
15324
  });
15226
15325
  var AddonPageInfoSchema = object({
15227
15326
  addonId: string(),
@@ -15261,7 +15360,18 @@ var AddonPageDeclarationSchema = object({
15261
15360
  * the static-file route can compute an mtime-based cache-buster URL
15262
15361
  * without a separate filesystem stat.
15263
15362
  */
15264
- bundle: string()
15363
+ bundle: string(),
15364
+ /**
15365
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15366
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15367
+ * Any OTHER string creates (or joins) a custom section rendered after
15368
+ * the built-in groups; its label comes from `sectionLabel` (first
15369
+ * declaration wins), falling back to the id. Absent → the legacy
15370
+ * "Addon Pages" group.
15371
+ */
15372
+ section: string().optional(),
15373
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15374
+ sectionLabel: string().optional()
15265
15375
  });
15266
15376
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15267
15377
  var AddonHttpRouteSchema = object({
@@ -15477,6 +15587,17 @@ var WidgetMetadataSchema = object({
15477
15587
  deviceContext: boolean().default(false),
15478
15588
  integrationContext: boolean().default(false)
15479
15589
  }),
15590
+ /**
15591
+ * Loadable BEFORE authentication. The normal widget registry listing
15592
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15593
+ * (the login page) cannot discover a widget through it. A widget that
15594
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15595
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15596
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15597
+ * than the authenticated registry, and its bundle is served by the
15598
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15599
+ */
15600
+ preAuth: boolean().optional().default(false),
15480
15601
  /** Dashboard placement HINTS (operator can override per instance). */
15481
15602
  defaultSize: WidgetSizeEnum.default("md"),
15482
15603
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15778,6 +15899,66 @@ method(object({
15778
15899
  password: string()
15779
15900
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15780
15901
  /**
15902
+ * `login-method` — collection cap through which auth addons contribute
15903
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15904
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15905
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15906
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15907
+ * procedure aggregates them for the unauthenticated login page.
15908
+ *
15909
+ * A contribution is a discriminated union on `kind`:
15910
+ *
15911
+ * - `redirect` — a declarative button. The login page renders a generic
15912
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15913
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15914
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15915
+ * login page needs NO change.
15916
+ *
15917
+ * - `widget` — a Module-Federation widget the login page mounts (via
15918
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15919
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15920
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15921
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15922
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15923
+ *
15924
+ * Every contribution carries a `stage`:
15925
+ * - `primary` — shown on the first credentials screen (OIDC /
15926
+ * magic-link buttons; a future usernameless passkey).
15927
+ * - `second-factor` — shown AFTER the password leg, gated on the
15928
+ * returned `factors` (passkey-as-2FA today).
15929
+ *
15930
+ * `mount: skip` — the cap is read server-side by the core auth router
15931
+ * (`registry.getCollection('login-method')`), never mounted as its own
15932
+ * tRPC router.
15933
+ */
15934
+ /** When a login method renders in the two-phase login flow. */
15935
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15936
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15937
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15938
+ kind: literal("redirect"),
15939
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15940
+ id: string(),
15941
+ /** Operator-facing button label. */
15942
+ label: string(),
15943
+ /** lucide-react icon name. */
15944
+ icon: string().optional(),
15945
+ /** Addon-owned HTTP route the button navigates to (GET). */
15946
+ startUrl: string(),
15947
+ stage: LoginStageEnum
15948
+ }), object({
15949
+ kind: literal("widget"),
15950
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15951
+ id: string(),
15952
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15953
+ addonId: string(),
15954
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15955
+ bundle: string(),
15956
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15957
+ remote: WidgetRemoteSchema,
15958
+ stage: LoginStageEnum
15959
+ })]);
15960
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15961
+ /**
15781
15962
  * Orchestrator-side destination metadata. The orchestrator computes
15782
15963
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15783
15964
  * (admin UI, restore flow) see one canonical key.
@@ -17898,7 +18079,17 @@ var TrackSchema = object({
17898
18079
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17899
18080
  totalDistance: number(),
17900
18081
  state: TrackStateSchema,
17901
- active: boolean()
18082
+ active: boolean(),
18083
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18084
+ * track expiry, recomputed on late label). Absent on legacy rows written
18085
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18086
+ importance: number().optional(),
18087
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18088
+ * "best" frame). Absent when the track produced no object events. */
18089
+ bestEventId: string().optional(),
18090
+ /** Tag of the importance sub-signal that dominated the score
18091
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18092
+ importanceReason: string().optional()
17902
18093
  });
17903
18094
  var BaseEventFields = {
17904
18095
  id: string(),
@@ -17963,8 +18154,18 @@ var ObjectEventSchema = object({
17963
18154
  frameHeight: number().optional(),
17964
18155
  /** MediaStore key for the crop attached to this event (if any). */
17965
18156
  mediaKey: string().optional(),
18157
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18158
+ * best-detection full frame). Resolve via the event-media data-plane
18159
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18160
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18161
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18162
+ keyFrameMediaKey: string().optional(),
17966
18163
  /** Populated by B5 (recording playback URL for this event). */
17967
- mediaUrl: string().optional()
18164
+ mediaUrl: string().optional(),
18165
+ /** The parent track's key-event importance [0,1], propagated to every object
18166
+ * event of the track (so an event row can be sorted by importance without a
18167
+ * track join). Absent on legacy rows / before the track was scored. */
18168
+ importance: number().optional()
17968
18169
  });
17969
18170
  var AudioEventSchema = object({
17970
18171
  ...BaseEventFields,
@@ -17988,7 +18189,8 @@ var MediaFileKindEnum = _enum([
17988
18189
  "fullFrame",
17989
18190
  "fullFrameBoxed",
17990
18191
  "faceCrop",
17991
- "plateCrop"
18192
+ "plateCrop",
18193
+ "keyFrame"
17992
18194
  ]);
17993
18195
  var MediaFileSchema = object({
17994
18196
  key: string(),
@@ -18009,6 +18211,32 @@ var DeviceEventQueryInput = object({
18009
18211
  projection: _enum(["full", "slim"]).optional()
18010
18212
  });
18011
18213
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18214
+ var KeyEventQueryInput = object({
18215
+ deviceId: number(),
18216
+ /** Window lower bound (track firstSeen ≥ since). */
18217
+ since: number(),
18218
+ /** Window upper bound (track firstSeen ≤ until). */
18219
+ until: number(),
18220
+ limit: number().int().min(1).max(200).default(50),
18221
+ /** Drop tracks scoring below this importance. */
18222
+ minImportance: number().min(0).max(1).optional(),
18223
+ /** Restrict to a single class (e.g. 'person'). */
18224
+ classFilter: string().optional()
18225
+ });
18226
+ var KeyEventSchema = object({
18227
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18228
+ id: string(),
18229
+ trackId: string(),
18230
+ /** Track start time (firstSeen). */
18231
+ timestamp: number(),
18232
+ className: string(),
18233
+ label: string().optional(),
18234
+ importance: number(),
18235
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18236
+ bestEventId: string(),
18237
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18238
+ windowMs: number().optional()
18239
+ });
18012
18240
  var TrackedDetectionSchema = object({
18013
18241
  trackId: string(),
18014
18242
  className: string(),
@@ -18038,7 +18266,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18038
18266
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18039
18267
  kind: "mutation",
18040
18268
  auth: "admin"
18041
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18269
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18042
18270
  deviceId: number(),
18043
18271
  since: number(),
18044
18272
  until: number(),
@@ -18083,11 +18311,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18083
18311
  timestamp: number()
18084
18312
  });
18085
18313
  var CameraPipelineConfigSchema = object({
18086
- engine: PipelineEngineChoiceSchema,
18314
+ engine: PipelineEngineChoiceSchema.optional(),
18087
18315
  steps: array(PipelineStepInputSchema).readonly(),
18088
18316
  audio: object({
18089
- engine: PipelineEngineChoiceSchema,
18090
- modelId: string(),
18317
+ engine: PipelineEngineChoiceSchema.optional(),
18318
+ modelId: string().optional(),
18091
18319
  enabled: boolean(),
18092
18320
  settings: record(string(), unknown()).readonly().optional()
18093
18321
  }).nullable().optional()
@@ -18102,7 +18330,7 @@ var PipelineTemplateSchema = object({
18102
18330
  });
18103
18331
  var AgentAddonConfigSchema = object({
18104
18332
  enabled: boolean(),
18105
- modelId: string(),
18333
+ modelId: string().optional(),
18106
18334
  settings: record(string(), unknown()).readonly()
18107
18335
  });
18108
18336
  var AgentPipelineSettingsSchema = object({
@@ -18112,12 +18340,25 @@ var AgentPipelineSettingsSchema = object({
18112
18340
  detectWeight: number().positive().optional(),
18113
18341
  /** Node is eligible to run the detection pipeline (decode + inference). */
18114
18342
  detect: boolean().optional(),
18115
- /** Node is eligible to host decoder sessions. */
18343
+ /**
18344
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18345
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18346
+ * the schema ONLY so persisted stores written before the removal still
18347
+ * parse — no code reads it and no write path emits it.
18348
+ */
18116
18349
  decode: boolean().optional(),
18117
18350
  /** Node is eligible to run audio-analyzer sessions. */
18118
18351
  audio: boolean().optional(),
18119
18352
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18120
- ingest: boolean().optional()
18353
+ ingest: boolean().optional(),
18354
+ /**
18355
+ * Operator override for the LAN host a cross-node decoder dials to reach
18356
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18357
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18358
+ * it already uses to reach the hub). Set this only when the auto-detected
18359
+ * address is wrong (multi-homed host, NAT, custom interface).
18360
+ */
18361
+ reachableHost: string().optional()
18121
18362
  });
18122
18363
  var CameraPipelineForAgentSchema = object({
18123
18364
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18165,25 +18406,6 @@ var PipelineAssignmentSchema = object({
18165
18406
  assignedAt: number()
18166
18407
  });
18167
18408
  /**
18168
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18169
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18170
- * → co-located with pipeline → capacity).
18171
- */
18172
- var DecoderAssignmentSchema = object({
18173
- deviceId: number(),
18174
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18175
- decoderNodeId: string(),
18176
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18177
- pinned: boolean(),
18178
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18179
- reason: _enum([
18180
- "manual",
18181
- "co-located",
18182
- "capacity",
18183
- "hardware-affinity"
18184
- ])
18185
- });
18186
- /**
18187
18409
  * Per-agent load summary surfaced to the load balancer + dashboards.
18188
18410
  * Aggregated from each runner's `getLocalLoad` cap call.
18189
18411
  */
@@ -18223,6 +18445,15 @@ var GlobalMetricsSchema = object({
18223
18445
  * capability providers.
18224
18446
  */
18225
18447
  var CapabilityBindingsSchema = record(string(), string());
18448
+ /**
18449
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18450
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18451
+ */
18452
+ var IngestOwnerSchema = object({
18453
+ ownerNodeId: string(),
18454
+ reachableHost: string().optional(),
18455
+ configIssue: string().optional()
18456
+ });
18226
18457
  /** Source block — always present; derives from the stream catalog. */
18227
18458
  var CameraSourceStatusSchema = object({ streams: array(object({
18228
18459
  camStreamId: string(),
@@ -18237,6 +18468,14 @@ var CameraAssignmentStatusSchema = object({
18237
18468
  detectionNodeId: string().nullable(),
18238
18469
  decoderNodeId: string().nullable(),
18239
18470
  audioNodeId: string().nullable(),
18471
+ /**
18472
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18473
+ * hosts the broker/restream) — the cluster ingest owner today
18474
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18475
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18476
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18477
+ */
18478
+ sourceNodeId: string().nullable(),
18240
18479
  pinned: object({
18241
18480
  detection: boolean(),
18242
18481
  decoder: boolean(),
@@ -18369,16 +18608,7 @@ method(object({
18369
18608
  }), object({ success: literal(true) }), {
18370
18609
  kind: "mutation",
18371
18610
  auth: "admin"
18372
- }), method(object({
18373
- deviceId: number(),
18374
- nodeId: string()
18375
- }), _void(), {
18376
- kind: "mutation",
18377
- auth: "admin"
18378
- }), method(object({ deviceId: number() }), _void(), {
18379
- kind: "mutation",
18380
- auth: "admin"
18381
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18611
+ }), method(_void(), IngestOwnerSchema), method(object({
18382
18612
  deviceId: number(),
18383
18613
  nodeId: string()
18384
18614
  }), object({ success: literal(true) }), {
@@ -18399,10 +18629,7 @@ method(object({
18399
18629
  nodeId: string(),
18400
18630
  pinned: boolean(),
18401
18631
  assignedAt: number()
18402
- }))), method(object({
18403
- deviceId: number(),
18404
- pipelineNodeId: string().optional()
18405
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18632
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18406
18633
  nodeId: string(),
18407
18634
  settings: AgentPipelineSettingsSchema
18408
18635
  })).readonly()), method(object({
@@ -18432,12 +18659,26 @@ method(object({
18432
18659
  }), method(object({
18433
18660
  agentNodeId: string(),
18434
18661
  detect: boolean().nullable().optional(),
18435
- decode: boolean().nullable().optional(),
18436
18662
  audio: boolean().nullable().optional(),
18437
18663
  ingest: boolean().nullable().optional()
18438
18664
  }), object({ success: literal(true) }), {
18439
18665
  kind: "mutation",
18440
18666
  auth: "admin"
18667
+ }), method(object({
18668
+ agentNodeId: string(),
18669
+ reachableHost: string().nullable()
18670
+ }), object({ success: literal(true) }), {
18671
+ kind: "mutation",
18672
+ auth: "admin"
18673
+ }), method(object({ agentNodeId: string() }), object({
18674
+ success: literal(true),
18675
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18676
+ effectiveModelId: string().nullable(),
18677
+ /** Number of cameras whose node-scoped overrides were cleared. */
18678
+ clearedCameraOverrides: number()
18679
+ }), {
18680
+ kind: "mutation",
18681
+ auth: "admin"
18441
18682
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18442
18683
  deviceId: number(),
18443
18684
  addonId: string(),
@@ -18482,22 +18723,131 @@ method(object({
18482
18723
  kind: "mutation",
18483
18724
  auth: "admin"
18484
18725
  });
18485
- var RegisteredStreamSchema = object({
18486
- streamId: string(),
18487
- label: string().optional(),
18488
- codec: string(),
18489
- type: _enum(["video", "audio"]),
18490
- sourceUrl: string()
18726
+ /**
18727
+ * server-management — per-NODE singleton capability for a node's ROOT
18728
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18729
+ * agents).
18730
+ *
18731
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18732
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18733
+ * version describes the node. Updates install into
18734
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18735
+ * starter (probation boot + auto-rollback to N-1).
18736
+ *
18737
+ * Providers:
18738
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18739
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18740
+ * unpinned calls.
18741
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18742
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18743
+ * `$hub.registerNode` manifest.
18744
+ *
18745
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18746
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18747
+ * SDK) routes the call to that node's provider via the standard remote
18748
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18749
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18750
+ *
18751
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18752
+ */
18753
+ /**
18754
+ * Where the running hub's code was loaded from:
18755
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18756
+ * plain resolution and runtime updates are refused.
18757
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18758
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18759
+ */
18760
+ var ServerBootModeSchema = _enum([
18761
+ "workspace",
18762
+ "baked",
18763
+ "data-root"
18764
+ ]);
18765
+ /**
18766
+ * Update lifecycle state:
18767
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18768
+ * - `pending-restart` — a version is staged and the node has NOT yet
18769
+ * restarted onto it (still running the OLD version).
18770
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18771
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18772
+ * Apply/rollback are refused in this state and the node must NOT be
18773
+ * manually restarted, or the probation boot auto-rolls-back.
18774
+ */
18775
+ var ServerUpdateStateSchema = _enum([
18776
+ "idle",
18777
+ "checking",
18778
+ "staging",
18779
+ "pending-restart",
18780
+ "awaiting-confirmation"
18781
+ ]);
18782
+ var ServerRollbackInfoSchema = object({
18783
+ /** The version that failed (or was manually rolled back). */
18784
+ fromVersion: string(),
18785
+ /** The version rolled back to; null = the baked seed. */
18786
+ toVersion: string().nullable(),
18787
+ atMs: number(),
18788
+ reason: string()
18491
18789
  });
18492
- var ExposedResourceSchema = object({
18493
- streamId: string(),
18494
- format: string(),
18495
- value: string()
18790
+ var ServerPackageStatusSchema = object({
18791
+ /** Root package name (`@camstack/server` on the hub). */
18792
+ packageName: string(),
18793
+ /** Version of the code the running process ACTUALLY loaded. */
18794
+ runningVersion: string().nullable(),
18795
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18796
+ nodeRuntimeVersion: string().nullable(),
18797
+ /** Active data-dir root version; null when booted from seed/workspace. */
18798
+ activeVersion: string().nullable(),
18799
+ /** N-1 version kept for rollback; null when no previous version exists. */
18800
+ previousVersion: string().nullable(),
18801
+ /** Version of the immutable baked seed closure (image fallback). */
18802
+ seedVersion: string().nullable(),
18803
+ /** Latest registry version from the most recent check (null = never checked). */
18804
+ latestVersion: string().nullable(),
18805
+ updateAvailable: boolean(),
18806
+ bootMode: ServerBootModeSchema,
18807
+ updateState: ServerUpdateStateSchema,
18808
+ /** Version staged + awaiting its probation boot, when one is pending. */
18809
+ pendingVersion: string().nullable(),
18810
+ /** Set when the last freshly-activated version failed its boot health-check. */
18811
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18812
+ /**
18813
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18814
+ * hub is running from the baked seed (or workspace) while installed data-dir
18815
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18816
+ */
18817
+ stateFileCorrupt: boolean(),
18818
+ lastCheckedAtMs: number().nullable()
18819
+ });
18820
+ var ServerUpdateCheckResultSchema = object({
18821
+ packageName: string(),
18822
+ runningVersion: string().nullable(),
18823
+ latestVersion: string().nullable(),
18824
+ updateAvailable: boolean(),
18825
+ checkedAtMs: number(),
18826
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18827
+ error: string().nullable()
18828
+ });
18829
+ var ServerUpdateActionResultSchema = object({
18830
+ accepted: boolean(),
18831
+ targetVersion: string().nullable(),
18832
+ /** True when a graceful restart was scheduled to apply the change. */
18833
+ restarting: boolean(),
18834
+ message: string()
18835
+ });
18836
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18837
+ kind: "mutation",
18838
+ auth: "admin"
18839
+ }), method(object({
18840
+ /** Explicit target version; omitted = latest from the registry. */
18841
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18842
+ kind: "mutation",
18843
+ auth: "admin"
18844
+ }), method(_void(), ServerUpdateActionResultSchema, {
18845
+ kind: "mutation",
18846
+ auth: "admin"
18847
+ }), method(_void(), ServerUpdateActionResultSchema, {
18848
+ kind: "mutation",
18849
+ auth: "admin"
18496
18850
  });
18497
- method(object({
18498
- deviceId: number(),
18499
- streams: array(RegisteredStreamSchema).readonly()
18500
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18501
18851
  /**
18502
18852
  * Query filter for settings-store collections.
18503
18853
  */
@@ -18650,9 +19000,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18650
19000
  /**
18651
19001
  * A single device snapshot returned as base64 JPEG/PNG.
18652
19002
  *
18653
- * Shared with the `snapshot-provider` collection cap the orchestrator
18654
- * receives the same shape from each native provider and from the
18655
- * broker-based fallback.
19003
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19004
+ * the device-native provider (onboard capture) or from the stream-broker
19005
+ * prebuffer fallback.
18656
19006
  */
18657
19007
  var SnapshotImageSchema = object({
18658
19008
  base64: string(),
@@ -18720,17 +19070,26 @@ var snapshotCapability = {
18720
19070
  invalidateCache: method(object({ deviceId: number() }), _void(), {
18721
19071
  kind: "mutation",
18722
19072
  auth: "admin"
18723
- })
19073
+ }),
19074
+ /**
19075
+ * Cache-only batch overview — answers from the wrapper's in-memory cache in
19076
+ * O(n) and NEVER triggers a capture. Lets a grid skip requesting images for
19077
+ * devices that never produced a frame, and gives it an ETag per device for
19078
+ * conditional (304-able) image fetches. `lastCapturedAt`/`cacheAgeMs`/`etag`
19079
+ * are null for a device with no cached frame.
19080
+ */
19081
+ getSnapshotOverview: systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
19082
+ deviceId: number(),
19083
+ lastCapturedAt: number().nullable(),
19084
+ cacheAgeMs: number().nullable(),
19085
+ etag: string().nullable()
19086
+ })))
18724
19087
  },
18725
19088
  status: {
18726
19089
  schema: SnapshotStatusSchema,
18727
19090
  kind: "poll"
18728
19091
  }
18729
19092
  };
18730
- method(object({ deviceId: number() }), boolean()), method(object({
18731
- deviceId: number(),
18732
- streamId: string().optional()
18733
- }), SnapshotImageSchema.nullable());
18734
19093
  /**
18735
19094
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18736
19095
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18981,10 +19340,32 @@ method(_void(), array(TurnServerSchema).readonly());
18981
19340
  * b. `finishAuthentication({userId, response})` → server verifies
18982
19341
  * the assertion, bumps the credential counter, returns ok.
18983
19342
  *
19343
+ * 2b. Usernameless (discoverable-credential) authentication — the
19344
+ * passkey IS the primary factor, no password leg:
19345
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19346
+ * EMPTY `allowCredentials` (the browser offers every resident
19347
+ * passkey it holds for this RP) + `userVerification: 'required'`
19348
+ * (the passkey replaces both factors, so UV is mandatory).
19349
+ * The challenge is stored server-side, NOT bound to any user.
19350
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19351
+ * resolves the credential by the response's credential id,
19352
+ * verifies the assertion against the stored challenge + that
19353
+ * credential's public key/counter, and returns the OWNING
19354
+ * `userId` — the caller (core auth router) mints the session.
19355
+ *
18984
19356
  * 3. Management:
18985
19357
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18986
19358
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18987
19359
  *
19360
+ * 4. Second-factor preference (opt-in, default OFF):
19361
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19362
+ * demanded as a second factor after a password login ONLY when the
19363
+ * user explicitly opts in via `setSecondFactorPreference`.
19364
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19365
+ * row ⇒ `enabled: false`).
19366
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19367
+ * the providing addon beside its credentials.
19368
+ *
18988
19369
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18989
19370
  * the admin-ui composes the begin/finish round-trip and never exposes
18990
19371
  * the cap to non-admins.
@@ -19027,6 +19408,17 @@ method(object({
19027
19408
  }), object({ verified: boolean() }), {
19028
19409
  kind: "mutation",
19029
19410
  access: "view"
19411
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19412
+ kind: "mutation",
19413
+ access: "view"
19414
+ }), method(object({
19415
+ /** AuthenticationResponseJSON from the browser. */
19416
+ response: record(string(), unknown()) }), object({
19417
+ verified: boolean(),
19418
+ userId: string().nullable()
19419
+ }), {
19420
+ kind: "mutation",
19421
+ access: "view"
19030
19422
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19031
19423
  userId: string(),
19032
19424
  credentialId: string()
@@ -19034,6 +19426,13 @@ method(object({
19034
19426
  kind: "mutation",
19035
19427
  auth: "admin",
19036
19428
  access: "delete"
19429
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19430
+ userId: string(),
19431
+ enabled: boolean()
19432
+ }), object({ success: literal(true) }), {
19433
+ kind: "mutation",
19434
+ auth: "admin",
19435
+ access: "create"
19037
19436
  });
19038
19437
  /**
19039
19438
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19091,9 +19490,10 @@ method(object({
19091
19490
  auth: "admin"
19092
19491
  });
19093
19492
  /**
19094
- * Optional client-side hints sent at session creation to help the
19095
- * provider pick the best native source. All fields are optional —
19096
- * a viewer that knows nothing still gets a sane default.
19493
+ * Optional client-side hints sent at session creation to help the provider
19494
+ * pick the best native source. All fields optional — a viewer that knows
19495
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19496
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19097
19497
  */
19098
19498
  var webrtcClientHintsSchema = object({
19099
19499
  viewportWidth: number().int().positive().optional(),
@@ -19104,22 +19504,6 @@ var webrtcClientHintsSchema = object({
19104
19504
  /** Hard tier override; takes precedence over scoring when registered. */
19105
19505
  prefersTier: string().optional()
19106
19506
  }).partial();
19107
- method(object({
19108
- streamId: string(),
19109
- sdpOffer: string()
19110
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19111
- streamId: string(),
19112
- codec: string()
19113
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19114
- streamId: string(),
19115
- hints: webrtcClientHintsSchema.optional()
19116
- }), object({
19117
- sessionId: string(),
19118
- sdpOffer: string()
19119
- }), { kind: "mutation" }), method(object({
19120
- sessionId: string(),
19121
- sdpAnswer: string()
19122
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19123
19507
  /**
19124
19508
  * Discriminated target for a WebRTC session. The client sends this
19125
19509
  * structured object instead of building / parsing brokerId strings;
@@ -19606,7 +19990,15 @@ var FrameworkPackageStatusSchema = object({
19606
19990
  latestVersion: string().nullable(),
19607
19991
  hasUpdate: boolean(),
19608
19992
  /** Optional manifest description for the row tooltip. */
19609
- description: string().optional()
19993
+ description: string().optional(),
19994
+ /**
19995
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
19996
+ * ACTUALLY loaded. Framework packages ship code changes without always
19997
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
19998
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
19999
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
20000
+ */
20001
+ buildId: string().nullable()
19610
20002
  });
19611
20003
  var LogStreamEntrySchema = object({
19612
20004
  timestamp: string(),
@@ -19842,7 +20234,17 @@ var FaceInfoSchema = object({
19842
20234
  recognizedIdentityId: string().optional(),
19843
20235
  identityName: string().optional(),
19844
20236
  assigned: boolean(),
19845
- base64: string().optional()
20237
+ base64: string().optional(),
20238
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20239
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20240
+ * legacy rows written before design B. */
20241
+ faceBbox: BoundingBoxSchema.optional(),
20242
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20243
+ * Fetch the native JPEG via the event-media data-plane
20244
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20245
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20246
+ * back to the inline `base64` face crop. */
20247
+ keyFrameMediaKey: string().optional()
19846
20248
  });
19847
20249
  var FaceFilterEnum = _enum([
19848
20250
  "unassigned",
@@ -20590,6 +20992,16 @@ var TopologyCategorySchema = object({
20590
20992
  healthy: number(),
20591
20993
  addons: array(TopologyCategoryAddonSchema).readonly()
20592
20994
  });
20995
+ /**
20996
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20997
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20998
+ * version visibility for the Server management surface. Nullable: offline
20999
+ * rows and pre-phase-2 nodes report none.
21000
+ */
21001
+ var TopologyRootPackageSchema = object({
21002
+ name: string(),
21003
+ version: string()
21004
+ });
20593
21005
  var TopologyNodeSchema = object({
20594
21006
  id: string(),
20595
21007
  name: string(),
@@ -20613,7 +21025,8 @@ var TopologyNodeSchema = object({
20613
21025
  status: string()
20614
21026
  })).readonly(),
20615
21027
  processes: array(TopologyProcessSchema).readonly(),
20616
- categories: array(TopologyCategorySchema).readonly()
21028
+ categories: array(TopologyCategorySchema).readonly(),
21029
+ rootPackage: TopologyRootPackageSchema.nullable()
20617
21030
  });
20618
21031
  var CapUsageEdgeSchema = object({
20619
21032
  callerAddonId: string(),
@@ -23426,6 +23839,12 @@ Object.freeze({
23426
23839
  addonId: null,
23427
23840
  access: "create"
23428
23841
  },
23842
+ "loginMethod.getLoginMethods": {
23843
+ capName: "login-method",
23844
+ capScope: "system",
23845
+ addonId: null,
23846
+ access: "view"
23847
+ },
23429
23848
  "mediaPlayer.next": {
23430
23849
  capName: "media-player",
23431
23850
  capScope: "device",
@@ -24008,6 +24427,12 @@ Object.freeze({
24008
24427
  addonId: null,
24009
24428
  access: "view"
24010
24429
  },
24430
+ "pipelineAnalytics.getKeyEvents": {
24431
+ capName: "pipeline-analytics",
24432
+ capScope: "device",
24433
+ addonId: null,
24434
+ access: "view"
24435
+ },
24011
24436
  "pipelineAnalytics.getMotionEvents": {
24012
24437
  capName: "pipeline-analytics",
24013
24438
  capScope: "device",
@@ -24056,23 +24481,23 @@ Object.freeze({
24056
24481
  addonId: null,
24057
24482
  access: "create"
24058
24483
  },
24059
- "pipelineExecutor.deleteModel": {
24484
+ "pipelineExecutor.clearDeviceOverrides": {
24060
24485
  capName: "pipeline-executor",
24061
24486
  capScope: "system",
24062
24487
  addonId: null,
24063
24488
  access: "delete"
24064
24489
  },
24065
- "pipelineExecutor.deleteTemplate": {
24490
+ "pipelineExecutor.deleteModel": {
24066
24491
  capName: "pipeline-executor",
24067
24492
  capScope: "system",
24068
24493
  addonId: null,
24069
24494
  access: "delete"
24070
24495
  },
24071
- "pipelineExecutor.detect": {
24496
+ "pipelineExecutor.deleteTemplate": {
24072
24497
  capName: "pipeline-executor",
24073
24498
  capScope: "system",
24074
24499
  addonId: null,
24075
- access: "view"
24500
+ access: "delete"
24076
24501
  },
24077
24502
  "pipelineExecutor.downloadModel": {
24078
24503
  capName: "pipeline-executor",
@@ -24266,13 +24691,13 @@ Object.freeze({
24266
24691
  addonId: null,
24267
24692
  access: "create"
24268
24693
  },
24269
- "pipelineOrchestrator.assignAudio": {
24270
- capName: "pipeline-orchestrator",
24694
+ "pipelineExecutor.validatePipeline": {
24695
+ capName: "pipeline-executor",
24271
24696
  capScope: "system",
24272
24697
  addonId: null,
24273
- access: "create"
24698
+ access: "view"
24274
24699
  },
24275
- "pipelineOrchestrator.assignDecoder": {
24700
+ "pipelineOrchestrator.assignAudio": {
24276
24701
  capName: "pipeline-orchestrator",
24277
24702
  capScope: "system",
24278
24703
  addonId: null,
@@ -24356,19 +24781,13 @@ Object.freeze({
24356
24781
  addonId: null,
24357
24782
  access: "view"
24358
24783
  },
24359
- "pipelineOrchestrator.getDecoderAssignment": {
24360
- capName: "pipeline-orchestrator",
24361
- capScope: "system",
24362
- addonId: null,
24363
- access: "view"
24364
- },
24365
- "pipelineOrchestrator.getDecoderAssignments": {
24784
+ "pipelineOrchestrator.getGlobalMetrics": {
24366
24785
  capName: "pipeline-orchestrator",
24367
24786
  capScope: "system",
24368
24787
  addonId: null,
24369
24788
  access: "view"
24370
24789
  },
24371
- "pipelineOrchestrator.getGlobalMetrics": {
24790
+ "pipelineOrchestrator.getIngestOwner": {
24372
24791
  capName: "pipeline-orchestrator",
24373
24792
  capScope: "system",
24374
24793
  addonId: null,
@@ -24410,6 +24829,12 @@ Object.freeze({
24410
24829
  addonId: null,
24411
24830
  access: "delete"
24412
24831
  },
24832
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24833
+ capName: "pipeline-orchestrator",
24834
+ capScope: "system",
24835
+ addonId: null,
24836
+ access: "delete"
24837
+ },
24413
24838
  "pipelineOrchestrator.resolvePipeline": {
24414
24839
  capName: "pipeline-orchestrator",
24415
24840
  capScope: "system",
@@ -24446,37 +24871,37 @@ Object.freeze({
24446
24871
  addonId: null,
24447
24872
  access: "create"
24448
24873
  },
24449
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24874
+ "pipelineOrchestrator.setAgentReachableHost": {
24450
24875
  capName: "pipeline-orchestrator",
24451
24876
  capScope: "system",
24452
24877
  addonId: null,
24453
24878
  access: "create"
24454
24879
  },
24455
- "pipelineOrchestrator.setCameraStepOverride": {
24880
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24456
24881
  capName: "pipeline-orchestrator",
24457
24882
  capScope: "system",
24458
24883
  addonId: null,
24459
24884
  access: "create"
24460
24885
  },
24461
- "pipelineOrchestrator.setCameraStepToggle": {
24886
+ "pipelineOrchestrator.setCameraStepOverride": {
24462
24887
  capName: "pipeline-orchestrator",
24463
24888
  capScope: "system",
24464
24889
  addonId: null,
24465
24890
  access: "create"
24466
24891
  },
24467
- "pipelineOrchestrator.setCapabilityBinding": {
24892
+ "pipelineOrchestrator.setCameraStepToggle": {
24468
24893
  capName: "pipeline-orchestrator",
24469
24894
  capScope: "system",
24470
24895
  addonId: null,
24471
24896
  access: "create"
24472
24897
  },
24473
- "pipelineOrchestrator.unassignAudio": {
24898
+ "pipelineOrchestrator.setCapabilityBinding": {
24474
24899
  capName: "pipeline-orchestrator",
24475
24900
  capScope: "system",
24476
24901
  addonId: null,
24477
24902
  access: "create"
24478
24903
  },
24479
- "pipelineOrchestrator.unassignDecoder": {
24904
+ "pipelineOrchestrator.unassignAudio": {
24480
24905
  capName: "pipeline-orchestrator",
24481
24906
  capScope: "system",
24482
24907
  addonId: null,
@@ -24536,6 +24961,12 @@ Object.freeze({
24536
24961
  addonId: null,
24537
24962
  access: "view"
24538
24963
  },
24964
+ "pipelineRunner.getNativeCrop": {
24965
+ capName: "pipeline-runner",
24966
+ capScope: "system",
24967
+ addonId: null,
24968
+ access: "view"
24969
+ },
24539
24970
  "pipelineRunner.reportMotion": {
24540
24971
  capName: "pipeline-runner",
24541
24972
  capScope: "system",
@@ -24776,33 +25207,45 @@ Object.freeze({
24776
25207
  addonId: null,
24777
25208
  access: "create"
24778
25209
  },
24779
- "restreamer.getExposedResources": {
24780
- capName: "restreamer",
25210
+ "scriptRunner.run": {
25211
+ capName: "script-runner",
25212
+ capScope: "device",
25213
+ addonId: null,
25214
+ access: "create"
25215
+ },
25216
+ "scriptRunner.stop": {
25217
+ capName: "script-runner",
25218
+ capScope: "device",
25219
+ addonId: null,
25220
+ access: "create"
25221
+ },
25222
+ "serverManagement.applyServerUpdate": {
25223
+ capName: "server-management",
24781
25224
  capScope: "system",
24782
25225
  addonId: null,
24783
- access: "view"
25226
+ access: "create"
24784
25227
  },
24785
- "restreamer.registerDevice": {
24786
- capName: "restreamer",
25228
+ "serverManagement.checkServerUpdate": {
25229
+ capName: "server-management",
24787
25230
  capScope: "system",
24788
25231
  addonId: null,
24789
25232
  access: "create"
24790
25233
  },
24791
- "restreamer.unregisterDevice": {
24792
- capName: "restreamer",
25234
+ "serverManagement.getServerPackageStatus": {
25235
+ capName: "server-management",
24793
25236
  capScope: "system",
24794
25237
  addonId: null,
24795
- access: "delete"
25238
+ access: "view"
24796
25239
  },
24797
- "scriptRunner.run": {
24798
- capName: "script-runner",
24799
- capScope: "device",
25240
+ "serverManagement.restartServer": {
25241
+ capName: "server-management",
25242
+ capScope: "system",
24800
25243
  addonId: null,
24801
25244
  access: "create"
24802
25245
  },
24803
- "scriptRunner.stop": {
24804
- capName: "script-runner",
24805
- capScope: "device",
25246
+ "serverManagement.rollbackServerUpdate": {
25247
+ capName: "server-management",
25248
+ capScope: "system",
24806
25249
  addonId: null,
24807
25250
  access: "create"
24808
25251
  },
@@ -24890,23 +25333,17 @@ Object.freeze({
24890
25333
  addonId: null,
24891
25334
  access: "view"
24892
25335
  },
24893
- "snapshot.invalidateCache": {
25336
+ "snapshot.getSnapshotOverview": {
24894
25337
  capName: "snapshot",
24895
25338
  capScope: "device",
24896
25339
  addonId: null,
24897
- access: "create"
24898
- },
24899
- "snapshotProvider.getSnapshot": {
24900
- capName: "snapshot-provider",
24901
- capScope: "system",
24902
- addonId: null,
24903
25340
  access: "view"
24904
25341
  },
24905
- "snapshotProvider.supportsDevice": {
24906
- capName: "snapshot-provider",
24907
- capScope: "system",
25342
+ "snapshot.invalidateCache": {
25343
+ capName: "snapshot",
25344
+ capScope: "device",
24908
25345
  addonId: null,
24909
- access: "view"
25346
+ access: "create"
24910
25347
  },
24911
25348
  "ssoBridge.signBridgeToken": {
24912
25349
  capName: "sso-bridge",
@@ -25334,30 +25771,6 @@ Object.freeze({
25334
25771
  addonId: null,
25335
25772
  access: "view"
25336
25773
  },
25337
- "streamingEngine.getStreamUrl": {
25338
- capName: "streaming-engine",
25339
- capScope: "system",
25340
- addonId: null,
25341
- access: "view"
25342
- },
25343
- "streamingEngine.listStreams": {
25344
- capName: "streaming-engine",
25345
- capScope: "system",
25346
- addonId: null,
25347
- access: "view"
25348
- },
25349
- "streamingEngine.registerStream": {
25350
- capName: "streaming-engine",
25351
- capScope: "system",
25352
- addonId: null,
25353
- access: "create"
25354
- },
25355
- "streamingEngine.unregisterStream": {
25356
- capName: "streaming-engine",
25357
- capScope: "system",
25358
- addonId: null,
25359
- access: "delete"
25360
- },
25361
25774
  "streamParams.getConfigSchema": {
25362
25775
  capName: "stream-params",
25363
25776
  capScope: "device",
@@ -25604,6 +26017,12 @@ Object.freeze({
25604
26017
  addonId: null,
25605
26018
  access: "view"
25606
26019
  },
26020
+ "userPasskeys.beginDiscoverableAuthentication": {
26021
+ capName: "user-passkeys",
26022
+ capScope: "system",
26023
+ addonId: null,
26024
+ access: "view"
26025
+ },
25607
26026
  "userPasskeys.beginRegistration": {
25608
26027
  capName: "user-passkeys",
25609
26028
  capScope: "system",
@@ -25616,12 +26035,24 @@ Object.freeze({
25616
26035
  addonId: null,
25617
26036
  access: "view"
25618
26037
  },
26038
+ "userPasskeys.finishDiscoverableAuthentication": {
26039
+ capName: "user-passkeys",
26040
+ capScope: "system",
26041
+ addonId: null,
26042
+ access: "view"
26043
+ },
25619
26044
  "userPasskeys.finishRegistration": {
25620
26045
  capName: "user-passkeys",
25621
26046
  capScope: "system",
25622
26047
  addonId: null,
25623
26048
  access: "create"
25624
26049
  },
26050
+ "userPasskeys.getSecondFactorPreference": {
26051
+ capName: "user-passkeys",
26052
+ capScope: "system",
26053
+ addonId: null,
26054
+ access: "view"
26055
+ },
25625
26056
  "userPasskeys.listPasskeys": {
25626
26057
  capName: "user-passkeys",
25627
26058
  capScope: "system",
@@ -25634,6 +26065,12 @@ Object.freeze({
25634
26065
  addonId: null,
25635
26066
  access: "delete"
25636
26067
  },
26068
+ "userPasskeys.setSecondFactorPreference": {
26069
+ capName: "user-passkeys",
26070
+ capScope: "system",
26071
+ addonId: null,
26072
+ access: "create"
26073
+ },
25637
26074
  "vacuumControl.locate": {
25638
26075
  capName: "vacuum-control",
25639
26076
  capScope: "device",
@@ -25706,6 +26143,18 @@ Object.freeze({
25706
26143
  addonId: null,
25707
26144
  access: "view"
25708
26145
  },
26146
+ "viewerUi.getStaticDir": {
26147
+ capName: "viewer-ui",
26148
+ capScope: "system",
26149
+ addonId: null,
26150
+ access: "view"
26151
+ },
26152
+ "viewerUi.getVersion": {
26153
+ capName: "viewer-ui",
26154
+ capScope: "system",
26155
+ addonId: null,
26156
+ access: "view"
26157
+ },
25709
26158
  "waterHeater.setAway": {
25710
26159
  capName: "water-heater",
25711
26160
  capScope: "device",
@@ -25724,54 +26173,6 @@ Object.freeze({
25724
26173
  addonId: null,
25725
26174
  access: "create"
25726
26175
  },
25727
- "webrtc.closeSession": {
25728
- capName: "webrtc",
25729
- capScope: "system",
25730
- addonId: null,
25731
- access: "create"
25732
- },
25733
- "webrtc.createSession": {
25734
- capName: "webrtc",
25735
- capScope: "system",
25736
- addonId: null,
25737
- access: "create"
25738
- },
25739
- "webrtc.handleAnswer": {
25740
- capName: "webrtc",
25741
- capScope: "system",
25742
- addonId: null,
25743
- access: "create"
25744
- },
25745
- "webrtc.handleOffer": {
25746
- capName: "webrtc",
25747
- capScope: "system",
25748
- addonId: null,
25749
- access: "create"
25750
- },
25751
- "webrtc.hasAdaptiveBitrate": {
25752
- capName: "webrtc",
25753
- capScope: "system",
25754
- addonId: null,
25755
- access: "view"
25756
- },
25757
- "webrtc.registerStream": {
25758
- capName: "webrtc",
25759
- capScope: "system",
25760
- addonId: null,
25761
- access: "create"
25762
- },
25763
- "webrtc.supportsStream": {
25764
- capName: "webrtc",
25765
- capScope: "system",
25766
- addonId: null,
25767
- access: "view"
25768
- },
25769
- "webrtc.unregisterStream": {
25770
- capName: "webrtc",
25771
- capScope: "system",
25772
- addonId: null,
25773
- access: "delete"
25774
- },
25775
26176
  "webrtcSession.addIceCandidate": {
25776
26177
  capName: "webrtc-session",
25777
26178
  capScope: "device",