@camstack/addon-provider-wyze 0.2.127 → 0.2.129
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 +924 -472
- package/dist/addon.mjs +924 -472
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -31,7 +31,7 @@ let net = require("net");
|
|
|
31
31
|
net = __toESM(net, 1);
|
|
32
32
|
let node_child_process = require("node:child_process");
|
|
33
33
|
let node_tls = require("node:tls");
|
|
34
|
-
//#region ../types/dist/event-category-
|
|
34
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
35
35
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
36
36
|
EventCategory["SystemBoot"] = "system.boot";
|
|
37
37
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -532,15 +532,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
532
532
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
533
533
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
534
534
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
535
|
-
/**
|
|
536
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
537
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
538
|
-
* `createSession`, so running sessions keep their current backend until
|
|
539
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
540
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
541
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
542
|
-
*/
|
|
543
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
544
535
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
545
536
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
546
537
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -5411,7 +5402,7 @@ var ZodIssueCode = {
|
|
|
5411
5402
|
var ZodFirstPartyTypeKind;
|
|
5412
5403
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5413
5404
|
//#endregion
|
|
5414
|
-
//#region ../types/dist/sleep-
|
|
5405
|
+
//#region ../types/dist/sleep-BNeXenvr.mjs
|
|
5415
5406
|
/**
|
|
5416
5407
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5417
5408
|
* window to float samples (D455).
|
|
@@ -6777,32 +6768,12 @@ object({
|
|
|
6777
6768
|
audioCodec: string().optional(),
|
|
6778
6769
|
metadata: record(string(), unknown()).readonly().optional()
|
|
6779
6770
|
});
|
|
6780
|
-
var EncodedPacketSchema = object({
|
|
6781
|
-
type: _enum(["video", "audio"]),
|
|
6782
|
-
data: _instanceof(Uint8Array),
|
|
6783
|
-
pts: number(),
|
|
6784
|
-
dts: number(),
|
|
6785
|
-
keyframe: boolean(),
|
|
6786
|
-
codec: string()
|
|
6787
|
-
});
|
|
6788
|
-
var DecodedFrameSchema = object({
|
|
6789
|
-
data: _instanceof(Uint8Array),
|
|
6790
|
-
width: number(),
|
|
6791
|
-
height: number(),
|
|
6792
|
-
format: _enum([
|
|
6793
|
-
"jpeg",
|
|
6794
|
-
"rgb",
|
|
6795
|
-
"bgr",
|
|
6796
|
-
"yuv420",
|
|
6797
|
-
"gray"
|
|
6798
|
-
]),
|
|
6799
|
-
timestamp: number()
|
|
6800
|
-
});
|
|
6801
6771
|
/**
|
|
6802
6772
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
6803
6773
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
6804
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
6805
|
-
*
|
|
6774
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
6775
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
6776
|
+
* over tRPC / Moleculer.
|
|
6806
6777
|
*
|
|
6807
6778
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
6808
6779
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -6828,50 +6799,6 @@ var FrameHandleSchema = object({
|
|
|
6828
6799
|
slotCount: number().int().positive()
|
|
6829
6800
|
});
|
|
6830
6801
|
/**
|
|
6831
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
6832
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
6833
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
6834
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
6835
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
6836
|
-
*/
|
|
6837
|
-
var FrameHandleFormatSchema = _enum([
|
|
6838
|
-
"rgb",
|
|
6839
|
-
"bgr",
|
|
6840
|
-
"yuv420",
|
|
6841
|
-
"gray"
|
|
6842
|
-
]);
|
|
6843
|
-
/**
|
|
6844
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
6845
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
6846
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
6847
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
6848
|
-
* they asked for with no broker-side conversion.
|
|
6849
|
-
*/
|
|
6850
|
-
var SubscribeFramesInputSchema = object({
|
|
6851
|
-
brokerId: string(),
|
|
6852
|
-
format: FrameHandleFormatSchema,
|
|
6853
|
-
/**
|
|
6854
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
6855
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
6856
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
6857
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
6858
|
-
*/
|
|
6859
|
-
maxFps: number().positive().optional(),
|
|
6860
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
6861
|
-
tag: string().optional()
|
|
6862
|
-
});
|
|
6863
|
-
/**
|
|
6864
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
6865
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
6866
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
6867
|
-
*/
|
|
6868
|
-
var SubscribeFramesResultSchema = object({
|
|
6869
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
6870
|
-
subscriptionId: string(),
|
|
6871
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
6872
|
-
maxFps: number().nonnegative()
|
|
6873
|
-
});
|
|
6874
|
-
/**
|
|
6875
6802
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
6876
6803
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
6877
6804
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -6879,8 +6806,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
6879
6806
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
6880
6807
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
6881
6808
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
6882
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
6883
|
-
*
|
|
6809
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
6810
|
+
* it.
|
|
6884
6811
|
*/
|
|
6885
6812
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
6886
6813
|
var DecodedAudioChunkSchema = object({
|
|
@@ -6898,11 +6825,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
6898
6825
|
format: AudioChunkFormatSchema.optional()
|
|
6899
6826
|
});
|
|
6900
6827
|
/**
|
|
6901
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
6902
|
-
*
|
|
6903
|
-
*
|
|
6904
|
-
*
|
|
6905
|
-
* `pullAudioChunks`.
|
|
6828
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
6829
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
6830
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
6831
|
+
* the consumer drains via `pullAudioChunks`.
|
|
6906
6832
|
*/
|
|
6907
6833
|
var SubscribeAudioChunksInputSchema = object({
|
|
6908
6834
|
brokerId: string(),
|
|
@@ -6933,9 +6859,7 @@ var BrokerStatsSchema = object({
|
|
|
6933
6859
|
"stopped"
|
|
6934
6860
|
]),
|
|
6935
6861
|
inputFps: number(),
|
|
6936
|
-
decodeFps: number(),
|
|
6937
6862
|
encodedSubscribers: number(),
|
|
6938
|
-
decodedSubscribers: number(),
|
|
6939
6863
|
uptimeMs: number(),
|
|
6940
6864
|
bitrateKbps: number(),
|
|
6941
6865
|
idrIntervalMs: number(),
|
|
@@ -6948,14 +6872,6 @@ var BrokerStatsSchema = object({
|
|
|
6948
6872
|
preBufferMs: number(),
|
|
6949
6873
|
preBufferPackets: number(),
|
|
6950
6874
|
/**
|
|
6951
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
6952
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
6953
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
6954
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
6955
|
-
* a separate cap call per broker.
|
|
6956
|
-
*/
|
|
6957
|
-
decoderNodeId: string().nullable(),
|
|
6958
|
-
/**
|
|
6959
6875
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
6960
6876
|
* when the stream has no audio track or the broker is in cold start.
|
|
6961
6877
|
* `supported = false` means the codec was detected but the local
|
|
@@ -10311,70 +10227,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
10311
10227
|
"backup"
|
|
10312
10228
|
]).optional()
|
|
10313
10229
|
});
|
|
10314
|
-
var DecoderStatsSchema = object({
|
|
10315
|
-
inputFps: number(),
|
|
10316
|
-
outputFps: number(),
|
|
10317
|
-
avgDecodeTimeMs: number(),
|
|
10318
|
-
droppedFrames: number(),
|
|
10319
|
-
/**
|
|
10320
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
10321
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
10322
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
10323
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
10324
|
-
*/
|
|
10325
|
-
lagMs: number().optional(),
|
|
10326
|
-
effectiveFps: number().optional(),
|
|
10327
|
-
adaptiveFps: number().optional()
|
|
10328
|
-
});
|
|
10329
|
-
var DecoderSessionConfigSchema = object({
|
|
10330
|
-
codec: string(),
|
|
10331
|
-
maxFps: number().default(0),
|
|
10332
|
-
outputFormat: _enum([
|
|
10333
|
-
"jpeg",
|
|
10334
|
-
"rgb",
|
|
10335
|
-
"bgr",
|
|
10336
|
-
"yuv420",
|
|
10337
|
-
"gray"
|
|
10338
|
-
]).default("jpeg"),
|
|
10339
|
-
scale: number().default(1),
|
|
10340
|
-
width: number().optional(),
|
|
10341
|
-
height: number().optional(),
|
|
10342
|
-
/**
|
|
10343
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
10344
|
-
* because the cap is generic (any caller could request decode), but
|
|
10345
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
10346
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
10347
|
-
* sendPacket errors on a single hung camera).
|
|
10348
|
-
*/
|
|
10349
|
-
deviceId: number().int().nonnegative().optional(),
|
|
10350
|
-
/**
|
|
10351
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
10352
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
10353
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
10354
|
-
* profile cleanly.
|
|
10355
|
-
*/
|
|
10356
|
-
tag: string().optional(),
|
|
10357
|
-
/**
|
|
10358
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
10359
|
-
*
|
|
10360
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
10361
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
10362
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
10363
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
10364
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
10365
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
10366
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
10367
|
-
*/
|
|
10368
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
10369
|
-
/**
|
|
10370
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
10371
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
10372
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
10373
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
10374
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
10375
|
-
*/
|
|
10376
|
-
debug: boolean().optional()
|
|
10377
|
-
});
|
|
10378
10230
|
/**
|
|
10379
10231
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
10380
10232
|
* an addon declares its channels in.
|
|
@@ -10517,6 +10369,26 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10517
10369
|
"balanced",
|
|
10518
10370
|
"strict"
|
|
10519
10371
|
]);
|
|
10372
|
+
/** Steps whose effect a root label can BE. */
|
|
10373
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10374
|
+
"animal-classifier",
|
|
10375
|
+
"vehicle-classifier",
|
|
10376
|
+
"package-detection"
|
|
10377
|
+
];
|
|
10378
|
+
/** Steps whose box a root detection can BE. */
|
|
10379
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10380
|
+
/**
|
|
10381
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
10382
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
10383
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
10384
|
+
* no camera tree carries.)
|
|
10385
|
+
*/
|
|
10386
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
10387
|
+
[
|
|
10388
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
10389
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
10390
|
+
...MASK_SUPPLY_STEP_IDS
|
|
10391
|
+
];
|
|
10520
10392
|
var MODEL_FORMATS = [
|
|
10521
10393
|
"onnx",
|
|
10522
10394
|
"coreml",
|
|
@@ -10545,7 +10417,53 @@ var ModelFormatEntrySchema = object({
|
|
|
10545
10417
|
/** Multi-file payload (directory members or sibling files). */
|
|
10546
10418
|
files: array(string()).readonly().optional(),
|
|
10547
10419
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
10548
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
10420
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
10421
|
+
/**
|
|
10422
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
10423
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
10424
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
10425
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
10426
|
+
* node records the revision it downloaded next to the file
|
|
10427
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
10428
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
10429
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
10430
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
10431
|
+
*/
|
|
10432
|
+
revision: string().min(1).optional()
|
|
10433
|
+
});
|
|
10434
|
+
/**
|
|
10435
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
10436
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
10437
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
10438
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
10439
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
10440
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
10441
|
+
*/
|
|
10442
|
+
var ModelOnDiskStateSchema = _enum([
|
|
10443
|
+
"current",
|
|
10444
|
+
"stale",
|
|
10445
|
+
"missing"
|
|
10446
|
+
]);
|
|
10447
|
+
/**
|
|
10448
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
10449
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
10450
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
10451
|
+
*/
|
|
10452
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
10453
|
+
"fp32",
|
|
10454
|
+
"fp16",
|
|
10455
|
+
"int8"
|
|
10456
|
+
]);
|
|
10457
|
+
/**
|
|
10458
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
10459
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
10460
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
10461
|
+
*/
|
|
10462
|
+
var PipelineModelFormatStatusSchema = object({
|
|
10463
|
+
downloaded: boolean(),
|
|
10464
|
+
sizeMB: number(),
|
|
10465
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
10466
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
10549
10467
|
});
|
|
10550
10468
|
/**
|
|
10551
10469
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -10649,6 +10567,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10649
10567
|
/** True when the weights or their data forbid commercial use. */
|
|
10650
10568
|
nonCommercial: boolean().optional()
|
|
10651
10569
|
}));
|
|
10570
|
+
/**
|
|
10571
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10572
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10573
|
+
*
|
|
10574
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10575
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10576
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10577
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10578
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10579
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10580
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
10581
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
10582
|
+
* detection in the shape that step produces. Derived from the model's
|
|
10583
|
+
* postprocessor on read, never stored by an import.
|
|
10584
|
+
*/
|
|
10585
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
10586
|
+
object({
|
|
10587
|
+
kind: literal("label"),
|
|
10588
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10589
|
+
labelToEffect: record(string(), string()),
|
|
10590
|
+
uncovered: array(string()).readonly()
|
|
10591
|
+
}),
|
|
10592
|
+
object({
|
|
10593
|
+
kind: literal("crop"),
|
|
10594
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10595
|
+
rootLabels: array(string()).readonly(),
|
|
10596
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10597
|
+
childClass: _enum(["plate", "face"]),
|
|
10598
|
+
/**
|
|
10599
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10600
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10601
|
+
* stored by an import.
|
|
10602
|
+
*/
|
|
10603
|
+
rootInputPx: number().int().positive().optional()
|
|
10604
|
+
}),
|
|
10605
|
+
object({
|
|
10606
|
+
kind: literal("mask"),
|
|
10607
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
10608
|
+
})
|
|
10609
|
+
]);
|
|
10652
10610
|
var ModelCatalogEntrySchema = object({
|
|
10653
10611
|
id: string(),
|
|
10654
10612
|
name: string(),
|
|
@@ -10714,6 +10672,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
10714
10672
|
*/
|
|
10715
10673
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
10716
10674
|
/**
|
|
10675
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
10676
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
10677
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
10678
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
10679
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
10680
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
10681
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
10682
|
+
*/
|
|
10683
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10684
|
+
/**
|
|
10685
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
10686
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
10687
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
10688
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
10689
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
10690
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
10691
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
10692
|
+
*/
|
|
10693
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
10694
|
+
/**
|
|
10695
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
10696
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
10697
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
10698
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
10699
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
10700
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
10701
|
+
*/
|
|
10702
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10703
|
+
/**
|
|
10717
10704
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
10718
10705
|
* onto the canonical template) before this step runs, instead of a plain
|
|
10719
10706
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -10775,6 +10762,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
10775
10762
|
*/
|
|
10776
10763
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10777
10764
|
/**
|
|
10765
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10766
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10767
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10768
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10769
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10770
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10771
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10772
|
+
*/
|
|
10773
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10774
|
+
/**
|
|
10778
10775
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10779
10776
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
10780
10777
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -12376,13 +12373,6 @@ var BrokerRtspClientSchema = object({
|
|
|
12376
12373
|
lastRtpAt: number(),
|
|
12377
12374
|
bytesSent: number()
|
|
12378
12375
|
});
|
|
12379
|
-
var BrokerDecodedClientSchema = object({
|
|
12380
|
-
tag: string(),
|
|
12381
|
-
subscribedAt: number(),
|
|
12382
|
-
maxFps: number(),
|
|
12383
|
-
framesDelivered: number(),
|
|
12384
|
-
framesDropped: number()
|
|
12385
|
-
});
|
|
12386
12376
|
var BrokerAudioClientSchema = object({
|
|
12387
12377
|
tag: string(),
|
|
12388
12378
|
subscribedAt: number(),
|
|
@@ -12474,7 +12464,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
12474
12464
|
});
|
|
12475
12465
|
var BrokerClientsSchema = object({
|
|
12476
12466
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
12477
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
12478
12467
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
12479
12468
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
12480
12469
|
pipeClients: number(),
|
|
@@ -12843,11 +12832,7 @@ method(object({
|
|
|
12843
12832
|
auth: "admin"
|
|
12844
12833
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
12845
12834
|
brokerId: string(),
|
|
12846
|
-
channel: _enum([
|
|
12847
|
-
"rtsp",
|
|
12848
|
-
"decoded",
|
|
12849
|
-
"audio"
|
|
12850
|
-
]),
|
|
12835
|
+
channel: _enum(["rtsp", "audio"]),
|
|
12851
12836
|
handle: string()
|
|
12852
12837
|
}), object({ killed: boolean() }), {
|
|
12853
12838
|
kind: "mutation",
|
|
@@ -12882,10 +12867,7 @@ method(object({
|
|
|
12882
12867
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
12883
12868
|
subscriptionId: string(),
|
|
12884
12869
|
maxCount: number().int().positive().default(8)
|
|
12885
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
12886
|
-
subscriptionId: string(),
|
|
12887
|
-
maxCount: number().int().positive().default(4)
|
|
12888
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12870
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12889
12871
|
brokerId: string(),
|
|
12890
12872
|
seconds: number().min(0).max(30)
|
|
12891
12873
|
}), _void(), {
|
|
@@ -14144,54 +14126,12 @@ id: union([string(), number()]) }), {
|
|
|
14144
14126
|
kind: "mutation",
|
|
14145
14127
|
auth: "admin"
|
|
14146
14128
|
});
|
|
14147
|
-
|
|
14148
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14149
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14150
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14151
|
-
*/
|
|
14152
|
-
var ShmRingStatsSchema = object({
|
|
14153
|
-
sessionId: string(),
|
|
14154
|
-
slotCount: number().int(),
|
|
14155
|
-
slotByteLength: number().int(),
|
|
14156
|
-
segmentBytes: number().int(),
|
|
14157
|
-
budgetMb: number().int(),
|
|
14158
|
-
framesWritten: number().int(),
|
|
14159
|
-
getFrameHits: number().int(),
|
|
14160
|
-
getFrameMisses: number().int()
|
|
14161
|
-
});
|
|
14162
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14129
|
+
method(_void(), object({
|
|
14163
14130
|
id: string(),
|
|
14164
14131
|
name: string(),
|
|
14165
|
-
isPullMode: boolean().optional(),
|
|
14166
|
-
priority: number().optional(),
|
|
14167
14132
|
hwaccel: string().optional(),
|
|
14168
14133
|
probedBestHwaccel: string().optional()
|
|
14169
|
-
})), method(
|
|
14170
|
-
sessionId: string(),
|
|
14171
|
-
nodeId: string()
|
|
14172
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14173
|
-
sessionId: string(),
|
|
14174
|
-
packet: EncodedPacketSchema
|
|
14175
|
-
}), _void()), method(object({
|
|
14176
|
-
sessionId: string(),
|
|
14177
|
-
url: string()
|
|
14178
|
-
}), _void()), method(object({
|
|
14179
|
-
sessionId: string(),
|
|
14180
|
-
maxCount: number().default(1),
|
|
14181
|
-
waitMs: number().optional()
|
|
14182
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14183
|
-
sessionId: string(),
|
|
14184
|
-
maxCount: number().default(1),
|
|
14185
|
-
waitMs: number().optional()
|
|
14186
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14187
|
-
sessionId: string(),
|
|
14188
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14189
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14190
|
-
sessionId: string(),
|
|
14191
|
-
codec: string(),
|
|
14192
|
-
outputFormat: string(),
|
|
14193
|
-
createdAtMs: number()
|
|
14194
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14134
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14195
14135
|
kind: "mutation",
|
|
14196
14136
|
auth: "admin"
|
|
14197
14137
|
});
|
|
@@ -16240,6 +16180,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
16240
16180
|
kind: "mutation",
|
|
16241
16181
|
auth: "admin"
|
|
16242
16182
|
});
|
|
16183
|
+
var HUB_ADDRESS_ROLES = [
|
|
16184
|
+
"appConnections",
|
|
16185
|
+
"notificationTaps",
|
|
16186
|
+
"internal",
|
|
16187
|
+
"publicEndpoint"
|
|
16188
|
+
];
|
|
16243
16189
|
/**
|
|
16244
16190
|
* Transport bounds for AI capability methods.
|
|
16245
16191
|
*
|
|
@@ -18842,6 +18788,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
18842
18788
|
"stream-offline",
|
|
18843
18789
|
"node-online",
|
|
18844
18790
|
"node-offline",
|
|
18791
|
+
"node-restarting",
|
|
18792
|
+
"node-updating",
|
|
18845
18793
|
"node-inference-unavailable",
|
|
18846
18794
|
"detection-blind",
|
|
18847
18795
|
"addon-crash-loop",
|
|
@@ -20447,7 +20395,13 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
20447
20395
|
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
20448
20396
|
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
20449
20397
|
*/
|
|
20450
|
-
notifySensorRewatched: boolean().optional()
|
|
20398
|
+
notifySensorRewatched: boolean().optional(),
|
|
20399
|
+
/**
|
|
20400
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
20401
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
20402
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
20403
|
+
*/
|
|
20404
|
+
notifySensorIgnored: boolean().optional()
|
|
20451
20405
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20452
20406
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20453
20407
|
mode: AlarmArmModeSchema,
|
|
@@ -20460,7 +20414,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
20460
20414
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20461
20415
|
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
20462
20416
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20463
|
-
notifySensorRewatched: boolean().nullable().optional()
|
|
20417
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
20418
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
20419
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
20464
20420
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20465
20421
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20466
20422
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -21438,8 +21394,8 @@ Object.freeze(Object.fromEntries([{
|
|
|
21438
21394
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
21439
21395
|
stepId: "face-embedding",
|
|
21440
21396
|
key: "minLandmarkFaceSize",
|
|
21441
|
-
label: "Min face size
|
|
21442
|
-
description: "
|
|
21397
|
+
label: "Min face size to embed (detection-frame px)",
|
|
21398
|
+
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.",
|
|
21443
21399
|
type: "slider",
|
|
21444
21400
|
min: 0,
|
|
21445
21401
|
max: 64,
|
|
@@ -23359,6 +23315,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23359
23315
|
timestamp: number()
|
|
23360
23316
|
});
|
|
23361
23317
|
/**
|
|
23318
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
23319
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
23320
|
+
*/
|
|
23321
|
+
var SuppliedRootOutputSchema = object({
|
|
23322
|
+
stepId: string(),
|
|
23323
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
23324
|
+
modelId: string(),
|
|
23325
|
+
detections: array(object({
|
|
23326
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
23327
|
+
bbox: tuple([
|
|
23328
|
+
number(),
|
|
23329
|
+
number(),
|
|
23330
|
+
number(),
|
|
23331
|
+
number()
|
|
23332
|
+
]),
|
|
23333
|
+
score: number(),
|
|
23334
|
+
/**
|
|
23335
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
23336
|
+
* detector already re-found inside a root face box (D730), so its
|
|
23337
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
23338
|
+
*/
|
|
23339
|
+
landmarks: array(object({
|
|
23340
|
+
x: number(),
|
|
23341
|
+
y: number()
|
|
23342
|
+
})).optional()
|
|
23343
|
+
})).min(1)
|
|
23344
|
+
});
|
|
23345
|
+
/**
|
|
23362
23346
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23363
23347
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23364
23348
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -23406,7 +23390,7 @@ var FrameRefSchema = object({
|
|
|
23406
23390
|
timestamp: number(),
|
|
23407
23391
|
capturedAt: number().optional()
|
|
23408
23392
|
});
|
|
23409
|
-
var ModelFormatSchema$
|
|
23393
|
+
var ModelFormatSchema$2 = _enum([
|
|
23410
23394
|
"onnx",
|
|
23411
23395
|
"coreml",
|
|
23412
23396
|
"openvino",
|
|
@@ -23424,7 +23408,7 @@ var PipelineSlotSchema = _enum([
|
|
|
23424
23408
|
var PipelineEngineChoiceSchema = object({
|
|
23425
23409
|
runtime: literal("python"),
|
|
23426
23410
|
backend: string(),
|
|
23427
|
-
format: ModelFormatSchema$
|
|
23411
|
+
format: ModelFormatSchema$2,
|
|
23428
23412
|
device: string().optional()
|
|
23429
23413
|
});
|
|
23430
23414
|
/**
|
|
@@ -23463,32 +23447,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
23463
23447
|
group: string().optional(),
|
|
23464
23448
|
settings: record(string(), unknown()).optional()
|
|
23465
23449
|
}));
|
|
23466
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
23467
|
-
addonId: string(),
|
|
23468
|
-
enabled: boolean(),
|
|
23469
|
-
modelId: string(),
|
|
23470
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
23471
|
-
settings: record(string(), unknown()).optional()
|
|
23472
|
-
}));
|
|
23473
|
-
var PipelineTemplateSchema$1 = object({
|
|
23474
|
-
id: string(),
|
|
23475
|
-
name: string(),
|
|
23476
|
-
createdAt: string(),
|
|
23477
|
-
updatedAt: string(),
|
|
23478
|
-
engine: PipelineEngineChoiceSchema,
|
|
23479
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
23480
|
-
});
|
|
23481
23450
|
var PipelineModelOptionSchema = object({
|
|
23482
23451
|
id: string(),
|
|
23483
23452
|
name: string(),
|
|
23484
|
-
formats: record(string(),
|
|
23485
|
-
downloaded: boolean(),
|
|
23486
|
-
sizeMB: number()
|
|
23487
|
-
})),
|
|
23453
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
23488
23454
|
group: ModelVariantGroupSchema.optional(),
|
|
23489
23455
|
legacy: boolean().optional(),
|
|
23490
23456
|
provider: ModelProviderIdSchema.optional(),
|
|
23491
|
-
defaultConfidence: number().optional()
|
|
23457
|
+
defaultConfidence: number().optional(),
|
|
23458
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
23492
23459
|
});
|
|
23493
23460
|
var ConfigFieldBridge = custom();
|
|
23494
23461
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -23650,6 +23617,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23650
23617
|
}), {
|
|
23651
23618
|
kind: "mutation",
|
|
23652
23619
|
auth: "admin"
|
|
23620
|
+
}), method(object({
|
|
23621
|
+
nodeId: string(),
|
|
23622
|
+
deviceIds: array(number()).readonly().optional(),
|
|
23623
|
+
dryRun: boolean()
|
|
23624
|
+
}), object({
|
|
23625
|
+
entries: array(object({
|
|
23626
|
+
deviceId: number(),
|
|
23627
|
+
keys: array(string()).readonly()
|
|
23628
|
+
})).readonly(),
|
|
23629
|
+
refused: array(object({
|
|
23630
|
+
deviceId: number(),
|
|
23631
|
+
reason: string()
|
|
23632
|
+
})).readonly()
|
|
23633
|
+
}), {
|
|
23634
|
+
kind: "mutation",
|
|
23635
|
+
auth: "admin"
|
|
23653
23636
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
23654
23637
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
23655
23638
|
deviceKey: string(),
|
|
@@ -23675,22 +23658,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23675
23658
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
23676
23659
|
steps: array(PipelineStepInputSchema),
|
|
23677
23660
|
deviceKey: string().optional()
|
|
23678
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
23679
|
-
name: string(),
|
|
23680
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
23681
|
-
engine: PipelineEngineChoiceSchema
|
|
23682
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
23683
|
-
id: string(),
|
|
23684
|
-
name: string().optional(),
|
|
23685
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
23686
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23661
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23687
23662
|
addonId: string(),
|
|
23688
23663
|
modelId: string(),
|
|
23689
|
-
format: ModelFormatSchema$
|
|
23664
|
+
format: ModelFormatSchema$2
|
|
23690
23665
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
23691
23666
|
addonId: string(),
|
|
23692
23667
|
modelId: string(),
|
|
23693
|
-
format: ModelFormatSchema$
|
|
23668
|
+
format: ModelFormatSchema$2
|
|
23694
23669
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
23695
23670
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23696
23671
|
frame: FrameInputSchema.optional(),
|
|
@@ -23756,7 +23731,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23756
23731
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
23757
23732
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
23758
23733
|
*/
|
|
23759
|
-
replay: literal(true).optional()
|
|
23734
|
+
replay: literal(true).optional(),
|
|
23735
|
+
/**
|
|
23736
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
23737
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
23738
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
23739
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
23740
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
23741
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
23742
|
+
*/
|
|
23743
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
23760
23744
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
23761
23745
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23762
23746
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -23838,6 +23822,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23838
23822
|
filename: string().optional(),
|
|
23839
23823
|
settings: record(string(), unknown()).optional()
|
|
23840
23824
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
23825
|
+
/**
|
|
23826
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
23827
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
23828
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
23829
|
+
* schemas are what crosses the cap boundary.
|
|
23830
|
+
*/
|
|
23831
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
23832
|
+
/** The operator's range for it. */
|
|
23833
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
23834
|
+
min: 1,
|
|
23835
|
+
max: 8
|
|
23836
|
+
};
|
|
23837
|
+
var HardwareClassIdSchema = _enum([
|
|
23838
|
+
"intel-core-ultra",
|
|
23839
|
+
"intel-n-series",
|
|
23840
|
+
"apple-m-base",
|
|
23841
|
+
"apple-m-pro",
|
|
23842
|
+
"unknown"
|
|
23843
|
+
]);
|
|
23844
|
+
var AcceleratorKindSchema = _enum([
|
|
23845
|
+
"intel-npu",
|
|
23846
|
+
"intel-igpu",
|
|
23847
|
+
"x86-cpu",
|
|
23848
|
+
"arm-cpu",
|
|
23849
|
+
"apple-ane",
|
|
23850
|
+
"coral"
|
|
23851
|
+
]);
|
|
23852
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
23853
|
+
object({
|
|
23854
|
+
kind: literal("capacity"),
|
|
23855
|
+
sessions: number(),
|
|
23856
|
+
minSessions: number()
|
|
23857
|
+
}),
|
|
23858
|
+
object({
|
|
23859
|
+
kind: literal("tie-faster"),
|
|
23860
|
+
over: string(),
|
|
23861
|
+
recallDelta: number()
|
|
23862
|
+
}),
|
|
23863
|
+
object({
|
|
23864
|
+
kind: literal("stepped-down"),
|
|
23865
|
+
from: string(),
|
|
23866
|
+
to: string(),
|
|
23867
|
+
limitedBy: string()
|
|
23868
|
+
}),
|
|
23869
|
+
object({
|
|
23870
|
+
kind: literal("no-fit-lightest"),
|
|
23871
|
+
sessions: number(),
|
|
23872
|
+
minSessions: number()
|
|
23873
|
+
}),
|
|
23874
|
+
object({
|
|
23875
|
+
kind: literal("derived-latency"),
|
|
23876
|
+
modelId: string()
|
|
23877
|
+
}),
|
|
23878
|
+
object({ kind: literal("cpu-device") }),
|
|
23879
|
+
object({ kind: literal("coral-untouched") }),
|
|
23880
|
+
object({ kind: literal("device-disabled") }),
|
|
23881
|
+
object({ kind: literal("device-unavailable") }),
|
|
23882
|
+
object({ kind: literal("node-offline") }),
|
|
23883
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
23884
|
+
object({
|
|
23885
|
+
kind: literal("no-measured-data"),
|
|
23886
|
+
hardwareClass: HardwareClassIdSchema
|
|
23887
|
+
}),
|
|
23888
|
+
object({
|
|
23889
|
+
kind: literal("no-family-build"),
|
|
23890
|
+
format: ModelFormatSchema$1
|
|
23891
|
+
})
|
|
23892
|
+
]);
|
|
23893
|
+
var DeviceModelChoiceSchema = object({
|
|
23894
|
+
modelId: string(),
|
|
23895
|
+
p50Ms: number(),
|
|
23896
|
+
fps: number(),
|
|
23897
|
+
measured: boolean(),
|
|
23898
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
23899
|
+
capacitySessions: number(),
|
|
23900
|
+
personRecall: number()
|
|
23901
|
+
});
|
|
23902
|
+
var DeviceRecommendationSchema = object({
|
|
23903
|
+
deviceKey: string(),
|
|
23904
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
23905
|
+
enabled: boolean(),
|
|
23906
|
+
available: boolean(),
|
|
23907
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
23908
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23909
|
+
});
|
|
23910
|
+
var NodeRecommendationSchema = object({
|
|
23911
|
+
nodeId: string(),
|
|
23912
|
+
reachable: boolean(),
|
|
23913
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
23914
|
+
cpuModel: string().nullable(),
|
|
23915
|
+
skipped: boolean(),
|
|
23916
|
+
acceleratorModelId: string().nullable(),
|
|
23917
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
23918
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23919
|
+
});
|
|
23920
|
+
var ModelPinChangeSchema = object({
|
|
23921
|
+
stepId: string(),
|
|
23922
|
+
before: string().nullable(),
|
|
23923
|
+
after: string().nullable()
|
|
23924
|
+
});
|
|
23925
|
+
var NodeDeviceChangeSchema = object({
|
|
23926
|
+
nodeId: string(),
|
|
23927
|
+
deviceKey: string(),
|
|
23928
|
+
madeExplicit: boolean(),
|
|
23929
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
23930
|
+
thresholds: array(object({
|
|
23931
|
+
stepId: string(),
|
|
23932
|
+
keys: array(string()).readonly()
|
|
23933
|
+
})).readonly()
|
|
23934
|
+
});
|
|
23935
|
+
var CameraOverrideClearSchema = object({
|
|
23936
|
+
deviceId: number(),
|
|
23937
|
+
source: _enum(["step-override", "wholesale"]),
|
|
23938
|
+
nodeId: string(),
|
|
23939
|
+
deviceKey: string().nullable(),
|
|
23940
|
+
stepId: string(),
|
|
23941
|
+
modelIdBefore: string().nullable(),
|
|
23942
|
+
keys: array(string()).readonly()
|
|
23943
|
+
});
|
|
23944
|
+
var DetectorStoreClearSchema = object({
|
|
23945
|
+
deviceId: number(),
|
|
23946
|
+
keys: array(string()).readonly()
|
|
23947
|
+
});
|
|
23948
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
23949
|
+
object({
|
|
23950
|
+
kind: literal("detector-store-cluster-wide"),
|
|
23951
|
+
skippedNodes: array(string()).readonly()
|
|
23952
|
+
}),
|
|
23953
|
+
object({
|
|
23954
|
+
kind: literal("detector-store-unreadable"),
|
|
23955
|
+
error: string()
|
|
23956
|
+
}),
|
|
23957
|
+
object({
|
|
23958
|
+
kind: literal("coral-enabled"),
|
|
23959
|
+
nodeId: string(),
|
|
23960
|
+
deviceKey: string()
|
|
23961
|
+
})
|
|
23962
|
+
]);
|
|
23963
|
+
var AutoTuneOptionsSchema = object({
|
|
23964
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
23965
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
23966
|
+
/**
|
|
23967
|
+
* The least number of parallel sessions every device must sustain at the
|
|
23968
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
23969
|
+
* that reaches it wins.
|
|
23970
|
+
*/
|
|
23971
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
23972
|
+
});
|
|
23973
|
+
var AutoTunePlanSchema = object({
|
|
23974
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
23975
|
+
planHash: string(),
|
|
23976
|
+
family: literal("yolov9"),
|
|
23977
|
+
headroom: number(),
|
|
23978
|
+
minSessionsPerDevice: number(),
|
|
23979
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
23980
|
+
cameraFps: number(),
|
|
23981
|
+
generatedAt: number(),
|
|
23982
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
23983
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
23984
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
23985
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
23986
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
23987
|
+
});
|
|
23988
|
+
var AutoTuneApplyInputSchema = object({
|
|
23989
|
+
planHash: string(),
|
|
23990
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
23991
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
23992
|
+
});
|
|
23993
|
+
var AutoTunePhaseResultSchema = object({
|
|
23994
|
+
phase: _enum([
|
|
23995
|
+
"download",
|
|
23996
|
+
"camera-overrides",
|
|
23997
|
+
"detector-thresholds",
|
|
23998
|
+
"node-models",
|
|
23999
|
+
"redispatch"
|
|
24000
|
+
]),
|
|
24001
|
+
ok: boolean(),
|
|
24002
|
+
detail: string()
|
|
24003
|
+
});
|
|
24004
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
24005
|
+
object({
|
|
24006
|
+
kind: literal("applied"),
|
|
24007
|
+
planHash: string(),
|
|
24008
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24009
|
+
}),
|
|
24010
|
+
object({
|
|
24011
|
+
kind: literal("aborted"),
|
|
24012
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24013
|
+
}),
|
|
24014
|
+
object({
|
|
24015
|
+
kind: literal("stale"),
|
|
24016
|
+
plan: AutoTunePlanSchema
|
|
24017
|
+
}),
|
|
24018
|
+
object({
|
|
24019
|
+
kind: literal("refused"),
|
|
24020
|
+
reason: _enum(["apply-in-progress"])
|
|
24021
|
+
})
|
|
24022
|
+
]);
|
|
24023
|
+
/**
|
|
24024
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
24025
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
24026
|
+
* hardware share suggestion and the stale device pins.
|
|
24027
|
+
*/
|
|
24028
|
+
/**
|
|
24029
|
+
* How a new detection session picks its node and device.
|
|
24030
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
24031
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
24032
|
+
* weight only bites once a node already holds a session.
|
|
24033
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
24034
|
+
* full or drowning node yields to a free one (D748).
|
|
24035
|
+
*/
|
|
24036
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
24037
|
+
var LoadBalancingSharesInputSchema = object({
|
|
24038
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
24039
|
+
nodes: record(string(), number().positive()).default({}),
|
|
24040
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
24041
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
24042
|
+
});
|
|
24043
|
+
var PlacementStatsInputSchema = object({
|
|
24044
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
24045
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
24046
|
+
var PlacementDeviceStatsSchema = object({
|
|
24047
|
+
deviceKey: string(),
|
|
24048
|
+
/** Sessions running on this device now. */
|
|
24049
|
+
sessionsNow: number(),
|
|
24050
|
+
/** Sessions started on this device inside the window. */
|
|
24051
|
+
sessionsStarted: number(),
|
|
24052
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
24053
|
+
observedShare: number().nullable()
|
|
24054
|
+
});
|
|
24055
|
+
var PlacementNodeStatsSchema = object({
|
|
24056
|
+
nodeId: string(),
|
|
24057
|
+
sessionsNow: number(),
|
|
24058
|
+
sessionsStarted: number(),
|
|
24059
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
24060
|
+
observedShare: number().nullable(),
|
|
24061
|
+
/** Most sessions this node ran at once inside the window. */
|
|
24062
|
+
peakSessions: number(),
|
|
24063
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
24064
|
+
yieldsAway: number(),
|
|
24065
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
24066
|
+
});
|
|
24067
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
24068
|
+
var StaleDevicePinSchema = object({
|
|
24069
|
+
deviceId: number(),
|
|
24070
|
+
deviceKey: string(),
|
|
24071
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
24072
|
+
reason: _enum(["disabled", "absent"])
|
|
24073
|
+
});
|
|
24074
|
+
var PlacementStatsSchema = object({
|
|
24075
|
+
policy: SessionPlacementPolicySchema,
|
|
24076
|
+
windowMs: number(),
|
|
24077
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
24078
|
+
observedForMs: number(),
|
|
24079
|
+
sessionsNow: number(),
|
|
24080
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
24081
|
+
clusterPeakSessions: number(),
|
|
24082
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
24083
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
24084
|
+
});
|
|
24085
|
+
/**
|
|
24086
|
+
* Where an automatic share's capacity comes from (D755).
|
|
24087
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
24088
|
+
* the measured latency table for the node's hardware class.
|
|
24089
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
24090
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
24091
|
+
*/
|
|
24092
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
24093
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
24094
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
24095
|
+
var SuggestSharesInputSchema = object({
|
|
24096
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24097
|
+
/** Default `hardware`. */
|
|
24098
|
+
source: CapacitySourceSchema.default("hardware")
|
|
24099
|
+
});
|
|
24100
|
+
var SuggestedDeviceShareSchema = object({
|
|
24101
|
+
deviceKey: string(),
|
|
24102
|
+
/** Share of the node (0–100, rounded). */
|
|
24103
|
+
share: number(),
|
|
24104
|
+
modelId: string().nullable(),
|
|
24105
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
24106
|
+
fps: number().nullable(),
|
|
24107
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
24108
|
+
measured: boolean(),
|
|
24109
|
+
/**
|
|
24110
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
24111
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
24112
|
+
*/
|
|
24113
|
+
suggestedMaxSessions: number().nullable()
|
|
24114
|
+
});
|
|
24115
|
+
var SuggestedNodeShareSchema = object({
|
|
24116
|
+
nodeId: string(),
|
|
24117
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
24118
|
+
share: number().nullable(),
|
|
24119
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
24120
|
+
capacitySessions: number(),
|
|
24121
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
24122
|
+
skippedReason: string().nullable(),
|
|
24123
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
24124
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24125
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
24126
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
24127
|
+
});
|
|
24128
|
+
var SuggestSharesResultSchema = object({
|
|
24129
|
+
headroom: number(),
|
|
24130
|
+
/** The source asked for; each node says what it actually used. */
|
|
24131
|
+
source: CapacitySourceSchema,
|
|
24132
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
24133
|
+
cameraFps: number(),
|
|
24134
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
24135
|
+
minSessionsPerDevice: number(),
|
|
24136
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
24137
|
+
});
|
|
24138
|
+
/**
|
|
24139
|
+
* Where the node and device shares come from (D750, D755).
|
|
24140
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
24141
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
24142
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
24143
|
+
* switched on or off, or changes model. No load input.
|
|
24144
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
24145
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
24146
|
+
* - `manual` — the operator's stored sliders.
|
|
24147
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
24148
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
24149
|
+
*/
|
|
24150
|
+
var ShareSourceSchema = _enum([
|
|
24151
|
+
"hardware",
|
|
24152
|
+
"benchmark",
|
|
24153
|
+
"manual"
|
|
24154
|
+
]);
|
|
24155
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
24156
|
+
object({
|
|
24157
|
+
nodes: record(string(), number()),
|
|
24158
|
+
devices: record(string(), record(string(), number()))
|
|
24159
|
+
});
|
|
24160
|
+
var EffectiveDeviceShareSchema = object({
|
|
24161
|
+
deviceKey: string(),
|
|
24162
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
24163
|
+
eligible: boolean(),
|
|
24164
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
24165
|
+
configuredPct: number(),
|
|
24166
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
24167
|
+
effectivePct: number()
|
|
24168
|
+
});
|
|
24169
|
+
var EffectiveNodeShareSchema = object({
|
|
24170
|
+
nodeId: string(),
|
|
24171
|
+
eligible: boolean(),
|
|
24172
|
+
configuredPct: number(),
|
|
24173
|
+
effectivePct: number(),
|
|
24174
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
24175
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24176
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
24177
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
24178
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
24179
|
+
});
|
|
24180
|
+
var EffectiveSharesSchema = object({
|
|
24181
|
+
source: ShareSourceSchema,
|
|
24182
|
+
policy: SessionPlacementPolicySchema,
|
|
24183
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
24184
|
+
autoPending: boolean(),
|
|
24185
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
24186
|
+
computedAt: number().nullable(),
|
|
24187
|
+
/** What made the system recompute them last. */
|
|
24188
|
+
trigger: string().nullable(),
|
|
24189
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
24190
|
+
/** The relative weights the election reads (before eligibility). */
|
|
24191
|
+
nodeWeights: record(string(), number()),
|
|
24192
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
24193
|
+
});
|
|
23841
24194
|
object({
|
|
23842
24195
|
activeCameras: number(),
|
|
23843
24196
|
throttledCameras: number(),
|
|
@@ -24755,14 +25108,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24755
25108
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
24756
25109
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
24757
25110
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
24758
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
24759
|
-
* per
|
|
25111
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
25112
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
25113
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
25114
|
+
* (D762).
|
|
24760
25115
|
*/
|
|
24761
25116
|
devices: array(object({
|
|
24762
25117
|
deviceKey: string(),
|
|
24763
25118
|
backend: string(),
|
|
24764
|
-
attachedCameras: number()
|
|
24765
|
-
queueDepthTotal: number()
|
|
25119
|
+
attachedCameras: number()
|
|
24766
25120
|
})).default([]),
|
|
24767
25121
|
/** Hardware capability flags reported by this node. */
|
|
24768
25122
|
hardware: object({
|
|
@@ -24898,7 +25252,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
24898
25252
|
*/
|
|
24899
25253
|
cropJpeg: string().optional(),
|
|
24900
25254
|
parent: DetailParentSchema,
|
|
24901
|
-
steps: array(string()).optional()
|
|
25255
|
+
steps: array(string()).optional(),
|
|
25256
|
+
/**
|
|
25257
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25258
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25259
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25260
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25261
|
+
* requested step infers as before.
|
|
25262
|
+
*/
|
|
25263
|
+
supplied: object({
|
|
25264
|
+
stepId: string(),
|
|
25265
|
+
modelId: string(),
|
|
25266
|
+
boxes: array(object({
|
|
25267
|
+
bbox: NativeCropBboxSchema,
|
|
25268
|
+
score: number()
|
|
25269
|
+
})).min(1)
|
|
25270
|
+
}).optional()
|
|
24902
25271
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
24903
25272
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
24904
25273
|
stepId: string(),
|
|
@@ -24961,14 +25330,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
24961
25330
|
settings: record(string(), unknown()).readonly().optional()
|
|
24962
25331
|
}).nullable().optional()
|
|
24963
25332
|
});
|
|
24964
|
-
var PipelineTemplateSchema = object({
|
|
24965
|
-
id: string(),
|
|
24966
|
-
name: string(),
|
|
24967
|
-
description: string().optional(),
|
|
24968
|
-
config: CameraPipelineConfigSchema,
|
|
24969
|
-
createdAt: string(),
|
|
24970
|
-
updatedAt: string()
|
|
24971
|
-
});
|
|
24972
25333
|
var DeviceStepConfigSchema = object({
|
|
24973
25334
|
modelId: string().optional(),
|
|
24974
25335
|
settings: record(string(), unknown()).optional(),
|
|
@@ -25042,9 +25403,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25042
25403
|
modelId: string().optional(),
|
|
25043
25404
|
settings: record(string(), unknown()).readonly().optional()
|
|
25044
25405
|
});
|
|
25406
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25045
25407
|
var CameraPipelineSettingsSchema = object({
|
|
25046
|
-
pinnedAgentNodeId: string().optional(),
|
|
25047
25408
|
stepToggles: record(string(), boolean()).optional(),
|
|
25409
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25048
25410
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25049
25411
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25050
25412
|
});
|
|
@@ -25077,7 +25439,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25077
25439
|
});
|
|
25078
25440
|
/**
|
|
25079
25441
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25080
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
25442
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
25443
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
25444
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
25445
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
25081
25446
|
*/
|
|
25082
25447
|
var AgentLoadSummarySchema = object({
|
|
25083
25448
|
nodeId: string(),
|
|
@@ -25166,26 +25531,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
25166
25531
|
width: number(),
|
|
25167
25532
|
height: number(),
|
|
25168
25533
|
subscribers: number(),
|
|
25169
|
-
|
|
25170
|
-
|
|
25534
|
+
/**
|
|
25535
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
25536
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
25537
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
25538
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
25539
|
+
* camera and is not served (D758).
|
|
25540
|
+
*/
|
|
25541
|
+
inFps: number().nullable()
|
|
25171
25542
|
})).readonly(),
|
|
25172
25543
|
webrtcSessions: number(),
|
|
25173
25544
|
rtspRestream: boolean()
|
|
25174
25545
|
});
|
|
25175
|
-
/**
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
var CameraDecoderStatusSchema = object({
|
|
25184
|
-
nodeId: string(),
|
|
25185
|
-
formats: array(string()).readonly(),
|
|
25186
|
-
sessionCount: number(),
|
|
25187
|
-
shm: CameraDecoderShmSchema
|
|
25188
|
-
});
|
|
25546
|
+
/**
|
|
25547
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
25548
|
+
* construction); null when the camera has no detection node. It carries no
|
|
25549
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
25550
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
25551
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
25552
|
+
* detector), never from a counter nothing feeds.
|
|
25553
|
+
*/
|
|
25554
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
25189
25555
|
/** Motion block — null when motion detection is not active for this device. */
|
|
25190
25556
|
var CameraMotionStatusSchema = object({
|
|
25191
25557
|
enabled: boolean(),
|
|
@@ -25542,12 +25908,6 @@ method(object({
|
|
|
25542
25908
|
}), object({ success: literal(true) }), {
|
|
25543
25909
|
kind: "mutation",
|
|
25544
25910
|
auth: "admin"
|
|
25545
|
-
}), method(object({
|
|
25546
|
-
agentNodeId: string(),
|
|
25547
|
-
detectWeight: number().positive().nullable()
|
|
25548
|
-
}), object({ success: literal(true) }), {
|
|
25549
|
-
kind: "mutation",
|
|
25550
|
-
auth: "admin"
|
|
25551
25911
|
}), method(object({
|
|
25552
25912
|
agentNodeId: string(),
|
|
25553
25913
|
detect: boolean().nullable().optional(),
|
|
@@ -25589,6 +25949,15 @@ method(object({
|
|
|
25589
25949
|
}), {
|
|
25590
25950
|
kind: "mutation",
|
|
25591
25951
|
auth: "admin"
|
|
25952
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
25953
|
+
kind: "mutation",
|
|
25954
|
+
auth: "admin"
|
|
25955
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
25956
|
+
kind: "mutation",
|
|
25957
|
+
auth: "admin"
|
|
25958
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
25959
|
+
kind: "mutation",
|
|
25960
|
+
auth: "admin"
|
|
25592
25961
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
25593
25962
|
deviceId: number(),
|
|
25594
25963
|
addonId: string(),
|
|
@@ -25605,6 +25974,13 @@ method(object({
|
|
|
25605
25974
|
}), object({ success: literal(true) }), {
|
|
25606
25975
|
kind: "mutation",
|
|
25607
25976
|
auth: "admin"
|
|
25977
|
+
}), method(object({
|
|
25978
|
+
deviceId: number(),
|
|
25979
|
+
addonId: string(),
|
|
25980
|
+
settings: record(string(), unknown()).nullable()
|
|
25981
|
+
}), object({ success: literal(true) }), {
|
|
25982
|
+
kind: "mutation",
|
|
25983
|
+
auth: "admin"
|
|
25608
25984
|
}), method(object({
|
|
25609
25985
|
deviceId: number(),
|
|
25610
25986
|
agentNodeId: string(),
|
|
@@ -25628,25 +26004,7 @@ method(object({
|
|
|
25628
26004
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
25629
26005
|
kind: "mutation",
|
|
25630
26006
|
auth: "admin"
|
|
25631
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
25632
|
-
name: string(),
|
|
25633
|
-
description: string().optional(),
|
|
25634
|
-
config: CameraPipelineConfigSchema
|
|
25635
|
-
}), PipelineTemplateSchema, {
|
|
25636
|
-
kind: "mutation",
|
|
25637
|
-
auth: "admin"
|
|
25638
|
-
}), method(object({
|
|
25639
|
-
id: string(),
|
|
25640
|
-
name: string().optional(),
|
|
25641
|
-
description: string().optional(),
|
|
25642
|
-
config: CameraPipelineConfigSchema.optional()
|
|
25643
|
-
}), PipelineTemplateSchema, {
|
|
25644
|
-
kind: "mutation",
|
|
25645
|
-
auth: "admin"
|
|
25646
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
25647
|
-
kind: "mutation",
|
|
25648
|
-
auth: "admin"
|
|
25649
|
-
});
|
|
26007
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
25650
26008
|
/**
|
|
25651
26009
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
25652
26010
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -27999,8 +28357,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
27999
28357
|
]).nullable(),
|
|
28000
28358
|
/** Input FPS from the camera (null for adaptive). */
|
|
28001
28359
|
inputFps: number().nullable(),
|
|
28002
|
-
/** Decoded FPS (null for adaptive). */
|
|
28003
|
-
decodeFps: number().nullable(),
|
|
28004
28360
|
/** Bitrate in kbps (null for adaptive). */
|
|
28005
28361
|
bitrateKbps: number().nullable()
|
|
28006
28362
|
});
|
|
@@ -28332,6 +28688,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28332
28688
|
*/
|
|
28333
28689
|
alive: boolean()
|
|
28334
28690
|
})), method(object({
|
|
28691
|
+
deviceId: number().int().nonnegative(),
|
|
28692
|
+
sessionId: string(),
|
|
28693
|
+
downlinkMbps: number().nonnegative()
|
|
28694
|
+
}), object({
|
|
28695
|
+
outcome: _enum(["switching", "held"]),
|
|
28696
|
+
tier: CamProfileSchema.nullable(),
|
|
28697
|
+
reason: string()
|
|
28698
|
+
}), { kind: "mutation" }), method(object({
|
|
28335
28699
|
deviceId: number().int().nonnegative(),
|
|
28336
28700
|
sessionId: string()
|
|
28337
28701
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -32151,7 +32515,8 @@ var ConnectionEndpointSchema = object({
|
|
|
32151
32515
|
"lan-ipv6",
|
|
32152
32516
|
"public",
|
|
32153
32517
|
"loopback",
|
|
32154
|
-
"app-link"
|
|
32518
|
+
"app-link",
|
|
32519
|
+
"custom"
|
|
32155
32520
|
]),
|
|
32156
32521
|
/**
|
|
32157
32522
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -32220,7 +32585,7 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
32220
32585
|
localPort: AdvertisedLocalPortSchema
|
|
32221
32586
|
});
|
|
32222
32587
|
/**
|
|
32223
|
-
* The address flagged for notification
|
|
32588
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
32224
32589
|
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
32225
32590
|
* so the UI can show it either way.
|
|
32226
32591
|
*/
|
|
@@ -32253,6 +32618,72 @@ var ViewerEndpointsSchema = object({
|
|
|
32253
32618
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
32254
32619
|
resolved: array(string()).readonly()
|
|
32255
32620
|
});
|
|
32621
|
+
/**
|
|
32622
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
32623
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
32624
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
32625
|
+
*/
|
|
32626
|
+
var HubAddressSnapshotSchema = object({
|
|
32627
|
+
override: string().nullable(),
|
|
32628
|
+
resolved: string().nullable(),
|
|
32629
|
+
source: _enum([
|
|
32630
|
+
"override",
|
|
32631
|
+
"auto",
|
|
32632
|
+
"none"
|
|
32633
|
+
])
|
|
32634
|
+
});
|
|
32635
|
+
var HubAddressesSchema = object({
|
|
32636
|
+
cluster: HubAddressSnapshotSchema,
|
|
32637
|
+
browser: HubAddressSnapshotSchema
|
|
32638
|
+
});
|
|
32639
|
+
/**
|
|
32640
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
32641
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
32642
|
+
* by at most one address.
|
|
32643
|
+
*/
|
|
32644
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
32645
|
+
var RoleSourceSchema = _enum([
|
|
32646
|
+
"flagged",
|
|
32647
|
+
"auto",
|
|
32648
|
+
"none"
|
|
32649
|
+
]);
|
|
32650
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
32651
|
+
var HubAddressRoleResolutionSchema = object({
|
|
32652
|
+
/** The address carrying the flag, or null = automatic. */
|
|
32653
|
+
flagged: string().nullable(),
|
|
32654
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
32655
|
+
resolved: string().nullable(),
|
|
32656
|
+
source: RoleSourceSchema
|
|
32657
|
+
});
|
|
32658
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
32659
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
32660
|
+
flagged: array(string()).readonly(),
|
|
32661
|
+
/** What the apps race right now. */
|
|
32662
|
+
resolved: array(string()).readonly(),
|
|
32663
|
+
source: RoleSourceSchema
|
|
32664
|
+
});
|
|
32665
|
+
var HubAddressBookSchema = object({
|
|
32666
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
32667
|
+
/** In the hub's detected palette right now. */
|
|
32668
|
+
detected: boolean(),
|
|
32669
|
+
/** Entered by the operator (removable). */
|
|
32670
|
+
custom: boolean(),
|
|
32671
|
+
/** The roles explicitly flagged on this address. */
|
|
32672
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
32673
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
32674
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
32675
|
+
/** The roles this address may be flagged with. */
|
|
32676
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
32677
|
+
})).readonly(),
|
|
32678
|
+
roles: object({
|
|
32679
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
32680
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
32681
|
+
internal: HubAddressRoleResolutionSchema,
|
|
32682
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
32683
|
+
}),
|
|
32684
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
32685
|
+
appLinkHub: string().nullable()
|
|
32686
|
+
});
|
|
32256
32687
|
var AllowedAddressesSchema = object({
|
|
32257
32688
|
/**
|
|
32258
32689
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -32296,10 +32727,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
32296
32727
|
* tunnel always emits `https://` regardless. */
|
|
32297
32728
|
scheme: _enum(["http", "https"]).optional(),
|
|
32298
32729
|
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
32299
|
-
* an address notification
|
|
32730
|
+
* an address notification taps can be flagged with, not a hub
|
|
32300
32731
|
* route. Default `false`: racers and rankers never see it. */
|
|
32301
32732
|
includeAppLink: boolean().optional()
|
|
32302
|
-
}), 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(
|
|
32733
|
+
}), 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({
|
|
32734
|
+
baseUrl: string(),
|
|
32735
|
+
label: string().max(80)
|
|
32736
|
+
}), HubAddressBookSchema, {
|
|
32737
|
+
kind: "mutation",
|
|
32738
|
+
auth: "admin"
|
|
32739
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
32740
|
+
kind: "mutation",
|
|
32741
|
+
auth: "admin"
|
|
32742
|
+
}), method(object({
|
|
32743
|
+
role: HubAddressRoleSchema,
|
|
32744
|
+
baseUrl: string().nullable(),
|
|
32745
|
+
enabled: boolean(),
|
|
32746
|
+
acceptInsecureHttp: boolean().optional()
|
|
32747
|
+
}), HubAddressBookSchema, {
|
|
32748
|
+
kind: "mutation",
|
|
32749
|
+
auth: "admin"
|
|
32750
|
+
}), 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, {
|
|
32303
32751
|
kind: "mutation",
|
|
32304
32752
|
auth: "admin"
|
|
32305
32753
|
}), method(object({
|
|
@@ -32757,7 +33205,8 @@ var MotionStatusSchema = object({
|
|
|
32757
33205
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32758
33206
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32759
33207
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32760
|
-
* A provider's `isDetected`
|
|
33208
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
33209
|
+
* (`hubMotionNativeProvider`).
|
|
32761
33210
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32762
33211
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32763
33212
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -39304,6 +39753,16 @@ var zoneRulesCapability = {
|
|
|
39304
39753
|
durability: "restored"
|
|
39305
39754
|
};
|
|
39306
39755
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
39756
|
+
Object.freeze({
|
|
39757
|
+
person: .5,
|
|
39758
|
+
vehicle: .5,
|
|
39759
|
+
animal: .5
|
|
39760
|
+
});
|
|
39761
|
+
Object.freeze({
|
|
39762
|
+
person: .65,
|
|
39763
|
+
vehicle: .65,
|
|
39764
|
+
animal: .65
|
|
39765
|
+
});
|
|
39307
39766
|
/**
|
|
39308
39767
|
* Accessory device helpers — shared across drivers.
|
|
39309
39768
|
*
|
|
@@ -42184,90 +42643,18 @@ Object.freeze({
|
|
|
42184
42643
|
addonId: null,
|
|
42185
42644
|
access: "create"
|
|
42186
42645
|
},
|
|
42187
|
-
"decoder.createSession": {
|
|
42188
|
-
capName: "decoder",
|
|
42189
|
-
capScope: "system",
|
|
42190
|
-
addonId: null,
|
|
42191
|
-
access: "view"
|
|
42192
|
-
},
|
|
42193
|
-
"decoder.destroySession": {
|
|
42194
|
-
capName: "decoder",
|
|
42195
|
-
capScope: "system",
|
|
42196
|
-
addonId: null,
|
|
42197
|
-
access: "delete"
|
|
42198
|
-
},
|
|
42199
|
-
"decoder.getFrame": {
|
|
42200
|
-
capName: "decoder",
|
|
42201
|
-
capScope: "system",
|
|
42202
|
-
addonId: null,
|
|
42203
|
-
access: "view"
|
|
42204
|
-
},
|
|
42205
42646
|
"decoder.getInfo": {
|
|
42206
42647
|
capName: "decoder",
|
|
42207
42648
|
capScope: "system",
|
|
42208
42649
|
addonId: null,
|
|
42209
42650
|
access: "view"
|
|
42210
42651
|
},
|
|
42211
|
-
"decoder.getShmStats": {
|
|
42212
|
-
capName: "decoder",
|
|
42213
|
-
capScope: "system",
|
|
42214
|
-
addonId: null,
|
|
42215
|
-
access: "view"
|
|
42216
|
-
},
|
|
42217
|
-
"decoder.getStats": {
|
|
42218
|
-
capName: "decoder",
|
|
42219
|
-
capScope: "system",
|
|
42220
|
-
addonId: null,
|
|
42221
|
-
access: "view"
|
|
42222
|
-
},
|
|
42223
|
-
"decoder.listActiveSessions": {
|
|
42224
|
-
capName: "decoder",
|
|
42225
|
-
capScope: "system",
|
|
42226
|
-
addonId: null,
|
|
42227
|
-
access: "view"
|
|
42228
|
-
},
|
|
42229
|
-
"decoder.openStream": {
|
|
42230
|
-
capName: "decoder",
|
|
42231
|
-
capScope: "system",
|
|
42232
|
-
addonId: null,
|
|
42233
|
-
access: "view"
|
|
42234
|
-
},
|
|
42235
|
-
"decoder.pullFrames": {
|
|
42236
|
-
capName: "decoder",
|
|
42237
|
-
capScope: "system",
|
|
42238
|
-
addonId: null,
|
|
42239
|
-
access: "view"
|
|
42240
|
-
},
|
|
42241
|
-
"decoder.pullHandles": {
|
|
42242
|
-
capName: "decoder",
|
|
42243
|
-
capScope: "system",
|
|
42244
|
-
addonId: null,
|
|
42245
|
-
access: "view"
|
|
42246
|
-
},
|
|
42247
|
-
"decoder.pushPacket": {
|
|
42248
|
-
capName: "decoder",
|
|
42249
|
-
capScope: "system",
|
|
42250
|
-
addonId: null,
|
|
42251
|
-
access: "view"
|
|
42252
|
-
},
|
|
42253
42652
|
"decoder.reprobeHwaccel": {
|
|
42254
42653
|
capName: "decoder",
|
|
42255
42654
|
capScope: "system",
|
|
42256
42655
|
addonId: null,
|
|
42257
42656
|
access: "create"
|
|
42258
42657
|
},
|
|
42259
|
-
"decoder.supportsCodec": {
|
|
42260
|
-
capName: "decoder",
|
|
42261
|
-
capScope: "system",
|
|
42262
|
-
addonId: null,
|
|
42263
|
-
access: "view"
|
|
42264
|
-
},
|
|
42265
|
-
"decoder.updateConfig": {
|
|
42266
|
-
capName: "decoder",
|
|
42267
|
-
capScope: "system",
|
|
42268
|
-
addonId: null,
|
|
42269
|
-
access: "view"
|
|
42270
|
-
},
|
|
42271
42658
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
42272
42659
|
capName: "detection-pipeline",
|
|
42273
42660
|
capScope: "device",
|
|
@@ -43756,12 +44143,24 @@ Object.freeze({
|
|
|
43756
44143
|
addonId: null,
|
|
43757
44144
|
access: "view"
|
|
43758
44145
|
},
|
|
44146
|
+
"localNetwork.addCustomAddress": {
|
|
44147
|
+
capName: "local-network",
|
|
44148
|
+
capScope: "system",
|
|
44149
|
+
addonId: null,
|
|
44150
|
+
access: "create"
|
|
44151
|
+
},
|
|
43759
44152
|
"localNetwork.downloadCa": {
|
|
43760
44153
|
capName: "local-network",
|
|
43761
44154
|
capScope: "system",
|
|
43762
44155
|
addonId: null,
|
|
43763
44156
|
access: "view"
|
|
43764
44157
|
},
|
|
44158
|
+
"localNetwork.getAddresses": {
|
|
44159
|
+
capName: "local-network",
|
|
44160
|
+
capScope: "system",
|
|
44161
|
+
addonId: null,
|
|
44162
|
+
access: "view"
|
|
44163
|
+
},
|
|
43765
44164
|
"localNetwork.getAllowedAddresses": {
|
|
43766
44165
|
capName: "local-network",
|
|
43767
44166
|
capScope: "system",
|
|
@@ -43774,6 +44173,12 @@ Object.freeze({
|
|
|
43774
44173
|
addonId: null,
|
|
43775
44174
|
access: "view"
|
|
43776
44175
|
},
|
|
44176
|
+
"localNetwork.getHubAddresses": {
|
|
44177
|
+
capName: "local-network",
|
|
44178
|
+
capScope: "system",
|
|
44179
|
+
addonId: null,
|
|
44180
|
+
access: "view"
|
|
44181
|
+
},
|
|
43777
44182
|
"localNetwork.getNotificationEndpoint": {
|
|
43778
44183
|
capName: "local-network",
|
|
43779
44184
|
capScope: "system",
|
|
@@ -43810,6 +44215,12 @@ Object.freeze({
|
|
|
43810
44215
|
addonId: null,
|
|
43811
44216
|
access: "create"
|
|
43812
44217
|
},
|
|
44218
|
+
"localNetwork.removeCustomAddress": {
|
|
44219
|
+
capName: "local-network",
|
|
44220
|
+
capScope: "system",
|
|
44221
|
+
addonId: null,
|
|
44222
|
+
access: "delete"
|
|
44223
|
+
},
|
|
43813
44224
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
43814
44225
|
capName: "local-network",
|
|
43815
44226
|
capScope: "system",
|
|
@@ -43822,6 +44233,12 @@ Object.freeze({
|
|
|
43822
44233
|
addonId: null,
|
|
43823
44234
|
access: "create"
|
|
43824
44235
|
},
|
|
44236
|
+
"localNetwork.setAddressRole": {
|
|
44237
|
+
capName: "local-network",
|
|
44238
|
+
capScope: "system",
|
|
44239
|
+
addonId: null,
|
|
44240
|
+
access: "create"
|
|
44241
|
+
},
|
|
43825
44242
|
"localNetwork.setAllowedAddresses": {
|
|
43826
44243
|
capName: "local-network",
|
|
43827
44244
|
capScope: "system",
|
|
@@ -45316,13 +45733,13 @@ Object.freeze({
|
|
|
45316
45733
|
addonId: null,
|
|
45317
45734
|
access: "delete"
|
|
45318
45735
|
},
|
|
45319
|
-
"pipelineExecutor.
|
|
45736
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
45320
45737
|
capName: "pipeline-executor",
|
|
45321
45738
|
capScope: "system",
|
|
45322
45739
|
addonId: null,
|
|
45323
45740
|
access: "delete"
|
|
45324
45741
|
},
|
|
45325
|
-
"pipelineExecutor.
|
|
45742
|
+
"pipelineExecutor.deleteModel": {
|
|
45326
45743
|
capName: "pipeline-executor",
|
|
45327
45744
|
capScope: "system",
|
|
45328
45745
|
addonId: null,
|
|
@@ -45466,12 +45883,6 @@ Object.freeze({
|
|
|
45466
45883
|
addonId: null,
|
|
45467
45884
|
access: "view"
|
|
45468
45885
|
},
|
|
45469
|
-
"pipelineExecutor.listTemplates": {
|
|
45470
|
-
capName: "pipeline-executor",
|
|
45471
|
-
capScope: "system",
|
|
45472
|
-
addonId: null,
|
|
45473
|
-
access: "view"
|
|
45474
|
-
},
|
|
45475
45886
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
45476
45887
|
capName: "pipeline-executor",
|
|
45477
45888
|
capScope: "system",
|
|
@@ -45496,12 +45907,6 @@ Object.freeze({
|
|
|
45496
45907
|
addonId: null,
|
|
45497
45908
|
access: "create"
|
|
45498
45909
|
},
|
|
45499
|
-
"pipelineExecutor.saveTemplate": {
|
|
45500
|
-
capName: "pipeline-executor",
|
|
45501
|
-
capScope: "system",
|
|
45502
|
-
addonId: null,
|
|
45503
|
-
access: "create"
|
|
45504
|
-
},
|
|
45505
45910
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
45506
45911
|
capName: "pipeline-executor",
|
|
45507
45912
|
capScope: "system",
|
|
@@ -45520,41 +45925,35 @@ Object.freeze({
|
|
|
45520
45925
|
addonId: null,
|
|
45521
45926
|
access: "create"
|
|
45522
45927
|
},
|
|
45523
|
-
"pipelineExecutor.updateTemplate": {
|
|
45524
|
-
capName: "pipeline-executor",
|
|
45525
|
-
capScope: "system",
|
|
45526
|
-
addonId: null,
|
|
45527
|
-
access: "create"
|
|
45528
|
-
},
|
|
45529
45928
|
"pipelineExecutor.validatePipeline": {
|
|
45530
45929
|
capName: "pipeline-executor",
|
|
45531
45930
|
capScope: "system",
|
|
45532
45931
|
addonId: null,
|
|
45533
45932
|
access: "view"
|
|
45534
45933
|
},
|
|
45535
|
-
"pipelineOrchestrator.
|
|
45934
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
45536
45935
|
capName: "pipeline-orchestrator",
|
|
45537
45936
|
capScope: "system",
|
|
45538
45937
|
addonId: null,
|
|
45539
45938
|
access: "create"
|
|
45540
45939
|
},
|
|
45541
|
-
"pipelineOrchestrator.
|
|
45940
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
45542
45941
|
capName: "pipeline-orchestrator",
|
|
45543
45942
|
capScope: "system",
|
|
45544
45943
|
addonId: null,
|
|
45545
45944
|
access: "create"
|
|
45546
45945
|
},
|
|
45547
|
-
"pipelineOrchestrator.
|
|
45946
|
+
"pipelineOrchestrator.assignAudio": {
|
|
45548
45947
|
capName: "pipeline-orchestrator",
|
|
45549
45948
|
capScope: "system",
|
|
45550
45949
|
addonId: null,
|
|
45551
45950
|
access: "create"
|
|
45552
45951
|
},
|
|
45553
|
-
"pipelineOrchestrator.
|
|
45952
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
45554
45953
|
capName: "pipeline-orchestrator",
|
|
45555
45954
|
capScope: "system",
|
|
45556
45955
|
addonId: null,
|
|
45557
|
-
access: "
|
|
45956
|
+
access: "create"
|
|
45558
45957
|
},
|
|
45559
45958
|
"pipelineOrchestrator.getAgentLoad": {
|
|
45560
45959
|
capName: "pipeline-orchestrator",
|
|
@@ -45646,6 +46045,12 @@ Object.freeze({
|
|
|
45646
46045
|
addonId: null,
|
|
45647
46046
|
access: "view"
|
|
45648
46047
|
},
|
|
46048
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
46049
|
+
capName: "pipeline-orchestrator",
|
|
46050
|
+
capScope: "system",
|
|
46051
|
+
addonId: null,
|
|
46052
|
+
access: "view"
|
|
46053
|
+
},
|
|
45649
46054
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
45650
46055
|
capName: "pipeline-orchestrator",
|
|
45651
46056
|
capScope: "system",
|
|
@@ -45682,19 +46087,19 @@ Object.freeze({
|
|
|
45682
46087
|
addonId: null,
|
|
45683
46088
|
access: "view"
|
|
45684
46089
|
},
|
|
45685
|
-
"pipelineOrchestrator.
|
|
46090
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
45686
46091
|
capName: "pipeline-orchestrator",
|
|
45687
46092
|
capScope: "system",
|
|
45688
46093
|
addonId: null,
|
|
45689
46094
|
access: "view"
|
|
45690
46095
|
},
|
|
45691
|
-
"pipelineOrchestrator.
|
|
46096
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
45692
46097
|
capName: "pipeline-orchestrator",
|
|
45693
46098
|
capScope: "system",
|
|
45694
46099
|
addonId: null,
|
|
45695
46100
|
access: "view"
|
|
45696
46101
|
},
|
|
45697
|
-
"pipelineOrchestrator.
|
|
46102
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
45698
46103
|
capName: "pipeline-orchestrator",
|
|
45699
46104
|
capScope: "system",
|
|
45700
46105
|
addonId: null,
|
|
@@ -45706,6 +46111,12 @@ Object.freeze({
|
|
|
45706
46111
|
addonId: null,
|
|
45707
46112
|
access: "create"
|
|
45708
46113
|
},
|
|
46114
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
46115
|
+
capName: "pipeline-orchestrator",
|
|
46116
|
+
capScope: "system",
|
|
46117
|
+
addonId: null,
|
|
46118
|
+
access: "view"
|
|
46119
|
+
},
|
|
45709
46120
|
"pipelineOrchestrator.rebalance": {
|
|
45710
46121
|
capName: "pipeline-orchestrator",
|
|
45711
46122
|
capScope: "system",
|
|
@@ -45748,12 +46159,6 @@ Object.freeze({
|
|
|
45748
46159
|
addonId: null,
|
|
45749
46160
|
access: "create"
|
|
45750
46161
|
},
|
|
45751
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
45752
|
-
capName: "pipeline-orchestrator",
|
|
45753
|
-
capScope: "system",
|
|
45754
|
-
addonId: null,
|
|
45755
|
-
access: "create"
|
|
45756
|
-
},
|
|
45757
46162
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
45758
46163
|
capName: "pipeline-orchestrator",
|
|
45759
46164
|
capScope: "system",
|
|
@@ -45766,12 +46171,6 @@ Object.freeze({
|
|
|
45766
46171
|
addonId: null,
|
|
45767
46172
|
access: "create"
|
|
45768
46173
|
},
|
|
45769
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
45770
|
-
capName: "pipeline-orchestrator",
|
|
45771
|
-
capScope: "system",
|
|
45772
|
-
addonId: null,
|
|
45773
|
-
access: "create"
|
|
45774
|
-
},
|
|
45775
46174
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
45776
46175
|
capName: "pipeline-orchestrator",
|
|
45777
46176
|
capScope: "system",
|
|
@@ -45808,6 +46207,12 @@ Object.freeze({
|
|
|
45808
46207
|
addonId: null,
|
|
45809
46208
|
access: "create"
|
|
45810
46209
|
},
|
|
46210
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
46211
|
+
capName: "pipeline-orchestrator",
|
|
46212
|
+
capScope: "system",
|
|
46213
|
+
addonId: null,
|
|
46214
|
+
access: "create"
|
|
46215
|
+
},
|
|
45811
46216
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
45812
46217
|
capName: "pipeline-orchestrator",
|
|
45813
46218
|
capScope: "system",
|
|
@@ -45826,25 +46231,37 @@ Object.freeze({
|
|
|
45826
46231
|
addonId: null,
|
|
45827
46232
|
access: "create"
|
|
45828
46233
|
},
|
|
46234
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
46235
|
+
capName: "pipeline-orchestrator",
|
|
46236
|
+
capScope: "system",
|
|
46237
|
+
addonId: null,
|
|
46238
|
+
access: "create"
|
|
46239
|
+
},
|
|
45829
46240
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
45830
46241
|
capName: "pipeline-orchestrator",
|
|
45831
46242
|
capScope: "system",
|
|
45832
46243
|
addonId: null,
|
|
45833
46244
|
access: "create"
|
|
45834
46245
|
},
|
|
45835
|
-
"pipelineOrchestrator.
|
|
46246
|
+
"pipelineOrchestrator.setShareSource": {
|
|
45836
46247
|
capName: "pipeline-orchestrator",
|
|
45837
46248
|
capScope: "system",
|
|
45838
46249
|
addonId: null,
|
|
45839
46250
|
access: "create"
|
|
45840
46251
|
},
|
|
45841
|
-
"pipelineOrchestrator.
|
|
46252
|
+
"pipelineOrchestrator.suggestShares": {
|
|
46253
|
+
capName: "pipeline-orchestrator",
|
|
46254
|
+
capScope: "system",
|
|
46255
|
+
addonId: null,
|
|
46256
|
+
access: "view"
|
|
46257
|
+
},
|
|
46258
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
45842
46259
|
capName: "pipeline-orchestrator",
|
|
45843
46260
|
capScope: "system",
|
|
45844
46261
|
addonId: null,
|
|
45845
46262
|
access: "create"
|
|
45846
46263
|
},
|
|
45847
|
-
"pipelineOrchestrator.
|
|
46264
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
45848
46265
|
capName: "pipeline-orchestrator",
|
|
45849
46266
|
capScope: "system",
|
|
45850
46267
|
addonId: null,
|
|
@@ -47284,12 +47701,6 @@ Object.freeze({
|
|
|
47284
47701
|
addonId: null,
|
|
47285
47702
|
access: "view"
|
|
47286
47703
|
},
|
|
47287
|
-
"streamBroker.pullFrameHandles": {
|
|
47288
|
-
capName: "stream-broker",
|
|
47289
|
-
capScope: "system",
|
|
47290
|
-
addonId: null,
|
|
47291
|
-
access: "view"
|
|
47292
|
-
},
|
|
47293
47704
|
"streamBroker.regenerateRtspToken": {
|
|
47294
47705
|
capName: "stream-broker",
|
|
47295
47706
|
capScope: "system",
|
|
@@ -47356,12 +47767,6 @@ Object.freeze({
|
|
|
47356
47767
|
addonId: null,
|
|
47357
47768
|
access: "create"
|
|
47358
47769
|
},
|
|
47359
|
-
"streamBroker.subscribeFrames": {
|
|
47360
|
-
capName: "stream-broker",
|
|
47361
|
-
capScope: "system",
|
|
47362
|
-
addonId: null,
|
|
47363
|
-
access: "create"
|
|
47364
|
-
},
|
|
47365
47770
|
"streamBroker.unassignProfile": {
|
|
47366
47771
|
capName: "stream-broker",
|
|
47367
47772
|
capScope: "system",
|
|
@@ -47374,12 +47779,6 @@ Object.freeze({
|
|
|
47374
47779
|
addonId: null,
|
|
47375
47780
|
access: "create"
|
|
47376
47781
|
},
|
|
47377
|
-
"streamBroker.unsubscribeFrames": {
|
|
47378
|
-
capName: "stream-broker",
|
|
47379
|
-
capScope: "system",
|
|
47380
|
-
addonId: null,
|
|
47381
|
-
access: "create"
|
|
47382
|
-
},
|
|
47383
47782
|
"streamCatalog.getCatalog": {
|
|
47384
47783
|
capName: "stream-catalog",
|
|
47385
47784
|
capScope: "device",
|
|
@@ -48076,6 +48475,12 @@ Object.freeze({
|
|
|
48076
48475
|
addonId: null,
|
|
48077
48476
|
access: "create"
|
|
48078
48477
|
},
|
|
48478
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
48479
|
+
capName: "webrtc-session",
|
|
48480
|
+
capScope: "device",
|
|
48481
|
+
addonId: null,
|
|
48482
|
+
access: "create"
|
|
48483
|
+
},
|
|
48079
48484
|
"webrtcSession.closeSession": {
|
|
48080
48485
|
capName: "webrtc-session",
|
|
48081
48486
|
capScope: "device",
|
|
@@ -49887,11 +50292,6 @@ Object.freeze({
|
|
|
49887
50292
|
form: "single",
|
|
49888
50293
|
optional: false
|
|
49889
50294
|
}],
|
|
49890
|
-
"decoder.createSession": [{
|
|
49891
|
-
name: "deviceId",
|
|
49892
|
-
form: "single",
|
|
49893
|
-
optional: true
|
|
49894
|
-
}],
|
|
49895
50295
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49896
50296
|
name: "deviceId",
|
|
49897
50297
|
form: "single",
|
|
@@ -51122,6 +51522,11 @@ Object.freeze({
|
|
|
51122
51522
|
form: "single",
|
|
51123
51523
|
optional: false
|
|
51124
51524
|
}],
|
|
51525
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
51526
|
+
name: "deviceIds",
|
|
51527
|
+
form: "array",
|
|
51528
|
+
optional: true
|
|
51529
|
+
}],
|
|
51125
51530
|
"pipelineExecutor.runPipeline": [{
|
|
51126
51531
|
name: "deviceId",
|
|
51127
51532
|
form: "single",
|
|
@@ -51227,6 +51632,11 @@ Object.freeze({
|
|
|
51227
51632
|
form: "single",
|
|
51228
51633
|
optional: false
|
|
51229
51634
|
}],
|
|
51635
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
51636
|
+
name: "deviceId",
|
|
51637
|
+
form: "single",
|
|
51638
|
+
optional: false
|
|
51639
|
+
}],
|
|
51230
51640
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
51231
51641
|
name: "deviceId",
|
|
51232
51642
|
form: "single",
|
|
@@ -51998,6 +52408,11 @@ Object.freeze({
|
|
|
51998
52408
|
form: "single",
|
|
51999
52409
|
optional: false
|
|
52000
52410
|
}],
|
|
52411
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
52412
|
+
name: "deviceId",
|
|
52413
|
+
form: "single",
|
|
52414
|
+
optional: false
|
|
52415
|
+
}],
|
|
52001
52416
|
"webrtcSession.closeSession": [{
|
|
52002
52417
|
name: "deviceId",
|
|
52003
52418
|
form: "single",
|
|
@@ -52227,6 +52642,8 @@ new Map(Object.entries({
|
|
|
52227
52642
|
"detection-blind": "device-events",
|
|
52228
52643
|
"node-online": "system",
|
|
52229
52644
|
"node-offline": "system",
|
|
52645
|
+
"node-restarting": "system",
|
|
52646
|
+
"node-updating": "system",
|
|
52230
52647
|
"node-inference-unavailable": "system",
|
|
52231
52648
|
"addon-crash-loop": "system",
|
|
52232
52649
|
"addon-update-available": "system",
|
|
@@ -52304,6 +52721,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52304
52721
|
kinds: [
|
|
52305
52722
|
"node-offline",
|
|
52306
52723
|
"node-online",
|
|
52724
|
+
"node-restarting",
|
|
52307
52725
|
"node-inference-unavailable"
|
|
52308
52726
|
]
|
|
52309
52727
|
},
|
|
@@ -52325,6 +52743,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52325
52743
|
label: "Server & container updates",
|
|
52326
52744
|
kinds: [
|
|
52327
52745
|
"server-update-available",
|
|
52746
|
+
"node-updating",
|
|
52328
52747
|
"server-updated",
|
|
52329
52748
|
"wrapper-update-available"
|
|
52330
52749
|
]
|
|
@@ -52472,6 +52891,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52472
52891
|
kinds: [
|
|
52473
52892
|
"node-offline",
|
|
52474
52893
|
"node-online",
|
|
52894
|
+
"node-restarting",
|
|
52475
52895
|
"node-inference-unavailable"
|
|
52476
52896
|
]
|
|
52477
52897
|
},
|
|
@@ -52493,6 +52913,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52493
52913
|
example: "server 1.2.377 → 1.2.378",
|
|
52494
52914
|
kinds: [
|
|
52495
52915
|
"server-update-available",
|
|
52916
|
+
"node-updating",
|
|
52496
52917
|
"server-updated",
|
|
52497
52918
|
"wrapper-update-available"
|
|
52498
52919
|
]
|
|
@@ -52525,7 +52946,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52525
52946
|
{
|
|
52526
52947
|
name: "summarySection",
|
|
52527
52948
|
label: "Summary: this section",
|
|
52528
|
-
description: "The section a per-section summary row is about
|
|
52949
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
52529
52950
|
example: "Batterie scariche",
|
|
52530
52951
|
group: "system",
|
|
52531
52952
|
families: ["rule"],
|
|
@@ -52948,10 +53369,9 @@ TimelapseRuleInputSchema.extend({
|
|
|
52948
53369
|
createdAt: number(),
|
|
52949
53370
|
updatedAt: number()
|
|
52950
53371
|
});
|
|
52951
|
-
async function
|
|
52952
|
-
let slice;
|
|
53372
|
+
async function readSlice(deviceState, deviceId) {
|
|
52953
53373
|
try {
|
|
52954
|
-
|
|
53374
|
+
return await deviceState.getCapSlice.query({
|
|
52955
53375
|
deviceId,
|
|
52956
53376
|
capName: "motion"
|
|
52957
53377
|
});
|
|
@@ -52959,10 +53379,44 @@ async function readHubMotionDetected(deviceState, deviceId) {
|
|
|
52959
53379
|
const reason = err instanceof Error ? err.message : String(err);
|
|
52960
53380
|
throw new Error(`motion state of device ${deviceId} is unreadable: ${reason}`, { cause: err });
|
|
52961
53381
|
}
|
|
52962
|
-
|
|
53382
|
+
}
|
|
53383
|
+
/**
|
|
53384
|
+
* The hub's `motion` slice as a `MotionStatus`, or `null` when nobody has
|
|
53385
|
+
* published it since the hub started. Throws when the hub does not answer or
|
|
53386
|
+
* the slice is malformed — never a made-up "no motion".
|
|
53387
|
+
*/
|
|
53388
|
+
async function readHubMotionStatus(deviceState, deviceId) {
|
|
53389
|
+
const slice = await readSlice(deviceState, deviceId);
|
|
53390
|
+
if (slice === null) return null;
|
|
53391
|
+
const parsed = MotionStatusSchema.safeParse(slice);
|
|
53392
|
+
if (!parsed.success) throw new Error(`motion state of device ${deviceId} is malformed on the hub: ${parsed.error.message}`);
|
|
53393
|
+
return parsed.data;
|
|
53394
|
+
}
|
|
53395
|
+
async function readHubMotionDetected(deviceState, deviceId) {
|
|
53396
|
+
const detected = (await readSlice(deviceState, deviceId))?.["detected"];
|
|
52963
53397
|
if (typeof detected !== "boolean") throw new Error(`motion state of device ${deviceId} is not published yet (unknown)`);
|
|
52964
53398
|
return detected;
|
|
52965
53399
|
}
|
|
53400
|
+
/**
|
|
53401
|
+
* The native `motion` provider of a camera whose slice the orchestrator writes
|
|
53402
|
+
* (D696): `isDetected` AND `getStatus`, both from the hub. `owner` names the
|
|
53403
|
+
* provider class in the deviceId-mismatch error.
|
|
53404
|
+
*/
|
|
53405
|
+
function hubMotionNativeProvider(deviceState, deviceId, owner) {
|
|
53406
|
+
const ownDevice = (asked) => {
|
|
53407
|
+
if (asked !== deviceId) throw new Error(`${owner}: motion deviceId mismatch, expected ${deviceId}, got ${asked}`);
|
|
53408
|
+
};
|
|
53409
|
+
return {
|
|
53410
|
+
isDetected: async ({ deviceId: asked }) => {
|
|
53411
|
+
ownDevice(asked);
|
|
53412
|
+
return readHubMotionDetected(deviceState, deviceId);
|
|
53413
|
+
},
|
|
53414
|
+
getStatus: async ({ deviceId: asked }) => {
|
|
53415
|
+
ownDevice(asked);
|
|
53416
|
+
return readHubMotionStatus(deviceState, deviceId);
|
|
53417
|
+
}
|
|
53418
|
+
};
|
|
53419
|
+
}
|
|
52966
53420
|
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
52967
53421
|
function providerMotionEvent(source, data) {
|
|
52968
53422
|
return createEvent(EventCategory.ProviderMotion, source, data);
|
|
@@ -57438,15 +57892,13 @@ var WyzeCamera = class extends BaseDevice {
|
|
|
57438
57892
|
/**
|
|
57439
57893
|
* The native `motion` cap. This provider writes NO `motion` slice (D696): the
|
|
57440
57894
|
* orchestrator is its only writer, with the EFFECTIVE motion, on the hub.
|
|
57441
|
-
* `isDetected`
|
|
57442
|
-
*
|
|
57443
|
-
* (D49, D393).
|
|
57895
|
+
* `isDetected` and `getStatus` answer from the HUB's slice
|
|
57896
|
+
* (`hubMotionNativeProvider`); an unreadable hub fails both — never `false`
|
|
57897
|
+
* for unknown (D49, D393).
|
|
57444
57898
|
*/
|
|
57445
57899
|
registerMotionProvider() {
|
|
57446
|
-
this.ctx.
|
|
57447
|
-
|
|
57448
|
-
return readHubMotionDetected(this.ctx.api.deviceState, this.id);
|
|
57449
|
-
} });
|
|
57900
|
+
const provider = hubMotionNativeProvider(this.ctx.api.deviceState, this.id, "WyzeCamera");
|
|
57901
|
+
this.ctx.registerNativeCap(motionCapability, provider);
|
|
57450
57902
|
}
|
|
57451
57903
|
/**
|
|
57452
57904
|
* Start the configured motion source. `cloud` polls the Wyze events API
|