mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2025-04-01 19:00:09 +08:00
update 【gRPC API】 proto files
This commit is contained in:
parent
3c8dfc6d61
commit
24517028f7
@ -126,11 +126,11 @@ message Rights {
|
||||
int32 pay = 5;
|
||||
// 是否高码率
|
||||
int32 hd5 = 6;
|
||||
// 是否禁止转载标志
|
||||
// 是否显示“禁止转载”标志
|
||||
int32 no_reprint = 7;
|
||||
// 是否允许自动播放
|
||||
int32 autoplay = 8;
|
||||
// UGC稿件需要付费
|
||||
// UGC稿件需要付费(旧版)
|
||||
int32 ugc_pay = 9;
|
||||
// 是否联合投稿
|
||||
int32 is_cooperation = 10;
|
||||
@ -138,9 +138,9 @@ message Rights {
|
||||
int32 ugc_pay_preview = 11;
|
||||
// 是否禁止后台播放
|
||||
int32 no_background = 12;
|
||||
//
|
||||
// UGC稿件需要付费
|
||||
int32 arc_pay = 13;
|
||||
//
|
||||
// 是否已付费可自由观看
|
||||
int32 pay_free_watch = 14;
|
||||
}
|
||||
|
||||
@ -159,7 +159,7 @@ message StaffInfo {
|
||||
message Stat {
|
||||
// 稿件avid
|
||||
int64 aid = 1;
|
||||
// 播放数
|
||||
// 播放数(当屏蔽时为-1)
|
||||
int32 view = 2;
|
||||
// 弹幕数
|
||||
int32 danmaku = 3;
|
||||
|
@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.interfaces.v1;
|
||||
package bilibili.app.interface.v1;
|
||||
|
||||
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||
|
||||
@ -48,6 +48,8 @@ message CardCheese {
|
||||
int64 duration = 3;
|
||||
// 单集标题
|
||||
string subtitle = 4;
|
||||
//
|
||||
int64 state = 5;
|
||||
}
|
||||
|
||||
// 直播卡片
|
||||
@ -78,6 +80,10 @@ message CardOGV {
|
||||
int64 duration = 3;
|
||||
// 单集标题
|
||||
string subtitle = 4;
|
||||
//
|
||||
string badge = 5;
|
||||
//
|
||||
int64 state = 6;
|
||||
}
|
||||
|
||||
// ugc稿件卡片
|
||||
|
328
grpc_api/bilibili/app/interfaces/v1/media.proto
Normal file
328
grpc_api/bilibili/app/interfaces/v1/media.proto
Normal file
@ -0,0 +1,328 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.interface.v1;
|
||||
|
||||
//
|
||||
service Media {
|
||||
//
|
||||
rpc MediaTab(MediaTabReq) returns (MediaTabReply);
|
||||
//
|
||||
rpc MediaDetail(MediaDetailReq) returns (MediaDetailReply);
|
||||
//
|
||||
rpc MediaVideo(MediaVideoReq) returns (MediaVideoReply);
|
||||
//
|
||||
rpc MediaRelation(MediaRelationReq) returns (MediaRelationReply);
|
||||
//
|
||||
rpc MediaFollow(MediaFollowReq) returns (MediaFollowReply);
|
||||
}
|
||||
|
||||
//
|
||||
message BigItem {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string cover_image_uri = 2;
|
||||
//
|
||||
string uri = 3;
|
||||
//
|
||||
string cover_right_text = 4;
|
||||
//
|
||||
string cover_left_text1 = 5;
|
||||
//
|
||||
int64 cover_left_icon1 = 6;
|
||||
//
|
||||
string cover_left_text2 = 7;
|
||||
//
|
||||
int64 cover_left_icon2 = 8;
|
||||
//
|
||||
UserCard user_card = 9;
|
||||
//
|
||||
LikeButton like_button = 10;
|
||||
//
|
||||
int64 param = 11;
|
||||
}
|
||||
|
||||
//
|
||||
message Button {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string link = 2;
|
||||
//
|
||||
string id = 3;
|
||||
//
|
||||
int64 icon = 4;
|
||||
//
|
||||
ButType but_type = 5;
|
||||
//
|
||||
int32 follow_state = 6;
|
||||
//
|
||||
string has_title = 7;
|
||||
}
|
||||
|
||||
//
|
||||
enum ButType {
|
||||
BUT_INVALID = 0; //
|
||||
BUT_REDIRECT = 1; //
|
||||
BUT_LIKE = 2; //
|
||||
}
|
||||
|
||||
//
|
||||
message Cast {
|
||||
//
|
||||
repeated MediaPerson person = 1;
|
||||
//
|
||||
string title = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message ChannelInfo {
|
||||
//
|
||||
int64 channel_id = 1;
|
||||
//
|
||||
bool subscribed = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message LikeButton {
|
||||
//
|
||||
int64 aid = 1;
|
||||
//
|
||||
int32 count = 2;
|
||||
//
|
||||
bool show_count = 3;
|
||||
//
|
||||
string event = 4;
|
||||
//
|
||||
int32 selected = 5;
|
||||
//
|
||||
string event_v2 = 6;
|
||||
//
|
||||
LikeButtonResource like_resource = 7;
|
||||
//
|
||||
LikeButtonResource dis_like_resource = 8;
|
||||
//
|
||||
LikeButtonResource like_night_resource = 9;
|
||||
//
|
||||
LikeButtonResource dis_like_night_resource = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message LikeButtonResource {
|
||||
//
|
||||
string url = 1;
|
||||
//
|
||||
string hash = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message LikeCard {
|
||||
//
|
||||
int64 like = 1;
|
||||
//
|
||||
bool is_follow = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaCard {
|
||||
//
|
||||
string cover = 1;
|
||||
//
|
||||
string cur_title = 2;
|
||||
//
|
||||
string style = 3;
|
||||
//
|
||||
string label = 4;
|
||||
//
|
||||
Button but_first = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaDetailReply {
|
||||
//
|
||||
Cast cast = 1;
|
||||
//
|
||||
Staff staff = 2;
|
||||
//
|
||||
Overview overview = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaDetailReq {
|
||||
//
|
||||
int64 biz_id = 1;
|
||||
//
|
||||
int64 biz_type = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaFollowReply {
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
message MediaFollowReq {
|
||||
//
|
||||
string id = 1;
|
||||
//
|
||||
int32 type = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaPerson {
|
||||
//
|
||||
string real_name = 1;
|
||||
//
|
||||
string square_url = 2;
|
||||
//
|
||||
string character = 3;
|
||||
//
|
||||
int64 person_id = 4;
|
||||
//
|
||||
string type = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaRelationReply {
|
||||
//
|
||||
string offset = 1;
|
||||
//
|
||||
bool has_more = 2;
|
||||
//
|
||||
repeated SmallItem list = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaRelationReq {
|
||||
//
|
||||
int64 biz_id = 1;
|
||||
//
|
||||
int64 biz_type = 2;
|
||||
//
|
||||
int64 feed_id = 3;
|
||||
//
|
||||
string offset = 5;
|
||||
//
|
||||
int32 ps = 6;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaTabReply {
|
||||
//
|
||||
MediaCard media_card = 1;
|
||||
//
|
||||
repeated ShowTab tab = 2;
|
||||
//
|
||||
int64 default_tab_index = 3;
|
||||
//
|
||||
ChannelInfo channel_info = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaTabReq {
|
||||
//
|
||||
int64 biz_id = 1;
|
||||
//
|
||||
int64 biz_type = 2;
|
||||
//
|
||||
string source = 3;
|
||||
//
|
||||
string spmid = 4;
|
||||
//
|
||||
map<string, string> args = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaVideoReply {
|
||||
//
|
||||
string offset = 1;
|
||||
//
|
||||
bool has_more = 2;
|
||||
//
|
||||
repeated BigItem list = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message MediaVideoReq {
|
||||
//
|
||||
int64 biz_id = 1;
|
||||
//
|
||||
int64 biz_type = 2;
|
||||
//
|
||||
int64 feed_id = 3;
|
||||
//
|
||||
string offset = 5;
|
||||
//
|
||||
int32 ps = 6;
|
||||
}
|
||||
|
||||
//
|
||||
message Overview {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string text = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message ShowTab {
|
||||
//
|
||||
TabType tab_type = 1;
|
||||
//
|
||||
string title = 2;
|
||||
//
|
||||
string url = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message SmallItem {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string cover_image_uri = 2;
|
||||
//
|
||||
string uri = 3;
|
||||
//
|
||||
string cover_right_text = 4;
|
||||
//
|
||||
string cover_left_text1 = 5;
|
||||
//
|
||||
int64 cover_left_icon1 = 6;
|
||||
//
|
||||
string cover_left_text2 = 7;
|
||||
//
|
||||
int64 cover_left_icon2 = 8;
|
||||
//
|
||||
int64 param = 9;
|
||||
//
|
||||
int64 mid = 10;
|
||||
}
|
||||
|
||||
//
|
||||
message Staff {
|
||||
//
|
||||
string title = 1;
|
||||
//
|
||||
string text = 2;
|
||||
}
|
||||
|
||||
//
|
||||
enum TabType {
|
||||
TAB_INVALID = 0; //
|
||||
TAB_OGV_DETAIL = 6; //
|
||||
TAB_OGV_REPLY = 7; //
|
||||
TAB_FEED_BID = 8; //
|
||||
TAB_FEED_SMALL = 9; //
|
||||
}
|
||||
|
||||
//
|
||||
message UserCard {
|
||||
//
|
||||
string user_name = 1;
|
||||
//
|
||||
string user_face = 2;
|
||||
//
|
||||
string user_url = 3;
|
||||
//
|
||||
int64 mid = 4;
|
||||
}
|
@ -1,11 +1,85 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.interfaces.v1;
|
||||
package bilibili.app.interface.v1;
|
||||
|
||||
// 搜索
|
||||
service Search {
|
||||
// 获取搜索建议
|
||||
rpc Suggest3 (SuggestionResult3Req) returns (SuggestionResult3Reply);
|
||||
//
|
||||
rpc DefaultWords(DefaultWordsReq) returns (DefaultWordsReply);
|
||||
}
|
||||
|
||||
//
|
||||
service SearchTest {
|
||||
//
|
||||
rpc NotExist(SuggestionResult3Req) returns (SuggestionResult3Reply);
|
||||
}
|
||||
|
||||
//
|
||||
message DefaultWordsReply {
|
||||
//
|
||||
string trackid = 1;
|
||||
//
|
||||
string param = 2;
|
||||
//
|
||||
string show = 3;
|
||||
//
|
||||
string word = 4;
|
||||
//
|
||||
int64 show_front = 5;
|
||||
//
|
||||
string exp_str = 6;
|
||||
//
|
||||
string goto = 7;
|
||||
//
|
||||
string value = 8;
|
||||
//
|
||||
string uri = 9;
|
||||
}
|
||||
|
||||
//
|
||||
message NftFaceIcon {
|
||||
//
|
||||
int32 region_type = 1;
|
||||
//
|
||||
string icon = 2;
|
||||
//
|
||||
int32 show_status = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message DefaultWordsReq {
|
||||
//
|
||||
int64 from = 1;
|
||||
//
|
||||
int64 login_event = 2;
|
||||
//
|
||||
int32 teenagers_mode = 3;
|
||||
//
|
||||
int32 lessons_mode = 4;
|
||||
//
|
||||
string tab = 5;
|
||||
//
|
||||
string event_id = 6;
|
||||
//
|
||||
string avid = 7;
|
||||
//
|
||||
string query = 8;
|
||||
//
|
||||
int64 an = 9;
|
||||
//
|
||||
int64 is_fresh = 10;
|
||||
}
|
||||
|
||||
// 获取搜索建议-响应
|
||||
message SuggestionResult3Reply {
|
||||
// 搜索追踪id
|
||||
string trackid = 1;
|
||||
// 搜索建议条目列表
|
||||
repeated ResultItem list = 2;
|
||||
// 搜索的abtest 实验信息
|
||||
string exp_str = 3;
|
||||
}
|
||||
|
||||
// 获取搜索建议-请求
|
||||
@ -20,16 +94,6 @@ message SuggestionResult3Req {
|
||||
int32 teenagers_mode = 3;
|
||||
}
|
||||
|
||||
// 获取搜索建议-响应
|
||||
message SuggestionResult3Reply {
|
||||
// 搜索追踪id
|
||||
string trackid = 1;
|
||||
// 搜索建议条目列表
|
||||
repeated ResultItem list = 2;
|
||||
// 搜索的abtest 实验信息
|
||||
string expStr = 3;
|
||||
}
|
||||
|
||||
// 搜索建议条目
|
||||
message ResultItem {
|
||||
// 来源
|
||||
@ -86,6 +150,10 @@ message ResultItem {
|
||||
int64 module_id = 26;
|
||||
//
|
||||
string live_link = 27;
|
||||
//
|
||||
int32 face_nft_new = 28;
|
||||
//
|
||||
NftFaceIcon nft_face_icon = 29;
|
||||
}
|
||||
|
||||
// 认证信息
|
||||
|
@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.interfaces.v1;
|
||||
package bilibili.app.interface.v1;
|
||||
|
||||
import "bilibili/app/archive/middleware/v1/preload.proto";
|
||||
import "bilibili/app/archive/v1/archive.proto";
|
||||
@ -24,7 +24,6 @@ message Arc {
|
||||
string uri = 2;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
message Dynamic {
|
||||
//
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -111,7 +111,7 @@ enum ConfType {
|
||||
INNERDM = 26; // 三点内弹幕设置
|
||||
PANORAMA = 27; // 全景
|
||||
DOLBY = 28; // 杜比
|
||||
COLORFILTER = 29; //
|
||||
COLORFILTER = 29; // 颜色滤镜
|
||||
}
|
||||
|
||||
//
|
||||
@ -273,7 +273,7 @@ message PlayAbilityConf {
|
||||
CloudConf innerDmDisable = 26; // 三点内弹幕设置
|
||||
CloudConf inner_dm_conf = 27; // 一起看入口
|
||||
CloudConf dolby_conf = 28; // 杜比音效
|
||||
CloudConf color_filter_conf = 29; //
|
||||
CloudConf color_filter_conf = 29; // 颜色滤镜
|
||||
}
|
||||
|
||||
// 播放控件稿件配置
|
||||
@ -306,8 +306,8 @@ message PlayArcConf {
|
||||
ArcConf inner_dm_conf = 26; // 三点内弹幕设置
|
||||
ArcConf panorama_conf = 27; // 一起看入口
|
||||
ArcConf dolby_conf = 28; // 杜比音效
|
||||
ArcConf screen_recording_conf = 29; //
|
||||
ArcConf color_filter_conf = 30; //
|
||||
ArcConf screen_recording_conf = 29; // 屏幕录制
|
||||
ArcConf color_filter_conf = 30; // 颜色滤镜
|
||||
}
|
||||
|
||||
// 编辑播放界面配置-响应
|
||||
@ -573,7 +573,7 @@ message StreamInfo {
|
||||
// 格式描述
|
||||
string description = 3;
|
||||
// 错误码
|
||||
uint32 err_code = 4;
|
||||
PlayErr err_code = 4;
|
||||
// 不满足条件信息
|
||||
StreamLimit limit = 5;
|
||||
// 是否需要vip
|
||||
|
@ -991,7 +991,7 @@ message MaterialRes {
|
||||
//
|
||||
string url = 3;
|
||||
//
|
||||
int32 typ = 4;
|
||||
MaterialSource type = 4;
|
||||
//
|
||||
string name = 5;
|
||||
//
|
||||
@ -1004,8 +1004,8 @@ message MaterialRes {
|
||||
|
||||
//
|
||||
enum MaterialSource {
|
||||
Default = 0;
|
||||
BiJian = 1;
|
||||
Default = 0; //
|
||||
BiJian = 1; // 必剪
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user