更新并修改大量【proto定义】

This commit is contained in:
社会易姐QwQ 2021-07-12 16:37:03 +08:00
parent 174ddbcdcd
commit 3512adf59d
31 changed files with 2552 additions and 2461 deletions

View File

@ -193,7 +193,7 @@ PS所有http协议地址均可使用https文档中为了统一写作`http`
- [获取当前时间戳](other/time_stamp.md)√ - [获取当前时间戳](other/time_stamp.md)√
- [web端组件](web_widget) - [web端组件](web_widget)
- [分区当日投稿数](web_widget/zone_upload.md)√ - [分区当日投稿数](web_widget/zone_upload.md)√
- [404页漫画收集](web_widget/404_manga.md) - [404页漫画收集](web_widget/404_manga.md)
- [APP端组件](APP_widget) - [APP端组件](APP_widget)
- [开屏图片](APP_widget/splash.md)√ - [开屏图片](APP_widget/splash.md)√
- [个性装扮](garb) - [个性装扮](garb)

View File

@ -22,7 +22,7 @@ message EntranceReply {
// //
string url = 3; string url = 3;
// //
AnimateIcon animateIcon = 4; AnimateIcon animate_icon = 4;
} }
// - // -
@ -36,7 +36,7 @@ message WindowReply {
// //
string url = 2; string url = 2;
// //
string reportData = 3; string report_data = 3;
} }
// //

View File

@ -7,7 +7,7 @@ import "google/protobuf/wrappers.proto";
// 广 // 广
message AdsControlDto { message AdsControlDto {
// 广 // 广
int32 hasDanmu = 1; int32 has_danmu = 1;
// P视频的cid // P视频的cid
repeated int64 cids = 2; repeated int64 cids = 2;
// ogv ep // ogv ep
@ -19,54 +19,54 @@ message AdOgvEpDto {
// epid // epid
int64 epid = 1; int64 epid = 1;
// "荐" // "荐"
bool hasRecommend = 2; bool has_recommend = 2;
} }
// 广 // 广
message SourceContentDto { message SourceContentDto {
// 广id // 广id
string requestId = 1; string request_id = 1;
// 广source ID // 广source ID
int32 sourceId = 2; int32 source_id = 2;
// 广resource ID // 广resource ID
int32 resourceId = 3; int32 resource_id = 3;
// 广,广true // 广,广true
bool isAdLoc = 4; bool is_ad_loc = 4;
// , 0 // , 0
// 0: 1:广 // 0: 1:广
google.protobuf.Int32Value serverType = 5; google.protobuf.Int32Value server_type = 5;
// IP回传拼接 // IP回传拼接
string clientIp = 6; string client_ip = 6;
// 广, , 0 // 广, , 0
google.protobuf.Int32Value cardIndex = 7; google.protobuf.Int32Value card_index = 7;
// 广source // 广source
int32 index = 8; int32 index = 8;
// 广 // 广
AdDto adContent = 9; AdDto ad_content = 9;
} }
// 广 // 广
message AdDto { message AdDto {
// 广ID // 广ID
int64 creativeId = 1; int64 creative_id = 1;
// 广 // 广
string adCb = 2; string ad_cb = 2;
// 广 // 广
AdContentExtraDto extra = 3; AdContentExtraDto extra = 3;
// 广 // 广
int32 cmMark = 4; int32 cm_mark = 4;
// //
int64 topViewId = 5; int64 top_view_id = 5;
// //
int32 creativeType = 6; int32 creative_type = 6;
// //
int32 cardType = 7; int32 card_type = 7;
// //
int32 creativeStyle = 8; int32 creative_style = 8;
// //
int32 isAd = 9; int32 is_ad = 9;
// //
CreativeDto creativeContent = 10; CreativeDto creative_content = 10;
} }
// 广 // 广
@ -74,63 +74,63 @@ message AdContentExtraDto {
// //
string layout = 1; string layout = 1;
// url // url
repeated string showUrls = 2; repeated string show_urls = 2;
// url // url
repeated string clickUrls = 3; repeated string click_urls = 3;
// //
repeated string danmuListShowUrls = 4; repeated string danmu_list_show_urls = 4;
// //
repeated string danmuListClickUrls = 5; repeated string danmu_list_click_urls = 5;
// //
repeated string danmuDetailShowUrls = 6; repeated string danmu_detail_show_urls = 6;
// //
repeated string danmuTrolleyAddUrls = 7; repeated string danmu_trolley_add_urls = 7;
// useWebView默认false // useWebView默认false
bool useAdWebV2 = 8; bool use_ad_web_v2 = 8;
// app唤起白名单 // app唤起白名单
repeated string openWhitelist = 9; repeated string open_whitelist = 9;
// app下载白名单 // app下载白名单
AppPackageDto downloadWhitelist = 10; AppPackageDto download_whitelist = 10;
// //
AdCardDto card = 11; AdCardDto card = 11;
// ms // ms
int32 reportTime = 12; int32 report_time = 12;
// app store // app store
int32 appstorePriority = 13; int32 appstore_priority = 13;
// 广 // 广
int32 salesType = 14; int32 sales_type = 14;
// //
int32 preloadLandingpage = 15; int32 preload_landingpage = 15;
// //
bool specialIndustry = 16; bool special_industry = 16;
// //
string specialIndustryTips = 17; string special_industry_tips = 17;
// //
bool enableDownloadDialog = 18; bool enable_download_dialog = 18;
// //
bool enableShare = 19; bool enable_share = 19;
// 广 // 广
// 1: 2: 3: // 1: 2: 3:
int32 upzoneEntranceType = 20; int32 upzone_entrance_type = 20;
// 广id,id(Mid)id或者小程序id // 广id,id(Mid)id或者小程序id
int32 upzoneEntranceReportId = 21; int32 upzone_entrance_report_id = 21;
// //
AdShareInfoDto shareInfo = 22; AdShareInfoDto share_info = 22;
// topview图片链接 // topview图片链接
string topviewPicUrl = 23; string topview_pic_url = 23;
// topview视频链接 // topview视频链接
string topviewVideoUrl = 24; string topview_video_url = 24;
// //
// 0:banner可点击 1: // 0:banner可点击 1:
int32 clickArea = 25; int32 click_area = 25;
// //
int64 shopId = 26; int64 shop_id = 26;
// up主 // up主
int64 upMid = 27; int64 up_mid = 27;
// id // id
string trackId = 28; string track_id = 28;
// //
int32 enableStoreDirectLaunch = 29; int32 enable_store_direct_launch = 29;
// DPA2.0商品ID // DPA2.0商品ID
int64 product_id = 30; int64 product_id = 30;
} }
@ -142,25 +142,25 @@ message CreativeDto {
// //
string description = 2; string description = 2;
// //
string imageUrl = 3; string image_url = 3;
// //
string imageMd5 = 4; string image_md5 = 4;
// //
string url = 5; string url = 5;
// //
string clickUrl = 6; string click_url = 6;
// //
string showUrl = 7; string show_url = 7;
// //
int64 videoId = 8; int64 video_id = 8;
// //
string thumbnailUrl = 9; string thumbnail_url = 9;
// //
string thumbnailUrlMd5 = 10; string thumbnail_url_md5 = 10;
// //
string logoUrl = 11; string logo_url = 11;
// //
string logoMd5 = 12; string logo_md5 = 12;
// //
string username = 13; string username = 13;
} }
@ -170,27 +170,27 @@ message AppPackageDto {
// (bytes) // (bytes)
int64 size = 1; int64 size = 1;
// //
string displayName = 2; string display_name = 2;
// //
string apkName = 3; string apk_name = 3;
// url // url
string url = 4; string url = 4;
// bili schema url // bili schema url
string biliUrl = 5; string bili_url = 5;
// md5 // md5
string md5 = 6; string md5 = 6;
// icon // icon
string icon = 7; string icon = 7;
// //
string devName = 8; string dev_name = 8;
// //
string authUrl = 9; string auth_url = 9;
// //
string authName = 10; string auth_name = 10;
// //
string version = 11; string version = 11;
// ,yy-mm-hh格式 // ,yy-mm-hh格式
string updateTime = 12; string update_time = 12;
// //
string privacy_name = 13; string privacy_name = 13;
// url // url
@ -200,91 +200,91 @@ message AppPackageDto {
// //
message AdCardDto { message AdCardDto {
// //
int32 cardType = 1; int32 card_type = 1;
// //
string title = 2; string title = 2;
// //
string desc = 3; string desc = 3;
// //
string extraDesc = 4; string extra_desc = 4;
// //
string longDesc = 5; string long_desc = 5;
// , 广 // , 广
string shortTitle = 6; string short_title = 6;
// /广 // /广
string danmuTitle = 7; string danmu_title = 7;
// /广100 // /广100
int32 danmuHeight = 8; int32 danmu_height = 8;
// /广100 // /广100
int32 danmuWidth = 9; int32 danmu_width = 9;
// /广 // /广
int32 danmuLife = 10; int32 danmu_life = 10;
// / // /
int32 danmuBegin = 11; int32 danmu_begin = 11;
// #80FFFFFF // #80FFFFFF
string danmuColor = 12; string danmu_color = 12;
// /广H5落地页 // /广H5落地页
string danmuH5Url = 13; string danmu_h5url = 13;
// / 广icon // / 广icon
string danmuIcon = 14; string danmu_icon = 14;
// //
int32 foldTime = 15; int32 fold_time = 15;
// 广 // 广
string adTag = 16; string ad_tag = 16;
// cover数组 // cover数组
repeated AdCoverDto covers = 17; repeated AdCoverDto covers = 17;
// //
string jumpUrl = 18; string jump_url = 18;
// //
string imaxLandingPageJsonString = 19; string imax_landing_page_json_string = 19;
// app唤起schema // app唤起schema
string callupUrl = 20; string callup_url = 20;
// univeral link域名 // univeral link域名
string universalApp = 21; string universal_app = 21;
// , // ,
string oriPrice = 22; string ori_price = 22;
// , // ,
int32 curPrice = 23; int32 cur_price = 23;
// / // /
string priceDesc = 24; string price_desc = 24;
// //
string priceSymbol = 25; string price_symbol = 25;
// "1000" // "1000"
string goodsCurPrice = 26; string goods_cur_price = 26;
// "¥1002" // "¥1002"
string goodsOriPrice = 27; string goods_ori_price = 27;
// //
AdGoodDto good = 28; AdGoodDto good = 28;
// ? 100 // ? 100
int32 rank = 29; int32 rank = 29;
// //
int32 hotScore = 30; int32 hot_score = 30;
// //
AdButtonDto button = 31; AdButtonDto button = 31;
// 广logo // 广logo
string adverLogo = 32; string adver_logo = 32;
// 广name // 广name
string adverName = 33; string adver_name = 33;
// 广 // 广
string adverPageUrl = 34; string adver_page_url = 34;
// 广 // 广
repeated string videoBarrage = 35; repeated string video_barrage = 35;
// //
AdBusinessMarkDto adTagStyle = 36; AdBusinessMarkDto ad_tag_style = 36;
// //
AdAutoPlayVideoDto video = 37; AdAutoPlayVideoDto video = 37;
// 广 // 广
AdFeedbackPanelDto feedbackPanel = 38; AdFeedbackPanelDto feedback_panel = 38;
// //
int64 adverMid = 39; int64 adver_mid = 39;
// //
int64 adverAccountId = 40; int64 adver_account_id = 40;
// //
string duration = 41; string duration = 41;
// //
repeated QualityInfo qualityInfos = 42; repeated QualityInfo quality_infos = 42;
// 广 // 广
string dynamicText = 43; string dynamic_text = 43;
// 广 // 广
AdverDto adver = 44; AdverDto adver = 44;
// //
@ -298,7 +298,7 @@ message AdShareInfoDto {
// //
string subtitle = 2; string subtitle = 2;
// url // url
string imageUrl = 3; string image_url = 3;
} }
// 广 // 广
@ -309,13 +309,13 @@ message AdCoverDto {
// 0: // 0:
int32 loop = 2; int32 loop = 2;
// //
string jumpUrl = 3; string jump_url = 3;
// click_urls使 // click_urls使
repeated string reportUrls = 4; repeated string report_urls = 4;
// //
int32 imageHeight = 5; int32 image_height = 5;
// //
int32 imageWidth = 6; int32 image_width = 6;
} }
// //
@ -326,11 +326,11 @@ message AdButtonDto {
// //
string text = 2; string text = 2;
// //
string jumpUrl = 3; string jump_url = 3;
// //
string reportUrls = 4; string report_urls = 4;
// schema // schema
string dlsucCallupUrl = 5; string dlsuc_callup_url = 5;
//id //id
int32 game_id = 6; int32 game_id = 6;
// //
@ -345,28 +345,27 @@ message AdBusinessMarkDto {
// //
string text = 2; string text = 2;
// ,#80FFFFFF RGBA // ,#80FFFFFF RGBA
string textColor = 3; string text_color = 3;
// //
string textColorNight = 4; string text_color_night = 4;
// //
string bgColor = 5; string bg_color = 5;
// //
string bgColorNight = 6; string bg_color_night = 6;
// //
string borderColor = 7; string border_color = 7;
// //
string borderColorNight = 8; string border_color_night = 8;
// //
string imgUrl = 9; string img_url = 9;
// //
int32 imgHeight = 10; int32 img_height = 10;
// //
int32 imgWidth = 11; int32 img_width = 11;
// //
string bgBorderColor = 12; string bg_border_color = 12;
} }
// //
message AdAutoPlayVideoDto { message AdAutoPlayVideoDto {
// avid // avid
@ -382,19 +381,19 @@ message AdAutoPlayVideoDto {
// //
string cover = 6; string cover = 6;
// //
bool autoPlay = 7; bool auto_play = 7;
// //
bool btnDycColor = 8; bool btn_dyc_color = 8;
// ms // ms
int32 btnDycTime = 9; int32 btn_dyc_time = 9;
// id // id
int64 bizId = 10; int64 biz_id = 10;
// //
repeated string process0Urls = 11; repeated string process0_urls = 11;
// 3S三方监控 // 3S三方监控
repeated string play3SUrls = 12; repeated string play_3s_urls = 12;
// 5S三方监控 // 5S三方监控
repeated string play5SUrls = 13; repeated string play_5s_urls = 13;
// //
int32 orientation = 14; int32 orientation = 14;
} }
@ -402,32 +401,32 @@ message AdAutoPlayVideoDto {
// //
message AdFeedbackPanelDto { message AdFeedbackPanelDto {
// 广广 // 广广
string panelTypeText = 1; string panel_type_text = 1;
// //
repeated AdFeedbackPanelModuleDto feedbackPanelDetail = 2; repeated AdFeedbackPanelModuleDto feedback_panel_detail = 2;
} }
// //
message AdFeedbackPanelModuleDto { message AdFeedbackPanelModuleDto {
// id // id
int32 moduleId = 1; int32 module_id = 1;
// icon url // icon url
string iconUrl = 2; string icon_url = 2;
// //
// 1: 2:H5 // 1: 2:H5
int32 jumpType = 3; int32 jump_type = 3;
// //
string jumpUrl = 4; string jump_url = 4;
// //
string text = 5; string text = 5;
// //
repeated AdSecondFeedbackPanelDto secondaryPanel = 6; repeated AdSecondFeedbackPanelDto secondary_panel = 6;
} }
// //
message AdSecondFeedbackPanelDto { message AdSecondFeedbackPanelDto {
// id // id
int32 reasonId = 1; int32 reason_id = 1;
// //
string text = 2; string text = 2;
} }
@ -435,13 +434,13 @@ message AdSecondFeedbackPanelDto {
// //
message AdGoodDto { message AdGoodDto {
// ID // ID
int64 itemId = 1; int64 item_id = 1;
// SKU ID // SKU ID
int64 skuId = 2; int64 sku_id = 2;
// ID // ID
int64 shopId = 3; int64 shop_id = 3;
// SKU库存 // SKU库存
int64 skuNum = 4; int64 sku_num = 4;
} }
// //
@ -450,20 +449,26 @@ message QualityInfo {
string icon = 1; string icon = 1;
// //
string text = 2; string text = 2;
//
bool is_bg = 3;
//
string bg_color = 4;
//
string bg_color_night = 5;
} }
// 广 // 广
message AdverDto { message AdverDto {
// //
int64 adverId = 1; int64 adver_id = 1;
// //
string adverLogo = 2; string adver_logo = 2;
// //
string adverName = 3; string adver_name = 3;
// //
int32 adverType = 4; int32 adver_type = 4;
// //
string adverPageUrl = 5; string adver_page_url = 5;
// //
string adverDesc = 6; string adver_desc = 6;
} }

View File

@ -66,5 +66,5 @@ message ProbeSubReq {
// //
message ProbeSubReply { message ProbeSubReply {
// //
int64 messageId = 1; int64 message_id = 1;
} }

View File

@ -9,9 +9,9 @@ message Arc{
// 稿P数 // 稿P数
int64 videos = 2; int64 videos = 2;
// id // id
int32 typeId = 3; int32 type_id = 3;
// //
string typeName = 4; string type_name = 4;
// 稿 // 稿
// 1: 2: // 1: 2:
int32 copyright = 5; int32 copyright = 5;
@ -32,19 +32,19 @@ message Arc{
int32 access = 12; int32 access = 12;
// () // ()
int32 attribute = 13; int32 attribute = 13;
// //
string tag = 14; string tag = 14;
// //
repeated string tags = 15; repeated string tags = 15;
// 稿() // 稿()
int64 duration = 16; int64 duration = 16;
// id // id
int64 missionId = 17; int64 mission_id = 17;
// id // id
int64 orderId = 18; int64 order_id = 18;
// PGC稿件强制重定向url() // PGC稿件强制重定向url()
string redirectUrl = 19; string redirect_url = 19;
// //
int64 forward = 20; int64 forward = 20;
// //
Rights rights = 21; Rights rights = 21;
@ -52,20 +52,20 @@ message Arc{
Author author = 22; Author author = 22;
// //
Stat stat = 23; Stat stat = 23;
// //
string reportResult = 24; string report_result = 24;
// 稿 // 稿
string dynamic = 25; string dynamic = 25;
// 稿1P cid // 稿1P cid
int64 firstCid = 26; int64 first_cid = 26;
// 稿1P // 稿1P
Dimension dimension = 27; Dimension dimension = 27;
// //
repeated StaffInfo staffInfo = 28; repeated StaffInfo staff_info = 28;
// UGC合集id // UGC合集id
int64 seasonId = 29; int64 season_id = 29;
// () // ()
int64 attributeV2 = 30; int64 attribute_v2 = 30;
} }
// UP主信息 // UP主信息
@ -127,17 +127,17 @@ message Rights{
// //
int32 hd5 = 6; int32 hd5 = 6;
// //
int32 noReprint = 7; int32 no_reprint = 7;
// //
int32 autoplay = 8; int32 autoplay = 8;
// UGC稿件需要付费 // UGC稿件需要付费
int32 ugcPay = 9; int32 ugc_pay = 9;
// 稿 // 稿
int32 isCooperation = 10; int32 is_cooperation = 10;
// UGC付费预览 // UGC付费预览
int32 ugcPayPreview = 11; int32 ugc_pay_preview = 11;
// //
int32 noBackground = 12; int32 no_background = 12;
} }
// //
@ -168,9 +168,9 @@ message Stat{
// //
int32 share = 7; int32 share = 7;
// //
int32 nowRank = 8; int32 now_rank = 8;
// //
int32 hisRank = 9; int32 his_rank = 9;
// //
int32 like = 10; int32 like = 10;
// (0) // (0)

View File

@ -8,24 +8,24 @@ import "bilibili/app/card/v1/single.proto";
message Card { message Card {
oneof item { oneof item {
// //
SmallCoverV5 smallCoverV5 = 1; SmallCoverV5 small_cover_v5 = 1;
// //
LargeCoverV1 largeCoverV1 = 2; LargeCoverV1 large_cover_v1 = 2;
// //
ThreeItemAllV2 threeItemAllV2 = 3; ThreeItemAllV2 three_item_all_v2 = 3;
// //
ThreeItemV1 threeItemV1 = 4; ThreeItemV1 three_item_v1 = 4;
// //
HotTopic hotTopic = 5; HotTopic hot_topic = 5;
// //
DynamicHot dynamicHot = 6; DynamicHot three_item_h_v5 = 6;
// //
MiddleCoverV3 middleCoverV3 = 7; MiddleCoverV3 middle_cover_v3 = 7;
// //
LargeCoverV4 largeCoverV4 = 8; LargeCoverV4 large_cover_v4 = 8;
// //
PopularTopEntrance popularTopEntrance = 9; PopularTopEntrance popular_top_entrance = 9;
// //
RcmdOneItem rcmdOneItem = 10; RcmdOneItem rcmd_one_item = 10;
} }
} }

View File

@ -7,9 +7,9 @@ import "bilibili/app/card/v1/ad.proto";
// //
message Base { message Base {
// //
string cardType = 1; string card_type = 1;
// ? // ?
string cardGoto = 2; string card_goto = 2;
// //
// av:稿 mid: // av:稿 mid:
string goto = 3; string goto = 3;
@ -22,28 +22,28 @@ message Base {
// uri // uri
string uri = 7; string uri = 7;
// //
ThreePoint threePoint = 8; ThreePoint three_point = 8;
// //
Args args = 9; Args args = 9;
// //
PlayerArgs playerArgs = 10; PlayerArgs player_args = 10;
// //
int64 idx = 11; int64 idx = 11;
// //
AdInfo adInfo = 12; AdInfo ad_info = 12;
// //
Mask mask = 13; Mask mask = 13;
// //
// recommend: operation:? // recommend: operation:?
string fromType = 14; string from_type = 14;
// //
repeated ThreePointV2 threePointV2 = 15; repeated ThreePointV2 three_point_v2 = 15;
// //
repeated ThreePointV3 threePointV3 = 16; repeated ThreePointV3 three_point_v3 = 16;
// //
Button descButton = 17; Button desc_button = 17;
// v4 // v4
ThreePointV4 threePointV4 = 18; ThreePointV4 three_point_v4 = 18;
} }
// //
@ -61,7 +61,7 @@ message Button {
// //
int32 type = 6; int32 type = 6;
// v2 // v2
string eventV2 = 7; string event_v2 = 7;
// //
Relation relation = 8; Relation relation = 8;
} }
@ -69,11 +69,11 @@ message Button {
// //
message ThreePoint { message ThreePoint {
// //
repeated DislikeReason dislikeReasons = 1; repeated DislikeReason dislike_reasons = 1;
// //
repeated DislikeReason feedbacks = 2; repeated DislikeReason feedbacks = 2;
// //
int32 watchLater = 3; int32 watch_later = 3;
} }
// //
@ -213,7 +213,7 @@ message SharePlane {
// //
string title = 1; string title = 1;
// //
string shareSubtitle = 2; string share_subtitle = 2;
// //
string desc = 3; string desc = 3;
// url // url
@ -223,15 +223,15 @@ message SharePlane {
// 稿bvid // 稿bvid
string bvid = 6; string bvid = 6;
// //
map<string,bool> shareTo = 7; map<string,bool> share_to = 7;
// UP主昵称 // UP主昵称
string author = 8; string author = 8;
// UP主mid // UP主mid
int64 authorId = 9; int64 author_id = 9;
// //
string shortLink = 10; string short_link = 10;
// //
string playNumber = 11; string play_number = 11;
} }
// //
@ -247,36 +247,36 @@ message ReasonStyle {
// //
string text = 1; string text = 1;
// //
string textColor = 2; string text_color = 2;
// //
string bgColor = 3; string bg_color = 3;
// //
string borderColor = 4; string border_color = 4;
// url // url
string iconUrl = 5; string icon_url = 5;
// - // -
string textColorNight = 6; string text_color_night = 6;
// - // -
string bgColorNight = 7; string bg_color_night = 7;
// - // -
string borderColorNight = 8; string border_color_night = 8;
// url- // url-
string iconNightUrl = 9; string icon_night_url = 9;
// id // id
// 1: 2: // 1: 2:
int32 bgStyle = 10; int32 bg_style = 10;
// //
string uri = 11; string uri = 11;
// //
string iconBgUrl = 12; string icon_bg_url = 12;
// //
string event = 13; string event = 13;
// //
string eventV2 = 14; string event_v2 = 14;
// //
int32 rightIconType = 15; int32 right_icon_type = 15;
// //
string leftIconType = 16; string left_icon_type = 16;
} }
// //
@ -318,7 +318,7 @@ message Relation {
// //
int32 status = 1; int32 status = 1;
// //
int32 isFollow = 2; int32 is_follow = 2;
// //
int32 isFollowed = 3; int32 is_followed = 3;
} }

View File

@ -290,22 +290,22 @@ message EntranceItem {
// //
string title = 3; string title = 3;
// id // id
string moduleId = 4; string module_id = 4;
// uri // uri
string uri = 5; string uri = 5;
// id // id
int64 entranceId = 6; int64 entrance_id = 6;
// //
Bubble bubble = 7; Bubble bubble = 7;
// //
// 1: // 1:
int32 entranceType = 8; int32 entrance_type = 8;
} }
// //
message Bubble { message Bubble {
// //
string bubbleContent = 1; string bubble_content = 1;
// //
int32 version = 2; int32 version = 2;
// //

View File

@ -55,7 +55,7 @@ message CursorReq {
// all: archive: live: article: // all: archive: live: article:
string business = 2; string business = 2;
// () // ()
PlayerPreloadParams playerPreload = 3; PlayerPreloadParams player_preload = 3;
// //
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
} }
@ -80,7 +80,7 @@ message CursorV2Req {
// archive: live: article: goods: show: // archive: live: article: goods: show:
string business = 2; string business = 2;
// () // ()
PlayerPreloadParams playerPreload = 3; PlayerPreloadParams player_preload = 3;
// //
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4; bilibili.app.archive.middleware.v1.PlayerArgs player_args = 4;
// //
@ -102,15 +102,15 @@ message CursorItem {
// //
oneof card_item { oneof card_item {
// ugc稿件 // ugc稿件
CardUGC cardUGC = 1; CardUGC card_ugc = 1;
// pgc稿件 // pgc稿件
CardOGV cardOGV = 2; CardOGV card_ogv = 2;
// //
CardArticle cardArticle = 3; CardArticle card_article = 3;
// //
CardLive cardLive = 4; CardLive card_live = 4;
// //
CardCheese cardCheese = 5; CardCheese card_cheese = 5;
} }
// //
string title = 6; string title = 6;
@ -130,7 +130,7 @@ message CursorItem {
// //
DeviceType dt = 13; DeviceType dt = 13;
// //
bool hasShare = 14; bool has_share = 14;
} }
// ugc稿件卡片 // ugc稿件卡片
@ -146,7 +146,7 @@ message CardUGC {
// UP主mid // UP主mid
int64 mid = 5; int64 mid = 5;
// //
bool displayAttention = 6; bool display_attention = 6;
// cid // cid
int64 cid = 7; int64 cid = 7;
// P // P
@ -160,9 +160,9 @@ message CardUGC {
// P数 // P数
int64 videos = 12; int64 videos = 12;
// //
string shortLink = 13; string short_link = 13;
// //
string shareSubtitle = 14; string share_subtitle = 14;
// //
int64 view = 15; int64 view = 15;
} }
@ -208,7 +208,7 @@ message CardLive {
// //
int32 ststus = 5; int32 ststus = 5;
// //
bool displayAttention = 6; bool display_attention = 6;
// //
Relation relation = 7; Relation relation = 7;
} }
@ -248,7 +248,7 @@ message Cursor {
// - // -
message DeleteReq { message DeleteReq {
// //
HisInfo hisInfo = 1; HisInfo his_info = 1;
} }
// //
@ -273,22 +273,14 @@ message DeviceType {
// //
enum DT { enum DT {
// Unknown = 0; //
Un known = 0; Phone = 1; //
// Pad = 2; // ipad端
Phone = 1; PC = 3; // web端
// ipad端 TV = 4; // TV端
Pad = 2; Car = 5; //
// web端 Iot = 6; //
PC = 3; AndPad = 7; // apad端
// TV端
TV = 4;
//
Car = 5;
//
Iot = 6;
// apad端
AndPad = 7;
} }
// //
@ -297,9 +289,9 @@ message Relation {
// 1: 2: 3: 4: // 1: 2: 3: 4:
int32 status = 1; int32 status = 1;
// UP主 // UP主
int32 isFollow = 2; int32 is_follow = 2;
// UP主关注用户 // UP主关注用户
int32 isFollowed = 3; int32 is_followed = 3;
} }
// - // -
@ -358,7 +350,7 @@ message LatestHistoryReq {
// archive: live: article: goods: show: // archive: live: article: goods: show:
string business = 1; string business = 1;
// //
PlayerPreloadParams playerPreload = 2; PlayerPreloadParams player_preload = 2;
} }
// - // -

View File

@ -17,7 +17,7 @@ message SuggestionResult3Req {
int32 highlight = 2; int32 highlight = 2;
// //
// 1: // 1:
int32 teenagersMode = 3; int32 teenagers_mode = 3;
} }
// - // -
@ -43,17 +43,17 @@ message ResultItem {
// //
string cover = 5; string cover = 5;
// //
double coverSize = 6; double cover_size = 6;
// sug词类型 // sug词类型
string sugType = 7; string sug_type = 7;
// //
int32 termType = 8; int32 term_type = 8;
// //
string goto = 9; string goto = 9;
// uri // uri
string uri = 10; string uri = 10;
// //
OfficialVerify officialVerify = 11; OfficialVerify official_verify = 11;
// //
string param = 12; string param = 12;
// up主mid // up主mid
@ -67,7 +67,7 @@ message ResultItem {
// 稿 // 稿
int64 ptime = 17; int64 ptime = 17;
// season类型名称 // season类型名称
string seasonTypeName = 18; string season_type_name = 18;
// //
string area = 19; string area = 19;
// //
@ -83,9 +83,9 @@ message ResultItem {
// //
string styles = 25; string styles = 25;
// //
int64 moduleId = 26; int64 module_id = 26;
// //
string liveLink = 27; string live_link = 27;
} }
// //
@ -102,18 +102,18 @@ message ReasonStyle {
// //
string text = 1; string text = 1;
// //
string textColor = 2; string text_color = 2;
// //
string textColorNight = 3; string text_color_night = 3;
// //
string bgColor = 4; string bg_color = 4;
// //
string bgColorNight = 5; string bg_color_night = 5;
// //
string borderColor = 6; string border_color = 6;
// //
string borderColorNight = 7; string border_color_night = 7;
// //
// 1: 2: // 1: 2:
int32 bgStyle = 8; int32 bg_style = 8;
} }

View File

@ -51,23 +51,23 @@ message PlayURLReply {
// (ms) // (ms)
uint64 timelength = 3; uint64 timelength = 3;
// id // id
uint32 videoCodecid = 4; uint32 video_codecid = 4;
// //
uint32 fnver = 5; uint32 fnver = 5;
// //
uint32 fnval = 6; uint32 fnval = 6;
// //
bool videoProject = 7; bool video_project = 7;
// //
repeated ResponseUrl durl = 8; repeated ResponseUrl durl = 8;
// dash数据 // dash数据
ResponseDash dash = 9; ResponseDash dash = 9;
// //
int32 noRexcode = 10; int32 no_rexcode = 10;
// //
UpgradeLimit upgradeLimit = 11; UpgradeLimit upgrade_limit = 11;
// //
repeated FormatDescription supportFormats = 12; repeated FormatDescription support_formats = 12;
// //
VideoType type = 13; VideoType type = 13;
} }
@ -83,7 +83,7 @@ message ResponseUrl {
// 线 // 线
string url = 4; string url = 4;
// //
repeated string backupUrl = 5; repeated string backup_url = 5;
// md5 // md5
string md5 = 6; string md5 = 6;
} }
@ -103,7 +103,7 @@ message DashItem {
// 线 // 线
string baseUrl = 2; string baseUrl = 2;
// //
repeated string backupUrl=3; repeated string backup_url = 3;
// //
uint32 bandwidth = 4; uint32 bandwidth = 4;
// id // id
@ -112,6 +112,8 @@ message DashItem {
string md5 = 6; string md5 = 6;
// //
uint64 size = 7; uint64 size = 7;
//
string frame_rate = 8;
} }
// //
@ -143,14 +145,14 @@ message FormatDescription {
// //
string description = 3; string description = 3;
// //
string newDescription = 4; string new_description = 4;
// //
string displayDesc = 5; string display_desc = 5;
// //
string superscript = 6; string superscript = 6;
} }
// // -
message ProjectReq { message ProjectReq {
// 稿avid // 稿avid
int64 aid = 1; int64 aid = 1;
@ -167,13 +169,13 @@ message ProjectReq {
uint32 download = 6; uint32 download = 6;
// url强制是用域名 // url强制是用域名
// 0:使ip 1:使http 2:使https // 0:使ip 1:使http 2:使https
int32 forceHost = 7; int32 force_host = 7;
// 4K // 4K
bool fourk = 8; bool fourk = 8;
// spm // spm
string spmid = 9; string spmid = 9;
// spm // spm
string fromSpmid = 10; string from_spmid = 10;
// 使 // 使
// 0: 1: 2: 3:airplay // 0: 1: 2: 3:airplay
int32 protocol = 11; int32 protocol = 11;
@ -204,51 +206,46 @@ message PlayViewReq {
uint32 download = 6; uint32 download = 6;
// url强制是用域名 // url强制是用域名
// 0:使ip 1:使http 2:使https // 0:使ip 1:使http 2:使https
int32 forceHost = 7; int32 force_host = 7;
// 4K // 4K
bool fourk = 8; bool fourk = 8;
// spm // spm
string spmid = 9; string spmid = 9;
// spm // spm
string fromSpmid = 10; string from_spmid = 10;
// //
int32 teenagersMode = 11; int32 teenagers_mode = 11;
// //
CodeType preferCodecType = 12; CodeType prefer_codec_type = 12;
// //
Business business = 13; Business business = 13;
} }
// //
enum Business { enum Business {
// UNKNOWN = 0; //
UNKNOWN = 0; STORY = 1; // story业务
// story业务
STORY = 1;
} }
// //
enum CodeType { enum CodeType {
// NOCODE = 0; //
NOCODE = 0; CODE264 = 1; // H.264
// H.264 CODE265 = 2; // H.265
CODE264 = 1;
// H.265
CODE265 = 2;
} }
// - // -
message PlayViewReply { message PlayViewReply {
// //
VideoInfo info = 1; VideoInfo video_info = 1;
// //
PlayAbilityConf PlayConf = 2; PlayAbilityConf play_conf = 2;
// //
UpgradeLimit upgradeLimit = 3; UpgradeLimit upgrade_limit = 3;
// Chronos灰度管理 // Chronos灰度管理
Chronos chronos = 4; Chronos chronos = 4;
// 稿 // 稿
PlayArcConf playArc = 5; PlayArcConf play_arc = 5;
// //
Event event = 6; Event event = 6;
} }
@ -279,189 +276,104 @@ message PlayConfReq {}
// - // -
message PlayConfReply { message PlayConfReply {
// //
PlayAbilityConf playConf = 1; PlayAbilityConf play_conf = 1;
} }
// //
message PlayAbilityConf { message PlayAbilityConf {
// CloudConf background_play_conf = 1; //
CloudConf backgroundPlayDisable = 1; CloudConf flip_conf = 2; //
// CloudConf cast_conf = 3; //
CloudConf flipDisable = 2; CloudConf feedback_conf = 4; //
// CloudConf subtitle_conf = 5; //
CloudConf castDisable = 3; CloudConf playback_rate_conf = 6; //
// CloudConf time_up_conf = 7; //
CloudConf feedbackDisable = 4; CloudConf playback_mode_conf = 8; //
// CloudConf scale_mode_conf = 9; //
CloudConf subtitleDisable = 5; CloudConf like_conf = 10; //
// CloudConf dislike_conf = 11; //
CloudConf playbackRateDisable = 6; CloudConf coin_conf = 12; //
// CloudConf elec_conf = 13; //
CloudConf timeUpDisable = 7; CloudConf share_conf = 14; //
// CloudConf screen_shot_conf = 15; //
CloudConf playbackModeDisable = 8; CloudConf lock_screen_conf = 16; //
// CloudConf recommend_conf = 17; //
CloudConf scaleModeDisable = 9; CloudConf playback_speed_conf = 18; //
// CloudConf definition_conf = 19; //
CloudConf likeDisable = 10; CloudConf selections_conf = 20; //
// CloudConf next_conf = 21; //
CloudConf dislikeDisable = 11; CloudConf edit_dm_conf = 22; //
// CloudConf small_window_conf = 23; //
CloudConf coinDisable = 12; CloudConf shake_conf = 24; //
// CloudConf outer_dm_conf = 25; //
CloudConf elecDisable = 13; CloudConf innerDmDisable = 26; //
// CloudConf inner_dm_conf = 27; //
CloudConf shareDisable = 14; CloudConf dolby_conf = 28; //
//
CloudConf screenShotDisable = 15;
//
CloudConf lockScreenDisable = 16;
//
CloudConf recommendDisable = 17;
//
CloudConf playbackSpeedDisable = 18;
//
CloudConf definitionDisable = 19;
//
CloudConf selectionsDisable = 20;
//
CloudConf nextDisable = 21;
//
CloudConf editDmDisable = 22;
//
CloudConf smallWindowDisable = 23;
//
CloudConf shakeDisable = 24;
//
CloudConf outerDmDisable = 25;
//
CloudConf innerDmDisable = 26;
//
CloudConf freyaEnterDisable = 27;
//
CloudConf dolbyDisable = 28;
} }
// 稿 // 稿
message PlayArcConf { message PlayArcConf {
// ArcConf background_play_conf = 1; //
ArcConf backgroundPlayConf = 1; ArcConf flip_conf = 2; //
// ArcConf cast_conf = 3; //
ArcConf flipConf = 2; ArcConf feedback_conf = 4; //
// ArcConf subtitle_conf = 5; //
ArcConf castConf = 3; ArcConf playback_rate_conf = 6; //
// ArcConf time_up_conf = 7; //
ArcConf feedbackConf = 4; ArcConf playback_mode_conf = 8; //
// ArcConf scale_mode_conf = 9; //
ArcConf subtitleConf = 5; ArcConf like_conf = 10; //
// ArcConf dislike_conf = 11; //
ArcConf playbackRateConf = 6; ArcConf coin_conf = 12; //
// ArcConf elec_conf = 13; //
ArcConf timeUpConf = 7; ArcConf share_conf = 14; //
// ArcConf screen_shot_conf = 15; //
ArcConf playbackModeConf = 8; ArcConf lock_screen_conf = 16; //
// ArcConf recommend_conf = 17; //
ArcConf scaleModeConf = 9; ArcConf playback_speed_conf = 18; //
// ArcConf definition_conf = 19; //
ArcConf likeConf = 10; ArcConf selections_conf = 20; //
// ArcConf next_conf = 21; //
ArcConf dislikeConf = 11; ArcConf edit_dm_conf = 22; //
// ArcConf small_window_conf = 23; //
ArcConf coinConf = 12; ArcConf shake_conf = 24; //
// ArcConf outer_dm_conf = 25; //
ArcConf elecConf = 13; ArcConf inner_dm_conf = 26; //
// ArcConf panorama_conf = 27; //
ArcConf shareConf = 14; ArcConf dolby_conf = 28; //
//
ArcConf screenShotConf = 15;
//
ArcConf lockScreenConf = 16;
//
ArcConf recommendConf = 17;
//
ArcConf playbackSpeedConf = 18;
//
ArcConf definitionConf = 19;
//
ArcConf selectionsConf = 20;
//
ArcConf nextConf = 21;
//
ArcConf editDmConf = 22;
//
ArcConf smallWindowConf = 23;
//
ArcConf shakeConf = 24;
//
ArcConf outerDmConf = 25;
//
ArcConf innerDmConf = 26;
//
ArcConf freyaEnterConf = 27;
//
ArcConf dolbyConf = 28;
} }
// //
enum ConfType { enum ConfType {
// NoType = 0; //
NoType = 0; FLIPCONF = 1; //
// CASTCONF = 2; //
FLIPCONF = 1; FEEDBACK = 3; //
// SUBTITLE = 4; //
CASTCONF = 2; PLAYBACKRATE = 5; //
// TIMEUP = 6; //
FEEDBACK = 3; PLAYBACKMODE = 7; //
// SCALEMODE = 8; //
SUBTITLE = 4; BACKGROUNDPLAY = 9; //
// LIKE = 10; //
PLAYBACKRATE = 5; DISLIKE = 11; //
// COIN = 12; //
TIMEUP = 6; ELEC = 13; //
// SHARE = 14; //
PLAYBACKMODE = 7; SCREENSHOT = 15; //
// LOCKSCREEN = 16; //
SCALEMODE = 8; RECOMMEND = 17; //
// PLAYBACKSPEED = 18; //
BACKGROUNDPLAY = 9; DEFINITION = 19; //
// SELECTIONS = 20; //
LIKE = 10; NEXT = 21; //
// EDITDM = 22; //
DISLIKE = 11; SMALLWINDOW = 23; //
// SHAKE = 24; //
COIN = 12; OUTERDM = 25; //
// INNERDM = 26; //
ELEC = 13; PANORAMA = 27; //
// DOLBY = 28; //
SHARE = 14;
//
SCREENSHOT = 15;
//
LOCKSCREEN = 16;
//
RECOMMEND = 17;
//
PLAYBACKSPEED = 18;
//
DEFINITION = 19;
//
SELECTIONS = 20;
//
NEXT = 21;
//
EDITDM = 22;
//
SMALLWINDOW = 23;
//
SHAKE = 24;
//
OUTERDM = 25;
//
INNERDM = 26;
//
PANORAMA = 27;
//
DOLBY = 28;
} }
// //
@ -469,9 +381,9 @@ message CloudConf {
// //
bool show = 1; bool show = 1;
// //
ConfType confType = 2; ConfType conf_type = 2;
// //
FieldValue fieldValue = 3; FieldValue field_value = 3;
} }
// //
@ -486,7 +398,7 @@ message FieldValue {
// //
message ArcConf { message ArcConf {
// //
bool isSupport = 1; bool is_support = 1;
} }
// url信息 // url信息
@ -498,11 +410,11 @@ message VideoInfo {
// //
uint64 timelength = 3; uint64 timelength = 3;
// id // id
uint32 videoCodecid=4; uint32 video_codecid = 4;
// //
repeated Stream streamList=5; repeated Stream stream_list = 5;
// //
repeated DashItem audio=6; repeated DashItem dash_audio = 6;
// //
DolbyItem dolby = 7; DolbyItem dolby = 7;
} }
@ -510,12 +422,9 @@ message VideoInfo {
// //
message DolbyItem { message DolbyItem {
enum Type { enum Type {
// NONE NONE = 0; // NONE
NONE = 0; COMMON = 1; //
// ATMOS = 2; //
COMMON = 1;
//
ATMOS = 2;
} }
// //
Type type = 1; Type type = 1;
@ -526,13 +435,13 @@ message DolbyItem {
// //
message Stream { message Stream {
// //
StreamInfo info = 1; StreamInfo stream_info = 1;
// //
oneof contentCase { oneof content {
// dash流 // dash流
DashVideo dashvideo = 2; DashVideo dash_video = 2;
// //
SegmentVideo segmentvideo = 3; SegmentVideo segment_video = 3;
} }
} }
@ -544,10 +453,8 @@ message SegmentVideo {
// //
enum PlayErr { enum PlayErr {
// NoErr = 0; //
NoErr_VALUE = 0; WithMultiDeviceLoginErr = 1; //
//
WithMultiDeviceLoginErr_VALUE = 1;
} }
// //
@ -559,23 +466,23 @@ message StreamInfo {
// //
string description = 3; string description = 3;
// //
uint32 errCode = 4; uint32 err_code = 4;
// //
StreamLimit limit = 5; StreamLimit limit = 5;
// vip // vip
bool needVip = 6; bool need_vip = 6;
// //
bool needLogin = 7; bool need_login = 7;
// //
bool intact = 8; bool intact = 8;
// //
bool noRexcode = 9; bool no_rexcode = 9;
// //
int64 attribute = 10; int64 attribute = 10;
// //
string newDescription = 11; string new_description = 11;
// //
string displayDesc = 12; string display_desc = 12;
// //
string superscript = 13; string superscript = 13;
} }
@ -593,7 +500,7 @@ message StreamLimit {
// - // -
message PlayConfEditReq { message PlayConfEditReq {
// //
repeated PlayConfState playConf = 1; repeated PlayConfState play_conf = 1;
} }
// - // -
@ -602,18 +509,19 @@ message PlayConfEditReply {}
// //
message PlayConfState { message PlayConfState {
// //
ConfType confType = 1; ConfType conf_type = 1;
// //
bool show = 2; bool show = 2;
// //
FieldValue fieldValue = 3; FieldValue field_value = 3;
} }
// dash视频流 // dash视频流
message DashVideo { message DashVideo {
// 线 // 线
string baseUrl = 1; string base_url = 1;
// //
repeated string backupUrl = 2; repeated string backup_url = 2;
// //
uint32 bandwidth = 3; uint32 bandwidth = 3;
// id // id
@ -625,17 +533,13 @@ message DashVideo {
// id // id
uint32 audioId = 7; uint32 audioId = 7;
// //
bool noRexcode = 8; bool no_rexcode = 8;
} }
// //
enum VideoType { enum VideoType {
// Unknown_VALUE = 0; //
Unknown_VALUE = 0; FLV_VALUE = 1; // flv格式
// flv格式 DASH_VALUE = 2; // dash格式
FLV_VALUE = 1; MP4_VALUE = 3; // mp4格式
// dash格式
DASH_VALUE = 2;
// mp4格式
MP4_VALUE = 3;
} }

View File

@ -20,13 +20,10 @@ enum EnvType {
// //
enum LevelType { enum LevelType {
Undefined = 0; Undefined = 0; //
// High = 1; //
High = 1; Middle = 2; //
// Low = 3; // 使
Middle = 2;
// 使
Low = 3;
} }
// //
@ -65,18 +62,14 @@ message VersionReq {
// //
enum IncrementType { enum IncrementType {
// Total = 0; //
Total = 0; Incremental = 1; //
//
Incremental = 1;
} }
// //
enum CompressType { enum CompressType {
// unzip Unzip = 0; // unzip
Unzip = 0; Original = 1; //
//
Original = 1;
} }
message ListReply { message ListReply {

View File

@ -17,7 +17,7 @@ message PopularResultReq {
int64 idx = 1; int64 idx = 1;
// //
// 1: 2: // 1: 2:
int32 loginEvent = 2; int32 login_event = 2;
// () // ()
int32 qn = 3; int32 qn = 3;
// () // ()
@ -25,26 +25,26 @@ message PopularResultReq {
// () // ()
int32 fnval = 5; int32 fnval = 5;
// 使() // 使()
int32 forceHost = 6; int32 force_host = 6;
// 4K() // 4K()
int32 fourk = 7; int32 fourk = 7;
// spm // spm
string spmid = 8; string spmid = 8;
// param // param
string lastParam = 9; string last_param = 9;
// ver // ver
string ver = 10; string ver = 10;
// ID // ID
int64 entranceId = 11; int64 entrance_id = 11;
// id集合 // id集合
string locationIds = 12; string location_ids = 12;
// 0:tag页 1: // 0:tag页 1:
int32 sourceId = 13; int32 source_id = 13;
// //
// 0: 1: // 0: 1:
int32 flush = 14; int32 flush = 14;
// //
bilibili.app.archive.middleware.v1.PlayerArgs playerArgs = 15; bilibili.app.archive.middleware.v1.PlayerArgs player_args = 15;
} }
// - // -
@ -60,19 +60,19 @@ message PopularReply {
// //
message Config { message Config {
// //
string itemTitle = 1; string item_title = 1;
// //
string bottomText = 2; string bottom_text = 2;
// url // url
string bottomTextCover = 3; string bottom_text_cover = 3;
// url // url
string bottomTextUrl = 4; string bottom_text_url = 4;
// //
repeated EntranceShow topItems = 5; repeated EntranceShow top_items = 5;
// url // url
string headImage = 6; string head_image = 6;
// //
repeated EntranceShow pageItems = 7; repeated EntranceShow page_items = 7;
// //
int32 hit = 8; int32 hit = 8;
} }
@ -84,23 +84,23 @@ message EntranceShow {
// //
string title = 2; string title = 2;
// id // id
string moduleId = 3; string module_id = 3;
// uri // uri
string uri = 4; string uri = 4;
// //
Bubble bubble = 5; Bubble bubble = 5;
// id // id
int64 entranceId = 6; int64 entrance_id = 6;
// url // url
string topPhoto = 7; string top_photo = 7;
// //
int32 entranceType = 8; int32 entrance_type = 8;
} }
// //
message Bubble { message Bubble {
// //
string bubbleContent = 1; string bubble_content = 1;
// //
int32 version = 2; int32 version = 2;
// //

View File

@ -52,7 +52,7 @@ message Item {
// uri // uri
string uri = 4; string uri = 4;
// url // url
string redirectUrl = 5; string redirect_url = 5;
// //
// av:稿 // av:稿
string goto = 6; string goto = 6;
@ -71,7 +71,7 @@ message Item {
// //
int32 favourite = 13; int32 favourite = 13;
// //
int64 pubDate = 14; int64 pub_date = 14;
// tid // tid
int32 rid = 15; int32 rid = 15;
// //
@ -92,7 +92,7 @@ message Item {
// UP主粉丝数 // UP主粉丝数
int64 follower = 23; int64 follower = 23;
// UP主认证信息 // UP主认证信息
OfficialVerify officialVerify = 24; OfficialVerify official_verify = 24;
// UP收起子项列表 // UP收起子项列表
repeated Item children = 25; repeated Item children = 25;
// //
@ -114,7 +114,7 @@ message Relation {
// 1: 2: 3: 4: // 1: 2: 3: 4:
int32 status = 1; int32 status = 1;
// //
int32 isFollow = 2; int32 is_follow = 2;
// //
int32 isFollowed = 3; int32 is_followed = 3;
} }

View File

@ -23,9 +23,9 @@ message RegionReply {
// //
message RegionConfig { message RegionConfig {
// //
string scenesName = 1; string scenes_name = 1;
// //
string scenesType = 2; string scenes_type = 2;
} }
// //
@ -47,7 +47,7 @@ message RegionInfo {
// //
int32 type = 8; int32 type = 8;
// //
int32 isBangumi = 9; int32 is_bangumi = 9;
// //
repeated RegionInfo children = 10; repeated RegionInfo children = 10;
// //

View File

@ -27,7 +27,7 @@ message ArchiveReply {
// //
int32 count = 2; int32 count = 2;
// //
EpisodicButton episodicButton = 3; EpisodicButton episodic_button = 3;
// //
repeated OrderConfig order = 4; repeated OrderConfig order = 4;
} }
@ -37,19 +37,19 @@ message Badge {
// //
string text = 1; string text = 1;
// //
string textColor = 2; string text_color = 2;
// //
string textColorNight = 3; string text_color_night = 3;
// //
string bgColor = 4; string bg_color = 4;
// //
string bgColorNight = 5; string bg_color_night = 5;
// //
string borderColor = 6; string border_color = 6;
// //
string borderColorNight = 7; string border_color_night = 7;
// //
int32 bgStyle = 8; int32 bg_style = 8;
} }
// //
@ -75,19 +75,19 @@ message BiliSpaceVideo {
// //
bool state = 10; bool state = 10;
// //
bool isPopular = 11; bool is_popular = 11;
// //
repeated Badge badges = 12; repeated Badge badges = 12;
// //
string coverRight = 13; string cover_right = 13;
// //
string bvid = 14; string bvid = 14;
// //
bool isSteins = 15; bool is_steins = 15;
// //
bool isUgcpay = 16; bool is_ugcpay = 16;
// //
bool isCooperation = 17; bool is_cooperation = 17;
} }
// //

View File

@ -19,7 +19,7 @@ message SplashReq {
// //
string birth = 3; string birth = 3;
// //
string adExtra = 4; string ad_extra = 4;
// //
string network = 5; string network = 5;
} }
@ -27,11 +27,11 @@ message SplashReq {
//- //-
message SplashReply { message SplashReply {
// //
int32 maxTime = 1; int32 max_time = 1;
// //
int32 minInterval = 2; int32 min_interval = 2;
// //
int32 pullInterval = 3; int32 pull_interval = 3;
// //
repeated SplashItem list = 4; repeated SplashItem list = 4;
// //
@ -55,77 +55,77 @@ message SplashItem {
// //
int32 type = 2; int32 type = 2;
// //
int32 cardType = 3; int32 card_type = 3;
// //
int32 duration = 4; int32 duration = 4;
// //
int64 beginTime = 5; int64 begin_time = 5;
// //
int64 endTime = 6; int64 end_time = 6;
// //
string thumb = 7; string thumb = 7;
// //
string hash = 8; string hash = 8;
// //
string logoUrl = 9; string logo_url = 9;
// //
string logoHash = 10; string logo_hash = 10;
// //
string videoUrl = 11; string video_url = 11;
// //
string videoHash = 12; string video_hash = 12;
// //
int32 videoWidth = 13; int32 video_width = 13;
// //
int32 videoHeight = 14; int32 video_height = 14;
// //
string schema = 15; string schema = 15;
// //
string schemaTitle = 16; string schema_title = 16;
// //
string schemaPackageName = 17; string schema_package_name = 17;
// //
repeated string schemaCallupWhiteList = 18; repeated string schema_callup_whiteList = 18;
// //
int32 skip = 19; int32 skip = 19;
// //
string uri = 20; string uri = 20;
// //
string uriTitle = 21; string uri_title = 21;
// //
int32 source = 22; int32 source = 22;
// //
int32 cmMark = 23; int32 cm_mark = 23;
// //
string adCb = 24; string ad_cb = 24;
// //
int64 resourceId = 25; int64 resource_id = 25;
// //
string requestId = 26; string request_id = 26;
// //
string clientIp = 27; string client_ip = 27;
// //
bool isAd = 28; bool is_ad = 28;
// //
bool isAdLoc = 29; bool is_ad_loc = 29;
// //
google.protobuf.Any extra = 30; google.protobuf.Any extra = 30;
// //
int64 cardIndex = 31; int64 card_index = 31;
// //
int64 serverType = 32; int64 server_type = 32;
// //
int64 index = 33; int64 index = 33;
// //
string clickUrl = 34; string click_url = 34;
// //
string showUrl = 35; string show_url = 35;
// //
int32 timeTarget = 36; int32 time_target = 36;
// //
int32 encryption = 37; int32 encryption = 37;
// //
bool enablePreDownload = 38; bool enable_pre_download = 38;
// //
bool enableBackgroundDownload = 39; bool enable_background_download = 39;
} }

File diff suppressed because it is too large Load Diff

View File

@ -88,56 +88,31 @@ message PlayViewReply {
// //
message PlayAbilityConf { message PlayAbilityConf {
// bool background_play_disable = 1; //
bool background_play_disable = 1; bool flip_disable = 2; //
// bool cast_disable = 3; //
bool flip_disable = 2; bool feedback_disable = 4; //
// bool subtitle_disable = 5; //
bool cast_disable = 3; bool playback_rate_disable = 6; //
// bool time_up_disable = 7; //
bool feedback_disable = 4; bool playback_mode_disable = 8; //
// bool scale_mode_disable = 9; //
bool subtitle_disable = 5; bool like_disable = 10; //
// bool dislike_disable = 11; //
bool playback_rate_disable = 6; bool coin_disable = 12; //
// bool elec_disable = 13; //
bool time_up_disable = 7; bool share_disable = 14; //
// bool screen_shot_disable = 15; //
bool playback_mode_disable = 8; bool lock_screen_disable = 16; //
// bool recommend_disable = 17; //
bool scale_mode_disable = 9; bool playback_speed_disable = 18; //
// bool definition_disable = 19; //
bool like_disable = 10; bool selections_disable = 20; //
// bool next_disable = 21; //
bool dislike_disable = 11; bool edit_dm_disable = 22; //
// bool outer_dm_disable = 25; //
bool coin_disable = 12; bool inner_dm_disable = 26; //
// bool small_window_disable = 27; //
bool elec_disable = 13;
//
bool share_disable = 14;
//
bool screen_shot_disable = 15;
//
bool lock_screen_disable = 16;
//
bool recommend_disable = 17;
//
bool playback_speed_disable = 18;
//
bool definition_disable = 19;
//
bool selections_disable = 20;
//
bool next_disable = 21;
//
bool edit_dm_disable = 22;
//
bool outer_dm_disable = 25;
//
bool inner_dm_disable = 26;
//
bool small_window_disable = 27;
} }
// - // -

View File

@ -70,9 +70,9 @@ message DmSegMobileReq{
// 1: 2: // 1: 2:
int32 type = 3; int32 type = 3;
// (6min) // (6min)
int64 segmentIndex = 4; int64 segment_index = 4;
// //
int32 teenagersMode = 5; int32 teenagers_mode = 5;
} }
// - // -
@ -83,7 +83,7 @@ message DmSegMobileReply{
// 0: 1: // 0: 1:
int32 state = 2; int32 state = 2;
// ai评分值 // ai评分值
DanmakuAIFlag aiFlag = 3; DanmakuAIFlag ai_flag = 3;
} }
// - // -
@ -98,7 +98,7 @@ message DmViewReq {
// spm // spm
string spmid = 4; string spmid = 4;
// //
int32 isHardBoot = 5; int32 is_hard_boot = 5;
} }
// - // -
@ -111,23 +111,23 @@ message DmViewReply{
// //
VideoSubtitle subtitle = 3; VideoSubtitle subtitle = 3;
// url(bfs) // url(bfs)
repeated string specialDms = 4; repeated string special_dms = 4;
// //
DanmakuFlagConfig aiFlag = 5; DanmakuFlagConfig ai_flag = 5;
// //
DanmuPlayerViewConfig playerConfig = 6; DanmuPlayerViewConfig player_config = 6;
// //
int32 sendBoxStyle = 7; int32 send_box_style = 7;
// //
bool allow = 8; bool allow = 8;
// check box // check box
string checkBox = 9; string check_box = 9;
// check box // check box
string checkBoxShowMsg = 10; string check_box_show_msg = 10;
// //
string textPlaceholder = 11; string text_placeholder = 11;
// //
string inputPlaceholder = 12; string input_placeholder = 12;
// cid维度屏蔽的正则规则 // cid维度屏蔽的正则规则
repeated string report_filter_content = 13; repeated string report_filter_content = 13;
} }
@ -203,7 +203,7 @@ message VideoMask {
// //
int64 time = 4; int64 time = 4;
// url // url
string maskUrl = 5; string mask_url = 5;
} }
// //
@ -218,46 +218,26 @@ message VideoSubtitle {
// web端用户弹幕配置 // web端用户弹幕配置
message DanmuWebPlayerConfig { message DanmuWebPlayerConfig {
// bool dm_switch = 1; //
bool dm_switch = 1; bool ai_switch = 2; //
// int32 ai_level = 3; //
bool ai_switch = 2 ; bool blocktop = 4; //
// bool blockscroll = 5; //
int32 ai_level = 3 ; bool blockbottom = 6; //
// bool blockcolor = 7; //
bool blocktop = 4 ; bool blockspecial = 8; //
// bool preventshade = 9; //
bool blockscroll = 5 ; bool dmask = 10; //
// float opacity = 11; //
bool blockbottom = 6 ; int32 dmarea = 12; //
// float speedplus = 13; //
bool blockcolor = 7 ; float fontsize = 14; //
// bool screensync = 15; //
bool blockspecial = 8 ; bool speedsync = 16; //
// string fontfamily = 17; //
bool preventshade = 9 ; bool bold = 18; // 使
// int32 fontborder = 19; //
bool dmask = 10 ; string draw_type = 20; //
//
float opacity = 11 ;
//
int32 dmarea = 12 ;
//
float speedplus = 13 ;
//
float fontsize = 14 ;
//
bool screensync = 15 ;
//
bool speedsync = 16 ;
//
string fontfamily = 17 ;
//
bool bold = 18 ;
//
int32 fontborder = 19 ;
//
string draw_type = 20 ;
} }
// //
@ -265,13 +245,13 @@ message SubtitleItem {
// id // id
int64 id = 1; int64 id = 1;
// id str // id str
string idStr = 2; string id_str = 2;
// //
string lan = 3; string lan = 3;
// //
string lanDoc = 4; string lan_doc = 4;
// url // url
string subtitleUrl = 5; string subtitle_url = 5;
// //
UserInfo author = 6; UserInfo author = 6;
} }
@ -335,42 +315,24 @@ enum DMAttrBit {
// - // -
message DmPlayerConfigReq { message DmPlayerConfigReq {
// int64 ts = 1; //
int64 ts = 1; PlayerDanmakuSwitch switch = 2; //
// PlayerDanmakuSwitchSave switch_save = 3; //
PlayerDanmakuSwitch switch = 2; PlayerDanmakuUseDefaultConfig use_default_config = 4; // 使
// PlayerDanmakuAiRecommendedSwitch ai_recommended_switch = 5; //
PlayerDanmakuSwitchSave switchSave = 3; PlayerDanmakuAiRecommendedLevel ai_recommended_level = 6; //
// 使 PlayerDanmakuBlocktop blocktop = 7; //
PlayerDanmakuUseDefaultConfig useDefaultConfig = 4; PlayerDanmakuBlockscroll blockscroll = 8; //
// PlayerDanmakuBlockbottom blockbottom = 9; //
PlayerDanmakuAiRecommendedSwitch aiRecommendedSwitch = 5; PlayerDanmakuBlockcolorful blockcolorful = 10; //
// PlayerDanmakuBlockrepeat blockrepeat = 11; //
PlayerDanmakuAiRecommendedLevel aiRecommendedLevel = 6; PlayerDanmakuBlockspecial blockspecial = 12; //
// PlayerDanmakuOpacity opacity = 13; //
PlayerDanmakuBlocktop blocktop = 7; PlayerDanmakuScalingfactor scalingfactor = 14; //
// PlayerDanmakuDomain domain = 15; //
PlayerDanmakuBlockscroll blockscroll = 8; PlayerDanmakuSpeed speed = 16; //
// PlayerDanmakuEnableblocklist enableblocklist = 17; //
PlayerDanmakuBlockbottom blockbottom = 9; InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch = 18; //
//
PlayerDanmakuBlockcolorful blockcolorful = 10;
//
PlayerDanmakuBlockrepeat blockrepeat = 11;
//
PlayerDanmakuBlockspecial blockspecial = 12;
//
PlayerDanmakuOpacity opacity = 13;
//
PlayerDanmakuScalingfactor scalingfactor = 14;
//
PlayerDanmakuDomain domain = 15;
//
PlayerDanmakuSpeed speed = 16;
//
PlayerDanmakuEnableblocklist enableblocklist = 17;
//
InlinePlayerDanmakuSwitch inlinePlayerDanmakuSwitch = 18;
} }
// - // -
@ -408,83 +370,51 @@ message DanmakuAIFlag {
// //
message DanmuPlayerViewConfig { message DanmuPlayerViewConfig {
// //
DanmuDefaultPlayerConfig danmukuDefaultPlayerConfig = 1; DanmuDefaultPlayerConfig danmuku_default_player_config = 1;
// //
DanmuPlayerConfig danmukuPlayerConfig = 2; DanmuPlayerConfig danmuku_player_config = 2;
// //
repeated DanmuPlayerDynamicConfig danmukuPlayerDynamicConfig = 3; repeated DanmuPlayerDynamicConfig danmuku_player_dynamic_config = 3;
} }
// //
message DanmuDefaultPlayerConfig { message DanmuDefaultPlayerConfig {
// 使 bool player_danmaku_use_default_config = 1; // 使
bool player_danmaku_use_default_config = 1; bool player_danmaku_ai_recommended_switch = 4; //
// int32 player_danmaku_ai_recommended_level = 5; //
bool player_danmaku_ai_recommended_switch = 4; bool player_danmaku_blocktop = 6; //
// bool player_danmaku_blockscroll = 7; //
int32 player_danmaku_ai_recommended_level = 5; bool player_danmaku_blockbottom = 8; //
// bool player_danmaku_blockcolorful = 9; //
bool player_danmaku_blocktop = 6; bool player_danmaku_blockrepeat = 10; //
// bool player_danmaku_blockspecial = 11; //
bool player_danmaku_blockscroll = 7; float player_danmaku_opacity = 12; //
// float player_danmaku_scalingfactor = 13; //
bool player_danmaku_blockbottom = 8; float player_danmaku_domain = 14; //
// int32 player_danmaku_speed = 15; //
bool player_danmaku_blockcolorful = 9; bool inline_player_danmaku_switch = 16; //
//
bool player_danmaku_blockrepeat = 10;
//
bool player_danmaku_blockspecial = 11;
//
float player_danmaku_opacity = 12;
//
float player_danmaku_scalingfactor = 13;
//
float player_danmaku_domain = 14;
//
int32 player_danmaku_speed = 15;
//
bool inline_player_danmaku_switch = 16;
} }
// //
message DanmuPlayerConfig { message DanmuPlayerConfig {
// bool player_danmaku_switch = 1; //
bool player_danmaku_switch = 1; bool player_danmaku_switch_save = 2; //
// bool player_danmaku_use_default_config = 3; // 使
bool player_danmaku_switch_save = 2; bool player_danmaku_ai_recommended_switch = 4; //
// 使 int32 player_danmaku_ai_recommended_level = 5; //
bool player_danmaku_use_default_config = 3; bool player_danmaku_blocktop = 6; //
// bool player_danmaku_blockscroll = 7; //
bool player_danmaku_ai_recommended_switch = 4; bool player_danmaku_blockbottom = 8; //
// bool player_danmaku_blockcolorful = 9; //
int32 player_danmaku_ai_recommended_level = 5; bool player_danmaku_blockrepeat = 10; //
// bool player_danmaku_blockspecial = 11; //
bool player_danmaku_blocktop = 6; float player_danmaku_opacity = 12; //
// float player_danmaku_scalingfactor = 13; //
bool player_danmaku_blockscroll = 7; float player_danmaku_domain = 14; //
// int32 player_danmaku_speed = 15; //
bool player_danmaku_blockbottom = 8; bool player_danmaku_enableblocklist = 16; //
// bool inline_player_danmaku_switch = 17; //
bool player_danmaku_blockcolorful = 9; int32 inline_player_danmaku_config = 18; //
//
bool player_danmaku_blockrepeat = 10;
//
bool player_danmaku_blockspecial = 11;
//
float player_danmaku_opacity = 12;
//
float player_danmaku_scalingfactor = 13;
//
float player_danmaku_domain = 14;
//
int32 player_danmaku_speed = 15;
//
bool player_danmaku_enableblocklist = 16;
//
bool inline_player_danmaku_switch = 17;
//
int32 inline_player_danmaku_config = 18;
} }
// //
@ -492,11 +422,11 @@ message DanmuPlayerDynamicConfig {
// //
int32 progress = 1; int32 progress = 1;
// //
float playerDanmakuDomain = 2; float player_danmaku_domain = 2;
} }
// //
message PlayerDanmakuSwitch {bool value = 1;} message PlayerDanmakuSwitch {bool value = 1;bool canIgnore = 2;}
// //
message PlayerDanmakuSwitchSave {bool value = 1;} message PlayerDanmakuSwitchSave {bool value = 1;}
// 使 // 使

View File

@ -0,0 +1,34 @@
syntax = "proto3";
package bilibili.im.interface.inner.interface.v1;
//
service InnerInterface {
//
rpc UpdateListInn(ReqOpBlacklist) returns(RspOpBlacklist);
}
//
message BanUser {
// mid
uint64 uid = 1;
//
int32 limit = 2;
//
int32 time = 3;
//
// 1:add 2:remove
int32 mode = 4;
}
//
message ReqOpBlacklist {
// /
repeated BanUser ban_users = 1;
}
//
message RspOpBlacklist {
//
repeated uint64 failed_users = 1;
}

View File

@ -1,440 +0,0 @@
syntax = "proto3";
import "bilibili/im/type.proto";
package bilibili.im.interfaces.v1;
//
service ImInterface {
//
rpc singleUnread (ReqSingleUnread) returns (RspSingleUnread);
//
rpc sessionDetail (ReqSessionDetail) returns (bilibili.im.type.SessionInfo);
//
rpc getSessions (ReqGetSessions) returns (RspSessions);
//
rpc shareList (ReqShareList) returns (RspShareList);
//
rpc sendMsg (ReqSendMsg) returns (RspSendMsg);
//
rpc removeSession (ReqRemoveSession) returns (DummyRsp);
//
rpc setTop (ReqSetTop) returns (DummyRsp);
//
rpc ackAssisMsg (ReqAckAssisMsg) returns (DummyRsp);
//
rpc ackSessions (ReqAckSessions) returns (RspSessions);
//
rpc batchRmSessions (ReqBatRmSess) returns (DummyRsp);
//
rpc batchSessDetail (ReqSessionDetails) returns (RspSessionDetails);
//
rpc getSpecificSessions (ReqGetSpecificSessions) returns (RspSessions);
//
rpc groupAssisMsg (ReqGroupAssisMsg) returns (RspSessionMsg);
//
rpc myGroupUnread (DummyReq) returns (RspMyGroupUnread);
//
rpc newSessions (ReqNewSessions) returns (RspSessions);
//
rpc specificSingleUnread (ReqSpecificSingleUnread) returns (RspSpecificSingleUnread);
//
rpc syncAck (ReqSyncAck) returns (RspSyncAck);
//
rpc syncFetchSessionMsgs (ReqSessionMsg) returns (RspSessionMsg);
//
rpc syncRelation (ReqRelationSync) returns (RspRelationSync);
//
rpc updateAck (ReqUpdateAck) returns (DummyRsp);
//
rpc updateUnflwRead (DummyReq) returns (DummyRsp);
}
//-
message ReqSendMsg {
//
bilibili.im.type.Msg msg = 1;
//
string cookie = 2;
//
string cookie2 = 3;
//
int32 errorCode = 4;
//
string devId = 5;
}
//-
message RspSendMsg {
//
uint64 msgKey = 1;
//
repeated EmotionInfo eInfos = 2;
//
string msgContent = 3;
}
//-
message DummyReq {
//
uint32 idl = 1;
}
//-
message DummyRsp {
}
//-
message ReqAckAssisMsg {
//
uint64 ackSeqno = 1;
}
//-
message ReqAckSessions {
//
uint64 beginTs = 1;
//
uint32 endTs = 2;
//
uint32 size = 3;
}
//-
message ReqBatRmSess {
}
//-
message ReqGetSessions {
//
uint64 beginTs = 1;
//
uint64 endTs = 2;
//
uint32 size = 3;
//
uint32 sessionType = 4;
//
uint32 unfollowFold = 5;
//
uint32 groupFold = 6;
//
uint32 sortRule = 7;
//
uint32 teenagerMode = 8;
//
uint32 lessonsMode = 9;
}
//-
message RspSessions {
//
repeated bilibili.im.type.SessionInfo sessionList = 1;
//
uint32 hasMore = 2;
//
bool antiDisturbCleaning = 3;
//
int32 isAddressListEmpty = 4;
}
//-
message ReqGetSpecificSessions {
//
repeated SimpleSession talkerSessions = 1;
}
//-
message ReqGroupAssisMsg {
//
uint64 clientSeqno = 1;
//
uint32 size = 2;
}
//-
message ReqNewSessions {
//
uint64 beginTs = 1;
//
uint32 size = 2;
//
uint32 teenagerMode = 3;
//
uint32 lessonsMode = 4;
}
//-
message ReqRelationSync {
//
uint64 clientRelationOplogSeqno = 1;
}
//-
message ReqRemoveSession {
//
uint64 talkerId = 1;
//
uint32 sessionType = 2;
}
//-
message ReqSessionDetail {
//
uint64 talkerId = 1;
//
uint32 sessionType = 2;
//
uint64 uid = 3;
}
//-
message ReqSessionDetails {
//
repeated ReqSessionDetail sessIds = 1;
}
//-
message ReqSessionMsg {
//
uint64 talkerId = 1;
//
int32 sessionType = 2;
//
uint64 endSeqno = 3;
//
uint64 beginSeqno = 4;
//
int32 size = 5;
//
int32 order = 6;
//
string devId = 7;
}
//-
message ReqSetTop {
//
uint64 talkerId = 1;
//
uint32 sessionType = 2;
//
uint32 opType = 3;
}
//-
message ReqShareList {
//
int32 size = 1;
}
//-
message RspShareList {
//
repeated ShareSessionInfo sessionList = 1;
//
int32 isAddressListEmpty = 2;
}
//-
message ReqSingleUnread {
//
uint32 unreadType = 1;
//
uint32 showUnfollowList = 2;
}
//-
message RspSingleUnread {
//
uint64 unfollowUnread = 1;
//
uint64 followUnread = 2;
//
uint32 unfollowPushMsg = 3;
}
//-
message ReqSpecificSingleUnread {
//
repeated SimpleSession talkerSessions = 1;
}
//-
message ReqSyncAck {
//
uint64 clientSeqno = 1;
}
//-
message ReqUpdateAck {
//
uint64 talkerId = 1;
//
uint32 sessionType = 2;
//
uint64 ackSeqno = 3;
}
//-
message RspMyGroupUnread {
//
uint32 unreadCount = 1;
}
//-
message RspRelationSync {
//
int32 full = 1;
//
repeated bilibili.im.type.RelationLog relationLogs = 2;
//
repeated bilibili.im.type.FriendRelation friendList = 3;
//
uint64 serverRelationOplogSeqno = 4;
//
repeated bilibili.im.type.GroupRelation groupList = 5;
}
//-
message RspSessionDetails {
//
repeated bilibili.im.type.SessionInfo sessInfos = 1;
}
//-
message RspSessionMsg {
//
repeated bilibili.im.type.Msg messages = 1;
//
int32 hasMore = 2;
//
uint64 minSeqno = 3;
//
uint64 maxSeqno = 4;
//
repeated EmotionInfo eInfos = 5;
}
//-
message RspSpecificSingleUnread {
//
map <uint64,uint64> talkerUnreadCnt = 1;
//
uint64 allUnreadCnt = 2;
}
//-
message RspSyncAck {
}
//
message ShareSessionInfo {
//
uint64 talkerId = 1;
//
string talkerUname = 2;
//
string talkerIcon = 3;
//
int32 officialType = 4;
}
//
message SimpleSession {
//
uint64 talkerId = 1;
//
uint32 sessionType = 2;
}
//
message EmotionInfo {
//
string text = 1;
//
string url = 2;
//
int32 size = 3;
//
string gifUrl = 4;
}

View File

@ -0,0 +1,391 @@
syntax = "proto3";
package bilibili.im.interfaces.v1;
import "bilibili/im/type/im.proto";
//
service ImInterface {
//
rpc SendMsg (ReqSendMsg) returns (RspSendMsg);
//
rpc SyncRelation (ReqRelationSync) returns (RspRelationSync);
//
rpc SyncAck (ReqSyncAck) returns (RspSyncAck);
//
rpc SyncFetchSessionMsgs (ReqSessionMsg) returns (RspSessionMsg);
//
rpc GetSessions (ReqGetSessions) returns (RspSessions);
//
rpc NewSessions (ReqNewSessions) returns (RspSessions);
//
rpc AckSessions (ReqAckSessions) returns (RspSessions);
//
rpc UpdateAck (ReqUpdateAck) returns (DummyRsp);
//
rpc SetTop (ReqSetTop) returns (DummyRsp);
//
rpc RemoveSession (ReqRemoveSession) returns (DummyRsp);
//
rpc SingleUnread (ReqSingleUnread) returns (RspSingleUnread);
//
rpc MyGroupUnread (DummyReq) returns (RspMyGroupUnread);
//
rpc UpdateUnflwRead (DummyReq) returns (DummyRsp);
//
rpc GroupAssisMsg (ReqGroupAssisMsg) returns (RspSessionMsg);
//
rpc AckAssisMsg (ReqAckAssisMsg) returns (DummyRsp);
//
rpc SessionDetail (ReqSessionDetail) returns (bilibili.im.type.SessionInfo);
//
rpc BatchSessDetail (ReqSessionDetails) returns (RspSessionDetails);
//
rpc BatchRmSessions (ReqBatRmSess) returns (DummyRsp);
//
rpc ShareList (ReqShareList) returns (RspShareList);
//
rpc SpecificSingleUnread (ReqSpecificSingleUnread) returns (RspSpecificSingleUnread);
//
rpc GetSpecificSessions (ReqGetSpecificSessions) returns (RspSessions);
}
// -
message ReqSendMsg {
//
bilibili.im.type.Msg msg = 1;
//
string cookie = 2;
//
string cookie2 = 3;
//
int32 error_code = 4;
//
string dev_id = 5;
}
//
message EmotionInfo {
//
string text = 1;
// url
string url = 2;
//
// 0: 1:min 2:max
int32 size = 3;
// gif url
string gif_url = 4;
}
// -
message RspSendMsg {
//
uint64 msg_key = 1;
//
repeated EmotionInfo e_infos = 2;
//
string msg_content = 3;
//
bilibili.im.type.KeyHitInfos key_hit_infos = 4;
}
// -
message ReqRelationSync {
// seqno
uint64 client_relation_oplog_seqno = 1;
}
// -
message RspRelationSync {
//
int32 full = 1;
//
repeated bilibili.im.type.RelationLog relation_logs = 2;
//
repeated bilibili.im.type.FriendRelation friend_list = 3;
// relation seqno
uint64 server_relation_oplog_seqno = 4;
//
repeated bilibili.im.type.GroupRelation group_list = 5;
}
// -
message ReqSyncAck {
//
uint64 client_seqno = 1;
}
// -
message RspSyncAck {}
// -
message ReqSessionMsg {
//
uint64 talker_id = 1;
//
int32 session_type = 2;
//
uint64 end_seqno = 3;
//
uint64 begin_seqno = 4;
//
int32 size = 5;
//
int32 order = 6;
//
string dev_id = 7;
}
// -
message RspSessionMsg {
//
repeated bilibili.im.type.Msg messages = 1;
//
int32 has_more = 2;
//
uint64 min_seqno = 3;
//
uint64 max_seqno = 4;
//
repeated EmotionInfo e_infos = 5;
}
// -
message ReqGetSessions {
//
uint64 begin_ts = 1;
//
uint64 end_ts = 2;
//
uint32 size = 3;
//
uint32 session_type = 4;
//
uint32 unfollow_fold = 5;
//
uint32 group_fold = 6;
//
uint32 sort_rule = 7;
//
uint32 teenager_mode = 8;
//
uint32 lessons_mode = 9;
}
// -
message ReqNewSessions {
//
uint64 begin_ts = 1;
//
uint32 size = 2;
//
uint32 teenager_mode = 3;
//
uint32 lessons_mode = 4;
}
// -
message ReqAckSessions {
//
uint64 begin_ts = 1;
//
uint32 end_ts = 2;
//
uint32 size = 3;
}
// -
message RspSessions {
//
repeated bilibili.im.type.SessionInfo session_list = 1;
//
uint32 has_more = 2;
//
bool anti_disturb_cleaning = 3;
// session_list为空时10
int32 is_address_list_empty = 4;
}
// -
message ReqUpdateAck {
// uidid或者为群id
uint64 talker_id = 1;
//
uint32 session_type = 2;
// seqno
uint64 ack_seqno = 3;
}
// -
message ReqSetTop {
//
uint64 talker_id = 1;
//
uint32 session_type = 2;
//
// 0: 1:
uint32 op_type = 3;
}
// -
message ReqRemoveSession {
//
uint64 talker_id = 1;
//
uint32 session_type = 2;
}
//
message DummyRsp {
reserved 1;
}
//
enum SESSION_TYPE { //
UNKNOWN = 0; //
UN_FOLD_SESSION = 1; //
UN_FOLLOW_SINGLE_SESSION = 2; //
MY_GROUP_SESSION = 3; //
ALL_SESSION = 4; //
}
//
enum ENUM_FOLD {
FOLD_NO = 0; //
FOLD_YES = 1; //
FOLD_UNKNOWN = 2; //
}
//
enum ENUM_UNREAD_TYPE{
UNREAD_TYPE_ALL = 0; //
UNREAD_TYPE_FOLLOW = 1; //
UNREAD_TYPE_UNFOLLOW = 2; //
}
// -
message ReqSingleUnread {
//
uint32 unread_type = 1;
//
uint32 show_unfollow_list = 2;
}
// -
message RspSingleUnread {
//
uint64 unfollow_unread = 1;
//
uint64 follow_unread = 2;
//
uint32 unfollow_push_msg = 3;
}
//
message SimpleSession {
// uidid或者为群id
uint64 talker_id = 1;
//
uint32 session_type = 2;
}
// -
message ReqSpecificSingleUnread {
//
repeated SimpleSession talker_sessions = 1;
}
// -
message RspSpecificSingleUnread {
// key -> uid, value ->
map <uint64,uint64> talkerUnreadCnt = 1;
//
uint64 allUnreadCnt = 2;
}
// -
message ReqGetSpecificSessions {
//
repeated SimpleSession talker_sessions = 1;
}
//
message DummyReq {
//
uint32 idl = 1;
}
// -
message RspMyGroupUnread {
//
uint32 unread_count = 1;
}
// -
message ReqGroupAssisMsg {
//
uint64 client_seqno = 1;
//
uint32 size = 2;
}
// -
message ReqAckAssisMsg {
//
uint64 ack_seqno = 1;
}
// -
message ReqSessionDetail {
//
uint64 talker_id = 1;
//
uint32 session_type = 2;
//
uint64 uid = 3;
}
// -
message ReqSessionDetails {
//
repeated ReqSessionDetail sess_ids = 1;
}
// -
message RspSessionDetails {
//
repeated bilibili.im.type.SessionInfo sess_infos = 1;
}
// -
message ReqBatRmSess {}
// -
message ReqShareList {
// 20
int32 size = 1;
}
//
message ShareSessionInfo {
//
uint64 talker_id = 1;
//
string talker_uname = 2;
//
string talker_icon = 3;
//
// -1: 0: 1:
int32 official_type = 4;
}
// -
message RspShareList {
//
repeated ShareSessionInfo session_list = 1;
//
int32 IsAddressListEmpty = 2;
}

View File

@ -1,244 +0,0 @@
syntax = "proto3";
package bilibili.im.type;
//
enum MsgType {
//
EN_INVALID_MSG_TYPE = 0; //~
EN_MSG_TYPE_TEXT = 1; //
EN_MSG_TYPE_PIC = 2; //
EN_MSG_TYPE_AUDIO = 3; //
EN_MSG_TYPE_SHARE = 4; //
EN_MSG_TYPE_DRAW_BACK = 5; //
EN_MSG_TYPE_CUSTOM_FACE = 6; //
EN_MSG_TYPE_SHARE_V2 = 7; //v2消息
EN_MSG_TYPE_SYS_CANCEL = 8; //
EN_MSG_TYPE_MINI_PROGRAM = 9; //
//
EN_MSG_TYPE_NOTIFY_MSG = 10; //
EN_MSG_TYPE_VIDEO_CARD = 11; //
EN_MSG_TYPE_ARTICLE_CARD = 12; //
EN_MSG_TYPE_PICTURE_CARD = 13; //
EN_MSG_TYPE_COMMON_SHARE_CARD = 14; //
EN_MSG_TYPE_BIZ_MSG_TYPE = 50; //
//
EN_MSG_TYPE_GROUP_MEMBER_CHANGED = 101; //
EN_MSG_TYPE_GROUP_STATUS_CHANGED = 102; //
EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED = 103; //
EN_MSG_TYPE_GROUP_LIST_CHANGED = 104; //
EM_MSG_TYPE_FRIEND_LIST_CHANGED = 105; //
EN_MSG_TYPE_GROUP_DETAIL_CHANGED = 106; //
EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED = 107; //
EN_MSG_TYPE_NOTICE_WATCH_LIST = 108; //
EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED = 109; //reply
EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED = 110; //
EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED = 111; //
EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED = 112; //
EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2 = 113; //
EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2 = 114; //
EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2 = 115; //
EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI = 116; //,
EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI = 117; //,
EN_MSG_TYPE_NOTIFY_ANTI_DISTURB = 118; //
//
EN_MSG_TYPE_SYS_GROUP_DISSOLVED = 201; //
EN_MSG_TYPE_SYS_GROUP_JOINED = 202; //
EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED = 203; //退
EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED = 204; //
EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED = 205; //T
EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF = 206; //T人
EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY = 207; //
EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED = 208; //
EN_MSG_TYPE_SYS_FRIEND_APPLY = 210; //
EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK = 211; //
EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING = 212; //
EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY = 213; //,
//
EN_MSG_TYPE_CHAT_MEMBER_JOINED = 301; //
EN_MSG_TYPE_CHAT_MEMBER_EXITED = 302; //退
EN_MSG_TYPE_CHAT_GROUP_FREEZED = 303; //
EN_MSG_TYPE_CHAT_GROUP_DISSOLVED = 304; //
EN_MSG_TYPE_CHAT_GROUP_CREATED = 305; //
EN_MSG_TYPE_CHAT_POPUP_SESSION = 306; //
}
//
message SessionInfo {
//
uint64 talkerId = 1;
//
uint32 sessionType = 2;
//
uint64 atSeqno = 3;
//
uint64 topTs = 4;
//
string groupName = 5;
//
string groupCover = 6;
//
uint32 isFollow = 7;
//
uint32 isDnd = 8;
//
uint64 ackSeqno = 9;
//
uint64 ackTs = 10;
//
uint64 sessionTs = 11;
//
uint32 unreadCount = 12;
//
Msg lastMsg = 13;
//
uint32 groupType = 14;
//
uint32 canFold = 15;
//
uint32 status = 16;
//
uint64 maxSeqno = 17;
//
uint32 newPushMsg = 18;
//
uint32 setting = 19;
//
uint32 isGuardian = 20;
}
//
message Msg {
//
uint64 senderUid = 1;
//
int32 receiverType = 2;
//
uint64 receiverId = 3;
//
uint64 cliMsgId = 4;
//
int32 msgType = 5;
//
string content = 6;
//
uint64 msgSeqno = 7;
//
uint64 timestamp = 8;
//
repeated uint64 atUids = 9;
//
repeated uint64 recverIds = 10;
//
uint64 msgKey = 11;
//
uint32 msgStatus = 12;
//
bool sysCancel = 13;
//
string notifyCode = 14;
//
uint32 msgSource = 15;
//
int32 newFaceVersion = 16;
}
//
message RelationLog {
//
int32 logType = 1;
//
uint64 oplogSeqno = 2;
//
FriendRelation friendRelation = 3;
//
GroupRelation groupRelation = 4;
}
//
message FriendRelation {
//
uint64 uid = 1;
//
string userName = 2;
//
string face = 3;
//
uint32 vipLevel = 4;
}
//
message GroupRelation {
//
uint64 groupId = 1;
//
uint64 ownerUid = 2;
//
uint32 groupType = 3;
//
uint32 groupLevel = 4;
//
string groupCover = 5;
//
string groupName = 6;
//
string groupNotice = 7;
//
int32 status = 8;
//
int32 memberRole = 9;
//
string fansMedalName = 10;
//
uint64 roomId = 11;
}

View File

@ -0,0 +1,323 @@
syntax = "proto3";
package bilibili.im.type;
//
enum ENUM_BIZ_MSG_TYPE {
//
BIZ_MSG_TYPE_NORMAL = 0;
//
BIZ_MSG_TYPE_CARD_VIDEO = 1;
}
//
enum RecverType{
//
EN_NO_MEANING = 0;
//
EN_RECVER_TYPE_PEER = 1;
//
EN_RECVER_TYPE_GROUP = 2;
//
EN_RECVER_TYPE_PEERS = 3;
}
//
enum CmdId {
EN_CMD_ID_INVALID = 0; //cmd
//msg_svr
EN_CMD_ID_SEND_MSG = 200001; //
//sync_msg_svr
EN_CMD_ID_SYNC_MSG = 500001; //
EN_CMD_ID_SYNC_RELATION = 500002; //
EN_CMD_ID_SYNC_ACK = 500003; //
EN_CMD_ID_SYNC_FETCH_SESSION_MSGS = 500006; //
//session_svr
EN_CMD_ID_SESSION_SVR_GET_SESSIONS = 1000001; //
EN_CMD_ID_SESSION_SVR_NEW_SESSIONS = 1000002; //
EN_CMD_ID_SESSION_SVR_ACK_SESSIONS = 1000003; //
EN_CMD_ID_SESSION_SVR_UPDATE_ACK = 1000004; //
EN_CMD_ID_SESSION_SVR_SET_TOP = 1000005; // /
EN_CMD_ID_SESSION_SVR_REMOVE_SESSION = 1000007; //
EN_CMD_ID_SESSION_SVR_SINGLE_UNREAD = 1000008; //
EN_CMD_ID_SESSION_SVR_MY_GROUP_UNREAD = 1000009; //
EN_CMD_ID_SESSION_SVR_UPDATE_UNFLW_READ = 1000010; //
EN_CMD_ID_SESSION_SVR_GROUP_ASSIS_MSG = 1000011; //
EN_CMD_ID_SESSION_SVR_ACK_ASSIS_MSG = 1000012; //
EN_CMD_ID_SESSION_SVR_SESSION_DETAIL = 1000015; //
EN_CMD_ID_SESSION_SVR_BATCH_SESS_DETAIL = 1000016; //
EN_CMD_ID_SESSION_SVR_BATCH_RM_SESSIONS = 1000017; //
}
//
enum RelationLogType {
EN_INVALID_LOG_TYPE = 0; //
EN_ADD_FRIEND = 1; //
EN_REMOVE_FRIEND = 2; //
EN_JOIN_GROUP = 3; //
EN_EXIT_GROUP = 4; // 退
}
//
enum MsgSource {
EN_MSG_SOURCE_UNKONW = 0; //
EN_MSG_SOURCE_IOS = 1; //
EN_MSG_SOURCE_ANDRIOD = 2; //
EN_MSG_SOURCE_H5 = 3; //
EN_MSG_SOURCE_PC = 4; //
EN_MSG_SOURCE_BACKSTAGE = 5; //
EN_MSG_SOURCE_BIZ = 6; //
EN_MSG_SOURCE_WEB = 7; //
EN_MSG_SOURCE_AUTOREPLY_BY_FOLLOWED=8; //
EN_MSG_SOURCE_AUTOREPLY_BY_RECEIVE_MSG = 9; //
EN_MSG_SOURCE_AUTOREPLY_BY_KEYWORDS = 10; //
EN_MSG_SOURCE_AUTOREPLY_BY_VOYAGE = 11; //
EN_MSG_SOURCE_VC_ATTACH_MSG = 12; //
};
//
enum MsgType {
//
EN_INVALID_MSG_TYPE = 0; // ~
EN_MSG_TYPE_TEXT = 1; //
EN_MSG_TYPE_PIC = 2; //
EN_MSG_TYPE_AUDIO = 3; //
EN_MSG_TYPE_SHARE = 4; //
EN_MSG_TYPE_DRAW_BACK = 5; //
EN_MSG_TYPE_CUSTOM_FACE = 6; //
EN_MSG_TYPE_SHARE_V2 = 7; // v2消息
EN_MSG_TYPE_SYS_CANCEL = 8; //
EN_MSG_TYPE_MINI_PROGRAM = 9; //
//
EN_MSG_TYPE_NOTIFY_MSG = 10; //
EN_MSG_TYPE_VIDEO_CARD = 11; //
EN_MSG_TYPE_ARTICLE_CARD = 12; //
EN_MSG_TYPE_PICTURE_CARD = 13; //
EN_MSG_TYPE_COMMON_SHARE_CARD = 14; //
EN_MSG_TYPE_BIZ_MSG_TYPE = 50; //
//
EN_MSG_TYPE_GROUP_MEMBER_CHANGED = 101; //
EN_MSG_TYPE_GROUP_STATUS_CHANGED = 102; //
EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED = 103; //
EN_MSG_TYPE_GROUP_LIST_CHANGED = 104; //
EM_MSG_TYPE_FRIEND_LIST_CHANGED = 105; //
EN_MSG_TYPE_GROUP_DETAIL_CHANGED = 106; //
EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED = 107; //
EN_MSG_TYPE_NOTICE_WATCH_LIST = 108; //
EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED = 109; // reply
EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED = 110; //
EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED = 111; //
EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED = 112; //
EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2 = 113; //
EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2 = 114; //
EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2 = 115; //
EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI = 116; // ,
EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI = 117; // ,
EN_MSG_TYPE_NOTIFY_ANTI_DISTURB = 118; //
//
EN_MSG_TYPE_SYS_GROUP_DISSOLVED = 201; //
EN_MSG_TYPE_SYS_GROUP_JOINED = 202; //
EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED = 203; // 退
EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED = 204; //
EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED = 205; // T
EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF = 206; // T人
EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY = 207; //
EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED = 208; //
EN_MSG_TYPE_SYS_FRIEND_APPLY = 210; //
EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK = 211; //
EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING = 212; //
EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY = 213; // ,
//
EN_MSG_TYPE_CHAT_MEMBER_JOINED = 301; //
EN_MSG_TYPE_CHAT_MEMBER_EXITED = 302; // 退
EN_MSG_TYPE_CHAT_GROUP_FREEZED = 303; //
EN_MSG_TYPE_CHAT_GROUP_DISSOLVED = 304; //
EN_MSG_TYPE_CHAT_GROUP_CREATED = 305; //
EN_MSG_TYPE_CHAT_POPUP_SESSION = 306; //
}
//
enum SESSION_TYPE {
INVALID_SESSION_TYPE = 0; //
UN_FOLD_SESSION = 1; //
UN_FOLLOW_SINGLE_SESSION = 2; //
MY_GROUP_SESSION = 3; //
ALL_SESSION = 4; //
}
//
message HighText {
//
string title = 1;
//
string url = 2;
// ps2index=1
uint32 index = 3;
}
//
message KeyHitInfos {
//
string toast = 1;
//
uint32 rule_id = 2;
//
repeated HighText high_text = 3;
//
}
//
message Msg {
// mid
uint64 sender_uid = 1;
//
int32 receiver_type = 2;
// mid
uint64 receiver_id = 3;
// id,
uint64 cli_msg_id = 4;
//
int32 msg_type = 5;
//
string content = 6;
// x
uint64 msg_seqno = 7;
//
uint64 timestamp = 8;
// @
repeated uint64 at_uids = 9;
//
repeated uint64 recver_ids = 10;
//
uint64 msg_key = 11;
//
uint32 msg_status = 12;
//
bool sys_cancel = 13;
//
string notify_code = 14;
//
uint32 msg_source = 15;
// msg.content有表情字符1
int32 new_face_version = 16;
//
KeyHitInfos key_hit_infos = 17;
}
//
message SessionInfo {
//
uint64 talker_id = 1;
//
uint32 session_type = 2;
//
uint64 at_seqno = 3;
//
uint64 top_ts = 4;
//
string group_name = 5;
//
string group_cover = 6;
//
uint32 is_follow = 7;
//
uint32 is_dnd = 8;
//
uint64 ack_seqno = 9;
//
uint64 ack_ts = 10;
//
uint64 session_ts = 11;
//
uint32 unread_count = 12;
//
Msg last_msg = 13;
//
uint32 group_type = 14;
//
uint32 can_fold = 15;
//
uint32 status = 16;
//
uint64 max_seqno = 17;
//
uint32 new_push_msg = 18;
//
uint32 setting = 19;
//
uint32 is_guardian = 20;
}
//
message RelationLog {
//
int32 log_type = 1;
// seqno
uint64 oplog_seqno = 2;
//
FriendRelation friend_relation = 3;
//
GroupRelation group_relation = 4;
}
//
message FriendRelation {
// mid
uint64 uid = 1;
//
string user_name = 2;
// url
string face = 3;
// vip类型
// 0: 1: 2:
uint32 vip_level = 4;
}
//
message ImgInfo{
//
string url = 1;
//
int32 width = 2;
//
int32 height = 3;
//
string imageType = 4;
}
//
message GroupRelation {
//
uint64 group_id = 1;
//
uint64 owner_uid = 2;
//
uint32 group_type = 3;
//
uint32 group_level = 4;
//
string group_cover = 5;
//
string group_name = 6;
//
string group_notice = 7;
//
int32 status = 8;
//
int32 member_role = 9;
//
string fans_medal_name = 10;
//
uint64 room_id = 11;
}

View File

@ -0,0 +1,61 @@
syntax = "proto3";
package bilibili.main.common.arch.doll.v1;
//
service Echo {
//
rpc Ping(PingRequest) returns(PingResponse);
//
rpc Say(SayRequest) returns(SayResponse);
//
rpc Error(ErrorRequest) returns(ErrorResponse);
}
//
message PingRequest {
/
int64 time = 1;
}
//
message PingResponse {
//
string host = 1;
//
int64 time = 3;
}
//
message SayRequest {
//
string content = 1;
}
//
message SayResponse {
//
string host = 1;
//
string content = 2;
//
int64 time = 3;
}
//
message ErrorRequest {
//
int32 error = 2;
//
int64 time = 1;
//
int64 delay = 3;
}
//
message ErrorResponse {
//
string host = 1;
//
int64 time = 3;
}

View File

@ -22,8 +22,8 @@ service Reply {
// 广 // 广
message CM { message CM {
// 广() // 广()
google.protobuf.Any sourceContent = 1; google.protobuf.Any source_content = 1;
} }
// - // -
@ -45,7 +45,7 @@ message DialogListReply {
// //
CursorReply cursor = 1; CursorReply cursor = 1;
// //
SubjectControl subjectControl = 2; SubjectControl subject_control = 2;
// //
repeated ReplyInfo replies = 3; repeated ReplyInfo replies = 3;
// //
@ -54,10 +54,8 @@ message DialogListReply {
// //
enum DetailListScene { enum DetailListScene {
// REPLY = 0; //
REPLY = 0; MSG_FEED = 1; //
//
MSG_FEED = 1;
} }
// - // -
@ -81,7 +79,7 @@ message DetailListReply {
// //
CursorReply cursor = 1; CursorReply cursor = 1;
// //
SubjectControl subjectControl = 2; SubjectControl subject_control = 2;
// () // ()
ReplyInfo root = 3; ReplyInfo root = 3;
// //
@ -99,7 +97,7 @@ message MainListReq {
// json // json
string extra = 4; string extra = 4;
// 广json // 广json
string adExtra = 5; string ad_extra = 5;
// rpid // rpid
int64 rpid = 6; int64 rpid = 6;
} }
@ -133,13 +131,13 @@ message PreviewListReply {
// //
repeated ReplyInfo replies = 2; repeated ReplyInfo replies = 2;
// //
SubjectControl subjectControl = 3; SubjectControl subject_control = 3;
// UP置顶评论 // UP置顶评论
ReplyInfo upTop = 4; ReplyInfo upTop = 4;
// //
ReplyInfo adminTop = 5; ReplyInfo admin_top = 5;
// //
ReplyInfo voteTop = 6; ReplyInfo vote_top = 6;
} }
// - // -
@ -149,13 +147,13 @@ message MainListReply {
// //
repeated ReplyInfo replies = 2; repeated ReplyInfo replies = 2;
// //
SubjectControl subjectControl = 3; SubjectControl subject_control = 3;
// UP置顶评论 // UP置顶评论
ReplyInfo upTop = 4; ReplyInfo up_top = 4;
// //
ReplyInfo adminTop = 5; ReplyInfo admin_top = 5;
// //
ReplyInfo voteTop = 6; ReplyInfo vote_top = 6;
// //
Notice notice = 7; Notice notice = 7;
// //
@ -163,7 +161,7 @@ message MainListReply {
// //
Activity activity = 9; Activity activity = 9;
// //
UpSelection upSelection = 10; UpSelection up_selection = 10;
// 广 // 广
CM cm = 11; CM cm = 11;
// //
@ -179,9 +177,9 @@ message Effects {
// //
message UpSelection { message UpSelection {
// //
int64 pendingCount = 1; int64 pending_count = 1;
// //
int64 ignoreCount = 2; int64 ignore_count = 2;
} }
// //
@ -197,25 +195,25 @@ message Notice {
// //
message Activity { message Activity {
// id // id
int64 activityId = 1; int64 activity_id = 1;
// //
// -1: 1:线 // -1: 1:线
int64 activityState = 2; int64 activity_state = 2;
// //
string activityPlaceholder = 3; string activity_placeholder = 3;
} }
// //
message Lottery { message Lottery {
// id // id
int64 lotteryId = 1; int64 lottery_id = 1;
// //
// 0: 1: 2: // 0: 1: 2:
int64 lotteryStatus = 2; int64 lottery_status = 2;
// mid // mid
int64 lotteryMid = 3; int64 lottery_mid = 3;
// //
int64 lotteryTime = 4; int64 lottery_time = 4;
// //
int64 oid = 5; int64 oid = 5;
// //
@ -227,19 +225,15 @@ message Lottery {
// //
Member member = 9; Member member = 9;
// //
ReplyControl replyControl = 10; ReplyControl reply_control = 10;
} }
// //
enum Mode { enum Mode {
// DEFAULT = 0; //
DEFAULT = 0; UNSPECIFIED = 1; //
// MAIN_LIST_TIME = 2; //
UNSPECIFIED = 1; MAIN_LIST_HOT = 3; //
//
MAIN_LIST_TIME = 2;
//
MAIN_LIST_HOT = 3;
} }
// //
@ -272,35 +266,35 @@ message CursorReply {
// //
message SubjectControl { message SubjectControl {
// UP主mid // UP主mid
int64 upMid = 1; int64 up_mid = 1;
// //
bool isAssist = 2; bool is_assist = 2;
// //
bool readOnly = 3; bool read_only = 3;
// //
bool hasVoteAccess = 4; bool has_vote_access = 4;
// //
bool hasLotteryAccess = 5; bool has_lottery_access = 5;
// //
bool hasFoldedReply = 6; bool has_folded_reply = 6;
// //
string bgText = 7; string bg_text = 7;
// UP拉黑 // UP拉黑
bool upBlocked = 8; bool up_blocked = 8;
// //
bool hasActivityAccess = 9; bool has_activity_access = 9;
// //
bool showTitle = 10; bool show_title = 10;
// UP主操作标志 // UP主操作标志
bool showUpAction = 11; bool show_up_action = 11;
// //
int64 switcherType = 12; int64 switcher_type = 12;
// //
bool inputDisable = 13; bool input_disable = 13;
// //
string rootText = 14; string root_text = 14;
// //
string childText = 15; string child_text = 15;
// //
int64 count = 16; int64 count = 16;
// //
@ -338,7 +332,7 @@ message ReplyInfo {
// //
Member member = 13; Member member = 13;
// //
ReplyControl replyControl = 14; ReplyControl reply_control = 14;
} }
// //
@ -363,15 +357,15 @@ message ReplyControl {
// 0: 1: 2: // 0: 1: 2:
int64 action = 1; int64 action = 1;
// UP觉得很赞 // UP觉得很赞
bool upLike = 2; bool up_like = 2;
// UP回复 // UP回复
bool upReply = 3; bool up_reply = 3;
// //
bool showFollowBtn = 4; bool show_follow_btn = 4;
// //
bool isAssist = 5; bool is_assist = 5;
// //
string labelText = 6; string label_text = 6;
// //
bool following = 7; bool following = 7;
// //
@ -379,17 +373,17 @@ message ReplyControl {
// //
bool blocked = 9; bool blocked = 9;
// //
bool hasFoldedReply = 10; bool has_folded_reply = 10;
// //
bool isFoldedReply = 11; bool is_folded_reply = 11;
// UP置顶 // UP置顶
bool isUpTop = 12; bool is_up_top = 12;
// //
bool isAdminTop = 13; bool is_admin_top = 13;
// //
bool isVoteTop = 14; bool is_vote_top = 14;
// //
int64 maxLine = 15; int64 max_line = 15;
// //
bool invisible = 16; bool invisible = 16;
// up签订契约 // up签订契约
@ -405,15 +399,19 @@ message Url {
// //
int64 state = 2; int64 state = 2;
// url // url
string prefixIcon = 3; string prefix_icon = 3;
// //
string appUrlSchema = 4; string app_url_schema = 4;
// //
string appName = 5; string app_name = 5;
// //
string appPackageName = 6; string app_package_name = 6;
// id // id
string clickReport = 7; string click_report = 7;
//
bool is_half_screen = 8;
//
string exposure_report = 9;
} }
// //
@ -457,39 +455,39 @@ message Member {
// //
int64 level = 5; int64 level = 5;
// //
int64 officialVerifyType = 6; int64 official_verify_type = 6;
/**********VIP相关**********/ /**********VIP相关**********/
// //
// 0: 1: 2: // 0: 1: 2:
int64 vipType = 7; int64 vip_type = 7;
// //
int64 vipStatus = 8; int64 vip_status = 8;
// //
int64 vipThemeType = 9; int64 vip_theme_type = 9;
// url // url
string vipLabelPath = 10; string vip_label_path = 10;
/**********装扮相关**********/ /**********装扮相关**********/
// url // url
string garbPendantImage = 11; string garb_pendant_image = 11;
// url // url
string garbCardImage = 12; string garb_card_image = 12;
// url // url
string garbCardImageWithFocus = 13; string garb_card_image_with_focus = 13;
// url // url
string garbCardJumpUrl = 14; string garb_card_jump_url = 14;
// id // id
string garbCardNumber = 15; string garb_card_number = 15;
// id显示颜色 // id显示颜色
string garbCardFanColor = 16; string garb_card_fan_color = 16;
// //
bool garbCardIsFan = 17; bool garb_card_is_fan = 17;
/**********粉丝勋章相关**********/ /**********粉丝勋章相关**********/
// //
string fansMedalName = 18; string fans_medal_name = 18;
// //
int64 fansMedalLevel = 19; int64 fans_medal_level = 19;
// //
int64 fansMedalColor = 20; int64 fans_medal_color = 20;
// //
string vip_nickname_color = 21; string vip_nickname_color = 21;
// //
@ -503,22 +501,16 @@ message Member {
// //
enum SearchItemType { enum SearchItemType {
// DEFAULT_ITEM_TYPE = 0; //
DEFAULT_ITEM_TYPE = 0; GOODS_VALUE = 1; //
// VIDEO_VALUE = 2; //
GOODS_VALUE = 1; ARTICLE_VALUE = 3; //
//
VIDEO_VALUE = 2;
//
ARTICLE_VALUE = 3;
} }
// //
enum SearchItemVideoSubType { enum SearchItemVideoSubType {
// UGC = 0; //
UGC = 0; PGC = 1; //
//
PGC = 1;
} }
// item前置发布- // item前置发布-
@ -532,11 +524,11 @@ message SearchItemPreHookReq {
// item前置发布- // item前置发布-
message SearchItemPreHookReply { message SearchItemPreHookReply {
// //
string placeholderText = 1; string placeholder_text = 1;
// //
string backgroundText = 2; string background_text = 2;
// tab栏的顺序 // tab栏的顺序
repeated SearchItemType orderedType = 3; repeated SearchItemType ordered_type = 3;
} }
// - // -
@ -554,7 +546,7 @@ message SearchItemReq {
// //
message SearchItemReplyExtraInfo { message SearchItemReplyExtraInfo {
// //
string eventId = 1; string event_id = 1;
} }
// - // -
@ -572,13 +564,13 @@ message SearchItemCursorReq {
// //
int64 next = 1; int64 next = 1;
// tab类型 // tab类型
SearchItemType itemType = 2; SearchItemType item_type = 2;
} }
// //
message SearchItemCursorReply { message SearchItemCursorReply {
// //
bool hasNext = 1; bool has_next = 1;
// //
int64 next = 2; int64 next = 2;
} }
@ -632,7 +624,7 @@ message UGCVideoSearchItem {
// //
string title = 1; string title = 1;
// UP主昵称 // UP主昵称
string upNickname = 2; string up_nickname = 2;
// () // ()
int64 duration = 3; int64 duration = 3;
// //
@ -654,7 +646,7 @@ message ArticleSearchItem {
// //
string title = 1; string title = 1;
// UP主昵称 // UP主昵称
string upNickname = 2; string up_nickname = 2;
// //
repeated string covers = 3; repeated string covers = 3;
} }

View File

@ -0,0 +1,262 @@
syntax = "proto3";
package bilibili.pgc.gateway.player.v1;
import "bilibili/app/playurl/v1/playurl.proto";
// PlayURL
service PlayURL {
//
rpc PlayView (PlayViewReq) returns (PlayViewReply);
//
rpc Project (ProjectReq) returns (ProjectReply);
//
rpc LivePlayView (LivePlayViewReq) returns (LivePlayViewReply);
}
// -
message PlayViewReq {
// epid
int64 epid = 1;
// cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 force_host = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string from_spmid = 10;
//
int32 teenagers_mode = 11;
//
bilibili.app.playurl.v1.CodeType prefer_codec_type = 12;
//
bool is_preview = 13;
// id
int64 room_id = 14;
}
// -
message ProjectReq {
// epid
int64 ep_id = 1;
// cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 forceHost = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string fromSpmid = 10;
// 使
// 0: 1: 2: 3:airplay
int32 protocol = 11;
//
// 0: 1:OTT设备
int32 device_type = 12;
}
// -
message PlayViewReply {
//
bilibili.app.playurl.v1.VideoInfo video_info = 1;
//
PlayAbilityConf play_conf = 2;
//
BusinessInfo business = 3;
//
Event event = 4;
}
//
message Event {
//
Shake shake = 1;
}
//
message Shake {
//
string file = 1;
}
//
message BusinessInfo {
//
bool is_preview = 1;
//
bool bp = 2;
// drm使用
string marlin_token = 3;
}
//
message PlayAbilityConf {
bool background_play_disable = 1; //
bool flip_disable = 2; //
bool cast_disable = 3; //
bool feedback_disable = 4; //
bool subtitle_disable = 5; //
bool playback_rate_disable = 6; //
bool time_up_disable = 7; //
bool playback_mode_disable = 8; //
bool scale_mode_disable = 9; //
bool like_disable = 10; //
bool dislike_disable = 11; //
bool coin_disable = 12; //
bool elec_disable = 13; //
bool share_disable = 14; //
bool screen_shot_disable = 15; //
bool lock_screen_disable = 16; //
bool recommend_disable = 17; //
bool playback_speed_disable = 18; //
bool definition_disable = 19; //
bool selections_disable = 20; //
bool next_disable = 21; //
bool edit_dm_disable = 22; //
bool small_window_disable = 23; //
bool shake_disable = 24; //
bool outer_dm_disable = 25; //
bool inner_dm_disable = 26; //
bool freya_enter_disable = 27; //
bool dolby_disable = 28; //
bool freya_full_disable = 29; //
}
// -
message ProjectReply {
bilibili.app.playurl.v1.PlayURLReply project = 1;
}
// -
message LivePlayViewReq {
// epid
int64 ep_id = 1;
//
// 0,10000: 400: 250: 150: 80:
uint32 quality = 2;
//
// 0: 2:hevc 4:dash 8:p2p, 16:
uint32 ptype = 3;
// https
bool https = 4;
// 0: 1:
uint32 play_type = 5;
//
// 0: 1:OTT设备
int32 device_type = 6;
}
// -
message LivePlayViewReply {
//
RoomInfo room_info = 1;
//
LivePlayInfo play_info = 2;
}
//
message RoomInfo {
//
int64 room_id = 1;
// mid
int64 uid = 2;
//
RoomStatusInfo status = 3;
//
RoomShowInfo show = 4;
}
// -
message RoomStatusInfo {
//
// 0: 1: 2:
int64 live_status = 1;
//
// 0: 1:
int64 live_screen_type = 2;
//
int64 live_mark = 3;
//
// 0: 1: 2:
int64 lock_status = 4;
//
int64 lock_time = 5;
//
// 0: 1:
int64 hidden_status = 6;
//
int64 hidden_time = 7;
//
// 0: 1: 2; 3:
int64 live_type = 8;
//
int64 room_shield = 9;
}
// -
message RoomShowInfo {
//
int64 short_id = 1;
//
int64 popularity_count = 8;
//
int64 live_start_time = 10;
}
//
message LivePlayInfo {
//
int32 current_qn = 1;
//
repeated QualityDescription quality_description = 2;
//
repeated ResponseDataUrl durl = 3;
}
//
message QualityDescription {
//
int32 qn = 1;
//
string desc = 2;
}
//
message ResponseDataUrl {
string url = 1;
// stream类型,
// Value| 1 | 1 | 1 | 1 | 1
// --------------------------------------------
// desc | mask | p2p | dash | hevc | only-audio
uint32 stream_type = 2;
// p2p的cdn厂商,
// | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1
// -----------------------------------------------
// CDN | hw | bdy | bsy | ws | txy | qn | js | bvc
uint32 ptag = 3;
}

View File

@ -1,616 +0,0 @@
syntax = "proto3";
package bilibili.pgc.gateway.player.v2;
import "google/protobuf/timestamp.proto";
//url
service PlayURL {
//url
//https://app.bilibili.com/bilibili.pgc.gateway.player.v2.PlayURL/PlayView
rpc PlayView (PlayViewReq) returns (PlayViewReply);
}
//url-
message PlayViewReq{
//epid
int64 epid = 1;
//cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
//0: 1:flv下载 2:dash下载
uint32 download = 6;
//
int32 forceHost = 7;
//4K
bool fourk = 8;
//
string spmid = 9;
//
string fromSpmid = 10;
//
int32 teenagersMode = 11;
//
CodeType codetype = 12;
//
bool isPreview = 13;
//
int64 roomId = 14;
//
bool isNeedViewInfo = 15;
}
//url-
message PlayViewReply{
//
VideoInfo info = 1;
//
PlayAbilityConf PlayConf = 2;
//
PlayViewBusinessInfo Business = 3;
//
Event event = 4;
//
ViewInfo viewInfo = 5;
}
//
enum CodeType {
//
NOCODE = 0;
//H.264
CODE264 = 1;
//H.265
CODE265 = 2;
}
//
message Limit {
//
string title = 1;
//
string uri = 2;
//
string msg = 3;
}
//
message streamInfo {
// qn
uint32 quality = 1;
//
string format = 2;
//
string description = 3;
//
uint32 errCode = 4;
//
Limit limit = 5;
//vip
bool needVip = 6;
//
bool needLogin = 7;
//
bool intact = 8;
//
bool noRexcode = 9;
//
int64 attribute = 10;
//
string newDescription = 11;
//
string displayDesc = 12;
//
string superscript = 13;
}
//dash视频流
message DashVideo {
//线
string baseUrl = 1;
//
repeated string backupUrl = 2;
//
uint32 bandwidth = 3;
//
uint32 codecid = 4;
//md5
string md5 = 5;
//
uint64 size = 6;
//
uint32 audioId = 7;
//
bool noRexcode = 8;
}
//
message ResponseUrl {
//
uint32 order = 1;
//
uint64 length = 2;
//
uint64 size = 3;
//线
string url = 4;
//
repeated string backupUrl = 5;
//md5
string md5 = 6;
}
//
message SegmentVideo {
//
repeated ResponseUrl segment = 1;
}
//
message stream {
//
streamInfo info = 1;
//dash流
DashVideo dashvideo = 2;
//
SegmentVideo segmentvideo = 3;
}
//dash音频流
message DashAudio {
//id
uint32 id = 1;
//线
string baseUrl = 2;
//
repeated string backupUrl = 3;
//
uint32 bandwidth = 4;
//
uint32 codecid = 5;
//md5
string md5 = 6;
//
uint64 size = 7;
}
//
message DolbyItem {
//
int32 type = 1;
//
DashAudio audio = 2;
}
//url信息
message VideoInfo {
//
uint32 quality = 1;
//
string format = 2;
//
uint64 timelength = 3;
//
uint32 videoCodecid = 4;
//
repeated stream streamList = 5;
//
repeated DashAudio audio = 6;
//
DolbyItem dolby = 7;
}
//
message PlayAbilityConf{
//
bool backgroundPlayDisable = 1;
//
bool flipDisable = 2;
//
bool castDisable = 3;
//
bool feedbackDisable = 4;
//
bool subtitleDisable = 5;
//
bool playbackRateDisable = 6;
//
bool timeUpDisable = 7;
//
bool playbackModeDisable = 8;
//
bool scaleModeDisable = 9;
//
bool likeDisable = 10;
//
bool dislikeDisable = 11;
//
bool coinDisable = 12;
//
bool elecDisable = 13;
//
bool shareDisable = 14;
//
bool screenShotDisable = 15;
//
bool lockScreenDisable = 16;
//
bool recommendDisable = 17;
//
bool playbackSpeedDisable = 18;
//
bool definitionDisable = 19;
//
bool selectionsDisable = 20;
//
bool nextDisable = 21;
//
bool editDmDisable = 22;
//
bool smallWindowDisable = 23;
//
bool shakeDisable = 24;
//
bool outerDmDisable = 25;
//
bool innerDmDisable = 26;
//
bool freyaEnterDisable = 27;
//
bool dolbyDisable = 28;
}
//
message PlayViewBusinessInfo {
//
bool isPreview = 1;
//
bool bp = 2;
//
string marlinToken = 3;
}
//
message Shake {
//
string file = 1;
}
//
message Event {
//
Shake shake = 1;
}
//
message Report {
//
string showEventId = 1;
//
string clickEventId = 2;
//
string extends = 3;
}
//
message BadgeInfo {
//
string text = 1;
//
string bgColor = 2;
//
string bgColorNight = 3;
}
//
message ButtonInfo {
//
string text = 1;
//
string textColor = 2;
//
string textColorNight = 3;
//
string bgColor = 4;
//
string bgColorNight = 5;
//
string link = 6;
//
string actionType = 7;
//
BadgeInfo badgeInfo = 8;
//
Report report = 9;
}
//
message DialogConfig {
//
bool isShowCover = 1;
//
bool isOrientationEnable = 2;
//
bool isNestedScrollEnable = 3;
//
bool isForceHalfscreenEnable = 4;
}
//
message TextInfo {
//
string text = 1;
//
string textColor = 2;
//
string textColorNight = 3;
}
//
message ImageInfo {
//
string url = 1;
}
//
message Dialog {
//
int64 code = 1;
//
string msg = 2;
//
string type = 3;
//
string styleType = 4;
//
DialogConfig config = 5;
//
TextInfo title = 6;
//
TextInfo subtitle = 7;
//
ImageInfo image = 8;
//
repeated ButtonInfo button = 9;
//
ButtonInfo bottomDesc = 10;
//
Report report = 11;
//
int32 countDownSec = 12;
}
//
message Toast {
//
string text = 1;
//
ButtonInfo button = 2;
}
//
message CouponTextInfo {
//
string positivePreview = 1;
//
string section = 2;
}
//
message CouponToast {
//
CouponTextInfo textInfo = 1;
//
ButtonInfo button = 2;
}
//
message Coupon {
//
string couponToken = 1;
//
int64 type = 2;
//
string value = 3;
//
string useDesc = 4;
//
string title = 5;
//
string desc = 6;
//
string payButtonText = 7;
//
string payButtonTextLineThrough = 8;
//
string realAmount = 9;
//
google.protobuf.Timestamp expireTime = 10;
}
//
message PopWin {
//
string title = 1;
//
repeated Coupon coupon = 2;
//
repeated ButtonInfo button = 3;
//
string bottomText = 4;
}
//
message CouponInfo {
//
CouponToast toast = 1;
//
PopWin popWin = 2;
}
//
message EndPage {
//
Dialog dialog = 1;
//
bool hide = 2;
}
//
message ViewInfo {
//
Dialog dialog = 1;
//
Toast toast = 2;
//
CouponInfo couponInfo = 3;
//
repeated int64 demandNoPayEpids = 4;
//
EndPage endPage = 5;
}

View File

@ -0,0 +1,520 @@
syntax = "proto3";
package bilibili.pgc.gateway.player.v2;
import "google/protobuf/timestamp.proto";
// url
service PlayURL {
//
rpc PlayView (PlayViewReq) returns (PlayViewReply);
}
//
enum CodeType {
NOCODE = 0; //
CODE264 = 1; // H.264
CODE265 = 2; // H.265
}
//
enum PlayErr {
NoErr = 0; //
WithMultiDeviceLoginErr = 1; //
}
//
message StreamLimit {
//
string title = 1;
//
string uri = 2;
//
string msg = 3;
}
// -
message PlayViewReq {
// epid
int64 epid = 1;
// cid
int64 cid = 2;
//
int64 qn = 3;
//
int32 fnver = 4;
//
int32 fnval = 5;
//
// 0: 1:flv下载 2:dash下载
uint32 download = 6;
// url强制是用域名
// 0:使ip 1:使http 2:使https
int32 force_host = 7;
// 4K
bool fourk = 8;
// spm
string spmid = 9;
// spm
string from_spmid = 10;
//
int32 teenagers_mode = 11;
//
CodeType prefer_codec_type = 12;
//
bool is_preview = 13;
// id
int64 room_id = 14;
//
bool is_need_view_info = 15;
//
SceneControl scene_control = 16;
}
//
message SceneControl {
//
bool fav_playlist = 1;
//
bool small_window = 2;
//
bool pip = 3;
}
// -
message PlayViewReply {
//
VideoInfo video_info = 1;
//
PlayAbilityConf play_conf = 2;
//
PlayViewBusinessInfo business = 3;
//
Event event = 4;
//
ViewInfo view_info = 5;
//
PlayAbilityExtConf play_ext_conf = 6;
}
//
message ViewInfo {
//
Dialog dialog = 1;
// toast
Toast toast = 2;
//
CouponInfo coupon_info = 3;
// ep列表
repeated int64 demand_no_pay_epids = 4;
//
EndPage end_page = 5;
//
map<string, bool> exp_config = 6;
//
PopWin pop_win = 7;
}
//
message EndPage {
//
Dialog dialog = 1;
// end_page
bool hide = 2;
}
// toast
message Toast {
// toast文案
string text = 1;
// toast按钮
ButtonInfo button = 2;
//
int32 show_style_type = 3;
//
string icon = 4;
// toast文案
TextInfo toast_text = 5;
//
Report report = 6;
}
//
message Dialog {
//
int64 code = 1;
//
string msg = 2;
//
string type = 3;
//
string style_type = 4;
//
DialogConfig config = 5;
//
TextInfo title = 6;
//
TextInfo subtitle = 7;
//
ImageInfo image = 8;
//
repeated ButtonInfo button = 9;
//
ButtonInfo bottom_desc = 10;
//
Report report = 11;
//
int32 count_down_sec = 12;
//
TextInfo right_bottom_desc = 13;
}
//
message ButtonInfo {
//
string text = 1;
//
string text_color = 2;
// -
string text_color_night = 3;
//
string bg_color = 4;
// -
string bg_color_night = 5;
//
string link = 6;
//
string action_type = 7;
//
BadgeInfo badge_info = 8;
//
Report report = 9;
// 线
string left_strikethrough_text = 10;
//
TextInfo simple_text_info = 11;
//
string simple_bg_color = 12;
// -
string simple_bg_color_night = 13;
}
//
message Report {
//
string show_event_id = 1;
//
string click_event_id = 2;
//
string extends = 3;
}
//
message BadgeInfo {
//
string text = 1;
//
string bg_color = 2;
// -
string bg_color_night = 3;
//
string text_color = 4;
}
//
message ImageInfo {
//
string url = 1;
}
//
message TextInfo {
//
string text = 1;
//
string textColor = 2;
// -
string textColorNight = 3;
}
//
message DialogConfig {
//
bool is_show_cover = 1;
//
bool is_orientation_enable = 2;
//
bool is_nested_scroll_enable = 3;
//
bool is_force_halfscreen_enable = 4;
}
// url信息
message VideoInfo {
//
uint32 quality = 1;
//
string format = 2;
//
uint64 timelength = 3;
// id
uint32 video_codecid = 4;
//
repeated Stream stream_list = 5;
//
repeated DashItem dash_audio = 6;
//
DolbyItem dolby = 7;
}
//
message DolbyItem {
enum Type {
NONE = 0; // NONE
COMMON = 1; //
ATMOS = 2; //
}
//
Type type = 1;
//
DashItem audio = 2;
}
// dash条目
message DashItem {
//
uint32 id = 1;
// 线
string base_url = 2;
//
repeated string backup_url = 3;
//
uint32 bandwidth = 4;
// id
uint32 codecid = 5;
// md5
string md5 = 6;
//
uint64 size = 7;
//
string frame_rate = 8;
}
//
message Stream {
//
StreamInfo info = 1;
//
oneof contentCase {
// dash流
DashVideo dash_video = 2;
//
SegmentVideo segment_video = 3;
}
}
//
message SegmentVideo {
//
repeated ResponseUrl segment = 1;
}
//
message ResponseUrl {
//
uint32 order = 1;
//
uint64 length = 2;
//
uint64 size = 3;
// 线
string url = 4;
//
repeated string backup_url = 5;
// md5
string md5 = 6;
}
//
message StreamInfo {
//
uint32 quality = 1;
//
string format = 2;
//
string description = 3;
//
uint32 err_code = 4;
//
StreamLimit limit = 5;
// vip
bool need_vip = 6;
//
bool need_login = 7;
//
bool intact = 8;
//
bool no_rexcode = 9;
//
int64 attribute = 10;
//
string new_description = 11;
//
string display_desc = 12;
//
string superscript = 13;
}
// dash视频流
message DashVideo {
// 线
string base_url = 1;
//
repeated string backup_url = 2;
//
uint32 bandwidth = 3;
// id
uint32 codecid = 4;
// md5
string md5 = 5;
//
uint64 size = 6;
// id
uint32 audio_id = 7;
//
bool no_rexcode = 8;
}
//
message Event {
//
Shake shake = 1;
}
//
message Shake {
//
string file = 1;
}
//
message PlayViewBusinessInfo {
//
bool is_preview = 1;
//
bool bp = 2;
// drm使用
string marlin_token = 3;
//
string playback_speed_color = 4;
}
//
message CouponInfo {
//
CouponToast toast = 1;
//
PopWin pop_win = 2;
}
//
message PopWin {
//
string title = 1;
//
repeated Coupon coupon = 2;
//
repeated ButtonInfo button = 3;
//
string bottom_text = 4;
//
TextInfo pop_title = 5;
//
TextInfo subtitle = 6;
//
ButtonInfo bottom_desc = 7;
//
string cover = 8;
//
string pop_type = 9;
}
//
message Coupon {
// token
string coupon_token = 1;
//
// 1: 2: 3:
int64 type = 2;
//
string value = 3;
// 使
string use_desc = 4;
//
string title = 5;
//
string desc = 6;
//
string pay_button_text = 7;
// 线
string pay_button_text_line_through = 8;
//
string real_amount = 9;
// 使
google.protobuf.Timestamp expire_time = 10;
}
//
message CouponToast {
//
CouponTextInfo text_info = 1;
//
ButtonInfo button = 2;
}
//
message CouponTextInfo {
// -6
string positive_preview = 1;
// -ep
string section = 2;
}
//
message PlayAbilityConf {
bool background_play_disable = 1; //
bool flip_disable = 2; //
bool cast_disable = 3; //
bool feedback_disable = 4; //
bool subtitle_disable = 5; //
bool playback_rate_disable = 6; //
bool time_up_disable = 7; //
bool playback_mode_disable = 8; //
bool scale_mode_disable = 9; //
bool like_disable = 10; //
bool dislike_disable = 11; //
bool coin_disable = 12; //
bool elec_disable = 13; //
bool share_disable = 14; //
bool screen_shot_disable = 15; //
bool lock_screen_disable = 16; //
bool recommend_disable = 17; //
bool playback_speed_disable = 18; //
bool definition_disable = 19; //
bool selections_disable = 20; //
bool next_disable = 21; //
bool edit_dm_disable = 22; //
bool small_window_disable = 23; //
bool shake_disable = 24; //
bool outer_dm_disable = 25; //
bool inner_dm_disable = 26; //
bool freya_enter_disable = 27; //
bool dolby_disable = 28; //
bool freya_full_disable = 29; //
}
//
message PlayAbilityExtConf {
//
bool allow_close_subtitle = 1;
}

View File

@ -0,0 +1,33 @@
syntax = "proto3";
package bilibili.pgc.service.premiere.v1;
//
service Premiere {
//
rpc Status (PremiereStatusReq) returns (PremiereStatusReply);
}
// -
message PremiereStatusReq {
// epid
int64 ep_id = 1;
}
// -
message PremiereStatusReply {
// ms progress - delay_time
int64 progress = 1;
// ms
int64 start_time = 2;
// ms
int64 delay_time = 3;
// 线
int64 online_count = 4;
//
// 1: 2: 3: 4:
int32 status = 5;
//
// 1: 2:
int32 after_premiere_type = 6;
}