@camstack/addon-provider-wyze 0.1.17 → 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 +681 -288
  2. package/dist/addon.mjs +681 -288
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4659,7 +4659,7 @@ function _instanceof(cls, params = {}) {
4659
4659
  return inst;
4660
4660
  }
4661
4661
  //#endregion
4662
- //#region ../types/dist/sleep-CZDdRBua.mjs
4662
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4663
4663
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4664
4664
  EventCategory["SystemBoot"] = "system.boot";
4665
4665
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4845,6 +4845,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4845
4845
  */
4846
4846
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4847
4847
  /**
4848
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4849
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4850
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4851
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4852
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4853
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4854
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4855
+ * topology change, so a dropped event self-heals on the next one (plus the
4856
+ * broker's long backstop reconcile query).
4857
+ */
4858
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4859
+ /**
4848
4860
  * Periodic snapshot of per-node pipeline-runner load
4849
4861
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4850
4862
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5368,10 +5380,6 @@ function hydrateField(field, values) {
5368
5380
  };
5369
5381
  }
5370
5382
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5371
- if (field.type === "password") return {
5372
- ...field,
5373
- value: ""
5374
- };
5375
5383
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5376
5384
  return {
5377
5385
  ...field,
@@ -6755,10 +6763,25 @@ function method(input, output, options) {
6755
6763
  timeoutMs: options?.timeoutMs
6756
6764
  };
6757
6765
  }
6766
+ /**
6767
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6768
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6769
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6770
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6771
+ */
6772
+ function systemMethod(input, output, options) {
6773
+ return {
6774
+ ...method(input, output, options),
6775
+ systemOnly: true
6776
+ };
6777
+ }
6758
6778
  /** Shorthand to define an event schema */
6759
6779
  function event(data) {
6760
6780
  return { data };
6761
6781
  }
6782
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6783
+ var VersionOutputSchema$1 = object({ version: string() });
6784
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6762
6785
  var StaticDirOutputSchema = object({ staticDir: string() });
6763
6786
  var VersionOutputSchema = object({ version: string() });
6764
6787
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6940,6 +6963,36 @@ var ModelFormatsSchema = object({
6940
6963
  tflite: ModelFormatEntrySchema.optional(),
6941
6964
  pt: ModelFormatEntrySchema.optional()
6942
6965
  });
6966
+ /**
6967
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6968
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6969
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6970
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6971
+ * resolution/download/persistence; this is a presentation overlay resolved back
6972
+ * to an `id`.
6973
+ */
6974
+ var ModelVariantGroupSchema = object({
6975
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6976
+ family: string(),
6977
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6978
+ tier: string(),
6979
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6980
+ precision: _enum(["fp32", "int8"]).optional(),
6981
+ /**
6982
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6983
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6984
+ * future performance variants plug into.
6985
+ */
6986
+ optimization: _enum(["standard", "fast"]).optional(),
6987
+ /**
6988
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6989
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6990
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6991
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6992
+ * the group so the selector can offer it as a variant axis.
6993
+ */
6994
+ resolution: number().int().positive().optional()
6995
+ });
6943
6996
  var ModelCatalogEntrySchema = object({
6944
6997
  id: string(),
6945
6998
  name: string(),
@@ -6969,7 +7022,43 @@ var ModelCatalogEntrySchema = object({
6969
7022
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6970
7023
  * Downloaded into the same modelsDir alongside the model file.
6971
7024
  */
6972
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7025
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7026
+ /**
7027
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7028
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7029
+ * model list and excluded from the auto format-default pick. Set on the
7030
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7031
+ * the active lineup stays the coherent curated ladder without deleting a
7032
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7033
+ * an explicit legacy id that has a build for the node's format.
7034
+ */
7035
+ legacy: boolean().optional(),
7036
+ /**
7037
+ * Measured quality/latency metadata — populated from the benchmark addon on
7038
+ * the real node classes. Absent = not yet measured (most entries today; the
7039
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7040
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7041
+ */
7042
+ metrics: object({
7043
+ map50: number().optional(),
7044
+ p95LatencyMs: record(string(), number()).optional()
7045
+ }).optional(),
7046
+ /**
7047
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7048
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7049
+ * the retraining addon and any future commercial distribution.
7050
+ */
7051
+ license: string().optional(),
7052
+ /**
7053
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7054
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7055
+ * of a family's sizes and quantizations collapse into one grouped picker
7056
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7057
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7058
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7059
+ * is a presentation overlay resolved back to an `id`.
7060
+ */
7061
+ group: ModelVariantGroupSchema.optional()
6973
7062
  });
6974
7063
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6975
7064
  format: literal("openvino"),
@@ -7030,8 +7119,8 @@ var RecordingModeSchema = _enum([
7030
7119
  "onAudioThreshold"
7031
7120
  ]);
7032
7121
  /**
7033
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7034
- * reads directly (never inferred from `rules`):
7122
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7123
+ * UI reads directly (never inferred from `rules`):
7035
7124
  * - `off` — not recording.
7036
7125
  * - `events` — record only around triggers (motion / audio threshold),
7037
7126
  * with pre/post-buffer.
@@ -9194,26 +9283,13 @@ onBrightnessChanged: { data: object({
9194
9283
  */
9195
9284
  runtimeState: BrightnessStatusSchema
9196
9285
  };
9286
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9197
9287
  var StreamFormatSchema = _enum([
9198
9288
  "webrtc",
9199
9289
  "hls",
9200
9290
  "mjpeg",
9201
9291
  "rtsp"
9202
9292
  ]);
9203
- var StreamInfoSchema = object({
9204
- streamId: string(),
9205
- format: StreamFormatSchema,
9206
- url: string().nullable(),
9207
- active: boolean()
9208
- });
9209
- method(object({
9210
- streamId: string(),
9211
- sourceUrl: string(),
9212
- codec: string().optional()
9213
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9214
- streamId: string(),
9215
- format: StreamFormatSchema
9216
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9217
9293
  var RtspRestreamEntrySchema = object({
9218
9294
  brokerId: string(),
9219
9295
  url: string(),
@@ -10081,37 +10157,7 @@ var consumablesCapability = {
10081
10157
  scope: "device",
10082
10158
  deviceNative: true,
10083
10159
  mode: "singleton",
10084
- deviceTypes: [
10085
- DeviceType.Camera,
10086
- DeviceType.Hub,
10087
- DeviceType.Light,
10088
- DeviceType.Siren,
10089
- DeviceType.Switch,
10090
- DeviceType.Sensor,
10091
- DeviceType.Thermostat,
10092
- DeviceType.Button,
10093
- DeviceType.EventEmitter,
10094
- DeviceType.Update,
10095
- DeviceType.Generic,
10096
- DeviceType.Notifier,
10097
- DeviceType.Script,
10098
- DeviceType.Automation,
10099
- DeviceType.Lock,
10100
- DeviceType.Cover,
10101
- DeviceType.Valve,
10102
- DeviceType.Humidifier,
10103
- DeviceType.WaterHeater,
10104
- DeviceType.Fan,
10105
- DeviceType.MediaPlayer,
10106
- DeviceType.AlarmPanel,
10107
- DeviceType.Control,
10108
- DeviceType.Presence,
10109
- DeviceType.Weather,
10110
- DeviceType.Vacuum,
10111
- DeviceType.LawnMower,
10112
- DeviceType.Container,
10113
- DeviceType.Image
10114
- ],
10160
+ deviceTypes: Object.values(DeviceType),
10115
10161
  deviceConfig: { ui: {
10116
10162
  kind: "widget",
10117
10163
  widgetId: "host/consumables-panel",
@@ -11569,7 +11615,7 @@ var BoundingBoxSchema = object({
11569
11615
  w: number(),
11570
11616
  h: number()
11571
11617
  });
11572
- var SpatialDetectionSchema = object({
11618
+ object({
11573
11619
  class: string(),
11574
11620
  originalClass: string(),
11575
11621
  score: number(),
@@ -11704,7 +11750,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11704
11750
  enabled: boolean(),
11705
11751
  modelId: string(),
11706
11752
  children: array(PipelineDefaultStepSchema).readonly(),
11707
- engine: PipelineEngineChoiceSchema.optional(),
11708
11753
  group: string().optional(),
11709
11754
  settings: record(string(), unknown()).optional()
11710
11755
  }));
@@ -11729,7 +11774,9 @@ var PipelineModelOptionSchema = object({
11729
11774
  formats: record(string(), object({
11730
11775
  downloaded: boolean(),
11731
11776
  sizeMB: number()
11732
- }))
11777
+ })),
11778
+ group: ModelVariantGroupSchema.optional(),
11779
+ legacy: boolean().optional()
11733
11780
  });
11734
11781
  var ConfigFieldBridge = custom();
11735
11782
  var PipelineAddonSchemaSchema = object({
@@ -11743,6 +11790,7 @@ var PipelineAddonSchemaSchema = object({
11743
11790
  defaultModelId: string(),
11744
11791
  defaultModelIdByFormat: record(string(), string()).optional(),
11745
11792
  enabledByDefault: boolean().optional(),
11793
+ backfillIntoExistingOverrides: boolean().optional(),
11746
11794
  defaultConfidence: number(),
11747
11795
  group: string().optional(),
11748
11796
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11759,11 +11807,6 @@ var PipelineSchemaSchema = object({
11759
11807
  selectedEngine: PipelineEngineChoiceSchema,
11760
11808
  slots: array(PipelineSlotSchemaSchema).readonly()
11761
11809
  });
11762
- var DetectorOutputSchema = object({
11763
- detections: array(SpatialDetectionSchema).readonly(),
11764
- inferenceMs: number(),
11765
- modelId: string()
11766
- });
11767
11810
  var EngineProvisioningSchema = object({
11768
11811
  runtimeId: _enum([
11769
11812
  "onnx",
@@ -11780,15 +11823,42 @@ var EngineProvisioningSchema = object({
11780
11823
  ]),
11781
11824
  progress: number().optional(),
11782
11825
  error: string().optional(),
11783
- nextRetryAt: number().optional()
11826
+ nextRetryAt: number().optional(),
11827
+ /**
11828
+ * Gate A (config-correctness gate at engine change): human-readable
11829
+ * config issues surfaced EAGERLY when the node's engine changes — model
11830
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11831
+ * has a <format> build"). Additive/optional: informational only, never
11832
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11833
+ * Absent/empty when the node-default tree resolves cleanly.
11834
+ */
11835
+ configIssues: array(string()).optional()
11784
11836
  });
11785
11837
  var PipelineStepInputSchema = lazy(() => object({
11786
11838
  addonId: string(),
11787
- modelId: string(),
11839
+ modelId: string().optional(),
11788
11840
  enabled: boolean().default(true),
11789
11841
  children: array(PipelineStepInputSchema).optional(),
11790
11842
  settings: record(string(), unknown()).optional()
11791
11843
  }));
11844
+ var ModelSubstitutionSchema = object({
11845
+ addonId: string(),
11846
+ chosen: string(),
11847
+ running: string(),
11848
+ format: string()
11849
+ });
11850
+ var PipelineValidationIssueSchema = object({
11851
+ addonId: string(),
11852
+ kind: _enum(["unknown-addon", "no-format-build"]),
11853
+ detail: string()
11854
+ });
11855
+ var PipelineValidationResultSchema = object({
11856
+ ok: boolean(),
11857
+ issues: array(PipelineValidationIssueSchema).readonly(),
11858
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11859
+ /** The node's `currentEngine.format` this validation ran against. */
11860
+ format: string()
11861
+ });
11792
11862
  var ReferenceImageEntrySchema = object({
11793
11863
  filename: string(),
11794
11864
  stepIds: array(string()).readonly().optional()
@@ -11859,7 +11929,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11859
11929
  })) }), object({ success: literal(true) }), {
11860
11930
  kind: "mutation",
11861
11931
  auth: "admin"
11862
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11932
+ }), method(object({ nodeId: string() }), object({
11933
+ success: literal(true),
11934
+ clearedDevices: number()
11935
+ }), {
11936
+ kind: "mutation",
11937
+ auth: "admin"
11938
+ }), 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({
11863
11939
  name: string(),
11864
11940
  steps: array(PipelineTemplateStepSchema).readonly(),
11865
11941
  engine: PipelineEngineChoiceSchema
@@ -11876,10 +11952,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11876
11952
  modelId: string(),
11877
11953
  format: ModelFormatSchema$1
11878
11954
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11879
- addonId: string(),
11880
- frame: FrameInputSchema,
11881
- config: record(string(), unknown()).optional()
11882
- }), DetectorOutputSchema), method(object({
11883
11955
  engine: PipelineEngineChoiceSchema.optional(),
11884
11956
  steps: array(PipelineStepInputSchema).min(1),
11885
11957
  frame: FrameInputSchema.optional(),
@@ -12058,6 +12130,25 @@ var zonesCapability = {
12058
12130
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12059
12131
  };
12060
12132
  /**
12133
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12134
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12135
+ * so the caller supplies only the detection-res bbox divided by the detection
12136
+ * dims — no native resolution to plumb.
12137
+ */
12138
+ var NativeCropBboxSchema = object({
12139
+ x: number(),
12140
+ y: number(),
12141
+ w: number(),
12142
+ h: number()
12143
+ });
12144
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12145
+ var NativeCropResultSchema = object({
12146
+ /** Packed rgb (24-bit) pixels of the crop. */
12147
+ bytes: _instanceof(Uint8Array),
12148
+ width: number().int().positive(),
12149
+ height: number().int().positive()
12150
+ });
12151
+ /**
12061
12152
  * Per-camera tunable ranges + defaults. Single source of truth used
12062
12153
  * by both the Zod data schema (validation + default fallback) and
12063
12154
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12152,6 +12243,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12152
12243
  kind: literal("remote-restream"),
12153
12244
  /** The camera's source-owner node (slice 1: always the hub). */
12154
12245
  ownerNodeId: string(),
12246
+ /**
12247
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12248
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12249
+ * dials THIS host for the owner's restream, in preference to the
12250
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12251
+ */
12252
+ ownerReachableHost: string().optional(),
12155
12253
  /** Operator override for the owner host the runner dials. */
12156
12254
  hubHostnameOverride: string().optional()
12157
12255
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12160,13 +12258,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12160
12258
  * specific runner instance via `attachCamera`. Carries everything the
12161
12259
  * runner needs to subscribe to the local broker and execute inference.
12162
12260
  *
12163
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12164
- * optional `audio`) travels with the attach payload. The runner keeps it
12165
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12166
- * restart the orchestrator re-sends the latest snapshot.
12167
- *
12168
- * `engine`/`steps`/`audio` are optional during the additive migration
12169
- * window; once orchestrator + UI are migrated they become required.
12261
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12262
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12263
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12264
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12265
+ * node-local, resolved by the executing runner at dispatch time.
12170
12266
  */
12171
12267
  var RunnerCameraConfigSchema = object({
12172
12268
  deviceId: number(),
@@ -12217,14 +12313,11 @@ var RunnerCameraConfigSchema = object({
12217
12313
  */
12218
12314
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12219
12315
  pipelineEnabled: boolean().default(true),
12220
- /** Engine choice for video steps (runtime+backend+format). */
12221
- engine: PipelineEngineChoiceSchema.optional(),
12222
12316
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12223
12317
  steps: array(PipelineStepInputSchema).readonly().optional(),
12224
12318
  /** Audio classification branch. `enabled:false` disables, null skips. */
12225
12319
  audio: object({
12226
- engine: PipelineEngineChoiceSchema,
12227
- modelId: string(),
12320
+ modelId: string().optional(),
12228
12321
  enabled: boolean()
12229
12322
  }).nullable().optional(),
12230
12323
  /**
@@ -12311,7 +12404,11 @@ var RunnerLocalMetricsSchema = object({
12311
12404
  avgInferenceTimeMs: number(),
12312
12405
  queueDepth: number()
12313
12406
  });
12314
- 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());
12407
+ 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({
12408
+ handle: FrameHandleSchema,
12409
+ bbox: NativeCropBboxSchema,
12410
+ maxWidth: number().int().positive().optional()
12411
+ }), NativeCropResultSchema.nullable());
12315
12412
  /**
12316
12413
  * Hardware / firmware motion sensor cap — binary detected state plus
12317
12414
  * a timestamp of the last observation. Distinct from
@@ -15242,7 +15339,9 @@ var AddonPageDeclarationSchema$1 = object({
15242
15339
  icon: string(),
15243
15340
  path: string(),
15244
15341
  remoteName: string(),
15245
- bundle: string()
15342
+ bundle: string(),
15343
+ section: string().optional(),
15344
+ sectionLabel: string().optional()
15246
15345
  });
15247
15346
  var AddonPageInfoSchema = object({
15248
15347
  addonId: string(),
@@ -15282,7 +15381,18 @@ var AddonPageDeclarationSchema = object({
15282
15381
  * the static-file route can compute an mtime-based cache-buster URL
15283
15382
  * without a separate filesystem stat.
15284
15383
  */
15285
- bundle: string()
15384
+ bundle: string(),
15385
+ /**
15386
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15387
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15388
+ * Any OTHER string creates (or joins) a custom section rendered after
15389
+ * the built-in groups; its label comes from `sectionLabel` (first
15390
+ * declaration wins), falling back to the id. Absent → the legacy
15391
+ * "Addon Pages" group.
15392
+ */
15393
+ section: string().optional(),
15394
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15395
+ sectionLabel: string().optional()
15286
15396
  });
15287
15397
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15288
15398
  var AddonHttpRouteSchema = object({
@@ -15498,6 +15608,17 @@ var WidgetMetadataSchema = object({
15498
15608
  deviceContext: boolean().default(false),
15499
15609
  integrationContext: boolean().default(false)
15500
15610
  }),
15611
+ /**
15612
+ * Loadable BEFORE authentication. The normal widget registry listing
15613
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15614
+ * (the login page) cannot discover a widget through it. A widget that
15615
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15616
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15617
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15618
+ * than the authenticated registry, and its bundle is served by the
15619
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15620
+ */
15621
+ preAuth: boolean().optional().default(false),
15501
15622
  /** Dashboard placement HINTS (operator can override per instance). */
15502
15623
  defaultSize: WidgetSizeEnum.default("md"),
15503
15624
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15799,6 +15920,66 @@ method(object({
15799
15920
  password: string()
15800
15921
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15801
15922
  /**
15923
+ * `login-method` — collection cap through which auth addons contribute
15924
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15925
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15926
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15927
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15928
+ * procedure aggregates them for the unauthenticated login page.
15929
+ *
15930
+ * A contribution is a discriminated union on `kind`:
15931
+ *
15932
+ * - `redirect` — a declarative button. The login page renders a generic
15933
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15934
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15935
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15936
+ * login page needs NO change.
15937
+ *
15938
+ * - `widget` — a Module-Federation widget the login page mounts (via
15939
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15940
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15941
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15942
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15943
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15944
+ *
15945
+ * Every contribution carries a `stage`:
15946
+ * - `primary` — shown on the first credentials screen (OIDC /
15947
+ * magic-link buttons; a future usernameless passkey).
15948
+ * - `second-factor` — shown AFTER the password leg, gated on the
15949
+ * returned `factors` (passkey-as-2FA today).
15950
+ *
15951
+ * `mount: skip` — the cap is read server-side by the core auth router
15952
+ * (`registry.getCollection('login-method')`), never mounted as its own
15953
+ * tRPC router.
15954
+ */
15955
+ /** When a login method renders in the two-phase login flow. */
15956
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15957
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15958
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15959
+ kind: literal("redirect"),
15960
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15961
+ id: string(),
15962
+ /** Operator-facing button label. */
15963
+ label: string(),
15964
+ /** lucide-react icon name. */
15965
+ icon: string().optional(),
15966
+ /** Addon-owned HTTP route the button navigates to (GET). */
15967
+ startUrl: string(),
15968
+ stage: LoginStageEnum
15969
+ }), object({
15970
+ kind: literal("widget"),
15971
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15972
+ id: string(),
15973
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15974
+ addonId: string(),
15975
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15976
+ bundle: string(),
15977
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15978
+ remote: WidgetRemoteSchema,
15979
+ stage: LoginStageEnum
15980
+ })]);
15981
+ method(_void(), array(LoginMethodContributionSchema).readonly());
15982
+ /**
15802
15983
  * Orchestrator-side destination metadata. The orchestrator computes
15803
15984
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15804
15985
  * (admin UI, restore flow) see one canonical key.
@@ -17919,7 +18100,17 @@ var TrackSchema = object({
17919
18100
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17920
18101
  totalDistance: number(),
17921
18102
  state: TrackStateSchema,
17922
- active: boolean()
18103
+ active: boolean(),
18104
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18105
+ * track expiry, recomputed on late label). Absent on legacy rows written
18106
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18107
+ importance: number().optional(),
18108
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18109
+ * "best" frame). Absent when the track produced no object events. */
18110
+ bestEventId: string().optional(),
18111
+ /** Tag of the importance sub-signal that dominated the score
18112
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18113
+ importanceReason: string().optional()
17923
18114
  });
17924
18115
  var BaseEventFields = {
17925
18116
  id: string(),
@@ -17984,8 +18175,18 @@ var ObjectEventSchema = object({
17984
18175
  frameHeight: number().optional(),
17985
18176
  /** MediaStore key for the crop attached to this event (if any). */
17986
18177
  mediaKey: string().optional(),
18178
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18179
+ * best-detection full frame). Resolve via the event-media data-plane
18180
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18181
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18182
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18183
+ keyFrameMediaKey: string().optional(),
17987
18184
  /** Populated by B5 (recording playback URL for this event). */
17988
- mediaUrl: string().optional()
18185
+ mediaUrl: string().optional(),
18186
+ /** The parent track's key-event importance [0,1], propagated to every object
18187
+ * event of the track (so an event row can be sorted by importance without a
18188
+ * track join). Absent on legacy rows / before the track was scored. */
18189
+ importance: number().optional()
17989
18190
  });
17990
18191
  var AudioEventSchema = object({
17991
18192
  ...BaseEventFields,
@@ -18009,7 +18210,8 @@ var MediaFileKindEnum = _enum([
18009
18210
  "fullFrame",
18010
18211
  "fullFrameBoxed",
18011
18212
  "faceCrop",
18012
- "plateCrop"
18213
+ "plateCrop",
18214
+ "keyFrame"
18013
18215
  ]);
18014
18216
  var MediaFileSchema = object({
18015
18217
  key: string(),
@@ -18030,6 +18232,32 @@ var DeviceEventQueryInput = object({
18030
18232
  projection: _enum(["full", "slim"]).optional()
18031
18233
  });
18032
18234
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18235
+ var KeyEventQueryInput = object({
18236
+ deviceId: number(),
18237
+ /** Window lower bound (track firstSeen ≥ since). */
18238
+ since: number(),
18239
+ /** Window upper bound (track firstSeen ≤ until). */
18240
+ until: number(),
18241
+ limit: number().int().min(1).max(200).default(50),
18242
+ /** Drop tracks scoring below this importance. */
18243
+ minImportance: number().min(0).max(1).optional(),
18244
+ /** Restrict to a single class (e.g. 'person'). */
18245
+ classFilter: string().optional()
18246
+ });
18247
+ var KeyEventSchema = object({
18248
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18249
+ id: string(),
18250
+ trackId: string(),
18251
+ /** Track start time (firstSeen). */
18252
+ timestamp: number(),
18253
+ className: string(),
18254
+ label: string().optional(),
18255
+ importance: number(),
18256
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18257
+ bestEventId: string(),
18258
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18259
+ windowMs: number().optional()
18260
+ });
18033
18261
  var TrackedDetectionSchema = object({
18034
18262
  trackId: string(),
18035
18263
  className: string(),
@@ -18059,7 +18287,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18059
18287
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18060
18288
  kind: "mutation",
18061
18289
  auth: "admin"
18062
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18290
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18063
18291
  deviceId: number(),
18064
18292
  since: number(),
18065
18293
  until: number(),
@@ -18104,11 +18332,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18104
18332
  timestamp: number()
18105
18333
  });
18106
18334
  var CameraPipelineConfigSchema = object({
18107
- engine: PipelineEngineChoiceSchema,
18335
+ engine: PipelineEngineChoiceSchema.optional(),
18108
18336
  steps: array(PipelineStepInputSchema).readonly(),
18109
18337
  audio: object({
18110
- engine: PipelineEngineChoiceSchema,
18111
- modelId: string(),
18338
+ engine: PipelineEngineChoiceSchema.optional(),
18339
+ modelId: string().optional(),
18112
18340
  enabled: boolean(),
18113
18341
  settings: record(string(), unknown()).readonly().optional()
18114
18342
  }).nullable().optional()
@@ -18123,7 +18351,7 @@ var PipelineTemplateSchema = object({
18123
18351
  });
18124
18352
  var AgentAddonConfigSchema = object({
18125
18353
  enabled: boolean(),
18126
- modelId: string(),
18354
+ modelId: string().optional(),
18127
18355
  settings: record(string(), unknown()).readonly()
18128
18356
  });
18129
18357
  var AgentPipelineSettingsSchema = object({
@@ -18133,12 +18361,25 @@ var AgentPipelineSettingsSchema = object({
18133
18361
  detectWeight: number().positive().optional(),
18134
18362
  /** Node is eligible to run the detection pipeline (decode + inference). */
18135
18363
  detect: boolean().optional(),
18136
- /** Node is eligible to host decoder sessions. */
18364
+ /**
18365
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18366
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18367
+ * the schema ONLY so persisted stores written before the removal still
18368
+ * parse — no code reads it and no write path emits it.
18369
+ */
18137
18370
  decode: boolean().optional(),
18138
18371
  /** Node is eligible to run audio-analyzer sessions. */
18139
18372
  audio: boolean().optional(),
18140
18373
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18141
- ingest: boolean().optional()
18374
+ ingest: boolean().optional(),
18375
+ /**
18376
+ * Operator override for the LAN host a cross-node decoder dials to reach
18377
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18378
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18379
+ * it already uses to reach the hub). Set this only when the auto-detected
18380
+ * address is wrong (multi-homed host, NAT, custom interface).
18381
+ */
18382
+ reachableHost: string().optional()
18142
18383
  });
18143
18384
  var CameraPipelineForAgentSchema = object({
18144
18385
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18186,25 +18427,6 @@ var PipelineAssignmentSchema = object({
18186
18427
  assignedAt: number()
18187
18428
  });
18188
18429
  /**
18189
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18190
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18191
- * → co-located with pipeline → capacity).
18192
- */
18193
- var DecoderAssignmentSchema = object({
18194
- deviceId: number(),
18195
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18196
- decoderNodeId: string(),
18197
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18198
- pinned: boolean(),
18199
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18200
- reason: _enum([
18201
- "manual",
18202
- "co-located",
18203
- "capacity",
18204
- "hardware-affinity"
18205
- ])
18206
- });
18207
- /**
18208
18430
  * Per-agent load summary surfaced to the load balancer + dashboards.
18209
18431
  * Aggregated from each runner's `getLocalLoad` cap call.
18210
18432
  */
@@ -18244,6 +18466,15 @@ var GlobalMetricsSchema = object({
18244
18466
  * capability providers.
18245
18467
  */
18246
18468
  var CapabilityBindingsSchema = record(string(), string());
18469
+ /**
18470
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18471
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18472
+ */
18473
+ var IngestOwnerSchema = object({
18474
+ ownerNodeId: string(),
18475
+ reachableHost: string().optional(),
18476
+ configIssue: string().optional()
18477
+ });
18247
18478
  /** Source block — always present; derives from the stream catalog. */
18248
18479
  var CameraSourceStatusSchema = object({ streams: array(object({
18249
18480
  camStreamId: string(),
@@ -18258,6 +18489,14 @@ var CameraAssignmentStatusSchema = object({
18258
18489
  detectionNodeId: string().nullable(),
18259
18490
  decoderNodeId: string().nullable(),
18260
18491
  audioNodeId: string().nullable(),
18492
+ /**
18493
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18494
+ * hosts the broker/restream) — the cluster ingest owner today
18495
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18496
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18497
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18498
+ */
18499
+ sourceNodeId: string().nullable(),
18261
18500
  pinned: object({
18262
18501
  detection: boolean(),
18263
18502
  decoder: boolean(),
@@ -18390,16 +18629,7 @@ method(object({
18390
18629
  }), object({ success: literal(true) }), {
18391
18630
  kind: "mutation",
18392
18631
  auth: "admin"
18393
- }), method(object({
18394
- deviceId: number(),
18395
- nodeId: string()
18396
- }), _void(), {
18397
- kind: "mutation",
18398
- auth: "admin"
18399
- }), method(object({ deviceId: number() }), _void(), {
18400
- kind: "mutation",
18401
- auth: "admin"
18402
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18632
+ }), method(_void(), IngestOwnerSchema), method(object({
18403
18633
  deviceId: number(),
18404
18634
  nodeId: string()
18405
18635
  }), object({ success: literal(true) }), {
@@ -18420,10 +18650,7 @@ method(object({
18420
18650
  nodeId: string(),
18421
18651
  pinned: boolean(),
18422
18652
  assignedAt: number()
18423
- }))), method(object({
18424
- deviceId: number(),
18425
- pipelineNodeId: string().optional()
18426
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18653
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18427
18654
  nodeId: string(),
18428
18655
  settings: AgentPipelineSettingsSchema
18429
18656
  })).readonly()), method(object({
@@ -18453,12 +18680,26 @@ method(object({
18453
18680
  }), method(object({
18454
18681
  agentNodeId: string(),
18455
18682
  detect: boolean().nullable().optional(),
18456
- decode: boolean().nullable().optional(),
18457
18683
  audio: boolean().nullable().optional(),
18458
18684
  ingest: boolean().nullable().optional()
18459
18685
  }), object({ success: literal(true) }), {
18460
18686
  kind: "mutation",
18461
18687
  auth: "admin"
18688
+ }), method(object({
18689
+ agentNodeId: string(),
18690
+ reachableHost: string().nullable()
18691
+ }), object({ success: literal(true) }), {
18692
+ kind: "mutation",
18693
+ auth: "admin"
18694
+ }), method(object({ agentNodeId: string() }), object({
18695
+ success: literal(true),
18696
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18697
+ effectiveModelId: string().nullable(),
18698
+ /** Number of cameras whose node-scoped overrides were cleared. */
18699
+ clearedCameraOverrides: number()
18700
+ }), {
18701
+ kind: "mutation",
18702
+ auth: "admin"
18462
18703
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18463
18704
  deviceId: number(),
18464
18705
  addonId: string(),
@@ -18503,22 +18744,131 @@ method(object({
18503
18744
  kind: "mutation",
18504
18745
  auth: "admin"
18505
18746
  });
18506
- var RegisteredStreamSchema = object({
18507
- streamId: string(),
18508
- label: string().optional(),
18509
- codec: string(),
18510
- type: _enum(["video", "audio"]),
18511
- sourceUrl: string()
18747
+ /**
18748
+ * server-management — per-NODE singleton capability for a node's ROOT
18749
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18750
+ * agents).
18751
+ *
18752
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18753
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18754
+ * version describes the node. Updates install into
18755
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18756
+ * starter (probation boot + auto-rollback to N-1).
18757
+ *
18758
+ * Providers:
18759
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18760
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18761
+ * unpinned calls.
18762
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18763
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18764
+ * `$hub.registerNode` manifest.
18765
+ *
18766
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18767
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18768
+ * SDK) routes the call to that node's provider via the standard remote
18769
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18770
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18771
+ *
18772
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18773
+ */
18774
+ /**
18775
+ * Where the running hub's code was loaded from:
18776
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18777
+ * plain resolution and runtime updates are refused.
18778
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18779
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18780
+ */
18781
+ var ServerBootModeSchema = _enum([
18782
+ "workspace",
18783
+ "baked",
18784
+ "data-root"
18785
+ ]);
18786
+ /**
18787
+ * Update lifecycle state:
18788
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18789
+ * - `pending-restart` — a version is staged and the node has NOT yet
18790
+ * restarted onto it (still running the OLD version).
18791
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18792
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18793
+ * Apply/rollback are refused in this state and the node must NOT be
18794
+ * manually restarted, or the probation boot auto-rolls-back.
18795
+ */
18796
+ var ServerUpdateStateSchema = _enum([
18797
+ "idle",
18798
+ "checking",
18799
+ "staging",
18800
+ "pending-restart",
18801
+ "awaiting-confirmation"
18802
+ ]);
18803
+ var ServerRollbackInfoSchema = object({
18804
+ /** The version that failed (or was manually rolled back). */
18805
+ fromVersion: string(),
18806
+ /** The version rolled back to; null = the baked seed. */
18807
+ toVersion: string().nullable(),
18808
+ atMs: number(),
18809
+ reason: string()
18512
18810
  });
18513
- var ExposedResourceSchema = object({
18514
- streamId: string(),
18515
- format: string(),
18516
- value: string()
18811
+ var ServerPackageStatusSchema = object({
18812
+ /** Root package name (`@camstack/server` on the hub). */
18813
+ packageName: string(),
18814
+ /** Version of the code the running process ACTUALLY loaded. */
18815
+ runningVersion: string().nullable(),
18816
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18817
+ nodeRuntimeVersion: string().nullable(),
18818
+ /** Active data-dir root version; null when booted from seed/workspace. */
18819
+ activeVersion: string().nullable(),
18820
+ /** N-1 version kept for rollback; null when no previous version exists. */
18821
+ previousVersion: string().nullable(),
18822
+ /** Version of the immutable baked seed closure (image fallback). */
18823
+ seedVersion: string().nullable(),
18824
+ /** Latest registry version from the most recent check (null = never checked). */
18825
+ latestVersion: string().nullable(),
18826
+ updateAvailable: boolean(),
18827
+ bootMode: ServerBootModeSchema,
18828
+ updateState: ServerUpdateStateSchema,
18829
+ /** Version staged + awaiting its probation boot, when one is pending. */
18830
+ pendingVersion: string().nullable(),
18831
+ /** Set when the last freshly-activated version failed its boot health-check. */
18832
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18833
+ /**
18834
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18835
+ * hub is running from the baked seed (or workspace) while installed data-dir
18836
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18837
+ */
18838
+ stateFileCorrupt: boolean(),
18839
+ lastCheckedAtMs: number().nullable()
18840
+ });
18841
+ var ServerUpdateCheckResultSchema = object({
18842
+ packageName: string(),
18843
+ runningVersion: string().nullable(),
18844
+ latestVersion: string().nullable(),
18845
+ updateAvailable: boolean(),
18846
+ checkedAtMs: number(),
18847
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18848
+ error: string().nullable()
18849
+ });
18850
+ var ServerUpdateActionResultSchema = object({
18851
+ accepted: boolean(),
18852
+ targetVersion: string().nullable(),
18853
+ /** True when a graceful restart was scheduled to apply the change. */
18854
+ restarting: boolean(),
18855
+ message: string()
18856
+ });
18857
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18858
+ kind: "mutation",
18859
+ auth: "admin"
18860
+ }), method(object({
18861
+ /** Explicit target version; omitted = latest from the registry. */
18862
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18863
+ kind: "mutation",
18864
+ auth: "admin"
18865
+ }), method(_void(), ServerUpdateActionResultSchema, {
18866
+ kind: "mutation",
18867
+ auth: "admin"
18868
+ }), method(_void(), ServerUpdateActionResultSchema, {
18869
+ kind: "mutation",
18870
+ auth: "admin"
18517
18871
  });
18518
- method(object({
18519
- deviceId: number(),
18520
- streams: array(RegisteredStreamSchema).readonly()
18521
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18522
18872
  /**
18523
18873
  * Query filter for settings-store collections.
18524
18874
  */
@@ -18671,9 +19021,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18671
19021
  /**
18672
19022
  * A single device snapshot returned as base64 JPEG/PNG.
18673
19023
  *
18674
- * Shared with the `snapshot-provider` collection cap the orchestrator
18675
- * receives the same shape from each native provider and from the
18676
- * broker-based fallback.
19024
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19025
+ * the device-native provider (onboard capture) or from the stream-broker
19026
+ * prebuffer fallback.
18677
19027
  */
18678
19028
  var SnapshotImageSchema = object({
18679
19029
  base64: string(),
@@ -18741,17 +19091,26 @@ var snapshotCapability = {
18741
19091
  invalidateCache: method(object({ deviceId: number() }), _void(), {
18742
19092
  kind: "mutation",
18743
19093
  auth: "admin"
18744
- })
19094
+ }),
19095
+ /**
19096
+ * Cache-only batch overview — answers from the wrapper's in-memory cache in
19097
+ * O(n) and NEVER triggers a capture. Lets a grid skip requesting images for
19098
+ * devices that never produced a frame, and gives it an ETag per device for
19099
+ * conditional (304-able) image fetches. `lastCapturedAt`/`cacheAgeMs`/`etag`
19100
+ * are null for a device with no cached frame.
19101
+ */
19102
+ getSnapshotOverview: systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
19103
+ deviceId: number(),
19104
+ lastCapturedAt: number().nullable(),
19105
+ cacheAgeMs: number().nullable(),
19106
+ etag: string().nullable()
19107
+ })))
18745
19108
  },
18746
19109
  status: {
18747
19110
  schema: SnapshotStatusSchema,
18748
19111
  kind: "poll"
18749
19112
  }
18750
19113
  };
18751
- method(object({ deviceId: number() }), boolean()), method(object({
18752
- deviceId: number(),
18753
- streamId: string().optional()
18754
- }), SnapshotImageSchema.nullable());
18755
19114
  /**
18756
19115
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18757
19116
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19002,10 +19361,32 @@ method(_void(), array(TurnServerSchema).readonly());
19002
19361
  * b. `finishAuthentication({userId, response})` → server verifies
19003
19362
  * the assertion, bumps the credential counter, returns ok.
19004
19363
  *
19364
+ * 2b. Usernameless (discoverable-credential) authentication — the
19365
+ * passkey IS the primary factor, no password leg:
19366
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19367
+ * EMPTY `allowCredentials` (the browser offers every resident
19368
+ * passkey it holds for this RP) + `userVerification: 'required'`
19369
+ * (the passkey replaces both factors, so UV is mandatory).
19370
+ * The challenge is stored server-side, NOT bound to any user.
19371
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19372
+ * resolves the credential by the response's credential id,
19373
+ * verifies the assertion against the stored challenge + that
19374
+ * credential's public key/counter, and returns the OWNING
19375
+ * `userId` — the caller (core auth router) mints the session.
19376
+ *
19005
19377
  * 3. Management:
19006
19378
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19007
19379
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19008
19380
  *
19381
+ * 4. Second-factor preference (opt-in, default OFF):
19382
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19383
+ * demanded as a second factor after a password login ONLY when the
19384
+ * user explicitly opts in via `setSecondFactorPreference`.
19385
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19386
+ * row ⇒ `enabled: false`).
19387
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19388
+ * the providing addon beside its credentials.
19389
+ *
19009
19390
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19010
19391
  * the admin-ui composes the begin/finish round-trip and never exposes
19011
19392
  * the cap to non-admins.
@@ -19048,6 +19429,17 @@ method(object({
19048
19429
  }), object({ verified: boolean() }), {
19049
19430
  kind: "mutation",
19050
19431
  access: "view"
19432
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19433
+ kind: "mutation",
19434
+ access: "view"
19435
+ }), method(object({
19436
+ /** AuthenticationResponseJSON from the browser. */
19437
+ response: record(string(), unknown()) }), object({
19438
+ verified: boolean(),
19439
+ userId: string().nullable()
19440
+ }), {
19441
+ kind: "mutation",
19442
+ access: "view"
19051
19443
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19052
19444
  userId: string(),
19053
19445
  credentialId: string()
@@ -19055,6 +19447,13 @@ method(object({
19055
19447
  kind: "mutation",
19056
19448
  auth: "admin",
19057
19449
  access: "delete"
19450
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19451
+ userId: string(),
19452
+ enabled: boolean()
19453
+ }), object({ success: literal(true) }), {
19454
+ kind: "mutation",
19455
+ auth: "admin",
19456
+ access: "create"
19058
19457
  });
19059
19458
  /**
19060
19459
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19112,9 +19511,10 @@ method(object({
19112
19511
  auth: "admin"
19113
19512
  });
19114
19513
  /**
19115
- * Optional client-side hints sent at session creation to help the
19116
- * provider pick the best native source. All fields are optional —
19117
- * a viewer that knows nothing still gets a sane default.
19514
+ * Optional client-side hints sent at session creation to help the provider
19515
+ * pick the best native source. All fields optional — a viewer that knows
19516
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19517
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19118
19518
  */
19119
19519
  var webrtcClientHintsSchema = object({
19120
19520
  viewportWidth: number().int().positive().optional(),
@@ -19125,22 +19525,6 @@ var webrtcClientHintsSchema = object({
19125
19525
  /** Hard tier override; takes precedence over scoring when registered. */
19126
19526
  prefersTier: string().optional()
19127
19527
  }).partial();
19128
- method(object({
19129
- streamId: string(),
19130
- sdpOffer: string()
19131
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19132
- streamId: string(),
19133
- codec: string()
19134
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19135
- streamId: string(),
19136
- hints: webrtcClientHintsSchema.optional()
19137
- }), object({
19138
- sessionId: string(),
19139
- sdpOffer: string()
19140
- }), { kind: "mutation" }), method(object({
19141
- sessionId: string(),
19142
- sdpAnswer: string()
19143
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19144
19528
  /**
19145
19529
  * Discriminated target for a WebRTC session. The client sends this
19146
19530
  * structured object instead of building / parsing brokerId strings;
@@ -19871,7 +20255,17 @@ var FaceInfoSchema = object({
19871
20255
  recognizedIdentityId: string().optional(),
19872
20256
  identityName: string().optional(),
19873
20257
  assigned: boolean(),
19874
- base64: string().optional()
20258
+ base64: string().optional(),
20259
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20260
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20261
+ * legacy rows written before design B. */
20262
+ faceBbox: BoundingBoxSchema.optional(),
20263
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20264
+ * Fetch the native JPEG via the event-media data-plane
20265
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20266
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20267
+ * back to the inline `base64` face crop. */
20268
+ keyFrameMediaKey: string().optional()
19875
20269
  });
19876
20270
  var FaceFilterEnum = _enum([
19877
20271
  "unassigned",
@@ -20619,6 +21013,16 @@ var TopologyCategorySchema = object({
20619
21013
  healthy: number(),
20620
21014
  addons: array(TopologyCategoryAddonSchema).readonly()
20621
21015
  });
21016
+ /**
21017
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
21018
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
21019
+ * version visibility for the Server management surface. Nullable: offline
21020
+ * rows and pre-phase-2 nodes report none.
21021
+ */
21022
+ var TopologyRootPackageSchema = object({
21023
+ name: string(),
21024
+ version: string()
21025
+ });
20622
21026
  var TopologyNodeSchema = object({
20623
21027
  id: string(),
20624
21028
  name: string(),
@@ -20642,7 +21046,8 @@ var TopologyNodeSchema = object({
20642
21046
  status: string()
20643
21047
  })).readonly(),
20644
21048
  processes: array(TopologyProcessSchema).readonly(),
20645
- categories: array(TopologyCategorySchema).readonly()
21049
+ categories: array(TopologyCategorySchema).readonly(),
21050
+ rootPackage: TopologyRootPackageSchema.nullable()
20646
21051
  });
20647
21052
  var CapUsageEdgeSchema = object({
20648
21053
  callerAddonId: string(),
@@ -23455,6 +23860,12 @@ Object.freeze({
23455
23860
  addonId: null,
23456
23861
  access: "create"
23457
23862
  },
23863
+ "loginMethod.getLoginMethods": {
23864
+ capName: "login-method",
23865
+ capScope: "system",
23866
+ addonId: null,
23867
+ access: "view"
23868
+ },
23458
23869
  "mediaPlayer.next": {
23459
23870
  capName: "media-player",
23460
23871
  capScope: "device",
@@ -24037,6 +24448,12 @@ Object.freeze({
24037
24448
  addonId: null,
24038
24449
  access: "view"
24039
24450
  },
24451
+ "pipelineAnalytics.getKeyEvents": {
24452
+ capName: "pipeline-analytics",
24453
+ capScope: "device",
24454
+ addonId: null,
24455
+ access: "view"
24456
+ },
24040
24457
  "pipelineAnalytics.getMotionEvents": {
24041
24458
  capName: "pipeline-analytics",
24042
24459
  capScope: "device",
@@ -24085,23 +24502,23 @@ Object.freeze({
24085
24502
  addonId: null,
24086
24503
  access: "create"
24087
24504
  },
24088
- "pipelineExecutor.deleteModel": {
24505
+ "pipelineExecutor.clearDeviceOverrides": {
24089
24506
  capName: "pipeline-executor",
24090
24507
  capScope: "system",
24091
24508
  addonId: null,
24092
24509
  access: "delete"
24093
24510
  },
24094
- "pipelineExecutor.deleteTemplate": {
24511
+ "pipelineExecutor.deleteModel": {
24095
24512
  capName: "pipeline-executor",
24096
24513
  capScope: "system",
24097
24514
  addonId: null,
24098
24515
  access: "delete"
24099
24516
  },
24100
- "pipelineExecutor.detect": {
24517
+ "pipelineExecutor.deleteTemplate": {
24101
24518
  capName: "pipeline-executor",
24102
24519
  capScope: "system",
24103
24520
  addonId: null,
24104
- access: "view"
24521
+ access: "delete"
24105
24522
  },
24106
24523
  "pipelineExecutor.downloadModel": {
24107
24524
  capName: "pipeline-executor",
@@ -24295,13 +24712,13 @@ Object.freeze({
24295
24712
  addonId: null,
24296
24713
  access: "create"
24297
24714
  },
24298
- "pipelineOrchestrator.assignAudio": {
24299
- capName: "pipeline-orchestrator",
24715
+ "pipelineExecutor.validatePipeline": {
24716
+ capName: "pipeline-executor",
24300
24717
  capScope: "system",
24301
24718
  addonId: null,
24302
- access: "create"
24719
+ access: "view"
24303
24720
  },
24304
- "pipelineOrchestrator.assignDecoder": {
24721
+ "pipelineOrchestrator.assignAudio": {
24305
24722
  capName: "pipeline-orchestrator",
24306
24723
  capScope: "system",
24307
24724
  addonId: null,
@@ -24385,19 +24802,13 @@ Object.freeze({
24385
24802
  addonId: null,
24386
24803
  access: "view"
24387
24804
  },
24388
- "pipelineOrchestrator.getDecoderAssignment": {
24389
- capName: "pipeline-orchestrator",
24390
- capScope: "system",
24391
- addonId: null,
24392
- access: "view"
24393
- },
24394
- "pipelineOrchestrator.getDecoderAssignments": {
24805
+ "pipelineOrchestrator.getGlobalMetrics": {
24395
24806
  capName: "pipeline-orchestrator",
24396
24807
  capScope: "system",
24397
24808
  addonId: null,
24398
24809
  access: "view"
24399
24810
  },
24400
- "pipelineOrchestrator.getGlobalMetrics": {
24811
+ "pipelineOrchestrator.getIngestOwner": {
24401
24812
  capName: "pipeline-orchestrator",
24402
24813
  capScope: "system",
24403
24814
  addonId: null,
@@ -24439,6 +24850,12 @@ Object.freeze({
24439
24850
  addonId: null,
24440
24851
  access: "delete"
24441
24852
  },
24853
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24854
+ capName: "pipeline-orchestrator",
24855
+ capScope: "system",
24856
+ addonId: null,
24857
+ access: "delete"
24858
+ },
24442
24859
  "pipelineOrchestrator.resolvePipeline": {
24443
24860
  capName: "pipeline-orchestrator",
24444
24861
  capScope: "system",
@@ -24475,37 +24892,37 @@ Object.freeze({
24475
24892
  addonId: null,
24476
24893
  access: "create"
24477
24894
  },
24478
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24895
+ "pipelineOrchestrator.setAgentReachableHost": {
24479
24896
  capName: "pipeline-orchestrator",
24480
24897
  capScope: "system",
24481
24898
  addonId: null,
24482
24899
  access: "create"
24483
24900
  },
24484
- "pipelineOrchestrator.setCameraStepOverride": {
24901
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24485
24902
  capName: "pipeline-orchestrator",
24486
24903
  capScope: "system",
24487
24904
  addonId: null,
24488
24905
  access: "create"
24489
24906
  },
24490
- "pipelineOrchestrator.setCameraStepToggle": {
24907
+ "pipelineOrchestrator.setCameraStepOverride": {
24491
24908
  capName: "pipeline-orchestrator",
24492
24909
  capScope: "system",
24493
24910
  addonId: null,
24494
24911
  access: "create"
24495
24912
  },
24496
- "pipelineOrchestrator.setCapabilityBinding": {
24913
+ "pipelineOrchestrator.setCameraStepToggle": {
24497
24914
  capName: "pipeline-orchestrator",
24498
24915
  capScope: "system",
24499
24916
  addonId: null,
24500
24917
  access: "create"
24501
24918
  },
24502
- "pipelineOrchestrator.unassignAudio": {
24919
+ "pipelineOrchestrator.setCapabilityBinding": {
24503
24920
  capName: "pipeline-orchestrator",
24504
24921
  capScope: "system",
24505
24922
  addonId: null,
24506
24923
  access: "create"
24507
24924
  },
24508
- "pipelineOrchestrator.unassignDecoder": {
24925
+ "pipelineOrchestrator.unassignAudio": {
24509
24926
  capName: "pipeline-orchestrator",
24510
24927
  capScope: "system",
24511
24928
  addonId: null,
@@ -24565,6 +24982,12 @@ Object.freeze({
24565
24982
  addonId: null,
24566
24983
  access: "view"
24567
24984
  },
24985
+ "pipelineRunner.getNativeCrop": {
24986
+ capName: "pipeline-runner",
24987
+ capScope: "system",
24988
+ addonId: null,
24989
+ access: "view"
24990
+ },
24568
24991
  "pipelineRunner.reportMotion": {
24569
24992
  capName: "pipeline-runner",
24570
24993
  capScope: "system",
@@ -24805,33 +25228,45 @@ Object.freeze({
24805
25228
  addonId: null,
24806
25229
  access: "create"
24807
25230
  },
24808
- "restreamer.getExposedResources": {
24809
- capName: "restreamer",
25231
+ "scriptRunner.run": {
25232
+ capName: "script-runner",
25233
+ capScope: "device",
25234
+ addonId: null,
25235
+ access: "create"
25236
+ },
25237
+ "scriptRunner.stop": {
25238
+ capName: "script-runner",
25239
+ capScope: "device",
25240
+ addonId: null,
25241
+ access: "create"
25242
+ },
25243
+ "serverManagement.applyServerUpdate": {
25244
+ capName: "server-management",
24810
25245
  capScope: "system",
24811
25246
  addonId: null,
24812
- access: "view"
25247
+ access: "create"
24813
25248
  },
24814
- "restreamer.registerDevice": {
24815
- capName: "restreamer",
25249
+ "serverManagement.checkServerUpdate": {
25250
+ capName: "server-management",
24816
25251
  capScope: "system",
24817
25252
  addonId: null,
24818
25253
  access: "create"
24819
25254
  },
24820
- "restreamer.unregisterDevice": {
24821
- capName: "restreamer",
25255
+ "serverManagement.getServerPackageStatus": {
25256
+ capName: "server-management",
24822
25257
  capScope: "system",
24823
25258
  addonId: null,
24824
- access: "delete"
25259
+ access: "view"
24825
25260
  },
24826
- "scriptRunner.run": {
24827
- capName: "script-runner",
24828
- capScope: "device",
25261
+ "serverManagement.restartServer": {
25262
+ capName: "server-management",
25263
+ capScope: "system",
24829
25264
  addonId: null,
24830
25265
  access: "create"
24831
25266
  },
24832
- "scriptRunner.stop": {
24833
- capName: "script-runner",
24834
- capScope: "device",
25267
+ "serverManagement.rollbackServerUpdate": {
25268
+ capName: "server-management",
25269
+ capScope: "system",
24835
25270
  addonId: null,
24836
25271
  access: "create"
24837
25272
  },
@@ -24919,23 +25354,17 @@ Object.freeze({
24919
25354
  addonId: null,
24920
25355
  access: "view"
24921
25356
  },
24922
- "snapshot.invalidateCache": {
25357
+ "snapshot.getSnapshotOverview": {
24923
25358
  capName: "snapshot",
24924
25359
  capScope: "device",
24925
25360
  addonId: null,
24926
- access: "create"
24927
- },
24928
- "snapshotProvider.getSnapshot": {
24929
- capName: "snapshot-provider",
24930
- capScope: "system",
24931
- addonId: null,
24932
25361
  access: "view"
24933
25362
  },
24934
- "snapshotProvider.supportsDevice": {
24935
- capName: "snapshot-provider",
24936
- capScope: "system",
25363
+ "snapshot.invalidateCache": {
25364
+ capName: "snapshot",
25365
+ capScope: "device",
24937
25366
  addonId: null,
24938
- access: "view"
25367
+ access: "create"
24939
25368
  },
24940
25369
  "ssoBridge.signBridgeToken": {
24941
25370
  capName: "sso-bridge",
@@ -25363,30 +25792,6 @@ Object.freeze({
25363
25792
  addonId: null,
25364
25793
  access: "view"
25365
25794
  },
25366
- "streamingEngine.getStreamUrl": {
25367
- capName: "streaming-engine",
25368
- capScope: "system",
25369
- addonId: null,
25370
- access: "view"
25371
- },
25372
- "streamingEngine.listStreams": {
25373
- capName: "streaming-engine",
25374
- capScope: "system",
25375
- addonId: null,
25376
- access: "view"
25377
- },
25378
- "streamingEngine.registerStream": {
25379
- capName: "streaming-engine",
25380
- capScope: "system",
25381
- addonId: null,
25382
- access: "create"
25383
- },
25384
- "streamingEngine.unregisterStream": {
25385
- capName: "streaming-engine",
25386
- capScope: "system",
25387
- addonId: null,
25388
- access: "delete"
25389
- },
25390
25795
  "streamParams.getConfigSchema": {
25391
25796
  capName: "stream-params",
25392
25797
  capScope: "device",
@@ -25633,6 +26038,12 @@ Object.freeze({
25633
26038
  addonId: null,
25634
26039
  access: "view"
25635
26040
  },
26041
+ "userPasskeys.beginDiscoverableAuthentication": {
26042
+ capName: "user-passkeys",
26043
+ capScope: "system",
26044
+ addonId: null,
26045
+ access: "view"
26046
+ },
25636
26047
  "userPasskeys.beginRegistration": {
25637
26048
  capName: "user-passkeys",
25638
26049
  capScope: "system",
@@ -25645,12 +26056,24 @@ Object.freeze({
25645
26056
  addonId: null,
25646
26057
  access: "view"
25647
26058
  },
26059
+ "userPasskeys.finishDiscoverableAuthentication": {
26060
+ capName: "user-passkeys",
26061
+ capScope: "system",
26062
+ addonId: null,
26063
+ access: "view"
26064
+ },
25648
26065
  "userPasskeys.finishRegistration": {
25649
26066
  capName: "user-passkeys",
25650
26067
  capScope: "system",
25651
26068
  addonId: null,
25652
26069
  access: "create"
25653
26070
  },
26071
+ "userPasskeys.getSecondFactorPreference": {
26072
+ capName: "user-passkeys",
26073
+ capScope: "system",
26074
+ addonId: null,
26075
+ access: "view"
26076
+ },
25654
26077
  "userPasskeys.listPasskeys": {
25655
26078
  capName: "user-passkeys",
25656
26079
  capScope: "system",
@@ -25663,6 +26086,12 @@ Object.freeze({
25663
26086
  addonId: null,
25664
26087
  access: "delete"
25665
26088
  },
26089
+ "userPasskeys.setSecondFactorPreference": {
26090
+ capName: "user-passkeys",
26091
+ capScope: "system",
26092
+ addonId: null,
26093
+ access: "create"
26094
+ },
25666
26095
  "vacuumControl.locate": {
25667
26096
  capName: "vacuum-control",
25668
26097
  capScope: "device",
@@ -25735,6 +26164,18 @@ Object.freeze({
25735
26164
  addonId: null,
25736
26165
  access: "view"
25737
26166
  },
26167
+ "viewerUi.getStaticDir": {
26168
+ capName: "viewer-ui",
26169
+ capScope: "system",
26170
+ addonId: null,
26171
+ access: "view"
26172
+ },
26173
+ "viewerUi.getVersion": {
26174
+ capName: "viewer-ui",
26175
+ capScope: "system",
26176
+ addonId: null,
26177
+ access: "view"
26178
+ },
25738
26179
  "waterHeater.setAway": {
25739
26180
  capName: "water-heater",
25740
26181
  capScope: "device",
@@ -25753,54 +26194,6 @@ Object.freeze({
25753
26194
  addonId: null,
25754
26195
  access: "create"
25755
26196
  },
25756
- "webrtc.closeSession": {
25757
- capName: "webrtc",
25758
- capScope: "system",
25759
- addonId: null,
25760
- access: "create"
25761
- },
25762
- "webrtc.createSession": {
25763
- capName: "webrtc",
25764
- capScope: "system",
25765
- addonId: null,
25766
- access: "create"
25767
- },
25768
- "webrtc.handleAnswer": {
25769
- capName: "webrtc",
25770
- capScope: "system",
25771
- addonId: null,
25772
- access: "create"
25773
- },
25774
- "webrtc.handleOffer": {
25775
- capName: "webrtc",
25776
- capScope: "system",
25777
- addonId: null,
25778
- access: "create"
25779
- },
25780
- "webrtc.hasAdaptiveBitrate": {
25781
- capName: "webrtc",
25782
- capScope: "system",
25783
- addonId: null,
25784
- access: "view"
25785
- },
25786
- "webrtc.registerStream": {
25787
- capName: "webrtc",
25788
- capScope: "system",
25789
- addonId: null,
25790
- access: "create"
25791
- },
25792
- "webrtc.supportsStream": {
25793
- capName: "webrtc",
25794
- capScope: "system",
25795
- addonId: null,
25796
- access: "view"
25797
- },
25798
- "webrtc.unregisterStream": {
25799
- capName: "webrtc",
25800
- capScope: "system",
25801
- addonId: null,
25802
- access: "delete"
25803
- },
25804
26197
  "webrtcSession.addIceCandidate": {
25805
26198
  capName: "webrtc-session",
25806
26199
  capScope: "device",