@camstack/addon-import-alexa 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 +681 -288
  2. package/dist/addon.mjs +681 -288
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4681,7 +4681,7 @@ function preprocess(fn, schema) {
4681
4681
  });
4682
4682
  }
4683
4683
  //#endregion
4684
- //#region ../types/dist/sleep-CZDdRBua.mjs
4684
+ //#region ../types/dist/sleep-BC9Yqte7.mjs
4685
4685
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4686
4686
  EventCategory["SystemBoot"] = "system.boot";
4687
4687
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4867,6 +4867,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4867
4867
  */
4868
4868
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4869
4869
  /**
4870
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4871
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4872
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4873
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4874
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4875
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4876
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4877
+ * topology change, so a dropped event self-heals on the next one (plus the
4878
+ * broker's long backstop reconcile query).
4879
+ */
4880
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4881
+ /**
4870
4882
  * Periodic snapshot of per-node pipeline-runner load
4871
4883
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4872
4884
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5390,10 +5402,6 @@ function hydrateField(field, values) {
5390
5402
  };
5391
5403
  }
5392
5404
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5393
- if (field.type === "password") return {
5394
- ...field,
5395
- value: ""
5396
- };
5397
5405
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5398
5406
  return {
5399
5407
  ...field,
@@ -6777,10 +6785,25 @@ function method(input, output, options) {
6777
6785
  timeoutMs: options?.timeoutMs
6778
6786
  };
6779
6787
  }
6788
+ /**
6789
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6790
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6791
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6792
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6793
+ */
6794
+ function systemMethod(input, output, options) {
6795
+ return {
6796
+ ...method(input, output, options),
6797
+ systemOnly: true
6798
+ };
6799
+ }
6780
6800
  /** Shorthand to define an event schema */
6781
6801
  function event(data) {
6782
6802
  return { data };
6783
6803
  }
6804
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6805
+ var VersionOutputSchema$1 = object({ version: string() });
6806
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6784
6807
  var StaticDirOutputSchema = object({ staticDir: string() });
6785
6808
  var VersionOutputSchema = object({ version: string() });
6786
6809
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6962,6 +6985,36 @@ var ModelFormatsSchema = object({
6962
6985
  tflite: ModelFormatEntrySchema.optional(),
6963
6986
  pt: ModelFormatEntrySchema.optional()
6964
6987
  });
6988
+ /**
6989
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6990
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6991
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6992
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6993
+ * resolution/download/persistence; this is a presentation overlay resolved back
6994
+ * to an `id`.
6995
+ */
6996
+ var ModelVariantGroupSchema = object({
6997
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6998
+ family: string(),
6999
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
7000
+ tier: string(),
7001
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
7002
+ precision: _enum(["fp32", "int8"]).optional(),
7003
+ /**
7004
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
7005
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
7006
+ * future performance variants plug into.
7007
+ */
7008
+ optimization: _enum(["standard", "fast"]).optional(),
7009
+ /**
7010
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
7011
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
7012
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
7013
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
7014
+ * the group so the selector can offer it as a variant axis.
7015
+ */
7016
+ resolution: number().int().positive().optional()
7017
+ });
6965
7018
  var ModelCatalogEntrySchema = object({
6966
7019
  id: string(),
6967
7020
  name: string(),
@@ -6991,7 +7044,43 @@ var ModelCatalogEntrySchema = object({
6991
7044
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6992
7045
  * Downloaded into the same modelsDir alongside the model file.
6993
7046
  */
6994
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7047
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7048
+ /**
7049
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7050
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7051
+ * model list and excluded from the auto format-default pick. Set on the
7052
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7053
+ * the active lineup stays the coherent curated ladder without deleting a
7054
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7055
+ * an explicit legacy id that has a build for the node's format.
7056
+ */
7057
+ legacy: boolean().optional(),
7058
+ /**
7059
+ * Measured quality/latency metadata — populated from the benchmark addon on
7060
+ * the real node classes. Absent = not yet measured (most entries today; the
7061
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7062
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7063
+ */
7064
+ metrics: object({
7065
+ map50: number().optional(),
7066
+ p95LatencyMs: record(string(), number()).optional()
7067
+ }).optional(),
7068
+ /**
7069
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7070
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7071
+ * the retraining addon and any future commercial distribution.
7072
+ */
7073
+ license: string().optional(),
7074
+ /**
7075
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7076
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7077
+ * of a family's sizes and quantizations collapse into one grouped picker
7078
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7079
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7080
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7081
+ * is a presentation overlay resolved back to an `id`.
7082
+ */
7083
+ group: ModelVariantGroupSchema.optional()
6995
7084
  });
6996
7085
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6997
7086
  format: literal("openvino"),
@@ -7169,8 +7258,8 @@ var RecordingModeSchema = _enum([
7169
7258
  "onAudioThreshold"
7170
7259
  ]);
7171
7260
  /**
7172
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7173
- * reads directly (never inferred from `rules`):
7261
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7262
+ * UI reads directly (never inferred from `rules`):
7174
7263
  * - `off` — not recording.
7175
7264
  * - `events` — record only around triggers (motion / audio threshold),
7176
7265
  * with pre/post-buffer.
@@ -9333,26 +9422,13 @@ onBrightnessChanged: { data: object({
9333
9422
  */
9334
9423
  runtimeState: BrightnessStatusSchema
9335
9424
  };
9425
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9336
9426
  var StreamFormatSchema = _enum([
9337
9427
  "webrtc",
9338
9428
  "hls",
9339
9429
  "mjpeg",
9340
9430
  "rtsp"
9341
9431
  ]);
9342
- var StreamInfoSchema = object({
9343
- streamId: string(),
9344
- format: StreamFormatSchema,
9345
- url: string().nullable(),
9346
- active: boolean()
9347
- });
9348
- method(object({
9349
- streamId: string(),
9350
- sourceUrl: string(),
9351
- codec: string().optional()
9352
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9353
- streamId: string(),
9354
- format: StreamFormatSchema
9355
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9356
9432
  var RtspRestreamEntrySchema = object({
9357
9433
  brokerId: string(),
9358
9434
  url: string(),
@@ -10220,37 +10296,7 @@ var consumablesCapability = {
10220
10296
  scope: "device",
10221
10297
  deviceNative: true,
10222
10298
  mode: "singleton",
10223
- deviceTypes: [
10224
- DeviceType.Camera,
10225
- DeviceType.Hub,
10226
- DeviceType.Light,
10227
- DeviceType.Siren,
10228
- DeviceType.Switch,
10229
- DeviceType.Sensor,
10230
- DeviceType.Thermostat,
10231
- DeviceType.Button,
10232
- DeviceType.EventEmitter,
10233
- DeviceType.Update,
10234
- DeviceType.Generic,
10235
- DeviceType.Notifier,
10236
- DeviceType.Script,
10237
- DeviceType.Automation,
10238
- DeviceType.Lock,
10239
- DeviceType.Cover,
10240
- DeviceType.Valve,
10241
- DeviceType.Humidifier,
10242
- DeviceType.WaterHeater,
10243
- DeviceType.Fan,
10244
- DeviceType.MediaPlayer,
10245
- DeviceType.AlarmPanel,
10246
- DeviceType.Control,
10247
- DeviceType.Presence,
10248
- DeviceType.Weather,
10249
- DeviceType.Vacuum,
10250
- DeviceType.LawnMower,
10251
- DeviceType.Container,
10252
- DeviceType.Image
10253
- ],
10299
+ deviceTypes: Object.values(DeviceType),
10254
10300
  deviceConfig: { ui: {
10255
10301
  kind: "widget",
10256
10302
  widgetId: "host/consumables-panel",
@@ -11708,7 +11754,7 @@ var BoundingBoxSchema = object({
11708
11754
  w: number(),
11709
11755
  h: number()
11710
11756
  });
11711
- var SpatialDetectionSchema = object({
11757
+ object({
11712
11758
  class: string(),
11713
11759
  originalClass: string(),
11714
11760
  score: number(),
@@ -11843,7 +11889,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11843
11889
  enabled: boolean(),
11844
11890
  modelId: string(),
11845
11891
  children: array(PipelineDefaultStepSchema).readonly(),
11846
- engine: PipelineEngineChoiceSchema.optional(),
11847
11892
  group: string().optional(),
11848
11893
  settings: record(string(), unknown()).optional()
11849
11894
  }));
@@ -11868,7 +11913,9 @@ var PipelineModelOptionSchema = object({
11868
11913
  formats: record(string(), object({
11869
11914
  downloaded: boolean(),
11870
11915
  sizeMB: number()
11871
- }))
11916
+ })),
11917
+ group: ModelVariantGroupSchema.optional(),
11918
+ legacy: boolean().optional()
11872
11919
  });
11873
11920
  var ConfigFieldBridge = custom();
11874
11921
  var PipelineAddonSchemaSchema = object({
@@ -11882,6 +11929,7 @@ var PipelineAddonSchemaSchema = object({
11882
11929
  defaultModelId: string(),
11883
11930
  defaultModelIdByFormat: record(string(), string()).optional(),
11884
11931
  enabledByDefault: boolean().optional(),
11932
+ backfillIntoExistingOverrides: boolean().optional(),
11885
11933
  defaultConfidence: number(),
11886
11934
  group: string().optional(),
11887
11935
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11898,11 +11946,6 @@ var PipelineSchemaSchema = object({
11898
11946
  selectedEngine: PipelineEngineChoiceSchema,
11899
11947
  slots: array(PipelineSlotSchemaSchema).readonly()
11900
11948
  });
11901
- var DetectorOutputSchema = object({
11902
- detections: array(SpatialDetectionSchema).readonly(),
11903
- inferenceMs: number(),
11904
- modelId: string()
11905
- });
11906
11949
  var EngineProvisioningSchema = object({
11907
11950
  runtimeId: _enum([
11908
11951
  "onnx",
@@ -11919,15 +11962,42 @@ var EngineProvisioningSchema = object({
11919
11962
  ]),
11920
11963
  progress: number().optional(),
11921
11964
  error: string().optional(),
11922
- nextRetryAt: number().optional()
11965
+ nextRetryAt: number().optional(),
11966
+ /**
11967
+ * Gate A (config-correctness gate at engine change): human-readable
11968
+ * config issues surfaced EAGERLY when the node's engine changes — model
11969
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11970
+ * has a <format> build"). Additive/optional: informational only, never
11971
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11972
+ * Absent/empty when the node-default tree resolves cleanly.
11973
+ */
11974
+ configIssues: array(string()).optional()
11923
11975
  });
11924
11976
  var PipelineStepInputSchema = lazy(() => object({
11925
11977
  addonId: string(),
11926
- modelId: string(),
11978
+ modelId: string().optional(),
11927
11979
  enabled: boolean().default(true),
11928
11980
  children: array(PipelineStepInputSchema).optional(),
11929
11981
  settings: record(string(), unknown()).optional()
11930
11982
  }));
11983
+ var ModelSubstitutionSchema = object({
11984
+ addonId: string(),
11985
+ chosen: string(),
11986
+ running: string(),
11987
+ format: string()
11988
+ });
11989
+ var PipelineValidationIssueSchema = object({
11990
+ addonId: string(),
11991
+ kind: _enum(["unknown-addon", "no-format-build"]),
11992
+ detail: string()
11993
+ });
11994
+ var PipelineValidationResultSchema = object({
11995
+ ok: boolean(),
11996
+ issues: array(PipelineValidationIssueSchema).readonly(),
11997
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11998
+ /** The node's `currentEngine.format` this validation ran against. */
11999
+ format: string()
12000
+ });
11931
12001
  var ReferenceImageEntrySchema = object({
11932
12002
  filename: string(),
11933
12003
  stepIds: array(string()).readonly().optional()
@@ -11998,7 +12068,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11998
12068
  })) }), object({ success: literal(true) }), {
11999
12069
  kind: "mutation",
12000
12070
  auth: "admin"
12001
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
12071
+ }), method(object({ nodeId: string() }), object({
12072
+ success: literal(true),
12073
+ clearedDevices: number()
12074
+ }), {
12075
+ kind: "mutation",
12076
+ auth: "admin"
12077
+ }), 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({
12002
12078
  name: string(),
12003
12079
  steps: array(PipelineTemplateStepSchema).readonly(),
12004
12080
  engine: PipelineEngineChoiceSchema
@@ -12015,10 +12091,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12015
12091
  modelId: string(),
12016
12092
  format: ModelFormatSchema$1
12017
12093
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
12018
- addonId: string(),
12019
- frame: FrameInputSchema,
12020
- config: record(string(), unknown()).optional()
12021
- }), DetectorOutputSchema), method(object({
12022
12094
  engine: PipelineEngineChoiceSchema.optional(),
12023
12095
  steps: array(PipelineStepInputSchema).min(1),
12024
12096
  frame: FrameInputSchema.optional(),
@@ -12197,6 +12269,25 @@ var zonesCapability = {
12197
12269
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12198
12270
  };
12199
12271
  /**
12272
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12273
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12274
+ * so the caller supplies only the detection-res bbox divided by the detection
12275
+ * dims — no native resolution to plumb.
12276
+ */
12277
+ var NativeCropBboxSchema = object({
12278
+ x: number(),
12279
+ y: number(),
12280
+ w: number(),
12281
+ h: number()
12282
+ });
12283
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12284
+ var NativeCropResultSchema = object({
12285
+ /** Packed rgb (24-bit) pixels of the crop. */
12286
+ bytes: _instanceof(Uint8Array),
12287
+ width: number().int().positive(),
12288
+ height: number().int().positive()
12289
+ });
12290
+ /**
12200
12291
  * Per-camera tunable ranges + defaults. Single source of truth used
12201
12292
  * by both the Zod data schema (validation + default fallback) and
12202
12293
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12291,6 +12382,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12291
12382
  kind: literal("remote-restream"),
12292
12383
  /** The camera's source-owner node (slice 1: always the hub). */
12293
12384
  ownerNodeId: string(),
12385
+ /**
12386
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12387
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12388
+ * dials THIS host for the owner's restream, in preference to the
12389
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12390
+ */
12391
+ ownerReachableHost: string().optional(),
12294
12392
  /** Operator override for the owner host the runner dials. */
12295
12393
  hubHostnameOverride: string().optional()
12296
12394
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12299,13 +12397,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12299
12397
  * specific runner instance via `attachCamera`. Carries everything the
12300
12398
  * runner needs to subscribe to the local broker and execute inference.
12301
12399
  *
12302
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12303
- * optional `audio`) travels with the attach payload. The runner keeps it
12304
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12305
- * restart the orchestrator re-sends the latest snapshot.
12306
- *
12307
- * `engine`/`steps`/`audio` are optional during the additive migration
12308
- * window; once orchestrator + UI are migrated they become required.
12400
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12401
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12402
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12403
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12404
+ * node-local, resolved by the executing runner at dispatch time.
12309
12405
  */
12310
12406
  var RunnerCameraConfigSchema = object({
12311
12407
  deviceId: number(),
@@ -12356,14 +12452,11 @@ var RunnerCameraConfigSchema = object({
12356
12452
  */
12357
12453
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12358
12454
  pipelineEnabled: boolean().default(true),
12359
- /** Engine choice for video steps (runtime+backend+format). */
12360
- engine: PipelineEngineChoiceSchema.optional(),
12361
12455
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12362
12456
  steps: array(PipelineStepInputSchema).readonly().optional(),
12363
12457
  /** Audio classification branch. `enabled:false` disables, null skips. */
12364
12458
  audio: object({
12365
- engine: PipelineEngineChoiceSchema,
12366
- modelId: string(),
12459
+ modelId: string().optional(),
12367
12460
  enabled: boolean()
12368
12461
  }).nullable().optional(),
12369
12462
  /**
@@ -12450,7 +12543,11 @@ var RunnerLocalMetricsSchema = object({
12450
12543
  avgInferenceTimeMs: number(),
12451
12544
  queueDepth: number()
12452
12545
  });
12453
- 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());
12546
+ 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({
12547
+ handle: FrameHandleSchema,
12548
+ bbox: NativeCropBboxSchema,
12549
+ maxWidth: number().int().positive().optional()
12550
+ }), NativeCropResultSchema.nullable());
12454
12551
  /**
12455
12552
  * Hardware / firmware motion sensor cap — binary detected state plus
12456
12553
  * a timestamp of the last observation. Distinct from
@@ -15381,7 +15478,9 @@ var AddonPageDeclarationSchema$1 = object({
15381
15478
  icon: string(),
15382
15479
  path: string(),
15383
15480
  remoteName: string(),
15384
- bundle: string()
15481
+ bundle: string(),
15482
+ section: string().optional(),
15483
+ sectionLabel: string().optional()
15385
15484
  });
15386
15485
  var AddonPageInfoSchema = object({
15387
15486
  addonId: string(),
@@ -15421,7 +15520,18 @@ var AddonPageDeclarationSchema = object({
15421
15520
  * the static-file route can compute an mtime-based cache-buster URL
15422
15521
  * without a separate filesystem stat.
15423
15522
  */
15424
- bundle: string()
15523
+ bundle: string(),
15524
+ /**
15525
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15526
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15527
+ * Any OTHER string creates (or joins) a custom section rendered after
15528
+ * the built-in groups; its label comes from `sectionLabel` (first
15529
+ * declaration wins), falling back to the id. Absent → the legacy
15530
+ * "Addon Pages" group.
15531
+ */
15532
+ section: string().optional(),
15533
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15534
+ sectionLabel: string().optional()
15425
15535
  });
15426
15536
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15427
15537
  var AddonHttpRouteSchema = object({
@@ -15656,6 +15766,17 @@ var WidgetMetadataSchema = object({
15656
15766
  deviceContext: boolean().default(false),
15657
15767
  integrationContext: boolean().default(false)
15658
15768
  }),
15769
+ /**
15770
+ * Loadable BEFORE authentication. The normal widget registry listing
15771
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15772
+ * (the login page) cannot discover a widget through it. A widget that
15773
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15774
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15775
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15776
+ * than the authenticated registry, and its bundle is served by the
15777
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15778
+ */
15779
+ preAuth: boolean().optional().default(false),
15659
15780
  /** Dashboard placement HINTS (operator can override per instance). */
15660
15781
  defaultSize: WidgetSizeEnum.default("md"),
15661
15782
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15957,6 +16078,66 @@ method(object({
15957
16078
  password: string()
15958
16079
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15959
16080
  /**
16081
+ * `login-method` — collection cap through which auth addons contribute
16082
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
16083
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
16084
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
16085
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
16086
+ * procedure aggregates them for the unauthenticated login page.
16087
+ *
16088
+ * A contribution is a discriminated union on `kind`:
16089
+ *
16090
+ * - `redirect` — a declarative button. The login page renders a generic
16091
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
16092
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
16093
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
16094
+ * login page needs NO change.
16095
+ *
16096
+ * - `widget` — a Module-Federation widget the login page mounts (via
16097
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
16098
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
16099
+ * addon bundle. The referenced widget also declares `preAuth: true` in
16100
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
16101
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
16102
+ *
16103
+ * Every contribution carries a `stage`:
16104
+ * - `primary` — shown on the first credentials screen (OIDC /
16105
+ * magic-link buttons; a future usernameless passkey).
16106
+ * - `second-factor` — shown AFTER the password leg, gated on the
16107
+ * returned `factors` (passkey-as-2FA today).
16108
+ *
16109
+ * `mount: skip` — the cap is read server-side by the core auth router
16110
+ * (`registry.getCollection('login-method')`), never mounted as its own
16111
+ * tRPC router.
16112
+ */
16113
+ /** When a login method renders in the two-phase login flow. */
16114
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
16115
+ /** One login-method contribution — redirect button OR pre-auth widget. */
16116
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
16117
+ kind: literal("redirect"),
16118
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
16119
+ id: string(),
16120
+ /** Operator-facing button label. */
16121
+ label: string(),
16122
+ /** lucide-react icon name. */
16123
+ icon: string().optional(),
16124
+ /** Addon-owned HTTP route the button navigates to (GET). */
16125
+ startUrl: string(),
16126
+ stage: LoginStageEnum
16127
+ }), object({
16128
+ kind: literal("widget"),
16129
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
16130
+ id: string(),
16131
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
16132
+ addonId: string(),
16133
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
16134
+ bundle: string(),
16135
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
16136
+ remote: WidgetRemoteSchema,
16137
+ stage: LoginStageEnum
16138
+ })]);
16139
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16140
+ /**
15960
16141
  * Orchestrator-side destination metadata. The orchestrator computes
15961
16142
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15962
16143
  * (admin UI, restore flow) see one canonical key.
@@ -18126,7 +18307,17 @@ var TrackSchema = object({
18126
18307
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
18127
18308
  totalDistance: number(),
18128
18309
  state: TrackStateSchema,
18129
- active: boolean()
18310
+ active: boolean(),
18311
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18312
+ * track expiry, recomputed on late label). Absent on legacy rows written
18313
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18314
+ importance: number().optional(),
18315
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18316
+ * "best" frame). Absent when the track produced no object events. */
18317
+ bestEventId: string().optional(),
18318
+ /** Tag of the importance sub-signal that dominated the score
18319
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18320
+ importanceReason: string().optional()
18130
18321
  });
18131
18322
  var BaseEventFields = {
18132
18323
  id: string(),
@@ -18191,8 +18382,18 @@ var ObjectEventSchema = object({
18191
18382
  frameHeight: number().optional(),
18192
18383
  /** MediaStore key for the crop attached to this event (if any). */
18193
18384
  mediaKey: string().optional(),
18385
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18386
+ * best-detection full frame). Resolve via the event-media data-plane
18387
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18388
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18389
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18390
+ keyFrameMediaKey: string().optional(),
18194
18391
  /** Populated by B5 (recording playback URL for this event). */
18195
- mediaUrl: string().optional()
18392
+ mediaUrl: string().optional(),
18393
+ /** The parent track's key-event importance [0,1], propagated to every object
18394
+ * event of the track (so an event row can be sorted by importance without a
18395
+ * track join). Absent on legacy rows / before the track was scored. */
18396
+ importance: number().optional()
18196
18397
  });
18197
18398
  var AudioEventSchema = object({
18198
18399
  ...BaseEventFields,
@@ -18216,7 +18417,8 @@ var MediaFileKindEnum = _enum([
18216
18417
  "fullFrame",
18217
18418
  "fullFrameBoxed",
18218
18419
  "faceCrop",
18219
- "plateCrop"
18420
+ "plateCrop",
18421
+ "keyFrame"
18220
18422
  ]);
18221
18423
  var MediaFileSchema = object({
18222
18424
  key: string(),
@@ -18237,6 +18439,32 @@ var DeviceEventQueryInput = object({
18237
18439
  projection: _enum(["full", "slim"]).optional()
18238
18440
  });
18239
18441
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18442
+ var KeyEventQueryInput = object({
18443
+ deviceId: number(),
18444
+ /** Window lower bound (track firstSeen ≥ since). */
18445
+ since: number(),
18446
+ /** Window upper bound (track firstSeen ≤ until). */
18447
+ until: number(),
18448
+ limit: number().int().min(1).max(200).default(50),
18449
+ /** Drop tracks scoring below this importance. */
18450
+ minImportance: number().min(0).max(1).optional(),
18451
+ /** Restrict to a single class (e.g. 'person'). */
18452
+ classFilter: string().optional()
18453
+ });
18454
+ var KeyEventSchema = object({
18455
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18456
+ id: string(),
18457
+ trackId: string(),
18458
+ /** Track start time (firstSeen). */
18459
+ timestamp: number(),
18460
+ className: string(),
18461
+ label: string().optional(),
18462
+ importance: number(),
18463
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18464
+ bestEventId: string(),
18465
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18466
+ windowMs: number().optional()
18467
+ });
18240
18468
  var TrackedDetectionSchema = object({
18241
18469
  trackId: string(),
18242
18470
  className: string(),
@@ -18266,7 +18494,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18266
18494
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18267
18495
  kind: "mutation",
18268
18496
  auth: "admin"
18269
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18497
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18270
18498
  deviceId: number(),
18271
18499
  since: number(),
18272
18500
  until: number(),
@@ -18311,11 +18539,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18311
18539
  timestamp: number()
18312
18540
  });
18313
18541
  var CameraPipelineConfigSchema = object({
18314
- engine: PipelineEngineChoiceSchema,
18542
+ engine: PipelineEngineChoiceSchema.optional(),
18315
18543
  steps: array(PipelineStepInputSchema).readonly(),
18316
18544
  audio: object({
18317
- engine: PipelineEngineChoiceSchema,
18318
- modelId: string(),
18545
+ engine: PipelineEngineChoiceSchema.optional(),
18546
+ modelId: string().optional(),
18319
18547
  enabled: boolean(),
18320
18548
  settings: record(string(), unknown()).readonly().optional()
18321
18549
  }).nullable().optional()
@@ -18330,7 +18558,7 @@ var PipelineTemplateSchema = object({
18330
18558
  });
18331
18559
  var AgentAddonConfigSchema = object({
18332
18560
  enabled: boolean(),
18333
- modelId: string(),
18561
+ modelId: string().optional(),
18334
18562
  settings: record(string(), unknown()).readonly()
18335
18563
  });
18336
18564
  var AgentPipelineSettingsSchema = object({
@@ -18340,12 +18568,25 @@ var AgentPipelineSettingsSchema = object({
18340
18568
  detectWeight: number().positive().optional(),
18341
18569
  /** Node is eligible to run the detection pipeline (decode + inference). */
18342
18570
  detect: boolean().optional(),
18343
- /** Node is eligible to host decoder sessions. */
18571
+ /**
18572
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18573
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18574
+ * the schema ONLY so persisted stores written before the removal still
18575
+ * parse — no code reads it and no write path emits it.
18576
+ */
18344
18577
  decode: boolean().optional(),
18345
18578
  /** Node is eligible to run audio-analyzer sessions. */
18346
18579
  audio: boolean().optional(),
18347
18580
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18348
- ingest: boolean().optional()
18581
+ ingest: boolean().optional(),
18582
+ /**
18583
+ * Operator override for the LAN host a cross-node decoder dials to reach
18584
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18585
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18586
+ * it already uses to reach the hub). Set this only when the auto-detected
18587
+ * address is wrong (multi-homed host, NAT, custom interface).
18588
+ */
18589
+ reachableHost: string().optional()
18349
18590
  });
18350
18591
  var CameraPipelineForAgentSchema = object({
18351
18592
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18393,25 +18634,6 @@ var PipelineAssignmentSchema = object({
18393
18634
  assignedAt: number()
18394
18635
  });
18395
18636
  /**
18396
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18397
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18398
- * → co-located with pipeline → capacity).
18399
- */
18400
- var DecoderAssignmentSchema = object({
18401
- deviceId: number(),
18402
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18403
- decoderNodeId: string(),
18404
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18405
- pinned: boolean(),
18406
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18407
- reason: _enum([
18408
- "manual",
18409
- "co-located",
18410
- "capacity",
18411
- "hardware-affinity"
18412
- ])
18413
- });
18414
- /**
18415
18637
  * Per-agent load summary surfaced to the load balancer + dashboards.
18416
18638
  * Aggregated from each runner's `getLocalLoad` cap call.
18417
18639
  */
@@ -18451,6 +18673,15 @@ var GlobalMetricsSchema = object({
18451
18673
  * capability providers.
18452
18674
  */
18453
18675
  var CapabilityBindingsSchema = record(string(), string());
18676
+ /**
18677
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18678
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18679
+ */
18680
+ var IngestOwnerSchema = object({
18681
+ ownerNodeId: string(),
18682
+ reachableHost: string().optional(),
18683
+ configIssue: string().optional()
18684
+ });
18454
18685
  /** Source block — always present; derives from the stream catalog. */
18455
18686
  var CameraSourceStatusSchema = object({ streams: array(object({
18456
18687
  camStreamId: string(),
@@ -18465,6 +18696,14 @@ var CameraAssignmentStatusSchema = object({
18465
18696
  detectionNodeId: string().nullable(),
18466
18697
  decoderNodeId: string().nullable(),
18467
18698
  audioNodeId: string().nullable(),
18699
+ /**
18700
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18701
+ * hosts the broker/restream) — the cluster ingest owner today
18702
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18703
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18704
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18705
+ */
18706
+ sourceNodeId: string().nullable(),
18468
18707
  pinned: object({
18469
18708
  detection: boolean(),
18470
18709
  decoder: boolean(),
@@ -18597,16 +18836,7 @@ method(object({
18597
18836
  }), object({ success: literal(true) }), {
18598
18837
  kind: "mutation",
18599
18838
  auth: "admin"
18600
- }), method(object({
18601
- deviceId: number(),
18602
- nodeId: string()
18603
- }), _void(), {
18604
- kind: "mutation",
18605
- auth: "admin"
18606
- }), method(object({ deviceId: number() }), _void(), {
18607
- kind: "mutation",
18608
- auth: "admin"
18609
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18839
+ }), method(_void(), IngestOwnerSchema), method(object({
18610
18840
  deviceId: number(),
18611
18841
  nodeId: string()
18612
18842
  }), object({ success: literal(true) }), {
@@ -18627,10 +18857,7 @@ method(object({
18627
18857
  nodeId: string(),
18628
18858
  pinned: boolean(),
18629
18859
  assignedAt: number()
18630
- }))), method(object({
18631
- deviceId: number(),
18632
- pipelineNodeId: string().optional()
18633
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18860
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18634
18861
  nodeId: string(),
18635
18862
  settings: AgentPipelineSettingsSchema
18636
18863
  })).readonly()), method(object({
@@ -18660,12 +18887,26 @@ method(object({
18660
18887
  }), method(object({
18661
18888
  agentNodeId: string(),
18662
18889
  detect: boolean().nullable().optional(),
18663
- decode: boolean().nullable().optional(),
18664
18890
  audio: boolean().nullable().optional(),
18665
18891
  ingest: boolean().nullable().optional()
18666
18892
  }), object({ success: literal(true) }), {
18667
18893
  kind: "mutation",
18668
18894
  auth: "admin"
18895
+ }), method(object({
18896
+ agentNodeId: string(),
18897
+ reachableHost: string().nullable()
18898
+ }), object({ success: literal(true) }), {
18899
+ kind: "mutation",
18900
+ auth: "admin"
18901
+ }), method(object({ agentNodeId: string() }), object({
18902
+ success: literal(true),
18903
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18904
+ effectiveModelId: string().nullable(),
18905
+ /** Number of cameras whose node-scoped overrides were cleared. */
18906
+ clearedCameraOverrides: number()
18907
+ }), {
18908
+ kind: "mutation",
18909
+ auth: "admin"
18669
18910
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18670
18911
  deviceId: number(),
18671
18912
  addonId: string(),
@@ -18710,22 +18951,131 @@ method(object({
18710
18951
  kind: "mutation",
18711
18952
  auth: "admin"
18712
18953
  });
18713
- var RegisteredStreamSchema = object({
18714
- streamId: string(),
18715
- label: string().optional(),
18716
- codec: string(),
18717
- type: _enum(["video", "audio"]),
18718
- sourceUrl: string()
18954
+ /**
18955
+ * server-management — per-NODE singleton capability for a node's ROOT
18956
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18957
+ * agents).
18958
+ *
18959
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18960
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18961
+ * version describes the node. Updates install into
18962
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18963
+ * starter (probation boot + auto-rollback to N-1).
18964
+ *
18965
+ * Providers:
18966
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18967
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18968
+ * unpinned calls.
18969
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18970
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18971
+ * `$hub.registerNode` manifest.
18972
+ *
18973
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18974
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18975
+ * SDK) routes the call to that node's provider via the standard remote
18976
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18977
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18978
+ *
18979
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18980
+ */
18981
+ /**
18982
+ * Where the running hub's code was loaded from:
18983
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18984
+ * plain resolution and runtime updates are refused.
18985
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18986
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18987
+ */
18988
+ var ServerBootModeSchema = _enum([
18989
+ "workspace",
18990
+ "baked",
18991
+ "data-root"
18992
+ ]);
18993
+ /**
18994
+ * Update lifecycle state:
18995
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18996
+ * - `pending-restart` — a version is staged and the node has NOT yet
18997
+ * restarted onto it (still running the OLD version).
18998
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18999
+ * (it is the active probation boot) and is waiting to confirm boot-health.
19000
+ * Apply/rollback are refused in this state and the node must NOT be
19001
+ * manually restarted, or the probation boot auto-rolls-back.
19002
+ */
19003
+ var ServerUpdateStateSchema = _enum([
19004
+ "idle",
19005
+ "checking",
19006
+ "staging",
19007
+ "pending-restart",
19008
+ "awaiting-confirmation"
19009
+ ]);
19010
+ var ServerRollbackInfoSchema = object({
19011
+ /** The version that failed (or was manually rolled back). */
19012
+ fromVersion: string(),
19013
+ /** The version rolled back to; null = the baked seed. */
19014
+ toVersion: string().nullable(),
19015
+ atMs: number(),
19016
+ reason: string()
18719
19017
  });
18720
- var ExposedResourceSchema = object({
18721
- streamId: string(),
18722
- format: string(),
18723
- value: string()
19018
+ var ServerPackageStatusSchema = object({
19019
+ /** Root package name (`@camstack/server` on the hub). */
19020
+ packageName: string(),
19021
+ /** Version of the code the running process ACTUALLY loaded. */
19022
+ runningVersion: string().nullable(),
19023
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
19024
+ nodeRuntimeVersion: string().nullable(),
19025
+ /** Active data-dir root version; null when booted from seed/workspace. */
19026
+ activeVersion: string().nullable(),
19027
+ /** N-1 version kept for rollback; null when no previous version exists. */
19028
+ previousVersion: string().nullable(),
19029
+ /** Version of the immutable baked seed closure (image fallback). */
19030
+ seedVersion: string().nullable(),
19031
+ /** Latest registry version from the most recent check (null = never checked). */
19032
+ latestVersion: string().nullable(),
19033
+ updateAvailable: boolean(),
19034
+ bootMode: ServerBootModeSchema,
19035
+ updateState: ServerUpdateStateSchema,
19036
+ /** Version staged + awaiting its probation boot, when one is pending. */
19037
+ pendingVersion: string().nullable(),
19038
+ /** Set when the last freshly-activated version failed its boot health-check. */
19039
+ rolledBack: ServerRollbackInfoSchema.nullable(),
19040
+ /**
19041
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
19042
+ * hub is running from the baked seed (or workspace) while installed data-dir
19043
+ * versions are being IGNORED. Surfaced as a warning in the UI.
19044
+ */
19045
+ stateFileCorrupt: boolean(),
19046
+ lastCheckedAtMs: number().nullable()
19047
+ });
19048
+ var ServerUpdateCheckResultSchema = object({
19049
+ packageName: string(),
19050
+ runningVersion: string().nullable(),
19051
+ latestVersion: string().nullable(),
19052
+ updateAvailable: boolean(),
19053
+ checkedAtMs: number(),
19054
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
19055
+ error: string().nullable()
19056
+ });
19057
+ var ServerUpdateActionResultSchema = object({
19058
+ accepted: boolean(),
19059
+ targetVersion: string().nullable(),
19060
+ /** True when a graceful restart was scheduled to apply the change. */
19061
+ restarting: boolean(),
19062
+ message: string()
19063
+ });
19064
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
19065
+ kind: "mutation",
19066
+ auth: "admin"
19067
+ }), method(object({
19068
+ /** Explicit target version; omitted = latest from the registry. */
19069
+ version: string().optional() }), ServerUpdateActionResultSchema, {
19070
+ kind: "mutation",
19071
+ auth: "admin"
19072
+ }), method(_void(), ServerUpdateActionResultSchema, {
19073
+ kind: "mutation",
19074
+ auth: "admin"
19075
+ }), method(_void(), ServerUpdateActionResultSchema, {
19076
+ kind: "mutation",
19077
+ auth: "admin"
18724
19078
  });
18725
- method(object({
18726
- deviceId: number(),
18727
- streams: array(RegisteredStreamSchema).readonly()
18728
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18729
19079
  /**
18730
19080
  * Query filter for settings-store collections.
18731
19081
  */
@@ -18878,9 +19228,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18878
19228
  /**
18879
19229
  * A single device snapshot returned as base64 JPEG/PNG.
18880
19230
  *
18881
- * Shared with the `snapshot-provider` collection cap the orchestrator
18882
- * receives the same shape from each native provider and from the
18883
- * broker-based fallback.
19231
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19232
+ * the device-native provider (onboard capture) or from the stream-broker
19233
+ * prebuffer fallback.
18884
19234
  */
18885
19235
  var SnapshotImageSchema = object({
18886
19236
  base64: string(),
@@ -18911,11 +19261,12 @@ DeviceType.Camera, method(object({
18911
19261
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18912
19262
  kind: "mutation",
18913
19263
  auth: "admin"
18914
- });
18915
- method(object({ deviceId: number() }), boolean()), method(object({
19264
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18916
19265
  deviceId: number(),
18917
- streamId: string().optional()
18918
- }), SnapshotImageSchema.nullable());
19266
+ lastCapturedAt: number().nullable(),
19267
+ cacheAgeMs: number().nullable(),
19268
+ etag: string().nullable()
19269
+ })));
18919
19270
  /**
18920
19271
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18921
19272
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19166,10 +19517,32 @@ method(_void(), array(TurnServerSchema).readonly());
19166
19517
  * b. `finishAuthentication({userId, response})` → server verifies
19167
19518
  * the assertion, bumps the credential counter, returns ok.
19168
19519
  *
19520
+ * 2b. Usernameless (discoverable-credential) authentication — the
19521
+ * passkey IS the primary factor, no password leg:
19522
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19523
+ * EMPTY `allowCredentials` (the browser offers every resident
19524
+ * passkey it holds for this RP) + `userVerification: 'required'`
19525
+ * (the passkey replaces both factors, so UV is mandatory).
19526
+ * The challenge is stored server-side, NOT bound to any user.
19527
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19528
+ * resolves the credential by the response's credential id,
19529
+ * verifies the assertion against the stored challenge + that
19530
+ * credential's public key/counter, and returns the OWNING
19531
+ * `userId` — the caller (core auth router) mints the session.
19532
+ *
19169
19533
  * 3. Management:
19170
19534
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19171
19535
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19172
19536
  *
19537
+ * 4. Second-factor preference (opt-in, default OFF):
19538
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19539
+ * demanded as a second factor after a password login ONLY when the
19540
+ * user explicitly opts in via `setSecondFactorPreference`.
19541
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19542
+ * row ⇒ `enabled: false`).
19543
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19544
+ * the providing addon beside its credentials.
19545
+ *
19173
19546
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19174
19547
  * the admin-ui composes the begin/finish round-trip and never exposes
19175
19548
  * the cap to non-admins.
@@ -19212,6 +19585,17 @@ method(object({
19212
19585
  }), object({ verified: boolean() }), {
19213
19586
  kind: "mutation",
19214
19587
  access: "view"
19588
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19589
+ kind: "mutation",
19590
+ access: "view"
19591
+ }), method(object({
19592
+ /** AuthenticationResponseJSON from the browser. */
19593
+ response: record(string(), unknown()) }), object({
19594
+ verified: boolean(),
19595
+ userId: string().nullable()
19596
+ }), {
19597
+ kind: "mutation",
19598
+ access: "view"
19215
19599
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19216
19600
  userId: string(),
19217
19601
  credentialId: string()
@@ -19219,6 +19603,13 @@ method(object({
19219
19603
  kind: "mutation",
19220
19604
  auth: "admin",
19221
19605
  access: "delete"
19606
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19607
+ userId: string(),
19608
+ enabled: boolean()
19609
+ }), object({ success: literal(true) }), {
19610
+ kind: "mutation",
19611
+ auth: "admin",
19612
+ access: "create"
19222
19613
  });
19223
19614
  /**
19224
19615
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19276,9 +19667,10 @@ method(object({
19276
19667
  auth: "admin"
19277
19668
  });
19278
19669
  /**
19279
- * Optional client-side hints sent at session creation to help the
19280
- * provider pick the best native source. All fields are optional —
19281
- * a viewer that knows nothing still gets a sane default.
19670
+ * Optional client-side hints sent at session creation to help the provider
19671
+ * pick the best native source. All fields optional — a viewer that knows
19672
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19673
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19282
19674
  */
19283
19675
  var webrtcClientHintsSchema = object({
19284
19676
  viewportWidth: number().int().positive().optional(),
@@ -19289,22 +19681,6 @@ var webrtcClientHintsSchema = object({
19289
19681
  /** Hard tier override; takes precedence over scoring when registered. */
19290
19682
  prefersTier: string().optional()
19291
19683
  }).partial();
19292
- method(object({
19293
- streamId: string(),
19294
- sdpOffer: string()
19295
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19296
- streamId: string(),
19297
- codec: string()
19298
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19299
- streamId: string(),
19300
- hints: webrtcClientHintsSchema.optional()
19301
- }), object({
19302
- sessionId: string(),
19303
- sdpOffer: string()
19304
- }), { kind: "mutation" }), method(object({
19305
- sessionId: string(),
19306
- sdpAnswer: string()
19307
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19308
19684
  /**
19309
19685
  * Discriminated target for a WebRTC session. The client sends this
19310
19686
  * structured object instead of building / parsing brokerId strings;
@@ -19791,7 +20167,15 @@ var FrameworkPackageStatusSchema = object({
19791
20167
  latestVersion: string().nullable(),
19792
20168
  hasUpdate: boolean(),
19793
20169
  /** Optional manifest description for the row tooltip. */
19794
- description: string().optional()
20170
+ description: string().optional(),
20171
+ /**
20172
+ * Content build-id (md5 of the resolved `dist/` tree) of the code the hub
20173
+ * ACTUALLY loaded. Framework packages ship code changes without always
20174
+ * bumping `currentVersion`, so semver alone hides "same version, new code".
20175
+ * `null` when the dist can't be hashed (not installed / empty). The admin-UI
20176
+ * surfaces this so a stale-code hub is visible even at an unchanged version.
20177
+ */
20178
+ buildId: string().nullable()
19795
20179
  });
19796
20180
  var LogStreamEntrySchema = object({
19797
20181
  timestamp: string(),
@@ -20044,7 +20428,17 @@ var FaceInfoSchema = object({
20044
20428
  recognizedIdentityId: string().optional(),
20045
20429
  identityName: string().optional(),
20046
20430
  assigned: boolean(),
20047
- base64: string().optional()
20431
+ base64: string().optional(),
20432
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20433
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20434
+ * legacy rows written before design B. */
20435
+ faceBbox: BoundingBoxSchema.optional(),
20436
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20437
+ * Fetch the native JPEG via the event-media data-plane
20438
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20439
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20440
+ * back to the inline `base64` face crop. */
20441
+ keyFrameMediaKey: string().optional()
20048
20442
  });
20049
20443
  var FaceFilterEnum = _enum([
20050
20444
  "unassigned",
@@ -20741,6 +21135,16 @@ var TopologyCategorySchema = object({
20741
21135
  healthy: number(),
20742
21136
  addons: array(TopologyCategoryAddonSchema).readonly()
20743
21137
  });
21138
+ /**
21139
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
21140
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
21141
+ * version visibility for the Server management surface. Nullable: offline
21142
+ * rows and pre-phase-2 nodes report none.
21143
+ */
21144
+ var TopologyRootPackageSchema = object({
21145
+ name: string(),
21146
+ version: string()
21147
+ });
20744
21148
  var TopologyNodeSchema = object({
20745
21149
  id: string(),
20746
21150
  name: string(),
@@ -20764,7 +21168,8 @@ var TopologyNodeSchema = object({
20764
21168
  status: string()
20765
21169
  })).readonly(),
20766
21170
  processes: array(TopologyProcessSchema).readonly(),
20767
- categories: array(TopologyCategorySchema).readonly()
21171
+ categories: array(TopologyCategorySchema).readonly(),
21172
+ rootPackage: TopologyRootPackageSchema.nullable()
20768
21173
  });
20769
21174
  var CapUsageEdgeSchema = object({
20770
21175
  callerAddonId: string(),
@@ -23564,6 +23969,12 @@ Object.freeze({
23564
23969
  addonId: null,
23565
23970
  access: "create"
23566
23971
  },
23972
+ "loginMethod.getLoginMethods": {
23973
+ capName: "login-method",
23974
+ capScope: "system",
23975
+ addonId: null,
23976
+ access: "view"
23977
+ },
23567
23978
  "mediaPlayer.next": {
23568
23979
  capName: "media-player",
23569
23980
  capScope: "device",
@@ -24146,6 +24557,12 @@ Object.freeze({
24146
24557
  addonId: null,
24147
24558
  access: "view"
24148
24559
  },
24560
+ "pipelineAnalytics.getKeyEvents": {
24561
+ capName: "pipeline-analytics",
24562
+ capScope: "device",
24563
+ addonId: null,
24564
+ access: "view"
24565
+ },
24149
24566
  "pipelineAnalytics.getMotionEvents": {
24150
24567
  capName: "pipeline-analytics",
24151
24568
  capScope: "device",
@@ -24194,23 +24611,23 @@ Object.freeze({
24194
24611
  addonId: null,
24195
24612
  access: "create"
24196
24613
  },
24197
- "pipelineExecutor.deleteModel": {
24614
+ "pipelineExecutor.clearDeviceOverrides": {
24198
24615
  capName: "pipeline-executor",
24199
24616
  capScope: "system",
24200
24617
  addonId: null,
24201
24618
  access: "delete"
24202
24619
  },
24203
- "pipelineExecutor.deleteTemplate": {
24620
+ "pipelineExecutor.deleteModel": {
24204
24621
  capName: "pipeline-executor",
24205
24622
  capScope: "system",
24206
24623
  addonId: null,
24207
24624
  access: "delete"
24208
24625
  },
24209
- "pipelineExecutor.detect": {
24626
+ "pipelineExecutor.deleteTemplate": {
24210
24627
  capName: "pipeline-executor",
24211
24628
  capScope: "system",
24212
24629
  addonId: null,
24213
- access: "view"
24630
+ access: "delete"
24214
24631
  },
24215
24632
  "pipelineExecutor.downloadModel": {
24216
24633
  capName: "pipeline-executor",
@@ -24404,13 +24821,13 @@ Object.freeze({
24404
24821
  addonId: null,
24405
24822
  access: "create"
24406
24823
  },
24407
- "pipelineOrchestrator.assignAudio": {
24408
- capName: "pipeline-orchestrator",
24824
+ "pipelineExecutor.validatePipeline": {
24825
+ capName: "pipeline-executor",
24409
24826
  capScope: "system",
24410
24827
  addonId: null,
24411
- access: "create"
24828
+ access: "view"
24412
24829
  },
24413
- "pipelineOrchestrator.assignDecoder": {
24830
+ "pipelineOrchestrator.assignAudio": {
24414
24831
  capName: "pipeline-orchestrator",
24415
24832
  capScope: "system",
24416
24833
  addonId: null,
@@ -24494,19 +24911,13 @@ Object.freeze({
24494
24911
  addonId: null,
24495
24912
  access: "view"
24496
24913
  },
24497
- "pipelineOrchestrator.getDecoderAssignment": {
24498
- capName: "pipeline-orchestrator",
24499
- capScope: "system",
24500
- addonId: null,
24501
- access: "view"
24502
- },
24503
- "pipelineOrchestrator.getDecoderAssignments": {
24914
+ "pipelineOrchestrator.getGlobalMetrics": {
24504
24915
  capName: "pipeline-orchestrator",
24505
24916
  capScope: "system",
24506
24917
  addonId: null,
24507
24918
  access: "view"
24508
24919
  },
24509
- "pipelineOrchestrator.getGlobalMetrics": {
24920
+ "pipelineOrchestrator.getIngestOwner": {
24510
24921
  capName: "pipeline-orchestrator",
24511
24922
  capScope: "system",
24512
24923
  addonId: null,
@@ -24548,6 +24959,12 @@ Object.freeze({
24548
24959
  addonId: null,
24549
24960
  access: "delete"
24550
24961
  },
24962
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24963
+ capName: "pipeline-orchestrator",
24964
+ capScope: "system",
24965
+ addonId: null,
24966
+ access: "delete"
24967
+ },
24551
24968
  "pipelineOrchestrator.resolvePipeline": {
24552
24969
  capName: "pipeline-orchestrator",
24553
24970
  capScope: "system",
@@ -24584,37 +25001,37 @@ Object.freeze({
24584
25001
  addonId: null,
24585
25002
  access: "create"
24586
25003
  },
24587
- "pipelineOrchestrator.setCameraPipelineForAgent": {
25004
+ "pipelineOrchestrator.setAgentReachableHost": {
24588
25005
  capName: "pipeline-orchestrator",
24589
25006
  capScope: "system",
24590
25007
  addonId: null,
24591
25008
  access: "create"
24592
25009
  },
24593
- "pipelineOrchestrator.setCameraStepOverride": {
25010
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24594
25011
  capName: "pipeline-orchestrator",
24595
25012
  capScope: "system",
24596
25013
  addonId: null,
24597
25014
  access: "create"
24598
25015
  },
24599
- "pipelineOrchestrator.setCameraStepToggle": {
25016
+ "pipelineOrchestrator.setCameraStepOverride": {
24600
25017
  capName: "pipeline-orchestrator",
24601
25018
  capScope: "system",
24602
25019
  addonId: null,
24603
25020
  access: "create"
24604
25021
  },
24605
- "pipelineOrchestrator.setCapabilityBinding": {
25022
+ "pipelineOrchestrator.setCameraStepToggle": {
24606
25023
  capName: "pipeline-orchestrator",
24607
25024
  capScope: "system",
24608
25025
  addonId: null,
24609
25026
  access: "create"
24610
25027
  },
24611
- "pipelineOrchestrator.unassignAudio": {
25028
+ "pipelineOrchestrator.setCapabilityBinding": {
24612
25029
  capName: "pipeline-orchestrator",
24613
25030
  capScope: "system",
24614
25031
  addonId: null,
24615
25032
  access: "create"
24616
25033
  },
24617
- "pipelineOrchestrator.unassignDecoder": {
25034
+ "pipelineOrchestrator.unassignAudio": {
24618
25035
  capName: "pipeline-orchestrator",
24619
25036
  capScope: "system",
24620
25037
  addonId: null,
@@ -24674,6 +25091,12 @@ Object.freeze({
24674
25091
  addonId: null,
24675
25092
  access: "view"
24676
25093
  },
25094
+ "pipelineRunner.getNativeCrop": {
25095
+ capName: "pipeline-runner",
25096
+ capScope: "system",
25097
+ addonId: null,
25098
+ access: "view"
25099
+ },
24677
25100
  "pipelineRunner.reportMotion": {
24678
25101
  capName: "pipeline-runner",
24679
25102
  capScope: "system",
@@ -24914,33 +25337,45 @@ Object.freeze({
24914
25337
  addonId: null,
24915
25338
  access: "create"
24916
25339
  },
24917
- "restreamer.getExposedResources": {
24918
- capName: "restreamer",
25340
+ "scriptRunner.run": {
25341
+ capName: "script-runner",
25342
+ capScope: "device",
25343
+ addonId: null,
25344
+ access: "create"
25345
+ },
25346
+ "scriptRunner.stop": {
25347
+ capName: "script-runner",
25348
+ capScope: "device",
25349
+ addonId: null,
25350
+ access: "create"
25351
+ },
25352
+ "serverManagement.applyServerUpdate": {
25353
+ capName: "server-management",
24919
25354
  capScope: "system",
24920
25355
  addonId: null,
24921
- access: "view"
25356
+ access: "create"
24922
25357
  },
24923
- "restreamer.registerDevice": {
24924
- capName: "restreamer",
25358
+ "serverManagement.checkServerUpdate": {
25359
+ capName: "server-management",
24925
25360
  capScope: "system",
24926
25361
  addonId: null,
24927
25362
  access: "create"
24928
25363
  },
24929
- "restreamer.unregisterDevice": {
24930
- capName: "restreamer",
25364
+ "serverManagement.getServerPackageStatus": {
25365
+ capName: "server-management",
24931
25366
  capScope: "system",
24932
25367
  addonId: null,
24933
- access: "delete"
25368
+ access: "view"
24934
25369
  },
24935
- "scriptRunner.run": {
24936
- capName: "script-runner",
24937
- capScope: "device",
25370
+ "serverManagement.restartServer": {
25371
+ capName: "server-management",
25372
+ capScope: "system",
24938
25373
  addonId: null,
24939
25374
  access: "create"
24940
25375
  },
24941
- "scriptRunner.stop": {
24942
- capName: "script-runner",
24943
- capScope: "device",
25376
+ "serverManagement.rollbackServerUpdate": {
25377
+ capName: "server-management",
25378
+ capScope: "system",
24944
25379
  addonId: null,
24945
25380
  access: "create"
24946
25381
  },
@@ -25028,23 +25463,17 @@ Object.freeze({
25028
25463
  addonId: null,
25029
25464
  access: "view"
25030
25465
  },
25031
- "snapshot.invalidateCache": {
25466
+ "snapshot.getSnapshotOverview": {
25032
25467
  capName: "snapshot",
25033
25468
  capScope: "device",
25034
25469
  addonId: null,
25035
- access: "create"
25036
- },
25037
- "snapshotProvider.getSnapshot": {
25038
- capName: "snapshot-provider",
25039
- capScope: "system",
25040
- addonId: null,
25041
25470
  access: "view"
25042
25471
  },
25043
- "snapshotProvider.supportsDevice": {
25044
- capName: "snapshot-provider",
25045
- capScope: "system",
25472
+ "snapshot.invalidateCache": {
25473
+ capName: "snapshot",
25474
+ capScope: "device",
25046
25475
  addonId: null,
25047
- access: "view"
25476
+ access: "create"
25048
25477
  },
25049
25478
  "ssoBridge.signBridgeToken": {
25050
25479
  capName: "sso-bridge",
@@ -25472,30 +25901,6 @@ Object.freeze({
25472
25901
  addonId: null,
25473
25902
  access: "view"
25474
25903
  },
25475
- "streamingEngine.getStreamUrl": {
25476
- capName: "streaming-engine",
25477
- capScope: "system",
25478
- addonId: null,
25479
- access: "view"
25480
- },
25481
- "streamingEngine.listStreams": {
25482
- capName: "streaming-engine",
25483
- capScope: "system",
25484
- addonId: null,
25485
- access: "view"
25486
- },
25487
- "streamingEngine.registerStream": {
25488
- capName: "streaming-engine",
25489
- capScope: "system",
25490
- addonId: null,
25491
- access: "create"
25492
- },
25493
- "streamingEngine.unregisterStream": {
25494
- capName: "streaming-engine",
25495
- capScope: "system",
25496
- addonId: null,
25497
- access: "delete"
25498
- },
25499
25904
  "streamParams.getConfigSchema": {
25500
25905
  capName: "stream-params",
25501
25906
  capScope: "device",
@@ -25742,6 +26147,12 @@ Object.freeze({
25742
26147
  addonId: null,
25743
26148
  access: "view"
25744
26149
  },
26150
+ "userPasskeys.beginDiscoverableAuthentication": {
26151
+ capName: "user-passkeys",
26152
+ capScope: "system",
26153
+ addonId: null,
26154
+ access: "view"
26155
+ },
25745
26156
  "userPasskeys.beginRegistration": {
25746
26157
  capName: "user-passkeys",
25747
26158
  capScope: "system",
@@ -25754,12 +26165,24 @@ Object.freeze({
25754
26165
  addonId: null,
25755
26166
  access: "view"
25756
26167
  },
26168
+ "userPasskeys.finishDiscoverableAuthentication": {
26169
+ capName: "user-passkeys",
26170
+ capScope: "system",
26171
+ addonId: null,
26172
+ access: "view"
26173
+ },
25757
26174
  "userPasskeys.finishRegistration": {
25758
26175
  capName: "user-passkeys",
25759
26176
  capScope: "system",
25760
26177
  addonId: null,
25761
26178
  access: "create"
25762
26179
  },
26180
+ "userPasskeys.getSecondFactorPreference": {
26181
+ capName: "user-passkeys",
26182
+ capScope: "system",
26183
+ addonId: null,
26184
+ access: "view"
26185
+ },
25763
26186
  "userPasskeys.listPasskeys": {
25764
26187
  capName: "user-passkeys",
25765
26188
  capScope: "system",
@@ -25772,6 +26195,12 @@ Object.freeze({
25772
26195
  addonId: null,
25773
26196
  access: "delete"
25774
26197
  },
26198
+ "userPasskeys.setSecondFactorPreference": {
26199
+ capName: "user-passkeys",
26200
+ capScope: "system",
26201
+ addonId: null,
26202
+ access: "create"
26203
+ },
25775
26204
  "vacuumControl.locate": {
25776
26205
  capName: "vacuum-control",
25777
26206
  capScope: "device",
@@ -25844,6 +26273,18 @@ Object.freeze({
25844
26273
  addonId: null,
25845
26274
  access: "view"
25846
26275
  },
26276
+ "viewerUi.getStaticDir": {
26277
+ capName: "viewer-ui",
26278
+ capScope: "system",
26279
+ addonId: null,
26280
+ access: "view"
26281
+ },
26282
+ "viewerUi.getVersion": {
26283
+ capName: "viewer-ui",
26284
+ capScope: "system",
26285
+ addonId: null,
26286
+ access: "view"
26287
+ },
25847
26288
  "waterHeater.setAway": {
25848
26289
  capName: "water-heater",
25849
26290
  capScope: "device",
@@ -25862,54 +26303,6 @@ Object.freeze({
25862
26303
  addonId: null,
25863
26304
  access: "create"
25864
26305
  },
25865
- "webrtc.closeSession": {
25866
- capName: "webrtc",
25867
- capScope: "system",
25868
- addonId: null,
25869
- access: "create"
25870
- },
25871
- "webrtc.createSession": {
25872
- capName: "webrtc",
25873
- capScope: "system",
25874
- addonId: null,
25875
- access: "create"
25876
- },
25877
- "webrtc.handleAnswer": {
25878
- capName: "webrtc",
25879
- capScope: "system",
25880
- addonId: null,
25881
- access: "create"
25882
- },
25883
- "webrtc.handleOffer": {
25884
- capName: "webrtc",
25885
- capScope: "system",
25886
- addonId: null,
25887
- access: "create"
25888
- },
25889
- "webrtc.hasAdaptiveBitrate": {
25890
- capName: "webrtc",
25891
- capScope: "system",
25892
- addonId: null,
25893
- access: "view"
25894
- },
25895
- "webrtc.registerStream": {
25896
- capName: "webrtc",
25897
- capScope: "system",
25898
- addonId: null,
25899
- access: "create"
25900
- },
25901
- "webrtc.supportsStream": {
25902
- capName: "webrtc",
25903
- capScope: "system",
25904
- addonId: null,
25905
- access: "view"
25906
- },
25907
- "webrtc.unregisterStream": {
25908
- capName: "webrtc",
25909
- capScope: "system",
25910
- addonId: null,
25911
- access: "delete"
25912
- },
25913
26306
  "webrtcSession.addIceCandidate": {
25914
26307
  capName: "webrtc-session",
25915
26308
  capScope: "device",