update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ 2022-09-15 18:00:56 +08:00
parent 9322217103
commit b4bb815ae6
11 changed files with 1397 additions and 322 deletions

View File

@ -8,10 +8,17 @@ service Fission {
rpc Entrance (EntranceReq) returns (EntranceReply); rpc Entrance (EntranceReq) returns (EntranceReply);
// //
rpc Window (WindowReq) returns (WindowReply); rpc Window (WindowReq) returns (WindowReply);
//
rpc Privacy(PrivacyReq) returns (PrivacyReply);
} }
// - //
message EntranceReq {} message AnimateIcon {
// icon文件
string icon = 1;
// json文件
string json = 2;
}
// - // -
message EntranceReply { message EntranceReply {
@ -25,8 +32,20 @@ message EntranceReply {
AnimateIcon animate_icon = 4; AnimateIcon animate_icon = 4;
} }
// - // -
message WindowReq {} message EntranceReq {}
//
message PrivacyReply {
//
string message = 1;
}
//
message PrivacyReq {
//
string activity_uid = 1;
}
//- //-
message WindowReply { message WindowReply {
@ -39,10 +58,5 @@ message WindowReply {
string report_data = 3; string report_data = 3;
} }
// // -
message AnimateIcon { message WindowReq {}
// icon文件
string icon = 1;
// json文件
string json = 2;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,75 @@
syntax = "proto3";
package bilibili.api.player.v1;
//
service Heartbeat {
//
rpc Mobile(HeartbeatReq) returns (HeartbeatReply);
}
// -
message HeartbeatReply {
//
int64 ts = 1;
}
// -
message HeartbeatReq {
//
int64 server_time = 1;
//
string session = 2;
// mid
int64 mid = 3;
// 稿 avid
int64 aid = 4;
// cid
int64 cid = 5;
//
string sid = 6;
//
int64 epid = 7;
//
string type = 8;
//
int32 sub_type = 9;
//
int32 quality = 10;
//
int64 total_time = 11;
//
int64 paused_time = 12;
//
int64 played_time = 13;
//
int64 video_duration = 14;
//
string play_type = 15;
//
int32 network_type = 16;
//
int64 last_play_progress_time = 17;
//
int64 max_play_progress_time = 18;
//
int32 from = 19;
//
string from_spmid = 20;
//
string spmid = 21;
//
string epid_status = 22;
//
string play_status = 23;
//
string user_status = 24;
//
int64 actual_played_time = 25;
//
int32 auto_play = 26;
//
int64 list_play_time = 27;
//
int64 detail_play_time = 28;
}

View File

@ -15,20 +15,66 @@ service Probe {
} }
// //
message CodeReq { enum Category {
// CATEGORY_UNSPECIFIED = 0; //
int64 code = 1; CATEGORY_ONE = 1; //
CATEGORY_TWO = 2; //
CATEGORY_THREE = 3; //
} }
// //
message CodeReply {} message CodeReply {}
// //
message ProbeReq { message CodeReq {
// //
int64 mid = 1; int64 code = 1;
}
//
message DynamicMessageUpdate {
// //
string buvid = 2; SimpleMessage body = 1;
}
//
message Embedded {
//
bool bool_val = 1;
//
int32 int32_val = 2;
//
int64 int64_val = 3;
//
float float_val = 4;
//
double double_val = 5;
//
string string_val = 6;
//
repeated int32 repeated_int32_val = 8;
//
repeated string repeated_string_val = 12;
//
map<string, string> map_string_val = 13;
//
map<string, ErrorMessage> map_error_val = 14;
}
//
message ErrorMessage {
//
int64 code = 1;
//
string reason = 2;
//
string message = 3;
}
//
enum ErrorReason {
PROBE_UNSPECIFIED = 0; //
PROBE_CATEGORY_NOTFOUND = 1; //
} }
// //
@ -40,11 +86,11 @@ message ProbeReply {
} }
// //
message ProbeStreamReq { message ProbeReq {
// //
int64 mid = 1; int64 mid = 1;
// //
int64 sequence = 2; string buvid = 2;
} }
// //
@ -58,9 +104,11 @@ message ProbeStreamReply {
} }
// //
message ProbeSubReq { message ProbeStreamReq {
// //
int64 buvid = 1; int64 mid = 1;
//
int64 sequence = 2;
} }
// //
@ -68,3 +116,23 @@ message ProbeSubReply {
// //
int64 message_id = 1; int64 message_id = 1;
} }
//
message ProbeSubReq {
//
int64 buvid = 1;
}
//
message SimpleMessage {
//
int32 id = 1;
//
int64 num = 2;
//
string lang = 3;
//
int32 cate = 4;
//
Embedded embedded = 5;
}

View File

@ -13,4 +13,6 @@ message PlayerArgs {
// url是否强制使用域名 // url是否强制使用域名
// 0:使 1:http域名 2:https域名 // 0:使 1:http域名 2:https域名
int64 force_host = 4; int64 force_host = 4;
//
int64 voice_balance = 5;
} }

View File

@ -66,6 +66,14 @@ message Arc {
int64 season_id = 29; int64 season_id = 29;
// () // ()
int64 attribute_v2 = 30; int64 attribute_v2 = 30;
//
SeasonTheme season_theme = 31;
//
string short_link_v2 = 40;
//
int32 up_from_v2 = 41;
//
string first_frame = 42;
} }
// UP主信息 // UP主信息
@ -110,6 +118,8 @@ message Page {
string webLink = 8; string webLink = 8;
// P分辨率 // P分辨率
Dimension dimension = 9; Dimension dimension = 9;
//
string first_frame = 10;
} }
// 稿 // 稿
@ -144,6 +154,16 @@ message Rights {
int32 pay_free_watch = 14; int32 pay_free_watch = 14;
} }
//
message SeasonTheme {
//
string bg_color = 1;
//
string selected_bg_color = 2;
//
string text_color = 3;
}
// //
message StaffInfo { message StaffInfo {
// mid // mid

View File

@ -2591,6 +2591,10 @@ message MixUpListItem {
VipInfo vip = 8; VipInfo vip = 8;
// //
Relation relation = 9; Relation relation = 9;
//
int32 permire_state = 10;
//
string uri = 11;
} }
message MixUpListLiveItem { message MixUpListLiveItem {
@ -2736,6 +2740,10 @@ message ModuleAuthor {
bool show_follow = 12; bool show_follow = 12;
// //
bool is_top = 13; bool is_top = 13;
// ip属地
string ptime_location_text = 14;
//
bool show_level = 15;
} }
// -- // --

View File

@ -13,9 +13,7 @@ service PlayerOnline {
} }
// //
message NoReply { message NoReply {}
}
// 线- // 线-
message PlayerOnlineReply { message PlayerOnlineReply {

View File

@ -4,6 +4,7 @@ package bilibili.app.view.v1;
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
import "bilibili/app/archive/middleware/v1/preload.proto"; import "bilibili/app/archive/middleware/v1/preload.proto";
import "bilibili/app/archive/v1/archive.proto"; import "bilibili/app/archive/v1/archive.proto";
import "bilibili/pagination/pagination.proto";
service View { service View {
// //
@ -26,7 +27,7 @@ service View {
rpc ExposePlayerCard (ExposePlayerCardReq) returns (NoReply); rpc ExposePlayerCard (ExposePlayerCardReq) returns (NoReply);
// //
rpc AddContract (AddContractReq) returns (NoReply); rpc AddContract (AddContractReq) returns (NoReply);
// //
rpc ChronosPkg(ChronosPkgReq) returns (Chronos); rpc ChronosPkg(ChronosPkgReq) returns (Chronos);
// //
rpc CacheView(CacheViewReq) returns (CacheViewReply); rpc CacheView(CacheViewReq) returns (CacheViewReply);
@ -40,6 +41,12 @@ service View {
rpc Reserve(ReserveReq) returns (ReserveReply); rpc Reserve(ReserveReq) returns (ReserveReply);
// //
rpc PlayerRelates(PlayerRelatesReq) returns (PlayerRelatesReply); rpc PlayerRelates(PlayerRelatesReq) returns (PlayerRelatesReply);
//
rpc SeasonActivityRecord(SeasonActivityRecordReq) returns (SeasonActivityRecordReply);
//
rpc SeasonWidgetExpose(SeasonWidgetExposeReq) returns (SeasonWidgetExposeReply);
//
rpc GetArcsPlayer(GetArcsPlayerReq) returns (GetArcsPlayerReply);
} }
// //
@ -125,6 +132,10 @@ message ActivitySeason {
Config config = 29; Config config = 29;
// //
Online online = 30; Online online = 30;
//
ArcExtra arc_extra = 31;
//
ReplyStyle reply_preface = 32;
} }
// - // -
@ -149,6 +160,22 @@ message AdInfo {
string ad_cb = 4; string ad_cb = 4;
// //
int32 card_type = 5; int32 card_type = 5;
//
bytes extra = 6;
}
//
message ArcExtra {
//
string arc_pub_location = 1;
}
//
message ArcsPlayer {
//
int64 aid = 1;
//
map<int64, string> player_info = 2;
} }
// //
@ -293,6 +320,8 @@ message Button {
string title = 1; string title = 1;
// uri // uri
string uri = 2; string uri = 2;
//
string icon = 3;
} }
// //
@ -429,6 +458,12 @@ message ClickActivitySeasonReq {
int64 action = 5; int64 action = 5;
} }
// -
message ClickPlayerCardReply {
//
string message = 1;
}
// - // -
message ClickPlayerCardReq { message ClickPlayerCardReq {
// id // id
@ -470,6 +505,12 @@ message CmIpad {
int64 aid = 5; int64 aid = 5;
} }
//
message CoinCustom {
//
string toast = 1;
}
// //
message CommandDm { message CommandDm {
// id // id
@ -536,6 +577,14 @@ message Config {
bool arc_play_story = 19; bool arc_play_story = 19;
// //
string story_icon = 20; string story_icon = 20;
//
bool landscape_story = 21;
//
bool arc_landscape_story = 22;
//
string landscape_icon = 23;
//
bool show_listen_button = 24;
} }
// //
@ -709,6 +758,8 @@ message ElecRank {
repeated ElecRankItem list = 1; repeated ElecRankItem list = 1;
// //
int64 count = 2; int64 count = 2;
//
string text = 3;
} }
// //
@ -755,6 +806,8 @@ message Episode {
bool episode_pay = 14; bool episode_pay = 14;
// //
bool free_watch = 15; bool free_watch = 15;
//
string first_frame = 16;
} }
// - // -
@ -813,6 +866,20 @@ message FeedViewReq {
string from_track_id = 10; string from_track_id = 10;
} }
//
message GetArcsPlayerReply {
//
repeated ArcsPlayer arcs_player = 1;
}
//
message GetArcsPlayerReq {
//
repeated PlayAv play_avs = 1;
//
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 2;
}
// //
message GoodsInfo { message GoodsInfo {
// //
@ -904,6 +971,16 @@ message Label {
string lottie_night = 8; string lottie_night = 8;
} }
//
message LikeAnimation {
//
string like_icon = 1;
//
string liked_icon = 2;
//
string like_animation = 3;
}
// //
message LikeCustom { message LikeCustom {
// //
@ -1019,9 +1096,7 @@ message Node {
} }
// //
message NoReply { message NoReply {}
}
// //
message Notice { message Notice {
@ -1124,6 +1199,49 @@ enum OperationCardType {
CardTypeSkip = 2; // CardTypeSkip = 2; //
} }
//
message OperationCardV2 {
//
int64 id = 1;
//
int32 from = 2;
//
int32 to = 3;
//
bool status = 4;
//
int32 biz_type = 5;
//
OperationCardV2Content content = 6;
//
oneof param {
//
BizFollowVideoParam BizFollowVideoParam = 7;
//
BizReserveActivityParam BizReserveActivityParam = 8;
//
BizJumpLinkParam BizJumpLinkParam = 9;
//
BizReserveGameParam BizReserveGameParam = 10;
}
}
//
message OperationCardV2Content {
//
string title = 1;
//
string subtitle = 2;
//
string icon = 3;
//
string button_title = 4;
//
string button_selected_title = 5;
//
bool show_selected = 6;
}
// (+AI推荐) // (+AI推荐)
message OperationRelate { message OperationRelate {
// //
@ -1175,6 +1293,14 @@ enum PayState {
PayStateActive = 1; // PayStateActive = 1; //
} }
//
message PlayAv {
//
int64 aid = 1;
//
int64 cid = 2;
}
// //
enum PlayerCardType { enum PlayerCardType {
PlayerCardTypeNone_VALUE = 0; // PlayerCardTypeNone_VALUE = 0; //
@ -1351,6 +1477,26 @@ message Rank {
string text = 3; string text = 3;
} }
//
message RankInfo {
//
string icon_url_night = 1;
//
string icon_url_day = 2;
//
string bkg_night_color = 3;
//
string bkg_day_color = 4;
//
string font_night_color = 5;
//
string font_day_color = 6;
//
string rank_content = 7;
//
string rank_link = 8;
}
// //
message ReasonStyle { message ReasonStyle {
// //
@ -1403,7 +1549,19 @@ message RecThreePoint {
bool watch_later = 3; bool watch_later = 3;
} }
// //
message RefreshPage {
//
int32 refreshable = 1;
//
int32 refresh_icon = 2;
//
string refresh_text = 3;
//
float refresh_show = 4;
}
//
message Relate { message Relate {
// //
int64 aid = 1; int64 aid = 1;
@ -1488,6 +1646,12 @@ message Relate {
PowerIconStyle power_icon_style = 39; PowerIconStyle power_icon_style = 39;
// //
string reserve_status_text = 40; string reserve_status_text = 40;
//
string dislike_report_data = 41;
//
RankInfo rank_info_game = 42;
//
string first_frame = 43;
} }
// //
@ -1504,6 +1668,8 @@ message RelatesFeedReply {
repeated Relate list = 1; repeated Relate list = 1;
// //
bool has_next = 2; bool has_next = 2;
//
bilibili.pagination.PaginationReply pagination = 3;
} }
// //
@ -1534,6 +1700,10 @@ message RelatesFeedReq {
int64 device_type = 12; int64 device_type = 12;
// //
string ad_extra = 13; string ad_extra = 13;
//
bilibili.pagination.Pagination pagination = 14;
//
int32 refresh_num = 15;
} }
// //
@ -1544,6 +1714,16 @@ message RelateTab {
string title = 2; string title = 2;
} }
//
message ReplyStyle {
//
string badge_url = 1;
//
string badge_text = 2;
//
int64 badge_type = 3;
}
// //
message ReqUser { message ReqUser {
// UP // UP
@ -1562,6 +1742,8 @@ message ReqUser {
int32 attention_level = 7; int32 attention_level = 7;
// //
int32 fav_season = 8; int32 fav_season = 8;
//
Button elec_plus_btn = 9;
} }
// //
@ -1622,6 +1804,30 @@ message Season {
string ogv_playurl = 13; string ogv_playurl = 13;
} }
//
message SeasonActivityRecordReply {
//
UgcSeasonActivity activity = 1;
}
//
message SeasonActivityRecordReq {
//
int64 season_id = 1;
//
int64 activity_id = 2;
//
int32 action = 3;
//
int64 aid = 4;
//
int64 cid = 5;
//
int64 scene = 6;
//
string spmid = 7;
}
// //
message SeasonPlayer { message SeasonPlayer {
// //
@ -1646,6 +1852,20 @@ message SeasonReq {
int64 season_id = 1; int64 season_id = 1;
} }
//
message SeasonShow {
//
string button_text = 1;
//
string join_text = 2;
//
string rule_text = 3;
//
string checkin_text = 4;
//
string checkin_prompt = 5;
}
// //
enum SeasonType { enum SeasonType {
Unknown = 0; // Unknown = 0; //
@ -1653,6 +1873,32 @@ enum SeasonType {
Good = 2; // Good = 2; //
} }
//
message SeasonWidgetExposeReply {
//
int64 season_id = 1;
//
int64 activity_id = 2;
}
//
message SeasonWidgetExposeReq {
//
int64 mid = 1;
//
int32 type = 2;
//
int64 season_id = 3;
//
int64 activity_id = 4;
//
int64 aid = 5;
//
int64 cid = 6;
//
int64 scene = 7;
}
// //
message Section { message Section {
// id // id
@ -1819,6 +2065,7 @@ enum TabOtype {
UnknownOtype = 0; // UnknownOtype = 0; //
URL = 1; // url链接 URL = 1; // url链接
TopicNA = 2; // native话题活动 TopicNA = 2; // native话题活动
CmURI = 3; // 广url
} }
// TAB样式 // TAB样式
@ -1915,6 +2162,40 @@ message UgcSeason {
ButtonStyle pay_button = 19; ButtonStyle pay_button = 19;
// //
string label_text_new = 20; string label_text_new = 20;
//
UgcSeasonActivity activity = 21;
//
repeated string season_ability = 22;
}
//
message UgcSeasonActivity {
//
int32 type = 1;
//
int64 oid = 2;
//
int64 activity_id = 3;
//
string title = 4;
//
string intro = 5;
//
int32 day_count = 6;
//
int32 user_count = 7;
//
int64 join_deadline = 8;
//
int64 activity_deadline = 9;
//
int32 checkin_view_time = 10;
//
bool new_activity = 11;
//
UserActivity user_activity = 12;
//
SeasonShow season_show = 13;
} }
// ugc视频合集状态数 // ugc视频合集状态数
@ -1983,6 +2264,22 @@ message UpperInfos {
int64 total_play_count = 4; int64 total_play_count = 4;
} }
//
message UserActivity {
//
int32 user_state = 1;
//
int64 last_checkin_date = 2;
//
int32 checkin_today = 3;
//
int32 user_day_count = 4;
//
int32 user_view_time = 5;
//
string portrait = 6;
}
// //
message UserGarb { message UserGarb {
// url // url
@ -2010,6 +2307,8 @@ message VideoGuide {
repeated OperationCardNew operation_card_new = 4; repeated OperationCardNew operation_card_new = 4;
// //
ContractCard contract_card = 5; ContractCard contract_card = 5;
//
repeated OperationCardV2 cards_second = 6;
} }
// //
@ -2238,6 +2537,18 @@ message ViewReply {
int64 notes_count = 54; int64 notes_count = 54;
// //
PullClientAction pull_action = 55; PullClientAction pull_action = 55;
//
ArcExtra arc_extra = 56;
//
bilibili.pagination.PaginationReply pagination = 57;
//
LikeAnimation like_animation = 58;
//
ReplyStyle reply_preface = 59;
//
RefreshPage refresh_page = 60;
//
CoinCustom coin_custom = 61;
} }
// - // -
@ -2284,6 +2595,12 @@ message ViewReq {
int32 in_feed_play = 20; int32 in_feed_play = 20;
// //
string play_mode = 21; string play_mode = 21;
//
bilibili.pagination.Pagination pagination = 22;
//
int32 refresh = 23;
//
int32 refresh_num = 24;
} }
// //

View File

@ -24,9 +24,7 @@ message RuleInfo {
} }
// - // -
message RuleRequest { message RuleRequest {}
}
// //
message RulesInfo { message RulesInfo {

View File

@ -0,0 +1,38 @@
syntax = "proto3";
package bilibili.pagination;
//
message FeedPagination {
//
int32 page_size = 1;
//
string offset = 2;
//
bool is_refresh = 3;
}
//
message FeedPaginationReply {
//
string next_offset = 1;
//
string prev_offset = 2;
//
string last_read_offset = 3;
}
//
message Pagination {
//
int32 page_size = 1;
//
string next = 2;
}
//
message PaginationReply {
//
string next = 1;
//
string prev = 2;
}