@@ -94,6 +94,28 @@ export interface ActivityLocation {
9494 lng : number ;
9595}
9696
97+ export interface ActivityMarkEvent {
98+ created_at : Date ;
99+
100+ fid : string ;
101+
102+ custom : Record < string , any > ;
103+
104+ type : string ;
105+
106+ mark_all_read ?: boolean ;
107+
108+ mark_all_seen ?: boolean ;
109+
110+ received_at ?: Date ;
111+
112+ mark_read ?: string [ ] ;
113+
114+ mark_watched ?: string [ ] ;
115+
116+ user ?: UserResponseCommonFields ;
117+ }
118+
97119export interface ActivityPinResponse {
98120 created_at : Date ;
99121
@@ -1125,6 +1147,10 @@ export interface FeedGroupResponse {
11251147}
11261148
11271149export interface FeedInput {
1150+ description ?: string ;
1151+
1152+ name ?: string ;
1153+
11281154 visibility ?: 'public' | 'visible' | 'followers' | 'members' | 'private' ;
11291155
11301156 members ?: FeedMemberRequest [ ] ;
@@ -1252,6 +1278,10 @@ export interface FeedRequest {
12521278
12531279 created_by_id ?: string ;
12541280
1281+ description ?: string ;
1282+
1283+ name ?: string ;
1284+
12551285 visibility ?: 'public' | 'visible' | 'followers' | 'members' | 'private' ;
12561286
12571287 members ?: FeedMemberRequest [ ] ;
@@ -1262,6 +1292,8 @@ export interface FeedRequest {
12621292export interface FeedResponse {
12631293 created_at : Date ;
12641294
1295+ description : string ;
1296+
12651297 fid : string ;
12661298
12671299 follower_count : number ;
@@ -1274,6 +1306,8 @@ export interface FeedResponse {
12741306
12751307 member_count : number ;
12761308
1309+ name : string ;
1310+
12771311 pin_count : number ;
12781312
12791313 updated_at : Date ;
@@ -2498,30 +2532,33 @@ export interface VoteData {
24982532}
24992533
25002534export type WebhookEvent =
2501- | ( { type : 'activity.added' } & ActivityAddedEvent )
2502- | ( { type : 'activity.deleted' } & ActivityDeletedEvent )
2503- | ( { type : 'activity.pinned' } & ActivityPinnedEvent )
2504- | ( { type : 'activity.reaction.added' } & ActivityReactionAddedEvent )
2505- | ( { type : 'activity.reaction.deleted' } & ActivityReactionDeletedEvent )
2506- | ( { type : 'activity.removed_from_feed' } & ActivityRemovedFromFeedEvent )
2507- | ( { type : 'activity.unpinned' } & ActivityUnpinnedEvent )
2508- | ( { type : 'activity.updated' } & ActivityUpdatedEvent )
2509- | ( { type : 'bookmark.added' } & BookmarkAddedEvent )
2510- | ( { type : 'bookmark.deleted' } & BookmarkDeletedEvent )
2511- | ( { type : 'bookmark.updated' } & BookmarkUpdatedEvent )
2512- | ( { type : 'comment.added' } & CommentAddedEvent )
2513- | ( { type : 'comment.deleted' } & CommentDeletedEvent )
2514- | ( { type : 'comment.reaction.added' } & CommentReactionAddedEvent )
2515- | ( { type : 'comment.reaction.deleted' } & CommentReactionDeletedEvent )
2516- | ( { type : 'comment.updated' } & CommentUpdatedEvent )
2517- | ( { type : 'feed.created' } & FeedCreatedEvent )
2518- | ( { type : 'feed.deleted' } & FeedDeletedEvent )
2519- | ( { type : 'feed.updated' } & FeedUpdatedEvent )
2520- | ( { type : 'feed_group.changed' } & FeedGroupChangedEvent )
2521- | ( { type : 'feed_group.deleted' } & FeedGroupDeletedEvent )
2522- | ( { type : 'feed_member.added' } & FeedMemberAddedEvent )
2523- | ( { type : 'feed_member.removed' } & FeedMemberRemovedEvent )
2524- | ( { type : 'feed_member.updated' } & FeedMemberUpdatedEvent )
2525- | ( { type : 'follow.created' } & FollowCreatedEvent )
2526- | ( { type : 'follow.deleted' } & FollowDeletedEvent )
2527- | ( { type : 'follow.updated' } & FollowUpdatedEvent ) ;
2535+ | ( { type : 'feeds.activity.added' } & ActivityAddedEvent )
2536+ | ( { type : 'feeds.activity.deleted' } & ActivityDeletedEvent )
2537+ | ( { type : 'feeds.activity.marked' } & ActivityMarkEvent )
2538+ | ( { type : 'feeds.activity.pinned' } & ActivityPinnedEvent )
2539+ | ( { type : 'feeds.activity.reaction.added' } & ActivityReactionAddedEvent )
2540+ | ( { type : 'feeds.activity.reaction.deleted' } & ActivityReactionDeletedEvent )
2541+ | ( {
2542+ type : 'feeds.activity.removed_from_feed' ;
2543+ } & ActivityRemovedFromFeedEvent )
2544+ | ( { type : 'feeds.activity.unpinned' } & ActivityUnpinnedEvent )
2545+ | ( { type : 'feeds.activity.updated' } & ActivityUpdatedEvent )
2546+ | ( { type : 'feeds.bookmark.added' } & BookmarkAddedEvent )
2547+ | ( { type : 'feeds.bookmark.deleted' } & BookmarkDeletedEvent )
2548+ | ( { type : 'feeds.bookmark.updated' } & BookmarkUpdatedEvent )
2549+ | ( { type : 'feeds.comment.added' } & CommentAddedEvent )
2550+ | ( { type : 'feeds.comment.deleted' } & CommentDeletedEvent )
2551+ | ( { type : 'feeds.comment.reaction.added' } & CommentReactionAddedEvent )
2552+ | ( { type : 'feeds.comment.reaction.deleted' } & CommentReactionDeletedEvent )
2553+ | ( { type : 'feeds.comment.updated' } & CommentUpdatedEvent )
2554+ | ( { type : 'feeds.feed.created' } & FeedCreatedEvent )
2555+ | ( { type : 'feeds.feed.deleted' } & FeedDeletedEvent )
2556+ | ( { type : 'feeds.feed.updated' } & FeedUpdatedEvent )
2557+ | ( { type : 'feeds.feed_group.changed' } & FeedGroupChangedEvent )
2558+ | ( { type : 'feeds.feed_group.deleted' } & FeedGroupDeletedEvent )
2559+ | ( { type : 'feeds.feed_member.added' } & FeedMemberAddedEvent )
2560+ | ( { type : 'feeds.feed_member.removed' } & FeedMemberRemovedEvent )
2561+ | ( { type : 'feeds.feed_member.updated' } & FeedMemberUpdatedEvent )
2562+ | ( { type : 'feeds.follow.created' } & FollowCreatedEvent )
2563+ | ( { type : 'feeds.follow.deleted' } & FollowDeletedEvent )
2564+ | ( { type : 'feeds.follow.updated' } & FollowUpdatedEvent ) ;
0 commit comments