@camstack/types 1.2.322 → 1.2.323

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.
Files changed (38) hide show
  1. package/dist/addon.js +3 -14
  2. package/dist/addon.mjs +3 -14
  3. package/dist/capabilities/decoder.cap.d.ts +0 -211
  4. package/dist/capabilities/index.d.ts +6 -6
  5. package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
  6. package/dist/capabilities/llm.cap.d.ts +4 -4
  7. package/dist/capabilities/local-network.cap.d.ts +11 -11
  8. package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
  9. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +9 -13
  10. package/dist/capabilities/pipeline-runner.cap.d.ts +0 -2
  11. package/dist/capabilities/schemas/streaming-shared.d.ts +9 -79
  12. package/dist/capabilities/stream-broker.cap.d.ts +0 -85
  13. package/dist/capabilities/webrtc-session.cap.d.ts +0 -2
  14. package/dist/client.js +2 -80
  15. package/dist/client.mjs +2 -80
  16. package/dist/enums/event-category.d.ts +0 -9
  17. package/dist/enums.js +1 -1
  18. package/dist/enums.mjs +1 -1
  19. package/dist/{event-category-BGmz_oxW.mjs → event-category-B_0XEcLF.mjs} +0 -9
  20. package/dist/{event-category-DmS_tLsU.js → event-category-CtBAl88K.js} +0 -9
  21. package/dist/ffmpeg/hwaccel.d.ts +1 -1
  22. package/dist/generated/addon-api.d.ts +0 -105
  23. package/dist/generated/cap-input-defaults.d.ts +1 -1
  24. package/dist/generated/method-access-map.d.ts +1 -1
  25. package/dist/generated/method-device-selectors.d.ts +2 -2
  26. package/dist/generated/system-proxy.d.ts +2 -2
  27. package/dist/index.d.ts +0 -1
  28. package/dist/index.js +22 -291
  29. package/dist/index.mjs +23 -283
  30. package/dist/interfaces/api-responses.d.ts +0 -19
  31. package/dist/interfaces/capability.d.ts +1 -2
  32. package/dist/interfaces/event-bus.d.ts +0 -13
  33. package/dist/interfaces/pipeline-runner-capability.d.ts +0 -1
  34. package/dist/interfaces/stream-broker.d.ts +2 -67
  35. package/dist/{sleep-DAJ9Er57.mjs → sleep-BNeXenvr.mjs} +11 -86
  36. package/dist/{sleep-AalHiRYL.js → sleep-DPar9AHl.js} +10 -115
  37. package/package.json +1 -1
  38. package/dist/interfaces/decoder.d.ts +0 -89
package/dist/addon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-AalHiRYL.js");
3
- const require_event_category = require("./event-category-DmS_tLsU.js");
2
+ const require_sleep = require("./sleep-DPar9AHl.js");
3
+ const require_event_category = require("./event-category-CtBAl88K.js");
4
4
  const require_err_msg = require("./err-msg-Dx2Kor0g.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
@@ -16,7 +16,7 @@ const require_err_msg = require("./err-msg-Dx2Kor0g.js");
16
16
  * Plain data, zero Zod: a forked runner must not import the schema barrel
17
17
  * (~144MB RSS per runner — D28).
18
18
  *
19
- * Coverage: 25 caps, 63 methods with defaults.
19
+ * Coverage: 24 caps, 59 methods with defaults.
20
20
  */
21
21
  var CAP_INPUT_DEFAULTS = Object.freeze({
22
22
  "addons": { "getLogs": { "limit": 100 } },
@@ -35,16 +35,6 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
35
35
  "pullPcm": { "maxCount": 8 }
36
36
  },
37
37
  "battery": { "wakeForStream": { "timeoutMs": 8e3 } },
38
- "decoder": {
39
- "createSession": {
40
- "maxFps": 0,
41
- "outputFormat": "jpeg",
42
- "scale": 1,
43
- "frameSink": "callback"
44
- },
45
- "pullFrames": { "maxCount": 1 },
46
- "pullHandles": { "maxCount": 1 }
47
- },
48
38
  "device-adoption": { "listCandidates": {
49
39
  "page": 1,
50
40
  "pageSize": 50
@@ -232,7 +222,6 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
232
222
  "speed": 4
233
223
  },
234
224
  "pullAudioChunks": { "maxCount": 8 },
235
- "pullFrameHandles": { "maxCount": 4 },
236
225
  "renderPreBufferClip": {
237
226
  "preRollSec": 3,
238
227
  "postRollSec": 5,
package/dist/addon.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { At as normalizeAddonInitResult, B as nodePin, Ct as PEER_BYTES_STALL_MS, D as adminUiCapability, Et as DATAPLANE_SECRET_HEADER, N as expandCapMethods, Ot as DisposerChain, Pt as emitReadiness, S as DEVICE_CHILDREN_BATCH_MAX, St as PEER_BYTES_MAX_OUTSTANDING, T as describeCustomActions, U as ReadinessRegistry, V as readNodePin, W as ReadinessTimeoutError, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, h as createEventBusSliceSource, kt as BaseAddon, m as createDeviceProxy, p as isDeviceScopedCap, q as scopeKey, s as asString, t as sleep, u as parseJsonUnknown, wt as PEER_BYTES_TICKET_TTL_MS, x as viewerUiCapability, xt as PEER_BYTES_CHUNK_BYTES } from "./sleep-DAJ9Er57.mjs";
2
- import { t as EventCategory } from "./event-category-BGmz_oxW.mjs";
1
+ import { B as nodePin, Ct as DisposerChain, D as adminUiCapability, N as expandCapMethods, S as DEVICE_CHILDREN_BATCH_MAX, T as describeCustomActions, Tt as normalizeAddonInitResult, U as ReadinessRegistry, V as readNodePin, W as ReadinessTimeoutError, _t as PEER_BYTES_MAX_OUTSTANDING, a as asJsonObject, b as deviceOpsCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as PEER_BYTES_CHUNK_BYTES, h as createEventBusSliceSource, kt as emitReadiness, m as createDeviceProxy, p as isDeviceScopedCap, q as scopeKey, s as asString, t as sleep, u as parseJsonUnknown, vt as PEER_BYTES_STALL_MS, wt as BaseAddon, x as viewerUiCapability, xt as DATAPLANE_SECRET_HEADER, yt as PEER_BYTES_TICKET_TTL_MS } from "./sleep-BNeXenvr.mjs";
2
+ import { t as EventCategory } from "./event-category-B_0XEcLF.mjs";
3
3
  import { a as DeviceType, t as errMsg } from "./err-msg-DX6i_MY4.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
@@ -15,7 +15,7 @@ import { a as DeviceType, t as errMsg } from "./err-msg-DX6i_MY4.mjs";
15
15
  * Plain data, zero Zod: a forked runner must not import the schema barrel
16
16
  * (~144MB RSS per runner — D28).
17
17
  *
18
- * Coverage: 25 caps, 63 methods with defaults.
18
+ * Coverage: 24 caps, 59 methods with defaults.
19
19
  */
20
20
  var CAP_INPUT_DEFAULTS = Object.freeze({
21
21
  "addons": { "getLogs": { "limit": 100 } },
@@ -34,16 +34,6 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
34
34
  "pullPcm": { "maxCount": 8 }
35
35
  },
36
36
  "battery": { "wakeForStream": { "timeoutMs": 8e3 } },
37
- "decoder": {
38
- "createSession": {
39
- "maxFps": 0,
40
- "outputFormat": "jpeg",
41
- "scale": 1,
42
- "frameSink": "callback"
43
- },
44
- "pullFrames": { "maxCount": 1 },
45
- "pullHandles": { "maxCount": 1 }
46
- },
47
37
  "device-adoption": { "listCandidates": {
48
38
  "page": 1,
49
39
  "pageSize": 50
@@ -231,7 +221,6 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
231
221
  "speed": 4
232
222
  },
233
223
  "pullAudioChunks": { "maxCount": 8 },
234
- "pullFrameHandles": { "maxCount": 4 },
235
224
  "renderPreBufferClip": {
236
225
  "preRollSec": 3,
237
226
  "postRollSec": 5,
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { type InferProvider } from './capability-definition.js';
3
3
  import type { HwAccelBackend } from '../interfaces/addon.js';
4
- import { DecoderSessionConfigSchema } from '../interfaces/stream-broker.js';
5
4
  /**
6
5
  * Operator-facing hwaccel selection — wins over `probedBestHwaccel`
7
6
  * when concrete; `'auto'` defers to the session's local resolver
@@ -30,209 +29,18 @@ export interface DecoderHwAccelConfig {
30
29
  readonly probedBestHwaccel: string;
31
30
  }
32
31
  export declare const DEFAULT_DECODER_HWACCEL_CONFIG: DecoderHwAccelConfig;
33
- /**
34
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
35
- * exposed via `decoder.getShmStats` so downstream consumers can
36
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
37
- */
38
- export declare const ShmRingStatsSchema: z.ZodObject<{
39
- sessionId: z.ZodString;
40
- slotCount: z.ZodNumber;
41
- slotByteLength: z.ZodNumber;
42
- segmentBytes: z.ZodNumber;
43
- budgetMb: z.ZodNumber;
44
- framesWritten: z.ZodNumber;
45
- getFrameHits: z.ZodNumber;
46
- getFrameMisses: z.ZodNumber;
47
- }, z.core.$strip>;
48
- /** shm ring usage stats payload — see {@link ShmRingStatsSchema}. */
49
- export type ShmRingStats = z.infer<typeof ShmRingStatsSchema>;
50
32
  export declare const decoderCapability: {
51
33
  readonly name: "decoder";
52
34
  readonly scope: "system";
53
35
  readonly mode: "singleton";
54
36
  readonly preferredProvider: "decoder-nodeav";
55
37
  readonly methods: {
56
- readonly supportsCodec: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
57
- codec: z.ZodString;
58
- }, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
59
38
  readonly getInfo: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
60
39
  id: z.ZodString;
61
40
  name: z.ZodString;
62
- isPullMode: z.ZodOptional<z.ZodBoolean>;
63
- priority: z.ZodOptional<z.ZodNumber>;
64
41
  hwaccel: z.ZodOptional<z.ZodString>;
65
42
  probedBestHwaccel: z.ZodOptional<z.ZodString>;
66
43
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
67
- readonly createSession: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
68
- codec: z.ZodString;
69
- maxFps: z.ZodDefault<z.ZodNumber>;
70
- outputFormat: z.ZodDefault<z.ZodEnum<{
71
- jpeg: "jpeg";
72
- rgb: "rgb";
73
- bgr: "bgr";
74
- yuv420: "yuv420";
75
- gray: "gray";
76
- }>>;
77
- scale: z.ZodDefault<z.ZodNumber>;
78
- width: z.ZodOptional<z.ZodNumber>;
79
- height: z.ZodOptional<z.ZodNumber>;
80
- deviceId: z.ZodOptional<z.ZodNumber>;
81
- tag: z.ZodOptional<z.ZodString>;
82
- frameSink: z.ZodDefault<z.ZodEnum<{
83
- callback: "callback";
84
- shm: "shm";
85
- }>>;
86
- debug: z.ZodOptional<z.ZodBoolean>;
87
- }, z.core.$strip>, z.ZodObject<{
88
- sessionId: z.ZodString;
89
- nodeId: z.ZodString;
90
- }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
91
- readonly destroySession: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
92
- sessionId: z.ZodString;
93
- }, z.core.$strip>, z.ZodVoid, import("./capability-definition.js").CapabilityMethodKind>;
94
- readonly pushPacket: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
95
- sessionId: z.ZodString;
96
- packet: z.ZodObject<{
97
- type: z.ZodEnum<{
98
- audio: "audio";
99
- video: "video";
100
- }>;
101
- data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
102
- pts: z.ZodNumber;
103
- dts: z.ZodNumber;
104
- keyframe: z.ZodBoolean;
105
- codec: z.ZodString;
106
- }, z.core.$strip>;
107
- }, z.core.$strip>, z.ZodVoid, import("./capability-definition.js").CapabilityMethodKind>;
108
- readonly openStream: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
109
- sessionId: z.ZodString;
110
- url: z.ZodString;
111
- }, z.core.$strip>, z.ZodVoid, import("./capability-definition.js").CapabilityMethodKind>;
112
- readonly pullFrames: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
113
- sessionId: z.ZodString;
114
- maxCount: z.ZodDefault<z.ZodNumber>;
115
- waitMs: z.ZodOptional<z.ZodNumber>;
116
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
117
- data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
118
- width: z.ZodNumber;
119
- height: z.ZodNumber;
120
- format: z.ZodEnum<{
121
- jpeg: "jpeg";
122
- rgb: "rgb";
123
- bgr: "bgr";
124
- yuv420: "yuv420";
125
- gray: "gray";
126
- }>;
127
- timestamp: z.ZodNumber;
128
- }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
129
- readonly pullHandles: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
130
- sessionId: z.ZodString;
131
- maxCount: z.ZodDefault<z.ZodNumber>;
132
- waitMs: z.ZodOptional<z.ZodNumber>;
133
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
134
- shmId: z.ZodString;
135
- slot: z.ZodNumber;
136
- seq: z.ZodNumber;
137
- width: z.ZodNumber;
138
- height: z.ZodNumber;
139
- format: z.ZodEnum<{
140
- jpeg: "jpeg";
141
- rgb: "rgb";
142
- bgr: "bgr";
143
- yuv420: "yuv420";
144
- gray: "gray";
145
- }>;
146
- pts: z.ZodNumber;
147
- byteLength: z.ZodNumber;
148
- nodeId: z.ZodString;
149
- slotCount: z.ZodNumber;
150
- }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
151
- readonly getFrame: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
152
- handle: z.ZodObject<{
153
- shmId: z.ZodString;
154
- slot: z.ZodNumber;
155
- seq: z.ZodNumber;
156
- width: z.ZodNumber;
157
- height: z.ZodNumber;
158
- format: z.ZodEnum<{
159
- jpeg: "jpeg";
160
- rgb: "rgb";
161
- bgr: "bgr";
162
- yuv420: "yuv420";
163
- gray: "gray";
164
- }>;
165
- pts: z.ZodNumber;
166
- byteLength: z.ZodNumber;
167
- nodeId: z.ZodString;
168
- slotCount: z.ZodNumber;
169
- }, z.core.$strip>;
170
- }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
171
- data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
172
- width: z.ZodNumber;
173
- height: z.ZodNumber;
174
- format: z.ZodEnum<{
175
- jpeg: "jpeg";
176
- rgb: "rgb";
177
- bgr: "bgr";
178
- yuv420: "yuv420";
179
- gray: "gray";
180
- }>;
181
- timestamp: z.ZodNumber;
182
- }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
183
- readonly getShmStats: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
184
- sessionId: z.ZodString;
185
- }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
186
- sessionId: z.ZodString;
187
- slotCount: z.ZodNumber;
188
- slotByteLength: z.ZodNumber;
189
- segmentBytes: z.ZodNumber;
190
- budgetMb: z.ZodNumber;
191
- framesWritten: z.ZodNumber;
192
- getFrameHits: z.ZodNumber;
193
- getFrameMisses: z.ZodNumber;
194
- }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
195
- readonly updateConfig: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
196
- sessionId: z.ZodString;
197
- config: z.ZodObject<{
198
- codec: z.ZodOptional<z.ZodString>;
199
- maxFps: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
200
- outputFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
201
- jpeg: "jpeg";
202
- rgb: "rgb";
203
- bgr: "bgr";
204
- yuv420: "yuv420";
205
- gray: "gray";
206
- }>>>;
207
- scale: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
208
- width: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
209
- height: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
210
- deviceId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
211
- tag: z.ZodOptional<z.ZodOptional<z.ZodString>>;
212
- frameSink: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
213
- callback: "callback";
214
- shm: "shm";
215
- }>>>;
216
- debug: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
217
- }, z.core.$strip>;
218
- }, z.core.$strip>, z.ZodVoid, import("./capability-definition.js").CapabilityMethodKind>;
219
- readonly getStats: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
220
- sessionId: z.ZodString;
221
- }, z.core.$strip>, z.ZodObject<{
222
- inputFps: z.ZodNumber;
223
- outputFps: z.ZodNumber;
224
- avgDecodeTimeMs: z.ZodNumber;
225
- droppedFrames: z.ZodNumber;
226
- lagMs: z.ZodOptional<z.ZodNumber>;
227
- effectiveFps: z.ZodOptional<z.ZodNumber>;
228
- adaptiveFps: z.ZodOptional<z.ZodNumber>;
229
- }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
230
- readonly listActiveSessions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
231
- sessionId: z.ZodString;
232
- codec: z.ZodString;
233
- outputFormat: z.ZodString;
234
- createdAtMs: z.ZodNumber;
235
- }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
236
44
  /**
237
45
  * Re-run the host platform-probe for the decoder's hwaccel backend
238
46
  * and write the detected value into the addon's own global
@@ -251,22 +59,3 @@ export declare const decoderCapability: {
251
59
  };
252
60
  };
253
61
  export type IDecoderCapProvider = InferProvider<typeof decoderCapability>;
254
- /**
255
- * Pure cap-only view of the decoder provider.
256
- *
257
- * For the in-process interface with live `createSession()`, `id`, `name`,
258
- * `priority`, `isPullMode` fields, consumers should import
259
- * `IDecoderProvider` from `@camstack/types/interfaces/decoder` — that
260
- * remains the canonical in-process contract the broker + tests depend
261
- * on. The live `createSession()` + session object cannot cross process
262
- * boundaries and will need a session-id based cap API (Phase 4, decoder
263
- * forkable work) — tracked separately, not in scope for session 5
264
- * Sprint A.
265
- *
266
- * Prior to session 5 this alias used to extend the inferred cap type
267
- * with the live fields, creating a hybrid interface. No consumer ever
268
- * referenced `IDecoderProviderV2` — the broker, tests, and addon
269
- * implementations all imported `IDecoderProvider` directly. The
270
- * extension was therefore dead code and is removed here.
271
- */
272
- export { DecoderSessionConfigSchema };
@@ -45,8 +45,8 @@ export type { CustomModelDescriptor, ICustomModelRegistryProvider, } from './cus
45
45
  export { CustomModelDescriptorSchema, customModelRegistryCapability, } from './custom-model-registry.cap.js';
46
46
  export { type DataStoreEngineInfo, dataStoreProviderCapability, EngineInfoSchema as DataStoreEngineInfoSchema, type IDataStoreProvider, } from './data-store-provider.cap.js';
47
47
  export { type ArchiveSqliteSnapshot, ArchiveSqliteSnapshotSchema, DATABASE_SNAPSHOT_PARTIAL_SUFFIX, DATABASE_SNAPSHOT_SUFFIX, DATABASE_SNAPSHOT_TIMEOUT_MS, type DatabaseSnapshotResult, DatabaseSnapshotResultSchema, type DatabaseSnapshotTable, DatabaseSnapshotTableSchema, type DatabaseSnapshotTargets, DatabaseSnapshotTargetsSchema, databaseSnapshotCapability, type IDatabaseSnapshotProvider, } from './database-snapshot.cap.js';
48
- export type { DecoderHwAccelConfig, HwAccelChoice, IDecoderCapProvider, ShmRingStats, } from './decoder.cap.js';
49
- export { DEFAULT_DECODER_HWACCEL_CONFIG, DecoderSessionConfigSchema, decoderCapability, HWACCEL_OPTIONS, ShmRingStatsSchema, } from './decoder.cap.js';
48
+ export type { DecoderHwAccelConfig, HwAccelChoice, IDecoderCapProvider, } from './decoder.cap.js';
49
+ export { DEFAULT_DECODER_HWACCEL_CONFIG, decoderCapability, HWACCEL_OPTIONS, } from './decoder.cap.js';
50
50
  export { detectionPipelineCapability, type IDetectionPipelineProvider, } from './detection-pipeline.cap.js';
51
51
  export { type AdminLinkTarget, AdminLinkTargetEnum, type DeviceAdminLink, DeviceAdminLinkSchema, deviceAdminLinkCapability, type IDeviceAdminLinkProvider, } from './device-admin-link.cap.js';
52
52
  export { buildDeviceAdminUrl, type DeviceAdminBase, type DeviceAdminBaseRefusal, type DeviceAdminBaseResult, type DeviceAdminScheme, type DeviceAdminUrlParts, type DeviceAdminUrlRefusal, type DeviceAdminUrlResult, parseAdminBase, } from './device-admin-link-url.js';
@@ -99,8 +99,8 @@ export { type DetectionSources, DetectionSourcesSchema, FrameLazyCountersSchema,
99
99
  export type { AudioClassifyOutcome, AudioNotClassifiedReason, } from './schemas/detection-shared.js';
100
100
  export { AUDIO_NOT_CLASSIFIED_REASONS, AudioChunkInputSchema, AudioClassificationLabelSchema, AudioClassifyOutcomeSchema, AudioLevelSchema, BoundingBoxSchema, FrameInputSchema, SpatialDetectionSchema, } from './schemas/detection-shared.js';
101
101
  export { CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, OrchestratorMetricsSchema, } from './schemas/orchestrator-metrics.js';
102
- export type { AudioStreamPick, CameraStream, CamProfile, CamStreamKind, DecodedAudioChunkWire, FrameHandleFormat, ProfileRtspEntry, ProfileSlot, ProfileSlotStatus, SubscribeAudioChunksInput, SubscribeAudioChunksResult, SubscribeFramesInput, SubscribeFramesResult, } from './schemas/streaming-shared.js';
103
- export { AudioChunkFormatSchema, AudioStreamPickSchema, BrokerStatsSchema, BrokerStatusSchema, CAM_PROFILE_ORDER, CameraStreamSchema, CamProfileSchema, CamStreamKindSchema, CamStreamResolutionSchema, DecodedAudioChunkSchema, DecodedFrameSchema, EncodedPacketSchema, FrameHandleFormatSchema, FrameHandleSchema, makeProfileBrokerId, makeSourceBrokerId, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, parseProfileBrokerId, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, selectAssignedProfileSlots, } from './schemas/streaming-shared.js';
102
+ export type { AudioStreamPick, CameraStream, CamProfile, CamStreamKind, DecodedAudioChunkWire, ProfileRtspEntry, ProfileSlot, ProfileSlotStatus, SubscribeAudioChunksInput, SubscribeAudioChunksResult, } from './schemas/streaming-shared.js';
103
+ export { AudioChunkFormatSchema, AudioStreamPickSchema, BrokerStatsSchema, BrokerStatusSchema, CAM_PROFILE_ORDER, CameraStreamSchema, CamProfileSchema, CamStreamKindSchema, CamStreamResolutionSchema, DecodedAudioChunkSchema, FrameHandleSchema, makeProfileBrokerId, makeSourceBrokerId, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, parseProfileBrokerId, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, selectAssignedProfileSlots, } from './schemas/streaming-shared.js';
104
104
  export { buildEventKindDescriptor, EVENT_KIND_BY_CAP, EVENTFUL_CAP_NAMES, type SensorEventKindDescriptor, } from './sensor-event-kinds.js';
105
105
  export { type ImageContract, ImageContractSchema, type ImageContractState, ImageContractStateSchema, type IServerManagementProvider, type ServerBootMode, ServerBootModeSchema, type ServerPackageStatus, ServerPackageStatusSchema, type ServerRollbackInfo, ServerRollbackInfoSchema, type ServerUpdateActionResult, ServerUpdateActionResultSchema, type ServerUpdateCheckResult, ServerUpdateCheckResultSchema, type ServerUpdateOutcome, ServerUpdateOutcomeSchema, type ServerUpdateState, ServerUpdateStateSchema, serverManagementCapability, type WrapperEvidence, WrapperEvidenceSchema, type WrapperIdentity, WrapperIdentitySchema, type WrapperKind, WrapperKindSchema, } from './server-management.cap.js';
106
106
  export { type BulkRecord, BulkRecordSchema, type CollectionColumn, CollectionColumnSchema, type CollectionIndex, CollectionIndexSchema, type ISettingsStoreProvider, type MutationFilter, MutationFilterSchema, QueryFilterSchema, SettingsRecordSchema, type SettingsStoreClient, settingsStoreCapability, } from './settings-store.cap.js';
@@ -114,8 +114,8 @@ export { type EvictableUsage, type EvictResult, type IStorageEvictableProvider,
114
114
  export { type IStorageMigrationProvider, storageMigrationCapability, } from './storage-migration.cap.js';
115
115
  export { type IStorageOccupancyProvider, type StorageOccupancyReport, StorageOccupancyReportSchema, storageOccupancyCapability, } from './storage-occupancy.cap.js';
116
116
  export { AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, type IStorageProviderImpl, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, storageProviderCapability, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, } from './storage-provider.cap.js';
117
- export type { AudioCodecTarget, BrokerAudioClient, BrokerClients, BrokerConsumerAttribution, BrokerConsumerKind, BrokerDecodedClient, BrokerEncodedClient, BrokerRtspClient, GetStreamWithCodecInput, PlaceholderReason, RtpSource, VideoCodecTarget, } from './stream-broker.cap.js';
118
- export { BrokerAudioClientSchema, BrokerClientsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, BrokerRtspClientSchema, type EgressEncode, EgressEncodeSchema, type EgressRateControl, EgressRateControlSchema, type EgressTranscode, type EgressTranscodeRequest, EgressTranscodeRequestSchema, EgressTranscodeSchema, type EventMediaArtifact, EventMediaArtifactSchema, type EventMediaCoverage, EventMediaCoverageSchema, type EventMediaKind, EventMediaKindSchema, type EventMediaProduction, EventMediaProductionSchema, GetStreamWithCodecInputSchema, PlaceholderReasonSchema, RtpSourceSchema, RtspRestreamEntrySchema, type StreamBrokerClient, type StreamFormat, StreamFormatSchema, streamBrokerCapability, } from './stream-broker.cap.js';
117
+ export type { AudioCodecTarget, BrokerAudioClient, BrokerClients, BrokerConsumerAttribution, BrokerConsumerKind, BrokerEncodedClient, BrokerRtspClient, GetStreamWithCodecInput, PlaceholderReason, RtpSource, VideoCodecTarget, } from './stream-broker.cap.js';
118
+ export { BrokerAudioClientSchema, BrokerClientsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerEncodedClientSchema, BrokerRtspClientSchema, type EgressEncode, EgressEncodeSchema, type EgressRateControl, EgressRateControlSchema, type EgressTranscode, type EgressTranscodeRequest, EgressTranscodeRequestSchema, EgressTranscodeSchema, type EventMediaArtifact, EventMediaArtifactSchema, type EventMediaCoverage, EventMediaCoverageSchema, type EventMediaKind, EventMediaKindSchema, type EventMediaProduction, EventMediaProductionSchema, GetStreamWithCodecInputSchema, PlaceholderReasonSchema, RtpSourceSchema, RtspRestreamEntrySchema, type StreamBrokerClient, type StreamFormat, StreamFormatSchema, streamBrokerCapability, } from './stream-broker.cap.js';
119
119
  export { type IStreamSignalsProvider, type StreamSignal, StreamSignalSchema, type StreamSignalsStatus, StreamSignalsStatusSchema, streamSignalsCapability, } from './stream-signals.cap.js';
120
120
  export { type ITerminalSessionProvider, type TerminalInstanceInfo, TerminalInstanceInfoSchema, type TerminalLegacyCamera, TerminalLegacyCameraSchema, type TerminalOutputBatch, TerminalOutputBatchSchema, type TerminalOutputEvent, TerminalOutputEventSchema, type TerminalProfileInfo, TerminalProfileInfoSchema, type TerminalSessionInfo, TerminalSessionInfoSchema, terminalSessionCapability, } from './terminal-session.cap.js';
121
121
  export type { ITurnProvider } from './turn-provider.cap.js';
@@ -114,8 +114,8 @@ export declare const LlmRuntimeStatusSchema: z.ZodObject<{
114
114
  ready: "ready";
115
115
  stopped: "stopped";
116
116
  starting: "starting";
117
- crashed: "crashed";
118
117
  downloading: "downloading";
118
+ crashed: "crashed";
119
119
  }>;
120
120
  pid: z.ZodOptional<z.ZodNumber>;
121
121
  port: z.ZodOptional<z.ZodNumber>;
@@ -506,8 +506,8 @@ export declare const llmRuntimeCapability: {
506
506
  ready: "ready";
507
507
  stopped: "stopped";
508
508
  starting: "starting";
509
- crashed: "crashed";
510
509
  downloading: "downloading";
510
+ crashed: "crashed";
511
511
  }>;
512
512
  pid: z.ZodOptional<z.ZodNumber>;
513
513
  port: z.ZodOptional<z.ZodNumber>;
@@ -538,8 +538,8 @@ export declare const llmRuntimeCapability: {
538
538
  ready: "ready";
539
539
  stopped: "stopped";
540
540
  starting: "starting";
541
- crashed: "crashed";
542
541
  downloading: "downloading";
542
+ crashed: "crashed";
543
543
  }>;
544
544
  pid: z.ZodOptional<z.ZodNumber>;
545
545
  port: z.ZodOptional<z.ZodNumber>;
@@ -240,8 +240,8 @@ export declare const LlmRuntimeNodeSchema: z.ZodObject<{
240
240
  ready: "ready";
241
241
  stopped: "stopped";
242
242
  starting: "starting";
243
- crashed: "crashed";
244
243
  downloading: "downloading";
244
+ crashed: "crashed";
245
245
  }>;
246
246
  pid: z.ZodOptional<z.ZodNumber>;
247
247
  port: z.ZodOptional<z.ZodNumber>;
@@ -812,8 +812,8 @@ export declare const llmCapability: {
812
812
  ready: "ready";
813
813
  stopped: "stopped";
814
814
  starting: "starting";
815
- crashed: "crashed";
816
815
  downloading: "downloading";
816
+ crashed: "crashed";
817
817
  }>;
818
818
  pid: z.ZodOptional<z.ZodNumber>;
819
819
  port: z.ZodOptional<z.ZodNumber>;
@@ -962,8 +962,8 @@ export declare const llmCapability: {
962
962
  ready: "ready";
963
963
  stopped: "stopped";
964
964
  starting: "starting";
965
- crashed: "crashed";
966
965
  downloading: "downloading";
966
+ crashed: "crashed";
967
967
  }>;
968
968
  pid: z.ZodOptional<z.ZodNumber>;
969
969
  port: z.ZodOptional<z.ZodNumber>;
@@ -996,8 +996,8 @@ export declare const llmCapability: {
996
996
  ready: "ready";
997
997
  stopped: "stopped";
998
998
  starting: "starting";
999
- crashed: "crashed";
1000
999
  downloading: "downloading";
1000
+ crashed: "crashed";
1001
1001
  }>;
1002
1002
  pid: z.ZodOptional<z.ZodNumber>;
1003
1003
  port: z.ZodOptional<z.ZodNumber>;
@@ -36,10 +36,10 @@ declare const LocalInterfaceSchema: z.ZodObject<{
36
36
  internal: z.ZodBoolean;
37
37
  mac: z.ZodString;
38
38
  kind: z.ZodEnum<{
39
- docker: "docker";
40
39
  loopback: "loopback";
41
40
  lan: "lan";
42
41
  wifi: "wifi";
42
+ docker: "docker";
43
43
  vpn: "vpn";
44
44
  other: "other";
45
45
  }>;
@@ -65,10 +65,10 @@ declare const ConnectionEndpointSchema: z.ZodObject<{
65
65
  }>;
66
66
  interfaceKind: z.ZodEnum<{
67
67
  public: "public";
68
- docker: "docker";
69
68
  loopback: "loopback";
70
69
  lan: "lan";
71
70
  wifi: "wifi";
71
+ docker: "docker";
72
72
  vpn: "vpn";
73
73
  other: "other";
74
74
  }>;
@@ -173,10 +173,10 @@ declare const HubAddressRowSchema: z.ZodObject<{
173
173
  }>;
174
174
  interfaceKind: z.ZodEnum<{
175
175
  public: "public";
176
- docker: "docker";
177
176
  loopback: "loopback";
178
177
  lan: "lan";
179
178
  wifi: "wifi";
179
+ docker: "docker";
180
180
  vpn: "vpn";
181
181
  other: "other";
182
182
  }>;
@@ -219,10 +219,10 @@ declare const HubAddressBookSchema: z.ZodObject<{
219
219
  }>;
220
220
  interfaceKind: z.ZodEnum<{
221
221
  public: "public";
222
- docker: "docker";
223
222
  loopback: "loopback";
224
223
  lan: "lan";
225
224
  wifi: "wifi";
225
+ docker: "docker";
226
226
  vpn: "vpn";
227
227
  other: "other";
228
228
  }>;
@@ -310,10 +310,10 @@ export declare const localNetworkCapability: {
310
310
  internal: z.ZodBoolean;
311
311
  mac: z.ZodString;
312
312
  kind: z.ZodEnum<{
313
- docker: "docker";
314
313
  loopback: "loopback";
315
314
  lan: "lan";
316
315
  wifi: "wifi";
316
+ docker: "docker";
317
317
  vpn: "vpn";
318
318
  other: "other";
319
319
  }>;
@@ -345,10 +345,10 @@ export declare const localNetworkCapability: {
345
345
  internal: z.ZodBoolean;
346
346
  mac: z.ZodString;
347
347
  kind: z.ZodEnum<{
348
- docker: "docker";
349
348
  loopback: "loopback";
350
349
  lan: "lan";
351
350
  wifi: "wifi";
351
+ docker: "docker";
352
352
  vpn: "vpn";
353
353
  other: "other";
354
354
  }>;
@@ -408,10 +408,10 @@ export declare const localNetworkCapability: {
408
408
  }>;
409
409
  interfaceKind: z.ZodEnum<{
410
410
  public: "public";
411
- docker: "docker";
412
411
  loopback: "loopback";
413
412
  lan: "lan";
414
413
  wifi: "wifi";
414
+ docker: "docker";
415
415
  vpn: "vpn";
416
416
  other: "other";
417
417
  }>;
@@ -514,10 +514,10 @@ export declare const localNetworkCapability: {
514
514
  }>;
515
515
  interfaceKind: z.ZodEnum<{
516
516
  public: "public";
517
- docker: "docker";
518
517
  loopback: "loopback";
519
518
  lan: "lan";
520
519
  wifi: "wifi";
520
+ docker: "docker";
521
521
  vpn: "vpn";
522
522
  other: "other";
523
523
  }>;
@@ -608,10 +608,10 @@ export declare const localNetworkCapability: {
608
608
  }>;
609
609
  interfaceKind: z.ZodEnum<{
610
610
  public: "public";
611
- docker: "docker";
612
611
  loopback: "loopback";
613
612
  lan: "lan";
614
613
  wifi: "wifi";
614
+ docker: "docker";
615
615
  vpn: "vpn";
616
616
  other: "other";
617
617
  }>;
@@ -696,10 +696,10 @@ export declare const localNetworkCapability: {
696
696
  }>;
697
697
  interfaceKind: z.ZodEnum<{
698
698
  public: "public";
699
- docker: "docker";
700
699
  loopback: "loopback";
701
700
  lan: "lan";
702
701
  wifi: "wifi";
702
+ docker: "docker";
703
703
  vpn: "vpn";
704
704
  other: "other";
705
705
  }>;
@@ -799,10 +799,10 @@ export declare const localNetworkCapability: {
799
799
  }>;
800
800
  interfaceKind: z.ZodEnum<{
801
801
  public: "public";
802
- docker: "docker";
803
802
  loopback: "loopback";
804
803
  lan: "lan";
805
804
  wifi: "wifi";
805
+ docker: "docker";
806
806
  vpn: "vpn";
807
807
  other: "other";
808
808
  }>;
@@ -172,8 +172,8 @@ declare const AddonInstanceSchema: z.ZodObject<{
172
172
  running: "running";
173
173
  stopped: "stopped";
174
174
  starting: "starting";
175
- stopping: "stopping";
176
175
  crashed: "crashed";
176
+ stopping: "stopping";
177
177
  }>;
178
178
  uptimeSec: z.ZodNumber;
179
179
  }, z.core.$strip>;
@@ -587,8 +587,8 @@ export declare const metricsProviderCapability: {
587
587
  running: "running";
588
588
  stopped: "stopped";
589
589
  starting: "starting";
590
- stopping: "stopping";
591
590
  crashed: "crashed";
591
+ stopping: "stopping";
592
592
  }>;
593
593
  uptimeSec: z.ZodNumber;
594
594
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -64,7 +64,10 @@ declare const PipelineAssignmentSchema: z.ZodObject<{
64
64
  }, z.core.$strip>;
65
65
  /**
66
66
  * Per-agent load summary surfaced to the load balancer + dashboards.
67
- * Aggregated from each runner's `getLocalLoad` cap call.
67
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
68
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
69
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
70
+ * the default pool IS that device (D745); the balancer's census stays raw.
68
71
  */
69
72
  declare const AgentLoadSummarySchema: z.ZodObject<{
70
73
  nodeId: z.ZodString;
@@ -80,7 +83,6 @@ declare const AgentLoadSummarySchema: z.ZodObject<{
80
83
  deviceKey: z.ZodString;
81
84
  backend: z.ZodString;
82
85
  attachedCameras: z.ZodNumber;
83
- queueDepthTotal: z.ZodNumber;
84
86
  }, z.core.$strip>>>;
85
87
  hardware: z.ZodObject<{
86
88
  hasGpu: z.ZodBoolean;
@@ -170,8 +172,7 @@ declare const CameraBrokerProfileSchema: z.ZodObject<{
170
172
  width: z.ZodNumber;
171
173
  height: z.ZodNumber;
172
174
  subscribers: z.ZodNumber;
173
- inFps: z.ZodNumber;
174
- outFps: z.ZodNumber;
175
+ inFps: z.ZodNullable<z.ZodNumber>;
175
176
  }, z.core.$strip>;
176
177
  /** Broker block — null when the broker stage is unreachable or inactive. */
177
178
  declare const CameraBrokerStatusSchema: z.ZodObject<{
@@ -182,8 +183,7 @@ declare const CameraBrokerStatusSchema: z.ZodObject<{
182
183
  width: z.ZodNumber;
183
184
  height: z.ZodNumber;
184
185
  subscribers: z.ZodNumber;
185
- inFps: z.ZodNumber;
186
- outFps: z.ZodNumber;
186
+ inFps: z.ZodNullable<z.ZodNumber>;
187
187
  }, z.core.$strip>>>;
188
188
  webrtcSessions: z.ZodNumber;
189
189
  rtspRestream: z.ZodBoolean;
@@ -390,8 +390,7 @@ declare const CameraStatusSchema: z.ZodObject<{
390
390
  width: z.ZodNumber;
391
391
  height: z.ZodNumber;
392
392
  subscribers: z.ZodNumber;
393
- inFps: z.ZodNumber;
394
- outFps: z.ZodNumber;
393
+ inFps: z.ZodNullable<z.ZodNumber>;
395
394
  }, z.core.$strip>>>;
396
395
  webrtcSessions: z.ZodNumber;
397
396
  rtspRestream: z.ZodBoolean;
@@ -903,7 +902,6 @@ export declare const pipelineOrchestratorCapability: {
903
902
  deviceKey: z.ZodString;
904
903
  backend: z.ZodString;
905
904
  attachedCameras: z.ZodNumber;
906
- queueDepthTotal: z.ZodNumber;
907
905
  }, z.core.$strip>>>;
908
906
  hardware: z.ZodObject<{
909
907
  hasGpu: z.ZodBoolean;
@@ -2185,8 +2183,7 @@ export declare const pipelineOrchestratorCapability: {
2185
2183
  width: z.ZodNumber;
2186
2184
  height: z.ZodNumber;
2187
2185
  subscribers: z.ZodNumber;
2188
- inFps: z.ZodNumber;
2189
- outFps: z.ZodNumber;
2186
+ inFps: z.ZodNullable<z.ZodNumber>;
2190
2187
  }, z.core.$strip>>>;
2191
2188
  webrtcSessions: z.ZodNumber;
2192
2189
  rtspRestream: z.ZodBoolean;
@@ -2406,8 +2403,7 @@ export declare const pipelineOrchestratorCapability: {
2406
2403
  width: z.ZodNumber;
2407
2404
  height: z.ZodNumber;
2408
2405
  subscribers: z.ZodNumber;
2409
- inFps: z.ZodNumber;
2410
- outFps: z.ZodNumber;
2406
+ inFps: z.ZodNullable<z.ZodNumber>;
2411
2407
  }, z.core.$strip>>>;
2412
2408
  webrtcSessions: z.ZodNumber;
2413
2409
  rtspRestream: z.ZodBoolean;