@camstack/addon-provider-hikvision 1.2.144 → 1.2.146

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 +1177 -532
  2. package/dist/addon.mjs +1177 -532
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -12,7 +12,7 @@ import { networkInterfaces } from "node:os";
12
12
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
13
13
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
14
14
  //#endregion
15
- //#region ../types/dist/event-category-BGmz_oxW.mjs
15
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
16
16
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
17
17
  EventCategory["SystemBoot"] = "system.boot";
18
18
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -513,15 +513,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
513
513
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
514
514
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
515
515
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
516
- /**
517
- * Per-agent hwaccel preference changed (user override set, cleared, or
518
- * re-probed). Observability event — decoders pull the current pref at
519
- * `createSession`, so running sessions keep their current backend until
520
- * they rotate naturally (camera add/remove, stream restart). Future
521
- * work can wire a listener in stream-broker that force-rotates live
522
- * sessions; for now this event powers logs + admin-UI toast feedback.
523
- */
524
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
525
516
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
526
517
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
527
518
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5392,7 +5383,7 @@ var ZodIssueCode = {
5392
5383
  var ZodFirstPartyTypeKind;
5393
5384
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5394
5385
  //#endregion
5395
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5386
+ //#region ../types/dist/sleep-B0JG7-_F.mjs
5396
5387
  /**
5397
5388
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5398
5389
  * window to float samples (D455).
@@ -6758,32 +6749,12 @@ object({
6758
6749
  audioCodec: string().optional(),
6759
6750
  metadata: record(string(), unknown()).readonly().optional()
6760
6751
  });
6761
- var EncodedPacketSchema = object({
6762
- type: _enum(["video", "audio"]),
6763
- data: _instanceof(Uint8Array),
6764
- pts: number(),
6765
- dts: number(),
6766
- keyframe: boolean(),
6767
- codec: string()
6768
- });
6769
- var DecodedFrameSchema = object({
6770
- data: _instanceof(Uint8Array),
6771
- width: number(),
6772
- height: number(),
6773
- format: _enum([
6774
- "jpeg",
6775
- "rgb",
6776
- "bgr",
6777
- "yuv420",
6778
- "gray"
6779
- ]),
6780
- timestamp: number()
6781
- });
6782
6752
  /**
6783
6753
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6784
6754
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6785
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6786
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6755
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6756
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6757
+ * over tRPC / Moleculer.
6787
6758
  *
6788
6759
  * The `satisfies` assertion below pins this schema to the interface: if a
6789
6760
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6809,50 +6780,6 @@ var FrameHandleSchema = object({
6809
6780
  slotCount: number().int().positive()
6810
6781
  });
6811
6782
  /**
6812
- * Pixel format a frame-handle subscriber can request from the broker
6813
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6814
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6815
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6816
- * payload, and no decoded-frame consumer requests it over the shm plane.
6817
- */
6818
- var FrameHandleFormatSchema = _enum([
6819
- "rgb",
6820
- "bgr",
6821
- "yuv420",
6822
- "gray"
6823
- ]);
6824
- /**
6825
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6826
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6827
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6828
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6829
- * they asked for with no broker-side conversion.
6830
- */
6831
- var SubscribeFramesInputSchema = object({
6832
- brokerId: string(),
6833
- format: FrameHandleFormatSchema,
6834
- /**
6835
- * Optional reader-side cadence hint in frames per second. The broker does
6836
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6837
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6838
- * the consumer can pace its own `pullFrameHandles` polling.
6839
- */
6840
- maxFps: number().positive().optional(),
6841
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6842
- tag: string().optional()
6843
- });
6844
- /**
6845
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6846
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6847
- * `FrameHandle` to a `FrameRingReader`.
6848
- */
6849
- var SubscribeFramesResultSchema = object({
6850
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6851
- subscriptionId: string(),
6852
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6853
- maxFps: number().nonnegative()
6854
- });
6855
- /**
6856
6783
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6857
6784
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6858
6785
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6860,8 +6787,8 @@ var SubscribeFramesResultSchema = object({
6860
6787
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6861
6788
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6862
6789
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6863
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6864
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6790
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6791
+ * it.
6865
6792
  */
6866
6793
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6867
6794
  var DecodedAudioChunkSchema = object({
@@ -6879,11 +6806,10 @@ var DecodedAudioChunkSchema = object({
6879
6806
  format: AudioChunkFormatSchema.optional()
6880
6807
  });
6881
6808
  /**
6882
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6883
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6884
- * asks the broker for the decoded audio-chunk stream of one broker; the
6885
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6886
- * `pullAudioChunks`.
6809
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6810
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6811
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6812
+ * the consumer drains via `pullAudioChunks`.
6887
6813
  */
6888
6814
  var SubscribeAudioChunksInputSchema = object({
6889
6815
  brokerId: string(),
@@ -6914,9 +6840,7 @@ var BrokerStatsSchema = object({
6914
6840
  "stopped"
6915
6841
  ]),
6916
6842
  inputFps: number(),
6917
- decodeFps: number(),
6918
6843
  encodedSubscribers: number(),
6919
- decodedSubscribers: number(),
6920
6844
  uptimeMs: number(),
6921
6845
  bitrateKbps: number(),
6922
6846
  idrIntervalMs: number(),
@@ -6929,14 +6853,6 @@ var BrokerStatsSchema = object({
6929
6853
  preBufferMs: number(),
6930
6854
  preBufferPackets: number(),
6931
6855
  /**
6932
- * Moleculer node id of the decoder provider currently servicing this
6933
- * stream's decoded subscribers. `null` until the deferred decoder is
6934
- * created (no decoded clients yet, or codec not detected). Surfaces the
6935
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6936
- * a separate cap call per broker.
6937
- */
6938
- decoderNodeId: string().nullable(),
6939
- /**
6940
6856
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6941
6857
  * when the stream has no audio track or the broker is in cold start.
6942
6858
  * `supported = false` means the codec was detected but the local
@@ -10294,70 +10210,6 @@ var StorageLocationDeclarationSchema = object({
10294
10210
  "backup"
10295
10211
  ]).optional()
10296
10212
  });
10297
- var DecoderStatsSchema = object({
10298
- inputFps: number(),
10299
- outputFps: number(),
10300
- avgDecodeTimeMs: number(),
10301
- droppedFrames: number(),
10302
- /**
10303
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10304
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10305
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10306
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10307
- */
10308
- lagMs: number().optional(),
10309
- effectiveFps: number().optional(),
10310
- adaptiveFps: number().optional()
10311
- });
10312
- var DecoderSessionConfigSchema = object({
10313
- codec: string(),
10314
- maxFps: number().default(0),
10315
- outputFormat: _enum([
10316
- "jpeg",
10317
- "rgb",
10318
- "bgr",
10319
- "yuv420",
10320
- "gray"
10321
- ]).default("jpeg"),
10322
- scale: number().default(1),
10323
- width: number().optional(),
10324
- height: number().optional(),
10325
- /**
10326
- * Identifier of the camera this decoder session serves. Optional
10327
- * because the cap is generic (any caller could request decode), but
10328
- * stream-broker passes it so decoder logs include `deviceId` for
10329
- * per-camera filtering when diagnosing failures (e.g. node-av
10330
- * sendPacket errors on a single hung camera).
10331
- */
10332
- deviceId: number().int().nonnegative().optional(),
10333
- /**
10334
- * Free-form tag for log scoping. Stream-broker uses
10335
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10336
- * on every line so `grep tag=broker:5/high` filters one camera
10337
- * profile cleanly.
10338
- */
10339
- tag: string().optional(),
10340
- /**
10341
- * Where the session delivers decoded frames (Phase 5 / D9):
10342
- *
10343
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10344
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10345
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10346
- * into an OS shared-memory ring and drained as zero-pixel
10347
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10348
- * other — `pullFrames` returns nothing for an `'shm'` session and
10349
- * `pullHandles` returns nothing for a `'callback'` session.
10350
- */
10351
- frameSink: _enum(["callback", "shm"]).default("callback"),
10352
- /**
10353
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10354
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10355
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10356
- * stream-broker's `streamingDebug` gate — off by default so production logs
10357
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10358
- */
10359
- debug: boolean().optional()
10360
- });
10361
10213
  var EU_DST = {
10362
10214
  offsetHours: 1,
10363
10215
  startMonth: 3,
@@ -10781,57 +10633,26 @@ var ClipSearchStrictnessSchema = _enum([
10781
10633
  "balanced",
10782
10634
  "strict"
10783
10635
  ]);
10784
- new Set([
10785
- {
10786
- id: "person",
10787
- name: "Person"
10788
- },
10789
- {
10790
- id: "vehicle",
10791
- name: "Vehicle"
10792
- },
10793
- {
10794
- id: "animal",
10795
- name: "Animal"
10796
- },
10797
- {
10798
- id: "package",
10799
- name: "Package"
10800
- }
10801
- ].map((l) => l.id));
10802
- var COCO_TO_MACRO = {
10803
- mapping: {
10804
- person: "person",
10805
- bicycle: "vehicle",
10806
- car: "vehicle",
10807
- motorcycle: "vehicle",
10808
- airplane: "vehicle",
10809
- bus: "vehicle",
10810
- train: "vehicle",
10811
- truck: "vehicle",
10812
- boat: "vehicle",
10813
- bird: "animal",
10814
- cat: "animal",
10815
- dog: "animal",
10816
- horse: "animal",
10817
- sheep: "animal",
10818
- cow: "animal",
10819
- elephant: "animal",
10820
- bear: "animal",
10821
- zebra: "animal",
10822
- giraffe: "animal",
10823
- suitcase: "package",
10824
- backpack: "package",
10825
- handbag: "package"
10826
- },
10827
- preserveOriginal: false
10828
- };
10829
- /** Steps a root detector may declare it fills. */
10830
- var FILLABLE_STEP_IDS = [
10636
+ /** Steps whose effect a root label can BE. */
10637
+ var LABEL_SUPPLY_STEP_IDS = [
10831
10638
  "animal-classifier",
10832
10639
  "vehicle-classifier",
10833
10640
  "package-detection"
10834
10641
  ];
10642
+ /** Steps whose box a root detection can BE. */
10643
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10644
+ /**
10645
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10646
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10647
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10648
+ * no camera tree carries.)
10649
+ */
10650
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10651
+ [
10652
+ ...LABEL_SUPPLY_STEP_IDS,
10653
+ ...CROP_SUPPLY_STEP_IDS,
10654
+ ...MASK_SUPPLY_STEP_IDS
10655
+ ];
10835
10656
  var MODEL_FORMATS = [
10836
10657
  "onnx",
10837
10658
  "coreml",
@@ -10860,7 +10681,53 @@ var ModelFormatEntrySchema = object({
10860
10681
  /** Multi-file payload (directory members or sibling files). */
10861
10682
  files: array(string()).readonly().optional(),
10862
10683
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10863
- runtimes: array(_enum(["python"])).readonly().optional()
10684
+ runtimes: array(_enum(["python"])).readonly().optional(),
10685
+ /**
10686
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10687
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10688
+ * weight file) comes from the downloader's generated table, kept in step
10689
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10690
+ * node records the revision it downloaded next to the file
10691
+ * (`<file>.revision`); a copy with no record or a different one is stale
10692
+ * unless its weight file hashes to the revision, and a stale copy is
10693
+ * downloaded again, the old one serving until the new one is complete. No
10694
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10695
+ */
10696
+ revision: string().min(1).optional()
10697
+ });
10698
+ /**
10699
+ * What a node holds for one (model, format) (D746). `current` is a complete
10700
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10701
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10702
+ * no or a different revision record, or a missing sibling. `missing` is no
10703
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10704
+ * reclaimable bytes and a copy about to be replaced.
10705
+ */
10706
+ var ModelOnDiskStateSchema = _enum([
10707
+ "current",
10708
+ "stale",
10709
+ "missing"
10710
+ ]);
10711
+ /**
10712
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10713
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10714
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10715
+ */
10716
+ var ModelFormatPrecisionSchema = _enum([
10717
+ "fp32",
10718
+ "fp16",
10719
+ "int8"
10720
+ ]);
10721
+ /**
10722
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10723
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10724
+ * them omits them, and a reader falls back to `downloaded`.
10725
+ */
10726
+ var PipelineModelFormatStatusSchema = object({
10727
+ downloaded: boolean(),
10728
+ sizeMB: number(),
10729
+ onDisk: ModelOnDiskStateSchema.optional(),
10730
+ precision: ModelFormatPrecisionSchema.optional()
10864
10731
  });
10865
10732
  /**
10866
10733
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10964,12 +10831,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10964
10831
  /** True when the weights or their data forbid commercial use. */
10965
10832
  nonCommercial: boolean().optional()
10966
10833
  }));
10967
- /** One `fillsClassifierEffects` entry — see `ModelCatalogEntry.fillsClassifierEffects`. */
10968
- var FillsClassifierEffectSchema = object({
10969
- stepId: _enum(FILLABLE_STEP_IDS),
10970
- labelToEffect: record(string(), string()),
10971
- uncovered: array(string()).readonly()
10972
- });
10834
+ /**
10835
+ * One step a ROOT detector can supply from its own output (D730) — see
10836
+ * `ModelCatalogEntry.suppliesSteps`.
10837
+ *
10838
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10839
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10840
+ * the root cannot produce (shown as unavailable, never a blocker).
10841
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10842
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10843
+ * child of the `parentMacro` detection that contains it — never a track.
10844
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10845
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10846
+ * detection in the shape that step produces. Derived from the model's
10847
+ * postprocessor on read, never stored by an import.
10848
+ */
10849
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10850
+ object({
10851
+ kind: literal("label"),
10852
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10853
+ labelToEffect: record(string(), string()),
10854
+ uncovered: array(string()).readonly()
10855
+ }),
10856
+ object({
10857
+ kind: literal("crop"),
10858
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10859
+ rootLabels: array(string()).readonly(),
10860
+ parentMacro: _enum(["vehicle", "person"]),
10861
+ childClass: _enum(["plate", "face"]),
10862
+ /**
10863
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10864
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10865
+ * stored by an import.
10866
+ */
10867
+ rootInputPx: number().int().positive().optional()
10868
+ }),
10869
+ object({
10870
+ kind: literal("mask"),
10871
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10872
+ })
10873
+ ]);
10973
10874
  var ModelCatalogEntrySchema = object({
10974
10875
  id: string(),
10975
10876
  name: string(),
@@ -11035,6 +10936,35 @@ var ModelCatalogEntrySchema = object({
11035
10936
  */
11036
10937
  defaultConfidence: number().min(0).max(1).optional(),
11037
10938
  /**
10939
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10940
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10941
+ * absent here runs at the step slider's global default. The same row shape
10942
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10943
+ * a measured table is copied in as-is. An operator override is bound to the
10944
+ * model it was made for and does not survive a model change (D738). A custom
10945
+ * / imported model may declare it; without it, the global defaults apply.
10946
+ */
10947
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10948
+ /**
10949
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10950
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10951
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10952
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10953
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10954
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10955
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10956
+ */
10957
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10958
+ /**
10959
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10960
+ * minimum DETECTION score from which this root's own fine label (species,
10961
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10962
+ * keeps its macro class without the fine label. `1` = never take it from
10963
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10964
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10965
+ */
10966
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10967
+ /**
11038
10968
  * When true, the executor produces a landmark-aligned crop (similarity warp
11039
10969
  * onto the canonical template) before this step runs, instead of a plain
11040
10970
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -11096,15 +11026,15 @@ var ModelCatalogEntrySchema = object({
11096
11026
  */
11097
11027
  classMap: DetectionCatalogClassMapSchema.optional(),
11098
11028
  /**
11099
- * The pipeline steps this ROOT detector already does the work of (D715):
11100
- * its labels name the effect the step exists to produce (`deer` for
11101
- * `animal-classifier`, `package` for `package-detection`). Derived from the
11102
- * labelmap by `deriveClassifierFills`, never hand-written; a COCO model
11103
- * declares none. Whether a declaration is honoured is the step's own
11104
- * `labelLink` policy (`resolveLabelLink`). `labelToEffect` values are in
11105
- * `FILLABLE_STEP_VOCABULARIES` (guard `check-label-link-vocabulary`).
11029
+ * The pipeline steps this ROOT detector can supply from its own output
11030
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
11031
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
11032
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
11033
+ * by hand and never assumed per family; a row without it is derived on read
11034
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
11035
+ * `useRootModel` flag (`resolveRootSupply`).
11106
11036
  */
11107
- fillsClassifierEffects: array(FillsClassifierEffectSchema).readonly().optional(),
11037
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
11108
11038
  /**
11109
11039
  * The model's CLIP feature-space contract (text encoder, dimension, vector
11110
11040
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
@@ -12707,13 +12637,6 @@ var BrokerRtspClientSchema = object({
12707
12637
  lastRtpAt: number(),
12708
12638
  bytesSent: number()
12709
12639
  });
12710
- var BrokerDecodedClientSchema = object({
12711
- tag: string(),
12712
- subscribedAt: number(),
12713
- maxFps: number(),
12714
- framesDelivered: number(),
12715
- framesDropped: number()
12716
- });
12717
12640
  var BrokerAudioClientSchema = object({
12718
12641
  tag: string(),
12719
12642
  subscribedAt: number(),
@@ -12805,7 +12728,6 @@ var BrokerEncodedClientSchema = object({
12805
12728
  });
12806
12729
  var BrokerClientsSchema = object({
12807
12730
  rtsp: array(BrokerRtspClientSchema).readonly(),
12808
- decoded: array(BrokerDecodedClientSchema).readonly(),
12809
12731
  audio: array(BrokerAudioClientSchema).readonly(),
12810
12732
  encoded: array(BrokerEncodedClientSchema).readonly(),
12811
12733
  pipeClients: number(),
@@ -13174,11 +13096,7 @@ method(object({
13174
13096
  auth: "admin"
13175
13097
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
13176
13098
  brokerId: string(),
13177
- channel: _enum([
13178
- "rtsp",
13179
- "decoded",
13180
- "audio"
13181
- ]),
13099
+ channel: _enum(["rtsp", "audio"]),
13182
13100
  handle: string()
13183
13101
  }), object({ killed: boolean() }), {
13184
13102
  kind: "mutation",
@@ -13213,10 +13131,7 @@ method(object({
13213
13131
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
13214
13132
  subscriptionId: string(),
13215
13133
  maxCount: number().int().positive().default(8)
13216
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
13217
- subscriptionId: string(),
13218
- maxCount: number().int().positive().default(4)
13219
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13134
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13220
13135
  brokerId: string(),
13221
13136
  seconds: number().min(0).max(30)
13222
13137
  }), _void(), {
@@ -14475,54 +14390,12 @@ id: union([string(), number()]) }), {
14475
14390
  kind: "mutation",
14476
14391
  auth: "admin"
14477
14392
  });
14478
- /**
14479
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14480
- * exposed via `decoder.getShmStats` so downstream consumers can
14481
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14482
- */
14483
- var ShmRingStatsSchema = object({
14484
- sessionId: string(),
14485
- slotCount: number().int(),
14486
- slotByteLength: number().int(),
14487
- segmentBytes: number().int(),
14488
- budgetMb: number().int(),
14489
- framesWritten: number().int(),
14490
- getFrameHits: number().int(),
14491
- getFrameMisses: number().int()
14492
- });
14493
- method(object({ codec: string() }), boolean()), method(_void(), object({
14393
+ method(_void(), object({
14494
14394
  id: string(),
14495
14395
  name: string(),
14496
- isPullMode: boolean().optional(),
14497
- priority: number().optional(),
14498
14396
  hwaccel: string().optional(),
14499
14397
  probedBestHwaccel: string().optional()
14500
- })), method(DecoderSessionConfigSchema, object({
14501
- sessionId: string(),
14502
- nodeId: string()
14503
- })), method(object({ sessionId: string() }), _void()), method(object({
14504
- sessionId: string(),
14505
- packet: EncodedPacketSchema
14506
- }), _void()), method(object({
14507
- sessionId: string(),
14508
- url: string()
14509
- }), _void()), method(object({
14510
- sessionId: string(),
14511
- maxCount: number().default(1),
14512
- waitMs: number().optional()
14513
- }), array(DecodedFrameSchema)), method(object({
14514
- sessionId: string(),
14515
- maxCount: number().default(1),
14516
- waitMs: number().optional()
14517
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14518
- sessionId: string(),
14519
- config: DecoderSessionConfigSchema.partial()
14520
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14521
- sessionId: string(),
14522
- codec: string(),
14523
- outputFormat: string(),
14524
- createdAtMs: number()
14525
- })).readonly()), method(_void(), object({ backend: string() }), {
14398
+ })), method(_void(), object({ backend: string() }), {
14526
14399
  kind: "mutation",
14527
14400
  auth: "admin"
14528
14401
  });
@@ -15635,6 +15508,10 @@ var DeviceInfoSchema = object({
15635
15508
  isCamera: boolean(),
15636
15509
  /** Current config values — serializable snapshot */
15637
15510
  config: record(string(), unknown()),
15511
+ /** Paths inside `config` the device's schema declares secret (D783) —
15512
+ * what the non-admin redaction withholds. Paths, never values. Absent
15513
+ * when the owning runner has not reported them. */
15514
+ secretConfigPaths: array(string()).optional(),
15638
15515
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
15639
15516
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
15640
15517
  metadata: record(string(), unknown()).nullable().optional(),
@@ -15840,7 +15717,13 @@ var DeviceRegisterPayloadSchema = object({
15840
15717
  * call (workers re-register on init), so probe-driven updates
15841
15718
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
15842
15719
  features: array(string()).optional(),
15843
- config: record(string(), unknown())
15720
+ config: record(string(), unknown()),
15721
+ /** Config paths the device's own schema DECLARES secret
15722
+ * (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
15723
+ * `connection.password`). Re-published on every register; the non-admin
15724
+ * redaction withholds them at any depth (D783). Optional: an older runner
15725
+ * omits it and the keyword backstop applies. */
15726
+ secretConfigPaths: array(string()).optional()
15844
15727
  });
15845
15728
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
15846
15729
  var DevicePersistConfigPayloadSchema = object({
@@ -16686,6 +16569,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16686
16569
  kind: "mutation",
16687
16570
  auth: "admin"
16688
16571
  });
16572
+ var HUB_ADDRESS_ROLES = [
16573
+ "appConnections",
16574
+ "notificationTaps",
16575
+ "internal",
16576
+ "publicEndpoint"
16577
+ ];
16689
16578
  /**
16690
16579
  * Transport bounds for AI capability methods.
16691
16580
  *
@@ -17512,7 +17401,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
17512
17401
  icon: string().optional(),
17513
17402
  /** Addon-owned HTTP route the button navigates to (GET). */
17514
17403
  startUrl: string(),
17515
- stage: LoginStageEnum
17404
+ stage: LoginStageEnum,
17405
+ /**
17406
+ * The provider names an external identity a signed-in user can link to
17407
+ * their own account (D782): `auth.listLinkableProviders` /
17408
+ * `beginExternalLink` offer exactly the redirect methods that set this,
17409
+ * whatever their id. Absent / false — a login button only (magic-link).
17410
+ */
17411
+ linkable: boolean().optional()
17516
17412
  }),
17517
17413
  object({
17518
17414
  kind: literal("widget"),
@@ -18448,6 +18344,51 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
18448
18344
  kind: "mutation",
18449
18345
  auth: "admin"
18450
18346
  });
18347
+ new Set([
18348
+ {
18349
+ id: "person",
18350
+ name: "Person"
18351
+ },
18352
+ {
18353
+ id: "vehicle",
18354
+ name: "Vehicle"
18355
+ },
18356
+ {
18357
+ id: "animal",
18358
+ name: "Animal"
18359
+ },
18360
+ {
18361
+ id: "package",
18362
+ name: "Package"
18363
+ }
18364
+ ].map((l) => l.id));
18365
+ var COCO_TO_MACRO = {
18366
+ mapping: {
18367
+ person: "person",
18368
+ bicycle: "vehicle",
18369
+ car: "vehicle",
18370
+ motorcycle: "vehicle",
18371
+ airplane: "vehicle",
18372
+ bus: "vehicle",
18373
+ train: "vehicle",
18374
+ truck: "vehicle",
18375
+ boat: "vehicle",
18376
+ bird: "animal",
18377
+ cat: "animal",
18378
+ dog: "animal",
18379
+ horse: "animal",
18380
+ sheep: "animal",
18381
+ cow: "animal",
18382
+ elephant: "animal",
18383
+ bear: "animal",
18384
+ zebra: "animal",
18385
+ giraffe: "animal",
18386
+ suitcase: "package",
18387
+ backpack: "package",
18388
+ handbag: "package"
18389
+ },
18390
+ preserveOriginal: false
18391
+ };
18451
18392
  var AUDIO_MACRO_LABELS = [
18452
18393
  {
18453
18394
  id: "speech",
@@ -20850,7 +20791,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20850
20791
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20851
20792
  * is the one that starts the entry delay — the entry-delay notification already names it.
20852
20793
  */
20853
- notifySensorRewatched: boolean().optional()
20794
+ notifySensorRewatched: boolean().optional(),
20795
+ /**
20796
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20797
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20798
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20799
+ */
20800
+ notifySensorIgnored: boolean().optional()
20854
20801
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20855
20802
  var NcAlarmModeDelaysEditListSchema = array(object({
20856
20803
  mode: AlarmArmModeSchema,
@@ -20863,7 +20810,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20863
20810
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20864
20811
  notifyDuringEntryDelay: boolean().nullable().optional(),
20865
20812
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20866
- notifySensorRewatched: boolean().nullable().optional()
20813
+ notifySensorRewatched: boolean().nullable().optional(),
20814
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20815
+ notifySensorIgnored: boolean().nullable().optional()
20867
20816
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20868
20817
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20869
20818
  var NcAlarmNonBlockingEditSchema = object({
@@ -21841,8 +21790,8 @@ Object.freeze(Object.fromEntries([{
21841
21790
  var CLUSTER_STEP_SETTING_FIELDS = [{
21842
21791
  stepId: "face-embedding",
21843
21792
  key: "minLandmarkFaceSize",
21844
- label: "Min face size for recognition (detection px)",
21845
- description: "Refuse to embed a face smaller than this IN THE DETECTION FRAME. Applies to every node — the enrolled gallery is one index, and two admission floors would fill it from two policies. 0 disables the gate.",
21793
+ label: "Min face size to embed (detection-frame px)",
21794
+ description: "Faces smaller than this in the small frame the detector sees are not embedded, so they can never be recognised. Below it the face cannot be aligned reliably and a bad embedding matches everyone. Same value on every node. 0 = no limit.",
21846
21795
  type: "slider",
21847
21796
  min: 0,
21848
21797
  max: 64,
@@ -22894,7 +22843,13 @@ var RetrainFrameSchema = object({
22894
22843
  sizeBytes: number().int(),
22895
22844
  width: number().int(),
22896
22845
  height: number().int(),
22897
- copiedAt: number()
22846
+ copiedAt: number(),
22847
+ /** When the CAMERA captured the frame. Absent on a copy taken before D785. */
22848
+ capturedAt: number().optional(),
22849
+ /** The operator's "every subject in this frame is boxed". Detector
22850
+ * evaluation keeps only complete frames: an unboxed subject would count as
22851
+ * a false positive. */
22852
+ complete: boolean()
22898
22853
  });
22899
22854
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
22900
22855
  var RetrainCopyRefusalSchema = _enum([
@@ -22915,6 +22870,51 @@ var RetrainFrameListSchema = object({
22915
22870
  /** What the page pre-selects — the native key frame when one survives. */
22916
22871
  autoPickMediaId: number().int().optional()
22917
22872
  });
22873
+ /**
22874
+ * Which frames an annotated export carries. Every field narrows; an empty
22875
+ * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
22876
+ * list owned by whoever trains (the training orchestrator), so `frameIds` is
22877
+ * the primitive a version export uses; `batchId` re-selects what an earlier
22878
+ * export carried (`exportedInBatch`).
22879
+ */
22880
+ var RetrainExportFilterSchema = object({
22881
+ deviceIds: array(number()).optional(),
22882
+ frameIds: array(string()).max(2e4).optional(),
22883
+ batchId: string().optional(),
22884
+ /** Only frames the operator marked complete (all subjects boxed). */
22885
+ completeOnly: boolean().optional()
22886
+ });
22887
+ /**
22888
+ * `frames`: the full frame copies, boxes in `annotations.json`.
22889
+ * `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
22890
+ * convention — the classifier layout.
22891
+ */
22892
+ var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
22893
+ /**
22894
+ * Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
22895
+ * the archive, sent chunk by chunk. Covers a presigned PUT and a provider
22896
+ * addon's data-plane upload route alike. Headers are sent verbatim and never
22897
+ * logged.
22898
+ */
22899
+ var RetrainArchiveTargetSchema = object({
22900
+ kind: literal("http"),
22901
+ method: _enum(["PUT", "POST"]),
22902
+ url: string().url(),
22903
+ headers: record(string(), string()).optional()
22904
+ });
22905
+ var RetrainArchiveResultSchema = object({
22906
+ batchId: string(),
22907
+ frames: number().int(),
22908
+ crops: number().int(),
22909
+ annotations: number().int(),
22910
+ /** Frames planned but not shipped (unreadable copy, path too long). */
22911
+ missing: number().int(),
22912
+ bytes: number().int(),
22913
+ /** sha256 of the exact bytes sent. */
22914
+ sha256: string(),
22915
+ /** The target's HTTP status. */
22916
+ status: number().int()
22917
+ });
22918
22918
  /** What the operator asked the assist to look for. */
22919
22919
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
22920
22920
  kind: literal("package"),
@@ -23709,9 +23709,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23709
23709
  }), RetrainTransitionResultSchema, {
23710
23710
  kind: "mutation",
23711
23711
  auth: "admin"
23712
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
23712
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
23713
23713
  kind: "query",
23714
23714
  auth: "admin"
23715
+ }), method(object({
23716
+ deviceId: number(),
23717
+ trackId: string(),
23718
+ frameId: string(),
23719
+ complete: boolean()
23720
+ }), RetrainFrameSchema, {
23721
+ kind: "mutation",
23722
+ auth: "admin"
23723
+ }), method(object({
23724
+ filter: RetrainExportFilterSchema,
23725
+ layout: RetrainExportLayoutSchema,
23726
+ target: RetrainArchiveTargetSchema
23727
+ }), RetrainArchiveResultSchema, {
23728
+ kind: "mutation",
23729
+ auth: "admin",
23730
+ timeoutMs: 60 * 6e4
23715
23731
  }), method(object({
23716
23732
  /** Which of the three event tables owns the row. */
23717
23733
  ownerType: EventOwnerTypeSchema,
@@ -23762,6 +23778,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23762
23778
  timestamp: number()
23763
23779
  });
23764
23780
  /**
23781
+ * A root model's boxes standing in for one crop-kind step's own inference
23782
+ * (D730) — see `runPipeline.suppliedRoot`.
23783
+ */
23784
+ var SuppliedRootOutputSchema = object({
23785
+ stepId: string(),
23786
+ /** The root model that drew the boxes — stamped on the result. */
23787
+ modelId: string(),
23788
+ detections: array(object({
23789
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23790
+ bbox: tuple([
23791
+ number(),
23792
+ number(),
23793
+ number(),
23794
+ number()
23795
+ ]),
23796
+ score: number(),
23797
+ /**
23798
+ * Five facial landmarks in the same pixels — a face the step's own
23799
+ * detector already re-found inside a root face box (D730), so its
23800
+ * embedder child aligns it exactly as it aligns any detected face.
23801
+ */
23802
+ landmarks: array(object({
23803
+ x: number(),
23804
+ y: number()
23805
+ })).optional()
23806
+ })).min(1)
23807
+ });
23808
+ /**
23765
23809
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23766
23810
  * within the frame, so the executor can re-cut a leaf child ROI at native
23767
23811
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23809,7 +23853,7 @@ var FrameRefSchema = object({
23809
23853
  timestamp: number(),
23810
23854
  capturedAt: number().optional()
23811
23855
  });
23812
- var ModelFormatSchema$1 = _enum([
23856
+ var ModelFormatSchema$2 = _enum([
23813
23857
  "onnx",
23814
23858
  "coreml",
23815
23859
  "openvino",
@@ -23827,7 +23871,7 @@ var PipelineSlotSchema = _enum([
23827
23871
  var PipelineEngineChoiceSchema = object({
23828
23872
  runtime: literal("python"),
23829
23873
  backend: string(),
23830
- format: ModelFormatSchema$1,
23874
+ format: ModelFormatSchema$2,
23831
23875
  device: string().optional()
23832
23876
  });
23833
23877
  /**
@@ -23866,33 +23910,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23866
23910
  group: string().optional(),
23867
23911
  settings: record(string(), unknown()).optional()
23868
23912
  }));
23869
- var PipelineTemplateStepSchema = lazy(() => object({
23870
- addonId: string(),
23871
- enabled: boolean(),
23872
- modelId: string(),
23873
- children: array(PipelineTemplateStepSchema).readonly(),
23874
- settings: record(string(), unknown()).optional()
23875
- }));
23876
- var PipelineTemplateSchema$1 = object({
23877
- id: string(),
23878
- name: string(),
23879
- createdAt: string(),
23880
- updatedAt: string(),
23881
- engine: PipelineEngineChoiceSchema,
23882
- steps: array(PipelineTemplateStepSchema).readonly()
23883
- });
23884
23913
  var PipelineModelOptionSchema = object({
23885
23914
  id: string(),
23886
23915
  name: string(),
23887
- formats: record(string(), object({
23888
- downloaded: boolean(),
23889
- sizeMB: number()
23890
- })),
23916
+ formats: record(string(), PipelineModelFormatStatusSchema),
23891
23917
  group: ModelVariantGroupSchema.optional(),
23892
23918
  legacy: boolean().optional(),
23893
23919
  provider: ModelProviderIdSchema.optional(),
23894
23920
  defaultConfidence: number().optional(),
23895
- fillsClassifierEffects: array(FillsClassifierEffectSchema).readonly().optional()
23921
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23896
23922
  });
23897
23923
  var ConfigFieldBridge = custom();
23898
23924
  var PipelineAddonSchemaSchema = object({
@@ -24054,6 +24080,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24054
24080
  }), {
24055
24081
  kind: "mutation",
24056
24082
  auth: "admin"
24083
+ }), method(object({
24084
+ nodeId: string(),
24085
+ deviceIds: array(number()).readonly().optional(),
24086
+ dryRun: boolean()
24087
+ }), object({
24088
+ entries: array(object({
24089
+ deviceId: number(),
24090
+ keys: array(string()).readonly()
24091
+ })).readonly(),
24092
+ refused: array(object({
24093
+ deviceId: number(),
24094
+ reason: string()
24095
+ })).readonly()
24096
+ }), {
24097
+ kind: "mutation",
24098
+ auth: "admin"
24057
24099
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
24058
24100
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
24059
24101
  deviceKey: string(),
@@ -24079,22 +24121,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24079
24121
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
24080
24122
  steps: array(PipelineStepInputSchema),
24081
24123
  deviceKey: string().optional()
24082
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
24083
- name: string(),
24084
- steps: array(PipelineTemplateStepSchema).readonly(),
24085
- engine: PipelineEngineChoiceSchema
24086
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
24087
- id: string(),
24088
- name: string().optional(),
24089
- steps: array(PipelineTemplateStepSchema).readonly().optional()
24090
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
24124
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
24091
24125
  addonId: string(),
24092
24126
  modelId: string(),
24093
- format: ModelFormatSchema$1
24127
+ format: ModelFormatSchema$2
24094
24128
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
24095
24129
  addonId: string(),
24096
24130
  modelId: string(),
24097
- format: ModelFormatSchema$1
24131
+ format: ModelFormatSchema$2
24098
24132
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
24099
24133
  steps: array(PipelineStepInputSchema).min(1),
24100
24134
  frame: FrameInputSchema.optional(),
@@ -24160,7 +24194,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24160
24194
  * `device-not-servable`), and nothing reaches the camera's live
24161
24195
  * trace stream. Absent ⇒ unchanged behaviour.
24162
24196
  */
24163
- replay: literal(true).optional()
24197
+ replay: literal(true).optional(),
24198
+ /**
24199
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
24200
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
24201
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
24202
+ * NOT inferred, these boxes are its output, and its children (the plate
24203
+ * reader) run on them through their own crop policy. Boxes are in the
24204
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
24205
+ */
24206
+ suppliedRoot: SuppliedRootOutputSchema.optional()
24164
24207
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
24165
24208
  steps: array(PipelineStepInputSchema).min(1),
24166
24209
  frames: array(FrameInputSchema).min(1).max(255),
@@ -24242,6 +24285,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24242
24285
  filename: string().optional(),
24243
24286
  settings: record(string(), unknown()).optional()
24244
24287
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
24288
+ /**
24289
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
24290
+ * `pipeline-orchestrator` cap. The recommender's own types
24291
+ * (`recommend.ts`) are the TS face of the same data; these
24292
+ * schemas are what crosses the cap boundary.
24293
+ */
24294
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
24295
+ /** The operator's range for it. */
24296
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
24297
+ min: 1,
24298
+ max: 8
24299
+ };
24300
+ var HardwareClassIdSchema = _enum([
24301
+ "intel-core-ultra",
24302
+ "intel-n-series",
24303
+ "apple-m-base",
24304
+ "apple-m-pro",
24305
+ "unknown"
24306
+ ]);
24307
+ var AcceleratorKindSchema = _enum([
24308
+ "intel-npu",
24309
+ "intel-igpu",
24310
+ "x86-cpu",
24311
+ "arm-cpu",
24312
+ "apple-ane",
24313
+ "coral"
24314
+ ]);
24315
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
24316
+ object({
24317
+ kind: literal("capacity"),
24318
+ sessions: number(),
24319
+ minSessions: number()
24320
+ }),
24321
+ object({
24322
+ kind: literal("tie-faster"),
24323
+ over: string(),
24324
+ recallDelta: number()
24325
+ }),
24326
+ object({
24327
+ kind: literal("stepped-down"),
24328
+ from: string(),
24329
+ to: string(),
24330
+ limitedBy: string()
24331
+ }),
24332
+ object({
24333
+ kind: literal("no-fit-lightest"),
24334
+ sessions: number(),
24335
+ minSessions: number()
24336
+ }),
24337
+ object({
24338
+ kind: literal("derived-latency"),
24339
+ modelId: string()
24340
+ }),
24341
+ object({ kind: literal("cpu-device") }),
24342
+ object({ kind: literal("coral-untouched") }),
24343
+ object({ kind: literal("device-disabled") }),
24344
+ object({ kind: literal("device-unavailable") }),
24345
+ object({ kind: literal("node-offline") }),
24346
+ object({ kind: literal("no-hardware-facts") }),
24347
+ object({
24348
+ kind: literal("no-measured-data"),
24349
+ hardwareClass: HardwareClassIdSchema
24350
+ }),
24351
+ object({
24352
+ kind: literal("no-family-build"),
24353
+ format: ModelFormatSchema$1
24354
+ })
24355
+ ]);
24356
+ var DeviceModelChoiceSchema = object({
24357
+ modelId: string(),
24358
+ p50Ms: number(),
24359
+ fps: number(),
24360
+ measured: boolean(),
24361
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24362
+ capacitySessions: number(),
24363
+ personRecall: number()
24364
+ });
24365
+ var DeviceRecommendationSchema = object({
24366
+ deviceKey: string(),
24367
+ accelerator: AcceleratorKindSchema.nullable(),
24368
+ enabled: boolean(),
24369
+ available: boolean(),
24370
+ chosen: DeviceModelChoiceSchema.nullable(),
24371
+ reasons: array(RecommendationReasonSchema).readonly()
24372
+ });
24373
+ var NodeRecommendationSchema = object({
24374
+ nodeId: string(),
24375
+ reachable: boolean(),
24376
+ hardwareClass: HardwareClassIdSchema.nullable(),
24377
+ cpuModel: string().nullable(),
24378
+ skipped: boolean(),
24379
+ acceleratorModelId: string().nullable(),
24380
+ devices: array(DeviceRecommendationSchema).readonly(),
24381
+ reasons: array(RecommendationReasonSchema).readonly()
24382
+ });
24383
+ var ModelPinChangeSchema = object({
24384
+ stepId: string(),
24385
+ before: string().nullable(),
24386
+ after: string().nullable()
24387
+ });
24388
+ var NodeDeviceChangeSchema = object({
24389
+ nodeId: string(),
24390
+ deviceKey: string(),
24391
+ madeExplicit: boolean(),
24392
+ modelPins: array(ModelPinChangeSchema).readonly(),
24393
+ thresholds: array(object({
24394
+ stepId: string(),
24395
+ keys: array(string()).readonly()
24396
+ })).readonly()
24397
+ });
24398
+ var CameraOverrideClearSchema = object({
24399
+ deviceId: number(),
24400
+ source: _enum(["step-override", "wholesale"]),
24401
+ nodeId: string(),
24402
+ deviceKey: string().nullable(),
24403
+ stepId: string(),
24404
+ modelIdBefore: string().nullable(),
24405
+ keys: array(string()).readonly()
24406
+ });
24407
+ var DetectorStoreClearSchema = object({
24408
+ deviceId: number(),
24409
+ keys: array(string()).readonly()
24410
+ });
24411
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24412
+ object({
24413
+ kind: literal("detector-store-cluster-wide"),
24414
+ skippedNodes: array(string()).readonly()
24415
+ }),
24416
+ object({
24417
+ kind: literal("detector-store-unreadable"),
24418
+ error: string()
24419
+ }),
24420
+ object({
24421
+ kind: literal("coral-enabled"),
24422
+ nodeId: string(),
24423
+ deviceKey: string()
24424
+ })
24425
+ ]);
24426
+ var AutoTuneOptionsSchema = object({
24427
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24428
+ headroom: number().min(.3).max(.5).default(.4),
24429
+ /**
24430
+ * The least number of parallel sessions every device must sustain at the
24431
+ * camera rate with the headroom kept free (D755). The most accurate model
24432
+ * that reaches it wins.
24433
+ */
24434
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24435
+ });
24436
+ var AutoTunePlanSchema = object({
24437
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24438
+ planHash: string(),
24439
+ family: literal("yolov9"),
24440
+ headroom: number(),
24441
+ minSessionsPerDevice: number(),
24442
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24443
+ cameraFps: number(),
24444
+ generatedAt: number(),
24445
+ nodes: array(NodeRecommendationSchema).readonly(),
24446
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24447
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24448
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24449
+ warnings: array(AutoTuneWarningSchema).readonly()
24450
+ });
24451
+ var AutoTuneApplyInputSchema = object({
24452
+ planHash: string(),
24453
+ headroom: number().min(.3).max(.5).default(.4),
24454
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24455
+ });
24456
+ var AutoTunePhaseResultSchema = object({
24457
+ phase: _enum([
24458
+ "download",
24459
+ "camera-overrides",
24460
+ "detector-thresholds",
24461
+ "node-models",
24462
+ "redispatch"
24463
+ ]),
24464
+ ok: boolean(),
24465
+ detail: string()
24466
+ });
24467
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24468
+ object({
24469
+ kind: literal("applied"),
24470
+ planHash: string(),
24471
+ phases: array(AutoTunePhaseResultSchema).readonly()
24472
+ }),
24473
+ object({
24474
+ kind: literal("aborted"),
24475
+ phases: array(AutoTunePhaseResultSchema).readonly()
24476
+ }),
24477
+ object({
24478
+ kind: literal("stale"),
24479
+ plan: AutoTunePlanSchema
24480
+ }),
24481
+ object({
24482
+ kind: literal("refused"),
24483
+ reason: _enum(["apply-in-progress"])
24484
+ })
24485
+ ]);
24486
+ /**
24487
+ * Wire shapes of the Load balancing surface (D748): the session placement
24488
+ * policy, the atomic share write, the observed placement statistics, the
24489
+ * hardware share suggestion and the stale device pins.
24490
+ */
24491
+ /**
24492
+ * How a new detection session picks its node and device.
24493
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24494
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24495
+ * weight only bites once a node already holds a session.
24496
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24497
+ * full or drowning node yields to a free one (D748).
24498
+ */
24499
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24500
+ var LoadBalancingSharesInputSchema = object({
24501
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24502
+ nodes: record(string(), number().positive()).default({}),
24503
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24504
+ devices: record(string(), record(string(), number().positive())).default({})
24505
+ });
24506
+ var PlacementStatsInputSchema = object({
24507
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24508
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24509
+ var PlacementDeviceStatsSchema = object({
24510
+ deviceKey: string(),
24511
+ /** Sessions running on this device now. */
24512
+ sessionsNow: number(),
24513
+ /** Sessions started on this device inside the window. */
24514
+ sessionsStarted: number(),
24515
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24516
+ observedShare: number().nullable()
24517
+ });
24518
+ var PlacementNodeStatsSchema = object({
24519
+ nodeId: string(),
24520
+ sessionsNow: number(),
24521
+ sessionsStarted: number(),
24522
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24523
+ observedShare: number().nullable(),
24524
+ /** Most sessions this node ran at once inside the window. */
24525
+ peakSessions: number(),
24526
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24527
+ yieldsAway: number(),
24528
+ devices: array(PlacementDeviceStatsSchema).readonly()
24529
+ });
24530
+ /** A camera's device pin that the session path cannot honour. */
24531
+ var StaleDevicePinSchema = object({
24532
+ deviceId: number(),
24533
+ deviceKey: string(),
24534
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24535
+ reason: _enum(["disabled", "absent"])
24536
+ });
24537
+ var PlacementStatsSchema = object({
24538
+ policy: SessionPlacementPolicySchema,
24539
+ windowMs: number(),
24540
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24541
+ observedForMs: number(),
24542
+ sessionsNow: number(),
24543
+ /** Most parallel sessions across the cluster inside the window. */
24544
+ clusterPeakSessions: number(),
24545
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24546
+ stalePins: array(StaleDevicePinSchema).readonly()
24547
+ });
24548
+ /**
24549
+ * Where an automatic share's capacity comes from (D755).
24550
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24551
+ * the measured latency table for the node's hardware class.
24552
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24553
+ * A node with no results falls back to `hardware`, and says so.
24554
+ */
24555
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24556
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24557
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24558
+ var SuggestSharesInputSchema = object({
24559
+ headroom: number().min(.3).max(.5).default(.4),
24560
+ /** Default `hardware`. */
24561
+ source: CapacitySourceSchema.default("hardware")
24562
+ });
24563
+ var SuggestedDeviceShareSchema = object({
24564
+ deviceKey: string(),
24565
+ /** Share of the node (0–100, rounded). */
24566
+ share: number(),
24567
+ modelId: string().nullable(),
24568
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24569
+ fps: number().nullable(),
24570
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24571
+ measured: boolean(),
24572
+ /**
24573
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24574
+ * or the benchmark's measured max sessions. Never enforced.
24575
+ */
24576
+ suggestedMaxSessions: number().nullable()
24577
+ });
24578
+ var SuggestedNodeShareSchema = object({
24579
+ nodeId: string(),
24580
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24581
+ share: number().nullable(),
24582
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24583
+ capacitySessions: number(),
24584
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24585
+ skippedReason: string().nullable(),
24586
+ /** What this node's capacity was read from; null when the node is skipped. */
24587
+ capacitySource: CapacitySourceSchema.nullable(),
24588
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24589
+ capacityFallback: CapacityFallbackSchema.nullable()
24590
+ });
24591
+ var SuggestSharesResultSchema = object({
24592
+ headroom: number(),
24593
+ /** The source asked for; each node says what it actually used. */
24594
+ source: CapacitySourceSchema,
24595
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24596
+ cameraFps: number(),
24597
+ /** The Auto tune capacity floor the models were picked at. */
24598
+ minSessionsPerDevice: number(),
24599
+ nodes: array(SuggestedNodeShareSchema).readonly()
24600
+ });
24601
+ /**
24602
+ * Where the node and device shares come from (D750, D755).
24603
+ * - `hardware` (default) — computed by the system from each node's static
24604
+ * capacity (its accelerators at their Auto tune models, from the measured
24605
+ * latency table), recomputed whenever a node or device joins, leaves, is
24606
+ * switched on or off, or changes model. No load input.
24607
+ * - `benchmark` — the same, from each node's measured capacity (node
24608
+ * benchmark results); a node without results falls back to `hardware`.
24609
+ * - `manual` — the operator's stored sliders.
24610
+ * Either way a node or device that cannot take sessions gives its share to
24611
+ * the others in proportion; the stored values are never rewritten for that.
24612
+ */
24613
+ var ShareSourceSchema = _enum([
24614
+ "hardware",
24615
+ "benchmark",
24616
+ "manual"
24617
+ ]);
24618
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24619
+ object({
24620
+ nodes: record(string(), number()),
24621
+ devices: record(string(), record(string(), number()))
24622
+ });
24623
+ var EffectiveDeviceShareSchema = object({
24624
+ deviceKey: string(),
24625
+ /** Can take sessions now (enabled, available, can run the root). */
24626
+ eligible: boolean(),
24627
+ /** The share the source assigns, as a percentage of the node's devices. */
24628
+ configuredPct: number(),
24629
+ /** The share actually used, after an ineligible device's share went to the others. */
24630
+ effectivePct: number()
24631
+ });
24632
+ var EffectiveNodeShareSchema = object({
24633
+ nodeId: string(),
24634
+ eligible: boolean(),
24635
+ configuredPct: number(),
24636
+ effectivePct: number(),
24637
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24638
+ capacitySource: CapacitySourceSchema.nullable(),
24639
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24640
+ capacityFallback: CapacityFallbackSchema.nullable(),
24641
+ devices: array(EffectiveDeviceShareSchema).readonly()
24642
+ });
24643
+ var EffectiveSharesSchema = object({
24644
+ source: ShareSourceSchema,
24645
+ policy: SessionPlacementPolicySchema,
24646
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24647
+ autoPending: boolean(),
24648
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24649
+ computedAt: number().nullable(),
24650
+ /** What made the system recompute them last. */
24651
+ trigger: string().nullable(),
24652
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24653
+ /** The relative weights the election reads (before eligibility). */
24654
+ nodeWeights: record(string(), number()),
24655
+ deviceWeights: record(string(), record(string(), number()))
24656
+ });
24245
24657
  object({
24246
24658
  activeCameras: number(),
24247
24659
  throttledCameras: number(),
@@ -25159,14 +25571,15 @@ var RunnerLocalLoadSchema = object({
25159
25571
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
25160
25572
  * this runner currently has attached cameras on, so the orchestrator's second
25161
25573
  * `balance()` pass (over a node's devices) weights on real per-pool session
25162
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
25163
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25574
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25575
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25576
+ * a field that always read 0 was removed rather than shown as a measurement
25577
+ * (D762).
25164
25578
  */
25165
25579
  devices: array(object({
25166
25580
  deviceKey: string(),
25167
25581
  backend: string(),
25168
- attachedCameras: number(),
25169
- queueDepthTotal: number()
25582
+ attachedCameras: number()
25170
25583
  })).default([]),
25171
25584
  /** Hardware capability flags reported by this node. */
25172
25585
  hardware: object({
@@ -25302,7 +25715,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
25302
25715
  */
25303
25716
  cropJpeg: string().optional(),
25304
25717
  parent: DetailParentSchema,
25305
- steps: array(string()).optional()
25718
+ steps: array(string()).optional(),
25719
+ /**
25720
+ * The camera's root model already drew this step's boxes (D730): a
25721
+ * `license_plate` inside the parent vehicle. The named step is NOT
25722
+ * inferred — these FRAME-space boxes are its output — and its
25723
+ * requested children (the plate reader) run on them. Absent ⇒ every
25724
+ * requested step infers as before.
25725
+ */
25726
+ supplied: object({
25727
+ stepId: string(),
25728
+ modelId: string(),
25729
+ boxes: array(object({
25730
+ bbox: NativeCropBboxSchema,
25731
+ score: number()
25732
+ })).min(1)
25733
+ }).optional()
25306
25734
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
25307
25735
  /** Catalog step id, e.g. `clip-embedding`. */
25308
25736
  stepId: string(),
@@ -25365,14 +25793,6 @@ var CameraPipelineConfigSchema = object({
25365
25793
  settings: record(string(), unknown()).readonly().optional()
25366
25794
  }).nullable().optional()
25367
25795
  });
25368
- var PipelineTemplateSchema = object({
25369
- id: string(),
25370
- name: string(),
25371
- description: string().optional(),
25372
- config: CameraPipelineConfigSchema,
25373
- createdAt: string(),
25374
- updatedAt: string()
25375
- });
25376
25796
  var DeviceStepConfigSchema = object({
25377
25797
  modelId: string().optional(),
25378
25798
  settings: record(string(), unknown()).optional(),
@@ -25446,9 +25866,10 @@ var CameraStepOverridePatchSchema = object({
25446
25866
  modelId: string().optional(),
25447
25867
  settings: record(string(), unknown()).readonly().optional()
25448
25868
  });
25869
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25449
25870
  var CameraPipelineSettingsSchema = object({
25450
- pinnedAgentNodeId: string().optional(),
25451
25871
  stepToggles: record(string(), boolean()).optional(),
25872
+ stepSettings: CameraStepSettingsSchema.optional(),
25452
25873
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25453
25874
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25454
25875
  });
@@ -25481,7 +25902,10 @@ var PipelineAssignmentSchema = object({
25481
25902
  });
25482
25903
  /**
25483
25904
  * Per-agent load summary surfaced to the load balancer + dashboards.
25484
- * Aggregated from each runner's `getLocalLoad` cap call.
25905
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25906
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25907
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25908
+ * the default pool IS that device (D745); the balancer's census stays raw.
25485
25909
  */
25486
25910
  var AgentLoadSummarySchema = object({
25487
25911
  nodeId: string(),
@@ -25570,26 +25994,27 @@ var CameraBrokerStatusSchema = object({
25570
25994
  width: number(),
25571
25995
  height: number(),
25572
25996
  subscribers: number(),
25573
- inFps: number(),
25574
- outFps: number()
25997
+ /**
25998
+ * Encoded packets/s the broker receives from the camera. null when the
25999
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
26000
+ * There is no output rate: decoding runs in the session decode workers, not
26001
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
26002
+ * camera and is not served (D758).
26003
+ */
26004
+ inFps: number().nullable()
25575
26005
  })).readonly(),
25576
26006
  webrtcSessions: number(),
25577
26007
  rtspRestream: boolean()
25578
26008
  });
25579
- /** Shared-memory ring statistics within the decoder block. */
25580
- var CameraDecoderShmSchema = object({
25581
- framesWritten: number(),
25582
- getFrameHits: number(),
25583
- getFrameMisses: number(),
25584
- budgetMb: number()
25585
- });
25586
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25587
- var CameraDecoderStatusSchema = object({
25588
- nodeId: string(),
25589
- formats: array(string()).readonly(),
25590
- sessionCount: number(),
25591
- shm: CameraDecoderShmSchema
25592
- });
26009
+ /**
26010
+ * Decoder block — WHERE decode runs (co-located with the detection node by
26011
+ * construction); null when the camera has no detection node. It carries no
26012
+ * frame counter: the shared-memory plane whose counters it used to serve is
26013
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
26014
+ * from `detection.actualFps` (frames delivered to and processed by the
26015
+ * detector), never from a counter nothing feeds.
26016
+ */
26017
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25593
26018
  /** Motion block — null when motion detection is not active for this device. */
25594
26019
  var CameraMotionStatusSchema = object({
25595
26020
  enabled: boolean(),
@@ -25946,12 +26371,6 @@ method(object({
25946
26371
  }), object({ success: literal(true) }), {
25947
26372
  kind: "mutation",
25948
26373
  auth: "admin"
25949
- }), method(object({
25950
- agentNodeId: string(),
25951
- detectWeight: number().positive().nullable()
25952
- }), object({ success: literal(true) }), {
25953
- kind: "mutation",
25954
- auth: "admin"
25955
26374
  }), method(object({
25956
26375
  agentNodeId: string(),
25957
26376
  detect: boolean().nullable().optional(),
@@ -25993,6 +26412,15 @@ method(object({
25993
26412
  }), {
25994
26413
  kind: "mutation",
25995
26414
  auth: "admin"
26415
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26416
+ kind: "mutation",
26417
+ auth: "admin"
26418
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26419
+ kind: "mutation",
26420
+ auth: "admin"
26421
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26422
+ kind: "mutation",
26423
+ auth: "admin"
25996
26424
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25997
26425
  deviceId: number(),
25998
26426
  addonId: string(),
@@ -26009,6 +26437,13 @@ method(object({
26009
26437
  }), object({ success: literal(true) }), {
26010
26438
  kind: "mutation",
26011
26439
  auth: "admin"
26440
+ }), method(object({
26441
+ deviceId: number(),
26442
+ addonId: string(),
26443
+ settings: record(string(), unknown()).nullable()
26444
+ }), object({ success: literal(true) }), {
26445
+ kind: "mutation",
26446
+ auth: "admin"
26012
26447
  }), method(object({
26013
26448
  deviceId: number(),
26014
26449
  agentNodeId: string(),
@@ -26032,25 +26467,7 @@ method(object({
26032
26467
  }), method(_void(), DiskReconcileJobSchema, {
26033
26468
  kind: "mutation",
26034
26469
  auth: "admin"
26035
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
26036
- name: string(),
26037
- description: string().optional(),
26038
- config: CameraPipelineConfigSchema
26039
- }), PipelineTemplateSchema, {
26040
- kind: "mutation",
26041
- auth: "admin"
26042
- }), method(object({
26043
- id: string(),
26044
- name: string().optional(),
26045
- description: string().optional(),
26046
- config: CameraPipelineConfigSchema.optional()
26047
- }), PipelineTemplateSchema, {
26048
- kind: "mutation",
26049
- auth: "admin"
26050
- }), method(object({ id: string() }), object({ success: literal(true) }), {
26051
- kind: "mutation",
26052
- auth: "admin"
26053
- });
26470
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
26054
26471
  /**
26055
26472
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
26056
26473
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -26744,7 +27161,19 @@ var SsoBridgeClaimsSchema = object({
26744
27161
  * editing a descriptor must not retroactively extend or shorten a link the
26745
27162
  * operator already consented to.
26746
27163
  */
26747
- refreshTtl: union([number().int().positive(), literal("never")]).optional()
27164
+ refreshTtl: union([number().int().positive(), literal("never")]).optional(),
27165
+ /**
27166
+ * Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
27167
+ * that was started from a signed-in user's "Link" button: the finish then
27168
+ * links this identity to the intent's user instead of signing anyone in.
27169
+ * The handle carries no user id — the hub resolves it, single-use.
27170
+ */
27171
+ linkIntent: string().optional(),
27172
+ /**
27173
+ * Verified `iss` of the id_token behind an OIDC login bridge (D782). A
27174
+ * subject is unique only per issuer, so a link is bound to it.
27175
+ */
27176
+ issuer: string().optional()
26748
27177
  });
26749
27178
  method(object({
26750
27179
  claims: SsoBridgeClaimsSchema,
@@ -28821,8 +29250,6 @@ var WebrtcStreamChoiceSchema = object({
28821
29250
  ]).nullable(),
28822
29251
  /** Input FPS from the camera (null for adaptive). */
28823
29252
  inputFps: number().nullable(),
28824
- /** Decoded FPS (null for adaptive). */
28825
- decodeFps: number().nullable(),
28826
29253
  /** Bitrate in kbps (null for adaptive). */
28827
29254
  bitrateKbps: number().nullable()
28828
29255
  });
@@ -29099,7 +29526,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
29099
29526
  * field their hints were silently stripped by the schema and the
29100
29527
  * adaptive ladder started blind on the client's display size.
29101
29528
  */
29102
- hints: webrtcClientHintsSchema.optional()
29529
+ hints: webrtcClientHintsSchema.optional(),
29530
+ /**
29531
+ * Talk-back (D771): relay the PEER's audio to the device's speaker
29532
+ * through the `intercom` cap's push-talk triple. When `true` and the
29533
+ * offer lets the peer send audio, the answer's audio is `sendrecv`
29534
+ * and every inbound frame goes to `intercom.pushTalkAudio` for this
29535
+ * `deviceId`; absent/false answers `sendonly`, as for every viewer.
29536
+ *
29537
+ * TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
29538
+ * with `intercom`, when the linked user may control that camera. The
29539
+ * hub STRIPS it from every request-bound call (a browser), exactly as
29540
+ * it overwrites `relayOnly` — a viewer's talk permission is the
29541
+ * intercom cap's own surface (share tokens gate it there), and this
29542
+ * flag must not become a second door to the camera's speaker.
29543
+ */
29544
+ talkback: boolean().optional()
29103
29545
  }), object({
29104
29546
  sessionId: string(),
29105
29547
  sdpAnswer: string()
@@ -29154,6 +29596,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
29154
29596
  */
29155
29597
  alive: boolean()
29156
29598
  })), method(object({
29599
+ deviceId: number().int().nonnegative(),
29600
+ sessionId: string(),
29601
+ downlinkMbps: number().nonnegative()
29602
+ }), object({
29603
+ outcome: _enum(["switching", "held"]),
29604
+ tier: CamProfileSchema.nullable(),
29605
+ reason: string()
29606
+ }), { kind: "mutation" }), method(object({
29157
29607
  deviceId: number().int().nonnegative(),
29158
29608
  sessionId: string()
29159
29609
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -29393,6 +29843,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29393
29843
  var RestartAddonResultSchema = unknown();
29394
29844
  var InstallPackageResultSchema = unknown();
29395
29845
  var ReloadPackagesResultSchema = unknown();
29846
+ /**
29847
+ * What an uninstall did on ONE node.
29848
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29849
+ * - `not-installed` — the node did not have it (nothing to do).
29850
+ * - `refused` — protected / bootstrap package; nothing touched.
29851
+ * - `failed` — attempted and did not complete; `error` says why.
29852
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29853
+ * back-fill never returns the package, and the stale-addon sweep removes the
29854
+ * copy when the node registers again (only once the hub no longer has it).
29855
+ */
29856
+ var UninstallNodeOutcomeSchema = _enum([
29857
+ "uninstalled",
29858
+ "not-installed",
29859
+ "refused",
29860
+ "failed",
29861
+ "pending-reconnect"
29862
+ ]);
29863
+ var UninstallNodeResultSchema = object({
29864
+ nodeId: string(),
29865
+ outcome: UninstallNodeOutcomeSchema,
29866
+ error: string().optional(),
29867
+ addonIds: array(string()).readonly(),
29868
+ runnersStopped: array(string()).readonly(),
29869
+ warnings: array(string()).readonly()
29870
+ });
29871
+ var UninstallPackageResultSchema = object({
29872
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29873
+ success: boolean(),
29874
+ packageName: string(),
29875
+ results: array(UninstallNodeResultSchema).readonly()
29876
+ });
29877
+ /**
29878
+ * `unreachable` lists online agents whose status read FAILED — absence from
29879
+ * `installations` is only "not installed" for a node that answered (D315).
29880
+ */
29881
+ var PackageInstallationsSchema = object({
29882
+ installations: array(object({
29883
+ packageName: string(),
29884
+ nodeId: string(),
29885
+ nodeName: string(),
29886
+ isHub: boolean(),
29887
+ isOnline: boolean(),
29888
+ version: string().nullable(),
29889
+ addonIds: array(string()).readonly(),
29890
+ source: _enum(["live", "recorded"]),
29891
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29892
+ onHub: boolean()
29893
+ })).readonly(),
29894
+ unreachable: array(object({
29895
+ nodeId: string(),
29896
+ error: string()
29897
+ })).readonly()
29898
+ });
29396
29899
  var BulkUpdateItemStatusSchema = _enum([
29397
29900
  "queued",
29398
29901
  "updating",
@@ -29475,10 +29978,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29475
29978
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29476
29979
  kind: "mutation",
29477
29980
  auth: "admin"
29478
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29981
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29982
+ packageName: string().min(1),
29983
+ nodeId: string().optional(),
29984
+ everywhere: boolean().optional()
29985
+ }), UninstallPackageResultSchema, {
29479
29986
  kind: "mutation",
29480
29987
  auth: "admin"
29481
- }), method(_void(), ReloadPackagesResultSchema, {
29988
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29482
29989
  kind: "mutation",
29483
29990
  auth: "admin"
29484
29991
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32965,7 +33472,8 @@ var ConnectionEndpointSchema = object({
32965
33472
  "lan-ipv6",
32966
33473
  "public",
32967
33474
  "loopback",
32968
- "app-link"
33475
+ "app-link",
33476
+ "custom"
32969
33477
  ]),
32970
33478
  /**
32971
33479
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -33034,7 +33542,7 @@ var GetConnectionEndpointsResultSchema = object({
33034
33542
  localPort: AdvertisedLocalPortSchema
33035
33543
  });
33036
33544
  /**
33037
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
33545
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
33038
33546
  * since D709 is the CamStack app link; `resolved` reports the effective value,
33039
33547
  * so the UI can show it either way.
33040
33548
  */
@@ -33067,6 +33575,72 @@ var ViewerEndpointsSchema = object({
33067
33575
  /** What the ranking currently resolves to (may be empty if nothing is up). */
33068
33576
  resolved: array(string()).readonly()
33069
33577
  });
33578
+ /**
33579
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
33580
+ * for addons built against it): `cluster` is the `internal` role, `browser`
33581
+ * the `publicEndpoint` role; `override` is the flagged address.
33582
+ */
33583
+ var HubAddressSnapshotSchema = object({
33584
+ override: string().nullable(),
33585
+ resolved: string().nullable(),
33586
+ source: _enum([
33587
+ "override",
33588
+ "auto",
33589
+ "none"
33590
+ ])
33591
+ });
33592
+ var HubAddressesSchema = object({
33593
+ cluster: HubAddressSnapshotSchema,
33594
+ browser: HubAddressSnapshotSchema
33595
+ });
33596
+ /**
33597
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
33598
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
33599
+ * by at most one address.
33600
+ */
33601
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
33602
+ var RoleSourceSchema = _enum([
33603
+ "flagged",
33604
+ "auto",
33605
+ "none"
33606
+ ]);
33607
+ /** One single-valued role: the flagged address, the one in use, and why. */
33608
+ var HubAddressRoleResolutionSchema = object({
33609
+ /** The address carrying the flag, or null = automatic. */
33610
+ flagged: string().nullable(),
33611
+ /** The address in use, or null when nothing qualifies (never loopback). */
33612
+ resolved: string().nullable(),
33613
+ source: RoleSourceSchema
33614
+ });
33615
+ var HubAppConnectionsResolutionSchema = object({
33616
+ /** The addresses flagged `appConnections`, or empty = automatic. */
33617
+ flagged: array(string()).readonly(),
33618
+ /** What the apps race right now. */
33619
+ resolved: array(string()).readonly(),
33620
+ source: RoleSourceSchema
33621
+ });
33622
+ var HubAddressBookSchema = object({
33623
+ rows: array(ConnectionEndpointSchema.extend({
33624
+ /** In the hub's detected palette right now. */
33625
+ detected: boolean(),
33626
+ /** Entered by the operator (removable). */
33627
+ custom: boolean(),
33628
+ /** The roles explicitly flagged on this address. */
33629
+ flags: array(HubAddressRoleSchema).readonly(),
33630
+ /** The roles this address serves right now — flagged or automatic. */
33631
+ inUse: array(HubAddressRoleSchema).readonly(),
33632
+ /** The roles this address may be flagged with. */
33633
+ eligible: array(HubAddressRoleSchema).readonly()
33634
+ })).readonly(),
33635
+ roles: object({
33636
+ appConnections: HubAppConnectionsResolutionSchema,
33637
+ notificationTaps: HubAddressRoleResolutionSchema,
33638
+ internal: HubAddressRoleResolutionSchema,
33639
+ publicEndpoint: HubAddressRoleResolutionSchema
33640
+ }),
33641
+ /** The `hub=` an app link carries (D709), or null. */
33642
+ appLinkHub: string().nullable()
33643
+ });
33070
33644
  var AllowedAddressesSchema = object({
33071
33645
  /**
33072
33646
  * Allowlist of interface addresses operators have explicitly opted
@@ -33110,10 +33684,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
33110
33684
  * tunnel always emits `https://` regardless. */
33111
33685
  scheme: _enum(["http", "https"]).optional(),
33112
33686
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
33113
- * an address notification links can be flagged with, not a hub
33687
+ * an address notification taps can be flagged with, not a hub
33114
33688
  * route. Default `false`: racers and rankers never see it. */
33115
33689
  includeAppLink: boolean().optional()
33116
- }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
33690
+ }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
33691
+ baseUrl: string(),
33692
+ label: string().max(80)
33693
+ }), HubAddressBookSchema, {
33694
+ kind: "mutation",
33695
+ auth: "admin"
33696
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
33697
+ kind: "mutation",
33698
+ auth: "admin"
33699
+ }), method(object({
33700
+ role: HubAddressRoleSchema,
33701
+ baseUrl: string().nullable(),
33702
+ enabled: boolean(),
33703
+ acceptInsecureHttp: boolean().optional()
33704
+ }), HubAddressBookSchema, {
33705
+ kind: "mutation",
33706
+ auth: "admin"
33707
+ }), method(_void(), HubAddressesSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
33117
33708
  kind: "mutation",
33118
33709
  auth: "admin"
33119
33710
  }), method(object({
@@ -39865,6 +40456,32 @@ var TotpStatusSchema = object({
39865
40456
  /** Null when no row exists OR the row is still pending confirmation. */
39866
40457
  confirmedAt: number().nullable()
39867
40458
  });
40459
+ /**
40460
+ * user-management — singleton capability for user accounts, API keys,
40461
+ * and scoped tokens.
40462
+ *
40463
+ * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
40464
+ * — the subset check on `setUserScopes` / `createScopedToken` is moot
40465
+ * because non-admins never reach these. If/when we open non-admin
40466
+ * delegation, structural caller-scope subset check goes inside the
40467
+ * provider.
40468
+ */
40469
+ var ExternalIdentitySchema = object({
40470
+ /** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
40471
+ provider: string(),
40472
+ /** The IdP's stable subject (`sub`) for this account. */
40473
+ subject: string(),
40474
+ /** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
40475
+ issuer: string(),
40476
+ userId: string(),
40477
+ /** What the IdP called the account at link time (username / email) — display only. */
40478
+ label: string().optional(),
40479
+ linkedAt: number()
40480
+ });
40481
+ var ExternalIdentityKeySchema = object({
40482
+ provider: string().min(1),
40483
+ subject: string().min(1)
40484
+ });
39868
40485
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
39869
40486
  kind: "mutation",
39870
40487
  auth: "admin",
@@ -39978,7 +40595,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
39978
40595
  userId: string(),
39979
40596
  username: string(),
39980
40597
  scopes: array(TokenScopeSchema)
39981
- }).nullable(), { access: "view" }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
40598
+ }).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
40599
+ userId: string(),
40600
+ issuer: string()
40601
+ }).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
40602
+ userId: string(),
40603
+ issuer: string().min(1),
40604
+ label: string().optional()
40605
+ }), object({ success: literal(true) }), {
40606
+ kind: "mutation",
40607
+ auth: "admin",
40608
+ access: "create"
40609
+ }), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
40610
+ kind: "mutation",
40611
+ auth: "admin",
40612
+ access: "delete"
40613
+ }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
39982
40614
  kind: "mutation",
39983
40615
  auth: "admin",
39984
40616
  access: "delete"
@@ -40680,6 +41312,16 @@ var zoneRulesCapability = {
40680
41312
  durability: "restored"
40681
41313
  };
40682
41314
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
41315
+ Object.freeze({
41316
+ person: .5,
41317
+ vehicle: .5,
41318
+ animal: .5
41319
+ });
41320
+ Object.freeze({
41321
+ person: .65,
41322
+ vehicle: .65,
41323
+ animal: .65
41324
+ });
40683
41325
  /**
40684
41326
  * Accessory device helpers — shared across drivers.
40685
41327
  *
@@ -42393,6 +43035,12 @@ Object.freeze({
42393
43035
  addonId: null,
42394
43036
  access: "view"
42395
43037
  },
43038
+ "addons.listInstallations": {
43039
+ capName: "addons",
43040
+ capScope: "system",
43041
+ addonId: null,
43042
+ access: "view"
43043
+ },
42396
43044
  "addons.listJobs": {
42397
43045
  capName: "addons",
42398
43046
  capScope: "system",
@@ -43575,90 +44223,18 @@ Object.freeze({
43575
44223
  addonId: null,
43576
44224
  access: "create"
43577
44225
  },
43578
- "decoder.createSession": {
43579
- capName: "decoder",
43580
- capScope: "system",
43581
- addonId: null,
43582
- access: "view"
43583
- },
43584
- "decoder.destroySession": {
43585
- capName: "decoder",
43586
- capScope: "system",
43587
- addonId: null,
43588
- access: "delete"
43589
- },
43590
- "decoder.getFrame": {
43591
- capName: "decoder",
43592
- capScope: "system",
43593
- addonId: null,
43594
- access: "view"
43595
- },
43596
44226
  "decoder.getInfo": {
43597
44227
  capName: "decoder",
43598
44228
  capScope: "system",
43599
44229
  addonId: null,
43600
44230
  access: "view"
43601
44231
  },
43602
- "decoder.getShmStats": {
43603
- capName: "decoder",
43604
- capScope: "system",
43605
- addonId: null,
43606
- access: "view"
43607
- },
43608
- "decoder.getStats": {
43609
- capName: "decoder",
43610
- capScope: "system",
43611
- addonId: null,
43612
- access: "view"
43613
- },
43614
- "decoder.listActiveSessions": {
43615
- capName: "decoder",
43616
- capScope: "system",
43617
- addonId: null,
43618
- access: "view"
43619
- },
43620
- "decoder.openStream": {
43621
- capName: "decoder",
43622
- capScope: "system",
43623
- addonId: null,
43624
- access: "view"
43625
- },
43626
- "decoder.pullFrames": {
43627
- capName: "decoder",
43628
- capScope: "system",
43629
- addonId: null,
43630
- access: "view"
43631
- },
43632
- "decoder.pullHandles": {
43633
- capName: "decoder",
43634
- capScope: "system",
43635
- addonId: null,
43636
- access: "view"
43637
- },
43638
- "decoder.pushPacket": {
43639
- capName: "decoder",
43640
- capScope: "system",
43641
- addonId: null,
43642
- access: "view"
43643
- },
43644
44232
  "decoder.reprobeHwaccel": {
43645
44233
  capName: "decoder",
43646
44234
  capScope: "system",
43647
44235
  addonId: null,
43648
44236
  access: "create"
43649
44237
  },
43650
- "decoder.supportsCodec": {
43651
- capName: "decoder",
43652
- capScope: "system",
43653
- addonId: null,
43654
- access: "view"
43655
- },
43656
- "decoder.updateConfig": {
43657
- capName: "decoder",
43658
- capScope: "system",
43659
- addonId: null,
43660
- access: "view"
43661
- },
43662
44238
  "detectionPipeline.applyDeviceSettingsPatch": {
43663
44239
  capName: "detection-pipeline",
43664
44240
  capScope: "device",
@@ -45147,12 +45723,24 @@ Object.freeze({
45147
45723
  addonId: null,
45148
45724
  access: "view"
45149
45725
  },
45726
+ "localNetwork.addCustomAddress": {
45727
+ capName: "local-network",
45728
+ capScope: "system",
45729
+ addonId: null,
45730
+ access: "create"
45731
+ },
45150
45732
  "localNetwork.downloadCa": {
45151
45733
  capName: "local-network",
45152
45734
  capScope: "system",
45153
45735
  addonId: null,
45154
45736
  access: "view"
45155
45737
  },
45738
+ "localNetwork.getAddresses": {
45739
+ capName: "local-network",
45740
+ capScope: "system",
45741
+ addonId: null,
45742
+ access: "view"
45743
+ },
45156
45744
  "localNetwork.getAllowedAddresses": {
45157
45745
  capName: "local-network",
45158
45746
  capScope: "system",
@@ -45165,6 +45753,12 @@ Object.freeze({
45165
45753
  addonId: null,
45166
45754
  access: "view"
45167
45755
  },
45756
+ "localNetwork.getHubAddresses": {
45757
+ capName: "local-network",
45758
+ capScope: "system",
45759
+ addonId: null,
45760
+ access: "view"
45761
+ },
45168
45762
  "localNetwork.getNotificationEndpoint": {
45169
45763
  capName: "local-network",
45170
45764
  capScope: "system",
@@ -45201,6 +45795,12 @@ Object.freeze({
45201
45795
  addonId: null,
45202
45796
  access: "create"
45203
45797
  },
45798
+ "localNetwork.removeCustomAddress": {
45799
+ capName: "local-network",
45800
+ capScope: "system",
45801
+ addonId: null,
45802
+ access: "delete"
45803
+ },
45204
45804
  "localNetwork.resetAllowlistToBestMatch": {
45205
45805
  capName: "local-network",
45206
45806
  capScope: "system",
@@ -45213,6 +45813,12 @@ Object.freeze({
45213
45813
  addonId: null,
45214
45814
  access: "create"
45215
45815
  },
45816
+ "localNetwork.setAddressRole": {
45817
+ capName: "local-network",
45818
+ capScope: "system",
45819
+ addonId: null,
45820
+ access: "create"
45821
+ },
45216
45822
  "localNetwork.setAllowedAddresses": {
45217
45823
  capName: "local-network",
45218
45824
  capScope: "system",
@@ -46659,6 +47265,12 @@ Object.freeze({
46659
47265
  addonId: null,
46660
47266
  access: "create"
46661
47267
  },
47268
+ "pipelineAnalytics.setRetrainFrameComplete": {
47269
+ capName: "pipeline-analytics",
47270
+ capScope: "device",
47271
+ addonId: null,
47272
+ access: "create"
47273
+ },
46662
47274
  "pipelineAnalytics.setTrackFlags": {
46663
47275
  capName: "pipeline-analytics",
46664
47276
  capScope: "device",
@@ -46695,6 +47307,12 @@ Object.freeze({
46695
47307
  addonId: null,
46696
47308
  access: "delete"
46697
47309
  },
47310
+ "pipelineAnalytics.writeRetrainArchive": {
47311
+ capName: "pipeline-analytics",
47312
+ capScope: "device",
47313
+ addonId: null,
47314
+ access: "create"
47315
+ },
46698
47316
  "pipelineExecutor.cacheFrameInPool": {
46699
47317
  capName: "pipeline-executor",
46700
47318
  capScope: "system",
@@ -46707,13 +47325,13 @@ Object.freeze({
46707
47325
  addonId: null,
46708
47326
  access: "delete"
46709
47327
  },
46710
- "pipelineExecutor.deleteModel": {
47328
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
46711
47329
  capName: "pipeline-executor",
46712
47330
  capScope: "system",
46713
47331
  addonId: null,
46714
47332
  access: "delete"
46715
47333
  },
46716
- "pipelineExecutor.deleteTemplate": {
47334
+ "pipelineExecutor.deleteModel": {
46717
47335
  capName: "pipeline-executor",
46718
47336
  capScope: "system",
46719
47337
  addonId: null,
@@ -46857,12 +47475,6 @@ Object.freeze({
46857
47475
  addonId: null,
46858
47476
  access: "view"
46859
47477
  },
46860
- "pipelineExecutor.listTemplates": {
46861
- capName: "pipeline-executor",
46862
- capScope: "system",
46863
- addonId: null,
46864
- access: "view"
46865
- },
46866
47478
  "pipelineExecutor.rearmInferenceDevice": {
46867
47479
  capName: "pipeline-executor",
46868
47480
  capScope: "system",
@@ -46887,12 +47499,6 @@ Object.freeze({
46887
47499
  addonId: null,
46888
47500
  access: "create"
46889
47501
  },
46890
- "pipelineExecutor.saveTemplate": {
46891
- capName: "pipeline-executor",
46892
- capScope: "system",
46893
- addonId: null,
46894
- access: "create"
46895
- },
46896
47502
  "pipelineExecutor.setVideoPipelineSteps": {
46897
47503
  capName: "pipeline-executor",
46898
47504
  capScope: "system",
@@ -46911,41 +47517,35 @@ Object.freeze({
46911
47517
  addonId: null,
46912
47518
  access: "create"
46913
47519
  },
46914
- "pipelineExecutor.updateTemplate": {
46915
- capName: "pipeline-executor",
46916
- capScope: "system",
46917
- addonId: null,
46918
- access: "create"
46919
- },
46920
47520
  "pipelineExecutor.validatePipeline": {
46921
47521
  capName: "pipeline-executor",
46922
47522
  capScope: "system",
46923
47523
  addonId: null,
46924
47524
  access: "view"
46925
47525
  },
46926
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
47526
+ "pipelineOrchestrator.applyAutoTune": {
46927
47527
  capName: "pipeline-orchestrator",
46928
47528
  capScope: "system",
46929
47529
  addonId: null,
46930
47530
  access: "create"
46931
47531
  },
46932
- "pipelineOrchestrator.assignAudio": {
47532
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
46933
47533
  capName: "pipeline-orchestrator",
46934
47534
  capScope: "system",
46935
47535
  addonId: null,
46936
47536
  access: "create"
46937
47537
  },
46938
- "pipelineOrchestrator.assignPipeline": {
47538
+ "pipelineOrchestrator.assignAudio": {
46939
47539
  capName: "pipeline-orchestrator",
46940
47540
  capScope: "system",
46941
47541
  addonId: null,
46942
47542
  access: "create"
46943
47543
  },
46944
- "pipelineOrchestrator.deleteTemplate": {
47544
+ "pipelineOrchestrator.assignPipeline": {
46945
47545
  capName: "pipeline-orchestrator",
46946
47546
  capScope: "system",
46947
47547
  addonId: null,
46948
- access: "delete"
47548
+ access: "create"
46949
47549
  },
46950
47550
  "pipelineOrchestrator.getAgentLoad": {
46951
47551
  capName: "pipeline-orchestrator",
@@ -47037,6 +47637,12 @@ Object.freeze({
47037
47637
  addonId: null,
47038
47638
  access: "view"
47039
47639
  },
47640
+ "pipelineOrchestrator.getEffectiveShares": {
47641
+ capName: "pipeline-orchestrator",
47642
+ capScope: "system",
47643
+ addonId: null,
47644
+ access: "view"
47645
+ },
47040
47646
  "pipelineOrchestrator.getGlobalMetrics": {
47041
47647
  capName: "pipeline-orchestrator",
47042
47648
  capScope: "system",
@@ -47073,19 +47679,19 @@ Object.freeze({
47073
47679
  addonId: null,
47074
47680
  access: "view"
47075
47681
  },
47076
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
47682
+ "pipelineOrchestrator.getPlacementStats": {
47077
47683
  capName: "pipeline-orchestrator",
47078
47684
  capScope: "system",
47079
47685
  addonId: null,
47080
47686
  access: "view"
47081
47687
  },
47082
- "pipelineOrchestrator.listAgentSettings": {
47688
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
47083
47689
  capName: "pipeline-orchestrator",
47084
47690
  capScope: "system",
47085
47691
  addonId: null,
47086
47692
  access: "view"
47087
47693
  },
47088
- "pipelineOrchestrator.listTemplates": {
47694
+ "pipelineOrchestrator.listAgentSettings": {
47089
47695
  capName: "pipeline-orchestrator",
47090
47696
  capScope: "system",
47091
47697
  addonId: null,
@@ -47097,6 +47703,12 @@ Object.freeze({
47097
47703
  addonId: null,
47098
47704
  access: "create"
47099
47705
  },
47706
+ "pipelineOrchestrator.planAutoTune": {
47707
+ capName: "pipeline-orchestrator",
47708
+ capScope: "system",
47709
+ addonId: null,
47710
+ access: "view"
47711
+ },
47100
47712
  "pipelineOrchestrator.rebalance": {
47101
47713
  capName: "pipeline-orchestrator",
47102
47714
  capScope: "system",
@@ -47139,12 +47751,6 @@ Object.freeze({
47139
47751
  addonId: null,
47140
47752
  access: "create"
47141
47753
  },
47142
- "pipelineOrchestrator.saveTemplate": {
47143
- capName: "pipeline-orchestrator",
47144
- capScope: "system",
47145
- addonId: null,
47146
- access: "create"
47147
- },
47148
47754
  "pipelineOrchestrator.setAgentCapabilities": {
47149
47755
  capName: "pipeline-orchestrator",
47150
47756
  capScope: "system",
@@ -47157,12 +47763,6 @@ Object.freeze({
47157
47763
  addonId: null,
47158
47764
  access: "create"
47159
47765
  },
47160
- "pipelineOrchestrator.setAgentDetectWeight": {
47161
- capName: "pipeline-orchestrator",
47162
- capScope: "system",
47163
- addonId: null,
47164
- access: "create"
47165
- },
47166
47766
  "pipelineOrchestrator.setAgentInferenceDevices": {
47167
47767
  capName: "pipeline-orchestrator",
47168
47768
  capScope: "system",
@@ -47199,6 +47799,12 @@ Object.freeze({
47199
47799
  addonId: null,
47200
47800
  access: "create"
47201
47801
  },
47802
+ "pipelineOrchestrator.setCameraStepSettings": {
47803
+ capName: "pipeline-orchestrator",
47804
+ capScope: "system",
47805
+ addonId: null,
47806
+ access: "create"
47807
+ },
47202
47808
  "pipelineOrchestrator.setCameraStepToggle": {
47203
47809
  capName: "pipeline-orchestrator",
47204
47810
  capScope: "system",
@@ -47217,25 +47823,37 @@ Object.freeze({
47217
47823
  addonId: null,
47218
47824
  access: "create"
47219
47825
  },
47826
+ "pipelineOrchestrator.setLoadBalancingShares": {
47827
+ capName: "pipeline-orchestrator",
47828
+ capScope: "system",
47829
+ addonId: null,
47830
+ access: "create"
47831
+ },
47220
47832
  "pipelineOrchestrator.setPipelineDevicePin": {
47221
47833
  capName: "pipeline-orchestrator",
47222
47834
  capScope: "system",
47223
47835
  addonId: null,
47224
47836
  access: "create"
47225
47837
  },
47226
- "pipelineOrchestrator.unassignAudio": {
47838
+ "pipelineOrchestrator.setShareSource": {
47227
47839
  capName: "pipeline-orchestrator",
47228
47840
  capScope: "system",
47229
47841
  addonId: null,
47230
47842
  access: "create"
47231
47843
  },
47232
- "pipelineOrchestrator.unassignPipeline": {
47844
+ "pipelineOrchestrator.suggestShares": {
47845
+ capName: "pipeline-orchestrator",
47846
+ capScope: "system",
47847
+ addonId: null,
47848
+ access: "view"
47849
+ },
47850
+ "pipelineOrchestrator.unassignAudio": {
47233
47851
  capName: "pipeline-orchestrator",
47234
47852
  capScope: "system",
47235
47853
  addonId: null,
47236
47854
  access: "create"
47237
47855
  },
47238
- "pipelineOrchestrator.updateTemplate": {
47856
+ "pipelineOrchestrator.unassignPipeline": {
47239
47857
  capName: "pipeline-orchestrator",
47240
47858
  capScope: "system",
47241
47859
  addonId: null,
@@ -48675,12 +49293,6 @@ Object.freeze({
48675
49293
  addonId: null,
48676
49294
  access: "view"
48677
49295
  },
48678
- "streamBroker.pullFrameHandles": {
48679
- capName: "stream-broker",
48680
- capScope: "system",
48681
- addonId: null,
48682
- access: "view"
48683
- },
48684
49296
  "streamBroker.regenerateRtspToken": {
48685
49297
  capName: "stream-broker",
48686
49298
  capScope: "system",
@@ -48747,12 +49359,6 @@ Object.freeze({
48747
49359
  addonId: null,
48748
49360
  access: "create"
48749
49361
  },
48750
- "streamBroker.subscribeFrames": {
48751
- capName: "stream-broker",
48752
- capScope: "system",
48753
- addonId: null,
48754
- access: "create"
48755
- },
48756
49362
  "streamBroker.unassignProfile": {
48757
49363
  capName: "stream-broker",
48758
49364
  capScope: "system",
@@ -48765,12 +49371,6 @@ Object.freeze({
48765
49371
  addonId: null,
48766
49372
  access: "create"
48767
49373
  },
48768
- "streamBroker.unsubscribeFrames": {
48769
- capName: "stream-broker",
48770
- capScope: "system",
48771
- addonId: null,
48772
- access: "create"
48773
- },
48774
49374
  "streamCatalog.getCatalog": {
48775
49375
  capName: "stream-catalog",
48776
49376
  capScope: "device",
@@ -49065,18 +49665,36 @@ Object.freeze({
49065
49665
  addonId: null,
49066
49666
  access: "delete"
49067
49667
  },
49668
+ "userManagement.findUserByExternalIdentity": {
49669
+ capName: "user-management",
49670
+ capScope: "system",
49671
+ addonId: null,
49672
+ access: "view"
49673
+ },
49068
49674
  "userManagement.getTotpStatus": {
49069
49675
  capName: "user-management",
49070
49676
  capScope: "system",
49071
49677
  addonId: null,
49072
49678
  access: "view"
49073
49679
  },
49680
+ "userManagement.linkExternalIdentity": {
49681
+ capName: "user-management",
49682
+ capScope: "system",
49683
+ addonId: null,
49684
+ access: "create"
49685
+ },
49074
49686
  "userManagement.listApiKeys": {
49075
49687
  capName: "user-management",
49076
49688
  capScope: "system",
49077
49689
  addonId: null,
49078
49690
  access: "view"
49079
49691
  },
49692
+ "userManagement.listExternalIdentities": {
49693
+ capName: "user-management",
49694
+ capScope: "system",
49695
+ addonId: null,
49696
+ access: "view"
49697
+ },
49080
49698
  "userManagement.listOauthSessions": {
49081
49699
  capName: "user-management",
49082
49700
  capScope: "system",
@@ -49155,6 +49773,12 @@ Object.freeze({
49155
49773
  addonId: null,
49156
49774
  access: "create"
49157
49775
  },
49776
+ "userManagement.unlinkExternalIdentity": {
49777
+ capName: "user-management",
49778
+ capScope: "system",
49779
+ addonId: null,
49780
+ access: "delete"
49781
+ },
49158
49782
  "userManagement.updateUser": {
49159
49783
  capName: "user-management",
49160
49784
  capScope: "system",
@@ -49467,6 +50091,12 @@ Object.freeze({
49467
50091
  addonId: null,
49468
50092
  access: "create"
49469
50093
  },
50094
+ "webrtcSession.applyDownlinkProbe": {
50095
+ capName: "webrtc-session",
50096
+ capScope: "device",
50097
+ addonId: null,
50098
+ access: "create"
50099
+ },
49470
50100
  "webrtcSession.closeSession": {
49471
50101
  capName: "webrtc-session",
49472
50102
  capScope: "device",
@@ -51496,11 +52126,6 @@ Object.freeze({
51496
52126
  form: "single",
51497
52127
  optional: false
51498
52128
  }],
51499
- "decoder.createSession": [{
51500
- name: "deviceId",
51501
- form: "single",
51502
- optional: true
51503
- }],
51504
52129
  "detectionPipeline.applyDeviceSettingsPatch": [{
51505
52130
  name: "deviceId",
51506
52131
  form: "single",
@@ -52711,6 +53336,11 @@ Object.freeze({
52711
53336
  form: "single",
52712
53337
  optional: false
52713
53338
  }],
53339
+ "pipelineAnalytics.setRetrainFrameComplete": [{
53340
+ name: "deviceId",
53341
+ form: "single",
53342
+ optional: false
53343
+ }],
52714
53344
  "pipelineAnalytics.setTrackFlags": [{
52715
53345
  name: "deviceId",
52716
53346
  form: "single",
@@ -52731,6 +53361,11 @@ Object.freeze({
52731
53361
  form: "single",
52732
53362
  optional: false
52733
53363
  }],
53364
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
53365
+ name: "deviceIds",
53366
+ form: "array",
53367
+ optional: true
53368
+ }],
52734
53369
  "pipelineExecutor.runPipeline": [{
52735
53370
  name: "deviceId",
52736
53371
  form: "single",
@@ -52836,6 +53471,11 @@ Object.freeze({
52836
53471
  form: "single",
52837
53472
  optional: false
52838
53473
  }],
53474
+ "pipelineOrchestrator.setCameraStepSettings": [{
53475
+ name: "deviceId",
53476
+ form: "single",
53477
+ optional: false
53478
+ }],
52839
53479
  "pipelineOrchestrator.setCameraStepToggle": [{
52840
53480
  name: "deviceId",
52841
53481
  form: "single",
@@ -53607,6 +54247,11 @@ Object.freeze({
53607
54247
  form: "single",
53608
54248
  optional: false
53609
54249
  }],
54250
+ "webrtcSession.applyDownlinkProbe": [{
54251
+ name: "deviceId",
54252
+ form: "single",
54253
+ optional: false
54254
+ }],
53610
54255
  "webrtcSession.closeSession": [{
53611
54256
  name: "deviceId",
53612
54257
  form: "single",
@@ -54140,7 +54785,7 @@ var STATE_SUMMARY_VARS = [
54140
54785
  {
54141
54786
  name: "summarySection",
54142
54787
  label: "Summary: this section",
54143
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
54788
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
54144
54789
  example: "Batterie scariche",
54145
54790
  group: "system",
54146
54791
  families: ["rule"],
@@ -55656,7 +56301,7 @@ function createClipStreamHandler(deps) {
55656
56301
  * Node-only (`node:child_process`), so it lives under `@camstack/types/node`.
55657
56302
  */
55658
56303
  /** The detail a site refusing for want of a binary puts in its refusal. */
55659
- var NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node (D540)";
56304
+ var NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node";
55660
56305
  /**
55661
56306
  * {@link pinnedFfmpegSpawner}, asked at the point of use through the node's
55662
56307
  * resolver (`memoizePinnedFfmpeg`). A site that keeps the RESOLVER rather than
@@ -58281,7 +58926,7 @@ var hikvisionCameraSchema = object({
58281
58926
  */
58282
58927
  https: boolean().default(false),
58283
58928
  username: string().default("admin").describe("ISAPI user"),
58284
- password: string().describe("ISAPI password"),
58929
+ password: string().describe("ISAPI password").meta({ secret: true }),
58285
58930
  /**
58286
58931
  * RTSP transport hint forwarded to the broker as `transportmode`.
58287
58932
  * Most installations use `unicast`; multicast needs explicit