@camstack/addon-provider-petkit 0.1.6 → 0.1.8

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
@@ -4643,7 +4643,7 @@ function preprocess(fn, schema) {
4643
4643
  });
4644
4644
  }
4645
4645
  //#endregion
4646
- //#region ../types/dist/sleep-CZDdRBua.mjs
4646
+ //#region ../types/dist/sleep-Baang_XW.mjs
4647
4647
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4648
4648
  EventCategory["SystemBoot"] = "system.boot";
4649
4649
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -4829,6 +4829,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
4829
4829
  */
4830
4830
  EventCategory["PipelineCameraUpdated"] = "pipeline.camera-updated";
4831
4831
  /**
4832
+ * The cluster camera-source OWNER changed (`clusterRoles.ingestNode`).
4833
+ * Emitted by addon-pipeline-orchestrator whenever it (re)derives node
4834
+ * capabilities — at boot, on agent online/offline, and on an ingest-node
4835
+ * flip. Carries the resolved `ownerNodeId`. The stream-broker consumes it to
4836
+ * keep its ingest-owner-gate decision current WITHOUT a per-`ensureBroker`
4837
+ * cross-process `getIngestOwner` query (push the authority's decision instead
4838
+ * of polling it on the hot path). Idempotent state — re-emitted on every
4839
+ * topology change, so a dropped event self-heals on the next one (plus the
4840
+ * broker's long backstop reconcile query).
4841
+ */
4842
+ EventCategory["PipelineIngestOwnerChanged"] = "pipeline.ingest-owner-changed";
4843
+ /**
4832
4844
  * Periodic snapshot of per-node pipeline-runner load
4833
4845
  * (`RunnerLocalLoad`). Emitted ~1Hz by every runner so UI dashboards
4834
4846
  * subscribe instead of polling `pipelineRunner.getLocalLoad`.
@@ -5352,10 +5364,6 @@ function hydrateField(field, values) {
5352
5364
  };
5353
5365
  }
5354
5366
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5355
- if (field.type === "password") return {
5356
- ...field,
5357
- value: ""
5358
- };
5359
5367
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5360
5368
  return {
5361
5369
  ...field,
@@ -6739,10 +6747,25 @@ function method(input, output, options) {
6739
6747
  timeoutMs: options?.timeoutMs
6740
6748
  };
6741
6749
  }
6750
+ /**
6751
+ * A wrapper/system-only method: served exclusively by the cap's system-level
6752
+ * provider (`InferProvider`), and OPTIONAL on `InferNativeProvider` so per-device
6753
+ * driver natives don't stub out a wrapper concern (e.g. a cross-device cache
6754
+ * overview). The `systemOnly: true` literal is what `InferNativeProvider` keys on.
6755
+ */
6756
+ function systemMethod(input, output, options) {
6757
+ return {
6758
+ ...method(input, output, options),
6759
+ systemOnly: true
6760
+ };
6761
+ }
6742
6762
  /** Shorthand to define an event schema */
6743
6763
  function event(data) {
6744
6764
  return { data };
6745
6765
  }
6766
+ var StaticDirOutputSchema$1 = object({ staticDir: string() });
6767
+ var VersionOutputSchema$1 = object({ version: string() });
6768
+ method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
6746
6769
  var StaticDirOutputSchema = object({ staticDir: string() });
6747
6770
  var VersionOutputSchema = object({ version: string() });
6748
6771
  method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
@@ -6924,6 +6947,36 @@ var ModelFormatsSchema = object({
6924
6947
  tflite: ModelFormatEntrySchema.optional(),
6925
6948
  pt: ModelFormatEntrySchema.optional()
6926
6949
  });
6950
+ /**
6951
+ * Variant-selector grouping axes. Shared by the full `ModelCatalogEntry` and by
6952
+ * the reduced `PipelineModelOption` returned in `pipeline.getSchema()` so the
6953
+ * grouped Family→Tier→Variant picker renders identically in the config UI and
6954
+ * in the pipeline/device steppers. The flat `id` stays the source of truth for
6955
+ * resolution/download/persistence; this is a presentation overlay resolved back
6956
+ * to an `id`.
6957
+ */
6958
+ var ModelVariantGroupSchema = object({
6959
+ /** Top-level family, e.g. `yolo26` (later `d-fine`, `rf-detr`). */
6960
+ family: string(),
6961
+ /** Size within the family, e.g. `n` | `s` | `m` | `l`. */
6962
+ tier: string(),
6963
+ /** Quantization axis. Omit ⇒ the fp32 base build. */
6964
+ precision: _enum(["fp32", "int8"]).optional(),
6965
+ /**
6966
+ * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
6967
+ * latency-optimized export (e.g. ReLU-activation variant) — the slot the
6968
+ * future performance variants plug into.
6969
+ */
6970
+ optimization: _enum(["standard", "fast"]).optional(),
6971
+ /**
6972
+ * Input-resolution axis (square input side, px). Omit ⇒ the family's native
6973
+ * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
6974
+ * cheap latency lever — especially on Apple ANE and the Intel N100 — at a
6975
+ * small-object accuracy cost. Mirrors the model's `inputSize` but lifted onto
6976
+ * the group so the selector can offer it as a variant axis.
6977
+ */
6978
+ resolution: number().int().positive().optional()
6979
+ });
6927
6980
  var ModelCatalogEntrySchema = object({
6928
6981
  id: string(),
6929
6982
  name: string(),
@@ -6953,7 +7006,43 @@ var ModelCatalogEntrySchema = object({
6953
7006
  * Auxiliary files required at runtime (labels JSON, charset dict, etc.).
6954
7007
  * Downloaded into the same modelsDir alongside the model file.
6955
7008
  */
6956
- extraFiles: array(ModelExtraFileSchema).readonly().optional()
7009
+ extraFiles: array(ModelExtraFileSchema).readonly().optional(),
7010
+ /**
7011
+ * LEGACY entry — retained in the catalog so a persisted operator selection
7012
+ * still RESOLVES (and can be re-activated), but hidden from the selectable
7013
+ * model list and excluded from the auto format-default pick. Set on the
7014
+ * superseded / consolidated models (older lineages, redundant fp16 IRs) so
7015
+ * the active lineup stays the coherent curated ladder without deleting a
7016
+ * model anyone may still be pinned to. `resolveModelForFormat` keeps honoring
7017
+ * an explicit legacy id that has a build for the node's format.
7018
+ */
7019
+ legacy: boolean().optional(),
7020
+ /**
7021
+ * Measured quality/latency metadata — populated from the benchmark addon on
7022
+ * the real node classes. Absent = not yet measured (most entries today; the
7023
+ * catalog historically carried only `sizeMB`, a poor cross-architecture
7024
+ * speed proxy). `p95LatencyMs` is keyed by node class (e.g. `n100`, `mac`).
7025
+ */
7026
+ metrics: object({
7027
+ map50: number().optional(),
7028
+ p95LatencyMs: record(string(), number()).optional()
7029
+ }).optional(),
7030
+ /**
7031
+ * SPDX-ish license id of the model weights (e.g. `AGPL-3.0` for Ultralytics
7032
+ * YOLO26, `GPL-3.0` for YOLOv9, `Apache-2.0` for D-FINE/RF-DETR). Matters for
7033
+ * the retraining addon and any future commercial distribution.
7034
+ */
7035
+ license: string().optional(),
7036
+ /**
7037
+ * Variant-selector grouping. The UI groups models by `family` + `tier` and
7038
+ * offers `precision` / `optimization` as variant axes WITHIN a tier — so all
7039
+ * of a family's sizes and quantizations collapse into one grouped picker
7040
+ * instead of a flat list of `yolo26s`, `yolo26s-int8`, … Absent ⇒ ungrouped
7041
+ * (legacy / custom models) — never shown in the grouped selector. The flat
7042
+ * `id` stays the source of truth for resolution/download/persistence; grouping
7043
+ * is a presentation overlay resolved back to an `id`.
7044
+ */
7045
+ group: ModelVariantGroupSchema.optional()
6957
7046
  });
6958
7047
  var ConvertTargetSchema = discriminatedUnion("format", [object({
6959
7048
  format: literal("openvino"),
@@ -7014,8 +7103,8 @@ var RecordingModeSchema = _enum([
7014
7103
  "onAudioThreshold"
7015
7104
  ]);
7016
7105
  /**
7017
- * First-class, authoritative per-camera storage mode — the netta choice the UI
7018
- * reads directly (never inferred from `rules`):
7106
+ * First-class, authoritative per-camera storage mode — the explicit choice the
7107
+ * UI reads directly (never inferred from `rules`):
7019
7108
  * - `off` — not recording.
7020
7109
  * - `events` — record only around triggers (motion / audio threshold),
7021
7110
  * with pre/post-buffer.
@@ -9178,26 +9267,13 @@ onBrightnessChanged: { data: object({
9178
9267
  */
9179
9268
  runtimeState: BrightnessStatusSchema
9180
9269
  };
9270
+ /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
9181
9271
  var StreamFormatSchema = _enum([
9182
9272
  "webrtc",
9183
9273
  "hls",
9184
9274
  "mjpeg",
9185
9275
  "rtsp"
9186
9276
  ]);
9187
- var StreamInfoSchema = object({
9188
- streamId: string(),
9189
- format: StreamFormatSchema,
9190
- url: string().nullable(),
9191
- active: boolean()
9192
- });
9193
- method(object({
9194
- streamId: string(),
9195
- sourceUrl: string(),
9196
- codec: string().optional()
9197
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
9198
- streamId: string(),
9199
- format: StreamFormatSchema
9200
- }), string().nullable()), method(_void(), array(StreamInfoSchema));
9201
9277
  var RtspRestreamEntrySchema = object({
9202
9278
  brokerId: string(),
9203
9279
  url: string(),
@@ -10065,37 +10141,7 @@ var consumablesCapability = {
10065
10141
  scope: "device",
10066
10142
  deviceNative: true,
10067
10143
  mode: "singleton",
10068
- deviceTypes: [
10069
- DeviceType.Camera,
10070
- DeviceType.Hub,
10071
- DeviceType.Light,
10072
- DeviceType.Siren,
10073
- DeviceType.Switch,
10074
- DeviceType.Sensor,
10075
- DeviceType.Thermostat,
10076
- DeviceType.Button,
10077
- DeviceType.EventEmitter,
10078
- DeviceType.Update,
10079
- DeviceType.Generic,
10080
- DeviceType.Notifier,
10081
- DeviceType.Script,
10082
- DeviceType.Automation,
10083
- DeviceType.Lock,
10084
- DeviceType.Cover,
10085
- DeviceType.Valve,
10086
- DeviceType.Humidifier,
10087
- DeviceType.WaterHeater,
10088
- DeviceType.Fan,
10089
- DeviceType.MediaPlayer,
10090
- DeviceType.AlarmPanel,
10091
- DeviceType.Control,
10092
- DeviceType.Presence,
10093
- DeviceType.Weather,
10094
- DeviceType.Vacuum,
10095
- DeviceType.LawnMower,
10096
- DeviceType.Container,
10097
- DeviceType.Image
10098
- ],
10144
+ deviceTypes: Object.values(DeviceType),
10099
10145
  deviceConfig: { ui: {
10100
10146
  kind: "widget",
10101
10147
  widgetId: "host/consumables-panel",
@@ -11553,7 +11599,7 @@ var BoundingBoxSchema = object({
11553
11599
  w: number(),
11554
11600
  h: number()
11555
11601
  });
11556
- var SpatialDetectionSchema = object({
11602
+ object({
11557
11603
  class: string(),
11558
11604
  originalClass: string(),
11559
11605
  score: number(),
@@ -11688,7 +11734,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
11688
11734
  enabled: boolean(),
11689
11735
  modelId: string(),
11690
11736
  children: array(PipelineDefaultStepSchema).readonly(),
11691
- engine: PipelineEngineChoiceSchema.optional(),
11692
11737
  group: string().optional(),
11693
11738
  settings: record(string(), unknown()).optional()
11694
11739
  }));
@@ -11713,7 +11758,9 @@ var PipelineModelOptionSchema = object({
11713
11758
  formats: record(string(), object({
11714
11759
  downloaded: boolean(),
11715
11760
  sizeMB: number()
11716
- }))
11761
+ })),
11762
+ group: ModelVariantGroupSchema.optional(),
11763
+ legacy: boolean().optional()
11717
11764
  });
11718
11765
  var ConfigFieldBridge = custom();
11719
11766
  var PipelineAddonSchemaSchema = object({
@@ -11727,6 +11774,7 @@ var PipelineAddonSchemaSchema = object({
11727
11774
  defaultModelId: string(),
11728
11775
  defaultModelIdByFormat: record(string(), string()).optional(),
11729
11776
  enabledByDefault: boolean().optional(),
11777
+ backfillIntoExistingOverrides: boolean().optional(),
11730
11778
  defaultConfidence: number(),
11731
11779
  group: string().optional(),
11732
11780
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -11743,11 +11791,6 @@ var PipelineSchemaSchema = object({
11743
11791
  selectedEngine: PipelineEngineChoiceSchema,
11744
11792
  slots: array(PipelineSlotSchemaSchema).readonly()
11745
11793
  });
11746
- var DetectorOutputSchema = object({
11747
- detections: array(SpatialDetectionSchema).readonly(),
11748
- inferenceMs: number(),
11749
- modelId: string()
11750
- });
11751
11794
  var EngineProvisioningSchema = object({
11752
11795
  runtimeId: _enum([
11753
11796
  "onnx",
@@ -11764,15 +11807,42 @@ var EngineProvisioningSchema = object({
11764
11807
  ]),
11765
11808
  progress: number().optional(),
11766
11809
  error: string().optional(),
11767
- nextRetryAt: number().optional()
11810
+ nextRetryAt: number().optional(),
11811
+ /**
11812
+ * Gate A (config-correctness gate at engine change): human-readable
11813
+ * config issues surfaced EAGERLY when the node's engine changes — model
11814
+ * substitutions ("chose X, running Y") and zero-build steps ("no model
11815
+ * has a <format> build"). Additive/optional: informational only, never
11816
+ * enforced here — `assertEngineReady` (readiness) still gates inference.
11817
+ * Absent/empty when the node-default tree resolves cleanly.
11818
+ */
11819
+ configIssues: array(string()).optional()
11768
11820
  });
11769
11821
  var PipelineStepInputSchema = lazy(() => object({
11770
11822
  addonId: string(),
11771
- modelId: string(),
11823
+ modelId: string().optional(),
11772
11824
  enabled: boolean().default(true),
11773
11825
  children: array(PipelineStepInputSchema).optional(),
11774
11826
  settings: record(string(), unknown()).optional()
11775
11827
  }));
11828
+ var ModelSubstitutionSchema = object({
11829
+ addonId: string(),
11830
+ chosen: string(),
11831
+ running: string(),
11832
+ format: string()
11833
+ });
11834
+ var PipelineValidationIssueSchema = object({
11835
+ addonId: string(),
11836
+ kind: _enum(["unknown-addon", "no-format-build"]),
11837
+ detail: string()
11838
+ });
11839
+ var PipelineValidationResultSchema = object({
11840
+ ok: boolean(),
11841
+ issues: array(PipelineValidationIssueSchema).readonly(),
11842
+ substitutions: array(ModelSubstitutionSchema).readonly(),
11843
+ /** The node's `currentEngine.format` this validation ran against. */
11844
+ format: string()
11845
+ });
11776
11846
  var ReferenceImageEntrySchema = object({
11777
11847
  filename: string(),
11778
11848
  stepIds: array(string()).readonly().optional()
@@ -11843,7 +11913,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11843
11913
  })) }), object({ success: literal(true) }), {
11844
11914
  kind: "mutation",
11845
11915
  auth: "admin"
11846
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
11916
+ }), method(object({ nodeId: string() }), object({
11917
+ success: literal(true),
11918
+ clearedDevices: number()
11919
+ }), {
11920
+ kind: "mutation",
11921
+ auth: "admin"
11922
+ }), 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({
11847
11923
  name: string(),
11848
11924
  steps: array(PipelineTemplateStepSchema).readonly(),
11849
11925
  engine: PipelineEngineChoiceSchema
@@ -11860,10 +11936,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11860
11936
  modelId: string(),
11861
11937
  format: ModelFormatSchema$1
11862
11938
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
11863
- addonId: string(),
11864
- frame: FrameInputSchema,
11865
- config: record(string(), unknown()).optional()
11866
- }), DetectorOutputSchema), method(object({
11867
11939
  engine: PipelineEngineChoiceSchema.optional(),
11868
11940
  steps: array(PipelineStepInputSchema).min(1),
11869
11941
  frame: FrameInputSchema.optional(),
@@ -11884,7 +11956,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11884
11956
  image: _instanceof(Uint8Array).optional(),
11885
11957
  referenceImage: string().optional(),
11886
11958
  deviceId: number().optional(),
11887
- sessionId: string().optional()
11959
+ sessionId: string().optional(),
11960
+ /**
11961
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
11962
+ * reference-image, and detail-subtree calls. 'frame' is the live
11963
+ * per-frame dispatch: ONLY root-plane steps run; crop children
11964
+ * (inputClasses ≠ null) are skipped and served per-track via
11965
+ * pipelineRunner.runDetailSubtree (two-plane design).
11966
+ */
11967
+ plane: _enum(["full", "frame"]).optional()
11888
11968
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
11889
11969
  engine: PipelineEngineChoiceSchema.optional(),
11890
11970
  steps: array(PipelineStepInputSchema).min(1),
@@ -12042,6 +12122,47 @@ var zonesCapability = {
12042
12122
  runtimeState: object({ zones: array(ZoneSchema).readonly() })
12043
12123
  };
12044
12124
  /**
12125
+ * A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
12126
+ * decode worker resolves it against the RETAINED native frame's real pixel dims,
12127
+ * so the caller supplies only the detection-res bbox divided by the detection
12128
+ * dims — no native resolution to plumb.
12129
+ */
12130
+ var NativeCropBboxSchema = object({
12131
+ x: number(),
12132
+ y: number(),
12133
+ w: number(),
12134
+ h: number()
12135
+ });
12136
+ /** Result of a best-effort native-resolution crop (`getNativeCrop`). */
12137
+ var NativeCropResultSchema = object({
12138
+ /** Packed rgb (24-bit) pixels of the crop. */
12139
+ bytes: _instanceof(Uint8Array),
12140
+ width: number().int().positive(),
12141
+ height: number().int().positive()
12142
+ });
12143
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12144
+ * originating detection, in FRAME-space coordinates. Reuses
12145
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12146
+ * the coordinates are frame-space rather than getNativeCrop's
12147
+ * normalized [0,1] convention). */
12148
+ var DetailParentSchema = object({
12149
+ bbox: NativeCropBboxSchema,
12150
+ className: string()
12151
+ });
12152
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12153
+ * or refined detection produced by running the crop-subtree on a
12154
+ * single tracked detection. */
12155
+ var DetailResultSchema = object({
12156
+ stepId: string(),
12157
+ className: string(),
12158
+ score: number(),
12159
+ /** FRAME-space bbox (already mapped back from crop space). */
12160
+ bbox: NativeCropBboxSchema.optional(),
12161
+ embedding: string().optional(),
12162
+ label: string().optional(),
12163
+ alignedCropJpeg: string().optional()
12164
+ });
12165
+ /**
12045
12166
  * Per-camera tunable ranges + defaults. Single source of truth used
12046
12167
  * by both the Zod data schema (validation + default fallback) and
12047
12168
  * the device settings UI (slider min/max/step). Touch one place and
@@ -12136,6 +12257,13 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12136
12257
  kind: literal("remote-restream"),
12137
12258
  /** The camera's source-owner node (slice 1: always the hub). */
12138
12259
  ownerNodeId: string(),
12260
+ /**
12261
+ * The owner's LAN-reachable host, resolved by the orchestrator from the
12262
+ * per-node `reachableHost` override (Cluster UI). When present the runner
12263
+ * dials THIS host for the owner's restream, in preference to the
12264
+ * `CAMSTACK_HUB_URL`-derived default. Absent → auto-detect fallback.
12265
+ */
12266
+ ownerReachableHost: string().optional(),
12139
12267
  /** Operator override for the owner host the runner dials. */
12140
12268
  hubHostnameOverride: string().optional()
12141
12269
  })]).describe("Per-camera frame-source mode for the runner (P2c)");
@@ -12144,13 +12272,11 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
12144
12272
  * specific runner instance via `attachCamera`. Carries everything the
12145
12273
  * runner needs to subscribe to the local broker and execute inference.
12146
12274
  *
12147
- * Stateless-pipeline model: the full pipeline content (`engine`, `steps`,
12148
- * optional `audio`) travels with the attach payload. The runner keeps it
12149
- * in RAM for the lifetime of the attach — on rebalance, edit, or
12150
- * restart the orchestrator re-sends the latest snapshot.
12151
- *
12152
- * `engine`/`steps`/`audio` are optional during the additive migration
12153
- * window; once orchestrator + UI are migrated they become required.
12275
+ * Stateless-pipeline model: the pipeline content (`steps`, optional
12276
+ * `audio`) travels with the attach payload. The runner keeps it in RAM
12277
+ * for the lifetime of the attach — on rebalance, edit, or restart the
12278
+ * orchestrator re-sends the latest snapshot. Engine is NOT carried: it is
12279
+ * node-local, resolved by the executing runner at dispatch time.
12154
12280
  */
12155
12281
  var RunnerCameraConfigSchema = object({
12156
12282
  deviceId: number(),
@@ -12201,14 +12327,11 @@ var RunnerCameraConfigSchema = object({
12201
12327
  */
12202
12328
  motionSources: MotionSourcesSchema.default(["analyzer"]),
12203
12329
  pipelineEnabled: boolean().default(true),
12204
- /** Engine choice for video steps (runtime+backend+format). */
12205
- engine: PipelineEngineChoiceSchema.optional(),
12206
12330
  /** Ordered tree of video steps. Absent → runner skips video detection. */
12207
12331
  steps: array(PipelineStepInputSchema).readonly().optional(),
12208
12332
  /** Audio classification branch. `enabled:false` disables, null skips. */
12209
12333
  audio: object({
12210
- engine: PipelineEngineChoiceSchema,
12211
- modelId: string(),
12334
+ modelId: string().optional(),
12212
12335
  enabled: boolean()
12213
12336
  }).nullable().optional(),
12214
12337
  /**
@@ -12295,7 +12418,17 @@ var RunnerLocalMetricsSchema = object({
12295
12418
  avgInferenceTimeMs: number(),
12296
12419
  queueDepth: number()
12297
12420
  });
12298
- 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());
12421
+ 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({
12422
+ handle: FrameHandleSchema,
12423
+ bbox: NativeCropBboxSchema,
12424
+ maxWidth: number().int().positive().optional()
12425
+ }), NativeCropResultSchema.nullable()), method(object({
12426
+ deviceId: number(),
12427
+ frameHandle: FrameHandleSchema.optional(),
12428
+ cropJpeg: string().optional(),
12429
+ parent: DetailParentSchema,
12430
+ steps: array(string()).optional()
12431
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12299
12432
  /**
12300
12433
  * Hardware / firmware motion sensor cap — binary detected state plus
12301
12434
  * a timestamp of the last observation. Distinct from
@@ -15226,7 +15359,9 @@ var AddonPageDeclarationSchema$1 = object({
15226
15359
  icon: string(),
15227
15360
  path: string(),
15228
15361
  remoteName: string(),
15229
- bundle: string()
15362
+ bundle: string(),
15363
+ section: string().optional(),
15364
+ sectionLabel: string().optional()
15230
15365
  });
15231
15366
  var AddonPageInfoSchema = object({
15232
15367
  addonId: string(),
@@ -15266,7 +15401,18 @@ var AddonPageDeclarationSchema = object({
15266
15401
  * the static-file route can compute an mtime-based cache-buster URL
15267
15402
  * without a separate filesystem stat.
15268
15403
  */
15269
- bundle: string()
15404
+ bundle: string(),
15405
+ /**
15406
+ * Sidebar section this page docks into. Well-known ids: `'detection'`,
15407
+ * `'cluster'`, `'administration'` — the page renders inside that group.
15408
+ * Any OTHER string creates (or joins) a custom section rendered after
15409
+ * the built-in groups; its label comes from `sectionLabel` (first
15410
+ * declaration wins), falling back to the id. Absent → the legacy
15411
+ * "Addon Pages" group.
15412
+ */
15413
+ section: string().optional(),
15414
+ /** Display label for a CUSTOM `section` id (ignored for well-known ids). */
15415
+ sectionLabel: string().optional()
15270
15416
  });
15271
15417
  method(_void(), array(AddonPageDeclarationSchema).readonly());
15272
15418
  var AddonHttpRouteSchema = object({
@@ -15482,6 +15628,17 @@ var WidgetMetadataSchema = object({
15482
15628
  deviceContext: boolean().default(false),
15483
15629
  integrationContext: boolean().default(false)
15484
15630
  }),
15631
+ /**
15632
+ * Loadable BEFORE authentication. The normal widget registry listing
15633
+ * (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
15634
+ * (the login page) cannot discover a widget through it. A widget that
15635
+ * declares `preAuth: true` marks itself as safe to mount on a pre-auth
15636
+ * screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
15637
+ * login-method contribution channel (see `login-method.cap.ts`) rather
15638
+ * than the authenticated registry, and its bundle is served by the
15639
+ * public `/api/addon-widgets/:addonId/*` static route. Defaults false.
15640
+ */
15641
+ preAuth: boolean().optional().default(false),
15485
15642
  /** Dashboard placement HINTS (operator can override per instance). */
15486
15643
  defaultSize: WidgetSizeEnum.default("md"),
15487
15644
  allowedSizes: array(WidgetSizeEnum).readonly().default([
@@ -15783,6 +15940,66 @@ method(object({
15783
15940
  password: string()
15784
15941
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
15785
15942
  /**
15943
+ * `login-method` — collection cap through which auth addons contribute
15944
+ * their pre-auth login surfaces to the login page. This is the SINGLE,
15945
+ * generic mechanism that supersedes the dead `auth.listProviders` reader:
15946
+ * every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
15947
+ * `login-method` provider and the PUBLIC `auth.listLoginMethods`
15948
+ * procedure aggregates them for the unauthenticated login page.
15949
+ *
15950
+ * A contribution is a discriminated union on `kind`:
15951
+ *
15952
+ * - `redirect` — a declarative button. The login page renders a generic
15953
+ * button that navigates to `startUrl` (an addon-owned HTTP route).
15954
+ * Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
15955
+ * ZERO shell-side JS. A future SSO addon plugs in the same way — the
15956
+ * login page needs NO change.
15957
+ *
15958
+ * - `widget` — a Module-Federation widget the login page mounts (via
15959
+ * `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
15960
+ * login ceremony, which must run `@simplewebauthn/browser` INSIDE the
15961
+ * addon bundle. The referenced widget also declares `preAuth: true` in
15962
+ * its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
15963
+ * stamps a public `bundleUrl` from `addonId` + `bundle`.
15964
+ *
15965
+ * Every contribution carries a `stage`:
15966
+ * - `primary` — shown on the first credentials screen (OIDC /
15967
+ * magic-link buttons; a future usernameless passkey).
15968
+ * - `second-factor` — shown AFTER the password leg, gated on the
15969
+ * returned `factors` (passkey-as-2FA today).
15970
+ *
15971
+ * `mount: skip` — the cap is read server-side by the core auth router
15972
+ * (`registry.getCollection('login-method')`), never mounted as its own
15973
+ * tRPC router.
15974
+ */
15975
+ /** When a login method renders in the two-phase login flow. */
15976
+ var LoginStageEnum = _enum(["primary", "second-factor"]);
15977
+ /** One login-method contribution — redirect button OR pre-auth widget. */
15978
+ var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
15979
+ kind: literal("redirect"),
15980
+ /** Stable id within the login-method set (e.g. `auth-oidc/google`). */
15981
+ id: string(),
15982
+ /** Operator-facing button label. */
15983
+ label: string(),
15984
+ /** lucide-react icon name. */
15985
+ icon: string().optional(),
15986
+ /** Addon-owned HTTP route the button navigates to (GET). */
15987
+ startUrl: string(),
15988
+ stage: LoginStageEnum
15989
+ }), object({
15990
+ kind: literal("widget"),
15991
+ /** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
15992
+ id: string(),
15993
+ /** Owning addon id — drives the public bundle URL + the MF namespace. */
15994
+ addonId: string(),
15995
+ /** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
15996
+ bundle: string(),
15997
+ /** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
15998
+ remote: WidgetRemoteSchema,
15999
+ stage: LoginStageEnum
16000
+ })]);
16001
+ method(_void(), array(LoginMethodContributionSchema).readonly());
16002
+ /**
15786
16003
  * Orchestrator-side destination metadata. The orchestrator computes
15787
16004
  * `id = <addonId>:<subId>` from its provider lookup so consumers
15788
16005
  * (admin UI, restore flow) see one canonical key.
@@ -17903,7 +18120,17 @@ var TrackSchema = object({
17903
18120
  /** Cumulative normalized distance travelled (0..1 units = full frame width). */
17904
18121
  totalDistance: number(),
17905
18122
  state: TrackStateSchema,
17906
- active: boolean()
18123
+ active: boolean(),
18124
+ /** Deterministic key-event importance score in [0,1] (server-computed at
18125
+ * track expiry, recomputed on late label). Absent on legacy rows written
18126
+ * before scoring shipped — consumers degrade to absence / compute-on-read. */
18127
+ importance: number().optional(),
18128
+ /** Id of the track's highest-confidence ObjectEvent (its representative
18129
+ * "best" frame). Absent when the track produced no object events. */
18130
+ bestEventId: string().optional(),
18131
+ /** Tag of the importance sub-signal that dominated the score
18132
+ * (identity|dwell|proximity|class|confidence|travel|zone). */
18133
+ importanceReason: string().optional()
17907
18134
  });
17908
18135
  var BaseEventFields = {
17909
18136
  id: string(),
@@ -17968,8 +18195,18 @@ var ObjectEventSchema = object({
17968
18195
  frameHeight: number().optional(),
17969
18196
  /** MediaStore key for the crop attached to this event (if any). */
17970
18197
  mediaKey: string().optional(),
18198
+ /** Design B: MediaStore key of the track's native-resolution key frame (the
18199
+ * best-detection full frame). Resolve via the event-media data-plane
18200
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`) for a detail view that
18201
+ * draws `bbox` over the native frame. Absent on legacy rows / non-decoded
18202
+ * sources — consumers fall back to `mediaKey` (the tight crop). */
18203
+ keyFrameMediaKey: string().optional(),
17971
18204
  /** Populated by B5 (recording playback URL for this event). */
17972
- mediaUrl: string().optional()
18205
+ mediaUrl: string().optional(),
18206
+ /** The parent track's key-event importance [0,1], propagated to every object
18207
+ * event of the track (so an event row can be sorted by importance without a
18208
+ * track join). Absent on legacy rows / before the track was scored. */
18209
+ importance: number().optional()
17973
18210
  });
17974
18211
  var AudioEventSchema = object({
17975
18212
  ...BaseEventFields,
@@ -17993,7 +18230,8 @@ var MediaFileKindEnum = _enum([
17993
18230
  "fullFrame",
17994
18231
  "fullFrameBoxed",
17995
18232
  "faceCrop",
17996
- "plateCrop"
18233
+ "plateCrop",
18234
+ "keyFrame"
17997
18235
  ]);
17998
18236
  var MediaFileSchema = object({
17999
18237
  key: string(),
@@ -18014,6 +18252,32 @@ var DeviceEventQueryInput = object({
18014
18252
  projection: _enum(["full", "slim"]).optional()
18015
18253
  });
18016
18254
  var ObjectEventQueryInput = DeviceEventQueryInput.extend({ classFilter: string().optional() });
18255
+ var KeyEventQueryInput = object({
18256
+ deviceId: number(),
18257
+ /** Window lower bound (track firstSeen ≥ since). */
18258
+ since: number(),
18259
+ /** Window upper bound (track firstSeen ≤ until). */
18260
+ until: number(),
18261
+ limit: number().int().min(1).max(200).default(50),
18262
+ /** Drop tracks scoring below this importance. */
18263
+ minImportance: number().min(0).max(1).optional(),
18264
+ /** Restrict to a single class (e.g. 'person'). */
18265
+ classFilter: string().optional()
18266
+ });
18267
+ var KeyEventSchema = object({
18268
+ /** The representative event id (the track's best ObjectEvent, else its trackId). */
18269
+ id: string(),
18270
+ trackId: string(),
18271
+ /** Track start time (firstSeen). */
18272
+ timestamp: number(),
18273
+ className: string(),
18274
+ label: string().optional(),
18275
+ importance: number(),
18276
+ /** Highest-confidence ObjectEvent id for the track (empty when none). */
18277
+ bestEventId: string(),
18278
+ /** Track lifetime in ms (lastSeen - firstSeen). */
18279
+ windowMs: number().optional()
18280
+ });
18017
18281
  var TrackedDetectionSchema = object({
18018
18282
  trackId: string(),
18019
18283
  className: string(),
@@ -18043,7 +18307,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18043
18307
  }), array(TrackSchema).readonly()), method(object({ deviceId: number() }), _void(), {
18044
18308
  kind: "mutation",
18045
18309
  auth: "admin"
18046
- }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({
18310
+ }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(object({
18047
18311
  deviceId: number(),
18048
18312
  since: number(),
18049
18313
  until: number(),
@@ -18088,11 +18352,11 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
18088
18352
  timestamp: number()
18089
18353
  });
18090
18354
  var CameraPipelineConfigSchema = object({
18091
- engine: PipelineEngineChoiceSchema,
18355
+ engine: PipelineEngineChoiceSchema.optional(),
18092
18356
  steps: array(PipelineStepInputSchema).readonly(),
18093
18357
  audio: object({
18094
- engine: PipelineEngineChoiceSchema,
18095
- modelId: string(),
18358
+ engine: PipelineEngineChoiceSchema.optional(),
18359
+ modelId: string().optional(),
18096
18360
  enabled: boolean(),
18097
18361
  settings: record(string(), unknown()).readonly().optional()
18098
18362
  }).nullable().optional()
@@ -18107,7 +18371,7 @@ var PipelineTemplateSchema = object({
18107
18371
  });
18108
18372
  var AgentAddonConfigSchema = object({
18109
18373
  enabled: boolean(),
18110
- modelId: string(),
18374
+ modelId: string().optional(),
18111
18375
  settings: record(string(), unknown()).readonly()
18112
18376
  });
18113
18377
  var AgentPipelineSettingsSchema = object({
@@ -18117,12 +18381,25 @@ var AgentPipelineSettingsSchema = object({
18117
18381
  detectWeight: number().positive().optional(),
18118
18382
  /** Node is eligible to run the detection pipeline (decode + inference). */
18119
18383
  detect: boolean().optional(),
18120
- /** Node is eligible to host decoder sessions. */
18384
+ /**
18385
+ * DEPRECATED AND IGNORED. Decode is always co-located with its frame
18386
+ * consumer, so decode eligibility IS detect eligibility. Kept optional in
18387
+ * the schema ONLY so persisted stores written before the removal still
18388
+ * parse — no code reads it and no write path emits it.
18389
+ */
18121
18390
  decode: boolean().optional(),
18122
18391
  /** Node is eligible to run audio-analyzer sessions. */
18123
18392
  audio: boolean().optional(),
18124
18393
  /** Node is eligible to be the ingest / source-owner (serve the restream). */
18125
- ingest: boolean().optional()
18394
+ ingest: boolean().optional(),
18395
+ /**
18396
+ * Operator override for the LAN host a cross-node decoder dials to reach
18397
+ * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
18398
+ * falls back to its `CAMSTACK_HUB_URL`-derived host (the Moleculer address
18399
+ * it already uses to reach the hub). Set this only when the auto-detected
18400
+ * address is wrong (multi-homed host, NAT, custom interface).
18401
+ */
18402
+ reachableHost: string().optional()
18126
18403
  });
18127
18404
  var CameraPipelineForAgentSchema = object({
18128
18405
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18170,25 +18447,6 @@ var PipelineAssignmentSchema = object({
18170
18447
  assignedAt: number()
18171
18448
  });
18172
18449
  /**
18173
- * Decoder placement record. Symmetric to `PipelineAssignmentSchema` but for
18174
- * the decoder-node placement domain (`balanceDecoder` decision: manual pin
18175
- * → co-located with pipeline → capacity).
18176
- */
18177
- var DecoderAssignmentSchema = object({
18178
- deviceId: number(),
18179
- /** Moleculer node id of the decoder provider currently responsible for this camera. */
18180
- decoderNodeId: string(),
18181
- /** True when the assignment was set manually via `assignDecoder`, false when chosen by the balancer. */
18182
- pinned: boolean(),
18183
- /** Why this assignment was made — useful for debugging the decoder balancer. */
18184
- reason: _enum([
18185
- "manual",
18186
- "co-located",
18187
- "capacity",
18188
- "hardware-affinity"
18189
- ])
18190
- });
18191
- /**
18192
18450
  * Per-agent load summary surfaced to the load balancer + dashboards.
18193
18451
  * Aggregated from each runner's `getLocalLoad` cap call.
18194
18452
  */
@@ -18228,6 +18486,15 @@ var GlobalMetricsSchema = object({
18228
18486
  * capability providers.
18229
18487
  */
18230
18488
  var CapabilityBindingsSchema = record(string(), string());
18489
+ /**
18490
+ * The cluster's single camera-source owner (`clusterRoles.ingestNode`) plus
18491
+ * its LAN-reachable host, if one is registered. See `getIngestOwner`.
18492
+ */
18493
+ var IngestOwnerSchema = object({
18494
+ ownerNodeId: string(),
18495
+ reachableHost: string().optional(),
18496
+ configIssue: string().optional()
18497
+ });
18231
18498
  /** Source block — always present; derives from the stream catalog. */
18232
18499
  var CameraSourceStatusSchema = object({ streams: array(object({
18233
18500
  camStreamId: string(),
@@ -18242,6 +18509,14 @@ var CameraAssignmentStatusSchema = object({
18242
18509
  detectionNodeId: string().nullable(),
18243
18510
  decoderNodeId: string().nullable(),
18244
18511
  audioNodeId: string().nullable(),
18512
+ /**
18513
+ * The node that OWNS this camera's physical source pull (dials the RTSP and
18514
+ * hosts the broker/restream) — the cluster ingest owner today
18515
+ * (`clusterRoles.ingestNode`), per-camera once source assignment lands. Lets
18516
+ * the UI show WHERE a camera is sourced without SSH/logs, and is the node the
18517
+ * broker block below was read from (pinned). Nullable only pre-wiring.
18518
+ */
18519
+ sourceNodeId: string().nullable(),
18245
18520
  pinned: object({
18246
18521
  detection: boolean(),
18247
18522
  decoder: boolean(),
@@ -18374,16 +18649,7 @@ method(object({
18374
18649
  }), object({ success: literal(true) }), {
18375
18650
  kind: "mutation",
18376
18651
  auth: "admin"
18377
- }), method(object({
18378
- deviceId: number(),
18379
- nodeId: string()
18380
- }), _void(), {
18381
- kind: "mutation",
18382
- auth: "admin"
18383
- }), method(object({ deviceId: number() }), _void(), {
18384
- kind: "mutation",
18385
- auth: "admin"
18386
- }), method(_void(), array(DecoderAssignmentSchema).readonly()), method(object({
18652
+ }), method(_void(), IngestOwnerSchema), method(object({
18387
18653
  deviceId: number(),
18388
18654
  nodeId: string()
18389
18655
  }), object({ success: literal(true) }), {
@@ -18404,10 +18670,7 @@ method(object({
18404
18670
  nodeId: string(),
18405
18671
  pinned: boolean(),
18406
18672
  assignedAt: number()
18407
- }))), method(object({
18408
- deviceId: number(),
18409
- pipelineNodeId: string().optional()
18410
- }), DecoderAssignmentSchema), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18673
+ }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
18411
18674
  nodeId: string(),
18412
18675
  settings: AgentPipelineSettingsSchema
18413
18676
  })).readonly()), method(object({
@@ -18437,12 +18700,26 @@ method(object({
18437
18700
  }), method(object({
18438
18701
  agentNodeId: string(),
18439
18702
  detect: boolean().nullable().optional(),
18440
- decode: boolean().nullable().optional(),
18441
18703
  audio: boolean().nullable().optional(),
18442
18704
  ingest: boolean().nullable().optional()
18443
18705
  }), object({ success: literal(true) }), {
18444
18706
  kind: "mutation",
18445
18707
  auth: "admin"
18708
+ }), method(object({
18709
+ agentNodeId: string(),
18710
+ reachableHost: string().nullable()
18711
+ }), object({ success: literal(true) }), {
18712
+ kind: "mutation",
18713
+ auth: "admin"
18714
+ }), method(object({ agentNodeId: string() }), object({
18715
+ success: literal(true),
18716
+ /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
18717
+ effectiveModelId: string().nullable(),
18718
+ /** Number of cameras whose node-scoped overrides were cleared. */
18719
+ clearedCameraOverrides: number()
18720
+ }), {
18721
+ kind: "mutation",
18722
+ auth: "admin"
18446
18723
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18447
18724
  deviceId: number(),
18448
18725
  addonId: string(),
@@ -18487,22 +18764,131 @@ method(object({
18487
18764
  kind: "mutation",
18488
18765
  auth: "admin"
18489
18766
  });
18490
- var RegisteredStreamSchema = object({
18491
- streamId: string(),
18492
- label: string().optional(),
18493
- codec: string(),
18494
- type: _enum(["video", "audio"]),
18495
- sourceUrl: string()
18767
+ /**
18768
+ * server-management — per-NODE singleton capability for a node's ROOT
18769
+ * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
18770
+ * agents).
18771
+ *
18772
+ * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
18773
+ * on agents) carries the whole software stack in its npm dep tree, so ONE
18774
+ * version describes the node. Updates install into
18775
+ * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
18776
+ * starter (probation boot + auto-rollback to N-1).
18777
+ *
18778
+ * Providers:
18779
+ * - HUB: `ServerUpdateService` behind the `server-provided` mount
18780
+ * (`buildServerProviders` in trpc.router.ts) — the default target for
18781
+ * unpinned calls.
18782
+ * - AGENT: `AgentUpdateService` registered by the agent bootstrap under
18783
+ * the synthetic `agent-runtime` addonId and declared in the agent's
18784
+ * `$hub.registerNode` manifest.
18785
+ *
18786
+ * Node routing: singleton caps get the codegen/runtime-builder `nodeId`
18787
+ * injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
18788
+ * SDK) routes the call to that node's provider via the standard remote
18789
+ * proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
18790
+ * in-process provider lookup). No `nodeId` → the hub's own provider.
18791
+ *
18792
+ * Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
18793
+ */
18794
+ /**
18795
+ * Where the running hub's code was loaded from:
18796
+ * - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
18797
+ * plain resolution and runtime updates are refused.
18798
+ * - `baked` — the immutable image seed closure (no data-dir root active).
18799
+ * - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
18800
+ */
18801
+ var ServerBootModeSchema = _enum([
18802
+ "workspace",
18803
+ "baked",
18804
+ "data-root"
18805
+ ]);
18806
+ /**
18807
+ * Update lifecycle state:
18808
+ * - `idle` / `checking` / `staging` — steady / in-flight registry work.
18809
+ * - `pending-restart` — a version is staged and the node has NOT yet
18810
+ * restarted onto it (still running the OLD version).
18811
+ * - `awaiting-confirmation` — the node HAS restarted onto the staged version
18812
+ * (it is the active probation boot) and is waiting to confirm boot-health.
18813
+ * Apply/rollback are refused in this state and the node must NOT be
18814
+ * manually restarted, or the probation boot auto-rolls-back.
18815
+ */
18816
+ var ServerUpdateStateSchema = _enum([
18817
+ "idle",
18818
+ "checking",
18819
+ "staging",
18820
+ "pending-restart",
18821
+ "awaiting-confirmation"
18822
+ ]);
18823
+ var ServerRollbackInfoSchema = object({
18824
+ /** The version that failed (or was manually rolled back). */
18825
+ fromVersion: string(),
18826
+ /** The version rolled back to; null = the baked seed. */
18827
+ toVersion: string().nullable(),
18828
+ atMs: number(),
18829
+ reason: string()
18496
18830
  });
18497
- var ExposedResourceSchema = object({
18498
- streamId: string(),
18499
- format: string(),
18500
- value: string()
18831
+ var ServerPackageStatusSchema = object({
18832
+ /** Root package name (`@camstack/server` on the hub). */
18833
+ packageName: string(),
18834
+ /** Version of the code the running process ACTUALLY loaded. */
18835
+ runningVersion: string().nullable(),
18836
+ /** Node.js runtime version the node's process runs on (`process.versions.node`). */
18837
+ nodeRuntimeVersion: string().nullable(),
18838
+ /** Active data-dir root version; null when booted from seed/workspace. */
18839
+ activeVersion: string().nullable(),
18840
+ /** N-1 version kept for rollback; null when no previous version exists. */
18841
+ previousVersion: string().nullable(),
18842
+ /** Version of the immutable baked seed closure (image fallback). */
18843
+ seedVersion: string().nullable(),
18844
+ /** Latest registry version from the most recent check (null = never checked). */
18845
+ latestVersion: string().nullable(),
18846
+ updateAvailable: boolean(),
18847
+ bootMode: ServerBootModeSchema,
18848
+ updateState: ServerUpdateStateSchema,
18849
+ /** Version staged + awaiting its probation boot, when one is pending. */
18850
+ pendingVersion: string().nullable(),
18851
+ /** Set when the last freshly-activated version failed its boot health-check. */
18852
+ rolledBack: ServerRollbackInfoSchema.nullable(),
18853
+ /**
18854
+ * True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
18855
+ * hub is running from the baked seed (or workspace) while installed data-dir
18856
+ * versions are being IGNORED. Surfaced as a warning in the UI.
18857
+ */
18858
+ stateFileCorrupt: boolean(),
18859
+ lastCheckedAtMs: number().nullable()
18860
+ });
18861
+ var ServerUpdateCheckResultSchema = object({
18862
+ packageName: string(),
18863
+ runningVersion: string().nullable(),
18864
+ latestVersion: string().nullable(),
18865
+ updateAvailable: boolean(),
18866
+ checkedAtMs: number(),
18867
+ /** Non-null when the registry lookup failed (offline, bad registry, …). */
18868
+ error: string().nullable()
18869
+ });
18870
+ var ServerUpdateActionResultSchema = object({
18871
+ accepted: boolean(),
18872
+ targetVersion: string().nullable(),
18873
+ /** True when a graceful restart was scheduled to apply the change. */
18874
+ restarting: boolean(),
18875
+ message: string()
18876
+ });
18877
+ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
18878
+ kind: "mutation",
18879
+ auth: "admin"
18880
+ }), method(object({
18881
+ /** Explicit target version; omitted = latest from the registry. */
18882
+ version: string().optional() }), ServerUpdateActionResultSchema, {
18883
+ kind: "mutation",
18884
+ auth: "admin"
18885
+ }), method(_void(), ServerUpdateActionResultSchema, {
18886
+ kind: "mutation",
18887
+ auth: "admin"
18888
+ }), method(_void(), ServerUpdateActionResultSchema, {
18889
+ kind: "mutation",
18890
+ auth: "admin"
18501
18891
  });
18502
- method(object({
18503
- deviceId: number(),
18504
- streams: array(RegisteredStreamSchema).readonly()
18505
- }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(ExposedResourceSchema).readonly());
18506
18892
  /**
18507
18893
  * Query filter for settings-store collections.
18508
18894
  */
@@ -18655,9 +19041,9 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
18655
19041
  /**
18656
19042
  * A single device snapshot returned as base64 JPEG/PNG.
18657
19043
  *
18658
- * Shared with the `snapshot-provider` collection cap the orchestrator
18659
- * receives the same shape from each native provider and from the
18660
- * broker-based fallback.
19044
+ * The `SnapshotAddon` wrapper returns this shape whether the frame came from
19045
+ * the device-native provider (onboard capture) or from the stream-broker
19046
+ * prebuffer fallback.
18661
19047
  */
18662
19048
  var SnapshotImageSchema = object({
18663
19049
  base64: string(),
@@ -18688,11 +19074,12 @@ DeviceType.Camera, method(object({
18688
19074
  }), SnapshotImageSchema.nullable()), method(object({ deviceId: number() }), _void(), {
18689
19075
  kind: "mutation",
18690
19076
  auth: "admin"
18691
- });
18692
- method(object({ deviceId: number() }), boolean()), method(object({
19077
+ }), systemMethod(object({ deviceIds: array(number()).min(1).max(200) }), array(object({
18693
19078
  deviceId: number(),
18694
- streamId: string().optional()
18695
- }), SnapshotImageSchema.nullable());
19079
+ lastCapturedAt: number().nullable(),
19080
+ cacheAgeMs: number().nullable(),
19081
+ etag: string().nullable()
19082
+ })));
18696
19083
  /**
18697
19084
  * `sso-bridge` — internal hub-only cap that lets SSO-style auth
18698
19085
  * providers (OIDC, SAML, magic-link, …) mint an HMAC-signed token
@@ -18943,10 +19330,32 @@ method(_void(), array(TurnServerSchema).readonly());
18943
19330
  * b. `finishAuthentication({userId, response})` → server verifies
18944
19331
  * the assertion, bumps the credential counter, returns ok.
18945
19332
  *
19333
+ * 2b. Usernameless (discoverable-credential) authentication — the
19334
+ * passkey IS the primary factor, no password leg:
19335
+ * a. `beginDiscoverableAuthentication({})` → assertion options with
19336
+ * EMPTY `allowCredentials` (the browser offers every resident
19337
+ * passkey it holds for this RP) + `userVerification: 'required'`
19338
+ * (the passkey replaces both factors, so UV is mandatory).
19339
+ * The challenge is stored server-side, NOT bound to any user.
19340
+ * b. `finishDiscoverableAuthentication({response})` → the provider
19341
+ * resolves the credential by the response's credential id,
19342
+ * verifies the assertion against the stored challenge + that
19343
+ * credential's public key/counter, and returns the OWNING
19344
+ * `userId` — the caller (core auth router) mints the session.
19345
+ *
18946
19346
  * 3. Management:
18947
19347
  * - `listPasskeys({userId})` — enumerate user's enrolled credentials.
18948
19348
  * - `removePasskey({userId, credentialId})` — revoke one credential.
18949
19349
  *
19350
+ * 4. Second-factor preference (opt-in, default OFF):
19351
+ * Enrolling a passkey only enables passkey-FIRST sign-in. It is
19352
+ * demanded as a second factor after a password login ONLY when the
19353
+ * user explicitly opts in via `setSecondFactorPreference`.
19354
+ * - `getSecondFactorPreference({userId})` → `{ enabled }` (missing
19355
+ * row ⇒ `enabled: false`).
19356
+ * - `setSecondFactorPreference({userId, enabled})` — persisted by
19357
+ * the providing addon beside its credentials.
19358
+ *
18950
19359
  * Challenges are short-lived (5 min, in-memory). The cap is internal —
18951
19360
  * the admin-ui composes the begin/finish round-trip and never exposes
18952
19361
  * the cap to non-admins.
@@ -18989,6 +19398,17 @@ method(object({
18989
19398
  }), object({ verified: boolean() }), {
18990
19399
  kind: "mutation",
18991
19400
  access: "view"
19401
+ }), method(object({}), object({ optionsJSON: record(string(), unknown()) }), {
19402
+ kind: "mutation",
19403
+ access: "view"
19404
+ }), method(object({
19405
+ /** AuthenticationResponseJSON from the browser. */
19406
+ response: record(string(), unknown()) }), object({
19407
+ verified: boolean(),
19408
+ userId: string().nullable()
19409
+ }), {
19410
+ kind: "mutation",
19411
+ access: "view"
18992
19412
  }), method(object({ userId: string() }), array(PasskeySummarySchema), { auth: "admin" }), method(object({
18993
19413
  userId: string(),
18994
19414
  credentialId: string()
@@ -18996,6 +19416,13 @@ method(object({
18996
19416
  kind: "mutation",
18997
19417
  auth: "admin",
18998
19418
  access: "delete"
19419
+ }), method(object({ userId: string() }), object({ enabled: boolean() }), { auth: "admin" }), method(object({
19420
+ userId: string(),
19421
+ enabled: boolean()
19422
+ }), object({ success: literal(true) }), {
19423
+ kind: "mutation",
19424
+ auth: "admin",
19425
+ access: "create"
18999
19426
  });
19000
19427
  /**
19001
19428
  * `videoclips` — the unified, navigable-clip surface for a camera.
@@ -19053,9 +19480,10 @@ method(object({
19053
19480
  auth: "admin"
19054
19481
  });
19055
19482
  /**
19056
- * Optional client-side hints sent at session creation to help the
19057
- * provider pick the best native source. All fields are optional —
19058
- * a viewer that knows nothing still gets a sane default.
19483
+ * Optional client-side hints sent at session creation to help the provider
19484
+ * pick the best native source. All fields optional — a viewer that knows
19485
+ * nothing still gets a sane default. (Relocated from the retired `webrtc`
19486
+ * collection cap; this `webrtc-session` cap is the live signaling surface.)
19059
19487
  */
19060
19488
  var webrtcClientHintsSchema = object({
19061
19489
  viewportWidth: number().int().positive().optional(),
@@ -19066,22 +19494,6 @@ var webrtcClientHintsSchema = object({
19066
19494
  /** Hard tier override; takes precedence over scoring when registered. */
19067
19495
  prefersTier: string().optional()
19068
19496
  }).partial();
19069
- method(object({
19070
- streamId: string(),
19071
- sdpOffer: string()
19072
- }), string(), { kind: "mutation" }), method(object({ streamId: string() }), boolean()), method(object({
19073
- streamId: string(),
19074
- codec: string()
19075
- }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), _void(), { kind: "mutation" }), method(object({
19076
- streamId: string(),
19077
- hints: webrtcClientHintsSchema.optional()
19078
- }), object({
19079
- sessionId: string(),
19080
- sdpOffer: string()
19081
- }), { kind: "mutation" }), method(object({
19082
- sessionId: string(),
19083
- sdpAnswer: string()
19084
- }), _void(), { kind: "mutation" }), method(object({ sessionId: string() }), _void(), { kind: "mutation" }), method(object({ streamId: string() }), boolean());
19085
19497
  /**
19086
19498
  * Discriminated target for a WebRTC session. The client sends this
19087
19499
  * structured object instead of building / parsing brokerId strings;
@@ -19812,7 +20224,17 @@ var FaceInfoSchema = object({
19812
20224
  recognizedIdentityId: string().optional(),
19813
20225
  identityName: string().optional(),
19814
20226
  assigned: boolean(),
19815
- base64: string().optional()
20227
+ base64: string().optional(),
20228
+ /** Design B: the face bbox (pixel space) on the key frame — lets a detail
20229
+ * view draw the box over the native `keyFrameMediaKey` frame. Absent on
20230
+ * legacy rows written before design B. */
20231
+ faceBbox: BoundingBoxSchema.optional(),
20232
+ /** Design B: MediaStore key of the track's native-resolution key frame.
20233
+ * Fetch the native JPEG via the event-media data-plane
20234
+ * (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
20235
+ * track produced no key frame (e.g. native/onboard source) — the UI falls
20236
+ * back to the inline `base64` face crop. */
20237
+ keyFrameMediaKey: string().optional()
19816
20238
  });
19817
20239
  var FaceFilterEnum = _enum([
19818
20240
  "unassigned",
@@ -20509,6 +20931,16 @@ var TopologyCategorySchema = object({
20509
20931
  healthy: number(),
20510
20932
  addons: array(TopologyCategoryAddonSchema).readonly()
20511
20933
  });
20934
+ /**
20935
+ * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
20936
+ * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
20937
+ * version visibility for the Server management surface. Nullable: offline
20938
+ * rows and pre-phase-2 nodes report none.
20939
+ */
20940
+ var TopologyRootPackageSchema = object({
20941
+ name: string(),
20942
+ version: string()
20943
+ });
20512
20944
  var TopologyNodeSchema = object({
20513
20945
  id: string(),
20514
20946
  name: string(),
@@ -20532,7 +20964,8 @@ var TopologyNodeSchema = object({
20532
20964
  status: string()
20533
20965
  })).readonly(),
20534
20966
  processes: array(TopologyProcessSchema).readonly(),
20535
- categories: array(TopologyCategorySchema).readonly()
20967
+ categories: array(TopologyCategorySchema).readonly(),
20968
+ rootPackage: TopologyRootPackageSchema.nullable()
20536
20969
  });
20537
20970
  var CapUsageEdgeSchema = object({
20538
20971
  callerAddonId: string(),
@@ -23332,6 +23765,12 @@ Object.freeze({
23332
23765
  addonId: null,
23333
23766
  access: "create"
23334
23767
  },
23768
+ "loginMethod.getLoginMethods": {
23769
+ capName: "login-method",
23770
+ capScope: "system",
23771
+ addonId: null,
23772
+ access: "view"
23773
+ },
23335
23774
  "mediaPlayer.next": {
23336
23775
  capName: "media-player",
23337
23776
  capScope: "device",
@@ -23914,6 +24353,12 @@ Object.freeze({
23914
24353
  addonId: null,
23915
24354
  access: "view"
23916
24355
  },
24356
+ "pipelineAnalytics.getKeyEvents": {
24357
+ capName: "pipeline-analytics",
24358
+ capScope: "device",
24359
+ addonId: null,
24360
+ access: "view"
24361
+ },
23917
24362
  "pipelineAnalytics.getMotionEvents": {
23918
24363
  capName: "pipeline-analytics",
23919
24364
  capScope: "device",
@@ -23962,23 +24407,23 @@ Object.freeze({
23962
24407
  addonId: null,
23963
24408
  access: "create"
23964
24409
  },
23965
- "pipelineExecutor.deleteModel": {
24410
+ "pipelineExecutor.clearDeviceOverrides": {
23966
24411
  capName: "pipeline-executor",
23967
24412
  capScope: "system",
23968
24413
  addonId: null,
23969
24414
  access: "delete"
23970
24415
  },
23971
- "pipelineExecutor.deleteTemplate": {
24416
+ "pipelineExecutor.deleteModel": {
23972
24417
  capName: "pipeline-executor",
23973
24418
  capScope: "system",
23974
24419
  addonId: null,
23975
24420
  access: "delete"
23976
24421
  },
23977
- "pipelineExecutor.detect": {
24422
+ "pipelineExecutor.deleteTemplate": {
23978
24423
  capName: "pipeline-executor",
23979
24424
  capScope: "system",
23980
24425
  addonId: null,
23981
- access: "view"
24426
+ access: "delete"
23982
24427
  },
23983
24428
  "pipelineExecutor.downloadModel": {
23984
24429
  capName: "pipeline-executor",
@@ -24172,13 +24617,13 @@ Object.freeze({
24172
24617
  addonId: null,
24173
24618
  access: "create"
24174
24619
  },
24175
- "pipelineOrchestrator.assignAudio": {
24176
- capName: "pipeline-orchestrator",
24620
+ "pipelineExecutor.validatePipeline": {
24621
+ capName: "pipeline-executor",
24177
24622
  capScope: "system",
24178
24623
  addonId: null,
24179
- access: "create"
24624
+ access: "view"
24180
24625
  },
24181
- "pipelineOrchestrator.assignDecoder": {
24626
+ "pipelineOrchestrator.assignAudio": {
24182
24627
  capName: "pipeline-orchestrator",
24183
24628
  capScope: "system",
24184
24629
  addonId: null,
@@ -24262,19 +24707,13 @@ Object.freeze({
24262
24707
  addonId: null,
24263
24708
  access: "view"
24264
24709
  },
24265
- "pipelineOrchestrator.getDecoderAssignment": {
24266
- capName: "pipeline-orchestrator",
24267
- capScope: "system",
24268
- addonId: null,
24269
- access: "view"
24270
- },
24271
- "pipelineOrchestrator.getDecoderAssignments": {
24710
+ "pipelineOrchestrator.getGlobalMetrics": {
24272
24711
  capName: "pipeline-orchestrator",
24273
24712
  capScope: "system",
24274
24713
  addonId: null,
24275
24714
  access: "view"
24276
24715
  },
24277
- "pipelineOrchestrator.getGlobalMetrics": {
24716
+ "pipelineOrchestrator.getIngestOwner": {
24278
24717
  capName: "pipeline-orchestrator",
24279
24718
  capScope: "system",
24280
24719
  addonId: null,
@@ -24316,6 +24755,12 @@ Object.freeze({
24316
24755
  addonId: null,
24317
24756
  access: "delete"
24318
24757
  },
24758
+ "pipelineOrchestrator.resetNodePipelineDefaults": {
24759
+ capName: "pipeline-orchestrator",
24760
+ capScope: "system",
24761
+ addonId: null,
24762
+ access: "delete"
24763
+ },
24319
24764
  "pipelineOrchestrator.resolvePipeline": {
24320
24765
  capName: "pipeline-orchestrator",
24321
24766
  capScope: "system",
@@ -24352,37 +24797,37 @@ Object.freeze({
24352
24797
  addonId: null,
24353
24798
  access: "create"
24354
24799
  },
24355
- "pipelineOrchestrator.setCameraPipelineForAgent": {
24800
+ "pipelineOrchestrator.setAgentReachableHost": {
24356
24801
  capName: "pipeline-orchestrator",
24357
24802
  capScope: "system",
24358
24803
  addonId: null,
24359
24804
  access: "create"
24360
24805
  },
24361
- "pipelineOrchestrator.setCameraStepOverride": {
24806
+ "pipelineOrchestrator.setCameraPipelineForAgent": {
24362
24807
  capName: "pipeline-orchestrator",
24363
24808
  capScope: "system",
24364
24809
  addonId: null,
24365
24810
  access: "create"
24366
24811
  },
24367
- "pipelineOrchestrator.setCameraStepToggle": {
24812
+ "pipelineOrchestrator.setCameraStepOverride": {
24368
24813
  capName: "pipeline-orchestrator",
24369
24814
  capScope: "system",
24370
24815
  addonId: null,
24371
24816
  access: "create"
24372
24817
  },
24373
- "pipelineOrchestrator.setCapabilityBinding": {
24818
+ "pipelineOrchestrator.setCameraStepToggle": {
24374
24819
  capName: "pipeline-orchestrator",
24375
24820
  capScope: "system",
24376
24821
  addonId: null,
24377
24822
  access: "create"
24378
24823
  },
24379
- "pipelineOrchestrator.unassignAudio": {
24824
+ "pipelineOrchestrator.setCapabilityBinding": {
24380
24825
  capName: "pipeline-orchestrator",
24381
24826
  capScope: "system",
24382
24827
  addonId: null,
24383
24828
  access: "create"
24384
24829
  },
24385
- "pipelineOrchestrator.unassignDecoder": {
24830
+ "pipelineOrchestrator.unassignAudio": {
24386
24831
  capName: "pipeline-orchestrator",
24387
24832
  capScope: "system",
24388
24833
  addonId: null,
@@ -24442,12 +24887,24 @@ Object.freeze({
24442
24887
  addonId: null,
24443
24888
  access: "view"
24444
24889
  },
24890
+ "pipelineRunner.getNativeCrop": {
24891
+ capName: "pipeline-runner",
24892
+ capScope: "system",
24893
+ addonId: null,
24894
+ access: "view"
24895
+ },
24445
24896
  "pipelineRunner.reportMotion": {
24446
24897
  capName: "pipeline-runner",
24447
24898
  capScope: "system",
24448
24899
  addonId: null,
24449
24900
  access: "create"
24450
24901
  },
24902
+ "pipelineRunner.runDetailSubtree": {
24903
+ capName: "pipeline-runner",
24904
+ capScope: "system",
24905
+ addonId: null,
24906
+ access: "create"
24907
+ },
24451
24908
  "plateGallery.correctPlateText": {
24452
24909
  capName: "plate-gallery",
24453
24910
  capScope: "system",
@@ -24682,33 +25139,45 @@ Object.freeze({
24682
25139
  addonId: null,
24683
25140
  access: "create"
24684
25141
  },
24685
- "restreamer.getExposedResources": {
24686
- capName: "restreamer",
25142
+ "scriptRunner.run": {
25143
+ capName: "script-runner",
25144
+ capScope: "device",
25145
+ addonId: null,
25146
+ access: "create"
25147
+ },
25148
+ "scriptRunner.stop": {
25149
+ capName: "script-runner",
25150
+ capScope: "device",
25151
+ addonId: null,
25152
+ access: "create"
25153
+ },
25154
+ "serverManagement.applyServerUpdate": {
25155
+ capName: "server-management",
24687
25156
  capScope: "system",
24688
25157
  addonId: null,
24689
- access: "view"
25158
+ access: "create"
24690
25159
  },
24691
- "restreamer.registerDevice": {
24692
- capName: "restreamer",
25160
+ "serverManagement.checkServerUpdate": {
25161
+ capName: "server-management",
24693
25162
  capScope: "system",
24694
25163
  addonId: null,
24695
25164
  access: "create"
24696
25165
  },
24697
- "restreamer.unregisterDevice": {
24698
- capName: "restreamer",
25166
+ "serverManagement.getServerPackageStatus": {
25167
+ capName: "server-management",
24699
25168
  capScope: "system",
24700
25169
  addonId: null,
24701
- access: "delete"
25170
+ access: "view"
24702
25171
  },
24703
- "scriptRunner.run": {
24704
- capName: "script-runner",
24705
- capScope: "device",
25172
+ "serverManagement.restartServer": {
25173
+ capName: "server-management",
25174
+ capScope: "system",
24706
25175
  addonId: null,
24707
25176
  access: "create"
24708
25177
  },
24709
- "scriptRunner.stop": {
24710
- capName: "script-runner",
24711
- capScope: "device",
25178
+ "serverManagement.rollbackServerUpdate": {
25179
+ capName: "server-management",
25180
+ capScope: "system",
24712
25181
  addonId: null,
24713
25182
  access: "create"
24714
25183
  },
@@ -24796,23 +25265,17 @@ Object.freeze({
24796
25265
  addonId: null,
24797
25266
  access: "view"
24798
25267
  },
24799
- "snapshot.invalidateCache": {
25268
+ "snapshot.getSnapshotOverview": {
24800
25269
  capName: "snapshot",
24801
25270
  capScope: "device",
24802
25271
  addonId: null,
24803
- access: "create"
24804
- },
24805
- "snapshotProvider.getSnapshot": {
24806
- capName: "snapshot-provider",
24807
- capScope: "system",
24808
- addonId: null,
24809
25272
  access: "view"
24810
25273
  },
24811
- "snapshotProvider.supportsDevice": {
24812
- capName: "snapshot-provider",
24813
- capScope: "system",
25274
+ "snapshot.invalidateCache": {
25275
+ capName: "snapshot",
25276
+ capScope: "device",
24814
25277
  addonId: null,
24815
- access: "view"
25278
+ access: "create"
24816
25279
  },
24817
25280
  "ssoBridge.signBridgeToken": {
24818
25281
  capName: "sso-bridge",
@@ -25240,30 +25703,6 @@ Object.freeze({
25240
25703
  addonId: null,
25241
25704
  access: "view"
25242
25705
  },
25243
- "streamingEngine.getStreamUrl": {
25244
- capName: "streaming-engine",
25245
- capScope: "system",
25246
- addonId: null,
25247
- access: "view"
25248
- },
25249
- "streamingEngine.listStreams": {
25250
- capName: "streaming-engine",
25251
- capScope: "system",
25252
- addonId: null,
25253
- access: "view"
25254
- },
25255
- "streamingEngine.registerStream": {
25256
- capName: "streaming-engine",
25257
- capScope: "system",
25258
- addonId: null,
25259
- access: "create"
25260
- },
25261
- "streamingEngine.unregisterStream": {
25262
- capName: "streaming-engine",
25263
- capScope: "system",
25264
- addonId: null,
25265
- access: "delete"
25266
- },
25267
25706
  "streamParams.getConfigSchema": {
25268
25707
  capName: "stream-params",
25269
25708
  capScope: "device",
@@ -25510,6 +25949,12 @@ Object.freeze({
25510
25949
  addonId: null,
25511
25950
  access: "view"
25512
25951
  },
25952
+ "userPasskeys.beginDiscoverableAuthentication": {
25953
+ capName: "user-passkeys",
25954
+ capScope: "system",
25955
+ addonId: null,
25956
+ access: "view"
25957
+ },
25513
25958
  "userPasskeys.beginRegistration": {
25514
25959
  capName: "user-passkeys",
25515
25960
  capScope: "system",
@@ -25522,12 +25967,24 @@ Object.freeze({
25522
25967
  addonId: null,
25523
25968
  access: "view"
25524
25969
  },
25970
+ "userPasskeys.finishDiscoverableAuthentication": {
25971
+ capName: "user-passkeys",
25972
+ capScope: "system",
25973
+ addonId: null,
25974
+ access: "view"
25975
+ },
25525
25976
  "userPasskeys.finishRegistration": {
25526
25977
  capName: "user-passkeys",
25527
25978
  capScope: "system",
25528
25979
  addonId: null,
25529
25980
  access: "create"
25530
25981
  },
25982
+ "userPasskeys.getSecondFactorPreference": {
25983
+ capName: "user-passkeys",
25984
+ capScope: "system",
25985
+ addonId: null,
25986
+ access: "view"
25987
+ },
25531
25988
  "userPasskeys.listPasskeys": {
25532
25989
  capName: "user-passkeys",
25533
25990
  capScope: "system",
@@ -25540,6 +25997,12 @@ Object.freeze({
25540
25997
  addonId: null,
25541
25998
  access: "delete"
25542
25999
  },
26000
+ "userPasskeys.setSecondFactorPreference": {
26001
+ capName: "user-passkeys",
26002
+ capScope: "system",
26003
+ addonId: null,
26004
+ access: "create"
26005
+ },
25543
26006
  "vacuumControl.locate": {
25544
26007
  capName: "vacuum-control",
25545
26008
  capScope: "device",
@@ -25612,6 +26075,18 @@ Object.freeze({
25612
26075
  addonId: null,
25613
26076
  access: "view"
25614
26077
  },
26078
+ "viewerUi.getStaticDir": {
26079
+ capName: "viewer-ui",
26080
+ capScope: "system",
26081
+ addonId: null,
26082
+ access: "view"
26083
+ },
26084
+ "viewerUi.getVersion": {
26085
+ capName: "viewer-ui",
26086
+ capScope: "system",
26087
+ addonId: null,
26088
+ access: "view"
26089
+ },
25615
26090
  "waterHeater.setAway": {
25616
26091
  capName: "water-heater",
25617
26092
  capScope: "device",
@@ -25630,54 +26105,6 @@ Object.freeze({
25630
26105
  addonId: null,
25631
26106
  access: "create"
25632
26107
  },
25633
- "webrtc.closeSession": {
25634
- capName: "webrtc",
25635
- capScope: "system",
25636
- addonId: null,
25637
- access: "create"
25638
- },
25639
- "webrtc.createSession": {
25640
- capName: "webrtc",
25641
- capScope: "system",
25642
- addonId: null,
25643
- access: "create"
25644
- },
25645
- "webrtc.handleAnswer": {
25646
- capName: "webrtc",
25647
- capScope: "system",
25648
- addonId: null,
25649
- access: "create"
25650
- },
25651
- "webrtc.handleOffer": {
25652
- capName: "webrtc",
25653
- capScope: "system",
25654
- addonId: null,
25655
- access: "create"
25656
- },
25657
- "webrtc.hasAdaptiveBitrate": {
25658
- capName: "webrtc",
25659
- capScope: "system",
25660
- addonId: null,
25661
- access: "view"
25662
- },
25663
- "webrtc.registerStream": {
25664
- capName: "webrtc",
25665
- capScope: "system",
25666
- addonId: null,
25667
- access: "create"
25668
- },
25669
- "webrtc.supportsStream": {
25670
- capName: "webrtc",
25671
- capScope: "system",
25672
- addonId: null,
25673
- access: "view"
25674
- },
25675
- "webrtc.unregisterStream": {
25676
- capName: "webrtc",
25677
- capScope: "system",
25678
- addonId: null,
25679
- access: "delete"
25680
- },
25681
26108
  "webrtcSession.addIceCandidate": {
25682
26109
  capName: "webrtc-session",
25683
26110
  capScope: "device",