@camstack/addon-provider-homematic 1.2.125 → 1.2.127
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
|
@@ -8,7 +8,7 @@ let http = require("http");
|
|
|
8
8
|
let crypto$1 = require("crypto");
|
|
9
9
|
let fs_promises = require("fs/promises");
|
|
10
10
|
let path = require("path");
|
|
11
|
-
//#region ../types/dist/event-category-
|
|
11
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
12
12
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
13
13
|
EventCategory["SystemBoot"] = "system.boot";
|
|
14
14
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -509,15 +509,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
509
509
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
510
510
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
511
511
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
512
|
-
/**
|
|
513
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
514
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
515
|
-
* `createSession`, so running sessions keep their current backend until
|
|
516
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
517
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
518
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
519
|
-
*/
|
|
520
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
521
512
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
522
513
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
523
514
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -5388,7 +5379,7 @@ var ZodIssueCode = {
|
|
|
5388
5379
|
var ZodFirstPartyTypeKind;
|
|
5389
5380
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5390
5381
|
//#endregion
|
|
5391
|
-
//#region ../types/dist/sleep-
|
|
5382
|
+
//#region ../types/dist/sleep-BNeXenvr.mjs
|
|
5392
5383
|
/**
|
|
5393
5384
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5394
5385
|
* window to float samples (D455).
|
|
@@ -6754,32 +6745,12 @@ object({
|
|
|
6754
6745
|
audioCodec: string().optional(),
|
|
6755
6746
|
metadata: record(string(), unknown()).readonly().optional()
|
|
6756
6747
|
});
|
|
6757
|
-
var EncodedPacketSchema = object({
|
|
6758
|
-
type: _enum(["video", "audio"]),
|
|
6759
|
-
data: _instanceof(Uint8Array),
|
|
6760
|
-
pts: number(),
|
|
6761
|
-
dts: number(),
|
|
6762
|
-
keyframe: boolean(),
|
|
6763
|
-
codec: string()
|
|
6764
|
-
});
|
|
6765
|
-
var DecodedFrameSchema = object({
|
|
6766
|
-
data: _instanceof(Uint8Array),
|
|
6767
|
-
width: number(),
|
|
6768
|
-
height: number(),
|
|
6769
|
-
format: _enum([
|
|
6770
|
-
"jpeg",
|
|
6771
|
-
"rgb",
|
|
6772
|
-
"bgr",
|
|
6773
|
-
"yuv420",
|
|
6774
|
-
"gray"
|
|
6775
|
-
]),
|
|
6776
|
-
timestamp: number()
|
|
6777
|
-
});
|
|
6778
6748
|
/**
|
|
6779
6749
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
6780
6750
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
6781
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
6782
|
-
*
|
|
6751
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
6752
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
6753
|
+
* over tRPC / Moleculer.
|
|
6783
6754
|
*
|
|
6784
6755
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
6785
6756
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -6805,50 +6776,6 @@ var FrameHandleSchema = object({
|
|
|
6805
6776
|
slotCount: number().int().positive()
|
|
6806
6777
|
});
|
|
6807
6778
|
/**
|
|
6808
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
6809
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
6810
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
6811
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
6812
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
6813
|
-
*/
|
|
6814
|
-
var FrameHandleFormatSchema = _enum([
|
|
6815
|
-
"rgb",
|
|
6816
|
-
"bgr",
|
|
6817
|
-
"yuv420",
|
|
6818
|
-
"gray"
|
|
6819
|
-
]);
|
|
6820
|
-
/**
|
|
6821
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
6822
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
6823
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
6824
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
6825
|
-
* they asked for with no broker-side conversion.
|
|
6826
|
-
*/
|
|
6827
|
-
var SubscribeFramesInputSchema = object({
|
|
6828
|
-
brokerId: string(),
|
|
6829
|
-
format: FrameHandleFormatSchema,
|
|
6830
|
-
/**
|
|
6831
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
6832
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
6833
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
6834
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
6835
|
-
*/
|
|
6836
|
-
maxFps: number().positive().optional(),
|
|
6837
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
6838
|
-
tag: string().optional()
|
|
6839
|
-
});
|
|
6840
|
-
/**
|
|
6841
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
6842
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
6843
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
6844
|
-
*/
|
|
6845
|
-
var SubscribeFramesResultSchema = object({
|
|
6846
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
6847
|
-
subscriptionId: string(),
|
|
6848
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
6849
|
-
maxFps: number().nonnegative()
|
|
6850
|
-
});
|
|
6851
|
-
/**
|
|
6852
6779
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
6853
6780
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
6854
6781
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -6856,8 +6783,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
6856
6783
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
6857
6784
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
6858
6785
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
6859
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
6860
|
-
*
|
|
6786
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
6787
|
+
* it.
|
|
6861
6788
|
*/
|
|
6862
6789
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
6863
6790
|
var DecodedAudioChunkSchema = object({
|
|
@@ -6875,11 +6802,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
6875
6802
|
format: AudioChunkFormatSchema.optional()
|
|
6876
6803
|
});
|
|
6877
6804
|
/**
|
|
6878
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
6879
|
-
*
|
|
6880
|
-
*
|
|
6881
|
-
*
|
|
6882
|
-
* `pullAudioChunks`.
|
|
6805
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
6806
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
6807
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
6808
|
+
* the consumer drains via `pullAudioChunks`.
|
|
6883
6809
|
*/
|
|
6884
6810
|
var SubscribeAudioChunksInputSchema = object({
|
|
6885
6811
|
brokerId: string(),
|
|
@@ -6910,9 +6836,7 @@ var BrokerStatsSchema = object({
|
|
|
6910
6836
|
"stopped"
|
|
6911
6837
|
]),
|
|
6912
6838
|
inputFps: number(),
|
|
6913
|
-
decodeFps: number(),
|
|
6914
6839
|
encodedSubscribers: number(),
|
|
6915
|
-
decodedSubscribers: number(),
|
|
6916
6840
|
uptimeMs: number(),
|
|
6917
6841
|
bitrateKbps: number(),
|
|
6918
6842
|
idrIntervalMs: number(),
|
|
@@ -6925,14 +6849,6 @@ var BrokerStatsSchema = object({
|
|
|
6925
6849
|
preBufferMs: number(),
|
|
6926
6850
|
preBufferPackets: number(),
|
|
6927
6851
|
/**
|
|
6928
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
6929
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
6930
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
6931
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
6932
|
-
* a separate cap call per broker.
|
|
6933
|
-
*/
|
|
6934
|
-
decoderNodeId: string().nullable(),
|
|
6935
|
-
/**
|
|
6936
6852
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
6937
6853
|
* when the stream has no audio track or the broker is in cold start.
|
|
6938
6854
|
* `supported = false` means the codec was detected but the local
|
|
@@ -10268,70 +10184,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
10268
10184
|
"backup"
|
|
10269
10185
|
]).optional()
|
|
10270
10186
|
});
|
|
10271
|
-
var DecoderStatsSchema = object({
|
|
10272
|
-
inputFps: number(),
|
|
10273
|
-
outputFps: number(),
|
|
10274
|
-
avgDecodeTimeMs: number(),
|
|
10275
|
-
droppedFrames: number(),
|
|
10276
|
-
/**
|
|
10277
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
10278
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
10279
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
10280
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
10281
|
-
*/
|
|
10282
|
-
lagMs: number().optional(),
|
|
10283
|
-
effectiveFps: number().optional(),
|
|
10284
|
-
adaptiveFps: number().optional()
|
|
10285
|
-
});
|
|
10286
|
-
var DecoderSessionConfigSchema = object({
|
|
10287
|
-
codec: string(),
|
|
10288
|
-
maxFps: number().default(0),
|
|
10289
|
-
outputFormat: _enum([
|
|
10290
|
-
"jpeg",
|
|
10291
|
-
"rgb",
|
|
10292
|
-
"bgr",
|
|
10293
|
-
"yuv420",
|
|
10294
|
-
"gray"
|
|
10295
|
-
]).default("jpeg"),
|
|
10296
|
-
scale: number().default(1),
|
|
10297
|
-
width: number().optional(),
|
|
10298
|
-
height: number().optional(),
|
|
10299
|
-
/**
|
|
10300
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
10301
|
-
* because the cap is generic (any caller could request decode), but
|
|
10302
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
10303
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
10304
|
-
* sendPacket errors on a single hung camera).
|
|
10305
|
-
*/
|
|
10306
|
-
deviceId: number().int().nonnegative().optional(),
|
|
10307
|
-
/**
|
|
10308
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
10309
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
10310
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
10311
|
-
* profile cleanly.
|
|
10312
|
-
*/
|
|
10313
|
-
tag: string().optional(),
|
|
10314
|
-
/**
|
|
10315
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
10316
|
-
*
|
|
10317
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
10318
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
10319
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
10320
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
10321
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
10322
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
10323
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
10324
|
-
*/
|
|
10325
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
10326
|
-
/**
|
|
10327
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
10328
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
10329
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
10330
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
10331
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
10332
|
-
*/
|
|
10333
|
-
debug: boolean().optional()
|
|
10334
|
-
});
|
|
10335
10187
|
/**
|
|
10336
10188
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
10337
10189
|
* an addon declares its channels in.
|
|
@@ -10474,6 +10326,26 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10474
10326
|
"balanced",
|
|
10475
10327
|
"strict"
|
|
10476
10328
|
]);
|
|
10329
|
+
/** Steps whose effect a root label can BE. */
|
|
10330
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10331
|
+
"animal-classifier",
|
|
10332
|
+
"vehicle-classifier",
|
|
10333
|
+
"package-detection"
|
|
10334
|
+
];
|
|
10335
|
+
/** Steps whose box a root detection can BE. */
|
|
10336
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10337
|
+
/**
|
|
10338
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
10339
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
10340
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
10341
|
+
* no camera tree carries.)
|
|
10342
|
+
*/
|
|
10343
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
10344
|
+
[
|
|
10345
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
10346
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
10347
|
+
...MASK_SUPPLY_STEP_IDS
|
|
10348
|
+
];
|
|
10477
10349
|
var MODEL_FORMATS = [
|
|
10478
10350
|
"onnx",
|
|
10479
10351
|
"coreml",
|
|
@@ -10502,7 +10374,53 @@ var ModelFormatEntrySchema = object({
|
|
|
10502
10374
|
/** Multi-file payload (directory members or sibling files). */
|
|
10503
10375
|
files: array(string()).readonly().optional(),
|
|
10504
10376
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
10505
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
10377
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
10378
|
+
/**
|
|
10379
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
10380
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
10381
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
10382
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
10383
|
+
* node records the revision it downloaded next to the file
|
|
10384
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
10385
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
10386
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
10387
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
10388
|
+
*/
|
|
10389
|
+
revision: string().min(1).optional()
|
|
10390
|
+
});
|
|
10391
|
+
/**
|
|
10392
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
10393
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
10394
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
10395
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
10396
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
10397
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
10398
|
+
*/
|
|
10399
|
+
var ModelOnDiskStateSchema = _enum([
|
|
10400
|
+
"current",
|
|
10401
|
+
"stale",
|
|
10402
|
+
"missing"
|
|
10403
|
+
]);
|
|
10404
|
+
/**
|
|
10405
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
10406
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
10407
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
10408
|
+
*/
|
|
10409
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
10410
|
+
"fp32",
|
|
10411
|
+
"fp16",
|
|
10412
|
+
"int8"
|
|
10413
|
+
]);
|
|
10414
|
+
/**
|
|
10415
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
10416
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
10417
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
10418
|
+
*/
|
|
10419
|
+
var PipelineModelFormatStatusSchema = object({
|
|
10420
|
+
downloaded: boolean(),
|
|
10421
|
+
sizeMB: number(),
|
|
10422
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
10423
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
10506
10424
|
});
|
|
10507
10425
|
/**
|
|
10508
10426
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -10543,11 +10461,11 @@ var ModelVariantGroupSchema = object({
|
|
|
10543
10461
|
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
10544
10462
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
10545
10463
|
/**
|
|
10546
|
-
*
|
|
10547
|
-
*
|
|
10548
|
-
*
|
|
10464
|
+
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
10465
|
+
* an alternate training of the same family (Scrypted `relu_test`); chip
|
|
10466
|
+
* label is "Test".
|
|
10549
10467
|
*/
|
|
10550
|
-
optimization: _enum(["standard", "
|
|
10468
|
+
optimization: _enum(["standard", "test"]).optional(),
|
|
10551
10469
|
/**
|
|
10552
10470
|
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
10553
10471
|
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
@@ -10570,9 +10488,10 @@ var ModelProviderIdSchema = _enum([
|
|
|
10570
10488
|
* are per upstream. A persisted custom-model row written when this field was a
|
|
10571
10489
|
* string still parses — the string is lifted into `{ weights }`.
|
|
10572
10490
|
*
|
|
10573
|
-
* Every licence surface (the
|
|
10574
|
-
*
|
|
10575
|
-
*
|
|
10491
|
+
* Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
|
|
10492
|
+
* model table) is GENERATED from these records by
|
|
10493
|
+
* `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
|
|
10494
|
+
* `camstack/docs` → `/docs/detection/models`.
|
|
10576
10495
|
*/
|
|
10577
10496
|
var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
|
|
10578
10497
|
/** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
|
|
@@ -10605,6 +10524,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10605
10524
|
/** True when the weights or their data forbid commercial use. */
|
|
10606
10525
|
nonCommercial: boolean().optional()
|
|
10607
10526
|
}));
|
|
10527
|
+
/**
|
|
10528
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10529
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10530
|
+
*
|
|
10531
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10532
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10533
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10534
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10535
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10536
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10537
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
10538
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
10539
|
+
* detection in the shape that step produces. Derived from the model's
|
|
10540
|
+
* postprocessor on read, never stored by an import.
|
|
10541
|
+
*/
|
|
10542
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
10543
|
+
object({
|
|
10544
|
+
kind: literal("label"),
|
|
10545
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10546
|
+
labelToEffect: record(string(), string()),
|
|
10547
|
+
uncovered: array(string()).readonly()
|
|
10548
|
+
}),
|
|
10549
|
+
object({
|
|
10550
|
+
kind: literal("crop"),
|
|
10551
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10552
|
+
rootLabels: array(string()).readonly(),
|
|
10553
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10554
|
+
childClass: _enum(["plate", "face"]),
|
|
10555
|
+
/**
|
|
10556
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10557
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10558
|
+
* stored by an import.
|
|
10559
|
+
*/
|
|
10560
|
+
rootInputPx: number().int().positive().optional()
|
|
10561
|
+
}),
|
|
10562
|
+
object({
|
|
10563
|
+
kind: literal("mask"),
|
|
10564
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
10565
|
+
})
|
|
10566
|
+
]);
|
|
10608
10567
|
var ModelCatalogEntrySchema = object({
|
|
10609
10568
|
id: string(),
|
|
10610
10569
|
name: string(),
|
|
@@ -10670,6 +10629,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
10670
10629
|
*/
|
|
10671
10630
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
10672
10631
|
/**
|
|
10632
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
10633
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
10634
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
10635
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
10636
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
10637
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
10638
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
10639
|
+
*/
|
|
10640
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10641
|
+
/**
|
|
10642
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
10643
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
10644
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
10645
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
10646
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
10647
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
10648
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
10649
|
+
*/
|
|
10650
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
10651
|
+
/**
|
|
10652
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
10653
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
10654
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
10655
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
10656
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
10657
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
10658
|
+
*/
|
|
10659
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10660
|
+
/**
|
|
10673
10661
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
10674
10662
|
* onto the canonical template) before this step runs, instead of a plain
|
|
10675
10663
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -10731,6 +10719,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
10731
10719
|
*/
|
|
10732
10720
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10733
10721
|
/**
|
|
10722
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10723
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10724
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10725
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10726
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10727
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10728
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10729
|
+
*/
|
|
10730
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10731
|
+
/**
|
|
10734
10732
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10735
10733
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
10736
10734
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -12381,13 +12379,6 @@ var BrokerRtspClientSchema = object({
|
|
|
12381
12379
|
lastRtpAt: number(),
|
|
12382
12380
|
bytesSent: number()
|
|
12383
12381
|
});
|
|
12384
|
-
var BrokerDecodedClientSchema = object({
|
|
12385
|
-
tag: string(),
|
|
12386
|
-
subscribedAt: number(),
|
|
12387
|
-
maxFps: number(),
|
|
12388
|
-
framesDelivered: number(),
|
|
12389
|
-
framesDropped: number()
|
|
12390
|
-
});
|
|
12391
12382
|
var BrokerAudioClientSchema = object({
|
|
12392
12383
|
tag: string(),
|
|
12393
12384
|
subscribedAt: number(),
|
|
@@ -12479,7 +12470,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
12479
12470
|
});
|
|
12480
12471
|
var BrokerClientsSchema = object({
|
|
12481
12472
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
12482
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
12483
12473
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
12484
12474
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
12485
12475
|
pipeClients: number(),
|
|
@@ -12848,11 +12838,7 @@ method(object({
|
|
|
12848
12838
|
auth: "admin"
|
|
12849
12839
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
12850
12840
|
brokerId: string(),
|
|
12851
|
-
channel: _enum([
|
|
12852
|
-
"rtsp",
|
|
12853
|
-
"decoded",
|
|
12854
|
-
"audio"
|
|
12855
|
-
]),
|
|
12841
|
+
channel: _enum(["rtsp", "audio"]),
|
|
12856
12842
|
handle: string()
|
|
12857
12843
|
}), object({ killed: boolean() }), {
|
|
12858
12844
|
kind: "mutation",
|
|
@@ -12887,10 +12873,7 @@ method(object({
|
|
|
12887
12873
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
12888
12874
|
subscriptionId: string(),
|
|
12889
12875
|
maxCount: number().int().positive().default(8)
|
|
12890
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
12891
|
-
subscriptionId: string(),
|
|
12892
|
-
maxCount: number().int().positive().default(4)
|
|
12893
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12876
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12894
12877
|
brokerId: string(),
|
|
12895
12878
|
seconds: number().min(0).max(30)
|
|
12896
12879
|
}), _void(), {
|
|
@@ -14149,54 +14132,12 @@ id: union([string(), number()]) }), {
|
|
|
14149
14132
|
kind: "mutation",
|
|
14150
14133
|
auth: "admin"
|
|
14151
14134
|
});
|
|
14152
|
-
|
|
14153
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14154
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14155
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14156
|
-
*/
|
|
14157
|
-
var ShmRingStatsSchema = object({
|
|
14158
|
-
sessionId: string(),
|
|
14159
|
-
slotCount: number().int(),
|
|
14160
|
-
slotByteLength: number().int(),
|
|
14161
|
-
segmentBytes: number().int(),
|
|
14162
|
-
budgetMb: number().int(),
|
|
14163
|
-
framesWritten: number().int(),
|
|
14164
|
-
getFrameHits: number().int(),
|
|
14165
|
-
getFrameMisses: number().int()
|
|
14166
|
-
});
|
|
14167
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14135
|
+
method(_void(), object({
|
|
14168
14136
|
id: string(),
|
|
14169
14137
|
name: string(),
|
|
14170
|
-
isPullMode: boolean().optional(),
|
|
14171
|
-
priority: number().optional(),
|
|
14172
14138
|
hwaccel: string().optional(),
|
|
14173
14139
|
probedBestHwaccel: string().optional()
|
|
14174
|
-
})), method(
|
|
14175
|
-
sessionId: string(),
|
|
14176
|
-
nodeId: string()
|
|
14177
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14178
|
-
sessionId: string(),
|
|
14179
|
-
packet: EncodedPacketSchema
|
|
14180
|
-
}), _void()), method(object({
|
|
14181
|
-
sessionId: string(),
|
|
14182
|
-
url: string()
|
|
14183
|
-
}), _void()), method(object({
|
|
14184
|
-
sessionId: string(),
|
|
14185
|
-
maxCount: number().default(1),
|
|
14186
|
-
waitMs: number().optional()
|
|
14187
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14188
|
-
sessionId: string(),
|
|
14189
|
-
maxCount: number().default(1),
|
|
14190
|
-
waitMs: number().optional()
|
|
14191
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14192
|
-
sessionId: string(),
|
|
14193
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14194
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14195
|
-
sessionId: string(),
|
|
14196
|
-
codec: string(),
|
|
14197
|
-
outputFormat: string(),
|
|
14198
|
-
createdAtMs: number()
|
|
14199
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14140
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14200
14141
|
kind: "mutation",
|
|
14201
14142
|
auth: "admin"
|
|
14202
14143
|
});
|
|
@@ -14252,7 +14193,7 @@ DeviceType.Camera;
|
|
|
14252
14193
|
* This matters here more than anywhere else in the repo, because every provider
|
|
14253
14194
|
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
14254
14195
|
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
14255
|
-
* and `http://admin:hunter2@192.168.
|
|
14196
|
+
* and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
|
|
14256
14197
|
* camera's own page will ask for its own login. That is correct, and pre-
|
|
14257
14198
|
* filling it is the operator's business, not ours.
|
|
14258
14199
|
*
|
|
@@ -16358,6 +16299,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
16358
16299
|
kind: "mutation",
|
|
16359
16300
|
auth: "admin"
|
|
16360
16301
|
});
|
|
16302
|
+
var HUB_ADDRESS_ROLES = [
|
|
16303
|
+
"appConnections",
|
|
16304
|
+
"notificationTaps",
|
|
16305
|
+
"internal",
|
|
16306
|
+
"publicEndpoint"
|
|
16307
|
+
];
|
|
16361
16308
|
/**
|
|
16362
16309
|
* Transport bounds for AI capability methods.
|
|
16363
16310
|
*
|
|
@@ -17554,7 +17501,7 @@ method(object({
|
|
|
17554
17501
|
timeoutMs: 6e5
|
|
17555
17502
|
});
|
|
17556
17503
|
method(object({
|
|
17557
|
-
|
|
17504
|
+
targetNodeId: string(),
|
|
17558
17505
|
modelId: string(),
|
|
17559
17506
|
format: _enum(MODEL_FORMATS),
|
|
17560
17507
|
entry: ModelCatalogEntrySchema
|
|
@@ -18960,6 +18907,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
18960
18907
|
"stream-offline",
|
|
18961
18908
|
"node-online",
|
|
18962
18909
|
"node-offline",
|
|
18910
|
+
"node-restarting",
|
|
18911
|
+
"node-updating",
|
|
18963
18912
|
"node-inference-unavailable",
|
|
18964
18913
|
"detection-blind",
|
|
18965
18914
|
"addon-crash-loop",
|
|
@@ -20058,8 +20007,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
20058
20007
|
disabledTargetIds: array(string()).default([])
|
|
20059
20008
|
});
|
|
20060
20009
|
/**
|
|
20061
|
-
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that
|
|
20062
|
-
* still-true state. `
|
|
20010
|
+
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
20011
|
+
* report a still-true state. `addons` is the crash-looped addons only and
|
|
20012
|
+
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
20063
20013
|
* job is not an open state, and the alarm stays instant.
|
|
20064
20014
|
*/
|
|
20065
20015
|
var NcStateSummarySectionIdSchema = _enum([
|
|
@@ -20071,6 +20021,7 @@ var NcStateSummarySectionIdSchema = _enum([
|
|
|
20071
20021
|
"detection-blind",
|
|
20072
20022
|
"nodes",
|
|
20073
20023
|
"addons",
|
|
20024
|
+
"addon-updates",
|
|
20074
20025
|
"updates"
|
|
20075
20026
|
]);
|
|
20076
20027
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
@@ -20551,7 +20502,25 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
20551
20502
|
* When this mode may be armed. Absent / null = always allowed (same as a
|
|
20552
20503
|
* rule with no `schedule`). Evaluated with {@link isScheduleActive}.
|
|
20553
20504
|
*/
|
|
20554
|
-
schedule: NcScheduleSchema.optional()
|
|
20505
|
+
schedule: NcScheduleSchema.optional(),
|
|
20506
|
+
/**
|
|
20507
|
+
* D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
|
|
20508
|
+
* intrusion naming the locations)? Absent = false — the entry-delay notification is the
|
|
20509
|
+
* only one, and the matches ride the triggered notification's mosaic (D705).
|
|
20510
|
+
*/
|
|
20511
|
+
notifyDuringEntryDelay: boolean().optional(),
|
|
20512
|
+
/**
|
|
20513
|
+
* D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
|
|
20514
|
+
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
20515
|
+
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
20516
|
+
*/
|
|
20517
|
+
notifySensorRewatched: boolean().optional(),
|
|
20518
|
+
/**
|
|
20519
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
20520
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
20521
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
20522
|
+
*/
|
|
20523
|
+
notifySensorIgnored: boolean().optional()
|
|
20555
20524
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20556
20525
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20557
20526
|
mode: AlarmArmModeSchema,
|
|
@@ -20560,7 +20529,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
20560
20529
|
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
|
|
20561
20530
|
postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
|
|
20562
20531
|
/** Set a schedule, or `null` to clear (mode always allowed again). */
|
|
20563
|
-
schedule: NcScheduleSchema.nullable().optional()
|
|
20532
|
+
schedule: NcScheduleSchema.nullable().optional(),
|
|
20533
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20534
|
+
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
20535
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20536
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
20537
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
20538
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
20564
20539
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20565
20540
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20566
20541
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -21521,45 +21496,25 @@ Object.freeze(Object.fromEntries([{
|
|
|
21521
21496
|
label: "Face recognition model",
|
|
21522
21497
|
defaultModelId: "auraface-r100",
|
|
21523
21498
|
indexName: "the enrolled face gallery",
|
|
21524
|
-
options: [
|
|
21525
|
-
|
|
21526
|
-
|
|
21527
|
-
|
|
21528
|
-
},
|
|
21529
|
-
{
|
|
21530
|
-
id: "arcface-r100",
|
|
21531
|
-
label: "ArcFace (ResNet34)"
|
|
21532
|
-
},
|
|
21533
|
-
{
|
|
21534
|
-
id: "inception-resnet-v1",
|
|
21535
|
-
label: "Inception ResNet V1"
|
|
21536
|
-
}
|
|
21537
|
-
]
|
|
21499
|
+
options: [{
|
|
21500
|
+
id: "auraface-r100",
|
|
21501
|
+
label: "AuraFace R100"
|
|
21502
|
+
}]
|
|
21538
21503
|
}, {
|
|
21539
21504
|
stepId: "clip-embedding",
|
|
21540
21505
|
label: "Semantic search model",
|
|
21541
|
-
defaultModelId: "
|
|
21506
|
+
defaultModelId: "siglip2-b16-224",
|
|
21542
21507
|
indexName: "the object semantic-search index",
|
|
21543
|
-
options: [
|
|
21544
|
-
|
|
21545
|
-
|
|
21546
|
-
|
|
21547
|
-
},
|
|
21548
|
-
{
|
|
21549
|
-
id: "mobileclip-s2",
|
|
21550
|
-
label: "MobileCLIP S2"
|
|
21551
|
-
},
|
|
21552
|
-
{
|
|
21553
|
-
id: "siglip2-b16-224",
|
|
21554
|
-
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21555
|
-
}
|
|
21556
|
-
]
|
|
21508
|
+
options: [{
|
|
21509
|
+
id: "siglip2-b16-224",
|
|
21510
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21511
|
+
}]
|
|
21557
21512
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
21558
21513
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
21559
21514
|
stepId: "face-embedding",
|
|
21560
21515
|
key: "minLandmarkFaceSize",
|
|
21561
|
-
label: "Min face size
|
|
21562
|
-
description: "
|
|
21516
|
+
label: "Min face size to embed (detection-frame px)",
|
|
21517
|
+
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.",
|
|
21563
21518
|
type: "slider",
|
|
21564
21519
|
min: 0,
|
|
21565
21520
|
max: 64,
|
|
@@ -23479,6 +23434,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23479
23434
|
timestamp: number()
|
|
23480
23435
|
});
|
|
23481
23436
|
/**
|
|
23437
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
23438
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
23439
|
+
*/
|
|
23440
|
+
var SuppliedRootOutputSchema = object({
|
|
23441
|
+
stepId: string(),
|
|
23442
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
23443
|
+
modelId: string(),
|
|
23444
|
+
detections: array(object({
|
|
23445
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
23446
|
+
bbox: tuple([
|
|
23447
|
+
number(),
|
|
23448
|
+
number(),
|
|
23449
|
+
number(),
|
|
23450
|
+
number()
|
|
23451
|
+
]),
|
|
23452
|
+
score: number(),
|
|
23453
|
+
/**
|
|
23454
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
23455
|
+
* detector already re-found inside a root face box (D730), so its
|
|
23456
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
23457
|
+
*/
|
|
23458
|
+
landmarks: array(object({
|
|
23459
|
+
x: number(),
|
|
23460
|
+
y: number()
|
|
23461
|
+
})).optional()
|
|
23462
|
+
})).min(1)
|
|
23463
|
+
});
|
|
23464
|
+
/**
|
|
23482
23465
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23483
23466
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23484
23467
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -23526,7 +23509,7 @@ var FrameRefSchema = object({
|
|
|
23526
23509
|
timestamp: number(),
|
|
23527
23510
|
capturedAt: number().optional()
|
|
23528
23511
|
});
|
|
23529
|
-
var ModelFormatSchema$
|
|
23512
|
+
var ModelFormatSchema$2 = _enum([
|
|
23530
23513
|
"onnx",
|
|
23531
23514
|
"coreml",
|
|
23532
23515
|
"openvino",
|
|
@@ -23544,7 +23527,7 @@ var PipelineSlotSchema = _enum([
|
|
|
23544
23527
|
var PipelineEngineChoiceSchema = object({
|
|
23545
23528
|
runtime: literal("python"),
|
|
23546
23529
|
backend: string(),
|
|
23547
|
-
format: ModelFormatSchema$
|
|
23530
|
+
format: ModelFormatSchema$2,
|
|
23548
23531
|
device: string().optional()
|
|
23549
23532
|
});
|
|
23550
23533
|
/**
|
|
@@ -23583,32 +23566,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
23583
23566
|
group: string().optional(),
|
|
23584
23567
|
settings: record(string(), unknown()).optional()
|
|
23585
23568
|
}));
|
|
23586
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
23587
|
-
addonId: string(),
|
|
23588
|
-
enabled: boolean(),
|
|
23589
|
-
modelId: string(),
|
|
23590
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
23591
|
-
settings: record(string(), unknown()).optional()
|
|
23592
|
-
}));
|
|
23593
|
-
var PipelineTemplateSchema$1 = object({
|
|
23594
|
-
id: string(),
|
|
23595
|
-
name: string(),
|
|
23596
|
-
createdAt: string(),
|
|
23597
|
-
updatedAt: string(),
|
|
23598
|
-
engine: PipelineEngineChoiceSchema,
|
|
23599
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
23600
|
-
});
|
|
23601
23569
|
var PipelineModelOptionSchema = object({
|
|
23602
23570
|
id: string(),
|
|
23603
23571
|
name: string(),
|
|
23604
|
-
formats: record(string(),
|
|
23605
|
-
downloaded: boolean(),
|
|
23606
|
-
sizeMB: number()
|
|
23607
|
-
})),
|
|
23572
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
23608
23573
|
group: ModelVariantGroupSchema.optional(),
|
|
23609
23574
|
legacy: boolean().optional(),
|
|
23610
23575
|
provider: ModelProviderIdSchema.optional(),
|
|
23611
|
-
defaultConfidence: number().optional()
|
|
23576
|
+
defaultConfidence: number().optional(),
|
|
23577
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
23612
23578
|
});
|
|
23613
23579
|
var ConfigFieldBridge = custom();
|
|
23614
23580
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -23770,6 +23736,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23770
23736
|
}), {
|
|
23771
23737
|
kind: "mutation",
|
|
23772
23738
|
auth: "admin"
|
|
23739
|
+
}), method(object({
|
|
23740
|
+
nodeId: string(),
|
|
23741
|
+
deviceIds: array(number()).readonly().optional(),
|
|
23742
|
+
dryRun: boolean()
|
|
23743
|
+
}), object({
|
|
23744
|
+
entries: array(object({
|
|
23745
|
+
deviceId: number(),
|
|
23746
|
+
keys: array(string()).readonly()
|
|
23747
|
+
})).readonly(),
|
|
23748
|
+
refused: array(object({
|
|
23749
|
+
deviceId: number(),
|
|
23750
|
+
reason: string()
|
|
23751
|
+
})).readonly()
|
|
23752
|
+
}), {
|
|
23753
|
+
kind: "mutation",
|
|
23754
|
+
auth: "admin"
|
|
23773
23755
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
23774
23756
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
23775
23757
|
deviceKey: string(),
|
|
@@ -23795,22 +23777,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23795
23777
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
23796
23778
|
steps: array(PipelineStepInputSchema),
|
|
23797
23779
|
deviceKey: string().optional()
|
|
23798
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
23799
|
-
name: string(),
|
|
23800
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
23801
|
-
engine: PipelineEngineChoiceSchema
|
|
23802
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
23803
|
-
id: string(),
|
|
23804
|
-
name: string().optional(),
|
|
23805
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
23806
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23780
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23807
23781
|
addonId: string(),
|
|
23808
23782
|
modelId: string(),
|
|
23809
|
-
format: ModelFormatSchema$
|
|
23783
|
+
format: ModelFormatSchema$2
|
|
23810
23784
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
23811
23785
|
addonId: string(),
|
|
23812
23786
|
modelId: string(),
|
|
23813
|
-
format: ModelFormatSchema$
|
|
23787
|
+
format: ModelFormatSchema$2
|
|
23814
23788
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
23815
23789
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23816
23790
|
frame: FrameInputSchema.optional(),
|
|
@@ -23876,7 +23850,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23876
23850
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
23877
23851
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
23878
23852
|
*/
|
|
23879
|
-
replay: literal(true).optional()
|
|
23853
|
+
replay: literal(true).optional(),
|
|
23854
|
+
/**
|
|
23855
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
23856
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
23857
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
23858
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
23859
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
23860
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
23861
|
+
*/
|
|
23862
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
23880
23863
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
23881
23864
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23882
23865
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -23958,6 +23941,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23958
23941
|
filename: string().optional(),
|
|
23959
23942
|
settings: record(string(), unknown()).optional()
|
|
23960
23943
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
23944
|
+
/**
|
|
23945
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
23946
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
23947
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
23948
|
+
* schemas are what crosses the cap boundary.
|
|
23949
|
+
*/
|
|
23950
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
23951
|
+
/** The operator's range for it. */
|
|
23952
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
23953
|
+
min: 1,
|
|
23954
|
+
max: 8
|
|
23955
|
+
};
|
|
23956
|
+
var HardwareClassIdSchema = _enum([
|
|
23957
|
+
"intel-core-ultra",
|
|
23958
|
+
"intel-n-series",
|
|
23959
|
+
"apple-m-base",
|
|
23960
|
+
"apple-m-pro",
|
|
23961
|
+
"unknown"
|
|
23962
|
+
]);
|
|
23963
|
+
var AcceleratorKindSchema = _enum([
|
|
23964
|
+
"intel-npu",
|
|
23965
|
+
"intel-igpu",
|
|
23966
|
+
"x86-cpu",
|
|
23967
|
+
"arm-cpu",
|
|
23968
|
+
"apple-ane",
|
|
23969
|
+
"coral"
|
|
23970
|
+
]);
|
|
23971
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
23972
|
+
object({
|
|
23973
|
+
kind: literal("capacity"),
|
|
23974
|
+
sessions: number(),
|
|
23975
|
+
minSessions: number()
|
|
23976
|
+
}),
|
|
23977
|
+
object({
|
|
23978
|
+
kind: literal("tie-faster"),
|
|
23979
|
+
over: string(),
|
|
23980
|
+
recallDelta: number()
|
|
23981
|
+
}),
|
|
23982
|
+
object({
|
|
23983
|
+
kind: literal("stepped-down"),
|
|
23984
|
+
from: string(),
|
|
23985
|
+
to: string(),
|
|
23986
|
+
limitedBy: string()
|
|
23987
|
+
}),
|
|
23988
|
+
object({
|
|
23989
|
+
kind: literal("no-fit-lightest"),
|
|
23990
|
+
sessions: number(),
|
|
23991
|
+
minSessions: number()
|
|
23992
|
+
}),
|
|
23993
|
+
object({
|
|
23994
|
+
kind: literal("derived-latency"),
|
|
23995
|
+
modelId: string()
|
|
23996
|
+
}),
|
|
23997
|
+
object({ kind: literal("cpu-device") }),
|
|
23998
|
+
object({ kind: literal("coral-untouched") }),
|
|
23999
|
+
object({ kind: literal("device-disabled") }),
|
|
24000
|
+
object({ kind: literal("device-unavailable") }),
|
|
24001
|
+
object({ kind: literal("node-offline") }),
|
|
24002
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
24003
|
+
object({
|
|
24004
|
+
kind: literal("no-measured-data"),
|
|
24005
|
+
hardwareClass: HardwareClassIdSchema
|
|
24006
|
+
}),
|
|
24007
|
+
object({
|
|
24008
|
+
kind: literal("no-family-build"),
|
|
24009
|
+
format: ModelFormatSchema$1
|
|
24010
|
+
})
|
|
24011
|
+
]);
|
|
24012
|
+
var DeviceModelChoiceSchema = object({
|
|
24013
|
+
modelId: string(),
|
|
24014
|
+
p50Ms: number(),
|
|
24015
|
+
fps: number(),
|
|
24016
|
+
measured: boolean(),
|
|
24017
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
24018
|
+
capacitySessions: number(),
|
|
24019
|
+
personRecall: number()
|
|
24020
|
+
});
|
|
24021
|
+
var DeviceRecommendationSchema = object({
|
|
24022
|
+
deviceKey: string(),
|
|
24023
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
24024
|
+
enabled: boolean(),
|
|
24025
|
+
available: boolean(),
|
|
24026
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
24027
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
24028
|
+
});
|
|
24029
|
+
var NodeRecommendationSchema = object({
|
|
24030
|
+
nodeId: string(),
|
|
24031
|
+
reachable: boolean(),
|
|
24032
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
24033
|
+
cpuModel: string().nullable(),
|
|
24034
|
+
skipped: boolean(),
|
|
24035
|
+
acceleratorModelId: string().nullable(),
|
|
24036
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
24037
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
24038
|
+
});
|
|
24039
|
+
var ModelPinChangeSchema = object({
|
|
24040
|
+
stepId: string(),
|
|
24041
|
+
before: string().nullable(),
|
|
24042
|
+
after: string().nullable()
|
|
24043
|
+
});
|
|
24044
|
+
var NodeDeviceChangeSchema = object({
|
|
24045
|
+
nodeId: string(),
|
|
24046
|
+
deviceKey: string(),
|
|
24047
|
+
madeExplicit: boolean(),
|
|
24048
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
24049
|
+
thresholds: array(object({
|
|
24050
|
+
stepId: string(),
|
|
24051
|
+
keys: array(string()).readonly()
|
|
24052
|
+
})).readonly()
|
|
24053
|
+
});
|
|
24054
|
+
var CameraOverrideClearSchema = object({
|
|
24055
|
+
deviceId: number(),
|
|
24056
|
+
source: _enum(["step-override", "wholesale"]),
|
|
24057
|
+
nodeId: string(),
|
|
24058
|
+
deviceKey: string().nullable(),
|
|
24059
|
+
stepId: string(),
|
|
24060
|
+
modelIdBefore: string().nullable(),
|
|
24061
|
+
keys: array(string()).readonly()
|
|
24062
|
+
});
|
|
24063
|
+
var DetectorStoreClearSchema = object({
|
|
24064
|
+
deviceId: number(),
|
|
24065
|
+
keys: array(string()).readonly()
|
|
24066
|
+
});
|
|
24067
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
24068
|
+
object({
|
|
24069
|
+
kind: literal("detector-store-cluster-wide"),
|
|
24070
|
+
skippedNodes: array(string()).readonly()
|
|
24071
|
+
}),
|
|
24072
|
+
object({
|
|
24073
|
+
kind: literal("detector-store-unreadable"),
|
|
24074
|
+
error: string()
|
|
24075
|
+
}),
|
|
24076
|
+
object({
|
|
24077
|
+
kind: literal("coral-enabled"),
|
|
24078
|
+
nodeId: string(),
|
|
24079
|
+
deviceKey: string()
|
|
24080
|
+
})
|
|
24081
|
+
]);
|
|
24082
|
+
var AutoTuneOptionsSchema = object({
|
|
24083
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
24084
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24085
|
+
/**
|
|
24086
|
+
* The least number of parallel sessions every device must sustain at the
|
|
24087
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
24088
|
+
* that reaches it wins.
|
|
24089
|
+
*/
|
|
24090
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24091
|
+
});
|
|
24092
|
+
var AutoTunePlanSchema = object({
|
|
24093
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
24094
|
+
planHash: string(),
|
|
24095
|
+
family: literal("yolov9"),
|
|
24096
|
+
headroom: number(),
|
|
24097
|
+
minSessionsPerDevice: number(),
|
|
24098
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
24099
|
+
cameraFps: number(),
|
|
24100
|
+
generatedAt: number(),
|
|
24101
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
24102
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
24103
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
24104
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
24105
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
24106
|
+
});
|
|
24107
|
+
var AutoTuneApplyInputSchema = object({
|
|
24108
|
+
planHash: string(),
|
|
24109
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24110
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24111
|
+
});
|
|
24112
|
+
var AutoTunePhaseResultSchema = object({
|
|
24113
|
+
phase: _enum([
|
|
24114
|
+
"download",
|
|
24115
|
+
"camera-overrides",
|
|
24116
|
+
"detector-thresholds",
|
|
24117
|
+
"node-models",
|
|
24118
|
+
"redispatch"
|
|
24119
|
+
]),
|
|
24120
|
+
ok: boolean(),
|
|
24121
|
+
detail: string()
|
|
24122
|
+
});
|
|
24123
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
24124
|
+
object({
|
|
24125
|
+
kind: literal("applied"),
|
|
24126
|
+
planHash: string(),
|
|
24127
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24128
|
+
}),
|
|
24129
|
+
object({
|
|
24130
|
+
kind: literal("aborted"),
|
|
24131
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24132
|
+
}),
|
|
24133
|
+
object({
|
|
24134
|
+
kind: literal("stale"),
|
|
24135
|
+
plan: AutoTunePlanSchema
|
|
24136
|
+
}),
|
|
24137
|
+
object({
|
|
24138
|
+
kind: literal("refused"),
|
|
24139
|
+
reason: _enum(["apply-in-progress"])
|
|
24140
|
+
})
|
|
24141
|
+
]);
|
|
24142
|
+
/**
|
|
24143
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
24144
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
24145
|
+
* hardware share suggestion and the stale device pins.
|
|
24146
|
+
*/
|
|
24147
|
+
/**
|
|
24148
|
+
* How a new detection session picks its node and device.
|
|
24149
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
24150
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
24151
|
+
* weight only bites once a node already holds a session.
|
|
24152
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
24153
|
+
* full or drowning node yields to a free one (D748).
|
|
24154
|
+
*/
|
|
24155
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
24156
|
+
var LoadBalancingSharesInputSchema = object({
|
|
24157
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
24158
|
+
nodes: record(string(), number().positive()).default({}),
|
|
24159
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
24160
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
24161
|
+
});
|
|
24162
|
+
var PlacementStatsInputSchema = object({
|
|
24163
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
24164
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
24165
|
+
var PlacementDeviceStatsSchema = object({
|
|
24166
|
+
deviceKey: string(),
|
|
24167
|
+
/** Sessions running on this device now. */
|
|
24168
|
+
sessionsNow: number(),
|
|
24169
|
+
/** Sessions started on this device inside the window. */
|
|
24170
|
+
sessionsStarted: number(),
|
|
24171
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
24172
|
+
observedShare: number().nullable()
|
|
24173
|
+
});
|
|
24174
|
+
var PlacementNodeStatsSchema = object({
|
|
24175
|
+
nodeId: string(),
|
|
24176
|
+
sessionsNow: number(),
|
|
24177
|
+
sessionsStarted: number(),
|
|
24178
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
24179
|
+
observedShare: number().nullable(),
|
|
24180
|
+
/** Most sessions this node ran at once inside the window. */
|
|
24181
|
+
peakSessions: number(),
|
|
24182
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
24183
|
+
yieldsAway: number(),
|
|
24184
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
24185
|
+
});
|
|
24186
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
24187
|
+
var StaleDevicePinSchema = object({
|
|
24188
|
+
deviceId: number(),
|
|
24189
|
+
deviceKey: string(),
|
|
24190
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
24191
|
+
reason: _enum(["disabled", "absent"])
|
|
24192
|
+
});
|
|
24193
|
+
var PlacementStatsSchema = object({
|
|
24194
|
+
policy: SessionPlacementPolicySchema,
|
|
24195
|
+
windowMs: number(),
|
|
24196
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
24197
|
+
observedForMs: number(),
|
|
24198
|
+
sessionsNow: number(),
|
|
24199
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
24200
|
+
clusterPeakSessions: number(),
|
|
24201
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
24202
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
24203
|
+
});
|
|
24204
|
+
/**
|
|
24205
|
+
* Where an automatic share's capacity comes from (D755).
|
|
24206
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
24207
|
+
* the measured latency table for the node's hardware class.
|
|
24208
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
24209
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
24210
|
+
*/
|
|
24211
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
24212
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
24213
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
24214
|
+
var SuggestSharesInputSchema = object({
|
|
24215
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24216
|
+
/** Default `hardware`. */
|
|
24217
|
+
source: CapacitySourceSchema.default("hardware")
|
|
24218
|
+
});
|
|
24219
|
+
var SuggestedDeviceShareSchema = object({
|
|
24220
|
+
deviceKey: string(),
|
|
24221
|
+
/** Share of the node (0–100, rounded). */
|
|
24222
|
+
share: number(),
|
|
24223
|
+
modelId: string().nullable(),
|
|
24224
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
24225
|
+
fps: number().nullable(),
|
|
24226
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
24227
|
+
measured: boolean(),
|
|
24228
|
+
/**
|
|
24229
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
24230
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
24231
|
+
*/
|
|
24232
|
+
suggestedMaxSessions: number().nullable()
|
|
24233
|
+
});
|
|
24234
|
+
var SuggestedNodeShareSchema = object({
|
|
24235
|
+
nodeId: string(),
|
|
24236
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
24237
|
+
share: number().nullable(),
|
|
24238
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
24239
|
+
capacitySessions: number(),
|
|
24240
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
24241
|
+
skippedReason: string().nullable(),
|
|
24242
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
24243
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24244
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
24245
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
24246
|
+
});
|
|
24247
|
+
var SuggestSharesResultSchema = object({
|
|
24248
|
+
headroom: number(),
|
|
24249
|
+
/** The source asked for; each node says what it actually used. */
|
|
24250
|
+
source: CapacitySourceSchema,
|
|
24251
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
24252
|
+
cameraFps: number(),
|
|
24253
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
24254
|
+
minSessionsPerDevice: number(),
|
|
24255
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
24256
|
+
});
|
|
24257
|
+
/**
|
|
24258
|
+
* Where the node and device shares come from (D750, D755).
|
|
24259
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
24260
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
24261
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
24262
|
+
* switched on or off, or changes model. No load input.
|
|
24263
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
24264
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
24265
|
+
* - `manual` — the operator's stored sliders.
|
|
24266
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
24267
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
24268
|
+
*/
|
|
24269
|
+
var ShareSourceSchema = _enum([
|
|
24270
|
+
"hardware",
|
|
24271
|
+
"benchmark",
|
|
24272
|
+
"manual"
|
|
24273
|
+
]);
|
|
24274
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
24275
|
+
object({
|
|
24276
|
+
nodes: record(string(), number()),
|
|
24277
|
+
devices: record(string(), record(string(), number()))
|
|
24278
|
+
});
|
|
24279
|
+
var EffectiveDeviceShareSchema = object({
|
|
24280
|
+
deviceKey: string(),
|
|
24281
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
24282
|
+
eligible: boolean(),
|
|
24283
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
24284
|
+
configuredPct: number(),
|
|
24285
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
24286
|
+
effectivePct: number()
|
|
24287
|
+
});
|
|
24288
|
+
var EffectiveNodeShareSchema = object({
|
|
24289
|
+
nodeId: string(),
|
|
24290
|
+
eligible: boolean(),
|
|
24291
|
+
configuredPct: number(),
|
|
24292
|
+
effectivePct: number(),
|
|
24293
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
24294
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24295
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
24296
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
24297
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
24298
|
+
});
|
|
24299
|
+
var EffectiveSharesSchema = object({
|
|
24300
|
+
source: ShareSourceSchema,
|
|
24301
|
+
policy: SessionPlacementPolicySchema,
|
|
24302
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
24303
|
+
autoPending: boolean(),
|
|
24304
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
24305
|
+
computedAt: number().nullable(),
|
|
24306
|
+
/** What made the system recompute them last. */
|
|
24307
|
+
trigger: string().nullable(),
|
|
24308
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
24309
|
+
/** The relative weights the election reads (before eligibility). */
|
|
24310
|
+
nodeWeights: record(string(), number()),
|
|
24311
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
24312
|
+
});
|
|
23961
24313
|
object({
|
|
23962
24314
|
activeCameras: number(),
|
|
23963
24315
|
throttledCameras: number(),
|
|
@@ -24441,6 +24793,22 @@ var MotionSourceEnum = _enum([
|
|
|
24441
24793
|
"device-activity"
|
|
24442
24794
|
]);
|
|
24443
24795
|
/**
|
|
24796
|
+
* What opened an on-motion detection SESSION: the motion source that passed the
|
|
24797
|
+
* camera's `motionSources` gate, and what raised it (the camera itself, or a
|
|
24798
|
+
* sensor the operator attached — D672). `sensorName` is the attached sensor's
|
|
24799
|
+
* device name as the orchestrator's camera-sensors resolution last read it;
|
|
24800
|
+
* absent when unknown or when the camera itself triggered.
|
|
24801
|
+
*
|
|
24802
|
+
* Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
|
|
24803
|
+
* can say what started the session (D672 rule 11, amended 2026-10-06). The
|
|
24804
|
+
* runner never decides anything on it.
|
|
24805
|
+
*/
|
|
24806
|
+
var SessionTriggerSchema = object({
|
|
24807
|
+
source: MotionSourceEnum,
|
|
24808
|
+
triggeredBy: MotionTriggeredBySchema,
|
|
24809
|
+
sensorName: string().optional()
|
|
24810
|
+
});
|
|
24811
|
+
/**
|
|
24444
24812
|
* List of motion sources active on a camera. Empty array is valid:
|
|
24445
24813
|
* "no source" — happens for battery cams without firmware motion when
|
|
24446
24814
|
* the operator hasn't opted into the SW analyzer (would hold the
|
|
@@ -24692,6 +25060,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
24692
25060
|
*/
|
|
24693
25061
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
24694
25062
|
/**
|
|
25063
|
+
* What opened this attach, on a SESSION attach only (see
|
|
25064
|
+
* {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
|
|
25065
|
+
* standing attach, an occupancy burst, a re-dispatch with no motion event
|
|
25066
|
+
* behind it, and every attach from an orchestrator older than the field — the
|
|
25067
|
+
* runner then names no source on the phase event.
|
|
25068
|
+
*/
|
|
25069
|
+
sessionTrigger: SessionTriggerSchema.optional(),
|
|
25070
|
+
/**
|
|
24695
25071
|
* WHICH root detector runs for this camera. The detection counterpart of
|
|
24696
25072
|
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
24697
25073
|
* of sources the system understands, vendor-agnostic, owned here.
|
|
@@ -24851,14 +25227,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24851
25227
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
24852
25228
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
24853
25229
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
24854
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
24855
|
-
* per
|
|
25230
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
25231
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
25232
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
25233
|
+
* (D762).
|
|
24856
25234
|
*/
|
|
24857
25235
|
devices: array(object({
|
|
24858
25236
|
deviceKey: string(),
|
|
24859
25237
|
backend: string(),
|
|
24860
|
-
attachedCameras: number()
|
|
24861
|
-
queueDepthTotal: number()
|
|
25238
|
+
attachedCameras: number()
|
|
24862
25239
|
})).default([]),
|
|
24863
25240
|
/** Hardware capability flags reported by this node. */
|
|
24864
25241
|
hardware: object({
|
|
@@ -24994,7 +25371,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
24994
25371
|
*/
|
|
24995
25372
|
cropJpeg: string().optional(),
|
|
24996
25373
|
parent: DetailParentSchema,
|
|
24997
|
-
steps: array(string()).optional()
|
|
25374
|
+
steps: array(string()).optional(),
|
|
25375
|
+
/**
|
|
25376
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25377
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25378
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25379
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25380
|
+
* requested step infers as before.
|
|
25381
|
+
*/
|
|
25382
|
+
supplied: object({
|
|
25383
|
+
stepId: string(),
|
|
25384
|
+
modelId: string(),
|
|
25385
|
+
boxes: array(object({
|
|
25386
|
+
bbox: NativeCropBboxSchema,
|
|
25387
|
+
score: number()
|
|
25388
|
+
})).min(1)
|
|
25389
|
+
}).optional()
|
|
24998
25390
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
24999
25391
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
25000
25392
|
stepId: string(),
|
|
@@ -25057,14 +25449,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
25057
25449
|
settings: record(string(), unknown()).readonly().optional()
|
|
25058
25450
|
}).nullable().optional()
|
|
25059
25451
|
});
|
|
25060
|
-
var PipelineTemplateSchema = object({
|
|
25061
|
-
id: string(),
|
|
25062
|
-
name: string(),
|
|
25063
|
-
description: string().optional(),
|
|
25064
|
-
config: CameraPipelineConfigSchema,
|
|
25065
|
-
createdAt: string(),
|
|
25066
|
-
updatedAt: string()
|
|
25067
|
-
});
|
|
25068
25452
|
var DeviceStepConfigSchema = object({
|
|
25069
25453
|
modelId: string().optional(),
|
|
25070
25454
|
settings: record(string(), unknown()).optional(),
|
|
@@ -25138,9 +25522,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25138
25522
|
modelId: string().optional(),
|
|
25139
25523
|
settings: record(string(), unknown()).readonly().optional()
|
|
25140
25524
|
});
|
|
25525
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25141
25526
|
var CameraPipelineSettingsSchema = object({
|
|
25142
|
-
pinnedAgentNodeId: string().optional(),
|
|
25143
25527
|
stepToggles: record(string(), boolean()).optional(),
|
|
25528
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25144
25529
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25145
25530
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25146
25531
|
});
|
|
@@ -25173,7 +25558,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25173
25558
|
});
|
|
25174
25559
|
/**
|
|
25175
25560
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25176
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
25561
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
25562
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
25563
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
25564
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
25177
25565
|
*/
|
|
25178
25566
|
var AgentLoadSummarySchema = object({
|
|
25179
25567
|
nodeId: string(),
|
|
@@ -25262,26 +25650,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
25262
25650
|
width: number(),
|
|
25263
25651
|
height: number(),
|
|
25264
25652
|
subscribers: number(),
|
|
25265
|
-
|
|
25266
|
-
|
|
25653
|
+
/**
|
|
25654
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
25655
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
25656
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
25657
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
25658
|
+
* camera and is not served (D758).
|
|
25659
|
+
*/
|
|
25660
|
+
inFps: number().nullable()
|
|
25267
25661
|
})).readonly(),
|
|
25268
25662
|
webrtcSessions: number(),
|
|
25269
25663
|
rtspRestream: boolean()
|
|
25270
25664
|
});
|
|
25271
|
-
/**
|
|
25272
|
-
|
|
25273
|
-
|
|
25274
|
-
|
|
25275
|
-
|
|
25276
|
-
|
|
25277
|
-
|
|
25278
|
-
|
|
25279
|
-
var CameraDecoderStatusSchema = object({
|
|
25280
|
-
nodeId: string(),
|
|
25281
|
-
formats: array(string()).readonly(),
|
|
25282
|
-
sessionCount: number(),
|
|
25283
|
-
shm: CameraDecoderShmSchema
|
|
25284
|
-
});
|
|
25665
|
+
/**
|
|
25666
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
25667
|
+
* construction); null when the camera has no detection node. It carries no
|
|
25668
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
25669
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
25670
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
25671
|
+
* detector), never from a counter nothing feeds.
|
|
25672
|
+
*/
|
|
25673
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
25285
25674
|
/** Motion block — null when motion detection is not active for this device. */
|
|
25286
25675
|
var CameraMotionStatusSchema = object({
|
|
25287
25676
|
enabled: boolean(),
|
|
@@ -25638,12 +26027,6 @@ method(object({
|
|
|
25638
26027
|
}), object({ success: literal(true) }), {
|
|
25639
26028
|
kind: "mutation",
|
|
25640
26029
|
auth: "admin"
|
|
25641
|
-
}), method(object({
|
|
25642
|
-
agentNodeId: string(),
|
|
25643
|
-
detectWeight: number().positive().nullable()
|
|
25644
|
-
}), object({ success: literal(true) }), {
|
|
25645
|
-
kind: "mutation",
|
|
25646
|
-
auth: "admin"
|
|
25647
26030
|
}), method(object({
|
|
25648
26031
|
agentNodeId: string(),
|
|
25649
26032
|
detect: boolean().nullable().optional(),
|
|
@@ -25685,6 +26068,15 @@ method(object({
|
|
|
25685
26068
|
}), {
|
|
25686
26069
|
kind: "mutation",
|
|
25687
26070
|
auth: "admin"
|
|
26071
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
26072
|
+
kind: "mutation",
|
|
26073
|
+
auth: "admin"
|
|
26074
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
26075
|
+
kind: "mutation",
|
|
26076
|
+
auth: "admin"
|
|
26077
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
26078
|
+
kind: "mutation",
|
|
26079
|
+
auth: "admin"
|
|
25688
26080
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
25689
26081
|
deviceId: number(),
|
|
25690
26082
|
addonId: string(),
|
|
@@ -25701,6 +26093,13 @@ method(object({
|
|
|
25701
26093
|
}), object({ success: literal(true) }), {
|
|
25702
26094
|
kind: "mutation",
|
|
25703
26095
|
auth: "admin"
|
|
26096
|
+
}), method(object({
|
|
26097
|
+
deviceId: number(),
|
|
26098
|
+
addonId: string(),
|
|
26099
|
+
settings: record(string(), unknown()).nullable()
|
|
26100
|
+
}), object({ success: literal(true) }), {
|
|
26101
|
+
kind: "mutation",
|
|
26102
|
+
auth: "admin"
|
|
25704
26103
|
}), method(object({
|
|
25705
26104
|
deviceId: number(),
|
|
25706
26105
|
agentNodeId: string(),
|
|
@@ -25724,25 +26123,7 @@ method(object({
|
|
|
25724
26123
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
25725
26124
|
kind: "mutation",
|
|
25726
26125
|
auth: "admin"
|
|
25727
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
25728
|
-
name: string(),
|
|
25729
|
-
description: string().optional(),
|
|
25730
|
-
config: CameraPipelineConfigSchema
|
|
25731
|
-
}), PipelineTemplateSchema, {
|
|
25732
|
-
kind: "mutation",
|
|
25733
|
-
auth: "admin"
|
|
25734
|
-
}), method(object({
|
|
25735
|
-
id: string(),
|
|
25736
|
-
name: string().optional(),
|
|
25737
|
-
description: string().optional(),
|
|
25738
|
-
config: CameraPipelineConfigSchema.optional()
|
|
25739
|
-
}), PipelineTemplateSchema, {
|
|
25740
|
-
kind: "mutation",
|
|
25741
|
-
auth: "admin"
|
|
25742
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
25743
|
-
kind: "mutation",
|
|
25744
|
-
auth: "admin"
|
|
25745
|
-
});
|
|
26126
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
25746
26127
|
/**
|
|
25747
26128
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
25748
26129
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -27991,8 +28372,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
27991
28372
|
]).nullable(),
|
|
27992
28373
|
/** Input FPS from the camera (null for adaptive). */
|
|
27993
28374
|
inputFps: number().nullable(),
|
|
27994
|
-
/** Decoded FPS (null for adaptive). */
|
|
27995
|
-
decodeFps: number().nullable(),
|
|
27996
28375
|
/** Bitrate in kbps (null for adaptive). */
|
|
27997
28376
|
bitrateKbps: number().nullable()
|
|
27998
28377
|
});
|
|
@@ -28324,6 +28703,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28324
28703
|
*/
|
|
28325
28704
|
alive: boolean()
|
|
28326
28705
|
})), method(object({
|
|
28706
|
+
deviceId: number().int().nonnegative(),
|
|
28707
|
+
sessionId: string(),
|
|
28708
|
+
downlinkMbps: number().nonnegative()
|
|
28709
|
+
}), object({
|
|
28710
|
+
outcome: _enum(["switching", "held"]),
|
|
28711
|
+
tier: CamProfileSchema.nullable(),
|
|
28712
|
+
reason: string()
|
|
28713
|
+
}), { kind: "mutation" }), method(object({
|
|
28327
28714
|
deviceId: number().int().nonnegative(),
|
|
28328
28715
|
sessionId: string()
|
|
28329
28716
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -32080,7 +32467,7 @@ var LocalInterfaceSchema = object({
|
|
|
32080
32467
|
name: string(),
|
|
32081
32468
|
family: _enum(["IPv4", "IPv6"]),
|
|
32082
32469
|
address: string(),
|
|
32083
|
-
/** CIDR shorthand (e.g. `192.168.
|
|
32470
|
+
/** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
|
|
32084
32471
|
cidr: string(),
|
|
32085
32472
|
/** OS netmask. Stable across calls so the SDK can hash on it. */
|
|
32086
32473
|
netmask: string(),
|
|
@@ -32134,7 +32521,9 @@ var ConnectionEndpointSchema = object({
|
|
|
32134
32521
|
"lan-ipv4",
|
|
32135
32522
|
"lan-ipv6",
|
|
32136
32523
|
"public",
|
|
32137
|
-
"loopback"
|
|
32524
|
+
"loopback",
|
|
32525
|
+
"app-link",
|
|
32526
|
+
"custom"
|
|
32138
32527
|
]),
|
|
32139
32528
|
/**
|
|
32140
32529
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -32203,15 +32592,27 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
32203
32592
|
localPort: AdvertisedLocalPortSchema
|
|
32204
32593
|
});
|
|
32205
32594
|
/**
|
|
32206
|
-
* The
|
|
32207
|
-
*
|
|
32208
|
-
*
|
|
32595
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
32596
|
+
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
32597
|
+
* so the UI can show it either way.
|
|
32209
32598
|
*/
|
|
32210
32599
|
var NotificationEndpointSchema = object({
|
|
32211
32600
|
/** The operator's explicit choice, or null for AUTO. */
|
|
32212
32601
|
baseUrl: string().nullable(),
|
|
32213
|
-
/**
|
|
32214
|
-
|
|
32602
|
+
/**
|
|
32603
|
+
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
32604
|
+
* CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
|
|
32605
|
+
* answered the public tunnel / mesh here, or null.
|
|
32606
|
+
*/
|
|
32607
|
+
resolved: string().nullable(),
|
|
32608
|
+
/**
|
|
32609
|
+
* The hub origin an app link carries as `hub=` (D709): the hub's best
|
|
32610
|
+
* public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
|
|
32611
|
+
* picked from this cap's own palette by `pickAppLinkHub`. `null` when the
|
|
32612
|
+
* hub advertises neither; the app link is then minted without `hub=`.
|
|
32613
|
+
* Absent on a pre-D709 hub.
|
|
32614
|
+
*/
|
|
32615
|
+
appLinkHub: string().nullable()
|
|
32215
32616
|
});
|
|
32216
32617
|
/**
|
|
32217
32618
|
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
@@ -32224,6 +32625,72 @@ var ViewerEndpointsSchema = object({
|
|
|
32224
32625
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
32225
32626
|
resolved: array(string()).readonly()
|
|
32226
32627
|
});
|
|
32628
|
+
/**
|
|
32629
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
32630
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
32631
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
32632
|
+
*/
|
|
32633
|
+
var HubAddressSnapshotSchema = object({
|
|
32634
|
+
override: string().nullable(),
|
|
32635
|
+
resolved: string().nullable(),
|
|
32636
|
+
source: _enum([
|
|
32637
|
+
"override",
|
|
32638
|
+
"auto",
|
|
32639
|
+
"none"
|
|
32640
|
+
])
|
|
32641
|
+
});
|
|
32642
|
+
var HubAddressesSchema = object({
|
|
32643
|
+
cluster: HubAddressSnapshotSchema,
|
|
32644
|
+
browser: HubAddressSnapshotSchema
|
|
32645
|
+
});
|
|
32646
|
+
/**
|
|
32647
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
32648
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
32649
|
+
* by at most one address.
|
|
32650
|
+
*/
|
|
32651
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
32652
|
+
var RoleSourceSchema = _enum([
|
|
32653
|
+
"flagged",
|
|
32654
|
+
"auto",
|
|
32655
|
+
"none"
|
|
32656
|
+
]);
|
|
32657
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
32658
|
+
var HubAddressRoleResolutionSchema = object({
|
|
32659
|
+
/** The address carrying the flag, or null = automatic. */
|
|
32660
|
+
flagged: string().nullable(),
|
|
32661
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
32662
|
+
resolved: string().nullable(),
|
|
32663
|
+
source: RoleSourceSchema
|
|
32664
|
+
});
|
|
32665
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
32666
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
32667
|
+
flagged: array(string()).readonly(),
|
|
32668
|
+
/** What the apps race right now. */
|
|
32669
|
+
resolved: array(string()).readonly(),
|
|
32670
|
+
source: RoleSourceSchema
|
|
32671
|
+
});
|
|
32672
|
+
var HubAddressBookSchema = object({
|
|
32673
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
32674
|
+
/** In the hub's detected palette right now. */
|
|
32675
|
+
detected: boolean(),
|
|
32676
|
+
/** Entered by the operator (removable). */
|
|
32677
|
+
custom: boolean(),
|
|
32678
|
+
/** The roles explicitly flagged on this address. */
|
|
32679
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
32680
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
32681
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
32682
|
+
/** The roles this address may be flagged with. */
|
|
32683
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
32684
|
+
})).readonly(),
|
|
32685
|
+
roles: object({
|
|
32686
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
32687
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
32688
|
+
internal: HubAddressRoleResolutionSchema,
|
|
32689
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
32690
|
+
}),
|
|
32691
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
32692
|
+
appLinkHub: string().nullable()
|
|
32693
|
+
});
|
|
32227
32694
|
var AllowedAddressesSchema = object({
|
|
32228
32695
|
/**
|
|
32229
32696
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -32265,8 +32732,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
32265
32732
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
32266
32733
|
* to avoid mixed-content blocks in the browser. The public
|
|
32267
32734
|
* tunnel always emits `https://` regardless. */
|
|
32268
|
-
scheme: _enum(["http", "https"]).optional()
|
|
32269
|
-
|
|
32735
|
+
scheme: _enum(["http", "https"]).optional(),
|
|
32736
|
+
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
32737
|
+
* an address notification taps can be flagged with, not a hub
|
|
32738
|
+
* route. Default `false`: racers and rankers never see it. */
|
|
32739
|
+
includeAppLink: boolean().optional()
|
|
32740
|
+
}), 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({
|
|
32741
|
+
baseUrl: string(),
|
|
32742
|
+
label: string().max(80)
|
|
32743
|
+
}), HubAddressBookSchema, {
|
|
32744
|
+
kind: "mutation",
|
|
32745
|
+
auth: "admin"
|
|
32746
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
32747
|
+
kind: "mutation",
|
|
32748
|
+
auth: "admin"
|
|
32749
|
+
}), method(object({
|
|
32750
|
+
role: HubAddressRoleSchema,
|
|
32751
|
+
baseUrl: string().nullable(),
|
|
32752
|
+
enabled: boolean(),
|
|
32753
|
+
acceptInsecureHttp: boolean().optional()
|
|
32754
|
+
}), HubAddressBookSchema, {
|
|
32755
|
+
kind: "mutation",
|
|
32756
|
+
auth: "admin"
|
|
32757
|
+
}), 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, {
|
|
32270
32758
|
kind: "mutation",
|
|
32271
32759
|
auth: "admin"
|
|
32272
32760
|
}), method(object({
|
|
@@ -32594,7 +33082,7 @@ var MeshPeerSchema = object({
|
|
|
32594
33082
|
tags: array(string()).readonly(),
|
|
32595
33083
|
/** True when the peer advertises itself as an exit-node candidate. */
|
|
32596
33084
|
exitNodeOption: boolean(),
|
|
32597
|
-
/** Subnet routes the peer advertises (e.g. `["192.168.
|
|
33085
|
+
/** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
|
|
32598
33086
|
advertisedRoutes: array(string()).readonly(),
|
|
32599
33087
|
/** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
|
|
32600
33088
|
userLogin: string().nullable(),
|
|
@@ -32724,7 +33212,8 @@ var MotionStatusSchema = object({
|
|
|
32724
33212
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32725
33213
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32726
33214
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32727
|
-
* A provider's `isDetected`
|
|
33215
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
33216
|
+
* (`hubMotionNativeProvider`).
|
|
32728
33217
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32729
33218
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32730
33219
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -33922,7 +34411,13 @@ var OsdStatusSchema = object({ overlays: array(object({
|
|
|
33922
34411
|
*/
|
|
33923
34412
|
availablePositions: array(OsdPositionEnum).readonly(),
|
|
33924
34413
|
/** Firmware does not allow editing the `text` field (e.g. timestamp). */
|
|
33925
|
-
readOnly: boolean().optional()
|
|
34414
|
+
readOnly: boolean().optional(),
|
|
34415
|
+
/**
|
|
34416
|
+
* Firmware text ceiling for this overlay. Absent = no known limit.
|
|
34417
|
+
* The OSD manager truncates here on every write — never stores its own
|
|
34418
|
+
* copy on the binding.
|
|
34419
|
+
*/
|
|
34420
|
+
maxCharacters: number().int().positive().optional()
|
|
33926
34421
|
})).readonly() });
|
|
33927
34422
|
var OsdOverlayPatchSchema = object({
|
|
33928
34423
|
enabled: boolean().optional(),
|
|
@@ -33973,7 +34468,9 @@ var OsdTemplateBindingSchema = object({
|
|
|
33973
34468
|
valuePath: string().min(1).max(64),
|
|
33974
34469
|
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
33975
34470
|
displayUnit: string().max(16).optional(),
|
|
33976
|
-
maxDecimals: number().int().min(0).max(4).default(1)
|
|
34471
|
+
maxDecimals: number().int().min(0).max(4).default(1),
|
|
34472
|
+
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
34473
|
+
valueMap: record(string(), string()).optional()
|
|
33977
34474
|
});
|
|
33978
34475
|
/**
|
|
33979
34476
|
* A named template: bindings (alias → leaf field) + a parser that
|
|
@@ -34023,18 +34520,11 @@ var OsdSlotBindingSchema = object({
|
|
|
34023
34520
|
source: OsdSourceSchema,
|
|
34024
34521
|
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
34025
34522
|
template: string().max(96).default("${value}"),
|
|
34026
|
-
/** Truncate with an ellipsis past this length. Absent = no limit. */
|
|
34027
|
-
maxCharacters: number().int().min(4).max(64).optional(),
|
|
34028
34523
|
/**
|
|
34029
34524
|
* Decimal places for a numeric value. `0` yields an integer — the
|
|
34030
34525
|
* documented workaround for firmwares that reject `.` in overlay text.
|
|
34031
34526
|
*/
|
|
34032
34527
|
maxDecimals: number().int().min(0).max(4).default(1),
|
|
34033
|
-
/**
|
|
34034
|
-
* Appended via `${unit}` when no unit conversion produces a label.
|
|
34035
|
-
* Prefer `source.displayUnit` for converted device-state values.
|
|
34036
|
-
*/
|
|
34037
|
-
unitLabel: string().max(8).optional(),
|
|
34038
34528
|
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
34039
34529
|
valueMap: record(string(), string()).optional(),
|
|
34040
34530
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
@@ -34043,9 +34533,7 @@ var OsdSlotBindingSchema = object({
|
|
|
34043
34533
|
* Display gate, in the notification centre's condition vocabulary.
|
|
34044
34534
|
* Only the keys reported by `getConditionSupport` are accepted.
|
|
34045
34535
|
*/
|
|
34046
|
-
conditions: NcConditionsSchema.optional()
|
|
34047
|
-
/** Rendered when the gate is closed or the value unreadable. Empty = hide. */
|
|
34048
|
-
fallbackText: string().max(64).default("")
|
|
34536
|
+
conditions: NcConditionsSchema.optional()
|
|
34049
34537
|
});
|
|
34050
34538
|
/** One camera slot, as the operator sees it: firmware truth + our binding. */
|
|
34051
34539
|
var OsdSlotViewSchema = object({
|
|
@@ -39272,6 +39760,16 @@ var zoneRulesCapability = {
|
|
|
39272
39760
|
durability: "restored"
|
|
39273
39761
|
};
|
|
39274
39762
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
39763
|
+
Object.freeze({
|
|
39764
|
+
person: .5,
|
|
39765
|
+
vehicle: .5,
|
|
39766
|
+
animal: .5
|
|
39767
|
+
});
|
|
39768
|
+
Object.freeze({
|
|
39769
|
+
person: .65,
|
|
39770
|
+
vehicle: .65,
|
|
39771
|
+
animal: .65
|
|
39772
|
+
});
|
|
39275
39773
|
/**
|
|
39276
39774
|
* Accessory device helpers — shared across drivers.
|
|
39277
39775
|
*
|
|
@@ -42152,90 +42650,18 @@ Object.freeze({
|
|
|
42152
42650
|
addonId: null,
|
|
42153
42651
|
access: "create"
|
|
42154
42652
|
},
|
|
42155
|
-
"decoder.createSession": {
|
|
42156
|
-
capName: "decoder",
|
|
42157
|
-
capScope: "system",
|
|
42158
|
-
addonId: null,
|
|
42159
|
-
access: "view"
|
|
42160
|
-
},
|
|
42161
|
-
"decoder.destroySession": {
|
|
42162
|
-
capName: "decoder",
|
|
42163
|
-
capScope: "system",
|
|
42164
|
-
addonId: null,
|
|
42165
|
-
access: "delete"
|
|
42166
|
-
},
|
|
42167
|
-
"decoder.getFrame": {
|
|
42168
|
-
capName: "decoder",
|
|
42169
|
-
capScope: "system",
|
|
42170
|
-
addonId: null,
|
|
42171
|
-
access: "view"
|
|
42172
|
-
},
|
|
42173
42653
|
"decoder.getInfo": {
|
|
42174
42654
|
capName: "decoder",
|
|
42175
42655
|
capScope: "system",
|
|
42176
42656
|
addonId: null,
|
|
42177
42657
|
access: "view"
|
|
42178
42658
|
},
|
|
42179
|
-
"decoder.getShmStats": {
|
|
42180
|
-
capName: "decoder",
|
|
42181
|
-
capScope: "system",
|
|
42182
|
-
addonId: null,
|
|
42183
|
-
access: "view"
|
|
42184
|
-
},
|
|
42185
|
-
"decoder.getStats": {
|
|
42186
|
-
capName: "decoder",
|
|
42187
|
-
capScope: "system",
|
|
42188
|
-
addonId: null,
|
|
42189
|
-
access: "view"
|
|
42190
|
-
},
|
|
42191
|
-
"decoder.listActiveSessions": {
|
|
42192
|
-
capName: "decoder",
|
|
42193
|
-
capScope: "system",
|
|
42194
|
-
addonId: null,
|
|
42195
|
-
access: "view"
|
|
42196
|
-
},
|
|
42197
|
-
"decoder.openStream": {
|
|
42198
|
-
capName: "decoder",
|
|
42199
|
-
capScope: "system",
|
|
42200
|
-
addonId: null,
|
|
42201
|
-
access: "view"
|
|
42202
|
-
},
|
|
42203
|
-
"decoder.pullFrames": {
|
|
42204
|
-
capName: "decoder",
|
|
42205
|
-
capScope: "system",
|
|
42206
|
-
addonId: null,
|
|
42207
|
-
access: "view"
|
|
42208
|
-
},
|
|
42209
|
-
"decoder.pullHandles": {
|
|
42210
|
-
capName: "decoder",
|
|
42211
|
-
capScope: "system",
|
|
42212
|
-
addonId: null,
|
|
42213
|
-
access: "view"
|
|
42214
|
-
},
|
|
42215
|
-
"decoder.pushPacket": {
|
|
42216
|
-
capName: "decoder",
|
|
42217
|
-
capScope: "system",
|
|
42218
|
-
addonId: null,
|
|
42219
|
-
access: "view"
|
|
42220
|
-
},
|
|
42221
42659
|
"decoder.reprobeHwaccel": {
|
|
42222
42660
|
capName: "decoder",
|
|
42223
42661
|
capScope: "system",
|
|
42224
42662
|
addonId: null,
|
|
42225
42663
|
access: "create"
|
|
42226
42664
|
},
|
|
42227
|
-
"decoder.supportsCodec": {
|
|
42228
|
-
capName: "decoder",
|
|
42229
|
-
capScope: "system",
|
|
42230
|
-
addonId: null,
|
|
42231
|
-
access: "view"
|
|
42232
|
-
},
|
|
42233
|
-
"decoder.updateConfig": {
|
|
42234
|
-
capName: "decoder",
|
|
42235
|
-
capScope: "system",
|
|
42236
|
-
addonId: null,
|
|
42237
|
-
access: "view"
|
|
42238
|
-
},
|
|
42239
42665
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
42240
42666
|
capName: "detection-pipeline",
|
|
42241
42667
|
capScope: "device",
|
|
@@ -43724,12 +44150,24 @@ Object.freeze({
|
|
|
43724
44150
|
addonId: null,
|
|
43725
44151
|
access: "view"
|
|
43726
44152
|
},
|
|
44153
|
+
"localNetwork.addCustomAddress": {
|
|
44154
|
+
capName: "local-network",
|
|
44155
|
+
capScope: "system",
|
|
44156
|
+
addonId: null,
|
|
44157
|
+
access: "create"
|
|
44158
|
+
},
|
|
43727
44159
|
"localNetwork.downloadCa": {
|
|
43728
44160
|
capName: "local-network",
|
|
43729
44161
|
capScope: "system",
|
|
43730
44162
|
addonId: null,
|
|
43731
44163
|
access: "view"
|
|
43732
44164
|
},
|
|
44165
|
+
"localNetwork.getAddresses": {
|
|
44166
|
+
capName: "local-network",
|
|
44167
|
+
capScope: "system",
|
|
44168
|
+
addonId: null,
|
|
44169
|
+
access: "view"
|
|
44170
|
+
},
|
|
43733
44171
|
"localNetwork.getAllowedAddresses": {
|
|
43734
44172
|
capName: "local-network",
|
|
43735
44173
|
capScope: "system",
|
|
@@ -43742,6 +44180,12 @@ Object.freeze({
|
|
|
43742
44180
|
addonId: null,
|
|
43743
44181
|
access: "view"
|
|
43744
44182
|
},
|
|
44183
|
+
"localNetwork.getHubAddresses": {
|
|
44184
|
+
capName: "local-network",
|
|
44185
|
+
capScope: "system",
|
|
44186
|
+
addonId: null,
|
|
44187
|
+
access: "view"
|
|
44188
|
+
},
|
|
43745
44189
|
"localNetwork.getNotificationEndpoint": {
|
|
43746
44190
|
capName: "local-network",
|
|
43747
44191
|
capScope: "system",
|
|
@@ -43778,6 +44222,12 @@ Object.freeze({
|
|
|
43778
44222
|
addonId: null,
|
|
43779
44223
|
access: "create"
|
|
43780
44224
|
},
|
|
44225
|
+
"localNetwork.removeCustomAddress": {
|
|
44226
|
+
capName: "local-network",
|
|
44227
|
+
capScope: "system",
|
|
44228
|
+
addonId: null,
|
|
44229
|
+
access: "delete"
|
|
44230
|
+
},
|
|
43781
44231
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
43782
44232
|
capName: "local-network",
|
|
43783
44233
|
capScope: "system",
|
|
@@ -43790,6 +44240,12 @@ Object.freeze({
|
|
|
43790
44240
|
addonId: null,
|
|
43791
44241
|
access: "create"
|
|
43792
44242
|
},
|
|
44243
|
+
"localNetwork.setAddressRole": {
|
|
44244
|
+
capName: "local-network",
|
|
44245
|
+
capScope: "system",
|
|
44246
|
+
addonId: null,
|
|
44247
|
+
access: "create"
|
|
44248
|
+
},
|
|
43793
44249
|
"localNetwork.setAllowedAddresses": {
|
|
43794
44250
|
capName: "local-network",
|
|
43795
44251
|
capScope: "system",
|
|
@@ -45284,13 +45740,13 @@ Object.freeze({
|
|
|
45284
45740
|
addonId: null,
|
|
45285
45741
|
access: "delete"
|
|
45286
45742
|
},
|
|
45287
|
-
"pipelineExecutor.
|
|
45743
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
45288
45744
|
capName: "pipeline-executor",
|
|
45289
45745
|
capScope: "system",
|
|
45290
45746
|
addonId: null,
|
|
45291
45747
|
access: "delete"
|
|
45292
45748
|
},
|
|
45293
|
-
"pipelineExecutor.
|
|
45749
|
+
"pipelineExecutor.deleteModel": {
|
|
45294
45750
|
capName: "pipeline-executor",
|
|
45295
45751
|
capScope: "system",
|
|
45296
45752
|
addonId: null,
|
|
@@ -45434,12 +45890,6 @@ Object.freeze({
|
|
|
45434
45890
|
addonId: null,
|
|
45435
45891
|
access: "view"
|
|
45436
45892
|
},
|
|
45437
|
-
"pipelineExecutor.listTemplates": {
|
|
45438
|
-
capName: "pipeline-executor",
|
|
45439
|
-
capScope: "system",
|
|
45440
|
-
addonId: null,
|
|
45441
|
-
access: "view"
|
|
45442
|
-
},
|
|
45443
45893
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
45444
45894
|
capName: "pipeline-executor",
|
|
45445
45895
|
capScope: "system",
|
|
@@ -45464,12 +45914,6 @@ Object.freeze({
|
|
|
45464
45914
|
addonId: null,
|
|
45465
45915
|
access: "create"
|
|
45466
45916
|
},
|
|
45467
|
-
"pipelineExecutor.saveTemplate": {
|
|
45468
|
-
capName: "pipeline-executor",
|
|
45469
|
-
capScope: "system",
|
|
45470
|
-
addonId: null,
|
|
45471
|
-
access: "create"
|
|
45472
|
-
},
|
|
45473
45917
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
45474
45918
|
capName: "pipeline-executor",
|
|
45475
45919
|
capScope: "system",
|
|
@@ -45488,41 +45932,35 @@ Object.freeze({
|
|
|
45488
45932
|
addonId: null,
|
|
45489
45933
|
access: "create"
|
|
45490
45934
|
},
|
|
45491
|
-
"pipelineExecutor.updateTemplate": {
|
|
45492
|
-
capName: "pipeline-executor",
|
|
45493
|
-
capScope: "system",
|
|
45494
|
-
addonId: null,
|
|
45495
|
-
access: "create"
|
|
45496
|
-
},
|
|
45497
45935
|
"pipelineExecutor.validatePipeline": {
|
|
45498
45936
|
capName: "pipeline-executor",
|
|
45499
45937
|
capScope: "system",
|
|
45500
45938
|
addonId: null,
|
|
45501
45939
|
access: "view"
|
|
45502
45940
|
},
|
|
45503
|
-
"pipelineOrchestrator.
|
|
45941
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
45504
45942
|
capName: "pipeline-orchestrator",
|
|
45505
45943
|
capScope: "system",
|
|
45506
45944
|
addonId: null,
|
|
45507
45945
|
access: "create"
|
|
45508
45946
|
},
|
|
45509
|
-
"pipelineOrchestrator.
|
|
45947
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
45510
45948
|
capName: "pipeline-orchestrator",
|
|
45511
45949
|
capScope: "system",
|
|
45512
45950
|
addonId: null,
|
|
45513
45951
|
access: "create"
|
|
45514
45952
|
},
|
|
45515
|
-
"pipelineOrchestrator.
|
|
45953
|
+
"pipelineOrchestrator.assignAudio": {
|
|
45516
45954
|
capName: "pipeline-orchestrator",
|
|
45517
45955
|
capScope: "system",
|
|
45518
45956
|
addonId: null,
|
|
45519
45957
|
access: "create"
|
|
45520
45958
|
},
|
|
45521
|
-
"pipelineOrchestrator.
|
|
45959
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
45522
45960
|
capName: "pipeline-orchestrator",
|
|
45523
45961
|
capScope: "system",
|
|
45524
45962
|
addonId: null,
|
|
45525
|
-
access: "
|
|
45963
|
+
access: "create"
|
|
45526
45964
|
},
|
|
45527
45965
|
"pipelineOrchestrator.getAgentLoad": {
|
|
45528
45966
|
capName: "pipeline-orchestrator",
|
|
@@ -45614,6 +46052,12 @@ Object.freeze({
|
|
|
45614
46052
|
addonId: null,
|
|
45615
46053
|
access: "view"
|
|
45616
46054
|
},
|
|
46055
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
46056
|
+
capName: "pipeline-orchestrator",
|
|
46057
|
+
capScope: "system",
|
|
46058
|
+
addonId: null,
|
|
46059
|
+
access: "view"
|
|
46060
|
+
},
|
|
45617
46061
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
45618
46062
|
capName: "pipeline-orchestrator",
|
|
45619
46063
|
capScope: "system",
|
|
@@ -45650,19 +46094,19 @@ Object.freeze({
|
|
|
45650
46094
|
addonId: null,
|
|
45651
46095
|
access: "view"
|
|
45652
46096
|
},
|
|
45653
|
-
"pipelineOrchestrator.
|
|
46097
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
45654
46098
|
capName: "pipeline-orchestrator",
|
|
45655
46099
|
capScope: "system",
|
|
45656
46100
|
addonId: null,
|
|
45657
46101
|
access: "view"
|
|
45658
46102
|
},
|
|
45659
|
-
"pipelineOrchestrator.
|
|
46103
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
45660
46104
|
capName: "pipeline-orchestrator",
|
|
45661
46105
|
capScope: "system",
|
|
45662
46106
|
addonId: null,
|
|
45663
46107
|
access: "view"
|
|
45664
46108
|
},
|
|
45665
|
-
"pipelineOrchestrator.
|
|
46109
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
45666
46110
|
capName: "pipeline-orchestrator",
|
|
45667
46111
|
capScope: "system",
|
|
45668
46112
|
addonId: null,
|
|
@@ -45674,6 +46118,12 @@ Object.freeze({
|
|
|
45674
46118
|
addonId: null,
|
|
45675
46119
|
access: "create"
|
|
45676
46120
|
},
|
|
46121
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
46122
|
+
capName: "pipeline-orchestrator",
|
|
46123
|
+
capScope: "system",
|
|
46124
|
+
addonId: null,
|
|
46125
|
+
access: "view"
|
|
46126
|
+
},
|
|
45677
46127
|
"pipelineOrchestrator.rebalance": {
|
|
45678
46128
|
capName: "pipeline-orchestrator",
|
|
45679
46129
|
capScope: "system",
|
|
@@ -45716,12 +46166,6 @@ Object.freeze({
|
|
|
45716
46166
|
addonId: null,
|
|
45717
46167
|
access: "create"
|
|
45718
46168
|
},
|
|
45719
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
45720
|
-
capName: "pipeline-orchestrator",
|
|
45721
|
-
capScope: "system",
|
|
45722
|
-
addonId: null,
|
|
45723
|
-
access: "create"
|
|
45724
|
-
},
|
|
45725
46169
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
45726
46170
|
capName: "pipeline-orchestrator",
|
|
45727
46171
|
capScope: "system",
|
|
@@ -45734,12 +46178,6 @@ Object.freeze({
|
|
|
45734
46178
|
addonId: null,
|
|
45735
46179
|
access: "create"
|
|
45736
46180
|
},
|
|
45737
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
45738
|
-
capName: "pipeline-orchestrator",
|
|
45739
|
-
capScope: "system",
|
|
45740
|
-
addonId: null,
|
|
45741
|
-
access: "create"
|
|
45742
|
-
},
|
|
45743
46181
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
45744
46182
|
capName: "pipeline-orchestrator",
|
|
45745
46183
|
capScope: "system",
|
|
@@ -45776,6 +46214,12 @@ Object.freeze({
|
|
|
45776
46214
|
addonId: null,
|
|
45777
46215
|
access: "create"
|
|
45778
46216
|
},
|
|
46217
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
46218
|
+
capName: "pipeline-orchestrator",
|
|
46219
|
+
capScope: "system",
|
|
46220
|
+
addonId: null,
|
|
46221
|
+
access: "create"
|
|
46222
|
+
},
|
|
45779
46223
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
45780
46224
|
capName: "pipeline-orchestrator",
|
|
45781
46225
|
capScope: "system",
|
|
@@ -45794,25 +46238,37 @@ Object.freeze({
|
|
|
45794
46238
|
addonId: null,
|
|
45795
46239
|
access: "create"
|
|
45796
46240
|
},
|
|
46241
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
46242
|
+
capName: "pipeline-orchestrator",
|
|
46243
|
+
capScope: "system",
|
|
46244
|
+
addonId: null,
|
|
46245
|
+
access: "create"
|
|
46246
|
+
},
|
|
45797
46247
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
45798
46248
|
capName: "pipeline-orchestrator",
|
|
45799
46249
|
capScope: "system",
|
|
45800
46250
|
addonId: null,
|
|
45801
46251
|
access: "create"
|
|
45802
46252
|
},
|
|
45803
|
-
"pipelineOrchestrator.
|
|
46253
|
+
"pipelineOrchestrator.setShareSource": {
|
|
45804
46254
|
capName: "pipeline-orchestrator",
|
|
45805
46255
|
capScope: "system",
|
|
45806
46256
|
addonId: null,
|
|
45807
46257
|
access: "create"
|
|
45808
46258
|
},
|
|
45809
|
-
"pipelineOrchestrator.
|
|
46259
|
+
"pipelineOrchestrator.suggestShares": {
|
|
46260
|
+
capName: "pipeline-orchestrator",
|
|
46261
|
+
capScope: "system",
|
|
46262
|
+
addonId: null,
|
|
46263
|
+
access: "view"
|
|
46264
|
+
},
|
|
46265
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
45810
46266
|
capName: "pipeline-orchestrator",
|
|
45811
46267
|
capScope: "system",
|
|
45812
46268
|
addonId: null,
|
|
45813
46269
|
access: "create"
|
|
45814
46270
|
},
|
|
45815
|
-
"pipelineOrchestrator.
|
|
46271
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
45816
46272
|
capName: "pipeline-orchestrator",
|
|
45817
46273
|
capScope: "system",
|
|
45818
46274
|
addonId: null,
|
|
@@ -47252,12 +47708,6 @@ Object.freeze({
|
|
|
47252
47708
|
addonId: null,
|
|
47253
47709
|
access: "view"
|
|
47254
47710
|
},
|
|
47255
|
-
"streamBroker.pullFrameHandles": {
|
|
47256
|
-
capName: "stream-broker",
|
|
47257
|
-
capScope: "system",
|
|
47258
|
-
addonId: null,
|
|
47259
|
-
access: "view"
|
|
47260
|
-
},
|
|
47261
47711
|
"streamBroker.regenerateRtspToken": {
|
|
47262
47712
|
capName: "stream-broker",
|
|
47263
47713
|
capScope: "system",
|
|
@@ -47324,12 +47774,6 @@ Object.freeze({
|
|
|
47324
47774
|
addonId: null,
|
|
47325
47775
|
access: "create"
|
|
47326
47776
|
},
|
|
47327
|
-
"streamBroker.subscribeFrames": {
|
|
47328
|
-
capName: "stream-broker",
|
|
47329
|
-
capScope: "system",
|
|
47330
|
-
addonId: null,
|
|
47331
|
-
access: "create"
|
|
47332
|
-
},
|
|
47333
47777
|
"streamBroker.unassignProfile": {
|
|
47334
47778
|
capName: "stream-broker",
|
|
47335
47779
|
capScope: "system",
|
|
@@ -47342,12 +47786,6 @@ Object.freeze({
|
|
|
47342
47786
|
addonId: null,
|
|
47343
47787
|
access: "create"
|
|
47344
47788
|
},
|
|
47345
|
-
"streamBroker.unsubscribeFrames": {
|
|
47346
|
-
capName: "stream-broker",
|
|
47347
|
-
capScope: "system",
|
|
47348
|
-
addonId: null,
|
|
47349
|
-
access: "create"
|
|
47350
|
-
},
|
|
47351
47789
|
"streamCatalog.getCatalog": {
|
|
47352
47790
|
capName: "stream-catalog",
|
|
47353
47791
|
capScope: "device",
|
|
@@ -48044,6 +48482,12 @@ Object.freeze({
|
|
|
48044
48482
|
addonId: null,
|
|
48045
48483
|
access: "create"
|
|
48046
48484
|
},
|
|
48485
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
48486
|
+
capName: "webrtc-session",
|
|
48487
|
+
capScope: "device",
|
|
48488
|
+
addonId: null,
|
|
48489
|
+
access: "create"
|
|
48490
|
+
},
|
|
48047
48491
|
"webrtcSession.closeSession": {
|
|
48048
48492
|
capName: "webrtc-session",
|
|
48049
48493
|
capScope: "device",
|
|
@@ -49855,11 +50299,6 @@ Object.freeze({
|
|
|
49855
50299
|
form: "single",
|
|
49856
50300
|
optional: false
|
|
49857
50301
|
}],
|
|
49858
|
-
"decoder.createSession": [{
|
|
49859
|
-
name: "deviceId",
|
|
49860
|
-
form: "single",
|
|
49861
|
-
optional: true
|
|
49862
|
-
}],
|
|
49863
50302
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49864
50303
|
name: "deviceId",
|
|
49865
50304
|
form: "single",
|
|
@@ -51090,6 +51529,11 @@ Object.freeze({
|
|
|
51090
51529
|
form: "single",
|
|
51091
51530
|
optional: false
|
|
51092
51531
|
}],
|
|
51532
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
51533
|
+
name: "deviceIds",
|
|
51534
|
+
form: "array",
|
|
51535
|
+
optional: true
|
|
51536
|
+
}],
|
|
51093
51537
|
"pipelineExecutor.runPipeline": [{
|
|
51094
51538
|
name: "deviceId",
|
|
51095
51539
|
form: "single",
|
|
@@ -51195,6 +51639,11 @@ Object.freeze({
|
|
|
51195
51639
|
form: "single",
|
|
51196
51640
|
optional: false
|
|
51197
51641
|
}],
|
|
51642
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
51643
|
+
name: "deviceId",
|
|
51644
|
+
form: "single",
|
|
51645
|
+
optional: false
|
|
51646
|
+
}],
|
|
51198
51647
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
51199
51648
|
name: "deviceId",
|
|
51200
51649
|
form: "single",
|
|
@@ -51966,6 +52415,11 @@ Object.freeze({
|
|
|
51966
52415
|
form: "single",
|
|
51967
52416
|
optional: false
|
|
51968
52417
|
}],
|
|
52418
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
52419
|
+
name: "deviceId",
|
|
52420
|
+
form: "single",
|
|
52421
|
+
optional: false
|
|
52422
|
+
}],
|
|
51969
52423
|
"webrtcSession.closeSession": [{
|
|
51970
52424
|
name: "deviceId",
|
|
51971
52425
|
form: "single",
|
|
@@ -52195,6 +52649,8 @@ new Map(Object.entries({
|
|
|
52195
52649
|
"detection-blind": "device-events",
|
|
52196
52650
|
"node-online": "system",
|
|
52197
52651
|
"node-offline": "system",
|
|
52652
|
+
"node-restarting": "system",
|
|
52653
|
+
"node-updating": "system",
|
|
52198
52654
|
"node-inference-unavailable": "system",
|
|
52199
52655
|
"addon-crash-loop": "system",
|
|
52200
52656
|
"addon-update-available": "system",
|
|
@@ -52272,18 +52728,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52272
52728
|
kinds: [
|
|
52273
52729
|
"node-offline",
|
|
52274
52730
|
"node-online",
|
|
52731
|
+
"node-restarting",
|
|
52275
52732
|
"node-inference-unavailable"
|
|
52276
52733
|
]
|
|
52277
52734
|
},
|
|
52278
52735
|
{
|
|
52279
52736
|
id: "addons",
|
|
52280
52737
|
family: "system",
|
|
52281
|
-
label: "Addons",
|
|
52282
|
-
kinds: [
|
|
52283
|
-
|
|
52284
|
-
|
|
52285
|
-
|
|
52286
|
-
|
|
52738
|
+
label: "Addons stopped",
|
|
52739
|
+
kinds: ["addon-crash-loop"]
|
|
52740
|
+
},
|
|
52741
|
+
{
|
|
52742
|
+
id: "addon-updates",
|
|
52743
|
+
family: "system",
|
|
52744
|
+
label: "Addon updates",
|
|
52745
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52287
52746
|
},
|
|
52288
52747
|
{
|
|
52289
52748
|
id: "updates",
|
|
@@ -52291,6 +52750,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52291
52750
|
label: "Server & container updates",
|
|
52292
52751
|
kinds: [
|
|
52293
52752
|
"server-update-available",
|
|
52753
|
+
"node-updating",
|
|
52294
52754
|
"server-updated",
|
|
52295
52755
|
"wrapper-update-available"
|
|
52296
52756
|
]
|
|
@@ -52438,18 +52898,21 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52438
52898
|
kinds: [
|
|
52439
52899
|
"node-offline",
|
|
52440
52900
|
"node-online",
|
|
52901
|
+
"node-restarting",
|
|
52441
52902
|
"node-inference-unavailable"
|
|
52442
52903
|
]
|
|
52443
52904
|
},
|
|
52444
52905
|
{
|
|
52445
52906
|
name: "summaryAddons",
|
|
52446
|
-
label: "Summary: addons",
|
|
52447
|
-
example: "
|
|
52448
|
-
kinds: [
|
|
52449
|
-
|
|
52450
|
-
|
|
52451
|
-
|
|
52452
|
-
|
|
52907
|
+
label: "Summary: addons stopped",
|
|
52908
|
+
example: "hub — recorder stopped after repeated crashes",
|
|
52909
|
+
kinds: ["addon-crash-loop"]
|
|
52910
|
+
},
|
|
52911
|
+
{
|
|
52912
|
+
name: "summaryAddonUpdates",
|
|
52913
|
+
label: "Summary: addon updates",
|
|
52914
|
+
example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
|
|
52915
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52453
52916
|
},
|
|
52454
52917
|
{
|
|
52455
52918
|
name: "summaryUpdates",
|
|
@@ -52457,6 +52920,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52457
52920
|
example: "server 1.2.377 → 1.2.378",
|
|
52458
52921
|
kinds: [
|
|
52459
52922
|
"server-update-available",
|
|
52923
|
+
"node-updating",
|
|
52460
52924
|
"server-updated",
|
|
52461
52925
|
"wrapper-update-available"
|
|
52462
52926
|
]
|
|
@@ -52489,7 +52953,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52489
52953
|
{
|
|
52490
52954
|
name: "summarySection",
|
|
52491
52955
|
label: "Summary: this section",
|
|
52492
|
-
description: "The section a per-section summary row is about
|
|
52956
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
52493
52957
|
example: "Batterie scariche",
|
|
52494
52958
|
group: "system",
|
|
52495
52959
|
families: ["rule"],
|
|
@@ -52533,6 +52997,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52533
52997
|
[...RULE_BODY_ONLY],
|
|
52534
52998
|
[...RULE_TEXT],
|
|
52535
52999
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
53000
|
+
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
52536
53001
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
52537
53002
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
52538
53003
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
@@ -52573,6 +53038,8 @@ var STATE_SUMMARY_VARS = [
|
|
|
52573
53038
|
[...RULE_TEXT],
|
|
52574
53039
|
[...RULE_TEXT],
|
|
52575
53040
|
[...RULE_TEXT],
|
|
53041
|
+
[...RULE_TEXT],
|
|
53042
|
+
[...RULE_TEXT],
|
|
52576
53043
|
...STATE_SUMMARY_VARS
|
|
52577
53044
|
];
|
|
52578
53045
|
new Set([
|
|
@@ -53299,7 +53766,7 @@ function buildConnectionFormSchema() {
|
|
|
53299
53766
|
key: "host",
|
|
53300
53767
|
label: "Host / IP",
|
|
53301
53768
|
required: true,
|
|
53302
|
-
placeholder: "192.168.
|
|
53769
|
+
placeholder: "192.168.10.50"
|
|
53303
53770
|
}]
|
|
53304
53771
|
},
|
|
53305
53772
|
{
|