Skip to content
Merged
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
26 changes: 19 additions & 7 deletions src/gen/feeds/FeedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
DeleteCommentResponse,
DeleteFeedGroupResponse,
DeleteFeedResponse,
DeleteFeedUserDataRequest,
DeleteFeedUserDataResponse,
DeleteFeedViewResponse,
ExportFeedUserDataResponse,
Expand Down Expand Up @@ -872,14 +873,14 @@ export class FeedsApi {
}

async addComment(
request: AddCommentRequest,
request?: AddCommentRequest,
): Promise<StreamResponse<AddCommentResponse>> {
const body = {
object_id: request?.object_id,
object_type: request?.object_type,
comment: request?.comment,
create_notification_activity: request?.create_notification_activity,
id: request?.id,
object_id: request?.object_id,
object_type: request?.object_type,
parent_id: request?.parent_id,
skip_enrich_url: request?.skip_enrich_url,
skip_push: request?.skip_push,
Expand Down Expand Up @@ -1228,6 +1229,7 @@ export class FeedsApi {
feed_id: request?.feed_id,
};
const body = {
id_around: request?.id_around,
limit: request?.limit,
next: request?.next,
prev: request?.prev,
Expand Down Expand Up @@ -2254,16 +2256,26 @@ export class FeedsApi {
return { ...response.body, metadata: response.metadata };
}

async deleteFeedUserData(request: {
user_id: string;
}): Promise<StreamResponse<DeleteFeedUserDataResponse>> {
async deleteFeedUserData(
request: DeleteFeedUserDataRequest & { user_id: string },
): Promise<StreamResponse<DeleteFeedUserDataResponse>> {
const pathParams = {
user_id: request?.user_id,
};
const body = {
hard_delete: request?.hard_delete,
};

const response = await this.apiClient.sendRequest<
StreamResponse<DeleteFeedUserDataResponse>
>('DELETE', '/api/v2/feeds/users/{user_id}/delete', pathParams, undefined);
>(
'POST',
'/api/v2/feeds/users/{user_id}/delete',
pathParams,
undefined,
body,
'application/json',
);

decoders.DeleteFeedUserDataResponse?.(response.body);

Expand Down
4 changes: 2 additions & 2 deletions src/gen/model-decoders/decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ decoders.BookmarkFolderResponse = (input?: Record<string, any>) => {

updated_at: { type: 'DatetimeType', isSingle: true },

user: { type: 'UserResponseCommonFields', isSingle: true },
user: { type: 'UserResponse', isSingle: true },
};
return decode(typeMappings, input);
};
Expand All @@ -560,7 +560,7 @@ decoders.BookmarkResponse = (input?: Record<string, any>) => {

activity: { type: 'ActivityResponse', isSingle: true },

user: { type: 'UserResponseCommonFields', isSingle: true },
user: { type: 'UserResponse', isSingle: true },

folder: { type: 'BookmarkFolderResponse', isSingle: true },
};
Expand Down
30 changes: 15 additions & 15 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,16 +773,16 @@ export interface AddCommentReactionResponse {
}

export interface AddCommentRequest {
object_id: string;

object_type: string;

comment?: string;

create_notification_activity?: boolean;

id?: string;

object_id?: string;

object_type?: string;

parent_id?: string;

skip_enrich_url?: boolean;
Expand Down Expand Up @@ -867,7 +867,7 @@ export interface AggregatedActivityResponse {
}

export interface AggregationConfig {
format: string;
format?: string;
}

export interface AnyEvent {
Expand Down Expand Up @@ -1532,7 +1532,7 @@ export interface BookmarkFolderResponse {

updated_at: Date;

user: UserResponseCommonFields;
user: UserResponse;

custom?: Record<string, any>;
}
Expand All @@ -1558,7 +1558,7 @@ export interface BookmarkResponse {

activity: ActivityResponse;

user: UserResponseCommonFields;
user: UserResponse;

custom?: Record<string, any>;

Expand Down Expand Up @@ -4767,16 +4767,14 @@ export interface DeleteFeedResponse {
task_id: string;
}

export interface DeleteFeedUserDataResponse {
deleted_activities: number;

deleted_bookmarks: number;

deleted_comments: number;

deleted_reactions: number;
export interface DeleteFeedUserDataRequest {
hard_delete?: boolean;
}

export interface DeleteFeedUserDataResponse {
duration: string;

task_id: string;
}

export interface DeleteFeedViewResponse {
Expand Down Expand Up @@ -6611,6 +6609,8 @@ export interface GetOrCreateFeedGroupResponse {
}

export interface GetOrCreateFeedRequest {
id_around?: string;

limit?: number;

next?: string;
Expand Down
6 changes: 6 additions & 0 deletions src/gen/video/VideoApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1297,10 +1297,16 @@ export class VideoApi {
call_type: string;
call_id: string;
session: string;
limit?: number;
prev?: string;
next?: string;
sort?: SortParamRequest[];
filter_conditions?: Record<string, any>;
}): Promise<StreamResponse<QueryCallSessionParticipantStatsResponse>> {
const queryParams = {
limit: request?.limit,
prev: request?.prev,
next: request?.next,
sort: request?.sort,
filter_conditions: request?.filter_conditions,
};
Expand Down
Loading