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