@ceralive/cerastream 2026.7.0 → 2026.7.1
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/events.d.ts +9 -0
- package/dist/events.js +1 -0
- package/dist/messages.d.ts +3 -0
- package/dist/messages.js +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const activeEncodeSchema: z.ZodObject<{
|
|
|
12
12
|
framerate: z.ZodNumber;
|
|
13
13
|
active_input: z.ZodOptional<z.ZodString>;
|
|
14
14
|
decoder: z.ZodOptional<z.ZodString>;
|
|
15
|
+
input_codec: z.ZodOptional<z.ZodString>;
|
|
15
16
|
}, z.core.$strip>;
|
|
16
17
|
export type ActiveEncode = z.infer<typeof activeEncodeSchema>;
|
|
17
18
|
/**
|
|
@@ -46,6 +47,7 @@ export declare const statusEventSchema: z.ZodObject<{
|
|
|
46
47
|
framerate: z.ZodNumber;
|
|
47
48
|
active_input: z.ZodOptional<z.ZodString>;
|
|
48
49
|
decoder: z.ZodOptional<z.ZodString>;
|
|
50
|
+
input_codec: z.ZodOptional<z.ZodString>;
|
|
49
51
|
}, z.core.$strip>>;
|
|
50
52
|
}, z.core.$strip>;
|
|
51
53
|
/** Payload of a {@link statusEventSchema} event. */
|
|
@@ -103,6 +105,7 @@ export declare const deviceEventSchema: z.ZodObject<{
|
|
|
103
105
|
test: "test";
|
|
104
106
|
network: "network";
|
|
105
107
|
}>>;
|
|
108
|
+
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
106
109
|
}, z.core.$strip>;
|
|
107
110
|
}, z.core.$strip>;
|
|
108
111
|
/** Payload of a {@link deviceEventSchema} event. */
|
|
@@ -182,6 +185,7 @@ export declare const eventParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
182
185
|
framerate: z.ZodNumber;
|
|
183
186
|
active_input: z.ZodOptional<z.ZodString>;
|
|
184
187
|
decoder: z.ZodOptional<z.ZodString>;
|
|
188
|
+
input_codec: z.ZodOptional<z.ZodString>;
|
|
185
189
|
}, z.core.$strip>>;
|
|
186
190
|
}, z.core.$strip>, z.ZodObject<{
|
|
187
191
|
type: z.ZodLiteral<"switch">;
|
|
@@ -227,6 +231,7 @@ export declare const eventParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
227
231
|
test: "test";
|
|
228
232
|
network: "network";
|
|
229
233
|
}>>;
|
|
234
|
+
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
230
235
|
}, z.core.$strip>;
|
|
231
236
|
}, z.core.$strip>, z.ZodObject<{
|
|
232
237
|
type: z.ZodLiteral<"bitrate">;
|
|
@@ -289,6 +294,7 @@ export declare const cerastreamEventSchema: z.ZodObject<{
|
|
|
289
294
|
framerate: z.ZodNumber;
|
|
290
295
|
active_input: z.ZodOptional<z.ZodString>;
|
|
291
296
|
decoder: z.ZodOptional<z.ZodString>;
|
|
297
|
+
input_codec: z.ZodOptional<z.ZodString>;
|
|
292
298
|
}, z.core.$strip>>;
|
|
293
299
|
}, z.core.$strip>, z.ZodObject<{
|
|
294
300
|
type: z.ZodLiteral<"switch">;
|
|
@@ -334,6 +340,7 @@ export declare const cerastreamEventSchema: z.ZodObject<{
|
|
|
334
340
|
test: "test";
|
|
335
341
|
network: "network";
|
|
336
342
|
}>>;
|
|
343
|
+
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
337
344
|
}, z.core.$strip>;
|
|
338
345
|
}, z.core.$strip>, z.ZodObject<{
|
|
339
346
|
type: z.ZodLiteral<"bitrate">;
|
|
@@ -398,6 +405,7 @@ export declare const eventSchemas: {
|
|
|
398
405
|
framerate: z.ZodNumber;
|
|
399
406
|
active_input: z.ZodOptional<z.ZodString>;
|
|
400
407
|
decoder: z.ZodOptional<z.ZodString>;
|
|
408
|
+
input_codec: z.ZodOptional<z.ZodString>;
|
|
401
409
|
}, z.core.$strip>>;
|
|
402
410
|
}, z.core.$strip>;
|
|
403
411
|
readonly switch: z.ZodObject<{
|
|
@@ -445,6 +453,7 @@ export declare const eventSchemas: {
|
|
|
445
453
|
test: "test";
|
|
446
454
|
network: "network";
|
|
447
455
|
}>>;
|
|
456
|
+
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
448
457
|
}, z.core.$strip>;
|
|
449
458
|
}, z.core.$strip>;
|
|
450
459
|
readonly bitrate: z.ZodObject<{
|
package/dist/events.js
CHANGED
|
@@ -18,6 +18,7 @@ export const activeEncodeSchema = z.object({
|
|
|
18
18
|
framerate: z.number(), // fps in effect, e.g. 29.97
|
|
19
19
|
active_input: z.string().optional(), // active input id feeding the encode
|
|
20
20
|
decoder: z.string().optional(), // runtime-selected decode element when transcoding
|
|
21
|
+
input_codec: z.string().optional(), // incoming pre-decode codec token: "h264"/"h265"/"mjpeg"
|
|
21
22
|
});
|
|
22
23
|
/**
|
|
23
24
|
* `status` event — stream state change + heartbeat. The trailing fields are
|
package/dist/messages.d.ts
CHANGED
|
@@ -171,6 +171,7 @@ export declare const listDevicesResultSchema: z.ZodObject<{
|
|
|
171
171
|
test: "test";
|
|
172
172
|
network: "network";
|
|
173
173
|
}>>;
|
|
174
|
+
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
174
175
|
}, z.core.$strip>>;
|
|
175
176
|
}, z.core.$strip>;
|
|
176
177
|
export type ListDevicesResult = z.infer<typeof listDevicesResultSchema>;
|
|
@@ -317,6 +318,7 @@ export declare const getCapabilitiesResultSchema: z.ZodObject<{
|
|
|
317
318
|
port: z.ZodOptional<z.ZodNumber>;
|
|
318
319
|
bound: z.ZodBoolean;
|
|
319
320
|
}, z.core.$strip>>;
|
|
321
|
+
network_embedded_audio: z.ZodOptional<z.ZodBoolean>;
|
|
320
322
|
}, z.core.$strip>;
|
|
321
323
|
export type GetCapabilitiesResult = z.infer<typeof getCapabilitiesResultSchema>;
|
|
322
324
|
/** The eight v1 control methods (the literal JSON-RPC `method` strings). */
|
|
@@ -495,6 +497,7 @@ export declare const requestSchemas: {
|
|
|
495
497
|
test: "test";
|
|
496
498
|
network: "network";
|
|
497
499
|
}>>;
|
|
500
|
+
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
498
501
|
}, z.core.$strip>>;
|
|
499
502
|
}, z.core.$strip>;
|
|
500
503
|
};
|
package/dist/messages.js
CHANGED
|
@@ -172,6 +172,7 @@ export const getCapabilitiesResultSchema = z.object({
|
|
|
172
172
|
supported_profiles: z.array(z.string()).optional(), // SRT receive presets the device offers
|
|
173
173
|
profile_catalog_version: z.string().optional(), // semver of the supported_profiles catalog
|
|
174
174
|
preview: previewAvailabilitySchema.optional(), // preview-server availability (unbound vs down)
|
|
175
|
+
network_embedded_audio: z.boolean().optional(), // engine routes network-ingest embedded audio to the mux
|
|
175
176
|
});
|
|
176
177
|
// ---- method registry (count-assertion source of truth) ----
|
|
177
178
|
/** The eight v1 control methods (the literal JSON-RPC `method` strings). */
|
package/dist/types.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export declare const captureDeviceSchema: z.ZodObject<{
|
|
|
158
158
|
test: "test";
|
|
159
159
|
network: "network";
|
|
160
160
|
}>>;
|
|
161
|
+
alsa_card_id: z.ZodOptional<z.ZodString>;
|
|
161
162
|
}, z.core.$strip>;
|
|
162
163
|
export type CaptureDevice = z.infer<typeof captureDeviceSchema>;
|
|
163
164
|
export declare const srtStatsSchema: z.ZodObject<{
|
package/dist/types.js
CHANGED
|
@@ -109,6 +109,7 @@ export const captureDeviceSchema = z.object({
|
|
|
109
109
|
media_class: mediaClassSchema,
|
|
110
110
|
caps: z.array(captureCapSchema).optional(),
|
|
111
111
|
kind: captureDeviceKindSchema.optional(), // additive (0.4.0): engine-typed device family; absent on legacy producers
|
|
112
|
+
alsa_card_id: z.string().optional(), // additive: ALSA card id for media_class:audio devices only; absent on video + legacy producers
|
|
112
113
|
});
|
|
113
114
|
// ---- transport telemetry (srt-stats event payload) ----
|
|
114
115
|
export const srtStatsSchema = z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceralive/cerastream",
|
|
3
|
-
"version": "2026.7.
|
|
3
|
+
"version": "2026.7.1",
|
|
4
4
|
"description": "Type-safe TypeScript schema + IPC client for the cerastream streaming engine (JSON-RPC 2.0 / NDJSON over a Unix domain socket).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|