@@ -202,6 +202,22 @@ enums:
202202 - description : all permissions
203203 name : all
204204 value : ' 0x3fffffff'
205+ - name : SearchContentUpdateType
206+ values :
207+ - description : the node was blocked
208+ name : block
209+ - description : the node was added to the list of friends
210+ name : friend
211+ - description : the profile was updated
212+ name : profile
213+ - description : subscribed to the node
214+ name : subscribe
215+ - description : the node was unblocked
216+ name : unblock
217+ - description : the node was removed from the list of friends
218+ name : unfriend
219+ - description : unsubscribed from the node
220+ name : unsubscribe
205221- name : SearchEngine
206222 values :
207223 - description : Google
@@ -458,15 +474,24 @@ enums:
458474 values :
459475 - description : subscribe to new stories in the feed
460476 name : feed
477+ ordinal : 0
461478 - description : subscribe to updates to the posting
462479 name : posting
480+ ordinal : 1
463481 - description : subscribe to new comments to the posting
464482 name : posting-comments
483+ ordinal : 2
465484 - description : subscribe to updates to the node profile
466485 name : profile
486+ ordinal : 3
487+ - description : subscribe to updates to all content that may be indexed by a search
488+ engine
489+ name : search
490+ ordinal : 5
467491 - description : subscribe to updates to the user list (its name is passed in <code>feedName</code>
468492 field)
469493 name : user-list
494+ ordinal : 4
470495- name : VerificationStatus
471496 values :
472497 - description : the verification is pending
@@ -1310,8 +1335,9 @@ objects:
13101335 of the contact'' s node name or a beginning of any space-delimited word in the
13111336 contact'' s full name. The order of words is not significant. <br><br> The node
13121337 may decide to return fewer contacts than the given <code>limit</code>. <br><br>
1313- The contacts are sorted by their <i>closeness</i> to the node, which is calculated
1314- from the number of reactions and comments and their age.
1338+ The contacts are sorted by <i>social distance</i> from the node, which depends
1339+ on their subscription and friendship status and the number of recent reactions
1340+ and comments.
13151341
13161342 '
13171343 errors :
@@ -3119,6 +3145,38 @@ objects:
31193145 - description : ID of the order
31203146 name : id
31213147 type : str
3148+ - description : ' Search API is implemented by nodes acting as search engines in the
3149+ Moera network.
3150+
3151+ '
3152+ name : Search
3153+ requests :
3154+ - auth : optional
3155+ description : ' Search for Moera nodes matching the search <code>query</code>. Every
3156+ space-delimited word in the query must match case-insensitively a beginning
3157+ of the node'' s name or a beginning of any non-letter-delimited word in the node'' s
3158+ full name. The order of words is not significant. <br><br> The search engine
3159+ may decide to return fewer nodes than the given <code>limit</code>. <br><br>
3160+ The returned nodes are sorted by their relevance. The exact definition of this
3161+ term is left to the search engine'' s implementation.
3162+
3163+ '
3164+ errors :
3165+ - code : limit.invalid
3166+ description : <code>limit</code> parameter has an invalid value
3167+ function : search_nodes(query=None, limit=None)
3168+ out :
3169+ array : true
3170+ struct : SearchNodeInfo
3171+ params :
3172+ - description : the search query
3173+ name : query
3174+ optional : true
3175+ type : str
3176+ - description : maximum number of nodes returned
3177+ name : limit
3178+ optional : true
3179+ type : int
31223180- description : ' Settings - the node and client settings. The node settings affect
31233181 the node behavior. Only those settings are accepted that are known by the node,
31243182 and their values are validated before saving. The node settings metadata can be
@@ -3423,6 +3481,8 @@ objects:
34233481 description : there is no posting with the given ID
34243482 - code : user-list.not-found
34253483 description : there is no list of users with the given name
3484+ - code : subscriber.too-many
3485+ description : there are too many subscribers of this type
34263486 function : create_subscriber(subscriber)
34273487 out :
34283488 struct : SubscriberInfo
@@ -5113,11 +5173,11 @@ structures:
51135173 - name : avatar
51145174 optional : true
51155175 struct : AvatarImage
5116- - description : ' closeness of the contact to the node, which is calculated from the
5117- number of reactions and comments and their age
5176+ - description : ' social distance between the contact and the node, which depends
5177+ on subscription and friendship status and the number recent reactions and comments
51185178
51195179 '
5120- name : closeness
5180+ name : distance
51215181 type : float
51225182 - description : the contact is subscribed to at least one of the node's feeds
51235183 name : has_feed_subscriber
@@ -7444,6 +7504,25 @@ structures:
74447504 name : sheriff_name
74457505 type : str
74467506 name : SheriffMark
7507+ - fields :
7508+ - name : node_name
7509+ type : str
7510+ - description : node owner's full name
7511+ name : full_name
7512+ optional : true
7513+ type : str
7514+ - description : node title
7515+ name : title
7516+ optional : true
7517+ type : str
7518+ - description : node owner's avatar
7519+ name : avatar
7520+ optional : true
7521+ struct : AvatarImage
7522+ - description : social distance between the node and the client
7523+ name : distance
7524+ type : float
7525+ name : SearchNodeInfo
74477526- fields :
74487527 - description : name of the setting
74497528 name : name
@@ -8577,10 +8656,7 @@ structures:
85778656 name : remote_posting_id
85788657 optional : true
85798658 type : str
8580- - constraints :
8581- - notnull :
8582- error : subscription.reason.missing
8583- description : subscription reason
8659+ - description : subscription reason
85848660 enum : SubscriptionReason
85858661 name : reason
85868662 optional : true
0 commit comments