File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ import {
7070 GetOrCreateFollowResponse ,
7171 GetOrCreateUnfollowRequest ,
7272 GetOrCreateUnfollowResponse ,
73+ GetUserInterestsResponse ,
7374 ListFeedGroupsResponse ,
7475 ListFeedViewsResponse ,
7576 ListFeedVisibilitiesResponse ,
@@ -2908,4 +2909,29 @@ export class FeedsApi {
29082909
29092910 return { ...response . body , metadata : response . metadata } ;
29102911 }
2912+
2913+ async getUserInterests ( request : {
2914+ user_id : string ;
2915+ limit ?: number ;
2916+ } ) : Promise < StreamResponse < GetUserInterestsResponse > > {
2917+ const queryParams = {
2918+ limit : request ?. limit ,
2919+ } ;
2920+ const pathParams = {
2921+ user_id : request ?. user_id ,
2922+ } ;
2923+
2924+ const response = await this . apiClient . sendRequest <
2925+ StreamResponse < GetUserInterestsResponse >
2926+ > (
2927+ 'GET' ,
2928+ '/api/v2/feeds/users/{user_id}/interests' ,
2929+ pathParams ,
2930+ queryParams ,
2931+ ) ;
2932+
2933+ decoders . GetUserInterestsResponse ?.( response . body ) ;
2934+
2935+ return { ...response . body , metadata : response . metadata } ;
2936+ }
29112937}
Original file line number Diff line number Diff line change @@ -11362,6 +11362,15 @@ export interface GetUserGroupResponse {
1136211362 user_group ?: UserGroupResponse ;
1136311363}
1136411364
11365+ export interface GetUserInterestsResponse {
11366+ duration : string ;
11367+
11368+ /**
11369+ * Top-N interest tags sorted by descending count, then alphabetically by tag
11370+ */
11371+ interests : InterestTagResponse [ ] ;
11372+ }
11373+
1136511374export interface GoLiveRequest {
1136611375 recording_storage_name ?: string ;
1136711376
@@ -11931,6 +11940,18 @@ export interface InsertActionLogResponse {
1193111940 duration : string ;
1193211941}
1193311942
11943+ export interface InterestTagResponse {
11944+ /**
11945+ * Number of distinct reacted-to activities tagged with this value
11946+ */
11947+ count : number ;
11948+
11949+ /**
11950+ * The interest tag value
11951+ */
11952+ tag : string ;
11953+ }
11954+
1193411955export interface JoinCallAPIMetrics {
1193511956 failures : number ;
1193611957
You can’t perform that action at this time.
0 commit comments