Files
open-im-server/pkg/proto/sdk_ws/ws.proto
T

729 lines
15 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
2022-09-20 23:31:28 +08:00
import "Open-IM-Server/pkg/proto/sdk_ws/wrappers.proto";
2022-09-21 08:36:33 +08:00
option go_package = "Open_IM/pkg/proto/sdk_ws;server_api_params";
2022-03-16 10:44:58 +08:00
package server_api_params;
2022-06-23 18:56:52 +08:00
2021-12-26 18:47:11 +08:00
////////////////////////////////base///////////////////////////////
message GroupInfo{
2022-01-14 09:51:43 +08:00
string groupID = 1;
string groupName = 2;
string notification = 3;
string introduction = 4;
string faceURL = 5;
string ownerUserID = 6;
2023-01-29 16:10:30 +08:00
int64 createTime = 7;
2022-01-14 09:51:43 +08:00
uint32 memberCount = 8;
string ex = 9;
int32 status = 10;
string creatorUserID = 11;
int32 groupType = 12;
2022-06-28 20:39:27 +08:00
int32 needVerification = 13;
2023-01-29 16:29:14 +08:00
int32 lookMemberInfo = 14;
2022-07-12 17:22:45 +08:00
int32 applyMemberFriend = 15;
2023-01-29 16:10:30 +08:00
int64 notificationUpdateTime = 16;
2022-07-13 11:09:29 +08:00
string notificationUserID = 17;
2022-06-28 20:39:27 +08:00
}
message GroupInfoForSet{
string groupID = 1;
string groupName = 2;
string notification = 3;
string introduction = 4;
string faceURL = 5;
string ex = 6;
2023-01-29 16:29:14 +08:00
google.protobuf.Int32Value needVerification = 7;
google.protobuf.Int32Value lookMemberInfo = 8;
google.protobuf.Int32Value applyMemberFriend = 9;
2021-12-26 18:47:11 +08:00
}
2021-12-28 14:07:06 +08:00
2021-12-26 18:47:11 +08:00
message GroupMemberFullInfo {
2022-01-14 09:51:43 +08:00
string groupID = 1 ;
string userID = 2 ;
2021-12-26 18:47:11 +08:00
int32 roleLevel = 3;
2023-01-29 16:10:30 +08:00
int64 joinTime = 4;
2022-01-14 09:51:43 +08:00
string nickname = 5;
string faceURL = 6;
int32 appMangerLevel = 7; //if >0
int32 joinSource = 8;
string operatorUserID = 9;
string ex = 10;
2023-01-29 16:10:30 +08:00
int64 muteEndTime = 11;
2022-07-13 18:25:00 +08:00
string inviterUserID = 12;
2021-12-26 18:47:11 +08:00
}
message PublicUserInfo{
2022-01-14 09:51:43 +08:00
string userID = 1;
string nickname = 2;
string faceURL = 3;
int32 gender = 4;
2022-03-08 18:48:36 +08:00
string ex = 5;
2021-12-26 18:47:11 +08:00
}
message UserInfo{
2022-01-14 09:51:43 +08:00
string userID = 1;
string nickname = 2;
string faceURL = 3;
int32 gender = 4;
string phoneNumber = 5;
uint32 birth = 6;
string email = 7;
string ex = 8;
2023-01-29 16:10:30 +08:00
int64 createTime = 9;
2022-09-05 17:52:43 +08:00
int32 appMangerLevel = 10;
int32 globalRecvMsgOpt = 11;
2023-01-16 21:32:06 +08:00
int64 birthday = 13;
2021-12-26 18:47:11 +08:00
}
message FriendInfo{
2022-01-14 09:51:43 +08:00
string ownerUserID = 1;
string remark = 2;
2023-01-29 16:10:30 +08:00
int64 createTime = 3;
2022-01-14 09:51:43 +08:00
UserInfo friendUser = 4;
int32 addSource = 5;
string operatorUserID = 6;
string ex = 7;
2021-12-26 18:47:11 +08:00
}
message BlackInfo{
2022-01-14 09:51:43 +08:00
string ownerUserID = 1;
2023-01-29 16:10:30 +08:00
int64 createTime = 2;
2022-01-14 09:51:43 +08:00
PublicUserInfo blackUserInfo = 3;
int32 addSource = 4;
string operatorUserID = 5;
string ex = 6;
2021-12-26 18:47:11 +08:00
}
message GroupRequest{
2022-01-15 11:14:29 +08:00
PublicUserInfo userInfo = 1;
GroupInfo groupInfo = 2;
2022-01-19 14:10:15 +08:00
int32 handleResult = 3;
2022-01-14 09:51:43 +08:00
string reqMsg = 4;
string handleMsg = 5;
2023-01-29 16:10:30 +08:00
int64 reqTime = 6;
2022-01-14 09:51:43 +08:00
string handleUserID = 7;
2023-01-29 16:10:30 +08:00
int64 handleTime = 8;
2022-01-14 09:51:43 +08:00
string ex = 9;
int32 joinSource = 10;
string inviterUserID = 11;
2021-12-26 18:47:11 +08:00
}
message FriendRequest{
2022-01-14 18:16:50 +08:00
string fromUserID = 1;
string fromNickname = 2;
string fromFaceURL = 3;
2022-01-14 18:29:09 +08:00
int32 fromGender = 4;
2022-01-14 18:16:50 +08:00
string toUserID = 5;
string toNickname = 6;
string toFaceURL = 7;
2022-01-14 18:29:09 +08:00
int32 toGender = 8;
2022-01-14 18:16:50 +08:00
int32 handleResult = 9;
string reqMsg = 10;
2023-01-29 16:10:30 +08:00
int64 createTime = 11;
2022-01-14 18:16:50 +08:00
string handlerUserID = 12;
string handleMsg = 13;
2023-01-29 16:10:30 +08:00
int64 handleTime = 14;
2022-01-14 18:16:50 +08:00
string ex = 15;
2021-12-26 18:47:11 +08:00
}
2022-04-12 22:02:43 +08:00
///////////////////////////////////organization/////////////////////////////////////
message Department {
string departmentID = 1;
string faceURL = 2;
string name = 3;
string parentID = 4;
int32 order = 5;
int32 departmentType = 6;
2023-01-29 16:10:30 +08:00
int64 createTime = 7;
2022-04-12 22:02:43 +08:00
uint32 subDepartmentNum = 8;
uint32 memberNum = 9;
2023-01-29 16:29:14 +08:00
string ex = 10;
2022-04-12 22:02:43 +08:00
}
message OrganizationUser {
2023-01-29 16:29:14 +08:00
string userID = 1;
string nickname = 2;
string englishName = 3;
string faceURL = 4;
int32 gender = 5;
string mobile = 6;
string telephone = 7;
uint32 birth = 8;
string email = 9;
2023-01-29 16:10:30 +08:00
int64 createTime = 10;
2023-01-29 16:29:14 +08:00
string ex = 11;
string birthStr = 12;
2022-04-12 22:02:43 +08:00
}
message DepartmentMember {
2023-01-29 16:29:14 +08:00
string userID = 1;
string departmentID = 2;
int32 order = 3;
string position = 4;
int32 leader = 5;
int32 status = 6;
string ex = 7;
2022-04-12 22:02:43 +08:00
}
2022-04-18 17:25:54 +08:00
message UserDepartmentMember {
OrganizationUser organizationUser = 1;
DepartmentMember departmentMember = 2;
}
2022-04-12 22:02:43 +08:00
message UserInDepartment {
2022-04-16 20:10:10 +08:00
OrganizationUser organizationUser = 1;
2022-04-12 22:02:43 +08:00
repeated DepartmentMember departmentMemberList = 2;
}
///////////////////////////////////organization end//////////////////////////////////
2021-12-26 18:47:11 +08:00
2022-04-12 22:02:43 +08:00
///////////////////////////////////base end/////////////////////////////////////
2022-05-27 20:29:39 +08:00
message PullMessageBySeqListReq{
string userID = 1;
string operationID = 2;
repeated uint32 seqList = 3;
map <string, seqList>groupSeqList = 4;
}
message seqList {
2023-01-29 16:29:14 +08:00
repeated uint32 seqList = 1;
2022-05-27 20:29:39 +08:00
}
message MsgDataList {
2023-01-29 16:29:14 +08:00
repeated MsgData msgDataList = 1;
2022-05-27 20:29:39 +08:00
}
2022-04-12 22:02:43 +08:00
message PullMessageBySeqListResp {
2021-12-23 17:34:32 +08:00
int32 errCode = 1;
string errMsg = 2;
2022-01-20 10:00:02 +08:00
repeated MsgData list = 3;
2022-05-27 20:29:39 +08:00
map<string, MsgDataList> groupMsgDataList = 4;
}
2022-05-27 20:29:39 +08:00
message GetMaxAndMinSeqReq {
2023-01-29 16:29:14 +08:00
repeated string groupIDList = 1;
string userID = 2;
string operationID = 3;
2022-05-27 20:29:39 +08:00
}
message MaxAndMinSeq{
uint32 maxSeq = 1;
uint32 minSeq = 2;
}
message GetMaxAndMinSeqResp {
2022-01-20 11:36:43 +08:00
uint32 maxSeq = 1;
uint32 minSeq = 2;
2022-05-28 17:22:19 +08:00
int32 errCode = 3;
string errMsg = 4;
map<string, MaxAndMinSeq> groupMaxAndMinSeq = 5;
}
message UserSendMsgResp {
2022-01-14 09:51:43 +08:00
string serverMsgID = 1;
string clientMsgID = 2;
int64 sendTime = 3;
}
2022-05-27 20:29:39 +08:00
message MsgData {
string sendID = 1;
string recvID = 2;
2021-12-22 09:31:33 +08:00
string groupID = 3;
2021-12-26 18:47:11 +08:00
string clientMsgID = 4;
string serverMsgID = 5;
int32 senderPlatformID = 6;
string senderNickname = 7;
string senderFaceURL = 8;
2021-12-22 09:31:33 +08:00
int32 sessionType = 9;
int32 msgFrom = 10;
int32 contentType = 11;
2021-12-26 18:47:11 +08:00
bytes content = 12;
2022-01-20 11:36:43 +08:00
uint32 seq = 14;
2021-12-22 09:31:33 +08:00
int64 sendTime = 15;
int64 createTime = 16;
2022-04-22 19:44:58 +08:00
int32 status = 17;
map<string, bool> options = 18;
OfflinePushInfo offlinePushInfo = 19;
2022-04-24 15:55:19 +08:00
repeated string atUserIDList = 20;
2022-06-13 15:19:04 +08:00
bytes msgDataList = 21;
2022-08-02 18:11:40 +08:00
string attachedInfo = 22;
string ex = 23;
2022-04-24 15:55:19 +08:00
}
2021-12-10 11:07:44 +08:00
message OfflinePushInfo{
2022-01-14 09:51:43 +08:00
string title = 1;
string desc = 2;
string ex = 3;
2021-12-26 18:47:11 +08:00
string iOSPushSound = 4;
bool iOSBadgeCount = 5;
2021-12-10 11:07:44 +08:00
}
2021-12-10 17:30:11 +08:00
2021-12-21 21:40:50 +08:00
2021-12-26 18:47:11 +08:00
2021-12-21 21:40:50 +08:00
message TipsComm{
2022-01-14 09:51:43 +08:00
bytes detail = 1;
string defaultTips = 2;
2022-02-10 18:32:02 +08:00
string jsonDetail = 3;
2021-12-21 21:40:50 +08:00
}
//////////////////////group/////////////////////
2022-01-16 12:25:41 +08:00
// OnGroupCreated()
message GroupCreatedTips{
2022-01-14 09:51:43 +08:00
GroupInfo group = 1;
2022-01-16 16:31:28 +08:00
GroupMemberFullInfo opUser = 2;
2022-01-16 12:25:41 +08:00
repeated GroupMemberFullInfo memberList = 3;
int64 operationTime = 4;
2022-01-16 16:31:28 +08:00
GroupMemberFullInfo groupOwnerUser = 5;
2022-01-16 12:25:41 +08:00
}
// OnGroupInfoSet()
2022-01-16 16:31:28 +08:00
message GroupInfoSetTips{
2022-01-16 12:25:41 +08:00
GroupMemberFullInfo opUser = 1; //who do this
int64 muteTime = 2;
GroupInfo group = 3;
2021-12-21 21:40:50 +08:00
}
2022-01-16 12:25:41 +08:00
// OnJoinGroupApplication()
message JoinGroupApplicationTips{
GroupInfo group = 1;
PublicUserInfo applicant = 2;
2022-01-16 16:31:28 +08:00
string reqMsg = 3;
2022-01-16 12:25:41 +08:00
}
// OnQuitGroup()
2021-12-21 21:40:50 +08:00
//Actively leave the group
2022-01-16 12:25:41 +08:00
message MemberQuitTips{
2022-01-14 09:51:43 +08:00
GroupInfo group = 1;
2022-01-16 12:25:41 +08:00
GroupMemberFullInfo quitUser = 2;
2022-01-14 09:51:43 +08:00
int64 operationTime = 3;
2021-12-21 21:40:50 +08:00
}
2022-01-16 12:25:41 +08:00
// OnApplicationGroupAccepted()
message GroupApplicationAcceptedTips{
2022-01-14 09:51:43 +08:00
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
2022-01-16 12:25:41 +08:00
string handleMsg = 4;
int32 receiverAs = 5; // admin(==1) or applicant(==0)
2021-12-21 21:40:50 +08:00
}
2022-01-16 12:25:41 +08:00
// OnApplicationGroupRejected()
message GroupApplicationRejectedTips{
2022-01-14 09:51:43 +08:00
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
2022-01-16 12:25:41 +08:00
string handleMsg = 4;
int32 receiverAs = 5; // admin(==1) or applicant(==0)
2021-12-21 21:40:50 +08:00
}
2022-01-16 12:25:41 +08:00
// OnTransferGroupOwner()
message GroupOwnerTransferredTips{
2022-01-14 09:51:43 +08:00
GroupInfo group = 1;
2022-01-16 12:25:41 +08:00
GroupMemberFullInfo opUser = 2;
GroupMemberFullInfo newGroupOwner = 3;
2022-01-14 09:51:43 +08:00
int64 operationTime = 4;
2021-12-21 21:40:50 +08:00
}
2021-12-10 17:30:11 +08:00
2022-01-16 12:25:41 +08:00
// OnMemberKicked()
2021-12-21 21:40:50 +08:00
message MemberKickedTips{
2022-01-14 09:51:43 +08:00
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
repeated GroupMemberFullInfo kickedUserList = 3;
int64 operationTime = 4;
2021-12-21 21:40:50 +08:00
}
2022-01-16 12:25:41 +08:00
// OnMemberInvited()
message MemberInvitedTips{
2022-01-14 09:51:43 +08:00
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
2022-01-16 12:25:41 +08:00
repeated GroupMemberFullInfo invitedUserList = 3;
2022-01-14 09:51:43 +08:00
int64 operationTime = 4;
2021-12-21 21:40:50 +08:00
}
2022-01-16 12:25:41 +08:00
//Actively join the group
2022-01-16 16:31:28 +08:00
message MemberEnterTips{
GroupInfo group = 1;
GroupMemberFullInfo entrantUser = 2;
int64 operationTime = 3;
}
2022-01-16 12:25:41 +08:00
2022-03-24 15:33:30 +08:00
message GroupDismissedTips{
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
int64 operationTime = 3;
}
2022-03-29 12:40:08 +08:00
message GroupMemberMutedTips{
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
int64 operationTime = 3;
GroupMemberFullInfo mutedUser = 4;
uint32 mutedSeconds = 5;
}
message GroupMemberCancelMutedTips{
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
int64 operationTime = 3;
GroupMemberFullInfo mutedUser = 4;
}
message GroupMutedTips{
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
int64 operationTime = 3;
}
message GroupCancelMutedTips{
2022-03-29 11:35:53 +08:00
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
int64 operationTime = 3;
}
2022-04-18 11:52:17 +08:00
message GroupMemberInfoSetTips{
GroupInfo group = 1;
GroupMemberFullInfo opUser = 2;
int64 operationTime = 3;
GroupMemberFullInfo changedUser = 4;
}
2022-01-16 12:25:41 +08:00
2022-04-19 16:40:57 +08:00
message OrganizationChangedTips{
UserInfo opUser = 2;
int64 operationTime = 3;
}
2021-12-21 21:40:50 +08:00
//////////////////////friend/////////////////////
2021-12-10 17:30:11 +08:00
2021-12-21 21:40:50 +08:00
message FriendApplication{
2022-01-14 09:51:43 +08:00
int64 addTime = 1;
string addSource = 2;
string addWording = 3;
2021-12-20 17:27:05 +08:00
}
2021-12-24 15:02:47 +08:00
message FromToUserID{
2022-01-14 09:51:43 +08:00
string fromUserID = 1;
string toUserID = 2;
2021-12-24 15:02:47 +08:00
}
//FromUserID apply to add ToUserID
2022-01-16 18:58:07 +08:00
message FriendApplicationTips{
2023-02-01 11:15:39 +08:00
FromToUserID fromToUserID = 1; //from:发起者; to:接收者
2021-12-20 17:27:05 +08:00
}
2021-12-10 17:30:11 +08:00
2021-12-24 15:02:47 +08:00
//FromUserID accept or reject ToUserID
2022-01-16 16:31:28 +08:00
message FriendApplicationApprovedTips{
2023-02-01 11:15:39 +08:00
FromToUserID fromToUserID = 1; //from:同意者;to:请求发起者
2022-01-16 16:31:28 +08:00
string handleMsg = 2;
2021-12-20 17:27:05 +08:00
}
2021-12-10 17:30:11 +08:00
2021-12-24 15:02:47 +08:00
//FromUserID accept or reject ToUserID
2022-01-16 16:31:28 +08:00
message FriendApplicationRejectedTips{
2023-02-01 11:15:39 +08:00
FromToUserID fromToUserID = 1; //from:拒绝者;to:请求发起者
2023-01-29 16:29:14 +08:00
string handleMsg = 2;
2021-12-10 17:30:11 +08:00
}
2022-01-16 16:31:28 +08:00
2021-12-24 15:02:47 +08:00
// FromUserID Added a friend ToUserID
2021-12-21 21:40:50 +08:00
message FriendAddedTips{
2022-01-14 09:51:43 +08:00
FriendInfo friend = 1;
int64 operationTime = 2;
PublicUserInfo opUser = 3; //who do this
2021-12-24 15:02:47 +08:00
2021-12-21 21:40:50 +08:00
}
2021-12-10 17:30:11 +08:00
2021-12-24 15:02:47 +08:00
// FromUserID deleted a friend ToUserID
2021-12-21 21:40:50 +08:00
message FriendDeletedTips{
2023-02-01 11:15:39 +08:00
FromToUserID fromToUserID = 1; //fromowner tofriend
2021-12-21 21:40:50 +08:00
}
2021-12-10 17:30:11 +08:00
2021-12-26 18:47:11 +08:00
2021-12-21 21:40:50 +08:00
message BlackAddedTips{
2023-02-01 11:15:39 +08:00
FromToUserID fromToUserID = 1; //fromowner toblack
2021-12-21 21:40:50 +08:00
}
2021-12-20 17:27:05 +08:00
2021-12-21 21:40:50 +08:00
message BlackDeletedTips{
2023-02-01 11:15:39 +08:00
FromToUserID fromToUserID = 1; //fromowner toblack
2021-12-21 21:40:50 +08:00
}
message FriendInfoChangedTips{
2023-02-01 11:15:39 +08:00
FromToUserID fromToUserID = 1; //fromchanged tofriend
2021-12-21 21:40:50 +08:00
}
//////////////////////user/////////////////////
2022-01-16 18:58:07 +08:00
message UserInfoUpdatedTips{
2022-01-14 09:51:43 +08:00
string userID = 1;
2021-12-21 21:40:50 +08:00
}
2022-01-24 01:40:49 +08:00
2022-02-15 14:11:20 +08:00
//////////////////////conversation/////////////////////
message ConversationUpdateTips{
2023-01-29 16:29:14 +08:00
string UserID = 1;
repeated string conversationIDList = 2;
int64 updateUnreadCountTime = 3;
2022-09-05 19:07:16 +08:00
2022-03-31 14:50:02 +08:00
}
2022-02-15 14:11:20 +08:00
2022-03-31 14:50:02 +08:00
message ConversationSetPrivateTips{
2023-01-29 16:29:14 +08:00
string recvID = 1;
string sendID = 2;
bool isPrivate = 3;
2022-02-15 14:11:20 +08:00
}
2022-05-25 14:22:39 +08:00
////////////////////message///////////////////////
message DeleteMessageTips{
string opUserID = 1;
2023-01-29 16:29:14 +08:00
string userID = 2;
2022-05-25 14:36:24 +08:00
repeated uint32 seqList = 3;
2022-05-25 14:22:39 +08:00
}
2022-01-24 01:40:49 +08:00
///cms
message RequestPagination {
int32 pageNumber = 1;
int32 showNumber = 2;
2022-01-25 19:18:04 +08:00
}
2022-03-11 18:11:22 +08:00
///////////////////signal//////////////
message SignalReq {
oneof payload {
2023-01-29 16:29:14 +08:00
SignalInviteReq invite = 1;
SignalInviteInGroupReq inviteInGroup = 2;
SignalCancelReq cancel = 3;
SignalAcceptReq accept = 4;
SignalHungUpReq hungUp = 5;
SignalRejectReq reject = 6;
SignalGetRoomByGroupIDReq getRoomByGroupID = 7;
SignalOnRoomParticipantConnectedReq onRoomParticipantConnectedReq = 8;
SignalOnRoomParticipantDisconnectedReq onRoomParticipantDisconnectedReq = 9;
SignalGetTokenByRoomIDReq getTokenByRoomID = 10;
2022-03-11 18:11:22 +08:00
}
}
message SignalResp {
oneof payload {
SignalInviteReply invite = 1;
2023-01-29 16:29:14 +08:00
SignalInviteInGroupReply inviteInGroup = 2;
2022-09-27 15:35:36 +08:00
SignalCancelReply cancel = 3;
2022-03-11 18:11:22 +08:00
SignalAcceptReply accept = 4;
SignalHungUpReply hungUp = 5;
SignalRejectReply reject = 6;
2022-10-08 11:04:34 +08:00
SignalGetRoomByGroupIDReply getRoomByGroupID = 7;
SignalGetTokenByRoomIDReply getTokenByRoomID = 8;
2022-03-11 18:11:22 +08:00
}
}
2022-10-08 11:04:34 +08:00
2022-03-11 18:11:22 +08:00
message InvitationInfo {
2023-01-29 16:29:14 +08:00
string inviterUserID = 1;
repeated string inviteeUserIDList = 2;
string customData = 3;
string groupID = 4;
string roomID = 5;
int32 timeout = 6;
string mediaType = 7;
int32 platformID = 8;
int32 sessionType = 9;
int32 initiateTime = 10;
2023-01-29 16:29:14 +08:00
repeated string busyLineUserIDList = 11;
2022-03-11 18:11:22 +08:00
}
2022-03-16 14:13:30 +08:00
message ParticipantMetaData{
2023-01-29 16:29:14 +08:00
GroupInfo groupInfo = 1;
GroupMemberFullInfo groupMemberInfo = 2;
PublicUserInfo userInfo = 3;
2022-03-16 14:13:30 +08:00
}
2022-03-11 18:11:22 +08:00
message SignalInviteReq {
2023-01-29 16:29:14 +08:00
string opUserID = 1;
InvitationInfo invitation = 2;
OfflinePushInfo offlinePushInfo = 3;
ParticipantMetaData participant = 4;
2022-03-16 15:31:15 +08:00
2022-03-11 18:11:22 +08:00
}
message SignalInviteReply {
string token = 1;
2022-03-15 10:00:45 +08:00
string roomID = 2;
2022-03-11 18:11:22 +08:00
string liveURL = 3;
2022-09-27 15:35:36 +08:00
repeated string busyLineUserIDList = 4;
2022-03-11 18:11:22 +08:00
}
message SignalInviteInGroupReq {
2022-03-14 20:57:40 +08:00
string opUserID = 1;
InvitationInfo invitation = 2;
2023-01-29 16:29:14 +08:00
OfflinePushInfo offlinePushInfo = 3;
2022-03-16 14:13:30 +08:00
ParticipantMetaData participant = 4;
2022-03-11 18:11:22 +08:00
}
message SignalInviteInGroupReply {
string token = 1;
string roomID = 2;
string liveURL = 3;
2022-09-27 15:35:36 +08:00
repeated string busyLineUserIDList = 4;
2022-03-11 18:11:22 +08:00
}
message SignalCancelReq {
2022-03-14 20:57:40 +08:00
string opUserID = 1;
2022-03-14 19:41:00 +08:00
InvitationInfo invitation = 2;
2023-01-29 16:29:14 +08:00
OfflinePushInfo offlinePushInfo = 3;
2022-03-16 14:13:30 +08:00
ParticipantMetaData participant = 4;
2022-03-11 18:11:22 +08:00
}
message SignalCancelReply {
}
message SignalAcceptReq {
2022-03-14 20:57:40 +08:00
string opUserID = 1;
2022-03-14 19:41:00 +08:00
InvitationInfo invitation = 2;
2023-01-29 16:29:14 +08:00
OfflinePushInfo offlinePushInfo = 3;
2022-03-16 14:13:30 +08:00
ParticipantMetaData participant = 4;
2022-03-16 15:45:34 +08:00
int32 opUserPlatformID = 5;
2022-03-11 18:11:22 +08:00
}
message SignalAcceptReply {
2022-03-11 18:12:34 +08:00
string token = 1;
string roomID = 2;
string liveURL = 3;
2022-03-11 18:11:22 +08:00
}
message SignalHungUpReq {
2022-03-14 20:57:40 +08:00
string opUserID = 1;
2022-03-14 19:41:00 +08:00
InvitationInfo invitation = 2;
2023-01-29 16:29:14 +08:00
OfflinePushInfo offlinePushInfo = 3;
2022-03-11 18:11:22 +08:00
}
message SignalHungUpReply {
}
message SignalRejectReq {
2022-03-15 10:11:14 +08:00
string opUserID = 1;
2022-03-14 19:41:00 +08:00
InvitationInfo invitation = 2;
2023-01-29 16:29:14 +08:00
OfflinePushInfo offlinePushInfo = 3;
2022-03-16 15:31:15 +08:00
ParticipantMetaData participant = 4;
2022-03-16 15:45:34 +08:00
int32 opUserPlatformID = 5;
2022-03-11 18:11:22 +08:00
}
message SignalRejectReply {
}
2022-08-17 10:42:17 +08:00
message SignalGetRoomByGroupIDReq {
string opUserID = 1;
string groupID = 2;
2022-09-27 15:35:36 +08:00
ParticipantMetaData participant = 3;
2022-08-17 10:42:17 +08:00
}
message SignalGetRoomByGroupIDReply {
InvitationInfo invitation = 1;
2022-10-08 15:17:58 +08:00
repeated ParticipantMetaData participant = 2;
2022-10-08 11:04:34 +08:00
string roomID = 3;
2022-08-17 10:42:17 +08:00
}
2022-09-30 11:05:32 +08:00
message SignalOnRoomParticipantConnectedReq {
2022-09-28 15:39:03 +08:00
InvitationInfo invitation = 1;
2022-09-29 17:47:12 +08:00
repeated ParticipantMetaData participant = 2;
2022-09-28 15:39:03 +08:00
string groupID = 3;
}
2022-03-11 18:11:22 +08:00
2022-09-30 11:05:32 +08:00
message SignalOnRoomParticipantDisconnectedReq {
InvitationInfo invitation = 1;
repeated ParticipantMetaData participant = 2;
string groupID = 3;
}
2022-10-08 11:04:34 +08:00
message SignalGetTokenByRoomIDReq {
string roomID = 1;
string opUserID = 2;
ParticipantMetaData participant = 3;
string operationID = 4;
}
message SignalGetTokenByRoomIDReply {
string token = 1;
string liveURL = 2;
}
2022-09-30 11:05:32 +08:00
2022-03-15 18:13:58 +08:00
message DelMsgListReq{
2023-01-29 16:29:14 +08:00
string opUserID = 1;
string userID = 2;
repeated uint32 seqList = 3;
string operationID = 4;
2022-03-15 18:13:58 +08:00
}
message DelMsgListResp{
2022-04-05 11:55:40 +08:00
int32 errCode = 1;
2022-03-15 18:13:58 +08:00
string errMsg = 2;
}
2022-11-28 19:09:38 +08:00
message SetAppBackgroundStatusReq {
string userID = 1;
bool isBackground = 2;
}
2022-03-14 19:44:23 +08:00
2022-11-28 19:09:38 +08:00
message SetAppBackgroundStatusResp {
int32 errCode = 1;
string errMsg = 2;
2022-12-07 21:12:48 +08:00
}
message ExtendMsgSet {
2022-12-08 19:50:28 +08:00
string sourceID = 1;
int32 sessionType = 2;
map <string, ExtendMsg>extendMsgs = 3;
int64 MaxMsgUpdateTime = 4;
int32 extendMsgNum = 5;
int64 createTime = 6;
2022-12-07 21:12:48 +08:00
}
message ExtendMsg {
2022-12-08 19:50:28 +08:00
map <string, KeyValue>reactionExtensionList = 1;
2022-12-07 21:12:48 +08:00
string clientMsgID = 2;
2022-12-08 19:50:28 +08:00
int64 msgFirstModifyTime = 3;
2022-12-07 21:12:48 +08:00
string attachedInfo = 4;
string ex = 5;
}
2022-12-08 19:50:28 +08:00
message KeyValue {
string typeKey = 1;
2022-12-07 21:12:48 +08:00
string value = 2;
2022-12-08 19:50:28 +08:00
int64 latestUpdateTime = 3;
2022-12-07 21:12:48 +08:00
}
2022-12-12 17:36:12 +08:00
2023-01-29 16:29:14 +08:00
message ResponsePagination {
int32 CurrentPage = 5;
int32 ShowNumber = 6;
}
2022-12-12 17:36:12 +08:00