跳至主要内容

Package: skiserver

The skiserver package is the protobuf designed for communicating with backend grpc messaging service.

Top

skiserver/AcquireAuthCodeRequest.proto

AcquireAuthCodeRequest

Request for acquiring auth code.

FieldTypeLabelDescription
authenticatorstringEmail (mailto:xxx@xxx) or maybe mobile phone number (tel:xxx@xxx) to receive auth code.

Top

skiserver/AcquireAuthCodeResponse.proto

AcquireAuthCodeResponse

Response for acquiring auth code.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
ttlint32Time to live (seconds) for auth code that has

Top

skiserver/AcquireGroupMemberInfosRequest.proto

AcquireGroupMemberInfosRequest

Request for acquiring group member info list.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressUser address with userId and domain.

Top

skiserver/AcquireGroupMemberInfosResponse.proto

AcquireGroupMemberInfosResponse

Response for acquiring sign public key of uploaded identity public key.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
group_member_infosskissm.GroupMemberInforepeatedList of groupMemberInfo that consists of sign public key of uploaded identity public key.

Top

skiserver/AcquireServerInfoRequest.proto

AcquireServerInfoRequest

Request for acquiring server info.

FieldTypeLabelDescription
heartbeatskissm.ClientHeartbeatMsgSend the heartbeat msg to server.

Top

skiserver/AcquireServerInfoResponse.proto

AcquireServerInfoResponse

Response for acquiring server info.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
heartbeatskissm.ServerHeartbeatMsg

Top

skiserver/AddFriendRequest.proto

AddFriendRequest

Request for adding a friend.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressThe e2ee address for user who sends this request.
to_userstringThe simple e2ee address of user who will be added as a friend.
from_userstringThe simple e2ee address of user who is adding toUser as a friend.
from_usernamestringThe name of user who is adding toUser as a friend.

Top

skiserver/AddFriendResponse.proto

AddFriendResponse

Response for adding a friend.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
statusAddAttentionStatusThe friendship status.
friendskissm.FriendshipDTOThe friendship data.

AddAttentionStatus

The friendship status.

NameNumberDescription
ADD_ATTENTION_STATUS_REJECTED0
ADD_ATTENTION_STATUS_ATTENTION_ADDED1
ADD_ATTENTION_STATUS_FRIEND_ADDED2
ADD_ATTENTION_STATUS_ALREADY_ATTENDED3
ADD_ATTENTION_STATUS_ALREADY_FRIENDED4
ADD_ATTENTION_STATUS_REMOVE_BLOCKED5
ADD_ATTENTION_STATUS_EXCEPTION6

Top

skiserver/AskUserIdAvailableRequest.proto

AskUserIdAvailableRequest

Request for checking if a userId is available.

FieldTypeLabelDescription
user_idstringThe userId to be registered.

Top

skiserver/AskUserIdAvailableResponse.proto

AskUserIdAvailableResponse

Response for checking if a userId is available.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/BackupMsgRequest.proto

BackupMsgRequest

Request for backing up a message.

FieldTypeLabelDescription
backup_msgMsgBackupDTOThe backup data.

Top

skiserver/BackupMsgResponse.proto

BackupMsgResponse

Response for backing up a message.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/BlockFriendRequest.proto

BlockFriendRequest

Request for blocking a friend.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressThe e2ee address for user who sends this request.
to_userstringThe simple e2ee address for a user to be blocked.
from_userstringThe simple e2ee address for the user who is blocking toUser.

Top

skiserver/BlockFriendResponse.proto

BlockFriendResponse

Response for blocking a friend.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
friendskissm.FriendshipDTOThe updated friendship data.

Top

skiserver/DownloadMsgRequest.proto

DownloadMsgRequest

Request for downloading a backed up msg.

FieldTypeLabelDescription
user_addressstringThe simple e2ee address of a user.
last_msg_idstringOptional last msgId that has been downloaded previously.
last_time_sendint64Optional last timestamp for a sent msg.
limitint32The maximal number of messages to be downloaded. (max 500)

Top

skiserver/DownloadMsgResponse.proto

DownloadMsgResponse

Response for downloading a backed up msg.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
backuped_msgsMsgBackupDTOrepeatedThe downloaded data.

Top

skiserver/E2eeBackupService.proto

E2eeBackupService

The backup unary grpc service.

Method NameRequest TypeResponse TypeDescription
BackupMsgBackupMsgRequestBackupMsgResponse
DownloadMsgDownloadMsgRequestDownloadMsgResponse
UpdateMsgBackupKeyUpdateMsgBackupKeyRequestUpdateMsgBackupKeyResponse

Top

skiserver/E2eeBidiService.proto

E2eeBidiService

The e2ee bidirection stream grpc service.

Method NameRequest TypeResponse TypeDescription
Communicate.skissm.ProtoMsg stream.skissm.ProtoMsg streambidi streaming operations

Top

skiserver/E2eeS2SService.proto

E2eeS2SService

The e2ee server to server unary grpc service.

Method NameRequest TypeResponse TypeDescription
GetPreKeyBundle.skissm.GetPreKeyBundleRequest.skissm.GetPreKeyBundleResponse
Invite.skissm.InviteRequest.skissm.InviteResponse
SendOne2oneMsg.skissm.SendOne2oneMsgRequest.skissm.SendOne2oneMsgResponse
GetUserGetUserRequestGetUserResponse
RemoveUserDeviceRemoveUserDeviceRequestRemoveUserDeviceResponse
AddFriendAddFriendRequestAddFriendResponse
RemoveFriendRemoveFriendRequestRemoveFriendResponse
BlockFriendBlockFriendRequestBlockFriendResponse
UnBlockFriendUnBlockFriendRequestUnBlockFriendResponse
AddGroupMembers.skissm.AddGroupMembersRequest.skissm.AddGroupMembersResponse
AddGroupMemberDevice.skissm.AddGroupMemberDeviceRequest.skissm.AddGroupMemberDeviceResponse
RemoveGroupMembers.skissm.RemoveGroupMembersRequest.skissm.RemoveGroupMembersResponse
JoinGroupJoinGroupRequestJoinGroupResponse
LeaveGroup.skissm.LeaveGroupRequest.skissm.LeaveGroupResponse
UpdateGroupNameUpdateGroupNameRequestUpdateGroupNameResponse
UpdateGroupManagersUpdateGroupManagersRequestUpdateGroupManagersResponse
GetGroup.skissm.GetGroupRequest.skissm.GetGroupResponse
SendGroupMsg.skissm.SendGroupMsgRequest.skissm.SendGroupMsgResponse
AcquireGroupMemberInfosAcquireGroupMemberInfosRequestAcquireGroupMemberInfosResponse
SubmitProtoMsgSubmitProtoMsgRequestSubmitProtoMsgResponse

Top

skiserver/E2eeUnaryService.proto

E2eeUnaryService

The e2ee unary grpc service.

Method NameRequest TypeResponse TypeDescription
AcquireAuthCodeAcquireAuthCodeRequestAcquireAuthCodeResponse
AskUserIdAvailableAskUserIdAvailableRequestAskUserIdAvailableResponse
RegisterUser.skissm.RegisterUserRequest.skissm.RegisterUserResponse
UpdateAuthenticatorUpdateAuthenticatorRequestUpdateAuthenticatorResponse
LoginLoginRequestLoginResponse
LogoutLogoutRequestLogoutResponse
AcquireServerInfoAcquireServerInfoRequestAcquireServerInfoResponse
GetPreKeyBundle.skissm.GetPreKeyBundleRequest.skissm.GetPreKeyBundleResponse
Invite.skissm.InviteRequest.skissm.InviteResponse
Accept.skissm.AcceptRequest.skissm.AcceptResponse
PublishSpk.skissm.PublishSpkRequest.skissm.PublishSpkResponse
SupplyOpks.skissm.SupplyOpksRequest.skissm.SupplyOpksResponse
SendOne2oneMsg.skissm.SendOne2oneMsgRequest.skissm.SendOne2oneMsgResponse
AddFriendAddFriendRequestAddFriendResponse
RemoveFriendRemoveFriendRequestRemoveFriendResponse
BlockFriendBlockFriendRequestBlockFriendResponse
UnBlockFriendUnBlockFriendRequestUnBlockFriendResponse
MemoFriendMemoFriendRequestMemoFriendResponse
GetFriendsGetFriendsRequestGetFriendsResponse
GetUserGetUserRequestGetUserResponse
FindUserFindUserRequestFindUserResponse
CreateGroup.skissm.CreateGroupRequest.skissm.CreateGroupResponse
AddGroupMembers.skissm.AddGroupMembersRequest.skissm.AddGroupMembersResponse
AddGroupMemberDevice.skissm.AddGroupMemberDeviceRequest.skissm.AddGroupMemberDeviceResponse
RemoveGroupMembers.skissm.RemoveGroupMembersRequest.skissm.RemoveGroupMembersResponse
JoinGroupJoinGroupRequestJoinGroupResponse
LeaveGroup.skissm.LeaveGroupRequest.skissm.LeaveGroupResponse
UpdateGroupNameUpdateGroupNameRequestUpdateGroupNameResponse
UpdateGroupManagersUpdateGroupManagersRequestUpdateGroupManagersResponse
GetGroup.skissm.GetGroupRequest.skissm.GetGroupResponse
SendGroupMsg.skissm.SendGroupMsgRequest.skissm.SendGroupMsgResponse
UpdatePushIdUpdatePushIdRequestUpdatePushIdResponse
UpdateUserNameUpdateUserNameRequestUpdateUserNameResponse
UpdateUserPrivacyUpdateUserPrivacyRequestUpdateUserPrivacyResponse
ConsumeProtoMsg.skissm.ConsumeProtoMsgRequest.skissm.ConsumeProtoMsgResponse

Top

skiserver/FindUserRequest.proto

FindUserRequest

Request for finding user.

FieldTypeLabelDescription
querystringurl-encoded string such as: userId%3Dxxx%26domain%3Dxxxx or authenticator%3Duser%40example.com.
user_addressskissm.E2eeAddressThe address of the user who us sending this request.

Top

skiserver/FindUserResponse.proto

FindUserResponse

Response for finding a user.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
friendskissm.FriendshipDTOThe friendship data of a retrieved user.

Top

skiserver/GetFriendsRequest.proto

GetFriendsRequest

Request for getting friendship data.

FieldTypeLabelDescription
last_modified_dateint64The latest modified time stamp of friendship in client side.

Top

skiserver/GetFriendsResponse.proto

GetFriendsResponse

Response for getting friendship data.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
friendsskissm.FriendshipDTOrepeatedThe list of friendship data.

Top

skiserver/GetUserRequest.proto

GetUserRequest

Request for retrieving information of a user.

FieldTypeLabelDescription
to_userstringThe simple e2ee address for the user whose information is retrieved.
user_addressskissm.E2eeAddressThe address of the user who is retrieving the information of toUser.

Top

skiserver/GetUserResponse.proto

GetUserResponse

Response for retrieving information of a user.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
friendskissm.FriendshipDTOThe friendship data of a retrieved user.

Top

skiserver/JoinGroupRequest.proto

JoinGroupRequest

Request for joining a group.

FieldTypeLabelDescription
to_groupstringThe simple e2ee address of the joining group.
user_addressskissm.E2eeAddressThe address of the user joining the group

Top

skiserver/JoinGroupResponse.proto

JoinGroupResponse

Response for joining a group.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/LoginRequest.proto

LoginRequest

Request for login.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressThe user e2ee address for whom is going to login.
passwordstringThe password to login the e2ee service.

Top

skiserver/LoginResponse.proto

LoginResponse

Response for login.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
authstringThe updated authorization code.
expires_inint64The time of expiration for the authorization code.
user_stateski.UserStateThe user state.
msgBackup_device_idstringThe optional main backup deviceId.

Top

skiserver/LogoutRequest.proto

LogoutRequest

Request for logout.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressThe user e2ee address (with device id) for whom is going to logout.

Top

skiserver/LogoutResponse.proto

LogoutResponse

Response for logout.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/MemoFriendRequest.proto

MemoFriendRequest

Request for giving a memo name to a friend.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressThe e2ee address for user who sends this request.
to_userstringThe simple e2ee address for the user who is giving a memo name.
memonamestringThe memo name (max len = 12 utf-8 chars).

Top

skiserver/MemoFriendResponse.proto

MemoFriendResponse

Response for giving a memo name to a friend.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
friendskissm.FriendshipDTOThe updated friendship data.

Top

skiserver/MsgBackupDTO.proto

MsgBackupDTO

Message for a backedup msg.

FieldTypeLabelDescription
msg_idstringThe msgId of the backed up msg.
time_sendint64The time of the backed up msg that was sent.
encrypted_databytesThe encrypted data of the backed up msg.

Top

skiserver/RemoveFriendRequest.proto

RemoveFriendRequest

Request for removing a friend.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressThe e2ee address for user who sends this request.
to_userstringThe simple e2ee address of user who will be removed as a friend.
from_userstringThe simple e2ee address of user who is removing toUser from contacts.

Top

skiserver/RemoveFriendResponse.proto

RemoveFriendResponse

Response for removing a friend.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
friendskissm.FriendshipDTOThe updated friendship data.

Top

skiserver/RemoveUserDeviceRequest.proto

RemoveUserDeviceRequest

Request for removing a user device.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressThe e2ee address for user who sends this request.
remove_user_device_msgskissm.RemoveUserDeviceMsgThe remove_user_device_msg.

Top

skiserver/RemoveUserDeviceResponse.proto

RemoveUserDeviceResponse

Response for removing a user device.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/SubmitProtoMsgRequest.proto

SubmitProtoMsgRequest

Request for submitting protoMsg to a s2s service.

FieldTypeLabelDescription
protoMsgskissm.ProtoMsgThe protoMsg to be delivered.
ignoredDeviceIdListstringrepeatedOptional ignored deviceId list.

Top

skiserver/SubmitProtoMsgResponse.proto

SubmitProtoMsgResponse

Response for submitting protoMsg to a s2s service.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/UnBlockFriendRequest.proto

UnBlockFriendRequest

Request for unblocking a friend.

FieldTypeLabelDescription
user_addressskissm.E2eeAddressThe e2ee address for user who sends this request.
to_userstringThe simple e2ee address for a user to be unblocked.
from_userstringThe simple e2ee address for the user who is unblocking toUser.

Top

skiserver/UnBlockFriendResponse.proto

UnBlockFriendResponse

Response for unblocking a friend.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
friendskissm.FriendshipDTOThe updated friendship data.

Top

skiserver/UpdateAuthenticatorRequest.proto

UpdateAuthenticatorRequest

Request for updating authenticator.

FieldTypeLabelDescription
authenticatorstringEmail (mailto:xxx@xxx) or mobile phone number (tel:xxx@xxx) to receive auth code.
auth_codestringThe auth code received from authenticator.

Top

skiserver/UpdateAuthenticatorResponse.proto

UpdateAuthenticatorResponse

Response for updating authenticator.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/UpdateGroupManagersRequest.proto

UpdateGroupManagersRequest

Request for updating group managers.

FieldTypeLabelDescription
to_groupstringThe simple e2ee address of the updating group.
from_userstringThe simple e2ee address of the user who is updating the group.
updating_membersskissm.GroupMemberrepeatedThe list of updated group members with new roles.

Top

skiserver/UpdateGroupManagersResponse.proto

UpdateGroupManagersResponse

Response for updating group managers.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.
group_managersskissm.GroupMemberrepeatedThe list of new group managers.

Top

skiserver/UpdateGroupNameRequest.proto

UpdateGroupNameRequest

Request for renaming a group.

FieldTypeLabelDescription
to_groupstringThe simple e2ee address of the renaming group.
from_userstringThe simple e2ee address of the user who is renaming the group.
group_namestringThe group name.

Top

skiserver/UpdateGroupNameResponse.proto

UpdateGroupNameResponse

Response for renaming a group.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/UpdateMsgBackupKeyRequest.proto

UpdateMsgBackupKeyRequest

Request for updating msg backup key hash.

FieldTypeLabelDescription
msg_backup_key_hashbytesThe hash of new backup key.

Top

skiserver/UpdateMsgBackupKeyResponse.proto

UpdateMsgBackupKeyResponse

Response for updating msg backup key hash.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/UpdatePushIdRequest.proto

UpdatePushIdRequest

Request for updating pushId.

FieldTypeLabelDescription
push_idstringThe pushId for push notification.
typePushIDTypeThe optional pushId type.

PushIDType

NameNumberDescription
PUSH_ID_TYPE_NORMAL0PushId for general circumstances.
PUSH_ID_TYPE_APNS_VOIP1PushId for apns voip.

Top

skiserver/UpdatePushIdResponse.proto

UpdatePushIdResponse

Response for updating pushId.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/UpdateUserNameRequest.proto

UpdateUserNameRequest

Request for updating user name.

FieldTypeLabelDescription
usernamestringThe user name (max len = 12 utf-8 chars).

Top

skiserver/UpdateUserNameResponse.proto

UpdateUserNameResponse

Response for updating user name.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Top

skiserver/UpdateUserPrivacyRequest.proto

UpdateUserPrivacyRequest

Request for updating user privacy.

FieldTypeLabelDescription
allow_attentionboolAllow being added as a friend.
allow_greetingboolAllow receiving msg from strangers.
allow_auto_friendboolAllow adding friend automatically when someone is adding user as friend.

Top

skiserver/UpdateUserPrivacyResponse.proto

UpdateUserPrivacyResponse

Response for updating user privacy.

FieldTypeLabelDescription
codeskissm.ResponseCodeThe response code.
msgstringOptional response message.

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)