@@ -1468,6 +1468,16 @@ objects:
14681468 name : limit
14691469 optional : true
14701470 type : int
1471+ - auth : admin
1472+ description : Fetch the detailed information, including relationships, about the
1473+ contacts matching the filter.
1474+ function : fetch_contacts(filter)
1475+ out :
1476+ array : true
1477+ struct : ContactWithRelationships
1478+ params :
1479+ - name : filter
1480+ struct : ContactFilter
14711481- description : Credentials used to authenticate the administrator of the node.
14721482 name : Credentials
14731483 requests :
@@ -1870,7 +1880,8 @@ objects:
18701880 \ the standard feeds that have special meaning: <ul>\n <li><code>timeline</code>\
18711881 \ - the main feed of publications;</li>\n <li><code>instant</code> - the feed\
18721882 \ of instant notifications;</li>\n <li><code>news</code> - the main feed of publications\
1873- \ gathered from other nodes.</li>\n </ul>\n "
1883+ \ gathered from other nodes;</li>\n <li><code>explore</code> - the feed of recommended\
1884+ \ publications from around the network.</li>\n </ul>\n "
18741885 name : Feeds
18751886 requests :
18761887 - auth : admin or none
@@ -3010,11 +3021,18 @@ objects:
30103021 description : <code>limit</code> parameter has an invalid value
30113022 - code : sheriff.not-found
30123023 description : sheriff node is not registered
3013- function : get_recommended_postings(sheriff=None, limit=None)
3024+ function : get_recommended_postings(feed=None, sheriff=None, limit=None)
30143025 out :
30153026 array : true
30163027 struct : RecommendedPostingInfo
30173028 params :
3029+ - description : ' name of the feed to get recommendations for ("news" by default);
3030+ recommendations for every feed are tracked separately
3031+
3032+ '
3033+ name : feed
3034+ optional : true
3035+ type : str
30183036 - description : filter out entries prohibited by the given sheriff
30193037 name : sheriff
30203038 optional : true
@@ -3079,7 +3097,7 @@ objects:
30793097 errors :
30803098 - code : not-found
30813099 description : the posting is not found
3082- function : accept_recommended_posting(node_name, posting_id)
3100+ function : accept_recommended_posting(node_name, posting_id, feed=None )
30833101 out :
30843102 struct : Result
30853103 params :
@@ -3089,13 +3107,20 @@ objects:
30893107 - description : ID of the posting on the remote node
30903108 name : posting_id
30913109 type : str
3110+ - description : ' name of the feed the recommendation is accepted to ("news" by
3111+ default); recommendations for every feed are tracked separately
3112+
3113+ '
3114+ name : feed
3115+ optional : true
3116+ type : str
30923117 - auth : required
30933118 description : Inform the recommendation service that the recommended posting was
30943119 rejected by the client.
30953120 errors :
30963121 - code : not-found
30973122 description : the posting is not found
3098- function : reject_recommended_posting(node_name, posting_id)
3123+ function : reject_recommended_posting(node_name, posting_id, feed=None )
30993124 out :
31003125 struct : Result
31013126 params :
@@ -3105,6 +3130,13 @@ objects:
31053130 - description : ID of the posting on the remote node
31063131 name : posting_id
31073132 type : str
3133+ - description : ' name of the feed the recommendation is rejected for ("news" by
3134+ default); recommendations for every feed are tracked separately
3135+
3136+ '
3137+ name : feed
3138+ optional : true
3139+ type : str
31083140 - auth : required
31093141 description : ' Ask the recommendation service to exclude all content from the given
31103142 node from future recommendations.
@@ -5526,6 +5558,12 @@ structures:
55265558 name : total
55275559 type : int
55285560 name : CommentTotalInfo
5561+ - fields :
5562+ - array : true
5563+ description : list of node names to fetch
5564+ name : node_names
5565+ type : str
5566+ name : ContactFilter
55295567- fields :
55305568 - name : node_name
55315569 type : str
@@ -5583,6 +5621,37 @@ structures:
55835621 optional : true
55845622 struct : ContactOperations
55855623 name : ContactInfo
5624+ - fields :
5625+ - description : contact's details
5626+ name : contact
5627+ struct : ContactInfo
5628+ - description : information about the contact's subscription to the node's feeds
5629+ name : subscriber
5630+ optional : true
5631+ struct : SubscriberInfo
5632+ - description : information about the nodes's subscription to the contact's feeds
5633+ name : subscription
5634+ optional : true
5635+ struct : SubscriptionInfo
5636+ - description : information about the node's friendship with the contact
5637+ name : friend
5638+ optional : true
5639+ struct : FriendInfo
5640+ - description : information about the contact's friendship with the node
5641+ name : friend_of
5642+ optional : true
5643+ struct : FriendOfInfo
5644+ - array : true
5645+ description : information about blocking the contact by the node
5646+ name : blocked
5647+ optional : true
5648+ struct : BlockedUserInfo
5649+ - array : true
5650+ description : information about blocking the node by the contact
5651+ name : blocked_by
5652+ optional : true
5653+ struct : BlockedByUserInfo
5654+ name : ContactWithRelationships
55865655- fields :
55875656 - constraints :
55885657 - notblank :
0 commit comments