update grpc proto from 7.49.0 (#833)

This commit is contained in:
陈寒彤
2023-10-04 12:06:32 +08:00
committed by GitHub
parent 03eaaf52dc
commit 17b7cb85ce
17 changed files with 1506 additions and 105 deletions

View File

@@ -3,7 +3,8 @@ syntax = "proto3";
package bilibili.app.click.v1;
service Click {
// 客户端心跳上传
rpc HeartBeat (HeartBeatReq) returns (HeartBeatReply);
}
// 账户信息

View File

@@ -5,12 +5,47 @@ package bilibili.app.dynamic.v2;
import "bilibili/app/archive/middleware/v1/preload.proto";
import "bilibili/app/dynamic/v2/dynamic.proto";
import "bilibili/pagination/pagination.proto";
service Opus {
//
rpc ListFav (ListFavReq) returns (ListFavResp);
//
rpc OpusDetail (OpusDetailReq) returns (OpusDetailResp);
}
//
message ListFavReq {
//
int32 local_time = 1;
//
bilibili.pagination.Pagination pagination = 2;
}
//
message ListFavResp {
//
repeated OpusFavItem item_list = 1;
//
bilibili.pagination.PaginationReply next_page = 2;
}
//
message OpusFavItem {
//
int64 opus_id = 1;
//
string card_uri = 2;
//
bilibili.app.dynamic.v2.MdlDynDrawItem cover_pic = 3;
//
bilibili.app.dynamic.v2.Paragraph text_paragraph = 4;
//
bilibili.app.dynamic.v2.CoverIconWithText bottom_text = 5;
//
string click_toast = 6;
}
//
message OpusDetailReq {
//

View File

@@ -6,8 +6,10 @@ import "bilibili/app/archive/middleware/v1/preload.proto";
// 历史记录
service History {
// 获取历史记录tab
// 获取历史记录tab(旧版)
rpc HistoryTab (HistoryTabReq) returns (HistoryTabReply);
// 获取历史记录tab
rpc HistoryTabV2 (HistoryTabReq) returns (HistoryTabReply);
// 获取历史记录列表(旧版)
rpc Cursor (CursorReq) returns (CursorReply);
// 获取历史记录列表

View File

@@ -4,16 +4,18 @@ package bilibili.app.interface.v1;
//
service Media {
//
rpc MediaTab(MediaTabReq) returns (MediaTabReply);
//
rpc MediaComment(MediaCommentReq) returns (MediaCommentReply);
//
rpc MediaDetail(MediaDetailReq) returns (MediaDetailReply);
//
rpc MediaVideo(MediaVideoReq) returns (MediaVideoReply);
rpc MediaFollow(MediaFollowReq) returns (MediaFollowReply);
//
rpc MediaRelation(MediaRelationReq) returns (MediaRelationReply);
//
rpc MediaFollow(MediaFollowReq) returns (MediaFollowReply);
rpc MediaTab(MediaTabReq) returns (MediaTabReply);
//
rpc MediaVideo(MediaVideoReq) returns (MediaVideoReply);
}
//
@@ -137,6 +139,18 @@ message MediaCard {
Button but_first = 5;
}
//
message MediaCommentReply {
//
string err_msg = 1;
}
//
message MediaCommentReq {
//
string id = 1;
}
//
message MediaDetailReply {
//

View File

@@ -9,13 +9,47 @@ import "bilibili/app/playurl/v1/playurl.proto";
// 听视频
service Listener {
//
rpc BkarcDetails (BKArcDetailsReq) returns (BKArcDetailsResp);
// 投币
rpc CoinAdd (CoinAddReq) returns (CoinAddResp);
//
rpc Event(EventReq) returns (EventResp);
// 创建收藏夹
rpc FavFolderCreate (FavFolderCreateReq) returns (FavFolderCreateResp);
//
rpc FavFolderDelete (FavFolderDeleteReq) returns (FavFolderDeleteResp);
// 收藏夹详细信息
rpc FavFolderDetail (FavFolderDetailReq) returns (FavFolderDetailResp);
// 用户收藏夹列表
rpc FavFolderList (FavFolderListReq) returns (FavFolderListResp);
//
rpc FavItemAdd (FavItemAddReq) returns (FavItemAddResp);
// 批量处理收藏
rpc FavItemBatch (FavItemBatchReq) returns (FavItemBatchResp);
//
rpc FavItemDel (FavItemDelReq) returns (FavItemDelResp);
//
rpc FavoredInAnyFolders (FavoredInAnyFoldersReq) returns (FavoredInAnyFoldersResp);
//
rpc Medialist(MedialistReq) returns (MedialistResp);
// 每日播单详情
rpc PickCardDetail (PickCardDetailReq) returns (PickCardDetailResp);
// 每日播单列表
rpc PickFeed (PickFeedReq) returns (PickFeedResp);
//
rpc Ping (google.protobuf.Empty) returns (google.protobuf.Empty);
// 播放上报
rpc PlayActionReport (PlayActionReportReq) returns (google.protobuf.Empty);
//
rpc PlayHistory (PlayHistoryReq) returns (PlayHistoryResp);
// 添加历史记录
rpc PlayHistoryAdd (PlayHistoryAddReq) returns (google.protobuf.Empty);
//
rpc PlayHistoryDel (PlayHistoryDelReq) returns (google.protobuf.Empty);
// 获取音频URL
rpc PlayUrl (PlayURLReq) returns (PlayURLResp);
//
rpc BkarcDetails (BKArcDetailsReq) returns (BKArcDetailsResp);
//
rpc Playlist (PlaylistReq) returns (PlaylistResp);
//
rpc PlaylistAdd (PlaylistAddReq) returns (google.protobuf.Empty);
@@ -23,62 +57,28 @@ service Listener {
rpc PlaylistDel (PlaylistDelReq) returns (google.protobuf.Empty);
// 推荐列表
rpc RcmdPlaylist (RcmdPlaylistReq) returns (RcmdPlaylistResp);
//
rpc PlayHistory (PlayHistoryReq) returns (PlayHistoryResp);
// 添加历史记录
rpc PlayHistoryAdd (PlayHistoryAddReq) returns (google.protobuf.Empty);
//
rpc PlayHistoryDel (PlayHistoryDelReq) returns (google.protobuf.Empty);
// 播放上报
rpc PlayActionReport (PlayActionReportReq) returns (google.protobuf.Empty);
// 三联
rpc TripleLike (TripleLikeReq) returns (TripleLikeResp);
// 点赞
rpc ThumbUp (ThumbUpReq) returns (ThumbUpResp);
// 投币
rpc CoinAdd (CoinAddReq) returns (CoinAddResp);
//
rpc FavItemAdd (FavItemAddReq) returns (FavItemAddResp);
//
rpc FavItemDel (FavItemDelReq) returns (FavItemDelResp);
// 批量处理收藏
rpc FavItemBatch (FavItemBatchReq) returns (FavItemBatchResp);
//
rpc FavoredInAnyFolders (FavoredInAnyFoldersReq) returns (FavoredInAnyFoldersResp);
// 用户收藏夹列表
rpc FavFolderList (FavFolderListReq) returns (FavFolderListResp);
// 收藏夹详细信息
rpc FavFolderDetail (FavFolderDetailReq) returns (FavFolderDetailResp);
// 创建收藏夹
rpc FavFolderCreate (FavFolderCreateReq) returns (FavFolderCreateResp);
//
rpc FavFolderDelete (FavFolderDeleteReq) returns (FavFolderDeleteResp);
// 每日播单列表
rpc PickFeed (PickFeedReq) returns (PickFeedResp);
// 每日播单详情
rpc PickCardDetail (PickCardDetailReq) returns (PickCardDetailResp);
//
rpc Medialist(MedialistReq) returns (MedialistResp);
//
rpc Event(EventReq) returns (EventResp);
// 三联
rpc TripleLike (TripleLikeReq) returns (TripleLikeResp);
}
//
service Music {
//
rpc FavTabShow(FavTabShowReq) returns (FavTabShowResp);
rpc Click(ClickReq) returns (ClickResp);
//
rpc MainFavMusicSubTabList(MainFavMusicSubTabListReq) returns (MainFavMusicSubTabListResp);
rpc FavTabShow(FavTabShowReq) returns (FavTabShowResp);
//
rpc MainFavMusicMenuList(MainFavMusicMenuListReq) returns (MainFavMusicMenuListResp);
//
rpc MenuEdit(MenuEditReq) returns (MenuEditResp);
rpc MainFavMusicSubTabList(MainFavMusicSubTabListReq) returns (MainFavMusicSubTabListResp);
//
rpc MenuDelete(MenuDeleteReq) returns (MenuDeleteResp);
//
rpc MenuSubscribe(MenuSubscribeReq) returns (MenuSubscribeResp);
rpc MenuEdit(MenuEditReq) returns (MenuEditResp);
//
rpc Click(ClickReq) returns (ClickResp);
rpc MenuSubscribe(MenuSubscribeReq) returns (MenuSubscribeResp);
}
//

View File

@@ -0,0 +1,245 @@
syntax = "proto3";
package bilibili.app.mine.v1;
import "bilibili/app/dynamic/v2/dynamic.proto";
//
service Mine {
//
rpc PubModule (PubModuleReq) returns (PubModuleResp);
}
//
message Arc {
//
string date = 1;
//
Stat stat = 2;
//
string cover = 3;
//
int64 duration = 4;
//
int64 aid = 5;
//
int64 cid = 6;
//
int32 state = 7;
}
//
enum ArcState {
//
STATE_UNKNOWN = 0;
//
OPEN = 1;
//
ORANGE = 2;
//
WAIT = 3;
//
RECICLE = 4;
//
LOCK = 5;
//
FIXED = 6;
//
USER_DELAY = 7;
//
FAST_PUB = 8;
//
XCODE_FAIL = 9;
}
//
message Button {
//
string light_icon = 1;
//
string dark_icon = 2;
//
string url = 3;
//
string text = 4;
}
//
message CardMore {
//
Button button = 1;
}
//
message CardOpus {
//
bilibili.app.dynamic.v2.Paragraph word_paragraph = 1;
//
string cover = 2;
//
string url = 3;
//
SubTitleWithStat stat_title = 4;
//
Stat stat = 5;
//
string date = 6;
//
int64 dyn_id = 7;
//
bool has_share = 8;
//
int32 state = 9;
}
//
message CardPubGuide {
//
Title title = 1;
//
Button button = 2;
//
repeated PubGuideMaterial material = 3;
//
Button more_button = 4;
}
//
enum CardType {
//
CARD_UNKNOWN = 0;
//
PUBGUIDE = 1;
//
UGC = 2;
//
OPUS = 3;
//
MORE = 4;
}
//
message CardUGC {
//
string title = 1;
//
Color title_color = 2;
//
oneof subtitle {
//
string button_title = 3;
//
string stat_title = 4;
}
//
Arc arc = 5;
//
string url = 6;
//
bool has_share = 7;
}
//
message Color {
//
string light_color = 1;
//
string dark_color = 2;
}
//
enum OpusState {
//
OPUS_UNKNOWN = 0;
//
OPUS_OPEN = 1;
//
OPUS_NO_FORWARD = 2;
}
//
message PubCard {
//
oneof card {
//
CardPubGuide pub_guide = 1;
//
CardUGC ugc = 2;
//
CardOpus opus = 3;
//
CardMore more = 4;
}
//
CardType card_type = 5;
}
//
message PubGuideMaterial {
//
int64 id = 1;
//
Title title = 2;
//
string cover = 3;
//
string url = 4;
}
//
message PubModuleReq {
//
int64 user_original_state = 1;
//
repeated int64 dyn_ids = 2;
//
int64 card_num = 3;
}
//
message PubModuleResp {
//
repeated PubCard pub_card = 1;
}
//
message Stat {
//
string play_icon = 1;
//
string play = 2;
//
string like_icon = 3;
//
string like = 4;
}
//
message SubTitleWithButton {
//
string icon = 1;
//
string url = 2;
//
Color background_color = 3;
//
string text = 4;
//
Color text_color = 5;
}
//
message SubTitleWithStat {
//
repeated string icon = 1;
//
string text = 2;
}
//
message Title {
//
string main = 1;
//
string sub = 2;
}

View File

@@ -1,5 +1,6 @@
syntax = "proto3";
// Deprecated
package bilibili.app.nativeact.v1;
import "google/protobuf/any.proto";

View File

@@ -2,6 +2,7 @@ syntax = "proto3";
package bilibili.app.playerunite.ugcanymodel;
//
message ButtonStyle {
string text = 1;
string text_color = 2;
@@ -9,11 +10,21 @@ message ButtonStyle {
string jump_link = 4;
}
// 播放限制
enum PlayLimitCode {
//
PLC_UNKNOWN = 0;
// 未付费
PLC_NOTPAYED = 1;
//
PLC_ChargingPlusNotPass = 2;
//
PLC_ChargingPlusUpgrade = 3;
//
PLC_ChargingPlusReject = 4;
}
//
message PlayLimit {
PlayLimitCode code = 1;
string message = 2;
@@ -21,6 +32,7 @@ message PlayLimit {
ButtonStyle button = 4;
}
//
message UGCAnyModel {
PlayLimit play_limit = 1;
}

View File

@@ -32,6 +32,8 @@ message ArcConf {
bool disabled = 2;
//
ExtraContent extra_content = 3;
//
repeated int64 unsupport_scene = 4;
}
// 业务类型
@@ -112,6 +114,7 @@ enum ConfType {
PANORAMA = 27; // 全景
DOLBY = 28; // 杜比
COLORFILTER = 29; // 颜色滤镜
LOSSLESS = 30; // HIRES
}
//
@@ -243,6 +246,16 @@ enum Group {
C = 3; //
}
//
message LossLessItem {
//
bool is_lossless_audio = 1;
//
DashItem audio = 2;
//
bool need_vip = 3;
}
// 禁用功能配置
message PlayAbilityConf {
CloudConf background_play_conf = 1; // 后台播放
@@ -274,6 +287,7 @@ message PlayAbilityConf {
CloudConf inner_dm_conf = 27; // 一起看入口
CloudConf dolby_conf = 28; // 杜比音效
CloudConf color_filter_conf = 29; // 颜色滤镜
CloudConf loss_less_conf = 30; // HIRES
}
// 播放控件稿件配置
@@ -308,6 +322,7 @@ message PlayArcConf {
ArcConf dolby_conf = 28; // 杜比音效
ArcConf screen_recording_conf = 29; // 屏幕录制
ArcConf color_filter_conf = 30; // 颜色滤镜
ArcConf loss_less_conf = 31; // HIRES
}
// 编辑播放界面配置-响应
@@ -366,6 +381,8 @@ message PlayLimit {
enum PlayLimitCode {
PLCUnkown = 0; //
PLCUgcNotPayed = 1; //
PLCChargingPlusNotPass = 2; //
PLCChargingPlusUpgrade = 3; //
}
// 视频地址-回复
@@ -642,14 +659,16 @@ message VideoInfo {
DolbyItem dolby = 7;
//
VolumeInfo volume = 8;
//
LossLessItem loss_less_item = 9;
}
// 视频类型
enum VideoType {
Unknown_VALUE = 0; //
FLV_VALUE = 1; // flv格式
DASH_VALUE = 2; // dash格式
MP4_VALUE = 3; // mp4格式
Unknown = 0; //
FLV = 1; // flv格式
DASH = 2; // dash格式
MP4 = 3; // mp4格式
}
//
@@ -668,4 +687,4 @@ message VolumeInfo {
double target_i = 6;
//
double target_tp = 7;
}
}

View File

@@ -8,6 +8,8 @@ service Search {
//
rpc CancelChatTask (CancelChatTaskReq) returns (CancelChatTaskReply);
//
rpc GetChatAuth (GetChatAuthReq) returns (GetChatAutReply);
//
rpc GetChatResult (GetChatResultReq) returns (bilibili.broadcast.message.main.ChatResult);
//
rpc SearchEgg (SearchEggReq) returns (SearchEggReply);
@@ -29,6 +31,25 @@ message CancelChatTaskReply {
int32 code = 1;
}
//
message GetChatAuthReq {}
//
message GetChatAuthReply {
//
bool display = 1;
//
string icon = 2;
//
string icon_night = 3;
//
string jump_link = 4;
//
string text_guide = 5;
//
int32 jump_link_type = 6;
}
//
message GetChatResultReq {
//
@@ -37,6 +58,8 @@ message GetChatResultReq {
string session_id = 2;
//
string from_source = 3;
//
string track_id = 4;
}
//