Отключить мультиаккаунтность и уточнить статусы профиля

This commit is contained in:
AidarKC
2026-11-27 13:22:15 +03:00
parent ae430e84c7
commit 91a8bb9c3c
40 changed files with 312 additions and 383 deletions
+4 -4
View File
@@ -78,15 +78,15 @@
| `SetChannelReadState` | `06_Channels_Read_API.md` | подписанный watermark чтения канала |
| `ListGroupChats200` | `06_Channels_Read_API.md` | список групповых чатов типа `200` |
| `GetGroupDialog` | `06_Channels_Read_API.md` | сообщения группового чата типа `200` |
| `UpsertUserParam` | `10_User_Params_API.md` | запись параметра пользователя |
| `GetUserParam` | `10_User_Params_API.md` | чтение одного параметра пользователя |
| `ListUserParams` | `10_User_Params_API.md` | список параметров пользователя |
| `UpsertUserParam` | `10_User_Params_API.md` | запись параметра пользователя (`gender` отключён) |
| `GetUserParam` | `10_User_Params_API.md` | чтение одного параметра пользователя (`gender` → 404) |
| `ListUserParams` | `10_User_Params_API.md` | список параметров пользователя (без `gender`) |
| `UpsertUserSetting` | `13_User_Settings_API.md` | запись пользовательской настройки |
| `GetUserSetting` | `13_User_Settings_API.md` | чтение одной пользовательской настройки |
| `ListUserSettings` | `13_User_Settings_API.md` | список пользовательских настроек |
| `GetFriendsLists` | `11_Connections_API.md` | входящие/исходящие друзья |
| `ListContacts` | `11_Connections_API.md` | контакты текущего пользователя |
| `GetUserConnectionsGraph` | `11_Connections_API.md` | граф связей пользователя |
| `GetUserConnectionsGraph` | `11_Connections_API.md` | граф связей пользователя (без поля пола) |
| `AddCloseFriend` | `11_Connections_API.md` | добавить близкого друга |
| `GetNotifications` | `15_Notifications_API.md` | ответы, связи, события и unread-watermark |
| `SetNotificationState` | `15_Notifications_API.md` | подписанное состояние просмотра уведомлений |
+2
View File
@@ -130,3 +130,5 @@
Имена JSON-полей `time_ms` и `client_key` сейчас соответствуют Java-модели ответа/запроса и должны передаваться именно в таком виде.
Для HEADER V3 ответ `ListUserParams` дополнительно содержит `accountType` (0/1) и `previousAccounts` (массив логинов). Это производные поля подписанного HEADER, не редактируемые параметры профиля. При V1/V2 тип отсутствует или null: аккаунт не является Primary. Исторический `account_role`/`official` может присутствовать в старых данных, но не определяет статус. Список не меняет статус указанных аккаунтов.
Начиная с Server 1.16.43, `gender` отключён: новые записи отклоняются (`gender_disabled`), чтение через `GetUserParam` возвращает 404, `ListUserParams` не возвращает поле. Старые подписанные блоки сохраняются, но не восстанавливают активный параметр.
+1 -1
View File
@@ -238,7 +238,7 @@ Effective relation priority is `close_friend > friend > contact > none`. Effecti
### Voting rules
- New `80` requires two distinct Primary accounts (canonical signed HEADER V3, `accountType=1` on both sides).
- New `70` requires the same pair; the actor must additionally be `shine=shining` (legacy `shine=yes` is normalized), and the target must not be `shine=not_interested`.
- New `70` requires distinct logins, a Primary actor with `shine=shining` (legacy `shine=yes` is normalized), and a target with `shine=shining`, regardless of target account type. Turning shine off on either side temporarily removes the confirmation from effective counts; turning it back on restores qualification if the other conditions hold.
- Alternative, V1/V2 and missing HEADER do not qualify. Self-confirmation does not qualify, regardless of letter case.
- Withdrawal (`81/71`) may remove historical declarations; it is not a new confirmation. Ordinary friendship/contact and reactions remain available to everyone.
- Archive import/replay preserves signed history without checking the current voting rights at import time. Effective graph lists, profile lists and counts all use `shine_can_confirm_primary(actor,target)` / `shine_can_confirm_shine(actor,target)`. Historical ineligible declarations remain in raw history but do not count. A change of the canonical projection or shine status may affect effective confirmations.