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 @@ -71,6 +71,7 @@ export class FeedApi {

unpinActivity(request: {
activity_id: string;
enrich_own_fields?: boolean;
user_id?: string;
}): Promise<StreamResponse<UnpinActivityResponse>> {
return this.feedsApi.unpinActivity({
Expand Down
31 changes: 29 additions & 2 deletions src/gen/feeds/FeedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export class FeedsApi {
feeds: request?.feeds,
copy_custom_to_notification: request?.copy_custom_to_notification,
create_notification_activity: request?.create_notification_activity,
enrich_own_fields: request?.enrich_own_fields,
expires_at: request?.expires_at,
id: request?.id,
parent_id: request?.parent_id,
Expand Down Expand Up @@ -199,6 +200,7 @@ export class FeedsApi {
): Promise<StreamResponse<UpsertActivitiesResponse>> {
const body = {
activities: request?.activities,
enrich_own_fields: request?.enrich_own_fields,
};

const response = await this.apiClient.sendRequest<
Expand Down Expand Up @@ -271,6 +273,7 @@ export class FeedsApi {
request?: QueryActivitiesRequest,
): Promise<StreamResponse<QueryActivitiesResponse>> {
const body = {
enrich_own_fields: request?.enrich_own_fields,
include_expired_activities: request?.include_expired_activities,
include_private_activities: request?.include_private_activities,
limit: request?.limit,
Expand Down Expand Up @@ -612,6 +615,7 @@ export class FeedsApi {
};
const body = {
copy_custom_to_notification: request?.copy_custom_to_notification,
enrich_own_fields: request?.enrich_own_fields,
handle_mention_notifications: request?.handle_mention_notifications,
run_activity_processors: request?.run_activity_processors,
user_id: request?.user_id,
Expand Down Expand Up @@ -644,6 +648,7 @@ export class FeedsApi {
};
const body = {
copy_custom_to_notification: request?.copy_custom_to_notification,
enrich_own_fields: request?.enrich_own_fields,
expires_at: request?.expires_at,
handle_mention_notifications: request?.handle_mention_notifications,
poll_id: request?.poll_id,
Expand Down Expand Up @@ -683,8 +688,14 @@ export class FeedsApi {
}

async restoreActivity(
request: RestoreActivityRequest & { id: string },
request: RestoreActivityRequest & {
id: string;
enrich_own_fields?: boolean;
},
): Promise<StreamResponse<RestoreActivityResponse>> {
const queryParams = {
enrich_own_fields: request?.enrich_own_fields,
};
const pathParams = {
id: request?.id,
};
Expand All @@ -699,7 +710,7 @@ export class FeedsApi {
'POST',
'/api/v2/feeds/activities/{id}/restore',
pathParams,
undefined,
queryParams,
body,
'application/json',
);
Expand Down Expand Up @@ -790,6 +801,7 @@ export class FeedsApi {
request?: QueryBookmarksRequest,
): Promise<StreamResponse<QueryBookmarksResponse>> {
const body = {
enrich_own_fields: request?.enrich_own_fields,
limit: request?.limit,
next: request?.next,
prev: request?.prev,
Expand Down Expand Up @@ -1366,6 +1378,7 @@ export class FeedsApi {
const body = {
created_by_id: request?.created_by_id,
description: request?.description,
enrich_own_fields: request?.enrich_own_fields,
name: request?.name,
filter_tags: request?.filter_tags,
custom: request?.custom,
Expand Down Expand Up @@ -1422,9 +1435,11 @@ export class FeedsApi {
feed_group_id: string;
feed_id: string;
activity_id: string;
enrich_own_fields?: boolean;
user_id?: string;
}): Promise<StreamResponse<UnpinActivityResponse>> {
const queryParams = {
enrich_own_fields: request?.enrich_own_fields,
user_id: request?.user_id,
};
const pathParams = {
Expand Down Expand Up @@ -1460,6 +1475,7 @@ export class FeedsApi {
activity_id: request?.activity_id,
};
const body = {
enrich_own_fields: request?.enrich_own_fields,
user_id: request?.user_id,
user: request?.user,
};
Expand Down Expand Up @@ -1621,6 +1637,7 @@ export class FeedsApi {
feed_id: request?.feed_id,
};
const body = {
enrich_own_fields: request?.enrich_own_fields,
limit: request?.limit,
next: request?.next,
prev: request?.prev,
Expand Down Expand Up @@ -1983,6 +2000,7 @@ export class FeedsApi {
): Promise<StreamResponse<CreateFeedsBatchResponse>> {
const body = {
feeds: request?.feeds,
enrich_own_fields: request?.enrich_own_fields,
};

const response = await this.apiClient.sendRequest<
Expand Down Expand Up @@ -2055,6 +2073,7 @@ export class FeedsApi {
request?: QueryFeedsRequest,
): Promise<StreamResponse<QueryFeedsResponse>> {
const body = {
enrich_own_fields: request?.enrich_own_fields,
limit: request?.limit,
next: request?.next,
prev: request?.prev,
Expand Down Expand Up @@ -2111,6 +2130,7 @@ export class FeedsApi {
target: request?.target,
copy_custom_to_notification: request?.copy_custom_to_notification,
create_notification_activity: request?.create_notification_activity,
enrich_own_fields: request?.enrich_own_fields,
follower_role: request?.follower_role,
push_preference: request?.push_preference,
skip_push: request?.skip_push,
Expand Down Expand Up @@ -2142,6 +2162,7 @@ export class FeedsApi {
target: request?.target,
copy_custom_to_notification: request?.copy_custom_to_notification,
create_notification_activity: request?.create_notification_activity,
enrich_own_fields: request?.enrich_own_fields,
push_preference: request?.push_preference,
skip_push: request?.skip_push,
status: request?.status,
Expand Down Expand Up @@ -2194,6 +2215,7 @@ export class FeedsApi {
): Promise<StreamResponse<FollowBatchResponse>> {
const body = {
follows: request?.follows,
enrich_own_fields: request?.enrich_own_fields,
};

const response = await this.apiClient.sendRequest<
Expand All @@ -2217,6 +2239,7 @@ export class FeedsApi {
): Promise<StreamResponse<FollowBatchResponse>> {
const body = {
follows: request?.follows,
enrich_own_fields: request?.enrich_own_fields,
};

const response = await this.apiClient.sendRequest<
Expand Down Expand Up @@ -2290,9 +2313,11 @@ export class FeedsApi {
source: string;
target: string;
delete_notification_activity?: boolean;
enrich_own_fields?: boolean;
}): Promise<StreamResponse<UnfollowResponse>> {
const queryParams = {
delete_notification_activity: request?.delete_notification_activity,
enrich_own_fields: request?.enrich_own_fields,
};
const pathParams = {
source: request?.source,
Expand Down Expand Up @@ -2447,6 +2472,7 @@ export class FeedsApi {
const body = {
follows: request?.follows,
delete_notification_activity: request?.delete_notification_activity,
enrich_own_fields: request?.enrich_own_fields,
};

const response = await this.apiClient.sendRequest<
Expand All @@ -2471,6 +2497,7 @@ export class FeedsApi {
const body = {
follows: request?.follows,
delete_notification_activity: request?.delete_notification_activity,
enrich_own_fields: request?.enrich_own_fields,
};

const response = await this.apiClient.sendRequest<
Expand Down
30 changes: 30 additions & 0 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ export interface AddActivityRequest {

create_notification_activity?: boolean;

enrich_own_fields?: boolean;

expires_at?: string;

id?: string;
Expand Down Expand Up @@ -4659,6 +4661,8 @@ export interface CreateFeedViewResponse {

export interface CreateFeedsBatchRequest {
feeds: FeedRequest[];

enrich_own_fields?: boolean;
}

export interface CreateFeedsBatchResponse {
Expand Down Expand Up @@ -6428,6 +6432,8 @@ export interface FlagUserOptions {

export interface FollowBatchRequest {
follows: FollowRequest[];

enrich_own_fields?: boolean;
}

export interface FollowBatchResponse {
Expand Down Expand Up @@ -6485,6 +6491,8 @@ export interface FollowRequest {

create_notification_activity?: boolean;

enrich_own_fields?: boolean;

push_preference?: 'all' | 'none';

skip_push?: boolean;
Expand Down Expand Up @@ -9847,6 +9855,8 @@ export interface PermissionRequestEvent {
}

export interface PinActivityRequest {
enrich_own_fields?: boolean;

user_id?: string;

user?: UserRequest;
Expand Down Expand Up @@ -10381,6 +10391,8 @@ export interface QualityScoreReportResponse {
}

export interface QueryActivitiesRequest {
enrich_own_fields?: boolean;

include_expired_activities?: boolean;

include_private_activities?: boolean;
Expand Down Expand Up @@ -10529,6 +10541,8 @@ export interface QueryBookmarkFoldersResponse {
}

export interface QueryBookmarksRequest {
enrich_own_fields?: boolean;

limit?: number;

next?: string;
Expand Down Expand Up @@ -10897,6 +10911,8 @@ export interface QueryFeedModerationTemplatesResponse {
}

export interface QueryFeedsRequest {
enrich_own_fields?: boolean;

limit?: number;

next?: string;
Expand Down Expand Up @@ -11173,6 +11189,8 @@ export interface QueryModerationRulesResponse {
}

export interface QueryPinnedActivitiesRequest {
enrich_own_fields?: boolean;

limit?: number;

next?: string;
Expand Down Expand Up @@ -13927,6 +13945,8 @@ export interface UnfollowBatchRequest {
follows: FollowPair[];

delete_notification_activity?: boolean;

enrich_own_fields?: boolean;
}

export interface UnfollowBatchResponse {
Expand Down Expand Up @@ -14060,6 +14080,8 @@ export interface UpdateActivityPartialChangeRequest {
export interface UpdateActivityPartialRequest {
copy_custom_to_notification?: boolean;

enrich_own_fields?: boolean;

handle_mention_notifications?: boolean;

run_activity_processors?: boolean;
Expand All @@ -14082,6 +14104,8 @@ export interface UpdateActivityPartialResponse {
export interface UpdateActivityRequest {
copy_custom_to_notification?: boolean;

enrich_own_fields?: boolean;

expires_at?: Date;

handle_mention_notifications?: boolean;
Expand Down Expand Up @@ -14699,6 +14723,8 @@ export interface UpdateFeedRequest {

description?: string;

enrich_own_fields?: boolean;

name?: string;

filter_tags?: string[];
Expand Down Expand Up @@ -14745,6 +14771,8 @@ export interface UpdateFollowRequest {

create_notification_activity?: boolean;

enrich_own_fields?: boolean;

follower_role?: string;

push_preference?: 'all' | 'none';
Expand Down Expand Up @@ -15058,6 +15086,8 @@ export interface UploadChannelResponse {

export interface UpsertActivitiesRequest {
activities: ActivityRequest[];

enrich_own_fields?: boolean;
}

export interface UpsertActivitiesResponse {
Expand Down
Loading