更新部分proto结构体文件

This commit is contained in:
社会易姐QwQ 2021-06-11 01:03:04 +08:00
parent 7d06579223
commit 555f7ae056
23 changed files with 1926 additions and 2360 deletions

View File

@ -1,62 +0,0 @@
syntax = "proto3";
package bilibili.account.fission.v1;
//Fission裂变
service Fission {
//
//
rpc entrance (EntranceReq) returns (EntranceReply);
//
//
rpc window (WindowReq) returns (WindowReply);
}
//-
message EntranceReq {
}
//-
message EntranceReply {
//
string icon = 1;
//
string name = 2;
//
string url = 3;
//
AnimateIcon animateIcon = 4;
}
//-
message WindowReq {
}
//-
message WindowReply {
//
//0:
//1:
int32 type = 1;
//
string url = 2;
//
string reportData = 3;
}
//
message AnimateIcon {
//icon文件
string icon = 1;
//json文件
string json = 2;
}

View File

@ -0,0 +1,48 @@
syntax = "proto3";
package bilibili.account.fission.v1;
//Fission裂变
service Fission {
//
rpc Entrance (EntranceReq) returns (EntranceReply);
//
rpc Window (WindowReq) returns (WindowReply);
}
// -
message EntranceReq {}
// -
message EntranceReply {
//
string icon = 1;
//
string name = 2;
//
string url = 3;
//
AnimateIcon animateIcon = 4;
}
// -
message WindowReq {}
//-
message WindowReply {
//
// 0: 1:
int32 type = 1;
//
string url = 2;
//
string reportData = 3;
}
//
message AnimateIcon {
// icon文件
string icon = 1;
// json文件
string json = 2;
}

View File

@ -1,103 +0,0 @@
syntax = "proto3";
package bilibili.api.player.v1;
//
service Heartbeat {
//
//
rpc mobile (HeartbeatReq) returns (HeartbeatReply);
}
//-
message HeartbeatReq {
//
int64 serverTime = 1;
//
string session = 2;
//
int64 mid = 3;
//
int64 aid = 4;
//
int64 cid = 5;
//
string sid = 6;
//
int64 epid = 7;
//
string type = 8;
//
int32 subType = 9;
//
int32 quality = 10;
//
int64 totalTime = 11;
//
int64 pausedTime = 12;
//
int64 playedTime = 13;
//
int64 videoDuration = 14;
//
string playType = 15;
//
int64 networkType = 16;
//
int64 lastPlayProgressTime = 17;
//
int64 maxPlayProgressTime = 18;
//
int32 from = 19;
//
string fromSpmid = 20;
//
string spmid = 21;
//
string epidStatus = 22;
//
string playStatus = 23;
//
string userStatus = 24;
//
int64 actualPlayedTime = 25;
//
int32 autoPlay = 26;
//
int64 listPlayTime = 27;
//
int64 detailPlayTime = 28;
}
//-
message HeartbeatReply {
//
int64 ts = 1;
}

View File

@ -5,79 +5,65 @@ package bilibili.api.probe.v1;
//
service Probe {
//
rpc TestCode (CodeReq) returns (CodeReply);
//
rpc testCode (CodeReq) returns (CodeReply);
rpc TestReq (ProbeReq) returns (ProbeReply);
//
rpc TestStream (ProbeStreamReq) returns (ProbeStreamReply);
//
rpc testReq (ProbeReq) returns (ProbeReply);
//
//
rpc testStream (ProbeStreamReq) returns (ProbeStreamReply);
//
//
rpc testSub (ProbeSubReq) returns (ProbeSubReply);
rpc TestSub (ProbeSubReq) returns (ProbeSubReply);
}
//-
//
message CodeReq {
//
int64 code = 1;
}
//-
message CodeReply {
//
message CodeReply {}
}
//-
//
message ProbeReq {
//
int64 mid = 1;
//
string buvid = 2;
}
//-
//
message ProbeReply {
//
string content = 1;
//
int64 timestamp = 2;
}
//-
//
message ProbeStreamReq {
//
int64 mid = 1;
//
int64 sequence = 2;
}
//-
//
message ProbeStreamReply {
//
int64 sequence = 1;
//
int64 timestamp = 2;
//
string content = 3;
}
//-
//
message ProbeSubReq {
//
int64 buvid = 1;
}
//-
//
message ProbeSubReply {
//
int64 messageId = 1;

View File

@ -0,0 +1,16 @@
syntax = "proto3";
package bilibili.app.archive.middleware.v1;
//
message PlayerArgs {
//
int64 qn = 1;
//
int64 fnver = 2;
//
int64 fnval = 3;
// url是否强制使用域名
// 0:使 1:http域名 2:https域名
int64 force_host = 4;
}

View File

@ -1,243 +0,0 @@
//稿v1模块
syntax = "proto3";
package bilibili.app.archive.v1;
//稿
message Arc{
//稿avid
int64 aid = 1;
//稿P数
int64 videos = 2;
//tid
int32 typeId = 3;
//
string typeName = 4;
//稿
//1: 2:
int32 copyright = 5;
//稿url
string pic = 6;
//稿
string title = 7;
//稿
int64 pubdate = 8;
//稿
int64 ctime = 9;
//稿
string desc = 10;
//稿
int32 state = 11;
//访
//0: 10000:
int32 access = 12;
//
int32 attribute = 13;
//
string tag = 14;
//
repeated string tags = 15;
//稿
int64 duration = 16;
//id
int64 missionId = 17;
//id
int64 orderId = 18;
//pgc稿件强制重定向url
string redirectUrl = 19;
//
int64 forward = 20;
//
Rights rights = 21;
//UP主信息
Author author = 22;
//
Stat stat = 23;
//
string reportResult = 24;
//稿
string dynamic = 25;
//稿1P cid
int64 firstCid = 26;
//稿1P
Dimension dimension = 27;
//
repeated StaffInfo staffInfo = 28;
//ugc合集id
int64 seasonId = 29;
//
int64 attributeV2 = 30;
}
//
message Author{
//UID
int64 mid = 1;
//
string name = 2;
//url
string face = 3;
}
//
message Dimension{
//
int64 width = 1;
//
int64 height = 2;
//
//0: 1:
int64 rotate = 3;
}
//P视频
message Page{
//cid
int64 cid = 1;
//P序号
int32 page = 2;
//
//vupload:B站 qq: hunan:
string from = 3;
//P标题
string part = 4;
//P时长
int64 duration = 5;
//vid
string vid = 6;
//P简介
string desc = 7;
//url
string webLink = 8;
//P分辨率
Dimension dimension = 9;
}
//稿
message Rights{
//
int32 bp = 1;
//
int32 elec = 2;
//
int32 download = 3;
//
int32 movie = 4;
//pgc稿件需要付费
int32 pay = 5;
//
int32 hd5 = 6;
//
int32 noReprint = 7;
//
int32 autoplay = 8;
//ugc稿件需要付费
int32 ugcPay = 9;
//
int32 isCooperation = 10;
//ugc付费预览
int32 ugcPayPreview = 11;
//
int32 noBackground = 12;
}
//
message StaffInfo{
//UID
int64 mid = 1;
//
string title = 2;
//
int64 attribute = 3;
}
//
message Stat{
//稿avid
int64 aid = 1;
//
int32 view = 2;
//
int32 danmaku = 3;
//
int32 reply = 4;
//
int32 fav = 5;
//
int32 coin = 6;
//
int32 share = 7;
//
int32 nowRank = 8;
//
int32 hisRank = 9;
//
int32 like = 10;
//
//0
int32 dislike = 11;
}

View File

@ -0,0 +1,178 @@
syntax = "proto3";
package bilibili.app.archive.v1;
// 稿
message Arc{
// 稿avid
int64 aid = 1;
// 稿P数
int64 videos = 2;
// id
int32 typeId = 3;
//
string typeName = 4;
// 稿
// 1: 2:
int32 copyright = 5;
// 稿url
string pic = 6;
// 稿
string title = 7;
// 稿
int64 pubdate = 8;
// 稿
int64 ctime = 9;
// 稿
string desc = 10;
// 稿
int32 state = 11;
// 访
// 0: 10000:
int32 access = 12;
// ()
int32 attribute = 13;
//
string tag = 14;
//
repeated string tags = 15;
// 稿()
int64 duration = 16;
// id
int64 missionId = 17;
// id
int64 orderId = 18;
// PGC稿件强制重定向url()
string redirectUrl = 19;
//
int64 forward = 20;
//
Rights rights = 21;
// UP主信息
Author author = 22;
//
Stat stat = 23;
//
string reportResult = 24;
// 稿
string dynamic = 25;
// 稿1P cid
int64 firstCid = 26;
// 稿1P
Dimension dimension = 27;
//
repeated StaffInfo staffInfo = 28;
// UGC合集id
int64 seasonId = 29;
// ()
int64 attributeV2 = 30;
}
// UP主信息
message Author{
// UP主mid
int64 mid = 1;
// UP主昵称
string name = 2;
// UP主头像url
string face = 3;
}
//
message Dimension{
//
int64 width = 1;
//
int64 height = 2;
//
// 0: 1:
int64 rotate = 3;
}
// P信息
message Page{
// cid
int64 cid = 1;
// P序号
int32 page = 2;
//
// vupload:B站 qq: hunan:
string from = 3;
// P标题
string part = 4;
// P时长()
int64 duration = 5;
// vid
string vid = 6;
// P简介
string desc = 7;
// url
string webLink = 8;
// P分辨率
Dimension dimension = 9;
}
// 稿
message Rights{
//
int32 bp = 1;
//
int32 elec = 2;
//
int32 download = 3;
//
int32 movie = 4;
// PGC稿件需要付费
int32 pay = 5;
//
int32 hd5 = 6;
//
int32 noReprint = 7;
//
int32 autoplay = 8;
// UGC稿件需要付费
int32 ugcPay = 9;
// 稿
int32 isCooperation = 10;
// UGC付费预览
int32 ugcPayPreview = 11;
//
int32 noBackground = 12;
}
//
message StaffInfo{
// mid
int64 mid = 1;
//
string title = 2;
//
// 0: 1:
int64 attribute = 3;
}
//
message Stat{
// 稿avid
int64 aid = 1;
//
int32 view = 2;
//
int32 danmaku = 3;
//
int32 reply = 4;
//
int32 fav = 5;
//
int32 coin = 6;
//
int32 share = 7;
//
int32 nowRank = 8;
//
int32 hisRank = 9;
//
int32 like = 10;
// (0)
int32 dislike = 11;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,42 +0,0 @@
syntax = "proto3";
package bilibili.app.wall.v1;
//
service Wall {
//
//
rpc ruleInfo (RuleRequest) returns (RulesReply);
}
//-
message RuleRequest {
}
//-
message RulesReply {
//
map<string,RulesInfo> rulesInfo = 1;
}
//
message RuleInfo {
//
bool tf = 1;
//
string m = 2;
//
string a = 3;
//
string p = 4;
}
//
message RulesInfo {
//
repeated RuleInfo rulesInfo = 1;
}

View File

@ -0,0 +1,38 @@
syntax = "proto3";
package bilibili.app.wall.v1;
//
service Wall {
//
rpc RuleInfo (RuleRequest) returns (RulesReply);
}
// -
message RuleRequest {}
// -
message RulesReply {
// ISP的免流规则信息组
// ISP如: cu ct cm
map<string,RulesInfo> rulesInfo = 1;
}
//
message RuleInfo {
//
bool tf = 1;
//
// break: replace: proxy:
string m = 2;
//
string a = 3;
//
string p = 4;
}
//
message RulesInfo {
//
repeated RuleInfo rulesInfo = 1;
}

View File

@ -1,184 +0,0 @@
syntax = "proto3";
package bilibili.metadata;
/**********环境参数1**********/
//x-bili-device-bin
message Device{
//id
int32 appId = 1;
//id
int32 build = 2;
//buvid
string buvid = 3;
//
string mobiApp = 4;
//
string platform = 5;
//
string device = 6;
//
string channel = 7;
//
string brand = 8;
//
string model = 9;
//
string osver = 10;
//
string fpLocal = 11;
//
string fpRemote = 12;
//APP版本号
string versionName = 13;
}
/**********环境参数2**********/
//x-bili-metadata-bin
message Metadata{
//Token
string accessKey = 1;
//
string mobiApp = 2;
//
string device = 3;
//id
int32 build = 4;
//
string channel = 5;
//buvid
string buvid = 6;
//
string platform = 7;
}
/**********区域标识**********/
//x-bili-locale-bin
message Locale {
//App设置的locale
LocaleIds c_locale = 1;
//locale
LocaleIds s_locale = 2;
//sim卡的国家码+
string sim_code = 3;
//
string timezone = 4;
}
//
message LocaleIds{
//
string language = 1;
//
string script = 2;
//
string region = 3;
}
/**********网络类型标识**********/
//x-bili-network-bin
message Network{
//
Type type = 1;
//
TFType tf = 2;
//
string oid = 3;
}
//
enum Type{
//
NT_UNKNOWN = 0;
//wifi
WIFI = 1;
//
CELLULAR = 2;
//
OFFLINE = 3;
//
ETHERNET = 5;
//
OTHERNET = 4;
}
//
enum TFType {
//
TF_UNKNOWN = 0;
//
U_CARD = 1;
//
U_PKG = 2;
//
C_CARD = 3;
//
C_PKG = 4;
//
T_CARD = 5;
//
T_PKG = 6;
}
/**********限制条件**********/
message Restriction {
//
bool teenagers_mode = 1;
//
bool lessons_mode = 2;
//
ModeType mode = 3;
//app审核review状态
bool review = 4;
}
//
enum ModeType{
//
NORMAL = 0;
//
TEENAGERS = 1;
//
LESSONS = 2;
}

View File

@ -0,0 +1,39 @@
syntax = "proto3";
package bilibili.metadata.device;
//
// gRPC头部:x-bili-device-bin
message Device {
// id
// HD OTT TV野版 HD
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14
int32 app_id = 1;
// id
int32 build = 2;
// buvid
string buvid = 3;
//
string mobi_app = 4;
//
// ios android
string platform = 5;
//
string device = 6;
//
string channel = 7;
//
string brand = 8;
//
string model = 9;
//
string osver = 10;
//
string fp_local = 11;
//
string fp_remote = 12;
// APP版本号
string version_name = 13;
// ,
string fp = 14;
}

View File

@ -0,0 +1,19 @@
syntax = "proto3";
package bilibili.metadata.fawkes;
message FawkesReq {
// fawkes系统的唯一名
string appkey = 1;
// fawkes系统中的环境参数
string env = 2;
// id
string session_id = 3;
}
message FawkesReply {
// fawkes系统中对应的已发布最新的config版本号
string config = 1;
// fawkes系统中对应的已发布最新的ff版本号
string ff = 2;
}

View File

@ -0,0 +1,26 @@
syntax = "proto3";
package bilibili.metadata.locale;
// Defined by https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html
message LocaleIds {
// A language designator is a code that represents a language.
string language = 1;
// Writing systems.
string script = 2;
// A region designator is a code that represents a country or an area.
string region = 3;
}
//
// gRPC头部:x-bili-locale-bin
message Locale {
// App设置的locale
LocaleIds c_locale = 1;
// locale
LocaleIds s_locale = 2;
// sim卡的国家码+
string sim_code = 3;
//
string timezone = 4;
}

View File

@ -0,0 +1,22 @@
syntax = "proto3";
package bilibili.metadata;
//
// gRPC头部:x-bili-metadata-bin
message Metadata {
// Token
string access_key = 1;
//
string mobi_app = 2;
//
string device = 3;
// id
int32 build = 4;
//
string channel = 5;
// buvid
string buvid = 6;
//
string platform = 7;
}

View File

@ -0,0 +1,35 @@
syntax = "proto3";
package bilibili.metadata.network;
//
enum NetworkType {
NT_UNKNOWN = 0; //
WIFI = 1; // WIFI
CELLULAR = 2; //
OFFLINE = 3; //
OTHERNET = 4; //
ETHERNET = 5; //
}
//
enum TFType {
TF_UNKNOWN = 0; //
U_CARD = 1; //
U_PKG = 2; //
C_CARD = 3; //
C_PKG = 4; //
T_CARD = 5; //
T_PKG = 6; //
}
//
// gRPC头部:x-bili-network-bin
message Network {
//
NetworkType type = 1;
//
TFType tf = 2;
//
string oid = 3;
}

View File

@ -0,0 +1,22 @@
syntax = "proto3";
package bilibili.metadata.restriction;
//
enum ModeType {
NORMAL = 0; //
TEENAGERS = 1; //
LESSONS = 2; //
}
//
message Restriction {
//
bool teenagers_mode = 1;
//
bool lessons_mode = 2;
// ()
ModeType mode = 3;
// app review状态
bool review = 4;
}

View File

@ -1,18 +0,0 @@
syntax = "proto3";
package bilibili.rpc;
import "google/protobuf/any.proto";
//
//grpc-status-details-bin
message Status {
//
int32 code = 1;
//
string message = 2;
//
repeated google.protobuf.Any details = 3;
}

View File

@ -0,0 +1,16 @@
syntax = "proto3";
package bilibili.rpc;
import "google/protobuf/any.proto";
// gRPC Status
// status code是[UNKNOWN = 2]details为业务详细的错误信息proto any转换成业务码结构体
message Status {
//
int32 code = 1;
//
string message = 2;
//(messasge的套娃)
repeated google.protobuf.Any details = 3;
}

View File

@ -1,10 +0,0 @@
@ echo off
rem 递归编译proto
set lang="python"
set patch=%CD%
for /r %patch% %%a in (*.proto) do (
protoc -I %patch% --%lang%_out=. %%~fa
echo comp %%~fa
)
echo all done
pause >nul

View File

@ -1,6 +0,0 @@
#!/bin/bash
# 递归编译proto
lang='python'
patch=$(cd $(dirname $0); pwd)
find $patch -name '*.proto' -exec protoc -I $patch --${lang}_out=. {} \; -exec echo comp {} \;
echo 'all Done'