@camstack/addon-provider-dreame 0.2.126 → 0.2.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +633 -469
- package/dist/addon.mjs +633 -469
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -52902,7 +52902,7 @@ var DreameCameraStream = class extends TypedEmitter {
|
|
|
52902
52902
|
}
|
|
52903
52903
|
};
|
|
52904
52904
|
//#endregion
|
|
52905
|
-
//#region ../types/dist/event-category-
|
|
52905
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
52906
52906
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
52907
52907
|
EventCategory["SystemBoot"] = "system.boot";
|
|
52908
52908
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -53403,15 +53403,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
53403
53403
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
53404
53404
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
53405
53405
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
53406
|
-
/**
|
|
53407
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
53408
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
53409
|
-
* `createSession`, so running sessions keep their current backend until
|
|
53410
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
53411
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
53412
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
53413
|
-
*/
|
|
53414
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
53415
53406
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
53416
53407
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
53417
53408
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -58282,7 +58273,7 @@ var ZodIssueCode = {
|
|
|
58282
58273
|
var ZodFirstPartyTypeKind;
|
|
58283
58274
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
58284
58275
|
//#endregion
|
|
58285
|
-
//#region ../types/dist/sleep-
|
|
58276
|
+
//#region ../types/dist/sleep-BNeXenvr.mjs
|
|
58286
58277
|
/**
|
|
58287
58278
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
58288
58279
|
* window to float samples (D455).
|
|
@@ -59648,32 +59639,12 @@ object({
|
|
|
59648
59639
|
audioCodec: string().optional(),
|
|
59649
59640
|
metadata: record(string(), unknown()).readonly().optional()
|
|
59650
59641
|
});
|
|
59651
|
-
var EncodedPacketSchema = object({
|
|
59652
|
-
type: _enum(["video", "audio"]),
|
|
59653
|
-
data: _instanceof(Uint8Array),
|
|
59654
|
-
pts: number(),
|
|
59655
|
-
dts: number(),
|
|
59656
|
-
keyframe: boolean(),
|
|
59657
|
-
codec: string()
|
|
59658
|
-
});
|
|
59659
|
-
var DecodedFrameSchema = object({
|
|
59660
|
-
data: _instanceof(Uint8Array),
|
|
59661
|
-
width: number(),
|
|
59662
|
-
height: number(),
|
|
59663
|
-
format: _enum([
|
|
59664
|
-
"jpeg",
|
|
59665
|
-
"rgb",
|
|
59666
|
-
"bgr",
|
|
59667
|
-
"yuv420",
|
|
59668
|
-
"gray"
|
|
59669
|
-
]),
|
|
59670
|
-
timestamp: number()
|
|
59671
|
-
});
|
|
59672
59642
|
/**
|
|
59673
59643
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
59674
59644
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
59675
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
59676
|
-
*
|
|
59645
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
59646
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
59647
|
+
* over tRPC / Moleculer.
|
|
59677
59648
|
*
|
|
59678
59649
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
59679
59650
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -59699,50 +59670,6 @@ var FrameHandleSchema = object({
|
|
|
59699
59670
|
slotCount: number().int().positive()
|
|
59700
59671
|
});
|
|
59701
59672
|
/**
|
|
59702
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
59703
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
59704
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
59705
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
59706
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
59707
|
-
*/
|
|
59708
|
-
var FrameHandleFormatSchema = _enum([
|
|
59709
|
-
"rgb",
|
|
59710
|
-
"bgr",
|
|
59711
|
-
"yuv420",
|
|
59712
|
-
"gray"
|
|
59713
|
-
]);
|
|
59714
|
-
/**
|
|
59715
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
59716
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
59717
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
59718
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
59719
|
-
* they asked for with no broker-side conversion.
|
|
59720
|
-
*/
|
|
59721
|
-
var SubscribeFramesInputSchema = object({
|
|
59722
|
-
brokerId: string(),
|
|
59723
|
-
format: FrameHandleFormatSchema,
|
|
59724
|
-
/**
|
|
59725
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
59726
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
59727
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
59728
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
59729
|
-
*/
|
|
59730
|
-
maxFps: number().positive().optional(),
|
|
59731
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
59732
|
-
tag: string().optional()
|
|
59733
|
-
});
|
|
59734
|
-
/**
|
|
59735
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
59736
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
59737
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
59738
|
-
*/
|
|
59739
|
-
var SubscribeFramesResultSchema = object({
|
|
59740
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
59741
|
-
subscriptionId: string(),
|
|
59742
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
59743
|
-
maxFps: number().nonnegative()
|
|
59744
|
-
});
|
|
59745
|
-
/**
|
|
59746
59673
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
59747
59674
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
59748
59675
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -59750,8 +59677,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
59750
59677
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
59751
59678
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
59752
59679
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
59753
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
59754
|
-
*
|
|
59680
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
59681
|
+
* it.
|
|
59755
59682
|
*/
|
|
59756
59683
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
59757
59684
|
var DecodedAudioChunkSchema = object({
|
|
@@ -59769,11 +59696,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
59769
59696
|
format: AudioChunkFormatSchema.optional()
|
|
59770
59697
|
});
|
|
59771
59698
|
/**
|
|
59772
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
59773
|
-
*
|
|
59774
|
-
*
|
|
59775
|
-
*
|
|
59776
|
-
* `pullAudioChunks`.
|
|
59699
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
59700
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
59701
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
59702
|
+
* the consumer drains via `pullAudioChunks`.
|
|
59777
59703
|
*/
|
|
59778
59704
|
var SubscribeAudioChunksInputSchema = object({
|
|
59779
59705
|
brokerId: string(),
|
|
@@ -59804,9 +59730,7 @@ var BrokerStatsSchema = object({
|
|
|
59804
59730
|
"stopped"
|
|
59805
59731
|
]),
|
|
59806
59732
|
inputFps: number(),
|
|
59807
|
-
decodeFps: number(),
|
|
59808
59733
|
encodedSubscribers: number(),
|
|
59809
|
-
decodedSubscribers: number(),
|
|
59810
59734
|
uptimeMs: number(),
|
|
59811
59735
|
bitrateKbps: number(),
|
|
59812
59736
|
idrIntervalMs: number(),
|
|
@@ -59819,14 +59743,6 @@ var BrokerStatsSchema = object({
|
|
|
59819
59743
|
preBufferMs: number(),
|
|
59820
59744
|
preBufferPackets: number(),
|
|
59821
59745
|
/**
|
|
59822
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
59823
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
59824
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
59825
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
59826
|
-
* a separate cap call per broker.
|
|
59827
|
-
*/
|
|
59828
|
-
decoderNodeId: string().nullable(),
|
|
59829
|
-
/**
|
|
59830
59746
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
59831
59747
|
* when the stream has no audio track or the broker is in cold start.
|
|
59832
59748
|
* `supported = false` means the codec was detected but the local
|
|
@@ -63162,70 +63078,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
63162
63078
|
"backup"
|
|
63163
63079
|
]).optional()
|
|
63164
63080
|
});
|
|
63165
|
-
var DecoderStatsSchema = object({
|
|
63166
|
-
inputFps: number(),
|
|
63167
|
-
outputFps: number(),
|
|
63168
|
-
avgDecodeTimeMs: number(),
|
|
63169
|
-
droppedFrames: number(),
|
|
63170
|
-
/**
|
|
63171
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
63172
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
63173
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
63174
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
63175
|
-
*/
|
|
63176
|
-
lagMs: number().optional(),
|
|
63177
|
-
effectiveFps: number().optional(),
|
|
63178
|
-
adaptiveFps: number().optional()
|
|
63179
|
-
});
|
|
63180
|
-
var DecoderSessionConfigSchema = object({
|
|
63181
|
-
codec: string(),
|
|
63182
|
-
maxFps: number().default(0),
|
|
63183
|
-
outputFormat: _enum([
|
|
63184
|
-
"jpeg",
|
|
63185
|
-
"rgb",
|
|
63186
|
-
"bgr",
|
|
63187
|
-
"yuv420",
|
|
63188
|
-
"gray"
|
|
63189
|
-
]).default("jpeg"),
|
|
63190
|
-
scale: number().default(1),
|
|
63191
|
-
width: number().optional(),
|
|
63192
|
-
height: number().optional(),
|
|
63193
|
-
/**
|
|
63194
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
63195
|
-
* because the cap is generic (any caller could request decode), but
|
|
63196
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
63197
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
63198
|
-
* sendPacket errors on a single hung camera).
|
|
63199
|
-
*/
|
|
63200
|
-
deviceId: number().int().nonnegative().optional(),
|
|
63201
|
-
/**
|
|
63202
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
63203
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
63204
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
63205
|
-
* profile cleanly.
|
|
63206
|
-
*/
|
|
63207
|
-
tag: string().optional(),
|
|
63208
|
-
/**
|
|
63209
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
63210
|
-
*
|
|
63211
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
63212
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
63213
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
63214
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
63215
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
63216
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
63217
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
63218
|
-
*/
|
|
63219
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
63220
|
-
/**
|
|
63221
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
63222
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
63223
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
63224
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
63225
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
63226
|
-
*/
|
|
63227
|
-
debug: boolean().optional()
|
|
63228
|
-
});
|
|
63229
63081
|
/**
|
|
63230
63082
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
63231
63083
|
* an addon declares its channels in.
|
|
@@ -63376,7 +63228,18 @@ var LABEL_SUPPLY_STEP_IDS = [
|
|
|
63376
63228
|
];
|
|
63377
63229
|
/** Steps whose box a root detection can BE. */
|
|
63378
63230
|
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
63379
|
-
|
|
63231
|
+
/**
|
|
63232
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
63233
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
63234
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
63235
|
+
* no camera tree carries.)
|
|
63236
|
+
*/
|
|
63237
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
63238
|
+
[
|
|
63239
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
63240
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
63241
|
+
...MASK_SUPPLY_STEP_IDS
|
|
63242
|
+
];
|
|
63380
63243
|
var MODEL_FORMATS = [
|
|
63381
63244
|
"onnx",
|
|
63382
63245
|
"coreml",
|
|
@@ -63405,7 +63268,53 @@ var ModelFormatEntrySchema = object({
|
|
|
63405
63268
|
/** Multi-file payload (directory members or sibling files). */
|
|
63406
63269
|
files: array(string()).readonly().optional(),
|
|
63407
63270
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
63408
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
63271
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
63272
|
+
/**
|
|
63273
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
63274
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
63275
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
63276
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
63277
|
+
* node records the revision it downloaded next to the file
|
|
63278
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
63279
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
63280
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
63281
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
63282
|
+
*/
|
|
63283
|
+
revision: string().min(1).optional()
|
|
63284
|
+
});
|
|
63285
|
+
/**
|
|
63286
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
63287
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
63288
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
63289
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
63290
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
63291
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
63292
|
+
*/
|
|
63293
|
+
var ModelOnDiskStateSchema = _enum([
|
|
63294
|
+
"current",
|
|
63295
|
+
"stale",
|
|
63296
|
+
"missing"
|
|
63297
|
+
]);
|
|
63298
|
+
/**
|
|
63299
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
63300
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
63301
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
63302
|
+
*/
|
|
63303
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
63304
|
+
"fp32",
|
|
63305
|
+
"fp16",
|
|
63306
|
+
"int8"
|
|
63307
|
+
]);
|
|
63308
|
+
/**
|
|
63309
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
63310
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
63311
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
63312
|
+
*/
|
|
63313
|
+
var PipelineModelFormatStatusSchema = object({
|
|
63314
|
+
downloaded: boolean(),
|
|
63315
|
+
sizeMB: number(),
|
|
63316
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
63317
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
63409
63318
|
});
|
|
63410
63319
|
/**
|
|
63411
63320
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -63519,25 +63428,36 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
63519
63428
|
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
63520
63429
|
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
63521
63430
|
* child of the `parentMacro` detection that contains it — never a track.
|
|
63431
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
63432
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
63433
|
+
* detection in the shape that step produces. Derived from the model's
|
|
63434
|
+
* postprocessor on read, never stored by an import.
|
|
63522
63435
|
*/
|
|
63523
|
-
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
63524
|
-
|
|
63525
|
-
|
|
63526
|
-
|
|
63527
|
-
|
|
63528
|
-
|
|
63529
|
-
|
|
63530
|
-
|
|
63531
|
-
|
|
63532
|
-
|
|
63533
|
-
|
|
63534
|
-
|
|
63535
|
-
|
|
63536
|
-
|
|
63537
|
-
|
|
63538
|
-
|
|
63539
|
-
|
|
63540
|
-
|
|
63436
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
63437
|
+
object({
|
|
63438
|
+
kind: literal("label"),
|
|
63439
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
63440
|
+
labelToEffect: record(string(), string()),
|
|
63441
|
+
uncovered: array(string()).readonly()
|
|
63442
|
+
}),
|
|
63443
|
+
object({
|
|
63444
|
+
kind: literal("crop"),
|
|
63445
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
63446
|
+
rootLabels: array(string()).readonly(),
|
|
63447
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
63448
|
+
childClass: _enum(["plate", "face"]),
|
|
63449
|
+
/**
|
|
63450
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
63451
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
63452
|
+
* stored by an import.
|
|
63453
|
+
*/
|
|
63454
|
+
rootInputPx: number().int().positive().optional()
|
|
63455
|
+
}),
|
|
63456
|
+
object({
|
|
63457
|
+
kind: literal("mask"),
|
|
63458
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
63459
|
+
})
|
|
63460
|
+
]);
|
|
63541
63461
|
var ModelCatalogEntrySchema = object({
|
|
63542
63462
|
id: string(),
|
|
63543
63463
|
name: string(),
|
|
@@ -63603,6 +63523,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
63603
63523
|
*/
|
|
63604
63524
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
63605
63525
|
/**
|
|
63526
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
63527
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
63528
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
63529
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
63530
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
63531
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
63532
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
63533
|
+
*/
|
|
63534
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
63535
|
+
/**
|
|
63536
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
63537
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
63538
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
63539
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
63540
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
63541
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
63542
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
63543
|
+
*/
|
|
63544
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
63545
|
+
/**
|
|
63546
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
63547
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
63548
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
63549
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
63550
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
63551
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
63552
|
+
*/
|
|
63553
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
63554
|
+
/**
|
|
63606
63555
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
63607
63556
|
* onto the canonical template) before this step runs, instead of a plain
|
|
63608
63557
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -65275,13 +65224,6 @@ var BrokerRtspClientSchema = object({
|
|
|
65275
65224
|
lastRtpAt: number(),
|
|
65276
65225
|
bytesSent: number()
|
|
65277
65226
|
});
|
|
65278
|
-
var BrokerDecodedClientSchema = object({
|
|
65279
|
-
tag: string(),
|
|
65280
|
-
subscribedAt: number(),
|
|
65281
|
-
maxFps: number(),
|
|
65282
|
-
framesDelivered: number(),
|
|
65283
|
-
framesDropped: number()
|
|
65284
|
-
});
|
|
65285
65227
|
var BrokerAudioClientSchema = object({
|
|
65286
65228
|
tag: string(),
|
|
65287
65229
|
subscribedAt: number(),
|
|
@@ -65373,7 +65315,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
65373
65315
|
});
|
|
65374
65316
|
var BrokerClientsSchema = object({
|
|
65375
65317
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
65376
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
65377
65318
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
65378
65319
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
65379
65320
|
pipeClients: number(),
|
|
@@ -65742,11 +65683,7 @@ method(object({
|
|
|
65742
65683
|
auth: "admin"
|
|
65743
65684
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
65744
65685
|
brokerId: string(),
|
|
65745
|
-
channel: _enum([
|
|
65746
|
-
"rtsp",
|
|
65747
|
-
"decoded",
|
|
65748
|
-
"audio"
|
|
65749
|
-
]),
|
|
65686
|
+
channel: _enum(["rtsp", "audio"]),
|
|
65750
65687
|
handle: string()
|
|
65751
65688
|
}), object({ killed: boolean() }), {
|
|
65752
65689
|
kind: "mutation",
|
|
@@ -65781,10 +65718,7 @@ method(object({
|
|
|
65781
65718
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
65782
65719
|
subscriptionId: string(),
|
|
65783
65720
|
maxCount: number().int().positive().default(8)
|
|
65784
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
65785
|
-
subscriptionId: string(),
|
|
65786
|
-
maxCount: number().int().positive().default(4)
|
|
65787
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
65721
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
65788
65722
|
brokerId: string(),
|
|
65789
65723
|
seconds: number().min(0).max(30)
|
|
65790
65724
|
}), _void(), {
|
|
@@ -67043,54 +66977,12 @@ id: union([string(), number()]) }), {
|
|
|
67043
66977
|
kind: "mutation",
|
|
67044
66978
|
auth: "admin"
|
|
67045
66979
|
});
|
|
67046
|
-
|
|
67047
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
67048
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
67049
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
67050
|
-
*/
|
|
67051
|
-
var ShmRingStatsSchema = object({
|
|
67052
|
-
sessionId: string(),
|
|
67053
|
-
slotCount: number().int(),
|
|
67054
|
-
slotByteLength: number().int(),
|
|
67055
|
-
segmentBytes: number().int(),
|
|
67056
|
-
budgetMb: number().int(),
|
|
67057
|
-
framesWritten: number().int(),
|
|
67058
|
-
getFrameHits: number().int(),
|
|
67059
|
-
getFrameMisses: number().int()
|
|
67060
|
-
});
|
|
67061
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
66980
|
+
method(_void(), object({
|
|
67062
66981
|
id: string(),
|
|
67063
66982
|
name: string(),
|
|
67064
|
-
isPullMode: boolean().optional(),
|
|
67065
|
-
priority: number().optional(),
|
|
67066
66983
|
hwaccel: string().optional(),
|
|
67067
66984
|
probedBestHwaccel: string().optional()
|
|
67068
|
-
})), method(
|
|
67069
|
-
sessionId: string(),
|
|
67070
|
-
nodeId: string()
|
|
67071
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
67072
|
-
sessionId: string(),
|
|
67073
|
-
packet: EncodedPacketSchema
|
|
67074
|
-
}), _void()), method(object({
|
|
67075
|
-
sessionId: string(),
|
|
67076
|
-
url: string()
|
|
67077
|
-
}), _void()), method(object({
|
|
67078
|
-
sessionId: string(),
|
|
67079
|
-
maxCount: number().default(1),
|
|
67080
|
-
waitMs: number().optional()
|
|
67081
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
67082
|
-
sessionId: string(),
|
|
67083
|
-
maxCount: number().default(1),
|
|
67084
|
-
waitMs: number().optional()
|
|
67085
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
67086
|
-
sessionId: string(),
|
|
67087
|
-
config: DecoderSessionConfigSchema.partial()
|
|
67088
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
67089
|
-
sessionId: string(),
|
|
67090
|
-
codec: string(),
|
|
67091
|
-
outputFormat: string(),
|
|
67092
|
-
createdAtMs: number()
|
|
67093
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
66985
|
+
})), method(_void(), object({ backend: string() }), {
|
|
67094
66986
|
kind: "mutation",
|
|
67095
66987
|
auth: "admin"
|
|
67096
66988
|
});
|
|
@@ -74365,8 +74257,8 @@ Object.freeze(Object.fromEntries([{
|
|
|
74365
74257
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
74366
74258
|
stepId: "face-embedding",
|
|
74367
74259
|
key: "minLandmarkFaceSize",
|
|
74368
|
-
label: "Min face size
|
|
74369
|
-
description: "
|
|
74260
|
+
label: "Min face size to embed (detection-frame px)",
|
|
74261
|
+
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.",
|
|
74370
74262
|
type: "slider",
|
|
74371
74263
|
min: 0,
|
|
74372
74264
|
max: 64,
|
|
@@ -76361,7 +76253,7 @@ var FrameRefSchema = object({
|
|
|
76361
76253
|
timestamp: number(),
|
|
76362
76254
|
capturedAt: number().optional()
|
|
76363
76255
|
});
|
|
76364
|
-
var ModelFormatSchema$
|
|
76256
|
+
var ModelFormatSchema$2 = _enum([
|
|
76365
76257
|
"onnx",
|
|
76366
76258
|
"coreml",
|
|
76367
76259
|
"openvino",
|
|
@@ -76379,7 +76271,7 @@ var PipelineSlotSchema = _enum([
|
|
|
76379
76271
|
var PipelineEngineChoiceSchema = object({
|
|
76380
76272
|
runtime: literal("python"),
|
|
76381
76273
|
backend: string(),
|
|
76382
|
-
format: ModelFormatSchema$
|
|
76274
|
+
format: ModelFormatSchema$2,
|
|
76383
76275
|
device: string().optional()
|
|
76384
76276
|
});
|
|
76385
76277
|
/**
|
|
@@ -76418,28 +76310,10 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
76418
76310
|
group: string().optional(),
|
|
76419
76311
|
settings: record(string(), unknown()).optional()
|
|
76420
76312
|
}));
|
|
76421
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
76422
|
-
addonId: string(),
|
|
76423
|
-
enabled: boolean(),
|
|
76424
|
-
modelId: string(),
|
|
76425
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
76426
|
-
settings: record(string(), unknown()).optional()
|
|
76427
|
-
}));
|
|
76428
|
-
var PipelineTemplateSchema$1 = object({
|
|
76429
|
-
id: string(),
|
|
76430
|
-
name: string(),
|
|
76431
|
-
createdAt: string(),
|
|
76432
|
-
updatedAt: string(),
|
|
76433
|
-
engine: PipelineEngineChoiceSchema,
|
|
76434
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
76435
|
-
});
|
|
76436
76313
|
var PipelineModelOptionSchema = object({
|
|
76437
76314
|
id: string(),
|
|
76438
76315
|
name: string(),
|
|
76439
|
-
formats: record(string(),
|
|
76440
|
-
downloaded: boolean(),
|
|
76441
|
-
sizeMB: number()
|
|
76442
|
-
})),
|
|
76316
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
76443
76317
|
group: ModelVariantGroupSchema.optional(),
|
|
76444
76318
|
legacy: boolean().optional(),
|
|
76445
76319
|
provider: ModelProviderIdSchema.optional(),
|
|
@@ -76606,6 +76480,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76606
76480
|
}), {
|
|
76607
76481
|
kind: "mutation",
|
|
76608
76482
|
auth: "admin"
|
|
76483
|
+
}), method(object({
|
|
76484
|
+
nodeId: string(),
|
|
76485
|
+
deviceIds: array(number()).readonly().optional(),
|
|
76486
|
+
dryRun: boolean()
|
|
76487
|
+
}), object({
|
|
76488
|
+
entries: array(object({
|
|
76489
|
+
deviceId: number(),
|
|
76490
|
+
keys: array(string()).readonly()
|
|
76491
|
+
})).readonly(),
|
|
76492
|
+
refused: array(object({
|
|
76493
|
+
deviceId: number(),
|
|
76494
|
+
reason: string()
|
|
76495
|
+
})).readonly()
|
|
76496
|
+
}), {
|
|
76497
|
+
kind: "mutation",
|
|
76498
|
+
auth: "admin"
|
|
76609
76499
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
76610
76500
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
76611
76501
|
deviceKey: string(),
|
|
@@ -76631,22 +76521,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76631
76521
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
76632
76522
|
steps: array(PipelineStepInputSchema),
|
|
76633
76523
|
deviceKey: string().optional()
|
|
76634
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
76635
|
-
name: string(),
|
|
76636
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
76637
|
-
engine: PipelineEngineChoiceSchema
|
|
76638
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
76639
|
-
id: string(),
|
|
76640
|
-
name: string().optional(),
|
|
76641
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
76642
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
76524
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
76643
76525
|
addonId: string(),
|
|
76644
76526
|
modelId: string(),
|
|
76645
|
-
format: ModelFormatSchema$
|
|
76527
|
+
format: ModelFormatSchema$2
|
|
76646
76528
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
76647
76529
|
addonId: string(),
|
|
76648
76530
|
modelId: string(),
|
|
76649
|
-
format: ModelFormatSchema$
|
|
76531
|
+
format: ModelFormatSchema$2
|
|
76650
76532
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
76651
76533
|
steps: array(PipelineStepInputSchema).min(1),
|
|
76652
76534
|
frame: FrameInputSchema.optional(),
|
|
@@ -76803,6 +76685,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76803
76685
|
filename: string().optional(),
|
|
76804
76686
|
settings: record(string(), unknown()).optional()
|
|
76805
76687
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
76688
|
+
/**
|
|
76689
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
76690
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
76691
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
76692
|
+
* schemas are what crosses the cap boundary.
|
|
76693
|
+
*/
|
|
76694
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
76695
|
+
/** The operator's range for it. */
|
|
76696
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
76697
|
+
min: 1,
|
|
76698
|
+
max: 8
|
|
76699
|
+
};
|
|
76700
|
+
var HardwareClassIdSchema = _enum([
|
|
76701
|
+
"intel-core-ultra",
|
|
76702
|
+
"intel-n-series",
|
|
76703
|
+
"apple-m-base",
|
|
76704
|
+
"apple-m-pro",
|
|
76705
|
+
"unknown"
|
|
76706
|
+
]);
|
|
76707
|
+
var AcceleratorKindSchema = _enum([
|
|
76708
|
+
"intel-npu",
|
|
76709
|
+
"intel-igpu",
|
|
76710
|
+
"x86-cpu",
|
|
76711
|
+
"arm-cpu",
|
|
76712
|
+
"apple-ane",
|
|
76713
|
+
"coral"
|
|
76714
|
+
]);
|
|
76715
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
76716
|
+
object({
|
|
76717
|
+
kind: literal("capacity"),
|
|
76718
|
+
sessions: number(),
|
|
76719
|
+
minSessions: number()
|
|
76720
|
+
}),
|
|
76721
|
+
object({
|
|
76722
|
+
kind: literal("tie-faster"),
|
|
76723
|
+
over: string(),
|
|
76724
|
+
recallDelta: number()
|
|
76725
|
+
}),
|
|
76726
|
+
object({
|
|
76727
|
+
kind: literal("stepped-down"),
|
|
76728
|
+
from: string(),
|
|
76729
|
+
to: string(),
|
|
76730
|
+
limitedBy: string()
|
|
76731
|
+
}),
|
|
76732
|
+
object({
|
|
76733
|
+
kind: literal("no-fit-lightest"),
|
|
76734
|
+
sessions: number(),
|
|
76735
|
+
minSessions: number()
|
|
76736
|
+
}),
|
|
76737
|
+
object({
|
|
76738
|
+
kind: literal("derived-latency"),
|
|
76739
|
+
modelId: string()
|
|
76740
|
+
}),
|
|
76741
|
+
object({ kind: literal("cpu-device") }),
|
|
76742
|
+
object({ kind: literal("coral-untouched") }),
|
|
76743
|
+
object({ kind: literal("device-disabled") }),
|
|
76744
|
+
object({ kind: literal("device-unavailable") }),
|
|
76745
|
+
object({ kind: literal("node-offline") }),
|
|
76746
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
76747
|
+
object({
|
|
76748
|
+
kind: literal("no-measured-data"),
|
|
76749
|
+
hardwareClass: HardwareClassIdSchema
|
|
76750
|
+
}),
|
|
76751
|
+
object({
|
|
76752
|
+
kind: literal("no-family-build"),
|
|
76753
|
+
format: ModelFormatSchema$1
|
|
76754
|
+
})
|
|
76755
|
+
]);
|
|
76756
|
+
var DeviceModelChoiceSchema = object({
|
|
76757
|
+
modelId: string(),
|
|
76758
|
+
p50Ms: number(),
|
|
76759
|
+
fps: number(),
|
|
76760
|
+
measured: boolean(),
|
|
76761
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
76762
|
+
capacitySessions: number(),
|
|
76763
|
+
personRecall: number()
|
|
76764
|
+
});
|
|
76765
|
+
var DeviceRecommendationSchema = object({
|
|
76766
|
+
deviceKey: string(),
|
|
76767
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
76768
|
+
enabled: boolean(),
|
|
76769
|
+
available: boolean(),
|
|
76770
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
76771
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
76772
|
+
});
|
|
76773
|
+
var NodeRecommendationSchema = object({
|
|
76774
|
+
nodeId: string(),
|
|
76775
|
+
reachable: boolean(),
|
|
76776
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
76777
|
+
cpuModel: string().nullable(),
|
|
76778
|
+
skipped: boolean(),
|
|
76779
|
+
acceleratorModelId: string().nullable(),
|
|
76780
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
76781
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
76782
|
+
});
|
|
76783
|
+
var ModelPinChangeSchema = object({
|
|
76784
|
+
stepId: string(),
|
|
76785
|
+
before: string().nullable(),
|
|
76786
|
+
after: string().nullable()
|
|
76787
|
+
});
|
|
76788
|
+
var NodeDeviceChangeSchema = object({
|
|
76789
|
+
nodeId: string(),
|
|
76790
|
+
deviceKey: string(),
|
|
76791
|
+
madeExplicit: boolean(),
|
|
76792
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
76793
|
+
thresholds: array(object({
|
|
76794
|
+
stepId: string(),
|
|
76795
|
+
keys: array(string()).readonly()
|
|
76796
|
+
})).readonly()
|
|
76797
|
+
});
|
|
76798
|
+
var CameraOverrideClearSchema = object({
|
|
76799
|
+
deviceId: number(),
|
|
76800
|
+
source: _enum(["step-override", "wholesale"]),
|
|
76801
|
+
nodeId: string(),
|
|
76802
|
+
deviceKey: string().nullable(),
|
|
76803
|
+
stepId: string(),
|
|
76804
|
+
modelIdBefore: string().nullable(),
|
|
76805
|
+
keys: array(string()).readonly()
|
|
76806
|
+
});
|
|
76807
|
+
var DetectorStoreClearSchema = object({
|
|
76808
|
+
deviceId: number(),
|
|
76809
|
+
keys: array(string()).readonly()
|
|
76810
|
+
});
|
|
76811
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
76812
|
+
object({
|
|
76813
|
+
kind: literal("detector-store-cluster-wide"),
|
|
76814
|
+
skippedNodes: array(string()).readonly()
|
|
76815
|
+
}),
|
|
76816
|
+
object({
|
|
76817
|
+
kind: literal("detector-store-unreadable"),
|
|
76818
|
+
error: string()
|
|
76819
|
+
}),
|
|
76820
|
+
object({
|
|
76821
|
+
kind: literal("coral-enabled"),
|
|
76822
|
+
nodeId: string(),
|
|
76823
|
+
deviceKey: string()
|
|
76824
|
+
})
|
|
76825
|
+
]);
|
|
76826
|
+
var AutoTuneOptionsSchema = object({
|
|
76827
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
76828
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
76829
|
+
/**
|
|
76830
|
+
* The least number of parallel sessions every device must sustain at the
|
|
76831
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
76832
|
+
* that reaches it wins.
|
|
76833
|
+
*/
|
|
76834
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
76835
|
+
});
|
|
76836
|
+
var AutoTunePlanSchema = object({
|
|
76837
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
76838
|
+
planHash: string(),
|
|
76839
|
+
family: literal("yolov9"),
|
|
76840
|
+
headroom: number(),
|
|
76841
|
+
minSessionsPerDevice: number(),
|
|
76842
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
76843
|
+
cameraFps: number(),
|
|
76844
|
+
generatedAt: number(),
|
|
76845
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
76846
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
76847
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
76848
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
76849
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
76850
|
+
});
|
|
76851
|
+
var AutoTuneApplyInputSchema = object({
|
|
76852
|
+
planHash: string(),
|
|
76853
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
76854
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
76855
|
+
});
|
|
76856
|
+
var AutoTunePhaseResultSchema = object({
|
|
76857
|
+
phase: _enum([
|
|
76858
|
+
"download",
|
|
76859
|
+
"camera-overrides",
|
|
76860
|
+
"detector-thresholds",
|
|
76861
|
+
"node-models",
|
|
76862
|
+
"redispatch"
|
|
76863
|
+
]),
|
|
76864
|
+
ok: boolean(),
|
|
76865
|
+
detail: string()
|
|
76866
|
+
});
|
|
76867
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
76868
|
+
object({
|
|
76869
|
+
kind: literal("applied"),
|
|
76870
|
+
planHash: string(),
|
|
76871
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
76872
|
+
}),
|
|
76873
|
+
object({
|
|
76874
|
+
kind: literal("aborted"),
|
|
76875
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
76876
|
+
}),
|
|
76877
|
+
object({
|
|
76878
|
+
kind: literal("stale"),
|
|
76879
|
+
plan: AutoTunePlanSchema
|
|
76880
|
+
}),
|
|
76881
|
+
object({
|
|
76882
|
+
kind: literal("refused"),
|
|
76883
|
+
reason: _enum(["apply-in-progress"])
|
|
76884
|
+
})
|
|
76885
|
+
]);
|
|
76886
|
+
/**
|
|
76887
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
76888
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
76889
|
+
* hardware share suggestion and the stale device pins.
|
|
76890
|
+
*/
|
|
76891
|
+
/**
|
|
76892
|
+
* How a new detection session picks its node and device.
|
|
76893
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
76894
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
76895
|
+
* weight only bites once a node already holds a session.
|
|
76896
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
76897
|
+
* full or drowning node yields to a free one (D748).
|
|
76898
|
+
*/
|
|
76899
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
76900
|
+
var LoadBalancingSharesInputSchema = object({
|
|
76901
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
76902
|
+
nodes: record(string(), number().positive()).default({}),
|
|
76903
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
76904
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
76905
|
+
});
|
|
76906
|
+
var PlacementStatsInputSchema = object({
|
|
76907
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
76908
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
76909
|
+
var PlacementDeviceStatsSchema = object({
|
|
76910
|
+
deviceKey: string(),
|
|
76911
|
+
/** Sessions running on this device now. */
|
|
76912
|
+
sessionsNow: number(),
|
|
76913
|
+
/** Sessions started on this device inside the window. */
|
|
76914
|
+
sessionsStarted: number(),
|
|
76915
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
76916
|
+
observedShare: number().nullable()
|
|
76917
|
+
});
|
|
76918
|
+
var PlacementNodeStatsSchema = object({
|
|
76919
|
+
nodeId: string(),
|
|
76920
|
+
sessionsNow: number(),
|
|
76921
|
+
sessionsStarted: number(),
|
|
76922
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
76923
|
+
observedShare: number().nullable(),
|
|
76924
|
+
/** Most sessions this node ran at once inside the window. */
|
|
76925
|
+
peakSessions: number(),
|
|
76926
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
76927
|
+
yieldsAway: number(),
|
|
76928
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
76929
|
+
});
|
|
76930
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
76931
|
+
var StaleDevicePinSchema = object({
|
|
76932
|
+
deviceId: number(),
|
|
76933
|
+
deviceKey: string(),
|
|
76934
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
76935
|
+
reason: _enum(["disabled", "absent"])
|
|
76936
|
+
});
|
|
76937
|
+
var PlacementStatsSchema = object({
|
|
76938
|
+
policy: SessionPlacementPolicySchema,
|
|
76939
|
+
windowMs: number(),
|
|
76940
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
76941
|
+
observedForMs: number(),
|
|
76942
|
+
sessionsNow: number(),
|
|
76943
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
76944
|
+
clusterPeakSessions: number(),
|
|
76945
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
76946
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
76947
|
+
});
|
|
76948
|
+
/**
|
|
76949
|
+
* Where an automatic share's capacity comes from (D755).
|
|
76950
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
76951
|
+
* the measured latency table for the node's hardware class.
|
|
76952
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
76953
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
76954
|
+
*/
|
|
76955
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
76956
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
76957
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
76958
|
+
var SuggestSharesInputSchema = object({
|
|
76959
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
76960
|
+
/** Default `hardware`. */
|
|
76961
|
+
source: CapacitySourceSchema.default("hardware")
|
|
76962
|
+
});
|
|
76963
|
+
var SuggestedDeviceShareSchema = object({
|
|
76964
|
+
deviceKey: string(),
|
|
76965
|
+
/** Share of the node (0–100, rounded). */
|
|
76966
|
+
share: number(),
|
|
76967
|
+
modelId: string().nullable(),
|
|
76968
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
76969
|
+
fps: number().nullable(),
|
|
76970
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
76971
|
+
measured: boolean(),
|
|
76972
|
+
/**
|
|
76973
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
76974
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
76975
|
+
*/
|
|
76976
|
+
suggestedMaxSessions: number().nullable()
|
|
76977
|
+
});
|
|
76978
|
+
var SuggestedNodeShareSchema = object({
|
|
76979
|
+
nodeId: string(),
|
|
76980
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
76981
|
+
share: number().nullable(),
|
|
76982
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
76983
|
+
capacitySessions: number(),
|
|
76984
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
76985
|
+
skippedReason: string().nullable(),
|
|
76986
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
76987
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
76988
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
76989
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
76990
|
+
});
|
|
76991
|
+
var SuggestSharesResultSchema = object({
|
|
76992
|
+
headroom: number(),
|
|
76993
|
+
/** The source asked for; each node says what it actually used. */
|
|
76994
|
+
source: CapacitySourceSchema,
|
|
76995
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
76996
|
+
cameraFps: number(),
|
|
76997
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
76998
|
+
minSessionsPerDevice: number(),
|
|
76999
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
77000
|
+
});
|
|
77001
|
+
/**
|
|
77002
|
+
* Where the node and device shares come from (D750, D755).
|
|
77003
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
77004
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
77005
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
77006
|
+
* switched on or off, or changes model. No load input.
|
|
77007
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
77008
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
77009
|
+
* - `manual` — the operator's stored sliders.
|
|
77010
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
77011
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
77012
|
+
*/
|
|
77013
|
+
var ShareSourceSchema = _enum([
|
|
77014
|
+
"hardware",
|
|
77015
|
+
"benchmark",
|
|
77016
|
+
"manual"
|
|
77017
|
+
]);
|
|
77018
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
77019
|
+
object({
|
|
77020
|
+
nodes: record(string(), number()),
|
|
77021
|
+
devices: record(string(), record(string(), number()))
|
|
77022
|
+
});
|
|
77023
|
+
var EffectiveDeviceShareSchema = object({
|
|
77024
|
+
deviceKey: string(),
|
|
77025
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
77026
|
+
eligible: boolean(),
|
|
77027
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
77028
|
+
configuredPct: number(),
|
|
77029
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
77030
|
+
effectivePct: number()
|
|
77031
|
+
});
|
|
77032
|
+
var EffectiveNodeShareSchema = object({
|
|
77033
|
+
nodeId: string(),
|
|
77034
|
+
eligible: boolean(),
|
|
77035
|
+
configuredPct: number(),
|
|
77036
|
+
effectivePct: number(),
|
|
77037
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
77038
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
77039
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
77040
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
77041
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
77042
|
+
});
|
|
77043
|
+
var EffectiveSharesSchema = object({
|
|
77044
|
+
source: ShareSourceSchema,
|
|
77045
|
+
policy: SessionPlacementPolicySchema,
|
|
77046
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
77047
|
+
autoPending: boolean(),
|
|
77048
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
77049
|
+
computedAt: number().nullable(),
|
|
77050
|
+
/** What made the system recompute them last. */
|
|
77051
|
+
trigger: string().nullable(),
|
|
77052
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
77053
|
+
/** The relative weights the election reads (before eligibility). */
|
|
77054
|
+
nodeWeights: record(string(), number()),
|
|
77055
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
77056
|
+
});
|
|
76806
77057
|
object({
|
|
76807
77058
|
activeCameras: number(),
|
|
76808
77059
|
throttledCameras: number(),
|
|
@@ -77720,14 +77971,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
77720
77971
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
77721
77972
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
77722
77973
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
77723
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
77724
|
-
* per
|
|
77974
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
77975
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
77976
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
77977
|
+
* (D762).
|
|
77725
77978
|
*/
|
|
77726
77979
|
devices: array(object({
|
|
77727
77980
|
deviceKey: string(),
|
|
77728
77981
|
backend: string(),
|
|
77729
|
-
attachedCameras: number()
|
|
77730
|
-
queueDepthTotal: number()
|
|
77982
|
+
attachedCameras: number()
|
|
77731
77983
|
})).default([]),
|
|
77732
77984
|
/** Hardware capability flags reported by this node. */
|
|
77733
77985
|
hardware: object({
|
|
@@ -77941,14 +78193,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
77941
78193
|
settings: record(string(), unknown()).readonly().optional()
|
|
77942
78194
|
}).nullable().optional()
|
|
77943
78195
|
});
|
|
77944
|
-
var PipelineTemplateSchema = object({
|
|
77945
|
-
id: string(),
|
|
77946
|
-
name: string(),
|
|
77947
|
-
description: string().optional(),
|
|
77948
|
-
config: CameraPipelineConfigSchema,
|
|
77949
|
-
createdAt: string(),
|
|
77950
|
-
updatedAt: string()
|
|
77951
|
-
});
|
|
77952
78196
|
var DeviceStepConfigSchema = object({
|
|
77953
78197
|
modelId: string().optional(),
|
|
77954
78198
|
settings: record(string(), unknown()).optional(),
|
|
@@ -78022,9 +78266,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
78022
78266
|
modelId: string().optional(),
|
|
78023
78267
|
settings: record(string(), unknown()).readonly().optional()
|
|
78024
78268
|
});
|
|
78269
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
78025
78270
|
var CameraPipelineSettingsSchema = object({
|
|
78026
|
-
pinnedAgentNodeId: string().optional(),
|
|
78027
78271
|
stepToggles: record(string(), boolean()).optional(),
|
|
78272
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
78028
78273
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
78029
78274
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
78030
78275
|
});
|
|
@@ -78057,7 +78302,10 @@ var PipelineAssignmentSchema = object({
|
|
|
78057
78302
|
});
|
|
78058
78303
|
/**
|
|
78059
78304
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
78060
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
78305
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
78306
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
78307
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
78308
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
78061
78309
|
*/
|
|
78062
78310
|
var AgentLoadSummarySchema = object({
|
|
78063
78311
|
nodeId: string(),
|
|
@@ -78146,26 +78394,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
78146
78394
|
width: number(),
|
|
78147
78395
|
height: number(),
|
|
78148
78396
|
subscribers: number(),
|
|
78149
|
-
|
|
78150
|
-
|
|
78397
|
+
/**
|
|
78398
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
78399
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
78400
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
78401
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
78402
|
+
* camera and is not served (D758).
|
|
78403
|
+
*/
|
|
78404
|
+
inFps: number().nullable()
|
|
78151
78405
|
})).readonly(),
|
|
78152
78406
|
webrtcSessions: number(),
|
|
78153
78407
|
rtspRestream: boolean()
|
|
78154
78408
|
});
|
|
78155
|
-
/**
|
|
78156
|
-
|
|
78157
|
-
|
|
78158
|
-
|
|
78159
|
-
|
|
78160
|
-
|
|
78161
|
-
|
|
78162
|
-
|
|
78163
|
-
var CameraDecoderStatusSchema = object({
|
|
78164
|
-
nodeId: string(),
|
|
78165
|
-
formats: array(string()).readonly(),
|
|
78166
|
-
sessionCount: number(),
|
|
78167
|
-
shm: CameraDecoderShmSchema
|
|
78168
|
-
});
|
|
78409
|
+
/**
|
|
78410
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
78411
|
+
* construction); null when the camera has no detection node. It carries no
|
|
78412
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
78413
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
78414
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
78415
|
+
* detector), never from a counter nothing feeds.
|
|
78416
|
+
*/
|
|
78417
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
78169
78418
|
/** Motion block — null when motion detection is not active for this device. */
|
|
78170
78419
|
var CameraMotionStatusSchema = object({
|
|
78171
78420
|
enabled: boolean(),
|
|
@@ -78522,12 +78771,6 @@ method(object({
|
|
|
78522
78771
|
}), object({ success: literal(true) }), {
|
|
78523
78772
|
kind: "mutation",
|
|
78524
78773
|
auth: "admin"
|
|
78525
|
-
}), method(object({
|
|
78526
|
-
agentNodeId: string(),
|
|
78527
|
-
detectWeight: number().positive().nullable()
|
|
78528
|
-
}), object({ success: literal(true) }), {
|
|
78529
|
-
kind: "mutation",
|
|
78530
|
-
auth: "admin"
|
|
78531
78774
|
}), method(object({
|
|
78532
78775
|
agentNodeId: string(),
|
|
78533
78776
|
detect: boolean().nullable().optional(),
|
|
@@ -78569,6 +78812,15 @@ method(object({
|
|
|
78569
78812
|
}), {
|
|
78570
78813
|
kind: "mutation",
|
|
78571
78814
|
auth: "admin"
|
|
78815
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
78816
|
+
kind: "mutation",
|
|
78817
|
+
auth: "admin"
|
|
78818
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
78819
|
+
kind: "mutation",
|
|
78820
|
+
auth: "admin"
|
|
78821
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
78822
|
+
kind: "mutation",
|
|
78823
|
+
auth: "admin"
|
|
78572
78824
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
78573
78825
|
deviceId: number(),
|
|
78574
78826
|
addonId: string(),
|
|
@@ -78585,6 +78837,13 @@ method(object({
|
|
|
78585
78837
|
}), object({ success: literal(true) }), {
|
|
78586
78838
|
kind: "mutation",
|
|
78587
78839
|
auth: "admin"
|
|
78840
|
+
}), method(object({
|
|
78841
|
+
deviceId: number(),
|
|
78842
|
+
addonId: string(),
|
|
78843
|
+
settings: record(string(), unknown()).nullable()
|
|
78844
|
+
}), object({ success: literal(true) }), {
|
|
78845
|
+
kind: "mutation",
|
|
78846
|
+
auth: "admin"
|
|
78588
78847
|
}), method(object({
|
|
78589
78848
|
deviceId: number(),
|
|
78590
78849
|
agentNodeId: string(),
|
|
@@ -78608,25 +78867,7 @@ method(object({
|
|
|
78608
78867
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
78609
78868
|
kind: "mutation",
|
|
78610
78869
|
auth: "admin"
|
|
78611
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
78612
|
-
name: string(),
|
|
78613
|
-
description: string().optional(),
|
|
78614
|
-
config: CameraPipelineConfigSchema
|
|
78615
|
-
}), PipelineTemplateSchema, {
|
|
78616
|
-
kind: "mutation",
|
|
78617
|
-
auth: "admin"
|
|
78618
|
-
}), method(object({
|
|
78619
|
-
id: string(),
|
|
78620
|
-
name: string().optional(),
|
|
78621
|
-
description: string().optional(),
|
|
78622
|
-
config: CameraPipelineConfigSchema.optional()
|
|
78623
|
-
}), PipelineTemplateSchema, {
|
|
78624
|
-
kind: "mutation",
|
|
78625
|
-
auth: "admin"
|
|
78626
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
78627
|
-
kind: "mutation",
|
|
78628
|
-
auth: "admin"
|
|
78629
|
-
});
|
|
78870
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
78630
78871
|
/**
|
|
78631
78872
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
78632
78873
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -80875,8 +81116,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
80875
81116
|
]).nullable(),
|
|
80876
81117
|
/** Input FPS from the camera (null for adaptive). */
|
|
80877
81118
|
inputFps: number().nullable(),
|
|
80878
|
-
/** Decoded FPS (null for adaptive). */
|
|
80879
|
-
decodeFps: number().nullable(),
|
|
80880
81119
|
/** Bitrate in kbps (null for adaptive). */
|
|
80881
81120
|
bitrateKbps: number().nullable()
|
|
80882
81121
|
});
|
|
@@ -92438,6 +92677,16 @@ var zoneRulesCapability = {
|
|
|
92438
92677
|
durability: "restored"
|
|
92439
92678
|
};
|
|
92440
92679
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
92680
|
+
Object.freeze({
|
|
92681
|
+
person: .5,
|
|
92682
|
+
vehicle: .5,
|
|
92683
|
+
animal: .5
|
|
92684
|
+
});
|
|
92685
|
+
Object.freeze({
|
|
92686
|
+
person: .65,
|
|
92687
|
+
vehicle: .65,
|
|
92688
|
+
animal: .65
|
|
92689
|
+
});
|
|
92441
92690
|
/**
|
|
92442
92691
|
* Accessory device helpers — shared across drivers.
|
|
92443
92692
|
*
|
|
@@ -95318,90 +95567,18 @@ Object.freeze({
|
|
|
95318
95567
|
addonId: null,
|
|
95319
95568
|
access: "create"
|
|
95320
95569
|
},
|
|
95321
|
-
"decoder.createSession": {
|
|
95322
|
-
capName: "decoder",
|
|
95323
|
-
capScope: "system",
|
|
95324
|
-
addonId: null,
|
|
95325
|
-
access: "view"
|
|
95326
|
-
},
|
|
95327
|
-
"decoder.destroySession": {
|
|
95328
|
-
capName: "decoder",
|
|
95329
|
-
capScope: "system",
|
|
95330
|
-
addonId: null,
|
|
95331
|
-
access: "delete"
|
|
95332
|
-
},
|
|
95333
|
-
"decoder.getFrame": {
|
|
95334
|
-
capName: "decoder",
|
|
95335
|
-
capScope: "system",
|
|
95336
|
-
addonId: null,
|
|
95337
|
-
access: "view"
|
|
95338
|
-
},
|
|
95339
95570
|
"decoder.getInfo": {
|
|
95340
95571
|
capName: "decoder",
|
|
95341
95572
|
capScope: "system",
|
|
95342
95573
|
addonId: null,
|
|
95343
95574
|
access: "view"
|
|
95344
95575
|
},
|
|
95345
|
-
"decoder.getShmStats": {
|
|
95346
|
-
capName: "decoder",
|
|
95347
|
-
capScope: "system",
|
|
95348
|
-
addonId: null,
|
|
95349
|
-
access: "view"
|
|
95350
|
-
},
|
|
95351
|
-
"decoder.getStats": {
|
|
95352
|
-
capName: "decoder",
|
|
95353
|
-
capScope: "system",
|
|
95354
|
-
addonId: null,
|
|
95355
|
-
access: "view"
|
|
95356
|
-
},
|
|
95357
|
-
"decoder.listActiveSessions": {
|
|
95358
|
-
capName: "decoder",
|
|
95359
|
-
capScope: "system",
|
|
95360
|
-
addonId: null,
|
|
95361
|
-
access: "view"
|
|
95362
|
-
},
|
|
95363
|
-
"decoder.openStream": {
|
|
95364
|
-
capName: "decoder",
|
|
95365
|
-
capScope: "system",
|
|
95366
|
-
addonId: null,
|
|
95367
|
-
access: "view"
|
|
95368
|
-
},
|
|
95369
|
-
"decoder.pullFrames": {
|
|
95370
|
-
capName: "decoder",
|
|
95371
|
-
capScope: "system",
|
|
95372
|
-
addonId: null,
|
|
95373
|
-
access: "view"
|
|
95374
|
-
},
|
|
95375
|
-
"decoder.pullHandles": {
|
|
95376
|
-
capName: "decoder",
|
|
95377
|
-
capScope: "system",
|
|
95378
|
-
addonId: null,
|
|
95379
|
-
access: "view"
|
|
95380
|
-
},
|
|
95381
|
-
"decoder.pushPacket": {
|
|
95382
|
-
capName: "decoder",
|
|
95383
|
-
capScope: "system",
|
|
95384
|
-
addonId: null,
|
|
95385
|
-
access: "view"
|
|
95386
|
-
},
|
|
95387
95576
|
"decoder.reprobeHwaccel": {
|
|
95388
95577
|
capName: "decoder",
|
|
95389
95578
|
capScope: "system",
|
|
95390
95579
|
addonId: null,
|
|
95391
95580
|
access: "create"
|
|
95392
95581
|
},
|
|
95393
|
-
"decoder.supportsCodec": {
|
|
95394
|
-
capName: "decoder",
|
|
95395
|
-
capScope: "system",
|
|
95396
|
-
addonId: null,
|
|
95397
|
-
access: "view"
|
|
95398
|
-
},
|
|
95399
|
-
"decoder.updateConfig": {
|
|
95400
|
-
capName: "decoder",
|
|
95401
|
-
capScope: "system",
|
|
95402
|
-
addonId: null,
|
|
95403
|
-
access: "view"
|
|
95404
|
-
},
|
|
95405
95582
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
95406
95583
|
capName: "detection-pipeline",
|
|
95407
95584
|
capScope: "device",
|
|
@@ -98480,13 +98657,13 @@ Object.freeze({
|
|
|
98480
98657
|
addonId: null,
|
|
98481
98658
|
access: "delete"
|
|
98482
98659
|
},
|
|
98483
|
-
"pipelineExecutor.
|
|
98660
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
98484
98661
|
capName: "pipeline-executor",
|
|
98485
98662
|
capScope: "system",
|
|
98486
98663
|
addonId: null,
|
|
98487
98664
|
access: "delete"
|
|
98488
98665
|
},
|
|
98489
|
-
"pipelineExecutor.
|
|
98666
|
+
"pipelineExecutor.deleteModel": {
|
|
98490
98667
|
capName: "pipeline-executor",
|
|
98491
98668
|
capScope: "system",
|
|
98492
98669
|
addonId: null,
|
|
@@ -98630,12 +98807,6 @@ Object.freeze({
|
|
|
98630
98807
|
addonId: null,
|
|
98631
98808
|
access: "view"
|
|
98632
98809
|
},
|
|
98633
|
-
"pipelineExecutor.listTemplates": {
|
|
98634
|
-
capName: "pipeline-executor",
|
|
98635
|
-
capScope: "system",
|
|
98636
|
-
addonId: null,
|
|
98637
|
-
access: "view"
|
|
98638
|
-
},
|
|
98639
98810
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
98640
98811
|
capName: "pipeline-executor",
|
|
98641
98812
|
capScope: "system",
|
|
@@ -98660,12 +98831,6 @@ Object.freeze({
|
|
|
98660
98831
|
addonId: null,
|
|
98661
98832
|
access: "create"
|
|
98662
98833
|
},
|
|
98663
|
-
"pipelineExecutor.saveTemplate": {
|
|
98664
|
-
capName: "pipeline-executor",
|
|
98665
|
-
capScope: "system",
|
|
98666
|
-
addonId: null,
|
|
98667
|
-
access: "create"
|
|
98668
|
-
},
|
|
98669
98834
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
98670
98835
|
capName: "pipeline-executor",
|
|
98671
98836
|
capScope: "system",
|
|
@@ -98684,41 +98849,35 @@ Object.freeze({
|
|
|
98684
98849
|
addonId: null,
|
|
98685
98850
|
access: "create"
|
|
98686
98851
|
},
|
|
98687
|
-
"pipelineExecutor.updateTemplate": {
|
|
98688
|
-
capName: "pipeline-executor",
|
|
98689
|
-
capScope: "system",
|
|
98690
|
-
addonId: null,
|
|
98691
|
-
access: "create"
|
|
98692
|
-
},
|
|
98693
98852
|
"pipelineExecutor.validatePipeline": {
|
|
98694
98853
|
capName: "pipeline-executor",
|
|
98695
98854
|
capScope: "system",
|
|
98696
98855
|
addonId: null,
|
|
98697
98856
|
access: "view"
|
|
98698
98857
|
},
|
|
98699
|
-
"pipelineOrchestrator.
|
|
98858
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
98700
98859
|
capName: "pipeline-orchestrator",
|
|
98701
98860
|
capScope: "system",
|
|
98702
98861
|
addonId: null,
|
|
98703
98862
|
access: "create"
|
|
98704
98863
|
},
|
|
98705
|
-
"pipelineOrchestrator.
|
|
98864
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
98706
98865
|
capName: "pipeline-orchestrator",
|
|
98707
98866
|
capScope: "system",
|
|
98708
98867
|
addonId: null,
|
|
98709
98868
|
access: "create"
|
|
98710
98869
|
},
|
|
98711
|
-
"pipelineOrchestrator.
|
|
98870
|
+
"pipelineOrchestrator.assignAudio": {
|
|
98712
98871
|
capName: "pipeline-orchestrator",
|
|
98713
98872
|
capScope: "system",
|
|
98714
98873
|
addonId: null,
|
|
98715
98874
|
access: "create"
|
|
98716
98875
|
},
|
|
98717
|
-
"pipelineOrchestrator.
|
|
98876
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
98718
98877
|
capName: "pipeline-orchestrator",
|
|
98719
98878
|
capScope: "system",
|
|
98720
98879
|
addonId: null,
|
|
98721
|
-
access: "
|
|
98880
|
+
access: "create"
|
|
98722
98881
|
},
|
|
98723
98882
|
"pipelineOrchestrator.getAgentLoad": {
|
|
98724
98883
|
capName: "pipeline-orchestrator",
|
|
@@ -98810,6 +98969,12 @@ Object.freeze({
|
|
|
98810
98969
|
addonId: null,
|
|
98811
98970
|
access: "view"
|
|
98812
98971
|
},
|
|
98972
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
98973
|
+
capName: "pipeline-orchestrator",
|
|
98974
|
+
capScope: "system",
|
|
98975
|
+
addonId: null,
|
|
98976
|
+
access: "view"
|
|
98977
|
+
},
|
|
98813
98978
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
98814
98979
|
capName: "pipeline-orchestrator",
|
|
98815
98980
|
capScope: "system",
|
|
@@ -98846,19 +99011,19 @@ Object.freeze({
|
|
|
98846
99011
|
addonId: null,
|
|
98847
99012
|
access: "view"
|
|
98848
99013
|
},
|
|
98849
|
-
"pipelineOrchestrator.
|
|
99014
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
98850
99015
|
capName: "pipeline-orchestrator",
|
|
98851
99016
|
capScope: "system",
|
|
98852
99017
|
addonId: null,
|
|
98853
99018
|
access: "view"
|
|
98854
99019
|
},
|
|
98855
|
-
"pipelineOrchestrator.
|
|
99020
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
98856
99021
|
capName: "pipeline-orchestrator",
|
|
98857
99022
|
capScope: "system",
|
|
98858
99023
|
addonId: null,
|
|
98859
99024
|
access: "view"
|
|
98860
99025
|
},
|
|
98861
|
-
"pipelineOrchestrator.
|
|
99026
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
98862
99027
|
capName: "pipeline-orchestrator",
|
|
98863
99028
|
capScope: "system",
|
|
98864
99029
|
addonId: null,
|
|
@@ -98870,6 +99035,12 @@ Object.freeze({
|
|
|
98870
99035
|
addonId: null,
|
|
98871
99036
|
access: "create"
|
|
98872
99037
|
},
|
|
99038
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
99039
|
+
capName: "pipeline-orchestrator",
|
|
99040
|
+
capScope: "system",
|
|
99041
|
+
addonId: null,
|
|
99042
|
+
access: "view"
|
|
99043
|
+
},
|
|
98873
99044
|
"pipelineOrchestrator.rebalance": {
|
|
98874
99045
|
capName: "pipeline-orchestrator",
|
|
98875
99046
|
capScope: "system",
|
|
@@ -98912,12 +99083,6 @@ Object.freeze({
|
|
|
98912
99083
|
addonId: null,
|
|
98913
99084
|
access: "create"
|
|
98914
99085
|
},
|
|
98915
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
98916
|
-
capName: "pipeline-orchestrator",
|
|
98917
|
-
capScope: "system",
|
|
98918
|
-
addonId: null,
|
|
98919
|
-
access: "create"
|
|
98920
|
-
},
|
|
98921
99086
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
98922
99087
|
capName: "pipeline-orchestrator",
|
|
98923
99088
|
capScope: "system",
|
|
@@ -98930,12 +99095,6 @@ Object.freeze({
|
|
|
98930
99095
|
addonId: null,
|
|
98931
99096
|
access: "create"
|
|
98932
99097
|
},
|
|
98933
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
98934
|
-
capName: "pipeline-orchestrator",
|
|
98935
|
-
capScope: "system",
|
|
98936
|
-
addonId: null,
|
|
98937
|
-
access: "create"
|
|
98938
|
-
},
|
|
98939
99098
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
98940
99099
|
capName: "pipeline-orchestrator",
|
|
98941
99100
|
capScope: "system",
|
|
@@ -98972,6 +99131,12 @@ Object.freeze({
|
|
|
98972
99131
|
addonId: null,
|
|
98973
99132
|
access: "create"
|
|
98974
99133
|
},
|
|
99134
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
99135
|
+
capName: "pipeline-orchestrator",
|
|
99136
|
+
capScope: "system",
|
|
99137
|
+
addonId: null,
|
|
99138
|
+
access: "create"
|
|
99139
|
+
},
|
|
98975
99140
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
98976
99141
|
capName: "pipeline-orchestrator",
|
|
98977
99142
|
capScope: "system",
|
|
@@ -98990,25 +99155,37 @@ Object.freeze({
|
|
|
98990
99155
|
addonId: null,
|
|
98991
99156
|
access: "create"
|
|
98992
99157
|
},
|
|
99158
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
99159
|
+
capName: "pipeline-orchestrator",
|
|
99160
|
+
capScope: "system",
|
|
99161
|
+
addonId: null,
|
|
99162
|
+
access: "create"
|
|
99163
|
+
},
|
|
98993
99164
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
98994
99165
|
capName: "pipeline-orchestrator",
|
|
98995
99166
|
capScope: "system",
|
|
98996
99167
|
addonId: null,
|
|
98997
99168
|
access: "create"
|
|
98998
99169
|
},
|
|
98999
|
-
"pipelineOrchestrator.
|
|
99170
|
+
"pipelineOrchestrator.setShareSource": {
|
|
99000
99171
|
capName: "pipeline-orchestrator",
|
|
99001
99172
|
capScope: "system",
|
|
99002
99173
|
addonId: null,
|
|
99003
99174
|
access: "create"
|
|
99004
99175
|
},
|
|
99005
|
-
"pipelineOrchestrator.
|
|
99176
|
+
"pipelineOrchestrator.suggestShares": {
|
|
99177
|
+
capName: "pipeline-orchestrator",
|
|
99178
|
+
capScope: "system",
|
|
99179
|
+
addonId: null,
|
|
99180
|
+
access: "view"
|
|
99181
|
+
},
|
|
99182
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
99006
99183
|
capName: "pipeline-orchestrator",
|
|
99007
99184
|
capScope: "system",
|
|
99008
99185
|
addonId: null,
|
|
99009
99186
|
access: "create"
|
|
99010
99187
|
},
|
|
99011
|
-
"pipelineOrchestrator.
|
|
99188
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
99012
99189
|
capName: "pipeline-orchestrator",
|
|
99013
99190
|
capScope: "system",
|
|
99014
99191
|
addonId: null,
|
|
@@ -100448,12 +100625,6 @@ Object.freeze({
|
|
|
100448
100625
|
addonId: null,
|
|
100449
100626
|
access: "view"
|
|
100450
100627
|
},
|
|
100451
|
-
"streamBroker.pullFrameHandles": {
|
|
100452
|
-
capName: "stream-broker",
|
|
100453
|
-
capScope: "system",
|
|
100454
|
-
addonId: null,
|
|
100455
|
-
access: "view"
|
|
100456
|
-
},
|
|
100457
100628
|
"streamBroker.regenerateRtspToken": {
|
|
100458
100629
|
capName: "stream-broker",
|
|
100459
100630
|
capScope: "system",
|
|
@@ -100520,12 +100691,6 @@ Object.freeze({
|
|
|
100520
100691
|
addonId: null,
|
|
100521
100692
|
access: "create"
|
|
100522
100693
|
},
|
|
100523
|
-
"streamBroker.subscribeFrames": {
|
|
100524
|
-
capName: "stream-broker",
|
|
100525
|
-
capScope: "system",
|
|
100526
|
-
addonId: null,
|
|
100527
|
-
access: "create"
|
|
100528
|
-
},
|
|
100529
100694
|
"streamBroker.unassignProfile": {
|
|
100530
100695
|
capName: "stream-broker",
|
|
100531
100696
|
capScope: "system",
|
|
@@ -100538,12 +100703,6 @@ Object.freeze({
|
|
|
100538
100703
|
addonId: null,
|
|
100539
100704
|
access: "create"
|
|
100540
100705
|
},
|
|
100541
|
-
"streamBroker.unsubscribeFrames": {
|
|
100542
|
-
capName: "stream-broker",
|
|
100543
|
-
capScope: "system",
|
|
100544
|
-
addonId: null,
|
|
100545
|
-
access: "create"
|
|
100546
|
-
},
|
|
100547
100706
|
"streamCatalog.getCatalog": {
|
|
100548
100707
|
capName: "stream-catalog",
|
|
100549
100708
|
capScope: "device",
|
|
@@ -103057,11 +103216,6 @@ Object.freeze({
|
|
|
103057
103216
|
form: "single",
|
|
103058
103217
|
optional: false
|
|
103059
103218
|
}],
|
|
103060
|
-
"decoder.createSession": [{
|
|
103061
|
-
name: "deviceId",
|
|
103062
|
-
form: "single",
|
|
103063
|
-
optional: true
|
|
103064
|
-
}],
|
|
103065
103219
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
103066
103220
|
name: "deviceId",
|
|
103067
103221
|
form: "single",
|
|
@@ -104292,6 +104446,11 @@ Object.freeze({
|
|
|
104292
104446
|
form: "single",
|
|
104293
104447
|
optional: false
|
|
104294
104448
|
}],
|
|
104449
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
104450
|
+
name: "deviceIds",
|
|
104451
|
+
form: "array",
|
|
104452
|
+
optional: true
|
|
104453
|
+
}],
|
|
104295
104454
|
"pipelineExecutor.runPipeline": [{
|
|
104296
104455
|
name: "deviceId",
|
|
104297
104456
|
form: "single",
|
|
@@ -104397,6 +104556,11 @@ Object.freeze({
|
|
|
104397
104556
|
form: "single",
|
|
104398
104557
|
optional: false
|
|
104399
104558
|
}],
|
|
104559
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
104560
|
+
name: "deviceId",
|
|
104561
|
+
form: "single",
|
|
104562
|
+
optional: false
|
|
104563
|
+
}],
|
|
104400
104564
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
104401
104565
|
name: "deviceId",
|
|
104402
104566
|
form: "single",
|