Skip to content

Commit c592777

Browse files
committed
update GetCallReport API related models
1 parent 73202b8 commit c592777

File tree

2 files changed

+134
-0
lines changed

2 files changed

+134
-0
lines changed

src/gen/model-decoders/index.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,13 @@ decoders.ChannelTypeConfig = (input?: Record<string, any>) => {
484484
return decode(typeMappings, input);
485485
};
486486

487+
decoders.ChatActivityStatsResponse = (input?: Record<string, any>) => {
488+
const typeMappings: TypeMapping = {
489+
messages: { type: 'MessageStatsResponse', isSingle: true },
490+
};
491+
return decode(typeMappings, input);
492+
};
493+
487494
decoders.CheckResponse = (input?: Record<string, any>) => {
488495
const typeMappings: TypeMapping = {
489496
item: { type: 'ReviewQueueItem', isSingle: true },
@@ -509,6 +516,13 @@ decoders.ConfigResponse = (input?: Record<string, any>) => {
509516
return decode(typeMappings, input);
510517
};
511518

519+
decoders.CountByMinuteResponse = (input?: Record<string, any>) => {
520+
const typeMappings: TypeMapping = {
521+
start_ts: { type: 'DatetimeType', isSingle: true },
522+
};
523+
return decode(typeMappings, input);
524+
};
525+
512526
decoders.CreateBlockListResponse = (input?: Record<string, any>) => {
513527
const typeMappings: TypeMapping = {
514528
blocklist: { type: 'BlockListResponse', isSingle: true },
@@ -785,6 +799,13 @@ decoders.GetBlockedUsersResponse = (input?: Record<string, any>) => {
785799
return decode(typeMappings, input);
786800
};
787801

802+
decoders.GetCallReportResponse = (input?: Record<string, any>) => {
803+
const typeMappings: TypeMapping = {
804+
chat_activity: { type: 'ChatActivityStatsResponse', isSingle: true },
805+
};
806+
return decode(typeMappings, input);
807+
};
808+
788809
decoders.GetCallResponse = (input?: Record<string, any>) => {
789810
const typeMappings: TypeMapping = {
790811
members: { type: 'MemberResponse', isSingle: false },
@@ -1163,6 +1184,13 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
11631184
return decode(typeMappings, input);
11641185
};
11651186

1187+
decoders.MessageStatsResponse = (input?: Record<string, any>) => {
1188+
const typeMappings: TypeMapping = {
1189+
count_over_time: { type: 'CountByMinuteResponse', isSingle: false },
1190+
};
1191+
return decode(typeMappings, input);
1192+
};
1193+
11661194
decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
11671195
const typeMappings: TypeMapping = {
11681196
created_at: { type: 'DatetimeType', isSingle: true },
@@ -1272,6 +1300,20 @@ decoders.OwnUserResponse = (input?: Record<string, any>) => {
12721300
return decode(typeMappings, input);
12731301
};
12741302

1303+
decoders.ParticipantCountByMinuteResponse = (input?: Record<string, any>) => {
1304+
const typeMappings: TypeMapping = {
1305+
start_ts: { type: 'DatetimeType', isSingle: true },
1306+
};
1307+
return decode(typeMappings, input);
1308+
};
1309+
1310+
decoders.ParticipantCountOverTimeResponse = (input?: Record<string, any>) => {
1311+
const typeMappings: TypeMapping = {
1312+
by_minute: { type: 'ParticipantCountByMinuteResponse', isSingle: false },
1313+
};
1314+
return decode(typeMappings, input);
1315+
};
1316+
12751317
decoders.PendingMessageResponse = (input?: Record<string, any>) => {
12761318
const typeMappings: TypeMapping = {
12771319
channel: { type: 'ChannelResponse', isSingle: true },

src/gen/models/index.ts

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,8 @@ export interface CallReportResponse {
11511151
}
11521152

11531153
export interface CallRequest {
1154+
channel_cid?: string;
1155+
11541156
created_by_id?: string;
11551157

11561158
starts_at?: Date;
@@ -1201,6 +1203,8 @@ export interface CallResponse {
12011203

12021204
settings: CallSettingsResponse;
12031205

1206+
channel_cid?: string;
1207+
12041208
ended_at?: Date;
12051209

12061210
join_ahead_time_seconds?: number;
@@ -1430,6 +1434,16 @@ export interface CallStateResponseFields {
14301434
call: CallResponse;
14311435
}
14321436

1437+
export interface CallStatsReportReadyEvent {
1438+
call_cid: string;
1439+
1440+
created_at: Date;
1441+
1442+
session_id: string;
1443+
1444+
type: string;
1445+
}
1446+
14331447
export interface CallStatsReportSummaryResponse {
14341448
call_cid: string;
14351449

@@ -1509,6 +1523,8 @@ export interface CallType {
15091523

15101524
created_at: Date;
15111525

1526+
enable_live_insights: boolean;
1527+
15121528
external_storage: string;
15131529

15141530
name: string;
@@ -2392,6 +2408,10 @@ export interface ChannelVisibleEvent {
23922408
user?: User;
23932409
}
23942410

2411+
export interface ChatActivityStatsResponse {
2412+
messages?: MessageStatsResponse;
2413+
}
2414+
23952415
export interface CheckExternalStorageResponse {
23962416
duration: string;
23972417

@@ -2620,6 +2640,12 @@ export interface Count {
26202640
value: number;
26212641
}
26222642

2643+
export interface CountByMinuteResponse {
2644+
count: number;
2645+
2646+
start_ts: Date;
2647+
}
2648+
26232649
export interface CreateBlockListRequest {
26242650
name: string;
26252651

@@ -3888,6 +3914,8 @@ export interface GetCallReportResponse {
38883914
session_id: string;
38893915

38903916
report: ReportResponse;
3917+
3918+
chat_activity?: ChatActivityStatsResponse;
38913919
}
38923920

38933921
export interface GetCallResponse {
@@ -4252,6 +4280,12 @@ export interface GoogleVisionConfig {
42524280
enabled?: boolean;
42534281
}
42544282

4283+
export interface GroupedStatsResponse {
4284+
name: string;
4285+
4286+
unique: number;
4287+
}
4288+
42554289
export interface HLSSettings {
42564290
auto_on: boolean;
42574291

@@ -5070,6 +5104,10 @@ export interface MessageResponse {
50705104
reaction_groups?: Record<string, ReactionGroupResponse>;
50715105
}
50725106

5107+
export interface MessageStatsResponse {
5108+
count_over_time?: CountByMinuteResponse[];
5109+
}
5110+
50735111
export interface MessageUnblockedEvent {
50745112
cid: string;
50755113

@@ -5594,10 +5632,42 @@ export interface PaginationParams {
55945632
offset?: number;
55955633
}
55965634

5635+
export interface ParticipantCountByMinuteResponse {
5636+
first: number;
5637+
5638+
last: number;
5639+
5640+
max: number;
5641+
5642+
min: number;
5643+
5644+
start_ts: Date;
5645+
}
5646+
5647+
export interface ParticipantCountOverTimeResponse {
5648+
by_minute?: ParticipantCountByMinuteResponse[];
5649+
}
5650+
55975651
export interface ParticipantReportResponse {
55985652
sum: number;
55995653

56005654
unique: number;
5655+
5656+
max_concurrent?: number;
5657+
5658+
by_browser?: GroupedStatsResponse[];
5659+
5660+
by_country?: GroupedStatsResponse[];
5661+
5662+
by_device?: GroupedStatsResponse[];
5663+
5664+
by_operating_system?: GroupedStatsResponse[];
5665+
5666+
count_over_time?: ParticipantCountOverTimeResponse;
5667+
5668+
publishers?: PublisherStatsResponse;
5669+
5670+
subscribers?: SubscriberStatsResponse;
56015671
}
56025672

56035673
export interface PendingMessageResponse {
@@ -5912,6 +5982,14 @@ export interface PublisherAggregateStats {
59125982
total?: Count;
59135983
}
59145984

5985+
export interface PublisherStatsResponse {
5986+
total: number;
5987+
5988+
unique: number;
5989+
5990+
by_track?: TrackStatsResponse[];
5991+
}
5992+
59155993
export interface PushConfig {
59165994
version: 'v1' | 'v2';
59175995

@@ -7631,6 +7709,14 @@ export interface SubmitActionResponse {
76317709
item?: ReviewQueueItem;
76327710
}
76337711

7712+
export interface SubscriberStatsResponse {
7713+
total: number;
7714+
7715+
total_subscribed_duration_seconds: number;
7716+
7717+
unique: number;
7718+
}
7719+
76347720
export interface Subsession {
76357721
ended_at: number;
76367722

@@ -7799,6 +7885,12 @@ export interface TimeStats {
77997885
max_seconds: number;
78007886
}
78017887

7888+
export interface TrackStatsResponse {
7889+
duration_seconds: number;
7890+
7891+
track_type: string;
7892+
}
7893+
78027894
export interface TranscriptionSettings {
78037895
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
78047896

0 commit comments

Comments
 (0)