@@ -61,6 +61,41 @@ decoders.ActionLogResponse = (input?: Record<string, any>) => {
6161 return decode ( typeMappings , input ) ;
6262} ;
6363
64+ decoders . Activity = ( input ?: Record < string , any > ) => {
65+ const typeMappings : TypeMapping = {
66+ created_at : { type : 'DatetimeType' , isSingle : true } ,
67+
68+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
69+
70+ comments : { type : 'Comment' , isSingle : false } ,
71+
72+ latest_reactions : { type : 'DenormalizedFeedsReaction' , isSingle : false } ,
73+
74+ mentioned_users : { type : 'User' , isSingle : false } ,
75+
76+ own_bookmarks : { type : 'Bookmark' , isSingle : false } ,
77+
78+ own_reactions : { type : 'DenormalizedFeedsReaction' , isSingle : false } ,
79+
80+ reaction_groups : { type : 'FeedsReactionGroup' , isSingle : false } ,
81+
82+ deleted_at : { type : 'DatetimeType' , isSingle : true } ,
83+
84+ edited_at : { type : 'DatetimeType' , isSingle : true } ,
85+
86+ expires_at : { type : 'DatetimeType' , isSingle : true } ,
87+
88+ current_feed : { type : 'Feed' , isSingle : true } ,
89+
90+ parent : { type : 'Activity' , isSingle : true } ,
91+
92+ poll : { type : 'Poll' , isSingle : true } ,
93+
94+ user : { type : 'User' , isSingle : true } ,
95+ } ;
96+ return decode ( typeMappings , input ) ;
97+ } ;
98+
6499decoders . ActivityAddedEvent = ( input ?: Record < string , any > ) => {
65100 const typeMappings : TypeMapping = {
66101 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -224,6 +259,13 @@ decoders.ActivityResponse = (input?: Record<string, any>) => {
224259 return decode ( typeMappings , input ) ;
225260} ;
226261
262+ decoders . ActivitySelectorConfig = ( input ?: Record < string , any > ) => {
263+ const typeMappings : TypeMapping = {
264+ cutoff_time : { type : 'DatetimeType' , isSingle : true } ,
265+ } ;
266+ return decode ( typeMappings , input ) ;
267+ } ;
268+
227269decoders . ActivitySelectorConfigResponse = ( input ?: Record < string , any > ) => {
228270 const typeMappings : TypeMapping = {
229271 cutoff_time : { type : 'DatetimeType' , isSingle : true } ,
@@ -476,6 +518,21 @@ decoders.BlockedUserResponse = (input?: Record<string, any>) => {
476518 return decode ( typeMappings , input ) ;
477519} ;
478520
521+ decoders . Bookmark = ( input ?: Record < string , any > ) => {
522+ const typeMappings : TypeMapping = {
523+ created_at : { type : 'DatetimeType' , isSingle : true } ,
524+
525+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
526+
527+ activity : { type : 'Activity' , isSingle : true } ,
528+
529+ folder : { type : 'BookmarkFolder' , isSingle : true } ,
530+
531+ user : { type : 'User' , isSingle : true } ,
532+ } ;
533+ return decode ( typeMappings , input ) ;
534+ } ;
535+
479536decoders . BookmarkAddedEvent = ( input ?: Record < string , any > ) => {
480537 const typeMappings : TypeMapping = {
481538 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -502,6 +559,15 @@ decoders.BookmarkDeletedEvent = (input?: Record<string, any>) => {
502559 return decode ( typeMappings , input ) ;
503560} ;
504561
562+ decoders . BookmarkFolder = ( input ?: Record < string , any > ) => {
563+ const typeMappings : TypeMapping = {
564+ created_at : { type : 'DatetimeType' , isSingle : true } ,
565+
566+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
567+ } ;
568+ return decode ( typeMappings , input ) ;
569+ } ;
570+
505571decoders . BookmarkFolderDeletedEvent = ( input ?: Record < string , any > ) => {
506572 const typeMappings : TypeMapping = {
507573 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -1487,6 +1553,31 @@ decoders.Command = (input?: Record<string, any>) => {
14871553 return decode ( typeMappings , input ) ;
14881554} ;
14891555
1556+ decoders . Comment = ( input ?: Record < string , any > ) => {
1557+ const typeMappings : TypeMapping = {
1558+ created_at : { type : 'DatetimeType' , isSingle : true } ,
1559+
1560+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
1561+
1562+ latest_reactions : { type : 'DenormalizedFeedsReaction' , isSingle : false } ,
1563+
1564+ mentioned_users : { type : 'User' , isSingle : false } ,
1565+
1566+ own_reactions : { type : 'DenormalizedFeedsReaction' , isSingle : false } ,
1567+
1568+ reaction_groups : { type : 'FeedsReactionGroup' , isSingle : false } ,
1569+
1570+ deleted_at : { type : 'DatetimeType' , isSingle : true } ,
1571+
1572+ activity : { type : 'Activity' , isSingle : true } ,
1573+
1574+ parent : { type : 'Comment' , isSingle : true } ,
1575+
1576+ user : { type : 'User' , isSingle : true } ,
1577+ } ;
1578+ return decode ( typeMappings , input ) ;
1579+ } ;
1580+
14901581decoders . CommentAddedEvent = ( input ?: Record < string , any > ) => {
14911582 const typeMappings : TypeMapping = {
14921583 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -1780,6 +1871,15 @@ decoders.DeleteReactionResponse = (input?: Record<string, any>) => {
17801871 return decode ( typeMappings , input ) ;
17811872} ;
17821873
1874+ decoders . DenormalizedFeedsReaction = ( input ?: Record < string , any > ) => {
1875+ const typeMappings : TypeMapping = {
1876+ created_at : { type : 'DatetimeType' , isSingle : true } ,
1877+
1878+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
1879+ } ;
1880+ return decode ( typeMappings , input ) ;
1881+ } ;
1882+
17831883decoders . Device = ( input ?: Record < string , any > ) => {
17841884 const typeMappings : TypeMapping = {
17851885 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -1876,6 +1976,27 @@ decoders.ExportUserResponse = (input?: Record<string, any>) => {
18761976 return decode ( typeMappings , input ) ;
18771977} ;
18781978
1979+ decoders . Feed = ( input ?: Record < string , any > ) => {
1980+ const typeMappings : TypeMapping = {
1981+ created_at : { type : 'DatetimeType' , isSingle : true } ,
1982+
1983+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
1984+
1985+ deleted_at : { type : 'DatetimeType' , isSingle : true } ,
1986+
1987+ last_activity_added_at : { type : 'DatetimeType' , isSingle : true } ,
1988+
1989+ last_read_at : { type : 'DatetimeType' , isSingle : true } ,
1990+
1991+ last_watched_at : { type : 'DatetimeType' , isSingle : true } ,
1992+
1993+ created_by : { type : 'User' , isSingle : true } ,
1994+
1995+ group : { type : 'FeedGroup' , isSingle : true } ,
1996+ } ;
1997+ return decode ( typeMappings , input ) ;
1998+ } ;
1999+
18792000decoders . FeedCreatedEvent = ( input ?: Record < string , any > ) => {
18802001 const typeMappings : TypeMapping = {
18812002 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -1902,12 +2023,29 @@ decoders.FeedDeletedEvent = (input?: Record<string, any>) => {
19022023 return decode ( typeMappings , input ) ;
19032024} ;
19042025
2026+ decoders . FeedGroup = ( input ?: Record < string , any > ) => {
2027+ const typeMappings : TypeMapping = {
2028+ created_at : { type : 'DatetimeType' , isSingle : true } ,
2029+
2030+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
2031+
2032+ activity_selectors : { type : 'ActivitySelectorConfig' , isSingle : false } ,
2033+
2034+ deleted_at : { type : 'DatetimeType' , isSingle : true } ,
2035+
2036+ last_feed_get_at : { type : 'DatetimeType' , isSingle : true } ,
2037+ } ;
2038+ return decode ( typeMappings , input ) ;
2039+ } ;
2040+
19052041decoders . FeedGroupChangedEvent = ( input ?: Record < string , any > ) => {
19062042 const typeMappings : TypeMapping = {
19072043 created_at : { type : 'DatetimeType' , isSingle : true } ,
19082044
19092045 received_at : { type : 'DatetimeType' , isSingle : true } ,
19102046
2047+ feed_group : { type : 'FeedGroup' , isSingle : true } ,
2048+
19112049 user : { type : 'UserResponseCommonFields' , isSingle : true } ,
19122050 } ;
19132051 return decode ( typeMappings , input ) ;
@@ -2009,6 +2147,23 @@ decoders.FeedResponse = (input?: Record<string, any>) => {
20092147 return decode ( typeMappings , input ) ;
20102148} ;
20112149
2150+ decoders . FeedSuggestionResponse = ( input ?: Record < string , any > ) => {
2151+ const typeMappings : TypeMapping = {
2152+ created_at : { type : 'DatetimeType' , isSingle : true } ,
2153+
2154+ updated_at : { type : 'DatetimeType' , isSingle : true } ,
2155+
2156+ created_by : { type : 'UserResponse' , isSingle : true } ,
2157+
2158+ deleted_at : { type : 'DatetimeType' , isSingle : true } ,
2159+
2160+ own_follows : { type : 'FollowResponse' , isSingle : false } ,
2161+
2162+ own_membership : { type : 'FeedMemberResponse' , isSingle : true } ,
2163+ } ;
2164+ return decode ( typeMappings , input ) ;
2165+ } ;
2166+
20122167decoders . FeedUpdatedEvent = ( input ?: Record < string , any > ) => {
20132168 const typeMappings : TypeMapping = {
20142169 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -2034,6 +2189,15 @@ decoders.FeedViewResponse = (input?: Record<string, any>) => {
20342189 return decode ( typeMappings , input ) ;
20352190} ;
20362191
2192+ decoders . FeedsReactionGroup = ( input ?: Record < string , any > ) => {
2193+ const typeMappings : TypeMapping = {
2194+ first_reaction_at : { type : 'DatetimeType' , isSingle : true } ,
2195+
2196+ last_reaction_at : { type : 'DatetimeType' , isSingle : true } ,
2197+ } ;
2198+ return decode ( typeMappings , input ) ;
2199+ } ;
2200+
20372201decoders . FeedsReactionResponse = ( input ?: Record < string , any > ) => {
20382202 const typeMappings : TypeMapping = {
20392203 created_at : { type : 'DatetimeType' , isSingle : true } ,
@@ -2293,7 +2457,7 @@ decoders.GetFeedViewResponse = (input?: Record<string, any>) => {
22932457
22942458decoders . GetFollowSuggestionsResponse = ( input ?: Record < string , any > ) => {
22952459 const typeMappings : TypeMapping = {
2296- suggestions : { type : 'FeedResponse ' , isSingle : false } ,
2460+ suggestions : { type : 'FeedSuggestionResponse ' , isSingle : false } ,
22972461 } ;
22982462 return decode ( typeMappings , input ) ;
22992463} ;
@@ -3742,6 +3906,10 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
37423906
37433907 feeds_v2_reaction : { type : 'Reaction' , isSingle : true } ,
37443908
3909+ feeds_v3_activity : { type : 'Activity' , isSingle : true } ,
3910+
3911+ feeds_v3_comment : { type : 'Comment' , isSingle : true } ,
3912+
37453913 message : { type : 'MessageResponse' , isSingle : true } ,
37463914
37473915 reaction : { type : 'Reaction' , isSingle : true } ,
0 commit comments