@camstack/addon-provider-dreo 0.2.119 → 0.2.120
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 +999 -532
- package/dist/addon.mjs +999 -532
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -35,7 +35,7 @@ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["modu
|
|
|
35
35
|
//#endregion
|
|
36
36
|
let crypto$1 = require("crypto");
|
|
37
37
|
let events = require("events");
|
|
38
|
-
//#region ../types/dist/event-category-
|
|
38
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
39
39
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
40
40
|
EventCategory["SystemBoot"] = "system.boot";
|
|
41
41
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -536,15 +536,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
536
536
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
537
537
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
538
538
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
539
|
-
/**
|
|
540
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
541
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
542
|
-
* `createSession`, so running sessions keep their current backend until
|
|
543
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
544
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
545
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
546
|
-
*/
|
|
547
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
548
539
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
549
540
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
550
541
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -5415,7 +5406,7 @@ var ZodIssueCode = {
|
|
|
5415
5406
|
var ZodFirstPartyTypeKind;
|
|
5416
5407
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5417
5408
|
//#endregion
|
|
5418
|
-
//#region ../types/dist/sleep-
|
|
5409
|
+
//#region ../types/dist/sleep-BNeXenvr.mjs
|
|
5419
5410
|
/**
|
|
5420
5411
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5421
5412
|
* window to float samples (D455).
|
|
@@ -6781,32 +6772,12 @@ object({
|
|
|
6781
6772
|
audioCodec: string().optional(),
|
|
6782
6773
|
metadata: record(string(), unknown()).readonly().optional()
|
|
6783
6774
|
});
|
|
6784
|
-
var EncodedPacketSchema = object({
|
|
6785
|
-
type: _enum(["video", "audio"]),
|
|
6786
|
-
data: _instanceof(Uint8Array),
|
|
6787
|
-
pts: number(),
|
|
6788
|
-
dts: number(),
|
|
6789
|
-
keyframe: boolean(),
|
|
6790
|
-
codec: string()
|
|
6791
|
-
});
|
|
6792
|
-
var DecodedFrameSchema = object({
|
|
6793
|
-
data: _instanceof(Uint8Array),
|
|
6794
|
-
width: number(),
|
|
6795
|
-
height: number(),
|
|
6796
|
-
format: _enum([
|
|
6797
|
-
"jpeg",
|
|
6798
|
-
"rgb",
|
|
6799
|
-
"bgr",
|
|
6800
|
-
"yuv420",
|
|
6801
|
-
"gray"
|
|
6802
|
-
]),
|
|
6803
|
-
timestamp: number()
|
|
6804
|
-
});
|
|
6805
6775
|
/**
|
|
6806
6776
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
6807
6777
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
6808
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
6809
|
-
*
|
|
6778
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
6779
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
6780
|
+
* over tRPC / Moleculer.
|
|
6810
6781
|
*
|
|
6811
6782
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
6812
6783
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -6832,50 +6803,6 @@ var FrameHandleSchema = object({
|
|
|
6832
6803
|
slotCount: number().int().positive()
|
|
6833
6804
|
});
|
|
6834
6805
|
/**
|
|
6835
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
6836
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
6837
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
6838
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
6839
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
6840
|
-
*/
|
|
6841
|
-
var FrameHandleFormatSchema = _enum([
|
|
6842
|
-
"rgb",
|
|
6843
|
-
"bgr",
|
|
6844
|
-
"yuv420",
|
|
6845
|
-
"gray"
|
|
6846
|
-
]);
|
|
6847
|
-
/**
|
|
6848
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
6849
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
6850
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
6851
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
6852
|
-
* they asked for with no broker-side conversion.
|
|
6853
|
-
*/
|
|
6854
|
-
var SubscribeFramesInputSchema = object({
|
|
6855
|
-
brokerId: string(),
|
|
6856
|
-
format: FrameHandleFormatSchema,
|
|
6857
|
-
/**
|
|
6858
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
6859
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
6860
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
6861
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
6862
|
-
*/
|
|
6863
|
-
maxFps: number().positive().optional(),
|
|
6864
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
6865
|
-
tag: string().optional()
|
|
6866
|
-
});
|
|
6867
|
-
/**
|
|
6868
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
6869
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
6870
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
6871
|
-
*/
|
|
6872
|
-
var SubscribeFramesResultSchema = object({
|
|
6873
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
6874
|
-
subscriptionId: string(),
|
|
6875
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
6876
|
-
maxFps: number().nonnegative()
|
|
6877
|
-
});
|
|
6878
|
-
/**
|
|
6879
6806
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
6880
6807
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
6881
6808
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -6883,8 +6810,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
6883
6810
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
6884
6811
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
6885
6812
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
6886
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
6887
|
-
*
|
|
6813
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
6814
|
+
* it.
|
|
6888
6815
|
*/
|
|
6889
6816
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
6890
6817
|
var DecodedAudioChunkSchema = object({
|
|
@@ -6902,11 +6829,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
6902
6829
|
format: AudioChunkFormatSchema.optional()
|
|
6903
6830
|
});
|
|
6904
6831
|
/**
|
|
6905
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
6906
|
-
*
|
|
6907
|
-
*
|
|
6908
|
-
*
|
|
6909
|
-
* `pullAudioChunks`.
|
|
6832
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
6833
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
6834
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
6835
|
+
* the consumer drains via `pullAudioChunks`.
|
|
6910
6836
|
*/
|
|
6911
6837
|
var SubscribeAudioChunksInputSchema = object({
|
|
6912
6838
|
brokerId: string(),
|
|
@@ -6937,9 +6863,7 @@ var BrokerStatsSchema = object({
|
|
|
6937
6863
|
"stopped"
|
|
6938
6864
|
]),
|
|
6939
6865
|
inputFps: number(),
|
|
6940
|
-
decodeFps: number(),
|
|
6941
6866
|
encodedSubscribers: number(),
|
|
6942
|
-
decodedSubscribers: number(),
|
|
6943
6867
|
uptimeMs: number(),
|
|
6944
6868
|
bitrateKbps: number(),
|
|
6945
6869
|
idrIntervalMs: number(),
|
|
@@ -6952,14 +6876,6 @@ var BrokerStatsSchema = object({
|
|
|
6952
6876
|
preBufferMs: number(),
|
|
6953
6877
|
preBufferPackets: number(),
|
|
6954
6878
|
/**
|
|
6955
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
6956
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
6957
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
6958
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
6959
|
-
* a separate cap call per broker.
|
|
6960
|
-
*/
|
|
6961
|
-
decoderNodeId: string().nullable(),
|
|
6962
|
-
/**
|
|
6963
6879
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
6964
6880
|
* when the stream has no audio track or the broker is in cold start.
|
|
6965
6881
|
* `supported = false` means the codec was detected but the local
|
|
@@ -10295,70 +10211,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
10295
10211
|
"backup"
|
|
10296
10212
|
]).optional()
|
|
10297
10213
|
});
|
|
10298
|
-
var DecoderStatsSchema = object({
|
|
10299
|
-
inputFps: number(),
|
|
10300
|
-
outputFps: number(),
|
|
10301
|
-
avgDecodeTimeMs: number(),
|
|
10302
|
-
droppedFrames: number(),
|
|
10303
|
-
/**
|
|
10304
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
10305
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
10306
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
10307
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
10308
|
-
*/
|
|
10309
|
-
lagMs: number().optional(),
|
|
10310
|
-
effectiveFps: number().optional(),
|
|
10311
|
-
adaptiveFps: number().optional()
|
|
10312
|
-
});
|
|
10313
|
-
var DecoderSessionConfigSchema = object({
|
|
10314
|
-
codec: string(),
|
|
10315
|
-
maxFps: number().default(0),
|
|
10316
|
-
outputFormat: _enum([
|
|
10317
|
-
"jpeg",
|
|
10318
|
-
"rgb",
|
|
10319
|
-
"bgr",
|
|
10320
|
-
"yuv420",
|
|
10321
|
-
"gray"
|
|
10322
|
-
]).default("jpeg"),
|
|
10323
|
-
scale: number().default(1),
|
|
10324
|
-
width: number().optional(),
|
|
10325
|
-
height: number().optional(),
|
|
10326
|
-
/**
|
|
10327
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
10328
|
-
* because the cap is generic (any caller could request decode), but
|
|
10329
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
10330
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
10331
|
-
* sendPacket errors on a single hung camera).
|
|
10332
|
-
*/
|
|
10333
|
-
deviceId: number().int().nonnegative().optional(),
|
|
10334
|
-
/**
|
|
10335
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
10336
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
10337
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
10338
|
-
* profile cleanly.
|
|
10339
|
-
*/
|
|
10340
|
-
tag: string().optional(),
|
|
10341
|
-
/**
|
|
10342
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
10343
|
-
*
|
|
10344
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
10345
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
10346
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
10347
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
10348
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
10349
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
10350
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
10351
|
-
*/
|
|
10352
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
10353
|
-
/**
|
|
10354
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
10355
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
10356
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
10357
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
10358
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
10359
|
-
*/
|
|
10360
|
-
debug: boolean().optional()
|
|
10361
|
-
});
|
|
10362
10214
|
/**
|
|
10363
10215
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
10364
10216
|
* an addon declares its channels in.
|
|
@@ -10501,6 +10353,26 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10501
10353
|
"balanced",
|
|
10502
10354
|
"strict"
|
|
10503
10355
|
]);
|
|
10356
|
+
/** Steps whose effect a root label can BE. */
|
|
10357
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10358
|
+
"animal-classifier",
|
|
10359
|
+
"vehicle-classifier",
|
|
10360
|
+
"package-detection"
|
|
10361
|
+
];
|
|
10362
|
+
/** Steps whose box a root detection can BE. */
|
|
10363
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10364
|
+
/**
|
|
10365
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
10366
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
10367
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
10368
|
+
* no camera tree carries.)
|
|
10369
|
+
*/
|
|
10370
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
10371
|
+
[
|
|
10372
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
10373
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
10374
|
+
...MASK_SUPPLY_STEP_IDS
|
|
10375
|
+
];
|
|
10504
10376
|
var MODEL_FORMATS = [
|
|
10505
10377
|
"onnx",
|
|
10506
10378
|
"coreml",
|
|
@@ -10529,7 +10401,53 @@ var ModelFormatEntrySchema = object({
|
|
|
10529
10401
|
/** Multi-file payload (directory members or sibling files). */
|
|
10530
10402
|
files: array(string()).readonly().optional(),
|
|
10531
10403
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
10532
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
10404
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
10405
|
+
/**
|
|
10406
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
10407
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
10408
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
10409
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
10410
|
+
* node records the revision it downloaded next to the file
|
|
10411
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
10412
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
10413
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
10414
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
10415
|
+
*/
|
|
10416
|
+
revision: string().min(1).optional()
|
|
10417
|
+
});
|
|
10418
|
+
/**
|
|
10419
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
10420
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
10421
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
10422
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
10423
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
10424
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
10425
|
+
*/
|
|
10426
|
+
var ModelOnDiskStateSchema = _enum([
|
|
10427
|
+
"current",
|
|
10428
|
+
"stale",
|
|
10429
|
+
"missing"
|
|
10430
|
+
]);
|
|
10431
|
+
/**
|
|
10432
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
10433
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
10434
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
10435
|
+
*/
|
|
10436
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
10437
|
+
"fp32",
|
|
10438
|
+
"fp16",
|
|
10439
|
+
"int8"
|
|
10440
|
+
]);
|
|
10441
|
+
/**
|
|
10442
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
10443
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
10444
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
10445
|
+
*/
|
|
10446
|
+
var PipelineModelFormatStatusSchema = object({
|
|
10447
|
+
downloaded: boolean(),
|
|
10448
|
+
sizeMB: number(),
|
|
10449
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
10450
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
10533
10451
|
});
|
|
10534
10452
|
/**
|
|
10535
10453
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -10570,11 +10488,11 @@ var ModelVariantGroupSchema = object({
|
|
|
10570
10488
|
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
10571
10489
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
10572
10490
|
/**
|
|
10573
|
-
*
|
|
10574
|
-
*
|
|
10575
|
-
*
|
|
10491
|
+
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
10492
|
+
* an alternate training of the same family (Scrypted `relu_test`); chip
|
|
10493
|
+
* label is "Test".
|
|
10576
10494
|
*/
|
|
10577
|
-
optimization: _enum(["standard", "
|
|
10495
|
+
optimization: _enum(["standard", "test"]).optional(),
|
|
10578
10496
|
/**
|
|
10579
10497
|
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
10580
10498
|
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
@@ -10597,9 +10515,10 @@ var ModelProviderIdSchema = _enum([
|
|
|
10597
10515
|
* are per upstream. A persisted custom-model row written when this field was a
|
|
10598
10516
|
* string still parses — the string is lifted into `{ weights }`.
|
|
10599
10517
|
*
|
|
10600
|
-
* Every licence surface (the
|
|
10601
|
-
*
|
|
10602
|
-
*
|
|
10518
|
+
* Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
|
|
10519
|
+
* model table) is GENERATED from these records by
|
|
10520
|
+
* `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
|
|
10521
|
+
* `camstack/docs` → `/docs/detection/models`.
|
|
10603
10522
|
*/
|
|
10604
10523
|
var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
|
|
10605
10524
|
/** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
|
|
@@ -10632,6 +10551,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10632
10551
|
/** True when the weights or their data forbid commercial use. */
|
|
10633
10552
|
nonCommercial: boolean().optional()
|
|
10634
10553
|
}));
|
|
10554
|
+
/**
|
|
10555
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10556
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10557
|
+
*
|
|
10558
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10559
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10560
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10561
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10562
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10563
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10564
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
10565
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
10566
|
+
* detection in the shape that step produces. Derived from the model's
|
|
10567
|
+
* postprocessor on read, never stored by an import.
|
|
10568
|
+
*/
|
|
10569
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
10570
|
+
object({
|
|
10571
|
+
kind: literal("label"),
|
|
10572
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10573
|
+
labelToEffect: record(string(), string()),
|
|
10574
|
+
uncovered: array(string()).readonly()
|
|
10575
|
+
}),
|
|
10576
|
+
object({
|
|
10577
|
+
kind: literal("crop"),
|
|
10578
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10579
|
+
rootLabels: array(string()).readonly(),
|
|
10580
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10581
|
+
childClass: _enum(["plate", "face"]),
|
|
10582
|
+
/**
|
|
10583
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10584
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10585
|
+
* stored by an import.
|
|
10586
|
+
*/
|
|
10587
|
+
rootInputPx: number().int().positive().optional()
|
|
10588
|
+
}),
|
|
10589
|
+
object({
|
|
10590
|
+
kind: literal("mask"),
|
|
10591
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
10592
|
+
})
|
|
10593
|
+
]);
|
|
10635
10594
|
var ModelCatalogEntrySchema = object({
|
|
10636
10595
|
id: string(),
|
|
10637
10596
|
name: string(),
|
|
@@ -10697,6 +10656,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
10697
10656
|
*/
|
|
10698
10657
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
10699
10658
|
/**
|
|
10659
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
10660
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
10661
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
10662
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
10663
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
10664
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
10665
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
10666
|
+
*/
|
|
10667
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10668
|
+
/**
|
|
10669
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
10670
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
10671
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
10672
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
10673
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
10674
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
10675
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
10676
|
+
*/
|
|
10677
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
10678
|
+
/**
|
|
10679
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
10680
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
10681
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
10682
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
10683
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
10684
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
10685
|
+
*/
|
|
10686
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10687
|
+
/**
|
|
10700
10688
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
10701
10689
|
* onto the canonical template) before this step runs, instead of a plain
|
|
10702
10690
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -10758,6 +10746,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
10758
10746
|
*/
|
|
10759
10747
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10760
10748
|
/**
|
|
10749
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10750
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10751
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10752
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10753
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10754
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10755
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10756
|
+
*/
|
|
10757
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10758
|
+
/**
|
|
10761
10759
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10762
10760
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
10763
10761
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -12359,13 +12357,6 @@ var BrokerRtspClientSchema = object({
|
|
|
12359
12357
|
lastRtpAt: number(),
|
|
12360
12358
|
bytesSent: number()
|
|
12361
12359
|
});
|
|
12362
|
-
var BrokerDecodedClientSchema = object({
|
|
12363
|
-
tag: string(),
|
|
12364
|
-
subscribedAt: number(),
|
|
12365
|
-
maxFps: number(),
|
|
12366
|
-
framesDelivered: number(),
|
|
12367
|
-
framesDropped: number()
|
|
12368
|
-
});
|
|
12369
12360
|
var BrokerAudioClientSchema = object({
|
|
12370
12361
|
tag: string(),
|
|
12371
12362
|
subscribedAt: number(),
|
|
@@ -12457,7 +12448,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
12457
12448
|
});
|
|
12458
12449
|
var BrokerClientsSchema = object({
|
|
12459
12450
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
12460
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
12461
12451
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
12462
12452
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
12463
12453
|
pipeClients: number(),
|
|
@@ -12826,11 +12816,7 @@ method(object({
|
|
|
12826
12816
|
auth: "admin"
|
|
12827
12817
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
12828
12818
|
brokerId: string(),
|
|
12829
|
-
channel: _enum([
|
|
12830
|
-
"rtsp",
|
|
12831
|
-
"decoded",
|
|
12832
|
-
"audio"
|
|
12833
|
-
]),
|
|
12819
|
+
channel: _enum(["rtsp", "audio"]),
|
|
12834
12820
|
handle: string()
|
|
12835
12821
|
}), object({ killed: boolean() }), {
|
|
12836
12822
|
kind: "mutation",
|
|
@@ -12865,10 +12851,7 @@ method(object({
|
|
|
12865
12851
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
12866
12852
|
subscriptionId: string(),
|
|
12867
12853
|
maxCount: number().int().positive().default(8)
|
|
12868
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
12869
|
-
subscriptionId: string(),
|
|
12870
|
-
maxCount: number().int().positive().default(4)
|
|
12871
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12854
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12872
12855
|
brokerId: string(),
|
|
12873
12856
|
seconds: number().min(0).max(30)
|
|
12874
12857
|
}), _void(), {
|
|
@@ -14127,54 +14110,12 @@ id: union([string(), number()]) }), {
|
|
|
14127
14110
|
kind: "mutation",
|
|
14128
14111
|
auth: "admin"
|
|
14129
14112
|
});
|
|
14130
|
-
|
|
14131
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14132
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14133
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14134
|
-
*/
|
|
14135
|
-
var ShmRingStatsSchema = object({
|
|
14136
|
-
sessionId: string(),
|
|
14137
|
-
slotCount: number().int(),
|
|
14138
|
-
slotByteLength: number().int(),
|
|
14139
|
-
segmentBytes: number().int(),
|
|
14140
|
-
budgetMb: number().int(),
|
|
14141
|
-
framesWritten: number().int(),
|
|
14142
|
-
getFrameHits: number().int(),
|
|
14143
|
-
getFrameMisses: number().int()
|
|
14144
|
-
});
|
|
14145
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14113
|
+
method(_void(), object({
|
|
14146
14114
|
id: string(),
|
|
14147
14115
|
name: string(),
|
|
14148
|
-
isPullMode: boolean().optional(),
|
|
14149
|
-
priority: number().optional(),
|
|
14150
14116
|
hwaccel: string().optional(),
|
|
14151
14117
|
probedBestHwaccel: string().optional()
|
|
14152
|
-
})), method(
|
|
14153
|
-
sessionId: string(),
|
|
14154
|
-
nodeId: string()
|
|
14155
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14156
|
-
sessionId: string(),
|
|
14157
|
-
packet: EncodedPacketSchema
|
|
14158
|
-
}), _void()), method(object({
|
|
14159
|
-
sessionId: string(),
|
|
14160
|
-
url: string()
|
|
14161
|
-
}), _void()), method(object({
|
|
14162
|
-
sessionId: string(),
|
|
14163
|
-
maxCount: number().default(1),
|
|
14164
|
-
waitMs: number().optional()
|
|
14165
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14166
|
-
sessionId: string(),
|
|
14167
|
-
maxCount: number().default(1),
|
|
14168
|
-
waitMs: number().optional()
|
|
14169
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14170
|
-
sessionId: string(),
|
|
14171
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14172
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14173
|
-
sessionId: string(),
|
|
14174
|
-
codec: string(),
|
|
14175
|
-
outputFormat: string(),
|
|
14176
|
-
createdAtMs: number()
|
|
14177
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14118
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14178
14119
|
kind: "mutation",
|
|
14179
14120
|
auth: "admin"
|
|
14180
14121
|
});
|
|
@@ -14230,7 +14171,7 @@ DeviceType.Camera;
|
|
|
14230
14171
|
* This matters here more than anywhere else in the repo, because every provider
|
|
14231
14172
|
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
14232
14173
|
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
14233
|
-
* and `http://admin:hunter2@192.168.
|
|
14174
|
+
* and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
|
|
14234
14175
|
* camera's own page will ask for its own login. That is correct, and pre-
|
|
14235
14176
|
* filling it is the operator's business, not ours.
|
|
14236
14177
|
*
|
|
@@ -16223,6 +16164,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
16223
16164
|
kind: "mutation",
|
|
16224
16165
|
auth: "admin"
|
|
16225
16166
|
});
|
|
16167
|
+
var HUB_ADDRESS_ROLES = [
|
|
16168
|
+
"appConnections",
|
|
16169
|
+
"notificationTaps",
|
|
16170
|
+
"internal",
|
|
16171
|
+
"publicEndpoint"
|
|
16172
|
+
];
|
|
16226
16173
|
/**
|
|
16227
16174
|
* Transport bounds for AI capability methods.
|
|
16228
16175
|
*
|
|
@@ -17419,7 +17366,7 @@ method(object({
|
|
|
17419
17366
|
timeoutMs: 6e5
|
|
17420
17367
|
});
|
|
17421
17368
|
method(object({
|
|
17422
|
-
|
|
17369
|
+
targetNodeId: string(),
|
|
17423
17370
|
modelId: string(),
|
|
17424
17371
|
format: _enum(MODEL_FORMATS),
|
|
17425
17372
|
entry: ModelCatalogEntrySchema
|
|
@@ -18825,6 +18772,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
18825
18772
|
"stream-offline",
|
|
18826
18773
|
"node-online",
|
|
18827
18774
|
"node-offline",
|
|
18775
|
+
"node-restarting",
|
|
18776
|
+
"node-updating",
|
|
18828
18777
|
"node-inference-unavailable",
|
|
18829
18778
|
"detection-blind",
|
|
18830
18779
|
"addon-crash-loop",
|
|
@@ -19923,8 +19872,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
19923
19872
|
disabledTargetIds: array(string()).default([])
|
|
19924
19873
|
});
|
|
19925
19874
|
/**
|
|
19926
|
-
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that
|
|
19927
|
-
* still-true state. `
|
|
19875
|
+
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
19876
|
+
* report a still-true state. `addons` is the crash-looped addons only and
|
|
19877
|
+
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
19928
19878
|
* job is not an open state, and the alarm stays instant.
|
|
19929
19879
|
*/
|
|
19930
19880
|
var NcStateSummarySectionIdSchema = _enum([
|
|
@@ -19936,6 +19886,7 @@ var NcStateSummarySectionIdSchema = _enum([
|
|
|
19936
19886
|
"detection-blind",
|
|
19937
19887
|
"nodes",
|
|
19938
19888
|
"addons",
|
|
19889
|
+
"addon-updates",
|
|
19939
19890
|
"updates"
|
|
19940
19891
|
]);
|
|
19941
19892
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
@@ -20416,7 +20367,25 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
20416
20367
|
* When this mode may be armed. Absent / null = always allowed (same as a
|
|
20417
20368
|
* rule with no `schedule`). Evaluated with {@link isScheduleActive}.
|
|
20418
20369
|
*/
|
|
20419
|
-
schedule: NcScheduleSchema.optional()
|
|
20370
|
+
schedule: NcScheduleSchema.optional(),
|
|
20371
|
+
/**
|
|
20372
|
+
* D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
|
|
20373
|
+
* intrusion naming the locations)? Absent = false — the entry-delay notification is the
|
|
20374
|
+
* only one, and the matches ride the triggered notification's mosaic (D705).
|
|
20375
|
+
*/
|
|
20376
|
+
notifyDuringEntryDelay: boolean().optional(),
|
|
20377
|
+
/**
|
|
20378
|
+
* D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
|
|
20379
|
+
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
20380
|
+
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
20381
|
+
*/
|
|
20382
|
+
notifySensorRewatched: boolean().optional(),
|
|
20383
|
+
/**
|
|
20384
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
20385
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
20386
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
20387
|
+
*/
|
|
20388
|
+
notifySensorIgnored: boolean().optional()
|
|
20420
20389
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20421
20390
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20422
20391
|
mode: AlarmArmModeSchema,
|
|
@@ -20425,7 +20394,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
20425
20394
|
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
|
|
20426
20395
|
postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
|
|
20427
20396
|
/** Set a schedule, or `null` to clear (mode always allowed again). */
|
|
20428
|
-
schedule: NcScheduleSchema.nullable().optional()
|
|
20397
|
+
schedule: NcScheduleSchema.nullable().optional(),
|
|
20398
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20399
|
+
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
20400
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20401
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
20402
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
20403
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
20429
20404
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20430
20405
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20431
20406
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -21386,45 +21361,25 @@ Object.freeze(Object.fromEntries([{
|
|
|
21386
21361
|
label: "Face recognition model",
|
|
21387
21362
|
defaultModelId: "auraface-r100",
|
|
21388
21363
|
indexName: "the enrolled face gallery",
|
|
21389
|
-
options: [
|
|
21390
|
-
|
|
21391
|
-
|
|
21392
|
-
|
|
21393
|
-
},
|
|
21394
|
-
{
|
|
21395
|
-
id: "arcface-r100",
|
|
21396
|
-
label: "ArcFace (ResNet34)"
|
|
21397
|
-
},
|
|
21398
|
-
{
|
|
21399
|
-
id: "inception-resnet-v1",
|
|
21400
|
-
label: "Inception ResNet V1"
|
|
21401
|
-
}
|
|
21402
|
-
]
|
|
21364
|
+
options: [{
|
|
21365
|
+
id: "auraface-r100",
|
|
21366
|
+
label: "AuraFace R100"
|
|
21367
|
+
}]
|
|
21403
21368
|
}, {
|
|
21404
21369
|
stepId: "clip-embedding",
|
|
21405
21370
|
label: "Semantic search model",
|
|
21406
|
-
defaultModelId: "
|
|
21371
|
+
defaultModelId: "siglip2-b16-224",
|
|
21407
21372
|
indexName: "the object semantic-search index",
|
|
21408
|
-
options: [
|
|
21409
|
-
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
},
|
|
21413
|
-
{
|
|
21414
|
-
id: "mobileclip-s2",
|
|
21415
|
-
label: "MobileCLIP S2"
|
|
21416
|
-
},
|
|
21417
|
-
{
|
|
21418
|
-
id: "siglip2-b16-224",
|
|
21419
|
-
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21420
|
-
}
|
|
21421
|
-
]
|
|
21373
|
+
options: [{
|
|
21374
|
+
id: "siglip2-b16-224",
|
|
21375
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21376
|
+
}]
|
|
21422
21377
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
21423
21378
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
21424
21379
|
stepId: "face-embedding",
|
|
21425
21380
|
key: "minLandmarkFaceSize",
|
|
21426
|
-
label: "Min face size
|
|
21427
|
-
description: "
|
|
21381
|
+
label: "Min face size to embed (detection-frame px)",
|
|
21382
|
+
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.",
|
|
21428
21383
|
type: "slider",
|
|
21429
21384
|
min: 0,
|
|
21430
21385
|
max: 64,
|
|
@@ -23344,6 +23299,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23344
23299
|
timestamp: number()
|
|
23345
23300
|
});
|
|
23346
23301
|
/**
|
|
23302
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
23303
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
23304
|
+
*/
|
|
23305
|
+
var SuppliedRootOutputSchema = object({
|
|
23306
|
+
stepId: string(),
|
|
23307
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
23308
|
+
modelId: string(),
|
|
23309
|
+
detections: array(object({
|
|
23310
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
23311
|
+
bbox: tuple([
|
|
23312
|
+
number(),
|
|
23313
|
+
number(),
|
|
23314
|
+
number(),
|
|
23315
|
+
number()
|
|
23316
|
+
]),
|
|
23317
|
+
score: number(),
|
|
23318
|
+
/**
|
|
23319
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
23320
|
+
* detector already re-found inside a root face box (D730), so its
|
|
23321
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
23322
|
+
*/
|
|
23323
|
+
landmarks: array(object({
|
|
23324
|
+
x: number(),
|
|
23325
|
+
y: number()
|
|
23326
|
+
})).optional()
|
|
23327
|
+
})).min(1)
|
|
23328
|
+
});
|
|
23329
|
+
/**
|
|
23347
23330
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23348
23331
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23349
23332
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -23391,7 +23374,7 @@ var FrameRefSchema = object({
|
|
|
23391
23374
|
timestamp: number(),
|
|
23392
23375
|
capturedAt: number().optional()
|
|
23393
23376
|
});
|
|
23394
|
-
var ModelFormatSchema$
|
|
23377
|
+
var ModelFormatSchema$2 = _enum([
|
|
23395
23378
|
"onnx",
|
|
23396
23379
|
"coreml",
|
|
23397
23380
|
"openvino",
|
|
@@ -23409,7 +23392,7 @@ var PipelineSlotSchema = _enum([
|
|
|
23409
23392
|
var PipelineEngineChoiceSchema = object({
|
|
23410
23393
|
runtime: literal("python"),
|
|
23411
23394
|
backend: string(),
|
|
23412
|
-
format: ModelFormatSchema$
|
|
23395
|
+
format: ModelFormatSchema$2,
|
|
23413
23396
|
device: string().optional()
|
|
23414
23397
|
});
|
|
23415
23398
|
/**
|
|
@@ -23448,32 +23431,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
23448
23431
|
group: string().optional(),
|
|
23449
23432
|
settings: record(string(), unknown()).optional()
|
|
23450
23433
|
}));
|
|
23451
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
23452
|
-
addonId: string(),
|
|
23453
|
-
enabled: boolean(),
|
|
23454
|
-
modelId: string(),
|
|
23455
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
23456
|
-
settings: record(string(), unknown()).optional()
|
|
23457
|
-
}));
|
|
23458
|
-
var PipelineTemplateSchema$1 = object({
|
|
23459
|
-
id: string(),
|
|
23460
|
-
name: string(),
|
|
23461
|
-
createdAt: string(),
|
|
23462
|
-
updatedAt: string(),
|
|
23463
|
-
engine: PipelineEngineChoiceSchema,
|
|
23464
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
23465
|
-
});
|
|
23466
23434
|
var PipelineModelOptionSchema = object({
|
|
23467
23435
|
id: string(),
|
|
23468
23436
|
name: string(),
|
|
23469
|
-
formats: record(string(),
|
|
23470
|
-
downloaded: boolean(),
|
|
23471
|
-
sizeMB: number()
|
|
23472
|
-
})),
|
|
23437
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
23473
23438
|
group: ModelVariantGroupSchema.optional(),
|
|
23474
23439
|
legacy: boolean().optional(),
|
|
23475
23440
|
provider: ModelProviderIdSchema.optional(),
|
|
23476
|
-
defaultConfidence: number().optional()
|
|
23441
|
+
defaultConfidence: number().optional(),
|
|
23442
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
23477
23443
|
});
|
|
23478
23444
|
var ConfigFieldBridge = custom();
|
|
23479
23445
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -23635,6 +23601,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23635
23601
|
}), {
|
|
23636
23602
|
kind: "mutation",
|
|
23637
23603
|
auth: "admin"
|
|
23604
|
+
}), method(object({
|
|
23605
|
+
nodeId: string(),
|
|
23606
|
+
deviceIds: array(number()).readonly().optional(),
|
|
23607
|
+
dryRun: boolean()
|
|
23608
|
+
}), object({
|
|
23609
|
+
entries: array(object({
|
|
23610
|
+
deviceId: number(),
|
|
23611
|
+
keys: array(string()).readonly()
|
|
23612
|
+
})).readonly(),
|
|
23613
|
+
refused: array(object({
|
|
23614
|
+
deviceId: number(),
|
|
23615
|
+
reason: string()
|
|
23616
|
+
})).readonly()
|
|
23617
|
+
}), {
|
|
23618
|
+
kind: "mutation",
|
|
23619
|
+
auth: "admin"
|
|
23638
23620
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
23639
23621
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
23640
23622
|
deviceKey: string(),
|
|
@@ -23660,22 +23642,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23660
23642
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
23661
23643
|
steps: array(PipelineStepInputSchema),
|
|
23662
23644
|
deviceKey: string().optional()
|
|
23663
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
23664
|
-
name: string(),
|
|
23665
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
23666
|
-
engine: PipelineEngineChoiceSchema
|
|
23667
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
23668
|
-
id: string(),
|
|
23669
|
-
name: string().optional(),
|
|
23670
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
23671
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23645
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23672
23646
|
addonId: string(),
|
|
23673
23647
|
modelId: string(),
|
|
23674
|
-
format: ModelFormatSchema$
|
|
23648
|
+
format: ModelFormatSchema$2
|
|
23675
23649
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
23676
23650
|
addonId: string(),
|
|
23677
23651
|
modelId: string(),
|
|
23678
|
-
format: ModelFormatSchema$
|
|
23652
|
+
format: ModelFormatSchema$2
|
|
23679
23653
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
23680
23654
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23681
23655
|
frame: FrameInputSchema.optional(),
|
|
@@ -23741,7 +23715,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23741
23715
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
23742
23716
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
23743
23717
|
*/
|
|
23744
|
-
replay: literal(true).optional()
|
|
23718
|
+
replay: literal(true).optional(),
|
|
23719
|
+
/**
|
|
23720
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
23721
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
23722
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
23723
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
23724
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
23725
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
23726
|
+
*/
|
|
23727
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
23745
23728
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
23746
23729
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23747
23730
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -23823,6 +23806,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23823
23806
|
filename: string().optional(),
|
|
23824
23807
|
settings: record(string(), unknown()).optional()
|
|
23825
23808
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
23809
|
+
/**
|
|
23810
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
23811
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
23812
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
23813
|
+
* schemas are what crosses the cap boundary.
|
|
23814
|
+
*/
|
|
23815
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
23816
|
+
/** The operator's range for it. */
|
|
23817
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
23818
|
+
min: 1,
|
|
23819
|
+
max: 8
|
|
23820
|
+
};
|
|
23821
|
+
var HardwareClassIdSchema = _enum([
|
|
23822
|
+
"intel-core-ultra",
|
|
23823
|
+
"intel-n-series",
|
|
23824
|
+
"apple-m-base",
|
|
23825
|
+
"apple-m-pro",
|
|
23826
|
+
"unknown"
|
|
23827
|
+
]);
|
|
23828
|
+
var AcceleratorKindSchema = _enum([
|
|
23829
|
+
"intel-npu",
|
|
23830
|
+
"intel-igpu",
|
|
23831
|
+
"x86-cpu",
|
|
23832
|
+
"arm-cpu",
|
|
23833
|
+
"apple-ane",
|
|
23834
|
+
"coral"
|
|
23835
|
+
]);
|
|
23836
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
23837
|
+
object({
|
|
23838
|
+
kind: literal("capacity"),
|
|
23839
|
+
sessions: number(),
|
|
23840
|
+
minSessions: number()
|
|
23841
|
+
}),
|
|
23842
|
+
object({
|
|
23843
|
+
kind: literal("tie-faster"),
|
|
23844
|
+
over: string(),
|
|
23845
|
+
recallDelta: number()
|
|
23846
|
+
}),
|
|
23847
|
+
object({
|
|
23848
|
+
kind: literal("stepped-down"),
|
|
23849
|
+
from: string(),
|
|
23850
|
+
to: string(),
|
|
23851
|
+
limitedBy: string()
|
|
23852
|
+
}),
|
|
23853
|
+
object({
|
|
23854
|
+
kind: literal("no-fit-lightest"),
|
|
23855
|
+
sessions: number(),
|
|
23856
|
+
minSessions: number()
|
|
23857
|
+
}),
|
|
23858
|
+
object({
|
|
23859
|
+
kind: literal("derived-latency"),
|
|
23860
|
+
modelId: string()
|
|
23861
|
+
}),
|
|
23862
|
+
object({ kind: literal("cpu-device") }),
|
|
23863
|
+
object({ kind: literal("coral-untouched") }),
|
|
23864
|
+
object({ kind: literal("device-disabled") }),
|
|
23865
|
+
object({ kind: literal("device-unavailable") }),
|
|
23866
|
+
object({ kind: literal("node-offline") }),
|
|
23867
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
23868
|
+
object({
|
|
23869
|
+
kind: literal("no-measured-data"),
|
|
23870
|
+
hardwareClass: HardwareClassIdSchema
|
|
23871
|
+
}),
|
|
23872
|
+
object({
|
|
23873
|
+
kind: literal("no-family-build"),
|
|
23874
|
+
format: ModelFormatSchema$1
|
|
23875
|
+
})
|
|
23876
|
+
]);
|
|
23877
|
+
var DeviceModelChoiceSchema = object({
|
|
23878
|
+
modelId: string(),
|
|
23879
|
+
p50Ms: number(),
|
|
23880
|
+
fps: number(),
|
|
23881
|
+
measured: boolean(),
|
|
23882
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
23883
|
+
capacitySessions: number(),
|
|
23884
|
+
personRecall: number()
|
|
23885
|
+
});
|
|
23886
|
+
var DeviceRecommendationSchema = object({
|
|
23887
|
+
deviceKey: string(),
|
|
23888
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
23889
|
+
enabled: boolean(),
|
|
23890
|
+
available: boolean(),
|
|
23891
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
23892
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23893
|
+
});
|
|
23894
|
+
var NodeRecommendationSchema = object({
|
|
23895
|
+
nodeId: string(),
|
|
23896
|
+
reachable: boolean(),
|
|
23897
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
23898
|
+
cpuModel: string().nullable(),
|
|
23899
|
+
skipped: boolean(),
|
|
23900
|
+
acceleratorModelId: string().nullable(),
|
|
23901
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
23902
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23903
|
+
});
|
|
23904
|
+
var ModelPinChangeSchema = object({
|
|
23905
|
+
stepId: string(),
|
|
23906
|
+
before: string().nullable(),
|
|
23907
|
+
after: string().nullable()
|
|
23908
|
+
});
|
|
23909
|
+
var NodeDeviceChangeSchema = object({
|
|
23910
|
+
nodeId: string(),
|
|
23911
|
+
deviceKey: string(),
|
|
23912
|
+
madeExplicit: boolean(),
|
|
23913
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
23914
|
+
thresholds: array(object({
|
|
23915
|
+
stepId: string(),
|
|
23916
|
+
keys: array(string()).readonly()
|
|
23917
|
+
})).readonly()
|
|
23918
|
+
});
|
|
23919
|
+
var CameraOverrideClearSchema = object({
|
|
23920
|
+
deviceId: number(),
|
|
23921
|
+
source: _enum(["step-override", "wholesale"]),
|
|
23922
|
+
nodeId: string(),
|
|
23923
|
+
deviceKey: string().nullable(),
|
|
23924
|
+
stepId: string(),
|
|
23925
|
+
modelIdBefore: string().nullable(),
|
|
23926
|
+
keys: array(string()).readonly()
|
|
23927
|
+
});
|
|
23928
|
+
var DetectorStoreClearSchema = object({
|
|
23929
|
+
deviceId: number(),
|
|
23930
|
+
keys: array(string()).readonly()
|
|
23931
|
+
});
|
|
23932
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
23933
|
+
object({
|
|
23934
|
+
kind: literal("detector-store-cluster-wide"),
|
|
23935
|
+
skippedNodes: array(string()).readonly()
|
|
23936
|
+
}),
|
|
23937
|
+
object({
|
|
23938
|
+
kind: literal("detector-store-unreadable"),
|
|
23939
|
+
error: string()
|
|
23940
|
+
}),
|
|
23941
|
+
object({
|
|
23942
|
+
kind: literal("coral-enabled"),
|
|
23943
|
+
nodeId: string(),
|
|
23944
|
+
deviceKey: string()
|
|
23945
|
+
})
|
|
23946
|
+
]);
|
|
23947
|
+
var AutoTuneOptionsSchema = object({
|
|
23948
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
23949
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
23950
|
+
/**
|
|
23951
|
+
* The least number of parallel sessions every device must sustain at the
|
|
23952
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
23953
|
+
* that reaches it wins.
|
|
23954
|
+
*/
|
|
23955
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
23956
|
+
});
|
|
23957
|
+
var AutoTunePlanSchema = object({
|
|
23958
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
23959
|
+
planHash: string(),
|
|
23960
|
+
family: literal("yolov9"),
|
|
23961
|
+
headroom: number(),
|
|
23962
|
+
minSessionsPerDevice: number(),
|
|
23963
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
23964
|
+
cameraFps: number(),
|
|
23965
|
+
generatedAt: number(),
|
|
23966
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
23967
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
23968
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
23969
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
23970
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
23971
|
+
});
|
|
23972
|
+
var AutoTuneApplyInputSchema = object({
|
|
23973
|
+
planHash: string(),
|
|
23974
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
23975
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
23976
|
+
});
|
|
23977
|
+
var AutoTunePhaseResultSchema = object({
|
|
23978
|
+
phase: _enum([
|
|
23979
|
+
"download",
|
|
23980
|
+
"camera-overrides",
|
|
23981
|
+
"detector-thresholds",
|
|
23982
|
+
"node-models",
|
|
23983
|
+
"redispatch"
|
|
23984
|
+
]),
|
|
23985
|
+
ok: boolean(),
|
|
23986
|
+
detail: string()
|
|
23987
|
+
});
|
|
23988
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
23989
|
+
object({
|
|
23990
|
+
kind: literal("applied"),
|
|
23991
|
+
planHash: string(),
|
|
23992
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
23993
|
+
}),
|
|
23994
|
+
object({
|
|
23995
|
+
kind: literal("aborted"),
|
|
23996
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
23997
|
+
}),
|
|
23998
|
+
object({
|
|
23999
|
+
kind: literal("stale"),
|
|
24000
|
+
plan: AutoTunePlanSchema
|
|
24001
|
+
}),
|
|
24002
|
+
object({
|
|
24003
|
+
kind: literal("refused"),
|
|
24004
|
+
reason: _enum(["apply-in-progress"])
|
|
24005
|
+
})
|
|
24006
|
+
]);
|
|
24007
|
+
/**
|
|
24008
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
24009
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
24010
|
+
* hardware share suggestion and the stale device pins.
|
|
24011
|
+
*/
|
|
24012
|
+
/**
|
|
24013
|
+
* How a new detection session picks its node and device.
|
|
24014
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
24015
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
24016
|
+
* weight only bites once a node already holds a session.
|
|
24017
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
24018
|
+
* full or drowning node yields to a free one (D748).
|
|
24019
|
+
*/
|
|
24020
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
24021
|
+
var LoadBalancingSharesInputSchema = object({
|
|
24022
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
24023
|
+
nodes: record(string(), number().positive()).default({}),
|
|
24024
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
24025
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
24026
|
+
});
|
|
24027
|
+
var PlacementStatsInputSchema = object({
|
|
24028
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
24029
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
24030
|
+
var PlacementDeviceStatsSchema = object({
|
|
24031
|
+
deviceKey: string(),
|
|
24032
|
+
/** Sessions running on this device now. */
|
|
24033
|
+
sessionsNow: number(),
|
|
24034
|
+
/** Sessions started on this device inside the window. */
|
|
24035
|
+
sessionsStarted: number(),
|
|
24036
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
24037
|
+
observedShare: number().nullable()
|
|
24038
|
+
});
|
|
24039
|
+
var PlacementNodeStatsSchema = object({
|
|
24040
|
+
nodeId: string(),
|
|
24041
|
+
sessionsNow: number(),
|
|
24042
|
+
sessionsStarted: number(),
|
|
24043
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
24044
|
+
observedShare: number().nullable(),
|
|
24045
|
+
/** Most sessions this node ran at once inside the window. */
|
|
24046
|
+
peakSessions: number(),
|
|
24047
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
24048
|
+
yieldsAway: number(),
|
|
24049
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
24050
|
+
});
|
|
24051
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
24052
|
+
var StaleDevicePinSchema = object({
|
|
24053
|
+
deviceId: number(),
|
|
24054
|
+
deviceKey: string(),
|
|
24055
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
24056
|
+
reason: _enum(["disabled", "absent"])
|
|
24057
|
+
});
|
|
24058
|
+
var PlacementStatsSchema = object({
|
|
24059
|
+
policy: SessionPlacementPolicySchema,
|
|
24060
|
+
windowMs: number(),
|
|
24061
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
24062
|
+
observedForMs: number(),
|
|
24063
|
+
sessionsNow: number(),
|
|
24064
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
24065
|
+
clusterPeakSessions: number(),
|
|
24066
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
24067
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
24068
|
+
});
|
|
24069
|
+
/**
|
|
24070
|
+
* Where an automatic share's capacity comes from (D755).
|
|
24071
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
24072
|
+
* the measured latency table for the node's hardware class.
|
|
24073
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
24074
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
24075
|
+
*/
|
|
24076
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
24077
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
24078
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
24079
|
+
var SuggestSharesInputSchema = object({
|
|
24080
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24081
|
+
/** Default `hardware`. */
|
|
24082
|
+
source: CapacitySourceSchema.default("hardware")
|
|
24083
|
+
});
|
|
24084
|
+
var SuggestedDeviceShareSchema = object({
|
|
24085
|
+
deviceKey: string(),
|
|
24086
|
+
/** Share of the node (0–100, rounded). */
|
|
24087
|
+
share: number(),
|
|
24088
|
+
modelId: string().nullable(),
|
|
24089
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
24090
|
+
fps: number().nullable(),
|
|
24091
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
24092
|
+
measured: boolean(),
|
|
24093
|
+
/**
|
|
24094
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
24095
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
24096
|
+
*/
|
|
24097
|
+
suggestedMaxSessions: number().nullable()
|
|
24098
|
+
});
|
|
24099
|
+
var SuggestedNodeShareSchema = object({
|
|
24100
|
+
nodeId: string(),
|
|
24101
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
24102
|
+
share: number().nullable(),
|
|
24103
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
24104
|
+
capacitySessions: number(),
|
|
24105
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
24106
|
+
skippedReason: string().nullable(),
|
|
24107
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
24108
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24109
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
24110
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
24111
|
+
});
|
|
24112
|
+
var SuggestSharesResultSchema = object({
|
|
24113
|
+
headroom: number(),
|
|
24114
|
+
/** The source asked for; each node says what it actually used. */
|
|
24115
|
+
source: CapacitySourceSchema,
|
|
24116
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
24117
|
+
cameraFps: number(),
|
|
24118
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
24119
|
+
minSessionsPerDevice: number(),
|
|
24120
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
24121
|
+
});
|
|
24122
|
+
/**
|
|
24123
|
+
* Where the node and device shares come from (D750, D755).
|
|
24124
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
24125
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
24126
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
24127
|
+
* switched on or off, or changes model. No load input.
|
|
24128
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
24129
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
24130
|
+
* - `manual` — the operator's stored sliders.
|
|
24131
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
24132
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
24133
|
+
*/
|
|
24134
|
+
var ShareSourceSchema = _enum([
|
|
24135
|
+
"hardware",
|
|
24136
|
+
"benchmark",
|
|
24137
|
+
"manual"
|
|
24138
|
+
]);
|
|
24139
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
24140
|
+
object({
|
|
24141
|
+
nodes: record(string(), number()),
|
|
24142
|
+
devices: record(string(), record(string(), number()))
|
|
24143
|
+
});
|
|
24144
|
+
var EffectiveDeviceShareSchema = object({
|
|
24145
|
+
deviceKey: string(),
|
|
24146
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
24147
|
+
eligible: boolean(),
|
|
24148
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
24149
|
+
configuredPct: number(),
|
|
24150
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
24151
|
+
effectivePct: number()
|
|
24152
|
+
});
|
|
24153
|
+
var EffectiveNodeShareSchema = object({
|
|
24154
|
+
nodeId: string(),
|
|
24155
|
+
eligible: boolean(),
|
|
24156
|
+
configuredPct: number(),
|
|
24157
|
+
effectivePct: number(),
|
|
24158
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
24159
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24160
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
24161
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
24162
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
24163
|
+
});
|
|
24164
|
+
var EffectiveSharesSchema = object({
|
|
24165
|
+
source: ShareSourceSchema,
|
|
24166
|
+
policy: SessionPlacementPolicySchema,
|
|
24167
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
24168
|
+
autoPending: boolean(),
|
|
24169
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
24170
|
+
computedAt: number().nullable(),
|
|
24171
|
+
/** What made the system recompute them last. */
|
|
24172
|
+
trigger: string().nullable(),
|
|
24173
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
24174
|
+
/** The relative weights the election reads (before eligibility). */
|
|
24175
|
+
nodeWeights: record(string(), number()),
|
|
24176
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
24177
|
+
});
|
|
23826
24178
|
object({
|
|
23827
24179
|
activeCameras: number(),
|
|
23828
24180
|
throttledCameras: number(),
|
|
@@ -24306,6 +24658,22 @@ var MotionSourceEnum = _enum([
|
|
|
24306
24658
|
"device-activity"
|
|
24307
24659
|
]);
|
|
24308
24660
|
/**
|
|
24661
|
+
* What opened an on-motion detection SESSION: the motion source that passed the
|
|
24662
|
+
* camera's `motionSources` gate, and what raised it (the camera itself, or a
|
|
24663
|
+
* sensor the operator attached — D672). `sensorName` is the attached sensor's
|
|
24664
|
+
* device name as the orchestrator's camera-sensors resolution last read it;
|
|
24665
|
+
* absent when unknown or when the camera itself triggered.
|
|
24666
|
+
*
|
|
24667
|
+
* Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
|
|
24668
|
+
* can say what started the session (D672 rule 11, amended 2026-10-06). The
|
|
24669
|
+
* runner never decides anything on it.
|
|
24670
|
+
*/
|
|
24671
|
+
var SessionTriggerSchema = object({
|
|
24672
|
+
source: MotionSourceEnum,
|
|
24673
|
+
triggeredBy: MotionTriggeredBySchema,
|
|
24674
|
+
sensorName: string().optional()
|
|
24675
|
+
});
|
|
24676
|
+
/**
|
|
24309
24677
|
* List of motion sources active on a camera. Empty array is valid:
|
|
24310
24678
|
* "no source" — happens for battery cams without firmware motion when
|
|
24311
24679
|
* the operator hasn't opted into the SW analyzer (would hold the
|
|
@@ -24557,6 +24925,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
24557
24925
|
*/
|
|
24558
24926
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
24559
24927
|
/**
|
|
24928
|
+
* What opened this attach, on a SESSION attach only (see
|
|
24929
|
+
* {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
|
|
24930
|
+
* standing attach, an occupancy burst, a re-dispatch with no motion event
|
|
24931
|
+
* behind it, and every attach from an orchestrator older than the field — the
|
|
24932
|
+
* runner then names no source on the phase event.
|
|
24933
|
+
*/
|
|
24934
|
+
sessionTrigger: SessionTriggerSchema.optional(),
|
|
24935
|
+
/**
|
|
24560
24936
|
* WHICH root detector runs for this camera. The detection counterpart of
|
|
24561
24937
|
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
24562
24938
|
* of sources the system understands, vendor-agnostic, owned here.
|
|
@@ -24716,14 +25092,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24716
25092
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
24717
25093
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
24718
25094
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
24719
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
24720
|
-
* per
|
|
25095
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
25096
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
25097
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
25098
|
+
* (D762).
|
|
24721
25099
|
*/
|
|
24722
25100
|
devices: array(object({
|
|
24723
25101
|
deviceKey: string(),
|
|
24724
25102
|
backend: string(),
|
|
24725
|
-
attachedCameras: number()
|
|
24726
|
-
queueDepthTotal: number()
|
|
25103
|
+
attachedCameras: number()
|
|
24727
25104
|
})).default([]),
|
|
24728
25105
|
/** Hardware capability flags reported by this node. */
|
|
24729
25106
|
hardware: object({
|
|
@@ -24859,7 +25236,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
24859
25236
|
*/
|
|
24860
25237
|
cropJpeg: string().optional(),
|
|
24861
25238
|
parent: DetailParentSchema,
|
|
24862
|
-
steps: array(string()).optional()
|
|
25239
|
+
steps: array(string()).optional(),
|
|
25240
|
+
/**
|
|
25241
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25242
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25243
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25244
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25245
|
+
* requested step infers as before.
|
|
25246
|
+
*/
|
|
25247
|
+
supplied: object({
|
|
25248
|
+
stepId: string(),
|
|
25249
|
+
modelId: string(),
|
|
25250
|
+
boxes: array(object({
|
|
25251
|
+
bbox: NativeCropBboxSchema,
|
|
25252
|
+
score: number()
|
|
25253
|
+
})).min(1)
|
|
25254
|
+
}).optional()
|
|
24863
25255
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
24864
25256
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
24865
25257
|
stepId: string(),
|
|
@@ -24922,14 +25314,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
24922
25314
|
settings: record(string(), unknown()).readonly().optional()
|
|
24923
25315
|
}).nullable().optional()
|
|
24924
25316
|
});
|
|
24925
|
-
var PipelineTemplateSchema = object({
|
|
24926
|
-
id: string(),
|
|
24927
|
-
name: string(),
|
|
24928
|
-
description: string().optional(),
|
|
24929
|
-
config: CameraPipelineConfigSchema,
|
|
24930
|
-
createdAt: string(),
|
|
24931
|
-
updatedAt: string()
|
|
24932
|
-
});
|
|
24933
25317
|
var DeviceStepConfigSchema = object({
|
|
24934
25318
|
modelId: string().optional(),
|
|
24935
25319
|
settings: record(string(), unknown()).optional(),
|
|
@@ -25003,9 +25387,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25003
25387
|
modelId: string().optional(),
|
|
25004
25388
|
settings: record(string(), unknown()).readonly().optional()
|
|
25005
25389
|
});
|
|
25390
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25006
25391
|
var CameraPipelineSettingsSchema = object({
|
|
25007
|
-
pinnedAgentNodeId: string().optional(),
|
|
25008
25392
|
stepToggles: record(string(), boolean()).optional(),
|
|
25393
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25009
25394
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25010
25395
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25011
25396
|
});
|
|
@@ -25038,7 +25423,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25038
25423
|
});
|
|
25039
25424
|
/**
|
|
25040
25425
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25041
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
25426
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
25427
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
25428
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
25429
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
25042
25430
|
*/
|
|
25043
25431
|
var AgentLoadSummarySchema = object({
|
|
25044
25432
|
nodeId: string(),
|
|
@@ -25127,26 +25515,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
25127
25515
|
width: number(),
|
|
25128
25516
|
height: number(),
|
|
25129
25517
|
subscribers: number(),
|
|
25130
|
-
|
|
25131
|
-
|
|
25518
|
+
/**
|
|
25519
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
25520
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
25521
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
25522
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
25523
|
+
* camera and is not served (D758).
|
|
25524
|
+
*/
|
|
25525
|
+
inFps: number().nullable()
|
|
25132
25526
|
})).readonly(),
|
|
25133
25527
|
webrtcSessions: number(),
|
|
25134
25528
|
rtspRestream: boolean()
|
|
25135
25529
|
});
|
|
25136
|
-
/**
|
|
25137
|
-
|
|
25138
|
-
|
|
25139
|
-
|
|
25140
|
-
|
|
25141
|
-
|
|
25142
|
-
|
|
25143
|
-
|
|
25144
|
-
var CameraDecoderStatusSchema = object({
|
|
25145
|
-
nodeId: string(),
|
|
25146
|
-
formats: array(string()).readonly(),
|
|
25147
|
-
sessionCount: number(),
|
|
25148
|
-
shm: CameraDecoderShmSchema
|
|
25149
|
-
});
|
|
25530
|
+
/**
|
|
25531
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
25532
|
+
* construction); null when the camera has no detection node. It carries no
|
|
25533
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
25534
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
25535
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
25536
|
+
* detector), never from a counter nothing feeds.
|
|
25537
|
+
*/
|
|
25538
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
25150
25539
|
/** Motion block — null when motion detection is not active for this device. */
|
|
25151
25540
|
var CameraMotionStatusSchema = object({
|
|
25152
25541
|
enabled: boolean(),
|
|
@@ -25503,12 +25892,6 @@ method(object({
|
|
|
25503
25892
|
}), object({ success: literal(true) }), {
|
|
25504
25893
|
kind: "mutation",
|
|
25505
25894
|
auth: "admin"
|
|
25506
|
-
}), method(object({
|
|
25507
|
-
agentNodeId: string(),
|
|
25508
|
-
detectWeight: number().positive().nullable()
|
|
25509
|
-
}), object({ success: literal(true) }), {
|
|
25510
|
-
kind: "mutation",
|
|
25511
|
-
auth: "admin"
|
|
25512
25895
|
}), method(object({
|
|
25513
25896
|
agentNodeId: string(),
|
|
25514
25897
|
detect: boolean().nullable().optional(),
|
|
@@ -25550,6 +25933,15 @@ method(object({
|
|
|
25550
25933
|
}), {
|
|
25551
25934
|
kind: "mutation",
|
|
25552
25935
|
auth: "admin"
|
|
25936
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
25937
|
+
kind: "mutation",
|
|
25938
|
+
auth: "admin"
|
|
25939
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
25940
|
+
kind: "mutation",
|
|
25941
|
+
auth: "admin"
|
|
25942
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
25943
|
+
kind: "mutation",
|
|
25944
|
+
auth: "admin"
|
|
25553
25945
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
25554
25946
|
deviceId: number(),
|
|
25555
25947
|
addonId: string(),
|
|
@@ -25566,6 +25958,13 @@ method(object({
|
|
|
25566
25958
|
}), object({ success: literal(true) }), {
|
|
25567
25959
|
kind: "mutation",
|
|
25568
25960
|
auth: "admin"
|
|
25961
|
+
}), method(object({
|
|
25962
|
+
deviceId: number(),
|
|
25963
|
+
addonId: string(),
|
|
25964
|
+
settings: record(string(), unknown()).nullable()
|
|
25965
|
+
}), object({ success: literal(true) }), {
|
|
25966
|
+
kind: "mutation",
|
|
25967
|
+
auth: "admin"
|
|
25569
25968
|
}), method(object({
|
|
25570
25969
|
deviceId: number(),
|
|
25571
25970
|
agentNodeId: string(),
|
|
@@ -25589,25 +25988,7 @@ method(object({
|
|
|
25589
25988
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
25590
25989
|
kind: "mutation",
|
|
25591
25990
|
auth: "admin"
|
|
25592
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
25593
|
-
name: string(),
|
|
25594
|
-
description: string().optional(),
|
|
25595
|
-
config: CameraPipelineConfigSchema
|
|
25596
|
-
}), PipelineTemplateSchema, {
|
|
25597
|
-
kind: "mutation",
|
|
25598
|
-
auth: "admin"
|
|
25599
|
-
}), method(object({
|
|
25600
|
-
id: string(),
|
|
25601
|
-
name: string().optional(),
|
|
25602
|
-
description: string().optional(),
|
|
25603
|
-
config: CameraPipelineConfigSchema.optional()
|
|
25604
|
-
}), PipelineTemplateSchema, {
|
|
25605
|
-
kind: "mutation",
|
|
25606
|
-
auth: "admin"
|
|
25607
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
25608
|
-
kind: "mutation",
|
|
25609
|
-
auth: "admin"
|
|
25610
|
-
});
|
|
25991
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
25611
25992
|
/**
|
|
25612
25993
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
25613
25994
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -27856,8 +28237,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
27856
28237
|
]).nullable(),
|
|
27857
28238
|
/** Input FPS from the camera (null for adaptive). */
|
|
27858
28239
|
inputFps: number().nullable(),
|
|
27859
|
-
/** Decoded FPS (null for adaptive). */
|
|
27860
|
-
decodeFps: number().nullable(),
|
|
27861
28240
|
/** Bitrate in kbps (null for adaptive). */
|
|
27862
28241
|
bitrateKbps: number().nullable()
|
|
27863
28242
|
});
|
|
@@ -28189,6 +28568,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28189
28568
|
*/
|
|
28190
28569
|
alive: boolean()
|
|
28191
28570
|
})), method(object({
|
|
28571
|
+
deviceId: number().int().nonnegative(),
|
|
28572
|
+
sessionId: string(),
|
|
28573
|
+
downlinkMbps: number().nonnegative()
|
|
28574
|
+
}), object({
|
|
28575
|
+
outcome: _enum(["switching", "held"]),
|
|
28576
|
+
tier: CamProfileSchema.nullable(),
|
|
28577
|
+
reason: string()
|
|
28578
|
+
}), { kind: "mutation" }), method(object({
|
|
28192
28579
|
deviceId: number().int().nonnegative(),
|
|
28193
28580
|
sessionId: string()
|
|
28194
28581
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -31953,7 +32340,7 @@ var LocalInterfaceSchema = object({
|
|
|
31953
32340
|
name: string(),
|
|
31954
32341
|
family: _enum(["IPv4", "IPv6"]),
|
|
31955
32342
|
address: string(),
|
|
31956
|
-
/** CIDR shorthand (e.g. `192.168.
|
|
32343
|
+
/** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
|
|
31957
32344
|
cidr: string(),
|
|
31958
32345
|
/** OS netmask. Stable across calls so the SDK can hash on it. */
|
|
31959
32346
|
netmask: string(),
|
|
@@ -32007,7 +32394,9 @@ var ConnectionEndpointSchema = object({
|
|
|
32007
32394
|
"lan-ipv4",
|
|
32008
32395
|
"lan-ipv6",
|
|
32009
32396
|
"public",
|
|
32010
|
-
"loopback"
|
|
32397
|
+
"loopback",
|
|
32398
|
+
"app-link",
|
|
32399
|
+
"custom"
|
|
32011
32400
|
]),
|
|
32012
32401
|
/**
|
|
32013
32402
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -32076,15 +32465,27 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
32076
32465
|
localPort: AdvertisedLocalPortSchema
|
|
32077
32466
|
});
|
|
32078
32467
|
/**
|
|
32079
|
-
* The
|
|
32080
|
-
*
|
|
32081
|
-
*
|
|
32468
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
32469
|
+
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
32470
|
+
* so the UI can show it either way.
|
|
32082
32471
|
*/
|
|
32083
32472
|
var NotificationEndpointSchema = object({
|
|
32084
32473
|
/** The operator's explicit choice, or null for AUTO. */
|
|
32085
32474
|
baseUrl: string().nullable(),
|
|
32086
|
-
/**
|
|
32087
|
-
|
|
32475
|
+
/**
|
|
32476
|
+
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
32477
|
+
* CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
|
|
32478
|
+
* answered the public tunnel / mesh here, or null.
|
|
32479
|
+
*/
|
|
32480
|
+
resolved: string().nullable(),
|
|
32481
|
+
/**
|
|
32482
|
+
* The hub origin an app link carries as `hub=` (D709): the hub's best
|
|
32483
|
+
* public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
|
|
32484
|
+
* picked from this cap's own palette by `pickAppLinkHub`. `null` when the
|
|
32485
|
+
* hub advertises neither; the app link is then minted without `hub=`.
|
|
32486
|
+
* Absent on a pre-D709 hub.
|
|
32487
|
+
*/
|
|
32488
|
+
appLinkHub: string().nullable()
|
|
32088
32489
|
});
|
|
32089
32490
|
/**
|
|
32090
32491
|
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
@@ -32097,6 +32498,72 @@ var ViewerEndpointsSchema = object({
|
|
|
32097
32498
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
32098
32499
|
resolved: array(string()).readonly()
|
|
32099
32500
|
});
|
|
32501
|
+
/**
|
|
32502
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
32503
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
32504
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
32505
|
+
*/
|
|
32506
|
+
var HubAddressSnapshotSchema = object({
|
|
32507
|
+
override: string().nullable(),
|
|
32508
|
+
resolved: string().nullable(),
|
|
32509
|
+
source: _enum([
|
|
32510
|
+
"override",
|
|
32511
|
+
"auto",
|
|
32512
|
+
"none"
|
|
32513
|
+
])
|
|
32514
|
+
});
|
|
32515
|
+
var HubAddressesSchema = object({
|
|
32516
|
+
cluster: HubAddressSnapshotSchema,
|
|
32517
|
+
browser: HubAddressSnapshotSchema
|
|
32518
|
+
});
|
|
32519
|
+
/**
|
|
32520
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
32521
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
32522
|
+
* by at most one address.
|
|
32523
|
+
*/
|
|
32524
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
32525
|
+
var RoleSourceSchema = _enum([
|
|
32526
|
+
"flagged",
|
|
32527
|
+
"auto",
|
|
32528
|
+
"none"
|
|
32529
|
+
]);
|
|
32530
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
32531
|
+
var HubAddressRoleResolutionSchema = object({
|
|
32532
|
+
/** The address carrying the flag, or null = automatic. */
|
|
32533
|
+
flagged: string().nullable(),
|
|
32534
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
32535
|
+
resolved: string().nullable(),
|
|
32536
|
+
source: RoleSourceSchema
|
|
32537
|
+
});
|
|
32538
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
32539
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
32540
|
+
flagged: array(string()).readonly(),
|
|
32541
|
+
/** What the apps race right now. */
|
|
32542
|
+
resolved: array(string()).readonly(),
|
|
32543
|
+
source: RoleSourceSchema
|
|
32544
|
+
});
|
|
32545
|
+
var HubAddressBookSchema = object({
|
|
32546
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
32547
|
+
/** In the hub's detected palette right now. */
|
|
32548
|
+
detected: boolean(),
|
|
32549
|
+
/** Entered by the operator (removable). */
|
|
32550
|
+
custom: boolean(),
|
|
32551
|
+
/** The roles explicitly flagged on this address. */
|
|
32552
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
32553
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
32554
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
32555
|
+
/** The roles this address may be flagged with. */
|
|
32556
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
32557
|
+
})).readonly(),
|
|
32558
|
+
roles: object({
|
|
32559
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
32560
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
32561
|
+
internal: HubAddressRoleResolutionSchema,
|
|
32562
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
32563
|
+
}),
|
|
32564
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
32565
|
+
appLinkHub: string().nullable()
|
|
32566
|
+
});
|
|
32100
32567
|
var AllowedAddressesSchema = object({
|
|
32101
32568
|
/**
|
|
32102
32569
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -32138,8 +32605,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
32138
32605
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
32139
32606
|
* to avoid mixed-content blocks in the browser. The public
|
|
32140
32607
|
* tunnel always emits `https://` regardless. */
|
|
32141
|
-
scheme: _enum(["http", "https"]).optional()
|
|
32142
|
-
|
|
32608
|
+
scheme: _enum(["http", "https"]).optional(),
|
|
32609
|
+
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
32610
|
+
* an address notification taps can be flagged with, not a hub
|
|
32611
|
+
* route. Default `false`: racers and rankers never see it. */
|
|
32612
|
+
includeAppLink: boolean().optional()
|
|
32613
|
+
}), 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({
|
|
32614
|
+
baseUrl: string(),
|
|
32615
|
+
label: string().max(80)
|
|
32616
|
+
}), HubAddressBookSchema, {
|
|
32617
|
+
kind: "mutation",
|
|
32618
|
+
auth: "admin"
|
|
32619
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
32620
|
+
kind: "mutation",
|
|
32621
|
+
auth: "admin"
|
|
32622
|
+
}), method(object({
|
|
32623
|
+
role: HubAddressRoleSchema,
|
|
32624
|
+
baseUrl: string().nullable(),
|
|
32625
|
+
enabled: boolean(),
|
|
32626
|
+
acceptInsecureHttp: boolean().optional()
|
|
32627
|
+
}), HubAddressBookSchema, {
|
|
32628
|
+
kind: "mutation",
|
|
32629
|
+
auth: "admin"
|
|
32630
|
+
}), method(_void(), HubAddressesSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
32143
32631
|
kind: "mutation",
|
|
32144
32632
|
auth: "admin"
|
|
32145
32633
|
}), method(object({
|
|
@@ -32467,7 +32955,7 @@ var MeshPeerSchema = object({
|
|
|
32467
32955
|
tags: array(string()).readonly(),
|
|
32468
32956
|
/** True when the peer advertises itself as an exit-node candidate. */
|
|
32469
32957
|
exitNodeOption: boolean(),
|
|
32470
|
-
/** Subnet routes the peer advertises (e.g. `["192.168.
|
|
32958
|
+
/** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
|
|
32471
32959
|
advertisedRoutes: array(string()).readonly(),
|
|
32472
32960
|
/** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
|
|
32473
32961
|
userLogin: string().nullable(),
|
|
@@ -32597,7 +33085,8 @@ var MotionStatusSchema = object({
|
|
|
32597
33085
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32598
33086
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32599
33087
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32600
|
-
* A provider's `isDetected`
|
|
33088
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
33089
|
+
* (`hubMotionNativeProvider`).
|
|
32601
33090
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32602
33091
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32603
33092
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -33795,7 +34284,13 @@ var OsdStatusSchema = object({ overlays: array(object({
|
|
|
33795
34284
|
*/
|
|
33796
34285
|
availablePositions: array(OsdPositionEnum).readonly(),
|
|
33797
34286
|
/** Firmware does not allow editing the `text` field (e.g. timestamp). */
|
|
33798
|
-
readOnly: boolean().optional()
|
|
34287
|
+
readOnly: boolean().optional(),
|
|
34288
|
+
/**
|
|
34289
|
+
* Firmware text ceiling for this overlay. Absent = no known limit.
|
|
34290
|
+
* The OSD manager truncates here on every write — never stores its own
|
|
34291
|
+
* copy on the binding.
|
|
34292
|
+
*/
|
|
34293
|
+
maxCharacters: number().int().positive().optional()
|
|
33799
34294
|
})).readonly() });
|
|
33800
34295
|
var OsdOverlayPatchSchema = object({
|
|
33801
34296
|
enabled: boolean().optional(),
|
|
@@ -33846,7 +34341,9 @@ var OsdTemplateBindingSchema = object({
|
|
|
33846
34341
|
valuePath: string().min(1).max(64),
|
|
33847
34342
|
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
33848
34343
|
displayUnit: string().max(16).optional(),
|
|
33849
|
-
maxDecimals: number().int().min(0).max(4).default(1)
|
|
34344
|
+
maxDecimals: number().int().min(0).max(4).default(1),
|
|
34345
|
+
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
34346
|
+
valueMap: record(string(), string()).optional()
|
|
33850
34347
|
});
|
|
33851
34348
|
/**
|
|
33852
34349
|
* A named template: bindings (alias → leaf field) + a parser that
|
|
@@ -33896,18 +34393,11 @@ var OsdSlotBindingSchema = object({
|
|
|
33896
34393
|
source: OsdSourceSchema,
|
|
33897
34394
|
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
33898
34395
|
template: string().max(96).default("${value}"),
|
|
33899
|
-
/** Truncate with an ellipsis past this length. Absent = no limit. */
|
|
33900
|
-
maxCharacters: number().int().min(4).max(64).optional(),
|
|
33901
34396
|
/**
|
|
33902
34397
|
* Decimal places for a numeric value. `0` yields an integer — the
|
|
33903
34398
|
* documented workaround for firmwares that reject `.` in overlay text.
|
|
33904
34399
|
*/
|
|
33905
34400
|
maxDecimals: number().int().min(0).max(4).default(1),
|
|
33906
|
-
/**
|
|
33907
|
-
* Appended via `${unit}` when no unit conversion produces a label.
|
|
33908
|
-
* Prefer `source.displayUnit` for converted device-state values.
|
|
33909
|
-
*/
|
|
33910
|
-
unitLabel: string().max(8).optional(),
|
|
33911
34401
|
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
33912
34402
|
valueMap: record(string(), string()).optional(),
|
|
33913
34403
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
@@ -33916,9 +34406,7 @@ var OsdSlotBindingSchema = object({
|
|
|
33916
34406
|
* Display gate, in the notification centre's condition vocabulary.
|
|
33917
34407
|
* Only the keys reported by `getConditionSupport` are accepted.
|
|
33918
34408
|
*/
|
|
33919
|
-
conditions: NcConditionsSchema.optional()
|
|
33920
|
-
/** Rendered when the gate is closed or the value unreadable. Empty = hide. */
|
|
33921
|
-
fallbackText: string().max(64).default("")
|
|
34409
|
+
conditions: NcConditionsSchema.optional()
|
|
33922
34410
|
});
|
|
33923
34411
|
/** One camera slot, as the operator sees it: firmware truth + our binding. */
|
|
33924
34412
|
var OsdSlotViewSchema = object({
|
|
@@ -39145,6 +39633,16 @@ var zoneRulesCapability = {
|
|
|
39145
39633
|
durability: "restored"
|
|
39146
39634
|
};
|
|
39147
39635
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
39636
|
+
Object.freeze({
|
|
39637
|
+
person: .5,
|
|
39638
|
+
vehicle: .5,
|
|
39639
|
+
animal: .5
|
|
39640
|
+
});
|
|
39641
|
+
Object.freeze({
|
|
39642
|
+
person: .65,
|
|
39643
|
+
vehicle: .65,
|
|
39644
|
+
animal: .65
|
|
39645
|
+
});
|
|
39148
39646
|
/**
|
|
39149
39647
|
* Accessory device helpers — shared across drivers.
|
|
39150
39648
|
*
|
|
@@ -42025,90 +42523,18 @@ Object.freeze({
|
|
|
42025
42523
|
addonId: null,
|
|
42026
42524
|
access: "create"
|
|
42027
42525
|
},
|
|
42028
|
-
"decoder.createSession": {
|
|
42029
|
-
capName: "decoder",
|
|
42030
|
-
capScope: "system",
|
|
42031
|
-
addonId: null,
|
|
42032
|
-
access: "view"
|
|
42033
|
-
},
|
|
42034
|
-
"decoder.destroySession": {
|
|
42035
|
-
capName: "decoder",
|
|
42036
|
-
capScope: "system",
|
|
42037
|
-
addonId: null,
|
|
42038
|
-
access: "delete"
|
|
42039
|
-
},
|
|
42040
|
-
"decoder.getFrame": {
|
|
42041
|
-
capName: "decoder",
|
|
42042
|
-
capScope: "system",
|
|
42043
|
-
addonId: null,
|
|
42044
|
-
access: "view"
|
|
42045
|
-
},
|
|
42046
42526
|
"decoder.getInfo": {
|
|
42047
42527
|
capName: "decoder",
|
|
42048
42528
|
capScope: "system",
|
|
42049
42529
|
addonId: null,
|
|
42050
42530
|
access: "view"
|
|
42051
42531
|
},
|
|
42052
|
-
"decoder.getShmStats": {
|
|
42053
|
-
capName: "decoder",
|
|
42054
|
-
capScope: "system",
|
|
42055
|
-
addonId: null,
|
|
42056
|
-
access: "view"
|
|
42057
|
-
},
|
|
42058
|
-
"decoder.getStats": {
|
|
42059
|
-
capName: "decoder",
|
|
42060
|
-
capScope: "system",
|
|
42061
|
-
addonId: null,
|
|
42062
|
-
access: "view"
|
|
42063
|
-
},
|
|
42064
|
-
"decoder.listActiveSessions": {
|
|
42065
|
-
capName: "decoder",
|
|
42066
|
-
capScope: "system",
|
|
42067
|
-
addonId: null,
|
|
42068
|
-
access: "view"
|
|
42069
|
-
},
|
|
42070
|
-
"decoder.openStream": {
|
|
42071
|
-
capName: "decoder",
|
|
42072
|
-
capScope: "system",
|
|
42073
|
-
addonId: null,
|
|
42074
|
-
access: "view"
|
|
42075
|
-
},
|
|
42076
|
-
"decoder.pullFrames": {
|
|
42077
|
-
capName: "decoder",
|
|
42078
|
-
capScope: "system",
|
|
42079
|
-
addonId: null,
|
|
42080
|
-
access: "view"
|
|
42081
|
-
},
|
|
42082
|
-
"decoder.pullHandles": {
|
|
42083
|
-
capName: "decoder",
|
|
42084
|
-
capScope: "system",
|
|
42085
|
-
addonId: null,
|
|
42086
|
-
access: "view"
|
|
42087
|
-
},
|
|
42088
|
-
"decoder.pushPacket": {
|
|
42089
|
-
capName: "decoder",
|
|
42090
|
-
capScope: "system",
|
|
42091
|
-
addonId: null,
|
|
42092
|
-
access: "view"
|
|
42093
|
-
},
|
|
42094
42532
|
"decoder.reprobeHwaccel": {
|
|
42095
42533
|
capName: "decoder",
|
|
42096
42534
|
capScope: "system",
|
|
42097
42535
|
addonId: null,
|
|
42098
42536
|
access: "create"
|
|
42099
42537
|
},
|
|
42100
|
-
"decoder.supportsCodec": {
|
|
42101
|
-
capName: "decoder",
|
|
42102
|
-
capScope: "system",
|
|
42103
|
-
addonId: null,
|
|
42104
|
-
access: "view"
|
|
42105
|
-
},
|
|
42106
|
-
"decoder.updateConfig": {
|
|
42107
|
-
capName: "decoder",
|
|
42108
|
-
capScope: "system",
|
|
42109
|
-
addonId: null,
|
|
42110
|
-
access: "view"
|
|
42111
|
-
},
|
|
42112
42538
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
42113
42539
|
capName: "detection-pipeline",
|
|
42114
42540
|
capScope: "device",
|
|
@@ -43597,12 +44023,24 @@ Object.freeze({
|
|
|
43597
44023
|
addonId: null,
|
|
43598
44024
|
access: "view"
|
|
43599
44025
|
},
|
|
44026
|
+
"localNetwork.addCustomAddress": {
|
|
44027
|
+
capName: "local-network",
|
|
44028
|
+
capScope: "system",
|
|
44029
|
+
addonId: null,
|
|
44030
|
+
access: "create"
|
|
44031
|
+
},
|
|
43600
44032
|
"localNetwork.downloadCa": {
|
|
43601
44033
|
capName: "local-network",
|
|
43602
44034
|
capScope: "system",
|
|
43603
44035
|
addonId: null,
|
|
43604
44036
|
access: "view"
|
|
43605
44037
|
},
|
|
44038
|
+
"localNetwork.getAddresses": {
|
|
44039
|
+
capName: "local-network",
|
|
44040
|
+
capScope: "system",
|
|
44041
|
+
addonId: null,
|
|
44042
|
+
access: "view"
|
|
44043
|
+
},
|
|
43606
44044
|
"localNetwork.getAllowedAddresses": {
|
|
43607
44045
|
capName: "local-network",
|
|
43608
44046
|
capScope: "system",
|
|
@@ -43615,6 +44053,12 @@ Object.freeze({
|
|
|
43615
44053
|
addonId: null,
|
|
43616
44054
|
access: "view"
|
|
43617
44055
|
},
|
|
44056
|
+
"localNetwork.getHubAddresses": {
|
|
44057
|
+
capName: "local-network",
|
|
44058
|
+
capScope: "system",
|
|
44059
|
+
addonId: null,
|
|
44060
|
+
access: "view"
|
|
44061
|
+
},
|
|
43618
44062
|
"localNetwork.getNotificationEndpoint": {
|
|
43619
44063
|
capName: "local-network",
|
|
43620
44064
|
capScope: "system",
|
|
@@ -43651,6 +44095,12 @@ Object.freeze({
|
|
|
43651
44095
|
addonId: null,
|
|
43652
44096
|
access: "create"
|
|
43653
44097
|
},
|
|
44098
|
+
"localNetwork.removeCustomAddress": {
|
|
44099
|
+
capName: "local-network",
|
|
44100
|
+
capScope: "system",
|
|
44101
|
+
addonId: null,
|
|
44102
|
+
access: "delete"
|
|
44103
|
+
},
|
|
43654
44104
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
43655
44105
|
capName: "local-network",
|
|
43656
44106
|
capScope: "system",
|
|
@@ -43663,6 +44113,12 @@ Object.freeze({
|
|
|
43663
44113
|
addonId: null,
|
|
43664
44114
|
access: "create"
|
|
43665
44115
|
},
|
|
44116
|
+
"localNetwork.setAddressRole": {
|
|
44117
|
+
capName: "local-network",
|
|
44118
|
+
capScope: "system",
|
|
44119
|
+
addonId: null,
|
|
44120
|
+
access: "create"
|
|
44121
|
+
},
|
|
43666
44122
|
"localNetwork.setAllowedAddresses": {
|
|
43667
44123
|
capName: "local-network",
|
|
43668
44124
|
capScope: "system",
|
|
@@ -45157,13 +45613,13 @@ Object.freeze({
|
|
|
45157
45613
|
addonId: null,
|
|
45158
45614
|
access: "delete"
|
|
45159
45615
|
},
|
|
45160
|
-
"pipelineExecutor.
|
|
45616
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
45161
45617
|
capName: "pipeline-executor",
|
|
45162
45618
|
capScope: "system",
|
|
45163
45619
|
addonId: null,
|
|
45164
45620
|
access: "delete"
|
|
45165
45621
|
},
|
|
45166
|
-
"pipelineExecutor.
|
|
45622
|
+
"pipelineExecutor.deleteModel": {
|
|
45167
45623
|
capName: "pipeline-executor",
|
|
45168
45624
|
capScope: "system",
|
|
45169
45625
|
addonId: null,
|
|
@@ -45307,12 +45763,6 @@ Object.freeze({
|
|
|
45307
45763
|
addonId: null,
|
|
45308
45764
|
access: "view"
|
|
45309
45765
|
},
|
|
45310
|
-
"pipelineExecutor.listTemplates": {
|
|
45311
|
-
capName: "pipeline-executor",
|
|
45312
|
-
capScope: "system",
|
|
45313
|
-
addonId: null,
|
|
45314
|
-
access: "view"
|
|
45315
|
-
},
|
|
45316
45766
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
45317
45767
|
capName: "pipeline-executor",
|
|
45318
45768
|
capScope: "system",
|
|
@@ -45337,12 +45787,6 @@ Object.freeze({
|
|
|
45337
45787
|
addonId: null,
|
|
45338
45788
|
access: "create"
|
|
45339
45789
|
},
|
|
45340
|
-
"pipelineExecutor.saveTemplate": {
|
|
45341
|
-
capName: "pipeline-executor",
|
|
45342
|
-
capScope: "system",
|
|
45343
|
-
addonId: null,
|
|
45344
|
-
access: "create"
|
|
45345
|
-
},
|
|
45346
45790
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
45347
45791
|
capName: "pipeline-executor",
|
|
45348
45792
|
capScope: "system",
|
|
@@ -45361,41 +45805,35 @@ Object.freeze({
|
|
|
45361
45805
|
addonId: null,
|
|
45362
45806
|
access: "create"
|
|
45363
45807
|
},
|
|
45364
|
-
"pipelineExecutor.updateTemplate": {
|
|
45365
|
-
capName: "pipeline-executor",
|
|
45366
|
-
capScope: "system",
|
|
45367
|
-
addonId: null,
|
|
45368
|
-
access: "create"
|
|
45369
|
-
},
|
|
45370
45808
|
"pipelineExecutor.validatePipeline": {
|
|
45371
45809
|
capName: "pipeline-executor",
|
|
45372
45810
|
capScope: "system",
|
|
45373
45811
|
addonId: null,
|
|
45374
45812
|
access: "view"
|
|
45375
45813
|
},
|
|
45376
|
-
"pipelineOrchestrator.
|
|
45814
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
45377
45815
|
capName: "pipeline-orchestrator",
|
|
45378
45816
|
capScope: "system",
|
|
45379
45817
|
addonId: null,
|
|
45380
45818
|
access: "create"
|
|
45381
45819
|
},
|
|
45382
|
-
"pipelineOrchestrator.
|
|
45820
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
45383
45821
|
capName: "pipeline-orchestrator",
|
|
45384
45822
|
capScope: "system",
|
|
45385
45823
|
addonId: null,
|
|
45386
45824
|
access: "create"
|
|
45387
45825
|
},
|
|
45388
|
-
"pipelineOrchestrator.
|
|
45826
|
+
"pipelineOrchestrator.assignAudio": {
|
|
45389
45827
|
capName: "pipeline-orchestrator",
|
|
45390
45828
|
capScope: "system",
|
|
45391
45829
|
addonId: null,
|
|
45392
45830
|
access: "create"
|
|
45393
45831
|
},
|
|
45394
|
-
"pipelineOrchestrator.
|
|
45832
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
45395
45833
|
capName: "pipeline-orchestrator",
|
|
45396
45834
|
capScope: "system",
|
|
45397
45835
|
addonId: null,
|
|
45398
|
-
access: "
|
|
45836
|
+
access: "create"
|
|
45399
45837
|
},
|
|
45400
45838
|
"pipelineOrchestrator.getAgentLoad": {
|
|
45401
45839
|
capName: "pipeline-orchestrator",
|
|
@@ -45487,6 +45925,12 @@ Object.freeze({
|
|
|
45487
45925
|
addonId: null,
|
|
45488
45926
|
access: "view"
|
|
45489
45927
|
},
|
|
45928
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
45929
|
+
capName: "pipeline-orchestrator",
|
|
45930
|
+
capScope: "system",
|
|
45931
|
+
addonId: null,
|
|
45932
|
+
access: "view"
|
|
45933
|
+
},
|
|
45490
45934
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
45491
45935
|
capName: "pipeline-orchestrator",
|
|
45492
45936
|
capScope: "system",
|
|
@@ -45523,19 +45967,19 @@ Object.freeze({
|
|
|
45523
45967
|
addonId: null,
|
|
45524
45968
|
access: "view"
|
|
45525
45969
|
},
|
|
45526
|
-
"pipelineOrchestrator.
|
|
45970
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
45527
45971
|
capName: "pipeline-orchestrator",
|
|
45528
45972
|
capScope: "system",
|
|
45529
45973
|
addonId: null,
|
|
45530
45974
|
access: "view"
|
|
45531
45975
|
},
|
|
45532
|
-
"pipelineOrchestrator.
|
|
45976
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
45533
45977
|
capName: "pipeline-orchestrator",
|
|
45534
45978
|
capScope: "system",
|
|
45535
45979
|
addonId: null,
|
|
45536
45980
|
access: "view"
|
|
45537
45981
|
},
|
|
45538
|
-
"pipelineOrchestrator.
|
|
45982
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
45539
45983
|
capName: "pipeline-orchestrator",
|
|
45540
45984
|
capScope: "system",
|
|
45541
45985
|
addonId: null,
|
|
@@ -45547,6 +45991,12 @@ Object.freeze({
|
|
|
45547
45991
|
addonId: null,
|
|
45548
45992
|
access: "create"
|
|
45549
45993
|
},
|
|
45994
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
45995
|
+
capName: "pipeline-orchestrator",
|
|
45996
|
+
capScope: "system",
|
|
45997
|
+
addonId: null,
|
|
45998
|
+
access: "view"
|
|
45999
|
+
},
|
|
45550
46000
|
"pipelineOrchestrator.rebalance": {
|
|
45551
46001
|
capName: "pipeline-orchestrator",
|
|
45552
46002
|
capScope: "system",
|
|
@@ -45589,12 +46039,6 @@ Object.freeze({
|
|
|
45589
46039
|
addonId: null,
|
|
45590
46040
|
access: "create"
|
|
45591
46041
|
},
|
|
45592
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
45593
|
-
capName: "pipeline-orchestrator",
|
|
45594
|
-
capScope: "system",
|
|
45595
|
-
addonId: null,
|
|
45596
|
-
access: "create"
|
|
45597
|
-
},
|
|
45598
46042
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
45599
46043
|
capName: "pipeline-orchestrator",
|
|
45600
46044
|
capScope: "system",
|
|
@@ -45607,12 +46051,6 @@ Object.freeze({
|
|
|
45607
46051
|
addonId: null,
|
|
45608
46052
|
access: "create"
|
|
45609
46053
|
},
|
|
45610
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
45611
|
-
capName: "pipeline-orchestrator",
|
|
45612
|
-
capScope: "system",
|
|
45613
|
-
addonId: null,
|
|
45614
|
-
access: "create"
|
|
45615
|
-
},
|
|
45616
46054
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
45617
46055
|
capName: "pipeline-orchestrator",
|
|
45618
46056
|
capScope: "system",
|
|
@@ -45649,6 +46087,12 @@ Object.freeze({
|
|
|
45649
46087
|
addonId: null,
|
|
45650
46088
|
access: "create"
|
|
45651
46089
|
},
|
|
46090
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
46091
|
+
capName: "pipeline-orchestrator",
|
|
46092
|
+
capScope: "system",
|
|
46093
|
+
addonId: null,
|
|
46094
|
+
access: "create"
|
|
46095
|
+
},
|
|
45652
46096
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
45653
46097
|
capName: "pipeline-orchestrator",
|
|
45654
46098
|
capScope: "system",
|
|
@@ -45667,25 +46111,37 @@ Object.freeze({
|
|
|
45667
46111
|
addonId: null,
|
|
45668
46112
|
access: "create"
|
|
45669
46113
|
},
|
|
46114
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
46115
|
+
capName: "pipeline-orchestrator",
|
|
46116
|
+
capScope: "system",
|
|
46117
|
+
addonId: null,
|
|
46118
|
+
access: "create"
|
|
46119
|
+
},
|
|
45670
46120
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
45671
46121
|
capName: "pipeline-orchestrator",
|
|
45672
46122
|
capScope: "system",
|
|
45673
46123
|
addonId: null,
|
|
45674
46124
|
access: "create"
|
|
45675
46125
|
},
|
|
45676
|
-
"pipelineOrchestrator.
|
|
46126
|
+
"pipelineOrchestrator.setShareSource": {
|
|
45677
46127
|
capName: "pipeline-orchestrator",
|
|
45678
46128
|
capScope: "system",
|
|
45679
46129
|
addonId: null,
|
|
45680
46130
|
access: "create"
|
|
45681
46131
|
},
|
|
45682
|
-
"pipelineOrchestrator.
|
|
46132
|
+
"pipelineOrchestrator.suggestShares": {
|
|
46133
|
+
capName: "pipeline-orchestrator",
|
|
46134
|
+
capScope: "system",
|
|
46135
|
+
addonId: null,
|
|
46136
|
+
access: "view"
|
|
46137
|
+
},
|
|
46138
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
45683
46139
|
capName: "pipeline-orchestrator",
|
|
45684
46140
|
capScope: "system",
|
|
45685
46141
|
addonId: null,
|
|
45686
46142
|
access: "create"
|
|
45687
46143
|
},
|
|
45688
|
-
"pipelineOrchestrator.
|
|
46144
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
45689
46145
|
capName: "pipeline-orchestrator",
|
|
45690
46146
|
capScope: "system",
|
|
45691
46147
|
addonId: null,
|
|
@@ -47125,12 +47581,6 @@ Object.freeze({
|
|
|
47125
47581
|
addonId: null,
|
|
47126
47582
|
access: "view"
|
|
47127
47583
|
},
|
|
47128
|
-
"streamBroker.pullFrameHandles": {
|
|
47129
|
-
capName: "stream-broker",
|
|
47130
|
-
capScope: "system",
|
|
47131
|
-
addonId: null,
|
|
47132
|
-
access: "view"
|
|
47133
|
-
},
|
|
47134
47584
|
"streamBroker.regenerateRtspToken": {
|
|
47135
47585
|
capName: "stream-broker",
|
|
47136
47586
|
capScope: "system",
|
|
@@ -47197,12 +47647,6 @@ Object.freeze({
|
|
|
47197
47647
|
addonId: null,
|
|
47198
47648
|
access: "create"
|
|
47199
47649
|
},
|
|
47200
|
-
"streamBroker.subscribeFrames": {
|
|
47201
|
-
capName: "stream-broker",
|
|
47202
|
-
capScope: "system",
|
|
47203
|
-
addonId: null,
|
|
47204
|
-
access: "create"
|
|
47205
|
-
},
|
|
47206
47650
|
"streamBroker.unassignProfile": {
|
|
47207
47651
|
capName: "stream-broker",
|
|
47208
47652
|
capScope: "system",
|
|
@@ -47215,12 +47659,6 @@ Object.freeze({
|
|
|
47215
47659
|
addonId: null,
|
|
47216
47660
|
access: "create"
|
|
47217
47661
|
},
|
|
47218
|
-
"streamBroker.unsubscribeFrames": {
|
|
47219
|
-
capName: "stream-broker",
|
|
47220
|
-
capScope: "system",
|
|
47221
|
-
addonId: null,
|
|
47222
|
-
access: "create"
|
|
47223
|
-
},
|
|
47224
47662
|
"streamCatalog.getCatalog": {
|
|
47225
47663
|
capName: "stream-catalog",
|
|
47226
47664
|
capScope: "device",
|
|
@@ -47917,6 +48355,12 @@ Object.freeze({
|
|
|
47917
48355
|
addonId: null,
|
|
47918
48356
|
access: "create"
|
|
47919
48357
|
},
|
|
48358
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
48359
|
+
capName: "webrtc-session",
|
|
48360
|
+
capScope: "device",
|
|
48361
|
+
addonId: null,
|
|
48362
|
+
access: "create"
|
|
48363
|
+
},
|
|
47920
48364
|
"webrtcSession.closeSession": {
|
|
47921
48365
|
capName: "webrtc-session",
|
|
47922
48366
|
capScope: "device",
|
|
@@ -49728,11 +50172,6 @@ Object.freeze({
|
|
|
49728
50172
|
form: "single",
|
|
49729
50173
|
optional: false
|
|
49730
50174
|
}],
|
|
49731
|
-
"decoder.createSession": [{
|
|
49732
|
-
name: "deviceId",
|
|
49733
|
-
form: "single",
|
|
49734
|
-
optional: true
|
|
49735
|
-
}],
|
|
49736
50175
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49737
50176
|
name: "deviceId",
|
|
49738
50177
|
form: "single",
|
|
@@ -50963,6 +51402,11 @@ Object.freeze({
|
|
|
50963
51402
|
form: "single",
|
|
50964
51403
|
optional: false
|
|
50965
51404
|
}],
|
|
51405
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
51406
|
+
name: "deviceIds",
|
|
51407
|
+
form: "array",
|
|
51408
|
+
optional: true
|
|
51409
|
+
}],
|
|
50966
51410
|
"pipelineExecutor.runPipeline": [{
|
|
50967
51411
|
name: "deviceId",
|
|
50968
51412
|
form: "single",
|
|
@@ -51068,6 +51512,11 @@ Object.freeze({
|
|
|
51068
51512
|
form: "single",
|
|
51069
51513
|
optional: false
|
|
51070
51514
|
}],
|
|
51515
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
51516
|
+
name: "deviceId",
|
|
51517
|
+
form: "single",
|
|
51518
|
+
optional: false
|
|
51519
|
+
}],
|
|
51071
51520
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
51072
51521
|
name: "deviceId",
|
|
51073
51522
|
form: "single",
|
|
@@ -51839,6 +52288,11 @@ Object.freeze({
|
|
|
51839
52288
|
form: "single",
|
|
51840
52289
|
optional: false
|
|
51841
52290
|
}],
|
|
52291
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
52292
|
+
name: "deviceId",
|
|
52293
|
+
form: "single",
|
|
52294
|
+
optional: false
|
|
52295
|
+
}],
|
|
51842
52296
|
"webrtcSession.closeSession": [{
|
|
51843
52297
|
name: "deviceId",
|
|
51844
52298
|
form: "single",
|
|
@@ -52068,6 +52522,8 @@ new Map(Object.entries({
|
|
|
52068
52522
|
"detection-blind": "device-events",
|
|
52069
52523
|
"node-online": "system",
|
|
52070
52524
|
"node-offline": "system",
|
|
52525
|
+
"node-restarting": "system",
|
|
52526
|
+
"node-updating": "system",
|
|
52071
52527
|
"node-inference-unavailable": "system",
|
|
52072
52528
|
"addon-crash-loop": "system",
|
|
52073
52529
|
"addon-update-available": "system",
|
|
@@ -52145,18 +52601,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52145
52601
|
kinds: [
|
|
52146
52602
|
"node-offline",
|
|
52147
52603
|
"node-online",
|
|
52604
|
+
"node-restarting",
|
|
52148
52605
|
"node-inference-unavailable"
|
|
52149
52606
|
]
|
|
52150
52607
|
},
|
|
52151
52608
|
{
|
|
52152
52609
|
id: "addons",
|
|
52153
52610
|
family: "system",
|
|
52154
|
-
label: "Addons",
|
|
52155
|
-
kinds: [
|
|
52156
|
-
|
|
52157
|
-
|
|
52158
|
-
|
|
52159
|
-
|
|
52611
|
+
label: "Addons stopped",
|
|
52612
|
+
kinds: ["addon-crash-loop"]
|
|
52613
|
+
},
|
|
52614
|
+
{
|
|
52615
|
+
id: "addon-updates",
|
|
52616
|
+
family: "system",
|
|
52617
|
+
label: "Addon updates",
|
|
52618
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52160
52619
|
},
|
|
52161
52620
|
{
|
|
52162
52621
|
id: "updates",
|
|
@@ -52164,6 +52623,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52164
52623
|
label: "Server & container updates",
|
|
52165
52624
|
kinds: [
|
|
52166
52625
|
"server-update-available",
|
|
52626
|
+
"node-updating",
|
|
52167
52627
|
"server-updated",
|
|
52168
52628
|
"wrapper-update-available"
|
|
52169
52629
|
]
|
|
@@ -52311,18 +52771,21 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52311
52771
|
kinds: [
|
|
52312
52772
|
"node-offline",
|
|
52313
52773
|
"node-online",
|
|
52774
|
+
"node-restarting",
|
|
52314
52775
|
"node-inference-unavailable"
|
|
52315
52776
|
]
|
|
52316
52777
|
},
|
|
52317
52778
|
{
|
|
52318
52779
|
name: "summaryAddons",
|
|
52319
|
-
label: "Summary: addons",
|
|
52320
|
-
example: "
|
|
52321
|
-
kinds: [
|
|
52322
|
-
|
|
52323
|
-
|
|
52324
|
-
|
|
52325
|
-
|
|
52780
|
+
label: "Summary: addons stopped",
|
|
52781
|
+
example: "hub — recorder stopped after repeated crashes",
|
|
52782
|
+
kinds: ["addon-crash-loop"]
|
|
52783
|
+
},
|
|
52784
|
+
{
|
|
52785
|
+
name: "summaryAddonUpdates",
|
|
52786
|
+
label: "Summary: addon updates",
|
|
52787
|
+
example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
|
|
52788
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52326
52789
|
},
|
|
52327
52790
|
{
|
|
52328
52791
|
name: "summaryUpdates",
|
|
@@ -52330,6 +52793,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52330
52793
|
example: "server 1.2.377 → 1.2.378",
|
|
52331
52794
|
kinds: [
|
|
52332
52795
|
"server-update-available",
|
|
52796
|
+
"node-updating",
|
|
52333
52797
|
"server-updated",
|
|
52334
52798
|
"wrapper-update-available"
|
|
52335
52799
|
]
|
|
@@ -52362,7 +52826,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52362
52826
|
{
|
|
52363
52827
|
name: "summarySection",
|
|
52364
52828
|
label: "Summary: this section",
|
|
52365
|
-
description: "The section a per-section summary row is about
|
|
52829
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
52366
52830
|
example: "Batterie scariche",
|
|
52367
52831
|
group: "system",
|
|
52368
52832
|
families: ["rule"],
|
|
@@ -52406,6 +52870,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52406
52870
|
[...RULE_BODY_ONLY],
|
|
52407
52871
|
[...RULE_TEXT],
|
|
52408
52872
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
52873
|
+
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
52409
52874
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
52410
52875
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
52411
52876
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
@@ -52446,6 +52911,8 @@ var STATE_SUMMARY_VARS = [
|
|
|
52446
52911
|
[...RULE_TEXT],
|
|
52447
52912
|
[...RULE_TEXT],
|
|
52448
52913
|
[...RULE_TEXT],
|
|
52914
|
+
[...RULE_TEXT],
|
|
52915
|
+
[...RULE_TEXT],
|
|
52449
52916
|
...STATE_SUMMARY_VARS
|
|
52450
52917
|
];
|
|
52451
52918
|
new Set([
|