@stream-io/node-sdk 0.7.57 → 0.7.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +54 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +54 -1
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +7 -1
- package/dist/src/gen/models/index.d.ts +59 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +89 -0
- package/src/gen/model-decoders/decoders.ts +14 -0
- package/src/gen/models/index.ts +75 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiClient, StreamResponse } from '../../gen-imports';
|
|
2
|
-
import { AcceptFeedMemberInviteRequest, AcceptFeedMemberInviteResponse, AcceptFollowRequest, AcceptFollowResponse, ActivityFeedbackRequest, ActivityFeedbackResponse, AddActivityRequest, AddActivityResponse, AddBookmarkRequest, AddBookmarkResponse, AddCommentBookmarkRequest, AddCommentBookmarkResponse, AddCommentReactionRequest, AddCommentReactionResponse, AddCommentRequest, AddCommentResponse, AddCommentsBatchRequest, AddCommentsBatchResponse, AddReactionRequest, AddReactionResponse, CastPollVoteRequest, CreateCollectionsRequest, CreateCollectionsResponse, CreateFeedGroupRequest, CreateFeedGroupResponse, CreateFeedViewRequest, CreateFeedViewResponse, CreateFeedsBatchRequest, CreateFeedsBatchResponse, CreateMembershipLevelRequest, CreateMembershipLevelResponse, DeleteActivitiesRequest, DeleteActivitiesResponse, DeleteActivityReactionResponse, DeleteActivityResponse, DeleteBookmarkFolderResponse, DeleteBookmarkResponse, DeleteCollectionsResponse, DeleteCommentBookmarkResponse, DeleteCommentReactionResponse, DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, DeleteFeedUserDataRequest, DeleteFeedUserDataResponse, DeleteFeedViewResponse, DeleteFeedsBatchRequest, DeleteFeedsBatchResponse, ExportFeedUserDataResponse, FollowBatchRequest, FollowBatchResponse, FollowRequest, GetActivityResponse, GetCommentRepliesResponse, GetCommentResponse, GetCommentsResponse, GetFeedGroupResponse, GetFeedViewResponse, GetFeedVisibilityResponse, GetFeedsRateLimitsResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, GetOrCreateFeedRequest, GetOrCreateFeedResponse, GetOrCreateFeedViewRequest, GetOrCreateFeedViewResponse, ListFeedGroupsResponse, ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, OwnBatchRequest, OwnBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, QueryActivitiesRequest, QueryActivitiesResponse, QueryActivityReactionsRequest, QueryActivityReactionsResponse, QueryBookmarkFoldersRequest, QueryBookmarkFoldersResponse, QueryBookmarksRequest, QueryBookmarksResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCommentReactionsRequest, QueryCommentReactionsResponse, QueryCommentsRequest, QueryCommentsResponse, QueryFeedMembersRequest, QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, QueryFeedsUsageStatsRequest, QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, QueryMembershipLevelsResponse, QueryPinnedActivitiesRequest, QueryPinnedActivitiesResponse, QueryRevisionHistoryRequest, QueryRevisionHistoryResponse, ReadCollectionsResponse, RejectFeedMemberInviteRequest, RejectFeedMemberInviteResponse, RejectFollowRequest, RejectFollowResponse, Response, RestoreActivityRequest, RestoreActivityResponse, RestoreCommentRequest, RestoreCommentResponse, RestoreFeedGroupResponse, SingleFollowResponse, TrackActivityMetricsRequest, TrackActivityMetricsResponse, UnfollowBatchRequest, UnfollowBatchResponse, UnfollowResponse, UnpinActivityResponse, UpdateActivitiesPartialBatchRequest, UpdateActivitiesPartialBatchResponse, UpdateActivityPartialRequest, UpdateActivityPartialResponse, UpdateActivityRequest, UpdateActivityResponse, UpdateBookmarkFolderRequest, UpdateBookmarkFolderResponse, UpdateBookmarkRequest, UpdateBookmarkResponse, UpdateCollectionsRequest, UpdateCollectionsResponse, UpdateCommentBookmarkRequest, UpdateCommentBookmarkResponse, UpdateCommentPartialRequest, UpdateCommentPartialResponse, UpdateCommentRequest, UpdateCommentResponse, UpdateFeedGroupRequest, UpdateFeedGroupResponse, UpdateFeedMembersRequest, UpdateFeedMembersResponse, UpdateFeedRequest, UpdateFeedResponse, UpdateFeedViewRequest, UpdateFeedViewResponse, UpdateFeedVisibilityRequest, UpdateFeedVisibilityResponse, UpdateFollowRequest, UpdateFollowResponse, UpdateMembershipLevelRequest, UpdateMembershipLevelResponse, UpsertActivitiesRequest, UpsertActivitiesResponse, UpsertCollectionsRequest, UpsertCollectionsResponse } from '../models';
|
|
2
|
+
import { AcceptFeedMemberInviteRequest, AcceptFeedMemberInviteResponse, AcceptFollowRequest, AcceptFollowResponse, ActivityFeedbackRequest, ActivityFeedbackResponse, AddActivityRequest, AddActivityResponse, AddBookmarkRequest, AddBookmarkResponse, AddCommentBookmarkRequest, AddCommentBookmarkResponse, AddCommentReactionRequest, AddCommentReactionResponse, AddCommentRequest, AddCommentResponse, AddCommentsBatchRequest, AddCommentsBatchResponse, AddReactionRequest, AddReactionResponse, CastPollVoteRequest, CreateCollectionsRequest, CreateCollectionsResponse, CreateFeedGroupRequest, CreateFeedGroupResponse, CreateFeedViewRequest, CreateFeedViewResponse, CreateFeedsBatchRequest, CreateFeedsBatchResponse, CreateMembershipLevelRequest, CreateMembershipLevelResponse, DeleteActivitiesRequest, DeleteActivitiesResponse, DeleteActivityReactionResponse, DeleteActivityResponse, DeleteBookmarkFolderResponse, DeleteBookmarkResponse, DeleteCollectionsResponse, DeleteCommentBookmarkResponse, DeleteCommentReactionResponse, DeleteCommentResponse, DeleteFeedGroupResponse, DeleteFeedResponse, DeleteFeedUserDataRequest, DeleteFeedUserDataResponse, DeleteFeedViewResponse, DeleteFeedsBatchRequest, DeleteFeedsBatchResponse, ExportFeedUserDataResponse, FollowBatchRequest, FollowBatchResponse, FollowRequest, GetActivityResponse, GetCommentRepliesResponse, GetCommentResponse, GetCommentsResponse, GetFeedGroupResponse, GetFeedViewResponse, GetFeedVisibilityResponse, GetFeedsRateLimitsResponse, GetFollowSuggestionsResponse, GetOrCreateFeedGroupRequest, GetOrCreateFeedGroupResponse, GetOrCreateFeedRequest, GetOrCreateFeedResponse, GetOrCreateFeedViewRequest, GetOrCreateFeedViewResponse, GetOrCreateFollowResponse, GetOrCreateUnfollowRequest, GetOrCreateUnfollowResponse, GetUserInterestsResponse, ListFeedGroupsResponse, ListFeedViewsResponse, ListFeedVisibilitiesResponse, MarkActivityRequest, OwnBatchRequest, OwnBatchResponse, PinActivityRequest, PinActivityResponse, PollVoteResponse, QueryActivitiesRequest, QueryActivitiesResponse, QueryActivityReactionsRequest, QueryActivityReactionsResponse, QueryBookmarkFoldersRequest, QueryBookmarkFoldersResponse, QueryBookmarksRequest, QueryBookmarksResponse, QueryCollectionsRequest, QueryCollectionsResponse, QueryCommentReactionsRequest, QueryCommentReactionsResponse, QueryCommentsRequest, QueryCommentsResponse, QueryFeedMembersRequest, QueryFeedMembersResponse, QueryFeedsRequest, QueryFeedsResponse, QueryFeedsUsageStatsRequest, QueryFeedsUsageStatsResponse, QueryFollowsRequest, QueryFollowsResponse, QueryMembershipLevelsRequest, QueryMembershipLevelsResponse, QueryPinnedActivitiesRequest, QueryPinnedActivitiesResponse, QueryRevisionHistoryRequest, QueryRevisionHistoryResponse, ReadCollectionsResponse, RejectFeedMemberInviteRequest, RejectFeedMemberInviteResponse, RejectFollowRequest, RejectFollowResponse, Response, RestoreActivityRequest, RestoreActivityResponse, RestoreCommentRequest, RestoreCommentResponse, RestoreFeedGroupResponse, SingleFollowResponse, TrackActivityMetricsRequest, TrackActivityMetricsResponse, UnfollowBatchRequest, UnfollowBatchResponse, UnfollowResponse, UnpinActivityResponse, UpdateActivitiesPartialBatchRequest, UpdateActivitiesPartialBatchResponse, UpdateActivityPartialRequest, UpdateActivityPartialResponse, UpdateActivityRequest, UpdateActivityResponse, UpdateBookmarkFolderRequest, UpdateBookmarkFolderResponse, UpdateBookmarkRequest, UpdateBookmarkResponse, UpdateCollectionsRequest, UpdateCollectionsResponse, UpdateCommentBookmarkRequest, UpdateCommentBookmarkResponse, UpdateCommentPartialRequest, UpdateCommentPartialResponse, UpdateCommentRequest, UpdateCommentResponse, UpdateFeedGroupRequest, UpdateFeedGroupResponse, UpdateFeedMembersRequest, UpdateFeedMembersResponse, UpdateFeedRequest, UpdateFeedResponse, UpdateFeedViewRequest, UpdateFeedViewResponse, UpdateFeedVisibilityRequest, UpdateFeedVisibilityResponse, UpdateFollowRequest, UpdateFollowResponse, UpdateMembershipLevelRequest, UpdateMembershipLevelResponse, UpsertActivitiesRequest, UpsertActivitiesResponse, UpsertCollectionsRequest, UpsertCollectionsResponse } from '../models';
|
|
3
3
|
export declare class FeedsApi {
|
|
4
4
|
readonly apiClient: ApiClient;
|
|
5
5
|
constructor(apiClient: ApiClient);
|
|
@@ -267,6 +267,7 @@ export declare class FeedsApi {
|
|
|
267
267
|
getOrCreateFollows(request: FollowBatchRequest): Promise<StreamResponse<FollowBatchResponse>>;
|
|
268
268
|
queryFollows(request?: QueryFollowsRequest): Promise<StreamResponse<QueryFollowsResponse>>;
|
|
269
269
|
rejectFollow(request: RejectFollowRequest): Promise<StreamResponse<RejectFollowResponse>>;
|
|
270
|
+
getOrCreateFollow(request: FollowRequest): Promise<StreamResponse<GetOrCreateFollowResponse>>;
|
|
270
271
|
unfollow(request: {
|
|
271
272
|
source: string;
|
|
272
273
|
target: string;
|
|
@@ -286,10 +287,15 @@ export declare class FeedsApi {
|
|
|
286
287
|
queryFeedsUsageStats(request?: QueryFeedsUsageStatsRequest): Promise<StreamResponse<QueryFeedsUsageStatsResponse>>;
|
|
287
288
|
unfollowBatch(request: UnfollowBatchRequest): Promise<StreamResponse<UnfollowBatchResponse>>;
|
|
288
289
|
getOrCreateUnfollows(request: UnfollowBatchRequest): Promise<StreamResponse<UnfollowBatchResponse>>;
|
|
290
|
+
getOrCreateUnfollow(request: GetOrCreateUnfollowRequest): Promise<StreamResponse<GetOrCreateUnfollowResponse>>;
|
|
289
291
|
deleteFeedUserData(request: DeleteFeedUserDataRequest & {
|
|
290
292
|
user_id: string;
|
|
291
293
|
}): Promise<StreamResponse<DeleteFeedUserDataResponse>>;
|
|
292
294
|
exportFeedUserData(request: {
|
|
293
295
|
user_id: string;
|
|
294
296
|
}): Promise<StreamResponse<ExportFeedUserDataResponse>>;
|
|
297
|
+
getUserInterests(request: {
|
|
298
|
+
user_id: string;
|
|
299
|
+
limit?: number;
|
|
300
|
+
}): Promise<StreamResponse<GetUserInterestsResponse>>;
|
|
295
301
|
}
|
|
@@ -7760,6 +7760,48 @@ export interface GetOrCreateFeedViewResponse {
|
|
|
7760
7760
|
was_created: boolean;
|
|
7761
7761
|
feed_view: FeedViewResponse;
|
|
7762
7762
|
}
|
|
7763
|
+
export interface GetOrCreateFollowResponse {
|
|
7764
|
+
/**
|
|
7765
|
+
* True if the follow was newly created by this request; false if it already existed
|
|
7766
|
+
*/
|
|
7767
|
+
created: boolean;
|
|
7768
|
+
duration: string;
|
|
7769
|
+
follow: FollowResponse;
|
|
7770
|
+
/**
|
|
7771
|
+
* Whether a notification activity was successfully created (only set when the follow was newly created)
|
|
7772
|
+
*/
|
|
7773
|
+
notification_created?: boolean;
|
|
7774
|
+
}
|
|
7775
|
+
export interface GetOrCreateUnfollowRequest {
|
|
7776
|
+
/**
|
|
7777
|
+
* Fully qualified ID of the source feed
|
|
7778
|
+
*/
|
|
7779
|
+
source: string;
|
|
7780
|
+
/**
|
|
7781
|
+
* Fully qualified ID of the target feed
|
|
7782
|
+
*/
|
|
7783
|
+
target: string;
|
|
7784
|
+
/**
|
|
7785
|
+
* Whether to delete the corresponding notification activity (default: false)
|
|
7786
|
+
*/
|
|
7787
|
+
delete_notification_activity?: boolean;
|
|
7788
|
+
/**
|
|
7789
|
+
* If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
7790
|
+
*/
|
|
7791
|
+
enrich_own_fields?: boolean;
|
|
7792
|
+
/**
|
|
7793
|
+
* When true, activities from the unfollowed feed will remain in the source feed's timeline (default: false)
|
|
7794
|
+
*/
|
|
7795
|
+
keep_history?: boolean;
|
|
7796
|
+
}
|
|
7797
|
+
export interface GetOrCreateUnfollowResponse {
|
|
7798
|
+
/**
|
|
7799
|
+
* True if a follow was found and removed by this request; false if no follow existed
|
|
7800
|
+
*/
|
|
7801
|
+
deleted: boolean;
|
|
7802
|
+
duration: string;
|
|
7803
|
+
follow?: FollowResponse;
|
|
7804
|
+
}
|
|
7763
7805
|
export interface GetPushTemplatesResponse {
|
|
7764
7806
|
/**
|
|
7765
7807
|
* Duration of the request in milliseconds
|
|
@@ -7866,6 +7908,13 @@ export interface GetUserGroupResponse {
|
|
|
7866
7908
|
duration: string;
|
|
7867
7909
|
user_group?: UserGroupResponse;
|
|
7868
7910
|
}
|
|
7911
|
+
export interface GetUserInterestsResponse {
|
|
7912
|
+
duration: string;
|
|
7913
|
+
/**
|
|
7914
|
+
* Top-N interest tags sorted by descending count, then alphabetically by tag
|
|
7915
|
+
*/
|
|
7916
|
+
interests: InterestTagResponse[];
|
|
7917
|
+
}
|
|
7869
7918
|
export interface GoLiveRequest {
|
|
7870
7919
|
recording_storage_name?: string;
|
|
7871
7920
|
start_closed_caption?: boolean;
|
|
@@ -8252,6 +8301,16 @@ export interface InsertActionLogRequest {
|
|
|
8252
8301
|
export interface InsertActionLogResponse {
|
|
8253
8302
|
duration: string;
|
|
8254
8303
|
}
|
|
8304
|
+
export interface InterestTagResponse {
|
|
8305
|
+
/**
|
|
8306
|
+
* Number of distinct reacted-to activities tagged with this value
|
|
8307
|
+
*/
|
|
8308
|
+
count: number;
|
|
8309
|
+
/**
|
|
8310
|
+
* The interest tag value
|
|
8311
|
+
*/
|
|
8312
|
+
tag: string;
|
|
8313
|
+
}
|
|
8255
8314
|
export interface JoinCallAPIMetrics {
|
|
8256
8315
|
failures: number;
|
|
8257
8316
|
total: number;
|
package/package.json
CHANGED
|
@@ -67,6 +67,10 @@ import {
|
|
|
67
67
|
GetOrCreateFeedResponse,
|
|
68
68
|
GetOrCreateFeedViewRequest,
|
|
69
69
|
GetOrCreateFeedViewResponse,
|
|
70
|
+
GetOrCreateFollowResponse,
|
|
71
|
+
GetOrCreateUnfollowRequest,
|
|
72
|
+
GetOrCreateUnfollowResponse,
|
|
73
|
+
GetUserInterestsResponse,
|
|
70
74
|
ListFeedGroupsResponse,
|
|
71
75
|
ListFeedViewsResponse,
|
|
72
76
|
ListFeedVisibilitiesResponse,
|
|
@@ -2568,6 +2572,39 @@ export class FeedsApi {
|
|
|
2568
2572
|
return { ...response.body, metadata: response.metadata };
|
|
2569
2573
|
}
|
|
2570
2574
|
|
|
2575
|
+
async getOrCreateFollow(
|
|
2576
|
+
request: FollowRequest,
|
|
2577
|
+
): Promise<StreamResponse<GetOrCreateFollowResponse>> {
|
|
2578
|
+
const body = {
|
|
2579
|
+
source: request?.source,
|
|
2580
|
+
target: request?.target,
|
|
2581
|
+
activity_copy_limit: request?.activity_copy_limit,
|
|
2582
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2583
|
+
create_notification_activity: request?.create_notification_activity,
|
|
2584
|
+
create_users: request?.create_users,
|
|
2585
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
2586
|
+
push_preference: request?.push_preference,
|
|
2587
|
+
skip_push: request?.skip_push,
|
|
2588
|
+
status: request?.status,
|
|
2589
|
+
custom: request?.custom,
|
|
2590
|
+
};
|
|
2591
|
+
|
|
2592
|
+
const response = await this.apiClient.sendRequest<
|
|
2593
|
+
StreamResponse<GetOrCreateFollowResponse>
|
|
2594
|
+
>(
|
|
2595
|
+
'POST',
|
|
2596
|
+
'/api/v2/feeds/follows/upsert',
|
|
2597
|
+
undefined,
|
|
2598
|
+
undefined,
|
|
2599
|
+
body,
|
|
2600
|
+
'application/json',
|
|
2601
|
+
);
|
|
2602
|
+
|
|
2603
|
+
decoders.GetOrCreateFollowResponse?.(response.body);
|
|
2604
|
+
|
|
2605
|
+
return { ...response.body, metadata: response.metadata };
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2571
2608
|
async unfollow(request: {
|
|
2572
2609
|
source: string;
|
|
2573
2610
|
target: string;
|
|
@@ -2804,6 +2841,33 @@ export class FeedsApi {
|
|
|
2804
2841
|
return { ...response.body, metadata: response.metadata };
|
|
2805
2842
|
}
|
|
2806
2843
|
|
|
2844
|
+
async getOrCreateUnfollow(
|
|
2845
|
+
request: GetOrCreateUnfollowRequest,
|
|
2846
|
+
): Promise<StreamResponse<GetOrCreateUnfollowResponse>> {
|
|
2847
|
+
const body = {
|
|
2848
|
+
source: request?.source,
|
|
2849
|
+
target: request?.target,
|
|
2850
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
2851
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
2852
|
+
keep_history: request?.keep_history,
|
|
2853
|
+
};
|
|
2854
|
+
|
|
2855
|
+
const response = await this.apiClient.sendRequest<
|
|
2856
|
+
StreamResponse<GetOrCreateUnfollowResponse>
|
|
2857
|
+
>(
|
|
2858
|
+
'POST',
|
|
2859
|
+
'/api/v2/feeds/unfollow/upsert',
|
|
2860
|
+
undefined,
|
|
2861
|
+
undefined,
|
|
2862
|
+
body,
|
|
2863
|
+
'application/json',
|
|
2864
|
+
);
|
|
2865
|
+
|
|
2866
|
+
decoders.GetOrCreateUnfollowResponse?.(response.body);
|
|
2867
|
+
|
|
2868
|
+
return { ...response.body, metadata: response.metadata };
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2807
2871
|
async deleteFeedUserData(
|
|
2808
2872
|
request: DeleteFeedUserDataRequest & { user_id: string },
|
|
2809
2873
|
): Promise<StreamResponse<DeleteFeedUserDataResponse>> {
|
|
@@ -2845,4 +2909,29 @@ export class FeedsApi {
|
|
|
2845
2909
|
|
|
2846
2910
|
return { ...response.body, metadata: response.metadata };
|
|
2847
2911
|
}
|
|
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
|
+
}
|
|
2848
2937
|
}
|
|
@@ -2767,6 +2767,20 @@ decoders.GetOrCreateFeedViewResponse = (input?: Record<string, any>) => {
|
|
|
2767
2767
|
return decode(typeMappings, input);
|
|
2768
2768
|
};
|
|
2769
2769
|
|
|
2770
|
+
decoders.GetOrCreateFollowResponse = (input?: Record<string, any>) => {
|
|
2771
|
+
const typeMappings: TypeMapping = {
|
|
2772
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
2773
|
+
};
|
|
2774
|
+
return decode(typeMappings, input);
|
|
2775
|
+
};
|
|
2776
|
+
|
|
2777
|
+
decoders.GetOrCreateUnfollowResponse = (input?: Record<string, any>) => {
|
|
2778
|
+
const typeMappings: TypeMapping = {
|
|
2779
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
2780
|
+
};
|
|
2781
|
+
return decode(typeMappings, input);
|
|
2782
|
+
};
|
|
2783
|
+
|
|
2770
2784
|
decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
|
|
2771
2785
|
const typeMappings: TypeMapping = {
|
|
2772
2786
|
templates: { type: 'PushTemplateResponse', isSingle: false },
|
package/src/gen/models/index.ts
CHANGED
|
@@ -11165,6 +11165,60 @@ export interface GetOrCreateFeedViewResponse {
|
|
|
11165
11165
|
feed_view: FeedViewResponse;
|
|
11166
11166
|
}
|
|
11167
11167
|
|
|
11168
|
+
export interface GetOrCreateFollowResponse {
|
|
11169
|
+
/**
|
|
11170
|
+
* True if the follow was newly created by this request; false if it already existed
|
|
11171
|
+
*/
|
|
11172
|
+
created: boolean;
|
|
11173
|
+
|
|
11174
|
+
duration: string;
|
|
11175
|
+
|
|
11176
|
+
follow: FollowResponse;
|
|
11177
|
+
|
|
11178
|
+
/**
|
|
11179
|
+
* Whether a notification activity was successfully created (only set when the follow was newly created)
|
|
11180
|
+
*/
|
|
11181
|
+
notification_created?: boolean;
|
|
11182
|
+
}
|
|
11183
|
+
|
|
11184
|
+
export interface GetOrCreateUnfollowRequest {
|
|
11185
|
+
/**
|
|
11186
|
+
* Fully qualified ID of the source feed
|
|
11187
|
+
*/
|
|
11188
|
+
source: string;
|
|
11189
|
+
|
|
11190
|
+
/**
|
|
11191
|
+
* Fully qualified ID of the target feed
|
|
11192
|
+
*/
|
|
11193
|
+
target: string;
|
|
11194
|
+
|
|
11195
|
+
/**
|
|
11196
|
+
* Whether to delete the corresponding notification activity (default: false)
|
|
11197
|
+
*/
|
|
11198
|
+
delete_notification_activity?: boolean;
|
|
11199
|
+
|
|
11200
|
+
/**
|
|
11201
|
+
* If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
11202
|
+
*/
|
|
11203
|
+
enrich_own_fields?: boolean;
|
|
11204
|
+
|
|
11205
|
+
/**
|
|
11206
|
+
* When true, activities from the unfollowed feed will remain in the source feed's timeline (default: false)
|
|
11207
|
+
*/
|
|
11208
|
+
keep_history?: boolean;
|
|
11209
|
+
}
|
|
11210
|
+
|
|
11211
|
+
export interface GetOrCreateUnfollowResponse {
|
|
11212
|
+
/**
|
|
11213
|
+
* True if a follow was found and removed by this request; false if no follow existed
|
|
11214
|
+
*/
|
|
11215
|
+
deleted: boolean;
|
|
11216
|
+
|
|
11217
|
+
duration: string;
|
|
11218
|
+
|
|
11219
|
+
follow?: FollowResponse;
|
|
11220
|
+
}
|
|
11221
|
+
|
|
11168
11222
|
export interface GetPushTemplatesResponse {
|
|
11169
11223
|
/**
|
|
11170
11224
|
* Duration of the request in milliseconds
|
|
@@ -11308,6 +11362,15 @@ export interface GetUserGroupResponse {
|
|
|
11308
11362
|
user_group?: UserGroupResponse;
|
|
11309
11363
|
}
|
|
11310
11364
|
|
|
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
|
+
|
|
11311
11374
|
export interface GoLiveRequest {
|
|
11312
11375
|
recording_storage_name?: string;
|
|
11313
11376
|
|
|
@@ -11877,6 +11940,18 @@ export interface InsertActionLogResponse {
|
|
|
11877
11940
|
duration: string;
|
|
11878
11941
|
}
|
|
11879
11942
|
|
|
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
|
+
|
|
11880
11955
|
export interface JoinCallAPIMetrics {
|
|
11881
11956
|
failures: number;
|
|
11882
11957
|
|