@camstack/addon-provider-dreame 0.2.125 → 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 +676 -495
- package/dist/addon.mjs +676 -495
- 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
|
});
|
|
@@ -69139,6 +69031,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
69139
69031
|
kind: "mutation",
|
|
69140
69032
|
auth: "admin"
|
|
69141
69033
|
});
|
|
69034
|
+
var HUB_ADDRESS_ROLES = [
|
|
69035
|
+
"appConnections",
|
|
69036
|
+
"notificationTaps",
|
|
69037
|
+
"internal",
|
|
69038
|
+
"publicEndpoint"
|
|
69039
|
+
];
|
|
69142
69040
|
function hostnameOf(baseUrl) {
|
|
69143
69041
|
try {
|
|
69144
69042
|
const host = new URL(baseUrl).hostname;
|
|
@@ -73360,7 +73258,13 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
73360
73258
|
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
73361
73259
|
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
73362
73260
|
*/
|
|
73363
|
-
notifySensorRewatched: boolean().optional()
|
|
73261
|
+
notifySensorRewatched: boolean().optional(),
|
|
73262
|
+
/**
|
|
73263
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
73264
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
73265
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
73266
|
+
*/
|
|
73267
|
+
notifySensorIgnored: boolean().optional()
|
|
73364
73268
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
73365
73269
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
73366
73270
|
mode: AlarmArmModeSchema,
|
|
@@ -73373,7 +73277,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
73373
73277
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
73374
73278
|
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
73375
73279
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
73376
|
-
notifySensorRewatched: boolean().nullable().optional()
|
|
73280
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
73281
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
73282
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
73377
73283
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
73378
73284
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
73379
73285
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -74351,8 +74257,8 @@ Object.freeze(Object.fromEntries([{
|
|
|
74351
74257
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
74352
74258
|
stepId: "face-embedding",
|
|
74353
74259
|
key: "minLandmarkFaceSize",
|
|
74354
|
-
label: "Min face size
|
|
74355
|
-
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.",
|
|
74356
74262
|
type: "slider",
|
|
74357
74263
|
min: 0,
|
|
74358
74264
|
max: 64,
|
|
@@ -76347,7 +76253,7 @@ var FrameRefSchema = object({
|
|
|
76347
76253
|
timestamp: number(),
|
|
76348
76254
|
capturedAt: number().optional()
|
|
76349
76255
|
});
|
|
76350
|
-
var ModelFormatSchema$
|
|
76256
|
+
var ModelFormatSchema$2 = _enum([
|
|
76351
76257
|
"onnx",
|
|
76352
76258
|
"coreml",
|
|
76353
76259
|
"openvino",
|
|
@@ -76365,7 +76271,7 @@ var PipelineSlotSchema = _enum([
|
|
|
76365
76271
|
var PipelineEngineChoiceSchema = object({
|
|
76366
76272
|
runtime: literal("python"),
|
|
76367
76273
|
backend: string(),
|
|
76368
|
-
format: ModelFormatSchema$
|
|
76274
|
+
format: ModelFormatSchema$2,
|
|
76369
76275
|
device: string().optional()
|
|
76370
76276
|
});
|
|
76371
76277
|
/**
|
|
@@ -76404,28 +76310,10 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
76404
76310
|
group: string().optional(),
|
|
76405
76311
|
settings: record(string(), unknown()).optional()
|
|
76406
76312
|
}));
|
|
76407
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
76408
|
-
addonId: string(),
|
|
76409
|
-
enabled: boolean(),
|
|
76410
|
-
modelId: string(),
|
|
76411
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
76412
|
-
settings: record(string(), unknown()).optional()
|
|
76413
|
-
}));
|
|
76414
|
-
var PipelineTemplateSchema$1 = object({
|
|
76415
|
-
id: string(),
|
|
76416
|
-
name: string(),
|
|
76417
|
-
createdAt: string(),
|
|
76418
|
-
updatedAt: string(),
|
|
76419
|
-
engine: PipelineEngineChoiceSchema,
|
|
76420
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
76421
|
-
});
|
|
76422
76313
|
var PipelineModelOptionSchema = object({
|
|
76423
76314
|
id: string(),
|
|
76424
76315
|
name: string(),
|
|
76425
|
-
formats: record(string(),
|
|
76426
|
-
downloaded: boolean(),
|
|
76427
|
-
sizeMB: number()
|
|
76428
|
-
})),
|
|
76316
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
76429
76317
|
group: ModelVariantGroupSchema.optional(),
|
|
76430
76318
|
legacy: boolean().optional(),
|
|
76431
76319
|
provider: ModelProviderIdSchema.optional(),
|
|
@@ -76592,6 +76480,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76592
76480
|
}), {
|
|
76593
76481
|
kind: "mutation",
|
|
76594
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"
|
|
76595
76499
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
76596
76500
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
76597
76501
|
deviceKey: string(),
|
|
@@ -76617,22 +76521,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76617
76521
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
76618
76522
|
steps: array(PipelineStepInputSchema),
|
|
76619
76523
|
deviceKey: string().optional()
|
|
76620
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
76621
|
-
name: string(),
|
|
76622
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
76623
|
-
engine: PipelineEngineChoiceSchema
|
|
76624
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
76625
|
-
id: string(),
|
|
76626
|
-
name: string().optional(),
|
|
76627
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
76628
|
-
}), 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({
|
|
76629
76525
|
addonId: string(),
|
|
76630
76526
|
modelId: string(),
|
|
76631
|
-
format: ModelFormatSchema$
|
|
76527
|
+
format: ModelFormatSchema$2
|
|
76632
76528
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
76633
76529
|
addonId: string(),
|
|
76634
76530
|
modelId: string(),
|
|
76635
|
-
format: ModelFormatSchema$
|
|
76531
|
+
format: ModelFormatSchema$2
|
|
76636
76532
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
76637
76533
|
steps: array(PipelineStepInputSchema).min(1),
|
|
76638
76534
|
frame: FrameInputSchema.optional(),
|
|
@@ -76789,6 +76685,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76789
76685
|
filename: string().optional(),
|
|
76790
76686
|
settings: record(string(), unknown()).optional()
|
|
76791
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
|
+
});
|
|
76792
77057
|
object({
|
|
76793
77058
|
activeCameras: number(),
|
|
76794
77059
|
throttledCameras: number(),
|
|
@@ -77706,14 +77971,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
77706
77971
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
77707
77972
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
77708
77973
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
77709
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
77710
|
-
* 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).
|
|
77711
77978
|
*/
|
|
77712
77979
|
devices: array(object({
|
|
77713
77980
|
deviceKey: string(),
|
|
77714
77981
|
backend: string(),
|
|
77715
|
-
attachedCameras: number()
|
|
77716
|
-
queueDepthTotal: number()
|
|
77982
|
+
attachedCameras: number()
|
|
77717
77983
|
})).default([]),
|
|
77718
77984
|
/** Hardware capability flags reported by this node. */
|
|
77719
77985
|
hardware: object({
|
|
@@ -77927,14 +78193,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
77927
78193
|
settings: record(string(), unknown()).readonly().optional()
|
|
77928
78194
|
}).nullable().optional()
|
|
77929
78195
|
});
|
|
77930
|
-
var PipelineTemplateSchema = object({
|
|
77931
|
-
id: string(),
|
|
77932
|
-
name: string(),
|
|
77933
|
-
description: string().optional(),
|
|
77934
|
-
config: CameraPipelineConfigSchema,
|
|
77935
|
-
createdAt: string(),
|
|
77936
|
-
updatedAt: string()
|
|
77937
|
-
});
|
|
77938
78196
|
var DeviceStepConfigSchema = object({
|
|
77939
78197
|
modelId: string().optional(),
|
|
77940
78198
|
settings: record(string(), unknown()).optional(),
|
|
@@ -78008,9 +78266,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
78008
78266
|
modelId: string().optional(),
|
|
78009
78267
|
settings: record(string(), unknown()).readonly().optional()
|
|
78010
78268
|
});
|
|
78269
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
78011
78270
|
var CameraPipelineSettingsSchema = object({
|
|
78012
|
-
pinnedAgentNodeId: string().optional(),
|
|
78013
78271
|
stepToggles: record(string(), boolean()).optional(),
|
|
78272
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
78014
78273
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
78015
78274
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
78016
78275
|
});
|
|
@@ -78043,7 +78302,10 @@ var PipelineAssignmentSchema = object({
|
|
|
78043
78302
|
});
|
|
78044
78303
|
/**
|
|
78045
78304
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
78046
|
-
* 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.
|
|
78047
78309
|
*/
|
|
78048
78310
|
var AgentLoadSummarySchema = object({
|
|
78049
78311
|
nodeId: string(),
|
|
@@ -78132,26 +78394,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
78132
78394
|
width: number(),
|
|
78133
78395
|
height: number(),
|
|
78134
78396
|
subscribers: number(),
|
|
78135
|
-
|
|
78136
|
-
|
|
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()
|
|
78137
78405
|
})).readonly(),
|
|
78138
78406
|
webrtcSessions: number(),
|
|
78139
78407
|
rtspRestream: boolean()
|
|
78140
78408
|
});
|
|
78141
|
-
/**
|
|
78142
|
-
|
|
78143
|
-
|
|
78144
|
-
|
|
78145
|
-
|
|
78146
|
-
|
|
78147
|
-
|
|
78148
|
-
|
|
78149
|
-
var CameraDecoderStatusSchema = object({
|
|
78150
|
-
nodeId: string(),
|
|
78151
|
-
formats: array(string()).readonly(),
|
|
78152
|
-
sessionCount: number(),
|
|
78153
|
-
shm: CameraDecoderShmSchema
|
|
78154
|
-
});
|
|
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() });
|
|
78155
78418
|
/** Motion block — null when motion detection is not active for this device. */
|
|
78156
78419
|
var CameraMotionStatusSchema = object({
|
|
78157
78420
|
enabled: boolean(),
|
|
@@ -78508,12 +78771,6 @@ method(object({
|
|
|
78508
78771
|
}), object({ success: literal(true) }), {
|
|
78509
78772
|
kind: "mutation",
|
|
78510
78773
|
auth: "admin"
|
|
78511
|
-
}), method(object({
|
|
78512
|
-
agentNodeId: string(),
|
|
78513
|
-
detectWeight: number().positive().nullable()
|
|
78514
|
-
}), object({ success: literal(true) }), {
|
|
78515
|
-
kind: "mutation",
|
|
78516
|
-
auth: "admin"
|
|
78517
78774
|
}), method(object({
|
|
78518
78775
|
agentNodeId: string(),
|
|
78519
78776
|
detect: boolean().nullable().optional(),
|
|
@@ -78555,6 +78812,15 @@ method(object({
|
|
|
78555
78812
|
}), {
|
|
78556
78813
|
kind: "mutation",
|
|
78557
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"
|
|
78558
78824
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
78559
78825
|
deviceId: number(),
|
|
78560
78826
|
addonId: string(),
|
|
@@ -78571,6 +78837,13 @@ method(object({
|
|
|
78571
78837
|
}), object({ success: literal(true) }), {
|
|
78572
78838
|
kind: "mutation",
|
|
78573
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"
|
|
78574
78847
|
}), method(object({
|
|
78575
78848
|
deviceId: number(),
|
|
78576
78849
|
agentNodeId: string(),
|
|
@@ -78594,25 +78867,7 @@ method(object({
|
|
|
78594
78867
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
78595
78868
|
kind: "mutation",
|
|
78596
78869
|
auth: "admin"
|
|
78597
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
78598
|
-
name: string(),
|
|
78599
|
-
description: string().optional(),
|
|
78600
|
-
config: CameraPipelineConfigSchema
|
|
78601
|
-
}), PipelineTemplateSchema, {
|
|
78602
|
-
kind: "mutation",
|
|
78603
|
-
auth: "admin"
|
|
78604
|
-
}), method(object({
|
|
78605
|
-
id: string(),
|
|
78606
|
-
name: string().optional(),
|
|
78607
|
-
description: string().optional(),
|
|
78608
|
-
config: CameraPipelineConfigSchema.optional()
|
|
78609
|
-
}), PipelineTemplateSchema, {
|
|
78610
|
-
kind: "mutation",
|
|
78611
|
-
auth: "admin"
|
|
78612
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
78613
|
-
kind: "mutation",
|
|
78614
|
-
auth: "admin"
|
|
78615
|
-
});
|
|
78870
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
78616
78871
|
/**
|
|
78617
78872
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
78618
78873
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -80861,8 +81116,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
80861
81116
|
]).nullable(),
|
|
80862
81117
|
/** Input FPS from the camera (null for adaptive). */
|
|
80863
81118
|
inputFps: number().nullable(),
|
|
80864
|
-
/** Decoded FPS (null for adaptive). */
|
|
80865
|
-
decodeFps: number().nullable(),
|
|
80866
81119
|
/** Bitrate in kbps (null for adaptive). */
|
|
80867
81120
|
bitrateKbps: number().nullable()
|
|
80868
81121
|
});
|
|
@@ -85108,7 +85361,7 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
85108
85361
|
localPort: AdvertisedLocalPortSchema
|
|
85109
85362
|
});
|
|
85110
85363
|
/**
|
|
85111
|
-
* The address flagged for notification
|
|
85364
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
85112
85365
|
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
85113
85366
|
* so the UI can show it either way.
|
|
85114
85367
|
*/
|
|
@@ -85143,8 +85396,8 @@ var ViewerEndpointsSchema = object({
|
|
|
85143
85396
|
});
|
|
85144
85397
|
/**
|
|
85145
85398
|
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
85146
|
-
*
|
|
85147
|
-
*
|
|
85399
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
85400
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
85148
85401
|
*/
|
|
85149
85402
|
var HubAddressSnapshotSchema = object({
|
|
85150
85403
|
override: string().nullable(),
|
|
@@ -85160,15 +85413,11 @@ var HubAddressesSchema = object({
|
|
|
85160
85413
|
browser: HubAddressSnapshotSchema
|
|
85161
85414
|
});
|
|
85162
85415
|
/**
|
|
85163
|
-
* What an address is used for (`hub-address.ts
|
|
85164
|
-
* `
|
|
85416
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
85417
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
85418
|
+
* by at most one address.
|
|
85165
85419
|
*/
|
|
85166
|
-
var HubAddressRoleSchema = _enum(
|
|
85167
|
-
"viewer",
|
|
85168
|
-
"notifications",
|
|
85169
|
-
"agents",
|
|
85170
|
-
"signIn"
|
|
85171
|
-
]);
|
|
85420
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
85172
85421
|
var RoleSourceSchema = _enum([
|
|
85173
85422
|
"flagged",
|
|
85174
85423
|
"auto",
|
|
@@ -85182,8 +85431,8 @@ var HubAddressRoleResolutionSchema = object({
|
|
|
85182
85431
|
resolved: string().nullable(),
|
|
85183
85432
|
source: RoleSourceSchema
|
|
85184
85433
|
});
|
|
85185
|
-
var
|
|
85186
|
-
/** The addresses flagged `
|
|
85434
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
85435
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
85187
85436
|
flagged: array(string()).readonly(),
|
|
85188
85437
|
/** What the apps race right now. */
|
|
85189
85438
|
resolved: array(string()).readonly(),
|
|
@@ -85203,10 +85452,10 @@ var HubAddressBookSchema = object({
|
|
|
85203
85452
|
eligible: array(HubAddressRoleSchema).readonly()
|
|
85204
85453
|
})).readonly(),
|
|
85205
85454
|
roles: object({
|
|
85206
|
-
|
|
85207
|
-
|
|
85208
|
-
|
|
85209
|
-
|
|
85455
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
85456
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
85457
|
+
internal: HubAddressRoleResolutionSchema,
|
|
85458
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
85210
85459
|
}),
|
|
85211
85460
|
/** The `hub=` an app link carries (D709), or null. */
|
|
85212
85461
|
appLinkHub: string().nullable()
|
|
@@ -85254,7 +85503,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
85254
85503
|
* tunnel always emits `https://` regardless. */
|
|
85255
85504
|
scheme: _enum(["http", "https"]).optional(),
|
|
85256
85505
|
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
85257
|
-
* an address notification
|
|
85506
|
+
* an address notification taps can be flagged with, not a hub
|
|
85258
85507
|
* route. Default `false`: racers and rankers never see it. */
|
|
85259
85508
|
includeAppLink: boolean().optional()
|
|
85260
85509
|
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
|
|
@@ -92428,6 +92677,16 @@ var zoneRulesCapability = {
|
|
|
92428
92677
|
durability: "restored"
|
|
92429
92678
|
};
|
|
92430
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
|
+
});
|
|
92431
92690
|
/**
|
|
92432
92691
|
* Accessory device helpers — shared across drivers.
|
|
92433
92692
|
*
|
|
@@ -95308,90 +95567,18 @@ Object.freeze({
|
|
|
95308
95567
|
addonId: null,
|
|
95309
95568
|
access: "create"
|
|
95310
95569
|
},
|
|
95311
|
-
"decoder.createSession": {
|
|
95312
|
-
capName: "decoder",
|
|
95313
|
-
capScope: "system",
|
|
95314
|
-
addonId: null,
|
|
95315
|
-
access: "view"
|
|
95316
|
-
},
|
|
95317
|
-
"decoder.destroySession": {
|
|
95318
|
-
capName: "decoder",
|
|
95319
|
-
capScope: "system",
|
|
95320
|
-
addonId: null,
|
|
95321
|
-
access: "delete"
|
|
95322
|
-
},
|
|
95323
|
-
"decoder.getFrame": {
|
|
95324
|
-
capName: "decoder",
|
|
95325
|
-
capScope: "system",
|
|
95326
|
-
addonId: null,
|
|
95327
|
-
access: "view"
|
|
95328
|
-
},
|
|
95329
95570
|
"decoder.getInfo": {
|
|
95330
95571
|
capName: "decoder",
|
|
95331
95572
|
capScope: "system",
|
|
95332
95573
|
addonId: null,
|
|
95333
95574
|
access: "view"
|
|
95334
95575
|
},
|
|
95335
|
-
"decoder.getShmStats": {
|
|
95336
|
-
capName: "decoder",
|
|
95337
|
-
capScope: "system",
|
|
95338
|
-
addonId: null,
|
|
95339
|
-
access: "view"
|
|
95340
|
-
},
|
|
95341
|
-
"decoder.getStats": {
|
|
95342
|
-
capName: "decoder",
|
|
95343
|
-
capScope: "system",
|
|
95344
|
-
addonId: null,
|
|
95345
|
-
access: "view"
|
|
95346
|
-
},
|
|
95347
|
-
"decoder.listActiveSessions": {
|
|
95348
|
-
capName: "decoder",
|
|
95349
|
-
capScope: "system",
|
|
95350
|
-
addonId: null,
|
|
95351
|
-
access: "view"
|
|
95352
|
-
},
|
|
95353
|
-
"decoder.openStream": {
|
|
95354
|
-
capName: "decoder",
|
|
95355
|
-
capScope: "system",
|
|
95356
|
-
addonId: null,
|
|
95357
|
-
access: "view"
|
|
95358
|
-
},
|
|
95359
|
-
"decoder.pullFrames": {
|
|
95360
|
-
capName: "decoder",
|
|
95361
|
-
capScope: "system",
|
|
95362
|
-
addonId: null,
|
|
95363
|
-
access: "view"
|
|
95364
|
-
},
|
|
95365
|
-
"decoder.pullHandles": {
|
|
95366
|
-
capName: "decoder",
|
|
95367
|
-
capScope: "system",
|
|
95368
|
-
addonId: null,
|
|
95369
|
-
access: "view"
|
|
95370
|
-
},
|
|
95371
|
-
"decoder.pushPacket": {
|
|
95372
|
-
capName: "decoder",
|
|
95373
|
-
capScope: "system",
|
|
95374
|
-
addonId: null,
|
|
95375
|
-
access: "view"
|
|
95376
|
-
},
|
|
95377
95576
|
"decoder.reprobeHwaccel": {
|
|
95378
95577
|
capName: "decoder",
|
|
95379
95578
|
capScope: "system",
|
|
95380
95579
|
addonId: null,
|
|
95381
95580
|
access: "create"
|
|
95382
95581
|
},
|
|
95383
|
-
"decoder.supportsCodec": {
|
|
95384
|
-
capName: "decoder",
|
|
95385
|
-
capScope: "system",
|
|
95386
|
-
addonId: null,
|
|
95387
|
-
access: "view"
|
|
95388
|
-
},
|
|
95389
|
-
"decoder.updateConfig": {
|
|
95390
|
-
capName: "decoder",
|
|
95391
|
-
capScope: "system",
|
|
95392
|
-
addonId: null,
|
|
95393
|
-
access: "view"
|
|
95394
|
-
},
|
|
95395
95582
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
95396
95583
|
capName: "detection-pipeline",
|
|
95397
95584
|
capScope: "device",
|
|
@@ -98470,13 +98657,13 @@ Object.freeze({
|
|
|
98470
98657
|
addonId: null,
|
|
98471
98658
|
access: "delete"
|
|
98472
98659
|
},
|
|
98473
|
-
"pipelineExecutor.
|
|
98660
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
98474
98661
|
capName: "pipeline-executor",
|
|
98475
98662
|
capScope: "system",
|
|
98476
98663
|
addonId: null,
|
|
98477
98664
|
access: "delete"
|
|
98478
98665
|
},
|
|
98479
|
-
"pipelineExecutor.
|
|
98666
|
+
"pipelineExecutor.deleteModel": {
|
|
98480
98667
|
capName: "pipeline-executor",
|
|
98481
98668
|
capScope: "system",
|
|
98482
98669
|
addonId: null,
|
|
@@ -98620,12 +98807,6 @@ Object.freeze({
|
|
|
98620
98807
|
addonId: null,
|
|
98621
98808
|
access: "view"
|
|
98622
98809
|
},
|
|
98623
|
-
"pipelineExecutor.listTemplates": {
|
|
98624
|
-
capName: "pipeline-executor",
|
|
98625
|
-
capScope: "system",
|
|
98626
|
-
addonId: null,
|
|
98627
|
-
access: "view"
|
|
98628
|
-
},
|
|
98629
98810
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
98630
98811
|
capName: "pipeline-executor",
|
|
98631
98812
|
capScope: "system",
|
|
@@ -98650,12 +98831,6 @@ Object.freeze({
|
|
|
98650
98831
|
addonId: null,
|
|
98651
98832
|
access: "create"
|
|
98652
98833
|
},
|
|
98653
|
-
"pipelineExecutor.saveTemplate": {
|
|
98654
|
-
capName: "pipeline-executor",
|
|
98655
|
-
capScope: "system",
|
|
98656
|
-
addonId: null,
|
|
98657
|
-
access: "create"
|
|
98658
|
-
},
|
|
98659
98834
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
98660
98835
|
capName: "pipeline-executor",
|
|
98661
98836
|
capScope: "system",
|
|
@@ -98674,41 +98849,35 @@ Object.freeze({
|
|
|
98674
98849
|
addonId: null,
|
|
98675
98850
|
access: "create"
|
|
98676
98851
|
},
|
|
98677
|
-
"pipelineExecutor.updateTemplate": {
|
|
98678
|
-
capName: "pipeline-executor",
|
|
98679
|
-
capScope: "system",
|
|
98680
|
-
addonId: null,
|
|
98681
|
-
access: "create"
|
|
98682
|
-
},
|
|
98683
98852
|
"pipelineExecutor.validatePipeline": {
|
|
98684
98853
|
capName: "pipeline-executor",
|
|
98685
98854
|
capScope: "system",
|
|
98686
98855
|
addonId: null,
|
|
98687
98856
|
access: "view"
|
|
98688
98857
|
},
|
|
98689
|
-
"pipelineOrchestrator.
|
|
98858
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
98690
98859
|
capName: "pipeline-orchestrator",
|
|
98691
98860
|
capScope: "system",
|
|
98692
98861
|
addonId: null,
|
|
98693
98862
|
access: "create"
|
|
98694
98863
|
},
|
|
98695
|
-
"pipelineOrchestrator.
|
|
98864
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
98696
98865
|
capName: "pipeline-orchestrator",
|
|
98697
98866
|
capScope: "system",
|
|
98698
98867
|
addonId: null,
|
|
98699
98868
|
access: "create"
|
|
98700
98869
|
},
|
|
98701
|
-
"pipelineOrchestrator.
|
|
98870
|
+
"pipelineOrchestrator.assignAudio": {
|
|
98702
98871
|
capName: "pipeline-orchestrator",
|
|
98703
98872
|
capScope: "system",
|
|
98704
98873
|
addonId: null,
|
|
98705
98874
|
access: "create"
|
|
98706
98875
|
},
|
|
98707
|
-
"pipelineOrchestrator.
|
|
98876
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
98708
98877
|
capName: "pipeline-orchestrator",
|
|
98709
98878
|
capScope: "system",
|
|
98710
98879
|
addonId: null,
|
|
98711
|
-
access: "
|
|
98880
|
+
access: "create"
|
|
98712
98881
|
},
|
|
98713
98882
|
"pipelineOrchestrator.getAgentLoad": {
|
|
98714
98883
|
capName: "pipeline-orchestrator",
|
|
@@ -98800,6 +98969,12 @@ Object.freeze({
|
|
|
98800
98969
|
addonId: null,
|
|
98801
98970
|
access: "view"
|
|
98802
98971
|
},
|
|
98972
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
98973
|
+
capName: "pipeline-orchestrator",
|
|
98974
|
+
capScope: "system",
|
|
98975
|
+
addonId: null,
|
|
98976
|
+
access: "view"
|
|
98977
|
+
},
|
|
98803
98978
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
98804
98979
|
capName: "pipeline-orchestrator",
|
|
98805
98980
|
capScope: "system",
|
|
@@ -98836,19 +99011,19 @@ Object.freeze({
|
|
|
98836
99011
|
addonId: null,
|
|
98837
99012
|
access: "view"
|
|
98838
99013
|
},
|
|
98839
|
-
"pipelineOrchestrator.
|
|
99014
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
98840
99015
|
capName: "pipeline-orchestrator",
|
|
98841
99016
|
capScope: "system",
|
|
98842
99017
|
addonId: null,
|
|
98843
99018
|
access: "view"
|
|
98844
99019
|
},
|
|
98845
|
-
"pipelineOrchestrator.
|
|
99020
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
98846
99021
|
capName: "pipeline-orchestrator",
|
|
98847
99022
|
capScope: "system",
|
|
98848
99023
|
addonId: null,
|
|
98849
99024
|
access: "view"
|
|
98850
99025
|
},
|
|
98851
|
-
"pipelineOrchestrator.
|
|
99026
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
98852
99027
|
capName: "pipeline-orchestrator",
|
|
98853
99028
|
capScope: "system",
|
|
98854
99029
|
addonId: null,
|
|
@@ -98860,6 +99035,12 @@ Object.freeze({
|
|
|
98860
99035
|
addonId: null,
|
|
98861
99036
|
access: "create"
|
|
98862
99037
|
},
|
|
99038
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
99039
|
+
capName: "pipeline-orchestrator",
|
|
99040
|
+
capScope: "system",
|
|
99041
|
+
addonId: null,
|
|
99042
|
+
access: "view"
|
|
99043
|
+
},
|
|
98863
99044
|
"pipelineOrchestrator.rebalance": {
|
|
98864
99045
|
capName: "pipeline-orchestrator",
|
|
98865
99046
|
capScope: "system",
|
|
@@ -98902,12 +99083,6 @@ Object.freeze({
|
|
|
98902
99083
|
addonId: null,
|
|
98903
99084
|
access: "create"
|
|
98904
99085
|
},
|
|
98905
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
98906
|
-
capName: "pipeline-orchestrator",
|
|
98907
|
-
capScope: "system",
|
|
98908
|
-
addonId: null,
|
|
98909
|
-
access: "create"
|
|
98910
|
-
},
|
|
98911
99086
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
98912
99087
|
capName: "pipeline-orchestrator",
|
|
98913
99088
|
capScope: "system",
|
|
@@ -98920,12 +99095,6 @@ Object.freeze({
|
|
|
98920
99095
|
addonId: null,
|
|
98921
99096
|
access: "create"
|
|
98922
99097
|
},
|
|
98923
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
98924
|
-
capName: "pipeline-orchestrator",
|
|
98925
|
-
capScope: "system",
|
|
98926
|
-
addonId: null,
|
|
98927
|
-
access: "create"
|
|
98928
|
-
},
|
|
98929
99098
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
98930
99099
|
capName: "pipeline-orchestrator",
|
|
98931
99100
|
capScope: "system",
|
|
@@ -98962,6 +99131,12 @@ Object.freeze({
|
|
|
98962
99131
|
addonId: null,
|
|
98963
99132
|
access: "create"
|
|
98964
99133
|
},
|
|
99134
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
99135
|
+
capName: "pipeline-orchestrator",
|
|
99136
|
+
capScope: "system",
|
|
99137
|
+
addonId: null,
|
|
99138
|
+
access: "create"
|
|
99139
|
+
},
|
|
98965
99140
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
98966
99141
|
capName: "pipeline-orchestrator",
|
|
98967
99142
|
capScope: "system",
|
|
@@ -98980,25 +99155,37 @@ Object.freeze({
|
|
|
98980
99155
|
addonId: null,
|
|
98981
99156
|
access: "create"
|
|
98982
99157
|
},
|
|
99158
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
99159
|
+
capName: "pipeline-orchestrator",
|
|
99160
|
+
capScope: "system",
|
|
99161
|
+
addonId: null,
|
|
99162
|
+
access: "create"
|
|
99163
|
+
},
|
|
98983
99164
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
98984
99165
|
capName: "pipeline-orchestrator",
|
|
98985
99166
|
capScope: "system",
|
|
98986
99167
|
addonId: null,
|
|
98987
99168
|
access: "create"
|
|
98988
99169
|
},
|
|
98989
|
-
"pipelineOrchestrator.
|
|
99170
|
+
"pipelineOrchestrator.setShareSource": {
|
|
98990
99171
|
capName: "pipeline-orchestrator",
|
|
98991
99172
|
capScope: "system",
|
|
98992
99173
|
addonId: null,
|
|
98993
99174
|
access: "create"
|
|
98994
99175
|
},
|
|
98995
|
-
"pipelineOrchestrator.
|
|
99176
|
+
"pipelineOrchestrator.suggestShares": {
|
|
99177
|
+
capName: "pipeline-orchestrator",
|
|
99178
|
+
capScope: "system",
|
|
99179
|
+
addonId: null,
|
|
99180
|
+
access: "view"
|
|
99181
|
+
},
|
|
99182
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
98996
99183
|
capName: "pipeline-orchestrator",
|
|
98997
99184
|
capScope: "system",
|
|
98998
99185
|
addonId: null,
|
|
98999
99186
|
access: "create"
|
|
99000
99187
|
},
|
|
99001
|
-
"pipelineOrchestrator.
|
|
99188
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
99002
99189
|
capName: "pipeline-orchestrator",
|
|
99003
99190
|
capScope: "system",
|
|
99004
99191
|
addonId: null,
|
|
@@ -100438,12 +100625,6 @@ Object.freeze({
|
|
|
100438
100625
|
addonId: null,
|
|
100439
100626
|
access: "view"
|
|
100440
100627
|
},
|
|
100441
|
-
"streamBroker.pullFrameHandles": {
|
|
100442
|
-
capName: "stream-broker",
|
|
100443
|
-
capScope: "system",
|
|
100444
|
-
addonId: null,
|
|
100445
|
-
access: "view"
|
|
100446
|
-
},
|
|
100447
100628
|
"streamBroker.regenerateRtspToken": {
|
|
100448
100629
|
capName: "stream-broker",
|
|
100449
100630
|
capScope: "system",
|
|
@@ -100510,12 +100691,6 @@ Object.freeze({
|
|
|
100510
100691
|
addonId: null,
|
|
100511
100692
|
access: "create"
|
|
100512
100693
|
},
|
|
100513
|
-
"streamBroker.subscribeFrames": {
|
|
100514
|
-
capName: "stream-broker",
|
|
100515
|
-
capScope: "system",
|
|
100516
|
-
addonId: null,
|
|
100517
|
-
access: "create"
|
|
100518
|
-
},
|
|
100519
100694
|
"streamBroker.unassignProfile": {
|
|
100520
100695
|
capName: "stream-broker",
|
|
100521
100696
|
capScope: "system",
|
|
@@ -100528,12 +100703,6 @@ Object.freeze({
|
|
|
100528
100703
|
addonId: null,
|
|
100529
100704
|
access: "create"
|
|
100530
100705
|
},
|
|
100531
|
-
"streamBroker.unsubscribeFrames": {
|
|
100532
|
-
capName: "stream-broker",
|
|
100533
|
-
capScope: "system",
|
|
100534
|
-
addonId: null,
|
|
100535
|
-
access: "create"
|
|
100536
|
-
},
|
|
100537
100706
|
"streamCatalog.getCatalog": {
|
|
100538
100707
|
capName: "stream-catalog",
|
|
100539
100708
|
capScope: "device",
|
|
@@ -103047,11 +103216,6 @@ Object.freeze({
|
|
|
103047
103216
|
form: "single",
|
|
103048
103217
|
optional: false
|
|
103049
103218
|
}],
|
|
103050
|
-
"decoder.createSession": [{
|
|
103051
|
-
name: "deviceId",
|
|
103052
|
-
form: "single",
|
|
103053
|
-
optional: true
|
|
103054
|
-
}],
|
|
103055
103219
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
103056
103220
|
name: "deviceId",
|
|
103057
103221
|
form: "single",
|
|
@@ -104282,6 +104446,11 @@ Object.freeze({
|
|
|
104282
104446
|
form: "single",
|
|
104283
104447
|
optional: false
|
|
104284
104448
|
}],
|
|
104449
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
104450
|
+
name: "deviceIds",
|
|
104451
|
+
form: "array",
|
|
104452
|
+
optional: true
|
|
104453
|
+
}],
|
|
104285
104454
|
"pipelineExecutor.runPipeline": [{
|
|
104286
104455
|
name: "deviceId",
|
|
104287
104456
|
form: "single",
|
|
@@ -104387,6 +104556,11 @@ Object.freeze({
|
|
|
104387
104556
|
form: "single",
|
|
104388
104557
|
optional: false
|
|
104389
104558
|
}],
|
|
104559
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
104560
|
+
name: "deviceId",
|
|
104561
|
+
form: "single",
|
|
104562
|
+
optional: false
|
|
104563
|
+
}],
|
|
104390
104564
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
104391
104565
|
name: "deviceId",
|
|
104392
104566
|
form: "single",
|
|
@@ -108786,11 +108960,18 @@ function cameraStreamCatalog(session) {
|
|
|
108786
108960
|
}];
|
|
108787
108961
|
}
|
|
108788
108962
|
/**
|
|
108963
|
+
* The hub's internal address (D734) — the one a broker on another node dials
|
|
108964
|
+
* the relay at. Never the public endpoint: the relay is LAN traffic.
|
|
108965
|
+
*/
|
|
108966
|
+
function relayHubAddress(book) {
|
|
108967
|
+
return book.roles.internal.resolved;
|
|
108968
|
+
}
|
|
108969
|
+
/**
|
|
108789
108970
|
* The host the broker is told to dial. The provider and the ingest owner
|
|
108790
108971
|
* share the hub today, but a broker on another node reaches the hub only
|
|
108791
|
-
* through the hub's address
|
|
108792
|
-
* .roles.
|
|
108793
|
-
* detected LAN address).
|
|
108972
|
+
* through the hub's internal address — `local-network.getAddresses()
|
|
108973
|
+
* .roles.internal` (the address flagged "Internal" on the Network page, else
|
|
108974
|
+
* the detected LAN address).
|
|
108794
108975
|
* Loopback when that names nothing: then the only broker that can dial at
|
|
108795
108976
|
* all is this node's own.
|
|
108796
108977
|
*/
|
|
@@ -155187,14 +155368,14 @@ var DreameCameraDevice = class extends DreameChildDevice {
|
|
|
155187
155368
|
/** Register the stream on the broker — the server, or the lazy sentinel (push semantics; the catalog is the durable copy). */
|
|
155188
155369
|
/**
|
|
155189
155370
|
* The hub's address for agents and LAN devices
|
|
155190
|
-
* (`local-network.getAddresses().roles.
|
|
155191
|
-
* "
|
|
155371
|
+
* (`local-network.getAddresses().roles.internal`: the address flagged
|
|
155372
|
+
* "Internal" on the Network page, else the detected LAN address). A failed
|
|
155192
155373
|
* read is `null` — `advertisedRfcHost` then answers loopback, which this
|
|
155193
155374
|
* node's own broker can still dial.
|
|
155194
155375
|
*/
|
|
155195
155376
|
async hubClusterAddress() {
|
|
155196
155377
|
try {
|
|
155197
|
-
return (await this.ctx.api.localNetwork.getAddresses.query())
|
|
155378
|
+
return relayHubAddress(await this.ctx.api.localNetwork.getAddresses.query());
|
|
155198
155379
|
} catch (err) {
|
|
155199
155380
|
this.ctx.logger.warn("robot camera: hub address unavailable — advertising loopback", {
|
|
155200
155381
|
tags: { deviceId: this.id },
|