@camstack/addon-provider-homematic 1.2.125 → 1.2.127

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 +1000 -533
  2. package/dist/addon.mjs +1000 -533
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -9,7 +9,7 @@ import { join } from "path";
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
- //#region ../types/dist/event-category-BGmz_oxW.mjs
12
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -510,15 +510,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
510
510
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
511
511
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
512
512
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
513
- /**
514
- * Per-agent hwaccel preference changed (user override set, cleared, or
515
- * re-probed). Observability event — decoders pull the current pref at
516
- * `createSession`, so running sessions keep their current backend until
517
- * they rotate naturally (camera add/remove, stream restart). Future
518
- * work can wire a listener in stream-broker that force-rotates live
519
- * sessions; for now this event powers logs + admin-UI toast feedback.
520
- */
521
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
522
513
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
523
514
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
524
515
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5389,7 +5380,7 @@ var ZodIssueCode = {
5389
5380
  var ZodFirstPartyTypeKind;
5390
5381
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5391
5382
  //#endregion
5392
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5383
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5393
5384
  /**
5394
5385
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5395
5386
  * window to float samples (D455).
@@ -6755,32 +6746,12 @@ object({
6755
6746
  audioCodec: string().optional(),
6756
6747
  metadata: record(string(), unknown()).readonly().optional()
6757
6748
  });
6758
- var EncodedPacketSchema = object({
6759
- type: _enum(["video", "audio"]),
6760
- data: _instanceof(Uint8Array),
6761
- pts: number(),
6762
- dts: number(),
6763
- keyframe: boolean(),
6764
- codec: string()
6765
- });
6766
- var DecodedFrameSchema = object({
6767
- data: _instanceof(Uint8Array),
6768
- width: number(),
6769
- height: number(),
6770
- format: _enum([
6771
- "jpeg",
6772
- "rgb",
6773
- "bgr",
6774
- "yuv420",
6775
- "gray"
6776
- ]),
6777
- timestamp: number()
6778
- });
6779
6749
  /**
6780
6750
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6781
6751
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6782
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6783
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6752
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6753
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6754
+ * over tRPC / Moleculer.
6784
6755
  *
6785
6756
  * The `satisfies` assertion below pins this schema to the interface: if a
6786
6757
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6806,50 +6777,6 @@ var FrameHandleSchema = object({
6806
6777
  slotCount: number().int().positive()
6807
6778
  });
6808
6779
  /**
6809
- * Pixel format a frame-handle subscriber can request from the broker
6810
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6811
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6812
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6813
- * payload, and no decoded-frame consumer requests it over the shm plane.
6814
- */
6815
- var FrameHandleFormatSchema = _enum([
6816
- "rgb",
6817
- "bgr",
6818
- "yuv420",
6819
- "gray"
6820
- ]);
6821
- /**
6822
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6823
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6824
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6825
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6826
- * they asked for with no broker-side conversion.
6827
- */
6828
- var SubscribeFramesInputSchema = object({
6829
- brokerId: string(),
6830
- format: FrameHandleFormatSchema,
6831
- /**
6832
- * Optional reader-side cadence hint in frames per second. The broker does
6833
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6834
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6835
- * the consumer can pace its own `pullFrameHandles` polling.
6836
- */
6837
- maxFps: number().positive().optional(),
6838
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6839
- tag: string().optional()
6840
- });
6841
- /**
6842
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6843
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6844
- * `FrameHandle` to a `FrameRingReader`.
6845
- */
6846
- var SubscribeFramesResultSchema = object({
6847
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6848
- subscriptionId: string(),
6849
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6850
- maxFps: number().nonnegative()
6851
- });
6852
- /**
6853
6780
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6854
6781
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6855
6782
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6857,8 +6784,8 @@ var SubscribeFramesResultSchema = object({
6857
6784
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6858
6785
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6859
6786
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6860
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6861
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6787
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6788
+ * it.
6862
6789
  */
6863
6790
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6864
6791
  var DecodedAudioChunkSchema = object({
@@ -6876,11 +6803,10 @@ var DecodedAudioChunkSchema = object({
6876
6803
  format: AudioChunkFormatSchema.optional()
6877
6804
  });
6878
6805
  /**
6879
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6880
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6881
- * asks the broker for the decoded audio-chunk stream of one broker; the
6882
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6883
- * `pullAudioChunks`.
6806
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6807
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6808
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6809
+ * the consumer drains via `pullAudioChunks`.
6884
6810
  */
6885
6811
  var SubscribeAudioChunksInputSchema = object({
6886
6812
  brokerId: string(),
@@ -6911,9 +6837,7 @@ var BrokerStatsSchema = object({
6911
6837
  "stopped"
6912
6838
  ]),
6913
6839
  inputFps: number(),
6914
- decodeFps: number(),
6915
6840
  encodedSubscribers: number(),
6916
- decodedSubscribers: number(),
6917
6841
  uptimeMs: number(),
6918
6842
  bitrateKbps: number(),
6919
6843
  idrIntervalMs: number(),
@@ -6926,14 +6850,6 @@ var BrokerStatsSchema = object({
6926
6850
  preBufferMs: number(),
6927
6851
  preBufferPackets: number(),
6928
6852
  /**
6929
- * Moleculer node id of the decoder provider currently servicing this
6930
- * stream's decoded subscribers. `null` until the deferred decoder is
6931
- * created (no decoded clients yet, or codec not detected). Surfaces the
6932
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6933
- * a separate cap call per broker.
6934
- */
6935
- decoderNodeId: string().nullable(),
6936
- /**
6937
6853
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6938
6854
  * when the stream has no audio track or the broker is in cold start.
6939
6855
  * `supported = false` means the codec was detected but the local
@@ -10269,70 +10185,6 @@ var StorageLocationDeclarationSchema = object({
10269
10185
  "backup"
10270
10186
  ]).optional()
10271
10187
  });
10272
- var DecoderStatsSchema = object({
10273
- inputFps: number(),
10274
- outputFps: number(),
10275
- avgDecodeTimeMs: number(),
10276
- droppedFrames: number(),
10277
- /**
10278
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10279
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10280
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10281
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10282
- */
10283
- lagMs: number().optional(),
10284
- effectiveFps: number().optional(),
10285
- adaptiveFps: number().optional()
10286
- });
10287
- var DecoderSessionConfigSchema = object({
10288
- codec: string(),
10289
- maxFps: number().default(0),
10290
- outputFormat: _enum([
10291
- "jpeg",
10292
- "rgb",
10293
- "bgr",
10294
- "yuv420",
10295
- "gray"
10296
- ]).default("jpeg"),
10297
- scale: number().default(1),
10298
- width: number().optional(),
10299
- height: number().optional(),
10300
- /**
10301
- * Identifier of the camera this decoder session serves. Optional
10302
- * because the cap is generic (any caller could request decode), but
10303
- * stream-broker passes it so decoder logs include `deviceId` for
10304
- * per-camera filtering when diagnosing failures (e.g. node-av
10305
- * sendPacket errors on a single hung camera).
10306
- */
10307
- deviceId: number().int().nonnegative().optional(),
10308
- /**
10309
- * Free-form tag for log scoping. Stream-broker uses
10310
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10311
- * on every line so `grep tag=broker:5/high` filters one camera
10312
- * profile cleanly.
10313
- */
10314
- tag: string().optional(),
10315
- /**
10316
- * Where the session delivers decoded frames (Phase 5 / D9):
10317
- *
10318
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10319
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10320
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10321
- * into an OS shared-memory ring and drained as zero-pixel
10322
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10323
- * other — `pullFrames` returns nothing for an `'shm'` session and
10324
- * `pullHandles` returns nothing for a `'callback'` session.
10325
- */
10326
- frameSink: _enum(["callback", "shm"]).default("callback"),
10327
- /**
10328
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10329
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10330
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10331
- * stream-broker's `streamingDebug` gate — off by default so production logs
10332
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10333
- */
10334
- debug: boolean().optional()
10335
- });
10336
10188
  /**
10337
10189
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10338
10190
  * an addon declares its channels in.
@@ -10475,6 +10327,26 @@ var ClipSearchStrictnessSchema = _enum([
10475
10327
  "balanced",
10476
10328
  "strict"
10477
10329
  ]);
10330
+ /** Steps whose effect a root label can BE. */
10331
+ var LABEL_SUPPLY_STEP_IDS = [
10332
+ "animal-classifier",
10333
+ "vehicle-classifier",
10334
+ "package-detection"
10335
+ ];
10336
+ /** Steps whose box a root detection can BE. */
10337
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10338
+ /**
10339
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10340
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10341
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10342
+ * no camera tree carries.)
10343
+ */
10344
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10345
+ [
10346
+ ...LABEL_SUPPLY_STEP_IDS,
10347
+ ...CROP_SUPPLY_STEP_IDS,
10348
+ ...MASK_SUPPLY_STEP_IDS
10349
+ ];
10478
10350
  var MODEL_FORMATS = [
10479
10351
  "onnx",
10480
10352
  "coreml",
@@ -10503,7 +10375,53 @@ var ModelFormatEntrySchema = object({
10503
10375
  /** Multi-file payload (directory members or sibling files). */
10504
10376
  files: array(string()).readonly().optional(),
10505
10377
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10506
- runtimes: array(_enum(["python"])).readonly().optional()
10378
+ runtimes: array(_enum(["python"])).readonly().optional(),
10379
+ /**
10380
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10381
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10382
+ * weight file) comes from the downloader's generated table, kept in step
10383
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10384
+ * node records the revision it downloaded next to the file
10385
+ * (`<file>.revision`); a copy with no record or a different one is stale
10386
+ * unless its weight file hashes to the revision, and a stale copy is
10387
+ * downloaded again, the old one serving until the new one is complete. No
10388
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10389
+ */
10390
+ revision: string().min(1).optional()
10391
+ });
10392
+ /**
10393
+ * What a node holds for one (model, format) (D746). `current` is a complete
10394
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10395
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10396
+ * no or a different revision record, or a missing sibling. `missing` is no
10397
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10398
+ * reclaimable bytes and a copy about to be replaced.
10399
+ */
10400
+ var ModelOnDiskStateSchema = _enum([
10401
+ "current",
10402
+ "stale",
10403
+ "missing"
10404
+ ]);
10405
+ /**
10406
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10407
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10408
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10409
+ */
10410
+ var ModelFormatPrecisionSchema = _enum([
10411
+ "fp32",
10412
+ "fp16",
10413
+ "int8"
10414
+ ]);
10415
+ /**
10416
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10417
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10418
+ * them omits them, and a reader falls back to `downloaded`.
10419
+ */
10420
+ var PipelineModelFormatStatusSchema = object({
10421
+ downloaded: boolean(),
10422
+ sizeMB: number(),
10423
+ onDisk: ModelOnDiskStateSchema.optional(),
10424
+ precision: ModelFormatPrecisionSchema.optional()
10507
10425
  });
10508
10426
  /**
10509
10427
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10544,11 +10462,11 @@ var ModelVariantGroupSchema = object({
10544
10462
  /** Quantization axis. Omit ⇒ the fp32 base build. */
10545
10463
  precision: _enum(["fp32", "int8"]).optional(),
10546
10464
  /**
10547
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
10548
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
10549
- * future performance variants plug into.
10465
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
10466
+ * an alternate training of the same family (Scrypted `relu_test`); chip
10467
+ * label is "Test".
10550
10468
  */
10551
- optimization: _enum(["standard", "fast"]).optional(),
10469
+ optimization: _enum(["standard", "test"]).optional(),
10552
10470
  /**
10553
10471
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
10554
10472
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -10571,9 +10489,10 @@ var ModelProviderIdSchema = _enum([
10571
10489
  * are per upstream. A persisted custom-model row written when this field was a
10572
10490
  * string still parses — the string is lifted into `{ weights }`.
10573
10491
  *
10574
- * Every licence surface (the admin "Models and licenses" page,
10575
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
10576
- * these records by `scripts/gen-model-licenses.ts` (D661).
10492
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
10493
+ * model table) is GENERATED from these records by
10494
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
10495
+ * `camstack/docs` → `/docs/detection/models`.
10577
10496
  */
10578
10497
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
10579
10498
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -10606,6 +10525,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10606
10525
  /** True when the weights or their data forbid commercial use. */
10607
10526
  nonCommercial: boolean().optional()
10608
10527
  }));
10528
+ /**
10529
+ * One step a ROOT detector can supply from its own output (D730) — see
10530
+ * `ModelCatalogEntry.suppliesSteps`.
10531
+ *
10532
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10533
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10534
+ * the root cannot produce (shown as unavailable, never a blocker).
10535
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10536
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10537
+ * child of the `parentMacro` detection that contains it — never a track.
10538
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10539
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10540
+ * detection in the shape that step produces. Derived from the model's
10541
+ * postprocessor on read, never stored by an import.
10542
+ */
10543
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10544
+ object({
10545
+ kind: literal("label"),
10546
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10547
+ labelToEffect: record(string(), string()),
10548
+ uncovered: array(string()).readonly()
10549
+ }),
10550
+ object({
10551
+ kind: literal("crop"),
10552
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10553
+ rootLabels: array(string()).readonly(),
10554
+ parentMacro: _enum(["vehicle", "person"]),
10555
+ childClass: _enum(["plate", "face"]),
10556
+ /**
10557
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10558
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10559
+ * stored by an import.
10560
+ */
10561
+ rootInputPx: number().int().positive().optional()
10562
+ }),
10563
+ object({
10564
+ kind: literal("mask"),
10565
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10566
+ })
10567
+ ]);
10609
10568
  var ModelCatalogEntrySchema = object({
10610
10569
  id: string(),
10611
10570
  name: string(),
@@ -10671,6 +10630,35 @@ var ModelCatalogEntrySchema = object({
10671
10630
  */
10672
10631
  defaultConfidence: number().min(0).max(1).optional(),
10673
10632
  /**
10633
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10634
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10635
+ * absent here runs at the step slider's global default. The same row shape
10636
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10637
+ * a measured table is copied in as-is. An operator override is bound to the
10638
+ * model it was made for and does not survive a model change (D738). A custom
10639
+ * / imported model may declare it; without it, the global defaults apply.
10640
+ */
10641
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10642
+ /**
10643
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10644
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10645
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10646
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10647
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10648
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10649
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10650
+ */
10651
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10652
+ /**
10653
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10654
+ * minimum DETECTION score from which this root's own fine label (species,
10655
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10656
+ * keeps its macro class without the fine label. `1` = never take it from
10657
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10658
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10659
+ */
10660
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10661
+ /**
10674
10662
  * When true, the executor produces a landmark-aligned crop (similarity warp
10675
10663
  * onto the canonical template) before this step runs, instead of a plain
10676
10664
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10732,6 +10720,16 @@ var ModelCatalogEntrySchema = object({
10732
10720
  */
10733
10721
  classMap: DetectionCatalogClassMapSchema.optional(),
10734
10722
  /**
10723
+ * The pipeline steps this ROOT detector can supply from its own output
10724
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10725
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10726
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10727
+ * by hand and never assumed per family; a row without it is derived on read
10728
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10729
+ * `useRootModel` flag (`resolveRootSupply`).
10730
+ */
10731
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10732
+ /**
10735
10733
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10736
10734
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10737
10735
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12382,13 +12380,6 @@ var BrokerRtspClientSchema = object({
12382
12380
  lastRtpAt: number(),
12383
12381
  bytesSent: number()
12384
12382
  });
12385
- var BrokerDecodedClientSchema = object({
12386
- tag: string(),
12387
- subscribedAt: number(),
12388
- maxFps: number(),
12389
- framesDelivered: number(),
12390
- framesDropped: number()
12391
- });
12392
12383
  var BrokerAudioClientSchema = object({
12393
12384
  tag: string(),
12394
12385
  subscribedAt: number(),
@@ -12480,7 +12471,6 @@ var BrokerEncodedClientSchema = object({
12480
12471
  });
12481
12472
  var BrokerClientsSchema = object({
12482
12473
  rtsp: array(BrokerRtspClientSchema).readonly(),
12483
- decoded: array(BrokerDecodedClientSchema).readonly(),
12484
12474
  audio: array(BrokerAudioClientSchema).readonly(),
12485
12475
  encoded: array(BrokerEncodedClientSchema).readonly(),
12486
12476
  pipeClients: number(),
@@ -12849,11 +12839,7 @@ method(object({
12849
12839
  auth: "admin"
12850
12840
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12851
12841
  brokerId: string(),
12852
- channel: _enum([
12853
- "rtsp",
12854
- "decoded",
12855
- "audio"
12856
- ]),
12842
+ channel: _enum(["rtsp", "audio"]),
12857
12843
  handle: string()
12858
12844
  }), object({ killed: boolean() }), {
12859
12845
  kind: "mutation",
@@ -12888,10 +12874,7 @@ method(object({
12888
12874
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12889
12875
  subscriptionId: string(),
12890
12876
  maxCount: number().int().positive().default(8)
12891
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12892
- subscriptionId: string(),
12893
- maxCount: number().int().positive().default(4)
12894
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12877
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12895
12878
  brokerId: string(),
12896
12879
  seconds: number().min(0).max(30)
12897
12880
  }), _void(), {
@@ -14150,54 +14133,12 @@ id: union([string(), number()]) }), {
14150
14133
  kind: "mutation",
14151
14134
  auth: "admin"
14152
14135
  });
14153
- /**
14154
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14155
- * exposed via `decoder.getShmStats` so downstream consumers can
14156
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14157
- */
14158
- var ShmRingStatsSchema = object({
14159
- sessionId: string(),
14160
- slotCount: number().int(),
14161
- slotByteLength: number().int(),
14162
- segmentBytes: number().int(),
14163
- budgetMb: number().int(),
14164
- framesWritten: number().int(),
14165
- getFrameHits: number().int(),
14166
- getFrameMisses: number().int()
14167
- });
14168
- method(object({ codec: string() }), boolean()), method(_void(), object({
14136
+ method(_void(), object({
14169
14137
  id: string(),
14170
14138
  name: string(),
14171
- isPullMode: boolean().optional(),
14172
- priority: number().optional(),
14173
14139
  hwaccel: string().optional(),
14174
14140
  probedBestHwaccel: string().optional()
14175
- })), method(DecoderSessionConfigSchema, object({
14176
- sessionId: string(),
14177
- nodeId: string()
14178
- })), method(object({ sessionId: string() }), _void()), method(object({
14179
- sessionId: string(),
14180
- packet: EncodedPacketSchema
14181
- }), _void()), method(object({
14182
- sessionId: string(),
14183
- url: string()
14184
- }), _void()), method(object({
14185
- sessionId: string(),
14186
- maxCount: number().default(1),
14187
- waitMs: number().optional()
14188
- }), array(DecodedFrameSchema)), method(object({
14189
- sessionId: string(),
14190
- maxCount: number().default(1),
14191
- waitMs: number().optional()
14192
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14193
- sessionId: string(),
14194
- config: DecoderSessionConfigSchema.partial()
14195
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14196
- sessionId: string(),
14197
- codec: string(),
14198
- outputFormat: string(),
14199
- createdAtMs: number()
14200
- })).readonly()), method(_void(), object({ backend: string() }), {
14141
+ })), method(_void(), object({ backend: string() }), {
14201
14142
  kind: "mutation",
14202
14143
  auth: "admin"
14203
14144
  });
@@ -14253,7 +14194,7 @@ DeviceType.Camera;
14253
14194
  * This matters here more than anywhere else in the repo, because every provider
14254
14195
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
14255
14196
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
14256
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
14197
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
14257
14198
  * camera's own page will ask for its own login. That is correct, and pre-
14258
14199
  * filling it is the operator's business, not ours.
14259
14200
  *
@@ -16359,6 +16300,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16359
16300
  kind: "mutation",
16360
16301
  auth: "admin"
16361
16302
  });
16303
+ var HUB_ADDRESS_ROLES = [
16304
+ "appConnections",
16305
+ "notificationTaps",
16306
+ "internal",
16307
+ "publicEndpoint"
16308
+ ];
16362
16309
  /**
16363
16310
  * Transport bounds for AI capability methods.
16364
16311
  *
@@ -17555,7 +17502,7 @@ method(object({
17555
17502
  timeoutMs: 6e5
17556
17503
  });
17557
17504
  method(object({
17558
- nodeId: string(),
17505
+ targetNodeId: string(),
17559
17506
  modelId: string(),
17560
17507
  format: _enum(MODEL_FORMATS),
17561
17508
  entry: ModelCatalogEntrySchema
@@ -18961,6 +18908,8 @@ var NcSystemEventKindSchema = _enum([
18961
18908
  "stream-offline",
18962
18909
  "node-online",
18963
18910
  "node-offline",
18911
+ "node-restarting",
18912
+ "node-updating",
18964
18913
  "node-inference-unavailable",
18965
18914
  "detection-blind",
18966
18915
  "addon-crash-loop",
@@ -20059,8 +20008,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
20059
20008
  disabledTargetIds: array(string()).default([])
20060
20009
  });
20061
20010
  /**
20062
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
20063
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
20011
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
20012
+ * report a still-true state. `addons` is the crash-looped addons only and
20013
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
20064
20014
  * job is not an open state, and the alarm stays instant.
20065
20015
  */
20066
20016
  var NcStateSummarySectionIdSchema = _enum([
@@ -20072,6 +20022,7 @@ var NcStateSummarySectionIdSchema = _enum([
20072
20022
  "detection-blind",
20073
20023
  "nodes",
20074
20024
  "addons",
20025
+ "addon-updates",
20075
20026
  "updates"
20076
20027
  ]);
20077
20028
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -20552,7 +20503,25 @@ var NcAlarmModeDelaysListSchema = array(object({
20552
20503
  * When this mode may be armed. Absent / null = always allowed (same as a
20553
20504
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
20554
20505
  */
20555
- schedule: NcScheduleSchema.optional()
20506
+ schedule: NcScheduleSchema.optional(),
20507
+ /**
20508
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
20509
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
20510
+ * only one, and the matches ride the triggered notification's mosaic (D705).
20511
+ */
20512
+ notifyDuringEntryDelay: boolean().optional(),
20513
+ /**
20514
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
20515
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20516
+ * is the one that starts the entry delay — the entry-delay notification already names it.
20517
+ */
20518
+ notifySensorRewatched: boolean().optional(),
20519
+ /**
20520
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20521
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20522
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20523
+ */
20524
+ notifySensorIgnored: boolean().optional()
20556
20525
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20557
20526
  var NcAlarmModeDelaysEditListSchema = array(object({
20558
20527
  mode: AlarmArmModeSchema,
@@ -20561,7 +20530,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20561
20530
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
20562
20531
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
20563
20532
  /** Set a schedule, or `null` to clear (mode always allowed again). */
20564
- schedule: NcScheduleSchema.nullable().optional()
20533
+ schedule: NcScheduleSchema.nullable().optional(),
20534
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20535
+ notifyDuringEntryDelay: boolean().nullable().optional(),
20536
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
20537
+ notifySensorRewatched: boolean().nullable().optional(),
20538
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20539
+ notifySensorIgnored: boolean().nullable().optional()
20565
20540
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20566
20541
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20567
20542
  var NcAlarmNonBlockingEditSchema = object({
@@ -21522,45 +21497,25 @@ Object.freeze(Object.fromEntries([{
21522
21497
  label: "Face recognition model",
21523
21498
  defaultModelId: "auraface-r100",
21524
21499
  indexName: "the enrolled face gallery",
21525
- options: [
21526
- {
21527
- id: "auraface-r100",
21528
- label: "AuraFace R100"
21529
- },
21530
- {
21531
- id: "arcface-r100",
21532
- label: "ArcFace (ResNet34)"
21533
- },
21534
- {
21535
- id: "inception-resnet-v1",
21536
- label: "Inception ResNet V1"
21537
- }
21538
- ]
21500
+ options: [{
21501
+ id: "auraface-r100",
21502
+ label: "AuraFace R100"
21503
+ }]
21539
21504
  }, {
21540
21505
  stepId: "clip-embedding",
21541
21506
  label: "Semantic search model",
21542
- defaultModelId: "mobileclip-s1",
21507
+ defaultModelId: "siglip2-b16-224",
21543
21508
  indexName: "the object semantic-search index",
21544
- options: [
21545
- {
21546
- id: "mobileclip-s1",
21547
- label: "MobileCLIP S1"
21548
- },
21549
- {
21550
- id: "mobileclip-s2",
21551
- label: "MobileCLIP S2"
21552
- },
21553
- {
21554
- id: "siglip2-b16-224",
21555
- label: "SigLIP2 B/16 (Apache-2.0)"
21556
- }
21557
- ]
21509
+ options: [{
21510
+ id: "siglip2-b16-224",
21511
+ label: "SigLIP2 B/16 (Apache-2.0)"
21512
+ }]
21558
21513
  }].map((s) => [s.stepId, s.defaultModelId])));
21559
21514
  var CLUSTER_STEP_SETTING_FIELDS = [{
21560
21515
  stepId: "face-embedding",
21561
21516
  key: "minLandmarkFaceSize",
21562
- label: "Min face size for recognition (detection px)",
21563
- 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.",
21517
+ label: "Min face size to embed (detection-frame px)",
21518
+ 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.",
21564
21519
  type: "slider",
21565
21520
  min: 0,
21566
21521
  max: 64,
@@ -23480,6 +23435,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23480
23435
  timestamp: number()
23481
23436
  });
23482
23437
  /**
23438
+ * A root model's boxes standing in for one crop-kind step's own inference
23439
+ * (D730) — see `runPipeline.suppliedRoot`.
23440
+ */
23441
+ var SuppliedRootOutputSchema = object({
23442
+ stepId: string(),
23443
+ /** The root model that drew the boxes — stamped on the result. */
23444
+ modelId: string(),
23445
+ detections: array(object({
23446
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23447
+ bbox: tuple([
23448
+ number(),
23449
+ number(),
23450
+ number(),
23451
+ number()
23452
+ ]),
23453
+ score: number(),
23454
+ /**
23455
+ * Five facial landmarks in the same pixels — a face the step's own
23456
+ * detector already re-found inside a root face box (D730), so its
23457
+ * embedder child aligns it exactly as it aligns any detected face.
23458
+ */
23459
+ landmarks: array(object({
23460
+ x: number(),
23461
+ y: number()
23462
+ })).optional()
23463
+ })).min(1)
23464
+ });
23465
+ /**
23483
23466
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23484
23467
  * within the frame, so the executor can re-cut a leaf child ROI at native
23485
23468
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23527,7 +23510,7 @@ var FrameRefSchema = object({
23527
23510
  timestamp: number(),
23528
23511
  capturedAt: number().optional()
23529
23512
  });
23530
- var ModelFormatSchema$1 = _enum([
23513
+ var ModelFormatSchema$2 = _enum([
23531
23514
  "onnx",
23532
23515
  "coreml",
23533
23516
  "openvino",
@@ -23545,7 +23528,7 @@ var PipelineSlotSchema = _enum([
23545
23528
  var PipelineEngineChoiceSchema = object({
23546
23529
  runtime: literal("python"),
23547
23530
  backend: string(),
23548
- format: ModelFormatSchema$1,
23531
+ format: ModelFormatSchema$2,
23549
23532
  device: string().optional()
23550
23533
  });
23551
23534
  /**
@@ -23584,32 +23567,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23584
23567
  group: string().optional(),
23585
23568
  settings: record(string(), unknown()).optional()
23586
23569
  }));
23587
- var PipelineTemplateStepSchema = lazy(() => object({
23588
- addonId: string(),
23589
- enabled: boolean(),
23590
- modelId: string(),
23591
- children: array(PipelineTemplateStepSchema).readonly(),
23592
- settings: record(string(), unknown()).optional()
23593
- }));
23594
- var PipelineTemplateSchema$1 = object({
23595
- id: string(),
23596
- name: string(),
23597
- createdAt: string(),
23598
- updatedAt: string(),
23599
- engine: PipelineEngineChoiceSchema,
23600
- steps: array(PipelineTemplateStepSchema).readonly()
23601
- });
23602
23570
  var PipelineModelOptionSchema = object({
23603
23571
  id: string(),
23604
23572
  name: string(),
23605
- formats: record(string(), object({
23606
- downloaded: boolean(),
23607
- sizeMB: number()
23608
- })),
23573
+ formats: record(string(), PipelineModelFormatStatusSchema),
23609
23574
  group: ModelVariantGroupSchema.optional(),
23610
23575
  legacy: boolean().optional(),
23611
23576
  provider: ModelProviderIdSchema.optional(),
23612
- defaultConfidence: number().optional()
23577
+ defaultConfidence: number().optional(),
23578
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23613
23579
  });
23614
23580
  var ConfigFieldBridge = custom();
23615
23581
  var PipelineAddonSchemaSchema = object({
@@ -23771,6 +23737,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23771
23737
  }), {
23772
23738
  kind: "mutation",
23773
23739
  auth: "admin"
23740
+ }), method(object({
23741
+ nodeId: string(),
23742
+ deviceIds: array(number()).readonly().optional(),
23743
+ dryRun: boolean()
23744
+ }), object({
23745
+ entries: array(object({
23746
+ deviceId: number(),
23747
+ keys: array(string()).readonly()
23748
+ })).readonly(),
23749
+ refused: array(object({
23750
+ deviceId: number(),
23751
+ reason: string()
23752
+ })).readonly()
23753
+ }), {
23754
+ kind: "mutation",
23755
+ auth: "admin"
23774
23756
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23775
23757
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23776
23758
  deviceKey: string(),
@@ -23796,22 +23778,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23796
23778
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23797
23779
  steps: array(PipelineStepInputSchema),
23798
23780
  deviceKey: string().optional()
23799
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23800
- name: string(),
23801
- steps: array(PipelineTemplateStepSchema).readonly(),
23802
- engine: PipelineEngineChoiceSchema
23803
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23804
- id: string(),
23805
- name: string().optional(),
23806
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23807
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23781
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23808
23782
  addonId: string(),
23809
23783
  modelId: string(),
23810
- format: ModelFormatSchema$1
23784
+ format: ModelFormatSchema$2
23811
23785
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23812
23786
  addonId: string(),
23813
23787
  modelId: string(),
23814
- format: ModelFormatSchema$1
23788
+ format: ModelFormatSchema$2
23815
23789
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23816
23790
  steps: array(PipelineStepInputSchema).min(1),
23817
23791
  frame: FrameInputSchema.optional(),
@@ -23877,7 +23851,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23877
23851
  * `device-not-servable`), and nothing reaches the camera's live
23878
23852
  * trace stream. Absent ⇒ unchanged behaviour.
23879
23853
  */
23880
- replay: literal(true).optional()
23854
+ replay: literal(true).optional(),
23855
+ /**
23856
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23857
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23858
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23859
+ * NOT inferred, these boxes are its output, and its children (the plate
23860
+ * reader) run on them through their own crop policy. Boxes are in the
23861
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23862
+ */
23863
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23881
23864
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23882
23865
  steps: array(PipelineStepInputSchema).min(1),
23883
23866
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23959,6 +23942,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23959
23942
  filename: string().optional(),
23960
23943
  settings: record(string(), unknown()).optional()
23961
23944
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23945
+ /**
23946
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23947
+ * `pipeline-orchestrator` cap. The recommender's own types
23948
+ * (`recommend.ts`) are the TS face of the same data; these
23949
+ * schemas are what crosses the cap boundary.
23950
+ */
23951
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23952
+ /** The operator's range for it. */
23953
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23954
+ min: 1,
23955
+ max: 8
23956
+ };
23957
+ var HardwareClassIdSchema = _enum([
23958
+ "intel-core-ultra",
23959
+ "intel-n-series",
23960
+ "apple-m-base",
23961
+ "apple-m-pro",
23962
+ "unknown"
23963
+ ]);
23964
+ var AcceleratorKindSchema = _enum([
23965
+ "intel-npu",
23966
+ "intel-igpu",
23967
+ "x86-cpu",
23968
+ "arm-cpu",
23969
+ "apple-ane",
23970
+ "coral"
23971
+ ]);
23972
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23973
+ object({
23974
+ kind: literal("capacity"),
23975
+ sessions: number(),
23976
+ minSessions: number()
23977
+ }),
23978
+ object({
23979
+ kind: literal("tie-faster"),
23980
+ over: string(),
23981
+ recallDelta: number()
23982
+ }),
23983
+ object({
23984
+ kind: literal("stepped-down"),
23985
+ from: string(),
23986
+ to: string(),
23987
+ limitedBy: string()
23988
+ }),
23989
+ object({
23990
+ kind: literal("no-fit-lightest"),
23991
+ sessions: number(),
23992
+ minSessions: number()
23993
+ }),
23994
+ object({
23995
+ kind: literal("derived-latency"),
23996
+ modelId: string()
23997
+ }),
23998
+ object({ kind: literal("cpu-device") }),
23999
+ object({ kind: literal("coral-untouched") }),
24000
+ object({ kind: literal("device-disabled") }),
24001
+ object({ kind: literal("device-unavailable") }),
24002
+ object({ kind: literal("node-offline") }),
24003
+ object({ kind: literal("no-hardware-facts") }),
24004
+ object({
24005
+ kind: literal("no-measured-data"),
24006
+ hardwareClass: HardwareClassIdSchema
24007
+ }),
24008
+ object({
24009
+ kind: literal("no-family-build"),
24010
+ format: ModelFormatSchema$1
24011
+ })
24012
+ ]);
24013
+ var DeviceModelChoiceSchema = object({
24014
+ modelId: string(),
24015
+ p50Ms: number(),
24016
+ fps: number(),
24017
+ measured: boolean(),
24018
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24019
+ capacitySessions: number(),
24020
+ personRecall: number()
24021
+ });
24022
+ var DeviceRecommendationSchema = object({
24023
+ deviceKey: string(),
24024
+ accelerator: AcceleratorKindSchema.nullable(),
24025
+ enabled: boolean(),
24026
+ available: boolean(),
24027
+ chosen: DeviceModelChoiceSchema.nullable(),
24028
+ reasons: array(RecommendationReasonSchema).readonly()
24029
+ });
24030
+ var NodeRecommendationSchema = object({
24031
+ nodeId: string(),
24032
+ reachable: boolean(),
24033
+ hardwareClass: HardwareClassIdSchema.nullable(),
24034
+ cpuModel: string().nullable(),
24035
+ skipped: boolean(),
24036
+ acceleratorModelId: string().nullable(),
24037
+ devices: array(DeviceRecommendationSchema).readonly(),
24038
+ reasons: array(RecommendationReasonSchema).readonly()
24039
+ });
24040
+ var ModelPinChangeSchema = object({
24041
+ stepId: string(),
24042
+ before: string().nullable(),
24043
+ after: string().nullable()
24044
+ });
24045
+ var NodeDeviceChangeSchema = object({
24046
+ nodeId: string(),
24047
+ deviceKey: string(),
24048
+ madeExplicit: boolean(),
24049
+ modelPins: array(ModelPinChangeSchema).readonly(),
24050
+ thresholds: array(object({
24051
+ stepId: string(),
24052
+ keys: array(string()).readonly()
24053
+ })).readonly()
24054
+ });
24055
+ var CameraOverrideClearSchema = object({
24056
+ deviceId: number(),
24057
+ source: _enum(["step-override", "wholesale"]),
24058
+ nodeId: string(),
24059
+ deviceKey: string().nullable(),
24060
+ stepId: string(),
24061
+ modelIdBefore: string().nullable(),
24062
+ keys: array(string()).readonly()
24063
+ });
24064
+ var DetectorStoreClearSchema = object({
24065
+ deviceId: number(),
24066
+ keys: array(string()).readonly()
24067
+ });
24068
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24069
+ object({
24070
+ kind: literal("detector-store-cluster-wide"),
24071
+ skippedNodes: array(string()).readonly()
24072
+ }),
24073
+ object({
24074
+ kind: literal("detector-store-unreadable"),
24075
+ error: string()
24076
+ }),
24077
+ object({
24078
+ kind: literal("coral-enabled"),
24079
+ nodeId: string(),
24080
+ deviceKey: string()
24081
+ })
24082
+ ]);
24083
+ var AutoTuneOptionsSchema = object({
24084
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24085
+ headroom: number().min(.3).max(.5).default(.4),
24086
+ /**
24087
+ * The least number of parallel sessions every device must sustain at the
24088
+ * camera rate with the headroom kept free (D755). The most accurate model
24089
+ * that reaches it wins.
24090
+ */
24091
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24092
+ });
24093
+ var AutoTunePlanSchema = object({
24094
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24095
+ planHash: string(),
24096
+ family: literal("yolov9"),
24097
+ headroom: number(),
24098
+ minSessionsPerDevice: number(),
24099
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24100
+ cameraFps: number(),
24101
+ generatedAt: number(),
24102
+ nodes: array(NodeRecommendationSchema).readonly(),
24103
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24104
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24105
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24106
+ warnings: array(AutoTuneWarningSchema).readonly()
24107
+ });
24108
+ var AutoTuneApplyInputSchema = object({
24109
+ planHash: string(),
24110
+ headroom: number().min(.3).max(.5).default(.4),
24111
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24112
+ });
24113
+ var AutoTunePhaseResultSchema = object({
24114
+ phase: _enum([
24115
+ "download",
24116
+ "camera-overrides",
24117
+ "detector-thresholds",
24118
+ "node-models",
24119
+ "redispatch"
24120
+ ]),
24121
+ ok: boolean(),
24122
+ detail: string()
24123
+ });
24124
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24125
+ object({
24126
+ kind: literal("applied"),
24127
+ planHash: string(),
24128
+ phases: array(AutoTunePhaseResultSchema).readonly()
24129
+ }),
24130
+ object({
24131
+ kind: literal("aborted"),
24132
+ phases: array(AutoTunePhaseResultSchema).readonly()
24133
+ }),
24134
+ object({
24135
+ kind: literal("stale"),
24136
+ plan: AutoTunePlanSchema
24137
+ }),
24138
+ object({
24139
+ kind: literal("refused"),
24140
+ reason: _enum(["apply-in-progress"])
24141
+ })
24142
+ ]);
24143
+ /**
24144
+ * Wire shapes of the Load balancing surface (D748): the session placement
24145
+ * policy, the atomic share write, the observed placement statistics, the
24146
+ * hardware share suggestion and the stale device pins.
24147
+ */
24148
+ /**
24149
+ * How a new detection session picks its node and device.
24150
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24151
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24152
+ * weight only bites once a node already holds a session.
24153
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24154
+ * full or drowning node yields to a free one (D748).
24155
+ */
24156
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24157
+ var LoadBalancingSharesInputSchema = object({
24158
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24159
+ nodes: record(string(), number().positive()).default({}),
24160
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24161
+ devices: record(string(), record(string(), number().positive())).default({})
24162
+ });
24163
+ var PlacementStatsInputSchema = object({
24164
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24165
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24166
+ var PlacementDeviceStatsSchema = object({
24167
+ deviceKey: string(),
24168
+ /** Sessions running on this device now. */
24169
+ sessionsNow: number(),
24170
+ /** Sessions started on this device inside the window. */
24171
+ sessionsStarted: number(),
24172
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24173
+ observedShare: number().nullable()
24174
+ });
24175
+ var PlacementNodeStatsSchema = object({
24176
+ nodeId: string(),
24177
+ sessionsNow: number(),
24178
+ sessionsStarted: number(),
24179
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24180
+ observedShare: number().nullable(),
24181
+ /** Most sessions this node ran at once inside the window. */
24182
+ peakSessions: number(),
24183
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24184
+ yieldsAway: number(),
24185
+ devices: array(PlacementDeviceStatsSchema).readonly()
24186
+ });
24187
+ /** A camera's device pin that the session path cannot honour. */
24188
+ var StaleDevicePinSchema = object({
24189
+ deviceId: number(),
24190
+ deviceKey: string(),
24191
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24192
+ reason: _enum(["disabled", "absent"])
24193
+ });
24194
+ var PlacementStatsSchema = object({
24195
+ policy: SessionPlacementPolicySchema,
24196
+ windowMs: number(),
24197
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24198
+ observedForMs: number(),
24199
+ sessionsNow: number(),
24200
+ /** Most parallel sessions across the cluster inside the window. */
24201
+ clusterPeakSessions: number(),
24202
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24203
+ stalePins: array(StaleDevicePinSchema).readonly()
24204
+ });
24205
+ /**
24206
+ * Where an automatic share's capacity comes from (D755).
24207
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24208
+ * the measured latency table for the node's hardware class.
24209
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24210
+ * A node with no results falls back to `hardware`, and says so.
24211
+ */
24212
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24213
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24214
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24215
+ var SuggestSharesInputSchema = object({
24216
+ headroom: number().min(.3).max(.5).default(.4),
24217
+ /** Default `hardware`. */
24218
+ source: CapacitySourceSchema.default("hardware")
24219
+ });
24220
+ var SuggestedDeviceShareSchema = object({
24221
+ deviceKey: string(),
24222
+ /** Share of the node (0–100, rounded). */
24223
+ share: number(),
24224
+ modelId: string().nullable(),
24225
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24226
+ fps: number().nullable(),
24227
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24228
+ measured: boolean(),
24229
+ /**
24230
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24231
+ * or the benchmark's measured max sessions. Never enforced.
24232
+ */
24233
+ suggestedMaxSessions: number().nullable()
24234
+ });
24235
+ var SuggestedNodeShareSchema = object({
24236
+ nodeId: string(),
24237
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24238
+ share: number().nullable(),
24239
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24240
+ capacitySessions: number(),
24241
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24242
+ skippedReason: string().nullable(),
24243
+ /** What this node's capacity was read from; null when the node is skipped. */
24244
+ capacitySource: CapacitySourceSchema.nullable(),
24245
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24246
+ capacityFallback: CapacityFallbackSchema.nullable()
24247
+ });
24248
+ var SuggestSharesResultSchema = object({
24249
+ headroom: number(),
24250
+ /** The source asked for; each node says what it actually used. */
24251
+ source: CapacitySourceSchema,
24252
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24253
+ cameraFps: number(),
24254
+ /** The Auto tune capacity floor the models were picked at. */
24255
+ minSessionsPerDevice: number(),
24256
+ nodes: array(SuggestedNodeShareSchema).readonly()
24257
+ });
24258
+ /**
24259
+ * Where the node and device shares come from (D750, D755).
24260
+ * - `hardware` (default) — computed by the system from each node's static
24261
+ * capacity (its accelerators at their Auto tune models, from the measured
24262
+ * latency table), recomputed whenever a node or device joins, leaves, is
24263
+ * switched on or off, or changes model. No load input.
24264
+ * - `benchmark` — the same, from each node's measured capacity (node
24265
+ * benchmark results); a node without results falls back to `hardware`.
24266
+ * - `manual` — the operator's stored sliders.
24267
+ * Either way a node or device that cannot take sessions gives its share to
24268
+ * the others in proportion; the stored values are never rewritten for that.
24269
+ */
24270
+ var ShareSourceSchema = _enum([
24271
+ "hardware",
24272
+ "benchmark",
24273
+ "manual"
24274
+ ]);
24275
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24276
+ object({
24277
+ nodes: record(string(), number()),
24278
+ devices: record(string(), record(string(), number()))
24279
+ });
24280
+ var EffectiveDeviceShareSchema = object({
24281
+ deviceKey: string(),
24282
+ /** Can take sessions now (enabled, available, can run the root). */
24283
+ eligible: boolean(),
24284
+ /** The share the source assigns, as a percentage of the node's devices. */
24285
+ configuredPct: number(),
24286
+ /** The share actually used, after an ineligible device's share went to the others. */
24287
+ effectivePct: number()
24288
+ });
24289
+ var EffectiveNodeShareSchema = object({
24290
+ nodeId: string(),
24291
+ eligible: boolean(),
24292
+ configuredPct: number(),
24293
+ effectivePct: number(),
24294
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24295
+ capacitySource: CapacitySourceSchema.nullable(),
24296
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24297
+ capacityFallback: CapacityFallbackSchema.nullable(),
24298
+ devices: array(EffectiveDeviceShareSchema).readonly()
24299
+ });
24300
+ var EffectiveSharesSchema = object({
24301
+ source: ShareSourceSchema,
24302
+ policy: SessionPlacementPolicySchema,
24303
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24304
+ autoPending: boolean(),
24305
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24306
+ computedAt: number().nullable(),
24307
+ /** What made the system recompute them last. */
24308
+ trigger: string().nullable(),
24309
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24310
+ /** The relative weights the election reads (before eligibility). */
24311
+ nodeWeights: record(string(), number()),
24312
+ deviceWeights: record(string(), record(string(), number()))
24313
+ });
23962
24314
  object({
23963
24315
  activeCameras: number(),
23964
24316
  throttledCameras: number(),
@@ -24442,6 +24794,22 @@ var MotionSourceEnum = _enum([
24442
24794
  "device-activity"
24443
24795
  ]);
24444
24796
  /**
24797
+ * What opened an on-motion detection SESSION: the motion source that passed the
24798
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
24799
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
24800
+ * device name as the orchestrator's camera-sensors resolution last read it;
24801
+ * absent when unknown or when the camera itself triggered.
24802
+ *
24803
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
24804
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
24805
+ * runner never decides anything on it.
24806
+ */
24807
+ var SessionTriggerSchema = object({
24808
+ source: MotionSourceEnum,
24809
+ triggeredBy: MotionTriggeredBySchema,
24810
+ sensorName: string().optional()
24811
+ });
24812
+ /**
24445
24813
  * List of motion sources active on a camera. Empty array is valid:
24446
24814
  * "no source" — happens for battery cams without firmware motion when
24447
24815
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -24693,6 +25061,14 @@ var RunnerCameraConfigSchema = object({
24693
25061
  */
24694
25062
  motionSources: MotionSourcesSchema.default(["analyzer"]),
24695
25063
  /**
25064
+ * What opened this attach, on a SESSION attach only (see
25065
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
25066
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
25067
+ * behind it, and every attach from an orchestrator older than the field — the
25068
+ * runner then names no source on the phase event.
25069
+ */
25070
+ sessionTrigger: SessionTriggerSchema.optional(),
25071
+ /**
24696
25072
  * WHICH root detector runs for this camera. The detection counterpart of
24697
25073
  * {@link motionSources}, same shape and same discipline: a per-camera list
24698
25074
  * of sources the system understands, vendor-agnostic, owned here.
@@ -24852,14 +25228,15 @@ var RunnerLocalLoadSchema = object({
24852
25228
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24853
25229
  * this runner currently has attached cameras on, so the orchestrator's second
24854
25230
  * `balance()` pass (over a node's devices) weights on real per-pool session
24855
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24856
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25231
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25232
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25233
+ * a field that always read 0 was removed rather than shown as a measurement
25234
+ * (D762).
24857
25235
  */
24858
25236
  devices: array(object({
24859
25237
  deviceKey: string(),
24860
25238
  backend: string(),
24861
- attachedCameras: number(),
24862
- queueDepthTotal: number()
25239
+ attachedCameras: number()
24863
25240
  })).default([]),
24864
25241
  /** Hardware capability flags reported by this node. */
24865
25242
  hardware: object({
@@ -24995,7 +25372,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24995
25372
  */
24996
25373
  cropJpeg: string().optional(),
24997
25374
  parent: DetailParentSchema,
24998
- steps: array(string()).optional()
25375
+ steps: array(string()).optional(),
25376
+ /**
25377
+ * The camera's root model already drew this step's boxes (D730): a
25378
+ * `license_plate` inside the parent vehicle. The named step is NOT
25379
+ * inferred — these FRAME-space boxes are its output — and its
25380
+ * requested children (the plate reader) run on them. Absent ⇒ every
25381
+ * requested step infers as before.
25382
+ */
25383
+ supplied: object({
25384
+ stepId: string(),
25385
+ modelId: string(),
25386
+ boxes: array(object({
25387
+ bbox: NativeCropBboxSchema,
25388
+ score: number()
25389
+ })).min(1)
25390
+ }).optional()
24999
25391
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
25000
25392
  /** Catalog step id, e.g. `clip-embedding`. */
25001
25393
  stepId: string(),
@@ -25058,14 +25450,6 @@ var CameraPipelineConfigSchema = object({
25058
25450
  settings: record(string(), unknown()).readonly().optional()
25059
25451
  }).nullable().optional()
25060
25452
  });
25061
- var PipelineTemplateSchema = object({
25062
- id: string(),
25063
- name: string(),
25064
- description: string().optional(),
25065
- config: CameraPipelineConfigSchema,
25066
- createdAt: string(),
25067
- updatedAt: string()
25068
- });
25069
25453
  var DeviceStepConfigSchema = object({
25070
25454
  modelId: string().optional(),
25071
25455
  settings: record(string(), unknown()).optional(),
@@ -25139,9 +25523,10 @@ var CameraStepOverridePatchSchema = object({
25139
25523
  modelId: string().optional(),
25140
25524
  settings: record(string(), unknown()).readonly().optional()
25141
25525
  });
25526
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25142
25527
  var CameraPipelineSettingsSchema = object({
25143
- pinnedAgentNodeId: string().optional(),
25144
25528
  stepToggles: record(string(), boolean()).optional(),
25529
+ stepSettings: CameraStepSettingsSchema.optional(),
25145
25530
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25146
25531
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25147
25532
  });
@@ -25174,7 +25559,10 @@ var PipelineAssignmentSchema = object({
25174
25559
  });
25175
25560
  /**
25176
25561
  * Per-agent load summary surfaced to the load balancer + dashboards.
25177
- * Aggregated from each runner's `getLocalLoad` cap call.
25562
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25563
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25564
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25565
+ * the default pool IS that device (D745); the balancer's census stays raw.
25178
25566
  */
25179
25567
  var AgentLoadSummarySchema = object({
25180
25568
  nodeId: string(),
@@ -25263,26 +25651,27 @@ var CameraBrokerStatusSchema = object({
25263
25651
  width: number(),
25264
25652
  height: number(),
25265
25653
  subscribers: number(),
25266
- inFps: number(),
25267
- outFps: number()
25654
+ /**
25655
+ * Encoded packets/s the broker receives from the camera. null when the
25656
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25657
+ * There is no output rate: decoding runs in the session decode workers, not
25658
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25659
+ * camera and is not served (D758).
25660
+ */
25661
+ inFps: number().nullable()
25268
25662
  })).readonly(),
25269
25663
  webrtcSessions: number(),
25270
25664
  rtspRestream: boolean()
25271
25665
  });
25272
- /** Shared-memory ring statistics within the decoder block. */
25273
- var CameraDecoderShmSchema = object({
25274
- framesWritten: number(),
25275
- getFrameHits: number(),
25276
- getFrameMisses: number(),
25277
- budgetMb: number()
25278
- });
25279
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25280
- var CameraDecoderStatusSchema = object({
25281
- nodeId: string(),
25282
- formats: array(string()).readonly(),
25283
- sessionCount: number(),
25284
- shm: CameraDecoderShmSchema
25285
- });
25666
+ /**
25667
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25668
+ * construction); null when the camera has no detection node. It carries no
25669
+ * frame counter: the shared-memory plane whose counters it used to serve is
25670
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25671
+ * from `detection.actualFps` (frames delivered to and processed by the
25672
+ * detector), never from a counter nothing feeds.
25673
+ */
25674
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25286
25675
  /** Motion block — null when motion detection is not active for this device. */
25287
25676
  var CameraMotionStatusSchema = object({
25288
25677
  enabled: boolean(),
@@ -25639,12 +26028,6 @@ method(object({
25639
26028
  }), object({ success: literal(true) }), {
25640
26029
  kind: "mutation",
25641
26030
  auth: "admin"
25642
- }), method(object({
25643
- agentNodeId: string(),
25644
- detectWeight: number().positive().nullable()
25645
- }), object({ success: literal(true) }), {
25646
- kind: "mutation",
25647
- auth: "admin"
25648
26031
  }), method(object({
25649
26032
  agentNodeId: string(),
25650
26033
  detect: boolean().nullable().optional(),
@@ -25686,6 +26069,15 @@ method(object({
25686
26069
  }), {
25687
26070
  kind: "mutation",
25688
26071
  auth: "admin"
26072
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26073
+ kind: "mutation",
26074
+ auth: "admin"
26075
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26076
+ kind: "mutation",
26077
+ auth: "admin"
26078
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26079
+ kind: "mutation",
26080
+ auth: "admin"
25689
26081
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25690
26082
  deviceId: number(),
25691
26083
  addonId: string(),
@@ -25702,6 +26094,13 @@ method(object({
25702
26094
  }), object({ success: literal(true) }), {
25703
26095
  kind: "mutation",
25704
26096
  auth: "admin"
26097
+ }), method(object({
26098
+ deviceId: number(),
26099
+ addonId: string(),
26100
+ settings: record(string(), unknown()).nullable()
26101
+ }), object({ success: literal(true) }), {
26102
+ kind: "mutation",
26103
+ auth: "admin"
25705
26104
  }), method(object({
25706
26105
  deviceId: number(),
25707
26106
  agentNodeId: string(),
@@ -25725,25 +26124,7 @@ method(object({
25725
26124
  }), method(_void(), DiskReconcileJobSchema, {
25726
26125
  kind: "mutation",
25727
26126
  auth: "admin"
25728
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25729
- name: string(),
25730
- description: string().optional(),
25731
- config: CameraPipelineConfigSchema
25732
- }), PipelineTemplateSchema, {
25733
- kind: "mutation",
25734
- auth: "admin"
25735
- }), method(object({
25736
- id: string(),
25737
- name: string().optional(),
25738
- description: string().optional(),
25739
- config: CameraPipelineConfigSchema.optional()
25740
- }), PipelineTemplateSchema, {
25741
- kind: "mutation",
25742
- auth: "admin"
25743
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25744
- kind: "mutation",
25745
- auth: "admin"
25746
- });
26127
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25747
26128
  /**
25748
26129
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25749
26130
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -27992,8 +28373,6 @@ var WebrtcStreamChoiceSchema = object({
27992
28373
  ]).nullable(),
27993
28374
  /** Input FPS from the camera (null for adaptive). */
27994
28375
  inputFps: number().nullable(),
27995
- /** Decoded FPS (null for adaptive). */
27996
- decodeFps: number().nullable(),
27997
28376
  /** Bitrate in kbps (null for adaptive). */
27998
28377
  bitrateKbps: number().nullable()
27999
28378
  });
@@ -28325,6 +28704,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28325
28704
  */
28326
28705
  alive: boolean()
28327
28706
  })), method(object({
28707
+ deviceId: number().int().nonnegative(),
28708
+ sessionId: string(),
28709
+ downlinkMbps: number().nonnegative()
28710
+ }), object({
28711
+ outcome: _enum(["switching", "held"]),
28712
+ tier: CamProfileSchema.nullable(),
28713
+ reason: string()
28714
+ }), { kind: "mutation" }), method(object({
28328
28715
  deviceId: number().int().nonnegative(),
28329
28716
  sessionId: string()
28330
28717
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -32081,7 +32468,7 @@ var LocalInterfaceSchema = object({
32081
32468
  name: string(),
32082
32469
  family: _enum(["IPv4", "IPv6"]),
32083
32470
  address: string(),
32084
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
32471
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
32085
32472
  cidr: string(),
32086
32473
  /** OS netmask. Stable across calls so the SDK can hash on it. */
32087
32474
  netmask: string(),
@@ -32135,7 +32522,9 @@ var ConnectionEndpointSchema = object({
32135
32522
  "lan-ipv4",
32136
32523
  "lan-ipv6",
32137
32524
  "public",
32138
- "loopback"
32525
+ "loopback",
32526
+ "app-link",
32527
+ "custom"
32139
32528
  ]),
32140
32529
  /**
32141
32530
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32204,15 +32593,27 @@ var GetConnectionEndpointsResultSchema = object({
32204
32593
  localPort: AdvertisedLocalPortSchema
32205
32594
  });
32206
32595
  /**
32207
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
32208
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
32209
- * what AUTO currently picks, so the UI can show the effective value either way.
32596
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32597
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
32598
+ * so the UI can show it either way.
32210
32599
  */
32211
32600
  var NotificationEndpointSchema = object({
32212
32601
  /** The operator's explicit choice, or null for AUTO. */
32213
32602
  baseUrl: string().nullable(),
32214
- /** What the ranking currently resolves to (null when nothing is reachable). */
32215
- resolved: string().nullable()
32603
+ /**
32604
+ * The effective flagged address: the explicit choice, else (AUTO) the
32605
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
32606
+ * answered the public tunnel / mesh here, or null.
32607
+ */
32608
+ resolved: string().nullable(),
32609
+ /**
32610
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
32611
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
32612
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
32613
+ * hub advertises neither; the app link is then minted without `hub=`.
32614
+ * Absent on a pre-D709 hub.
32615
+ */
32616
+ appLinkHub: string().nullable()
32216
32617
  });
32217
32618
  /**
32218
32619
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -32225,6 +32626,72 @@ var ViewerEndpointsSchema = object({
32225
32626
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32226
32627
  resolved: array(string()).readonly()
32227
32628
  });
32629
+ /**
32630
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32631
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32632
+ * the `publicEndpoint` role; `override` is the flagged address.
32633
+ */
32634
+ var HubAddressSnapshotSchema = object({
32635
+ override: string().nullable(),
32636
+ resolved: string().nullable(),
32637
+ source: _enum([
32638
+ "override",
32639
+ "auto",
32640
+ "none"
32641
+ ])
32642
+ });
32643
+ var HubAddressesSchema = object({
32644
+ cluster: HubAddressSnapshotSchema,
32645
+ browser: HubAddressSnapshotSchema
32646
+ });
32647
+ /**
32648
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32649
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32650
+ * by at most one address.
32651
+ */
32652
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32653
+ var RoleSourceSchema = _enum([
32654
+ "flagged",
32655
+ "auto",
32656
+ "none"
32657
+ ]);
32658
+ /** One single-valued role: the flagged address, the one in use, and why. */
32659
+ var HubAddressRoleResolutionSchema = object({
32660
+ /** The address carrying the flag, or null = automatic. */
32661
+ flagged: string().nullable(),
32662
+ /** The address in use, or null when nothing qualifies (never loopback). */
32663
+ resolved: string().nullable(),
32664
+ source: RoleSourceSchema
32665
+ });
32666
+ var HubAppConnectionsResolutionSchema = object({
32667
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32668
+ flagged: array(string()).readonly(),
32669
+ /** What the apps race right now. */
32670
+ resolved: array(string()).readonly(),
32671
+ source: RoleSourceSchema
32672
+ });
32673
+ var HubAddressBookSchema = object({
32674
+ rows: array(ConnectionEndpointSchema.extend({
32675
+ /** In the hub's detected palette right now. */
32676
+ detected: boolean(),
32677
+ /** Entered by the operator (removable). */
32678
+ custom: boolean(),
32679
+ /** The roles explicitly flagged on this address. */
32680
+ flags: array(HubAddressRoleSchema).readonly(),
32681
+ /** The roles this address serves right now — flagged or automatic. */
32682
+ inUse: array(HubAddressRoleSchema).readonly(),
32683
+ /** The roles this address may be flagged with. */
32684
+ eligible: array(HubAddressRoleSchema).readonly()
32685
+ })).readonly(),
32686
+ roles: object({
32687
+ appConnections: HubAppConnectionsResolutionSchema,
32688
+ notificationTaps: HubAddressRoleResolutionSchema,
32689
+ internal: HubAddressRoleResolutionSchema,
32690
+ publicEndpoint: HubAddressRoleResolutionSchema
32691
+ }),
32692
+ /** The `hub=` an app link carries (D709), or null. */
32693
+ appLinkHub: string().nullable()
32694
+ });
32228
32695
  var AllowedAddressesSchema = object({
32229
32696
  /**
32230
32697
  * Allowlist of interface addresses operators have explicitly opted
@@ -32266,8 +32733,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32266
32733
  * Pass `'https'` when the caller is itself loaded over HTTPS
32267
32734
  * to avoid mixed-content blocks in the browser. The public
32268
32735
  * tunnel always emits `https://` regardless. */
32269
- scheme: _enum(["http", "https"]).optional()
32270
- }), 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, {
32736
+ scheme: _enum(["http", "https"]).optional(),
32737
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32738
+ * an address notification taps can be flagged with, not a hub
32739
+ * route. Default `false`: racers and rankers never see it. */
32740
+ includeAppLink: boolean().optional()
32741
+ }), 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({
32742
+ baseUrl: string(),
32743
+ label: string().max(80)
32744
+ }), HubAddressBookSchema, {
32745
+ kind: "mutation",
32746
+ auth: "admin"
32747
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
32748
+ kind: "mutation",
32749
+ auth: "admin"
32750
+ }), method(object({
32751
+ role: HubAddressRoleSchema,
32752
+ baseUrl: string().nullable(),
32753
+ enabled: boolean(),
32754
+ acceptInsecureHttp: boolean().optional()
32755
+ }), HubAddressBookSchema, {
32756
+ kind: "mutation",
32757
+ auth: "admin"
32758
+ }), 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, {
32271
32759
  kind: "mutation",
32272
32760
  auth: "admin"
32273
32761
  }), method(object({
@@ -32595,7 +33083,7 @@ var MeshPeerSchema = object({
32595
33083
  tags: array(string()).readonly(),
32596
33084
  /** True when the peer advertises itself as an exit-node candidate. */
32597
33085
  exitNodeOption: boolean(),
32598
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
33086
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
32599
33087
  advertisedRoutes: array(string()).readonly(),
32600
33088
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
32601
33089
  userLogin: string().nullable(),
@@ -32725,7 +33213,8 @@ var MotionStatusSchema = object({
32725
33213
  * writes this slice (not even a boot seed), and neither does the runner's
32726
33214
  * phase machine: its phase is "a session is attached" for every on-motion
32727
33215
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32728
- * A provider's `isDetected` answers from the hub's slice.
33216
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33217
+ * (`hubMotionNativeProvider`).
32729
33218
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32730
33219
  * imports) — the provider pushes both edges itself, from the upstream
32731
33220
  * system's own state change. That is the sensor's own fact.
@@ -33923,7 +34412,13 @@ var OsdStatusSchema = object({ overlays: array(object({
33923
34412
  */
33924
34413
  availablePositions: array(OsdPositionEnum).readonly(),
33925
34414
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
33926
- readOnly: boolean().optional()
34415
+ readOnly: boolean().optional(),
34416
+ /**
34417
+ * Firmware text ceiling for this overlay. Absent = no known limit.
34418
+ * The OSD manager truncates here on every write — never stores its own
34419
+ * copy on the binding.
34420
+ */
34421
+ maxCharacters: number().int().positive().optional()
33927
34422
  })).readonly() });
33928
34423
  var OsdOverlayPatchSchema = object({
33929
34424
  enabled: boolean().optional(),
@@ -33974,7 +34469,9 @@ var OsdTemplateBindingSchema = object({
33974
34469
  valuePath: string().min(1).max(64),
33975
34470
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
33976
34471
  displayUnit: string().max(16).optional(),
33977
- maxDecimals: number().int().min(0).max(4).default(1)
34472
+ maxDecimals: number().int().min(0).max(4).default(1),
34473
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
34474
+ valueMap: record(string(), string()).optional()
33978
34475
  });
33979
34476
  /**
33980
34477
  * A named template: bindings (alias → leaf field) + a parser that
@@ -34024,18 +34521,11 @@ var OsdSlotBindingSchema = object({
34024
34521
  source: OsdSourceSchema,
34025
34522
  /** `${value}` and `${unit}` are substituted; every occurrence. */
34026
34523
  template: string().max(96).default("${value}"),
34027
- /** Truncate with an ellipsis past this length. Absent = no limit. */
34028
- maxCharacters: number().int().min(4).max(64).optional(),
34029
34524
  /**
34030
34525
  * Decimal places for a numeric value. `0` yields an integer — the
34031
34526
  * documented workaround for firmwares that reject `.` in overlay text.
34032
34527
  */
34033
34528
  maxDecimals: number().int().min(0).max(4).default(1),
34034
- /**
34035
- * Appended via `${unit}` when no unit conversion produces a label.
34036
- * Prefer `source.displayUnit` for converted device-state values.
34037
- */
34038
- unitLabel: string().max(8).optional(),
34039
34529
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
34040
34530
  valueMap: record(string(), string()).optional(),
34041
34531
  /** Time windows in which the slot is shown. Absent = always. */
@@ -34044,9 +34534,7 @@ var OsdSlotBindingSchema = object({
34044
34534
  * Display gate, in the notification centre's condition vocabulary.
34045
34535
  * Only the keys reported by `getConditionSupport` are accepted.
34046
34536
  */
34047
- conditions: NcConditionsSchema.optional(),
34048
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
34049
- fallbackText: string().max(64).default("")
34537
+ conditions: NcConditionsSchema.optional()
34050
34538
  });
34051
34539
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
34052
34540
  var OsdSlotViewSchema = object({
@@ -39273,6 +39761,16 @@ var zoneRulesCapability = {
39273
39761
  durability: "restored"
39274
39762
  };
39275
39763
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39764
+ Object.freeze({
39765
+ person: .5,
39766
+ vehicle: .5,
39767
+ animal: .5
39768
+ });
39769
+ Object.freeze({
39770
+ person: .65,
39771
+ vehicle: .65,
39772
+ animal: .65
39773
+ });
39276
39774
  /**
39277
39775
  * Accessory device helpers — shared across drivers.
39278
39776
  *
@@ -42153,90 +42651,18 @@ Object.freeze({
42153
42651
  addonId: null,
42154
42652
  access: "create"
42155
42653
  },
42156
- "decoder.createSession": {
42157
- capName: "decoder",
42158
- capScope: "system",
42159
- addonId: null,
42160
- access: "view"
42161
- },
42162
- "decoder.destroySession": {
42163
- capName: "decoder",
42164
- capScope: "system",
42165
- addonId: null,
42166
- access: "delete"
42167
- },
42168
- "decoder.getFrame": {
42169
- capName: "decoder",
42170
- capScope: "system",
42171
- addonId: null,
42172
- access: "view"
42173
- },
42174
42654
  "decoder.getInfo": {
42175
42655
  capName: "decoder",
42176
42656
  capScope: "system",
42177
42657
  addonId: null,
42178
42658
  access: "view"
42179
42659
  },
42180
- "decoder.getShmStats": {
42181
- capName: "decoder",
42182
- capScope: "system",
42183
- addonId: null,
42184
- access: "view"
42185
- },
42186
- "decoder.getStats": {
42187
- capName: "decoder",
42188
- capScope: "system",
42189
- addonId: null,
42190
- access: "view"
42191
- },
42192
- "decoder.listActiveSessions": {
42193
- capName: "decoder",
42194
- capScope: "system",
42195
- addonId: null,
42196
- access: "view"
42197
- },
42198
- "decoder.openStream": {
42199
- capName: "decoder",
42200
- capScope: "system",
42201
- addonId: null,
42202
- access: "view"
42203
- },
42204
- "decoder.pullFrames": {
42205
- capName: "decoder",
42206
- capScope: "system",
42207
- addonId: null,
42208
- access: "view"
42209
- },
42210
- "decoder.pullHandles": {
42211
- capName: "decoder",
42212
- capScope: "system",
42213
- addonId: null,
42214
- access: "view"
42215
- },
42216
- "decoder.pushPacket": {
42217
- capName: "decoder",
42218
- capScope: "system",
42219
- addonId: null,
42220
- access: "view"
42221
- },
42222
42660
  "decoder.reprobeHwaccel": {
42223
42661
  capName: "decoder",
42224
42662
  capScope: "system",
42225
42663
  addonId: null,
42226
42664
  access: "create"
42227
42665
  },
42228
- "decoder.supportsCodec": {
42229
- capName: "decoder",
42230
- capScope: "system",
42231
- addonId: null,
42232
- access: "view"
42233
- },
42234
- "decoder.updateConfig": {
42235
- capName: "decoder",
42236
- capScope: "system",
42237
- addonId: null,
42238
- access: "view"
42239
- },
42240
42666
  "detectionPipeline.applyDeviceSettingsPatch": {
42241
42667
  capName: "detection-pipeline",
42242
42668
  capScope: "device",
@@ -43725,12 +44151,24 @@ Object.freeze({
43725
44151
  addonId: null,
43726
44152
  access: "view"
43727
44153
  },
44154
+ "localNetwork.addCustomAddress": {
44155
+ capName: "local-network",
44156
+ capScope: "system",
44157
+ addonId: null,
44158
+ access: "create"
44159
+ },
43728
44160
  "localNetwork.downloadCa": {
43729
44161
  capName: "local-network",
43730
44162
  capScope: "system",
43731
44163
  addonId: null,
43732
44164
  access: "view"
43733
44165
  },
44166
+ "localNetwork.getAddresses": {
44167
+ capName: "local-network",
44168
+ capScope: "system",
44169
+ addonId: null,
44170
+ access: "view"
44171
+ },
43734
44172
  "localNetwork.getAllowedAddresses": {
43735
44173
  capName: "local-network",
43736
44174
  capScope: "system",
@@ -43743,6 +44181,12 @@ Object.freeze({
43743
44181
  addonId: null,
43744
44182
  access: "view"
43745
44183
  },
44184
+ "localNetwork.getHubAddresses": {
44185
+ capName: "local-network",
44186
+ capScope: "system",
44187
+ addonId: null,
44188
+ access: "view"
44189
+ },
43746
44190
  "localNetwork.getNotificationEndpoint": {
43747
44191
  capName: "local-network",
43748
44192
  capScope: "system",
@@ -43779,6 +44223,12 @@ Object.freeze({
43779
44223
  addonId: null,
43780
44224
  access: "create"
43781
44225
  },
44226
+ "localNetwork.removeCustomAddress": {
44227
+ capName: "local-network",
44228
+ capScope: "system",
44229
+ addonId: null,
44230
+ access: "delete"
44231
+ },
43782
44232
  "localNetwork.resetAllowlistToBestMatch": {
43783
44233
  capName: "local-network",
43784
44234
  capScope: "system",
@@ -43791,6 +44241,12 @@ Object.freeze({
43791
44241
  addonId: null,
43792
44242
  access: "create"
43793
44243
  },
44244
+ "localNetwork.setAddressRole": {
44245
+ capName: "local-network",
44246
+ capScope: "system",
44247
+ addonId: null,
44248
+ access: "create"
44249
+ },
43794
44250
  "localNetwork.setAllowedAddresses": {
43795
44251
  capName: "local-network",
43796
44252
  capScope: "system",
@@ -45285,13 +45741,13 @@ Object.freeze({
45285
45741
  addonId: null,
45286
45742
  access: "delete"
45287
45743
  },
45288
- "pipelineExecutor.deleteModel": {
45744
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45289
45745
  capName: "pipeline-executor",
45290
45746
  capScope: "system",
45291
45747
  addonId: null,
45292
45748
  access: "delete"
45293
45749
  },
45294
- "pipelineExecutor.deleteTemplate": {
45750
+ "pipelineExecutor.deleteModel": {
45295
45751
  capName: "pipeline-executor",
45296
45752
  capScope: "system",
45297
45753
  addonId: null,
@@ -45435,12 +45891,6 @@ Object.freeze({
45435
45891
  addonId: null,
45436
45892
  access: "view"
45437
45893
  },
45438
- "pipelineExecutor.listTemplates": {
45439
- capName: "pipeline-executor",
45440
- capScope: "system",
45441
- addonId: null,
45442
- access: "view"
45443
- },
45444
45894
  "pipelineExecutor.rearmInferenceDevice": {
45445
45895
  capName: "pipeline-executor",
45446
45896
  capScope: "system",
@@ -45465,12 +45915,6 @@ Object.freeze({
45465
45915
  addonId: null,
45466
45916
  access: "create"
45467
45917
  },
45468
- "pipelineExecutor.saveTemplate": {
45469
- capName: "pipeline-executor",
45470
- capScope: "system",
45471
- addonId: null,
45472
- access: "create"
45473
- },
45474
45918
  "pipelineExecutor.setVideoPipelineSteps": {
45475
45919
  capName: "pipeline-executor",
45476
45920
  capScope: "system",
@@ -45489,41 +45933,35 @@ Object.freeze({
45489
45933
  addonId: null,
45490
45934
  access: "create"
45491
45935
  },
45492
- "pipelineExecutor.updateTemplate": {
45493
- capName: "pipeline-executor",
45494
- capScope: "system",
45495
- addonId: null,
45496
- access: "create"
45497
- },
45498
45936
  "pipelineExecutor.validatePipeline": {
45499
45937
  capName: "pipeline-executor",
45500
45938
  capScope: "system",
45501
45939
  addonId: null,
45502
45940
  access: "view"
45503
45941
  },
45504
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
45942
+ "pipelineOrchestrator.applyAutoTune": {
45505
45943
  capName: "pipeline-orchestrator",
45506
45944
  capScope: "system",
45507
45945
  addonId: null,
45508
45946
  access: "create"
45509
45947
  },
45510
- "pipelineOrchestrator.assignAudio": {
45948
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45511
45949
  capName: "pipeline-orchestrator",
45512
45950
  capScope: "system",
45513
45951
  addonId: null,
45514
45952
  access: "create"
45515
45953
  },
45516
- "pipelineOrchestrator.assignPipeline": {
45954
+ "pipelineOrchestrator.assignAudio": {
45517
45955
  capName: "pipeline-orchestrator",
45518
45956
  capScope: "system",
45519
45957
  addonId: null,
45520
45958
  access: "create"
45521
45959
  },
45522
- "pipelineOrchestrator.deleteTemplate": {
45960
+ "pipelineOrchestrator.assignPipeline": {
45523
45961
  capName: "pipeline-orchestrator",
45524
45962
  capScope: "system",
45525
45963
  addonId: null,
45526
- access: "delete"
45964
+ access: "create"
45527
45965
  },
45528
45966
  "pipelineOrchestrator.getAgentLoad": {
45529
45967
  capName: "pipeline-orchestrator",
@@ -45615,6 +46053,12 @@ Object.freeze({
45615
46053
  addonId: null,
45616
46054
  access: "view"
45617
46055
  },
46056
+ "pipelineOrchestrator.getEffectiveShares": {
46057
+ capName: "pipeline-orchestrator",
46058
+ capScope: "system",
46059
+ addonId: null,
46060
+ access: "view"
46061
+ },
45618
46062
  "pipelineOrchestrator.getGlobalMetrics": {
45619
46063
  capName: "pipeline-orchestrator",
45620
46064
  capScope: "system",
@@ -45651,19 +46095,19 @@ Object.freeze({
45651
46095
  addonId: null,
45652
46096
  access: "view"
45653
46097
  },
45654
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46098
+ "pipelineOrchestrator.getPlacementStats": {
45655
46099
  capName: "pipeline-orchestrator",
45656
46100
  capScope: "system",
45657
46101
  addonId: null,
45658
46102
  access: "view"
45659
46103
  },
45660
- "pipelineOrchestrator.listAgentSettings": {
46104
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45661
46105
  capName: "pipeline-orchestrator",
45662
46106
  capScope: "system",
45663
46107
  addonId: null,
45664
46108
  access: "view"
45665
46109
  },
45666
- "pipelineOrchestrator.listTemplates": {
46110
+ "pipelineOrchestrator.listAgentSettings": {
45667
46111
  capName: "pipeline-orchestrator",
45668
46112
  capScope: "system",
45669
46113
  addonId: null,
@@ -45675,6 +46119,12 @@ Object.freeze({
45675
46119
  addonId: null,
45676
46120
  access: "create"
45677
46121
  },
46122
+ "pipelineOrchestrator.planAutoTune": {
46123
+ capName: "pipeline-orchestrator",
46124
+ capScope: "system",
46125
+ addonId: null,
46126
+ access: "view"
46127
+ },
45678
46128
  "pipelineOrchestrator.rebalance": {
45679
46129
  capName: "pipeline-orchestrator",
45680
46130
  capScope: "system",
@@ -45717,12 +46167,6 @@ Object.freeze({
45717
46167
  addonId: null,
45718
46168
  access: "create"
45719
46169
  },
45720
- "pipelineOrchestrator.saveTemplate": {
45721
- capName: "pipeline-orchestrator",
45722
- capScope: "system",
45723
- addonId: null,
45724
- access: "create"
45725
- },
45726
46170
  "pipelineOrchestrator.setAgentCapabilities": {
45727
46171
  capName: "pipeline-orchestrator",
45728
46172
  capScope: "system",
@@ -45735,12 +46179,6 @@ Object.freeze({
45735
46179
  addonId: null,
45736
46180
  access: "create"
45737
46181
  },
45738
- "pipelineOrchestrator.setAgentDetectWeight": {
45739
- capName: "pipeline-orchestrator",
45740
- capScope: "system",
45741
- addonId: null,
45742
- access: "create"
45743
- },
45744
46182
  "pipelineOrchestrator.setAgentInferenceDevices": {
45745
46183
  capName: "pipeline-orchestrator",
45746
46184
  capScope: "system",
@@ -45777,6 +46215,12 @@ Object.freeze({
45777
46215
  addonId: null,
45778
46216
  access: "create"
45779
46217
  },
46218
+ "pipelineOrchestrator.setCameraStepSettings": {
46219
+ capName: "pipeline-orchestrator",
46220
+ capScope: "system",
46221
+ addonId: null,
46222
+ access: "create"
46223
+ },
45780
46224
  "pipelineOrchestrator.setCameraStepToggle": {
45781
46225
  capName: "pipeline-orchestrator",
45782
46226
  capScope: "system",
@@ -45795,25 +46239,37 @@ Object.freeze({
45795
46239
  addonId: null,
45796
46240
  access: "create"
45797
46241
  },
46242
+ "pipelineOrchestrator.setLoadBalancingShares": {
46243
+ capName: "pipeline-orchestrator",
46244
+ capScope: "system",
46245
+ addonId: null,
46246
+ access: "create"
46247
+ },
45798
46248
  "pipelineOrchestrator.setPipelineDevicePin": {
45799
46249
  capName: "pipeline-orchestrator",
45800
46250
  capScope: "system",
45801
46251
  addonId: null,
45802
46252
  access: "create"
45803
46253
  },
45804
- "pipelineOrchestrator.unassignAudio": {
46254
+ "pipelineOrchestrator.setShareSource": {
45805
46255
  capName: "pipeline-orchestrator",
45806
46256
  capScope: "system",
45807
46257
  addonId: null,
45808
46258
  access: "create"
45809
46259
  },
45810
- "pipelineOrchestrator.unassignPipeline": {
46260
+ "pipelineOrchestrator.suggestShares": {
46261
+ capName: "pipeline-orchestrator",
46262
+ capScope: "system",
46263
+ addonId: null,
46264
+ access: "view"
46265
+ },
46266
+ "pipelineOrchestrator.unassignAudio": {
45811
46267
  capName: "pipeline-orchestrator",
45812
46268
  capScope: "system",
45813
46269
  addonId: null,
45814
46270
  access: "create"
45815
46271
  },
45816
- "pipelineOrchestrator.updateTemplate": {
46272
+ "pipelineOrchestrator.unassignPipeline": {
45817
46273
  capName: "pipeline-orchestrator",
45818
46274
  capScope: "system",
45819
46275
  addonId: null,
@@ -47253,12 +47709,6 @@ Object.freeze({
47253
47709
  addonId: null,
47254
47710
  access: "view"
47255
47711
  },
47256
- "streamBroker.pullFrameHandles": {
47257
- capName: "stream-broker",
47258
- capScope: "system",
47259
- addonId: null,
47260
- access: "view"
47261
- },
47262
47712
  "streamBroker.regenerateRtspToken": {
47263
47713
  capName: "stream-broker",
47264
47714
  capScope: "system",
@@ -47325,12 +47775,6 @@ Object.freeze({
47325
47775
  addonId: null,
47326
47776
  access: "create"
47327
47777
  },
47328
- "streamBroker.subscribeFrames": {
47329
- capName: "stream-broker",
47330
- capScope: "system",
47331
- addonId: null,
47332
- access: "create"
47333
- },
47334
47778
  "streamBroker.unassignProfile": {
47335
47779
  capName: "stream-broker",
47336
47780
  capScope: "system",
@@ -47343,12 +47787,6 @@ Object.freeze({
47343
47787
  addonId: null,
47344
47788
  access: "create"
47345
47789
  },
47346
- "streamBroker.unsubscribeFrames": {
47347
- capName: "stream-broker",
47348
- capScope: "system",
47349
- addonId: null,
47350
- access: "create"
47351
- },
47352
47790
  "streamCatalog.getCatalog": {
47353
47791
  capName: "stream-catalog",
47354
47792
  capScope: "device",
@@ -48045,6 +48483,12 @@ Object.freeze({
48045
48483
  addonId: null,
48046
48484
  access: "create"
48047
48485
  },
48486
+ "webrtcSession.applyDownlinkProbe": {
48487
+ capName: "webrtc-session",
48488
+ capScope: "device",
48489
+ addonId: null,
48490
+ access: "create"
48491
+ },
48048
48492
  "webrtcSession.closeSession": {
48049
48493
  capName: "webrtc-session",
48050
48494
  capScope: "device",
@@ -49856,11 +50300,6 @@ Object.freeze({
49856
50300
  form: "single",
49857
50301
  optional: false
49858
50302
  }],
49859
- "decoder.createSession": [{
49860
- name: "deviceId",
49861
- form: "single",
49862
- optional: true
49863
- }],
49864
50303
  "detectionPipeline.applyDeviceSettingsPatch": [{
49865
50304
  name: "deviceId",
49866
50305
  form: "single",
@@ -51091,6 +51530,11 @@ Object.freeze({
51091
51530
  form: "single",
51092
51531
  optional: false
51093
51532
  }],
51533
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51534
+ name: "deviceIds",
51535
+ form: "array",
51536
+ optional: true
51537
+ }],
51094
51538
  "pipelineExecutor.runPipeline": [{
51095
51539
  name: "deviceId",
51096
51540
  form: "single",
@@ -51196,6 +51640,11 @@ Object.freeze({
51196
51640
  form: "single",
51197
51641
  optional: false
51198
51642
  }],
51643
+ "pipelineOrchestrator.setCameraStepSettings": [{
51644
+ name: "deviceId",
51645
+ form: "single",
51646
+ optional: false
51647
+ }],
51199
51648
  "pipelineOrchestrator.setCameraStepToggle": [{
51200
51649
  name: "deviceId",
51201
51650
  form: "single",
@@ -51967,6 +52416,11 @@ Object.freeze({
51967
52416
  form: "single",
51968
52417
  optional: false
51969
52418
  }],
52419
+ "webrtcSession.applyDownlinkProbe": [{
52420
+ name: "deviceId",
52421
+ form: "single",
52422
+ optional: false
52423
+ }],
51970
52424
  "webrtcSession.closeSession": [{
51971
52425
  name: "deviceId",
51972
52426
  form: "single",
@@ -52196,6 +52650,8 @@ new Map(Object.entries({
52196
52650
  "detection-blind": "device-events",
52197
52651
  "node-online": "system",
52198
52652
  "node-offline": "system",
52653
+ "node-restarting": "system",
52654
+ "node-updating": "system",
52199
52655
  "node-inference-unavailable": "system",
52200
52656
  "addon-crash-loop": "system",
52201
52657
  "addon-update-available": "system",
@@ -52273,18 +52729,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52273
52729
  kinds: [
52274
52730
  "node-offline",
52275
52731
  "node-online",
52732
+ "node-restarting",
52276
52733
  "node-inference-unavailable"
52277
52734
  ]
52278
52735
  },
52279
52736
  {
52280
52737
  id: "addons",
52281
52738
  family: "system",
52282
- label: "Addons",
52283
- kinds: [
52284
- "addon-crash-loop",
52285
- "addon-update-available",
52286
- "addon-updated"
52287
- ]
52739
+ label: "Addons stopped",
52740
+ kinds: ["addon-crash-loop"]
52741
+ },
52742
+ {
52743
+ id: "addon-updates",
52744
+ family: "system",
52745
+ label: "Addon updates",
52746
+ kinds: ["addon-update-available", "addon-updated"]
52288
52747
  },
52289
52748
  {
52290
52749
  id: "updates",
@@ -52292,6 +52751,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52292
52751
  label: "Server & container updates",
52293
52752
  kinds: [
52294
52753
  "server-update-available",
52754
+ "node-updating",
52295
52755
  "server-updated",
52296
52756
  "wrapper-update-available"
52297
52757
  ]
@@ -52439,18 +52899,21 @@ var STATE_SUMMARY_SECTION_VARS = [
52439
52899
  kinds: [
52440
52900
  "node-offline",
52441
52901
  "node-online",
52902
+ "node-restarting",
52442
52903
  "node-inference-unavailable"
52443
52904
  ]
52444
52905
  },
52445
52906
  {
52446
52907
  name: "summaryAddons",
52447
- label: "Summary: addons",
52448
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
52449
- kinds: [
52450
- "addon-crash-loop",
52451
- "addon-update-available",
52452
- "addon-updated"
52453
- ]
52908
+ label: "Summary: addons stopped",
52909
+ example: "hub — recorder stopped after repeated crashes",
52910
+ kinds: ["addon-crash-loop"]
52911
+ },
52912
+ {
52913
+ name: "summaryAddonUpdates",
52914
+ label: "Summary: addon updates",
52915
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
52916
+ kinds: ["addon-update-available", "addon-updated"]
52454
52917
  },
52455
52918
  {
52456
52919
  name: "summaryUpdates",
@@ -52458,6 +52921,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52458
52921
  example: "server 1.2.377 → 1.2.378",
52459
52922
  kinds: [
52460
52923
  "server-update-available",
52924
+ "node-updating",
52461
52925
  "server-updated",
52462
52926
  "wrapper-update-available"
52463
52927
  ]
@@ -52490,7 +52954,7 @@ var STATE_SUMMARY_VARS = [
52490
52954
  {
52491
52955
  name: "summarySection",
52492
52956
  label: "Summary: this section",
52493
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
52957
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52494
52958
  example: "Batterie scariche",
52495
52959
  group: "system",
52496
52960
  families: ["rule"],
@@ -52534,6 +52998,7 @@ var STATE_SUMMARY_VARS = [
52534
52998
  [...RULE_BODY_ONLY],
52535
52999
  [...RULE_TEXT],
52536
53000
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
53001
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
52537
53002
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
52538
53003
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
52539
53004
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -52574,6 +53039,8 @@ var STATE_SUMMARY_VARS = [
52574
53039
  [...RULE_TEXT],
52575
53040
  [...RULE_TEXT],
52576
53041
  [...RULE_TEXT],
53042
+ [...RULE_TEXT],
53043
+ [...RULE_TEXT],
52577
53044
  ...STATE_SUMMARY_VARS
52578
53045
  ];
52579
53046
  new Set([
@@ -53300,7 +53767,7 @@ function buildConnectionFormSchema() {
53300
53767
  key: "host",
53301
53768
  label: "Host / IP",
53302
53769
  required: true,
53303
- placeholder: "192.168.x.x"
53770
+ placeholder: "192.168.10.50"
53304
53771
  }]
53305
53772
  },
53306
53773
  {