@camstack/addon-provider-dreame 0.2.126 → 0.2.128

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 +698 -471
  2. package/dist/addon.mjs +698 -471
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -52899,7 +52899,7 @@ var DreameCameraStream = class extends TypedEmitter {
52899
52899
  }
52900
52900
  };
52901
52901
  //#endregion
52902
- //#region ../types/dist/event-category-BGmz_oxW.mjs
52902
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
52903
52903
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
52904
52904
  EventCategory["SystemBoot"] = "system.boot";
52905
52905
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -53400,15 +53400,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
53400
53400
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
53401
53401
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
53402
53402
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
53403
- /**
53404
- * Per-agent hwaccel preference changed (user override set, cleared, or
53405
- * re-probed). Observability event — decoders pull the current pref at
53406
- * `createSession`, so running sessions keep their current backend until
53407
- * they rotate naturally (camera add/remove, stream restart). Future
53408
- * work can wire a listener in stream-broker that force-rotates live
53409
- * sessions; for now this event powers logs + admin-UI toast feedback.
53410
- */
53411
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
53412
53403
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
53413
53404
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
53414
53405
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -58279,7 +58270,7 @@ var ZodIssueCode = {
58279
58270
  var ZodFirstPartyTypeKind;
58280
58271
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
58281
58272
  //#endregion
58282
- //#region ../types/dist/sleep-C16NCZR2.mjs
58273
+ //#region ../types/dist/sleep-BNeXenvr.mjs
58283
58274
  /**
58284
58275
  * The audio chunk plane's byte format, and the ONE expansion from a coded
58285
58276
  * window to float samples (D455).
@@ -59645,32 +59636,12 @@ object({
59645
59636
  audioCodec: string().optional(),
59646
59637
  metadata: record(string(), unknown()).readonly().optional()
59647
59638
  });
59648
- var EncodedPacketSchema = object({
59649
- type: _enum(["video", "audio"]),
59650
- data: _instanceof(Uint8Array),
59651
- pts: number(),
59652
- dts: number(),
59653
- keyframe: boolean(),
59654
- codec: string()
59655
- });
59656
- var DecodedFrameSchema = object({
59657
- data: _instanceof(Uint8Array),
59658
- width: number(),
59659
- height: number(),
59660
- format: _enum([
59661
- "jpeg",
59662
- "rgb",
59663
- "bgr",
59664
- "yuv420",
59665
- "gray"
59666
- ]),
59667
- timestamp: number()
59668
- });
59669
59639
  /**
59670
59640
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
59671
59641
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
59672
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
59673
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
59642
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
59643
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
59644
+ * over tRPC / Moleculer.
59674
59645
  *
59675
59646
  * The `satisfies` assertion below pins this schema to the interface: if a
59676
59647
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -59696,50 +59667,6 @@ var FrameHandleSchema = object({
59696
59667
  slotCount: number().int().positive()
59697
59668
  });
59698
59669
  /**
59699
- * Pixel format a frame-handle subscriber can request from the broker
59700
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
59701
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
59702
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
59703
- * payload, and no decoded-frame consumer requests it over the shm plane.
59704
- */
59705
- var FrameHandleFormatSchema = _enum([
59706
- "rgb",
59707
- "bgr",
59708
- "yuv420",
59709
- "gray"
59710
- ]);
59711
- /**
59712
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
59713
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
59714
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
59715
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
59716
- * they asked for with no broker-side conversion.
59717
- */
59718
- var SubscribeFramesInputSchema = object({
59719
- brokerId: string(),
59720
- format: FrameHandleFormatSchema,
59721
- /**
59722
- * Optional reader-side cadence hint in frames per second. The broker does
59723
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
59724
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
59725
- * the consumer can pace its own `pullFrameHandles` polling.
59726
- */
59727
- maxFps: number().positive().optional(),
59728
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
59729
- tag: string().optional()
59730
- });
59731
- /**
59732
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
59733
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
59734
- * `FrameHandle` to a `FrameRingReader`.
59735
- */
59736
- var SubscribeFramesResultSchema = object({
59737
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
59738
- subscriptionId: string(),
59739
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
59740
- maxFps: number().nonnegative()
59741
- });
59742
- /**
59743
59670
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
59744
59671
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
59745
59672
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -59747,8 +59674,8 @@ var SubscribeFramesResultSchema = object({
59747
59674
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
59748
59675
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
59749
59676
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
59750
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
59751
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
59677
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
59678
+ * it.
59752
59679
  */
59753
59680
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
59754
59681
  var DecodedAudioChunkSchema = object({
@@ -59766,11 +59693,10 @@ var DecodedAudioChunkSchema = object({
59766
59693
  format: AudioChunkFormatSchema.optional()
59767
59694
  });
59768
59695
  /**
59769
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
59770
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
59771
- * asks the broker for the decoded audio-chunk stream of one broker; the
59772
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
59773
- * `pullAudioChunks`.
59696
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
59697
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
59698
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
59699
+ * the consumer drains via `pullAudioChunks`.
59774
59700
  */
59775
59701
  var SubscribeAudioChunksInputSchema = object({
59776
59702
  brokerId: string(),
@@ -59801,9 +59727,7 @@ var BrokerStatsSchema = object({
59801
59727
  "stopped"
59802
59728
  ]),
59803
59729
  inputFps: number(),
59804
- decodeFps: number(),
59805
59730
  encodedSubscribers: number(),
59806
- decodedSubscribers: number(),
59807
59731
  uptimeMs: number(),
59808
59732
  bitrateKbps: number(),
59809
59733
  idrIntervalMs: number(),
@@ -59816,14 +59740,6 @@ var BrokerStatsSchema = object({
59816
59740
  preBufferMs: number(),
59817
59741
  preBufferPackets: number(),
59818
59742
  /**
59819
- * Moleculer node id of the decoder provider currently servicing this
59820
- * stream's decoded subscribers. `null` until the deferred decoder is
59821
- * created (no decoded clients yet, or codec not detected). Surfaces the
59822
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
59823
- * a separate cap call per broker.
59824
- */
59825
- decoderNodeId: string().nullable(),
59826
- /**
59827
59743
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
59828
59744
  * when the stream has no audio track or the broker is in cold start.
59829
59745
  * `supported = false` means the codec was detected but the local
@@ -63159,70 +63075,6 @@ var StorageLocationDeclarationSchema = object({
63159
63075
  "backup"
63160
63076
  ]).optional()
63161
63077
  });
63162
- var DecoderStatsSchema = object({
63163
- inputFps: number(),
63164
- outputFps: number(),
63165
- avgDecodeTimeMs: number(),
63166
- droppedFrames: number(),
63167
- /**
63168
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
63169
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
63170
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
63171
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
63172
- */
63173
- lagMs: number().optional(),
63174
- effectiveFps: number().optional(),
63175
- adaptiveFps: number().optional()
63176
- });
63177
- var DecoderSessionConfigSchema = object({
63178
- codec: string(),
63179
- maxFps: number().default(0),
63180
- outputFormat: _enum([
63181
- "jpeg",
63182
- "rgb",
63183
- "bgr",
63184
- "yuv420",
63185
- "gray"
63186
- ]).default("jpeg"),
63187
- scale: number().default(1),
63188
- width: number().optional(),
63189
- height: number().optional(),
63190
- /**
63191
- * Identifier of the camera this decoder session serves. Optional
63192
- * because the cap is generic (any caller could request decode), but
63193
- * stream-broker passes it so decoder logs include `deviceId` for
63194
- * per-camera filtering when diagnosing failures (e.g. node-av
63195
- * sendPacket errors on a single hung camera).
63196
- */
63197
- deviceId: number().int().nonnegative().optional(),
63198
- /**
63199
- * Free-form tag for log scoping. Stream-broker uses
63200
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
63201
- * on every line so `grep tag=broker:5/high` filters one camera
63202
- * profile cleanly.
63203
- */
63204
- tag: string().optional(),
63205
- /**
63206
- * Where the session delivers decoded frames (Phase 5 / D9):
63207
- *
63208
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
63209
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
63210
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
63211
- * into an OS shared-memory ring and drained as zero-pixel
63212
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
63213
- * other — `pullFrames` returns nothing for an `'shm'` session and
63214
- * `pullHandles` returns nothing for a `'callback'` session.
63215
- */
63216
- frameSink: _enum(["callback", "shm"]).default("callback"),
63217
- /**
63218
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
63219
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
63220
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
63221
- * stream-broker's `streamingDebug` gate — off by default so production logs
63222
- * stay quiet and the emit path pays zero per-frame cost when disabled.
63223
- */
63224
- debug: boolean().optional()
63225
- });
63226
63078
  /**
63227
63079
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
63228
63080
  * an addon declares its channels in.
@@ -63373,7 +63225,18 @@ var LABEL_SUPPLY_STEP_IDS = [
63373
63225
  ];
63374
63226
  /** Steps whose box a root detection can BE. */
63375
63227
  var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
63376
- [...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
63228
+ /**
63229
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
63230
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
63231
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
63232
+ * no camera tree carries.)
63233
+ */
63234
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
63235
+ [
63236
+ ...LABEL_SUPPLY_STEP_IDS,
63237
+ ...CROP_SUPPLY_STEP_IDS,
63238
+ ...MASK_SUPPLY_STEP_IDS
63239
+ ];
63377
63240
  var MODEL_FORMATS = [
63378
63241
  "onnx",
63379
63242
  "coreml",
@@ -63402,7 +63265,53 @@ var ModelFormatEntrySchema = object({
63402
63265
  /** Multi-file payload (directory members or sibling files). */
63403
63266
  files: array(string()).readonly().optional(),
63404
63267
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
63405
- runtimes: array(_enum(["python"])).readonly().optional()
63268
+ runtimes: array(_enum(["python"])).readonly().optional(),
63269
+ /**
63270
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
63271
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
63272
+ * weight file) comes from the downloader's generated table, kept in step
63273
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
63274
+ * node records the revision it downloaded next to the file
63275
+ * (`<file>.revision`); a copy with no record or a different one is stale
63276
+ * unless its weight file hashes to the revision, and a stale copy is
63277
+ * downloaded again, the old one serving until the new one is complete. No
63278
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
63279
+ */
63280
+ revision: string().min(1).optional()
63281
+ });
63282
+ /**
63283
+ * What a node holds for one (model, format) (D746). `current` is a complete
63284
+ * copy at its catalog revision — exactly what `downloaded: true` means.
63285
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
63286
+ * no or a different revision record, or a missing sibling. `missing` is no
63287
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
63288
+ * reclaimable bytes and a copy about to be replaced.
63289
+ */
63290
+ var ModelOnDiskStateSchema = _enum([
63291
+ "current",
63292
+ "stale",
63293
+ "missing"
63294
+ ]);
63295
+ /**
63296
+ * The numeric precision of one format's BUILD (D746) — reported only when the
63297
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
63298
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
63299
+ */
63300
+ var ModelFormatPrecisionSchema = _enum([
63301
+ "fp32",
63302
+ "fp16",
63303
+ "int8"
63304
+ ]);
63305
+ /**
63306
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
63307
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
63308
+ * them omits them, and a reader falls back to `downloaded`.
63309
+ */
63310
+ var PipelineModelFormatStatusSchema = object({
63311
+ downloaded: boolean(),
63312
+ sizeMB: number(),
63313
+ onDisk: ModelOnDiskStateSchema.optional(),
63314
+ precision: ModelFormatPrecisionSchema.optional()
63406
63315
  });
63407
63316
  /**
63408
63317
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -63516,25 +63425,36 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
63516
63425
  * - `crop`: the root draws the box the step would have found (`license_plate`
63517
63426
  * for plate-detection, `face` for face-detection). The box becomes a detail
63518
63427
  * child of the `parentMacro` detection that contains it — never a track.
63428
+ * - `mask`: the root's decode emits an instance mask with every detection (a
63429
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
63430
+ * detection in the shape that step produces. Derived from the model's
63431
+ * postprocessor on read, never stored by an import.
63519
63432
  */
63520
- var RootStepSupplySchema = discriminatedUnion("kind", [object({
63521
- kind: literal("label"),
63522
- stepId: _enum(LABEL_SUPPLY_STEP_IDS),
63523
- labelToEffect: record(string(), string()),
63524
- uncovered: array(string()).readonly()
63525
- }), object({
63526
- kind: literal("crop"),
63527
- stepId: _enum(CROP_SUPPLY_STEP_IDS),
63528
- rootLabels: array(string()).readonly(),
63529
- parentMacro: _enum(["vehicle", "person"]),
63530
- childClass: _enum(["plate", "face"]),
63531
- /**
63532
- * The root's smaller input side, stamped on read by `rootSuppliesOf` from
63533
- * the model entry — what a step's `minRootInputPx` gate judges. Never
63534
- * stored by an import.
63535
- */
63536
- rootInputPx: number().int().positive().optional()
63537
- })]);
63433
+ var RootStepSupplySchema = discriminatedUnion("kind", [
63434
+ object({
63435
+ kind: literal("label"),
63436
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
63437
+ labelToEffect: record(string(), string()),
63438
+ uncovered: array(string()).readonly()
63439
+ }),
63440
+ object({
63441
+ kind: literal("crop"),
63442
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
63443
+ rootLabels: array(string()).readonly(),
63444
+ parentMacro: _enum(["vehicle", "person"]),
63445
+ childClass: _enum(["plate", "face"]),
63446
+ /**
63447
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
63448
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
63449
+ * stored by an import.
63450
+ */
63451
+ rootInputPx: number().int().positive().optional()
63452
+ }),
63453
+ object({
63454
+ kind: literal("mask"),
63455
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
63456
+ })
63457
+ ]);
63538
63458
  var ModelCatalogEntrySchema = object({
63539
63459
  id: string(),
63540
63460
  name: string(),
@@ -63600,6 +63520,35 @@ var ModelCatalogEntrySchema = object({
63600
63520
  */
63601
63521
  defaultConfidence: number().min(0).max(1).optional(),
63602
63522
  /**
63523
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
63524
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
63525
+ * absent here runs at the step slider's global default. The same row shape
63526
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
63527
+ * a measured table is copied in as-is. An operator override is bound to the
63528
+ * model it was made for and does not survive a model change (D738). A custom
63529
+ * / imported model may declare it; without it, the global defaults apply.
63530
+ */
63531
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
63532
+ /**
63533
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
63534
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
63535
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
63536
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
63537
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
63538
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
63539
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
63540
+ */
63541
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
63542
+ /**
63543
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
63544
+ * minimum DETECTION score from which this root's own fine label (species,
63545
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
63546
+ * keeps its macro class without the fine label. `1` = never take it from
63547
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
63548
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
63549
+ */
63550
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
63551
+ /**
63603
63552
  * When true, the executor produces a landmark-aligned crop (similarity warp
63604
63553
  * onto the canonical template) before this step runs, instead of a plain
63605
63554
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -65272,13 +65221,6 @@ var BrokerRtspClientSchema = object({
65272
65221
  lastRtpAt: number(),
65273
65222
  bytesSent: number()
65274
65223
  });
65275
- var BrokerDecodedClientSchema = object({
65276
- tag: string(),
65277
- subscribedAt: number(),
65278
- maxFps: number(),
65279
- framesDelivered: number(),
65280
- framesDropped: number()
65281
- });
65282
65224
  var BrokerAudioClientSchema = object({
65283
65225
  tag: string(),
65284
65226
  subscribedAt: number(),
@@ -65370,7 +65312,6 @@ var BrokerEncodedClientSchema = object({
65370
65312
  });
65371
65313
  var BrokerClientsSchema = object({
65372
65314
  rtsp: array(BrokerRtspClientSchema).readonly(),
65373
- decoded: array(BrokerDecodedClientSchema).readonly(),
65374
65315
  audio: array(BrokerAudioClientSchema).readonly(),
65375
65316
  encoded: array(BrokerEncodedClientSchema).readonly(),
65376
65317
  pipeClients: number(),
@@ -65739,11 +65680,7 @@ method(object({
65739
65680
  auth: "admin"
65740
65681
  }), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
65741
65682
  brokerId: string(),
65742
- channel: _enum([
65743
- "rtsp",
65744
- "decoded",
65745
- "audio"
65746
- ]),
65683
+ channel: _enum(["rtsp", "audio"]),
65747
65684
  handle: string()
65748
65685
  }), object({ killed: boolean() }), {
65749
65686
  kind: "mutation",
@@ -65778,10 +65715,7 @@ method(object({
65778
65715
  }), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
65779
65716
  subscriptionId: string(),
65780
65717
  maxCount: number().int().positive().default(8)
65781
- }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }), method(object({
65782
- subscriptionId: string(),
65783
- maxCount: number().int().positive().default(4)
65784
- }), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
65718
+ }), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
65785
65719
  brokerId: string(),
65786
65720
  seconds: number().min(0).max(30)
65787
65721
  }), _void(), {
@@ -67040,54 +66974,12 @@ id: union([string(), number()]) }), {
67040
66974
  kind: "mutation",
67041
66975
  auth: "admin"
67042
66976
  });
67043
- /**
67044
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
67045
- * exposed via `decoder.getShmStats` so downstream consumers can
67046
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
67047
- */
67048
- var ShmRingStatsSchema = object({
67049
- sessionId: string(),
67050
- slotCount: number().int(),
67051
- slotByteLength: number().int(),
67052
- segmentBytes: number().int(),
67053
- budgetMb: number().int(),
67054
- framesWritten: number().int(),
67055
- getFrameHits: number().int(),
67056
- getFrameMisses: number().int()
67057
- });
67058
- method(object({ codec: string() }), boolean()), method(_void(), object({
66977
+ method(_void(), object({
67059
66978
  id: string(),
67060
66979
  name: string(),
67061
- isPullMode: boolean().optional(),
67062
- priority: number().optional(),
67063
66980
  hwaccel: string().optional(),
67064
66981
  probedBestHwaccel: string().optional()
67065
- })), method(DecoderSessionConfigSchema, object({
67066
- sessionId: string(),
67067
- nodeId: string()
67068
- })), method(object({ sessionId: string() }), _void()), method(object({
67069
- sessionId: string(),
67070
- packet: EncodedPacketSchema
67071
- }), _void()), method(object({
67072
- sessionId: string(),
67073
- url: string()
67074
- }), _void()), method(object({
67075
- sessionId: string(),
67076
- maxCount: number().default(1),
67077
- waitMs: number().optional()
67078
- }), array(DecodedFrameSchema)), method(object({
67079
- sessionId: string(),
67080
- maxCount: number().default(1),
67081
- waitMs: number().optional()
67082
- }), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
67083
- sessionId: string(),
67084
- config: DecoderSessionConfigSchema.partial()
67085
- }), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
67086
- sessionId: string(),
67087
- codec: string(),
67088
- outputFormat: string(),
67089
- createdAtMs: number()
67090
- })).readonly()), method(_void(), object({ backend: string() }), {
66982
+ })), method(_void(), object({ backend: string() }), {
67091
66983
  kind: "mutation",
67092
66984
  auth: "admin"
67093
66985
  });
@@ -74362,8 +74254,8 @@ Object.freeze(Object.fromEntries([{
74362
74254
  var CLUSTER_STEP_SETTING_FIELDS = [{
74363
74255
  stepId: "face-embedding",
74364
74256
  key: "minLandmarkFaceSize",
74365
- label: "Min face size for recognition (detection px)",
74366
- 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.",
74257
+ label: "Min face size to embed (detection-frame px)",
74258
+ 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.",
74367
74259
  type: "slider",
74368
74260
  min: 0,
74369
74261
  max: 64,
@@ -76358,7 +76250,7 @@ var FrameRefSchema = object({
76358
76250
  timestamp: number(),
76359
76251
  capturedAt: number().optional()
76360
76252
  });
76361
- var ModelFormatSchema$1 = _enum([
76253
+ var ModelFormatSchema$2 = _enum([
76362
76254
  "onnx",
76363
76255
  "coreml",
76364
76256
  "openvino",
@@ -76376,7 +76268,7 @@ var PipelineSlotSchema = _enum([
76376
76268
  var PipelineEngineChoiceSchema = object({
76377
76269
  runtime: literal("python"),
76378
76270
  backend: string(),
76379
- format: ModelFormatSchema$1,
76271
+ format: ModelFormatSchema$2,
76380
76272
  device: string().optional()
76381
76273
  });
76382
76274
  /**
@@ -76415,28 +76307,10 @@ var PipelineDefaultStepSchema = lazy(() => object({
76415
76307
  group: string().optional(),
76416
76308
  settings: record(string(), unknown()).optional()
76417
76309
  }));
76418
- var PipelineTemplateStepSchema = lazy(() => object({
76419
- addonId: string(),
76420
- enabled: boolean(),
76421
- modelId: string(),
76422
- children: array(PipelineTemplateStepSchema).readonly(),
76423
- settings: record(string(), unknown()).optional()
76424
- }));
76425
- var PipelineTemplateSchema$1 = object({
76426
- id: string(),
76427
- name: string(),
76428
- createdAt: string(),
76429
- updatedAt: string(),
76430
- engine: PipelineEngineChoiceSchema,
76431
- steps: array(PipelineTemplateStepSchema).readonly()
76432
- });
76433
76310
  var PipelineModelOptionSchema = object({
76434
76311
  id: string(),
76435
76312
  name: string(),
76436
- formats: record(string(), object({
76437
- downloaded: boolean(),
76438
- sizeMB: number()
76439
- })),
76313
+ formats: record(string(), PipelineModelFormatStatusSchema),
76440
76314
  group: ModelVariantGroupSchema.optional(),
76441
76315
  legacy: boolean().optional(),
76442
76316
  provider: ModelProviderIdSchema.optional(),
@@ -76603,6 +76477,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
76603
76477
  }), {
76604
76478
  kind: "mutation",
76605
76479
  auth: "admin"
76480
+ }), method(object({
76481
+ nodeId: string(),
76482
+ deviceIds: array(number()).readonly().optional(),
76483
+ dryRun: boolean()
76484
+ }), object({
76485
+ entries: array(object({
76486
+ deviceId: number(),
76487
+ keys: array(string()).readonly()
76488
+ })).readonly(),
76489
+ refused: array(object({
76490
+ deviceId: number(),
76491
+ reason: string()
76492
+ })).readonly()
76493
+ }), {
76494
+ kind: "mutation",
76495
+ auth: "admin"
76606
76496
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
76607
76497
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
76608
76498
  deviceKey: string(),
@@ -76628,22 +76518,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
76628
76518
  }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
76629
76519
  steps: array(PipelineStepInputSchema),
76630
76520
  deviceKey: string().optional()
76631
- }), PipelineValidationResultSchema), method(_void(), array(PipelineTemplateSchema$1).readonly()), method(object({
76632
- name: string(),
76633
- steps: array(PipelineTemplateStepSchema).readonly(),
76634
- engine: PipelineEngineChoiceSchema
76635
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
76636
- id: string(),
76637
- name: string().optional(),
76638
- steps: array(PipelineTemplateStepSchema).readonly().optional()
76639
- }), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
76521
+ }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
76640
76522
  addonId: string(),
76641
76523
  modelId: string(),
76642
- format: ModelFormatSchema$1
76524
+ format: ModelFormatSchema$2
76643
76525
  }), DownloadModelResultSchema, { kind: "mutation" }), method(object({
76644
76526
  addonId: string(),
76645
76527
  modelId: string(),
76646
- format: ModelFormatSchema$1
76528
+ format: ModelFormatSchema$2
76647
76529
  }), object({ success: literal(true) }), { kind: "mutation" }), method(object({
76648
76530
  steps: array(PipelineStepInputSchema).min(1),
76649
76531
  frame: FrameInputSchema.optional(),
@@ -76800,6 +76682,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
76800
76682
  filename: string().optional(),
76801
76683
  settings: record(string(), unknown()).optional()
76802
76684
  }), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
76685
+ /**
76686
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
76687
+ * `pipeline-orchestrator` cap. The recommender's own types
76688
+ * (`recommend.ts`) are the TS face of the same data; these
76689
+ * schemas are what crosses the cap boundary.
76690
+ */
76691
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
76692
+ /** The operator's range for it. */
76693
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
76694
+ min: 1,
76695
+ max: 8
76696
+ };
76697
+ var HardwareClassIdSchema = _enum([
76698
+ "intel-core-ultra",
76699
+ "intel-n-series",
76700
+ "apple-m-base",
76701
+ "apple-m-pro",
76702
+ "unknown"
76703
+ ]);
76704
+ var AcceleratorKindSchema = _enum([
76705
+ "intel-npu",
76706
+ "intel-igpu",
76707
+ "x86-cpu",
76708
+ "arm-cpu",
76709
+ "apple-ane",
76710
+ "coral"
76711
+ ]);
76712
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
76713
+ object({
76714
+ kind: literal("capacity"),
76715
+ sessions: number(),
76716
+ minSessions: number()
76717
+ }),
76718
+ object({
76719
+ kind: literal("tie-faster"),
76720
+ over: string(),
76721
+ recallDelta: number()
76722
+ }),
76723
+ object({
76724
+ kind: literal("stepped-down"),
76725
+ from: string(),
76726
+ to: string(),
76727
+ limitedBy: string()
76728
+ }),
76729
+ object({
76730
+ kind: literal("no-fit-lightest"),
76731
+ sessions: number(),
76732
+ minSessions: number()
76733
+ }),
76734
+ object({
76735
+ kind: literal("derived-latency"),
76736
+ modelId: string()
76737
+ }),
76738
+ object({ kind: literal("cpu-device") }),
76739
+ object({ kind: literal("coral-untouched") }),
76740
+ object({ kind: literal("device-disabled") }),
76741
+ object({ kind: literal("device-unavailable") }),
76742
+ object({ kind: literal("node-offline") }),
76743
+ object({ kind: literal("no-hardware-facts") }),
76744
+ object({
76745
+ kind: literal("no-measured-data"),
76746
+ hardwareClass: HardwareClassIdSchema
76747
+ }),
76748
+ object({
76749
+ kind: literal("no-family-build"),
76750
+ format: ModelFormatSchema$1
76751
+ })
76752
+ ]);
76753
+ var DeviceModelChoiceSchema = object({
76754
+ modelId: string(),
76755
+ p50Ms: number(),
76756
+ fps: number(),
76757
+ measured: boolean(),
76758
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
76759
+ capacitySessions: number(),
76760
+ personRecall: number()
76761
+ });
76762
+ var DeviceRecommendationSchema = object({
76763
+ deviceKey: string(),
76764
+ accelerator: AcceleratorKindSchema.nullable(),
76765
+ enabled: boolean(),
76766
+ available: boolean(),
76767
+ chosen: DeviceModelChoiceSchema.nullable(),
76768
+ reasons: array(RecommendationReasonSchema).readonly()
76769
+ });
76770
+ var NodeRecommendationSchema = object({
76771
+ nodeId: string(),
76772
+ reachable: boolean(),
76773
+ hardwareClass: HardwareClassIdSchema.nullable(),
76774
+ cpuModel: string().nullable(),
76775
+ skipped: boolean(),
76776
+ acceleratorModelId: string().nullable(),
76777
+ devices: array(DeviceRecommendationSchema).readonly(),
76778
+ reasons: array(RecommendationReasonSchema).readonly()
76779
+ });
76780
+ var ModelPinChangeSchema = object({
76781
+ stepId: string(),
76782
+ before: string().nullable(),
76783
+ after: string().nullable()
76784
+ });
76785
+ var NodeDeviceChangeSchema = object({
76786
+ nodeId: string(),
76787
+ deviceKey: string(),
76788
+ madeExplicit: boolean(),
76789
+ modelPins: array(ModelPinChangeSchema).readonly(),
76790
+ thresholds: array(object({
76791
+ stepId: string(),
76792
+ keys: array(string()).readonly()
76793
+ })).readonly()
76794
+ });
76795
+ var CameraOverrideClearSchema = object({
76796
+ deviceId: number(),
76797
+ source: _enum(["step-override", "wholesale"]),
76798
+ nodeId: string(),
76799
+ deviceKey: string().nullable(),
76800
+ stepId: string(),
76801
+ modelIdBefore: string().nullable(),
76802
+ keys: array(string()).readonly()
76803
+ });
76804
+ var DetectorStoreClearSchema = object({
76805
+ deviceId: number(),
76806
+ keys: array(string()).readonly()
76807
+ });
76808
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
76809
+ object({
76810
+ kind: literal("detector-store-cluster-wide"),
76811
+ skippedNodes: array(string()).readonly()
76812
+ }),
76813
+ object({
76814
+ kind: literal("detector-store-unreadable"),
76815
+ error: string()
76816
+ }),
76817
+ object({
76818
+ kind: literal("coral-enabled"),
76819
+ nodeId: string(),
76820
+ deviceKey: string()
76821
+ })
76822
+ ]);
76823
+ var AutoTuneOptionsSchema = object({
76824
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
76825
+ headroom: number().min(.3).max(.5).default(.4),
76826
+ /**
76827
+ * The least number of parallel sessions every device must sustain at the
76828
+ * camera rate with the headroom kept free (D755). The most accurate model
76829
+ * that reaches it wins.
76830
+ */
76831
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
76832
+ });
76833
+ var AutoTunePlanSchema = object({
76834
+ /** Hash of everything the apply will write — the apply refuses a different one. */
76835
+ planHash: string(),
76836
+ family: literal("yolov9"),
76837
+ headroom: number(),
76838
+ minSessionsPerDevice: number(),
76839
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
76840
+ cameraFps: number(),
76841
+ generatedAt: number(),
76842
+ nodes: array(NodeRecommendationSchema).readonly(),
76843
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
76844
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
76845
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
76846
+ warnings: array(AutoTuneWarningSchema).readonly()
76847
+ });
76848
+ var AutoTuneApplyInputSchema = object({
76849
+ planHash: string(),
76850
+ headroom: number().min(.3).max(.5).default(.4),
76851
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
76852
+ });
76853
+ var AutoTunePhaseResultSchema = object({
76854
+ phase: _enum([
76855
+ "download",
76856
+ "camera-overrides",
76857
+ "detector-thresholds",
76858
+ "node-models",
76859
+ "redispatch"
76860
+ ]),
76861
+ ok: boolean(),
76862
+ detail: string()
76863
+ });
76864
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
76865
+ object({
76866
+ kind: literal("applied"),
76867
+ planHash: string(),
76868
+ phases: array(AutoTunePhaseResultSchema).readonly()
76869
+ }),
76870
+ object({
76871
+ kind: literal("aborted"),
76872
+ phases: array(AutoTunePhaseResultSchema).readonly()
76873
+ }),
76874
+ object({
76875
+ kind: literal("stale"),
76876
+ plan: AutoTunePlanSchema
76877
+ }),
76878
+ object({
76879
+ kind: literal("refused"),
76880
+ reason: _enum(["apply-in-progress"])
76881
+ })
76882
+ ]);
76883
+ /**
76884
+ * Wire shapes of the Load balancing surface (D748): the session placement
76885
+ * policy, the atomic share write, the observed placement statistics, the
76886
+ * hardware share suggestion and the stale device pins.
76887
+ */
76888
+ /**
76889
+ * How a new detection session picks its node and device.
76890
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
76891
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
76892
+ * weight only bites once a node already holds a session.
76893
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
76894
+ * full or drowning node yields to a free one (D748).
76895
+ */
76896
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
76897
+ var LoadBalancingSharesInputSchema = object({
76898
+ /** nodeId → share (> 0). A node left out keeps its weight. */
76899
+ nodes: record(string(), number().positive()).default({}),
76900
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
76901
+ devices: record(string(), record(string(), number().positive())).default({})
76902
+ });
76903
+ var PlacementStatsInputSchema = object({
76904
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
76905
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
76906
+ var PlacementDeviceStatsSchema = object({
76907
+ deviceKey: string(),
76908
+ /** Sessions running on this device now. */
76909
+ sessionsNow: number(),
76910
+ /** Sessions started on this device inside the window. */
76911
+ sessionsStarted: number(),
76912
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
76913
+ observedShare: number().nullable()
76914
+ });
76915
+ var PlacementNodeStatsSchema = object({
76916
+ nodeId: string(),
76917
+ sessionsNow: number(),
76918
+ sessionsStarted: number(),
76919
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
76920
+ observedShare: number().nullable(),
76921
+ /** Most sessions this node ran at once inside the window. */
76922
+ peakSessions: number(),
76923
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
76924
+ yieldsAway: number(),
76925
+ devices: array(PlacementDeviceStatsSchema).readonly()
76926
+ });
76927
+ /** A camera's device pin that the session path cannot honour. */
76928
+ var StaleDevicePinSchema = object({
76929
+ deviceId: number(),
76930
+ deviceKey: string(),
76931
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
76932
+ reason: _enum(["disabled", "absent"])
76933
+ });
76934
+ var PlacementStatsSchema = object({
76935
+ policy: SessionPlacementPolicySchema,
76936
+ windowMs: number(),
76937
+ /** How much of the window was actually observed (the hub keeps it in memory). */
76938
+ observedForMs: number(),
76939
+ sessionsNow: number(),
76940
+ /** Most parallel sessions across the cluster inside the window. */
76941
+ clusterPeakSessions: number(),
76942
+ nodes: array(PlacementNodeStatsSchema).readonly(),
76943
+ stalePins: array(StaleDevicePinSchema).readonly()
76944
+ });
76945
+ /**
76946
+ * Where an automatic share's capacity comes from (D755).
76947
+ * - `hardware` — the static capacity of each device at its Auto tune model:
76948
+ * the measured latency table for the node's hardware class.
76949
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
76950
+ * A node with no results falls back to `hardware`, and says so.
76951
+ */
76952
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
76953
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
76954
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
76955
+ var SuggestSharesInputSchema = object({
76956
+ headroom: number().min(.3).max(.5).default(.4),
76957
+ /** Default `hardware`. */
76958
+ source: CapacitySourceSchema.default("hardware")
76959
+ });
76960
+ var SuggestedDeviceShareSchema = object({
76961
+ deviceKey: string(),
76962
+ /** Share of the node (0–100, rounded). */
76963
+ share: number(),
76964
+ modelId: string().nullable(),
76965
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
76966
+ fps: number().nullable(),
76967
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
76968
+ measured: boolean(),
76969
+ /**
76970
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
76971
+ * or the benchmark's measured max sessions. Never enforced.
76972
+ */
76973
+ suggestedMaxSessions: number().nullable()
76974
+ });
76975
+ var SuggestedNodeShareSchema = object({
76976
+ nodeId: string(),
76977
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
76978
+ share: number().nullable(),
76979
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
76980
+ capacitySessions: number(),
76981
+ devices: array(SuggestedDeviceShareSchema).readonly(),
76982
+ skippedReason: string().nullable(),
76983
+ /** What this node's capacity was read from; null when the node is skipped. */
76984
+ capacitySource: CapacitySourceSchema.nullable(),
76985
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
76986
+ capacityFallback: CapacityFallbackSchema.nullable()
76987
+ });
76988
+ var SuggestSharesResultSchema = object({
76989
+ headroom: number(),
76990
+ /** The source asked for; each node says what it actually used. */
76991
+ source: CapacitySourceSchema,
76992
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
76993
+ cameraFps: number(),
76994
+ /** The Auto tune capacity floor the models were picked at. */
76995
+ minSessionsPerDevice: number(),
76996
+ nodes: array(SuggestedNodeShareSchema).readonly()
76997
+ });
76998
+ /**
76999
+ * Where the node and device shares come from (D750, D755).
77000
+ * - `hardware` (default) — computed by the system from each node's static
77001
+ * capacity (its accelerators at their Auto tune models, from the measured
77002
+ * latency table), recomputed whenever a node or device joins, leaves, is
77003
+ * switched on or off, or changes model. No load input.
77004
+ * - `benchmark` — the same, from each node's measured capacity (node
77005
+ * benchmark results); a node without results falls back to `hardware`.
77006
+ * - `manual` — the operator's stored sliders.
77007
+ * Either way a node or device that cannot take sessions gives its share to
77008
+ * the others in proportion; the stored values are never rewritten for that.
77009
+ */
77010
+ var ShareSourceSchema = _enum([
77011
+ "hardware",
77012
+ "benchmark",
77013
+ "manual"
77014
+ ]);
77015
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
77016
+ object({
77017
+ nodes: record(string(), number()),
77018
+ devices: record(string(), record(string(), number()))
77019
+ });
77020
+ var EffectiveDeviceShareSchema = object({
77021
+ deviceKey: string(),
77022
+ /** Can take sessions now (enabled, available, can run the root). */
77023
+ eligible: boolean(),
77024
+ /** The share the source assigns, as a percentage of the node's devices. */
77025
+ configuredPct: number(),
77026
+ /** The share actually used, after an ineligible device's share went to the others. */
77027
+ effectivePct: number()
77028
+ });
77029
+ var EffectiveNodeShareSchema = object({
77030
+ nodeId: string(),
77031
+ eligible: boolean(),
77032
+ configuredPct: number(),
77033
+ effectivePct: number(),
77034
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
77035
+ capacitySource: CapacitySourceSchema.nullable(),
77036
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
77037
+ capacityFallback: CapacityFallbackSchema.nullable(),
77038
+ devices: array(EffectiveDeviceShareSchema).readonly()
77039
+ });
77040
+ var EffectiveSharesSchema = object({
77041
+ source: ShareSourceSchema,
77042
+ policy: SessionPlacementPolicySchema,
77043
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
77044
+ autoPending: boolean(),
77045
+ /** When the automatic shares were last computed (ms epoch); null = never. */
77046
+ computedAt: number().nullable(),
77047
+ /** What made the system recompute them last. */
77048
+ trigger: string().nullable(),
77049
+ nodes: array(EffectiveNodeShareSchema).readonly(),
77050
+ /** The relative weights the election reads (before eligibility). */
77051
+ nodeWeights: record(string(), number()),
77052
+ deviceWeights: record(string(), record(string(), number()))
77053
+ });
76803
77054
  object({
76804
77055
  activeCameras: number(),
76805
77056
  throttledCameras: number(),
@@ -77717,14 +77968,15 @@ var RunnerLocalLoadSchema = object({
77717
77968
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
77718
77969
  * this runner currently has attached cameras on, so the orchestrator's second
77719
77970
  * `balance()` pass (over a node's devices) weights on real per-pool session
77720
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
77721
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
77971
+ * counts. Empty on single-device / pre-multi-device runners. There is no
77972
+ * per-device queue depth: the inference pool's backlog has no accessor, and
77973
+ * a field that always read 0 was removed rather than shown as a measurement
77974
+ * (D762).
77722
77975
  */
77723
77976
  devices: array(object({
77724
77977
  deviceKey: string(),
77725
77978
  backend: string(),
77726
- attachedCameras: number(),
77727
- queueDepthTotal: number()
77979
+ attachedCameras: number()
77728
77980
  })).default([]),
77729
77981
  /** Hardware capability flags reported by this node. */
77730
77982
  hardware: object({
@@ -77938,14 +78190,6 @@ var CameraPipelineConfigSchema = object({
77938
78190
  settings: record(string(), unknown()).readonly().optional()
77939
78191
  }).nullable().optional()
77940
78192
  });
77941
- var PipelineTemplateSchema = object({
77942
- id: string(),
77943
- name: string(),
77944
- description: string().optional(),
77945
- config: CameraPipelineConfigSchema,
77946
- createdAt: string(),
77947
- updatedAt: string()
77948
- });
77949
78193
  var DeviceStepConfigSchema = object({
77950
78194
  modelId: string().optional(),
77951
78195
  settings: record(string(), unknown()).optional(),
@@ -78019,9 +78263,10 @@ var CameraStepOverridePatchSchema = object({
78019
78263
  modelId: string().optional(),
78020
78264
  settings: record(string(), unknown()).readonly().optional()
78021
78265
  });
78266
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
78022
78267
  var CameraPipelineSettingsSchema = object({
78023
- pinnedAgentNodeId: string().optional(),
78024
78268
  stepToggles: record(string(), boolean()).optional(),
78269
+ stepSettings: CameraStepSettingsSchema.optional(),
78025
78270
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
78026
78271
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
78027
78272
  });
@@ -78054,7 +78299,10 @@ var PipelineAssignmentSchema = object({
78054
78299
  });
78055
78300
  /**
78056
78301
  * Per-agent load summary surfaced to the load balancer + dashboards.
78057
- * Aggregated from each runner's `getLocalLoad` cap call.
78302
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
78303
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
78304
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
78305
+ * the default pool IS that device (D745); the balancer's census stays raw.
78058
78306
  */
78059
78307
  var AgentLoadSummarySchema = object({
78060
78308
  nodeId: string(),
@@ -78143,26 +78391,27 @@ var CameraBrokerStatusSchema = object({
78143
78391
  width: number(),
78144
78392
  height: number(),
78145
78393
  subscribers: number(),
78146
- inFps: number(),
78147
- outFps: number()
78394
+ /**
78395
+ * Encoded packets/s the broker receives from the camera. null when the
78396
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
78397
+ * There is no output rate: decoding runs in the session decode workers, not
78398
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
78399
+ * camera and is not served (D758).
78400
+ */
78401
+ inFps: number().nullable()
78148
78402
  })).readonly(),
78149
78403
  webrtcSessions: number(),
78150
78404
  rtspRestream: boolean()
78151
78405
  });
78152
- /** Shared-memory ring statistics within the decoder block. */
78153
- var CameraDecoderShmSchema = object({
78154
- framesWritten: number(),
78155
- getFrameHits: number(),
78156
- getFrameMisses: number(),
78157
- budgetMb: number()
78158
- });
78159
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
78160
- var CameraDecoderStatusSchema = object({
78161
- nodeId: string(),
78162
- formats: array(string()).readonly(),
78163
- sessionCount: number(),
78164
- shm: CameraDecoderShmSchema
78165
- });
78406
+ /**
78407
+ * Decoder block — WHERE decode runs (co-located with the detection node by
78408
+ * construction); null when the camera has no detection node. It carries no
78409
+ * frame counter: the shared-memory plane whose counters it used to serve is
78410
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
78411
+ * from `detection.actualFps` (frames delivered to and processed by the
78412
+ * detector), never from a counter nothing feeds.
78413
+ */
78414
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
78166
78415
  /** Motion block — null when motion detection is not active for this device. */
78167
78416
  var CameraMotionStatusSchema = object({
78168
78417
  enabled: boolean(),
@@ -78519,12 +78768,6 @@ method(object({
78519
78768
  }), object({ success: literal(true) }), {
78520
78769
  kind: "mutation",
78521
78770
  auth: "admin"
78522
- }), method(object({
78523
- agentNodeId: string(),
78524
- detectWeight: number().positive().nullable()
78525
- }), object({ success: literal(true) }), {
78526
- kind: "mutation",
78527
- auth: "admin"
78528
78771
  }), method(object({
78529
78772
  agentNodeId: string(),
78530
78773
  detect: boolean().nullable().optional(),
@@ -78566,6 +78809,15 @@ method(object({
78566
78809
  }), {
78567
78810
  kind: "mutation",
78568
78811
  auth: "admin"
78812
+ }), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
78813
+ kind: "mutation",
78814
+ auth: "admin"
78815
+ }), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
78816
+ kind: "mutation",
78817
+ auth: "admin"
78818
+ }), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
78819
+ kind: "mutation",
78820
+ auth: "admin"
78569
78821
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
78570
78822
  deviceId: number(),
78571
78823
  addonId: string(),
@@ -78582,6 +78834,13 @@ method(object({
78582
78834
  }), object({ success: literal(true) }), {
78583
78835
  kind: "mutation",
78584
78836
  auth: "admin"
78837
+ }), method(object({
78838
+ deviceId: number(),
78839
+ addonId: string(),
78840
+ settings: record(string(), unknown()).nullable()
78841
+ }), object({ success: literal(true) }), {
78842
+ kind: "mutation",
78843
+ auth: "admin"
78585
78844
  }), method(object({
78586
78845
  deviceId: number(),
78587
78846
  agentNodeId: string(),
@@ -78605,25 +78864,7 @@ method(object({
78605
78864
  }), method(_void(), DiskReconcileJobSchema, {
78606
78865
  kind: "mutation",
78607
78866
  auth: "admin"
78608
- }), method(_void(), DiskReconcileJobSchema, { auth: "admin" }), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
78609
- name: string(),
78610
- description: string().optional(),
78611
- config: CameraPipelineConfigSchema
78612
- }), PipelineTemplateSchema, {
78613
- kind: "mutation",
78614
- auth: "admin"
78615
- }), method(object({
78616
- id: string(),
78617
- name: string().optional(),
78618
- description: string().optional(),
78619
- config: CameraPipelineConfigSchema.optional()
78620
- }), PipelineTemplateSchema, {
78621
- kind: "mutation",
78622
- auth: "admin"
78623
- }), method(object({ id: string() }), object({ success: literal(true) }), {
78624
- kind: "mutation",
78625
- auth: "admin"
78626
- });
78867
+ }), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
78627
78868
  /**
78628
78869
  * Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
78629
78870
  * `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
@@ -80872,8 +81113,6 @@ var WebrtcStreamChoiceSchema = object({
80872
81113
  ]).nullable(),
80873
81114
  /** Input FPS from the camera (null for adaptive). */
80874
81115
  inputFps: number().nullable(),
80875
- /** Decoded FPS (null for adaptive). */
80876
- decodeFps: number().nullable(),
80877
81116
  /** Bitrate in kbps (null for adaptive). */
80878
81117
  bitrateKbps: number().nullable()
80879
81118
  });
@@ -81452,6 +81691,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
81452
81691
  var RestartAddonResultSchema = unknown();
81453
81692
  var InstallPackageResultSchema = unknown();
81454
81693
  var ReloadPackagesResultSchema = unknown();
81694
+ /**
81695
+ * What an uninstall did on ONE node.
81696
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
81697
+ * - `not-installed` — the node did not have it (nothing to do).
81698
+ * - `refused` — protected / bootstrap package; nothing touched.
81699
+ * - `failed` — attempted and did not complete; `error` says why.
81700
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
81701
+ * back-fill never returns the package, and the stale-addon sweep removes the
81702
+ * copy when the node registers again (only once the hub no longer has it).
81703
+ */
81704
+ var UninstallNodeOutcomeSchema = _enum([
81705
+ "uninstalled",
81706
+ "not-installed",
81707
+ "refused",
81708
+ "failed",
81709
+ "pending-reconnect"
81710
+ ]);
81711
+ var UninstallNodeResultSchema = object({
81712
+ nodeId: string(),
81713
+ outcome: UninstallNodeOutcomeSchema,
81714
+ error: string().optional(),
81715
+ addonIds: array(string()).readonly(),
81716
+ runnersStopped: array(string()).readonly(),
81717
+ warnings: array(string()).readonly()
81718
+ });
81719
+ var UninstallPackageResultSchema = object({
81720
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
81721
+ success: boolean(),
81722
+ packageName: string(),
81723
+ results: array(UninstallNodeResultSchema).readonly()
81724
+ });
81725
+ /**
81726
+ * `unreachable` lists online agents whose status read FAILED — absence from
81727
+ * `installations` is only "not installed" for a node that answered (D315).
81728
+ */
81729
+ var PackageInstallationsSchema = object({
81730
+ installations: array(object({
81731
+ packageName: string(),
81732
+ nodeId: string(),
81733
+ nodeName: string(),
81734
+ isHub: boolean(),
81735
+ isOnline: boolean(),
81736
+ version: string().nullable(),
81737
+ addonIds: array(string()).readonly(),
81738
+ source: _enum(["live", "recorded"]),
81739
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
81740
+ onHub: boolean()
81741
+ })).readonly(),
81742
+ unreachable: array(object({
81743
+ nodeId: string(),
81744
+ error: string()
81745
+ })).readonly()
81746
+ });
81455
81747
  var BulkUpdateItemStatusSchema = _enum([
81456
81748
  "queued",
81457
81749
  "updating",
@@ -81534,10 +81826,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
81534
81826
  }), method(object({ packageName: string() }), InstallPackageResultSchema, {
81535
81827
  kind: "mutation",
81536
81828
  auth: "admin"
81537
- }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({ packageName: string() }), unknown(), {
81829
+ }), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
81830
+ packageName: string().min(1),
81831
+ nodeId: string().optional(),
81832
+ everywhere: boolean().optional()
81833
+ }), UninstallPackageResultSchema, {
81538
81834
  kind: "mutation",
81539
81835
  auth: "admin"
81540
- }), method(_void(), ReloadPackagesResultSchema, {
81836
+ }), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
81541
81837
  kind: "mutation",
81542
81838
  auth: "admin"
81543
81839
  }), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
@@ -92435,6 +92731,16 @@ var zoneRulesCapability = {
92435
92731
  durability: "restored"
92436
92732
  };
92437
92733
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
92734
+ Object.freeze({
92735
+ person: .5,
92736
+ vehicle: .5,
92737
+ animal: .5
92738
+ });
92739
+ Object.freeze({
92740
+ person: .65,
92741
+ vehicle: .65,
92742
+ animal: .65
92743
+ });
92438
92744
  /**
92439
92745
  * Accessory device helpers — shared across drivers.
92440
92746
  *
@@ -94133,6 +94439,12 @@ Object.freeze({
94133
94439
  addonId: null,
94134
94440
  access: "view"
94135
94441
  },
94442
+ "addons.listInstallations": {
94443
+ capName: "addons",
94444
+ capScope: "system",
94445
+ addonId: null,
94446
+ access: "view"
94447
+ },
94136
94448
  "addons.listJobs": {
94137
94449
  capName: "addons",
94138
94450
  capScope: "system",
@@ -95315,90 +95627,18 @@ Object.freeze({
95315
95627
  addonId: null,
95316
95628
  access: "create"
95317
95629
  },
95318
- "decoder.createSession": {
95319
- capName: "decoder",
95320
- capScope: "system",
95321
- addonId: null,
95322
- access: "view"
95323
- },
95324
- "decoder.destroySession": {
95325
- capName: "decoder",
95326
- capScope: "system",
95327
- addonId: null,
95328
- access: "delete"
95329
- },
95330
- "decoder.getFrame": {
95331
- capName: "decoder",
95332
- capScope: "system",
95333
- addonId: null,
95334
- access: "view"
95335
- },
95336
95630
  "decoder.getInfo": {
95337
95631
  capName: "decoder",
95338
95632
  capScope: "system",
95339
95633
  addonId: null,
95340
95634
  access: "view"
95341
95635
  },
95342
- "decoder.getShmStats": {
95343
- capName: "decoder",
95344
- capScope: "system",
95345
- addonId: null,
95346
- access: "view"
95347
- },
95348
- "decoder.getStats": {
95349
- capName: "decoder",
95350
- capScope: "system",
95351
- addonId: null,
95352
- access: "view"
95353
- },
95354
- "decoder.listActiveSessions": {
95355
- capName: "decoder",
95356
- capScope: "system",
95357
- addonId: null,
95358
- access: "view"
95359
- },
95360
- "decoder.openStream": {
95361
- capName: "decoder",
95362
- capScope: "system",
95363
- addonId: null,
95364
- access: "view"
95365
- },
95366
- "decoder.pullFrames": {
95367
- capName: "decoder",
95368
- capScope: "system",
95369
- addonId: null,
95370
- access: "view"
95371
- },
95372
- "decoder.pullHandles": {
95373
- capName: "decoder",
95374
- capScope: "system",
95375
- addonId: null,
95376
- access: "view"
95377
- },
95378
- "decoder.pushPacket": {
95379
- capName: "decoder",
95380
- capScope: "system",
95381
- addonId: null,
95382
- access: "view"
95383
- },
95384
95636
  "decoder.reprobeHwaccel": {
95385
95637
  capName: "decoder",
95386
95638
  capScope: "system",
95387
95639
  addonId: null,
95388
95640
  access: "create"
95389
95641
  },
95390
- "decoder.supportsCodec": {
95391
- capName: "decoder",
95392
- capScope: "system",
95393
- addonId: null,
95394
- access: "view"
95395
- },
95396
- "decoder.updateConfig": {
95397
- capName: "decoder",
95398
- capScope: "system",
95399
- addonId: null,
95400
- access: "view"
95401
- },
95402
95642
  "detectionPipeline.applyDeviceSettingsPatch": {
95403
95643
  capName: "detection-pipeline",
95404
95644
  capScope: "device",
@@ -98477,13 +98717,13 @@ Object.freeze({
98477
98717
  addonId: null,
98478
98718
  access: "delete"
98479
98719
  },
98480
- "pipelineExecutor.deleteModel": {
98720
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
98481
98721
  capName: "pipeline-executor",
98482
98722
  capScope: "system",
98483
98723
  addonId: null,
98484
98724
  access: "delete"
98485
98725
  },
98486
- "pipelineExecutor.deleteTemplate": {
98726
+ "pipelineExecutor.deleteModel": {
98487
98727
  capName: "pipeline-executor",
98488
98728
  capScope: "system",
98489
98729
  addonId: null,
@@ -98627,12 +98867,6 @@ Object.freeze({
98627
98867
  addonId: null,
98628
98868
  access: "view"
98629
98869
  },
98630
- "pipelineExecutor.listTemplates": {
98631
- capName: "pipeline-executor",
98632
- capScope: "system",
98633
- addonId: null,
98634
- access: "view"
98635
- },
98636
98870
  "pipelineExecutor.rearmInferenceDevice": {
98637
98871
  capName: "pipeline-executor",
98638
98872
  capScope: "system",
@@ -98657,12 +98891,6 @@ Object.freeze({
98657
98891
  addonId: null,
98658
98892
  access: "create"
98659
98893
  },
98660
- "pipelineExecutor.saveTemplate": {
98661
- capName: "pipeline-executor",
98662
- capScope: "system",
98663
- addonId: null,
98664
- access: "create"
98665
- },
98666
98894
  "pipelineExecutor.setVideoPipelineSteps": {
98667
98895
  capName: "pipeline-executor",
98668
98896
  capScope: "system",
@@ -98681,41 +98909,35 @@ Object.freeze({
98681
98909
  addonId: null,
98682
98910
  access: "create"
98683
98911
  },
98684
- "pipelineExecutor.updateTemplate": {
98685
- capName: "pipeline-executor",
98686
- capScope: "system",
98687
- addonId: null,
98688
- access: "create"
98689
- },
98690
98912
  "pipelineExecutor.validatePipeline": {
98691
98913
  capName: "pipeline-executor",
98692
98914
  capScope: "system",
98693
98915
  addonId: null,
98694
98916
  access: "view"
98695
98917
  },
98696
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
98918
+ "pipelineOrchestrator.applyAutoTune": {
98697
98919
  capName: "pipeline-orchestrator",
98698
98920
  capScope: "system",
98699
98921
  addonId: null,
98700
98922
  access: "create"
98701
98923
  },
98702
- "pipelineOrchestrator.assignAudio": {
98924
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
98703
98925
  capName: "pipeline-orchestrator",
98704
98926
  capScope: "system",
98705
98927
  addonId: null,
98706
98928
  access: "create"
98707
98929
  },
98708
- "pipelineOrchestrator.assignPipeline": {
98930
+ "pipelineOrchestrator.assignAudio": {
98709
98931
  capName: "pipeline-orchestrator",
98710
98932
  capScope: "system",
98711
98933
  addonId: null,
98712
98934
  access: "create"
98713
98935
  },
98714
- "pipelineOrchestrator.deleteTemplate": {
98936
+ "pipelineOrchestrator.assignPipeline": {
98715
98937
  capName: "pipeline-orchestrator",
98716
98938
  capScope: "system",
98717
98939
  addonId: null,
98718
- access: "delete"
98940
+ access: "create"
98719
98941
  },
98720
98942
  "pipelineOrchestrator.getAgentLoad": {
98721
98943
  capName: "pipeline-orchestrator",
@@ -98807,6 +99029,12 @@ Object.freeze({
98807
99029
  addonId: null,
98808
99030
  access: "view"
98809
99031
  },
99032
+ "pipelineOrchestrator.getEffectiveShares": {
99033
+ capName: "pipeline-orchestrator",
99034
+ capScope: "system",
99035
+ addonId: null,
99036
+ access: "view"
99037
+ },
98810
99038
  "pipelineOrchestrator.getGlobalMetrics": {
98811
99039
  capName: "pipeline-orchestrator",
98812
99040
  capScope: "system",
@@ -98843,19 +99071,19 @@ Object.freeze({
98843
99071
  addonId: null,
98844
99072
  access: "view"
98845
99073
  },
98846
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
99074
+ "pipelineOrchestrator.getPlacementStats": {
98847
99075
  capName: "pipeline-orchestrator",
98848
99076
  capScope: "system",
98849
99077
  addonId: null,
98850
99078
  access: "view"
98851
99079
  },
98852
- "pipelineOrchestrator.listAgentSettings": {
99080
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
98853
99081
  capName: "pipeline-orchestrator",
98854
99082
  capScope: "system",
98855
99083
  addonId: null,
98856
99084
  access: "view"
98857
99085
  },
98858
- "pipelineOrchestrator.listTemplates": {
99086
+ "pipelineOrchestrator.listAgentSettings": {
98859
99087
  capName: "pipeline-orchestrator",
98860
99088
  capScope: "system",
98861
99089
  addonId: null,
@@ -98867,6 +99095,12 @@ Object.freeze({
98867
99095
  addonId: null,
98868
99096
  access: "create"
98869
99097
  },
99098
+ "pipelineOrchestrator.planAutoTune": {
99099
+ capName: "pipeline-orchestrator",
99100
+ capScope: "system",
99101
+ addonId: null,
99102
+ access: "view"
99103
+ },
98870
99104
  "pipelineOrchestrator.rebalance": {
98871
99105
  capName: "pipeline-orchestrator",
98872
99106
  capScope: "system",
@@ -98909,12 +99143,6 @@ Object.freeze({
98909
99143
  addonId: null,
98910
99144
  access: "create"
98911
99145
  },
98912
- "pipelineOrchestrator.saveTemplate": {
98913
- capName: "pipeline-orchestrator",
98914
- capScope: "system",
98915
- addonId: null,
98916
- access: "create"
98917
- },
98918
99146
  "pipelineOrchestrator.setAgentCapabilities": {
98919
99147
  capName: "pipeline-orchestrator",
98920
99148
  capScope: "system",
@@ -98927,12 +99155,6 @@ Object.freeze({
98927
99155
  addonId: null,
98928
99156
  access: "create"
98929
99157
  },
98930
- "pipelineOrchestrator.setAgentDetectWeight": {
98931
- capName: "pipeline-orchestrator",
98932
- capScope: "system",
98933
- addonId: null,
98934
- access: "create"
98935
- },
98936
99158
  "pipelineOrchestrator.setAgentInferenceDevices": {
98937
99159
  capName: "pipeline-orchestrator",
98938
99160
  capScope: "system",
@@ -98969,6 +99191,12 @@ Object.freeze({
98969
99191
  addonId: null,
98970
99192
  access: "create"
98971
99193
  },
99194
+ "pipelineOrchestrator.setCameraStepSettings": {
99195
+ capName: "pipeline-orchestrator",
99196
+ capScope: "system",
99197
+ addonId: null,
99198
+ access: "create"
99199
+ },
98972
99200
  "pipelineOrchestrator.setCameraStepToggle": {
98973
99201
  capName: "pipeline-orchestrator",
98974
99202
  capScope: "system",
@@ -98987,25 +99215,37 @@ Object.freeze({
98987
99215
  addonId: null,
98988
99216
  access: "create"
98989
99217
  },
99218
+ "pipelineOrchestrator.setLoadBalancingShares": {
99219
+ capName: "pipeline-orchestrator",
99220
+ capScope: "system",
99221
+ addonId: null,
99222
+ access: "create"
99223
+ },
98990
99224
  "pipelineOrchestrator.setPipelineDevicePin": {
98991
99225
  capName: "pipeline-orchestrator",
98992
99226
  capScope: "system",
98993
99227
  addonId: null,
98994
99228
  access: "create"
98995
99229
  },
98996
- "pipelineOrchestrator.unassignAudio": {
99230
+ "pipelineOrchestrator.setShareSource": {
98997
99231
  capName: "pipeline-orchestrator",
98998
99232
  capScope: "system",
98999
99233
  addonId: null,
99000
99234
  access: "create"
99001
99235
  },
99002
- "pipelineOrchestrator.unassignPipeline": {
99236
+ "pipelineOrchestrator.suggestShares": {
99237
+ capName: "pipeline-orchestrator",
99238
+ capScope: "system",
99239
+ addonId: null,
99240
+ access: "view"
99241
+ },
99242
+ "pipelineOrchestrator.unassignAudio": {
99003
99243
  capName: "pipeline-orchestrator",
99004
99244
  capScope: "system",
99005
99245
  addonId: null,
99006
99246
  access: "create"
99007
99247
  },
99008
- "pipelineOrchestrator.updateTemplate": {
99248
+ "pipelineOrchestrator.unassignPipeline": {
99009
99249
  capName: "pipeline-orchestrator",
99010
99250
  capScope: "system",
99011
99251
  addonId: null,
@@ -100445,12 +100685,6 @@ Object.freeze({
100445
100685
  addonId: null,
100446
100686
  access: "view"
100447
100687
  },
100448
- "streamBroker.pullFrameHandles": {
100449
- capName: "stream-broker",
100450
- capScope: "system",
100451
- addonId: null,
100452
- access: "view"
100453
- },
100454
100688
  "streamBroker.regenerateRtspToken": {
100455
100689
  capName: "stream-broker",
100456
100690
  capScope: "system",
@@ -100517,12 +100751,6 @@ Object.freeze({
100517
100751
  addonId: null,
100518
100752
  access: "create"
100519
100753
  },
100520
- "streamBroker.subscribeFrames": {
100521
- capName: "stream-broker",
100522
- capScope: "system",
100523
- addonId: null,
100524
- access: "create"
100525
- },
100526
100754
  "streamBroker.unassignProfile": {
100527
100755
  capName: "stream-broker",
100528
100756
  capScope: "system",
@@ -100535,12 +100763,6 @@ Object.freeze({
100535
100763
  addonId: null,
100536
100764
  access: "create"
100537
100765
  },
100538
- "streamBroker.unsubscribeFrames": {
100539
- capName: "stream-broker",
100540
- capScope: "system",
100541
- addonId: null,
100542
- access: "create"
100543
- },
100544
100766
  "streamCatalog.getCatalog": {
100545
100767
  capName: "stream-catalog",
100546
100768
  capScope: "device",
@@ -103054,11 +103276,6 @@ Object.freeze({
103054
103276
  form: "single",
103055
103277
  optional: false
103056
103278
  }],
103057
- "decoder.createSession": [{
103058
- name: "deviceId",
103059
- form: "single",
103060
- optional: true
103061
- }],
103062
103279
  "detectionPipeline.applyDeviceSettingsPatch": [{
103063
103280
  name: "deviceId",
103064
103281
  form: "single",
@@ -104289,6 +104506,11 @@ Object.freeze({
104289
104506
  form: "single",
104290
104507
  optional: false
104291
104508
  }],
104509
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
104510
+ name: "deviceIds",
104511
+ form: "array",
104512
+ optional: true
104513
+ }],
104292
104514
  "pipelineExecutor.runPipeline": [{
104293
104515
  name: "deviceId",
104294
104516
  form: "single",
@@ -104394,6 +104616,11 @@ Object.freeze({
104394
104616
  form: "single",
104395
104617
  optional: false
104396
104618
  }],
104619
+ "pipelineOrchestrator.setCameraStepSettings": [{
104620
+ name: "deviceId",
104621
+ form: "single",
104622
+ optional: false
104623
+ }],
104397
104624
  "pipelineOrchestrator.setCameraStepToggle": [{
104398
104625
  name: "deviceId",
104399
104626
  form: "single",