update grpc message from 7.29.0 (#754)

This commit is contained in:
陈寒彤 2023-07-26 11:45:14 +08:00 committed by GitHub
parent 8ba78600ff
commit ed307dbc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 308 additions and 1 deletions

View File

@ -0,0 +1,39 @@
syntax = "proto3";
package bilibili.api.ticket.v1;
service Ticket {
// Ticket
rpc GetTicket (GetTicketRequest) returns (GetTicketResponse);
}
//
message GetTicketRequest {
// :
// + x-fingerprint(, 使 datacenter.hakase.protobuf.AndroidDeviceInfo )
// + x-exbadbasket(?)
map<String, bytes> context = 1;
// ec01
string key_id = 2;
//
bytes sign = 3;
//
string token = 4;
}
//
message GetTicketResponse {
//
message Context {
//
string v_voucher = 1;
}
// x-bili-ticket
string ticket = 1;
//
int64 created_at = 2;
//
int64 ttl = 3;
//
Context context = 4;
}

View File

@ -16,6 +16,6 @@ message FawkesReq {
string appkey = 1;
// fawkes系统中的环境参数, `prod`
string env = 2;
// id, 32 0~9, a~z
// id, 8 0~9, a~z
string session_id = 3;
}

View File

@ -0,0 +1,268 @@
syntax = "proto3";
package datacenter.hakase.protobuf;
message AndroidDeviceInfo {
// ?
string sdkver = 1;
// id
// HD OTT TV野版 HD
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 30
string app_id = 2;
// , "7.39.0"
string app_version = 3;
// , "7390300"
string app_version_code = 4;
// mid
string mid = 5;
// , "master"
string chid = 6;
// APP
int64 fts = 7;
// fp, buvid_local
string buvid_local = 8;
// 0
int32 first = 9;
// , "tv.danmaku.bili"
string proc = 10;
// , toString()
// """["dummy0,fe80::18d8:6ff:fe46:c2ba%dummy0,", "wlan0,fe80::a0f4:6dff:fea8:2d37%wlan0,192.168.1.5,", "lo,::1,127.0.0.1,", "rmnet_ims00,fe80::5a02:3ff:fe04:512%rmnet_ims00,2409:815a:7c38:cee1:1773:d0b9:d163:b023,"]"""
string net = 11;
// 线(`Build.getRadioVersion()`). `21C20B686S000C000,21C20B686S000C000`.
string band = 12;
// OS , "12"
string osver = 13;
//
int64 t = 14;
// CPU
int32 cpu_count = 15;
// Model, "NOH-AN01"
string model = 16;
// , "HUAWEI"
string brand = 17;
// , "1288,2646,560", "{width},{height},{pixel}"
string screen = 18;
// CPU ,
string cpu_model = 19;
// MAC,
string btmac = 20;
// Linux bootid
int64 boot = 21;
// (?), "000"
string emu = 22;
// MCC MNC, 46007
string oid = 23;
// , "WIFI", bilibili.metadata.network.NetworkType
string network = 24;
// (Byte)
int64 mem = 25;
// , toString()
// """["accelerometer-icm20690,invensense", "akm-akm09918,akm", "orientation,huawei", "als-tcs3718,ams", "proximity-tcs3718,ams", "gyroscope-icm20690,invensense", "gravity,huawei", "linear Acceleration,huawei", "rotation Vector,huawei", "airpress-bmp280,bosch", "HALL sensor,huawei", "uncalibrated Magnetic Field,Asahi Kasei Microdevices", "game Rotation Vector,huawei", "uncalibrated Gyroscope,STMicroelectronics", "significant Motion,huawei", "step Detector,huawei", "step counter,huawei", "geomagnetic Rotation Vector,huawei", "phonecall sensor,huawei", "RPC sensor,huawei", "agt,huawei", "color sensor,huawei", "uncalibrated Accelerometer,huawei", "drop sensor,huawei"]"""
string sensor = 26;
// CPU , 2045000
int64 cpu_freq = 27;
// CPU , "ARM"
string cpu_vendor = 28;
// ?
string sim = 29;
//
int32 brightness = 30;
// Android Build.prop , key net.hostname, ro.boot.hardware, etc.
// key-value
map<string, string> props = 31;
// , key product, cpu_model_name, display, cpu_abi_list, etc.
// key-value
map<string, string> sys = 32;
// Wifi MAC, ,
string wifimac = 33;
// Android ID
string adid = 34;
// OS , "android"
string os = 35;
// IMEI, ,
string imei = 36;
// ?,
string cell = 37;
// IMSI, ,
string imsi = 38;
// ICCID, ,
string iccid = 39;
// ,
int32 camcnt = 40;
// ,
string campx = 41;
// (Byte)
int64 total_space = 42;
// ?, "false"
string axposed = 43;
// ?,
string maps = 44;
// : "/data/user/0/tv.danmaku.bili/files"
string files = 45;
// (?), "0"
string virtual = 46;
// , "[]"
string virtualproc = 47;
// ?,
string gadid = 48;
// ?,
string glimit = 49;
// APP , "[]"
string apps = 50;
// GUID
string guid = 51;
// ?, UID
string uid = 52;
// ?,
int32 root = 53;
// (?),
string camzoom = 54;
// (?),
string camlight = 55;
// OAID , T/TAF 095-2021 , "00000000-0000-0000-0000-000000000000"
string oaid = 56;
// UDID , T/TAF 095-2021 ,
string udid = 57;
// VAID , T/TAF 095-2021 ,
string vaid = 58;
// AAID, , T/TAF 095-2021 ,
string aaid = 59;
// ?, "[]"
string androidapp20 = 60;
// ?,
int32 androidappcnt = 61;
// ?, "[]"
string androidsysapp20 = 62;
// , 100
int32 battery = 63;
// Android , "BATTERY_STATUS_DISCHARGING"
string battery_state = 64;
// Wifi BSSID, ,
string bssid = 65;
// ?, "NOH-AN01 4.0.0.102(DEVC00E100R7P5)"
string build_id = 67;
// ISO , "CN"
string country_iso = 68;
// (Byte)
int64 free_memory = 70;
// (Byte)
string fstorage = 71;
// Linux kernel version
string kernel_version = 74;
// , "zh"
string languages = 75;
// Wifi MAC(?),
string mac = 76;
// Wifi SSID,
string ssid = 79;
// ?,
int32 systemvolume = 80;
// Wifi MAC (?),
string wifimaclist = 81;
// (Byte)
int64 memory = 82;
// , "100"
string str_battery = 83;
// Root(?),
bool is_root = 84;
//
string str_brightness = 85;
// id, 2
string str_app_id = 86;
// IP(?),
string ip = 87;
//
string user_agent = 88;
// ?, : "1.25"
string light_intensity = 89;
// xyz
repeated float device_angle = 90;
// GPS ( GPS ?), "1"
int64 gps_sensor = 91;
// (?), "1"
int64 speed_sensor = 92;
// 线(线?), "1"
int64 linear_speed_sensor = 93;
// (?), "1"
int64 gyroscope_sensor = 94;
// (?), "1"
int64 biometric = 95;
// (?), "touchid"
repeated string biometrics = 96;
// Crash Dump
int64 last_dump_ts = 97;
//
string location = 98;
//
string country = 99;
//
string city = 100;
// ?, 0
int32 data_activity_state = 101;
// ?, 0
int32 data_connect_state = 102;
// ?, 0
int32 data_network_type = 103;
// ?, 0
int32 voice_network_type = 104;
// ?, 0
int32 voice_service_state = 105;
// USB , "1", "0"
int32 usb_connected = 106;
// ADB , "1", "0"
int32 adb_enabled = 107;
// UI (?), "14.0.0"
string ui_version = 108;
//
repeated string accessibility_service = 109;
// ( sensor )
repeated SensorInfo sensors_info = 110;
// DrmId
string drmid = 111;
//
bool battery_present = 112;
// , "Li-poly"
string battery_technology = 113;
// (m)
int32 battery_temperature = 114;
// (mV)
int32 battery_voltage = 115;
// (?), 0
int32 battery_plugged = 116;
// , 2
int32 battery_health = 117;
//
repeated string cpu_abi_list = 118;
//
string cpu_abi_libc = 119;
//
string cpu_abi_libc64 = 120;
//
string cpu_processor = 121;
//
string cpu_model_name = 122;
//
string cpu_hardware = 123;
//
string cpu_features = 124;
}
//
message SensorInfo {
// , "rotation Vector"
string name = 1;
//
string vendor = 2;
//
int32 version = 3;
//
int32 type = 4;
//
float max_range = 5;
//
float resolution = 6;
// (mA)
float power = 7;
//
int32 min_delay = 8;
}