返回提交历史
Added
grpc_api/bilibili/app/distribution/setting/download.proto
+11
-0
Added
grpc_api/bilibili/app/distribution/setting/dynamic.proto
+17
-0
Added
grpc_api/bilibili/app/distribution/setting/experimental.proto
+65
-0
Added
grpc_api/bilibili/app/distribution/setting/internaldevice.proto
+11
-0
Added
grpc_api/bilibili/app/distribution/setting/night.proto
+11
-0
Added
grpc_api/bilibili/app/distribution/setting/other.proto
+25
-0
Added
grpc_api/bilibili/app/distribution/setting/pegasus.proto
+41
-0
Added
grpc_api/bilibili/app/distribution/setting/play.proto
+58
-0
Added
grpc_api/bilibili/app/distribution/setting/privacy.proto
+20
-0
Added
grpc_api/bilibili/app/distribution/setting/search.proto
+19
-0
Added
grpc_api/bilibili/app/distribution/v1/distribution.proto
+156
-0
XFEstudio/bilibili-API-collect
add: grpc proto distribution (#646)
fcbbdfe
代码差异
11 个文件
+434
-0
@@ -0,0 +1,11 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.download;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message DownloadSettingsConfig {
9
//
10
bilibili.app.distribution.v1.BoolValue enable_download_auto_start = 1;
11
}
@@ -0,0 +1,17 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.dynamic;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message DynamicAutoPlay {
9
//
10
bilibili.app.distribution.v1.Int64Value value = 1;
11
}
12
13
//
14
message DynamicDeviceConfig {
15
//
16
DynamicAutoPlay auto_play = 1;
17
}
@@ -0,0 +1,65 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.experimental;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message DynamicSelect {
9
//
10
bilibili.app.distribution.v1.BoolValue fold = 1;
11
}
12
13
//
14
message Exp {
15
//
16
bilibili.app.distribution.v1.Int64Value id = 1;
17
//
18
bilibili.app.distribution.v1.Int32Value bucket = 2;
19
}
20
21
//
22
message ExperimentalConfig {
23
//
24
bilibili.app.distribution.v1.StringValue flag = 1;
25
//
26
repeated Exp exps = 2;
27
}
28
29
//
30
message MultipleTusConfig {
31
//
32
TopLeft top_left = 1;
33
//
34
DynamicSelect dynamic_select = 2;
35
}
36
37
// APP首页头像跳转信息
38
message TopLeft {
39
//
40
bilibili.app.distribution.v1.StringValue url = 1;
41
//
42
bilibili.app.distribution.v1.StringValue story_foreground_image = 2;
43
//
44
bilibili.app.distribution.v1.StringValue story_background_image = 3;
45
//
46
bilibili.app.distribution.v1.StringValue listen_foreground_image = 4;
47
//
48
bilibili.app.distribution.v1.StringValue listen_background_image = 5;
49
//
50
bilibili.app.distribution.v1.StringValue ios_story_foreground_image = 6;
51
//
52
bilibili.app.distribution.v1.StringValue ios_story_background_image = 7;
53
//
54
bilibili.app.distribution.v1.StringValue ios_listen_foreground_image = 8;
55
//
56
bilibili.app.distribution.v1.StringValue ios_listen_background_image = 9;
57
//
58
bilibili.app.distribution.v1.StringValue goto = 10;
59
//
60
bilibili.app.distribution.v1.StringValue url_v2 = 11;
61
//
62
bilibili.app.distribution.v1.Int64Value goto_v2 = 12;
63
//
64
bilibili.app.distribution.v1.StringValue badge = 13;
65
}
@@ -0,0 +1,11 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.internaldevice;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message InternalDeviceConfig {
9
// 首次启动时间
10
bilibili.app.distribution.v1.Int64Value fts = 1;
11
}
@@ -0,0 +1,11 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.night;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message NightSettingsConfig {
9
//
10
bilibili.app.distribution.v1.BoolValue is_night_follow_system = 1;
11
}
@@ -0,0 +1,25 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.other;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message OtherSettingsConfig {
9
//
10
bilibili.app.distribution.v1.Int64Value watermark_type = 1;
11
//
12
bilibili.app.distribution.v1.Int64Value web_image_quality_type = 2;
13
//
14
bilibili.app.distribution.v1.BoolValue enable_read_pasteboard = 3;
15
//
16
bilibili.app.distribution.v1.BoolValue paste_auto_jump = 4;
17
//
18
bilibili.app.distribution.v1.BoolValue mini_screen_play_when_back = 5;
19
//
20
bilibili.app.distribution.v1.BoolValue enable_resume_playing = 6;
21
//
22
bilibili.app.distribution.v1.BoolValue enable_wifi_auto_update = 7;
23
//
24
bilibili.app.distribution.v1.BoolValue enable_guide_screenshot_share = 8;
25
}
@@ -0,0 +1,41 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.pegasus;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message FeedModeValue {
9
//
10
bilibili.app.distribution.v1.Int64Value value = 1;
11
}
12
13
//
14
message PegasusAutoPlay {
15
//
16
bilibili.app.distribution.v1.Int64Value single = 1;
17
//
18
bilibili.app.distribution.v1.Int64Value double = 2;
19
//
20
bilibili.app.distribution.v1.BoolValue single_affected_by_server_side = 3;
21
//
22
bilibili.app.distribution.v1.BoolValue double_affected_by_server_side = 4;
23
}
24
25
//
26
message PegasusColumnValue {
27
//
28
bilibili.app.distribution.v1.Int64Value value = 1;
29
//
30
bilibili.app.distribution.v1.BoolValue affected_by_server_side = 2;
31
}
32
33
//
34
message PegasusDeviceConfig {
35
//
36
PegasusColumnValue column = 1;
37
//
38
FeedModeValue mode = 2;
39
//
40
PegasusAutoPlay auto_play = 3;
41
}
@@ -0,0 +1,58 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.play;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
// 云端保存的播放器配置
8
message CloudPlayConfig {
9
// 启用杜比全景声
10
bilibili.app.distribution.v1.BoolValue enable_panorama = 1;
11
// 启用杜比音效
12
bilibili.app.distribution.v1.BoolValue enable_dolby = 2;
13
// 启用震动
14
bilibili.app.distribution.v1.BoolValue enable_shake = 3;
15
// 启用后台播放
16
bilibili.app.distribution.v1.BoolValue enable_background = 4;
17
// 启用HIRES
18
bilibili.app.distribution.v1.BoolValue enable_loss_less = 5;
19
}
20
21
// 播放器策略配置
22
message PlayConfig {
23
//
24
bilibili.app.distribution.v1.BoolValue should_auto_play = 1;
25
//
26
bilibili.app.distribution.v1.BoolValue should_auto_fullscreen = 2;
27
//
28
bilibili.app.distribution.v1.BoolValue enable_playurl_https = 3;
29
//
30
bilibili.app.distribution.v1.BoolValue enable_danmaku_interaction = 4;
31
//
32
bilibili.app.distribution.v1.Int64Value small_screen_status = 5;
33
//
34
bilibili.app.distribution.v1.Int64Value player_codec_mode_key = 6;
35
//
36
bilibili.app.distribution.v1.BoolValue enable_gravity_rotate_screen = 7;
37
//
38
bilibili.app.distribution.v1.BoolValue enable_danmaku_monospaced = 8;
39
//
40
bilibili.app.distribution.v1.BoolValue enable_edit_subtitle = 9;
41
//
42
bilibili.app.distribution.v1.BoolValue enable_subtitle = 10;
43
//
44
bilibili.app.distribution.v1.Int64Value color_filter = 11;
45
//
46
bilibili.app.distribution.v1.BoolValue should_auto_story = 12;
47
//
48
bilibili.app.distribution.v1.BoolValue landscape_auto_story = 13;
49
//
50
bilibili.app.distribution.v1.BoolValue volume_balance = 14;
51
}
52
53
// 灰度测试特殊功能?
54
message SpecificPlayConfig {
55
//
56
bilibili.app.distribution.v1.BoolValue enable_segmented_section = 1;
57
}
58
@@ -0,0 +1,20 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.privacy;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message MidPrivacySettingsConfig {
9
//
10
bilibili.app.distribution.v1.BoolValue recommend_to_known = 1;
11
}
12
13
//
14
message PrivacySettingsConfig {
15
//
16
bilibili.app.distribution.v1.BoolValue ad_recommand_store = 1;
17
// 传感器权限
18
bilibili.app.distribution.v1.BoolValue sensor_access = 2;
19
20
}
@@ -0,0 +1,19 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.setting.search;
4
5
import "bilibili/app/distribution/v1/distribution.proto";
6
7
//
8
message SearchAutoPlay {
9
//
10
bilibili.app.distribution.v1.Int64Value value = 1;
11
//
12
bilibili.app.distribution.v1.BoolValue affected_by_server_side = 2;
13
}
14
15
//
16
message SearchDeviceConfig {
17
//
18
SearchAutoPlay auto_play = 1;
19
}
@@ -0,0 +1,156 @@
1
syntax = "proto3";
2
3
package bilibili.app.distribution.v1;
4
5
// APP配置
6
service Distribution {
7
// 获取云端储存的用户偏好
8
rpc GetUserPreference (GetUserPreferenceReq) returns (GetUserPreferenceReply);
9
// 设定用户偏好
10
rpc SetUserPreference (SetUserPreferenceReq) returns (SetUserPreferenceReply);
11
// 获取云控配置
12
rpc UserPreference (UserPreferenceReq) returns (UserPreferenceReply);
13
}
14
15
//
16
message GetUserPreferenceReq {
17
//
18
repeated string type_url = 1;
19
//
20
map<string, string> extra_context = 2;
21
}
22
23
//
24
message GetUserPreferenceReply {
25
// 对应 GetUserPreferenceReq 的请求的类型
26
repeated google.protobuf.Any value = 1;
27
}
28
29
//
30
message SetUserPreferenceReq {
31
//
32
repeated google.protobuf.Any preference = 1;
33
//
34
map<string, string> extra_context = 2;
35
}
36
37
//
38
message SetUserPreferenceReply {}
39
40
//
41
message UserPreferenceReq {}
42
43
// 云控配置下发
44
message UserPreferenceReply {
45
// 具体解码需要根据实际请求 type_url 来判断
46
repeated google.protobuf.Any preference = 1;
47
}
48
49
//
50
message BoolValue {
51
//
52
bool value = 1;
53
//
54
int64 last_modified = 2;
55
//
56
bool default_value = 3;
57
//
58
string exp = 4;
59
}
60
61
//
62
message BytesValue {
63
//
64
bytes value = 1;
65
//
66
int64 last_modified = 2;
67
//
68
bytes default_value = 3;
69
//
70
string exp = 4;
71
}
72
73
//
74
message DoubleValue {
75
//
76
double value = 1;
77
//
78
int64 last_modified = 2;
79
//
80
double default_value = 3;
81
//
82
string exp = 4;
83
}
84
85
//
86
message FloatValue {
87
//
88
float value = 1;
89
//
90
int64 last_modified = 2;
91
//
92
float default_value = 3;
93
//
94
string exp = 4;
95
}
96
97
//
98
message Int32Value {
99
//
100
int32 value = 1;
101
//
102
int64 last_modified = 2;
103
//
104
int32 default_value = 3;
105
//
106
string exp = 4;
107
}
108
109
//
110
message Int64Value {
111
//
112
int64 value = 1;
113
//
114
int64 last_modified = 2;
115
//
116
int64 default_value = 3;
117
//
118
string exp = 4;
119
}
120
121
//
122
message StringValue {
123
//
124
string value = 1;
125
//
126
int64 last_modified = 2;
127
//
128
string default_value = 3;
129
//
130
string exp = 4;
131
}
132
133
//
134
message UInt32Value {
135
//
136
uint32 value = 1;
137
//
138
int64 last_modified = 2;
139
//
140
uint32 default_value = 3;
141
//
142
string exp = 4;
143
}
144
145
//
146
message UInt64Value {
147
//
148
uint64 value = 1;
149
//
150
int64 last_modified = 2;
151
//
152
uint64 default_value = 3;
153
//
154
string exp = 4;
155
}
156