@camstack/addon-provider-ecowitt 0.2.120 → 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 +882 -461
  2. package/dist/addon.mjs +882 -461
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createServer } from "http";
2
2
  import { EventEmitter } from "events";
3
3
  import { createSocket } from "dgram";
4
- //#region ../types/dist/event-category-BGmz_oxW.mjs
4
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
5
5
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
6
6
  EventCategory["SystemBoot"] = "system.boot";
7
7
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -502,15 +502,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
502
502
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
503
503
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
504
504
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
505
- /**
506
- * Per-agent hwaccel preference changed (user override set, cleared, or
507
- * re-probed). Observability event — decoders pull the current pref at
508
- * `createSession`, so running sessions keep their current backend until
509
- * they rotate naturally (camera add/remove, stream restart). Future
510
- * work can wire a listener in stream-broker that force-rotates live
511
- * sessions; for now this event powers logs + admin-UI toast feedback.
512
- */
513
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
514
505
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
515
506
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
516
507
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5381,7 +5372,7 @@ var ZodIssueCode$1 = {
5381
5372
  var ZodFirstPartyTypeKind$1;
5382
5373
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5383
5374
  //#endregion
5384
- //#region ../types/dist/sleep-DXKLNFvA.mjs
5375
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5385
5376
  /**
5386
5377
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5387
5378
  * window to float samples (D455).
@@ -6747,32 +6738,12 @@ object({
6747
6738
  audioCodec: string().optional(),
6748
6739
  metadata: record(string(), unknown()).readonly().optional()
6749
6740
  });
6750
- var EncodedPacketSchema = object({
6751
- type: _enum(["video", "audio"]),
6752
- data: _instanceof(Uint8Array),
6753
- pts: number(),
6754
- dts: number(),
6755
- keyframe: boolean(),
6756
- codec: string()
6757
- });
6758
- var DecodedFrameSchema = object({
6759
- data: _instanceof(Uint8Array),
6760
- width: number(),
6761
- height: number(),
6762
- format: _enum([
6763
- "jpeg",
6764
- "rgb",
6765
- "bgr",
6766
- "yuv420",
6767
- "gray"
6768
- ]),
6769
- timestamp: number()
6770
- });
6771
6741
  /**
6772
6742
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6773
6743
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6774
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6775
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6744
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6745
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6746
+ * over tRPC / Moleculer.
6776
6747
  *
6777
6748
  * The `satisfies` assertion below pins this schema to the interface: if a
6778
6749
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6798,50 +6769,6 @@ var FrameHandleSchema = object({
6798
6769
  slotCount: number().int().positive()
6799
6770
  });
6800
6771
  /**
6801
- * Pixel format a frame-handle subscriber can request from the broker
6802
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6803
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6804
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6805
- * payload, and no decoded-frame consumer requests it over the shm plane.
6806
- */
6807
- var FrameHandleFormatSchema = _enum([
6808
- "rgb",
6809
- "bgr",
6810
- "yuv420",
6811
- "gray"
6812
- ]);
6813
- /**
6814
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6815
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6816
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6817
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6818
- * they asked for with no broker-side conversion.
6819
- */
6820
- var SubscribeFramesInputSchema = object({
6821
- brokerId: string(),
6822
- format: FrameHandleFormatSchema,
6823
- /**
6824
- * Optional reader-side cadence hint in frames per second. The broker does
6825
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6826
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6827
- * the consumer can pace its own `pullFrameHandles` polling.
6828
- */
6829
- maxFps: number().positive().optional(),
6830
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6831
- tag: string().optional()
6832
- });
6833
- /**
6834
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6835
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6836
- * `FrameHandle` to a `FrameRingReader`.
6837
- */
6838
- var SubscribeFramesResultSchema = object({
6839
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6840
- subscriptionId: string(),
6841
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6842
- maxFps: number().nonnegative()
6843
- });
6844
- /**
6845
6772
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6846
6773
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6847
6774
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6849,8 +6776,8 @@ var SubscribeFramesResultSchema = object({
6849
6776
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6850
6777
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6851
6778
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6852
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6853
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6779
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6780
+ * it.
6854
6781
  */
6855
6782
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6856
6783
  var DecodedAudioChunkSchema = object({
@@ -6868,11 +6795,10 @@ var DecodedAudioChunkSchema = object({
6868
6795
  format: AudioChunkFormatSchema.optional()
6869
6796
  });
6870
6797
  /**
6871
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6872
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6873
- * asks the broker for the decoded audio-chunk stream of one broker; the
6874
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6875
- * `pullAudioChunks`.
6798
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6799
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6800
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6801
+ * the consumer drains via `pullAudioChunks`.
6876
6802
  */
6877
6803
  var SubscribeAudioChunksInputSchema = object({
6878
6804
  brokerId: string(),
@@ -6903,9 +6829,7 @@ var BrokerStatsSchema = object({
6903
6829
  "stopped"
6904
6830
  ]),
6905
6831
  inputFps: number(),
6906
- decodeFps: number(),
6907
6832
  encodedSubscribers: number(),
6908
- decodedSubscribers: number(),
6909
6833
  uptimeMs: number(),
6910
6834
  bitrateKbps: number(),
6911
6835
  idrIntervalMs: number(),
@@ -6918,14 +6842,6 @@ var BrokerStatsSchema = object({
6918
6842
  preBufferMs: number(),
6919
6843
  preBufferPackets: number(),
6920
6844
  /**
6921
- * Moleculer node id of the decoder provider currently servicing this
6922
- * stream's decoded subscribers. `null` until the deferred decoder is
6923
- * created (no decoded clients yet, or codec not detected). Surfaces the
6924
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6925
- * a separate cap call per broker.
6926
- */
6927
- decoderNodeId: string().nullable(),
6928
- /**
6929
6845
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6930
6846
  * when the stream has no audio track or the broker is in cold start.
6931
6847
  * `supported = false` means the codec was detected but the local
@@ -10261,70 +10177,6 @@ var StorageLocationDeclarationSchema = object({
10261
10177
  "backup"
10262
10178
  ]).optional()
10263
10179
  });
10264
- var DecoderStatsSchema = object({
10265
- inputFps: number(),
10266
- outputFps: number(),
10267
- avgDecodeTimeMs: number(),
10268
- droppedFrames: number(),
10269
- /**
10270
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10271
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10272
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10273
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10274
- */
10275
- lagMs: number().optional(),
10276
- effectiveFps: number().optional(),
10277
- adaptiveFps: number().optional()
10278
- });
10279
- var DecoderSessionConfigSchema = object({
10280
- codec: string(),
10281
- maxFps: number().default(0),
10282
- outputFormat: _enum([
10283
- "jpeg",
10284
- "rgb",
10285
- "bgr",
10286
- "yuv420",
10287
- "gray"
10288
- ]).default("jpeg"),
10289
- scale: number().default(1),
10290
- width: number().optional(),
10291
- height: number().optional(),
10292
- /**
10293
- * Identifier of the camera this decoder session serves. Optional
10294
- * because the cap is generic (any caller could request decode), but
10295
- * stream-broker passes it so decoder logs include `deviceId` for
10296
- * per-camera filtering when diagnosing failures (e.g. node-av
10297
- * sendPacket errors on a single hung camera).
10298
- */
10299
- deviceId: number().int().nonnegative().optional(),
10300
- /**
10301
- * Free-form tag for log scoping. Stream-broker uses
10302
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10303
- * on every line so `grep tag=broker:5/high` filters one camera
10304
- * profile cleanly.
10305
- */
10306
- tag: string().optional(),
10307
- /**
10308
- * Where the session delivers decoded frames (Phase 5 / D9):
10309
- *
10310
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10311
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10312
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10313
- * into an OS shared-memory ring and drained as zero-pixel
10314
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10315
- * other — `pullFrames` returns nothing for an `'shm'` session and
10316
- * `pullHandles` returns nothing for a `'callback'` session.
10317
- */
10318
- frameSink: _enum(["callback", "shm"]).default("callback"),
10319
- /**
10320
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10321
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10322
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10323
- * stream-broker's `streamingDebug` gate — off by default so production logs
10324
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10325
- */
10326
- debug: boolean().optional()
10327
- });
10328
10180
  /**
10329
10181
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10330
10182
  * an addon declares its channels in.
@@ -10467,6 +10319,26 @@ var ClipSearchStrictnessSchema = _enum([
10467
10319
  "balanced",
10468
10320
  "strict"
10469
10321
  ]);
10322
+ /** Steps whose effect a root label can BE. */
10323
+ var LABEL_SUPPLY_STEP_IDS = [
10324
+ "animal-classifier",
10325
+ "vehicle-classifier",
10326
+ "package-detection"
10327
+ ];
10328
+ /** Steps whose box a root detection can BE. */
10329
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10330
+ /**
10331
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
10332
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
10333
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
10334
+ * no camera tree carries.)
10335
+ */
10336
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
10337
+ [
10338
+ ...LABEL_SUPPLY_STEP_IDS,
10339
+ ...CROP_SUPPLY_STEP_IDS,
10340
+ ...MASK_SUPPLY_STEP_IDS
10341
+ ];
10470
10342
  var MODEL_FORMATS = [
10471
10343
  "onnx",
10472
10344
  "coreml",
@@ -10495,7 +10367,53 @@ var ModelFormatEntrySchema = object({
10495
10367
  /** Multi-file payload (directory members or sibling files). */
10496
10368
  files: array(string()).readonly().optional(),
10497
10369
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
10498
- runtimes: array(_enum(["python"])).readonly().optional()
10370
+ runtimes: array(_enum(["python"])).readonly().optional(),
10371
+ /**
10372
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
10373
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
10374
+ * weight file) comes from the downloader's generated table, kept in step
10375
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
10376
+ * node records the revision it downloaded next to the file
10377
+ * (`<file>.revision`); a copy with no record or a different one is stale
10378
+ * unless its weight file hashes to the revision, and a stale copy is
10379
+ * downloaded again, the old one serving until the new one is complete. No
10380
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
10381
+ */
10382
+ revision: string().min(1).optional()
10383
+ });
10384
+ /**
10385
+ * What a node holds for one (model, format) (D746). `current` is a complete
10386
+ * copy at its catalog revision — exactly what `downloaded: true` means.
10387
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
10388
+ * no or a different revision record, or a missing sibling. `missing` is no
10389
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
10390
+ * reclaimable bytes and a copy about to be replaced.
10391
+ */
10392
+ var ModelOnDiskStateSchema = _enum([
10393
+ "current",
10394
+ "stale",
10395
+ "missing"
10396
+ ]);
10397
+ /**
10398
+ * The numeric precision of one format's BUILD (D746) — reported only when the
10399
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
10400
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
10401
+ */
10402
+ var ModelFormatPrecisionSchema = _enum([
10403
+ "fp32",
10404
+ "fp16",
10405
+ "int8"
10406
+ ]);
10407
+ /**
10408
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
10409
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
10410
+ * them omits them, and a reader falls back to `downloaded`.
10411
+ */
10412
+ var PipelineModelFormatStatusSchema = object({
10413
+ downloaded: boolean(),
10414
+ sizeMB: number(),
10415
+ onDisk: ModelOnDiskStateSchema.optional(),
10416
+ precision: ModelFormatPrecisionSchema.optional()
10499
10417
  });
10500
10418
  /**
10501
10419
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -10599,6 +10517,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10599
10517
  /** True when the weights or their data forbid commercial use. */
10600
10518
  nonCommercial: boolean().optional()
10601
10519
  }));
10520
+ /**
10521
+ * One step a ROOT detector can supply from its own output (D730) — see
10522
+ * `ModelCatalogEntry.suppliesSteps`.
10523
+ *
10524
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10525
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10526
+ * the root cannot produce (shown as unavailable, never a blocker).
10527
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10528
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10529
+ * child of the `parentMacro` detection that contains it — never a track.
10530
+ * - `mask`: the root's decode emits an instance mask with every detection (a
10531
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
10532
+ * detection in the shape that step produces. Derived from the model's
10533
+ * postprocessor on read, never stored by an import.
10534
+ */
10535
+ var RootStepSupplySchema = discriminatedUnion("kind", [
10536
+ object({
10537
+ kind: literal("label"),
10538
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10539
+ labelToEffect: record(string(), string()),
10540
+ uncovered: array(string()).readonly()
10541
+ }),
10542
+ object({
10543
+ kind: literal("crop"),
10544
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10545
+ rootLabels: array(string()).readonly(),
10546
+ parentMacro: _enum(["vehicle", "person"]),
10547
+ childClass: _enum(["plate", "face"]),
10548
+ /**
10549
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10550
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10551
+ * stored by an import.
10552
+ */
10553
+ rootInputPx: number().int().positive().optional()
10554
+ }),
10555
+ object({
10556
+ kind: literal("mask"),
10557
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
10558
+ })
10559
+ ]);
10602
10560
  var ModelCatalogEntrySchema = object({
10603
10561
  id: string(),
10604
10562
  name: string(),
@@ -10664,6 +10622,35 @@ var ModelCatalogEntrySchema = object({
10664
10622
  */
10665
10623
  defaultConfidence: number().min(0).max(1).optional(),
10666
10624
  /**
10625
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
10626
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
10627
+ * absent here runs at the step slider's global default. The same row shape
10628
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
10629
+ * a measured table is copied in as-is. An operator override is bound to the
10630
+ * model it was made for and does not survive a model change (D738). A custom
10631
+ * / imported model may declare it; without it, the global defaults apply.
10632
+ */
10633
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
10634
+ /**
10635
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
10636
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
10637
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
10638
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
10639
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
10640
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
10641
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
10642
+ */
10643
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
10644
+ /**
10645
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
10646
+ * minimum DETECTION score from which this root's own fine label (species,
10647
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
10648
+ * keeps its macro class without the fine label. `1` = never take it from
10649
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
10650
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
10651
+ */
10652
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
10653
+ /**
10667
10654
  * When true, the executor produces a landmark-aligned crop (similarity warp
10668
10655
  * onto the canonical template) before this step runs, instead of a plain
10669
10656
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10725,6 +10712,16 @@ var ModelCatalogEntrySchema = object({
10725
10712
  */
10726
10713
  classMap: DetectionCatalogClassMapSchema.optional(),
10727
10714
  /**
10715
+ * The pipeline steps this ROOT detector can supply from its own output
10716
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10717
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10718
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10719
+ * by hand and never assumed per family; a row without it is derived on read
10720
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10721
+ * `useRootModel` flag (`resolveRootSupply`).
10722
+ */
10723
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10724
+ /**
10728
10725
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10729
10726
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10730
10727
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -12326,13 +12323,6 @@ var BrokerRtspClientSchema = object({
12326
12323
  lastRtpAt: number(),
12327
12324
  bytesSent: number()
12328
12325
  });
12329
- var BrokerDecodedClientSchema = object({
12330
- tag: string(),
12331
- subscribedAt: number(),
12332
- maxFps: number(),
12333
- framesDelivered: number(),
12334
- framesDropped: number()
12335
- });
12336
12326
  var BrokerAudioClientSchema = object({
12337
12327
  tag: string(),
12338
12328
  subscribedAt: number(),
@@ -12424,7 +12414,6 @@ var BrokerEncodedClientSchema = object({
12424
12414
  });
12425
12415
  var BrokerClientsSchema = object({
12426
12416
  rtsp: array(BrokerRtspClientSchema).readonly(),
12427
- decoded: array(BrokerDecodedClientSchema).readonly(),
12428
12417
  audio: array(BrokerAudioClientSchema).readonly(),
12429
12418
  encoded: array(BrokerEncodedClientSchema).readonly(),
12430
12419
  pipeClients: number(),
@@ -12793,11 +12782,7 @@ method(object({
12793
12782
  auth: "admin"
12794
12783
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
12795
12784
  brokerId: string(),
12796
- channel: _enum([
12797
- "rtsp",
12798
- "decoded",
12799
- "audio"
12800
- ]),
12785
+ channel: _enum(["rtsp", "audio"]),
12801
12786
  handle: string()
12802
12787
  }), object({ killed: boolean() }), {
12803
12788
  kind: "mutation",
@@ -12832,10 +12817,7 @@ method(object({
12832
12817
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
12833
12818
  subscriptionId: string(),
12834
12819
  maxCount: number().int().positive().default(8)
12835
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
12836
- subscriptionId: string(),
12837
- maxCount: number().int().positive().default(4)
12838
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12820
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
12839
12821
  brokerId: string(),
12840
12822
  seconds: number().min(0).max(30)
12841
12823
  }), _void(), {
@@ -14094,54 +14076,12 @@ id: union([string(), number()]) }), {
14094
14076
  kind: "mutation",
14095
14077
  auth: "admin"
14096
14078
  });
14097
- /**
14098
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
14099
- * exposed via `decoder.getShmStats` so downstream consumers can
14100
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
14101
- */
14102
- var ShmRingStatsSchema = object({
14103
- sessionId: string(),
14104
- slotCount: number().int(),
14105
- slotByteLength: number().int(),
14106
- segmentBytes: number().int(),
14107
- budgetMb: number().int(),
14108
- framesWritten: number().int(),
14109
- getFrameHits: number().int(),
14110
- getFrameMisses: number().int()
14111
- });
14112
- method(object({ codec: string() }), boolean()), method(_void(), object({
14079
+ method(_void(), object({
14113
14080
  id: string(),
14114
14081
  name: string(),
14115
- isPullMode: boolean().optional(),
14116
- priority: number().optional(),
14117
14082
  hwaccel: string().optional(),
14118
14083
  probedBestHwaccel: string().optional()
14119
- })), method(DecoderSessionConfigSchema, object({
14120
- sessionId: string(),
14121
- nodeId: string()
14122
- })), method(object({ sessionId: string() }), _void()), method(object({
14123
- sessionId: string(),
14124
- packet: EncodedPacketSchema
14125
- }), _void()), method(object({
14126
- sessionId: string(),
14127
- url: string()
14128
- }), _void()), method(object({
14129
- sessionId: string(),
14130
- maxCount: number().default(1),
14131
- waitMs: number().optional()
14132
- }), array(DecodedFrameSchema)), method(object({
14133
- sessionId: string(),
14134
- maxCount: number().default(1),
14135
- waitMs: number().optional()
14136
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
14137
- sessionId: string(),
14138
- config: DecoderSessionConfigSchema.partial()
14139
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
14140
- sessionId: string(),
14141
- codec: string(),
14142
- outputFormat: string(),
14143
- createdAtMs: number()
14144
- })).readonly()), method(_void(), object({ backend: string() }), {
14084
+ })), method(_void(), object({ backend: string() }), {
14145
14085
  kind: "mutation",
14146
14086
  auth: "admin"
14147
14087
  });
@@ -16286,6 +16226,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
16286
16226
  kind: "mutation",
16287
16227
  auth: "admin"
16288
16228
  });
16229
+ var HUB_ADDRESS_ROLES = [
16230
+ "appConnections",
16231
+ "notificationTaps",
16232
+ "internal",
16233
+ "publicEndpoint"
16234
+ ];
16289
16235
  /**
16290
16236
  * Transport bounds for AI capability methods.
16291
16237
  *
@@ -18888,6 +18834,8 @@ var NcSystemEventKindSchema = _enum([
18888
18834
  "stream-offline",
18889
18835
  "node-online",
18890
18836
  "node-offline",
18837
+ "node-restarting",
18838
+ "node-updating",
18891
18839
  "node-inference-unavailable",
18892
18840
  "detection-blind",
18893
18841
  "addon-crash-loop",
@@ -20493,7 +20441,13 @@ var NcAlarmModeDelaysListSchema = array(object({
20493
20441
  * Absent = false (logged, not sent). Even when true it is not sent when that same sensor
20494
20442
  * is the one that starts the entry delay — the entry-delay notification already names it.
20495
20443
  */
20496
- notifySensorRewatched: boolean().optional()
20444
+ notifySensorRewatched: boolean().optional(),
20445
+ /**
20446
+ * D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
20447
+ * change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
20448
+ * re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
20449
+ */
20450
+ notifySensorIgnored: boolean().optional()
20497
20451
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20498
20452
  var NcAlarmModeDelaysEditListSchema = array(object({
20499
20453
  mode: AlarmArmModeSchema,
@@ -20506,7 +20460,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
20506
20460
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20507
20461
  notifyDuringEntryDelay: boolean().nullable().optional(),
20508
20462
  /** D706: set the switch, or `null` to clear it (back to the default, false). */
20509
- notifySensorRewatched: boolean().nullable().optional()
20463
+ notifySensorRewatched: boolean().nullable().optional(),
20464
+ /** D735: set the switch, or `null` to clear it (back to the default, false). */
20465
+ notifySensorIgnored: boolean().nullable().optional()
20510
20466
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20511
20467
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20512
20468
  var NcAlarmNonBlockingEditSchema = object({
@@ -21484,8 +21440,8 @@ Object.freeze(Object.fromEntries([{
21484
21440
  var CLUSTER_STEP_SETTING_FIELDS = [{
21485
21441
  stepId: "face-embedding",
21486
21442
  key: "minLandmarkFaceSize",
21487
- label: "Min face size for recognition (detection px)",
21488
- 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.",
21443
+ label: "Min face size to embed (detection-frame px)",
21444
+ 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.",
21489
21445
  type: "slider",
21490
21446
  min: 0,
21491
21447
  max: 64,
@@ -23405,6 +23361,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23405
23361
  timestamp: number()
23406
23362
  });
23407
23363
  /**
23364
+ * A root model's boxes standing in for one crop-kind step's own inference
23365
+ * (D730) — see `runPipeline.suppliedRoot`.
23366
+ */
23367
+ var SuppliedRootOutputSchema = object({
23368
+ stepId: string(),
23369
+ /** The root model that drew the boxes — stamped on the result. */
23370
+ modelId: string(),
23371
+ detections: array(object({
23372
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23373
+ bbox: tuple([
23374
+ number(),
23375
+ number(),
23376
+ number(),
23377
+ number()
23378
+ ]),
23379
+ score: number(),
23380
+ /**
23381
+ * Five facial landmarks in the same pixels — a face the step's own
23382
+ * detector already re-found inside a root face box (D730), so its
23383
+ * embedder child aligns it exactly as it aligns any detected face.
23384
+ */
23385
+ landmarks: array(object({
23386
+ x: number(),
23387
+ y: number()
23388
+ })).optional()
23389
+ })).min(1)
23390
+ });
23391
+ /**
23408
23392
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23409
23393
  * within the frame, so the executor can re-cut a leaf child ROI at native
23410
23394
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23452,7 +23436,7 @@ var FrameRefSchema = object({
23452
23436
  timestamp: number(),
23453
23437
  capturedAt: number().optional()
23454
23438
  });
23455
- var ModelFormatSchema$1 = _enum([
23439
+ var ModelFormatSchema$2 = _enum([
23456
23440
  "onnx",
23457
23441
  "coreml",
23458
23442
  "openvino",
@@ -23470,7 +23454,7 @@ var PipelineSlotSchema = _enum([
23470
23454
  var PipelineEngineChoiceSchema = object({
23471
23455
  runtime: literal("python"),
23472
23456
  backend: string(),
23473
- format: ModelFormatSchema$1,
23457
+ format: ModelFormatSchema$2,
23474
23458
  device: string().optional()
23475
23459
  });
23476
23460
  /**
@@ -23509,32 +23493,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
23509
23493
  group: string().optional(),
23510
23494
  settings: record(string(), unknown()).optional()
23511
23495
  }));
23512
- var PipelineTemplateStepSchema = lazy(() => object({
23513
- addonId: string(),
23514
- enabled: boolean(),
23515
- modelId: string(),
23516
- children: array(PipelineTemplateStepSchema).readonly(),
23517
- settings: record(string(), unknown()).optional()
23518
- }));
23519
- var PipelineTemplateSchema$1 = object({
23520
- id: string(),
23521
- name: string(),
23522
- createdAt: string(),
23523
- updatedAt: string(),
23524
- engine: PipelineEngineChoiceSchema,
23525
- steps: array(PipelineTemplateStepSchema).readonly()
23526
- });
23527
23496
  var PipelineModelOptionSchema = object({
23528
23497
  id: string(),
23529
23498
  name: string(),
23530
- formats: record(string(), object({
23531
- downloaded: boolean(),
23532
- sizeMB: number()
23533
- })),
23499
+ formats: record(string(), PipelineModelFormatStatusSchema),
23534
23500
  group: ModelVariantGroupSchema.optional(),
23535
23501
  legacy: boolean().optional(),
23536
23502
  provider: ModelProviderIdSchema.optional(),
23537
- defaultConfidence: number().optional()
23503
+ defaultConfidence: number().optional(),
23504
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23538
23505
  });
23539
23506
  var ConfigFieldBridge = custom();
23540
23507
  var PipelineAddonSchemaSchema = object({
@@ -23696,6 +23663,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23696
23663
  }), {
23697
23664
  kind: "mutation",
23698
23665
  auth: "admin"
23666
+ }), method(object({
23667
+ nodeId: string(),
23668
+ deviceIds: array(number()).readonly().optional(),
23669
+ dryRun: boolean()
23670
+ }), object({
23671
+ entries: array(object({
23672
+ deviceId: number(),
23673
+ keys: array(string()).readonly()
23674
+ })).readonly(),
23675
+ refused: array(object({
23676
+ deviceId: number(),
23677
+ reason: string()
23678
+ })).readonly()
23679
+ }), {
23680
+ kind: "mutation",
23681
+ auth: "admin"
23699
23682
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
23700
23683
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
23701
23684
  deviceKey: string(),
@@ -23721,22 +23704,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23721
23704
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
23722
23705
  steps: array(PipelineStepInputSchema),
23723
23706
  deviceKey: string().optional()
23724
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
23725
- name: string(),
23726
- steps: array(PipelineTemplateStepSchema).readonly(),
23727
- engine: PipelineEngineChoiceSchema
23728
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
23729
- id: string(),
23730
- name: string().optional(),
23731
- steps: array(PipelineTemplateStepSchema).readonly().optional()
23732
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23707
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
23733
23708
  addonId: string(),
23734
23709
  modelId: string(),
23735
- format: ModelFormatSchema$1
23710
+ format: ModelFormatSchema$2
23736
23711
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
23737
23712
  addonId: string(),
23738
23713
  modelId: string(),
23739
- format: ModelFormatSchema$1
23714
+ format: ModelFormatSchema$2
23740
23715
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
23741
23716
  steps: array(PipelineStepInputSchema).min(1),
23742
23717
  frame: FrameInputSchema.optional(),
@@ -23802,7 +23777,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23802
23777
  * `device-not-servable`), and nothing reaches the camera's live
23803
23778
  * trace stream. Absent ⇒ unchanged behaviour.
23804
23779
  */
23805
- replay: literal(true).optional()
23780
+ replay: literal(true).optional(),
23781
+ /**
23782
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23783
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23784
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23785
+ * NOT inferred, these boxes are its output, and its children (the plate
23786
+ * reader) run on them through their own crop policy. Boxes are in the
23787
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23788
+ */
23789
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23806
23790
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23807
23791
  steps: array(PipelineStepInputSchema).min(1),
23808
23792
  frames: array(FrameInputSchema).min(1).max(255),
@@ -23884,6 +23868,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23884
23868
  filename: string().optional(),
23885
23869
  settings: record(string(), unknown()).optional()
23886
23870
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
23871
+ /**
23872
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
23873
+ * `pipeline-orchestrator` cap. The recommender's own types
23874
+ * (`recommend.ts`) are the TS face of the same data; these
23875
+ * schemas are what crosses the cap boundary.
23876
+ */
23877
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
23878
+ /** The operator's range for it. */
23879
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
23880
+ min: 1,
23881
+ max: 8
23882
+ };
23883
+ var HardwareClassIdSchema = _enum([
23884
+ "intel-core-ultra",
23885
+ "intel-n-series",
23886
+ "apple-m-base",
23887
+ "apple-m-pro",
23888
+ "unknown"
23889
+ ]);
23890
+ var AcceleratorKindSchema = _enum([
23891
+ "intel-npu",
23892
+ "intel-igpu",
23893
+ "x86-cpu",
23894
+ "arm-cpu",
23895
+ "apple-ane",
23896
+ "coral"
23897
+ ]);
23898
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
23899
+ object({
23900
+ kind: literal("capacity"),
23901
+ sessions: number(),
23902
+ minSessions: number()
23903
+ }),
23904
+ object({
23905
+ kind: literal("tie-faster"),
23906
+ over: string(),
23907
+ recallDelta: number()
23908
+ }),
23909
+ object({
23910
+ kind: literal("stepped-down"),
23911
+ from: string(),
23912
+ to: string(),
23913
+ limitedBy: string()
23914
+ }),
23915
+ object({
23916
+ kind: literal("no-fit-lightest"),
23917
+ sessions: number(),
23918
+ minSessions: number()
23919
+ }),
23920
+ object({
23921
+ kind: literal("derived-latency"),
23922
+ modelId: string()
23923
+ }),
23924
+ object({ kind: literal("cpu-device") }),
23925
+ object({ kind: literal("coral-untouched") }),
23926
+ object({ kind: literal("device-disabled") }),
23927
+ object({ kind: literal("device-unavailable") }),
23928
+ object({ kind: literal("node-offline") }),
23929
+ object({ kind: literal("no-hardware-facts") }),
23930
+ object({
23931
+ kind: literal("no-measured-data"),
23932
+ hardwareClass: HardwareClassIdSchema
23933
+ }),
23934
+ object({
23935
+ kind: literal("no-family-build"),
23936
+ format: ModelFormatSchema$1
23937
+ })
23938
+ ]);
23939
+ var DeviceModelChoiceSchema = object({
23940
+ modelId: string(),
23941
+ p50Ms: number(),
23942
+ fps: number(),
23943
+ measured: boolean(),
23944
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
23945
+ capacitySessions: number(),
23946
+ personRecall: number()
23947
+ });
23948
+ var DeviceRecommendationSchema = object({
23949
+ deviceKey: string(),
23950
+ accelerator: AcceleratorKindSchema.nullable(),
23951
+ enabled: boolean(),
23952
+ available: boolean(),
23953
+ chosen: DeviceModelChoiceSchema.nullable(),
23954
+ reasons: array(RecommendationReasonSchema).readonly()
23955
+ });
23956
+ var NodeRecommendationSchema = object({
23957
+ nodeId: string(),
23958
+ reachable: boolean(),
23959
+ hardwareClass: HardwareClassIdSchema.nullable(),
23960
+ cpuModel: string().nullable(),
23961
+ skipped: boolean(),
23962
+ acceleratorModelId: string().nullable(),
23963
+ devices: array(DeviceRecommendationSchema).readonly(),
23964
+ reasons: array(RecommendationReasonSchema).readonly()
23965
+ });
23966
+ var ModelPinChangeSchema = object({
23967
+ stepId: string(),
23968
+ before: string().nullable(),
23969
+ after: string().nullable()
23970
+ });
23971
+ var NodeDeviceChangeSchema = object({
23972
+ nodeId: string(),
23973
+ deviceKey: string(),
23974
+ madeExplicit: boolean(),
23975
+ modelPins: array(ModelPinChangeSchema).readonly(),
23976
+ thresholds: array(object({
23977
+ stepId: string(),
23978
+ keys: array(string()).readonly()
23979
+ })).readonly()
23980
+ });
23981
+ var CameraOverrideClearSchema = object({
23982
+ deviceId: number(),
23983
+ source: _enum(["step-override", "wholesale"]),
23984
+ nodeId: string(),
23985
+ deviceKey: string().nullable(),
23986
+ stepId: string(),
23987
+ modelIdBefore: string().nullable(),
23988
+ keys: array(string()).readonly()
23989
+ });
23990
+ var DetectorStoreClearSchema = object({
23991
+ deviceId: number(),
23992
+ keys: array(string()).readonly()
23993
+ });
23994
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
23995
+ object({
23996
+ kind: literal("detector-store-cluster-wide"),
23997
+ skippedNodes: array(string()).readonly()
23998
+ }),
23999
+ object({
24000
+ kind: literal("detector-store-unreadable"),
24001
+ error: string()
24002
+ }),
24003
+ object({
24004
+ kind: literal("coral-enabled"),
24005
+ nodeId: string(),
24006
+ deviceKey: string()
24007
+ })
24008
+ ]);
24009
+ var AutoTuneOptionsSchema = object({
24010
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
24011
+ headroom: number().min(.3).max(.5).default(.4),
24012
+ /**
24013
+ * The least number of parallel sessions every device must sustain at the
24014
+ * camera rate with the headroom kept free (D755). The most accurate model
24015
+ * that reaches it wins.
24016
+ */
24017
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24018
+ });
24019
+ var AutoTunePlanSchema = object({
24020
+ /** Hash of everything the apply will write — the apply refuses a different one. */
24021
+ planHash: string(),
24022
+ family: literal("yolov9"),
24023
+ headroom: number(),
24024
+ minSessionsPerDevice: number(),
24025
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
24026
+ cameraFps: number(),
24027
+ generatedAt: number(),
24028
+ nodes: array(NodeRecommendationSchema).readonly(),
24029
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
24030
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
24031
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
24032
+ warnings: array(AutoTuneWarningSchema).readonly()
24033
+ });
24034
+ var AutoTuneApplyInputSchema = object({
24035
+ planHash: string(),
24036
+ headroom: number().min(.3).max(.5).default(.4),
24037
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
24038
+ });
24039
+ var AutoTunePhaseResultSchema = object({
24040
+ phase: _enum([
24041
+ "download",
24042
+ "camera-overrides",
24043
+ "detector-thresholds",
24044
+ "node-models",
24045
+ "redispatch"
24046
+ ]),
24047
+ ok: boolean(),
24048
+ detail: string()
24049
+ });
24050
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
24051
+ object({
24052
+ kind: literal("applied"),
24053
+ planHash: string(),
24054
+ phases: array(AutoTunePhaseResultSchema).readonly()
24055
+ }),
24056
+ object({
24057
+ kind: literal("aborted"),
24058
+ phases: array(AutoTunePhaseResultSchema).readonly()
24059
+ }),
24060
+ object({
24061
+ kind: literal("stale"),
24062
+ plan: AutoTunePlanSchema
24063
+ }),
24064
+ object({
24065
+ kind: literal("refused"),
24066
+ reason: _enum(["apply-in-progress"])
24067
+ })
24068
+ ]);
24069
+ /**
24070
+ * Wire shapes of the Load balancing surface (D748): the session placement
24071
+ * policy, the atomic share write, the observed placement statistics, the
24072
+ * hardware share suggestion and the stale device pins.
24073
+ */
24074
+ /**
24075
+ * How a new detection session picks its node and device.
24076
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
24077
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
24078
+ * weight only bites once a node already holds a session.
24079
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
24080
+ * full or drowning node yields to a free one (D748).
24081
+ */
24082
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
24083
+ var LoadBalancingSharesInputSchema = object({
24084
+ /** nodeId → share (> 0). A node left out keeps its weight. */
24085
+ nodes: record(string(), number().positive()).default({}),
24086
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
24087
+ devices: record(string(), record(string(), number().positive())).default({})
24088
+ });
24089
+ var PlacementStatsInputSchema = object({
24090
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
24091
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
24092
+ var PlacementDeviceStatsSchema = object({
24093
+ deviceKey: string(),
24094
+ /** Sessions running on this device now. */
24095
+ sessionsNow: number(),
24096
+ /** Sessions started on this device inside the window. */
24097
+ sessionsStarted: number(),
24098
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
24099
+ observedShare: number().nullable()
24100
+ });
24101
+ var PlacementNodeStatsSchema = object({
24102
+ nodeId: string(),
24103
+ sessionsNow: number(),
24104
+ sessionsStarted: number(),
24105
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
24106
+ observedShare: number().nullable(),
24107
+ /** Most sessions this node ran at once inside the window. */
24108
+ peakSessions: number(),
24109
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
24110
+ yieldsAway: number(),
24111
+ devices: array(PlacementDeviceStatsSchema).readonly()
24112
+ });
24113
+ /** A camera's device pin that the session path cannot honour. */
24114
+ var StaleDevicePinSchema = object({
24115
+ deviceId: number(),
24116
+ deviceKey: string(),
24117
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
24118
+ reason: _enum(["disabled", "absent"])
24119
+ });
24120
+ var PlacementStatsSchema = object({
24121
+ policy: SessionPlacementPolicySchema,
24122
+ windowMs: number(),
24123
+ /** How much of the window was actually observed (the hub keeps it in memory). */
24124
+ observedForMs: number(),
24125
+ sessionsNow: number(),
24126
+ /** Most parallel sessions across the cluster inside the window. */
24127
+ clusterPeakSessions: number(),
24128
+ nodes: array(PlacementNodeStatsSchema).readonly(),
24129
+ stalePins: array(StaleDevicePinSchema).readonly()
24130
+ });
24131
+ /**
24132
+ * Where an automatic share's capacity comes from (D755).
24133
+ * - `hardware` — the static capacity of each device at its Auto tune model:
24134
+ * the measured latency table for the node's hardware class.
24135
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
24136
+ * A node with no results falls back to `hardware`, and says so.
24137
+ */
24138
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
24139
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
24140
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
24141
+ var SuggestSharesInputSchema = object({
24142
+ headroom: number().min(.3).max(.5).default(.4),
24143
+ /** Default `hardware`. */
24144
+ source: CapacitySourceSchema.default("hardware")
24145
+ });
24146
+ var SuggestedDeviceShareSchema = object({
24147
+ deviceKey: string(),
24148
+ /** Share of the node (0–100, rounded). */
24149
+ share: number(),
24150
+ modelId: string().nullable(),
24151
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
24152
+ fps: number().nullable(),
24153
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
24154
+ measured: boolean(),
24155
+ /**
24156
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
24157
+ * or the benchmark's measured max sessions. Never enforced.
24158
+ */
24159
+ suggestedMaxSessions: number().nullable()
24160
+ });
24161
+ var SuggestedNodeShareSchema = object({
24162
+ nodeId: string(),
24163
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
24164
+ share: number().nullable(),
24165
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
24166
+ capacitySessions: number(),
24167
+ devices: array(SuggestedDeviceShareSchema).readonly(),
24168
+ skippedReason: string().nullable(),
24169
+ /** What this node's capacity was read from; null when the node is skipped. */
24170
+ capacitySource: CapacitySourceSchema.nullable(),
24171
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
24172
+ capacityFallback: CapacityFallbackSchema.nullable()
24173
+ });
24174
+ var SuggestSharesResultSchema = object({
24175
+ headroom: number(),
24176
+ /** The source asked for; each node says what it actually used. */
24177
+ source: CapacitySourceSchema,
24178
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
24179
+ cameraFps: number(),
24180
+ /** The Auto tune capacity floor the models were picked at. */
24181
+ minSessionsPerDevice: number(),
24182
+ nodes: array(SuggestedNodeShareSchema).readonly()
24183
+ });
24184
+ /**
24185
+ * Where the node and device shares come from (D750, D755).
24186
+ * - `hardware` (default) — computed by the system from each node's static
24187
+ * capacity (its accelerators at their Auto tune models, from the measured
24188
+ * latency table), recomputed whenever a node or device joins, leaves, is
24189
+ * switched on or off, or changes model. No load input.
24190
+ * - `benchmark` — the same, from each node's measured capacity (node
24191
+ * benchmark results); a node without results falls back to `hardware`.
24192
+ * - `manual` — the operator's stored sliders.
24193
+ * Either way a node or device that cannot take sessions gives its share to
24194
+ * the others in proportion; the stored values are never rewritten for that.
24195
+ */
24196
+ var ShareSourceSchema = _enum([
24197
+ "hardware",
24198
+ "benchmark",
24199
+ "manual"
24200
+ ]);
24201
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
24202
+ object({
24203
+ nodes: record(string(), number()),
24204
+ devices: record(string(), record(string(), number()))
24205
+ });
24206
+ var EffectiveDeviceShareSchema = object({
24207
+ deviceKey: string(),
24208
+ /** Can take sessions now (enabled, available, can run the root). */
24209
+ eligible: boolean(),
24210
+ /** The share the source assigns, as a percentage of the node's devices. */
24211
+ configuredPct: number(),
24212
+ /** The share actually used, after an ineligible device's share went to the others. */
24213
+ effectivePct: number()
24214
+ });
24215
+ var EffectiveNodeShareSchema = object({
24216
+ nodeId: string(),
24217
+ eligible: boolean(),
24218
+ configuredPct: number(),
24219
+ effectivePct: number(),
24220
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
24221
+ capacitySource: CapacitySourceSchema.nullable(),
24222
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
24223
+ capacityFallback: CapacityFallbackSchema.nullable(),
24224
+ devices: array(EffectiveDeviceShareSchema).readonly()
24225
+ });
24226
+ var EffectiveSharesSchema = object({
24227
+ source: ShareSourceSchema,
24228
+ policy: SessionPlacementPolicySchema,
24229
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
24230
+ autoPending: boolean(),
24231
+ /** When the automatic shares were last computed (ms epoch); null = never. */
24232
+ computedAt: number().nullable(),
24233
+ /** What made the system recompute them last. */
24234
+ trigger: string().nullable(),
24235
+ nodes: array(EffectiveNodeShareSchema).readonly(),
24236
+ /** The relative weights the election reads (before eligibility). */
24237
+ nodeWeights: record(string(), number()),
24238
+ deviceWeights: record(string(), record(string(), number()))
24239
+ });
23887
24240
  object({
23888
24241
  activeCameras: number(),
23889
24242
  throttledCameras: number(),
@@ -24801,14 +25154,15 @@ var RunnerLocalLoadSchema = object({
24801
25154
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
24802
25155
  * this runner currently has attached cameras on, so the orchestrator's second
24803
25156
  * `balance()` pass (over a node's devices) weights on real per-pool session
24804
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
24805
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
25157
+ * counts. Empty on single-device / pre-multi-device runners. There is no
25158
+ * per-device queue depth: the inference pool's backlog has no accessor, and
25159
+ * a field that always read 0 was removed rather than shown as a measurement
25160
+ * (D762).
24806
25161
  */
24807
25162
  devices: array(object({
24808
25163
  deviceKey: string(),
24809
25164
  backend: string(),
24810
- attachedCameras: number(),
24811
- queueDepthTotal: number()
25165
+ attachedCameras: number()
24812
25166
  })).default([]),
24813
25167
  /** Hardware capability flags reported by this node. */
24814
25168
  hardware: object({
@@ -24944,7 +25298,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24944
25298
  */
24945
25299
  cropJpeg: string().optional(),
24946
25300
  parent: DetailParentSchema,
24947
- steps: array(string()).optional()
25301
+ steps: array(string()).optional(),
25302
+ /**
25303
+ * The camera's root model already drew this step's boxes (D730): a
25304
+ * `license_plate` inside the parent vehicle. The named step is NOT
25305
+ * inferred — these FRAME-space boxes are its output — and its
25306
+ * requested children (the plate reader) run on them. Absent ⇒ every
25307
+ * requested step infers as before.
25308
+ */
25309
+ supplied: object({
25310
+ stepId: string(),
25311
+ modelId: string(),
25312
+ boxes: array(object({
25313
+ bbox: NativeCropBboxSchema,
25314
+ score: number()
25315
+ })).min(1)
25316
+ }).optional()
24948
25317
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24949
25318
  /** Catalog step id, e.g. `clip-embedding`. */
24950
25319
  stepId: string(),
@@ -25007,14 +25376,6 @@ var CameraPipelineConfigSchema = object({
25007
25376
  settings: record(string(), unknown()).readonly().optional()
25008
25377
  }).nullable().optional()
25009
25378
  });
25010
- var PipelineTemplateSchema = object({
25011
- id: string(),
25012
- name: string(),
25013
- description: string().optional(),
25014
- config: CameraPipelineConfigSchema,
25015
- createdAt: string(),
25016
- updatedAt: string()
25017
- });
25018
25379
  var DeviceStepConfigSchema = object({
25019
25380
  modelId: string().optional(),
25020
25381
  settings: record(string(), unknown()).optional(),
@@ -25088,9 +25449,10 @@ var CameraStepOverridePatchSchema = object({
25088
25449
  modelId: string().optional(),
25089
25450
  settings: record(string(), unknown()).readonly().optional()
25090
25451
  });
25452
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
25091
25453
  var CameraPipelineSettingsSchema = object({
25092
- pinnedAgentNodeId: string().optional(),
25093
25454
  stepToggles: record(string(), boolean()).optional(),
25455
+ stepSettings: CameraStepSettingsSchema.optional(),
25094
25456
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
25095
25457
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
25096
25458
  });
@@ -25123,7 +25485,10 @@ var PipelineAssignmentSchema = object({
25123
25485
  });
25124
25486
  /**
25125
25487
  * Per-agent load summary surfaced to the load balancer + dashboards.
25126
- * Aggregated from each runner's `getLocalLoad` cap call.
25488
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
25489
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
25490
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
25491
+ * the default pool IS that device (D745); the balancer's census stays raw.
25127
25492
  */
25128
25493
  var AgentLoadSummarySchema = object({
25129
25494
  nodeId: string(),
@@ -25212,26 +25577,27 @@ var CameraBrokerStatusSchema = object({
25212
25577
  width: number(),
25213
25578
  height: number(),
25214
25579
  subscribers: number(),
25215
- inFps: number(),
25216
- outFps: number()
25580
+ /**
25581
+ * Encoded packets/s the broker receives from the camera. null when the
25582
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
25583
+ * There is no output rate: decoding runs in the session decode workers, not
25584
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
25585
+ * camera and is not served (D758).
25586
+ */
25587
+ inFps: number().nullable()
25217
25588
  })).readonly(),
25218
25589
  webrtcSessions: number(),
25219
25590
  rtspRestream: boolean()
25220
25591
  });
25221
- /** Shared-memory ring statistics within the decoder block. */
25222
- var CameraDecoderShmSchema = object({
25223
- framesWritten: number(),
25224
- getFrameHits: number(),
25225
- getFrameMisses: number(),
25226
- budgetMb: number()
25227
- });
25228
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
25229
- var CameraDecoderStatusSchema = object({
25230
- nodeId: string(),
25231
- formats: array(string()).readonly(),
25232
- sessionCount: number(),
25233
- shm: CameraDecoderShmSchema
25234
- });
25592
+ /**
25593
+ * Decoder block — WHERE decode runs (co-located with the detection node by
25594
+ * construction); null when the camera has no detection node. It carries no
25595
+ * frame counter: the shared-memory plane whose counters it used to serve is
25596
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
25597
+ * from `detection.actualFps` (frames delivered to and processed by the
25598
+ * detector), never from a counter nothing feeds.
25599
+ */
25600
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
25235
25601
  /** Motion block — null when motion detection is not active for this device. */
25236
25602
  var CameraMotionStatusSchema = object({
25237
25603
  enabled: boolean(),
@@ -25588,12 +25954,6 @@ method(object({
25588
25954
  }), object({ success: literal(true) }), {
25589
25955
  kind: "mutation",
25590
25956
  auth: "admin"
25591
- }), method(object({
25592
- agentNodeId: string(),
25593
- detectWeight: number().positive().nullable()
25594
- }), object({ success: literal(true) }), {
25595
- kind: "mutation",
25596
- auth: "admin"
25597
25957
  }), method(object({
25598
25958
  agentNodeId: string(),
25599
25959
  detect: boolean().nullable().optional(),
@@ -25635,6 +25995,15 @@ method(object({
25635
25995
  }), {
25636
25996
  kind: "mutation",
25637
25997
  auth: "admin"
25998
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
25999
+ kind: "mutation",
26000
+ auth: "admin"
26001
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
26002
+ kind: "mutation",
26003
+ auth: "admin"
26004
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
26005
+ kind: "mutation",
26006
+ auth: "admin"
25638
26007
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
25639
26008
  deviceId: number(),
25640
26009
  addonId: string(),
@@ -25651,6 +26020,13 @@ method(object({
25651
26020
  }), object({ success: literal(true) }), {
25652
26021
  kind: "mutation",
25653
26022
  auth: "admin"
26023
+ }), method(object({
26024
+ deviceId: number(),
26025
+ addonId: string(),
26026
+ settings: record(string(), unknown()).nullable()
26027
+ }), object({ success: literal(true) }), {
26028
+ kind: "mutation",
26029
+ auth: "admin"
25654
26030
  }), method(object({
25655
26031
  deviceId: number(),
25656
26032
  agentNodeId: string(),
@@ -25674,25 +26050,7 @@ method(object({
25674
26050
  }), method(_void(), DiskReconcileJobSchema, {
25675
26051
  kind: "mutation",
25676
26052
  auth: "admin"
25677
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
25678
- name: string(),
25679
- description: string().optional(),
25680
- config: CameraPipelineConfigSchema
25681
- }), PipelineTemplateSchema, {
25682
- kind: "mutation",
25683
- auth: "admin"
25684
- }), method(object({
25685
- id: string(),
25686
- name: string().optional(),
25687
- description: string().optional(),
25688
- config: CameraPipelineConfigSchema.optional()
25689
- }), PipelineTemplateSchema, {
25690
- kind: "mutation",
25691
- auth: "admin"
25692
- }), method(object({ id: string() }), object({ success: literal(true) }), {
25693
- kind: "mutation",
25694
- auth: "admin"
25695
- });
26053
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
25696
26054
  /**
25697
26055
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
25698
26056
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -27941,8 +28299,6 @@ var WebrtcStreamChoiceSchema = object({
27941
28299
  ]).nullable(),
27942
28300
  /** Input FPS from the camera (null for adaptive). */
27943
28301
  inputFps: number().nullable(),
27944
- /** Decoded FPS (null for adaptive). */
27945
- decodeFps: number().nullable(),
27946
28302
  /** Bitrate in kbps (null for adaptive). */
27947
28303
  bitrateKbps: number().nullable()
27948
28304
  });
@@ -28274,6 +28630,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
28274
28630
  */
28275
28631
  alive: boolean()
28276
28632
  })), method(object({
28633
+ deviceId: number().int().nonnegative(),
28634
+ sessionId: string(),
28635
+ downlinkMbps: number().nonnegative()
28636
+ }), object({
28637
+ outcome: _enum(["switching", "held"]),
28638
+ tier: CamProfileSchema.nullable(),
28639
+ reason: string()
28640
+ }), { kind: "mutation" }), method(object({
28277
28641
  deviceId: number().int().nonnegative(),
28278
28642
  sessionId: string()
28279
28643
  }), WebrtcSessionDebugSchema, { kind: "query" });
@@ -32085,7 +32449,8 @@ var ConnectionEndpointSchema = object({
32085
32449
  "lan-ipv6",
32086
32450
  "public",
32087
32451
  "loopback",
32088
- "app-link"
32452
+ "app-link",
32453
+ "custom"
32089
32454
  ]),
32090
32455
  /**
32091
32456
  * Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
@@ -32154,7 +32519,7 @@ var GetConnectionEndpointsResultSchema = object({
32154
32519
  localPort: AdvertisedLocalPortSchema
32155
32520
  });
32156
32521
  /**
32157
- * The address flagged for notification links. `baseUrl: null` = AUTO, which
32522
+ * The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
32158
32523
  * since D709 is the CamStack app link; `resolved` reports the effective value,
32159
32524
  * so the UI can show it either way.
32160
32525
  */
@@ -32187,6 +32552,72 @@ var ViewerEndpointsSchema = object({
32187
32552
  /** What the ranking currently resolves to (may be empty if nothing is up). */
32188
32553
  resolved: array(string()).readonly()
32189
32554
  });
32555
+ /**
32556
+ * DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
32557
+ * for addons built against it): `cluster` is the `internal` role, `browser`
32558
+ * the `publicEndpoint` role; `override` is the flagged address.
32559
+ */
32560
+ var HubAddressSnapshotSchema = object({
32561
+ override: string().nullable(),
32562
+ resolved: string().nullable(),
32563
+ source: _enum([
32564
+ "override",
32565
+ "auto",
32566
+ "none"
32567
+ ])
32568
+ });
32569
+ var HubAddressesSchema = object({
32570
+ cluster: HubAddressSnapshotSchema,
32571
+ browser: HubAddressSnapshotSchema
32572
+ });
32573
+ /**
32574
+ * What an address is used for (`hub-address.ts`, D734). `appConnections` is
32575
+ * many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
32576
+ * by at most one address.
32577
+ */
32578
+ var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
32579
+ var RoleSourceSchema = _enum([
32580
+ "flagged",
32581
+ "auto",
32582
+ "none"
32583
+ ]);
32584
+ /** One single-valued role: the flagged address, the one in use, and why. */
32585
+ var HubAddressRoleResolutionSchema = object({
32586
+ /** The address carrying the flag, or null = automatic. */
32587
+ flagged: string().nullable(),
32588
+ /** The address in use, or null when nothing qualifies (never loopback). */
32589
+ resolved: string().nullable(),
32590
+ source: RoleSourceSchema
32591
+ });
32592
+ var HubAppConnectionsResolutionSchema = object({
32593
+ /** The addresses flagged `appConnections`, or empty = automatic. */
32594
+ flagged: array(string()).readonly(),
32595
+ /** What the apps race right now. */
32596
+ resolved: array(string()).readonly(),
32597
+ source: RoleSourceSchema
32598
+ });
32599
+ var HubAddressBookSchema = object({
32600
+ rows: array(ConnectionEndpointSchema.extend({
32601
+ /** In the hub's detected palette right now. */
32602
+ detected: boolean(),
32603
+ /** Entered by the operator (removable). */
32604
+ custom: boolean(),
32605
+ /** The roles explicitly flagged on this address. */
32606
+ flags: array(HubAddressRoleSchema).readonly(),
32607
+ /** The roles this address serves right now — flagged or automatic. */
32608
+ inUse: array(HubAddressRoleSchema).readonly(),
32609
+ /** The roles this address may be flagged with. */
32610
+ eligible: array(HubAddressRoleSchema).readonly()
32611
+ })).readonly(),
32612
+ roles: object({
32613
+ appConnections: HubAppConnectionsResolutionSchema,
32614
+ notificationTaps: HubAddressRoleResolutionSchema,
32615
+ internal: HubAddressRoleResolutionSchema,
32616
+ publicEndpoint: HubAddressRoleResolutionSchema
32617
+ }),
32618
+ /** The `hub=` an app link carries (D709), or null. */
32619
+ appLinkHub: string().nullable()
32620
+ });
32190
32621
  var AllowedAddressesSchema = object({
32191
32622
  /**
32192
32623
  * Allowlist of interface addresses operators have explicitly opted
@@ -32230,10 +32661,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
32230
32661
  * tunnel always emits `https://` regardless. */
32231
32662
  scheme: _enum(["http", "https"]).optional(),
32232
32663
  /** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
32233
- * an address notification links can be flagged with, not a hub
32664
+ * an address notification taps can be flagged with, not a hub
32234
32665
  * route. Default `false`: racers and rankers never see it. */
32235
32666
  includeAppLink: boolean().optional()
32236
- }), 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, {
32667
+ }), 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({
32668
+ baseUrl: string(),
32669
+ label: string().max(80)
32670
+ }), HubAddressBookSchema, {
32671
+ kind: "mutation",
32672
+ auth: "admin"
32673
+ }), method(object({ baseUrl: string() }), HubAddressBookSchema, {
32674
+ kind: "mutation",
32675
+ auth: "admin"
32676
+ }), method(object({
32677
+ role: HubAddressRoleSchema,
32678
+ baseUrl: string().nullable(),
32679
+ enabled: boolean(),
32680
+ acceptInsecureHttp: boolean().optional()
32681
+ }), HubAddressBookSchema, {
32682
+ kind: "mutation",
32683
+ auth: "admin"
32684
+ }), 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, {
32237
32685
  kind: "mutation",
32238
32686
  auth: "admin"
32239
32687
  }), method(object({
@@ -32691,7 +33139,8 @@ var MotionStatusSchema = object({
32691
33139
  * writes this slice (not even a boot seed), and neither does the runner's
32692
33140
  * phase machine: its phase is "a session is attached" for every on-motion
32693
33141
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
32694
- * A provider's `isDetected` answers from the hub's slice.
33142
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
33143
+ * (`hubMotionNativeProvider`).
32695
33144
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
32696
33145
  * imports) — the provider pushes both edges itself, from the upstream
32697
33146
  * system's own state change. That is the sensor's own fact.
@@ -39238,6 +39687,16 @@ var zoneRulesCapability = {
39238
39687
  durability: "restored"
39239
39688
  };
39240
39689
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
39690
+ Object.freeze({
39691
+ person: .5,
39692
+ vehicle: .5,
39693
+ animal: .5
39694
+ });
39695
+ Object.freeze({
39696
+ person: .65,
39697
+ vehicle: .65,
39698
+ animal: .65
39699
+ });
39241
39700
  /**
39242
39701
  * Accessory device helpers — shared across drivers.
39243
39702
  *
@@ -42118,90 +42577,18 @@ Object.freeze({
42118
42577
  addonId: null,
42119
42578
  access: "create"
42120
42579
  },
42121
- "decoder.createSession": {
42122
- capName: "decoder",
42123
- capScope: "system",
42124
- addonId: null,
42125
- access: "view"
42126
- },
42127
- "decoder.destroySession": {
42128
- capName: "decoder",
42129
- capScope: "system",
42130
- addonId: null,
42131
- access: "delete"
42132
- },
42133
- "decoder.getFrame": {
42134
- capName: "decoder",
42135
- capScope: "system",
42136
- addonId: null,
42137
- access: "view"
42138
- },
42139
42580
  "decoder.getInfo": {
42140
42581
  capName: "decoder",
42141
42582
  capScope: "system",
42142
42583
  addonId: null,
42143
42584
  access: "view"
42144
42585
  },
42145
- "decoder.getShmStats": {
42146
- capName: "decoder",
42147
- capScope: "system",
42148
- addonId: null,
42149
- access: "view"
42150
- },
42151
- "decoder.getStats": {
42152
- capName: "decoder",
42153
- capScope: "system",
42154
- addonId: null,
42155
- access: "view"
42156
- },
42157
- "decoder.listActiveSessions": {
42158
- capName: "decoder",
42159
- capScope: "system",
42160
- addonId: null,
42161
- access: "view"
42162
- },
42163
- "decoder.openStream": {
42164
- capName: "decoder",
42165
- capScope: "system",
42166
- addonId: null,
42167
- access: "view"
42168
- },
42169
- "decoder.pullFrames": {
42170
- capName: "decoder",
42171
- capScope: "system",
42172
- addonId: null,
42173
- access: "view"
42174
- },
42175
- "decoder.pullHandles": {
42176
- capName: "decoder",
42177
- capScope: "system",
42178
- addonId: null,
42179
- access: "view"
42180
- },
42181
- "decoder.pushPacket": {
42182
- capName: "decoder",
42183
- capScope: "system",
42184
- addonId: null,
42185
- access: "view"
42186
- },
42187
42586
  "decoder.reprobeHwaccel": {
42188
42587
  capName: "decoder",
42189
42588
  capScope: "system",
42190
42589
  addonId: null,
42191
42590
  access: "create"
42192
42591
  },
42193
- "decoder.supportsCodec": {
42194
- capName: "decoder",
42195
- capScope: "system",
42196
- addonId: null,
42197
- access: "view"
42198
- },
42199
- "decoder.updateConfig": {
42200
- capName: "decoder",
42201
- capScope: "system",
42202
- addonId: null,
42203
- access: "view"
42204
- },
42205
42592
  "detectionPipeline.applyDeviceSettingsPatch": {
42206
42593
  capName: "detection-pipeline",
42207
42594
  capScope: "device",
@@ -43690,12 +44077,24 @@ Object.freeze({
43690
44077
  addonId: null,
43691
44078
  access: "view"
43692
44079
  },
44080
+ "localNetwork.addCustomAddress": {
44081
+ capName: "local-network",
44082
+ capScope: "system",
44083
+ addonId: null,
44084
+ access: "create"
44085
+ },
43693
44086
  "localNetwork.downloadCa": {
43694
44087
  capName: "local-network",
43695
44088
  capScope: "system",
43696
44089
  addonId: null,
43697
44090
  access: "view"
43698
44091
  },
44092
+ "localNetwork.getAddresses": {
44093
+ capName: "local-network",
44094
+ capScope: "system",
44095
+ addonId: null,
44096
+ access: "view"
44097
+ },
43699
44098
  "localNetwork.getAllowedAddresses": {
43700
44099
  capName: "local-network",
43701
44100
  capScope: "system",
@@ -43708,6 +44107,12 @@ Object.freeze({
43708
44107
  addonId: null,
43709
44108
  access: "view"
43710
44109
  },
44110
+ "localNetwork.getHubAddresses": {
44111
+ capName: "local-network",
44112
+ capScope: "system",
44113
+ addonId: null,
44114
+ access: "view"
44115
+ },
43711
44116
  "localNetwork.getNotificationEndpoint": {
43712
44117
  capName: "local-network",
43713
44118
  capScope: "system",
@@ -43744,6 +44149,12 @@ Object.freeze({
43744
44149
  addonId: null,
43745
44150
  access: "create"
43746
44151
  },
44152
+ "localNetwork.removeCustomAddress": {
44153
+ capName: "local-network",
44154
+ capScope: "system",
44155
+ addonId: null,
44156
+ access: "delete"
44157
+ },
43747
44158
  "localNetwork.resetAllowlistToBestMatch": {
43748
44159
  capName: "local-network",
43749
44160
  capScope: "system",
@@ -43756,6 +44167,12 @@ Object.freeze({
43756
44167
  addonId: null,
43757
44168
  access: "create"
43758
44169
  },
44170
+ "localNetwork.setAddressRole": {
44171
+ capName: "local-network",
44172
+ capScope: "system",
44173
+ addonId: null,
44174
+ access: "create"
44175
+ },
43759
44176
  "localNetwork.setAllowedAddresses": {
43760
44177
  capName: "local-network",
43761
44178
  capScope: "system",
@@ -45250,13 +45667,13 @@ Object.freeze({
45250
45667
  addonId: null,
45251
45668
  access: "delete"
45252
45669
  },
45253
- "pipelineExecutor.deleteModel": {
45670
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
45254
45671
  capName: "pipeline-executor",
45255
45672
  capScope: "system",
45256
45673
  addonId: null,
45257
45674
  access: "delete"
45258
45675
  },
45259
- "pipelineExecutor.deleteTemplate": {
45676
+ "pipelineExecutor.deleteModel": {
45260
45677
  capName: "pipeline-executor",
45261
45678
  capScope: "system",
45262
45679
  addonId: null,
@@ -45400,12 +45817,6 @@ Object.freeze({
45400
45817
  addonId: null,
45401
45818
  access: "view"
45402
45819
  },
45403
- "pipelineExecutor.listTemplates": {
45404
- capName: "pipeline-executor",
45405
- capScope: "system",
45406
- addonId: null,
45407
- access: "view"
45408
- },
45409
45820
  "pipelineExecutor.rearmInferenceDevice": {
45410
45821
  capName: "pipeline-executor",
45411
45822
  capScope: "system",
@@ -45430,12 +45841,6 @@ Object.freeze({
45430
45841
  addonId: null,
45431
45842
  access: "create"
45432
45843
  },
45433
- "pipelineExecutor.saveTemplate": {
45434
- capName: "pipeline-executor",
45435
- capScope: "system",
45436
- addonId: null,
45437
- access: "create"
45438
- },
45439
45844
  "pipelineExecutor.setVideoPipelineSteps": {
45440
45845
  capName: "pipeline-executor",
45441
45846
  capScope: "system",
@@ -45454,41 +45859,35 @@ Object.freeze({
45454
45859
  addonId: null,
45455
45860
  access: "create"
45456
45861
  },
45457
- "pipelineExecutor.updateTemplate": {
45458
- capName: "pipeline-executor",
45459
- capScope: "system",
45460
- addonId: null,
45461
- access: "create"
45462
- },
45463
45862
  "pipelineExecutor.validatePipeline": {
45464
45863
  capName: "pipeline-executor",
45465
45864
  capScope: "system",
45466
45865
  addonId: null,
45467
45866
  access: "view"
45468
45867
  },
45469
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
45868
+ "pipelineOrchestrator.applyAutoTune": {
45470
45869
  capName: "pipeline-orchestrator",
45471
45870
  capScope: "system",
45472
45871
  addonId: null,
45473
45872
  access: "create"
45474
45873
  },
45475
- "pipelineOrchestrator.assignAudio": {
45874
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
45476
45875
  capName: "pipeline-orchestrator",
45477
45876
  capScope: "system",
45478
45877
  addonId: null,
45479
45878
  access: "create"
45480
45879
  },
45481
- "pipelineOrchestrator.assignPipeline": {
45880
+ "pipelineOrchestrator.assignAudio": {
45482
45881
  capName: "pipeline-orchestrator",
45483
45882
  capScope: "system",
45484
45883
  addonId: null,
45485
45884
  access: "create"
45486
45885
  },
45487
- "pipelineOrchestrator.deleteTemplate": {
45886
+ "pipelineOrchestrator.assignPipeline": {
45488
45887
  capName: "pipeline-orchestrator",
45489
45888
  capScope: "system",
45490
45889
  addonId: null,
45491
- access: "delete"
45890
+ access: "create"
45492
45891
  },
45493
45892
  "pipelineOrchestrator.getAgentLoad": {
45494
45893
  capName: "pipeline-orchestrator",
@@ -45580,6 +45979,12 @@ Object.freeze({
45580
45979
  addonId: null,
45581
45980
  access: "view"
45582
45981
  },
45982
+ "pipelineOrchestrator.getEffectiveShares": {
45983
+ capName: "pipeline-orchestrator",
45984
+ capScope: "system",
45985
+ addonId: null,
45986
+ access: "view"
45987
+ },
45583
45988
  "pipelineOrchestrator.getGlobalMetrics": {
45584
45989
  capName: "pipeline-orchestrator",
45585
45990
  capScope: "system",
@@ -45616,19 +46021,19 @@ Object.freeze({
45616
46021
  addonId: null,
45617
46022
  access: "view"
45618
46023
  },
45619
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
46024
+ "pipelineOrchestrator.getPlacementStats": {
45620
46025
  capName: "pipeline-orchestrator",
45621
46026
  capScope: "system",
45622
46027
  addonId: null,
45623
46028
  access: "view"
45624
46029
  },
45625
- "pipelineOrchestrator.listAgentSettings": {
46030
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
45626
46031
  capName: "pipeline-orchestrator",
45627
46032
  capScope: "system",
45628
46033
  addonId: null,
45629
46034
  access: "view"
45630
46035
  },
45631
- "pipelineOrchestrator.listTemplates": {
46036
+ "pipelineOrchestrator.listAgentSettings": {
45632
46037
  capName: "pipeline-orchestrator",
45633
46038
  capScope: "system",
45634
46039
  addonId: null,
@@ -45640,6 +46045,12 @@ Object.freeze({
45640
46045
  addonId: null,
45641
46046
  access: "create"
45642
46047
  },
46048
+ "pipelineOrchestrator.planAutoTune": {
46049
+ capName: "pipeline-orchestrator",
46050
+ capScope: "system",
46051
+ addonId: null,
46052
+ access: "view"
46053
+ },
45643
46054
  "pipelineOrchestrator.rebalance": {
45644
46055
  capName: "pipeline-orchestrator",
45645
46056
  capScope: "system",
@@ -45682,12 +46093,6 @@ Object.freeze({
45682
46093
  addonId: null,
45683
46094
  access: "create"
45684
46095
  },
45685
- "pipelineOrchestrator.saveTemplate": {
45686
- capName: "pipeline-orchestrator",
45687
- capScope: "system",
45688
- addonId: null,
45689
- access: "create"
45690
- },
45691
46096
  "pipelineOrchestrator.setAgentCapabilities": {
45692
46097
  capName: "pipeline-orchestrator",
45693
46098
  capScope: "system",
@@ -45700,12 +46105,6 @@ Object.freeze({
45700
46105
  addonId: null,
45701
46106
  access: "create"
45702
46107
  },
45703
- "pipelineOrchestrator.setAgentDetectWeight": {
45704
- capName: "pipeline-orchestrator",
45705
- capScope: "system",
45706
- addonId: null,
45707
- access: "create"
45708
- },
45709
46108
  "pipelineOrchestrator.setAgentInferenceDevices": {
45710
46109
  capName: "pipeline-orchestrator",
45711
46110
  capScope: "system",
@@ -45742,6 +46141,12 @@ Object.freeze({
45742
46141
  addonId: null,
45743
46142
  access: "create"
45744
46143
  },
46144
+ "pipelineOrchestrator.setCameraStepSettings": {
46145
+ capName: "pipeline-orchestrator",
46146
+ capScope: "system",
46147
+ addonId: null,
46148
+ access: "create"
46149
+ },
45745
46150
  "pipelineOrchestrator.setCameraStepToggle": {
45746
46151
  capName: "pipeline-orchestrator",
45747
46152
  capScope: "system",
@@ -45760,25 +46165,37 @@ Object.freeze({
45760
46165
  addonId: null,
45761
46166
  access: "create"
45762
46167
  },
46168
+ "pipelineOrchestrator.setLoadBalancingShares": {
46169
+ capName: "pipeline-orchestrator",
46170
+ capScope: "system",
46171
+ addonId: null,
46172
+ access: "create"
46173
+ },
45763
46174
  "pipelineOrchestrator.setPipelineDevicePin": {
45764
46175
  capName: "pipeline-orchestrator",
45765
46176
  capScope: "system",
45766
46177
  addonId: null,
45767
46178
  access: "create"
45768
46179
  },
45769
- "pipelineOrchestrator.unassignAudio": {
46180
+ "pipelineOrchestrator.setShareSource": {
45770
46181
  capName: "pipeline-orchestrator",
45771
46182
  capScope: "system",
45772
46183
  addonId: null,
45773
46184
  access: "create"
45774
46185
  },
45775
- "pipelineOrchestrator.unassignPipeline": {
46186
+ "pipelineOrchestrator.suggestShares": {
46187
+ capName: "pipeline-orchestrator",
46188
+ capScope: "system",
46189
+ addonId: null,
46190
+ access: "view"
46191
+ },
46192
+ "pipelineOrchestrator.unassignAudio": {
45776
46193
  capName: "pipeline-orchestrator",
45777
46194
  capScope: "system",
45778
46195
  addonId: null,
45779
46196
  access: "create"
45780
46197
  },
45781
- "pipelineOrchestrator.updateTemplate": {
46198
+ "pipelineOrchestrator.unassignPipeline": {
45782
46199
  capName: "pipeline-orchestrator",
45783
46200
  capScope: "system",
45784
46201
  addonId: null,
@@ -47218,12 +47635,6 @@ Object.freeze({
47218
47635
  addonId: null,
47219
47636
  access: "view"
47220
47637
  },
47221
- "streamBroker.pullFrameHandles": {
47222
- capName: "stream-broker",
47223
- capScope: "system",
47224
- addonId: null,
47225
- access: "view"
47226
- },
47227
47638
  "streamBroker.regenerateRtspToken": {
47228
47639
  capName: "stream-broker",
47229
47640
  capScope: "system",
@@ -47290,12 +47701,6 @@ Object.freeze({
47290
47701
  addonId: null,
47291
47702
  access: "create"
47292
47703
  },
47293
- "streamBroker.subscribeFrames": {
47294
- capName: "stream-broker",
47295
- capScope: "system",
47296
- addonId: null,
47297
- access: "create"
47298
- },
47299
47704
  "streamBroker.unassignProfile": {
47300
47705
  capName: "stream-broker",
47301
47706
  capScope: "system",
@@ -47308,12 +47713,6 @@ Object.freeze({
47308
47713
  addonId: null,
47309
47714
  access: "create"
47310
47715
  },
47311
- "streamBroker.unsubscribeFrames": {
47312
- capName: "stream-broker",
47313
- capScope: "system",
47314
- addonId: null,
47315
- access: "create"
47316
- },
47317
47716
  "streamCatalog.getCatalog": {
47318
47717
  capName: "stream-catalog",
47319
47718
  capScope: "device",
@@ -48010,6 +48409,12 @@ Object.freeze({
48010
48409
  addonId: null,
48011
48410
  access: "create"
48012
48411
  },
48412
+ "webrtcSession.applyDownlinkProbe": {
48413
+ capName: "webrtc-session",
48414
+ capScope: "device",
48415
+ addonId: null,
48416
+ access: "create"
48417
+ },
48013
48418
  "webrtcSession.closeSession": {
48014
48419
  capName: "webrtc-session",
48015
48420
  capScope: "device",
@@ -49821,11 +50226,6 @@ Object.freeze({
49821
50226
  form: "single",
49822
50227
  optional: false
49823
50228
  }],
49824
- "decoder.createSession": [{
49825
- name: "deviceId",
49826
- form: "single",
49827
- optional: true
49828
- }],
49829
50229
  "detectionPipeline.applyDeviceSettingsPatch": [{
49830
50230
  name: "deviceId",
49831
50231
  form: "single",
@@ -51056,6 +51456,11 @@ Object.freeze({
51056
51456
  form: "single",
51057
51457
  optional: false
51058
51458
  }],
51459
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
51460
+ name: "deviceIds",
51461
+ form: "array",
51462
+ optional: true
51463
+ }],
51059
51464
  "pipelineExecutor.runPipeline": [{
51060
51465
  name: "deviceId",
51061
51466
  form: "single",
@@ -51161,6 +51566,11 @@ Object.freeze({
51161
51566
  form: "single",
51162
51567
  optional: false
51163
51568
  }],
51569
+ "pipelineOrchestrator.setCameraStepSettings": [{
51570
+ name: "deviceId",
51571
+ form: "single",
51572
+ optional: false
51573
+ }],
51164
51574
  "pipelineOrchestrator.setCameraStepToggle": [{
51165
51575
  name: "deviceId",
51166
51576
  form: "single",
@@ -51932,6 +52342,11 @@ Object.freeze({
51932
52342
  form: "single",
51933
52343
  optional: false
51934
52344
  }],
52345
+ "webrtcSession.applyDownlinkProbe": [{
52346
+ name: "deviceId",
52347
+ form: "single",
52348
+ optional: false
52349
+ }],
51935
52350
  "webrtcSession.closeSession": [{
51936
52351
  name: "deviceId",
51937
52352
  form: "single",
@@ -52161,6 +52576,8 @@ new Map(Object.entries({
52161
52576
  "detection-blind": "device-events",
52162
52577
  "node-online": "system",
52163
52578
  "node-offline": "system",
52579
+ "node-restarting": "system",
52580
+ "node-updating": "system",
52164
52581
  "node-inference-unavailable": "system",
52165
52582
  "addon-crash-loop": "system",
52166
52583
  "addon-update-available": "system",
@@ -52238,6 +52655,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52238
52655
  kinds: [
52239
52656
  "node-offline",
52240
52657
  "node-online",
52658
+ "node-restarting",
52241
52659
  "node-inference-unavailable"
52242
52660
  ]
52243
52661
  },
@@ -52259,6 +52677,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
52259
52677
  label: "Server & container updates",
52260
52678
  kinds: [
52261
52679
  "server-update-available",
52680
+ "node-updating",
52262
52681
  "server-updated",
52263
52682
  "wrapper-update-available"
52264
52683
  ]
@@ -52406,6 +52825,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52406
52825
  kinds: [
52407
52826
  "node-offline",
52408
52827
  "node-online",
52828
+ "node-restarting",
52409
52829
  "node-inference-unavailable"
52410
52830
  ]
52411
52831
  },
@@ -52427,6 +52847,7 @@ var STATE_SUMMARY_SECTION_VARS = [
52427
52847
  example: "server 1.2.377 → 1.2.378",
52428
52848
  kinds: [
52429
52849
  "server-update-available",
52850
+ "node-updating",
52430
52851
  "server-updated",
52431
52852
  "wrapper-update-available"
52432
52853
  ]
@@ -52459,7 +52880,7 @@ var STATE_SUMMARY_VARS = [
52459
52880
  {
52460
52881
  name: "summarySection",
52461
52882
  label: "Summary: this section",
52462
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
52883
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
52463
52884
  example: "Batterie scariche",
52464
52885
  group: "system",
52465
52886
  families: ["rule"],