返回提交历史
Modified
grpc_api/bilibili/app/resource/privacy/v1/api.proto
+16
-16
Modified
grpc_api/bilibili/app/resource/v1/module.proto
+49
-47
Modified
grpc_api/bilibili/app/show/popular/v1/popular.proto
+58
-50
Modified
grpc_api/bilibili/app/show/rank/v1/rank.proto
+31
-31
Modified
grpc_api/bilibili/app/show/region/v1/region.proto
+13
-13
Modified
grpc_api/bilibili/app/space/v1/space.proto
+12
-12
Modified
grpc_api/bilibili/app/splash/v1/splash.proto
+29
-29
Modified
grpc_api/bilibili/app/topic/v1/topic.proto
+396
-0
Modified
grpc_api/bilibili/broadcast/v1/broadcast.proto
+43
-28
Modified
grpc_api/bilibili/broadcast/v1/mod.proto
+16
-2
Modified
grpc_api/bilibili/broadcast/v1/push.proto
+26
-22
Modified
grpc_api/bilibili/broadcast/v1/room.proto
+13
-7
Modified
grpc_api/bilibili/broadcast/v1/test.proto
+23
-3
Modified
grpc_api/bilibili/community/service/dm/v1/dm.proto
+379
-295
XFEstudio/bilibili-API-collect
update 【gRPC API】 proto files
57c5621
代码差异
14 个文件
+1104
-555
@@ -11,15 +11,13 @@ service Privacy {
11
11
}
12
12
13
13
// 空请求
14
message NoArgRequest{}
14
message NoArgRequest{
15
16
}
15
17
16
18
// 空响应
17
message NoReply{}
19
message NoReply{
18
20
19
// 获取隐私设置-响应
20
message PrivacyConfigReply {
21
// 隐私设置
22
PrivacyConfigItem privacy_config_item = 1;
23
21
}
24
22
25
23
// 隐私设置
@@ -36,20 +34,22 @@ message PrivacyConfigItem {
36
34
string sub_title_uri = 5;
37
35
}
38
36
39
// 隐私开关类型
40
enum PrivacyConfigType {
41
//
42
none = 0;
43
// 动态同城
44
dynamic_city = 1;
37
// 获取隐私设置-响应
38
message PrivacyConfigReply {
39
// 隐私设置
40
PrivacyConfigItem privacy_config_item = 1;
45
41
}
46
42
47
43
// 隐私开关状态
48
44
enum PrivacyConfigState {
49
// 关闭
50
close = 0;
51
// 打开
52
open = 1;
45
close = 0; // 关闭
46
open = 1; // 打开
47
}
48
49
// 隐私开关类型
50
enum PrivacyConfigType {
51
none = 0; //
52
dynamic_city = 1; // 动态同城
53
53
}
54
54
55
55
// 修改隐私设置-请求
@@ -8,14 +8,23 @@ service Module {
8
8
rpc List(ListReq) returns (ListReply);
9
9
}
10
10
11
//
12
enum CompressType {
13
Unzip = 0; // unzip
14
Original = 1; // 不操作
15
}
16
11
17
//
12
18
enum EnvType {
13
//
14
Unknown = 0;
15
//
16
Release = 1;
17
//
18
Test = 2;
19
Unknown = 0; //
20
Release = 1; //
21
Test = 2; //
22
}
23
24
//
25
enum IncrementType {
26
Total = 0; // 全量包
27
Incremental = 1; // 增量包
19
28
}
20
29
21
30
//
@@ -26,6 +35,15 @@ enum LevelType {
26
35
Low = 3; // 低 仅在业务方使用到时由业务方手动进行下载
27
36
}
28
37
38
message ListReply {
39
//
40
string env = 1;
41
//
42
repeated PoolReply pools = 2;
43
//
44
int64 list_version = 3;
45
}
46
29
47
//
30
48
message ListReq {
31
49
//
@@ -42,50 +60,11 @@ message ListReq {
42
60
int32 scale = 6;
43
61
//
44
62
int32 arch = 7;
45
}
46
47
//
48
message VersionListReq {
49
//
50
string pool_name = 1;
51
//
52
repeated VersionReq versions = 2;
53
}
54
55
//
56
message VersionReq {
57
//
58
string module_name = 1;
59
63
//
60
int64 version = 2;
61
}
62
63
//
64
enum IncrementType {
65
Total = 0; // 全量包
66
Incremental = 1; // 增量包
64
int64 list_version = 8;
67
65
}
68
66
69
67
//
70
enum CompressType {
71
Unzip = 0; // unzip
72
Original = 1; // 不操作
73
}
74
75
message ListReply {
76
//
77
string env = 1;
78
//
79
repeated PoolReply pools = 2;
80
}
81
82
message PoolReply {
83
//
84
string name = 1;
85
//
86
repeated ModuleReply modules = 2;
87
}
88
89
68
message ModuleReply {
90
69
//
91
70
string name = 1;
@@ -123,4 +102,27 @@ message ModuleReply {
123
102
int64 file_id = 17;
124
103
//
125
104
bool zip_check = 18;
126
}
105
}
106
107
message PoolReply {
108
//
109
string name = 1;
110
//
111
repeated ModuleReply modules = 2;
112
}
113
114
//
115
message VersionListReq {
116
//
117
string pool_name = 1;
118
//
119
repeated VersionReq versions = 2;
120
}
121
122
//
123
message VersionReq {
124
//
125
string module_name = 1;
126
//
127
int64 version = 2;
128
}
@@ -11,50 +11,14 @@ service Popular {
11
11
rpc Index (PopularResultReq) returns (PopularReply);
12
12
}
13
13
14
// 热门列表-请求
15
message PopularResultReq {
16
// 排位索引id,为上此请求末尾项的idx
17
int64 idx = 1;
18
// 登录标识
19
// 1:未登陆用户第一页 2:登陆用户第一页
20
int32 login_event = 2;
21
// 清晰度(旧版)
22
int32 qn = 3;
23
// 视频流版本(旧版)
24
int32 fnver = 4;
25
// 视频流功能(旧版)
26
int32 fnval = 5;
27
// 是否强制使用域名(旧版)
28
int32 force_host = 6;
29
// 是否4K(旧版)
30
int32 fourk = 7;
31
// 当前页面spm
32
string spmid = 8;
33
// 上此请求末尾项的param
34
string last_param = 9;
35
// 上此请求的ver
36
string ver = 10;
37
// 分品类热门的入口ID
38
int64 entrance_id = 11;
39
// 热门定位id集合
40
string location_ids = 12;
41
// 0:tag页 1:中间页
42
int32 source_id = 13;
43
// 数据埋点上报
44
// 0:代表手动刷新 1:代表自动刷新
45
int32 flush = 14;
46
// 秒开参数
47
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 15;
48
}
49
50
// 热门列表-响应
51
message PopularReply {
52
// 卡片列表
53
repeated bilibili.app.card.v1.Card items = 1;
54
// 配置信息
55
Config config = 2;
14
// 气泡信息
15
message Bubble {
16
// 文案
17
string bubble_content = 1;
56
18
// 版本
57
string ver = 3;
19
int32 version = 2;
20
// 起始时间
21
int64 stime = 3;
58
22
}
59
23
60
24
// 配置信息
@@ -97,12 +61,56 @@ message EntranceShow {
97
61
int32 entrance_type = 8;
98
62
}
99
63
100
// 气泡信息
101
message Bubble {
102
// 文案
103
string bubble_content = 1;
64
// 热门列表-响应
65
message PopularReply {
66
// 卡片列表
67
repeated bilibili.app.card.v1.Card items = 1;
68
// 配置信息
69
Config config = 2;
104
70
// 版本
105
int32 version = 2;
106
// 起始时间
107
int64 stime = 3;
71
string ver = 3;
72
}
73
74
// 热门列表-请求
75
message PopularResultReq {
76
// 排位索引id,为上此请求末尾项的idx
77
int64 idx = 1;
78
// 登录标识
79
// 1:未登陆用户第一页 2:登陆用户第一页
80
int32 login_event = 2;
81
// 清晰度(旧版)
82
int32 qn = 3;
83
// 视频流版本(旧版)
84
int32 fnver = 4;
85
// 视频流功能(旧版)
86
int32 fnval = 5;
87
// 是否强制使用域名(旧版)
88
int32 force_host = 6;
89
// 是否4K(旧版)
90
int32 fourk = 7;
91
// 当前页面spm
92
string spmid = 8;
93
// 上此请求末尾项的param
94
string last_param = 9;
95
// 上此请求的ver
96
string ver = 10;
97
// 分品类热门的入口ID
98
int64 entrance_id = 11;
99
// 热门定位id集合
100
string location_ids = 12;
101
// 0:tag页 1:中间页
102
int32 source_id = 13;
103
// 数据埋点上报
104
// 0:代表手动刷新 1:代表自动刷新
105
int32 flush = 14;
106
// 秒开参数
107
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 15;
108
108
}
109
110
111
112
113
114
115
116
@@ -10,37 +10,6 @@ service Rank {
10
10
rpc RankRegion (RankRegionResultReq) returns (RankListReply);
11
11
}
12
12
13
// 全站排行榜-请求
14
message RankAllResultReq {
15
// 必须为"all"
16
string order = 1;
17
// 页码
18
// 默认1页
19
int32 pn = 2;
20
// 每页项数
21
// 默认100项,最大100
22
int32 ps = 3;
23
}
24
25
// 分区排行榜-请求
26
message RankRegionResultReq {
27
// 一级分区tid(二级分区不可用)
28
// 0:全站
29
int32 rid = 1;
30
// 页码
31
// 默认1页
32
int32 pn = 2;
33
// 每页项数
34
// 默认100项,最大100
35
int32 ps = 3;
36
}
37
38
// 排行榜信息-响应
39
message RankListReply {
40
// 排行榜列表
41
repeated Item items = 1;
42
}
43
44
13
// 排行榜列表项
45
14
message Item {
46
15
// 标题
@@ -108,6 +77,37 @@ message OfficialVerify {
108
77
string desc = 2;
109
78
}
110
79
80
// 全站排行榜-请求
81
message RankAllResultReq {
82
// 必须为"all"
83
string order = 1;
84
// 页码
85
// 默认1页
86
int32 pn = 2;
87
// 每页项数
88
// 默认100项,最大100
89
int32 ps = 3;
90
}
91
92
// 排行榜信息-响应
93
message RankListReply {
94
// 排行榜列表
95
repeated Item items = 1;
96
}
97
98
// 分区排行榜-请求
99
message RankRegionResultReq {
100
// 一级分区tid(二级分区不可用)
101
// 0:全站
102
int32 rid = 1;
103
// 页码
104
// 默认1页
105
int32 pn = 2;
106
// 每页项数
107
// 默认100项,最大100
108
int32 ps = 3;
109
}
110
111
111
// 关系信息
112
112
message Relation {
113
113
// 关系状态id
@@ -8,18 +8,6 @@ service Region {
8
8
rpc Region (RegionReq) returns (RegionReply);
9
9
}
10
10
11
//
12
message RegionReq {
13
//
14
string lang = 1;
15
}
16
17
//
18
message RegionReply {
19
//
20
repeated RegionInfo regions = 1;
21
}
22
23
11
//
24
12
message RegionConfig {
25
13
//
@@ -52,4 +40,16 @@ message RegionInfo {
52
40
repeated RegionInfo children = 10;
53
41
//
54
42
repeated RegionConfig config = 11;
55
}
43
}
44
45
//
46
message RegionReply {
47
//
48
repeated RegionInfo regions = 1;
49
}
50
51
//
52
message RegionReq {
53
//
54
string lang = 1;
55
}
@@ -8,18 +8,6 @@ service Space {
8
8
rpc Archive (ArchiveReq) returns (ArchiveReply);
9
9
}
10
10
11
//-请求
12
message ArchiveReq {
13
//
14
int64 vmid = 1;
15
//
16
int32 pn = 2;
17
//
18
int32 ps = 3;
19
//
20
string order = 4;
21
}
22
23
11
//-响应
24
12
message ArchiveReply {
25
13
//
@@ -32,6 +20,18 @@ message ArchiveReply {
32
20
repeated OrderConfig order = 4;
33
21
}
34
22
23
//-请求
24
message ArchiveReq {
25
//
26
int64 vmid = 1;
27
//
28
int32 pn = 2;
29
//
30
int32 ps = 3;
31
//
32
string order = 4;
33
}
34
35
35
//
36
36
message Badge {
37
37
//
@@ -10,34 +10,6 @@ service Splash {
10
10
rpc List (SplashReq) returns (SplashReply);
11
11
}
12
12
13
//-请求
14
message SplashReq {
15
//
16
int32 width = 1;
17
//
18
int32 height = 2;
19
//
20
string birth = 3;
21
//
22
string ad_extra = 4;
23
//
24
string network = 5;
25
}
26
27
//-响应
28
message SplashReply {
29
//
30
int32 max_time = 1;
31
//
32
int32 min_interval = 2;
33
//
34
int32 pull_interval = 3;
35
//
36
repeated SplashItem list = 4;
37
//
38
repeated ShowStrategy show = 5;
39
}
40
41
13
//
42
14
message ShowStrategy {
43
15
//
@@ -128,4 +100,32 @@ message SplashItem {
128
100
bool enable_pre_download = 38;
129
101
//
130
102
bool enable_background_download = 39;
131
}
103
}
104
105
//-响应
106
message SplashReply {
107
//
108
int32 max_time = 1;
109
//
110
int32 min_interval = 2;
111
//
112
int32 pull_interval = 3;
113
//
114
repeated SplashItem list = 4;
115
//
116
repeated ShowStrategy show = 5;
117
}
118
119
//-请求
120
message SplashReq {
121
//
122
int32 width = 1;
123
//
124
int32 height = 2;
125
//
126
string birth = 3;
127
//
128
string ad_extra = 4;
129
//
130
string network = 5;
131
}
@@ -0,0 +1,396 @@
1
syntax = "proto3";
2
3
package bilibili.app.topic.v1;
4
5
import "bilibili/app/dynamic/v2/dynamic.proto";
6
import "bilibili/app/card/v1/common.proto";
7
import "bilibili/app/archive/middleware/v1/preload.proto";
8
9
//
10
service Topic {
11
//
12
rpc TopicDetailsAll(TopicDetailsAllReq) returns (TopicDetailsAllReply);
13
//
14
rpc TopicDetailsFold(TopicDetailsFoldReq) returns (TopicDetailsFoldReply);
15
}
16
17
//
18
message DetailsTopInfo {
19
//
20
TopicInfo topic_info = 1;
21
//
22
User user = 2;
23
//
24
string stats_desc = 3;
25
//
26
bool has_create_jurisdiction = 4;
27
//
28
OperationContent operation_content = 5;
29
//
30
string head_img_url = 6;
31
//
32
string head_img_backcolor = 7;
33
//
34
int32 word_color = 8;
35
}
36
37
//
38
message FoldCardItem {
39
//
40
int32 is_show_fold = 1;
41
//
42
int64 fold_count = 2;
43
//
44
string card_show_desc = 3;
45
//
46
string fold_desc = 4;
47
}
48
49
//
50
message FunctionalCard {
51
//
52
repeated TopicCapsule capsules = 1;
53
//
54
TrafficCard traffic_card = 2;
55
//
56
GameCard game_card = 3;
57
}
58
59
//
60
message GameCard {
61
//
62
int64 game_id = 1;
63
//
64
string game_icon = 2;
65
//
66
string game_name = 3;
67
//
68
string score = 4;
69
//
70
string game_tags = 5;
71
//
72
string notice = 6;
73
//
74
string game_link = 7;
75
}
76
77
//
78
message InlineProgressBar {
79
//
80
string icon_drag = 1;
81
//
82
string icon_drag_hash = 2;
83
//
84
string icon_stop = 3;
85
//
86
string icon_stop_hash = 4;
87
}
88
89
//
90
message LargeCoverInline {
91
//
92
bilibili.app.card.v1.Base base = 1;
93
//
94
string cover_left_text1 = 2;
95
//
96
int32 cover_left_icon1 = 3;
97
//
98
string cover_left_text2 = 4;
99
//
100
int32 cover_left_icon2 = 5;
101
//
102
RightTopLiveBadge right_top_live_badge = 6;
103
//
104
string extra_uri = 7;
105
//
106
InlineProgressBar inline_progress_bar = 8;
107
//
108
TopicThreePoint topic_three_point = 9;
109
//
110
string cover_left_desc = 10;
111
//
112
bool hide_danmu_switch = 11;
113
//
114
bool disable_danmu = 12;
115
//
116
int32 can_play = 13;
117
//
118
string duration_text = 14;
119
//
120
RelationData relation_data = 15;
121
}
122
123
//
124
message LiveBadgeResource {
125
//
126
string text = 1;
127
//
128
string animation_url = 2;
129
//
130
string animation_url_hash = 3;
131
//
132
string background_color_light = 4;
133
//
134
string background_color_night = 5;
135
//
136
int64 alpha_light = 6;
137
//
138
int64 alpha_night = 7;
139
//
140
string font_color = 8;
141
}
142
143
//
144
message OperationCard {
145
oneof card {
146
//
147
LargeCoverInline large_cover_inline = 1;
148
}
149
}
150
151
//
152
message OperationContent {
153
//
154
OperationCard operation_card = 1;
155
}
156
157
//
158
message RelationData {
159
//
160
bool is_fav = 1;
161
//
162
bool is_coin = 2;
163
//
164
bool is_follow = 3;
165
//
166
bool is_like = 4;
167
//
168
int64 like_count = 5;
169
}
170
171
//
172
message RightTopLiveBadge {
173
//
174
int64 live_status = 1;
175
//
176
LiveBadgeResource in_live = 2;
177
//
178
string live_stats_desc = 3;
179
}
180
181
//
182
message SortContent {
183
//
184
int64 sort_by = 1;
185
//
186
string sort_name = 2;
187
}
188
189
//
190
message ThreePointItem {
191
//
192
string title = 1;
193
//
194
string jump_url = 2;
195
}
196
197
//
198
message TopicActivities {
199
//
200
repeated TopicActivity activity = 1;
201
//
202
string act_list_title = 2;
203
}
204
205
//
206
message TopicActivity {
207
//
208
int64 activity_id = 1;
209
//
210
string activity_name = 2;
211
//
212
string jump_url = 3;
213
//
214
string icon_url = 4;
215
}
216
217
//
218
message TopicCapsule {
219
//
220
string name = 1;
221
//
222
string jump_url = 2;
223
//
224
string icon_url = 3;
225
}
226
227
//
228
message TopicCardItem {
229
//
230
int32 type = 1;
231
//
232
bilibili.app.dynamic.v2.DynamicItem dynamic_item = 2;
233
//
234
FoldCardItem ford_card_item = 3;
235
}
236
237
//
238
message TopicCardList {
239
//
240
repeated TopicCardItem topic_card_items = 1;
241
//
242
string offset = 2;
243
//
244
bool has_more = 3;
245
//
246
TopicSortByConf topic_sort_by_conf = 4;
247
}
248
249
//
250
enum TopicCardType {
251
ILLEGAL_TYPE = 0; //
252
DYNAMIC = 1; //
253
FOLD = 2; //
254
}
255
256
//
257
message TopicDetailsAllReply {
258
//
259
DetailsTopInfo details_top_info = 1;
260
//
261
TopicActivities topic_activities = 2;
262
//
263
TopicCardList topic_card_list = 3;
264
//
265
FunctionalCard functional_card = 4;
266
}
267
268
//
269
message TopicDetailsAllReq {
270
//
271
int64 topic_id = 1;
272
//
273
int64 sort_by = 2;
274
//
275
string offset = 3;
276
//
277
int32 page_size = 4;
278
//
279
int32 local_time = 5;
280
//
281
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 6;
282
//
283
int32 need_refresh = 7;
284
//
285
string source = 8;
286
}
287
288
//
289
message TopicDetailsFoldReply {
290
//
291
TopicCardList topic_card_list = 1;
292
//
293
int64 fold_count = 2;
294
}
295
296
//
297
message TopicDetailsFoldReq {
298
//
299
int64 topic_id = 1;
300
//
301
string offset = 2;
302
//
303
int32 page_size = 3;
304
//
305
int32 local_time = 4;
306
//
307
bilibili.app.archive.middleware.v1.PlayerArgs player_args = 5;
308
//
309
int64 from_sort_by = 6;
310
}
311
312
//
313
message TopicInfo {
314
//
315
int64 id = 1;
316
//
317
string name = 2;
318
//
319
int64 uid = 3;
320
//
321
int64 view = 4;
322
//
323
int64 discuss = 5;
324
//
325
int64 fav = 6;
326
//
327
int64 dynamics = 7;
328
//
329
int32 state = 8;
330
//
331
string jump_url = 9;
332
//
333
string backcolor = 10;
334
//
335
bool is_fav = 11;
336
//
337
string description = 12;
338
//
339
int32 create_source = 13;
340
//
341
string share_pic = 14;
342
//
343
int64 share = 15;
344
//
345
int64 like = 16;
346
//
347
string share_url = 17;
348
//
349
bool is_like = 18;
350
}
351
352
//
353
message TopicSortByConf {
354
//
355
int64 default_sort_by = 1;
356
//
357
repeated SortContent all_sort_by = 2;
358
//
359
int64 show_sort_by = 3;
360
}
361
362
//
363
message TopicThreePoint {
364
//
365
repeated ThreePointItem dyn_three_point_items = 1;
366
}
367
368
//
369
message TrafficCard {
370
//
371
string name = 1;
372
//
373
string jump_url = 2;
374
//
375
string icon_url = 3;
376
//
377
string base_pic = 4;
378
//
379
string benefit_point = 5;
380
//
381
string card_desc = 6;
382
//
383
string jump_title = 7;
384
}
385
386
//
387
message User {
388
//
389
int64 uid = 1;
390
//
391
string face = 2;
392
//
393
string name = 3;
394
//
395
string name_desc = 4;
396
}
@@ -26,6 +26,13 @@ service BroadcastTunnel {
26
26
rpc CreateTunnel(stream BroadcastFrame) returns (stream BroadcastFrame);
27
27
}
28
28
29
//
30
enum Action {
31
UNKNOWN = 0; //
32
UPDATE = 1; //
33
DELETE = 2; //
34
}
35
29
36
// 鉴权请求,通过authorization验证绑定用户mid
30
37
message AuthReq {
31
38
// 冷启动id,算法uuid,重新起启会变
@@ -35,28 +42,21 @@ message AuthReq {
35
42
// 最后收到的消息id,用于过虑重连后获取未读的消息
36
43
int64 last_msg_id = 3;
37
44
}
38
// 鉴权返回
39
message AuthResp {}
40
45
41
// 心跳请求
42
message HeartbeatReq{}
43
// 心跳返回
44
message HeartbeatResp{}
46
// 鉴权返回
47
message AuthResp {
45
48
46
// target_path
47
message TargetPath {
48
// 需要订阅的target_paths
49
repeated string target_paths = 1;
50
49
}
51
50
52
// 消息回执
53
message MessageAckReq {
54
// 消息id
55
int64 ack_id = 1;
56
// ack来源,由业务指定用于埋点跟踪
57
string ack_origin = 2;
58
// 消息对应的target_path,方便业务区分和监控统计
59
string target_path = 3;
51
// target_path:
52
// "/" Service-Name "/" {method name} 参考 gRPC Request Path
53
message BroadcastFrame {
54
// 请求消息信息
55
FrameOption options = 1;
56
// 业务target_path
57
string target_path = 2;
58
// 业务pb内容
59
google.protobuf.Any body = 3;
60
60
}
61
61
62
62
// message_id:
@@ -79,18 +79,33 @@ message FrameOption {
79
79
// 业务状态码
80
80
bilibili.rpc.Status status = 4;
81
81
// 业务ack来源, 仅downstream时候由服务端填写.
82
string ack_origin = 5;
82
string ack_origin = 5;
83
//
84
int64 timestamp = 6;
83
85
}
84
86
85
// target_path:
86
// "/" Service-Name "/" {method name} 参考 gRPC Request Path
87
message BroadcastFrame {
88
// 请求消息信息
89
FrameOption options = 1;
90
// 业务target_path
91
string target_path = 2;
92
// 业务pb内容
93
google.protobuf.Any body = 3;
87
// 心跳请求
88
message HeartbeatReq{
89
90
}
91
92
// 心跳返回
93
message HeartbeatResp{
94
94
95
}
95
96
97
// 消息回执
98
message MessageAckReq {
99
// 消息id
100
int64 ack_id = 1;
101
// ack来源,由业务指定用于埋点跟踪
102
string ack_origin = 2;
103
// 消息对应的target_path,方便业务区分和监控统计
104
string target_path = 3;
105
}
96
106
107
// target_path
108
message TargetPath {
109
// 需要订阅的target_paths
110
repeated string target_paths = 1;
111
}
@@ -4,10 +4,24 @@ package bilibili.broadcast.v1;
4
4
5
5
import "google/protobuf/empty.proto";
6
6
7
message ModResourceResp {}
8
9
7
// ModManager
10
8
service ModManager {
11
9
//
12
10
rpc WatchResource(google.protobuf.Empty) returns (stream ModResourceResp);
13
11
}
12
13
//
14
message ModResourceResp {
15
//
16
int32 atcion = 1;
17
//
18
string app_key = 2;
19
//
20
string pool_name = 3;
21
//
22
string module_name = 4;
23
//
24
int64 module_version = 5;
25
//
26
int64 list_version = 6;
27
}
@@ -9,6 +9,26 @@ service Push {
9
9
rpc WatchMessage(google.protobuf.Empty) returns (stream PushMessageResp);
10
10
}
11
11
12
//
13
enum LinkType {
14
LINK_TYPE_UNKNOWN = 0; // 未知
15
LINK_TYPE_BANGUMI = 1; // 番剧
16
LINK_TYPE_VIDEO = 2; // 视频
17
LINK_TYPE_LIVE = 3; // 直播
18
}
19
20
//
21
message PageBlackList {
22
//
23
string id = 1;
24
}
25
26
//
27
message PageView {
28
//
29
string id = 1;
30
}
31
12
32
//
13
33
message PushMessageResp {
14
34
// 业务类型
@@ -78,30 +98,14 @@ message PushMessageResp {
78
98
repeated PageView page_view = 13;
79
99
// 跳转资源
80
100
TargetResource target_resource = 14;
81
}
82
83
//
84
message PageBlackList {
85
101
//
86
string id = 1;
87
}
88
89
//
90
message PageView {
102
int32 image_frame = 15;
91
103
//
92
string id = 1;
93
}
94
95
//
96
enum LinkType {
97
// 未知
98
LINK_TYPE_UNKNOWN = 0;
99
// 番剧
100
LINK_TYPE_BANGUMI = 1;
101
// 视频
102
LINK_TYPE_VIDEO = 2;
103
// 直播
104
LINK_TYPE_LIVE = 3;
104
int32 image_marker = 16;
105
//
106
int32 image_position = 17;
107
//
108
int64 job = 18;
105
109
}
106
110
107
111
//
@@ -12,15 +12,19 @@ service BroadcastRoom {
12
12
}
13
13
14
14
//
15
message RoomJoinEvent {}
15
message RoomErrorEvent {
16
//
17
bilibili.rpc.Status status = 1;
18
}
16
19
17
20
//
18
message RoomLeaveEvent {}
21
message RoomJoinEvent {
22
23
}
19
24
20
25
//
21
message RoomOnlineEvent {
22
//
23
int32 online = 1;
26
message RoomLeaveEvent {
27
24
28
}
25
29
26
30
//
@@ -32,9 +36,11 @@ message RoomMessageEvent {
32
36
}
33
37
34
38
//
35
message RoomErrorEvent {
39
message RoomOnlineEvent {
36
40
//
37
bilibili.rpc.Status status = 1;
41
int32 online = 1;
42
//
43
int32 all_online = 2;
38
44
}
39
45
40
46
//