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