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