@camstack/types 1.2.322 → 1.2.324

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 (45) hide show
  1. package/dist/addon.js +3 -14
  2. package/dist/addon.mjs +3 -14
  3. package/dist/capabilities/addons.cap.d.ts +156 -2
  4. package/dist/capabilities/broker.cap.d.ts +4 -4
  5. package/dist/capabilities/decoder.cap.d.ts +0 -211
  6. package/dist/capabilities/device-manager.cap.d.ts +4 -4
  7. package/dist/capabilities/index.d.ts +7 -7
  8. package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
  9. package/dist/capabilities/llm.cap.d.ts +4 -4
  10. package/dist/capabilities/local-network.cap.d.ts +11 -11
  11. package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
  12. package/dist/capabilities/mqtt-broker.cap.d.ts +3 -3
  13. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +9 -13
  14. package/dist/capabilities/pipeline-runner.cap.d.ts +0 -2
  15. package/dist/capabilities/recording.cap.d.ts +3 -3
  16. package/dist/capabilities/schemas/streaming-shared.d.ts +9 -79
  17. package/dist/capabilities/snapshot.cap.d.ts +2 -2
  18. package/dist/capabilities/stream-broker.cap.d.ts +0 -85
  19. package/dist/capabilities/videoclips.cap.d.ts +3 -3
  20. package/dist/capabilities/webrtc-session.cap.d.ts +0 -2
  21. package/dist/client.js +3 -80
  22. package/dist/client.mjs +3 -80
  23. package/dist/enums/event-category.d.ts +0 -9
  24. package/dist/enums.js +1 -1
  25. package/dist/enums.mjs +1 -1
  26. package/dist/{event-category-BGmz_oxW.mjs → event-category-B_0XEcLF.mjs} +0 -9
  27. package/dist/{event-category-DmS_tLsU.js → event-category-CtBAl88K.js} +0 -9
  28. package/dist/ffmpeg/hwaccel.d.ts +1 -1
  29. package/dist/generated/addon-api.d.ts +7 -105
  30. package/dist/generated/cap-input-defaults.d.ts +1 -1
  31. package/dist/generated/method-access-map.d.ts +1 -1
  32. package/dist/generated/method-device-selectors.d.ts +2 -2
  33. package/dist/generated/system-proxy.d.ts +3 -3
  34. package/dist/index.d.ts +0 -1
  35. package/dist/index.js +115 -292
  36. package/dist/index.mjs +111 -284
  37. package/dist/interfaces/api-responses.d.ts +0 -19
  38. package/dist/interfaces/capability.d.ts +1 -2
  39. package/dist/interfaces/event-bus.d.ts +0 -13
  40. package/dist/interfaces/pipeline-runner-capability.d.ts +0 -1
  41. package/dist/interfaces/stream-broker.d.ts +2 -67
  42. package/dist/{sleep-DAJ9Er57.mjs → sleep-BNeXenvr.mjs} +11 -86
  43. package/dist/{sleep-AalHiRYL.js → sleep-DPar9AHl.js} +10 -115
  44. package/package.json +1 -1
  45. package/dist/interfaces/decoder.d.ts +0 -89
@@ -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>;
@@ -10,10 +10,10 @@ import { type InferProvider } from './capability-definition.js';
10
10
  * - `tls-error` — TLS handshake failed (cert / SNI / cipher)
11
11
  */
12
12
  declare const BrokerStatusSchema: z.ZodEnum<{
13
+ unreachable: "unreachable";
13
14
  connected: "connected";
14
15
  disconnected: "disconnected";
15
16
  "auth-failed": "auth-failed";
16
- unreachable: "unreachable";
17
17
  "tls-error": "tls-error";
18
18
  }>;
19
19
  declare const BrokerInfoSchema: z.ZodObject<{
@@ -25,10 +25,10 @@ declare const BrokerInfoSchema: z.ZodObject<{
25
25
  embedded: "embedded";
26
26
  }>;
27
27
  status: z.ZodEnum<{
28
+ unreachable: "unreachable";
28
29
  connected: "connected";
29
30
  disconnected: "disconnected";
30
31
  "auth-failed": "auth-failed";
31
- unreachable: "unreachable";
32
32
  "tls-error": "tls-error";
33
33
  }>;
34
34
  latencyMs: z.ZodNullable<z.ZodNumber>;
@@ -90,10 +90,10 @@ export declare const mqttBrokerCapability: {
90
90
  embedded: "embedded";
91
91
  }>;
92
92
  status: z.ZodEnum<{
93
+ unreachable: "unreachable";
93
94
  connected: "connected";
94
95
  disconnected: "disconnected";
95
96
  "auth-failed": "auth-failed";
96
- unreachable: "unreachable";
97
97
  "tls-error": "tls-error";
98
98
  }>;
99
99
  latencyMs: z.ZodNullable<z.ZodNumber>;
@@ -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;
@@ -491,7 +491,6 @@ declare const RunnerLocalLoadSchema: z.ZodObject<{
491
491
  deviceKey: z.ZodString;
492
492
  backend: z.ZodString;
493
493
  attachedCameras: z.ZodNumber;
494
- queueDepthTotal: z.ZodNumber;
495
494
  }, z.core.$strip>>>;
496
495
  hardware: z.ZodObject<{
497
496
  hasGpu: z.ZodBoolean;
@@ -818,7 +817,6 @@ export declare const pipelineRunnerCapability: {
818
817
  deviceKey: z.ZodString;
819
818
  backend: z.ZodString;
820
819
  attachedCameras: z.ZodNumber;
821
- queueDepthTotal: z.ZodNumber;
822
820
  }, z.core.$strip>>>;
823
821
  hardware: z.ZodObject<{
824
822
  hasGpu: z.ZodBoolean;
@@ -119,8 +119,8 @@ export type RecordingManifest = z.infer<typeof RecordingManifestSchema>;
119
119
  export declare const RecordingSourceAvailabilitySchema: z.ZodObject<{
120
120
  state: z.ZodEnum<{
121
121
  ok: "ok";
122
- sleeping: "sleeping";
123
122
  unreachable: "unreachable";
123
+ sleeping: "sleeping";
124
124
  "no-storage": "no-storage";
125
125
  "index-empty": "index-empty";
126
126
  }>;
@@ -145,8 +145,8 @@ export declare const RecordingSourceSchema: z.ZodObject<{
145
145
  availability: z.ZodObject<{
146
146
  state: z.ZodEnum<{
147
147
  ok: "ok";
148
- sleeping: "sleeping";
149
148
  unreachable: "unreachable";
149
+ sleeping: "sleeping";
150
150
  "no-storage": "no-storage";
151
151
  "index-empty": "index-empty";
152
152
  }>;
@@ -247,8 +247,8 @@ export declare const recordingCapability: {
247
247
  availability: z.ZodObject<{
248
248
  state: z.ZodEnum<{
249
249
  ok: "ok";
250
- sleeping: "sleeping";
251
250
  unreachable: "unreachable";
251
+ sleeping: "sleeping";
252
252
  "no-storage": "no-storage";
253
253
  "index-empty": "index-empty";
254
254
  }>;
@@ -170,35 +170,12 @@ export declare const StreamSourceSchema: z.ZodObject<{
170
170
  audioCodec: z.ZodOptional<z.ZodString>;
171
171
  metadata: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
172
172
  }, z.core.$strip>;
173
- export declare const EncodedPacketSchema: z.ZodObject<{
174
- type: z.ZodEnum<{
175
- audio: "audio";
176
- video: "video";
177
- }>;
178
- data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
179
- pts: z.ZodNumber;
180
- dts: z.ZodNumber;
181
- keyframe: z.ZodBoolean;
182
- codec: z.ZodString;
183
- }, z.core.$strip>;
184
- export declare const DecodedFrameSchema: z.ZodObject<{
185
- data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
186
- width: z.ZodNumber;
187
- height: z.ZodNumber;
188
- format: z.ZodEnum<{
189
- jpeg: "jpeg";
190
- rgb: "rgb";
191
- bgr: "bgr";
192
- yuv420: "yuv420";
193
- gray: "gray";
194
- }>;
195
- timestamp: z.ZodNumber;
196
- }, z.core.$strip>;
197
173
  /**
198
174
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
199
175
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
200
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
201
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
176
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
177
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
178
+ * over tRPC / Moleculer.
202
179
  *
203
180
  * The `satisfies` assertion below pins this schema to the interface: if a
204
181
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -223,49 +200,6 @@ export declare const FrameHandleSchema: z.ZodObject<{
223
200
  nodeId: z.ZodString;
224
201
  slotCount: z.ZodNumber;
225
202
  }, z.core.$strip>;
226
- /**
227
- * Pixel format a frame-handle subscriber can request from the broker
228
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
229
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
230
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
231
- * payload, and no decoded-frame consumer requests it over the shm plane.
232
- */
233
- export declare const FrameHandleFormatSchema: z.ZodEnum<{
234
- rgb: "rgb";
235
- bgr: "bgr";
236
- yuv420: "yuv420";
237
- gray: "gray";
238
- }>;
239
- export type FrameHandleFormat = z.infer<typeof FrameHandleFormatSchema>;
240
- /**
241
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
242
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
243
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
244
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
245
- * they asked for with no broker-side conversion.
246
- */
247
- export declare const SubscribeFramesInputSchema: z.ZodObject<{
248
- brokerId: z.ZodString;
249
- format: z.ZodEnum<{
250
- rgb: "rgb";
251
- bgr: "bgr";
252
- yuv420: "yuv420";
253
- gray: "gray";
254
- }>;
255
- maxFps: z.ZodOptional<z.ZodNumber>;
256
- tag: z.ZodOptional<z.ZodString>;
257
- }, z.core.$strip>;
258
- export type SubscribeFramesInput = z.infer<typeof SubscribeFramesInputSchema>;
259
- /**
260
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
261
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
262
- * `FrameHandle` to a `FrameRingReader`.
263
- */
264
- export declare const SubscribeFramesResultSchema: z.ZodObject<{
265
- subscriptionId: z.ZodString;
266
- maxFps: z.ZodNumber;
267
- }, z.core.$strip>;
268
- export type SubscribeFramesResult = z.infer<typeof SubscribeFramesResultSchema>;
269
203
  /**
270
204
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
271
205
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
@@ -274,8 +208,8 @@ export type SubscribeFramesResult = z.infer<typeof SubscribeFramesResultSchema>;
274
208
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
275
209
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
276
210
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
277
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
278
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
211
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
212
+ * it.
279
213
  */
280
214
  export declare const AudioChunkFormatSchema: z.ZodEnum<{
281
215
  f32le: "f32le";
@@ -295,11 +229,10 @@ export declare const DecodedAudioChunkSchema: z.ZodObject<{
295
229
  }, z.core.$strip>;
296
230
  export type DecodedAudioChunkWire = z.infer<typeof DecodedAudioChunkSchema>;
297
231
  /**
298
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
299
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
300
- * asks the broker for the decoded audio-chunk stream of one broker; the
301
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
302
- * `pullAudioChunks`.
232
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
233
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
234
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
235
+ * the consumer drains via `pullAudioChunks`.
303
236
  */
304
237
  export declare const SubscribeAudioChunksInputSchema: z.ZodObject<{
305
238
  brokerId: z.ZodString;
@@ -332,9 +265,7 @@ export declare const BrokerStatsSchema: z.ZodObject<{
332
265
  stopped: "stopped";
333
266
  }>;
334
267
  inputFps: z.ZodNumber;
335
- decodeFps: z.ZodNumber;
336
268
  encodedSubscribers: z.ZodNumber;
337
- decodedSubscribers: z.ZodNumber;
338
269
  uptimeMs: z.ZodNumber;
339
270
  bitrateKbps: z.ZodNumber;
340
271
  idrIntervalMs: z.ZodNumber;
@@ -346,7 +277,6 @@ export declare const BrokerStatsSchema: z.ZodObject<{
346
277
  preBufferSec: z.ZodNumber;
347
278
  preBufferMs: z.ZodNumber;
348
279
  preBufferPackets: z.ZodNumber;
349
- decoderNodeId: z.ZodNullable<z.ZodString>;
350
280
  audio: z.ZodOptional<z.ZodNullable<z.ZodObject<{
351
281
  codec: z.ZodString;
352
282
  sampleRate: z.ZodNumber;
@@ -103,8 +103,8 @@ export declare const snapshotCapability: {
103
103
  reason: z.ZodNullable<z.ZodEnum<{
104
104
  offline: "offline";
105
105
  disabled: "disabled";
106
- sleeping: "sleeping";
107
106
  unreachable: "unreachable";
107
+ sleeping: "sleeping";
108
108
  waking: "waking";
109
109
  }>>;
110
110
  }, z.core.$strip>;
@@ -176,8 +176,8 @@ export declare const snapshotCapability: {
176
176
  stateReason: z.ZodNullable<z.ZodEnum<{
177
177
  offline: "offline";
178
178
  disabled: "disabled";
179
- sleeping: "sleeping";
180
179
  unreachable: "unreachable";
180
+ sleeping: "sleeping";
181
181
  waking: "waking";
182
182
  }>>;
183
183
  battery: z.ZodBoolean;
@@ -110,13 +110,6 @@ export declare const BrokerRtspClientSchema: z.ZodObject<{
110
110
  lastRtpAt: z.ZodNumber;
111
111
  bytesSent: z.ZodNumber;
112
112
  }, z.core.$strip>;
113
- export declare const BrokerDecodedClientSchema: z.ZodObject<{
114
- tag: z.ZodString;
115
- subscribedAt: z.ZodNumber;
116
- maxFps: z.ZodNumber;
117
- framesDelivered: z.ZodNumber;
118
- framesDropped: z.ZodNumber;
119
- }, z.core.$strip>;
120
113
  export declare const BrokerAudioClientSchema: z.ZodObject<{
121
114
  tag: z.ZodString;
122
115
  subscribedAt: z.ZodNumber;
@@ -232,13 +225,6 @@ export declare const BrokerClientsSchema: z.ZodObject<{
232
225
  lastRtpAt: z.ZodNumber;
233
226
  bytesSent: z.ZodNumber;
234
227
  }, z.core.$strip>>>;
235
- decoded: z.ZodReadonly<z.ZodArray<z.ZodObject<{
236
- tag: z.ZodString;
237
- subscribedAt: z.ZodNumber;
238
- maxFps: z.ZodNumber;
239
- framesDelivered: z.ZodNumber;
240
- framesDropped: z.ZodNumber;
241
- }, z.core.$strip>>>;
242
228
  audio: z.ZodReadonly<z.ZodArray<z.ZodObject<{
243
229
  tag: z.ZodString;
244
230
  subscribedAt: z.ZodNumber;
@@ -290,7 +276,6 @@ export declare const BrokerClientsSchema: z.ZodObject<{
290
276
  encodedSubscribers: z.ZodNumber;
291
277
  }, z.core.$strip>;
292
278
  export type BrokerRtspClient = z.infer<typeof BrokerRtspClientSchema>;
293
- export type BrokerDecodedClient = z.infer<typeof BrokerDecodedClientSchema>;
294
279
  export type BrokerAudioClient = z.infer<typeof BrokerAudioClientSchema>;
295
280
  export type BrokerClients = z.infer<typeof BrokerClientsSchema>;
296
281
  export declare const PlaceholderReasonSchema: z.ZodEnum<{
@@ -914,9 +899,7 @@ export declare const streamBrokerCapability: {
914
899
  stopped: "stopped";
915
900
  }>;
916
901
  inputFps: z.ZodNumber;
917
- decodeFps: z.ZodNumber;
918
902
  encodedSubscribers: z.ZodNumber;
919
- decodedSubscribers: z.ZodNumber;
920
903
  uptimeMs: z.ZodNumber;
921
904
  bitrateKbps: z.ZodNumber;
922
905
  idrIntervalMs: z.ZodNumber;
@@ -928,7 +911,6 @@ export declare const streamBrokerCapability: {
928
911
  preBufferSec: z.ZodNumber;
929
912
  preBufferMs: z.ZodNumber;
930
913
  preBufferPackets: z.ZodNumber;
931
- decoderNodeId: z.ZodNullable<z.ZodString>;
932
914
  audio: z.ZodOptional<z.ZodNullable<z.ZodObject<{
933
915
  codec: z.ZodString;
934
916
  sampleRate: z.ZodNumber;
@@ -965,13 +947,6 @@ export declare const streamBrokerCapability: {
965
947
  lastRtpAt: z.ZodNumber;
966
948
  bytesSent: z.ZodNumber;
967
949
  }, z.core.$strip>>>;
968
- decoded: z.ZodReadonly<z.ZodArray<z.ZodObject<{
969
- tag: z.ZodString;
970
- subscribedAt: z.ZodNumber;
971
- maxFps: z.ZodNumber;
972
- framesDelivered: z.ZodNumber;
973
- framesDropped: z.ZodNumber;
974
- }, z.core.$strip>>>;
975
950
  audio: z.ZodReadonly<z.ZodArray<z.ZodObject<{
976
951
  tag: z.ZodString;
977
952
  subscribedAt: z.ZodNumber;
@@ -1027,7 +1002,6 @@ export declare const streamBrokerCapability: {
1027
1002
  channel: z.ZodEnum<{
1028
1003
  audio: "audio";
1029
1004
  rtsp: "rtsp";
1030
- decoded: "decoded";
1031
1005
  }>;
1032
1006
  handle: z.ZodString;
1033
1007
  }, z.core.$strip>, z.ZodObject<{
@@ -1293,65 +1267,6 @@ export declare const streamBrokerCapability: {
1293
1267
  }, z.core.$strip>, z.ZodObject<{
1294
1268
  released: z.ZodBoolean;
1295
1269
  }, z.core.$strip>, "mutation">;
1296
- /**
1297
- * ── Shared-memory frame plane (Phase 5 / D9) ──────────────────────
1298
- *
1299
- * The handle-based replacement for the live-object `IStreamBroker.
1300
- * onDecodedFrame` callback path. A consumer:
1301
- *
1302
- * 1. `subscribeFrames({ brokerId, format })` — the broker spins up
1303
- * (or reuses) a `frameSink: 'shm'` decoder session producing that
1304
- * `format` and returns a `subscriptionId`.
1305
- * 2. polls `pullFrameHandles({ subscriptionId, maxCount })` — drains
1306
- * zero-pixel `FrameHandle[]`; each handle is fed to a
1307
- * `FrameRingReader` that opens the named shm segment and reads the
1308
- * pixels back zero-copy.
1309
- * 3. `unsubscribeFrames({ subscriptionId })` on teardown.
1310
- *
1311
- * The broker keeps one shm ring per `(brokerId, format)` actually
1312
- * requested — no broker-side `sharp` conversion. fps throttling is
1313
- * implicit (latest-wins ring reads drop frames for a slow consumer).
1314
- */
1315
- readonly subscribeFrames: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1316
- brokerId: z.ZodString;
1317
- format: z.ZodEnum<{
1318
- rgb: "rgb";
1319
- bgr: "bgr";
1320
- yuv420: "yuv420";
1321
- gray: "gray";
1322
- }>;
1323
- maxFps: z.ZodOptional<z.ZodNumber>;
1324
- tag: z.ZodOptional<z.ZodString>;
1325
- }, z.core.$strip>, z.ZodObject<{
1326
- subscriptionId: z.ZodString;
1327
- maxFps: z.ZodNumber;
1328
- }, z.core.$strip>, "mutation">;
1329
- readonly pullFrameHandles: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1330
- subscriptionId: z.ZodString;
1331
- maxCount: z.ZodDefault<z.ZodNumber>;
1332
- }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
1333
- shmId: z.ZodString;
1334
- slot: z.ZodNumber;
1335
- seq: z.ZodNumber;
1336
- width: z.ZodNumber;
1337
- height: z.ZodNumber;
1338
- format: z.ZodEnum<{
1339
- jpeg: "jpeg";
1340
- rgb: "rgb";
1341
- bgr: "bgr";
1342
- yuv420: "yuv420";
1343
- gray: "gray";
1344
- }>;
1345
- pts: z.ZodNumber;
1346
- byteLength: z.ZodNumber;
1347
- nodeId: z.ZodString;
1348
- slotCount: z.ZodNumber;
1349
- }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
1350
- readonly unsubscribeFrames: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1351
- subscriptionId: z.ZodString;
1352
- }, z.core.$strip>, z.ZodObject<{
1353
- released: z.ZodBoolean;
1354
- }, z.core.$strip>, "mutation">;
1355
1270
  readonly setPreBufferDuration: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1356
1271
  brokerId: z.ZodString;
1357
1272
  seconds: z.ZodNumber;