SHA256
Уточнить схемы ответов API
This commit is contained in:
@@ -132,6 +132,10 @@
|
||||
"login": "Alice",
|
||||
"outFriends": ["Bob"],
|
||||
"inFriends": ["Kate"],
|
||||
"outCloseFriends": [],
|
||||
"inCloseFriends": [],
|
||||
"outOfficialAccounts": [],
|
||||
"inOfficialAccounts": [],
|
||||
"outContacts": [],
|
||||
"inContacts": [],
|
||||
"outFollows": [],
|
||||
@@ -157,6 +161,12 @@
|
||||
"allUsers": [
|
||||
{
|
||||
"login": "Bob",
|
||||
"avatar": { "ar": "...", "pr": "..." },
|
||||
"relationType": "friend",
|
||||
"primaryConfirmed": false,
|
||||
"shineConfirmed": false,
|
||||
"primaryConfirmationsCount": 0,
|
||||
"shineConfirmationsCount": 0,
|
||||
"official": false,
|
||||
"shine": true,
|
||||
"officialLabel": "",
|
||||
@@ -168,9 +178,7 @@
|
||||
}
|
||||
```
|
||||
|
||||
### Примечание
|
||||
|
||||
Поля `known_person`, `shine_confirmed`, `shine_seen` в UI считаются недопроверенной зоной проекта; при изменениях этой логики нужна ручная end-to-end проверка.
|
||||
`allUsers` содержит карточки с признаками `official` и `shine`, подписями `officialLabel` и `shineLabel`, аватаром `{ar, pr}`, эффективным `relationType` и флагами/счётчиками подтверждений. В ответе также есть отдельные массивы `outCloseFriends` и `inCloseFriends`.
|
||||
|
||||
---
|
||||
|
||||
@@ -231,7 +239,7 @@ Request:
|
||||
}
|
||||
```
|
||||
|
||||
Each item contains a ready-to-render user card: `login`, `firstName`, `lastName`, `avatarAr`, `accountRole`, `shineStatus`, effective `relationType`, `primaryConfirmed`, `shineConfirmed`, plus received primary/shine confirmation counters.
|
||||
Response payload contains `login`, `listType` and `users[]`. Each item contains a ready-to-render user card: `login`, `firstName`, `lastName`, `avatarAr`, `avatarPr`, `accountRole`, `shineStatus`, effective `relationType`, `primaryConfirmed`, `shineConfirmed`, plus received primary/shine confirmation counters.
|
||||
|
||||
Effective relation priority is `close_friend > friend > contact > none`. Effective `70/80` confirmations are filtered by current voting/status rules; raw blockchain connections are not deleted when temporarily ineffective.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user