diff --git a/src/gen/feeds/FeedsApi.ts b/src/gen/feeds/FeedsApi.ts index d02ad96..c743c38 100644 --- a/src/gen/feeds/FeedsApi.ts +++ b/src/gen/feeds/FeedsApi.ts @@ -40,6 +40,7 @@ import { DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, + DeleteFeedUserDataRequest, DeleteFeedUserDataResponse, DeleteFeedViewResponse, ExportFeedUserDataResponse, @@ -872,14 +873,14 @@ export class FeedsApi { } async addComment( - request: AddCommentRequest, + request?: AddCommentRequest, ): Promise> { 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, @@ -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, @@ -2254,16 +2256,26 @@ export class FeedsApi { return { ...response.body, metadata: response.metadata }; } - async deleteFeedUserData(request: { - user_id: string; - }): Promise> { + async deleteFeedUserData( + request: DeleteFeedUserDataRequest & { user_id: string }, + ): Promise> { const pathParams = { user_id: request?.user_id, }; + const body = { + hard_delete: request?.hard_delete, + }; const response = await this.apiClient.sendRequest< StreamResponse - >('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); diff --git a/src/gen/model-decoders/decoders.ts b/src/gen/model-decoders/decoders.ts index b69455b..3d1bbf5 100644 --- a/src/gen/model-decoders/decoders.ts +++ b/src/gen/model-decoders/decoders.ts @@ -534,7 +534,7 @@ decoders.BookmarkFolderResponse = (input?: Record) => { updated_at: { type: 'DatetimeType', isSingle: true }, - user: { type: 'UserResponseCommonFields', isSingle: true }, + user: { type: 'UserResponse', isSingle: true }, }; return decode(typeMappings, input); }; @@ -560,7 +560,7 @@ decoders.BookmarkResponse = (input?: Record) => { activity: { type: 'ActivityResponse', isSingle: true }, - user: { type: 'UserResponseCommonFields', isSingle: true }, + user: { type: 'UserResponse', isSingle: true }, folder: { type: 'BookmarkFolderResponse', isSingle: true }, }; diff --git a/src/gen/models/index.ts b/src/gen/models/index.ts index f5c535b..e6f3446 100644 --- a/src/gen/models/index.ts +++ b/src/gen/models/index.ts @@ -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; @@ -867,7 +867,7 @@ export interface AggregatedActivityResponse { } export interface AggregationConfig { - format: string; + format?: string; } export interface AnyEvent { @@ -1532,7 +1532,7 @@ export interface BookmarkFolderResponse { updated_at: Date; - user: UserResponseCommonFields; + user: UserResponse; custom?: Record; } @@ -1558,7 +1558,7 @@ export interface BookmarkResponse { activity: ActivityResponse; - user: UserResponseCommonFields; + user: UserResponse; custom?: Record; @@ -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 { @@ -6611,6 +6609,8 @@ export interface GetOrCreateFeedGroupResponse { } export interface GetOrCreateFeedRequest { + id_around?: string; + limit?: number; next?: string; diff --git a/src/gen/video/VideoApi.ts b/src/gen/video/VideoApi.ts index bf59376..a19ec9d 100644 --- a/src/gen/video/VideoApi.ts +++ b/src/gen/video/VideoApi.ts @@ -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; }): Promise> { const queryParams = { + limit: request?.limit, + prev: request?.prev, + next: request?.next, sort: request?.sort, filter_conditions: request?.filter_conditions, };