@ceralive/cerastream 2026.7.5 → 2026.8.0
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/client.d.ts +3 -3
- package/dist/client.js +39 -42
- package/dist/config.d.ts +1 -1
- package/dist/config.js +8 -10
- package/dist/constants.d.ts +14 -14
- package/dist/constants.js +18 -18
- package/dist/envelope.d.ts +1 -1
- package/dist/envelope.js +4 -4
- package/dist/errors.d.ts +13 -13
- package/dist/errors.js +43 -43
- package/dist/events.d.ts +183 -94
- package/dist/events.js +56 -31
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/messages.d.ts +117 -99
- package/dist/messages.js +55 -40
- package/dist/paths.d.ts +2 -2
- package/dist/paths.js +9 -11
- package/dist/transport.js +7 -7
- package/dist/types.d.ts +48 -36
- package/dist/types.js +42 -36
- package/package.json +44 -39
package/dist/messages.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const startParamsSchema: z.ZodObject<{
|
|
3
3
|
pipeline: z.ZodString;
|
|
4
4
|
srt: z.ZodObject<{
|
|
@@ -16,8 +16,8 @@ export declare const startParamsSchema: z.ZodObject<{
|
|
|
16
16
|
max_bitrate: z.ZodNumber;
|
|
17
17
|
balancer: z.ZodDefault<z.ZodEnum<{
|
|
18
18
|
adaptive: "adaptive";
|
|
19
|
-
fixed: "fixed";
|
|
20
19
|
aimd: "aimd";
|
|
20
|
+
fixed: "fixed";
|
|
21
21
|
}>>;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
input_id: z.ZodOptional<z.ZodString>;
|
|
@@ -30,8 +30,8 @@ export declare const startParamsSchema: z.ZodObject<{
|
|
|
30
30
|
audio: z.ZodOptional<z.ZodObject<{
|
|
31
31
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
32
32
|
default: "default";
|
|
33
|
-
none: "none";
|
|
34
33
|
device: "device";
|
|
34
|
+
none: "none";
|
|
35
35
|
}>>;
|
|
36
36
|
device: z.ZodOptional<z.ZodString>;
|
|
37
37
|
codec: z.ZodOptional<z.ZodString>;
|
|
@@ -44,13 +44,13 @@ export declare const startParamsSchema: z.ZodObject<{
|
|
|
44
44
|
}>>;
|
|
45
45
|
input_mode: z.ZodOptional<z.ZodEnum<{
|
|
46
46
|
audio: "audio";
|
|
47
|
+
camlink: "camlink";
|
|
47
48
|
hdmi: "hdmi";
|
|
48
|
-
uvc_h264: "uvc_h264";
|
|
49
|
-
uvc_h265: "uvc_h265";
|
|
50
49
|
mjpeg: "mjpeg";
|
|
51
|
-
camlink: "camlink";
|
|
52
|
-
test: "test";
|
|
53
50
|
network: "network";
|
|
51
|
+
test: "test";
|
|
52
|
+
uvc_h264: "uvc_h264";
|
|
53
|
+
uvc_h265: "uvc_h265";
|
|
54
54
|
}>>;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
export type StartParams = z.infer<typeof startParamsSchema>;
|
|
@@ -59,8 +59,8 @@ export declare const startResultSchema: z.ZodObject<{
|
|
|
59
59
|
state: z.ZodEnum<{
|
|
60
60
|
idle: "idle";
|
|
61
61
|
starting: "starting";
|
|
62
|
-
streaming: "streaming";
|
|
63
62
|
stopping: "stopping";
|
|
63
|
+
streaming: "streaming";
|
|
64
64
|
}>;
|
|
65
65
|
}, z.core.$strip>;
|
|
66
66
|
export type StartResult = z.infer<typeof startResultSchema>;
|
|
@@ -72,8 +72,8 @@ export declare const stopResultSchema: z.ZodObject<{
|
|
|
72
72
|
state: z.ZodEnum<{
|
|
73
73
|
idle: "idle";
|
|
74
74
|
starting: "starting";
|
|
75
|
-
streaming: "streaming";
|
|
76
75
|
stopping: "stopping";
|
|
76
|
+
streaming: "streaming";
|
|
77
77
|
}>;
|
|
78
78
|
}, z.core.$strip>;
|
|
79
79
|
export type StopResult = z.infer<typeof stopResultSchema>;
|
|
@@ -83,8 +83,8 @@ export declare const reloadConfigParamsSchema: z.ZodObject<{
|
|
|
83
83
|
max_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
84
84
|
balancer: z.ZodOptional<z.ZodEnum<{
|
|
85
85
|
adaptive: "adaptive";
|
|
86
|
-
fixed: "fixed";
|
|
87
86
|
aimd: "aimd";
|
|
87
|
+
fixed: "fixed";
|
|
88
88
|
}>>;
|
|
89
89
|
}, z.core.$strip>>;
|
|
90
90
|
srt: z.ZodOptional<z.ZodObject<{
|
|
@@ -95,6 +95,10 @@ export declare const reloadConfigParamsSchema: z.ZodObject<{
|
|
|
95
95
|
delay_ms_signed: z.ZodOptional<z.ZodNumber>;
|
|
96
96
|
meter_device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
97
|
}, z.core.$strip>>;
|
|
98
|
+
preview_encode: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
hardware: "hardware";
|
|
100
|
+
software: "software";
|
|
101
|
+
}>>;
|
|
98
102
|
}, z.core.$strip>;
|
|
99
103
|
export type ReloadConfigParams = z.infer<typeof reloadConfigParamsSchema>;
|
|
100
104
|
export declare const reloadConfigResultSchema: z.ZodObject<{
|
|
@@ -104,8 +108,8 @@ export declare const reloadConfigResultSchema: z.ZodObject<{
|
|
|
104
108
|
max_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
105
109
|
balancer: z.ZodOptional<z.ZodEnum<{
|
|
106
110
|
adaptive: "adaptive";
|
|
107
|
-
fixed: "fixed";
|
|
108
111
|
aimd: "aimd";
|
|
112
|
+
fixed: "fixed";
|
|
109
113
|
}>>;
|
|
110
114
|
}, z.core.$strip>>;
|
|
111
115
|
srt: z.ZodOptional<z.ZodObject<{
|
|
@@ -116,6 +120,10 @@ export declare const reloadConfigResultSchema: z.ZodObject<{
|
|
|
116
120
|
delay_ms_signed: z.ZodOptional<z.ZodNumber>;
|
|
117
121
|
meter_device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
122
|
}, z.core.$strip>>;
|
|
123
|
+
preview_encode: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
hardware: "hardware";
|
|
125
|
+
software: "software";
|
|
126
|
+
}>>;
|
|
119
127
|
}, z.core.$strip>;
|
|
120
128
|
bitrate_control: z.ZodOptional<z.ZodEnum<{
|
|
121
129
|
encoder: "encoder";
|
|
@@ -142,39 +150,39 @@ export type SetBitrateResult = z.infer<typeof setBitrateResultSchema>;
|
|
|
142
150
|
export declare const switchInputParamsSchema: z.ZodObject<{
|
|
143
151
|
input_id: z.ZodString;
|
|
144
152
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
145
|
-
manual: "manual";
|
|
146
153
|
auto: "auto";
|
|
154
|
+
manual: "manual";
|
|
147
155
|
}>>;
|
|
148
156
|
}, z.core.$strip>;
|
|
149
157
|
export type SwitchInputParams = z.infer<typeof switchInputParamsSchema>;
|
|
150
158
|
export declare const switchInputResultSchema: z.ZodObject<{
|
|
151
159
|
active_input: z.ZodString;
|
|
152
160
|
mode: z.ZodEnum<{
|
|
153
|
-
manual: "manual";
|
|
154
161
|
auto: "auto";
|
|
162
|
+
manual: "manual";
|
|
155
163
|
}>;
|
|
156
164
|
}, z.core.$strip>;
|
|
157
165
|
export type SwitchInputResult = z.infer<typeof switchInputResultSchema>;
|
|
158
166
|
export declare const switchAudioParamsSchema: z.ZodObject<{
|
|
159
167
|
audio_input_id: z.ZodString;
|
|
160
168
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
161
|
-
manual: "manual";
|
|
162
169
|
auto: "auto";
|
|
170
|
+
manual: "manual";
|
|
163
171
|
}>>;
|
|
164
172
|
}, z.core.$strip>;
|
|
165
173
|
export type SwitchAudioParams = z.infer<typeof switchAudioParamsSchema>;
|
|
166
174
|
export declare const switchAudioResultSchema: z.ZodObject<{
|
|
167
175
|
active_audio_input: z.ZodString;
|
|
168
176
|
mode: z.ZodEnum<{
|
|
169
|
-
manual: "manual";
|
|
170
177
|
auto: "auto";
|
|
178
|
+
manual: "manual";
|
|
171
179
|
}>;
|
|
172
180
|
}, z.core.$strip>;
|
|
173
181
|
export type SwitchAudioResult = z.infer<typeof switchAudioResultSchema>;
|
|
174
182
|
export declare const listDevicesParamsSchema: z.ZodOptional<z.ZodObject<{
|
|
175
183
|
media_class: z.ZodOptional<z.ZodEnum<{
|
|
176
|
-
video: "video";
|
|
177
184
|
audio: "audio";
|
|
185
|
+
video: "video";
|
|
178
186
|
}>>;
|
|
179
187
|
}, z.core.$strip>>;
|
|
180
188
|
export type ListDevicesParams = z.infer<typeof listDevicesParamsSchema>;
|
|
@@ -184,8 +192,8 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
184
192
|
device_path: z.ZodString;
|
|
185
193
|
display_name: z.ZodString;
|
|
186
194
|
media_class: z.ZodEnum<{
|
|
187
|
-
video: "video";
|
|
188
195
|
audio: "audio";
|
|
196
|
+
video: "video";
|
|
189
197
|
}>;
|
|
190
198
|
caps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
191
199
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -195,25 +203,25 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
195
203
|
}, z.core.$strip>>>;
|
|
196
204
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
197
205
|
audio: "audio";
|
|
206
|
+
camlink: "camlink";
|
|
198
207
|
hdmi: "hdmi";
|
|
199
|
-
uvc_h264: "uvc_h264";
|
|
200
|
-
uvc_h265: "uvc_h265";
|
|
201
208
|
mjpeg: "mjpeg";
|
|
202
|
-
camlink: "camlink";
|
|
203
|
-
test: "test";
|
|
204
209
|
network: "network";
|
|
210
|
+
test: "test";
|
|
211
|
+
uvc_h264: "uvc_h264";
|
|
212
|
+
uvc_h265: "uvc_h265";
|
|
205
213
|
}>>;
|
|
206
214
|
modes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
207
215
|
media_type: z.ZodString;
|
|
208
216
|
pipeline_kind: z.ZodEnum<{
|
|
209
217
|
audio: "audio";
|
|
218
|
+
camlink: "camlink";
|
|
210
219
|
hdmi: "hdmi";
|
|
211
|
-
uvc_h264: "uvc_h264";
|
|
212
|
-
uvc_h265: "uvc_h265";
|
|
213
220
|
mjpeg: "mjpeg";
|
|
214
|
-
camlink: "camlink";
|
|
215
|
-
test: "test";
|
|
216
221
|
network: "network";
|
|
222
|
+
test: "test";
|
|
223
|
+
uvc_h264: "uvc_h264";
|
|
224
|
+
uvc_h265: "uvc_h265";
|
|
217
225
|
}>;
|
|
218
226
|
caps: z.ZodArray<z.ZodObject<{
|
|
219
227
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -225,10 +233,10 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
225
233
|
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
226
234
|
product_name: z.ZodOptional<z.ZodString>;
|
|
227
235
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
228
|
-
hdmi: "hdmi";
|
|
229
|
-
usb: "usb";
|
|
230
236
|
bluetooth: "bluetooth";
|
|
237
|
+
hdmi: "hdmi";
|
|
231
238
|
onboard: "onboard";
|
|
239
|
+
usb: "usb";
|
|
232
240
|
}>>;
|
|
233
241
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
234
242
|
physical_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -237,42 +245,42 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
237
245
|
}, z.core.$strip>;
|
|
238
246
|
export type ListDevicesResult = z.infer<typeof listDevicesResultSchema>;
|
|
239
247
|
export declare const eventTopicSchema: z.ZodEnum<{
|
|
240
|
-
|
|
241
|
-
device: "device";
|
|
248
|
+
"audio-level": "audio-level";
|
|
242
249
|
bitrate: "bitrate";
|
|
250
|
+
"config-change": "config-change";
|
|
251
|
+
device: "device";
|
|
252
|
+
error: "error";
|
|
253
|
+
preview: "preview";
|
|
254
|
+
"srt-stats": "srt-stats";
|
|
243
255
|
status: "status";
|
|
244
256
|
switch: "switch";
|
|
245
|
-
"srt-stats": "srt-stats";
|
|
246
|
-
preview: "preview";
|
|
247
|
-
"audio-level": "audio-level";
|
|
248
|
-
"config-change": "config-change";
|
|
249
257
|
}>;
|
|
250
258
|
export type EventTopic = z.infer<typeof eventTopicSchema>;
|
|
251
259
|
export declare const subscribeEventsParamsSchema: z.ZodObject<{
|
|
252
260
|
topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
253
|
-
|
|
254
|
-
device: "device";
|
|
261
|
+
"audio-level": "audio-level";
|
|
255
262
|
bitrate: "bitrate";
|
|
263
|
+
"config-change": "config-change";
|
|
264
|
+
device: "device";
|
|
265
|
+
error: "error";
|
|
266
|
+
preview: "preview";
|
|
267
|
+
"srt-stats": "srt-stats";
|
|
256
268
|
status: "status";
|
|
257
269
|
switch: "switch";
|
|
258
|
-
"srt-stats": "srt-stats";
|
|
259
|
-
preview: "preview";
|
|
260
|
-
"audio-level": "audio-level";
|
|
261
|
-
"config-change": "config-change";
|
|
262
270
|
}>>>;
|
|
263
271
|
}, z.core.$strip>;
|
|
264
272
|
export type SubscribeEventsParams = z.infer<typeof subscribeEventsParamsSchema>;
|
|
265
273
|
export declare const subscribeEventsResultSchema: z.ZodObject<{
|
|
266
274
|
subscribed: z.ZodArray<z.ZodEnum<{
|
|
267
|
-
|
|
268
|
-
device: "device";
|
|
275
|
+
"audio-level": "audio-level";
|
|
269
276
|
bitrate: "bitrate";
|
|
277
|
+
"config-change": "config-change";
|
|
278
|
+
device: "device";
|
|
279
|
+
error: "error";
|
|
280
|
+
preview: "preview";
|
|
281
|
+
"srt-stats": "srt-stats";
|
|
270
282
|
status: "status";
|
|
271
283
|
switch: "switch";
|
|
272
|
-
"srt-stats": "srt-stats";
|
|
273
|
-
preview: "preview";
|
|
274
|
-
"audio-level": "audio-level";
|
|
275
|
-
"config-change": "config-change";
|
|
276
284
|
}>>;
|
|
277
285
|
}, z.core.$strip>;
|
|
278
286
|
export type SubscribeEventsResult = z.infer<typeof subscribeEventsResultSchema>;
|
|
@@ -342,10 +350,10 @@ export declare const platformCapsSchema: z.ZodObject<{
|
|
|
342
350
|
hardware_accelerated: z.ZodBoolean;
|
|
343
351
|
max_resolution: z.ZodString;
|
|
344
352
|
hardware_kind: z.ZodOptional<z.ZodEnum<{
|
|
345
|
-
|
|
353
|
+
generic: "generic";
|
|
346
354
|
jetson: "jetson";
|
|
347
355
|
n100: "n100";
|
|
348
|
-
|
|
356
|
+
rk3588: "rk3588";
|
|
349
357
|
}>>;
|
|
350
358
|
source: z.ZodOptional<z.ZodEnum<{
|
|
351
359
|
detected: "detected";
|
|
@@ -357,6 +365,7 @@ export declare const previewAvailabilitySchema: z.ZodObject<{
|
|
|
357
365
|
enabled: z.ZodBoolean;
|
|
358
366
|
port: z.ZodOptional<z.ZodNumber>;
|
|
359
367
|
bound: z.ZodBoolean;
|
|
368
|
+
preview_hw_capability: z.ZodOptional<z.ZodBoolean>;
|
|
360
369
|
}, z.core.$strip>;
|
|
361
370
|
export type PreviewAvailability = z.infer<typeof previewAvailabilitySchema>;
|
|
362
371
|
export declare const getCapabilitiesResultSchema: z.ZodObject<{
|
|
@@ -365,10 +374,10 @@ export declare const getCapabilitiesResultSchema: z.ZodObject<{
|
|
|
365
374
|
hardware_accelerated: z.ZodBoolean;
|
|
366
375
|
max_resolution: z.ZodString;
|
|
367
376
|
hardware_kind: z.ZodOptional<z.ZodEnum<{
|
|
368
|
-
|
|
377
|
+
generic: "generic";
|
|
369
378
|
jetson: "jetson";
|
|
370
379
|
n100: "n100";
|
|
371
|
-
|
|
380
|
+
rk3588: "rk3588";
|
|
372
381
|
}>>;
|
|
373
382
|
source: z.ZodOptional<z.ZodEnum<{
|
|
374
383
|
detected: "detected";
|
|
@@ -404,6 +413,7 @@ export declare const getCapabilitiesResultSchema: z.ZodObject<{
|
|
|
404
413
|
enabled: z.ZodBoolean;
|
|
405
414
|
port: z.ZodOptional<z.ZodNumber>;
|
|
406
415
|
bound: z.ZodBoolean;
|
|
416
|
+
preview_hw_capability: z.ZodOptional<z.ZodBoolean>;
|
|
407
417
|
}, z.core.$strip>>;
|
|
408
418
|
network_embedded_audio: z.ZodOptional<z.ZodBoolean>;
|
|
409
419
|
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -420,29 +430,29 @@ export declare const changeConfigParamsSchema: z.ZodObject<{
|
|
|
420
430
|
input_id: z.ZodOptional<z.ZodString>;
|
|
421
431
|
input_mode: z.ZodOptional<z.ZodEnum<{
|
|
422
432
|
audio: "audio";
|
|
433
|
+
camlink: "camlink";
|
|
423
434
|
hdmi: "hdmi";
|
|
424
|
-
uvc_h264: "uvc_h264";
|
|
425
|
-
uvc_h265: "uvc_h265";
|
|
426
435
|
mjpeg: "mjpeg";
|
|
427
|
-
camlink: "camlink";
|
|
428
|
-
test: "test";
|
|
429
436
|
network: "network";
|
|
437
|
+
test: "test";
|
|
438
|
+
uvc_h264: "uvc_h264";
|
|
439
|
+
uvc_h265: "uvc_h265";
|
|
430
440
|
}>>;
|
|
431
441
|
}, z.core.$strip>;
|
|
432
442
|
export type ChangeConfigParams = z.infer<typeof changeConfigParamsSchema>;
|
|
433
443
|
export declare const changeConfigResultSchema: z.ZodObject<{
|
|
434
444
|
attempt_id: z.ZodString;
|
|
435
445
|
phase: z.ZodEnum<{
|
|
436
|
-
applying: "applying";
|
|
437
446
|
applied: "applied";
|
|
447
|
+
applying: "applying";
|
|
438
448
|
reverted: "reverted";
|
|
439
449
|
rollback_failed: "rollback_failed";
|
|
440
450
|
}>;
|
|
441
451
|
state: z.ZodEnum<{
|
|
442
452
|
idle: "idle";
|
|
443
453
|
starting: "starting";
|
|
444
|
-
streaming: "streaming";
|
|
445
454
|
stopping: "stopping";
|
|
455
|
+
streaming: "streaming";
|
|
446
456
|
}>;
|
|
447
457
|
reason: z.ZodOptional<z.ZodString>;
|
|
448
458
|
}, z.core.$strip>;
|
|
@@ -454,9 +464,9 @@ export type ChangeConfigResult = z.infer<typeof changeConfigResultSchema>;
|
|
|
454
464
|
* refuses to build a second session that would race it. Mirrors the Rust
|
|
455
465
|
* `REASON_TEARDOWN_TIMEOUT`; consumers render it distinctly.
|
|
456
466
|
*/
|
|
457
|
-
export declare const REASON_TEARDOWN_TIMEOUT:
|
|
467
|
+
export declare const REASON_TEARDOWN_TIMEOUT: 'teardown_timeout';
|
|
458
468
|
/** The eight v1 control methods (the literal JSON-RPC `method` strings). */
|
|
459
|
-
export declare const V1_METHODS: readonly [
|
|
469
|
+
export declare const V1_METHODS: readonly ['start', 'stop', 'reload-config', 'set-bitrate', 'switch-input', 'list-devices', 'subscribe-events', 'preview-session'];
|
|
460
470
|
export type V1Method = (typeof V1_METHODS)[number];
|
|
461
471
|
/**
|
|
462
472
|
* method → { params, result } Zod schema pair. `hello` is the handshake; the
|
|
@@ -493,8 +503,8 @@ export declare const requestSchemas: {
|
|
|
493
503
|
max_bitrate: z.ZodNumber;
|
|
494
504
|
balancer: z.ZodDefault<z.ZodEnum<{
|
|
495
505
|
adaptive: "adaptive";
|
|
496
|
-
fixed: "fixed";
|
|
497
506
|
aimd: "aimd";
|
|
507
|
+
fixed: "fixed";
|
|
498
508
|
}>>;
|
|
499
509
|
}, z.core.$strip>;
|
|
500
510
|
input_id: z.ZodOptional<z.ZodString>;
|
|
@@ -507,8 +517,8 @@ export declare const requestSchemas: {
|
|
|
507
517
|
audio: z.ZodOptional<z.ZodObject<{
|
|
508
518
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
509
519
|
default: "default";
|
|
510
|
-
none: "none";
|
|
511
520
|
device: "device";
|
|
521
|
+
none: "none";
|
|
512
522
|
}>>;
|
|
513
523
|
device: z.ZodOptional<z.ZodString>;
|
|
514
524
|
codec: z.ZodOptional<z.ZodString>;
|
|
@@ -521,13 +531,13 @@ export declare const requestSchemas: {
|
|
|
521
531
|
}>>;
|
|
522
532
|
input_mode: z.ZodOptional<z.ZodEnum<{
|
|
523
533
|
audio: "audio";
|
|
534
|
+
camlink: "camlink";
|
|
524
535
|
hdmi: "hdmi";
|
|
525
|
-
uvc_h264: "uvc_h264";
|
|
526
|
-
uvc_h265: "uvc_h265";
|
|
527
536
|
mjpeg: "mjpeg";
|
|
528
|
-
camlink: "camlink";
|
|
529
|
-
test: "test";
|
|
530
537
|
network: "network";
|
|
538
|
+
test: "test";
|
|
539
|
+
uvc_h264: "uvc_h264";
|
|
540
|
+
uvc_h265: "uvc_h265";
|
|
531
541
|
}>>;
|
|
532
542
|
}, z.core.$strip>;
|
|
533
543
|
readonly result: z.ZodObject<{
|
|
@@ -535,8 +545,8 @@ export declare const requestSchemas: {
|
|
|
535
545
|
state: z.ZodEnum<{
|
|
536
546
|
idle: "idle";
|
|
537
547
|
starting: "starting";
|
|
538
|
-
streaming: "streaming";
|
|
539
548
|
stopping: "stopping";
|
|
549
|
+
streaming: "streaming";
|
|
540
550
|
}>;
|
|
541
551
|
}, z.core.$strip>;
|
|
542
552
|
};
|
|
@@ -548,20 +558,20 @@ export declare const requestSchemas: {
|
|
|
548
558
|
state: z.ZodEnum<{
|
|
549
559
|
idle: "idle";
|
|
550
560
|
starting: "starting";
|
|
551
|
-
streaming: "streaming";
|
|
552
561
|
stopping: "stopping";
|
|
562
|
+
streaming: "streaming";
|
|
553
563
|
}>;
|
|
554
564
|
}, z.core.$strip>;
|
|
555
565
|
};
|
|
556
|
-
readonly
|
|
566
|
+
readonly 'reload-config': {
|
|
557
567
|
readonly params: z.ZodObject<{
|
|
558
568
|
bitrate: z.ZodOptional<z.ZodObject<{
|
|
559
569
|
min_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
560
570
|
max_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
561
571
|
balancer: z.ZodOptional<z.ZodEnum<{
|
|
562
572
|
adaptive: "adaptive";
|
|
563
|
-
fixed: "fixed";
|
|
564
573
|
aimd: "aimd";
|
|
574
|
+
fixed: "fixed";
|
|
565
575
|
}>>;
|
|
566
576
|
}, z.core.$strip>>;
|
|
567
577
|
srt: z.ZodOptional<z.ZodObject<{
|
|
@@ -572,6 +582,10 @@ export declare const requestSchemas: {
|
|
|
572
582
|
delay_ms_signed: z.ZodOptional<z.ZodNumber>;
|
|
573
583
|
meter_device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
574
584
|
}, z.core.$strip>>;
|
|
585
|
+
preview_encode: z.ZodOptional<z.ZodEnum<{
|
|
586
|
+
hardware: "hardware";
|
|
587
|
+
software: "software";
|
|
588
|
+
}>>;
|
|
575
589
|
}, z.core.$strip>;
|
|
576
590
|
readonly result: z.ZodObject<{
|
|
577
591
|
applied: z.ZodObject<{
|
|
@@ -580,8 +594,8 @@ export declare const requestSchemas: {
|
|
|
580
594
|
max_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
581
595
|
balancer: z.ZodOptional<z.ZodEnum<{
|
|
582
596
|
adaptive: "adaptive";
|
|
583
|
-
fixed: "fixed";
|
|
584
597
|
aimd: "aimd";
|
|
598
|
+
fixed: "fixed";
|
|
585
599
|
}>>;
|
|
586
600
|
}, z.core.$strip>>;
|
|
587
601
|
srt: z.ZodOptional<z.ZodObject<{
|
|
@@ -592,6 +606,10 @@ export declare const requestSchemas: {
|
|
|
592
606
|
delay_ms_signed: z.ZodOptional<z.ZodNumber>;
|
|
593
607
|
meter_device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
594
608
|
}, z.core.$strip>>;
|
|
609
|
+
preview_encode: z.ZodOptional<z.ZodEnum<{
|
|
610
|
+
hardware: "hardware";
|
|
611
|
+
software: "software";
|
|
612
|
+
}>>;
|
|
595
613
|
}, z.core.$strip>;
|
|
596
614
|
bitrate_control: z.ZodOptional<z.ZodEnum<{
|
|
597
615
|
encoder: "encoder";
|
|
@@ -600,7 +618,7 @@ export declare const requestSchemas: {
|
|
|
600
618
|
reason: z.ZodOptional<z.ZodString>;
|
|
601
619
|
}, z.core.$strip>;
|
|
602
620
|
};
|
|
603
|
-
readonly
|
|
621
|
+
readonly 'set-bitrate': {
|
|
604
622
|
readonly params: z.ZodObject<{
|
|
605
623
|
max_bitrate: z.ZodNumber;
|
|
606
624
|
}, z.core.$strip>;
|
|
@@ -615,27 +633,27 @@ export declare const requestSchemas: {
|
|
|
615
633
|
reason: z.ZodOptional<z.ZodString>;
|
|
616
634
|
}, z.core.$strip>;
|
|
617
635
|
};
|
|
618
|
-
readonly
|
|
636
|
+
readonly 'switch-input': {
|
|
619
637
|
readonly params: z.ZodObject<{
|
|
620
638
|
input_id: z.ZodString;
|
|
621
639
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
622
|
-
manual: "manual";
|
|
623
640
|
auto: "auto";
|
|
641
|
+
manual: "manual";
|
|
624
642
|
}>>;
|
|
625
643
|
}, z.core.$strip>;
|
|
626
644
|
readonly result: z.ZodObject<{
|
|
627
645
|
active_input: z.ZodString;
|
|
628
646
|
mode: z.ZodEnum<{
|
|
629
|
-
manual: "manual";
|
|
630
647
|
auto: "auto";
|
|
648
|
+
manual: "manual";
|
|
631
649
|
}>;
|
|
632
650
|
}, z.core.$strip>;
|
|
633
651
|
};
|
|
634
|
-
readonly
|
|
652
|
+
readonly 'list-devices': {
|
|
635
653
|
readonly params: z.ZodOptional<z.ZodObject<{
|
|
636
654
|
media_class: z.ZodOptional<z.ZodEnum<{
|
|
637
|
-
video: "video";
|
|
638
655
|
audio: "audio";
|
|
656
|
+
video: "video";
|
|
639
657
|
}>>;
|
|
640
658
|
}, z.core.$strip>>;
|
|
641
659
|
readonly result: z.ZodObject<{
|
|
@@ -644,8 +662,8 @@ export declare const requestSchemas: {
|
|
|
644
662
|
device_path: z.ZodString;
|
|
645
663
|
display_name: z.ZodString;
|
|
646
664
|
media_class: z.ZodEnum<{
|
|
647
|
-
video: "video";
|
|
648
665
|
audio: "audio";
|
|
666
|
+
video: "video";
|
|
649
667
|
}>;
|
|
650
668
|
caps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
651
669
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -655,25 +673,25 @@ export declare const requestSchemas: {
|
|
|
655
673
|
}, z.core.$strip>>>;
|
|
656
674
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
657
675
|
audio: "audio";
|
|
676
|
+
camlink: "camlink";
|
|
658
677
|
hdmi: "hdmi";
|
|
659
|
-
uvc_h264: "uvc_h264";
|
|
660
|
-
uvc_h265: "uvc_h265";
|
|
661
678
|
mjpeg: "mjpeg";
|
|
662
|
-
camlink: "camlink";
|
|
663
|
-
test: "test";
|
|
664
679
|
network: "network";
|
|
680
|
+
test: "test";
|
|
681
|
+
uvc_h264: "uvc_h264";
|
|
682
|
+
uvc_h265: "uvc_h265";
|
|
665
683
|
}>>;
|
|
666
684
|
modes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
667
685
|
media_type: z.ZodString;
|
|
668
686
|
pipeline_kind: z.ZodEnum<{
|
|
669
687
|
audio: "audio";
|
|
688
|
+
camlink: "camlink";
|
|
670
689
|
hdmi: "hdmi";
|
|
671
|
-
uvc_h264: "uvc_h264";
|
|
672
|
-
uvc_h265: "uvc_h265";
|
|
673
690
|
mjpeg: "mjpeg";
|
|
674
|
-
camlink: "camlink";
|
|
675
|
-
test: "test";
|
|
676
691
|
network: "network";
|
|
692
|
+
test: "test";
|
|
693
|
+
uvc_h264: "uvc_h264";
|
|
694
|
+
uvc_h265: "uvc_h265";
|
|
677
695
|
}>;
|
|
678
696
|
caps: z.ZodArray<z.ZodObject<{
|
|
679
697
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -685,10 +703,10 @@ export declare const requestSchemas: {
|
|
|
685
703
|
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
686
704
|
product_name: z.ZodOptional<z.ZodString>;
|
|
687
705
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
688
|
-
hdmi: "hdmi";
|
|
689
|
-
usb: "usb";
|
|
690
706
|
bluetooth: "bluetooth";
|
|
707
|
+
hdmi: "hdmi";
|
|
691
708
|
onboard: "onboard";
|
|
709
|
+
usb: "usb";
|
|
692
710
|
}>>;
|
|
693
711
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
694
712
|
physical_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -696,35 +714,35 @@ export declare const requestSchemas: {
|
|
|
696
714
|
}, z.core.$strip>>;
|
|
697
715
|
}, z.core.$strip>;
|
|
698
716
|
};
|
|
699
|
-
readonly
|
|
717
|
+
readonly 'subscribe-events': {
|
|
700
718
|
readonly params: z.ZodObject<{
|
|
701
719
|
topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
702
|
-
|
|
703
|
-
device: "device";
|
|
720
|
+
"audio-level": "audio-level";
|
|
704
721
|
bitrate: "bitrate";
|
|
722
|
+
"config-change": "config-change";
|
|
723
|
+
device: "device";
|
|
724
|
+
error: "error";
|
|
725
|
+
preview: "preview";
|
|
726
|
+
"srt-stats": "srt-stats";
|
|
705
727
|
status: "status";
|
|
706
728
|
switch: "switch";
|
|
707
|
-
"srt-stats": "srt-stats";
|
|
708
|
-
preview: "preview";
|
|
709
|
-
"audio-level": "audio-level";
|
|
710
|
-
"config-change": "config-change";
|
|
711
729
|
}>>>;
|
|
712
730
|
}, z.core.$strip>;
|
|
713
731
|
readonly result: z.ZodObject<{
|
|
714
732
|
subscribed: z.ZodArray<z.ZodEnum<{
|
|
715
|
-
|
|
716
|
-
device: "device";
|
|
733
|
+
"audio-level": "audio-level";
|
|
717
734
|
bitrate: "bitrate";
|
|
735
|
+
"config-change": "config-change";
|
|
736
|
+
device: "device";
|
|
737
|
+
error: "error";
|
|
738
|
+
preview: "preview";
|
|
739
|
+
"srt-stats": "srt-stats";
|
|
718
740
|
status: "status";
|
|
719
741
|
switch: "switch";
|
|
720
|
-
"srt-stats": "srt-stats";
|
|
721
|
-
preview: "preview";
|
|
722
|
-
"audio-level": "audio-level";
|
|
723
|
-
"config-change": "config-change";
|
|
724
742
|
}>>;
|
|
725
743
|
}, z.core.$strip>;
|
|
726
744
|
};
|
|
727
|
-
readonly
|
|
745
|
+
readonly 'preview-session': {
|
|
728
746
|
readonly params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
729
747
|
action: z.ZodLiteral<"start">;
|
|
730
748
|
tier: z.ZodEnum<{
|