Package: skiserver
The skiserver package is the protobuf designed for communicating with backend grpc messaging service.
skiserver/AcquireAuthCodeRequest.proto
AcquireAuthCodeRequest
Request for acquiring auth code.
Field | Type | Label | Description |
---|---|---|---|
authenticator | string | Email (mailto:xxx@xxx) or maybe mobile phone number (tel:xxx@xxx) to receive auth code. |
skiserver/AcquireAuthCodeResponse.proto
AcquireAuthCodeResponse
Response for acquiring auth code.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
ttl | int32 | Time to live (seconds) for auth code that has |
skiserver/AcquireGroupMemberInfosRequest.proto
AcquireGroupMemberInfosRequest
Request for acquiring group member info list.
Field | Type | Label | Description |
---|---|---|---|
user_address | skissm.E2eeAddress | User address with userId and domain. |
skiserver/AcquireGroupMemberInfosResponse.proto
AcquireGroupMemberInfosResponse
Response for acquiring sign public key of uploaded identity public key.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
group_member_infos | skissm.GroupMemberInfo | repeated | List of groupMemberInfo that consists of sign public key of uploaded identity public key. |
skiserver/AcquireServerInfoRequest.proto
AcquireServerInfoRequest
Request for acquiring server info.
Field | Type | Label | Description |
---|---|---|---|
heartbeat | skissm.ClientHeartbeatMsg | Send the heartbeat msg to server. |
skiserver/AcquireServerInfoResponse.proto
AcquireServerInfoResponse
Response for acquiring server info.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
heartbeat | skissm.ServerHeartbeatMsg |
skiserver/AddFriendRequest.proto
AddFriendRequest
Request for adding a friend.
Field | Type | Label | Description |
---|---|---|---|
user_address | skissm.E2eeAddress | The e2ee address for user who sends this request. | |
to_user | string | The simple e2ee address of user who will be added as a friend. | |
from_user | string | The simple e2ee address of user who is adding toUser as a friend. | |
from_username | string | The name of user who is adding toUser as a friend. |
skiserver/AddFriendResponse.proto
AddFriendResponse
Response for adding a friend.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
status | AddAttentionStatus | The friendship status. | |
friend | skissm.FriendshipDTO | The friendship data. |
AddAttentionStatus
The friendship status.
Name | Number | Description |
---|---|---|
ADD_ATTENTION_STATUS_REJECTED | 0 | |
ADD_ATTENTION_STATUS_ATTENTION_ADDED | 1 | |
ADD_ATTENTION_STATUS_FRIEND_ADDED | 2 | |
ADD_ATTENTION_STATUS_ALREADY_ATTENDED | 3 | |
ADD_ATTENTION_STATUS_ALREADY_FRIENDED | 4 | |
ADD_ATTENTION_STATUS_REMOVE_BLOCKED | 5 | |
ADD_ATTENTION_STATUS_EXCEPTION | 6 |
skiserver/AskUserIdAvailableRequest.proto
AskUserIdAvailableRequest
Request for checking if a userId is available.
Field | Type | Label | Description |
---|---|---|---|
user_id | string | The userId to be registered. |
skiserver/AskUserIdAvailableResponse.proto
AskUserIdAvailableResponse
Response for checking if a userId is available.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. |
skiserver/BackupMsgRequest.proto
BackupMsgRequest
Request for backing up a message.
Field | Type | Label | Description |
---|---|---|---|
backup_msg | MsgBackupDTO | The backup data. |
skiserver/BackupMsgResponse.proto
BackupMsgResponse
Response for backing up a message.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. |
skiserver/BlockFriendRequest.proto
BlockFriendRequest
Request for blocking a friend.
Field | Type | Label | Description |
---|---|---|---|
user_address | skissm.E2eeAddress | The e2ee address for user who sends this request. | |
to_user | string | The simple e2ee address for a user to be blocked. | |
from_user | string | The simple e2ee address for the user who is blocking toUser. |
skiserver/BlockFriendResponse.proto
BlockFriendResponse
Response for blocking a friend.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
friend | skissm.FriendshipDTO | The updated friendship data. |
skiserver/DownloadMsgRequest.proto
DownloadMsgRequest
Request for downloading a backed up msg.
Field | Type | Label | Description |
---|---|---|---|
user_address | string | The simple e2ee address of a user. | |
last_msg_id | string | Optional last msgId that has been downloaded previously. | |
last_time_send | int64 | Optional last timestamp for a sent msg. | |
limit | int32 | The maximal number of messages to be downloaded. (max 500) |
skiserver/DownloadMsgResponse.proto
DownloadMsgResponse
Response for downloading a backed up msg.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
backuped_msgs | MsgBackupDTO | repeated | The downloaded data. |
skiserver/E2eeBackupService.proto
E2eeBackupService
The backup unary grpc service.
Method Name | Request Type | Response Type | Description |
---|---|---|---|
BackupMsg | BackupMsgRequest | BackupMsgResponse | |
DownloadMsg | DownloadMsgRequest | DownloadMsgResponse | |
UpdateMsgBackupKey | UpdateMsgBackupKeyRequest | UpdateMsgBackupKeyResponse |
skiserver/E2eeBidiService.proto
E2eeBidiService
The e2ee bidirection stream grpc service.
Method Name | Request Type | Response Type | Description |
---|---|---|---|
Communicate | .skissm.ProtoMsg stream | .skissm.ProtoMsg stream | bidi streaming operations |
skiserver/E2eeS2SService.proto
E2eeS2SService
The e2ee server to server unary grpc service.
skiserver/E2eeUnaryService.proto
E2eeUnaryService
The e2ee unary grpc service.
skiserver/FindUserRequest.proto
FindUserRequest
Request for finding user.
Field | Type | Label | Description |
---|---|---|---|
query | string | url-encoded string such as: userId%3Dxxx%26domain%3Dxxxx or authenticator%3Duser%40example.com. | |
user_address | skissm.E2eeAddress | The address of the user who us sending this request. |
skiserver/FindUserResponse.proto
FindUserResponse
Response for finding a user.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
friend | skissm.FriendshipDTO | The friendship data of a retrieved user. |
skiserver/GetFriendsRequest.proto
GetFriendsRequest
Request for getting friendship data.
Field | Type | Label | Description |
---|---|---|---|
last_modified_date | int64 | The latest modified time stamp of friendship in client side. |
skiserver/GetFriendsResponse.proto
GetFriendsResponse
Response for getting friendship data.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
friends | skissm.FriendshipDTO | repeated | The list of friendship data. |
skiserver/GetUserRequest.proto
GetUserRequest
Request for retrieving information of a user.
Field | Type | Label | Description |
---|---|---|---|
to_user | string | The simple e2ee address for the user whose information is retrieved. | |
user_address | skissm.E2eeAddress | The address of the user who is retrieving the information of toUser. |
skiserver/GetUserResponse.proto
GetUserResponse
Response for retrieving information of a user.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
friend | skissm.FriendshipDTO | The friendship data of a retrieved user. |
skiserver/JoinGroupRequest.proto
JoinGroupRequest
Request for joining a group.
Field | Type | Label | Description |
---|---|---|---|
to_group | string | The simple e2ee address of the joining group. | |
user_address | skissm.E2eeAddress | The address of the user joining the group |
skiserver/JoinGroupResponse.proto
JoinGroupResponse
Response for joining a group.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. |
skiserver/LoginRequest.proto
LoginRequest
Request for login.
Field | Type | Label | Description |
---|---|---|---|
user_address | skissm.E2eeAddress | The user e2ee address for whom is going to login. | |
password | string | The password to login the e2ee service. |
skiserver/LoginResponse.proto
LoginResponse
Response for login.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
auth | string | The updated authorization code. | |
expires_in | int64 | The time of expiration for the authorization code. | |
user_state | ski.UserState | The user state. | |
msgBackup_device_id | string | The optional main backup deviceId. |
skiserver/LogoutRequest.proto
LogoutRequest
Request for logout.
Field | Type | Label | Description |
---|---|---|---|
user_address | skissm.E2eeAddress | The user e2ee address (with device id) for whom is going to logout. |
skiserver/LogoutResponse.proto
LogoutResponse
Response for logout.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. |
skiserver/MemoFriendRequest.proto
MemoFriendRequest
Request for giving a memo name to a friend.
Field | Type | Label | Description |
---|---|---|---|
user_address | skissm.E2eeAddress | The e2ee address for user who sends this request. | |
to_user | string | The simple e2ee address for the user who is giving a memo name. | |
memoname | string | The memo name (max len = 12 utf-8 chars). |
skiserver/MemoFriendResponse.proto
MemoFriendResponse
Response for giving a memo name to a friend.
Field | Type | Label | Description |
---|---|---|---|
code | skissm.ResponseCode | The response code. | |
msg | string | Optional response message. | |
friend | skissm.FriendshipDTO | The updated friendship data. |
skiserver/MsgBackupDTO.proto
MsgBackupDTO
Message for a backedup msg.
Field | Type | Label | Description |
---|---|---|---|
msg_id | string | The msgId of the backed up msg. | |
time_send | int64 | The time of the backed up msg that was sent. | |
encrypted_data | bytes | The encrypted data of the backed up msg. |
skiserver/RemoveFriendRequest.proto
RemoveFriendRequest
Request for removing a friend.
Field | Type | Label | Description |
---|---|---|---|
user_address | skissm.E2eeAddress | The e2ee address for user who sends this request. | |
to_user | string | The simple e2ee address of user who will be removed as a friend. | |
from_user | string | The simple e2ee address of user who is removing toUser from contacts. |