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