update 【gRPC API】 proto files
This commit is contained in:
parent
57f264f996
commit
c14f8c455e
@ -5,7 +5,7 @@ package bilibili.app.playeronline.v1;
|
||||
// 在线人数
|
||||
service PlayerOnline {
|
||||
// 获取在线人数
|
||||
rpc GetPlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply);
|
||||
rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply);
|
||||
}
|
||||
|
||||
// 获取在线人数-请求
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.dynamic.interfaces.feed.v1;
|
||||
package bilibili.main.dynamic.feed.v1;
|
||||
|
||||
import "bilibili/dynamic/common.proto";
|
||||
|
||||
|
||||
@ -4,18 +4,16 @@ package bilibili.im.interfaces.v1;
|
||||
|
||||
import "bilibili/im/type/im.proto";
|
||||
|
||||
//私信
|
||||
// 私信
|
||||
service ImInterface {
|
||||
// 发送消息
|
||||
rpc SendMsg (ReqSendMsg) returns (RspSendMsg);
|
||||
|
||||
// 同步关系
|
||||
rpc SyncRelation (ReqRelationSync) returns (RspRelationSync);
|
||||
// 确认同步进度
|
||||
rpc SyncAck (ReqSyncAck) returns (RspSyncAck);
|
||||
// 同步版本拉取消息
|
||||
rpc SyncFetchSessionMsgs (ReqSessionMsg) returns (RspSessionMsg);
|
||||
|
||||
// 拉取会话记录列表
|
||||
rpc GetSessions (ReqGetSessions) returns (RspSessions);
|
||||
// 拉取新消息
|
||||
@ -46,25 +44,46 @@ service ImInterface {
|
||||
rpc BatchRmSessions (ReqBatRmSess) returns (DummyRsp);
|
||||
// 拉取最近私信分享列表
|
||||
rpc ShareList (ReqShareList) returns (RspShareList);
|
||||
|
||||
//
|
||||
rpc SpecificSingleUnread (ReqSpecificSingleUnread) returns (RspSpecificSingleUnread);
|
||||
//
|
||||
rpc GetSpecificSessions (ReqGetSpecificSessions) returns (RspSessions);
|
||||
//
|
||||
rpc GetLiveInfo(ReqLiveInfo) returns (RspLiveInfo);
|
||||
//
|
||||
rpc GetTotalUnread(ReqTotalUnread) returns (RspTotalUnread);
|
||||
//
|
||||
rpc ShowClearUnreadUI(ReqShowClearUnreadUI) returns (RspShowClearUnreadUI);
|
||||
//
|
||||
rpc CloseClearUnreadUI(ReqCloseClearUnreadUI) returns (RspCloseClearUnreadUI);
|
||||
//
|
||||
rpc UpdateTotalUnread(ReqUpdateTotalUnread) returns (RspUpdateTotalUnread);
|
||||
}
|
||||
|
||||
// 发送消息-请求
|
||||
message ReqSendMsg {
|
||||
// 消息内容
|
||||
bilibili.im.type.Msg msg = 1;
|
||||
// 空请求
|
||||
message DummyReq {
|
||||
//
|
||||
string cookie = 2;
|
||||
//
|
||||
string cookie2 = 3;
|
||||
//
|
||||
int32 error_code = 4;
|
||||
//
|
||||
string dev_id = 5;
|
||||
uint32 idl = 1;
|
||||
}
|
||||
|
||||
// 空响应
|
||||
message DummyRsp {
|
||||
reserved 1;
|
||||
}
|
||||
|
||||
//
|
||||
enum ENUM_FOLD {
|
||||
FOLD_NO = 0; //
|
||||
FOLD_YES = 1; //
|
||||
FOLD_UNKNOWN = 2; //
|
||||
}
|
||||
|
||||
//
|
||||
enum ENUM_UNREAD_TYPE{
|
||||
UNREAD_TYPE_ALL = 0; //
|
||||
UNREAD_TYPE_FOLLOW = 1; //
|
||||
UNREAD_TYPE_UNFOLLOW = 2; //
|
||||
UNREAD_TYPE_DUSTBIN = 3; //
|
||||
}
|
||||
|
||||
// 表情资源信息
|
||||
@ -80,77 +99,54 @@ message EmotionInfo {
|
||||
string gif_url = 4;
|
||||
}
|
||||
|
||||
// 发送消息-响应
|
||||
message RspSendMsg {
|
||||
//
|
||||
message MsgDetail {
|
||||
//
|
||||
uint64 msg_key = 1;
|
||||
// 表情资源信息
|
||||
repeated EmotionInfo e_infos = 2;
|
||||
int64 msg_key = 1;
|
||||
//
|
||||
string msg_content = 3;
|
||||
//
|
||||
bilibili.im.type.KeyHitInfos key_hit_infos = 4;
|
||||
int64 seqno = 2;
|
||||
}
|
||||
|
||||
// 同步关系-请求
|
||||
message ReqRelationSync {
|
||||
// 客户端当前seqno
|
||||
uint64 client_relation_oplog_seqno = 1;
|
||||
//
|
||||
message MsgFeedUnreadRsp {
|
||||
//
|
||||
map<string, int64> unread = 1;
|
||||
}
|
||||
|
||||
// 同步关系-响应
|
||||
message RspRelationSync {
|
||||
// 更新应援团小助手消息已拉取进度-请求
|
||||
message ReqAckAssisMsg {
|
||||
//
|
||||
int32 full = 1;
|
||||
// 增量日志
|
||||
repeated bilibili.im.type.RelationLog relation_logs = 2;
|
||||
// 全量列表
|
||||
repeated bilibili.im.type.FriendRelation friend_list = 3;
|
||||
// 服务器端最大的relation seqno
|
||||
uint64 server_relation_oplog_seqno = 4;
|
||||
// 全量列表
|
||||
repeated bilibili.im.type.GroupRelation group_list = 5;
|
||||
uint64 ack_seqno = 1;
|
||||
}
|
||||
|
||||
// 确认同步进度-请求
|
||||
message ReqSyncAck {
|
||||
// 拉取已读消息-请求
|
||||
message ReqAckSessions {
|
||||
//
|
||||
uint64 client_seqno = 1;
|
||||
uint64 begin_ts = 1;
|
||||
//
|
||||
uint32 end_ts = 2;
|
||||
//
|
||||
uint32 size = 3;
|
||||
}
|
||||
|
||||
// 确认同步进度-响应
|
||||
message RspSyncAck {}
|
||||
// 批量删除会话-请求
|
||||
message ReqBatRmSess {
|
||||
|
||||
// 同步版本拉取消息-请求
|
||||
message ReqSessionMsg {
|
||||
}
|
||||
|
||||
//
|
||||
message ReqCloseClearUnreadUI {
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
message ReqGetMsg {
|
||||
//
|
||||
uint64 talker_id = 1;
|
||||
int64 talker_id = 1;
|
||||
//
|
||||
int32 session_type = 2;
|
||||
//
|
||||
uint64 end_seqno = 3;
|
||||
//
|
||||
uint64 begin_seqno = 4;
|
||||
//
|
||||
int32 size = 5;
|
||||
//
|
||||
int32 order = 6;
|
||||
//
|
||||
string dev_id = 7;
|
||||
}
|
||||
|
||||
// 同步版本拉取消息-响应
|
||||
message RspSessionMsg {
|
||||
//
|
||||
repeated bilibili.im.type.Msg messages = 1;
|
||||
//
|
||||
int32 has_more = 2;
|
||||
//
|
||||
uint64 min_seqno = 3;
|
||||
//
|
||||
uint64 max_seqno = 4;
|
||||
// 表情资源信息
|
||||
repeated EmotionInfo e_infos = 5;
|
||||
repeated MsgDetail msg_detail = 3;
|
||||
}
|
||||
|
||||
// 拉取会话记录列表-请求
|
||||
@ -175,6 +171,28 @@ message ReqGetSessions {
|
||||
uint32 lessons_mode = 9;
|
||||
}
|
||||
|
||||
// -请求
|
||||
message ReqGetSpecificSessions {
|
||||
// 具体会话详情
|
||||
repeated SimpleSession talker_sessions = 1;
|
||||
}
|
||||
|
||||
// 应援团消息助手-请求
|
||||
message ReqGroupAssisMsg {
|
||||
//
|
||||
uint64 client_seqno = 1;
|
||||
//
|
||||
uint32 size = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message ReqLiveInfo {
|
||||
//
|
||||
int64 uid = 1;
|
||||
//
|
||||
int64 talker_id = 2;
|
||||
}
|
||||
|
||||
// 拉取新消息-请求
|
||||
message ReqNewSessions {
|
||||
//
|
||||
@ -187,47 +205,10 @@ message ReqNewSessions {
|
||||
uint32 lessons_mode = 4;
|
||||
}
|
||||
|
||||
// 拉取已读消息-请求
|
||||
message ReqAckSessions {
|
||||
//
|
||||
uint64 begin_ts = 1;
|
||||
//
|
||||
uint32 end_ts = 2;
|
||||
//
|
||||
uint32 size = 3;
|
||||
}
|
||||
|
||||
// 拉取消息-响应
|
||||
message RspSessions {
|
||||
//
|
||||
repeated bilibili.im.type.SessionInfo session_list = 1;
|
||||
//
|
||||
uint32 has_more = 2;
|
||||
// 标记反垃圾会话是否在清理中
|
||||
bool anti_disturb_cleaning = 3;
|
||||
// 当session_list为空时,会返回该字段用于判断通讯录是否为空,1表示空,0表示非空
|
||||
int32 is_address_list_empty = 4;
|
||||
}
|
||||
|
||||
// 更新已读进度-请求
|
||||
message ReqUpdateAck {
|
||||
// 聊天对象uid,可以为用户id或者为群id
|
||||
uint64 talker_id = 1;
|
||||
// 会话类型
|
||||
uint32 session_type = 2;
|
||||
// 已读的最大seqno
|
||||
uint64 ack_seqno = 3;
|
||||
}
|
||||
|
||||
// 置顶聊天-请求
|
||||
message ReqSetTop {
|
||||
//
|
||||
uint64 talker_id = 1;
|
||||
//
|
||||
uint32 session_type = 2;
|
||||
//
|
||||
// 0:置顶 1:取消置顶
|
||||
uint32 op_type = 3;
|
||||
// 同步关系-请求
|
||||
message ReqRelationSync {
|
||||
// 客户端当前seqno
|
||||
uint64 client_relation_oplog_seqno = 1;
|
||||
}
|
||||
|
||||
// 删除会话记录-请求
|
||||
@ -238,104 +219,18 @@ message ReqRemoveSession {
|
||||
uint32 session_type = 2;
|
||||
}
|
||||
|
||||
// 空响应
|
||||
message DummyRsp {
|
||||
reserved 1;
|
||||
}
|
||||
|
||||
//
|
||||
enum SESSION_TYPE { //
|
||||
UNKNOWN = 0; //
|
||||
UN_FOLD_SESSION = 1; //
|
||||
UN_FOLLOW_SINGLE_SESSION = 2; //
|
||||
MY_GROUP_SESSION = 3; //
|
||||
ALL_SESSION = 4; //
|
||||
}
|
||||
|
||||
//
|
||||
enum ENUM_FOLD {
|
||||
FOLD_NO = 0; //
|
||||
FOLD_YES = 1; //
|
||||
FOLD_UNKNOWN = 2; //
|
||||
}
|
||||
|
||||
//
|
||||
enum ENUM_UNREAD_TYPE{
|
||||
UNREAD_TYPE_ALL = 0; //
|
||||
UNREAD_TYPE_FOLLOW = 1; //
|
||||
UNREAD_TYPE_UNFOLLOW = 2; //
|
||||
}
|
||||
|
||||
// 未读私信数-请求
|
||||
message ReqSingleUnread {
|
||||
// 发送消息-请求
|
||||
message ReqSendMsg {
|
||||
// 消息内容
|
||||
bilibili.im.type.Msg msg = 1;
|
||||
//
|
||||
uint32 unread_type = 1;
|
||||
string cookie = 2;
|
||||
//
|
||||
uint32 show_unfollow_list = 2;
|
||||
}
|
||||
|
||||
// 未读私信数-响应
|
||||
message RspSingleUnread {
|
||||
// 未关注用户私信数
|
||||
uint64 unfollow_unread = 1;
|
||||
// 已关注用户私信数
|
||||
uint64 follow_unread = 2;
|
||||
// 未关注人列表是否有新业务通知
|
||||
uint32 unfollow_push_msg = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message SimpleSession {
|
||||
// 聊天对象uid,可以为用户id或者为群id
|
||||
uint64 talker_id = 1;
|
||||
// 会话类型
|
||||
uint32 session_type = 2;
|
||||
}
|
||||
|
||||
// -请求
|
||||
message ReqSpecificSingleUnread {
|
||||
// 具体会话详情
|
||||
repeated SimpleSession talker_sessions = 1;
|
||||
}
|
||||
|
||||
// -响应
|
||||
message RspSpecificSingleUnread {
|
||||
// key -> 用户uid, value ->未读数
|
||||
map <uint64,uint64> talkerUnreadCnt = 1;
|
||||
// 总未读数
|
||||
uint64 allUnreadCnt = 2;
|
||||
}
|
||||
|
||||
// -请求
|
||||
message ReqGetSpecificSessions {
|
||||
// 具体会话详情
|
||||
repeated SimpleSession talker_sessions = 1;
|
||||
}
|
||||
|
||||
// 空请求
|
||||
message DummyReq {
|
||||
string cookie2 = 3;
|
||||
//
|
||||
uint32 idl = 1;
|
||||
}
|
||||
|
||||
// 我创建的应援团未读数-响应
|
||||
message RspMyGroupUnread {
|
||||
// 未读消息数
|
||||
uint32 unread_count = 1;
|
||||
}
|
||||
|
||||
// 应援团消息助手-请求
|
||||
message ReqGroupAssisMsg {
|
||||
int32 error_code = 4;
|
||||
//
|
||||
uint64 client_seqno = 1;
|
||||
//
|
||||
uint32 size = 2;
|
||||
}
|
||||
|
||||
// 更新应援团小助手消息已拉取进度-请求
|
||||
message ReqAckAssisMsg {
|
||||
//
|
||||
uint64 ack_seqno = 1;
|
||||
string dev_id = 5;
|
||||
}
|
||||
|
||||
// 拉取会话详情-请求
|
||||
@ -354,19 +249,287 @@ message ReqSessionDetails {
|
||||
repeated ReqSessionDetail sess_ids = 1;
|
||||
}
|
||||
|
||||
// 同步版本拉取消息-请求
|
||||
message ReqSessionMsg {
|
||||
//
|
||||
uint64 talker_id = 1;
|
||||
//
|
||||
int32 session_type = 2;
|
||||
//
|
||||
uint64 end_seqno = 3;
|
||||
//
|
||||
uint64 begin_seqno = 4;
|
||||
//
|
||||
int32 size = 5;
|
||||
//
|
||||
int32 order = 6;
|
||||
//
|
||||
string dev_id = 7;
|
||||
}
|
||||
|
||||
// 置顶聊天-请求
|
||||
message ReqSetTop {
|
||||
//
|
||||
uint64 talker_id = 1;
|
||||
//
|
||||
uint32 session_type = 2;
|
||||
//
|
||||
// 0:置顶 1:取消置顶
|
||||
uint32 op_type = 3;
|
||||
}
|
||||
|
||||
// 拉取最近私信分享列表-请求
|
||||
message ReqShareList {
|
||||
// 分页大小 最大20
|
||||
int32 size = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message ReqShowClearUnreadUI {
|
||||
//
|
||||
int32 unread_type = 1;
|
||||
//
|
||||
int32 show_unfollow_list = 2;
|
||||
//
|
||||
int32 show_dustbin = 4;
|
||||
}
|
||||
|
||||
// 未读私信数-请求
|
||||
message ReqSingleUnread {
|
||||
//
|
||||
int32 unread_type = 1;
|
||||
//
|
||||
int32 show_unfollow_list = 2;
|
||||
//
|
||||
int64 uid = 3;
|
||||
//
|
||||
int32 show_dustbin = 4;
|
||||
}
|
||||
|
||||
// -请求
|
||||
message ReqSpecificSingleUnread {
|
||||
// 具体会话详情
|
||||
repeated SimpleSession talker_sessions = 1;
|
||||
}
|
||||
|
||||
// 确认同步进度-请求
|
||||
message ReqSyncAck {
|
||||
//
|
||||
uint64 client_seqno = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message ReqTotalUnread {
|
||||
//
|
||||
int32 unread_type = 1;
|
||||
//
|
||||
int32 show_unfollow_list = 2;
|
||||
//
|
||||
int64 uid = 3;
|
||||
//
|
||||
int32 show_dustbin = 4;
|
||||
//
|
||||
int32 singleunread_on = 5;
|
||||
//
|
||||
int32 msgfeed_on = 6;
|
||||
//
|
||||
int32 sysup_on = 7;
|
||||
}
|
||||
|
||||
// 更新已读进度-请求
|
||||
message ReqUpdateAck {
|
||||
// 聊天对象uid,可以为用户id或者为群id
|
||||
uint64 talker_id = 1;
|
||||
// 会话类型
|
||||
uint32 session_type = 2;
|
||||
// 已读的最大seqno
|
||||
uint64 ack_seqno = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ReqUpdateIntercept {
|
||||
//
|
||||
int64 uid = 1;
|
||||
//
|
||||
int64 talker_id = 2;
|
||||
//
|
||||
int32 status = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ReqUpdateTotalUnread {
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
message RspCloseClearUnreadUI {
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
message RspGetMsg {
|
||||
//
|
||||
repeated bilibili.im.type.Msg msg = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message RspLiveInfo {
|
||||
//
|
||||
int64 live_status = 1;
|
||||
//
|
||||
string jump_url = 2;
|
||||
}
|
||||
|
||||
// 我创建的应援团未读数-响应
|
||||
message RspMyGroupUnread {
|
||||
// 未读消息数
|
||||
uint32 unread_count = 1;
|
||||
}
|
||||
|
||||
// 同步关系-响应
|
||||
message RspRelationSync {
|
||||
//
|
||||
int32 full = 1;
|
||||
// 增量日志
|
||||
repeated bilibili.im.type.RelationLog relation_logs = 2;
|
||||
// 全量列表
|
||||
repeated bilibili.im.type.FriendRelation friend_list = 3;
|
||||
// 服务器端最大的relation seqno
|
||||
uint64 server_relation_oplog_seqno = 4;
|
||||
// 全量列表
|
||||
repeated bilibili.im.type.GroupRelation group_list = 5;
|
||||
}
|
||||
|
||||
// 发送消息-响应
|
||||
message RspSendMsg {
|
||||
//
|
||||
uint64 msg_key = 1;
|
||||
// 表情资源信息
|
||||
repeated EmotionInfo e_infos = 2;
|
||||
//
|
||||
string msg_content = 3;
|
||||
//
|
||||
bilibili.im.type.KeyHitInfos key_hit_infos = 4;
|
||||
}
|
||||
|
||||
// 批量拉取会话详情-响应
|
||||
message RspSessionDetails {
|
||||
// 会话详情列表
|
||||
repeated bilibili.im.type.SessionInfo sess_infos = 1;
|
||||
}
|
||||
|
||||
// 批量删除会话-请求
|
||||
message ReqBatRmSess {}
|
||||
// 同步版本拉取消息-响应
|
||||
message RspSessionMsg {
|
||||
//
|
||||
repeated bilibili.im.type.Msg messages = 1;
|
||||
//
|
||||
int32 has_more = 2;
|
||||
//
|
||||
uint64 min_seqno = 3;
|
||||
//
|
||||
uint64 max_seqno = 4;
|
||||
// 表情资源信息
|
||||
repeated EmotionInfo e_infos = 5;
|
||||
}
|
||||
|
||||
// 拉取最近私信分享列表-请求
|
||||
message ReqShareList {
|
||||
// 分页大小 最大20
|
||||
int32 size = 1;
|
||||
// 拉取消息-响应
|
||||
message RspSessions {
|
||||
//
|
||||
repeated bilibili.im.type.SessionInfo session_list = 1;
|
||||
//
|
||||
uint32 has_more = 2;
|
||||
// 标记反垃圾会话是否在清理中
|
||||
bool anti_disturb_cleaning = 3;
|
||||
// 当session_list为空时,会返回该字段用于判断通讯录是否为空,1表示空,0表示非空
|
||||
int32 is_address_list_empty = 4;
|
||||
//
|
||||
map<int32, int64> system_msg = 5;
|
||||
//
|
||||
bool show_level = 6;
|
||||
}
|
||||
|
||||
// 拉取最近私信分享列表-响应
|
||||
message RspShareList {
|
||||
// 最近会话列表
|
||||
repeated ShareSessionInfo session_list = 1;
|
||||
//
|
||||
int32 IsAddressListEmpty = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message RspShowClearUnreadUI {
|
||||
//
|
||||
bool display = 1;
|
||||
//
|
||||
string text = 2;
|
||||
}
|
||||
|
||||
// 未读私信数-响应
|
||||
message RspSingleUnread {
|
||||
// 未关注用户私信数
|
||||
uint64 unfollow_unread = 1;
|
||||
// 已关注用户私信数
|
||||
uint64 follow_unread = 2;
|
||||
// 未关注人列表是否有新业务通知
|
||||
uint32 unfollow_push_msg = 3;
|
||||
//
|
||||
int32 dustbin_push_msg = 4;
|
||||
//
|
||||
int64 dustbin_unread = 5;
|
||||
}
|
||||
|
||||
// -响应
|
||||
message RspSpecificSingleUnread {
|
||||
// key -> 用户uid, value ->未读数
|
||||
map <uint64,uint64> talkerUnreadCnt = 1;
|
||||
// 总未读数
|
||||
uint64 allUnreadCnt = 2;
|
||||
}
|
||||
|
||||
// 确认同步进度-响应
|
||||
message RspSyncAck {
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
message RspTotalUnread {
|
||||
//
|
||||
SessionSingleUnreadRsp session_single_unread = 1;
|
||||
//
|
||||
MsgFeedUnreadRsp msg_feed_unread = 2;
|
||||
//
|
||||
SysMsgInterfaceLastMsgRsp sys_msg_interface_last_msg = 3;
|
||||
//
|
||||
int32 total_unread = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message RspUpdateTotalUnread {
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
enum SESSION_TYPE { //
|
||||
UNKNOWN = 0; //
|
||||
UN_FOLD_SESSION = 1; //
|
||||
UN_FOLLOW_SINGLE_SESSION = 2; //
|
||||
MY_GROUP_SESSION = 3; //
|
||||
ALL_SESSION = 4; //
|
||||
DUSTBIN_SESSION = 5; //
|
||||
}
|
||||
|
||||
//
|
||||
message SessionSingleUnreadRsp {
|
||||
//
|
||||
int64 unfollow_unread = 1;
|
||||
//
|
||||
int64 follow_unread = 2;
|
||||
//
|
||||
int32 unfollow_push_msg = 3;
|
||||
//
|
||||
int32 dustbin_push_msg = 4;
|
||||
//
|
||||
int64 dustbin_unread = 5;
|
||||
}
|
||||
|
||||
// 会话信息,用于私信分享
|
||||
@ -382,10 +545,58 @@ message ShareSessionInfo {
|
||||
int32 official_type = 4;
|
||||
}
|
||||
|
||||
// 拉取最近私信分享列表-响应
|
||||
message RspShareList {
|
||||
// 最近会话列表
|
||||
repeated ShareSessionInfo session_list = 1;
|
||||
//
|
||||
int32 IsAddressListEmpty = 2;
|
||||
//
|
||||
message SimpleSession {
|
||||
// 聊天对象uid,可以为用户id或者为群id
|
||||
uint64 talker_id = 1;
|
||||
// 会话类型
|
||||
uint32 session_type = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message SysMsgInterfaceLastMsgRsp {
|
||||
//
|
||||
int32 unread = 1;
|
||||
//
|
||||
string title = 2;
|
||||
//
|
||||
string time = 3;
|
||||
//
|
||||
int64 id = 4;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -3,23 +3,11 @@ syntax = "proto3";
|
||||
package bilibili.im.type;
|
||||
|
||||
//
|
||||
enum ENUM_BIZ_MSG_TYPE {
|
||||
message AccountInfo {
|
||||
//
|
||||
BIZ_MSG_TYPE_NORMAL = 0;
|
||||
string name = 1;
|
||||
//
|
||||
BIZ_MSG_TYPE_CARD_VIDEO = 1;
|
||||
}
|
||||
|
||||
//
|
||||
enum RecverType{
|
||||
//
|
||||
EN_NO_MEANING = 0;
|
||||
//单人
|
||||
EN_RECVER_TYPE_PEER = 1;
|
||||
//群
|
||||
EN_RECVER_TYPE_GROUP = 2;
|
||||
//多人
|
||||
EN_RECVER_TYPE_PEERS = 3;
|
||||
string pic_url = 2;
|
||||
}
|
||||
|
||||
//
|
||||
@ -53,15 +41,122 @@ enum CmdId {
|
||||
}
|
||||
|
||||
//
|
||||
enum RelationLogType {
|
||||
EN_INVALID_LOG_TYPE = 0; //
|
||||
EN_ADD_FRIEND = 1; // 添加好友
|
||||
EN_REMOVE_FRIEND = 2; // 删除好友
|
||||
EN_JOIN_GROUP = 3; // 加入群
|
||||
EN_EXIT_GROUP = 4; // 退出群
|
||||
enum ENUM_BIZ_MSG_TYPE {
|
||||
BIZ_MSG_TYPE_NORMAL = 0; //
|
||||
BIZ_MSG_TYPE_CARD_VIDEO = 1; //
|
||||
}
|
||||
|
||||
//
|
||||
message FriendRelation {
|
||||
// 用户mid
|
||||
uint64 uid = 1;
|
||||
// 用户昵称
|
||||
string user_name = 2;
|
||||
// 头像url
|
||||
string face = 3;
|
||||
// vip类型
|
||||
// 0:无 1:月度大会员 2:年度大会员
|
||||
uint32 vip_level = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message GroupRelation {
|
||||
//
|
||||
uint64 group_id = 1;
|
||||
//
|
||||
uint64 owner_uid = 2;
|
||||
//
|
||||
uint32 group_type = 3;
|
||||
//
|
||||
uint32 group_level = 4;
|
||||
//
|
||||
string group_cover = 5;
|
||||
//
|
||||
string group_name = 6;
|
||||
//
|
||||
string group_notice = 7;
|
||||
//
|
||||
int32 status = 8;
|
||||
//
|
||||
int32 member_role = 9;
|
||||
//
|
||||
string fans_medal_name = 10;
|
||||
//
|
||||
uint64 room_id = 11;
|
||||
}
|
||||
|
||||
// 关键词高亮文本
|
||||
message HighText {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string url = 2;
|
||||
// 表示高亮文本应该高亮第几个匹配的文本,ps:比如,“有疑问请联系客服,联系客服时,请说明具体的情况”,一共有2个匹配的文本,要高亮第一个匹配的,则index=1
|
||||
uint32 index = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ImgInfo{
|
||||
//
|
||||
string url = 1;
|
||||
//
|
||||
int32 width = 2;
|
||||
//
|
||||
int32 height = 3;
|
||||
//
|
||||
string imageType = 4;
|
||||
}
|
||||
|
||||
// 关键词命中信息
|
||||
message KeyHitInfos {
|
||||
//
|
||||
string toast = 1;
|
||||
//
|
||||
uint32 rule_id = 2;
|
||||
//
|
||||
repeated HighText high_text = 3;
|
||||
//
|
||||
}
|
||||
|
||||
//
|
||||
message Msg {
|
||||
// 发送方mid
|
||||
uint64 sender_uid = 1;
|
||||
// 接收方类型
|
||||
RecverType receiver_type = 2;
|
||||
// 接收方mid
|
||||
uint64 receiver_id = 3;
|
||||
// 客户端的序列id,用于服务端去重
|
||||
uint64 cli_msg_id = 4;
|
||||
// 消息类型
|
||||
MsgType msg_type = 5;
|
||||
// 消息内容
|
||||
string content = 6;
|
||||
// 服务端的序列号x
|
||||
uint64 msg_seqno = 7;
|
||||
// 消息发送时间(服务端时间)
|
||||
uint64 timestamp = 8;
|
||||
// @用户列表
|
||||
repeated uint64 at_uids = 9;
|
||||
// 多人消息
|
||||
repeated uint64 recver_ids = 10;
|
||||
// 消息唯一标示
|
||||
uint64 msg_key = 11;
|
||||
// 消息状态
|
||||
uint32 msg_status = 12;
|
||||
// 是否为系统撤销
|
||||
bool sys_cancel = 13;
|
||||
// 通知码
|
||||
string notify_code = 14;
|
||||
// 消息来源
|
||||
MsgSource msg_source = 15;
|
||||
// 如果msg.content有表情字符,则该参数需要置为1
|
||||
int32 new_face_version = 16;
|
||||
// 命中关键词信息
|
||||
KeyHitInfos key_hit_infos = 17;
|
||||
}
|
||||
|
||||
// 消息来源
|
||||
enum MsgSource {
|
||||
EN_MSG_SOURCE_UNKONW = 0; //
|
||||
EN_MSG_SOURCE_IOS = 1; //
|
||||
@ -78,7 +173,7 @@ enum MsgSource {
|
||||
EN_MSG_SOURCE_VC_ATTACH_MSG = 12; //
|
||||
};
|
||||
|
||||
//消息类型
|
||||
// 消息类型
|
||||
enum MsgType {
|
||||
// 基础消息类型
|
||||
EN_INVALID_MSG_TYPE = 0; // 空空的~
|
||||
@ -143,6 +238,35 @@ enum MsgType {
|
||||
EN_MSG_TYPE_CHAT_POPUP_SESSION = 306; // 弹出会话
|
||||
}
|
||||
|
||||
// 接收方类型
|
||||
enum RecverType {
|
||||
EN_NO_MEANING = 0; //
|
||||
EN_RECVER_TYPE_PEER = 1; // 单人
|
||||
EN_RECVER_TYPE_GROUP = 2; // 群
|
||||
EN_RECVER_TYPE_PEERS = 3; // 多人
|
||||
}
|
||||
|
||||
//
|
||||
message RelationLog {
|
||||
// 操作类型
|
||||
RelationLogType log_type = 1;
|
||||
// 操作seqno
|
||||
uint64 oplog_seqno = 2;
|
||||
// 好友信息
|
||||
FriendRelation friend_relation = 3;
|
||||
// 群信息
|
||||
GroupRelation group_relation = 4;
|
||||
}
|
||||
|
||||
//
|
||||
enum RelationLogType {
|
||||
EN_INVALID_LOG_TYPE = 0; //
|
||||
EN_ADD_FRIEND = 1; // 添加好友
|
||||
EN_REMOVE_FRIEND = 2; // 删除好友
|
||||
EN_JOIN_GROUP = 3; // 加入群
|
||||
EN_EXIT_GROUP = 4; // 退出群
|
||||
}
|
||||
|
||||
//
|
||||
enum SESSION_TYPE {
|
||||
INVALID_SESSION_TYPE = 0; //
|
||||
@ -152,65 +276,6 @@ enum SESSION_TYPE {
|
||||
ALL_SESSION = 4; //
|
||||
}
|
||||
|
||||
// 关键词高亮文本
|
||||
message HighText {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string url = 2;
|
||||
// 表示高亮文本应该高亮第几个匹配的文本,ps:比如,“有疑问请联系客服,联系客服时,请说明具体的情况”,一共有2个匹配的文本,要高亮第一个匹配的,则index=1
|
||||
uint32 index = 3;
|
||||
}
|
||||
|
||||
//关键词命中信息
|
||||
message KeyHitInfos {
|
||||
//
|
||||
string toast = 1;
|
||||
//
|
||||
uint32 rule_id = 2;
|
||||
//
|
||||
repeated HighText high_text = 3;
|
||||
//
|
||||
}
|
||||
|
||||
//
|
||||
message Msg {
|
||||
// 发送方mid
|
||||
uint64 sender_uid = 1;
|
||||
// 接收方类型
|
||||
int32 receiver_type = 2;
|
||||
// 接收方mid
|
||||
uint64 receiver_id = 3;
|
||||
// 客户端的序列id,用于服务端去重
|
||||
uint64 cli_msg_id = 4;
|
||||
// 消息类型
|
||||
int32 msg_type = 5;
|
||||
// 消息内容
|
||||
string content = 6;
|
||||
// 服务端的序列号x
|
||||
uint64 msg_seqno = 7;
|
||||
// 消息发送时间(服务端时间)
|
||||
uint64 timestamp = 8;
|
||||
// @用户列表
|
||||
repeated uint64 at_uids = 9;
|
||||
// 多人消息
|
||||
repeated uint64 recver_ids = 10;
|
||||
// 消息唯一标示
|
||||
uint64 msg_key = 11;
|
||||
// 消息状态
|
||||
uint32 msg_status = 12;
|
||||
// 是否为系统撤销
|
||||
bool sys_cancel = 13;
|
||||
// 通知码
|
||||
string notify_code = 14;
|
||||
// 消息来源
|
||||
uint32 msg_source = 15;
|
||||
// 如果msg.content有表情字符,则该参数需要置为1
|
||||
int32 new_face_version = 16;
|
||||
// 命中关键词信息
|
||||
KeyHitInfos key_hit_infos = 17;
|
||||
}
|
||||
|
||||
// 会话详情
|
||||
message SessionInfo {
|
||||
//
|
||||
@ -253,71 +318,14 @@ message SessionInfo {
|
||||
uint32 setting = 19;
|
||||
//
|
||||
uint32 is_guardian = 20;
|
||||
//
|
||||
int32 is_intercept = 21;
|
||||
//
|
||||
int32 is_trust = 22;
|
||||
//
|
||||
int32 system_msg_type = 23;
|
||||
//
|
||||
AccountInfo account_info = 24;
|
||||
//
|
||||
int32 live_status = 25;
|
||||
}
|
||||
|
||||
//
|
||||
message RelationLog {
|
||||
// 操作类型
|
||||
int32 log_type = 1;
|
||||
// 操作seqno
|
||||
uint64 oplog_seqno = 2;
|
||||
// 好友信息
|
||||
FriendRelation friend_relation = 3;
|
||||
// 群信息
|
||||
GroupRelation group_relation = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message FriendRelation {
|
||||
// 用户mid
|
||||
uint64 uid = 1;
|
||||
// 用户昵称
|
||||
string user_name = 2;
|
||||
// 头像url
|
||||
string face = 3;
|
||||
// vip类型
|
||||
// 0:无 1:月度大会员 2:年度大会员
|
||||
uint32 vip_level = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message ImgInfo{
|
||||
//
|
||||
string url = 1;
|
||||
//
|
||||
int32 width = 2;
|
||||
//
|
||||
int32 height = 3;
|
||||
//
|
||||
string imageType = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message GroupRelation {
|
||||
//
|
||||
uint64 group_id = 1;
|
||||
//
|
||||
uint64 owner_uid = 2;
|
||||
//
|
||||
uint32 group_type = 3;
|
||||
//
|
||||
uint32 group_level = 4;
|
||||
//
|
||||
string group_cover = 5;
|
||||
//
|
||||
string group_name = 6;
|
||||
//
|
||||
string group_notice = 7;
|
||||
//
|
||||
int32 status = 8;
|
||||
//
|
||||
int32 member_role = 9;
|
||||
//
|
||||
string fans_medal_name = 10;
|
||||
//
|
||||
uint64 room_id = 11;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
52
grpc_api/bilibili/live/app/room/v1/room.proto
Normal file
52
grpc_api/bilibili/live/app/room/v1/room.proto
Normal file
@ -0,0 +1,52 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.live.app.room.v1;
|
||||
|
||||
//
|
||||
message GetStudioListReq {
|
||||
//
|
||||
int64 room_id = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message GetStudioListResp {
|
||||
//
|
||||
message Pendants {
|
||||
//
|
||||
Pendant frame = 1;
|
||||
//
|
||||
Pendant badge = 2;
|
||||
}
|
||||
//
|
||||
message Pendant {
|
||||
//
|
||||
string name = 1;
|
||||
//
|
||||
int64 position = 2;
|
||||
//
|
||||
string value = 3;
|
||||
//
|
||||
string desc = 4;
|
||||
}
|
||||
//
|
||||
message StudioMaster {
|
||||
//
|
||||
int64 uid = 1;
|
||||
//
|
||||
int64 room_id = 2;
|
||||
//
|
||||
string uname = 3;
|
||||
//
|
||||
string face = 4;
|
||||
//
|
||||
Pendants pendants = 5;
|
||||
//
|
||||
string tag = 6;
|
||||
//
|
||||
int64 tag_type = 7;
|
||||
}
|
||||
//
|
||||
int64 status = 1;
|
||||
//
|
||||
repeated StudioMaster master_list = 2;
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.live.general.interfaces.v1;
|
||||
|
||||
//
|
||||
message GetOnlineRankReq {
|
||||
//
|
||||
int64 ruid = 1;
|
||||
//
|
||||
int64 room_id = 2;
|
||||
//
|
||||
int64 page = 3;
|
||||
//
|
||||
int64 page_size = 4;
|
||||
//
|
||||
string platform = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message GetOnlineRankResp {
|
||||
//
|
||||
message OnlineRankItem {
|
||||
//
|
||||
int64 uid = 1;
|
||||
//
|
||||
string uname = 2;
|
||||
//
|
||||
string face = 3;
|
||||
//
|
||||
int64 continue_watch = 4;
|
||||
//
|
||||
MedalInfo medal_info = 5;
|
||||
//
|
||||
int64 guard_level = 6;
|
||||
}
|
||||
//
|
||||
OnlineRankItem item = 1;
|
||||
//
|
||||
int64 online_num = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message MedalInfo {
|
||||
//
|
||||
int64 guard_level = 1;
|
||||
//
|
||||
int64 medal_color_start = 2;
|
||||
//
|
||||
int64 medal_color_end = 3;
|
||||
//
|
||||
int64 medal_color_border = 4;
|
||||
//
|
||||
string medal_name = 5;
|
||||
//
|
||||
int64 level = 6;
|
||||
//
|
||||
int64 target_id = 7;
|
||||
//
|
||||
int64 is_light = 8;
|
||||
}
|
||||
@ -12,6 +12,24 @@ service Echo {
|
||||
rpc Error(ErrorRequest) returns(ErrorResponse);
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorRequest {
|
||||
//
|
||||
int32 error = 2;
|
||||
//
|
||||
int64 time = 1;
|
||||
//
|
||||
int64 delay = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorResponse {
|
||||
//
|
||||
string host = 1;
|
||||
//
|
||||
int64 time = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message PingRequest {
|
||||
//
|
||||
@ -41,21 +59,3 @@ message SayResponse {
|
||||
//
|
||||
int64 time = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorRequest {
|
||||
//
|
||||
int32 error = 2;
|
||||
//
|
||||
int64 time = 1;
|
||||
//
|
||||
int64 delay = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorResponse {
|
||||
//
|
||||
string host = 1;
|
||||
//
|
||||
int64 time = 3;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -36,4 +36,6 @@ message Device {
|
||||
string version_name = 13;
|
||||
// 设备指纹, 不区分本地或远程设备指纹,作为推送目标的索引
|
||||
string fp = 14;
|
||||
//
|
||||
int64 fts = 15;
|
||||
}
|
||||
|
||||
@ -2,6 +2,15 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.metadata.fawkes;
|
||||
|
||||
//
|
||||
message FawkesReply {
|
||||
// 客户端在fawkes系统中对应的已发布最新的config版本号
|
||||
string config = 1;
|
||||
// 客户端在fawkes系统中对应的已发布最新的ff版本号
|
||||
string ff = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message FawkesReq {
|
||||
// 客户端在fawkes系统的唯一名
|
||||
string appkey = 1;
|
||||
@ -10,10 +19,3 @@ message FawkesReq {
|
||||
// 启动id
|
||||
string session_id = 3;
|
||||
}
|
||||
|
||||
message FawkesReply {
|
||||
// 客户端在fawkes系统中对应的已发布最新的config版本号
|
||||
string config = 1;
|
||||
// 客户端在fawkes系统中对应的已发布最新的ff版本号
|
||||
string ff = 2;
|
||||
}
|
||||
|
||||
@ -2,16 +2,6 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.metadata.locale;
|
||||
|
||||
// Defined by https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
|
||||
message LocaleIds {
|
||||
// A language designator is a code that represents a language.
|
||||
string language = 1;
|
||||
// Writing systems.
|
||||
string script = 2;
|
||||
// A region designator is a code that represents a country or an area.
|
||||
string region = 3;
|
||||
}
|
||||
|
||||
// 区域标识
|
||||
// gRPC头部:x-bili-locale-bin
|
||||
message Locale {
|
||||
@ -24,3 +14,13 @@ message Locale {
|
||||
// 时区
|
||||
string timezone = 4;
|
||||
}
|
||||
|
||||
// Defined by https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
|
||||
message LocaleIds {
|
||||
// A language designator is a code that represents a language.
|
||||
string language = 1;
|
||||
// Writing systems.
|
||||
string script = 2;
|
||||
// A region designator is a code that represents a country or an area.
|
||||
string region = 3;
|
||||
}
|
||||
|
||||
@ -2,6 +2,17 @@ syntax = "proto3";
|
||||
|
||||
package bilibili.metadata.network;
|
||||
|
||||
// 网络类型标识
|
||||
// gRPC头部:x-bili-network-bin
|
||||
message Network {
|
||||
// 网络类型
|
||||
NetworkType type = 1;
|
||||
// 免流类型
|
||||
TFType tf = 2;
|
||||
// 运营商
|
||||
string oid = 3;
|
||||
}
|
||||
|
||||
// 网络类型
|
||||
enum NetworkType {
|
||||
NT_UNKNOWN = 0; // 未知
|
||||
@ -22,14 +33,3 @@ enum TFType {
|
||||
T_CARD = 5; // 电信卡
|
||||
T_PKG = 6; // 电信包
|
||||
}
|
||||
|
||||
// 网络类型标识
|
||||
// gRPC头部:x-bili-network-bin
|
||||
message Network {
|
||||
// 网络类型
|
||||
NetworkType type = 1;
|
||||
// 免流类型
|
||||
TFType tf = 2;
|
||||
// 运营商
|
||||
string oid = 3;
|
||||
}
|
||||
|
||||
17
grpc_api/bilibili/metadata/parabox/pararbox.proto
Normal file
17
grpc_api/bilibili/metadata/parabox/pararbox.proto
Normal file
@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.metadata.parabox;
|
||||
|
||||
//
|
||||
message Exp {
|
||||
//
|
||||
int64 id = 1;
|
||||
//
|
||||
int32 bucket = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message Exps {
|
||||
//
|
||||
repeated Exp exps = 1;
|
||||
}
|
||||
@ -19,4 +19,6 @@ message Restriction {
|
||||
ModeType mode = 3;
|
||||
// app 审核review状态
|
||||
bool review = 4;
|
||||
//
|
||||
bool disable_rcmd = 5;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user