@camstack/addon-provider-petkit 0.2.118 → 0.2.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +999 -532
  2. package/dist/addon.mjs +999 -532
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1101,7 +1101,7 @@ var Nodepetkit = class {
1101
1101
  }
1102
1102
  };
1103
1103
  //#endregion
1104
- //#region ../types/dist/event-category-BGmz_oxW.mjs
1104
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
1105
1105
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
1106
1106
  EventCategory["SystemBoot"] = "system.boot";
1107
1107
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1602,15 +1602,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1602
1602
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
1603
1603
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
1604
1604
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
1605
- /**
1606
- * Per-agent hwaccel preference changed (user override set, cleared, or
1607
- * re-probed). Observability event — decoders pull the current pref at
1608
- * `createSession`, so running sessions keep their current backend until
1609
- * they rotate naturally (camera add/remove, stream restart). Future
1610
- * work can wire a listener in stream-broker that force-rotates live
1611
- * sessions; for now this event powers logs + admin-UI toast feedback.
1612
- */
1613
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
1614
1605
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
1615
1606
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
1616
1607
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -6481,7 +6472,7 @@ var ZodIssueCode = {
6481
6472
  var ZodFirstPartyTypeKind;
6482
6473
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6483
6474
  //#endregion
6484
- //#region ../types/dist/sleep-DXKLNFvA.mjs
6475
+ //#region ../types/dist/sleep-BNeXenvr.mjs
6485
6476
  /**
6486
6477
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6487
6478
  * window to float samples (D455).
@@ -7847,32 +7838,12 @@ object({
7847
7838
  audioCodec: string().optional(),
7848
7839
  metadata: record(string(), unknown()).readonly().optional()
7849
7840
  });
7850
- var EncodedPacketSchema = object({
7851
- type: _enum(["video", "audio"]),
7852
- data: _instanceof(Uint8Array),
7853
- pts: number(),
7854
- dts: number(),
7855
- keyframe: boolean(),
7856
- codec: string()
7857
- });
7858
- var DecodedFrameSchema = object({
7859
- data: _instanceof(Uint8Array),
7860
- width: number(),
7861
- height: number(),
7862
- format: _enum([
7863
- "jpeg",
7864
- "rgb",
7865
- "bgr",
7866
- "yuv420",
7867
- "gray"
7868
- ]),
7869
- timestamp: number()
7870
- });
7871
7841
  /**
7872
7842
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
7873
7843
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
7874
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
7875
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
7844
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
7845
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
7846
+ * over tRPC / Moleculer.
7876
7847
  *
7877
7848
  * The `satisfies` assertion below pins this schema to the interface: if a
7878
7849
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -7898,50 +7869,6 @@ var FrameHandleSchema = object({
7898
7869
  slotCount: number().int().positive()
7899
7870
  });
7900
7871
  /**
7901
- * Pixel format a frame-handle subscriber can request from the broker
7902
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
7903
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
7904
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
7905
- * payload, and no decoded-frame consumer requests it over the shm plane.
7906
- */
7907
- var FrameHandleFormatSchema = _enum([
7908
- "rgb",
7909
- "bgr",
7910
- "yuv420",
7911
- "gray"
7912
- ]);
7913
- /**
7914
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
7915
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
7916
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
7917
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
7918
- * they asked for with no broker-side conversion.
7919
- */
7920
- var SubscribeFramesInputSchema = object({
7921
- brokerId: string(),
7922
- format: FrameHandleFormatSchema,
7923
- /**
7924
- * Optional reader-side cadence hint in frames per second. The broker does
7925
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
7926
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
7927
- * the consumer can pace its own `pullFrameHandles` polling.
7928
- */
7929
- maxFps: number().positive().optional(),
7930
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
7931
- tag: string().optional()
7932
- });
7933
- /**
7934
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
7935
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
7936
- * `FrameHandle` to a `FrameRingReader`.
7937
- */
7938
- var SubscribeFramesResultSchema = object({
7939
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
7940
- subscriptionId: string(),
7941
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
7942
- maxFps: number().nonnegative()
7943
- });
7944
- /**
7945
7872
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
7946
7873
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
7947
7874
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -7949,8 +7876,8 @@ var SubscribeFramesResultSchema = object({
7949
7876
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
7950
7877
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
7951
7878
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
7952
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
7953
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
7879
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
7880
+ * it.
7954
7881
  */
7955
7882
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
7956
7883
  var DecodedAudioChunkSchema = object({
@@ -7968,11 +7895,10 @@ var DecodedAudioChunkSchema = object({
7968
7895
  format: AudioChunkFormatSchema.optional()
7969
7896
  });
7970
7897
  /**
7971
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
7972
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
7973
- * asks the broker for the decoded audio-chunk stream of one broker; the
7974
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
7975
- * `pullAudioChunks`.
7898
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
7899
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
7900
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
7901
+ * the consumer drains via `pullAudioChunks`.
7976
7902
  */
7977
7903
  var SubscribeAudioChunksInputSchema = object({
7978
7904
  brokerId: string(),
@@ -8003,9 +7929,7 @@ var BrokerStatsSchema = object({
8003
7929
  "stopped"
8004
7930
  ]),
8005
7931
  inputFps: number(),
8006
- decodeFps: number(),
8007
7932
  encodedSubscribers: number(),
8008
- decodedSubscribers: number(),
8009
7933
  uptimeMs: number(),
8010
7934
  bitrateKbps: number(),
8011
7935
  idrIntervalMs: number(),
@@ -8018,14 +7942,6 @@ var BrokerStatsSchema = object({
8018
7942
  preBufferMs: number(),
8019
7943
  preBufferPackets: number(),
8020
7944
  /**
8021
- * Moleculer node id of the decoder provider currently servicing this
8022
- * stream's decoded subscribers. `null` until the deferred decoder is
8023
- * created (no decoded clients yet, or codec not detected). Surfaces the
8024
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
8025
- * a separate cap call per broker.
8026
- */
8027
- decoderNodeId: string().nullable(),
8028
- /**
8029
7945
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
8030
7946
  * when the stream has no audio track or the broker is in cold start.
8031
7947
  * `supported = false` means the codec was detected but the local
@@ -11361,70 +11277,6 @@ var StorageLocationDeclarationSchema = object({
11361
11277
  "backup"
11362
11278
  ]).optional()
11363
11279
  });
11364
- var DecoderStatsSchema = object({
11365
- inputFps: number(),
11366
- outputFps: number(),
11367
- avgDecodeTimeMs: number(),
11368
- droppedFrames: number(),
11369
- /**
11370
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
11371
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
11372
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
11373
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
11374
- */
11375
- lagMs: number().optional(),
11376
- effectiveFps: number().optional(),
11377
- adaptiveFps: number().optional()
11378
- });
11379
- var DecoderSessionConfigSchema = object({
11380
- codec: string(),
11381
- maxFps: number().default(0),
11382
- outputFormat: _enum([
11383
- "jpeg",
11384
- "rgb",
11385
- "bgr",
11386
- "yuv420",
11387
- "gray"
11388
- ]).default("jpeg"),
11389
- scale: number().default(1),
11390
- width: number().optional(),
11391
- height: number().optional(),
11392
- /**
11393
- * Identifier of the camera this decoder session serves. Optional
11394
- * because the cap is generic (any caller could request decode), but
11395
- * stream-broker passes it so decoder logs include `deviceId` for
11396
- * per-camera filtering when diagnosing failures (e.g. node-av
11397
- * sendPacket errors on a single hung camera).
11398
- */
11399
- deviceId: number().int().nonnegative().optional(),
11400
- /**
11401
- * Free-form tag for log scoping. Stream-broker uses
11402
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
11403
- * on every line so `grep tag=broker:5/high` filters one camera
11404
- * profile cleanly.
11405
- */
11406
- tag: string().optional(),
11407
- /**
11408
- * Where the session delivers decoded frames (Phase 5 / D9):
11409
- *
11410
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
11411
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
11412
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
11413
- * into an OS shared-memory ring and drained as zero-pixel
11414
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
11415
- * other — `pullFrames` returns nothing for an `'shm'` session and
11416
- * `pullHandles` returns nothing for a `'callback'` session.
11417
- */
11418
- frameSink: _enum(["callback", "shm"]).default("callback"),
11419
- /**
11420
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
11421
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
11422
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
11423
- * stream-broker's `streamingDebug` gate — off by default so production logs
11424
- * stay quiet and the emit path pays zero per-frame cost when disabled.
11425
- */
11426
- debug: boolean().optional()
11427
- });
11428
11280
  /**
11429
11281
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
11430
11282
  * an addon declares its channels in.
@@ -11567,6 +11419,26 @@ var ClipSearchStrictnessSchema = _enum([
11567
11419
  "balanced",
11568
11420
  "strict"
11569
11421
  ]);
11422
+ /** Steps whose effect a root label can BE. */
11423
+ var LABEL_SUPPLY_STEP_IDS = [
11424
+ "animal-classifier",
11425
+ "vehicle-classifier",
11426
+ "package-detection"
11427
+ ];
11428
+ /** Steps whose box a root detection can BE. */
11429
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
11430
+ /**
11431
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
11432
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
11433
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
11434
+ * no camera tree carries.)
11435
+ */
11436
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
11437
+ [
11438
+ ...LABEL_SUPPLY_STEP_IDS,
11439
+ ...CROP_SUPPLY_STEP_IDS,
11440
+ ...MASK_SUPPLY_STEP_IDS
11441
+ ];
11570
11442
  var MODEL_FORMATS = [
11571
11443
  "onnx",
11572
11444
  "coreml",
@@ -11595,7 +11467,53 @@ var ModelFormatEntrySchema = object({
11595
11467
  /** Multi-file payload (directory members or sibling files). */
11596
11468
  files: array(string()).readonly().optional(),
11597
11469
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
11598
- runtimes: array(_enum(["python"])).readonly().optional()
11470
+ runtimes: array(_enum(["python"])).readonly().optional(),
11471
+ /**
11472
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
11473
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
11474
+ * weight file) comes from the downloader's generated table, kept in step
11475
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
11476
+ * node records the revision it downloaded next to the file
11477
+ * (`<file>.revision`); a copy with no record or a different one is stale
11478
+ * unless its weight file hashes to the revision, and a stale copy is
11479
+ * downloaded again, the old one serving until the new one is complete. No
11480
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
11481
+ */
11482
+ revision: string().min(1).optional()
11483
+ });
11484
+ /**
11485
+ * What a node holds for one (model, format) (D746). `current` is a complete
11486
+ * copy at its catalog revision — exactly what `downloaded: true` means.
11487
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
11488
+ * no or a different revision record, or a missing sibling. `missing` is no
11489
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
11490
+ * reclaimable bytes and a copy about to be replaced.
11491
+ */
11492
+ var ModelOnDiskStateSchema = _enum([
11493
+ "current",
11494
+ "stale",
11495
+ "missing"
11496
+ ]);
11497
+ /**
11498
+ * The numeric precision of one format's BUILD (D746) — reported only when the
11499
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
11500
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
11501
+ */
11502
+ var ModelFormatPrecisionSchema = _enum([
11503
+ "fp32",
11504
+ "fp16",
11505
+ "int8"
11506
+ ]);
11507
+ /**
11508
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
11509
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
11510
+ * them omits them, and a reader falls back to `downloaded`.
11511
+ */
11512
+ var PipelineModelFormatStatusSchema = object({
11513
+ downloaded: boolean(),
11514
+ sizeMB: number(),
11515
+ onDisk: ModelOnDiskStateSchema.optional(),
11516
+ precision: ModelFormatPrecisionSchema.optional()
11599
11517
  });
11600
11518
  /**
11601
11519
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -11636,11 +11554,11 @@ var ModelVariantGroupSchema = object({
11636
11554
  /** Quantization axis. Omit ⇒ the fp32 base build. */
11637
11555
  precision: _enum(["fp32", "int8"]).optional(),
11638
11556
  /**
11639
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
11640
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
11641
- * future performance variants plug into.
11557
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
11558
+ * an alternate training of the same family (Scrypted `relu_test`); chip
11559
+ * label is "Test".
11642
11560
  */
11643
- optimization: _enum(["standard", "fast"]).optional(),
11561
+ optimization: _enum(["standard", "test"]).optional(),
11644
11562
  /**
11645
11563
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
11646
11564
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -11663,9 +11581,10 @@ var ModelProviderIdSchema = _enum([
11663
11581
  * are per upstream. A persisted custom-model row written when this field was a
11664
11582
  * string still parses — the string is lifted into `{ weights }`.
11665
11583
  *
11666
- * Every licence surface (the admin "Models and licenses" page,
11667
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
11668
- * these records by `scripts/gen-model-licenses.ts` (D661).
11584
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
11585
+ * model table) is GENERATED from these records by
11586
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
11587
+ * `camstack/docs` → `/docs/detection/models`.
11669
11588
  */
11670
11589
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
11671
11590
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -11698,6 +11617,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
11698
11617
  /** True when the weights or their data forbid commercial use. */
11699
11618
  nonCommercial: boolean().optional()
11700
11619
  }));
11620
+ /**
11621
+ * One step a ROOT detector can supply from its own output (D730) — see
11622
+ * `ModelCatalogEntry.suppliesSteps`.
11623
+ *
11624
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
11625
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
11626
+ * the root cannot produce (shown as unavailable, never a blocker).
11627
+ * - `crop`: the root draws the box the step would have found (`license_plate`
11628
+ * for plate-detection, `face` for face-detection). The box becomes a detail
11629
+ * child of the `parentMacro` detection that contains it — never a track.
11630
+ * - `mask`: the root's decode emits an instance mask with every detection (a
11631
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
11632
+ * detection in the shape that step produces. Derived from the model's
11633
+ * postprocessor on read, never stored by an import.
11634
+ */
11635
+ var RootStepSupplySchema = discriminatedUnion("kind", [
11636
+ object({
11637
+ kind: literal("label"),
11638
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
11639
+ labelToEffect: record(string(), string()),
11640
+ uncovered: array(string()).readonly()
11641
+ }),
11642
+ object({
11643
+ kind: literal("crop"),
11644
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
11645
+ rootLabels: array(string()).readonly(),
11646
+ parentMacro: _enum(["vehicle", "person"]),
11647
+ childClass: _enum(["plate", "face"]),
11648
+ /**
11649
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
11650
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
11651
+ * stored by an import.
11652
+ */
11653
+ rootInputPx: number().int().positive().optional()
11654
+ }),
11655
+ object({
11656
+ kind: literal("mask"),
11657
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
11658
+ })
11659
+ ]);
11701
11660
  var ModelCatalogEntrySchema = object({
11702
11661
  id: string(),
11703
11662
  name: string(),
@@ -11763,6 +11722,35 @@ var ModelCatalogEntrySchema = object({
11763
11722
  */
11764
11723
  defaultConfidence: number().min(0).max(1).optional(),
11765
11724
  /**
11725
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
11726
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
11727
+ * absent here runs at the step slider's global default. The same row shape
11728
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
11729
+ * a measured table is copied in as-is. An operator override is bound to the
11730
+ * model it was made for and does not survive a model change (D738). A custom
11731
+ * / imported model may declare it; without it, the global defaults apply.
11732
+ */
11733
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
11734
+ /**
11735
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
11736
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
11737
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
11738
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
11739
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
11740
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
11741
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
11742
+ */
11743
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
11744
+ /**
11745
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
11746
+ * minimum DETECTION score from which this root's own fine label (species,
11747
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
11748
+ * keeps its macro class without the fine label. `1` = never take it from
11749
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
11750
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
11751
+ */
11752
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
11753
+ /**
11766
11754
  * When true, the executor produces a landmark-aligned crop (similarity warp
11767
11755
  * onto the canonical template) before this step runs, instead of a plain
11768
11756
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -11824,6 +11812,16 @@ var ModelCatalogEntrySchema = object({
11824
11812
  */
11825
11813
  classMap: DetectionCatalogClassMapSchema.optional(),
11826
11814
  /**
11815
+ * The pipeline steps this ROOT detector can supply from its own output
11816
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
11817
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
11818
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
11819
+ * by hand and never assumed per family; a row without it is derived on read
11820
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
11821
+ * `useRootModel` flag (`resolveRootSupply`).
11822
+ */
11823
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
11824
+ /**
11827
11825
  * The model's CLIP feature-space contract (text encoder, dimension, vector
11828
11826
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
11829
11827
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -13425,13 +13423,6 @@ var BrokerRtspClientSchema = object({
13425
13423
  lastRtpAt: number(),
13426
13424
  bytesSent: number()
13427
13425
  });
13428
- var BrokerDecodedClientSchema = object({
13429
- tag: string(),
13430
- subscribedAt: number(),
13431
- maxFps: number(),
13432
- framesDelivered: number(),
13433
- framesDropped: number()
13434
- });
13435
13426
  var BrokerAudioClientSchema = object({
13436
13427
  tag: string(),
13437
13428
  subscribedAt: number(),
@@ -13523,7 +13514,6 @@ var BrokerEncodedClientSchema = object({
13523
13514
  });
13524
13515
  var BrokerClientsSchema = object({
13525
13516
  rtsp: array(BrokerRtspClientSchema).readonly(),
13526
- decoded: array(BrokerDecodedClientSchema).readonly(),
13527
13517
  audio: array(BrokerAudioClientSchema).readonly(),
13528
13518
  encoded: array(BrokerEncodedClientSchema).readonly(),
13529
13519
  pipeClients: number(),
@@ -13892,11 +13882,7 @@ method(object({
13892
13882
  auth: "admin"
13893
13883
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
13894
13884
  brokerId: string(),
13895
- channel: _enum([
13896
- "rtsp",
13897
- "decoded",
13898
- "audio"
13899
- ]),
13885
+ channel: _enum(["rtsp", "audio"]),
13900
13886
  handle: string()
13901
13887
  }), object({ killed: boolean() }), {
13902
13888
  kind: "mutation",
@@ -13931,10 +13917,7 @@ method(object({
13931
13917
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
13932
13918
  subscriptionId: string(),
13933
13919
  maxCount: number().int().positive().default(8)
13934
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
13935
- subscriptionId: string(),
13936
- maxCount: number().int().positive().default(4)
13937
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13920
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13938
13921
  brokerId: string(),
13939
13922
  seconds: number().min(0).max(30)
13940
13923
  }), _void(), {
@@ -15193,54 +15176,12 @@ id: union([string(), number()]) }), {
15193
15176
  kind: "mutation",
15194
15177
  auth: "admin"
15195
15178
  });
15196
- /**
15197
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
15198
- * exposed via `decoder.getShmStats` so downstream consumers can
15199
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
15200
- */
15201
- var ShmRingStatsSchema = object({
15202
- sessionId: string(),
15203
- slotCount: number().int(),
15204
- slotByteLength: number().int(),
15205
- segmentBytes: number().int(),
15206
- budgetMb: number().int(),
15207
- framesWritten: number().int(),
15208
- getFrameHits: number().int(),
15209
- getFrameMisses: number().int()
15210
- });
15211
- method(object({ codec: string() }), boolean()), method(_void(), object({
15179
+ method(_void(), object({
15212
15180
  id: string(),
15213
15181
  name: string(),
15214
- isPullMode: boolean().optional(),
15215
- priority: number().optional(),
15216
15182
  hwaccel: string().optional(),
15217
15183
  probedBestHwaccel: string().optional()
15218
- })), method(DecoderSessionConfigSchema, object({
15219
- sessionId: string(),
15220
- nodeId: string()
15221
- })), method(object({ sessionId: string() }), _void()), method(object({
15222
- sessionId: string(),
15223
- packet: EncodedPacketSchema
15224
- }), _void()), method(object({
15225
- sessionId: string(),
15226
- url: string()
15227
- }), _void()), method(object({
15228
- sessionId: string(),
15229
- maxCount: number().default(1),
15230
- waitMs: number().optional()
15231
- }), array(DecodedFrameSchema)), method(object({
15232
- sessionId: string(),
15233
- maxCount: number().default(1),
15234
- waitMs: number().optional()
15235
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
15236
- sessionId: string(),
15237
- config: DecoderSessionConfigSchema.partial()
15238
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
15239
- sessionId: string(),
15240
- codec: string(),
15241
- outputFormat: string(),
15242
- createdAtMs: number()
15243
- })).readonly()), method(_void(), object({ backend: string() }), {
15184
+ })), method(_void(), object({ backend: string() }), {
15244
15185
  kind: "mutation",
15245
15186
  auth: "admin"
15246
15187
  });
@@ -15296,7 +15237,7 @@ DeviceType.Camera;
15296
15237
  * This matters here more than anywhere else in the repo, because every provider
15297
15238
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
15298
15239
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
15299
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
15240
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
15300
15241
  * camera's own page will ask for its own login. That is correct, and pre-
15301
15242
  * filling it is the operator's business, not ours.
15302
15243
  *
@@ -17289,6 +17230,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
17289
17230
  kind: "mutation",
17290
17231
  auth: "admin"
17291
17232
  });
17233
+ var HUB_ADDRESS_ROLES = [
17234
+ "appConnections",
17235
+ "notificationTaps",
17236
+ "internal",
17237
+ "publicEndpoint"
17238
+ ];
17292
17239
  /**
17293
17240
  * Transport bounds for AI capability methods.
17294
17241
  *
@@ -18485,7 +18432,7 @@ method(object({
18485
18432
  timeoutMs: 6e5
18486
18433
  });
18487
18434
  method(object({
18488
- nodeId: string(),
18435
+ targetNodeId: string(),
18489
18436
  modelId: string(),
18490
18437
  format: _enum(MODEL_FORMATS),
18491
18438
  entry: ModelCatalogEntrySchema
@@ -19891,6 +19838,8 @@ var NcSystemEventKindSchema = _enum([
19891
19838
  "stream-offline",
19892
19839
  "node-online",
19893
19840
  "node-offline",
19841
+ "node-restarting",
19842
+ "node-updating",
19894
19843
  "node-inference-unavailable",
19895
19844
  "detection-blind",
19896
19845
  "addon-crash-loop",
@@ -20989,8 +20938,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
20989
20938
  disabledTargetIds: array(string()).default([])
20990
20939
  });
20991
20940
  /**
20992
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
20993
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
20941
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
20942
+ * report a still-true state. `addons` is the crash-looped addons only and
20943
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
20994
20944
  * job is not an open state, and the alarm stays instant.
20995
20945
  */
20996
20946
  var NcStateSummarySectionIdSchema = _enum([
@@ -21002,6 +20952,7 @@ var NcStateSummarySectionIdSchema = _enum([
21002
20952
  "detection-blind",
21003
20953
  "nodes",
21004
20954
  "addons",
20955
+ "addon-updates",
21005
20956
  "updates"
21006
20957
  ]);
21007
20958
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -21482,7 +21433,25 @@ var NcAlarmModeDelaysListSchema = array(object({
21482
21433
  * When this mode may be armed. Absent / null = always allowed (same as a
21483
21434
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
21484
21435
  */
21485
- schedule: NcScheduleSchema.optional()
21436
+ schedule: NcScheduleSchema.optional(),
21437
+ /**
21438
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
21439
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
21440
+ * only one, and the matches ride the triggered notification's mosaic (D705).
21441
+ */
21442
+ notifyDuringEntryDelay: boolean().optional(),
21443
+ /**
21444
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
21445
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
21446
+ * is the one that starts the entry delay — the entry-delay notification already names it.
21447
+ */
21448
+ notifySensorRewatched: boolean().optional(),
21449
+ /**
21450
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
21451
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
21452
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
21453
+ */
21454
+ notifySensorIgnored: boolean().optional()
21486
21455
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
21487
21456
  var NcAlarmModeDelaysEditListSchema = array(object({
21488
21457
  mode: AlarmArmModeSchema,
@@ -21491,7 +21460,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
21491
21460
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
21492
21461
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
21493
21462
  /** Set a schedule, or `null` to clear (mode always allowed again). */
21494
- schedule: NcScheduleSchema.nullable().optional()
21463
+ schedule: NcScheduleSchema.nullable().optional(),
21464
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21465
+ notifyDuringEntryDelay: boolean().nullable().optional(),
21466
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21467
+ notifySensorRewatched: boolean().nullable().optional(),
21468
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
21469
+ notifySensorIgnored: boolean().nullable().optional()
21495
21470
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
21496
21471
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
21497
21472
  var NcAlarmNonBlockingEditSchema = object({
@@ -22452,45 +22427,25 @@ Object.freeze(Object.fromEntries([{
22452
22427
  label: "Face recognition model",
22453
22428
  defaultModelId: "auraface-r100",
22454
22429
  indexName: "the enrolled face gallery",
22455
- options: [
22456
- {
22457
- id: "auraface-r100",
22458
- label: "AuraFace R100"
22459
- },
22460
- {
22461
- id: "arcface-r100",
22462
- label: "ArcFace (ResNet34)"
22463
- },
22464
- {
22465
- id: "inception-resnet-v1",
22466
- label: "Inception ResNet V1"
22467
- }
22468
- ]
22430
+ options: [{
22431
+ id: "auraface-r100",
22432
+ label: "AuraFace R100"
22433
+ }]
22469
22434
  }, {
22470
22435
  stepId: "clip-embedding",
22471
22436
  label: "Semantic search model",
22472
- defaultModelId: "mobileclip-s1",
22437
+ defaultModelId: "siglip2-b16-224",
22473
22438
  indexName: "the object semantic-search index",
22474
- options: [
22475
- {
22476
- id: "mobileclip-s1",
22477
- label: "MobileCLIP S1"
22478
- },
22479
- {
22480
- id: "mobileclip-s2",
22481
- label: "MobileCLIP S2"
22482
- },
22483
- {
22484
- id: "siglip2-b16-224",
22485
- label: "SigLIP2 B/16 (Apache-2.0)"
22486
- }
22487
- ]
22439
+ options: [{
22440
+ id: "siglip2-b16-224",
22441
+ label: "SigLIP2 B/16 (Apache-2.0)"
22442
+ }]
22488
22443
  }].map((s) => [s.stepId, s.defaultModelId])));
22489
22444
  var CLUSTER_STEP_SETTING_FIELDS = [{
22490
22445
  stepId: "face-embedding",
22491
22446
  key: "minLandmarkFaceSize",
22492
- label: "Min face size for recognition (detection px)",
22493
- 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.",
22447
+ label: "Min face size to embed (detection-frame px)",
22448
+ 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.",
22494
22449
  type: "slider",
22495
22450
  min: 0,
22496
22451
  max: 64,
@@ -24410,6 +24365,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
24410
24365
  timestamp: number()
24411
24366
  });
24412
24367
  /**
24368
+ * A root model's boxes standing in for one crop-kind step's own inference
24369
+ * (D730) — see `runPipeline.suppliedRoot`.
24370
+ */
24371
+ var SuppliedRootOutputSchema = object({
24372
+ stepId: string(),
24373
+ /** The root model that drew the boxes — stamped on the result. */
24374
+ modelId: string(),
24375
+ detections: array(object({
24376
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
24377
+ bbox: tuple([
24378
+ number(),
24379
+ number(),
24380
+ number(),
24381
+ number()
24382
+ ]),
24383
+ score: number(),
24384
+ /**
24385
+ * Five facial landmarks in the same pixels — a face the step's own
24386
+ * detector already re-found inside a root face box (D730), so its
24387
+ * embedder child aligns it exactly as it aligns any detected face.
24388
+ */
24389
+ landmarks: array(object({
24390
+ x: number(),
24391
+ y: number()
24392
+ })).optional()
24393
+ })).min(1)
24394
+ });
24395
+ /**
24413
24396
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
24414
24397
  * within the frame, so the executor can re-cut a leaf child ROI at native
24415
24398
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -24457,7 +24440,7 @@ var FrameRefSchema = object({
24457
24440
  timestamp: number(),
24458
24441
  capturedAt: number().optional()
24459
24442
  });
24460
- var ModelFormatSchema$1 = _enum([
24443
+ var ModelFormatSchema$2 = _enum([
24461
24444
  "onnx",
24462
24445
  "coreml",
24463
24446
  "openvino",
@@ -24475,7 +24458,7 @@ var PipelineSlotSchema = _enum([
24475
24458
  var PipelineEngineChoiceSchema = object({
24476
24459
  runtime: literal("python"),
24477
24460
  backend: string(),
24478
- format: ModelFormatSchema$1,
24461
+ format: ModelFormatSchema$2,
24479
24462
  device: string().optional()
24480
24463
  });
24481
24464
  /**
@@ -24514,32 +24497,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
24514
24497
  group: string().optional(),
24515
24498
  settings: record(string(), unknown()).optional()
24516
24499
  }));
24517
- var PipelineTemplateStepSchema = lazy(() => object({
24518
- addonId: string(),
24519
- enabled: boolean(),
24520
- modelId: string(),
24521
- children: array(PipelineTemplateStepSchema).readonly(),
24522
- settings: record(string(), unknown()).optional()
24523
- }));
24524
- var PipelineTemplateSchema$1 = object({
24525
- id: string(),
24526
- name: string(),
24527
- createdAt: string(),
24528
- updatedAt: string(),
24529
- engine: PipelineEngineChoiceSchema,
24530
- steps: array(PipelineTemplateStepSchema).readonly()
24531
- });
24532
24500
  var PipelineModelOptionSchema = object({
24533
24501
  id: string(),
24534
24502
  name: string(),
24535
- formats: record(string(), object({
24536
- downloaded: boolean(),
24537
- sizeMB: number()
24538
- })),
24503
+ formats: record(string(), PipelineModelFormatStatusSchema),
24539
24504
  group: ModelVariantGroupSchema.optional(),
24540
24505
  legacy: boolean().optional(),
24541
24506
  provider: ModelProviderIdSchema.optional(),
24542
- defaultConfidence: number().optional()
24507
+ defaultConfidence: number().optional(),
24508
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
24543
24509
  });
24544
24510
  var ConfigFieldBridge = custom();
24545
24511
  var PipelineAddonSchemaSchema = object({
@@ -24701,6 +24667,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24701
24667
  }), {
24702
24668
  kind: "mutation",
24703
24669
  auth: "admin"
24670
+ }), method(object({
24671
+ nodeId: string(),
24672
+ deviceIds: array(number()).readonly().optional(),
24673
+ dryRun: boolean()
24674
+ }), object({
24675
+ entries: array(object({
24676
+ deviceId: number(),
24677
+ keys: array(string()).readonly()
24678
+ })).readonly(),
24679
+ refused: array(object({
24680
+ deviceId: number(),
24681
+ reason: string()
24682
+ })).readonly()
24683
+ }), {
24684
+ kind: "mutation",
24685
+ auth: "admin"
24704
24686
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
24705
24687
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
24706
24688
  deviceKey: string(),
@@ -24726,22 +24708,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24726
24708
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
24727
24709
  steps: array(PipelineStepInputSchema),
24728
24710
  deviceKey: string().optional()
24729
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
24730
- name: string(),
24731
- steps: array(PipelineTemplateStepSchema).readonly(),
24732
- engine: PipelineEngineChoiceSchema
24733
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
24734
- id: string(),
24735
- name: string().optional(),
24736
- steps: array(PipelineTemplateStepSchema).readonly().optional()
24737
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
24711
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
24738
24712
  addonId: string(),
24739
24713
  modelId: string(),
24740
- format: ModelFormatSchema$1
24714
+ format: ModelFormatSchema$2
24741
24715
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
24742
24716
  addonId: string(),
24743
24717
  modelId: string(),
24744
- format: ModelFormatSchema$1
24718
+ format: ModelFormatSchema$2
24745
24719
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
24746
24720
  steps: array(PipelineStepInputSchema).min(1),
24747
24721
  frame: FrameInputSchema.optional(),
@@ -24807,7 +24781,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24807
24781
  * `device-not-servable`), and nothing reaches the camera's live
24808
24782
  * trace stream. Absent ⇒ unchanged behaviour.
24809
24783
  */
24810
- replay: literal(true).optional()
24784
+ replay: literal(true).optional(),
24785
+ /**
24786
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
24787
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
24788
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
24789
+ * NOT inferred, these boxes are its output, and its children (the plate
24790
+ * reader) run on them through their own crop policy. Boxes are in the
24791
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
24792
+ */
24793
+ suppliedRoot: SuppliedRootOutputSchema.optional()
24811
24794
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
24812
24795
  steps: array(PipelineStepInputSchema).min(1),
24813
24796
  frames: array(FrameInputSchema).min(1).max(255),
@@ -24889,6 +24872,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24889
24872
  filename: string().optional(),
24890
24873
  settings: record(string(), unknown()).optional()
24891
24874
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
24875
+ /**
24876
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
24877
+ * `pipeline-orchestrator` cap. The recommender's own types
24878
+ * (`recommend.ts`) are the TS face of the same data; these
24879
+ * schemas are what crosses the cap boundary.
24880
+ */
24881
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
24882
+ /** The operator's range for it. */
24883
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
24884
+ min: 1,
24885
+ max: 8
24886
+ };
24887
+ var HardwareClassIdSchema = _enum([
24888
+ "intel-core-ultra",
24889
+ "intel-n-series",
24890
+ "apple-m-base",
24891
+ "apple-m-pro",
24892
+ "unknown"
24893
+ ]);
24894
+ var AcceleratorKindSchema = _enum([
24895
+ "intel-npu",
24896
+ "intel-igpu",
24897
+ "x86-cpu",
24898
+ "arm-cpu",
24899
+ "apple-ane",
24900
+ "coral"
24901
+ ]);
24902
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
24903
+ object({
24904
+ kind: literal("capacity"),
24905
+ sessions: number(),
24906
+ minSessions: number()
24907
+ }),
24908
+ object({
24909
+ kind: literal("tie-faster"),
24910
+ over: string(),
24911
+ recallDelta: number()
24912
+ }),
24913
+ object({
24914
+ kind: literal("stepped-down"),
24915
+ from: string(),
24916
+ to: string(),
24917
+ limitedBy: string()
24918
+ }),
24919
+ object({
24920
+ kind: literal("no-fit-lightest"),
24921
+ sessions: number(),
24922
+ minSessions: number()
24923
+ }),
24924
+ object({
24925
+ kind: literal("derived-latency"),
24926
+ modelId: string()
24927
+ }),
24928
+ object({ kind: literal("cpu-device") }),
24929
+ object({ kind: literal("coral-untouched") }),
24930
+ object({ kind: literal("device-disabled") }),
24931
+ object({ kind: literal("device-unavailable") }),
24932
+ object({ kind: literal("node-offline") }),
24933
+ object({ kind: literal("no-hardware-facts") }),
24934
+ object({
24935
+ kind: literal("no-measured-data"),
24936
+ hardwareClass: HardwareClassIdSchema
24937
+ }),
24938
+ object({
24939
+ kind: literal("no-family-build"),
24940
+ format: ModelFormatSchema$1
24941
+ })
24942
+ ]);
24943
+ var DeviceModelChoiceSchema = object({
24944
+ modelId: string(),
24945
+ p50Ms: number(),
24946
+ fps: number(),
24947
+ measured: boolean(),
24948
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24949
+ capacitySessions: number(),
24950
+ personRecall: number()
24951
+ });
24952
+ var DeviceRecommendationSchema = object({
24953
+ deviceKey: string(),
24954
+ accelerator: AcceleratorKindSchema.nullable(),
24955
+ enabled: boolean(),
24956
+ available: boolean(),
24957
+ chosen: DeviceModelChoiceSchema.nullable(),
24958
+ reasons: array(RecommendationReasonSchema).readonly()
24959
+ });
24960
+ var NodeRecommendationSchema = object({
24961
+ nodeId: string(),
24962
+ reachable: boolean(),
24963
+ hardwareClass: HardwareClassIdSchema.nullable(),
24964
+ cpuModel: string().nullable(),
24965
+ skipped: boolean(),
24966
+ acceleratorModelId: string().nullable(),
24967
+ devices: array(DeviceRecommendationSchema).readonly(),
24968
+ reasons: array(RecommendationReasonSchema).readonly()
24969
+ });
24970
+ var ModelPinChangeSchema = object({
24971
+ stepId: string(),
24972
+ before: string().nullable(),
24973
+ after: string().nullable()
24974
+ });
24975
+ var NodeDeviceChangeSchema = object({
24976
+ nodeId: string(),
24977
+ deviceKey: string(),
24978
+ madeExplicit: boolean(),
24979
+ modelPins: array(ModelPinChangeSchema).readonly(),
24980
+ thresholds: array(object({
24981
+ stepId: string(),
24982
+ keys: array(string()).readonly()
24983
+ })).readonly()
24984
+ });
24985
+ var CameraOverrideClearSchema = object({
24986
+ deviceId: number(),
24987
+ source: _enum(["step-override", "wholesale"]),
24988
+ nodeId: string(),
24989
+ deviceKey: string().nullable(),
24990
+ stepId: string(),
24991
+ modelIdBefore: string().nullable(),
24992
+ keys: array(string()).readonly()
24993
+ });
24994
+ var DetectorStoreClearSchema = object({
24995
+ deviceId: number(),
24996
+ keys: array(string()).readonly()
24997
+ });
24998
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24999
+ object({
25000
+ kind: literal("detector-store-cluster-wide"),
25001
+ skippedNodes: array(string()).readonly()
25002
+ }),
25003
+ object({
25004
+ kind: literal("detector-store-unreadable"),
25005
+ error: string()
25006
+ }),
25007
+ object({
25008
+ kind: literal("coral-enabled"),
25009
+ nodeId: string(),
25010
+ deviceKey: string()
25011
+ })
25012
+ ]);
25013
+ var AutoTuneOptionsSchema = object({
25014
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
25015
+ headroom: number().min(.3).max(.5).default(.4),
25016
+ /**
25017
+ * The least number of parallel sessions every device must sustain at the
25018
+ * camera rate with the headroom kept free (D755). The most accurate model
25019
+ * that reaches it wins.
25020
+ */
25021
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
25022
+ });
25023
+ var AutoTunePlanSchema = object({
25024
+ /** Hash of everything the apply will write — the apply refuses a different one. */
25025
+ planHash: string(),
25026
+ family: literal("yolov9"),
25027
+ headroom: number(),
25028
+ minSessionsPerDevice: number(),
25029
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
25030
+ cameraFps: number(),
25031
+ generatedAt: number(),
25032
+ nodes: array(NodeRecommendationSchema).readonly(),
25033
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
25034
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
25035
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
25036
+ warnings: array(AutoTuneWarningSchema).readonly()
25037
+ });
25038
+ var AutoTuneApplyInputSchema = object({
25039
+ planHash: string(),
25040
+ headroom: number().min(.3).max(.5).default(.4),
25041
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
25042
+ });
25043
+ var AutoTunePhaseResultSchema = object({
25044
+ phase: _enum([
25045
+ "download",
25046
+ "camera-overrides",
25047
+ "detector-thresholds",
25048
+ "node-models",
25049
+ "redispatch"
25050
+ ]),
25051
+ ok: boolean(),
25052
+ detail: string()
25053
+ });
25054
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
25055
+ object({
25056
+ kind: literal("applied"),
25057
+ planHash: string(),
25058
+ phases: array(AutoTunePhaseResultSchema).readonly()
25059
+ }),
25060
+ object({
25061
+ kind: literal("aborted"),
25062
+ phases: array(AutoTunePhaseResultSchema).readonly()
25063
+ }),
25064
+ object({
25065
+ kind: literal("stale"),
25066
+ plan: AutoTunePlanSchema
25067
+ }),
25068
+ object({
25069
+ kind: literal("refused"),
25070
+ reason: _enum(["apply-in-progress"])
25071
+ })
25072
+ ]);
25073
+ /**
25074
+ * Wire shapes of the Load balancing surface (D748): the session placement
25075
+ * policy, the atomic share write, the observed placement statistics, the
25076
+ * hardware share suggestion and the stale device pins.
25077
+ */
25078
+ /**
25079
+ * How a new detection session picks its node and device.
25080
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
25081
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
25082
+ * weight only bites once a node already holds a session.
25083
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
25084
+ * full or drowning node yields to a free one (D748).
25085
+ */
25086
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
25087
+ var LoadBalancingSharesInputSchema = object({
25088
+ /** nodeId → share (> 0). A node left out keeps its weight. */
25089
+ nodes: record(string(), number().positive()).default({}),
25090
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
25091
+ devices: record(string(), record(string(), number().positive())).default({})
25092
+ });
25093
+ var PlacementStatsInputSchema = object({
25094
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
25095
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
25096
+ var PlacementDeviceStatsSchema = object({
25097
+ deviceKey: string(),
25098
+ /** Sessions running on this device now. */
25099
+ sessionsNow: number(),
25100
+ /** Sessions started on this device inside the window. */
25101
+ sessionsStarted: number(),
25102
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
25103
+ observedShare: number().nullable()
25104
+ });
25105
+ var PlacementNodeStatsSchema = object({
25106
+ nodeId: string(),
25107
+ sessionsNow: number(),
25108
+ sessionsStarted: number(),
25109
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
25110
+ observedShare: number().nullable(),
25111
+ /** Most sessions this node ran at once inside the window. */
25112
+ peakSessions: number(),
25113
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
25114
+ yieldsAway: number(),
25115
+ devices: array(PlacementDeviceStatsSchema).readonly()
25116
+ });
25117
+ /** A camera's device pin that the session path cannot honour. */
25118
+ var StaleDevicePinSchema = object({
25119
+ deviceId: number(),
25120
+ deviceKey: string(),
25121
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
25122
+ reason: _enum(["disabled", "absent"])
25123
+ });
25124
+ var PlacementStatsSchema = object({
25125
+ policy: SessionPlacementPolicySchema,
25126
+ windowMs: number(),
25127
+ /** How much of the window was actually observed (the hub keeps it in memory). */
25128
+ observedForMs: number(),
25129
+ sessionsNow: number(),
25130
+ /** Most parallel sessions across the cluster inside the window. */
25131
+ clusterPeakSessions: number(),
25132
+ nodes: array(PlacementNodeStatsSchema).readonly(),
25133
+ stalePins: array(StaleDevicePinSchema).readonly()
25134
+ });
25135
+ /**
25136
+ * Where an automatic share's capacity comes from (D755).
25137
+ * - `hardware` — the static capacity of each device at its Auto tune model:
25138
+ * the measured latency table for the node's hardware class.
25139
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
25140
+ * A node with no results falls back to `hardware`, and says so.
25141
+ */
25142
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
25143
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
25144
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
25145
+ var SuggestSharesInputSchema = object({
25146
+ headroom: number().min(.3).max(.5).default(.4),
25147
+ /** Default `hardware`. */
25148
+ source: CapacitySourceSchema.default("hardware")
25149
+ });
25150
+ var SuggestedDeviceShareSchema = object({
25151
+ deviceKey: string(),
25152
+ /** Share of the node (0–100, rounded). */
25153
+ share: number(),
25154
+ modelId: string().nullable(),
25155
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
25156
+ fps: number().nullable(),
25157
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
25158
+ measured: boolean(),
25159
+ /**
25160
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
25161
+ * or the benchmark's measured max sessions. Never enforced.
25162
+ */
25163
+ suggestedMaxSessions: number().nullable()
25164
+ });
25165
+ var SuggestedNodeShareSchema = object({
25166
+ nodeId: string(),
25167
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
25168
+ share: number().nullable(),
25169
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
25170
+ capacitySessions: number(),
25171
+ devices: array(SuggestedDeviceShareSchema).readonly(),
25172
+ skippedReason: string().nullable(),
25173
+ /** What this node's capacity was read from; null when the node is skipped. */
25174
+ capacitySource: CapacitySourceSchema.nullable(),
25175
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
25176
+ capacityFallback: CapacityFallbackSchema.nullable()
25177
+ });
25178
+ var SuggestSharesResultSchema = object({
25179
+ headroom: number(),
25180
+ /** The source asked for; each node says what it actually used. */
25181
+ source: CapacitySourceSchema,
25182
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
25183
+ cameraFps: number(),
25184
+ /** The Auto tune capacity floor the models were picked at. */
25185
+ minSessionsPerDevice: number(),
25186
+ nodes: array(SuggestedNodeShareSchema).readonly()
25187
+ });
25188
+ /**
25189
+ * Where the node and device shares come from (D750, D755).
25190
+ * - `hardware` (default) — computed by the system from each node's static
25191
+ * capacity (its accelerators at their Auto tune models, from the measured
25192
+ * latency table), recomputed whenever a node or device joins, leaves, is
25193
+ * switched on or off, or changes model. No load input.
25194
+ * - `benchmark` — the same, from each node's measured capacity (node
25195
+ * benchmark results); a node without results falls back to `hardware`.
25196
+ * - `manual` — the operator's stored sliders.
25197
+ * Either way a node or device that cannot take sessions gives its share to
25198
+ * the others in proportion; the stored values are never rewritten for that.
25199
+ */
25200
+ var ShareSourceSchema = _enum([
25201
+ "hardware",
25202
+ "benchmark",
25203
+ "manual"
25204
+ ]);
25205
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
25206
+ object({
25207
+ nodes: record(string(), number()),
25208
+ devices: record(string(), record(string(), number()))
25209
+ });
25210
+ var EffectiveDeviceShareSchema = object({
25211
+ deviceKey: string(),
25212
+ /** Can take sessions now (enabled, available, can run the root). */
25213
+ eligible: boolean(),
25214
+ /** The share the source assigns, as a percentage of the node's devices. */
25215
+ configuredPct: number(),
25216
+ /** The share actually used, after an ineligible device's share went to the others. */
25217
+ effectivePct: number()
25218
+ });
25219
+ var EffectiveNodeShareSchema = object({
25220
+ nodeId: string(),
25221
+ eligible: boolean(),
25222
+ configuredPct: number(),
25223
+ effectivePct: number(),
25224
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
25225
+ capacitySource: CapacitySourceSchema.nullable(),
25226
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
25227
+ capacityFallback: CapacityFallbackSchema.nullable(),
25228
+ devices: array(EffectiveDeviceShareSchema).readonly()
25229
+ });
25230
+ var EffectiveSharesSchema = object({
25231
+ source: ShareSourceSchema,
25232
+ policy: SessionPlacementPolicySchema,
25233
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
25234
+ autoPending: boolean(),
25235
+ /** When the automatic shares were last computed (ms epoch); null = never. */
25236
+ computedAt: number().nullable(),
25237
+ /** What made the system recompute them last. */
25238
+ trigger: string().nullable(),
25239
+ nodes: array(EffectiveNodeShareSchema).readonly(),
25240
+ /** The relative weights the election reads (before eligibility). */
25241
+ nodeWeights: record(string(), number()),
25242
+ deviceWeights: record(string(), record(string(), number()))
25243
+ });
24892
25244
  object({
24893
25245
  activeCameras: number(),
24894
25246
  throttledCameras: number(),
@@ -25372,6 +25724,22 @@ var MotionSourceEnum = _enum([
25372
25724
  "device-activity"
25373
25725
  ]);
25374
25726
  /**
25727
+ * What opened an on-motion detection SESSION: the motion source that passed the
25728
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
25729
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
25730
+ * device name as the orchestrator's camera-sensors resolution last read it;
25731
+ * absent when unknown or when the camera itself triggered.
25732
+ *
25733
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
25734
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
25735
+ * runner never decides anything on it.
25736
+ */
25737
+ var SessionTriggerSchema = object({
25738
+ source: MotionSourceEnum,
25739
+ triggeredBy: MotionTriggeredBySchema,
25740
+ sensorName: string().optional()
25741
+ });
25742
+ /**
25375
25743
  * List of motion sources active on a camera. Empty array is valid:
25376
25744
  * "no source" — happens for battery cams without firmware motion when
25377
25745
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -25623,6 +25991,14 @@ var RunnerCameraConfigSchema = object({
25623
25991
  */
25624
25992
  motionSources: MotionSourcesSchema.default(["analyzer"]),
25625
25993
  /**
25994
+ * What opened this attach, on a SESSION attach only (see
25995
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
25996
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
25997
+ * behind it, and every attach from an orchestrator older than the field — the
25998
+ * runner then names no source on the phase event.
25999
+ */
26000
+ sessionTrigger: SessionTriggerSchema.optional(),
26001
+ /**
25626
26002
  * WHICH root detector runs for this camera. The detection counterpart of
25627
26003
  * {@link motionSources}, same shape and same discipline: a per-camera list
25628
26004
  * of sources the system understands, vendor-agnostic, owned here.
@@ -25782,14 +26158,15 @@ var RunnerLocalLoadSchema = object({
25782
26158
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
25783
26159
  * this runner currently has attached cameras on, so the orchestrator's second
25784
26160
  * `balance()` pass (over a node's devices) weights on real per-pool session
25785
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
25786
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
26161
+ * counts. Empty on single-device / pre-multi-device runners. There is no
26162
+ * per-device queue depth: the inference pool's backlog has no accessor, and
26163
+ * a field that always read 0 was removed rather than shown as a measurement
26164
+ * (D762).
25787
26165
  */
25788
26166
  devices: array(object({
25789
26167
  deviceKey: string(),
25790
26168
  backend: string(),
25791
- attachedCameras: number(),
25792
- queueDepthTotal: number()
26169
+ attachedCameras: number()
25793
26170
  })).default([]),
25794
26171
  /** Hardware capability flags reported by this node. */
25795
26172
  hardware: object({
@@ -25925,7 +26302,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
25925
26302
  */
25926
26303
  cropJpeg: string().optional(),
25927
26304
  parent: DetailParentSchema,
25928
- steps: array(string()).optional()
26305
+ steps: array(string()).optional(),
26306
+ /**
26307
+ * The camera's root model already drew this step's boxes (D730): a
26308
+ * `license_plate` inside the parent vehicle. The named step is NOT
26309
+ * inferred — these FRAME-space boxes are its output — and its
26310
+ * requested children (the plate reader) run on them. Absent ⇒ every
26311
+ * requested step infers as before.
26312
+ */
26313
+ supplied: object({
26314
+ stepId: string(),
26315
+ modelId: string(),
26316
+ boxes: array(object({
26317
+ bbox: NativeCropBboxSchema,
26318
+ score: number()
26319
+ })).min(1)
26320
+ }).optional()
25929
26321
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
25930
26322
  /** Catalog step id, e.g. `clip-embedding`. */
25931
26323
  stepId: string(),
@@ -25988,14 +26380,6 @@ var CameraPipelineConfigSchema = object({
25988
26380
  settings: record(string(), unknown()).readonly().optional()
25989
26381
  }).nullable().optional()
25990
26382
  });
25991
- var PipelineTemplateSchema = object({
25992
- id: string(),
25993
- name: string(),
25994
- description: string().optional(),
25995
- config: CameraPipelineConfigSchema,
25996
- createdAt: string(),
25997
- updatedAt: string()
25998
- });
25999
26383
  var DeviceStepConfigSchema = object({
26000
26384
  modelId: string().optional(),
26001
26385
  settings: record(string(), unknown()).optional(),
@@ -26069,9 +26453,10 @@ var CameraStepOverridePatchSchema = object({
26069
26453
  modelId: string().optional(),
26070
26454
  settings: record(string(), unknown()).readonly().optional()
26071
26455
  });
26456
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
26072
26457
  var CameraPipelineSettingsSchema = object({
26073
- pinnedAgentNodeId: string().optional(),
26074
26458
  stepToggles: record(string(), boolean()).optional(),
26459
+ stepSettings: CameraStepSettingsSchema.optional(),
26075
26460
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
26076
26461
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
26077
26462
  });
@@ -26104,7 +26489,10 @@ var PipelineAssignmentSchema = object({
26104
26489
  });
26105
26490
  /**
26106
26491
  * Per-agent load summary surfaced to the load balancer + dashboards.
26107
- * Aggregated from each runner's `getLocalLoad` cap call.
26492
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
26493
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
26494
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
26495
+ * the default pool IS that device (D745); the balancer's census stays raw.
26108
26496
  */
26109
26497
  var AgentLoadSummarySchema = object({
26110
26498
  nodeId: string(),
@@ -26193,26 +26581,27 @@ var CameraBrokerStatusSchema = object({
26193
26581
  width: number(),
26194
26582
  height: number(),
26195
26583
  subscribers: number(),
26196
- inFps: number(),
26197
- outFps: number()
26584
+ /**
26585
+ * Encoded packets/s the broker receives from the camera. null when the
26586
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
26587
+ * There is no output rate: decoding runs in the session decode workers, not
26588
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
26589
+ * camera and is not served (D758).
26590
+ */
26591
+ inFps: number().nullable()
26198
26592
  })).readonly(),
26199
26593
  webrtcSessions: number(),
26200
26594
  rtspRestream: boolean()
26201
26595
  });
26202
- /** Shared-memory ring statistics within the decoder block. */
26203
- var CameraDecoderShmSchema = object({
26204
- framesWritten: number(),
26205
- getFrameHits: number(),
26206
- getFrameMisses: number(),
26207
- budgetMb: number()
26208
- });
26209
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
26210
- var CameraDecoderStatusSchema = object({
26211
- nodeId: string(),
26212
- formats: array(string()).readonly(),
26213
- sessionCount: number(),
26214
- shm: CameraDecoderShmSchema
26215
- });
26596
+ /**
26597
+ * Decoder block — WHERE decode runs (co-located with the detection node by
26598
+ * construction); null when the camera has no detection node. It carries no
26599
+ * frame counter: the shared-memory plane whose counters it used to serve is
26600
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
26601
+ * from `detection.actualFps` (frames delivered to and processed by the
26602
+ * detector), never from a counter nothing feeds.
26603
+ */
26604
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
26216
26605
  /** Motion block — null when motion detection is not active for this device. */
26217
26606
  var CameraMotionStatusSchema = object({
26218
26607
  enabled: boolean(),
@@ -26569,12 +26958,6 @@ method(object({
26569
26958
  }), object({ success: literal(true) }), {
26570
26959
  kind: "mutation",
26571
26960
  auth: "admin"
26572
- }), method(object({
26573
- agentNodeId: string(),
26574
- detectWeight: number().positive().nullable()
26575
- }), object({ success: literal(true) }), {
26576
- kind: "mutation",
26577
- auth: "admin"
26578
26961
  }), method(object({
26579
26962
  agentNodeId: string(),
26580
26963
  detect: boolean().nullable().optional(),
@@ -26616,6 +26999,15 @@ method(object({
26616
26999
  }), {
26617
27000
  kind: "mutation",
26618
27001
  auth: "admin"
27002
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
27003
+ kind: "mutation",
27004
+ auth: "admin"
27005
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
27006
+ kind: "mutation",
27007
+ auth: "admin"
27008
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
27009
+ kind: "mutation",
27010
+ auth: "admin"
26619
27011
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
26620
27012
  deviceId: number(),
26621
27013
  addonId: string(),
@@ -26632,6 +27024,13 @@ method(object({
26632
27024
  }), object({ success: literal(true) }), {
26633
27025
  kind: "mutation",
26634
27026
  auth: "admin"
27027
+ }), method(object({
27028
+ deviceId: number(),
27029
+ addonId: string(),
27030
+ settings: record(string(), unknown()).nullable()
27031
+ }), object({ success: literal(true) }), {
27032
+ kind: "mutation",
27033
+ auth: "admin"
26635
27034
  }), method(object({
26636
27035
  deviceId: number(),
26637
27036
  agentNodeId: string(),
@@ -26655,25 +27054,7 @@ method(object({
26655
27054
  }), method(_void(), DiskReconcileJobSchema, {
26656
27055
  kind: "mutation",
26657
27056
  auth: "admin"
26658
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
26659
- name: string(),
26660
- description: string().optional(),
26661
- config: CameraPipelineConfigSchema
26662
- }), PipelineTemplateSchema, {
26663
- kind: "mutation",
26664
- auth: "admin"
26665
- }), method(object({
26666
- id: string(),
26667
- name: string().optional(),
26668
- description: string().optional(),
26669
- config: CameraPipelineConfigSchema.optional()
26670
- }), PipelineTemplateSchema, {
26671
- kind: "mutation",
26672
- auth: "admin"
26673
- }), method(object({ id: string() }), object({ success: literal(true) }), {
26674
- kind: "mutation",
26675
- auth: "admin"
26676
- });
27057
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
26677
27058
  /**
26678
27059
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
26679
27060
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -28922,8 +29303,6 @@ var WebrtcStreamChoiceSchema = object({
28922
29303
  ]).nullable(),
28923
29304
  /** Input FPS from the camera (null for adaptive). */
28924
29305
  inputFps: number().nullable(),
28925
- /** Decoded FPS (null for adaptive). */
28926
- decodeFps: number().nullable(),
28927
29306
  /** Bitrate in kbps (null for adaptive). */
28928
29307
  bitrateKbps: number().nullable()
28929
29308
  });
@@ -29255,6 +29634,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
29255
29634
  */
29256
29635
  alive: boolean()
29257
29636
  })), method(object({
29637
+ deviceId: number().int().nonnegative(),
29638
+ sessionId: string(),
29639
+ downlinkMbps: number().nonnegative()
29640
+ }), object({
29641
+ outcome: _enum(["switching", "held"]),
29642
+ tier: CamProfileSchema.nullable(),
29643
+ reason: string()
29644
+ }), { kind: "mutation" }), method(object({
29258
29645
  deviceId: number().int().nonnegative(),
29259
29646
  sessionId: string()
29260
29647
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -33019,7 +33406,7 @@ var LocalInterfaceSchema = object({
33019
33406
  name: string(),
33020
33407
  family: _enum(["IPv4", "IPv6"]),
33021
33408
  address: string(),
33022
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
33409
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
33023
33410
  cidr: string(),
33024
33411
  /** OS netmask. Stable across calls so the SDK can hash on it. */
33025
33412
  netmask: string(),
@@ -33073,7 +33460,9 @@ var ConnectionEndpointSchema = object({
33073
33460
  "lan-ipv4",
33074
33461
  "lan-ipv6",
33075
33462
  "public",
33076
- "loopback"
33463
+ "loopback",
33464
+ "app-link",
33465
+ "custom"
33077
33466
  ]),
33078
33467
  /**
33079
33468
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -33142,15 +33531,27 @@ var GetConnectionEndpointsResultSchema = object({
33142
33531
  localPort: AdvertisedLocalPortSchema
33143
33532
  });
33144
33533
  /**
33145
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
33146
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
33147
- * what AUTO currently picks, so the UI can show the effective value either way.
33534
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
33535
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
33536
+ * so the UI can show it either way.
33148
33537
  */
33149
33538
  var NotificationEndpointSchema = object({
33150
33539
  /** The operator's explicit choice, or null for AUTO. */
33151
33540
  baseUrl: string().nullable(),
33152
- /** What the ranking currently resolves to (null when nothing is reachable). */
33153
- resolved: string().nullable()
33541
+ /**
33542
+ * The effective flagged address: the explicit choice, else (AUTO) the
33543
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
33544
+ * answered the public tunnel / mesh here, or null.
33545
+ */
33546
+ resolved: string().nullable(),
33547
+ /**
33548
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
33549
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
33550
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
33551
+ * hub advertises neither; the app link is then minted without `hub=`.
33552
+ * Absent on a pre-D709 hub.
33553
+ */
33554
+ appLinkHub: string().nullable()
33154
33555
  });
33155
33556
  /**
33156
33557
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -33163,6 +33564,72 @@ var ViewerEndpointsSchema = object({
33163
33564
  /** What the ranking currently resolves to (may be empty if nothing is up). */
33164
33565
  resolved: array(string()).readonly()
33165
33566
  });
33567
+ /**
33568
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
33569
+ * for addons built against it): `cluster` is the `internal` role, `browser`
33570
+ * the `publicEndpoint` role; `override` is the flagged address.
33571
+ */
33572
+ var HubAddressSnapshotSchema = object({
33573
+ override: string().nullable(),
33574
+ resolved: string().nullable(),
33575
+ source: _enum([
33576
+ "override",
33577
+ "auto",
33578
+ "none"
33579
+ ])
33580
+ });
33581
+ var HubAddressesSchema = object({
33582
+ cluster: HubAddressSnapshotSchema,
33583
+ browser: HubAddressSnapshotSchema
33584
+ });
33585
+ /**
33586
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
33587
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
33588
+ * by at most one address.
33589
+ */
33590
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
33591
+ var RoleSourceSchema = _enum([
33592
+ "flagged",
33593
+ "auto",
33594
+ "none"
33595
+ ]);
33596
+ /** One single-valued role: the flagged address, the one in use, and why. */
33597
+ var HubAddressRoleResolutionSchema = object({
33598
+ /** The address carrying the flag, or null = automatic. */
33599
+ flagged: string().nullable(),
33600
+ /** The address in use, or null when nothing qualifies (never loopback). */
33601
+ resolved: string().nullable(),
33602
+ source: RoleSourceSchema
33603
+ });
33604
+ var HubAppConnectionsResolutionSchema = object({
33605
+ /** The addresses flagged `appConnections`, or empty = automatic. */
33606
+ flagged: array(string()).readonly(),
33607
+ /** What the apps race right now. */
33608
+ resolved: array(string()).readonly(),
33609
+ source: RoleSourceSchema
33610
+ });
33611
+ var HubAddressBookSchema = object({
33612
+ rows: array(ConnectionEndpointSchema.extend({
33613
+ /** In the hub's detected palette right now. */
33614
+ detected: boolean(),
33615
+ /** Entered by the operator (removable). */
33616
+ custom: boolean(),
33617
+ /** The roles explicitly flagged on this address. */
33618
+ flags: array(HubAddressRoleSchema).readonly(),
33619
+ /** The roles this address serves right now — flagged or automatic. */
33620
+ inUse: array(HubAddressRoleSchema).readonly(),
33621
+ /** The roles this address may be flagged with. */
33622
+ eligible: array(HubAddressRoleSchema).readonly()
33623
+ })).readonly(),
33624
+ roles: object({
33625
+ appConnections: HubAppConnectionsResolutionSchema,
33626
+ notificationTaps: HubAddressRoleResolutionSchema,
33627
+ internal: HubAddressRoleResolutionSchema,
33628
+ publicEndpoint: HubAddressRoleResolutionSchema
33629
+ }),
33630
+ /** The `hub=` an app link carries (D709), or null. */
33631
+ appLinkHub: string().nullable()
33632
+ });
33166
33633
  var AllowedAddressesSchema = object({
33167
33634
  /**
33168
33635
  * Allowlist of interface addresses operators have explicitly opted
@@ -33204,8 +33671,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
33204
33671
  * Pass `'https'` when the caller is itself loaded over HTTPS
33205
33672
  * to avoid mixed-content blocks in the browser. The public
33206
33673
  * tunnel always emits `https://` regardless. */
33207
- scheme: _enum(["http", "https"]).optional()
33208
- }), 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, {
33674
+ scheme: _enum(["http", "https"]).optional(),
33675
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
33676
+ * an address notification taps can be flagged with, not a hub
33677
+ * route. Default `false`: racers and rankers never see it. */
33678
+ includeAppLink: boolean().optional()
33679
+ }), 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({
33680
+ baseUrl: string(),
33681
+ label: string().max(80)
33682
+ }), HubAddressBookSchema, {
33683
+ kind: "mutation",
33684
+ auth: "admin"
33685
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
33686
+ kind: "mutation",
33687
+ auth: "admin"
33688
+ }), method(object({
33689
+ role: HubAddressRoleSchema,
33690
+ baseUrl: string().nullable(),
33691
+ enabled: boolean(),
33692
+ acceptInsecureHttp: boolean().optional()
33693
+ }), HubAddressBookSchema, {
33694
+ kind: "mutation",
33695
+ auth: "admin"
33696
+ }), 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, {
33209
33697
  kind: "mutation",
33210
33698
  auth: "admin"
33211
33699
  }), method(object({
@@ -33533,7 +34021,7 @@ var MeshPeerSchema = object({
33533
34021
  tags: array(string()).readonly(),
33534
34022
  /** True when the peer advertises itself as an exit-node candidate. */
33535
34023
  exitNodeOption: boolean(),
33536
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
34024
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
33537
34025
  advertisedRoutes: array(string()).readonly(),
33538
34026
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
33539
34027
  userLogin: string().nullable(),
@@ -33663,7 +34151,8 @@ var MotionStatusSchema = object({
33663
34151
  * writes this slice (not even a boot seed), and neither does the runner's
33664
34152
  * phase machine: its phase is "a session is attached" for every on-motion
33665
34153
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
33666
- * A provider's `isDetected` answers from the hub's slice.
34154
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
34155
+ * (`hubMotionNativeProvider`).
33667
34156
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
33668
34157
  * imports) — the provider pushes both edges itself, from the upstream
33669
34158
  * system's own state change. That is the sensor's own fact.
@@ -34861,7 +35350,13 @@ var OsdStatusSchema = object({ overlays: array(object({
34861
35350
  */
34862
35351
  availablePositions: array(OsdPositionEnum).readonly(),
34863
35352
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
34864
- readOnly: boolean().optional()
35353
+ readOnly: boolean().optional(),
35354
+ /**
35355
+ * Firmware text ceiling for this overlay. Absent = no known limit.
35356
+ * The OSD manager truncates here on every write — never stores its own
35357
+ * copy on the binding.
35358
+ */
35359
+ maxCharacters: number().int().positive().optional()
34865
35360
  })).readonly() });
34866
35361
  var OsdOverlayPatchSchema = object({
34867
35362
  enabled: boolean().optional(),
@@ -34912,7 +35407,9 @@ var OsdTemplateBindingSchema = object({
34912
35407
  valuePath: string().min(1).max(64),
34913
35408
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
34914
35409
  displayUnit: string().max(16).optional(),
34915
- maxDecimals: number().int().min(0).max(4).default(1)
35410
+ maxDecimals: number().int().min(0).max(4).default(1),
35411
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
35412
+ valueMap: record(string(), string()).optional()
34916
35413
  });
34917
35414
  /**
34918
35415
  * A named template: bindings (alias → leaf field) + a parser that
@@ -34962,18 +35459,11 @@ var OsdSlotBindingSchema = object({
34962
35459
  source: OsdSourceSchema,
34963
35460
  /** `${value}` and `${unit}` are substituted; every occurrence. */
34964
35461
  template: string().max(96).default("${value}"),
34965
- /** Truncate with an ellipsis past this length. Absent = no limit. */
34966
- maxCharacters: number().int().min(4).max(64).optional(),
34967
35462
  /**
34968
35463
  * Decimal places for a numeric value. `0` yields an integer — the
34969
35464
  * documented workaround for firmwares that reject `.` in overlay text.
34970
35465
  */
34971
35466
  maxDecimals: number().int().min(0).max(4).default(1),
34972
- /**
34973
- * Appended via `${unit}` when no unit conversion produces a label.
34974
- * Prefer `source.displayUnit` for converted device-state values.
34975
- */
34976
- unitLabel: string().max(8).optional(),
34977
35467
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
34978
35468
  valueMap: record(string(), string()).optional(),
34979
35469
  /** Time windows in which the slot is shown. Absent = always. */
@@ -34982,9 +35472,7 @@ var OsdSlotBindingSchema = object({
34982
35472
  * Display gate, in the notification centre's condition vocabulary.
34983
35473
  * Only the keys reported by `getConditionSupport` are accepted.
34984
35474
  */
34985
- conditions: NcConditionsSchema.optional(),
34986
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
34987
- fallbackText: string().max(64).default("")
35475
+ conditions: NcConditionsSchema.optional()
34988
35476
  });
34989
35477
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
34990
35478
  var OsdSlotViewSchema = object({
@@ -40211,6 +40699,16 @@ var zoneRulesCapability = {
40211
40699
  durability: "restored"
40212
40700
  };
40213
40701
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
40702
+ Object.freeze({
40703
+ person: .5,
40704
+ vehicle: .5,
40705
+ animal: .5
40706
+ });
40707
+ Object.freeze({
40708
+ person: .65,
40709
+ vehicle: .65,
40710
+ animal: .65
40711
+ });
40214
40712
  /**
40215
40713
  * Accessory device helpers — shared across drivers.
40216
40714
  *
@@ -43091,90 +43589,18 @@ Object.freeze({
43091
43589
  addonId: null,
43092
43590
  access: "create"
43093
43591
  },
43094
- "decoder.createSession": {
43095
- capName: "decoder",
43096
- capScope: "system",
43097
- addonId: null,
43098
- access: "view"
43099
- },
43100
- "decoder.destroySession": {
43101
- capName: "decoder",
43102
- capScope: "system",
43103
- addonId: null,
43104
- access: "delete"
43105
- },
43106
- "decoder.getFrame": {
43107
- capName: "decoder",
43108
- capScope: "system",
43109
- addonId: null,
43110
- access: "view"
43111
- },
43112
43592
  "decoder.getInfo": {
43113
43593
  capName: "decoder",
43114
43594
  capScope: "system",
43115
43595
  addonId: null,
43116
43596
  access: "view"
43117
43597
  },
43118
- "decoder.getShmStats": {
43119
- capName: "decoder",
43120
- capScope: "system",
43121
- addonId: null,
43122
- access: "view"
43123
- },
43124
- "decoder.getStats": {
43125
- capName: "decoder",
43126
- capScope: "system",
43127
- addonId: null,
43128
- access: "view"
43129
- },
43130
- "decoder.listActiveSessions": {
43131
- capName: "decoder",
43132
- capScope: "system",
43133
- addonId: null,
43134
- access: "view"
43135
- },
43136
- "decoder.openStream": {
43137
- capName: "decoder",
43138
- capScope: "system",
43139
- addonId: null,
43140
- access: "view"
43141
- },
43142
- "decoder.pullFrames": {
43143
- capName: "decoder",
43144
- capScope: "system",
43145
- addonId: null,
43146
- access: "view"
43147
- },
43148
- "decoder.pullHandles": {
43149
- capName: "decoder",
43150
- capScope: "system",
43151
- addonId: null,
43152
- access: "view"
43153
- },
43154
- "decoder.pushPacket": {
43155
- capName: "decoder",
43156
- capScope: "system",
43157
- addonId: null,
43158
- access: "view"
43159
- },
43160
43598
  "decoder.reprobeHwaccel": {
43161
43599
  capName: "decoder",
43162
43600
  capScope: "system",
43163
43601
  addonId: null,
43164
43602
  access: "create"
43165
43603
  },
43166
- "decoder.supportsCodec": {
43167
- capName: "decoder",
43168
- capScope: "system",
43169
- addonId: null,
43170
- access: "view"
43171
- },
43172
- "decoder.updateConfig": {
43173
- capName: "decoder",
43174
- capScope: "system",
43175
- addonId: null,
43176
- access: "view"
43177
- },
43178
43604
  "detectionPipeline.applyDeviceSettingsPatch": {
43179
43605
  capName: "detection-pipeline",
43180
43606
  capScope: "device",
@@ -44663,12 +45089,24 @@ Object.freeze({
44663
45089
  addonId: null,
44664
45090
  access: "view"
44665
45091
  },
45092
+ "localNetwork.addCustomAddress": {
45093
+ capName: "local-network",
45094
+ capScope: "system",
45095
+ addonId: null,
45096
+ access: "create"
45097
+ },
44666
45098
  "localNetwork.downloadCa": {
44667
45099
  capName: "local-network",
44668
45100
  capScope: "system",
44669
45101
  addonId: null,
44670
45102
  access: "view"
44671
45103
  },
45104
+ "localNetwork.getAddresses": {
45105
+ capName: "local-network",
45106
+ capScope: "system",
45107
+ addonId: null,
45108
+ access: "view"
45109
+ },
44672
45110
  "localNetwork.getAllowedAddresses": {
44673
45111
  capName: "local-network",
44674
45112
  capScope: "system",
@@ -44681,6 +45119,12 @@ Object.freeze({
44681
45119
  addonId: null,
44682
45120
  access: "view"
44683
45121
  },
45122
+ "localNetwork.getHubAddresses": {
45123
+ capName: "local-network",
45124
+ capScope: "system",
45125
+ addonId: null,
45126
+ access: "view"
45127
+ },
44684
45128
  "localNetwork.getNotificationEndpoint": {
44685
45129
  capName: "local-network",
44686
45130
  capScope: "system",
@@ -44717,6 +45161,12 @@ Object.freeze({
44717
45161
  addonId: null,
44718
45162
  access: "create"
44719
45163
  },
45164
+ "localNetwork.removeCustomAddress": {
45165
+ capName: "local-network",
45166
+ capScope: "system",
45167
+ addonId: null,
45168
+ access: "delete"
45169
+ },
44720
45170
  "localNetwork.resetAllowlistToBestMatch": {
44721
45171
  capName: "local-network",
44722
45172
  capScope: "system",
@@ -44729,6 +45179,12 @@ Object.freeze({
44729
45179
  addonId: null,
44730
45180
  access: "create"
44731
45181
  },
45182
+ "localNetwork.setAddressRole": {
45183
+ capName: "local-network",
45184
+ capScope: "system",
45185
+ addonId: null,
45186
+ access: "create"
45187
+ },
44732
45188
  "localNetwork.setAllowedAddresses": {
44733
45189
  capName: "local-network",
44734
45190
  capScope: "system",
@@ -46223,13 +46679,13 @@ Object.freeze({
46223
46679
  addonId: null,
46224
46680
  access: "delete"
46225
46681
  },
46226
- "pipelineExecutor.deleteModel": {
46682
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
46227
46683
  capName: "pipeline-executor",
46228
46684
  capScope: "system",
46229
46685
  addonId: null,
46230
46686
  access: "delete"
46231
46687
  },
46232
- "pipelineExecutor.deleteTemplate": {
46688
+ "pipelineExecutor.deleteModel": {
46233
46689
  capName: "pipeline-executor",
46234
46690
  capScope: "system",
46235
46691
  addonId: null,
@@ -46373,12 +46829,6 @@ Object.freeze({
46373
46829
  addonId: null,
46374
46830
  access: "view"
46375
46831
  },
46376
- "pipelineExecutor.listTemplates": {
46377
- capName: "pipeline-executor",
46378
- capScope: "system",
46379
- addonId: null,
46380
- access: "view"
46381
- },
46382
46832
  "pipelineExecutor.rearmInferenceDevice": {
46383
46833
  capName: "pipeline-executor",
46384
46834
  capScope: "system",
@@ -46403,12 +46853,6 @@ Object.freeze({
46403
46853
  addonId: null,
46404
46854
  access: "create"
46405
46855
  },
46406
- "pipelineExecutor.saveTemplate": {
46407
- capName: "pipeline-executor",
46408
- capScope: "system",
46409
- addonId: null,
46410
- access: "create"
46411
- },
46412
46856
  "pipelineExecutor.setVideoPipelineSteps": {
46413
46857
  capName: "pipeline-executor",
46414
46858
  capScope: "system",
@@ -46427,41 +46871,35 @@ Object.freeze({
46427
46871
  addonId: null,
46428
46872
  access: "create"
46429
46873
  },
46430
- "pipelineExecutor.updateTemplate": {
46431
- capName: "pipeline-executor",
46432
- capScope: "system",
46433
- addonId: null,
46434
- access: "create"
46435
- },
46436
46874
  "pipelineExecutor.validatePipeline": {
46437
46875
  capName: "pipeline-executor",
46438
46876
  capScope: "system",
46439
46877
  addonId: null,
46440
46878
  access: "view"
46441
46879
  },
46442
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
46880
+ "pipelineOrchestrator.applyAutoTune": {
46443
46881
  capName: "pipeline-orchestrator",
46444
46882
  capScope: "system",
46445
46883
  addonId: null,
46446
46884
  access: "create"
46447
46885
  },
46448
- "pipelineOrchestrator.assignAudio": {
46886
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
46449
46887
  capName: "pipeline-orchestrator",
46450
46888
  capScope: "system",
46451
46889
  addonId: null,
46452
46890
  access: "create"
46453
46891
  },
46454
- "pipelineOrchestrator.assignPipeline": {
46892
+ "pipelineOrchestrator.assignAudio": {
46455
46893
  capName: "pipeline-orchestrator",
46456
46894
  capScope: "system",
46457
46895
  addonId: null,
46458
46896
  access: "create"
46459
46897
  },
46460
- "pipelineOrchestrator.deleteTemplate": {
46898
+ "pipelineOrchestrator.assignPipeline": {
46461
46899
  capName: "pipeline-orchestrator",
46462
46900
  capScope: "system",
46463
46901
  addonId: null,
46464
- access: "delete"
46902
+ access: "create"
46465
46903
  },
46466
46904
  "pipelineOrchestrator.getAgentLoad": {
46467
46905
  capName: "pipeline-orchestrator",
@@ -46553,6 +46991,12 @@ Object.freeze({
46553
46991
  addonId: null,
46554
46992
  access: "view"
46555
46993
  },
46994
+ "pipelineOrchestrator.getEffectiveShares": {
46995
+ capName: "pipeline-orchestrator",
46996
+ capScope: "system",
46997
+ addonId: null,
46998
+ access: "view"
46999
+ },
46556
47000
  "pipelineOrchestrator.getGlobalMetrics": {
46557
47001
  capName: "pipeline-orchestrator",
46558
47002
  capScope: "system",
@@ -46589,19 +47033,19 @@ Object.freeze({
46589
47033
  addonId: null,
46590
47034
  access: "view"
46591
47035
  },
46592
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
47036
+ "pipelineOrchestrator.getPlacementStats": {
46593
47037
  capName: "pipeline-orchestrator",
46594
47038
  capScope: "system",
46595
47039
  addonId: null,
46596
47040
  access: "view"
46597
47041
  },
46598
- "pipelineOrchestrator.listAgentSettings": {
47042
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
46599
47043
  capName: "pipeline-orchestrator",
46600
47044
  capScope: "system",
46601
47045
  addonId: null,
46602
47046
  access: "view"
46603
47047
  },
46604
- "pipelineOrchestrator.listTemplates": {
47048
+ "pipelineOrchestrator.listAgentSettings": {
46605
47049
  capName: "pipeline-orchestrator",
46606
47050
  capScope: "system",
46607
47051
  addonId: null,
@@ -46613,6 +47057,12 @@ Object.freeze({
46613
47057
  addonId: null,
46614
47058
  access: "create"
46615
47059
  },
47060
+ "pipelineOrchestrator.planAutoTune": {
47061
+ capName: "pipeline-orchestrator",
47062
+ capScope: "system",
47063
+ addonId: null,
47064
+ access: "view"
47065
+ },
46616
47066
  "pipelineOrchestrator.rebalance": {
46617
47067
  capName: "pipeline-orchestrator",
46618
47068
  capScope: "system",
@@ -46655,12 +47105,6 @@ Object.freeze({
46655
47105
  addonId: null,
46656
47106
  access: "create"
46657
47107
  },
46658
- "pipelineOrchestrator.saveTemplate": {
46659
- capName: "pipeline-orchestrator",
46660
- capScope: "system",
46661
- addonId: null,
46662
- access: "create"
46663
- },
46664
47108
  "pipelineOrchestrator.setAgentCapabilities": {
46665
47109
  capName: "pipeline-orchestrator",
46666
47110
  capScope: "system",
@@ -46673,12 +47117,6 @@ Object.freeze({
46673
47117
  addonId: null,
46674
47118
  access: "create"
46675
47119
  },
46676
- "pipelineOrchestrator.setAgentDetectWeight": {
46677
- capName: "pipeline-orchestrator",
46678
- capScope: "system",
46679
- addonId: null,
46680
- access: "create"
46681
- },
46682
47120
  "pipelineOrchestrator.setAgentInferenceDevices": {
46683
47121
  capName: "pipeline-orchestrator",
46684
47122
  capScope: "system",
@@ -46715,6 +47153,12 @@ Object.freeze({
46715
47153
  addonId: null,
46716
47154
  access: "create"
46717
47155
  },
47156
+ "pipelineOrchestrator.setCameraStepSettings": {
47157
+ capName: "pipeline-orchestrator",
47158
+ capScope: "system",
47159
+ addonId: null,
47160
+ access: "create"
47161
+ },
46718
47162
  "pipelineOrchestrator.setCameraStepToggle": {
46719
47163
  capName: "pipeline-orchestrator",
46720
47164
  capScope: "system",
@@ -46733,25 +47177,37 @@ Object.freeze({
46733
47177
  addonId: null,
46734
47178
  access: "create"
46735
47179
  },
47180
+ "pipelineOrchestrator.setLoadBalancingShares": {
47181
+ capName: "pipeline-orchestrator",
47182
+ capScope: "system",
47183
+ addonId: null,
47184
+ access: "create"
47185
+ },
46736
47186
  "pipelineOrchestrator.setPipelineDevicePin": {
46737
47187
  capName: "pipeline-orchestrator",
46738
47188
  capScope: "system",
46739
47189
  addonId: null,
46740
47190
  access: "create"
46741
47191
  },
46742
- "pipelineOrchestrator.unassignAudio": {
47192
+ "pipelineOrchestrator.setShareSource": {
46743
47193
  capName: "pipeline-orchestrator",
46744
47194
  capScope: "system",
46745
47195
  addonId: null,
46746
47196
  access: "create"
46747
47197
  },
46748
- "pipelineOrchestrator.unassignPipeline": {
47198
+ "pipelineOrchestrator.suggestShares": {
47199
+ capName: "pipeline-orchestrator",
47200
+ capScope: "system",
47201
+ addonId: null,
47202
+ access: "view"
47203
+ },
47204
+ "pipelineOrchestrator.unassignAudio": {
46749
47205
  capName: "pipeline-orchestrator",
46750
47206
  capScope: "system",
46751
47207
  addonId: null,
46752
47208
  access: "create"
46753
47209
  },
46754
- "pipelineOrchestrator.updateTemplate": {
47210
+ "pipelineOrchestrator.unassignPipeline": {
46755
47211
  capName: "pipeline-orchestrator",
46756
47212
  capScope: "system",
46757
47213
  addonId: null,
@@ -48191,12 +48647,6 @@ Object.freeze({
48191
48647
  addonId: null,
48192
48648
  access: "view"
48193
48649
  },
48194
- "streamBroker.pullFrameHandles": {
48195
- capName: "stream-broker",
48196
- capScope: "system",
48197
- addonId: null,
48198
- access: "view"
48199
- },
48200
48650
  "streamBroker.regenerateRtspToken": {
48201
48651
  capName: "stream-broker",
48202
48652
  capScope: "system",
@@ -48263,12 +48713,6 @@ Object.freeze({
48263
48713
  addonId: null,
48264
48714
  access: "create"
48265
48715
  },
48266
- "streamBroker.subscribeFrames": {
48267
- capName: "stream-broker",
48268
- capScope: "system",
48269
- addonId: null,
48270
- access: "create"
48271
- },
48272
48716
  "streamBroker.unassignProfile": {
48273
48717
  capName: "stream-broker",
48274
48718
  capScope: "system",
@@ -48281,12 +48725,6 @@ Object.freeze({
48281
48725
  addonId: null,
48282
48726
  access: "create"
48283
48727
  },
48284
- "streamBroker.unsubscribeFrames": {
48285
- capName: "stream-broker",
48286
- capScope: "system",
48287
- addonId: null,
48288
- access: "create"
48289
- },
48290
48728
  "streamCatalog.getCatalog": {
48291
48729
  capName: "stream-catalog",
48292
48730
  capScope: "device",
@@ -48983,6 +49421,12 @@ Object.freeze({
48983
49421
  addonId: null,
48984
49422
  access: "create"
48985
49423
  },
49424
+ "webrtcSession.applyDownlinkProbe": {
49425
+ capName: "webrtc-session",
49426
+ capScope: "device",
49427
+ addonId: null,
49428
+ access: "create"
49429
+ },
48986
49430
  "webrtcSession.closeSession": {
48987
49431
  capName: "webrtc-session",
48988
49432
  capScope: "device",
@@ -50794,11 +51238,6 @@ Object.freeze({
50794
51238
  form: "single",
50795
51239
  optional: false
50796
51240
  }],
50797
- "decoder.createSession": [{
50798
- name: "deviceId",
50799
- form: "single",
50800
- optional: true
50801
- }],
50802
51241
  "detectionPipeline.applyDeviceSettingsPatch": [{
50803
51242
  name: "deviceId",
50804
51243
  form: "single",
@@ -52029,6 +52468,11 @@ Object.freeze({
52029
52468
  form: "single",
52030
52469
  optional: false
52031
52470
  }],
52471
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
52472
+ name: "deviceIds",
52473
+ form: "array",
52474
+ optional: true
52475
+ }],
52032
52476
  "pipelineExecutor.runPipeline": [{
52033
52477
  name: "deviceId",
52034
52478
  form: "single",
@@ -52134,6 +52578,11 @@ Object.freeze({
52134
52578
  form: "single",
52135
52579
  optional: false
52136
52580
  }],
52581
+ "pipelineOrchestrator.setCameraStepSettings": [{
52582
+ name: "deviceId",
52583
+ form: "single",
52584
+ optional: false
52585
+ }],
52137
52586
  "pipelineOrchestrator.setCameraStepToggle": [{
52138
52587
  name: "deviceId",
52139
52588
  form: "single",
@@ -52905,6 +53354,11 @@ Object.freeze({
52905
53354
  form: "single",
52906
53355
  optional: false
52907
53356
  }],
53357
+ "webrtcSession.applyDownlinkProbe": [{
53358
+ name: "deviceId",
53359
+ form: "single",
53360
+ optional: false
53361
+ }],
52908
53362
  "webrtcSession.closeSession": [{
52909
53363
  name: "deviceId",
52910
53364
  form: "single",
@@ -53134,6 +53588,8 @@ new Map(Object.entries({
53134
53588
  "detection-blind": "device-events",
53135
53589
  "node-online": "system",
53136
53590
  "node-offline": "system",
53591
+ "node-restarting": "system",
53592
+ "node-updating": "system",
53137
53593
  "node-inference-unavailable": "system",
53138
53594
  "addon-crash-loop": "system",
53139
53595
  "addon-update-available": "system",
@@ -53211,18 +53667,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
53211
53667
  kinds: [
53212
53668
  "node-offline",
53213
53669
  "node-online",
53670
+ "node-restarting",
53214
53671
  "node-inference-unavailable"
53215
53672
  ]
53216
53673
  },
53217
53674
  {
53218
53675
  id: "addons",
53219
53676
  family: "system",
53220
- label: "Addons",
53221
- kinds: [
53222
- "addon-crash-loop",
53223
- "addon-update-available",
53224
- "addon-updated"
53225
- ]
53677
+ label: "Addons stopped",
53678
+ kinds: ["addon-crash-loop"]
53679
+ },
53680
+ {
53681
+ id: "addon-updates",
53682
+ family: "system",
53683
+ label: "Addon updates",
53684
+ kinds: ["addon-update-available", "addon-updated"]
53226
53685
  },
53227
53686
  {
53228
53687
  id: "updates",
@@ -53230,6 +53689,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
53230
53689
  label: "Server & container updates",
53231
53690
  kinds: [
53232
53691
  "server-update-available",
53692
+ "node-updating",
53233
53693
  "server-updated",
53234
53694
  "wrapper-update-available"
53235
53695
  ]
@@ -53377,18 +53837,21 @@ var STATE_SUMMARY_SECTION_VARS = [
53377
53837
  kinds: [
53378
53838
  "node-offline",
53379
53839
  "node-online",
53840
+ "node-restarting",
53380
53841
  "node-inference-unavailable"
53381
53842
  ]
53382
53843
  },
53383
53844
  {
53384
53845
  name: "summaryAddons",
53385
- label: "Summary: addons",
53386
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
53387
- kinds: [
53388
- "addon-crash-loop",
53389
- "addon-update-available",
53390
- "addon-updated"
53391
- ]
53846
+ label: "Summary: addons stopped",
53847
+ example: "hub — recorder stopped after repeated crashes",
53848
+ kinds: ["addon-crash-loop"]
53849
+ },
53850
+ {
53851
+ name: "summaryAddonUpdates",
53852
+ label: "Summary: addon updates",
53853
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
53854
+ kinds: ["addon-update-available", "addon-updated"]
53392
53855
  },
53393
53856
  {
53394
53857
  name: "summaryUpdates",
@@ -53396,6 +53859,7 @@ var STATE_SUMMARY_SECTION_VARS = [
53396
53859
  example: "server 1.2.377 → 1.2.378",
53397
53860
  kinds: [
53398
53861
  "server-update-available",
53862
+ "node-updating",
53399
53863
  "server-updated",
53400
53864
  "wrapper-update-available"
53401
53865
  ]
@@ -53428,7 +53892,7 @@ var STATE_SUMMARY_VARS = [
53428
53892
  {
53429
53893
  name: "summarySection",
53430
53894
  label: "Summary: this section",
53431
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
53895
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
53432
53896
  example: "Batterie scariche",
53433
53897
  group: "system",
53434
53898
  families: ["rule"],
@@ -53472,6 +53936,7 @@ var STATE_SUMMARY_VARS = [
53472
53936
  [...RULE_BODY_ONLY],
53473
53937
  [...RULE_TEXT],
53474
53938
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
53939
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
53475
53940
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
53476
53941
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
53477
53942
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -53512,6 +53977,8 @@ var STATE_SUMMARY_VARS = [
53512
53977
  [...RULE_TEXT],
53513
53978
  [...RULE_TEXT],
53514
53979
  [...RULE_TEXT],
53980
+ [...RULE_TEXT],
53981
+ [...RULE_TEXT],
53515
53982
  ...STATE_SUMMARY_VARS
53516
53983
  ];
53517
53984
  new Set([