@camstack/addon-provider-amcrest 0.2.131 → 0.2.132

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
@@ -13,7 +13,7 @@ import { networkInterfaces } from "node:os";
13
13
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
14
14
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
15
15
  //#endregion
16
- //#region ../types/dist/event-category-BGmz_oxW.mjs
16
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
17
17
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
18
18
  EventCategory["SystemBoot"] = "system.boot";
19
19
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -514,15 +514,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
514
514
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
515
515
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
516
516
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
517
- /**
518
- * Per-agent hwaccel preference changed (user override set, cleared, or
519
- * re-probed). Observability event — decoders pull the current pref at
520
- * `createSession`, so running sessions keep their current backend until
521
- * they rotate naturally (camera add/remove, stream restart). Future
522
- * work can wire a listener in stream-broker that force-rotates live
523
- * sessions; for now this event powers logs + admin-UI toast feedback.
524
- */
525
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
526
517
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
527
518
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
528
519
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5393,7 +5384,7 @@ var ZodIssueCode = {
5393
5384
  var ZodFirstPartyTypeKind;
5394
5385
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5395
5386
  //#endregion
5396
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5387
+ //#region ../types/dist/sleep-B0JG7-_F.mjs
5397
5388
  /**
5398
5389
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5399
5390
  * window to float samples (D455).
@@ -6759,32 +6750,12 @@ object({
6759
6750
  audioCodec: string().optional(),
6760
6751
  metadata: record(string(), unknown()).readonly().optional()
6761
6752
  });
6762
- var EncodedPacketSchema = object({
6763
- type: _enum(["video", "audio"]),
6764
- data: _instanceof(Uint8Array),
6765
- pts: number(),
6766
- dts: number(),
6767
- keyframe: boolean(),
6768
- codec: string()
6769
- });
6770
- var DecodedFrameSchema = object({
6771
- data: _instanceof(Uint8Array),
6772
- width: number(),
6773
- height: number(),
6774
- format: _enum([
6775
- "jpeg",
6776
- "rgb",
6777
- "bgr",
6778
- "yuv420",
6779
- "gray"
6780
- ]),
6781
- timestamp: number()
6782
- });
6783
6753
  /**
6784
6754
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6785
6755
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6786
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6787
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6756
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6757
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6758
+ * over tRPC / Moleculer.
6788
6759
  *
6789
6760
  * The `satisfies` assertion below pins this schema to the interface: if a
6790
6761
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6810,50 +6781,6 @@ var FrameHandleSchema = object({
6810
6781
  slotCount: number().int().positive()
6811
6782
  });
6812
6783
  /**
6813
- * Pixel format a frame-handle subscriber can request from the broker
6814
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6815
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6816
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6817
- * payload, and no decoded-frame consumer requests it over the shm plane.
6818
- */
6819
- var FrameHandleFormatSchema = _enum([
6820
- "rgb",
6821
- "bgr",
6822
- "yuv420",
6823
- "gray"
6824
- ]);
6825
- /**
6826
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6827
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6828
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6829
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6830
- * they asked for with no broker-side conversion.
6831
- */
6832
- var SubscribeFramesInputSchema = object({
6833
- brokerId: string(),
6834
- format: FrameHandleFormatSchema,
6835
- /**
6836
- * Optional reader-side cadence hint in frames per second. The broker does
6837
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6838
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6839
- * the consumer can pace its own `pullFrameHandles` polling.
6840
- */
6841
- maxFps: number().positive().optional(),
6842
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6843
- tag: string().optional()
6844
- });
6845
- /**
6846
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6847
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6848
- * `FrameHandle` to a `FrameRingReader`.
6849
- */
6850
- var SubscribeFramesResultSchema = object({
6851
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6852
- subscriptionId: string(),
6853
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6854
- maxFps: number().nonnegative()
6855
- });
6856
- /**
6857
6784
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6858
6785
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6859
6786
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6861,8 +6788,8 @@ var SubscribeFramesResultSchema = object({
6861
6788
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6862
6789
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6863
6790
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6864
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6865
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6791
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6792
+ * it.
6866
6793
  */
6867
6794
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6868
6795
  var DecodedAudioChunkSchema = object({
@@ -6880,11 +6807,10 @@ var DecodedAudioChunkSchema = object({
6880
6807
  format: AudioChunkFormatSchema.optional()
6881
6808
  });
6882
6809
  /**
6883
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6884
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6885
- * asks the broker for the decoded audio-chunk stream of one broker; the
6886
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6887
- * `pullAudioChunks`.
6810
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6811
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6812
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6813
+ * the consumer drains via `pullAudioChunks`.
6888
6814
  */
6889
6815
  var SubscribeAudioChunksInputSchema = object({
6890
6816
  brokerId: string(),
@@ -6915,9 +6841,7 @@ var BrokerStatsSchema = object({
6915
6841
  "stopped"
6916
6842
  ]),
6917
6843
  inputFps: number(),
6918
- decodeFps: number(),
6919
6844
  encodedSubscribers: number(),
6920
- decodedSubscribers: number(),
6921
6845
  uptimeMs: number(),
6922
6846
  bitrateKbps: number(),
6923
6847
  idrIntervalMs: number(),
@@ -6930,14 +6854,6 @@ var BrokerStatsSchema = object({
6930
6854
  preBufferMs: number(),
6931
6855
  preBufferPackets: number(),
6932
6856
  /**
6933
- * Moleculer node id of the decoder provider currently servicing this
6934
- * stream's decoded subscribers. `null` until the deferred decoder is
6935
- * created (no decoded clients yet, or codec not detected). Surfaces the
6936
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6937
- * a separate cap call per broker.
6938
- */
6939
- decoderNodeId: string().nullable(),
6940
- /**
6941
6857
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6942
6858
  * when the stream has no audio track or the broker is in cold start.
6943
6859
  * `supported = false` means the codec was detected but the local
@@ -10283,70 +10199,6 @@ var StorageLocationDeclarationSchema = object({
10283
10199
  "backup"
10284
10200
  ]).optional()
10285
10201
  });
10286
- var DecoderStatsSchema = object({
10287
- inputFps: number(),
10288
- outputFps: number(),
10289
- avgDecodeTimeMs: number(),
10290
- droppedFrames: number(),
10291
- /**
10292
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10293
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10294
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10295
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10296
- */
10297
- lagMs: number().optional(),
10298
- effectiveFps: number().optional(),
10299
- adaptiveFps: number().optional()
10300
- });
10301
- var DecoderSessionConfigSchema = object({
10302
- codec: string(),
10303
- maxFps: number().default(0),
10304
- outputFormat: _enum([
10305
- "jpeg",
10306
- "rgb",
10307
- "bgr",
10308
- "yuv420",
10309
- "gray"
10310
- ]).default("jpeg"),
10311
- scale: number().default(1),
10312
- width: number().optional(),
10313
- height: number().optional(),
10314
- /**
10315
- * Identifier of the camera this decoder session serves. Optional
10316
- * because the cap is generic (any caller could request decode), but
10317
- * stream-broker passes it so decoder logs include `deviceId` for
10318
- * per-camera filtering when diagnosing failures (e.g. node-av
10319
- * sendPacket errors on a single hung camera).
10320
- */
10321
- deviceId: number().int().nonnegative().optional(),
10322
- /**
10323
- * Free-form tag for log scoping. Stream-broker uses
10324
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10325
- * on every line so `grep tag=broker:5/high` filters one camera
10326
- * profile cleanly.
10327
- */
10328
- tag: string().optional(),
10329
- /**
10330
- * Where the session delivers decoded frames (Phase 5 / D9):
10331
- *
10332
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10333
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10334
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10335
- * into an OS shared-memory ring and drained as zero-pixel
10336
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10337
- * other — `pullFrames` returns nothing for an `'shm'` session and
10338
- * `pullHandles` returns nothing for a `'callback'` session.
10339
- */
10340
- frameSink: _enum(["callback", "shm"]).default("callback"),
10341
- /**
10342
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10343
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10344
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10345
- * stream-broker's `streamingDebug` gate — off by default so production logs
10346
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10347
- */
10348
- debug: boolean().optional()
10349
- });
10350
10202
  /**
10351
10203
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10352
10204
  * an addon declares its channels in.
@@ -10489,57 +10341,26 @@ var ClipSearchStrictnessSchema = _enum([
10489
10341
  "balanced",
10490
10342
  "strict"
10491
10343
  ]);
10492
- new Set([
10493
- {
10494
- id: "person",
10495
- name: "Person"
10496
- },
10497
- {
10498
- id: "vehicle",
10499
- name: "Vehicle"
10500
- },
10501
- {
10502
- id: "animal",
10503
- name: "Animal"
10504
- },
10505
- {
10506
- id: "package",
10507
- name: "Package"
10508
- }
10509
- ].map((l) => l.id));
10510
- var COCO_TO_MACRO = {
10511
- mapping: {
10512
- person: "person",
10513
- bicycle: "vehicle",
10514
- car: "vehicle",
10515
- motorcycle: "vehicle",
10516
- airplane: "vehicle",
10517
- bus: "vehicle",
10518
- train: "vehicle",
10519
- truck: "vehicle",
10520
- boat: "vehicle",
10521
- bird: "animal",
10522
- cat: "animal",
10523
- dog: "animal",
10524
- horse: "animal",
10525
- sheep: "animal",
10526
- cow: "animal",
10527
- elephant: "animal",
10528
- bear: "animal",
10529
- zebra: "animal",
10530
- giraffe: "animal",
10531
- suitcase: "package",
10532
- backpack: "package",
10533
- handbag: "package"
10534
- },
10535
- preserveOriginal: false
10536
- };
10537
- /** Steps a root detector may declare it fills. */
10538
- var FILLABLE_STEP_IDS = [
10344
+ /** Steps whose effect a root label can BE. */
10345
+ var LABEL_SUPPLY_STEP_IDS = [
10539
10346
  "animal-classifier",
10540
10347
  "vehicle-classifier",
10541
10348
  "package-detection"
10542
10349
  ];
10350
+ /** Steps whose box a root detection can BE. */
10351
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10352
+ /**
10353
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10354
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10355
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10356
+ * no camera tree carries.)
10357
+ */
10358
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10359
+ [
10360
+ ...LABEL_SUPPLY_STEP_IDS,
10361
+ ...CROP_SUPPLY_STEP_IDS,
10362
+ ...MASK_SUPPLY_STEP_IDS
10363
+ ];
10543
10364
  var MODEL_FORMATS = [
10544
10365
  "onnx",
10545
10366
  "coreml",
@@ -10568,7 +10389,53 @@ var ModelFormatEntrySchema = object({
10568
10389
  /** Multi-file payload (directory members or sibling files). */
10569
10390
  files: array(string()).readonly().optional(),
10570
10391
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10571
- runtimes: array(_enum(["python"])).readonly().optional()
10392
+ runtimes: array(_enum(["python"])).readonly().optional(),
10393
+ /**
10394
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10395
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10396
+ * weight file) comes from the downloader's generated table, kept in step
10397
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10398
+ * node records the revision it downloaded next to the file
10399
+ * (`<file>.revision`); a copy with no record or a different one is stale
10400
+ * unless its weight file hashes to the revision, and a stale copy is
10401
+ * downloaded again, the old one serving until the new one is complete. No
10402
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10403
+ */
10404
+ revision: string().min(1).optional()
10405
+ });
10406
+ /**
10407
+ * What a node holds for one (model, format) (D746). `current` is a complete
10408
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10409
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10410
+ * no or a different revision record, or a missing sibling. `missing` is no
10411
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10412
+ * reclaimable bytes and a copy about to be replaced.
10413
+ */
10414
+ var ModelOnDiskStateSchema = _enum([
10415
+ "current",
10416
+ "stale",
10417
+ "missing"
10418
+ ]);
10419
+ /**
10420
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10421
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10422
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10423
+ */
10424
+ var ModelFormatPrecisionSchema = _enum([
10425
+ "fp32",
10426
+ "fp16",
10427
+ "int8"
10428
+ ]);
10429
+ /**
10430
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10431
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10432
+ * them omits them, and a reader falls back to `downloaded`.
10433
+ */
10434
+ var PipelineModelFormatStatusSchema = object({
10435
+ downloaded: boolean(),
10436
+ sizeMB: number(),
10437
+ onDisk: ModelOnDiskStateSchema.optional(),
10438
+ precision: ModelFormatPrecisionSchema.optional()
10572
10439
  });
10573
10440
  /**
10574
10441
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10672,12 +10539,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10672
10539
  /** True when the weights or their data forbid commercial use. */
10673
10540
  nonCommercial: boolean().optional()
10674
10541
  }));
10675
- /** One `fillsClassifierEffects` entry — see `ModelCatalogEntry.fillsClassifierEffects`. */
10676
- var FillsClassifierEffectSchema = object({
10677
- stepId: _enum(FILLABLE_STEP_IDS),
10678
- labelToEffect: record(string(), string()),
10679
- uncovered: array(string()).readonly()
10680
- });
10542
+ /**
10543
+ * One step a ROOT detector can supply from its own output (D730) — see
10544
+ * `ModelCatalogEntry.suppliesSteps`.
10545
+ *
10546
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10547
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10548
+ * the root cannot produce (shown as unavailable, never a blocker).
10549
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10550
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10551
+ * child of the `parentMacro` detection that contains it — never a track.
10552
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10553
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10554
+ * detection in the shape that step produces. Derived from the model's
10555
+ * postprocessor on read, never stored by an import.
10556
+ */
10557
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10558
+ object({
10559
+ kind: literal("label"),
10560
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10561
+ labelToEffect: record(string(), string()),
10562
+ uncovered: array(string()).readonly()
10563
+ }),
10564
+ object({
10565
+ kind: literal("crop"),
10566
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10567
+ rootLabels: array(string()).readonly(),
10568
+ parentMacro: _enum(["vehicle", "person"]),
10569
+ childClass: _enum(["plate", "face"]),
10570
+ /**
10571
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10572
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10573
+ * stored by an import.
10574
+ */
10575
+ rootInputPx: number().int().positive().optional()
10576
+ }),
10577
+ object({
10578
+ kind: literal("mask"),
10579
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10580
+ })
10581
+ ]);
10681
10582
  var ModelCatalogEntrySchema = object({
10682
10583
  id: string(),
10683
10584
  name: string(),
@@ -10743,6 +10644,35 @@ var ModelCatalogEntrySchema = object({
10743
10644
  */
10744
10645
  defaultConfidence: number().min(0).max(1).optional(),
10745
10646
  /**
10647
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10648
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10649
+ * absent here runs at the step slider's global default. The same row shape
10650
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10651
+ * a measured table is copied in as-is. An operator override is bound to the
10652
+ * model it was made for and does not survive a model change (D738). A custom
10653
+ * / imported model may declare it; without it, the global defaults apply.
10654
+ */
10655
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10656
+ /**
10657
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10658
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10659
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10660
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10661
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10662
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10663
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10664
+ */
10665
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10666
+ /**
10667
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10668
+ * minimum DETECTION score from which this root's own fine label (species,
10669
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10670
+ * keeps its macro class without the fine label. `1` = never take it from
10671
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10672
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10673
+ */
10674
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10675
+ /**
10746
10676
  * When true, the executor produces a landmark-aligned crop (similarity warp
10747
10677
  * onto the canonical template) before this step runs, instead of a plain
10748
10678
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10804,15 +10734,15 @@ var ModelCatalogEntrySchema = object({
10804
10734
  */
10805
10735
  classMap: DetectionCatalogClassMapSchema.optional(),
10806
10736
  /**
10807
- * The pipeline steps this ROOT detector already does the work of (D715):
10808
- * its labels name the effect the step exists to produce (`deer` for
10809
- * `animal-classifier`, `package` for `package-detection`). Derived from the
10810
- * labelmap by `deriveClassifierFills`, never hand-written; a COCO model
10811
- * declares none. Whether a declaration is honoured is the step's own
10812
- * `labelLink` policy (`resolveLabelLink`). `labelToEffect` values are in
10813
- * `FILLABLE_STEP_VOCABULARIES` (guard `check-label-link-vocabulary`).
10737
+ * The pipeline steps this ROOT detector can supply from its own output
10738
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10739
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10740
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10741
+ * by hand and never assumed per family; a row without it is derived on read
10742
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10743
+ * `useRootModel` flag (`resolveRootSupply`).
10814
10744
  */
10815
- fillsClassifierEffects: array(FillsClassifierEffectSchema).readonly().optional(),
10745
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10816
10746
  /**
10817
10747
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10818
10748
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
@@ -12415,13 +12345,6 @@ var BrokerRtspClientSchema = object({
12415
12345
  lastRtpAt: number(),
12416
12346
  bytesSent: number()
12417
12347
  });
12418
- var BrokerDecodedClientSchema = object({
12419
- tag: string(),
12420
- subscribedAt: number(),
12421
- maxFps: number(),
12422
- framesDelivered: number(),
12423
- framesDropped: number()
12424
- });
12425
12348
  var BrokerAudioClientSchema = object({
12426
12349
  tag: string(),
12427
12350
  subscribedAt: number(),
@@ -12513,7 +12436,6 @@ var BrokerEncodedClientSchema = object({
12513
12436
  });
12514
12437
  var BrokerClientsSchema = object({
12515
12438
  rtsp: array(BrokerRtspClientSchema).readonly(),
12516
- decoded: array(BrokerDecodedClientSchema).readonly(),
12517
12439
  audio: array(BrokerAudioClientSchema).readonly(),
12518
12440
  encoded: array(BrokerEncodedClientSchema).readonly(),
12519
12441
  pipeClients: number(),
@@ -12882,11 +12804,7 @@ method(object({
12882
12804
  auth: "admin"
12883
12805
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12884
12806
  brokerId: string(),
12885
- channel: _enum([
12886
- "rtsp",
12887
- "decoded",
12888
- "audio"
12889
- ]),
12807
+ channel: _enum(["rtsp", "audio"]),
12890
12808
  handle: string()
12891
12809
  }), object({ killed: boolean() }), {
12892
12810
  kind: "mutation",
@@ -12921,10 +12839,7 @@ method(object({
12921
12839
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12922
12840
  subscriptionId: string(),
12923
12841
  maxCount: number().int().positive().default(8)
12924
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12925
- subscriptionId: string(),
12926
- maxCount: number().int().positive().default(4)
12927
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12842
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12928
12843
  brokerId: string(),
12929
12844
  seconds: number().min(0).max(30)
12930
12845
  }), _void(), {
@@ -14183,54 +14098,12 @@ id: union([string(), number()]) }), {
14183
14098
  kind: "mutation",
14184
14099
  auth: "admin"
14185
14100
  });
14186
- /**
14187
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14188
- * exposed via `decoder.getShmStats` so downstream consumers can
14189
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14190
- */
14191
- var ShmRingStatsSchema = object({
14192
- sessionId: string(),
14193
- slotCount: number().int(),
14194
- slotByteLength: number().int(),
14195
- segmentBytes: number().int(),
14196
- budgetMb: number().int(),
14197
- framesWritten: number().int(),
14198
- getFrameHits: number().int(),
14199
- getFrameMisses: number().int()
14200
- });
14201
- method(object({ codec: string() }), boolean()), method(_void(), object({
14101
+ method(_void(), object({
14202
14102
  id: string(),
14203
14103
  name: string(),
14204
- isPullMode: boolean().optional(),
14205
- priority: number().optional(),
14206
14104
  hwaccel: string().optional(),
14207
14105
  probedBestHwaccel: string().optional()
14208
- })), method(DecoderSessionConfigSchema, object({
14209
- sessionId: string(),
14210
- nodeId: string()
14211
- })), method(object({ sessionId: string() }), _void()), method(object({
14212
- sessionId: string(),
14213
- packet: EncodedPacketSchema
14214
- }), _void()), method(object({
14215
- sessionId: string(),
14216
- url: string()
14217
- }), _void()), method(object({
14218
- sessionId: string(),
14219
- maxCount: number().default(1),
14220
- waitMs: number().optional()
14221
- }), array(DecodedFrameSchema)), method(object({
14222
- sessionId: string(),
14223
- maxCount: number().default(1),
14224
- waitMs: number().optional()
14225
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14226
- sessionId: string(),
14227
- config: DecoderSessionConfigSchema.partial()
14228
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14229
- sessionId: string(),
14230
- codec: string(),
14231
- outputFormat: string(),
14232
- createdAtMs: number()
14233
- })).readonly()), method(_void(), object({ backend: string() }), {
14106
+ })), method(_void(), object({ backend: string() }), {
14234
14107
  kind: "mutation",
14235
14108
  auth: "admin"
14236
14109
  });
@@ -15343,6 +15216,10 @@ var DeviceInfoSchema = object({
15343
15216
  isCamera: boolean(),
15344
15217
  /** Current config values — serializable snapshot */
15345
15218
  config: record(string(), unknown()),
15219
+ /** Paths inside `config` the device's schema declares secret (D783) —
15220
+ * what the non-admin redaction withholds. Paths, never values. Absent
15221
+ * when the owning runner has not reported them. */
15222
+ secretConfigPaths: array(string()).optional(),
15346
15223
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
15347
15224
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
15348
15225
  metadata: record(string(), unknown()).nullable().optional(),
@@ -15548,7 +15425,13 @@ var DeviceRegisterPayloadSchema = object({
15548
15425
  * call (workers re-register on init), so probe-driven updates
15549
15426
  * (e.g. PTZ flag flipping after the abilities probe) propagate. */
15550
15427
  features: array(string()).optional(),
15551
- config: record(string(), unknown())
15428
+ config: record(string(), unknown()),
15429
+ /** Config paths the device's own schema DECLARES secret
15430
+ * (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
15431
+ * `connection.password`). Re-published on every register; the non-admin
15432
+ * redaction withholds them at any depth (D783). Optional: an older runner
15433
+ * omits it and the keyword backstop applies. */
15434
+ secretConfigPaths: array(string()).optional()
15552
15435
  });
15553
15436
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
15554
15437
  var DevicePersistConfigPayloadSchema = object({
@@ -16375,6 +16258,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16375
16258
  kind: "mutation",
16376
16259
  auth: "admin"
16377
16260
  });
16261
+ var HUB_ADDRESS_ROLES = [
16262
+ "appConnections",
16263
+ "notificationTaps",
16264
+ "internal",
16265
+ "publicEndpoint"
16266
+ ];
16378
16267
  /**
16379
16268
  * Transport bounds for AI capability methods.
16380
16269
  *
@@ -17201,7 +17090,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
17201
17090
  icon: string().optional(),
17202
17091
  /** Addon-owned HTTP route the button navigates to (GET). */
17203
17092
  startUrl: string(),
17204
- stage: LoginStageEnum
17093
+ stage: LoginStageEnum,
17094
+ /**
17095
+ * The provider names an external identity a signed-in user can link to
17096
+ * their own account (D782): `auth.listLinkableProviders` /
17097
+ * `beginExternalLink` offer exactly the redirect methods that set this,
17098
+ * whatever their id. Absent / false — a login button only (magic-link).
17099
+ */
17100
+ linkable: boolean().optional()
17205
17101
  }),
17206
17102
  object({
17207
17103
  kind: literal("widget"),
@@ -18137,6 +18033,51 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
18137
18033
  kind: "mutation",
18138
18034
  auth: "admin"
18139
18035
  });
18036
+ new Set([
18037
+ {
18038
+ id: "person",
18039
+ name: "Person"
18040
+ },
18041
+ {
18042
+ id: "vehicle",
18043
+ name: "Vehicle"
18044
+ },
18045
+ {
18046
+ id: "animal",
18047
+ name: "Animal"
18048
+ },
18049
+ {
18050
+ id: "package",
18051
+ name: "Package"
18052
+ }
18053
+ ].map((l) => l.id));
18054
+ var COCO_TO_MACRO = {
18055
+ mapping: {
18056
+ person: "person",
18057
+ bicycle: "vehicle",
18058
+ car: "vehicle",
18059
+ motorcycle: "vehicle",
18060
+ airplane: "vehicle",
18061
+ bus: "vehicle",
18062
+ train: "vehicle",
18063
+ truck: "vehicle",
18064
+ boat: "vehicle",
18065
+ bird: "animal",
18066
+ cat: "animal",
18067
+ dog: "animal",
18068
+ horse: "animal",
18069
+ sheep: "animal",
18070
+ cow: "animal",
18071
+ elephant: "animal",
18072
+ bear: "animal",
18073
+ zebra: "animal",
18074
+ giraffe: "animal",
18075
+ suitcase: "package",
18076
+ backpack: "package",
18077
+ handbag: "package"
18078
+ },
18079
+ preserveOriginal: false
18080
+ };
18140
18081
  var AUDIO_MACRO_LABELS = [
18141
18082
  {
18142
18083
  id: "speech",
@@ -20539,7 +20480,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20539
20480
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20540
20481
  * is the one that starts the entry delay — the entry-delay notification already names it.
20541
20482
  */
20542
- notifySensorRewatched: boolean().optional()
20483
+ notifySensorRewatched: boolean().optional(),
20484
+ /**
20485
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20486
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20487
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20488
+ */
20489
+ notifySensorIgnored: boolean().optional()
20543
20490
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20544
20491
  var NcAlarmModeDelaysEditListSchema = array(object({
20545
20492
  mode: AlarmArmModeSchema,
@@ -20552,7 +20499,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20552
20499
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20553
20500
  notifyDuringEntryDelay: boolean().nullable().optional(),
20554
20501
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20555
- notifySensorRewatched: boolean().nullable().optional()
20502
+ notifySensorRewatched: boolean().nullable().optional(),
20503
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20504
+ notifySensorIgnored: boolean().nullable().optional()
20556
20505
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20557
20506
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20558
20507
  var NcAlarmNonBlockingEditSchema = object({
@@ -21530,8 +21479,8 @@ Object.freeze(Object.fromEntries([{
21530
21479
  var CLUSTER_STEP_SETTING_FIELDS = [{
21531
21480
  stepId: "face-embedding",
21532
21481
  key: "minLandmarkFaceSize",
21533
- label: "Min face size for recognition (detection px)",
21534
- 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.",
21482
+ label: "Min face size to embed (detection-frame px)",
21483
+ 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.",
21535
21484
  type: "slider",
21536
21485
  min: 0,
21537
21486
  max: 64,
@@ -22583,7 +22532,13 @@ var RetrainFrameSchema = object({
22583
22532
  sizeBytes: number().int(),
22584
22533
  width: number().int(),
22585
22534
  height: number().int(),
22586
- copiedAt: number()
22535
+ copiedAt: number(),
22536
+ /** When the CAMERA captured the frame. Absent on a copy taken before D785. */
22537
+ capturedAt: number().optional(),
22538
+ /** The operator's "every subject in this frame is boxed". Detector
22539
+ * evaluation keeps only complete frames: an unboxed subject would count as
22540
+ * a false positive. */
22541
+ complete: boolean()
22587
22542
  });
22588
22543
  /** Why a copy-on-select could not be honoured — named, never a silent skip. */
22589
22544
  var RetrainCopyRefusalSchema = _enum([
@@ -22604,6 +22559,51 @@ var RetrainFrameListSchema = object({
22604
22559
  /** What the page pre-selects — the native key frame when one survives. */
22605
22560
  autoPickMediaId: number().int().optional()
22606
22561
  });
22562
+ /**
22563
+ * Which frames an annotated export carries. Every field narrows; an empty
22564
+ * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
22565
+ * list owned by whoever trains (the training orchestrator), so `frameIds` is
22566
+ * the primitive a version export uses; `batchId` re-selects what an earlier
22567
+ * export carried (`exportedInBatch`).
22568
+ */
22569
+ var RetrainExportFilterSchema = object({
22570
+ deviceIds: array(number()).optional(),
22571
+ frameIds: array(string()).max(2e4).optional(),
22572
+ batchId: string().optional(),
22573
+ /** Only frames the operator marked complete (all subjects boxed). */
22574
+ completeOnly: boolean().optional()
22575
+ });
22576
+ /**
22577
+ * `frames`: the full frame copies, boxes in `annotations.json`.
22578
+ * `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
22579
+ * convention — the classifier layout.
22580
+ */
22581
+ var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
22582
+ /**
22583
+ * Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
22584
+ * the archive, sent chunk by chunk. Covers a presigned PUT and a provider
22585
+ * addon's data-plane upload route alike. Headers are sent verbatim and never
22586
+ * logged.
22587
+ */
22588
+ var RetrainArchiveTargetSchema = object({
22589
+ kind: literal("http"),
22590
+ method: _enum(["PUT", "POST"]),
22591
+ url: string().url(),
22592
+ headers: record(string(), string()).optional()
22593
+ });
22594
+ var RetrainArchiveResultSchema = object({
22595
+ batchId: string(),
22596
+ frames: number().int(),
22597
+ crops: number().int(),
22598
+ annotations: number().int(),
22599
+ /** Frames planned but not shipped (unreadable copy, path too long). */
22600
+ missing: number().int(),
22601
+ bytes: number().int(),
22602
+ /** sha256 of the exact bytes sent. */
22603
+ sha256: string(),
22604
+ /** The target's HTTP status. */
22605
+ status: number().int()
22606
+ });
22607
22607
  /** What the operator asked the assist to look for. */
22608
22608
  var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
22609
22609
  kind: literal("package"),
@@ -23398,9 +23398,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23398
23398
  }), RetrainTransitionResultSchema, {
23399
23399
  kind: "mutation",
23400
23400
  auth: "admin"
23401
- }), method(object({ deviceIds: array(number()).optional() }), object({ url: string() }), {
23401
+ }), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
23402
23402
  kind: "query",
23403
23403
  auth: "admin"
23404
+ }), method(object({
23405
+ deviceId: number(),
23406
+ trackId: string(),
23407
+ frameId: string(),
23408
+ complete: boolean()
23409
+ }), RetrainFrameSchema, {
23410
+ kind: "mutation",
23411
+ auth: "admin"
23412
+ }), method(object({
23413
+ filter: RetrainExportFilterSchema,
23414
+ layout: RetrainExportLayoutSchema,
23415
+ target: RetrainArchiveTargetSchema
23416
+ }), RetrainArchiveResultSchema, {
23417
+ kind: "mutation",
23418
+ auth: "admin",
23419
+ timeoutMs: 60 * 6e4
23404
23420
  }), method(object({
23405
23421
  /** Which of the three event tables owns the row. */
23406
23422
  ownerType: EventOwnerTypeSchema,
@@ -23451,6 +23467,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23451
23467
  timestamp: number()
23452
23468
  });
23453
23469
  /**
23470
+ * A root model's boxes standing in for one crop-kind step's own inference
23471
+ * (D730) — see `runPipeline.suppliedRoot`.
23472
+ */
23473
+ var SuppliedRootOutputSchema = object({
23474
+ stepId: string(),
23475
+ /** The root model that drew the boxes — stamped on the result. */
23476
+ modelId: string(),
23477
+ detections: array(object({
23478
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23479
+ bbox: tuple([
23480
+ number(),
23481
+ number(),
23482
+ number(),
23483
+ number()
23484
+ ]),
23485
+ score: number(),
23486
+ /**
23487
+ * Five facial landmarks in the same pixels — a face the step's own
23488
+ * detector already re-found inside a root face box (D730), so its
23489
+ * embedder child aligns it exactly as it aligns any detected face.
23490
+ */
23491
+ landmarks: array(object({
23492
+ x: number(),
23493
+ y: number()
23494
+ })).optional()
23495
+ })).min(1)
23496
+ });
23497
+ /**
23454
23498
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23455
23499
  * within the frame, so the executor can re-cut a leaf child ROI at native
23456
23500
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23498,7 +23542,7 @@ var FrameRefSchema = object({
23498
23542
  timestamp: number(),
23499
23543
  capturedAt: number().optional()
23500
23544
  });
23501
- var ModelFormatSchema$1 = _enum([
23545
+ var ModelFormatSchema$2 = _enum([
23502
23546
  "onnx",
23503
23547
  "coreml",
23504
23548
  "openvino",
@@ -23516,7 +23560,7 @@ var PipelineSlotSchema = _enum([
23516
23560
  var PipelineEngineChoiceSchema = object({
23517
23561
  runtime: literal("python"),
23518
23562
  backend: string(),
23519
- format: ModelFormatSchema$1,
23563
+ format: ModelFormatSchema$2,
23520
23564
  device: string().optional()
23521
23565
  });
23522
23566
  /**
@@ -23555,33 +23599,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23555
23599
  group: string().optional(),
23556
23600
  settings: record(string(), unknown()).optional()
23557
23601
  }));
23558
- var PipelineTemplateStepSchema = lazy(() => object({
23559
- addonId: string(),
23560
- enabled: boolean(),
23561
- modelId: string(),
23562
- children: array(PipelineTemplateStepSchema).readonly(),
23563
- settings: record(string(), unknown()).optional()
23564
- }));
23565
- var PipelineTemplateSchema$1 = object({
23566
- id: string(),
23567
- name: string(),
23568
- createdAt: string(),
23569
- updatedAt: string(),
23570
- engine: PipelineEngineChoiceSchema,
23571
- steps: array(PipelineTemplateStepSchema).readonly()
23572
- });
23573
23602
  var PipelineModelOptionSchema = object({
23574
23603
  id: string(),
23575
23604
  name: string(),
23576
- formats: record(string(), object({
23577
- downloaded: boolean(),
23578
- sizeMB: number()
23579
- })),
23605
+ formats: record(string(), PipelineModelFormatStatusSchema),
23580
23606
  group: ModelVariantGroupSchema.optional(),
23581
23607
  legacy: boolean().optional(),
23582
23608
  provider: ModelProviderIdSchema.optional(),
23583
23609
  defaultConfidence: number().optional(),
23584
- fillsClassifierEffects: array(FillsClassifierEffectSchema).readonly().optional()
23610
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23585
23611
  });
23586
23612
  var ConfigFieldBridge = custom();
23587
23613
  var PipelineAddonSchemaSchema = object({
@@ -23743,6 +23769,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23743
23769
  }), {
23744
23770
  kind: "mutation",
23745
23771
  auth: "admin"
23772
+ }), method(object({
23773
+ nodeId: string(),
23774
+ deviceIds: array(number()).readonly().optional(),
23775
+ dryRun: boolean()
23776
+ }), object({
23777
+ entries: array(object({
23778
+ deviceId: number(),
23779
+ keys: array(string()).readonly()
23780
+ })).readonly(),
23781
+ refused: array(object({
23782
+ deviceId: number(),
23783
+ reason: string()
23784
+ })).readonly()
23785
+ }), {
23786
+ kind: "mutation",
23787
+ auth: "admin"
23746
23788
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23747
23789
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23748
23790
  deviceKey: string(),
@@ -23768,22 +23810,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23768
23810
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23769
23811
  steps: array(PipelineStepInputSchema),
23770
23812
  deviceKey: string().optional()
23771
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23772
- name: string(),
23773
- steps: array(PipelineTemplateStepSchema).readonly(),
23774
- engine: PipelineEngineChoiceSchema
23775
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23776
- id: string(),
23777
- name: string().optional(),
23778
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23779
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23813
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23780
23814
  addonId: string(),
23781
23815
  modelId: string(),
23782
- format: ModelFormatSchema$1
23816
+ format: ModelFormatSchema$2
23783
23817
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23784
23818
  addonId: string(),
23785
23819
  modelId: string(),
23786
- format: ModelFormatSchema$1
23820
+ format: ModelFormatSchema$2
23787
23821
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23788
23822
  steps: array(PipelineStepInputSchema).min(1),
23789
23823
  frame: FrameInputSchema.optional(),
@@ -23849,7 +23883,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23849
23883
  * `device-not-servable`), and nothing reaches the camera's live
23850
23884
  * trace stream. Absent ⇒ unchanged behaviour.
23851
23885
  */
23852
- replay: literal(true).optional()
23886
+ replay: literal(true).optional(),
23887
+ /**
23888
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23889
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23890
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23891
+ * NOT inferred, these boxes are its output, and its children (the plate
23892
+ * reader) run on them through their own crop policy. Boxes are in the
23893
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23894
+ */
23895
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23853
23896
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23854
23897
  steps: array(PipelineStepInputSchema).min(1),
23855
23898
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23931,6 +23974,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23931
23974
  filename: string().optional(),
23932
23975
  settings: record(string(), unknown()).optional()
23933
23976
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23977
+ /**
23978
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23979
+ * `pipeline-orchestrator` cap. The recommender's own types
23980
+ * (`recommend.ts`) are the TS face of the same data; these
23981
+ * schemas are what crosses the cap boundary.
23982
+ */
23983
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23984
+ /** The operator's range for it. */
23985
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23986
+ min: 1,
23987
+ max: 8
23988
+ };
23989
+ var HardwareClassIdSchema = _enum([
23990
+ "intel-core-ultra",
23991
+ "intel-n-series",
23992
+ "apple-m-base",
23993
+ "apple-m-pro",
23994
+ "unknown"
23995
+ ]);
23996
+ var AcceleratorKindSchema = _enum([
23997
+ "intel-npu",
23998
+ "intel-igpu",
23999
+ "x86-cpu",
24000
+ "arm-cpu",
24001
+ "apple-ane",
24002
+ "coral"
24003
+ ]);
24004
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
24005
+ object({
24006
+ kind: literal("capacity"),
24007
+ sessions: number(),
24008
+ minSessions: number()
24009
+ }),
24010
+ object({
24011
+ kind: literal("tie-faster"),
24012
+ over: string(),
24013
+ recallDelta: number()
24014
+ }),
24015
+ object({
24016
+ kind: literal("stepped-down"),
24017
+ from: string(),
24018
+ to: string(),
24019
+ limitedBy: string()
24020
+ }),
24021
+ object({
24022
+ kind: literal("no-fit-lightest"),
24023
+ sessions: number(),
24024
+ minSessions: number()
24025
+ }),
24026
+ object({
24027
+ kind: literal("derived-latency"),
24028
+ modelId: string()
24029
+ }),
24030
+ object({ kind: literal("cpu-device") }),
24031
+ object({ kind: literal("coral-untouched") }),
24032
+ object({ kind: literal("device-disabled") }),
24033
+ object({ kind: literal("device-unavailable") }),
24034
+ object({ kind: literal("node-offline") }),
24035
+ object({ kind: literal("no-hardware-facts") }),
24036
+ object({
24037
+ kind: literal("no-measured-data"),
24038
+ hardwareClass: HardwareClassIdSchema
24039
+ }),
24040
+ object({
24041
+ kind: literal("no-family-build"),
24042
+ format: ModelFormatSchema$1
24043
+ })
24044
+ ]);
24045
+ var DeviceModelChoiceSchema = object({
24046
+ modelId: string(),
24047
+ p50Ms: number(),
24048
+ fps: number(),
24049
+ measured: boolean(),
24050
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24051
+ capacitySessions: number(),
24052
+ personRecall: number()
24053
+ });
24054
+ var DeviceRecommendationSchema = object({
24055
+ deviceKey: string(),
24056
+ accelerator: AcceleratorKindSchema.nullable(),
24057
+ enabled: boolean(),
24058
+ available: boolean(),
24059
+ chosen: DeviceModelChoiceSchema.nullable(),
24060
+ reasons: array(RecommendationReasonSchema).readonly()
24061
+ });
24062
+ var NodeRecommendationSchema = object({
24063
+ nodeId: string(),
24064
+ reachable: boolean(),
24065
+ hardwareClass: HardwareClassIdSchema.nullable(),
24066
+ cpuModel: string().nullable(),
24067
+ skipped: boolean(),
24068
+ acceleratorModelId: string().nullable(),
24069
+ devices: array(DeviceRecommendationSchema).readonly(),
24070
+ reasons: array(RecommendationReasonSchema).readonly()
24071
+ });
24072
+ var ModelPinChangeSchema = object({
24073
+ stepId: string(),
24074
+ before: string().nullable(),
24075
+ after: string().nullable()
24076
+ });
24077
+ var NodeDeviceChangeSchema = object({
24078
+ nodeId: string(),
24079
+ deviceKey: string(),
24080
+ madeExplicit: boolean(),
24081
+ modelPins: array(ModelPinChangeSchema).readonly(),
24082
+ thresholds: array(object({
24083
+ stepId: string(),
24084
+ keys: array(string()).readonly()
24085
+ })).readonly()
24086
+ });
24087
+ var CameraOverrideClearSchema = object({
24088
+ deviceId: number(),
24089
+ source: _enum(["step-override", "wholesale"]),
24090
+ nodeId: string(),
24091
+ deviceKey: string().nullable(),
24092
+ stepId: string(),
24093
+ modelIdBefore: string().nullable(),
24094
+ keys: array(string()).readonly()
24095
+ });
24096
+ var DetectorStoreClearSchema = object({
24097
+ deviceId: number(),
24098
+ keys: array(string()).readonly()
24099
+ });
24100
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24101
+ object({
24102
+ kind: literal("detector-store-cluster-wide"),
24103
+ skippedNodes: array(string()).readonly()
24104
+ }),
24105
+ object({
24106
+ kind: literal("detector-store-unreadable"),
24107
+ error: string()
24108
+ }),
24109
+ object({
24110
+ kind: literal("coral-enabled"),
24111
+ nodeId: string(),
24112
+ deviceKey: string()
24113
+ })
24114
+ ]);
24115
+ var AutoTuneOptionsSchema = object({
24116
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24117
+ headroom: number().min(.3).max(.5).default(.4),
24118
+ /**
24119
+ * The least number of parallel sessions every device must sustain at the
24120
+ * camera rate with the headroom kept free (D755). The most accurate model
24121
+ * that reaches it wins.
24122
+ */
24123
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24124
+ });
24125
+ var AutoTunePlanSchema = object({
24126
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24127
+ planHash: string(),
24128
+ family: literal("yolov9"),
24129
+ headroom: number(),
24130
+ minSessionsPerDevice: number(),
24131
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24132
+ cameraFps: number(),
24133
+ generatedAt: number(),
24134
+ nodes: array(NodeRecommendationSchema).readonly(),
24135
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24136
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24137
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24138
+ warnings: array(AutoTuneWarningSchema).readonly()
24139
+ });
24140
+ var AutoTuneApplyInputSchema = object({
24141
+ planHash: string(),
24142
+ headroom: number().min(.3).max(.5).default(.4),
24143
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24144
+ });
24145
+ var AutoTunePhaseResultSchema = object({
24146
+ phase: _enum([
24147
+ "download",
24148
+ "camera-overrides",
24149
+ "detector-thresholds",
24150
+ "node-models",
24151
+ "redispatch"
24152
+ ]),
24153
+ ok: boolean(),
24154
+ detail: string()
24155
+ });
24156
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24157
+ object({
24158
+ kind: literal("applied"),
24159
+ planHash: string(),
24160
+ phases: array(AutoTunePhaseResultSchema).readonly()
24161
+ }),
24162
+ object({
24163
+ kind: literal("aborted"),
24164
+ phases: array(AutoTunePhaseResultSchema).readonly()
24165
+ }),
24166
+ object({
24167
+ kind: literal("stale"),
24168
+ plan: AutoTunePlanSchema
24169
+ }),
24170
+ object({
24171
+ kind: literal("refused"),
24172
+ reason: _enum(["apply-in-progress"])
24173
+ })
24174
+ ]);
24175
+ /**
24176
+ * Wire shapes of the Load balancing surface (D748): the session placement
24177
+ * policy, the atomic share write, the observed placement statistics, the
24178
+ * hardware share suggestion and the stale device pins.
24179
+ */
24180
+ /**
24181
+ * How a new detection session picks its node and device.
24182
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24183
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24184
+ * weight only bites once a node already holds a session.
24185
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24186
+ * full or drowning node yields to a free one (D748).
24187
+ */
24188
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24189
+ var LoadBalancingSharesInputSchema = object({
24190
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24191
+ nodes: record(string(), number().positive()).default({}),
24192
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24193
+ devices: record(string(), record(string(), number().positive())).default({})
24194
+ });
24195
+ var PlacementStatsInputSchema = object({
24196
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24197
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24198
+ var PlacementDeviceStatsSchema = object({
24199
+ deviceKey: string(),
24200
+ /** Sessions running on this device now. */
24201
+ sessionsNow: number(),
24202
+ /** Sessions started on this device inside the window. */
24203
+ sessionsStarted: number(),
24204
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24205
+ observedShare: number().nullable()
24206
+ });
24207
+ var PlacementNodeStatsSchema = object({
24208
+ nodeId: string(),
24209
+ sessionsNow: number(),
24210
+ sessionsStarted: number(),
24211
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24212
+ observedShare: number().nullable(),
24213
+ /** Most sessions this node ran at once inside the window. */
24214
+ peakSessions: number(),
24215
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24216
+ yieldsAway: number(),
24217
+ devices: array(PlacementDeviceStatsSchema).readonly()
24218
+ });
24219
+ /** A camera's device pin that the session path cannot honour. */
24220
+ var StaleDevicePinSchema = object({
24221
+ deviceId: number(),
24222
+ deviceKey: string(),
24223
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24224
+ reason: _enum(["disabled", "absent"])
24225
+ });
24226
+ var PlacementStatsSchema = object({
24227
+ policy: SessionPlacementPolicySchema,
24228
+ windowMs: number(),
24229
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24230
+ observedForMs: number(),
24231
+ sessionsNow: number(),
24232
+ /** Most parallel sessions across the cluster inside the window. */
24233
+ clusterPeakSessions: number(),
24234
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24235
+ stalePins: array(StaleDevicePinSchema).readonly()
24236
+ });
24237
+ /**
24238
+ * Where an automatic share's capacity comes from (D755).
24239
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24240
+ * the measured latency table for the node's hardware class.
24241
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24242
+ * A node with no results falls back to `hardware`, and says so.
24243
+ */
24244
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24245
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24246
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24247
+ var SuggestSharesInputSchema = object({
24248
+ headroom: number().min(.3).max(.5).default(.4),
24249
+ /** Default `hardware`. */
24250
+ source: CapacitySourceSchema.default("hardware")
24251
+ });
24252
+ var SuggestedDeviceShareSchema = object({
24253
+ deviceKey: string(),
24254
+ /** Share of the node (0–100, rounded). */
24255
+ share: number(),
24256
+ modelId: string().nullable(),
24257
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24258
+ fps: number().nullable(),
24259
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24260
+ measured: boolean(),
24261
+ /**
24262
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24263
+ * or the benchmark's measured max sessions. Never enforced.
24264
+ */
24265
+ suggestedMaxSessions: number().nullable()
24266
+ });
24267
+ var SuggestedNodeShareSchema = object({
24268
+ nodeId: string(),
24269
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24270
+ share: number().nullable(),
24271
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24272
+ capacitySessions: number(),
24273
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24274
+ skippedReason: string().nullable(),
24275
+ /** What this node's capacity was read from; null when the node is skipped. */
24276
+ capacitySource: CapacitySourceSchema.nullable(),
24277
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24278
+ capacityFallback: CapacityFallbackSchema.nullable()
24279
+ });
24280
+ var SuggestSharesResultSchema = object({
24281
+ headroom: number(),
24282
+ /** The source asked for; each node says what it actually used. */
24283
+ source: CapacitySourceSchema,
24284
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24285
+ cameraFps: number(),
24286
+ /** The Auto tune capacity floor the models were picked at. */
24287
+ minSessionsPerDevice: number(),
24288
+ nodes: array(SuggestedNodeShareSchema).readonly()
24289
+ });
24290
+ /**
24291
+ * Where the node and device shares come from (D750, D755).
24292
+ * - `hardware` (default) — computed by the system from each node's static
24293
+ * capacity (its accelerators at their Auto tune models, from the measured
24294
+ * latency table), recomputed whenever a node or device joins, leaves, is
24295
+ * switched on or off, or changes model. No load input.
24296
+ * - `benchmark` — the same, from each node's measured capacity (node
24297
+ * benchmark results); a node without results falls back to `hardware`.
24298
+ * - `manual` — the operator's stored sliders.
24299
+ * Either way a node or device that cannot take sessions gives its share to
24300
+ * the others in proportion; the stored values are never rewritten for that.
24301
+ */
24302
+ var ShareSourceSchema = _enum([
24303
+ "hardware",
24304
+ "benchmark",
24305
+ "manual"
24306
+ ]);
24307
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24308
+ object({
24309
+ nodes: record(string(), number()),
24310
+ devices: record(string(), record(string(), number()))
24311
+ });
24312
+ var EffectiveDeviceShareSchema = object({
24313
+ deviceKey: string(),
24314
+ /** Can take sessions now (enabled, available, can run the root). */
24315
+ eligible: boolean(),
24316
+ /** The share the source assigns, as a percentage of the node's devices. */
24317
+ configuredPct: number(),
24318
+ /** The share actually used, after an ineligible device's share went to the others. */
24319
+ effectivePct: number()
24320
+ });
24321
+ var EffectiveNodeShareSchema = object({
24322
+ nodeId: string(),
24323
+ eligible: boolean(),
24324
+ configuredPct: number(),
24325
+ effectivePct: number(),
24326
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24327
+ capacitySource: CapacitySourceSchema.nullable(),
24328
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24329
+ capacityFallback: CapacityFallbackSchema.nullable(),
24330
+ devices: array(EffectiveDeviceShareSchema).readonly()
24331
+ });
24332
+ var EffectiveSharesSchema = object({
24333
+ source: ShareSourceSchema,
24334
+ policy: SessionPlacementPolicySchema,
24335
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24336
+ autoPending: boolean(),
24337
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24338
+ computedAt: number().nullable(),
24339
+ /** What made the system recompute them last. */
24340
+ trigger: string().nullable(),
24341
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24342
+ /** The relative weights the election reads (before eligibility). */
24343
+ nodeWeights: record(string(), number()),
24344
+ deviceWeights: record(string(), record(string(), number()))
24345
+ });
23934
24346
  object({
23935
24347
  activeCameras: number(),
23936
24348
  throttledCameras: number(),
@@ -24848,14 +25260,15 @@ var RunnerLocalLoadSchema = object({
24848
25260
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24849
25261
  * this runner currently has attached cameras on, so the orchestrator's second
24850
25262
  * `balance()` pass (over a node's devices) weights on real per-pool session
24851
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24852
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25263
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25264
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25265
+ * a field that always read 0 was removed rather than shown as a measurement
25266
+ * (D762).
24853
25267
  */
24854
25268
  devices: array(object({
24855
25269
  deviceKey: string(),
24856
25270
  backend: string(),
24857
- attachedCameras: number(),
24858
- queueDepthTotal: number()
25271
+ attachedCameras: number()
24859
25272
  })).default([]),
24860
25273
  /** Hardware capability flags reported by this node. */
24861
25274
  hardware: object({
@@ -24991,7 +25404,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24991
25404
  */
24992
25405
  cropJpeg: string().optional(),
24993
25406
  parent: DetailParentSchema,
24994
- steps: array(string()).optional()
25407
+ steps: array(string()).optional(),
25408
+ /**
25409
+ * The camera's root model already drew this step's boxes (D730): a
25410
+ * `license_plate` inside the parent vehicle. The named step is NOT
25411
+ * inferred — these FRAME-space boxes are its output — and its
25412
+ * requested children (the plate reader) run on them. Absent ⇒ every
25413
+ * requested step infers as before.
25414
+ */
25415
+ supplied: object({
25416
+ stepId: string(),
25417
+ modelId: string(),
25418
+ boxes: array(object({
25419
+ bbox: NativeCropBboxSchema,
25420
+ score: number()
25421
+ })).min(1)
25422
+ }).optional()
24995
25423
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24996
25424
  /** Catalog step id, e.g. `clip-embedding`. */
24997
25425
  stepId: string(),
@@ -25054,14 +25482,6 @@ var CameraPipelineConfigSchema = object({
25054
25482
  settings: record(string(), unknown()).readonly().optional()
25055
25483
  }).nullable().optional()
25056
25484
  });
25057
- var PipelineTemplateSchema = object({
25058
- id: string(),
25059
- name: string(),
25060
- description: string().optional(),
25061
- config: CameraPipelineConfigSchema,
25062
- createdAt: string(),
25063
- updatedAt: string()
25064
- });
25065
25485
  var DeviceStepConfigSchema = object({
25066
25486
  modelId: string().optional(),
25067
25487
  settings: record(string(), unknown()).optional(),
@@ -25135,9 +25555,10 @@ var CameraStepOverridePatchSchema = object({
25135
25555
  modelId: string().optional(),
25136
25556
  settings: record(string(), unknown()).readonly().optional()
25137
25557
  });
25558
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25138
25559
  var CameraPipelineSettingsSchema = object({
25139
- pinnedAgentNodeId: string().optional(),
25140
25560
  stepToggles: record(string(), boolean()).optional(),
25561
+ stepSettings: CameraStepSettingsSchema.optional(),
25141
25562
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25142
25563
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25143
25564
  });
@@ -25170,7 +25591,10 @@ var PipelineAssignmentSchema = object({
25170
25591
  });
25171
25592
  /**
25172
25593
  * Per-agent load summary surfaced to the load balancer + dashboards.
25173
- * Aggregated from each runner's `getLocalLoad` cap call.
25594
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25595
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25596
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25597
+ * the default pool IS that device (D745); the balancer's census stays raw.
25174
25598
  */
25175
25599
  var AgentLoadSummarySchema = object({
25176
25600
  nodeId: string(),
@@ -25259,26 +25683,27 @@ var CameraBrokerStatusSchema = object({
25259
25683
  width: number(),
25260
25684
  height: number(),
25261
25685
  subscribers: number(),
25262
- inFps: number(),
25263
- outFps: number()
25686
+ /**
25687
+ * Encoded packets/s the broker receives from the camera. null when the
25688
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25689
+ * There is no output rate: decoding runs in the session decode workers, not
25690
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25691
+ * camera and is not served (D758).
25692
+ */
25693
+ inFps: number().nullable()
25264
25694
  })).readonly(),
25265
25695
  webrtcSessions: number(),
25266
25696
  rtspRestream: boolean()
25267
25697
  });
25268
- /** Shared-memory ring statistics within the decoder block. */
25269
- var CameraDecoderShmSchema = object({
25270
- framesWritten: number(),
25271
- getFrameHits: number(),
25272
- getFrameMisses: number(),
25273
- budgetMb: number()
25274
- });
25275
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25276
- var CameraDecoderStatusSchema = object({
25277
- nodeId: string(),
25278
- formats: array(string()).readonly(),
25279
- sessionCount: number(),
25280
- shm: CameraDecoderShmSchema
25281
- });
25698
+ /**
25699
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25700
+ * construction); null when the camera has no detection node. It carries no
25701
+ * frame counter: the shared-memory plane whose counters it used to serve is
25702
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25703
+ * from `detection.actualFps` (frames delivered to and processed by the
25704
+ * detector), never from a counter nothing feeds.
25705
+ */
25706
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25282
25707
  /** Motion block — null when motion detection is not active for this device. */
25283
25708
  var CameraMotionStatusSchema = object({
25284
25709
  enabled: boolean(),
@@ -25635,12 +26060,6 @@ method(object({
25635
26060
  }), object({ success: literal(true) }), {
25636
26061
  kind: "mutation",
25637
26062
  auth: "admin"
25638
- }), method(object({
25639
- agentNodeId: string(),
25640
- detectWeight: number().positive().nullable()
25641
- }), object({ success: literal(true) }), {
25642
- kind: "mutation",
25643
- auth: "admin"
25644
26063
  }), method(object({
25645
26064
  agentNodeId: string(),
25646
26065
  detect: boolean().nullable().optional(),
@@ -25682,6 +26101,15 @@ method(object({
25682
26101
  }), {
25683
26102
  kind: "mutation",
25684
26103
  auth: "admin"
26104
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26105
+ kind: "mutation",
26106
+ auth: "admin"
26107
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26108
+ kind: "mutation",
26109
+ auth: "admin"
26110
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26111
+ kind: "mutation",
26112
+ auth: "admin"
25685
26113
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25686
26114
  deviceId: number(),
25687
26115
  addonId: string(),
@@ -25698,6 +26126,13 @@ method(object({
25698
26126
  }), object({ success: literal(true) }), {
25699
26127
  kind: "mutation",
25700
26128
  auth: "admin"
26129
+ }), method(object({
26130
+ deviceId: number(),
26131
+ addonId: string(),
26132
+ settings: record(string(), unknown()).nullable()
26133
+ }), object({ success: literal(true) }), {
26134
+ kind: "mutation",
26135
+ auth: "admin"
25701
26136
  }), method(object({
25702
26137
  deviceId: number(),
25703
26138
  agentNodeId: string(),
@@ -25721,25 +26156,7 @@ method(object({
25721
26156
  }), method(_void(), DiskReconcileJobSchema, {
25722
26157
  kind: "mutation",
25723
26158
  auth: "admin"
25724
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25725
- name: string(),
25726
- description: string().optional(),
25727
- config: CameraPipelineConfigSchema
25728
- }), PipelineTemplateSchema, {
25729
- kind: "mutation",
25730
- auth: "admin"
25731
- }), method(object({
25732
- id: string(),
25733
- name: string().optional(),
25734
- description: string().optional(),
25735
- config: CameraPipelineConfigSchema.optional()
25736
- }), PipelineTemplateSchema, {
25737
- kind: "mutation",
25738
- auth: "admin"
25739
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25740
- kind: "mutation",
25741
- auth: "admin"
25742
- });
26159
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25743
26160
  /**
25744
26161
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25745
26162
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -26433,7 +26850,19 @@ var SsoBridgeClaimsSchema = object({
26433
26850
  * editing a descriptor must not retroactively extend or shorten a link the
26434
26851
  * operator already consented to.
26435
26852
  */
26436
- refreshTtl: union([number().int().positive(), literal("never")]).optional()
26853
+ refreshTtl: union([number().int().positive(), literal("never")]).optional(),
26854
+ /**
26855
+ * Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
26856
+ * that was started from a signed-in user's "Link" button: the finish then
26857
+ * links this identity to the intent's user instead of signing anyone in.
26858
+ * The handle carries no user id — the hub resolves it, single-use.
26859
+ */
26860
+ linkIntent: string().optional(),
26861
+ /**
26862
+ * Verified `iss` of the id_token behind an OIDC login bridge (D782). A
26863
+ * subject is unique only per issuer, so a link is bound to it.
26864
+ */
26865
+ issuer: string().optional()
26437
26866
  });
26438
26867
  method(object({
26439
26868
  claims: SsoBridgeClaimsSchema,
@@ -28501,8 +28930,6 @@ var WebrtcStreamChoiceSchema = object({
28501
28930
  ]).nullable(),
28502
28931
  /** Input FPS from the camera (null for adaptive). */
28503
28932
  inputFps: number().nullable(),
28504
- /** Decoded FPS (null for adaptive). */
28505
- decodeFps: number().nullable(),
28506
28933
  /** Bitrate in kbps (null for adaptive). */
28507
28934
  bitrateKbps: number().nullable()
28508
28935
  });
@@ -28779,7 +29206,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28779
29206
  * field their hints were silently stripped by the schema and the
28780
29207
  * adaptive ladder started blind on the client's display size.
28781
29208
  */
28782
- hints: webrtcClientHintsSchema.optional()
29209
+ hints: webrtcClientHintsSchema.optional(),
29210
+ /**
29211
+ * Talk-back (D771): relay the PEER's audio to the device's speaker
29212
+ * through the `intercom` cap's push-talk triple. When `true` and the
29213
+ * offer lets the peer send audio, the answer's audio is `sendrecv`
29214
+ * and every inbound frame goes to `intercom.pushTalkAudio` for this
29215
+ * `deviceId`; absent/false answers `sendonly`, as for every viewer.
29216
+ *
29217
+ * TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
29218
+ * with `intercom`, when the linked user may control that camera. The
29219
+ * hub STRIPS it from every request-bound call (a browser), exactly as
29220
+ * it overwrites `relayOnly` — a viewer's talk permission is the
29221
+ * intercom cap's own surface (share tokens gate it there), and this
29222
+ * flag must not become a second door to the camera's speaker.
29223
+ */
29224
+ talkback: boolean().optional()
28783
29225
  }), object({
28784
29226
  sessionId: string(),
28785
29227
  sdpAnswer: string()
@@ -28834,6 +29276,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28834
29276
  */
28835
29277
  alive: boolean()
28836
29278
  })), method(object({
29279
+ deviceId: number().int().nonnegative(),
29280
+ sessionId: string(),
29281
+ downlinkMbps: number().nonnegative()
29282
+ }), object({
29283
+ outcome: _enum(["switching", "held"]),
29284
+ tier: CamProfileSchema.nullable(),
29285
+ reason: string()
29286
+ }), { kind: "mutation" }), method(object({
28837
29287
  deviceId: number().int().nonnegative(),
28838
29288
  sessionId: string()
28839
29289
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -29073,6 +29523,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
29073
29523
  var RestartAddonResultSchema = unknown();
29074
29524
  var InstallPackageResultSchema = unknown();
29075
29525
  var ReloadPackagesResultSchema = unknown();
29526
+ /**
29527
+ * What an uninstall did on ONE node.
29528
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
29529
+ * - `not-installed` — the node did not have it (nothing to do).
29530
+ * - `refused` — protected / bootstrap package; nothing touched.
29531
+ * - `failed` — attempted and did not complete; `error` says why.
29532
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
29533
+ * back-fill never returns the package, and the stale-addon sweep removes the
29534
+ * copy when the node registers again (only once the hub no longer has it).
29535
+ */
29536
+ var UninstallNodeOutcomeSchema = _enum([
29537
+ "uninstalled",
29538
+ "not-installed",
29539
+ "refused",
29540
+ "failed",
29541
+ "pending-reconnect"
29542
+ ]);
29543
+ var UninstallNodeResultSchema = object({
29544
+ nodeId: string(),
29545
+ outcome: UninstallNodeOutcomeSchema,
29546
+ error: string().optional(),
29547
+ addonIds: array(string()).readonly(),
29548
+ runnersStopped: array(string()).readonly(),
29549
+ warnings: array(string()).readonly()
29550
+ });
29551
+ var UninstallPackageResultSchema = object({
29552
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
29553
+ success: boolean(),
29554
+ packageName: string(),
29555
+ results: array(UninstallNodeResultSchema).readonly()
29556
+ });
29557
+ /**
29558
+ * `unreachable` lists online agents whose status read FAILED — absence from
29559
+ * `installations` is only "not installed" for a node that answered (D315).
29560
+ */
29561
+ var PackageInstallationsSchema = object({
29562
+ installations: array(object({
29563
+ packageName: string(),
29564
+ nodeId: string(),
29565
+ nodeName: string(),
29566
+ isHub: boolean(),
29567
+ isOnline: boolean(),
29568
+ version: string().nullable(),
29569
+ addonIds: array(string()).readonly(),
29570
+ source: _enum(["live", "recorded"]),
29571
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
29572
+ onHub: boolean()
29573
+ })).readonly(),
29574
+ unreachable: array(object({
29575
+ nodeId: string(),
29576
+ error: string()
29577
+ })).readonly()
29578
+ });
29076
29579
  var BulkUpdateItemStatusSchema = _enum([
29077
29580
  "queued",
29078
29581
  "updating",
@@ -29155,10 +29658,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
29155
29658
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
29156
29659
  kind: "mutation",
29157
29660
  auth: "admin"
29158
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
29661
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
29662
+ packageName: string().min(1),
29663
+ nodeId: string().optional(),
29664
+ everywhere: boolean().optional()
29665
+ }), UninstallPackageResultSchema, {
29159
29666
  kind: "mutation",
29160
29667
  auth: "admin"
29161
- }), method(_void(), ReloadPackagesResultSchema, {
29668
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
29162
29669
  kind: "mutation",
29163
29670
  auth: "admin"
29164
29671
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -32645,7 +33152,8 @@ var ConnectionEndpointSchema = object({
32645
33152
  "lan-ipv6",
32646
33153
  "public",
32647
33154
  "loopback",
32648
- "app-link"
33155
+ "app-link",
33156
+ "custom"
32649
33157
  ]),
32650
33158
  /**
32651
33159
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32714,7 +33222,7 @@ var GetConnectionEndpointsResultSchema = object({
32714
33222
  localPort: AdvertisedLocalPortSchema
32715
33223
  });
32716
33224
  /**
32717
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
33225
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32718
33226
  * since D709 is the CamStack app link; `resolved` reports the effective value,
32719
33227
  * so the UI can show it either way.
32720
33228
  */
@@ -32747,6 +33255,72 @@ var ViewerEndpointsSchema = object({
32747
33255
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32748
33256
  resolved: array(string()).readonly()
32749
33257
  });
33258
+ /**
33259
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
33260
+ * for addons built against it): `cluster` is the `internal` role, `browser`
33261
+ * the `publicEndpoint` role; `override` is the flagged address.
33262
+ */
33263
+ var HubAddressSnapshotSchema = object({
33264
+ override: string().nullable(),
33265
+ resolved: string().nullable(),
33266
+ source: _enum([
33267
+ "override",
33268
+ "auto",
33269
+ "none"
33270
+ ])
33271
+ });
33272
+ var HubAddressesSchema = object({
33273
+ cluster: HubAddressSnapshotSchema,
33274
+ browser: HubAddressSnapshotSchema
33275
+ });
33276
+ /**
33277
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
33278
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
33279
+ * by at most one address.
33280
+ */
33281
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
33282
+ var RoleSourceSchema = _enum([
33283
+ "flagged",
33284
+ "auto",
33285
+ "none"
33286
+ ]);
33287
+ /** One single-valued role: the flagged address, the one in use, and why. */
33288
+ var HubAddressRoleResolutionSchema = object({
33289
+ /** The address carrying the flag, or null = automatic. */
33290
+ flagged: string().nullable(),
33291
+ /** The address in use, or null when nothing qualifies (never loopback). */
33292
+ resolved: string().nullable(),
33293
+ source: RoleSourceSchema
33294
+ });
33295
+ var HubAppConnectionsResolutionSchema = object({
33296
+ /** The addresses flagged `appConnections`, or empty = automatic. */
33297
+ flagged: array(string()).readonly(),
33298
+ /** What the apps race right now. */
33299
+ resolved: array(string()).readonly(),
33300
+ source: RoleSourceSchema
33301
+ });
33302
+ var HubAddressBookSchema = object({
33303
+ rows: array(ConnectionEndpointSchema.extend({
33304
+ /** In the hub's detected palette right now. */
33305
+ detected: boolean(),
33306
+ /** Entered by the operator (removable). */
33307
+ custom: boolean(),
33308
+ /** The roles explicitly flagged on this address. */
33309
+ flags: array(HubAddressRoleSchema).readonly(),
33310
+ /** The roles this address serves right now — flagged or automatic. */
33311
+ inUse: array(HubAddressRoleSchema).readonly(),
33312
+ /** The roles this address may be flagged with. */
33313
+ eligible: array(HubAddressRoleSchema).readonly()
33314
+ })).readonly(),
33315
+ roles: object({
33316
+ appConnections: HubAppConnectionsResolutionSchema,
33317
+ notificationTaps: HubAddressRoleResolutionSchema,
33318
+ internal: HubAddressRoleResolutionSchema,
33319
+ publicEndpoint: HubAddressRoleResolutionSchema
33320
+ }),
33321
+ /** The `hub=` an app link carries (D709), or null. */
33322
+ appLinkHub: string().nullable()
33323
+ });
32750
33324
  var AllowedAddressesSchema = object({
32751
33325
  /**
32752
33326
  * Allowlist of interface addresses operators have explicitly opted
@@ -32790,10 +33364,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32790
33364
  * tunnel always emits `https://` regardless. */
32791
33365
  scheme: _enum(["http", "https"]).optional(),
32792
33366
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32793
- * an address notification links can be flagged with, not a hub
33367
+ * an address notification taps can be flagged with, not a hub
32794
33368
  * route. Default `false`: racers and rankers never see it. */
32795
33369
  includeAppLink: boolean().optional()
32796
- }), 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, {
33370
+ }), 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({
33371
+ baseUrl: string(),
33372
+ label: string().max(80)
33373
+ }), HubAddressBookSchema, {
33374
+ kind: "mutation",
33375
+ auth: "admin"
33376
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
33377
+ kind: "mutation",
33378
+ auth: "admin"
33379
+ }), method(object({
33380
+ role: HubAddressRoleSchema,
33381
+ baseUrl: string().nullable(),
33382
+ enabled: boolean(),
33383
+ acceptInsecureHttp: boolean().optional()
33384
+ }), HubAddressBookSchema, {
33385
+ kind: "mutation",
33386
+ auth: "admin"
33387
+ }), 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, {
32797
33388
  kind: "mutation",
32798
33389
  auth: "admin"
32799
33390
  }), method(object({
@@ -39446,6 +40037,32 @@ var TotpStatusSchema = object({
39446
40037
  /** Null when no row exists OR the row is still pending confirmation. */
39447
40038
  confirmedAt: number().nullable()
39448
40039
  });
40040
+ /**
40041
+ * user-management — singleton capability for user accounts, API keys,
40042
+ * and scoped tokens.
40043
+ *
40044
+ * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
40045
+ * — the subset check on `setUserScopes` / `createScopedToken` is moot
40046
+ * because non-admins never reach these. If/when we open non-admin
40047
+ * delegation, structural caller-scope subset check goes inside the
40048
+ * provider.
40049
+ */
40050
+ var ExternalIdentitySchema = object({
40051
+ /** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
40052
+ provider: string(),
40053
+ /** The IdP's stable subject (`sub`) for this account. */
40054
+ subject: string(),
40055
+ /** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
40056
+ issuer: string(),
40057
+ userId: string(),
40058
+ /** What the IdP called the account at link time (username / email) — display only. */
40059
+ label: string().optional(),
40060
+ linkedAt: number()
40061
+ });
40062
+ var ExternalIdentityKeySchema = object({
40063
+ provider: string().min(1),
40064
+ subject: string().min(1)
40065
+ });
39449
40066
  method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
39450
40067
  kind: "mutation",
39451
40068
  auth: "admin",
@@ -39559,7 +40176,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
39559
40176
  userId: string(),
39560
40177
  username: string(),
39561
40178
  scopes: array(TokenScopeSchema)
39562
- }).nullable(), { access: "view" }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
40179
+ }).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
40180
+ userId: string(),
40181
+ issuer: string()
40182
+ }).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
40183
+ userId: string(),
40184
+ issuer: string().min(1),
40185
+ label: string().optional()
40186
+ }), object({ success: literal(true) }), {
40187
+ kind: "mutation",
40188
+ auth: "admin",
40189
+ access: "create"
40190
+ }), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
40191
+ kind: "mutation",
40192
+ auth: "admin",
40193
+ access: "delete"
40194
+ }), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
39563
40195
  kind: "mutation",
39564
40196
  auth: "admin",
39565
40197
  access: "delete"
@@ -40261,6 +40893,16 @@ var zoneRulesCapability = {
40261
40893
  durability: "restored"
40262
40894
  };
40263
40895
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
40896
+ Object.freeze({
40897
+ person: .5,
40898
+ vehicle: .5,
40899
+ animal: .5
40900
+ });
40901
+ Object.freeze({
40902
+ person: .65,
40903
+ vehicle: .65,
40904
+ animal: .65
40905
+ });
40264
40906
  /**
40265
40907
  * Accessory device helpers — shared across drivers.
40266
40908
  *
@@ -41959,6 +42601,12 @@ Object.freeze({
41959
42601
  addonId: null,
41960
42602
  access: "view"
41961
42603
  },
42604
+ "addons.listInstallations": {
42605
+ capName: "addons",
42606
+ capScope: "system",
42607
+ addonId: null,
42608
+ access: "view"
42609
+ },
41962
42610
  "addons.listJobs": {
41963
42611
  capName: "addons",
41964
42612
  capScope: "system",
@@ -43141,90 +43789,18 @@ Object.freeze({
43141
43789
  addonId: null,
43142
43790
  access: "create"
43143
43791
  },
43144
- "decoder.createSession": {
43145
- capName: "decoder",
43146
- capScope: "system",
43147
- addonId: null,
43148
- access: "view"
43149
- },
43150
- "decoder.destroySession": {
43151
- capName: "decoder",
43152
- capScope: "system",
43153
- addonId: null,
43154
- access: "delete"
43155
- },
43156
- "decoder.getFrame": {
43157
- capName: "decoder",
43158
- capScope: "system",
43159
- addonId: null,
43160
- access: "view"
43161
- },
43162
43792
  "decoder.getInfo": {
43163
43793
  capName: "decoder",
43164
43794
  capScope: "system",
43165
43795
  addonId: null,
43166
43796
  access: "view"
43167
43797
  },
43168
- "decoder.getShmStats": {
43169
- capName: "decoder",
43170
- capScope: "system",
43171
- addonId: null,
43172
- access: "view"
43173
- },
43174
- "decoder.getStats": {
43175
- capName: "decoder",
43176
- capScope: "system",
43177
- addonId: null,
43178
- access: "view"
43179
- },
43180
- "decoder.listActiveSessions": {
43181
- capName: "decoder",
43182
- capScope: "system",
43183
- addonId: null,
43184
- access: "view"
43185
- },
43186
- "decoder.openStream": {
43187
- capName: "decoder",
43188
- capScope: "system",
43189
- addonId: null,
43190
- access: "view"
43191
- },
43192
- "decoder.pullFrames": {
43193
- capName: "decoder",
43194
- capScope: "system",
43195
- addonId: null,
43196
- access: "view"
43197
- },
43198
- "decoder.pullHandles": {
43199
- capName: "decoder",
43200
- capScope: "system",
43201
- addonId: null,
43202
- access: "view"
43203
- },
43204
- "decoder.pushPacket": {
43205
- capName: "decoder",
43206
- capScope: "system",
43207
- addonId: null,
43208
- access: "view"
43209
- },
43210
43798
  "decoder.reprobeHwaccel": {
43211
43799
  capName: "decoder",
43212
43800
  capScope: "system",
43213
43801
  addonId: null,
43214
43802
  access: "create"
43215
43803
  },
43216
- "decoder.supportsCodec": {
43217
- capName: "decoder",
43218
- capScope: "system",
43219
- addonId: null,
43220
- access: "view"
43221
- },
43222
- "decoder.updateConfig": {
43223
- capName: "decoder",
43224
- capScope: "system",
43225
- addonId: null,
43226
- access: "view"
43227
- },
43228
43804
  "detectionPipeline.applyDeviceSettingsPatch": {
43229
43805
  capName: "detection-pipeline",
43230
43806
  capScope: "device",
@@ -44713,12 +45289,24 @@ Object.freeze({
44713
45289
  addonId: null,
44714
45290
  access: "view"
44715
45291
  },
45292
+ "localNetwork.addCustomAddress": {
45293
+ capName: "local-network",
45294
+ capScope: "system",
45295
+ addonId: null,
45296
+ access: "create"
45297
+ },
44716
45298
  "localNetwork.downloadCa": {
44717
45299
  capName: "local-network",
44718
45300
  capScope: "system",
44719
45301
  addonId: null,
44720
45302
  access: "view"
44721
45303
  },
45304
+ "localNetwork.getAddresses": {
45305
+ capName: "local-network",
45306
+ capScope: "system",
45307
+ addonId: null,
45308
+ access: "view"
45309
+ },
44722
45310
  "localNetwork.getAllowedAddresses": {
44723
45311
  capName: "local-network",
44724
45312
  capScope: "system",
@@ -44731,6 +45319,12 @@ Object.freeze({
44731
45319
  addonId: null,
44732
45320
  access: "view"
44733
45321
  },
45322
+ "localNetwork.getHubAddresses": {
45323
+ capName: "local-network",
45324
+ capScope: "system",
45325
+ addonId: null,
45326
+ access: "view"
45327
+ },
44734
45328
  "localNetwork.getNotificationEndpoint": {
44735
45329
  capName: "local-network",
44736
45330
  capScope: "system",
@@ -44767,6 +45361,12 @@ Object.freeze({
44767
45361
  addonId: null,
44768
45362
  access: "create"
44769
45363
  },
45364
+ "localNetwork.removeCustomAddress": {
45365
+ capName: "local-network",
45366
+ capScope: "system",
45367
+ addonId: null,
45368
+ access: "delete"
45369
+ },
44770
45370
  "localNetwork.resetAllowlistToBestMatch": {
44771
45371
  capName: "local-network",
44772
45372
  capScope: "system",
@@ -44779,6 +45379,12 @@ Object.freeze({
44779
45379
  addonId: null,
44780
45380
  access: "create"
44781
45381
  },
45382
+ "localNetwork.setAddressRole": {
45383
+ capName: "local-network",
45384
+ capScope: "system",
45385
+ addonId: null,
45386
+ access: "create"
45387
+ },
44782
45388
  "localNetwork.setAllowedAddresses": {
44783
45389
  capName: "local-network",
44784
45390
  capScope: "system",
@@ -46225,6 +46831,12 @@ Object.freeze({
46225
46831
  addonId: null,
46226
46832
  access: "create"
46227
46833
  },
46834
+ "pipelineAnalytics.setRetrainFrameComplete": {
46835
+ capName: "pipeline-analytics",
46836
+ capScope: "device",
46837
+ addonId: null,
46838
+ access: "create"
46839
+ },
46228
46840
  "pipelineAnalytics.setTrackFlags": {
46229
46841
  capName: "pipeline-analytics",
46230
46842
  capScope: "device",
@@ -46261,6 +46873,12 @@ Object.freeze({
46261
46873
  addonId: null,
46262
46874
  access: "delete"
46263
46875
  },
46876
+ "pipelineAnalytics.writeRetrainArchive": {
46877
+ capName: "pipeline-analytics",
46878
+ capScope: "device",
46879
+ addonId: null,
46880
+ access: "create"
46881
+ },
46264
46882
  "pipelineExecutor.cacheFrameInPool": {
46265
46883
  capName: "pipeline-executor",
46266
46884
  capScope: "system",
@@ -46273,13 +46891,13 @@ Object.freeze({
46273
46891
  addonId: null,
46274
46892
  access: "delete"
46275
46893
  },
46276
- "pipelineExecutor.deleteModel": {
46894
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
46277
46895
  capName: "pipeline-executor",
46278
46896
  capScope: "system",
46279
46897
  addonId: null,
46280
46898
  access: "delete"
46281
46899
  },
46282
- "pipelineExecutor.deleteTemplate": {
46900
+ "pipelineExecutor.deleteModel": {
46283
46901
  capName: "pipeline-executor",
46284
46902
  capScope: "system",
46285
46903
  addonId: null,
@@ -46423,12 +47041,6 @@ Object.freeze({
46423
47041
  addonId: null,
46424
47042
  access: "view"
46425
47043
  },
46426
- "pipelineExecutor.listTemplates": {
46427
- capName: "pipeline-executor",
46428
- capScope: "system",
46429
- addonId: null,
46430
- access: "view"
46431
- },
46432
47044
  "pipelineExecutor.rearmInferenceDevice": {
46433
47045
  capName: "pipeline-executor",
46434
47046
  capScope: "system",
@@ -46453,12 +47065,6 @@ Object.freeze({
46453
47065
  addonId: null,
46454
47066
  access: "create"
46455
47067
  },
46456
- "pipelineExecutor.saveTemplate": {
46457
- capName: "pipeline-executor",
46458
- capScope: "system",
46459
- addonId: null,
46460
- access: "create"
46461
- },
46462
47068
  "pipelineExecutor.setVideoPipelineSteps": {
46463
47069
  capName: "pipeline-executor",
46464
47070
  capScope: "system",
@@ -46477,41 +47083,35 @@ Object.freeze({
46477
47083
  addonId: null,
46478
47084
  access: "create"
46479
47085
  },
46480
- "pipelineExecutor.updateTemplate": {
46481
- capName: "pipeline-executor",
46482
- capScope: "system",
46483
- addonId: null,
46484
- access: "create"
46485
- },
46486
47086
  "pipelineExecutor.validatePipeline": {
46487
47087
  capName: "pipeline-executor",
46488
47088
  capScope: "system",
46489
47089
  addonId: null,
46490
47090
  access: "view"
46491
47091
  },
46492
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
47092
+ "pipelineOrchestrator.applyAutoTune": {
46493
47093
  capName: "pipeline-orchestrator",
46494
47094
  capScope: "system",
46495
47095
  addonId: null,
46496
47096
  access: "create"
46497
47097
  },
46498
- "pipelineOrchestrator.assignAudio": {
47098
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
46499
47099
  capName: "pipeline-orchestrator",
46500
47100
  capScope: "system",
46501
47101
  addonId: null,
46502
47102
  access: "create"
46503
47103
  },
46504
- "pipelineOrchestrator.assignPipeline": {
47104
+ "pipelineOrchestrator.assignAudio": {
46505
47105
  capName: "pipeline-orchestrator",
46506
47106
  capScope: "system",
46507
47107
  addonId: null,
46508
47108
  access: "create"
46509
47109
  },
46510
- "pipelineOrchestrator.deleteTemplate": {
47110
+ "pipelineOrchestrator.assignPipeline": {
46511
47111
  capName: "pipeline-orchestrator",
46512
47112
  capScope: "system",
46513
47113
  addonId: null,
46514
- access: "delete"
47114
+ access: "create"
46515
47115
  },
46516
47116
  "pipelineOrchestrator.getAgentLoad": {
46517
47117
  capName: "pipeline-orchestrator",
@@ -46603,6 +47203,12 @@ Object.freeze({
46603
47203
  addonId: null,
46604
47204
  access: "view"
46605
47205
  },
47206
+ "pipelineOrchestrator.getEffectiveShares": {
47207
+ capName: "pipeline-orchestrator",
47208
+ capScope: "system",
47209
+ addonId: null,
47210
+ access: "view"
47211
+ },
46606
47212
  "pipelineOrchestrator.getGlobalMetrics": {
46607
47213
  capName: "pipeline-orchestrator",
46608
47214
  capScope: "system",
@@ -46639,19 +47245,19 @@ Object.freeze({
46639
47245
  addonId: null,
46640
47246
  access: "view"
46641
47247
  },
46642
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
47248
+ "pipelineOrchestrator.getPlacementStats": {
46643
47249
  capName: "pipeline-orchestrator",
46644
47250
  capScope: "system",
46645
47251
  addonId: null,
46646
47252
  access: "view"
46647
47253
  },
46648
- "pipelineOrchestrator.listAgentSettings": {
47254
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
46649
47255
  capName: "pipeline-orchestrator",
46650
47256
  capScope: "system",
46651
47257
  addonId: null,
46652
47258
  access: "view"
46653
47259
  },
46654
- "pipelineOrchestrator.listTemplates": {
47260
+ "pipelineOrchestrator.listAgentSettings": {
46655
47261
  capName: "pipeline-orchestrator",
46656
47262
  capScope: "system",
46657
47263
  addonId: null,
@@ -46663,6 +47269,12 @@ Object.freeze({
46663
47269
  addonId: null,
46664
47270
  access: "create"
46665
47271
  },
47272
+ "pipelineOrchestrator.planAutoTune": {
47273
+ capName: "pipeline-orchestrator",
47274
+ capScope: "system",
47275
+ addonId: null,
47276
+ access: "view"
47277
+ },
46666
47278
  "pipelineOrchestrator.rebalance": {
46667
47279
  capName: "pipeline-orchestrator",
46668
47280
  capScope: "system",
@@ -46705,12 +47317,6 @@ Object.freeze({
46705
47317
  addonId: null,
46706
47318
  access: "create"
46707
47319
  },
46708
- "pipelineOrchestrator.saveTemplate": {
46709
- capName: "pipeline-orchestrator",
46710
- capScope: "system",
46711
- addonId: null,
46712
- access: "create"
46713
- },
46714
47320
  "pipelineOrchestrator.setAgentCapabilities": {
46715
47321
  capName: "pipeline-orchestrator",
46716
47322
  capScope: "system",
@@ -46723,12 +47329,6 @@ Object.freeze({
46723
47329
  addonId: null,
46724
47330
  access: "create"
46725
47331
  },
46726
- "pipelineOrchestrator.setAgentDetectWeight": {
46727
- capName: "pipeline-orchestrator",
46728
- capScope: "system",
46729
- addonId: null,
46730
- access: "create"
46731
- },
46732
47332
  "pipelineOrchestrator.setAgentInferenceDevices": {
46733
47333
  capName: "pipeline-orchestrator",
46734
47334
  capScope: "system",
@@ -46765,6 +47365,12 @@ Object.freeze({
46765
47365
  addonId: null,
46766
47366
  access: "create"
46767
47367
  },
47368
+ "pipelineOrchestrator.setCameraStepSettings": {
47369
+ capName: "pipeline-orchestrator",
47370
+ capScope: "system",
47371
+ addonId: null,
47372
+ access: "create"
47373
+ },
46768
47374
  "pipelineOrchestrator.setCameraStepToggle": {
46769
47375
  capName: "pipeline-orchestrator",
46770
47376
  capScope: "system",
@@ -46783,25 +47389,37 @@ Object.freeze({
46783
47389
  addonId: null,
46784
47390
  access: "create"
46785
47391
  },
47392
+ "pipelineOrchestrator.setLoadBalancingShares": {
47393
+ capName: "pipeline-orchestrator",
47394
+ capScope: "system",
47395
+ addonId: null,
47396
+ access: "create"
47397
+ },
46786
47398
  "pipelineOrchestrator.setPipelineDevicePin": {
46787
47399
  capName: "pipeline-orchestrator",
46788
47400
  capScope: "system",
46789
47401
  addonId: null,
46790
47402
  access: "create"
46791
47403
  },
46792
- "pipelineOrchestrator.unassignAudio": {
47404
+ "pipelineOrchestrator.setShareSource": {
46793
47405
  capName: "pipeline-orchestrator",
46794
47406
  capScope: "system",
46795
47407
  addonId: null,
46796
47408
  access: "create"
46797
47409
  },
46798
- "pipelineOrchestrator.unassignPipeline": {
47410
+ "pipelineOrchestrator.suggestShares": {
47411
+ capName: "pipeline-orchestrator",
47412
+ capScope: "system",
47413
+ addonId: null,
47414
+ access: "view"
47415
+ },
47416
+ "pipelineOrchestrator.unassignAudio": {
46799
47417
  capName: "pipeline-orchestrator",
46800
47418
  capScope: "system",
46801
47419
  addonId: null,
46802
47420
  access: "create"
46803
47421
  },
46804
- "pipelineOrchestrator.updateTemplate": {
47422
+ "pipelineOrchestrator.unassignPipeline": {
46805
47423
  capName: "pipeline-orchestrator",
46806
47424
  capScope: "system",
46807
47425
  addonId: null,
@@ -48241,12 +48859,6 @@ Object.freeze({
48241
48859
  addonId: null,
48242
48860
  access: "view"
48243
48861
  },
48244
- "streamBroker.pullFrameHandles": {
48245
- capName: "stream-broker",
48246
- capScope: "system",
48247
- addonId: null,
48248
- access: "view"
48249
- },
48250
48862
  "streamBroker.regenerateRtspToken": {
48251
48863
  capName: "stream-broker",
48252
48864
  capScope: "system",
@@ -48313,12 +48925,6 @@ Object.freeze({
48313
48925
  addonId: null,
48314
48926
  access: "create"
48315
48927
  },
48316
- "streamBroker.subscribeFrames": {
48317
- capName: "stream-broker",
48318
- capScope: "system",
48319
- addonId: null,
48320
- access: "create"
48321
- },
48322
48928
  "streamBroker.unassignProfile": {
48323
48929
  capName: "stream-broker",
48324
48930
  capScope: "system",
@@ -48331,12 +48937,6 @@ Object.freeze({
48331
48937
  addonId: null,
48332
48938
  access: "create"
48333
48939
  },
48334
- "streamBroker.unsubscribeFrames": {
48335
- capName: "stream-broker",
48336
- capScope: "system",
48337
- addonId: null,
48338
- access: "create"
48339
- },
48340
48940
  "streamCatalog.getCatalog": {
48341
48941
  capName: "stream-catalog",
48342
48942
  capScope: "device",
@@ -48631,18 +49231,36 @@ Object.freeze({
48631
49231
  addonId: null,
48632
49232
  access: "delete"
48633
49233
  },
49234
+ "userManagement.findUserByExternalIdentity": {
49235
+ capName: "user-management",
49236
+ capScope: "system",
49237
+ addonId: null,
49238
+ access: "view"
49239
+ },
48634
49240
  "userManagement.getTotpStatus": {
48635
49241
  capName: "user-management",
48636
49242
  capScope: "system",
48637
49243
  addonId: null,
48638
49244
  access: "view"
48639
49245
  },
49246
+ "userManagement.linkExternalIdentity": {
49247
+ capName: "user-management",
49248
+ capScope: "system",
49249
+ addonId: null,
49250
+ access: "create"
49251
+ },
48640
49252
  "userManagement.listApiKeys": {
48641
49253
  capName: "user-management",
48642
49254
  capScope: "system",
48643
49255
  addonId: null,
48644
49256
  access: "view"
48645
49257
  },
49258
+ "userManagement.listExternalIdentities": {
49259
+ capName: "user-management",
49260
+ capScope: "system",
49261
+ addonId: null,
49262
+ access: "view"
49263
+ },
48646
49264
  "userManagement.listOauthSessions": {
48647
49265
  capName: "user-management",
48648
49266
  capScope: "system",
@@ -48721,6 +49339,12 @@ Object.freeze({
48721
49339
  addonId: null,
48722
49340
  access: "create"
48723
49341
  },
49342
+ "userManagement.unlinkExternalIdentity": {
49343
+ capName: "user-management",
49344
+ capScope: "system",
49345
+ addonId: null,
49346
+ access: "delete"
49347
+ },
48724
49348
  "userManagement.updateUser": {
48725
49349
  capName: "user-management",
48726
49350
  capScope: "system",
@@ -49033,6 +49657,12 @@ Object.freeze({
49033
49657
  addonId: null,
49034
49658
  access: "create"
49035
49659
  },
49660
+ "webrtcSession.applyDownlinkProbe": {
49661
+ capName: "webrtc-session",
49662
+ capScope: "device",
49663
+ addonId: null,
49664
+ access: "create"
49665
+ },
49036
49666
  "webrtcSession.closeSession": {
49037
49667
  capName: "webrtc-session",
49038
49668
  capScope: "device",
@@ -51050,11 +51680,6 @@ Object.freeze({
51050
51680
  form: "single",
51051
51681
  optional: false
51052
51682
  }],
51053
- "decoder.createSession": [{
51054
- name: "deviceId",
51055
- form: "single",
51056
- optional: true
51057
- }],
51058
51683
  "detectionPipeline.applyDeviceSettingsPatch": [{
51059
51684
  name: "deviceId",
51060
51685
  form: "single",
@@ -52265,6 +52890,11 @@ Object.freeze({
52265
52890
  form: "single",
52266
52891
  optional: false
52267
52892
  }],
52893
+ "pipelineAnalytics.setRetrainFrameComplete": [{
52894
+ name: "deviceId",
52895
+ form: "single",
52896
+ optional: false
52897
+ }],
52268
52898
  "pipelineAnalytics.setTrackFlags": [{
52269
52899
  name: "deviceId",
52270
52900
  form: "single",
@@ -52285,6 +52915,11 @@ Object.freeze({
52285
52915
  form: "single",
52286
52916
  optional: false
52287
52917
  }],
52918
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
52919
+ name: "deviceIds",
52920
+ form: "array",
52921
+ optional: true
52922
+ }],
52288
52923
  "pipelineExecutor.runPipeline": [{
52289
52924
  name: "deviceId",
52290
52925
  form: "single",
@@ -52390,6 +53025,11 @@ Object.freeze({
52390
53025
  form: "single",
52391
53026
  optional: false
52392
53027
  }],
53028
+ "pipelineOrchestrator.setCameraStepSettings": [{
53029
+ name: "deviceId",
53030
+ form: "single",
53031
+ optional: false
53032
+ }],
52393
53033
  "pipelineOrchestrator.setCameraStepToggle": [{
52394
53034
  name: "deviceId",
52395
53035
  form: "single",
@@ -53161,6 +53801,11 @@ Object.freeze({
53161
53801
  form: "single",
53162
53802
  optional: false
53163
53803
  }],
53804
+ "webrtcSession.applyDownlinkProbe": [{
53805
+ name: "deviceId",
53806
+ form: "single",
53807
+ optional: false
53808
+ }],
53164
53809
  "webrtcSession.closeSession": [{
53165
53810
  name: "deviceId",
53166
53811
  form: "single",
@@ -53694,7 +54339,7 @@ var STATE_SUMMARY_VARS = [
53694
54339
  {
53695
54340
  name: "summarySection",
53696
54341
  label: "Summary: this section",
53697
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
54342
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
53698
54343
  example: "Batterie scariche",
53699
54344
  group: "system",
53700
54345
  families: ["rule"],
@@ -56292,7 +56937,7 @@ var amcrestCameraSchema = object({
56292
56937
  port: number().int().min(1).max(65535).default(80).describe("HTTP CGI port"),
56293
56938
  https: boolean().default(false).describe("Use HTTPS for CGI"),
56294
56939
  username: string().default("admin").describe("Username"),
56295
- password: string().default("").describe("Password"),
56940
+ password: string().default("").describe("Password").meta({ secret: true }),
56296
56941
  channel: number().int().min(1).default(1).describe("Camera channel (1-based)"),
56297
56942
  deviceCache: amcrestDeviceCacheSchema.optional()
56298
56943
  });
@@ -59464,7 +60109,7 @@ function writeJpeg(res, bytes, headOnly) {
59464
60109
  * Node-only (`node:child_process`), so it lives under `@camstack/types/node`.
59465
60110
  */
59466
60111
  /** The detail a site refusing for want of a binary puts in its refusal. */
59467
- var NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node (D540)";
60112
+ var NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node";
59468
60113
  /**
59469
60114
  * {@link pinnedFfmpegSpawner}, asked at the point of use through the node's
59470
60115
  * resolver (`memoizePinnedFfmpeg`). A site that keeps the RESOLVER rather than