update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ 2022-02-02 00:43:56 +08:00
parent 11e00103d2
commit 57f264f996
5 changed files with 3890 additions and 50 deletions

View File

@ -170,11 +170,11 @@ message AdditionEsportMoba {
//
string sub_title = 7;
// type
string type = 8;
string type = 10;
//
string card_type = 9;
string card_type = 11;
//
string head_icon = 10;
string head_icon = 12;
}
// ---moba类-
@ -450,6 +450,7 @@ enum AdditionalButtonClickType {
click_up = 1; //
}
//
message AdditionalButtonInteractive {
//
string popups = 1;
@ -1014,7 +1015,7 @@ enum DescType {
desc_type_search_word = 18; //
}
// Description
//
message Description {
//
string text = 1;
@ -1040,7 +1041,7 @@ message Description {
int32 emoji_size = 11;
}
// Dimension
//
message Dimension {
//
int64 height = 1;
@ -2003,13 +2004,13 @@ message InteractionItem {
// id
string dynamic_id = 4;
// mid
int64 comment_mid = 5;
int64 comment_mid = 6;
//
repeated InteractionFace faces = 6;
repeated InteractionFace faces = 7;
//
InteractionStat stat = 7;
InteractionStat stat = 8;
//
string icon = 8;
string icon = 9;
}
//
@ -2133,17 +2134,17 @@ message MdlDynApplet {
//
string uri = 2;
//
string title = 3;
string title = 4;
//
string sub_title = 4;
string sub_title = 5;
//
string cover = 5;
string cover = 6;
// icon
string icon = 6;
string icon = 7;
//
string label = 7;
string label = 8;
//
string button_title = 8;
string button_title = 9;
}
// --稿

View File

@ -0,0 +1,858 @@
syntax = "proto3";
package bilibili.dynamic.common;
import "bilibili/app/dynamic/v2/dynamic.proto";
//
message AtGroup {
int32 group_type = 1;
string group_name = 2;
repeated AtItem items = 3;
}
//
enum AtGroupType {
AT_GROUP_TYPE_DEFAULT = 0; //
AT_GROUP_TYPE_RECENT = 1; //
AT_GROUP_TYPE_FOLLOW = 2; //
AT_GROUP_TYPE_FANS = 3; //
AT_GROUP_TYPE_OTHERS = 4; //
}
//
message AtItem {
//
int64 uid = 1;
//
string name = 2;
//
string face = 3;
//
int32 fans = 4;
//
int32 official_verify_type = 5;
}
//
message AtListReq {
//
int64 uid = 1;
}
//
message AtListRsp {
//
repeated AtGroup groups = 1;
}
//
message AtSearchReq {
//
int64 uid = 1;
//
string keyword = 2;
}
//
enum AttachCardType {
ATTACH_CARD_NONE = 0; //
ATTACH_CARD_GOODS = 1; //
ATTACH_CARD_VOTE = 2; //
ATTACH_CARD_UGC = 3; //
ATTACH_CARD_ACTIVITY = 4; //
ATTACH_CARD_OFFICIAL_ACTIVITY = 5; //
ATTACH_CARD_TOPIC = 6; //
ATTACH_CARD_OGV = 7; //
ATTACH_CARD_AUTO_OGV = 8; //
ATTACH_CARD_GAME = 9; //
ATTACH_CARD_MANGA = 10; //
ATTACH_CARD_DECORATION = 11; //
ATTACH_CARD_MATCH = 12; //
ATTACH_CARD_PUGV = 13; //
ATTACH_CARD_RESERVE = 14; //
ATTACH_CARD_UP_TOPIC = 15; //
}
//
message BottomBusiness {
//
int64 rid = 1;
//
int64 type = 2;
}
//
enum ContentType {
CONTENT_TYPE_NONE = 0; //
TEXT = 1; //
AT = 2; //
LOTTERY = 3; //
VOTE = 4; //
TOPIC = 5; //
GOODS = 6; //
BV = 7; //
AV = 8; //
EMOJI = 9; //
USER = 10; //
CV = 11; //
VC = 12; //
WEB = 13; //
TAOBAO = 14; //
MAIL = 15; //
OGV_SEASON = 16; //
OGV_EP = 17; //
}
//
message CreateActivity {
//
int64 activity_id = 1;
//
int32 activity_state = 2;
//
int32 is_new_activity = 3;
//
int32 action = 4;
}
//
message CreateAttachCard {
//
CreateGoodsCard goods = 1;
//
CreateCommonAttachCard common_card = 2;
}
//
message CreateCheckResp {
//
PublishSetting setting = 1;
//
UpPermission permission = 2;
//
ShareChannel share_info = 3;
//
PublishYellowBar yellow_bar = 4;
//
PlusRedDot plus_red_dot = 5;
}
//
message CreateCommonAttachCard {
//
int32 type = 1;
//
int64 biz_id = 2;
//
int32 reserve_source = 3;
//
int32 reserve_lottery = 4;
}
//
message CreateContent {
//
repeated CreateContentItem contents = 1;
}
//
message CreateContentItem {
//
string raw_text = 1;
//
int32 type = 2;
//
string biz_id = 3;
//
GoodsContent goods = 4;
}
//
message CreateDynVideo {
//
string relation_from = 1;
//
int32 biz_from = 3;
//
int32 copyright = 4;
//
int32 no_public = 5;
//
int32 no_reprint = 6;
//
string source = 7;
//
string cover = 8;
//
string title = 9;
//
int64 tid = 10;
//
string tag = 11;
//
string desc = 12;
//
int64 desc_format_id = 13;
//
int32 open_elec = 14;
//
int32 dtime = 15;
//
repeated DynVideoMultiP videos = 16;
//
DynVideoWatermark watermark = 17;
//
int64 mission_id = 18;
//
string dynamic = 19;
//
string dynamic_extension = 20;
//
string dynamic_ctrl = 21;
//
string dynamic_from = 22;
//
int64 lottery_id = 23;
//
DynVideoVote vote = 24;
//
bool up_selection_reply = 25;
//
bool up_close_reply = 26;
//
bool up_close_danmu = 27;
//
int64 up_from = 28;
//
int64 duration = 29;
}
//
message CreateDynVideoResult {
//
int64 aid = 1;
//
string message = 2;
//
DynVideoSubmitActBanner submitact_banner = 3;
//
DynVideoPushIntro push_intro = 4;
}
//
message CreateGoodsCard {
//
repeated string item_id = 1;
}
//
enum CreateInitCheckScene {
CREATE_INIT_CHECK_SCENE_INVALID = 0; //
CREATE_INIT_CHECK_SCENE_NORMAL = 1; //
CREATE_INIT_CHECK_SCENE_REPOST = 2; //
CREATE_INIT_CHECK_SCENE_SHARE = 3; //
CREATE_INIT_CHECK_SCENE_RESERVE_SHARE = 4; //
}
//
message CreateOption {
//
int32 up_choose_comment = 1;
//
int32 close_comment = 2;
//
int32 fold_exclude = 3;
//
int32 audit_level = 4;
//
int32 sync_to_comment = 5;
//
VideoShareInfo video_share_info = 6;
//
CreateActivity activity = 7;
}
//
message CreatePic {
//
string img_src = 1;
//
double img_width = 2;
//
double img_height = 3;
//
double img_size = 4;
//
repeated CreatePicTag img_tags = 5;
}
//
message CreatePicTag {
//
int64 item_id = 1;
//
int64 tid = 2;
//
int64 mid = 3;
//
string text = 4;
//
string text_string = 5;
//
int64 type = 6;
//
int64 source_type = 7;
//
string url = 8;
//
string schema_url = 9;
//
string jump_url = 10;
//
int64 orientation = 11;
//
int64 x = 12;
//
int64 y = 13;
//
string poi = 14;
}
//
message CreateResp {
//
int64 dyn_id = 1;
//
string dyn_id_str = 2;
//
int64 dyn_type = 3;
//
int64 dyn_rid = 4;
//
bilibili.app.dynamic.v2.DynamicItem fake_card = 5;
//
CreateDynVideoResult video_result = 6;
}
//
enum CreateScene {
CREATE_SCENE_INVALID = 0; //
CREATE_SCENE_CREATE_WORD = 1; //
CREATE_SCENE_CREATE_DRAW = 2; //
CREATE_SCENE_CREATE_DYN_VIDEO = 3; //
CREATE_SCENE_REPOST = 4; //
CREATE_SCENE_SHARE_BIZ = 5; //
CREATE_SCENE_SHARE_PAGE = 6; //
CREATE_SCENE_SHARE_PROGRAM = 7; //
CREATE_SCENE_REPLY_SYNC = 8; //
CREATE_SCENE_REPLY_CREATE_ACTIVITY = 9; //
}
//
message CreateTag {
//
ExtLbs lbs = 1;
//
BottomBusiness sdk_game = 2;
//
BottomBusiness diversion = 3;
}
//
message CreateTopic {
//
int64 id = 1;
//
string name = 2;
}
//
message DynIdentity {
//
int64 dyn_id = 1;
//
DynRevsId revs_id = 2;
}
//
message DynRevsId {
//
int64 dyn_type = 1;
//
int64 rid = 2;
}
//
message DynVideoEditor {
//
int64 cid = 1;
//
int32 upfrom = 2;
//
string filters = 3;
//
string fonts = 4;
//
string subtitles = 5;
//
string bgms = 6;
//
string stickers = 7;
//
string videoup_stickers = 8;
//
string trans = 9;
//
string makeups = 10;
//
string surgerys = 11;
//
string videofxs = 12;
//
string themes = 13;
//
string cooperates = 14;
//
string rhythms = 15;
//
string effects = 16;
//
string backgrounds = 17;
//
string videos = 18;
//
string sounds = 19;
//
string flowers = 20;
//
string cover_templates = 21;
//
string tts = 22;
//
string openings = 23;
//
bool record_text = 24;
//
string vupers = 25;
//
string features = 26;
//
string bcut_features = 27;
//
int32 audio_record = 28;
//
int32 camera = 29;
//
int32 speed = 30;
//
int32 camera_rotate = 31;
//
int32 screen_record = 32;
//
int32 default_end = 33;
//
int32 duration = 34;
//
int32 pic_count = 35;
//
int32 video_count = 36;
//
int32 shot_duration = 37;
//
string shot_game = 38;
//
bool highlight = 39;
//
int32 highlight_cnt = 40;
//
int32 pip_count = 41;
}
//
message DynVideoHotAct {
//
int64 act_id = 1;
//
int64 etime = 2;
//
int64 id = 3;
//
string pic = 4;
//
int64 stime = 5;
//
string title = 6;
//
string link = 7;
}
//
message DynVideoMultiP {
//
string title = 1;
//
string filename = 2;
//
int64 cid = 3;
//
DynVideoEditor editor = 4;
}
//
message DynVideoPushIntro {
//
int32 show = 1;
//
string text = 2;
}
//
message DynVideoSubmitActBanner {
//
string hotact_text = 1;
//
string hotact_url = 2;
//
repeated DynVideoHotAct list = 3;
}
//
message DynVideoVote {
//
int64 vote_id = 1;
//
string vote_title = 2;
//
int32 top_for_reply = 3;
}
//
message DynVideoWatermark {
//
int32 state = 1;
//
int32 type = 2;
//
int32 position = 3;
}
//
message ExtLbs {
//
string address = 1;
//
int64 distance = 2;
//
int64 type = 3;
//
string poi = 4;
//
LbsLoc location = 5;
//
string show_title = 6;
//
string title = 7;
//
string show_distance = 8;
}
//
message GetUidByNameReq {
//
repeated string names = 1;
}
//
message GetUidByNameRsp {
//
map<string, int64> uids = 1;
}
//
message GoodsContent {
//
int32 source_type = 1;
//
int64 item_id = 2;
//
int64 shop_id = 3;
}
//
message LaunchedActivity {
//
string module_title = 1;
//
repeated LaunchedActivityItem activities = 2;
//
ShowMoreLaunchedActivity show_more = 3;
}
//
message LaunchedActivityItem {
//
int64 activity_id = 1;
//
string activity_name = 2;
//
int32 activity_state = 3;
}
//
message LbsLoc {
//
double lat = 1;
//
double lng = 2;
}
//
message MetaDataCtrl {
//
string platform = 1;
//
string build = 2;
//
string mobi_app = 3;
//
string buvid = 4;
//
string device = 5;
//
string from_spmid = 6;
//
string from = 7;
//
string trace_id = 8;
//
int32 teenager_mode = 9;
//
int32 cold_start = 10;
//
string version = 11;
//
int32 network = 12;
//
string ip = 13;
}
//
message PlusRedDot {
//
int64 plus_has_red_dot = 1;
}
//
message Program {
//
string title = 1;
//
string desc = 2;
//
string cover = 3;
//
string target_url = 4;
//
string icon = 5;
//
string program_text = 6;
//
string jump_text = 7;
}
//
message PublishSetting {
//
int32 min_words_to_article = 1;
//
int32 max_words_to_article = 2;
//
int32 upload_size = 3;
}
//
message PublishYellowBar {
//
string text = 1;
//
string url = 2;
//
string icon = 3;
}
//
message RepostInitCheck {
//
DynIdentity repost_src = 1;
//
string share_id = 2;
//
int32 share_mode = 3;
}
//
enum ReserveSource {
RESERVE_SOURCE_NEW = 0; //
RESERVE_SOURCE_ASSOCIATED = 1; //
}
//
message ShareChannel {
//
string share_origin = 1;
//
string oid = 2;
//
string sid = 3;
//
repeated ShareChannelItem share_channels = 4;
}
//
message ShareChannelItem {
//
string name = 1;
//
string picture = 2;
//
string share_channel = 3;
//
ShareReserve reserve = 4;
}
//
message ShareReserve {
//
string title = 1;
//
string desc = 2;
//
string qr_code_icon = 3;
//
string qr_code_text = 4;
//
string qr_code_url = 5;
//
string name = 6;
//
string face = 7;
//
ShareReservePoster poster = 8;
//
ShareReserveLottery reserve_lottery = 9;
}
//
message ShareReserveLottery {
//
string icon = 1;
//
string text = 2;
}
//
message ShareReservePoster {
//
string url = 1;
//
double width = 2;
//
double height = 3;
}
//
message ShareResult {
//
int64 share_enable = 1;
//
string toast = 2;
}
//
message ShowMoreLaunchedActivity {
//
string button_text = 1;
//
string jump_url = 2;
}
//
message Sketch {
//
string title = 1;
//
string desc_text = 2;
//
string text = 3;
//
int64 biz_id = 4;
//
int64 biz_type = 5;
//
string cover_url = 6;
//
string target_url = 7;
}
//
message UpPermission {
//
repeated UpPermissionItem items = 1;
//
LaunchedActivity launched_activity = 2;
//
ShareResult share_result = 3;
}
//
message UpPermissionItem {
//
int32 type = 1;
//
int32 permission = 2;
//
string title = 3;
//
string subtitle = 4;
//
string icon = 5;
//
string jump_url = 6;
//
string toast = 7;
//
int64 has_red_dot = 8;
}
//
enum UpPermissionType {
UP_PERMISSION_TYPE_NONE = 0; //
UP_PERMISSION_TYPE_LOTTERY = 1; //
UP_PERMISSION_TYPE_CLIP_PUBLISHED = 2; //
UP_PERMISSION_TYPE_UGC_ATTACH_CARD = 3; //
UP_PERMISSION_TYPE_GOODS_ATTACH_CARD = 4; //
UP_PERMISSION_TYPE_CHOOSE_COMMENT = 5; //
UP_PERMISSION_TYPE_CONTROL_COMMENT = 6; //
UP_PERMISSION_TYPE_CONTROL_DANMU = 7; //
UP_PERMISSION_TYPE_VIDEO_RESERVE = 8; //
UP_PERMISSION_TYPE_LIVE_RESERVE = 9; //
}
//
message UserCreateMeta {
//
MetaDataCtrl app_meta = 1;
//
LbsLoc loc = 2;
//
int32 repost_mode = 3;
}
//
message VideoShareInfo {
//
int64 cid = 1;
//
int32 part = 2;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,234 @@
syntax = "proto3";
package bilibili.dynamic.interfaces.feed.v1;
import "bilibili/dynamic/common.proto";
//
service Feed {
//
rpc CreateInitCheck(CreateInitCheckReq) returns (bilibili.dynamic.common.CreateCheckResp);
//
rpc SubmitCheck(SubmitCheckReq) returns (SubmitCheckRsp);
//
rpc CreateDyn(CreateDynReq) returns (bilibili.dynamic.common.CreateResp);
//
rpc GetUidByName(bilibili.dynamic.common.GetUidByNameReq) returns (bilibili.dynamic.common.GetUidByNameRsp);
//
rpc AtList(bilibili.dynamic.common.AtListReq) returns (bilibili.dynamic.common.AtListRsp);
//
rpc AtSearch(bilibili.dynamic.common.AtSearchReq) returns (bilibili.dynamic.common.AtListRsp);
//
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 CreatePermissionButtonClick(CreatePermissionButtonClickReq) returns (CreatePermissionButtonClickRsp);
//
rpc CreatePageInfos(CreatePageInfosReq) returns (CreatePageInfosRsp);
}
//
message CreateDynReq {
//
bilibili.dynamic.common.UserCreateMeta meta = 1;
//
bilibili.dynamic.common.CreateContent content = 2;
//
int32 scene = 3;
//
repeated bilibili.dynamic.common.CreatePic pics = 4;
//
bilibili.dynamic.common.DynIdentity repost_src = 5;
//
bilibili.dynamic.common.CreateDynVideo video = 6;
//
int64 sketch_type = 7;
//
bilibili.dynamic.common.Sketch sketch = 8;
//
bilibili.dynamic.common.Program program = 9;
//
bilibili.dynamic.common.CreateTag dyn_tag = 10;
//
bilibili.dynamic.common.CreateAttachCard attach_card = 11;
//
bilibili.dynamic.common.CreateOption option = 12;
//
bilibili.dynamic.common.CreateTopic topic = 13;
//
string upload_id = 14;
}
//
message CreateInitCheckReq {
//
int32 scene = 1;
//
bilibili.dynamic.common.MetaDataCtrl meta = 2;
//
bilibili.dynamic.common.RepostInitCheck repost = 3;
}
//
message CreatePageInfosReq {
//
int64 topic_id = 1;
}
//
message CreatePageInfosRsp {
//
CreatePageTopicInfo topic = 1;
}
//
message CreatePageTopicInfo {
//
int64 topic_id = 1;
//
string topic_name = 2;
}
//
message CreatePermissionButtonClickReq {
//
DynamicButtonClickBizType type = 1;
}
//
message CreatePermissionButtonClickRsp {
}
//
message CreatePlusButtonClickReq {
}
//
message CreatePlusButtonClickRsp {
}
//
enum DynamicButtonClickBizType {
DYNAMIC_BUTTON_CLICK_BIZ_TYPE_NONE = 0; //
DYNAMIC_BUTTON_CLICK_BIZ_TYPE_LIVE = 1; //
DYNAMIC_BUTTON_CLICK_BIZ_TYPE_DYN_UP = 2; //
}
//
message DynamicButtonClickReq {
}
//
message DynamicButtonClickRsp {
}
//
message HotSearchReq {
}
//
message HotSearchRsp {
//
message Item {
//
string words = 1;
}
//
repeated Item items = 1;
//
string version = 2;
}
//
message ReserveButtonClickReq {
//
int64 uid = 1;
//
int64 reserve_id = 2;
//
int64 reserve_total = 3;
//
int32 cur_btn_status = 4;
//
string spmid = 5;
//
int64 dyn_id = 6;
//
int64 dyn_type = 7;
}
//
message ReserveButtonClickResp {
//
ReserveButtonStatus final_btn_status = 1;
//
ReserveButtonMode btn_mode = 2;
//
int64 reserve_update = 3;
//
string desc_update = 4;
//
bool has_activity = 5;
//
string activity_url = 6;
//
string toast = 7;
}
//
enum ReserveButtonMode {
RESERVE_BUTTON_MODE_NONE = 0; //
RESERVE_BUTTON_MODE_RESERVE = 1; //
RESERVE_BUTTON_MODE_UP_CANCEL = 2; //
}
//
enum ReserveButtonStatus {
RESERVE_BUTTON_STATUS_NONE = 0; //
RESERVE_BUTTON_STATUS_UNCHECK = 1; //
RESERVE_BUTTON_STATUS_CHECK = 2; //
}
//
message SubmitCheckReq {
//
bilibili.dynamic.common.CreateContent content = 1;
//
repeated bilibili.dynamic.common.CreatePic pics = 2;
}
//
message SubmitCheckRsp {
}
//
message SuggestReq {
//
string s = 1;
//
int32 type = 2;
}
//
message SuggestRsp {
//
repeated string list = 1;
//
string track_id = 2;
//
string version = 3;
}

View File

@ -9,7 +9,25 @@ service Gaia {
//
rpc ExUploadAppList(GaiaEncryptMsgReq) returns (UploadAppListReply);
// rsa公钥
rpc ExFetchPublicKey(.google.protobuf.Empty) returns (FetchPublicKeyReply);
rpc ExFetchPublicKey(google.protobuf.Empty) returns (FetchPublicKeyReply);
}
// pb对象
message DeviceAppList {
//
// first_installation: first_open:
string source = 1;
//
repeated string system_app_list = 2;
//
repeated string user_app_list = 3;
}
//
enum EncryptType{
INVALID_ENCRYPT_TYPE = 0; //
CLIENT_AES = 1; // AES加密私钥
SERVER_RSA_AES = 2; // AES加密的私钥RSA公钥来加密
}
//
@ -22,6 +40,7 @@ message FetchPublicKeyReply {
int64 deadline = 3;
}
//
message GaiaDeviceBasicInfo {
//&
string platform = 1; //android/ios/web/h5;
@ -58,36 +77,14 @@ message GaiaDeviceBasicInfo {
//
string network = 20; // , WIFI/CELLULAR/OFFLINE/OTHERNET/ETHERNET "network":"WIFI", ESS_NETWORK_STATEACCESS_WIFI_STATE
//string ip = 20;
}
//pb对象
message DeviceAppList {
//
// first_installation: first_open:
string source = 1;
//
repeated string system_app_list = 2;
//
repeated string user_app_list = 3;
}
//
enum EncryptType{
//
INVALID_ENCRYPT_TYPE = 0;
// AES加密私钥
CLIENT_AES = 1;
// AES加密的私钥RSA公钥来加密
SERVER_RSA_AES = 2;
}
//
enum PayloadType {
//
INVALID_PAYLOAD = 0;
//app列表DeviceAppList
DEVICE_APP_LIST = 1;
// -
message GaiaEncryptMsgReq {
//
GaiaMsgHeader header = 1;
//
bytes encrypt_payload = 2;
}
//
@ -102,12 +99,10 @@ message GaiaMsgHeader {
int64 ts = 4;
}
// -
message GaiaEncryptMsgReq {
//
GaiaMsgHeader header = 1;
//
bytes encrypt_payload = 2;
//
enum PayloadType {
INVALID_PAYLOAD = 0; //
DEVICE_APP_LIST = 1; //app列表DeviceAppList
}
// -