Skip to content

Commit 92cdde4

Browse files
authored
feat: update to API spec 157.6.2 (#87)
1 parent ac5fe62 commit 92cdde4

File tree

6 files changed

+78
-64
lines changed

6 files changed

+78
-64
lines changed

__tests__/call.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ describe('call API', () => {
174174
settings_override: {
175175
recording: {
176176
mode: 'available',
177+
// TODO: backend had a regression recently
178+
quality: '1080p',
177179
},
178180
},
179181
});

__tests__/channel.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('channel API', () => {
147147
const response = await client.chat.exportChannels({
148148
channels: [{ cid: channel.cid }],
149149
});
150-
const statusResponse = await client.chat.getExportChannelsStatus({
150+
const statusResponse = await client.getTask({
151151
id: response.task_id,
152152
});
153153

src/gen/chat/ChatApi.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import {
2727
GetCampaignResponse,
2828
GetChannelTypeResponse,
2929
GetCommandResponse,
30-
GetExportChannelsStatusResponse,
3130
GetManyMessagesResponse,
3231
GetMessageResponse,
3332
GetReactionsResponse,
@@ -1013,22 +1012,6 @@ export class ChatApi extends BaseApi {
10131012
return { ...response.body, metadata: response.metadata };
10141013
};
10151014

1016-
getExportChannelsStatus = async (request: {
1017-
id: string;
1018-
}): Promise<StreamResponse<GetExportChannelsStatusResponse>> => {
1019-
const pathParams = {
1020-
id: request?.id,
1021-
};
1022-
1023-
const response = await this.sendRequest<
1024-
StreamResponse<GetExportChannelsStatusResponse>
1025-
>('GET', '/api/v2/chat/export_channels/{id}', pathParams, undefined);
1026-
1027-
decoders.GetExportChannelsStatusResponse?.(response.body);
1028-
1029-
return { ...response.body, metadata: response.metadata };
1030-
};
1031-
10321015
queryMembers = async (request?: {
10331016
payload?: QueryMembersPayload;
10341017
}): Promise<StreamResponse<MembersResponse>> => {

src/gen/model-decoders/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -820,15 +820,6 @@ decoders.GetConfigResponse = (input?: Record<string, any>) => {
820820
return decode(typeMappings, input);
821821
};
822822

823-
decoders.GetExportChannelsStatusResponse = (input?: Record<string, any>) => {
824-
const typeMappings: TypeMapping = {
825-
created_at: { type: 'DatetimeType', isSingle: true },
826-
827-
updated_at: { type: 'DatetimeType', isSingle: true },
828-
};
829-
return decode(typeMappings, input);
830-
};
831-
832823
decoders.GetImportResponse = (input?: Record<string, any>) => {
833824
const typeMappings: TypeMapping = {
834825
import_task: { type: 'ImportTask', isSingle: true },

src/gen/models/index.ts

Lines changed: 75 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,60 @@ export interface AppResponseFields {
264264
datadog_info?: DataDogInfo;
265265
}
266266

267+
export interface AsyncExportChannelsEvent {
268+
created_at: Date;
269+
270+
finished_at: Date;
271+
272+
started_at: Date;
273+
274+
task_id: string;
275+
276+
url: string;
277+
278+
custom: Record<string, any>;
279+
280+
type: string;
281+
282+
received_at?: Date;
283+
}
284+
285+
export interface AsyncExportErrorEvent {
286+
created_at: Date;
287+
288+
error: string;
289+
290+
finished_at: Date;
291+
292+
started_at: Date;
293+
294+
task_id: string;
295+
296+
custom: Record<string, any>;
297+
298+
type: string;
299+
300+
received_at?: Date;
301+
}
302+
303+
export interface AsyncExportUsersEvent {
304+
created_at: Date;
305+
306+
finished_at: Date;
307+
308+
started_at: Date;
309+
310+
task_id: string;
311+
312+
url: string;
313+
314+
custom: Record<string, any>;
315+
316+
type: string;
317+
318+
received_at?: Date;
319+
}
320+
267321
export interface AsyncModerationCallbackConfig {
268322
mode?: 'CALLBACK_MODE_NONE' | 'CALLBACK_MODE_REST' | 'CALLBACK_MODE_TWIRP';
269323

@@ -1007,6 +1061,8 @@ export interface CallRecording {
10071061

10081062
filename: string;
10091063

1064+
session_id: string;
1065+
10101066
start_time: Date;
10111067

10121068
url: string;
@@ -3283,6 +3339,8 @@ export interface EntityCreatorResponse {
32833339

32843340
deleted_content_count: number;
32853341

3342+
flagged_count: number;
3343+
32863344
id: string;
32873345

32883346
invisible: boolean;
@@ -3376,14 +3434,6 @@ export interface ExportChannelsResponse {
33763434
task_id: string;
33773435
}
33783436

3379-
export interface ExportChannelsResult {
3380-
url: string;
3381-
3382-
path?: string;
3383-
3384-
s3_bucket_name?: string;
3385-
}
3386-
33873437
export interface ExportUserResponse {
33883438
duration: string;
33893439

@@ -3414,6 +3464,14 @@ export interface ExternalStorageResponse {
34143464
type: 's3' | 'gcs' | 'abs';
34153465
}
34163466

3467+
export interface FPSStats {
3468+
average_fps: number;
3469+
3470+
harmonic_fps: number;
3471+
3472+
tracked: number;
3473+
}
3474+
34173475
export interface FeedsModerationTemplateConfig {
34183476
config_key: string;
34193477

@@ -3962,28 +4020,6 @@ export interface GetEdgesResponse {
39624020
edges: EdgeResponse[];
39634021
}
39644022

3965-
export interface GetExportChannelsStatusResponse {
3966-
created_at: Date;
3967-
3968-
duration: string;
3969-
3970-
status:
3971-
| 'waiting'
3972-
| 'pending'
3973-
| 'running'
3974-
| 'completed'
3975-
| 'failed'
3976-
| 'canceled';
3977-
3978-
task_id: string;
3979-
3980-
updated_at: Date;
3981-
3982-
error?: ErrorResult;
3983-
3984-
result?: ExportChannelsResult;
3985-
}
3986-
39874023
export interface GetImportResponse {
39884024
duration: string;
39894025

@@ -4173,8 +4209,6 @@ export interface GoLiveRequest {
41734209

41744210
start_recording?: boolean;
41754211

4176-
start_rtmp_broadcasts?: boolean;
4177-
41784212
start_transcription?: boolean;
41794213

41804214
transcription_storage_name?: string;
@@ -4907,7 +4941,7 @@ export interface MessageRequest {
49074941

49084942
text?: string;
49094943

4910-
type?: "''regular" | 'system';
4944+
type?: "''" | 'regular' | 'system';
49114945

49124946
user_id?: string;
49134947

@@ -5181,8 +5215,6 @@ export interface ModerationAnalytics {
51815215

51825216
sla_metrics: Array<Record<string, any>>;
51835217

5184-
usage_metrics: Array<Record<string, any>>;
5185-
51865218
action_distribution_over_time: Record<string, Record<string, any>>;
51875219

51885220
detection_by_engine_over_time: Record<string, Record<string, any>>;
@@ -7388,6 +7420,8 @@ export interface SessionSettingsResponse {
73887420
inactivity_timeout_seconds: number;
73897421
}
73907422

7423+
export interface ShadowBlockActionRequest {}
7424+
73917425
export interface ShowChannelRequest {
73927426
user_id?: string;
73937427

@@ -7549,7 +7583,8 @@ export interface SubmitActionRequest {
75497583
| 'unban'
75507584
| 'restore'
75517585
| 'delete_user'
7552-
| 'unblock';
7586+
| 'unblock'
7587+
| 'shadow_block';
75537588

75547589
item_id: string;
75557590

@@ -9135,6 +9170,8 @@ export interface UserSessionStats {
91359170

91369171
subsessions?: Subsession[];
91379172

9173+
fps?: FPSStats;
9174+
91389175
geolocation?: GeolocationResult;
91399176

91409177
jitter?: TimeStats;
@@ -9225,6 +9262,8 @@ export interface UserUpdatedEvent {
92259262
export interface VelocityFilterConfig {
92269263
cascading_actions: boolean;
92279264

9265+
cids_per_user: number;
9266+
92289267
enabled: boolean;
92299268

92309269
first_message_only: boolean;

src/gen/video/VideoApi.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ export class VideoApi extends BaseApi {
345345
start_closed_caption: request?.start_closed_caption,
346346
start_hls: request?.start_hls,
347347
start_recording: request?.start_recording,
348-
start_rtmp_broadcasts: request?.start_rtmp_broadcasts,
349348
start_transcription: request?.start_transcription,
350349
transcription_storage_name: request?.transcription_storage_name,
351350
};

0 commit comments

Comments
 (0)