Skip to content

Commit adbd4ad

Browse files
committed
Added StatsReport type
1 parent 37fd0e7 commit adbd4ad

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

ts/smelter-core/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type RegisterOutputResponse = {
3232
};
3333

3434
export type StatsResponse = {
35-
stats_json?: string;
35+
stats_report?: string;
3636
};
3737

3838
export class ApiClient {

ts/smelter/src/types/stats.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ import type {
1515
RtpOutputStatsReport,
1616
} from './stats/output.js';
1717

18+
export type StatsReport = {
19+
inputs: Record<string, InputStatsReport>;
20+
outputs: Record<string, OutputStatsReport>;
21+
};
22+
1823
export type InputStatsReport =
1924
| {
2025
rtp: RtpInputStatsReport;

ts/smelter/src/types/stats/input.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type WhipInputStatsReport = {
3232
videoRtp: RtpJitterBufferStatsReport;
3333
audioRtp: RtpJitterBufferStatsReport;
3434
};
35+
3536
export type WhepInputStatsReport = {
3637
videoRtp: RtpJitterBufferStatsReport;
3738
audioRtp: RtpJitterBufferStatsReport;

0 commit comments

Comments
 (0)