@camstack/addon-provider-rtsp 1.2.120 → 1.2.122
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 +1265 -542
- package/dist/addon.mjs +1265 -542
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
//#endregion
|
|
24
24
|
let node_net = require("node:net");
|
|
25
25
|
node_net = __toESM(node_net);
|
|
26
|
-
//#region ../types/dist/event-category-
|
|
26
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
27
27
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
28
28
|
EventCategory["SystemBoot"] = "system.boot";
|
|
29
29
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -524,15 +524,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
524
524
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
525
525
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
526
526
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
527
|
-
/**
|
|
528
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
529
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
530
|
-
* `createSession`, so running sessions keep their current backend until
|
|
531
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
532
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
533
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
534
|
-
*/
|
|
535
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
536
527
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
537
528
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
538
529
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -5403,7 +5394,7 @@ var ZodIssueCode = {
|
|
|
5403
5394
|
var ZodFirstPartyTypeKind;
|
|
5404
5395
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5405
5396
|
//#endregion
|
|
5406
|
-
//#region ../types/dist/sleep-
|
|
5397
|
+
//#region ../types/dist/sleep-B0JG7-_F.mjs
|
|
5407
5398
|
/**
|
|
5408
5399
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5409
5400
|
* window to float samples (D455).
|
|
@@ -6769,32 +6760,12 @@ object({
|
|
|
6769
6760
|
audioCodec: string().optional(),
|
|
6770
6761
|
metadata: record(string(), unknown()).readonly().optional()
|
|
6771
6762
|
});
|
|
6772
|
-
var EncodedPacketSchema = object({
|
|
6773
|
-
type: _enum(["video", "audio"]),
|
|
6774
|
-
data: _instanceof(Uint8Array),
|
|
6775
|
-
pts: number(),
|
|
6776
|
-
dts: number(),
|
|
6777
|
-
keyframe: boolean(),
|
|
6778
|
-
codec: string()
|
|
6779
|
-
});
|
|
6780
|
-
var DecodedFrameSchema = object({
|
|
6781
|
-
data: _instanceof(Uint8Array),
|
|
6782
|
-
width: number(),
|
|
6783
|
-
height: number(),
|
|
6784
|
-
format: _enum([
|
|
6785
|
-
"jpeg",
|
|
6786
|
-
"rgb",
|
|
6787
|
-
"bgr",
|
|
6788
|
-
"yuv420",
|
|
6789
|
-
"gray"
|
|
6790
|
-
]),
|
|
6791
|
-
timestamp: number()
|
|
6792
|
-
});
|
|
6793
6763
|
/**
|
|
6794
6764
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
6795
6765
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
6796
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
6797
|
-
*
|
|
6766
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
6767
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
6768
|
+
* over tRPC / Moleculer.
|
|
6798
6769
|
*
|
|
6799
6770
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
6800
6771
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -6820,50 +6791,6 @@ var FrameHandleSchema = object({
|
|
|
6820
6791
|
slotCount: number().int().positive()
|
|
6821
6792
|
});
|
|
6822
6793
|
/**
|
|
6823
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
6824
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
6825
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
6826
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
6827
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
6828
|
-
*/
|
|
6829
|
-
var FrameHandleFormatSchema = _enum([
|
|
6830
|
-
"rgb",
|
|
6831
|
-
"bgr",
|
|
6832
|
-
"yuv420",
|
|
6833
|
-
"gray"
|
|
6834
|
-
]);
|
|
6835
|
-
/**
|
|
6836
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
6837
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
6838
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
6839
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
6840
|
-
* they asked for with no broker-side conversion.
|
|
6841
|
-
*/
|
|
6842
|
-
var SubscribeFramesInputSchema = object({
|
|
6843
|
-
brokerId: string(),
|
|
6844
|
-
format: FrameHandleFormatSchema,
|
|
6845
|
-
/**
|
|
6846
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
6847
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
6848
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
6849
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
6850
|
-
*/
|
|
6851
|
-
maxFps: number().positive().optional(),
|
|
6852
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
6853
|
-
tag: string().optional()
|
|
6854
|
-
});
|
|
6855
|
-
/**
|
|
6856
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
6857
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
6858
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
6859
|
-
*/
|
|
6860
|
-
var SubscribeFramesResultSchema = object({
|
|
6861
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
6862
|
-
subscriptionId: string(),
|
|
6863
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
6864
|
-
maxFps: number().nonnegative()
|
|
6865
|
-
});
|
|
6866
|
-
/**
|
|
6867
6794
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
6868
6795
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
6869
6796
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -6871,8 +6798,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
6871
6798
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
6872
6799
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
6873
6800
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
6874
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
6875
|
-
*
|
|
6801
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
6802
|
+
* it.
|
|
6876
6803
|
*/
|
|
6877
6804
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
6878
6805
|
var DecodedAudioChunkSchema = object({
|
|
@@ -6890,11 +6817,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
6890
6817
|
format: AudioChunkFormatSchema.optional()
|
|
6891
6818
|
});
|
|
6892
6819
|
/**
|
|
6893
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
6894
|
-
*
|
|
6895
|
-
*
|
|
6896
|
-
*
|
|
6897
|
-
* `pullAudioChunks`.
|
|
6820
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
6821
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
6822
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
6823
|
+
* the consumer drains via `pullAudioChunks`.
|
|
6898
6824
|
*/
|
|
6899
6825
|
var SubscribeAudioChunksInputSchema = object({
|
|
6900
6826
|
brokerId: string(),
|
|
@@ -6925,9 +6851,7 @@ var BrokerStatsSchema = object({
|
|
|
6925
6851
|
"stopped"
|
|
6926
6852
|
]),
|
|
6927
6853
|
inputFps: number(),
|
|
6928
|
-
decodeFps: number(),
|
|
6929
6854
|
encodedSubscribers: number(),
|
|
6930
|
-
decodedSubscribers: number(),
|
|
6931
6855
|
uptimeMs: number(),
|
|
6932
6856
|
bitrateKbps: number(),
|
|
6933
6857
|
idrIntervalMs: number(),
|
|
@@ -6940,14 +6864,6 @@ var BrokerStatsSchema = object({
|
|
|
6940
6864
|
preBufferMs: number(),
|
|
6941
6865
|
preBufferPackets: number(),
|
|
6942
6866
|
/**
|
|
6943
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
6944
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
6945
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
6946
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
6947
|
-
* a separate cap call per broker.
|
|
6948
|
-
*/
|
|
6949
|
-
decoderNodeId: string().nullable(),
|
|
6950
|
-
/**
|
|
6951
6867
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
6952
6868
|
* when the stream has no audio track or the broker is in cold start.
|
|
6953
6869
|
* `supported = false` means the codec was detected but the local
|
|
@@ -10315,70 +10231,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
10315
10231
|
"backup"
|
|
10316
10232
|
]).optional()
|
|
10317
10233
|
});
|
|
10318
|
-
var DecoderStatsSchema = object({
|
|
10319
|
-
inputFps: number(),
|
|
10320
|
-
outputFps: number(),
|
|
10321
|
-
avgDecodeTimeMs: number(),
|
|
10322
|
-
droppedFrames: number(),
|
|
10323
|
-
/**
|
|
10324
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
10325
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
10326
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
10327
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
10328
|
-
*/
|
|
10329
|
-
lagMs: number().optional(),
|
|
10330
|
-
effectiveFps: number().optional(),
|
|
10331
|
-
adaptiveFps: number().optional()
|
|
10332
|
-
});
|
|
10333
|
-
var DecoderSessionConfigSchema = object({
|
|
10334
|
-
codec: string(),
|
|
10335
|
-
maxFps: number().default(0),
|
|
10336
|
-
outputFormat: _enum([
|
|
10337
|
-
"jpeg",
|
|
10338
|
-
"rgb",
|
|
10339
|
-
"bgr",
|
|
10340
|
-
"yuv420",
|
|
10341
|
-
"gray"
|
|
10342
|
-
]).default("jpeg"),
|
|
10343
|
-
scale: number().default(1),
|
|
10344
|
-
width: number().optional(),
|
|
10345
|
-
height: number().optional(),
|
|
10346
|
-
/**
|
|
10347
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
10348
|
-
* because the cap is generic (any caller could request decode), but
|
|
10349
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
10350
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
10351
|
-
* sendPacket errors on a single hung camera).
|
|
10352
|
-
*/
|
|
10353
|
-
deviceId: number().int().nonnegative().optional(),
|
|
10354
|
-
/**
|
|
10355
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
10356
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
10357
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
10358
|
-
* profile cleanly.
|
|
10359
|
-
*/
|
|
10360
|
-
tag: string().optional(),
|
|
10361
|
-
/**
|
|
10362
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
10363
|
-
*
|
|
10364
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
10365
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
10366
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
10367
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
10368
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
10369
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
10370
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
10371
|
-
*/
|
|
10372
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
10373
|
-
/**
|
|
10374
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
10375
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
10376
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
10377
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
10378
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
10379
|
-
*/
|
|
10380
|
-
debug: boolean().optional()
|
|
10381
|
-
});
|
|
10382
10234
|
/**
|
|
10383
10235
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
10384
10236
|
* an addon declares its channels in.
|
|
@@ -10521,6 +10373,26 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10521
10373
|
"balanced",
|
|
10522
10374
|
"strict"
|
|
10523
10375
|
]);
|
|
10376
|
+
/** Steps whose effect a root label can BE. */
|
|
10377
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10378
|
+
"animal-classifier",
|
|
10379
|
+
"vehicle-classifier",
|
|
10380
|
+
"package-detection"
|
|
10381
|
+
];
|
|
10382
|
+
/** Steps whose box a root detection can BE. */
|
|
10383
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10384
|
+
/**
|
|
10385
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
10386
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
10387
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
10388
|
+
* no camera tree carries.)
|
|
10389
|
+
*/
|
|
10390
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
10391
|
+
[
|
|
10392
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
10393
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
10394
|
+
...MASK_SUPPLY_STEP_IDS
|
|
10395
|
+
];
|
|
10524
10396
|
var MODEL_FORMATS = [
|
|
10525
10397
|
"onnx",
|
|
10526
10398
|
"coreml",
|
|
@@ -10549,7 +10421,53 @@ var ModelFormatEntrySchema = object({
|
|
|
10549
10421
|
/** Multi-file payload (directory members or sibling files). */
|
|
10550
10422
|
files: array(string()).readonly().optional(),
|
|
10551
10423
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
10552
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
10424
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
10425
|
+
/**
|
|
10426
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
10427
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
10428
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
10429
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
10430
|
+
* node records the revision it downloaded next to the file
|
|
10431
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
10432
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
10433
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
10434
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
10435
|
+
*/
|
|
10436
|
+
revision: string().min(1).optional()
|
|
10437
|
+
});
|
|
10438
|
+
/**
|
|
10439
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
10440
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
10441
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
10442
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
10443
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
10444
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
10445
|
+
*/
|
|
10446
|
+
var ModelOnDiskStateSchema = _enum([
|
|
10447
|
+
"current",
|
|
10448
|
+
"stale",
|
|
10449
|
+
"missing"
|
|
10450
|
+
]);
|
|
10451
|
+
/**
|
|
10452
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
10453
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
10454
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
10455
|
+
*/
|
|
10456
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
10457
|
+
"fp32",
|
|
10458
|
+
"fp16",
|
|
10459
|
+
"int8"
|
|
10460
|
+
]);
|
|
10461
|
+
/**
|
|
10462
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
10463
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
10464
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
10465
|
+
*/
|
|
10466
|
+
var PipelineModelFormatStatusSchema = object({
|
|
10467
|
+
downloaded: boolean(),
|
|
10468
|
+
sizeMB: number(),
|
|
10469
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
10470
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
10553
10471
|
});
|
|
10554
10472
|
/**
|
|
10555
10473
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -10590,11 +10508,11 @@ var ModelVariantGroupSchema = object({
|
|
|
10590
10508
|
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
10591
10509
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
10592
10510
|
/**
|
|
10593
|
-
*
|
|
10594
|
-
*
|
|
10595
|
-
*
|
|
10511
|
+
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
10512
|
+
* an alternate training of the same family (Scrypted `relu_test`); chip
|
|
10513
|
+
* label is "Test".
|
|
10596
10514
|
*/
|
|
10597
|
-
optimization: _enum(["standard", "
|
|
10515
|
+
optimization: _enum(["standard", "test"]).optional(),
|
|
10598
10516
|
/**
|
|
10599
10517
|
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
10600
10518
|
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
@@ -10617,9 +10535,10 @@ var ModelProviderIdSchema = _enum([
|
|
|
10617
10535
|
* are per upstream. A persisted custom-model row written when this field was a
|
|
10618
10536
|
* string still parses — the string is lifted into `{ weights }`.
|
|
10619
10537
|
*
|
|
10620
|
-
* Every licence surface (the
|
|
10621
|
-
*
|
|
10622
|
-
*
|
|
10538
|
+
* Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
|
|
10539
|
+
* model table) is GENERATED from these records by
|
|
10540
|
+
* `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
|
|
10541
|
+
* `camstack/docs` → `/docs/detection/models`.
|
|
10623
10542
|
*/
|
|
10624
10543
|
var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
|
|
10625
10544
|
/** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
|
|
@@ -10652,6 +10571,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10652
10571
|
/** True when the weights or their data forbid commercial use. */
|
|
10653
10572
|
nonCommercial: boolean().optional()
|
|
10654
10573
|
}));
|
|
10574
|
+
/**
|
|
10575
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10576
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10577
|
+
*
|
|
10578
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10579
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10580
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10581
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10582
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10583
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10584
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
10585
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
10586
|
+
* detection in the shape that step produces. Derived from the model's
|
|
10587
|
+
* postprocessor on read, never stored by an import.
|
|
10588
|
+
*/
|
|
10589
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
10590
|
+
object({
|
|
10591
|
+
kind: literal("label"),
|
|
10592
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10593
|
+
labelToEffect: record(string(), string()),
|
|
10594
|
+
uncovered: array(string()).readonly()
|
|
10595
|
+
}),
|
|
10596
|
+
object({
|
|
10597
|
+
kind: literal("crop"),
|
|
10598
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10599
|
+
rootLabels: array(string()).readonly(),
|
|
10600
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10601
|
+
childClass: _enum(["plate", "face"]),
|
|
10602
|
+
/**
|
|
10603
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10604
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10605
|
+
* stored by an import.
|
|
10606
|
+
*/
|
|
10607
|
+
rootInputPx: number().int().positive().optional()
|
|
10608
|
+
}),
|
|
10609
|
+
object({
|
|
10610
|
+
kind: literal("mask"),
|
|
10611
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
10612
|
+
})
|
|
10613
|
+
]);
|
|
10655
10614
|
var ModelCatalogEntrySchema = object({
|
|
10656
10615
|
id: string(),
|
|
10657
10616
|
name: string(),
|
|
@@ -10717,6 +10676,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
10717
10676
|
*/
|
|
10718
10677
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
10719
10678
|
/**
|
|
10679
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
10680
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
10681
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
10682
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
10683
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
10684
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
10685
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
10686
|
+
*/
|
|
10687
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10688
|
+
/**
|
|
10689
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
10690
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
10691
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
10692
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
10693
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
10694
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
10695
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
10696
|
+
*/
|
|
10697
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
10698
|
+
/**
|
|
10699
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
10700
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
10701
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
10702
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
10703
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
10704
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
10705
|
+
*/
|
|
10706
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
10707
|
+
/**
|
|
10720
10708
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
10721
10709
|
* onto the canonical template) before this step runs, instead of a plain
|
|
10722
10710
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -10778,6 +10766,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
10778
10766
|
*/
|
|
10779
10767
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10780
10768
|
/**
|
|
10769
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10770
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10771
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10772
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10773
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10774
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10775
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10776
|
+
*/
|
|
10777
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10778
|
+
/**
|
|
10781
10779
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10782
10780
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
10783
10781
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -12379,13 +12377,6 @@ var BrokerRtspClientSchema = object({
|
|
|
12379
12377
|
lastRtpAt: number(),
|
|
12380
12378
|
bytesSent: number()
|
|
12381
12379
|
});
|
|
12382
|
-
var BrokerDecodedClientSchema = object({
|
|
12383
|
-
tag: string(),
|
|
12384
|
-
subscribedAt: number(),
|
|
12385
|
-
maxFps: number(),
|
|
12386
|
-
framesDelivered: number(),
|
|
12387
|
-
framesDropped: number()
|
|
12388
|
-
});
|
|
12389
12380
|
var BrokerAudioClientSchema = object({
|
|
12390
12381
|
tag: string(),
|
|
12391
12382
|
subscribedAt: number(),
|
|
@@ -12477,7 +12468,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
12477
12468
|
});
|
|
12478
12469
|
var BrokerClientsSchema = object({
|
|
12479
12470
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
12480
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
12481
12471
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
12482
12472
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
12483
12473
|
pipeClients: number(),
|
|
@@ -12846,11 +12836,7 @@ method(object({
|
|
|
12846
12836
|
auth: "admin"
|
|
12847
12837
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
12848
12838
|
brokerId: string(),
|
|
12849
|
-
channel: _enum([
|
|
12850
|
-
"rtsp",
|
|
12851
|
-
"decoded",
|
|
12852
|
-
"audio"
|
|
12853
|
-
]),
|
|
12839
|
+
channel: _enum(["rtsp", "audio"]),
|
|
12854
12840
|
handle: string()
|
|
12855
12841
|
}), object({ killed: boolean() }), {
|
|
12856
12842
|
kind: "mutation",
|
|
@@ -12885,10 +12871,7 @@ method(object({
|
|
|
12885
12871
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
12886
12872
|
subscriptionId: string(),
|
|
12887
12873
|
maxCount: number().int().positive().default(8)
|
|
12888
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
12889
|
-
subscriptionId: string(),
|
|
12890
|
-
maxCount: number().int().positive().default(4)
|
|
12891
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12874
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
12892
12875
|
brokerId: string(),
|
|
12893
12876
|
seconds: number().min(0).max(30)
|
|
12894
12877
|
}), _void(), {
|
|
@@ -14147,54 +14130,12 @@ id: union([string(), number()]) }), {
|
|
|
14147
14130
|
kind: "mutation",
|
|
14148
14131
|
auth: "admin"
|
|
14149
14132
|
});
|
|
14150
|
-
|
|
14151
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14152
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14153
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14154
|
-
*/
|
|
14155
|
-
var ShmRingStatsSchema = object({
|
|
14156
|
-
sessionId: string(),
|
|
14157
|
-
slotCount: number().int(),
|
|
14158
|
-
slotByteLength: number().int(),
|
|
14159
|
-
segmentBytes: number().int(),
|
|
14160
|
-
budgetMb: number().int(),
|
|
14161
|
-
framesWritten: number().int(),
|
|
14162
|
-
getFrameHits: number().int(),
|
|
14163
|
-
getFrameMisses: number().int()
|
|
14164
|
-
});
|
|
14165
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14133
|
+
method(_void(), object({
|
|
14166
14134
|
id: string(),
|
|
14167
14135
|
name: string(),
|
|
14168
|
-
isPullMode: boolean().optional(),
|
|
14169
|
-
priority: number().optional(),
|
|
14170
14136
|
hwaccel: string().optional(),
|
|
14171
14137
|
probedBestHwaccel: string().optional()
|
|
14172
|
-
})), method(
|
|
14173
|
-
sessionId: string(),
|
|
14174
|
-
nodeId: string()
|
|
14175
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14176
|
-
sessionId: string(),
|
|
14177
|
-
packet: EncodedPacketSchema
|
|
14178
|
-
}), _void()), method(object({
|
|
14179
|
-
sessionId: string(),
|
|
14180
|
-
url: string()
|
|
14181
|
-
}), _void()), method(object({
|
|
14182
|
-
sessionId: string(),
|
|
14183
|
-
maxCount: number().default(1),
|
|
14184
|
-
waitMs: number().optional()
|
|
14185
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14186
|
-
sessionId: string(),
|
|
14187
|
-
maxCount: number().default(1),
|
|
14188
|
-
waitMs: number().optional()
|
|
14189
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14190
|
-
sessionId: string(),
|
|
14191
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14192
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14193
|
-
sessionId: string(),
|
|
14194
|
-
codec: string(),
|
|
14195
|
-
outputFormat: string(),
|
|
14196
|
-
createdAtMs: number()
|
|
14197
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14138
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14198
14139
|
kind: "mutation",
|
|
14199
14140
|
auth: "admin"
|
|
14200
14141
|
});
|
|
@@ -14250,7 +14191,7 @@ DeviceType.Camera;
|
|
|
14250
14191
|
* This matters here more than anywhere else in the repo, because every provider
|
|
14251
14192
|
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
14252
14193
|
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
14253
|
-
* and `http://admin:hunter2@192.168.
|
|
14194
|
+
* and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
|
|
14254
14195
|
* camera's own page will ask for its own login. That is correct, and pre-
|
|
14255
14196
|
* filling it is the operator's business, not ours.
|
|
14256
14197
|
*
|
|
@@ -15194,6 +15135,10 @@ var DeviceInfoSchema = object({
|
|
|
15194
15135
|
isCamera: boolean(),
|
|
15195
15136
|
/** Current config values — serializable snapshot */
|
|
15196
15137
|
config: record(string(), unknown()),
|
|
15138
|
+
/** Paths inside `config` the device's schema declares secret (D783) —
|
|
15139
|
+
* what the non-admin redaction withholds. Paths, never values. Absent
|
|
15140
|
+
* when the owning runner has not reported them. */
|
|
15141
|
+
secretConfigPaths: array(string()).optional(),
|
|
15197
15142
|
/** Hardware + identity blob (manufacturer / model / firmware / sn /
|
|
15198
15143
|
* uid / mac / …). Populated by drivers; editable via setMetadata. */
|
|
15199
15144
|
metadata: record(string(), unknown()).nullable().optional(),
|
|
@@ -15399,7 +15344,13 @@ var DeviceRegisterPayloadSchema = object({
|
|
|
15399
15344
|
* call (workers re-register on init), so probe-driven updates
|
|
15400
15345
|
* (e.g. PTZ flag flipping after the abilities probe) propagate. */
|
|
15401
15346
|
features: array(string()).optional(),
|
|
15402
|
-
config: record(string(), unknown())
|
|
15347
|
+
config: record(string(), unknown()),
|
|
15348
|
+
/** Config paths the device's own schema DECLARES secret
|
|
15349
|
+
* (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
|
|
15350
|
+
* `connection.password`). Re-published on every register; the non-admin
|
|
15351
|
+
* redaction withholds them at any depth (D783). Optional: an older runner
|
|
15352
|
+
* omits it and the keyword backstop applies. */
|
|
15353
|
+
secretConfigPaths: array(string()).optional()
|
|
15403
15354
|
});
|
|
15404
15355
|
var DeviceRemovePayloadSchema = object({ deviceId: number() });
|
|
15405
15356
|
var DevicePersistConfigPayloadSchema = object({
|
|
@@ -16226,6 +16177,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
16226
16177
|
kind: "mutation",
|
|
16227
16178
|
auth: "admin"
|
|
16228
16179
|
});
|
|
16180
|
+
var HUB_ADDRESS_ROLES = [
|
|
16181
|
+
"appConnections",
|
|
16182
|
+
"notificationTaps",
|
|
16183
|
+
"internal",
|
|
16184
|
+
"publicEndpoint"
|
|
16185
|
+
];
|
|
16229
16186
|
/**
|
|
16230
16187
|
* Transport bounds for AI capability methods.
|
|
16231
16188
|
*
|
|
@@ -17052,7 +17009,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
|
|
|
17052
17009
|
icon: string().optional(),
|
|
17053
17010
|
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
17054
17011
|
startUrl: string(),
|
|
17055
|
-
stage: LoginStageEnum
|
|
17012
|
+
stage: LoginStageEnum,
|
|
17013
|
+
/**
|
|
17014
|
+
* The provider names an external identity a signed-in user can link to
|
|
17015
|
+
* their own account (D782): `auth.listLinkableProviders` /
|
|
17016
|
+
* `beginExternalLink` offer exactly the redirect methods that set this,
|
|
17017
|
+
* whatever their id. Absent / false — a login button only (magic-link).
|
|
17018
|
+
*/
|
|
17019
|
+
linkable: boolean().optional()
|
|
17056
17020
|
}),
|
|
17057
17021
|
object({
|
|
17058
17022
|
kind: literal("widget"),
|
|
@@ -17422,7 +17386,7 @@ method(object({
|
|
|
17422
17386
|
timeoutMs: 6e5
|
|
17423
17387
|
});
|
|
17424
17388
|
method(object({
|
|
17425
|
-
|
|
17389
|
+
targetNodeId: string(),
|
|
17426
17390
|
modelId: string(),
|
|
17427
17391
|
format: _enum(MODEL_FORMATS),
|
|
17428
17392
|
entry: ModelCatalogEntrySchema
|
|
@@ -18828,6 +18792,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
18828
18792
|
"stream-offline",
|
|
18829
18793
|
"node-online",
|
|
18830
18794
|
"node-offline",
|
|
18795
|
+
"node-restarting",
|
|
18796
|
+
"node-updating",
|
|
18831
18797
|
"node-inference-unavailable",
|
|
18832
18798
|
"detection-blind",
|
|
18833
18799
|
"addon-crash-loop",
|
|
@@ -19926,8 +19892,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
19926
19892
|
disabledTargetIds: array(string()).default([])
|
|
19927
19893
|
});
|
|
19928
19894
|
/**
|
|
19929
|
-
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that
|
|
19930
|
-
* still-true state. `
|
|
19895
|
+
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
19896
|
+
* report a still-true state. `addons` is the crash-looped addons only and
|
|
19897
|
+
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
19931
19898
|
* job is not an open state, and the alarm stays instant.
|
|
19932
19899
|
*/
|
|
19933
19900
|
var NcStateSummarySectionIdSchema = _enum([
|
|
@@ -19939,6 +19906,7 @@ var NcStateSummarySectionIdSchema = _enum([
|
|
|
19939
19906
|
"detection-blind",
|
|
19940
19907
|
"nodes",
|
|
19941
19908
|
"addons",
|
|
19909
|
+
"addon-updates",
|
|
19942
19910
|
"updates"
|
|
19943
19911
|
]);
|
|
19944
19912
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
@@ -20419,7 +20387,25 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
20419
20387
|
* When this mode may be armed. Absent / null = always allowed (same as a
|
|
20420
20388
|
* rule with no `schedule`). Evaluated with {@link isScheduleActive}.
|
|
20421
20389
|
*/
|
|
20422
|
-
schedule: NcScheduleSchema.optional()
|
|
20390
|
+
schedule: NcScheduleSchema.optional(),
|
|
20391
|
+
/**
|
|
20392
|
+
* D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
|
|
20393
|
+
* intrusion naming the locations)? Absent = false — the entry-delay notification is the
|
|
20394
|
+
* only one, and the matches ride the triggered notification's mosaic (D705).
|
|
20395
|
+
*/
|
|
20396
|
+
notifyDuringEntryDelay: boolean().optional(),
|
|
20397
|
+
/**
|
|
20398
|
+
* D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
|
|
20399
|
+
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
20400
|
+
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
20401
|
+
*/
|
|
20402
|
+
notifySensorRewatched: boolean().optional(),
|
|
20403
|
+
/**
|
|
20404
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
20405
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
20406
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
20407
|
+
*/
|
|
20408
|
+
notifySensorIgnored: boolean().optional()
|
|
20423
20409
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
20424
20410
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
20425
20411
|
mode: AlarmArmModeSchema,
|
|
@@ -20428,7 +20414,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
20428
20414
|
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
|
|
20429
20415
|
postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
|
|
20430
20416
|
/** Set a schedule, or `null` to clear (mode always allowed again). */
|
|
20431
|
-
schedule: NcScheduleSchema.nullable().optional()
|
|
20417
|
+
schedule: NcScheduleSchema.nullable().optional(),
|
|
20418
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20419
|
+
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
20420
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
20421
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
20422
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
20423
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
20432
20424
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
20433
20425
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
20434
20426
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -21389,45 +21381,25 @@ Object.freeze(Object.fromEntries([{
|
|
|
21389
21381
|
label: "Face recognition model",
|
|
21390
21382
|
defaultModelId: "auraface-r100",
|
|
21391
21383
|
indexName: "the enrolled face gallery",
|
|
21392
|
-
options: [
|
|
21393
|
-
|
|
21394
|
-
|
|
21395
|
-
|
|
21396
|
-
},
|
|
21397
|
-
{
|
|
21398
|
-
id: "arcface-r100",
|
|
21399
|
-
label: "ArcFace (ResNet34)"
|
|
21400
|
-
},
|
|
21401
|
-
{
|
|
21402
|
-
id: "inception-resnet-v1",
|
|
21403
|
-
label: "Inception ResNet V1"
|
|
21404
|
-
}
|
|
21405
|
-
]
|
|
21384
|
+
options: [{
|
|
21385
|
+
id: "auraface-r100",
|
|
21386
|
+
label: "AuraFace R100"
|
|
21387
|
+
}]
|
|
21406
21388
|
}, {
|
|
21407
21389
|
stepId: "clip-embedding",
|
|
21408
21390
|
label: "Semantic search model",
|
|
21409
|
-
defaultModelId: "
|
|
21391
|
+
defaultModelId: "siglip2-b16-224",
|
|
21410
21392
|
indexName: "the object semantic-search index",
|
|
21411
|
-
options: [
|
|
21412
|
-
|
|
21413
|
-
|
|
21414
|
-
|
|
21415
|
-
},
|
|
21416
|
-
{
|
|
21417
|
-
id: "mobileclip-s2",
|
|
21418
|
-
label: "MobileCLIP S2"
|
|
21419
|
-
},
|
|
21420
|
-
{
|
|
21421
|
-
id: "siglip2-b16-224",
|
|
21422
|
-
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21423
|
-
}
|
|
21424
|
-
]
|
|
21393
|
+
options: [{
|
|
21394
|
+
id: "siglip2-b16-224",
|
|
21395
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
21396
|
+
}]
|
|
21425
21397
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
21426
21398
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
21427
21399
|
stepId: "face-embedding",
|
|
21428
21400
|
key: "minLandmarkFaceSize",
|
|
21429
|
-
label: "Min face size
|
|
21430
|
-
description: "
|
|
21401
|
+
label: "Min face size to embed (detection-frame px)",
|
|
21402
|
+
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.",
|
|
21431
21403
|
type: "slider",
|
|
21432
21404
|
min: 0,
|
|
21433
21405
|
max: 64,
|
|
@@ -22479,7 +22451,13 @@ var RetrainFrameSchema = object({
|
|
|
22479
22451
|
sizeBytes: number().int(),
|
|
22480
22452
|
width: number().int(),
|
|
22481
22453
|
height: number().int(),
|
|
22482
|
-
copiedAt: number()
|
|
22454
|
+
copiedAt: number(),
|
|
22455
|
+
/** When the CAMERA captured the frame. Absent on a copy taken before D785. */
|
|
22456
|
+
capturedAt: number().optional(),
|
|
22457
|
+
/** The operator's "every subject in this frame is boxed". Detector
|
|
22458
|
+
* evaluation keeps only complete frames: an unboxed subject would count as
|
|
22459
|
+
* a false positive. */
|
|
22460
|
+
complete: boolean()
|
|
22483
22461
|
});
|
|
22484
22462
|
/** Why a copy-on-select could not be honoured — named, never a silent skip. */
|
|
22485
22463
|
var RetrainCopyRefusalSchema = _enum([
|
|
@@ -22500,6 +22478,51 @@ var RetrainFrameListSchema = object({
|
|
|
22500
22478
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
22501
22479
|
autoPickMediaId: number().int().optional()
|
|
22502
22480
|
});
|
|
22481
|
+
/**
|
|
22482
|
+
* Which frames an annotated export carries. Every field narrows; an empty
|
|
22483
|
+
* filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
|
|
22484
|
+
* list owned by whoever trains (the training orchestrator), so `frameIds` is
|
|
22485
|
+
* the primitive a version export uses; `batchId` re-selects what an earlier
|
|
22486
|
+
* export carried (`exportedInBatch`).
|
|
22487
|
+
*/
|
|
22488
|
+
var RetrainExportFilterSchema = object({
|
|
22489
|
+
deviceIds: array(number()).optional(),
|
|
22490
|
+
frameIds: array(string()).max(2e4).optional(),
|
|
22491
|
+
batchId: string().optional(),
|
|
22492
|
+
/** Only frames the operator marked complete (all subjects boxed). */
|
|
22493
|
+
completeOnly: boolean().optional()
|
|
22494
|
+
});
|
|
22495
|
+
/**
|
|
22496
|
+
* `frames`: the full frame copies, boxes in `annotations.json`.
|
|
22497
|
+
* `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
|
|
22498
|
+
* convention — the classifier layout.
|
|
22499
|
+
*/
|
|
22500
|
+
var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
|
|
22501
|
+
/**
|
|
22502
|
+
* Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
|
|
22503
|
+
* the archive, sent chunk by chunk. Covers a presigned PUT and a provider
|
|
22504
|
+
* addon's data-plane upload route alike. Headers are sent verbatim and never
|
|
22505
|
+
* logged.
|
|
22506
|
+
*/
|
|
22507
|
+
var RetrainArchiveTargetSchema = object({
|
|
22508
|
+
kind: literal("http"),
|
|
22509
|
+
method: _enum(["PUT", "POST"]),
|
|
22510
|
+
url: string().url(),
|
|
22511
|
+
headers: record(string(), string()).optional()
|
|
22512
|
+
});
|
|
22513
|
+
var RetrainArchiveResultSchema = object({
|
|
22514
|
+
batchId: string(),
|
|
22515
|
+
frames: number().int(),
|
|
22516
|
+
crops: number().int(),
|
|
22517
|
+
annotations: number().int(),
|
|
22518
|
+
/** Frames planned but not shipped (unreadable copy, path too long). */
|
|
22519
|
+
missing: number().int(),
|
|
22520
|
+
bytes: number().int(),
|
|
22521
|
+
/** sha256 of the exact bytes sent. */
|
|
22522
|
+
sha256: string(),
|
|
22523
|
+
/** The target's HTTP status. */
|
|
22524
|
+
status: number().int()
|
|
22525
|
+
});
|
|
22503
22526
|
/** What the operator asked the assist to look for. */
|
|
22504
22527
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
22505
22528
|
kind: literal("package"),
|
|
@@ -23294,9 +23317,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23294
23317
|
}), RetrainTransitionResultSchema, {
|
|
23295
23318
|
kind: "mutation",
|
|
23296
23319
|
auth: "admin"
|
|
23297
|
-
}), method(
|
|
23320
|
+
}), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
|
|
23298
23321
|
kind: "query",
|
|
23299
23322
|
auth: "admin"
|
|
23323
|
+
}), method(object({
|
|
23324
|
+
deviceId: number(),
|
|
23325
|
+
trackId: string(),
|
|
23326
|
+
frameId: string(),
|
|
23327
|
+
complete: boolean()
|
|
23328
|
+
}), RetrainFrameSchema, {
|
|
23329
|
+
kind: "mutation",
|
|
23330
|
+
auth: "admin"
|
|
23331
|
+
}), method(object({
|
|
23332
|
+
filter: RetrainExportFilterSchema,
|
|
23333
|
+
layout: RetrainExportLayoutSchema,
|
|
23334
|
+
target: RetrainArchiveTargetSchema
|
|
23335
|
+
}), RetrainArchiveResultSchema, {
|
|
23336
|
+
kind: "mutation",
|
|
23337
|
+
auth: "admin",
|
|
23338
|
+
timeoutMs: 60 * 6e4
|
|
23300
23339
|
}), method(object({
|
|
23301
23340
|
/** Which of the three event tables owns the row. */
|
|
23302
23341
|
ownerType: EventOwnerTypeSchema,
|
|
@@ -23347,6 +23386,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23347
23386
|
timestamp: number()
|
|
23348
23387
|
});
|
|
23349
23388
|
/**
|
|
23389
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
23390
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
23391
|
+
*/
|
|
23392
|
+
var SuppliedRootOutputSchema = object({
|
|
23393
|
+
stepId: string(),
|
|
23394
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
23395
|
+
modelId: string(),
|
|
23396
|
+
detections: array(object({
|
|
23397
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
23398
|
+
bbox: tuple([
|
|
23399
|
+
number(),
|
|
23400
|
+
number(),
|
|
23401
|
+
number(),
|
|
23402
|
+
number()
|
|
23403
|
+
]),
|
|
23404
|
+
score: number(),
|
|
23405
|
+
/**
|
|
23406
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
23407
|
+
* detector already re-found inside a root face box (D730), so its
|
|
23408
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
23409
|
+
*/
|
|
23410
|
+
landmarks: array(object({
|
|
23411
|
+
x: number(),
|
|
23412
|
+
y: number()
|
|
23413
|
+
})).optional()
|
|
23414
|
+
})).min(1)
|
|
23415
|
+
});
|
|
23416
|
+
/**
|
|
23350
23417
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23351
23418
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23352
23419
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -23394,7 +23461,7 @@ var FrameRefSchema = object({
|
|
|
23394
23461
|
timestamp: number(),
|
|
23395
23462
|
capturedAt: number().optional()
|
|
23396
23463
|
});
|
|
23397
|
-
var ModelFormatSchema$
|
|
23464
|
+
var ModelFormatSchema$2 = _enum([
|
|
23398
23465
|
"onnx",
|
|
23399
23466
|
"coreml",
|
|
23400
23467
|
"openvino",
|
|
@@ -23412,7 +23479,7 @@ var PipelineSlotSchema = _enum([
|
|
|
23412
23479
|
var PipelineEngineChoiceSchema = object({
|
|
23413
23480
|
runtime: literal("python"),
|
|
23414
23481
|
backend: string(),
|
|
23415
|
-
format: ModelFormatSchema$
|
|
23482
|
+
format: ModelFormatSchema$2,
|
|
23416
23483
|
device: string().optional()
|
|
23417
23484
|
});
|
|
23418
23485
|
/**
|
|
@@ -23451,32 +23518,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
23451
23518
|
group: string().optional(),
|
|
23452
23519
|
settings: record(string(), unknown()).optional()
|
|
23453
23520
|
}));
|
|
23454
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
23455
|
-
addonId: string(),
|
|
23456
|
-
enabled: boolean(),
|
|
23457
|
-
modelId: string(),
|
|
23458
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
23459
|
-
settings: record(string(), unknown()).optional()
|
|
23460
|
-
}));
|
|
23461
|
-
var PipelineTemplateSchema$1 = object({
|
|
23462
|
-
id: string(),
|
|
23463
|
-
name: string(),
|
|
23464
|
-
createdAt: string(),
|
|
23465
|
-
updatedAt: string(),
|
|
23466
|
-
engine: PipelineEngineChoiceSchema,
|
|
23467
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
23468
|
-
});
|
|
23469
23521
|
var PipelineModelOptionSchema = object({
|
|
23470
23522
|
id: string(),
|
|
23471
23523
|
name: string(),
|
|
23472
|
-
formats: record(string(),
|
|
23473
|
-
downloaded: boolean(),
|
|
23474
|
-
sizeMB: number()
|
|
23475
|
-
})),
|
|
23524
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
23476
23525
|
group: ModelVariantGroupSchema.optional(),
|
|
23477
23526
|
legacy: boolean().optional(),
|
|
23478
23527
|
provider: ModelProviderIdSchema.optional(),
|
|
23479
|
-
defaultConfidence: number().optional()
|
|
23528
|
+
defaultConfidence: number().optional(),
|
|
23529
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
23480
23530
|
});
|
|
23481
23531
|
var ConfigFieldBridge = custom();
|
|
23482
23532
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -23638,6 +23688,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23638
23688
|
}), {
|
|
23639
23689
|
kind: "mutation",
|
|
23640
23690
|
auth: "admin"
|
|
23691
|
+
}), method(object({
|
|
23692
|
+
nodeId: string(),
|
|
23693
|
+
deviceIds: array(number()).readonly().optional(),
|
|
23694
|
+
dryRun: boolean()
|
|
23695
|
+
}), object({
|
|
23696
|
+
entries: array(object({
|
|
23697
|
+
deviceId: number(),
|
|
23698
|
+
keys: array(string()).readonly()
|
|
23699
|
+
})).readonly(),
|
|
23700
|
+
refused: array(object({
|
|
23701
|
+
deviceId: number(),
|
|
23702
|
+
reason: string()
|
|
23703
|
+
})).readonly()
|
|
23704
|
+
}), {
|
|
23705
|
+
kind: "mutation",
|
|
23706
|
+
auth: "admin"
|
|
23641
23707
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
23642
23708
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
23643
23709
|
deviceKey: string(),
|
|
@@ -23663,22 +23729,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23663
23729
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
23664
23730
|
steps: array(PipelineStepInputSchema),
|
|
23665
23731
|
deviceKey: string().optional()
|
|
23666
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
23667
|
-
name: string(),
|
|
23668
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
23669
|
-
engine: PipelineEngineChoiceSchema
|
|
23670
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
23671
|
-
id: string(),
|
|
23672
|
-
name: string().optional(),
|
|
23673
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
23674
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23732
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
23675
23733
|
addonId: string(),
|
|
23676
23734
|
modelId: string(),
|
|
23677
|
-
format: ModelFormatSchema$
|
|
23735
|
+
format: ModelFormatSchema$2
|
|
23678
23736
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
23679
23737
|
addonId: string(),
|
|
23680
23738
|
modelId: string(),
|
|
23681
|
-
format: ModelFormatSchema$
|
|
23739
|
+
format: ModelFormatSchema$2
|
|
23682
23740
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
23683
23741
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23684
23742
|
frame: FrameInputSchema.optional(),
|
|
@@ -23744,7 +23802,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23744
23802
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
23745
23803
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
23746
23804
|
*/
|
|
23747
|
-
replay: literal(true).optional()
|
|
23805
|
+
replay: literal(true).optional(),
|
|
23806
|
+
/**
|
|
23807
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
23808
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
23809
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
23810
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
23811
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
23812
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
23813
|
+
*/
|
|
23814
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
23748
23815
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
23749
23816
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23750
23817
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -23826,6 +23893,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23826
23893
|
filename: string().optional(),
|
|
23827
23894
|
settings: record(string(), unknown()).optional()
|
|
23828
23895
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
23896
|
+
/**
|
|
23897
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
23898
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
23899
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
23900
|
+
* schemas are what crosses the cap boundary.
|
|
23901
|
+
*/
|
|
23902
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
23903
|
+
/** The operator's range for it. */
|
|
23904
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
23905
|
+
min: 1,
|
|
23906
|
+
max: 8
|
|
23907
|
+
};
|
|
23908
|
+
var HardwareClassIdSchema = _enum([
|
|
23909
|
+
"intel-core-ultra",
|
|
23910
|
+
"intel-n-series",
|
|
23911
|
+
"apple-m-base",
|
|
23912
|
+
"apple-m-pro",
|
|
23913
|
+
"unknown"
|
|
23914
|
+
]);
|
|
23915
|
+
var AcceleratorKindSchema = _enum([
|
|
23916
|
+
"intel-npu",
|
|
23917
|
+
"intel-igpu",
|
|
23918
|
+
"x86-cpu",
|
|
23919
|
+
"arm-cpu",
|
|
23920
|
+
"apple-ane",
|
|
23921
|
+
"coral"
|
|
23922
|
+
]);
|
|
23923
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
23924
|
+
object({
|
|
23925
|
+
kind: literal("capacity"),
|
|
23926
|
+
sessions: number(),
|
|
23927
|
+
minSessions: number()
|
|
23928
|
+
}),
|
|
23929
|
+
object({
|
|
23930
|
+
kind: literal("tie-faster"),
|
|
23931
|
+
over: string(),
|
|
23932
|
+
recallDelta: number()
|
|
23933
|
+
}),
|
|
23934
|
+
object({
|
|
23935
|
+
kind: literal("stepped-down"),
|
|
23936
|
+
from: string(),
|
|
23937
|
+
to: string(),
|
|
23938
|
+
limitedBy: string()
|
|
23939
|
+
}),
|
|
23940
|
+
object({
|
|
23941
|
+
kind: literal("no-fit-lightest"),
|
|
23942
|
+
sessions: number(),
|
|
23943
|
+
minSessions: number()
|
|
23944
|
+
}),
|
|
23945
|
+
object({
|
|
23946
|
+
kind: literal("derived-latency"),
|
|
23947
|
+
modelId: string()
|
|
23948
|
+
}),
|
|
23949
|
+
object({ kind: literal("cpu-device") }),
|
|
23950
|
+
object({ kind: literal("coral-untouched") }),
|
|
23951
|
+
object({ kind: literal("device-disabled") }),
|
|
23952
|
+
object({ kind: literal("device-unavailable") }),
|
|
23953
|
+
object({ kind: literal("node-offline") }),
|
|
23954
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
23955
|
+
object({
|
|
23956
|
+
kind: literal("no-measured-data"),
|
|
23957
|
+
hardwareClass: HardwareClassIdSchema
|
|
23958
|
+
}),
|
|
23959
|
+
object({
|
|
23960
|
+
kind: literal("no-family-build"),
|
|
23961
|
+
format: ModelFormatSchema$1
|
|
23962
|
+
})
|
|
23963
|
+
]);
|
|
23964
|
+
var DeviceModelChoiceSchema = object({
|
|
23965
|
+
modelId: string(),
|
|
23966
|
+
p50Ms: number(),
|
|
23967
|
+
fps: number(),
|
|
23968
|
+
measured: boolean(),
|
|
23969
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
23970
|
+
capacitySessions: number(),
|
|
23971
|
+
personRecall: number()
|
|
23972
|
+
});
|
|
23973
|
+
var DeviceRecommendationSchema = object({
|
|
23974
|
+
deviceKey: string(),
|
|
23975
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
23976
|
+
enabled: boolean(),
|
|
23977
|
+
available: boolean(),
|
|
23978
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
23979
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23980
|
+
});
|
|
23981
|
+
var NodeRecommendationSchema = object({
|
|
23982
|
+
nodeId: string(),
|
|
23983
|
+
reachable: boolean(),
|
|
23984
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
23985
|
+
cpuModel: string().nullable(),
|
|
23986
|
+
skipped: boolean(),
|
|
23987
|
+
acceleratorModelId: string().nullable(),
|
|
23988
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
23989
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
23990
|
+
});
|
|
23991
|
+
var ModelPinChangeSchema = object({
|
|
23992
|
+
stepId: string(),
|
|
23993
|
+
before: string().nullable(),
|
|
23994
|
+
after: string().nullable()
|
|
23995
|
+
});
|
|
23996
|
+
var NodeDeviceChangeSchema = object({
|
|
23997
|
+
nodeId: string(),
|
|
23998
|
+
deviceKey: string(),
|
|
23999
|
+
madeExplicit: boolean(),
|
|
24000
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
24001
|
+
thresholds: array(object({
|
|
24002
|
+
stepId: string(),
|
|
24003
|
+
keys: array(string()).readonly()
|
|
24004
|
+
})).readonly()
|
|
24005
|
+
});
|
|
24006
|
+
var CameraOverrideClearSchema = object({
|
|
24007
|
+
deviceId: number(),
|
|
24008
|
+
source: _enum(["step-override", "wholesale"]),
|
|
24009
|
+
nodeId: string(),
|
|
24010
|
+
deviceKey: string().nullable(),
|
|
24011
|
+
stepId: string(),
|
|
24012
|
+
modelIdBefore: string().nullable(),
|
|
24013
|
+
keys: array(string()).readonly()
|
|
24014
|
+
});
|
|
24015
|
+
var DetectorStoreClearSchema = object({
|
|
24016
|
+
deviceId: number(),
|
|
24017
|
+
keys: array(string()).readonly()
|
|
24018
|
+
});
|
|
24019
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
24020
|
+
object({
|
|
24021
|
+
kind: literal("detector-store-cluster-wide"),
|
|
24022
|
+
skippedNodes: array(string()).readonly()
|
|
24023
|
+
}),
|
|
24024
|
+
object({
|
|
24025
|
+
kind: literal("detector-store-unreadable"),
|
|
24026
|
+
error: string()
|
|
24027
|
+
}),
|
|
24028
|
+
object({
|
|
24029
|
+
kind: literal("coral-enabled"),
|
|
24030
|
+
nodeId: string(),
|
|
24031
|
+
deviceKey: string()
|
|
24032
|
+
})
|
|
24033
|
+
]);
|
|
24034
|
+
var AutoTuneOptionsSchema = object({
|
|
24035
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
24036
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24037
|
+
/**
|
|
24038
|
+
* The least number of parallel sessions every device must sustain at the
|
|
24039
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
24040
|
+
* that reaches it wins.
|
|
24041
|
+
*/
|
|
24042
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24043
|
+
});
|
|
24044
|
+
var AutoTunePlanSchema = object({
|
|
24045
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
24046
|
+
planHash: string(),
|
|
24047
|
+
family: literal("yolov9"),
|
|
24048
|
+
headroom: number(),
|
|
24049
|
+
minSessionsPerDevice: number(),
|
|
24050
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
24051
|
+
cameraFps: number(),
|
|
24052
|
+
generatedAt: number(),
|
|
24053
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
24054
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
24055
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
24056
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
24057
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
24058
|
+
});
|
|
24059
|
+
var AutoTuneApplyInputSchema = object({
|
|
24060
|
+
planHash: string(),
|
|
24061
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24062
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24063
|
+
});
|
|
24064
|
+
var AutoTunePhaseResultSchema = object({
|
|
24065
|
+
phase: _enum([
|
|
24066
|
+
"download",
|
|
24067
|
+
"camera-overrides",
|
|
24068
|
+
"detector-thresholds",
|
|
24069
|
+
"node-models",
|
|
24070
|
+
"redispatch"
|
|
24071
|
+
]),
|
|
24072
|
+
ok: boolean(),
|
|
24073
|
+
detail: string()
|
|
24074
|
+
});
|
|
24075
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
24076
|
+
object({
|
|
24077
|
+
kind: literal("applied"),
|
|
24078
|
+
planHash: string(),
|
|
24079
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24080
|
+
}),
|
|
24081
|
+
object({
|
|
24082
|
+
kind: literal("aborted"),
|
|
24083
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24084
|
+
}),
|
|
24085
|
+
object({
|
|
24086
|
+
kind: literal("stale"),
|
|
24087
|
+
plan: AutoTunePlanSchema
|
|
24088
|
+
}),
|
|
24089
|
+
object({
|
|
24090
|
+
kind: literal("refused"),
|
|
24091
|
+
reason: _enum(["apply-in-progress"])
|
|
24092
|
+
})
|
|
24093
|
+
]);
|
|
24094
|
+
/**
|
|
24095
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
24096
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
24097
|
+
* hardware share suggestion and the stale device pins.
|
|
24098
|
+
*/
|
|
24099
|
+
/**
|
|
24100
|
+
* How a new detection session picks its node and device.
|
|
24101
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
24102
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
24103
|
+
* weight only bites once a node already holds a session.
|
|
24104
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
24105
|
+
* full or drowning node yields to a free one (D748).
|
|
24106
|
+
*/
|
|
24107
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
24108
|
+
var LoadBalancingSharesInputSchema = object({
|
|
24109
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
24110
|
+
nodes: record(string(), number().positive()).default({}),
|
|
24111
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
24112
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
24113
|
+
});
|
|
24114
|
+
var PlacementStatsInputSchema = object({
|
|
24115
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
24116
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
24117
|
+
var PlacementDeviceStatsSchema = object({
|
|
24118
|
+
deviceKey: string(),
|
|
24119
|
+
/** Sessions running on this device now. */
|
|
24120
|
+
sessionsNow: number(),
|
|
24121
|
+
/** Sessions started on this device inside the window. */
|
|
24122
|
+
sessionsStarted: number(),
|
|
24123
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
24124
|
+
observedShare: number().nullable()
|
|
24125
|
+
});
|
|
24126
|
+
var PlacementNodeStatsSchema = object({
|
|
24127
|
+
nodeId: string(),
|
|
24128
|
+
sessionsNow: number(),
|
|
24129
|
+
sessionsStarted: number(),
|
|
24130
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
24131
|
+
observedShare: number().nullable(),
|
|
24132
|
+
/** Most sessions this node ran at once inside the window. */
|
|
24133
|
+
peakSessions: number(),
|
|
24134
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
24135
|
+
yieldsAway: number(),
|
|
24136
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
24137
|
+
});
|
|
24138
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
24139
|
+
var StaleDevicePinSchema = object({
|
|
24140
|
+
deviceId: number(),
|
|
24141
|
+
deviceKey: string(),
|
|
24142
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
24143
|
+
reason: _enum(["disabled", "absent"])
|
|
24144
|
+
});
|
|
24145
|
+
var PlacementStatsSchema = object({
|
|
24146
|
+
policy: SessionPlacementPolicySchema,
|
|
24147
|
+
windowMs: number(),
|
|
24148
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
24149
|
+
observedForMs: number(),
|
|
24150
|
+
sessionsNow: number(),
|
|
24151
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
24152
|
+
clusterPeakSessions: number(),
|
|
24153
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
24154
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
24155
|
+
});
|
|
24156
|
+
/**
|
|
24157
|
+
* Where an automatic share's capacity comes from (D755).
|
|
24158
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
24159
|
+
* the measured latency table for the node's hardware class.
|
|
24160
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
24161
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
24162
|
+
*/
|
|
24163
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
24164
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
24165
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
24166
|
+
var SuggestSharesInputSchema = object({
|
|
24167
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24168
|
+
/** Default `hardware`. */
|
|
24169
|
+
source: CapacitySourceSchema.default("hardware")
|
|
24170
|
+
});
|
|
24171
|
+
var SuggestedDeviceShareSchema = object({
|
|
24172
|
+
deviceKey: string(),
|
|
24173
|
+
/** Share of the node (0–100, rounded). */
|
|
24174
|
+
share: number(),
|
|
24175
|
+
modelId: string().nullable(),
|
|
24176
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
24177
|
+
fps: number().nullable(),
|
|
24178
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
24179
|
+
measured: boolean(),
|
|
24180
|
+
/**
|
|
24181
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
24182
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
24183
|
+
*/
|
|
24184
|
+
suggestedMaxSessions: number().nullable()
|
|
24185
|
+
});
|
|
24186
|
+
var SuggestedNodeShareSchema = object({
|
|
24187
|
+
nodeId: string(),
|
|
24188
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
24189
|
+
share: number().nullable(),
|
|
24190
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
24191
|
+
capacitySessions: number(),
|
|
24192
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
24193
|
+
skippedReason: string().nullable(),
|
|
24194
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
24195
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24196
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
24197
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
24198
|
+
});
|
|
24199
|
+
var SuggestSharesResultSchema = object({
|
|
24200
|
+
headroom: number(),
|
|
24201
|
+
/** The source asked for; each node says what it actually used. */
|
|
24202
|
+
source: CapacitySourceSchema,
|
|
24203
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
24204
|
+
cameraFps: number(),
|
|
24205
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
24206
|
+
minSessionsPerDevice: number(),
|
|
24207
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
24208
|
+
});
|
|
24209
|
+
/**
|
|
24210
|
+
* Where the node and device shares come from (D750, D755).
|
|
24211
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
24212
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
24213
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
24214
|
+
* switched on or off, or changes model. No load input.
|
|
24215
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
24216
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
24217
|
+
* - `manual` — the operator's stored sliders.
|
|
24218
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
24219
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
24220
|
+
*/
|
|
24221
|
+
var ShareSourceSchema = _enum([
|
|
24222
|
+
"hardware",
|
|
24223
|
+
"benchmark",
|
|
24224
|
+
"manual"
|
|
24225
|
+
]);
|
|
24226
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
24227
|
+
object({
|
|
24228
|
+
nodes: record(string(), number()),
|
|
24229
|
+
devices: record(string(), record(string(), number()))
|
|
24230
|
+
});
|
|
24231
|
+
var EffectiveDeviceShareSchema = object({
|
|
24232
|
+
deviceKey: string(),
|
|
24233
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
24234
|
+
eligible: boolean(),
|
|
24235
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
24236
|
+
configuredPct: number(),
|
|
24237
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
24238
|
+
effectivePct: number()
|
|
24239
|
+
});
|
|
24240
|
+
var EffectiveNodeShareSchema = object({
|
|
24241
|
+
nodeId: string(),
|
|
24242
|
+
eligible: boolean(),
|
|
24243
|
+
configuredPct: number(),
|
|
24244
|
+
effectivePct: number(),
|
|
24245
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
24246
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24247
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
24248
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
24249
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
24250
|
+
});
|
|
24251
|
+
var EffectiveSharesSchema = object({
|
|
24252
|
+
source: ShareSourceSchema,
|
|
24253
|
+
policy: SessionPlacementPolicySchema,
|
|
24254
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
24255
|
+
autoPending: boolean(),
|
|
24256
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
24257
|
+
computedAt: number().nullable(),
|
|
24258
|
+
/** What made the system recompute them last. */
|
|
24259
|
+
trigger: string().nullable(),
|
|
24260
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
24261
|
+
/** The relative weights the election reads (before eligibility). */
|
|
24262
|
+
nodeWeights: record(string(), number()),
|
|
24263
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
24264
|
+
});
|
|
23829
24265
|
object({
|
|
23830
24266
|
activeCameras: number(),
|
|
23831
24267
|
throttledCameras: number(),
|
|
@@ -24309,6 +24745,22 @@ var MotionSourceEnum = _enum([
|
|
|
24309
24745
|
"device-activity"
|
|
24310
24746
|
]);
|
|
24311
24747
|
/**
|
|
24748
|
+
* What opened an on-motion detection SESSION: the motion source that passed the
|
|
24749
|
+
* camera's `motionSources` gate, and what raised it (the camera itself, or a
|
|
24750
|
+
* sensor the operator attached — D672). `sensorName` is the attached sensor's
|
|
24751
|
+
* device name as the orchestrator's camera-sensors resolution last read it;
|
|
24752
|
+
* absent when unknown or when the camera itself triggered.
|
|
24753
|
+
*
|
|
24754
|
+
* Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
|
|
24755
|
+
* can say what started the session (D672 rule 11, amended 2026-10-06). The
|
|
24756
|
+
* runner never decides anything on it.
|
|
24757
|
+
*/
|
|
24758
|
+
var SessionTriggerSchema = object({
|
|
24759
|
+
source: MotionSourceEnum,
|
|
24760
|
+
triggeredBy: MotionTriggeredBySchema,
|
|
24761
|
+
sensorName: string().optional()
|
|
24762
|
+
});
|
|
24763
|
+
/**
|
|
24312
24764
|
* List of motion sources active on a camera. Empty array is valid:
|
|
24313
24765
|
* "no source" — happens for battery cams without firmware motion when
|
|
24314
24766
|
* the operator hasn't opted into the SW analyzer (would hold the
|
|
@@ -24560,6 +25012,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
24560
25012
|
*/
|
|
24561
25013
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
24562
25014
|
/**
|
|
25015
|
+
* What opened this attach, on a SESSION attach only (see
|
|
25016
|
+
* {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
|
|
25017
|
+
* standing attach, an occupancy burst, a re-dispatch with no motion event
|
|
25018
|
+
* behind it, and every attach from an orchestrator older than the field — the
|
|
25019
|
+
* runner then names no source on the phase event.
|
|
25020
|
+
*/
|
|
25021
|
+
sessionTrigger: SessionTriggerSchema.optional(),
|
|
25022
|
+
/**
|
|
24563
25023
|
* WHICH root detector runs for this camera. The detection counterpart of
|
|
24564
25024
|
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
24565
25025
|
* of sources the system understands, vendor-agnostic, owned here.
|
|
@@ -24719,14 +25179,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
24719
25179
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
24720
25180
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
24721
25181
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
24722
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
24723
|
-
* per
|
|
25182
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
25183
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
25184
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
25185
|
+
* (D762).
|
|
24724
25186
|
*/
|
|
24725
25187
|
devices: array(object({
|
|
24726
25188
|
deviceKey: string(),
|
|
24727
25189
|
backend: string(),
|
|
24728
|
-
attachedCameras: number()
|
|
24729
|
-
queueDepthTotal: number()
|
|
25190
|
+
attachedCameras: number()
|
|
24730
25191
|
})).default([]),
|
|
24731
25192
|
/** Hardware capability flags reported by this node. */
|
|
24732
25193
|
hardware: object({
|
|
@@ -24862,7 +25323,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
24862
25323
|
*/
|
|
24863
25324
|
cropJpeg: string().optional(),
|
|
24864
25325
|
parent: DetailParentSchema,
|
|
24865
|
-
steps: array(string()).optional()
|
|
25326
|
+
steps: array(string()).optional(),
|
|
25327
|
+
/**
|
|
25328
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
25329
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
25330
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
25331
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
25332
|
+
* requested step infers as before.
|
|
25333
|
+
*/
|
|
25334
|
+
supplied: object({
|
|
25335
|
+
stepId: string(),
|
|
25336
|
+
modelId: string(),
|
|
25337
|
+
boxes: array(object({
|
|
25338
|
+
bbox: NativeCropBboxSchema,
|
|
25339
|
+
score: number()
|
|
25340
|
+
})).min(1)
|
|
25341
|
+
}).optional()
|
|
24866
25342
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
24867
25343
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
24868
25344
|
stepId: string(),
|
|
@@ -24925,14 +25401,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
24925
25401
|
settings: record(string(), unknown()).readonly().optional()
|
|
24926
25402
|
}).nullable().optional()
|
|
24927
25403
|
});
|
|
24928
|
-
var PipelineTemplateSchema = object({
|
|
24929
|
-
id: string(),
|
|
24930
|
-
name: string(),
|
|
24931
|
-
description: string().optional(),
|
|
24932
|
-
config: CameraPipelineConfigSchema,
|
|
24933
|
-
createdAt: string(),
|
|
24934
|
-
updatedAt: string()
|
|
24935
|
-
});
|
|
24936
25404
|
var DeviceStepConfigSchema = object({
|
|
24937
25405
|
modelId: string().optional(),
|
|
24938
25406
|
settings: record(string(), unknown()).optional(),
|
|
@@ -25006,9 +25474,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25006
25474
|
modelId: string().optional(),
|
|
25007
25475
|
settings: record(string(), unknown()).readonly().optional()
|
|
25008
25476
|
});
|
|
25477
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25009
25478
|
var CameraPipelineSettingsSchema = object({
|
|
25010
|
-
pinnedAgentNodeId: string().optional(),
|
|
25011
25479
|
stepToggles: record(string(), boolean()).optional(),
|
|
25480
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25012
25481
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25013
25482
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25014
25483
|
});
|
|
@@ -25041,7 +25510,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25041
25510
|
});
|
|
25042
25511
|
/**
|
|
25043
25512
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25044
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
25513
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
25514
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
25515
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
25516
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
25045
25517
|
*/
|
|
25046
25518
|
var AgentLoadSummarySchema = object({
|
|
25047
25519
|
nodeId: string(),
|
|
@@ -25130,26 +25602,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
25130
25602
|
width: number(),
|
|
25131
25603
|
height: number(),
|
|
25132
25604
|
subscribers: number(),
|
|
25133
|
-
|
|
25134
|
-
|
|
25605
|
+
/**
|
|
25606
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
25607
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
25608
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
25609
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
25610
|
+
* camera and is not served (D758).
|
|
25611
|
+
*/
|
|
25612
|
+
inFps: number().nullable()
|
|
25135
25613
|
})).readonly(),
|
|
25136
25614
|
webrtcSessions: number(),
|
|
25137
25615
|
rtspRestream: boolean()
|
|
25138
25616
|
});
|
|
25139
|
-
/**
|
|
25140
|
-
|
|
25141
|
-
|
|
25142
|
-
|
|
25143
|
-
|
|
25144
|
-
|
|
25145
|
-
|
|
25146
|
-
|
|
25147
|
-
var CameraDecoderStatusSchema = object({
|
|
25148
|
-
nodeId: string(),
|
|
25149
|
-
formats: array(string()).readonly(),
|
|
25150
|
-
sessionCount: number(),
|
|
25151
|
-
shm: CameraDecoderShmSchema
|
|
25152
|
-
});
|
|
25617
|
+
/**
|
|
25618
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
25619
|
+
* construction); null when the camera has no detection node. It carries no
|
|
25620
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
25621
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
25622
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
25623
|
+
* detector), never from a counter nothing feeds.
|
|
25624
|
+
*/
|
|
25625
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
25153
25626
|
/** Motion block — null when motion detection is not active for this device. */
|
|
25154
25627
|
var CameraMotionStatusSchema = object({
|
|
25155
25628
|
enabled: boolean(),
|
|
@@ -25506,12 +25979,6 @@ method(object({
|
|
|
25506
25979
|
}), object({ success: literal(true) }), {
|
|
25507
25980
|
kind: "mutation",
|
|
25508
25981
|
auth: "admin"
|
|
25509
|
-
}), method(object({
|
|
25510
|
-
agentNodeId: string(),
|
|
25511
|
-
detectWeight: number().positive().nullable()
|
|
25512
|
-
}), object({ success: literal(true) }), {
|
|
25513
|
-
kind: "mutation",
|
|
25514
|
-
auth: "admin"
|
|
25515
25982
|
}), method(object({
|
|
25516
25983
|
agentNodeId: string(),
|
|
25517
25984
|
detect: boolean().nullable().optional(),
|
|
@@ -25553,6 +26020,15 @@ method(object({
|
|
|
25553
26020
|
}), {
|
|
25554
26021
|
kind: "mutation",
|
|
25555
26022
|
auth: "admin"
|
|
26023
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
26024
|
+
kind: "mutation",
|
|
26025
|
+
auth: "admin"
|
|
26026
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
26027
|
+
kind: "mutation",
|
|
26028
|
+
auth: "admin"
|
|
26029
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
26030
|
+
kind: "mutation",
|
|
26031
|
+
auth: "admin"
|
|
25556
26032
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
25557
26033
|
deviceId: number(),
|
|
25558
26034
|
addonId: string(),
|
|
@@ -25569,6 +26045,13 @@ method(object({
|
|
|
25569
26045
|
}), object({ success: literal(true) }), {
|
|
25570
26046
|
kind: "mutation",
|
|
25571
26047
|
auth: "admin"
|
|
26048
|
+
}), method(object({
|
|
26049
|
+
deviceId: number(),
|
|
26050
|
+
addonId: string(),
|
|
26051
|
+
settings: record(string(), unknown()).nullable()
|
|
26052
|
+
}), object({ success: literal(true) }), {
|
|
26053
|
+
kind: "mutation",
|
|
26054
|
+
auth: "admin"
|
|
25572
26055
|
}), method(object({
|
|
25573
26056
|
deviceId: number(),
|
|
25574
26057
|
agentNodeId: string(),
|
|
@@ -25592,25 +26075,7 @@ method(object({
|
|
|
25592
26075
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
25593
26076
|
kind: "mutation",
|
|
25594
26077
|
auth: "admin"
|
|
25595
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
25596
|
-
name: string(),
|
|
25597
|
-
description: string().optional(),
|
|
25598
|
-
config: CameraPipelineConfigSchema
|
|
25599
|
-
}), PipelineTemplateSchema, {
|
|
25600
|
-
kind: "mutation",
|
|
25601
|
-
auth: "admin"
|
|
25602
|
-
}), method(object({
|
|
25603
|
-
id: string(),
|
|
25604
|
-
name: string().optional(),
|
|
25605
|
-
description: string().optional(),
|
|
25606
|
-
config: CameraPipelineConfigSchema.optional()
|
|
25607
|
-
}), PipelineTemplateSchema, {
|
|
25608
|
-
kind: "mutation",
|
|
25609
|
-
auth: "admin"
|
|
25610
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
25611
|
-
kind: "mutation",
|
|
25612
|
-
auth: "admin"
|
|
25613
|
-
});
|
|
26078
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
25614
26079
|
/**
|
|
25615
26080
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
25616
26081
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -26304,7 +26769,19 @@ var SsoBridgeClaimsSchema = object({
|
|
|
26304
26769
|
* editing a descriptor must not retroactively extend or shorten a link the
|
|
26305
26770
|
* operator already consented to.
|
|
26306
26771
|
*/
|
|
26307
|
-
refreshTtl: union([number().int().positive(), literal("never")]).optional()
|
|
26772
|
+
refreshTtl: union([number().int().positive(), literal("never")]).optional(),
|
|
26773
|
+
/**
|
|
26774
|
+
* Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
|
|
26775
|
+
* that was started from a signed-in user's "Link" button: the finish then
|
|
26776
|
+
* links this identity to the intent's user instead of signing anyone in.
|
|
26777
|
+
* The handle carries no user id — the hub resolves it, single-use.
|
|
26778
|
+
*/
|
|
26779
|
+
linkIntent: string().optional(),
|
|
26780
|
+
/**
|
|
26781
|
+
* Verified `iss` of the id_token behind an OIDC login bridge (D782). A
|
|
26782
|
+
* subject is unique only per issuer, so a link is bound to it.
|
|
26783
|
+
*/
|
|
26784
|
+
issuer: string().optional()
|
|
26308
26785
|
});
|
|
26309
26786
|
method(object({
|
|
26310
26787
|
claims: SsoBridgeClaimsSchema,
|
|
@@ -27963,8 +28440,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
27963
28440
|
]).nullable(),
|
|
27964
28441
|
/** Input FPS from the camera (null for adaptive). */
|
|
27965
28442
|
inputFps: number().nullable(),
|
|
27966
|
-
/** Decoded FPS (null for adaptive). */
|
|
27967
|
-
decodeFps: number().nullable(),
|
|
27968
28443
|
/** Bitrate in kbps (null for adaptive). */
|
|
27969
28444
|
bitrateKbps: number().nullable()
|
|
27970
28445
|
});
|
|
@@ -28241,7 +28716,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28241
28716
|
* field their hints were silently stripped by the schema and the
|
|
28242
28717
|
* adaptive ladder started blind on the client's display size.
|
|
28243
28718
|
*/
|
|
28244
|
-
hints: webrtcClientHintsSchema.optional()
|
|
28719
|
+
hints: webrtcClientHintsSchema.optional(),
|
|
28720
|
+
/**
|
|
28721
|
+
* Talk-back (D771): relay the PEER's audio to the device's speaker
|
|
28722
|
+
* through the `intercom` cap's push-talk triple. When `true` and the
|
|
28723
|
+
* offer lets the peer send audio, the answer's audio is `sendrecv`
|
|
28724
|
+
* and every inbound frame goes to `intercom.pushTalkAudio` for this
|
|
28725
|
+
* `deviceId`; absent/false answers `sendonly`, as for every viewer.
|
|
28726
|
+
*
|
|
28727
|
+
* TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
|
|
28728
|
+
* with `intercom`, when the linked user may control that camera. The
|
|
28729
|
+
* hub STRIPS it from every request-bound call (a browser), exactly as
|
|
28730
|
+
* it overwrites `relayOnly` — a viewer's talk permission is the
|
|
28731
|
+
* intercom cap's own surface (share tokens gate it there), and this
|
|
28732
|
+
* flag must not become a second door to the camera's speaker.
|
|
28733
|
+
*/
|
|
28734
|
+
talkback: boolean().optional()
|
|
28245
28735
|
}), object({
|
|
28246
28736
|
sessionId: string(),
|
|
28247
28737
|
sdpAnswer: string()
|
|
@@ -28296,6 +28786,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28296
28786
|
*/
|
|
28297
28787
|
alive: boolean()
|
|
28298
28788
|
})), method(object({
|
|
28789
|
+
deviceId: number().int().nonnegative(),
|
|
28790
|
+
sessionId: string(),
|
|
28791
|
+
downlinkMbps: number().nonnegative()
|
|
28792
|
+
}), object({
|
|
28793
|
+
outcome: _enum(["switching", "held"]),
|
|
28794
|
+
tier: CamProfileSchema.nullable(),
|
|
28795
|
+
reason: string()
|
|
28796
|
+
}), { kind: "mutation" }), method(object({
|
|
28299
28797
|
deviceId: number().int().nonnegative(),
|
|
28300
28798
|
sessionId: string()
|
|
28301
28799
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -28535,6 +29033,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
28535
29033
|
var RestartAddonResultSchema = unknown();
|
|
28536
29034
|
var InstallPackageResultSchema = unknown();
|
|
28537
29035
|
var ReloadPackagesResultSchema = unknown();
|
|
29036
|
+
/**
|
|
29037
|
+
* What an uninstall did on ONE node.
|
|
29038
|
+
* - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
|
|
29039
|
+
* - `not-installed` — the node did not have it (nothing to do).
|
|
29040
|
+
* - `refused` — protected / bootstrap package; nothing touched.
|
|
29041
|
+
* - `failed` — attempted and did not complete; `error` says why.
|
|
29042
|
+
* - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
|
|
29043
|
+
* back-fill never returns the package, and the stale-addon sweep removes the
|
|
29044
|
+
* copy when the node registers again (only once the hub no longer has it).
|
|
29045
|
+
*/
|
|
29046
|
+
var UninstallNodeOutcomeSchema = _enum([
|
|
29047
|
+
"uninstalled",
|
|
29048
|
+
"not-installed",
|
|
29049
|
+
"refused",
|
|
29050
|
+
"failed",
|
|
29051
|
+
"pending-reconnect"
|
|
29052
|
+
]);
|
|
29053
|
+
var UninstallNodeResultSchema = object({
|
|
29054
|
+
nodeId: string(),
|
|
29055
|
+
outcome: UninstallNodeOutcomeSchema,
|
|
29056
|
+
error: string().optional(),
|
|
29057
|
+
addonIds: array(string()).readonly(),
|
|
29058
|
+
runnersStopped: array(string()).readonly(),
|
|
29059
|
+
warnings: array(string()).readonly()
|
|
29060
|
+
});
|
|
29061
|
+
var UninstallPackageResultSchema = object({
|
|
29062
|
+
/** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
|
|
29063
|
+
success: boolean(),
|
|
29064
|
+
packageName: string(),
|
|
29065
|
+
results: array(UninstallNodeResultSchema).readonly()
|
|
29066
|
+
});
|
|
29067
|
+
/**
|
|
29068
|
+
* `unreachable` lists online agents whose status read FAILED — absence from
|
|
29069
|
+
* `installations` is only "not installed" for a node that answered (D315).
|
|
29070
|
+
*/
|
|
29071
|
+
var PackageInstallationsSchema = object({
|
|
29072
|
+
installations: array(object({
|
|
29073
|
+
packageName: string(),
|
|
29074
|
+
nodeId: string(),
|
|
29075
|
+
nodeName: string(),
|
|
29076
|
+
isHub: boolean(),
|
|
29077
|
+
isOnline: boolean(),
|
|
29078
|
+
version: string().nullable(),
|
|
29079
|
+
addonIds: array(string()).readonly(),
|
|
29080
|
+
source: _enum(["live", "recorded"]),
|
|
29081
|
+
/** The hub installs this package too. `false` on an agent row = an orphan. */
|
|
29082
|
+
onHub: boolean()
|
|
29083
|
+
})).readonly(),
|
|
29084
|
+
unreachable: array(object({
|
|
29085
|
+
nodeId: string(),
|
|
29086
|
+
error: string()
|
|
29087
|
+
})).readonly()
|
|
29088
|
+
});
|
|
28538
29089
|
var BulkUpdateItemStatusSchema = _enum([
|
|
28539
29090
|
"queued",
|
|
28540
29091
|
"updating",
|
|
@@ -28617,10 +29168,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
28617
29168
|
}), method(object({ packageName: string() }), InstallPackageResultSchema, {
|
|
28618
29169
|
kind: "mutation",
|
|
28619
29170
|
auth: "admin"
|
|
28620
|
-
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
29171
|
+
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
29172
|
+
packageName: string().min(1),
|
|
29173
|
+
nodeId: string().optional(),
|
|
29174
|
+
everywhere: boolean().optional()
|
|
29175
|
+
}), UninstallPackageResultSchema, {
|
|
28621
29176
|
kind: "mutation",
|
|
28622
29177
|
auth: "admin"
|
|
28623
|
-
}), method(_void(), ReloadPackagesResultSchema, {
|
|
29178
|
+
}), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
|
|
28624
29179
|
kind: "mutation",
|
|
28625
29180
|
auth: "admin"
|
|
28626
29181
|
}), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
|
|
@@ -32060,7 +32615,7 @@ var LocalInterfaceSchema = object({
|
|
|
32060
32615
|
name: string(),
|
|
32061
32616
|
family: _enum(["IPv4", "IPv6"]),
|
|
32062
32617
|
address: string(),
|
|
32063
|
-
/** CIDR shorthand (e.g. `192.168.
|
|
32618
|
+
/** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
|
|
32064
32619
|
cidr: string(),
|
|
32065
32620
|
/** OS netmask. Stable across calls so the SDK can hash on it. */
|
|
32066
32621
|
netmask: string(),
|
|
@@ -32114,7 +32669,9 @@ var ConnectionEndpointSchema = object({
|
|
|
32114
32669
|
"lan-ipv4",
|
|
32115
32670
|
"lan-ipv6",
|
|
32116
32671
|
"public",
|
|
32117
|
-
"loopback"
|
|
32672
|
+
"loopback",
|
|
32673
|
+
"app-link",
|
|
32674
|
+
"custom"
|
|
32118
32675
|
]),
|
|
32119
32676
|
/**
|
|
32120
32677
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -32183,15 +32740,27 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
32183
32740
|
localPort: AdvertisedLocalPortSchema
|
|
32184
32741
|
});
|
|
32185
32742
|
/**
|
|
32186
|
-
* The
|
|
32187
|
-
*
|
|
32188
|
-
*
|
|
32743
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
32744
|
+
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
32745
|
+
* so the UI can show it either way.
|
|
32189
32746
|
*/
|
|
32190
32747
|
var NotificationEndpointSchema = object({
|
|
32191
32748
|
/** The operator's explicit choice, or null for AUTO. */
|
|
32192
32749
|
baseUrl: string().nullable(),
|
|
32193
|
-
/**
|
|
32194
|
-
|
|
32750
|
+
/**
|
|
32751
|
+
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
32752
|
+
* CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
|
|
32753
|
+
* answered the public tunnel / mesh here, or null.
|
|
32754
|
+
*/
|
|
32755
|
+
resolved: string().nullable(),
|
|
32756
|
+
/**
|
|
32757
|
+
* The hub origin an app link carries as `hub=` (D709): the hub's best
|
|
32758
|
+
* public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
|
|
32759
|
+
* picked from this cap's own palette by `pickAppLinkHub`. `null` when the
|
|
32760
|
+
* hub advertises neither; the app link is then minted without `hub=`.
|
|
32761
|
+
* Absent on a pre-D709 hub.
|
|
32762
|
+
*/
|
|
32763
|
+
appLinkHub: string().nullable()
|
|
32195
32764
|
});
|
|
32196
32765
|
/**
|
|
32197
32766
|
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
@@ -32204,6 +32773,72 @@ var ViewerEndpointsSchema = object({
|
|
|
32204
32773
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
32205
32774
|
resolved: array(string()).readonly()
|
|
32206
32775
|
});
|
|
32776
|
+
/**
|
|
32777
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
32778
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
32779
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
32780
|
+
*/
|
|
32781
|
+
var HubAddressSnapshotSchema = object({
|
|
32782
|
+
override: string().nullable(),
|
|
32783
|
+
resolved: string().nullable(),
|
|
32784
|
+
source: _enum([
|
|
32785
|
+
"override",
|
|
32786
|
+
"auto",
|
|
32787
|
+
"none"
|
|
32788
|
+
])
|
|
32789
|
+
});
|
|
32790
|
+
var HubAddressesSchema = object({
|
|
32791
|
+
cluster: HubAddressSnapshotSchema,
|
|
32792
|
+
browser: HubAddressSnapshotSchema
|
|
32793
|
+
});
|
|
32794
|
+
/**
|
|
32795
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
32796
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
32797
|
+
* by at most one address.
|
|
32798
|
+
*/
|
|
32799
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
32800
|
+
var RoleSourceSchema = _enum([
|
|
32801
|
+
"flagged",
|
|
32802
|
+
"auto",
|
|
32803
|
+
"none"
|
|
32804
|
+
]);
|
|
32805
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
32806
|
+
var HubAddressRoleResolutionSchema = object({
|
|
32807
|
+
/** The address carrying the flag, or null = automatic. */
|
|
32808
|
+
flagged: string().nullable(),
|
|
32809
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
32810
|
+
resolved: string().nullable(),
|
|
32811
|
+
source: RoleSourceSchema
|
|
32812
|
+
});
|
|
32813
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
32814
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
32815
|
+
flagged: array(string()).readonly(),
|
|
32816
|
+
/** What the apps race right now. */
|
|
32817
|
+
resolved: array(string()).readonly(),
|
|
32818
|
+
source: RoleSourceSchema
|
|
32819
|
+
});
|
|
32820
|
+
var HubAddressBookSchema = object({
|
|
32821
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
32822
|
+
/** In the hub's detected palette right now. */
|
|
32823
|
+
detected: boolean(),
|
|
32824
|
+
/** Entered by the operator (removable). */
|
|
32825
|
+
custom: boolean(),
|
|
32826
|
+
/** The roles explicitly flagged on this address. */
|
|
32827
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
32828
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
32829
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
32830
|
+
/** The roles this address may be flagged with. */
|
|
32831
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
32832
|
+
})).readonly(),
|
|
32833
|
+
roles: object({
|
|
32834
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
32835
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
32836
|
+
internal: HubAddressRoleResolutionSchema,
|
|
32837
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
32838
|
+
}),
|
|
32839
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
32840
|
+
appLinkHub: string().nullable()
|
|
32841
|
+
});
|
|
32207
32842
|
var AllowedAddressesSchema = object({
|
|
32208
32843
|
/**
|
|
32209
32844
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -32245,8 +32880,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
32245
32880
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
32246
32881
|
* to avoid mixed-content blocks in the browser. The public
|
|
32247
32882
|
* tunnel always emits `https://` regardless. */
|
|
32248
|
-
scheme: _enum(["http", "https"]).optional()
|
|
32249
|
-
|
|
32883
|
+
scheme: _enum(["http", "https"]).optional(),
|
|
32884
|
+
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
32885
|
+
* an address notification taps can be flagged with, not a hub
|
|
32886
|
+
* route. Default `false`: racers and rankers never see it. */
|
|
32887
|
+
includeAppLink: boolean().optional()
|
|
32888
|
+
}), 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({
|
|
32889
|
+
baseUrl: string(),
|
|
32890
|
+
label: string().max(80)
|
|
32891
|
+
}), HubAddressBookSchema, {
|
|
32892
|
+
kind: "mutation",
|
|
32893
|
+
auth: "admin"
|
|
32894
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
32895
|
+
kind: "mutation",
|
|
32896
|
+
auth: "admin"
|
|
32897
|
+
}), method(object({
|
|
32898
|
+
role: HubAddressRoleSchema,
|
|
32899
|
+
baseUrl: string().nullable(),
|
|
32900
|
+
enabled: boolean(),
|
|
32901
|
+
acceptInsecureHttp: boolean().optional()
|
|
32902
|
+
}), HubAddressBookSchema, {
|
|
32903
|
+
kind: "mutation",
|
|
32904
|
+
auth: "admin"
|
|
32905
|
+
}), 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, {
|
|
32250
32906
|
kind: "mutation",
|
|
32251
32907
|
auth: "admin"
|
|
32252
32908
|
}), method(object({
|
|
@@ -32574,7 +33230,7 @@ var MeshPeerSchema = object({
|
|
|
32574
33230
|
tags: array(string()).readonly(),
|
|
32575
33231
|
/** True when the peer advertises itself as an exit-node candidate. */
|
|
32576
33232
|
exitNodeOption: boolean(),
|
|
32577
|
-
/** Subnet routes the peer advertises (e.g. `["192.168.
|
|
33233
|
+
/** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
|
|
32578
33234
|
advertisedRoutes: array(string()).readonly(),
|
|
32579
33235
|
/** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
|
|
32580
33236
|
userLogin: string().nullable(),
|
|
@@ -32704,7 +33360,8 @@ var MotionStatusSchema = object({
|
|
|
32704
33360
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
32705
33361
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
32706
33362
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
32707
|
-
* A provider's `isDetected`
|
|
33363
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
33364
|
+
* (`hubMotionNativeProvider`).
|
|
32708
33365
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
32709
33366
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
32710
33367
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -33902,7 +34559,13 @@ var OsdStatusSchema = object({ overlays: array(object({
|
|
|
33902
34559
|
*/
|
|
33903
34560
|
availablePositions: array(OsdPositionEnum).readonly(),
|
|
33904
34561
|
/** Firmware does not allow editing the `text` field (e.g. timestamp). */
|
|
33905
|
-
readOnly: boolean().optional()
|
|
34562
|
+
readOnly: boolean().optional(),
|
|
34563
|
+
/**
|
|
34564
|
+
* Firmware text ceiling for this overlay. Absent = no known limit.
|
|
34565
|
+
* The OSD manager truncates here on every write — never stores its own
|
|
34566
|
+
* copy on the binding.
|
|
34567
|
+
*/
|
|
34568
|
+
maxCharacters: number().int().positive().optional()
|
|
33906
34569
|
})).readonly() });
|
|
33907
34570
|
var OsdOverlayPatchSchema = object({
|
|
33908
34571
|
enabled: boolean().optional(),
|
|
@@ -33953,7 +34616,9 @@ var OsdTemplateBindingSchema = object({
|
|
|
33953
34616
|
valuePath: string().min(1).max(64),
|
|
33954
34617
|
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
33955
34618
|
displayUnit: string().max(16).optional(),
|
|
33956
|
-
maxDecimals: number().int().min(0).max(4).default(1)
|
|
34619
|
+
maxDecimals: number().int().min(0).max(4).default(1),
|
|
34620
|
+
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
34621
|
+
valueMap: record(string(), string()).optional()
|
|
33957
34622
|
});
|
|
33958
34623
|
/**
|
|
33959
34624
|
* A named template: bindings (alias → leaf field) + a parser that
|
|
@@ -34003,18 +34668,11 @@ var OsdSlotBindingSchema = object({
|
|
|
34003
34668
|
source: OsdSourceSchema,
|
|
34004
34669
|
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
34005
34670
|
template: string().max(96).default("${value}"),
|
|
34006
|
-
/** Truncate with an ellipsis past this length. Absent = no limit. */
|
|
34007
|
-
maxCharacters: number().int().min(4).max(64).optional(),
|
|
34008
34671
|
/**
|
|
34009
34672
|
* Decimal places for a numeric value. `0` yields an integer — the
|
|
34010
34673
|
* documented workaround for firmwares that reject `.` in overlay text.
|
|
34011
34674
|
*/
|
|
34012
34675
|
maxDecimals: number().int().min(0).max(4).default(1),
|
|
34013
|
-
/**
|
|
34014
|
-
* Appended via `${unit}` when no unit conversion produces a label.
|
|
34015
|
-
* Prefer `source.displayUnit` for converted device-state values.
|
|
34016
|
-
*/
|
|
34017
|
-
unitLabel: string().max(8).optional(),
|
|
34018
34676
|
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
34019
34677
|
valueMap: record(string(), string()).optional(),
|
|
34020
34678
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
@@ -34023,9 +34681,7 @@ var OsdSlotBindingSchema = object({
|
|
|
34023
34681
|
* Display gate, in the notification centre's condition vocabulary.
|
|
34024
34682
|
* Only the keys reported by `getConditionSupport` are accepted.
|
|
34025
34683
|
*/
|
|
34026
|
-
conditions: NcConditionsSchema.optional()
|
|
34027
|
-
/** Rendered when the gate is closed or the value unreadable. Empty = hide. */
|
|
34028
|
-
fallbackText: string().max(64).default("")
|
|
34684
|
+
conditions: NcConditionsSchema.optional()
|
|
34029
34685
|
});
|
|
34030
34686
|
/** One camera slot, as the operator sees it: firmware truth + our binding. */
|
|
34031
34687
|
var OsdSlotViewSchema = object({
|
|
@@ -38437,6 +39093,32 @@ var TotpStatusSchema = object({
|
|
|
38437
39093
|
/** Null when no row exists OR the row is still pending confirmation. */
|
|
38438
39094
|
confirmedAt: number().nullable()
|
|
38439
39095
|
});
|
|
39096
|
+
/**
|
|
39097
|
+
* user-management — singleton capability for user accounts, API keys,
|
|
39098
|
+
* and scoped tokens.
|
|
39099
|
+
*
|
|
39100
|
+
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
39101
|
+
* — the subset check on `setUserScopes` / `createScopedToken` is moot
|
|
39102
|
+
* because non-admins never reach these. If/when we open non-admin
|
|
39103
|
+
* delegation, structural caller-scope subset check goes inside the
|
|
39104
|
+
* provider.
|
|
39105
|
+
*/
|
|
39106
|
+
var ExternalIdentitySchema = object({
|
|
39107
|
+
/** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
|
|
39108
|
+
provider: string(),
|
|
39109
|
+
/** The IdP's stable subject (`sub`) for this account. */
|
|
39110
|
+
subject: string(),
|
|
39111
|
+
/** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
|
|
39112
|
+
issuer: string(),
|
|
39113
|
+
userId: string(),
|
|
39114
|
+
/** What the IdP called the account at link time (username / email) — display only. */
|
|
39115
|
+
label: string().optional(),
|
|
39116
|
+
linkedAt: number()
|
|
39117
|
+
});
|
|
39118
|
+
var ExternalIdentityKeySchema = object({
|
|
39119
|
+
provider: string().min(1),
|
|
39120
|
+
subject: string().min(1)
|
|
39121
|
+
});
|
|
38440
39122
|
method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
|
|
38441
39123
|
kind: "mutation",
|
|
38442
39124
|
auth: "admin",
|
|
@@ -38550,7 +39232,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
38550
39232
|
userId: string(),
|
|
38551
39233
|
username: string(),
|
|
38552
39234
|
scopes: array(TokenScopeSchema)
|
|
38553
|
-
}).nullable(), { access: "view" }), method(
|
|
39235
|
+
}).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
|
|
39236
|
+
userId: string(),
|
|
39237
|
+
issuer: string()
|
|
39238
|
+
}).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
|
|
39239
|
+
userId: string(),
|
|
39240
|
+
issuer: string().min(1),
|
|
39241
|
+
label: string().optional()
|
|
39242
|
+
}), object({ success: literal(true) }), {
|
|
39243
|
+
kind: "mutation",
|
|
39244
|
+
auth: "admin",
|
|
39245
|
+
access: "create"
|
|
39246
|
+
}), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
|
|
39247
|
+
kind: "mutation",
|
|
39248
|
+
auth: "admin",
|
|
39249
|
+
access: "delete"
|
|
39250
|
+
}), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
|
|
38554
39251
|
kind: "mutation",
|
|
38555
39252
|
auth: "admin",
|
|
38556
39253
|
access: "delete"
|
|
@@ -39252,6 +39949,16 @@ var zoneRulesCapability = {
|
|
|
39252
39949
|
durability: "restored"
|
|
39253
39950
|
};
|
|
39254
39951
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
39952
|
+
Object.freeze({
|
|
39953
|
+
person: .5,
|
|
39954
|
+
vehicle: .5,
|
|
39955
|
+
animal: .5
|
|
39956
|
+
});
|
|
39957
|
+
Object.freeze({
|
|
39958
|
+
person: .65,
|
|
39959
|
+
vehicle: .65,
|
|
39960
|
+
animal: .65
|
|
39961
|
+
});
|
|
39255
39962
|
/**
|
|
39256
39963
|
* Accessory device helpers — shared across drivers.
|
|
39257
39964
|
*
|
|
@@ -40950,6 +41657,12 @@ Object.freeze({
|
|
|
40950
41657
|
addonId: null,
|
|
40951
41658
|
access: "view"
|
|
40952
41659
|
},
|
|
41660
|
+
"addons.listInstallations": {
|
|
41661
|
+
capName: "addons",
|
|
41662
|
+
capScope: "system",
|
|
41663
|
+
addonId: null,
|
|
41664
|
+
access: "view"
|
|
41665
|
+
},
|
|
40953
41666
|
"addons.listJobs": {
|
|
40954
41667
|
capName: "addons",
|
|
40955
41668
|
capScope: "system",
|
|
@@ -42132,90 +42845,18 @@ Object.freeze({
|
|
|
42132
42845
|
addonId: null,
|
|
42133
42846
|
access: "create"
|
|
42134
42847
|
},
|
|
42135
|
-
"decoder.createSession": {
|
|
42136
|
-
capName: "decoder",
|
|
42137
|
-
capScope: "system",
|
|
42138
|
-
addonId: null,
|
|
42139
|
-
access: "view"
|
|
42140
|
-
},
|
|
42141
|
-
"decoder.destroySession": {
|
|
42142
|
-
capName: "decoder",
|
|
42143
|
-
capScope: "system",
|
|
42144
|
-
addonId: null,
|
|
42145
|
-
access: "delete"
|
|
42146
|
-
},
|
|
42147
|
-
"decoder.getFrame": {
|
|
42148
|
-
capName: "decoder",
|
|
42149
|
-
capScope: "system",
|
|
42150
|
-
addonId: null,
|
|
42151
|
-
access: "view"
|
|
42152
|
-
},
|
|
42153
42848
|
"decoder.getInfo": {
|
|
42154
42849
|
capName: "decoder",
|
|
42155
42850
|
capScope: "system",
|
|
42156
42851
|
addonId: null,
|
|
42157
42852
|
access: "view"
|
|
42158
42853
|
},
|
|
42159
|
-
"decoder.getShmStats": {
|
|
42160
|
-
capName: "decoder",
|
|
42161
|
-
capScope: "system",
|
|
42162
|
-
addonId: null,
|
|
42163
|
-
access: "view"
|
|
42164
|
-
},
|
|
42165
|
-
"decoder.getStats": {
|
|
42166
|
-
capName: "decoder",
|
|
42167
|
-
capScope: "system",
|
|
42168
|
-
addonId: null,
|
|
42169
|
-
access: "view"
|
|
42170
|
-
},
|
|
42171
|
-
"decoder.listActiveSessions": {
|
|
42172
|
-
capName: "decoder",
|
|
42173
|
-
capScope: "system",
|
|
42174
|
-
addonId: null,
|
|
42175
|
-
access: "view"
|
|
42176
|
-
},
|
|
42177
|
-
"decoder.openStream": {
|
|
42178
|
-
capName: "decoder",
|
|
42179
|
-
capScope: "system",
|
|
42180
|
-
addonId: null,
|
|
42181
|
-
access: "view"
|
|
42182
|
-
},
|
|
42183
|
-
"decoder.pullFrames": {
|
|
42184
|
-
capName: "decoder",
|
|
42185
|
-
capScope: "system",
|
|
42186
|
-
addonId: null,
|
|
42187
|
-
access: "view"
|
|
42188
|
-
},
|
|
42189
|
-
"decoder.pullHandles": {
|
|
42190
|
-
capName: "decoder",
|
|
42191
|
-
capScope: "system",
|
|
42192
|
-
addonId: null,
|
|
42193
|
-
access: "view"
|
|
42194
|
-
},
|
|
42195
|
-
"decoder.pushPacket": {
|
|
42196
|
-
capName: "decoder",
|
|
42197
|
-
capScope: "system",
|
|
42198
|
-
addonId: null,
|
|
42199
|
-
access: "view"
|
|
42200
|
-
},
|
|
42201
42854
|
"decoder.reprobeHwaccel": {
|
|
42202
42855
|
capName: "decoder",
|
|
42203
42856
|
capScope: "system",
|
|
42204
42857
|
addonId: null,
|
|
42205
42858
|
access: "create"
|
|
42206
42859
|
},
|
|
42207
|
-
"decoder.supportsCodec": {
|
|
42208
|
-
capName: "decoder",
|
|
42209
|
-
capScope: "system",
|
|
42210
|
-
addonId: null,
|
|
42211
|
-
access: "view"
|
|
42212
|
-
},
|
|
42213
|
-
"decoder.updateConfig": {
|
|
42214
|
-
capName: "decoder",
|
|
42215
|
-
capScope: "system",
|
|
42216
|
-
addonId: null,
|
|
42217
|
-
access: "view"
|
|
42218
|
-
},
|
|
42219
42860
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
42220
42861
|
capName: "detection-pipeline",
|
|
42221
42862
|
capScope: "device",
|
|
@@ -43704,12 +44345,24 @@ Object.freeze({
|
|
|
43704
44345
|
addonId: null,
|
|
43705
44346
|
access: "view"
|
|
43706
44347
|
},
|
|
44348
|
+
"localNetwork.addCustomAddress": {
|
|
44349
|
+
capName: "local-network",
|
|
44350
|
+
capScope: "system",
|
|
44351
|
+
addonId: null,
|
|
44352
|
+
access: "create"
|
|
44353
|
+
},
|
|
43707
44354
|
"localNetwork.downloadCa": {
|
|
43708
44355
|
capName: "local-network",
|
|
43709
44356
|
capScope: "system",
|
|
43710
44357
|
addonId: null,
|
|
43711
44358
|
access: "view"
|
|
43712
44359
|
},
|
|
44360
|
+
"localNetwork.getAddresses": {
|
|
44361
|
+
capName: "local-network",
|
|
44362
|
+
capScope: "system",
|
|
44363
|
+
addonId: null,
|
|
44364
|
+
access: "view"
|
|
44365
|
+
},
|
|
43713
44366
|
"localNetwork.getAllowedAddresses": {
|
|
43714
44367
|
capName: "local-network",
|
|
43715
44368
|
capScope: "system",
|
|
@@ -43722,6 +44375,12 @@ Object.freeze({
|
|
|
43722
44375
|
addonId: null,
|
|
43723
44376
|
access: "view"
|
|
43724
44377
|
},
|
|
44378
|
+
"localNetwork.getHubAddresses": {
|
|
44379
|
+
capName: "local-network",
|
|
44380
|
+
capScope: "system",
|
|
44381
|
+
addonId: null,
|
|
44382
|
+
access: "view"
|
|
44383
|
+
},
|
|
43725
44384
|
"localNetwork.getNotificationEndpoint": {
|
|
43726
44385
|
capName: "local-network",
|
|
43727
44386
|
capScope: "system",
|
|
@@ -43758,6 +44417,12 @@ Object.freeze({
|
|
|
43758
44417
|
addonId: null,
|
|
43759
44418
|
access: "create"
|
|
43760
44419
|
},
|
|
44420
|
+
"localNetwork.removeCustomAddress": {
|
|
44421
|
+
capName: "local-network",
|
|
44422
|
+
capScope: "system",
|
|
44423
|
+
addonId: null,
|
|
44424
|
+
access: "delete"
|
|
44425
|
+
},
|
|
43761
44426
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
43762
44427
|
capName: "local-network",
|
|
43763
44428
|
capScope: "system",
|
|
@@ -43770,6 +44435,12 @@ Object.freeze({
|
|
|
43770
44435
|
addonId: null,
|
|
43771
44436
|
access: "create"
|
|
43772
44437
|
},
|
|
44438
|
+
"localNetwork.setAddressRole": {
|
|
44439
|
+
capName: "local-network",
|
|
44440
|
+
capScope: "system",
|
|
44441
|
+
addonId: null,
|
|
44442
|
+
access: "create"
|
|
44443
|
+
},
|
|
43773
44444
|
"localNetwork.setAllowedAddresses": {
|
|
43774
44445
|
capName: "local-network",
|
|
43775
44446
|
capScope: "system",
|
|
@@ -45216,6 +45887,12 @@ Object.freeze({
|
|
|
45216
45887
|
addonId: null,
|
|
45217
45888
|
access: "create"
|
|
45218
45889
|
},
|
|
45890
|
+
"pipelineAnalytics.setRetrainFrameComplete": {
|
|
45891
|
+
capName: "pipeline-analytics",
|
|
45892
|
+
capScope: "device",
|
|
45893
|
+
addonId: null,
|
|
45894
|
+
access: "create"
|
|
45895
|
+
},
|
|
45219
45896
|
"pipelineAnalytics.setTrackFlags": {
|
|
45220
45897
|
capName: "pipeline-analytics",
|
|
45221
45898
|
capScope: "device",
|
|
@@ -45252,6 +45929,12 @@ Object.freeze({
|
|
|
45252
45929
|
addonId: null,
|
|
45253
45930
|
access: "delete"
|
|
45254
45931
|
},
|
|
45932
|
+
"pipelineAnalytics.writeRetrainArchive": {
|
|
45933
|
+
capName: "pipeline-analytics",
|
|
45934
|
+
capScope: "device",
|
|
45935
|
+
addonId: null,
|
|
45936
|
+
access: "create"
|
|
45937
|
+
},
|
|
45255
45938
|
"pipelineExecutor.cacheFrameInPool": {
|
|
45256
45939
|
capName: "pipeline-executor",
|
|
45257
45940
|
capScope: "system",
|
|
@@ -45264,13 +45947,13 @@ Object.freeze({
|
|
|
45264
45947
|
addonId: null,
|
|
45265
45948
|
access: "delete"
|
|
45266
45949
|
},
|
|
45267
|
-
"pipelineExecutor.
|
|
45950
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
45268
45951
|
capName: "pipeline-executor",
|
|
45269
45952
|
capScope: "system",
|
|
45270
45953
|
addonId: null,
|
|
45271
45954
|
access: "delete"
|
|
45272
45955
|
},
|
|
45273
|
-
"pipelineExecutor.
|
|
45956
|
+
"pipelineExecutor.deleteModel": {
|
|
45274
45957
|
capName: "pipeline-executor",
|
|
45275
45958
|
capScope: "system",
|
|
45276
45959
|
addonId: null,
|
|
@@ -45414,12 +46097,6 @@ Object.freeze({
|
|
|
45414
46097
|
addonId: null,
|
|
45415
46098
|
access: "view"
|
|
45416
46099
|
},
|
|
45417
|
-
"pipelineExecutor.listTemplates": {
|
|
45418
|
-
capName: "pipeline-executor",
|
|
45419
|
-
capScope: "system",
|
|
45420
|
-
addonId: null,
|
|
45421
|
-
access: "view"
|
|
45422
|
-
},
|
|
45423
46100
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
45424
46101
|
capName: "pipeline-executor",
|
|
45425
46102
|
capScope: "system",
|
|
@@ -45444,12 +46121,6 @@ Object.freeze({
|
|
|
45444
46121
|
addonId: null,
|
|
45445
46122
|
access: "create"
|
|
45446
46123
|
},
|
|
45447
|
-
"pipelineExecutor.saveTemplate": {
|
|
45448
|
-
capName: "pipeline-executor",
|
|
45449
|
-
capScope: "system",
|
|
45450
|
-
addonId: null,
|
|
45451
|
-
access: "create"
|
|
45452
|
-
},
|
|
45453
46124
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
45454
46125
|
capName: "pipeline-executor",
|
|
45455
46126
|
capScope: "system",
|
|
@@ -45468,41 +46139,35 @@ Object.freeze({
|
|
|
45468
46139
|
addonId: null,
|
|
45469
46140
|
access: "create"
|
|
45470
46141
|
},
|
|
45471
|
-
"pipelineExecutor.updateTemplate": {
|
|
45472
|
-
capName: "pipeline-executor",
|
|
45473
|
-
capScope: "system",
|
|
45474
|
-
addonId: null,
|
|
45475
|
-
access: "create"
|
|
45476
|
-
},
|
|
45477
46142
|
"pipelineExecutor.validatePipeline": {
|
|
45478
46143
|
capName: "pipeline-executor",
|
|
45479
46144
|
capScope: "system",
|
|
45480
46145
|
addonId: null,
|
|
45481
46146
|
access: "view"
|
|
45482
46147
|
},
|
|
45483
|
-
"pipelineOrchestrator.
|
|
46148
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
45484
46149
|
capName: "pipeline-orchestrator",
|
|
45485
46150
|
capScope: "system",
|
|
45486
46151
|
addonId: null,
|
|
45487
46152
|
access: "create"
|
|
45488
46153
|
},
|
|
45489
|
-
"pipelineOrchestrator.
|
|
46154
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
45490
46155
|
capName: "pipeline-orchestrator",
|
|
45491
46156
|
capScope: "system",
|
|
45492
46157
|
addonId: null,
|
|
45493
46158
|
access: "create"
|
|
45494
46159
|
},
|
|
45495
|
-
"pipelineOrchestrator.
|
|
46160
|
+
"pipelineOrchestrator.assignAudio": {
|
|
45496
46161
|
capName: "pipeline-orchestrator",
|
|
45497
46162
|
capScope: "system",
|
|
45498
46163
|
addonId: null,
|
|
45499
46164
|
access: "create"
|
|
45500
46165
|
},
|
|
45501
|
-
"pipelineOrchestrator.
|
|
46166
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
45502
46167
|
capName: "pipeline-orchestrator",
|
|
45503
46168
|
capScope: "system",
|
|
45504
46169
|
addonId: null,
|
|
45505
|
-
access: "
|
|
46170
|
+
access: "create"
|
|
45506
46171
|
},
|
|
45507
46172
|
"pipelineOrchestrator.getAgentLoad": {
|
|
45508
46173
|
capName: "pipeline-orchestrator",
|
|
@@ -45594,6 +46259,12 @@ Object.freeze({
|
|
|
45594
46259
|
addonId: null,
|
|
45595
46260
|
access: "view"
|
|
45596
46261
|
},
|
|
46262
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
46263
|
+
capName: "pipeline-orchestrator",
|
|
46264
|
+
capScope: "system",
|
|
46265
|
+
addonId: null,
|
|
46266
|
+
access: "view"
|
|
46267
|
+
},
|
|
45597
46268
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
45598
46269
|
capName: "pipeline-orchestrator",
|
|
45599
46270
|
capScope: "system",
|
|
@@ -45630,19 +46301,19 @@ Object.freeze({
|
|
|
45630
46301
|
addonId: null,
|
|
45631
46302
|
access: "view"
|
|
45632
46303
|
},
|
|
45633
|
-
"pipelineOrchestrator.
|
|
46304
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
45634
46305
|
capName: "pipeline-orchestrator",
|
|
45635
46306
|
capScope: "system",
|
|
45636
46307
|
addonId: null,
|
|
45637
46308
|
access: "view"
|
|
45638
46309
|
},
|
|
45639
|
-
"pipelineOrchestrator.
|
|
46310
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
45640
46311
|
capName: "pipeline-orchestrator",
|
|
45641
46312
|
capScope: "system",
|
|
45642
46313
|
addonId: null,
|
|
45643
46314
|
access: "view"
|
|
45644
46315
|
},
|
|
45645
|
-
"pipelineOrchestrator.
|
|
46316
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
45646
46317
|
capName: "pipeline-orchestrator",
|
|
45647
46318
|
capScope: "system",
|
|
45648
46319
|
addonId: null,
|
|
@@ -45654,6 +46325,12 @@ Object.freeze({
|
|
|
45654
46325
|
addonId: null,
|
|
45655
46326
|
access: "create"
|
|
45656
46327
|
},
|
|
46328
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
46329
|
+
capName: "pipeline-orchestrator",
|
|
46330
|
+
capScope: "system",
|
|
46331
|
+
addonId: null,
|
|
46332
|
+
access: "view"
|
|
46333
|
+
},
|
|
45657
46334
|
"pipelineOrchestrator.rebalance": {
|
|
45658
46335
|
capName: "pipeline-orchestrator",
|
|
45659
46336
|
capScope: "system",
|
|
@@ -45696,12 +46373,6 @@ Object.freeze({
|
|
|
45696
46373
|
addonId: null,
|
|
45697
46374
|
access: "create"
|
|
45698
46375
|
},
|
|
45699
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
45700
|
-
capName: "pipeline-orchestrator",
|
|
45701
|
-
capScope: "system",
|
|
45702
|
-
addonId: null,
|
|
45703
|
-
access: "create"
|
|
45704
|
-
},
|
|
45705
46376
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
45706
46377
|
capName: "pipeline-orchestrator",
|
|
45707
46378
|
capScope: "system",
|
|
@@ -45714,12 +46385,6 @@ Object.freeze({
|
|
|
45714
46385
|
addonId: null,
|
|
45715
46386
|
access: "create"
|
|
45716
46387
|
},
|
|
45717
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
45718
|
-
capName: "pipeline-orchestrator",
|
|
45719
|
-
capScope: "system",
|
|
45720
|
-
addonId: null,
|
|
45721
|
-
access: "create"
|
|
45722
|
-
},
|
|
45723
46388
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
45724
46389
|
capName: "pipeline-orchestrator",
|
|
45725
46390
|
capScope: "system",
|
|
@@ -45756,6 +46421,12 @@ Object.freeze({
|
|
|
45756
46421
|
addonId: null,
|
|
45757
46422
|
access: "create"
|
|
45758
46423
|
},
|
|
46424
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
46425
|
+
capName: "pipeline-orchestrator",
|
|
46426
|
+
capScope: "system",
|
|
46427
|
+
addonId: null,
|
|
46428
|
+
access: "create"
|
|
46429
|
+
},
|
|
45759
46430
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
45760
46431
|
capName: "pipeline-orchestrator",
|
|
45761
46432
|
capScope: "system",
|
|
@@ -45774,25 +46445,37 @@ Object.freeze({
|
|
|
45774
46445
|
addonId: null,
|
|
45775
46446
|
access: "create"
|
|
45776
46447
|
},
|
|
46448
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
46449
|
+
capName: "pipeline-orchestrator",
|
|
46450
|
+
capScope: "system",
|
|
46451
|
+
addonId: null,
|
|
46452
|
+
access: "create"
|
|
46453
|
+
},
|
|
45777
46454
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
45778
46455
|
capName: "pipeline-orchestrator",
|
|
45779
46456
|
capScope: "system",
|
|
45780
46457
|
addonId: null,
|
|
45781
46458
|
access: "create"
|
|
45782
46459
|
},
|
|
45783
|
-
"pipelineOrchestrator.
|
|
46460
|
+
"pipelineOrchestrator.setShareSource": {
|
|
45784
46461
|
capName: "pipeline-orchestrator",
|
|
45785
46462
|
capScope: "system",
|
|
45786
46463
|
addonId: null,
|
|
45787
46464
|
access: "create"
|
|
45788
46465
|
},
|
|
45789
|
-
"pipelineOrchestrator.
|
|
46466
|
+
"pipelineOrchestrator.suggestShares": {
|
|
46467
|
+
capName: "pipeline-orchestrator",
|
|
46468
|
+
capScope: "system",
|
|
46469
|
+
addonId: null,
|
|
46470
|
+
access: "view"
|
|
46471
|
+
},
|
|
46472
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
45790
46473
|
capName: "pipeline-orchestrator",
|
|
45791
46474
|
capScope: "system",
|
|
45792
46475
|
addonId: null,
|
|
45793
46476
|
access: "create"
|
|
45794
46477
|
},
|
|
45795
|
-
"pipelineOrchestrator.
|
|
46478
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
45796
46479
|
capName: "pipeline-orchestrator",
|
|
45797
46480
|
capScope: "system",
|
|
45798
46481
|
addonId: null,
|
|
@@ -47232,12 +47915,6 @@ Object.freeze({
|
|
|
47232
47915
|
addonId: null,
|
|
47233
47916
|
access: "view"
|
|
47234
47917
|
},
|
|
47235
|
-
"streamBroker.pullFrameHandles": {
|
|
47236
|
-
capName: "stream-broker",
|
|
47237
|
-
capScope: "system",
|
|
47238
|
-
addonId: null,
|
|
47239
|
-
access: "view"
|
|
47240
|
-
},
|
|
47241
47918
|
"streamBroker.regenerateRtspToken": {
|
|
47242
47919
|
capName: "stream-broker",
|
|
47243
47920
|
capScope: "system",
|
|
@@ -47304,12 +47981,6 @@ Object.freeze({
|
|
|
47304
47981
|
addonId: null,
|
|
47305
47982
|
access: "create"
|
|
47306
47983
|
},
|
|
47307
|
-
"streamBroker.subscribeFrames": {
|
|
47308
|
-
capName: "stream-broker",
|
|
47309
|
-
capScope: "system",
|
|
47310
|
-
addonId: null,
|
|
47311
|
-
access: "create"
|
|
47312
|
-
},
|
|
47313
47984
|
"streamBroker.unassignProfile": {
|
|
47314
47985
|
capName: "stream-broker",
|
|
47315
47986
|
capScope: "system",
|
|
@@ -47322,12 +47993,6 @@ Object.freeze({
|
|
|
47322
47993
|
addonId: null,
|
|
47323
47994
|
access: "create"
|
|
47324
47995
|
},
|
|
47325
|
-
"streamBroker.unsubscribeFrames": {
|
|
47326
|
-
capName: "stream-broker",
|
|
47327
|
-
capScope: "system",
|
|
47328
|
-
addonId: null,
|
|
47329
|
-
access: "create"
|
|
47330
|
-
},
|
|
47331
47996
|
"streamCatalog.getCatalog": {
|
|
47332
47997
|
capName: "stream-catalog",
|
|
47333
47998
|
capScope: "device",
|
|
@@ -47622,18 +48287,36 @@ Object.freeze({
|
|
|
47622
48287
|
addonId: null,
|
|
47623
48288
|
access: "delete"
|
|
47624
48289
|
},
|
|
48290
|
+
"userManagement.findUserByExternalIdentity": {
|
|
48291
|
+
capName: "user-management",
|
|
48292
|
+
capScope: "system",
|
|
48293
|
+
addonId: null,
|
|
48294
|
+
access: "view"
|
|
48295
|
+
},
|
|
47625
48296
|
"userManagement.getTotpStatus": {
|
|
47626
48297
|
capName: "user-management",
|
|
47627
48298
|
capScope: "system",
|
|
47628
48299
|
addonId: null,
|
|
47629
48300
|
access: "view"
|
|
47630
48301
|
},
|
|
48302
|
+
"userManagement.linkExternalIdentity": {
|
|
48303
|
+
capName: "user-management",
|
|
48304
|
+
capScope: "system",
|
|
48305
|
+
addonId: null,
|
|
48306
|
+
access: "create"
|
|
48307
|
+
},
|
|
47631
48308
|
"userManagement.listApiKeys": {
|
|
47632
48309
|
capName: "user-management",
|
|
47633
48310
|
capScope: "system",
|
|
47634
48311
|
addonId: null,
|
|
47635
48312
|
access: "view"
|
|
47636
48313
|
},
|
|
48314
|
+
"userManagement.listExternalIdentities": {
|
|
48315
|
+
capName: "user-management",
|
|
48316
|
+
capScope: "system",
|
|
48317
|
+
addonId: null,
|
|
48318
|
+
access: "view"
|
|
48319
|
+
},
|
|
47637
48320
|
"userManagement.listOauthSessions": {
|
|
47638
48321
|
capName: "user-management",
|
|
47639
48322
|
capScope: "system",
|
|
@@ -47712,6 +48395,12 @@ Object.freeze({
|
|
|
47712
48395
|
addonId: null,
|
|
47713
48396
|
access: "create"
|
|
47714
48397
|
},
|
|
48398
|
+
"userManagement.unlinkExternalIdentity": {
|
|
48399
|
+
capName: "user-management",
|
|
48400
|
+
capScope: "system",
|
|
48401
|
+
addonId: null,
|
|
48402
|
+
access: "delete"
|
|
48403
|
+
},
|
|
47715
48404
|
"userManagement.updateUser": {
|
|
47716
48405
|
capName: "user-management",
|
|
47717
48406
|
capScope: "system",
|
|
@@ -48024,6 +48713,12 @@ Object.freeze({
|
|
|
48024
48713
|
addonId: null,
|
|
48025
48714
|
access: "create"
|
|
48026
48715
|
},
|
|
48716
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
48717
|
+
capName: "webrtc-session",
|
|
48718
|
+
capScope: "device",
|
|
48719
|
+
addonId: null,
|
|
48720
|
+
access: "create"
|
|
48721
|
+
},
|
|
48027
48722
|
"webrtcSession.closeSession": {
|
|
48028
48723
|
capName: "webrtc-session",
|
|
48029
48724
|
capScope: "device",
|
|
@@ -49901,11 +50596,6 @@ Object.freeze({
|
|
|
49901
50596
|
form: "single",
|
|
49902
50597
|
optional: false
|
|
49903
50598
|
}],
|
|
49904
|
-
"decoder.createSession": [{
|
|
49905
|
-
name: "deviceId",
|
|
49906
|
-
form: "single",
|
|
49907
|
-
optional: true
|
|
49908
|
-
}],
|
|
49909
50599
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
49910
50600
|
name: "deviceId",
|
|
49911
50601
|
form: "single",
|
|
@@ -51116,6 +51806,11 @@ Object.freeze({
|
|
|
51116
51806
|
form: "single",
|
|
51117
51807
|
optional: false
|
|
51118
51808
|
}],
|
|
51809
|
+
"pipelineAnalytics.setRetrainFrameComplete": [{
|
|
51810
|
+
name: "deviceId",
|
|
51811
|
+
form: "single",
|
|
51812
|
+
optional: false
|
|
51813
|
+
}],
|
|
51119
51814
|
"pipelineAnalytics.setTrackFlags": [{
|
|
51120
51815
|
name: "deviceId",
|
|
51121
51816
|
form: "single",
|
|
@@ -51136,6 +51831,11 @@ Object.freeze({
|
|
|
51136
51831
|
form: "single",
|
|
51137
51832
|
optional: false
|
|
51138
51833
|
}],
|
|
51834
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
51835
|
+
name: "deviceIds",
|
|
51836
|
+
form: "array",
|
|
51837
|
+
optional: true
|
|
51838
|
+
}],
|
|
51139
51839
|
"pipelineExecutor.runPipeline": [{
|
|
51140
51840
|
name: "deviceId",
|
|
51141
51841
|
form: "single",
|
|
@@ -51241,6 +51941,11 @@ Object.freeze({
|
|
|
51241
51941
|
form: "single",
|
|
51242
51942
|
optional: false
|
|
51243
51943
|
}],
|
|
51944
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
51945
|
+
name: "deviceId",
|
|
51946
|
+
form: "single",
|
|
51947
|
+
optional: false
|
|
51948
|
+
}],
|
|
51244
51949
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
51245
51950
|
name: "deviceId",
|
|
51246
51951
|
form: "single",
|
|
@@ -52012,6 +52717,11 @@ Object.freeze({
|
|
|
52012
52717
|
form: "single",
|
|
52013
52718
|
optional: false
|
|
52014
52719
|
}],
|
|
52720
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
52721
|
+
name: "deviceId",
|
|
52722
|
+
form: "single",
|
|
52723
|
+
optional: false
|
|
52724
|
+
}],
|
|
52015
52725
|
"webrtcSession.closeSession": [{
|
|
52016
52726
|
name: "deviceId",
|
|
52017
52727
|
form: "single",
|
|
@@ -52241,6 +52951,8 @@ new Map(Object.entries({
|
|
|
52241
52951
|
"detection-blind": "device-events",
|
|
52242
52952
|
"node-online": "system",
|
|
52243
52953
|
"node-offline": "system",
|
|
52954
|
+
"node-restarting": "system",
|
|
52955
|
+
"node-updating": "system",
|
|
52244
52956
|
"node-inference-unavailable": "system",
|
|
52245
52957
|
"addon-crash-loop": "system",
|
|
52246
52958
|
"addon-update-available": "system",
|
|
@@ -52318,18 +53030,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52318
53030
|
kinds: [
|
|
52319
53031
|
"node-offline",
|
|
52320
53032
|
"node-online",
|
|
53033
|
+
"node-restarting",
|
|
52321
53034
|
"node-inference-unavailable"
|
|
52322
53035
|
]
|
|
52323
53036
|
},
|
|
52324
53037
|
{
|
|
52325
53038
|
id: "addons",
|
|
52326
53039
|
family: "system",
|
|
52327
|
-
label: "Addons",
|
|
52328
|
-
kinds: [
|
|
52329
|
-
|
|
52330
|
-
|
|
52331
|
-
|
|
52332
|
-
|
|
53040
|
+
label: "Addons stopped",
|
|
53041
|
+
kinds: ["addon-crash-loop"]
|
|
53042
|
+
},
|
|
53043
|
+
{
|
|
53044
|
+
id: "addon-updates",
|
|
53045
|
+
family: "system",
|
|
53046
|
+
label: "Addon updates",
|
|
53047
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52333
53048
|
},
|
|
52334
53049
|
{
|
|
52335
53050
|
id: "updates",
|
|
@@ -52337,6 +53052,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52337
53052
|
label: "Server & container updates",
|
|
52338
53053
|
kinds: [
|
|
52339
53054
|
"server-update-available",
|
|
53055
|
+
"node-updating",
|
|
52340
53056
|
"server-updated",
|
|
52341
53057
|
"wrapper-update-available"
|
|
52342
53058
|
]
|
|
@@ -52484,18 +53200,21 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52484
53200
|
kinds: [
|
|
52485
53201
|
"node-offline",
|
|
52486
53202
|
"node-online",
|
|
53203
|
+
"node-restarting",
|
|
52487
53204
|
"node-inference-unavailable"
|
|
52488
53205
|
]
|
|
52489
53206
|
},
|
|
52490
53207
|
{
|
|
52491
53208
|
name: "summaryAddons",
|
|
52492
|
-
label: "Summary: addons",
|
|
52493
|
-
example: "
|
|
52494
|
-
kinds: [
|
|
52495
|
-
|
|
52496
|
-
|
|
52497
|
-
|
|
52498
|
-
|
|
53209
|
+
label: "Summary: addons stopped",
|
|
53210
|
+
example: "hub — recorder stopped after repeated crashes",
|
|
53211
|
+
kinds: ["addon-crash-loop"]
|
|
53212
|
+
},
|
|
53213
|
+
{
|
|
53214
|
+
name: "summaryAddonUpdates",
|
|
53215
|
+
label: "Summary: addon updates",
|
|
53216
|
+
example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
|
|
53217
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52499
53218
|
},
|
|
52500
53219
|
{
|
|
52501
53220
|
name: "summaryUpdates",
|
|
@@ -52503,6 +53222,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
52503
53222
|
example: "server 1.2.377 → 1.2.378",
|
|
52504
53223
|
kinds: [
|
|
52505
53224
|
"server-update-available",
|
|
53225
|
+
"node-updating",
|
|
52506
53226
|
"server-updated",
|
|
52507
53227
|
"wrapper-update-available"
|
|
52508
53228
|
]
|
|
@@ -52535,7 +53255,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52535
53255
|
{
|
|
52536
53256
|
name: "summarySection",
|
|
52537
53257
|
label: "Summary: this section",
|
|
52538
|
-
description: "The section a per-section summary row is about
|
|
53258
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
52539
53259
|
example: "Batterie scariche",
|
|
52540
53260
|
group: "system",
|
|
52541
53261
|
families: ["rule"],
|
|
@@ -52579,6 +53299,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
52579
53299
|
[...RULE_BODY_ONLY],
|
|
52580
53300
|
[...RULE_TEXT],
|
|
52581
53301
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
53302
|
+
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
52582
53303
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
52583
53304
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
52584
53305
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
@@ -52619,6 +53340,8 @@ var STATE_SUMMARY_VARS = [
|
|
|
52619
53340
|
[...RULE_TEXT],
|
|
52620
53341
|
[...RULE_TEXT],
|
|
52621
53342
|
[...RULE_TEXT],
|
|
53343
|
+
[...RULE_TEXT],
|
|
53344
|
+
[...RULE_TEXT],
|
|
52622
53345
|
...STATE_SUMMARY_VARS
|
|
52623
53346
|
];
|
|
52624
53347
|
new Set([
|
|
@@ -53293,7 +54016,7 @@ var rtspCameraSchema = object({
|
|
|
53293
54016
|
})).min(1)).describe("Published RTSP streams"),
|
|
53294
54017
|
snapshotUrl: string().default("").describe("Snapshot URL (optional)"),
|
|
53295
54018
|
username: string().default("").describe("Username"),
|
|
53296
|
-
password: string().default("").describe("Password")
|
|
54019
|
+
password: string().default("").describe("Password").meta({ secret: true })
|
|
53297
54020
|
});
|
|
53298
54021
|
/**
|
|
53299
54022
|
* Legacy storage shape: `[{ label: 'high'|'mid'|'low', url }]`.
|