@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.mjs
CHANGED
|
@@ -52899,7 +52899,7 @@ var DreameCameraStream = class extends TypedEmitter {
|
|
|
52899
52899
|
}
|
|
52900
52900
|
};
|
|
52901
52901
|
//#endregion
|
|
52902
|
-
//#region ../types/dist/event-category-
|
|
52902
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
52903
52903
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
52904
52904
|
EventCategory["SystemBoot"] = "system.boot";
|
|
52905
52905
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -53400,15 +53400,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
53400
53400
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
53401
53401
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
53402
53402
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
53403
|
-
/**
|
|
53404
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
53405
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
53406
|
-
* `createSession`, so running sessions keep their current backend until
|
|
53407
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
53408
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
53409
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
53410
|
-
*/
|
|
53411
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
53412
53403
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
53413
53404
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
53414
53405
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -58279,7 +58270,7 @@ var ZodIssueCode = {
|
|
|
58279
58270
|
var ZodFirstPartyTypeKind;
|
|
58280
58271
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
58281
58272
|
//#endregion
|
|
58282
|
-
//#region ../types/dist/sleep-
|
|
58273
|
+
//#region ../types/dist/sleep-BNeXenvr.mjs
|
|
58283
58274
|
/**
|
|
58284
58275
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
58285
58276
|
* window to float samples (D455).
|
|
@@ -59645,32 +59636,12 @@ object({
|
|
|
59645
59636
|
audioCodec: string().optional(),
|
|
59646
59637
|
metadata: record(string(), unknown()).readonly().optional()
|
|
59647
59638
|
});
|
|
59648
|
-
var EncodedPacketSchema = object({
|
|
59649
|
-
type: _enum(["video", "audio"]),
|
|
59650
|
-
data: _instanceof(Uint8Array),
|
|
59651
|
-
pts: number(),
|
|
59652
|
-
dts: number(),
|
|
59653
|
-
keyframe: boolean(),
|
|
59654
|
-
codec: string()
|
|
59655
|
-
});
|
|
59656
|
-
var DecodedFrameSchema = object({
|
|
59657
|
-
data: _instanceof(Uint8Array),
|
|
59658
|
-
width: number(),
|
|
59659
|
-
height: number(),
|
|
59660
|
-
format: _enum([
|
|
59661
|
-
"jpeg",
|
|
59662
|
-
"rgb",
|
|
59663
|
-
"bgr",
|
|
59664
|
-
"yuv420",
|
|
59665
|
-
"gray"
|
|
59666
|
-
]),
|
|
59667
|
-
timestamp: number()
|
|
59668
|
-
});
|
|
59669
59639
|
/**
|
|
59670
59640
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
59671
59641
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
59672
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
59673
|
-
*
|
|
59642
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
59643
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
59644
|
+
* over tRPC / Moleculer.
|
|
59674
59645
|
*
|
|
59675
59646
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
59676
59647
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -59696,50 +59667,6 @@ var FrameHandleSchema = object({
|
|
|
59696
59667
|
slotCount: number().int().positive()
|
|
59697
59668
|
});
|
|
59698
59669
|
/**
|
|
59699
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
59700
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
59701
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
59702
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
59703
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
59704
|
-
*/
|
|
59705
|
-
var FrameHandleFormatSchema = _enum([
|
|
59706
|
-
"rgb",
|
|
59707
|
-
"bgr",
|
|
59708
|
-
"yuv420",
|
|
59709
|
-
"gray"
|
|
59710
|
-
]);
|
|
59711
|
-
/**
|
|
59712
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
59713
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
59714
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
59715
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
59716
|
-
* they asked for with no broker-side conversion.
|
|
59717
|
-
*/
|
|
59718
|
-
var SubscribeFramesInputSchema = object({
|
|
59719
|
-
brokerId: string(),
|
|
59720
|
-
format: FrameHandleFormatSchema,
|
|
59721
|
-
/**
|
|
59722
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
59723
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
59724
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
59725
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
59726
|
-
*/
|
|
59727
|
-
maxFps: number().positive().optional(),
|
|
59728
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
59729
|
-
tag: string().optional()
|
|
59730
|
-
});
|
|
59731
|
-
/**
|
|
59732
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
59733
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
59734
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
59735
|
-
*/
|
|
59736
|
-
var SubscribeFramesResultSchema = object({
|
|
59737
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
59738
|
-
subscriptionId: string(),
|
|
59739
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
59740
|
-
maxFps: number().nonnegative()
|
|
59741
|
-
});
|
|
59742
|
-
/**
|
|
59743
59670
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
59744
59671
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
59745
59672
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -59747,8 +59674,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
59747
59674
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
59748
59675
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
59749
59676
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
59750
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
59751
|
-
*
|
|
59677
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
59678
|
+
* it.
|
|
59752
59679
|
*/
|
|
59753
59680
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
59754
59681
|
var DecodedAudioChunkSchema = object({
|
|
@@ -59766,11 +59693,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
59766
59693
|
format: AudioChunkFormatSchema.optional()
|
|
59767
59694
|
});
|
|
59768
59695
|
/**
|
|
59769
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
59770
|
-
*
|
|
59771
|
-
*
|
|
59772
|
-
*
|
|
59773
|
-
* `pullAudioChunks`.
|
|
59696
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
59697
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
59698
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
59699
|
+
* the consumer drains via `pullAudioChunks`.
|
|
59774
59700
|
*/
|
|
59775
59701
|
var SubscribeAudioChunksInputSchema = object({
|
|
59776
59702
|
brokerId: string(),
|
|
@@ -59801,9 +59727,7 @@ var BrokerStatsSchema = object({
|
|
|
59801
59727
|
"stopped"
|
|
59802
59728
|
]),
|
|
59803
59729
|
inputFps: number(),
|
|
59804
|
-
decodeFps: number(),
|
|
59805
59730
|
encodedSubscribers: number(),
|
|
59806
|
-
decodedSubscribers: number(),
|
|
59807
59731
|
uptimeMs: number(),
|
|
59808
59732
|
bitrateKbps: number(),
|
|
59809
59733
|
idrIntervalMs: number(),
|
|
@@ -59816,14 +59740,6 @@ var BrokerStatsSchema = object({
|
|
|
59816
59740
|
preBufferMs: number(),
|
|
59817
59741
|
preBufferPackets: number(),
|
|
59818
59742
|
/**
|
|
59819
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
59820
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
59821
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
59822
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
59823
|
-
* a separate cap call per broker.
|
|
59824
|
-
*/
|
|
59825
|
-
decoderNodeId: string().nullable(),
|
|
59826
|
-
/**
|
|
59827
59743
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
59828
59744
|
* when the stream has no audio track or the broker is in cold start.
|
|
59829
59745
|
* `supported = false` means the codec was detected but the local
|
|
@@ -63159,70 +63075,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
63159
63075
|
"backup"
|
|
63160
63076
|
]).optional()
|
|
63161
63077
|
});
|
|
63162
|
-
var DecoderStatsSchema = object({
|
|
63163
|
-
inputFps: number(),
|
|
63164
|
-
outputFps: number(),
|
|
63165
|
-
avgDecodeTimeMs: number(),
|
|
63166
|
-
droppedFrames: number(),
|
|
63167
|
-
/**
|
|
63168
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
63169
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
63170
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
63171
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
63172
|
-
*/
|
|
63173
|
-
lagMs: number().optional(),
|
|
63174
|
-
effectiveFps: number().optional(),
|
|
63175
|
-
adaptiveFps: number().optional()
|
|
63176
|
-
});
|
|
63177
|
-
var DecoderSessionConfigSchema = object({
|
|
63178
|
-
codec: string(),
|
|
63179
|
-
maxFps: number().default(0),
|
|
63180
|
-
outputFormat: _enum([
|
|
63181
|
-
"jpeg",
|
|
63182
|
-
"rgb",
|
|
63183
|
-
"bgr",
|
|
63184
|
-
"yuv420",
|
|
63185
|
-
"gray"
|
|
63186
|
-
]).default("jpeg"),
|
|
63187
|
-
scale: number().default(1),
|
|
63188
|
-
width: number().optional(),
|
|
63189
|
-
height: number().optional(),
|
|
63190
|
-
/**
|
|
63191
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
63192
|
-
* because the cap is generic (any caller could request decode), but
|
|
63193
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
63194
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
63195
|
-
* sendPacket errors on a single hung camera).
|
|
63196
|
-
*/
|
|
63197
|
-
deviceId: number().int().nonnegative().optional(),
|
|
63198
|
-
/**
|
|
63199
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
63200
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
63201
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
63202
|
-
* profile cleanly.
|
|
63203
|
-
*/
|
|
63204
|
-
tag: string().optional(),
|
|
63205
|
-
/**
|
|
63206
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
63207
|
-
*
|
|
63208
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
63209
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
63210
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
63211
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
63212
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
63213
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
63214
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
63215
|
-
*/
|
|
63216
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
63217
|
-
/**
|
|
63218
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
63219
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
63220
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
63221
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
63222
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
63223
|
-
*/
|
|
63224
|
-
debug: boolean().optional()
|
|
63225
|
-
});
|
|
63226
63078
|
/**
|
|
63227
63079
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
63228
63080
|
* an addon declares its channels in.
|
|
@@ -63373,7 +63225,18 @@ var LABEL_SUPPLY_STEP_IDS = [
|
|
|
63373
63225
|
];
|
|
63374
63226
|
/** Steps whose box a root detection can BE. */
|
|
63375
63227
|
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
63376
|
-
|
|
63228
|
+
/**
|
|
63229
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
63230
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
63231
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
63232
|
+
* no camera tree carries.)
|
|
63233
|
+
*/
|
|
63234
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
63235
|
+
[
|
|
63236
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
63237
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
63238
|
+
...MASK_SUPPLY_STEP_IDS
|
|
63239
|
+
];
|
|
63377
63240
|
var MODEL_FORMATS = [
|
|
63378
63241
|
"onnx",
|
|
63379
63242
|
"coreml",
|
|
@@ -63402,7 +63265,53 @@ var ModelFormatEntrySchema = object({
|
|
|
63402
63265
|
/** Multi-file payload (directory members or sibling files). */
|
|
63403
63266
|
files: array(string()).readonly().optional(),
|
|
63404
63267
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
63405
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
63268
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
63269
|
+
/**
|
|
63270
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
63271
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
63272
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
63273
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
63274
|
+
* node records the revision it downloaded next to the file
|
|
63275
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
63276
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
63277
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
63278
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
63279
|
+
*/
|
|
63280
|
+
revision: string().min(1).optional()
|
|
63281
|
+
});
|
|
63282
|
+
/**
|
|
63283
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
63284
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
63285
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
63286
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
63287
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
63288
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
63289
|
+
*/
|
|
63290
|
+
var ModelOnDiskStateSchema = _enum([
|
|
63291
|
+
"current",
|
|
63292
|
+
"stale",
|
|
63293
|
+
"missing"
|
|
63294
|
+
]);
|
|
63295
|
+
/**
|
|
63296
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
63297
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
63298
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
63299
|
+
*/
|
|
63300
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
63301
|
+
"fp32",
|
|
63302
|
+
"fp16",
|
|
63303
|
+
"int8"
|
|
63304
|
+
]);
|
|
63305
|
+
/**
|
|
63306
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
63307
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
63308
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
63309
|
+
*/
|
|
63310
|
+
var PipelineModelFormatStatusSchema = object({
|
|
63311
|
+
downloaded: boolean(),
|
|
63312
|
+
sizeMB: number(),
|
|
63313
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
63314
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
63406
63315
|
});
|
|
63407
63316
|
/**
|
|
63408
63317
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -63516,25 +63425,36 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
63516
63425
|
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
63517
63426
|
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
63518
63427
|
* child of the `parentMacro` detection that contains it — never a track.
|
|
63428
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
63429
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
63430
|
+
* detection in the shape that step produces. Derived from the model's
|
|
63431
|
+
* postprocessor on read, never stored by an import.
|
|
63519
63432
|
*/
|
|
63520
|
-
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
63521
|
-
|
|
63522
|
-
|
|
63523
|
-
|
|
63524
|
-
|
|
63525
|
-
|
|
63526
|
-
|
|
63527
|
-
|
|
63528
|
-
|
|
63529
|
-
|
|
63530
|
-
|
|
63531
|
-
|
|
63532
|
-
|
|
63533
|
-
|
|
63534
|
-
|
|
63535
|
-
|
|
63536
|
-
|
|
63537
|
-
|
|
63433
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
63434
|
+
object({
|
|
63435
|
+
kind: literal("label"),
|
|
63436
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
63437
|
+
labelToEffect: record(string(), string()),
|
|
63438
|
+
uncovered: array(string()).readonly()
|
|
63439
|
+
}),
|
|
63440
|
+
object({
|
|
63441
|
+
kind: literal("crop"),
|
|
63442
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
63443
|
+
rootLabels: array(string()).readonly(),
|
|
63444
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
63445
|
+
childClass: _enum(["plate", "face"]),
|
|
63446
|
+
/**
|
|
63447
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
63448
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
63449
|
+
* stored by an import.
|
|
63450
|
+
*/
|
|
63451
|
+
rootInputPx: number().int().positive().optional()
|
|
63452
|
+
}),
|
|
63453
|
+
object({
|
|
63454
|
+
kind: literal("mask"),
|
|
63455
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
63456
|
+
})
|
|
63457
|
+
]);
|
|
63538
63458
|
var ModelCatalogEntrySchema = object({
|
|
63539
63459
|
id: string(),
|
|
63540
63460
|
name: string(),
|
|
@@ -63600,6 +63520,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
63600
63520
|
*/
|
|
63601
63521
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
63602
63522
|
/**
|
|
63523
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
63524
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
63525
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
63526
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
63527
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
63528
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
63529
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
63530
|
+
*/
|
|
63531
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
63532
|
+
/**
|
|
63533
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
63534
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
63535
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
63536
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
63537
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
63538
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
63539
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
63540
|
+
*/
|
|
63541
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
63542
|
+
/**
|
|
63543
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
63544
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
63545
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
63546
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
63547
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
63548
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
63549
|
+
*/
|
|
63550
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
63551
|
+
/**
|
|
63603
63552
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
63604
63553
|
* onto the canonical template) before this step runs, instead of a plain
|
|
63605
63554
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -65272,13 +65221,6 @@ var BrokerRtspClientSchema = object({
|
|
|
65272
65221
|
lastRtpAt: number(),
|
|
65273
65222
|
bytesSent: number()
|
|
65274
65223
|
});
|
|
65275
|
-
var BrokerDecodedClientSchema = object({
|
|
65276
|
-
tag: string(),
|
|
65277
|
-
subscribedAt: number(),
|
|
65278
|
-
maxFps: number(),
|
|
65279
|
-
framesDelivered: number(),
|
|
65280
|
-
framesDropped: number()
|
|
65281
|
-
});
|
|
65282
65224
|
var BrokerAudioClientSchema = object({
|
|
65283
65225
|
tag: string(),
|
|
65284
65226
|
subscribedAt: number(),
|
|
@@ -65370,7 +65312,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
65370
65312
|
});
|
|
65371
65313
|
var BrokerClientsSchema = object({
|
|
65372
65314
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
65373
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
65374
65315
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
65375
65316
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
65376
65317
|
pipeClients: number(),
|
|
@@ -65739,11 +65680,7 @@ method(object({
|
|
|
65739
65680
|
auth: "admin"
|
|
65740
65681
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
65741
65682
|
brokerId: string(),
|
|
65742
|
-
channel: _enum([
|
|
65743
|
-
"rtsp",
|
|
65744
|
-
"decoded",
|
|
65745
|
-
"audio"
|
|
65746
|
-
]),
|
|
65683
|
+
channel: _enum(["rtsp", "audio"]),
|
|
65747
65684
|
handle: string()
|
|
65748
65685
|
}), object({ killed: boolean() }), {
|
|
65749
65686
|
kind: "mutation",
|
|
@@ -65778,10 +65715,7 @@ method(object({
|
|
|
65778
65715
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
65779
65716
|
subscriptionId: string(),
|
|
65780
65717
|
maxCount: number().int().positive().default(8)
|
|
65781
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
65782
|
-
subscriptionId: string(),
|
|
65783
|
-
maxCount: number().int().positive().default(4)
|
|
65784
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
65718
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
65785
65719
|
brokerId: string(),
|
|
65786
65720
|
seconds: number().min(0).max(30)
|
|
65787
65721
|
}), _void(), {
|
|
@@ -67040,54 +66974,12 @@ id: union([string(), number()]) }), {
|
|
|
67040
66974
|
kind: "mutation",
|
|
67041
66975
|
auth: "admin"
|
|
67042
66976
|
});
|
|
67043
|
-
|
|
67044
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
67045
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
67046
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
67047
|
-
*/
|
|
67048
|
-
var ShmRingStatsSchema = object({
|
|
67049
|
-
sessionId: string(),
|
|
67050
|
-
slotCount: number().int(),
|
|
67051
|
-
slotByteLength: number().int(),
|
|
67052
|
-
segmentBytes: number().int(),
|
|
67053
|
-
budgetMb: number().int(),
|
|
67054
|
-
framesWritten: number().int(),
|
|
67055
|
-
getFrameHits: number().int(),
|
|
67056
|
-
getFrameMisses: number().int()
|
|
67057
|
-
});
|
|
67058
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
66977
|
+
method(_void(), object({
|
|
67059
66978
|
id: string(),
|
|
67060
66979
|
name: string(),
|
|
67061
|
-
isPullMode: boolean().optional(),
|
|
67062
|
-
priority: number().optional(),
|
|
67063
66980
|
hwaccel: string().optional(),
|
|
67064
66981
|
probedBestHwaccel: string().optional()
|
|
67065
|
-
})), method(
|
|
67066
|
-
sessionId: string(),
|
|
67067
|
-
nodeId: string()
|
|
67068
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
67069
|
-
sessionId: string(),
|
|
67070
|
-
packet: EncodedPacketSchema
|
|
67071
|
-
}), _void()), method(object({
|
|
67072
|
-
sessionId: string(),
|
|
67073
|
-
url: string()
|
|
67074
|
-
}), _void()), method(object({
|
|
67075
|
-
sessionId: string(),
|
|
67076
|
-
maxCount: number().default(1),
|
|
67077
|
-
waitMs: number().optional()
|
|
67078
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
67079
|
-
sessionId: string(),
|
|
67080
|
-
maxCount: number().default(1),
|
|
67081
|
-
waitMs: number().optional()
|
|
67082
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
67083
|
-
sessionId: string(),
|
|
67084
|
-
config: DecoderSessionConfigSchema.partial()
|
|
67085
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
67086
|
-
sessionId: string(),
|
|
67087
|
-
codec: string(),
|
|
67088
|
-
outputFormat: string(),
|
|
67089
|
-
createdAtMs: number()
|
|
67090
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
66982
|
+
})), method(_void(), object({ backend: string() }), {
|
|
67091
66983
|
kind: "mutation",
|
|
67092
66984
|
auth: "admin"
|
|
67093
66985
|
});
|
|
@@ -69136,6 +69028,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
69136
69028
|
kind: "mutation",
|
|
69137
69029
|
auth: "admin"
|
|
69138
69030
|
});
|
|
69031
|
+
var HUB_ADDRESS_ROLES = [
|
|
69032
|
+
"appConnections",
|
|
69033
|
+
"notificationTaps",
|
|
69034
|
+
"internal",
|
|
69035
|
+
"publicEndpoint"
|
|
69036
|
+
];
|
|
69139
69037
|
function hostnameOf(baseUrl) {
|
|
69140
69038
|
try {
|
|
69141
69039
|
const host = new URL(baseUrl).hostname;
|
|
@@ -73357,7 +73255,13 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
73357
73255
|
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
73358
73256
|
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
73359
73257
|
*/
|
|
73360
|
-
notifySensorRewatched: boolean().optional()
|
|
73258
|
+
notifySensorRewatched: boolean().optional(),
|
|
73259
|
+
/**
|
|
73260
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
73261
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
73262
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
73263
|
+
*/
|
|
73264
|
+
notifySensorIgnored: boolean().optional()
|
|
73361
73265
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
73362
73266
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
73363
73267
|
mode: AlarmArmModeSchema,
|
|
@@ -73370,7 +73274,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
73370
73274
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
73371
73275
|
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
73372
73276
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
73373
|
-
notifySensorRewatched: boolean().nullable().optional()
|
|
73277
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
73278
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
73279
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
73374
73280
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
73375
73281
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
73376
73282
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -74348,8 +74254,8 @@ Object.freeze(Object.fromEntries([{
|
|
|
74348
74254
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
74349
74255
|
stepId: "face-embedding",
|
|
74350
74256
|
key: "minLandmarkFaceSize",
|
|
74351
|
-
label: "Min face size
|
|
74352
|
-
description: "
|
|
74257
|
+
label: "Min face size to embed (detection-frame px)",
|
|
74258
|
+
description: "Faces smaller than this in the small frame the detector sees are not embedded, so they can never be recognised. Below it the face cannot be aligned reliably and a bad embedding matches everyone. Same value on every node. 0 = no limit.",
|
|
74353
74259
|
type: "slider",
|
|
74354
74260
|
min: 0,
|
|
74355
74261
|
max: 64,
|
|
@@ -76344,7 +76250,7 @@ var FrameRefSchema = object({
|
|
|
76344
76250
|
timestamp: number(),
|
|
76345
76251
|
capturedAt: number().optional()
|
|
76346
76252
|
});
|
|
76347
|
-
var ModelFormatSchema$
|
|
76253
|
+
var ModelFormatSchema$2 = _enum([
|
|
76348
76254
|
"onnx",
|
|
76349
76255
|
"coreml",
|
|
76350
76256
|
"openvino",
|
|
@@ -76362,7 +76268,7 @@ var PipelineSlotSchema = _enum([
|
|
|
76362
76268
|
var PipelineEngineChoiceSchema = object({
|
|
76363
76269
|
runtime: literal("python"),
|
|
76364
76270
|
backend: string(),
|
|
76365
|
-
format: ModelFormatSchema$
|
|
76271
|
+
format: ModelFormatSchema$2,
|
|
76366
76272
|
device: string().optional()
|
|
76367
76273
|
});
|
|
76368
76274
|
/**
|
|
@@ -76401,28 +76307,10 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
76401
76307
|
group: string().optional(),
|
|
76402
76308
|
settings: record(string(), unknown()).optional()
|
|
76403
76309
|
}));
|
|
76404
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
76405
|
-
addonId: string(),
|
|
76406
|
-
enabled: boolean(),
|
|
76407
|
-
modelId: string(),
|
|
76408
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
76409
|
-
settings: record(string(), unknown()).optional()
|
|
76410
|
-
}));
|
|
76411
|
-
var PipelineTemplateSchema$1 = object({
|
|
76412
|
-
id: string(),
|
|
76413
|
-
name: string(),
|
|
76414
|
-
createdAt: string(),
|
|
76415
|
-
updatedAt: string(),
|
|
76416
|
-
engine: PipelineEngineChoiceSchema,
|
|
76417
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
76418
|
-
});
|
|
76419
76310
|
var PipelineModelOptionSchema = object({
|
|
76420
76311
|
id: string(),
|
|
76421
76312
|
name: string(),
|
|
76422
|
-
formats: record(string(),
|
|
76423
|
-
downloaded: boolean(),
|
|
76424
|
-
sizeMB: number()
|
|
76425
|
-
})),
|
|
76313
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
76426
76314
|
group: ModelVariantGroupSchema.optional(),
|
|
76427
76315
|
legacy: boolean().optional(),
|
|
76428
76316
|
provider: ModelProviderIdSchema.optional(),
|
|
@@ -76589,6 +76477,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76589
76477
|
}), {
|
|
76590
76478
|
kind: "mutation",
|
|
76591
76479
|
auth: "admin"
|
|
76480
|
+
}), method(object({
|
|
76481
|
+
nodeId: string(),
|
|
76482
|
+
deviceIds: array(number()).readonly().optional(),
|
|
76483
|
+
dryRun: boolean()
|
|
76484
|
+
}), object({
|
|
76485
|
+
entries: array(object({
|
|
76486
|
+
deviceId: number(),
|
|
76487
|
+
keys: array(string()).readonly()
|
|
76488
|
+
})).readonly(),
|
|
76489
|
+
refused: array(object({
|
|
76490
|
+
deviceId: number(),
|
|
76491
|
+
reason: string()
|
|
76492
|
+
})).readonly()
|
|
76493
|
+
}), {
|
|
76494
|
+
kind: "mutation",
|
|
76495
|
+
auth: "admin"
|
|
76592
76496
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
76593
76497
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
76594
76498
|
deviceKey: string(),
|
|
@@ -76614,22 +76518,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76614
76518
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
76615
76519
|
steps: array(PipelineStepInputSchema),
|
|
76616
76520
|
deviceKey: string().optional()
|
|
76617
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
76618
|
-
name: string(),
|
|
76619
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
76620
|
-
engine: PipelineEngineChoiceSchema
|
|
76621
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
76622
|
-
id: string(),
|
|
76623
|
-
name: string().optional(),
|
|
76624
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
76625
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
76521
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
76626
76522
|
addonId: string(),
|
|
76627
76523
|
modelId: string(),
|
|
76628
|
-
format: ModelFormatSchema$
|
|
76524
|
+
format: ModelFormatSchema$2
|
|
76629
76525
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
76630
76526
|
addonId: string(),
|
|
76631
76527
|
modelId: string(),
|
|
76632
|
-
format: ModelFormatSchema$
|
|
76528
|
+
format: ModelFormatSchema$2
|
|
76633
76529
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
76634
76530
|
steps: array(PipelineStepInputSchema).min(1),
|
|
76635
76531
|
frame: FrameInputSchema.optional(),
|
|
@@ -76786,6 +76682,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
76786
76682
|
filename: string().optional(),
|
|
76787
76683
|
settings: record(string(), unknown()).optional()
|
|
76788
76684
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
76685
|
+
/**
|
|
76686
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
76687
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
76688
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
76689
|
+
* schemas are what crosses the cap boundary.
|
|
76690
|
+
*/
|
|
76691
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
76692
|
+
/** The operator's range for it. */
|
|
76693
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
76694
|
+
min: 1,
|
|
76695
|
+
max: 8
|
|
76696
|
+
};
|
|
76697
|
+
var HardwareClassIdSchema = _enum([
|
|
76698
|
+
"intel-core-ultra",
|
|
76699
|
+
"intel-n-series",
|
|
76700
|
+
"apple-m-base",
|
|
76701
|
+
"apple-m-pro",
|
|
76702
|
+
"unknown"
|
|
76703
|
+
]);
|
|
76704
|
+
var AcceleratorKindSchema = _enum([
|
|
76705
|
+
"intel-npu",
|
|
76706
|
+
"intel-igpu",
|
|
76707
|
+
"x86-cpu",
|
|
76708
|
+
"arm-cpu",
|
|
76709
|
+
"apple-ane",
|
|
76710
|
+
"coral"
|
|
76711
|
+
]);
|
|
76712
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
76713
|
+
object({
|
|
76714
|
+
kind: literal("capacity"),
|
|
76715
|
+
sessions: number(),
|
|
76716
|
+
minSessions: number()
|
|
76717
|
+
}),
|
|
76718
|
+
object({
|
|
76719
|
+
kind: literal("tie-faster"),
|
|
76720
|
+
over: string(),
|
|
76721
|
+
recallDelta: number()
|
|
76722
|
+
}),
|
|
76723
|
+
object({
|
|
76724
|
+
kind: literal("stepped-down"),
|
|
76725
|
+
from: string(),
|
|
76726
|
+
to: string(),
|
|
76727
|
+
limitedBy: string()
|
|
76728
|
+
}),
|
|
76729
|
+
object({
|
|
76730
|
+
kind: literal("no-fit-lightest"),
|
|
76731
|
+
sessions: number(),
|
|
76732
|
+
minSessions: number()
|
|
76733
|
+
}),
|
|
76734
|
+
object({
|
|
76735
|
+
kind: literal("derived-latency"),
|
|
76736
|
+
modelId: string()
|
|
76737
|
+
}),
|
|
76738
|
+
object({ kind: literal("cpu-device") }),
|
|
76739
|
+
object({ kind: literal("coral-untouched") }),
|
|
76740
|
+
object({ kind: literal("device-disabled") }),
|
|
76741
|
+
object({ kind: literal("device-unavailable") }),
|
|
76742
|
+
object({ kind: literal("node-offline") }),
|
|
76743
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
76744
|
+
object({
|
|
76745
|
+
kind: literal("no-measured-data"),
|
|
76746
|
+
hardwareClass: HardwareClassIdSchema
|
|
76747
|
+
}),
|
|
76748
|
+
object({
|
|
76749
|
+
kind: literal("no-family-build"),
|
|
76750
|
+
format: ModelFormatSchema$1
|
|
76751
|
+
})
|
|
76752
|
+
]);
|
|
76753
|
+
var DeviceModelChoiceSchema = object({
|
|
76754
|
+
modelId: string(),
|
|
76755
|
+
p50Ms: number(),
|
|
76756
|
+
fps: number(),
|
|
76757
|
+
measured: boolean(),
|
|
76758
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
76759
|
+
capacitySessions: number(),
|
|
76760
|
+
personRecall: number()
|
|
76761
|
+
});
|
|
76762
|
+
var DeviceRecommendationSchema = object({
|
|
76763
|
+
deviceKey: string(),
|
|
76764
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
76765
|
+
enabled: boolean(),
|
|
76766
|
+
available: boolean(),
|
|
76767
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
76768
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
76769
|
+
});
|
|
76770
|
+
var NodeRecommendationSchema = object({
|
|
76771
|
+
nodeId: string(),
|
|
76772
|
+
reachable: boolean(),
|
|
76773
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
76774
|
+
cpuModel: string().nullable(),
|
|
76775
|
+
skipped: boolean(),
|
|
76776
|
+
acceleratorModelId: string().nullable(),
|
|
76777
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
76778
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
76779
|
+
});
|
|
76780
|
+
var ModelPinChangeSchema = object({
|
|
76781
|
+
stepId: string(),
|
|
76782
|
+
before: string().nullable(),
|
|
76783
|
+
after: string().nullable()
|
|
76784
|
+
});
|
|
76785
|
+
var NodeDeviceChangeSchema = object({
|
|
76786
|
+
nodeId: string(),
|
|
76787
|
+
deviceKey: string(),
|
|
76788
|
+
madeExplicit: boolean(),
|
|
76789
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
76790
|
+
thresholds: array(object({
|
|
76791
|
+
stepId: string(),
|
|
76792
|
+
keys: array(string()).readonly()
|
|
76793
|
+
})).readonly()
|
|
76794
|
+
});
|
|
76795
|
+
var CameraOverrideClearSchema = object({
|
|
76796
|
+
deviceId: number(),
|
|
76797
|
+
source: _enum(["step-override", "wholesale"]),
|
|
76798
|
+
nodeId: string(),
|
|
76799
|
+
deviceKey: string().nullable(),
|
|
76800
|
+
stepId: string(),
|
|
76801
|
+
modelIdBefore: string().nullable(),
|
|
76802
|
+
keys: array(string()).readonly()
|
|
76803
|
+
});
|
|
76804
|
+
var DetectorStoreClearSchema = object({
|
|
76805
|
+
deviceId: number(),
|
|
76806
|
+
keys: array(string()).readonly()
|
|
76807
|
+
});
|
|
76808
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
76809
|
+
object({
|
|
76810
|
+
kind: literal("detector-store-cluster-wide"),
|
|
76811
|
+
skippedNodes: array(string()).readonly()
|
|
76812
|
+
}),
|
|
76813
|
+
object({
|
|
76814
|
+
kind: literal("detector-store-unreadable"),
|
|
76815
|
+
error: string()
|
|
76816
|
+
}),
|
|
76817
|
+
object({
|
|
76818
|
+
kind: literal("coral-enabled"),
|
|
76819
|
+
nodeId: string(),
|
|
76820
|
+
deviceKey: string()
|
|
76821
|
+
})
|
|
76822
|
+
]);
|
|
76823
|
+
var AutoTuneOptionsSchema = object({
|
|
76824
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
76825
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
76826
|
+
/**
|
|
76827
|
+
* The least number of parallel sessions every device must sustain at the
|
|
76828
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
76829
|
+
* that reaches it wins.
|
|
76830
|
+
*/
|
|
76831
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
76832
|
+
});
|
|
76833
|
+
var AutoTunePlanSchema = object({
|
|
76834
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
76835
|
+
planHash: string(),
|
|
76836
|
+
family: literal("yolov9"),
|
|
76837
|
+
headroom: number(),
|
|
76838
|
+
minSessionsPerDevice: number(),
|
|
76839
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
76840
|
+
cameraFps: number(),
|
|
76841
|
+
generatedAt: number(),
|
|
76842
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
76843
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
76844
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
76845
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
76846
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
76847
|
+
});
|
|
76848
|
+
var AutoTuneApplyInputSchema = object({
|
|
76849
|
+
planHash: string(),
|
|
76850
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
76851
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
76852
|
+
});
|
|
76853
|
+
var AutoTunePhaseResultSchema = object({
|
|
76854
|
+
phase: _enum([
|
|
76855
|
+
"download",
|
|
76856
|
+
"camera-overrides",
|
|
76857
|
+
"detector-thresholds",
|
|
76858
|
+
"node-models",
|
|
76859
|
+
"redispatch"
|
|
76860
|
+
]),
|
|
76861
|
+
ok: boolean(),
|
|
76862
|
+
detail: string()
|
|
76863
|
+
});
|
|
76864
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
76865
|
+
object({
|
|
76866
|
+
kind: literal("applied"),
|
|
76867
|
+
planHash: string(),
|
|
76868
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
76869
|
+
}),
|
|
76870
|
+
object({
|
|
76871
|
+
kind: literal("aborted"),
|
|
76872
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
76873
|
+
}),
|
|
76874
|
+
object({
|
|
76875
|
+
kind: literal("stale"),
|
|
76876
|
+
plan: AutoTunePlanSchema
|
|
76877
|
+
}),
|
|
76878
|
+
object({
|
|
76879
|
+
kind: literal("refused"),
|
|
76880
|
+
reason: _enum(["apply-in-progress"])
|
|
76881
|
+
})
|
|
76882
|
+
]);
|
|
76883
|
+
/**
|
|
76884
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
76885
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
76886
|
+
* hardware share suggestion and the stale device pins.
|
|
76887
|
+
*/
|
|
76888
|
+
/**
|
|
76889
|
+
* How a new detection session picks its node and device.
|
|
76890
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
76891
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
76892
|
+
* weight only bites once a node already holds a session.
|
|
76893
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
76894
|
+
* full or drowning node yields to a free one (D748).
|
|
76895
|
+
*/
|
|
76896
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
76897
|
+
var LoadBalancingSharesInputSchema = object({
|
|
76898
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
76899
|
+
nodes: record(string(), number().positive()).default({}),
|
|
76900
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
76901
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
76902
|
+
});
|
|
76903
|
+
var PlacementStatsInputSchema = object({
|
|
76904
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
76905
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
76906
|
+
var PlacementDeviceStatsSchema = object({
|
|
76907
|
+
deviceKey: string(),
|
|
76908
|
+
/** Sessions running on this device now. */
|
|
76909
|
+
sessionsNow: number(),
|
|
76910
|
+
/** Sessions started on this device inside the window. */
|
|
76911
|
+
sessionsStarted: number(),
|
|
76912
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
76913
|
+
observedShare: number().nullable()
|
|
76914
|
+
});
|
|
76915
|
+
var PlacementNodeStatsSchema = object({
|
|
76916
|
+
nodeId: string(),
|
|
76917
|
+
sessionsNow: number(),
|
|
76918
|
+
sessionsStarted: number(),
|
|
76919
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
76920
|
+
observedShare: number().nullable(),
|
|
76921
|
+
/** Most sessions this node ran at once inside the window. */
|
|
76922
|
+
peakSessions: number(),
|
|
76923
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
76924
|
+
yieldsAway: number(),
|
|
76925
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
76926
|
+
});
|
|
76927
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
76928
|
+
var StaleDevicePinSchema = object({
|
|
76929
|
+
deviceId: number(),
|
|
76930
|
+
deviceKey: string(),
|
|
76931
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
76932
|
+
reason: _enum(["disabled", "absent"])
|
|
76933
|
+
});
|
|
76934
|
+
var PlacementStatsSchema = object({
|
|
76935
|
+
policy: SessionPlacementPolicySchema,
|
|
76936
|
+
windowMs: number(),
|
|
76937
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
76938
|
+
observedForMs: number(),
|
|
76939
|
+
sessionsNow: number(),
|
|
76940
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
76941
|
+
clusterPeakSessions: number(),
|
|
76942
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
76943
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
76944
|
+
});
|
|
76945
|
+
/**
|
|
76946
|
+
* Where an automatic share's capacity comes from (D755).
|
|
76947
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
76948
|
+
* the measured latency table for the node's hardware class.
|
|
76949
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
76950
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
76951
|
+
*/
|
|
76952
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
76953
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
76954
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
76955
|
+
var SuggestSharesInputSchema = object({
|
|
76956
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
76957
|
+
/** Default `hardware`. */
|
|
76958
|
+
source: CapacitySourceSchema.default("hardware")
|
|
76959
|
+
});
|
|
76960
|
+
var SuggestedDeviceShareSchema = object({
|
|
76961
|
+
deviceKey: string(),
|
|
76962
|
+
/** Share of the node (0–100, rounded). */
|
|
76963
|
+
share: number(),
|
|
76964
|
+
modelId: string().nullable(),
|
|
76965
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
76966
|
+
fps: number().nullable(),
|
|
76967
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
76968
|
+
measured: boolean(),
|
|
76969
|
+
/**
|
|
76970
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
76971
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
76972
|
+
*/
|
|
76973
|
+
suggestedMaxSessions: number().nullable()
|
|
76974
|
+
});
|
|
76975
|
+
var SuggestedNodeShareSchema = object({
|
|
76976
|
+
nodeId: string(),
|
|
76977
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
76978
|
+
share: number().nullable(),
|
|
76979
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
76980
|
+
capacitySessions: number(),
|
|
76981
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
76982
|
+
skippedReason: string().nullable(),
|
|
76983
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
76984
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
76985
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
76986
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
76987
|
+
});
|
|
76988
|
+
var SuggestSharesResultSchema = object({
|
|
76989
|
+
headroom: number(),
|
|
76990
|
+
/** The source asked for; each node says what it actually used. */
|
|
76991
|
+
source: CapacitySourceSchema,
|
|
76992
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
76993
|
+
cameraFps: number(),
|
|
76994
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
76995
|
+
minSessionsPerDevice: number(),
|
|
76996
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
76997
|
+
});
|
|
76998
|
+
/**
|
|
76999
|
+
* Where the node and device shares come from (D750, D755).
|
|
77000
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
77001
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
77002
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
77003
|
+
* switched on or off, or changes model. No load input.
|
|
77004
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
77005
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
77006
|
+
* - `manual` — the operator's stored sliders.
|
|
77007
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
77008
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
77009
|
+
*/
|
|
77010
|
+
var ShareSourceSchema = _enum([
|
|
77011
|
+
"hardware",
|
|
77012
|
+
"benchmark",
|
|
77013
|
+
"manual"
|
|
77014
|
+
]);
|
|
77015
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
77016
|
+
object({
|
|
77017
|
+
nodes: record(string(), number()),
|
|
77018
|
+
devices: record(string(), record(string(), number()))
|
|
77019
|
+
});
|
|
77020
|
+
var EffectiveDeviceShareSchema = object({
|
|
77021
|
+
deviceKey: string(),
|
|
77022
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
77023
|
+
eligible: boolean(),
|
|
77024
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
77025
|
+
configuredPct: number(),
|
|
77026
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
77027
|
+
effectivePct: number()
|
|
77028
|
+
});
|
|
77029
|
+
var EffectiveNodeShareSchema = object({
|
|
77030
|
+
nodeId: string(),
|
|
77031
|
+
eligible: boolean(),
|
|
77032
|
+
configuredPct: number(),
|
|
77033
|
+
effectivePct: number(),
|
|
77034
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
77035
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
77036
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
77037
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
77038
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
77039
|
+
});
|
|
77040
|
+
var EffectiveSharesSchema = object({
|
|
77041
|
+
source: ShareSourceSchema,
|
|
77042
|
+
policy: SessionPlacementPolicySchema,
|
|
77043
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
77044
|
+
autoPending: boolean(),
|
|
77045
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
77046
|
+
computedAt: number().nullable(),
|
|
77047
|
+
/** What made the system recompute them last. */
|
|
77048
|
+
trigger: string().nullable(),
|
|
77049
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
77050
|
+
/** The relative weights the election reads (before eligibility). */
|
|
77051
|
+
nodeWeights: record(string(), number()),
|
|
77052
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
77053
|
+
});
|
|
76789
77054
|
object({
|
|
76790
77055
|
activeCameras: number(),
|
|
76791
77056
|
throttledCameras: number(),
|
|
@@ -77703,14 +77968,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
77703
77968
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
77704
77969
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
77705
77970
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
77706
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
77707
|
-
* per
|
|
77971
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
77972
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
77973
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
77974
|
+
* (D762).
|
|
77708
77975
|
*/
|
|
77709
77976
|
devices: array(object({
|
|
77710
77977
|
deviceKey: string(),
|
|
77711
77978
|
backend: string(),
|
|
77712
|
-
attachedCameras: number()
|
|
77713
|
-
queueDepthTotal: number()
|
|
77979
|
+
attachedCameras: number()
|
|
77714
77980
|
})).default([]),
|
|
77715
77981
|
/** Hardware capability flags reported by this node. */
|
|
77716
77982
|
hardware: object({
|
|
@@ -77924,14 +78190,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
77924
78190
|
settings: record(string(), unknown()).readonly().optional()
|
|
77925
78191
|
}).nullable().optional()
|
|
77926
78192
|
});
|
|
77927
|
-
var PipelineTemplateSchema = object({
|
|
77928
|
-
id: string(),
|
|
77929
|
-
name: string(),
|
|
77930
|
-
description: string().optional(),
|
|
77931
|
-
config: CameraPipelineConfigSchema,
|
|
77932
|
-
createdAt: string(),
|
|
77933
|
-
updatedAt: string()
|
|
77934
|
-
});
|
|
77935
78193
|
var DeviceStepConfigSchema = object({
|
|
77936
78194
|
modelId: string().optional(),
|
|
77937
78195
|
settings: record(string(), unknown()).optional(),
|
|
@@ -78005,9 +78263,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
78005
78263
|
modelId: string().optional(),
|
|
78006
78264
|
settings: record(string(), unknown()).readonly().optional()
|
|
78007
78265
|
});
|
|
78266
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
78008
78267
|
var CameraPipelineSettingsSchema = object({
|
|
78009
|
-
pinnedAgentNodeId: string().optional(),
|
|
78010
78268
|
stepToggles: record(string(), boolean()).optional(),
|
|
78269
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
78011
78270
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
78012
78271
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
78013
78272
|
});
|
|
@@ -78040,7 +78299,10 @@ var PipelineAssignmentSchema = object({
|
|
|
78040
78299
|
});
|
|
78041
78300
|
/**
|
|
78042
78301
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
78043
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
78302
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
78303
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
78304
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
78305
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
78044
78306
|
*/
|
|
78045
78307
|
var AgentLoadSummarySchema = object({
|
|
78046
78308
|
nodeId: string(),
|
|
@@ -78129,26 +78391,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
78129
78391
|
width: number(),
|
|
78130
78392
|
height: number(),
|
|
78131
78393
|
subscribers: number(),
|
|
78132
|
-
|
|
78133
|
-
|
|
78394
|
+
/**
|
|
78395
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
78396
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
78397
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
78398
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
78399
|
+
* camera and is not served (D758).
|
|
78400
|
+
*/
|
|
78401
|
+
inFps: number().nullable()
|
|
78134
78402
|
})).readonly(),
|
|
78135
78403
|
webrtcSessions: number(),
|
|
78136
78404
|
rtspRestream: boolean()
|
|
78137
78405
|
});
|
|
78138
|
-
/**
|
|
78139
|
-
|
|
78140
|
-
|
|
78141
|
-
|
|
78142
|
-
|
|
78143
|
-
|
|
78144
|
-
|
|
78145
|
-
|
|
78146
|
-
var CameraDecoderStatusSchema = object({
|
|
78147
|
-
nodeId: string(),
|
|
78148
|
-
formats: array(string()).readonly(),
|
|
78149
|
-
sessionCount: number(),
|
|
78150
|
-
shm: CameraDecoderShmSchema
|
|
78151
|
-
});
|
|
78406
|
+
/**
|
|
78407
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
78408
|
+
* construction); null when the camera has no detection node. It carries no
|
|
78409
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
78410
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
78411
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
78412
|
+
* detector), never from a counter nothing feeds.
|
|
78413
|
+
*/
|
|
78414
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
78152
78415
|
/** Motion block — null when motion detection is not active for this device. */
|
|
78153
78416
|
var CameraMotionStatusSchema = object({
|
|
78154
78417
|
enabled: boolean(),
|
|
@@ -78505,12 +78768,6 @@ method(object({
|
|
|
78505
78768
|
}), object({ success: literal(true) }), {
|
|
78506
78769
|
kind: "mutation",
|
|
78507
78770
|
auth: "admin"
|
|
78508
|
-
}), method(object({
|
|
78509
|
-
agentNodeId: string(),
|
|
78510
|
-
detectWeight: number().positive().nullable()
|
|
78511
|
-
}), object({ success: literal(true) }), {
|
|
78512
|
-
kind: "mutation",
|
|
78513
|
-
auth: "admin"
|
|
78514
78771
|
}), method(object({
|
|
78515
78772
|
agentNodeId: string(),
|
|
78516
78773
|
detect: boolean().nullable().optional(),
|
|
@@ -78552,6 +78809,15 @@ method(object({
|
|
|
78552
78809
|
}), {
|
|
78553
78810
|
kind: "mutation",
|
|
78554
78811
|
auth: "admin"
|
|
78812
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
78813
|
+
kind: "mutation",
|
|
78814
|
+
auth: "admin"
|
|
78815
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
78816
|
+
kind: "mutation",
|
|
78817
|
+
auth: "admin"
|
|
78818
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
78819
|
+
kind: "mutation",
|
|
78820
|
+
auth: "admin"
|
|
78555
78821
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
78556
78822
|
deviceId: number(),
|
|
78557
78823
|
addonId: string(),
|
|
@@ -78568,6 +78834,13 @@ method(object({
|
|
|
78568
78834
|
}), object({ success: literal(true) }), {
|
|
78569
78835
|
kind: "mutation",
|
|
78570
78836
|
auth: "admin"
|
|
78837
|
+
}), method(object({
|
|
78838
|
+
deviceId: number(),
|
|
78839
|
+
addonId: string(),
|
|
78840
|
+
settings: record(string(), unknown()).nullable()
|
|
78841
|
+
}), object({ success: literal(true) }), {
|
|
78842
|
+
kind: "mutation",
|
|
78843
|
+
auth: "admin"
|
|
78571
78844
|
}), method(object({
|
|
78572
78845
|
deviceId: number(),
|
|
78573
78846
|
agentNodeId: string(),
|
|
@@ -78591,25 +78864,7 @@ method(object({
|
|
|
78591
78864
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
78592
78865
|
kind: "mutation",
|
|
78593
78866
|
auth: "admin"
|
|
78594
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
78595
|
-
name: string(),
|
|
78596
|
-
description: string().optional(),
|
|
78597
|
-
config: CameraPipelineConfigSchema
|
|
78598
|
-
}), PipelineTemplateSchema, {
|
|
78599
|
-
kind: "mutation",
|
|
78600
|
-
auth: "admin"
|
|
78601
|
-
}), method(object({
|
|
78602
|
-
id: string(),
|
|
78603
|
-
name: string().optional(),
|
|
78604
|
-
description: string().optional(),
|
|
78605
|
-
config: CameraPipelineConfigSchema.optional()
|
|
78606
|
-
}), PipelineTemplateSchema, {
|
|
78607
|
-
kind: "mutation",
|
|
78608
|
-
auth: "admin"
|
|
78609
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
78610
|
-
kind: "mutation",
|
|
78611
|
-
auth: "admin"
|
|
78612
|
-
});
|
|
78867
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
78613
78868
|
/**
|
|
78614
78869
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
78615
78870
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -80858,8 +81113,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
80858
81113
|
]).nullable(),
|
|
80859
81114
|
/** Input FPS from the camera (null for adaptive). */
|
|
80860
81115
|
inputFps: number().nullable(),
|
|
80861
|
-
/** Decoded FPS (null for adaptive). */
|
|
80862
|
-
decodeFps: number().nullable(),
|
|
80863
81116
|
/** Bitrate in kbps (null for adaptive). */
|
|
80864
81117
|
bitrateKbps: number().nullable()
|
|
80865
81118
|
});
|
|
@@ -85105,7 +85358,7 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
85105
85358
|
localPort: AdvertisedLocalPortSchema
|
|
85106
85359
|
});
|
|
85107
85360
|
/**
|
|
85108
|
-
* The address flagged for notification
|
|
85361
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
85109
85362
|
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
85110
85363
|
* so the UI can show it either way.
|
|
85111
85364
|
*/
|
|
@@ -85140,8 +85393,8 @@ var ViewerEndpointsSchema = object({
|
|
|
85140
85393
|
});
|
|
85141
85394
|
/**
|
|
85142
85395
|
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
85143
|
-
*
|
|
85144
|
-
*
|
|
85396
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
85397
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
85145
85398
|
*/
|
|
85146
85399
|
var HubAddressSnapshotSchema = object({
|
|
85147
85400
|
override: string().nullable(),
|
|
@@ -85157,15 +85410,11 @@ var HubAddressesSchema = object({
|
|
|
85157
85410
|
browser: HubAddressSnapshotSchema
|
|
85158
85411
|
});
|
|
85159
85412
|
/**
|
|
85160
|
-
* What an address is used for (`hub-address.ts
|
|
85161
|
-
* `
|
|
85413
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
85414
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
85415
|
+
* by at most one address.
|
|
85162
85416
|
*/
|
|
85163
|
-
var HubAddressRoleSchema = _enum(
|
|
85164
|
-
"viewer",
|
|
85165
|
-
"notifications",
|
|
85166
|
-
"agents",
|
|
85167
|
-
"signIn"
|
|
85168
|
-
]);
|
|
85417
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
85169
85418
|
var RoleSourceSchema = _enum([
|
|
85170
85419
|
"flagged",
|
|
85171
85420
|
"auto",
|
|
@@ -85179,8 +85428,8 @@ var HubAddressRoleResolutionSchema = object({
|
|
|
85179
85428
|
resolved: string().nullable(),
|
|
85180
85429
|
source: RoleSourceSchema
|
|
85181
85430
|
});
|
|
85182
|
-
var
|
|
85183
|
-
/** The addresses flagged `
|
|
85431
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
85432
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
85184
85433
|
flagged: array(string()).readonly(),
|
|
85185
85434
|
/** What the apps race right now. */
|
|
85186
85435
|
resolved: array(string()).readonly(),
|
|
@@ -85200,10 +85449,10 @@ var HubAddressBookSchema = object({
|
|
|
85200
85449
|
eligible: array(HubAddressRoleSchema).readonly()
|
|
85201
85450
|
})).readonly(),
|
|
85202
85451
|
roles: object({
|
|
85203
|
-
|
|
85204
|
-
|
|
85205
|
-
|
|
85206
|
-
|
|
85452
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
85453
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
85454
|
+
internal: HubAddressRoleResolutionSchema,
|
|
85455
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
85207
85456
|
}),
|
|
85208
85457
|
/** The `hub=` an app link carries (D709), or null. */
|
|
85209
85458
|
appLinkHub: string().nullable()
|
|
@@ -85251,7 +85500,7 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
85251
85500
|
* tunnel always emits `https://` regardless. */
|
|
85252
85501
|
scheme: _enum(["http", "https"]).optional(),
|
|
85253
85502
|
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
85254
|
-
* an address notification
|
|
85503
|
+
* an address notification taps can be flagged with, not a hub
|
|
85255
85504
|
* route. Default `false`: racers and rankers never see it. */
|
|
85256
85505
|
includeAppLink: boolean().optional()
|
|
85257
85506
|
}), 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({
|
|
@@ -92425,6 +92674,16 @@ var zoneRulesCapability = {
|
|
|
92425
92674
|
durability: "restored"
|
|
92426
92675
|
};
|
|
92427
92676
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
92677
|
+
Object.freeze({
|
|
92678
|
+
person: .5,
|
|
92679
|
+
vehicle: .5,
|
|
92680
|
+
animal: .5
|
|
92681
|
+
});
|
|
92682
|
+
Object.freeze({
|
|
92683
|
+
person: .65,
|
|
92684
|
+
vehicle: .65,
|
|
92685
|
+
animal: .65
|
|
92686
|
+
});
|
|
92428
92687
|
/**
|
|
92429
92688
|
* Accessory device helpers — shared across drivers.
|
|
92430
92689
|
*
|
|
@@ -95305,90 +95564,18 @@ Object.freeze({
|
|
|
95305
95564
|
addonId: null,
|
|
95306
95565
|
access: "create"
|
|
95307
95566
|
},
|
|
95308
|
-
"decoder.createSession": {
|
|
95309
|
-
capName: "decoder",
|
|
95310
|
-
capScope: "system",
|
|
95311
|
-
addonId: null,
|
|
95312
|
-
access: "view"
|
|
95313
|
-
},
|
|
95314
|
-
"decoder.destroySession": {
|
|
95315
|
-
capName: "decoder",
|
|
95316
|
-
capScope: "system",
|
|
95317
|
-
addonId: null,
|
|
95318
|
-
access: "delete"
|
|
95319
|
-
},
|
|
95320
|
-
"decoder.getFrame": {
|
|
95321
|
-
capName: "decoder",
|
|
95322
|
-
capScope: "system",
|
|
95323
|
-
addonId: null,
|
|
95324
|
-
access: "view"
|
|
95325
|
-
},
|
|
95326
95567
|
"decoder.getInfo": {
|
|
95327
95568
|
capName: "decoder",
|
|
95328
95569
|
capScope: "system",
|
|
95329
95570
|
addonId: null,
|
|
95330
95571
|
access: "view"
|
|
95331
95572
|
},
|
|
95332
|
-
"decoder.getShmStats": {
|
|
95333
|
-
capName: "decoder",
|
|
95334
|
-
capScope: "system",
|
|
95335
|
-
addonId: null,
|
|
95336
|
-
access: "view"
|
|
95337
|
-
},
|
|
95338
|
-
"decoder.getStats": {
|
|
95339
|
-
capName: "decoder",
|
|
95340
|
-
capScope: "system",
|
|
95341
|
-
addonId: null,
|
|
95342
|
-
access: "view"
|
|
95343
|
-
},
|
|
95344
|
-
"decoder.listActiveSessions": {
|
|
95345
|
-
capName: "decoder",
|
|
95346
|
-
capScope: "system",
|
|
95347
|
-
addonId: null,
|
|
95348
|
-
access: "view"
|
|
95349
|
-
},
|
|
95350
|
-
"decoder.openStream": {
|
|
95351
|
-
capName: "decoder",
|
|
95352
|
-
capScope: "system",
|
|
95353
|
-
addonId: null,
|
|
95354
|
-
access: "view"
|
|
95355
|
-
},
|
|
95356
|
-
"decoder.pullFrames": {
|
|
95357
|
-
capName: "decoder",
|
|
95358
|
-
capScope: "system",
|
|
95359
|
-
addonId: null,
|
|
95360
|
-
access: "view"
|
|
95361
|
-
},
|
|
95362
|
-
"decoder.pullHandles": {
|
|
95363
|
-
capName: "decoder",
|
|
95364
|
-
capScope: "system",
|
|
95365
|
-
addonId: null,
|
|
95366
|
-
access: "view"
|
|
95367
|
-
},
|
|
95368
|
-
"decoder.pushPacket": {
|
|
95369
|
-
capName: "decoder",
|
|
95370
|
-
capScope: "system",
|
|
95371
|
-
addonId: null,
|
|
95372
|
-
access: "view"
|
|
95373
|
-
},
|
|
95374
95573
|
"decoder.reprobeHwaccel": {
|
|
95375
95574
|
capName: "decoder",
|
|
95376
95575
|
capScope: "system",
|
|
95377
95576
|
addonId: null,
|
|
95378
95577
|
access: "create"
|
|
95379
95578
|
},
|
|
95380
|
-
"decoder.supportsCodec": {
|
|
95381
|
-
capName: "decoder",
|
|
95382
|
-
capScope: "system",
|
|
95383
|
-
addonId: null,
|
|
95384
|
-
access: "view"
|
|
95385
|
-
},
|
|
95386
|
-
"decoder.updateConfig": {
|
|
95387
|
-
capName: "decoder",
|
|
95388
|
-
capScope: "system",
|
|
95389
|
-
addonId: null,
|
|
95390
|
-
access: "view"
|
|
95391
|
-
},
|
|
95392
95579
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
95393
95580
|
capName: "detection-pipeline",
|
|
95394
95581
|
capScope: "device",
|
|
@@ -98467,13 +98654,13 @@ Object.freeze({
|
|
|
98467
98654
|
addonId: null,
|
|
98468
98655
|
access: "delete"
|
|
98469
98656
|
},
|
|
98470
|
-
"pipelineExecutor.
|
|
98657
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
98471
98658
|
capName: "pipeline-executor",
|
|
98472
98659
|
capScope: "system",
|
|
98473
98660
|
addonId: null,
|
|
98474
98661
|
access: "delete"
|
|
98475
98662
|
},
|
|
98476
|
-
"pipelineExecutor.
|
|
98663
|
+
"pipelineExecutor.deleteModel": {
|
|
98477
98664
|
capName: "pipeline-executor",
|
|
98478
98665
|
capScope: "system",
|
|
98479
98666
|
addonId: null,
|
|
@@ -98617,12 +98804,6 @@ Object.freeze({
|
|
|
98617
98804
|
addonId: null,
|
|
98618
98805
|
access: "view"
|
|
98619
98806
|
},
|
|
98620
|
-
"pipelineExecutor.listTemplates": {
|
|
98621
|
-
capName: "pipeline-executor",
|
|
98622
|
-
capScope: "system",
|
|
98623
|
-
addonId: null,
|
|
98624
|
-
access: "view"
|
|
98625
|
-
},
|
|
98626
98807
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
98627
98808
|
capName: "pipeline-executor",
|
|
98628
98809
|
capScope: "system",
|
|
@@ -98647,12 +98828,6 @@ Object.freeze({
|
|
|
98647
98828
|
addonId: null,
|
|
98648
98829
|
access: "create"
|
|
98649
98830
|
},
|
|
98650
|
-
"pipelineExecutor.saveTemplate": {
|
|
98651
|
-
capName: "pipeline-executor",
|
|
98652
|
-
capScope: "system",
|
|
98653
|
-
addonId: null,
|
|
98654
|
-
access: "create"
|
|
98655
|
-
},
|
|
98656
98831
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
98657
98832
|
capName: "pipeline-executor",
|
|
98658
98833
|
capScope: "system",
|
|
@@ -98671,41 +98846,35 @@ Object.freeze({
|
|
|
98671
98846
|
addonId: null,
|
|
98672
98847
|
access: "create"
|
|
98673
98848
|
},
|
|
98674
|
-
"pipelineExecutor.updateTemplate": {
|
|
98675
|
-
capName: "pipeline-executor",
|
|
98676
|
-
capScope: "system",
|
|
98677
|
-
addonId: null,
|
|
98678
|
-
access: "create"
|
|
98679
|
-
},
|
|
98680
98849
|
"pipelineExecutor.validatePipeline": {
|
|
98681
98850
|
capName: "pipeline-executor",
|
|
98682
98851
|
capScope: "system",
|
|
98683
98852
|
addonId: null,
|
|
98684
98853
|
access: "view"
|
|
98685
98854
|
},
|
|
98686
|
-
"pipelineOrchestrator.
|
|
98855
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
98687
98856
|
capName: "pipeline-orchestrator",
|
|
98688
98857
|
capScope: "system",
|
|
98689
98858
|
addonId: null,
|
|
98690
98859
|
access: "create"
|
|
98691
98860
|
},
|
|
98692
|
-
"pipelineOrchestrator.
|
|
98861
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
98693
98862
|
capName: "pipeline-orchestrator",
|
|
98694
98863
|
capScope: "system",
|
|
98695
98864
|
addonId: null,
|
|
98696
98865
|
access: "create"
|
|
98697
98866
|
},
|
|
98698
|
-
"pipelineOrchestrator.
|
|
98867
|
+
"pipelineOrchestrator.assignAudio": {
|
|
98699
98868
|
capName: "pipeline-orchestrator",
|
|
98700
98869
|
capScope: "system",
|
|
98701
98870
|
addonId: null,
|
|
98702
98871
|
access: "create"
|
|
98703
98872
|
},
|
|
98704
|
-
"pipelineOrchestrator.
|
|
98873
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
98705
98874
|
capName: "pipeline-orchestrator",
|
|
98706
98875
|
capScope: "system",
|
|
98707
98876
|
addonId: null,
|
|
98708
|
-
access: "
|
|
98877
|
+
access: "create"
|
|
98709
98878
|
},
|
|
98710
98879
|
"pipelineOrchestrator.getAgentLoad": {
|
|
98711
98880
|
capName: "pipeline-orchestrator",
|
|
@@ -98797,6 +98966,12 @@ Object.freeze({
|
|
|
98797
98966
|
addonId: null,
|
|
98798
98967
|
access: "view"
|
|
98799
98968
|
},
|
|
98969
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
98970
|
+
capName: "pipeline-orchestrator",
|
|
98971
|
+
capScope: "system",
|
|
98972
|
+
addonId: null,
|
|
98973
|
+
access: "view"
|
|
98974
|
+
},
|
|
98800
98975
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
98801
98976
|
capName: "pipeline-orchestrator",
|
|
98802
98977
|
capScope: "system",
|
|
@@ -98833,19 +99008,19 @@ Object.freeze({
|
|
|
98833
99008
|
addonId: null,
|
|
98834
99009
|
access: "view"
|
|
98835
99010
|
},
|
|
98836
|
-
"pipelineOrchestrator.
|
|
99011
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
98837
99012
|
capName: "pipeline-orchestrator",
|
|
98838
99013
|
capScope: "system",
|
|
98839
99014
|
addonId: null,
|
|
98840
99015
|
access: "view"
|
|
98841
99016
|
},
|
|
98842
|
-
"pipelineOrchestrator.
|
|
99017
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
98843
99018
|
capName: "pipeline-orchestrator",
|
|
98844
99019
|
capScope: "system",
|
|
98845
99020
|
addonId: null,
|
|
98846
99021
|
access: "view"
|
|
98847
99022
|
},
|
|
98848
|
-
"pipelineOrchestrator.
|
|
99023
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
98849
99024
|
capName: "pipeline-orchestrator",
|
|
98850
99025
|
capScope: "system",
|
|
98851
99026
|
addonId: null,
|
|
@@ -98857,6 +99032,12 @@ Object.freeze({
|
|
|
98857
99032
|
addonId: null,
|
|
98858
99033
|
access: "create"
|
|
98859
99034
|
},
|
|
99035
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
99036
|
+
capName: "pipeline-orchestrator",
|
|
99037
|
+
capScope: "system",
|
|
99038
|
+
addonId: null,
|
|
99039
|
+
access: "view"
|
|
99040
|
+
},
|
|
98860
99041
|
"pipelineOrchestrator.rebalance": {
|
|
98861
99042
|
capName: "pipeline-orchestrator",
|
|
98862
99043
|
capScope: "system",
|
|
@@ -98899,12 +99080,6 @@ Object.freeze({
|
|
|
98899
99080
|
addonId: null,
|
|
98900
99081
|
access: "create"
|
|
98901
99082
|
},
|
|
98902
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
98903
|
-
capName: "pipeline-orchestrator",
|
|
98904
|
-
capScope: "system",
|
|
98905
|
-
addonId: null,
|
|
98906
|
-
access: "create"
|
|
98907
|
-
},
|
|
98908
99083
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
98909
99084
|
capName: "pipeline-orchestrator",
|
|
98910
99085
|
capScope: "system",
|
|
@@ -98917,12 +99092,6 @@ Object.freeze({
|
|
|
98917
99092
|
addonId: null,
|
|
98918
99093
|
access: "create"
|
|
98919
99094
|
},
|
|
98920
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
98921
|
-
capName: "pipeline-orchestrator",
|
|
98922
|
-
capScope: "system",
|
|
98923
|
-
addonId: null,
|
|
98924
|
-
access: "create"
|
|
98925
|
-
},
|
|
98926
99095
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
98927
99096
|
capName: "pipeline-orchestrator",
|
|
98928
99097
|
capScope: "system",
|
|
@@ -98959,6 +99128,12 @@ Object.freeze({
|
|
|
98959
99128
|
addonId: null,
|
|
98960
99129
|
access: "create"
|
|
98961
99130
|
},
|
|
99131
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
99132
|
+
capName: "pipeline-orchestrator",
|
|
99133
|
+
capScope: "system",
|
|
99134
|
+
addonId: null,
|
|
99135
|
+
access: "create"
|
|
99136
|
+
},
|
|
98962
99137
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
98963
99138
|
capName: "pipeline-orchestrator",
|
|
98964
99139
|
capScope: "system",
|
|
@@ -98977,25 +99152,37 @@ Object.freeze({
|
|
|
98977
99152
|
addonId: null,
|
|
98978
99153
|
access: "create"
|
|
98979
99154
|
},
|
|
99155
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
99156
|
+
capName: "pipeline-orchestrator",
|
|
99157
|
+
capScope: "system",
|
|
99158
|
+
addonId: null,
|
|
99159
|
+
access: "create"
|
|
99160
|
+
},
|
|
98980
99161
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
98981
99162
|
capName: "pipeline-orchestrator",
|
|
98982
99163
|
capScope: "system",
|
|
98983
99164
|
addonId: null,
|
|
98984
99165
|
access: "create"
|
|
98985
99166
|
},
|
|
98986
|
-
"pipelineOrchestrator.
|
|
99167
|
+
"pipelineOrchestrator.setShareSource": {
|
|
98987
99168
|
capName: "pipeline-orchestrator",
|
|
98988
99169
|
capScope: "system",
|
|
98989
99170
|
addonId: null,
|
|
98990
99171
|
access: "create"
|
|
98991
99172
|
},
|
|
98992
|
-
"pipelineOrchestrator.
|
|
99173
|
+
"pipelineOrchestrator.suggestShares": {
|
|
99174
|
+
capName: "pipeline-orchestrator",
|
|
99175
|
+
capScope: "system",
|
|
99176
|
+
addonId: null,
|
|
99177
|
+
access: "view"
|
|
99178
|
+
},
|
|
99179
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
98993
99180
|
capName: "pipeline-orchestrator",
|
|
98994
99181
|
capScope: "system",
|
|
98995
99182
|
addonId: null,
|
|
98996
99183
|
access: "create"
|
|
98997
99184
|
},
|
|
98998
|
-
"pipelineOrchestrator.
|
|
99185
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
98999
99186
|
capName: "pipeline-orchestrator",
|
|
99000
99187
|
capScope: "system",
|
|
99001
99188
|
addonId: null,
|
|
@@ -100435,12 +100622,6 @@ Object.freeze({
|
|
|
100435
100622
|
addonId: null,
|
|
100436
100623
|
access: "view"
|
|
100437
100624
|
},
|
|
100438
|
-
"streamBroker.pullFrameHandles": {
|
|
100439
|
-
capName: "stream-broker",
|
|
100440
|
-
capScope: "system",
|
|
100441
|
-
addonId: null,
|
|
100442
|
-
access: "view"
|
|
100443
|
-
},
|
|
100444
100625
|
"streamBroker.regenerateRtspToken": {
|
|
100445
100626
|
capName: "stream-broker",
|
|
100446
100627
|
capScope: "system",
|
|
@@ -100507,12 +100688,6 @@ Object.freeze({
|
|
|
100507
100688
|
addonId: null,
|
|
100508
100689
|
access: "create"
|
|
100509
100690
|
},
|
|
100510
|
-
"streamBroker.subscribeFrames": {
|
|
100511
|
-
capName: "stream-broker",
|
|
100512
|
-
capScope: "system",
|
|
100513
|
-
addonId: null,
|
|
100514
|
-
access: "create"
|
|
100515
|
-
},
|
|
100516
100691
|
"streamBroker.unassignProfile": {
|
|
100517
100692
|
capName: "stream-broker",
|
|
100518
100693
|
capScope: "system",
|
|
@@ -100525,12 +100700,6 @@ Object.freeze({
|
|
|
100525
100700
|
addonId: null,
|
|
100526
100701
|
access: "create"
|
|
100527
100702
|
},
|
|
100528
|
-
"streamBroker.unsubscribeFrames": {
|
|
100529
|
-
capName: "stream-broker",
|
|
100530
|
-
capScope: "system",
|
|
100531
|
-
addonId: null,
|
|
100532
|
-
access: "create"
|
|
100533
|
-
},
|
|
100534
100703
|
"streamCatalog.getCatalog": {
|
|
100535
100704
|
capName: "stream-catalog",
|
|
100536
100705
|
capScope: "device",
|
|
@@ -103044,11 +103213,6 @@ Object.freeze({
|
|
|
103044
103213
|
form: "single",
|
|
103045
103214
|
optional: false
|
|
103046
103215
|
}],
|
|
103047
|
-
"decoder.createSession": [{
|
|
103048
|
-
name: "deviceId",
|
|
103049
|
-
form: "single",
|
|
103050
|
-
optional: true
|
|
103051
|
-
}],
|
|
103052
103216
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
103053
103217
|
name: "deviceId",
|
|
103054
103218
|
form: "single",
|
|
@@ -104279,6 +104443,11 @@ Object.freeze({
|
|
|
104279
104443
|
form: "single",
|
|
104280
104444
|
optional: false
|
|
104281
104445
|
}],
|
|
104446
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
104447
|
+
name: "deviceIds",
|
|
104448
|
+
form: "array",
|
|
104449
|
+
optional: true
|
|
104450
|
+
}],
|
|
104282
104451
|
"pipelineExecutor.runPipeline": [{
|
|
104283
104452
|
name: "deviceId",
|
|
104284
104453
|
form: "single",
|
|
@@ -104384,6 +104553,11 @@ Object.freeze({
|
|
|
104384
104553
|
form: "single",
|
|
104385
104554
|
optional: false
|
|
104386
104555
|
}],
|
|
104556
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
104557
|
+
name: "deviceId",
|
|
104558
|
+
form: "single",
|
|
104559
|
+
optional: false
|
|
104560
|
+
}],
|
|
104387
104561
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
104388
104562
|
name: "deviceId",
|
|
104389
104563
|
form: "single",
|
|
@@ -108783,11 +108957,18 @@ function cameraStreamCatalog(session) {
|
|
|
108783
108957
|
}];
|
|
108784
108958
|
}
|
|
108785
108959
|
/**
|
|
108960
|
+
* The hub's internal address (D734) — the one a broker on another node dials
|
|
108961
|
+
* the relay at. Never the public endpoint: the relay is LAN traffic.
|
|
108962
|
+
*/
|
|
108963
|
+
function relayHubAddress(book) {
|
|
108964
|
+
return book.roles.internal.resolved;
|
|
108965
|
+
}
|
|
108966
|
+
/**
|
|
108786
108967
|
* The host the broker is told to dial. The provider and the ingest owner
|
|
108787
108968
|
* share the hub today, but a broker on another node reaches the hub only
|
|
108788
|
-
* through the hub's address
|
|
108789
|
-
* .roles.
|
|
108790
|
-
* detected LAN address).
|
|
108969
|
+
* through the hub's internal address — `local-network.getAddresses()
|
|
108970
|
+
* .roles.internal` (the address flagged "Internal" on the Network page, else
|
|
108971
|
+
* the detected LAN address).
|
|
108791
108972
|
* Loopback when that names nothing: then the only broker that can dial at
|
|
108792
108973
|
* all is this node's own.
|
|
108793
108974
|
*/
|
|
@@ -155184,14 +155365,14 @@ var DreameCameraDevice = class extends DreameChildDevice {
|
|
|
155184
155365
|
/** Register the stream on the broker — the server, or the lazy sentinel (push semantics; the catalog is the durable copy). */
|
|
155185
155366
|
/**
|
|
155186
155367
|
* The hub's address for agents and LAN devices
|
|
155187
|
-
* (`local-network.getAddresses().roles.
|
|
155188
|
-
* "
|
|
155368
|
+
* (`local-network.getAddresses().roles.internal`: the address flagged
|
|
155369
|
+
* "Internal" on the Network page, else the detected LAN address). A failed
|
|
155189
155370
|
* read is `null` — `advertisedRfcHost` then answers loopback, which this
|
|
155190
155371
|
* node's own broker can still dial.
|
|
155191
155372
|
*/
|
|
155192
155373
|
async hubClusterAddress() {
|
|
155193
155374
|
try {
|
|
155194
|
-
return (await this.ctx.api.localNetwork.getAddresses.query())
|
|
155375
|
+
return relayHubAddress(await this.ctx.api.localNetwork.getAddresses.query());
|
|
155195
155376
|
} catch (err) {
|
|
155196
155377
|
this.ctx.logger.warn("robot camera: hub address unavailable — advertising loopback", {
|
|
155197
155378
|
tags: { deviceId: this.id },
|