update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ 2022-02-02 20:25:16 +08:00
parent 57f264f996
commit c14f8c455e
14 changed files with 1492 additions and 846 deletions

View File

@ -5,7 +5,7 @@ package bilibili.app.playeronline.v1;
// 线 // 线
service PlayerOnline { service PlayerOnline {
// 线 // 线
rpc GetPlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply); rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply);
} }
// 线- // 线-

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package bilibili.dynamic.interfaces.feed.v1; package bilibili.main.dynamic.feed.v1;
import "bilibili/dynamic/common.proto"; import "bilibili/dynamic/common.proto";

View File

@ -4,18 +4,16 @@ package bilibili.im.interfaces.v1;
import "bilibili/im/type/im.proto"; import "bilibili/im/type/im.proto";
// //
service ImInterface { service ImInterface {
// //
rpc SendMsg (ReqSendMsg) returns (RspSendMsg); rpc SendMsg (ReqSendMsg) returns (RspSendMsg);
// //
rpc SyncRelation (ReqRelationSync) returns (RspRelationSync); rpc SyncRelation (ReqRelationSync) returns (RspRelationSync);
// //
rpc SyncAck (ReqSyncAck) returns (RspSyncAck); rpc SyncAck (ReqSyncAck) returns (RspSyncAck);
// //
rpc SyncFetchSessionMsgs (ReqSessionMsg) returns (RspSessionMsg); rpc SyncFetchSessionMsgs (ReqSessionMsg) returns (RspSessionMsg);
// //
rpc GetSessions (ReqGetSessions) returns (RspSessions); rpc GetSessions (ReqGetSessions) returns (RspSessions);
// //
@ -46,25 +44,46 @@ service ImInterface {
rpc BatchRmSessions (ReqBatRmSess) returns (DummyRsp); rpc BatchRmSessions (ReqBatRmSess) returns (DummyRsp);
// //
rpc ShareList (ReqShareList) returns (RspShareList); rpc ShareList (ReqShareList) returns (RspShareList);
// //
rpc SpecificSingleUnread (ReqSpecificSingleUnread) returns (RspSpecificSingleUnread); rpc SpecificSingleUnread (ReqSpecificSingleUnread) returns (RspSpecificSingleUnread);
// //
rpc GetSpecificSessions (ReqGetSpecificSessions) returns (RspSessions); 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 { message DummyReq {
//
bilibili.im.type.Msg msg = 1;
// //
string cookie = 2; uint32 idl = 1;
// }
string cookie2 = 3;
// //
int32 error_code = 4; message DummyRsp {
// reserved 1;
string dev_id = 5; }
//
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; string gif_url = 4;
} }
// - //
message RspSendMsg { message MsgDetail {
// //
uint64 msg_key = 1; int64 msg_key = 1;
//
repeated EmotionInfo e_infos = 2;
// //
string msg_content = 3; int64 seqno = 2;
//
bilibili.im.type.KeyHitInfos key_hit_infos = 4;
} }
// - //
message ReqRelationSync { message MsgFeedUnreadRsp {
// seqno //
uint64 client_relation_oplog_seqno = 1; map<string, int64> unread = 1;
} }
// - // -
message RspRelationSync { message ReqAckAssisMsg {
// //
int32 full = 1; uint64 ack_seqno = 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 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; int32 session_type = 2;
// //
uint64 end_seqno = 3; repeated MsgDetail msg_detail = 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;
} }
// - // -
@ -175,6 +171,28 @@ message ReqGetSessions {
uint32 lessons_mode = 9; 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 { message ReqNewSessions {
// //
@ -187,47 +205,10 @@ message ReqNewSessions {
uint32 lessons_mode = 4; uint32 lessons_mode = 4;
} }
// - // -
message ReqAckSessions { message ReqRelationSync {
// // seqno
uint64 begin_ts = 1; uint64 client_relation_oplog_seqno = 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为空时10
int32 is_address_list_empty = 4;
}
// -
message ReqUpdateAck {
// uidid或者为群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;
} }
// - // -
@ -238,104 +219,18 @@ message ReqRemoveSession {
uint32 session_type = 2; uint32 session_type = 2;
} }
// // -
message DummyRsp { message ReqSendMsg {
reserved 1; //
} bilibili.im.type.Msg msg = 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 {
// //
uint32 unread_type = 1; string cookie = 2;
// //
uint32 show_unfollow_list = 2; string cookie2 = 3;
}
// -
message RspSingleUnread {
//
uint64 unfollow_unread = 1;
//
uint64 follow_unread = 2;
//
uint32 unfollow_push_msg = 3;
}
//
message SimpleSession {
// uidid或者为群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 {
// //
uint32 idl = 1; int32 error_code = 4;
}
// -
message RspMyGroupUnread {
//
uint32 unread_count = 1;
}
// -
message ReqGroupAssisMsg {
// //
uint64 client_seqno = 1; string dev_id = 5;
//
uint32 size = 2;
}
// -
message ReqAckAssisMsg {
//
uint64 ack_seqno = 1;
} }
// - // -
@ -354,19 +249,287 @@ message ReqSessionDetails {
repeated ReqSessionDetail sess_ids = 1; 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 {
// uidid或者为群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 { message RspSessionDetails {
// //
repeated bilibili.im.type.SessionInfo sess_infos = 1; 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 { message RspSessions {
// 20 //
int32 size = 1; repeated bilibili.im.type.SessionInfo session_list = 1;
//
uint32 has_more = 2;
//
bool anti_disturb_cleaning = 3;
// session_list为空时10
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; int32 official_type = 4;
} }
// - //
message RspShareList { message SimpleSession {
// // uidid或者为群id
repeated ShareSessionInfo session_list = 1; uint64 talker_id = 1;
// //
int32 IsAddressListEmpty = 2; uint32 session_type = 2;
} }
//
message SysMsgInterfaceLastMsgRsp {
//
int32 unread = 1;
//
string title = 2;
//
string time = 3;
//
int64 id = 4;
}

View File

@ -3,23 +3,11 @@ syntax = "proto3";
package bilibili.im.type; 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; string pic_url = 2;
}
//
enum RecverType{
//
EN_NO_MEANING = 0;
//
EN_RECVER_TYPE_PEER = 1;
//
EN_RECVER_TYPE_GROUP = 2;
//
EN_RECVER_TYPE_PEERS = 3;
} }
// //
@ -53,15 +41,122 @@ enum CmdId {
} }
// //
enum RelationLogType { enum ENUM_BIZ_MSG_TYPE {
EN_INVALID_LOG_TYPE = 0; // BIZ_MSG_TYPE_NORMAL = 0; //
EN_ADD_FRIEND = 1; // BIZ_MSG_TYPE_CARD_VIDEO = 1; //
EN_REMOVE_FRIEND = 2; //
EN_JOIN_GROUP = 3; //
EN_EXIT_GROUP = 4; // 退
} }
// //
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;
// ps2index=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 { enum MsgSource {
EN_MSG_SOURCE_UNKONW = 0; // EN_MSG_SOURCE_UNKONW = 0; //
EN_MSG_SOURCE_IOS = 1; // EN_MSG_SOURCE_IOS = 1; //
@ -78,7 +173,7 @@ enum MsgSource {
EN_MSG_SOURCE_VC_ATTACH_MSG = 12; // EN_MSG_SOURCE_VC_ATTACH_MSG = 12; //
}; };
// //
enum MsgType { enum MsgType {
// //
EN_INVALID_MSG_TYPE = 0; // ~ EN_INVALID_MSG_TYPE = 0; // ~
@ -143,6 +238,35 @@ enum MsgType {
EN_MSG_TYPE_CHAT_POPUP_SESSION = 306; // 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 { enum SESSION_TYPE {
INVALID_SESSION_TYPE = 0; // INVALID_SESSION_TYPE = 0; //
@ -152,65 +276,6 @@ enum SESSION_TYPE {
ALL_SESSION = 4; // ALL_SESSION = 4; //
} }
//
message HighText {
//
string title = 1;
//
string url = 2;
// ps2index=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 { message SessionInfo {
// //
@ -253,71 +318,14 @@ message SessionInfo {
uint32 setting = 19; uint32 setting = 19;
// //
uint32 is_guardian = 20; 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;
}

View 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;
}

View File

@ -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;
}

View File

@ -12,6 +12,24 @@ service Echo {
rpc Error(ErrorRequest) returns(ErrorResponse); 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 { message PingRequest {
// //
@ -41,21 +59,3 @@ message SayResponse {
// //
int64 time = 3; 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

View File

@ -36,4 +36,6 @@ message Device {
string version_name = 13; string version_name = 13;
// , // ,
string fp = 14; string fp = 14;
//
int64 fts = 15;
} }

View File

@ -2,6 +2,15 @@ syntax = "proto3";
package bilibili.metadata.fawkes; package bilibili.metadata.fawkes;
//
message FawkesReply {
// fawkes系统中对应的已发布最新的config版本号
string config = 1;
// fawkes系统中对应的已发布最新的ff版本号
string ff = 2;
}
//
message FawkesReq { message FawkesReq {
// fawkes系统的唯一名 // fawkes系统的唯一名
string appkey = 1; string appkey = 1;
@ -10,10 +19,3 @@ message FawkesReq {
// id // id
string session_id = 3; string session_id = 3;
} }
message FawkesReply {
// fawkes系统中对应的已发布最新的config版本号
string config = 1;
// fawkes系统中对应的已发布最新的ff版本号
string ff = 2;
}

View File

@ -2,16 +2,6 @@ syntax = "proto3";
package bilibili.metadata.locale; 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 // gRPC头部:x-bili-locale-bin
message Locale { message Locale {
@ -24,3 +14,13 @@ message Locale {
// //
string timezone = 4; 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;
}

View File

@ -2,6 +2,17 @@ syntax = "proto3";
package bilibili.metadata.network; package bilibili.metadata.network;
//
// gRPC头部:x-bili-network-bin
message Network {
//
NetworkType type = 1;
//
TFType tf = 2;
//
string oid = 3;
}
// //
enum NetworkType { enum NetworkType {
NT_UNKNOWN = 0; // NT_UNKNOWN = 0; //
@ -22,14 +33,3 @@ enum TFType {
T_CARD = 5; // T_CARD = 5; //
T_PKG = 6; // T_PKG = 6; //
} }
//
// gRPC头部:x-bili-network-bin
message Network {
//
NetworkType type = 1;
//
TFType tf = 2;
//
string oid = 3;
}

View 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;
}

View File

@ -19,4 +19,6 @@ message Restriction {
ModeType mode = 3; ModeType mode = 3;
// app review状态 // app review状态
bool review = 4; bool review = 4;
//
bool disable_rcmd = 5;
} }