@camstack/addon-matter-broker 0.2.119 → 0.2.120

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 +999 -532
  2. package/dist/addon.mjs +999 -532
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -11,7 +11,7 @@ import { networkInterfaces, tmpdir, uptime } from "node:os";
11
11
  import { finished } from "node:stream/promises";
12
12
  import { createConnection, createServer as createServer$2 } from "node:net";
13
13
  import * as dgram from "node:dgram";
14
- //#region ../types/dist/event-category-BGmz_oxW.mjs
14
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
15
15
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
16
16
  EventCategory["SystemBoot"] = "system.boot";
17
17
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -512,15 +512,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
512
512
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
513
513
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
514
514
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
515
- /**
516
- * Per-agent hwaccel preference changed (user override set, cleared, or
517
- * re-probed). Observability event — decoders pull the current pref at
518
- * `createSession`, so running sessions keep their current backend until
519
- * they rotate naturally (camera add/remove, stream restart). Future
520
- * work can wire a listener in stream-broker that force-rotates live
521
- * sessions; for now this event powers logs + admin-UI toast feedback.
522
- */
523
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
524
515
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
525
516
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
526
517
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5391,7 +5382,7 @@ var ZodIssueCode = {
5391
5382
  var ZodFirstPartyTypeKind;
5392
5383
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5393
5384
  //#endregion
5394
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5385
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5395
5386
  /**
5396
5387
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5397
5388
  * window to float samples (D455).
@@ -6757,32 +6748,12 @@ object({
6757
6748
  audioCodec: string$2().optional(),
6758
6749
  metadata: record(string$2(), unknown()).readonly().optional()
6759
6750
  });
6760
- var EncodedPacketSchema = object({
6761
- type: _enum(["video", "audio"]),
6762
- data: _instanceof(Uint8Array),
6763
- pts: number(),
6764
- dts: number(),
6765
- keyframe: boolean(),
6766
- codec: string$2()
6767
- });
6768
- var DecodedFrameSchema = object({
6769
- data: _instanceof(Uint8Array),
6770
- width: number(),
6771
- height: number(),
6772
- format: _enum([
6773
- "jpeg",
6774
- "rgb",
6775
- "bgr",
6776
- "yuv420",
6777
- "gray"
6778
- ]),
6779
- timestamp: number()
6780
- });
6781
6751
  /**
6782
6752
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6783
6753
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6784
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6785
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6754
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6755
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6756
+ * over tRPC / Moleculer.
6786
6757
  *
6787
6758
  * The `satisfies` assertion below pins this schema to the interface: if a
6788
6759
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6808,50 +6779,6 @@ var FrameHandleSchema = object({
6808
6779
  slotCount: number().int().positive()
6809
6780
  });
6810
6781
  /**
6811
- * Pixel format a frame-handle subscriber can request from the broker
6812
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6813
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6814
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6815
- * payload, and no decoded-frame consumer requests it over the shm plane.
6816
- */
6817
- var FrameHandleFormatSchema = _enum([
6818
- "rgb",
6819
- "bgr",
6820
- "yuv420",
6821
- "gray"
6822
- ]);
6823
- /**
6824
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6825
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6826
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6827
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6828
- * they asked for with no broker-side conversion.
6829
- */
6830
- var SubscribeFramesInputSchema = object({
6831
- brokerId: string$2(),
6832
- format: FrameHandleFormatSchema,
6833
- /**
6834
- * Optional reader-side cadence hint in frames per second. The broker does
6835
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6836
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6837
- * the consumer can pace its own `pullFrameHandles` polling.
6838
- */
6839
- maxFps: number().positive().optional(),
6840
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6841
- tag: string$2().optional()
6842
- });
6843
- /**
6844
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6845
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6846
- * `FrameHandle` to a `FrameRingReader`.
6847
- */
6848
- var SubscribeFramesResultSchema = object({
6849
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6850
- subscriptionId: string$2(),
6851
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6852
- maxFps: number().nonnegative()
6853
- });
6854
- /**
6855
6782
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6856
6783
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6857
6784
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6859,8 +6786,8 @@ var SubscribeFramesResultSchema = object({
6859
6786
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6860
6787
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6861
6788
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6862
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6863
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6789
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6790
+ * it.
6864
6791
  */
6865
6792
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6866
6793
  var DecodedAudioChunkSchema = object({
@@ -6878,11 +6805,10 @@ var DecodedAudioChunkSchema = object({
6878
6805
  format: AudioChunkFormatSchema.optional()
6879
6806
  });
6880
6807
  /**
6881
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6882
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6883
- * asks the broker for the decoded audio-chunk stream of one broker; the
6884
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6885
- * `pullAudioChunks`.
6808
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6809
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6810
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6811
+ * the consumer drains via `pullAudioChunks`.
6886
6812
  */
6887
6813
  var SubscribeAudioChunksInputSchema = object({
6888
6814
  brokerId: string$2(),
@@ -6913,9 +6839,7 @@ var BrokerStatsSchema = object({
6913
6839
  "stopped"
6914
6840
  ]),
6915
6841
  inputFps: number(),
6916
- decodeFps: number(),
6917
6842
  encodedSubscribers: number(),
6918
- decodedSubscribers: number(),
6919
6843
  uptimeMs: number(),
6920
6844
  bitrateKbps: number(),
6921
6845
  idrIntervalMs: number(),
@@ -6928,14 +6852,6 @@ var BrokerStatsSchema = object({
6928
6852
  preBufferMs: number(),
6929
6853
  preBufferPackets: number(),
6930
6854
  /**
6931
- * Moleculer node id of the decoder provider currently servicing this
6932
- * stream's decoded subscribers. `null` until the deferred decoder is
6933
- * created (no decoded clients yet, or codec not detected). Surfaces the
6934
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6935
- * a separate cap call per broker.
6936
- */
6937
- decoderNodeId: string$2().nullable(),
6938
- /**
6939
6855
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6940
6856
  * when the stream has no audio track or the broker is in cold start.
6941
6857
  * `supported = false` means the codec was detected but the local
@@ -10271,70 +10187,6 @@ var StorageLocationDeclarationSchema = object({
10271
10187
  "backup"
10272
10188
  ]).optional()
10273
10189
  });
10274
- var DecoderStatsSchema = object({
10275
- inputFps: number(),
10276
- outputFps: number(),
10277
- avgDecodeTimeMs: number(),
10278
- droppedFrames: number(),
10279
- /**
10280
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10281
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10282
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10283
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10284
- */
10285
- lagMs: number().optional(),
10286
- effectiveFps: number().optional(),
10287
- adaptiveFps: number().optional()
10288
- });
10289
- var DecoderSessionConfigSchema = object({
10290
- codec: string$2(),
10291
- maxFps: number().default(0),
10292
- outputFormat: _enum([
10293
- "jpeg",
10294
- "rgb",
10295
- "bgr",
10296
- "yuv420",
10297
- "gray"
10298
- ]).default("jpeg"),
10299
- scale: number().default(1),
10300
- width: number().optional(),
10301
- height: number().optional(),
10302
- /**
10303
- * Identifier of the camera this decoder session serves. Optional
10304
- * because the cap is generic (any caller could request decode), but
10305
- * stream-broker passes it so decoder logs include `deviceId` for
10306
- * per-camera filtering when diagnosing failures (e.g. node-av
10307
- * sendPacket errors on a single hung camera).
10308
- */
10309
- deviceId: number().int().nonnegative().optional(),
10310
- /**
10311
- * Free-form tag for log scoping. Stream-broker uses
10312
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10313
- * on every line so `grep tag=broker:5/high` filters one camera
10314
- * profile cleanly.
10315
- */
10316
- tag: string$2().optional(),
10317
- /**
10318
- * Where the session delivers decoded frames (Phase 5 / D9):
10319
- *
10320
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10321
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10322
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10323
- * into an OS shared-memory ring and drained as zero-pixel
10324
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10325
- * other — `pullFrames` returns nothing for an `'shm'` session and
10326
- * `pullHandles` returns nothing for a `'callback'` session.
10327
- */
10328
- frameSink: _enum(["callback", "shm"]).default("callback"),
10329
- /**
10330
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10331
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10332
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10333
- * stream-broker's `streamingDebug` gate — off by default so production logs
10334
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10335
- */
10336
- debug: boolean().optional()
10337
- });
10338
10190
  /**
10339
10191
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10340
10192
  * an addon declares its channels in.
@@ -10477,6 +10329,26 @@ var ClipSearchStrictnessSchema = _enum([
10477
10329
  "balanced",
10478
10330
  "strict"
10479
10331
  ]);
10332
+ /** Steps whose effect a root label can BE. */
10333
+ var LABEL_SUPPLY_STEP_IDS = [
10334
+ "animal-classifier",
10335
+ "vehicle-classifier",
10336
+ "package-detection"
10337
+ ];
10338
+ /** Steps whose box a root detection can BE. */
10339
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10340
+ /**
10341
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10342
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10343
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10344
+ * no camera tree carries.)
10345
+ */
10346
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10347
+ [
10348
+ ...LABEL_SUPPLY_STEP_IDS,
10349
+ ...CROP_SUPPLY_STEP_IDS,
10350
+ ...MASK_SUPPLY_STEP_IDS
10351
+ ];
10480
10352
  var MODEL_FORMATS = [
10481
10353
  "onnx",
10482
10354
  "coreml",
@@ -10505,7 +10377,53 @@ var ModelFormatEntrySchema = object({
10505
10377
  /** Multi-file payload (directory members or sibling files). */
10506
10378
  files: array(string$2()).readonly().optional(),
10507
10379
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10508
- runtimes: array(_enum(["python"])).readonly().optional()
10380
+ runtimes: array(_enum(["python"])).readonly().optional(),
10381
+ /**
10382
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10383
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10384
+ * weight file) comes from the downloader's generated table, kept in step
10385
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10386
+ * node records the revision it downloaded next to the file
10387
+ * (`<file>.revision`); a copy with no record or a different one is stale
10388
+ * unless its weight file hashes to the revision, and a stale copy is
10389
+ * downloaded again, the old one serving until the new one is complete. No
10390
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10391
+ */
10392
+ revision: string$2().min(1).optional()
10393
+ });
10394
+ /**
10395
+ * What a node holds for one (model, format) (D746). `current` is a complete
10396
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10397
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10398
+ * no or a different revision record, or a missing sibling. `missing` is no
10399
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10400
+ * reclaimable bytes and a copy about to be replaced.
10401
+ */
10402
+ var ModelOnDiskStateSchema = _enum([
10403
+ "current",
10404
+ "stale",
10405
+ "missing"
10406
+ ]);
10407
+ /**
10408
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10409
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10410
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10411
+ */
10412
+ var ModelFormatPrecisionSchema = _enum([
10413
+ "fp32",
10414
+ "fp16",
10415
+ "int8"
10416
+ ]);
10417
+ /**
10418
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10419
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10420
+ * them omits them, and a reader falls back to `downloaded`.
10421
+ */
10422
+ var PipelineModelFormatStatusSchema = object({
10423
+ downloaded: boolean(),
10424
+ sizeMB: number(),
10425
+ onDisk: ModelOnDiskStateSchema.optional(),
10426
+ precision: ModelFormatPrecisionSchema.optional()
10509
10427
  });
10510
10428
  /**
10511
10429
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10546,11 +10464,11 @@ var ModelVariantGroupSchema = object({
10546
10464
  /** Quantization axis. Omit ⇒ the fp32 base build. */
10547
10465
  precision: _enum(["fp32", "int8"]).optional(),
10548
10466
  /**
10549
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
10550
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
10551
- * future performance variants plug into.
10467
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
10468
+ * an alternate training of the same family (Scrypted `relu_test`); chip
10469
+ * label is "Test".
10552
10470
  */
10553
- optimization: _enum(["standard", "fast"]).optional(),
10471
+ optimization: _enum(["standard", "test"]).optional(),
10554
10472
  /**
10555
10473
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
10556
10474
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -10573,9 +10491,10 @@ var ModelProviderIdSchema = _enum([
10573
10491
  * are per upstream. A persisted custom-model row written when this field was a
10574
10492
  * string still parses — the string is lifted into `{ weights }`.
10575
10493
  *
10576
- * Every licence surface (the admin "Models and licenses" page,
10577
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
10578
- * these records by `scripts/gen-model-licenses.ts` (D661).
10494
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
10495
+ * model table) is GENERATED from these records by
10496
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
10497
+ * `camstack/docs` → `/docs/detection/models`.
10579
10498
  */
10580
10499
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
10581
10500
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -10608,6 +10527,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10608
10527
  /** True when the weights or their data forbid commercial use. */
10609
10528
  nonCommercial: boolean().optional()
10610
10529
  }));
10530
+ /**
10531
+ * One step a ROOT detector can supply from its own output (D730) — see
10532
+ * `ModelCatalogEntry.suppliesSteps`.
10533
+ *
10534
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10535
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10536
+ * the root cannot produce (shown as unavailable, never a blocker).
10537
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10538
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10539
+ * child of the `parentMacro` detection that contains it — never a track.
10540
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10541
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10542
+ * detection in the shape that step produces. Derived from the model's
10543
+ * postprocessor on read, never stored by an import.
10544
+ */
10545
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10546
+ object({
10547
+ kind: literal("label"),
10548
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10549
+ labelToEffect: record(string$2(), string$2()),
10550
+ uncovered: array(string$2()).readonly()
10551
+ }),
10552
+ object({
10553
+ kind: literal("crop"),
10554
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10555
+ rootLabels: array(string$2()).readonly(),
10556
+ parentMacro: _enum(["vehicle", "person"]),
10557
+ childClass: _enum(["plate", "face"]),
10558
+ /**
10559
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10560
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10561
+ * stored by an import.
10562
+ */
10563
+ rootInputPx: number().int().positive().optional()
10564
+ }),
10565
+ object({
10566
+ kind: literal("mask"),
10567
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10568
+ })
10569
+ ]);
10611
10570
  var ModelCatalogEntrySchema = object({
10612
10571
  id: string$2(),
10613
10572
  name: string$2(),
@@ -10673,6 +10632,35 @@ var ModelCatalogEntrySchema = object({
10673
10632
  */
10674
10633
  defaultConfidence: number().min(0).max(1).optional(),
10675
10634
  /**
10635
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10636
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10637
+ * absent here runs at the step slider's global default. The same row shape
10638
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10639
+ * a measured table is copied in as-is. An operator override is bound to the
10640
+ * model it was made for and does not survive a model change (D738). A custom
10641
+ * / imported model may declare it; without it, the global defaults apply.
10642
+ */
10643
+ defaultClassFloors: record(string$2(), number().min(0).max(1)).optional(),
10644
+ /**
10645
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10646
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10647
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10648
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10649
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10650
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10651
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10652
+ */
10653
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10654
+ /**
10655
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10656
+ * minimum DETECTION score from which this root's own fine label (species,
10657
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10658
+ * keeps its macro class without the fine label. `1` = never take it from
10659
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10660
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10661
+ */
10662
+ suppliedLabelFloors: record(string$2(), number().min(0).max(1)).optional(),
10663
+ /**
10676
10664
  * When true, the executor produces a landmark-aligned crop (similarity warp
10677
10665
  * onto the canonical template) before this step runs, instead of a plain
10678
10666
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10734,6 +10722,16 @@ var ModelCatalogEntrySchema = object({
10734
10722
  */
10735
10723
  classMap: DetectionCatalogClassMapSchema.optional(),
10736
10724
  /**
10725
+ * The pipeline steps this ROOT detector can supply from its own output
10726
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10727
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10728
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10729
+ * by hand and never assumed per family; a row without it is derived on read
10730
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10731
+ * `useRootModel` flag (`resolveRootSupply`).
10732
+ */
10733
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10734
+ /**
10737
10735
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10738
10736
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10739
10737
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12384,13 +12382,6 @@ var BrokerRtspClientSchema = object({
12384
12382
  lastRtpAt: number(),
12385
12383
  bytesSent: number()
12386
12384
  });
12387
- var BrokerDecodedClientSchema = object({
12388
- tag: string$2(),
12389
- subscribedAt: number(),
12390
- maxFps: number(),
12391
- framesDelivered: number(),
12392
- framesDropped: number()
12393
- });
12394
12385
  var BrokerAudioClientSchema = object({
12395
12386
  tag: string$2(),
12396
12387
  subscribedAt: number(),
@@ -12482,7 +12473,6 @@ var BrokerEncodedClientSchema = object({
12482
12473
  });
12483
12474
  var BrokerClientsSchema = object({
12484
12475
  rtsp: array(BrokerRtspClientSchema).readonly(),
12485
- decoded: array(BrokerDecodedClientSchema).readonly(),
12486
12476
  audio: array(BrokerAudioClientSchema).readonly(),
12487
12477
  encoded: array(BrokerEncodedClientSchema).readonly(),
12488
12478
  pipeClients: number(),
@@ -12851,11 +12841,7 @@ method(object({
12851
12841
  auth: "admin"
12852
12842
  }), method(object({ brokerId: string$2() }), BrokerClientsSchema), method(object({
12853
12843
  brokerId: string$2(),
12854
- channel: _enum([
12855
- "rtsp",
12856
- "decoded",
12857
- "audio"
12858
- ]),
12844
+ channel: _enum(["rtsp", "audio"]),
12859
12845
  handle: string$2()
12860
12846
  }), object({ killed: boolean() }), {
12861
12847
  kind: "mutation",
@@ -12890,10 +12876,7 @@ method(object({
12890
12876
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12891
12877
  subscriptionId: string$2(),
12892
12878
  maxCount: number().int().positive().default(8)
12893
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string$2() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12894
- subscriptionId: string$2(),
12895
- maxCount: number().int().positive().default(4)
12896
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string$2() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12879
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string$2() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12897
12880
  brokerId: string$2(),
12898
12881
  seconds: number().min(0).max(30)
12899
12882
  }), _void(), {
@@ -14152,54 +14135,12 @@ id: union([string$2(), number()]) }), {
14152
14135
  kind: "mutation",
14153
14136
  auth: "admin"
14154
14137
  });
14155
- /**
14156
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14157
- * exposed via `decoder.getShmStats` so downstream consumers can
14158
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14159
- */
14160
- var ShmRingStatsSchema = object({
14161
- sessionId: string$2(),
14162
- slotCount: number().int(),
14163
- slotByteLength: number().int(),
14164
- segmentBytes: number().int(),
14165
- budgetMb: number().int(),
14166
- framesWritten: number().int(),
14167
- getFrameHits: number().int(),
14168
- getFrameMisses: number().int()
14169
- });
14170
- method(object({ codec: string$2() }), boolean()), method(_void(), object({
14138
+ method(_void(), object({
14171
14139
  id: string$2(),
14172
14140
  name: string$2(),
14173
- isPullMode: boolean().optional(),
14174
- priority: number().optional(),
14175
14141
  hwaccel: string$2().optional(),
14176
14142
  probedBestHwaccel: string$2().optional()
14177
- })), method(DecoderSessionConfigSchema, object({
14178
- sessionId: string$2(),
14179
- nodeId: string$2()
14180
- })), method(object({ sessionId: string$2() }), _void()), method(object({
14181
- sessionId: string$2(),
14182
- packet: EncodedPacketSchema
14183
- }), _void()), method(object({
14184
- sessionId: string$2(),
14185
- url: string$2()
14186
- }), _void()), method(object({
14187
- sessionId: string$2(),
14188
- maxCount: number().default(1),
14189
- waitMs: number().optional()
14190
- }), array(DecodedFrameSchema)), method(object({
14191
- sessionId: string$2(),
14192
- maxCount: number().default(1),
14193
- waitMs: number().optional()
14194
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string$2() }), ShmRingStatsSchema.nullable()), method(object({
14195
- sessionId: string$2(),
14196
- config: DecoderSessionConfigSchema.partial()
14197
- }), _void()), method(object({ sessionId: string$2() }), DecoderStatsSchema), method(_void(), array(object({
14198
- sessionId: string$2(),
14199
- codec: string$2(),
14200
- outputFormat: string$2(),
14201
- createdAtMs: number()
14202
- })).readonly()), method(_void(), object({ backend: string$2() }), {
14143
+ })), method(_void(), object({ backend: string$2() }), {
14203
14144
  kind: "mutation",
14204
14145
  auth: "admin"
14205
14146
  });
@@ -14255,7 +14196,7 @@ DeviceType.Camera;
14255
14196
  * This matters here more than anywhere else in the repo, because every provider
14256
14197
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
14257
14198
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
14258
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
14199
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
14259
14200
  * camera's own page will ask for its own login. That is correct, and pre-
14260
14201
  * filling it is the operator's business, not ours.
14261
14202
  *
@@ -16248,6 +16189,12 @@ method(_void(), array(string$2()).readonly(), { auth: "admin" }), method(object(
16248
16189
  kind: "mutation",
16249
16190
  auth: "admin"
16250
16191
  });
16192
+ var HUB_ADDRESS_ROLES = [
16193
+ "appConnections",
16194
+ "notificationTaps",
16195
+ "internal",
16196
+ "publicEndpoint"
16197
+ ];
16251
16198
  /**
16252
16199
  * Transport bounds for AI capability methods.
16253
16200
  *
@@ -17444,7 +17391,7 @@ method(object({
17444
17391
  timeoutMs: 6e5
17445
17392
  });
17446
17393
  method(object({
17447
- nodeId: string$2(),
17394
+ targetNodeId: string$2(),
17448
17395
  modelId: string$2(),
17449
17396
  format: _enum(MODEL_FORMATS),
17450
17397
  entry: ModelCatalogEntrySchema
@@ -18850,6 +18797,8 @@ var NcSystemEventKindSchema = _enum([
18850
18797
  "stream-offline",
18851
18798
  "node-online",
18852
18799
  "node-offline",
18800
+ "node-restarting",
18801
+ "node-updating",
18853
18802
  "node-inference-unavailable",
18854
18803
  "detection-blind",
18855
18804
  "addon-crash-loop",
@@ -19948,8 +19897,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
19948
19897
  disabledTargetIds: array(string$2()).default([])
19949
19898
  });
19950
19899
  /**
19951
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
19952
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
19900
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
19901
+ * report a still-true state. `addons` is the crash-looped addons only and
19902
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
19953
19903
  * job is not an open state, and the alarm stays instant.
19954
19904
  */
19955
19905
  var NcStateSummarySectionIdSchema = _enum([
@@ -19961,6 +19911,7 @@ var NcStateSummarySectionIdSchema = _enum([
19961
19911
  "detection-blind",
19962
19912
  "nodes",
19963
19913
  "addons",
19914
+ "addon-updates",
19964
19915
  "updates"
19965
19916
  ]);
19966
19917
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -20441,7 +20392,25 @@ var NcAlarmModeDelaysListSchema = array(object({
20441
20392
  * When this mode may be armed. Absent / null = always allowed (same as a
20442
20393
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
20443
20394
  */
20444
- schedule: NcScheduleSchema.optional()
20395
+ schedule: NcScheduleSchema.optional(),
20396
+ /**
20397
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
20398
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
20399
+ * only one, and the matches ride the triggered notification's mosaic (D705).
20400
+ */
20401
+ notifyDuringEntryDelay: boolean().optional(),
20402
+ /**
20403
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
20404
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20405
+ * is the one that starts the entry delay — the entry-delay notification already names it.
20406
+ */
20407
+ notifySensorRewatched: boolean().optional(),
20408
+ /**
20409
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20410
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20411
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20412
+ */
20413
+ notifySensorIgnored: boolean().optional()
20445
20414
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20446
20415
  var NcAlarmModeDelaysEditListSchema = array(object({
20447
20416
  mode: AlarmArmModeSchema,
@@ -20450,7 +20419,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20450
20419
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
20451
20420
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
20452
20421
  /** Set a schedule, or `null` to clear (mode always allowed again). */
20453
- schedule: NcScheduleSchema.nullable().optional()
20422
+ schedule: NcScheduleSchema.nullable().optional(),
20423
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20424
+ notifyDuringEntryDelay: boolean().nullable().optional(),
20425
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20426
+ notifySensorRewatched: boolean().nullable().optional(),
20427
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20428
+ notifySensorIgnored: boolean().nullable().optional()
20454
20429
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20455
20430
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20456
20431
  var NcAlarmNonBlockingEditSchema = object({
@@ -21411,45 +21386,25 @@ Object.freeze(Object.fromEntries([{
21411
21386
  label: "Face recognition model",
21412
21387
  defaultModelId: "auraface-r100",
21413
21388
  indexName: "the enrolled face gallery",
21414
- options: [
21415
- {
21416
- id: "auraface-r100",
21417
- label: "AuraFace R100"
21418
- },
21419
- {
21420
- id: "arcface-r100",
21421
- label: "ArcFace (ResNet34)"
21422
- },
21423
- {
21424
- id: "inception-resnet-v1",
21425
- label: "Inception ResNet V1"
21426
- }
21427
- ]
21389
+ options: [{
21390
+ id: "auraface-r100",
21391
+ label: "AuraFace R100"
21392
+ }]
21428
21393
  }, {
21429
21394
  stepId: "clip-embedding",
21430
21395
  label: "Semantic search model",
21431
- defaultModelId: "mobileclip-s1",
21396
+ defaultModelId: "siglip2-b16-224",
21432
21397
  indexName: "the object semantic-search index",
21433
- options: [
21434
- {
21435
- id: "mobileclip-s1",
21436
- label: "MobileCLIP S1"
21437
- },
21438
- {
21439
- id: "mobileclip-s2",
21440
- label: "MobileCLIP S2"
21441
- },
21442
- {
21443
- id: "siglip2-b16-224",
21444
- label: "SigLIP2 B/16 (Apache-2.0)"
21445
- }
21446
- ]
21398
+ options: [{
21399
+ id: "siglip2-b16-224",
21400
+ label: "SigLIP2 B/16 (Apache-2.0)"
21401
+ }]
21447
21402
  }].map((s) => [s.stepId, s.defaultModelId])));
21448
21403
  var CLUSTER_STEP_SETTING_FIELDS = [{
21449
21404
  stepId: "face-embedding",
21450
21405
  key: "minLandmarkFaceSize",
21451
- label: "Min face size for recognition (detection px)",
21452
- 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.",
21406
+ label: "Min face size to embed (detection-frame px)",
21407
+ 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.",
21453
21408
  type: "slider",
21454
21409
  min: 0,
21455
21410
  max: 64,
@@ -23369,6 +23324,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23369
23324
  timestamp: number()
23370
23325
  });
23371
23326
  /**
23327
+ * A root model's boxes standing in for one crop-kind step's own inference
23328
+ * (D730) — see `runPipeline.suppliedRoot`.
23329
+ */
23330
+ var SuppliedRootOutputSchema = object({
23331
+ stepId: string$2(),
23332
+ /** The root model that drew the boxes — stamped on the result. */
23333
+ modelId: string$2(),
23334
+ detections: array(object({
23335
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23336
+ bbox: tuple([
23337
+ number(),
23338
+ number(),
23339
+ number(),
23340
+ number()
23341
+ ]),
23342
+ score: number(),
23343
+ /**
23344
+ * Five facial landmarks in the same pixels — a face the step's own
23345
+ * detector already re-found inside a root face box (D730), so its
23346
+ * embedder child aligns it exactly as it aligns any detected face.
23347
+ */
23348
+ landmarks: array(object({
23349
+ x: number(),
23350
+ y: number()
23351
+ })).optional()
23352
+ })).min(1)
23353
+ });
23354
+ /**
23372
23355
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23373
23356
  * within the frame, so the executor can re-cut a leaf child ROI at native
23374
23357
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23416,7 +23399,7 @@ var FrameRefSchema = object({
23416
23399
  timestamp: number(),
23417
23400
  capturedAt: number().optional()
23418
23401
  });
23419
- var ModelFormatSchema$1 = _enum([
23402
+ var ModelFormatSchema$2 = _enum([
23420
23403
  "onnx",
23421
23404
  "coreml",
23422
23405
  "openvino",
@@ -23434,7 +23417,7 @@ var PipelineSlotSchema = _enum([
23434
23417
  var PipelineEngineChoiceSchema = object({
23435
23418
  runtime: literal("python"),
23436
23419
  backend: string$2(),
23437
- format: ModelFormatSchema$1,
23420
+ format: ModelFormatSchema$2,
23438
23421
  device: string$2().optional()
23439
23422
  });
23440
23423
  /**
@@ -23473,32 +23456,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23473
23456
  group: string$2().optional(),
23474
23457
  settings: record(string$2(), unknown()).optional()
23475
23458
  }));
23476
- var PipelineTemplateStepSchema = lazy(() => object({
23477
- addonId: string$2(),
23478
- enabled: boolean(),
23479
- modelId: string$2(),
23480
- children: array(PipelineTemplateStepSchema).readonly(),
23481
- settings: record(string$2(), unknown()).optional()
23482
- }));
23483
- var PipelineTemplateSchema$1 = object({
23484
- id: string$2(),
23485
- name: string$2(),
23486
- createdAt: string$2(),
23487
- updatedAt: string$2(),
23488
- engine: PipelineEngineChoiceSchema,
23489
- steps: array(PipelineTemplateStepSchema).readonly()
23490
- });
23491
23459
  var PipelineModelOptionSchema = object({
23492
23460
  id: string$2(),
23493
23461
  name: string$2(),
23494
- formats: record(string$2(), object({
23495
- downloaded: boolean(),
23496
- sizeMB: number()
23497
- })),
23462
+ formats: record(string$2(), PipelineModelFormatStatusSchema),
23498
23463
  group: ModelVariantGroupSchema.optional(),
23499
23464
  legacy: boolean().optional(),
23500
23465
  provider: ModelProviderIdSchema.optional(),
23501
- defaultConfidence: number().optional()
23466
+ defaultConfidence: number().optional(),
23467
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23502
23468
  });
23503
23469
  var ConfigFieldBridge = custom();
23504
23470
  var PipelineAddonSchemaSchema = object({
@@ -23660,6 +23626,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23660
23626
  }), {
23661
23627
  kind: "mutation",
23662
23628
  auth: "admin"
23629
+ }), method(object({
23630
+ nodeId: string$2(),
23631
+ deviceIds: array(number()).readonly().optional(),
23632
+ dryRun: boolean()
23633
+ }), object({
23634
+ entries: array(object({
23635
+ deviceId: number(),
23636
+ keys: array(string$2()).readonly()
23637
+ })).readonly(),
23638
+ refused: array(object({
23639
+ deviceId: number(),
23640
+ reason: string$2()
23641
+ })).readonly()
23642
+ }), {
23643
+ kind: "mutation",
23644
+ auth: "admin"
23663
23645
  }), method(object({ nodeId: string$2() }), object({ unhealthy: array(object({
23664
23646
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23665
23647
  deviceKey: string$2(),
@@ -23685,22 +23667,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23685
23667
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23686
23668
  steps: array(PipelineStepInputSchema),
23687
23669
  deviceKey: string$2().optional()
23688
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23689
- name: string$2(),
23690
- steps: array(PipelineTemplateStepSchema).readonly(),
23691
- engine: PipelineEngineChoiceSchema
23692
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23693
- id: string$2(),
23694
- name: string$2().optional(),
23695
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23696
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string$2() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string$2() }), ModelAvailabilityListBridge), method(object({
23670
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string$2() }), ModelAvailabilityListBridge), method(object({
23697
23671
  addonId: string$2(),
23698
23672
  modelId: string$2(),
23699
- format: ModelFormatSchema$1
23673
+ format: ModelFormatSchema$2
23700
23674
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23701
23675
  addonId: string$2(),
23702
23676
  modelId: string$2(),
23703
- format: ModelFormatSchema$1
23677
+ format: ModelFormatSchema$2
23704
23678
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23705
23679
  steps: array(PipelineStepInputSchema).min(1),
23706
23680
  frame: FrameInputSchema.optional(),
@@ -23766,7 +23740,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23766
23740
  * `device-not-servable`), and nothing reaches the camera's live
23767
23741
  * trace stream. Absent ⇒ unchanged behaviour.
23768
23742
  */
23769
- replay: literal(true).optional()
23743
+ replay: literal(true).optional(),
23744
+ /**
23745
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23746
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23747
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23748
+ * NOT inferred, these boxes are its output, and its children (the plate
23749
+ * reader) run on them through their own crop policy. Boxes are in the
23750
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23751
+ */
23752
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23770
23753
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23771
23754
  steps: array(PipelineStepInputSchema).min(1),
23772
23755
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23848,6 +23831,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23848
23831
  filename: string$2().optional(),
23849
23832
  settings: record(string$2(), unknown()).optional()
23850
23833
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23834
+ /**
23835
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23836
+ * `pipeline-orchestrator` cap. The recommender's own types
23837
+ * (`recommend.ts`) are the TS face of the same data; these
23838
+ * schemas are what crosses the cap boundary.
23839
+ */
23840
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23841
+ /** The operator's range for it. */
23842
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23843
+ min: 1,
23844
+ max: 8
23845
+ };
23846
+ var HardwareClassIdSchema = _enum([
23847
+ "intel-core-ultra",
23848
+ "intel-n-series",
23849
+ "apple-m-base",
23850
+ "apple-m-pro",
23851
+ "unknown"
23852
+ ]);
23853
+ var AcceleratorKindSchema = _enum([
23854
+ "intel-npu",
23855
+ "intel-igpu",
23856
+ "x86-cpu",
23857
+ "arm-cpu",
23858
+ "apple-ane",
23859
+ "coral"
23860
+ ]);
23861
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23862
+ object({
23863
+ kind: literal("capacity"),
23864
+ sessions: number(),
23865
+ minSessions: number()
23866
+ }),
23867
+ object({
23868
+ kind: literal("tie-faster"),
23869
+ over: string$2(),
23870
+ recallDelta: number()
23871
+ }),
23872
+ object({
23873
+ kind: literal("stepped-down"),
23874
+ from: string$2(),
23875
+ to: string$2(),
23876
+ limitedBy: string$2()
23877
+ }),
23878
+ object({
23879
+ kind: literal("no-fit-lightest"),
23880
+ sessions: number(),
23881
+ minSessions: number()
23882
+ }),
23883
+ object({
23884
+ kind: literal("derived-latency"),
23885
+ modelId: string$2()
23886
+ }),
23887
+ object({ kind: literal("cpu-device") }),
23888
+ object({ kind: literal("coral-untouched") }),
23889
+ object({ kind: literal("device-disabled") }),
23890
+ object({ kind: literal("device-unavailable") }),
23891
+ object({ kind: literal("node-offline") }),
23892
+ object({ kind: literal("no-hardware-facts") }),
23893
+ object({
23894
+ kind: literal("no-measured-data"),
23895
+ hardwareClass: HardwareClassIdSchema
23896
+ }),
23897
+ object({
23898
+ kind: literal("no-family-build"),
23899
+ format: ModelFormatSchema$1
23900
+ })
23901
+ ]);
23902
+ var DeviceModelChoiceSchema = object({
23903
+ modelId: string$2(),
23904
+ p50Ms: number(),
23905
+ fps: number(),
23906
+ measured: boolean(),
23907
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23908
+ capacitySessions: number(),
23909
+ personRecall: number()
23910
+ });
23911
+ var DeviceRecommendationSchema = object({
23912
+ deviceKey: string$2(),
23913
+ accelerator: AcceleratorKindSchema.nullable(),
23914
+ enabled: boolean(),
23915
+ available: boolean(),
23916
+ chosen: DeviceModelChoiceSchema.nullable(),
23917
+ reasons: array(RecommendationReasonSchema).readonly()
23918
+ });
23919
+ var NodeRecommendationSchema = object({
23920
+ nodeId: string$2(),
23921
+ reachable: boolean(),
23922
+ hardwareClass: HardwareClassIdSchema.nullable(),
23923
+ cpuModel: string$2().nullable(),
23924
+ skipped: boolean(),
23925
+ acceleratorModelId: string$2().nullable(),
23926
+ devices: array(DeviceRecommendationSchema).readonly(),
23927
+ reasons: array(RecommendationReasonSchema).readonly()
23928
+ });
23929
+ var ModelPinChangeSchema = object({
23930
+ stepId: string$2(),
23931
+ before: string$2().nullable(),
23932
+ after: string$2().nullable()
23933
+ });
23934
+ var NodeDeviceChangeSchema = object({
23935
+ nodeId: string$2(),
23936
+ deviceKey: string$2(),
23937
+ madeExplicit: boolean(),
23938
+ modelPins: array(ModelPinChangeSchema).readonly(),
23939
+ thresholds: array(object({
23940
+ stepId: string$2(),
23941
+ keys: array(string$2()).readonly()
23942
+ })).readonly()
23943
+ });
23944
+ var CameraOverrideClearSchema = object({
23945
+ deviceId: number(),
23946
+ source: _enum(["step-override", "wholesale"]),
23947
+ nodeId: string$2(),
23948
+ deviceKey: string$2().nullable(),
23949
+ stepId: string$2(),
23950
+ modelIdBefore: string$2().nullable(),
23951
+ keys: array(string$2()).readonly()
23952
+ });
23953
+ var DetectorStoreClearSchema = object({
23954
+ deviceId: number(),
23955
+ keys: array(string$2()).readonly()
23956
+ });
23957
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
23958
+ object({
23959
+ kind: literal("detector-store-cluster-wide"),
23960
+ skippedNodes: array(string$2()).readonly()
23961
+ }),
23962
+ object({
23963
+ kind: literal("detector-store-unreadable"),
23964
+ error: string$2()
23965
+ }),
23966
+ object({
23967
+ kind: literal("coral-enabled"),
23968
+ nodeId: string$2(),
23969
+ deviceKey: string$2()
23970
+ })
23971
+ ]);
23972
+ var AutoTuneOptionsSchema = object({
23973
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
23974
+ headroom: number().min(.3).max(.5).default(.4),
23975
+ /**
23976
+ * The least number of parallel sessions every device must sustain at the
23977
+ * camera rate with the headroom kept free (D755). The most accurate model
23978
+ * that reaches it wins.
23979
+ */
23980
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
23981
+ });
23982
+ var AutoTunePlanSchema = object({
23983
+ /** Hash of everything the apply will write — the apply refuses a different one. */
23984
+ planHash: string$2(),
23985
+ family: literal("yolov9"),
23986
+ headroom: number(),
23987
+ minSessionsPerDevice: number(),
23988
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
23989
+ cameraFps: number(),
23990
+ generatedAt: number(),
23991
+ nodes: array(NodeRecommendationSchema).readonly(),
23992
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
23993
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
23994
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
23995
+ warnings: array(AutoTuneWarningSchema).readonly()
23996
+ });
23997
+ var AutoTuneApplyInputSchema = object({
23998
+ planHash: string$2(),
23999
+ headroom: number().min(.3).max(.5).default(.4),
24000
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24001
+ });
24002
+ var AutoTunePhaseResultSchema = object({
24003
+ phase: _enum([
24004
+ "download",
24005
+ "camera-overrides",
24006
+ "detector-thresholds",
24007
+ "node-models",
24008
+ "redispatch"
24009
+ ]),
24010
+ ok: boolean(),
24011
+ detail: string$2()
24012
+ });
24013
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24014
+ object({
24015
+ kind: literal("applied"),
24016
+ planHash: string$2(),
24017
+ phases: array(AutoTunePhaseResultSchema).readonly()
24018
+ }),
24019
+ object({
24020
+ kind: literal("aborted"),
24021
+ phases: array(AutoTunePhaseResultSchema).readonly()
24022
+ }),
24023
+ object({
24024
+ kind: literal("stale"),
24025
+ plan: AutoTunePlanSchema
24026
+ }),
24027
+ object({
24028
+ kind: literal("refused"),
24029
+ reason: _enum(["apply-in-progress"])
24030
+ })
24031
+ ]);
24032
+ /**
24033
+ * Wire shapes of the Load balancing surface (D748): the session placement
24034
+ * policy, the atomic share write, the observed placement statistics, the
24035
+ * hardware share suggestion and the stale device pins.
24036
+ */
24037
+ /**
24038
+ * How a new detection session picks its node and device.
24039
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24040
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24041
+ * weight only bites once a node already holds a session.
24042
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24043
+ * full or drowning node yields to a free one (D748).
24044
+ */
24045
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24046
+ var LoadBalancingSharesInputSchema = object({
24047
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24048
+ nodes: record(string$2(), number().positive()).default({}),
24049
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24050
+ devices: record(string$2(), record(string$2(), number().positive())).default({})
24051
+ });
24052
+ var PlacementStatsInputSchema = object({
24053
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24054
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24055
+ var PlacementDeviceStatsSchema = object({
24056
+ deviceKey: string$2(),
24057
+ /** Sessions running on this device now. */
24058
+ sessionsNow: number(),
24059
+ /** Sessions started on this device inside the window. */
24060
+ sessionsStarted: number(),
24061
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24062
+ observedShare: number().nullable()
24063
+ });
24064
+ var PlacementNodeStatsSchema = object({
24065
+ nodeId: string$2(),
24066
+ sessionsNow: number(),
24067
+ sessionsStarted: number(),
24068
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24069
+ observedShare: number().nullable(),
24070
+ /** Most sessions this node ran at once inside the window. */
24071
+ peakSessions: number(),
24072
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24073
+ yieldsAway: number(),
24074
+ devices: array(PlacementDeviceStatsSchema).readonly()
24075
+ });
24076
+ /** A camera's device pin that the session path cannot honour. */
24077
+ var StaleDevicePinSchema = object({
24078
+ deviceId: number(),
24079
+ deviceKey: string$2(),
24080
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24081
+ reason: _enum(["disabled", "absent"])
24082
+ });
24083
+ var PlacementStatsSchema = object({
24084
+ policy: SessionPlacementPolicySchema,
24085
+ windowMs: number(),
24086
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24087
+ observedForMs: number(),
24088
+ sessionsNow: number(),
24089
+ /** Most parallel sessions across the cluster inside the window. */
24090
+ clusterPeakSessions: number(),
24091
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24092
+ stalePins: array(StaleDevicePinSchema).readonly()
24093
+ });
24094
+ /**
24095
+ * Where an automatic share's capacity comes from (D755).
24096
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24097
+ * the measured latency table for the node's hardware class.
24098
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24099
+ * A node with no results falls back to `hardware`, and says so.
24100
+ */
24101
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24102
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24103
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24104
+ var SuggestSharesInputSchema = object({
24105
+ headroom: number().min(.3).max(.5).default(.4),
24106
+ /** Default `hardware`. */
24107
+ source: CapacitySourceSchema.default("hardware")
24108
+ });
24109
+ var SuggestedDeviceShareSchema = object({
24110
+ deviceKey: string$2(),
24111
+ /** Share of the node (0–100, rounded). */
24112
+ share: number(),
24113
+ modelId: string$2().nullable(),
24114
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24115
+ fps: number().nullable(),
24116
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24117
+ measured: boolean(),
24118
+ /**
24119
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24120
+ * or the benchmark's measured max sessions. Never enforced.
24121
+ */
24122
+ suggestedMaxSessions: number().nullable()
24123
+ });
24124
+ var SuggestedNodeShareSchema = object({
24125
+ nodeId: string$2(),
24126
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24127
+ share: number().nullable(),
24128
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24129
+ capacitySessions: number(),
24130
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24131
+ skippedReason: string$2().nullable(),
24132
+ /** What this node's capacity was read from; null when the node is skipped. */
24133
+ capacitySource: CapacitySourceSchema.nullable(),
24134
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24135
+ capacityFallback: CapacityFallbackSchema.nullable()
24136
+ });
24137
+ var SuggestSharesResultSchema = object({
24138
+ headroom: number(),
24139
+ /** The source asked for; each node says what it actually used. */
24140
+ source: CapacitySourceSchema,
24141
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24142
+ cameraFps: number(),
24143
+ /** The Auto tune capacity floor the models were picked at. */
24144
+ minSessionsPerDevice: number(),
24145
+ nodes: array(SuggestedNodeShareSchema).readonly()
24146
+ });
24147
+ /**
24148
+ * Where the node and device shares come from (D750, D755).
24149
+ * - `hardware` (default) — computed by the system from each node's static
24150
+ * capacity (its accelerators at their Auto tune models, from the measured
24151
+ * latency table), recomputed whenever a node or device joins, leaves, is
24152
+ * switched on or off, or changes model. No load input.
24153
+ * - `benchmark` — the same, from each node's measured capacity (node
24154
+ * benchmark results); a node without results falls back to `hardware`.
24155
+ * - `manual` — the operator's stored sliders.
24156
+ * Either way a node or device that cannot take sessions gives its share to
24157
+ * the others in proportion; the stored values are never rewritten for that.
24158
+ */
24159
+ var ShareSourceSchema = _enum([
24160
+ "hardware",
24161
+ "benchmark",
24162
+ "manual"
24163
+ ]);
24164
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24165
+ object({
24166
+ nodes: record(string$2(), number()),
24167
+ devices: record(string$2(), record(string$2(), number()))
24168
+ });
24169
+ var EffectiveDeviceShareSchema = object({
24170
+ deviceKey: string$2(),
24171
+ /** Can take sessions now (enabled, available, can run the root). */
24172
+ eligible: boolean(),
24173
+ /** The share the source assigns, as a percentage of the node's devices. */
24174
+ configuredPct: number(),
24175
+ /** The share actually used, after an ineligible device's share went to the others. */
24176
+ effectivePct: number()
24177
+ });
24178
+ var EffectiveNodeShareSchema = object({
24179
+ nodeId: string$2(),
24180
+ eligible: boolean(),
24181
+ configuredPct: number(),
24182
+ effectivePct: number(),
24183
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24184
+ capacitySource: CapacitySourceSchema.nullable(),
24185
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24186
+ capacityFallback: CapacityFallbackSchema.nullable(),
24187
+ devices: array(EffectiveDeviceShareSchema).readonly()
24188
+ });
24189
+ var EffectiveSharesSchema = object({
24190
+ source: ShareSourceSchema,
24191
+ policy: SessionPlacementPolicySchema,
24192
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24193
+ autoPending: boolean(),
24194
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24195
+ computedAt: number().nullable(),
24196
+ /** What made the system recompute them last. */
24197
+ trigger: string$2().nullable(),
24198
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24199
+ /** The relative weights the election reads (before eligibility). */
24200
+ nodeWeights: record(string$2(), number()),
24201
+ deviceWeights: record(string$2(), record(string$2(), number()))
24202
+ });
23851
24203
  object({
23852
24204
  activeCameras: number(),
23853
24205
  throttledCameras: number(),
@@ -24331,6 +24683,22 @@ var MotionSourceEnum = _enum([
24331
24683
  "device-activity"
24332
24684
  ]);
24333
24685
  /**
24686
+ * What opened an on-motion detection SESSION: the motion source that passed the
24687
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
24688
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
24689
+ * device name as the orchestrator's camera-sensors resolution last read it;
24690
+ * absent when unknown or when the camera itself triggered.
24691
+ *
24692
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
24693
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
24694
+ * runner never decides anything on it.
24695
+ */
24696
+ var SessionTriggerSchema = object({
24697
+ source: MotionSourceEnum,
24698
+ triggeredBy: MotionTriggeredBySchema,
24699
+ sensorName: string$2().optional()
24700
+ });
24701
+ /**
24334
24702
  * List of motion sources active on a camera. Empty array is valid:
24335
24703
  * "no source" — happens for battery cams without firmware motion when
24336
24704
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -24582,6 +24950,14 @@ var RunnerCameraConfigSchema = object({
24582
24950
  */
24583
24951
  motionSources: MotionSourcesSchema.default(["analyzer"]),
24584
24952
  /**
24953
+ * What opened this attach, on a SESSION attach only (see
24954
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
24955
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
24956
+ * behind it, and every attach from an orchestrator older than the field — the
24957
+ * runner then names no source on the phase event.
24958
+ */
24959
+ sessionTrigger: SessionTriggerSchema.optional(),
24960
+ /**
24585
24961
  * WHICH root detector runs for this camera. The detection counterpart of
24586
24962
  * {@link motionSources}, same shape and same discipline: a per-camera list
24587
24963
  * of sources the system understands, vendor-agnostic, owned here.
@@ -24741,14 +25117,15 @@ var RunnerLocalLoadSchema = object({
24741
25117
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24742
25118
  * this runner currently has attached cameras on, so the orchestrator's second
24743
25119
  * `balance()` pass (over a node's devices) weights on real per-pool session
24744
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24745
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25120
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25121
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25122
+ * a field that always read 0 was removed rather than shown as a measurement
25123
+ * (D762).
24746
25124
  */
24747
25125
  devices: array(object({
24748
25126
  deviceKey: string$2(),
24749
25127
  backend: string$2(),
24750
- attachedCameras: number(),
24751
- queueDepthTotal: number()
25128
+ attachedCameras: number()
24752
25129
  })).default([]),
24753
25130
  /** Hardware capability flags reported by this node. */
24754
25131
  hardware: object({
@@ -24884,7 +25261,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24884
25261
  */
24885
25262
  cropJpeg: string$2().optional(),
24886
25263
  parent: DetailParentSchema,
24887
- steps: array(string$2()).optional()
25264
+ steps: array(string$2()).optional(),
25265
+ /**
25266
+ * The camera's root model already drew this step's boxes (D730): a
25267
+ * `license_plate` inside the parent vehicle. The named step is NOT
25268
+ * inferred — these FRAME-space boxes are its output — and its
25269
+ * requested children (the plate reader) run on them. Absent ⇒ every
25270
+ * requested step infers as before.
25271
+ */
25272
+ supplied: object({
25273
+ stepId: string$2(),
25274
+ modelId: string$2(),
25275
+ boxes: array(object({
25276
+ bbox: NativeCropBboxSchema,
25277
+ score: number()
25278
+ })).min(1)
25279
+ }).optional()
24888
25280
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24889
25281
  /** Catalog step id, e.g. `clip-embedding`. */
24890
25282
  stepId: string$2(),
@@ -24947,14 +25339,6 @@ var CameraPipelineConfigSchema = object({
24947
25339
  settings: record(string$2(), unknown()).readonly().optional()
24948
25340
  }).nullable().optional()
24949
25341
  });
24950
- var PipelineTemplateSchema = object({
24951
- id: string$2(),
24952
- name: string$2(),
24953
- description: string$2().optional(),
24954
- config: CameraPipelineConfigSchema,
24955
- createdAt: string$2(),
24956
- updatedAt: string$2()
24957
- });
24958
25342
  var DeviceStepConfigSchema = object({
24959
25343
  modelId: string$2().optional(),
24960
25344
  settings: record(string$2(), unknown()).optional(),
@@ -25028,9 +25412,10 @@ var CameraStepOverridePatchSchema = object({
25028
25412
  modelId: string$2().optional(),
25029
25413
  settings: record(string$2(), unknown()).readonly().optional()
25030
25414
  });
25415
+ var CameraStepSettingsSchema = record(string$2(), record(string$2(), unknown()).readonly());
25031
25416
  var CameraPipelineSettingsSchema = object({
25032
- pinnedAgentNodeId: string$2().optional(),
25033
25417
  stepToggles: record(string$2(), boolean()).optional(),
25418
+ stepSettings: CameraStepSettingsSchema.optional(),
25034
25419
  stepOverridesByDevice: record(string$2(), record(string$2(), record(string$2(), CameraStepOverridePatchSchema))).optional(),
25035
25420
  pipelineByAgent: record(string$2(), CameraPipelineForAgentSchema).optional()
25036
25421
  });
@@ -25063,7 +25448,10 @@ var PipelineAssignmentSchema = object({
25063
25448
  });
25064
25449
  /**
25065
25450
  * Per-agent load summary surfaced to the load balancer + dashboards.
25066
- * Aggregated from each runner's `getLocalLoad` cap call.
25451
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25452
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25453
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25454
+ * the default pool IS that device (D745); the balancer's census stays raw.
25067
25455
  */
25068
25456
  var AgentLoadSummarySchema = object({
25069
25457
  nodeId: string$2(),
@@ -25152,26 +25540,27 @@ var CameraBrokerStatusSchema = object({
25152
25540
  width: number(),
25153
25541
  height: number(),
25154
25542
  subscribers: number(),
25155
- inFps: number(),
25156
- outFps: number()
25543
+ /**
25544
+ * Encoded packets/s the broker receives from the camera. null when the
25545
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25546
+ * There is no output rate: decoding runs in the session decode workers, not
25547
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25548
+ * camera and is not served (D758).
25549
+ */
25550
+ inFps: number().nullable()
25157
25551
  })).readonly(),
25158
25552
  webrtcSessions: number(),
25159
25553
  rtspRestream: boolean()
25160
25554
  });
25161
- /** Shared-memory ring statistics within the decoder block. */
25162
- var CameraDecoderShmSchema = object({
25163
- framesWritten: number(),
25164
- getFrameHits: number(),
25165
- getFrameMisses: number(),
25166
- budgetMb: number()
25167
- });
25168
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25169
- var CameraDecoderStatusSchema = object({
25170
- nodeId: string$2(),
25171
- formats: array(string$2()).readonly(),
25172
- sessionCount: number(),
25173
- shm: CameraDecoderShmSchema
25174
- });
25555
+ /**
25556
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25557
+ * construction); null when the camera has no detection node. It carries no
25558
+ * frame counter: the shared-memory plane whose counters it used to serve is
25559
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25560
+ * from `detection.actualFps` (frames delivered to and processed by the
25561
+ * detector), never from a counter nothing feeds.
25562
+ */
25563
+ var CameraDecoderStatusSchema = object({ nodeId: string$2() });
25175
25564
  /** Motion block — null when motion detection is not active for this device. */
25176
25565
  var CameraMotionStatusSchema = object({
25177
25566
  enabled: boolean(),
@@ -25528,12 +25917,6 @@ method(object({
25528
25917
  }), object({ success: literal(true) }), {
25529
25918
  kind: "mutation",
25530
25919
  auth: "admin"
25531
- }), method(object({
25532
- agentNodeId: string$2(),
25533
- detectWeight: number().positive().nullable()
25534
- }), object({ success: literal(true) }), {
25535
- kind: "mutation",
25536
- auth: "admin"
25537
25920
  }), method(object({
25538
25921
  agentNodeId: string$2(),
25539
25922
  detect: boolean().nullable().optional(),
@@ -25575,6 +25958,15 @@ method(object({
25575
25958
  }), {
25576
25959
  kind: "mutation",
25577
25960
  auth: "admin"
25961
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
25962
+ kind: "mutation",
25963
+ auth: "admin"
25964
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
25965
+ kind: "mutation",
25966
+ auth: "admin"
25967
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
25968
+ kind: "mutation",
25969
+ auth: "admin"
25578
25970
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25579
25971
  deviceId: number(),
25580
25972
  addonId: string$2(),
@@ -25591,6 +25983,13 @@ method(object({
25591
25983
  }), object({ success: literal(true) }), {
25592
25984
  kind: "mutation",
25593
25985
  auth: "admin"
25986
+ }), method(object({
25987
+ deviceId: number(),
25988
+ addonId: string$2(),
25989
+ settings: record(string$2(), unknown()).nullable()
25990
+ }), object({ success: literal(true) }), {
25991
+ kind: "mutation",
25992
+ auth: "admin"
25594
25993
  }), method(object({
25595
25994
  deviceId: number(),
25596
25995
  agentNodeId: string$2(),
@@ -25614,25 +26013,7 @@ method(object({
25614
26013
  }), method(_void(), DiskReconcileJobSchema, {
25615
26014
  kind: "mutation",
25616
26015
  auth: "admin"
25617
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25618
- name: string$2(),
25619
- description: string$2().optional(),
25620
- config: CameraPipelineConfigSchema
25621
- }), PipelineTemplateSchema, {
25622
- kind: "mutation",
25623
- auth: "admin"
25624
- }), method(object({
25625
- id: string$2(),
25626
- name: string$2().optional(),
25627
- description: string$2().optional(),
25628
- config: CameraPipelineConfigSchema.optional()
25629
- }), PipelineTemplateSchema, {
25630
- kind: "mutation",
25631
- auth: "admin"
25632
- }), method(object({ id: string$2() }), object({ success: literal(true) }), {
25633
- kind: "mutation",
25634
- auth: "admin"
25635
- });
26016
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25636
26017
  /**
25637
26018
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25638
26019
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -27881,8 +28262,6 @@ var WebrtcStreamChoiceSchema = object({
27881
28262
  ]).nullable(),
27882
28263
  /** Input FPS from the camera (null for adaptive). */
27883
28264
  inputFps: number().nullable(),
27884
- /** Decoded FPS (null for adaptive). */
27885
- decodeFps: number().nullable(),
27886
28265
  /** Bitrate in kbps (null for adaptive). */
27887
28266
  bitrateKbps: number().nullable()
27888
28267
  });
@@ -28214,6 +28593,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28214
28593
  */
28215
28594
  alive: boolean()
28216
28595
  })), method(object({
28596
+ deviceId: number().int().nonnegative(),
28597
+ sessionId: string$2(),
28598
+ downlinkMbps: number().nonnegative()
28599
+ }), object({
28600
+ outcome: _enum(["switching", "held"]),
28601
+ tier: CamProfileSchema.nullable(),
28602
+ reason: string$2()
28603
+ }), { kind: "mutation" }), method(object({
28217
28604
  deviceId: number().int().nonnegative(),
28218
28605
  sessionId: string$2()
28219
28606
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -31987,7 +32374,7 @@ var LocalInterfaceSchema = object({
31987
32374
  name: string$2(),
31988
32375
  family: _enum(["IPv4", "IPv6"]),
31989
32376
  address: string$2(),
31990
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
32377
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
31991
32378
  cidr: string$2(),
31992
32379
  /** OS netmask. Stable across calls so the SDK can hash on it. */
31993
32380
  netmask: string$2(),
@@ -32041,7 +32428,9 @@ var ConnectionEndpointSchema = object({
32041
32428
  "lan-ipv4",
32042
32429
  "lan-ipv6",
32043
32430
  "public",
32044
- "loopback"
32431
+ "loopback",
32432
+ "app-link",
32433
+ "custom"
32045
32434
  ]),
32046
32435
  /**
32047
32436
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32110,15 +32499,27 @@ var GetConnectionEndpointsResultSchema = object({
32110
32499
  localPort: AdvertisedLocalPortSchema
32111
32500
  });
32112
32501
  /**
32113
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
32114
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
32115
- * what AUTO currently picks, so the UI can show the effective value either way.
32502
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32503
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
32504
+ * so the UI can show it either way.
32116
32505
  */
32117
32506
  var NotificationEndpointSchema = object({
32118
32507
  /** The operator's explicit choice, or null for AUTO. */
32119
32508
  baseUrl: string$2().nullable(),
32120
- /** What the ranking currently resolves to (null when nothing is reachable). */
32121
- resolved: string$2().nullable()
32509
+ /**
32510
+ * The effective flagged address: the explicit choice, else (AUTO) the
32511
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
32512
+ * answered the public tunnel / mesh here, or null.
32513
+ */
32514
+ resolved: string$2().nullable(),
32515
+ /**
32516
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
32517
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
32518
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
32519
+ * hub advertises neither; the app link is then minted without `hub=`.
32520
+ * Absent on a pre-D709 hub.
32521
+ */
32522
+ appLinkHub: string$2().nullable()
32122
32523
  });
32123
32524
  /**
32124
32525
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -32131,6 +32532,72 @@ var ViewerEndpointsSchema = object({
32131
32532
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32132
32533
  resolved: array(string$2()).readonly()
32133
32534
  });
32535
+ /**
32536
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32537
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32538
+ * the `publicEndpoint` role; `override` is the flagged address.
32539
+ */
32540
+ var HubAddressSnapshotSchema = object({
32541
+ override: string$2().nullable(),
32542
+ resolved: string$2().nullable(),
32543
+ source: _enum([
32544
+ "override",
32545
+ "auto",
32546
+ "none"
32547
+ ])
32548
+ });
32549
+ var HubAddressesSchema = object({
32550
+ cluster: HubAddressSnapshotSchema,
32551
+ browser: HubAddressSnapshotSchema
32552
+ });
32553
+ /**
32554
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32555
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32556
+ * by at most one address.
32557
+ */
32558
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32559
+ var RoleSourceSchema = _enum([
32560
+ "flagged",
32561
+ "auto",
32562
+ "none"
32563
+ ]);
32564
+ /** One single-valued role: the flagged address, the one in use, and why. */
32565
+ var HubAddressRoleResolutionSchema = object({
32566
+ /** The address carrying the flag, or null = automatic. */
32567
+ flagged: string$2().nullable(),
32568
+ /** The address in use, or null when nothing qualifies (never loopback). */
32569
+ resolved: string$2().nullable(),
32570
+ source: RoleSourceSchema
32571
+ });
32572
+ var HubAppConnectionsResolutionSchema = object({
32573
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32574
+ flagged: array(string$2()).readonly(),
32575
+ /** What the apps race right now. */
32576
+ resolved: array(string$2()).readonly(),
32577
+ source: RoleSourceSchema
32578
+ });
32579
+ var HubAddressBookSchema = object({
32580
+ rows: array(ConnectionEndpointSchema.extend({
32581
+ /** In the hub's detected palette right now. */
32582
+ detected: boolean(),
32583
+ /** Entered by the operator (removable). */
32584
+ custom: boolean(),
32585
+ /** The roles explicitly flagged on this address. */
32586
+ flags: array(HubAddressRoleSchema).readonly(),
32587
+ /** The roles this address serves right now — flagged or automatic. */
32588
+ inUse: array(HubAddressRoleSchema).readonly(),
32589
+ /** The roles this address may be flagged with. */
32590
+ eligible: array(HubAddressRoleSchema).readonly()
32591
+ })).readonly(),
32592
+ roles: object({
32593
+ appConnections: HubAppConnectionsResolutionSchema,
32594
+ notificationTaps: HubAddressRoleResolutionSchema,
32595
+ internal: HubAddressRoleResolutionSchema,
32596
+ publicEndpoint: HubAddressRoleResolutionSchema
32597
+ }),
32598
+ /** The `hub=` an app link carries (D709), or null. */
32599
+ appLinkHub: string$2().nullable()
32600
+ });
32134
32601
  var AllowedAddressesSchema = object({
32135
32602
  /**
32136
32603
  * Allowlist of interface addresses operators have explicitly opted
@@ -32172,8 +32639,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32172
32639
  * Pass `'https'` when the caller is itself loaded over HTTPS
32173
32640
  * to avoid mixed-content blocks in the browser. The public
32174
32641
  * tunnel always emits `https://` regardless. */
32175
- scheme: _enum(["http", "https"]).optional()
32176
- }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string$2().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string$2()).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$2().optional() }), TlsStatusSchema, {
32642
+ scheme: _enum(["http", "https"]).optional(),
32643
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32644
+ * an address notification taps can be flagged with, not a hub
32645
+ * route. Default `false`: racers and rankers never see it. */
32646
+ includeAppLink: boolean().optional()
32647
+ }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string$2().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string$2()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
32648
+ baseUrl: string$2(),
32649
+ label: string$2().max(80)
32650
+ }), HubAddressBookSchema, {
32651
+ kind: "mutation",
32652
+ auth: "admin"
32653
+ }), method(object({ baseUrl: string$2() }), HubAddressBookSchema, {
32654
+ kind: "mutation",
32655
+ auth: "admin"
32656
+ }), method(object({
32657
+ role: HubAddressRoleSchema,
32658
+ baseUrl: string$2().nullable(),
32659
+ enabled: boolean(),
32660
+ acceptInsecureHttp: boolean().optional()
32661
+ }), HubAddressBookSchema, {
32662
+ kind: "mutation",
32663
+ auth: "admin"
32664
+ }), 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$2().optional() }), TlsStatusSchema, {
32177
32665
  kind: "mutation",
32178
32666
  auth: "admin"
32179
32667
  }), method(object({
@@ -32501,7 +32989,7 @@ var MeshPeerSchema = object({
32501
32989
  tags: array(string$2()).readonly(),
32502
32990
  /** True when the peer advertises itself as an exit-node candidate. */
32503
32991
  exitNodeOption: boolean(),
32504
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
32992
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
32505
32993
  advertisedRoutes: array(string$2()).readonly(),
32506
32994
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
32507
32995
  userLogin: string$2().nullable(),
@@ -32631,7 +33119,8 @@ var MotionStatusSchema = object({
32631
33119
  * writes this slice (not even a boot seed), and neither does the runner's
32632
33120
  * phase machine: its phase is "a session is attached" for every on-motion
32633
33121
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32634
- * A provider's `isDetected` answers from the hub's slice.
33122
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33123
+ * (`hubMotionNativeProvider`).
32635
33124
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32636
33125
  * imports) — the provider pushes both edges itself, from the upstream
32637
33126
  * system's own state change. That is the sensor's own fact.
@@ -33829,7 +34318,13 @@ var OsdStatusSchema = object({ overlays: array(object({
33829
34318
  */
33830
34319
  availablePositions: array(OsdPositionEnum).readonly(),
33831
34320
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
33832
- readOnly: boolean().optional()
34321
+ readOnly: boolean().optional(),
34322
+ /**
34323
+ * Firmware text ceiling for this overlay. Absent = no known limit.
34324
+ * The OSD manager truncates here on every write — never stores its own
34325
+ * copy on the binding.
34326
+ */
34327
+ maxCharacters: number().int().positive().optional()
33833
34328
  })).readonly() });
33834
34329
  var OsdOverlayPatchSchema = object({
33835
34330
  enabled: boolean().optional(),
@@ -33880,7 +34375,9 @@ var OsdTemplateBindingSchema = object({
33880
34375
  valuePath: string$2().min(1).max(64),
33881
34376
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
33882
34377
  displayUnit: string$2().max(16).optional(),
33883
- maxDecimals: number().int().min(0).max(4).default(1)
34378
+ maxDecimals: number().int().min(0).max(4).default(1),
34379
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
34380
+ valueMap: record(string$2(), string$2()).optional()
33884
34381
  });
33885
34382
  /**
33886
34383
  * A named template: bindings (alias → leaf field) + a parser that
@@ -33930,18 +34427,11 @@ var OsdSlotBindingSchema = object({
33930
34427
  source: OsdSourceSchema,
33931
34428
  /** `${value}` and `${unit}` are substituted; every occurrence. */
33932
34429
  template: string$2().max(96).default("${value}"),
33933
- /** Truncate with an ellipsis past this length. Absent = no limit. */
33934
- maxCharacters: number().int().min(4).max(64).optional(),
33935
34430
  /**
33936
34431
  * Decimal places for a numeric value. `0` yields an integer — the
33937
34432
  * documented workaround for firmwares that reject `.` in overlay text.
33938
34433
  */
33939
34434
  maxDecimals: number().int().min(0).max(4).default(1),
33940
- /**
33941
- * Appended via `${unit}` when no unit conversion produces a label.
33942
- * Prefer `source.displayUnit` for converted device-state values.
33943
- */
33944
- unitLabel: string$2().max(8).optional(),
33945
34435
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
33946
34436
  valueMap: record(string$2(), string$2()).optional(),
33947
34437
  /** Time windows in which the slot is shown. Absent = always. */
@@ -33950,9 +34440,7 @@ var OsdSlotBindingSchema = object({
33950
34440
  * Display gate, in the notification centre's condition vocabulary.
33951
34441
  * Only the keys reported by `getConditionSupport` are accepted.
33952
34442
  */
33953
- conditions: NcConditionsSchema.optional(),
33954
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
33955
- fallbackText: string$2().max(64).default("")
34443
+ conditions: NcConditionsSchema.optional()
33956
34444
  });
33957
34445
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
33958
34446
  var OsdSlotViewSchema = object({
@@ -39179,6 +39667,16 @@ var zoneRulesCapability = {
39179
39667
  durability: "restored"
39180
39668
  };
39181
39669
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39670
+ Object.freeze({
39671
+ person: .5,
39672
+ vehicle: .5,
39673
+ animal: .5
39674
+ });
39675
+ Object.freeze({
39676
+ person: .65,
39677
+ vehicle: .65,
39678
+ animal: .65
39679
+ });
39182
39680
  /**
39183
39681
  * Accessory device helpers — shared across drivers.
39184
39682
  *
@@ -42059,90 +42557,18 @@ Object.freeze({
42059
42557
  addonId: null,
42060
42558
  access: "create"
42061
42559
  },
42062
- "decoder.createSession": {
42063
- capName: "decoder",
42064
- capScope: "system",
42065
- addonId: null,
42066
- access: "view"
42067
- },
42068
- "decoder.destroySession": {
42069
- capName: "decoder",
42070
- capScope: "system",
42071
- addonId: null,
42072
- access: "delete"
42073
- },
42074
- "decoder.getFrame": {
42075
- capName: "decoder",
42076
- capScope: "system",
42077
- addonId: null,
42078
- access: "view"
42079
- },
42080
42560
  "decoder.getInfo": {
42081
42561
  capName: "decoder",
42082
42562
  capScope: "system",
42083
42563
  addonId: null,
42084
42564
  access: "view"
42085
42565
  },
42086
- "decoder.getShmStats": {
42087
- capName: "decoder",
42088
- capScope: "system",
42089
- addonId: null,
42090
- access: "view"
42091
- },
42092
- "decoder.getStats": {
42093
- capName: "decoder",
42094
- capScope: "system",
42095
- addonId: null,
42096
- access: "view"
42097
- },
42098
- "decoder.listActiveSessions": {
42099
- capName: "decoder",
42100
- capScope: "system",
42101
- addonId: null,
42102
- access: "view"
42103
- },
42104
- "decoder.openStream": {
42105
- capName: "decoder",
42106
- capScope: "system",
42107
- addonId: null,
42108
- access: "view"
42109
- },
42110
- "decoder.pullFrames": {
42111
- capName: "decoder",
42112
- capScope: "system",
42113
- addonId: null,
42114
- access: "view"
42115
- },
42116
- "decoder.pullHandles": {
42117
- capName: "decoder",
42118
- capScope: "system",
42119
- addonId: null,
42120
- access: "view"
42121
- },
42122
- "decoder.pushPacket": {
42123
- capName: "decoder",
42124
- capScope: "system",
42125
- addonId: null,
42126
- access: "view"
42127
- },
42128
42566
  "decoder.reprobeHwaccel": {
42129
42567
  capName: "decoder",
42130
42568
  capScope: "system",
42131
42569
  addonId: null,
42132
42570
  access: "create"
42133
42571
  },
42134
- "decoder.supportsCodec": {
42135
- capName: "decoder",
42136
- capScope: "system",
42137
- addonId: null,
42138
- access: "view"
42139
- },
42140
- "decoder.updateConfig": {
42141
- capName: "decoder",
42142
- capScope: "system",
42143
- addonId: null,
42144
- access: "view"
42145
- },
42146
42572
  "detectionPipeline.applyDeviceSettingsPatch": {
42147
42573
  capName: "detection-pipeline",
42148
42574
  capScope: "device",
@@ -43631,12 +44057,24 @@ Object.freeze({
43631
44057
  addonId: null,
43632
44058
  access: "view"
43633
44059
  },
44060
+ "localNetwork.addCustomAddress": {
44061
+ capName: "local-network",
44062
+ capScope: "system",
44063
+ addonId: null,
44064
+ access: "create"
44065
+ },
43634
44066
  "localNetwork.downloadCa": {
43635
44067
  capName: "local-network",
43636
44068
  capScope: "system",
43637
44069
  addonId: null,
43638
44070
  access: "view"
43639
44071
  },
44072
+ "localNetwork.getAddresses": {
44073
+ capName: "local-network",
44074
+ capScope: "system",
44075
+ addonId: null,
44076
+ access: "view"
44077
+ },
43640
44078
  "localNetwork.getAllowedAddresses": {
43641
44079
  capName: "local-network",
43642
44080
  capScope: "system",
@@ -43649,6 +44087,12 @@ Object.freeze({
43649
44087
  addonId: null,
43650
44088
  access: "view"
43651
44089
  },
44090
+ "localNetwork.getHubAddresses": {
44091
+ capName: "local-network",
44092
+ capScope: "system",
44093
+ addonId: null,
44094
+ access: "view"
44095
+ },
43652
44096
  "localNetwork.getNotificationEndpoint": {
43653
44097
  capName: "local-network",
43654
44098
  capScope: "system",
@@ -43685,6 +44129,12 @@ Object.freeze({
43685
44129
  addonId: null,
43686
44130
  access: "create"
43687
44131
  },
44132
+ "localNetwork.removeCustomAddress": {
44133
+ capName: "local-network",
44134
+ capScope: "system",
44135
+ addonId: null,
44136
+ access: "delete"
44137
+ },
43688
44138
  "localNetwork.resetAllowlistToBestMatch": {
43689
44139
  capName: "local-network",
43690
44140
  capScope: "system",
@@ -43697,6 +44147,12 @@ Object.freeze({
43697
44147
  addonId: null,
43698
44148
  access: "create"
43699
44149
  },
44150
+ "localNetwork.setAddressRole": {
44151
+ capName: "local-network",
44152
+ capScope: "system",
44153
+ addonId: null,
44154
+ access: "create"
44155
+ },
43700
44156
  "localNetwork.setAllowedAddresses": {
43701
44157
  capName: "local-network",
43702
44158
  capScope: "system",
@@ -45191,13 +45647,13 @@ Object.freeze({
45191
45647
  addonId: null,
45192
45648
  access: "delete"
45193
45649
  },
45194
- "pipelineExecutor.deleteModel": {
45650
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45195
45651
  capName: "pipeline-executor",
45196
45652
  capScope: "system",
45197
45653
  addonId: null,
45198
45654
  access: "delete"
45199
45655
  },
45200
- "pipelineExecutor.deleteTemplate": {
45656
+ "pipelineExecutor.deleteModel": {
45201
45657
  capName: "pipeline-executor",
45202
45658
  capScope: "system",
45203
45659
  addonId: null,
@@ -45341,12 +45797,6 @@ Object.freeze({
45341
45797
  addonId: null,
45342
45798
  access: "view"
45343
45799
  },
45344
- "pipelineExecutor.listTemplates": {
45345
- capName: "pipeline-executor",
45346
- capScope: "system",
45347
- addonId: null,
45348
- access: "view"
45349
- },
45350
45800
  "pipelineExecutor.rearmInferenceDevice": {
45351
45801
  capName: "pipeline-executor",
45352
45802
  capScope: "system",
@@ -45371,12 +45821,6 @@ Object.freeze({
45371
45821
  addonId: null,
45372
45822
  access: "create"
45373
45823
  },
45374
- "pipelineExecutor.saveTemplate": {
45375
- capName: "pipeline-executor",
45376
- capScope: "system",
45377
- addonId: null,
45378
- access: "create"
45379
- },
45380
45824
  "pipelineExecutor.setVideoPipelineSteps": {
45381
45825
  capName: "pipeline-executor",
45382
45826
  capScope: "system",
@@ -45395,41 +45839,35 @@ Object.freeze({
45395
45839
  addonId: null,
45396
45840
  access: "create"
45397
45841
  },
45398
- "pipelineExecutor.updateTemplate": {
45399
- capName: "pipeline-executor",
45400
- capScope: "system",
45401
- addonId: null,
45402
- access: "create"
45403
- },
45404
45842
  "pipelineExecutor.validatePipeline": {
45405
45843
  capName: "pipeline-executor",
45406
45844
  capScope: "system",
45407
45845
  addonId: null,
45408
45846
  access: "view"
45409
45847
  },
45410
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
45848
+ "pipelineOrchestrator.applyAutoTune": {
45411
45849
  capName: "pipeline-orchestrator",
45412
45850
  capScope: "system",
45413
45851
  addonId: null,
45414
45852
  access: "create"
45415
45853
  },
45416
- "pipelineOrchestrator.assignAudio": {
45854
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45417
45855
  capName: "pipeline-orchestrator",
45418
45856
  capScope: "system",
45419
45857
  addonId: null,
45420
45858
  access: "create"
45421
45859
  },
45422
- "pipelineOrchestrator.assignPipeline": {
45860
+ "pipelineOrchestrator.assignAudio": {
45423
45861
  capName: "pipeline-orchestrator",
45424
45862
  capScope: "system",
45425
45863
  addonId: null,
45426
45864
  access: "create"
45427
45865
  },
45428
- "pipelineOrchestrator.deleteTemplate": {
45866
+ "pipelineOrchestrator.assignPipeline": {
45429
45867
  capName: "pipeline-orchestrator",
45430
45868
  capScope: "system",
45431
45869
  addonId: null,
45432
- access: "delete"
45870
+ access: "create"
45433
45871
  },
45434
45872
  "pipelineOrchestrator.getAgentLoad": {
45435
45873
  capName: "pipeline-orchestrator",
@@ -45521,6 +45959,12 @@ Object.freeze({
45521
45959
  addonId: null,
45522
45960
  access: "view"
45523
45961
  },
45962
+ "pipelineOrchestrator.getEffectiveShares": {
45963
+ capName: "pipeline-orchestrator",
45964
+ capScope: "system",
45965
+ addonId: null,
45966
+ access: "view"
45967
+ },
45524
45968
  "pipelineOrchestrator.getGlobalMetrics": {
45525
45969
  capName: "pipeline-orchestrator",
45526
45970
  capScope: "system",
@@ -45557,19 +46001,19 @@ Object.freeze({
45557
46001
  addonId: null,
45558
46002
  access: "view"
45559
46003
  },
45560
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46004
+ "pipelineOrchestrator.getPlacementStats": {
45561
46005
  capName: "pipeline-orchestrator",
45562
46006
  capScope: "system",
45563
46007
  addonId: null,
45564
46008
  access: "view"
45565
46009
  },
45566
- "pipelineOrchestrator.listAgentSettings": {
46010
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45567
46011
  capName: "pipeline-orchestrator",
45568
46012
  capScope: "system",
45569
46013
  addonId: null,
45570
46014
  access: "view"
45571
46015
  },
45572
- "pipelineOrchestrator.listTemplates": {
46016
+ "pipelineOrchestrator.listAgentSettings": {
45573
46017
  capName: "pipeline-orchestrator",
45574
46018
  capScope: "system",
45575
46019
  addonId: null,
@@ -45581,6 +46025,12 @@ Object.freeze({
45581
46025
  addonId: null,
45582
46026
  access: "create"
45583
46027
  },
46028
+ "pipelineOrchestrator.planAutoTune": {
46029
+ capName: "pipeline-orchestrator",
46030
+ capScope: "system",
46031
+ addonId: null,
46032
+ access: "view"
46033
+ },
45584
46034
  "pipelineOrchestrator.rebalance": {
45585
46035
  capName: "pipeline-orchestrator",
45586
46036
  capScope: "system",
@@ -45623,12 +46073,6 @@ Object.freeze({
45623
46073
  addonId: null,
45624
46074
  access: "create"
45625
46075
  },
45626
- "pipelineOrchestrator.saveTemplate": {
45627
- capName: "pipeline-orchestrator",
45628
- capScope: "system",
45629
- addonId: null,
45630
- access: "create"
45631
- },
45632
46076
  "pipelineOrchestrator.setAgentCapabilities": {
45633
46077
  capName: "pipeline-orchestrator",
45634
46078
  capScope: "system",
@@ -45641,12 +46085,6 @@ Object.freeze({
45641
46085
  addonId: null,
45642
46086
  access: "create"
45643
46087
  },
45644
- "pipelineOrchestrator.setAgentDetectWeight": {
45645
- capName: "pipeline-orchestrator",
45646
- capScope: "system",
45647
- addonId: null,
45648
- access: "create"
45649
- },
45650
46088
  "pipelineOrchestrator.setAgentInferenceDevices": {
45651
46089
  capName: "pipeline-orchestrator",
45652
46090
  capScope: "system",
@@ -45683,6 +46121,12 @@ Object.freeze({
45683
46121
  addonId: null,
45684
46122
  access: "create"
45685
46123
  },
46124
+ "pipelineOrchestrator.setCameraStepSettings": {
46125
+ capName: "pipeline-orchestrator",
46126
+ capScope: "system",
46127
+ addonId: null,
46128
+ access: "create"
46129
+ },
45686
46130
  "pipelineOrchestrator.setCameraStepToggle": {
45687
46131
  capName: "pipeline-orchestrator",
45688
46132
  capScope: "system",
@@ -45701,25 +46145,37 @@ Object.freeze({
45701
46145
  addonId: null,
45702
46146
  access: "create"
45703
46147
  },
46148
+ "pipelineOrchestrator.setLoadBalancingShares": {
46149
+ capName: "pipeline-orchestrator",
46150
+ capScope: "system",
46151
+ addonId: null,
46152
+ access: "create"
46153
+ },
45704
46154
  "pipelineOrchestrator.setPipelineDevicePin": {
45705
46155
  capName: "pipeline-orchestrator",
45706
46156
  capScope: "system",
45707
46157
  addonId: null,
45708
46158
  access: "create"
45709
46159
  },
45710
- "pipelineOrchestrator.unassignAudio": {
46160
+ "pipelineOrchestrator.setShareSource": {
45711
46161
  capName: "pipeline-orchestrator",
45712
46162
  capScope: "system",
45713
46163
  addonId: null,
45714
46164
  access: "create"
45715
46165
  },
45716
- "pipelineOrchestrator.unassignPipeline": {
46166
+ "pipelineOrchestrator.suggestShares": {
46167
+ capName: "pipeline-orchestrator",
46168
+ capScope: "system",
46169
+ addonId: null,
46170
+ access: "view"
46171
+ },
46172
+ "pipelineOrchestrator.unassignAudio": {
45717
46173
  capName: "pipeline-orchestrator",
45718
46174
  capScope: "system",
45719
46175
  addonId: null,
45720
46176
  access: "create"
45721
46177
  },
45722
- "pipelineOrchestrator.updateTemplate": {
46178
+ "pipelineOrchestrator.unassignPipeline": {
45723
46179
  capName: "pipeline-orchestrator",
45724
46180
  capScope: "system",
45725
46181
  addonId: null,
@@ -47159,12 +47615,6 @@ Object.freeze({
47159
47615
  addonId: null,
47160
47616
  access: "view"
47161
47617
  },
47162
- "streamBroker.pullFrameHandles": {
47163
- capName: "stream-broker",
47164
- capScope: "system",
47165
- addonId: null,
47166
- access: "view"
47167
- },
47168
47618
  "streamBroker.regenerateRtspToken": {
47169
47619
  capName: "stream-broker",
47170
47620
  capScope: "system",
@@ -47231,12 +47681,6 @@ Object.freeze({
47231
47681
  addonId: null,
47232
47682
  access: "create"
47233
47683
  },
47234
- "streamBroker.subscribeFrames": {
47235
- capName: "stream-broker",
47236
- capScope: "system",
47237
- addonId: null,
47238
- access: "create"
47239
- },
47240
47684
  "streamBroker.unassignProfile": {
47241
47685
  capName: "stream-broker",
47242
47686
  capScope: "system",
@@ -47249,12 +47693,6 @@ Object.freeze({
47249
47693
  addonId: null,
47250
47694
  access: "create"
47251
47695
  },
47252
- "streamBroker.unsubscribeFrames": {
47253
- capName: "stream-broker",
47254
- capScope: "system",
47255
- addonId: null,
47256
- access: "create"
47257
- },
47258
47696
  "streamCatalog.getCatalog": {
47259
47697
  capName: "stream-catalog",
47260
47698
  capScope: "device",
@@ -47951,6 +48389,12 @@ Object.freeze({
47951
48389
  addonId: null,
47952
48390
  access: "create"
47953
48391
  },
48392
+ "webrtcSession.applyDownlinkProbe": {
48393
+ capName: "webrtc-session",
48394
+ capScope: "device",
48395
+ addonId: null,
48396
+ access: "create"
48397
+ },
47954
48398
  "webrtcSession.closeSession": {
47955
48399
  capName: "webrtc-session",
47956
48400
  capScope: "device",
@@ -49762,11 +50206,6 @@ Object.freeze({
49762
50206
  form: "single",
49763
50207
  optional: false
49764
50208
  }],
49765
- "decoder.createSession": [{
49766
- name: "deviceId",
49767
- form: "single",
49768
- optional: true
49769
- }],
49770
50209
  "detectionPipeline.applyDeviceSettingsPatch": [{
49771
50210
  name: "deviceId",
49772
50211
  form: "single",
@@ -50997,6 +51436,11 @@ Object.freeze({
50997
51436
  form: "single",
50998
51437
  optional: false
50999
51438
  }],
51439
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51440
+ name: "deviceIds",
51441
+ form: "array",
51442
+ optional: true
51443
+ }],
51000
51444
  "pipelineExecutor.runPipeline": [{
51001
51445
  name: "deviceId",
51002
51446
  form: "single",
@@ -51102,6 +51546,11 @@ Object.freeze({
51102
51546
  form: "single",
51103
51547
  optional: false
51104
51548
  }],
51549
+ "pipelineOrchestrator.setCameraStepSettings": [{
51550
+ name: "deviceId",
51551
+ form: "single",
51552
+ optional: false
51553
+ }],
51105
51554
  "pipelineOrchestrator.setCameraStepToggle": [{
51106
51555
  name: "deviceId",
51107
51556
  form: "single",
@@ -51873,6 +52322,11 @@ Object.freeze({
51873
52322
  form: "single",
51874
52323
  optional: false
51875
52324
  }],
52325
+ "webrtcSession.applyDownlinkProbe": [{
52326
+ name: "deviceId",
52327
+ form: "single",
52328
+ optional: false
52329
+ }],
51876
52330
  "webrtcSession.closeSession": [{
51877
52331
  name: "deviceId",
51878
52332
  form: "single",
@@ -52102,6 +52556,8 @@ new Map(Object.entries({
52102
52556
  "detection-blind": "device-events",
52103
52557
  "node-online": "system",
52104
52558
  "node-offline": "system",
52559
+ "node-restarting": "system",
52560
+ "node-updating": "system",
52105
52561
  "node-inference-unavailable": "system",
52106
52562
  "addon-crash-loop": "system",
52107
52563
  "addon-update-available": "system",
@@ -52179,18 +52635,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52179
52635
  kinds: [
52180
52636
  "node-offline",
52181
52637
  "node-online",
52638
+ "node-restarting",
52182
52639
  "node-inference-unavailable"
52183
52640
  ]
52184
52641
  },
52185
52642
  {
52186
52643
  id: "addons",
52187
52644
  family: "system",
52188
- label: "Addons",
52189
- kinds: [
52190
- "addon-crash-loop",
52191
- "addon-update-available",
52192
- "addon-updated"
52193
- ]
52645
+ label: "Addons stopped",
52646
+ kinds: ["addon-crash-loop"]
52647
+ },
52648
+ {
52649
+ id: "addon-updates",
52650
+ family: "system",
52651
+ label: "Addon updates",
52652
+ kinds: ["addon-update-available", "addon-updated"]
52194
52653
  },
52195
52654
  {
52196
52655
  id: "updates",
@@ -52198,6 +52657,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52198
52657
  label: "Server & container updates",
52199
52658
  kinds: [
52200
52659
  "server-update-available",
52660
+ "node-updating",
52201
52661
  "server-updated",
52202
52662
  "wrapper-update-available"
52203
52663
  ]
@@ -52345,18 +52805,21 @@ var STATE_SUMMARY_SECTION_VARS = [
52345
52805
  kinds: [
52346
52806
  "node-offline",
52347
52807
  "node-online",
52808
+ "node-restarting",
52348
52809
  "node-inference-unavailable"
52349
52810
  ]
52350
52811
  },
52351
52812
  {
52352
52813
  name: "summaryAddons",
52353
- label: "Summary: addons",
52354
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
52355
- kinds: [
52356
- "addon-crash-loop",
52357
- "addon-update-available",
52358
- "addon-updated"
52359
- ]
52814
+ label: "Summary: addons stopped",
52815
+ example: "hub — recorder stopped after repeated crashes",
52816
+ kinds: ["addon-crash-loop"]
52817
+ },
52818
+ {
52819
+ name: "summaryAddonUpdates",
52820
+ label: "Summary: addon updates",
52821
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
52822
+ kinds: ["addon-update-available", "addon-updated"]
52360
52823
  },
52361
52824
  {
52362
52825
  name: "summaryUpdates",
@@ -52364,6 +52827,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52364
52827
  example: "server 1.2.377 → 1.2.378",
52365
52828
  kinds: [
52366
52829
  "server-update-available",
52830
+ "node-updating",
52367
52831
  "server-updated",
52368
52832
  "wrapper-update-available"
52369
52833
  ]
@@ -52396,7 +52860,7 @@ var STATE_SUMMARY_VARS = [
52396
52860
  {
52397
52861
  name: "summarySection",
52398
52862
  label: "Summary: this section",
52399
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
52863
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52400
52864
  example: "Batterie scariche",
52401
52865
  group: "system",
52402
52866
  families: ["rule"],
@@ -52440,6 +52904,7 @@ var STATE_SUMMARY_VARS = [
52440
52904
  [...RULE_BODY_ONLY],
52441
52905
  [...RULE_TEXT],
52442
52906
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
52907
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
52443
52908
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
52444
52909
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
52445
52910
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -52480,6 +52945,8 @@ var STATE_SUMMARY_VARS = [
52480
52945
  [...RULE_TEXT],
52481
52946
  [...RULE_TEXT],
52482
52947
  [...RULE_TEXT],
52948
+ [...RULE_TEXT],
52949
+ [...RULE_TEXT],
52483
52950
  ...STATE_SUMMARY_VARS
52484
52951
  ];
52485
52952
  new Set([