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