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

@@ -64,7 +64,7 @@ message CreateTopic {
//
message CreatTask {
//
string task = 1;
string name = 1;
}
//

View File

@@ -5,6 +5,46 @@ package bilibili.api.ticket.v1;
service Ticket {
// 获取鉴权用 Ticket
rpc GetTicket (GetTicketRequest) returns (GetTicketResponse);
// 获取 Webview 页面使用的 Ticket
rpc GenWebTicket (GenWebTicketRequest) returns (GenWebTicketResponse);
}
//
message GenWebTicketRequest {
//
map<string, string> context = 1;
//
string key_id = 2;
//
string hexsign = 3;
//
string token = 4;
}
//
message GenWebTicketResponse {
//
message Context {
//
string v_voucher = 1;
}
//
message Nav {
//
string img = 1;
//
string sub = 2;
}
//
string ticket = 1;
//
int64 created_at = 2;
//
int64 ttl = 3;
//
Context context = 4;
//
Nav nav = 5;
}
//

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;
}
//

View File

@@ -1,9 +1,25 @@
syntax = "proto3";
package bilibili.dynamic;
package bilibili.dynamic.common;
import "bilibili/app/dynamic/v2/dynamic.proto";
//
message Article {
//
int64 category_id = 1;
//
int64 list_id = 2;
//
int32 originality = 3;
//
int32 reproduced = 4;
//
repeated Pic cover = 5;
//
repeated string biz_tags = 6;
}
// at分组信息
message AtGroup {
// 分组类型
@@ -75,6 +91,11 @@ enum AttachCardType {
ATTACH_CARD_PUGV = 13; // 课程
ATTACH_CARD_RESERVE = 14; // 预约
ATTACH_CARD_UP_TOPIC = 15; // up主话题活动
ATTACH_CARD_UP_ACTIVITY = 16;
ATTACH_CARD_UP_MAOER = 17;
ATTACH_CARD_MEMBER_GOODS = 18;
ATTACH_CARD_MAN_TIAN_XING = 19;
ATTACH_CARD_LOTTERY = 20;
}
//
@@ -85,6 +106,30 @@ message BottomBusiness {
int64 type = 2;
}
//
message CardParagraph {
//
LinkNode card = 1;
//
string default_text = 2;
}
//
message CodeParagraph {
//
string lang = 1;
//
string content = 2;
}
//
message Colors {
//
string color_day = 1;
//
string color_night = 2;
}
//
enum ContentType {
CONTENT_TYPE_NONE = 0; // 占位
@@ -125,6 +170,8 @@ message CreateAttachCard {
CreateGoodsCard goods = 1;
// 通用附加大卡目前仅限定Match,Game,Ugc,Pugv,Reserve且同时只能有一个
CreateCommonAttachCard common_card = 2;
// 商业推广大卡
CreateCommercialCard commercial = 3;
}
// 发布页预校验-响应
@@ -141,6 +188,14 @@ message CreateCheckResp {
PlusRedDot plus_red_dot = 5;
}
//
message CreateCommercialCard {
//
int64 commercial_entity_type = 1;
//
int64 commercial_entity_id = 2;
}
// 创建动态时附带的通用附加卡详情
message CreateCommonAttachCard {
// 通用附加卡的类型
@@ -157,6 +212,8 @@ message CreateCommonAttachCard {
message CreateContent {
// 描述信息(已按高亮拆分)
repeated CreateContentItem contents = 1;
//
string title = 2;
}
// 文本描述
@@ -230,6 +287,12 @@ message CreateDynVideo {
int64 up_from = 28;
//
int64 duration = 29;
//
int64 topic_id = 30;
//
string upload_id = 31;
//
DynVideoTopic topic_detail = 32;
}
// 创建动态视频的应答包(透传给客户端)
@@ -257,6 +320,7 @@ enum CreateInitCheckScene {
CREATE_INIT_CHECK_SCENE_REPOST = 2; // 动态feed流转发、三点分享动态详情页转发
CREATE_INIT_CHECK_SCENE_SHARE = 3; // 其他页面分享到动态
CREATE_INIT_CHECK_SCENE_RESERVE_SHARE = 4; //
CREATE_INIT_CHECK_SCENE_ARTICLE = 5;
}
// 动态创建时的特殊选项
@@ -280,6 +344,18 @@ message CreateOption {
VideoShareInfo video_share_info = 6;
//
CreateActivity activity = 7;
//
int32 pic_mode = 10;
// 粉丝专享(充电专享)
int64 only_fans = 11;
// 限制推广?
int32 limit_pegasus = 12;
// 限制搜索?
int32 limit_search = 13;
// 定时发布
int64 timer_pub_time = 14;
//
int64 only_fans_dnd = 15;
}
// 创建图文动态时的图片信息
@@ -342,6 +418,8 @@ message CreateResp {
bilibili.app.dynamic.v2.DynamicItem fake_card = 5;
// 视频
CreateDynVideoResult video_result = 6;
//
ShareDynWindow share_window = 7;
}
// 发布类型(场景)
@@ -356,6 +434,9 @@ enum CreateScene {
CREATE_SCENE_SHARE_PROGRAM = 7; // 分享小程序
CREATE_SCENE_REPLY_SYNC = 8; // 评论同步到动态
CREATE_SCENE_REPLY_CREATE_ACTIVITY = 9; // 评论同步到动态并且发起活动
CREATE_SCENE_CREATE_AD = 10; // 广告推广
CREATE_SCENE_CREATE_LIVE_RCMD = 11; // 直播推荐
CREATE_SCENE_CREATE_ARTICLE = 12; // 动态文章
}
// 动态附带的小卡
@@ -368,12 +449,18 @@ message CreateTag {
BottomBusiness diversion = 3;
}
//
//
message CreateTopic {
//
//
int64 id = 1;
//
//
string name = 2;
//
string from_source = 3;
//
int64 from_topic_id = 4;
//
int64 super_topic_id = 5;
}
// 动态的标识
@@ -526,6 +613,14 @@ message DynVideoSubmitActBanner {
repeated DynVideoHotAct list = 3;
}
//
message DynVideoTopic {
//
string from_source = 1;
//
int64 from_topic_id = 2;
}
//
message DynVideoVote {
//
@@ -549,6 +644,12 @@ message DynVideoWatermark {
int32 position = 3;
}
//
message EmoteNode {
//
string raw_text = 1;
}
//
message ExtLbs {
//
@@ -569,6 +670,16 @@ message ExtLbs {
string show_distance = 8;
}
//
message FormulaNode {
//
string latex_content = 1;
//
ImgInlineCfg image_spec = 2;
//
bytes png_image_data = 3;
}
// 根据name取uid-请求
message GetUidByNameReq {
// 查询昵称列表
@@ -592,6 +703,16 @@ message GoodsContent {
int64 shop_id = 3;
}
//
message ImgInlineCfg {
//
double width = 1;
//
double height = 2;
//
Colors color = 3;
}
// UP已经创建的活动列表
message LaunchedActivity {
// 模块名称,示例:"已创建的活动"
@@ -622,6 +743,30 @@ message LbsLoc {
double lng = 2;
}
//
message LineParagraph {
//
Pic pic = 1;
}
//
message LinkNode {
//
string show_text = 1;
//
string link = 2;
//
string icon = 3;
//
string icon_suffix = 4;
//
int32 link_type = 5;
//
string biz_id = 6;
//
VideoTs video_ts = 7;
}
//
message MetaDataCtrl {
// 客户端平台
@@ -653,6 +798,231 @@ message MetaDataCtrl {
string ip = 13;
}
//
message OnlyFansDndSetting {
//
string title = 1;
//
string pop_title = 2;
//
string pop_desc = 3;
//
string pop_picture = 4;
//
string pop_btn_text = 5;
}
//
message OnlyFansOption {
//
OnlyFansOptionType type = 1;
//
int32 disabled = 2;
//
string title = 3;
//
string subtitle = 4;
//
string icon = 5;
//
string only_fans_name = 6;
//
string desc_subtitle = 7;
}
enum OnlyFansOptionType {
//
ONLY_FANS_OPTION_NONE = 0;
//
ONLY_FANS_OPTION_UPOWER = 1;
//
ONLY_FANS_OPTION_HIGH_UPOWER = 2;
}
//
message OnlyFansPermission {
//
int32 permission = 1;
//
string title = 2;
//
string subtitle = 3;
//
string icon = 4;
//
string toast = 5;
//
repeated OnlyFansOption options = 6;
//
OnlyFansDndSetting dnd_setting = 7;
}
//
message Opus {
//
int64 opus_id = 1;
//
int32 opus_source = 2;
//
string title = 3;
//
int64 cover_avid = 4;
//
string h5_content = 5;
//
OpusContent content = 6;
//
repeated OpusTag tags = 7;
//
PubInfo pub_info = 8;
//
Article article = 9;
}
enum OpusBizType {
DEFAULT = 0;
VIDEO = 1;
RESERVE = 2;
VOTE = 3;
LIVE = 4;
LOTTERY = 5;
MATCH = 6;
GOODS = 7;
OGV_SS = 8;
OGV_EP = 9;
MANGA = 10;
CHEESE = 11;
VIDEO_TS = 12;
AT = 13;
HASH_TAG = 14;
CV = 15;
URL = 16;
MAIL = 17;
LBS = 18;
ACTIVITY = 19;
ATTACH_CARD_OFFICIAL_ACTIVITY = 20;
GAME = 21;
DECORATION = 22;
UP_TOPIC = 23;
UP_ACTIVITY = 24;
UP_MAOER = 25;
MEMBER_GOODS = 26;
OPENMALL_UP_ITEMS = 27;
MUSIC = 29;
}
//
message OpusContent {
//
repeated Paragraph paragraphs = 1;
}
enum OpusSource {
DEFAULT_SOURCE = 0;
ALBUM = 1;
ARTICLE = 2;
NOTE = 3;
OGV_COMMENT = 4;
ARTICLE_H5 = 5;
WORD = 6;
}
//
message OpusSummary {
//
int32 opus_source = 1;
//
string title = 2;
//
repeated Pic cover = 3;
//
OpusContent summary = 4;
//
repeated OpusTag tags = 5;
//
PubInfo pub_info = 6;
}
//
message OpusTag {
//
LinkNode tag = 1;
}
//
message Paragraph {
//
enum ParagraphType {
DEFAULT = 0;
TEXT = 1;
PICTURES = 2;
LINE = 3;
REFERENCE = 4;
SORTED_LIST = 5;
UNSORTED_LIST = 6;
LINK_CARD = 7;
}
//
message ListFormat {
//
int32 level = 1;
//
int32 order = 2;
//
string theme = 3;
}
//
message ParagraphFormat {
//
int32 align = 1;
//
ListFormat list_format = 2;
}
//
ParagraphType para_type = 1;
//
ParagraphFormat format = 2;
//
TextParagraph text = 3;
//
PicParagraph pic = 4;
//
LineParagraph line = 5;
//
CardParagraph link_card = 6;
//
CodeParagraph code = 7;
}
//
message Pic {
//
string url = 1;
//
double width = 2;
//
double height = 3;
//
double size = 4;
//
string comment = 5;
}
//
message PicParagraph {
//
enum PicParagraphStyle {
DEFAULT = 0;
NINE_CELL = 1;
SCROLL = 2;
}
//
repeated Pic pics = 1;
//
PicParagraphStyle style = 2;
}
//
message PlusRedDot {
//
@@ -677,6 +1047,18 @@ message Program {
string jump_text = 7;
}
//
message PubInfo {
//
int64 uid = 1;
//
int64 pub_time = 2;
//
int64 last_mtime = 3;
//
int64 timer_pub_time = 4;
}
// 发布相关的设置项
message PublishSetting {
// 提示转为专栏的最小字数使用utf-16编码计算字符数
@@ -685,6 +1067,12 @@ message PublishSetting {
int32 max_words_to_article = 2;
// gif上传的最大值单位MB
int32 upload_size = 3;
//
int32 max_at_count = 4;
//
int32 max_draft_count = 5;
//
int64 title_max_len = 6;
}
// 发布页小黄条
@@ -737,6 +1125,16 @@ message ShareChannelItem {
ShareReserve reserve = 4;
}
//
message ShareDynWindow {
//
string main_title = 1;
//
string sub_title = 2;
//
bilibili.app.dynamic.v2.DynamicItem dyn_item = 3;
}
//
message ShareReserve {
// 标题
@@ -811,6 +1209,35 @@ message Sketch {
string target_url = 7;
}
//
message TextNode {
//
enum TextNodeType {
DEFAULT = 0;
WORDS = 1;
EMOTE = 2;
AT = 3;
BIZ_LINK = 4;
FORMULA = 5;
}
//
TextNodeType node_type = 1;
//
WordNode word = 2;
//
EmoteNode emote = 3;
//
LinkNode link = 4;
//
FormulaNode formula = 5;
}
//
message TextParagraph {
//
repeated TextNode nodes = 1;
}
// 发布相关的权限内容
message UpPermission {
// 通用权限列表
@@ -819,6 +1246,8 @@ message UpPermission {
LaunchedActivity launched_activity = 2;
//
ShareResult share_result = 3;
//
OnlyFansPermission only_fans_permission = 4;
}
// 通用发布权限内容的详细定义
@@ -854,6 +1283,9 @@ enum UpPermissionType {
UP_PERMISSION_TYPE_CONTROL_DANMU = 7; // 是否有权限关闭弹幕(仅对动态视频生效),默认有
UP_PERMISSION_TYPE_VIDEO_RESERVE = 8; // 是否可以发起稿件预约
UP_PERMISSION_TYPE_LIVE_RESERVE = 9; // 是否可以发起直播预约
UP_PERMISSION_TYPE_BIZ_LINK = 10; //
UP_PERMISSION_TYPE_COMMERCIAL = 11; // 是否允许商业推广
UP_PERMISSION_TYPE_BIG_COVER = 12; // 是否允许大封面
}
// 用户主动发布app/web发布时的meta信息
@@ -873,3 +1305,52 @@ message VideoShareInfo {
//
int32 part = 2;
}
//
message VideoTs {
//
int64 cid = 1;
//
int64 oid_type = 2;
//
int64 status = 3;
//
int64 index = 4;
//
int64 seconds = 5;
//
int64 cidcount = 6;
//
string key = 7;
//
string title = 8;
//
int64 epid = 9;
//
string desc = 10;
}
//
message WordNode {
//
message WordNodeStyle {
//
bool bold = 1;
//
bool italic = 2;
//
bool strikethrough = 3;
//
bool underline = 4;
}
//
string words = 1;
//
double font_size = 2;
//
string color = 3;
//
string dark_color = 4;
//
WordNodeStyle style = 5;
}

View File

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

View File

@@ -1 +1,28 @@
// TODO
syntax = "proto3";
package bilibili.dynamic.interfaces.campus.v1;
//
service Campus {
//
rpc ActionReport (ActionReportReq) returns (ActionReportReply);
}
//
message ActionReportReply {}
//
message ActionReportReq {
//
string identity = 1;
//
ActionType action = 2;
//
int64 campus_id = 3;
}
//
enum ActionType {
ACTION_NOTHING = 0;
ACTION_CLOSE_YELLOW_BAR = 1;
}

View File

@@ -1,67 +1,178 @@
syntax = "proto3";
package bilibili.main.dynamic.feed.v1;
package bilibili.dynamic.interfaces.feed.v1;
import "bilibili/dynamic/common/dynamic.proto";
//
service Feed {
// 发布页预校验
rpc CreateInitCheck(CreateInitCheckReq) returns (bilibili.dynamic.CreateCheckResp);
//
rpc SubmitCheck(SubmitCheckReq) returns (SubmitCheckRsp);
// 创建动态
rpc CreateDyn(CreateDynReq) returns (bilibili.dynamic.CreateResp);
// 根据name取uid
rpc GetUidByName(bilibili.dynamic.GetUidByNameReq) returns (bilibili.dynamic.GetUidByNameRsp);
//
rpc AddDynamicReport(AddDynamicReportReq) returns (AddDynamicReportRsp);
// at用户推荐列表
rpc AtList(bilibili.dynamic.AtListReq) returns (bilibili.dynamic.AtListRsp);
rpc AtList(bilibili.dynamic.common.AtListReq) returns (bilibili.dynamic.common.AtListRsp);
// at用户搜索列表
rpc AtSearch(bilibili.dynamic.AtSearchReq) returns (bilibili.dynamic.AtListRsp);
rpc AtSearch(bilibili.dynamic.common.AtSearchReq) returns (bilibili.dynamic.common.AtListRsp);
//
rpc AttachCardButton(AttachCardButtonReq) returns (AttachCardButtonRsp);
//
rpc Config(ConfigReq) returns (ConfigRsp);
// 创建动态
rpc CreateDyn(CreateDynReq) returns (bilibili.dynamic.common.CreateResp);
// 发布页预校验
rpc CreateInitCheck(CreateInitCheckReq) returns (bilibili.dynamic.common.CreateCheckResp);
//
rpc ReserveButtonClick(ReserveButtonClickReq) returns (ReserveButtonClickResp);
//
rpc CreatePlusButtonClick(CreatePlusButtonClickReq) returns (CreatePlusButtonClickRsp);
//
rpc HotSearch(HotSearchReq) returns (HotSearchRsp);
//
rpc Suggest(SuggestReq) returns (SuggestRsp);
//
rpc DynamicButtonClick(DynamicButtonClickReq) returns (DynamicButtonClickRsp);
rpc CreatePageInfos(CreatePageInfosReq) returns (CreatePageInfosRsp);
//
rpc CreatePermissionButtonClick(CreatePermissionButtonClickReq) returns (CreatePermissionButtonClickRsp);
//
rpc CreatePageInfos(CreatePageInfosReq) returns (CreatePageInfosRsp);
rpc CreatePlusButtonClick(CreatePlusButtonClickReq) returns (CreatePlusButtonClickRsp);
//
rpc DynamicButtonClick(DynamicButtonClickReq) returns (DynamicButtonClickRsp);
//
rpc DynamicRepost(DynamicRepostReq) returns (bilibili.dynamic.common.CreateResp);
//
rpc DynamicThumb(DynamicThumbReq) returns (DynamicThumbRsp);
//
rpc EditDyn(EditDynReq) returns (EditDynRsp);
//
rpc GetEditDynInfo(GetEditDynInfoReq) returns (GetEditDynInfoRsp);
// 根据name取uid
rpc GetUidByName(bilibili.dynamic.common.GetUidByNameReq) returns (bilibili.dynamic.common.GetUidByNameRsp);
//
rpc GoodsAttachCardPreview(GoodsAttachCardPreviewReq) returns (GoodsAttachCardPreviewRsp);
//
rpc HomeBubbleReport(HomeBubbleReportReq) returns (HomeBubbleReportRsp);
//
rpc HotSearch(HotSearchReq) returns (HotSearchRsp);
//
rpc ICreateGoodsReplySync(ICreateGoodsReplySyncReq) returns (ICreateResp);
//
rpc NearbyPoiList(NearbyPoiListReq) returns (NearbyPoiListRsp);
//
rpc ReserveButtonClick(ReserveButtonClickReq) returns (ReserveButtonClickResp);
//
rpc RmDyn(RmDynReq) returns (RmDynRsp);
//
rpc RmSpaceTop(RmSpaceTopReq) returns (RmSpaceTopRsp);
//
rpc SearchPoiList(SearchPoiListReq) returns (SearchPoiListRsp);
//
rpc SetSpaceTop(SetSpaceTopReq) returns (SetSpaceTopRsp);
//
rpc SubmitCheck(SubmitCheckReq) returns (SubmitCheckRsp);
//
rpc Suggest(SuggestReq) returns (SuggestRsp);
}
//
message AddDynamicReportReq {
//
int64 accused_uid = 1;
//
string dynamic_id = 2;
//
int64 reason_type = 3;
//
string reason_desc = 4;
}
//
message AddDynamicReportRsp {}
//
message AdInfoDetail {
//
string nation = 1;
//
string province = 2;
//
string city = 3;
//
string district = 4;
}
//
message AttachCardButtonReq {
//
int32 cur_btn_status = 1;
//
int64 dynamic_id = 2;
//
bilibili.dynamic.common.AttachCardType attach_card_type = 3;
//
string spm_id = 4;
//
int64 reserve_total = 5;
//
string dynamic_id_str = 6;
//
string card_type = 7;
}
//
message AttachCardButtonRsp {
//
int32 final_btn_status = 1;
//
string toast = 2;
//
string desc_update = 3;
//
int64 reserve_update = 4;
}
//
message ConfigAB {
//
ConfigABEntry entry = 1;
//
int64 value = 2;
}
//
enum ConfigABEntry {
CONFIG_AB_ENTRY_NONE = 0;
CONFIG_AB_ENTRY_PUB_PAGE_TITLE = 1;
CONFIG_AB_ENTRY_SELECT_PIC_PANEL = 2;
}
//
message ConfigReq {}
//
message ConfigRsp {
//
repeated ConfigAB ab_entries = 1;
}
// 创建动态-请求
message CreateDynReq {
// 用户创建接口meta信息
bilibili.dynamic.UserCreateMeta meta = 1;
bilibili.dynamic.common.UserCreateMeta meta = 1;
// 发布的内容
bilibili.dynamic.CreateContent content = 2;
bilibili.dynamic.common.CreateContent content = 2;
// 发布类型
bilibili.dynamic.CreateScene scene = 3;
bilibili.dynamic.common.CreateScene scene = 3;
// 图片内容
repeated bilibili.dynamic.CreatePic pics = 4;
repeated bilibili.dynamic.common.CreatePic pics = 4;
// 转发源
bilibili.dynamic.DynIdentity repost_src = 5;
bilibili.dynamic.common.DynIdentity repost_src = 5;
// 动态视频
bilibili.dynamic.CreateDynVideo video = 6;
bilibili.dynamic.common.CreateDynVideo video = 6;
// 通用模板类型2048方图 2049竖图 其他值无效
int64 sketch_type = 7;
// 通用模板的元内容(网页内容)
bilibili.dynamic.Sketch sketch = 8;
bilibili.dynamic.common.Sketch sketch = 8;
// 小程序的内容
bilibili.dynamic.Program program = 9;
bilibili.dynamic.common.Program program = 9;
// 动态附加小卡
bilibili.dynamic.CreateTag dyn_tag = 10;
bilibili.dynamic.common.CreateTag dyn_tag = 10;
// 动态附加大卡
bilibili.dynamic.CreateAttachCard attach_card = 11;
bilibili.dynamic.common.CreateAttachCard attach_card = 11;
// 特殊的创建选项
bilibili.dynamic.CreateOption option = 12;
bilibili.dynamic.common.CreateOption option = 12;
//
bilibili.dynamic.CreateTopic topic = 13;
bilibili.dynamic.common.CreateTopic topic = 13;
//
string upload_id = 14;
}
@@ -69,23 +180,37 @@ message CreateDynReq {
//
message CreateInitCheckReq {
//
int32 scene = 1;
bilibili.dynamic.common.CreateInitCheckScene scene = 1;
//
bilibili.dynamic.MetaDataCtrl meta = 2;
bilibili.dynamic.common.MetaDataCtrl meta = 2;
//
bilibili.dynamic.RepostInitCheck repost = 3;
bilibili.dynamic.common.RepostInitCheck repost = 3;
}
//
//
message CreatePageCommercialInfo {
//
string label_text = 1;
//
string desc = 2;
}
//
message CreatePageInfosReq {
//
//
int64 topic_id = 1;
//
int64 commercial_entity_type = 2;
//
int64 commercial_entity_id = 3;
}
//
//
message CreatePageInfosRsp {
//
//
CreatePageTopicInfo topic = 1;
//
CreatePageCommercialInfo commercial = 2;
}
//
@@ -126,7 +251,8 @@ enum DynamicButtonClickBizType {
//
message DynamicButtonClickReq {
//
repeated DynamicButtonClickBizType biz_type = 1;
}
//
@@ -134,6 +260,168 @@ message DynamicButtonClickRsp {
}
//
message DynamicRepostReq {
//
int64 uid = 1;
//
bilibili.dynamic.common.CreateContent content = 2;
//
bilibili.dynamic.common.DynIdentity repost_src = 3;
//
bilibili.dynamic.common.CreateOption option = 4;
//
bilibili.dynamic.common.CreateTopic topic = 5;
//
string upload_id = 6;
}
//
message DynamicThumbReq {
//
int64 uid = 1;
//
int64 dyn_id = 2;
//
int64 type = 3;
//
int64 rid = 4;
//
int64 spec_type = 5;
//
int64 up = 6;
//
string from = 7;
}
//
message DynamicThumbRsp {}
//
message EditDynReq {
//
int64 dyn_id = 1;
//
bilibili.dynamic.common.CreateScene scene = 2;
//
bilibili.dynamic.common.UserCreateMeta meta = 3;
//
bilibili.dynamic.common.CreateContent content = 4;
//
repeated bilibili.dynamic.common.CreatePic pics = 5;
//
bilibili.dynamic.common.DynIdentity repost_src = 6;
//
bilibili.dynamic.common.CreateTag dyn_tag = 7;
//
bilibili.dynamic.common.CreateAttachCard attach_card = 8;
//
bilibili.dynamic.common.CreateOption option = 9;
//
bilibili.dynamic.common.CreateTopic topic = 10;
//
string upload_id = 11;
}
//
message EditDynRsp {
//
int64 state = 1;
//
string totast = 2;
}
//
message GetEditDynInfoReq {
//
int64 dyn_id = 1;
//
bilibili.dynamic.common.CreateScene scene = 2;
//
bilibili.dynamic.common.MetaDataCtrl meta = 3;
//
bilibili.dynamic.common.RepostInitCheck repost = 4;
}
//
message GetEditDynInfoRsp {
//
repeated bilibili.dynamic.common.CreatePic pics = 1;
//
int64 orig_dyn_id = 2;
//
int64 pre_dyn_id = 3;
//
repeated CreatePageTopicInfo topic_infos = 4;
//
bilibili.dynamic.common.CreateAttachCard attach_card = 5;
//
bilibili.dynamic.common.PublishSetting setting = 6;
//
bilibili.dynamic.common.UpPermission permission = 7;
//
bilibili.dynamic.common.ShareChannel share_info = 8;
//
bilibili.dynamic.common.PublishYellowBar yellow_bar = 9;
//
bilibili.dynamic.common.PlusRedDot plus_red_dot = 10;
//
int64 only_fans = 11;
//
string edit_alert_msg = 12;
}
//
message GoodsAttachCardPreviewReq {
//
repeated int64 item_ids = 1;
//
int64 dyn_id = 2;
//
int64 mid = 3;
//
bilibili.dynamic.common.MetaDataCtrl meta = 4;
}
//
message GoodsAttachCardPreviewRsp {
//
map<int64, GoodsItem> goods = 1;
}
//
message GoodsItem {
//
int64 items_id = 1;
//
string name = 2;
//
string brief = 3;
//
string img = 4;
//
float price = 5;
//
string price_str = 6;
//
string icon_name = 7;
//
string icon_url = 8;
//
string jump_link = 9;
//
string jump_link_desc = 10;
}
//
message HomeBubbleReportReq {
//
string track_id = 1;
}
//
message HomeBubbleReportRsp {}
//
message HotSearchReq {
@@ -152,6 +440,137 @@ message HotSearchRsp {
string version = 2;
}
//
message ICreateGoodsReplySyncReq {
//
int64 uid = 1;
//
int64 goods_id = 2;
//
bilibili.dynamic.common.CreateContent content = 3;
//
bilibili.dynamic.common.CreateScene scene = 4;
//
repeated bilibili.dynamic.common.CreatePic pics = 5;
}
//
message ICreateResp {
//
int64 dyn_id = 1;
//
int64 dyn_type = 2;
//
int64 dyn_rid = 3;
}
//
message LbsLocation {
//
double lat = 1;
//
double lng = 2;
}
//
message NearbyPoiDetail {
//
LbsLocation location = 1;
//
POI_TYPE type = 2;
//
string poi = 3;
//
string address = 4;
//
string title = 5;
//
string show_title = 6;
//
double distance = 7;
//
string show_distance = 8;
//
AdInfoDetail ad_info = 9;
//
repeated PoiId ancestors = 10;
}
//
message NearbyPoiListItem {
//
NearbyPoiDetail poi_info = 1;
//
int32 user_count = 2;
}
//
message NearbyPoiListReq {
//
double lat = 1;
//
double lng = 2;
//
int32 page = 3;
//
int32 page_size = 4;
}
//
message NearbyPoiListRsp {
//
bool has_more = 1;
//
repeated NearbyPoiListItem pois = 2;
}
enum POI_TYPE {
TENCENT = 0;
CITY = 1;
NATION = 2;
BILI = 3;
}
//
message PoiDetail {
//
LbsLocation location = 1;
//
POI_TYPE type = 2;
//
string poi = 3;
//
string address = 4;
//
string title = 5;
//
string show_title = 6;
//
double distance = 7;
//
string show_distance = 8;
//
AdInfoDetail ad_info = 9;
//
PoiId ancestors = 10;
}
//
message PoiId {
//
string poi = 1;
//
int32 type = 2;
}
//
message PoiListItem {
//
PoiDetail poi_info = 1;
//
int32 user_count = 2;
}
//
message ReserveButtonClickReq {
//
@@ -202,12 +621,89 @@ enum ReserveButtonStatus {
RESERVE_BUTTON_STATUS_CHECK = 2; //
}
//
message ReserveCalendarInfo {
//
string title = 1;
//
int64 startts = 2;
//
int64 endts = 3;
//
string description = 4;
//
string bussinessid = 5;
}
//
message RmDynReq {
//
int64 dyn_id = 1;
//
string dyn_id_str = 2;
}
//
message RmDynRsp {}
//
message RmSpaceTopReq {
//
int64 dyn_id = 1;
//
int32 teenagers_mode = 2;
}
//
message RmSpaceTopRsp {}
//
message SearchPoiListReq {
//
double lat = 1;
//
double lng = 2;
//
int32 page = 3;
//
int32 page_size = 4;
//
string keyword = 5;
}
//
message SearchPoiListRsp {
//
bool has_more = 1;
//
repeated PoiListItem pois = 2;
}
//
message SetSpaceTopReq {
//
int64 dyn_id = 1;
//
int32 teenagers_mode = 2;
}
//
message SetSpaceTopRsp {}
//
message SubmitCheckReq {
//
bilibili.dynamic.CreateContent content = 1;
bilibili.dynamic.common.CreateContent content = 1;
//
repeated bilibili.dynamic.CreatePic pics = 2;
repeated bilibili.dynamic.common.CreatePic pics = 2;
//
bilibili.dynamic.common.CreateAttachCard attach_card = 3;
//
bilibili.dynamic.common.CreateScene scene = 4;
//
bilibili.dynamic.common.CreateOption create_option = 5;
//
bilibili.dynamic.common.Opus opus = 6;
}
//

View File

@@ -6,10 +6,14 @@ import "google/protobuf/empty.proto";
// 应用列表上报
service Gaia {
// 应用列表上报
rpc ExUploadAppList(GaiaEncryptMsgReq) returns (UploadAppListReply);
//
rpc ExClimbAppleTrees(GaiaEncryptMsgReq) returns (UploadAppListReply);
// 拉取rsa公钥
rpc ExFetchPublicKey(google.protobuf.Empty) returns (FetchPublicKeyReply);
//
rpc ExGetAxe(google.protobuf.Empty) returns (FetchPublicKeyReply);
// 应用列表上报
rpc ExUploadAppList(GaiaEncryptMsgReq) returns (UploadAppListReply);
}
// 待加密的pb对象