@camstack/addon-provider-velux 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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -499,15 +499,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
499
499
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
500
500
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
501
501
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
502
|
-
/**
|
|
503
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
504
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
505
|
-
* `createSession`, so running sessions keep their current backend until
|
|
506
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
507
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
508
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
509
|
-
*/
|
|
510
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
511
502
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
512
503
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
513
504
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -5378,7 +5369,7 @@ var ZodIssueCode = {
|
|
|
5378
5369
|
var ZodFirstPartyTypeKind;
|
|
5379
5370
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5380
5371
|
//#endregion
|
|
5381
|
-
//#region ../types/dist/sleep-
|
|
5372
|
+
//#region ../types/dist/sleep-BNeXenvr.mjs
|
|
5382
5373
|
/**
|
|
5383
5374
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5384
5375
|
* window to float samples (D455).
|
|
@@ -6744,32 +6735,12 @@ object({
|
|
|
6744
6735
|
audioCodec: string().optional(),
|
|
6745
6736
|
metadata: record(string(), unknown()).readonly().optional()
|
|
6746
6737
|
});
|
|
6747
|
-
var EncodedPacketSchema = object({
|
|
6748
|
-
type: _enum(["video", "audio"]),
|
|
6749
|
-
data: _instanceof(Uint8Array),
|
|
6750
|
-
pts: number(),
|
|
6751
|
-
dts: number(),
|
|
6752
|
-
keyframe: boolean(),
|
|
6753
|
-
codec: string()
|
|
6754
|
-
});
|
|
6755
|
-
var DecodedFrameSchema = object({
|
|
6756
|
-
data: _instanceof(Uint8Array),
|
|
6757
|
-
width: number(),
|
|
6758
|
-
height: number(),
|
|
6759
|
-
format: _enum([
|
|
6760
|
-
"jpeg",
|
|
6761
|
-
"rgb",
|
|
6762
|
-
"bgr",
|
|
6763
|
-
"yuv420",
|
|
6764
|
-
"gray"
|
|
6765
|
-
]),
|
|
6766
|
-
timestamp: number()
|
|
6767
|
-
});
|
|
6768
6738
|
/**
|
|
6769
6739
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
6770
6740
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
6771
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
6772
|
-
*
|
|
6741
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
6742
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
6743
|
+
* over tRPC / Moleculer.
|
|
6773
6744
|
*
|
|
6774
6745
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
6775
6746
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -6795,50 +6766,6 @@ var FrameHandleSchema = object({
|
|
|
6795
6766
|
slotCount: number().int().positive()
|
|
6796
6767
|
});
|
|
6797
6768
|
/**
|
|
6798
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
6799
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
6800
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
6801
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
6802
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
6803
|
-
*/
|
|
6804
|
-
var FrameHandleFormatSchema = _enum([
|
|
6805
|
-
"rgb",
|
|
6806
|
-
"bgr",
|
|
6807
|
-
"yuv420",
|
|
6808
|
-
"gray"
|
|
6809
|
-
]);
|
|
6810
|
-
/**
|
|
6811
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
6812
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
6813
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
6814
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
6815
|
-
* they asked for with no broker-side conversion.
|
|
6816
|
-
*/
|
|
6817
|
-
var SubscribeFramesInputSchema = object({
|
|
6818
|
-
brokerId: string(),
|
|
6819
|
-
format: FrameHandleFormatSchema,
|
|
6820
|
-
/**
|
|
6821
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
6822
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
6823
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
6824
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
6825
|
-
*/
|
|
6826
|
-
maxFps: number().positive().optional(),
|
|
6827
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
6828
|
-
tag: string().optional()
|
|
6829
|
-
});
|
|
6830
|
-
/**
|
|
6831
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
6832
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
6833
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
6834
|
-
*/
|
|
6835
|
-
var SubscribeFramesResultSchema = object({
|
|
6836
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
6837
|
-
subscriptionId: string(),
|
|
6838
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
6839
|
-
maxFps: number().nonnegative()
|
|
6840
|
-
});
|
|
6841
|
-
/**
|
|
6842
6769
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
6843
6770
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
6844
6771
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -6846,8 +6773,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
6846
6773
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
6847
6774
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
6848
6775
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
6849
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
6850
|
-
*
|
|
6776
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
6777
|
+
* it.
|
|
6851
6778
|
*/
|
|
6852
6779
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
6853
6780
|
var DecodedAudioChunkSchema = object({
|
|
@@ -6865,11 +6792,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
6865
6792
|
format: AudioChunkFormatSchema.optional()
|
|
6866
6793
|
});
|
|
6867
6794
|
/**
|
|
6868
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
6869
|
-
*
|
|
6870
|
-
*
|
|
6871
|
-
*
|
|
6872
|
-
* `pullAudioChunks`.
|
|
6795
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
6796
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
6797
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
6798
|
+
* the consumer drains via `pullAudioChunks`.
|
|
6873
6799
|
*/
|
|
6874
6800
|
var SubscribeAudioChunksInputSchema = object({
|
|
6875
6801
|
brokerId: string(),
|
|
@@ -6900,9 +6826,7 @@ var BrokerStatsSchema = object({
|
|
|
6900
6826
|
"stopped"
|
|
6901
6827
|
]),
|
|
6902
6828
|
inputFps: number(),
|
|
6903
|
-
decodeFps: number(),
|
|
6904
6829
|
encodedSubscribers: number(),
|
|
6905
|
-
decodedSubscribers: number(),
|
|
6906
6830
|
uptimeMs: number(),
|
|
6907
6831
|
bitrateKbps: number(),
|
|
6908
6832
|
idrIntervalMs: number(),
|
|
@@ -6915,14 +6839,6 @@ var BrokerStatsSchema = object({
|
|
|
6915
6839
|
preBufferMs: number(),
|
|
6916
6840
|
preBufferPackets: number(),
|
|
6917
6841
|
/**
|
|
6918
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
6919
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
6920
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
6921
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
6922
|
-
* a separate cap call per broker.
|
|
6923
|
-
*/
|
|
6924
|
-
decoderNodeId: string().nullable(),
|
|
6925
|
-
/**
|
|
6926
6842
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
6927
6843
|
* when the stream has no audio track or the broker is in cold start.
|
|
6928
6844
|
* `supported = false` means the codec was detected but the local
|
|
@@ -10258,70 +10174,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
10258
10174
|
"backup"
|
|
10259
10175
|
]).optional()
|
|
10260
10176
|
});
|
|
10261
|
-
var DecoderStatsSchema = object({
|
|
10262
|
-
inputFps: number(),
|
|
10263
|
-
outputFps: number(),
|
|
10264
|
-
avgDecodeTimeMs: number(),
|
|
10265
|
-
droppedFrames: number(),
|
|
10266
|
-
/**
|
|
10267
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
10268
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
10269
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
10270
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
10271
|
-
*/
|
|
10272
|
-
lagMs: number().optional(),
|
|
10273
|
-
effectiveFps: number().optional(),
|
|
10274
|
-
adaptiveFps: number().optional()
|
|
10275
|
-
});
|
|
10276
|
-
var DecoderSessionConfigSchema = object({
|
|
10277
|
-
codec: string(),
|
|
10278
|
-
maxFps: number().default(0),
|
|
10279
|
-
outputFormat: _enum([
|
|
10280
|
-
"jpeg",
|
|
10281
|
-
"rgb",
|
|
10282
|
-
"bgr",
|
|
10283
|
-
"yuv420",
|
|
10284
|
-
"gray"
|
|
10285
|
-
]).default("jpeg"),
|
|
10286
|
-
scale: number().default(1),
|
|
10287
|
-
width: number().optional(),
|
|
10288
|
-
height: number().optional(),
|
|
10289
|
-
/**
|
|
10290
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
10291
|
-
* because the cap is generic (any caller could request decode), but
|
|
10292
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
10293
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
10294
|
-
* sendPacket errors on a single hung camera).
|
|
10295
|
-
*/
|
|
10296
|
-
deviceId: number().int().nonnegative().optional(),
|
|
10297
|
-
/**
|
|
10298
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
10299
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
10300
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
10301
|
-
* profile cleanly.
|
|
10302
|
-
*/
|
|
10303
|
-
tag: string().optional(),
|
|
10304
|
-
/**
|
|
10305
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
10306
|
-
*
|
|
10307
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
10308
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
10309
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
10310
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
10311
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
10312
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
10313
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
10314
|
-
*/
|
|
10315
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
10316
|
-
/**
|
|
10317
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
10318
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
10319
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
10320
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
10321
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
10322
|
-
*/
|
|
10323
|
-
debug: boolean().optional()
|
|
10324
|
-
});
|
|
10325
10177
|
/**
|
|
10326
10178
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
10327
10179
|
* an addon declares its channels in.
|
|
@@ -10464,6 +10316,26 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10464
10316
|
"balanced",
|
|
10465
10317
|
"strict"
|
|
10466
10318
|
]);
|
|
10319
|
+
/** Steps whose effect a root label can BE. */
|
|
10320
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10321
|
+
"animal-classifier",
|
|
10322
|
+
"vehicle-classifier",
|
|
10323
|
+
"package-detection"
|
|
10324
|
+
];
|
|
10325
|
+
/** Steps whose box a root detection can BE. */
|
|
10326
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10327
|
+
/**
|
|
10328
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
10329
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
10330
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
10331
|
+
* no camera tree carries.)
|
|
10332
|
+
*/
|
|
10333
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
10334
|
+
[
|
|
10335
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
10336
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
10337
|
+
...MASK_SUPPLY_STEP_IDS
|
|
10338
|
+
];
|
|
10467
10339
|
var MODEL_FORMATS = [
|
|
10468
10340
|
"onnx",
|
|
10469
10341
|
"coreml",
|
|
@@ -10492,7 +10364,53 @@ var ModelFormatEntrySchema = object({
|
|
|
10492
10364
|
/** Multi-file payload (directory members or sibling files). */
|
|
10493
10365
|
files: array(string()).readonly().optional(),
|
|
10494
10366
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
10495
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
10367
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
10368
|
+
/**
|
|
10369
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
10370
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
10371
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
10372
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
10373
|
+
* node records the revision it downloaded next to the file
|
|
10374
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
10375
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
10376
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
10377
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
10378
|
+
*/
|
|
10379
|
+
revision: string().min(1).optional()
|
|
10380
|
+
});
|
|
10381
|
+
/**
|
|
10382
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
10383
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
10384
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
10385
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
10386
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
10387
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
10388
|
+
*/
|
|
10389
|
+
var ModelOnDiskStateSchema = _enum([
|
|
10390
|
+
"current",
|
|
10391
|
+
"stale",
|
|
10392
|
+
"missing"
|
|
10393
|
+
]);
|
|
10394
|
+
/**
|
|
10395
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
10396
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
10397
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
10398
|
+
*/
|
|
10399
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
10400
|
+
"fp32",
|
|
10401
|
+
"fp16",
|
|
10402
|
+
"int8"
|
|
10403
|
+
]);
|
|
10404
|
+
/**
|
|
10405
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
10406
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
10407
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
10408
|
+
*/
|
|
10409
|
+
var PipelineModelFormatStatusSchema = object({
|
|
10410
|
+
downloaded: boolean(),
|
|
10411
|
+
sizeMB: number(),
|
|
10412
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
10413
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
10496
10414
|
});
|
|
10497
10415
|
/**
|
|
10498
10416
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -10533,11 +10451,11 @@ var ModelVariantGroupSchema = object({
|
|
|
10533
10451
|
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
10534
10452
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
10535
10453
|
/**
|
|
10536
|
-
*
|
|
10537
|
-
*
|
|
10538
|
-
*
|
|
10454
|
+
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
10455
|
+
* an alternate training of the same family (Scrypted `relu_test`); chip
|
|
10456
|
+
* label is "Test".
|
|
10539
10457
|
*/
|
|
10540
|
-
optimization: _enum(["standard", "
|
|
10458
|
+
optimization: _enum(["standard", "test"]).optional(),
|
|
10541
10459
|
/**
|
|
10542
10460
|
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
10543
10461
|
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
@@ -10560,9 +10478,10 @@ var ModelProviderIdSchema = _enum([
|
|
|
10560
10478
|
* are per upstream. A persisted custom-model row written when this field was a
|
|
10561
10479
|
* string still parses — the string is lifted into `{ weights }`.
|
|
10562
10480
|
*
|
|
10563
|
-
* Every licence surface (the
|
|
10564
|
-
*
|
|
10565
|
-
*
|
|
10481
|
+
* Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
|
|
10482
|
+
* model table) is GENERATED from these records by
|
|
10483
|
+
* `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
|
|
10484
|
+
* `camstack/docs` → `/docs/detection/models`.
|
|
10566
10485
|
*/
|
|
10567
10486
|
var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
|
|
10568
10487
|
/** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
|
|
@@ -10595,6 +10514,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10595
10514
|
/** True when the weights or their data forbid commercial use. */
|
|
10596
10515
|
nonCommercial: boolean().optional()
|
|
10597
10516
|
}));
|
|
10517
|
+
/**
|
|
10518
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10519
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10520
|
+
*
|
|
10521
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10522
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10523
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10524
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10525
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10526
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10527
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
10528
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
10529
|
+
* detection in the shape that step produces. Derived from the model's
|
|
10530
|
+
* postprocessor on read, never stored by an import.
|
|
10531
|
+
*/
|
|
10532
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
10533
|
+
object({
|
|
10534
|
+
kind: literal("label"),
|
|
10535
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10536
|
+
labelToEffect: record(string(), string()),
|
|
10537
|
+
uncovered: array(string()).readonly()
|
|
10538
|
+
}),
|
|
10539
|
+
object({
|
|
10540
|
+
kind: literal("crop"),
|
|
10541
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10542
|
+
rootLabels: array(string()).readonly(),
|
|
10543
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10544
|
+
childClass: _enum(["plate", "face"]),
|
|
10545
|
+
/**
|
|
10546
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10547
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10548
|
+
* stored by an import.
|
|
10549
|
+
*/
|
|
10550
|
+
rootInputPx: number().int().positive().optional()
|
|
10551
|
+
}),
|
|
10552
|
+
object({
|
|
10553
|
+
kind: literal("mask"),
|
|
10554
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
10555
|
+
})
|
|
10556
|
+
]);
|
|
10598
10557
|
var ModelCatalogEntrySchema = object({
|
|
10599
10558
|
id: string(),
|
|
10600
10559
|
name: string(),
|
|
@@ -10660,6 +10619,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
10660
10619
|
*/
|
|
10661
10620
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
10662
10621
|
/**
|
|
10622
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
10623
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
10624
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
10625
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
10626
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
10627
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
10628
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
10629
|
+
*/
|
|
10630
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10631
|
+
/**
|
|
10632
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
10633
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
10634
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
10635
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
10636
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
10637
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
10638
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
10639
|
+
*/
|
|
10640
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
10641
|
+
/**
|
|
10642
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
10643
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
10644
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
10645
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
10646
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
10647
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
10648
|
+
*/
|
|
10649
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10650
|
+
/**
|
|
10663
10651
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
10664
10652
|
* onto the canonical template) before this step runs, instead of a plain
|
|
10665
10653
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -10721,6 +10709,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
10721
10709
|
*/
|
|
10722
10710
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10723
10711
|
/**
|
|
10712
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10713
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10714
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10715
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10716
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10717
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10718
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10719
|
+
*/
|
|
10720
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10721
|
+
/**
|
|
10724
10722
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10725
10723
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
10726
10724
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -12322,13 +12320,6 @@ var BrokerRtspClientSchema = object({
|
|
|
12322
12320
|
lastRtpAt: number(),
|
|
12323
12321
|
bytesSent: number()
|
|
12324
12322
|
});
|
|
12325
|
-
var BrokerDecodedClientSchema = object({
|
|
12326
|
-
tag: string(),
|
|
12327
|
-
subscribedAt: number(),
|
|
12328
|
-
maxFps: number(),
|
|
12329
|
-
framesDelivered: number(),
|
|
12330
|
-
framesDropped: number()
|
|
12331
|
-
});
|
|
12332
12323
|
var BrokerAudioClientSchema = object({
|
|
12333
12324
|
tag: string(),
|
|
12334
12325
|
subscribedAt: number(),
|
|
@@ -12420,7 +12411,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
12420
12411
|
});
|
|
12421
12412
|
var BrokerClientsSchema = object({
|
|
12422
12413
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
12423
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
12424
12414
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
12425
12415
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
12426
12416
|
pipeClients: number(),
|
|
@@ -12789,11 +12779,7 @@ method(object({
|
|
|
12789
12779
|
auth: "admin"
|
|
12790
12780
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
12791
12781
|
brokerId: string(),
|
|
12792
|
-
channel: _enum([
|
|
12793
|
-
"rtsp",
|
|
12794
|
-
"decoded",
|
|
12795
|
-
"audio"
|
|
12796
|
-
]),
|
|
12782
|
+
channel: _enum(["rtsp", "audio"]),
|
|
12797
12783
|
handle: string()
|
|
12798
12784
|
}), object({ killed: boolean() }), {
|
|
12799
12785
|
kind: "mutation",
|
|
@@ -12828,10 +12814,7 @@ method(object({
|
|
|
12828
12814
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
12829
12815
|
subscriptionId: string(),
|
|
12830
12816
|
maxCount: number().int().positive().default(8)
|
|
12831
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
12832
|
-
subscriptionId: string(),
|
|
12833
|
-
maxCount: number().int().positive().default(4)
|
|
12834
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12817
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12835
12818
|
brokerId: string(),
|
|
12836
12819
|
seconds: number().min(0).max(30)
|
|
12837
12820
|
}), _void(), {
|
|
@@ -14090,54 +14073,12 @@ id: union([string(), number()]) }), {
|
|
|
14090
14073
|
kind: "mutation",
|
|
14091
14074
|
auth: "admin"
|
|
14092
14075
|
});
|
|
14093
|
-
|
|
14094
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14095
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14096
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14097
|
-
*/
|
|
14098
|
-
var ShmRingStatsSchema = object({
|
|
14099
|
-
sessionId: string(),
|
|
14100
|
-
slotCount: number().int(),
|
|
14101
|
-
slotByteLength: number().int(),
|
|
14102
|
-
segmentBytes: number().int(),
|
|
14103
|
-
budgetMb: number().int(),
|
|
14104
|
-
framesWritten: number().int(),
|
|
14105
|
-
getFrameHits: number().int(),
|
|
14106
|
-
getFrameMisses: number().int()
|
|
14107
|
-
});
|
|
14108
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14076
|
+
method(_void(), object({
|
|
14109
14077
|
id: string(),
|
|
14110
14078
|
name: string(),
|
|
14111
|
-
isPullMode: boolean().optional(),
|
|
14112
|
-
priority: number().optional(),
|
|
14113
14079
|
hwaccel: string().optional(),
|
|
14114
14080
|
probedBestHwaccel: string().optional()
|
|
14115
|
-
})), method(
|
|
14116
|
-
sessionId: string(),
|
|
14117
|
-
nodeId: string()
|
|
14118
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14119
|
-
sessionId: string(),
|
|
14120
|
-
packet: EncodedPacketSchema
|
|
14121
|
-
}), _void()), method(object({
|
|
14122
|
-
sessionId: string(),
|
|
14123
|
-
url: string()
|
|
14124
|
-
}), _void()), method(object({
|
|
14125
|
-
sessionId: string(),
|
|
14126
|
-
maxCount: number().default(1),
|
|
14127
|
-
waitMs: number().optional()
|
|
14128
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14129
|
-
sessionId: string(),
|
|
14130
|
-
maxCount: number().default(1),
|
|
14131
|
-
waitMs: number().optional()
|
|
14132
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14133
|
-
sessionId: string(),
|
|
14134
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14135
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14136
|
-
sessionId: string(),
|
|
14137
|
-
codec: string(),
|
|
14138
|
-
outputFormat: string(),
|
|
14139
|
-
createdAtMs: number()
|
|
14140
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14081
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14141
14082
|
kind: "mutation",
|
|
14142
14083
|
auth: "admin"
|
|
14143
14084
|
});
|
|
@@ -14193,7 +14134,7 @@ DeviceType.Camera;
|
|
|
14193
14134
|
* This matters here more than anywhere else in the repo, because every provider
|
|
14194
14135
|
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
14195
14136
|
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
14196
|
-
* and `http://admin:hunter2@192.168.
|
|
14137
|
+
* and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
|
|
14197
14138
|
* camera's own page will ask for its own login. That is correct, and pre-
|
|
14198
14139
|
* filling it is the operator's business, not ours.
|
|
14199
14140
|
*
|
|
@@ -16282,6 +16223,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
16282
16223
|
kind: "mutation",
|
|
16283
16224
|
auth: "admin"
|
|
16284
16225
|
});
|
|
16226
|
+
var HUB_ADDRESS_ROLES = [
|
|
16227
|
+
"appConnections",
|
|
16228
|
+
"notificationTaps",
|
|
16229
|
+
"internal",
|
|
16230
|
+
"publicEndpoint"
|
|
16231
|
+
];
|
|
16285
16232
|
/**
|
|
16286
16233
|
* Transport bounds for AI capability methods.
|
|
16287
16234
|
*
|
|
@@ -17478,7 +17425,7 @@ method(object({
|
|
|
17478
17425
|
timeoutMs: 6e5
|
|
17479
17426
|
});
|
|
17480
17427
|
method(object({
|
|
17481
|
-
|
|
17428
|
+
targetNodeId: string(),
|
|
17482
17429
|
modelId: string(),
|
|
17483
17430
|
format: _enum(MODEL_FORMATS),
|
|
17484
17431
|
entry: ModelCatalogEntrySchema
|
|
@@ -18884,6 +18831,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
18884
18831
|
"stream-offline",
|
|
18885
18832
|
"node-online",
|
|
18886
18833
|
"node-offline",
|
|
18834
|
+
"node-restarting",
|
|
18835
|
+
"node-updating",
|
|
18887
18836
|
"node-inference-unavailable",
|
|
18888
18837
|
"detection-blind",
|
|
18889
18838
|
"addon-crash-loop",
|
|
@@ -19982,8 +19931,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
19982
19931
|
disabledTargetIds: array(string()).default([])
|
|
19983
19932
|
});
|
|
19984
19933
|
/**
|
|
19985
|
-
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that
|
|
19986
|
-
* still-true state. `
|
|
19934
|
+
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
19935
|
+
* report a still-true state. `addons` is the crash-looped addons only and
|
|
19936
|
+
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
19987
19937
|
* job is not an open state, and the alarm stays instant.
|
|
19988
19938
|
*/
|
|
19989
19939
|
var NcStateSummarySectionIdSchema = _enum([
|
|
@@ -19995,6 +19945,7 @@ var NcStateSummarySectionIdSchema = _enum([
|
|
|
19995
19945
|
"detection-blind",
|
|
19996
19946
|
"nodes",
|
|
19997
19947
|
"addons",
|
|
19948
|
+
"addon-updates",
|
|
19998
19949
|
"updates"
|
|
19999
19950
|
]);
|
|
20000
19951
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
@@ -20475,7 +20426,25 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
20475
20426
|
* When this mode may be armed. Absent / null = always allowed (same as a
|
|
20476
20427
|
* rule with no `schedule`). Evaluated with {@link isScheduleActive}.
|
|
20477
20428
|
*/
|
|
20478
|
-
schedule: NcScheduleSchema.optional()
|
|
20429
|
+
schedule: NcScheduleSchema.optional(),
|
|
20430
|
+
/**
|
|
20431
|
+
* D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
|
|
20432
|
+
* intrusion naming the locations)? Absent = false — the entry-delay notification is the
|
|
20433
|
+
* only one, and the matches ride the triggered notification's mosaic (D705).
|
|
20434
|
+
*/
|
|
20435
|
+
notifyDuringEntryDelay: boolean().optional(),
|
|
20436
|
+
/**
|
|
20437
|
+
* D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
|
|
20438
|
+
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
20439
|
+
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
20440
|
+
*/
|
|
20441
|
+
notifySensorRewatched: boolean().optional(),
|
|
20442
|
+
/**
|
|
20443
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
20444
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
20445
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
20446
|
+
*/
|
|
20447
|
+
notifySensorIgnored: boolean().optional()
|
|
20479
20448
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20480
20449
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20481
20450
|
mode: AlarmArmModeSchema,
|
|
@@ -20484,7 +20453,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
20484
20453
|
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
|
|
20485
20454
|
postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
|
|
20486
20455
|
/** Set a schedule, or `null` to clear (mode always allowed again). */
|
|
20487
|
-
schedule: NcScheduleSchema.nullable().optional()
|
|
20456
|
+
schedule: NcScheduleSchema.nullable().optional(),
|
|
20457
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20458
|
+
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
20459
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20460
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
20461
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
20462
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
20488
20463
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20489
20464
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20490
20465
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -21445,45 +21420,25 @@ Object.freeze(Object.fromEntries([{
|
|
|
21445
21420
|
label: "Face recognition model",
|
|
21446
21421
|
defaultModelId: "auraface-r100",
|
|
21447
21422
|
indexName: "the enrolled face gallery",
|
|
21448
|
-
options: [
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
|
|
21452
|
-
},
|
|
21453
|
-
{
|
|
21454
|
-
id: "arcface-r100",
|
|
21455
|
-
label: "ArcFace (ResNet34)"
|
|
21456
|
-
},
|
|
21457
|
-
{
|
|
21458
|
-
id: "inception-resnet-v1",
|
|
21459
|
-
label: "Inception ResNet V1"
|
|
21460
|
-
}
|
|
21461
|
-
]
|
|
21423
|
+
options: [{
|
|
21424
|
+
id: "auraface-r100",
|
|
21425
|
+
label: "AuraFace R100"
|
|
21426
|
+
}]
|
|
21462
21427
|
}, {
|
|
21463
21428
|
stepId: "clip-embedding",
|
|
21464
21429
|
label: "Semantic search model",
|
|
21465
|
-
defaultModelId: "
|
|
21430
|
+
defaultModelId: "siglip2-b16-224",
|
|
21466
21431
|
indexName: "the object semantic-search index",
|
|
21467
|
-
options: [
|
|
21468
|
-
|
|
21469
|
-
|
|
21470
|
-
|
|
21471
|
-
},
|
|
21472
|
-
{
|
|
21473
|
-
id: "mobileclip-s2",
|
|
21474
|
-
label: "MobileCLIP S2"
|
|
21475
|
-
},
|
|
21476
|
-
{
|
|
21477
|
-
id: "siglip2-b16-224",
|
|
21478
|
-
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21479
|
-
}
|
|
21480
|
-
]
|
|
21432
|
+
options: [{
|
|
21433
|
+
id: "siglip2-b16-224",
|
|
21434
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21435
|
+
}]
|
|
21481
21436
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
21482
21437
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
21483
21438
|
stepId: "face-embedding",
|
|
21484
21439
|
key: "minLandmarkFaceSize",
|
|
21485
|
-
label: "Min face size
|
|
21486
|
-
description: "
|
|
21440
|
+
label: "Min face size to embed (detection-frame px)",
|
|
21441
|
+
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.",
|
|
21487
21442
|
type: "slider",
|
|
21488
21443
|
min: 0,
|
|
21489
21444
|
max: 64,
|
|
@@ -23403,6 +23358,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23403
23358
|
timestamp: number()
|
|
23404
23359
|
});
|
|
23405
23360
|
/**
|
|
23361
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
23362
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
23363
|
+
*/
|
|
23364
|
+
var SuppliedRootOutputSchema = object({
|
|
23365
|
+
stepId: string(),
|
|
23366
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
23367
|
+
modelId: string(),
|
|
23368
|
+
detections: array(object({
|
|
23369
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
23370
|
+
bbox: tuple([
|
|
23371
|
+
number(),
|
|
23372
|
+
number(),
|
|
23373
|
+
number(),
|
|
23374
|
+
number()
|
|
23375
|
+
]),
|
|
23376
|
+
score: number(),
|
|
23377
|
+
/**
|
|
23378
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
23379
|
+
* detector already re-found inside a root face box (D730), so its
|
|
23380
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
23381
|
+
*/
|
|
23382
|
+
landmarks: array(object({
|
|
23383
|
+
x: number(),
|
|
23384
|
+
y: number()
|
|
23385
|
+
})).optional()
|
|
23386
|
+
})).min(1)
|
|
23387
|
+
});
|
|
23388
|
+
/**
|
|
23406
23389
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23407
23390
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23408
23391
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -23450,7 +23433,7 @@ var FrameRefSchema = object({
|
|
|
23450
23433
|
timestamp: number(),
|
|
23451
23434
|
capturedAt: number().optional()
|
|
23452
23435
|
});
|
|
23453
|
-
var ModelFormatSchema$
|
|
23436
|
+
var ModelFormatSchema$2 = _enum([
|
|
23454
23437
|
"onnx",
|
|
23455
23438
|
"coreml",
|
|
23456
23439
|
"openvino",
|
|
@@ -23468,7 +23451,7 @@ var PipelineSlotSchema = _enum([
|
|
|
23468
23451
|
var PipelineEngineChoiceSchema = object({
|
|
23469
23452
|
runtime: literal("python"),
|
|
23470
23453
|
backend: string(),
|
|
23471
|
-
format: ModelFormatSchema$
|
|
23454
|
+
format: ModelFormatSchema$2,
|
|
23472
23455
|
device: string().optional()
|
|
23473
23456
|
});
|
|
23474
23457
|
/**
|
|
@@ -23507,32 +23490,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
23507
23490
|
group: string().optional(),
|
|
23508
23491
|
settings: record(string(), unknown()).optional()
|
|
23509
23492
|
}));
|
|
23510
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
23511
|
-
addonId: string(),
|
|
23512
|
-
enabled: boolean(),
|
|
23513
|
-
modelId: string(),
|
|
23514
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
23515
|
-
settings: record(string(), unknown()).optional()
|
|
23516
|
-
}));
|
|
23517
|
-
var PipelineTemplateSchema$1 = object({
|
|
23518
|
-
id: string(),
|
|
23519
|
-
name: string(),
|
|
23520
|
-
createdAt: string(),
|
|
23521
|
-
updatedAt: string(),
|
|
23522
|
-
engine: PipelineEngineChoiceSchema,
|
|
23523
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
23524
|
-
});
|
|
23525
23493
|
var PipelineModelOptionSchema = object({
|
|
23526
23494
|
id: string(),
|
|
23527
23495
|
name: string(),
|
|
23528
|
-
formats: record(string(),
|
|
23529
|
-
downloaded: boolean(),
|
|
23530
|
-
sizeMB: number()
|
|
23531
|
-
})),
|
|
23496
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
23532
23497
|
group: ModelVariantGroupSchema.optional(),
|
|
23533
23498
|
legacy: boolean().optional(),
|
|
23534
23499
|
provider: ModelProviderIdSchema.optional(),
|
|
23535
|
-
defaultConfidence: number().optional()
|
|
23500
|
+
defaultConfidence: number().optional(),
|
|
23501
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
23536
23502
|
});
|
|
23537
23503
|
var ConfigFieldBridge = custom();
|
|
23538
23504
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -23694,6 +23660,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23694
23660
|
}), {
|
|
23695
23661
|
kind: "mutation",
|
|
23696
23662
|
auth: "admin"
|
|
23663
|
+
}), method(object({
|
|
23664
|
+
nodeId: string(),
|
|
23665
|
+
deviceIds: array(number()).readonly().optional(),
|
|
23666
|
+
dryRun: boolean()
|
|
23667
|
+
}), object({
|
|
23668
|
+
entries: array(object({
|
|
23669
|
+
deviceId: number(),
|
|
23670
|
+
keys: array(string()).readonly()
|
|
23671
|
+
})).readonly(),
|
|
23672
|
+
refused: array(object({
|
|
23673
|
+
deviceId: number(),
|
|
23674
|
+
reason: string()
|
|
23675
|
+
})).readonly()
|
|
23676
|
+
}), {
|
|
23677
|
+
kind: "mutation",
|
|
23678
|
+
auth: "admin"
|
|
23697
23679
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
23698
23680
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
23699
23681
|
deviceKey: string(),
|
|
@@ -23719,22 +23701,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23719
23701
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
23720
23702
|
steps: array(PipelineStepInputSchema),
|
|
23721
23703
|
deviceKey: string().optional()
|
|
23722
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
23723
|
-
name: string(),
|
|
23724
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
23725
|
-
engine: PipelineEngineChoiceSchema
|
|
23726
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
23727
|
-
id: string(),
|
|
23728
|
-
name: string().optional(),
|
|
23729
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
23730
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23704
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23731
23705
|
addonId: string(),
|
|
23732
23706
|
modelId: string(),
|
|
23733
|
-
format: ModelFormatSchema$
|
|
23707
|
+
format: ModelFormatSchema$2
|
|
23734
23708
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
23735
23709
|
addonId: string(),
|
|
23736
23710
|
modelId: string(),
|
|
23737
|
-
format: ModelFormatSchema$
|
|
23711
|
+
format: ModelFormatSchema$2
|
|
23738
23712
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
23739
23713
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23740
23714
|
frame: FrameInputSchema.optional(),
|
|
@@ -23800,7 +23774,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23800
23774
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
23801
23775
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
23802
23776
|
*/
|
|
23803
|
-
replay: literal(true).optional()
|
|
23777
|
+
replay: literal(true).optional(),
|
|
23778
|
+
/**
|
|
23779
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
23780
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
23781
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
23782
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
23783
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
23784
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
23785
|
+
*/
|
|
23786
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
23804
23787
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
23805
23788
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23806
23789
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -23882,6 +23865,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23882
23865
|
filename: string().optional(),
|
|
23883
23866
|
settings: record(string(), unknown()).optional()
|
|
23884
23867
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
23868
|
+
/**
|
|
23869
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
23870
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
23871
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
23872
|
+
* schemas are what crosses the cap boundary.
|
|
23873
|
+
*/
|
|
23874
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
23875
|
+
/** The operator's range for it. */
|
|
23876
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
23877
|
+
min: 1,
|
|
23878
|
+
max: 8
|
|
23879
|
+
};
|
|
23880
|
+
var HardwareClassIdSchema = _enum([
|
|
23881
|
+
"intel-core-ultra",
|
|
23882
|
+
"intel-n-series",
|
|
23883
|
+
"apple-m-base",
|
|
23884
|
+
"apple-m-pro",
|
|
23885
|
+
"unknown"
|
|
23886
|
+
]);
|
|
23887
|
+
var AcceleratorKindSchema = _enum([
|
|
23888
|
+
"intel-npu",
|
|
23889
|
+
"intel-igpu",
|
|
23890
|
+
"x86-cpu",
|
|
23891
|
+
"arm-cpu",
|
|
23892
|
+
"apple-ane",
|
|
23893
|
+
"coral"
|
|
23894
|
+
]);
|
|
23895
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
23896
|
+
object({
|
|
23897
|
+
kind: literal("capacity"),
|
|
23898
|
+
sessions: number(),
|
|
23899
|
+
minSessions: number()
|
|
23900
|
+
}),
|
|
23901
|
+
object({
|
|
23902
|
+
kind: literal("tie-faster"),
|
|
23903
|
+
over: string(),
|
|
23904
|
+
recallDelta: number()
|
|
23905
|
+
}),
|
|
23906
|
+
object({
|
|
23907
|
+
kind: literal("stepped-down"),
|
|
23908
|
+
from: string(),
|
|
23909
|
+
to: string(),
|
|
23910
|
+
limitedBy: string()
|
|
23911
|
+
}),
|
|
23912
|
+
object({
|
|
23913
|
+
kind: literal("no-fit-lightest"),
|
|
23914
|
+
sessions: number(),
|
|
23915
|
+
minSessions: number()
|
|
23916
|
+
}),
|
|
23917
|
+
object({
|
|
23918
|
+
kind: literal("derived-latency"),
|
|
23919
|
+
modelId: string()
|
|
23920
|
+
}),
|
|
23921
|
+
object({ kind: literal("cpu-device") }),
|
|
23922
|
+
object({ kind: literal("coral-untouched") }),
|
|
23923
|
+
object({ kind: literal("device-disabled") }),
|
|
23924
|
+
object({ kind: literal("device-unavailable") }),
|
|
23925
|
+
object({ kind: literal("node-offline") }),
|
|
23926
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
23927
|
+
object({
|
|
23928
|
+
kind: literal("no-measured-data"),
|
|
23929
|
+
hardwareClass: HardwareClassIdSchema
|
|
23930
|
+
}),
|
|
23931
|
+
object({
|
|
23932
|
+
kind: literal("no-family-build"),
|
|
23933
|
+
format: ModelFormatSchema$1
|
|
23934
|
+
})
|
|
23935
|
+
]);
|
|
23936
|
+
var DeviceModelChoiceSchema = object({
|
|
23937
|
+
modelId: string(),
|
|
23938
|
+
p50Ms: number(),
|
|
23939
|
+
fps: number(),
|
|
23940
|
+
measured: boolean(),
|
|
23941
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
23942
|
+
capacitySessions: number(),
|
|
23943
|
+
personRecall: number()
|
|
23944
|
+
});
|
|
23945
|
+
var DeviceRecommendationSchema = object({
|
|
23946
|
+
deviceKey: string(),
|
|
23947
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
23948
|
+
enabled: boolean(),
|
|
23949
|
+
available: boolean(),
|
|
23950
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
23951
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23952
|
+
});
|
|
23953
|
+
var NodeRecommendationSchema = object({
|
|
23954
|
+
nodeId: string(),
|
|
23955
|
+
reachable: boolean(),
|
|
23956
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
23957
|
+
cpuModel: string().nullable(),
|
|
23958
|
+
skipped: boolean(),
|
|
23959
|
+
acceleratorModelId: string().nullable(),
|
|
23960
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
23961
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23962
|
+
});
|
|
23963
|
+
var ModelPinChangeSchema = object({
|
|
23964
|
+
stepId: string(),
|
|
23965
|
+
before: string().nullable(),
|
|
23966
|
+
after: string().nullable()
|
|
23967
|
+
});
|
|
23968
|
+
var NodeDeviceChangeSchema = object({
|
|
23969
|
+
nodeId: string(),
|
|
23970
|
+
deviceKey: string(),
|
|
23971
|
+
madeExplicit: boolean(),
|
|
23972
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
23973
|
+
thresholds: array(object({
|
|
23974
|
+
stepId: string(),
|
|
23975
|
+
keys: array(string()).readonly()
|
|
23976
|
+
})).readonly()
|
|
23977
|
+
});
|
|
23978
|
+
var CameraOverrideClearSchema = object({
|
|
23979
|
+
deviceId: number(),
|
|
23980
|
+
source: _enum(["step-override", "wholesale"]),
|
|
23981
|
+
nodeId: string(),
|
|
23982
|
+
deviceKey: string().nullable(),
|
|
23983
|
+
stepId: string(),
|
|
23984
|
+
modelIdBefore: string().nullable(),
|
|
23985
|
+
keys: array(string()).readonly()
|
|
23986
|
+
});
|
|
23987
|
+
var DetectorStoreClearSchema = object({
|
|
23988
|
+
deviceId: number(),
|
|
23989
|
+
keys: array(string()).readonly()
|
|
23990
|
+
});
|
|
23991
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
23992
|
+
object({
|
|
23993
|
+
kind: literal("detector-store-cluster-wide"),
|
|
23994
|
+
skippedNodes: array(string()).readonly()
|
|
23995
|
+
}),
|
|
23996
|
+
object({
|
|
23997
|
+
kind: literal("detector-store-unreadable"),
|
|
23998
|
+
error: string()
|
|
23999
|
+
}),
|
|
24000
|
+
object({
|
|
24001
|
+
kind: literal("coral-enabled"),
|
|
24002
|
+
nodeId: string(),
|
|
24003
|
+
deviceKey: string()
|
|
24004
|
+
})
|
|
24005
|
+
]);
|
|
24006
|
+
var AutoTuneOptionsSchema = object({
|
|
24007
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
24008
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24009
|
+
/**
|
|
24010
|
+
* The least number of parallel sessions every device must sustain at the
|
|
24011
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
24012
|
+
* that reaches it wins.
|
|
24013
|
+
*/
|
|
24014
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24015
|
+
});
|
|
24016
|
+
var AutoTunePlanSchema = object({
|
|
24017
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
24018
|
+
planHash: string(),
|
|
24019
|
+
family: literal("yolov9"),
|
|
24020
|
+
headroom: number(),
|
|
24021
|
+
minSessionsPerDevice: number(),
|
|
24022
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
24023
|
+
cameraFps: number(),
|
|
24024
|
+
generatedAt: number(),
|
|
24025
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
24026
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
24027
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
24028
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
24029
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
24030
|
+
});
|
|
24031
|
+
var AutoTuneApplyInputSchema = object({
|
|
24032
|
+
planHash: string(),
|
|
24033
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24034
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24035
|
+
});
|
|
24036
|
+
var AutoTunePhaseResultSchema = object({
|
|
24037
|
+
phase: _enum([
|
|
24038
|
+
"download",
|
|
24039
|
+
"camera-overrides",
|
|
24040
|
+
"detector-thresholds",
|
|
24041
|
+
"node-models",
|
|
24042
|
+
"redispatch"
|
|
24043
|
+
]),
|
|
24044
|
+
ok: boolean(),
|
|
24045
|
+
detail: string()
|
|
24046
|
+
});
|
|
24047
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
24048
|
+
object({
|
|
24049
|
+
kind: literal("applied"),
|
|
24050
|
+
planHash: string(),
|
|
24051
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24052
|
+
}),
|
|
24053
|
+
object({
|
|
24054
|
+
kind: literal("aborted"),
|
|
24055
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24056
|
+
}),
|
|
24057
|
+
object({
|
|
24058
|
+
kind: literal("stale"),
|
|
24059
|
+
plan: AutoTunePlanSchema
|
|
24060
|
+
}),
|
|
24061
|
+
object({
|
|
24062
|
+
kind: literal("refused"),
|
|
24063
|
+
reason: _enum(["apply-in-progress"])
|
|
24064
|
+
})
|
|
24065
|
+
]);
|
|
24066
|
+
/**
|
|
24067
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
24068
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
24069
|
+
* hardware share suggestion and the stale device pins.
|
|
24070
|
+
*/
|
|
24071
|
+
/**
|
|
24072
|
+
* How a new detection session picks its node and device.
|
|
24073
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
24074
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
24075
|
+
* weight only bites once a node already holds a session.
|
|
24076
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
24077
|
+
* full or drowning node yields to a free one (D748).
|
|
24078
|
+
*/
|
|
24079
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
24080
|
+
var LoadBalancingSharesInputSchema = object({
|
|
24081
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
24082
|
+
nodes: record(string(), number().positive()).default({}),
|
|
24083
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
24084
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
24085
|
+
});
|
|
24086
|
+
var PlacementStatsInputSchema = object({
|
|
24087
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
24088
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
24089
|
+
var PlacementDeviceStatsSchema = object({
|
|
24090
|
+
deviceKey: string(),
|
|
24091
|
+
/** Sessions running on this device now. */
|
|
24092
|
+
sessionsNow: number(),
|
|
24093
|
+
/** Sessions started on this device inside the window. */
|
|
24094
|
+
sessionsStarted: number(),
|
|
24095
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
24096
|
+
observedShare: number().nullable()
|
|
24097
|
+
});
|
|
24098
|
+
var PlacementNodeStatsSchema = object({
|
|
24099
|
+
nodeId: string(),
|
|
24100
|
+
sessionsNow: number(),
|
|
24101
|
+
sessionsStarted: number(),
|
|
24102
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
24103
|
+
observedShare: number().nullable(),
|
|
24104
|
+
/** Most sessions this node ran at once inside the window. */
|
|
24105
|
+
peakSessions: number(),
|
|
24106
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
24107
|
+
yieldsAway: number(),
|
|
24108
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
24109
|
+
});
|
|
24110
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
24111
|
+
var StaleDevicePinSchema = object({
|
|
24112
|
+
deviceId: number(),
|
|
24113
|
+
deviceKey: string(),
|
|
24114
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
24115
|
+
reason: _enum(["disabled", "absent"])
|
|
24116
|
+
});
|
|
24117
|
+
var PlacementStatsSchema = object({
|
|
24118
|
+
policy: SessionPlacementPolicySchema,
|
|
24119
|
+
windowMs: number(),
|
|
24120
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
24121
|
+
observedForMs: number(),
|
|
24122
|
+
sessionsNow: number(),
|
|
24123
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
24124
|
+
clusterPeakSessions: number(),
|
|
24125
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
24126
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
24127
|
+
});
|
|
24128
|
+
/**
|
|
24129
|
+
* Where an automatic share's capacity comes from (D755).
|
|
24130
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
24131
|
+
* the measured latency table for the node's hardware class.
|
|
24132
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
24133
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
24134
|
+
*/
|
|
24135
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
24136
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
24137
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
24138
|
+
var SuggestSharesInputSchema = object({
|
|
24139
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24140
|
+
/** Default `hardware`. */
|
|
24141
|
+
source: CapacitySourceSchema.default("hardware")
|
|
24142
|
+
});
|
|
24143
|
+
var SuggestedDeviceShareSchema = object({
|
|
24144
|
+
deviceKey: string(),
|
|
24145
|
+
/** Share of the node (0–100, rounded). */
|
|
24146
|
+
share: number(),
|
|
24147
|
+
modelId: string().nullable(),
|
|
24148
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
24149
|
+
fps: number().nullable(),
|
|
24150
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
24151
|
+
measured: boolean(),
|
|
24152
|
+
/**
|
|
24153
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
24154
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
24155
|
+
*/
|
|
24156
|
+
suggestedMaxSessions: number().nullable()
|
|
24157
|
+
});
|
|
24158
|
+
var SuggestedNodeShareSchema = object({
|
|
24159
|
+
nodeId: string(),
|
|
24160
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
24161
|
+
share: number().nullable(),
|
|
24162
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
24163
|
+
capacitySessions: number(),
|
|
24164
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
24165
|
+
skippedReason: string().nullable(),
|
|
24166
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
24167
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24168
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
24169
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
24170
|
+
});
|
|
24171
|
+
var SuggestSharesResultSchema = object({
|
|
24172
|
+
headroom: number(),
|
|
24173
|
+
/** The source asked for; each node says what it actually used. */
|
|
24174
|
+
source: CapacitySourceSchema,
|
|
24175
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
24176
|
+
cameraFps: number(),
|
|
24177
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
24178
|
+
minSessionsPerDevice: number(),
|
|
24179
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
24180
|
+
});
|
|
24181
|
+
/**
|
|
24182
|
+
* Where the node and device shares come from (D750, D755).
|
|
24183
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
24184
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
24185
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
24186
|
+
* switched on or off, or changes model. No load input.
|
|
24187
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
24188
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
24189
|
+
* - `manual` — the operator's stored sliders.
|
|
24190
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
24191
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
24192
|
+
*/
|
|
24193
|
+
var ShareSourceSchema = _enum([
|
|
24194
|
+
"hardware",
|
|
24195
|
+
"benchmark",
|
|
24196
|
+
"manual"
|
|
24197
|
+
]);
|
|
24198
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
24199
|
+
object({
|
|
24200
|
+
nodes: record(string(), number()),
|
|
24201
|
+
devices: record(string(), record(string(), number()))
|
|
24202
|
+
});
|
|
24203
|
+
var EffectiveDeviceShareSchema = object({
|
|
24204
|
+
deviceKey: string(),
|
|
24205
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
24206
|
+
eligible: boolean(),
|
|
24207
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
24208
|
+
configuredPct: number(),
|
|
24209
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
24210
|
+
effectivePct: number()
|
|
24211
|
+
});
|
|
24212
|
+
var EffectiveNodeShareSchema = object({
|
|
24213
|
+
nodeId: string(),
|
|
24214
|
+
eligible: boolean(),
|
|
24215
|
+
configuredPct: number(),
|
|
24216
|
+
effectivePct: number(),
|
|
24217
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
24218
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24219
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
24220
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
24221
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
24222
|
+
});
|
|
24223
|
+
var EffectiveSharesSchema = object({
|
|
24224
|
+
source: ShareSourceSchema,
|
|
24225
|
+
policy: SessionPlacementPolicySchema,
|
|
24226
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
24227
|
+
autoPending: boolean(),
|
|
24228
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
24229
|
+
computedAt: number().nullable(),
|
|
24230
|
+
/** What made the system recompute them last. */
|
|
24231
|
+
trigger: string().nullable(),
|
|
24232
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
24233
|
+
/** The relative weights the election reads (before eligibility). */
|
|
24234
|
+
nodeWeights: record(string(), number()),
|
|
24235
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
24236
|
+
});
|
|
23885
24237
|
object({
|
|
23886
24238
|
activeCameras: number(),
|
|
23887
24239
|
throttledCameras: number(),
|
|
@@ -24365,6 +24717,22 @@ var MotionSourceEnum = _enum([
|
|
|
24365
24717
|
"device-activity"
|
|
24366
24718
|
]);
|
|
24367
24719
|
/**
|
|
24720
|
+
* What opened an on-motion detection SESSION: the motion source that passed the
|
|
24721
|
+
* camera's `motionSources` gate, and what raised it (the camera itself, or a
|
|
24722
|
+
* sensor the operator attached — D672). `sensorName` is the attached sensor's
|
|
24723
|
+
* device name as the orchestrator's camera-sensors resolution last read it;
|
|
24724
|
+
* absent when unknown or when the camera itself triggered.
|
|
24725
|
+
*
|
|
24726
|
+
* Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
|
|
24727
|
+
* can say what started the session (D672 rule 11, amended 2026-10-06). The
|
|
24728
|
+
* runner never decides anything on it.
|
|
24729
|
+
*/
|
|
24730
|
+
var SessionTriggerSchema = object({
|
|
24731
|
+
source: MotionSourceEnum,
|
|
24732
|
+
triggeredBy: MotionTriggeredBySchema,
|
|
24733
|
+
sensorName: string().optional()
|
|
24734
|
+
});
|
|
24735
|
+
/**
|
|
24368
24736
|
* List of motion sources active on a camera. Empty array is valid:
|
|
24369
24737
|
* "no source" — happens for battery cams without firmware motion when
|
|
24370
24738
|
* the operator hasn't opted into the SW analyzer (would hold the
|
|
@@ -24616,6 +24984,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
24616
24984
|
*/
|
|
24617
24985
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
24618
24986
|
/**
|
|
24987
|
+
* What opened this attach, on a SESSION attach only (see
|
|
24988
|
+
* {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
|
|
24989
|
+
* standing attach, an occupancy burst, a re-dispatch with no motion event
|
|
24990
|
+
* behind it, and every attach from an orchestrator older than the field — the
|
|
24991
|
+
* runner then names no source on the phase event.
|
|
24992
|
+
*/
|
|
24993
|
+
sessionTrigger: SessionTriggerSchema.optional(),
|
|
24994
|
+
/**
|
|
24619
24995
|
* WHICH root detector runs for this camera. The detection counterpart of
|
|
24620
24996
|
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
24621
24997
|
* of sources the system understands, vendor-agnostic, owned here.
|
|
@@ -24775,14 +25151,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24775
25151
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
24776
25152
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
24777
25153
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
24778
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
24779
|
-
* per
|
|
25154
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
25155
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
25156
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
25157
|
+
* (D762).
|
|
24780
25158
|
*/
|
|
24781
25159
|
devices: array(object({
|
|
24782
25160
|
deviceKey: string(),
|
|
24783
25161
|
backend: string(),
|
|
24784
|
-
attachedCameras: number()
|
|
24785
|
-
queueDepthTotal: number()
|
|
25162
|
+
attachedCameras: number()
|
|
24786
25163
|
})).default([]),
|
|
24787
25164
|
/** Hardware capability flags reported by this node. */
|
|
24788
25165
|
hardware: object({
|
|
@@ -24918,7 +25295,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
24918
25295
|
*/
|
|
24919
25296
|
cropJpeg: string().optional(),
|
|
24920
25297
|
parent: DetailParentSchema,
|
|
24921
|
-
steps: array(string()).optional()
|
|
25298
|
+
steps: array(string()).optional(),
|
|
25299
|
+
/**
|
|
25300
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25301
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25302
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25303
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25304
|
+
* requested step infers as before.
|
|
25305
|
+
*/
|
|
25306
|
+
supplied: object({
|
|
25307
|
+
stepId: string(),
|
|
25308
|
+
modelId: string(),
|
|
25309
|
+
boxes: array(object({
|
|
25310
|
+
bbox: NativeCropBboxSchema,
|
|
25311
|
+
score: number()
|
|
25312
|
+
})).min(1)
|
|
25313
|
+
}).optional()
|
|
24922
25314
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
24923
25315
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
24924
25316
|
stepId: string(),
|
|
@@ -24981,14 +25373,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
24981
25373
|
settings: record(string(), unknown()).readonly().optional()
|
|
24982
25374
|
}).nullable().optional()
|
|
24983
25375
|
});
|
|
24984
|
-
var PipelineTemplateSchema = object({
|
|
24985
|
-
id: string(),
|
|
24986
|
-
name: string(),
|
|
24987
|
-
description: string().optional(),
|
|
24988
|
-
config: CameraPipelineConfigSchema,
|
|
24989
|
-
createdAt: string(),
|
|
24990
|
-
updatedAt: string()
|
|
24991
|
-
});
|
|
24992
25376
|
var DeviceStepConfigSchema = object({
|
|
24993
25377
|
modelId: string().optional(),
|
|
24994
25378
|
settings: record(string(), unknown()).optional(),
|
|
@@ -25062,9 +25446,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25062
25446
|
modelId: string().optional(),
|
|
25063
25447
|
settings: record(string(), unknown()).readonly().optional()
|
|
25064
25448
|
});
|
|
25449
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25065
25450
|
var CameraPipelineSettingsSchema = object({
|
|
25066
|
-
pinnedAgentNodeId: string().optional(),
|
|
25067
25451
|
stepToggles: record(string(), boolean()).optional(),
|
|
25452
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25068
25453
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25069
25454
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25070
25455
|
});
|
|
@@ -25097,7 +25482,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25097
25482
|
});
|
|
25098
25483
|
/**
|
|
25099
25484
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25100
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
25485
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
25486
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
25487
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
25488
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
25101
25489
|
*/
|
|
25102
25490
|
var AgentLoadSummarySchema = object({
|
|
25103
25491
|
nodeId: string(),
|
|
@@ -25186,26 +25574,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
25186
25574
|
width: number(),
|
|
25187
25575
|
height: number(),
|
|
25188
25576
|
subscribers: number(),
|
|
25189
|
-
|
|
25190
|
-
|
|
25577
|
+
/**
|
|
25578
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
25579
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
25580
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
25581
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
25582
|
+
* camera and is not served (D758).
|
|
25583
|
+
*/
|
|
25584
|
+
inFps: number().nullable()
|
|
25191
25585
|
})).readonly(),
|
|
25192
25586
|
webrtcSessions: number(),
|
|
25193
25587
|
rtspRestream: boolean()
|
|
25194
25588
|
});
|
|
25195
|
-
/**
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
var CameraDecoderStatusSchema = object({
|
|
25204
|
-
nodeId: string(),
|
|
25205
|
-
formats: array(string()).readonly(),
|
|
25206
|
-
sessionCount: number(),
|
|
25207
|
-
shm: CameraDecoderShmSchema
|
|
25208
|
-
});
|
|
25589
|
+
/**
|
|
25590
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
25591
|
+
* construction); null when the camera has no detection node. It carries no
|
|
25592
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
25593
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
25594
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
25595
|
+
* detector), never from a counter nothing feeds.
|
|
25596
|
+
*/
|
|
25597
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
25209
25598
|
/** Motion block — null when motion detection is not active for this device. */
|
|
25210
25599
|
var CameraMotionStatusSchema = object({
|
|
25211
25600
|
enabled: boolean(),
|
|
@@ -25562,12 +25951,6 @@ method(object({
|
|
|
25562
25951
|
}), object({ success: literal(true) }), {
|
|
25563
25952
|
kind: "mutation",
|
|
25564
25953
|
auth: "admin"
|
|
25565
|
-
}), method(object({
|
|
25566
|
-
agentNodeId: string(),
|
|
25567
|
-
detectWeight: number().positive().nullable()
|
|
25568
|
-
}), object({ success: literal(true) }), {
|
|
25569
|
-
kind: "mutation",
|
|
25570
|
-
auth: "admin"
|
|
25571
25954
|
}), method(object({
|
|
25572
25955
|
agentNodeId: string(),
|
|
25573
25956
|
detect: boolean().nullable().optional(),
|
|
@@ -25609,6 +25992,15 @@ method(object({
|
|
|
25609
25992
|
}), {
|
|
25610
25993
|
kind: "mutation",
|
|
25611
25994
|
auth: "admin"
|
|
25995
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
25996
|
+
kind: "mutation",
|
|
25997
|
+
auth: "admin"
|
|
25998
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
25999
|
+
kind: "mutation",
|
|
26000
|
+
auth: "admin"
|
|
26001
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
26002
|
+
kind: "mutation",
|
|
26003
|
+
auth: "admin"
|
|
25612
26004
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
25613
26005
|
deviceId: number(),
|
|
25614
26006
|
addonId: string(),
|
|
@@ -25625,6 +26017,13 @@ method(object({
|
|
|
25625
26017
|
}), object({ success: literal(true) }), {
|
|
25626
26018
|
kind: "mutation",
|
|
25627
26019
|
auth: "admin"
|
|
26020
|
+
}), method(object({
|
|
26021
|
+
deviceId: number(),
|
|
26022
|
+
addonId: string(),
|
|
26023
|
+
settings: record(string(), unknown()).nullable()
|
|
26024
|
+
}), object({ success: literal(true) }), {
|
|
26025
|
+
kind: "mutation",
|
|
26026
|
+
auth: "admin"
|
|
25628
26027
|
}), method(object({
|
|
25629
26028
|
deviceId: number(),
|
|
25630
26029
|
agentNodeId: string(),
|
|
@@ -25648,25 +26047,7 @@ method(object({
|
|
|
25648
26047
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
25649
26048
|
kind: "mutation",
|
|
25650
26049
|
auth: "admin"
|
|
25651
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
25652
|
-
name: string(),
|
|
25653
|
-
description: string().optional(),
|
|
25654
|
-
config: CameraPipelineConfigSchema
|
|
25655
|
-
}), PipelineTemplateSchema, {
|
|
25656
|
-
kind: "mutation",
|
|
25657
|
-
auth: "admin"
|
|
25658
|
-
}), method(object({
|
|
25659
|
-
id: string(),
|
|
25660
|
-
name: string().optional(),
|
|
25661
|
-
description: string().optional(),
|
|
25662
|
-
config: CameraPipelineConfigSchema.optional()
|
|
25663
|
-
}), PipelineTemplateSchema, {
|
|
25664
|
-
kind: "mutation",
|
|
25665
|
-
auth: "admin"
|
|
25666
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
25667
|
-
kind: "mutation",
|
|
25668
|
-
auth: "admin"
|
|
25669
|
-
});
|
|
26050
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
25670
26051
|
/**
|
|
25671
26052
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
25672
26053
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -27915,8 +28296,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
27915
28296
|
]).nullable(),
|
|
27916
28297
|
/** Input FPS from the camera (null for adaptive). */
|
|
27917
28298
|
inputFps: number().nullable(),
|
|
27918
|
-
/** Decoded FPS (null for adaptive). */
|
|
27919
|
-
decodeFps: number().nullable(),
|
|
27920
28299
|
/** Bitrate in kbps (null for adaptive). */
|
|
27921
28300
|
bitrateKbps: number().nullable()
|
|
27922
28301
|
});
|
|
@@ -28248,6 +28627,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28248
28627
|
*/
|
|
28249
28628
|
alive: boolean()
|
|
28250
28629
|
})), method(object({
|
|
28630
|
+
deviceId: number().int().nonnegative(),
|
|
28631
|
+
sessionId: string(),
|
|
28632
|
+
downlinkMbps: number().nonnegative()
|
|
28633
|
+
}), object({
|
|
28634
|
+
outcome: _enum(["switching", "held"]),
|
|
28635
|
+
tier: CamProfileSchema.nullable(),
|
|
28636
|
+
reason: string()
|
|
28637
|
+
}), { kind: "mutation" }), method(object({
|
|
28251
28638
|
deviceId: number().int().nonnegative(),
|
|
28252
28639
|
sessionId: string()
|
|
28253
28640
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -32004,7 +32391,7 @@ var LocalInterfaceSchema = object({
|
|
|
32004
32391
|
name: string(),
|
|
32005
32392
|
family: _enum(["IPv4", "IPv6"]),
|
|
32006
32393
|
address: string(),
|
|
32007
|
-
/** CIDR shorthand (e.g. `192.168.
|
|
32394
|
+
/** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
|
|
32008
32395
|
cidr: string(),
|
|
32009
32396
|
/** OS netmask. Stable across calls so the SDK can hash on it. */
|
|
32010
32397
|
netmask: string(),
|
|
@@ -32058,7 +32445,9 @@ var ConnectionEndpointSchema = object({
|
|
|
32058
32445
|
"lan-ipv4",
|
|
32059
32446
|
"lan-ipv6",
|
|
32060
32447
|
"public",
|
|
32061
|
-
"loopback"
|
|
32448
|
+
"loopback",
|
|
32449
|
+
"app-link",
|
|
32450
|
+
"custom"
|
|
32062
32451
|
]),
|
|
32063
32452
|
/**
|
|
32064
32453
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -32127,15 +32516,27 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
32127
32516
|
localPort: AdvertisedLocalPortSchema
|
|
32128
32517
|
});
|
|
32129
32518
|
/**
|
|
32130
|
-
* The
|
|
32131
|
-
*
|
|
32132
|
-
*
|
|
32519
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
32520
|
+
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
32521
|
+
* so the UI can show it either way.
|
|
32133
32522
|
*/
|
|
32134
32523
|
var NotificationEndpointSchema = object({
|
|
32135
32524
|
/** The operator's explicit choice, or null for AUTO. */
|
|
32136
32525
|
baseUrl: string().nullable(),
|
|
32137
|
-
/**
|
|
32138
|
-
|
|
32526
|
+
/**
|
|
32527
|
+
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
32528
|
+
* CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
|
|
32529
|
+
* answered the public tunnel / mesh here, or null.
|
|
32530
|
+
*/
|
|
32531
|
+
resolved: string().nullable(),
|
|
32532
|
+
/**
|
|
32533
|
+
* The hub origin an app link carries as `hub=` (D709): the hub's best
|
|
32534
|
+
* public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
|
|
32535
|
+
* picked from this cap's own palette by `pickAppLinkHub`. `null` when the
|
|
32536
|
+
* hub advertises neither; the app link is then minted without `hub=`.
|
|
32537
|
+
* Absent on a pre-D709 hub.
|
|
32538
|
+
*/
|
|
32539
|
+
appLinkHub: string().nullable()
|
|
32139
32540
|
});
|
|
32140
32541
|
/**
|
|
32141
32542
|
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
@@ -32148,6 +32549,72 @@ var ViewerEndpointsSchema = object({
|
|
|
32148
32549
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
32149
32550
|
resolved: array(string()).readonly()
|
|
32150
32551
|
});
|
|
32552
|
+
/**
|
|
32553
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
32554
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
32555
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
32556
|
+
*/
|
|
32557
|
+
var HubAddressSnapshotSchema = object({
|
|
32558
|
+
override: string().nullable(),
|
|
32559
|
+
resolved: string().nullable(),
|
|
32560
|
+
source: _enum([
|
|
32561
|
+
"override",
|
|
32562
|
+
"auto",
|
|
32563
|
+
"none"
|
|
32564
|
+
])
|
|
32565
|
+
});
|
|
32566
|
+
var HubAddressesSchema = object({
|
|
32567
|
+
cluster: HubAddressSnapshotSchema,
|
|
32568
|
+
browser: HubAddressSnapshotSchema
|
|
32569
|
+
});
|
|
32570
|
+
/**
|
|
32571
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
32572
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
32573
|
+
* by at most one address.
|
|
32574
|
+
*/
|
|
32575
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
32576
|
+
var RoleSourceSchema = _enum([
|
|
32577
|
+
"flagged",
|
|
32578
|
+
"auto",
|
|
32579
|
+
"none"
|
|
32580
|
+
]);
|
|
32581
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
32582
|
+
var HubAddressRoleResolutionSchema = object({
|
|
32583
|
+
/** The address carrying the flag, or null = automatic. */
|
|
32584
|
+
flagged: string().nullable(),
|
|
32585
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
32586
|
+
resolved: string().nullable(),
|
|
32587
|
+
source: RoleSourceSchema
|
|
32588
|
+
});
|
|
32589
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
32590
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
32591
|
+
flagged: array(string()).readonly(),
|
|
32592
|
+
/** What the apps race right now. */
|
|
32593
|
+
resolved: array(string()).readonly(),
|
|
32594
|
+
source: RoleSourceSchema
|
|
32595
|
+
});
|
|
32596
|
+
var HubAddressBookSchema = object({
|
|
32597
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
32598
|
+
/** In the hub's detected palette right now. */
|
|
32599
|
+
detected: boolean(),
|
|
32600
|
+
/** Entered by the operator (removable). */
|
|
32601
|
+
custom: boolean(),
|
|
32602
|
+
/** The roles explicitly flagged on this address. */
|
|
32603
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
32604
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
32605
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
32606
|
+
/** The roles this address may be flagged with. */
|
|
32607
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
32608
|
+
})).readonly(),
|
|
32609
|
+
roles: object({
|
|
32610
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
32611
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
32612
|
+
internal: HubAddressRoleResolutionSchema,
|
|
32613
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
32614
|
+
}),
|
|
32615
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
32616
|
+
appLinkHub: string().nullable()
|
|
32617
|
+
});
|
|
32151
32618
|
var AllowedAddressesSchema = object({
|
|
32152
32619
|
/**
|
|
32153
32620
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -32189,8 +32656,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
32189
32656
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
32190
32657
|
* to avoid mixed-content blocks in the browser. The public
|
|
32191
32658
|
* tunnel always emits `https://` regardless. */
|
|
32192
|
-
scheme: _enum(["http", "https"]).optional()
|
|
32193
|
-
|
|
32659
|
+
scheme: _enum(["http", "https"]).optional(),
|
|
32660
|
+
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
32661
|
+
* an address notification taps can be flagged with, not a hub
|
|
32662
|
+
* route. Default `false`: racers and rankers never see it. */
|
|
32663
|
+
includeAppLink: boolean().optional()
|
|
32664
|
+
}), 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({
|
|
32665
|
+
baseUrl: string(),
|
|
32666
|
+
label: string().max(80)
|
|
32667
|
+
}), HubAddressBookSchema, {
|
|
32668
|
+
kind: "mutation",
|
|
32669
|
+
auth: "admin"
|
|
32670
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
32671
|
+
kind: "mutation",
|
|
32672
|
+
auth: "admin"
|
|
32673
|
+
}), method(object({
|
|
32674
|
+
role: HubAddressRoleSchema,
|
|
32675
|
+
baseUrl: string().nullable(),
|
|
32676
|
+
enabled: boolean(),
|
|
32677
|
+
acceptInsecureHttp: boolean().optional()
|
|
32678
|
+
}), HubAddressBookSchema, {
|
|
32679
|
+
kind: "mutation",
|
|
32680
|
+
auth: "admin"
|
|
32681
|
+
}), 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, {
|
|
32194
32682
|
kind: "mutation",
|
|
32195
32683
|
auth: "admin"
|
|
32196
32684
|
}), method(object({
|
|
@@ -32518,7 +33006,7 @@ var MeshPeerSchema = object({
|
|
|
32518
33006
|
tags: array(string()).readonly(),
|
|
32519
33007
|
/** True when the peer advertises itself as an exit-node candidate. */
|
|
32520
33008
|
exitNodeOption: boolean(),
|
|
32521
|
-
/** Subnet routes the peer advertises (e.g. `["192.168.
|
|
33009
|
+
/** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
|
|
32522
33010
|
advertisedRoutes: array(string()).readonly(),
|
|
32523
33011
|
/** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
|
|
32524
33012
|
userLogin: string().nullable(),
|
|
@@ -32648,7 +33136,8 @@ var MotionStatusSchema = object({
|
|
|
32648
33136
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32649
33137
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32650
33138
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32651
|
-
* A provider's `isDetected`
|
|
33139
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
33140
|
+
* (`hubMotionNativeProvider`).
|
|
32652
33141
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32653
33142
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32654
33143
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -33846,7 +34335,13 @@ var OsdStatusSchema = object({ overlays: array(object({
|
|
|
33846
34335
|
*/
|
|
33847
34336
|
availablePositions: array(OsdPositionEnum).readonly(),
|
|
33848
34337
|
/** Firmware does not allow editing the `text` field (e.g. timestamp). */
|
|
33849
|
-
readOnly: boolean().optional()
|
|
34338
|
+
readOnly: boolean().optional(),
|
|
34339
|
+
/**
|
|
34340
|
+
* Firmware text ceiling for this overlay. Absent = no known limit.
|
|
34341
|
+
* The OSD manager truncates here on every write — never stores its own
|
|
34342
|
+
* copy on the binding.
|
|
34343
|
+
*/
|
|
34344
|
+
maxCharacters: number().int().positive().optional()
|
|
33850
34345
|
})).readonly() });
|
|
33851
34346
|
var OsdOverlayPatchSchema = object({
|
|
33852
34347
|
enabled: boolean().optional(),
|
|
@@ -33897,7 +34392,9 @@ var OsdTemplateBindingSchema = object({
|
|
|
33897
34392
|
valuePath: string().min(1).max(64),
|
|
33898
34393
|
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
33899
34394
|
displayUnit: string().max(16).optional(),
|
|
33900
|
-
maxDecimals: number().int().min(0).max(4).default(1)
|
|
34395
|
+
maxDecimals: number().int().min(0).max(4).default(1),
|
|
34396
|
+
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
34397
|
+
valueMap: record(string(), string()).optional()
|
|
33901
34398
|
});
|
|
33902
34399
|
/**
|
|
33903
34400
|
* A named template: bindings (alias → leaf field) + a parser that
|
|
@@ -33947,18 +34444,11 @@ var OsdSlotBindingSchema = object({
|
|
|
33947
34444
|
source: OsdSourceSchema,
|
|
33948
34445
|
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
33949
34446
|
template: string().max(96).default("${value}"),
|
|
33950
|
-
/** Truncate with an ellipsis past this length. Absent = no limit. */
|
|
33951
|
-
maxCharacters: number().int().min(4).max(64).optional(),
|
|
33952
34447
|
/**
|
|
33953
34448
|
* Decimal places for a numeric value. `0` yields an integer — the
|
|
33954
34449
|
* documented workaround for firmwares that reject `.` in overlay text.
|
|
33955
34450
|
*/
|
|
33956
34451
|
maxDecimals: number().int().min(0).max(4).default(1),
|
|
33957
|
-
/**
|
|
33958
|
-
* Appended via `${unit}` when no unit conversion produces a label.
|
|
33959
|
-
* Prefer `source.displayUnit` for converted device-state values.
|
|
33960
|
-
*/
|
|
33961
|
-
unitLabel: string().max(8).optional(),
|
|
33962
34452
|
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
33963
34453
|
valueMap: record(string(), string()).optional(),
|
|
33964
34454
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
@@ -33967,9 +34457,7 @@ var OsdSlotBindingSchema = object({
|
|
|
33967
34457
|
* Display gate, in the notification centre's condition vocabulary.
|
|
33968
34458
|
* Only the keys reported by `getConditionSupport` are accepted.
|
|
33969
34459
|
*/
|
|
33970
|
-
conditions: NcConditionsSchema.optional()
|
|
33971
|
-
/** Rendered when the gate is closed or the value unreadable. Empty = hide. */
|
|
33972
|
-
fallbackText: string().max(64).default("")
|
|
34460
|
+
conditions: NcConditionsSchema.optional()
|
|
33973
34461
|
});
|
|
33974
34462
|
/** One camera slot, as the operator sees it: firmware truth + our binding. */
|
|
33975
34463
|
var OsdSlotViewSchema = object({
|
|
@@ -39196,6 +39684,16 @@ var zoneRulesCapability = {
|
|
|
39196
39684
|
durability: "restored"
|
|
39197
39685
|
};
|
|
39198
39686
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
39687
|
+
Object.freeze({
|
|
39688
|
+
person: .5,
|
|
39689
|
+
vehicle: .5,
|
|
39690
|
+
animal: .5
|
|
39691
|
+
});
|
|
39692
|
+
Object.freeze({
|
|
39693
|
+
person: .65,
|
|
39694
|
+
vehicle: .65,
|
|
39695
|
+
animal: .65
|
|
39696
|
+
});
|
|
39199
39697
|
/**
|
|
39200
39698
|
* Accessory device helpers — shared across drivers.
|
|
39201
39699
|
*
|
|
@@ -42076,90 +42574,18 @@ Object.freeze({
|
|
|
42076
42574
|
addonId: null,
|
|
42077
42575
|
access: "create"
|
|
42078
42576
|
},
|
|
42079
|
-
"decoder.createSession": {
|
|
42080
|
-
capName: "decoder",
|
|
42081
|
-
capScope: "system",
|
|
42082
|
-
addonId: null,
|
|
42083
|
-
access: "view"
|
|
42084
|
-
},
|
|
42085
|
-
"decoder.destroySession": {
|
|
42086
|
-
capName: "decoder",
|
|
42087
|
-
capScope: "system",
|
|
42088
|
-
addonId: null,
|
|
42089
|
-
access: "delete"
|
|
42090
|
-
},
|
|
42091
|
-
"decoder.getFrame": {
|
|
42092
|
-
capName: "decoder",
|
|
42093
|
-
capScope: "system",
|
|
42094
|
-
addonId: null,
|
|
42095
|
-
access: "view"
|
|
42096
|
-
},
|
|
42097
42577
|
"decoder.getInfo": {
|
|
42098
42578
|
capName: "decoder",
|
|
42099
42579
|
capScope: "system",
|
|
42100
42580
|
addonId: null,
|
|
42101
42581
|
access: "view"
|
|
42102
42582
|
},
|
|
42103
|
-
"decoder.getShmStats": {
|
|
42104
|
-
capName: "decoder",
|
|
42105
|
-
capScope: "system",
|
|
42106
|
-
addonId: null,
|
|
42107
|
-
access: "view"
|
|
42108
|
-
},
|
|
42109
|
-
"decoder.getStats": {
|
|
42110
|
-
capName: "decoder",
|
|
42111
|
-
capScope: "system",
|
|
42112
|
-
addonId: null,
|
|
42113
|
-
access: "view"
|
|
42114
|
-
},
|
|
42115
|
-
"decoder.listActiveSessions": {
|
|
42116
|
-
capName: "decoder",
|
|
42117
|
-
capScope: "system",
|
|
42118
|
-
addonId: null,
|
|
42119
|
-
access: "view"
|
|
42120
|
-
},
|
|
42121
|
-
"decoder.openStream": {
|
|
42122
|
-
capName: "decoder",
|
|
42123
|
-
capScope: "system",
|
|
42124
|
-
addonId: null,
|
|
42125
|
-
access: "view"
|
|
42126
|
-
},
|
|
42127
|
-
"decoder.pullFrames": {
|
|
42128
|
-
capName: "decoder",
|
|
42129
|
-
capScope: "system",
|
|
42130
|
-
addonId: null,
|
|
42131
|
-
access: "view"
|
|
42132
|
-
},
|
|
42133
|
-
"decoder.pullHandles": {
|
|
42134
|
-
capName: "decoder",
|
|
42135
|
-
capScope: "system",
|
|
42136
|
-
addonId: null,
|
|
42137
|
-
access: "view"
|
|
42138
|
-
},
|
|
42139
|
-
"decoder.pushPacket": {
|
|
42140
|
-
capName: "decoder",
|
|
42141
|
-
capScope: "system",
|
|
42142
|
-
addonId: null,
|
|
42143
|
-
access: "view"
|
|
42144
|
-
},
|
|
42145
42583
|
"decoder.reprobeHwaccel": {
|
|
42146
42584
|
capName: "decoder",
|
|
42147
42585
|
capScope: "system",
|
|
42148
42586
|
addonId: null,
|
|
42149
42587
|
access: "create"
|
|
42150
42588
|
},
|
|
42151
|
-
"decoder.supportsCodec": {
|
|
42152
|
-
capName: "decoder",
|
|
42153
|
-
capScope: "system",
|
|
42154
|
-
addonId: null,
|
|
42155
|
-
access: "view"
|
|
42156
|
-
},
|
|
42157
|
-
"decoder.updateConfig": {
|
|
42158
|
-
capName: "decoder",
|
|
42159
|
-
capScope: "system",
|
|
42160
|
-
addonId: null,
|
|
42161
|
-
access: "view"
|
|
42162
|
-
},
|
|
42163
42589
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
42164
42590
|
capName: "detection-pipeline",
|
|
42165
42591
|
capScope: "device",
|
|
@@ -43648,12 +44074,24 @@ Object.freeze({
|
|
|
43648
44074
|
addonId: null,
|
|
43649
44075
|
access: "view"
|
|
43650
44076
|
},
|
|
44077
|
+
"localNetwork.addCustomAddress": {
|
|
44078
|
+
capName: "local-network",
|
|
44079
|
+
capScope: "system",
|
|
44080
|
+
addonId: null,
|
|
44081
|
+
access: "create"
|
|
44082
|
+
},
|
|
43651
44083
|
"localNetwork.downloadCa": {
|
|
43652
44084
|
capName: "local-network",
|
|
43653
44085
|
capScope: "system",
|
|
43654
44086
|
addonId: null,
|
|
43655
44087
|
access: "view"
|
|
43656
44088
|
},
|
|
44089
|
+
"localNetwork.getAddresses": {
|
|
44090
|
+
capName: "local-network",
|
|
44091
|
+
capScope: "system",
|
|
44092
|
+
addonId: null,
|
|
44093
|
+
access: "view"
|
|
44094
|
+
},
|
|
43657
44095
|
"localNetwork.getAllowedAddresses": {
|
|
43658
44096
|
capName: "local-network",
|
|
43659
44097
|
capScope: "system",
|
|
@@ -43666,6 +44104,12 @@ Object.freeze({
|
|
|
43666
44104
|
addonId: null,
|
|
43667
44105
|
access: "view"
|
|
43668
44106
|
},
|
|
44107
|
+
"localNetwork.getHubAddresses": {
|
|
44108
|
+
capName: "local-network",
|
|
44109
|
+
capScope: "system",
|
|
44110
|
+
addonId: null,
|
|
44111
|
+
access: "view"
|
|
44112
|
+
},
|
|
43669
44113
|
"localNetwork.getNotificationEndpoint": {
|
|
43670
44114
|
capName: "local-network",
|
|
43671
44115
|
capScope: "system",
|
|
@@ -43702,6 +44146,12 @@ Object.freeze({
|
|
|
43702
44146
|
addonId: null,
|
|
43703
44147
|
access: "create"
|
|
43704
44148
|
},
|
|
44149
|
+
"localNetwork.removeCustomAddress": {
|
|
44150
|
+
capName: "local-network",
|
|
44151
|
+
capScope: "system",
|
|
44152
|
+
addonId: null,
|
|
44153
|
+
access: "delete"
|
|
44154
|
+
},
|
|
43705
44155
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
43706
44156
|
capName: "local-network",
|
|
43707
44157
|
capScope: "system",
|
|
@@ -43714,6 +44164,12 @@ Object.freeze({
|
|
|
43714
44164
|
addonId: null,
|
|
43715
44165
|
access: "create"
|
|
43716
44166
|
},
|
|
44167
|
+
"localNetwork.setAddressRole": {
|
|
44168
|
+
capName: "local-network",
|
|
44169
|
+
capScope: "system",
|
|
44170
|
+
addonId: null,
|
|
44171
|
+
access: "create"
|
|
44172
|
+
},
|
|
43717
44173
|
"localNetwork.setAllowedAddresses": {
|
|
43718
44174
|
capName: "local-network",
|
|
43719
44175
|
capScope: "system",
|
|
@@ -45208,13 +45664,13 @@ Object.freeze({
|
|
|
45208
45664
|
addonId: null,
|
|
45209
45665
|
access: "delete"
|
|
45210
45666
|
},
|
|
45211
|
-
"pipelineExecutor.
|
|
45667
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
45212
45668
|
capName: "pipeline-executor",
|
|
45213
45669
|
capScope: "system",
|
|
45214
45670
|
addonId: null,
|
|
45215
45671
|
access: "delete"
|
|
45216
45672
|
},
|
|
45217
|
-
"pipelineExecutor.
|
|
45673
|
+
"pipelineExecutor.deleteModel": {
|
|
45218
45674
|
capName: "pipeline-executor",
|
|
45219
45675
|
capScope: "system",
|
|
45220
45676
|
addonId: null,
|
|
@@ -45358,12 +45814,6 @@ Object.freeze({
|
|
|
45358
45814
|
addonId: null,
|
|
45359
45815
|
access: "view"
|
|
45360
45816
|
},
|
|
45361
|
-
"pipelineExecutor.listTemplates": {
|
|
45362
|
-
capName: "pipeline-executor",
|
|
45363
|
-
capScope: "system",
|
|
45364
|
-
addonId: null,
|
|
45365
|
-
access: "view"
|
|
45366
|
-
},
|
|
45367
45817
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
45368
45818
|
capName: "pipeline-executor",
|
|
45369
45819
|
capScope: "system",
|
|
@@ -45388,12 +45838,6 @@ Object.freeze({
|
|
|
45388
45838
|
addonId: null,
|
|
45389
45839
|
access: "create"
|
|
45390
45840
|
},
|
|
45391
|
-
"pipelineExecutor.saveTemplate": {
|
|
45392
|
-
capName: "pipeline-executor",
|
|
45393
|
-
capScope: "system",
|
|
45394
|
-
addonId: null,
|
|
45395
|
-
access: "create"
|
|
45396
|
-
},
|
|
45397
45841
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
45398
45842
|
capName: "pipeline-executor",
|
|
45399
45843
|
capScope: "system",
|
|
@@ -45412,41 +45856,35 @@ Object.freeze({
|
|
|
45412
45856
|
addonId: null,
|
|
45413
45857
|
access: "create"
|
|
45414
45858
|
},
|
|
45415
|
-
"pipelineExecutor.updateTemplate": {
|
|
45416
|
-
capName: "pipeline-executor",
|
|
45417
|
-
capScope: "system",
|
|
45418
|
-
addonId: null,
|
|
45419
|
-
access: "create"
|
|
45420
|
-
},
|
|
45421
45859
|
"pipelineExecutor.validatePipeline": {
|
|
45422
45860
|
capName: "pipeline-executor",
|
|
45423
45861
|
capScope: "system",
|
|
45424
45862
|
addonId: null,
|
|
45425
45863
|
access: "view"
|
|
45426
45864
|
},
|
|
45427
|
-
"pipelineOrchestrator.
|
|
45865
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
45428
45866
|
capName: "pipeline-orchestrator",
|
|
45429
45867
|
capScope: "system",
|
|
45430
45868
|
addonId: null,
|
|
45431
45869
|
access: "create"
|
|
45432
45870
|
},
|
|
45433
|
-
"pipelineOrchestrator.
|
|
45871
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
45434
45872
|
capName: "pipeline-orchestrator",
|
|
45435
45873
|
capScope: "system",
|
|
45436
45874
|
addonId: null,
|
|
45437
45875
|
access: "create"
|
|
45438
45876
|
},
|
|
45439
|
-
"pipelineOrchestrator.
|
|
45877
|
+
"pipelineOrchestrator.assignAudio": {
|
|
45440
45878
|
capName: "pipeline-orchestrator",
|
|
45441
45879
|
capScope: "system",
|
|
45442
45880
|
addonId: null,
|
|
45443
45881
|
access: "create"
|
|
45444
45882
|
},
|
|
45445
|
-
"pipelineOrchestrator.
|
|
45883
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
45446
45884
|
capName: "pipeline-orchestrator",
|
|
45447
45885
|
capScope: "system",
|
|
45448
45886
|
addonId: null,
|
|
45449
|
-
access: "
|
|
45887
|
+
access: "create"
|
|
45450
45888
|
},
|
|
45451
45889
|
"pipelineOrchestrator.getAgentLoad": {
|
|
45452
45890
|
capName: "pipeline-orchestrator",
|
|
@@ -45538,6 +45976,12 @@ Object.freeze({
|
|
|
45538
45976
|
addonId: null,
|
|
45539
45977
|
access: "view"
|
|
45540
45978
|
},
|
|
45979
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
45980
|
+
capName: "pipeline-orchestrator",
|
|
45981
|
+
capScope: "system",
|
|
45982
|
+
addonId: null,
|
|
45983
|
+
access: "view"
|
|
45984
|
+
},
|
|
45541
45985
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
45542
45986
|
capName: "pipeline-orchestrator",
|
|
45543
45987
|
capScope: "system",
|
|
@@ -45574,19 +46018,19 @@ Object.freeze({
|
|
|
45574
46018
|
addonId: null,
|
|
45575
46019
|
access: "view"
|
|
45576
46020
|
},
|
|
45577
|
-
"pipelineOrchestrator.
|
|
46021
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
45578
46022
|
capName: "pipeline-orchestrator",
|
|
45579
46023
|
capScope: "system",
|
|
45580
46024
|
addonId: null,
|
|
45581
46025
|
access: "view"
|
|
45582
46026
|
},
|
|
45583
|
-
"pipelineOrchestrator.
|
|
46027
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
45584
46028
|
capName: "pipeline-orchestrator",
|
|
45585
46029
|
capScope: "system",
|
|
45586
46030
|
addonId: null,
|
|
45587
46031
|
access: "view"
|
|
45588
46032
|
},
|
|
45589
|
-
"pipelineOrchestrator.
|
|
46033
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
45590
46034
|
capName: "pipeline-orchestrator",
|
|
45591
46035
|
capScope: "system",
|
|
45592
46036
|
addonId: null,
|
|
@@ -45598,6 +46042,12 @@ Object.freeze({
|
|
|
45598
46042
|
addonId: null,
|
|
45599
46043
|
access: "create"
|
|
45600
46044
|
},
|
|
46045
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
46046
|
+
capName: "pipeline-orchestrator",
|
|
46047
|
+
capScope: "system",
|
|
46048
|
+
addonId: null,
|
|
46049
|
+
access: "view"
|
|
46050
|
+
},
|
|
45601
46051
|
"pipelineOrchestrator.rebalance": {
|
|
45602
46052
|
capName: "pipeline-orchestrator",
|
|
45603
46053
|
capScope: "system",
|
|
@@ -45640,12 +46090,6 @@ Object.freeze({
|
|
|
45640
46090
|
addonId: null,
|
|
45641
46091
|
access: "create"
|
|
45642
46092
|
},
|
|
45643
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
45644
|
-
capName: "pipeline-orchestrator",
|
|
45645
|
-
capScope: "system",
|
|
45646
|
-
addonId: null,
|
|
45647
|
-
access: "create"
|
|
45648
|
-
},
|
|
45649
46093
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
45650
46094
|
capName: "pipeline-orchestrator",
|
|
45651
46095
|
capScope: "system",
|
|
@@ -45658,12 +46102,6 @@ Object.freeze({
|
|
|
45658
46102
|
addonId: null,
|
|
45659
46103
|
access: "create"
|
|
45660
46104
|
},
|
|
45661
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
45662
|
-
capName: "pipeline-orchestrator",
|
|
45663
|
-
capScope: "system",
|
|
45664
|
-
addonId: null,
|
|
45665
|
-
access: "create"
|
|
45666
|
-
},
|
|
45667
46105
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
45668
46106
|
capName: "pipeline-orchestrator",
|
|
45669
46107
|
capScope: "system",
|
|
@@ -45700,6 +46138,12 @@ Object.freeze({
|
|
|
45700
46138
|
addonId: null,
|
|
45701
46139
|
access: "create"
|
|
45702
46140
|
},
|
|
46141
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
46142
|
+
capName: "pipeline-orchestrator",
|
|
46143
|
+
capScope: "system",
|
|
46144
|
+
addonId: null,
|
|
46145
|
+
access: "create"
|
|
46146
|
+
},
|
|
45703
46147
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
45704
46148
|
capName: "pipeline-orchestrator",
|
|
45705
46149
|
capScope: "system",
|
|
@@ -45718,25 +46162,37 @@ Object.freeze({
|
|
|
45718
46162
|
addonId: null,
|
|
45719
46163
|
access: "create"
|
|
45720
46164
|
},
|
|
46165
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
46166
|
+
capName: "pipeline-orchestrator",
|
|
46167
|
+
capScope: "system",
|
|
46168
|
+
addonId: null,
|
|
46169
|
+
access: "create"
|
|
46170
|
+
},
|
|
45721
46171
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
45722
46172
|
capName: "pipeline-orchestrator",
|
|
45723
46173
|
capScope: "system",
|
|
45724
46174
|
addonId: null,
|
|
45725
46175
|
access: "create"
|
|
45726
46176
|
},
|
|
45727
|
-
"pipelineOrchestrator.
|
|
46177
|
+
"pipelineOrchestrator.setShareSource": {
|
|
45728
46178
|
capName: "pipeline-orchestrator",
|
|
45729
46179
|
capScope: "system",
|
|
45730
46180
|
addonId: null,
|
|
45731
46181
|
access: "create"
|
|
45732
46182
|
},
|
|
45733
|
-
"pipelineOrchestrator.
|
|
46183
|
+
"pipelineOrchestrator.suggestShares": {
|
|
46184
|
+
capName: "pipeline-orchestrator",
|
|
46185
|
+
capScope: "system",
|
|
46186
|
+
addonId: null,
|
|
46187
|
+
access: "view"
|
|
46188
|
+
},
|
|
46189
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
45734
46190
|
capName: "pipeline-orchestrator",
|
|
45735
46191
|
capScope: "system",
|
|
45736
46192
|
addonId: null,
|
|
45737
46193
|
access: "create"
|
|
45738
46194
|
},
|
|
45739
|
-
"pipelineOrchestrator.
|
|
46195
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
45740
46196
|
capName: "pipeline-orchestrator",
|
|
45741
46197
|
capScope: "system",
|
|
45742
46198
|
addonId: null,
|
|
@@ -47176,12 +47632,6 @@ Object.freeze({
|
|
|
47176
47632
|
addonId: null,
|
|
47177
47633
|
access: "view"
|
|
47178
47634
|
},
|
|
47179
|
-
"streamBroker.pullFrameHandles": {
|
|
47180
|
-
capName: "stream-broker",
|
|
47181
|
-
capScope: "system",
|
|
47182
|
-
addonId: null,
|
|
47183
|
-
access: "view"
|
|
47184
|
-
},
|
|
47185
47635
|
"streamBroker.regenerateRtspToken": {
|
|
47186
47636
|
capName: "stream-broker",
|
|
47187
47637
|
capScope: "system",
|
|
@@ -47248,12 +47698,6 @@ Object.freeze({
|
|
|
47248
47698
|
addonId: null,
|
|
47249
47699
|
access: "create"
|
|
47250
47700
|
},
|
|
47251
|
-
"streamBroker.subscribeFrames": {
|
|
47252
|
-
capName: "stream-broker",
|
|
47253
|
-
capScope: "system",
|
|
47254
|
-
addonId: null,
|
|
47255
|
-
access: "create"
|
|
47256
|
-
},
|
|
47257
47701
|
"streamBroker.unassignProfile": {
|
|
47258
47702
|
capName: "stream-broker",
|
|
47259
47703
|
capScope: "system",
|
|
@@ -47266,12 +47710,6 @@ Object.freeze({
|
|
|
47266
47710
|
addonId: null,
|
|
47267
47711
|
access: "create"
|
|
47268
47712
|
},
|
|
47269
|
-
"streamBroker.unsubscribeFrames": {
|
|
47270
|
-
capName: "stream-broker",
|
|
47271
|
-
capScope: "system",
|
|
47272
|
-
addonId: null,
|
|
47273
|
-
access: "create"
|
|
47274
|
-
},
|
|
47275
47713
|
"streamCatalog.getCatalog": {
|
|
47276
47714
|
capName: "stream-catalog",
|
|
47277
47715
|
capScope: "device",
|
|
@@ -47968,6 +48406,12 @@ Object.freeze({
|
|
|
47968
48406
|
addonId: null,
|
|
47969
48407
|
access: "create"
|
|
47970
48408
|
},
|
|
48409
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
48410
|
+
capName: "webrtc-session",
|
|
48411
|
+
capScope: "device",
|
|
48412
|
+
addonId: null,
|
|
48413
|
+
access: "create"
|
|
48414
|
+
},
|
|
47971
48415
|
"webrtcSession.closeSession": {
|
|
47972
48416
|
capName: "webrtc-session",
|
|
47973
48417
|
capScope: "device",
|
|
@@ -49779,11 +50223,6 @@ Object.freeze({
|
|
|
49779
50223
|
form: "single",
|
|
49780
50224
|
optional: false
|
|
49781
50225
|
}],
|
|
49782
|
-
"decoder.createSession": [{
|
|
49783
|
-
name: "deviceId",
|
|
49784
|
-
form: "single",
|
|
49785
|
-
optional: true
|
|
49786
|
-
}],
|
|
49787
50226
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49788
50227
|
name: "deviceId",
|
|
49789
50228
|
form: "single",
|
|
@@ -51014,6 +51453,11 @@ Object.freeze({
|
|
|
51014
51453
|
form: "single",
|
|
51015
51454
|
optional: false
|
|
51016
51455
|
}],
|
|
51456
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
51457
|
+
name: "deviceIds",
|
|
51458
|
+
form: "array",
|
|
51459
|
+
optional: true
|
|
51460
|
+
}],
|
|
51017
51461
|
"pipelineExecutor.runPipeline": [{
|
|
51018
51462
|
name: "deviceId",
|
|
51019
51463
|
form: "single",
|
|
@@ -51119,6 +51563,11 @@ Object.freeze({
|
|
|
51119
51563
|
form: "single",
|
|
51120
51564
|
optional: false
|
|
51121
51565
|
}],
|
|
51566
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
51567
|
+
name: "deviceId",
|
|
51568
|
+
form: "single",
|
|
51569
|
+
optional: false
|
|
51570
|
+
}],
|
|
51122
51571
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
51123
51572
|
name: "deviceId",
|
|
51124
51573
|
form: "single",
|
|
@@ -51890,6 +52339,11 @@ Object.freeze({
|
|
|
51890
52339
|
form: "single",
|
|
51891
52340
|
optional: false
|
|
51892
52341
|
}],
|
|
52342
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
52343
|
+
name: "deviceId",
|
|
52344
|
+
form: "single",
|
|
52345
|
+
optional: false
|
|
52346
|
+
}],
|
|
51893
52347
|
"webrtcSession.closeSession": [{
|
|
51894
52348
|
name: "deviceId",
|
|
51895
52349
|
form: "single",
|
|
@@ -52119,6 +52573,8 @@ new Map(Object.entries({
|
|
|
52119
52573
|
"detection-blind": "device-events",
|
|
52120
52574
|
"node-online": "system",
|
|
52121
52575
|
"node-offline": "system",
|
|
52576
|
+
"node-restarting": "system",
|
|
52577
|
+
"node-updating": "system",
|
|
52122
52578
|
"node-inference-unavailable": "system",
|
|
52123
52579
|
"addon-crash-loop": "system",
|
|
52124
52580
|
"addon-update-available": "system",
|
|
@@ -52196,18 +52652,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52196
52652
|
kinds: [
|
|
52197
52653
|
"node-offline",
|
|
52198
52654
|
"node-online",
|
|
52655
|
+
"node-restarting",
|
|
52199
52656
|
"node-inference-unavailable"
|
|
52200
52657
|
]
|
|
52201
52658
|
},
|
|
52202
52659
|
{
|
|
52203
52660
|
id: "addons",
|
|
52204
52661
|
family: "system",
|
|
52205
|
-
label: "Addons",
|
|
52206
|
-
kinds: [
|
|
52207
|
-
|
|
52208
|
-
|
|
52209
|
-
|
|
52210
|
-
|
|
52662
|
+
label: "Addons stopped",
|
|
52663
|
+
kinds: ["addon-crash-loop"]
|
|
52664
|
+
},
|
|
52665
|
+
{
|
|
52666
|
+
id: "addon-updates",
|
|
52667
|
+
family: "system",
|
|
52668
|
+
label: "Addon updates",
|
|
52669
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52211
52670
|
},
|
|
52212
52671
|
{
|
|
52213
52672
|
id: "updates",
|
|
@@ -52215,6 +52674,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52215
52674
|
label: "Server & container updates",
|
|
52216
52675
|
kinds: [
|
|
52217
52676
|
"server-update-available",
|
|
52677
|
+
"node-updating",
|
|
52218
52678
|
"server-updated",
|
|
52219
52679
|
"wrapper-update-available"
|
|
52220
52680
|
]
|
|
@@ -52362,18 +52822,21 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52362
52822
|
kinds: [
|
|
52363
52823
|
"node-offline",
|
|
52364
52824
|
"node-online",
|
|
52825
|
+
"node-restarting",
|
|
52365
52826
|
"node-inference-unavailable"
|
|
52366
52827
|
]
|
|
52367
52828
|
},
|
|
52368
52829
|
{
|
|
52369
52830
|
name: "summaryAddons",
|
|
52370
|
-
label: "Summary: addons",
|
|
52371
|
-
example: "
|
|
52372
|
-
kinds: [
|
|
52373
|
-
|
|
52374
|
-
|
|
52375
|
-
|
|
52376
|
-
|
|
52831
|
+
label: "Summary: addons stopped",
|
|
52832
|
+
example: "hub — recorder stopped after repeated crashes",
|
|
52833
|
+
kinds: ["addon-crash-loop"]
|
|
52834
|
+
},
|
|
52835
|
+
{
|
|
52836
|
+
name: "summaryAddonUpdates",
|
|
52837
|
+
label: "Summary: addon updates",
|
|
52838
|
+
example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
|
|
52839
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52377
52840
|
},
|
|
52378
52841
|
{
|
|
52379
52842
|
name: "summaryUpdates",
|
|
@@ -52381,6 +52844,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52381
52844
|
example: "server 1.2.377 → 1.2.378",
|
|
52382
52845
|
kinds: [
|
|
52383
52846
|
"server-update-available",
|
|
52847
|
+
"node-updating",
|
|
52384
52848
|
"server-updated",
|
|
52385
52849
|
"wrapper-update-available"
|
|
52386
52850
|
]
|
|
@@ -52413,7 +52877,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52413
52877
|
{
|
|
52414
52878
|
name: "summarySection",
|
|
52415
52879
|
label: "Summary: this section",
|
|
52416
|
-
description: "The section a per-section summary row is about
|
|
52880
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
52417
52881
|
example: "Batterie scariche",
|
|
52418
52882
|
group: "system",
|
|
52419
52883
|
families: ["rule"],
|
|
@@ -52457,6 +52921,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52457
52921
|
[...RULE_BODY_ONLY],
|
|
52458
52922
|
[...RULE_TEXT],
|
|
52459
52923
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
52924
|
+
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
52460
52925
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
52461
52926
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
52462
52927
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
@@ -52497,6 +52962,8 @@ var STATE_SUMMARY_VARS = [
|
|
|
52497
52962
|
[...RULE_TEXT],
|
|
52498
52963
|
[...RULE_TEXT],
|
|
52499
52964
|
[...RULE_TEXT],
|
|
52965
|
+
[...RULE_TEXT],
|
|
52966
|
+
[...RULE_TEXT],
|
|
52500
52967
|
...STATE_SUMMARY_VARS
|
|
52501
52968
|
];
|
|
52502
52969
|
new Set([
|
|
@@ -53106,7 +53573,7 @@ function buildConnectionFormSchema() {
|
|
|
53106
53573
|
key: "host",
|
|
53107
53574
|
label: "Gateway host / IP",
|
|
53108
53575
|
required: true,
|
|
53109
|
-
placeholder: "192.168.
|
|
53576
|
+
placeholder: "192.168.20.65"
|
|
53110
53577
|
},
|
|
53111
53578
|
{
|
|
53112
53579
|
type: "password",
|