diff --git a/grpc_api/bilibili/app/archive/v1/archive.proto b/grpc_api/bilibili/app/archive/v1/archive.proto index c661f7a..41030ae 100644 --- a/grpc_api/bilibili/app/archive/v1/archive.proto +++ b/grpc_api/bilibili/app/archive/v1/archive.proto @@ -3,7 +3,7 @@ syntax = "proto3"; package bilibili.app.archive.v1; // 稿件基本信息 -message Arc{ +message Arc { // 稿件avid int64 aid = 1; // 稿件分P数 @@ -69,7 +69,7 @@ message Arc{ } // UP主信息 -message Author{ +message Author { // UP主mid int64 mid = 1; // UP主昵称 @@ -79,7 +79,7 @@ message Author{ } // 分辨率 -message Dimension{ +message Dimension { // 宽度 int64 width = 1; // 高度 @@ -90,7 +90,7 @@ message Dimension{ } // 分P信息 -message Page{ +message Page { // 视频cid int64 cid = 1; // 分P序号 @@ -113,7 +113,7 @@ message Page{ } // 稿件控制标志 -message Rights{ +message Rights { // 老版是否付费 int32 bp = 1; // 允许充电 @@ -138,10 +138,14 @@ message Rights{ int32 ugc_pay_preview = 11; // 是否禁止后台播放 int32 no_background = 12; + // + int32 arc_pay = 13; + // + int32 pay_free_watch = 14; } // 合作成员信息 -message StaffInfo{ +message StaffInfo { // 成员mid int64 mid = 1; // 成员角色 @@ -152,7 +156,7 @@ message StaffInfo{ } // 状态数 -message Stat{ +message Stat { // 稿件avid int64 aid = 1; // 播放数 diff --git a/grpc_api/bilibili/app/playeronline/v1/playeronline.proto b/grpc_api/bilibili/app/playeronline/v1/playeronline.proto index 38272c4..de58dfd 100644 --- a/grpc_api/bilibili/app/playeronline/v1/playeronline.proto +++ b/grpc_api/bilibili/app/playeronline/v1/playeronline.proto @@ -6,16 +6,15 @@ package bilibili.app.playeronline.v1; service PlayerOnline { // 获取在线人数 rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply); + // + rpc PremiereInfo(PremiereInfoReq) returns (PremiereInfoReply); + // + rpc ReportWatch(ReportWatchReq) returns (NoReply); } -// 获取在线人数-请求 -message PlayerOnlineReq { - // 稿件 avid - int64 aid = 1; - // 视频 cid - int64 cid = 2; - // 是否在播放中 - bool play_open = 3; +// 空回复 +message NoReply { + } // 获取在线人数-回复 @@ -30,4 +29,44 @@ message PlayerOnlineReply { bool sdm_show = 4; // 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; } \ No newline at end of file diff --git a/grpc_api/bilibili/app/playurl/v1/playurl.proto b/grpc_api/bilibili/app/playurl/v1/playurl.proto index 4f679dc..51c3703 100644 --- a/grpc_api/bilibili/app/playurl/v1/playurl.proto +++ b/grpc_api/bilibili/app/playurl/v1/playurl.proto @@ -48,6 +48,18 @@ message Chronos { string file = 2; } +// +message ButtonStyle { + // + string text = 1; + // + string text_color = 2; + // + string bg_color = 3; + // + string jump_link = 4; +} + // message CloudConf { // 是否展示功能 @@ -65,6 +77,7 @@ enum CodeType { NOCODE = 0; // 默认 CODE264 = 1; // H.264 CODE265 = 2; // H.265 + CODEAV1 = 3; // av1 } // 设置类型 @@ -129,6 +142,8 @@ message DashItem { uint64 size = 7; // 帧率 string frame_rate = 8; + // + string widevine_pssh = 9; } // dash视频流 @@ -155,6 +170,8 @@ message DashVideo { int32 width = 10; // 高度 int32 height = 11; + // + string widevine_pssh = 12; } // 杜比伴音信息 @@ -333,6 +350,24 @@ enum PlayErr { 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 { // 清晰的 @@ -405,6 +440,8 @@ message PlayViewReply { Event event = 6; // AB ab = 7; + // + PlayLimit play_limit = 8; } // 播放页信息-请求 @@ -575,7 +612,6 @@ message UpgradeButton { string link = 2; } - // 互动视频升级提示 message UpgradeLimit { // 错误码 diff --git a/grpc_api/bilibili/app/topic/v1/topic.proto b/grpc_api/bilibili/app/topic/v1/topic.proto index 405ac9f..95c8abb 100644 --- a/grpc_api/bilibili/app/topic/v1/topic.proto +++ b/grpc_api/bilibili/app/topic/v1/topic.proto @@ -12,6 +12,16 @@ service Topic { rpc TopicDetailsAll(TopicDetailsAllReq) returns (TopicDetailsAllReply); // 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; // 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; } +// +message PubLayer { + // + int32 show_type = 1; + // + string jump_link = 2; + // + ButtonMeta button_meta = 3; + // + bool close_pub_layer_entry = 4; +} + // message RelationData { // @@ -194,6 +224,30 @@ message ThreePointItem { 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 { // @@ -232,6 +286,8 @@ message TopicCardItem { bilibili.app.dynamic.v2.DynamicItem dynamic_item = 2; // FoldCardItem ford_card_item = 3; + // + VideoSmallCardItem video_small_card_item = 4; } // @@ -248,9 +304,10 @@ message TopicCardList { // enum TopicCardType { - ILLEGAL_TYPE = 0; // - DYNAMIC = 1; // - FOLD = 2; // + ILLEGAL_TYPE = 0; // + DYNAMIC = 1; // + FOLD = 2; // + VIDEO_SMALL_CARD = 3; // } // @@ -263,6 +320,12 @@ message TopicDetailsAllReply { TopicCardList topic_card_list = 3; // 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; // 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; // 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; } + +// +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; +} diff --git a/grpc_api/bilibili/app/wall/v1/wall.proto b/grpc_api/bilibili/app/wall/v1/wall.proto index 23e158f..dba45f7 100644 --- a/grpc_api/bilibili/app/wall/v1/wall.proto +++ b/grpc_api/bilibili/app/wall/v1/wall.proto @@ -8,16 +8,6 @@ service Wall { rpc RuleInfo (RuleRequest) returns (RulesReply); } -// 获取免流规则信息-请求 -message RuleRequest {} - -// 获取免流规则信息-响应 -message RulesReply { - // 各ISP的免流规则信息组 - // ISP如: cu ct cm - map rulesInfo = 1; -} - // 免流规则信息 message RuleInfo { // 是否支持免流 @@ -29,10 +19,29 @@ message RuleInfo { string a = 3; // 匹配目标正则 string p = 4; + // + repeated string a_backup = 5; +} + +// 获取免流规则信息-请求 +message RuleRequest { + } // 免流规则信息组 message RulesInfo { // 免流规则信息 repeated RuleInfo rulesInfo = 1; -} \ No newline at end of file +} + +// 获取免流规则信息-响应 +message RulesReply { + // 各ISP的免流规则信息组 + // ISP如: cu ct cm + map rulesInfo = 1; + // + string hash_value = 2; +} + + + diff --git a/grpc_api/bilibili/gaia/gw/gw_api.proto b/grpc_api/bilibili/gaia/gw/gw_api.proto index de91ccf..8c6fab8 100644 --- a/grpc_api/bilibili/gaia/gw/gw_api.proto +++ b/grpc_api/bilibili/gaia/gw/gw_api.proto @@ -24,7 +24,7 @@ message DeviceAppList { } // 加密方式 -enum EncryptType{ +enum EncryptType { INVALID_ENCRYPT_TYPE = 0; // 非法值 CLIENT_AES = 1; // 同客户端人工约定AES加密私钥,存储在客户端 SERVER_RSA_AES = 2; // 客户端随机生成一个用于AES加密的私钥,并用服务端下发的RSA公钥来加密 diff --git a/grpc_api/bilibili/main/community/reply/v1/reply.proto b/grpc_api/bilibili/main/community/reply/v1/reply.proto index b232b6d..8bc7e2f 100644 --- a/grpc_api/bilibili/main/community/reply/v1/reply.proto +++ b/grpc_api/bilibili/main/community/reply/v1/reply.proto @@ -332,6 +332,26 @@ message MainListReq { // 用户信息 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 int64 mid = 1; @@ -402,6 +422,12 @@ message Member { int32 face_nft_new = 31; // 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 report_extra = 6; + // + string icon = 7; } // @@ -587,6 +615,8 @@ message ReplyControl { string time_desc = 23; // string biz_scene = 24; + // + string location = 25; } // @@ -871,6 +901,19 @@ message UpSelection { // 超链项 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; // @@ -889,6 +932,16 @@ message Url { bool is_half_screen = 8; // string exposure_report = 9; + // + Extra extra = 10; + // + bool underline = 11; + // + bool match_once = 12; + // + string pc_url = 13; + // + int32 icon_position = 14; } //