@camstack/addon-provider-rademacher 0.2.119 → 0.2.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +1000 -533
  2. package/dist/addon.mjs +1000 -533
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -983,7 +983,7 @@ var Rademacher = class {
983
983
  }
984
984
  };
985
985
  //#endregion
986
- //#region ../types/dist/event-category-BGmz_oxW.mjs
986
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
987
987
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
988
988
  EventCategory["SystemBoot"] = "system.boot";
989
989
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -1484,15 +1484,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
1484
1484
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
1485
1485
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
1486
1486
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
1487
- /**
1488
- * Per-agent hwaccel preference changed (user override set, cleared, or
1489
- * re-probed). Observability event — decoders pull the current pref at
1490
- * `createSession`, so running sessions keep their current backend until
1491
- * they rotate naturally (camera add/remove, stream restart). Future
1492
- * work can wire a listener in stream-broker that force-rotates live
1493
- * sessions; for now this event powers logs + admin-UI toast feedback.
1494
- */
1495
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
1496
1487
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
1497
1488
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
1498
1489
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -6363,7 +6354,7 @@ var ZodIssueCode = {
6363
6354
  var ZodFirstPartyTypeKind;
6364
6355
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6365
6356
  //#endregion
6366
- //#region ../types/dist/sleep-DXKLNFvA.mjs
6357
+ //#region ../types/dist/sleep-BNeXenvr.mjs
6367
6358
  /**
6368
6359
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6369
6360
  * window to float samples (D455).
@@ -7729,32 +7720,12 @@ object({
7729
7720
  audioCodec: string().optional(),
7730
7721
  metadata: record(string(), unknown()).readonly().optional()
7731
7722
  });
7732
- var EncodedPacketSchema = object({
7733
- type: _enum(["video", "audio"]),
7734
- data: _instanceof(Uint8Array),
7735
- pts: number(),
7736
- dts: number(),
7737
- keyframe: boolean(),
7738
- codec: string()
7739
- });
7740
- var DecodedFrameSchema = object({
7741
- data: _instanceof(Uint8Array),
7742
- width: number(),
7743
- height: number(),
7744
- format: _enum([
7745
- "jpeg",
7746
- "rgb",
7747
- "bgr",
7748
- "yuv420",
7749
- "gray"
7750
- ]),
7751
- timestamp: number()
7752
- });
7753
7723
  /**
7754
7724
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
7755
7725
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
7756
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
7757
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
7726
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
7727
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
7728
+ * over tRPC / Moleculer.
7758
7729
  *
7759
7730
  * The `satisfies` assertion below pins this schema to the interface: if a
7760
7731
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -7780,50 +7751,6 @@ var FrameHandleSchema = object({
7780
7751
  slotCount: number().int().positive()
7781
7752
  });
7782
7753
  /**
7783
- * Pixel format a frame-handle subscriber can request from the broker
7784
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
7785
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
7786
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
7787
- * payload, and no decoded-frame consumer requests it over the shm plane.
7788
- */
7789
- var FrameHandleFormatSchema = _enum([
7790
- "rgb",
7791
- "bgr",
7792
- "yuv420",
7793
- "gray"
7794
- ]);
7795
- /**
7796
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
7797
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
7798
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
7799
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
7800
- * they asked for with no broker-side conversion.
7801
- */
7802
- var SubscribeFramesInputSchema = object({
7803
- brokerId: string(),
7804
- format: FrameHandleFormatSchema,
7805
- /**
7806
- * Optional reader-side cadence hint in frames per second. The broker does
7807
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
7808
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
7809
- * the consumer can pace its own `pullFrameHandles` polling.
7810
- */
7811
- maxFps: number().positive().optional(),
7812
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
7813
- tag: string().optional()
7814
- });
7815
- /**
7816
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
7817
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
7818
- * `FrameHandle` to a `FrameRingReader`.
7819
- */
7820
- var SubscribeFramesResultSchema = object({
7821
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
7822
- subscriptionId: string(),
7823
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
7824
- maxFps: number().nonnegative()
7825
- });
7826
- /**
7827
7754
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
7828
7755
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
7829
7756
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -7831,8 +7758,8 @@ var SubscribeFramesResultSchema = object({
7831
7758
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
7832
7759
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
7833
7760
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
7834
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
7835
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
7761
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
7762
+ * it.
7836
7763
  */
7837
7764
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
7838
7765
  var DecodedAudioChunkSchema = object({
@@ -7850,11 +7777,10 @@ var DecodedAudioChunkSchema = object({
7850
7777
  format: AudioChunkFormatSchema.optional()
7851
7778
  });
7852
7779
  /**
7853
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
7854
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
7855
- * asks the broker for the decoded audio-chunk stream of one broker; the
7856
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
7857
- * `pullAudioChunks`.
7780
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
7781
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
7782
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
7783
+ * the consumer drains via `pullAudioChunks`.
7858
7784
  */
7859
7785
  var SubscribeAudioChunksInputSchema = object({
7860
7786
  brokerId: string(),
@@ -7885,9 +7811,7 @@ var BrokerStatsSchema = object({
7885
7811
  "stopped"
7886
7812
  ]),
7887
7813
  inputFps: number(),
7888
- decodeFps: number(),
7889
7814
  encodedSubscribers: number(),
7890
- decodedSubscribers: number(),
7891
7815
  uptimeMs: number(),
7892
7816
  bitrateKbps: number(),
7893
7817
  idrIntervalMs: number(),
@@ -7900,14 +7824,6 @@ var BrokerStatsSchema = object({
7900
7824
  preBufferMs: number(),
7901
7825
  preBufferPackets: number(),
7902
7826
  /**
7903
- * Moleculer node id of the decoder provider currently servicing this
7904
- * stream's decoded subscribers. `null` until the deferred decoder is
7905
- * created (no decoded clients yet, or codec not detected). Surfaces the
7906
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
7907
- * a separate cap call per broker.
7908
- */
7909
- decoderNodeId: string().nullable(),
7910
- /**
7911
7827
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
7912
7828
  * when the stream has no audio track or the broker is in cold start.
7913
7829
  * `supported = false` means the codec was detected but the local
@@ -11243,70 +11159,6 @@ var StorageLocationDeclarationSchema = object({
11243
11159
  "backup"
11244
11160
  ]).optional()
11245
11161
  });
11246
- var DecoderStatsSchema = object({
11247
- inputFps: number(),
11248
- outputFps: number(),
11249
- avgDecodeTimeMs: number(),
11250
- droppedFrames: number(),
11251
- /**
11252
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
11253
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
11254
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
11255
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
11256
- */
11257
- lagMs: number().optional(),
11258
- effectiveFps: number().optional(),
11259
- adaptiveFps: number().optional()
11260
- });
11261
- var DecoderSessionConfigSchema = object({
11262
- codec: string(),
11263
- maxFps: number().default(0),
11264
- outputFormat: _enum([
11265
- "jpeg",
11266
- "rgb",
11267
- "bgr",
11268
- "yuv420",
11269
- "gray"
11270
- ]).default("jpeg"),
11271
- scale: number().default(1),
11272
- width: number().optional(),
11273
- height: number().optional(),
11274
- /**
11275
- * Identifier of the camera this decoder session serves. Optional
11276
- * because the cap is generic (any caller could request decode), but
11277
- * stream-broker passes it so decoder logs include `deviceId` for
11278
- * per-camera filtering when diagnosing failures (e.g. node-av
11279
- * sendPacket errors on a single hung camera).
11280
- */
11281
- deviceId: number().int().nonnegative().optional(),
11282
- /**
11283
- * Free-form tag for log scoping. Stream-broker uses
11284
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
11285
- * on every line so `grep tag=broker:5/high` filters one camera
11286
- * profile cleanly.
11287
- */
11288
- tag: string().optional(),
11289
- /**
11290
- * Where the session delivers decoded frames (Phase 5 / D9):
11291
- *
11292
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
11293
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
11294
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
11295
- * into an OS shared-memory ring and drained as zero-pixel
11296
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
11297
- * other — `pullFrames` returns nothing for an `'shm'` session and
11298
- * `pullHandles` returns nothing for a `'callback'` session.
11299
- */
11300
- frameSink: _enum(["callback", "shm"]).default("callback"),
11301
- /**
11302
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
11303
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
11304
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
11305
- * stream-broker's `streamingDebug` gate — off by default so production logs
11306
- * stay quiet and the emit path pays zero per-frame cost when disabled.
11307
- */
11308
- debug: boolean().optional()
11309
- });
11310
11162
  /**
11311
11163
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
11312
11164
  * an addon declares its channels in.
@@ -11449,6 +11301,26 @@ var ClipSearchStrictnessSchema = _enum([
11449
11301
  "balanced",
11450
11302
  "strict"
11451
11303
  ]);
11304
+ /** Steps whose effect a root label can BE. */
11305
+ var LABEL_SUPPLY_STEP_IDS = [
11306
+ "animal-classifier",
11307
+ "vehicle-classifier",
11308
+ "package-detection"
11309
+ ];
11310
+ /** Steps whose box a root detection can BE. */
11311
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
11312
+ /**
11313
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
11314
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
11315
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
11316
+ * no camera tree carries.)
11317
+ */
11318
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
11319
+ [
11320
+ ...LABEL_SUPPLY_STEP_IDS,
11321
+ ...CROP_SUPPLY_STEP_IDS,
11322
+ ...MASK_SUPPLY_STEP_IDS
11323
+ ];
11452
11324
  var MODEL_FORMATS = [
11453
11325
  "onnx",
11454
11326
  "coreml",
@@ -11477,7 +11349,53 @@ var ModelFormatEntrySchema = object({
11477
11349
  /** Multi-file payload (directory members or sibling files). */
11478
11350
  files: array(string()).readonly().optional(),
11479
11351
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
11480
- runtimes: array(_enum(["python"])).readonly().optional()
11352
+ runtimes: array(_enum(["python"])).readonly().optional(),
11353
+ /**
11354
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
11355
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
11356
+ * weight file) comes from the downloader's generated table, kept in step
11357
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
11358
+ * node records the revision it downloaded next to the file
11359
+ * (`<file>.revision`); a copy with no record or a different one is stale
11360
+ * unless its weight file hashes to the revision, and a stale copy is
11361
+ * downloaded again, the old one serving until the new one is complete. No
11362
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
11363
+ */
11364
+ revision: string().min(1).optional()
11365
+ });
11366
+ /**
11367
+ * What a node holds for one (model, format) (D746). `current` is a complete
11368
+ * copy at its catalog revision — exactly what `downloaded: true` means.
11369
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
11370
+ * no or a different revision record, or a missing sibling. `missing` is no
11371
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
11372
+ * reclaimable bytes and a copy about to be replaced.
11373
+ */
11374
+ var ModelOnDiskStateSchema = _enum([
11375
+ "current",
11376
+ "stale",
11377
+ "missing"
11378
+ ]);
11379
+ /**
11380
+ * The numeric precision of one format's BUILD (D746) — reported only when the
11381
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
11382
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
11383
+ */
11384
+ var ModelFormatPrecisionSchema = _enum([
11385
+ "fp32",
11386
+ "fp16",
11387
+ "int8"
11388
+ ]);
11389
+ /**
11390
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
11391
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
11392
+ * them omits them, and a reader falls back to `downloaded`.
11393
+ */
11394
+ var PipelineModelFormatStatusSchema = object({
11395
+ downloaded: boolean(),
11396
+ sizeMB: number(),
11397
+ onDisk: ModelOnDiskStateSchema.optional(),
11398
+ precision: ModelFormatPrecisionSchema.optional()
11481
11399
  });
11482
11400
  /**
11483
11401
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -11518,11 +11436,11 @@ var ModelVariantGroupSchema = object({
11518
11436
  /** Quantization axis. Omit ⇒ the fp32 base build. */
11519
11437
  precision: _enum(["fp32", "int8"]).optional(),
11520
11438
  /**
11521
- * Speed-optimization axis. Omit ⇒ the standard build. `fast` marks a
11522
- * latency-optimized export (e.g. ReLU-activation variant) — the slot the
11523
- * future performance variants plug into.
11439
+ * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
11440
+ * an alternate training of the same family (Scrypted `relu_test`); chip
11441
+ * label is "Test".
11524
11442
  */
11525
- optimization: _enum(["standard", "fast"]).optional(),
11443
+ optimization: _enum(["standard", "test"]).optional(),
11526
11444
  /**
11527
11445
  * Input-resolution axis (square input side, px). Omit ⇒ the family's native
11528
11446
  * resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
@@ -11545,9 +11463,10 @@ var ModelProviderIdSchema = _enum([
11545
11463
  * are per upstream. A persisted custom-model row written when this field was a
11546
11464
  * string still parses — the string is lifted into `{ weights }`.
11547
11465
  *
11548
- * Every licence surface (the admin "Models and licenses" page,
11549
- * `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
11550
- * these records by `scripts/gen-model-licenses.ts` (D661).
11466
+ * Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
11467
+ * model table) is GENERATED from these records by
11468
+ * `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
11469
+ * `camstack/docs` → `/docs/detection/models`.
11551
11470
  */
11552
11471
  var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
11553
11472
  /** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
@@ -11580,6 +11499,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
11580
11499
  /** True when the weights or their data forbid commercial use. */
11581
11500
  nonCommercial: boolean().optional()
11582
11501
  }));
11502
+ /**
11503
+ * One step a ROOT detector can supply from its own output (D730) — see
11504
+ * `ModelCatalogEntry.suppliesSteps`.
11505
+ *
11506
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
11507
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
11508
+ * the root cannot produce (shown as unavailable, never a blocker).
11509
+ * - `crop`: the root draws the box the step would have found (`license_plate`
11510
+ * for plate-detection, `face` for face-detection). The box becomes a detail
11511
+ * child of the `parentMacro` detection that contains it — never a track.
11512
+ * - `mask`: the root's decode emits an instance mask with every detection (a
11513
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
11514
+ * detection in the shape that step produces. Derived from the model's
11515
+ * postprocessor on read, never stored by an import.
11516
+ */
11517
+ var RootStepSupplySchema = discriminatedUnion("kind", [
11518
+ object({
11519
+ kind: literal("label"),
11520
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
11521
+ labelToEffect: record(string(), string()),
11522
+ uncovered: array(string()).readonly()
11523
+ }),
11524
+ object({
11525
+ kind: literal("crop"),
11526
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
11527
+ rootLabels: array(string()).readonly(),
11528
+ parentMacro: _enum(["vehicle", "person"]),
11529
+ childClass: _enum(["plate", "face"]),
11530
+ /**
11531
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
11532
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
11533
+ * stored by an import.
11534
+ */
11535
+ rootInputPx: number().int().positive().optional()
11536
+ }),
11537
+ object({
11538
+ kind: literal("mask"),
11539
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
11540
+ })
11541
+ ]);
11583
11542
  var ModelCatalogEntrySchema = object({
11584
11543
  id: string(),
11585
11544
  name: string(),
@@ -11645,6 +11604,35 @@ var ModelCatalogEntrySchema = object({
11645
11604
  */
11646
11605
  defaultConfidence: number().min(0).max(1).optional(),
11647
11606
  /**
11607
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
11608
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
11609
+ * absent here runs at the step slider's global default. The same row shape
11610
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
11611
+ * a measured table is copied in as-is. An operator override is bound to the
11612
+ * model it was made for and does not survive a model change (D738). A custom
11613
+ * / imported model may declare it; without it, the global defaults apply.
11614
+ */
11615
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
11616
+ /**
11617
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
11618
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
11619
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
11620
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
11621
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
11622
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
11623
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
11624
+ */
11625
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
11626
+ /**
11627
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
11628
+ * minimum DETECTION score from which this root's own fine label (species,
11629
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
11630
+ * keeps its macro class without the fine label. `1` = never take it from
11631
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
11632
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
11633
+ */
11634
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
11635
+ /**
11648
11636
  * When true, the executor produces a landmark-aligned crop (similarity warp
11649
11637
  * onto the canonical template) before this step runs, instead of a plain
11650
11638
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -11706,6 +11694,16 @@ var ModelCatalogEntrySchema = object({
11706
11694
  */
11707
11695
  classMap: DetectionCatalogClassMapSchema.optional(),
11708
11696
  /**
11697
+ * The pipeline steps this ROOT detector can supply from its own output
11698
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
11699
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
11700
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
11701
+ * by hand and never assumed per family; a row without it is derived on read
11702
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
11703
+ * `useRootModel` flag (`resolveRootSupply`).
11704
+ */
11705
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
11706
+ /**
11709
11707
  * The model's CLIP feature-space contract (text encoder, dimension, vector
11710
11708
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
11711
11709
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -13307,13 +13305,6 @@ var BrokerRtspClientSchema = object({
13307
13305
  lastRtpAt: number(),
13308
13306
  bytesSent: number()
13309
13307
  });
13310
- var BrokerDecodedClientSchema = object({
13311
- tag: string(),
13312
- subscribedAt: number(),
13313
- maxFps: number(),
13314
- framesDelivered: number(),
13315
- framesDropped: number()
13316
- });
13317
13308
  var BrokerAudioClientSchema = object({
13318
13309
  tag: string(),
13319
13310
  subscribedAt: number(),
@@ -13405,7 +13396,6 @@ var BrokerEncodedClientSchema = object({
13405
13396
  });
13406
13397
  var BrokerClientsSchema = object({
13407
13398
  rtsp: array(BrokerRtspClientSchema).readonly(),
13408
- decoded: array(BrokerDecodedClientSchema).readonly(),
13409
13399
  audio: array(BrokerAudioClientSchema).readonly(),
13410
13400
  encoded: array(BrokerEncodedClientSchema).readonly(),
13411
13401
  pipeClients: number(),
@@ -13774,11 +13764,7 @@ method(object({
13774
13764
  auth: "admin"
13775
13765
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
13776
13766
  brokerId: string(),
13777
- channel: _enum([
13778
- "rtsp",
13779
- "decoded",
13780
- "audio"
13781
- ]),
13767
+ channel: _enum(["rtsp", "audio"]),
13782
13768
  handle: string()
13783
13769
  }), object({ killed: boolean() }), {
13784
13770
  kind: "mutation",
@@ -13813,10 +13799,7 @@ method(object({
13813
13799
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
13814
13800
  subscriptionId: string(),
13815
13801
  maxCount: number().int().positive().default(8)
13816
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
13817
- subscriptionId: string(),
13818
- maxCount: number().int().positive().default(4)
13819
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13802
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
13820
13803
  brokerId: string(),
13821
13804
  seconds: number().min(0).max(30)
13822
13805
  }), _void(), {
@@ -15075,54 +15058,12 @@ id: union([string(), number()]) }), {
15075
15058
  kind: "mutation",
15076
15059
  auth: "admin"
15077
15060
  });
15078
- /**
15079
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
15080
- * exposed via `decoder.getShmStats` so downstream consumers can
15081
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
15082
- */
15083
- var ShmRingStatsSchema = object({
15084
- sessionId: string(),
15085
- slotCount: number().int(),
15086
- slotByteLength: number().int(),
15087
- segmentBytes: number().int(),
15088
- budgetMb: number().int(),
15089
- framesWritten: number().int(),
15090
- getFrameHits: number().int(),
15091
- getFrameMisses: number().int()
15092
- });
15093
- method(object({ codec: string() }), boolean()), method(_void(), object({
15061
+ method(_void(), object({
15094
15062
  id: string(),
15095
15063
  name: string(),
15096
- isPullMode: boolean().optional(),
15097
- priority: number().optional(),
15098
15064
  hwaccel: string().optional(),
15099
15065
  probedBestHwaccel: string().optional()
15100
- })), method(DecoderSessionConfigSchema, object({
15101
- sessionId: string(),
15102
- nodeId: string()
15103
- })), method(object({ sessionId: string() }), _void()), method(object({
15104
- sessionId: string(),
15105
- packet: EncodedPacketSchema
15106
- }), _void()), method(object({
15107
- sessionId: string(),
15108
- url: string()
15109
- }), _void()), method(object({
15110
- sessionId: string(),
15111
- maxCount: number().default(1),
15112
- waitMs: number().optional()
15113
- }), array(DecodedFrameSchema)), method(object({
15114
- sessionId: string(),
15115
- maxCount: number().default(1),
15116
- waitMs: number().optional()
15117
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
15118
- sessionId: string(),
15119
- config: DecoderSessionConfigSchema.partial()
15120
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
15121
- sessionId: string(),
15122
- codec: string(),
15123
- outputFormat: string(),
15124
- createdAtMs: number()
15125
- })).readonly()), method(_void(), object({ backend: string() }), {
15066
+ })), method(_void(), object({ backend: string() }), {
15126
15067
  kind: "mutation",
15127
15068
  auth: "admin"
15128
15069
  });
@@ -15178,7 +15119,7 @@ DeviceType.Camera;
15178
15119
  * This matters here more than anywhere else in the repo, because every provider
15179
15120
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
15180
15121
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
15181
- * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
15122
+ * and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
15182
15123
  * camera's own page will ask for its own login. That is correct, and pre-
15183
15124
  * filling it is the operator's business, not ours.
15184
15125
  *
@@ -17267,6 +17208,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
17267
17208
  kind: "mutation",
17268
17209
  auth: "admin"
17269
17210
  });
17211
+ var HUB_ADDRESS_ROLES = [
17212
+ "appConnections",
17213
+ "notificationTaps",
17214
+ "internal",
17215
+ "publicEndpoint"
17216
+ ];
17270
17217
  /**
17271
17218
  * Transport bounds for AI capability methods.
17272
17219
  *
@@ -18463,7 +18410,7 @@ method(object({
18463
18410
  timeoutMs: 6e5
18464
18411
  });
18465
18412
  method(object({
18466
- nodeId: string(),
18413
+ targetNodeId: string(),
18467
18414
  modelId: string(),
18468
18415
  format: _enum(MODEL_FORMATS),
18469
18416
  entry: ModelCatalogEntrySchema
@@ -19869,6 +19816,8 @@ var NcSystemEventKindSchema = _enum([
19869
19816
  "stream-offline",
19870
19817
  "node-online",
19871
19818
  "node-offline",
19819
+ "node-restarting",
19820
+ "node-updating",
19872
19821
  "node-inference-unavailable",
19873
19822
  "detection-blind",
19874
19823
  "addon-crash-loop",
@@ -20967,8 +20916,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
20967
20916
  disabledTargetIds: array(string()).default([])
20968
20917
  });
20969
20918
  /**
20970
- * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
20971
- * still-true state. `backups-exports` and `alarm` are not sections — a completed
20919
+ * The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
20920
+ * report a still-true state. `addons` is the crash-looped addons only and
20921
+ * `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
20972
20922
  * job is not an open state, and the alarm stays instant.
20973
20923
  */
20974
20924
  var NcStateSummarySectionIdSchema = _enum([
@@ -20980,6 +20930,7 @@ var NcStateSummarySectionIdSchema = _enum([
20980
20930
  "detection-blind",
20981
20931
  "nodes",
20982
20932
  "addons",
20933
+ "addon-updates",
20983
20934
  "updates"
20984
20935
  ]);
20985
20936
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
@@ -21460,7 +21411,25 @@ var NcAlarmModeDelaysListSchema = array(object({
21460
21411
  * When this mode may be armed. Absent / null = always allowed (same as a
21461
21412
  * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
21462
21413
  */
21463
- schedule: NcScheduleSchema.optional()
21414
+ schedule: NcScheduleSchema.optional(),
21415
+ /**
21416
+ * D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
21417
+ * intrusion naming the locations)? Absent = false — the entry-delay notification is the
21418
+ * only one, and the matches ride the triggered notification's mosaic (D705).
21419
+ */
21420
+ notifyDuringEntryDelay: boolean().optional(),
21421
+ /**
21422
+ * D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
21423
+ * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
21424
+ * is the one that starts the entry delay — the entry-delay notification already names it.
21425
+ */
21426
+ notifySensorRewatched: boolean().optional(),
21427
+ /**
21428
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
21429
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
21430
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
21431
+ */
21432
+ notifySensorIgnored: boolean().optional()
21464
21433
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
21465
21434
  var NcAlarmModeDelaysEditListSchema = array(object({
21466
21435
  mode: AlarmArmModeSchema,
@@ -21469,7 +21438,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
21469
21438
  triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
21470
21439
  postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
21471
21440
  /** Set a schedule, or `null` to clear (mode always allowed again). */
21472
- schedule: NcScheduleSchema.nullable().optional()
21441
+ schedule: NcScheduleSchema.nullable().optional(),
21442
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21443
+ notifyDuringEntryDelay: boolean().nullable().optional(),
21444
+ /** D706: set the switch, or `null` to clear it (back to the default, false). */
21445
+ notifySensorRewatched: boolean().nullable().optional(),
21446
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
21447
+ notifySensorIgnored: boolean().nullable().optional()
21473
21448
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
21474
21449
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
21475
21450
  var NcAlarmNonBlockingEditSchema = object({
@@ -22430,45 +22405,25 @@ Object.freeze(Object.fromEntries([{
22430
22405
  label: "Face recognition model",
22431
22406
  defaultModelId: "auraface-r100",
22432
22407
  indexName: "the enrolled face gallery",
22433
- options: [
22434
- {
22435
- id: "auraface-r100",
22436
- label: "AuraFace R100"
22437
- },
22438
- {
22439
- id: "arcface-r100",
22440
- label: "ArcFace (ResNet34)"
22441
- },
22442
- {
22443
- id: "inception-resnet-v1",
22444
- label: "Inception ResNet V1"
22445
- }
22446
- ]
22408
+ options: [{
22409
+ id: "auraface-r100",
22410
+ label: "AuraFace R100"
22411
+ }]
22447
22412
  }, {
22448
22413
  stepId: "clip-embedding",
22449
22414
  label: "Semantic search model",
22450
- defaultModelId: "mobileclip-s1",
22415
+ defaultModelId: "siglip2-b16-224",
22451
22416
  indexName: "the object semantic-search index",
22452
- options: [
22453
- {
22454
- id: "mobileclip-s1",
22455
- label: "MobileCLIP S1"
22456
- },
22457
- {
22458
- id: "mobileclip-s2",
22459
- label: "MobileCLIP S2"
22460
- },
22461
- {
22462
- id: "siglip2-b16-224",
22463
- label: "SigLIP2 B/16 (Apache-2.0)"
22464
- }
22465
- ]
22417
+ options: [{
22418
+ id: "siglip2-b16-224",
22419
+ label: "SigLIP2 B/16 (Apache-2.0)"
22420
+ }]
22466
22421
  }].map((s) => [s.stepId, s.defaultModelId])));
22467
22422
  var CLUSTER_STEP_SETTING_FIELDS = [{
22468
22423
  stepId: "face-embedding",
22469
22424
  key: "minLandmarkFaceSize",
22470
- label: "Min face size for recognition (detection px)",
22471
- 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.",
22425
+ label: "Min face size to embed (detection-frame px)",
22426
+ 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.",
22472
22427
  type: "slider",
22473
22428
  min: 0,
22474
22429
  max: 64,
@@ -24388,6 +24343,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
24388
24343
  timestamp: number()
24389
24344
  });
24390
24345
  /**
24346
+ * A root model's boxes standing in for one crop-kind step's own inference
24347
+ * (D730) — see `runPipeline.suppliedRoot`.
24348
+ */
24349
+ var SuppliedRootOutputSchema = object({
24350
+ stepId: string(),
24351
+ /** The root model that drew the boxes — stamped on the result. */
24352
+ modelId: string(),
24353
+ detections: array(object({
24354
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
24355
+ bbox: tuple([
24356
+ number(),
24357
+ number(),
24358
+ number(),
24359
+ number()
24360
+ ]),
24361
+ score: number(),
24362
+ /**
24363
+ * Five facial landmarks in the same pixels — a face the step's own
24364
+ * detector already re-found inside a root face box (D730), so its
24365
+ * embedder child aligns it exactly as it aligns any detected face.
24366
+ */
24367
+ landmarks: array(object({
24368
+ x: number(),
24369
+ y: number()
24370
+ })).optional()
24371
+ })).min(1)
24372
+ });
24373
+ /**
24391
24374
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
24392
24375
  * within the frame, so the executor can re-cut a leaf child ROI at native
24393
24376
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -24435,7 +24418,7 @@ var FrameRefSchema = object({
24435
24418
  timestamp: number(),
24436
24419
  capturedAt: number().optional()
24437
24420
  });
24438
- var ModelFormatSchema$1 = _enum([
24421
+ var ModelFormatSchema$2 = _enum([
24439
24422
  "onnx",
24440
24423
  "coreml",
24441
24424
  "openvino",
@@ -24453,7 +24436,7 @@ var PipelineSlotSchema = _enum([
24453
24436
  var PipelineEngineChoiceSchema = object({
24454
24437
  runtime: literal("python"),
24455
24438
  backend: string(),
24456
- format: ModelFormatSchema$1,
24439
+ format: ModelFormatSchema$2,
24457
24440
  device: string().optional()
24458
24441
  });
24459
24442
  /**
@@ -24492,32 +24475,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
24492
24475
  group: string().optional(),
24493
24476
  settings: record(string(), unknown()).optional()
24494
24477
  }));
24495
- var PipelineTemplateStepSchema = lazy(() => object({
24496
- addonId: string(),
24497
- enabled: boolean(),
24498
- modelId: string(),
24499
- children: array(PipelineTemplateStepSchema).readonly(),
24500
- settings: record(string(), unknown()).optional()
24501
- }));
24502
- var PipelineTemplateSchema$1 = object({
24503
- id: string(),
24504
- name: string(),
24505
- createdAt: string(),
24506
- updatedAt: string(),
24507
- engine: PipelineEngineChoiceSchema,
24508
- steps: array(PipelineTemplateStepSchema).readonly()
24509
- });
24510
24478
  var PipelineModelOptionSchema = object({
24511
24479
  id: string(),
24512
24480
  name: string(),
24513
- formats: record(string(), object({
24514
- downloaded: boolean(),
24515
- sizeMB: number()
24516
- })),
24481
+ formats: record(string(), PipelineModelFormatStatusSchema),
24517
24482
  group: ModelVariantGroupSchema.optional(),
24518
24483
  legacy: boolean().optional(),
24519
24484
  provider: ModelProviderIdSchema.optional(),
24520
- defaultConfidence: number().optional()
24485
+ defaultConfidence: number().optional(),
24486
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
24521
24487
  });
24522
24488
  var ConfigFieldBridge = custom();
24523
24489
  var PipelineAddonSchemaSchema = object({
@@ -24679,6 +24645,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24679
24645
  }), {
24680
24646
  kind: "mutation",
24681
24647
  auth: "admin"
24648
+ }), method(object({
24649
+ nodeId: string(),
24650
+ deviceIds: array(number()).readonly().optional(),
24651
+ dryRun: boolean()
24652
+ }), object({
24653
+ entries: array(object({
24654
+ deviceId: number(),
24655
+ keys: array(string()).readonly()
24656
+ })).readonly(),
24657
+ refused: array(object({
24658
+ deviceId: number(),
24659
+ reason: string()
24660
+ })).readonly()
24661
+ }), {
24662
+ kind: "mutation",
24663
+ auth: "admin"
24682
24664
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
24683
24665
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
24684
24666
  deviceKey: string(),
@@ -24704,22 +24686,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24704
24686
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
24705
24687
  steps: array(PipelineStepInputSchema),
24706
24688
  deviceKey: string().optional()
24707
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
24708
- name: string(),
24709
- steps: array(PipelineTemplateStepSchema).readonly(),
24710
- engine: PipelineEngineChoiceSchema
24711
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
24712
- id: string(),
24713
- name: string().optional(),
24714
- steps: array(PipelineTemplateStepSchema).readonly().optional()
24715
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
24689
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
24716
24690
  addonId: string(),
24717
24691
  modelId: string(),
24718
- format: ModelFormatSchema$1
24692
+ format: ModelFormatSchema$2
24719
24693
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
24720
24694
  addonId: string(),
24721
24695
  modelId: string(),
24722
- format: ModelFormatSchema$1
24696
+ format: ModelFormatSchema$2
24723
24697
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
24724
24698
  steps: array(PipelineStepInputSchema).min(1),
24725
24699
  frame: FrameInputSchema.optional(),
@@ -24785,7 +24759,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24785
24759
  * `device-not-servable`), and nothing reaches the camera's live
24786
24760
  * trace stream. Absent ⇒ unchanged behaviour.
24787
24761
  */
24788
- replay: literal(true).optional()
24762
+ replay: literal(true).optional(),
24763
+ /**
24764
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
24765
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
24766
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
24767
+ * NOT inferred, these boxes are its output, and its children (the plate
24768
+ * reader) run on them through their own crop policy. Boxes are in the
24769
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
24770
+ */
24771
+ suppliedRoot: SuppliedRootOutputSchema.optional()
24789
24772
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
24790
24773
  steps: array(PipelineStepInputSchema).min(1),
24791
24774
  frames: array(FrameInputSchema).min(1).max(255),
@@ -24867,6 +24850,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
24867
24850
  filename: string().optional(),
24868
24851
  settings: record(string(), unknown()).optional()
24869
24852
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
24853
+ /**
24854
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
24855
+ * `pipeline-orchestrator` cap. The recommender's own types
24856
+ * (`recommend.ts`) are the TS face of the same data; these
24857
+ * schemas are what crosses the cap boundary.
24858
+ */
24859
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
24860
+ /** The operator's range for it. */
24861
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
24862
+ min: 1,
24863
+ max: 8
24864
+ };
24865
+ var HardwareClassIdSchema = _enum([
24866
+ "intel-core-ultra",
24867
+ "intel-n-series",
24868
+ "apple-m-base",
24869
+ "apple-m-pro",
24870
+ "unknown"
24871
+ ]);
24872
+ var AcceleratorKindSchema = _enum([
24873
+ "intel-npu",
24874
+ "intel-igpu",
24875
+ "x86-cpu",
24876
+ "arm-cpu",
24877
+ "apple-ane",
24878
+ "coral"
24879
+ ]);
24880
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
24881
+ object({
24882
+ kind: literal("capacity"),
24883
+ sessions: number(),
24884
+ minSessions: number()
24885
+ }),
24886
+ object({
24887
+ kind: literal("tie-faster"),
24888
+ over: string(),
24889
+ recallDelta: number()
24890
+ }),
24891
+ object({
24892
+ kind: literal("stepped-down"),
24893
+ from: string(),
24894
+ to: string(),
24895
+ limitedBy: string()
24896
+ }),
24897
+ object({
24898
+ kind: literal("no-fit-lightest"),
24899
+ sessions: number(),
24900
+ minSessions: number()
24901
+ }),
24902
+ object({
24903
+ kind: literal("derived-latency"),
24904
+ modelId: string()
24905
+ }),
24906
+ object({ kind: literal("cpu-device") }),
24907
+ object({ kind: literal("coral-untouched") }),
24908
+ object({ kind: literal("device-disabled") }),
24909
+ object({ kind: literal("device-unavailable") }),
24910
+ object({ kind: literal("node-offline") }),
24911
+ object({ kind: literal("no-hardware-facts") }),
24912
+ object({
24913
+ kind: literal("no-measured-data"),
24914
+ hardwareClass: HardwareClassIdSchema
24915
+ }),
24916
+ object({
24917
+ kind: literal("no-family-build"),
24918
+ format: ModelFormatSchema$1
24919
+ })
24920
+ ]);
24921
+ var DeviceModelChoiceSchema = object({
24922
+ modelId: string(),
24923
+ p50Ms: number(),
24924
+ fps: number(),
24925
+ measured: boolean(),
24926
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
24927
+ capacitySessions: number(),
24928
+ personRecall: number()
24929
+ });
24930
+ var DeviceRecommendationSchema = object({
24931
+ deviceKey: string(),
24932
+ accelerator: AcceleratorKindSchema.nullable(),
24933
+ enabled: boolean(),
24934
+ available: boolean(),
24935
+ chosen: DeviceModelChoiceSchema.nullable(),
24936
+ reasons: array(RecommendationReasonSchema).readonly()
24937
+ });
24938
+ var NodeRecommendationSchema = object({
24939
+ nodeId: string(),
24940
+ reachable: boolean(),
24941
+ hardwareClass: HardwareClassIdSchema.nullable(),
24942
+ cpuModel: string().nullable(),
24943
+ skipped: boolean(),
24944
+ acceleratorModelId: string().nullable(),
24945
+ devices: array(DeviceRecommendationSchema).readonly(),
24946
+ reasons: array(RecommendationReasonSchema).readonly()
24947
+ });
24948
+ var ModelPinChangeSchema = object({
24949
+ stepId: string(),
24950
+ before: string().nullable(),
24951
+ after: string().nullable()
24952
+ });
24953
+ var NodeDeviceChangeSchema = object({
24954
+ nodeId: string(),
24955
+ deviceKey: string(),
24956
+ madeExplicit: boolean(),
24957
+ modelPins: array(ModelPinChangeSchema).readonly(),
24958
+ thresholds: array(object({
24959
+ stepId: string(),
24960
+ keys: array(string()).readonly()
24961
+ })).readonly()
24962
+ });
24963
+ var CameraOverrideClearSchema = object({
24964
+ deviceId: number(),
24965
+ source: _enum(["step-override", "wholesale"]),
24966
+ nodeId: string(),
24967
+ deviceKey: string().nullable(),
24968
+ stepId: string(),
24969
+ modelIdBefore: string().nullable(),
24970
+ keys: array(string()).readonly()
24971
+ });
24972
+ var DetectorStoreClearSchema = object({
24973
+ deviceId: number(),
24974
+ keys: array(string()).readonly()
24975
+ });
24976
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
24977
+ object({
24978
+ kind: literal("detector-store-cluster-wide"),
24979
+ skippedNodes: array(string()).readonly()
24980
+ }),
24981
+ object({
24982
+ kind: literal("detector-store-unreadable"),
24983
+ error: string()
24984
+ }),
24985
+ object({
24986
+ kind: literal("coral-enabled"),
24987
+ nodeId: string(),
24988
+ deviceKey: string()
24989
+ })
24990
+ ]);
24991
+ var AutoTuneOptionsSchema = object({
24992
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24993
+ headroom: number().min(.3).max(.5).default(.4),
24994
+ /**
24995
+ * The least number of parallel sessions every device must sustain at the
24996
+ * camera rate with the headroom kept free (D755). The most accurate model
24997
+ * that reaches it wins.
24998
+ */
24999
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
25000
+ });
25001
+ var AutoTunePlanSchema = object({
25002
+ /** Hash of everything the apply will write — the apply refuses a different one. */
25003
+ planHash: string(),
25004
+ family: literal("yolov9"),
25005
+ headroom: number(),
25006
+ minSessionsPerDevice: number(),
25007
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
25008
+ cameraFps: number(),
25009
+ generatedAt: number(),
25010
+ nodes: array(NodeRecommendationSchema).readonly(),
25011
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
25012
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
25013
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
25014
+ warnings: array(AutoTuneWarningSchema).readonly()
25015
+ });
25016
+ var AutoTuneApplyInputSchema = object({
25017
+ planHash: string(),
25018
+ headroom: number().min(.3).max(.5).default(.4),
25019
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
25020
+ });
25021
+ var AutoTunePhaseResultSchema = object({
25022
+ phase: _enum([
25023
+ "download",
25024
+ "camera-overrides",
25025
+ "detector-thresholds",
25026
+ "node-models",
25027
+ "redispatch"
25028
+ ]),
25029
+ ok: boolean(),
25030
+ detail: string()
25031
+ });
25032
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
25033
+ object({
25034
+ kind: literal("applied"),
25035
+ planHash: string(),
25036
+ phases: array(AutoTunePhaseResultSchema).readonly()
25037
+ }),
25038
+ object({
25039
+ kind: literal("aborted"),
25040
+ phases: array(AutoTunePhaseResultSchema).readonly()
25041
+ }),
25042
+ object({
25043
+ kind: literal("stale"),
25044
+ plan: AutoTunePlanSchema
25045
+ }),
25046
+ object({
25047
+ kind: literal("refused"),
25048
+ reason: _enum(["apply-in-progress"])
25049
+ })
25050
+ ]);
25051
+ /**
25052
+ * Wire shapes of the Load balancing surface (D748): the session placement
25053
+ * policy, the atomic share write, the observed placement statistics, the
25054
+ * hardware share suggestion and the stale device pins.
25055
+ */
25056
+ /**
25057
+ * How a new detection session picks its node and device.
25058
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
25059
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
25060
+ * weight only bites once a node already holds a session.
25061
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
25062
+ * full or drowning node yields to a free one (D748).
25063
+ */
25064
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
25065
+ var LoadBalancingSharesInputSchema = object({
25066
+ /** nodeId → share (> 0). A node left out keeps its weight. */
25067
+ nodes: record(string(), number().positive()).default({}),
25068
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
25069
+ devices: record(string(), record(string(), number().positive())).default({})
25070
+ });
25071
+ var PlacementStatsInputSchema = object({
25072
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
25073
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
25074
+ var PlacementDeviceStatsSchema = object({
25075
+ deviceKey: string(),
25076
+ /** Sessions running on this device now. */
25077
+ sessionsNow: number(),
25078
+ /** Sessions started on this device inside the window. */
25079
+ sessionsStarted: number(),
25080
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
25081
+ observedShare: number().nullable()
25082
+ });
25083
+ var PlacementNodeStatsSchema = object({
25084
+ nodeId: string(),
25085
+ sessionsNow: number(),
25086
+ sessionsStarted: number(),
25087
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
25088
+ observedShare: number().nullable(),
25089
+ /** Most sessions this node ran at once inside the window. */
25090
+ peakSessions: number(),
25091
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
25092
+ yieldsAway: number(),
25093
+ devices: array(PlacementDeviceStatsSchema).readonly()
25094
+ });
25095
+ /** A camera's device pin that the session path cannot honour. */
25096
+ var StaleDevicePinSchema = object({
25097
+ deviceId: number(),
25098
+ deviceKey: string(),
25099
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
25100
+ reason: _enum(["disabled", "absent"])
25101
+ });
25102
+ var PlacementStatsSchema = object({
25103
+ policy: SessionPlacementPolicySchema,
25104
+ windowMs: number(),
25105
+ /** How much of the window was actually observed (the hub keeps it in memory). */
25106
+ observedForMs: number(),
25107
+ sessionsNow: number(),
25108
+ /** Most parallel sessions across the cluster inside the window. */
25109
+ clusterPeakSessions: number(),
25110
+ nodes: array(PlacementNodeStatsSchema).readonly(),
25111
+ stalePins: array(StaleDevicePinSchema).readonly()
25112
+ });
25113
+ /**
25114
+ * Where an automatic share's capacity comes from (D755).
25115
+ * - `hardware` — the static capacity of each device at its Auto tune model:
25116
+ * the measured latency table for the node's hardware class.
25117
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
25118
+ * A node with no results falls back to `hardware`, and says so.
25119
+ */
25120
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
25121
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
25122
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
25123
+ var SuggestSharesInputSchema = object({
25124
+ headroom: number().min(.3).max(.5).default(.4),
25125
+ /** Default `hardware`. */
25126
+ source: CapacitySourceSchema.default("hardware")
25127
+ });
25128
+ var SuggestedDeviceShareSchema = object({
25129
+ deviceKey: string(),
25130
+ /** Share of the node (0–100, rounded). */
25131
+ share: number(),
25132
+ modelId: string().nullable(),
25133
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
25134
+ fps: number().nullable(),
25135
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
25136
+ measured: boolean(),
25137
+ /**
25138
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
25139
+ * or the benchmark's measured max sessions. Never enforced.
25140
+ */
25141
+ suggestedMaxSessions: number().nullable()
25142
+ });
25143
+ var SuggestedNodeShareSchema = object({
25144
+ nodeId: string(),
25145
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
25146
+ share: number().nullable(),
25147
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
25148
+ capacitySessions: number(),
25149
+ devices: array(SuggestedDeviceShareSchema).readonly(),
25150
+ skippedReason: string().nullable(),
25151
+ /** What this node's capacity was read from; null when the node is skipped. */
25152
+ capacitySource: CapacitySourceSchema.nullable(),
25153
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
25154
+ capacityFallback: CapacityFallbackSchema.nullable()
25155
+ });
25156
+ var SuggestSharesResultSchema = object({
25157
+ headroom: number(),
25158
+ /** The source asked for; each node says what it actually used. */
25159
+ source: CapacitySourceSchema,
25160
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
25161
+ cameraFps: number(),
25162
+ /** The Auto tune capacity floor the models were picked at. */
25163
+ minSessionsPerDevice: number(),
25164
+ nodes: array(SuggestedNodeShareSchema).readonly()
25165
+ });
25166
+ /**
25167
+ * Where the node and device shares come from (D750, D755).
25168
+ * - `hardware` (default) — computed by the system from each node's static
25169
+ * capacity (its accelerators at their Auto tune models, from the measured
25170
+ * latency table), recomputed whenever a node or device joins, leaves, is
25171
+ * switched on or off, or changes model. No load input.
25172
+ * - `benchmark` — the same, from each node's measured capacity (node
25173
+ * benchmark results); a node without results falls back to `hardware`.
25174
+ * - `manual` — the operator's stored sliders.
25175
+ * Either way a node or device that cannot take sessions gives its share to
25176
+ * the others in proportion; the stored values are never rewritten for that.
25177
+ */
25178
+ var ShareSourceSchema = _enum([
25179
+ "hardware",
25180
+ "benchmark",
25181
+ "manual"
25182
+ ]);
25183
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
25184
+ object({
25185
+ nodes: record(string(), number()),
25186
+ devices: record(string(), record(string(), number()))
25187
+ });
25188
+ var EffectiveDeviceShareSchema = object({
25189
+ deviceKey: string(),
25190
+ /** Can take sessions now (enabled, available, can run the root). */
25191
+ eligible: boolean(),
25192
+ /** The share the source assigns, as a percentage of the node's devices. */
25193
+ configuredPct: number(),
25194
+ /** The share actually used, after an ineligible device's share went to the others. */
25195
+ effectivePct: number()
25196
+ });
25197
+ var EffectiveNodeShareSchema = object({
25198
+ nodeId: string(),
25199
+ eligible: boolean(),
25200
+ configuredPct: number(),
25201
+ effectivePct: number(),
25202
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
25203
+ capacitySource: CapacitySourceSchema.nullable(),
25204
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
25205
+ capacityFallback: CapacityFallbackSchema.nullable(),
25206
+ devices: array(EffectiveDeviceShareSchema).readonly()
25207
+ });
25208
+ var EffectiveSharesSchema = object({
25209
+ source: ShareSourceSchema,
25210
+ policy: SessionPlacementPolicySchema,
25211
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
25212
+ autoPending: boolean(),
25213
+ /** When the automatic shares were last computed (ms epoch); null = never. */
25214
+ computedAt: number().nullable(),
25215
+ /** What made the system recompute them last. */
25216
+ trigger: string().nullable(),
25217
+ nodes: array(EffectiveNodeShareSchema).readonly(),
25218
+ /** The relative weights the election reads (before eligibility). */
25219
+ nodeWeights: record(string(), number()),
25220
+ deviceWeights: record(string(), record(string(), number()))
25221
+ });
24870
25222
  object({
24871
25223
  activeCameras: number(),
24872
25224
  throttledCameras: number(),
@@ -25350,6 +25702,22 @@ var MotionSourceEnum = _enum([
25350
25702
  "device-activity"
25351
25703
  ]);
25352
25704
  /**
25705
+ * What opened an on-motion detection SESSION: the motion source that passed the
25706
+ * camera's `motionSources` gate, and what raised it (the camera itself, or a
25707
+ * sensor the operator attached — D672). `sensorName` is the attached sensor's
25708
+ * device name as the orchestrator's camera-sensors resolution last read it;
25709
+ * absent when unknown or when the camera itself triggered.
25710
+ *
25711
+ * Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
25712
+ * can say what started the session (D672 rule 11, amended 2026-10-06). The
25713
+ * runner never decides anything on it.
25714
+ */
25715
+ var SessionTriggerSchema = object({
25716
+ source: MotionSourceEnum,
25717
+ triggeredBy: MotionTriggeredBySchema,
25718
+ sensorName: string().optional()
25719
+ });
25720
+ /**
25353
25721
  * List of motion sources active on a camera. Empty array is valid:
25354
25722
  * "no source" — happens for battery cams without firmware motion when
25355
25723
  * the operator hasn't opted into the SW analyzer (would hold the
@@ -25601,6 +25969,14 @@ var RunnerCameraConfigSchema = object({
25601
25969
  */
25602
25970
  motionSources: MotionSourcesSchema.default(["analyzer"]),
25603
25971
  /**
25972
+ * What opened this attach, on a SESSION attach only (see
25973
+ * {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
25974
+ * standing attach, an occupancy burst, a re-dispatch with no motion event
25975
+ * behind it, and every attach from an orchestrator older than the field — the
25976
+ * runner then names no source on the phase event.
25977
+ */
25978
+ sessionTrigger: SessionTriggerSchema.optional(),
25979
+ /**
25604
25980
  * WHICH root detector runs for this camera. The detection counterpart of
25605
25981
  * {@link motionSources}, same shape and same discipline: a per-camera list
25606
25982
  * of sources the system understands, vendor-agnostic, owned here.
@@ -25760,14 +26136,15 @@ var RunnerLocalLoadSchema = object({
25760
26136
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
25761
26137
  * this runner currently has attached cameras on, so the orchestrator's second
25762
26138
  * `balance()` pass (over a node's devices) weights on real per-pool session
25763
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
25764
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
26139
+ * counts. Empty on single-device / pre-multi-device runners. There is no
26140
+ * per-device queue depth: the inference pool's backlog has no accessor, and
26141
+ * a field that always read 0 was removed rather than shown as a measurement
26142
+ * (D762).
25765
26143
  */
25766
26144
  devices: array(object({
25767
26145
  deviceKey: string(),
25768
26146
  backend: string(),
25769
- attachedCameras: number(),
25770
- queueDepthTotal: number()
26147
+ attachedCameras: number()
25771
26148
  })).default([]),
25772
26149
  /** Hardware capability flags reported by this node. */
25773
26150
  hardware: object({
@@ -25903,7 +26280,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
25903
26280
  */
25904
26281
  cropJpeg: string().optional(),
25905
26282
  parent: DetailParentSchema,
25906
- steps: array(string()).optional()
26283
+ steps: array(string()).optional(),
26284
+ /**
26285
+ * The camera's root model already drew this step's boxes (D730): a
26286
+ * `license_plate` inside the parent vehicle. The named step is NOT
26287
+ * inferred — these FRAME-space boxes are its output — and its
26288
+ * requested children (the plate reader) run on them. Absent ⇒ every
26289
+ * requested step infers as before.
26290
+ */
26291
+ supplied: object({
26292
+ stepId: string(),
26293
+ modelId: string(),
26294
+ boxes: array(object({
26295
+ bbox: NativeCropBboxSchema,
26296
+ score: number()
26297
+ })).min(1)
26298
+ }).optional()
25907
26299
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
25908
26300
  /** Catalog step id, e.g. `clip-embedding`. */
25909
26301
  stepId: string(),
@@ -25966,14 +26358,6 @@ var CameraPipelineConfigSchema = object({
25966
26358
  settings: record(string(), unknown()).readonly().optional()
25967
26359
  }).nullable().optional()
25968
26360
  });
25969
- var PipelineTemplateSchema = object({
25970
- id: string(),
25971
- name: string(),
25972
- description: string().optional(),
25973
- config: CameraPipelineConfigSchema,
25974
- createdAt: string(),
25975
- updatedAt: string()
25976
- });
25977
26361
  var DeviceStepConfigSchema = object({
25978
26362
  modelId: string().optional(),
25979
26363
  settings: record(string(), unknown()).optional(),
@@ -26047,9 +26431,10 @@ var CameraStepOverridePatchSchema = object({
26047
26431
  modelId: string().optional(),
26048
26432
  settings: record(string(), unknown()).readonly().optional()
26049
26433
  });
26434
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
26050
26435
  var CameraPipelineSettingsSchema = object({
26051
- pinnedAgentNodeId: string().optional(),
26052
26436
  stepToggles: record(string(), boolean()).optional(),
26437
+ stepSettings: CameraStepSettingsSchema.optional(),
26053
26438
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
26054
26439
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
26055
26440
  });
@@ -26082,7 +26467,10 @@ var PipelineAssignmentSchema = object({
26082
26467
  });
26083
26468
  /**
26084
26469
  * Per-agent load summary surfaced to the load balancer + dashboards.
26085
- * Aggregated from each runner's `getLocalLoad` cap call.
26470
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
26471
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
26472
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
26473
+ * the default pool IS that device (D745); the balancer's census stays raw.
26086
26474
  */
26087
26475
  var AgentLoadSummarySchema = object({
26088
26476
  nodeId: string(),
@@ -26171,26 +26559,27 @@ var CameraBrokerStatusSchema = object({
26171
26559
  width: number(),
26172
26560
  height: number(),
26173
26561
  subscribers: number(),
26174
- inFps: number(),
26175
- outFps: number()
26562
+ /**
26563
+ * Encoded packets/s the broker receives from the camera. null when the
26564
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
26565
+ * There is no output rate: decoding runs in the session decode workers, not
26566
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
26567
+ * camera and is not served (D758).
26568
+ */
26569
+ inFps: number().nullable()
26176
26570
  })).readonly(),
26177
26571
  webrtcSessions: number(),
26178
26572
  rtspRestream: boolean()
26179
26573
  });
26180
- /** Shared-memory ring statistics within the decoder block. */
26181
- var CameraDecoderShmSchema = object({
26182
- framesWritten: number(),
26183
- getFrameHits: number(),
26184
- getFrameMisses: number(),
26185
- budgetMb: number()
26186
- });
26187
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
26188
- var CameraDecoderStatusSchema = object({
26189
- nodeId: string(),
26190
- formats: array(string()).readonly(),
26191
- sessionCount: number(),
26192
- shm: CameraDecoderShmSchema
26193
- });
26574
+ /**
26575
+ * Decoder block — WHERE decode runs (co-located with the detection node by
26576
+ * construction); null when the camera has no detection node. It carries no
26577
+ * frame counter: the shared-memory plane whose counters it used to serve is
26578
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
26579
+ * from `detection.actualFps` (frames delivered to and processed by the
26580
+ * detector), never from a counter nothing feeds.
26581
+ */
26582
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
26194
26583
  /** Motion block — null when motion detection is not active for this device. */
26195
26584
  var CameraMotionStatusSchema = object({
26196
26585
  enabled: boolean(),
@@ -26547,12 +26936,6 @@ method(object({
26547
26936
  }), object({ success: literal(true) }), {
26548
26937
  kind: "mutation",
26549
26938
  auth: "admin"
26550
- }), method(object({
26551
- agentNodeId: string(),
26552
- detectWeight: number().positive().nullable()
26553
- }), object({ success: literal(true) }), {
26554
- kind: "mutation",
26555
- auth: "admin"
26556
26939
  }), method(object({
26557
26940
  agentNodeId: string(),
26558
26941
  detect: boolean().nullable().optional(),
@@ -26594,6 +26977,15 @@ method(object({
26594
26977
  }), {
26595
26978
  kind: "mutation",
26596
26979
  auth: "admin"
26980
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
26981
+ kind: "mutation",
26982
+ auth: "admin"
26983
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26984
+ kind: "mutation",
26985
+ auth: "admin"
26986
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26987
+ kind: "mutation",
26988
+ auth: "admin"
26597
26989
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
26598
26990
  deviceId: number(),
26599
26991
  addonId: string(),
@@ -26610,6 +27002,13 @@ method(object({
26610
27002
  }), object({ success: literal(true) }), {
26611
27003
  kind: "mutation",
26612
27004
  auth: "admin"
27005
+ }), method(object({
27006
+ deviceId: number(),
27007
+ addonId: string(),
27008
+ settings: record(string(), unknown()).nullable()
27009
+ }), object({ success: literal(true) }), {
27010
+ kind: "mutation",
27011
+ auth: "admin"
26613
27012
  }), method(object({
26614
27013
  deviceId: number(),
26615
27014
  agentNodeId: string(),
@@ -26633,25 +27032,7 @@ method(object({
26633
27032
  }), method(_void(), DiskReconcileJobSchema, {
26634
27033
  kind: "mutation",
26635
27034
  auth: "admin"
26636
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
26637
- name: string(),
26638
- description: string().optional(),
26639
- config: CameraPipelineConfigSchema
26640
- }), PipelineTemplateSchema, {
26641
- kind: "mutation",
26642
- auth: "admin"
26643
- }), method(object({
26644
- id: string(),
26645
- name: string().optional(),
26646
- description: string().optional(),
26647
- config: CameraPipelineConfigSchema.optional()
26648
- }), PipelineTemplateSchema, {
26649
- kind: "mutation",
26650
- auth: "admin"
26651
- }), method(object({ id: string() }), object({ success: literal(true) }), {
26652
- kind: "mutation",
26653
- auth: "admin"
26654
- });
27035
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
26655
27036
  /**
26656
27037
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
26657
27038
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -28900,8 +29281,6 @@ var WebrtcStreamChoiceSchema = object({
28900
29281
  ]).nullable(),
28901
29282
  /** Input FPS from the camera (null for adaptive). */
28902
29283
  inputFps: number().nullable(),
28903
- /** Decoded FPS (null for adaptive). */
28904
- decodeFps: number().nullable(),
28905
29284
  /** Bitrate in kbps (null for adaptive). */
28906
29285
  bitrateKbps: number().nullable()
28907
29286
  });
@@ -29233,6 +29612,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
29233
29612
  */
29234
29613
  alive: boolean()
29235
29614
  })), method(object({
29615
+ deviceId: number().int().nonnegative(),
29616
+ sessionId: string(),
29617
+ downlinkMbps: number().nonnegative()
29618
+ }), object({
29619
+ outcome: _enum(["switching", "held"]),
29620
+ tier: CamProfileSchema.nullable(),
29621
+ reason: string()
29622
+ }), { kind: "mutation" }), method(object({
29236
29623
  deviceId: number().int().nonnegative(),
29237
29624
  sessionId: string()
29238
29625
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -32989,7 +33376,7 @@ var LocalInterfaceSchema = object({
32989
33376
  name: string(),
32990
33377
  family: _enum(["IPv4", "IPv6"]),
32991
33378
  address: string(),
32992
- /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
33379
+ /** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
32993
33380
  cidr: string(),
32994
33381
  /** OS netmask. Stable across calls so the SDK can hash on it. */
32995
33382
  netmask: string(),
@@ -33043,7 +33430,9 @@ var ConnectionEndpointSchema = object({
33043
33430
  "lan-ipv4",
33044
33431
  "lan-ipv6",
33045
33432
  "public",
33046
- "loopback"
33433
+ "loopback",
33434
+ "app-link",
33435
+ "custom"
33047
33436
  ]),
33048
33437
  /**
33049
33438
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -33112,15 +33501,27 @@ var GetConnectionEndpointsResultSchema = object({
33112
33501
  localPort: AdvertisedLocalPortSchema
33113
33502
  });
33114
33503
  /**
33115
- * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
33116
- * AUTO (resolved from the candidate ranking at send time); `resolved` reports
33117
- * what AUTO currently picks, so the UI can show the effective value either way.
33504
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
33505
+ * since D709 is the CamStack app link; `resolved` reports the effective value,
33506
+ * so the UI can show it either way.
33118
33507
  */
33119
33508
  var NotificationEndpointSchema = object({
33120
33509
  /** The operator's explicit choice, or null for AUTO. */
33121
33510
  baseUrl: string().nullable(),
33122
- /** What the ranking currently resolves to (null when nothing is reachable). */
33123
- resolved: string().nullable()
33511
+ /**
33512
+ * The effective flagged address: the explicit choice, else (AUTO) the
33513
+ * CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
33514
+ * answered the public tunnel / mesh here, or null.
33515
+ */
33516
+ resolved: string().nullable(),
33517
+ /**
33518
+ * The hub origin an app link carries as `hub=` (D709): the hub's best
33519
+ * public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
33520
+ * picked from this cap's own palette by `pickAppLinkHub`. `null` when the
33521
+ * hub advertises neither; the app link is then minted without `hub=`.
33522
+ * Absent on a pre-D709 hub.
33523
+ */
33524
+ appLinkHub: string().nullable()
33124
33525
  });
33125
33526
  /**
33126
33527
  * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
@@ -33133,6 +33534,72 @@ var ViewerEndpointsSchema = object({
33133
33534
  /** What the ranking currently resolves to (may be empty if nothing is up). */
33134
33535
  resolved: array(string()).readonly()
33135
33536
  });
33537
+ /**
33538
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
33539
+ * for addons built against it): `cluster` is the `internal` role, `browser`
33540
+ * the `publicEndpoint` role; `override` is the flagged address.
33541
+ */
33542
+ var HubAddressSnapshotSchema = object({
33543
+ override: string().nullable(),
33544
+ resolved: string().nullable(),
33545
+ source: _enum([
33546
+ "override",
33547
+ "auto",
33548
+ "none"
33549
+ ])
33550
+ });
33551
+ var HubAddressesSchema = object({
33552
+ cluster: HubAddressSnapshotSchema,
33553
+ browser: HubAddressSnapshotSchema
33554
+ });
33555
+ /**
33556
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
33557
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
33558
+ * by at most one address.
33559
+ */
33560
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
33561
+ var RoleSourceSchema = _enum([
33562
+ "flagged",
33563
+ "auto",
33564
+ "none"
33565
+ ]);
33566
+ /** One single-valued role: the flagged address, the one in use, and why. */
33567
+ var HubAddressRoleResolutionSchema = object({
33568
+ /** The address carrying the flag, or null = automatic. */
33569
+ flagged: string().nullable(),
33570
+ /** The address in use, or null when nothing qualifies (never loopback). */
33571
+ resolved: string().nullable(),
33572
+ source: RoleSourceSchema
33573
+ });
33574
+ var HubAppConnectionsResolutionSchema = object({
33575
+ /** The addresses flagged `appConnections`, or empty = automatic. */
33576
+ flagged: array(string()).readonly(),
33577
+ /** What the apps race right now. */
33578
+ resolved: array(string()).readonly(),
33579
+ source: RoleSourceSchema
33580
+ });
33581
+ var HubAddressBookSchema = object({
33582
+ rows: array(ConnectionEndpointSchema.extend({
33583
+ /** In the hub's detected palette right now. */
33584
+ detected: boolean(),
33585
+ /** Entered by the operator (removable). */
33586
+ custom: boolean(),
33587
+ /** The roles explicitly flagged on this address. */
33588
+ flags: array(HubAddressRoleSchema).readonly(),
33589
+ /** The roles this address serves right now — flagged or automatic. */
33590
+ inUse: array(HubAddressRoleSchema).readonly(),
33591
+ /** The roles this address may be flagged with. */
33592
+ eligible: array(HubAddressRoleSchema).readonly()
33593
+ })).readonly(),
33594
+ roles: object({
33595
+ appConnections: HubAppConnectionsResolutionSchema,
33596
+ notificationTaps: HubAddressRoleResolutionSchema,
33597
+ internal: HubAddressRoleResolutionSchema,
33598
+ publicEndpoint: HubAddressRoleResolutionSchema
33599
+ }),
33600
+ /** The `hub=` an app link carries (D709), or null. */
33601
+ appLinkHub: string().nullable()
33602
+ });
33136
33603
  var AllowedAddressesSchema = object({
33137
33604
  /**
33138
33605
  * Allowlist of interface addresses operators have explicitly opted
@@ -33174,8 +33641,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
33174
33641
  * Pass `'https'` when the caller is itself loaded over HTTPS
33175
33642
  * to avoid mixed-content blocks in the browser. The public
33176
33643
  * tunnel always emits `https://` regardless. */
33177
- scheme: _enum(["http", "https"]).optional()
33178
- }), 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, {
33644
+ scheme: _enum(["http", "https"]).optional(),
33645
+ /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
33646
+ * an address notification taps can be flagged with, not a hub
33647
+ * route. Default `false`: racers and rankers never see it. */
33648
+ includeAppLink: boolean().optional()
33649
+ }), 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({
33650
+ baseUrl: string(),
33651
+ label: string().max(80)
33652
+ }), HubAddressBookSchema, {
33653
+ kind: "mutation",
33654
+ auth: "admin"
33655
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
33656
+ kind: "mutation",
33657
+ auth: "admin"
33658
+ }), method(object({
33659
+ role: HubAddressRoleSchema,
33660
+ baseUrl: string().nullable(),
33661
+ enabled: boolean(),
33662
+ acceptInsecureHttp: boolean().optional()
33663
+ }), HubAddressBookSchema, {
33664
+ kind: "mutation",
33665
+ auth: "admin"
33666
+ }), 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, {
33179
33667
  kind: "mutation",
33180
33668
  auth: "admin"
33181
33669
  }), method(object({
@@ -33503,7 +33991,7 @@ var MeshPeerSchema = object({
33503
33991
  tags: array(string()).readonly(),
33504
33992
  /** True when the peer advertises itself as an exit-node candidate. */
33505
33993
  exitNodeOption: boolean(),
33506
- /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
33994
+ /** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
33507
33995
  advertisedRoutes: array(string()).readonly(),
33508
33996
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
33509
33997
  userLogin: string().nullable(),
@@ -33633,7 +34121,8 @@ var MotionStatusSchema = object({
33633
34121
  * writes this slice (not even a boot seed), and neither does the runner's
33634
34122
  * phase machine: its phase is "a session is attached" for every on-motion
33635
34123
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
33636
- * A provider's `isDetected` answers from the hub's slice.
34124
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
34125
+ * (`hubMotionNativeProvider`).
33637
34126
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
33638
34127
  * imports) — the provider pushes both edges itself, from the upstream
33639
34128
  * system's own state change. That is the sensor's own fact.
@@ -34831,7 +35320,13 @@ var OsdStatusSchema = object({ overlays: array(object({
34831
35320
  */
34832
35321
  availablePositions: array(OsdPositionEnum).readonly(),
34833
35322
  /** Firmware does not allow editing the `text` field (e.g. timestamp). */
34834
- readOnly: boolean().optional()
35323
+ readOnly: boolean().optional(),
35324
+ /**
35325
+ * Firmware text ceiling for this overlay. Absent = no known limit.
35326
+ * The OSD manager truncates here on every write — never stores its own
35327
+ * copy on the binding.
35328
+ */
35329
+ maxCharacters: number().int().positive().optional()
34835
35330
  })).readonly() });
34836
35331
  var OsdOverlayPatchSchema = object({
34837
35332
  enabled: boolean().optional(),
@@ -34882,7 +35377,9 @@ var OsdTemplateBindingSchema = object({
34882
35377
  valuePath: string().min(1).max(64),
34883
35378
  /** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
34884
35379
  displayUnit: string().max(16).optional(),
34885
- maxDecimals: number().int().min(0).max(4).default(1)
35380
+ maxDecimals: number().int().min(0).max(4).default(1),
35381
+ /** Raw value → display text (same shape as slot binding). Empty string hides. */
35382
+ valueMap: record(string(), string()).optional()
34886
35383
  });
34887
35384
  /**
34888
35385
  * A named template: bindings (alias → leaf field) + a parser that
@@ -34932,18 +35429,11 @@ var OsdSlotBindingSchema = object({
34932
35429
  source: OsdSourceSchema,
34933
35430
  /** `${value}` and `${unit}` are substituted; every occurrence. */
34934
35431
  template: string().max(96).default("${value}"),
34935
- /** Truncate with an ellipsis past this length. Absent = no limit. */
34936
- maxCharacters: number().int().min(4).max(64).optional(),
34937
35432
  /**
34938
35433
  * Decimal places for a numeric value. `0` yields an integer — the
34939
35434
  * documented workaround for firmwares that reject `.` in overlay text.
34940
35435
  */
34941
35436
  maxDecimals: number().int().min(0).max(4).default(1),
34942
- /**
34943
- * Appended via `${unit}` when no unit conversion produces a label.
34944
- * Prefer `source.displayUnit` for converted device-state values.
34945
- */
34946
- unitLabel: string().max(8).optional(),
34947
35437
  /** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
34948
35438
  valueMap: record(string(), string()).optional(),
34949
35439
  /** Time windows in which the slot is shown. Absent = always. */
@@ -34952,9 +35442,7 @@ var OsdSlotBindingSchema = object({
34952
35442
  * Display gate, in the notification centre's condition vocabulary.
34953
35443
  * Only the keys reported by `getConditionSupport` are accepted.
34954
35444
  */
34955
- conditions: NcConditionsSchema.optional(),
34956
- /** Rendered when the gate is closed or the value unreadable. Empty = hide. */
34957
- fallbackText: string().max(64).default("")
35445
+ conditions: NcConditionsSchema.optional()
34958
35446
  });
34959
35447
  /** One camera slot, as the operator sees it: firmware truth + our binding. */
34960
35448
  var OsdSlotViewSchema = object({
@@ -40181,6 +40669,16 @@ var zoneRulesCapability = {
40181
40669
  durability: "restored"
40182
40670
  };
40183
40671
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
40672
+ Object.freeze({
40673
+ person: .5,
40674
+ vehicle: .5,
40675
+ animal: .5
40676
+ });
40677
+ Object.freeze({
40678
+ person: .65,
40679
+ vehicle: .65,
40680
+ animal: .65
40681
+ });
40184
40682
  /**
40185
40683
  * Accessory device helpers — shared across drivers.
40186
40684
  *
@@ -43061,90 +43559,18 @@ Object.freeze({
43061
43559
  addonId: null,
43062
43560
  access: "create"
43063
43561
  },
43064
- "decoder.createSession": {
43065
- capName: "decoder",
43066
- capScope: "system",
43067
- addonId: null,
43068
- access: "view"
43069
- },
43070
- "decoder.destroySession": {
43071
- capName: "decoder",
43072
- capScope: "system",
43073
- addonId: null,
43074
- access: "delete"
43075
- },
43076
- "decoder.getFrame": {
43077
- capName: "decoder",
43078
- capScope: "system",
43079
- addonId: null,
43080
- access: "view"
43081
- },
43082
43562
  "decoder.getInfo": {
43083
43563
  capName: "decoder",
43084
43564
  capScope: "system",
43085
43565
  addonId: null,
43086
43566
  access: "view"
43087
43567
  },
43088
- "decoder.getShmStats": {
43089
- capName: "decoder",
43090
- capScope: "system",
43091
- addonId: null,
43092
- access: "view"
43093
- },
43094
- "decoder.getStats": {
43095
- capName: "decoder",
43096
- capScope: "system",
43097
- addonId: null,
43098
- access: "view"
43099
- },
43100
- "decoder.listActiveSessions": {
43101
- capName: "decoder",
43102
- capScope: "system",
43103
- addonId: null,
43104
- access: "view"
43105
- },
43106
- "decoder.openStream": {
43107
- capName: "decoder",
43108
- capScope: "system",
43109
- addonId: null,
43110
- access: "view"
43111
- },
43112
- "decoder.pullFrames": {
43113
- capName: "decoder",
43114
- capScope: "system",
43115
- addonId: null,
43116
- access: "view"
43117
- },
43118
- "decoder.pullHandles": {
43119
- capName: "decoder",
43120
- capScope: "system",
43121
- addonId: null,
43122
- access: "view"
43123
- },
43124
- "decoder.pushPacket": {
43125
- capName: "decoder",
43126
- capScope: "system",
43127
- addonId: null,
43128
- access: "view"
43129
- },
43130
43568
  "decoder.reprobeHwaccel": {
43131
43569
  capName: "decoder",
43132
43570
  capScope: "system",
43133
43571
  addonId: null,
43134
43572
  access: "create"
43135
43573
  },
43136
- "decoder.supportsCodec": {
43137
- capName: "decoder",
43138
- capScope: "system",
43139
- addonId: null,
43140
- access: "view"
43141
- },
43142
- "decoder.updateConfig": {
43143
- capName: "decoder",
43144
- capScope: "system",
43145
- addonId: null,
43146
- access: "view"
43147
- },
43148
43574
  "detectionPipeline.applyDeviceSettingsPatch": {
43149
43575
  capName: "detection-pipeline",
43150
43576
  capScope: "device",
@@ -44633,12 +45059,24 @@ Object.freeze({
44633
45059
  addonId: null,
44634
45060
  access: "view"
44635
45061
  },
45062
+ "localNetwork.addCustomAddress": {
45063
+ capName: "local-network",
45064
+ capScope: "system",
45065
+ addonId: null,
45066
+ access: "create"
45067
+ },
44636
45068
  "localNetwork.downloadCa": {
44637
45069
  capName: "local-network",
44638
45070
  capScope: "system",
44639
45071
  addonId: null,
44640
45072
  access: "view"
44641
45073
  },
45074
+ "localNetwork.getAddresses": {
45075
+ capName: "local-network",
45076
+ capScope: "system",
45077
+ addonId: null,
45078
+ access: "view"
45079
+ },
44642
45080
  "localNetwork.getAllowedAddresses": {
44643
45081
  capName: "local-network",
44644
45082
  capScope: "system",
@@ -44651,6 +45089,12 @@ Object.freeze({
44651
45089
  addonId: null,
44652
45090
  access: "view"
44653
45091
  },
45092
+ "localNetwork.getHubAddresses": {
45093
+ capName: "local-network",
45094
+ capScope: "system",
45095
+ addonId: null,
45096
+ access: "view"
45097
+ },
44654
45098
  "localNetwork.getNotificationEndpoint": {
44655
45099
  capName: "local-network",
44656
45100
  capScope: "system",
@@ -44687,6 +45131,12 @@ Object.freeze({
44687
45131
  addonId: null,
44688
45132
  access: "create"
44689
45133
  },
45134
+ "localNetwork.removeCustomAddress": {
45135
+ capName: "local-network",
45136
+ capScope: "system",
45137
+ addonId: null,
45138
+ access: "delete"
45139
+ },
44690
45140
  "localNetwork.resetAllowlistToBestMatch": {
44691
45141
  capName: "local-network",
44692
45142
  capScope: "system",
@@ -44699,6 +45149,12 @@ Object.freeze({
44699
45149
  addonId: null,
44700
45150
  access: "create"
44701
45151
  },
45152
+ "localNetwork.setAddressRole": {
45153
+ capName: "local-network",
45154
+ capScope: "system",
45155
+ addonId: null,
45156
+ access: "create"
45157
+ },
44702
45158
  "localNetwork.setAllowedAddresses": {
44703
45159
  capName: "local-network",
44704
45160
  capScope: "system",
@@ -46193,13 +46649,13 @@ Object.freeze({
46193
46649
  addonId: null,
46194
46650
  access: "delete"
46195
46651
  },
46196
- "pipelineExecutor.deleteModel": {
46652
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
46197
46653
  capName: "pipeline-executor",
46198
46654
  capScope: "system",
46199
46655
  addonId: null,
46200
46656
  access: "delete"
46201
46657
  },
46202
- "pipelineExecutor.deleteTemplate": {
46658
+ "pipelineExecutor.deleteModel": {
46203
46659
  capName: "pipeline-executor",
46204
46660
  capScope: "system",
46205
46661
  addonId: null,
@@ -46343,12 +46799,6 @@ Object.freeze({
46343
46799
  addonId: null,
46344
46800
  access: "view"
46345
46801
  },
46346
- "pipelineExecutor.listTemplates": {
46347
- capName: "pipeline-executor",
46348
- capScope: "system",
46349
- addonId: null,
46350
- access: "view"
46351
- },
46352
46802
  "pipelineExecutor.rearmInferenceDevice": {
46353
46803
  capName: "pipeline-executor",
46354
46804
  capScope: "system",
@@ -46373,12 +46823,6 @@ Object.freeze({
46373
46823
  addonId: null,
46374
46824
  access: "create"
46375
46825
  },
46376
- "pipelineExecutor.saveTemplate": {
46377
- capName: "pipeline-executor",
46378
- capScope: "system",
46379
- addonId: null,
46380
- access: "create"
46381
- },
46382
46826
  "pipelineExecutor.setVideoPipelineSteps": {
46383
46827
  capName: "pipeline-executor",
46384
46828
  capScope: "system",
@@ -46397,41 +46841,35 @@ Object.freeze({
46397
46841
  addonId: null,
46398
46842
  access: "create"
46399
46843
  },
46400
- "pipelineExecutor.updateTemplate": {
46401
- capName: "pipeline-executor",
46402
- capScope: "system",
46403
- addonId: null,
46404
- access: "create"
46405
- },
46406
46844
  "pipelineExecutor.validatePipeline": {
46407
46845
  capName: "pipeline-executor",
46408
46846
  capScope: "system",
46409
46847
  addonId: null,
46410
46848
  access: "view"
46411
46849
  },
46412
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
46850
+ "pipelineOrchestrator.applyAutoTune": {
46413
46851
  capName: "pipeline-orchestrator",
46414
46852
  capScope: "system",
46415
46853
  addonId: null,
46416
46854
  access: "create"
46417
46855
  },
46418
- "pipelineOrchestrator.assignAudio": {
46856
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
46419
46857
  capName: "pipeline-orchestrator",
46420
46858
  capScope: "system",
46421
46859
  addonId: null,
46422
46860
  access: "create"
46423
46861
  },
46424
- "pipelineOrchestrator.assignPipeline": {
46862
+ "pipelineOrchestrator.assignAudio": {
46425
46863
  capName: "pipeline-orchestrator",
46426
46864
  capScope: "system",
46427
46865
  addonId: null,
46428
46866
  access: "create"
46429
46867
  },
46430
- "pipelineOrchestrator.deleteTemplate": {
46868
+ "pipelineOrchestrator.assignPipeline": {
46431
46869
  capName: "pipeline-orchestrator",
46432
46870
  capScope: "system",
46433
46871
  addonId: null,
46434
- access: "delete"
46872
+ access: "create"
46435
46873
  },
46436
46874
  "pipelineOrchestrator.getAgentLoad": {
46437
46875
  capName: "pipeline-orchestrator",
@@ -46523,6 +46961,12 @@ Object.freeze({
46523
46961
  addonId: null,
46524
46962
  access: "view"
46525
46963
  },
46964
+ "pipelineOrchestrator.getEffectiveShares": {
46965
+ capName: "pipeline-orchestrator",
46966
+ capScope: "system",
46967
+ addonId: null,
46968
+ access: "view"
46969
+ },
46526
46970
  "pipelineOrchestrator.getGlobalMetrics": {
46527
46971
  capName: "pipeline-orchestrator",
46528
46972
  capScope: "system",
@@ -46559,19 +47003,19 @@ Object.freeze({
46559
47003
  addonId: null,
46560
47004
  access: "view"
46561
47005
  },
46562
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
47006
+ "pipelineOrchestrator.getPlacementStats": {
46563
47007
  capName: "pipeline-orchestrator",
46564
47008
  capScope: "system",
46565
47009
  addonId: null,
46566
47010
  access: "view"
46567
47011
  },
46568
- "pipelineOrchestrator.listAgentSettings": {
47012
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
46569
47013
  capName: "pipeline-orchestrator",
46570
47014
  capScope: "system",
46571
47015
  addonId: null,
46572
47016
  access: "view"
46573
47017
  },
46574
- "pipelineOrchestrator.listTemplates": {
47018
+ "pipelineOrchestrator.listAgentSettings": {
46575
47019
  capName: "pipeline-orchestrator",
46576
47020
  capScope: "system",
46577
47021
  addonId: null,
@@ -46583,6 +47027,12 @@ Object.freeze({
46583
47027
  addonId: null,
46584
47028
  access: "create"
46585
47029
  },
47030
+ "pipelineOrchestrator.planAutoTune": {
47031
+ capName: "pipeline-orchestrator",
47032
+ capScope: "system",
47033
+ addonId: null,
47034
+ access: "view"
47035
+ },
46586
47036
  "pipelineOrchestrator.rebalance": {
46587
47037
  capName: "pipeline-orchestrator",
46588
47038
  capScope: "system",
@@ -46625,12 +47075,6 @@ Object.freeze({
46625
47075
  addonId: null,
46626
47076
  access: "create"
46627
47077
  },
46628
- "pipelineOrchestrator.saveTemplate": {
46629
- capName: "pipeline-orchestrator",
46630
- capScope: "system",
46631
- addonId: null,
46632
- access: "create"
46633
- },
46634
47078
  "pipelineOrchestrator.setAgentCapabilities": {
46635
47079
  capName: "pipeline-orchestrator",
46636
47080
  capScope: "system",
@@ -46643,12 +47087,6 @@ Object.freeze({
46643
47087
  addonId: null,
46644
47088
  access: "create"
46645
47089
  },
46646
- "pipelineOrchestrator.setAgentDetectWeight": {
46647
- capName: "pipeline-orchestrator",
46648
- capScope: "system",
46649
- addonId: null,
46650
- access: "create"
46651
- },
46652
47090
  "pipelineOrchestrator.setAgentInferenceDevices": {
46653
47091
  capName: "pipeline-orchestrator",
46654
47092
  capScope: "system",
@@ -46685,6 +47123,12 @@ Object.freeze({
46685
47123
  addonId: null,
46686
47124
  access: "create"
46687
47125
  },
47126
+ "pipelineOrchestrator.setCameraStepSettings": {
47127
+ capName: "pipeline-orchestrator",
47128
+ capScope: "system",
47129
+ addonId: null,
47130
+ access: "create"
47131
+ },
46688
47132
  "pipelineOrchestrator.setCameraStepToggle": {
46689
47133
  capName: "pipeline-orchestrator",
46690
47134
  capScope: "system",
@@ -46703,25 +47147,37 @@ Object.freeze({
46703
47147
  addonId: null,
46704
47148
  access: "create"
46705
47149
  },
47150
+ "pipelineOrchestrator.setLoadBalancingShares": {
47151
+ capName: "pipeline-orchestrator",
47152
+ capScope: "system",
47153
+ addonId: null,
47154
+ access: "create"
47155
+ },
46706
47156
  "pipelineOrchestrator.setPipelineDevicePin": {
46707
47157
  capName: "pipeline-orchestrator",
46708
47158
  capScope: "system",
46709
47159
  addonId: null,
46710
47160
  access: "create"
46711
47161
  },
46712
- "pipelineOrchestrator.unassignAudio": {
47162
+ "pipelineOrchestrator.setShareSource": {
46713
47163
  capName: "pipeline-orchestrator",
46714
47164
  capScope: "system",
46715
47165
  addonId: null,
46716
47166
  access: "create"
46717
47167
  },
46718
- "pipelineOrchestrator.unassignPipeline": {
47168
+ "pipelineOrchestrator.suggestShares": {
47169
+ capName: "pipeline-orchestrator",
47170
+ capScope: "system",
47171
+ addonId: null,
47172
+ access: "view"
47173
+ },
47174
+ "pipelineOrchestrator.unassignAudio": {
46719
47175
  capName: "pipeline-orchestrator",
46720
47176
  capScope: "system",
46721
47177
  addonId: null,
46722
47178
  access: "create"
46723
47179
  },
46724
- "pipelineOrchestrator.updateTemplate": {
47180
+ "pipelineOrchestrator.unassignPipeline": {
46725
47181
  capName: "pipeline-orchestrator",
46726
47182
  capScope: "system",
46727
47183
  addonId: null,
@@ -48161,12 +48617,6 @@ Object.freeze({
48161
48617
  addonId: null,
48162
48618
  access: "view"
48163
48619
  },
48164
- "streamBroker.pullFrameHandles": {
48165
- capName: "stream-broker",
48166
- capScope: "system",
48167
- addonId: null,
48168
- access: "view"
48169
- },
48170
48620
  "streamBroker.regenerateRtspToken": {
48171
48621
  capName: "stream-broker",
48172
48622
  capScope: "system",
@@ -48233,12 +48683,6 @@ Object.freeze({
48233
48683
  addonId: null,
48234
48684
  access: "create"
48235
48685
  },
48236
- "streamBroker.subscribeFrames": {
48237
- capName: "stream-broker",
48238
- capScope: "system",
48239
- addonId: null,
48240
- access: "create"
48241
- },
48242
48686
  "streamBroker.unassignProfile": {
48243
48687
  capName: "stream-broker",
48244
48688
  capScope: "system",
@@ -48251,12 +48695,6 @@ Object.freeze({
48251
48695
  addonId: null,
48252
48696
  access: "create"
48253
48697
  },
48254
- "streamBroker.unsubscribeFrames": {
48255
- capName: "stream-broker",
48256
- capScope: "system",
48257
- addonId: null,
48258
- access: "create"
48259
- },
48260
48698
  "streamCatalog.getCatalog": {
48261
48699
  capName: "stream-catalog",
48262
48700
  capScope: "device",
@@ -48953,6 +49391,12 @@ Object.freeze({
48953
49391
  addonId: null,
48954
49392
  access: "create"
48955
49393
  },
49394
+ "webrtcSession.applyDownlinkProbe": {
49395
+ capName: "webrtc-session",
49396
+ capScope: "device",
49397
+ addonId: null,
49398
+ access: "create"
49399
+ },
48956
49400
  "webrtcSession.closeSession": {
48957
49401
  capName: "webrtc-session",
48958
49402
  capScope: "device",
@@ -50764,11 +51208,6 @@ Object.freeze({
50764
51208
  form: "single",
50765
51209
  optional: false
50766
51210
  }],
50767
- "decoder.createSession": [{
50768
- name: "deviceId",
50769
- form: "single",
50770
- optional: true
50771
- }],
50772
51211
  "detectionPipeline.applyDeviceSettingsPatch": [{
50773
51212
  name: "deviceId",
50774
51213
  form: "single",
@@ -51999,6 +52438,11 @@ Object.freeze({
51999
52438
  form: "single",
52000
52439
  optional: false
52001
52440
  }],
52441
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
52442
+ name: "deviceIds",
52443
+ form: "array",
52444
+ optional: true
52445
+ }],
52002
52446
  "pipelineExecutor.runPipeline": [{
52003
52447
  name: "deviceId",
52004
52448
  form: "single",
@@ -52104,6 +52548,11 @@ Object.freeze({
52104
52548
  form: "single",
52105
52549
  optional: false
52106
52550
  }],
52551
+ "pipelineOrchestrator.setCameraStepSettings": [{
52552
+ name: "deviceId",
52553
+ form: "single",
52554
+ optional: false
52555
+ }],
52107
52556
  "pipelineOrchestrator.setCameraStepToggle": [{
52108
52557
  name: "deviceId",
52109
52558
  form: "single",
@@ -52875,6 +53324,11 @@ Object.freeze({
52875
53324
  form: "single",
52876
53325
  optional: false
52877
53326
  }],
53327
+ "webrtcSession.applyDownlinkProbe": [{
53328
+ name: "deviceId",
53329
+ form: "single",
53330
+ optional: false
53331
+ }],
52878
53332
  "webrtcSession.closeSession": [{
52879
53333
  name: "deviceId",
52880
53334
  form: "single",
@@ -53104,6 +53558,8 @@ new Map(Object.entries({
53104
53558
  "detection-blind": "device-events",
53105
53559
  "node-online": "system",
53106
53560
  "node-offline": "system",
53561
+ "node-restarting": "system",
53562
+ "node-updating": "system",
53107
53563
  "node-inference-unavailable": "system",
53108
53564
  "addon-crash-loop": "system",
53109
53565
  "addon-update-available": "system",
@@ -53181,18 +53637,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
53181
53637
  kinds: [
53182
53638
  "node-offline",
53183
53639
  "node-online",
53640
+ "node-restarting",
53184
53641
  "node-inference-unavailable"
53185
53642
  ]
53186
53643
  },
53187
53644
  {
53188
53645
  id: "addons",
53189
53646
  family: "system",
53190
- label: "Addons",
53191
- kinds: [
53192
- "addon-crash-loop",
53193
- "addon-update-available",
53194
- "addon-updated"
53195
- ]
53647
+ label: "Addons stopped",
53648
+ kinds: ["addon-crash-loop"]
53649
+ },
53650
+ {
53651
+ id: "addon-updates",
53652
+ family: "system",
53653
+ label: "Addon updates",
53654
+ kinds: ["addon-update-available", "addon-updated"]
53196
53655
  },
53197
53656
  {
53198
53657
  id: "updates",
@@ -53200,6 +53659,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
53200
53659
  label: "Server & container updates",
53201
53660
  kinds: [
53202
53661
  "server-update-available",
53662
+ "node-updating",
53203
53663
  "server-updated",
53204
53664
  "wrapper-update-available"
53205
53665
  ]
@@ -53347,18 +53807,21 @@ var STATE_SUMMARY_SECTION_VARS = [
53347
53807
  kinds: [
53348
53808
  "node-offline",
53349
53809
  "node-online",
53810
+ "node-restarting",
53350
53811
  "node-inference-unavailable"
53351
53812
  ]
53352
53813
  },
53353
53814
  {
53354
53815
  name: "summaryAddons",
53355
- label: "Summary: addons",
53356
- example: "@camstack/addon-recorder 1.2.3 → 1.2.4",
53357
- kinds: [
53358
- "addon-crash-loop",
53359
- "addon-update-available",
53360
- "addon-updated"
53361
- ]
53816
+ label: "Summary: addons stopped",
53817
+ example: "hub — recorder stopped after repeated crashes",
53818
+ kinds: ["addon-crash-loop"]
53819
+ },
53820
+ {
53821
+ name: "summaryAddonUpdates",
53822
+ label: "Summary: addon updates",
53823
+ example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
53824
+ kinds: ["addon-update-available", "addon-updated"]
53362
53825
  },
53363
53826
  {
53364
53827
  name: "summaryUpdates",
@@ -53366,6 +53829,7 @@ var STATE_SUMMARY_SECTION_VARS = [
53366
53829
  example: "server 1.2.377 → 1.2.378",
53367
53830
  kinds: [
53368
53831
  "server-update-available",
53832
+ "node-updating",
53369
53833
  "server-updated",
53370
53834
  "wrapper-update-available"
53371
53835
  ]
@@ -53398,7 +53862,7 @@ var STATE_SUMMARY_VARS = [
53398
53862
  {
53399
53863
  name: "summarySection",
53400
53864
  label: "Summary: this section",
53401
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
53865
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
53402
53866
  example: "Batterie scariche",
53403
53867
  group: "system",
53404
53868
  families: ["rule"],
@@ -53442,6 +53906,7 @@ var STATE_SUMMARY_VARS = [
53442
53906
  [...RULE_BODY_ONLY],
53443
53907
  [...RULE_TEXT],
53444
53908
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
53909
+ ([...RULE_TEXT], [...COMBINED_ALARM]),
53445
53910
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
53446
53911
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
53447
53912
  ([...RULE_TEXT], [...CONSUMABLE]),
@@ -53482,6 +53947,8 @@ var STATE_SUMMARY_VARS = [
53482
53947
  [...RULE_TEXT],
53483
53948
  [...RULE_TEXT],
53484
53949
  [...RULE_TEXT],
53950
+ [...RULE_TEXT],
53951
+ [...RULE_TEXT],
53485
53952
  ...STATE_SUMMARY_VARS
53486
53953
  ];
53487
53954
  new Set([
@@ -54094,7 +54561,7 @@ function buildConnectionFormSchema() {
54094
54561
  key: "host",
54095
54562
  label: "Hub host / IP",
54096
54563
  required: true,
54097
- placeholder: "192.168.x.x"
54564
+ placeholder: "192.168.10.50"
54098
54565
  },
54099
54566
  {
54100
54567
  type: "password",