Skip to content

Commit 37490b2

Browse files
committed
feat: Update to API spec 157.1.1
1 parent e5742d9 commit 37490b2

File tree

5 files changed

+65
-63
lines changed

5 files changed

+65
-63
lines changed

__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: 64 additions & 35 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

@@ -3962,28 +4012,6 @@ export interface GetEdgesResponse {
39624012
edges: EdgeResponse[];
39634013
}
39644014

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-
39874015
export interface GetImportResponse {
39884016
duration: string;
39894017

@@ -4173,8 +4201,6 @@ export interface GoLiveRequest {
41734201

41744202
start_recording?: boolean;
41754203

4176-
start_rtmp_broadcasts?: boolean;
4177-
41784204
start_transcription?: boolean;
41794205

41804206
transcription_storage_name?: string;
@@ -5181,8 +5207,6 @@ export interface ModerationAnalytics {
51815207

51825208
sla_metrics: Array<Record<string, any>>;
51835209

5184-
usage_metrics: Array<Record<string, any>>;
5185-
51865210
action_distribution_over_time: Record<string, Record<string, any>>;
51875211

51885212
detection_by_engine_over_time: Record<string, Record<string, any>>;
@@ -7388,6 +7412,8 @@ export interface SessionSettingsResponse {
73887412
inactivity_timeout_seconds: number;
73897413
}
73907414

7415+
export interface ShadowBlockActionRequest {}
7416+
73917417
export interface ShowChannelRequest {
73927418
user_id?: string;
73937419

@@ -7549,7 +7575,8 @@ export interface SubmitActionRequest {
75497575
| 'unban'
75507576
| 'restore'
75517577
| 'delete_user'
7552-
| 'unblock';
7578+
| 'unblock'
7579+
| 'shadow_block';
75537580

75547581
item_id: string;
75557582

@@ -9225,6 +9252,8 @@ export interface UserUpdatedEvent {
92259252
export interface VelocityFilterConfig {
92269253
cascading_actions: boolean;
92279254

9255+
cids_per_user: number;
9256+
92289257
enabled: boolean;
92299258

92309259
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)