更新部分proto结构体文件
This commit is contained in:
39
grpc_api/bilibili/metadata/device/device.proto
Normal file
39
grpc_api/bilibili/metadata/device/device.proto
Normal 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;
|
||||
}
|
||||
19
grpc_api/bilibili/metadata/fawkes/fawkes.proto
Normal file
19
grpc_api/bilibili/metadata/fawkes/fawkes.proto
Normal 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;
|
||||
}
|
||||
26
grpc_api/bilibili/metadata/locale/locale.proto
Normal file
26
grpc_api/bilibili/metadata/locale/locale.proto
Normal 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;
|
||||
}
|
||||
22
grpc_api/bilibili/metadata/metadata.proto
Normal file
22
grpc_api/bilibili/metadata/metadata.proto
Normal 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;
|
||||
}
|
||||
35
grpc_api/bilibili/metadata/network/network.proto
Normal file
35
grpc_api/bilibili/metadata/network/network.proto
Normal 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;
|
||||
}
|
||||
22
grpc_api/bilibili/metadata/restriction/restriction.proto
Normal file
22
grpc_api/bilibili/metadata/restriction/restriction.proto
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user