更新部分proto结构体文件

This commit is contained in:
社会易姐QwQ 2021-06-14 01:33:41 +08:00
parent 3acd3e2167
commit 396a571570
21 changed files with 6664 additions and 5424 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,961 +0,0 @@
syntax = "proto3";
package bilibili.app.card.v1;
//
message Card {
oneof item {
//
SmallCoverV5 smallCoverV5 = 1;
//
LargeCoverV1 largeCoverV1 = 2;
//
ThreeItemAllV2 threeItemAllV2 = 3;
//
ThreeItemV1 threeItemV1 = 4;
//
HotTopic hotTopic = 5;
//
DynamicHot dynamicHot = 6;
//
MiddleCoverV3 middleCoverV3 = 7;
//
LargeCoverV4 largeCoverV4 = 8;
//
PopularTopEntrance popularTopEntrance = 9;
//
RcmdOneItem rcmdOneItem = 10;
}
}
//
message SmallCoverV5 {
//
Base base = 1;
//
string coverGif = 2;
//
Up up = 3;
//
string coverRightText1 = 4;
//1UP主昵称
string rightDesc1 = 5;
//2
string rightDesc2 = 6;
//
ReasonStyle rcmdReasonStyle = 7;
//
HotwordEntrance hotwordEntrance = 8;
//
ReasonStyle cornerMarkStyle = 9;
//1id
int32 rightIcon1 = 10;
//2id
int32 rightIcon2 = 11;
//
ReasonStyle leftCornerMarkStyle = 12;
}
//
message LargeCoverV1 {
//
Base base = 1;
//
string coverGif = 2;
//
Avatar avatar = 3;
//
string coverLeftText1 = 4;
//
string coverLeftText2 = 5;
//
string coverLeftText3 = 6;
//
string coverBadge = 7;
//
string topRcmdReason = 8;
//
string bottomRcmdReason = 9;
//
string desc = 10;
//
int32 officialIcon = 11;
//
int32 canPlay = 12;
//
ReasonStyle topRcmdReasonStyle = 13;
//
ReasonStyle bottomRcmdReasonStyle = 14;
//
ReasonStyle rcmdReasonStyleV2 = 15;
//
ReasonStyle leftCoverBadgeStyle = 16;
//
ReasonStyle rightCoverBadgeStyle = 17;
//
string coverBadge2 = 18;
//
LikeButton likeButton = 19;
//
int32 titleSingleLine = 20;
//
string coverRightText = 21;
}
//
message ThreeItemAllV2 {
//
Base base = 1;
//
ReasonStyle topRcmdReasonStyle = 2;
//
repeated TwoItemHV1Item item = 3;
}
//
message ThreeItemV1 {
//
Base base = 1;
//
int32 titleIcon = 2;
//
string moreUri = 3;
//
string moreText = 4;
//
repeated ThreeItemV1Item items = 5;
}
//
message HotTopic {
//
Base base = 1;
//
string desc = 2;
//
repeated HotTopicItem items = 3;
}
//
message DynamicHot {
//
Base base = 1;
//
string topLeftTitle = 2;
//
string desc1 = 3;
//
string desc2 = 4;
//
string moreUri = 5;
//
string moreText = 6;
//
repeated string covers = 7;
//
string coverRightText = 8;
//
ReasonStyle topRcmdReasonStyle = 9;
}
//
message MiddleCoverV3 {
//
Base base = 1;
//
string desc1 = 2;
//
string desc2 = 3;
//
ReasonStyle coverBadgeStyle = 4;
}
//
message LargeCoverV4 {
//
Base base = 1;
//
string coverLeftText1 = 2;
//
string coverLeftText2 = 3;
//
string coverLeftText3 = 4;
//
string coverBadge = 5;
//
int32 canPlay = 6;
//
Up up = 7;
//
string shortLink = 8;
//
string shareSubtitle = 9;
//
string playNumber = 10;
//
string bvid = 11;
//
string subParam = 12;
}
//
message PopularTopEntrance {
//
Base base = 1;
//
repeated EntranceItem items = 2;
}
//
message RcmdOneItem {
//
Base base = 1;
//
ReasonStyle topRcmdReasonStyle = 2;
//
SmallCoverRcmdItem item = 3;
}
//
message AdInfo {
//
int64 creativeId = 1;
//
int32 creativeType = 2;
//
int32 cardType = 3;
//
CreativeContent creativeContent = 4;
//
string adCb = 5;
//
int64 resource = 6;
//
int32 source = 7;
//
string requestId = 8;
//
bool isAd = 9;
//
int64 cmMark = 10;
//
int32 index = 11;
//
bool isAdLoc = 12;
//
int32 cardIndex = 13;
//
string clientIp = 14;
//
bytes extra = 15;
//
int32 creativeStyle = 16;
}
//
message Args {
//
int32 type = 1;
//
int64 upId = 2;
//
string upName = 3;
//
int32 rid = 4;
//
string rname = 5;
//
int64 tid = 6;
//
string tname = 7;
//
string trackId = 8;
//
string state = 9;
//
int32 convergeType = 10;
//
int64 aid = 11;
}
//
message Avatar {
//
string cover = 1;
//
string text = 2;
//
string uri = 3;
//
int32 type = 4;
//
string event = 5;
//
string eventV2 = 6;
//
int32 defalutCover = 7;
}
//
message Base {
//
string cardType = 1;
//?
string cardGoto = 2;
//
//av:稿 mid:
string goto = 3;
//
string param = 4;
//url
string cover = 5;
//
string title = 6;
//uri
string uri = 7;
//
ThreePoint threePoint = 8;
//
Args args = 9;
//
PlayerArgs playerArgs = 10;
//
int64 idx = 11;
//
AdInfo adInfo = 12;
//
Mask mask = 13;
//
//recommend: operation:?
string fromType = 14;
//
repeated ThreePointV2 threePointV2 = 15;
//
repeated ThreePointV3 threePointV3 = 16;
//
Button descButton = 17;
//v4
ThreePointV4 threePointV4 = 18;
}
//
message Bubble {
//
string bubbleContent = 1;
//
int32 version = 2;
//
int64 stime = 3;
}
//
message Button {
//
string text = 1;
//
string param = 2;
//
string uri = 3;
//
string event = 4;
//
int32 selected = 5;
//
//2:
int32 type = 6;
//v2
string eventV2 = 7;
//
Relation relation = 8;
}
//
message CreativeContent {
//
string title = 1;
//
string description = 2;
//
int64 videoId = 3;
//
string username = 4;
//
string imageUrl = 5;
//
string imageMd5 = 6;
//
string logUrl = 7;
//
string logMd5 = 8;
//
string url = 9;
//
string clickUrl = 10;
//
string showUrl = 11;
}
//
message DislikeReason {
//
int64 id = 1;
//
string name = 2;
}
//
message EntranceItem {
//
string goto = 1;
//url
string icon = 2;
//
string title = 3;
//id
string moduleId = 4;
//uri
string uri = 5;
//id
int64 entranceId = 6;
//
Bubble bubble = 7;
//?
int32 entranceType = 8;
}
//
message HotTopicItem {
//
string cover = 1;
//
string uri = 2;
//
string param = 3;
//
string name = 4;
}
//
message HotwordEntrance {
//
int64 hotwordId = 1;
//
string hotText = 2;
//
string h5Url = 3;
//
string icon = 4;
}
//
message LikeButton {
//
int64 aid = 1;
//
int32 count = 2;
//
bool showCount = 3;
//
string event = 4;
//
int32 selected = 5;
//
string eventV2 = 6;
}
//
message Mask {
//
Avatar avatar = 1;
//
Button button = 2;
}
//
message PlayerArgs {
//
int32 isLive = 1;
//
int64 aid = 2;
//
int64 cid = 3;
//
int32 subType = 4;
//
int64 roomId = 5;
//
int64 epId = 7;
//
int32 isPreview = 8;
//
string type = 9;
//
int64 duration = 10;
//
int64 seasonId = 11;
}
//
message ReasonStyle {
//
string text = 1;
//
string textColor = 2;
//
string bgColor = 3;
//
string borderColor = 4;
//url
string iconUrl = 5;
//-
string textColorNight = 6;
//-
string bgColorNight = 7;
//-
string borderColorNight = 8;
//url-
string iconNightUrl = 9;
//id
//1: 2:
int32 bgStyle = 10;
//
string uri = 11;
//
string iconBgUrl = 12;
//
string event = 13;
//
string eventV2 = 14;
//
int32 rightIconType = 15;
//
string leftIconType = 16;
}
//
message Relation {
//
int32 status = 1;
//
int32 isFollow = 2;
//
int32 isFollowed = 3;
}
//
message SharePlane {
//
string title = 1;
//
string shareSubtitle = 2;
//
string desc = 3;
//url
string cover = 4;
//稿avid
int64 aid = 5;
//稿bvid
string bvid = 6;
//
map<string,bool> shareTo = 7;
//UP主昵称
string author = 8;
//UP主UID
int64 authorId = 9;
//
string shortLink = 10;
//
string playNumber = 11;
}
//
message SmallCoverRcmdItem {
//
string title = 1;
//url
string cover = 2;
//uri
string uri = 3;
//
string param = 4;
//
//av:稿
string goto = 5;
//
string coverRightText1 = 6;
//1UP主昵称
string rightDesc1 = 7;
//2
string rightDesc2 = 8;
//
string coverGif = 9;
//1id
int32 rightIcon1 = 10;
//2id
int32 rightIcon2 = 11;
}
//
message ThreeItemV1Item {
//
Base base = 1;
//
string coverLeftText = 2;
//
int32 coverLeftIcon = 3;
//
string desc1 = 4;
//
string desc2 = 5;
//
string badge = 6;
}
//
message ThreePoint {
//
repeated DislikeReason dislikeReasons = 1;
//
repeated DislikeReason feedbacks = 2;
//
int32 watchLater = 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 selectedTitle = 2;
//
string subtitle = 3;
//
repeated DislikeReason reasons = 4;
//
string type = 5;
//
int64 id = 6;
//
int32 selected = 7;
//
string icon = 8;
//
string selectedIcon = 9;
//
string url = 10;
//
int32 defaultId = 11;
}
//v4
message ThreePointV4 {
//
SharePlane sharePlane = 1;
//
WatchLater watchLater = 2;
}
//
message TwoItemHV1Item {
//
string title = 1;
//
string cover = 2;
//
string uri = 3;
//
string param = 4;
//
Args args = 5;
//
string goto = 6;
//
string coverLeftText1 = 7;
//
int32 coverLeftIcon1 = 8;
//
string coverRightText = 9;
}
//
message Up {
//
int64 id = 1;
//
string name = 2;
//
string desc = 3;
//
Avatar avatar = 4;
//
int32 officialIcon = 5;
//
Button descButton = 6;
//
string cooperation = 8;
}
//
message WatchLater {
//稿avid
int64 aid = 1;
//稿bvid
string bvid = 2;
}

View File

@ -0,0 +1,65 @@
syntax = "proto3";
package bilibili.app.card.v1;
//
message AdInfo {
//
int64 creative_id = 1;
//
int32 creative_type = 2;
//
int32 card_type = 3;
//
CreativeContent creative_content = 4;
//
string ad_cb = 5;
//
int64 resource = 6;
//
int32 source = 7;
//
string request_id = 8;
//
bool is_ad = 9;
//
int64 cm_mark = 10;
//
int32 index = 11;
//
bool is_ad_loc = 12;
//
int32 card_index = 13;
//
string client_ip = 14;
//
bytes extra = 15;
//
int32 creative_style = 16;
}
//
message CreativeContent {
//
string title = 1;
//
string description = 2;
//
int64 video_id = 3;
//
string username = 4;
//
string image_url = 5;
//
string image_md5 = 6;
//
string log_url = 7;
//
string log_md5 = 8;
//
string url = 9;
//
string click_url = 10;
//
string show_url = 11;
}

View File

@ -0,0 +1,31 @@
syntax = "proto3";
package bilibili.app.card.v1;
import "bilibili/app/card/v1/single.proto";
//
message Card {
oneof item {
//
SmallCoverV5 smallCoverV5 = 1;
//
LargeCoverV1 largeCoverV1 = 2;
//
ThreeItemAllV2 threeItemAllV2 = 3;
//
ThreeItemV1 threeItemV1 = 4;
//
HotTopic hotTopic = 5;
//
DynamicHot dynamicHot = 6;
//
MiddleCoverV3 middleCoverV3 = 7;
//
LargeCoverV4 largeCoverV4 = 8;
//
PopularTopEntrance popularTopEntrance = 9;
//
RcmdOneItem rcmdOneItem = 10;
}
}

View File

@ -0,0 +1,324 @@
syntax = "proto3";
package bilibili.app.card.v1;
import "bilibili/app/card/v1/ad.proto";
//
message Base {
//
string cardType = 1;
// ?
string cardGoto = 2;
//
// av:稿 mid:
string goto = 3;
//
string param = 4;
// url
string cover = 5;
//
string title = 6;
// uri
string uri = 7;
//
ThreePoint threePoint = 8;
//
Args args = 9;
//
PlayerArgs playerArgs = 10;
//
int64 idx = 11;
//
AdInfo adInfo = 12;
//
Mask mask = 13;
//
// recommend: operation:?
string fromType = 14;
//
repeated ThreePointV2 threePointV2 = 15;
//
repeated ThreePointV3 threePointV3 = 16;
//
Button descButton = 17;
// v4
ThreePointV4 threePointV4 = 18;
}
//
message Button {
//
string text = 1;
//
string param = 2;
//
string uri = 3;
//
string event = 4;
//
int32 selected = 5;
//
int32 type = 6;
// v2
string eventV2 = 7;
//
Relation relation = 8;
}
//
message ThreePoint {
//
repeated DislikeReason dislikeReasons = 1;
//
repeated DislikeReason feedbacks = 2;
//
int32 watchLater = 3;
}
//
message DislikeReason {
//
int64 id = 1;
//
string name = 2;
}
//
message Args {
//
int32 type = 1;
//
int64 up_id = 2;
//
string up_name = 3;
//
int32 rid = 4;
//
string rname = 5;
//
int64 tid = 6;
//
string tname = 7;
//
string track_id = 8;
//
string state = 9;
//
int32 converge_type = 10;
//
int64 aid = 11;
}
//
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;
//
int64 duration = 10;
//
int64 season_id = 11;
}
//
message Mask {
//
Avatar avatar = 1;
//
Button button = 2;
}
//
message Avatar {
//
string cover = 1;
//
string text = 2;
//
string uri = 3;
//
int32 type = 4;
//
string event = 5;
//
string event_v2 = 6;
//
int32 defalut_cover = 7;
}
//
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;
}
// v4
message ThreePointV4 {
//
SharePlane share_plane = 1;
//
WatchLater watch_later = 2;
}
//
message SharePlane {
//
string title = 1;
//
string shareSubtitle = 2;
//
string desc = 3;
// url
string cover = 4;
// 稿avid
int64 aid = 5;
// 稿bvid
string bvid = 6;
//
map<string,bool> shareTo = 7;
// UP主昵称
string author = 8;
// UP主mid
int64 authorId = 9;
//
string shortLink = 10;
//
string playNumber = 11;
}
//
message WatchLater {
// 稿avid
int64 aid = 1;
// 稿bvid
string bvid = 2;
}
//
message ReasonStyle {
//
string text = 1;
//
string textColor = 2;
//
string bgColor = 3;
//
string borderColor = 4;
// url
string iconUrl = 5;
// -
string textColorNight = 6;
// -
string bgColorNight = 7;
// -
string borderColorNight = 8;
// url-
string iconNightUrl = 9;
// id
// 1: 2:
int32 bgStyle = 10;
//
string uri = 11;
//
string iconBgUrl = 12;
//
string event = 13;
//
string eventV2 = 14;
//
int32 rightIconType = 15;
//
string leftIconType = 16;
}
//
message LikeButton {
//
int64 Aid = 1;
//
int32 count = 2;
//
bool show_count = 3;
//
string event = 4;
//
int32 selected = 5;
//
string event_v2 = 6;
}
//
message Up {
//
int64 id = 1;
//
string name = 2;
//
string desc = 3;
//
Avatar avatar = 4;
//
int32 official_icon = 5;
//
Button desc_button = 6;
//
string cooperation = 7;
}
//
message Relation {
//
int32 status = 1;
//
int32 isFollow = 2;
//
int32 isFollowed = 3;
}

View File

@ -0,0 +1,416 @@
syntax = "proto3";
package bilibili.app.card.v1;
import "bilibili/app/card/v1/common.proto";
//
message DoubleCards {
oneof Card {
//
SmallCoverV2 small_cover_v2 = 1;
//
OnePicV2 one_pic_v2 = 2;
//
ThreePicV2 three_pic_v2 = 3;
}
}
//
message SmallCoverV2 {
//
Base base = 1;
//
string cover_gif = 2;
//
int32 cover_blur = 3;
//
string cover_left_text_1 = 4;
//
int32 cover_left_icon_1 = 5;
//
string cover_left_text_2 = 6;
//
int32 cover_left_icon_2 = 7;
//
string cover_right_text = 8;
//
int32 cover_right_icon = 9;
//
string cover_right_background_color = 10;
//
string subtitle = 11;
//
string badge = 12;
//
string rcmd_reason = 13;
//
string desc = 14;
//
Avatar avatar = 15;
//
int32 official_icon = 16;
//
int32 can_play = 17;
//
ReasonStyle rcmd_reason_style = 18;
//
ReasonStyle rcmd_reason_style_v2 = 19;
//
LikeButton like_button = 20;
}
//
message SmallCoverV3 {
//
Base base = 1;
//
Avatar avatar = 2;
//
string cover_left_text = 3;
//
Button cover_right_button = 4;
//
string rcmd_reason = 5;
//
string desc = 6;
//
int32 official_icon = 7;
//
int32 can_play = 8;
//
ReasonStyle rcmd_reason_style = 9;
}
//
message MiddleCoverV2 {
//
Base base = 1;
//
int32 ratio = 2;
//
string desc = 3;
//
string badge = 4;
}
//
message LargeCoverV2 {
//
Base base = 1;
//
Avatar avatar = 2;
//
string badge = 3;
//
Button cover_right_button = 4;
//
string cover_left_text_1 = 5;
//
int32 cover_left_icon_1 = 6;
//
string cover_left_text_2 = 7;
//
int32 cover_left_icon_2 = 8;
//
string rcmd_reason = 9;
//
int32 official_icon = 10;
//
int32 can_play = 11;
//
ReasonStyle rcmd_reason_style = 12;
//
int32 show_top = 13;
//
int32 show_bottom = 14;
}
//
message ThreeItemV2 {
//
Base base = 1;
//
int32 title_icon = 2;
//
string more_uri = 3;
//
string more_text = 4;
//
repeated ThreeItemV2Item items = 5;
}
//
message ThreeItemV2Item {
//
Base base = 1;
//
int32 cover_left_icon = 2;
//
string desc_text_1 = 3;
//
int32 desc_icon_1 = 4;
//
string desc_text_2 = 5;
//
int32 desc_icon_2 = 6;
//
string badge = 7;
}
//
message SmallCoverV4 {
//
Base base = 1;
//
string cover_badge = 2;
//
string desc = 3;
//
string title_right_text = 4;
//
int32 title_right_pic = 5;
}
//
message TwoItemV2 {
//
Base base = 1;
//
repeated TwoItemV2Item items = 2;
}
message TwoItemV2Item {
//
Base base = 1;
//
string badge = 2;
//
string cover_left_text_1 = 3;
//
int32 cover_left_icon_1 = 4;
}
//
message MultiItem {
//
Base base = 1;
//
string more_uri = 2;
//
string more_text = 3;
//
repeated DoubleCards items = 4;
}
//
message ThreePicV2 {
//
Base base = 1;
//
string left_cover = 2;
//
string right_cover_1 = 3;
//
string right_cover_2 = 4;
//
string cover_left_text_1 = 5;
//
int32 cover_left_icon_1 = 6;
//
string cover_left_text_2 = 7;
//
int32 cover_left_icon_2 = 8;
//
string cover_right_text = 9;
//
int32 cover_right_icon = 10;
//
string cover_right_background_color = 11;
//
string badge = 12;
//
string rcmd_reason = 13;
//
string desc = 14;
//
Avatar avatar = 15;
//
ReasonStyle rcmd_reason_style = 16;
}
//
message OnePicV2 {
//
Base base = 1;
//
int32 cover_left_icon_1 = 2;
//
string cover_left_text_2 = 3;
//
string cover_right_text = 4;
//
int32 cover_right_icon = 5;
//
string cover_right_background_color = 6;
//
string badge = 7;
//
string rcmd_reason = 8;
//
Avatar avatar = 9;
//
ReasonStyle rcmd_reason_style = 10;
}
//
message LargeCoverV3 {
//
Base base = 1;
//
string cover_gif = 2;
//
Avatar avatar = 3;
//
ReasonStyle top_rcmd_reason_style = 4;
//
ReasonStyle bottom_rcmd_reason_style = 5;
//
string cover_left_text_1 = 6;
//
int32 cover_left_icon_1 = 7;
//
string cover_left_text_2 = 8;
//
int32 cover_left_icon_2 = 9;
//
string cover_right_text = 10;
//
string desc = 11;
//
int32 official_icon = 12;
}
//
message ThreePicV3 {
//
Base base = 1;
//
string left_cover = 2;
//
string right_cover_1 = 3;
//
string right_cover_2 = 4;
//
string cover_left_text_1 = 5;
//
int32 cover_left_icon_1 = 6;
//
string cover_left_text_2 = 7;
//
int32 cover_left_icon_2 = 8;
//
string cover_right_text = 9;
//
int32 cover_right_icon = 10;
//
string cover_right_background_color = 11;
//
string badge = 12;
//
ReasonStyle rcmd_reason_style = 13;
}
//
message OnePicV3 {
//
Base base = 1;
//
string cover_left_text_1 = 2;
//
int32 cover_left_icon_1 = 3;
//
string cover_right_text = 4;
//
int32 cover_right_icon = 5;
//
string cover_right_background_color = 6;
//
string badge = 7;
//
ReasonStyle rcmd_reason_style = 8;
}
//
message SmallCoverV7 {
//
Base base = 1;
//
string desc = 2;
}
//
message SmallCoverV9 {
//
Base base = 1;
//
string cover_left_text_1 = 2;
//
int32 cover_left_icon_1 = 3;
//
string cover_left_text_2 = 4;
//
int32 cover_left_icon_2 = 5;
//
string cover_right_text = 6;
//
int32 cover_right_icon = 7;
//
int32 can_play = 8;
//
ReasonStyle rcmd_reason_style = 9;
//
Up up = 10;
//
ReasonStyle left_cover_badge_style = 11;
//
ReasonStyle left_bottom_rcmd_reason_style = 12;
}
//
message SmallCoverConvergeV2 {
//
Base base = 1;
//
string cover_left_text_1 = 2;
//
int32 cover_left_icon_1 = 3;
//
string cover_left_text_2 = 4;
//
int32 cover_left_icon_2 = 5;
//
string cover_right_text = 6;
//
string cover_right_top_text = 7;
//
ReasonStyle rcmd_reason_style = 8;
//
ReasonStyle rcmd_reason_style_v2 = 9;
}
//
message SmallChannelSpecial {
//
Base base = 1;
//
string bg_cover = 2;
//
string desc_1 = 3;
//
string desc_2 = 4;
//
string badge = 5;
//
ReasonStyle rcmd_reason_style_2 = 6;
}

View File

@ -0,0 +1,313 @@
syntax = "proto3";
package bilibili.app.card.v1;
import "bilibili/app/card/v1/common.proto";
//
message SmallCoverV5 {
//
Base base = 1;
//
string cover_gif = 2;
//
Up up = 3;
//
string cover_right_text_1 = 4;
// 1
string right_desc_1 = 5;
// 2
string right_desc_2 = 6;
//
ReasonStyle rcmd_reason_style = 7;
//
HotwordEntrance hotword_entrance = 8;
//
ReasonStyle corner_mark_style = 9;
// 1id
int32 right_icon_1 = 10;
// 2id
int32 right_icon_2 = 11;
//
ReasonStyle left_corner_mark_style = 12;
}
//
message HotwordEntrance {
//
int64 hotword_id = 1;
//
string hot_text = 2;
//
string h5_url = 3;
//
string icon = 4;
}
//
message LargeCoverV1 {
//
Base base = 1;
//
string cover_gif = 2;
//
Avatar avatar = 3;
//
string cover_left_text_1 = 4;
//
string cover_left_text_2 = 5;
//
string cover_left_text_3 = 6;
//
string cover_badge = 7;
//
string top_rcmd_reason = 8;
//
string bottom_rcmd_reason = 9;
//
string desc = 10;
//
int32 official_icon = 11;
//
int32 can_play = 12;
//
ReasonStyle top_rcmd_reason_style = 13;
//
ReasonStyle bottom_rcmd_reason_style = 14;
//
ReasonStyle rcmd_reason_style_v2 = 15;
//
ReasonStyle left_cover_badge_style = 16;
//
ReasonStyle right_cover_badge_style = 17;
//
string cover_badge_2 = 18;
//
LikeButton like_button = 19;
//
int32 title_single_line = 20;
//
string cover_right_text = 21;
}
//
message ThreeItemAllV2 {
//
Base base = 1;
//
ReasonStyle top_rcmd_reason_style = 2;
//
repeated TwoItemHV1Item item = 3;
}
//
message TwoItemHV1Item {
//
string title = 1;
//
string cover = 2;
//
string uri = 3;
//
string param = 4;
//
Args args = 5;
//
string goto = 6;
//
string cover_left_text_1 = 7;
//
int32 cover_left_icon_1 = 8;
//
string cover_right_text = 9;
}
//
message RcmdOneItem {
//
Base base = 1;
//
ReasonStyle topRcmdReasonStyle = 2;
//
SmallCoverRcmdItem item = 3;
}
//
message SmallCoverRcmdItem {
//
string title = 1;
// url
string cover = 2;
// uri
string uri = 3;
//
string param = 4;
//
// av:稿
string goto = 5;
//
string coverRightText1 = 6;
// 1
string rightDesc1 = 7;
// 2
string rightDesc2 = 8;
//
string coverGif = 9;
// 1id
int32 rightIcon1 = 10;
// 2id
int32 rightIcon2 = 11;
}
//
message ThreeItemV1 {
//
Base base = 1;
//
int32 titleIcon = 2;
//
string moreUri = 3;
//
string moreText = 4;
//
repeated ThreeItemV1Item items = 5;
}
//
message ThreeItemV1Item {
//
Base base = 1;
//
string coverLeftText = 2;
//
int32 coverLeftIcon = 3;
//
string desc1 = 4;
//
string desc2 = 5;
//
string badge = 6;
}
//
message HotTopicItem {
//
string cover = 1;
//
string uri = 2;
//
string param = 3;
//
string name = 4;
}
//
message HotTopic {
//
Base base = 1;
//
string desc = 2;
//
repeated HotTopicItem items = 3;
}
//
message DynamicHot {
//
Base base = 1;
//
string top_left_title = 2;
//
string desc1 = 3;
//
string desc2 = 4;
//
string more_uri = 5;
//
string more_text = 6;
//
repeated string covers = 7;
//
string cover_right_text = 8;
//
ReasonStyle top_rcmd_reason_style = 9;
}
//
message MiddleCoverV3 {
//
Base base = 1;
//
string desc1 = 2;
//
string desc2 = 3;
//
ReasonStyle cover_badge_style = 4;
}
//
message LargeCoverV4 {
//
Base base = 1;
//
string cover_left_text_1 = 2;
//
string cover_left_text_2 = 3;
//
string cover_left_text_3 = 4;
//
string cover_badge = 5;
//
int32 can_play = 6;
//
Up up = 7;
//
string short_link = 8;
//
string share_subtitle = 9;
//
string play_number = 10;
//
string bvid = 11;
//
string sub_param = 12;
}
//
message PopularTopEntrance {
//
Base base = 1;
//
repeated EntranceItem items = 2;
}
//
message EntranceItem {
//
string goto = 1;
// url
string icon = 2;
//
string title = 3;
// id
string moduleId = 4;
// uri
string uri = 5;
// id
int64 entranceId = 6;
//
Bubble bubble = 7;
//
// 1:
int32 entranceType = 8;
}
//
message Bubble {
//
string bubbleContent = 1;
//
int32 version = 2;
//
int64 stime = 3;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +1,75 @@
//APP端视频播放v1接口
syntax = "proto3";
package bilibili.app.playurl.v1;
//url
service PlayURL {
//
//https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayConf
rpc PlayConf (PlayConfReq) returns (PlayConfReply);
//
//
rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply);
//url
//
// url
rpc PlayURL (PlayURLReq) returns (PlayURLReply);
//
//https://app.bilibili.com/bilibili.app.playurl.v1.PlayURL/PlayView
rpc PlayView (PlayViewReq) returns (PlayViewReply);
//
//
// url
rpc Project (ProjectReq) returns (ProjectReply);
// url及播放界面配置
rpc PlayView (PlayViewReq) returns (PlayViewReply);
//
rpc PlayConfEdit (PlayConfEditReq) returns (PlayConfEditReply);
//
rpc PlayConf (PlayConfReq) returns (PlayConfReply);
}
// url-
message PlayURLReq {
// 稿avid
int64 aid = 1;
// cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 forceHost = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string fromSpmid = 10;
}
// url-
message PlayURLReply {
//
uint32 quality = 1;
//
string format = 2;
// (ms)
uint64 timelength = 3;
// id
uint32 videoCodecid = 4;
//
uint32 fnver = 5;
//
uint32 fnval = 6;
//
bool videoProject = 7;
//
repeated ResponseUrl durl = 8;
// dash视频流
ResponseDash dash = 9;
//
int32 noRexcode = 10;
//
UpgradeLimit upgradeLimit = 11;
//
repeated FormatDescription supportFormats = 12;
//
VideoType type = 13;
}
//-
@ -48,82 +94,9 @@ message PlayConfEditReply {
}
//url-
message PlayURLReq {
//稿avid
int64 aid = 1;
//cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
//0: 1:flv下载 2:dash下载
uint32 download = 6;
//url强制是用域名
//0:使ip 1:使http 2:使https
int32 forceHost = 7;
//4K
bool fourk = 8;
//
string spmid = 9;
//
string fromSpmid = 10;
}
//url-
message PlayURLReply {
//
uint32 quality = 1;
//
string format = 2;
//
uint64 timelength = 3;
//
uint32 videoCodecid = 4;
//
uint32 fnver = 5;
//
uint32 fnval = 6;
//
bool videoProject = 7;
//
repeated ResponseUrl durl = 8;
//
ResponseDash dash = 9;
//
int32 noRexcode = 10;
//
UpgradeLimit upgradeLimit = 11;
//
repeated FormatDescription supportFormats = 12;
//
VideoType type = 13;
}
//-
message PlayViewReq {
@ -261,15 +234,13 @@ message CloudConf {
FieldValue fieldValue = 3;
}
//
//
enum CodeType {
//
//
NOCODE = 0;
//H.264
// H.264
CODE264 = 1;
//H.265
// H.265
CODE265 = 2;
}
@ -277,88 +248,60 @@ enum CodeType {
enum ConfType {
//
NoType_VALUE = 0;
//
FLIPCONF_VALUE = 1;
//
CASTCONF_VALUE = 2;
//
FEEDBACK_VALUE = 3;
//
SUBTITLE_VALUE = 4;
//
PLAYBACKRATE_VALUE = 5;
//
TIMEUP_VALUE = 6;
//
PLAYBACKMODE_VALUE = 7;
//
SCALEMODE_VALUE = 8;
//
BACKGROUNDPLAY_VALUE = 9;
//
LIKE_VALUE = 10;
//
DISLIKE_VALUE = 11;
//
COIN_VALUE = 12;
//
ELEC_VALUE = 13;
//
SHARE_VALUE = 14;
//
SCREENSHOT_VALUE = 15;
//
LOCKSCREEN_VALUE = 16;
//
RECOMMEND_VALUE = 17;
//
PLAYBACKSPEED_VALUE = 18;
//
DEFINITION_VALUE = 19;
//
SELECTIONS_VALUE = 20;
//
NEXT_VALUE = 21;
//
EDITDM_VALUE = 22;
//
SMALLWINDOW_VALUE = 23;
//
SHAKE_VALUE = 24;
//
OUTERDM_VALUE = 25;
//
INNERDM_VALUE = 26;
//
PANORAMA_VALUE = 27;
//
DOLBY_VALUE = 28;
}
@ -367,22 +310,16 @@ enum ConfType {
message DashItem {
//
uint32 id=1;
//线
string baseUrl=2;
//
repeated string backupUrl=3;
//
uint32 bandwidth=4;
//
uint32 codecid=5;
//md5
string md5=6;
//
uint64 size=7;
}
@ -550,85 +487,58 @@ message PlayAbilityConf {
message PlayArcConf {
//
ArcConf backgroundPlayConf=1;
//
ArcConf flipConf=2;
//
ArcConf castConf=3;
//
ArcConf feedbackConf=4;
//
ArcConf subtitleConf=5;
//
ArcConf playbackRateConf=6;
//
ArcConf timeUpConf=7;
//
ArcConf playbackModeConf=8;
//
ArcConf scaleModeConf=9;
//
ArcConf likeConf=10;
//
ArcConf dislikeConf=11;
//
ArcConf coinConf=12;
//
ArcConf elecConf=13;
//
ArcConf shareConf=14;
//
ArcConf screenShotConf=15;
//
ArcConf lockScreenConf=16;
//
ArcConf recommendConf=17;
//
ArcConf playbackSpeedConf=18;
//
ArcConf definitionConf=19;
//
ArcConf selectionsConf=20;
//
ArcConf nextConf=21;
//
ArcConf editDmConf=22;
//
ArcConf smallWindowConf=23;
//
ArcConf shakeConf=24;
//
ArcConf outerDmConf=25;
//
ArcConf innerDmConf=26;
//
ArcConf freyaEnterConf=27;
//
ArcConf dolbyConf=28;
}
@ -730,40 +640,28 @@ message Stream {
message StreamInfo {
// qn
uint32 quality=1;
//
string format=2;
//
string description=3;
//
uint32 errCode=4;
//
Limit limit=5;
//vip
bool needVip=6;
//
bool needLogin=7;
//
bool intact=8;
//
bool noRexcode=9;
//
int64 attribute=10;
//
string newDescription=11;
//
string displayDesc=12;
//
string superscript=13;
}
@ -828,17 +726,14 @@ message VideoInfo {
DolbyItem dolby=7;
}
//
//
enum VideoType {
//
Unknown_VALUE = 0;
//
// flv格式
FLV_VALUE = 1;
//
// dash格式
DASH_VALUE = 2;
//
// mp4格式
MP4_VALUE = 3;
}

View File

@ -1,27 +0,0 @@
syntax = "proto3";
package bilibili.app.show.gateway.v1;
import "bilibili/broadcast/message/main.proto";
//
service AppShow {
//
//
rpc getActProgress (GetActProgressReq) returns (GetActProgressReply);
}
//-
message GetActProgressReq {
//
int64 pageID = 1;
//
int64 mid = 2;
}
//-
message GetActProgressReply {
//
bilibili.broadcast.message.main.NativePageEvent event = 1;
}

View File

@ -0,0 +1,25 @@
syntax = "proto3";
package bilibili.app.show.gateway.v1;
import "bilibili/broadcast/message/main/native.proto";
//
service AppShow {
// Native页进度数据
rpc GetActProgress (GetActProgressReq) returns (GetActProgressReply);
}
// Native页进度数据-
message GetActProgressReq {
// Native页id
int64 pageID = 1;
// mid
int64 mid = 2;
}
// Native页进度数据-
message GetActProgressReply {
//
bilibili.broadcast.message.main.NativePageEvent event = 1;
}

View File

@ -1,140 +0,0 @@
syntax = "proto3";
package bilibili.app.show.v1;
import "bilibili/app/playurl/v1.proto";
import "bilibili/app/card/v1.proto";
//
service Popular {
//
//https://app.bilibili.com/bilibili.app.show.v1.Popular/Index
rpc Index (PopularResultReq) returns (PopularReply);
}
//-
message PopularResultReq {
//ididx
int64 idx = 1;
//
//1: 2:
int32 loginEvent = 2;
//
int32 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//使
int32 forceHost = 6;
//4K
int32 fourk = 7;
//
sfixed32 spmid = 8;
//param
sfixed32 lastParam = 9;
//ver
sfixed32 ver = 10;
//
int64 entranceId = 11;
//
sfixed32 locationIds = 12;
//
int32 sourceId = 13;
//
int32 flush = 14;
//
bilibili.app.playurl.v1.PlayerArgs playerArgs = 15;
}
//-
message PopularReply {
//
repeated bilibili.app.card.v1.Card items = 1;
//
Config config = 2;
//?
string ver = 3;
}
//
message Bubble {
//
string bubbleContent = 1;
//
int32 version = 2;
//
int64 stime = 3;
}
//
message Config {
//
string itemTitle = 1;
//
string bottomText = 2;
//url
string bottomTextCover = 3;
//url
string bottomTextUrl = 4;
//
repeated EntranceShow topItems = 5;
//url
string headImage = 6;
//
repeated EntranceShow pageItems = 7;
//?
int32 hit = 8;
}
//
message EntranceShow {
//url
string icon = 1;
//
string title = 2;
//id
string moduleId = 3;
//uri
string uri = 4;
//
Bubble bubble = 5;
//id
int64 entranceId = 6;
//url
string topPhoto = 7;
//?
int32 entranceType = 8;
}

View File

@ -0,0 +1,108 @@
syntax = "proto3";
package bilibili.app.show.v1;
import "bilibili/app/card/v1/card.proto";
import "bilibili/app/archive/middleware/v1/preload.proto";
//
service Popular {
//
rpc Index (PopularResultReq) returns (PopularReply);
}
// -
message PopularResultReq {
// ididx
int64 idx = 1;
//
// 1: 2:
int32 loginEvent = 2;
// ()
int32 qn = 3;
// ()
int32 fnver = 4;
// ()
int32 fnval = 5;
// 使()
int32 forceHost = 6;
// 4K()
int32 fourk = 7;
// spm
string spmid = 8;
// param
string lastParam = 9;
// ver
string ver = 10;
// ID
int64 entranceId = 11;
// id集合
string locationIds = 12;
// 0:tag页 1:
int32 sourceId = 13;
//
// 0: 1:
int32 flush = 14;
//
bilibili.app.archive.middleware.v1.PlayerArgs playerArgs = 15;
}
// -
message PopularReply {
//
repeated bilibili.app.card.v1.Card items = 1;
//
Config config = 2;
//
string ver = 3;
}
//
message Config {
//
string itemTitle = 1;
//
string bottomText = 2;
// url
string bottomTextCover = 3;
// url
string bottomTextUrl = 4;
//
repeated EntranceShow topItems = 5;
// url
string headImage = 6;
//
repeated EntranceShow pageItems = 7;
//
int32 hit = 8;
}
//
message EntranceShow {
// url
string icon = 1;
//
string title = 2;
// id
string moduleId = 3;
// uri
string uri = 4;
//
Bubble bubble = 5;
// id
int64 entranceId = 6;
// url
string topPhoto = 7;
//
int32 entranceType = 8;
}
//
message Bubble {
//
string bubbleContent = 1;
//
int32 version = 2;
//
int64 stime = 3;
}

View File

@ -1,153 +0,0 @@
syntax = "proto3";
package bilibili.app.show.v1;
//
service Rank {
//
//https://app.bilibili.com/bilibili.app.show.v1.Rank/RankAll
rpc RankAll (RankAllResultReq) returns (RankListReply);
//
//https://app.bilibili.com/bilibili.app.show.v1.Rank/RankRegion
rpc RankRegion (RankRegionResultReq) returns (RankListReply);
}
//-
message RankAllResultReq {
//"all"
string order = 1;
//
//1
int32 pn = 2;
//
//100100
int32 ps = 3;
}
//-
message RankRegionResultReq {
//tid
//0:
int32 rid = 1;
//
//1
int32 pn = 2;
//
//100100
int32 ps = 3;
}
//-
message RankListReply {
//
repeated Item items = 1;
}
//
message Item {
//
string title = 1;
//url
string cover = 2;
//稿avid
string param = 3;
//uri
string uri = 4;
//url?
string redirectUrl = 5;
//
//av:稿
string goto = 6;
//
int32 play = 7;
//
int32 danmaku = 8;
//UP主UID
int64 mid = 9;
//UP主昵称
string name = 10;
//UP主头像url
string face = 11;
//
int32 reply = 12;
//
int32 favourite = 13;
//
int64 pubDate = 14;
//tid
int32 rid = 15;
//
string rname = 16;
//
int64 duration = 17;
//
int32 like = 18;
//1P cid
int64 cid = 19;
//
int64 pts = 20;
//
string cooperation = 21;
//
int32 attribute = 22;
//UP主粉丝数
int64 follower = 23;
//UP主认证信息
OfficialVerify officialVerify = 24;
//UP收起子项列表
repeated Item children = 25;
//
Relation relation = 26;
}
//
message OfficialVerify {
//
//-1: 0: 1:
int32 type = 1;
//
string desc = 2;
}
//
message Relation {
//id
int32 status = 1;
//
int32 isFollow = 2;
//
int32 isFollowed = 3;
}

View File

@ -0,0 +1,120 @@
syntax = "proto3";
package bilibili.app.show.v1;
//
service Rank {
//
rpc RankAll (RankAllResultReq) returns (RankListReply);
//
rpc RankRegion (RankRegionResultReq) returns (RankListReply);
}
// -
message RankAllResultReq {
// "all"
string order = 1;
//
// 1
int32 pn = 2;
//
// 100100
int32 ps = 3;
}
// -
message RankRegionResultReq {
// tid()
// 0:
int32 rid = 1;
//
// 1
int32 pn = 2;
//
// 100100
int32 ps = 3;
}
// -
message RankListReply {
//
repeated Item items = 1;
}
//
message Item {
//
string title = 1;
// url
string cover = 2;
// (稿avid)
string param = 3;
// uri
string uri = 4;
// url
string redirectUrl = 5;
//
// av:稿
string goto = 6;
//
int32 play = 7;
//
int32 danmaku = 8;
// UP主mid
int64 mid = 9;
// UP主昵称
string name = 10;
// UP主头像url
string face = 11;
//
int32 reply = 12;
//
int32 favourite = 13;
//
int64 pubDate = 14;
// tid
int32 rid = 15;
//
string rname = 16;
//
int64 duration = 17;
//
int32 like = 18;
// 1P cid
int64 cid = 19;
//
int64 pts = 20;
//
string cooperation = 21;
//
// 0: 1:
int32 attribute = 22;
// UP主粉丝数
int64 follower = 23;
// UP主认证信息
OfficialVerify officialVerify = 24;
// UP收起子项列表
repeated Item children = 25;
//
Relation relation = 26;
}
//
message OfficialVerify {
//
// -1: 0: 1:
int32 type = 1;
//
string desc = 2;
}
//
message Relation {
// id
// 1: 2: 3: 4:
int32 status = 1;
//
int32 isFollow = 2;
//
int32 isFollowed = 3;
}

View File

@ -5,8 +5,7 @@ package bilibili.app.show.region.v1;
//
service Region {
//
//
rpc region (RegionReq) returns (RegionReply);
rpc Region (RegionReq) returns (RegionReply);
}
//
@ -25,7 +24,6 @@ message RegionReply {
message RegionConfig {
//
string scenesName = 1;
//
string scenesType = 2;
}
@ -34,34 +32,24 @@ message RegionConfig {
message RegionInfo {
//
int32 tid = 1;
//
int32 reid = 2;
//
string name = 3;
//
string logo = 4;
//
string goto = 5;
//
string param = 6;
//
string uri = 7;
//
int32 type = 8;
//
int32 isBangumi = 9;
//
repeated RegionInfo children = 10;
//
repeated RegionConfig config = 11;
}

View File

@ -5,36 +5,29 @@ package bilibili.app.space.v1;
//
service Space {
//
//
rpc archive (ArchiveReq) returns (ArchiveReply);
rpc Archive (ArchiveReq) returns (ArchiveReply);
}
//-
message ArchiveReq {
//
int64 vmid = 1;
//
int32 pn = 2;
//
int32 ps = 3;
//
string order = 4;
}
//-
//-
message ArchiveReply {
//
repeated BiliSpaceVideo item = 1;
//
int32 count = 2;
//
EpisodicButton episodicButton = 3;
//
repeated OrderConfig order = 4;
}
@ -43,25 +36,18 @@ message ArchiveReply {
message Badge {
//
string text = 1;
//
string textColor = 2;
//
string textColorNight = 3;
//
string bgColor = 4;
//
string bgColorNight = 5;
//
string borderColor = 6;
//
string borderColorNight = 7;
//
int32 bgStyle = 8;
}
@ -70,52 +56,36 @@ message Badge {
message BiliSpaceVideo {
//
string title = 1;
//
string tname = 2;
//
int64 duration = 3;
//
string cover = 4;
//
string uri = 5;
//
string param = 6;
//
string danmaku = 7;
//
int32 play = 8;
//
int64 ctime = 9;
//
bool state = 10;
//
bool isPopular = 11;
//
repeated Badge badges = 12;
//
string coverRight = 13;
//
string bvid = 14;
//
bool isSteins = 15;
//
bool isUgcpay = 16;
//
bool isCooperation = 17;
}
@ -124,7 +94,6 @@ message BiliSpaceVideo {
message EpisodicButton {
//
string text = 1;
//
string uri = 2;
}
@ -133,7 +102,6 @@ message EpisodicButton {
message OrderConfig {
//
string title = 1;
//
string value = 2;
}
}

View File

@ -7,42 +7,33 @@ import "google/protobuf/any.proto";
//
service Splash {
//
//
rpc list (SplashReq) returns (SplashReply);
rpc List (SplashReq) returns (SplashReply);
}
//-
message SplashReq {
//
int32 width = 1;
//
int32 height = 2;
//
string birth = 3;
//
string adExtra = 4;
//
string network = 5;
}
//-
//-
message SplashReply {
//
int32 maxTime = 1;
//
int32 minInterval = 2;
//
int32 pullInterval = 3;
//
repeated SplashItem list = 4;
//
repeated ShowStrategy show = 5;
}
@ -51,10 +42,8 @@ message SplashReply {
message ShowStrategy {
//
int32 id = 1;
//
int64 stime = 2;
//
int64 etime = 3;
}
@ -63,118 +52,80 @@ message ShowStrategy {
message SplashItem {
//
int32 id = 1;
//
int32 type = 2;
//
int32 cardType = 3;
//
int32 duration = 4;
//
int64 beginTime = 5;
//
int64 endTime = 6;
//
string thumb = 7;
//
string hash = 8;
//
string logoUrl = 9;
//
string logoHash = 10;
//
string videoUrl = 11;
//
string videoHash = 12;
//
int32 videoWidth = 13;
//
int32 videoHeight = 14;
//
string schema = 15;
//
string schemaTitle = 16;
//
string schemaPackageName = 17;
//
repeated string schemaCallupWhiteList = 18;
//
int32 skip = 19;
//
string uri = 20;
//
string uriTitle = 21;
//
int32 source = 22;
//
int32 cmMark = 23;
//
string adCb = 24;
//
int64 resourceId = 25;
//
string requestId = 26;
//
string clientIp = 27;
//
bool isAd = 28;
//
bool isAdLoc = 29;
//
google.protobuf.Any extra = 30;
//
int64 cardIndex = 31;
//
int64 serverType = 32;
//
int64 index = 33;
//
string clickUrl = 34;
//
string showUrl = 35;
//
int32 timeTarget = 36;
//
int32 encryption = 37;
//
bool enablePreDownload = 38;
//
bool enableBackgroundDownload = 39;
}

View File

@ -0,0 +1,119 @@
syntax = "proto3";
package bilibili.gaia.gw;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "google/protobuf/empty.proto";
//import "extension/wdcli/wdcli.proto";
//
service Gaia {
//
rpc ExUploadAppList(GaiaEncryptMsgReq) returns (UploadAppListReply);
// rsa公钥
rpc ExFetchPublicKey(.google.protobuf.Empty) returns (FetchPublicKeyReply);
}
//
message FetchPublicKeyReply {
//
string version = 1;
// RSA公钥
string public_key = 2;
//
int64 deadline = 3;
}
message GaiaDeviceBasicInfo {
//&
string platform = 1; //android/ios/web/h5;
string device = 2; //, app, device有效值为phone, padphone和pad
string mobi_app = 3; //app, mobi_app web端请求
string origin =4; //appkey, appkey,
string app_id = 5; //app产品编号 //=1=2=3=4HD=5=6OTT=7=8TV野版=9=10=11lite=12HD=13,=14
//
string sdkver = 6; // SDK版本号 "sdkver": "2.6.6"
string app_version = 7; // app版本 "app_version":"5.36.0"
string app_version_code = 8; // app版本号 "app_version_code":"5360000"
string build = 9; // app版本号web端请求
//
string channel = 10; //web端请求chid
//
string brand =11; //
string model=12; //
string osver =13; //
string user_agent=14;
//
string buvid_local = 15; //
string buvid = 16; //
//
string mid = 17; //mid0
//
int64 fts = 18; // app首次启动时间 "fts":1530447775661
int32 first = 19; // 0 1
//
string network = 20; // , WIFI/CELLULAR/OFFLINE/OTHERNET/ETHERNET "network":"WIFI", ESS_NETWORK_STATEACCESS_WIFI_STATE
//string ip = 20;
}
//pb对象
message DeviceAppList {
//
// first_installation: first_open:
string source = 1;
//
repeated string system_app_list = 2;
//
repeated string user_app_list = 3;
}
//
enum EncryptType{
//
INVALID_ENCRYPT_TYPE = 0;
// AES加密私钥
CLIENT_AES = 1;
// AES加密的私钥RSA公钥来加密
SERVER_RSA_AES = 2;
}
//
enum PayloadType {
//
INVALID_PAYLOAD = 0;
//app列表DeviceAppList
DEVICE_APP_LIST = 1;
}
//
message GaiaMsgHeader {
//
EncryptType encode_type = 1;
//
PayloadType payload_type = 2;
//RAS加密后的aes_key
bytes encoded_aes_key = 3;
//(ms)
int64 ts = 4;
}
// -
message GaiaEncryptMsgReq {
//
GaiaMsgHeader header = 1;
//
bytes encrypt_payload = 2;
}
// -
message UploadAppListReply {
// id
string trace_id = 1;
}

File diff suppressed because one or more lines are too long