@camstack/addon-model-studio 1.1.215 → 1.1.217
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/{MotionZonesSettings-DXSyjvNy.mjs → MotionZonesSettings-B4T-Lq49.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BylU0nae.mjs → PrivacyMaskSettings-RuT2sLzN.mjs} +4 -4
- package/dist/{SceneMonitorEditor-DzSlJ6_E.mjs → SceneMonitorEditor-BnWT3tyK.mjs} +3 -3
- package/dist/_stub.js +46 -39
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BO3dLQ3f.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BPVoz67A.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DgQsf8Wc.mjs +26 -0
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-Dzfl__ZV.mjs → hostInit-zqvyamS8.mjs} +3 -3
- package/dist/model-studio.addon.js +99 -328
- package/dist/model-studio.addon.mjs +99 -328
- package/dist/{player-overlays-B4n780bX.mjs → player-overlays-BU4aAx02.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-D44B_0jH.mjs → responsive-CU7BiLwa.mjs} +1 -1
- package/dist/{scene-monitor-copy-jhFEkFsr.mjs → scene-monitor-copy-BX9UvcxQ.mjs} +1 -1
- package/dist/{square-CsSCYWAC.mjs → square-DhCedQoj.mjs} +1 -1
- package/dist/{trash-2-B7yfTgaq.mjs → trash-2-BCjCExeI.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BMJU4Yku.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-XvoS0Enz.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Ct7N7aeG.mjs +0 -26
|
@@ -393,7 +393,7 @@ function buildScryptedRegistryDescriptor(entry) {
|
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
395
|
//#endregion
|
|
396
|
-
//#region ../types/dist/event-category-
|
|
396
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
397
397
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
398
398
|
EventCategory["SystemBoot"] = "system.boot";
|
|
399
399
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -894,15 +894,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
894
894
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
895
895
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
896
896
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
897
|
-
/**
|
|
898
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
899
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
900
|
-
* `createSession`, so running sessions keep their current backend until
|
|
901
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
902
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
903
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
904
|
-
*/
|
|
905
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
906
897
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
907
898
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
908
899
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -5773,7 +5764,7 @@ var ZodIssueCode = {
|
|
|
5773
5764
|
var ZodFirstPartyTypeKind;
|
|
5774
5765
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5775
5766
|
//#endregion
|
|
5776
|
-
//#region ../types/dist/sleep-
|
|
5767
|
+
//#region ../types/dist/sleep-BNeXenvr.mjs
|
|
5777
5768
|
/**
|
|
5778
5769
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5779
5770
|
* window to float samples (D455).
|
|
@@ -7139,32 +7130,12 @@ object({
|
|
|
7139
7130
|
audioCodec: string().optional(),
|
|
7140
7131
|
metadata: record(string(), unknown()).readonly().optional()
|
|
7141
7132
|
});
|
|
7142
|
-
var EncodedPacketSchema = object({
|
|
7143
|
-
type: _enum(["video", "audio"]),
|
|
7144
|
-
data: _instanceof(Uint8Array),
|
|
7145
|
-
pts: number(),
|
|
7146
|
-
dts: number(),
|
|
7147
|
-
keyframe: boolean(),
|
|
7148
|
-
codec: string()
|
|
7149
|
-
});
|
|
7150
|
-
var DecodedFrameSchema = object({
|
|
7151
|
-
data: _instanceof(Uint8Array),
|
|
7152
|
-
width: number(),
|
|
7153
|
-
height: number(),
|
|
7154
|
-
format: _enum([
|
|
7155
|
-
"jpeg",
|
|
7156
|
-
"rgb",
|
|
7157
|
-
"bgr",
|
|
7158
|
-
"yuv420",
|
|
7159
|
-
"gray"
|
|
7160
|
-
]),
|
|
7161
|
-
timestamp: number()
|
|
7162
|
-
});
|
|
7163
7133
|
/**
|
|
7164
7134
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
7165
7135
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
7166
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
7167
|
-
*
|
|
7136
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
7137
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
7138
|
+
* over tRPC / Moleculer.
|
|
7168
7139
|
*
|
|
7169
7140
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
7170
7141
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -7190,50 +7161,6 @@ var FrameHandleSchema = object({
|
|
|
7190
7161
|
slotCount: number().int().positive()
|
|
7191
7162
|
});
|
|
7192
7163
|
/**
|
|
7193
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
7194
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
7195
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
7196
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
7197
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
7198
|
-
*/
|
|
7199
|
-
var FrameHandleFormatSchema = _enum([
|
|
7200
|
-
"rgb",
|
|
7201
|
-
"bgr",
|
|
7202
|
-
"yuv420",
|
|
7203
|
-
"gray"
|
|
7204
|
-
]);
|
|
7205
|
-
/**
|
|
7206
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
7207
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
7208
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
7209
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
7210
|
-
* they asked for with no broker-side conversion.
|
|
7211
|
-
*/
|
|
7212
|
-
var SubscribeFramesInputSchema = object({
|
|
7213
|
-
brokerId: string(),
|
|
7214
|
-
format: FrameHandleFormatSchema,
|
|
7215
|
-
/**
|
|
7216
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
7217
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
7218
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
7219
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
7220
|
-
*/
|
|
7221
|
-
maxFps: number().positive().optional(),
|
|
7222
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
7223
|
-
tag: string().optional()
|
|
7224
|
-
});
|
|
7225
|
-
/**
|
|
7226
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
7227
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
7228
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
7229
|
-
*/
|
|
7230
|
-
var SubscribeFramesResultSchema = object({
|
|
7231
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
7232
|
-
subscriptionId: string(),
|
|
7233
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
7234
|
-
maxFps: number().nonnegative()
|
|
7235
|
-
});
|
|
7236
|
-
/**
|
|
7237
7164
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
7238
7165
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
7239
7166
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -7241,8 +7168,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
7241
7168
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
7242
7169
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
7243
7170
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
7244
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
7245
|
-
*
|
|
7171
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
7172
|
+
* it.
|
|
7246
7173
|
*/
|
|
7247
7174
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
7248
7175
|
var DecodedAudioChunkSchema = object({
|
|
@@ -7260,11 +7187,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
7260
7187
|
format: AudioChunkFormatSchema.optional()
|
|
7261
7188
|
});
|
|
7262
7189
|
/**
|
|
7263
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
7264
|
-
*
|
|
7265
|
-
*
|
|
7266
|
-
*
|
|
7267
|
-
* `pullAudioChunks`.
|
|
7190
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
7191
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
7192
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
7193
|
+
* the consumer drains via `pullAudioChunks`.
|
|
7268
7194
|
*/
|
|
7269
7195
|
var SubscribeAudioChunksInputSchema = object({
|
|
7270
7196
|
brokerId: string(),
|
|
@@ -7295,9 +7221,7 @@ var BrokerStatsSchema = object({
|
|
|
7295
7221
|
"stopped"
|
|
7296
7222
|
]),
|
|
7297
7223
|
inputFps: number(),
|
|
7298
|
-
decodeFps: number(),
|
|
7299
7224
|
encodedSubscribers: number(),
|
|
7300
|
-
decodedSubscribers: number(),
|
|
7301
7225
|
uptimeMs: number(),
|
|
7302
7226
|
bitrateKbps: number(),
|
|
7303
7227
|
idrIntervalMs: number(),
|
|
@@ -7310,14 +7234,6 @@ var BrokerStatsSchema = object({
|
|
|
7310
7234
|
preBufferMs: number(),
|
|
7311
7235
|
preBufferPackets: number(),
|
|
7312
7236
|
/**
|
|
7313
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
7314
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
7315
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
7316
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
7317
|
-
* a separate cap call per broker.
|
|
7318
|
-
*/
|
|
7319
|
-
decoderNodeId: string().nullable(),
|
|
7320
|
-
/**
|
|
7321
7237
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
7322
7238
|
* when the stream has no audio track or the broker is in cold start.
|
|
7323
7239
|
* `supported = false` means the codec was detected but the local
|
|
@@ -10720,70 +10636,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
10720
10636
|
"backup"
|
|
10721
10637
|
]).optional()
|
|
10722
10638
|
});
|
|
10723
|
-
var DecoderStatsSchema = object({
|
|
10724
|
-
inputFps: number(),
|
|
10725
|
-
outputFps: number(),
|
|
10726
|
-
avgDecodeTimeMs: number(),
|
|
10727
|
-
droppedFrames: number(),
|
|
10728
|
-
/**
|
|
10729
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
10730
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
10731
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
10732
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
10733
|
-
*/
|
|
10734
|
-
lagMs: number().optional(),
|
|
10735
|
-
effectiveFps: number().optional(),
|
|
10736
|
-
adaptiveFps: number().optional()
|
|
10737
|
-
});
|
|
10738
|
-
var DecoderSessionConfigSchema = object({
|
|
10739
|
-
codec: string(),
|
|
10740
|
-
maxFps: number().default(0),
|
|
10741
|
-
outputFormat: _enum([
|
|
10742
|
-
"jpeg",
|
|
10743
|
-
"rgb",
|
|
10744
|
-
"bgr",
|
|
10745
|
-
"yuv420",
|
|
10746
|
-
"gray"
|
|
10747
|
-
]).default("jpeg"),
|
|
10748
|
-
scale: number().default(1),
|
|
10749
|
-
width: number().optional(),
|
|
10750
|
-
height: number().optional(),
|
|
10751
|
-
/**
|
|
10752
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
10753
|
-
* because the cap is generic (any caller could request decode), but
|
|
10754
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
10755
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
10756
|
-
* sendPacket errors on a single hung camera).
|
|
10757
|
-
*/
|
|
10758
|
-
deviceId: number().int().nonnegative().optional(),
|
|
10759
|
-
/**
|
|
10760
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
10761
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
10762
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
10763
|
-
* profile cleanly.
|
|
10764
|
-
*/
|
|
10765
|
-
tag: string().optional(),
|
|
10766
|
-
/**
|
|
10767
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
10768
|
-
*
|
|
10769
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
10770
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
10771
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
10772
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
10773
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
10774
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
10775
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
10776
|
-
*/
|
|
10777
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
10778
|
-
/**
|
|
10779
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
10780
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
10781
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
10782
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
10783
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
10784
|
-
*/
|
|
10785
|
-
debug: boolean().optional()
|
|
10786
|
-
});
|
|
10787
10639
|
/**
|
|
10788
10640
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
10789
10641
|
* an addon declares its channels in.
|
|
@@ -13086,13 +12938,6 @@ var BrokerRtspClientSchema = object({
|
|
|
13086
12938
|
lastRtpAt: number(),
|
|
13087
12939
|
bytesSent: number()
|
|
13088
12940
|
});
|
|
13089
|
-
var BrokerDecodedClientSchema = object({
|
|
13090
|
-
tag: string(),
|
|
13091
|
-
subscribedAt: number(),
|
|
13092
|
-
maxFps: number(),
|
|
13093
|
-
framesDelivered: number(),
|
|
13094
|
-
framesDropped: number()
|
|
13095
|
-
});
|
|
13096
12941
|
var BrokerAudioClientSchema = object({
|
|
13097
12942
|
tag: string(),
|
|
13098
12943
|
subscribedAt: number(),
|
|
@@ -13184,7 +13029,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
13184
13029
|
});
|
|
13185
13030
|
var BrokerClientsSchema = object({
|
|
13186
13031
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
13187
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
13188
13032
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
13189
13033
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
13190
13034
|
pipeClients: number(),
|
|
@@ -13553,11 +13397,7 @@ method(object({
|
|
|
13553
13397
|
auth: "admin"
|
|
13554
13398
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
13555
13399
|
brokerId: string(),
|
|
13556
|
-
channel: _enum([
|
|
13557
|
-
"rtsp",
|
|
13558
|
-
"decoded",
|
|
13559
|
-
"audio"
|
|
13560
|
-
]),
|
|
13400
|
+
channel: _enum(["rtsp", "audio"]),
|
|
13561
13401
|
handle: string()
|
|
13562
13402
|
}), object({ killed: boolean() }), {
|
|
13563
13403
|
kind: "mutation",
|
|
@@ -13592,10 +13432,7 @@ method(object({
|
|
|
13592
13432
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
13593
13433
|
subscriptionId: string(),
|
|
13594
13434
|
maxCount: number().int().positive().default(8)
|
|
13595
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
13596
|
-
subscriptionId: string(),
|
|
13597
|
-
maxCount: number().int().positive().default(4)
|
|
13598
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
13435
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
13599
13436
|
brokerId: string(),
|
|
13600
13437
|
seconds: number().min(0).max(30)
|
|
13601
13438
|
}), _void(), {
|
|
@@ -14768,54 +14605,12 @@ id: union([string(), number()]) }), {
|
|
|
14768
14605
|
kind: "mutation",
|
|
14769
14606
|
auth: "admin"
|
|
14770
14607
|
});
|
|
14771
|
-
|
|
14772
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14773
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14774
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14775
|
-
*/
|
|
14776
|
-
var ShmRingStatsSchema = object({
|
|
14777
|
-
sessionId: string(),
|
|
14778
|
-
slotCount: number().int(),
|
|
14779
|
-
slotByteLength: number().int(),
|
|
14780
|
-
segmentBytes: number().int(),
|
|
14781
|
-
budgetMb: number().int(),
|
|
14782
|
-
framesWritten: number().int(),
|
|
14783
|
-
getFrameHits: number().int(),
|
|
14784
|
-
getFrameMisses: number().int()
|
|
14785
|
-
});
|
|
14786
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14608
|
+
method(_void(), object({
|
|
14787
14609
|
id: string(),
|
|
14788
14610
|
name: string(),
|
|
14789
|
-
isPullMode: boolean().optional(),
|
|
14790
|
-
priority: number().optional(),
|
|
14791
14611
|
hwaccel: string().optional(),
|
|
14792
14612
|
probedBestHwaccel: string().optional()
|
|
14793
|
-
})), method(
|
|
14794
|
-
sessionId: string(),
|
|
14795
|
-
nodeId: string()
|
|
14796
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14797
|
-
sessionId: string(),
|
|
14798
|
-
packet: EncodedPacketSchema
|
|
14799
|
-
}), _void()), method(object({
|
|
14800
|
-
sessionId: string(),
|
|
14801
|
-
url: string()
|
|
14802
|
-
}), _void()), method(object({
|
|
14803
|
-
sessionId: string(),
|
|
14804
|
-
maxCount: number().default(1),
|
|
14805
|
-
waitMs: number().optional()
|
|
14806
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14807
|
-
sessionId: string(),
|
|
14808
|
-
maxCount: number().default(1),
|
|
14809
|
-
waitMs: number().optional()
|
|
14810
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14811
|
-
sessionId: string(),
|
|
14812
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14813
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14814
|
-
sessionId: string(),
|
|
14815
|
-
codec: string(),
|
|
14816
|
-
outputFormat: string(),
|
|
14817
|
-
createdAtMs: number()
|
|
14818
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14613
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14819
14614
|
kind: "mutation",
|
|
14820
14615
|
auth: "admin"
|
|
14821
14616
|
});
|
|
@@ -21841,8 +21636,8 @@ Object.freeze(Object.fromEntries([{
|
|
|
21841
21636
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
21842
21637
|
stepId: "face-embedding",
|
|
21843
21638
|
key: "minLandmarkFaceSize",
|
|
21844
|
-
label: "Min face size
|
|
21845
|
-
description: "
|
|
21639
|
+
label: "Min face size to embed (detection-frame px)",
|
|
21640
|
+
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.",
|
|
21846
21641
|
type: "slider",
|
|
21847
21642
|
min: 0,
|
|
21848
21643
|
max: 64,
|
|
@@ -25515,14 +25310,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
25515
25310
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
25516
25311
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
25517
25312
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
25518
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
25519
|
-
* per
|
|
25313
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
25314
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
25315
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
25316
|
+
* (D762).
|
|
25520
25317
|
*/
|
|
25521
25318
|
devices: array(object({
|
|
25522
25319
|
deviceKey: string(),
|
|
25523
25320
|
backend: string(),
|
|
25524
|
-
attachedCameras: number()
|
|
25525
|
-
queueDepthTotal: number()
|
|
25321
|
+
attachedCameras: number()
|
|
25526
25322
|
})).default([]),
|
|
25527
25323
|
/** Hardware capability flags reported by this node. */
|
|
25528
25324
|
hardware: object({
|
|
@@ -25845,7 +25641,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25845
25641
|
});
|
|
25846
25642
|
/**
|
|
25847
25643
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25848
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
25644
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
25645
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
25646
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
25647
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
25849
25648
|
*/
|
|
25850
25649
|
var AgentLoadSummarySchema = object({
|
|
25851
25650
|
nodeId: string(),
|
|
@@ -25934,8 +25733,14 @@ var CameraBrokerStatusSchema = object({
|
|
|
25934
25733
|
width: number(),
|
|
25935
25734
|
height: number(),
|
|
25936
25735
|
subscribers: number(),
|
|
25937
|
-
|
|
25938
|
-
|
|
25736
|
+
/**
|
|
25737
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
25738
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
25739
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
25740
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
25741
|
+
* camera and is not served (D758).
|
|
25742
|
+
*/
|
|
25743
|
+
inFps: number().nullable()
|
|
25939
25744
|
})).readonly(),
|
|
25940
25745
|
webrtcSessions: number(),
|
|
25941
25746
|
rtspRestream: boolean()
|
|
@@ -28621,8 +28426,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
28621
28426
|
]).nullable(),
|
|
28622
28427
|
/** Input FPS from the camera (null for adaptive). */
|
|
28623
28428
|
inputFps: number().nullable(),
|
|
28624
|
-
/** Decoded FPS (null for adaptive). */
|
|
28625
|
-
decodeFps: number().nullable(),
|
|
28626
28429
|
/** Bitrate in kbps (null for adaptive). */
|
|
28627
28430
|
bitrateKbps: number().nullable()
|
|
28628
28431
|
});
|
|
@@ -29201,6 +29004,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
29201
29004
|
var RestartAddonResultSchema = unknown();
|
|
29202
29005
|
var InstallPackageResultSchema = unknown();
|
|
29203
29006
|
var ReloadPackagesResultSchema = unknown();
|
|
29007
|
+
/**
|
|
29008
|
+
* What an uninstall did on ONE node.
|
|
29009
|
+
* - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
|
|
29010
|
+
* - `not-installed` — the node did not have it (nothing to do).
|
|
29011
|
+
* - `refused` — protected / bootstrap package; nothing touched.
|
|
29012
|
+
* - `failed` — attempted and did not complete; `error` says why.
|
|
29013
|
+
* - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
|
|
29014
|
+
* back-fill never returns the package, and the stale-addon sweep removes the
|
|
29015
|
+
* copy when the node registers again (only once the hub no longer has it).
|
|
29016
|
+
*/
|
|
29017
|
+
var UninstallNodeOutcomeSchema = _enum([
|
|
29018
|
+
"uninstalled",
|
|
29019
|
+
"not-installed",
|
|
29020
|
+
"refused",
|
|
29021
|
+
"failed",
|
|
29022
|
+
"pending-reconnect"
|
|
29023
|
+
]);
|
|
29024
|
+
var UninstallNodeResultSchema = object({
|
|
29025
|
+
nodeId: string(),
|
|
29026
|
+
outcome: UninstallNodeOutcomeSchema,
|
|
29027
|
+
error: string().optional(),
|
|
29028
|
+
addonIds: array(string()).readonly(),
|
|
29029
|
+
runnersStopped: array(string()).readonly(),
|
|
29030
|
+
warnings: array(string()).readonly()
|
|
29031
|
+
});
|
|
29032
|
+
var UninstallPackageResultSchema = object({
|
|
29033
|
+
/** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
|
|
29034
|
+
success: boolean(),
|
|
29035
|
+
packageName: string(),
|
|
29036
|
+
results: array(UninstallNodeResultSchema).readonly()
|
|
29037
|
+
});
|
|
29038
|
+
/**
|
|
29039
|
+
* `unreachable` lists online agents whose status read FAILED — absence from
|
|
29040
|
+
* `installations` is only "not installed" for a node that answered (D315).
|
|
29041
|
+
*/
|
|
29042
|
+
var PackageInstallationsSchema = object({
|
|
29043
|
+
installations: array(object({
|
|
29044
|
+
packageName: string(),
|
|
29045
|
+
nodeId: string(),
|
|
29046
|
+
nodeName: string(),
|
|
29047
|
+
isHub: boolean(),
|
|
29048
|
+
isOnline: boolean(),
|
|
29049
|
+
version: string().nullable(),
|
|
29050
|
+
addonIds: array(string()).readonly(),
|
|
29051
|
+
source: _enum(["live", "recorded"]),
|
|
29052
|
+
/** The hub installs this package too. `false` on an agent row = an orphan. */
|
|
29053
|
+
onHub: boolean()
|
|
29054
|
+
})).readonly(),
|
|
29055
|
+
unreachable: array(object({
|
|
29056
|
+
nodeId: string(),
|
|
29057
|
+
error: string()
|
|
29058
|
+
})).readonly()
|
|
29059
|
+
});
|
|
29204
29060
|
var BulkUpdateItemStatusSchema = _enum([
|
|
29205
29061
|
"queued",
|
|
29206
29062
|
"updating",
|
|
@@ -29283,10 +29139,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
29283
29139
|
}), method(object({ packageName: string() }), InstallPackageResultSchema, {
|
|
29284
29140
|
kind: "mutation",
|
|
29285
29141
|
auth: "admin"
|
|
29286
|
-
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
29142
|
+
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
29143
|
+
packageName: string().min(1),
|
|
29144
|
+
nodeId: string().optional(),
|
|
29145
|
+
everywhere: boolean().optional()
|
|
29146
|
+
}), UninstallPackageResultSchema, {
|
|
29287
29147
|
kind: "mutation",
|
|
29288
29148
|
auth: "admin"
|
|
29289
|
-
}), method(_void(), ReloadPackagesResultSchema, {
|
|
29149
|
+
}), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
|
|
29290
29150
|
kind: "mutation",
|
|
29291
29151
|
auth: "admin"
|
|
29292
29152
|
}), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
|
|
@@ -37673,6 +37533,12 @@ Object.freeze({
|
|
|
37673
37533
|
addonId: null,
|
|
37674
37534
|
access: "view"
|
|
37675
37535
|
},
|
|
37536
|
+
"addons.listInstallations": {
|
|
37537
|
+
capName: "addons",
|
|
37538
|
+
capScope: "system",
|
|
37539
|
+
addonId: null,
|
|
37540
|
+
access: "view"
|
|
37541
|
+
},
|
|
37676
37542
|
"addons.listJobs": {
|
|
37677
37543
|
capName: "addons",
|
|
37678
37544
|
capScope: "system",
|
|
@@ -38855,90 +38721,18 @@ Object.freeze({
|
|
|
38855
38721
|
addonId: null,
|
|
38856
38722
|
access: "create"
|
|
38857
38723
|
},
|
|
38858
|
-
"decoder.createSession": {
|
|
38859
|
-
capName: "decoder",
|
|
38860
|
-
capScope: "system",
|
|
38861
|
-
addonId: null,
|
|
38862
|
-
access: "view"
|
|
38863
|
-
},
|
|
38864
|
-
"decoder.destroySession": {
|
|
38865
|
-
capName: "decoder",
|
|
38866
|
-
capScope: "system",
|
|
38867
|
-
addonId: null,
|
|
38868
|
-
access: "delete"
|
|
38869
|
-
},
|
|
38870
|
-
"decoder.getFrame": {
|
|
38871
|
-
capName: "decoder",
|
|
38872
|
-
capScope: "system",
|
|
38873
|
-
addonId: null,
|
|
38874
|
-
access: "view"
|
|
38875
|
-
},
|
|
38876
38724
|
"decoder.getInfo": {
|
|
38877
38725
|
capName: "decoder",
|
|
38878
38726
|
capScope: "system",
|
|
38879
38727
|
addonId: null,
|
|
38880
38728
|
access: "view"
|
|
38881
38729
|
},
|
|
38882
|
-
"decoder.getShmStats": {
|
|
38883
|
-
capName: "decoder",
|
|
38884
|
-
capScope: "system",
|
|
38885
|
-
addonId: null,
|
|
38886
|
-
access: "view"
|
|
38887
|
-
},
|
|
38888
|
-
"decoder.getStats": {
|
|
38889
|
-
capName: "decoder",
|
|
38890
|
-
capScope: "system",
|
|
38891
|
-
addonId: null,
|
|
38892
|
-
access: "view"
|
|
38893
|
-
},
|
|
38894
|
-
"decoder.listActiveSessions": {
|
|
38895
|
-
capName: "decoder",
|
|
38896
|
-
capScope: "system",
|
|
38897
|
-
addonId: null,
|
|
38898
|
-
access: "view"
|
|
38899
|
-
},
|
|
38900
|
-
"decoder.openStream": {
|
|
38901
|
-
capName: "decoder",
|
|
38902
|
-
capScope: "system",
|
|
38903
|
-
addonId: null,
|
|
38904
|
-
access: "view"
|
|
38905
|
-
},
|
|
38906
|
-
"decoder.pullFrames": {
|
|
38907
|
-
capName: "decoder",
|
|
38908
|
-
capScope: "system",
|
|
38909
|
-
addonId: null,
|
|
38910
|
-
access: "view"
|
|
38911
|
-
},
|
|
38912
|
-
"decoder.pullHandles": {
|
|
38913
|
-
capName: "decoder",
|
|
38914
|
-
capScope: "system",
|
|
38915
|
-
addonId: null,
|
|
38916
|
-
access: "view"
|
|
38917
|
-
},
|
|
38918
|
-
"decoder.pushPacket": {
|
|
38919
|
-
capName: "decoder",
|
|
38920
|
-
capScope: "system",
|
|
38921
|
-
addonId: null,
|
|
38922
|
-
access: "view"
|
|
38923
|
-
},
|
|
38924
38730
|
"decoder.reprobeHwaccel": {
|
|
38925
38731
|
capName: "decoder",
|
|
38926
38732
|
capScope: "system",
|
|
38927
38733
|
addonId: null,
|
|
38928
38734
|
access: "create"
|
|
38929
38735
|
},
|
|
38930
|
-
"decoder.supportsCodec": {
|
|
38931
|
-
capName: "decoder",
|
|
38932
|
-
capScope: "system",
|
|
38933
|
-
addonId: null,
|
|
38934
|
-
access: "view"
|
|
38935
|
-
},
|
|
38936
|
-
"decoder.updateConfig": {
|
|
38937
|
-
capName: "decoder",
|
|
38938
|
-
capScope: "system",
|
|
38939
|
-
addonId: null,
|
|
38940
|
-
access: "view"
|
|
38941
|
-
},
|
|
38942
38736
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
38943
38737
|
capName: "detection-pipeline",
|
|
38944
38738
|
capScope: "device",
|
|
@@ -43985,12 +43779,6 @@ Object.freeze({
|
|
|
43985
43779
|
addonId: null,
|
|
43986
43780
|
access: "view"
|
|
43987
43781
|
},
|
|
43988
|
-
"streamBroker.pullFrameHandles": {
|
|
43989
|
-
capName: "stream-broker",
|
|
43990
|
-
capScope: "system",
|
|
43991
|
-
addonId: null,
|
|
43992
|
-
access: "view"
|
|
43993
|
-
},
|
|
43994
43782
|
"streamBroker.regenerateRtspToken": {
|
|
43995
43783
|
capName: "stream-broker",
|
|
43996
43784
|
capScope: "system",
|
|
@@ -44057,12 +43845,6 @@ Object.freeze({
|
|
|
44057
43845
|
addonId: null,
|
|
44058
43846
|
access: "create"
|
|
44059
43847
|
},
|
|
44060
|
-
"streamBroker.subscribeFrames": {
|
|
44061
|
-
capName: "stream-broker",
|
|
44062
|
-
capScope: "system",
|
|
44063
|
-
addonId: null,
|
|
44064
|
-
access: "create"
|
|
44065
|
-
},
|
|
44066
43848
|
"streamBroker.unassignProfile": {
|
|
44067
43849
|
capName: "stream-broker",
|
|
44068
43850
|
capScope: "system",
|
|
@@ -44075,12 +43857,6 @@ Object.freeze({
|
|
|
44075
43857
|
addonId: null,
|
|
44076
43858
|
access: "create"
|
|
44077
43859
|
},
|
|
44078
|
-
"streamBroker.unsubscribeFrames": {
|
|
44079
|
-
capName: "stream-broker",
|
|
44080
|
-
capScope: "system",
|
|
44081
|
-
addonId: null,
|
|
44082
|
-
access: "create"
|
|
44083
|
-
},
|
|
44084
43860
|
"streamCatalog.getCatalog": {
|
|
44085
43861
|
capName: "stream-catalog",
|
|
44086
43862
|
capScope: "device",
|
|
@@ -46594,11 +46370,6 @@ Object.freeze({
|
|
|
46594
46370
|
form: "single",
|
|
46595
46371
|
optional: false
|
|
46596
46372
|
}],
|
|
46597
|
-
"decoder.createSession": [{
|
|
46598
|
-
name: "deviceId",
|
|
46599
|
-
form: "single",
|
|
46600
|
-
optional: true
|
|
46601
|
-
}],
|
|
46602
46373
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
46603
46374
|
name: "deviceId",
|
|
46604
46375
|
form: "single",
|