@camstack/addon-provider-dreo 0.2.119 → 0.2.121

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 +1064 -534
  2. package/dist/addon.mjs +1064 -534
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
37
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
38
38
  //#endregion
39
- //#region ../types/dist/event-category-BGmz_oxW.mjs
39
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
40
40
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
41
41
  EventCategory["SystemBoot"] = "system.boot";
42
42
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -537,15 +537,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
537
537
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
538
538
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
539
539
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
540
- /**
541
- * Per-agent hwaccel preference changed (user override set, cleared, or
542
- * re-probed). Observability event — decoders pull the current pref at
543
- * `createSession`, so running sessions keep their current backend until
544
- * they rotate naturally (camera add/remove, stream restart). Future
545
- * work can wire a listener in stream-broker that force-rotates live
546
- * sessions; for now this event powers logs + admin-UI toast feedback.
547
- */
548
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
549
540
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
550
541
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
551
542
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5416,7 +5407,7 @@ var ZodIssueCode = {
5416
5407
  var ZodFirstPartyTypeKind;
5417
5408
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5418
5409
  //#endregion
5419
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5410
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5420
5411
  /**
5421
5412
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5422
5413
  * window to float samples (D455).
@@ -6782,32 +6773,12 @@ object({
6782
6773
  audioCodec: string().optional(),
6783
6774
  metadata: record(string(), unknown()).readonly().optional()
6784
6775
  });
6785
- var EncodedPacketSchema = object({
6786
- type: _enum(["video", "audio"]),
6787
- data: _instanceof(Uint8Array),
6788
- pts: number(),
6789
- dts: number(),
6790
- keyframe: boolean(),
6791
- codec: string()
6792
- });
6793
- var DecodedFrameSchema = object({
6794
- data: _instanceof(Uint8Array),
6795
- width: number(),
6796
- height: number(),
6797
- format: _enum([
6798
- "jpeg",
6799
- "rgb",
6800
- "bgr",
6801
- "yuv420",
6802
- "gray"
6803
- ]),
6804
- timestamp: number()
6805
- });
6806
6776
  /**
6807
6777
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6808
6778
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6809
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6810
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6779
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6780
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6781
+ * over tRPC / Moleculer.
6811
6782
  *
6812
6783
  * The `satisfies` assertion below pins this schema to the interface: if a
6813
6784
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6833,50 +6804,6 @@ var FrameHandleSchema = object({
6833
6804
  slotCount: number().int().positive()
6834
6805
  });
6835
6806
  /**
6836
- * Pixel format a frame-handle subscriber can request from the broker
6837
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6838
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6839
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6840
- * payload, and no decoded-frame consumer requests it over the shm plane.
6841
- */
6842
- var FrameHandleFormatSchema = _enum([
6843
- "rgb",
6844
- "bgr",
6845
- "yuv420",
6846
- "gray"
6847
- ]);
6848
- /**
6849
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6850
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6851
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6852
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6853
- * they asked for with no broker-side conversion.
6854
- */
6855
- var SubscribeFramesInputSchema = object({
6856
- brokerId: string(),
6857
- format: FrameHandleFormatSchema,
6858
- /**
6859
- * Optional reader-side cadence hint in frames per second. The broker does
6860
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6861
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6862
- * the consumer can pace its own `pullFrameHandles` polling.
6863
- */
6864
- maxFps: number().positive().optional(),
6865
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6866
- tag: string().optional()
6867
- });
6868
- /**
6869
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6870
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6871
- * `FrameHandle` to a `FrameRingReader`.
6872
- */
6873
- var SubscribeFramesResultSchema = object({
6874
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6875
- subscriptionId: string(),
6876
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6877
- maxFps: number().nonnegative()
6878
- });
6879
- /**
6880
6807
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6881
6808
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6882
6809
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6884,8 +6811,8 @@ var SubscribeFramesResultSchema = object({
6884
6811
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6885
6812
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6886
6813
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6887
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6888
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6814
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6815
+ * it.
6889
6816
  */
6890
6817
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6891
6818
  var DecodedAudioChunkSchema = object({
@@ -6903,11 +6830,10 @@ var DecodedAudioChunkSchema = object({
6903
6830
  format: AudioChunkFormatSchema.optional()
6904
6831
  });
6905
6832
  /**
6906
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6907
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6908
- * asks the broker for the decoded audio-chunk stream of one broker; the
6909
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6910
- * `pullAudioChunks`.
6833
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6834
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6835
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6836
+ * the consumer drains via `pullAudioChunks`.
6911
6837
  */
6912
6838
  var SubscribeAudioChunksInputSchema = object({
6913
6839
  brokerId: string(),
@@ -6938,9 +6864,7 @@ var BrokerStatsSchema = object({
6938
6864
  "stopped"
6939
6865
  ]),
6940
6866
  inputFps: number(),
6941
- decodeFps: number(),
6942
6867
  encodedSubscribers: number(),
6943
- decodedSubscribers: number(),
6944
6868
  uptimeMs: number(),
6945
6869
  bitrateKbps: number(),
6946
6870
  idrIntervalMs: number(),
@@ -6953,14 +6877,6 @@ var BrokerStatsSchema = object({
6953
6877
  preBufferMs: number(),
6954
6878
  preBufferPackets: number(),
6955
6879
  /**
6956
- * Moleculer node id of the decoder provider currently servicing this
6957
- * stream's decoded subscribers. `null` until the deferred decoder is
6958
- * created (no decoded clients yet, or codec not detected). Surfaces the
6959
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6960
- * a separate cap call per broker.
6961
- */
6962
- decoderNodeId: string().nullable(),
6963
- /**
6964
6880
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6965
6881
  * when the stream has no audio track or the broker is in cold start.
6966
6882
  * `supported = false` means the codec was detected but the local
@@ -10296,70 +10212,6 @@ var StorageLocationDeclarationSchema = object({
10296
10212
  "backup"
10297
10213
  ]).optional()
10298
10214
  });
10299
- var DecoderStatsSchema = object({
10300
- inputFps: number(),
10301
- outputFps: number(),
10302
- avgDecodeTimeMs: number(),
10303
- droppedFrames: number(),
10304
- /**
10305
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10306
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10307
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10308
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10309
- */
10310
- lagMs: number().optional(),
10311
- effectiveFps: number().optional(),
10312
- adaptiveFps: number().optional()
10313
- });
10314
- var DecoderSessionConfigSchema = object({
10315
- codec: string(),
10316
- maxFps: number().default(0),
10317
- outputFormat: _enum([
10318
- "jpeg",
10319
- "rgb",
10320
- "bgr",
10321
- "yuv420",
10322
- "gray"
10323
- ]).default("jpeg"),
10324
- scale: number().default(1),
10325
- width: number().optional(),
10326
- height: number().optional(),
10327
- /**
10328
- * Identifier of the camera this decoder session serves. Optional
10329
- * because the cap is generic (any caller could request decode), but
10330
- * stream-broker passes it so decoder logs include `deviceId` for
10331
- * per-camera filtering when diagnosing failures (e.g. node-av
10332
- * sendPacket errors on a single hung camera).
10333
- */
10334
- deviceId: number().int().nonnegative().optional(),
10335
- /**
10336
- * Free-form tag for log scoping. Stream-broker uses
10337
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10338
- * on every line so `grep tag=broker:5/high` filters one camera
10339
- * profile cleanly.
10340
- */
10341
- tag: string().optional(),
10342
- /**
10343
- * Where the session delivers decoded frames (Phase 5 / D9):
10344
- *
10345
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10346
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10347
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10348
- * into an OS shared-memory ring and drained as zero-pixel
10349
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10350
- * other — `pullFrames` returns nothing for an `'shm'` session and
10351
- * `pullHandles` returns nothing for a `'callback'` session.
10352
- */
10353
- frameSink: _enum(["callback", "shm"]).default("callback"),
10354
- /**
10355
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10356
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10357
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10358
- * stream-broker's `streamingDebug` gate — off by default so production logs
10359
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10360
- */
10361
- debug: boolean().optional()
10362
- });
10363
10215
  /**
10364
10216
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10365
10217
  * an addon declares its channels in.
@@ -10502,6 +10354,26 @@ var ClipSearchStrictnessSchema = _enum([
10502
10354
  "balanced",
10503
10355
  "strict"
10504
10356
  ]);
10357
+ /** Steps whose effect a root label can BE. */
10358
+ var LABEL_SUPPLY_STEP_IDS = [
10359
+ "animal-classifier",
10360
+ "vehicle-classifier",
10361
+ "package-detection"
10362
+ ];
10363
+ /** Steps whose box a root detection can BE. */
10364
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10365
+ /**
10366
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10367
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10368
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10369
+ * no camera tree carries.)
10370
+ */
10371
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10372
+ [
10373
+ ...LABEL_SUPPLY_STEP_IDS,
10374
+ ...CROP_SUPPLY_STEP_IDS,
10375
+ ...MASK_SUPPLY_STEP_IDS
10376
+ ];
10505
10377
  var MODEL_FORMATS = [
10506
10378
  "onnx",
10507
10379
  "coreml",
@@ -10530,7 +10402,53 @@ var ModelFormatEntrySchema = object({
10530
10402
  /** Multi-file payload (directory members or sibling files). */
10531
10403
  files: array(string()).readonly().optional(),
10532
10404
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10533
- runtimes: array(_enum(["python"])).readonly().optional()
10405
+ runtimes: array(_enum(["python"])).readonly().optional(),
10406
+ /**
10407
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10408
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10409
+ * weight file) comes from the downloader's generated table, kept in step
10410
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10411
+ * node records the revision it downloaded next to the file
10412
+ * (`<file>.revision`); a copy with no record or a different one is stale
10413
+ * unless its weight file hashes to the revision, and a stale copy is
10414
+ * downloaded again, the old one serving until the new one is complete. No
10415
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10416
+ */
10417
+ revision: string().min(1).optional()
10418
+ });
10419
+ /**
10420
+ * What a node holds for one (model, format) (D746). `current` is a complete
10421
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10422
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10423
+ * no or a different revision record, or a missing sibling. `missing` is no
10424
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10425
+ * reclaimable bytes and a copy about to be replaced.
10426
+ */
10427
+ var ModelOnDiskStateSchema = _enum([
10428
+ "current",
10429
+ "stale",
10430
+ "missing"
10431
+ ]);
10432
+ /**
10433
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10434
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10435
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10436
+ */
10437
+ var ModelFormatPrecisionSchema = _enum([
10438
+ "fp32",
10439
+ "fp16",
10440
+ "int8"
10441
+ ]);
10442
+ /**
10443
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10444
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10445
+ * them omits them, and a reader falls back to `downloaded`.
10446
+ */
10447
+ var PipelineModelFormatStatusSchema = object({
10448
+ downloaded: boolean(),
10449
+ sizeMB: number(),
10450
+ onDisk: ModelOnDiskStateSchema.optional(),
10451
+ precision: ModelFormatPrecisionSchema.optional()
10534
10452
  });
10535
10453
  /**
10536
10454
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10571,11 +10489,11 @@ var ModelVariantGroupSchema = object({
10571
10489
  /** Quantization axis. Omit ⇒ the fp32 base build. */
10572
10490
  precision: _enum(["fp32", "int8"]).optional(),
10573
10491
  /**
10574
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
10575
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
10576
- * future performance variants plug into.
10492
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
10493
+ * an alternate training of the same family (Scrypted `relu_test`); chip
10494
+ * label is "Test".
10577
10495
  */
10578
- optimization: _enum(["standard", "fast"]).optional(),
10496
+ optimization: _enum(["standard", "test"]).optional(),
10579
10497
  /**
10580
10498
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
10581
10499
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -10598,9 +10516,10 @@ var ModelProviderIdSchema = _enum([
10598
10516
  * are per upstream. A persisted custom-model row written when this field was a
10599
10517
  * string still parses — the string is lifted into `{ weights }`.
10600
10518
  *
10601
- * Every licence surface (the admin "Models and licenses" page,
10602
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
10603
- * these records by `scripts/gen-model-licenses.ts` (D661).
10519
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
10520
+ * model table) is GENERATED from these records by
10521
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
10522
+ * `camstack/docs` → `/docs/detection/models`.
10604
10523
  */
10605
10524
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
10606
10525
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -10633,6 +10552,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10633
10552
  /** True when the weights or their data forbid commercial use. */
10634
10553
  nonCommercial: boolean().optional()
10635
10554
  }));
10555
+ /**
10556
+ * One step a ROOT detector can supply from its own output (D730) — see
10557
+ * `ModelCatalogEntry.suppliesSteps`.
10558
+ *
10559
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10560
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10561
+ * the root cannot produce (shown as unavailable, never a blocker).
10562
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10563
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10564
+ * child of the `parentMacro` detection that contains it — never a track.
10565
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10566
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10567
+ * detection in the shape that step produces. Derived from the model's
10568
+ * postprocessor on read, never stored by an import.
10569
+ */
10570
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10571
+ object({
10572
+ kind: literal("label"),
10573
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10574
+ labelToEffect: record(string(), string()),
10575
+ uncovered: array(string()).readonly()
10576
+ }),
10577
+ object({
10578
+ kind: literal("crop"),
10579
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10580
+ rootLabels: array(string()).readonly(),
10581
+ parentMacro: _enum(["vehicle", "person"]),
10582
+ childClass: _enum(["plate", "face"]),
10583
+ /**
10584
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10585
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10586
+ * stored by an import.
10587
+ */
10588
+ rootInputPx: number().int().positive().optional()
10589
+ }),
10590
+ object({
10591
+ kind: literal("mask"),
10592
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10593
+ })
10594
+ ]);
10636
10595
  var ModelCatalogEntrySchema = object({
10637
10596
  id: string(),
10638
10597
  name: string(),
@@ -10698,6 +10657,35 @@ var ModelCatalogEntrySchema = object({
10698
10657
  */
10699
10658
  defaultConfidence: number().min(0).max(1).optional(),
10700
10659
  /**
10660
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10661
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10662
+ * absent here runs at the step slider's global default. The same row shape
10663
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10664
+ * a measured table is copied in as-is. An operator override is bound to the
10665
+ * model it was made for and does not survive a model change (D738). A custom
10666
+ * / imported model may declare it; without it, the global defaults apply.
10667
+ */
10668
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10669
+ /**
10670
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10671
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10672
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10673
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10674
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10675
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10676
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10677
+ */
10678
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10679
+ /**
10680
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10681
+ * minimum DETECTION score from which this root's own fine label (species,
10682
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10683
+ * keeps its macro class without the fine label. `1` = never take it from
10684
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10685
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10686
+ */
10687
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10688
+ /**
10701
10689
  * When true, the executor produces a landmark-aligned crop (similarity warp
10702
10690
  * onto the canonical template) before this step runs, instead of a plain
10703
10691
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10759,6 +10747,16 @@ var ModelCatalogEntrySchema = object({
10759
10747
  */
10760
10748
  classMap: DetectionCatalogClassMapSchema.optional(),
10761
10749
  /**
10750
+ * The pipeline steps this ROOT detector can supply from its own output
10751
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10752
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10753
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10754
+ * by hand and never assumed per family; a row without it is derived on read
10755
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10756
+ * `useRootModel` flag (`resolveRootSupply`).
10757
+ */
10758
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10759
+ /**
10762
10760
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10763
10761
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10764
10762
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12360,13 +12358,6 @@ var BrokerRtspClientSchema = object({
12360
12358
  lastRtpAt: number(),
12361
12359
  bytesSent: number()
12362
12360
  });
12363
- var BrokerDecodedClientSchema = object({
12364
- tag: string(),
12365
- subscribedAt: number(),
12366
- maxFps: number(),
12367
- framesDelivered: number(),
12368
- framesDropped: number()
12369
- });
12370
12361
  var BrokerAudioClientSchema = object({
12371
12362
  tag: string(),
12372
12363
  subscribedAt: number(),
@@ -12458,7 +12449,6 @@ var BrokerEncodedClientSchema = object({
12458
12449
  });
12459
12450
  var BrokerClientsSchema = object({
12460
12451
  rtsp: array(BrokerRtspClientSchema).readonly(),
12461
- decoded: array(BrokerDecodedClientSchema).readonly(),
12462
12452
  audio: array(BrokerAudioClientSchema).readonly(),
12463
12453
  encoded: array(BrokerEncodedClientSchema).readonly(),
12464
12454
  pipeClients: number(),
@@ -12827,11 +12817,7 @@ method(object({
12827
12817
  auth: "admin"
12828
12818
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12829
12819
  brokerId: string(),
12830
- channel: _enum([
12831
- "rtsp",
12832
- "decoded",
12833
- "audio"
12834
- ]),
12820
+ channel: _enum(["rtsp", "audio"]),
12835
12821
  handle: string()
12836
12822
  }), object({ killed: boolean() }), {
12837
12823
  kind: "mutation",
@@ -12866,10 +12852,7 @@ method(object({
12866
12852
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12867
12853
  subscriptionId: string(),
12868
12854
  maxCount: number().int().positive().default(8)
12869
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12870
- subscriptionId: string(),
12871
- maxCount: number().int().positive().default(4)
12872
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12855
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12873
12856
  brokerId: string(),
12874
12857
  seconds: number().min(0).max(30)
12875
12858
  }), _void(), {
@@ -14128,54 +14111,12 @@ id: union([string(), number()]) }), {
14128
14111
  kind: "mutation",
14129
14112
  auth: "admin"
14130
14113
  });
14131
- /**
14132
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14133
- * exposed via `decoder.getShmStats` so downstream consumers can
14134
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14135
- */
14136
- var ShmRingStatsSchema = object({
14137
- sessionId: string(),
14138
- slotCount: number().int(),
14139
- slotByteLength: number().int(),
14140
- segmentBytes: number().int(),
14141
- budgetMb: number().int(),
14142
- framesWritten: number().int(),
14143
- getFrameHits: number().int(),
14144
- getFrameMisses: number().int()
14145
- });
14146
- method(object({ codec: string() }), boolean()), method(_void(), object({
14114
+ method(_void(), object({
14147
14115
  id: string(),
14148
14116
  name: string(),
14149
- isPullMode: boolean().optional(),
14150
- priority: number().optional(),
14151
14117
  hwaccel: string().optional(),
14152
14118
  probedBestHwaccel: string().optional()
14153
- })), method(DecoderSessionConfigSchema, object({
14154
- sessionId: string(),
14155
- nodeId: string()
14156
- })), method(object({ sessionId: string() }), _void()), method(object({
14157
- sessionId: string(),
14158
- packet: EncodedPacketSchema
14159
- }), _void()), method(object({
14160
- sessionId: string(),
14161
- url: string()
14162
- }), _void()), method(object({
14163
- sessionId: string(),
14164
- maxCount: number().default(1),
14165
- waitMs: number().optional()
14166
- }), array(DecodedFrameSchema)), method(object({
14167
- sessionId: string(),
14168
- maxCount: number().default(1),
14169
- waitMs: number().optional()
14170
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14171
- sessionId: string(),
14172
- config: DecoderSessionConfigSchema.partial()
14173
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14174
- sessionId: string(),
14175
- codec: string(),
14176
- outputFormat: string(),
14177
- createdAtMs: number()
14178
- })).readonly()), method(_void(), object({ backend: string() }), {
14119
+ })), method(_void(), object({ backend: string() }), {
14179
14120
  kind: "mutation",
14180
14121
  auth: "admin"
14181
14122
  });
@@ -14231,7 +14172,7 @@ DeviceType.Camera;
14231
14172
  * This matters here more than anywhere else in the repo, because every provider
14232
14173
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
14233
14174
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
14234
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
14175
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
14235
14176
  * camera's own page will ask for its own login. That is correct, and pre-
14236
14177
  * filling it is the operator's business, not ours.
14237
14178
  *
@@ -16224,6 +16165,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16224
16165
  kind: "mutation",
16225
16166
  auth: "admin"
16226
16167
  });
16168
+ var HUB_ADDRESS_ROLES = [
16169
+ "appConnections",
16170
+ "notificationTaps",
16171
+ "internal",
16172
+ "publicEndpoint"
16173
+ ];
16227
16174
  /**
16228
16175
  * Transport bounds for AI capability methods.
16229
16176
  *
@@ -17420,7 +17367,7 @@ method(object({
17420
17367
  timeoutMs: 6e5
17421
17368
  });
17422
17369
  method(object({
17423
- nodeId: string(),
17370
+ targetNodeId: string(),
17424
17371
  modelId: string(),
17425
17372
  format: _enum(MODEL_FORMATS),
17426
17373
  entry: ModelCatalogEntrySchema
@@ -18826,6 +18773,8 @@ var NcSystemEventKindSchema = _enum([
18826
18773
  "stream-offline",
18827
18774
  "node-online",
18828
18775
  "node-offline",
18776
+ "node-restarting",
18777
+ "node-updating",
18829
18778
  "node-inference-unavailable",
18830
18779
  "detection-blind",
18831
18780
  "addon-crash-loop",
@@ -19924,8 +19873,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
19924
19873
  disabledTargetIds: array(string()).default([])
19925
19874
  });
19926
19875
  /**
19927
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
19928
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
19876
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
19877
+ * report a still-true state. `addons` is the crash-looped addons only and
19878
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
19929
19879
  * job is not an open state, and the alarm stays instant.
19930
19880
  */
19931
19881
  var NcStateSummarySectionIdSchema = _enum([
@@ -19937,6 +19887,7 @@ var NcStateSummarySectionIdSchema = _enum([
19937
19887
  "detection-blind",
19938
19888
  "nodes",
19939
19889
  "addons",
19890
+ "addon-updates",
19940
19891
  "updates"
19941
19892
  ]);
19942
19893
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -20417,7 +20368,25 @@ var NcAlarmModeDelaysListSchema = array(object({
20417
20368
  * When this mode may be armed. Absent / null = always allowed (same as a
20418
20369
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
20419
20370
  */
20420
- schedule: NcScheduleSchema.optional()
20371
+ schedule: NcScheduleSchema.optional(),
20372
+ /**
20373
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
20374
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
20375
+ * only one, and the matches ride the triggered notification's mosaic (D705).
20376
+ */
20377
+ notifyDuringEntryDelay: boolean().optional(),
20378
+ /**
20379
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
20380
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20381
+ * is the one that starts the entry delay — the entry-delay notification already names it.
20382
+ */
20383
+ notifySensorRewatched: boolean().optional(),
20384
+ /**
20385
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20386
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20387
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20388
+ */
20389
+ notifySensorIgnored: boolean().optional()
20421
20390
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20422
20391
  var NcAlarmModeDelaysEditListSchema = array(object({
20423
20392
  mode: AlarmArmModeSchema,
@@ -20426,7 +20395,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20426
20395
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
20427
20396
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
20428
20397
  /** Set a schedule, or `null` to clear (mode always allowed again). */
20429
- schedule: NcScheduleSchema.nullable().optional()
20398
+ schedule: NcScheduleSchema.nullable().optional(),
20399
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20400
+ notifyDuringEntryDelay: boolean().nullable().optional(),
20401
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20402
+ notifySensorRewatched: boolean().nullable().optional(),
20403
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20404
+ notifySensorIgnored: boolean().nullable().optional()
20430
20405
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20431
20406
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20432
20407
  var NcAlarmNonBlockingEditSchema = object({
@@ -21387,45 +21362,25 @@ Object.freeze(Object.fromEntries([{
21387
21362
  label: "Face recognition model",
21388
21363
  defaultModelId: "auraface-r100",
21389
21364
  indexName: "the enrolled face gallery",
21390
- options: [
21391
- {
21392
- id: "auraface-r100",
21393
- label: "AuraFace R100"
21394
- },
21395
- {
21396
- id: "arcface-r100",
21397
- label: "ArcFace (ResNet34)"
21398
- },
21399
- {
21400
- id: "inception-resnet-v1",
21401
- label: "Inception ResNet V1"
21402
- }
21403
- ]
21365
+ options: [{
21366
+ id: "auraface-r100",
21367
+ label: "AuraFace R100"
21368
+ }]
21404
21369
  }, {
21405
21370
  stepId: "clip-embedding",
21406
21371
  label: "Semantic search model",
21407
- defaultModelId: "mobileclip-s1",
21372
+ defaultModelId: "siglip2-b16-224",
21408
21373
  indexName: "the object semantic-search index",
21409
- options: [
21410
- {
21411
- id: "mobileclip-s1",
21412
- label: "MobileCLIP S1"
21413
- },
21414
- {
21415
- id: "mobileclip-s2",
21416
- label: "MobileCLIP S2"
21417
- },
21418
- {
21419
- id: "siglip2-b16-224",
21420
- label: "SigLIP2 B/16 (Apache-2.0)"
21421
- }
21422
- ]
21374
+ options: [{
21375
+ id: "siglip2-b16-224",
21376
+ label: "SigLIP2 B/16 (Apache-2.0)"
21377
+ }]
21423
21378
  }].map((s) => [s.stepId, s.defaultModelId])));
21424
21379
  var CLUSTER_STEP_SETTING_FIELDS = [{
21425
21380
  stepId: "face-embedding",
21426
21381
  key: "minLandmarkFaceSize",
21427
- label: "Min face size for recognition (detection px)",
21428
- 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.",
21382
+ label: "Min face size to embed (detection-frame px)",
21383
+ 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.",
21429
21384
  type: "slider",
21430
21385
  min: 0,
21431
21386
  max: 64,
@@ -23345,6 +23300,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23345
23300
  timestamp: number()
23346
23301
  });
23347
23302
  /**
23303
+ * A root model's boxes standing in for one crop-kind step's own inference
23304
+ * (D730) — see `runPipeline.suppliedRoot`.
23305
+ */
23306
+ var SuppliedRootOutputSchema = object({
23307
+ stepId: string(),
23308
+ /** The root model that drew the boxes — stamped on the result. */
23309
+ modelId: string(),
23310
+ detections: array(object({
23311
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23312
+ bbox: tuple([
23313
+ number(),
23314
+ number(),
23315
+ number(),
23316
+ number()
23317
+ ]),
23318
+ score: number(),
23319
+ /**
23320
+ * Five facial landmarks in the same pixels — a face the step's own
23321
+ * detector already re-found inside a root face box (D730), so its
23322
+ * embedder child aligns it exactly as it aligns any detected face.
23323
+ */
23324
+ landmarks: array(object({
23325
+ x: number(),
23326
+ y: number()
23327
+ })).optional()
23328
+ })).min(1)
23329
+ });
23330
+ /**
23348
23331
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23349
23332
  * within the frame, so the executor can re-cut a leaf child ROI at native
23350
23333
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23392,7 +23375,7 @@ var FrameRefSchema = object({
23392
23375
  timestamp: number(),
23393
23376
  capturedAt: number().optional()
23394
23377
  });
23395
- var ModelFormatSchema$1 = _enum([
23378
+ var ModelFormatSchema$2 = _enum([
23396
23379
  "onnx",
23397
23380
  "coreml",
23398
23381
  "openvino",
@@ -23410,7 +23393,7 @@ var PipelineSlotSchema = _enum([
23410
23393
  var PipelineEngineChoiceSchema = object({
23411
23394
  runtime: literal("python"),
23412
23395
  backend: string(),
23413
- format: ModelFormatSchema$1,
23396
+ format: ModelFormatSchema$2,
23414
23397
  device: string().optional()
23415
23398
  });
23416
23399
  /**
@@ -23449,32 +23432,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23449
23432
  group: string().optional(),
23450
23433
  settings: record(string(), unknown()).optional()
23451
23434
  }));
23452
- var PipelineTemplateStepSchema = lazy(() => object({
23453
- addonId: string(),
23454
- enabled: boolean(),
23455
- modelId: string(),
23456
- children: array(PipelineTemplateStepSchema).readonly(),
23457
- settings: record(string(), unknown()).optional()
23458
- }));
23459
- var PipelineTemplateSchema$1 = object({
23460
- id: string(),
23461
- name: string(),
23462
- createdAt: string(),
23463
- updatedAt: string(),
23464
- engine: PipelineEngineChoiceSchema,
23465
- steps: array(PipelineTemplateStepSchema).readonly()
23466
- });
23467
23435
  var PipelineModelOptionSchema = object({
23468
23436
  id: string(),
23469
23437
  name: string(),
23470
- formats: record(string(), object({
23471
- downloaded: boolean(),
23472
- sizeMB: number()
23473
- })),
23438
+ formats: record(string(), PipelineModelFormatStatusSchema),
23474
23439
  group: ModelVariantGroupSchema.optional(),
23475
23440
  legacy: boolean().optional(),
23476
23441
  provider: ModelProviderIdSchema.optional(),
23477
- defaultConfidence: number().optional()
23442
+ defaultConfidence: number().optional(),
23443
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23478
23444
  });
23479
23445
  var ConfigFieldBridge = custom();
23480
23446
  var PipelineAddonSchemaSchema = object({
@@ -23636,6 +23602,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23636
23602
  }), {
23637
23603
  kind: "mutation",
23638
23604
  auth: "admin"
23605
+ }), method(object({
23606
+ nodeId: string(),
23607
+ deviceIds: array(number()).readonly().optional(),
23608
+ dryRun: boolean()
23609
+ }), object({
23610
+ entries: array(object({
23611
+ deviceId: number(),
23612
+ keys: array(string()).readonly()
23613
+ })).readonly(),
23614
+ refused: array(object({
23615
+ deviceId: number(),
23616
+ reason: string()
23617
+ })).readonly()
23618
+ }), {
23619
+ kind: "mutation",
23620
+ auth: "admin"
23639
23621
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23640
23622
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23641
23623
  deviceKey: string(),
@@ -23661,22 +23643,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23661
23643
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23662
23644
  steps: array(PipelineStepInputSchema),
23663
23645
  deviceKey: string().optional()
23664
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23665
- name: string(),
23666
- steps: array(PipelineTemplateStepSchema).readonly(),
23667
- engine: PipelineEngineChoiceSchema
23668
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23669
- id: string(),
23670
- name: string().optional(),
23671
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23672
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23646
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23673
23647
  addonId: string(),
23674
23648
  modelId: string(),
23675
- format: ModelFormatSchema$1
23649
+ format: ModelFormatSchema$2
23676
23650
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23677
23651
  addonId: string(),
23678
23652
  modelId: string(),
23679
- format: ModelFormatSchema$1
23653
+ format: ModelFormatSchema$2
23680
23654
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23681
23655
  steps: array(PipelineStepInputSchema).min(1),
23682
23656
  frame: FrameInputSchema.optional(),
@@ -23742,7 +23716,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23742
23716
  * `device-not-servable`), and nothing reaches the camera's live
23743
23717
  * trace stream. Absent ⇒ unchanged behaviour.
23744
23718
  */
23745
- replay: literal(true).optional()
23719
+ replay: literal(true).optional(),
23720
+ /**
23721
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23722
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23723
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23724
+ * NOT inferred, these boxes are its output, and its children (the plate
23725
+ * reader) run on them through their own crop policy. Boxes are in the
23726
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23727
+ */
23728
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23746
23729
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23747
23730
  steps: array(PipelineStepInputSchema).min(1),
23748
23731
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23824,6 +23807,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23824
23807
  filename: string().optional(),
23825
23808
  settings: record(string(), unknown()).optional()
23826
23809
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23810
+ /**
23811
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23812
+ * `pipeline-orchestrator` cap. The recommender's own types
23813
+ * (`recommend.ts`) are the TS face of the same data; these
23814
+ * schemas are what crosses the cap boundary.
23815
+ */
23816
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23817
+ /** The operator's range for it. */
23818
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23819
+ min: 1,
23820
+ max: 8
23821
+ };
23822
+ var HardwareClassIdSchema = _enum([
23823
+ "intel-core-ultra",
23824
+ "intel-n-series",
23825
+ "apple-m-base",
23826
+ "apple-m-pro",
23827
+ "unknown"
23828
+ ]);
23829
+ var AcceleratorKindSchema = _enum([
23830
+ "intel-npu",
23831
+ "intel-igpu",
23832
+ "x86-cpu",
23833
+ "arm-cpu",
23834
+ "apple-ane",
23835
+ "coral"
23836
+ ]);
23837
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23838
+ object({
23839
+ kind: literal("capacity"),
23840
+ sessions: number(),
23841
+ minSessions: number()
23842
+ }),
23843
+ object({
23844
+ kind: literal("tie-faster"),
23845
+ over: string(),
23846
+ recallDelta: number()
23847
+ }),
23848
+ object({
23849
+ kind: literal("stepped-down"),
23850
+ from: string(),
23851
+ to: string(),
23852
+ limitedBy: string()
23853
+ }),
23854
+ object({
23855
+ kind: literal("no-fit-lightest"),
23856
+ sessions: number(),
23857
+ minSessions: number()
23858
+ }),
23859
+ object({
23860
+ kind: literal("derived-latency"),
23861
+ modelId: string()
23862
+ }),
23863
+ object({ kind: literal("cpu-device") }),
23864
+ object({ kind: literal("coral-untouched") }),
23865
+ object({ kind: literal("device-disabled") }),
23866
+ object({ kind: literal("device-unavailable") }),
23867
+ object({ kind: literal("node-offline") }),
23868
+ object({ kind: literal("no-hardware-facts") }),
23869
+ object({
23870
+ kind: literal("no-measured-data"),
23871
+ hardwareClass: HardwareClassIdSchema
23872
+ }),
23873
+ object({
23874
+ kind: literal("no-family-build"),
23875
+ format: ModelFormatSchema$1
23876
+ })
23877
+ ]);
23878
+ var DeviceModelChoiceSchema = object({
23879
+ modelId: string(),
23880
+ p50Ms: number(),
23881
+ fps: number(),
23882
+ measured: boolean(),
23883
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23884
+ capacitySessions: number(),
23885
+ personRecall: number()
23886
+ });
23887
+ var DeviceRecommendationSchema = object({
23888
+ deviceKey: string(),
23889
+ accelerator: AcceleratorKindSchema.nullable(),
23890
+ enabled: boolean(),
23891
+ available: boolean(),
23892
+ chosen: DeviceModelChoiceSchema.nullable(),
23893
+ reasons: array(RecommendationReasonSchema).readonly()
23894
+ });
23895
+ var NodeRecommendationSchema = object({
23896
+ nodeId: string(),
23897
+ reachable: boolean(),
23898
+ hardwareClass: HardwareClassIdSchema.nullable(),
23899
+ cpuModel: string().nullable(),
23900
+ skipped: boolean(),
23901
+ acceleratorModelId: string().nullable(),
23902
+ devices: array(DeviceRecommendationSchema).readonly(),
23903
+ reasons: array(RecommendationReasonSchema).readonly()
23904
+ });
23905
+ var ModelPinChangeSchema = object({
23906
+ stepId: string(),
23907
+ before: string().nullable(),
23908
+ after: string().nullable()
23909
+ });
23910
+ var NodeDeviceChangeSchema = object({
23911
+ nodeId: string(),
23912
+ deviceKey: string(),
23913
+ madeExplicit: boolean(),
23914
+ modelPins: array(ModelPinChangeSchema).readonly(),
23915
+ thresholds: array(object({
23916
+ stepId: string(),
23917
+ keys: array(string()).readonly()
23918
+ })).readonly()
23919
+ });
23920
+ var CameraOverrideClearSchema = object({
23921
+ deviceId: number(),
23922
+ source: _enum(["step-override", "wholesale"]),
23923
+ nodeId: string(),
23924
+ deviceKey: string().nullable(),
23925
+ stepId: string(),
23926
+ modelIdBefore: string().nullable(),
23927
+ keys: array(string()).readonly()
23928
+ });
23929
+ var DetectorStoreClearSchema = object({
23930
+ deviceId: number(),
23931
+ keys: array(string()).readonly()
23932
+ });
23933
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
23934
+ object({
23935
+ kind: literal("detector-store-cluster-wide"),
23936
+ skippedNodes: array(string()).readonly()
23937
+ }),
23938
+ object({
23939
+ kind: literal("detector-store-unreadable"),
23940
+ error: string()
23941
+ }),
23942
+ object({
23943
+ kind: literal("coral-enabled"),
23944
+ nodeId: string(),
23945
+ deviceKey: string()
23946
+ })
23947
+ ]);
23948
+ var AutoTuneOptionsSchema = object({
23949
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
23950
+ headroom: number().min(.3).max(.5).default(.4),
23951
+ /**
23952
+ * The least number of parallel sessions every device must sustain at the
23953
+ * camera rate with the headroom kept free (D755). The most accurate model
23954
+ * that reaches it wins.
23955
+ */
23956
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
23957
+ });
23958
+ var AutoTunePlanSchema = object({
23959
+ /** Hash of everything the apply will write — the apply refuses a different one. */
23960
+ planHash: string(),
23961
+ family: literal("yolov9"),
23962
+ headroom: number(),
23963
+ minSessionsPerDevice: number(),
23964
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
23965
+ cameraFps: number(),
23966
+ generatedAt: number(),
23967
+ nodes: array(NodeRecommendationSchema).readonly(),
23968
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
23969
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
23970
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
23971
+ warnings: array(AutoTuneWarningSchema).readonly()
23972
+ });
23973
+ var AutoTuneApplyInputSchema = object({
23974
+ planHash: string(),
23975
+ headroom: number().min(.3).max(.5).default(.4),
23976
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
23977
+ });
23978
+ var AutoTunePhaseResultSchema = object({
23979
+ phase: _enum([
23980
+ "download",
23981
+ "camera-overrides",
23982
+ "detector-thresholds",
23983
+ "node-models",
23984
+ "redispatch"
23985
+ ]),
23986
+ ok: boolean(),
23987
+ detail: string()
23988
+ });
23989
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
23990
+ object({
23991
+ kind: literal("applied"),
23992
+ planHash: string(),
23993
+ phases: array(AutoTunePhaseResultSchema).readonly()
23994
+ }),
23995
+ object({
23996
+ kind: literal("aborted"),
23997
+ phases: array(AutoTunePhaseResultSchema).readonly()
23998
+ }),
23999
+ object({
24000
+ kind: literal("stale"),
24001
+ plan: AutoTunePlanSchema
24002
+ }),
24003
+ object({
24004
+ kind: literal("refused"),
24005
+ reason: _enum(["apply-in-progress"])
24006
+ })
24007
+ ]);
24008
+ /**
24009
+ * Wire shapes of the Load balancing surface (D748): the session placement
24010
+ * policy, the atomic share write, the observed placement statistics, the
24011
+ * hardware share suggestion and the stale device pins.
24012
+ */
24013
+ /**
24014
+ * How a new detection session picks its node and device.
24015
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24016
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24017
+ * weight only bites once a node already holds a session.
24018
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24019
+ * full or drowning node yields to a free one (D748).
24020
+ */
24021
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24022
+ var LoadBalancingSharesInputSchema = object({
24023
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24024
+ nodes: record(string(), number().positive()).default({}),
24025
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24026
+ devices: record(string(), record(string(), number().positive())).default({})
24027
+ });
24028
+ var PlacementStatsInputSchema = object({
24029
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24030
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24031
+ var PlacementDeviceStatsSchema = object({
24032
+ deviceKey: string(),
24033
+ /** Sessions running on this device now. */
24034
+ sessionsNow: number(),
24035
+ /** Sessions started on this device inside the window. */
24036
+ sessionsStarted: number(),
24037
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24038
+ observedShare: number().nullable()
24039
+ });
24040
+ var PlacementNodeStatsSchema = object({
24041
+ nodeId: string(),
24042
+ sessionsNow: number(),
24043
+ sessionsStarted: number(),
24044
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24045
+ observedShare: number().nullable(),
24046
+ /** Most sessions this node ran at once inside the window. */
24047
+ peakSessions: number(),
24048
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24049
+ yieldsAway: number(),
24050
+ devices: array(PlacementDeviceStatsSchema).readonly()
24051
+ });
24052
+ /** A camera's device pin that the session path cannot honour. */
24053
+ var StaleDevicePinSchema = object({
24054
+ deviceId: number(),
24055
+ deviceKey: string(),
24056
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24057
+ reason: _enum(["disabled", "absent"])
24058
+ });
24059
+ var PlacementStatsSchema = object({
24060
+ policy: SessionPlacementPolicySchema,
24061
+ windowMs: number(),
24062
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24063
+ observedForMs: number(),
24064
+ sessionsNow: number(),
24065
+ /** Most parallel sessions across the cluster inside the window. */
24066
+ clusterPeakSessions: number(),
24067
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24068
+ stalePins: array(StaleDevicePinSchema).readonly()
24069
+ });
24070
+ /**
24071
+ * Where an automatic share's capacity comes from (D755).
24072
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24073
+ * the measured latency table for the node's hardware class.
24074
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24075
+ * A node with no results falls back to `hardware`, and says so.
24076
+ */
24077
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24078
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24079
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24080
+ var SuggestSharesInputSchema = object({
24081
+ headroom: number().min(.3).max(.5).default(.4),
24082
+ /** Default `hardware`. */
24083
+ source: CapacitySourceSchema.default("hardware")
24084
+ });
24085
+ var SuggestedDeviceShareSchema = object({
24086
+ deviceKey: string(),
24087
+ /** Share of the node (0–100, rounded). */
24088
+ share: number(),
24089
+ modelId: string().nullable(),
24090
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24091
+ fps: number().nullable(),
24092
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24093
+ measured: boolean(),
24094
+ /**
24095
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24096
+ * or the benchmark's measured max sessions. Never enforced.
24097
+ */
24098
+ suggestedMaxSessions: number().nullable()
24099
+ });
24100
+ var SuggestedNodeShareSchema = object({
24101
+ nodeId: string(),
24102
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24103
+ share: number().nullable(),
24104
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24105
+ capacitySessions: number(),
24106
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24107
+ skippedReason: string().nullable(),
24108
+ /** What this node's capacity was read from; null when the node is skipped. */
24109
+ capacitySource: CapacitySourceSchema.nullable(),
24110
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24111
+ capacityFallback: CapacityFallbackSchema.nullable()
24112
+ });
24113
+ var SuggestSharesResultSchema = object({
24114
+ headroom: number(),
24115
+ /** The source asked for; each node says what it actually used. */
24116
+ source: CapacitySourceSchema,
24117
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24118
+ cameraFps: number(),
24119
+ /** The Auto tune capacity floor the models were picked at. */
24120
+ minSessionsPerDevice: number(),
24121
+ nodes: array(SuggestedNodeShareSchema).readonly()
24122
+ });
24123
+ /**
24124
+ * Where the node and device shares come from (D750, D755).
24125
+ * - `hardware` (default) — computed by the system from each node's static
24126
+ * capacity (its accelerators at their Auto tune models, from the measured
24127
+ * latency table), recomputed whenever a node or device joins, leaves, is
24128
+ * switched on or off, or changes model. No load input.
24129
+ * - `benchmark` — the same, from each node's measured capacity (node
24130
+ * benchmark results); a node without results falls back to `hardware`.
24131
+ * - `manual` — the operator's stored sliders.
24132
+ * Either way a node or device that cannot take sessions gives its share to
24133
+ * the others in proportion; the stored values are never rewritten for that.
24134
+ */
24135
+ var ShareSourceSchema = _enum([
24136
+ "hardware",
24137
+ "benchmark",
24138
+ "manual"
24139
+ ]);
24140
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24141
+ object({
24142
+ nodes: record(string(), number()),
24143
+ devices: record(string(), record(string(), number()))
24144
+ });
24145
+ var EffectiveDeviceShareSchema = object({
24146
+ deviceKey: string(),
24147
+ /** Can take sessions now (enabled, available, can run the root). */
24148
+ eligible: boolean(),
24149
+ /** The share the source assigns, as a percentage of the node's devices. */
24150
+ configuredPct: number(),
24151
+ /** The share actually used, after an ineligible device's share went to the others. */
24152
+ effectivePct: number()
24153
+ });
24154
+ var EffectiveNodeShareSchema = object({
24155
+ nodeId: string(),
24156
+ eligible: boolean(),
24157
+ configuredPct: number(),
24158
+ effectivePct: number(),
24159
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24160
+ capacitySource: CapacitySourceSchema.nullable(),
24161
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24162
+ capacityFallback: CapacityFallbackSchema.nullable(),
24163
+ devices: array(EffectiveDeviceShareSchema).readonly()
24164
+ });
24165
+ var EffectiveSharesSchema = object({
24166
+ source: ShareSourceSchema,
24167
+ policy: SessionPlacementPolicySchema,
24168
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24169
+ autoPending: boolean(),
24170
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24171
+ computedAt: number().nullable(),
24172
+ /** What made the system recompute them last. */
24173
+ trigger: string().nullable(),
24174
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24175
+ /** The relative weights the election reads (before eligibility). */
24176
+ nodeWeights: record(string(), number()),
24177
+ deviceWeights: record(string(), record(string(), number()))
24178
+ });
23827
24179
  object({
23828
24180
  activeCameras: number(),
23829
24181
  throttledCameras: number(),
@@ -24307,6 +24659,22 @@ var MotionSourceEnum = _enum([
24307
24659
  "device-activity"
24308
24660
  ]);
24309
24661
  /**
24662
+ * What opened an on-motion detection SESSION: the motion source that passed the
24663
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
24664
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
24665
+ * device name as the orchestrator's camera-sensors resolution last read it;
24666
+ * absent when unknown or when the camera itself triggered.
24667
+ *
24668
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
24669
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
24670
+ * runner never decides anything on it.
24671
+ */
24672
+ var SessionTriggerSchema = object({
24673
+ source: MotionSourceEnum,
24674
+ triggeredBy: MotionTriggeredBySchema,
24675
+ sensorName: string().optional()
24676
+ });
24677
+ /**
24310
24678
  * List of motion sources active on a camera. Empty array is valid:
24311
24679
  * "no source" — happens for battery cams without firmware motion when
24312
24680
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -24558,6 +24926,14 @@ var RunnerCameraConfigSchema = object({
24558
24926
  */
24559
24927
  motionSources: MotionSourcesSchema.default(["analyzer"]),
24560
24928
  /**
24929
+ * What opened this attach, on a SESSION attach only (see
24930
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
24931
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
24932
+ * behind it, and every attach from an orchestrator older than the field — the
24933
+ * runner then names no source on the phase event.
24934
+ */
24935
+ sessionTrigger: SessionTriggerSchema.optional(),
24936
+ /**
24561
24937
  * WHICH root detector runs for this camera. The detection counterpart of
24562
24938
  * {@link motionSources}, same shape and same discipline: a per-camera list
24563
24939
  * of sources the system understands, vendor-agnostic, owned here.
@@ -24717,14 +25093,15 @@ var RunnerLocalLoadSchema = object({
24717
25093
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24718
25094
  * this runner currently has attached cameras on, so the orchestrator's second
24719
25095
  * `balance()` pass (over a node's devices) weights on real per-pool session
24720
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24721
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25096
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25097
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25098
+ * a field that always read 0 was removed rather than shown as a measurement
25099
+ * (D762).
24722
25100
  */
24723
25101
  devices: array(object({
24724
25102
  deviceKey: string(),
24725
25103
  backend: string(),
24726
- attachedCameras: number(),
24727
- queueDepthTotal: number()
25104
+ attachedCameras: number()
24728
25105
  })).default([]),
24729
25106
  /** Hardware capability flags reported by this node. */
24730
25107
  hardware: object({
@@ -24860,7 +25237,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24860
25237
  */
24861
25238
  cropJpeg: string().optional(),
24862
25239
  parent: DetailParentSchema,
24863
- steps: array(string()).optional()
25240
+ steps: array(string()).optional(),
25241
+ /**
25242
+ * The camera's root model already drew this step's boxes (D730): a
25243
+ * `license_plate` inside the parent vehicle. The named step is NOT
25244
+ * inferred — these FRAME-space boxes are its output — and its
25245
+ * requested children (the plate reader) run on them. Absent ⇒ every
25246
+ * requested step infers as before.
25247
+ */
25248
+ supplied: object({
25249
+ stepId: string(),
25250
+ modelId: string(),
25251
+ boxes: array(object({
25252
+ bbox: NativeCropBboxSchema,
25253
+ score: number()
25254
+ })).min(1)
25255
+ }).optional()
24864
25256
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24865
25257
  /** Catalog step id, e.g. `clip-embedding`. */
24866
25258
  stepId: string(),
@@ -24923,14 +25315,6 @@ var CameraPipelineConfigSchema = object({
24923
25315
  settings: record(string(), unknown()).readonly().optional()
24924
25316
  }).nullable().optional()
24925
25317
  });
24926
- var PipelineTemplateSchema = object({
24927
- id: string(),
24928
- name: string(),
24929
- description: string().optional(),
24930
- config: CameraPipelineConfigSchema,
24931
- createdAt: string(),
24932
- updatedAt: string()
24933
- });
24934
25318
  var DeviceStepConfigSchema = object({
24935
25319
  modelId: string().optional(),
24936
25320
  settings: record(string(), unknown()).optional(),
@@ -25004,9 +25388,10 @@ var CameraStepOverridePatchSchema = object({
25004
25388
  modelId: string().optional(),
25005
25389
  settings: record(string(), unknown()).readonly().optional()
25006
25390
  });
25391
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25007
25392
  var CameraPipelineSettingsSchema = object({
25008
- pinnedAgentNodeId: string().optional(),
25009
25393
  stepToggles: record(string(), boolean()).optional(),
25394
+ stepSettings: CameraStepSettingsSchema.optional(),
25010
25395
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25011
25396
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25012
25397
  });
@@ -25039,7 +25424,10 @@ var PipelineAssignmentSchema = object({
25039
25424
  });
25040
25425
  /**
25041
25426
  * Per-agent load summary surfaced to the load balancer + dashboards.
25042
- * Aggregated from each runner's `getLocalLoad` cap call.
25427
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25428
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25429
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25430
+ * the default pool IS that device (D745); the balancer's census stays raw.
25043
25431
  */
25044
25432
  var AgentLoadSummarySchema = object({
25045
25433
  nodeId: string(),
@@ -25128,26 +25516,27 @@ var CameraBrokerStatusSchema = object({
25128
25516
  width: number(),
25129
25517
  height: number(),
25130
25518
  subscribers: number(),
25131
- inFps: number(),
25132
- outFps: number()
25519
+ /**
25520
+ * Encoded packets/s the broker receives from the camera. null when the
25521
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25522
+ * There is no output rate: decoding runs in the session decode workers, not
25523
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25524
+ * camera and is not served (D758).
25525
+ */
25526
+ inFps: number().nullable()
25133
25527
  })).readonly(),
25134
25528
  webrtcSessions: number(),
25135
25529
  rtspRestream: boolean()
25136
25530
  });
25137
- /** Shared-memory ring statistics within the decoder block. */
25138
- var CameraDecoderShmSchema = object({
25139
- framesWritten: number(),
25140
- getFrameHits: number(),
25141
- getFrameMisses: number(),
25142
- budgetMb: number()
25143
- });
25144
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25145
- var CameraDecoderStatusSchema = object({
25146
- nodeId: string(),
25147
- formats: array(string()).readonly(),
25148
- sessionCount: number(),
25149
- shm: CameraDecoderShmSchema
25150
- });
25531
+ /**
25532
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25533
+ * construction); null when the camera has no detection node. It carries no
25534
+ * frame counter: the shared-memory plane whose counters it used to serve is
25535
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25536
+ * from `detection.actualFps` (frames delivered to and processed by the
25537
+ * detector), never from a counter nothing feeds.
25538
+ */
25539
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25151
25540
  /** Motion block — null when motion detection is not active for this device. */
25152
25541
  var CameraMotionStatusSchema = object({
25153
25542
  enabled: boolean(),
@@ -25504,12 +25893,6 @@ method(object({
25504
25893
  }), object({ success: literal(true) }), {
25505
25894
  kind: "mutation",
25506
25895
  auth: "admin"
25507
- }), method(object({
25508
- agentNodeId: string(),
25509
- detectWeight: number().positive().nullable()
25510
- }), object({ success: literal(true) }), {
25511
- kind: "mutation",
25512
- auth: "admin"
25513
25896
  }), method(object({
25514
25897
  agentNodeId: string(),
25515
25898
  detect: boolean().nullable().optional(),
@@ -25551,6 +25934,15 @@ method(object({
25551
25934
  }), {
25552
25935
  kind: "mutation",
25553
25936
  auth: "admin"
25937
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
25938
+ kind: "mutation",
25939
+ auth: "admin"
25940
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
25941
+ kind: "mutation",
25942
+ auth: "admin"
25943
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
25944
+ kind: "mutation",
25945
+ auth: "admin"
25554
25946
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25555
25947
  deviceId: number(),
25556
25948
  addonId: string(),
@@ -25567,6 +25959,13 @@ method(object({
25567
25959
  }), object({ success: literal(true) }), {
25568
25960
  kind: "mutation",
25569
25961
  auth: "admin"
25962
+ }), method(object({
25963
+ deviceId: number(),
25964
+ addonId: string(),
25965
+ settings: record(string(), unknown()).nullable()
25966
+ }), object({ success: literal(true) }), {
25967
+ kind: "mutation",
25968
+ auth: "admin"
25570
25969
  }), method(object({
25571
25970
  deviceId: number(),
25572
25971
  agentNodeId: string(),
@@ -25590,25 +25989,7 @@ method(object({
25590
25989
  }), method(_void(), DiskReconcileJobSchema, {
25591
25990
  kind: "mutation",
25592
25991
  auth: "admin"
25593
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25594
- name: string(),
25595
- description: string().optional(),
25596
- config: CameraPipelineConfigSchema
25597
- }), PipelineTemplateSchema, {
25598
- kind: "mutation",
25599
- auth: "admin"
25600
- }), method(object({
25601
- id: string(),
25602
- name: string().optional(),
25603
- description: string().optional(),
25604
- config: CameraPipelineConfigSchema.optional()
25605
- }), PipelineTemplateSchema, {
25606
- kind: "mutation",
25607
- auth: "admin"
25608
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25609
- kind: "mutation",
25610
- auth: "admin"
25611
- });
25992
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25612
25993
  /**
25613
25994
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25614
25995
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -27857,8 +28238,6 @@ var WebrtcStreamChoiceSchema = object({
27857
28238
  ]).nullable(),
27858
28239
  /** Input FPS from the camera (null for adaptive). */
27859
28240
  inputFps: number().nullable(),
27860
- /** Decoded FPS (null for adaptive). */
27861
- decodeFps: number().nullable(),
27862
28241
  /** Bitrate in kbps (null for adaptive). */
27863
28242
  bitrateKbps: number().nullable()
27864
28243
  });
@@ -28190,6 +28569,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28190
28569
  */
28191
28570
  alive: boolean()
28192
28571
  })), method(object({
28572
+ deviceId: number().int().nonnegative(),
28573
+ sessionId: string(),
28574
+ downlinkMbps: number().nonnegative()
28575
+ }), object({
28576
+ outcome: _enum(["switching", "held"]),
28577
+ tier: CamProfileSchema.nullable(),
28578
+ reason: string()
28579
+ }), { kind: "mutation" }), method(object({
28193
28580
  deviceId: number().int().nonnegative(),
28194
28581
  sessionId: string()
28195
28582
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -28429,6 +28816,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
28429
28816
  var RestartAddonResultSchema = unknown();
28430
28817
  var InstallPackageResultSchema = unknown();
28431
28818
  var ReloadPackagesResultSchema = unknown();
28819
+ /**
28820
+ * What an uninstall did on ONE node.
28821
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
28822
+ * - `not-installed` — the node did not have it (nothing to do).
28823
+ * - `refused` — protected / bootstrap package; nothing touched.
28824
+ * - `failed` — attempted and did not complete; `error` says why.
28825
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
28826
+ * back-fill never returns the package, and the stale-addon sweep removes the
28827
+ * copy when the node registers again (only once the hub no longer has it).
28828
+ */
28829
+ var UninstallNodeOutcomeSchema = _enum([
28830
+ "uninstalled",
28831
+ "not-installed",
28832
+ "refused",
28833
+ "failed",
28834
+ "pending-reconnect"
28835
+ ]);
28836
+ var UninstallNodeResultSchema = object({
28837
+ nodeId: string(),
28838
+ outcome: UninstallNodeOutcomeSchema,
28839
+ error: string().optional(),
28840
+ addonIds: array(string()).readonly(),
28841
+ runnersStopped: array(string()).readonly(),
28842
+ warnings: array(string()).readonly()
28843
+ });
28844
+ var UninstallPackageResultSchema = object({
28845
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
28846
+ success: boolean(),
28847
+ packageName: string(),
28848
+ results: array(UninstallNodeResultSchema).readonly()
28849
+ });
28850
+ /**
28851
+ * `unreachable` lists online agents whose status read FAILED — absence from
28852
+ * `installations` is only "not installed" for a node that answered (D315).
28853
+ */
28854
+ var PackageInstallationsSchema = object({
28855
+ installations: array(object({
28856
+ packageName: string(),
28857
+ nodeId: string(),
28858
+ nodeName: string(),
28859
+ isHub: boolean(),
28860
+ isOnline: boolean(),
28861
+ version: string().nullable(),
28862
+ addonIds: array(string()).readonly(),
28863
+ source: _enum(["live", "recorded"]),
28864
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
28865
+ onHub: boolean()
28866
+ })).readonly(),
28867
+ unreachable: array(object({
28868
+ nodeId: string(),
28869
+ error: string()
28870
+ })).readonly()
28871
+ });
28432
28872
  var BulkUpdateItemStatusSchema = _enum([
28433
28873
  "queued",
28434
28874
  "updating",
@@ -28511,10 +28951,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
28511
28951
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
28512
28952
  kind: "mutation",
28513
28953
  auth: "admin"
28514
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
28954
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
28955
+ packageName: string().min(1),
28956
+ nodeId: string().optional(),
28957
+ everywhere: boolean().optional()
28958
+ }), UninstallPackageResultSchema, {
28515
28959
  kind: "mutation",
28516
28960
  auth: "admin"
28517
- }), method(_void(), ReloadPackagesResultSchema, {
28961
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
28518
28962
  kind: "mutation",
28519
28963
  auth: "admin"
28520
28964
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -31954,7 +32398,7 @@ var LocalInterfaceSchema = object({
31954
32398
  name: string(),
31955
32399
  family: _enum(["IPv4", "IPv6"]),
31956
32400
  address: string(),
31957
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
32401
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
31958
32402
  cidr: string(),
31959
32403
  /** OS netmask. Stable across calls so the SDK can hash on it. */
31960
32404
  netmask: string(),
@@ -32008,7 +32452,9 @@ var ConnectionEndpointSchema = object({
32008
32452
  "lan-ipv4",
32009
32453
  "lan-ipv6",
32010
32454
  "public",
32011
- "loopback"
32455
+ "loopback",
32456
+ "app-link",
32457
+ "custom"
32012
32458
  ]),
32013
32459
  /**
32014
32460
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32077,15 +32523,27 @@ var GetConnectionEndpointsResultSchema = object({
32077
32523
  localPort: AdvertisedLocalPortSchema
32078
32524
  });
32079
32525
  /**
32080
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
32081
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
32082
- * what AUTO currently picks, so the UI can show the effective value either way.
32526
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32527
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
32528
+ * so the UI can show it either way.
32083
32529
  */
32084
32530
  var NotificationEndpointSchema = object({
32085
32531
  /** The operator's explicit choice, or null for AUTO. */
32086
32532
  baseUrl: string().nullable(),
32087
- /** What the ranking currently resolves to (null when nothing is reachable). */
32088
- resolved: string().nullable()
32533
+ /**
32534
+ * The effective flagged address: the explicit choice, else (AUTO) the
32535
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
32536
+ * answered the public tunnel / mesh here, or null.
32537
+ */
32538
+ resolved: string().nullable(),
32539
+ /**
32540
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
32541
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
32542
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
32543
+ * hub advertises neither; the app link is then minted without `hub=`.
32544
+ * Absent on a pre-D709 hub.
32545
+ */
32546
+ appLinkHub: string().nullable()
32089
32547
  });
32090
32548
  /**
32091
32549
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -32098,6 +32556,72 @@ var ViewerEndpointsSchema = object({
32098
32556
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32099
32557
  resolved: array(string()).readonly()
32100
32558
  });
32559
+ /**
32560
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32561
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32562
+ * the `publicEndpoint` role; `override` is the flagged address.
32563
+ */
32564
+ var HubAddressSnapshotSchema = object({
32565
+ override: string().nullable(),
32566
+ resolved: string().nullable(),
32567
+ source: _enum([
32568
+ "override",
32569
+ "auto",
32570
+ "none"
32571
+ ])
32572
+ });
32573
+ var HubAddressesSchema = object({
32574
+ cluster: HubAddressSnapshotSchema,
32575
+ browser: HubAddressSnapshotSchema
32576
+ });
32577
+ /**
32578
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32579
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32580
+ * by at most one address.
32581
+ */
32582
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32583
+ var RoleSourceSchema = _enum([
32584
+ "flagged",
32585
+ "auto",
32586
+ "none"
32587
+ ]);
32588
+ /** One single-valued role: the flagged address, the one in use, and why. */
32589
+ var HubAddressRoleResolutionSchema = object({
32590
+ /** The address carrying the flag, or null = automatic. */
32591
+ flagged: string().nullable(),
32592
+ /** The address in use, or null when nothing qualifies (never loopback). */
32593
+ resolved: string().nullable(),
32594
+ source: RoleSourceSchema
32595
+ });
32596
+ var HubAppConnectionsResolutionSchema = object({
32597
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32598
+ flagged: array(string()).readonly(),
32599
+ /** What the apps race right now. */
32600
+ resolved: array(string()).readonly(),
32601
+ source: RoleSourceSchema
32602
+ });
32603
+ var HubAddressBookSchema = object({
32604
+ rows: array(ConnectionEndpointSchema.extend({
32605
+ /** In the hub's detected palette right now. */
32606
+ detected: boolean(),
32607
+ /** Entered by the operator (removable). */
32608
+ custom: boolean(),
32609
+ /** The roles explicitly flagged on this address. */
32610
+ flags: array(HubAddressRoleSchema).readonly(),
32611
+ /** The roles this address serves right now — flagged or automatic. */
32612
+ inUse: array(HubAddressRoleSchema).readonly(),
32613
+ /** The roles this address may be flagged with. */
32614
+ eligible: array(HubAddressRoleSchema).readonly()
32615
+ })).readonly(),
32616
+ roles: object({
32617
+ appConnections: HubAppConnectionsResolutionSchema,
32618
+ notificationTaps: HubAddressRoleResolutionSchema,
32619
+ internal: HubAddressRoleResolutionSchema,
32620
+ publicEndpoint: HubAddressRoleResolutionSchema
32621
+ }),
32622
+ /** The `hub=` an app link carries (D709), or null. */
32623
+ appLinkHub: string().nullable()
32624
+ });
32101
32625
  var AllowedAddressesSchema = object({
32102
32626
  /**
32103
32627
  * Allowlist of interface addresses operators have explicitly opted
@@ -32139,8 +32663,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32139
32663
  * Pass `'https'` when the caller is itself loaded over HTTPS
32140
32664
  * to avoid mixed-content blocks in the browser. The public
32141
32665
  * tunnel always emits `https://` regardless. */
32142
- scheme: _enum(["http", "https"]).optional()
32143
- }), 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, {
32666
+ scheme: _enum(["http", "https"]).optional(),
32667
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32668
+ * an address notification taps can be flagged with, not a hub
32669
+ * route. Default `false`: racers and rankers never see it. */
32670
+ includeAppLink: boolean().optional()
32671
+ }), 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({
32672
+ baseUrl: string(),
32673
+ label: string().max(80)
32674
+ }), HubAddressBookSchema, {
32675
+ kind: "mutation",
32676
+ auth: "admin"
32677
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
32678
+ kind: "mutation",
32679
+ auth: "admin"
32680
+ }), method(object({
32681
+ role: HubAddressRoleSchema,
32682
+ baseUrl: string().nullable(),
32683
+ enabled: boolean(),
32684
+ acceptInsecureHttp: boolean().optional()
32685
+ }), HubAddressBookSchema, {
32686
+ kind: "mutation",
32687
+ auth: "admin"
32688
+ }), 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, {
32144
32689
  kind: "mutation",
32145
32690
  auth: "admin"
32146
32691
  }), method(object({
@@ -32468,7 +33013,7 @@ var MeshPeerSchema = object({
32468
33013
  tags: array(string()).readonly(),
32469
33014
  /** True when the peer advertises itself as an exit-node candidate. */
32470
33015
  exitNodeOption: boolean(),
32471
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
33016
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
32472
33017
  advertisedRoutes: array(string()).readonly(),
32473
33018
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
32474
33019
  userLogin: string().nullable(),
@@ -32598,7 +33143,8 @@ var MotionStatusSchema = object({
32598
33143
  * writes this slice (not even a boot seed), and neither does the runner's
32599
33144
  * phase machine: its phase is "a session is attached" for every on-motion
32600
33145
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32601
- * A provider's `isDetected` answers from the hub's slice.
33146
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33147
+ * (`hubMotionNativeProvider`).
32602
33148
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32603
33149
  * imports) — the provider pushes both edges itself, from the upstream
32604
33150
  * system's own state change. That is the sensor's own fact.
@@ -33796,7 +34342,13 @@ var OsdStatusSchema = object({ overlays: array(object({
33796
34342
  */
33797
34343
  availablePositions: array(OsdPositionEnum).readonly(),
33798
34344
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
33799
- readOnly: boolean().optional()
34345
+ readOnly: boolean().optional(),
34346
+ /**
34347
+ * Firmware text ceiling for this overlay. Absent = no known limit.
34348
+ * The OSD manager truncates here on every write — never stores its own
34349
+ * copy on the binding.
34350
+ */
34351
+ maxCharacters: number().int().positive().optional()
33800
34352
  })).readonly() });
33801
34353
  var OsdOverlayPatchSchema = object({
33802
34354
  enabled: boolean().optional(),
@@ -33847,7 +34399,9 @@ var OsdTemplateBindingSchema = object({
33847
34399
  valuePath: string().min(1).max(64),
33848
34400
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
33849
34401
  displayUnit: string().max(16).optional(),
33850
- maxDecimals: number().int().min(0).max(4).default(1)
34402
+ maxDecimals: number().int().min(0).max(4).default(1),
34403
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
34404
+ valueMap: record(string(), string()).optional()
33851
34405
  });
33852
34406
  /**
33853
34407
  * A named template: bindings (alias → leaf field) + a parser that
@@ -33897,18 +34451,11 @@ var OsdSlotBindingSchema = object({
33897
34451
  source: OsdSourceSchema,
33898
34452
  /** `${value}` and `${unit}` are substituted; every occurrence. */
33899
34453
  template: string().max(96).default("${value}"),
33900
- /** Truncate with an ellipsis past this length. Absent = no limit. */
33901
- maxCharacters: number().int().min(4).max(64).optional(),
33902
34454
  /**
33903
34455
  * Decimal places for a numeric value. `0` yields an integer — the
33904
34456
  * documented workaround for firmwares that reject `.` in overlay text.
33905
34457
  */
33906
34458
  maxDecimals: number().int().min(0).max(4).default(1),
33907
- /**
33908
- * Appended via `${unit}` when no unit conversion produces a label.
33909
- * Prefer `source.displayUnit` for converted device-state values.
33910
- */
33911
- unitLabel: string().max(8).optional(),
33912
34459
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
33913
34460
  valueMap: record(string(), string()).optional(),
33914
34461
  /** Time windows in which the slot is shown. Absent = always. */
@@ -33917,9 +34464,7 @@ var OsdSlotBindingSchema = object({
33917
34464
  * Display gate, in the notification centre's condition vocabulary.
33918
34465
  * Only the keys reported by `getConditionSupport` are accepted.
33919
34466
  */
33920
- conditions: NcConditionsSchema.optional(),
33921
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
33922
- fallbackText: string().max(64).default("")
34467
+ conditions: NcConditionsSchema.optional()
33923
34468
  });
33924
34469
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
33925
34470
  var OsdSlotViewSchema = object({
@@ -39146,6 +39691,16 @@ var zoneRulesCapability = {
39146
39691
  durability: "restored"
39147
39692
  };
39148
39693
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39694
+ Object.freeze({
39695
+ person: .5,
39696
+ vehicle: .5,
39697
+ animal: .5
39698
+ });
39699
+ Object.freeze({
39700
+ person: .65,
39701
+ vehicle: .65,
39702
+ animal: .65
39703
+ });
39149
39704
  /**
39150
39705
  * Accessory device helpers — shared across drivers.
39151
39706
  *
@@ -40844,6 +41399,12 @@ Object.freeze({
40844
41399
  addonId: null,
40845
41400
  access: "view"
40846
41401
  },
41402
+ "addons.listInstallations": {
41403
+ capName: "addons",
41404
+ capScope: "system",
41405
+ addonId: null,
41406
+ access: "view"
41407
+ },
40847
41408
  "addons.listJobs": {
40848
41409
  capName: "addons",
40849
41410
  capScope: "system",
@@ -42026,90 +42587,18 @@ Object.freeze({
42026
42587
  addonId: null,
42027
42588
  access: "create"
42028
42589
  },
42029
- "decoder.createSession": {
42030
- capName: "decoder",
42031
- capScope: "system",
42032
- addonId: null,
42033
- access: "view"
42034
- },
42035
- "decoder.destroySession": {
42036
- capName: "decoder",
42037
- capScope: "system",
42038
- addonId: null,
42039
- access: "delete"
42040
- },
42041
- "decoder.getFrame": {
42042
- capName: "decoder",
42043
- capScope: "system",
42044
- addonId: null,
42045
- access: "view"
42046
- },
42047
42590
  "decoder.getInfo": {
42048
42591
  capName: "decoder",
42049
42592
  capScope: "system",
42050
42593
  addonId: null,
42051
42594
  access: "view"
42052
42595
  },
42053
- "decoder.getShmStats": {
42054
- capName: "decoder",
42055
- capScope: "system",
42056
- addonId: null,
42057
- access: "view"
42058
- },
42059
- "decoder.getStats": {
42060
- capName: "decoder",
42061
- capScope: "system",
42062
- addonId: null,
42063
- access: "view"
42064
- },
42065
- "decoder.listActiveSessions": {
42066
- capName: "decoder",
42067
- capScope: "system",
42068
- addonId: null,
42069
- access: "view"
42070
- },
42071
- "decoder.openStream": {
42072
- capName: "decoder",
42073
- capScope: "system",
42074
- addonId: null,
42075
- access: "view"
42076
- },
42077
- "decoder.pullFrames": {
42078
- capName: "decoder",
42079
- capScope: "system",
42080
- addonId: null,
42081
- access: "view"
42082
- },
42083
- "decoder.pullHandles": {
42084
- capName: "decoder",
42085
- capScope: "system",
42086
- addonId: null,
42087
- access: "view"
42088
- },
42089
- "decoder.pushPacket": {
42090
- capName: "decoder",
42091
- capScope: "system",
42092
- addonId: null,
42093
- access: "view"
42094
- },
42095
42596
  "decoder.reprobeHwaccel": {
42096
42597
  capName: "decoder",
42097
42598
  capScope: "system",
42098
42599
  addonId: null,
42099
42600
  access: "create"
42100
42601
  },
42101
- "decoder.supportsCodec": {
42102
- capName: "decoder",
42103
- capScope: "system",
42104
- addonId: null,
42105
- access: "view"
42106
- },
42107
- "decoder.updateConfig": {
42108
- capName: "decoder",
42109
- capScope: "system",
42110
- addonId: null,
42111
- access: "view"
42112
- },
42113
42602
  "detectionPipeline.applyDeviceSettingsPatch": {
42114
42603
  capName: "detection-pipeline",
42115
42604
  capScope: "device",
@@ -43598,12 +44087,24 @@ Object.freeze({
43598
44087
  addonId: null,
43599
44088
  access: "view"
43600
44089
  },
44090
+ "localNetwork.addCustomAddress": {
44091
+ capName: "local-network",
44092
+ capScope: "system",
44093
+ addonId: null,
44094
+ access: "create"
44095
+ },
43601
44096
  "localNetwork.downloadCa": {
43602
44097
  capName: "local-network",
43603
44098
  capScope: "system",
43604
44099
  addonId: null,
43605
44100
  access: "view"
43606
44101
  },
44102
+ "localNetwork.getAddresses": {
44103
+ capName: "local-network",
44104
+ capScope: "system",
44105
+ addonId: null,
44106
+ access: "view"
44107
+ },
43607
44108
  "localNetwork.getAllowedAddresses": {
43608
44109
  capName: "local-network",
43609
44110
  capScope: "system",
@@ -43616,6 +44117,12 @@ Object.freeze({
43616
44117
  addonId: null,
43617
44118
  access: "view"
43618
44119
  },
44120
+ "localNetwork.getHubAddresses": {
44121
+ capName: "local-network",
44122
+ capScope: "system",
44123
+ addonId: null,
44124
+ access: "view"
44125
+ },
43619
44126
  "localNetwork.getNotificationEndpoint": {
43620
44127
  capName: "local-network",
43621
44128
  capScope: "system",
@@ -43652,6 +44159,12 @@ Object.freeze({
43652
44159
  addonId: null,
43653
44160
  access: "create"
43654
44161
  },
44162
+ "localNetwork.removeCustomAddress": {
44163
+ capName: "local-network",
44164
+ capScope: "system",
44165
+ addonId: null,
44166
+ access: "delete"
44167
+ },
43655
44168
  "localNetwork.resetAllowlistToBestMatch": {
43656
44169
  capName: "local-network",
43657
44170
  capScope: "system",
@@ -43664,6 +44177,12 @@ Object.freeze({
43664
44177
  addonId: null,
43665
44178
  access: "create"
43666
44179
  },
44180
+ "localNetwork.setAddressRole": {
44181
+ capName: "local-network",
44182
+ capScope: "system",
44183
+ addonId: null,
44184
+ access: "create"
44185
+ },
43667
44186
  "localNetwork.setAllowedAddresses": {
43668
44187
  capName: "local-network",
43669
44188
  capScope: "system",
@@ -45158,13 +45677,13 @@ Object.freeze({
45158
45677
  addonId: null,
45159
45678
  access: "delete"
45160
45679
  },
45161
- "pipelineExecutor.deleteModel": {
45680
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45162
45681
  capName: "pipeline-executor",
45163
45682
  capScope: "system",
45164
45683
  addonId: null,
45165
45684
  access: "delete"
45166
45685
  },
45167
- "pipelineExecutor.deleteTemplate": {
45686
+ "pipelineExecutor.deleteModel": {
45168
45687
  capName: "pipeline-executor",
45169
45688
  capScope: "system",
45170
45689
  addonId: null,
@@ -45308,12 +45827,6 @@ Object.freeze({
45308
45827
  addonId: null,
45309
45828
  access: "view"
45310
45829
  },
45311
- "pipelineExecutor.listTemplates": {
45312
- capName: "pipeline-executor",
45313
- capScope: "system",
45314
- addonId: null,
45315
- access: "view"
45316
- },
45317
45830
  "pipelineExecutor.rearmInferenceDevice": {
45318
45831
  capName: "pipeline-executor",
45319
45832
  capScope: "system",
@@ -45338,12 +45851,6 @@ Object.freeze({
45338
45851
  addonId: null,
45339
45852
  access: "create"
45340
45853
  },
45341
- "pipelineExecutor.saveTemplate": {
45342
- capName: "pipeline-executor",
45343
- capScope: "system",
45344
- addonId: null,
45345
- access: "create"
45346
- },
45347
45854
  "pipelineExecutor.setVideoPipelineSteps": {
45348
45855
  capName: "pipeline-executor",
45349
45856
  capScope: "system",
@@ -45362,41 +45869,35 @@ Object.freeze({
45362
45869
  addonId: null,
45363
45870
  access: "create"
45364
45871
  },
45365
- "pipelineExecutor.updateTemplate": {
45366
- capName: "pipeline-executor",
45367
- capScope: "system",
45368
- addonId: null,
45369
- access: "create"
45370
- },
45371
45872
  "pipelineExecutor.validatePipeline": {
45372
45873
  capName: "pipeline-executor",
45373
45874
  capScope: "system",
45374
45875
  addonId: null,
45375
45876
  access: "view"
45376
45877
  },
45377
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
45878
+ "pipelineOrchestrator.applyAutoTune": {
45378
45879
  capName: "pipeline-orchestrator",
45379
45880
  capScope: "system",
45380
45881
  addonId: null,
45381
45882
  access: "create"
45382
45883
  },
45383
- "pipelineOrchestrator.assignAudio": {
45884
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45384
45885
  capName: "pipeline-orchestrator",
45385
45886
  capScope: "system",
45386
45887
  addonId: null,
45387
45888
  access: "create"
45388
45889
  },
45389
- "pipelineOrchestrator.assignPipeline": {
45890
+ "pipelineOrchestrator.assignAudio": {
45390
45891
  capName: "pipeline-orchestrator",
45391
45892
  capScope: "system",
45392
45893
  addonId: null,
45393
45894
  access: "create"
45394
45895
  },
45395
- "pipelineOrchestrator.deleteTemplate": {
45896
+ "pipelineOrchestrator.assignPipeline": {
45396
45897
  capName: "pipeline-orchestrator",
45397
45898
  capScope: "system",
45398
45899
  addonId: null,
45399
- access: "delete"
45900
+ access: "create"
45400
45901
  },
45401
45902
  "pipelineOrchestrator.getAgentLoad": {
45402
45903
  capName: "pipeline-orchestrator",
@@ -45488,6 +45989,12 @@ Object.freeze({
45488
45989
  addonId: null,
45489
45990
  access: "view"
45490
45991
  },
45992
+ "pipelineOrchestrator.getEffectiveShares": {
45993
+ capName: "pipeline-orchestrator",
45994
+ capScope: "system",
45995
+ addonId: null,
45996
+ access: "view"
45997
+ },
45491
45998
  "pipelineOrchestrator.getGlobalMetrics": {
45492
45999
  capName: "pipeline-orchestrator",
45493
46000
  capScope: "system",
@@ -45524,19 +46031,19 @@ Object.freeze({
45524
46031
  addonId: null,
45525
46032
  access: "view"
45526
46033
  },
45527
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46034
+ "pipelineOrchestrator.getPlacementStats": {
45528
46035
  capName: "pipeline-orchestrator",
45529
46036
  capScope: "system",
45530
46037
  addonId: null,
45531
46038
  access: "view"
45532
46039
  },
45533
- "pipelineOrchestrator.listAgentSettings": {
46040
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45534
46041
  capName: "pipeline-orchestrator",
45535
46042
  capScope: "system",
45536
46043
  addonId: null,
45537
46044
  access: "view"
45538
46045
  },
45539
- "pipelineOrchestrator.listTemplates": {
46046
+ "pipelineOrchestrator.listAgentSettings": {
45540
46047
  capName: "pipeline-orchestrator",
45541
46048
  capScope: "system",
45542
46049
  addonId: null,
@@ -45548,6 +46055,12 @@ Object.freeze({
45548
46055
  addonId: null,
45549
46056
  access: "create"
45550
46057
  },
46058
+ "pipelineOrchestrator.planAutoTune": {
46059
+ capName: "pipeline-orchestrator",
46060
+ capScope: "system",
46061
+ addonId: null,
46062
+ access: "view"
46063
+ },
45551
46064
  "pipelineOrchestrator.rebalance": {
45552
46065
  capName: "pipeline-orchestrator",
45553
46066
  capScope: "system",
@@ -45590,12 +46103,6 @@ Object.freeze({
45590
46103
  addonId: null,
45591
46104
  access: "create"
45592
46105
  },
45593
- "pipelineOrchestrator.saveTemplate": {
45594
- capName: "pipeline-orchestrator",
45595
- capScope: "system",
45596
- addonId: null,
45597
- access: "create"
45598
- },
45599
46106
  "pipelineOrchestrator.setAgentCapabilities": {
45600
46107
  capName: "pipeline-orchestrator",
45601
46108
  capScope: "system",
@@ -45608,12 +46115,6 @@ Object.freeze({
45608
46115
  addonId: null,
45609
46116
  access: "create"
45610
46117
  },
45611
- "pipelineOrchestrator.setAgentDetectWeight": {
45612
- capName: "pipeline-orchestrator",
45613
- capScope: "system",
45614
- addonId: null,
45615
- access: "create"
45616
- },
45617
46118
  "pipelineOrchestrator.setAgentInferenceDevices": {
45618
46119
  capName: "pipeline-orchestrator",
45619
46120
  capScope: "system",
@@ -45650,6 +46151,12 @@ Object.freeze({
45650
46151
  addonId: null,
45651
46152
  access: "create"
45652
46153
  },
46154
+ "pipelineOrchestrator.setCameraStepSettings": {
46155
+ capName: "pipeline-orchestrator",
46156
+ capScope: "system",
46157
+ addonId: null,
46158
+ access: "create"
46159
+ },
45653
46160
  "pipelineOrchestrator.setCameraStepToggle": {
45654
46161
  capName: "pipeline-orchestrator",
45655
46162
  capScope: "system",
@@ -45668,25 +46175,37 @@ Object.freeze({
45668
46175
  addonId: null,
45669
46176
  access: "create"
45670
46177
  },
46178
+ "pipelineOrchestrator.setLoadBalancingShares": {
46179
+ capName: "pipeline-orchestrator",
46180
+ capScope: "system",
46181
+ addonId: null,
46182
+ access: "create"
46183
+ },
45671
46184
  "pipelineOrchestrator.setPipelineDevicePin": {
45672
46185
  capName: "pipeline-orchestrator",
45673
46186
  capScope: "system",
45674
46187
  addonId: null,
45675
46188
  access: "create"
45676
46189
  },
45677
- "pipelineOrchestrator.unassignAudio": {
46190
+ "pipelineOrchestrator.setShareSource": {
45678
46191
  capName: "pipeline-orchestrator",
45679
46192
  capScope: "system",
45680
46193
  addonId: null,
45681
46194
  access: "create"
45682
46195
  },
45683
- "pipelineOrchestrator.unassignPipeline": {
46196
+ "pipelineOrchestrator.suggestShares": {
46197
+ capName: "pipeline-orchestrator",
46198
+ capScope: "system",
46199
+ addonId: null,
46200
+ access: "view"
46201
+ },
46202
+ "pipelineOrchestrator.unassignAudio": {
45684
46203
  capName: "pipeline-orchestrator",
45685
46204
  capScope: "system",
45686
46205
  addonId: null,
45687
46206
  access: "create"
45688
46207
  },
45689
- "pipelineOrchestrator.updateTemplate": {
46208
+ "pipelineOrchestrator.unassignPipeline": {
45690
46209
  capName: "pipeline-orchestrator",
45691
46210
  capScope: "system",
45692
46211
  addonId: null,
@@ -47126,12 +47645,6 @@ Object.freeze({
47126
47645
  addonId: null,
47127
47646
  access: "view"
47128
47647
  },
47129
- "streamBroker.pullFrameHandles": {
47130
- capName: "stream-broker",
47131
- capScope: "system",
47132
- addonId: null,
47133
- access: "view"
47134
- },
47135
47648
  "streamBroker.regenerateRtspToken": {
47136
47649
  capName: "stream-broker",
47137
47650
  capScope: "system",
@@ -47198,12 +47711,6 @@ Object.freeze({
47198
47711
  addonId: null,
47199
47712
  access: "create"
47200
47713
  },
47201
- "streamBroker.subscribeFrames": {
47202
- capName: "stream-broker",
47203
- capScope: "system",
47204
- addonId: null,
47205
- access: "create"
47206
- },
47207
47714
  "streamBroker.unassignProfile": {
47208
47715
  capName: "stream-broker",
47209
47716
  capScope: "system",
@@ -47216,12 +47723,6 @@ Object.freeze({
47216
47723
  addonId: null,
47217
47724
  access: "create"
47218
47725
  },
47219
- "streamBroker.unsubscribeFrames": {
47220
- capName: "stream-broker",
47221
- capScope: "system",
47222
- addonId: null,
47223
- access: "create"
47224
- },
47225
47726
  "streamCatalog.getCatalog": {
47226
47727
  capName: "stream-catalog",
47227
47728
  capScope: "device",
@@ -47918,6 +48419,12 @@ Object.freeze({
47918
48419
  addonId: null,
47919
48420
  access: "create"
47920
48421
  },
48422
+ "webrtcSession.applyDownlinkProbe": {
48423
+ capName: "webrtc-session",
48424
+ capScope: "device",
48425
+ addonId: null,
48426
+ access: "create"
48427
+ },
47921
48428
  "webrtcSession.closeSession": {
47922
48429
  capName: "webrtc-session",
47923
48430
  capScope: "device",
@@ -49729,11 +50236,6 @@ Object.freeze({
49729
50236
  form: "single",
49730
50237
  optional: false
49731
50238
  }],
49732
- "decoder.createSession": [{
49733
- name: "deviceId",
49734
- form: "single",
49735
- optional: true
49736
- }],
49737
50239
  "detectionPipeline.applyDeviceSettingsPatch": [{
49738
50240
  name: "deviceId",
49739
50241
  form: "single",
@@ -50964,6 +51466,11 @@ Object.freeze({
50964
51466
  form: "single",
50965
51467
  optional: false
50966
51468
  }],
51469
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51470
+ name: "deviceIds",
51471
+ form: "array",
51472
+ optional: true
51473
+ }],
50967
51474
  "pipelineExecutor.runPipeline": [{
50968
51475
  name: "deviceId",
50969
51476
  form: "single",
@@ -51069,6 +51576,11 @@ Object.freeze({
51069
51576
  form: "single",
51070
51577
  optional: false
51071
51578
  }],
51579
+ "pipelineOrchestrator.setCameraStepSettings": [{
51580
+ name: "deviceId",
51581
+ form: "single",
51582
+ optional: false
51583
+ }],
51072
51584
  "pipelineOrchestrator.setCameraStepToggle": [{
51073
51585
  name: "deviceId",
51074
51586
  form: "single",
@@ -51840,6 +52352,11 @@ Object.freeze({
51840
52352
  form: "single",
51841
52353
  optional: false
51842
52354
  }],
52355
+ "webrtcSession.applyDownlinkProbe": [{
52356
+ name: "deviceId",
52357
+ form: "single",
52358
+ optional: false
52359
+ }],
51843
52360
  "webrtcSession.closeSession": [{
51844
52361
  name: "deviceId",
51845
52362
  form: "single",
@@ -52069,6 +52586,8 @@ new Map(Object.entries({
52069
52586
  "detection-blind": "device-events",
52070
52587
  "node-online": "system",
52071
52588
  "node-offline": "system",
52589
+ "node-restarting": "system",
52590
+ "node-updating": "system",
52072
52591
  "node-inference-unavailable": "system",
52073
52592
  "addon-crash-loop": "system",
52074
52593
  "addon-update-available": "system",
@@ -52146,18 +52665,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52146
52665
  kinds: [
52147
52666
  "node-offline",
52148
52667
  "node-online",
52668
+ "node-restarting",
52149
52669
  "node-inference-unavailable"
52150
52670
  ]
52151
52671
  },
52152
52672
  {
52153
52673
  id: "addons",
52154
52674
  family: "system",
52155
- label: "Addons",
52156
- kinds: [
52157
- "addon-crash-loop",
52158
- "addon-update-available",
52159
- "addon-updated"
52160
- ]
52675
+ label: "Addons stopped",
52676
+ kinds: ["addon-crash-loop"]
52677
+ },
52678
+ {
52679
+ id: "addon-updates",
52680
+ family: "system",
52681
+ label: "Addon updates",
52682
+ kinds: ["addon-update-available", "addon-updated"]
52161
52683
  },
52162
52684
  {
52163
52685
  id: "updates",
@@ -52165,6 +52687,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52165
52687
  label: "Server & container updates",
52166
52688
  kinds: [
52167
52689
  "server-update-available",
52690
+ "node-updating",
52168
52691
  "server-updated",
52169
52692
  "wrapper-update-available"
52170
52693
  ]
@@ -52312,18 +52835,21 @@ var STATE_SUMMARY_SECTION_VARS = [
52312
52835
  kinds: [
52313
52836
  "node-offline",
52314
52837
  "node-online",
52838
+ "node-restarting",
52315
52839
  "node-inference-unavailable"
52316
52840
  ]
52317
52841
  },
52318
52842
  {
52319
52843
  name: "summaryAddons",
52320
- label: "Summary: addons",
52321
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
52322
- kinds: [
52323
- "addon-crash-loop",
52324
- "addon-update-available",
52325
- "addon-updated"
52326
- ]
52844
+ label: "Summary: addons stopped",
52845
+ example: "hub — recorder stopped after repeated crashes",
52846
+ kinds: ["addon-crash-loop"]
52847
+ },
52848
+ {
52849
+ name: "summaryAddonUpdates",
52850
+ label: "Summary: addon updates",
52851
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
52852
+ kinds: ["addon-update-available", "addon-updated"]
52327
52853
  },
52328
52854
  {
52329
52855
  name: "summaryUpdates",
@@ -52331,6 +52857,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52331
52857
  example: "server 1.2.377 → 1.2.378",
52332
52858
  kinds: [
52333
52859
  "server-update-available",
52860
+ "node-updating",
52334
52861
  "server-updated",
52335
52862
  "wrapper-update-available"
52336
52863
  ]
@@ -52363,7 +52890,7 @@ var STATE_SUMMARY_VARS = [
52363
52890
  {
52364
52891
  name: "summarySection",
52365
52892
  label: "Summary: this section",
52366
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
52893
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52367
52894
  example: "Batterie scariche",
52368
52895
  group: "system",
52369
52896
  families: ["rule"],
@@ -52407,6 +52934,7 @@ var STATE_SUMMARY_VARS = [
52407
52934
  [...RULE_BODY_ONLY],
52408
52935
  [...RULE_TEXT],
52409
52936
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
52937
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
52410
52938
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
52411
52939
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
52412
52940
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -52447,6 +52975,8 @@ var STATE_SUMMARY_VARS = [
52447
52975
  [...RULE_TEXT],
52448
52976
  [...RULE_TEXT],
52449
52977
  [...RULE_TEXT],
52978
+ [...RULE_TEXT],
52979
+ [...RULE_TEXT],
52450
52980
  ...STATE_SUMMARY_VARS
52451
52981
  ];
52452
52982
  new Set([