diff --git a/grpc_api/bilibili/app/archive/v1/archive.proto b/grpc_api/bilibili/app/archive/v1/archive.proto index 41030ae..aea0ad6 100644 --- a/grpc_api/bilibili/app/archive/v1/archive.proto +++ b/grpc_api/bilibili/app/archive/v1/archive.proto @@ -126,11 +126,11 @@ message Rights { int32 pay = 5; // 是否高码率 int32 hd5 = 6; - // 是否禁止转载标志 + // 是否显示“禁止转载”标志 int32 no_reprint = 7; // 是否允许自动播放 int32 autoplay = 8; - // UGC稿件需要付费 + // UGC稿件需要付费(旧版) int32 ugc_pay = 9; // 是否联合投稿 int32 is_cooperation = 10; @@ -138,9 +138,9 @@ message Rights { int32 ugc_pay_preview = 11; // 是否禁止后台播放 int32 no_background = 12; - // + // UGC稿件需要付费 int32 arc_pay = 13; - // + // 是否已付费可自由观看 int32 pay_free_watch = 14; } @@ -159,7 +159,7 @@ message StaffInfo { message Stat { // 稿件avid int64 aid = 1; - // 播放数 + // 播放数(当屏蔽时为-1) int32 view = 2; // 弹幕数 int32 danmaku = 3; diff --git a/grpc_api/bilibili/app/interfaces/v1/history.proto b/grpc_api/bilibili/app/interfaces/v1/history.proto index c77e35f..3723963 100644 --- a/grpc_api/bilibili/app/interfaces/v1/history.proto +++ b/grpc_api/bilibili/app/interfaces/v1/history.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package bilibili.app.interfaces.v1; +package bilibili.app.interface.v1; import "bilibili/app/archive/middleware/v1/preload.proto"; @@ -48,6 +48,8 @@ message CardCheese { int64 duration = 3; // 单集标题 string subtitle = 4; + // + int64 state = 5; } // 直播卡片 @@ -78,6 +80,10 @@ message CardOGV { int64 duration = 3; // 单集标题 string subtitle = 4; + // + string badge = 5; + // + int64 state = 6; } // ugc稿件卡片 @@ -268,7 +274,7 @@ message HisInfo { // 搜索历史记录来源 enum HistorySource { - history_VALUE = 0; // 主站历史记录页 + history_VALUE = 0; // 主站历史记录页 shopping_VALUE = 1; // 会员购浏览记录 } diff --git a/grpc_api/bilibili/app/interfaces/v1/media.proto b/grpc_api/bilibili/app/interfaces/v1/media.proto new file mode 100644 index 0000000..440430a --- /dev/null +++ b/grpc_api/bilibili/app/interfaces/v1/media.proto @@ -0,0 +1,328 @@ +syntax = "proto3"; + +package bilibili.app.interface.v1; + +// +service Media { + // + rpc MediaTab(MediaTabReq) returns (MediaTabReply); + // + rpc MediaDetail(MediaDetailReq) returns (MediaDetailReply); + // + rpc MediaVideo(MediaVideoReq) returns (MediaVideoReply); + // + rpc MediaRelation(MediaRelationReq) returns (MediaRelationReply); + // + rpc MediaFollow(MediaFollowReq) returns (MediaFollowReply); +} + +// +message BigItem { + // + string title = 1; + // + string cover_image_uri = 2; + // + string uri = 3; + // + string cover_right_text = 4; + // + string cover_left_text1 = 5; + // + int64 cover_left_icon1 = 6; + // + string cover_left_text2 = 7; + // + int64 cover_left_icon2 = 8; + // + UserCard user_card = 9; + // + LikeButton like_button = 10; + // + int64 param = 11; +} + +// +message Button { + // + string title = 1; + // + string link = 2; + // + string id = 3; + // + int64 icon = 4; + // + ButType but_type = 5; + // + int32 follow_state = 6; + // + string has_title = 7; +} + +// +enum ButType { + BUT_INVALID = 0; // + BUT_REDIRECT = 1; // + BUT_LIKE = 2; // +} + +// +message Cast { + // + repeated MediaPerson person = 1; + // + string title = 2; +} + +// +message ChannelInfo { + // + int64 channel_id = 1; + // + bool subscribed = 2; +} + +// +message LikeButton { + // + int64 aid = 1; + // + int32 count = 2; + // + bool show_count = 3; + // + string event = 4; + // + int32 selected = 5; + // + string event_v2 = 6; + // + LikeButtonResource like_resource = 7; + // + LikeButtonResource dis_like_resource = 8; + // + LikeButtonResource like_night_resource = 9; + // + LikeButtonResource dis_like_night_resource = 10; +} + +// +message LikeButtonResource { + // + string url = 1; + // + string hash = 2; +} + +// +message LikeCard { + // + int64 like = 1; + // + bool is_follow = 2; +} + +// +message MediaCard { + // + string cover = 1; + // + string cur_title = 2; + // + string style = 3; + // + string label = 4; + // + Button but_first = 5; +} + +// +message MediaDetailReply { + // + Cast cast = 1; + // + Staff staff = 2; + // + Overview overview = 3; +} + +// +message MediaDetailReq { + // + int64 biz_id = 1; + // + int64 biz_type = 2; +} + +// +message MediaFollowReply { + +} + +// +message MediaFollowReq { + // + string id = 1; + // + int32 type = 2; +} + +// +message MediaPerson { + // + string real_name = 1; + // + string square_url = 2; + // + string character = 3; + // + int64 person_id = 4; + // + string type = 5; +} + +// +message MediaRelationReply { + // + string offset = 1; + // + bool has_more = 2; + // + repeated SmallItem list = 3; +} + +// +message MediaRelationReq { + // + int64 biz_id = 1; + // + int64 biz_type = 2; + // + int64 feed_id = 3; + // + string offset = 5; + // + int32 ps = 6; +} + +// +message MediaTabReply { + // + MediaCard media_card = 1; + // + repeated ShowTab tab = 2; + // + int64 default_tab_index = 3; + // + ChannelInfo channel_info = 4; +} + +// +message MediaTabReq { + // + int64 biz_id = 1; + // + int64 biz_type = 2; + // + string source = 3; + // + string spmid = 4; + // + map args = 5; +} + +// +message MediaVideoReply { + // + string offset = 1; + // + bool has_more = 2; + // + repeated BigItem list = 3; +} + +// +message MediaVideoReq { + // + int64 biz_id = 1; + // + int64 biz_type = 2; + // + int64 feed_id = 3; + // + string offset = 5; + // + int32 ps = 6; +} + +// +message Overview { + // + string title = 1; + // + string text = 2; +} + +// +message ShowTab { + // + TabType tab_type = 1; + // + string title = 2; + // + string url = 3; +} + +// +message SmallItem { + // + string title = 1; + // + string cover_image_uri = 2; + // + string uri = 3; + // + string cover_right_text = 4; + // + string cover_left_text1 = 5; + // + int64 cover_left_icon1 = 6; + // + string cover_left_text2 = 7; + // + int64 cover_left_icon2 = 8; + // + int64 param = 9; + // + int64 mid = 10; +} + +// +message Staff { + // + string title = 1; + // + string text = 2; +} + +// +enum TabType { + TAB_INVALID = 0; // + TAB_OGV_DETAIL = 6; // + TAB_OGV_REPLY = 7; // + TAB_FEED_BID = 8; // + TAB_FEED_SMALL = 9; // +} + +// +message UserCard { + // + string user_name = 1; + // + string user_face = 2; + // + string user_url = 3; + // + int64 mid = 4; +} \ No newline at end of file diff --git a/grpc_api/bilibili/app/interfaces/v1/search.proto b/grpc_api/bilibili/app/interfaces/v1/search.proto index 8ad82d8..1654c54 100644 --- a/grpc_api/bilibili/app/interfaces/v1/search.proto +++ b/grpc_api/bilibili/app/interfaces/v1/search.proto @@ -1,11 +1,85 @@ syntax = "proto3"; -package bilibili.app.interfaces.v1; +package bilibili.app.interface.v1; // 搜索 service Search { // 获取搜索建议 rpc Suggest3 (SuggestionResult3Req) returns (SuggestionResult3Reply); + // + rpc DefaultWords(DefaultWordsReq) returns (DefaultWordsReply); +} + +// +service SearchTest { + // + rpc NotExist(SuggestionResult3Req) returns (SuggestionResult3Reply); +} + +// +message DefaultWordsReply { + // + string trackid = 1; + // + string param = 2; + // + string show = 3; + // + string word = 4; + // + int64 show_front = 5; + // + string exp_str = 6; + // + string goto = 7; + // + string value = 8; + // + string uri = 9; +} + +// +message NftFaceIcon { + // + int32 region_type = 1; + // + string icon = 2; + // + int32 show_status = 3; +} + +// +message DefaultWordsReq { + // + int64 from = 1; + // + int64 login_event = 2; + // + int32 teenagers_mode = 3; + // + int32 lessons_mode = 4; + // + string tab = 5; + // + string event_id = 6; + // + string avid = 7; + // + string query = 8; + // + int64 an = 9; + // + int64 is_fresh = 10; +} + +// 获取搜索建议-响应 +message SuggestionResult3Reply { + // 搜索追踪id + string trackid = 1; + // 搜索建议条目列表 + repeated ResultItem list = 2; + // 搜索的abtest 实验信息 + string exp_str = 3; } // 获取搜索建议-请求 @@ -20,16 +94,6 @@ message SuggestionResult3Req { int32 teenagers_mode = 3; } -// 获取搜索建议-响应 -message SuggestionResult3Reply { - // 搜索追踪id - string trackid = 1; - // 搜索建议条目列表 - repeated ResultItem list = 2; - // 搜索的abtest 实验信息 - string expStr = 3; -} - // 搜索建议条目 message ResultItem { // 来源 @@ -86,6 +150,10 @@ message ResultItem { int64 module_id = 26; // string live_link = 27; + // + int32 face_nft_new = 28; + // + NftFaceIcon nft_face_icon = 29; } // 认证信息 diff --git a/grpc_api/bilibili/app/interfaces/v1/space.proto b/grpc_api/bilibili/app/interfaces/v1/space.proto index e1b056c..236dca3 100644 --- a/grpc_api/bilibili/app/interfaces/v1/space.proto +++ b/grpc_api/bilibili/app/interfaces/v1/space.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package bilibili.app.interfaces.v1; +package bilibili.app.interface.v1; import "bilibili/app/archive/middleware/v1/preload.proto"; import "bilibili/app/archive/v1/archive.proto"; @@ -24,7 +24,6 @@ message Arc { string uri = 2; } - // message Dynamic { // diff --git a/grpc_api/bilibili/app/nativeact/v1/nativeact.proto b/grpc_api/bilibili/app/nativeact/v1/nativeact.proto index 988ddd1..b8ec802 100644 --- a/grpc_api/bilibili/app/nativeact/v1/nativeact.proto +++ b/grpc_api/bilibili/app/nativeact/v1/nativeact.proto @@ -6,6 +6,27 @@ import "google/protobuf/any.proto"; import "bilibili/app/dynamic/v2/dynamic.proto"; import "bilibili/app/archive/middleware/v1/preload.proto"; +// +enum ActionType { + Default = 0; // + Do = 1; // + Undo = 2; // +} + +// +message Area { + // + int64 height = 1; + // + int64 width = 2; + // + int64 x = 3; + // + int64 y = 4; + // + string ukey = 5; +} + // message Badge { // @@ -106,6 +127,14 @@ message Color { string nt_unselected_bg_color = 23; // string progress_bar_color = 24; + // + string panel_bg_color = 25; + // + string panel_select_color = 26; + // + string panel_select_font_color = 27; + // + string panel_nt_select_font_color = 28; } // @@ -236,6 +265,28 @@ message EditorResp { Module module = 1; } +// +message FollowOgvParams { + // + ActionType action = 1; + // + int32 season_id = 2; +} + +// +message FollowOgvReq { + // + string raw_params = 1; + // + FollowOgvParams params = 2; +} + +// +message FollowOgvRly { + // + string follow_params = 1; +} + // message GameCard { // @@ -270,6 +321,24 @@ message HeaderCard { string discuss_num = 8; // bool is_subscribed = 9; + // + int64 mid = 10; +} + +// +message IconCard { + // + repeated IconItem items = 1; +} + +// +message IconItem { + // + string title = 1; + // + string image = 2; + // + string uri = 3; } // @@ -375,6 +444,46 @@ message LiveItem { string link = 15; // int64 live_id = 16; + // + LiveWatchedShow watched_show = 17; +} + +// +message LiveWatchedShow { + // + bool switch = 1; + // + int64 num = 2; + // + string text_small = 3; + // + string text_large = 4; + // + string icon = 5; + // + string icon_location = 6; +} + +// +message MessageBox { + // + string alert_msg = 1; + // + string confirm_button_text = 2; + // + string cancel_button_text = 3; + // + string confirm_msg = 4; + // + string cancel_msg = 5; + // + MessageBoxType type = 6; +} + +// +enum MessageBoxType { + Dialog = 0; // + Toast = 1; // } // @@ -402,7 +511,54 @@ message Module { // message ModuleItem { // - string card_type = 1; + enum CardDetailCase { + CARDDETAIL_NOT_SET = 0; // + EDITOR_RECOMMEND_CARD = 10; // + PARTICIPATION_CARD = 11; // + HEADER_CARD = 12; // + DYNAMIC_CARD = 13; // + TEXT_CARD = 14; // + TEXT_TITLE_CARD = 15; // + IMAGE_TITLE_CARD = 16; // + DYNAMIC_MORE_CARD = 17; // + DYNAMIC_ACT_MORE_CARD = 18; // + LIVE_CARD = 19; // + CAROUSEL_IMG_CARD = 20; // + CAROUSEL_WORD_CARD = 21; // + RESOURCE_CARD = 22; // + RESOURCE_MORE_CARD = 23; // + GAME_CARD = 24; // + VIDEO_CARD = 25; // + VIDEO_MORE_CARD = 26; // + RECOMMEND_CARD = 27; // + RECOMMEND_VERTICAL_CARD = 28; // + RELATIVEACT_CARD = 29; // + RELATIVEACT_CAPSULE_CARD = 30; // + STATEMENT_CARD = 31; // + ICON_CARD = 32; // + VOTE_CARD = 33; // + RESERVE_CARD = 34; // + TIMELINE_HEAD_CARD = 35; // + TIMELINE_EVENT_TEXT_CARD = 36; // + TIMELINE_EVENT_IMAGE_CARD = 37; // + TIMELINE_EVENT_IMAGETEXT_CARD = 38; // + TIMELINE_EVENT_RESOURCE_CARD = 39; // + TIMELINE_MORE_CARD = 40; // + TIMELINE_UNFOLD_CARD = 41; // + OGV_ONE_CARD = 42; // + OGV_THREE_CARD = 43; // + OGV_MORE_CARD = 44; // + NAVIGATION_CARD = 45; // + REPLY_CARD = 46; // + TAB_CARD = 47; // + NEWACT_HEADER_CARD = 48; // + NEWACT_AWARD_CARD = 49; // + NEWACT_STATEMENT_CARD = 50; // + PROGRESS_CARD = 51; // + SELECT_CARD = 52; // + } + // + CardDetailCase card_type = 1; // string card_id = 2; oneof card_detail { @@ -440,9 +596,257 @@ message ModuleItem { VideoCard video_card = 25; // VideoMoreCard video_more_card = 26; + // + RcmdCard recommend_card = 27; + // + RcmdVerticalCard recommend_vertical_card = 28; + // + RelativeactCard relativeact_card = 29; + // + RelativeactCapsuleCard relativeact_capsule_card = 30; + // + StatementCard statement_card = 31; + // + IconCard icon_card = 32; + // + VoteCard vote_card = 33; + // + ReserveCard reserve_card = 34; + // + TimelineHeadCard timeline_head_card = 35; + // + TimelineEventTextCard timeline_event_text_card = 36; + // + TimelineEventImageCard timeline_event_image_card = 37; + // + TimelineEventImagetextCard timeline_event_imagetext_card = 38; + // + TimelineEventResourceCard timeline_event_resource_card = 39; + // + TimelineMoreCard timeline_more_card = 40; + // + TimelineUnfoldCard timeline_unfold_card = 41; + // + OgvOneCard ogv_one_card = 42; + // + OgvThreeCard ogv_three_card = 43; + // + OgvMoreCard ogv_more_card = 44; + // + NavigationCard navigation_card = 45; + // + ReplyCard reply_card = 46; + // + TabCard tab_card = 47; + // + NewactHeader newact_header = 48; + // + NewactAward newact_award = 49; + // + NewactStatement newact_statement = 50; + // + ProgressCard progress_card = 51; + // + SelectCard select_card = 52; } } +// +message NavigationCard { + // + repeated NavigationItem items = 1; +} + +// +message NavigationItem { + // + int64 module_id = 1; + // + string title = 2; +} + +// +message NewactAward { + // + string title = 1; + // + repeated NewactAwardItem items = 2; +} + +// +message NewactAwardItem { + // + string title = 1; + // + string content = 2; +} + +// +message NewactFeature { + // + string name = 1; + // + string border_color = 2; +} + +// +message NewactHeader { + // + string title = 1; + // + string time = 2; + // + string image = 3; + // + string sponsor_title = 4; + // + int64 mid = 5; + // + string user_name = 6; + // + string user_face = 7; + // + string user_url = 8; + // + repeated NewactFeature features = 9; +} + +// +message NewactStatementItem { + // + string title = 1; + // + string content = 2; +} + +// +message NewactStatement { + // + string title = 1; + // + repeated NewactStatementItem items = 2; +} + +// +message OfficialInfo { + // + int32 role = 1; + // + string title = 2; + // + string desc = 3; + // + int32 type = 4; +} + +// +message OgvFollowButton { + // + bool is_followed = 1; + // + string follow_text = 2; + // + string follow_icon = 3; + // + string unfollow_text = 4; + // + string unfollow_icon = 5; + // + string follow_params = 6; +} + +// +message OgvMoreCard { + // + string button_text = 1; + // + string supernatant_title = 2; + // + string params = 3; +} + +// +message OgvOneCard { + // + string position1 = 1; + // + string position2 = 2; + // + string position3 = 3; + // + string cover_right_text1 = 4; + // + string cover_right_text2 = 5; + // + string rcmd_content = 6; + // + string rcmd_icon = 7; + // + OgvFollowButton follow_button = 8; + // + string image = 13; + // + Badge badge = 14; + // + string title = 15; + // + ReportDic report_dic = 16; + // + string url = 17; + // + string resource_type = 18; +} + +// +message OgvSupernatantParams { + // + int64 last_index = 1; + // + int64 offset = 2; + // + int64 module_id = 3; +} + +// +message OgvSupernatantReq { + // + string raw_params = 1; + // + OgvSupernatantParams params = 2; + // + int64 primary_page_id = 3; +} + +// +message OgvSupernatantResp { + // + Module module = 1; + // + int64 last_index = 2; +} + +// +message OgvThreeCard { + // + string cover_left_text1 = 1; + // + string subtitle = 2; + // + OgvFollowButton follow_button = 3; + // + string image = 4; + // + Badge badge = 5; + // + string title = 6; + // + ReportDic report_dic = 7; + // + string url = 8; + // + string resource_type = 9; +} + // message PageResp { // @@ -485,6 +889,14 @@ message PageShare { string inside_uri = 5; // string outside_uri = 6; + // + string origin = 7; + // + string sid = 8; + // + string space_page_url = 9; + // + string space_exclusive_page_url = 10; } // @@ -519,6 +931,167 @@ message PlayerDimension { bool rotate = 3; } +// +enum ProgressBar { + PBarDefault = 0; // + PBarColor = 1; // + PBarTexture = 2; // +} + +// +message ProgressCard { + // + ProgressStyle style = 1; + // + ProgressSlot slot_type = 2; + // + ProgressBar bar_type = 3; + // + string texture_image = 4; + // + int64 num = 5; + // + string display_num = 6; + // + repeated ProgressNode nodes = 7; +} + +// +message ProgressEvent { + // + int64 page_id = 1; + // + repeated ProgressEventItem items = 2; +} + +// +message ProgressEventItem { + // + int64 item_id = 1; + // + string type = 2; + // + int64 num = 3; + // + string display_num = 4; + // + string web_key = 5; + // + int64 dimension = 6; +} + +// +message ProgressNode { + // + string name = 1; + // + int64 num = 2; + // + string display_num = 3; +} + +// +message ProgressReq { + // + int64 page_id = 1; +} + +// +message ProgressRly { + // + ProgressEvent event = 1; +} + +// +enum ProgressSlot { + PSlotDefault = 0; // + PSlotOutline = 1; // + PSlotFill = 2; // +} + +// +enum ProgressStyle { + PStyleDefault = 0; // + PStyleRound = 1; // + PStyleRectangle = 2; // + PStyleNode = 3; // +} + +// +message RcmdCard { + // + int64 mid = 1; + // + string name = 2; + // + string face = 3; + // + string uri = 4; + // + string reason = 5; + // + bool is_followed = 6; + // + OfficialInfo official = 7; + // + VipInfo vip = 8; + // + string rank_icon = 9; + // + RedirectType redirect_type = 10; +} + +// +message RcmdVerticalCard { + // + repeated RcmdCard items = 1; +} + +// +enum RedirectType { + RtTypeDefault = 0; // + RtTypeSpace = 1; // + RtTypeUri = 2; // +} + +// +message RelativeactCapsuleCard { + // + string title = 1; + // + repeated RelativeactCapsuleItem items = 2; +} + +// +message RelativeactCapsuleItem { + // + int64 page_id = 1; + // + string title = 2; + // + string uri = 3; +} + +// +message RelativeactCard { + // + string image = 1; + // + string title = 2; + // + string desc = 3; + // + string uri = 4; +} + +// +message ReplyCard { + // + int64 reply_id = 1; + // + int64 type = 2; +} + // message ReportDic { // @@ -541,6 +1114,83 @@ message ReportDic { string author_name = 9; } +// +message ReserveButton { + // + ReserveGoto goto = 1; + // + MessageBox message_box = 2; + // + string reserve_params = 3; + // + bool has_done = 4; + // + string done_text = 5; + // + string undone_text = 6; + // + string icon = 7; + // + bool is_highlight = 8; + // + string url = 9; +} + +// +message ReserveCard { + // + int64 sid = 1; + // + int64 mid = 2; + // + string name = 3; + // + string face = 4; + // + string uri = 5; + // + string title = 6; + // + string content = 7; + // + int64 num = 8; + // + string subtitle = 9; + // + ReserveButton button = 10; + // + bool hide_reserve_num = 11; +} + +// +enum ReserveGoto { + Reserve = 0; // + Redirect = 1; // + Unable = 2; // +} + +// +message ReserveParams { + // + int32 action = 1; + // + int64 sid = 2; +} + +// +message ReserveReq { + // + string raw_params = 1; + // + ReserveParams params = 2; +} + +// +message ReserveRly { + // + string reserve_params = 1; +} + // message ResourceCard { // @@ -605,6 +1255,24 @@ message ResourceResp { Module module = 1; } +// +message SelectCard { + // + int64 current_tab = 1; + // + repeated SelectItem items = 2; +} + +// +message SelectItem { + // + int64 page_id = 1; + // + string title = 2; + // + PageShare page_share = 3; +} + // message Setting { // @@ -649,6 +1317,22 @@ message Share { int64 share_type = 4; } +// +message SizeImage { + // + string image = 1; + // + int64 height = 2; + // + int64 width = 3; +} + +// +message StatementCard { + // + string content = 1; +} + // message SubpageData { // @@ -667,6 +1351,18 @@ message SubpageTab { string params = 2; } +// +message TabCard { + // + int64 current_tab = 1; + // + TabStyle style = 2; + // + repeated TabItem items = 3; + // + SizeImage bg_image = 4; +} + // message TabIndexReq { // @@ -685,6 +1381,29 @@ message TabIndexReq { bool is_cold_start = 7; } +// +message TabItem { + // + int64 page_id = 1; + // + string title = 2; + // + bool disable_click = 3; + // + string disable_click_toast = 4; + // + SizeImage selected_image = 5; + // + SizeImage unselected_image = 6; +} + +// +enum TabStyle { + TabStyleDefault = 0; // + TabStyleColor = 1; // + TabStyleImage = 2; // +} + // message TextCard { // @@ -698,21 +1417,128 @@ message TextTitleCard { } // -message TopTab { +message TimelineEventImageCard { // - string bg_image1 = 1; + SizeImage image = 1; // - string bg_image2 = 2; + string title = 2; // - string tab_top_color = 3; + string uri = 3; +} + +// +message TimelineEventImagetextCard { // - string tab_middle_color = 4; + string title = 1; // - string tab_bottom_color = 5; + string subtitle = 2; // - string font_color = 6; + string content = 3; // - int64 bar_type = 7; + string image = 4; + // + string uri = 5; +} + +// +message TimelineEventResourceCard { + // + string title = 1; + // + string cover_image_uri = 2; + // + string uri = 3; + // + string position1 = 4; + // + string position2 = 5; + // + Badge badge = 6; + // + ReportDic report_dic = 7; + // + string resource_type = 8; +} + +// +message TimelineEventTextCard { + // + string title = 1; + // + string subtitle = 2; + // + string content = 3; + // + string uri = 4; +} + +// +message TimelineHeadCard { + // + string stage = 1; +} + +// +message TimelineMoreCard { + // + string button_text = 1; + // + string supernatant_title = 2; + // + string params = 3; +} + +// +message TimelineSupernatantParams { + // + int64 last_index = 1; + // + int64 offset = 2; + // + int64 module_id = 3; +} + +// +message TimelineSupernatantReq { + // + string raw_params = 1; + // + TimelineSupernatantParams params = 2; + // + int64 primary_page_id = 3; +} + +// +message TimelineSupernatantResp { + // + Module module = 1; + // + int64 last_index = 2; +} + +// +message TimelineUnfoldCard { + // + message Card { + oneof card_detail { + // + TimelineHeadCard timeline_head_card = 1; + // + TimelineEventTextCard timeline_event_text_card= 2; + // + TimelineEventImageCard timeline_event_image_card= 3; + // + TimelineEventImagetextCard timeline_event_imagetext_card= 4; + // + TimelineEventResourceCard timeline_event_resource_card= 5; + } + } + // + string unfold_text = 1; + // + string fold_text = 2; + // + repeated Card cards = 3; } // @@ -743,6 +1569,24 @@ message TopicIndexReq { bool is_cold_start = 12; } +// +message TopTab { + // + string bg_image1 = 1; + // + string bg_image2 = 2; + // + string tab_top_color = 3; + // + string tab_middle_color = 4; + // + string tab_bottom_color = 5; + // + string font_color = 6; + // + int64 bar_type = 7; +} + // message VideoCard { // @@ -813,4 +1657,144 @@ message VideoRights { bool is_cooperation = 2; // bool is_pgc = 3; -} \ No newline at end of file +} + +// +message VipInfo { + // + int32 type = 1; + // + int32 status = 2; + // + int64 due_date = 3; + // + int32 vip_pay_type = 4; + // + int32 theme_type = 5; + // + VipLabel label = 6; + // + int32 avatar_subscript = 7; + // + string nickname_color = 8; + // + int64 role = 9; + // + string avatar_subscript_url = 10; +} + +// +message VipLabel { + // + string path = 1; + // + string text = 3; + // + string label_theme = 4; + // + string text_color = 5; + // + int32 bg_style = 6; + // + string bg_color = 7; + // + string border_color = 8; +} + +// +message VoteButton { + // + Area area = 1; + // + string done_image = 2; + // + string undone_image = 3; + // + bool has_voted = 4; + // + MessageBox message_box = 5; + // + string vote_params = 6; + // + int64 source_item_id = 7; +} + +// +message VoteCard { + // + SizeImage bg_image = 1; + // + int64 option_num = 2; + // + repeated VoteButton buttons = 3; + // + VoteNum left_num = 4; + // + VoteProgress progress = 5; +} + +// +message VoteNum { + // + Area area = 1; + // + int64 num = 2; +} + +// +message VoteParams { + // + int32 action = 1; + // + int64 sid = 2; + // + int64 gid = 3; + // + int64 source_item_id = 4; + // + string type = 5; +} + +// +message VoteProgress { + // + message VoteProgressItem { + // + string color = 1; + // + int64 num = 2; + // + int64 source_item_id = 3; + } + // + Area area = 1; + // + VoteProgressStyle style = 2; + // + repeated VoteProgressItem items = 3; +} + +// +enum VoteProgressStyle { + VPStyleDefault = 0; // + VPStyleCircle = 1; // + VPStyleSquare = 2; // +} + +// +message VoteReq { + // + string raw_params = 1; + // + VoteParams params = 2; +} + +// +message VoteResp { + // + string vote_params = 1; + // + int64 left_num = 2; + // + int64 can_vote_num = 3; +} diff --git a/grpc_api/bilibili/app/playurl/v1/playurl.proto b/grpc_api/bilibili/app/playurl/v1/playurl.proto index 51c3703..19eb851 100644 --- a/grpc_api/bilibili/app/playurl/v1/playurl.proto +++ b/grpc_api/bilibili/app/playurl/v1/playurl.proto @@ -37,7 +37,7 @@ message ArcConf { // 业务类型 enum Business { UNKNOWN = 0; // 未知类型 - STORY = 1; // story业务 + STORY = 1; // story业务 } // Chronos灰度管理 @@ -74,7 +74,7 @@ message CloudConf { // 编码类型 enum CodeType { - NOCODE = 0; // 默认 + NOCODE = 0; // 默认 CODE264 = 1; // H.264 CODE265 = 2; // H.265 CODEAV1 = 3; // av1 @@ -82,36 +82,36 @@ enum CodeType { // 设置类型 enum ConfType { - NoType = 0; // - FLIPCONF = 1; // 镜像反转 - CASTCONF = 2; // 视频投屏 - FEEDBACK = 3; // 反馈 - SUBTITLE = 4; // 字幕 - PLAYBACKRATE = 5; // 播放速度 - TIMEUP = 6; // 定时停止播放 - PLAYBACKMODE = 7; // 播放方式 - SCALEMODE = 8; // 画面尺寸 + NoType = 0; // + FLIPCONF = 1; // 镜像反转 + CASTCONF = 2; // 视频投屏 + FEEDBACK = 3; // 反馈 + SUBTITLE = 4; // 字幕 + PLAYBACKRATE = 5; // 播放速度 + TIMEUP = 6; // 定时停止播放 + PLAYBACKMODE = 7; // 播放方式 + SCALEMODE = 8; // 画面尺寸 BACKGROUNDPLAY = 9; // 后台播放 - LIKE = 10; // 顶 - DISLIKE = 11; // 踩 - COIN = 12; // 投币 - ELEC = 13; // 充电 - SHARE = 14; // 分享 - SCREENSHOT = 15; // 截图 - LOCKSCREEN = 16; // 锁屏 - RECOMMEND = 17; // 推荐 - PLAYBACKSPEED = 18; // 倍速 - DEFINITION = 19; // 清晰度 - SELECTIONS = 20; // 选集 - NEXT = 21; // 下一集 - EDITDM = 22; // 编辑弹幕 - SMALLWINDOW = 23; // 小窗 - SHAKE = 24; // 播放震动 - OUTERDM = 25; // 外层面板弹幕设置 - INNERDM = 26; // 三点内弹幕设置 - PANORAMA = 27; // 全景 - DOLBY = 28; // 杜比 - COLORFILTER = 29; // + LIKE = 10; // 顶 + DISLIKE = 11; // 踩 + COIN = 12; // 投币 + ELEC = 13; // 充电 + SHARE = 14; // 分享 + SCREENSHOT = 15; // 截图 + LOCKSCREEN = 16; // 锁屏 + RECOMMEND = 17; // 推荐 + PLAYBACKSPEED = 18; // 倍速 + DEFINITION = 19; // 清晰度 + SELECTIONS = 20; // 选集 + NEXT = 21; // 下一集 + EDITDM = 22; // 编辑弹幕 + SMALLWINDOW = 23; // 小窗 + SHAKE = 24; // 播放震动 + OUTERDM = 25; // 外层面板弹幕设置 + INNERDM = 26; // 三点内弹幕设置 + PANORAMA = 27; // 全景 + DOLBY = 28; // 杜比 + COLORFILTER = 29; // 颜色滤镜 } // @@ -177,9 +177,9 @@ message DashVideo { // 杜比伴音信息 message DolbyItem { enum Type { - NONE = 0; // NONE + NONE = 0; // NONE COMMON = 1; // 普通杜比音效 - ATMOS = 2; // 全景杜比音效 + ATMOS = 2; // 全景杜比音效 } // 杜比类型 Type type = 1; @@ -238,76 +238,76 @@ message Glance { // enum Group { UnknownGroup = 0; // - A = 1; // - B = 2; // - C = 3; // + A = 1; // + B = 2; // + C = 3; // } // 禁用功能配置 message PlayAbilityConf { - CloudConf background_play_conf = 1; // 后台播放 - CloudConf flip_conf = 2; // 镜像反转 - CloudConf cast_conf = 3; // 投屏 - CloudConf feedback_conf = 4; // 反馈 - CloudConf subtitle_conf = 5; // 字幕 - CloudConf playback_rate_conf = 6; // 播放速度 - CloudConf time_up_conf = 7; // 定时停止 - CloudConf playback_mode_conf = 8; // 播放方式 - CloudConf scale_mode_conf = 9; // 画面尺寸 - CloudConf like_conf = 10; // 赞 - CloudConf dislike_conf = 11; // 踩 - CloudConf coin_conf = 12; // 投币 - CloudConf elec_conf = 13; // 充电 - CloudConf share_conf = 14; // 分享 - CloudConf screen_shot_conf = 15; // 截图 - CloudConf lock_screen_conf = 16; // 锁定 - CloudConf recommend_conf = 17; // 相关推荐 - CloudConf playback_speed_conf = 18; // 播放速度 - CloudConf definition_conf = 19; // 清晰度 - CloudConf selections_conf = 20; // 选集 - CloudConf next_conf = 21; // 下一集 - CloudConf edit_dm_conf = 22; // 编辑弹幕 - CloudConf small_window_conf = 23; // 小窗 - CloudConf shake_conf = 24; // 震动 - CloudConf outer_dm_conf = 25; // 外层面板弹幕设置 - CloudConf innerDmDisable = 26; // 三点内弹幕设置 - CloudConf inner_dm_conf = 27; // 一起看入口 - CloudConf dolby_conf = 28; // 杜比音效 - CloudConf color_filter_conf = 29; // + CloudConf background_play_conf = 1; // 后台播放 + CloudConf flip_conf = 2; // 镜像反转 + CloudConf cast_conf = 3; // 投屏 + CloudConf feedback_conf = 4; // 反馈 + CloudConf subtitle_conf = 5; // 字幕 + CloudConf playback_rate_conf = 6; // 播放速度 + CloudConf time_up_conf = 7; // 定时停止 + CloudConf playback_mode_conf = 8; // 播放方式 + CloudConf scale_mode_conf = 9; // 画面尺寸 + CloudConf like_conf = 10; // 赞 + CloudConf dislike_conf = 11; // 踩 + CloudConf coin_conf = 12; // 投币 + CloudConf elec_conf = 13; // 充电 + CloudConf share_conf = 14; // 分享 + CloudConf screen_shot_conf = 15; // 截图 + CloudConf lock_screen_conf = 16; // 锁定 + CloudConf recommend_conf = 17; // 相关推荐 + CloudConf playback_speed_conf = 18; // 播放速度 + CloudConf definition_conf = 19; // 清晰度 + CloudConf selections_conf = 20; // 选集 + CloudConf next_conf = 21; // 下一集 + CloudConf edit_dm_conf = 22; // 编辑弹幕 + CloudConf small_window_conf = 23; // 小窗 + CloudConf shake_conf = 24; // 震动 + CloudConf outer_dm_conf = 25; // 外层面板弹幕设置 + CloudConf innerDmDisable = 26; // 三点内弹幕设置 + CloudConf inner_dm_conf = 27; // 一起看入口 + CloudConf dolby_conf = 28; // 杜比音效 + CloudConf color_filter_conf = 29; // 颜色滤镜 } // 播放控件稿件配置 message PlayArcConf { - ArcConf background_play_conf = 1; // 后台播放 - ArcConf flip_conf = 2; // 镜像反转 - ArcConf cast_conf = 3; // 投屏 - ArcConf feedback_conf = 4; // 反馈 - ArcConf subtitle_conf = 5; // 字幕 - ArcConf playback_rate_conf = 6; // 播放速度 - ArcConf time_up_conf = 7; // 定时停止 - ArcConf playback_mode_conf = 8; // 播放方式 - ArcConf scale_mode_conf = 9; // 画面尺寸 - ArcConf like_conf = 10; // 赞 - ArcConf dislike_conf = 11; // 踩 - ArcConf coin_conf = 12; // 投币 - ArcConf elec_conf = 13; // 充电 - ArcConf share_conf = 14; // 分享 - ArcConf screen_shot_conf = 15; // 截图 - ArcConf lock_screen_conf = 16; // 锁定 - ArcConf recommend_conf = 17; // 相关推荐 - ArcConf playback_speed_conf = 18; // 播放速度 - ArcConf definition_conf = 19; // 清晰度 - ArcConf selections_conf = 20; // 选集 - ArcConf next_conf = 21; // 下一集 - ArcConf edit_dm_conf = 22; // 编辑弹幕 - ArcConf small_window_conf = 23; // 小窗 - ArcConf shake_conf = 24; // 震动 - ArcConf outer_dm_conf = 25; // 外层面板弹幕设置 - ArcConf inner_dm_conf = 26; // 三点内弹幕设置 - ArcConf panorama_conf = 27; // 一起看入口 - ArcConf dolby_conf = 28; // 杜比音效 - ArcConf screen_recording_conf = 29; // - ArcConf color_filter_conf = 30; // + ArcConf background_play_conf = 1; // 后台播放 + ArcConf flip_conf = 2; // 镜像反转 + ArcConf cast_conf = 3; // 投屏 + ArcConf feedback_conf = 4; // 反馈 + ArcConf subtitle_conf = 5; // 字幕 + ArcConf playback_rate_conf = 6; // 播放速度 + ArcConf time_up_conf = 7; // 定时停止 + ArcConf playback_mode_conf = 8; // 播放方式 + ArcConf scale_mode_conf = 9; // 画面尺寸 + ArcConf like_conf = 10; // 赞 + ArcConf dislike_conf = 11; // 踩 + ArcConf coin_conf = 12; // 投币 + ArcConf elec_conf = 13; // 充电 + ArcConf share_conf = 14; // 分享 + ArcConf screen_shot_conf = 15; // 截图 + ArcConf lock_screen_conf = 16; // 锁定 + ArcConf recommend_conf = 17; // 相关推荐 + ArcConf playback_speed_conf = 18; // 播放速度 + ArcConf definition_conf = 19; // 清晰度 + ArcConf selections_conf = 20; // 选集 + ArcConf next_conf = 21; // 下一集 + ArcConf edit_dm_conf = 22; // 编辑弹幕 + ArcConf small_window_conf = 23; // 小窗 + ArcConf shake_conf = 24; // 震动 + ArcConf outer_dm_conf = 25; // 外层面板弹幕设置 + ArcConf inner_dm_conf = 26; // 三点内弹幕设置 + ArcConf panorama_conf = 27; // 一起看入口 + ArcConf dolby_conf = 28; // 杜比音效 + ArcConf screen_recording_conf = 29; // 屏幕录制 + ArcConf color_filter_conf = 30; // 颜色滤镜 } // 编辑播放界面配置-响应 @@ -346,7 +346,7 @@ message PlayConfState { // 错误码 enum PlayErr { - NoErr = 0; // + NoErr = 0; // WithMultiDeviceLoginErr = 1; // 管控类型的错误码 } @@ -364,7 +364,7 @@ message PlayLimit { // enum PlayLimitCode { - PLCUnkown = 0; // + PLCUnkown = 0; // PLCUgcNotPayed = 1; // } @@ -573,7 +573,7 @@ message StreamInfo { // 格式描述 string description = 3; // 错误码 - uint32 err_code = 4; + PlayErr err_code = 4; // 不满足条件信息 StreamLimit limit = 5; // 是否需要vip @@ -647,9 +647,9 @@ message VideoInfo { // 视频类型 enum VideoType { Unknown_VALUE = 0; // - FLV_VALUE = 1; // flv格式 - DASH_VALUE = 2; // dash格式 - MP4_VALUE = 3; // mp4格式 + FLV_VALUE = 1; // flv格式 + DASH_VALUE = 2; // dash格式 + MP4_VALUE = 3; // mp4格式 } // diff --git a/grpc_api/bilibili/app/resource/privacy/v1/api.proto b/grpc_api/bilibili/app/resource/privacy/v1/api.proto index bf77be8..ed449c0 100644 --- a/grpc_api/bilibili/app/resource/privacy/v1/api.proto +++ b/grpc_api/bilibili/app/resource/privacy/v1/api.proto @@ -43,12 +43,12 @@ message PrivacyConfigReply { // 隐私开关状态 enum PrivacyConfigState { close = 0; // 关闭 - open = 1; // 打开 + open = 1; // 打开 } // 隐私开关类型 enum PrivacyConfigType { - none = 0; // + none = 0; // dynamic_city = 1; // 动态同城 } diff --git a/grpc_api/bilibili/app/resource/v1/module.proto b/grpc_api/bilibili/app/resource/v1/module.proto index 2ce72e9..b445eb3 100644 --- a/grpc_api/bilibili/app/resource/v1/module.proto +++ b/grpc_api/bilibili/app/resource/v1/module.proto @@ -10,7 +10,7 @@ service Module { // enum CompressType { - Unzip = 0; // unzip + Unzip = 0; // unzip Original = 1; // 不操作 } @@ -18,21 +18,21 @@ enum CompressType { enum EnvType { Unknown = 0; // Release = 1; // - Test = 2; // + Test = 2; // } // enum IncrementType { - Total = 0; // 全量包 + Total = 0; // 全量包 Incremental = 1; // 增量包 } // enum LevelType { Undefined = 0; // - High = 1; // 高 需立即下载 - Middle = 2; // 中 可以延迟下载 - Low = 3; // 低 仅在业务方使用到时由业务方手动进行下载 + High = 1; // 高 需立即下载 + Middle = 2; // 中 可以延迟下载 + Low = 3; // 低 仅在业务方使用到时由业务方手动进行下载 } message ListReply { diff --git a/grpc_api/bilibili/app/view/v1/view.proto b/grpc_api/bilibili/app/view/v1/view.proto index 5d3cd63..6ccf1cc 100644 --- a/grpc_api/bilibili/app/view/v1/view.proto +++ b/grpc_api/bilibili/app/view/v1/view.proto @@ -279,12 +279,12 @@ message BizReserveGameParam { // 业务类型 enum BizType { - BizTypeNone = 0; // - BizTypeFollowVideo = 1; // 追番追剧 + BizTypeNone = 0; // + BizTypeFollowVideo = 1; // 追番追剧 BizTypeReserveActivity = 2; // 预约活动 - BizTypeJumpLink = 3; // 跳转链接 - BizTypeFavSeason = 4; // 收藏合集 - BizTypeReserveGame = 5; // 预约游戏 + BizTypeJumpLink = 3; // 跳转链接 + BizTypeFavSeason = 4; // 收藏合集 + BizTypeReserveGame = 5; // 预约游戏 } // @@ -388,7 +388,7 @@ message CacheViewReq { // enum Category { CategoryUnknown = 0; // - CategorySeason = 1; // + CategorySeason = 1; // } // Chronos灰度管理 @@ -645,8 +645,8 @@ message CustomConfig { // 枚举-文本类型 enum DescType { DescTypeUnknown = 0; // 占位 - DescTypeText = 1; // 文本 - DescTypeAt = 2; // @ + DescTypeText = 1; // 文本 + DescTypeAt = 2; // @ } // 特殊稿件简介 @@ -991,7 +991,7 @@ message MaterialRes { // string url = 3; // - int32 typ = 4; + MaterialSource type = 4; // string name = 5; // @@ -1004,8 +1004,8 @@ message MaterialRes { // enum MaterialSource { - Default = 0; - BiJian = 1; + Default = 0; // + BiJian = 1; // 必剪 } // @@ -1119,9 +1119,9 @@ message OperationCardNew { // 卡片样式 enum OperationCardType { - CardTypeNone = 0; // + CardTypeNone = 0; // CardTypeStandard = 1; // 标准卡 - CardTypeSkip = 2; // 原跳转卡 + CardTypeSkip = 2; // 原跳转卡 } // 相关推荐(运营配置+AI推荐) @@ -1172,15 +1172,15 @@ message PackInfo { // enum PayState { PayStateUnknown = 0; // - PayStateActive = 1; // + PayStateActive = 1; // } // 卡片类型 enum PlayerCardType { - PlayerCardTypeNone_VALUE = 0; // + PlayerCardTypeNone_VALUE = 0; // PlayerCardTypeAttention_VALUE = 1; // 关注卡 PlayerCardTypeOperation_VALUE = 2; // 运营卡 - PlayerCardTypeContract_VALUE = 3; // 契约卡 + PlayerCardTypeContract_VALUE = 3; // 契约卡 } // 进度条动画配置 @@ -1301,10 +1301,10 @@ message PremiereResource { // enum PremiereState { - premiere_none = 0; // + premiere_none = 0; // premiere_before = 1; // - premiere_in = 2; // - premiere_after = 3; // + premiere_in = 2; // + premiere_after = 3; // } // @@ -1649,8 +1649,8 @@ message SeasonReq { // enum SeasonType { Unknown = 0; // - Base = 1; // - Good = 2; // + Base = 1; // + Good = 2; // } // 视频合集小节信息 @@ -1817,15 +1817,15 @@ message Tab { // TAB跳转类型 enum TabOtype { UnknownOtype = 0; // 未知类型 - URL = 1; // url链接 - TopicNA = 2; // native话题活动 + URL = 1; // url链接 + TopicNA = 2; // native话题活动 } // TAB样式 enum TabStyle { UnknownStyle = 0; // 未知样式 - Text = 1; // 文字样式 - Pic = 2; // 图片样式 + Text = 1; // 文字样式 + Pic = 2; // 图片样式 } // TAG信息