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
1 change: 1 addition & 0 deletions src/gen/feeds/FeedApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class FeedApi {

delete(request?: {
hard_delete?: boolean;
purge_user_activities?: boolean;
}): Promise<StreamResponse<DeleteFeedResponse>> {
return this.feedsApi.deleteFeed({
feed_id: this.id,
Expand Down
3 changes: 3 additions & 0 deletions src/gen/feeds/FeedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1545,9 +1545,11 @@ export class FeedsApi {
feed_group_id: string;
feed_id: string;
hard_delete?: boolean;
purge_user_activities?: boolean;
}): Promise<StreamResponse<DeleteFeedResponse>> {
const queryParams = {
hard_delete: request?.hard_delete,
purge_user_activities: request?.purge_user_activities,
};
const pathParams = {
feed_group_id: request?.feed_group_id,
Expand Down Expand Up @@ -2275,6 +2277,7 @@ export class FeedsApi {
const body = {
feeds: request?.feeds,
hard_delete: request?.hard_delete,
purge_user_activities: request?.purge_user_activities,
};

const response = await this.apiClient.sendRequest<
Expand Down
11 changes: 9 additions & 2 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ export interface ActivitySelectorConfig {
cutoff_window?: string;

/**
* Minimum popularity threshold
* Minimum popularity threshold. For the 'popular' selector, omit to use the default (5); values below 1 are rejected
*/
min_popularity?: number;

Expand Down Expand Up @@ -1083,7 +1083,7 @@ export interface ActivitySelectorConfigResponse {
cutoff_window?: string;

/**
* Minimum popularity threshold
* Minimum popularity threshold. For the 'popular' selector, values below 1 are normalized to the default (5) at read time.
*/
min_popularity?: number;

Expand Down Expand Up @@ -1656,6 +1656,8 @@ export interface AppResponseFields {

enforce_unique_usernames: string;

feed_audit_logs_enabled: boolean;

guest_user_creation_disabled: boolean;

id: number;
Expand Down Expand Up @@ -7896,6 +7898,11 @@ export interface DeleteFeedsBatchRequest {
* Whether to permanently delete the feeds instead of soft delete
*/
hard_delete?: boolean;

/**
* When hard-deleting, also fully delete activities authored by each feed's owner from every other feed those activities were fanned out to. Default false preserves existing fan-out. Requires 'hard_delete' to be true; the request is rejected otherwise. Feeds with no recorded owner (created_by_id is empty) are silently skipped for the purge step — owner-matching against an empty string is a safety guard, not a wildcard.
*/
purge_user_activities?: boolean;
}

export interface DeleteFeedsBatchResponse {
Expand Down