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: 26 additions & 0 deletions src/gen/feeds/FeedsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ import {
GetOrCreateFollowResponse,
GetOrCreateUnfollowRequest,
GetOrCreateUnfollowResponse,
GetUserInterestsResponse,
ListFeedGroupsResponse,
ListFeedViewsResponse,
ListFeedVisibilitiesResponse,
Expand Down Expand Up @@ -2908,4 +2909,29 @@ export class FeedsApi {

return { ...response.body, metadata: response.metadata };
}

async getUserInterests(request: {
user_id: string;
limit?: number;
}): Promise<StreamResponse<GetUserInterestsResponse>> {
const queryParams = {
limit: request?.limit,
};
const pathParams = {
user_id: request?.user_id,
};

const response = await this.apiClient.sendRequest<
StreamResponse<GetUserInterestsResponse>
>(
'GET',
'/api/v2/feeds/users/{user_id}/interests',
pathParams,
queryParams,
);

decoders.GetUserInterestsResponse?.(response.body);

return { ...response.body, metadata: response.metadata };
}
}
21 changes: 21 additions & 0 deletions src/gen/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11362,6 +11362,15 @@ export interface GetUserGroupResponse {
user_group?: UserGroupResponse;
}

export interface GetUserInterestsResponse {
duration: string;

/**
* Top-N interest tags sorted by descending count, then alphabetically by tag
*/
interests: InterestTagResponse[];
}

export interface GoLiveRequest {
recording_storage_name?: string;

Expand Down Expand Up @@ -11931,6 +11940,18 @@ export interface InsertActionLogResponse {
duration: string;
}

export interface InterestTagResponse {
/**
* Number of distinct reacted-to activities tagged with this value
*/
count: number;

/**
* The interest tag value
*/
tag: string;
}

export interface JoinCallAPIMetrics {
failures: number;

Expand Down
Loading