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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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对象