@ceralive/cerastream 2026.7.6 → 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 +98 -98
- package/dist/events.js +30 -30
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/messages.d.ts +103 -103
- package/dist/messages.js +40 -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 +37 -37
- package/dist/types.js +30 -40
- 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<{
|
|
@@ -96,8 +96,8 @@ export declare const reloadConfigParamsSchema: z.ZodObject<{
|
|
|
96
96
|
meter_device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
97
|
}, z.core.$strip>>;
|
|
98
98
|
preview_encode: z.ZodOptional<z.ZodEnum<{
|
|
99
|
-
software: "software";
|
|
100
99
|
hardware: "hardware";
|
|
100
|
+
software: "software";
|
|
101
101
|
}>>;
|
|
102
102
|
}, z.core.$strip>;
|
|
103
103
|
export type ReloadConfigParams = z.infer<typeof reloadConfigParamsSchema>;
|
|
@@ -108,8 +108,8 @@ export declare const reloadConfigResultSchema: z.ZodObject<{
|
|
|
108
108
|
max_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
109
109
|
balancer: z.ZodOptional<z.ZodEnum<{
|
|
110
110
|
adaptive: "adaptive";
|
|
111
|
-
fixed: "fixed";
|
|
112
111
|
aimd: "aimd";
|
|
112
|
+
fixed: "fixed";
|
|
113
113
|
}>>;
|
|
114
114
|
}, z.core.$strip>>;
|
|
115
115
|
srt: z.ZodOptional<z.ZodObject<{
|
|
@@ -121,8 +121,8 @@ export declare const reloadConfigResultSchema: z.ZodObject<{
|
|
|
121
121
|
meter_device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
122
|
}, z.core.$strip>>;
|
|
123
123
|
preview_encode: z.ZodOptional<z.ZodEnum<{
|
|
124
|
-
software: "software";
|
|
125
124
|
hardware: "hardware";
|
|
125
|
+
software: "software";
|
|
126
126
|
}>>;
|
|
127
127
|
}, z.core.$strip>;
|
|
128
128
|
bitrate_control: z.ZodOptional<z.ZodEnum<{
|
|
@@ -150,39 +150,39 @@ export type SetBitrateResult = z.infer<typeof setBitrateResultSchema>;
|
|
|
150
150
|
export declare const switchInputParamsSchema: z.ZodObject<{
|
|
151
151
|
input_id: z.ZodString;
|
|
152
152
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
153
|
-
manual: "manual";
|
|
154
153
|
auto: "auto";
|
|
154
|
+
manual: "manual";
|
|
155
155
|
}>>;
|
|
156
156
|
}, z.core.$strip>;
|
|
157
157
|
export type SwitchInputParams = z.infer<typeof switchInputParamsSchema>;
|
|
158
158
|
export declare const switchInputResultSchema: z.ZodObject<{
|
|
159
159
|
active_input: z.ZodString;
|
|
160
160
|
mode: z.ZodEnum<{
|
|
161
|
-
manual: "manual";
|
|
162
161
|
auto: "auto";
|
|
162
|
+
manual: "manual";
|
|
163
163
|
}>;
|
|
164
164
|
}, z.core.$strip>;
|
|
165
165
|
export type SwitchInputResult = z.infer<typeof switchInputResultSchema>;
|
|
166
166
|
export declare const switchAudioParamsSchema: z.ZodObject<{
|
|
167
167
|
audio_input_id: z.ZodString;
|
|
168
168
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
169
|
-
manual: "manual";
|
|
170
169
|
auto: "auto";
|
|
170
|
+
manual: "manual";
|
|
171
171
|
}>>;
|
|
172
172
|
}, z.core.$strip>;
|
|
173
173
|
export type SwitchAudioParams = z.infer<typeof switchAudioParamsSchema>;
|
|
174
174
|
export declare const switchAudioResultSchema: z.ZodObject<{
|
|
175
175
|
active_audio_input: z.ZodString;
|
|
176
176
|
mode: z.ZodEnum<{
|
|
177
|
-
manual: "manual";
|
|
178
177
|
auto: "auto";
|
|
178
|
+
manual: "manual";
|
|
179
179
|
}>;
|
|
180
180
|
}, z.core.$strip>;
|
|
181
181
|
export type SwitchAudioResult = z.infer<typeof switchAudioResultSchema>;
|
|
182
182
|
export declare const listDevicesParamsSchema: z.ZodOptional<z.ZodObject<{
|
|
183
183
|
media_class: z.ZodOptional<z.ZodEnum<{
|
|
184
|
-
video: "video";
|
|
185
184
|
audio: "audio";
|
|
185
|
+
video: "video";
|
|
186
186
|
}>>;
|
|
187
187
|
}, z.core.$strip>>;
|
|
188
188
|
export type ListDevicesParams = z.infer<typeof listDevicesParamsSchema>;
|
|
@@ -192,8 +192,8 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
192
192
|
device_path: z.ZodString;
|
|
193
193
|
display_name: z.ZodString;
|
|
194
194
|
media_class: z.ZodEnum<{
|
|
195
|
-
video: "video";
|
|
196
195
|
audio: "audio";
|
|
196
|
+
video: "video";
|
|
197
197
|
}>;
|
|
198
198
|
caps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
199
199
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -203,25 +203,25 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
203
203
|
}, z.core.$strip>>>;
|
|
204
204
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
205
205
|
audio: "audio";
|
|
206
|
+
camlink: "camlink";
|
|
206
207
|
hdmi: "hdmi";
|
|
207
|
-
uvc_h264: "uvc_h264";
|
|
208
|
-
uvc_h265: "uvc_h265";
|
|
209
208
|
mjpeg: "mjpeg";
|
|
210
|
-
camlink: "camlink";
|
|
211
|
-
test: "test";
|
|
212
209
|
network: "network";
|
|
210
|
+
test: "test";
|
|
211
|
+
uvc_h264: "uvc_h264";
|
|
212
|
+
uvc_h265: "uvc_h265";
|
|
213
213
|
}>>;
|
|
214
214
|
modes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
215
215
|
media_type: z.ZodString;
|
|
216
216
|
pipeline_kind: z.ZodEnum<{
|
|
217
217
|
audio: "audio";
|
|
218
|
+
camlink: "camlink";
|
|
218
219
|
hdmi: "hdmi";
|
|
219
|
-
uvc_h264: "uvc_h264";
|
|
220
|
-
uvc_h265: "uvc_h265";
|
|
221
220
|
mjpeg: "mjpeg";
|
|
222
|
-
camlink: "camlink";
|
|
223
|
-
test: "test";
|
|
224
221
|
network: "network";
|
|
222
|
+
test: "test";
|
|
223
|
+
uvc_h264: "uvc_h264";
|
|
224
|
+
uvc_h265: "uvc_h265";
|
|
225
225
|
}>;
|
|
226
226
|
caps: z.ZodArray<z.ZodObject<{
|
|
227
227
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -233,10 +233,10 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
233
233
|
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
234
234
|
product_name: z.ZodOptional<z.ZodString>;
|
|
235
235
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
236
|
-
hdmi: "hdmi";
|
|
237
|
-
usb: "usb";
|
|
238
236
|
bluetooth: "bluetooth";
|
|
237
|
+
hdmi: "hdmi";
|
|
239
238
|
onboard: "onboard";
|
|
239
|
+
usb: "usb";
|
|
240
240
|
}>>;
|
|
241
241
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
242
242
|
physical_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -245,42 +245,42 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
245
245
|
}, z.core.$strip>;
|
|
246
246
|
export type ListDevicesResult = z.infer<typeof listDevicesResultSchema>;
|
|
247
247
|
export declare const eventTopicSchema: z.ZodEnum<{
|
|
248
|
-
|
|
249
|
-
device: "device";
|
|
248
|
+
"audio-level": "audio-level";
|
|
250
249
|
bitrate: "bitrate";
|
|
250
|
+
"config-change": "config-change";
|
|
251
|
+
device: "device";
|
|
252
|
+
error: "error";
|
|
253
|
+
preview: "preview";
|
|
254
|
+
"srt-stats": "srt-stats";
|
|
251
255
|
status: "status";
|
|
252
256
|
switch: "switch";
|
|
253
|
-
"srt-stats": "srt-stats";
|
|
254
|
-
preview: "preview";
|
|
255
|
-
"audio-level": "audio-level";
|
|
256
|
-
"config-change": "config-change";
|
|
257
257
|
}>;
|
|
258
258
|
export type EventTopic = z.infer<typeof eventTopicSchema>;
|
|
259
259
|
export declare const subscribeEventsParamsSchema: z.ZodObject<{
|
|
260
260
|
topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
261
|
-
|
|
262
|
-
device: "device";
|
|
261
|
+
"audio-level": "audio-level";
|
|
263
262
|
bitrate: "bitrate";
|
|
263
|
+
"config-change": "config-change";
|
|
264
|
+
device: "device";
|
|
265
|
+
error: "error";
|
|
266
|
+
preview: "preview";
|
|
267
|
+
"srt-stats": "srt-stats";
|
|
264
268
|
status: "status";
|
|
265
269
|
switch: "switch";
|
|
266
|
-
"srt-stats": "srt-stats";
|
|
267
|
-
preview: "preview";
|
|
268
|
-
"audio-level": "audio-level";
|
|
269
|
-
"config-change": "config-change";
|
|
270
270
|
}>>>;
|
|
271
271
|
}, z.core.$strip>;
|
|
272
272
|
export type SubscribeEventsParams = z.infer<typeof subscribeEventsParamsSchema>;
|
|
273
273
|
export declare const subscribeEventsResultSchema: z.ZodObject<{
|
|
274
274
|
subscribed: z.ZodArray<z.ZodEnum<{
|
|
275
|
-
|
|
276
|
-
device: "device";
|
|
275
|
+
"audio-level": "audio-level";
|
|
277
276
|
bitrate: "bitrate";
|
|
277
|
+
"config-change": "config-change";
|
|
278
|
+
device: "device";
|
|
279
|
+
error: "error";
|
|
280
|
+
preview: "preview";
|
|
281
|
+
"srt-stats": "srt-stats";
|
|
278
282
|
status: "status";
|
|
279
283
|
switch: "switch";
|
|
280
|
-
"srt-stats": "srt-stats";
|
|
281
|
-
preview: "preview";
|
|
282
|
-
"audio-level": "audio-level";
|
|
283
|
-
"config-change": "config-change";
|
|
284
284
|
}>>;
|
|
285
285
|
}, z.core.$strip>;
|
|
286
286
|
export type SubscribeEventsResult = z.infer<typeof subscribeEventsResultSchema>;
|
|
@@ -350,10 +350,10 @@ export declare const platformCapsSchema: z.ZodObject<{
|
|
|
350
350
|
hardware_accelerated: z.ZodBoolean;
|
|
351
351
|
max_resolution: z.ZodString;
|
|
352
352
|
hardware_kind: z.ZodOptional<z.ZodEnum<{
|
|
353
|
-
|
|
353
|
+
generic: "generic";
|
|
354
354
|
jetson: "jetson";
|
|
355
355
|
n100: "n100";
|
|
356
|
-
|
|
356
|
+
rk3588: "rk3588";
|
|
357
357
|
}>>;
|
|
358
358
|
source: z.ZodOptional<z.ZodEnum<{
|
|
359
359
|
detected: "detected";
|
|
@@ -374,10 +374,10 @@ export declare const getCapabilitiesResultSchema: z.ZodObject<{
|
|
|
374
374
|
hardware_accelerated: z.ZodBoolean;
|
|
375
375
|
max_resolution: z.ZodString;
|
|
376
376
|
hardware_kind: z.ZodOptional<z.ZodEnum<{
|
|
377
|
-
|
|
377
|
+
generic: "generic";
|
|
378
378
|
jetson: "jetson";
|
|
379
379
|
n100: "n100";
|
|
380
|
-
|
|
380
|
+
rk3588: "rk3588";
|
|
381
381
|
}>>;
|
|
382
382
|
source: z.ZodOptional<z.ZodEnum<{
|
|
383
383
|
detected: "detected";
|
|
@@ -430,29 +430,29 @@ export declare const changeConfigParamsSchema: z.ZodObject<{
|
|
|
430
430
|
input_id: z.ZodOptional<z.ZodString>;
|
|
431
431
|
input_mode: z.ZodOptional<z.ZodEnum<{
|
|
432
432
|
audio: "audio";
|
|
433
|
+
camlink: "camlink";
|
|
433
434
|
hdmi: "hdmi";
|
|
434
|
-
uvc_h264: "uvc_h264";
|
|
435
|
-
uvc_h265: "uvc_h265";
|
|
436
435
|
mjpeg: "mjpeg";
|
|
437
|
-
camlink: "camlink";
|
|
438
|
-
test: "test";
|
|
439
436
|
network: "network";
|
|
437
|
+
test: "test";
|
|
438
|
+
uvc_h264: "uvc_h264";
|
|
439
|
+
uvc_h265: "uvc_h265";
|
|
440
440
|
}>>;
|
|
441
441
|
}, z.core.$strip>;
|
|
442
442
|
export type ChangeConfigParams = z.infer<typeof changeConfigParamsSchema>;
|
|
443
443
|
export declare const changeConfigResultSchema: z.ZodObject<{
|
|
444
444
|
attempt_id: z.ZodString;
|
|
445
445
|
phase: z.ZodEnum<{
|
|
446
|
-
applying: "applying";
|
|
447
446
|
applied: "applied";
|
|
447
|
+
applying: "applying";
|
|
448
448
|
reverted: "reverted";
|
|
449
449
|
rollback_failed: "rollback_failed";
|
|
450
450
|
}>;
|
|
451
451
|
state: z.ZodEnum<{
|
|
452
452
|
idle: "idle";
|
|
453
453
|
starting: "starting";
|
|
454
|
-
streaming: "streaming";
|
|
455
454
|
stopping: "stopping";
|
|
455
|
+
streaming: "streaming";
|
|
456
456
|
}>;
|
|
457
457
|
reason: z.ZodOptional<z.ZodString>;
|
|
458
458
|
}, z.core.$strip>;
|
|
@@ -464,9 +464,9 @@ export type ChangeConfigResult = z.infer<typeof changeConfigResultSchema>;
|
|
|
464
464
|
* refuses to build a second session that would race it. Mirrors the Rust
|
|
465
465
|
* `REASON_TEARDOWN_TIMEOUT`; consumers render it distinctly.
|
|
466
466
|
*/
|
|
467
|
-
export declare const REASON_TEARDOWN_TIMEOUT:
|
|
467
|
+
export declare const REASON_TEARDOWN_TIMEOUT: 'teardown_timeout';
|
|
468
468
|
/** The eight v1 control methods (the literal JSON-RPC `method` strings). */
|
|
469
|
-
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'];
|
|
470
470
|
export type V1Method = (typeof V1_METHODS)[number];
|
|
471
471
|
/**
|
|
472
472
|
* method → { params, result } Zod schema pair. `hello` is the handshake; the
|
|
@@ -503,8 +503,8 @@ export declare const requestSchemas: {
|
|
|
503
503
|
max_bitrate: z.ZodNumber;
|
|
504
504
|
balancer: z.ZodDefault<z.ZodEnum<{
|
|
505
505
|
adaptive: "adaptive";
|
|
506
|
-
fixed: "fixed";
|
|
507
506
|
aimd: "aimd";
|
|
507
|
+
fixed: "fixed";
|
|
508
508
|
}>>;
|
|
509
509
|
}, z.core.$strip>;
|
|
510
510
|
input_id: z.ZodOptional<z.ZodString>;
|
|
@@ -517,8 +517,8 @@ export declare const requestSchemas: {
|
|
|
517
517
|
audio: z.ZodOptional<z.ZodObject<{
|
|
518
518
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
519
519
|
default: "default";
|
|
520
|
-
none: "none";
|
|
521
520
|
device: "device";
|
|
521
|
+
none: "none";
|
|
522
522
|
}>>;
|
|
523
523
|
device: z.ZodOptional<z.ZodString>;
|
|
524
524
|
codec: z.ZodOptional<z.ZodString>;
|
|
@@ -531,13 +531,13 @@ export declare const requestSchemas: {
|
|
|
531
531
|
}>>;
|
|
532
532
|
input_mode: z.ZodOptional<z.ZodEnum<{
|
|
533
533
|
audio: "audio";
|
|
534
|
+
camlink: "camlink";
|
|
534
535
|
hdmi: "hdmi";
|
|
535
|
-
uvc_h264: "uvc_h264";
|
|
536
|
-
uvc_h265: "uvc_h265";
|
|
537
536
|
mjpeg: "mjpeg";
|
|
538
|
-
camlink: "camlink";
|
|
539
|
-
test: "test";
|
|
540
537
|
network: "network";
|
|
538
|
+
test: "test";
|
|
539
|
+
uvc_h264: "uvc_h264";
|
|
540
|
+
uvc_h265: "uvc_h265";
|
|
541
541
|
}>>;
|
|
542
542
|
}, z.core.$strip>;
|
|
543
543
|
readonly result: z.ZodObject<{
|
|
@@ -545,8 +545,8 @@ export declare const requestSchemas: {
|
|
|
545
545
|
state: z.ZodEnum<{
|
|
546
546
|
idle: "idle";
|
|
547
547
|
starting: "starting";
|
|
548
|
-
streaming: "streaming";
|
|
549
548
|
stopping: "stopping";
|
|
549
|
+
streaming: "streaming";
|
|
550
550
|
}>;
|
|
551
551
|
}, z.core.$strip>;
|
|
552
552
|
};
|
|
@@ -558,20 +558,20 @@ export declare const requestSchemas: {
|
|
|
558
558
|
state: z.ZodEnum<{
|
|
559
559
|
idle: "idle";
|
|
560
560
|
starting: "starting";
|
|
561
|
-
streaming: "streaming";
|
|
562
561
|
stopping: "stopping";
|
|
562
|
+
streaming: "streaming";
|
|
563
563
|
}>;
|
|
564
564
|
}, z.core.$strip>;
|
|
565
565
|
};
|
|
566
|
-
readonly
|
|
566
|
+
readonly 'reload-config': {
|
|
567
567
|
readonly params: z.ZodObject<{
|
|
568
568
|
bitrate: z.ZodOptional<z.ZodObject<{
|
|
569
569
|
min_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
570
570
|
max_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
571
571
|
balancer: z.ZodOptional<z.ZodEnum<{
|
|
572
572
|
adaptive: "adaptive";
|
|
573
|
-
fixed: "fixed";
|
|
574
573
|
aimd: "aimd";
|
|
574
|
+
fixed: "fixed";
|
|
575
575
|
}>>;
|
|
576
576
|
}, z.core.$strip>>;
|
|
577
577
|
srt: z.ZodOptional<z.ZodObject<{
|
|
@@ -583,8 +583,8 @@ export declare const requestSchemas: {
|
|
|
583
583
|
meter_device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
584
|
}, z.core.$strip>>;
|
|
585
585
|
preview_encode: z.ZodOptional<z.ZodEnum<{
|
|
586
|
-
software: "software";
|
|
587
586
|
hardware: "hardware";
|
|
587
|
+
software: "software";
|
|
588
588
|
}>>;
|
|
589
589
|
}, z.core.$strip>;
|
|
590
590
|
readonly result: z.ZodObject<{
|
|
@@ -594,8 +594,8 @@ export declare const requestSchemas: {
|
|
|
594
594
|
max_bitrate: z.ZodOptional<z.ZodNumber>;
|
|
595
595
|
balancer: z.ZodOptional<z.ZodEnum<{
|
|
596
596
|
adaptive: "adaptive";
|
|
597
|
-
fixed: "fixed";
|
|
598
597
|
aimd: "aimd";
|
|
598
|
+
fixed: "fixed";
|
|
599
599
|
}>>;
|
|
600
600
|
}, z.core.$strip>>;
|
|
601
601
|
srt: z.ZodOptional<z.ZodObject<{
|
|
@@ -607,8 +607,8 @@ export declare const requestSchemas: {
|
|
|
607
607
|
meter_device: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
608
608
|
}, z.core.$strip>>;
|
|
609
609
|
preview_encode: z.ZodOptional<z.ZodEnum<{
|
|
610
|
-
software: "software";
|
|
611
610
|
hardware: "hardware";
|
|
611
|
+
software: "software";
|
|
612
612
|
}>>;
|
|
613
613
|
}, z.core.$strip>;
|
|
614
614
|
bitrate_control: z.ZodOptional<z.ZodEnum<{
|
|
@@ -618,7 +618,7 @@ export declare const requestSchemas: {
|
|
|
618
618
|
reason: z.ZodOptional<z.ZodString>;
|
|
619
619
|
}, z.core.$strip>;
|
|
620
620
|
};
|
|
621
|
-
readonly
|
|
621
|
+
readonly 'set-bitrate': {
|
|
622
622
|
readonly params: z.ZodObject<{
|
|
623
623
|
max_bitrate: z.ZodNumber;
|
|
624
624
|
}, z.core.$strip>;
|
|
@@ -633,27 +633,27 @@ export declare const requestSchemas: {
|
|
|
633
633
|
reason: z.ZodOptional<z.ZodString>;
|
|
634
634
|
}, z.core.$strip>;
|
|
635
635
|
};
|
|
636
|
-
readonly
|
|
636
|
+
readonly 'switch-input': {
|
|
637
637
|
readonly params: z.ZodObject<{
|
|
638
638
|
input_id: z.ZodString;
|
|
639
639
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
640
|
-
manual: "manual";
|
|
641
640
|
auto: "auto";
|
|
641
|
+
manual: "manual";
|
|
642
642
|
}>>;
|
|
643
643
|
}, z.core.$strip>;
|
|
644
644
|
readonly result: z.ZodObject<{
|
|
645
645
|
active_input: z.ZodString;
|
|
646
646
|
mode: z.ZodEnum<{
|
|
647
|
-
manual: "manual";
|
|
648
647
|
auto: "auto";
|
|
648
|
+
manual: "manual";
|
|
649
649
|
}>;
|
|
650
650
|
}, z.core.$strip>;
|
|
651
651
|
};
|
|
652
|
-
readonly
|
|
652
|
+
readonly 'list-devices': {
|
|
653
653
|
readonly params: z.ZodOptional<z.ZodObject<{
|
|
654
654
|
media_class: z.ZodOptional<z.ZodEnum<{
|
|
655
|
-
video: "video";
|
|
656
655
|
audio: "audio";
|
|
656
|
+
video: "video";
|
|
657
657
|
}>>;
|
|
658
658
|
}, z.core.$strip>>;
|
|
659
659
|
readonly result: z.ZodObject<{
|
|
@@ -662,8 +662,8 @@ export declare const requestSchemas: {
|
|
|
662
662
|
device_path: z.ZodString;
|
|
663
663
|
display_name: z.ZodString;
|
|
664
664
|
media_class: z.ZodEnum<{
|
|
665
|
-
video: "video";
|
|
666
665
|
audio: "audio";
|
|
666
|
+
video: "video";
|
|
667
667
|
}>;
|
|
668
668
|
caps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
669
669
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -673,25 +673,25 @@ export declare const requestSchemas: {
|
|
|
673
673
|
}, z.core.$strip>>>;
|
|
674
674
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
675
675
|
audio: "audio";
|
|
676
|
+
camlink: "camlink";
|
|
676
677
|
hdmi: "hdmi";
|
|
677
|
-
uvc_h264: "uvc_h264";
|
|
678
|
-
uvc_h265: "uvc_h265";
|
|
679
678
|
mjpeg: "mjpeg";
|
|
680
|
-
camlink: "camlink";
|
|
681
|
-
test: "test";
|
|
682
679
|
network: "network";
|
|
680
|
+
test: "test";
|
|
681
|
+
uvc_h264: "uvc_h264";
|
|
682
|
+
uvc_h265: "uvc_h265";
|
|
683
683
|
}>>;
|
|
684
684
|
modes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
685
685
|
media_type: z.ZodString;
|
|
686
686
|
pipeline_kind: z.ZodEnum<{
|
|
687
687
|
audio: "audio";
|
|
688
|
+
camlink: "camlink";
|
|
688
689
|
hdmi: "hdmi";
|
|
689
|
-
uvc_h264: "uvc_h264";
|
|
690
|
-
uvc_h265: "uvc_h265";
|
|
691
690
|
mjpeg: "mjpeg";
|
|
692
|
-
camlink: "camlink";
|
|
693
|
-
test: "test";
|
|
694
691
|
network: "network";
|
|
692
|
+
test: "test";
|
|
693
|
+
uvc_h264: "uvc_h264";
|
|
694
|
+
uvc_h265: "uvc_h265";
|
|
695
695
|
}>;
|
|
696
696
|
caps: z.ZodArray<z.ZodObject<{
|
|
697
697
|
width: z.ZodOptional<z.ZodNumber>;
|
|
@@ -703,10 +703,10 @@ export declare const requestSchemas: {
|
|
|
703
703
|
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
704
704
|
product_name: z.ZodOptional<z.ZodString>;
|
|
705
705
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
706
|
-
hdmi: "hdmi";
|
|
707
|
-
usb: "usb";
|
|
708
706
|
bluetooth: "bluetooth";
|
|
707
|
+
hdmi: "hdmi";
|
|
709
708
|
onboard: "onboard";
|
|
709
|
+
usb: "usb";
|
|
710
710
|
}>>;
|
|
711
711
|
stable_id: z.ZodOptional<z.ZodString>;
|
|
712
712
|
physical_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -714,35 +714,35 @@ export declare const requestSchemas: {
|
|
|
714
714
|
}, z.core.$strip>>;
|
|
715
715
|
}, z.core.$strip>;
|
|
716
716
|
};
|
|
717
|
-
readonly
|
|
717
|
+
readonly 'subscribe-events': {
|
|
718
718
|
readonly params: z.ZodObject<{
|
|
719
719
|
topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
720
|
-
|
|
721
|
-
device: "device";
|
|
720
|
+
"audio-level": "audio-level";
|
|
722
721
|
bitrate: "bitrate";
|
|
722
|
+
"config-change": "config-change";
|
|
723
|
+
device: "device";
|
|
724
|
+
error: "error";
|
|
725
|
+
preview: "preview";
|
|
726
|
+
"srt-stats": "srt-stats";
|
|
723
727
|
status: "status";
|
|
724
728
|
switch: "switch";
|
|
725
|
-
"srt-stats": "srt-stats";
|
|
726
|
-
preview: "preview";
|
|
727
|
-
"audio-level": "audio-level";
|
|
728
|
-
"config-change": "config-change";
|
|
729
729
|
}>>>;
|
|
730
730
|
}, z.core.$strip>;
|
|
731
731
|
readonly result: z.ZodObject<{
|
|
732
732
|
subscribed: z.ZodArray<z.ZodEnum<{
|
|
733
|
-
|
|
734
|
-
device: "device";
|
|
733
|
+
"audio-level": "audio-level";
|
|
735
734
|
bitrate: "bitrate";
|
|
735
|
+
"config-change": "config-change";
|
|
736
|
+
device: "device";
|
|
737
|
+
error: "error";
|
|
738
|
+
preview: "preview";
|
|
739
|
+
"srt-stats": "srt-stats";
|
|
736
740
|
status: "status";
|
|
737
741
|
switch: "switch";
|
|
738
|
-
"srt-stats": "srt-stats";
|
|
739
|
-
preview: "preview";
|
|
740
|
-
"audio-level": "audio-level";
|
|
741
|
-
"config-change": "config-change";
|
|
742
742
|
}>>;
|
|
743
743
|
}, z.core.$strip>;
|
|
744
744
|
};
|
|
745
|
-
readonly
|
|
745
|
+
readonly 'preview-session': {
|
|
746
746
|
readonly params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
747
747
|
action: z.ZodLiteral<"start">;
|
|
748
748
|
tier: z.ZodEnum<{
|