@camstack/addon-provider-ecowitt 0.2.119 → 0.2.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +1007 -540
  2. package/dist/addon.mjs +1007 -540
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let http = require("http");
3
3
  let events = require("events");
4
4
  let dgram = require("dgram");
5
- //#region ../types/dist/event-category-BGmz_oxW.mjs
5
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -503,15 +503,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
503
503
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
504
504
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
505
505
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
506
- /**
507
- * Per-agent hwaccel preference changed (user override set, cleared, or
508
- * re-probed). Observability event — decoders pull the current pref at
509
- * `createSession`, so running sessions keep their current backend until
510
- * they rotate naturally (camera add/remove, stream restart). Future
511
- * work can wire a listener in stream-broker that force-rotates live
512
- * sessions; for now this event powers logs + admin-UI toast feedback.
513
- */
514
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
515
506
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
516
507
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
517
508
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5382,7 +5373,7 @@ var ZodIssueCode$1 = {
5382
5373
  var ZodFirstPartyTypeKind$1;
5383
5374
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5384
5375
  //#endregion
5385
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5376
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5386
5377
  /**
5387
5378
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5388
5379
  * window to float samples (D455).
@@ -6748,32 +6739,12 @@ object({
6748
6739
  audioCodec: string().optional(),
6749
6740
  metadata: record(string(), unknown()).readonly().optional()
6750
6741
  });
6751
- var EncodedPacketSchema = object({
6752
- type: _enum(["video", "audio"]),
6753
- data: _instanceof(Uint8Array),
6754
- pts: number(),
6755
- dts: number(),
6756
- keyframe: boolean(),
6757
- codec: string()
6758
- });
6759
- var DecodedFrameSchema = object({
6760
- data: _instanceof(Uint8Array),
6761
- width: number(),
6762
- height: number(),
6763
- format: _enum([
6764
- "jpeg",
6765
- "rgb",
6766
- "bgr",
6767
- "yuv420",
6768
- "gray"
6769
- ]),
6770
- timestamp: number()
6771
- });
6772
6742
  /**
6773
6743
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6774
6744
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6775
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6776
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6745
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6746
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6747
+ * over tRPC / Moleculer.
6777
6748
  *
6778
6749
  * The `satisfies` assertion below pins this schema to the interface: if a
6779
6750
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6799,50 +6770,6 @@ var FrameHandleSchema = object({
6799
6770
  slotCount: number().int().positive()
6800
6771
  });
6801
6772
  /**
6802
- * Pixel format a frame-handle subscriber can request from the broker
6803
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6804
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6805
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6806
- * payload, and no decoded-frame consumer requests it over the shm plane.
6807
- */
6808
- var FrameHandleFormatSchema = _enum([
6809
- "rgb",
6810
- "bgr",
6811
- "yuv420",
6812
- "gray"
6813
- ]);
6814
- /**
6815
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6816
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6817
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6818
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6819
- * they asked for with no broker-side conversion.
6820
- */
6821
- var SubscribeFramesInputSchema = object({
6822
- brokerId: string(),
6823
- format: FrameHandleFormatSchema,
6824
- /**
6825
- * Optional reader-side cadence hint in frames per second. The broker does
6826
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6827
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6828
- * the consumer can pace its own `pullFrameHandles` polling.
6829
- */
6830
- maxFps: number().positive().optional(),
6831
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6832
- tag: string().optional()
6833
- });
6834
- /**
6835
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6836
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6837
- * `FrameHandle` to a `FrameRingReader`.
6838
- */
6839
- var SubscribeFramesResultSchema = object({
6840
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6841
- subscriptionId: string(),
6842
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6843
- maxFps: number().nonnegative()
6844
- });
6845
- /**
6846
6773
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6847
6774
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6848
6775
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6850,8 +6777,8 @@ var SubscribeFramesResultSchema = object({
6850
6777
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6851
6778
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6852
6779
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6853
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6854
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6780
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6781
+ * it.
6855
6782
  */
6856
6783
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6857
6784
  var DecodedAudioChunkSchema = object({
@@ -6869,11 +6796,10 @@ var DecodedAudioChunkSchema = object({
6869
6796
  format: AudioChunkFormatSchema.optional()
6870
6797
  });
6871
6798
  /**
6872
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6873
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6874
- * asks the broker for the decoded audio-chunk stream of one broker; the
6875
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6876
- * `pullAudioChunks`.
6799
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6800
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6801
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6802
+ * the consumer drains via `pullAudioChunks`.
6877
6803
  */
6878
6804
  var SubscribeAudioChunksInputSchema = object({
6879
6805
  brokerId: string(),
@@ -6904,9 +6830,7 @@ var BrokerStatsSchema = object({
6904
6830
  "stopped"
6905
6831
  ]),
6906
6832
  inputFps: number(),
6907
- decodeFps: number(),
6908
6833
  encodedSubscribers: number(),
6909
- decodedSubscribers: number(),
6910
6834
  uptimeMs: number(),
6911
6835
  bitrateKbps: number(),
6912
6836
  idrIntervalMs: number(),
@@ -6919,14 +6843,6 @@ var BrokerStatsSchema = object({
6919
6843
  preBufferMs: number(),
6920
6844
  preBufferPackets: number(),
6921
6845
  /**
6922
- * Moleculer node id of the decoder provider currently servicing this
6923
- * stream's decoded subscribers. `null` until the deferred decoder is
6924
- * created (no decoded clients yet, or codec not detected). Surfaces the
6925
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6926
- * a separate cap call per broker.
6927
- */
6928
- decoderNodeId: string().nullable(),
6929
- /**
6930
6846
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6931
6847
  * when the stream has no audio track or the broker is in cold start.
6932
6848
  * `supported = false` means the codec was detected but the local
@@ -10262,70 +10178,6 @@ var StorageLocationDeclarationSchema = object({
10262
10178
  "backup"
10263
10179
  ]).optional()
10264
10180
  });
10265
- var DecoderStatsSchema = object({
10266
- inputFps: number(),
10267
- outputFps: number(),
10268
- avgDecodeTimeMs: number(),
10269
- droppedFrames: number(),
10270
- /**
10271
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10272
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10273
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10274
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10275
- */
10276
- lagMs: number().optional(),
10277
- effectiveFps: number().optional(),
10278
- adaptiveFps: number().optional()
10279
- });
10280
- var DecoderSessionConfigSchema = object({
10281
- codec: string(),
10282
- maxFps: number().default(0),
10283
- outputFormat: _enum([
10284
- "jpeg",
10285
- "rgb",
10286
- "bgr",
10287
- "yuv420",
10288
- "gray"
10289
- ]).default("jpeg"),
10290
- scale: number().default(1),
10291
- width: number().optional(),
10292
- height: number().optional(),
10293
- /**
10294
- * Identifier of the camera this decoder session serves. Optional
10295
- * because the cap is generic (any caller could request decode), but
10296
- * stream-broker passes it so decoder logs include `deviceId` for
10297
- * per-camera filtering when diagnosing failures (e.g. node-av
10298
- * sendPacket errors on a single hung camera).
10299
- */
10300
- deviceId: number().int().nonnegative().optional(),
10301
- /**
10302
- * Free-form tag for log scoping. Stream-broker uses
10303
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10304
- * on every line so `grep tag=broker:5/high` filters one camera
10305
- * profile cleanly.
10306
- */
10307
- tag: string().optional(),
10308
- /**
10309
- * Where the session delivers decoded frames (Phase 5 / D9):
10310
- *
10311
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10312
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10313
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10314
- * into an OS shared-memory ring and drained as zero-pixel
10315
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10316
- * other — `pullFrames` returns nothing for an `'shm'` session and
10317
- * `pullHandles` returns nothing for a `'callback'` session.
10318
- */
10319
- frameSink: _enum(["callback", "shm"]).default("callback"),
10320
- /**
10321
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10322
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10323
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10324
- * stream-broker's `streamingDebug` gate — off by default so production logs
10325
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10326
- */
10327
- debug: boolean().optional()
10328
- });
10329
10181
  /**
10330
10182
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10331
10183
  * an addon declares its channels in.
@@ -10468,6 +10320,26 @@ var ClipSearchStrictnessSchema = _enum([
10468
10320
  "balanced",
10469
10321
  "strict"
10470
10322
  ]);
10323
+ /** Steps whose effect a root label can BE. */
10324
+ var LABEL_SUPPLY_STEP_IDS = [
10325
+ "animal-classifier",
10326
+ "vehicle-classifier",
10327
+ "package-detection"
10328
+ ];
10329
+ /** Steps whose box a root detection can BE. */
10330
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10331
+ /**
10332
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10333
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10334
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10335
+ * no camera tree carries.)
10336
+ */
10337
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10338
+ [
10339
+ ...LABEL_SUPPLY_STEP_IDS,
10340
+ ...CROP_SUPPLY_STEP_IDS,
10341
+ ...MASK_SUPPLY_STEP_IDS
10342
+ ];
10471
10343
  var MODEL_FORMATS = [
10472
10344
  "onnx",
10473
10345
  "coreml",
@@ -10496,7 +10368,53 @@ var ModelFormatEntrySchema = object({
10496
10368
  /** Multi-file payload (directory members or sibling files). */
10497
10369
  files: array(string()).readonly().optional(),
10498
10370
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10499
- runtimes: array(_enum(["python"])).readonly().optional()
10371
+ runtimes: array(_enum(["python"])).readonly().optional(),
10372
+ /**
10373
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10374
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10375
+ * weight file) comes from the downloader's generated table, kept in step
10376
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10377
+ * node records the revision it downloaded next to the file
10378
+ * (`<file>.revision`); a copy with no record or a different one is stale
10379
+ * unless its weight file hashes to the revision, and a stale copy is
10380
+ * downloaded again, the old one serving until the new one is complete. No
10381
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10382
+ */
10383
+ revision: string().min(1).optional()
10384
+ });
10385
+ /**
10386
+ * What a node holds for one (model, format) (D746). `current` is a complete
10387
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10388
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10389
+ * no or a different revision record, or a missing sibling. `missing` is no
10390
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10391
+ * reclaimable bytes and a copy about to be replaced.
10392
+ */
10393
+ var ModelOnDiskStateSchema = _enum([
10394
+ "current",
10395
+ "stale",
10396
+ "missing"
10397
+ ]);
10398
+ /**
10399
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10400
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10401
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10402
+ */
10403
+ var ModelFormatPrecisionSchema = _enum([
10404
+ "fp32",
10405
+ "fp16",
10406
+ "int8"
10407
+ ]);
10408
+ /**
10409
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10410
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10411
+ * them omits them, and a reader falls back to `downloaded`.
10412
+ */
10413
+ var PipelineModelFormatStatusSchema = object({
10414
+ downloaded: boolean(),
10415
+ sizeMB: number(),
10416
+ onDisk: ModelOnDiskStateSchema.optional(),
10417
+ precision: ModelFormatPrecisionSchema.optional()
10500
10418
  });
10501
10419
  /**
10502
10420
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10537,11 +10455,11 @@ var ModelVariantGroupSchema = object({
10537
10455
  /** Quantization axis. Omit ⇒ the fp32 base build. */
10538
10456
  precision: _enum(["fp32", "int8"]).optional(),
10539
10457
  /**
10540
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
10541
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
10542
- * future performance variants plug into.
10458
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
10459
+ * an alternate training of the same family (Scrypted `relu_test`); chip
10460
+ * label is "Test".
10543
10461
  */
10544
- optimization: _enum(["standard", "fast"]).optional(),
10462
+ optimization: _enum(["standard", "test"]).optional(),
10545
10463
  /**
10546
10464
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
10547
10465
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -10564,9 +10482,10 @@ var ModelProviderIdSchema = _enum([
10564
10482
  * are per upstream. A persisted custom-model row written when this field was a
10565
10483
  * string still parses — the string is lifted into `{ weights }`.
10566
10484
  *
10567
- * Every licence surface (the admin "Models and licenses" page,
10568
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
10569
- * these records by `scripts/gen-model-licenses.ts` (D661).
10485
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
10486
+ * model table) is GENERATED from these records by
10487
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
10488
+ * `camstack/docs` → `/docs/detection/models`.
10570
10489
  */
10571
10490
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
10572
10491
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -10599,6 +10518,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10599
10518
  /** True when the weights or their data forbid commercial use. */
10600
10519
  nonCommercial: boolean().optional()
10601
10520
  }));
10521
+ /**
10522
+ * One step a ROOT detector can supply from its own output (D730) — see
10523
+ * `ModelCatalogEntry.suppliesSteps`.
10524
+ *
10525
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10526
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10527
+ * the root cannot produce (shown as unavailable, never a blocker).
10528
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10529
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10530
+ * child of the `parentMacro` detection that contains it — never a track.
10531
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10532
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10533
+ * detection in the shape that step produces. Derived from the model's
10534
+ * postprocessor on read, never stored by an import.
10535
+ */
10536
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10537
+ object({
10538
+ kind: literal("label"),
10539
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10540
+ labelToEffect: record(string(), string()),
10541
+ uncovered: array(string()).readonly()
10542
+ }),
10543
+ object({
10544
+ kind: literal("crop"),
10545
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10546
+ rootLabels: array(string()).readonly(),
10547
+ parentMacro: _enum(["vehicle", "person"]),
10548
+ childClass: _enum(["plate", "face"]),
10549
+ /**
10550
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10551
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10552
+ * stored by an import.
10553
+ */
10554
+ rootInputPx: number().int().positive().optional()
10555
+ }),
10556
+ object({
10557
+ kind: literal("mask"),
10558
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10559
+ })
10560
+ ]);
10602
10561
  var ModelCatalogEntrySchema = object({
10603
10562
  id: string(),
10604
10563
  name: string(),
@@ -10664,6 +10623,35 @@ var ModelCatalogEntrySchema = object({
10664
10623
  */
10665
10624
  defaultConfidence: number().min(0).max(1).optional(),
10666
10625
  /**
10626
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10627
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10628
+ * absent here runs at the step slider's global default. The same row shape
10629
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10630
+ * a measured table is copied in as-is. An operator override is bound to the
10631
+ * model it was made for and does not survive a model change (D738). A custom
10632
+ * / imported model may declare it; without it, the global defaults apply.
10633
+ */
10634
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10635
+ /**
10636
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10637
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10638
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10639
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10640
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10641
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10642
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10643
+ */
10644
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10645
+ /**
10646
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10647
+ * minimum DETECTION score from which this root's own fine label (species,
10648
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10649
+ * keeps its macro class without the fine label. `1` = never take it from
10650
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10651
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10652
+ */
10653
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10654
+ /**
10667
10655
  * When true, the executor produces a landmark-aligned crop (similarity warp
10668
10656
  * onto the canonical template) before this step runs, instead of a plain
10669
10657
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10725,6 +10713,16 @@ var ModelCatalogEntrySchema = object({
10725
10713
  */
10726
10714
  classMap: DetectionCatalogClassMapSchema.optional(),
10727
10715
  /**
10716
+ * The pipeline steps this ROOT detector can supply from its own output
10717
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10718
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10719
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10720
+ * by hand and never assumed per family; a row without it is derived on read
10721
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10722
+ * `useRootModel` flag (`resolveRootSupply`).
10723
+ */
10724
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10725
+ /**
10728
10726
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10729
10727
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10730
10728
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12326,13 +12324,6 @@ var BrokerRtspClientSchema = object({
12326
12324
  lastRtpAt: number(),
12327
12325
  bytesSent: number()
12328
12326
  });
12329
- var BrokerDecodedClientSchema = object({
12330
- tag: string(),
12331
- subscribedAt: number(),
12332
- maxFps: number(),
12333
- framesDelivered: number(),
12334
- framesDropped: number()
12335
- });
12336
12327
  var BrokerAudioClientSchema = object({
12337
12328
  tag: string(),
12338
12329
  subscribedAt: number(),
@@ -12424,7 +12415,6 @@ var BrokerEncodedClientSchema = object({
12424
12415
  });
12425
12416
  var BrokerClientsSchema = object({
12426
12417
  rtsp: array(BrokerRtspClientSchema).readonly(),
12427
- decoded: array(BrokerDecodedClientSchema).readonly(),
12428
12418
  audio: array(BrokerAudioClientSchema).readonly(),
12429
12419
  encoded: array(BrokerEncodedClientSchema).readonly(),
12430
12420
  pipeClients: number(),
@@ -12793,11 +12783,7 @@ method(object({
12793
12783
  auth: "admin"
12794
12784
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12795
12785
  brokerId: string(),
12796
- channel: _enum([
12797
- "rtsp",
12798
- "decoded",
12799
- "audio"
12800
- ]),
12786
+ channel: _enum(["rtsp", "audio"]),
12801
12787
  handle: string()
12802
12788
  }), object({ killed: boolean() }), {
12803
12789
  kind: "mutation",
@@ -12832,10 +12818,7 @@ method(object({
12832
12818
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12833
12819
  subscriptionId: string(),
12834
12820
  maxCount: number().int().positive().default(8)
12835
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12836
- subscriptionId: string(),
12837
- maxCount: number().int().positive().default(4)
12838
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12821
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12839
12822
  brokerId: string(),
12840
12823
  seconds: number().min(0).max(30)
12841
12824
  }), _void(), {
@@ -14094,54 +14077,12 @@ id: union([string(), number()]) }), {
14094
14077
  kind: "mutation",
14095
14078
  auth: "admin"
14096
14079
  });
14097
- /**
14098
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14099
- * exposed via `decoder.getShmStats` so downstream consumers can
14100
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14101
- */
14102
- var ShmRingStatsSchema = object({
14103
- sessionId: string(),
14104
- slotCount: number().int(),
14105
- slotByteLength: number().int(),
14106
- segmentBytes: number().int(),
14107
- budgetMb: number().int(),
14108
- framesWritten: number().int(),
14109
- getFrameHits: number().int(),
14110
- getFrameMisses: number().int()
14111
- });
14112
- method(object({ codec: string() }), boolean()), method(_void(), object({
14080
+ method(_void(), object({
14113
14081
  id: string(),
14114
14082
  name: string(),
14115
- isPullMode: boolean().optional(),
14116
- priority: number().optional(),
14117
14083
  hwaccel: string().optional(),
14118
14084
  probedBestHwaccel: string().optional()
14119
- })), method(DecoderSessionConfigSchema, object({
14120
- sessionId: string(),
14121
- nodeId: string()
14122
- })), method(object({ sessionId: string() }), _void()), method(object({
14123
- sessionId: string(),
14124
- packet: EncodedPacketSchema
14125
- }), _void()), method(object({
14126
- sessionId: string(),
14127
- url: string()
14128
- }), _void()), method(object({
14129
- sessionId: string(),
14130
- maxCount: number().default(1),
14131
- waitMs: number().optional()
14132
- }), array(DecodedFrameSchema)), method(object({
14133
- sessionId: string(),
14134
- maxCount: number().default(1),
14135
- waitMs: number().optional()
14136
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14137
- sessionId: string(),
14138
- config: DecoderSessionConfigSchema.partial()
14139
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14140
- sessionId: string(),
14141
- codec: string(),
14142
- outputFormat: string(),
14143
- createdAtMs: number()
14144
- })).readonly()), method(_void(), object({ backend: string() }), {
14085
+ })), method(_void(), object({ backend: string() }), {
14145
14086
  kind: "mutation",
14146
14087
  auth: "admin"
14147
14088
  });
@@ -14197,7 +14138,7 @@ DeviceType.Camera;
14197
14138
  * This matters here more than anywhere else in the repo, because every provider
14198
14139
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
14199
14140
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
14200
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
14141
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
14201
14142
  * camera's own page will ask for its own login. That is correct, and pre-
14202
14143
  * filling it is the operator's business, not ours.
14203
14144
  *
@@ -16286,6 +16227,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16286
16227
  kind: "mutation",
16287
16228
  auth: "admin"
16288
16229
  });
16230
+ var HUB_ADDRESS_ROLES = [
16231
+ "appConnections",
16232
+ "notificationTaps",
16233
+ "internal",
16234
+ "publicEndpoint"
16235
+ ];
16289
16236
  /**
16290
16237
  * Transport bounds for AI capability methods.
16291
16238
  *
@@ -17482,7 +17429,7 @@ method(object({
17482
17429
  timeoutMs: 6e5
17483
17430
  });
17484
17431
  method(object({
17485
- nodeId: string(),
17432
+ targetNodeId: string(),
17486
17433
  modelId: string(),
17487
17434
  format: _enum(MODEL_FORMATS),
17488
17435
  entry: ModelCatalogEntrySchema
@@ -18888,6 +18835,8 @@ var NcSystemEventKindSchema = _enum([
18888
18835
  "stream-offline",
18889
18836
  "node-online",
18890
18837
  "node-offline",
18838
+ "node-restarting",
18839
+ "node-updating",
18891
18840
  "node-inference-unavailable",
18892
18841
  "detection-blind",
18893
18842
  "addon-crash-loop",
@@ -19986,8 +19935,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
19986
19935
  disabledTargetIds: array(string()).default([])
19987
19936
  });
19988
19937
  /**
19989
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
19990
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
19938
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
19939
+ * report a still-true state. `addons` is the crash-looped addons only and
19940
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
19991
19941
  * job is not an open state, and the alarm stays instant.
19992
19942
  */
19993
19943
  var NcStateSummarySectionIdSchema = _enum([
@@ -19999,6 +19949,7 @@ var NcStateSummarySectionIdSchema = _enum([
19999
19949
  "detection-blind",
20000
19950
  "nodes",
20001
19951
  "addons",
19952
+ "addon-updates",
20002
19953
  "updates"
20003
19954
  ]);
20004
19955
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -20479,7 +20430,25 @@ var NcAlarmModeDelaysListSchema = array(object({
20479
20430
  * When this mode may be armed. Absent / null = always allowed (same as a
20480
20431
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
20481
20432
  */
20482
- schedule: NcScheduleSchema.optional()
20433
+ schedule: NcScheduleSchema.optional(),
20434
+ /**
20435
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
20436
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
20437
+ * only one, and the matches ride the triggered notification's mosaic (D705).
20438
+ */
20439
+ notifyDuringEntryDelay: boolean().optional(),
20440
+ /**
20441
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
20442
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20443
+ * is the one that starts the entry delay — the entry-delay notification already names it.
20444
+ */
20445
+ notifySensorRewatched: boolean().optional(),
20446
+ /**
20447
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20448
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20449
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20450
+ */
20451
+ notifySensorIgnored: boolean().optional()
20483
20452
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20484
20453
  var NcAlarmModeDelaysEditListSchema = array(object({
20485
20454
  mode: AlarmArmModeSchema,
@@ -20488,7 +20457,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20488
20457
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
20489
20458
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
20490
20459
  /** Set a schedule, or `null` to clear (mode always allowed again). */
20491
- schedule: NcScheduleSchema.nullable().optional()
20460
+ schedule: NcScheduleSchema.nullable().optional(),
20461
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20462
+ notifyDuringEntryDelay: boolean().nullable().optional(),
20463
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20464
+ notifySensorRewatched: boolean().nullable().optional(),
20465
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20466
+ notifySensorIgnored: boolean().nullable().optional()
20492
20467
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20493
20468
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20494
20469
  var NcAlarmNonBlockingEditSchema = object({
@@ -21449,45 +21424,25 @@ Object.freeze(Object.fromEntries([{
21449
21424
  label: "Face recognition model",
21450
21425
  defaultModelId: "auraface-r100",
21451
21426
  indexName: "the enrolled face gallery",
21452
- options: [
21453
- {
21454
- id: "auraface-r100",
21455
- label: "AuraFace R100"
21456
- },
21457
- {
21458
- id: "arcface-r100",
21459
- label: "ArcFace (ResNet34)"
21460
- },
21461
- {
21462
- id: "inception-resnet-v1",
21463
- label: "Inception ResNet V1"
21464
- }
21465
- ]
21427
+ options: [{
21428
+ id: "auraface-r100",
21429
+ label: "AuraFace R100"
21430
+ }]
21466
21431
  }, {
21467
21432
  stepId: "clip-embedding",
21468
21433
  label: "Semantic search model",
21469
- defaultModelId: "mobileclip-s1",
21434
+ defaultModelId: "siglip2-b16-224",
21470
21435
  indexName: "the object semantic-search index",
21471
- options: [
21472
- {
21473
- id: "mobileclip-s1",
21474
- label: "MobileCLIP S1"
21475
- },
21476
- {
21477
- id: "mobileclip-s2",
21478
- label: "MobileCLIP S2"
21479
- },
21480
- {
21481
- id: "siglip2-b16-224",
21482
- label: "SigLIP2 B/16 (Apache-2.0)"
21483
- }
21484
- ]
21436
+ options: [{
21437
+ id: "siglip2-b16-224",
21438
+ label: "SigLIP2 B/16 (Apache-2.0)"
21439
+ }]
21485
21440
  }].map((s) => [s.stepId, s.defaultModelId])));
21486
21441
  var CLUSTER_STEP_SETTING_FIELDS = [{
21487
21442
  stepId: "face-embedding",
21488
21443
  key: "minLandmarkFaceSize",
21489
- label: "Min face size for recognition (detection px)",
21490
- 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.",
21444
+ label: "Min face size to embed (detection-frame px)",
21445
+ 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.",
21491
21446
  type: "slider",
21492
21447
  min: 0,
21493
21448
  max: 64,
@@ -23407,6 +23362,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23407
23362
  timestamp: number()
23408
23363
  });
23409
23364
  /**
23365
+ * A root model's boxes standing in for one crop-kind step's own inference
23366
+ * (D730) — see `runPipeline.suppliedRoot`.
23367
+ */
23368
+ var SuppliedRootOutputSchema = object({
23369
+ stepId: string(),
23370
+ /** The root model that drew the boxes — stamped on the result. */
23371
+ modelId: string(),
23372
+ detections: array(object({
23373
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23374
+ bbox: tuple([
23375
+ number(),
23376
+ number(),
23377
+ number(),
23378
+ number()
23379
+ ]),
23380
+ score: number(),
23381
+ /**
23382
+ * Five facial landmarks in the same pixels — a face the step's own
23383
+ * detector already re-found inside a root face box (D730), so its
23384
+ * embedder child aligns it exactly as it aligns any detected face.
23385
+ */
23386
+ landmarks: array(object({
23387
+ x: number(),
23388
+ y: number()
23389
+ })).optional()
23390
+ })).min(1)
23391
+ });
23392
+ /**
23410
23393
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23411
23394
  * within the frame, so the executor can re-cut a leaf child ROI at native
23412
23395
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23454,7 +23437,7 @@ var FrameRefSchema = object({
23454
23437
  timestamp: number(),
23455
23438
  capturedAt: number().optional()
23456
23439
  });
23457
- var ModelFormatSchema$1 = _enum([
23440
+ var ModelFormatSchema$2 = _enum([
23458
23441
  "onnx",
23459
23442
  "coreml",
23460
23443
  "openvino",
@@ -23472,7 +23455,7 @@ var PipelineSlotSchema = _enum([
23472
23455
  var PipelineEngineChoiceSchema = object({
23473
23456
  runtime: literal("python"),
23474
23457
  backend: string(),
23475
- format: ModelFormatSchema$1,
23458
+ format: ModelFormatSchema$2,
23476
23459
  device: string().optional()
23477
23460
  });
23478
23461
  /**
@@ -23511,32 +23494,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23511
23494
  group: string().optional(),
23512
23495
  settings: record(string(), unknown()).optional()
23513
23496
  }));
23514
- var PipelineTemplateStepSchema = lazy(() => object({
23515
- addonId: string(),
23516
- enabled: boolean(),
23517
- modelId: string(),
23518
- children: array(PipelineTemplateStepSchema).readonly(),
23519
- settings: record(string(), unknown()).optional()
23520
- }));
23521
- var PipelineTemplateSchema$1 = object({
23522
- id: string(),
23523
- name: string(),
23524
- createdAt: string(),
23525
- updatedAt: string(),
23526
- engine: PipelineEngineChoiceSchema,
23527
- steps: array(PipelineTemplateStepSchema).readonly()
23528
- });
23529
23497
  var PipelineModelOptionSchema = object({
23530
23498
  id: string(),
23531
23499
  name: string(),
23532
- formats: record(string(), object({
23533
- downloaded: boolean(),
23534
- sizeMB: number()
23535
- })),
23500
+ formats: record(string(), PipelineModelFormatStatusSchema),
23536
23501
  group: ModelVariantGroupSchema.optional(),
23537
23502
  legacy: boolean().optional(),
23538
23503
  provider: ModelProviderIdSchema.optional(),
23539
- defaultConfidence: number().optional()
23504
+ defaultConfidence: number().optional(),
23505
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23540
23506
  });
23541
23507
  var ConfigFieldBridge = custom();
23542
23508
  var PipelineAddonSchemaSchema = object({
@@ -23698,6 +23664,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23698
23664
  }), {
23699
23665
  kind: "mutation",
23700
23666
  auth: "admin"
23667
+ }), method(object({
23668
+ nodeId: string(),
23669
+ deviceIds: array(number()).readonly().optional(),
23670
+ dryRun: boolean()
23671
+ }), object({
23672
+ entries: array(object({
23673
+ deviceId: number(),
23674
+ keys: array(string()).readonly()
23675
+ })).readonly(),
23676
+ refused: array(object({
23677
+ deviceId: number(),
23678
+ reason: string()
23679
+ })).readonly()
23680
+ }), {
23681
+ kind: "mutation",
23682
+ auth: "admin"
23701
23683
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23702
23684
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23703
23685
  deviceKey: string(),
@@ -23723,22 +23705,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23723
23705
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23724
23706
  steps: array(PipelineStepInputSchema),
23725
23707
  deviceKey: string().optional()
23726
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23727
- name: string(),
23728
- steps: array(PipelineTemplateStepSchema).readonly(),
23729
- engine: PipelineEngineChoiceSchema
23730
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23731
- id: string(),
23732
- name: string().optional(),
23733
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23734
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23708
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23735
23709
  addonId: string(),
23736
23710
  modelId: string(),
23737
- format: ModelFormatSchema$1
23711
+ format: ModelFormatSchema$2
23738
23712
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23739
23713
  addonId: string(),
23740
23714
  modelId: string(),
23741
- format: ModelFormatSchema$1
23715
+ format: ModelFormatSchema$2
23742
23716
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23743
23717
  steps: array(PipelineStepInputSchema).min(1),
23744
23718
  frame: FrameInputSchema.optional(),
@@ -23804,7 +23778,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23804
23778
  * `device-not-servable`), and nothing reaches the camera's live
23805
23779
  * trace stream. Absent ⇒ unchanged behaviour.
23806
23780
  */
23807
- replay: literal(true).optional()
23781
+ replay: literal(true).optional(),
23782
+ /**
23783
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23784
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23785
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23786
+ * NOT inferred, these boxes are its output, and its children (the plate
23787
+ * reader) run on them through their own crop policy. Boxes are in the
23788
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23789
+ */
23790
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23808
23791
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23809
23792
  steps: array(PipelineStepInputSchema).min(1),
23810
23793
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23886,6 +23869,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23886
23869
  filename: string().optional(),
23887
23870
  settings: record(string(), unknown()).optional()
23888
23871
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23872
+ /**
23873
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23874
+ * `pipeline-orchestrator` cap. The recommender's own types
23875
+ * (`recommend.ts`) are the TS face of the same data; these
23876
+ * schemas are what crosses the cap boundary.
23877
+ */
23878
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23879
+ /** The operator's range for it. */
23880
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23881
+ min: 1,
23882
+ max: 8
23883
+ };
23884
+ var HardwareClassIdSchema = _enum([
23885
+ "intel-core-ultra",
23886
+ "intel-n-series",
23887
+ "apple-m-base",
23888
+ "apple-m-pro",
23889
+ "unknown"
23890
+ ]);
23891
+ var AcceleratorKindSchema = _enum([
23892
+ "intel-npu",
23893
+ "intel-igpu",
23894
+ "x86-cpu",
23895
+ "arm-cpu",
23896
+ "apple-ane",
23897
+ "coral"
23898
+ ]);
23899
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23900
+ object({
23901
+ kind: literal("capacity"),
23902
+ sessions: number(),
23903
+ minSessions: number()
23904
+ }),
23905
+ object({
23906
+ kind: literal("tie-faster"),
23907
+ over: string(),
23908
+ recallDelta: number()
23909
+ }),
23910
+ object({
23911
+ kind: literal("stepped-down"),
23912
+ from: string(),
23913
+ to: string(),
23914
+ limitedBy: string()
23915
+ }),
23916
+ object({
23917
+ kind: literal("no-fit-lightest"),
23918
+ sessions: number(),
23919
+ minSessions: number()
23920
+ }),
23921
+ object({
23922
+ kind: literal("derived-latency"),
23923
+ modelId: string()
23924
+ }),
23925
+ object({ kind: literal("cpu-device") }),
23926
+ object({ kind: literal("coral-untouched") }),
23927
+ object({ kind: literal("device-disabled") }),
23928
+ object({ kind: literal("device-unavailable") }),
23929
+ object({ kind: literal("node-offline") }),
23930
+ object({ kind: literal("no-hardware-facts") }),
23931
+ object({
23932
+ kind: literal("no-measured-data"),
23933
+ hardwareClass: HardwareClassIdSchema
23934
+ }),
23935
+ object({
23936
+ kind: literal("no-family-build"),
23937
+ format: ModelFormatSchema$1
23938
+ })
23939
+ ]);
23940
+ var DeviceModelChoiceSchema = object({
23941
+ modelId: string(),
23942
+ p50Ms: number(),
23943
+ fps: number(),
23944
+ measured: boolean(),
23945
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23946
+ capacitySessions: number(),
23947
+ personRecall: number()
23948
+ });
23949
+ var DeviceRecommendationSchema = object({
23950
+ deviceKey: string(),
23951
+ accelerator: AcceleratorKindSchema.nullable(),
23952
+ enabled: boolean(),
23953
+ available: boolean(),
23954
+ chosen: DeviceModelChoiceSchema.nullable(),
23955
+ reasons: array(RecommendationReasonSchema).readonly()
23956
+ });
23957
+ var NodeRecommendationSchema = object({
23958
+ nodeId: string(),
23959
+ reachable: boolean(),
23960
+ hardwareClass: HardwareClassIdSchema.nullable(),
23961
+ cpuModel: string().nullable(),
23962
+ skipped: boolean(),
23963
+ acceleratorModelId: string().nullable(),
23964
+ devices: array(DeviceRecommendationSchema).readonly(),
23965
+ reasons: array(RecommendationReasonSchema).readonly()
23966
+ });
23967
+ var ModelPinChangeSchema = object({
23968
+ stepId: string(),
23969
+ before: string().nullable(),
23970
+ after: string().nullable()
23971
+ });
23972
+ var NodeDeviceChangeSchema = object({
23973
+ nodeId: string(),
23974
+ deviceKey: string(),
23975
+ madeExplicit: boolean(),
23976
+ modelPins: array(ModelPinChangeSchema).readonly(),
23977
+ thresholds: array(object({
23978
+ stepId: string(),
23979
+ keys: array(string()).readonly()
23980
+ })).readonly()
23981
+ });
23982
+ var CameraOverrideClearSchema = object({
23983
+ deviceId: number(),
23984
+ source: _enum(["step-override", "wholesale"]),
23985
+ nodeId: string(),
23986
+ deviceKey: string().nullable(),
23987
+ stepId: string(),
23988
+ modelIdBefore: string().nullable(),
23989
+ keys: array(string()).readonly()
23990
+ });
23991
+ var DetectorStoreClearSchema = object({
23992
+ deviceId: number(),
23993
+ keys: array(string()).readonly()
23994
+ });
23995
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
23996
+ object({
23997
+ kind: literal("detector-store-cluster-wide"),
23998
+ skippedNodes: array(string()).readonly()
23999
+ }),
24000
+ object({
24001
+ kind: literal("detector-store-unreadable"),
24002
+ error: string()
24003
+ }),
24004
+ object({
24005
+ kind: literal("coral-enabled"),
24006
+ nodeId: string(),
24007
+ deviceKey: string()
24008
+ })
24009
+ ]);
24010
+ var AutoTuneOptionsSchema = object({
24011
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24012
+ headroom: number().min(.3).max(.5).default(.4),
24013
+ /**
24014
+ * The least number of parallel sessions every device must sustain at the
24015
+ * camera rate with the headroom kept free (D755). The most accurate model
24016
+ * that reaches it wins.
24017
+ */
24018
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24019
+ });
24020
+ var AutoTunePlanSchema = object({
24021
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24022
+ planHash: string(),
24023
+ family: literal("yolov9"),
24024
+ headroom: number(),
24025
+ minSessionsPerDevice: number(),
24026
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24027
+ cameraFps: number(),
24028
+ generatedAt: number(),
24029
+ nodes: array(NodeRecommendationSchema).readonly(),
24030
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24031
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24032
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24033
+ warnings: array(AutoTuneWarningSchema).readonly()
24034
+ });
24035
+ var AutoTuneApplyInputSchema = object({
24036
+ planHash: string(),
24037
+ headroom: number().min(.3).max(.5).default(.4),
24038
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24039
+ });
24040
+ var AutoTunePhaseResultSchema = object({
24041
+ phase: _enum([
24042
+ "download",
24043
+ "camera-overrides",
24044
+ "detector-thresholds",
24045
+ "node-models",
24046
+ "redispatch"
24047
+ ]),
24048
+ ok: boolean(),
24049
+ detail: string()
24050
+ });
24051
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24052
+ object({
24053
+ kind: literal("applied"),
24054
+ planHash: string(),
24055
+ phases: array(AutoTunePhaseResultSchema).readonly()
24056
+ }),
24057
+ object({
24058
+ kind: literal("aborted"),
24059
+ phases: array(AutoTunePhaseResultSchema).readonly()
24060
+ }),
24061
+ object({
24062
+ kind: literal("stale"),
24063
+ plan: AutoTunePlanSchema
24064
+ }),
24065
+ object({
24066
+ kind: literal("refused"),
24067
+ reason: _enum(["apply-in-progress"])
24068
+ })
24069
+ ]);
24070
+ /**
24071
+ * Wire shapes of the Load balancing surface (D748): the session placement
24072
+ * policy, the atomic share write, the observed placement statistics, the
24073
+ * hardware share suggestion and the stale device pins.
24074
+ */
24075
+ /**
24076
+ * How a new detection session picks its node and device.
24077
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24078
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24079
+ * weight only bites once a node already holds a session.
24080
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24081
+ * full or drowning node yields to a free one (D748).
24082
+ */
24083
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24084
+ var LoadBalancingSharesInputSchema = object({
24085
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24086
+ nodes: record(string(), number().positive()).default({}),
24087
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24088
+ devices: record(string(), record(string(), number().positive())).default({})
24089
+ });
24090
+ var PlacementStatsInputSchema = object({
24091
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24092
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24093
+ var PlacementDeviceStatsSchema = object({
24094
+ deviceKey: string(),
24095
+ /** Sessions running on this device now. */
24096
+ sessionsNow: number(),
24097
+ /** Sessions started on this device inside the window. */
24098
+ sessionsStarted: number(),
24099
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24100
+ observedShare: number().nullable()
24101
+ });
24102
+ var PlacementNodeStatsSchema = object({
24103
+ nodeId: string(),
24104
+ sessionsNow: number(),
24105
+ sessionsStarted: number(),
24106
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24107
+ observedShare: number().nullable(),
24108
+ /** Most sessions this node ran at once inside the window. */
24109
+ peakSessions: number(),
24110
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24111
+ yieldsAway: number(),
24112
+ devices: array(PlacementDeviceStatsSchema).readonly()
24113
+ });
24114
+ /** A camera's device pin that the session path cannot honour. */
24115
+ var StaleDevicePinSchema = object({
24116
+ deviceId: number(),
24117
+ deviceKey: string(),
24118
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24119
+ reason: _enum(["disabled", "absent"])
24120
+ });
24121
+ var PlacementStatsSchema = object({
24122
+ policy: SessionPlacementPolicySchema,
24123
+ windowMs: number(),
24124
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24125
+ observedForMs: number(),
24126
+ sessionsNow: number(),
24127
+ /** Most parallel sessions across the cluster inside the window. */
24128
+ clusterPeakSessions: number(),
24129
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24130
+ stalePins: array(StaleDevicePinSchema).readonly()
24131
+ });
24132
+ /**
24133
+ * Where an automatic share's capacity comes from (D755).
24134
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24135
+ * the measured latency table for the node's hardware class.
24136
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24137
+ * A node with no results falls back to `hardware`, and says so.
24138
+ */
24139
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24140
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24141
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24142
+ var SuggestSharesInputSchema = object({
24143
+ headroom: number().min(.3).max(.5).default(.4),
24144
+ /** Default `hardware`. */
24145
+ source: CapacitySourceSchema.default("hardware")
24146
+ });
24147
+ var SuggestedDeviceShareSchema = object({
24148
+ deviceKey: string(),
24149
+ /** Share of the node (0–100, rounded). */
24150
+ share: number(),
24151
+ modelId: string().nullable(),
24152
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24153
+ fps: number().nullable(),
24154
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24155
+ measured: boolean(),
24156
+ /**
24157
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24158
+ * or the benchmark's measured max sessions. Never enforced.
24159
+ */
24160
+ suggestedMaxSessions: number().nullable()
24161
+ });
24162
+ var SuggestedNodeShareSchema = object({
24163
+ nodeId: string(),
24164
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24165
+ share: number().nullable(),
24166
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24167
+ capacitySessions: number(),
24168
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24169
+ skippedReason: string().nullable(),
24170
+ /** What this node's capacity was read from; null when the node is skipped. */
24171
+ capacitySource: CapacitySourceSchema.nullable(),
24172
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24173
+ capacityFallback: CapacityFallbackSchema.nullable()
24174
+ });
24175
+ var SuggestSharesResultSchema = object({
24176
+ headroom: number(),
24177
+ /** The source asked for; each node says what it actually used. */
24178
+ source: CapacitySourceSchema,
24179
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24180
+ cameraFps: number(),
24181
+ /** The Auto tune capacity floor the models were picked at. */
24182
+ minSessionsPerDevice: number(),
24183
+ nodes: array(SuggestedNodeShareSchema).readonly()
24184
+ });
24185
+ /**
24186
+ * Where the node and device shares come from (D750, D755).
24187
+ * - `hardware` (default) — computed by the system from each node's static
24188
+ * capacity (its accelerators at their Auto tune models, from the measured
24189
+ * latency table), recomputed whenever a node or device joins, leaves, is
24190
+ * switched on or off, or changes model. No load input.
24191
+ * - `benchmark` — the same, from each node's measured capacity (node
24192
+ * benchmark results); a node without results falls back to `hardware`.
24193
+ * - `manual` — the operator's stored sliders.
24194
+ * Either way a node or device that cannot take sessions gives its share to
24195
+ * the others in proportion; the stored values are never rewritten for that.
24196
+ */
24197
+ var ShareSourceSchema = _enum([
24198
+ "hardware",
24199
+ "benchmark",
24200
+ "manual"
24201
+ ]);
24202
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24203
+ object({
24204
+ nodes: record(string(), number()),
24205
+ devices: record(string(), record(string(), number()))
24206
+ });
24207
+ var EffectiveDeviceShareSchema = object({
24208
+ deviceKey: string(),
24209
+ /** Can take sessions now (enabled, available, can run the root). */
24210
+ eligible: boolean(),
24211
+ /** The share the source assigns, as a percentage of the node's devices. */
24212
+ configuredPct: number(),
24213
+ /** The share actually used, after an ineligible device's share went to the others. */
24214
+ effectivePct: number()
24215
+ });
24216
+ var EffectiveNodeShareSchema = object({
24217
+ nodeId: string(),
24218
+ eligible: boolean(),
24219
+ configuredPct: number(),
24220
+ effectivePct: number(),
24221
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24222
+ capacitySource: CapacitySourceSchema.nullable(),
24223
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24224
+ capacityFallback: CapacityFallbackSchema.nullable(),
24225
+ devices: array(EffectiveDeviceShareSchema).readonly()
24226
+ });
24227
+ var EffectiveSharesSchema = object({
24228
+ source: ShareSourceSchema,
24229
+ policy: SessionPlacementPolicySchema,
24230
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24231
+ autoPending: boolean(),
24232
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24233
+ computedAt: number().nullable(),
24234
+ /** What made the system recompute them last. */
24235
+ trigger: string().nullable(),
24236
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24237
+ /** The relative weights the election reads (before eligibility). */
24238
+ nodeWeights: record(string(), number()),
24239
+ deviceWeights: record(string(), record(string(), number()))
24240
+ });
23889
24241
  object({
23890
24242
  activeCameras: number(),
23891
24243
  throttledCameras: number(),
@@ -24369,6 +24721,22 @@ var MotionSourceEnum = _enum([
24369
24721
  "device-activity"
24370
24722
  ]);
24371
24723
  /**
24724
+ * What opened an on-motion detection SESSION: the motion source that passed the
24725
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
24726
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
24727
+ * device name as the orchestrator's camera-sensors resolution last read it;
24728
+ * absent when unknown or when the camera itself triggered.
24729
+ *
24730
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
24731
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
24732
+ * runner never decides anything on it.
24733
+ */
24734
+ var SessionTriggerSchema = object({
24735
+ source: MotionSourceEnum,
24736
+ triggeredBy: MotionTriggeredBySchema,
24737
+ sensorName: string().optional()
24738
+ });
24739
+ /**
24372
24740
  * List of motion sources active on a camera. Empty array is valid:
24373
24741
  * "no source" — happens for battery cams without firmware motion when
24374
24742
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -24620,6 +24988,14 @@ var RunnerCameraConfigSchema = object({
24620
24988
  */
24621
24989
  motionSources: MotionSourcesSchema.default(["analyzer"]),
24622
24990
  /**
24991
+ * What opened this attach, on a SESSION attach only (see
24992
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
24993
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
24994
+ * behind it, and every attach from an orchestrator older than the field — the
24995
+ * runner then names no source on the phase event.
24996
+ */
24997
+ sessionTrigger: SessionTriggerSchema.optional(),
24998
+ /**
24623
24999
  * WHICH root detector runs for this camera. The detection counterpart of
24624
25000
  * {@link motionSources}, same shape and same discipline: a per-camera list
24625
25001
  * of sources the system understands, vendor-agnostic, owned here.
@@ -24779,14 +25155,15 @@ var RunnerLocalLoadSchema = object({
24779
25155
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24780
25156
  * this runner currently has attached cameras on, so the orchestrator's second
24781
25157
  * `balance()` pass (over a node's devices) weights on real per-pool session
24782
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24783
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25158
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25159
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25160
+ * a field that always read 0 was removed rather than shown as a measurement
25161
+ * (D762).
24784
25162
  */
24785
25163
  devices: array(object({
24786
25164
  deviceKey: string(),
24787
25165
  backend: string(),
24788
- attachedCameras: number(),
24789
- queueDepthTotal: number()
25166
+ attachedCameras: number()
24790
25167
  })).default([]),
24791
25168
  /** Hardware capability flags reported by this node. */
24792
25169
  hardware: object({
@@ -24922,7 +25299,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24922
25299
  */
24923
25300
  cropJpeg: string().optional(),
24924
25301
  parent: DetailParentSchema,
24925
- steps: array(string()).optional()
25302
+ steps: array(string()).optional(),
25303
+ /**
25304
+ * The camera's root model already drew this step's boxes (D730): a
25305
+ * `license_plate` inside the parent vehicle. The named step is NOT
25306
+ * inferred — these FRAME-space boxes are its output — and its
25307
+ * requested children (the plate reader) run on them. Absent ⇒ every
25308
+ * requested step infers as before.
25309
+ */
25310
+ supplied: object({
25311
+ stepId: string(),
25312
+ modelId: string(),
25313
+ boxes: array(object({
25314
+ bbox: NativeCropBboxSchema,
25315
+ score: number()
25316
+ })).min(1)
25317
+ }).optional()
24926
25318
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24927
25319
  /** Catalog step id, e.g. `clip-embedding`. */
24928
25320
  stepId: string(),
@@ -24985,14 +25377,6 @@ var CameraPipelineConfigSchema = object({
24985
25377
  settings: record(string(), unknown()).readonly().optional()
24986
25378
  }).nullable().optional()
24987
25379
  });
24988
- var PipelineTemplateSchema = object({
24989
- id: string(),
24990
- name: string(),
24991
- description: string().optional(),
24992
- config: CameraPipelineConfigSchema,
24993
- createdAt: string(),
24994
- updatedAt: string()
24995
- });
24996
25380
  var DeviceStepConfigSchema = object({
24997
25381
  modelId: string().optional(),
24998
25382
  settings: record(string(), unknown()).optional(),
@@ -25066,9 +25450,10 @@ var CameraStepOverridePatchSchema = object({
25066
25450
  modelId: string().optional(),
25067
25451
  settings: record(string(), unknown()).readonly().optional()
25068
25452
  });
25453
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25069
25454
  var CameraPipelineSettingsSchema = object({
25070
- pinnedAgentNodeId: string().optional(),
25071
25455
  stepToggles: record(string(), boolean()).optional(),
25456
+ stepSettings: CameraStepSettingsSchema.optional(),
25072
25457
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25073
25458
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25074
25459
  });
@@ -25101,7 +25486,10 @@ var PipelineAssignmentSchema = object({
25101
25486
  });
25102
25487
  /**
25103
25488
  * Per-agent load summary surfaced to the load balancer + dashboards.
25104
- * Aggregated from each runner's `getLocalLoad` cap call.
25489
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25490
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25491
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25492
+ * the default pool IS that device (D745); the balancer's census stays raw.
25105
25493
  */
25106
25494
  var AgentLoadSummarySchema = object({
25107
25495
  nodeId: string(),
@@ -25190,26 +25578,27 @@ var CameraBrokerStatusSchema = object({
25190
25578
  width: number(),
25191
25579
  height: number(),
25192
25580
  subscribers: number(),
25193
- inFps: number(),
25194
- outFps: number()
25581
+ /**
25582
+ * Encoded packets/s the broker receives from the camera. null when the
25583
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25584
+ * There is no output rate: decoding runs in the session decode workers, not
25585
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25586
+ * camera and is not served (D758).
25587
+ */
25588
+ inFps: number().nullable()
25195
25589
  })).readonly(),
25196
25590
  webrtcSessions: number(),
25197
25591
  rtspRestream: boolean()
25198
25592
  });
25199
- /** Shared-memory ring statistics within the decoder block. */
25200
- var CameraDecoderShmSchema = object({
25201
- framesWritten: number(),
25202
- getFrameHits: number(),
25203
- getFrameMisses: number(),
25204
- budgetMb: number()
25205
- });
25206
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25207
- var CameraDecoderStatusSchema = object({
25208
- nodeId: string(),
25209
- formats: array(string()).readonly(),
25210
- sessionCount: number(),
25211
- shm: CameraDecoderShmSchema
25212
- });
25593
+ /**
25594
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25595
+ * construction); null when the camera has no detection node. It carries no
25596
+ * frame counter: the shared-memory plane whose counters it used to serve is
25597
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25598
+ * from `detection.actualFps` (frames delivered to and processed by the
25599
+ * detector), never from a counter nothing feeds.
25600
+ */
25601
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25213
25602
  /** Motion block — null when motion detection is not active for this device. */
25214
25603
  var CameraMotionStatusSchema = object({
25215
25604
  enabled: boolean(),
@@ -25566,12 +25955,6 @@ method(object({
25566
25955
  }), object({ success: literal(true) }), {
25567
25956
  kind: "mutation",
25568
25957
  auth: "admin"
25569
- }), method(object({
25570
- agentNodeId: string(),
25571
- detectWeight: number().positive().nullable()
25572
- }), object({ success: literal(true) }), {
25573
- kind: "mutation",
25574
- auth: "admin"
25575
25958
  }), method(object({
25576
25959
  agentNodeId: string(),
25577
25960
  detect: boolean().nullable().optional(),
@@ -25613,6 +25996,15 @@ method(object({
25613
25996
  }), {
25614
25997
  kind: "mutation",
25615
25998
  auth: "admin"
25999
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26000
+ kind: "mutation",
26001
+ auth: "admin"
26002
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26003
+ kind: "mutation",
26004
+ auth: "admin"
26005
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26006
+ kind: "mutation",
26007
+ auth: "admin"
25616
26008
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25617
26009
  deviceId: number(),
25618
26010
  addonId: string(),
@@ -25629,6 +26021,13 @@ method(object({
25629
26021
  }), object({ success: literal(true) }), {
25630
26022
  kind: "mutation",
25631
26023
  auth: "admin"
26024
+ }), method(object({
26025
+ deviceId: number(),
26026
+ addonId: string(),
26027
+ settings: record(string(), unknown()).nullable()
26028
+ }), object({ success: literal(true) }), {
26029
+ kind: "mutation",
26030
+ auth: "admin"
25632
26031
  }), method(object({
25633
26032
  deviceId: number(),
25634
26033
  agentNodeId: string(),
@@ -25652,25 +26051,7 @@ method(object({
25652
26051
  }), method(_void(), DiskReconcileJobSchema, {
25653
26052
  kind: "mutation",
25654
26053
  auth: "admin"
25655
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25656
- name: string(),
25657
- description: string().optional(),
25658
- config: CameraPipelineConfigSchema
25659
- }), PipelineTemplateSchema, {
25660
- kind: "mutation",
25661
- auth: "admin"
25662
- }), method(object({
25663
- id: string(),
25664
- name: string().optional(),
25665
- description: string().optional(),
25666
- config: CameraPipelineConfigSchema.optional()
25667
- }), PipelineTemplateSchema, {
25668
- kind: "mutation",
25669
- auth: "admin"
25670
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25671
- kind: "mutation",
25672
- auth: "admin"
25673
- });
26054
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25674
26055
  /**
25675
26056
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25676
26057
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -27919,8 +28300,6 @@ var WebrtcStreamChoiceSchema = object({
27919
28300
  ]).nullable(),
27920
28301
  /** Input FPS from the camera (null for adaptive). */
27921
28302
  inputFps: number().nullable(),
27922
- /** Decoded FPS (null for adaptive). */
27923
- decodeFps: number().nullable(),
27924
28303
  /** Bitrate in kbps (null for adaptive). */
27925
28304
  bitrateKbps: number().nullable()
27926
28305
  });
@@ -28252,6 +28631,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28252
28631
  */
28253
28632
  alive: boolean()
28254
28633
  })), method(object({
28634
+ deviceId: number().int().nonnegative(),
28635
+ sessionId: string(),
28636
+ downlinkMbps: number().nonnegative()
28637
+ }), object({
28638
+ outcome: _enum(["switching", "held"]),
28639
+ tier: CamProfileSchema.nullable(),
28640
+ reason: string()
28641
+ }), { kind: "mutation" }), method(object({
28255
28642
  deviceId: number().int().nonnegative(),
28256
28643
  sessionId: string()
28257
28644
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -32008,7 +32395,7 @@ var LocalInterfaceSchema = object({
32008
32395
  name: string(),
32009
32396
  family: _enum(["IPv4", "IPv6"]),
32010
32397
  address: string(),
32011
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
32398
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
32012
32399
  cidr: string(),
32013
32400
  /** OS netmask. Stable across calls so the SDK can hash on it. */
32014
32401
  netmask: string(),
@@ -32062,7 +32449,9 @@ var ConnectionEndpointSchema = object({
32062
32449
  "lan-ipv4",
32063
32450
  "lan-ipv6",
32064
32451
  "public",
32065
- "loopback"
32452
+ "loopback",
32453
+ "app-link",
32454
+ "custom"
32066
32455
  ]),
32067
32456
  /**
32068
32457
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32131,15 +32520,27 @@ var GetConnectionEndpointsResultSchema = object({
32131
32520
  localPort: AdvertisedLocalPortSchema
32132
32521
  });
32133
32522
  /**
32134
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
32135
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
32136
- * what AUTO currently picks, so the UI can show the effective value either way.
32523
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32524
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
32525
+ * so the UI can show it either way.
32137
32526
  */
32138
32527
  var NotificationEndpointSchema = object({
32139
32528
  /** The operator's explicit choice, or null for AUTO. */
32140
32529
  baseUrl: string().nullable(),
32141
- /** What the ranking currently resolves to (null when nothing is reachable). */
32142
- resolved: string().nullable()
32530
+ /**
32531
+ * The effective flagged address: the explicit choice, else (AUTO) the
32532
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
32533
+ * answered the public tunnel / mesh here, or null.
32534
+ */
32535
+ resolved: string().nullable(),
32536
+ /**
32537
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
32538
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
32539
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
32540
+ * hub advertises neither; the app link is then minted without `hub=`.
32541
+ * Absent on a pre-D709 hub.
32542
+ */
32543
+ appLinkHub: string().nullable()
32143
32544
  });
32144
32545
  /**
32145
32546
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -32152,6 +32553,72 @@ var ViewerEndpointsSchema = object({
32152
32553
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32153
32554
  resolved: array(string()).readonly()
32154
32555
  });
32556
+ /**
32557
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32558
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32559
+ * the `publicEndpoint` role; `override` is the flagged address.
32560
+ */
32561
+ var HubAddressSnapshotSchema = object({
32562
+ override: string().nullable(),
32563
+ resolved: string().nullable(),
32564
+ source: _enum([
32565
+ "override",
32566
+ "auto",
32567
+ "none"
32568
+ ])
32569
+ });
32570
+ var HubAddressesSchema = object({
32571
+ cluster: HubAddressSnapshotSchema,
32572
+ browser: HubAddressSnapshotSchema
32573
+ });
32574
+ /**
32575
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32576
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32577
+ * by at most one address.
32578
+ */
32579
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32580
+ var RoleSourceSchema = _enum([
32581
+ "flagged",
32582
+ "auto",
32583
+ "none"
32584
+ ]);
32585
+ /** One single-valued role: the flagged address, the one in use, and why. */
32586
+ var HubAddressRoleResolutionSchema = object({
32587
+ /** The address carrying the flag, or null = automatic. */
32588
+ flagged: string().nullable(),
32589
+ /** The address in use, or null when nothing qualifies (never loopback). */
32590
+ resolved: string().nullable(),
32591
+ source: RoleSourceSchema
32592
+ });
32593
+ var HubAppConnectionsResolutionSchema = object({
32594
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32595
+ flagged: array(string()).readonly(),
32596
+ /** What the apps race right now. */
32597
+ resolved: array(string()).readonly(),
32598
+ source: RoleSourceSchema
32599
+ });
32600
+ var HubAddressBookSchema = object({
32601
+ rows: array(ConnectionEndpointSchema.extend({
32602
+ /** In the hub's detected palette right now. */
32603
+ detected: boolean(),
32604
+ /** Entered by the operator (removable). */
32605
+ custom: boolean(),
32606
+ /** The roles explicitly flagged on this address. */
32607
+ flags: array(HubAddressRoleSchema).readonly(),
32608
+ /** The roles this address serves right now — flagged or automatic. */
32609
+ inUse: array(HubAddressRoleSchema).readonly(),
32610
+ /** The roles this address may be flagged with. */
32611
+ eligible: array(HubAddressRoleSchema).readonly()
32612
+ })).readonly(),
32613
+ roles: object({
32614
+ appConnections: HubAppConnectionsResolutionSchema,
32615
+ notificationTaps: HubAddressRoleResolutionSchema,
32616
+ internal: HubAddressRoleResolutionSchema,
32617
+ publicEndpoint: HubAddressRoleResolutionSchema
32618
+ }),
32619
+ /** The `hub=` an app link carries (D709), or null. */
32620
+ appLinkHub: string().nullable()
32621
+ });
32155
32622
  var AllowedAddressesSchema = object({
32156
32623
  /**
32157
32624
  * Allowlist of interface addresses operators have explicitly opted
@@ -32193,8 +32660,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32193
32660
  * Pass `'https'` when the caller is itself loaded over HTTPS
32194
32661
  * to avoid mixed-content blocks in the browser. The public
32195
32662
  * tunnel always emits `https://` regardless. */
32196
- scheme: _enum(["http", "https"]).optional()
32197
- }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
32663
+ scheme: _enum(["http", "https"]).optional(),
32664
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32665
+ * an address notification taps can be flagged with, not a hub
32666
+ * route. Default `false`: racers and rankers never see it. */
32667
+ includeAppLink: boolean().optional()
32668
+ }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
32669
+ baseUrl: string(),
32670
+ label: string().max(80)
32671
+ }), HubAddressBookSchema, {
32672
+ kind: "mutation",
32673
+ auth: "admin"
32674
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
32675
+ kind: "mutation",
32676
+ auth: "admin"
32677
+ }), method(object({
32678
+ role: HubAddressRoleSchema,
32679
+ baseUrl: string().nullable(),
32680
+ enabled: boolean(),
32681
+ acceptInsecureHttp: boolean().optional()
32682
+ }), HubAddressBookSchema, {
32683
+ kind: "mutation",
32684
+ auth: "admin"
32685
+ }), method(_void(), HubAddressesSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
32198
32686
  kind: "mutation",
32199
32687
  auth: "admin"
32200
32688
  }), method(object({
@@ -32522,7 +33010,7 @@ var MeshPeerSchema = object({
32522
33010
  tags: array(string()).readonly(),
32523
33011
  /** True when the peer advertises itself as an exit-node candidate. */
32524
33012
  exitNodeOption: boolean(),
32525
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
33013
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
32526
33014
  advertisedRoutes: array(string()).readonly(),
32527
33015
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
32528
33016
  userLogin: string().nullable(),
@@ -32652,7 +33140,8 @@ var MotionStatusSchema = object({
32652
33140
  * writes this slice (not even a boot seed), and neither does the runner's
32653
33141
  * phase machine: its phase is "a session is attached" for every on-motion
32654
33142
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32655
- * A provider's `isDetected` answers from the hub's slice.
33143
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33144
+ * (`hubMotionNativeProvider`).
32656
33145
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32657
33146
  * imports) — the provider pushes both edges itself, from the upstream
32658
33147
  * system's own state change. That is the sensor's own fact.
@@ -33850,7 +34339,13 @@ var OsdStatusSchema = object({ overlays: array(object({
33850
34339
  */
33851
34340
  availablePositions: array(OsdPositionEnum).readonly(),
33852
34341
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
33853
- readOnly: boolean().optional()
34342
+ readOnly: boolean().optional(),
34343
+ /**
34344
+ * Firmware text ceiling for this overlay. Absent = no known limit.
34345
+ * The OSD manager truncates here on every write — never stores its own
34346
+ * copy on the binding.
34347
+ */
34348
+ maxCharacters: number().int().positive().optional()
33854
34349
  })).readonly() });
33855
34350
  var OsdOverlayPatchSchema = object({
33856
34351
  enabled: boolean().optional(),
@@ -33901,7 +34396,9 @@ var OsdTemplateBindingSchema = object({
33901
34396
  valuePath: string().min(1).max(64),
33902
34397
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
33903
34398
  displayUnit: string().max(16).optional(),
33904
- maxDecimals: number().int().min(0).max(4).default(1)
34399
+ maxDecimals: number().int().min(0).max(4).default(1),
34400
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
34401
+ valueMap: record(string(), string()).optional()
33905
34402
  });
33906
34403
  /**
33907
34404
  * A named template: bindings (alias → leaf field) + a parser that
@@ -33951,18 +34448,11 @@ var OsdSlotBindingSchema = object({
33951
34448
  source: OsdSourceSchema,
33952
34449
  /** `${value}` and `${unit}` are substituted; every occurrence. */
33953
34450
  template: string().max(96).default("${value}"),
33954
- /** Truncate with an ellipsis past this length. Absent = no limit. */
33955
- maxCharacters: number().int().min(4).max(64).optional(),
33956
34451
  /**
33957
34452
  * Decimal places for a numeric value. `0` yields an integer — the
33958
34453
  * documented workaround for firmwares that reject `.` in overlay text.
33959
34454
  */
33960
34455
  maxDecimals: number().int().min(0).max(4).default(1),
33961
- /**
33962
- * Appended via `${unit}` when no unit conversion produces a label.
33963
- * Prefer `source.displayUnit` for converted device-state values.
33964
- */
33965
- unitLabel: string().max(8).optional(),
33966
34456
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
33967
34457
  valueMap: record(string(), string()).optional(),
33968
34458
  /** Time windows in which the slot is shown. Absent = always. */
@@ -33971,9 +34461,7 @@ var OsdSlotBindingSchema = object({
33971
34461
  * Display gate, in the notification centre's condition vocabulary.
33972
34462
  * Only the keys reported by `getConditionSupport` are accepted.
33973
34463
  */
33974
- conditions: NcConditionsSchema.optional(),
33975
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
33976
- fallbackText: string().max(64).default("")
34464
+ conditions: NcConditionsSchema.optional()
33977
34465
  });
33978
34466
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
33979
34467
  var OsdSlotViewSchema = object({
@@ -39200,6 +39688,16 @@ var zoneRulesCapability = {
39200
39688
  durability: "restored"
39201
39689
  };
39202
39690
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39691
+ Object.freeze({
39692
+ person: .5,
39693
+ vehicle: .5,
39694
+ animal: .5
39695
+ });
39696
+ Object.freeze({
39697
+ person: .65,
39698
+ vehicle: .65,
39699
+ animal: .65
39700
+ });
39203
39701
  /**
39204
39702
  * Accessory device helpers — shared across drivers.
39205
39703
  *
@@ -42080,90 +42578,18 @@ Object.freeze({
42080
42578
  addonId: null,
42081
42579
  access: "create"
42082
42580
  },
42083
- "decoder.createSession": {
42084
- capName: "decoder",
42085
- capScope: "system",
42086
- addonId: null,
42087
- access: "view"
42088
- },
42089
- "decoder.destroySession": {
42090
- capName: "decoder",
42091
- capScope: "system",
42092
- addonId: null,
42093
- access: "delete"
42094
- },
42095
- "decoder.getFrame": {
42096
- capName: "decoder",
42097
- capScope: "system",
42098
- addonId: null,
42099
- access: "view"
42100
- },
42101
42581
  "decoder.getInfo": {
42102
42582
  capName: "decoder",
42103
42583
  capScope: "system",
42104
42584
  addonId: null,
42105
42585
  access: "view"
42106
42586
  },
42107
- "decoder.getShmStats": {
42108
- capName: "decoder",
42109
- capScope: "system",
42110
- addonId: null,
42111
- access: "view"
42112
- },
42113
- "decoder.getStats": {
42114
- capName: "decoder",
42115
- capScope: "system",
42116
- addonId: null,
42117
- access: "view"
42118
- },
42119
- "decoder.listActiveSessions": {
42120
- capName: "decoder",
42121
- capScope: "system",
42122
- addonId: null,
42123
- access: "view"
42124
- },
42125
- "decoder.openStream": {
42126
- capName: "decoder",
42127
- capScope: "system",
42128
- addonId: null,
42129
- access: "view"
42130
- },
42131
- "decoder.pullFrames": {
42132
- capName: "decoder",
42133
- capScope: "system",
42134
- addonId: null,
42135
- access: "view"
42136
- },
42137
- "decoder.pullHandles": {
42138
- capName: "decoder",
42139
- capScope: "system",
42140
- addonId: null,
42141
- access: "view"
42142
- },
42143
- "decoder.pushPacket": {
42144
- capName: "decoder",
42145
- capScope: "system",
42146
- addonId: null,
42147
- access: "view"
42148
- },
42149
42587
  "decoder.reprobeHwaccel": {
42150
42588
  capName: "decoder",
42151
42589
  capScope: "system",
42152
42590
  addonId: null,
42153
42591
  access: "create"
42154
42592
  },
42155
- "decoder.supportsCodec": {
42156
- capName: "decoder",
42157
- capScope: "system",
42158
- addonId: null,
42159
- access: "view"
42160
- },
42161
- "decoder.updateConfig": {
42162
- capName: "decoder",
42163
- capScope: "system",
42164
- addonId: null,
42165
- access: "view"
42166
- },
42167
42593
  "detectionPipeline.applyDeviceSettingsPatch": {
42168
42594
  capName: "detection-pipeline",
42169
42595
  capScope: "device",
@@ -43652,12 +44078,24 @@ Object.freeze({
43652
44078
  addonId: null,
43653
44079
  access: "view"
43654
44080
  },
44081
+ "localNetwork.addCustomAddress": {
44082
+ capName: "local-network",
44083
+ capScope: "system",
44084
+ addonId: null,
44085
+ access: "create"
44086
+ },
43655
44087
  "localNetwork.downloadCa": {
43656
44088
  capName: "local-network",
43657
44089
  capScope: "system",
43658
44090
  addonId: null,
43659
44091
  access: "view"
43660
44092
  },
44093
+ "localNetwork.getAddresses": {
44094
+ capName: "local-network",
44095
+ capScope: "system",
44096
+ addonId: null,
44097
+ access: "view"
44098
+ },
43661
44099
  "localNetwork.getAllowedAddresses": {
43662
44100
  capName: "local-network",
43663
44101
  capScope: "system",
@@ -43670,6 +44108,12 @@ Object.freeze({
43670
44108
  addonId: null,
43671
44109
  access: "view"
43672
44110
  },
44111
+ "localNetwork.getHubAddresses": {
44112
+ capName: "local-network",
44113
+ capScope: "system",
44114
+ addonId: null,
44115
+ access: "view"
44116
+ },
43673
44117
  "localNetwork.getNotificationEndpoint": {
43674
44118
  capName: "local-network",
43675
44119
  capScope: "system",
@@ -43706,6 +44150,12 @@ Object.freeze({
43706
44150
  addonId: null,
43707
44151
  access: "create"
43708
44152
  },
44153
+ "localNetwork.removeCustomAddress": {
44154
+ capName: "local-network",
44155
+ capScope: "system",
44156
+ addonId: null,
44157
+ access: "delete"
44158
+ },
43709
44159
  "localNetwork.resetAllowlistToBestMatch": {
43710
44160
  capName: "local-network",
43711
44161
  capScope: "system",
@@ -43718,6 +44168,12 @@ Object.freeze({
43718
44168
  addonId: null,
43719
44169
  access: "create"
43720
44170
  },
44171
+ "localNetwork.setAddressRole": {
44172
+ capName: "local-network",
44173
+ capScope: "system",
44174
+ addonId: null,
44175
+ access: "create"
44176
+ },
43721
44177
  "localNetwork.setAllowedAddresses": {
43722
44178
  capName: "local-network",
43723
44179
  capScope: "system",
@@ -45212,13 +45668,13 @@ Object.freeze({
45212
45668
  addonId: null,
45213
45669
  access: "delete"
45214
45670
  },
45215
- "pipelineExecutor.deleteModel": {
45671
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45216
45672
  capName: "pipeline-executor",
45217
45673
  capScope: "system",
45218
45674
  addonId: null,
45219
45675
  access: "delete"
45220
45676
  },
45221
- "pipelineExecutor.deleteTemplate": {
45677
+ "pipelineExecutor.deleteModel": {
45222
45678
  capName: "pipeline-executor",
45223
45679
  capScope: "system",
45224
45680
  addonId: null,
@@ -45362,12 +45818,6 @@ Object.freeze({
45362
45818
  addonId: null,
45363
45819
  access: "view"
45364
45820
  },
45365
- "pipelineExecutor.listTemplates": {
45366
- capName: "pipeline-executor",
45367
- capScope: "system",
45368
- addonId: null,
45369
- access: "view"
45370
- },
45371
45821
  "pipelineExecutor.rearmInferenceDevice": {
45372
45822
  capName: "pipeline-executor",
45373
45823
  capScope: "system",
@@ -45392,12 +45842,6 @@ Object.freeze({
45392
45842
  addonId: null,
45393
45843
  access: "create"
45394
45844
  },
45395
- "pipelineExecutor.saveTemplate": {
45396
- capName: "pipeline-executor",
45397
- capScope: "system",
45398
- addonId: null,
45399
- access: "create"
45400
- },
45401
45845
  "pipelineExecutor.setVideoPipelineSteps": {
45402
45846
  capName: "pipeline-executor",
45403
45847
  capScope: "system",
@@ -45416,41 +45860,35 @@ Object.freeze({
45416
45860
  addonId: null,
45417
45861
  access: "create"
45418
45862
  },
45419
- "pipelineExecutor.updateTemplate": {
45420
- capName: "pipeline-executor",
45421
- capScope: "system",
45422
- addonId: null,
45423
- access: "create"
45424
- },
45425
45863
  "pipelineExecutor.validatePipeline": {
45426
45864
  capName: "pipeline-executor",
45427
45865
  capScope: "system",
45428
45866
  addonId: null,
45429
45867
  access: "view"
45430
45868
  },
45431
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
45869
+ "pipelineOrchestrator.applyAutoTune": {
45432
45870
  capName: "pipeline-orchestrator",
45433
45871
  capScope: "system",
45434
45872
  addonId: null,
45435
45873
  access: "create"
45436
45874
  },
45437
- "pipelineOrchestrator.assignAudio": {
45875
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45438
45876
  capName: "pipeline-orchestrator",
45439
45877
  capScope: "system",
45440
45878
  addonId: null,
45441
45879
  access: "create"
45442
45880
  },
45443
- "pipelineOrchestrator.assignPipeline": {
45881
+ "pipelineOrchestrator.assignAudio": {
45444
45882
  capName: "pipeline-orchestrator",
45445
45883
  capScope: "system",
45446
45884
  addonId: null,
45447
45885
  access: "create"
45448
45886
  },
45449
- "pipelineOrchestrator.deleteTemplate": {
45887
+ "pipelineOrchestrator.assignPipeline": {
45450
45888
  capName: "pipeline-orchestrator",
45451
45889
  capScope: "system",
45452
45890
  addonId: null,
45453
- access: "delete"
45891
+ access: "create"
45454
45892
  },
45455
45893
  "pipelineOrchestrator.getAgentLoad": {
45456
45894
  capName: "pipeline-orchestrator",
@@ -45542,6 +45980,12 @@ Object.freeze({
45542
45980
  addonId: null,
45543
45981
  access: "view"
45544
45982
  },
45983
+ "pipelineOrchestrator.getEffectiveShares": {
45984
+ capName: "pipeline-orchestrator",
45985
+ capScope: "system",
45986
+ addonId: null,
45987
+ access: "view"
45988
+ },
45545
45989
  "pipelineOrchestrator.getGlobalMetrics": {
45546
45990
  capName: "pipeline-orchestrator",
45547
45991
  capScope: "system",
@@ -45578,19 +46022,19 @@ Object.freeze({
45578
46022
  addonId: null,
45579
46023
  access: "view"
45580
46024
  },
45581
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46025
+ "pipelineOrchestrator.getPlacementStats": {
45582
46026
  capName: "pipeline-orchestrator",
45583
46027
  capScope: "system",
45584
46028
  addonId: null,
45585
46029
  access: "view"
45586
46030
  },
45587
- "pipelineOrchestrator.listAgentSettings": {
46031
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45588
46032
  capName: "pipeline-orchestrator",
45589
46033
  capScope: "system",
45590
46034
  addonId: null,
45591
46035
  access: "view"
45592
46036
  },
45593
- "pipelineOrchestrator.listTemplates": {
46037
+ "pipelineOrchestrator.listAgentSettings": {
45594
46038
  capName: "pipeline-orchestrator",
45595
46039
  capScope: "system",
45596
46040
  addonId: null,
@@ -45602,6 +46046,12 @@ Object.freeze({
45602
46046
  addonId: null,
45603
46047
  access: "create"
45604
46048
  },
46049
+ "pipelineOrchestrator.planAutoTune": {
46050
+ capName: "pipeline-orchestrator",
46051
+ capScope: "system",
46052
+ addonId: null,
46053
+ access: "view"
46054
+ },
45605
46055
  "pipelineOrchestrator.rebalance": {
45606
46056
  capName: "pipeline-orchestrator",
45607
46057
  capScope: "system",
@@ -45644,12 +46094,6 @@ Object.freeze({
45644
46094
  addonId: null,
45645
46095
  access: "create"
45646
46096
  },
45647
- "pipelineOrchestrator.saveTemplate": {
45648
- capName: "pipeline-orchestrator",
45649
- capScope: "system",
45650
- addonId: null,
45651
- access: "create"
45652
- },
45653
46097
  "pipelineOrchestrator.setAgentCapabilities": {
45654
46098
  capName: "pipeline-orchestrator",
45655
46099
  capScope: "system",
@@ -45662,12 +46106,6 @@ Object.freeze({
45662
46106
  addonId: null,
45663
46107
  access: "create"
45664
46108
  },
45665
- "pipelineOrchestrator.setAgentDetectWeight": {
45666
- capName: "pipeline-orchestrator",
45667
- capScope: "system",
45668
- addonId: null,
45669
- access: "create"
45670
- },
45671
46109
  "pipelineOrchestrator.setAgentInferenceDevices": {
45672
46110
  capName: "pipeline-orchestrator",
45673
46111
  capScope: "system",
@@ -45704,6 +46142,12 @@ Object.freeze({
45704
46142
  addonId: null,
45705
46143
  access: "create"
45706
46144
  },
46145
+ "pipelineOrchestrator.setCameraStepSettings": {
46146
+ capName: "pipeline-orchestrator",
46147
+ capScope: "system",
46148
+ addonId: null,
46149
+ access: "create"
46150
+ },
45707
46151
  "pipelineOrchestrator.setCameraStepToggle": {
45708
46152
  capName: "pipeline-orchestrator",
45709
46153
  capScope: "system",
@@ -45722,25 +46166,37 @@ Object.freeze({
45722
46166
  addonId: null,
45723
46167
  access: "create"
45724
46168
  },
46169
+ "pipelineOrchestrator.setLoadBalancingShares": {
46170
+ capName: "pipeline-orchestrator",
46171
+ capScope: "system",
46172
+ addonId: null,
46173
+ access: "create"
46174
+ },
45725
46175
  "pipelineOrchestrator.setPipelineDevicePin": {
45726
46176
  capName: "pipeline-orchestrator",
45727
46177
  capScope: "system",
45728
46178
  addonId: null,
45729
46179
  access: "create"
45730
46180
  },
45731
- "pipelineOrchestrator.unassignAudio": {
46181
+ "pipelineOrchestrator.setShareSource": {
45732
46182
  capName: "pipeline-orchestrator",
45733
46183
  capScope: "system",
45734
46184
  addonId: null,
45735
46185
  access: "create"
45736
46186
  },
45737
- "pipelineOrchestrator.unassignPipeline": {
46187
+ "pipelineOrchestrator.suggestShares": {
46188
+ capName: "pipeline-orchestrator",
46189
+ capScope: "system",
46190
+ addonId: null,
46191
+ access: "view"
46192
+ },
46193
+ "pipelineOrchestrator.unassignAudio": {
45738
46194
  capName: "pipeline-orchestrator",
45739
46195
  capScope: "system",
45740
46196
  addonId: null,
45741
46197
  access: "create"
45742
46198
  },
45743
- "pipelineOrchestrator.updateTemplate": {
46199
+ "pipelineOrchestrator.unassignPipeline": {
45744
46200
  capName: "pipeline-orchestrator",
45745
46201
  capScope: "system",
45746
46202
  addonId: null,
@@ -47180,12 +47636,6 @@ Object.freeze({
47180
47636
  addonId: null,
47181
47637
  access: "view"
47182
47638
  },
47183
- "streamBroker.pullFrameHandles": {
47184
- capName: "stream-broker",
47185
- capScope: "system",
47186
- addonId: null,
47187
- access: "view"
47188
- },
47189
47639
  "streamBroker.regenerateRtspToken": {
47190
47640
  capName: "stream-broker",
47191
47641
  capScope: "system",
@@ -47252,12 +47702,6 @@ Object.freeze({
47252
47702
  addonId: null,
47253
47703
  access: "create"
47254
47704
  },
47255
- "streamBroker.subscribeFrames": {
47256
- capName: "stream-broker",
47257
- capScope: "system",
47258
- addonId: null,
47259
- access: "create"
47260
- },
47261
47705
  "streamBroker.unassignProfile": {
47262
47706
  capName: "stream-broker",
47263
47707
  capScope: "system",
@@ -47270,12 +47714,6 @@ Object.freeze({
47270
47714
  addonId: null,
47271
47715
  access: "create"
47272
47716
  },
47273
- "streamBroker.unsubscribeFrames": {
47274
- capName: "stream-broker",
47275
- capScope: "system",
47276
- addonId: null,
47277
- access: "create"
47278
- },
47279
47717
  "streamCatalog.getCatalog": {
47280
47718
  capName: "stream-catalog",
47281
47719
  capScope: "device",
@@ -47972,6 +48410,12 @@ Object.freeze({
47972
48410
  addonId: null,
47973
48411
  access: "create"
47974
48412
  },
48413
+ "webrtcSession.applyDownlinkProbe": {
48414
+ capName: "webrtc-session",
48415
+ capScope: "device",
48416
+ addonId: null,
48417
+ access: "create"
48418
+ },
47975
48419
  "webrtcSession.closeSession": {
47976
48420
  capName: "webrtc-session",
47977
48421
  capScope: "device",
@@ -49783,11 +50227,6 @@ Object.freeze({
49783
50227
  form: "single",
49784
50228
  optional: false
49785
50229
  }],
49786
- "decoder.createSession": [{
49787
- name: "deviceId",
49788
- form: "single",
49789
- optional: true
49790
- }],
49791
50230
  "detectionPipeline.applyDeviceSettingsPatch": [{
49792
50231
  name: "deviceId",
49793
50232
  form: "single",
@@ -51018,6 +51457,11 @@ Object.freeze({
51018
51457
  form: "single",
51019
51458
  optional: false
51020
51459
  }],
51460
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51461
+ name: "deviceIds",
51462
+ form: "array",
51463
+ optional: true
51464
+ }],
51021
51465
  "pipelineExecutor.runPipeline": [{
51022
51466
  name: "deviceId",
51023
51467
  form: "single",
@@ -51123,6 +51567,11 @@ Object.freeze({
51123
51567
  form: "single",
51124
51568
  optional: false
51125
51569
  }],
51570
+ "pipelineOrchestrator.setCameraStepSettings": [{
51571
+ name: "deviceId",
51572
+ form: "single",
51573
+ optional: false
51574
+ }],
51126
51575
  "pipelineOrchestrator.setCameraStepToggle": [{
51127
51576
  name: "deviceId",
51128
51577
  form: "single",
@@ -51894,6 +52343,11 @@ Object.freeze({
51894
52343
  form: "single",
51895
52344
  optional: false
51896
52345
  }],
52346
+ "webrtcSession.applyDownlinkProbe": [{
52347
+ name: "deviceId",
52348
+ form: "single",
52349
+ optional: false
52350
+ }],
51897
52351
  "webrtcSession.closeSession": [{
51898
52352
  name: "deviceId",
51899
52353
  form: "single",
@@ -52123,6 +52577,8 @@ new Map(Object.entries({
52123
52577
  "detection-blind": "device-events",
52124
52578
  "node-online": "system",
52125
52579
  "node-offline": "system",
52580
+ "node-restarting": "system",
52581
+ "node-updating": "system",
52126
52582
  "node-inference-unavailable": "system",
52127
52583
  "addon-crash-loop": "system",
52128
52584
  "addon-update-available": "system",
@@ -52200,18 +52656,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52200
52656
  kinds: [
52201
52657
  "node-offline",
52202
52658
  "node-online",
52659
+ "node-restarting",
52203
52660
  "node-inference-unavailable"
52204
52661
  ]
52205
52662
  },
52206
52663
  {
52207
52664
  id: "addons",
52208
52665
  family: "system",
52209
- label: "Addons",
52210
- kinds: [
52211
- "addon-crash-loop",
52212
- "addon-update-available",
52213
- "addon-updated"
52214
- ]
52666
+ label: "Addons stopped",
52667
+ kinds: ["addon-crash-loop"]
52668
+ },
52669
+ {
52670
+ id: "addon-updates",
52671
+ family: "system",
52672
+ label: "Addon updates",
52673
+ kinds: ["addon-update-available", "addon-updated"]
52215
52674
  },
52216
52675
  {
52217
52676
  id: "updates",
@@ -52219,6 +52678,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52219
52678
  label: "Server & container updates",
52220
52679
  kinds: [
52221
52680
  "server-update-available",
52681
+ "node-updating",
52222
52682
  "server-updated",
52223
52683
  "wrapper-update-available"
52224
52684
  ]
@@ -52366,18 +52826,21 @@ var STATE_SUMMARY_SECTION_VARS = [
52366
52826
  kinds: [
52367
52827
  "node-offline",
52368
52828
  "node-online",
52829
+ "node-restarting",
52369
52830
  "node-inference-unavailable"
52370
52831
  ]
52371
52832
  },
52372
52833
  {
52373
52834
  name: "summaryAddons",
52374
- label: "Summary: addons",
52375
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
52376
- kinds: [
52377
- "addon-crash-loop",
52378
- "addon-update-available",
52379
- "addon-updated"
52380
- ]
52835
+ label: "Summary: addons stopped",
52836
+ example: "hub — recorder stopped after repeated crashes",
52837
+ kinds: ["addon-crash-loop"]
52838
+ },
52839
+ {
52840
+ name: "summaryAddonUpdates",
52841
+ label: "Summary: addon updates",
52842
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
52843
+ kinds: ["addon-update-available", "addon-updated"]
52381
52844
  },
52382
52845
  {
52383
52846
  name: "summaryUpdates",
@@ -52385,6 +52848,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52385
52848
  example: "server 1.2.377 → 1.2.378",
52386
52849
  kinds: [
52387
52850
  "server-update-available",
52851
+ "node-updating",
52388
52852
  "server-updated",
52389
52853
  "wrapper-update-available"
52390
52854
  ]
@@ -52417,7 +52881,7 @@ var STATE_SUMMARY_VARS = [
52417
52881
  {
52418
52882
  name: "summarySection",
52419
52883
  label: "Summary: this section",
52420
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
52884
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52421
52885
  example: "Batterie scariche",
52422
52886
  group: "system",
52423
52887
  families: ["rule"],
@@ -52461,6 +52925,7 @@ var STATE_SUMMARY_VARS = [
52461
52925
  [...RULE_BODY_ONLY],
52462
52926
  [...RULE_TEXT],
52463
52927
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
52928
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
52464
52929
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
52465
52930
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
52466
52931
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -52501,6 +52966,8 @@ var STATE_SUMMARY_VARS = [
52501
52966
  [...RULE_TEXT],
52502
52967
  [...RULE_TEXT],
52503
52968
  [...RULE_TEXT],
52969
+ [...RULE_TEXT],
52970
+ [...RULE_TEXT],
52504
52971
  ...STATE_SUMMARY_VARS
52505
52972
  ];
52506
52973
  new Set([
@@ -58928,7 +59395,7 @@ function buildConnectionFormSchema() {
58928
59395
  type: "text",
58929
59396
  key: "host",
58930
59397
  label: "Gateway host / IP",
58931
- placeholder: "192.168.x.x",
59398
+ placeholder: "192.168.10.50",
58932
59399
  showWhen: {
58933
59400
  field: "transport",
58934
59401
  equals: "local"
@@ -59010,21 +59477,21 @@ function slugifyHost(value) {
59010
59477
  * Extra per-scan inputs for Ecowitt network discovery. Mirrors Gree's scan form. On a flat network,
59011
59478
  * leave blank to sweep the addon node's local subnet. To reach gateways on OTHER subnets, list one or
59012
59479
  * more directed broadcast addresses, gateway IPs, or CIDRs (comma / newline separated) — each is
59013
- * swept independently and the responders are merged. A directed broadcast (e.g. 192.168.x.x) or a
59480
+ * swept independently and the responders are merged. A directed broadcast (e.g. 192.168.20.255) or a
59014
59481
  * unicast gateway IP both work because the `CMD_BROADCAST` probe answers a unicast just as well.
59015
59482
  */
59016
59483
  function buildDiscoveryParamsFormSchema() {
59017
59484
  return { sections: [{
59018
59485
  id: "scan",
59019
59486
  title: "Scan options",
59020
- description: "Leave empty to scan the local subnet. To scan other subnets, list their broadcast addresses (e.g. 192.168.x.x), gateway IPs (e.g. 192.168.x.x), or CIDRs (e.g. 192.168.x.x/24) — comma or newline separated. Each subnet is swept independently and unreachable ones are skipped.",
59487
+ description: "Leave empty to scan the local subnet. To scan other subnets, list their broadcast addresses (e.g. 192.168.20.255), gateway IPs (e.g. 192.168.20.181), or CIDRs (e.g. 192.168.20.0/24) — comma or newline separated. Each subnet is swept independently and unreachable ones are skipped.",
59021
59488
  columns: 1,
59022
59489
  fields: [{
59023
59490
  type: "text",
59024
59491
  key: "broadcastAddress",
59025
59492
  label: "Broadcast addresses / gateway IPs / CIDRs",
59026
59493
  required: false,
59027
- placeholder: "192.168.x.x, 192.168.x.x/24"
59494
+ placeholder: "192.168.20.255, 192.168.30.0/24"
59028
59495
  }, {
59029
59496
  type: "number",
59030
59497
  key: "timeoutMs",
@@ -59198,8 +59665,8 @@ function parseIpv4(value) {
59198
59665
  ];
59199
59666
  }
59200
59667
  /**
59201
- * Convert an IPv4 CIDR (e.g. `192.168.x.x/24`) into its directed broadcast address
59202
- * (`192.168.x.x`) — the address `Ecowitt.discover` sweeps to reach a foreign subnet. Returns
59668
+ * Convert an IPv4 CIDR (e.g. `192.0.2.0/24`) into its directed broadcast address
59669
+ * (`192.0.2.255`) — the address `Ecowitt.discover` sweeps to reach a foreign subnet. Returns
59203
59670
  * `null` for anything that is not a well-formed IPv4 CIDR (a bare IP, garbage, or an out-of-range
59204
59671
  * prefix), so the caller can treat the input as a literal broadcast/gateway address instead.
59205
59672
  */
@@ -59223,8 +59690,8 @@ function cidrToBroadcast(value) {
59223
59690
  * Parse the operator scan input into a de-duplicated, ordered list of directed broadcast targets.
59224
59691
  *
59225
59692
  * Accepts a free-form string of comma / newline / whitespace separated tokens where each token is
59226
- * either a broadcast address (`192.168.x.x`), a bare gateway IP (`192.168.x.x` — the
59227
- * `CMD_BROADCAST` probe answers a unicast too), or a CIDR (`192.168.x.x/24`, expanded to its
59693
+ * either a broadcast address (`192.0.2.255`), a bare gateway IP (`192.0.2.10` — the
59694
+ * `CMD_BROADCAST` probe answers a unicast too), or a CIDR (`192.0.2.0/24`, expanded to its
59228
59695
  * directed broadcast). Blank input yields an empty list, meaning "sweep the local subnet only".
59229
59696
  * Invalid tokens are dropped rather than throwing — discovery input is best-effort.
59230
59697
  */