返回提交历史
Modified
grpc_api/bilibili/account/fission/v1/fission.proto
+64
-62
Modified
grpc_api/bilibili/api/probe/v1/probe.proto
+192
-138
Added
grpc_api/bilibili/app/click/v1/heartbeat.proto
+121
-0
Renamed
grpc_api/bilibili/app/playerunite/v1/playerunite.proto
+0
-0
Added
grpc_api/bilibili/app/show/mixture/v1/mixture.proto
+53
-0
Added
grpc_api/bilibili/app/viewunite/pgcanymodel.proto
+11
-0
Added
grpc_api/bilibili/app/viewunite/ugcanymodel.proto
+10
-0
Added
grpc_api/bilibili/app/viewunite/v1/viewunite.proto
+539
-0
Modified
grpc_api/bilibili/render/render.proto
+17
-1
XFEstudio/bilibili-API-collect
add: new united view grpc interface (#644)
* add: new united view grpc interface * add: 补全proto
65da316
代码差异
9 个文件
+1007
-201
@@ -1,62 +1,64 @@
1
syntax = "proto3";
2
3
package bilibili.account.fission.v1;
4
5
// Fission裂变
6
service Fission {
7
// 活动入口
8
rpc Entrance (EntranceReq) returns (EntranceReply);
9
// 首页弹窗
10
rpc Window (WindowReq) returns (WindowReply);
11
//
12
rpc Privacy(PrivacyReq) returns (PrivacyReply);
13
}
14
15
// 动画效果
16
message AnimateIcon {
17
// icon文件
18
string icon = 1;
19
// 动效json文件
20
string json = 2;
21
}
22
23
// 活动入口-响应
24
message EntranceReply {
25
// 展示图标
26
string icon = 1;
27
// 活动名称
28
string name = 2;
29
// 活动跳转链接
30
string url = 3;
31
// 动画效果
32
AnimateIcon animate_icon = 4;
33
}
34
35
// 活动入口-请求
36
message EntranceReq {}
37
38
//
39
message PrivacyReply {
40
//
41
string message = 1;
42
}
43
44
//
45
message PrivacyReq {
46
//
47
string activity_uid = 1;
48
}
49
50
//首页弹窗-响应
51
message WindowReply {
52
// 弹窗类型
53
// 0:弹窗 1:普通页面
54
int32 type = 1;
55
// 跳转链接
56
string url = 2;
57
// 上报数据字段
58
string report_data = 3;
59
}
60
61
// 首页弹窗-请求
62
message WindowReq {}
1
syntax = "proto3";
2
3
package bilibili.account.fission.v1;
4
5
// Fission裂变
6
service Fission {
7
// 活动入口
8
rpc Entrance (EntranceReq) returns (EntranceReply);
9
// 首页弹窗
10
rpc Window (WindowReq) returns (WindowReply);
11
//
12
rpc Privacy (PrivacyReq) returns (PrivacyReply);
13
}
14
15
// 动画效果
16
message AnimateIcon {
17
// icon文件
18
string icon = 1;
19
// 动效json文件
20
string json = 2;
21
}
22
23
// 活动入口-响应
24
message EntranceReply {
25
// 展示图标
26
string icon = 1;
27
// 活动名称
28
string name = 2;
29
// 活动跳转链接
30
string url = 3;
31
// 动画效果
32
AnimateIcon animate_icon = 4;
33
}
34
35
// 活动入口-请求
36
message EntranceReq {}
37
38
//
39
message PrivacyReply {
40
//
41
string message = 1;
42
}
43
44
//
45
message PrivacyReq {
46
//
47
string activity_uid = 1;
48
}
49
50
//首页弹窗-响应
51
message WindowReply {
52
// 弹窗类型
53
// 0:弹窗 1:普通页面
54
int32 type = 1;
55
// 跳转链接
56
string url = 2;
57
// 上报数据字段
58
string report_data = 3;
59
}
60
61
// 首页弹窗-请求
62
message WindowReq {
63
64
}
@@ -1,138 +1,192 @@
1
syntax = "proto3";
2
3
package bilibili.api.probe.v1;
4
5
//
6
service Probe {
7
//
8
rpc TestCode (CodeReq) returns (CodeReply);
9
//
10
rpc TestReq (ProbeReq) returns (ProbeReply);
11
//
12
rpc TestStream (ProbeStreamReq) returns (ProbeStreamReply);
13
//
14
rpc TestSub (ProbeSubReq) returns (ProbeSubReply);
15
}
16
17
//
18
enum Category {
19
CATEGORY_UNSPECIFIED = 0; //
20
CATEGORY_ONE = 1; //
21
CATEGORY_TWO = 2; //
22
CATEGORY_THREE = 3; //
23
}
24
25
//
26
message CodeReply {}
27
28
//
29
message CodeReq {
30
//
31
int64 code = 1;
32
}
33
34
//
35
message DynamicMessageUpdate {
36
//
37
SimpleMessage body = 1;
38
}
39
40
//
41
message Embedded {
42
//
43
bool bool_val = 1;
44
//
45
int32 int32_val = 2;
46
//
47
int64 int64_val = 3;
48
//
49
float float_val = 4;
50
//
51
double double_val = 5;
52
//
53
string string_val = 6;
54
//
55
repeated int32 repeated_int32_val = 8;
56
//
57
repeated string repeated_string_val = 12;
58
//
59
map<string, string> map_string_val = 13;
60
//
61
map<string, ErrorMessage> map_error_val = 14;
62
}
63
64
//
65
message ErrorMessage {
66
//
67
int64 code = 1;
68
//
69
string reason = 2;
70
//
71
string message = 3;
72
}
73
74
//
75
enum ErrorReason {
76
PROBE_UNSPECIFIED = 0; //
77
PROBE_CATEGORY_NOTFOUND = 1; //
78
}
79
80
//
81
message ProbeReply {
82
//
83
string content = 1;
84
//
85
int64 timestamp = 2;
86
}
87
88
//
89
message ProbeReq {
90
//
91
int64 mid = 1;
92
//
93
string buvid = 2;
94
}
95
96
//
97
message ProbeStreamReply {
98
//
99
int64 sequence = 1;
100
//
101
int64 timestamp = 2;
102
//
103
string content = 3;
104
}
105
106
//
107
message ProbeStreamReq {
108
//
109
int64 mid = 1;
110
//
111
int64 sequence = 2;
112
}
113
114
//
115
message ProbeSubReply {
116
//
117
int64 message_id = 1;
118
}
119
120
//
121
message ProbeSubReq {
122
//
123
int64 buvid = 1;
124
}
125
126
//
127
message SimpleMessage {
128
//
129
int32 id = 1;
130
//
131
int64 num = 2;
132
//
133
string lang = 3;
134
//
135
int32 cate = 4;
136
//
137
Embedded embedded = 5;
138
}
1
syntax = "proto3";
2
3
package bilibili.api.probe.v1;
4
5
// 服务可用性探针
6
service Probe {
7
//
8
rpc TestCode (CodeReq) returns (CodeReply);
9
//
10
rpc TestReq (ProbeReq) returns (ProbeReply);
11
//
12
rpc TestStream (ProbeStreamReq) returns (ProbeStreamReply);
13
//
14
rpc TestSub (ProbeSubReq) returns (ProbeSubReply);
15
}
16
17
// 服务可用性探针
18
service ProbeService {
19
//
20
rpc Echo(SimpleMessage) returns (SimpleMessage);
21
//
22
rpc EchoBody(SimpleMessage) returns (SimpleMessage);
23
//
24
rpc EchoDelete(SimpleMessage) returns (SimpleMessage);
25
//
26
rpc EchoError(ErrorMessage) returns (ErrorMessage);
27
//
28
rpc EchoPatch(DynamicMessageUpdate) returns (DynamicMessageUpdate);
29
}
30
31
//
32
enum Category {
33
CATEGORY_UNSPECIFIED = 0; //
34
CATEGORY_ONE = 1; //
35
CATEGORY_TWO = 2; //
36
CATEGORY_THREE = 3; //
37
CATEGORY_FOUR = 4; //
38
}
39
40
//
41
message CodeReply {
42
//
43
string id = 1;
44
//
45
string id1 = 2;
46
//
47
int64 code = 3;
48
//
49
string message_s = 4;
50
}
51
52
//
53
message CodeReq {
54
//
55
int64 code = 1;
56
}
57
58
//
59
message CreateTopic {
60
//
61
int64 id = 1;
62
}
63
64
//
65
message CreatTask {
66
//
67
string task = 1;
68
}
69
70
//
71
message DynamicMessageUpdate {
72
//
73
SimpleMessage body = 1;
74
}
75
76
//
77
message Embedded {
78
//
79
bool bool_val = 1;
80
//
81
int32 int32_val = 2;
82
//
83
int64 int64_val = 3;
84
//
85
float float_val = 4;
86
//
87
double double_val = 5;
88
//
89
string string_val = 6;
90
//
91
repeated bool repeated_bool_val = 7;
92
//
93
repeated int32 repeated_int32_val = 8;
94
//
95
repeated int64 repeated_int64_val = 9;
96
//
97
repeated float repeated_float_val = 10;
98
//
99
repeated double repeated_double_val = 11;
100
//
101
repeated string repeated_string_val = 12;
102
//
103
map<string, string> map_string_val = 13;
104
//
105
map<string, ErrorMessage> map_error_val = 14;
106
}
107
108
//
109
message ErrorMessage {
110
//
111
int64 code = 1;
112
//
113
string reason = 2;
114
//
115
string message = 3;
116
}
117
118
// Deprecated
119
enum ErrorReason {
120
PROBE_UNSPECIFIED = 0; //
121
PROBE_CATEGORY_NOTFOUND = 1; //
122
}
123
124
//
125
message ProbeReply {
126
//
127
string content = 1;
128
//
129
int64 timestamp = 2;
130
}
131
132
//
133
message ProbeReq {
134
//
135
int64 mid = 1;
136
//
137
string buvid = 2;
138
}
139
140
//
141
message ProbeStreamReply {
142
//
143
int64 sequence = 1;
144
//
145
int64 timestamp = 2;
146
//
147
string content = 3;
148
}
149
150
//
151
message ProbeStreamReq {
152
//
153
int64 mid = 1;
154
//
155
int64 sequence = 2;
156
}
157
158
//
159
message ProbeSubReply {
160
//
161
int64 message_id = 1;
162
}
163
164
//
165
message ProbeSubReq {
166
//
167
string buvid = 1;
168
}
169
170
//
171
message SimpleMessage {
172
//
173
int32 id = 1;
174
//
175
int64 num = 2;
176
//
177
string lang = 3;
178
//
179
int32 cate = 4;
180
//
181
Embedded embedded = 5;
182
}
183
184
//
185
message Task {
186
//
187
string name = 1;
188
//
189
string author = 2;
190
//
191
bool cache = 3;
192
}
@@ -0,0 +1,121 @@
1
syntax = "proto3";
2
3
package bilibili.app.click.v1;
4
5
service Click {
6
7
}
8
9
// 账户信息
10
message AccountInfo {
11
//
12
uint64 mid = 1;
13
}
14
15
//
16
message AppInfo {
17
//
18
string top_page_class = 1;
19
// 客户端首次启动时的毫秒时间戳
20
int64 ftime = 2;
21
//
22
string did = 3;
23
}
24
25
// 心跳补充信息
26
message Extra {
27
//
28
string session = 1;
29
//
30
string refer = 2;
31
}
32
33
message HeartBeatReply {}
34
35
//
36
message HeartBeatReq {
37
//
38
string session_v2 = 1;
39
//
40
Stage stage = 2;
41
// 流加载失败timeout
42
uint64 stream_timeout = 3;
43
//
44
uint64 batch_frequency = 4;
45
//
46
float frequency = 5;
47
//
48
VideoMeta video_meta = 6;
49
//
50
AppInfo app_info = 7;
51
//
52
AccountInfo account_info = 8;
53
//
54
PreProcessResult pre_process_result = 9;
55
//
56
repeated PlayerStatus player_status = 10;
57
//
58
VideoInfo video_info = 11;
59
}
60
61
//
62
message PlayerStatus {
63
//
64
float playback_rate = 1;
65
//
66
uint64 progress = 2;
67
//
68
PlayState play_state = 3;
69
//
70
bool is_buffering = 4;
71
}
72
73
//
74
enum PlayState {
75
//
76
STATE_UNKNOWN = 0;
77
//
78
PREPARING = 1;
79
//
80
PREPARED = 2;
81
//
82
PLAYING = 3;
83
//
84
PAUSED = 4;
85
//
86
STOPPED = 5;
87
//
88
FAILED = 6;
89
}
90
91
//
92
message PreProcessResult {
93
//
94
int64 vt = 1;
95
}
96
97
//
98
enum Stage {
99
//
100
STAGE_UNKNOWN = 0;
101
//
102
START = 1;
103
//
104
END = 2;
105
//
106
SAMPLE = 3;
107
}
108
109
//
110
message VideoInfo {
111
//
112
uint64 cid_duration = 1;
113
}
114
115
//
116
message VideoMeta {
117
//
118
uint64 aid = 1;
119
//
120
uint64 cid = 2;
121
}
此文件没有可显示的逐行差异。
@@ -0,0 +1,53 @@
1
syntax = "proto3";
2
3
package bilibili.app.show.mixture.v1;
4
5
//
6
service Mixture {
7
//
8
rpc Widget(WidgetReq) returns (WidgetReply);
9
}
10
11
//
12
message RcmdReason {
13
//
14
string content = 1;
15
//
16
uint32 corner_mark = 2;
17
}
18
19
//
20
message WidgetItem {
21
//
22
string cover = 1;
23
//
24
string view = 2;
25
//
26
RcmdReason rcmd_reason = 3;
27
//
28
string title = 4;
29
//
30
string name = 5;
31
//
32
string uri = 6;
33
//
34
string goto = 7;
35
//
36
int64 id = 8;
37
//
38
int32 view_icon = 9;
39
}
40
41
//
42
message WidgetReply {
43
//
44
repeated WidgetItem item = 1;
45
}
46
47
//
48
message WidgetReq {
49
//
50
string from_spmid = 1;
51
//
52
uint32 page_no = 2;
53
}
@@ -0,0 +1,11 @@
1
syntax = "proto3";
2
3
package bilibili.app.viewunite.pgcanymodel;
4
5
//
6
message ViewPgcAny {
7
//
8
uint64 season_id = 1;
9
//
10
int32 season_type = 2;
11
}
@@ -0,0 +1,10 @@
1
syntax = "proto3";
2
3
package bilibili.app.viewunite.ugcanymodel;
4
5
//
6
message ViewUgcAny {
7
8
}
9
10
//
@@ -1 +1,17 @@
1
// TODO
1
syntax = "proto3";
2
3
package bilibili.render;
4
5
import "google/protobuf/any.proto";
6
7
//
8
message Render {
9
//
10
int64 code = 1;
11
//
12
string message = 2;
13
//
14
string ttl = 3;
15
//
16
google.protobuf.Any data = 4;
17
}