# Протокол

## Оглавление

- [keyapis/identity/v1/keyapis_identity_user_v1.proto](#keyapis_identity_v1_keyapis_identity_user_v1-proto)
    - [UserService](#keyapis-identity-v1-UserService)
  
    - [PostUserSsoMigrationRequest](#keyapis-identity-v1-PostUserSsoMigrationRequest)
    - [PostUserSsoMigrationResponse](#keyapis-identity-v1-PostUserSsoMigrationResponse)
    - [PostUserSsoMigrationResponse.Error](#keyapis-identity-v1-PostUserSsoMigrationResponse-Error)
    - [PostUserSsoMigrationResponse.Error.UserExists](#keyapis-identity-v1-PostUserSsoMigrationResponse-Error-UserExists)
    - [ValidationError](#keyapis-identity-v1-ValidationError)
  


## [Схема классов](/svg/protos/key/keyapis/identity/v1/keyapis_identity_user_v1.proto.svg)
<a href="/svg/protos/key/keyapis/identity/v1/keyapis_identity_user_v1.proto.svg"><img src="/svg/protos/key/keyapis/identity/v1/keyapis_identity_user_v1.proto.svg" alt="/svg/protos/key/keyapis/identity/v1/keyapis_identity_user_v1.proto.svg" style="height:100%;"></a>




<a name="keyapis_identity_v1_keyapis_identity_user_v1-proto"></a>

## [keyapis/identity/v1/keyapis_identity_user_v1.proto](/protos/key/keyapis/identity/v1/keyapis_identity_user_v1.proto)
Сервис предоставляет возможность действий с пользователями


<a name="keyapis-identity-v1-UserService"></a>

### UserService
 Сервис действий с пользователями

| Название метода | Описание | Тип запроса | Тип ответа |
| --------------- | -------- | ----------- | -----------|
| <a id="keyapis-identity-v1-PostUserSsoMigration"></a> [PostUserSsoMigration](#keyapis-identity-v1-PostUserSsoMigration) | Метод переноса кабинета ключа в другой кабинет SSO. Метод доступен для: admin, service, ltp_first | [keyapis.identity.v1.PostUserSsoMigrationRequest](#keyapis-identity-v1-PostUserSsoMigrationRequest) | [keyapis.identity.v1.PostUserSsoMigrationResponse](#keyapis-identity-v1-PostUserSsoMigrationResponse) |

 <!-- end services -->


<a name="keyapis-identity-v1-PostUserSsoMigrationRequest"></a>


### [PostUserSsoMigrationRequest](#keyapis-identity-v1-PostUserSsoMigrationRequest)
 Запрос на перенос кабинета ключа


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="keyapis-identity-v1-PostUserSsoMigrationRequest-user_id"></a> [user_id](#keyapis-identity-v1-PostUserSsoMigrationRequest-user_id) | Идентификатор мигрируемого пользователя. # Диапазон: 1..2147483647 |    [int32](#scalar-types) | REQUIRED|
| <a id="keyapis-identity-v1-PostUserSsoMigrationRequest-phone_number"></a> [phone_number](#keyapis-identity-v1-PostUserSsoMigrationRequest-phone_number) | Целевой номер телефона. # Диапазон: 5..14 |    [string](#scalar-types) | REQUIRED|






<a name="keyapis-identity-v1-PostUserSsoMigrationResponse"></a>


### [PostUserSsoMigrationResponse](#keyapis-identity-v1-PostUserSsoMigrationResponse)
 Ответ на запрос на перенос кабинета ключа


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="keyapis-identity-v1-PostUserSsoMigrationResponse-error"></a> [error](#keyapis-identity-v1-PostUserSsoMigrationResponse-error) | Ошибка |  optional  [keyapis.identity.v1.PostUserSsoMigrationResponse.Error](#keyapis-identity-v1-PostUserSsoMigrationResponse-Error) | <nil>|






<a name="keyapis-identity-v1-PostUserSsoMigrationResponse-Error"></a>


### [PostUserSsoMigrationResponse.Error](#keyapis-identity-v1-PostUserSsoMigrationResponse-Error)
 Ошибка запроса на перенос кабинета ключа


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="keyapis-identity-v1-PostUserSsoMigrationResponse-Error-validation"></a> [validation](#keyapis-identity-v1-PostUserSsoMigrationResponse-Error-validation) | Ошибка валидации |  optional  [keyapis.identity.v1.ValidationError](#keyapis-identity-v1-ValidationError) | <nil>|
| <a id="keyapis-identity-v1-PostUserSsoMigrationResponse-Error-user_exists"></a> [user_exists](#keyapis-identity-v1-PostUserSsoMigrationResponse-Error-user_exists) | Пользователь с целевым номером телефона зарегистрирован на платформе Ключ |  optional  [keyapis.identity.v1.PostUserSsoMigrationResponse.Error.UserExists](#keyapis-identity-v1-PostUserSsoMigrationResponse-Error-UserExists) | <nil>|






<a name="keyapis-identity-v1-PostUserSsoMigrationResponse-Error-UserExists"></a>


### [PostUserSsoMigrationResponse.Error.UserExists](#keyapis-identity-v1-PostUserSsoMigrationResponse-Error-UserExists)
 Пользователь с целевым номером телефона зарегистрирован на платформе Ключ






<a name="keyapis-identity-v1-ValidationError"></a>


### [ValidationError](#keyapis-identity-v1-ValidationError)
 Ошибки валидации.
Эти проверки выполняются до обращения в базу данных


| Поле | Описание | Тип | Признак |
| ---- | -------- | --- | ------- |
| <a id="keyapis-identity-v1-ValidationError-path"></a> [path](#keyapis-identity-v1-ValidationError-path) | Путь к полю в формате наименования прото |    [string](#scalar-types) | REQUIRED|
| <a id="keyapis-identity-v1-ValidationError-message"></a> [message](#keyapis-identity-v1-ValidationError-message) | Валидационное сообщение |    [string](#scalar-types) | REQUIRED|





 <!-- end messages -->

 <!-- end enums -->

 <!-- end HasExtensions -->



## Скалярные типы значений
<a id="scalar-types"></a>

| .proto Type | Примечание | Python | Go | Ruby | C# | C++ | Java | PHP |
| ----------- | ---------- | ------ | -- | ---- | -- | --- | ---- | --- |
| [double](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | float | float64 | Float | double | double | double | float |
| [float](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | float | float32 | Float | float | float | float | float |
| [int32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int | int32 | Bignum or Fixnum (as required) | int | int32 | int | integer |
| [int64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int/long | int64 | Bignum | long | int64 | long | integer/string |
| [uint32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. | int/long | uint32 | Bignum or Fixnum (as required) | uint | uint32 | int | integer |
| [uint64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. | int/long | uint64 | Bignum or Fixnum (as required) | ulong | uint64 | long | integer/string |
| [sint32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int | int32 | Bignum or Fixnum (as required) | int | int32 | int | integer |
| [sint64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int/long | int64 | Bignum | long | int64 | long | integer/string |
| [fixed32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | int | uint32 | Bignum or Fixnum (as required) | uint | uint32 | int | integer |
| [fixed64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | int/long | uint64 | Bignum | ulong | uint64 | long | integer/string |
| [sfixed32](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always four bytes. | int | int32 | Bignum or Fixnum (as required) | int | int32 | int | integer |
| [sfixed64](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | Always eight bytes. | int/long | int64 | Bignum | long | int64 | long | integer/string |
| [bool](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) |  | boolean | bool | TrueClass/FalseClass | bool | bool | boolean | boolean |
| [string](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | A string must always contain UTF-8 encoded or 7-bit ASCII text. | str/unicode | string | String (UTF-8) | string | string | String | string |
| [bytes](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf/) | May contain any arbitrary sequence of bytes. | str | []byte | String (ASCII-8BIT) | ByteString | string | ByteString | string |

