update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ 2022-06-21 01:20:46 +08:00
parent 7f679cc928
commit ab5518cbb2
7 changed files with 356 additions and 31 deletions

View File

@ -3,7 +3,7 @@ syntax = "proto3";
package bilibili.app.archive.v1; package bilibili.app.archive.v1;
// 稿 // 稿
message Arc{ message Arc {
// 稿avid // 稿avid
int64 aid = 1; int64 aid = 1;
// 稿P数 // 稿P数
@ -69,7 +69,7 @@ message Arc{
} }
// UP主信息 // UP主信息
message Author{ message Author {
// UP主mid // UP主mid
int64 mid = 1; int64 mid = 1;
// UP主昵称 // UP主昵称
@ -79,7 +79,7 @@ message Author{
} }
// //
message Dimension{ message Dimension {
// //
int64 width = 1; int64 width = 1;
// //
@ -90,7 +90,7 @@ message Dimension{
} }
// P信息 // P信息
message Page{ message Page {
// cid // cid
int64 cid = 1; int64 cid = 1;
// P序号 // P序号
@ -113,7 +113,7 @@ message Page{
} }
// 稿 // 稿
message Rights{ message Rights {
// //
int32 bp = 1; int32 bp = 1;
// //
@ -138,10 +138,14 @@ message Rights{
int32 ugc_pay_preview = 11; int32 ugc_pay_preview = 11;
// //
int32 no_background = 12; int32 no_background = 12;
//
int32 arc_pay = 13;
//
int32 pay_free_watch = 14;
} }
// //
message StaffInfo{ message StaffInfo {
// mid // mid
int64 mid = 1; int64 mid = 1;
// //
@ -152,7 +156,7 @@ message StaffInfo{
} }
// //
message Stat{ message Stat {
// 稿avid // 稿avid
int64 aid = 1; int64 aid = 1;
// //

View File

@ -6,16 +6,15 @@ package bilibili.app.playeronline.v1;
service PlayerOnline { service PlayerOnline {
// 线 // 线
rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply); rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply);
//
rpc PremiereInfo(PremiereInfoReq) returns (PremiereInfoReply);
//
rpc ReportWatch(ReportWatchReq) returns (NoReply);
} }
// 线- //
message PlayerOnlineReq { message NoReply {
// 稿 avid
int64 aid = 1;
// cid
int64 cid = 2;
//
bool play_open = 3;
} }
// 线- // 线-
@ -30,4 +29,44 @@ message PlayerOnlineReply {
bool sdm_show = 4; bool sdm_show = 4;
// //
string sdm_text = 5; string sdm_text = 5;
//
int64 total_number = 6;
//
string total_number_text = 7;
}
// 线-
message PlayerOnlineReq {
// 稿 avid
int64 aid = 1;
// cid
int64 cid = 2;
//
bool play_open = 3;
}
//
message PremiereInfoReply {
//
string premiere_over_text = 1;
//
int64 participant = 2;
//
int64 interaction = 3;
}
//
message PremiereInfoReq {
//
int64 aid = 1;
}
//
message ReportWatchReq {
//
int64 aid = 1;
//
string biz = 2;
//
string buvid = 3;
} }

View File

@ -48,6 +48,18 @@ message Chronos {
string file = 2; string file = 2;
} }
//
message ButtonStyle {
//
string text = 1;
//
string text_color = 2;
//
string bg_color = 3;
//
string jump_link = 4;
}
// //
message CloudConf { message CloudConf {
// //
@ -65,6 +77,7 @@ enum CodeType {
NOCODE = 0; // NOCODE = 0; //
CODE264 = 1; // H.264 CODE264 = 1; // H.264
CODE265 = 2; // H.265 CODE265 = 2; // H.265
CODEAV1 = 3; // av1
} }
// //
@ -129,6 +142,8 @@ message DashItem {
uint64 size = 7; uint64 size = 7;
// //
string frame_rate = 8; string frame_rate = 8;
//
string widevine_pssh = 9;
} }
// dash视频流 // dash视频流
@ -155,6 +170,8 @@ message DashVideo {
int32 width = 10; int32 width = 10;
// //
int32 height = 11; int32 height = 11;
//
string widevine_pssh = 12;
} }
// //
@ -333,6 +350,24 @@ enum PlayErr {
WithMultiDeviceLoginErr = 1; // WithMultiDeviceLoginErr = 1; //
} }
//
message PlayLimit {
//
PlayLimitCode code = 1;
//
string message = 2;
//
string sub_message = 3;
//
ButtonStyle button = 4;
}
//
enum PlayLimitCode {
PLCUnkown = 0; //
PLCUgcNotPayed = 1; //
}
// - // -
message PlayURLReply { message PlayURLReply {
// //
@ -405,6 +440,8 @@ message PlayViewReply {
Event event = 6; Event event = 6;
// //
AB ab = 7; AB ab = 7;
//
PlayLimit play_limit = 8;
} }
// - // -
@ -575,7 +612,6 @@ message UpgradeButton {
string link = 2; string link = 2;
} }
// //
message UpgradeLimit { message UpgradeLimit {
// //

View File

@ -12,6 +12,16 @@ service Topic {
rpc TopicDetailsAll(TopicDetailsAllReq) returns (TopicDetailsAllReply); rpc TopicDetailsAll(TopicDetailsAllReq) returns (TopicDetailsAllReply);
// //
rpc TopicDetailsFold(TopicDetailsFoldReq) returns (TopicDetailsFoldReply); rpc TopicDetailsFold(TopicDetailsFoldReq) returns (TopicDetailsFoldReply);
//
rpc TopicSetDetails(TopicSetDetailsReq) returns (TopicSetDetailsReply);
}
//
message ButtonMeta {
//
string text = 1;
//
string icon = 2;
} }
// //
@ -32,6 +42,14 @@ message DetailsTopInfo {
string head_img_backcolor = 7; string head_img_backcolor = 7;
// //
int32 word_color = 8; int32 word_color = 8;
//
int32 mission_page_show_type = 9;
//
string mission_url = 10;
//
string mission_text = 11;
//
TopicSet topic_set = 12;
} }
// //
@ -154,6 +172,18 @@ message OperationContent {
OperationCard operation_card = 1; OperationCard operation_card = 1;
} }
//
message PubLayer {
//
int32 show_type = 1;
//
string jump_link = 2;
//
ButtonMeta button_meta = 3;
//
bool close_pub_layer_entry = 4;
}
// //
message RelationData { message RelationData {
// //
@ -194,6 +224,30 @@ message ThreePointItem {
string jump_url = 2; string jump_url = 2;
} }
//
message TimeLineEvents {
//
int64 event_id = 1;
//
string title = 2;
//
string time_desc = 3;
//
string jump_link = 4;
}
//
message TimeLineResource {
//
int64 time_line_id = 1;
//
string time_line_title = 2;
//
repeated TimeLineEvents time_line_events = 3;
//
bool has_more = 4;
}
// //
message TopicActivities { message TopicActivities {
// //
@ -232,6 +286,8 @@ message TopicCardItem {
bilibili.app.dynamic.v2.DynamicItem dynamic_item = 2; bilibili.app.dynamic.v2.DynamicItem dynamic_item = 2;
// //
FoldCardItem ford_card_item = 3; FoldCardItem ford_card_item = 3;
//
VideoSmallCardItem video_small_card_item = 4;
} }
// //
@ -248,9 +304,10 @@ message TopicCardList {
// //
enum TopicCardType { enum TopicCardType {
ILLEGAL_TYPE = 0; // ILLEGAL_TYPE = 0; //
DYNAMIC = 1; // DYNAMIC = 1; //
FOLD = 2; // FOLD = 2; //
VIDEO_SMALL_CARD = 3; //
} }
// //
@ -263,6 +320,12 @@ message TopicDetailsAllReply {
TopicCardList topic_card_list = 3; TopicCardList topic_card_list = 3;
// //
FunctionalCard functional_card = 4; FunctionalCard functional_card = 4;
//
PubLayer pub_layer = 5;
//
TimeLineResource time_line_resource = 6;
//
TopicServerConfig topic_server_config = 7;
} }
// //
@ -283,6 +346,14 @@ message TopicDetailsAllReq {
int32 need_refresh = 7; int32 need_refresh = 7;
// //
string source = 8; string source = 8;
//
int32 topic_details_ext_mode = 9;
}
//
enum TopicDetailsExtMode {
MODE_ILLEGAL_TYPE = 0; //
STORY = 1; //
} }
// //
@ -347,6 +418,87 @@ message TopicInfo {
string share_url = 17; string share_url = 17;
// //
bool is_like = 18; bool is_like = 18;
//
int32 type = 19;
//
string stats_desc = 20;
//
string fixed_topic_icon = 21;
}
//
message TopicServerConfig {
//
int64 pub_events_increase_threshold = 1;
//
int64 pub_events_hidden_timeout_threshold = 2;
//
int64 vert_online_refresh_time = 3;
}
//
message TopicSet {
//
int64 set_id = 1;
//
string set_name = 2;
//
string jump_url = 3;
//
string desc = 4;
}
//
message TopicSetDetailsReply {
//
TopicSetHeadInfo topic_set_head_info = 1;
//
repeated TopicInfo topic_info = 2;
//
bool has_more = 3;
//
string offset = 4;
//
TopicSetSortCfg sort_cfg = 5;
}
//
message TopicSetDetailsReq {
//
int64 set_id = 1;
//
int64 sort_by = 2;
//
string offset = 3;
//
int32 page_size = 4;
}
message TopicSetHeadInfo {
//
TopicSet topic_set = 1;
//
string topic_cnt_text = 2;
//
string head_img_url = 3;
//
string mission_url = 4;
//
string mission_text = 5;
//
string icon_url = 6;
//
bool is_fav = 7;
//
bool is_first_time = 8;
}
//
message TopicSetSortCfg {
//
int64 default_sort_by = 1;
//
repeated SortContent all_sort_by = 2;
} }
// //
@ -394,3 +546,35 @@ message User {
// //
string name_desc = 4; string name_desc = 4;
} }
//
message VideoCardBase {
//
string cover = 1;
//
string title = 2;
//
string up_name = 3;
//
int64 play = 4;
//
string jump_link = 5;
//
int64 aid = 6;
}
//
message VideoSmallCardItem {
//
VideoCardBase video_card_base = 1;
//
string cover_left_badge_text = 2;
//
int64 card_stat_icon1 = 3;
//
string card_stat_text1 = 4;
//
int64 card_stat_icon2 = 5;
//
string card_stat_text2 = 6;
}

View File

@ -8,16 +8,6 @@ service Wall {
rpc RuleInfo (RuleRequest) returns (RulesReply); rpc RuleInfo (RuleRequest) returns (RulesReply);
} }
// -
message RuleRequest {}
// -
message RulesReply {
// ISP的免流规则信息组
// ISP如: cu ct cm
map<string,RulesInfo> rulesInfo = 1;
}
// //
message RuleInfo { message RuleInfo {
// //
@ -29,10 +19,29 @@ message RuleInfo {
string a = 3; string a = 3;
// //
string p = 4; string p = 4;
//
repeated string a_backup = 5;
}
// -
message RuleRequest {
} }
// //
message RulesInfo { message RulesInfo {
// //
repeated RuleInfo rulesInfo = 1; repeated RuleInfo rulesInfo = 1;
} }
// -
message RulesReply {
// ISP的免流规则信息组
// ISP如: cu ct cm
map<string,RulesInfo> rulesInfo = 1;
//
string hash_value = 2;
}

View File

@ -24,7 +24,7 @@ message DeviceAppList {
} }
// //
enum EncryptType{ enum EncryptType {
INVALID_ENCRYPT_TYPE = 0; // INVALID_ENCRYPT_TYPE = 0; //
CLIENT_AES = 1; // AES加密私钥 CLIENT_AES = 1; // AES加密私钥
SERVER_RSA_AES = 2; // AES加密的私钥RSA公钥来加密 SERVER_RSA_AES = 2; // AES加密的私钥RSA公钥来加密

View File

@ -332,6 +332,26 @@ message MainListReq {
// //
message Member { message Member {
//
message Region {
//
int32 type = 1;
//
string icon = 2;
//
int32 show_status = 3;
}
//
message NftInteraction {
//
string itype = 1;
//
string metadata_url = 2;
//
string nft_id = 3;
//
Region region = 4;
}
/**********基础信息**********/ /**********基础信息**********/
// mid // mid
int64 mid = 1; int64 mid = 1;
@ -402,6 +422,12 @@ message Member {
int32 face_nft_new = 31; int32 face_nft_new = 31;
// //
int32 is_senior_member = 32; int32 is_senior_member = 32;
//
NftInteraction nft_interaction = 33;
//
string fans_guard_icon = 34;
//
string fans_honor_icon = 35;
} }
// //
@ -436,6 +462,8 @@ message Operation {
string link = 5; string link = 5;
// //
string report_extra = 6; string report_extra = 6;
//
string icon = 7;
} }
// //
@ -587,6 +615,8 @@ message ReplyControl {
string time_desc = 23; string time_desc = 23;
// //
string biz_scene = 24; string biz_scene = 24;
//
string location = 25;
} }
// //
@ -871,6 +901,19 @@ message UpSelection {
// //
message Url { message Url {
//
message Extra {
//
int64 goods_item_id = 1;
//
string goods_prefetched_cache = 2;
//
int32 goods_show_type = 3;
//
bool is_word_search = 4;
//
int64 goods_cm_control = 5;
}
// //
string title = 1; string title = 1;
// //
@ -889,6 +932,16 @@ message Url {
bool is_half_screen = 8; bool is_half_screen = 8;
// //
string exposure_report = 9; string exposure_report = 9;
//
Extra extra = 10;
//
bool underline = 11;
//
bool match_once = 12;
//
string pc_url = 13;
//
int32 icon_position = 14;
} }
// //