@camstack/addon-provider-homeassistant 1.1.22 → 1.1.24

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 +715 -288
  2. package/dist/addon.mjs +715 -288
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4629,7 +4629,7 @@ function _instanceof(cls, params = {}) {
4629
4629
  return inst;
4630
4630
  }
4631
4631
  //#endregion
4632
- //#region ../types/dist/sleep-CZDdRBua.mjs
4632
+ //#region ../types/dist/sleep-Baang_XW.mjs
4633
4633
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4634
4634
  EventCategory["SystemBoot"] = "system.boot";
4635
4635
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4815,6 +4815,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4815
4815
  */
4816
4816
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4817
4817
  /**
4818
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4819
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4820
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4821
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4822
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4823
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4824
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4825
+ * topology change, so a dropped event self-heals on the next one (plus the
4826
+ * broker's long backstop reconcile query).
4827
+ */
4828
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4829
+ /**
4818
4830
  * Periodic snapshot of per-node pipeline-runner load
4819
4831
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4820
4832
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5338,10 +5350,6 @@ function hydrateField(field, values) {
5338
5350
  };
5339
5351
  }
5340
5352
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5341
- if (field.type === "password") return {
5342
- ...field,
5343
- value: ""
5344
- };
5345
5353
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5346
5354
  return {
5347
5355
  ...field,
@@ -6725,10 +6733,25 @@ function method(input, output, options) {
6725
6733
  timeoutMs: options?.timeoutMs
6726
6734
  };
6727
6735
  }
6736
+ /**
6737
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6738
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6739
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6740
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6741
+ */
6742
+ function systemMethod(input, output, options) {
6743
+ return {
6744
+ ...method(input, output, options),
6745
+ systemOnly: true
6746
+ };
6747
+ }
6728
6748
  /** Shorthand to define an event schema */
6729
6749
  function event(data) {
6730
6750
  return { data };
6731
6751
  }
6752
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6753
+ var VersionOutputSchema$1 = object({ version: string() });
6754
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6732
6755
  var StaticDirOutputSchema = object({ staticDir: string() });
6733
6756
  var VersionOutputSchema = object({ version: string() });
6734
6757
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6910,6 +6933,36 @@ var ModelFormatsSchema = object({
6910
6933
  tflite: ModelFormatEntrySchema.optional(),
6911
6934
  pt: ModelFormatEntrySchema.optional()
6912
6935
  });
6936
+ /**
6937
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6938
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6939
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6940
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6941
+ * resolution/download/persistence; this is a presentation overlay resolved back
6942
+ * to an `id`.
6943
+ */
6944
+ var ModelVariantGroupSchema = object({
6945
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6946
+ family: string(),
6947
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6948
+ tier: string(),
6949
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6950
+ precision: _enum(["fp32", "int8"]).optional(),
6951
+ /**
6952
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6953
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6954
+ * future performance variants plug into.
6955
+ */
6956
+ optimization: _enum(["standard", "fast"]).optional(),
6957
+ /**
6958
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6959
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6960
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6961
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6962
+ * the group so the selector can offer it as a variant axis.
6963
+ */
6964
+ resolution: number().int().positive().optional()
6965
+ });
6913
6966
  var ModelCatalogEntrySchema = object({
6914
6967
  id: string(),
6915
6968
  name: string(),
@@ -6939,7 +6992,43 @@ var ModelCatalogEntrySchema = object({
6939
6992
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6940
6993
  * Downloaded into the same modelsDir alongside the model file.
6941
6994
  */
6942
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
6995
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
6996
+ /**
6997
+ * LEGACY entry — retained in the catalog so a persisted operator selection
6998
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
6999
+ * model list and excluded from the auto format-default pick. Set on the
7000
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7001
+ * the active lineup stays the coherent curated ladder without deleting a
7002
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7003
+ * an explicit legacy id that has a build for the node's format.
7004
+ */
7005
+ legacy: boolean().optional(),
7006
+ /**
7007
+ * Measured quality/latency metadata — populated from the benchmark addon on
7008
+ * the real node classes. Absent = not yet measured (most entries today; the
7009
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7010
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7011
+ */
7012
+ metrics: object({
7013
+ map50: number().optional(),
7014
+ p95LatencyMs: record(string(), number()).optional()
7015
+ }).optional(),
7016
+ /**
7017
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7018
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7019
+ * the retraining addon and any future commercial distribution.
7020
+ */
7021
+ license: string().optional(),
7022
+ /**
7023
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7024
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7025
+ * of a family's sizes and quantizations collapse into one grouped picker
7026
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7027
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7028
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7029
+ * is a presentation overlay resolved back to an `id`.
7030
+ */
7031
+ group: ModelVariantGroupSchema.optional()
6943
7032
  });
6944
7033
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6945
7034
  format: literal("openvino"),
@@ -7000,8 +7089,8 @@ var RecordingModeSchema = _enum([
7000
7089
  "onAudioThreshold"
7001
7090
  ]);
7002
7091
  /**
7003
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7004
- * reads directly (never inferred from `rules`):
7092
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7093
+ * UI reads directly (never inferred from `rules`):
7005
7094
  * - `off` — not recording.
7006
7095
  * - `events` — record only around triggers (motion / audio threshold),
7007
7096
  * with pre/post-buffer.
@@ -9357,26 +9446,13 @@ onBrightnessChanged: { data: object({
9357
9446
  */
9358
9447
  runtimeState: BrightnessStatusSchema
9359
9448
  };
9449
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9360
9450
  var StreamFormatSchema = _enum([
9361
9451
  "webrtc",
9362
9452
  "hls",
9363
9453
  "mjpeg",
9364
9454
  "rtsp"
9365
9455
  ]);
9366
- var StreamInfoSchema = object({
9367
- streamId: string(),
9368
- format: StreamFormatSchema,
9369
- url: string().nullable(),
9370
- active: boolean()
9371
- });
9372
- method(object({
9373
- streamId: string(),
9374
- sourceUrl: string(),
9375
- codec: string().optional()
9376
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9377
- streamId: string(),
9378
- format: StreamFormatSchema
9379
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9380
9456
  var RtspRestreamEntrySchema = object({
9381
9457
  brokerId: string(),
9382
9458
  url: string(),
@@ -10244,37 +10320,7 @@ var consumablesCapability = {
10244
10320
  scope: "device",
10245
10321
  deviceNative: true,
10246
10322
  mode: "singleton",
10247
- deviceTypes: [
10248
- DeviceType.Camera,
10249
- DeviceType.Hub,
10250
- DeviceType.Light,
10251
- DeviceType.Siren,
10252
- DeviceType.Switch,
10253
- DeviceType.Sensor,
10254
- DeviceType.Thermostat,
10255
- DeviceType.Button,
10256
- DeviceType.EventEmitter,
10257
- DeviceType.Update,
10258
- DeviceType.Generic,
10259
- DeviceType.Notifier,
10260
- DeviceType.Script,
10261
- DeviceType.Automation,
10262
- DeviceType.Lock,
10263
- DeviceType.Cover,
10264
- DeviceType.Valve,
10265
- DeviceType.Humidifier,
10266
- DeviceType.WaterHeater,
10267
- DeviceType.Fan,
10268
- DeviceType.MediaPlayer,
10269
- DeviceType.AlarmPanel,
10270
- DeviceType.Control,
10271
- DeviceType.Presence,
10272
- DeviceType.Weather,
10273
- DeviceType.Vacuum,
10274
- DeviceType.LawnMower,
10275
- DeviceType.Container,
10276
- DeviceType.Image
10277
- ],
10323
+ deviceTypes: Object.values(DeviceType),
10278
10324
  deviceConfig: { ui: {
10279
10325
  kind: "widget",
10280
10326
  widgetId: "host/consumables-panel",
@@ -11777,7 +11823,7 @@ var BoundingBoxSchema = object({
11777
11823
  w: number(),
11778
11824
  h: number()
11779
11825
  });
11780
- var SpatialDetectionSchema = object({
11826
+ object({
11781
11827
  class: string(),
11782
11828
  originalClass: string(),
11783
11829
  score: number(),
@@ -11912,7 +11958,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11912
11958
  enabled: boolean(),
11913
11959
  modelId: string(),
11914
11960
  children: array(PipelineDefaultStepSchema).readonly(),
11915
- engine: PipelineEngineChoiceSchema.optional(),
11916
11961
  group: string().optional(),
11917
11962
  settings: record(string(), unknown()).optional()
11918
11963
  }));
@@ -11937,7 +11982,9 @@ var PipelineModelOptionSchema = object({
11937
11982
  formats: record(string(), object({
11938
11983
  downloaded: boolean(),
11939
11984
  sizeMB: number()
11940
- }))
11985
+ })),
11986
+ group: ModelVariantGroupSchema.optional(),
11987
+ legacy: boolean().optional()
11941
11988
  });
11942
11989
  var ConfigFieldBridge = custom();
11943
11990
  var PipelineAddonSchemaSchema = object({
@@ -11951,6 +11998,7 @@ var PipelineAddonSchemaSchema = object({
11951
11998
  defaultModelId: string(),
11952
11999
  defaultModelIdByFormat: record(string(), string()).optional(),
11953
12000
  enabledByDefault: boolean().optional(),
12001
+ backfillIntoExistingOverrides: boolean().optional(),
11954
12002
  defaultConfidence: number(),
11955
12003
  group: string().optional(),
11956
12004
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11967,11 +12015,6 @@ var PipelineSchemaSchema = object({
11967
12015
  selectedEngine: PipelineEngineChoiceSchema,
11968
12016
  slots: array(PipelineSlotSchemaSchema).readonly()
11969
12017
  });
11970
- var DetectorOutputSchema = object({
11971
- detections: array(SpatialDetectionSchema).readonly(),
11972
- inferenceMs: number(),
11973
- modelId: string()
11974
- });
11975
12018
  var EngineProvisioningSchema = object({
11976
12019
  runtimeId: _enum([
11977
12020
  "onnx",
@@ -11988,15 +12031,42 @@ var EngineProvisioningSchema = object({
11988
12031
  ]),
11989
12032
  progress: number().optional(),
11990
12033
  error: string().optional(),
11991
- nextRetryAt: number().optional()
12034
+ nextRetryAt: number().optional(),
12035
+ /**
12036
+ * Gate A (config-correctness gate at engine change): human-readable
12037
+ * config issues surfaced EAGERLY when the node's engine changes — model
12038
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
12039
+ * has a <format> build"). Additive/optional: informational only, never
12040
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
12041
+ * Absent/empty when the node-default tree resolves cleanly.
12042
+ */
12043
+ configIssues: array(string()).optional()
11992
12044
  });
11993
12045
  var PipelineStepInputSchema = lazy(() => object({
11994
12046
  addonId: string(),
11995
- modelId: string(),
12047
+ modelId: string().optional(),
11996
12048
  enabled: boolean().default(true),
11997
12049
  children: array(PipelineStepInputSchema).optional(),
11998
12050
  settings: record(string(), unknown()).optional()
11999
12051
  }));
12052
+ var ModelSubstitutionSchema = object({
12053
+ addonId: string(),
12054
+ chosen: string(),
12055
+ running: string(),
12056
+ format: string()
12057
+ });
12058
+ var PipelineValidationIssueSchema = object({
12059
+ addonId: string(),
12060
+ kind: _enum(["unknown-addon", "no-format-build"]),
12061
+ detail: string()
12062
+ });
12063
+ var PipelineValidationResultSchema = object({
12064
+ ok: boolean(),
12065
+ issues: array(PipelineValidationIssueSchema).readonly(),
12066
+ substitutions: array(ModelSubstitutionSchema).readonly(),
12067
+ /** The node's `currentEngine.format` this validation ran against. */
12068
+ format: string()
12069
+ });
12000
12070
  var ReferenceImageEntrySchema = object({
12001
12071
  filename: string(),
12002
12072
  stepIds: array(string()).readonly().optional()
@@ -12067,7 +12137,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12067
12137
  })) }), object({ success: literal(true) }), {
12068
12138
  kind: "mutation",
12069
12139
  auth: "admin"
12070
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
12140
+ }), method(object({ nodeId: string() }), object({
12141
+ success: literal(true),
12142
+ clearedDevices: number()
12143
+ }), {
12144
+ kind: "mutation",
12145
+ auth: "admin"
12146
+ }), 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({
12071
12147
  name: string(),
12072
12148
  steps: array(PipelineTemplateStepSchema).readonly(),
12073
12149
  engine: PipelineEngineChoiceSchema
@@ -12084,10 +12160,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12084
12160
  modelId: string(),
12085
12161
  format: ModelFormatSchema$1
12086
12162
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
12087
- addonId: string(),
12088
- frame: FrameInputSchema,
12089
- config: record(string(), unknown()).optional()
12090
- }), DetectorOutputSchema), method(object({
12091
12163
  engine: PipelineEngineChoiceSchema.optional(),
12092
12164
  steps: array(PipelineStepInputSchema).min(1),
12093
12165
  frame: FrameInputSchema.optional(),
@@ -12108,7 +12180,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12108
12180
  image: _instanceof(Uint8Array).optional(),
12109
12181
  referenceImage: string().optional(),
12110
12182
  deviceId: number().optional(),
12111
- sessionId: string().optional()
12183
+ sessionId: string().optional(),
12184
+ /**
12185
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
12186
+ * reference-image, and detail-subtree calls. 'frame' is the live
12187
+ * per-frame dispatch: ONLY root-plane steps run; crop children
12188
+ * (inputClasses ≠ null) are skipped and served per-track via
12189
+ * pipelineRunner.runDetailSubtree (two-plane design).
12190
+ */
12191
+ plane: _enum(["full", "frame"]).optional()
12112
12192
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
12113
12193
  engine: PipelineEngineChoiceSchema.optional(),
12114
12194
  steps: array(PipelineStepInputSchema).min(1),
@@ -12266,6 +12346,47 @@ var zonesCapability = {
12266
12346
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12267
12347
  };
12268
12348
  /**
12349
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12350
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12351
+ * so the caller supplies only the detection-res bbox divided by the detection
12352
+ * dims — no native resolution to plumb.
12353
+ */
12354
+ var NativeCropBboxSchema = object({
12355
+ x: number(),
12356
+ y: number(),
12357
+ w: number(),
12358
+ h: number()
12359
+ });
12360
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12361
+ var NativeCropResultSchema = object({
12362
+ /** Packed rgb (24-bit) pixels of the crop. */
12363
+ bytes: _instanceof(Uint8Array),
12364
+ width: number().int().positive(),
12365
+ height: number().int().positive()
12366
+ });
12367
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12368
+ * originating detection, in FRAME-space coordinates. Reuses
12369
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12370
+ * the coordinates are frame-space rather than getNativeCrop's
12371
+ * normalized [0,1] convention). */
12372
+ var DetailParentSchema = object({
12373
+ bbox: NativeCropBboxSchema,
12374
+ className: string()
12375
+ });
12376
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12377
+ * or refined detection produced by running the crop-subtree on a
12378
+ * single tracked detection. */
12379
+ var DetailResultSchema = object({
12380
+ stepId: string(),
12381
+ className: string(),
12382
+ score: number(),
12383
+ /** FRAME-space bbox (already mapped back from crop space). */
12384
+ bbox: NativeCropBboxSchema.optional(),
12385
+ embedding: string().optional(),
12386
+ label: string().optional(),
12387
+ alignedCropJpeg: string().optional()
12388
+ });
12389
+ /**
12269
12390
  * Per-camera tunable ranges + defaults. Single source of truth used
12270
12391
  * by both the Zod data schema (validation + default fallback) and
12271
12392
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12360,6 +12481,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12360
12481
  kind: literal("remote-restream"),
12361
12482
  /** The camera's source-owner node (slice 1: always the hub). */
12362
12483
  ownerNodeId: string(),
12484
+ /**
12485
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12486
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12487
+ * dials THIS host for the owner's restream, in preference to the
12488
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12489
+ */
12490
+ ownerReachableHost: string().optional(),
12363
12491
  /** Operator override for the owner host the runner dials. */
12364
12492
  hubHostnameOverride: string().optional()
12365
12493
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12368,13 +12496,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12368
12496
  * specific runner instance via `attachCamera`. Carries everything the
12369
12497
  * runner needs to subscribe to the local broker and execute inference.
12370
12498
  *
12371
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12372
- * optional `audio`) travels with the attach payload. The runner keeps it
12373
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12374
- * restart the orchestrator re-sends the latest snapshot.
12375
- *
12376
- * `engine`/`steps`/`audio` are optional during the additive migration
12377
- * window; once orchestrator + UI are migrated they become required.
12499
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12500
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12501
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12502
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12503
+ * node-local, resolved by the executing runner at dispatch time.
12378
12504
  */
12379
12505
  var RunnerCameraConfigSchema = object({
12380
12506
  deviceId: number(),
@@ -12425,14 +12551,11 @@ var RunnerCameraConfigSchema = object({
12425
12551
  */
12426
12552
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12427
12553
  pipelineEnabled: boolean().default(true),
12428
- /** Engine choice for video steps (runtime+backend+format). */
12429
- engine: PipelineEngineChoiceSchema.optional(),
12430
12554
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12431
12555
  steps: array(PipelineStepInputSchema).readonly().optional(),
12432
12556
  /** Audio classification branch. `enabled:false` disables, null skips. */
12433
12557
  audio: object({
12434
- engine: PipelineEngineChoiceSchema,
12435
- modelId: string(),
12558
+ modelId: string().optional(),
12436
12559
  enabled: boolean()
12437
12560
  }).nullable().optional(),
12438
12561
  /**
@@ -12519,7 +12642,17 @@ var RunnerLocalMetricsSchema = object({
12519
12642
  avgInferenceTimeMs: number(),
12520
12643
  queueDepth: number()
12521
12644
  });
12522
- 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());
12645
+ 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({
12646
+ handle: FrameHandleSchema,
12647
+ bbox: NativeCropBboxSchema,
12648
+ maxWidth: number().int().positive().optional()
12649
+ }), NativeCropResultSchema.nullable()), method(object({
12650
+ deviceId: number(),
12651
+ frameHandle: FrameHandleSchema.optional(),
12652
+ cropJpeg: string().optional(),
12653
+ parent: DetailParentSchema,
12654
+ steps: array(string()).optional()
12655
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12523
12656
  /**
12524
12657
  * Hardware / firmware motion sensor cap — binary detected state plus
12525
12658
  * a timestamp of the last observation. Distinct from
@@ -15450,7 +15583,9 @@ var AddonPageDeclarationSchema$1 = object({
15450
15583
  icon: string(),
15451
15584
  path: string(),
15452
15585
  remoteName: string(),
15453
- bundle: string()
15586
+ bundle: string(),
15587
+ section: string().optional(),
15588
+ sectionLabel: string().optional()
15454
15589
  });
15455
15590
  var AddonPageInfoSchema = object({
15456
15591
  addonId: string(),
@@ -15490,7 +15625,18 @@ var AddonPageDeclarationSchema = object({
15490
15625
  * the static-file route can compute an mtime-based cache-buster URL
15491
15626
  * without a separate filesystem stat.
15492
15627
  */
15493
- bundle: string()
15628
+ bundle: string(),
15629
+ /**
15630
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15631
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15632
+ * Any OTHER string creates (or joins) a custom section rendered after
15633
+ * the built-in groups; its label comes from `sectionLabel` (first
15634
+ * declaration wins), falling back to the id. Absent → the legacy
15635
+ * "Addon Pages" group.
15636
+ */
15637
+ section: string().optional(),
15638
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15639
+ sectionLabel: string().optional()
15494
15640
  });
15495
15641
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15496
15642
  var AddonHttpRouteSchema = object({
@@ -15706,6 +15852,17 @@ var WidgetMetadataSchema = object({
15706
15852
  deviceContext: boolean().default(false),
15707
15853
  integrationContext: boolean().default(false)
15708
15854
  }),
15855
+ /**
15856
+ * Loadable BEFORE authentication. The normal widget registry listing
15857
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15858
+ * (the login page) cannot discover a widget through it. A widget that
15859
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15860
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15861
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15862
+ * than the authenticated registry, and its bundle is served by the
15863
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15864
+ */
15865
+ preAuth: boolean().optional().default(false),
15709
15866
  /** Dashboard placement HINTS (operator can override per instance). */
15710
15867
  defaultSize: WidgetSizeEnum.default("md"),
15711
15868
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -16007,6 +16164,66 @@ method(object({
16007
16164
  password: string()
16008
16165
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
16009
16166
  /**
16167
+ * `login-method` — collection cap through which auth addons contribute
16168
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
16169
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
16170
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
16171
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
16172
+ * procedure aggregates them for the unauthenticated login page.
16173
+ *
16174
+ * A contribution is a discriminated union on `kind`:
16175
+ *
16176
+ * - `redirect` — a declarative button. The login page renders a generic
16177
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
16178
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
16179
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
16180
+ * login page needs NO change.
16181
+ *
16182
+ * - `widget` — a Module-Federation widget the login page mounts (via
16183
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
16184
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
16185
+ * addon bundle. The referenced widget also declares `preAuth: true` in
16186
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
16187
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
16188
+ *
16189
+ * Every contribution carries a `stage`:
16190
+ * - `primary` — shown on the first credentials screen (OIDC /
16191
+ * magic-link buttons; a future usernameless passkey).
16192
+ * - `second-factor` — shown AFTER the password leg, gated on the
16193
+ * returned `factors` (passkey-as-2FA today).
16194
+ *
16195
+ * `mount: skip` — the cap is read server-side by the core auth router
16196
+ * (`registry.getCollection('login-method')`), never mounted as its own
16197
+ * tRPC router.
16198
+ */
16199
+ /** When a login method renders in the two-phase login flow. */
16200
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
16201
+ /** One login-method contribution — redirect button OR pre-auth widget. */
16202
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
16203
+ kind: literal("redirect"),
16204
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
16205
+ id: string(),
16206
+ /** Operator-facing button label. */
16207
+ label: string(),
16208
+ /** lucide-react icon name. */
16209
+ icon: string().optional(),
16210
+ /** Addon-owned HTTP route the button navigates to (GET). */
16211
+ startUrl: string(),
16212
+ stage: LoginStageEnum
16213
+ }), object({
16214
+ kind: literal("widget"),
16215
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
16216
+ id: string(),
16217
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
16218
+ addonId: string(),
16219
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
16220
+ bundle: string(),
16221
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
16222
+ remote: WidgetRemoteSchema,
16223
+ stage: LoginStageEnum
16224
+ })]);
16225
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16226
+ /**
16010
16227
  * Orchestrator-side destination metadata. The orchestrator computes
16011
16228
  * `id = <addonId>:<subId>` from its provider lookup so consumers
16012
16229
  * (admin UI, restore flow) see one canonical key.
@@ -18190,7 +18407,17 @@ var TrackSchema = object({
18190
18407
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
18191
18408
  totalDistance: number(),
18192
18409
  state: TrackStateSchema,
18193
- active: boolean()
18410
+ active: boolean(),
18411
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18412
+ * track expiry, recomputed on late label). Absent on legacy rows written
18413
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18414
+ importance: number().optional(),
18415
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18416
+ * "best" frame). Absent when the track produced no object events. */
18417
+ bestEventId: string().optional(),
18418
+ /** Tag of the importance sub-signal that dominated the score
18419
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18420
+ importanceReason: string().optional()
18194
18421
  });
18195
18422
  var BaseEventFields = {
18196
18423
  id: string(),
@@ -18255,8 +18482,18 @@ var ObjectEventSchema = object({
18255
18482
  frameHeight: number().optional(),
18256
18483
  /** MediaStore key for the crop attached to this event (if any). */
18257
18484
  mediaKey: string().optional(),
18485
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18486
+ * best-detection full frame). Resolve via the event-media data-plane
18487
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18488
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18489
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18490
+ keyFrameMediaKey: string().optional(),
18258
18491
  /** Populated by B5 (recording playback URL for this event). */
18259
- mediaUrl: string().optional()
18492
+ mediaUrl: string().optional(),
18493
+ /** The parent track's key-event importance [0,1], propagated to every object
18494
+ * event of the track (so an event row can be sorted by importance without a
18495
+ * track join). Absent on legacy rows / before the track was scored. */
18496
+ importance: number().optional()
18260
18497
  });
18261
18498
  var AudioEventSchema = object({
18262
18499
  ...BaseEventFields,
@@ -18280,7 +18517,8 @@ var MediaFileKindEnum = _enum([
18280
18517
  "fullFrame",
18281
18518
  "fullFrameBoxed",
18282
18519
  "faceCrop",
18283
- "plateCrop"
18520
+ "plateCrop",
18521
+ "keyFrame"
18284
18522
  ]);
18285
18523
  var MediaFileSchema = object({
18286
18524
  key: string(),
@@ -18301,6 +18539,32 @@ var DeviceEventQueryInput = object({
18301
18539
  projection: _enum(["full", "slim"]).optional()
18302
18540
  });
18303
18541
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18542
+ var KeyEventQueryInput = object({
18543
+ deviceId: number(),
18544
+ /** Window lower bound (track firstSeen ≥ since). */
18545
+ since: number(),
18546
+ /** Window upper bound (track firstSeen ≤ until). */
18547
+ until: number(),
18548
+ limit: number().int().min(1).max(200).default(50),
18549
+ /** Drop tracks scoring below this importance. */
18550
+ minImportance: number().min(0).max(1).optional(),
18551
+ /** Restrict to a single class (e.g. 'person'). */
18552
+ classFilter: string().optional()
18553
+ });
18554
+ var KeyEventSchema = object({
18555
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18556
+ id: string(),
18557
+ trackId: string(),
18558
+ /** Track start time (firstSeen). */
18559
+ timestamp: number(),
18560
+ className: string(),
18561
+ label: string().optional(),
18562
+ importance: number(),
18563
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18564
+ bestEventId: string(),
18565
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18566
+ windowMs: number().optional()
18567
+ });
18304
18568
  var TrackedDetectionSchema = object({
18305
18569
  trackId: string(),
18306
18570
  className: string(),
@@ -18330,7 +18594,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18330
18594
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18331
18595
  kind: "mutation",
18332
18596
  auth: "admin"
18333
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18597
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18334
18598
  deviceId: number(),
18335
18599
  since: number(),
18336
18600
  until: number(),
@@ -18375,11 +18639,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18375
18639
  timestamp: number()
18376
18640
  });
18377
18641
  var CameraPipelineConfigSchema = object({
18378
- engine: PipelineEngineChoiceSchema,
18642
+ engine: PipelineEngineChoiceSchema.optional(),
18379
18643
  steps: array(PipelineStepInputSchema).readonly(),
18380
18644
  audio: object({
18381
- engine: PipelineEngineChoiceSchema,
18382
- modelId: string(),
18645
+ engine: PipelineEngineChoiceSchema.optional(),
18646
+ modelId: string().optional(),
18383
18647
  enabled: boolean(),
18384
18648
  settings: record(string(), unknown()).readonly().optional()
18385
18649
  }).nullable().optional()
@@ -18394,7 +18658,7 @@ var PipelineTemplateSchema = object({
18394
18658
  });
18395
18659
  var AgentAddonConfigSchema = object({
18396
18660
  enabled: boolean(),
18397
- modelId: string(),
18661
+ modelId: string().optional(),
18398
18662
  settings: record(string(), unknown()).readonly()
18399
18663
  });
18400
18664
  var AgentPipelineSettingsSchema = object({
@@ -18404,12 +18668,25 @@ var AgentPipelineSettingsSchema = object({
18404
18668
  detectWeight: number().positive().optional(),
18405
18669
  /** Node is eligible to run the detection pipeline (decode + inference). */
18406
18670
  detect: boolean().optional(),
18407
- /** Node is eligible to host decoder sessions. */
18671
+ /**
18672
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18673
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18674
+ * the schema ONLY so persisted stores written before the removal still
18675
+ * parse — no code reads it and no write path emits it.
18676
+ */
18408
18677
  decode: boolean().optional(),
18409
18678
  /** Node is eligible to run audio-analyzer sessions. */
18410
18679
  audio: boolean().optional(),
18411
18680
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18412
- ingest: boolean().optional()
18681
+ ingest: boolean().optional(),
18682
+ /**
18683
+ * Operator override for the LAN host a cross-node decoder dials to reach
18684
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18685
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18686
+ * it already uses to reach the hub). Set this only when the auto-detected
18687
+ * address is wrong (multi-homed host, NAT, custom interface).
18688
+ */
18689
+ reachableHost: string().optional()
18413
18690
  });
18414
18691
  var CameraPipelineForAgentSchema = object({
18415
18692
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18457,25 +18734,6 @@ var PipelineAssignmentSchema = object({
18457
18734
  assignedAt: number()
18458
18735
  });
18459
18736
  /**
18460
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18461
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18462
- * → co-located with pipeline → capacity).
18463
- */
18464
- var DecoderAssignmentSchema = object({
18465
- deviceId: number(),
18466
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18467
- decoderNodeId: string(),
18468
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18469
- pinned: boolean(),
18470
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18471
- reason: _enum([
18472
- "manual",
18473
- "co-located",
18474
- "capacity",
18475
- "hardware-affinity"
18476
- ])
18477
- });
18478
- /**
18479
18737
  * Per-agent load summary surfaced to the load balancer + dashboards.
18480
18738
  * Aggregated from each runner's `getLocalLoad` cap call.
18481
18739
  */
@@ -18515,6 +18773,15 @@ var GlobalMetricsSchema = object({
18515
18773
  * capability providers.
18516
18774
  */
18517
18775
  var CapabilityBindingsSchema = record(string(), string());
18776
+ /**
18777
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18778
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18779
+ */
18780
+ var IngestOwnerSchema = object({
18781
+ ownerNodeId: string(),
18782
+ reachableHost: string().optional(),
18783
+ configIssue: string().optional()
18784
+ });
18518
18785
  /** Source block — always present; derives from the stream catalog. */
18519
18786
  var CameraSourceStatusSchema = object({ streams: array(object({
18520
18787
  camStreamId: string(),
@@ -18529,6 +18796,14 @@ var CameraAssignmentStatusSchema = object({
18529
18796
  detectionNodeId: string().nullable(),
18530
18797
  decoderNodeId: string().nullable(),
18531
18798
  audioNodeId: string().nullable(),
18799
+ /**
18800
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18801
+ * hosts the broker/restream) — the cluster ingest owner today
18802
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18803
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18804
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18805
+ */
18806
+ sourceNodeId: string().nullable(),
18532
18807
  pinned: object({
18533
18808
  detection: boolean(),
18534
18809
  decoder: boolean(),
@@ -18661,16 +18936,7 @@ method(object({
18661
18936
  }), object({ success: literal(true) }), {
18662
18937
  kind: "mutation",
18663
18938
  auth: "admin"
18664
- }), method(object({
18665
- deviceId: number(),
18666
- nodeId: string()
18667
- }), _void(), {
18668
- kind: "mutation",
18669
- auth: "admin"
18670
- }), method(object({ deviceId: number() }), _void(), {
18671
- kind: "mutation",
18672
- auth: "admin"
18673
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18939
+ }), method(_void(), IngestOwnerSchema), method(object({
18674
18940
  deviceId: number(),
18675
18941
  nodeId: string()
18676
18942
  }), object({ success: literal(true) }), {
@@ -18691,10 +18957,7 @@ method(object({
18691
18957
  nodeId: string(),
18692
18958
  pinned: boolean(),
18693
18959
  assignedAt: number()
18694
- }))), method(object({
18695
- deviceId: number(),
18696
- pipelineNodeId: string().optional()
18697
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18960
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18698
18961
  nodeId: string(),
18699
18962
  settings: AgentPipelineSettingsSchema
18700
18963
  })).readonly()), method(object({
@@ -18724,12 +18987,26 @@ method(object({
18724
18987
  }), method(object({
18725
18988
  agentNodeId: string(),
18726
18989
  detect: boolean().nullable().optional(),
18727
- decode: boolean().nullable().optional(),
18728
18990
  audio: boolean().nullable().optional(),
18729
18991
  ingest: boolean().nullable().optional()
18730
18992
  }), object({ success: literal(true) }), {
18731
18993
  kind: "mutation",
18732
18994
  auth: "admin"
18995
+ }), method(object({
18996
+ agentNodeId: string(),
18997
+ reachableHost: string().nullable()
18998
+ }), object({ success: literal(true) }), {
18999
+ kind: "mutation",
19000
+ auth: "admin"
19001
+ }), method(object({ agentNodeId: string() }), object({
19002
+ success: literal(true),
19003
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
19004
+ effectiveModelId: string().nullable(),
19005
+ /** Number of cameras whose node-scoped overrides were cleared. */
19006
+ clearedCameraOverrides: number()
19007
+ }), {
19008
+ kind: "mutation",
19009
+ auth: "admin"
18733
19010
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18734
19011
  deviceId: number(),
18735
19012
  addonId: string(),
@@ -18774,22 +19051,131 @@ method(object({
18774
19051
  kind: "mutation",
18775
19052
  auth: "admin"
18776
19053
  });
18777
- var RegisteredStreamSchema = object({
18778
- streamId: string(),
18779
- label: string().optional(),
18780
- codec: string(),
18781
- type: _enum(["video", "audio"]),
18782
- sourceUrl: string()
19054
+ /**
19055
+ * server-management — per-NODE singleton capability for a node's ROOT
19056
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
19057
+ * agents).
19058
+ *
19059
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
19060
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
19061
+ * version describes the node. Updates install into
19062
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
19063
+ * starter (probation boot + auto-rollback to N-1).
19064
+ *
19065
+ * Providers:
19066
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
19067
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
19068
+ * unpinned calls.
19069
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
19070
+ * the synthetic `agent-runtime` addonId and declared in the agent's
19071
+ * `$hub.registerNode` manifest.
19072
+ *
19073
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
19074
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
19075
+ * SDK) routes the call to that node's provider via the standard remote
19076
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
19077
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
19078
+ *
19079
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
19080
+ */
19081
+ /**
19082
+ * Where the running hub's code was loaded from:
19083
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
19084
+ * plain resolution and runtime updates are refused.
19085
+ * - `baked` — the immutable image seed closure (no data-dir root active).
19086
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
19087
+ */
19088
+ var ServerBootModeSchema = _enum([
19089
+ "workspace",
19090
+ "baked",
19091
+ "data-root"
19092
+ ]);
19093
+ /**
19094
+ * Update lifecycle state:
19095
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
19096
+ * - `pending-restart` — a version is staged and the node has NOT yet
19097
+ * restarted onto it (still running the OLD version).
19098
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
19099
+ * (it is the active probation boot) and is waiting to confirm boot-health.
19100
+ * Apply/rollback are refused in this state and the node must NOT be
19101
+ * manually restarted, or the probation boot auto-rolls-back.
19102
+ */
19103
+ var ServerUpdateStateSchema = _enum([
19104
+ "idle",
19105
+ "checking",
19106
+ "staging",
19107
+ "pending-restart",
19108
+ "awaiting-confirmation"
19109
+ ]);
19110
+ var ServerRollbackInfoSchema = object({
19111
+ /** The version that failed (or was manually rolled back). */
19112
+ fromVersion: string(),
19113
+ /** The version rolled back to; null = the baked seed. */
19114
+ toVersion: string().nullable(),
19115
+ atMs: number(),
19116
+ reason: string()
18783
19117
  });
18784
- var ExposedResourceSchema = object({
18785
- streamId: string(),
18786
- format: string(),
18787
- value: string()
19118
+ var ServerPackageStatusSchema = object({
19119
+ /** Root package name (`@camstack/server` on the hub). */
19120
+ packageName: string(),
19121
+ /** Version of the code the running process ACTUALLY loaded. */
19122
+ runningVersion: string().nullable(),
19123
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
19124
+ nodeRuntimeVersion: string().nullable(),
19125
+ /** Active data-dir root version; null when booted from seed/workspace. */
19126
+ activeVersion: string().nullable(),
19127
+ /** N-1 version kept for rollback; null when no previous version exists. */
19128
+ previousVersion: string().nullable(),
19129
+ /** Version of the immutable baked seed closure (image fallback). */
19130
+ seedVersion: string().nullable(),
19131
+ /** Latest registry version from the most recent check (null = never checked). */
19132
+ latestVersion: string().nullable(),
19133
+ updateAvailable: boolean(),
19134
+ bootMode: ServerBootModeSchema,
19135
+ updateState: ServerUpdateStateSchema,
19136
+ /** Version staged + awaiting its probation boot, when one is pending. */
19137
+ pendingVersion: string().nullable(),
19138
+ /** Set when the last freshly-activated version failed its boot health-check. */
19139
+ rolledBack: ServerRollbackInfoSchema.nullable(),
19140
+ /**
19141
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
19142
+ * hub is running from the baked seed (or workspace) while installed data-dir
19143
+ * versions are being IGNORED. Surfaced as a warning in the UI.
19144
+ */
19145
+ stateFileCorrupt: boolean(),
19146
+ lastCheckedAtMs: number().nullable()
19147
+ });
19148
+ var ServerUpdateCheckResultSchema = object({
19149
+ packageName: string(),
19150
+ runningVersion: string().nullable(),
19151
+ latestVersion: string().nullable(),
19152
+ updateAvailable: boolean(),
19153
+ checkedAtMs: number(),
19154
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
19155
+ error: string().nullable()
19156
+ });
19157
+ var ServerUpdateActionResultSchema = object({
19158
+ accepted: boolean(),
19159
+ targetVersion: string().nullable(),
19160
+ /** True when a graceful restart was scheduled to apply the change. */
19161
+ restarting: boolean(),
19162
+ message: string()
19163
+ });
19164
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
19165
+ kind: "mutation",
19166
+ auth: "admin"
19167
+ }), method(object({
19168
+ /** Explicit target version; omitted = latest from the registry. */
19169
+ version: string().optional() }), ServerUpdateActionResultSchema, {
19170
+ kind: "mutation",
19171
+ auth: "admin"
19172
+ }), method(_void(), ServerUpdateActionResultSchema, {
19173
+ kind: "mutation",
19174
+ auth: "admin"
19175
+ }), method(_void(), ServerUpdateActionResultSchema, {
19176
+ kind: "mutation",
19177
+ auth: "admin"
18788
19178
  });
18789
- method(object({
18790
- deviceId: number(),
18791
- streams: array(RegisteredStreamSchema).readonly()
18792
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18793
19179
  /**
18794
19180
  * Query filter for settings-store collections.
18795
19181
  */
@@ -18942,9 +19328,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18942
19328
  /**
18943
19329
  * A single device snapshot returned as base64 JPEG/PNG.
18944
19330
  *
18945
- * Shared with the `snapshot-provider` collection cap the orchestrator
18946
- * receives the same shape from each native provider and from the
18947
- * broker-based fallback.
19331
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19332
+ * the device-native provider (onboard capture) or from the stream-broker
19333
+ * prebuffer fallback.
18948
19334
  */
18949
19335
  var SnapshotImageSchema = object({
18950
19336
  base64: string(),
@@ -18975,11 +19361,12 @@ DeviceType.Camera, method(object({
18975
19361
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18976
19362
  kind: "mutation",
18977
19363
  auth: "admin"
18978
- });
18979
- method(object({ deviceId: number() }), boolean()), method(object({
19364
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18980
19365
  deviceId: number(),
18981
- streamId: string().optional()
18982
- }), SnapshotImageSchema.nullable());
19366
+ lastCapturedAt: number().nullable(),
19367
+ cacheAgeMs: number().nullable(),
19368
+ etag: string().nullable()
19369
+ })));
18983
19370
  /**
18984
19371
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18985
19372
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -19230,10 +19617,32 @@ method(_void(), array(TurnServerSchema).readonly());
19230
19617
  * b. `finishAuthentication({userId, response})` → server verifies
19231
19618
  * the assertion, bumps the credential counter, returns ok.
19232
19619
  *
19620
+ * 2b. Usernameless (discoverable-credential) authentication — the
19621
+ * passkey IS the primary factor, no password leg:
19622
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19623
+ * EMPTY `allowCredentials` (the browser offers every resident
19624
+ * passkey it holds for this RP) + `userVerification: 'required'`
19625
+ * (the passkey replaces both factors, so UV is mandatory).
19626
+ * The challenge is stored server-side, NOT bound to any user.
19627
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19628
+ * resolves the credential by the response's credential id,
19629
+ * verifies the assertion against the stored challenge + that
19630
+ * credential's public key/counter, and returns the OWNING
19631
+ * `userId` — the caller (core auth router) mints the session.
19632
+ *
19233
19633
  * 3. Management:
19234
19634
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
19235
19635
  * - `removePasskey({userId, credentialId})` — revoke one credential.
19236
19636
  *
19637
+ * 4. Second-factor preference (opt-in, default OFF):
19638
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19639
+ * demanded as a second factor after a password login ONLY when the
19640
+ * user explicitly opts in via `setSecondFactorPreference`.
19641
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19642
+ * row ⇒ `enabled: false`).
19643
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19644
+ * the providing addon beside its credentials.
19645
+ *
19237
19646
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
19238
19647
  * the admin-ui composes the begin/finish round-trip and never exposes
19239
19648
  * the cap to non-admins.
@@ -19276,6 +19685,17 @@ method(object({
19276
19685
  }), object({ verified: boolean() }), {
19277
19686
  kind: "mutation",
19278
19687
  access: "view"
19688
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19689
+ kind: "mutation",
19690
+ access: "view"
19691
+ }), method(object({
19692
+ /** AuthenticationResponseJSON from the browser. */
19693
+ response: record(string(), unknown()) }), object({
19694
+ verified: boolean(),
19695
+ userId: string().nullable()
19696
+ }), {
19697
+ kind: "mutation",
19698
+ access: "view"
19279
19699
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
19280
19700
  userId: string(),
19281
19701
  credentialId: string()
@@ -19283,6 +19703,13 @@ method(object({
19283
19703
  kind: "mutation",
19284
19704
  auth: "admin",
19285
19705
  access: "delete"
19706
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19707
+ userId: string(),
19708
+ enabled: boolean()
19709
+ }), object({ success: literal(true) }), {
19710
+ kind: "mutation",
19711
+ auth: "admin",
19712
+ access: "create"
19286
19713
  });
19287
19714
  /**
19288
19715
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19340,9 +19767,10 @@ method(object({
19340
19767
  auth: "admin"
19341
19768
  });
19342
19769
  /**
19343
- * Optional client-side hints sent at session creation to help the
19344
- * provider pick the best native source. All fields are optional —
19345
- * a viewer that knows nothing still gets a sane default.
19770
+ * Optional client-side hints sent at session creation to help the provider
19771
+ * pick the best native source. All fields optional — a viewer that knows
19772
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19773
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19346
19774
  */
19347
19775
  var webrtcClientHintsSchema = object({
19348
19776
  viewportWidth: number().int().positive().optional(),
@@ -19353,22 +19781,6 @@ var webrtcClientHintsSchema = object({
19353
19781
  /** Hard tier override; takes precedence over scoring when registered. */
19354
19782
  prefersTier: string().optional()
19355
19783
  }).partial();
19356
- method(object({
19357
- streamId: string(),
19358
- sdpOffer: string()
19359
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19360
- streamId: string(),
19361
- codec: string()
19362
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19363
- streamId: string(),
19364
- hints: webrtcClientHintsSchema.optional()
19365
- }), object({
19366
- sessionId: string(),
19367
- sdpOffer: string()
19368
- }), { kind: "mutation" }), method(object({
19369
- sessionId: string(),
19370
- sdpAnswer: string()
19371
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19372
19784
  /**
19373
19785
  * Discriminated target for a WebRTC session. The client sends this
19374
19786
  * structured object instead of building / parsing brokerId strings;
@@ -20188,7 +20600,17 @@ var FaceInfoSchema = object({
20188
20600
  recognizedIdentityId: string().optional(),
20189
20601
  identityName: string().optional(),
20190
20602
  assigned: boolean(),
20191
- base64: string().optional()
20603
+ base64: string().optional(),
20604
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20605
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20606
+ * legacy rows written before design B. */
20607
+ faceBbox: BoundingBoxSchema.optional(),
20608
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20609
+ * Fetch the native JPEG via the event-media data-plane
20610
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20611
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20612
+ * back to the inline `base64` face crop. */
20613
+ keyFrameMediaKey: string().optional()
20192
20614
  });
20193
20615
  var FaceFilterEnum = _enum([
20194
20616
  "unassigned",
@@ -20885,6 +21307,16 @@ var TopologyCategorySchema = object({
20885
21307
  healthy: number(),
20886
21308
  addons: array(TopologyCategoryAddonSchema).readonly()
20887
21309
  });
21310
+ /**
21311
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
21312
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
21313
+ * version visibility for the Server management surface. Nullable: offline
21314
+ * rows and pre-phase-2 nodes report none.
21315
+ */
21316
+ var TopologyRootPackageSchema = object({
21317
+ name: string(),
21318
+ version: string()
21319
+ });
20888
21320
  var TopologyNodeSchema = object({
20889
21321
  id: string(),
20890
21322
  name: string(),
@@ -20908,7 +21340,8 @@ var TopologyNodeSchema = object({
20908
21340
  status: string()
20909
21341
  })).readonly(),
20910
21342
  processes: array(TopologyProcessSchema).readonly(),
20911
- categories: array(TopologyCategorySchema).readonly()
21343
+ categories: array(TopologyCategorySchema).readonly(),
21344
+ rootPackage: TopologyRootPackageSchema.nullable()
20912
21345
  });
20913
21346
  var CapUsageEdgeSchema = object({
20914
21347
  callerAddonId: string(),
@@ -23708,6 +24141,12 @@ Object.freeze({
23708
24141
  addonId: null,
23709
24142
  access: "create"
23710
24143
  },
24144
+ "loginMethod.getLoginMethods": {
24145
+ capName: "login-method",
24146
+ capScope: "system",
24147
+ addonId: null,
24148
+ access: "view"
24149
+ },
23711
24150
  "mediaPlayer.next": {
23712
24151
  capName: "media-player",
23713
24152
  capScope: "device",
@@ -24290,6 +24729,12 @@ Object.freeze({
24290
24729
  addonId: null,
24291
24730
  access: "view"
24292
24731
  },
24732
+ "pipelineAnalytics.getKeyEvents": {
24733
+ capName: "pipeline-analytics",
24734
+ capScope: "device",
24735
+ addonId: null,
24736
+ access: "view"
24737
+ },
24293
24738
  "pipelineAnalytics.getMotionEvents": {
24294
24739
  capName: "pipeline-analytics",
24295
24740
  capScope: "device",
@@ -24338,23 +24783,23 @@ Object.freeze({
24338
24783
  addonId: null,
24339
24784
  access: "create"
24340
24785
  },
24341
- "pipelineExecutor.deleteModel": {
24786
+ "pipelineExecutor.clearDeviceOverrides": {
24342
24787
  capName: "pipeline-executor",
24343
24788
  capScope: "system",
24344
24789
  addonId: null,
24345
24790
  access: "delete"
24346
24791
  },
24347
- "pipelineExecutor.deleteTemplate": {
24792
+ "pipelineExecutor.deleteModel": {
24348
24793
  capName: "pipeline-executor",
24349
24794
  capScope: "system",
24350
24795
  addonId: null,
24351
24796
  access: "delete"
24352
24797
  },
24353
- "pipelineExecutor.detect": {
24798
+ "pipelineExecutor.deleteTemplate": {
24354
24799
  capName: "pipeline-executor",
24355
24800
  capScope: "system",
24356
24801
  addonId: null,
24357
- access: "view"
24802
+ access: "delete"
24358
24803
  },
24359
24804
  "pipelineExecutor.downloadModel": {
24360
24805
  capName: "pipeline-executor",
@@ -24548,13 +24993,13 @@ Object.freeze({
24548
24993
  addonId: null,
24549
24994
  access: "create"
24550
24995
  },
24551
- "pipelineOrchestrator.assignAudio": {
24552
- capName: "pipeline-orchestrator",
24996
+ "pipelineExecutor.validatePipeline": {
24997
+ capName: "pipeline-executor",
24553
24998
  capScope: "system",
24554
24999
  addonId: null,
24555
- access: "create"
25000
+ access: "view"
24556
25001
  },
24557
- "pipelineOrchestrator.assignDecoder": {
25002
+ "pipelineOrchestrator.assignAudio": {
24558
25003
  capName: "pipeline-orchestrator",
24559
25004
  capScope: "system",
24560
25005
  addonId: null,
@@ -24638,19 +25083,13 @@ Object.freeze({
24638
25083
  addonId: null,
24639
25084
  access: "view"
24640
25085
  },
24641
- "pipelineOrchestrator.getDecoderAssignment": {
24642
- capName: "pipeline-orchestrator",
24643
- capScope: "system",
24644
- addonId: null,
24645
- access: "view"
24646
- },
24647
- "pipelineOrchestrator.getDecoderAssignments": {
25086
+ "pipelineOrchestrator.getGlobalMetrics": {
24648
25087
  capName: "pipeline-orchestrator",
24649
25088
  capScope: "system",
24650
25089
  addonId: null,
24651
25090
  access: "view"
24652
25091
  },
24653
- "pipelineOrchestrator.getGlobalMetrics": {
25092
+ "pipelineOrchestrator.getIngestOwner": {
24654
25093
  capName: "pipeline-orchestrator",
24655
25094
  capScope: "system",
24656
25095
  addonId: null,
@@ -24692,6 +25131,12 @@ Object.freeze({
24692
25131
  addonId: null,
24693
25132
  access: "delete"
24694
25133
  },
25134
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
25135
+ capName: "pipeline-orchestrator",
25136
+ capScope: "system",
25137
+ addonId: null,
25138
+ access: "delete"
25139
+ },
24695
25140
  "pipelineOrchestrator.resolvePipeline": {
24696
25141
  capName: "pipeline-orchestrator",
24697
25142
  capScope: "system",
@@ -24728,37 +25173,37 @@ Object.freeze({
24728
25173
  addonId: null,
24729
25174
  access: "create"
24730
25175
  },
24731
- "pipelineOrchestrator.setCameraPipelineForAgent": {
25176
+ "pipelineOrchestrator.setAgentReachableHost": {
24732
25177
  capName: "pipeline-orchestrator",
24733
25178
  capScope: "system",
24734
25179
  addonId: null,
24735
25180
  access: "create"
24736
25181
  },
24737
- "pipelineOrchestrator.setCameraStepOverride": {
25182
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24738
25183
  capName: "pipeline-orchestrator",
24739
25184
  capScope: "system",
24740
25185
  addonId: null,
24741
25186
  access: "create"
24742
25187
  },
24743
- "pipelineOrchestrator.setCameraStepToggle": {
25188
+ "pipelineOrchestrator.setCameraStepOverride": {
24744
25189
  capName: "pipeline-orchestrator",
24745
25190
  capScope: "system",
24746
25191
  addonId: null,
24747
25192
  access: "create"
24748
25193
  },
24749
- "pipelineOrchestrator.setCapabilityBinding": {
25194
+ "pipelineOrchestrator.setCameraStepToggle": {
24750
25195
  capName: "pipeline-orchestrator",
24751
25196
  capScope: "system",
24752
25197
  addonId: null,
24753
25198
  access: "create"
24754
25199
  },
24755
- "pipelineOrchestrator.unassignAudio": {
25200
+ "pipelineOrchestrator.setCapabilityBinding": {
24756
25201
  capName: "pipeline-orchestrator",
24757
25202
  capScope: "system",
24758
25203
  addonId: null,
24759
25204
  access: "create"
24760
25205
  },
24761
- "pipelineOrchestrator.unassignDecoder": {
25206
+ "pipelineOrchestrator.unassignAudio": {
24762
25207
  capName: "pipeline-orchestrator",
24763
25208
  capScope: "system",
24764
25209
  addonId: null,
@@ -24818,12 +25263,24 @@ Object.freeze({
24818
25263
  addonId: null,
24819
25264
  access: "view"
24820
25265
  },
25266
+ "pipelineRunner.getNativeCrop": {
25267
+ capName: "pipeline-runner",
25268
+ capScope: "system",
25269
+ addonId: null,
25270
+ access: "view"
25271
+ },
24821
25272
  "pipelineRunner.reportMotion": {
24822
25273
  capName: "pipeline-runner",
24823
25274
  capScope: "system",
24824
25275
  addonId: null,
24825
25276
  access: "create"
24826
25277
  },
25278
+ "pipelineRunner.runDetailSubtree": {
25279
+ capName: "pipeline-runner",
25280
+ capScope: "system",
25281
+ addonId: null,
25282
+ access: "create"
25283
+ },
24827
25284
  "plateGallery.correctPlateText": {
24828
25285
  capName: "plate-gallery",
24829
25286
  capScope: "system",
@@ -25058,33 +25515,45 @@ Object.freeze({
25058
25515
  addonId: null,
25059
25516
  access: "create"
25060
25517
  },
25061
- "restreamer.getExposedResources": {
25062
- capName: "restreamer",
25518
+ "scriptRunner.run": {
25519
+ capName: "script-runner",
25520
+ capScope: "device",
25521
+ addonId: null,
25522
+ access: "create"
25523
+ },
25524
+ "scriptRunner.stop": {
25525
+ capName: "script-runner",
25526
+ capScope: "device",
25527
+ addonId: null,
25528
+ access: "create"
25529
+ },
25530
+ "serverManagement.applyServerUpdate": {
25531
+ capName: "server-management",
25063
25532
  capScope: "system",
25064
25533
  addonId: null,
25065
- access: "view"
25534
+ access: "create"
25066
25535
  },
25067
- "restreamer.registerDevice": {
25068
- capName: "restreamer",
25536
+ "serverManagement.checkServerUpdate": {
25537
+ capName: "server-management",
25069
25538
  capScope: "system",
25070
25539
  addonId: null,
25071
25540
  access: "create"
25072
25541
  },
25073
- "restreamer.unregisterDevice": {
25074
- capName: "restreamer",
25542
+ "serverManagement.getServerPackageStatus": {
25543
+ capName: "server-management",
25075
25544
  capScope: "system",
25076
25545
  addonId: null,
25077
- access: "delete"
25546
+ access: "view"
25078
25547
  },
25079
- "scriptRunner.run": {
25080
- capName: "script-runner",
25081
- capScope: "device",
25548
+ "serverManagement.restartServer": {
25549
+ capName: "server-management",
25550
+ capScope: "system",
25082
25551
  addonId: null,
25083
25552
  access: "create"
25084
25553
  },
25085
- "scriptRunner.stop": {
25086
- capName: "script-runner",
25087
- capScope: "device",
25554
+ "serverManagement.rollbackServerUpdate": {
25555
+ capName: "server-management",
25556
+ capScope: "system",
25088
25557
  addonId: null,
25089
25558
  access: "create"
25090
25559
  },
@@ -25172,23 +25641,17 @@ Object.freeze({
25172
25641
  addonId: null,
25173
25642
  access: "view"
25174
25643
  },
25175
- "snapshot.invalidateCache": {
25644
+ "snapshot.getSnapshotOverview": {
25176
25645
  capName: "snapshot",
25177
25646
  capScope: "device",
25178
25647
  addonId: null,
25179
- access: "create"
25180
- },
25181
- "snapshotProvider.getSnapshot": {
25182
- capName: "snapshot-provider",
25183
- capScope: "system",
25184
- addonId: null,
25185
25648
  access: "view"
25186
25649
  },
25187
- "snapshotProvider.supportsDevice": {
25188
- capName: "snapshot-provider",
25189
- capScope: "system",
25650
+ "snapshot.invalidateCache": {
25651
+ capName: "snapshot",
25652
+ capScope: "device",
25190
25653
  addonId: null,
25191
- access: "view"
25654
+ access: "create"
25192
25655
  },
25193
25656
  "ssoBridge.signBridgeToken": {
25194
25657
  capName: "sso-bridge",
@@ -25616,30 +26079,6 @@ Object.freeze({
25616
26079
  addonId: null,
25617
26080
  access: "view"
25618
26081
  },
25619
- "streamingEngine.getStreamUrl": {
25620
- capName: "streaming-engine",
25621
- capScope: "system",
25622
- addonId: null,
25623
- access: "view"
25624
- },
25625
- "streamingEngine.listStreams": {
25626
- capName: "streaming-engine",
25627
- capScope: "system",
25628
- addonId: null,
25629
- access: "view"
25630
- },
25631
- "streamingEngine.registerStream": {
25632
- capName: "streaming-engine",
25633
- capScope: "system",
25634
- addonId: null,
25635
- access: "create"
25636
- },
25637
- "streamingEngine.unregisterStream": {
25638
- capName: "streaming-engine",
25639
- capScope: "system",
25640
- addonId: null,
25641
- access: "delete"
25642
- },
25643
26082
  "streamParams.getConfigSchema": {
25644
26083
  capName: "stream-params",
25645
26084
  capScope: "device",
@@ -25886,6 +26325,12 @@ Object.freeze({
25886
26325
  addonId: null,
25887
26326
  access: "view"
25888
26327
  },
26328
+ "userPasskeys.beginDiscoverableAuthentication": {
26329
+ capName: "user-passkeys",
26330
+ capScope: "system",
26331
+ addonId: null,
26332
+ access: "view"
26333
+ },
25889
26334
  "userPasskeys.beginRegistration": {
25890
26335
  capName: "user-passkeys",
25891
26336
  capScope: "system",
@@ -25898,12 +26343,24 @@ Object.freeze({
25898
26343
  addonId: null,
25899
26344
  access: "view"
25900
26345
  },
26346
+ "userPasskeys.finishDiscoverableAuthentication": {
26347
+ capName: "user-passkeys",
26348
+ capScope: "system",
26349
+ addonId: null,
26350
+ access: "view"
26351
+ },
25901
26352
  "userPasskeys.finishRegistration": {
25902
26353
  capName: "user-passkeys",
25903
26354
  capScope: "system",
25904
26355
  addonId: null,
25905
26356
  access: "create"
25906
26357
  },
26358
+ "userPasskeys.getSecondFactorPreference": {
26359
+ capName: "user-passkeys",
26360
+ capScope: "system",
26361
+ addonId: null,
26362
+ access: "view"
26363
+ },
25907
26364
  "userPasskeys.listPasskeys": {
25908
26365
  capName: "user-passkeys",
25909
26366
  capScope: "system",
@@ -25916,6 +26373,12 @@ Object.freeze({
25916
26373
  addonId: null,
25917
26374
  access: "delete"
25918
26375
  },
26376
+ "userPasskeys.setSecondFactorPreference": {
26377
+ capName: "user-passkeys",
26378
+ capScope: "system",
26379
+ addonId: null,
26380
+ access: "create"
26381
+ },
25919
26382
  "vacuumControl.locate": {
25920
26383
  capName: "vacuum-control",
25921
26384
  capScope: "device",
@@ -25988,6 +26451,18 @@ Object.freeze({
25988
26451
  addonId: null,
25989
26452
  access: "view"
25990
26453
  },
26454
+ "viewerUi.getStaticDir": {
26455
+ capName: "viewer-ui",
26456
+ capScope: "system",
26457
+ addonId: null,
26458
+ access: "view"
26459
+ },
26460
+ "viewerUi.getVersion": {
26461
+ capName: "viewer-ui",
26462
+ capScope: "system",
26463
+ addonId: null,
26464
+ access: "view"
26465
+ },
25991
26466
  "waterHeater.setAway": {
25992
26467
  capName: "water-heater",
25993
26468
  capScope: "device",
@@ -26006,54 +26481,6 @@ Object.freeze({
26006
26481
  addonId: null,
26007
26482
  access: "create"
26008
26483
  },
26009
- "webrtc.closeSession": {
26010
- capName: "webrtc",
26011
- capScope: "system",
26012
- addonId: null,
26013
- access: "create"
26014
- },
26015
- "webrtc.createSession": {
26016
- capName: "webrtc",
26017
- capScope: "system",
26018
- addonId: null,
26019
- access: "create"
26020
- },
26021
- "webrtc.handleAnswer": {
26022
- capName: "webrtc",
26023
- capScope: "system",
26024
- addonId: null,
26025
- access: "create"
26026
- },
26027
- "webrtc.handleOffer": {
26028
- capName: "webrtc",
26029
- capScope: "system",
26030
- addonId: null,
26031
- access: "create"
26032
- },
26033
- "webrtc.hasAdaptiveBitrate": {
26034
- capName: "webrtc",
26035
- capScope: "system",
26036
- addonId: null,
26037
- access: "view"
26038
- },
26039
- "webrtc.registerStream": {
26040
- capName: "webrtc",
26041
- capScope: "system",
26042
- addonId: null,
26043
- access: "create"
26044
- },
26045
- "webrtc.supportsStream": {
26046
- capName: "webrtc",
26047
- capScope: "system",
26048
- addonId: null,
26049
- access: "view"
26050
- },
26051
- "webrtc.unregisterStream": {
26052
- capName: "webrtc",
26053
- capScope: "system",
26054
- addonId: null,
26055
- access: "delete"
26056
- },
26057
26484
  "webrtcSession.addIceCandidate": {
26058
26485
  capName: "webrtc-session",
26059
26486
  capScope: "device",