update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ 2022-06-22 00:34:19 +08:00
parent ab5518cbb2
commit 3c8dfc6d61
5 changed files with 1630 additions and 1136 deletions

View File

@ -27,5 +27,7 @@ message Card {
PopularTopEntrance popular_top_entrance = 9;
//
RcmdOneItem rcmd_one_item = 10;
//
SmallCoverV5Ad small_cover_v5_ad = 11;
}
}

View File

@ -4,6 +4,50 @@ package bilibili.app.card.v1;
import "bilibili/app/card/v1/ad.proto";
//
message Args {
//
int32 type = 1;
//
int64 up_id = 2;
//
string up_name = 3;
//
int32 rid = 4;
//
string rname = 5;
//
int64 tid = 6;
//
string tname = 7;
//
string track_id = 8;
//
string state = 9;
//
int32 converge_type = 10;
//
int64 aid = 11;
}
//
message Avatar {
//
string cover = 1;
//
string text = 2;
//
string uri = 3;
//
int32 type = 4;
//
string event = 5;
//
string event_v2 = 6;
//
int32 defalut_cover = 7;
}
//
message Base {
//
@ -44,6 +88,8 @@ message Base {
Button desc_button = 17;
// v4
ThreePointV4 three_point_v4 = 18;
//
UpArgs up_args = 19;
}
//
@ -66,16 +112,6 @@ message Button {
Relation relation = 8;
}
//
message ThreePoint {
//
repeated DislikeReason dislike_reasons = 1;
//
repeated DislikeReason feedbacks = 2;
//
int32 watch_later = 3;
}
//
message DislikeReason {
//
@ -85,29 +121,27 @@ message DislikeReason {
}
//
message Args {
message LikeButton {
//
int32 type = 1;
int64 Aid = 1;
//
int64 up_id = 2;
int32 count = 2;
//
string up_name = 3;
bool show_count = 3;
//
int32 rid = 4;
string event = 4;
//
string rname = 5;
int32 selected = 5;
//
int64 tid = 6;
string event_v2 = 6;
}
//
message Mask {
//
string tname = 7;
Avatar avatar = 1;
//
string track_id = 8;
//
string state = 9;
//
int32 converge_type = 10;
//
int64 aid = 11;
Button button = 2;
}
//
@ -134,30 +168,89 @@ message PlayerArgs {
int64 season_id = 11;
}
//
message Mask {
//
message ReasonStyle {
//
string text = 1;
//
string text_color = 2;
//
string bg_color = 3;
//
string border_color = 4;
// url
string icon_url = 5;
// -
string text_color_night = 6;
// -
string bg_color_night = 7;
// -
string border_color_night = 8;
// url-
string icon_night_url = 9;
// id
// 1: 2:
int32 bg_style = 10;
//
Avatar avatar = 1;
string uri = 11;
//
Button button = 2;
string icon_bg_url = 12;
//
string event = 13;
//
string event_v2 = 14;
//
int32 right_icon_type = 15;
//
string left_icon_type = 16;
}
//
message Relation {
//
int32 status = 1;
//
int32 is_follow = 2;
//
int32 is_followed = 3;
}
//
message SharePlane {
//
string title = 1;
//
string share_subtitle = 2;
//
string desc = 3;
// url
string cover = 4;
// 稿avid
int64 aid = 5;
// 稿bvid
string bvid = 6;
//
map<string,bool> share_to = 7;
// UP主昵称
string author = 8;
// UP主mid
int64 author_id = 9;
//
string short_link = 10;
//
string play_number = 11;
//
int64 first_cid = 12;
}
//
message Avatar {
message ThreePoint {
//
string cover = 1;
repeated DislikeReason dislike_reasons = 1;
//
string text = 2;
//
string uri = 3;
//
int32 type = 4;
//
string event = 5;
//
string event_v2 = 6;
//
int32 defalut_cover = 7;
repeated DislikeReason feedbacks = 2;
//
int32 watch_later = 3;
}
//
@ -208,93 +301,6 @@ message ThreePointV4 {
WatchLater watch_later = 2;
}
//
message SharePlane {
//
string title = 1;
//
string share_subtitle = 2;
//
string desc = 3;
// url
string cover = 4;
// 稿avid
int64 aid = 5;
// 稿bvid
string bvid = 6;
//
map<string,bool> share_to = 7;
// UP主昵称
string author = 8;
// UP主mid
int64 author_id = 9;
//
string short_link = 10;
//
string play_number = 11;
}
//
message WatchLater {
// 稿avid
int64 aid = 1;
// 稿bvid
string bvid = 2;
}
//
message ReasonStyle {
//
string text = 1;
//
string text_color = 2;
//
string bg_color = 3;
//
string border_color = 4;
// url
string icon_url = 5;
// -
string text_color_night = 6;
// -
string bg_color_night = 7;
// -
string border_color_night = 8;
// url-
string icon_night_url = 9;
// id
// 1: 2:
int32 bg_style = 10;
//
string uri = 11;
//
string icon_bg_url = 12;
//
string event = 13;
//
string event_v2 = 14;
//
int32 right_icon_type = 15;
//
string left_icon_type = 16;
}
//
message LikeButton {
//
int64 Aid = 1;
//
int32 count = 2;
//
bool show_count = 3;
//
string event = 4;
//
int32 selected = 5;
//
string event_v2 = 6;
}
//
message Up {
//
@ -313,12 +319,22 @@ message Up {
string cooperation = 7;
}
//
message Relation {
//
int32 status = 1;
//
int32 is_follow = 2;
//
int32 is_followed = 3;
//
message UpArgs {
//
int64 up_id = 1;
//
string up_name = 2;
//
string up_face = 3;
//
int64 selected = 4;
}
//
message WatchLater {
// 稿avid
int64 aid = 1;
// 稿bvid
string bvid = 2;
}

View File

@ -30,6 +30,42 @@ message SmallCoverV5 {
int32 right_icon_2 = 11;
//
ReasonStyle left_corner_mark_style = 12;
//
string cover_right_text_content_description = 13;
//
string right_desc1_content_description = 14;
}
//
message SmallCoverV5Ad {
//
Base base = 1;
//
string cover_gif = 2;
//
Up up = 3;
//
string cover_right_text1 = 4;
//
string right_desc1 = 5;
//
string right_desc2 = 6;
//
ReasonStyle rcmd_reason_style = 7;
//
HotwordEntrance hotword_entrance = 8;
//
ReasonStyle corner_mark_style = 9;
//
int32 right_icon1 = 10;
//
int32 right_icon2 = 11;
//
ReasonStyle left_corner_mark_style = 12;
//
string cover_right_text_content_description = 13;
//
string right_desc1_content_description = 14;
}
//
@ -157,6 +193,10 @@ message SmallCoverRcmdItem {
int32 rightIcon1 = 10;
// 2id
int32 rightIcon2 = 11;
//
string cover_right_text_content_description = 12;
//
string right_desc1_content_description = 13;
}
//
@ -310,4 +350,4 @@ message Bubble {
int32 version = 2;
//
int64 stime = 3;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,8 @@ package bilibili.app.listener.v1;
import "google/protobuf/empty.proto";
import "bilibili/app/archive/middleware/v1/preload.proto";
import "bilibili/app/interfaces/v1/history.proto";
import "bilibili/app/playurl/v1/playurl.proto";
//
service Listener {
@ -55,6 +57,28 @@ service Listener {
rpc PickFeed (PickFeedReq) returns (PickFeedResp);
//
rpc PickCardDetail (PickCardDetailReq) returns (PickCardDetailResp);
//
rpc Medialist(MedialistReq) returns (MedialistResp);
//
rpc Event(EventReq) returns (EventResp);
}
//
service Music {
//
rpc FavTabShow(FavTabShowReq) returns (FavTabShowResp);
//
rpc MainFavMusicSubTabList(MainFavMusicSubTabListReq) returns (MainFavMusicSubTabListResp);
//
rpc MainFavMusicMenuList(MainFavMusicMenuListReq) returns (MainFavMusicMenuListResp);
//
rpc MenuEdit(MenuEditReq) returns (MenuEditResp);
//
rpc MenuDelete(MenuDeleteReq) returns (MenuDeleteResp);
//
rpc MenuSubscribe(MenuSubscribeReq) returns (MenuSubscribeResp);
//
rpc Click(ClickReq) returns (ClickResp);
}
//
@ -173,6 +197,19 @@ enum CardModuleType {
Module_cbtn = 3;
}
//
message ClickReq {
//
int64 sid = 1;
//
int32 action = 2;
}
//
message ClickResp {
}
//
message CoinAddReq {
//
@ -243,6 +280,29 @@ message DetailItem {
string message = 9;
//
map<int64,PlayInfo> player_info = 10;
//
PlayItem associated_item = 11;
//
int64 last_play_time = 12;
//
string history_tag = 13;
//
bilibili.app.interfaces.v1.DeviceType device_type = 14;
//
FavFolder ugc_season_info = 15;
}
//
message EventReq {
//
int32 event_type = 1;
//
PlayItem item = 2;
}
//
message EventResp {
}
//
@ -257,6 +317,8 @@ message EventTracking {
string entity_type = 4;
//
string entity_id = 5;
//
string track_json = 6;
}
//
@ -533,6 +595,18 @@ message FavoredInAnyFoldersResp {
PlayItem item = 2;
}
//
message FavTabShowReq {
//
int64 mid = 1;
}
//
message FavTabShowResp {
//
bool show_menu = 1;
}
//
message FollowRelation {
//
@ -553,6 +627,219 @@ message FormatDescription {
string superscript = 5;
}
//
enum ListOrder {
NO_ORDER = 0; //
ORDER_NORMAL = 1; //
ORDER_REVERSE = 2; //
ORDER_RANDOM = 3; //
}
//
enum ListSortField {
NO_SORT = 0; //
SORT_CTIME = 1; //
SORT_VIEWCNT = 2; //
SORT_FAVCNT = 3; //
}
//
message MainFavMusicMenuListReq {
//
int32 tab_type = 1;
//
string offset = 2;
}
//
message MainFavMusicMenuListResp {
//
int32 tab_type = 1;
//
repeated MusicMenu menu_list = 2;
//
bool has_more = 3;
//
string offset = 4;
}
//
message MainFavMusicSubTabListReq {
}
//
message MainFavMusicSubTabListResp {
//
repeated MusicSubTab tabs = 1;
//
MainFavMusicMenuListResp default_tab_res = 2;
//
map<int32, MainFavMusicMenuListResp> first_page_res = 3;
}
//
message MedialistItem {
//
PlayItem item = 1;
//
string title = 2;
//
string cover = 3;
//
int64 duration = 4;
//
int32 parts = 5;
//
int64 up_mid = 6;
//
string up_name = 7;
//
int32 state = 8;
//
string message = 9;
//
int64 stat_view = 10;
//
int64 stat_reply = 11;
}
//
message MedialistReq {
//
int64 list_type = 1;
//
int64 biz_id = 2;
//
string offset = 3;
}
//
message MedialistResp {
//
int64 total = 1;
//
bool has_more = 2;
//
string offset = 3;
//
repeated MedialistItem items = 4;
//
MedialistUpInfo up_info = 5;
}
//
message MedialistUpInfo {
//
int64 mid = 1;
//
string avatar = 2;
//
int64 fans = 3;
//
string name = 4;
}
//
message MenuDeleteReq {
//
int64 id = 1;
}
//
message MenuDeleteResp {
//
string message = 1;
}
//
message MenuEditReq {
//
int64 id = 1;
//
string title = 2;
//
string desc = 3;
//
int32 is_public = 4;
}
//
message MenuEditResp {
//
string message = 1;
}
//
message MenuSubscribeReq {
//
int32 action = 1;
//
int64 target_id = 2;
}
//
message MenuSubscribeResp {
//
string message = 1;
}
//
message MusicMenu {
//
int64 id = 1;
//
int32 menu_type = 2;
//
string title = 3;
//
string desc = 4;
//
string cover = 5;
//
MusicMenuAuthor owner = 6;
//
int32 state = 7;
//
int64 attr = 8;
//
MusicMenuStat stat = 9;
//
int64 total = 10;
//
int64 ctime = 11;
//
string uri = 12;
}
//
message MusicMenuAuthor {
//
int64 mid = 1;
//
string name = 2;
//
string avatar = 3;
}
//
message MusicMenuStat {
//
int64 play = 1;
//
int64 reply = 2;
}
//
message MusicSubTab {
//
string name = 1;
//
int32 tab_type = 2;
//
int64 total = 3;
}
//
message PageOption {
//
@ -677,6 +964,8 @@ message PkcmHeader {
message PlayActionReportReq {
//
PlayItem item = 1;
//
string from_spmid = 2;
}
//
@ -711,7 +1000,10 @@ message PlayHistoryDelReq {
//
message PlayHistoryReq {
//
PageOption page_opt = 1;
//
int64 local_today_zero = 2;
}
//
@ -751,6 +1043,10 @@ message PlayInfo {
int32 code = 11;
//
string message = 12;
//
int64 expire_time = 13;
//
bilibili.app.playurl.v1.VolumeInfo volume = 14;
}
//
@ -801,6 +1097,8 @@ message PlaylistReq {
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5;
//
int64 extra_id = 6;
//
SortOption sort_opt = 7;
}
//
@ -821,14 +1119,15 @@ message PlaylistResp {
//
enum PlaylistSource {
DEFAULT = 0;
MEM_SPACE = 1;
AUDIO_COLLECTION = 2;
AUDIO_CARD = 3;
USER_FAVOURITE = 4;
UP_ARCHIVE = 5;
AUDIO_CACHE = 6;
PICK_CARD = 7;
DEFAULT = 0; //
MEM_SPACE = 1; //
AUDIO_COLLECTION = 2; //
AUDIO_CARD = 3; //
USER_FAVOURITE = 4; //
UP_ARCHIVE = 5; //
AUDIO_CACHE = 6; //
PICK_CARD = 7; //
MEDIA_LIST = 8; //
}
//
@ -865,6 +1164,10 @@ message RcmdPlaylistReq {
int64 id = 2;
//
bool need_history = 3;
//
bool need_top_cards = 4;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5;
}
//
@ -873,6 +1176,8 @@ message RcmdPlaylistResp {
repeated DetailItem list = 1;
//
int64 history_len = 2;
//
repeated TopCard top_cards = 3;
}
//
@ -895,6 +1200,14 @@ message ResponseUrl {
string md5 = 8;
}
//
message SortOption {
//
int32 order = 1;
//
int32 sort_field = 2;
}
//
message ThumbUpReq {
//
@ -909,6 +1222,94 @@ message ThumbUpResp {
string message = 1;
}
//
message TopCard {
//
string title = 1;
//
int32 play_style = 2;
//
int32 card_type = 3;
//
oneof card {
//
TpcdHistory listen_history = 4;
//
TpcdFavFolder fav_folder = 5;
//
TpcdUpRecall up_recall = 6;
//
TpcdPickToday pick_today = 7;
}
//
int64 pos = 8;
//
string title_icon = 9;
}
//
enum TopCardType {
UNSPECIFIED = 0; //
LISTEN_HISTORY = 1; //
FAVORITE_FOLDER = 2; //
UP_RECALL = 3; //
PICK_TODAY = 4; //
}
//
message TpcdFavFolder {
//
DetailItem item = 1;
//
string text = 2;
//
string pic = 3;
//
int64 fid = 4;
//
int32 folder_type = 5;
}
//
message TpcdHistory {
//
DetailItem item = 1;
//
string text = 2;
//
string pic = 3;
}
//
message TpcdPickToday {
//
DetailItem item = 1;
//
string text = 2;
//
string pic = 3;
//
int64 pick_id = 4;
//
int64 pick_card_id = 5;
}
//
message TpcdUpRecall {
//
int64 up_mid = 1;
//
string text = 2;
//
string avatar = 3;
//
int64 medialist_type = 4;
//
int64 medialist_biz_id = 5;
//
DetailItem item = 6;
}
//
message TripleLikeReq {
//