update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ
2022-02-02 20:25:16 +08:00
parent 57f264f996
commit c14f8c455e
14 changed files with 1492 additions and 846 deletions

View File

@@ -36,4 +36,6 @@ message Device {
string version_name = 13;
// 设备指纹, 不区分本地或远程设备指纹,作为推送目标的索引
string fp = 14;
//
int64 fts = 15;
}

View File

@@ -2,6 +2,15 @@ syntax = "proto3";
package bilibili.metadata.fawkes;
//
message FawkesReply {
// 客户端在fawkes系统中对应的已发布最新的config版本号
string config = 1;
// 客户端在fawkes系统中对应的已发布最新的ff版本号
string ff = 2;
}
//
message FawkesReq {
// 客户端在fawkes系统的唯一名
string appkey = 1;
@@ -10,10 +19,3 @@ message FawkesReq {
// 启动id
string session_id = 3;
}
message FawkesReply {
// 客户端在fawkes系统中对应的已发布最新的config版本号
string config = 1;
// 客户端在fawkes系统中对应的已发布最新的ff版本号
string ff = 2;
}

View File

@@ -2,16 +2,6 @@ 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 {
@@ -24,3 +14,13 @@ message Locale {
// 时区
string timezone = 4;
}
// 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;
}

View File

@@ -2,6 +2,17 @@ syntax = "proto3";
package bilibili.metadata.network;
// 网络类型标识
// gRPC头部:x-bili-network-bin
message Network {
// 网络类型
NetworkType type = 1;
// 免流类型
TFType tf = 2;
// 运营商
string oid = 3;
}
// 网络类型
enum NetworkType {
NT_UNKNOWN = 0; // 未知
@@ -22,14 +33,3 @@ enum TFType {
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,17 @@
syntax = "proto3";
package bilibili.metadata.parabox;
//
message Exp {
//
int64 id = 1;
//
int32 bucket = 2;
}
//
message Exps {
//
repeated Exp exps = 1;
}

View File

@@ -19,4 +19,6 @@ message Restriction {
ModeType mode = 3;
// app 审核review状态
bool review = 4;
//
bool disable_rcmd = 5;
}