From 17eee20dce01b6bea7ffe440a642433206519881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E6=98=93=E5=A7=90QwQ?= <45892418+SocialSisterYi@users.noreply.github.com> Date: Fri, 16 Sep 2022 22:41:58 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E3=80=90gRPC=20API=E3=80=91=20proto?= =?UTF-8?q?=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grpc_api/bilibili/app/view/v1/view.proto | 7 +- .../main/community/reply/v1/reply.proto | 410 ++- grpc_api/bilibili/pagination/pagination.proto | 1 + .../polymer/app/search/v1/search.proto | 2310 +++++++++++++++++ .../polymer/community/govern/v1/govern.proto | 96 + .../bilibili/polymer/contract/contract.proto | 51 +- grpc_api/bilibili/polymer/list/list.proto | 4 +- .../bilibili/tv/interfaces/dm/v1/dm.proto | 10 +- .../web/interfaces/v1/interfaces.proto | 32 +- grpc_api/bilibili/web/space/v1/space.proto | 282 ++ grpc_api/pgc/gaetway/vega/v1/vega.proto | 16 +- 11 files changed, 3094 insertions(+), 125 deletions(-) create mode 100644 grpc_api/bilibili/polymer/app/search/v1/search.proto create mode 100644 grpc_api/bilibili/polymer/community/govern/v1/govern.proto create mode 100644 grpc_api/bilibili/web/space/v1/space.proto diff --git a/grpc_api/bilibili/app/view/v1/view.proto b/grpc_api/bilibili/app/view/v1/view.proto index bb3311a..0c529d0 100644 --- a/grpc_api/bilibili/app/view/v1/view.proto +++ b/grpc_api/bilibili/app/view/v1/view.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + package bilibili.app.view.v1; import "google/protobuf/any.proto"; @@ -33,7 +34,7 @@ service View { rpc CacheView(CacheViewReq) returns (CacheViewReply); // rpc ContinuousPlay(ContinuousPlayReq) returns (ContinuousPlayReply); - // + // 播放页推荐IFS rpc RelatesFeed(RelatesFeedReq) returns (RelatesFeedReply); // rpc PremiereArchive(PremiereArchiveReq) returns (PremiereArchiveReply); @@ -1662,7 +1663,7 @@ message RelateItem { string cover = 2; } -// +// 播放页推荐IFS-响应 message RelatesFeedReply { // repeated Relate list = 1; @@ -1672,7 +1673,7 @@ message RelatesFeedReply { bilibili.pagination.PaginationReply pagination = 3; } -// +// 播放页推荐IFS-请求 message RelatesFeedReq { // int64 aid = 1; diff --git a/grpc_api/bilibili/main/community/reply/v1/reply.proto b/grpc_api/bilibili/main/community/reply/v1/reply.proto index 8bc7e2f..be3b731 100644 --- a/grpc_api/bilibili/main/community/reply/v1/reply.proto +++ b/grpc_api/bilibili/main/community/reply/v1/reply.proto @@ -7,25 +7,27 @@ import "google/protobuf/any.proto"; // 评论区 service Reply { // 主评论列表接口 - rpc MainList (MainListReq) returns (MainListReply); + rpc MainList(MainListReq) returns (MainListReply); // 二级评论明细接口 - rpc DetailList (DetailListReq) returns (DetailListReply); + rpc DetailList(DetailListReq) returns (DetailListReply); // 对话评论树接口 - rpc DialogList (DialogListReq) returns (DialogListReply); + rpc DialogList(DialogListReq) returns (DialogListReply); // 评论预览接口 - rpc PreviewList (PreviewListReq) returns (PreviewListReply); + rpc PreviewList(PreviewListReq) returns (PreviewListReply); // 评论搜索item前置发布接口 - rpc SearchItemPreHook (SearchItemPreHookReq) returns (SearchItemPreHookReply); + rpc SearchItemPreHook(SearchItemPreHookReq) returns (SearchItemPreHookReply); // 评论搜索插入项目接口 - rpc SearchItem (SearchItemReq) returns (SearchItemReply); + rpc SearchItem(SearchItemReq) returns (SearchItemReply); + // 评论at用户搜索接口 + rpc AtSearch(AtSearchReq) returns (AtSearchReply); + // 查询单条评论接口 + rpc ReplyInfo(ReplyInfoReq) returns (ReplyInfoReply); // - rpc AtSearch (AtSearchReq) returns (AtSearchReply); - // - rpc ReplyInfo (ReplyInfoReq) returns (ReplyInfoReply); - // - rpc UserCallback (UserCallbackReq) returns (UserCallbackReply); - // - rpc ShareRepliesInfo (ShareRepliesInfoReq) returns (ShareRepliesInfoResp); + rpc UserCallback(UserCallbackReq) returns (UserCallbackReply); + // 评论分享材料接口 + rpc ShareRepliesInfo(ShareRepliesInfoReq) returns (ShareRepliesInfoResp); + // 评论表情推荐列表接口 + rpc SuggestEmotes(SuggestEmotesReq) returns (SuggestEmotesResp); } // 活动 @@ -49,41 +51,41 @@ message ArticleSearchItem { repeated string covers = 3; } -// +// 评论at用户搜索组 message AtGroup { - // + // 组类型 int32 group_type = 1; - // + // 组标题 string group_name = 2; - // + // 评论at用户搜索列表 repeated AtItem items = 3; } -// +// 评论at用户搜索条目 message AtItem { - // + // 用户mid int64 mid = 1; - // + // 用户名 string name = 2; - // + // 用户头像url string face = 3; - // + // 用户是否关注 int32 fans = 4; - // + // 用户认证类型 int32 official_verify_type = 5; } -// +// 评论at用户搜索-响应 message AtSearchReply { - // + // 评论at用户搜索组 repeated AtGroup groups = 1; } -// +// 评论at用户搜索-请求 message AtSearchReq { // int64 mid = 1; - // + // 关键字 string keyword = 2; } @@ -97,7 +99,7 @@ message CM { message Content { // 评论文本 string message = 1; - // at到的用户信息 + // 需要渲染的用户转义 map menber = 2; // 需要渲染的表情转义 map emote = 3; @@ -107,6 +109,10 @@ message Content { map url = 5; // 投票信息 Vote vote = 6; + // at到的用户mid列表 + map at_name_to_mid = 7; + // 富文本 + RichText rich_text = 8; } // 页面游标回复 @@ -154,7 +160,7 @@ message DetailListReply { message DetailListReq { // 目标评论区id int64 oid = 1; - // 目标评论区类型 + // 目标评论区业务type int64 type = 2; // 根评论rpid int64 root = 3; @@ -168,9 +174,9 @@ message DetailListReq { // 来源标识 enum DetailListScene { - REPLY = 0; // 评论区展开 + REPLY = 0; // 评论区展开 MSG_FEED = 1; // 回复消息推送 - NOTIFY = 2; // + NOTIFY = 2; // } // 对话评论树-响应 @@ -189,7 +195,7 @@ message DialogListReply { message DialogListReq { // 目标评论区id int64 oid = 1; - // 目标评论区类型 + // 目标评论区业务type int64 type = 2; // 根评论rpid int64 root = 3; @@ -222,6 +228,8 @@ message Emote { int64 package_id = 6; // string gif_url = 7; + // + string text = 8; } // 商品项目 @@ -318,16 +326,20 @@ message MainListReply { message MainListReq { // 目标评论区id int64 oid = 1; - // 目标评论区类型 + // 目标评论区业务type int64 type = 2; // 页面游标 CursorReq cursor = 3; // 扩展数据json string extra = 4; - // 广告扩展json + // 广告扩展 string ad_extra = 5; // 目标评论rpid int64 rpid = 6; + // + int64 seek_rpid = 7; + // 评论区筛选类型 取值可为: ["全部" "粉丝评论" "笔记长评"] + string filter_tag_name = 8; } // 用户信息 @@ -406,13 +418,13 @@ message Member { string vip_label_text = 23; // 会员标颜色 string vip_label_theme = 24; - // + // 粉丝勋章底色 int64 fans_medal_color_end = 25; - // + // 粉丝勋章边框颜色 int64 fans_medal_color_border = 26; - // + // 粉丝勋章名颜色 int64 fans_medal_color_name = 27; - // + // 粉丝勋章等级颜色 int64 fans_medal_color_level = 28; // int64 fans_guard_level = 29; @@ -430,6 +442,156 @@ message Member { string fans_honor_icon = 35; } +// 用户信息V2 +message MemberV2 { + // 基本信息 + message Basic { + // 用户mid + int64 mid = 1; + // 昵称 + string name = 2; + // 性别 + string sex = 3; + // 头像url + string face = 4; + // 等级 + int64 level = 5; + } + // 认证 + message Official { + // 认证类型 + int64 verify_type = 1; + } + // 大会员 + message Vip { + // 会员类型 + // 0:不是大会员 1:月度会员 2:年度大会员 + int64 type = 1; + // 会员状态 + int64 status = 2; + // 会员样式 + int64 theme_type = 3; + // 会员铭牌样式url + string label_path = 4; + // + string nickname_color = 5; + // + int32 avatar_subscript = 6; + // + string label_text = 7; + // + string vip_label_theme = 8; + } + // 装扮 + message Garb { + // 头像框url + string pendant_image = 1; + // 装扮卡url + string card_image = 2; + // 有关注按钮时的装扮卡url + string card_image_with_focus = 3; + // 专属装扮页面url + string card_jump_url = 4; + // 专属装扮id + string card_number = 5; + // 专属装扮id显示颜色 + string card_fan_color = 6; + // 是否为专属装扮卡 + bool card_is_fan = 7; + } + // 粉丝勋章 + message Medal { + // 粉丝勋章名 + string name = 1; + // 粉丝勋章等级 + int64 level = 2; + // 粉丝勋章显示颜色 + int64 color_start = 3; + // 粉丝勋章底色 + int64 color_end = 4; + // 粉丝勋章边框颜色 + int64 color_border = 5; + // 粉丝勋章名颜色 + int64 color_name = 6; + // 粉丝勋章等级颜色 + int64 color_level = 7; + // + int64 guard_level = 8; + // + string first_icon = 9; + // + int64 level_bg_color = 11; + } + // + enum RegionType { + DEFAULT = 0; // + MAINLAND = 1; // + GAT = 2; // + } + // + message Region { + // + RegionType type = 1; + // + string icon = 2; + // + int32 show_status = 3; + } + // + message Interaction { + // + string itype = 1; + // + string metadata_url = 2; + // + string nft_id = 3; + // + Region region = 4; + + } + // NFT + message Nft { + // + int32 face = 1; + // + Interaction interaction = 2; + } + // 硬核会员 + message Senior { + // 是否为硬核会员 + int32 is_senior_member = 1; + } + // 契约 + message Contractor { + // + bool is_contractor = 1; + // + string contract_desc = 2; + } + // + enum ShowStatus { + SHOWDEFAULT = 0; // + ZOOMINMAINLAND = 1; // + RAW = 2; // + } + // 基本信息 + Basic basic = 1; + // 认证信息 + Official official = 2; + // 大会员信息 + Vip vip = 3; + // 装扮信息 + Garb garb = 4; + // 粉丝勋章信息 + Medal medal = 5; + // NFT信息 + Nft nft = 6; + // 硬核会员信息 + Senior senior = 7; + // 契约信息 + Contractor contractor = 8; +} + // 排序方式 enum Mode { DEFAULT = 0; // @@ -504,7 +666,7 @@ message PreviewListReply { message PreviewListReq { // 目标评论区id int64 oid = 1; - // 目标评论区类型 + // 目标评论区业务type int64 type = 2; // 页面游标 CursorReq cursor = 3; @@ -538,30 +700,34 @@ message QoeScoreItem { float score = 3; } -// +// 评论条目标签信息 message ReplyCardLabel { - // + // 标签文本 string text_content = 1; - // + // 文本颜色 string text_color_day = 2; - // + // 文本颜色夜间 string text_color_night = 3; - // + // 标签颜色 string label_color_day = 4; - // + // 标签颜色夜间 string label_color_night = 5; // string image = 6; // int32 type = 7; - // + // 背景url string background = 8; - // + // 背景宽 double background_width = 9; - // + // 背景高 double background_height = 10; - // + // 点击跳转url string jump_url = 11; + // + int64 effect = 12; + // + int64 effect_start_time = 13; } // 评论条目控制字段 @@ -603,19 +769,19 @@ message ReplyControl { bool is_contractor = 17; // 是否是笔记评论 bool is_note = 18; - // + // 评论条目标签列表 repeated ReplyCardLabel card_labels = 19; - // + // 子评论数文案 "共x条回复" string sub_reply_entry_text = 20; - // + // 子评论数文案 "相关回复共x条" string sub_reply_title_text = 21; // string contract_desc = 22; - // + // 发布时间文案 "x天前发布" string time_desc = 23; // string biz_scene = 24; - // + // IP属地信息 "IP属地:xxx" string location = 25; } @@ -661,22 +827,45 @@ message ReplyInfo { Member member = 13; // 评论控制字段 ReplyControl reply_control = 14; + // 发布者信息V2 + MemberV2 member_v2 = 15; } -// +// 查询单条评论-响应 message ReplyInfoReply { - // + // 评论条目信息 ReplyInfo reply = 1; } -// +// 查询单条评论-请求 message ReplyInfoReq { - // + // 评论rpid int64 rpid = 1; // int32 scene = 2; } +// 富文本 +message RichText { + // 富文本类型 + oneof item { + // 笔记 + RichTextNote note = 1; + } +} + +// 笔记 +message RichTextNote { + // + string summary = 1; + // + repeated string images = 2; + // + string click_url = 3; + // + string last_mtime_text = 4; +} + // 评论搜索插入项目 message SearchItem { // @@ -722,7 +911,7 @@ message SearchItemPreHookReply { message SearchItemPreHookReq { // 目标评论区id int64 oid = 1; - // 目标评论区类型 + // 目标评论区业务type int64 type = 2; } @@ -744,22 +933,22 @@ message SearchItemReplyExtraInfo { // 评论搜索插入项目-请求 message SearchItemReq { - //页面游标 + // 页面游标 SearchItemCursorReq cursor = 1; - //目标评论区id + // 目标评论区id int64 oid = 2; - //评论区类型 + // 目标评论区业务type int64 type = 3; - //搜索关键词 + // 搜索关键词 string keyword = 4; } // enum SearchItemType { DEFAULT_ITEM_TYPE = 0; // - GOODS = 1; // - VIDEO = 2; // - ARTICLE = 3; // + GOODS = 1; // + VIDEO = 2; // + ARTICLE = 3; // } // @@ -768,34 +957,36 @@ enum SearchItemVideoSubType { PGC = 1; // } -// +// 评论分享材料-请求 message ShareRepliesInfoReq { - // + // 评论rpid列表 + repeated int64 rpids = 1; + // 目标评论区id int64 oid = 2; - // + // 目标评论区业务type int64 type = 3; } -// +// 评论分享材料-响应 message ShareRepliesInfoResp { // message ShareExtra { // - bool is_pgc = 1; + bool is_pgc = 1; } - // + // 评论分享条目列表 repeated ShareReplyInfo infos = 1; - // + // 源内容标题 string from_title = 2; - // + // 源内容UP主 string from_up = 3; - // + // 源内容封面url string from_pic = 4; - // + // 源内容页面url string url = 5; - // + // logo url string slogan_pic = 6; - // + // 标语 string slogan_text = 7; // ShareReplyTopic topic = 8; @@ -803,17 +994,17 @@ message ShareRepliesInfoResp { ShareExtra extra = 9; } -// +// 评论分享条目信息 message ShareReplyInfo { - // + // 用户信息 Member member = 1; - // + // 评论主体信息 Content content = 2; - // + // 分享标题(评论发布者昵称) string title = 3; - // + // 分享副标题 "发表了评论" string sub_title = 4; - // + // 荣誉信息文案 "获得了up主点赞" string achievement_text = 5; // string label_url = 6; @@ -829,6 +1020,13 @@ message ShareReplyTopic { // 评论区控制字段 message SubjectControl { + // 评论区筛选类型 + message FilterTag { + // 类型名 + string name = 1; + // + string event_id = 2; + } // UP主mid int64 up_mid = 1; // 自己是否为协管 @@ -865,10 +1063,32 @@ message SubjectControl { string title = 17; // 离开态输入框的文案 string giveup_text = 18; - // + // 是否允许笔记 bool has_note_access = 19; // bool disable_jump_emote = 20; + // + string empty_background_text_plain = 21; + // + string empty_background_text_highlight = 22; + // + string empty_background_uri = 23; + // 评论区筛选类型列表 + repeated FilterTag support_filter_tags = 24; +} + +// 评论表情推荐列表-请求 +message SuggestEmotesReq { + // 目标评论区id + int64 oid = 1; + // 目标评论区业务type + int64 type = 2; +} + +// 评论表情推荐列表-响应 +message SuggestEmotesResp { + // 表情推荐列表 + repeated Emote emotes = 1; } // 话题项 @@ -891,7 +1111,7 @@ message UGCVideoSearchItem { string cover = 4; } -// +// 精选评论 message UpSelection { // 待审评论数 int64 pending_count = 1; @@ -901,7 +1121,7 @@ message UpSelection { // 超链项 message Url { - // + // 扩展字段 message Extra { // int64 goods_item_id = 1; @@ -909,7 +1129,7 @@ message Url { string goods_prefetched_cache = 2; // int32 goods_show_type = 3; - // + // 热词搜索 bool is_word_search = 4; // int64 goods_cm_control = 5; @@ -920,7 +1140,7 @@ message Url { int64 state = 2; // 图标url string prefix_icon = 3; - // + // 客户端内跳转uri string app_url_schema = 4; // string app_name = 5; @@ -928,17 +1148,17 @@ message Url { string app_package_name = 6; // 上报id string click_report = 7; - // + // 是否半屏打开 bool is_half_screen = 8; // string exposure_report = 9; - // + // 扩展字段 Extra extra = 10; - // + // 是否下划线 bool underline = 11; // bool match_once = 12; - // + // 网页url string pc_url = 13; // int32 icon_position = 14; @@ -950,9 +1170,7 @@ enum UserCallbackAction { } // -message UserCallbackReply { - -} +message UserCallbackReply {} // message UserCallbackReq { diff --git a/grpc_api/bilibili/pagination/pagination.proto b/grpc_api/bilibili/pagination/pagination.proto index 148b70f..b229841 100644 --- a/grpc_api/bilibili/pagination/pagination.proto +++ b/grpc_api/bilibili/pagination/pagination.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + package bilibili.pagination; // diff --git a/grpc_api/bilibili/polymer/app/search/v1/search.proto b/grpc_api/bilibili/polymer/app/search/v1/search.proto new file mode 100644 index 0000000..37a0bd0 --- /dev/null +++ b/grpc_api/bilibili/polymer/app/search/v1/search.proto @@ -0,0 +1,2310 @@ +syntax = "proto3"; + +package bilibili.polymer.app.search.v1; + +import "bilibili/app/archive/middleware/v1/preload.proto"; +import "bilibili/pagination/pagination.proto"; + +// +service Search { + // + rpc SearchAll(SearchAllRequest) returns (SearchAllResponse); + // + rpc SearchByType(SearchByTypeRequest) returns (SearchByTypeResponse); + // + rpc SearchComic(SearchComicRequest) returns (SearchComicResponse); +} + +// +message Args { + // + int32 online = 1; + // + string rname = 2; + // + int64 room_id = 3; + // + string tname = 4; + // + int64 up_id = 5; + // + string up_name = 6; + // + int64 rid = 7; + // + int64 tid = 8; + // + int64 aid = 9; +} + +// +message Avatar { + // + string cover = 1; + // + string event = 2; + // + string event_v2 = 3; + // + string text = 4; + // + int64 up_id = 5; + // + string uri = 6; + // + int32 face_nft_new = 7; + // + NftFaceIcon nft_face_icon = 8; +} + +// +message AvItem { + // + string title = 1; + // + string cover = 2; + // + string uri = 3; + // + string ctime_label = 4; + // + string duration = 5; + // + int32 play = 6; + // + int64 danmaku = 7; + // + int32 ctime = 8; + // + string goto = 9; + // + string param = 10; + // + int32 position = 11; + // + string ctime_label_v2 = 12; +} + +// +message Background { + // + int32 show = 1; + // + string bg_pic_url = 2; + // + string fg_pic_url = 3; +} + +// +message Badge { + // + string text = 1; + // + string bg_cover = 2; +} + +// +message Badge2 { + // + string bg_cover = 1; + // + string text = 2; +} + +// +message BottomButton { + // + string desc = 1; + // + string link = 2; +} + +// +message BrandADAccount { + // + string param = 1; + // + string goto = 2; + // + int64 mid = 3; + // + string name = 4; + // + string face = 5; + // + string sign = 6; + // + Relation relation = 7; + // + int64 roomid = 8; + // + int64 live_status = 9; + // + string live_link = 10; + // + OfficialVerify official_verify = 11; + // + VipInfo vip = 12; + // + string uri = 13; + // + int32 face_nft_new = 14; +} + +// +message BrandADArc { + // + string param = 1; + // + string goto = 2; + // + int64 aid = 3; + // + int64 play = 4; + // + int64 reply = 5; + // + string duration = 6; + // + string author = 7; + // + string title = 8; + // + string uri = 9; + // + string cover = 10; +} + +// +message Button { + // + string text = 1; + // + string param = 2; + // + string uri = 3; + // + string event = 4; + // + int32 selected = 5; + // + int32 type = 6; + // + string event_v2 = 7; + // + Relation relation = 8; +} + +// +message ButtonMeta { + // + string icon = 1; + // + string text = 2; + // + string button_status = 3; + // + string toast = 4; +} + +// +message CardBusinessBadge { + // + GotoIcon goto_icon = 1; + // + ReasonStyle badge_style = 2; +} + +// +enum CategorySort { + CATEGORY_SORT_DEFAULT = 0; // + CATEGORY_SORT_PUBLISH_TIME = 1; // + CATEGORY_SORT_CLICK_COUNT = 2; // + CATEGORY_SORT_COMMENT_COUNT = 3; // + CATEGORY_SORT_LIKE_COUNT = 4; // +} + +// +message ChannelLabel { + // + string text = 1; + // + string uri = 2; +} + +// +message ChannelMixedItem { + // + int64 id = 1; + // + int32 cover_left_icon1 = 2; + // + string cover_left_text1 = 3; + // + string cover = 4; + // + string goto = 5; + // + string param = 6; + // + string uri = 7; + // + string title = 8; + // + Badge2 badge = 9; +} + +// +message CheckMore { + // + string content = 1; + // + string uri = 2; +} + +// +message CloudGameParams { + // + int64 source_from = 1; + // + string scene = 2; +} + +// +message DetailsRelationItem { + // + string title = 1; + // + string cover = 2; + // + string cover_left_text = 3; + // + ReasonStyle cover_badge_style = 4; + // + string module_pos = 5; + // + string goto = 6; + // + string param = 7; + // + string uri = 8; + // + int32 position = 9; + // + string cover_left_text_v2 = 10; + // + ReasonStyle cover_badge_style_v2 = 11; +} + +// +message DislikeReason { + // + int32 id = 1; + // + string name = 2; +} + +// +message DisplayOption { + // + int32 video_title_row = 1; + // + int32 search_page_visual_opti = 2; +} + +// +message DyTopic { + // + string title = 1; + // + string uri = 2; +} + +// +message EasterEgg { + // + int32 id = 1; + // + int32 show_count = 2; + // + int32 type = 3; + // + string url = 4; + // + int32 close_count = 5; + // + int32 mask_transparency = 6; + // + string mask_color = 7; + // + int32 pic_type = 8; + // + int32 show_time = 9; + // + string source_url = 10; + // + string source_md5 = 11; + // + int32 source_size = 12; +} + +// +message Episode { + // + string uri = 1; + // + string param = 2; + // + string index = 3; + // + repeated ReasonStyle badges = 4; + // + int32 position = 5; +} + +// +message EpisodeNew { + // + string title = 1; + // + string uri = 2; + // + string param = 3; + // + int32 is_new = 4; + // + repeated ReasonStyle badges = 5; + // + int32 type = 6; + // + int32 position = 7; + // + string cover = 8; + // + string label = 9; +} + +// +message ExtraLink { + // + string text = 1; + // + string uri = 2; +} + +// +message FollowButton { + // + string icon = 1; + // + map texts = 2; + // + string status_report = 3; +} + +// +message FullTextResult { + // + int32 type = 1; + // + string show_text = 2; + // + int64 jump_start_progress = 3; + // + string jump_uri = 4; +} + +// +message GotoIcon { + // + string icon_url = 1; + // + string icon_night_url = 2; + // + int32 icon_width = 3; + // + int32 icon_height = 4; +} + +// +message InlineProgressBar { + // + string icon_drag = 1; + // + string icon_drag_hash = 2; + // + string icon_stop = 3; + // + string icon_stop_hash = 4; +} + +// +message InlineThreePointPanel { + // + int32 panel_type = 1; + // + string share_id = 2; + // + string share_origin = 3; + // + repeated ShareButtonItem functional_buttons = 4; +} + +message Item { + // + string uri = 1; + // + string param = 2; + // + string goto = 3; + // + string linktype = 4; + // + int32 position = 5; + // + string trackid = 6; + // + oneof card_item { + // + SearchSpecialCard special = 7; + // + SearchArticleCard article = 8; + // + SearchBannerCard banner = 9; + // + SearchLiveCard live = 10; + // + SearchGameCard game = 11; + // + SearchPurchaseCard purchase = 12; + // + SearchRecommendWordCard recommend_word = 13; + // + SearchDynamicCard dynamic = 14; + // + SearchNoResultSuggestWordCard suggest_keyword = 15; + // + SearchSpecialGuideCard special_guide = 16; + // + SearchComicCard comic = 17; + // + SearchNewChannelCard channel_new = 18; + // + SearchOgvCard ogv_card = 19; + // + SearchOgvRelationCard bangumi_relates = 20; + // + SearchOgvRecommendCard find_more = 21; + // + SearchSportCard esport = 22; + // + SearchAuthorNewCard author_new = 23; + // + SearchTipsCard tips = 24; + // + SearchAdCard cm = 25; + // + SearchPediaCard pedia_card = 26; + // + SearchUgcInlineCard ugc_inline = 27; + // + SearchLiveInlineCard live_inline = 28; + // + SearchTopGameCard top_game = 29; + // + SearchOlympicGameCard sports = 30; + // + SearchOlympicWikiCard pedia_card_inline = 31; + // + SearchRecommendTipCard recommend_tips = 32; + // + SearchCollectionCard collection_card = 33; + // + SearchOgvChannelCard ogv_channel = 34; + // + SearchOgvInlineCard ogv_inline = 35; + // + SearchUpperCard author = 36; + // + SearchVideoCard av = 37; + // + SearchBangumiCard bangumi = 38; + // + SearchSportInlineCard esports_inline = 39; + } +} + +// +message LikeResource { + // + string url = 1; + // + string content_hash = 2; +} + +// +message LiveBadgeResource { + // + string text = 1; + // + string animation_url = 2; + // + string animation_url_hash = 3; + // + string background_color_light = 4; + // + string background_color_night = 5; + // + int64 alpha_light = 6; + // + int64 alpha_night = 7; + // + string font_color = 8; +} + +// +message Mask { + // + Avatar avatar = 1; + // + Button button = 2; +} + +// +message MatchInfoObj { + // + int64 id = 1; + // + int32 status = 2; + // + string match_stage = 3; + // + MatchTeam team1 = 4; + // + MatchTeam team2 = 5; + // + MatchItem match_label = 6; + // + MatchItem match_time = 7; + // + MatchItem match_button = 8; +} + +// +message MatchItem { + // + int32 state = 1; + // + string text = 2; + // + string text_color = 3; + // + string text_color_night = 4; + // + string uri = 5; + // + string live_link = 6; + // + Texts texts = 7; +} + +// +message MatchTeam { + // + int64 id = 1; + // + string title = 2; + // + string cover = 3; + // + int32 score = 4; +} + +// +message Nav { + // + string name = 1; + // + int32 total = 2; + // + int32 pages = 3; + // + int32 type = 4; +} + +// +message Navigation { + // + int64 id = 1; + // + repeated Navigation children = 2; + // + repeated Navigation inline_children = 3; + // + string title = 4; + // + string uri = 5; + // + NavigationButton button = 6; +} + +// +message NavigationButton { + // + int64 type = 1; + // + string text = 2; + // + string uri = 3; +} + +// +message NftFaceIcon { + // + int32 region_type = 1; + // + string icon = 2; + // + int32 show_status = 3; +} + +// +message Notice { + // + int64 mid = 1; + // + int64 notice_id = 2; + // + string content = 3; + // + string url = 4; + // + int64 notice_type = 5; + // + string icon = 6; + // + string icon_night = 7; + // + string text_color = 8; + // + string text_color_night = 9; + // + string bg_color = 10; + // + string bg_color_night = 11; +} + +// +message OfficialVerify { + // + int32 type = 1; + // + string desc = 2; +} + +// +message OgvCardUI { + // + string background_image = 1; + // + string gaussian_blur_value = 2; + // + string module_color = 3; +} + +// +message OgvClipInfo { + // + int64 play_start_time = 1; + // + int64 play_end_time = 2; +} + +// +message OgvRecommendWord { + // + string title = 1; + // + string goto = 2; + // + string param = 3; + // + string uri = 4; +} + +// +message PediaCover { + // + int64 cover_type = 1; + // + string cover_sun_url = 2; + // + string cover_night_url = 3; + // + int32 cover_width = 4; + // + int32 cover_height = 5; +} + +// +message PlayerArgs { + // + int32 is_live = 1; + // + int64 aid = 2; + // + int64 cid = 3; + // + int32 sub_type = 4; + // + int64 room_id = 5; + // + int64 ep_id = 7; + // + int32 is_preview = 8; + // + string type = 9; + // + int32 duration = 10; + // + int64 season_id = 11; + // + int32 report_required_play_duration = 12; + // + int32 report_required_time = 13; + // + int32 manual_play = 14; + // + bool hide_play_button = 15; + // + int32 content_mode = 16; + // + int32 report_history = 17; +} + +// +message PlayerWidget { + // + string title = 1; + // + string desc = 2; +} + +// +message RankInfo { + // + string search_night_icon_url = 1; + // + string search_day_icon_url = 2; + // + string search_bkg_night_color = 3; + // + string search_bkg_day_color = 4; + // + string search_font_night_color = 5; + // + string search_font_day_color = 6; + // + string rank_content = 7; + // + string rank_link = 8; +} + +// +message RcmdReason { + // + string content = 1; +} + +// +message ReasonStyle { + // + 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; + // + int32 bg_style = 8; +} + +// +message RecommendWord { + // + string param = 1; + // + string type = 2; + // + string title = 3; + // + string from_source = 4; +} + +// +message Relation { + // + int32 status = 1; +} + +// +message RightTopLiveBadge { + // + int32 live_status = 1; + // + LiveBadgeResource in_live = 2; + // + string live_stats_desc = 3; +} + +// +message SearchAdCard { + // + string json_str = 1; +} + +// +message SearchAllRequest { + // + string keyword = 1; + // + int32 order = 2; + // + string tid_list = 3; + // + string duration_list = 4; + // + string extra_word = 5; + // + string from_source = 6; + // + int32 is_org_query = 7; + // + int32 local_time = 8; + // + string ad_extra = 9; + // + bilibili.pagination.Pagination pagination = 10; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 11; +} + +// +message SearchAllResponse { + // + string keyword = 1; + // + string trackid = 2; + // + repeated Nav nav = 3; + // + repeated Item item = 4; + // + EasterEgg easter_egg = 5; + // + string exp_str = 6; + // + repeated string extra_word_list = 7; + // + string org_extra_word = 8; + // + int64 select_bar_type = 9; + // + int64 new_search_exp_num = 10; + // + bilibili.pagination.PaginationReply pagination = 11; + // + DisplayOption app_display_option = 12; + // + map annotation = 13; +} + +// +message SearchArticleCard { + // + string title = 1; + // + string cover = 2; + // + int32 play = 3; + // + int32 like = 4; + // + int32 reply = 5; + // + repeated string image_urls = 6; + // + string author = 7; + // + int32 template_id = 8; + // + int64 id = 9; + // + int64 mid = 10; + // + string name = 11; + // + string desc = 12; + // + int32 view = 13; +} + +// +message SearchAuthorNewCard { + // + string title = 1; + // + string cover = 2; + // + int32 live_face = 3; + // + string live_uri = 4; + // + string live_link = 5; + // + int32 fans = 6; + // + int32 level = 7; + // + string sign = 8; + // + bool is_up = 9; + // + int32 archives = 10; + // + int64 mid = 11; + // + int64 roomid = 12; + // + Relation relation = 13; + // + OfficialVerify official_verify = 14; + // + int32 face_nft_new = 15; + // + NftFaceIcon nft_face_icon = 16; + // + int32 is_senior_member = 17; + // + Background background = 18; + // + int32 av_style = 19; + // + Space space = 20; + // + repeated AvItem av_items = 21; + // + Notice notice = 22; + // + SharePlane share_plane = 23; + // + string inline_type = 24; + // + SearchInlineData inline_live = 25; + // + int32 is_inline_live = 26; + // + repeated ThreePoint three_point = 27; + // + int32 live_status = 28; + // + VipInfo vip = 29; +} + +// +message SearchBangumiCard { + // + string title = 1; + // + string cover = 2; + // + int32 media_type = 3; + // + int32 play_state = 4; + // + string area = 5; + // + string style = 6; + // + string styles = 7; + // + string cv = 8; + // + double rating = 9; + // + int32 vote = 10; + // + string target = 11; + // + string staff = 12; + // + string prompt = 13; + // + int64 ptime = 14; + // + string season_type_name = 15; + // + repeated Episode episodes = 16; + // + int32 is_selection = 17; + // + int32 is_atten = 18; + // + string label = 19; + // + int64 season_id = 20; + // + string out_name = 21; + // + string out_icon = 22; + // + string out_url = 23; + // + repeated ReasonStyle badges = 24; + // + int32 is_out = 25; + // + repeated EpisodeNew episodes_new = 26; + // + WatchButton watch_button = 27; + // + string selection_style = 28; + // + CheckMore check_more = 29; + // + FollowButton follow_button = 30; + // + ReasonStyle style_label = 31; + // + repeated ReasonStyle badges_v2 = 32; + // + string styles_v2 = 33; +} + +// +message SearchBannerCard { + // + string title = 1; + // + string cover = 2; +} + +// +message SearchByTypeRequest { + // + int32 type = 1; + // + string keyword = 2; + // + int32 category_sort = 3; + // + int64 category_id = 4; + // + int32 user_type = 5; + // + int32 user_sort = 6; + // + bilibili.pagination.Pagination pagination = 7; + // + bilibili.app.archive.middleware.v1.PlayerArgs player_args = 8; +} + +// +message SearchByTypeResponse { + // + string trackid = 1; + // + int32 pages = 2; + // + string exp_str = 3; + // + string keyword = 4; + // + int32 result_is_recommend = 5; + // + repeated Item items = 6; + // + bilibili.pagination.PaginationReply pagination = 7; + // + map annotation = 8; +} + +// +message SearchCollectionCard { + // + string title = 1; + // + string cover = 2; + // + string author = 3; + // + repeated AvItem av_items = 4; + // + BottomButton bottom_button = 5; + // + string collection_icon = 6; + // + string show_card_desc1 = 7; + // + string show_card_desc2 = 8; +} + +// +message SearchComicCard { + // + string title = 1; + // + string cover = 2; + // + string name = 3; + // + string style = 4; + // + string comic_url = 5; + // + string badge = 6; +} + +// +message SearchComicInfo { + // + string uri = 1; + // + string param = 2; + // + SearchComicCard comic = 3; +} + +// +message SearchComicRequest { + // + string id_list = 1; +} + +// +message SearchComicResponse { + // + repeated SearchComicInfo items = 1; +} + +// +message SearchDynamicCard { + // + string title = 1; + // + string cover = 2; + // + int32 cover_count = 3; + // + repeated string covers = 4; + // + Upper upper = 5; + // + Stat stat = 6; + // + repeated DyTopic dy_topic = 7; +} + +// +message SearchGameCard { + // + string title = 1; + // + string cover = 2; + // + string reserve = 3; + // + float rating = 4; + // + string tags = 5; + // + string notice_name = 6; + // + string notice_content = 7; + // + string gift_content = 8; + // + string gift_url = 9; + // + int32 reserve_status = 10; + // + RankInfo rank_info = 11; + // + string special_bg_color = 12; + // + CloudGameParams cloud_game_params = 13; + // + bool show_cloud_game_entry = 14; +} + +// +message SearchInlineData { + // + string uri = 1; + // + string title = 2; + // + PlayerArgs player_args = 3; + // + int32 can_play = 4; + // + Args args = 5; + // + string card_goto = 6; + // + string card_type = 7; + // + string cover = 8; + // + int32 cover_left_icon1 = 9; + // + int32 cover_left_icon2 = 10; + // + string cover_left_text1 = 11; + // + string cover_left_text2 = 12; + // + UpArgs up_args = 13; + // + string extra_uri = 14; + // + bool is_fav = 15; + // + bool is_coin = 16; + // + string goto = 17; + // + Share share = 18; + // + ThreePoint2 three_point = 19; + // + repeated ThreePointV2 three_point_v2 = 20; + // + SharePlane share_plane = 21; + // + InlineThreePointPanel three_point_meta = 22; + // + Avatar avatar = 23; + // + string cover_right_text = 24; + // + string desc = 25; + // + InlineProgressBar inline_progress_bar = 26; + // + SearchLikeButtonItem like_button = 27; + // + int32 official_icon = 28; + // + int32 official_icon_v2 = 29; + // + string param = 30; + // + TrafficConfig traffic_config = 31; + // + bool is_atten = 32; + // + GotoIcon goto_icon = 33; + // + bool disable_danmaku = 34; + // + bool hide_danmaku_switch = 35; + // + ReasonStyle badge_style = 36; + // + PlayerWidget player_widget = 37; + // + ReasonStyle cover_badge_style = 38; + // + RightTopLiveBadge right_top_live_badge = 39; +} + +// +message SearchLikeButtonItem { + // + int64 aid = 1; + // + int64 count = 2; + // + int32 selected = 3; + // + bool show_count = 4; + // + LikeResource like_resource = 5; + // + LikeResource like_night_resource = 6; + // + LikeResource dislike_resource = 7; + // + LikeResource dislike_night_resource = 8; +} + +// +message SearchLiveCard { + // + string title = 1; + // + string cover = 2; + // + RcmdReason rcmd_reason = 3; + // + string name = 4; + // + int32 online = 5; + // + string badge = 6; + // + string live_link = 7; + // + string card_left_text = 8; + // + int32 card_left_icon = 9; + // + string show_card_desc2 = 10; + // + RightTopLiveBadge right_top_live_badge = 11; +} + +// +message SearchLiveInlineCard { + // + string title = 1; + // + string cover = 2; + // + int64 mid = 3; + // + ReasonStyle rcmd_reason_style = 4; + // + int64 roomid = 5; + // + string live_link = 6; + // + SearchInlineData live_room_inline = 7; + // + string inline_type = 8; +} + +// +message SearchNewChannelCard { + // + string title = 1; + // + string cover = 2; + // + int64 id = 3; + // + string type_icon = 4; + // + ChannelLabel channel_label1 = 5; + // + ChannelLabel channel_label2 = 6; + // + ChannelLabel channel_button = 7; + // + string design_type = 8; + // + repeated ChannelMixedItem items = 9; +} + +// +message SearchNoResultSuggestWordCard { + // + string title = 1; + // + string cover = 2; + // + int32 sug_key_word_type = 3; +} + +// +message SearchOgvCard { + // + string title = 1; + // + string sub_title1 = 2; + // + string sub_title2 = 3; + // + string cover = 4; + // + string bg_cover = 5; + // + string special_bg_color = 6; + // + string cover_uri = 7; +} + +// +message SearchOgvChannelCard { + // + string title = 1; + // + string cover = 2; + // + int64 media_id = 3; + // + string styles = 4; + // + string area = 5; + // + string staff = 6; + // + string badge = 7; + // + WatchButton watch_button = 8; + // + double rating = 9; + // + string desc = 10; + // + repeated ReasonStyle badges_v2 = 11; + // + string styles_v2 = 12; +} + +// +message SearchOgvInlineCard { + // + string title = 1; + // + string cover = 2; + // + string author = 3; + // + int32 danmaku = 4; + // + string desc = 5; + // + string face = 6; + // + string inline_type = 7; + // + int64 mid = 8; + // + int64 play = 9; + // + SearchInlineData ogv_inline = 10; + // + OgvClipInfo ogv_clip_info = 11; + // + WatchButton watch_button = 12; + // + string score = 13; + // + int32 ogv_inline_exp = 14; + // + repeated ReasonStyle badges_v2 = 15; +} + +// +message SearchOgvRecommendCard { + // + string title = 1; + // + string cover = 2; + // + repeated OgvRecommendWord items = 3; + // + string special_bg_color = 4; +} + +// +message SearchOgvRelationCard { + // + string title = 1; + // + string cover = 2; + // + string special_bg_color = 3; + // + string more_text = 4; + // + string more_url = 5; + // + repeated DetailsRelationItem items = 6; + // + int32 is_new_style = 7; + // + OgvCardUI ogv_card_ui = 8; +} + +// +message SearchOlympicGameCard { + // + string title = 1; + // + string cover = 2; + // + SportsMatchItem sports_match_item = 3; + // + MatchItem match_top = 4; + // + string bg_cover = 5; + // + repeated ExtraLink extra_link = 6; + // + string inline_type = 7; + // + SearchInlineData ugc_inline = 8; + // + SearchInlineData live_room_inline = 9; + // + MatchItem match_bottom = 10; +} + +// +message SearchOlympicWikiCard { + // + string title = 1; + // + string cover = 2; + // + CardBusinessBadge card_business_badge = 3; + // + NavigationButton read_more = 4; + // + string inline_type = 5; + // + SearchInlineData ugc_inline = 6; + // + SearchInlineData live_room_inline = 7; + // + PediaCover pedia_cover = 8; + // + repeated Navigation navigation = 9; +} + +// +message SearchPediaCard { + // + string title = 1; + // + string cover = 2; + // + repeated Navigation navigation = 3; + // + NavigationButton read_more = 4; + // + int32 navigation_module_count = 5; + // + PediaCover pedia_cover = 6; + // + CardBusinessBadge card_business_badge = 7; +} + +// +message SearchPurchaseCard { + // + string title = 1; + // + string cover = 2; + // + string badge = 3; + // + string venue = 4; + // + int32 price = 5; + // + string price_complete = 6; + // + int32 price_type = 7; + // + int32 required_number = 8; + // + string city = 9; + // + string show_time = 10; + // + int64 id = 11; + // + string shop_name = 12; +} + +// +message SearchRecommendTipCard { + // + string title = 1; + // + string cover = 2; +} + +// +message SearchRecommendWordCard { + // + string title = 1; + // + string cover = 2; + // + repeated RecommendWord list = 3; +} + +// +message SearchSpecialCard { + // + string title = 1; + // + string cover = 2; + // + repeated ReasonStyle new_rec_tags = 3; + // + CardBusinessBadge card_business_badge = 4; + // + string badge = 5; + // + string desc = 6; + // + repeated ReasonStyle new_rec_tags_v2 = 7; +} + +// +message SearchSpecialGuideCard { + // + string title = 1; + // + string cover = 2; + // + string phone = 3; + // + string desc = 4; +} + +// +message SearchSportCard { + // + string title = 1; + // + string cover = 2; + // + string bg_cover = 3; + // + MatchItem match_top = 4; + // + MatchItem match_bottom = 5; + // + repeated ExtraLink extra_link = 6; + // + repeated MatchInfoObj items = 7; + // + int64 id = 8; +} + +// +message SearchSportInlineCard { + // + string title = 1; + // + string cover = 2; + // + string bg_cover = 3; + // + MatchItem match_top = 4; + // + MatchItem match_bottom = 5; + // + repeated ExtraLink extra_link = 6; + // + repeated MatchInfoObj items = 7; + // + int64 id = 8; + // + SearchInlineData esports_inline = 9; + // + string inline_type = 10; +} + +// +message SearchTipsCard { + // + string title = 1; + // + string cover = 2; + // + string sub_title = 4; + // + string cover_night = 134; +} + +// +message SearchTopGameCard { + // + string title = 1; + // + string cover = 2; + // + int32 array = 3; + // + string background_image = 4; + // + int32 button_type = 5; + // + string game_icon = 6; + // + int64 game_base_id = 7; + // + int32 game_status = 8; + // + string inline_type = 9; + // + TopGameUI top_game_ui = 10; + // + string notice_content = 11; + // + string notice_name = 12; + // + float rating = 13; + // + string score = 14; + // + repeated TabInfo tab_info = 15; + // + string tags = 16; + // + SearchInlineData ugc_inline = 17; + // + string video_cover_image = 18; + // + SearchInlineData inline_live = 19; +} + +// +message SearchUgcInlineCard { + // + string title = 1; + // + string cover = 2; + // + string author = 3; + // + int32 danmaku = 4; + // + string desc = 5; + // + string inline_type = 6; + // + int64 mid = 7; + // + int64 play = 8; + // + SearchInlineData ugc_inline = 9; + // + FullTextResult full_text = 10; +} + +// +message SearchUpperCard { + // + string title = 1; + // + string cover = 2; + // + string sign = 3; + // + int32 fans = 4; + // + int32 archives = 5; + // + int32 live_status = 6; + // + int32 roomid = 7; + // + OfficialVerify official_verify = 8; + // + int32 face_nft_new = 9; + // + NftFaceIcon nft_face_icon = 10; + // + repeated AvItem av_items = 11; + // + bool is_up = 12; + // + int32 attentions = 13; + // + int32 level = 14; + // + int32 is_senior_member = 15; + // + VipInfo vip = 16; + // + Relation relation = 17; + // + string live_link = 18; + // + Notice notice = 19; +} + +// +message SearchVideoCard { + // + string title = 1; + // + string cover = 2; + // + RcmdReason rcmd_reason = 3; + // + repeated ReasonStyle new_rec_tags = 4; + // + repeated ThreePoint three_point = 5; + // + Share share = 6; + // + CardBusinessBadge card_business_badge = 7; + // + int32 play = 8; + // + int32 danmaku = 9; + // + string author = 10; + // + string desc = 11; + // + string duration = 12; + // + repeated ReasonStyle badges = 13; + // + int64 mid = 14; + // + string show_card_desc1 = 15; + // + string show_card_desc2 = 16; + // + FullTextResult full_text = 17; + // + repeated ReasonStyle new_rec_tags_v2 = 18; + // + repeated ReasonStyle badges_v2 = 19; +} + +// +message Share { + // + string type = 1; + // + Video video = 2; +} + +// +message ShareButtonItem { + // + int32 type = 1; + // + repeated ButtonMeta button_metas = 2; +} + +// +message SharePlane { + // + string title = 1; + // + string share_subtitle = 2; + // + string desc = 3; + // + string cover = 4; + // + int64 aid = 5; + // + string bvid = 6; + // + ShareTo share_to = 7; + // + string author = 8; + // + int64 author_id = 9; + // + string short_link = 10; + // + string play_number = 11; + // + int64 room_id = 12; + // + int32 ep_id = 13; + // + string area_name = 14; + // + string author_face = 15; + // + int32 season_id = 16; + // + string share_from = 17; + // + string season_title = 18; + // + string from = 19; +} + +// +message ShareTo { + // + bool dynamic = 1; + // + bool im = 2; + // + bool copy = 3; + // + bool more = 4; + // + bool wechat = 5; + // + bool weibo = 6; + // + bool wechat_monment = 7; + // + bool qq = 8; + // + bool qzone = 9; + // + bool facebook = 10; + // + bool line = 11; + // + bool messenger = 12; + // + bool whats_app = 13; + // + bool twitter = 14; +} + +// +enum Sort { + SORT_DEFAULT = 0; // + SORT_VIEW_COUNT = 1; // + SORT_PUBLISH_TIME = 2; // + SORT_DANMAKU_COUNT = 3; // +} + +// +message Space { + // + int32 show = 1; + // + string text_color = 2; + // + string text_color_night = 3; + // + string text = 4; + // + string space_url = 5; +} + +// +message SportsMatchItem { + // + int64 match_id = 1; + // + int64 season_id = 2; + // + string match_name = 3; + // + string img = 4; + // + string begin_time_desc = 5; + // + string match_status_desc = 6; + // + string sub_content = 7; + // + string sub_extra_icon = 8; +} + +// +message Stat { + // + int32 play = 1; + // + int32 like = 2; + // + int32 reply = 3; +} + +// +message TabInfo { + // + string tab_name = 1; + // + string tab_url = 2; + // + int32 sort = 3; +} + +// +message TextButton { + // + string text = 1; + // + string uri = 2; +} + +// +message TextLabel { + // + string text = 1; + // + string uri = 2; +} + +// +message Texts { + // + string booking_text = 1; + // + string unbooking_text = 2; +} + +// +message ThreePoint { + // + string type = 1; + // + string icon = 2; + // + string title = 3; +} + +// +message ThreePoint2 { + // + repeated DislikeReason dislike_reasons = 1; + // + repeated DislikeReason feedbacks = 2; + // + int32 watch_later = 3; +} + +// +message ThreePointV2 { + // + string title = 1; + // + string subtitle = 2; + // + repeated DislikeReason reasons = 3; + // + string type = 4; + // + int64 id = 5; +} + +// +message ThreePointV3 { + // + string title = 1; + // + string selected_title = 2; + // + string subtitle = 3; + // + repeated DislikeReason reasons = 4; + // + string type = 5; + // + int64 id = 6; + // + int32 selected = 7; + // + string icon = 8; + // + string selected_icon = 9; + // + string url = 10; + // + int32 default_id = 11; +} + +// +message ThreePointV4 { + // + SharePlane share_plane = 1; + // + WatchLater watch_later = 2; +} + +// +message TopGameUI { + // + string background_image = 1; + // + string cover_default_color = 2; + // + string gaussian_blur_value = 3; + // + string mask_color_value = 4; + // + string mask_opacity = 5; + // + string module_color = 6; +} + +// +message TrafficConfig { + // + string title = 1; + // + repeated TrafficConfigOption options = 2; + // + int64 default_option_id = 3; +} + +// +message TrafficConfigOption { + // + int32 id = 1; + // + string text = 2; +} + +// +message UpArgs { + // + int64 up_id = 1; + // + string up_name = 2; + // + string up_face = 3; + // + int32 selected = 4; +} + +// +message Upper { + // + int64 mid = 1; + // + string title = 2; + // + string cover = 3; + // + string ptime_text = 4; +} + +// +enum UserSort { + USER_SORT_DEFAULT = 0; // + USER_SORT_FANS_DESCEND = 1; // + USER_SORT_FANS_ASCEND = 2; // + USER_SORT_LEVEL_DESCEND = 3; // + USER_SORT_LEVEL_ASCEND = 4; // +} + +// +enum UserType { + ALL = 0; // + UP = 1; // + NORMAL_USER = 2; // + AUTHENTICATED_USER = 3; // +} + +// +message Video { + // + string bvid = 1; + // + int64 cid = 2; + // + string share_subtitle = 3; + // + bool is_hot_label = 4; + // + int32 page = 5; + // + int32 page_count = 6; + // + string short_link = 7; +} + +// +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; + // + int32 tv_vip_status = 11; + // + int32 tv_vip_pay_type = 12; +} + +// +message VipLabel { + // + string path = 1; + // + string text = 2; + // + string label_theme = 3; + // + string text_color = 4; + // + int32 bg_style = 5; + // + string bg_color = 6; + // + string border_color = 7; + // + bool use_img_label = 8; + // + string img_label_uri_hans = 9; + // + string img_label_uri_hant = 10; + // + string img_label_uri_hans_static = 11; + // + string img_label_uri_hant_static = 12; +} + +// +message WatchButton { + // + string title = 1; + // + string link = 2; +} + +// +message WatchedShow { + // + bool switch = 1; + // + int64 num = 2; + // + string text_small = 3; + // + string text_large = 4; + // + string icon = 5; + // + string icon_location = 6; + // + string icon_web = 7; +} + +// +message WatchLater { + // + int64 aid = 1; + // + string bvid = 2; +} diff --git a/grpc_api/bilibili/polymer/community/govern/v1/govern.proto b/grpc_api/bilibili/polymer/community/govern/v1/govern.proto new file mode 100644 index 0000000..1c68ddf --- /dev/null +++ b/grpc_api/bilibili/polymer/community/govern/v1/govern.proto @@ -0,0 +1,96 @@ +syntax = "proto3"; + +package bilibili.polymer.app.govern.v1; + +// 反骚扰 +service AntiHarassmentService { + // + rpc StoreAntiHarassmentSettings(StoreAntiHarassmentSettingsReq) returns (StoreAntiHarassmentSettingsRsp); + // + rpc LoadAntiHarassmentSettings(LoadAntiHarassmentSettingsReq) returns (LoadAntiHarassmentSettingsRsp); +} + +// +message AntiHarassmentInfo { + // + int32 limit = 1; + // + int32 follow_time_limit_second = 2; + // + int64 expire_time = 3; +} + +// +enum AntiHarassmentLimit { + DefaultLimit = 0; // + FollowLimit = 1; // + ReFollowLimit = 2; // + TwoWayFollow = 3; // + AllLimit = 4; // +} + +// +message AntiHarassmentSetting { + // + int64 mid = 1; + // + bool auto_limit = 2; + // + AntiHarassmentInfo im = 3; + // + AntiHarassmentInfo reply = 4; + // + AntiHarassmentInfo dm = 5; + // + AntiHarassmentInfo reply_me = 6; + // + AntiHarassmentInfo like_me = 7; + // + AntiHarassmentInfo at_me = 8; + // + int64 auto_limit_expire_time = 9; +} + +// +enum BizType { + InvalidBizType = 0; // + Im = 1; // + Dm = 2; // + Reply = 3; // + ReplyMe = 4; // + LikeMe = 5; // + AtMe = 6; // +} + +// +message LoadAntiHarassmentSettingsReq { + // + int32 biz_type = 1; + // + int64 recv_mid = 2; + // + int64 send_mid = 3; +} + +// +message LoadAntiHarassmentSettingsRsp { + // + bool anti_harassment_ret = 1; + // + AntiHarassmentSetting anti_harassment_setting = 2; + // + int32 show_window = 3; +} + +// +message StoreAntiHarassmentSettingsReq { + // + int32 biz_type = 1; + // + int64 mid = 2; + // + AntiHarassmentSetting anti_harassment_setting = 3; +} + +// +message StoreAntiHarassmentSettingsRsp {} \ No newline at end of file diff --git a/grpc_api/bilibili/polymer/contract/contract.proto b/grpc_api/bilibili/polymer/contract/contract.proto index a987ced..a6d4520 100644 --- a/grpc_api/bilibili/polymer/contract/contract.proto +++ b/grpc_api/bilibili/polymer/contract/contract.proto @@ -4,10 +4,26 @@ package bilibili.polymer.contract; import "google/protobuf/empty.proto"; -// +// 契约 service Contract { // rpc AddContract(AddContractReq) returns (google.protobuf.Empty); + // + rpc AddContractV2(AddContractReq) returns (AddContractReply); + // + rpc ContractConfig(ContractConfigReq) returns (ContractConfigReply); +} + +// +message AddContractReply { + // + bool allow_message = 1; + // + bool allow_reply = 2; + // + string input_text = 3; + // + string input_title = 4; } // @@ -20,6 +36,8 @@ message AddContractReq { int64 up_mid = 3; // int64 aid = 4; + // + int32 source = 5; } // @@ -40,3 +58,34 @@ message CommonReq { string spmid = 7; } +// +message ContractCard { + // + string title = 1; + // + string sub_title = 2; +} + +// +message ContractConfigReply { + // + int32 is_follow_display = 1; + // + int32 is_triple_display = 2; + // + ContractCard contract_card = 3; +} + +// +message ContractConfigReq { + // + CommonReq common = 1; + // + int64 mid = 2; + // + int64 up_mid = 3; + // + int64 aid = 4; + // + int32 source = 5; +} diff --git a/grpc_api/bilibili/polymer/list/list.proto b/grpc_api/bilibili/polymer/list/list.proto index a4e228f..82e7a65 100644 --- a/grpc_api/bilibili/polymer/list/list.proto +++ b/grpc_api/bilibili/polymer/list/list.proto @@ -41,6 +41,4 @@ message FavoriteTabReply { } // -message FavoriteTabReq { - -} +message FavoriteTabReq {} diff --git a/grpc_api/bilibili/tv/interfaces/dm/v1/dm.proto b/grpc_api/bilibili/tv/interfaces/dm/v1/dm.proto index 00321a0..666bb56 100644 --- a/grpc_api/bilibili/tv/interfaces/dm/v1/dm.proto +++ b/grpc_api/bilibili/tv/interfaces/dm/v1/dm.proto @@ -34,6 +34,8 @@ message CommandDm { string extra = 9; // 弹幕id str类型 string idStr = 10; + // + int64 display = 11; } // ott互动弹幕条目信息 @@ -119,8 +121,10 @@ message DanmakuElem { // 弹幕ai云屏蔽条目 message DanmakuFlag { - int64 dmid = 1; // 弹幕dmid - uint32 flag = 2; // 评分 + // 弹幕dmid + int64 dmid = 1; + // 评分 + uint32 flag = 2; } // 云屏蔽配置信息 @@ -315,6 +319,8 @@ message TvViewProgressReq { int64 from = 9; // string guest_access_key = 10; + // + int64 epid = 11; } // 字幕作者信息 diff --git a/grpc_api/bilibili/web/interfaces/v1/interfaces.proto b/grpc_api/bilibili/web/interfaces/v1/interfaces.proto index 9100896..62ca35f 100644 --- a/grpc_api/bilibili/web/interfaces/v1/interfaces.proto +++ b/grpc_api/bilibili/web/interfaces/v1/interfaces.proto @@ -377,6 +377,10 @@ message Arc { int64 season_id = 29; // repeated DescV2 desc_v2 = 30; + // + bool is_chargeable_season = 31; + // + bool is_blooper = 32; } // @@ -523,9 +527,7 @@ message NameplateInfo { } // -message NoReply { - -} +message NoReply {} // message OfficialInfo { @@ -557,10 +559,10 @@ message OperationRelate { // enum OrderType { - TypeNone = 0; // + TypeNone = 0; // TypeOrderActivity = 1; // - TypeFavSeason = 2; // - TypeClick = 3; // + TypeFavSeason = 2; // + TypeClick = 3; // } // @@ -597,6 +599,12 @@ message PendantInfo { int64 expire = 4; } +// +message ReasonStyle { + // + string text = 1; +} + // message Relate { // @@ -744,8 +752,8 @@ message ReplyEmoteMeta { // enum ReplyEmoteMetaSize { EMOTE_META_SIZE_UNSPECIFIED = 0; // - EMOTE_META_SIZE_SMALL = 1; // - EMOTE_META_SIZE_BIG = 2; // + EMOTE_META_SIZE_SMALL = 1; // + EMOTE_META_SIZE_BIG = 2; // } // @@ -952,6 +960,10 @@ message Rights { int32 is_cooperation = 10; // int32 ugc_pay_preview = 11; + // + int32 arc_pay = 12; + // + int32 free_watch = 13; } // @@ -976,6 +988,8 @@ message SeasonEpisode { Page page = 9; // string bvid = 10; + // + ReasonStyle badge_style = 11; } // @@ -1188,6 +1202,8 @@ message UGCSeason { int64 ep_count = 10; // int64 season_type = 11; + // + bool is_pay_season = 12; } // diff --git a/grpc_api/bilibili/web/space/v1/space.proto b/grpc_api/bilibili/web/space/v1/space.proto new file mode 100644 index 0000000..911abfe --- /dev/null +++ b/grpc_api/bilibili/web/space/v1/space.proto @@ -0,0 +1,282 @@ +syntax = "proto3"; + +package bilibili.web.space.v1; + +// +message NoReply {} + +// +message OfficialReply { + // + int64 id = 1; + // + int64 uid = 2; + // + string name = 3; + // + string icon = 4; + // + string scheme = 5; + // + string rcmd = 6; + // + string ios_url = 7; + // + string android_url = 8; + // + string button = 9; + // + string deleted = 10; + // + int64 mtime = 11; +} + +// +message OfficialRequest { + // + int64 mid = 1; +} + +// +message PhotoMall { + // + int64 id = 1; + // + string name = 2; + // + string img = 3; + // + string night_img = 4; + // + int64 is_activated = 5; +} + +// +message PhotoMallListReply { + // + repeated PhotoMall list = 1; +} + +// +message PhotoMallListReq { + // + string mobiapp = 1; + // + int64 mid = 2; + // + string device = 3; +} + +// +message PrivacyReply { + // + map privacy = 1; +} + +// +message PrivacyRequest { + // + int64 mid = 1; +} + +// +message SetTopPhotoReq { + // + string mobiapp = 1; + // + int64 i_d = 2; + // + int64 mid = 3; + // + int32 type = 4; +} + +// +message SpaceSettingReply { + // + int64 channel = 1; + // + int64 fav_video = 2; + // + int64 coins_video = 3; + // + int64 likes_video = 4; + // + int64 bangumi = 5; + // + int64 played_game = 6; + // + int64 groups = 7; + // + int64 comic = 8; + // + int64 b_bq = 9; + // + int64 dress_up = 10; + // + int64 disable_following = 11; + // + int64 live_playback = 12; + // + int64 close_space_medal = 13; + // + int64 only_show_wearing = 14; + // + int64 disable_show_school = 15; + // + int64 disable_show_nft = 16; +} + +// +message SpaceSettingReq { + // + int64 mid = 1; +} + +// +message TopPhoto { + // + string img_url = 1; + // + string night_img_url = 2; + // + int64 sid = 3; +} + +// +message TopPhotoArc { + // + bool show = 1; + // + int64 aid = 2; + // + string pic = 3; +} + +// +message TopPhotoArcCancelReq { + // + int64 mid = 1; +} + +// +message TopPhotoReply { + // + TopPhoto top_photo = 1; + // + TopPhotoArc top_photo_arc = 2; +} + +// +message TopPhotoReq { + // + string mobiapp = 1; + // + int64 mid = 2; + // + int32 build = 3; + // + string device = 4; + // + int64 login_mid = 5; +} + +// +enum TopPhotoType { + UNKNOWN = 0; // + PIC = 1; // + ARCHIVE = 2; // +} + +// +message UpActivityTabReq { + // + int64 mid = 1; + // + int32 state = 2; + // + int64 tab_cont = 3; + // + string tab_name = 4; +} + +// +message UpActivityTabResp { + // + bool success = 1; +} + +// +message UpRcmdBlackListReply {} + +// +message UserTabReply { + // + int32 tab_type = 1; + // + int64 mid = 2; + // + string tab_name = 3; + // + int32 tab_order = 4; + // + int64 tab_cont = 5; + // + int32 is_default = 6; + // + string h5_link = 7; +} + +// +message UserTabReq { + // + int64 mid = 1; + // + int32 plat = 2; + // + int32 build = 3; +} + +// +message WhitelistAddReply { + // + bool add_ok = 1; +} + +// +message WhitelistAddReq { + // + int64 mid = 1; + // + int64 stime = 2; + // + int64 etime = 3; +} + +// +message WhitelistReply { + // + bool is_white = 1; +} + +// +message WhitelistReq { + // + int64 mid = 1; +} + +// +message WhitelistUpReply { + // + bool up_ok = 1; +} + +// +message WhitelistValidTimeReply { + // + bool is_white = 1; + // + int64 stime = 2; + // + int64 etime = 3; +} diff --git a/grpc_api/pgc/gaetway/vega/v1/vega.proto b/grpc_api/pgc/gaetway/vega/v1/vega.proto index e5ebb0c..7e76394 100644 --- a/grpc_api/pgc/gaetway/vega/v1/vega.proto +++ b/grpc_api/pgc/gaetway/vega/v1/vega.proto @@ -25,14 +25,10 @@ service VegaFrameDoc { } // -message AuthReq { - -} +message AuthReq {} // -message AuthResp { - -} +message AuthResp {} // message FrameOption { @@ -53,14 +49,10 @@ message FrameOption { } // -message HeartbeatReq { - -} +message HeartbeatReq {} // -message HeartbeatResp { - -} +message HeartbeatResp {} // message MessageAckReq {