@camstack/addon-provider-unifi 0.2.119 → 0.2.121
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 +1000 -533
- package/dist/addon.mjs +1000 -533
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -500,15 +500,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
500
500
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
501
501
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
502
502
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
503
|
-
/**
|
|
504
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
505
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
506
|
-
* `createSession`, so running sessions keep their current backend until
|
|
507
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
508
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
509
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
510
|
-
*/
|
|
511
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
512
503
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
513
504
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
514
505
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -5379,7 +5370,7 @@ var ZodIssueCode = {
|
|
|
5379
5370
|
var ZodFirstPartyTypeKind;
|
|
5380
5371
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5381
5372
|
//#endregion
|
|
5382
|
-
//#region ../types/dist/sleep-
|
|
5373
|
+
//#region ../types/dist/sleep-BNeXenvr.mjs
|
|
5383
5374
|
/**
|
|
5384
5375
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5385
5376
|
* window to float samples (D455).
|
|
@@ -6745,32 +6736,12 @@ object({
|
|
|
6745
6736
|
audioCodec: string().optional(),
|
|
6746
6737
|
metadata: record(string(), unknown()).readonly().optional()
|
|
6747
6738
|
});
|
|
6748
|
-
var EncodedPacketSchema = object({
|
|
6749
|
-
type: _enum(["video", "audio"]),
|
|
6750
|
-
data: _instanceof(Uint8Array),
|
|
6751
|
-
pts: number(),
|
|
6752
|
-
dts: number(),
|
|
6753
|
-
keyframe: boolean(),
|
|
6754
|
-
codec: string()
|
|
6755
|
-
});
|
|
6756
|
-
var DecodedFrameSchema = object({
|
|
6757
|
-
data: _instanceof(Uint8Array),
|
|
6758
|
-
width: number(),
|
|
6759
|
-
height: number(),
|
|
6760
|
-
format: _enum([
|
|
6761
|
-
"jpeg",
|
|
6762
|
-
"rgb",
|
|
6763
|
-
"bgr",
|
|
6764
|
-
"yuv420",
|
|
6765
|
-
"gray"
|
|
6766
|
-
]),
|
|
6767
|
-
timestamp: number()
|
|
6768
|
-
});
|
|
6769
6739
|
/**
|
|
6770
6740
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
6771
6741
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
6772
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
6773
|
-
*
|
|
6742
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
6743
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
6744
|
+
* over tRPC / Moleculer.
|
|
6774
6745
|
*
|
|
6775
6746
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
6776
6747
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -6796,50 +6767,6 @@ var FrameHandleSchema = object({
|
|
|
6796
6767
|
slotCount: number().int().positive()
|
|
6797
6768
|
});
|
|
6798
6769
|
/**
|
|
6799
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
6800
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
6801
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
6802
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
6803
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
6804
|
-
*/
|
|
6805
|
-
var FrameHandleFormatSchema = _enum([
|
|
6806
|
-
"rgb",
|
|
6807
|
-
"bgr",
|
|
6808
|
-
"yuv420",
|
|
6809
|
-
"gray"
|
|
6810
|
-
]);
|
|
6811
|
-
/**
|
|
6812
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
6813
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
6814
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
6815
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
6816
|
-
* they asked for with no broker-side conversion.
|
|
6817
|
-
*/
|
|
6818
|
-
var SubscribeFramesInputSchema = object({
|
|
6819
|
-
brokerId: string(),
|
|
6820
|
-
format: FrameHandleFormatSchema,
|
|
6821
|
-
/**
|
|
6822
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
6823
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
6824
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
6825
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
6826
|
-
*/
|
|
6827
|
-
maxFps: number().positive().optional(),
|
|
6828
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
6829
|
-
tag: string().optional()
|
|
6830
|
-
});
|
|
6831
|
-
/**
|
|
6832
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
6833
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
6834
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
6835
|
-
*/
|
|
6836
|
-
var SubscribeFramesResultSchema = object({
|
|
6837
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
6838
|
-
subscriptionId: string(),
|
|
6839
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
6840
|
-
maxFps: number().nonnegative()
|
|
6841
|
-
});
|
|
6842
|
-
/**
|
|
6843
6770
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
6844
6771
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
6845
6772
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -6847,8 +6774,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
6847
6774
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
6848
6775
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
6849
6776
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
6850
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
6851
|
-
*
|
|
6777
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
6778
|
+
* it.
|
|
6852
6779
|
*/
|
|
6853
6780
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
6854
6781
|
var DecodedAudioChunkSchema = object({
|
|
@@ -6866,11 +6793,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
6866
6793
|
format: AudioChunkFormatSchema.optional()
|
|
6867
6794
|
});
|
|
6868
6795
|
/**
|
|
6869
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
6870
|
-
*
|
|
6871
|
-
*
|
|
6872
|
-
*
|
|
6873
|
-
* `pullAudioChunks`.
|
|
6796
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
6797
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
6798
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
6799
|
+
* the consumer drains via `pullAudioChunks`.
|
|
6874
6800
|
*/
|
|
6875
6801
|
var SubscribeAudioChunksInputSchema = object({
|
|
6876
6802
|
brokerId: string(),
|
|
@@ -6901,9 +6827,7 @@ var BrokerStatsSchema = object({
|
|
|
6901
6827
|
"stopped"
|
|
6902
6828
|
]),
|
|
6903
6829
|
inputFps: number(),
|
|
6904
|
-
decodeFps: number(),
|
|
6905
6830
|
encodedSubscribers: number(),
|
|
6906
|
-
decodedSubscribers: number(),
|
|
6907
6831
|
uptimeMs: number(),
|
|
6908
6832
|
bitrateKbps: number(),
|
|
6909
6833
|
idrIntervalMs: number(),
|
|
@@ -6916,14 +6840,6 @@ var BrokerStatsSchema = object({
|
|
|
6916
6840
|
preBufferMs: number(),
|
|
6917
6841
|
preBufferPackets: number(),
|
|
6918
6842
|
/**
|
|
6919
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
6920
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
6921
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
6922
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
6923
|
-
* a separate cap call per broker.
|
|
6924
|
-
*/
|
|
6925
|
-
decoderNodeId: string().nullable(),
|
|
6926
|
-
/**
|
|
6927
6843
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
6928
6844
|
* when the stream has no audio track or the broker is in cold start.
|
|
6929
6845
|
* `supported = false` means the codec was detected but the local
|
|
@@ -10259,70 +10175,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
10259
10175
|
"backup"
|
|
10260
10176
|
]).optional()
|
|
10261
10177
|
});
|
|
10262
|
-
var DecoderStatsSchema = object({
|
|
10263
|
-
inputFps: number(),
|
|
10264
|
-
outputFps: number(),
|
|
10265
|
-
avgDecodeTimeMs: number(),
|
|
10266
|
-
droppedFrames: number(),
|
|
10267
|
-
/**
|
|
10268
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
10269
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
10270
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
10271
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
10272
|
-
*/
|
|
10273
|
-
lagMs: number().optional(),
|
|
10274
|
-
effectiveFps: number().optional(),
|
|
10275
|
-
adaptiveFps: number().optional()
|
|
10276
|
-
});
|
|
10277
|
-
var DecoderSessionConfigSchema = object({
|
|
10278
|
-
codec: string(),
|
|
10279
|
-
maxFps: number().default(0),
|
|
10280
|
-
outputFormat: _enum([
|
|
10281
|
-
"jpeg",
|
|
10282
|
-
"rgb",
|
|
10283
|
-
"bgr",
|
|
10284
|
-
"yuv420",
|
|
10285
|
-
"gray"
|
|
10286
|
-
]).default("jpeg"),
|
|
10287
|
-
scale: number().default(1),
|
|
10288
|
-
width: number().optional(),
|
|
10289
|
-
height: number().optional(),
|
|
10290
|
-
/**
|
|
10291
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
10292
|
-
* because the cap is generic (any caller could request decode), but
|
|
10293
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
10294
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
10295
|
-
* sendPacket errors on a single hung camera).
|
|
10296
|
-
*/
|
|
10297
|
-
deviceId: number().int().nonnegative().optional(),
|
|
10298
|
-
/**
|
|
10299
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
10300
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
10301
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
10302
|
-
* profile cleanly.
|
|
10303
|
-
*/
|
|
10304
|
-
tag: string().optional(),
|
|
10305
|
-
/**
|
|
10306
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
10307
|
-
*
|
|
10308
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
10309
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
10310
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
10311
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
10312
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
10313
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
10314
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
10315
|
-
*/
|
|
10316
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
10317
|
-
/**
|
|
10318
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
10319
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
10320
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
10321
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
10322
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
10323
|
-
*/
|
|
10324
|
-
debug: boolean().optional()
|
|
10325
|
-
});
|
|
10326
10178
|
/**
|
|
10327
10179
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
10328
10180
|
* an addon declares its channels in.
|
|
@@ -10465,6 +10317,26 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10465
10317
|
"balanced",
|
|
10466
10318
|
"strict"
|
|
10467
10319
|
]);
|
|
10320
|
+
/** Steps whose effect a root label can BE. */
|
|
10321
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10322
|
+
"animal-classifier",
|
|
10323
|
+
"vehicle-classifier",
|
|
10324
|
+
"package-detection"
|
|
10325
|
+
];
|
|
10326
|
+
/** Steps whose box a root detection can BE. */
|
|
10327
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10328
|
+
/**
|
|
10329
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
10330
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
10331
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
10332
|
+
* no camera tree carries.)
|
|
10333
|
+
*/
|
|
10334
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
10335
|
+
[
|
|
10336
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
10337
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
10338
|
+
...MASK_SUPPLY_STEP_IDS
|
|
10339
|
+
];
|
|
10468
10340
|
var MODEL_FORMATS = [
|
|
10469
10341
|
"onnx",
|
|
10470
10342
|
"coreml",
|
|
@@ -10493,7 +10365,53 @@ var ModelFormatEntrySchema = object({
|
|
|
10493
10365
|
/** Multi-file payload (directory members or sibling files). */
|
|
10494
10366
|
files: array(string()).readonly().optional(),
|
|
10495
10367
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
10496
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
10368
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
10369
|
+
/**
|
|
10370
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
10371
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
10372
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
10373
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
10374
|
+
* node records the revision it downloaded next to the file
|
|
10375
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
10376
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
10377
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
10378
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
10379
|
+
*/
|
|
10380
|
+
revision: string().min(1).optional()
|
|
10381
|
+
});
|
|
10382
|
+
/**
|
|
10383
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
10384
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
10385
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
10386
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
10387
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
10388
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
10389
|
+
*/
|
|
10390
|
+
var ModelOnDiskStateSchema = _enum([
|
|
10391
|
+
"current",
|
|
10392
|
+
"stale",
|
|
10393
|
+
"missing"
|
|
10394
|
+
]);
|
|
10395
|
+
/**
|
|
10396
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
10397
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
10398
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
10399
|
+
*/
|
|
10400
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
10401
|
+
"fp32",
|
|
10402
|
+
"fp16",
|
|
10403
|
+
"int8"
|
|
10404
|
+
]);
|
|
10405
|
+
/**
|
|
10406
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
10407
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
10408
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
10409
|
+
*/
|
|
10410
|
+
var PipelineModelFormatStatusSchema = object({
|
|
10411
|
+
downloaded: boolean(),
|
|
10412
|
+
sizeMB: number(),
|
|
10413
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
10414
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
10497
10415
|
});
|
|
10498
10416
|
/**
|
|
10499
10417
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -10534,11 +10452,11 @@ var ModelVariantGroupSchema = object({
|
|
|
10534
10452
|
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
10535
10453
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
10536
10454
|
/**
|
|
10537
|
-
*
|
|
10538
|
-
*
|
|
10539
|
-
*
|
|
10455
|
+
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
10456
|
+
* an alternate training of the same family (Scrypted `relu_test`); chip
|
|
10457
|
+
* label is "Test".
|
|
10540
10458
|
*/
|
|
10541
|
-
optimization: _enum(["standard", "
|
|
10459
|
+
optimization: _enum(["standard", "test"]).optional(),
|
|
10542
10460
|
/**
|
|
10543
10461
|
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
10544
10462
|
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
@@ -10561,9 +10479,10 @@ var ModelProviderIdSchema = _enum([
|
|
|
10561
10479
|
* are per upstream. A persisted custom-model row written when this field was a
|
|
10562
10480
|
* string still parses — the string is lifted into `{ weights }`.
|
|
10563
10481
|
*
|
|
10564
|
-
* Every licence surface (the
|
|
10565
|
-
*
|
|
10566
|
-
*
|
|
10482
|
+
* Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
|
|
10483
|
+
* model table) is GENERATED from these records by
|
|
10484
|
+
* `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
|
|
10485
|
+
* `camstack/docs` → `/docs/detection/models`.
|
|
10567
10486
|
*/
|
|
10568
10487
|
var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
|
|
10569
10488
|
/** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
|
|
@@ -10596,6 +10515,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10596
10515
|
/** True when the weights or their data forbid commercial use. */
|
|
10597
10516
|
nonCommercial: boolean().optional()
|
|
10598
10517
|
}));
|
|
10518
|
+
/**
|
|
10519
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10520
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10521
|
+
*
|
|
10522
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10523
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10524
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10525
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10526
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10527
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10528
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
10529
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
10530
|
+
* detection in the shape that step produces. Derived from the model's
|
|
10531
|
+
* postprocessor on read, never stored by an import.
|
|
10532
|
+
*/
|
|
10533
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
10534
|
+
object({
|
|
10535
|
+
kind: literal("label"),
|
|
10536
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10537
|
+
labelToEffect: record(string(), string()),
|
|
10538
|
+
uncovered: array(string()).readonly()
|
|
10539
|
+
}),
|
|
10540
|
+
object({
|
|
10541
|
+
kind: literal("crop"),
|
|
10542
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10543
|
+
rootLabels: array(string()).readonly(),
|
|
10544
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10545
|
+
childClass: _enum(["plate", "face"]),
|
|
10546
|
+
/**
|
|
10547
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10548
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10549
|
+
* stored by an import.
|
|
10550
|
+
*/
|
|
10551
|
+
rootInputPx: number().int().positive().optional()
|
|
10552
|
+
}),
|
|
10553
|
+
object({
|
|
10554
|
+
kind: literal("mask"),
|
|
10555
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
10556
|
+
})
|
|
10557
|
+
]);
|
|
10599
10558
|
var ModelCatalogEntrySchema = object({
|
|
10600
10559
|
id: string(),
|
|
10601
10560
|
name: string(),
|
|
@@ -10661,6 +10620,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
10661
10620
|
*/
|
|
10662
10621
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
10663
10622
|
/**
|
|
10623
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
10624
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
10625
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
10626
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
10627
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
10628
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
10629
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
10630
|
+
*/
|
|
10631
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10632
|
+
/**
|
|
10633
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
10634
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
10635
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
10636
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
10637
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
10638
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
10639
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
10640
|
+
*/
|
|
10641
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
10642
|
+
/**
|
|
10643
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
10644
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
10645
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
10646
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
10647
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
10648
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
10649
|
+
*/
|
|
10650
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10651
|
+
/**
|
|
10664
10652
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
10665
10653
|
* onto the canonical template) before this step runs, instead of a plain
|
|
10666
10654
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -10722,6 +10710,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
10722
10710
|
*/
|
|
10723
10711
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10724
10712
|
/**
|
|
10713
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10714
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10715
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10716
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10717
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10718
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10719
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10720
|
+
*/
|
|
10721
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10722
|
+
/**
|
|
10725
10723
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10726
10724
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
10727
10725
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -12323,13 +12321,6 @@ var BrokerRtspClientSchema = object({
|
|
|
12323
12321
|
lastRtpAt: number(),
|
|
12324
12322
|
bytesSent: number()
|
|
12325
12323
|
});
|
|
12326
|
-
var BrokerDecodedClientSchema = object({
|
|
12327
|
-
tag: string(),
|
|
12328
|
-
subscribedAt: number(),
|
|
12329
|
-
maxFps: number(),
|
|
12330
|
-
framesDelivered: number(),
|
|
12331
|
-
framesDropped: number()
|
|
12332
|
-
});
|
|
12333
12324
|
var BrokerAudioClientSchema = object({
|
|
12334
12325
|
tag: string(),
|
|
12335
12326
|
subscribedAt: number(),
|
|
@@ -12421,7 +12412,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
12421
12412
|
});
|
|
12422
12413
|
var BrokerClientsSchema = object({
|
|
12423
12414
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
12424
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
12425
12415
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
12426
12416
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
12427
12417
|
pipeClients: number(),
|
|
@@ -12790,11 +12780,7 @@ method(object({
|
|
|
12790
12780
|
auth: "admin"
|
|
12791
12781
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
12792
12782
|
brokerId: string(),
|
|
12793
|
-
channel: _enum([
|
|
12794
|
-
"rtsp",
|
|
12795
|
-
"decoded",
|
|
12796
|
-
"audio"
|
|
12797
|
-
]),
|
|
12783
|
+
channel: _enum(["rtsp", "audio"]),
|
|
12798
12784
|
handle: string()
|
|
12799
12785
|
}), object({ killed: boolean() }), {
|
|
12800
12786
|
kind: "mutation",
|
|
@@ -12829,10 +12815,7 @@ method(object({
|
|
|
12829
12815
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
12830
12816
|
subscriptionId: string(),
|
|
12831
12817
|
maxCount: number().int().positive().default(8)
|
|
12832
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
12833
|
-
subscriptionId: string(),
|
|
12834
|
-
maxCount: number().int().positive().default(4)
|
|
12835
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12818
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12836
12819
|
brokerId: string(),
|
|
12837
12820
|
seconds: number().min(0).max(30)
|
|
12838
12821
|
}), _void(), {
|
|
@@ -14091,54 +14074,12 @@ id: union([string(), number()]) }), {
|
|
|
14091
14074
|
kind: "mutation",
|
|
14092
14075
|
auth: "admin"
|
|
14093
14076
|
});
|
|
14094
|
-
|
|
14095
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14096
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14097
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14098
|
-
*/
|
|
14099
|
-
var ShmRingStatsSchema = object({
|
|
14100
|
-
sessionId: string(),
|
|
14101
|
-
slotCount: number().int(),
|
|
14102
|
-
slotByteLength: number().int(),
|
|
14103
|
-
segmentBytes: number().int(),
|
|
14104
|
-
budgetMb: number().int(),
|
|
14105
|
-
framesWritten: number().int(),
|
|
14106
|
-
getFrameHits: number().int(),
|
|
14107
|
-
getFrameMisses: number().int()
|
|
14108
|
-
});
|
|
14109
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14077
|
+
method(_void(), object({
|
|
14110
14078
|
id: string(),
|
|
14111
14079
|
name: string(),
|
|
14112
|
-
isPullMode: boolean().optional(),
|
|
14113
|
-
priority: number().optional(),
|
|
14114
14080
|
hwaccel: string().optional(),
|
|
14115
14081
|
probedBestHwaccel: string().optional()
|
|
14116
|
-
})), method(
|
|
14117
|
-
sessionId: string(),
|
|
14118
|
-
nodeId: string()
|
|
14119
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14120
|
-
sessionId: string(),
|
|
14121
|
-
packet: EncodedPacketSchema
|
|
14122
|
-
}), _void()), method(object({
|
|
14123
|
-
sessionId: string(),
|
|
14124
|
-
url: string()
|
|
14125
|
-
}), _void()), method(object({
|
|
14126
|
-
sessionId: string(),
|
|
14127
|
-
maxCount: number().default(1),
|
|
14128
|
-
waitMs: number().optional()
|
|
14129
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14130
|
-
sessionId: string(),
|
|
14131
|
-
maxCount: number().default(1),
|
|
14132
|
-
waitMs: number().optional()
|
|
14133
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14134
|
-
sessionId: string(),
|
|
14135
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14136
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14137
|
-
sessionId: string(),
|
|
14138
|
-
codec: string(),
|
|
14139
|
-
outputFormat: string(),
|
|
14140
|
-
createdAtMs: number()
|
|
14141
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14082
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14142
14083
|
kind: "mutation",
|
|
14143
14084
|
auth: "admin"
|
|
14144
14085
|
});
|
|
@@ -14194,7 +14135,7 @@ DeviceType.Camera;
|
|
|
14194
14135
|
* This matters here more than anywhere else in the repo, because every provider
|
|
14195
14136
|
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
14196
14137
|
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
14197
|
-
* and `http://admin:hunter2@192.168.
|
|
14138
|
+
* and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
|
|
14198
14139
|
* camera's own page will ask for its own login. That is correct, and pre-
|
|
14199
14140
|
* filling it is the operator's business, not ours.
|
|
14200
14141
|
*
|
|
@@ -16283,6 +16224,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
16283
16224
|
kind: "mutation",
|
|
16284
16225
|
auth: "admin"
|
|
16285
16226
|
});
|
|
16227
|
+
var HUB_ADDRESS_ROLES = [
|
|
16228
|
+
"appConnections",
|
|
16229
|
+
"notificationTaps",
|
|
16230
|
+
"internal",
|
|
16231
|
+
"publicEndpoint"
|
|
16232
|
+
];
|
|
16286
16233
|
/**
|
|
16287
16234
|
* Transport bounds for AI capability methods.
|
|
16288
16235
|
*
|
|
@@ -17479,7 +17426,7 @@ method(object({
|
|
|
17479
17426
|
timeoutMs: 6e5
|
|
17480
17427
|
});
|
|
17481
17428
|
method(object({
|
|
17482
|
-
|
|
17429
|
+
targetNodeId: string(),
|
|
17483
17430
|
modelId: string(),
|
|
17484
17431
|
format: _enum(MODEL_FORMATS),
|
|
17485
17432
|
entry: ModelCatalogEntrySchema
|
|
@@ -18885,6 +18832,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
18885
18832
|
"stream-offline",
|
|
18886
18833
|
"node-online",
|
|
18887
18834
|
"node-offline",
|
|
18835
|
+
"node-restarting",
|
|
18836
|
+
"node-updating",
|
|
18888
18837
|
"node-inference-unavailable",
|
|
18889
18838
|
"detection-blind",
|
|
18890
18839
|
"addon-crash-loop",
|
|
@@ -19983,8 +19932,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
19983
19932
|
disabledTargetIds: array(string()).default([])
|
|
19984
19933
|
});
|
|
19985
19934
|
/**
|
|
19986
|
-
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that
|
|
19987
|
-
* still-true state. `
|
|
19935
|
+
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
19936
|
+
* report a still-true state. `addons` is the crash-looped addons only and
|
|
19937
|
+
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
19988
19938
|
* job is not an open state, and the alarm stays instant.
|
|
19989
19939
|
*/
|
|
19990
19940
|
var NcStateSummarySectionIdSchema = _enum([
|
|
@@ -19996,6 +19946,7 @@ var NcStateSummarySectionIdSchema = _enum([
|
|
|
19996
19946
|
"detection-blind",
|
|
19997
19947
|
"nodes",
|
|
19998
19948
|
"addons",
|
|
19949
|
+
"addon-updates",
|
|
19999
19950
|
"updates"
|
|
20000
19951
|
]);
|
|
20001
19952
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
@@ -20476,7 +20427,25 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
20476
20427
|
* When this mode may be armed. Absent / null = always allowed (same as a
|
|
20477
20428
|
* rule with no `schedule`). Evaluated with {@link isScheduleActive}.
|
|
20478
20429
|
*/
|
|
20479
|
-
schedule: NcScheduleSchema.optional()
|
|
20430
|
+
schedule: NcScheduleSchema.optional(),
|
|
20431
|
+
/**
|
|
20432
|
+
* D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
|
|
20433
|
+
* intrusion naming the locations)? Absent = false — the entry-delay notification is the
|
|
20434
|
+
* only one, and the matches ride the triggered notification's mosaic (D705).
|
|
20435
|
+
*/
|
|
20436
|
+
notifyDuringEntryDelay: boolean().optional(),
|
|
20437
|
+
/**
|
|
20438
|
+
* D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
|
|
20439
|
+
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
20440
|
+
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
20441
|
+
*/
|
|
20442
|
+
notifySensorRewatched: boolean().optional(),
|
|
20443
|
+
/**
|
|
20444
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
20445
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
20446
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
20447
|
+
*/
|
|
20448
|
+
notifySensorIgnored: boolean().optional()
|
|
20480
20449
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20481
20450
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20482
20451
|
mode: AlarmArmModeSchema,
|
|
@@ -20485,7 +20454,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
20485
20454
|
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
|
|
20486
20455
|
postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
|
|
20487
20456
|
/** Set a schedule, or `null` to clear (mode always allowed again). */
|
|
20488
|
-
schedule: NcScheduleSchema.nullable().optional()
|
|
20457
|
+
schedule: NcScheduleSchema.nullable().optional(),
|
|
20458
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20459
|
+
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
20460
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20461
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
20462
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
20463
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
20489
20464
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20490
20465
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20491
20466
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -21446,45 +21421,25 @@ Object.freeze(Object.fromEntries([{
|
|
|
21446
21421
|
label: "Face recognition model",
|
|
21447
21422
|
defaultModelId: "auraface-r100",
|
|
21448
21423
|
indexName: "the enrolled face gallery",
|
|
21449
|
-
options: [
|
|
21450
|
-
|
|
21451
|
-
|
|
21452
|
-
|
|
21453
|
-
},
|
|
21454
|
-
{
|
|
21455
|
-
id: "arcface-r100",
|
|
21456
|
-
label: "ArcFace (ResNet34)"
|
|
21457
|
-
},
|
|
21458
|
-
{
|
|
21459
|
-
id: "inception-resnet-v1",
|
|
21460
|
-
label: "Inception ResNet V1"
|
|
21461
|
-
}
|
|
21462
|
-
]
|
|
21424
|
+
options: [{
|
|
21425
|
+
id: "auraface-r100",
|
|
21426
|
+
label: "AuraFace R100"
|
|
21427
|
+
}]
|
|
21463
21428
|
}, {
|
|
21464
21429
|
stepId: "clip-embedding",
|
|
21465
21430
|
label: "Semantic search model",
|
|
21466
|
-
defaultModelId: "
|
|
21431
|
+
defaultModelId: "siglip2-b16-224",
|
|
21467
21432
|
indexName: "the object semantic-search index",
|
|
21468
|
-
options: [
|
|
21469
|
-
|
|
21470
|
-
|
|
21471
|
-
|
|
21472
|
-
},
|
|
21473
|
-
{
|
|
21474
|
-
id: "mobileclip-s2",
|
|
21475
|
-
label: "MobileCLIP S2"
|
|
21476
|
-
},
|
|
21477
|
-
{
|
|
21478
|
-
id: "siglip2-b16-224",
|
|
21479
|
-
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21480
|
-
}
|
|
21481
|
-
]
|
|
21433
|
+
options: [{
|
|
21434
|
+
id: "siglip2-b16-224",
|
|
21435
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21436
|
+
}]
|
|
21482
21437
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
21483
21438
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
21484
21439
|
stepId: "face-embedding",
|
|
21485
21440
|
key: "minLandmarkFaceSize",
|
|
21486
|
-
label: "Min face size
|
|
21487
|
-
description: "
|
|
21441
|
+
label: "Min face size to embed (detection-frame px)",
|
|
21442
|
+
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.",
|
|
21488
21443
|
type: "slider",
|
|
21489
21444
|
min: 0,
|
|
21490
21445
|
max: 64,
|
|
@@ -23404,6 +23359,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23404
23359
|
timestamp: number()
|
|
23405
23360
|
});
|
|
23406
23361
|
/**
|
|
23362
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
23363
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
23364
|
+
*/
|
|
23365
|
+
var SuppliedRootOutputSchema = object({
|
|
23366
|
+
stepId: string(),
|
|
23367
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
23368
|
+
modelId: string(),
|
|
23369
|
+
detections: array(object({
|
|
23370
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
23371
|
+
bbox: tuple([
|
|
23372
|
+
number(),
|
|
23373
|
+
number(),
|
|
23374
|
+
number(),
|
|
23375
|
+
number()
|
|
23376
|
+
]),
|
|
23377
|
+
score: number(),
|
|
23378
|
+
/**
|
|
23379
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
23380
|
+
* detector already re-found inside a root face box (D730), so its
|
|
23381
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
23382
|
+
*/
|
|
23383
|
+
landmarks: array(object({
|
|
23384
|
+
x: number(),
|
|
23385
|
+
y: number()
|
|
23386
|
+
})).optional()
|
|
23387
|
+
})).min(1)
|
|
23388
|
+
});
|
|
23389
|
+
/**
|
|
23407
23390
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23408
23391
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23409
23392
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -23451,7 +23434,7 @@ var FrameRefSchema = object({
|
|
|
23451
23434
|
timestamp: number(),
|
|
23452
23435
|
capturedAt: number().optional()
|
|
23453
23436
|
});
|
|
23454
|
-
var ModelFormatSchema$
|
|
23437
|
+
var ModelFormatSchema$2 = _enum([
|
|
23455
23438
|
"onnx",
|
|
23456
23439
|
"coreml",
|
|
23457
23440
|
"openvino",
|
|
@@ -23469,7 +23452,7 @@ var PipelineSlotSchema = _enum([
|
|
|
23469
23452
|
var PipelineEngineChoiceSchema = object({
|
|
23470
23453
|
runtime: literal("python"),
|
|
23471
23454
|
backend: string(),
|
|
23472
|
-
format: ModelFormatSchema$
|
|
23455
|
+
format: ModelFormatSchema$2,
|
|
23473
23456
|
device: string().optional()
|
|
23474
23457
|
});
|
|
23475
23458
|
/**
|
|
@@ -23508,32 +23491,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
23508
23491
|
group: string().optional(),
|
|
23509
23492
|
settings: record(string(), unknown()).optional()
|
|
23510
23493
|
}));
|
|
23511
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
23512
|
-
addonId: string(),
|
|
23513
|
-
enabled: boolean(),
|
|
23514
|
-
modelId: string(),
|
|
23515
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
23516
|
-
settings: record(string(), unknown()).optional()
|
|
23517
|
-
}));
|
|
23518
|
-
var PipelineTemplateSchema$1 = object({
|
|
23519
|
-
id: string(),
|
|
23520
|
-
name: string(),
|
|
23521
|
-
createdAt: string(),
|
|
23522
|
-
updatedAt: string(),
|
|
23523
|
-
engine: PipelineEngineChoiceSchema,
|
|
23524
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
23525
|
-
});
|
|
23526
23494
|
var PipelineModelOptionSchema = object({
|
|
23527
23495
|
id: string(),
|
|
23528
23496
|
name: string(),
|
|
23529
|
-
formats: record(string(),
|
|
23530
|
-
downloaded: boolean(),
|
|
23531
|
-
sizeMB: number()
|
|
23532
|
-
})),
|
|
23497
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
23533
23498
|
group: ModelVariantGroupSchema.optional(),
|
|
23534
23499
|
legacy: boolean().optional(),
|
|
23535
23500
|
provider: ModelProviderIdSchema.optional(),
|
|
23536
|
-
defaultConfidence: number().optional()
|
|
23501
|
+
defaultConfidence: number().optional(),
|
|
23502
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
23537
23503
|
});
|
|
23538
23504
|
var ConfigFieldBridge = custom();
|
|
23539
23505
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -23695,6 +23661,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23695
23661
|
}), {
|
|
23696
23662
|
kind: "mutation",
|
|
23697
23663
|
auth: "admin"
|
|
23664
|
+
}), method(object({
|
|
23665
|
+
nodeId: string(),
|
|
23666
|
+
deviceIds: array(number()).readonly().optional(),
|
|
23667
|
+
dryRun: boolean()
|
|
23668
|
+
}), object({
|
|
23669
|
+
entries: array(object({
|
|
23670
|
+
deviceId: number(),
|
|
23671
|
+
keys: array(string()).readonly()
|
|
23672
|
+
})).readonly(),
|
|
23673
|
+
refused: array(object({
|
|
23674
|
+
deviceId: number(),
|
|
23675
|
+
reason: string()
|
|
23676
|
+
})).readonly()
|
|
23677
|
+
}), {
|
|
23678
|
+
kind: "mutation",
|
|
23679
|
+
auth: "admin"
|
|
23698
23680
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
23699
23681
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
23700
23682
|
deviceKey: string(),
|
|
@@ -23720,22 +23702,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23720
23702
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
23721
23703
|
steps: array(PipelineStepInputSchema),
|
|
23722
23704
|
deviceKey: string().optional()
|
|
23723
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
23724
|
-
name: string(),
|
|
23725
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
23726
|
-
engine: PipelineEngineChoiceSchema
|
|
23727
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
23728
|
-
id: string(),
|
|
23729
|
-
name: string().optional(),
|
|
23730
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
23731
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23705
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23732
23706
|
addonId: string(),
|
|
23733
23707
|
modelId: string(),
|
|
23734
|
-
format: ModelFormatSchema$
|
|
23708
|
+
format: ModelFormatSchema$2
|
|
23735
23709
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
23736
23710
|
addonId: string(),
|
|
23737
23711
|
modelId: string(),
|
|
23738
|
-
format: ModelFormatSchema$
|
|
23712
|
+
format: ModelFormatSchema$2
|
|
23739
23713
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
23740
23714
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23741
23715
|
frame: FrameInputSchema.optional(),
|
|
@@ -23801,7 +23775,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23801
23775
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
23802
23776
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
23803
23777
|
*/
|
|
23804
|
-
replay: literal(true).optional()
|
|
23778
|
+
replay: literal(true).optional(),
|
|
23779
|
+
/**
|
|
23780
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
23781
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
23782
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
23783
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
23784
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
23785
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
23786
|
+
*/
|
|
23787
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
23805
23788
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
23806
23789
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23807
23790
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -23883,6 +23866,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23883
23866
|
filename: string().optional(),
|
|
23884
23867
|
settings: record(string(), unknown()).optional()
|
|
23885
23868
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
23869
|
+
/**
|
|
23870
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
23871
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
23872
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
23873
|
+
* schemas are what crosses the cap boundary.
|
|
23874
|
+
*/
|
|
23875
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
23876
|
+
/** The operator's range for it. */
|
|
23877
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
23878
|
+
min: 1,
|
|
23879
|
+
max: 8
|
|
23880
|
+
};
|
|
23881
|
+
var HardwareClassIdSchema = _enum([
|
|
23882
|
+
"intel-core-ultra",
|
|
23883
|
+
"intel-n-series",
|
|
23884
|
+
"apple-m-base",
|
|
23885
|
+
"apple-m-pro",
|
|
23886
|
+
"unknown"
|
|
23887
|
+
]);
|
|
23888
|
+
var AcceleratorKindSchema = _enum([
|
|
23889
|
+
"intel-npu",
|
|
23890
|
+
"intel-igpu",
|
|
23891
|
+
"x86-cpu",
|
|
23892
|
+
"arm-cpu",
|
|
23893
|
+
"apple-ane",
|
|
23894
|
+
"coral"
|
|
23895
|
+
]);
|
|
23896
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
23897
|
+
object({
|
|
23898
|
+
kind: literal("capacity"),
|
|
23899
|
+
sessions: number(),
|
|
23900
|
+
minSessions: number()
|
|
23901
|
+
}),
|
|
23902
|
+
object({
|
|
23903
|
+
kind: literal("tie-faster"),
|
|
23904
|
+
over: string(),
|
|
23905
|
+
recallDelta: number()
|
|
23906
|
+
}),
|
|
23907
|
+
object({
|
|
23908
|
+
kind: literal("stepped-down"),
|
|
23909
|
+
from: string(),
|
|
23910
|
+
to: string(),
|
|
23911
|
+
limitedBy: string()
|
|
23912
|
+
}),
|
|
23913
|
+
object({
|
|
23914
|
+
kind: literal("no-fit-lightest"),
|
|
23915
|
+
sessions: number(),
|
|
23916
|
+
minSessions: number()
|
|
23917
|
+
}),
|
|
23918
|
+
object({
|
|
23919
|
+
kind: literal("derived-latency"),
|
|
23920
|
+
modelId: string()
|
|
23921
|
+
}),
|
|
23922
|
+
object({ kind: literal("cpu-device") }),
|
|
23923
|
+
object({ kind: literal("coral-untouched") }),
|
|
23924
|
+
object({ kind: literal("device-disabled") }),
|
|
23925
|
+
object({ kind: literal("device-unavailable") }),
|
|
23926
|
+
object({ kind: literal("node-offline") }),
|
|
23927
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
23928
|
+
object({
|
|
23929
|
+
kind: literal("no-measured-data"),
|
|
23930
|
+
hardwareClass: HardwareClassIdSchema
|
|
23931
|
+
}),
|
|
23932
|
+
object({
|
|
23933
|
+
kind: literal("no-family-build"),
|
|
23934
|
+
format: ModelFormatSchema$1
|
|
23935
|
+
})
|
|
23936
|
+
]);
|
|
23937
|
+
var DeviceModelChoiceSchema = object({
|
|
23938
|
+
modelId: string(),
|
|
23939
|
+
p50Ms: number(),
|
|
23940
|
+
fps: number(),
|
|
23941
|
+
measured: boolean(),
|
|
23942
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
23943
|
+
capacitySessions: number(),
|
|
23944
|
+
personRecall: number()
|
|
23945
|
+
});
|
|
23946
|
+
var DeviceRecommendationSchema = object({
|
|
23947
|
+
deviceKey: string(),
|
|
23948
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
23949
|
+
enabled: boolean(),
|
|
23950
|
+
available: boolean(),
|
|
23951
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
23952
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23953
|
+
});
|
|
23954
|
+
var NodeRecommendationSchema = object({
|
|
23955
|
+
nodeId: string(),
|
|
23956
|
+
reachable: boolean(),
|
|
23957
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
23958
|
+
cpuModel: string().nullable(),
|
|
23959
|
+
skipped: boolean(),
|
|
23960
|
+
acceleratorModelId: string().nullable(),
|
|
23961
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
23962
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23963
|
+
});
|
|
23964
|
+
var ModelPinChangeSchema = object({
|
|
23965
|
+
stepId: string(),
|
|
23966
|
+
before: string().nullable(),
|
|
23967
|
+
after: string().nullable()
|
|
23968
|
+
});
|
|
23969
|
+
var NodeDeviceChangeSchema = object({
|
|
23970
|
+
nodeId: string(),
|
|
23971
|
+
deviceKey: string(),
|
|
23972
|
+
madeExplicit: boolean(),
|
|
23973
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
23974
|
+
thresholds: array(object({
|
|
23975
|
+
stepId: string(),
|
|
23976
|
+
keys: array(string()).readonly()
|
|
23977
|
+
})).readonly()
|
|
23978
|
+
});
|
|
23979
|
+
var CameraOverrideClearSchema = object({
|
|
23980
|
+
deviceId: number(),
|
|
23981
|
+
source: _enum(["step-override", "wholesale"]),
|
|
23982
|
+
nodeId: string(),
|
|
23983
|
+
deviceKey: string().nullable(),
|
|
23984
|
+
stepId: string(),
|
|
23985
|
+
modelIdBefore: string().nullable(),
|
|
23986
|
+
keys: array(string()).readonly()
|
|
23987
|
+
});
|
|
23988
|
+
var DetectorStoreClearSchema = object({
|
|
23989
|
+
deviceId: number(),
|
|
23990
|
+
keys: array(string()).readonly()
|
|
23991
|
+
});
|
|
23992
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
23993
|
+
object({
|
|
23994
|
+
kind: literal("detector-store-cluster-wide"),
|
|
23995
|
+
skippedNodes: array(string()).readonly()
|
|
23996
|
+
}),
|
|
23997
|
+
object({
|
|
23998
|
+
kind: literal("detector-store-unreadable"),
|
|
23999
|
+
error: string()
|
|
24000
|
+
}),
|
|
24001
|
+
object({
|
|
24002
|
+
kind: literal("coral-enabled"),
|
|
24003
|
+
nodeId: string(),
|
|
24004
|
+
deviceKey: string()
|
|
24005
|
+
})
|
|
24006
|
+
]);
|
|
24007
|
+
var AutoTuneOptionsSchema = object({
|
|
24008
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
24009
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24010
|
+
/**
|
|
24011
|
+
* The least number of parallel sessions every device must sustain at the
|
|
24012
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
24013
|
+
* that reaches it wins.
|
|
24014
|
+
*/
|
|
24015
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24016
|
+
});
|
|
24017
|
+
var AutoTunePlanSchema = object({
|
|
24018
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
24019
|
+
planHash: string(),
|
|
24020
|
+
family: literal("yolov9"),
|
|
24021
|
+
headroom: number(),
|
|
24022
|
+
minSessionsPerDevice: number(),
|
|
24023
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
24024
|
+
cameraFps: number(),
|
|
24025
|
+
generatedAt: number(),
|
|
24026
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
24027
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
24028
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
24029
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
24030
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
24031
|
+
});
|
|
24032
|
+
var AutoTuneApplyInputSchema = object({
|
|
24033
|
+
planHash: string(),
|
|
24034
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24035
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24036
|
+
});
|
|
24037
|
+
var AutoTunePhaseResultSchema = object({
|
|
24038
|
+
phase: _enum([
|
|
24039
|
+
"download",
|
|
24040
|
+
"camera-overrides",
|
|
24041
|
+
"detector-thresholds",
|
|
24042
|
+
"node-models",
|
|
24043
|
+
"redispatch"
|
|
24044
|
+
]),
|
|
24045
|
+
ok: boolean(),
|
|
24046
|
+
detail: string()
|
|
24047
|
+
});
|
|
24048
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
24049
|
+
object({
|
|
24050
|
+
kind: literal("applied"),
|
|
24051
|
+
planHash: string(),
|
|
24052
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24053
|
+
}),
|
|
24054
|
+
object({
|
|
24055
|
+
kind: literal("aborted"),
|
|
24056
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24057
|
+
}),
|
|
24058
|
+
object({
|
|
24059
|
+
kind: literal("stale"),
|
|
24060
|
+
plan: AutoTunePlanSchema
|
|
24061
|
+
}),
|
|
24062
|
+
object({
|
|
24063
|
+
kind: literal("refused"),
|
|
24064
|
+
reason: _enum(["apply-in-progress"])
|
|
24065
|
+
})
|
|
24066
|
+
]);
|
|
24067
|
+
/**
|
|
24068
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
24069
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
24070
|
+
* hardware share suggestion and the stale device pins.
|
|
24071
|
+
*/
|
|
24072
|
+
/**
|
|
24073
|
+
* How a new detection session picks its node and device.
|
|
24074
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
24075
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
24076
|
+
* weight only bites once a node already holds a session.
|
|
24077
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
24078
|
+
* full or drowning node yields to a free one (D748).
|
|
24079
|
+
*/
|
|
24080
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
24081
|
+
var LoadBalancingSharesInputSchema = object({
|
|
24082
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
24083
|
+
nodes: record(string(), number().positive()).default({}),
|
|
24084
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
24085
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
24086
|
+
});
|
|
24087
|
+
var PlacementStatsInputSchema = object({
|
|
24088
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
24089
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
24090
|
+
var PlacementDeviceStatsSchema = object({
|
|
24091
|
+
deviceKey: string(),
|
|
24092
|
+
/** Sessions running on this device now. */
|
|
24093
|
+
sessionsNow: number(),
|
|
24094
|
+
/** Sessions started on this device inside the window. */
|
|
24095
|
+
sessionsStarted: number(),
|
|
24096
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
24097
|
+
observedShare: number().nullable()
|
|
24098
|
+
});
|
|
24099
|
+
var PlacementNodeStatsSchema = object({
|
|
24100
|
+
nodeId: string(),
|
|
24101
|
+
sessionsNow: number(),
|
|
24102
|
+
sessionsStarted: number(),
|
|
24103
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
24104
|
+
observedShare: number().nullable(),
|
|
24105
|
+
/** Most sessions this node ran at once inside the window. */
|
|
24106
|
+
peakSessions: number(),
|
|
24107
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
24108
|
+
yieldsAway: number(),
|
|
24109
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
24110
|
+
});
|
|
24111
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
24112
|
+
var StaleDevicePinSchema = object({
|
|
24113
|
+
deviceId: number(),
|
|
24114
|
+
deviceKey: string(),
|
|
24115
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
24116
|
+
reason: _enum(["disabled", "absent"])
|
|
24117
|
+
});
|
|
24118
|
+
var PlacementStatsSchema = object({
|
|
24119
|
+
policy: SessionPlacementPolicySchema,
|
|
24120
|
+
windowMs: number(),
|
|
24121
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
24122
|
+
observedForMs: number(),
|
|
24123
|
+
sessionsNow: number(),
|
|
24124
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
24125
|
+
clusterPeakSessions: number(),
|
|
24126
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
24127
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
24128
|
+
});
|
|
24129
|
+
/**
|
|
24130
|
+
* Where an automatic share's capacity comes from (D755).
|
|
24131
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
24132
|
+
* the measured latency table for the node's hardware class.
|
|
24133
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
24134
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
24135
|
+
*/
|
|
24136
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
24137
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
24138
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
24139
|
+
var SuggestSharesInputSchema = object({
|
|
24140
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24141
|
+
/** Default `hardware`. */
|
|
24142
|
+
source: CapacitySourceSchema.default("hardware")
|
|
24143
|
+
});
|
|
24144
|
+
var SuggestedDeviceShareSchema = object({
|
|
24145
|
+
deviceKey: string(),
|
|
24146
|
+
/** Share of the node (0–100, rounded). */
|
|
24147
|
+
share: number(),
|
|
24148
|
+
modelId: string().nullable(),
|
|
24149
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
24150
|
+
fps: number().nullable(),
|
|
24151
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
24152
|
+
measured: boolean(),
|
|
24153
|
+
/**
|
|
24154
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
24155
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
24156
|
+
*/
|
|
24157
|
+
suggestedMaxSessions: number().nullable()
|
|
24158
|
+
});
|
|
24159
|
+
var SuggestedNodeShareSchema = object({
|
|
24160
|
+
nodeId: string(),
|
|
24161
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
24162
|
+
share: number().nullable(),
|
|
24163
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
24164
|
+
capacitySessions: number(),
|
|
24165
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
24166
|
+
skippedReason: string().nullable(),
|
|
24167
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
24168
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24169
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
24170
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
24171
|
+
});
|
|
24172
|
+
var SuggestSharesResultSchema = object({
|
|
24173
|
+
headroom: number(),
|
|
24174
|
+
/** The source asked for; each node says what it actually used. */
|
|
24175
|
+
source: CapacitySourceSchema,
|
|
24176
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
24177
|
+
cameraFps: number(),
|
|
24178
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
24179
|
+
minSessionsPerDevice: number(),
|
|
24180
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
24181
|
+
});
|
|
24182
|
+
/**
|
|
24183
|
+
* Where the node and device shares come from (D750, D755).
|
|
24184
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
24185
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
24186
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
24187
|
+
* switched on or off, or changes model. No load input.
|
|
24188
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
24189
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
24190
|
+
* - `manual` — the operator's stored sliders.
|
|
24191
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
24192
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
24193
|
+
*/
|
|
24194
|
+
var ShareSourceSchema = _enum([
|
|
24195
|
+
"hardware",
|
|
24196
|
+
"benchmark",
|
|
24197
|
+
"manual"
|
|
24198
|
+
]);
|
|
24199
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
24200
|
+
object({
|
|
24201
|
+
nodes: record(string(), number()),
|
|
24202
|
+
devices: record(string(), record(string(), number()))
|
|
24203
|
+
});
|
|
24204
|
+
var EffectiveDeviceShareSchema = object({
|
|
24205
|
+
deviceKey: string(),
|
|
24206
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
24207
|
+
eligible: boolean(),
|
|
24208
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
24209
|
+
configuredPct: number(),
|
|
24210
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
24211
|
+
effectivePct: number()
|
|
24212
|
+
});
|
|
24213
|
+
var EffectiveNodeShareSchema = object({
|
|
24214
|
+
nodeId: string(),
|
|
24215
|
+
eligible: boolean(),
|
|
24216
|
+
configuredPct: number(),
|
|
24217
|
+
effectivePct: number(),
|
|
24218
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
24219
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24220
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
24221
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
24222
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
24223
|
+
});
|
|
24224
|
+
var EffectiveSharesSchema = object({
|
|
24225
|
+
source: ShareSourceSchema,
|
|
24226
|
+
policy: SessionPlacementPolicySchema,
|
|
24227
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
24228
|
+
autoPending: boolean(),
|
|
24229
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
24230
|
+
computedAt: number().nullable(),
|
|
24231
|
+
/** What made the system recompute them last. */
|
|
24232
|
+
trigger: string().nullable(),
|
|
24233
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
24234
|
+
/** The relative weights the election reads (before eligibility). */
|
|
24235
|
+
nodeWeights: record(string(), number()),
|
|
24236
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
24237
|
+
});
|
|
23886
24238
|
object({
|
|
23887
24239
|
activeCameras: number(),
|
|
23888
24240
|
throttledCameras: number(),
|
|
@@ -24366,6 +24718,22 @@ var MotionSourceEnum = _enum([
|
|
|
24366
24718
|
"device-activity"
|
|
24367
24719
|
]);
|
|
24368
24720
|
/**
|
|
24721
|
+
* What opened an on-motion detection SESSION: the motion source that passed the
|
|
24722
|
+
* camera's `motionSources` gate, and what raised it (the camera itself, or a
|
|
24723
|
+
* sensor the operator attached — D672). `sensorName` is the attached sensor's
|
|
24724
|
+
* device name as the orchestrator's camera-sensors resolution last read it;
|
|
24725
|
+
* absent when unknown or when the camera itself triggered.
|
|
24726
|
+
*
|
|
24727
|
+
* Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
|
|
24728
|
+
* can say what started the session (D672 rule 11, amended 2026-10-06). The
|
|
24729
|
+
* runner never decides anything on it.
|
|
24730
|
+
*/
|
|
24731
|
+
var SessionTriggerSchema = object({
|
|
24732
|
+
source: MotionSourceEnum,
|
|
24733
|
+
triggeredBy: MotionTriggeredBySchema,
|
|
24734
|
+
sensorName: string().optional()
|
|
24735
|
+
});
|
|
24736
|
+
/**
|
|
24369
24737
|
* List of motion sources active on a camera. Empty array is valid:
|
|
24370
24738
|
* "no source" — happens for battery cams without firmware motion when
|
|
24371
24739
|
* the operator hasn't opted into the SW analyzer (would hold the
|
|
@@ -24617,6 +24985,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
24617
24985
|
*/
|
|
24618
24986
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
24619
24987
|
/**
|
|
24988
|
+
* What opened this attach, on a SESSION attach only (see
|
|
24989
|
+
* {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
|
|
24990
|
+
* standing attach, an occupancy burst, a re-dispatch with no motion event
|
|
24991
|
+
* behind it, and every attach from an orchestrator older than the field — the
|
|
24992
|
+
* runner then names no source on the phase event.
|
|
24993
|
+
*/
|
|
24994
|
+
sessionTrigger: SessionTriggerSchema.optional(),
|
|
24995
|
+
/**
|
|
24620
24996
|
* WHICH root detector runs for this camera. The detection counterpart of
|
|
24621
24997
|
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
24622
24998
|
* of sources the system understands, vendor-agnostic, owned here.
|
|
@@ -24776,14 +25152,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24776
25152
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
24777
25153
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
24778
25154
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
24779
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
24780
|
-
* per
|
|
25155
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
25156
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
25157
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
25158
|
+
* (D762).
|
|
24781
25159
|
*/
|
|
24782
25160
|
devices: array(object({
|
|
24783
25161
|
deviceKey: string(),
|
|
24784
25162
|
backend: string(),
|
|
24785
|
-
attachedCameras: number()
|
|
24786
|
-
queueDepthTotal: number()
|
|
25163
|
+
attachedCameras: number()
|
|
24787
25164
|
})).default([]),
|
|
24788
25165
|
/** Hardware capability flags reported by this node. */
|
|
24789
25166
|
hardware: object({
|
|
@@ -24919,7 +25296,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
24919
25296
|
*/
|
|
24920
25297
|
cropJpeg: string().optional(),
|
|
24921
25298
|
parent: DetailParentSchema,
|
|
24922
|
-
steps: array(string()).optional()
|
|
25299
|
+
steps: array(string()).optional(),
|
|
25300
|
+
/**
|
|
25301
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25302
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25303
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25304
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25305
|
+
* requested step infers as before.
|
|
25306
|
+
*/
|
|
25307
|
+
supplied: object({
|
|
25308
|
+
stepId: string(),
|
|
25309
|
+
modelId: string(),
|
|
25310
|
+
boxes: array(object({
|
|
25311
|
+
bbox: NativeCropBboxSchema,
|
|
25312
|
+
score: number()
|
|
25313
|
+
})).min(1)
|
|
25314
|
+
}).optional()
|
|
24923
25315
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
24924
25316
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
24925
25317
|
stepId: string(),
|
|
@@ -24982,14 +25374,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
24982
25374
|
settings: record(string(), unknown()).readonly().optional()
|
|
24983
25375
|
}).nullable().optional()
|
|
24984
25376
|
});
|
|
24985
|
-
var PipelineTemplateSchema = object({
|
|
24986
|
-
id: string(),
|
|
24987
|
-
name: string(),
|
|
24988
|
-
description: string().optional(),
|
|
24989
|
-
config: CameraPipelineConfigSchema,
|
|
24990
|
-
createdAt: string(),
|
|
24991
|
-
updatedAt: string()
|
|
24992
|
-
});
|
|
24993
25377
|
var DeviceStepConfigSchema = object({
|
|
24994
25378
|
modelId: string().optional(),
|
|
24995
25379
|
settings: record(string(), unknown()).optional(),
|
|
@@ -25063,9 +25447,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25063
25447
|
modelId: string().optional(),
|
|
25064
25448
|
settings: record(string(), unknown()).readonly().optional()
|
|
25065
25449
|
});
|
|
25450
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25066
25451
|
var CameraPipelineSettingsSchema = object({
|
|
25067
|
-
pinnedAgentNodeId: string().optional(),
|
|
25068
25452
|
stepToggles: record(string(), boolean()).optional(),
|
|
25453
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25069
25454
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25070
25455
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25071
25456
|
});
|
|
@@ -25098,7 +25483,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25098
25483
|
});
|
|
25099
25484
|
/**
|
|
25100
25485
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25101
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
25486
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
25487
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
25488
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
25489
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
25102
25490
|
*/
|
|
25103
25491
|
var AgentLoadSummarySchema = object({
|
|
25104
25492
|
nodeId: string(),
|
|
@@ -25187,26 +25575,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
25187
25575
|
width: number(),
|
|
25188
25576
|
height: number(),
|
|
25189
25577
|
subscribers: number(),
|
|
25190
|
-
|
|
25191
|
-
|
|
25578
|
+
/**
|
|
25579
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
25580
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
25581
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
25582
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
25583
|
+
* camera and is not served (D758).
|
|
25584
|
+
*/
|
|
25585
|
+
inFps: number().nullable()
|
|
25192
25586
|
})).readonly(),
|
|
25193
25587
|
webrtcSessions: number(),
|
|
25194
25588
|
rtspRestream: boolean()
|
|
25195
25589
|
});
|
|
25196
|
-
/**
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
var CameraDecoderStatusSchema = object({
|
|
25205
|
-
nodeId: string(),
|
|
25206
|
-
formats: array(string()).readonly(),
|
|
25207
|
-
sessionCount: number(),
|
|
25208
|
-
shm: CameraDecoderShmSchema
|
|
25209
|
-
});
|
|
25590
|
+
/**
|
|
25591
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
25592
|
+
* construction); null when the camera has no detection node. It carries no
|
|
25593
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
25594
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
25595
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
25596
|
+
* detector), never from a counter nothing feeds.
|
|
25597
|
+
*/
|
|
25598
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
25210
25599
|
/** Motion block — null when motion detection is not active for this device. */
|
|
25211
25600
|
var CameraMotionStatusSchema = object({
|
|
25212
25601
|
enabled: boolean(),
|
|
@@ -25563,12 +25952,6 @@ method(object({
|
|
|
25563
25952
|
}), object({ success: literal(true) }), {
|
|
25564
25953
|
kind: "mutation",
|
|
25565
25954
|
auth: "admin"
|
|
25566
|
-
}), method(object({
|
|
25567
|
-
agentNodeId: string(),
|
|
25568
|
-
detectWeight: number().positive().nullable()
|
|
25569
|
-
}), object({ success: literal(true) }), {
|
|
25570
|
-
kind: "mutation",
|
|
25571
|
-
auth: "admin"
|
|
25572
25955
|
}), method(object({
|
|
25573
25956
|
agentNodeId: string(),
|
|
25574
25957
|
detect: boolean().nullable().optional(),
|
|
@@ -25610,6 +25993,15 @@ method(object({
|
|
|
25610
25993
|
}), {
|
|
25611
25994
|
kind: "mutation",
|
|
25612
25995
|
auth: "admin"
|
|
25996
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
25997
|
+
kind: "mutation",
|
|
25998
|
+
auth: "admin"
|
|
25999
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
26000
|
+
kind: "mutation",
|
|
26001
|
+
auth: "admin"
|
|
26002
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
26003
|
+
kind: "mutation",
|
|
26004
|
+
auth: "admin"
|
|
25613
26005
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
25614
26006
|
deviceId: number(),
|
|
25615
26007
|
addonId: string(),
|
|
@@ -25626,6 +26018,13 @@ method(object({
|
|
|
25626
26018
|
}), object({ success: literal(true) }), {
|
|
25627
26019
|
kind: "mutation",
|
|
25628
26020
|
auth: "admin"
|
|
26021
|
+
}), method(object({
|
|
26022
|
+
deviceId: number(),
|
|
26023
|
+
addonId: string(),
|
|
26024
|
+
settings: record(string(), unknown()).nullable()
|
|
26025
|
+
}), object({ success: literal(true) }), {
|
|
26026
|
+
kind: "mutation",
|
|
26027
|
+
auth: "admin"
|
|
25629
26028
|
}), method(object({
|
|
25630
26029
|
deviceId: number(),
|
|
25631
26030
|
agentNodeId: string(),
|
|
@@ -25649,25 +26048,7 @@ method(object({
|
|
|
25649
26048
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
25650
26049
|
kind: "mutation",
|
|
25651
26050
|
auth: "admin"
|
|
25652
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
25653
|
-
name: string(),
|
|
25654
|
-
description: string().optional(),
|
|
25655
|
-
config: CameraPipelineConfigSchema
|
|
25656
|
-
}), PipelineTemplateSchema, {
|
|
25657
|
-
kind: "mutation",
|
|
25658
|
-
auth: "admin"
|
|
25659
|
-
}), method(object({
|
|
25660
|
-
id: string(),
|
|
25661
|
-
name: string().optional(),
|
|
25662
|
-
description: string().optional(),
|
|
25663
|
-
config: CameraPipelineConfigSchema.optional()
|
|
25664
|
-
}), PipelineTemplateSchema, {
|
|
25665
|
-
kind: "mutation",
|
|
25666
|
-
auth: "admin"
|
|
25667
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
25668
|
-
kind: "mutation",
|
|
25669
|
-
auth: "admin"
|
|
25670
|
-
});
|
|
26051
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
25671
26052
|
/**
|
|
25672
26053
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
25673
26054
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -27916,8 +28297,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
27916
28297
|
]).nullable(),
|
|
27917
28298
|
/** Input FPS from the camera (null for adaptive). */
|
|
27918
28299
|
inputFps: number().nullable(),
|
|
27919
|
-
/** Decoded FPS (null for adaptive). */
|
|
27920
|
-
decodeFps: number().nullable(),
|
|
27921
28300
|
/** Bitrate in kbps (null for adaptive). */
|
|
27922
28301
|
bitrateKbps: number().nullable()
|
|
27923
28302
|
});
|
|
@@ -28249,6 +28628,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28249
28628
|
*/
|
|
28250
28629
|
alive: boolean()
|
|
28251
28630
|
})), method(object({
|
|
28631
|
+
deviceId: number().int().nonnegative(),
|
|
28632
|
+
sessionId: string(),
|
|
28633
|
+
downlinkMbps: number().nonnegative()
|
|
28634
|
+
}), object({
|
|
28635
|
+
outcome: _enum(["switching", "held"]),
|
|
28636
|
+
tier: CamProfileSchema.nullable(),
|
|
28637
|
+
reason: string()
|
|
28638
|
+
}), { kind: "mutation" }), method(object({
|
|
28252
28639
|
deviceId: number().int().nonnegative(),
|
|
28253
28640
|
sessionId: string()
|
|
28254
28641
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -32022,7 +32409,7 @@ var LocalInterfaceSchema = object({
|
|
|
32022
32409
|
name: string(),
|
|
32023
32410
|
family: _enum(["IPv4", "IPv6"]),
|
|
32024
32411
|
address: string(),
|
|
32025
|
-
/** CIDR shorthand (e.g. `192.168.
|
|
32412
|
+
/** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
|
|
32026
32413
|
cidr: string(),
|
|
32027
32414
|
/** OS netmask. Stable across calls so the SDK can hash on it. */
|
|
32028
32415
|
netmask: string(),
|
|
@@ -32076,7 +32463,9 @@ var ConnectionEndpointSchema = object({
|
|
|
32076
32463
|
"lan-ipv4",
|
|
32077
32464
|
"lan-ipv6",
|
|
32078
32465
|
"public",
|
|
32079
|
-
"loopback"
|
|
32466
|
+
"loopback",
|
|
32467
|
+
"app-link",
|
|
32468
|
+
"custom"
|
|
32080
32469
|
]),
|
|
32081
32470
|
/**
|
|
32082
32471
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -32145,15 +32534,27 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
32145
32534
|
localPort: AdvertisedLocalPortSchema
|
|
32146
32535
|
});
|
|
32147
32536
|
/**
|
|
32148
|
-
* The
|
|
32149
|
-
*
|
|
32150
|
-
*
|
|
32537
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
32538
|
+
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
32539
|
+
* so the UI can show it either way.
|
|
32151
32540
|
*/
|
|
32152
32541
|
var NotificationEndpointSchema = object({
|
|
32153
32542
|
/** The operator's explicit choice, or null for AUTO. */
|
|
32154
32543
|
baseUrl: string().nullable(),
|
|
32155
|
-
/**
|
|
32156
|
-
|
|
32544
|
+
/**
|
|
32545
|
+
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
32546
|
+
* CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
|
|
32547
|
+
* answered the public tunnel / mesh here, or null.
|
|
32548
|
+
*/
|
|
32549
|
+
resolved: string().nullable(),
|
|
32550
|
+
/**
|
|
32551
|
+
* The hub origin an app link carries as `hub=` (D709): the hub's best
|
|
32552
|
+
* public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
|
|
32553
|
+
* picked from this cap's own palette by `pickAppLinkHub`. `null` when the
|
|
32554
|
+
* hub advertises neither; the app link is then minted without `hub=`.
|
|
32555
|
+
* Absent on a pre-D709 hub.
|
|
32556
|
+
*/
|
|
32557
|
+
appLinkHub: string().nullable()
|
|
32157
32558
|
});
|
|
32158
32559
|
/**
|
|
32159
32560
|
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
@@ -32166,6 +32567,72 @@ var ViewerEndpointsSchema = object({
|
|
|
32166
32567
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
32167
32568
|
resolved: array(string()).readonly()
|
|
32168
32569
|
});
|
|
32570
|
+
/**
|
|
32571
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
32572
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
32573
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
32574
|
+
*/
|
|
32575
|
+
var HubAddressSnapshotSchema = object({
|
|
32576
|
+
override: string().nullable(),
|
|
32577
|
+
resolved: string().nullable(),
|
|
32578
|
+
source: _enum([
|
|
32579
|
+
"override",
|
|
32580
|
+
"auto",
|
|
32581
|
+
"none"
|
|
32582
|
+
])
|
|
32583
|
+
});
|
|
32584
|
+
var HubAddressesSchema = object({
|
|
32585
|
+
cluster: HubAddressSnapshotSchema,
|
|
32586
|
+
browser: HubAddressSnapshotSchema
|
|
32587
|
+
});
|
|
32588
|
+
/**
|
|
32589
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
32590
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
32591
|
+
* by at most one address.
|
|
32592
|
+
*/
|
|
32593
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
32594
|
+
var RoleSourceSchema = _enum([
|
|
32595
|
+
"flagged",
|
|
32596
|
+
"auto",
|
|
32597
|
+
"none"
|
|
32598
|
+
]);
|
|
32599
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
32600
|
+
var HubAddressRoleResolutionSchema = object({
|
|
32601
|
+
/** The address carrying the flag, or null = automatic. */
|
|
32602
|
+
flagged: string().nullable(),
|
|
32603
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
32604
|
+
resolved: string().nullable(),
|
|
32605
|
+
source: RoleSourceSchema
|
|
32606
|
+
});
|
|
32607
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
32608
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
32609
|
+
flagged: array(string()).readonly(),
|
|
32610
|
+
/** What the apps race right now. */
|
|
32611
|
+
resolved: array(string()).readonly(),
|
|
32612
|
+
source: RoleSourceSchema
|
|
32613
|
+
});
|
|
32614
|
+
var HubAddressBookSchema = object({
|
|
32615
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
32616
|
+
/** In the hub's detected palette right now. */
|
|
32617
|
+
detected: boolean(),
|
|
32618
|
+
/** Entered by the operator (removable). */
|
|
32619
|
+
custom: boolean(),
|
|
32620
|
+
/** The roles explicitly flagged on this address. */
|
|
32621
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
32622
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
32623
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
32624
|
+
/** The roles this address may be flagged with. */
|
|
32625
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
32626
|
+
})).readonly(),
|
|
32627
|
+
roles: object({
|
|
32628
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
32629
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
32630
|
+
internal: HubAddressRoleResolutionSchema,
|
|
32631
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
32632
|
+
}),
|
|
32633
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
32634
|
+
appLinkHub: string().nullable()
|
|
32635
|
+
});
|
|
32169
32636
|
var AllowedAddressesSchema = object({
|
|
32170
32637
|
/**
|
|
32171
32638
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -32207,8 +32674,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
32207
32674
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
32208
32675
|
* to avoid mixed-content blocks in the browser. The public
|
|
32209
32676
|
* tunnel always emits `https://` regardless. */
|
|
32210
|
-
scheme: _enum(["http", "https"]).optional()
|
|
32211
|
-
|
|
32677
|
+
scheme: _enum(["http", "https"]).optional(),
|
|
32678
|
+
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
32679
|
+
* an address notification taps can be flagged with, not a hub
|
|
32680
|
+
* route. Default `false`: racers and rankers never see it. */
|
|
32681
|
+
includeAppLink: boolean().optional()
|
|
32682
|
+
}), 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({
|
|
32683
|
+
baseUrl: string(),
|
|
32684
|
+
label: string().max(80)
|
|
32685
|
+
}), HubAddressBookSchema, {
|
|
32686
|
+
kind: "mutation",
|
|
32687
|
+
auth: "admin"
|
|
32688
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
32689
|
+
kind: "mutation",
|
|
32690
|
+
auth: "admin"
|
|
32691
|
+
}), method(object({
|
|
32692
|
+
role: HubAddressRoleSchema,
|
|
32693
|
+
baseUrl: string().nullable(),
|
|
32694
|
+
enabled: boolean(),
|
|
32695
|
+
acceptInsecureHttp: boolean().optional()
|
|
32696
|
+
}), HubAddressBookSchema, {
|
|
32697
|
+
kind: "mutation",
|
|
32698
|
+
auth: "admin"
|
|
32699
|
+
}), 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, {
|
|
32212
32700
|
kind: "mutation",
|
|
32213
32701
|
auth: "admin"
|
|
32214
32702
|
}), method(object({
|
|
@@ -32536,7 +33024,7 @@ var MeshPeerSchema = object({
|
|
|
32536
33024
|
tags: array(string()).readonly(),
|
|
32537
33025
|
/** True when the peer advertises itself as an exit-node candidate. */
|
|
32538
33026
|
exitNodeOption: boolean(),
|
|
32539
|
-
/** Subnet routes the peer advertises (e.g. `["192.168.
|
|
33027
|
+
/** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
|
|
32540
33028
|
advertisedRoutes: array(string()).readonly(),
|
|
32541
33029
|
/** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
|
|
32542
33030
|
userLogin: string().nullable(),
|
|
@@ -32666,7 +33154,8 @@ var MotionStatusSchema = object({
|
|
|
32666
33154
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32667
33155
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32668
33156
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32669
|
-
* A provider's `isDetected`
|
|
33157
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
33158
|
+
* (`hubMotionNativeProvider`).
|
|
32670
33159
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32671
33160
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32672
33161
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -33864,7 +34353,13 @@ var OsdStatusSchema = object({ overlays: array(object({
|
|
|
33864
34353
|
*/
|
|
33865
34354
|
availablePositions: array(OsdPositionEnum).readonly(),
|
|
33866
34355
|
/** Firmware does not allow editing the `text` field (e.g. timestamp). */
|
|
33867
|
-
readOnly: boolean().optional()
|
|
34356
|
+
readOnly: boolean().optional(),
|
|
34357
|
+
/**
|
|
34358
|
+
* Firmware text ceiling for this overlay. Absent = no known limit.
|
|
34359
|
+
* The OSD manager truncates here on every write — never stores its own
|
|
34360
|
+
* copy on the binding.
|
|
34361
|
+
*/
|
|
34362
|
+
maxCharacters: number().int().positive().optional()
|
|
33868
34363
|
})).readonly() });
|
|
33869
34364
|
var OsdOverlayPatchSchema = object({
|
|
33870
34365
|
enabled: boolean().optional(),
|
|
@@ -33915,7 +34410,9 @@ var OsdTemplateBindingSchema = object({
|
|
|
33915
34410
|
valuePath: string().min(1).max(64),
|
|
33916
34411
|
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
33917
34412
|
displayUnit: string().max(16).optional(),
|
|
33918
|
-
maxDecimals: number().int().min(0).max(4).default(1)
|
|
34413
|
+
maxDecimals: number().int().min(0).max(4).default(1),
|
|
34414
|
+
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
34415
|
+
valueMap: record(string(), string()).optional()
|
|
33919
34416
|
});
|
|
33920
34417
|
/**
|
|
33921
34418
|
* A named template: bindings (alias → leaf field) + a parser that
|
|
@@ -33965,18 +34462,11 @@ var OsdSlotBindingSchema = object({
|
|
|
33965
34462
|
source: OsdSourceSchema,
|
|
33966
34463
|
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
33967
34464
|
template: string().max(96).default("${value}"),
|
|
33968
|
-
/** Truncate with an ellipsis past this length. Absent = no limit. */
|
|
33969
|
-
maxCharacters: number().int().min(4).max(64).optional(),
|
|
33970
34465
|
/**
|
|
33971
34466
|
* Decimal places for a numeric value. `0` yields an integer — the
|
|
33972
34467
|
* documented workaround for firmwares that reject `.` in overlay text.
|
|
33973
34468
|
*/
|
|
33974
34469
|
maxDecimals: number().int().min(0).max(4).default(1),
|
|
33975
|
-
/**
|
|
33976
|
-
* Appended via `${unit}` when no unit conversion produces a label.
|
|
33977
|
-
* Prefer `source.displayUnit` for converted device-state values.
|
|
33978
|
-
*/
|
|
33979
|
-
unitLabel: string().max(8).optional(),
|
|
33980
34470
|
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
33981
34471
|
valueMap: record(string(), string()).optional(),
|
|
33982
34472
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
@@ -33985,9 +34475,7 @@ var OsdSlotBindingSchema = object({
|
|
|
33985
34475
|
* Display gate, in the notification centre's condition vocabulary.
|
|
33986
34476
|
* Only the keys reported by `getConditionSupport` are accepted.
|
|
33987
34477
|
*/
|
|
33988
|
-
conditions: NcConditionsSchema.optional()
|
|
33989
|
-
/** Rendered when the gate is closed or the value unreadable. Empty = hide. */
|
|
33990
|
-
fallbackText: string().max(64).default("")
|
|
34478
|
+
conditions: NcConditionsSchema.optional()
|
|
33991
34479
|
});
|
|
33992
34480
|
/** One camera slot, as the operator sees it: firmware truth + our binding. */
|
|
33993
34481
|
var OsdSlotViewSchema = object({
|
|
@@ -39214,6 +39702,16 @@ var zoneRulesCapability = {
|
|
|
39214
39702
|
durability: "restored"
|
|
39215
39703
|
};
|
|
39216
39704
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
39705
|
+
Object.freeze({
|
|
39706
|
+
person: .5,
|
|
39707
|
+
vehicle: .5,
|
|
39708
|
+
animal: .5
|
|
39709
|
+
});
|
|
39710
|
+
Object.freeze({
|
|
39711
|
+
person: .65,
|
|
39712
|
+
vehicle: .65,
|
|
39713
|
+
animal: .65
|
|
39714
|
+
});
|
|
39217
39715
|
/**
|
|
39218
39716
|
* Accessory device helpers — shared across drivers.
|
|
39219
39717
|
*
|
|
@@ -42094,90 +42592,18 @@ Object.freeze({
|
|
|
42094
42592
|
addonId: null,
|
|
42095
42593
|
access: "create"
|
|
42096
42594
|
},
|
|
42097
|
-
"decoder.createSession": {
|
|
42098
|
-
capName: "decoder",
|
|
42099
|
-
capScope: "system",
|
|
42100
|
-
addonId: null,
|
|
42101
|
-
access: "view"
|
|
42102
|
-
},
|
|
42103
|
-
"decoder.destroySession": {
|
|
42104
|
-
capName: "decoder",
|
|
42105
|
-
capScope: "system",
|
|
42106
|
-
addonId: null,
|
|
42107
|
-
access: "delete"
|
|
42108
|
-
},
|
|
42109
|
-
"decoder.getFrame": {
|
|
42110
|
-
capName: "decoder",
|
|
42111
|
-
capScope: "system",
|
|
42112
|
-
addonId: null,
|
|
42113
|
-
access: "view"
|
|
42114
|
-
},
|
|
42115
42595
|
"decoder.getInfo": {
|
|
42116
42596
|
capName: "decoder",
|
|
42117
42597
|
capScope: "system",
|
|
42118
42598
|
addonId: null,
|
|
42119
42599
|
access: "view"
|
|
42120
42600
|
},
|
|
42121
|
-
"decoder.getShmStats": {
|
|
42122
|
-
capName: "decoder",
|
|
42123
|
-
capScope: "system",
|
|
42124
|
-
addonId: null,
|
|
42125
|
-
access: "view"
|
|
42126
|
-
},
|
|
42127
|
-
"decoder.getStats": {
|
|
42128
|
-
capName: "decoder",
|
|
42129
|
-
capScope: "system",
|
|
42130
|
-
addonId: null,
|
|
42131
|
-
access: "view"
|
|
42132
|
-
},
|
|
42133
|
-
"decoder.listActiveSessions": {
|
|
42134
|
-
capName: "decoder",
|
|
42135
|
-
capScope: "system",
|
|
42136
|
-
addonId: null,
|
|
42137
|
-
access: "view"
|
|
42138
|
-
},
|
|
42139
|
-
"decoder.openStream": {
|
|
42140
|
-
capName: "decoder",
|
|
42141
|
-
capScope: "system",
|
|
42142
|
-
addonId: null,
|
|
42143
|
-
access: "view"
|
|
42144
|
-
},
|
|
42145
|
-
"decoder.pullFrames": {
|
|
42146
|
-
capName: "decoder",
|
|
42147
|
-
capScope: "system",
|
|
42148
|
-
addonId: null,
|
|
42149
|
-
access: "view"
|
|
42150
|
-
},
|
|
42151
|
-
"decoder.pullHandles": {
|
|
42152
|
-
capName: "decoder",
|
|
42153
|
-
capScope: "system",
|
|
42154
|
-
addonId: null,
|
|
42155
|
-
access: "view"
|
|
42156
|
-
},
|
|
42157
|
-
"decoder.pushPacket": {
|
|
42158
|
-
capName: "decoder",
|
|
42159
|
-
capScope: "system",
|
|
42160
|
-
addonId: null,
|
|
42161
|
-
access: "view"
|
|
42162
|
-
},
|
|
42163
42601
|
"decoder.reprobeHwaccel": {
|
|
42164
42602
|
capName: "decoder",
|
|
42165
42603
|
capScope: "system",
|
|
42166
42604
|
addonId: null,
|
|
42167
42605
|
access: "create"
|
|
42168
42606
|
},
|
|
42169
|
-
"decoder.supportsCodec": {
|
|
42170
|
-
capName: "decoder",
|
|
42171
|
-
capScope: "system",
|
|
42172
|
-
addonId: null,
|
|
42173
|
-
access: "view"
|
|
42174
|
-
},
|
|
42175
|
-
"decoder.updateConfig": {
|
|
42176
|
-
capName: "decoder",
|
|
42177
|
-
capScope: "system",
|
|
42178
|
-
addonId: null,
|
|
42179
|
-
access: "view"
|
|
42180
|
-
},
|
|
42181
42607
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
42182
42608
|
capName: "detection-pipeline",
|
|
42183
42609
|
capScope: "device",
|
|
@@ -43666,12 +44092,24 @@ Object.freeze({
|
|
|
43666
44092
|
addonId: null,
|
|
43667
44093
|
access: "view"
|
|
43668
44094
|
},
|
|
44095
|
+
"localNetwork.addCustomAddress": {
|
|
44096
|
+
capName: "local-network",
|
|
44097
|
+
capScope: "system",
|
|
44098
|
+
addonId: null,
|
|
44099
|
+
access: "create"
|
|
44100
|
+
},
|
|
43669
44101
|
"localNetwork.downloadCa": {
|
|
43670
44102
|
capName: "local-network",
|
|
43671
44103
|
capScope: "system",
|
|
43672
44104
|
addonId: null,
|
|
43673
44105
|
access: "view"
|
|
43674
44106
|
},
|
|
44107
|
+
"localNetwork.getAddresses": {
|
|
44108
|
+
capName: "local-network",
|
|
44109
|
+
capScope: "system",
|
|
44110
|
+
addonId: null,
|
|
44111
|
+
access: "view"
|
|
44112
|
+
},
|
|
43675
44113
|
"localNetwork.getAllowedAddresses": {
|
|
43676
44114
|
capName: "local-network",
|
|
43677
44115
|
capScope: "system",
|
|
@@ -43684,6 +44122,12 @@ Object.freeze({
|
|
|
43684
44122
|
addonId: null,
|
|
43685
44123
|
access: "view"
|
|
43686
44124
|
},
|
|
44125
|
+
"localNetwork.getHubAddresses": {
|
|
44126
|
+
capName: "local-network",
|
|
44127
|
+
capScope: "system",
|
|
44128
|
+
addonId: null,
|
|
44129
|
+
access: "view"
|
|
44130
|
+
},
|
|
43687
44131
|
"localNetwork.getNotificationEndpoint": {
|
|
43688
44132
|
capName: "local-network",
|
|
43689
44133
|
capScope: "system",
|
|
@@ -43720,6 +44164,12 @@ Object.freeze({
|
|
|
43720
44164
|
addonId: null,
|
|
43721
44165
|
access: "create"
|
|
43722
44166
|
},
|
|
44167
|
+
"localNetwork.removeCustomAddress": {
|
|
44168
|
+
capName: "local-network",
|
|
44169
|
+
capScope: "system",
|
|
44170
|
+
addonId: null,
|
|
44171
|
+
access: "delete"
|
|
44172
|
+
},
|
|
43723
44173
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
43724
44174
|
capName: "local-network",
|
|
43725
44175
|
capScope: "system",
|
|
@@ -43732,6 +44182,12 @@ Object.freeze({
|
|
|
43732
44182
|
addonId: null,
|
|
43733
44183
|
access: "create"
|
|
43734
44184
|
},
|
|
44185
|
+
"localNetwork.setAddressRole": {
|
|
44186
|
+
capName: "local-network",
|
|
44187
|
+
capScope: "system",
|
|
44188
|
+
addonId: null,
|
|
44189
|
+
access: "create"
|
|
44190
|
+
},
|
|
43735
44191
|
"localNetwork.setAllowedAddresses": {
|
|
43736
44192
|
capName: "local-network",
|
|
43737
44193
|
capScope: "system",
|
|
@@ -45226,13 +45682,13 @@ Object.freeze({
|
|
|
45226
45682
|
addonId: null,
|
|
45227
45683
|
access: "delete"
|
|
45228
45684
|
},
|
|
45229
|
-
"pipelineExecutor.
|
|
45685
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
45230
45686
|
capName: "pipeline-executor",
|
|
45231
45687
|
capScope: "system",
|
|
45232
45688
|
addonId: null,
|
|
45233
45689
|
access: "delete"
|
|
45234
45690
|
},
|
|
45235
|
-
"pipelineExecutor.
|
|
45691
|
+
"pipelineExecutor.deleteModel": {
|
|
45236
45692
|
capName: "pipeline-executor",
|
|
45237
45693
|
capScope: "system",
|
|
45238
45694
|
addonId: null,
|
|
@@ -45376,12 +45832,6 @@ Object.freeze({
|
|
|
45376
45832
|
addonId: null,
|
|
45377
45833
|
access: "view"
|
|
45378
45834
|
},
|
|
45379
|
-
"pipelineExecutor.listTemplates": {
|
|
45380
|
-
capName: "pipeline-executor",
|
|
45381
|
-
capScope: "system",
|
|
45382
|
-
addonId: null,
|
|
45383
|
-
access: "view"
|
|
45384
|
-
},
|
|
45385
45835
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
45386
45836
|
capName: "pipeline-executor",
|
|
45387
45837
|
capScope: "system",
|
|
@@ -45406,12 +45856,6 @@ Object.freeze({
|
|
|
45406
45856
|
addonId: null,
|
|
45407
45857
|
access: "create"
|
|
45408
45858
|
},
|
|
45409
|
-
"pipelineExecutor.saveTemplate": {
|
|
45410
|
-
capName: "pipeline-executor",
|
|
45411
|
-
capScope: "system",
|
|
45412
|
-
addonId: null,
|
|
45413
|
-
access: "create"
|
|
45414
|
-
},
|
|
45415
45859
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
45416
45860
|
capName: "pipeline-executor",
|
|
45417
45861
|
capScope: "system",
|
|
@@ -45430,41 +45874,35 @@ Object.freeze({
|
|
|
45430
45874
|
addonId: null,
|
|
45431
45875
|
access: "create"
|
|
45432
45876
|
},
|
|
45433
|
-
"pipelineExecutor.updateTemplate": {
|
|
45434
|
-
capName: "pipeline-executor",
|
|
45435
|
-
capScope: "system",
|
|
45436
|
-
addonId: null,
|
|
45437
|
-
access: "create"
|
|
45438
|
-
},
|
|
45439
45877
|
"pipelineExecutor.validatePipeline": {
|
|
45440
45878
|
capName: "pipeline-executor",
|
|
45441
45879
|
capScope: "system",
|
|
45442
45880
|
addonId: null,
|
|
45443
45881
|
access: "view"
|
|
45444
45882
|
},
|
|
45445
|
-
"pipelineOrchestrator.
|
|
45883
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
45446
45884
|
capName: "pipeline-orchestrator",
|
|
45447
45885
|
capScope: "system",
|
|
45448
45886
|
addonId: null,
|
|
45449
45887
|
access: "create"
|
|
45450
45888
|
},
|
|
45451
|
-
"pipelineOrchestrator.
|
|
45889
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
45452
45890
|
capName: "pipeline-orchestrator",
|
|
45453
45891
|
capScope: "system",
|
|
45454
45892
|
addonId: null,
|
|
45455
45893
|
access: "create"
|
|
45456
45894
|
},
|
|
45457
|
-
"pipelineOrchestrator.
|
|
45895
|
+
"pipelineOrchestrator.assignAudio": {
|
|
45458
45896
|
capName: "pipeline-orchestrator",
|
|
45459
45897
|
capScope: "system",
|
|
45460
45898
|
addonId: null,
|
|
45461
45899
|
access: "create"
|
|
45462
45900
|
},
|
|
45463
|
-
"pipelineOrchestrator.
|
|
45901
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
45464
45902
|
capName: "pipeline-orchestrator",
|
|
45465
45903
|
capScope: "system",
|
|
45466
45904
|
addonId: null,
|
|
45467
|
-
access: "
|
|
45905
|
+
access: "create"
|
|
45468
45906
|
},
|
|
45469
45907
|
"pipelineOrchestrator.getAgentLoad": {
|
|
45470
45908
|
capName: "pipeline-orchestrator",
|
|
@@ -45556,6 +45994,12 @@ Object.freeze({
|
|
|
45556
45994
|
addonId: null,
|
|
45557
45995
|
access: "view"
|
|
45558
45996
|
},
|
|
45997
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
45998
|
+
capName: "pipeline-orchestrator",
|
|
45999
|
+
capScope: "system",
|
|
46000
|
+
addonId: null,
|
|
46001
|
+
access: "view"
|
|
46002
|
+
},
|
|
45559
46003
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
45560
46004
|
capName: "pipeline-orchestrator",
|
|
45561
46005
|
capScope: "system",
|
|
@@ -45592,19 +46036,19 @@ Object.freeze({
|
|
|
45592
46036
|
addonId: null,
|
|
45593
46037
|
access: "view"
|
|
45594
46038
|
},
|
|
45595
|
-
"pipelineOrchestrator.
|
|
46039
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
45596
46040
|
capName: "pipeline-orchestrator",
|
|
45597
46041
|
capScope: "system",
|
|
45598
46042
|
addonId: null,
|
|
45599
46043
|
access: "view"
|
|
45600
46044
|
},
|
|
45601
|
-
"pipelineOrchestrator.
|
|
46045
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
45602
46046
|
capName: "pipeline-orchestrator",
|
|
45603
46047
|
capScope: "system",
|
|
45604
46048
|
addonId: null,
|
|
45605
46049
|
access: "view"
|
|
45606
46050
|
},
|
|
45607
|
-
"pipelineOrchestrator.
|
|
46051
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
45608
46052
|
capName: "pipeline-orchestrator",
|
|
45609
46053
|
capScope: "system",
|
|
45610
46054
|
addonId: null,
|
|
@@ -45616,6 +46060,12 @@ Object.freeze({
|
|
|
45616
46060
|
addonId: null,
|
|
45617
46061
|
access: "create"
|
|
45618
46062
|
},
|
|
46063
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
46064
|
+
capName: "pipeline-orchestrator",
|
|
46065
|
+
capScope: "system",
|
|
46066
|
+
addonId: null,
|
|
46067
|
+
access: "view"
|
|
46068
|
+
},
|
|
45619
46069
|
"pipelineOrchestrator.rebalance": {
|
|
45620
46070
|
capName: "pipeline-orchestrator",
|
|
45621
46071
|
capScope: "system",
|
|
@@ -45658,12 +46108,6 @@ Object.freeze({
|
|
|
45658
46108
|
addonId: null,
|
|
45659
46109
|
access: "create"
|
|
45660
46110
|
},
|
|
45661
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
45662
|
-
capName: "pipeline-orchestrator",
|
|
45663
|
-
capScope: "system",
|
|
45664
|
-
addonId: null,
|
|
45665
|
-
access: "create"
|
|
45666
|
-
},
|
|
45667
46111
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
45668
46112
|
capName: "pipeline-orchestrator",
|
|
45669
46113
|
capScope: "system",
|
|
@@ -45676,12 +46120,6 @@ Object.freeze({
|
|
|
45676
46120
|
addonId: null,
|
|
45677
46121
|
access: "create"
|
|
45678
46122
|
},
|
|
45679
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
45680
|
-
capName: "pipeline-orchestrator",
|
|
45681
|
-
capScope: "system",
|
|
45682
|
-
addonId: null,
|
|
45683
|
-
access: "create"
|
|
45684
|
-
},
|
|
45685
46123
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
45686
46124
|
capName: "pipeline-orchestrator",
|
|
45687
46125
|
capScope: "system",
|
|
@@ -45718,6 +46156,12 @@ Object.freeze({
|
|
|
45718
46156
|
addonId: null,
|
|
45719
46157
|
access: "create"
|
|
45720
46158
|
},
|
|
46159
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
46160
|
+
capName: "pipeline-orchestrator",
|
|
46161
|
+
capScope: "system",
|
|
46162
|
+
addonId: null,
|
|
46163
|
+
access: "create"
|
|
46164
|
+
},
|
|
45721
46165
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
45722
46166
|
capName: "pipeline-orchestrator",
|
|
45723
46167
|
capScope: "system",
|
|
@@ -45736,25 +46180,37 @@ Object.freeze({
|
|
|
45736
46180
|
addonId: null,
|
|
45737
46181
|
access: "create"
|
|
45738
46182
|
},
|
|
46183
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
46184
|
+
capName: "pipeline-orchestrator",
|
|
46185
|
+
capScope: "system",
|
|
46186
|
+
addonId: null,
|
|
46187
|
+
access: "create"
|
|
46188
|
+
},
|
|
45739
46189
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
45740
46190
|
capName: "pipeline-orchestrator",
|
|
45741
46191
|
capScope: "system",
|
|
45742
46192
|
addonId: null,
|
|
45743
46193
|
access: "create"
|
|
45744
46194
|
},
|
|
45745
|
-
"pipelineOrchestrator.
|
|
46195
|
+
"pipelineOrchestrator.setShareSource": {
|
|
45746
46196
|
capName: "pipeline-orchestrator",
|
|
45747
46197
|
capScope: "system",
|
|
45748
46198
|
addonId: null,
|
|
45749
46199
|
access: "create"
|
|
45750
46200
|
},
|
|
45751
|
-
"pipelineOrchestrator.
|
|
46201
|
+
"pipelineOrchestrator.suggestShares": {
|
|
46202
|
+
capName: "pipeline-orchestrator",
|
|
46203
|
+
capScope: "system",
|
|
46204
|
+
addonId: null,
|
|
46205
|
+
access: "view"
|
|
46206
|
+
},
|
|
46207
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
45752
46208
|
capName: "pipeline-orchestrator",
|
|
45753
46209
|
capScope: "system",
|
|
45754
46210
|
addonId: null,
|
|
45755
46211
|
access: "create"
|
|
45756
46212
|
},
|
|
45757
|
-
"pipelineOrchestrator.
|
|
46213
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
45758
46214
|
capName: "pipeline-orchestrator",
|
|
45759
46215
|
capScope: "system",
|
|
45760
46216
|
addonId: null,
|
|
@@ -47194,12 +47650,6 @@ Object.freeze({
|
|
|
47194
47650
|
addonId: null,
|
|
47195
47651
|
access: "view"
|
|
47196
47652
|
},
|
|
47197
|
-
"streamBroker.pullFrameHandles": {
|
|
47198
|
-
capName: "stream-broker",
|
|
47199
|
-
capScope: "system",
|
|
47200
|
-
addonId: null,
|
|
47201
|
-
access: "view"
|
|
47202
|
-
},
|
|
47203
47653
|
"streamBroker.regenerateRtspToken": {
|
|
47204
47654
|
capName: "stream-broker",
|
|
47205
47655
|
capScope: "system",
|
|
@@ -47266,12 +47716,6 @@ Object.freeze({
|
|
|
47266
47716
|
addonId: null,
|
|
47267
47717
|
access: "create"
|
|
47268
47718
|
},
|
|
47269
|
-
"streamBroker.subscribeFrames": {
|
|
47270
|
-
capName: "stream-broker",
|
|
47271
|
-
capScope: "system",
|
|
47272
|
-
addonId: null,
|
|
47273
|
-
access: "create"
|
|
47274
|
-
},
|
|
47275
47719
|
"streamBroker.unassignProfile": {
|
|
47276
47720
|
capName: "stream-broker",
|
|
47277
47721
|
capScope: "system",
|
|
@@ -47284,12 +47728,6 @@ Object.freeze({
|
|
|
47284
47728
|
addonId: null,
|
|
47285
47729
|
access: "create"
|
|
47286
47730
|
},
|
|
47287
|
-
"streamBroker.unsubscribeFrames": {
|
|
47288
|
-
capName: "stream-broker",
|
|
47289
|
-
capScope: "system",
|
|
47290
|
-
addonId: null,
|
|
47291
|
-
access: "create"
|
|
47292
|
-
},
|
|
47293
47731
|
"streamCatalog.getCatalog": {
|
|
47294
47732
|
capName: "stream-catalog",
|
|
47295
47733
|
capScope: "device",
|
|
@@ -47986,6 +48424,12 @@ Object.freeze({
|
|
|
47986
48424
|
addonId: null,
|
|
47987
48425
|
access: "create"
|
|
47988
48426
|
},
|
|
48427
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
48428
|
+
capName: "webrtc-session",
|
|
48429
|
+
capScope: "device",
|
|
48430
|
+
addonId: null,
|
|
48431
|
+
access: "create"
|
|
48432
|
+
},
|
|
47989
48433
|
"webrtcSession.closeSession": {
|
|
47990
48434
|
capName: "webrtc-session",
|
|
47991
48435
|
capScope: "device",
|
|
@@ -49797,11 +50241,6 @@ Object.freeze({
|
|
|
49797
50241
|
form: "single",
|
|
49798
50242
|
optional: false
|
|
49799
50243
|
}],
|
|
49800
|
-
"decoder.createSession": [{
|
|
49801
|
-
name: "deviceId",
|
|
49802
|
-
form: "single",
|
|
49803
|
-
optional: true
|
|
49804
|
-
}],
|
|
49805
50244
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49806
50245
|
name: "deviceId",
|
|
49807
50246
|
form: "single",
|
|
@@ -51032,6 +51471,11 @@ Object.freeze({
|
|
|
51032
51471
|
form: "single",
|
|
51033
51472
|
optional: false
|
|
51034
51473
|
}],
|
|
51474
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
51475
|
+
name: "deviceIds",
|
|
51476
|
+
form: "array",
|
|
51477
|
+
optional: true
|
|
51478
|
+
}],
|
|
51035
51479
|
"pipelineExecutor.runPipeline": [{
|
|
51036
51480
|
name: "deviceId",
|
|
51037
51481
|
form: "single",
|
|
@@ -51137,6 +51581,11 @@ Object.freeze({
|
|
|
51137
51581
|
form: "single",
|
|
51138
51582
|
optional: false
|
|
51139
51583
|
}],
|
|
51584
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
51585
|
+
name: "deviceId",
|
|
51586
|
+
form: "single",
|
|
51587
|
+
optional: false
|
|
51588
|
+
}],
|
|
51140
51589
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
51141
51590
|
name: "deviceId",
|
|
51142
51591
|
form: "single",
|
|
@@ -51908,6 +52357,11 @@ Object.freeze({
|
|
|
51908
52357
|
form: "single",
|
|
51909
52358
|
optional: false
|
|
51910
52359
|
}],
|
|
52360
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
52361
|
+
name: "deviceId",
|
|
52362
|
+
form: "single",
|
|
52363
|
+
optional: false
|
|
52364
|
+
}],
|
|
51911
52365
|
"webrtcSession.closeSession": [{
|
|
51912
52366
|
name: "deviceId",
|
|
51913
52367
|
form: "single",
|
|
@@ -52137,6 +52591,8 @@ new Map(Object.entries({
|
|
|
52137
52591
|
"detection-blind": "device-events",
|
|
52138
52592
|
"node-online": "system",
|
|
52139
52593
|
"node-offline": "system",
|
|
52594
|
+
"node-restarting": "system",
|
|
52595
|
+
"node-updating": "system",
|
|
52140
52596
|
"node-inference-unavailable": "system",
|
|
52141
52597
|
"addon-crash-loop": "system",
|
|
52142
52598
|
"addon-update-available": "system",
|
|
@@ -52214,18 +52670,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52214
52670
|
kinds: [
|
|
52215
52671
|
"node-offline",
|
|
52216
52672
|
"node-online",
|
|
52673
|
+
"node-restarting",
|
|
52217
52674
|
"node-inference-unavailable"
|
|
52218
52675
|
]
|
|
52219
52676
|
},
|
|
52220
52677
|
{
|
|
52221
52678
|
id: "addons",
|
|
52222
52679
|
family: "system",
|
|
52223
|
-
label: "Addons",
|
|
52224
|
-
kinds: [
|
|
52225
|
-
|
|
52226
|
-
|
|
52227
|
-
|
|
52228
|
-
|
|
52680
|
+
label: "Addons stopped",
|
|
52681
|
+
kinds: ["addon-crash-loop"]
|
|
52682
|
+
},
|
|
52683
|
+
{
|
|
52684
|
+
id: "addon-updates",
|
|
52685
|
+
family: "system",
|
|
52686
|
+
label: "Addon updates",
|
|
52687
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52229
52688
|
},
|
|
52230
52689
|
{
|
|
52231
52690
|
id: "updates",
|
|
@@ -52233,6 +52692,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52233
52692
|
label: "Server & container updates",
|
|
52234
52693
|
kinds: [
|
|
52235
52694
|
"server-update-available",
|
|
52695
|
+
"node-updating",
|
|
52236
52696
|
"server-updated",
|
|
52237
52697
|
"wrapper-update-available"
|
|
52238
52698
|
]
|
|
@@ -52380,18 +52840,21 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52380
52840
|
kinds: [
|
|
52381
52841
|
"node-offline",
|
|
52382
52842
|
"node-online",
|
|
52843
|
+
"node-restarting",
|
|
52383
52844
|
"node-inference-unavailable"
|
|
52384
52845
|
]
|
|
52385
52846
|
},
|
|
52386
52847
|
{
|
|
52387
52848
|
name: "summaryAddons",
|
|
52388
|
-
label: "Summary: addons",
|
|
52389
|
-
example: "
|
|
52390
|
-
kinds: [
|
|
52391
|
-
|
|
52392
|
-
|
|
52393
|
-
|
|
52394
|
-
|
|
52849
|
+
label: "Summary: addons stopped",
|
|
52850
|
+
example: "hub — recorder stopped after repeated crashes",
|
|
52851
|
+
kinds: ["addon-crash-loop"]
|
|
52852
|
+
},
|
|
52853
|
+
{
|
|
52854
|
+
name: "summaryAddonUpdates",
|
|
52855
|
+
label: "Summary: addon updates",
|
|
52856
|
+
example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
|
|
52857
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52395
52858
|
},
|
|
52396
52859
|
{
|
|
52397
52860
|
name: "summaryUpdates",
|
|
@@ -52399,6 +52862,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52399
52862
|
example: "server 1.2.377 → 1.2.378",
|
|
52400
52863
|
kinds: [
|
|
52401
52864
|
"server-update-available",
|
|
52865
|
+
"node-updating",
|
|
52402
52866
|
"server-updated",
|
|
52403
52867
|
"wrapper-update-available"
|
|
52404
52868
|
]
|
|
@@ -52431,7 +52895,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52431
52895
|
{
|
|
52432
52896
|
name: "summarySection",
|
|
52433
52897
|
label: "Summary: this section",
|
|
52434
|
-
description: "The section a per-section summary row is about
|
|
52898
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
52435
52899
|
example: "Batterie scariche",
|
|
52436
52900
|
group: "system",
|
|
52437
52901
|
families: ["rule"],
|
|
@@ -52475,6 +52939,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52475
52939
|
[...RULE_BODY_ONLY],
|
|
52476
52940
|
[...RULE_TEXT],
|
|
52477
52941
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
52942
|
+
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
52478
52943
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
52479
52944
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
52480
52945
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
@@ -52515,6 +52980,8 @@ var STATE_SUMMARY_VARS = [
|
|
|
52515
52980
|
[...RULE_TEXT],
|
|
52516
52981
|
[...RULE_TEXT],
|
|
52517
52982
|
[...RULE_TEXT],
|
|
52983
|
+
[...RULE_TEXT],
|
|
52984
|
+
[...RULE_TEXT],
|
|
52518
52985
|
...STATE_SUMMARY_VARS
|
|
52519
52986
|
];
|
|
52520
52987
|
new Set([
|
|
@@ -53197,7 +53664,7 @@ function buildControllerFormSchema() {
|
|
|
53197
53664
|
key: "host",
|
|
53198
53665
|
label: "Controller host / IP",
|
|
53199
53666
|
required: true,
|
|
53200
|
-
placeholder: "192.168.
|
|
53667
|
+
placeholder: "192.168.10.1"
|
|
53201
53668
|
},
|
|
53202
53669
|
{
|
|
53203
53670
|
type: "number",
|