diff --git a/grpc_api/bilibili/account/fission/v1/fission.proto b/grpc_api/bilibili/account/fission/v1/fission.proto index bb9353c..18eca65 100644 --- a/grpc_api/bilibili/account/fission/v1/fission.proto +++ b/grpc_api/bilibili/account/fission/v1/fission.proto @@ -8,10 +8,17 @@ service Fission { rpc Entrance (EntranceReq) returns (EntranceReply); // 首页弹窗 rpc Window (WindowReq) returns (WindowReply); + // + rpc Privacy(PrivacyReq) returns (PrivacyReply); } -// 活动入口-请求 -message EntranceReq {} +// 动画效果 +message AnimateIcon { + // icon文件 + string icon = 1; + // 动效json文件 + string json = 2; +} // 活动入口-响应 message EntranceReply { @@ -25,8 +32,20 @@ message EntranceReply { AnimateIcon animate_icon = 4; } -// 首页弹窗-请求 -message WindowReq {} +// 活动入口-请求 +message EntranceReq {} + +// +message PrivacyReply { + // + string message = 1; +} + +// +message PrivacyReq { + // + string activity_uid = 1; +} //首页弹窗-响应 message WindowReply { @@ -39,10 +58,5 @@ message WindowReply { string report_data = 3; } -//动画效果 -message AnimateIcon { - // icon文件 - string icon = 1; - // 动效json文件 - string json = 2; -} \ No newline at end of file +// 首页弹窗-请求 +message WindowReq {} \ No newline at end of file diff --git a/grpc_api/bilibili/ad/v1/ad.proto b/grpc_api/bilibili/ad/v1/ad.proto index 78cef7c..53ffc4f 100644 --- a/grpc_api/bilibili/ad/v1/ad.proto +++ b/grpc_api/bilibili/ad/v1/ad.proto @@ -2,199 +2,91 @@ syntax = "proto3"; package bilibili.ad.v1; +import "google/protobuf/any.proto"; import "google/protobuf/wrappers.proto"; -// 广告控制 -message AdsControlDto { - // 视频是否有弹幕,如有,需请求弹幕广告 - int32 has_danmu = 1; - // 有弹幕的分P视频的cid - repeated int64 cids = 2; - // 有弹幕的ogv ep - repeated AdOgvEpDto eps = 3; -} - -// 有弹幕的ogv ep -message AdOgvEpDto { - // 分集epid - int64 epid = 1; - // 是否显示 "荐" - bool has_recommend = 2; -} - -// 广告数据 -message SourceContentDto { - // 广告请求id - string request_id = 1; - // 广告资源位source ID - int32 source_id = 2; - // 广告资源位resource ID - int32 resource_id = 3; - // 广告位上报标记,对广告返回数据恒为true - bool is_ad_loc = 4; - // 与天马现有逻辑一致, 0有含义 - // 0:内容 1:广告 - google.protobuf.Int32Value server_type = 5; - // 客户端IP回传拼接 - string client_ip = 6; - // 广告卡片位置在一刷中的位置, 天马用, 0有含义 - google.protobuf.Int32Value card_index = 7; - // 广告资源位source 位次 - int32 index = 8; - // 广告内容 - AdDto ad_content = 9; -} - -// 广告内容 -message AdDto { - // 广告创意ID - int64 creative_id = 1; - // 广告闭环上报回传数据 - string ad_cb = 2; - // 额外广告数据 - AdContentExtraDto extra = 3; - // 广告标记 - int32 cm_mark = 4; - // - int64 top_view_id = 5; - // - int32 creative_type = 6; - // - int32 card_type = 7; - // - int32 creative_style = 8; - // - int32 is_ad = 9; - // - CreativeDto creative_content = 10; -} - -// 额外广告数据 -message AdContentExtraDto { - // 动态布局 - string layout = 1; - // 展现监控url - repeated string show_urls = 2; - // 点击监控url - repeated string click_urls = 3; - // 弹幕创意列表展示第三方上报 - repeated string danmu_list_show_urls = 4; - // 弹幕创意列表点击第三方上报 - repeated string danmu_list_click_urls = 5; - // 弹幕详情页展示第三方上报 - repeated string danmu_detail_show_urls = 6; - // 弹幕商品添加购物车第三方上报 - repeated string danmu_trolley_add_urls = 7; - // useWebView默认false - bool use_ad_web_v2 = 8; - // app唤起白名单 - repeated string open_whitelist = 9; - // app下载白名单 - AppPackageDto download_whitelist = 10; - // 卡片相关信息 - AdCardDto card = 11; - // 视频播放和弹幕播放上报控制时间 ms - int32 report_time = 12; - // 是否优先唤起app store - int32 appstore_priority = 13; - // 广告售卖类型 - int32 sales_type = 14; - // 落地页是否预加载 - int32 preload_landingpage = 15; - // 是否需要展示风险行业提示 - bool special_industry = 16; - // 风险行业提示 - string special_industry_tips = 17; - // 是否展示下载弹框 - bool enable_download_dialog = 18; - // 是否允许分享 - bool enable_share = 19; - // 个人空间广告入口类型 - // 1:橱窗 2:商品店铺 3:小程序 - int32 upzone_entrance_type = 20; - // 个人空间广告入口上报id,橱窗id(当前用Mid)、店铺id或者小程序id - int32 upzone_entrance_report_id = 21; - // 分享数据 - AdShareInfoDto share_info = 22; - // topview图片链接,闪屏预下载用 - string topview_pic_url = 23; - // topview视频链接,闪屏预下载用 - string topview_video_url = 24; - // 点击区域 - // 0:表示banner可点击 1:表示素材可点击 - int32 click_area = 25; - // 店铺 - int64 shop_id = 26; - // up主 - int64 up_mid = 27; - // 回传id - string track_id = 28; - // 商店直投 - int32 enable_store_direct_launch = 29; - // DPA2.0商品ID - int64 product_id = 30; -} - -// -message CreativeDto { - // - string title = 1; - // - string description = 2; - // - string image_url = 3; - // - string image_md5 = 4; +// 自动播放视频 +message AdAutoPlayVideoDto { + // avid + int64 avid = 1; + // cid + int64 cid = 2; + // 分P + int64 page = 3; // + string from = 4; + // 是否自动播放 string url = 5; - // - string click_url = 6; - // - string show_url = 7; - // - int64 video_id = 8; - // - string thumbnail_url = 9; - // - string thumbnail_url_md5 = 10; - // - string logo_url = 11; - // - string logo_md5 = 12; - // - string username = 13; + // 是否自动播放 + string cover = 6; + // 是否自动播放 + bool auto_play = 7; + // 按钮是否动态变色 + bool btn_dyc_color = 8; + // 按钮动态变色时间 ms + int32 btn_dyc_time = 9; + // 用于做联播是否是同一个视频的id + int64 biz_id = 10; + // 开始播放三方监控 + repeated string process0_urls = 11; + // 播放3S三方监控 + repeated string play_3s_urls = 12; + // 播放5S三方监控 + repeated string play_5s_urls = 13; + // 横竖屏 + int32 orientation = 14; } -// app下载白名单 -message AppPackageDto { - // 包大小(单位bytes) - int64 size = 1; +// 商业标信息 +message AdBusinessMarkDto { + // 商业标样式 + // 0:不展示标 1:实心+文字 2:空心框+文字 3:纯文字标 4:纯图片标 + int32 type = 1; + // 商业标文案 + string text = 2; + // 商业标文案颜色,如#80FFFFFF RGBA + string text_color = 3; + // 夜间模式文字色 + string text_color_night = 4; + // 背景色 + string bg_color = 5; + // 夜间模式背景色 + string bg_color_night = 6; + // 边框色 + string border_color = 7; + // 夜间模式边框色 + string border_color_night = 8; + // 图片商业标 + string img_url = 9; + // 图片高度 + int32 img_height = 10; + // 图片宽度 + int32 img_width = 11; // - string display_name = 2; + string bg_border_color = 12; +} + +// 按钮 +message AdButtonDto { + // 类型 + // 1:落地页 2:应用唤起 3:应用下载 + int32 type = 1; + // 按钮文案 + string text = 2; + // 按钮跳转地址 + string jump_url = 3; + // 跳转监测链接 + string report_urls = 4; + // 唤起schema + string dlsuc_callup_url = 5; + // 游戏id + int32 game_id = 6; + // 游戏监控字段 + string game_monitor_param = 7; // - string apk_name = 3; - // url - string url = 4; - // bili schema url - string bili_url = 5; - // 包md5 - string md5 = 6; - // 包icon - string icon = 7; - // 开发者姓名 - string dev_name = 8; - // 权限地址 - string auth_url = 9; - // 权限名,逗号隔开 - string auth_name = 10; - // 版本 - string version = 11; - // 更新时间,yy-mm-hh格式 - string update_time = 12; - // 隐私协议标题 - string privacy_name = 13; - // 隐私协议url - string privacy_url = 14; + int32 game_channel_id = 8; + // + string game_channel_extra = 9; } // 卡片 @@ -289,16 +181,130 @@ message AdCardDto { AdverDto adver = 44; // 评分 int32 grade_level = 45; + // + bool support_transition = 46; + // + string transition = 47; + // + int32 under_player_interaction_style = 48; + // + string imax_landing_page_v2 = 49; + // + SubCardModule subcard_module = 50; + // + int32 grade_denominator = 51; + // + int32 star_level = 52; + // + Bulletin bulletin = 53; + // + Gift gift = 54; + // + repeated string game_tags = 55; + // + int32 ori_mark_hidden = 56; + // + bool use_multi_cover = 57; + // + WxProgramInfo wx_program_info = 58; + // + AndroidGamePageRes android_game_page_res = 59; + // + NotClickableArea not_clickable_area = 60; + // + ForwardReply forward_reply = 61; } -// 分享 -message AdShareInfoDto { - // 分享标题 - string title = 1; - // 分享副标题 - string subtitle = 2; - // 分享图片url - string image_url = 3; +// 额外广告数据 +message AdContentExtraDto { + // 动态布局 + string layout = 1; + // 展现监控url + repeated string show_urls = 2; + // 点击监控url + repeated string click_urls = 3; + // 弹幕创意列表展示第三方上报 + repeated string danmu_list_show_urls = 4; + // 弹幕创意列表点击第三方上报 + repeated string danmu_list_click_urls = 5; + // 弹幕详情页展示第三方上报 + repeated string danmu_detail_show_urls = 6; + // 弹幕商品添加购物车第三方上报 + repeated string danmu_trolley_add_urls = 7; + // useWebView默认false + bool use_ad_web_v2 = 8; + // app唤起白名单 + repeated string open_whitelist = 9; + // app下载白名单 + AppPackageDto download_whitelist = 10; + // 卡片相关信息 + AdCardDto card = 11; + // 视频播放和弹幕播放上报控制时间 ms + int32 report_time = 12; + // 是否优先唤起app store + int32 appstore_priority = 13; + // 广告售卖类型 + int32 sales_type = 14; + // 落地页是否预加载 + int32 preload_landingpage = 15; + // 是否需要展示风险行业提示 + bool special_industry = 16; + // 风险行业提示 + string special_industry_tips = 17; + // 是否展示下载弹框 + bool enable_download_dialog = 18; + // 是否允许分享 + bool enable_share = 19; + // 个人空间广告入口类型 + // 1:橱窗 2:商品店铺 3:小程序 + int32 upzone_entrance_type = 20; + // 个人空间广告入口上报id,橱窗id(当前用Mid)、店铺id或者小程序id + int32 upzone_entrance_report_id = 21; + // 分享数据 + AdShareInfoDto share_info = 22; + // topview图片链接,闪屏预下载用 + string topview_pic_url = 23; + // topview视频链接,闪屏预下载用 + string topview_video_url = 24; + // 点击区域 + // 0:表示banner可点击 1:表示素材可点击 + int32 click_area = 25; + // 店铺 + int64 shop_id = 26; + // up主 + int64 up_mid = 27; + // 回传id + string track_id = 28; + // 商店直投 + int32 enable_store_direct_launch = 29; + // DPA2.0商品ID + int64 product_id = 30; + // + bool enable_double_jump = 31; + // + repeated string show1s_urls = 32; + // + string from_track_id = 33; + // + bool store_callup_card = 34; + // + int32 landingpage_download_style = 35; + // + int32 special_industry_style = 36; + // + bool enable_h5_alert = 37; + // + int32 macro_replace_priority = 38; + // + int32 feedback_panel_style = 39; + // + string appstore_url = 40; + // + int32 enable_h5_pre_load = 41; + // + string h5_pre_load_url = 42; + // + string cm_from_track_id = 43; } // 广告卡片封面数据 @@ -318,84 +324,28 @@ message AdCoverDto { int32 image_width = 6; } -// 按钮 -message AdButtonDto { - // 类型 - // 1:落地页 2:应用唤起 3:应用下载 - int32 type = 1; - // 按钮文案 - string text = 2; - // 按钮跳转地址 - string jump_url = 3; - // 跳转监测链接 - string report_urls = 4; - // 唤起schema - string dlsuc_callup_url = 5; - //游戏id - int32 game_id = 6; - //游戏监控字段 - string game_monitor_param = 7; -} - -// 商业标信息 -message AdBusinessMarkDto { - // 商业标样式 - // 0:不展示标 1:实心+文字 2:空心框+文字 3:纯文字标 4:纯图片标 - int32 type = 1; - // 商业标文案 - string text = 2; - // 商业标文案颜色,如#80FFFFFF RGBA - string text_color = 3; - // 夜间模式文字色 - string text_color_night = 4; - // 背景色 - string bg_color = 5; - // 夜间模式背景色 - string bg_color_night = 6; - // 边框色 - string border_color = 7; - // 夜间模式边框色 - string border_color_night = 8; - // 图片商业标 - string img_url = 9; - // 图片高度 - int32 img_height = 10; - // 图片宽度 - int32 img_width = 11; +// 广告内容 +message AdDto { + // 广告创意ID + int64 creative_id = 1; + // 广告闭环上报回传数据 + string ad_cb = 2; + // 额外广告数据 + AdContentExtraDto extra = 3; + // 广告标记 + int32 cm_mark = 4; // - string bg_border_color = 12; -} - -// 自动播放视频 -message AdAutoPlayVideoDto { - // avid - int64 avid = 1; - // cid - int64 cid = 2; - // 分P - int64 page = 3; + int64 top_view_id = 5; // - string from = 4; - // 是否自动播放 - string url = 5; - // 是否自动播放 - string cover = 6; - // 是否自动播放 - bool auto_play = 7; - // 按钮是否动态变色 - bool btn_dyc_color = 8; - // 按钮动态变色时间 ms - int32 btn_dyc_time = 9; - // 用于做联播是否是同一个视频的id - int64 biz_id = 10; - // 开始播放三方监控 - repeated string process0_urls = 11; - // 播放3S三方监控 - repeated string play_3s_urls = 12; - // 播放5S三方监控 - repeated string play_5s_urls = 13; - // 横竖屏 - int32 orientation = 14; + int32 creative_type = 6; + // + int32 card_type = 7; + // + int32 creative_style = 8; + // + int32 is_ad = 9; + // + CreativeDto creative_content = 10; } // 反馈面板功能模块 @@ -404,6 +354,12 @@ message AdFeedbackPanelDto { string panel_type_text = 1; // 反馈面版信息 repeated AdFeedbackPanelModuleDto feedback_panel_detail = 2; + // + string toast = 3; + // + string open_rec_tips = 4; + // + string close_rec_tips = 5; } // 反馈面版信息 @@ -421,14 +377,8 @@ message AdFeedbackPanelModuleDto { string text = 5; // 二级文案数组 repeated AdSecondFeedbackPanelDto secondary_panel = 6; -} - -// 二级文案 -message AdSecondFeedbackPanelDto { - // 屏蔽理由id - int32 reason_id = 1; - // 理由文案 - string text = 2; + // + string sub_text = 7; } // 开放平台商品 @@ -443,18 +393,40 @@ message AdGoodDto { int64 sku_num = 4; } -// -message QualityInfo { - // - string icon = 1; - // +// 有弹幕的ogv ep +message AdOgvEpDto { + // 分集epid + int64 epid = 1; + // 是否显示 "荐" + bool has_recommend = 2; +} + +// 广告控制 +message AdsControlDto { + // 视频是否有弹幕,如有,需请求弹幕广告 + int32 has_danmu = 1; + // 有弹幕的分P视频的cid,已弃用 + repeated int64 cids = 2; + // 有弹幕的ogv ep + repeated AdOgvEpDto eps = 3; +} + +// 二级文案 +message AdSecondFeedbackPanelDto { + // 屏蔽理由id + int32 reason_id = 1; + // 理由文案 string text = 2; - // - bool is_bg = 3; - // - string bg_color = 4; - // - string bg_color_night = 5; +} + +// 分享 +message AdShareInfoDto { + // 分享标题 + string title = 1; + // 分享副标题 + string subtitle = 2; + // 分享图片url + string image_url = 3; } // 广告主信息 @@ -472,3 +444,568 @@ message AdverDto { // string adver_desc = 6; } + +// +message AndroidGamePageRes { + // + Module1 module1 = 1; + // + Module3 module3 = 2; + // + Module4 module4 = 3; + // + Module5 module5 = 4; + // + Module6 module6 = 5; + // + Module7 module7 = 6; + // + Module8 module8 = 7; + // + Module9 module9 = 8; + // + Module10 module10 = 9; + // + Module11 module11 = 10; + // + Module12 module12 = 11; + // + Module13 module13 = 12; + // + repeated int32 module_seq = 13; + // + string background_color = 14; + // + Module14 module14 = 15; +} + +// +message AndroidTag { + // + string text = 1; + // + int32 type = 2; +} + +// app下载白名单 +message AppPackageDto { + // 包大小(单位bytes) + int64 size = 1; + // + string display_name = 2; + // + string apk_name = 3; + // url + string url = 4; + // bili schema url + string bili_url = 5; + // 包md5 + string md5 = 6; + // 包icon + string icon = 7; + // 开发者姓名 + string dev_name = 8; + // 权限地址 + string auth_url = 9; + // 权限名,逗号隔开 + string auth_name = 10; + // 版本 + string version = 11; + // 更新时间,yy-mm-hh格式 + string update_time = 12; + // 隐私协议标题 + string privacy_name = 13; + // 隐私协议url + string privacy_url = 14; +} + +// +message Bulletin { + // + string tag_text = 1; + // + string text = 2; +} + +// +message Comment { + // + int64 game_base_id = 1; + // + string user_name = 2; + // + string user_face = 3; + // + int32 user_level = 4; + // + string comment_no = 5; + // + int32 grade = 6; + // + string content = 7; + // + int32 up_count = 8; +} + +// +message CreativeDto { + // + string title = 1; + // + string description = 2; + // + string image_url = 3; + // + string image_md5 = 4; + // + string url = 5; + // + string click_url = 6; + // + string show_url = 7; + // + int64 video_id = 8; + // + string thumbnail_url = 9; + // + string thumbnail_url_md5 = 10; + // + string logo_url = 11; + // + string logo_md5 = 12; + // + string username = 13; +} + +// +message CustomPlayUrl { + // + int32 play_time = 1; + // + repeated string urls = 2; +} + +// +message ForwardReply { + // + int64 comment_id = 1; + // + string message = 2; + // + string highlight_text = 3; + // + string highlight_prefix_icon = 4; + // + string callup_url = 5; + // + string jump_url = 6; + // + int32 jump_type = 7; + // + string author_name = 8; + // + string author_icon = 9; +} + +// +message Gift { + // + string icon = 1; + // + string night_icon = 2; + // + string text = 3; + // + string url = 4; +} + +// +message IosGamePageRes { + // + string logo = 1; + // + string name = 2; + // + string sub_titile = 3; + // + repeated string image_url = 4; + // + string desc = 5; + // + AdButtonDto game_button = 6; + // + double grade = 7; + // + string rank_num = 8; + // + string rank_name = 9; +} + +// +message Module1 { + // + string game_name = 1; + // + string game_icon = 2; + // + string developer_input_name = 3; + // + repeated AndroidTag tag_list = 4; +} + +// +message Module3 { + // + bool display = 1; + // + repeated QualityParmas quality_params = 3; +} + +// +message Module4 { + // + bool display = 1; + // + int32 gift_num = 2; + // + string gift_name = 3; + // + int32 gift_icon_num = 4; + // + repeated string icon_urls = 5; +} + +// +message Module5 { + // + bool display = 1; + // + string game_summary = 2; +} + +// +message Module6 { + // + bool display = 1; + // + string game_desc = 2; +} + +// +message Module7 { + // + bool display = 1; + // + repeated ScreenShots screen_shots = 2; +} + +// +message Module8 { + // + bool display = 1; + // + repeated string tag_list = 2; +} + +// +message Module9 { + // + bool display = 1; + // + string dev_introduction = 2; +} + +// +message Module10 { + // + bool display = 1; + // + string latest_update = 2; +} + +// +message Module11 { + // + bool display = 1; + // + repeated int32 star_number_list = 2; + // + string comment_str = 3; + // + double grade = 4; +} + +// +message Module12 { + // + bool display = 1; + // + repeated Comment comment_list = 2; + // + string comment_num = 3; + // + bool show_all_comment = 4; +} + +// +message Module13 { + // + int64 pkg_size = 1; + // + string customer_service = 2; + // + string website = 3; + // + string authority = 4; + // + string privacy = 5; + // + string developer_name = 6; + // + string update_time = 7; + // + string game_version = 8; + // + string android_pkg_name = 9; +} + +// +message Module14 { + // + repeated Reward reward_list = 1; + // + bool display = 2; +} + +// +message NotClickableArea { + // + int32 x = 1; + // + int32 y = 2; + // + int32 z = 3; +} + +// +message QualityInfo { + // + string icon = 1; + // + string text = 2; + // + bool is_bg = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; +} + +// +message QualityParmas { + // + string first_line = 1; + // + string second_line = 2; + // + double grade = 3; + // + string rank_icon = 4; + // + int32 quality_type = 5; +} + +// +message Reward { + // + int32 level = 1; + // + string title = 2; + // + string content = 3; + // + string pic = 4; + // + bool reach = 5; +} + +// +message ScreenShots { + // + string url = 1; + // + int32 height = 2; + // + int32 width = 3; + // + int32 seq = 4; +} + +// 广告数据 +message SourceContentDto { + // 广告请求id + string request_id = 1; + // 广告资源位source ID + int32 source_id = 2; + // 广告资源位resource ID + int32 resource_id = 3; + // 广告位上报标记,对广告返回数据恒为true + bool is_ad_loc = 4; + // 与天马现有逻辑一致, 0有含义 + // 0:内容 1:广告 + google.protobuf.Int32Value server_type = 5; + // 客户端IP回传拼接 + string client_ip = 6; + // 广告卡片位置在一刷中的位置, 天马用, 0有含义 + google.protobuf.Int32Value card_index = 7; + // 广告资源位source 位次 + int32 index = 8; + // 广告内容 + AdDto ad_content = 9; +} + +// +message SubCardModule { + // + string subcard_type = 1; + // + string icon = 2; + // + string desc = 3; + // + string rank_stars = 4; + // + string amount_number = 5; + // + string avatar = 6; + // + string title = 7; + // + AdButtonDto button = 8; + // + repeated TagInfo tag_infos = 9; +} + +// +message Tab2ExtraDto { + // + string cover_url = 1; + // + string title = 2; + // + string desc = 3; + // + AdButtonDto button = 5; + // + int32 auto_animate_time_ms = 6; + // + bool enable_click = 7; + // + string panel_url = 8; + // + repeated AppPackageDto download_whitelist = 9; + // + repeated string open_whitelist = 10; + // + bool use_ad_web_v2 = 11; + // + bool enable_store_direct_launch = 12; + // + int32 sales_type = 13; + // + int32 landingpage_download_style = 15; + // + int32 appstore_priority = 16; + // + string appstore_url = 17; + // + int32 appstore_delay_time = 18; + // + int32 page_cover_type = 19; + // + int32 page_pull_type = 20; + // + AndroidGamePageRes android_game_page_res = 21; + // + IosGamePageRes ios_game_page_res = 22; + // + AdBusinessMarkDto ad_tag_style = 23; + // + AdFeedbackPanelDto feedback_panel = 24; + // + string ad_cb = 25; + // + int32 url_type = 26; +} + +// +message TabExtraDto { + // + string tab_url = 1; + // + int32 enable_store_direct_launch = 2; + // + int32 store_callup_card = 3; + // + int32 sales_type = 4; + // + repeated AppPackageDto download_whitelist = 5; + // + bool special_industry = 6; + // + string special_industry_tips = 7; + // + repeated string open_whitelist = 8; + // + int32 landingpage_download_style = 9; + // + int32 appstore_priority = 10; + // + bool use_ad_web_v2 = 11; + // + bool enable_download_dialog = 12; + // + string appstore_url = 13; + // + int32 appstore_delay_time = 14; +} + +// +message TabInfoDto { + // + string tab_name = 1; + // + google.protobuf.Any extra = 2; + // + int32 tab_version = 3; +} + +// +message TagInfo { + // + string text = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string bg_color = 4; + // + string bg_color_night = 5; + // + string border_color = 6; + // + string border_color_night = 7; + // + string type = 8; +} + +// +message WxProgramInfo { + // + string org_id = 1; + // + string name = 2; + // + string path = 3; +} diff --git a/grpc_api/bilibili/api/player/v1/player.proto b/grpc_api/bilibili/api/player/v1/player.proto new file mode 100644 index 0000000..7bc23b3 --- /dev/null +++ b/grpc_api/bilibili/api/player/v1/player.proto @@ -0,0 +1,75 @@ +syntax = "proto3"; + +package bilibili.api.player.v1; + +// 心跳上报 +service Heartbeat { + // 客户端心跳上报 + rpc Mobile(HeartbeatReq) returns (HeartbeatReply); +} + +// 客户端心跳上报-响应 +message HeartbeatReply { + // 时间戳 + int64 ts = 1; +} + +// 客户端心跳上报-请求 +message HeartbeatReq { + // + int64 server_time = 1; + // + string session = 2; + // 用户 mid + int64 mid = 3; + // 稿件 avid + int64 aid = 4; + // 视频 cid + int64 cid = 5; + // + string sid = 6; + // + int64 epid = 7; + // + string type = 8; + // + int32 sub_type = 9; + // + int32 quality = 10; + // + int64 total_time = 11; + // + int64 paused_time = 12; + // + int64 played_time = 13; + // + int64 video_duration = 14; + // + string play_type = 15; + // + int32 network_type = 16; + // + int64 last_play_progress_time = 17; + // + int64 max_play_progress_time = 18; + // + int32 from = 19; + // + string from_spmid = 20; + // + string spmid = 21; + // + string epid_status = 22; + // + string play_status = 23; + // + string user_status = 24; + // + int64 actual_played_time = 25; + // + int32 auto_play = 26; + // + int64 list_play_time = 27; + // + int64 detail_play_time = 28; +} diff --git a/grpc_api/bilibili/api/probe/v1/probe.proto b/grpc_api/bilibili/api/probe/v1/probe.proto index 69223a8..eb3c2ec 100644 --- a/grpc_api/bilibili/api/probe/v1/probe.proto +++ b/grpc_api/bilibili/api/probe/v1/probe.proto @@ -15,20 +15,66 @@ service Probe { } // -message CodeReq { - // - int64 code = 1; +enum Category { + CATEGORY_UNSPECIFIED = 0; // + CATEGORY_ONE = 1; // + CATEGORY_TWO = 2; // + CATEGORY_THREE = 3; // } // message CodeReply {} // -message ProbeReq { +message CodeReq { // - int64 mid = 1; + int64 code = 1; +} + +// +message DynamicMessageUpdate { // - string buvid = 2; + SimpleMessage body = 1; +} + +// +message Embedded { + // + bool bool_val = 1; + // + int32 int32_val = 2; + // + int64 int64_val = 3; + // + float float_val = 4; + // + double double_val = 5; + // + string string_val = 6; + // + repeated int32 repeated_int32_val = 8; + // + repeated string repeated_string_val = 12; + // + map map_string_val = 13; + // + map map_error_val = 14; +} + +// +message ErrorMessage { + // + int64 code = 1; + // + string reason = 2; + // + string message = 3; +} + +// +enum ErrorReason { + PROBE_UNSPECIFIED = 0; // + PROBE_CATEGORY_NOTFOUND = 1; // } // @@ -40,11 +86,11 @@ message ProbeReply { } // -message ProbeStreamReq { +message ProbeReq { // int64 mid = 1; // - int64 sequence = 2; + string buvid = 2; } // @@ -58,13 +104,35 @@ message ProbeStreamReply { } // -message ProbeSubReq { +message ProbeStreamReq { // - int64 buvid = 1; + int64 mid = 1; + // + int64 sequence = 2; } // message ProbeSubReply { // int64 message_id = 1; -} \ No newline at end of file +} + +// +message ProbeSubReq { + // + int64 buvid = 1; +} + +// +message SimpleMessage { + // + int32 id = 1; + // + int64 num = 2; + // + string lang = 3; + // + int32 cate = 4; + // + Embedded embedded = 5; +} diff --git a/grpc_api/bilibili/app/archive/middleware/v1/preload.proto b/grpc_api/bilibili/app/archive/middleware/v1/preload.proto index e5b01e0..8abfaba 100644 --- a/grpc_api/bilibili/app/archive/middleware/v1/preload.proto +++ b/grpc_api/bilibili/app/archive/middleware/v1/preload.proto @@ -13,4 +13,6 @@ message PlayerArgs { // 返回url是否强制使用域名 // 0:不强制使用域名 1:http域名 2:https域名 int64 force_host = 4; + // + int64 voice_balance = 5; } \ No newline at end of file diff --git a/grpc_api/bilibili/app/archive/v1/archive.proto b/grpc_api/bilibili/app/archive/v1/archive.proto index aea0ad6..566e2e6 100644 --- a/grpc_api/bilibili/app/archive/v1/archive.proto +++ b/grpc_api/bilibili/app/archive/v1/archive.proto @@ -66,6 +66,14 @@ message Arc { int64 season_id = 29; // 新版属性位配置(也没用) int64 attribute_v2 = 30; + // + SeasonTheme season_theme = 31; + // + string short_link_v2 = 40; + // + int32 up_from_v2 = 41; + // + string first_frame = 42; } // UP主信息 @@ -110,6 +118,8 @@ message Page { string webLink = 8; // 分P分辨率 Dimension dimension = 9; + // + string first_frame = 10; } // 稿件控制标志 @@ -144,6 +154,16 @@ message Rights { int32 pay_free_watch = 14; } +// +message SeasonTheme { + // + string bg_color = 1; + // + string selected_bg_color = 2; + // + string text_color = 3; +} + // 合作成员信息 message StaffInfo { // 成员mid diff --git a/grpc_api/bilibili/app/dynamic/v2/dynamic.proto b/grpc_api/bilibili/app/dynamic/v2/dynamic.proto index 59e67a1..a4ef1ce 100644 --- a/grpc_api/bilibili/app/dynamic/v2/dynamic.proto +++ b/grpc_api/bilibili/app/dynamic/v2/dynamic.proto @@ -2591,6 +2591,10 @@ message MixUpListItem { VipInfo vip = 8; // 关注状态 Relation relation = 9; + // + int32 permire_state = 10; + // + string uri = 11; } message MixUpListLiveItem { @@ -2736,6 +2740,10 @@ message ModuleAuthor { bool show_follow = 12; // 是否置顶 bool is_top = 13; + // ip属地 + string ptime_location_text = 14; + // + bool show_level = 15; } // 动态列表渲染部分-用户模块-按钮 diff --git a/grpc_api/bilibili/app/playeronline/v1/playeronline.proto b/grpc_api/bilibili/app/playeronline/v1/playeronline.proto index de58dfd..8793702 100644 --- a/grpc_api/bilibili/app/playeronline/v1/playeronline.proto +++ b/grpc_api/bilibili/app/playeronline/v1/playeronline.proto @@ -13,9 +13,7 @@ service PlayerOnline { } // 空回复 -message NoReply { - -} +message NoReply {} // 获取在线人数-回复 message PlayerOnlineReply { diff --git a/grpc_api/bilibili/app/view/v1/view.proto b/grpc_api/bilibili/app/view/v1/view.proto index 6ccf1cc..bb3311a 100644 --- a/grpc_api/bilibili/app/view/v1/view.proto +++ b/grpc_api/bilibili/app/view/v1/view.proto @@ -4,6 +4,7 @@ package bilibili.app.view.v1; import "google/protobuf/any.proto"; import "bilibili/app/archive/middleware/v1/preload.proto"; import "bilibili/app/archive/v1/archive.proto"; +import "bilibili/pagination/pagination.proto"; service View { // 视频页详情页 @@ -26,13 +27,13 @@ service View { rpc ExposePlayerCard (ExposePlayerCardReq) returns (NoReply); // 点击签订契约 rpc AddContract (AddContractReq) returns (NoReply); - // + // 资源包 rpc ChronosPkg(ChronosPkgReq) returns (Chronos); // rpc CacheView(CacheViewReq) returns (CacheViewReply); // rpc ContinuousPlay(ContinuousPlayReq) returns (ContinuousPlayReply); - // + // rpc RelatesFeed(RelatesFeedReq) returns (RelatesFeedReply); // rpc PremiereArchive(PremiereArchiveReq) returns (PremiereArchiveReply); @@ -40,6 +41,12 @@ service View { rpc Reserve(ReserveReq) returns (ReserveReply); // rpc PlayerRelates(PlayerRelatesReq) returns (PlayerRelatesReply); + // + rpc SeasonActivityRecord(SeasonActivityRecordReq) returns (SeasonActivityRecordReply); + // + rpc SeasonWidgetExpose(SeasonWidgetExposeReq) returns (SeasonWidgetExposeReply); + // + rpc GetArcsPlayer(GetArcsPlayerReq) returns (GetArcsPlayerReply); } // 活动页资源包 @@ -125,6 +132,10 @@ message ActivitySeason { Config config = 29; // Online online = 30; + // + ArcExtra arc_extra = 31; + // + ReplyStyle reply_preface = 32; } // 点击签订契约-请求 @@ -149,6 +160,22 @@ message AdInfo { string ad_cb = 4; // int32 card_type = 5; + // + bytes extra = 6; +} + +// +message ArcExtra { + // + string arc_pub_location = 1; +} + +// +message ArcsPlayer { + // + int64 aid = 1; + // + map player_info = 2; } // @@ -293,6 +320,8 @@ message Button { string title = 1; // 跳转uri string uri = 2; + // + string icon = 3; } // @@ -429,6 +458,12 @@ message ClickActivitySeasonReq { int64 action = 5; } +// 点击播放器卡片-响应 +message ClickPlayerCardReply { + // + string message = 1; +} + // 点击播放器卡片-请求 message ClickPlayerCardReq { // 卡片id @@ -470,6 +505,12 @@ message CmIpad { int64 aid = 5; } +// +message CoinCustom { + // + string toast = 1; +} + // 互动弹幕条目信息 message CommandDm { // 弹幕id @@ -536,6 +577,14 @@ message Config { bool arc_play_story = 19; // string story_icon = 20; + // + bool landscape_story = 21; + // + bool arc_landscape_story = 22; + // + string landscape_icon = 23; + // + bool show_listen_button = 24; } // @@ -709,6 +758,8 @@ message ElecRank { repeated ElecRankItem list = 1; // 充电用户数 int64 count = 2; + // + string text = 3; } // 充电用户信息 @@ -755,6 +806,8 @@ message Episode { bool episode_pay = 14; // bool free_watch = 15; + // + string first_frame = 16; } // 播放器卡片曝光-请求 @@ -813,6 +866,20 @@ message FeedViewReq { string from_track_id = 10; } +// +message GetArcsPlayerReply { + // + repeated ArcsPlayer arcs_player = 1; +} + +// +message GetArcsPlayerReq { + // + repeated PlayAv play_avs = 1; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 2; +} + // message GoodsInfo { // @@ -904,6 +971,16 @@ message Label { string lottie_night = 8; } +// +message LikeAnimation { + // + string like_icon = 1; + // + string liked_icon = 2; + // + string like_animation = 3; +} + // message LikeCustom { // @@ -1019,9 +1096,7 @@ message Node { } // 空回复 -message NoReply { - -} +message NoReply {} // message Notice { @@ -1124,6 +1199,49 @@ enum OperationCardType { CardTypeSkip = 2; // 原跳转卡 } +// +message OperationCardV2 { + // + int64 id = 1; + // + int32 from = 2; + // + int32 to = 3; + // + bool status = 4; + // + int32 biz_type = 5; + // + OperationCardV2Content content = 6; + // + oneof param { + // + BizFollowVideoParam BizFollowVideoParam = 7; + // + BizReserveActivityParam BizReserveActivityParam = 8; + // + BizJumpLinkParam BizJumpLinkParam = 9; + // + BizReserveGameParam BizReserveGameParam = 10; + } +} + +// +message OperationCardV2Content { + // + string title = 1; + // + string subtitle = 2; + // + string icon = 3; + // + string button_title = 4; + // + string button_selected_title = 5; + // + bool show_selected = 6; +} + // 相关推荐(运营配置+AI推荐) message OperationRelate { // 模块标题 @@ -1175,6 +1293,14 @@ enum PayState { PayStateActive = 1; // } +// +message PlayAv { + // + int64 aid = 1; + // + int64 cid = 2; +} + // 卡片类型 enum PlayerCardType { PlayerCardTypeNone_VALUE = 0; // @@ -1351,6 +1477,26 @@ message Rank { string text = 3; } +// +message RankInfo { + // + string icon_url_night = 1; + // + string icon_url_day = 2; + // + string bkg_night_color = 3; + // + string bkg_day_color = 4; + // + string font_night_color = 5; + // + string font_day_color = 6; + // + string rank_content = 7; + // + string rank_link = 8; +} + // 推荐理由样式 message ReasonStyle { // @@ -1403,7 +1549,19 @@ message RecThreePoint { bool watch_later = 3; } -//相关推荐项 +// +message RefreshPage { + // + int32 refreshable = 1; + // + int32 refresh_icon = 2; + // + string refresh_text = 3; + // + float refresh_show = 4; +} + +// 相关推荐项 message Relate { // int64 aid = 1; @@ -1488,6 +1646,12 @@ message Relate { PowerIconStyle power_icon_style = 39; // string reserve_status_text = 40; + // + string dislike_report_data = 41; + // + RankInfo rank_info_game = 42; + // + string first_frame = 43; } // 相关推荐内容 @@ -1504,6 +1668,8 @@ message RelatesFeedReply { repeated Relate list = 1; // bool has_next = 2; + // + bilibili.pagination.PaginationReply pagination = 3; } // @@ -1534,6 +1700,10 @@ message RelatesFeedReq { int64 device_type = 12; // string ad_extra = 13; + // + bilibili.pagination.Pagination pagination = 14; + // + int32 refresh_num = 15; } // @@ -1544,6 +1714,16 @@ message RelateTab { string title = 2; } +// +message ReplyStyle { + // + string badge_url = 1; + // + string badge_text = 2; + // + int64 badge_type = 3; +} + // 用户操作状态 message ReqUser { // 用户是否关注UP @@ -1562,6 +1742,8 @@ message ReqUser { int32 attention_level = 7; // 是否收藏合集 int32 fav_season = 8; + // + Button elec_plus_btn = 9; } // @@ -1622,6 +1804,30 @@ message Season { string ogv_playurl = 13; } +// +message SeasonActivityRecordReply { + // + UgcSeasonActivity activity = 1; +} + +// +message SeasonActivityRecordReq { + // + int64 season_id = 1; + // + int64 activity_id = 2; + // + int32 action = 3; + // + int64 aid = 4; + // + int64 cid = 5; + // + int64 scene = 6; + // + string spmid = 7; +} + // message SeasonPlayer { // @@ -1646,6 +1852,20 @@ message SeasonReq { int64 season_id = 1; } +// +message SeasonShow { + // + string button_text = 1; + // + string join_text = 2; + // + string rule_text = 3; + // + string checkin_text = 4; + // + string checkin_prompt = 5; +} + // enum SeasonType { Unknown = 0; // @@ -1653,6 +1873,32 @@ enum SeasonType { Good = 2; // } +// +message SeasonWidgetExposeReply { + // + int64 season_id = 1; + // + int64 activity_id = 2; +} + +// +message SeasonWidgetExposeReq { + // + int64 mid = 1; + // + int32 type = 2; + // + int64 season_id = 3; + // + int64 activity_id = 4; + // + int64 aid = 5; + // + int64 cid = 6; + // + int64 scene = 7; +} + // 视频合集小节信息 message Section { // 小节id @@ -1819,6 +2065,7 @@ enum TabOtype { UnknownOtype = 0; // 未知类型 URL = 1; // url链接 TopicNA = 2; // native话题活动 + CmURI = 3; // 广告url } // TAB样式 @@ -1915,6 +2162,40 @@ message UgcSeason { ButtonStyle pay_button = 19; // string label_text_new = 20; + // + UgcSeasonActivity activity = 21; + // + repeated string season_ability = 22; +} + +// +message UgcSeasonActivity { + // + int32 type = 1; + // + int64 oid = 2; + // + int64 activity_id = 3; + // + string title = 4; + // + string intro = 5; + // + int32 day_count = 6; + // + int32 user_count = 7; + // + int64 join_deadline = 8; + // + int64 activity_deadline = 9; + // + int32 checkin_view_time = 10; + // + bool new_activity = 11; + // + UserActivity user_activity = 12; + // + SeasonShow season_show = 13; } // ugc视频合集状态数 @@ -1983,6 +2264,22 @@ message UpperInfos { int64 total_play_count = 4; } +// +message UserActivity { + // + int32 user_state = 1; + // + int64 last_checkin_date = 2; + // + int32 checkin_today = 3; + // + int32 user_day_count = 4; + // + int32 user_view_time = 5; + // + string portrait = 6; +} + // 用户装扮信息 message UserGarb { // 点赞动画url @@ -2010,6 +2307,8 @@ message VideoGuide { repeated OperationCardNew operation_card_new = 4; // 契约卡 ContractCard contract_card = 5; + // + repeated OperationCardV2 cards_second = 6; } // @@ -2238,6 +2537,18 @@ message ViewReply { int64 notes_count = 54; // PullClientAction pull_action = 55; + // + ArcExtra arc_extra = 56; + // + bilibili.pagination.PaginationReply pagination = 57; + // + LikeAnimation like_animation = 58; + // + ReplyStyle reply_preface = 59; + // + RefreshPage refresh_page = 60; + // + CoinCustom coin_custom = 61; } // 视频页详情页-请求 @@ -2284,6 +2595,12 @@ message ViewReq { int32 in_feed_play = 20; // string play_mode = 21; + // + bilibili.pagination.Pagination pagination = 22; + // + int32 refresh = 23; + // + int32 refresh_num = 24; } // diff --git a/grpc_api/bilibili/app/wall/v1/wall.proto b/grpc_api/bilibili/app/wall/v1/wall.proto index dba45f7..ca5a742 100644 --- a/grpc_api/bilibili/app/wall/v1/wall.proto +++ b/grpc_api/bilibili/app/wall/v1/wall.proto @@ -24,9 +24,7 @@ message RuleInfo { } // 获取免流规则信息-请求 -message RuleRequest { - -} +message RuleRequest {} // 免流规则信息组 message RulesInfo { diff --git a/grpc_api/bilibili/pagination/pagination.proto b/grpc_api/bilibili/pagination/pagination.proto new file mode 100644 index 0000000..148b70f --- /dev/null +++ b/grpc_api/bilibili/pagination/pagination.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; +package bilibili.pagination; + +// +message FeedPagination { + // + int32 page_size = 1; + // + string offset = 2; + // + bool is_refresh = 3; +} + +// +message FeedPaginationReply { + // + string next_offset = 1; + // + string prev_offset = 2; + // + string last_read_offset = 3; +} + +// +message Pagination { + // + int32 page_size = 1; + // + string next = 2; +} + +// +message PaginationReply { + // + string next = 1; + // + string prev = 2; +} \ No newline at end of file