Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions src/gen/model-decoders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,13 @@ decoders.ChannelTypeConfig = (input?: Record<string, any>) => {
return decode(typeMappings, input);
};

decoders.ChatActivityStatsResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
messages: { type: 'MessageStatsResponse', isSingle: true },
};
return decode(typeMappings, input);
};

decoders.CheckResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
item: { type: 'ReviewQueueItem', isSingle: true },
Expand All @@ -509,6 +516,13 @@ decoders.ConfigResponse = (input?: Record<string, any>) => {
return decode(typeMappings, input);
};

decoders.CountByMinuteResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
start_ts: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders.CreateBlockListResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
blocklist: { type: 'BlockListResponse', isSingle: true },
Expand Down Expand Up @@ -785,6 +799,13 @@ decoders.GetBlockedUsersResponse = (input?: Record<string, any>) => {
return decode(typeMappings, input);
};

decoders.GetCallReportResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
chat_activity: { type: 'ChatActivityStatsResponse', isSingle: true },
};
return decode(typeMappings, input);
};

decoders.GetCallResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
members: { type: 'MemberResponse', isSingle: false },
Expand Down Expand Up @@ -1163,6 +1184,13 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
return decode(typeMappings, input);
};

decoders.MessageStatsResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
count_over_time: { type: 'CountByMinuteResponse', isSingle: false },
};
return decode(typeMappings, input);
};

decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
created_at: { type: 'DatetimeType', isSingle: true },
Expand Down Expand Up @@ -1272,6 +1300,20 @@ decoders.OwnUserResponse = (input?: Record<string, any>) => {
return decode(typeMappings, input);
};

decoders.ParticipantCountByMinuteResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
start_ts: { type: 'DatetimeType', isSingle: true },
};
return decode(typeMappings, input);
};

decoders.ParticipantCountOverTimeResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
by_minute: { type: 'ParticipantCountByMinuteResponse', isSingle: false },
};
return decode(typeMappings, input);
};

decoders.PendingMessageResponse = (input?: Record<string, any>) => {
const typeMappings: TypeMapping = {
channel: { type: 'ChannelResponse', isSingle: true },
Expand Down
92 changes: 92 additions & 0 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,8 @@ export interface CallReportResponse {
}

export interface CallRequest {
channel_cid?: string;

created_by_id?: string;

starts_at?: Date;
Expand Down Expand Up @@ -1201,6 +1203,8 @@ export interface CallResponse {

settings: CallSettingsResponse;

channel_cid?: string;

ended_at?: Date;

join_ahead_time_seconds?: number;
Expand Down Expand Up @@ -1430,6 +1434,16 @@ export interface CallStateResponseFields {
call: CallResponse;
}

export interface CallStatsReportReadyEvent {
call_cid: string;

created_at: Date;

session_id: string;

type: string;
}

export interface CallStatsReportSummaryResponse {
call_cid: string;

Expand Down Expand Up @@ -1509,6 +1523,8 @@ export interface CallType {

created_at: Date;

enable_live_insights: boolean;

external_storage: string;

name: string;
Expand Down Expand Up @@ -2392,6 +2408,10 @@ export interface ChannelVisibleEvent {
user?: User;
}

export interface ChatActivityStatsResponse {
messages?: MessageStatsResponse;
}

export interface CheckExternalStorageResponse {
duration: string;

Expand Down Expand Up @@ -2620,6 +2640,12 @@ export interface Count {
value: number;
}

export interface CountByMinuteResponse {
count: number;

start_ts: Date;
}

export interface CreateBlockListRequest {
name: string;

Expand Down Expand Up @@ -3888,6 +3914,8 @@ export interface GetCallReportResponse {
session_id: string;

report: ReportResponse;

chat_activity?: ChatActivityStatsResponse;
}

export interface GetCallResponse {
Expand Down Expand Up @@ -4252,6 +4280,12 @@ export interface GoogleVisionConfig {
enabled?: boolean;
}

export interface GroupedStatsResponse {
name: string;

unique: number;
}

export interface HLSSettings {
auto_on: boolean;

Expand Down Expand Up @@ -5070,6 +5104,10 @@ export interface MessageResponse {
reaction_groups?: Record<string, ReactionGroupResponse>;
}

export interface MessageStatsResponse {
count_over_time?: CountByMinuteResponse[];
}

export interface MessageUnblockedEvent {
cid: string;

Expand Down Expand Up @@ -5594,10 +5632,42 @@ export interface PaginationParams {
offset?: number;
}

export interface ParticipantCountByMinuteResponse {
first: number;

last: number;

max: number;

min: number;

start_ts: Date;
}

export interface ParticipantCountOverTimeResponse {
by_minute?: ParticipantCountByMinuteResponse[];
}

export interface ParticipantReportResponse {
sum: number;

unique: number;

max_concurrent?: number;

by_browser?: GroupedStatsResponse[];

by_country?: GroupedStatsResponse[];

by_device?: GroupedStatsResponse[];

by_operating_system?: GroupedStatsResponse[];

count_over_time?: ParticipantCountOverTimeResponse;

publishers?: PublisherStatsResponse;

subscribers?: SubscriberStatsResponse;
}

export interface PendingMessageResponse {
Expand Down Expand Up @@ -5912,6 +5982,14 @@ export interface PublisherAggregateStats {
total?: Count;
}

export interface PublisherStatsResponse {
total: number;

unique: number;

by_track?: TrackStatsResponse[];
}

export interface PushConfig {
version: 'v1' | 'v2';

Expand Down Expand Up @@ -7631,6 +7709,14 @@ export interface SubmitActionResponse {
item?: ReviewQueueItem;
}

export interface SubscriberStatsResponse {
total: number;

total_subscribed_duration_seconds: number;

unique: number;
}

export interface Subsession {
ended_at: number;

Expand Down Expand Up @@ -7799,6 +7885,12 @@ export interface TimeStats {
max_seconds: number;
}

export interface TrackStatsResponse {
duration_seconds: number;

track_type: string;
}

export interface TranscriptionSettings {
closed_caption_mode: 'available' | 'disabled' | 'auto-on';

Expand Down
Loading