Skip to content

Commit 2ab6c4c

Browse files
authored
feat: Add keep_history flag when unfollowing (#270)
1 parent ca5c9b9 commit 2ab6c4c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/gen/feeds/FeedsApi.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,10 +2407,12 @@ export class FeedsApi {
24072407
source: string;
24082408
target: string;
24092409
delete_notification_activity?: boolean;
2410+
keep_history?: boolean;
24102411
enrich_own_fields?: boolean;
24112412
}): Promise<StreamResponse<UnfollowResponse>> {
24122413
const queryParams = {
24132414
delete_notification_activity: request?.delete_notification_activity,
2415+
keep_history: request?.keep_history,
24142416
enrich_own_fields: request?.enrich_own_fields,
24152417
};
24162418
const pathParams = {

src/gen/models/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14266,7 +14266,7 @@ export interface UndeleteMessageResponse {
1426614266
}
1426714267

1426814268
export interface UnfollowBatchRequest {
14269-
follows: FollowPair[];
14269+
follows: UnfollowPair[];
1427014270

1427114271
delete_notification_activity?: boolean;
1427214272

@@ -14279,6 +14279,14 @@ export interface UnfollowBatchResponse {
1427914279
follows: FollowResponse[];
1428014280
}
1428114281

14282+
export interface UnfollowPair {
14283+
source: string;
14284+
14285+
target: string;
14286+
14287+
keep_history?: boolean;
14288+
}
14289+
1428214290
export interface UnfollowResponse {
1428314291
duration: string;
1428414292

0 commit comments

Comments
 (0)